@lovrabet/rabetbase-cli 2.2.5-beta.1 → 2.3.1-beta.2

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 (241) hide show
  1. package/README.md +1 -1
  2. package/lib/api/api-doc.js +1 -1
  3. package/lib/api/fetch-model-list.js +1 -1
  4. package/lib/api/generate-api-file.js +1 -1
  5. package/lib/auth/auth-server-ui.js +1 -1
  6. package/lib/auth/auth-server.js +1 -1
  7. package/lib/auth/constant.js +1 -1
  8. package/lib/auth/get-cookie.js +1 -1
  9. package/lib/auth/get-session-user.js +1 -1
  10. package/lib/auth/is-session-valid.js +1 -1
  11. package/lib/auth/login-success-html.js +1 -1
  12. package/lib/auth/logout.js +1 -1
  13. package/lib/cli-flags.js +1 -1
  14. package/lib/cli.js +1 -1
  15. package/lib/commands/api/generate.js +1 -1
  16. package/lib/commands/api/index.js +1 -1
  17. package/lib/commands/api/list.js +1 -1
  18. package/lib/commands/api/pull.js +1 -1
  19. package/lib/commands/api/shared.js +1 -1
  20. package/lib/commands/app/add.js +1 -1
  21. package/lib/commands/app/discover.js +1 -1
  22. package/lib/commands/app/index.js +1 -1
  23. package/lib/commands/app/list.js +1 -1
  24. package/lib/commands/app/remove.js +1 -1
  25. package/lib/commands/app/shared.js +1 -1
  26. package/lib/commands/app/use.js +1 -1
  27. package/lib/commands/app-config/delete.js +1 -1
  28. package/lib/commands/app-config/get.js +1 -1
  29. package/lib/commands/app-config/index.js +1 -1
  30. package/lib/commands/app-config/list.js +1 -1
  31. package/lib/commands/app-config/set.js +1 -1
  32. package/lib/commands/app-config/shared.js +1 -1
  33. package/lib/commands/auth/index.js +1 -1
  34. package/lib/commands/bff/create.js +1 -1
  35. package/lib/commands/bff/delete.js +1 -1
  36. package/lib/commands/bff/detail.js +1 -1
  37. package/lib/commands/bff/index.js +1 -1
  38. package/lib/commands/bff/list.js +1 -1
  39. package/lib/commands/bff/pull.js +1 -1
  40. package/lib/commands/bff/push.js +1 -1
  41. package/lib/commands/bff/status.js +1 -1
  42. package/lib/commands/cli-skill/index.js +1 -0
  43. package/lib/commands/cli-update.js +1 -1
  44. package/lib/commands/codegen/index.js +1 -1
  45. package/lib/commands/codegen/sdk.js +1 -1
  46. package/lib/commands/codegen/sql.js +1 -1
  47. package/lib/commands/common/app-selector.js +1 -1
  48. package/lib/commands/common/flags.js +1 -1
  49. package/lib/commands/common/validate.js +1 -1
  50. package/lib/commands/config/get.js +1 -1
  51. package/lib/commands/config/index.js +1 -1
  52. package/lib/commands/config/list.js +1 -1
  53. package/lib/commands/config/set.js +1 -1
  54. package/lib/commands/config/shared.js +1 -1
  55. package/lib/commands/data/filter.js +1 -1
  56. package/lib/commands/data/getOne.js +1 -1
  57. package/lib/commands/data/index.js +1 -1
  58. package/lib/commands/data/shared.js +1 -1
  59. package/lib/commands/dataset/business-group-update.js +1 -1
  60. package/lib/commands/dataset/capability.js +1 -1
  61. package/lib/commands/dataset/delete.js +1 -1
  62. package/lib/commands/dataset/detail.js +1 -1
  63. package/lib/commands/dataset/extend-update.js +1 -1
  64. package/lib/commands/dataset/field-update.js +1 -1
  65. package/lib/commands/dataset/index.js +1 -1
  66. package/lib/commands/dataset/list.js +1 -1
  67. package/lib/commands/dataset/operations.js +1 -1
  68. package/lib/commands/dataset/relation-create.js +1 -1
  69. package/lib/commands/dataset/relation-delete.js +1 -1
  70. package/lib/commands/dataset/relation-shared.js +1 -1
  71. package/lib/commands/dataset/relation-update.js +1 -1
  72. package/lib/commands/dataset/relations.js +1 -1
  73. package/lib/commands/dataset/rename.js +1 -1
  74. package/lib/commands/dataset/restore.js +1 -0
  75. package/lib/commands/db/analyze-cancel.js +1 -1
  76. package/lib/commands/db/analyze-start.js +1 -1
  77. package/lib/commands/db/analyze-status.js +1 -1
  78. package/lib/commands/db/create.js +1 -1
  79. package/lib/commands/db/delete.js +1 -1
  80. package/lib/commands/db/detail.js +1 -1
  81. package/lib/commands/db/diff.js +1 -1
  82. package/lib/commands/db/index.js +1 -1
  83. package/lib/commands/db/list.js +1 -1
  84. package/lib/commands/db/shared.js +1 -1
  85. package/lib/commands/db/tables.js +1 -1
  86. package/lib/commands/db/test.js +1 -1
  87. package/lib/commands/db/update.js +1 -1
  88. package/lib/commands/doctor.js +1 -1
  89. package/lib/commands/init/index.js +1 -1
  90. package/lib/commands/issue/index.js +1 -1
  91. package/lib/commands/issue/nudge.js +1 -1
  92. package/lib/commands/issue/report.js +1 -1
  93. package/lib/commands/issue/shared.js +1 -1
  94. package/lib/commands/logs/index.js +1 -1
  95. package/lib/commands/menu/index.js +1 -1
  96. package/lib/commands/menu/list.js +1 -1
  97. package/lib/commands/menu/shared/compare-table.js +1 -1
  98. package/lib/commands/menu/shared/index.js +1 -1
  99. package/lib/commands/menu/shared/inquirer.js +1 -1
  100. package/lib/commands/menu/shared/local-pages.js +1 -1
  101. package/lib/commands/menu/shared/logic.js +1 -1
  102. package/lib/commands/menu/shared/service.js +1 -1
  103. package/lib/commands/menu/shared/sync-core.js +1 -1
  104. package/lib/commands/menu/shared/update-core.js +1 -1
  105. package/lib/commands/menu/shared/valid-url.js +1 -1
  106. package/lib/commands/menu/sync.js +1 -1
  107. package/lib/commands/menu/update.js +1 -1
  108. package/lib/commands/page/generate-start.js +1 -1
  109. package/lib/commands/page/generate-status.js +1 -1
  110. package/lib/commands/page/index.js +1 -1
  111. package/lib/commands/page/pull.js +1 -1
  112. package/lib/commands/page/push.js +1 -1
  113. package/lib/commands/page/relation-audit.js +1 -1
  114. package/lib/commands/page/shared.js +1 -1
  115. package/lib/commands/page/standard-page-status.js +1 -1
  116. package/lib/commands/page/sync.js +1 -1
  117. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  118. package/lib/commands/project/create/format-elapsed.js +1 -1
  119. package/lib/commands/project/create/main.js +1 -1
  120. package/lib/commands/project/create/non-interactive.js +1 -1
  121. package/lib/commands/project/create/project-template-path.js +1 -1
  122. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  123. package/lib/commands/project/create/use-format-code.js +1 -1
  124. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  125. package/lib/commands/project/index.js +1 -1
  126. package/lib/commands/project/init.js +1 -1
  127. package/lib/commands/project/upgrade.js +1 -1
  128. package/lib/commands/registry.js +1 -1
  129. package/lib/commands/run/index.js +1 -1
  130. package/lib/commands/schema.js +1 -1
  131. package/lib/commands/sql/create.js +1 -1
  132. package/lib/commands/sql/delete.js +1 -1
  133. package/lib/commands/sql/detail.js +1 -1
  134. package/lib/commands/sql/exec.js +1 -1
  135. package/lib/commands/sql/index.js +1 -1
  136. package/lib/commands/sql/list.js +1 -1
  137. package/lib/commands/sql/pull.js +1 -1
  138. package/lib/commands/sql/push.js +1 -1
  139. package/lib/commands/sql/save.js +1 -1
  140. package/lib/commands/sql/shared.js +1 -1
  141. package/lib/commands/sql/status.js +1 -1
  142. package/lib/commands/sql/validate.js +1 -1
  143. package/lib/commands/workspace/index.js +1 -1
  144. package/lib/config/schema.js +1 -1
  145. package/lib/constant/cdn.js +1 -1
  146. package/lib/constant/cli.js +1 -1
  147. package/lib/constant/defaults.js +1 -1
  148. package/lib/constant/domain.js +1 -1
  149. package/lib/constant/env.js +1 -1
  150. package/lib/constant/output.js +1 -1
  151. package/lib/constant/paths.js +1 -1
  152. package/lib/constant/risk.js +1 -1
  153. package/lib/context/app-resolver.js +1 -1
  154. package/lib/context/auth-resolver.js +1 -1
  155. package/lib/context/config-loader.js +1 -1
  156. package/lib/context.js +1 -1
  157. package/lib/core/alias-resolver.js +1 -1
  158. package/lib/core/api-client.js +1 -1
  159. package/lib/core/bff/config.js +1 -1
  160. package/lib/core/bff/file-system.js +1 -1
  161. package/lib/core/bff/hash.js +1 -1
  162. package/lib/core/bff/lock.js +1 -1
  163. package/lib/core/bff/utils.js +1 -1
  164. package/lib/core/db-resolver.js +1 -1
  165. package/lib/core/page/file-system.js +1 -1
  166. package/lib/core/page/hash.js +1 -1
  167. package/lib/core/page/lock.js +1 -1
  168. package/lib/core/sql-sync/config.js +1 -1
  169. package/lib/core/sql-sync/file-system.js +1 -1
  170. package/lib/core/sql-sync/hash.js +1 -1
  171. package/lib/core/sql-sync/lock.js +1 -1
  172. package/lib/core/sql-sync/utils.js +1 -1
  173. package/lib/core/sql-validator.js +1 -1
  174. package/lib/errors.js +1 -1
  175. package/lib/framework/build-all-flags.js +1 -1
  176. package/lib/framework/flags.js +1 -1
  177. package/lib/framework/help.js +1 -1
  178. package/lib/framework/index.js +1 -1
  179. package/lib/framework/output.js +1 -1
  180. package/lib/framework/response.js +1 -1
  181. package/lib/framework/runner-alias.js +1 -1
  182. package/lib/framework/runner.js +1 -1
  183. package/lib/framework/schema-export.js +1 -1
  184. package/lib/framework/types.js +1 -1
  185. package/lib/generated/build-info.js +1 -1
  186. package/lib/help.js +1 -1
  187. package/lib/skills/main.js +1 -1
  188. package/lib/skills/npx-skills-add.js +1 -1
  189. package/lib/telemetry/cli-command-trace.js +1 -1
  190. package/lib/telemetry/cli-help-trace.js +1 -1
  191. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  192. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  193. package/lib/telemetry/send-cli-trace-log.js +1 -1
  194. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  195. package/lib/utils/ai_config.js +1 -1
  196. package/lib/utils/apply-jq-filter.js +1 -1
  197. package/lib/utils/cdn-config.js +1 -1
  198. package/lib/utils/check-sdk-version.js +1 -1
  199. package/lib/utils/cli-version-check.js +1 -1
  200. package/lib/utils/cli-version-policy.js +1 -1
  201. package/lib/utils/config.js +1 -1
  202. package/lib/utils/copy-directory.js +1 -1
  203. package/lib/utils/entity-with-id.js +1 -1
  204. package/lib/utils/file-utils.js +1 -1
  205. package/lib/utils/guides-cdn.js +1 -1
  206. package/lib/utils/http-client.js +1 -1
  207. package/lib/utils/is-non-interactive.js +1 -1
  208. package/lib/utils/logger.js +1 -1
  209. package/lib/utils/params.js +1 -1
  210. package/lib/utils/platform.js +1 -1
  211. package/lib/utils/rules-cdn.js +1 -1
  212. package/lib/utils/sleep.js +1 -1
  213. package/lib/utils/template-replacer.js +1 -1
  214. package/lib/utils/update-notice.js +1 -1
  215. package/lib/utils/version.js +1 -1
  216. package/lib/utils/with-active-cookie.js +1 -1
  217. package/lib/utils/write-cli-side-channel.js +1 -1
  218. package/package.json +1 -1
  219. package/templates/README.md +15 -25
  220. package/templates/generate-api/api.ts.tpl +2 -2
  221. package/templates/generate-api/client.ts.tpl +2 -2
  222. package/templates/projects/sub-app-react-demo/CHANGELOG.md +15 -1
  223. package/templates/projects/sub-app-react-demo/README.md +159 -231
  224. package/templates/projects/sub-app-react-demo/docs/quick-start.md +145 -426
  225. package/templates/projects/sub-app-react-demo/src/api/api.ts +8 -65
  226. package/templates/projects/sub-app-react-demo/src/api/client.ts +10 -42
  227. package/templates/projects/sub-app-react-demo/src/components/demo-page-container/DemoPageContainer.module.css +28 -0
  228. package/templates/projects/sub-app-react-demo/src/components/demo-page-container/DemoPageContainer.tsx +55 -0
  229. package/templates/projects/sub-app-react-demo/src/layouts/MainLayout.tsx +6 -9
  230. package/templates/projects/sub-app-react-demo/src/main.tsx +10 -6
  231. package/templates/projects/sub-app-react-demo/src/pages/dashboard/index.tsx +3 -5
  232. package/templates/projects/sub-app-react-demo/src/pages/data-screen/index.tsx +153 -148
  233. package/templates/projects/sub-app-react-demo/src/pages/index.module.css +500 -0
  234. package/templates/projects/sub-app-react-demo/src/pages/index.tsx +517 -343
  235. package/templates/projects/sub-app-react-demo/src/pages/sdk-demo/index.tsx +325 -242
  236. package/templates/projects/sub-app-react-demo/src/pages/workbench/index.module.css +8 -6
  237. package/templates/projects/sub-app-react-demo/src/pages/workbench/index.tsx +174 -87
  238. package/templates/projects/sub-app-react-demo/src/style.css +19 -3
  239. package/templates/projects/sub-app-react-demo/src/vite-env.d.ts +1 -1
  240. package/lib/commands/skill/index.js +0 -1
  241. package/templates/projects/sub-app-react-demo/docs/API_RULE_CHANGE.md +0 -212
@@ -1 +1 @@
1
- (function(_0x4a2a75,_0x36b116){const _0x23d204=a199_0x4e57,_0x52190d=_0x4a2a75();while(!![]){try{const _0x15d08e=parseInt(_0x23d204(0x16c))/0x1+parseInt(_0x23d204(0x16d))/0x2*(parseInt(_0x23d204(0x168))/0x3)+-parseInt(_0x23d204(0x15f))/0x4*(parseInt(_0x23d204(0x16b))/0x5)+-parseInt(_0x23d204(0x169))/0x6*(parseInt(_0x23d204(0x160))/0x7)+parseInt(_0x23d204(0x166))/0x8+-parseInt(_0x23d204(0x164))/0x9+parseInt(_0x23d204(0x15e))/0xa;if(_0x15d08e===_0x36b116)break;else _0x52190d['push'](_0x52190d['shift']());}catch(_0x5ae9a3){_0x52190d['push'](_0x52190d['shift']());}}}(a199_0x2252,0xd5406));function a199_0x2252(){const _0x492836=['/config.json','3TArMkK','120nTpLBu','sdk','8345NrkkUl','371442nMYxkK','1491106uHNdPg','11579880rjFBLm','3804mUIyGC','184352vUZFCL','stableVersion','node','application/json','3813777dNyGMr','/config/index.json','9089496HtibSV'];a199_0x2252=function(){return _0x492836;};return a199_0x2252();}import{getTemplateBaseUrl}from'../utils/config.js';export async function fetchCdnConfig(){const _0xde6687=a199_0x4e57,_0x223e7d=getTemplateBaseUrl(),_0x2e7f05=[_0x223e7d+_0xde6687(0x167),_0x223e7d+_0xde6687(0x165)];for(const _0x25c95c of _0x2e7f05){try{const _0x5372a5=await fetch(_0x25c95c,{'headers':{'Accept':_0xde6687(0x163)}});if(!_0x5372a5['ok'])continue;const _0x1a5490=await _0x5372a5['json']();if(!_0x1a5490['cli']?.[_0xde6687(0x161)]||!_0x1a5490[_0xde6687(0x16a)]?.[_0xde6687(0x162)]?.['stableVersion'])continue;return _0x1a5490;}catch{}}return null;}let cachedConfig=null,cacheTime=0x0;const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8;function a199_0x4e57(_0x34d5e3,_0x5b2eac){_0x34d5e3=_0x34d5e3-0x15e;const _0x2252a2=a199_0x2252();let _0x4e57f4=_0x2252a2[_0x34d5e3];return _0x4e57f4;}let hasCachedConfig=![];export async function getCdnConfig(){const _0x17e860=Date['now']();if(hasCachedConfig){const _0x340d03=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x17e860-cacheTime<_0x340d03)return cachedConfig;}const _0x587b38=await fetchCdnConfig();return cachedConfig=_0x587b38,cacheTime=_0x17e860,hasCachedConfig=!![],_0x587b38;}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
1
+ function a200_0x533b(_0x344f81,_0x318757){_0x344f81=_0x344f81-0x89;const _0x464497=a200_0x4644();let _0x533b3c=_0x464497[_0x344f81];return _0x533b3c;}(function(_0x29206f,_0x580aea){const _0x30c04d=a200_0x533b,_0x41720a=_0x29206f();while(!![]){try{const _0x592c9e=-parseInt(_0x30c04d(0x93))/0x1*(-parseInt(_0x30c04d(0x91))/0x2)+-parseInt(_0x30c04d(0x95))/0x3*(parseInt(_0x30c04d(0x8b))/0x4)+-parseInt(_0x30c04d(0x8c))/0x5*(-parseInt(_0x30c04d(0x90))/0x6)+parseInt(_0x30c04d(0x8f))/0x7*(parseInt(_0x30c04d(0x8e))/0x8)+parseInt(_0x30c04d(0x8a))/0x9+parseInt(_0x30c04d(0x94))/0xa+-parseInt(_0x30c04d(0x96))/0xb;if(_0x592c9e===_0x580aea)break;else _0x41720a['push'](_0x41720a['shift']());}catch(_0x289128){_0x41720a['push'](_0x41720a['shift']());}}}(a200_0x4644,0xc711e));import{getTemplateBaseUrl}from'../utils/config.js';export async function fetchCdnConfig(){const _0x2edf81=a200_0x533b,_0x5701ba=getTemplateBaseUrl(),_0x5113e5=[_0x5701ba+_0x2edf81(0x92),_0x5701ba+'/config/index.json'];for(const _0x4cc585 of _0x5113e5){try{const _0x2834a4=await fetch(_0x4cc585,{'headers':{'Accept':'application/json'}});if(!_0x2834a4['ok'])continue;const _0x47bce2=await _0x2834a4['json']();if(!_0x47bce2[_0x2edf81(0x98)]?.[_0x2edf81(0x8d)]||!_0x47bce2[_0x2edf81(0x97)]?.[_0x2edf81(0x89)]?.['stableVersion'])continue;return _0x47bce2;}catch{}}return null;}function a200_0x4644(){const _0x489149=['10082330odrUwq','2085GFLAHb','14532386WbnNOU','sdk','cli','node','4113252PqunIF','7336ntZCKQ','5089990zpXJGm','stableVersion','40gYBybC','711277oAfcUY','6TQnyKd','686wZeYIH','/config.json','1224tlhLsH'];a200_0x4644=function(){return _0x489149;};return a200_0x4644();}let cachedConfig=null,cacheTime=0x0;const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8;let hasCachedConfig=![];export async function getCdnConfig(){const _0x261b9d=Date['now']();if(hasCachedConfig){const _0x1fd8c3=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x261b9d-cacheTime<_0x1fd8c3)return cachedConfig;}const _0x182a0a=await fetchCdnConfig();return cachedConfig=_0x182a0a,cacheTime=_0x261b9d,hasCachedConfig=!![],_0x182a0a;}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
@@ -1 +1 @@
1
- const a200_0x373d81=a200_0x532f;(function(_0x3e890a,_0x2619e6){const _0x380985=a200_0x532f,_0x1920f7=_0x3e890a();while(!![]){try{const _0x354adb=parseInt(_0x380985(0x1a4))/0x1*(parseInt(_0x380985(0x1ab))/0x2)+parseInt(_0x380985(0x1a8))/0x3*(-parseInt(_0x380985(0x19c))/0x4)+parseInt(_0x380985(0x19b))/0x5+-parseInt(_0x380985(0x1ad))/0x6+parseInt(_0x380985(0x1a6))/0x7*(-parseInt(_0x380985(0x1b1))/0x8)+parseInt(_0x380985(0x1aa))/0x9*(parseInt(_0x380985(0x1a2))/0xa)+-parseInt(_0x380985(0x1b2))/0xb*(parseInt(_0x380985(0x1b7))/0xc);if(_0x354adb===_0x2619e6)break;else _0x1920f7['push'](_0x1920f7['shift']());}catch(_0xc7b6a6){_0x1920f7['push'](_0x1920f7['shift']());}}}(a200_0x2fa5,0x2200b));import a200_0x432b88 from'node:fs';function a200_0x2fa5(){const _0x5ca99c=['813138tIvuiz','coerce','latest','utf8','8rmDAhN','655600snfimv','minVersion','join','package.json','\x1b[33m','36YpSLYA','version','some','\x1b[0m','node','devDependencies','test','\x20\x20\x20Stable\x20version:\x20','\x20\x20\x20Upgrade\x20command:\x20','@lovrabet/sdk','dependencies','log','stableVersion','needsUpgrade','299745rTxscU','124BrQjKO','node_modules','npm\x20install\x20','existsSync','parse','all','15550ubaiXB','\x20\x20\x20Current\x20version:\x20','137753oStRha','1.2.0','453271qTlruP','readFileSync','9237mBGKyY','packageName','1611NpoWWP','4yOolkC','sdk'];a200_0x2fa5=function(){return _0x5ca99c;};return a200_0x2fa5();}import a200_0x4e0ba7 from'node:path';import a200_0x57512c from'semver';import{getCdnConfig}from'../utils/cdn-config.js';function a200_0x532f(_0x28b86e,_0x74ec30){_0x28b86e=_0x28b86e-0x198;const _0x2fa527=a200_0x2fa5();let _0x532f3d=_0x2fa527[_0x28b86e];return _0x532f3d;}const FALLBACK_MIN_SDK_VERSION=a200_0x373d81(0x1a5);function isNonNumericVersion(_0x4a3740){const _0x1cd846=a200_0x373d81,_0x4cfc42=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x4cfc42[_0x1cd846(0x1b9)](_0x492c91=>_0x492c91[_0x1cd846(0x1bd)](_0x4a3740));}function getInstalledVersion(_0x58b093,_0x2d6da0){const _0x2114ce=a200_0x373d81;try{const _0x3e52a9=a200_0x4e0ba7[_0x2114ce(0x1b4)](_0x58b093,_0x2114ce(0x19d),_0x2d6da0,_0x2114ce(0x1b5));if(a200_0x432b88[_0x2114ce(0x19f)](_0x3e52a9)){const _0x5af734=JSON[_0x2114ce(0x1a0)](a200_0x432b88['readFileSync'](_0x3e52a9,'utf-8'));return _0x5af734[_0x2114ce(0x1b8)]||null;}}catch{}return null;}async function getSdkStableVersion(){const _0x53df19=a200_0x373d81;try{const _0x515ad2=await getCdnConfig();return _0x515ad2?.['sdk']?.[_0x53df19(0x1bb)]?.[_0x53df19(0x199)]||null;}catch{return null;}}async function getSdkPackageName(){const _0xfd64f4=a200_0x373d81;try{const _0x3b87ad=await getCdnConfig();return _0x3b87ad?.[_0xfd64f4(0x1ac)]?.[_0xfd64f4(0x1bb)]?.[_0xfd64f4(0x1a9)]||_0xfd64f4(0x1c0);}catch{return _0xfd64f4(0x1c0);}}export async function checkSdkVersion(_0x99273f){const _0x50eb88=a200_0x373d81,_0x187c8a=a200_0x4e0ba7['join'](_0x99273f,_0x50eb88(0x1b5)),[_0x36347d,_0x34aa82]=await Promise[_0x50eb88(0x1a1)]([getSdkStableVersion(),getSdkPackageName()]),_0x1bad1b=_0x36347d||FALLBACK_MIN_SDK_VERSION;if(!a200_0x432b88[_0x50eb88(0x19f)](_0x187c8a))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x1bad1b,'packageName':_0x34aa82,'stableVersion':_0x36347d};try{const _0x2a8521=JSON[_0x50eb88(0x1a0)](a200_0x432b88['readFileSync'](_0x187c8a,_0x50eb88(0x1b0))),_0x26a18f=_0x2a8521[_0x50eb88(0x1c1)]||{},_0x1ede43=_0x2a8521[_0x50eb88(0x1bc)]||{},_0x4d5c8f=_0x26a18f[_0x34aa82]||_0x1ede43[_0x34aa82];if(!_0x4d5c8f)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x1bad1b,'packageName':_0x34aa82,'stableVersion':_0x36347d};let _0x2ac38e=getInstalledVersion(_0x99273f,_0x34aa82);!_0x2ac38e&&(_0x2ac38e=_0x4d5c8f);if(isNonNumericVersion(_0x4d5c8f))return{'installed':!![],'version':_0x2ac38e,'needsUpgrade':![],'minVersion':_0x1bad1b,'packageName':_0x34aa82,'stableVersion':_0x36347d};const _0x16c8a8=a200_0x57512c[_0x50eb88(0x1ae)](_0x2ac38e),_0x1ebb1b=a200_0x57512c[_0x50eb88(0x1ae)](_0x1bad1b),_0x1e3fe2=_0x16c8a8&&_0x1ebb1b?a200_0x57512c['lt'](_0x16c8a8,_0x1ebb1b):![];return{'installed':!![],'version':_0x2ac38e,'needsUpgrade':_0x1e3fe2,'minVersion':_0x1bad1b,'packageName':_0x34aa82,'stableVersion':_0x36347d};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x1bad1b,'packageName':_0x34aa82,'stableVersion':_0x36347d};}}export function checkSdkVersionSync(_0x1d5e30){const _0x52dcc1=a200_0x373d81,_0xed3522=a200_0x4e0ba7[_0x52dcc1(0x1b4)](_0x1d5e30,_0x52dcc1(0x1b5)),_0x54ffb2=_0x52dcc1(0x1c0);if(!a200_0x432b88[_0x52dcc1(0x19f)](_0xed3522))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x54ffb2,'stableVersion':null};try{const _0x2530a1=JSON[_0x52dcc1(0x1a0)](a200_0x432b88[_0x52dcc1(0x1a7)](_0xed3522,_0x52dcc1(0x1b0))),_0x13a91b=_0x2530a1[_0x52dcc1(0x1c1)]||{},_0x5339bb=_0x2530a1['devDependencies']||{},_0x51b993=_0x13a91b[_0x54ffb2]||_0x5339bb[_0x54ffb2];if(!_0x51b993)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x54ffb2,'stableVersion':null};let _0x4801e8=getInstalledVersion(_0x1d5e30,_0x54ffb2);!_0x4801e8&&(_0x4801e8=_0x51b993);if(isNonNumericVersion(_0x51b993))return{'installed':!![],'version':_0x4801e8,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x54ffb2,'stableVersion':null};const _0x2a0aed=a200_0x57512c[_0x52dcc1(0x1ae)](_0x4801e8),_0x1c951b=_0x2a0aed?a200_0x57512c['lt'](_0x2a0aed,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x4801e8,'needsUpgrade':_0x1c951b,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x54ffb2,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x54ffb2,'stableVersion':null};}}export function printSdkUpgradeWarning(_0x2d1ba4){const _0x38d7df=a200_0x373d81;if(!_0x2d1ba4[_0x38d7df(0x19a)])return;const _0x123c76=_0x38d7df(0x1b6),_0x3884d0=_0x38d7df(0x1ba),_0x32f69f='\x1b[1m',_0x4f4c6f=_0x2d1ba4[_0x38d7df(0x1a9)]||'@lovrabet/sdk',_0x54d45b=_0x2d1ba4[_0x38d7df(0x199)]||_0x2d1ba4[_0x38d7df(0x1b3)],_0x221dbc=_0x38d7df(0x19e)+_0x4f4c6f+'@'+(_0x54d45b||_0x38d7df(0x1af));console[_0x38d7df(0x198)](),console['log'](''+_0x123c76+_0x32f69f+'↪\x20SDK\x20update\x20available'+_0x3884d0),console[_0x38d7df(0x198)](_0x123c76+_0x38d7df(0x1a3)+_0x4f4c6f+'@'+_0x2d1ba4['version']+_0x3884d0),console[_0x38d7df(0x198)](_0x123c76+_0x38d7df(0x1be)+_0x54d45b+_0x3884d0),console[_0x38d7df(0x198)](_0x123c76+_0x38d7df(0x1bf)+_0x221dbc+_0x3884d0),console[_0x38d7df(0x198)]();}
1
+ function a201_0xcd0c(){const _0xc6781c=['676698HfEOCU','stableVersion','\x20\x20\x20Current\x20version:\x20','69016zLZOtI','all','@lovrabet/sdk','version','1.2.0','sdk','node','dependencies','12SVVCtA','107702SbOgDH','\x1b[33m','needsUpgrade','4613874rzgomJ','devDependencies','\x20\x20\x20Stable\x20version:\x20','existsSync','5GCuocv','\x1b[0m','node_modules','168ESQURW','↪\x20SDK\x20update\x20available','parse','readFileSync','join','log','packageName','some','package.json','24LNtSJm','coerce','235989jmCcKC','4966268wJsuLq','1038111nWDIgd','utf8','300CfZYax','latest','test'];a201_0xcd0c=function(){return _0xc6781c;};return a201_0xcd0c();}function a201_0x19f1(_0x13976f,_0x163fe2){_0x13976f=_0x13976f-0xc8;const _0xcd0c5b=a201_0xcd0c();let _0x19f141=_0xcd0c5b[_0x13976f];return _0x19f141;}const a201_0x517d4b=a201_0x19f1;(function(_0x2714fa,_0x31e1f8){const _0x45c92e=a201_0x19f1,_0x6a22c9=_0x2714fa();while(!![]){try{const _0x4149c8=parseInt(_0x45c92e(0xe0))/0x1*(parseInt(_0x45c92e(0xe8))/0x2)+parseInt(_0x45c92e(0xd8))/0x3+-parseInt(_0x45c92e(0xd7))/0x4+-parseInt(_0x45c92e(0xc8))/0x5*(-parseInt(_0x45c92e(0xec))/0x6)+parseInt(_0x45c92e(0xe9))/0x7*(-parseInt(_0x45c92e(0xcb))/0x8)+-parseInt(_0x45c92e(0xd6))/0x9*(-parseInt(_0x45c92e(0xda))/0xa)+-parseInt(_0x45c92e(0xdd))/0xb*(parseInt(_0x45c92e(0xd4))/0xc);if(_0x4149c8===_0x31e1f8)break;else _0x6a22c9['push'](_0x6a22c9['shift']());}catch(_0xe0404c){_0x6a22c9['push'](_0x6a22c9['shift']());}}}(a201_0xcd0c,0x99541));import a201_0x2bae9a from'node:fs';import a201_0x61123f from'node:path';import a201_0xdf5797 from'semver';import{getCdnConfig}from'../utils/cdn-config.js';const FALLBACK_MIN_SDK_VERSION=a201_0x517d4b(0xe4);function isNonNumericVersion(_0x4696c4){const _0x244127=a201_0x517d4b,_0x4a151a=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x4a151a[_0x244127(0xd2)](_0x532905=>_0x532905[_0x244127(0xdc)](_0x4696c4));}function getInstalledVersion(_0x9d5297,_0x513556){const _0x538f92=a201_0x517d4b;try{const _0x38880d=a201_0x61123f[_0x538f92(0xcf)](_0x9d5297,_0x538f92(0xca),_0x513556,_0x538f92(0xd3));if(a201_0x2bae9a[_0x538f92(0xef)](_0x38880d)){const _0x57337d=JSON[_0x538f92(0xcd)](a201_0x2bae9a[_0x538f92(0xce)](_0x38880d,'utf-8'));return _0x57337d['version']||null;}}catch{}return null;}async function getSdkStableVersion(){const _0x47ae1f=a201_0x517d4b;try{const _0x15118f=await getCdnConfig();return _0x15118f?.[_0x47ae1f(0xe5)]?.['node']?.['stableVersion']||null;}catch{return null;}}async function getSdkPackageName(){const _0x939817=a201_0x517d4b;try{const _0x5b2e29=await getCdnConfig();return _0x5b2e29?.[_0x939817(0xe5)]?.[_0x939817(0xe6)]?.[_0x939817(0xd1)]||_0x939817(0xe2);}catch{return _0x939817(0xe2);}}export async function checkSdkVersion(_0x44d9cb){const _0x39ceac=a201_0x517d4b,_0x35d690=a201_0x61123f[_0x39ceac(0xcf)](_0x44d9cb,'package.json'),[_0x4d1f54,_0x1c0195]=await Promise[_0x39ceac(0xe1)]([getSdkStableVersion(),getSdkPackageName()]),_0x40e253=_0x4d1f54||FALLBACK_MIN_SDK_VERSION;if(!a201_0x2bae9a[_0x39ceac(0xef)](_0x35d690))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x40e253,'packageName':_0x1c0195,'stableVersion':_0x4d1f54};try{const _0x23142a=JSON[_0x39ceac(0xcd)](a201_0x2bae9a[_0x39ceac(0xce)](_0x35d690,_0x39ceac(0xd9))),_0x17b56=_0x23142a[_0x39ceac(0xe7)]||{},_0x5cb580=_0x23142a[_0x39ceac(0xed)]||{},_0x1f8d30=_0x17b56[_0x1c0195]||_0x5cb580[_0x1c0195];if(!_0x1f8d30)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x40e253,'packageName':_0x1c0195,'stableVersion':_0x4d1f54};let _0x55d14d=getInstalledVersion(_0x44d9cb,_0x1c0195);!_0x55d14d&&(_0x55d14d=_0x1f8d30);if(isNonNumericVersion(_0x1f8d30))return{'installed':!![],'version':_0x55d14d,'needsUpgrade':![],'minVersion':_0x40e253,'packageName':_0x1c0195,'stableVersion':_0x4d1f54};const _0x24c428=a201_0xdf5797['coerce'](_0x55d14d),_0x289754=a201_0xdf5797[_0x39ceac(0xd5)](_0x40e253),_0xcc1bdb=_0x24c428&&_0x289754?a201_0xdf5797['lt'](_0x24c428,_0x289754):![];return{'installed':!![],'version':_0x55d14d,'needsUpgrade':_0xcc1bdb,'minVersion':_0x40e253,'packageName':_0x1c0195,'stableVersion':_0x4d1f54};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x40e253,'packageName':_0x1c0195,'stableVersion':_0x4d1f54};}}export function checkSdkVersionSync(_0x3d960e){const _0x136b7f=a201_0x517d4b,_0x4b3711=a201_0x61123f['join'](_0x3d960e,_0x136b7f(0xd3)),_0x34fd01=_0x136b7f(0xe2);if(!a201_0x2bae9a[_0x136b7f(0xef)](_0x4b3711))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x34fd01,'stableVersion':null};try{const _0x582431=JSON[_0x136b7f(0xcd)](a201_0x2bae9a[_0x136b7f(0xce)](_0x4b3711,_0x136b7f(0xd9))),_0x366616=_0x582431[_0x136b7f(0xe7)]||{},_0x254001=_0x582431[_0x136b7f(0xed)]||{},_0x32468a=_0x366616[_0x34fd01]||_0x254001[_0x34fd01];if(!_0x32468a)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x34fd01,'stableVersion':null};let _0x10946=getInstalledVersion(_0x3d960e,_0x34fd01);!_0x10946&&(_0x10946=_0x32468a);if(isNonNumericVersion(_0x32468a))return{'installed':!![],'version':_0x10946,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x34fd01,'stableVersion':null};const _0xce2ad0=a201_0xdf5797['coerce'](_0x10946),_0x4eda30=_0xce2ad0?a201_0xdf5797['lt'](_0xce2ad0,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x10946,'needsUpgrade':_0x4eda30,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x34fd01,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x34fd01,'stableVersion':null};}}export function printSdkUpgradeWarning(_0x465e67){const _0x134823=a201_0x517d4b;if(!_0x465e67[_0x134823(0xeb)])return;const _0x463a79=_0x134823(0xea),_0x37eb3f=_0x134823(0xc9),_0x265e30='\x1b[1m',_0x335285=_0x465e67['packageName']||'@lovrabet/sdk',_0xeb2ce5=_0x465e67[_0x134823(0xde)]||_0x465e67['minVersion'],_0x2ccd41='npm\x20install\x20'+_0x335285+'@'+(_0xeb2ce5||_0x134823(0xdb));console['log'](),console['log'](''+_0x463a79+_0x265e30+_0x134823(0xcc)+_0x37eb3f),console[_0x134823(0xd0)](_0x463a79+_0x134823(0xdf)+_0x335285+'@'+_0x465e67[_0x134823(0xe3)]+_0x37eb3f),console[_0x134823(0xd0)](_0x463a79+_0x134823(0xee)+_0xeb2ce5+_0x37eb3f),console[_0x134823(0xd0)](_0x463a79+'\x20\x20\x20Upgrade\x20command:\x20'+_0x2ccd41+_0x37eb3f),console['log']();}
@@ -1 +1 @@
1
- function a201_0x359e(_0x5833e7,_0x4b845c){_0x5833e7=_0x5833e7-0x19e;const _0xb81739=a201_0xb817();let _0x359ee1=_0xb81739[_0x5833e7];return _0x359ee1;}(function(_0xed4e72,_0x5c821f){const _0x233b25=a201_0x359e,_0xbac336=_0xed4e72();while(!![]){try{const _0x4a0b43=-parseInt(_0x233b25(0x1ac))/0x1*(parseInt(_0x233b25(0x1a7))/0x2)+-parseInt(_0x233b25(0x1a8))/0x3+parseInt(_0x233b25(0x1ad))/0x4*(-parseInt(_0x233b25(0x1b5))/0x5)+parseInt(_0x233b25(0x19f))/0x6*(-parseInt(_0x233b25(0x1a6))/0x7)+parseInt(_0x233b25(0x1b4))/0x8+-parseInt(_0x233b25(0x1bf))/0x9+parseInt(_0x233b25(0x1c6))/0xa;if(_0x4a0b43===_0x5c821f)break;else _0xbac336['push'](_0xbac336['shift']());}catch(_0x5385c4){_0xbac336['push'](_0xbac336['shift']());}}}(a201_0xb817,0x2ae9d));import{readFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';import a201_0x19d721 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(_0x508a8b){const _0xc9d711=a201_0x359e,_0x475c8a=_0x508a8b[_0xc9d711(0x1a5)]||_0xc9d711(0x1ba);return'npm\x20install\x20-g\x20'+NPM_PACKAGE_NAME+'@'+_0x475c8a;}function getCurrentCliVersion(){const _0x7f42fa=a201_0x359e;try{const _0x4d6612=fileURLToPath(import.meta.url),_0xde01f5=resolve(dirname(_0x4d6612),_0x7f42fa(0x19e)),_0x437548=resolve(_0xde01f5,_0x7f42fa(0x1b3)),_0x1ec6fd=JSON[_0x7f42fa(0x1c1)](readFileSync(_0x437548,_0x7f42fa(0x1b0)));return _0x1ec6fd[_0x7f42fa(0x1a0)]||'1.0.0';}catch{return _0x7f42fa(0x1b6);}}export async function checkCliVersion(){const _0x3dcbd8=a201_0x359e,_0x200135=getCurrentCliVersion(),_0x3fae30=await getCliVersionPolicy(),_0x3007ac=_0x3fae30?.[_0x3dcbd8(0x1a5)]||null,_0x5037d5=_0x3fae30?.[_0x3dcbd8(0x1c4)]||null;let _0x42771c=![],_0x25dfa0=![];const _0x3f7cc1=a201_0x19d721['coerce'](_0x200135);if(_0x3f7cc1&&_0x3007ac)try{const _0x49268b=a201_0x19d721[_0x3dcbd8(0x1a2)](_0x3007ac);if(_0x49268b)_0x42771c=a201_0x19d721['lt'](_0x3f7cc1,_0x49268b);}catch{}if(_0x3f7cc1&&_0x5037d5)try{const _0x4bac1b=a201_0x19d721['coerce'](_0x5037d5);if(_0x4bac1b)_0x25dfa0=a201_0x19d721['lt'](_0x3f7cc1,_0x4bac1b);}catch{}return _0x25dfa0&&(_0x42771c=!![]),{'currentVersion':_0x200135,'stableVersion':_0x3007ac,'minimumVersion':_0x5037d5,'needsUpgrade':_0x42771c,'belowMinimum':_0x25dfa0,'isPreRelease':![],'upgradeMessage':_0x3fae30?.['upgradeMessage'],'minimumVersionMessage':_0x3fae30?.[_0x3dcbd8(0x1c5)]};}export function printCliUpgradeWarning(_0x5a8ff7){const _0x241be2=a201_0x359e;if(!_0x5a8ff7[_0x241be2(0x1c0)]&&!_0x5a8ff7[_0x241be2(0x1af)])return;const _0x551972=_0x241be2(0x1b7),_0x1b2436=_0x241be2(0x1ab),_0x32c6c7=_0x241be2(0x1a3),_0x249de0=_0x241be2(0x1c2),_0x179f60=getCliUpgradeCommand(_0x5a8ff7);console[_0x241be2(0x1ae)](),_0x5a8ff7[_0x241be2(0x1af)]?(console[_0x241be2(0x1ae)](''+_0x551972+_0x249de0+_0x241be2(0x1b9)+_0x32c6c7),console[_0x241be2(0x1ae)](_0x551972+_0x241be2(0x1bc)+_0x5a8ff7['currentVersion']+_0x32c6c7),_0x5a8ff7[_0x241be2(0x1c4)]&&console['log'](_0x551972+'\x20\x20\x20Minimum\x20supported:\x20'+_0x5a8ff7[_0x241be2(0x1c4)]+_0x32c6c7),_0x5a8ff7[_0x241be2(0x1a5)]&&_0x5a8ff7['stableVersion']!==_0x5a8ff7['minimumVersion']&&console[_0x241be2(0x1ae)](_0x551972+_0x241be2(0x1aa)+_0x5a8ff7[_0x241be2(0x1a5)]+_0x32c6c7),_0x5a8ff7['minimumVersionMessage']&&console[_0x241be2(0x1ae)](_0x551972+_0x241be2(0x1a4)+_0x5a8ff7['minimumVersionMessage']+_0x32c6c7),console[_0x241be2(0x1ae)](_0x551972+_0x241be2(0x1b2)+_0x179f60+_0x32c6c7)):(console[_0x241be2(0x1ae)](''+_0x1b2436+_0x249de0+'↪\x20New\x20version\x20available'+_0x32c6c7),console[_0x241be2(0x1ae)](_0x1b2436+_0x241be2(0x1bc)+_0x5a8ff7[_0x241be2(0x1c3)]+_0x32c6c7),console[_0x241be2(0x1ae)](_0x1b2436+_0x241be2(0x1b8)+_0x5a8ff7['stableVersion']+_0x32c6c7),_0x5a8ff7['upgradeMessage']&&console[_0x241be2(0x1ae)](_0x1b2436+'\x20\x20\x20'+_0x5a8ff7['upgradeMessage']+_0x32c6c7),console[_0x241be2(0x1ae)](_0x1b2436+'\x20\x20\x20Upgrade\x20command:\x20'+_0x179f60+_0x32c6c7)),console['log']();}export function assertCliVersionSupported(_0x48ed95){const _0x1a9674=a201_0x359e;if(!_0x48ed95['belowMinimum'])return;const _0x4f90fe=[_0x48ed95['minimumVersionMessage'],_0x1a9674(0x1a9)+_0x48ed95[_0x1a9674(0x1c3)],_0x48ed95[_0x1a9674(0x1c4)]?'Minimum\x20supported:\x20'+_0x48ed95[_0x1a9674(0x1c4)]:null,_0x1a9674(0x1a1)+getCliUpgradeCommand(_0x48ed95)][_0x1a9674(0x1be)](Boolean)[_0x1a9674(0x1bb)]('\x0a');throw CliErrors[_0x1a9674(0x1b1)](_0x1a9674(0x1bd),_0x4f90fe);}function a201_0xb817(){const _0xcd1e75=['\x20\x20\x20Upgrade\x20command:\x20','package.json','64248OSeDGo','996155afcFKQ','1.0.0','\x1b[31m','\x20\x20\x20Stable\x20version:\x20','↪\x20Critical\x20CLI\x20upgrade\x20required','latest','join','\x20\x20\x20Current\x20CLI\x20version:\x20','Current\x20CLI\x20version\x20is\x20below\x20the\x20service\x20compatibility\x20support\x20line.','filter','542736IGcHXw','needsUpgrade','parse','\x1b[1m','currentVersion','minimumVersion','minimumVersionMessage','8848140tKoQFX','../..','2586JdsTXp','version','Upgrade\x20command:\x20','coerce','\x1b[0m','\x20\x20\x20','stableVersion','3059xMfZaf','2QtgzMb','738009XZVOVE','Current\x20version:\x20','\x20\x20\x20Recommended\x20stable:\x20','\x1b[33m','23187LCNaSf','4KkHmOU','log','belowMinimum','utf-8','validation'];a201_0xb817=function(){return _0xcd1e75;};return a201_0xb817();}
1
+ (function(_0x17a8d0,_0x88e9b8){const _0x49e1a5=a202_0x42fc,_0x12f36f=_0x17a8d0();while(!![]){try{const _0x31d328=parseInt(_0x49e1a5(0xf6))/0x1+-parseInt(_0x49e1a5(0xfc))/0x2+-parseInt(_0x49e1a5(0xdb))/0x3+-parseInt(_0x49e1a5(0xdc))/0x4+-parseInt(_0x49e1a5(0xf8))/0x5*(-parseInt(_0x49e1a5(0xfe))/0x6)+parseInt(_0x49e1a5(0xe0))/0x7+parseInt(_0x49e1a5(0xe2))/0x8;if(_0x31d328===_0x88e9b8)break;else _0x12f36f['push'](_0x12f36f['shift']());}catch(_0x587a4e){_0x12f36f['push'](_0x12f36f['shift']());}}}(a202_0xc3bb,0x430c1));import{readFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';import a202_0x3e3448 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(_0x40d1ff){const _0x59514d=a202_0x42fc,_0x37da92=_0x40d1ff['stableVersion']||'latest';return _0x59514d(0xea)+NPM_PACKAGE_NAME+'@'+_0x37da92;}function getCurrentCliVersion(){const _0x319254=a202_0x42fc;try{const _0x3aaf05=fileURLToPath(import.meta.url),_0x4e0296=resolve(dirname(_0x3aaf05),_0x319254(0xe6)),_0x327963=resolve(_0x4e0296,_0x319254(0xd9)),_0x5adb35=JSON[_0x319254(0xfd)](readFileSync(_0x327963,'utf-8'));return _0x5adb35[_0x319254(0xdf)]||_0x319254(0xf0);}catch{return _0x319254(0xf0);}}export async function checkCliVersion(){const _0x5db61f=a202_0x42fc,_0xe288cf=getCurrentCliVersion(),_0x1cb69a=await getCliVersionPolicy(),_0x1bc126=_0x1cb69a?.[_0x5db61f(0xfa)]||null,_0x4c06de=_0x1cb69a?.[_0x5db61f(0xec)]||null;let _0x5534a7=![],_0x1ea8cc=![];const _0x49a0a3=a202_0x3e3448[_0x5db61f(0xeb)](_0xe288cf);if(_0x49a0a3&&_0x1bc126)try{const _0x537ac4=a202_0x3e3448[_0x5db61f(0xeb)](_0x1bc126);if(_0x537ac4)_0x5534a7=a202_0x3e3448['lt'](_0x49a0a3,_0x537ac4);}catch{}if(_0x49a0a3&&_0x4c06de)try{const _0x1e8499=a202_0x3e3448[_0x5db61f(0xeb)](_0x4c06de);if(_0x1e8499)_0x1ea8cc=a202_0x3e3448['lt'](_0x49a0a3,_0x1e8499);}catch{}return _0x1ea8cc&&(_0x5534a7=!![]),{'currentVersion':_0xe288cf,'stableVersion':_0x1bc126,'minimumVersion':_0x4c06de,'needsUpgrade':_0x5534a7,'belowMinimum':_0x1ea8cc,'isPreRelease':![],'upgradeMessage':_0x1cb69a?.[_0x5db61f(0xf2)],'minimumVersionMessage':_0x1cb69a?.[_0x5db61f(0xfb)]};}function a202_0xc3bb(){const _0x2a89d5=['upgradeMessage','\x20\x20\x20Recommended\x20stable:\x20','\x1b[31m','\x20\x20\x20','192678PfVIbN','↪\x20New\x20version\x20available','873640LqlRxh','\x1b[0m','stableVersion','minimumVersionMessage','521444fBtipo','parse','12AVccHq','package.json','Minimum\x20supported:\x20','1331073ZgKoxn','1807256nHkUwK','belowMinimum','validation','version','3686445lUpWIG','\x1b[1m','2896664UdIqEF','currentVersion','↪\x20Critical\x20CLI\x20upgrade\x20required','Current\x20CLI\x20version\x20is\x20below\x20the\x20service\x20compatibility\x20support\x20line.','../..','needsUpgrade','Upgrade\x20command:\x20','\x20\x20\x20Upgrade\x20command:\x20','npm\x20install\x20-g\x20','coerce','minimumVersion','\x20\x20\x20Minimum\x20supported:\x20','\x20\x20\x20Current\x20CLI\x20version:\x20','\x1b[33m','1.0.0','log'];a202_0xc3bb=function(){return _0x2a89d5;};return a202_0xc3bb();}export function printCliUpgradeWarning(_0xe7906f){const _0x1c989c=a202_0x42fc;if(!_0xe7906f[_0x1c989c(0xe7)]&&!_0xe7906f[_0x1c989c(0xdd)])return;const _0x553a86=_0x1c989c(0xf4),_0x779b90=_0x1c989c(0xef),_0x3ed7ff=_0x1c989c(0xf9),_0x544593=_0x1c989c(0xe1),_0x207551=getCliUpgradeCommand(_0xe7906f);console['log'](),_0xe7906f[_0x1c989c(0xdd)]?(console[_0x1c989c(0xf1)](''+_0x553a86+_0x544593+_0x1c989c(0xe4)+_0x3ed7ff),console[_0x1c989c(0xf1)](_0x553a86+_0x1c989c(0xee)+_0xe7906f[_0x1c989c(0xe3)]+_0x3ed7ff),_0xe7906f[_0x1c989c(0xec)]&&console[_0x1c989c(0xf1)](_0x553a86+_0x1c989c(0xed)+_0xe7906f[_0x1c989c(0xec)]+_0x3ed7ff),_0xe7906f[_0x1c989c(0xfa)]&&_0xe7906f['stableVersion']!==_0xe7906f[_0x1c989c(0xec)]&&console[_0x1c989c(0xf1)](_0x553a86+_0x1c989c(0xf3)+_0xe7906f[_0x1c989c(0xfa)]+_0x3ed7ff),_0xe7906f[_0x1c989c(0xfb)]&&console[_0x1c989c(0xf1)](_0x553a86+_0x1c989c(0xf5)+_0xe7906f['minimumVersionMessage']+_0x3ed7ff),console['log'](_0x553a86+_0x1c989c(0xe9)+_0x207551+_0x3ed7ff)):(console[_0x1c989c(0xf1)](''+_0x779b90+_0x544593+_0x1c989c(0xf7)+_0x3ed7ff),console['log'](_0x779b90+'\x20\x20\x20Current\x20CLI\x20version:\x20'+_0xe7906f[_0x1c989c(0xe3)]+_0x3ed7ff),console[_0x1c989c(0xf1)](_0x779b90+'\x20\x20\x20Stable\x20version:\x20'+_0xe7906f[_0x1c989c(0xfa)]+_0x3ed7ff),_0xe7906f['upgradeMessage']&&console[_0x1c989c(0xf1)](_0x779b90+_0x1c989c(0xf5)+_0xe7906f['upgradeMessage']+_0x3ed7ff),console[_0x1c989c(0xf1)](_0x779b90+_0x1c989c(0xe9)+_0x207551+_0x3ed7ff)),console['log']();}function a202_0x42fc(_0x1d5881,_0xb022f0){_0x1d5881=_0x1d5881-0xd9;const _0xc3bb46=a202_0xc3bb();let _0x42fcb1=_0xc3bb46[_0x1d5881];return _0x42fcb1;}export function assertCliVersionSupported(_0x44941d){const _0x3dc2b3=a202_0x42fc;if(!_0x44941d[_0x3dc2b3(0xdd)])return;const _0x2a2629=[_0x44941d[_0x3dc2b3(0xfb)],'Current\x20version:\x20'+_0x44941d[_0x3dc2b3(0xe3)],_0x44941d[_0x3dc2b3(0xec)]?_0x3dc2b3(0xda)+_0x44941d[_0x3dc2b3(0xec)]:null,_0x3dc2b3(0xe8)+getCliUpgradeCommand(_0x44941d)]['filter'](Boolean)['join']('\x0a');throw CliErrors[_0x3dc2b3(0xde)](_0x3dc2b3(0xe5),_0x2a2629);}
@@ -1 +1 @@
1
- (function(_0x1acc74,_0x1cc31d){const _0x12ae2c=a202_0x221b,_0x3807e7=_0x1acc74();while(!![]){try{const _0x39e27f=-parseInt(_0x12ae2c(0x14e))/0x1+parseInt(_0x12ae2c(0x141))/0x2+parseInt(_0x12ae2c(0x14c))/0x3*(-parseInt(_0x12ae2c(0x140))/0x4)+parseInt(_0x12ae2c(0x151))/0x5+-parseInt(_0x12ae2c(0x14a))/0x6*(-parseInt(_0x12ae2c(0x143))/0x7)+parseInt(_0x12ae2c(0x14d))/0x8+parseInt(_0x12ae2c(0x150))/0x9*(-parseInt(_0x12ae2c(0x13f))/0xa);if(_0x39e27f===_0x1cc31d)break;else _0x3807e7['push'](_0x3807e7['shift']());}catch(_0x3cc189){_0x3807e7['push'](_0x3807e7['shift']());}}}(a202_0x4cde,0x1ab79));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(_0xfeb72){const _0x2148f8=a202_0x221b;return typeof _0xfeb72===_0x2148f8(0x152)&&_0xfeb72[_0x2148f8(0x145)]()['length']>0x0?_0xfeb72[_0x2148f8(0x145)]():null;}function a202_0x4cde(){const _0x3d8161=['564700EXimLf','string','json','stableVersion','minVersion','45010DWGAyI','77484jiXTiG','340156YJKrWW','signal','175udSSyq','abort','trim','cli','now','latestVersion','minimumVersion','3198vOyikW','object','9fCVFvL','1131872VmMzBb','58734PVCqcJ','application/json','423bPijFN'];a202_0x4cde=function(){return _0x3d8161;};return a202_0x4cde();}function normalizeCliVersionPolicy(_0x205689){const _0xf98048=a202_0x221b;if(!_0x205689||typeof _0x205689!=='object')return null;const _0x12e7a5=_0x205689,_0x4a348e=_0x12e7a5[_0xf98048(0x146)]&&typeof _0x12e7a5[_0xf98048(0x146)]===_0xf98048(0x14b)?_0x12e7a5['cli']:_0x12e7a5,_0x5c75fd=pickString(_0x4a348e[_0xf98048(0x154)])||pickString(_0x4a348e[_0xf98048(0x148)])||pickString(_0x4a348e['recommendedVersion']),_0x255c60=pickString(_0x4a348e[_0xf98048(0x149)])||pickString(_0x4a348e[_0xf98048(0x155)]);if(!_0x5c75fd&&!_0x255c60)return null;return{'stableVersion':_0x5c75fd,'minimumVersion':_0x255c60,'upgradeMessage':pickString(_0x4a348e['upgradeMessage'])||undefined,'minimumVersionMessage':pickString(_0x4a348e['minimumVersionMessage'])||undefined};}export async function fetchCliVersionPolicy(){const _0xf6a5a3=a202_0x221b,_0x25b1f5=new AbortController(),_0x38c9a3=setTimeout(()=>_0x25b1f5[_0xf6a5a3(0x144)](),FETCH_TIMEOUT_MS);try{const _0x58abc6=await fetch(CLI_VERSION_POLICY_URL,{'headers':{'Accept':_0xf6a5a3(0x14f)},'signal':_0x25b1f5[_0xf6a5a3(0x142)]});if(!_0x58abc6['ok'])return null;const _0x483f7f=await _0x58abc6[_0xf6a5a3(0x153)]();return normalizeCliVersionPolicy(_0x483f7f);}catch{return null;}finally{clearTimeout(_0x38c9a3);}}function a202_0x221b(_0x4c256b,_0x58c882){_0x4c256b=_0x4c256b-0x13f;const _0x4cde69=a202_0x4cde();let _0x221b4b=_0x4cde69[_0x4c256b];return _0x221b4b;}let cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];export async function getCliVersionPolicy(){const _0x2d01dc=a202_0x221b,_0xec835a=Date[_0x2d01dc(0x147)]();if(hasCachedPolicy){const _0x5312b0=cachedPolicy?CACHE_TTL:FAILURE_CACHE_TTL;if(_0xec835a-cacheTime<_0x5312b0)return cachedPolicy;}const _0x379aa9=await fetchCliVersionPolicy();return cachedPolicy=_0x379aa9,cacheTime=_0xec835a,hasCachedPolicy=!![],_0x379aa9;}export function clearCliVersionPolicyCache(){cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];}
1
+ function a203_0x3624(){const _0x47dacf=['1269936ExPLQy','abort','upgradeMessage','string','1653060jKxvun','json','1564548ByrmCx','length','minimumVersion','application/json','signal','minVersion','365015WvSYAq','cli','2301912lneYKU','36BlsVAm','2412dNQiUN','latestVersion','1094151oUTTYW','stableVersion','object','2CSQiFV','trim'];a203_0x3624=function(){return _0x47dacf;};return a203_0x3624();}(function(_0x59c798,_0x53a6ab){const _0x430ebc=a203_0x1101,_0x1045db=_0x59c798();while(!![]){try{const _0x47d16f=parseInt(_0x430ebc(0x1ef))/0x1+parseInt(_0x430ebc(0x1f4))/0x2*(parseInt(_0x430ebc(0x1f1))/0x3)+parseInt(_0x430ebc(0x1e5))/0x4+-parseInt(_0x430ebc(0x1e3))/0x5+-parseInt(_0x430ebc(0x1ee))/0x6*(parseInt(_0x430ebc(0x1eb))/0x7)+parseInt(_0x430ebc(0x1ed))/0x8+-parseInt(_0x430ebc(0x1f6))/0x9;if(_0x47d16f===_0x53a6ab)break;else _0x1045db['push'](_0x1045db['shift']());}catch(_0x2e41b1){_0x1045db['push'](_0x1045db['shift']());}}}(a203_0x3624,0x3fd2b));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(_0x49e62c){const _0x4ff9d7=a203_0x1101;return typeof _0x49e62c===_0x4ff9d7(0x1e2)&&_0x49e62c['trim']()[_0x4ff9d7(0x1e6)]>0x0?_0x49e62c[_0x4ff9d7(0x1f5)]():null;}function normalizeCliVersionPolicy(_0x47a3f7){const _0x1420ca=a203_0x1101;if(!_0x47a3f7||typeof _0x47a3f7!=='object')return null;const _0x33e85c=_0x47a3f7,_0x3060b9=_0x33e85c[_0x1420ca(0x1ec)]&&typeof _0x33e85c[_0x1420ca(0x1ec)]===_0x1420ca(0x1f3)?_0x33e85c[_0x1420ca(0x1ec)]:_0x33e85c,_0x301be4=pickString(_0x3060b9[_0x1420ca(0x1f2)])||pickString(_0x3060b9[_0x1420ca(0x1f0)])||pickString(_0x3060b9['recommendedVersion']),_0xec6bba=pickString(_0x3060b9[_0x1420ca(0x1e7)])||pickString(_0x3060b9[_0x1420ca(0x1ea)]);if(!_0x301be4&&!_0xec6bba)return null;return{'stableVersion':_0x301be4,'minimumVersion':_0xec6bba,'upgradeMessage':pickString(_0x3060b9[_0x1420ca(0x1e1)])||undefined,'minimumVersionMessage':pickString(_0x3060b9['minimumVersionMessage'])||undefined};}export async function fetchCliVersionPolicy(){const _0xfbea0b=a203_0x1101,_0xac6253=new AbortController(),_0x1f2e1b=setTimeout(()=>_0xac6253[_0xfbea0b(0x1e0)](),FETCH_TIMEOUT_MS);try{const _0xc0c524=await fetch(CLI_VERSION_POLICY_URL,{'headers':{'Accept':_0xfbea0b(0x1e8)},'signal':_0xac6253[_0xfbea0b(0x1e9)]});if(!_0xc0c524['ok'])return null;const _0x26b8e4=await _0xc0c524[_0xfbea0b(0x1e4)]();return normalizeCliVersionPolicy(_0x26b8e4);}catch{return null;}finally{clearTimeout(_0x1f2e1b);}}function a203_0x1101(_0x13bb6f,_0x3e32ab){_0x13bb6f=_0x13bb6f-0x1e0;const _0x3624f9=a203_0x3624();let _0x11017e=_0x3624f9[_0x13bb6f];return _0x11017e;}let cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];export async function getCliVersionPolicy(){const _0xf52918=Date['now']();if(hasCachedPolicy){const _0x252130=cachedPolicy?CACHE_TTL:FAILURE_CACHE_TTL;if(_0xf52918-cacheTime<_0x252130)return cachedPolicy;}const _0x253d4f=await fetchCliVersionPolicy();return cachedPolicy=_0x253d4f,cacheTime=_0xf52918,hasCachedPolicy=!![],_0x253d4f;}export function clearCliVersionPolicyCache(){cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];}
@@ -1 +1 @@
1
- const a203_0x487d32=a203_0x42fa;(function(_0x4d176b,_0x51022b){const _0x433d02=a203_0x42fa,_0x472854=_0x4d176b();while(!![]){try{const _0x3afa8c=parseInt(_0x433d02(0xf9))/0x1*(parseInt(_0x433d02(0xf7))/0x2)+-parseInt(_0x433d02(0xfd))/0x3+-parseInt(_0x433d02(0xf6))/0x4+parseInt(_0x433d02(0xf8))/0x5+-parseInt(_0x433d02(0xf5))/0x6*(parseInt(_0x433d02(0xf3))/0x7)+parseInt(_0x433d02(0xfa))/0x8+parseInt(_0x433d02(0xfc))/0x9;if(_0x3afa8c===_0x51022b)break;else _0x472854['push'](_0x472854['shift']());}catch(_0x557b46){_0x472854['push'](_0x472854['shift']());}}}(a203_0x55bc,0xee2e9));import{initEnv}from'../constant/env.js';function a203_0x55bc(){const _0x2104a1=['project','9357124sGmJsO','env','6iWBBYy','6069264AKrigz','252PFvIBD','3505520hTOhUX','3189qdTCbf','10866064ghHfQx','string','14182065HgEzcw','621960IrryZP'];a203_0x55bc=function(){return _0x2104a1;};return a203_0x55bc();}import{readRawConfig,getConfigAppCode as a203_0x2b09ae,getMultiAppConfigs as a203_0x11c998,getTemplateBaseUrl as a203_0xfb36d8}from'../context.js';export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';export{isInProject}from'../context.js';function a203_0x42fa(_0x1ae822,_0x319968){_0x1ae822=_0x1ae822-0xf3;const _0x55bcfc=a203_0x55bc();let _0x42fa9f=_0x55bcfc[_0x1ae822];return _0x42fa9f;}export function readConfig(_0x59a293){const _0x4512cd=a203_0x42fa,_0x2c9618=readRawConfig(_0x59a293);return _0x2c9618[_0x4512cd(0xf4)]&&typeof _0x2c9618[_0x4512cd(0xf4)]===_0x4512cd(0xfb)&&initEnv(_0x2c9618[_0x4512cd(0xf4)]),_0x2c9618;}export function getConfigAppCode(){return a203_0x2b09ae();}export function getMultiAppConfigs(_0x3bdc28=a203_0x487d32(0xfe)){return a203_0x11c998(_0x3bdc28);}export function getTemplateBaseUrl(){return a203_0xfb36d8();}
1
+ const a204_0x59912c=a204_0x37f6;(function(_0x5759e5,_0x27aca4){const _0x3cc45e=a204_0x37f6,_0x3d52ae=_0x5759e5();while(!![]){try{const _0x25566c=-parseInt(_0x3cc45e(0x123))/0x1*(-parseInt(_0x3cc45e(0x11e))/0x2)+parseInt(_0x3cc45e(0x120))/0x3+-parseInt(_0x3cc45e(0x122))/0x4+-parseInt(_0x3cc45e(0x11a))/0x5*(parseInt(_0x3cc45e(0x119))/0x6)+-parseInt(_0x3cc45e(0x121))/0x7+-parseInt(_0x3cc45e(0x125))/0x8*(-parseInt(_0x3cc45e(0x11d))/0x9)+parseInt(_0x3cc45e(0x11b))/0xa;if(_0x25566c===_0x27aca4)break;else _0x3d52ae['push'](_0x3d52ae['shift']());}catch(_0x3913d7){_0x3d52ae['push'](_0x3d52ae['shift']());}}}(a204_0x176d,0x8b053));function a204_0x37f6(_0x5588b4,_0x4a482a){_0x5588b4=_0x5588b4-0x119;const _0x176d99=a204_0x176d();let _0x37f6cd=_0x176d99[_0x5588b4];return _0x37f6cd;}import{initEnv}from'../constant/env.js';import{readRawConfig,getConfigAppCode as a204_0x5f49db,getMultiAppConfigs as a204_0x4da389,getTemplateBaseUrl as a204_0x29232f}from'../context.js';function a204_0x176d(){const _0x33127f=['project','1678647GBsagb','5303585hLeTFG','2783304uXmZpQ','1zAjzTj','string','153704SPvEqc','42360KFXGeX','620NGpDuW','8390250MhbQdH','env','351gAmbHR','1500934FYWasK'];a204_0x176d=function(){return _0x33127f;};return a204_0x176d();}export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';export{isInProject}from'../context.js';export function readConfig(_0xf557a7){const _0x50e0c2=a204_0x37f6,_0x42056b=readRawConfig(_0xf557a7);return _0x42056b[_0x50e0c2(0x11c)]&&typeof _0x42056b[_0x50e0c2(0x11c)]===_0x50e0c2(0x124)&&initEnv(_0x42056b[_0x50e0c2(0x11c)]),_0x42056b;}export function getConfigAppCode(){return a204_0x5f49db();}export function getMultiAppConfigs(_0x2711c3=a204_0x59912c(0x11f)){return a204_0x4da389(_0x2711c3);}export function getTemplateBaseUrl(){return a204_0x29232f();}
@@ -1 +1 @@
1
- function a204_0x1789(){const _0x3e5286=['join','isDirectory','name','readdirSync','316zyJwjV','27480hCJJae','10968WLomOT','1048XwMBfM','4347368dMRJGI','384secSka','mkdirSync','4358370vFYIwk','1827HAQSps','904428ObNNDX','复制目录时出错:','12827930EoVIfs','error'];a204_0x1789=function(){return _0x3e5286;};return a204_0x1789();}(function(_0x42144b,_0xc98ba0){const _0x192bf5=a204_0x49e4,_0x157c2c=_0x42144b();while(!![]){try{const _0x464db4=-parseInt(_0x192bf5(0x18f))/0x1*(parseInt(_0x192bf5(0x18c))/0x2)+parseInt(_0x192bf5(0x191))/0x3*(-parseInt(_0x192bf5(0x18d))/0x4)+-parseInt(_0x192bf5(0x182))/0x5+-parseInt(_0x192bf5(0x18e))/0x6*(-parseInt(_0x192bf5(0x183))/0x7)+parseInt(_0x192bf5(0x190))/0x8+parseInt(_0x192bf5(0x184))/0x9+parseInt(_0x192bf5(0x186))/0xa;if(_0x464db4===_0xc98ba0)break;else _0x157c2c['push'](_0x157c2c['shift']());}catch(_0x5191bb){_0x157c2c['push'](_0x157c2c['shift']());}}}(a204_0x1789,0x76f1c));import a204_0x20ea74 from'node:path';import a204_0x169bab from'node:fs';function a204_0x49e4(_0x625d68,_0x384283){_0x625d68=_0x625d68-0x182;const _0x178931=a204_0x1789();let _0x49e41d=_0x178931[_0x625d68];return _0x49e41d;}export async function copyDirectory(_0x55cb02,_0x5d952a){const _0x2747b6=a204_0x49e4;try{const _0x8e8ff1=a204_0x169bab[_0x2747b6(0x18b)](_0x55cb02,{'withFileTypes':!![]});a204_0x169bab[_0x2747b6(0x192)](_0x5d952a,{'recursive':!![]});for(const _0x164d1a of _0x8e8ff1){const _0x134283=a204_0x20ea74[_0x2747b6(0x188)](_0x55cb02,_0x164d1a['name']),_0x15d2d5=a204_0x20ea74['join'](_0x5d952a,_0x164d1a[_0x2747b6(0x18a)]);_0x164d1a[_0x2747b6(0x189)]()?await copyDirectory(_0x134283,_0x15d2d5):a204_0x169bab['copyFileSync'](_0x134283,_0x15d2d5);}}catch(_0x46e45b){console[_0x2747b6(0x187)](_0x2747b6(0x185),_0x46e45b);}}
1
+ (function(_0x3d4583,_0x153b19){const _0x1f5477=a205_0xbac2,_0x25b028=_0x3d4583();while(!![]){try{const _0x10e2b8=-parseInt(_0x1f5477(0x171))/0x1+parseInt(_0x1f5477(0x17c))/0x2*(-parseInt(_0x1f5477(0x178))/0x3)+-parseInt(_0x1f5477(0x16e))/0x4*(parseInt(_0x1f5477(0x16b))/0x5)+parseInt(_0x1f5477(0x16f))/0x6*(parseInt(_0x1f5477(0x17b))/0x7)+parseInt(_0x1f5477(0x175))/0x8*(-parseInt(_0x1f5477(0x173))/0x9)+parseInt(_0x1f5477(0x16d))/0xa+parseInt(_0x1f5477(0x170))/0xb*(parseInt(_0x1f5477(0x172))/0xc);if(_0x10e2b8===_0x153b19)break;else _0x25b028['push'](_0x25b028['shift']());}catch(_0x452e85){_0x25b028['push'](_0x25b028['shift']());}}}(a205_0x4ee8,0xb5f20));import a205_0x3ba429 from'node:path';function a205_0x4ee8(){const _0x113ade=['7BBvCJJ','178KTttpX','24605RYXMop','readdirSync','10282860VJgUWW','4AgwvRe','466350HWnktY','32290885pxbATI','915032aOBuOM','12GVeeNF','9cYHCad','name','11708488fshulp','join','copyFileSync','30768WQpOvM','error','mkdirSync'];a205_0x4ee8=function(){return _0x113ade;};return a205_0x4ee8();}import a205_0x35502d from'node:fs';function a205_0xbac2(_0x5e6e5a,_0x5a7d78){_0x5e6e5a=_0x5e6e5a-0x16b;const _0x4ee8dc=a205_0x4ee8();let _0xbac244=_0x4ee8dc[_0x5e6e5a];return _0xbac244;}export async function copyDirectory(_0x3acd4f,_0x100810){const _0x2d8fc9=a205_0xbac2;try{const _0x2b700d=a205_0x35502d[_0x2d8fc9(0x16c)](_0x3acd4f,{'withFileTypes':!![]});a205_0x35502d[_0x2d8fc9(0x17a)](_0x100810,{'recursive':!![]});for(const _0x5d23ab of _0x2b700d){const _0x4c512d=a205_0x3ba429[_0x2d8fc9(0x176)](_0x3acd4f,_0x5d23ab[_0x2d8fc9(0x174)]),_0x3db3c1=a205_0x3ba429[_0x2d8fc9(0x176)](_0x100810,_0x5d23ab['name']);_0x5d23ab['isDirectory']()?await copyDirectory(_0x4c512d,_0x3db3c1):a205_0x35502d[_0x2d8fc9(0x177)](_0x4c512d,_0x3db3c1);}}catch(_0x50b13c){console[_0x2d8fc9(0x179)]('复制目录时出错:',_0x50b13c);}}
@@ -1 +1 @@
1
- function a205_0x591d(_0x3ba20f,_0x45f481){_0x3ba20f=_0x3ba20f-0x1b3;const _0x20179e=a205_0x2017();let _0x591d38=_0x20179e[_0x3ba20f];return _0x591d38;}(function(_0xfc6205,_0x3788a4){const _0x50c501=a205_0x591d,_0x567c22=_0xfc6205();while(!![]){try{const _0x4269ae=-parseInt(_0x50c501(0x1bf))/0x1+-parseInt(_0x50c501(0x1b6))/0x2+-parseInt(_0x50c501(0x1b8))/0x3+-parseInt(_0x50c501(0x1bd))/0x4+-parseInt(_0x50c501(0x1ba))/0x5*(parseInt(_0x50c501(0x1bb))/0x6)+parseInt(_0x50c501(0x1bc))/0x7*(-parseInt(_0x50c501(0x1b3))/0x8)+parseInt(_0x50c501(0x1be))/0x9*(parseInt(_0x50c501(0x1b9))/0xa);if(_0x4269ae===_0x3788a4)break;else _0x567c22['push'](_0x567c22['shift']());}catch(_0x3826ce){_0x567c22['push'](_0x567c22['shift']());}}}(a205_0x2017,0x87d3b));function a205_0x2017(){const _0x2a29db=['56ztayIK','1529264NknPUh','4777173TflFBt','65274Qcpjfd','trim','1071944zTfwbH','object','string','295190WZaddq','isFinite','2906253YwKwiM','80oCPZSP','1756915KGwqwj','18VQBZoH'];a205_0x2017=function(){return _0x2a29db;};return a205_0x2017();}function toFiniteNumber(_0x200a59){const _0x13ef9c=a205_0x591d;if(typeof _0x200a59==='number'&&Number['isFinite'](_0x200a59))return _0x200a59;if(typeof _0x200a59===_0x13ef9c(0x1b5)){const _0x26f3ac=_0x200a59[_0x13ef9c(0x1c0)]();if(!_0x26f3ac)return undefined;const _0xbd13a2=Number(_0x26f3ac);if(Number[_0x13ef9c(0x1b7)](_0xbd13a2))return _0xbd13a2;}return undefined;}export function normalizeEntityWithIdResponse(_0x3820c7){const _0x162265=a205_0x591d,_0x455ebf=toFiniteNumber(_0x3820c7);if(_0x455ebf!==undefined)return{'id':_0x455ebf,'entity':{'id':_0x455ebf}};if(!_0x3820c7||typeof _0x3820c7!==_0x162265(0x1b4))return{'id':undefined,'entity':{}};const _0x21fe19={..._0x3820c7},_0x5959ff=toFiniteNumber(_0x21fe19['id']);return _0x5959ff!==undefined&&(_0x21fe19['id']=_0x5959ff),{'id':_0x5959ff,'entity':_0x21fe19};}
1
+ (function(_0x33c69f,_0x5dd7e0){const _0x5a1575=a206_0x159f,_0x4d1f5e=_0x33c69f();while(!![]){try{const _0x5cb79c=-parseInt(_0x5a1575(0xdc))/0x1*(parseInt(_0x5a1575(0xe6))/0x2)+-parseInt(_0x5a1575(0xe3))/0x3*(parseInt(_0x5a1575(0xe0))/0x4)+-parseInt(_0x5a1575(0xde))/0x5*(-parseInt(_0x5a1575(0xdf))/0x6)+parseInt(_0x5a1575(0xe9))/0x7+-parseInt(_0x5a1575(0xe1))/0x8+-parseInt(_0x5a1575(0xe2))/0x9*(-parseInt(_0x5a1575(0xe7))/0xa)+parseInt(_0x5a1575(0xe8))/0xb;if(_0x5cb79c===_0x5dd7e0)break;else _0x4d1f5e['push'](_0x4d1f5e['shift']());}catch(_0x47e554){_0x4d1f5e['push'](_0x4d1f5e['shift']());}}}(a206_0xa18c,0x7936b));function a206_0x159f(_0x40ea4d,_0x571541){_0x40ea4d=_0x40ea4d-0xdc;const _0xa18cc7=a206_0xa18c();let _0x159f77=_0xa18cc7[_0x40ea4d];return _0x159f77;}function a206_0xa18c(){const _0x5dbccc=['54lplocf','592017KMiTtx','trim','number','86gbEdLF','1392100YJaOZo','513623PdYFkc','4622233YstFul','object','string','5385cukzqU','isFinite','5iLzPwd','1066902kSVuBy','12NiPZpN','3200208xoBVkH'];a206_0xa18c=function(){return _0x5dbccc;};return a206_0xa18c();}function toFiniteNumber(_0x39c0bd){const _0x101ea9=a206_0x159f;if(typeof _0x39c0bd===_0x101ea9(0xe5)&&Number['isFinite'](_0x39c0bd))return _0x39c0bd;if(typeof _0x39c0bd===_0x101ea9(0xeb)){const _0x47984f=_0x39c0bd[_0x101ea9(0xe4)]();if(!_0x47984f)return undefined;const _0x24a631=Number(_0x47984f);if(Number[_0x101ea9(0xdd)](_0x24a631))return _0x24a631;}return undefined;}export function normalizeEntityWithIdResponse(_0x59f5cd){const _0x2c2e05=a206_0x159f,_0x474a5c=toFiniteNumber(_0x59f5cd);if(_0x474a5c!==undefined)return{'id':_0x474a5c,'entity':{'id':_0x474a5c}};if(!_0x59f5cd||typeof _0x59f5cd!==_0x2c2e05(0xea))return{'id':undefined,'entity':{}};const _0x1d4a68={..._0x59f5cd},_0x2683a3=toFiniteNumber(_0x1d4a68['id']);return _0x2683a3!==undefined&&(_0x1d4a68['id']=_0x2683a3),{'id':_0x2683a3,'entity':_0x1d4a68};}
@@ -1 +1 @@
1
- function a206_0x2ffe(){const _0x345424=['495krIctv','5760365HRKwJu','294872MMhhYn','4078881OAQTVd','26718TngrGj','192vDdkRT','10UscBpB','193afNwep','147ppjPhG','1902WNzkez','401093arHgbh','isDirectory','1001712nyvfsq','4tpyPkY'];a206_0x2ffe=function(){return _0x345424;};return a206_0x2ffe();}(function(_0x46ae35,_0x35eb05){const _0x45c671=a206_0x290f,_0x1a2c95=_0x46ae35();while(!![]){try{const _0x6a11a7=parseInt(_0x45c671(0xf8))/0x1*(-parseInt(_0x45c671(0xfa))/0x2)+-parseInt(_0x45c671(0xef))/0x3*(-parseInt(_0x45c671(0xf0))/0x4)+-parseInt(_0x45c671(0xf1))/0x5*(-parseInt(_0x45c671(0xf5))/0x6)+-parseInt(_0x45c671(0xf9))/0x7*(parseInt(_0x45c671(0xf3))/0x8)+-parseInt(_0x45c671(0xf4))/0x9*(parseInt(_0x45c671(0xf7))/0xa)+parseInt(_0x45c671(0xfb))/0xb*(parseInt(_0x45c671(0xf6))/0xc)+parseInt(_0x45c671(0xf2))/0xd;if(_0x6a11a7===_0x35eb05)break;else _0x1a2c95['push'](_0x1a2c95['shift']());}catch(_0x354c8b){_0x1a2c95['push'](_0x1a2c95['shift']());}}}(a206_0x2ffe,0x5f549));import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';function a206_0x290f(_0x4533b3,_0x11113b){_0x4533b3=_0x4533b3-0xef;const _0x2ffe8e=a206_0x2ffe();let _0x290fde=_0x2ffe8e[_0x4533b3];return _0x290fde;}import{join}from'node:path';export async function copyDir(_0x20090d,_0x1bf2da){const _0x19674d=a206_0x290f,_0x5e74c=statSync(_0x20090d);if(_0x5e74c[_0x19674d(0xfc)]()){!existsSync(_0x1bf2da)&&mkdirSync(_0x1bf2da,{'recursive':!![]});const _0x4cf195=readdirSync(_0x20090d);for(const _0x3bb5e6 of _0x4cf195){await copyDir(join(_0x20090d,_0x3bb5e6),join(_0x1bf2da,_0x3bb5e6));}}else copyFileSync(_0x20090d,_0x1bf2da);}export function ensureDir(_0x250153){!existsSync(_0x250153)&&mkdirSync(_0x250153,{'recursive':!![]});}export function pathExists(_0x4776cf){return existsSync(_0x4776cf);}
1
+ (function(_0x55ff11,_0x25f1b9){const _0xed5a8a=a207_0x26bc,_0x26a2f9=_0x55ff11();while(!![]){try{const _0x5e8866=-parseInt(_0xed5a8a(0x14a))/0x1*(-parseInt(_0xed5a8a(0x14b))/0x2)+parseInt(_0xed5a8a(0x153))/0x3+-parseInt(_0xed5a8a(0x150))/0x4+-parseInt(_0xed5a8a(0x14d))/0x5*(-parseInt(_0xed5a8a(0x152))/0x6)+-parseInt(_0xed5a8a(0x151))/0x7*(-parseInt(_0xed5a8a(0x14e))/0x8)+parseInt(_0xed5a8a(0x155))/0x9*(-parseInt(_0xed5a8a(0x14f))/0xa)+parseInt(_0xed5a8a(0x14c))/0xb*(-parseInt(_0xed5a8a(0x154))/0xc);if(_0x5e8866===_0x25f1b9)break;else _0x26a2f9['push'](_0x26a2f9['shift']());}catch(_0x280d0f){_0x26a2f9['push'](_0x26a2f9['shift']());}}}(a207_0x5ab6,0x45e5c));import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';import{join}from'node:path';export async function copyDir(_0x12a8bc,_0x20075d){const _0xe42ce8=statSync(_0x12a8bc);if(_0xe42ce8['isDirectory']()){!existsSync(_0x20075d)&&mkdirSync(_0x20075d,{'recursive':!![]});const _0x3ee849=readdirSync(_0x12a8bc);for(const _0x150393 of _0x3ee849){await copyDir(join(_0x12a8bc,_0x150393),join(_0x20075d,_0x150393));}}else copyFileSync(_0x12a8bc,_0x20075d);}function a207_0x5ab6(){const _0x37c994=['6595xfkabZ','432424bVMscU','15770FqFDtQ','1382316gXRAQU','63GciCuv','186nzLPUf','748371ItJmBJ','48couCWh','531agYlTn','1dhLJgA','906142XwZbVa','1388673GHjUHx'];a207_0x5ab6=function(){return _0x37c994;};return a207_0x5ab6();}function a207_0x26bc(_0x51513e,_0x366ab6){_0x51513e=_0x51513e-0x14a;const _0x5ab645=a207_0x5ab6();let _0x26bccc=_0x5ab645[_0x51513e];return _0x26bccc;}export function ensureDir(_0xa240b){!existsSync(_0xa240b)&&mkdirSync(_0xa240b,{'recursive':!![]});}export function pathExists(_0xc8e9dc){return existsSync(_0xc8e9dc);}
@@ -1 +1 @@
1
- const a207_0x550876=a207_0x215b;(function(_0x40265e,_0xcfab91){const _0x115861=a207_0x215b,_0x1dcdd4=_0x40265e();while(!![]){try{const _0x363996=-parseInt(_0x115861(0x96))/0x1*(-parseInt(_0x115861(0x7a))/0x2)+-parseInt(_0x115861(0x74))/0x3+parseInt(_0x115861(0x8d))/0x4*(-parseInt(_0x115861(0x7c))/0x5)+-parseInt(_0x115861(0x7d))/0x6*(-parseInt(_0x115861(0x8a))/0x7)+parseInt(_0x115861(0x80))/0x8+parseInt(_0x115861(0x85))/0x9+-parseInt(_0x115861(0x8e))/0xa*(parseInt(_0x115861(0x86))/0xb);if(_0x363996===_0xcfab91)break;else _0x1dcdd4['push'](_0x1dcdd4['shift']());}catch(_0x55dfad){_0x1dcdd4['push'](_0x1dcdd4['shift']());}}}(a207_0x3f42,0xc0e86));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 _0xd78007=a207_0x215b,_0xfc3a23=getTemplateBaseUrl();return _0xfc3a23+_0xd78007(0x89);}const CACHE_DIR=join(homedir(),a207_0x550876(0x8c),'cache');function a207_0x3f42(){const _0x27570a=['\x0a\x0a>更新时间:','json','trimEnd','289111vwSdLX','join','433530GnZYQi','CDN\x20请求失败:\x20','map','content','skillTemplate','CDN\x20返回数据格式错误','10ZYxMvX','application/json','84155rHosnq','6612IpRHXb','title','lastUpdated','10697920lpYQUT','object','push','utf-8','entries','383787AjcsuP','33xDSXdW','statusText','length','/skills/guides.json','4354JZpiyp','path','.lovrabet','92mxHhZV','7297030CjozAB','extendContent','.md','guides','replace'];a207_0x3f42=function(){return _0x27570a;};return a207_0x3f42();}export async function fetchGuidesFromCDN(){const _0x14372d=a207_0x550876,_0xbb0630=getGuidesCdnUrl(),_0x2bd481=await fetch(_0xbb0630,{'headers':{'Accept':_0x14372d(0x7b)}});if(!_0x2bd481['ok'])throw new Error(_0x14372d(0x75)+_0x2bd481['status']+'\x20'+_0x2bd481[_0x14372d(0x87)]);const _0x1e0ec3=await _0x2bd481[_0x14372d(0x94)]();if(!_0x1e0ec3[_0x14372d(0x91)]||typeof _0x1e0ec3[_0x14372d(0x91)]!==_0x14372d(0x81))throw new Error(_0x14372d(0x79));return _0x1e0ec3;}export function writeGuidesToProject(_0x3b2ee9,_0x41b3da,_0x2e553b='.lovrabet/skill/guides',_0x36f074){const _0x105b86=a207_0x550876,_0x1598af=join(_0x41b3da,_0x2e553b);mkdirSync(_0x1598af,{'recursive':!![]});for(const [_0x46f4a0,_0x5046b8]of Object[_0x105b86(0x84)](_0x3b2ee9[_0x105b86(0x91)])){let _0x1f8983=_0x5046b8[_0x105b86(0x77)];_0x5046b8['lastUpdated']&&(_0x1f8983=appendUpdateTime(_0x1f8983,_0x5046b8['lastUpdated'])),writeFileSync(join(_0x1598af,_0x46f4a0+_0x105b86(0x90)),_0x1f8983,_0x105b86(0x83));}}export function appendUpdateTime(_0x1f22dc,_0x2a550a){const _0x240222=a207_0x550876;return _0x1f22dc=_0x1f22dc[_0x240222(0x92)](/\n*>更新时间:.*$/m,''),_0x1f22dc[_0x240222(0x95)]()+(_0x240222(0x93)+_0x2a550a);}export function getSkillTemplate(_0x252124){const _0x20d74f=a207_0x550876;return _0x252124[_0x20d74f(0x78)]?.[_0x20d74f(0x77)]||'';}function a207_0x215b(_0x4a566e,_0x1d936b){_0x4a566e=_0x4a566e-0x74;const _0x3f4267=a207_0x3f42();let _0x215b01=_0x3f4267[_0x4a566e];return _0x215b01;}export function appendExtendContents(_0x1fa180,_0x3ef6f8,_0x3705f0){const _0x1ef817=a207_0x550876,_0x562202=[];for(const [,_0x88b2ae]of Object[_0x1ef817(0x84)](_0x3ef6f8[_0x1ef817(0x91)])){_0x88b2ae[_0x1ef817(0x8f)]&&_0x562202[_0x1ef817(0x82)](_0x88b2ae[_0x1ef817(0x8f)][_0x1ef817(0x95)]());}if(_0x562202[_0x1ef817(0x88)]===0x0)return _0x1fa180;return _0x1fa180[_0x1ef817(0x95)]()+'\x0a\x0a'+_0x562202[_0x1ef817(0x97)]('\x0a\x0a')+'\x0a';}export function writeSkillFile(_0x133142,_0x584546,_0xe6196){const _0x457589=a207_0x550876,_0x484785=getSkillTemplate(_0x133142);if(!_0x484785)throw new Error('CDN\x20数据中缺少\x20skillTemplate');const _0x3c9aa1=dirname(_0x584546);mkdirSync(_0x3c9aa1,{'recursive':!![]});let _0x411047=_0x484785[_0x457589(0x92)](/\{\{IDE_NAME\}\}/g,_0xe6196);_0x411047=appendExtendContents(_0x411047,_0x133142),_0x133142['skillTemplate'][_0x457589(0x7f)]&&(_0x411047=appendUpdateTime(_0x411047,_0x133142[_0x457589(0x78)][_0x457589(0x7f)])),writeFileSync(_0x584546,_0x411047,_0x457589(0x83));}export async function installGuides(_0x4efe34){const _0x221326=a207_0x550876,_0x111d4c=await fetchGuidesFromCDN();return writeGuidesToProject(_0x111d4c,_0x4efe34),Object['keys'](_0x111d4c['guides'])[_0x221326(0x88)];}export function getGuidesSummary(_0x1fb43a){const _0x519236=a207_0x550876;return Object[_0x519236(0x84)](_0x1fb43a[_0x519236(0x91)])[_0x519236(0x76)](([_0x2d80b8,_0x29843b])=>({'key':_0x2d80b8,'title':_0x29843b[_0x519236(0x7e)],'path':_0x29843b[_0x519236(0x8b)]}));}
1
+ const a208_0x56b702=a208_0x3adb;(function(_0xe6c2fb,_0x20bb1d){const _0x22b7ef=a208_0x3adb,_0x3261aa=_0xe6c2fb();while(!![]){try{const _0x7ec303=-parseInt(_0x22b7ef(0x1fd))/0x1+parseInt(_0x22b7ef(0x1e6))/0x2+-parseInt(_0x22b7ef(0x1e9))/0x3*(-parseInt(_0x22b7ef(0x1fc))/0x4)+parseInt(_0x22b7ef(0x1f2))/0x5+parseInt(_0x22b7ef(0x1ea))/0x6*(-parseInt(_0x22b7ef(0x1ef))/0x7)+parseInt(_0x22b7ef(0x1e8))/0x8+parseInt(_0x22b7ef(0x1e3))/0x9*(-parseInt(_0x22b7ef(0x1e5))/0xa);if(_0x7ec303===_0x20bb1d)break;else _0x3261aa['push'](_0x3261aa['shift']());}catch(_0x3e8a7a){_0x3261aa['push'](_0x3261aa['shift']());}}}(a208_0x5db8,0xd09c1));import{mkdirSync,writeFileSync}from'node:fs';function a208_0x3adb(_0x3930e5,_0x42a1ea){_0x3930e5=_0x3930e5-0x1e1;const _0x5db888=a208_0x5db8();let _0x3adb37=_0x5db888[_0x3930e5];return _0x3adb37;}import{dirname,join}from'node:path';import{homedir}from'node:os';import{getTemplateBaseUrl}from'../utils/config.js';function getGuidesCdnUrl(){const _0x20f446=a208_0x3adb,_0x4df35f=getTemplateBaseUrl();return _0x4df35f+_0x20f446(0x1e4);}const CACHE_DIR=join(homedir(),a208_0x56b702(0x1f6),a208_0x56b702(0x1ed));export async function fetchGuidesFromCDN(){const _0x1d0190=a208_0x56b702,_0x2de973=getGuidesCdnUrl(),_0x35649c=await fetch(_0x2de973,{'headers':{'Accept':_0x1d0190(0x1f8)}});if(!_0x35649c['ok'])throw new Error(_0x1d0190(0x1eb)+_0x35649c[_0x1d0190(0x1f9)]+'\x20'+_0x35649c[_0x1d0190(0x200)]);const _0x24d5d8=await _0x35649c['json']();if(!_0x24d5d8[_0x1d0190(0x202)]||typeof _0x24d5d8[_0x1d0190(0x202)]!==_0x1d0190(0x1e1))throw new Error(_0x1d0190(0x1ff));return _0x24d5d8;}export function writeGuidesToProject(_0x372c93,_0x2a7b0a,_0x2688ee=a208_0x56b702(0x205),_0x5c334a){const _0x36f508=a208_0x56b702,_0x574b45=join(_0x2a7b0a,_0x2688ee);mkdirSync(_0x574b45,{'recursive':!![]});for(const [_0x2f8c2b,_0x7fffbd]of Object[_0x36f508(0x1f3)](_0x372c93[_0x36f508(0x202)])){let _0x4728c0=_0x7fffbd['content'];_0x7fffbd[_0x36f508(0x1fa)]&&(_0x4728c0=appendUpdateTime(_0x4728c0,_0x7fffbd[_0x36f508(0x1fa)])),writeFileSync(join(_0x574b45,_0x2f8c2b+_0x36f508(0x1f0)),_0x4728c0,_0x36f508(0x203));}}export function appendUpdateTime(_0x56cf33,_0x5bad6e){const _0x53a6a5=a208_0x56b702;return _0x56cf33=_0x56cf33[_0x53a6a5(0x1f4)](/\n*>更新时间:.*$/m,''),_0x56cf33['trimEnd']()+(_0x53a6a5(0x1f5)+_0x5bad6e);}export function getSkillTemplate(_0x479461){const _0x430c8c=a208_0x56b702;return _0x479461[_0x430c8c(0x1f7)]?.[_0x430c8c(0x1e7)]||'';}export function appendExtendContents(_0x49fc60,_0xe9d93a,_0x2b7caf){const _0x138c8d=a208_0x56b702,_0x55c788=[];for(const [,_0x31ad36]of Object[_0x138c8d(0x1f3)](_0xe9d93a[_0x138c8d(0x202)])){_0x31ad36['extendContent']&&_0x55c788['push'](_0x31ad36[_0x138c8d(0x1ee)][_0x138c8d(0x1e2)]());}if(_0x55c788[_0x138c8d(0x1fb)]===0x0)return _0x49fc60;return _0x49fc60[_0x138c8d(0x1e2)]()+'\x0a\x0a'+_0x55c788[_0x138c8d(0x1f1)]('\x0a\x0a')+'\x0a';}export function writeSkillFile(_0x42e4bc,_0xc1be06,_0x48f0a4){const _0x54cee3=a208_0x56b702,_0x394d27=getSkillTemplate(_0x42e4bc);if(!_0x394d27)throw new Error(_0x54cee3(0x1ec));const _0xb2d549=dirname(_0xc1be06);mkdirSync(_0xb2d549,{'recursive':!![]});let _0x20a83f=_0x394d27['replace'](/\{\{IDE_NAME\}\}/g,_0x48f0a4);_0x20a83f=appendExtendContents(_0x20a83f,_0x42e4bc),_0x42e4bc[_0x54cee3(0x1f7)][_0x54cee3(0x1fa)]&&(_0x20a83f=appendUpdateTime(_0x20a83f,_0x42e4bc[_0x54cee3(0x1f7)][_0x54cee3(0x1fa)])),writeFileSync(_0xc1be06,_0x20a83f,_0x54cee3(0x203));}export async function installGuides(_0x47fe72){const _0xe2beca=a208_0x56b702,_0x2af036=await fetchGuidesFromCDN();return writeGuidesToProject(_0x2af036,_0x47fe72),Object[_0xe2beca(0x201)](_0x2af036[_0xe2beca(0x202)])['length'];}function a208_0x5db8(){const _0x2315ae=['guides','utf-8','path','.lovrabet/skill/guides','object','trimEnd','684EqbZoc','/skills/guides.json','4750unUfFS','887764uhWxFP','content','4813496qdKnCB','150918gGuasa','127440jYZeIg','CDN\x20请求失败:\x20','CDN\x20数据中缺少\x20skillTemplate','cache','extendContent','252fQTkQY','.md','join','2607210ujQbiQ','entries','replace','\x0a\x0a>更新时间:','.lovrabet','skillTemplate','application/json','status','lastUpdated','length','56vyfrXL','616090xbphks','map','CDN\x20返回数据格式错误','statusText','keys'];a208_0x5db8=function(){return _0x2315ae;};return a208_0x5db8();}export function getGuidesSummary(_0x4726d8){const _0x1d58fd=a208_0x56b702;return Object[_0x1d58fd(0x1f3)](_0x4726d8[_0x1d58fd(0x202)])[_0x1d58fd(0x1fe)](([_0x3735b3,_0x10e4ff])=>({'key':_0x3735b3,'title':_0x10e4ff['title'],'path':_0x10e4ff[_0x1d58fd(0x204)]}));}
@@ -1 +1 @@
1
- (function(_0xccaec5,_0x349719){const _0xbd215b=a208_0x373d,_0x1e966b=_0xccaec5();while(!![]){try{const _0x431aff=parseInt(_0xbd215b(0x1a2))/0x1+parseInt(_0xbd215b(0x197))/0x2+-parseInt(_0xbd215b(0x199))/0x3*(parseInt(_0xbd215b(0x19d))/0x4)+-parseInt(_0xbd215b(0x195))/0x5*(-parseInt(_0xbd215b(0x18b))/0x6)+-parseInt(_0xbd215b(0x184))/0x7*(parseInt(_0xbd215b(0x1a3))/0x8)+parseInt(_0xbd215b(0x194))/0x9*(-parseInt(_0xbd215b(0x18d))/0xa)+-parseInt(_0xbd215b(0x19e))/0xb*(parseInt(_0xbd215b(0x1a0))/0xc);if(_0x431aff===_0x349719)break;else _0x1e966b['push'](_0x1e966b['shift']());}catch(_0x5beaf7){_0x1e966b['push'](_0x1e966b['shift']());}}}(a208_0x1011,0xdc87f));export async function httpRequest(_0x5b67b6,_0x26552a={}){const _0x6533f0=a208_0x373d,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0x26552a;let _0x15a95b=null;for(let _0x2901e1=0x0;_0x2901e1<=retries;_0x2901e1++){try{const _0x40c348=new AbortController(),_0x3ddae8=setTimeout(()=>_0x40c348[_0x6533f0(0x185)](),timeout),_0x6988e0=await fetch(_0x5b67b6,{'headers':headers,'signal':_0x40c348['signal']});clearTimeout(_0x3ddae8);let _0x17b247;const _0x5a6600=_0x6988e0[_0x6533f0(0x198)][_0x6533f0(0x18a)](_0x6533f0(0x19a));return _0x5a6600?.[_0x6533f0(0x191)](_0x6533f0(0x1a5))?_0x17b247=await _0x6988e0[_0x6533f0(0x19b)]():_0x17b247=await _0x6988e0[_0x6533f0(0x189)](),{'ok':_0x6988e0['ok'],'status':_0x6988e0[_0x6533f0(0x192)],'statusText':_0x6988e0[_0x6533f0(0x193)],'data':_0x17b247,'headers':_0x6988e0[_0x6533f0(0x198)],'url':_0x6988e0[_0x6533f0(0x1a1)],'text':()=>_0x6988e0[_0x6533f0(0x189)]()};}catch(_0x14e4d1){_0x15a95b=_0x14e4d1 instanceof Error?_0x14e4d1:new Error(String(_0x14e4d1));if(_0x2901e1===retries)break;if(shouldRetry(_0x14e4d1)){console[_0x6533f0(0x187)](_0x6533f0(0x19c)+retryDelay+_0x6533f0(0x188)+(_0x2901e1+0x1)+_0x6533f0(0x1a4)),await sleep(retryDelay);continue;}else break;}}throw _0x15a95b||new Error(_0x6533f0(0x186));}function shouldRetry(_0x7b5030){const _0x232629=a208_0x373d;if(_0x7b5030 instanceof Error){if(_0x7b5030[_0x232629(0x18e)]===_0x232629(0x190))return![];if(_0x7b5030[_0x232629(0x18e)]==='TypeError'&&_0x7b5030[_0x232629(0x18f)][_0x232629(0x191)](_0x232629(0x196)))return!![];if(_0x7b5030['message'][_0x232629(0x191)](_0x232629(0x19f)))return!![];if(_0x7b5030[_0x232629(0x18f)][_0x232629(0x191)](_0x232629(0x18c)))return![];}return![];}function sleep(_0xd6ae19){return new Promise(_0x2a71ec=>setTimeout(_0x2a71ec,_0xd6ae19));}function a208_0x373d(_0x3bcdde,_0x3fb756){_0x3bcdde=_0x3bcdde-0x184;const _0x101150=a208_0x1011();let _0x373dab=_0x101150[_0x3bcdde];return _0x373dab;}function a208_0x1011(){const _0x209c77=['ms\x20后进行第\x20','text','get','4151442cyKdIf','ENOTFOUND','2399690xqBrcl','name','message','AbortError','includes','status','statusText','36wUteZm','5KHbovc','fetch','3455364SfQChE','headers','4710507zWpQRr','content-type','json','*\x20请求失败,','4LjMWpJ','11BEfohI','ECONNRESET','1845660KdnQqP','url','1227527fQUjaj','8LGIdPB','\x20次重试...','application/json','419797kHZIGi','abort','Request\x20failed','log'];a208_0x1011=function(){return _0x209c77;};return a208_0x1011();}export function validateUrl(_0x5aa302){try{return new URL(_0x5aa302),!![];}catch{return![];}}
1
+ (function(_0x391ef5,_0xa42780){const _0x47b7a9=a209_0x57d2,_0x4ffdc9=_0x391ef5();while(!![]){try{const _0x2a334b=parseInt(_0x47b7a9(0xcf))/0x1*(parseInt(_0x47b7a9(0xda))/0x2)+-parseInt(_0x47b7a9(0xe3))/0x3+parseInt(_0x47b7a9(0xce))/0x4*(-parseInt(_0x47b7a9(0xe5))/0x5)+-parseInt(_0x47b7a9(0xe7))/0x6+-parseInt(_0x47b7a9(0xd8))/0x7*(parseInt(_0x47b7a9(0xd3))/0x8)+-parseInt(_0x47b7a9(0xe0))/0x9*(parseInt(_0x47b7a9(0xd4))/0xa)+-parseInt(_0x47b7a9(0xd6))/0xb*(-parseInt(_0x47b7a9(0xdc))/0xc);if(_0x2a334b===_0xa42780)break;else _0x4ffdc9['push'](_0x4ffdc9['shift']());}catch(_0x3dc9f3){_0x4ffdc9['push'](_0x4ffdc9['shift']());}}}(a209_0x243e,0xd5fb6));export async function httpRequest(_0xc5966e,_0x11356a={}){const _0x1ea404=a209_0x57d2,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0x11356a;let _0x1f1db3=null;for(let _0x33d10c=0x0;_0x33d10c<=retries;_0x33d10c++){try{const _0x47d1f3=new AbortController(),_0x49e985=setTimeout(()=>_0x47d1f3[_0x1ea404(0xdf)](),timeout),_0x1a13fc=await fetch(_0xc5966e,{'headers':headers,'signal':_0x47d1f3[_0x1ea404(0xd2)]});clearTimeout(_0x49e985);let _0x584fe0;const _0x1a28cd=_0x1a13fc[_0x1ea404(0xe9)]['get']('content-type');return _0x1a28cd?.[_0x1ea404(0xde)](_0x1ea404(0xdd))?_0x584fe0=await _0x1a13fc['json']():_0x584fe0=await _0x1a13fc[_0x1ea404(0xe2)](),{'ok':_0x1a13fc['ok'],'status':_0x1a13fc['status'],'statusText':_0x1a13fc[_0x1ea404(0xe1)],'data':_0x584fe0,'headers':_0x1a13fc['headers'],'url':_0x1a13fc[_0x1ea404(0xd7)],'text':()=>_0x1a13fc['text']()};}catch(_0x49e760){_0x1f1db3=_0x49e760 instanceof Error?_0x49e760:new Error(String(_0x49e760));if(_0x33d10c===retries)break;if(shouldRetry(_0x49e760)){console[_0x1ea404(0xe6)](_0x1ea404(0xe4)+retryDelay+_0x1ea404(0xd1)+(_0x33d10c+0x1)+'\x20次重试...'),await sleep(retryDelay);continue;}else break;}}throw _0x1f1db3||new Error(_0x1ea404(0xe8));}function shouldRetry(_0x580a82){const _0x399956=a209_0x57d2;if(_0x580a82 instanceof Error){if(_0x580a82['name']===_0x399956(0xd5))return![];if(_0x580a82['name']===_0x399956(0xd9)&&_0x580a82[_0x399956(0xdb)]['includes'](_0x399956(0xd0)))return!![];if(_0x580a82[_0x399956(0xdb)][_0x399956(0xde)]('ECONNRESET'))return!![];if(_0x580a82[_0x399956(0xdb)][_0x399956(0xde)]('ENOTFOUND'))return![];}return![];}function a209_0x57d2(_0x598916,_0x321886){_0x598916=_0x598916-0xce;const _0x243e07=a209_0x243e();let _0x57d280=_0x243e07[_0x598916];return _0x57d280;}function a209_0x243e(){const _0x276089=['1250MFOZfe','AbortError','3462448PQTXky','url','369530wlFUUh','TypeError','20BzQwon','message','192FhGboS','application/json','includes','abort','121977hgUmvV','statusText','text','1343202RviXGo','*\x20请求失败,','12560ZwazVT','log','9598290XhuWws','Request\x20failed','headers','2248vzLdMG','162698vlEjLm','fetch','ms\x20后进行第\x20','signal','96JGhsZk'];a209_0x243e=function(){return _0x276089;};return a209_0x243e();}function sleep(_0x429d1f){return new Promise(_0x18a000=>setTimeout(_0x18a000,_0x429d1f));}export function validateUrl(_0x3d7d86){try{return new URL(_0x3d7d86),!![];}catch{return![];}}
@@ -1 +1 @@
1
- (function(_0x2fa80a,_0x4d75e2){const _0x2f3c52=a209_0x1d81,_0x4dda21=_0x2fa80a();while(!![]){try{const _0x5e8681=parseInt(_0x2f3c52(0x1ad))/0x1+-parseInt(_0x2f3c52(0x1a8))/0x2+-parseInt(_0x2f3c52(0x1a2))/0x3+parseInt(_0x2f3c52(0x1a0))/0x4+parseInt(_0x2f3c52(0x1a4))/0x5+parseInt(_0x2f3c52(0x1ac))/0x6*(-parseInt(_0x2f3c52(0x1a5))/0x7)+parseInt(_0x2f3c52(0x19f))/0x8;if(_0x5e8681===_0x4d75e2)break;else _0x4dda21['push'](_0x4dda21['shift']());}catch(_0x2936b1){_0x4dda21['push'](_0x4dda21['shift']());}}}(a209_0x14dd,0x904f9));function env(_0x32dab7){return process.env[`RABETBASE_${_0x32dab7}`]||process.env[`LOVRABET_${_0x32dab7}`]||undefined;}function a209_0x14dd(){const _0x3cde7b=['3367tkUyjp','isTTY','stdout','1354150MkOLtk','isRaw','stdin','nonInteractive','14388uXcrfo','546911ZjohwN','12519128vDNkHB','3330508SiRHmy','true','2503110UXZpeI','setRawMode','1557755LJvyrr'];a209_0x14dd=function(){return _0x3cde7b;};return a209_0x14dd();}export function isNonInteractive(_0x3d8c79){const _0x58a29e=a209_0x1d81;return!!(_0x3d8c79[_0x58a29e(0x1ab)]||_0x3d8c79['ci']||env('CI')===_0x58a29e(0x1a1)||process.env.CI==='true'||!process[_0x58a29e(0x1a7)][_0x58a29e(0x1a6)]||!isStdinRawModeSupported());}function a209_0x1d81(_0xcaca1,_0x7e346e){_0xcaca1=_0xcaca1-0x19f;const _0x14dd5d=a209_0x14dd();let _0x1d815b=_0x14dd5d[_0xcaca1];return _0x1d815b;}function isStdinRawModeSupported(){const _0x49dc67=a209_0x1d81;if(!process[_0x49dc67(0x1aa)][_0x49dc67(0x1a6)])return![];try{const _0x39f145=process['stdin'][_0x49dc67(0x1a9)];return process['stdin'][_0x49dc67(0x1a3)](!![]),process['stdin'][_0x49dc67(0x1a3)](_0x39f145??![]),!![];}catch{return![];}}
1
+ (function(_0x118d29,_0x5152b5){const _0xfcdc5e=a210_0x52e6,_0x20605c=_0x118d29();while(!![]){try{const _0x1921a9=-parseInt(_0xfcdc5e(0x1f4))/0x1*(-parseInt(_0xfcdc5e(0x1fa))/0x2)+-parseInt(_0xfcdc5e(0x1ef))/0x3*(-parseInt(_0xfcdc5e(0x1fb))/0x4)+parseInt(_0xfcdc5e(0x1ff))/0x5+-parseInt(_0xfcdc5e(0x1f9))/0x6*(parseInt(_0xfcdc5e(0x1f6))/0x7)+-parseInt(_0xfcdc5e(0x1f2))/0x8*(parseInt(_0xfcdc5e(0x1f0))/0x9)+-parseInt(_0xfcdc5e(0x1f7))/0xa+-parseInt(_0xfcdc5e(0x1f3))/0xb*(-parseInt(_0xfcdc5e(0x1ee))/0xc);if(_0x1921a9===_0x5152b5)break;else _0x20605c['push'](_0x20605c['shift']());}catch(_0x2d61fd){_0x20605c['push'](_0x20605c['shift']());}}}(a210_0x29a0,0xefd96));function env(_0x3e0eeb){return process.env[`RABETBASE_${_0x3e0eeb}`]||process.env[`LOVRABET_${_0x3e0eeb}`]||undefined;}export function isNonInteractive(_0x40b370){const _0x5e5ed9=a210_0x52e6;return!!(_0x40b370[_0x5e5ed9(0x1fd)]||_0x40b370['ci']||env('CI')===_0x5e5ed9(0x1fe)||process.env.CI===_0x5e5ed9(0x1fe)||!process[_0x5e5ed9(0x1f5)]['isTTY']||!isStdinRawModeSupported());}function a210_0x52e6(_0x7d571,_0xb211c1){_0x7d571=_0x7d571-0x1ee;const _0x29a074=a210_0x29a0();let _0x52e691=_0x29a074[_0x7d571];return _0x52e691;}function a210_0x29a0(){const _0x38e370=['6102040lrtbxM','isTTY','716982hdghIp','33346Zntnon','118112tLKEIp','setRawMode','nonInteractive','true','8262920MZhXtl','132HLYrnw','51DXZZVw','3456KPqFNU','stdin','22728FEpqDT','1690634kovNwM','2OHPWko','stdout','70GaalTo'];a210_0x29a0=function(){return _0x38e370;};return a210_0x29a0();}function isStdinRawModeSupported(){const _0x4f9343=a210_0x52e6;if(!process[_0x4f9343(0x1f1)][_0x4f9343(0x1f8)])return![];try{const _0x13f137=process[_0x4f9343(0x1f1)]['isRaw'];return process[_0x4f9343(0x1f1)][_0x4f9343(0x1fc)](!![]),process[_0x4f9343(0x1f1)][_0x4f9343(0x1fc)](_0x13f137??![]),!![];}catch{return![];}}
@@ -1 +1 @@
1
- const a210_0x217d5b=a210_0x3f83;(function(_0x29b1e5,_0x362edb){const _0x2ab08c=a210_0x3f83,_0x3099ce=_0x29b1e5();while(!![]){try{const _0x2f90ed=parseInt(_0x2ab08c(0xde))/0x1+-parseInt(_0x2ab08c(0xce))/0x2*(-parseInt(_0x2ab08c(0xc9))/0x3)+-parseInt(_0x2ab08c(0xbd))/0x4*(-parseInt(_0x2ab08c(0xee))/0x5)+parseInt(_0x2ab08c(0xc7))/0x6+parseInt(_0x2ab08c(0xda))/0x7*(-parseInt(_0x2ab08c(0xc4))/0x8)+parseInt(_0x2ab08c(0xe2))/0x9*(parseInt(_0x2ab08c(0xe8))/0xa)+-parseInt(_0x2ab08c(0xc0))/0xb;if(_0x2f90ed===_0x362edb)break;else _0x3099ce['push'](_0x3099ce['shift']());}catch(_0x85d60d){_0x3099ce['push'](_0x3099ce['shift']());}}}(a210_0xaec7,0xcd099));import a210_0x5c2f98 from'winston';function a210_0xaec7(){const _0x2fe369=['失败:\x20','printf','mkdirSync','1244xJGGTq','toISOString','format','46235057OMMmsZ','log','map','existsSync','8VOXdUd','logTask','readLogs','6099720ttTFmm','File','10959ZEwcaL','完成:\x20','details','info','readFileSync','730jzzdVt','rawCommand','yellow','clear','duration','Failed\x20to\x20clear\x20logs:','addColors','utf8','getWinstonInstance','clearLogs','red','开始执行:\x20','6632577nIxuEc','unknown','blue','trim','1132402segjHZ','now','setLogPath','winstonLogger','315VYzxoA','writeFileSync','setRawCommand','Failed\x20to\x20read\x20logs:','transports','dirname','463020ttLWxL','join','timestamp','error','currentRawCommand','createLogger','14270cmeZXH','level','logFilePath','success','parse','warn','stringify','.lovrabet.log'];a210_0xaec7=function(){return _0x2fe369;};return a210_0xaec7();}import a210_0x2ef872 from'node:fs';import a210_0xf5183 from'node:path';class Logger{[a210_0x217d5b(0xe1)];[a210_0x217d5b(0xf0)];[a210_0x217d5b(0xec)]='';constructor(){const _0xdd58d9=a210_0x217d5b;this[_0xdd58d9(0xf0)]='';}[a210_0x217d5b(0xe4)](_0x234ce7){const _0x3fabc2=a210_0x217d5b;this[_0x3fabc2(0xec)]=_0x234ce7;}['initWinstonLogger'](){const _0x2c7f22=a210_0x217d5b,_0x3a617e=a210_0xf5183[_0x2c7f22(0xe7)](this[_0x2c7f22(0xf0)]);!a210_0x2ef872[_0x2c7f22(0xc3)](_0x3a617e)&&a210_0x2ef872[_0x2c7f22(0xbc)](_0x3a617e,{'recursive':!![]});const _0x540a64=a210_0x5c2f98[_0x2c7f22(0xbf)]['combine'](a210_0x5c2f98[_0x2c7f22(0xbf)]['timestamp'](),a210_0x5c2f98['format']['errors']({'stack':!![]}),a210_0x5c2f98['format'][_0x2c7f22(0xbb)](_0x5dc2e4=>{const _0x3cbd6d=_0x2c7f22,_0x5070fd={'timestamp':_0x5dc2e4[_0x3cbd6d(0xea)]||new Date()[_0x3cbd6d(0xbe)](),'level':_0x5dc2e4[_0x3cbd6d(0xef)]||'info','command':_0x5dc2e4['command']||_0x3cbd6d(0xdb),'rawCommand':_0x5dc2e4[_0x3cbd6d(0xcf)]||this[_0x3cbd6d(0xec)]||undefined,'message':_0x5dc2e4['message']||'','duration':_0x5dc2e4[_0x3cbd6d(0xd2)]||undefined,'details':_0x5dc2e4[_0x3cbd6d(0xcb)]||undefined};return JSON[_0x3cbd6d(0xb8)](_0x5070fd);}));this[_0x2c7f22(0xe1)]=a210_0x5c2f98[_0x2c7f22(0xed)]({'level':_0x2c7f22(0xcc),'format':_0x540a64,'transports':[new a210_0x5c2f98[(_0x2c7f22(0xe6))][(_0x2c7f22(0xc8))]({'filename':this[_0x2c7f22(0xf0)],'level':'info'})],'silent':![]}),a210_0x5c2f98[_0x2c7f22(0xd4)]({'success':'green','error':_0x2c7f22(0xd8),'warn':_0x2c7f22(0xd0),'info':_0x2c7f22(0xdc)});}[a210_0x217d5b(0xe0)](_0x57ce24){const _0x1f1c93=a210_0x217d5b;this[_0x1f1c93(0xf0)]=a210_0xf5183[_0x1f1c93(0xe9)](_0x57ce24,_0x1f1c93(0xb9)),this['winstonLogger']&&this['winstonLogger'][_0x1f1c93(0xd1)](),this['initWinstonLogger']();}[a210_0x217d5b(0xcc)](_0xd6782b,_0x510b4b,_0x5cad6a){const _0x4b3773=a210_0x217d5b;if(!this[_0x4b3773(0xf0)]||!this[_0x4b3773(0xe1)])return;this[_0x4b3773(0xe1)][_0x4b3773(0xcc)](_0x510b4b,{'command':_0xd6782b,'details':_0x5cad6a});}[a210_0x217d5b(0xf1)](_0x4cef85,_0x3cdbb4,_0x5cedf3,_0x14906e){const _0x53144c=a210_0x217d5b;if(!this[_0x53144c(0xf0)]||!this[_0x53144c(0xe1)])return;this[_0x53144c(0xe1)][_0x53144c(0xc1)](_0x53144c(0xcc),_0x3cdbb4,{'level':_0x53144c(0xf1),'command':_0x4cef85,'duration':_0x5cedf3,'details':_0x14906e});}[a210_0x217d5b(0xeb)](_0x37884d,_0x20b6bf,_0x1d6fe7){const _0x2df9da=a210_0x217d5b;if(!this[_0x2df9da(0xf0)]||!this[_0x2df9da(0xe1)])return;this[_0x2df9da(0xe1)][_0x2df9da(0xeb)](_0x20b6bf,{'command':_0x37884d,'details':_0x1d6fe7});}['warn'](_0x2509dd,_0x20e583,_0x1f9a0f){const _0x38dcee=a210_0x217d5b;if(!this[_0x38dcee(0xf0)]||!this[_0x38dcee(0xe1)])return;this[_0x38dcee(0xe1)][_0x38dcee(0xf3)](_0x20e583,{'command':_0x2509dd,'details':_0x1f9a0f});}async[a210_0x217d5b(0xc5)](_0x55592d,_0x4fd0f8,_0x5c6165){const _0x19c54e=a210_0x217d5b,_0x424325=Date[_0x19c54e(0xdf)]();this['info'](_0x55592d,_0x19c54e(0xd9)+_0x4fd0f8);try{const _0x4aba84=await _0x5c6165(),_0x2a18ed=Date['now']()-_0x424325;return this[_0x19c54e(0xf1)](_0x55592d,_0x19c54e(0xca)+_0x4fd0f8,_0x2a18ed),_0x4aba84;}catch(_0x4dad54){const _0x4e96e6=Date[_0x19c54e(0xdf)]()-_0x424325;this[_0x19c54e(0xeb)](_0x55592d,_0x19c54e(0xba)+_0x4fd0f8,{'error':_0x4dad54 instanceof Error?_0x4dad54['message']:String(_0x4dad54),'duration':_0x4e96e6});throw _0x4dad54;}}[a210_0x217d5b(0xc6)](){const _0xdb5404=a210_0x217d5b;try{if(!a210_0x2ef872[_0xdb5404(0xc3)](this[_0xdb5404(0xf0)]))return[];const _0x2400b3=a210_0x2ef872[_0xdb5404(0xcd)](this[_0xdb5404(0xf0)],_0xdb5404(0xd5));return _0x2400b3['split']('\x0a')['filter'](_0x135038=>_0x135038[_0xdb5404(0xdd)]())[_0xdb5404(0xc2)](_0xb5e29=>JSON[_0xdb5404(0xf2)](_0xb5e29));}catch(_0x39e762){return console[_0xdb5404(0xf3)](_0xdb5404(0xe5),_0x39e762),[];}}[a210_0x217d5b(0xd7)](){const _0x380c81=a210_0x217d5b;try{a210_0x2ef872['existsSync'](this['logFilePath'])&&a210_0x2ef872[_0x380c81(0xe3)](this[_0x380c81(0xf0)],'',_0x380c81(0xd5));}catch(_0x517f14){console[_0x380c81(0xf3)](_0x380c81(0xd3),_0x517f14);}}[a210_0x217d5b(0xd6)](){const _0xf80007=a210_0x217d5b;return this[_0xf80007(0xe1)];}}function a210_0x3f83(_0x147e11,_0x4affb6){_0x147e11=_0x147e11-0xb8;const _0xaec758=a210_0xaec7();let _0x3f83cb=_0xaec758[_0x147e11];return _0x3f83cb;}export const logger=new Logger();
1
+ const a211_0x3dfac7=a211_0x3bae;function a211_0x45ad(){const _0x449439=['Failed\x20to\x20clear\x20logs:','utf8','clear','combine','getWinstonInstance','.lovrabet.log','join','534SDSnwE','失败:\x20','existsSync','203616lCjMMi','filter','完成:\x20','info','parse','Failed\x20to\x20read\x20logs:','toISOString','initWinstonLogger','log','format','winstonLogger','currentRawCommand','logFilePath','red','unknown','1116351VqYeOi','268485huPyME','map','details','logTask','setLogPath','error','700406iRXvCL','dirname','addColors','split','10752jbTnGX','blue','createLogger','timestamp','rawCommand','stringify','now','425142oWSvQb','success','duration','File','yellow','trim','5289184uNJJAi','mkdirSync','transports','errors','warn'];a211_0x45ad=function(){return _0x449439;};return a211_0x45ad();}(function(_0x1d49f1,_0x46b72a){const _0x58ee99=a211_0x3bae,_0x3a6075=_0x1d49f1();while(!![]){try{const _0x51f9f2=-parseInt(_0x58ee99(0x157))/0x1+parseInt(_0x58ee99(0x14c))/0x2+-parseInt(_0x58ee99(0x145))/0x3+-parseInt(_0x58ee99(0x136))/0x4+-parseInt(_0x58ee99(0x146))/0x5+-parseInt(_0x58ee99(0x169))/0x6*(-parseInt(_0x58ee99(0x150))/0x7)+parseInt(_0x58ee99(0x15d))/0x8;if(_0x51f9f2===_0x46b72a)break;else _0x3a6075['push'](_0x3a6075['shift']());}catch(_0x4221b8){_0x3a6075['push'](_0x3a6075['shift']());}}}(a211_0x45ad,0x3c1b3));import a211_0x2c263b from'winston';import a211_0x106ad2 from'node:fs';import a211_0x329403 from'node:path';class Logger{[a211_0x3dfac7(0x140)];[a211_0x3dfac7(0x142)];['currentRawCommand']='';constructor(){const _0x3695ad=a211_0x3dfac7;this[_0x3695ad(0x142)]='';}['setRawCommand'](_0x290e34){const _0x1cd5f8=a211_0x3dfac7;this[_0x1cd5f8(0x141)]=_0x290e34;}[a211_0x3dfac7(0x13d)](){const _0x6305e8=a211_0x3dfac7,_0x5a09ea=a211_0x329403[_0x6305e8(0x14d)](this[_0x6305e8(0x142)]);!a211_0x106ad2['existsSync'](_0x5a09ea)&&a211_0x106ad2[_0x6305e8(0x15e)](_0x5a09ea,{'recursive':!![]});const _0x464b4a=a211_0x2c263b['format'][_0x6305e8(0x165)](a211_0x2c263b[_0x6305e8(0x13f)][_0x6305e8(0x153)](),a211_0x2c263b[_0x6305e8(0x13f)][_0x6305e8(0x160)]({'stack':!![]}),a211_0x2c263b['format']['printf'](_0x282d38=>{const _0x3c9e8f=_0x6305e8,_0x536b8d={'timestamp':_0x282d38[_0x3c9e8f(0x153)]||new Date()[_0x3c9e8f(0x13c)](),'level':_0x282d38['level']||_0x3c9e8f(0x139),'command':_0x282d38['command']||_0x3c9e8f(0x144),'rawCommand':_0x282d38[_0x3c9e8f(0x154)]||this[_0x3c9e8f(0x141)]||undefined,'message':_0x282d38['message']||'','duration':_0x282d38[_0x3c9e8f(0x159)]||undefined,'details':_0x282d38[_0x3c9e8f(0x148)]||undefined};return JSON[_0x3c9e8f(0x155)](_0x536b8d);}));this['winstonLogger']=a211_0x2c263b[_0x6305e8(0x152)]({'level':_0x6305e8(0x139),'format':_0x464b4a,'transports':[new a211_0x2c263b[(_0x6305e8(0x15f))][(_0x6305e8(0x15a))]({'filename':this[_0x6305e8(0x142)],'level':'info'})],'silent':![]}),a211_0x2c263b[_0x6305e8(0x14e)]({'success':'green','error':_0x6305e8(0x143),'warn':_0x6305e8(0x15b),'info':_0x6305e8(0x151)});}[a211_0x3dfac7(0x14a)](_0x44fa4f){const _0x457355=a211_0x3dfac7;this['logFilePath']=a211_0x329403[_0x457355(0x168)](_0x44fa4f,_0x457355(0x167)),this['winstonLogger']&&this['winstonLogger'][_0x457355(0x164)](),this['initWinstonLogger']();}[a211_0x3dfac7(0x139)](_0x2b11d5,_0x496e01,_0x351379){const _0x40011b=a211_0x3dfac7;if(!this[_0x40011b(0x142)]||!this['winstonLogger'])return;this[_0x40011b(0x140)][_0x40011b(0x139)](_0x496e01,{'command':_0x2b11d5,'details':_0x351379});}[a211_0x3dfac7(0x158)](_0x310ebc,_0x78473e,_0x4b64b4,_0x1f9962){const _0x133cd5=a211_0x3dfac7;if(!this[_0x133cd5(0x142)]||!this[_0x133cd5(0x140)])return;this[_0x133cd5(0x140)][_0x133cd5(0x13e)](_0x133cd5(0x139),_0x78473e,{'level':_0x133cd5(0x158),'command':_0x310ebc,'duration':_0x4b64b4,'details':_0x1f9962});}['error'](_0x532835,_0x8e2130,_0x3cbeb0){const _0x4ea50e=a211_0x3dfac7;if(!this[_0x4ea50e(0x142)]||!this['winstonLogger'])return;this[_0x4ea50e(0x140)][_0x4ea50e(0x14b)](_0x8e2130,{'command':_0x532835,'details':_0x3cbeb0});}[a211_0x3dfac7(0x161)](_0x432d46,_0x3507ce,_0x1e0fb2){const _0x108118=a211_0x3dfac7;if(!this[_0x108118(0x142)]||!this[_0x108118(0x140)])return;this[_0x108118(0x140)]['warn'](_0x3507ce,{'command':_0x432d46,'details':_0x1e0fb2});}async[a211_0x3dfac7(0x149)](_0x6c4de9,_0x1c042a,_0x3af597){const _0x4e61a2=a211_0x3dfac7,_0x56b794=Date[_0x4e61a2(0x156)]();this[_0x4e61a2(0x139)](_0x6c4de9,'开始执行:\x20'+_0x1c042a);try{const _0x45aac8=await _0x3af597(),_0x23e366=Date['now']()-_0x56b794;return this[_0x4e61a2(0x158)](_0x6c4de9,_0x4e61a2(0x138)+_0x1c042a,_0x23e366),_0x45aac8;}catch(_0x586b83){const _0x35dba1=Date[_0x4e61a2(0x156)]()-_0x56b794;this['error'](_0x6c4de9,_0x4e61a2(0x134)+_0x1c042a,{'error':_0x586b83 instanceof Error?_0x586b83['message']:String(_0x586b83),'duration':_0x35dba1});throw _0x586b83;}}['readLogs'](){const _0x199562=a211_0x3dfac7;try{if(!a211_0x106ad2[_0x199562(0x135)](this[_0x199562(0x142)]))return[];const _0x228cb4=a211_0x106ad2['readFileSync'](this['logFilePath'],_0x199562(0x163));return _0x228cb4[_0x199562(0x14f)]('\x0a')[_0x199562(0x137)](_0x420bfb=>_0x420bfb[_0x199562(0x15c)]())[_0x199562(0x147)](_0x4182cf=>JSON[_0x199562(0x13a)](_0x4182cf));}catch(_0x44b1c6){return console['warn'](_0x199562(0x13b),_0x44b1c6),[];}}['clearLogs'](){const _0x2662da=a211_0x3dfac7;try{a211_0x106ad2[_0x2662da(0x135)](this[_0x2662da(0x142)])&&a211_0x106ad2['writeFileSync'](this[_0x2662da(0x142)],'',_0x2662da(0x163));}catch(_0x5d90eb){console[_0x2662da(0x161)](_0x2662da(0x162),_0x5d90eb);}}[a211_0x3dfac7(0x166)](){const _0x5b7b17=a211_0x3dfac7;return this[_0x5b7b17(0x140)];}}function a211_0x3bae(_0x1c2786,_0x5d37c1){_0x1c2786=_0x1c2786-0x134;const _0x45ada2=a211_0x45ad();let _0x3baef8=_0x45ada2[_0x1c2786];return _0x3baef8;}export const logger=new Logger();
@@ -1 +1 @@
1
- function a211_0x25f1(_0x5d98f4,_0x24a1f4){_0x5d98f4=_0x5d98f4-0x106;const _0x31e830=a211_0x31e8();let _0x25f175=_0x31e830[_0x5d98f4];return _0x25f175;}(function(_0x4bc19e,_0x2d6856){const _0x3557d4=a211_0x25f1,_0x178f0b=_0x4bc19e();while(!![]){try{const _0x3ee7ca=-parseInt(_0x3557d4(0x112))/0x1+parseInt(_0x3557d4(0x110))/0x2+-parseInt(_0x3557d4(0x10a))/0x3*(-parseInt(_0x3557d4(0x10c))/0x4)+parseInt(_0x3557d4(0x10d))/0x5*(parseInt(_0x3557d4(0x111))/0x6)+parseInt(_0x3557d4(0x109))/0x7+parseInt(_0x3557d4(0x10e))/0x8+-parseInt(_0x3557d4(0x115))/0x9*(parseInt(_0x3557d4(0x114))/0xa);if(_0x3ee7ca===_0x2d6856)break;else _0x178f0b['push'](_0x178f0b['shift']());}catch(_0x569930){_0x178f0b['push'](_0x178f0b['shift']());}}}(a211_0x31e8,0xaddef));import{CliErrors}from'../errors.js';function a211_0x31e8(){const _0x4648c1=['--params\x20must\x20be\x20a\x20JSON\x20object','1270zFgeHS','144369TlsUBm','Invalid\x20JSON\x20for\x20--params:\x20','object','validation','Example:\x20--params\x20\x27{\x22id\x22:123}\x27','4498277YUcvXo','3095538hbsPWV','isArray','4XIbucw','115HvOqrb','9720048eQxyrC','parse','1790606khuENU','11892NWCaBe','1080970JanCzZ'];a211_0x31e8=function(){return _0x4648c1;};return a211_0x31e8();}export function parseJsonParams(_0x13282c){const _0x153b8f=a211_0x25f1;if(!_0x13282c)return undefined;let _0x2c7bf2;try{_0x2c7bf2=JSON[_0x153b8f(0x10f)](_0x13282c);}catch{throw CliErrors['validation'](_0x153b8f(0x116)+_0x13282c);}if(!_0x2c7bf2||typeof _0x2c7bf2!==_0x153b8f(0x106)||Array[_0x153b8f(0x10b)](_0x2c7bf2))throw CliErrors[_0x153b8f(0x107)](_0x153b8f(0x113),_0x153b8f(0x108));return _0x2c7bf2;}
1
+ function a212_0x2a1d(_0x2c2200,_0x3c525e){_0x2c2200=_0x2c2200-0x144;const _0x59dcd7=a212_0x59dc();let _0x2a1d35=_0x59dcd7[_0x2c2200];return _0x2a1d35;}(function(_0x52c741,_0x22500f){const _0x18f106=a212_0x2a1d,_0x4048e=_0x52c741();while(!![]){try{const _0x2ed37b=parseInt(_0x18f106(0x14c))/0x1*(parseInt(_0x18f106(0x147))/0x2)+-parseInt(_0x18f106(0x14a))/0x3+-parseInt(_0x18f106(0x145))/0x4*(parseInt(_0x18f106(0x148))/0x5)+-parseInt(_0x18f106(0x14b))/0x6+parseInt(_0x18f106(0x14f))/0x7+-parseInt(_0x18f106(0x144))/0x8+parseInt(_0x18f106(0x14e))/0x9;if(_0x2ed37b===_0x22500f)break;else _0x4048e['push'](_0x4048e['shift']());}catch(_0x4e88e3){_0x4048e['push'](_0x4048e['shift']());}}}(a212_0x59dc,0x7cd37));function a212_0x59dc(){const _0x2bc630=['isArray','2683041OfkVKM','2858148UaavlL','1LlCiub','parse','26068257uqqwKT','3489563kIXWQL','7676928gGAmmH','104mXOssl','validation','364124flBlMm','141430wsJmnW'];a212_0x59dc=function(){return _0x2bc630;};return a212_0x59dc();}import{CliErrors}from'../errors.js';export function parseJsonParams(_0x31b9fd){const _0x532655=a212_0x2a1d;if(!_0x31b9fd)return undefined;let _0x3ae540;try{_0x3ae540=JSON[_0x532655(0x14d)](_0x31b9fd);}catch{throw CliErrors[_0x532655(0x146)]('Invalid\x20JSON\x20for\x20--params:\x20'+_0x31b9fd);}if(!_0x3ae540||typeof _0x3ae540!=='object'||Array[_0x532655(0x149)](_0x3ae540))throw CliErrors[_0x532655(0x146)]('--params\x20must\x20be\x20a\x20JSON\x20object','Example:\x20--params\x20\x27{\x22id\x22:123}\x27');return _0x3ae540;}
@@ -1 +1 @@
1
- const a212_0x440f61=a212_0x38bc;(function(_0x22184d,_0x19a54b){const _0x5b84cc=a212_0x38bc,_0x72f642=_0x22184d();while(!![]){try{const _0x33497c=-parseInt(_0x5b84cc(0xeb))/0x1+-parseInt(_0x5b84cc(0xea))/0x2+parseInt(_0x5b84cc(0xec))/0x3*(parseInt(_0x5b84cc(0xe8))/0x4)+-parseInt(_0x5b84cc(0xed))/0x5+parseInt(_0x5b84cc(0xee))/0x6+parseInt(_0x5b84cc(0xe9))/0x7*(parseInt(_0x5b84cc(0xef))/0x8)+-parseInt(_0x5b84cc(0xe6))/0x9;if(_0x33497c===_0x19a54b)break;else _0x72f642['push'](_0x72f642['shift']());}catch(_0x2073fe){_0x72f642['push'](_0x72f642['shift']());}}}(a212_0x52cd,0xbc613));export const isWindows=process[a212_0x440f61(0xe5)]===a212_0x440f61(0xe7);function a212_0x38bc(_0x44945a,_0x1cfef9){_0x44945a=_0x44945a-0xe5;const _0x52cde4=a212_0x52cd();let _0x38bc45=_0x52cde4[_0x44945a];return _0x38bc45;}function a212_0x52cd(){const _0x328b1a=['56tUpVdg','896172KbfAFk','451556nxHZLR','67182LFqueA','4412035XlNFRL','4236162JygzHV','506672xlJTOt','.cmd','platform','225729SFzkzh','win32','244fmpNZl'];a212_0x52cd=function(){return _0x328b1a;};return a212_0x52cd();}export function resolveNpmBin(_0x55b5f3){const _0x1c7836=a212_0x440f61;return isWindows?_0x55b5f3+_0x1c7836(0xf0):_0x55b5f3;}
1
+ function a213_0x5a80(_0x208f7d,_0x31fb17){_0x208f7d=_0x208f7d-0x91;const _0x1071ee=a213_0x1071();let _0x5a80e5=_0x1071ee[_0x208f7d];return _0x5a80e5;}const a213_0x17a570=a213_0x5a80;function a213_0x1071(){const _0x2ac14c=['3910291nQoMwA','54180bvcbSo','3999455yVprXT','2eTbpiu','win32','platform','1827EglkSz','.cmd','60BdUGIR','1514024OpYOUH','1342061ccJIRy','12DQprDm','646053bXGCSC','627007oSwdWt','40sKbPkX'];a213_0x1071=function(){return _0x2ac14c;};return a213_0x1071();}(function(_0x4badca,_0x2cef7b){const _0x582cce=a213_0x5a80,_0x2e97e1=_0x4badca();while(!![]){try{const _0x1ea51c=-parseInt(_0x582cce(0x93))/0x1+parseInt(_0x582cce(0x98))/0x2*(-parseInt(_0x582cce(0x92))/0x3)+parseInt(_0x582cce(0x9e))/0x4+parseInt(_0x582cce(0x97))/0x5*(parseInt(_0x582cce(0x91))/0x6)+-parseInt(_0x582cce(0x9f))/0x7*(parseInt(_0x582cce(0x94))/0x8)+-parseInt(_0x582cce(0x9b))/0x9*(parseInt(_0x582cce(0x96))/0xa)+-parseInt(_0x582cce(0x95))/0xb*(-parseInt(_0x582cce(0x9d))/0xc);if(_0x1ea51c===_0x2cef7b)break;else _0x2e97e1['push'](_0x2e97e1['shift']());}catch(_0xff90b9){_0x2e97e1['push'](_0x2e97e1['shift']());}}}(a213_0x1071,0xd0b52));export const isWindows=process[a213_0x17a570(0x9a)]===a213_0x17a570(0x99);export function resolveNpmBin(_0x3893b2){const _0x47ecd5=a213_0x17a570;return isWindows?_0x3893b2+_0x47ecd5(0x9c):_0x3893b2;}
@@ -1 +1 @@
1
- (function(_0x332d5c,_0x390352){const _0x3bce0d=a213_0x445c,_0x12ba85=_0x332d5c();while(!![]){try{const _0x8642=parseInt(_0x3bce0d(0x9e))/0x1*(parseInt(_0x3bce0d(0x96))/0x2)+-parseInt(_0x3bce0d(0x92))/0x3*(-parseInt(_0x3bce0d(0x91))/0x4)+-parseInt(_0x3bce0d(0x8d))/0x5*(parseInt(_0x3bce0d(0x9c))/0x6)+-parseInt(_0x3bce0d(0x97))/0x7*(-parseInt(_0x3bce0d(0xa0))/0x8)+-parseInt(_0x3bce0d(0x8c))/0x9+-parseInt(_0x3bce0d(0x93))/0xa*(parseInt(_0x3bce0d(0xa2))/0xb)+parseInt(_0x3bce0d(0x8f))/0xc;if(_0x8642===_0x390352)break;else _0x12ba85['push'](_0x12ba85['shift']());}catch(_0xffb04){_0x12ba85['push'](_0x12ba85['shift']());}}}(a213_0x16a0,0x7adaf));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 _0x5407aa=a213_0x445c,_0x4751d5=getTemplateBaseUrl();return _0x4751d5+_0x5407aa(0xa1);}function a213_0x445c(_0x28ace3,_0x394565){_0x28ace3=_0x28ace3-0x8b;const _0x16a009=a213_0x16a0();let _0x445c39=_0x16a009[_0x28ace3];return _0x445c39;}const LOCAL_TEMPLATE_PATH=resolve(__dirname,'../../templates/rules/lovrabet_rules.mdc.tpl');export async function fetchRulesFromCDN(){const _0x638059=a213_0x445c,_0x4e047f=getRulesCdnUrl(),_0x43a350=await fetch(_0x4e047f,{'headers':{'Accept':_0x638059(0x9d)}});if(!_0x43a350['ok'])throw new Error('CDN\x20请求失败:\x20'+_0x43a350['status']+'\x20'+_0x43a350[_0x638059(0x9f)]);const _0x1ba752=await _0x43a350[_0x638059(0x90)]();if(!_0x1ba752[_0x638059(0x95)]||typeof _0x1ba752[_0x638059(0x95)]!==_0x638059(0x94))throw new Error(_0x638059(0x8e));return _0x1ba752;}export async function getRulesContent(){try{const _0x5c1478=await fetchRulesFromCDN();return _0x5c1478['content'];}catch{return readLocalTemplate();}}function a213_0x16a0(){const _0x2997e3=['本地模板文件不存在:\x20','3798801hQCrkF','31505pvcACV','CDN\x20返回数据格式错误','10115292AoIIkZ','json','45932gdTruE','60ddZnME','110deEvuS','string','content','211010WoaUPG','97601qeFysH','catch','.cursor/rules','agents.md','utf-8','438dQCbbW','application/json','2GnLYEV','statusText','152IpisIQ','/rules/rules.json','163251PxByLz'];a213_0x16a0=function(){return _0x2997e3;};return a213_0x16a0();}export function readLocalTemplate(){const _0x3f1849=a213_0x445c;if(existsSync(LOCAL_TEMPLATE_PATH))return readFileSync(LOCAL_TEMPLATE_PATH,_0x3f1849(0x9b));throw new Error(_0x3f1849(0x8b)+LOCAL_TEMPLATE_PATH);}export async function writeRulesFile(_0x140618){const _0x12b2e6=a213_0x445c,_0x3d6256=await fetchRulesFromCDN()[_0x12b2e6(0x98)](()=>null);let _0x5b7529;_0x3d6256?(_0x5b7529=_0x3d6256['content'],_0x3d6256['lastUpdated']&&(_0x5b7529=appendUpdateTime(_0x5b7529,_0x3d6256['lastUpdated']))):_0x5b7529=readLocalTemplate();const _0x2801f0=dirname(_0x140618);!existsSync(_0x2801f0)&&mkdirSync(_0x2801f0,{'recursive':!![]}),writeFileSync(_0x140618,_0x5b7529,_0x12b2e6(0x9b));}export async function copyRulesToCursor(_0x527c71){const _0x5349a1=a213_0x445c,_0x113bca=join(_0x527c71,_0x5349a1(0x99)),_0x4aaa73=join(_0x113bca,'lovrabet_rules.mdc');if(existsSync(_0x4aaa73))return![];return await writeRulesFile(_0x4aaa73),!![];}export async function copyRulesToAgentsMd(_0x7d77f1){const _0xaa671a=a213_0x445c,_0x246b46=join(_0x7d77f1,_0xaa671a(0x9a));if(existsSync(_0x246b46))return![];return await writeRulesFile(_0x246b46),!![];}
1
+ const a214_0x53bd6b=a214_0x3518;(function(_0x57d960,_0x3f014e){const _0x13c94e=a214_0x3518,_0x5d1420=_0x57d960();while(!![]){try{const _0x5b3fa3=-parseInt(_0x13c94e(0x131))/0x1*(parseInt(_0x13c94e(0x11e))/0x2)+-parseInt(_0x13c94e(0x11d))/0x3+-parseInt(_0x13c94e(0x11c))/0x4*(parseInt(_0x13c94e(0x12e))/0x5)+-parseInt(_0x13c94e(0x125))/0x6*(parseInt(_0x13c94e(0x123))/0x7)+-parseInt(_0x13c94e(0x127))/0x8+parseInt(_0x13c94e(0x12a))/0x9*(parseInt(_0x13c94e(0x12f))/0xa)+parseInt(_0x13c94e(0x11f))/0xb;if(_0x5b3fa3===_0x3f014e)break;else _0x5d1420['push'](_0x5d1420['shift']());}catch(_0x22d4dc){_0x5d1420['push'](_0x5d1420['shift']());}}}(a214_0x43a6,0x917c8));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 _0x5927a4=getTemplateBaseUrl();return _0x5927a4+'/rules/rules.json';}const LOCAL_TEMPLATE_PATH=resolve(__dirname,a214_0x53bd6b(0x121));export async function fetchRulesFromCDN(){const _0x276c81=a214_0x53bd6b,_0x25fe06=getRulesCdnUrl(),_0x494c69=await fetch(_0x25fe06,{'headers':{'Accept':_0x276c81(0x126)}});if(!_0x494c69['ok'])throw new Error(_0x276c81(0x129)+_0x494c69['status']+'\x20'+_0x494c69['statusText']);const _0x33fefe=await _0x494c69[_0x276c81(0x128)]();if(!_0x33fefe['content']||typeof _0x33fefe[_0x276c81(0x132)]!=='string')throw new Error(_0x276c81(0x120));return _0x33fefe;}function a214_0x3518(_0x463874,_0x2553ea){_0x463874=_0x463874-0x11b;const _0x43a670=a214_0x43a6();let _0x3518cd=_0x43a670[_0x463874];return _0x3518cd;}export async function getRulesContent(){const _0x13fe86=a214_0x53bd6b;try{const _0x4bb636=await fetchRulesFromCDN();return _0x4bb636[_0x13fe86(0x132)];}catch{return readLocalTemplate();}}function a214_0x43a6(){const _0x235631=['1071880buxPRM','json','CDN\x20请求失败:\x20','9621XvbALu','agents.md','lovrabet_rules.mdc','.cursor/rules','15NVrgWp','2510MbyYHY','本地模板文件不存在:\x20','476737xdauje','content','lastUpdated','466876kTUduG','3234639dKdLUa','2Zgexax','38076665geSERt','CDN\x20返回数据格式错误','../../templates/rules/lovrabet_rules.mdc.tpl','catch','207130nBdmcr','utf-8','222SdMjFB','application/json'];a214_0x43a6=function(){return _0x235631;};return a214_0x43a6();}export function readLocalTemplate(){const _0x50ff0f=a214_0x53bd6b;if(existsSync(LOCAL_TEMPLATE_PATH))return readFileSync(LOCAL_TEMPLATE_PATH,_0x50ff0f(0x124));throw new Error(_0x50ff0f(0x130)+LOCAL_TEMPLATE_PATH);}export async function writeRulesFile(_0x18c595){const _0xa1b851=a214_0x53bd6b,_0x1dfaa6=await fetchRulesFromCDN()[_0xa1b851(0x122)](()=>null);let _0x291165;_0x1dfaa6?(_0x291165=_0x1dfaa6['content'],_0x1dfaa6[_0xa1b851(0x11b)]&&(_0x291165=appendUpdateTime(_0x291165,_0x1dfaa6[_0xa1b851(0x11b)]))):_0x291165=readLocalTemplate();const _0x4e13f5=dirname(_0x18c595);!existsSync(_0x4e13f5)&&mkdirSync(_0x4e13f5,{'recursive':!![]}),writeFileSync(_0x18c595,_0x291165,_0xa1b851(0x124));}export async function copyRulesToCursor(_0x2b5fa7){const _0x586fed=a214_0x53bd6b,_0x15f637=join(_0x2b5fa7,_0x586fed(0x12d)),_0x4b2a53=join(_0x15f637,_0x586fed(0x12c));if(existsSync(_0x4b2a53))return![];return await writeRulesFile(_0x4b2a53),!![];}export async function copyRulesToAgentsMd(_0x55132c){const _0xcd282f=a214_0x53bd6b,_0x23dffb=join(_0x55132c,_0xcd282f(0x12b));if(existsSync(_0x23dffb))return![];return await writeRulesFile(_0x23dffb),!![];}
@@ -1 +1 @@
1
- export function sleep(_0x11166b){return new Promise(_0x15e27d=>setTimeout(_0x15e27d,_0x11166b));}
1
+ export function sleep(_0x1b7bfe){return new Promise(_0xb6a82d=>setTimeout(_0xb6a82d,_0x1b7bfe));}
@@ -1 +1 @@
1
- const a215_0x213646=a215_0x3ef7;function a215_0x3ef7(_0xadada0,_0xf3446e){_0xadada0=_0xadada0-0xa4;const _0x1fc4ed=a215_0x1fc4();let _0x3ef7df=_0x1fc4ed[_0xadada0];return _0x3ef7df;}(function(_0x4c8ce1,_0xfeba53){const _0x2ad9cf=a215_0x3ef7,_0xfd40f2=_0x4c8ce1();while(!![]){try{const _0x788b0d=-parseInt(_0x2ad9cf(0xca))/0x1+parseInt(_0x2ad9cf(0xb7))/0x2+-parseInt(_0x2ad9cf(0xe5))/0x3*(-parseInt(_0x2ad9cf(0xdd))/0x4)+parseInt(_0x2ad9cf(0xd2))/0x5+parseInt(_0x2ad9cf(0xe6))/0x6*(-parseInt(_0x2ad9cf(0xdc))/0x7)+parseInt(_0x2ad9cf(0xb9))/0x8+parseInt(_0x2ad9cf(0xc0))/0x9*(parseInt(_0x2ad9cf(0xcf))/0xa);if(_0x788b0d===_0xfeba53)break;else _0xfd40f2['push'](_0xfd40f2['shift']());}catch(_0x26e5e2){_0xfd40f2['push'](_0xfd40f2['shift']());}}}(a215_0x1fc4,0x7b0e0));import a215_0x1b28be from'node:fs';import a215_0x9f51d5 from'node:path';import{logger}from'../utils/logger.js';import{getCliVersion}from'../utils/version.js';function a215_0x1fc4(){const _0x81ceb0=['padStart','success','error','开始处理模板内容替换','charAt','push','.json','toUpperCase','replaceContent','772132Crymge','.jsx','1356552CAGUow','.js','alias','datasetCode:\x20\x22','alias:\x20\x22','copyFile','getSeconds','841842gjwmlY','map','datasetCode','getDate','replaceApiContent','.ts','pad','name','processDirectory','toLowerCase','921514OgmJTP','tableName:\x20\x22','now','slice','toISOString','10aYVEph','formatLocalTimestamp','processFile','2545170fXBAJl','\x0a\x20\x20\x20\x20{\x20','api','模板内容替换完成','info','split','toComponentName','endsWith','\x20},','模板内容替换失败','4144nBJNAf','437884lePwsj','pop','.tpl','join','replace','isDirectory','readdir','utf8','15AXdmGs','2838GdXURz','includes','tableName','writeFile','message','.tsx','getMinutes','getMonth','extname','mkdir','template','toDisplayTitle','promises'];a215_0x1fc4=function(){return _0x81ceb0;};return a215_0x1fc4();}const CLI_VERSION=getCliVersion();export class TemplateReplacer{static[a215_0x213646(0xc6)](_0x2dfd07){const _0x39ce5d=a215_0x213646;return String(_0x2dfd07)[_0x39ce5d(0xae)](0x2,'0');}static[a215_0x213646(0xd0)](_0x2bfcb3){const _0x4bd46a=a215_0x213646,_0x2c329e=_0x2bfcb3['getFullYear'](),_0x1b18b5=this['pad'](_0x2bfcb3[_0x4bd46a(0xa8)]()+0x1),_0x476a83=this[_0x4bd46a(0xc6)](_0x2bfcb3[_0x4bd46a(0xc3)]()),_0x1afea2=this['pad'](_0x2bfcb3['getHours']()),_0x199a02=this[_0x4bd46a(0xc6)](_0x2bfcb3[_0x4bd46a(0xa7)]()),_0x2cc589=this[_0x4bd46a(0xc6)](_0x2bfcb3[_0x4bd46a(0xbf)]());return{'createdAt':_0x2c329e+'-'+_0x1b18b5+'-'+_0x476a83+'\x20'+_0x1afea2+':'+_0x199a02+':'+_0x2cc589,'createdDate':_0x2c329e+'-'+_0x1b18b5+'-'+_0x476a83,'createdTime':_0x1afea2+':'+_0x199a02+':'+_0x2cc589};}static[a215_0x213646(0xd8)](_0x6bf51){const _0x22326f=a215_0x213646,_0x3806d2=_0x6bf51[_0x22326f(0xd7)]('/')['pop']()||_0x6bf51;return _0x3806d2[_0x22326f(0xd7)]('-')['map'](_0xc4a908=>_0xc4a908[_0x22326f(0xb2)](0x0)[_0x22326f(0xb5)]()+_0xc4a908[_0x22326f(0xcd)](0x1)[_0x22326f(0xc9)]())[_0x22326f(0xe0)]('');}static['toDisplayTitle'](_0x17c8d2){const _0x4e15c4=a215_0x213646,_0x1243c9=_0x17c8d2[_0x4e15c4(0xd7)]('/')[_0x4e15c4(0xde)]()||_0x17c8d2;return _0x1243c9[_0x4e15c4(0xd7)]('-')[_0x4e15c4(0xc1)](_0x4349bd=>_0x4349bd[_0x4e15c4(0xb2)](0x0)[_0x4e15c4(0xb5)]()+_0x4349bd[_0x4e15c4(0xcd)](0x1)[_0x4e15c4(0xc9)]())[_0x4e15c4(0xe0)]('\x20');}static[a215_0x213646(0xb6)](_0x2f5d7f,_0x2f7b2d,_0x3b0004){const _0x51291e=a215_0x213646,_0x5acb95=this[_0x51291e(0xd8)](_0x2f7b2d),_0x554e1a=this[_0x51291e(0xac)](_0x2f7b2d),{createdAt:_0x24b3cb,createdDate:_0x2bce37,createdTime:_0x273c41}=this[_0x51291e(0xd0)](new Date());let _0x10e27c=_0x2f5d7f['replace'](/\{CliVersion\}/g,CLI_VERSION)[_0x51291e(0xe1)](/\{ComponentName\}/g,_0x5acb95)[_0x51291e(0xe1)](/\{DisplayTitle\}/g,_0x554e1a)['replace'](/\{PageName\}/g,_0x2f7b2d)[_0x51291e(0xe1)](/\{TemplateName\}/g,_0x3b0004)['replace'](/\{CreatedAt\}/g,_0x24b3cb)[_0x51291e(0xe1)](/\{CreatedDate\}/g,_0x2bce37)[_0x51291e(0xe1)](/\{CreatedTime\}/g,_0x273c41);return _0x10e27c;}static[a215_0x213646(0xc4)](_0x10f62b,_0x1d4dfc,_0x41c504,_0x3062f6,_0x3ed108,_0x129573,_0x23a999,_0x351835){const _0x2d7711=a215_0x213646,_0x40d9f3=new Date(),_0x474093=_0x40d9f3[_0x2d7711(0xce)](),_0x2ba4c1=_0x41c504[_0x2d7711(0xc1)](_0x33ad39=>{const _0x2d9047=_0x2d7711,_0x494a92=[_0x2d9047(0xbc)+_0x33ad39[_0x2d9047(0xc2)]+'\x22',_0x2d9047(0xcb)+_0x33ad39[_0x2d9047(0xe8)]+'\x22','name:\x20\x22'+_0x33ad39['name']+'\x22'];return _0x33ad39[_0x2d9047(0xbb)]&&_0x494a92[_0x2d9047(0xb3)](_0x2d9047(0xbd)+_0x33ad39[_0x2d9047(0xbb)]+'\x22'),_0x2d9047(0xd3)+_0x494a92['join'](',\x20')+_0x2d9047(0xda);})[_0x2d7711(0xe0)](''),_0x1c9d24=_0x3062f6||_0x41c504[0x0]?.[_0x2d7711(0xbb)]||'YourModel';let _0x5f51ed=_0x10f62b[_0x2d7711(0xe1)](/\{AppCode\}/g,_0x1d4dfc)[_0x2d7711(0xe1)](/\{ModelConfigs\}/g,_0x2ba4c1)[_0x2d7711(0xe1)](/\{ExampleModelName\}/g,_0x1c9d24)['replace'](/\{ApiFileName\}/g,_0x3ed108||_0x2d7711(0xd4))['replace'](/\{ConfigName\}/g,_0x129573||'default')['replace'](/\{ClientConfigParam\}/g,_0x23a999||'')[_0x2d7711(0xe1)](/\{VarPrefix\}/g,_0x351835||'LOVRABET')['replace'](/\{CreatedAt\}/g,_0x474093);return _0x5f51ed;}static async['processTemplate'](_0x24f990,_0x45cce4,_0x4b9124,_0x2ac246,_0x13f1c6=!![]){const _0x57a09d=a215_0x213646,_0x5dba1d=Date[_0x57a09d(0xcc)]();try{_0x13f1c6&&logger[_0x57a09d(0xd6)](_0x57a09d(0xab),_0x57a09d(0xb1),{'templatePath':_0x24f990,'targetPath':_0x45cce4,'pageName':_0x4b9124,'templateName':_0x2ac246});await a215_0x1b28be[_0x57a09d(0xad)][_0x57a09d(0xaa)](_0x45cce4,{'recursive':!![]}),await this['processDirectory'](_0x24f990,_0x45cce4,_0x4b9124,_0x2ac246);if(_0x13f1c6){const _0x46cf76=Date[_0x57a09d(0xcc)]()-_0x5dba1d;logger[_0x57a09d(0xaf)](_0x57a09d(0xab),_0x57a09d(0xd5),_0x46cf76,{'pageName':_0x4b9124,'templateName':_0x2ac246});}}catch(_0x3b88f8){if(_0x13f1c6){const _0x2feb66=Date[_0x57a09d(0xcc)]()-_0x5dba1d;logger[_0x57a09d(0xb0)](_0x57a09d(0xab),_0x57a09d(0xdb),{'templatePath':_0x24f990,'targetPath':_0x45cce4,'pageName':_0x4b9124,'templateName':_0x2ac246,'error':_0x3b88f8 instanceof Error?_0x3b88f8[_0x57a09d(0xa5)]:String(_0x3b88f8),'duration':_0x2feb66});}throw _0x3b88f8;}}static async[a215_0x213646(0xc8)](_0x2095f2,_0x1c4c9c,_0x225a96,_0x3d92aa){const _0x3fe49f=a215_0x213646,_0x464f1c=await a215_0x1b28be[_0x3fe49f(0xad)][_0x3fe49f(0xe3)](_0x2095f2,{'withFileTypes':!![]});for(const _0x1a50fc of _0x464f1c){const _0x5e2160=a215_0x9f51d5[_0x3fe49f(0xe0)](_0x2095f2,_0x1a50fc[_0x3fe49f(0xc7)]);let _0x31bd8f=a215_0x9f51d5['join'](_0x1c4c9c,_0x1a50fc[_0x3fe49f(0xc7)]);_0x1a50fc[_0x3fe49f(0xc7)][_0x3fe49f(0xd9)]('.tpl')&&(_0x31bd8f=a215_0x9f51d5['join'](_0x1c4c9c,_0x1a50fc['name'][_0x3fe49f(0xe1)](/\.tpl$/,'')));if(_0x1a50fc[_0x3fe49f(0xe2)]())await a215_0x1b28be[_0x3fe49f(0xad)][_0x3fe49f(0xaa)](_0x31bd8f,{'recursive':!![]}),await this[_0x3fe49f(0xc8)](_0x5e2160,_0x31bd8f,_0x225a96,_0x3d92aa);else _0x1a50fc['isFile']()&&await this['processFile'](_0x5e2160,_0x31bd8f,_0x225a96,_0x3d92aa);}}static async[a215_0x213646(0xd1)](_0xb5367,_0x257a23,_0x15c59e,_0x876a98){const _0x3de1cd=a215_0x213646,_0x3d3485=a215_0x9f51d5[_0x3de1cd(0xa9)](_0xb5367)[_0x3de1cd(0xc9)]();_0xb5367[_0x3de1cd(0xd9)](_0x3de1cd(0xdf))&&(_0x257a23=_0x257a23[_0x3de1cd(0xe1)](/\.tpl$/,''));const _0x476019=[_0x3de1cd(0xa6),_0x3de1cd(0xc5),_0x3de1cd(0xb8),_0x3de1cd(0xba),_0x3de1cd(0xb4),'.md','.css','.scss',_0x3de1cd(0xdf)];if(_0x476019[_0x3de1cd(0xe7)](_0x3d3485)||_0xb5367[_0x3de1cd(0xd9)]('.tpl')){const _0x225bd2=await a215_0x1b28be[_0x3de1cd(0xad)]['readFile'](_0xb5367,_0x3de1cd(0xe4)),_0x44625c=this[_0x3de1cd(0xb6)](_0x225bd2,_0x15c59e,_0x876a98);await a215_0x1b28be['promises'][_0x3de1cd(0xa4)](_0x257a23,_0x44625c,_0x3de1cd(0xe4));}else await a215_0x1b28be['promises'][_0x3de1cd(0xbe)](_0xb5367,_0x257a23);}}
1
+ const a216_0x1d64cf=a216_0x5523;(function(_0x53862e,_0x5acdad){const _0x26717f=a216_0x5523,_0x3e4020=_0x53862e();while(!![]){try{const _0x3781b9=-parseInt(_0x26717f(0x1df))/0x1*(parseInt(_0x26717f(0x20d))/0x2)+-parseInt(_0x26717f(0x210))/0x3+parseInt(_0x26717f(0x216))/0x4+-parseInt(_0x26717f(0x208))/0x5+parseInt(_0x26717f(0x1f8))/0x6+parseInt(_0x26717f(0x203))/0x7*(-parseInt(_0x26717f(0x1dc))/0x8)+parseInt(_0x26717f(0x1f5))/0x9*(parseInt(_0x26717f(0x21d))/0xa);if(_0x3781b9===_0x5acdad)break;else _0x3e4020['push'](_0x3e4020['shift']());}catch(_0x4fc6ec){_0x3e4020['push'](_0x3e4020['shift']());}}}(a216_0x7a1a,0x2f17f));import a216_0x311f6a from'node:fs';import a216_0x374453 from'node:path';function a216_0x5523(_0xddbb54,_0x44fe12){_0xddbb54=_0xddbb54-0x1dc;const _0x7a1a05=a216_0x7a1a();let _0x552348=_0x7a1a05[_0xddbb54];return _0x552348;}import{logger}from'../utils/logger.js';import{getCliVersion}from'../utils/version.js';const CLI_VERSION=getCliVersion();export class TemplateReplacer{static['pad'](_0x18cdd1){const _0x585d7f=a216_0x5523;return String(_0x18cdd1)[_0x585d7f(0x207)](0x2,'0');}static[a216_0x1d64cf(0x1eb)](_0x570ffd){const _0x2d294d=a216_0x1d64cf,_0x1d537c=_0x570ffd['getFullYear'](),_0xf322f9=this['pad'](_0x570ffd[_0x2d294d(0x1e1)]()+0x1),_0x30e396=this[_0x2d294d(0x21a)](_0x570ffd[_0x2d294d(0x1f0)]()),_0x11528c=this[_0x2d294d(0x21a)](_0x570ffd[_0x2d294d(0x1f4)]()),_0x5e701f=this['pad'](_0x570ffd[_0x2d294d(0x21e)]()),_0x195ebb=this[_0x2d294d(0x21a)](_0x570ffd['getSeconds']());return{'createdAt':_0x1d537c+'-'+_0xf322f9+'-'+_0x30e396+'\x20'+_0x11528c+':'+_0x5e701f+':'+_0x195ebb,'createdDate':_0x1d537c+'-'+_0xf322f9+'-'+_0x30e396,'createdTime':_0x11528c+':'+_0x5e701f+':'+_0x195ebb};}static[a216_0x1d64cf(0x205)](_0x2a8203){const _0x99185a=a216_0x1d64cf,_0x377fbf=_0x2a8203[_0x99185a(0x1ec)]('/')[_0x99185a(0x201)]()||_0x2a8203;return _0x377fbf[_0x99185a(0x1ec)]('-')[_0x99185a(0x1ea)](_0x3a8640=>_0x3a8640[_0x99185a(0x1f3)](0x0)['toUpperCase']()+_0x3a8640[_0x99185a(0x1ee)](0x1)[_0x99185a(0x1ef)]())[_0x99185a(0x1e4)]('');}static[a216_0x1d64cf(0x1e5)](_0x2a23df){const _0x2cb693=a216_0x1d64cf,_0x5cf26f=_0x2a23df[_0x2cb693(0x1ec)]('/')[_0x2cb693(0x201)]()||_0x2a23df;return _0x5cf26f['split']('-')[_0x2cb693(0x1ea)](_0x275299=>_0x275299['charAt'](0x0)[_0x2cb693(0x1fc)]()+_0x275299[_0x2cb693(0x1ee)](0x1)[_0x2cb693(0x1ef)]())['join']('\x20');}static[a216_0x1d64cf(0x1e8)](_0x450bcb,_0x3c57fd,_0x104288){const _0x29f712=a216_0x1d64cf,_0x30ae5b=this[_0x29f712(0x205)](_0x3c57fd),_0x24b257=this[_0x29f712(0x1e5)](_0x3c57fd),{createdAt:_0x45fca6,createdDate:_0x532240,createdTime:_0x1342fd}=this[_0x29f712(0x1eb)](new Date());let _0x13d656=_0x450bcb['replace'](/\{CliVersion\}/g,CLI_VERSION)[_0x29f712(0x1ed)](/\{ComponentName\}/g,_0x30ae5b)[_0x29f712(0x1ed)](/\{DisplayTitle\}/g,_0x24b257)[_0x29f712(0x1ed)](/\{PageName\}/g,_0x3c57fd)[_0x29f712(0x1ed)](/\{TemplateName\}/g,_0x104288)['replace'](/\{CreatedAt\}/g,_0x45fca6)[_0x29f712(0x1ed)](/\{CreatedDate\}/g,_0x532240)[_0x29f712(0x1ed)](/\{CreatedTime\}/g,_0x1342fd);return _0x13d656;}static[a216_0x1d64cf(0x220)](_0x4e8785,_0x3ee4c7,_0x5b9f21,_0x2b45eb,_0x2a5d73,_0x3fc025,_0x58cb6f,_0x16c25a){const _0x423355=a216_0x1d64cf,_0x3c6cd4=new Date(),_0x2fec4b=_0x3c6cd4[_0x423355(0x1fd)](),_0x27acf2=_0x5b9f21[_0x423355(0x1ea)](_0x425bf9=>{const _0xeb3d83=_0x423355,_0x557883=[_0xeb3d83(0x21f)+_0x425bf9[_0xeb3d83(0x219)]+'\x22',_0xeb3d83(0x21b)+_0x425bf9['tableName']+'\x22',_0xeb3d83(0x1fb)+_0x425bf9[_0xeb3d83(0x1f6)]+'\x22'];return _0x425bf9[_0xeb3d83(0x1e2)]&&_0x557883[_0xeb3d83(0x21c)](_0xeb3d83(0x215)+_0x425bf9['alias']+'\x22'),_0xeb3d83(0x1ff)+_0x557883[_0xeb3d83(0x1e4)](',\x20')+'\x20},';})[_0x423355(0x1e4)](''),_0x4ebe0d=_0x2b45eb||_0x5b9f21[0x0]?.[_0x423355(0x1e2)]||_0x423355(0x211);let _0x5a2932=_0x4e8785[_0x423355(0x1ed)](/\{AppCode\}/g,_0x3ee4c7)[_0x423355(0x1ed)](/\{ModelConfigs\}/g,_0x27acf2)[_0x423355(0x1ed)](/\{ExampleModelName\}/g,_0x4ebe0d)[_0x423355(0x1ed)](/\{ApiFileName\}/g,_0x2a5d73||'api')[_0x423355(0x1ed)](/\{ConfigName\}/g,_0x3fc025||_0x423355(0x20b))['replace'](/\{ClientConfigParam\}/g,_0x58cb6f||'')[_0x423355(0x1ed)](/\{VarPrefix\}/g,_0x16c25a||'LOVRABET')[_0x423355(0x1ed)](/\{CreatedAt\}/g,_0x2fec4b);return _0x5a2932;}static async[a216_0x1d64cf(0x1dd)](_0x336c8d,_0x314fe8,_0x5bb122,_0x1097e5,_0x3255ce=!![]){const _0x5442e0=a216_0x1d64cf,_0x2922ce=Date[_0x5442e0(0x1f2)]();try{_0x3255ce&&logger[_0x5442e0(0x1fa)](_0x5442e0(0x1e7),_0x5442e0(0x20e),{'templatePath':_0x336c8d,'targetPath':_0x314fe8,'pageName':_0x5bb122,'templateName':_0x1097e5});await a216_0x311f6a['promises'][_0x5442e0(0x20a)](_0x314fe8,{'recursive':!![]}),await this[_0x5442e0(0x1f1)](_0x336c8d,_0x314fe8,_0x5bb122,_0x1097e5);if(_0x3255ce){const _0x190ea1=Date[_0x5442e0(0x1f2)]()-_0x2922ce;logger[_0x5442e0(0x1e6)](_0x5442e0(0x1e7),_0x5442e0(0x1f7),_0x190ea1,{'pageName':_0x5bb122,'templateName':_0x1097e5});}}catch(_0x196360){if(_0x3255ce){const _0x3aab52=Date['now']()-_0x2922ce;logger['error'](_0x5442e0(0x1e7),'模板内容替换失败',{'templatePath':_0x336c8d,'targetPath':_0x314fe8,'pageName':_0x5bb122,'templateName':_0x1097e5,'error':_0x196360 instanceof Error?_0x196360[_0x5442e0(0x209)]:String(_0x196360),'duration':_0x3aab52});}throw _0x196360;}}static async[a216_0x1d64cf(0x1f1)](_0x21ef76,_0x3c5830,_0x260bfa,_0x11263c){const _0xcd3ab6=a216_0x1d64cf,_0x471e0d=await a216_0x311f6a['promises'][_0xcd3ab6(0x214)](_0x21ef76,{'withFileTypes':!![]});for(const _0x560ed6 of _0x471e0d){const _0x1b9020=a216_0x374453[_0xcd3ab6(0x1e4)](_0x21ef76,_0x560ed6[_0xcd3ab6(0x1f6)]);let _0x31e6c0=a216_0x374453[_0xcd3ab6(0x1e4)](_0x3c5830,_0x560ed6[_0xcd3ab6(0x1f6)]);_0x560ed6[_0xcd3ab6(0x1f6)]['endsWith'](_0xcd3ab6(0x1e3))&&(_0x31e6c0=a216_0x374453[_0xcd3ab6(0x1e4)](_0x3c5830,_0x560ed6['name'][_0xcd3ab6(0x1ed)](/\.tpl$/,'')));if(_0x560ed6[_0xcd3ab6(0x1e9)]())await a216_0x311f6a[_0xcd3ab6(0x200)]['mkdir'](_0x31e6c0,{'recursive':!![]}),await this[_0xcd3ab6(0x1f1)](_0x1b9020,_0x31e6c0,_0x260bfa,_0x11263c);else _0x560ed6[_0xcd3ab6(0x212)]()&&await this[_0xcd3ab6(0x20f)](_0x1b9020,_0x31e6c0,_0x260bfa,_0x11263c);}}static async['processFile'](_0x20b9ca,_0x4eae7c,_0x13d978,_0x500a71){const _0x3e3cd8=a216_0x1d64cf,_0x218f11=a216_0x374453[_0x3e3cd8(0x1fe)](_0x20b9ca)[_0x3e3cd8(0x1ef)]();_0x20b9ca['endsWith'](_0x3e3cd8(0x1e3))&&(_0x4eae7c=_0x4eae7c[_0x3e3cd8(0x1ed)](/\.tpl$/,''));const _0xd5ed55=[_0x3e3cd8(0x217),_0x3e3cd8(0x1f9),'.jsx',_0x3e3cd8(0x1e0),_0x3e3cd8(0x204),_0x3e3cd8(0x218),_0x3e3cd8(0x20c),_0x3e3cd8(0x213),_0x3e3cd8(0x1e3)];if(_0xd5ed55[_0x3e3cd8(0x206)](_0x218f11)||_0x20b9ca['endsWith'](_0x3e3cd8(0x1e3))){const _0x23cad9=await a216_0x311f6a['promises'][_0x3e3cd8(0x1de)](_0x20b9ca,'utf8'),_0x3f2c52=this['replaceContent'](_0x23cad9,_0x13d978,_0x500a71);await a216_0x311f6a[_0x3e3cd8(0x200)][_0x3e3cd8(0x202)](_0x4eae7c,_0x3f2c52,'utf8');}else await a216_0x311f6a[_0x3e3cd8(0x200)]['copyFile'](_0x20b9ca,_0x4eae7c);}}function a216_0x7a1a(){const _0x33cce1=['toLowerCase','getDate','processDirectory','now','charAt','getHours','9PxFuSA','name','模板内容替换完成','644274dwwgCa','.ts','info','name:\x20\x22','toUpperCase','toISOString','extname','\x0a\x20\x20\x20\x20{\x20','promises','pop','writeFile','1093008IkMtdQ','.json','toComponentName','includes','padStart','1821725AxgTOX','message','mkdir','default','.css','56094xIZhow','开始处理模板内容替换','processFile','471498mcaEQt','YourModel','isFile','.scss','readdir','alias:\x20\x22','890972cXHQqK','.tsx','.md','datasetCode','pad','tableName:\x20\x22','push','8368070KTsynY','getMinutes','datasetCode:\x20\x22','replaceApiContent','16RiNYGJ','processTemplate','readFile','5SNMROO','.js','getMonth','alias','.tpl','join','toDisplayTitle','success','template','replaceContent','isDirectory','map','formatLocalTimestamp','split','replace','slice'];a216_0x7a1a=function(){return _0x33cce1;};return a216_0x7a1a();}
@@ -1 +1 @@
1
- (function(_0x263e0c,_0x4e2ff7){const _0x320244=a216_0x30e7,_0x4b39e5=_0x263e0c();while(!![]){try{const _0x1cc97a=-parseInt(_0x320244(0xe6))/0x1*(-parseInt(_0x320244(0xeb))/0x2)+-parseInt(_0x320244(0xe8))/0x3+parseInt(_0x320244(0xed))/0x4*(-parseInt(_0x320244(0xe2))/0x5)+-parseInt(_0x320244(0xfd))/0x6*(parseInt(_0x320244(0xf2))/0x7)+parseInt(_0x320244(0xf4))/0x8+-parseInt(_0x320244(0xf3))/0x9+parseInt(_0x320244(0xf1))/0xa;if(_0x1cc97a===_0x4e2ff7)break;else _0x4b39e5['push'](_0x4b39e5['shift']());}catch(_0x2a2f6a){_0x4b39e5['push'](_0x4b39e5['shift']());}}}(a216_0x282e,0x4c1ca));import{mkdir,readFile,writeFile}from'node:fs/promises';import{homedir}from'node:os';import{dirname,join}from'node:path';import a216_0x1470c8 from'semver';import{CLI_BIN_NAME,NPM_PACKAGE_NAME}from'../constant/cli.js';function a216_0x30e7(_0x4f001f,_0x3b4056){_0x4f001f=_0x4f001f-0xe2;const _0x282ebc=a216_0x282e();let _0x30e7c2=_0x282ebc[_0x4f001f];return _0x30e7c2;}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 _0x3f407b=a216_0x30e7,_0x3c5b01=process.env.RABETBASE_NO_UPDATE_NOTICE?.[_0x3f407b(0xf8)]()[_0x3f407b(0xea)]();return _0x3c5b01==='1'||_0x3c5b01===_0x3f407b(0xf7)||_0x3c5b01===_0x3f407b(0xf6);}function a216_0x282e(){const _0x32d277=['checkedAt','utf8','https://www.npmjs.com/package/','stableVersion','318AArnhs','/v/','stringify','rabetbase-cli','5lWdIdB','\x20update','object',',\x20run:\x20','548658ArItTL','number','1656774suFxQF','gte','toLowerCase','2ApWCSX','.cache','1054996ANUSvi','lastNotifiedAt','latest','\x20available,\x20current\x20','6132780GEOqxT','609ZSNyQM','4336578JEekgl','3618224zWNPTz','valid','yes','true','trim'];a216_0x282e=function(){return _0x32d277;};return a216_0x282e();}function cacheRoot(){const _0x4e3c0c=a216_0x30e7;return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),_0x4e3c0c(0xec));}export function getUpdateNoticeCachePath(){const _0x1ed52d=a216_0x30e7;return join(cacheRoot(),_0x1ed52d(0x100),'update-check.json');}async function readUpdateNoticeCache(){const _0x2f08c4=a216_0x30e7;try{const _0x188c54=await readFile(getUpdateNoticeCachePath(),_0x2f08c4(0xfa)),_0x33e900=JSON['parse'](_0x188c54);if(!_0x33e900||typeof _0x33e900!==_0x2f08c4(0xe4))return{};return _0x33e900;}catch{return{};}}async function writeUpdateNoticeCache(_0x27f40e){const _0x3f09d6=a216_0x30e7;try{const _0x401f71=getUpdateNoticeCachePath();await mkdir(dirname(_0x401f71),{'recursive':!![]}),await writeFile(_0x401f71,JSON[_0x3f09d6(0xff)](_0x27f40e,null,0x2)+'\x0a',_0x3f09d6(0xfa));}catch{}}function isFreshCheck(_0x9f7e4f,_0x21e828){const _0x253108=a216_0x30e7;return typeof _0x9f7e4f[_0x253108(0xf9)]===_0x253108(0xe7)&&_0x21e828-_0x9f7e4f[_0x253108(0xf9)]<UPDATE_CHECK_TTL_MS;}function isRecentlyNotified(_0x3e6b1a,_0x1e59a3,_0x2c7822){const _0x24b5ca=a216_0x30e7;return _0x3e6b1a['lastNotifiedVersion']===_0x1e59a3&&typeof _0x3e6b1a[_0x24b5ca(0xee)]===_0x24b5ca(0xe7)&&_0x2c7822-_0x3e6b1a[_0x24b5ca(0xee)]<UPDATE_NOTICE_TTL_MS;}export function buildNpmVersionUrl(_0x36977c){const _0x1dd261=a216_0x30e7;return _0x1dd261(0xfb)+NPM_PACKAGE_NAME+_0x1dd261(0xfe)+_0x36977c;}export async function resolveLatestUpdateNotice(){const _0x47f43f=a216_0x30e7;if(isUpdateNoticeDisabled())return null;try{const _0x52af4a=Date['now'](),_0x506a6f=getCliVersion(),_0x294eb3=await readUpdateNoticeCache();let _0x41330f=isFreshCheck(_0x294eb3,_0x52af4a)?_0x294eb3[_0x47f43f(0xef)]?.[_0x47f43f(0xf8)]():undefined;if(!_0x41330f&&!isFreshCheck(_0x294eb3,_0x52af4a)){const _0x38a7e4=await getCliVersionPolicy();_0x41330f=_0x38a7e4?.[_0x47f43f(0xfc)]?.['trim']()||undefined,await writeUpdateNoticeCache({..._0x294eb3,'checkedAt':_0x52af4a,'latest':_0x41330f,'failed':!_0x41330f});}if(!_0x41330f||!a216_0x1470c8['valid'](_0x506a6f)||!a216_0x1470c8[_0x47f43f(0xf5)](_0x41330f))return null;if(a216_0x1470c8[_0x47f43f(0xe9)](_0x506a6f,_0x41330f))return null;if(isRecentlyNotified(_0x294eb3,_0x41330f,_0x52af4a))return null;const _0x1e76a3=CLI_BIN_NAME+_0x47f43f(0xe3);return await writeUpdateNoticeCache({..._0x294eb3,'checkedAt':isFreshCheck(_0x294eb3,_0x52af4a)?_0x294eb3['checkedAt']:_0x52af4a,'latest':_0x41330f,'failed':![],'lastNotifiedVersion':_0x41330f,'lastNotifiedAt':_0x52af4a}),{'command':_0x1e76a3,'current':_0x506a6f,'latest':_0x41330f,'url':buildNpmVersionUrl(_0x41330f),'message':CLI_BIN_NAME+'\x20'+_0x41330f+_0x47f43f(0xf0)+_0x506a6f+_0x47f43f(0xe5)+_0x1e76a3};}catch{return null;}}
1
+ function a217_0xd27d(){const _0x488a7b=['parse','488785KVtDpu','60WknRvd','stringify','stableVersion','238CxXwbf','1675402YrcHAo',',\x20run:\x20','update-check.json','.cache','gte','2QqKVnG','130evoEpa','true','183DSxVyc','67476mvhyfo','number','trim','utf8','52031376fncDnj','lastNotifiedAt','14766435fqnpGJ','/v/','rabetbase-cli','now','https://www.npmjs.com/package/','321544RsTpQB','844385CpoJTw','checkedAt','valid'];a217_0xd27d=function(){return _0x488a7b;};return a217_0xd27d();}(function(_0x10ab19,_0x48a333){const _0x2713fd=a217_0x37c5,_0x66d069=_0x10ab19();while(!![]){try{const _0xff3aa6=parseInt(_0x2713fd(0x16e))/0x1*(parseInt(_0x2713fd(0x169))/0x2)+parseInt(_0x2713fd(0x171))/0x3*(parseInt(_0x2713fd(0x172))/0x4)+parseInt(_0x2713fd(0x17e))/0x5*(parseInt(_0x2713fd(0x165))/0x6)+-parseInt(_0x2713fd(0x168))/0x7*(parseInt(_0x2713fd(0x17d))/0x8)+parseInt(_0x2713fd(0x178))/0x9+parseInt(_0x2713fd(0x16f))/0xa*(parseInt(_0x2713fd(0x164))/0xb)+-parseInt(_0x2713fd(0x176))/0xc;if(_0xff3aa6===_0x48a333)break;else _0x66d069['push'](_0x66d069['shift']());}catch(_0x19d22e){_0x66d069['push'](_0x66d069['shift']());}}}(a217_0xd27d,0xddef1));import{mkdir,readFile,writeFile}from'node:fs/promises';import{homedir}from'node:os';import{dirname,join}from'node:path';import a217_0x163709 from'semver';import{CLI_BIN_NAME,NPM_PACKAGE_NAME}from'../constant/cli.js';function a217_0x37c5(_0x30c5d5,_0x89b923){_0x30c5d5=_0x30c5d5-0x161;const _0xd27d36=a217_0xd27d();let _0x37c558=_0xd27d36[_0x30c5d5];return _0x37c558;}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 _0x67aac1=a217_0x37c5,_0x2a9dcb=process.env.RABETBASE_NO_UPDATE_NOTICE?.['trim']()['toLowerCase']();return _0x2a9dcb==='1'||_0x2a9dcb===_0x67aac1(0x170)||_0x2a9dcb==='yes';}function cacheRoot(){const _0x21b984=a217_0x37c5;return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),_0x21b984(0x16c));}export function getUpdateNoticeCachePath(){const _0x4baf9b=a217_0x37c5;return join(cacheRoot(),_0x4baf9b(0x17a),_0x4baf9b(0x16b));}async function readUpdateNoticeCache(){const _0x246a33=a217_0x37c5;try{const _0xc03d37=await readFile(getUpdateNoticeCachePath(),_0x246a33(0x175)),_0x510b55=JSON[_0x246a33(0x163)](_0xc03d37);if(!_0x510b55||typeof _0x510b55!=='object')return{};return _0x510b55;}catch{return{};}}async function writeUpdateNoticeCache(_0x45c120){const _0x5d074e=a217_0x37c5;try{const _0x5da543=getUpdateNoticeCachePath();await mkdir(dirname(_0x5da543),{'recursive':!![]}),await writeFile(_0x5da543,JSON[_0x5d074e(0x166)](_0x45c120,null,0x2)+'\x0a',_0x5d074e(0x175));}catch{}}function isFreshCheck(_0x42b03c,_0x251e6b){const _0x42f4ae=a217_0x37c5;return typeof _0x42b03c[_0x42f4ae(0x161)]===_0x42f4ae(0x173)&&_0x251e6b-_0x42b03c[_0x42f4ae(0x161)]<UPDATE_CHECK_TTL_MS;}function isRecentlyNotified(_0x31f806,_0x359fbe,_0xc16ef3){const _0x13b301=a217_0x37c5;return _0x31f806['lastNotifiedVersion']===_0x359fbe&&typeof _0x31f806[_0x13b301(0x177)]==='number'&&_0xc16ef3-_0x31f806[_0x13b301(0x177)]<UPDATE_NOTICE_TTL_MS;}export function buildNpmVersionUrl(_0x3bdde2){const _0x14d4fe=a217_0x37c5;return _0x14d4fe(0x17c)+NPM_PACKAGE_NAME+_0x14d4fe(0x179)+_0x3bdde2;}export async function resolveLatestUpdateNotice(){const _0x28fb00=a217_0x37c5;if(isUpdateNoticeDisabled())return null;try{const _0x493417=Date[_0x28fb00(0x17b)](),_0x2021c1=getCliVersion(),_0x4e7743=await readUpdateNoticeCache();let _0x516594=isFreshCheck(_0x4e7743,_0x493417)?_0x4e7743['latest']?.['trim']():undefined;if(!_0x516594&&!isFreshCheck(_0x4e7743,_0x493417)){const _0x3de613=await getCliVersionPolicy();_0x516594=_0x3de613?.[_0x28fb00(0x167)]?.[_0x28fb00(0x174)]()||undefined,await writeUpdateNoticeCache({..._0x4e7743,'checkedAt':_0x493417,'latest':_0x516594,'failed':!_0x516594});}if(!_0x516594||!a217_0x163709[_0x28fb00(0x162)](_0x2021c1)||!a217_0x163709[_0x28fb00(0x162)](_0x516594))return null;if(a217_0x163709[_0x28fb00(0x16d)](_0x2021c1,_0x516594))return null;if(isRecentlyNotified(_0x4e7743,_0x516594,_0x493417))return null;const _0x3899f0=CLI_BIN_NAME+'\x20update';return await writeUpdateNoticeCache({..._0x4e7743,'checkedAt':isFreshCheck(_0x4e7743,_0x493417)?_0x4e7743['checkedAt']:_0x493417,'latest':_0x516594,'failed':![],'lastNotifiedVersion':_0x516594,'lastNotifiedAt':_0x493417}),{'command':_0x3899f0,'current':_0x2021c1,'latest':_0x516594,'url':buildNpmVersionUrl(_0x516594),'message':CLI_BIN_NAME+'\x20'+_0x516594+'\x20available,\x20current\x20'+_0x2021c1+_0x28fb00(0x16a)+_0x3899f0};}catch{return null;}}
@@ -1 +1 @@
1
- (function(_0x5ebd73,_0x40b45f){var _0x1f2866=a217_0x4306,_0x49a77e=_0x5ebd73();while(!![]){try{var _0x497f52=parseInt(_0x1f2866(0x192))/0x1*(parseInt(_0x1f2866(0x18c))/0x2)+-parseInt(_0x1f2866(0x18f))/0x3*(parseInt(_0x1f2866(0x18b))/0x4)+parseInt(_0x1f2866(0x188))/0x5*(parseInt(_0x1f2866(0x191))/0x6)+-parseInt(_0x1f2866(0x190))/0x7*(-parseInt(_0x1f2866(0x189))/0x8)+-parseInt(_0x1f2866(0x18e))/0x9+parseInt(_0x1f2866(0x18d))/0xa*(-parseInt(_0x1f2866(0x193))/0xb)+parseInt(_0x1f2866(0x18a))/0xc;if(_0x497f52===_0x40b45f)break;else _0x49a77e['push'](_0x49a77e['shift']());}catch(_0x180be0){_0x49a77e['push'](_0x49a77e['shift']());}}}(a217_0x260e,0xbb6ff));function a217_0x260e(){var _0x26415a=['5428404HrQkXO','1TJUgQB','11kMCeUn','5dCBQXR','3902848FRgRLv','19162536mhNrYT','4tPoBHT','1273372BIFSeX','9085290FxHQyM','13617369atGFsB','1310523MwQUXw','7BdoWHx'];a217_0x260e=function(){return _0x26415a;};return a217_0x260e();}import{VERSION}from'../generated/build-info.js';function a217_0x4306(_0x345433,_0x2d9629){_0x345433=_0x345433-0x188;var _0x260e7e=a217_0x260e();var _0x430613=_0x260e7e[_0x345433];return _0x430613;}export function getCliVersion(){return VERSION;}
1
+ (function(_0x554df9,_0x73a7e2){var _0x464035=a218_0x359e,_0x26d84a=_0x554df9();while(!![]){try{var _0x2659cc=parseInt(_0x464035(0x82))/0x1+parseInt(_0x464035(0x88))/0x2+-parseInt(_0x464035(0x7f))/0x3*(-parseInt(_0x464035(0x85))/0x4)+-parseInt(_0x464035(0x84))/0x5+parseInt(_0x464035(0x81))/0x6*(-parseInt(_0x464035(0x86))/0x7)+-parseInt(_0x464035(0x80))/0x8*(-parseInt(_0x464035(0x87))/0x9)+parseInt(_0x464035(0x83))/0xa;if(_0x2659cc===_0x73a7e2)break;else _0x26d84a['push'](_0x26d84a['shift']());}catch(_0x333688){_0x26d84a['push'](_0x26d84a['shift']());}}}(a218_0x1653,0x8eb9a));import{VERSION}from'../generated/build-info.js';export function getCliVersion(){return VERSION;}function a218_0x359e(_0x3eafb5,_0xc8e1d2){_0x3eafb5=_0x3eafb5-0x7f;var _0x165320=a218_0x1653();var _0x359e36=_0x165320[_0x3eafb5];return _0x359e36;}function a218_0x1653(){var _0x1fadbc=['18xakPei','200964EbSBkL','9WTkDVS','1556248jKyFmJ','11802CXeeCL','312770WCdKkr','8768730lcicGG','3246630tTMQHy','589144VelOAQ','3157OhCBmp'];a218_0x1653=function(){return _0x1fadbc;};return a218_0x1653();}
@@ -1 +1 @@
1
- function a218_0x1fed(){var _0x2f07c3=['22895YEQozq','10912cgSkHh','160cXvvLc','1233815tbGTaY','598332csOAel','98BAYEgZ','168938fHkwZt','204lsLvdz','412922TwalTF','3748248SPhGHG','657tprELN'];a218_0x1fed=function(){return _0x2f07c3;};return a218_0x1fed();}(function(_0x34c89e,_0x2cd9bf){var _0x50f680=a218_0x470c,_0x3dd1ae=_0x34c89e();while(!![]){try{var _0x16578e=parseInt(_0x50f680(0x79))/0x1+-parseInt(_0x50f680(0x73))/0x2+-parseInt(_0x50f680(0x74))/0x3+parseInt(_0x50f680(0x72))/0x4*(-parseInt(_0x50f680(0x76))/0x5)+-parseInt(_0x50f680(0x6f))/0x6*(-parseInt(_0x50f680(0x70))/0x7)+-parseInt(_0x50f680(0x77))/0x8*(-parseInt(_0x50f680(0x75))/0x9)+parseInt(_0x50f680(0x78))/0xa*(-parseInt(_0x50f680(0x71))/0xb);if(_0x16578e===_0x2cd9bf)break;else _0x3dd1ae['push'](_0x3dd1ae['shift']());}catch(_0x17c48c){_0x3dd1ae['push'](_0x3dd1ae['shift']());}}}(a218_0x1fed,0xc1ef9));import{setActiveCookie,clearActiveCookie}from'../core/api-client.js';function a218_0x470c(_0x3e9ddd,_0x3f9d45){_0x3e9ddd=_0x3e9ddd-0x6f;var _0x1fed8e=a218_0x1fed();var _0x470cde=_0x1fed8e[_0x3e9ddd];return _0x470cde;}export async function withActiveCookie(_0x10b818,_0x2ddf6f){setActiveCookie(_0x10b818);try{return await _0x2ddf6f();}finally{clearActiveCookie();}}
1
+ (function(_0x369aa6,_0x2433ac){var _0x192b5c=a219_0x1621,_0x5defef=_0x369aa6();while(!![]){try{var _0x2b5120=parseInt(_0x192b5c(0x125))/0x1*(-parseInt(_0x192b5c(0x123))/0x2)+-parseInt(_0x192b5c(0x126))/0x3+parseInt(_0x192b5c(0x124))/0x4*(parseInt(_0x192b5c(0x122))/0x5)+parseInt(_0x192b5c(0x121))/0x6+-parseInt(_0x192b5c(0x12a))/0x7+-parseInt(_0x192b5c(0x127))/0x8*(parseInt(_0x192b5c(0x129))/0x9)+parseInt(_0x192b5c(0x128))/0xa;if(_0x2b5120===_0x2433ac)break;else _0x5defef['push'](_0x5defef['shift']());}catch(_0x5dda64){_0x5defef['push'](_0x5defef['shift']());}}}(a219_0x4adc,0x71ff2));function a219_0x1621(_0x7f53da,_0x73dd77){_0x7f53da=_0x7f53da-0x121;var _0x4adcfa=a219_0x4adc();var _0x16217b=_0x4adcfa[_0x7f53da];return _0x16217b;}function a219_0x4adc(){var _0x270b83=['6UTFXVW','4IxEDtR','310949UFEgbL','1499319BYkxFf','2364944JsIrFO','14882300wwDzDe','9IrGitC','2146284rGDQxG','2545266srfLDB','2946695QYFMPX'];a219_0x4adc=function(){return _0x270b83;};return a219_0x4adc();}import{setActiveCookie,clearActiveCookie}from'../core/api-client.js';export async function withActiveCookie(_0x3af10d,_0x3785ae){setActiveCookie(_0x3af10d);try{return await _0x3785ae();}finally{clearActiveCookie();}}
@@ -1 +1 @@
1
- (function(_0x18dfff,_0x2ab85d){var _0x29b60c=a219_0x4557,_0x58ee72=_0x18dfff();while(!![]){try{var _0x20479c=parseInt(_0x29b60c(0x99))/0x1*(-parseInt(_0x29b60c(0x95))/0x2)+-parseInt(_0x29b60c(0x98))/0x3*(parseInt(_0x29b60c(0x97))/0x4)+parseInt(_0x29b60c(0x8e))/0x5+-parseInt(_0x29b60c(0x92))/0x6*(parseInt(_0x29b60c(0x8b))/0x7)+parseInt(_0x29b60c(0x94))/0x8*(parseInt(_0x29b60c(0x93))/0x9)+-parseInt(_0x29b60c(0x8f))/0xa*(parseInt(_0x29b60c(0x96))/0xb)+-parseInt(_0x29b60c(0x90))/0xc*(-parseInt(_0x29b60c(0x8c))/0xd);if(_0x20479c===_0x2ab85d)break;else _0x58ee72['push'](_0x58ee72['shift']());}catch(_0x5c2204){_0x58ee72['push'](_0x58ee72['shift']());}}}(a219_0x3a38,0x393d5));function a219_0x4557(_0x1d3afa,_0x4b2b84){_0x1d3afa=_0x1d3afa-0x8b;var _0x3a38df=a219_0x3a38();var _0x45579d=_0x3a38df[_0x1d3afa];return _0x45579d;}export function writeCliSideChannelLine(_0x18c47f){var _0x417c02=a219_0x4557;process[_0x417c02(0x91)][_0x417c02(0x8d)](_0x18c47f+'\x0a');}function a219_0x3a38(){var _0x3cd022=['874478AItdAL','4pERKqu','1030881kxByOJ','6505loPCRn','14ZWHdPB','182hJtPBK','write','1649605VbqNCO','30LZSXta','674484Wywybx','stderr','650706NbEGmq','9mpNTzs','2507696TPolgf','122ZQIGpi'];a219_0x3a38=function(){return _0x3cd022;};return a219_0x3a38();}
1
+ function a220_0x5b60(){var _0x260fcc=['3555715XFopaL','4DkITiT','3729976uicjVg','4601710HAXVPV','write','2256TTOPIg','40949GRLjvw','581lpScke','1026amgxin','9sveBiF','108KEqiJb','4037341jPvOdE','63534jRgada'];a220_0x5b60=function(){return _0x260fcc;};return a220_0x5b60();}function a220_0x2352(_0x434040,_0x2f84fb){_0x434040=_0x434040-0x1ee;var _0x5b608a=a220_0x5b60();var _0x2352a2=_0x5b608a[_0x434040];return _0x2352a2;}(function(_0x1862de,_0x30f774){var _0x4d3298=a220_0x2352,_0x1765f0=_0x1862de();while(!![]){try{var _0xb2356f=parseInt(_0x4d3298(0x1fa))/0x1+parseInt(_0x4d3298(0x1ef))/0x2*(-parseInt(_0x4d3298(0x1f9))/0x3)+parseInt(_0x4d3298(0x1f5))/0x4*(-parseInt(_0x4d3298(0x1f4))/0x5)+-parseInt(_0x4d3298(0x1f3))/0x6*(parseInt(_0x4d3298(0x1ee))/0x7)+parseInt(_0x4d3298(0x1f6))/0x8*(-parseInt(_0x4d3298(0x1f0))/0x9)+-parseInt(_0x4d3298(0x1f7))/0xa+-parseInt(_0x4d3298(0x1f2))/0xb*(-parseInt(_0x4d3298(0x1f1))/0xc);if(_0xb2356f===_0x30f774)break;else _0x1765f0['push'](_0x1765f0['shift']());}catch(_0x15125f){_0x1765f0['push'](_0x1765f0['shift']());}}}(a220_0x5b60,0x6be94));export function writeCliSideChannelLine(_0x585531){var _0x183ea3=a220_0x2352;process['stderr'][_0x183ea3(0x1f8)](_0x585531+'\x0a');}