@lovrabet/rabetbase-cli 2.3.6 → 2.3.7-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 (243) hide show
  1. package/lib/api/api-doc.js +1 -1
  2. package/lib/api/fetch-model-list.js +1 -1
  3. package/lib/api/generate-api-file.js +1 -1
  4. package/lib/auth/auth-server-ui.js +1 -1
  5. package/lib/auth/auth-server.js +1 -1
  6. package/lib/auth/constant.js +1 -1
  7. package/lib/auth/get-cookie.js +1 -1
  8. package/lib/auth/get-session-user.js +1 -1
  9. package/lib/auth/is-session-valid.js +1 -1
  10. package/lib/auth/login-success-html.js +1 -1
  11. package/lib/auth/logout.js +1 -1
  12. package/lib/cli-flags.js +1 -1
  13. package/lib/cli.js +1 -1
  14. package/lib/commands/api/generate.js +1 -1
  15. package/lib/commands/api/index.js +1 -1
  16. package/lib/commands/api/list.js +1 -1
  17. package/lib/commands/api/pull.js +1 -1
  18. package/lib/commands/api/shared.js +1 -1
  19. package/lib/commands/app/add.js +1 -1
  20. package/lib/commands/app/index.js +1 -1
  21. package/lib/commands/app/list.js +1 -1
  22. package/lib/commands/app/remote-directory.js +1 -1
  23. package/lib/commands/app/remove.js +1 -1
  24. package/lib/commands/app/shared.js +1 -1
  25. package/lib/commands/app-config/delete.js +1 -1
  26. package/lib/commands/app-config/get.js +1 -1
  27. package/lib/commands/app-config/index.js +1 -1
  28. package/lib/commands/app-config/list.js +1 -1
  29. package/lib/commands/app-config/set.js +1 -1
  30. package/lib/commands/app-config/shared.js +1 -1
  31. package/lib/commands/auth/index.js +1 -1
  32. package/lib/commands/bff/create.js +1 -1
  33. package/lib/commands/bff/delete.js +1 -1
  34. package/lib/commands/bff/detail.js +1 -1
  35. package/lib/commands/bff/index.js +1 -1
  36. package/lib/commands/bff/list.js +1 -1
  37. package/lib/commands/bff/pull.js +1 -1
  38. package/lib/commands/bff/push.js +1 -1
  39. package/lib/commands/bff/status.js +1 -1
  40. package/lib/commands/cli-skill/index.js +1 -1
  41. package/lib/commands/cli-update.js +1 -1
  42. package/lib/commands/codegen/index.js +1 -1
  43. package/lib/commands/codegen/sdk.js +1 -1
  44. package/lib/commands/codegen/sql.js +1 -1
  45. package/lib/commands/common/app-registry.js +1 -1
  46. package/lib/commands/common/app-selector.js +1 -1
  47. package/lib/commands/common/dry-run.js +1 -1
  48. package/lib/commands/common/flags.js +1 -1
  49. package/lib/commands/common/local-file.js +1 -0
  50. package/lib/commands/common/validate.js +1 -1
  51. package/lib/commands/config/get.js +1 -1
  52. package/lib/commands/config/index.js +1 -1
  53. package/lib/commands/config/list.js +1 -1
  54. package/lib/commands/config/set.js +1 -1
  55. package/lib/commands/config/shared.js +1 -1
  56. package/lib/commands/data/filter.js +1 -1
  57. package/lib/commands/data/getOne.js +1 -1
  58. package/lib/commands/data/index.js +1 -1
  59. package/lib/commands/data/shared.js +1 -1
  60. package/lib/commands/dataset/business-group-update.js +1 -1
  61. package/lib/commands/dataset/capability.js +1 -1
  62. package/lib/commands/dataset/delete.js +1 -1
  63. package/lib/commands/dataset/detail.js +1 -1
  64. package/lib/commands/dataset/extend-update.js +1 -1
  65. package/lib/commands/dataset/field-update.js +1 -1
  66. package/lib/commands/dataset/generate.js +1 -1
  67. package/lib/commands/dataset/index.js +1 -1
  68. package/lib/commands/dataset/list.js +1 -1
  69. package/lib/commands/dataset/operations.js +1 -1
  70. package/lib/commands/dataset/relation-audit.js +1 -1
  71. package/lib/commands/dataset/relation-create.js +1 -1
  72. package/lib/commands/dataset/relation-delete.js +1 -1
  73. package/lib/commands/dataset/relation-shared.js +1 -1
  74. package/lib/commands/dataset/relation-update.js +1 -1
  75. package/lib/commands/dataset/relations.js +1 -1
  76. package/lib/commands/dataset/rename.js +1 -1
  77. package/lib/commands/dataset/restore.js +1 -1
  78. package/lib/commands/db/analysis-batching.js +1 -0
  79. package/lib/commands/db/analyze-batch-plan.js +1 -0
  80. package/lib/commands/db/analyze-cancel.js +1 -1
  81. package/lib/commands/db/analyze-start.js +1 -1
  82. package/lib/commands/db/analyze-status.js +1 -1
  83. package/lib/commands/db/create.js +1 -1
  84. package/lib/commands/db/delete.js +1 -1
  85. package/lib/commands/db/detail.js +1 -1
  86. package/lib/commands/db/diff.js +1 -1
  87. package/lib/commands/db/index.js +1 -1
  88. package/lib/commands/db/list.js +1 -1
  89. package/lib/commands/db/shared.js +1 -1
  90. package/lib/commands/db/tables.js +1 -1
  91. package/lib/commands/db/test.js +1 -1
  92. package/lib/commands/db/update.js +1 -1
  93. package/lib/commands/doctor.js +1 -1
  94. package/lib/commands/file/index.js +1 -0
  95. package/lib/commands/init/index.js +1 -1
  96. package/lib/commands/issue/index.js +1 -1
  97. package/lib/commands/issue/nudge.js +1 -1
  98. package/lib/commands/issue/report.js +1 -1
  99. package/lib/commands/issue/shared.js +1 -1
  100. package/lib/commands/logs/index.js +1 -1
  101. package/lib/commands/menu/index.js +1 -1
  102. package/lib/commands/menu/list.js +1 -1
  103. package/lib/commands/menu/shared/compare-table.js +1 -1
  104. package/lib/commands/menu/shared/index.js +1 -1
  105. package/lib/commands/menu/shared/inquirer.js +1 -1
  106. package/lib/commands/menu/shared/local-pages.js +1 -1
  107. package/lib/commands/menu/shared/logic.js +1 -1
  108. package/lib/commands/menu/shared/service.js +1 -1
  109. package/lib/commands/menu/shared/sync-core.js +1 -1
  110. package/lib/commands/menu/shared/update-core.js +1 -1
  111. package/lib/commands/menu/shared/valid-url.js +1 -1
  112. package/lib/commands/menu/sync.js +1 -1
  113. package/lib/commands/menu/update.js +1 -1
  114. package/lib/commands/page/generate-start.js +1 -1
  115. package/lib/commands/page/generate-status.js +1 -1
  116. package/lib/commands/page/index.js +1 -1
  117. package/lib/commands/page/pull.js +1 -1
  118. package/lib/commands/page/push.js +1 -1
  119. package/lib/commands/page/relation-audit.js +1 -1
  120. package/lib/commands/page/shared.js +1 -1
  121. package/lib/commands/page/standard-page-status.js +1 -1
  122. package/lib/commands/page/sync.js +1 -1
  123. package/lib/commands/permit/index.js +1 -1
  124. package/lib/commands/permit/page-get.js +1 -1
  125. package/lib/commands/permit/page-set.js +1 -1
  126. package/lib/commands/permit/role-apis-set.js +1 -1
  127. package/lib/commands/permit/role-menus-set.js +1 -1
  128. package/lib/commands/permit/role-menus.js +1 -1
  129. package/lib/commands/permit/shared.js +1 -1
  130. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  131. package/lib/commands/project/create/format-elapsed.js +1 -1
  132. package/lib/commands/project/create/main.js +1 -1
  133. package/lib/commands/project/create/non-interactive.js +1 -1
  134. package/lib/commands/project/create/project-template-path.js +1 -1
  135. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  136. package/lib/commands/project/create/use-format-code.js +1 -1
  137. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  138. package/lib/commands/project/index.js +1 -1
  139. package/lib/commands/project/init.js +1 -1
  140. package/lib/commands/project/upgrade.js +1 -1
  141. package/lib/commands/registry.js +1 -1
  142. package/lib/commands/role/create.js +1 -1
  143. package/lib/commands/role/delete.js +1 -1
  144. package/lib/commands/role/detail.js +1 -1
  145. package/lib/commands/role/index.js +1 -1
  146. package/lib/commands/role/list.js +1 -1
  147. package/lib/commands/role/shared.js +1 -1
  148. package/lib/commands/role/update.js +1 -1
  149. package/lib/commands/role/user-add.js +1 -1
  150. package/lib/commands/role/user-remove.js +1 -1
  151. package/lib/commands/role/user-resolve.js +1 -1
  152. package/lib/commands/run/index.js +1 -1
  153. package/lib/commands/schema.js +1 -1
  154. package/lib/commands/sql/create.js +1 -1
  155. package/lib/commands/sql/delete.js +1 -1
  156. package/lib/commands/sql/detail.js +1 -1
  157. package/lib/commands/sql/exec.js +1 -1
  158. package/lib/commands/sql/index.js +1 -1
  159. package/lib/commands/sql/list.js +1 -1
  160. package/lib/commands/sql/pull.js +1 -1
  161. package/lib/commands/sql/push.js +1 -1
  162. package/lib/commands/sql/save.js +1 -1
  163. package/lib/commands/sql/shared.js +1 -1
  164. package/lib/commands/sql/status.js +1 -1
  165. package/lib/commands/sql/validate.js +1 -1
  166. package/lib/commands/workspace/add.js +1 -1
  167. package/lib/commands/workspace/index.js +1 -1
  168. package/lib/commands/workspace/remove.js +1 -1
  169. package/lib/config/schema.js +1 -1
  170. package/lib/constant/cdn.js +1 -1
  171. package/lib/constant/cli.js +1 -1
  172. package/lib/constant/defaults.js +1 -1
  173. package/lib/constant/domain.js +1 -1
  174. package/lib/constant/env.js +1 -1
  175. package/lib/constant/output.js +1 -1
  176. package/lib/constant/paths.js +1 -1
  177. package/lib/constant/risk.js +1 -1
  178. package/lib/context/app-resolver.js +1 -1
  179. package/lib/context/auth-resolver.js +1 -1
  180. package/lib/context/config-loader.js +1 -1
  181. package/lib/context.js +1 -1
  182. package/lib/core/alias-resolver.js +1 -1
  183. package/lib/core/api-client.js +1 -1
  184. package/lib/core/bff/config.js +1 -1
  185. package/lib/core/bff/file-system.js +1 -1
  186. package/lib/core/bff/hash.js +1 -1
  187. package/lib/core/bff/lock.js +1 -1
  188. package/lib/core/bff/utils.js +1 -1
  189. package/lib/core/db-resolver.js +1 -1
  190. package/lib/core/page/file-system.js +1 -1
  191. package/lib/core/page/hash.js +1 -1
  192. package/lib/core/page/lock.js +1 -1
  193. package/lib/core/sql-sync/config.js +1 -1
  194. package/lib/core/sql-sync/file-system.js +1 -1
  195. package/lib/core/sql-sync/hash.js +1 -1
  196. package/lib/core/sql-sync/lock.js +1 -1
  197. package/lib/core/sql-sync/utils.js +1 -1
  198. package/lib/core/sql-validator.js +1 -1
  199. package/lib/errors.js +1 -1
  200. package/lib/framework/build-all-flags.js +1 -1
  201. package/lib/framework/flags.js +1 -1
  202. package/lib/framework/help.js +1 -1
  203. package/lib/framework/index.js +1 -1
  204. package/lib/framework/output.js +1 -1
  205. package/lib/framework/response.js +1 -1
  206. package/lib/framework/runner-alias.js +1 -1
  207. package/lib/framework/runner.js +1 -1
  208. package/lib/framework/schema-export.js +1 -1
  209. package/lib/framework/types.js +1 -1
  210. package/lib/generated/build-info.js +1 -1
  211. package/lib/help.js +1 -1
  212. package/lib/skills/main.js +1 -1
  213. package/lib/skills/npx-skills-add.js +1 -1
  214. package/lib/telemetry/cli-command-trace.js +1 -1
  215. package/lib/telemetry/cli-help-trace.js +1 -1
  216. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  217. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  218. package/lib/telemetry/send-cli-trace-log.js +1 -1
  219. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  220. package/lib/utils/ai_config.js +1 -1
  221. package/lib/utils/apply-jq-filter.js +1 -1
  222. package/lib/utils/cdn-config.js +1 -1
  223. package/lib/utils/check-sdk-version.js +1 -1
  224. package/lib/utils/cli-version-check.js +1 -1
  225. package/lib/utils/cli-version-policy.js +1 -1
  226. package/lib/utils/config.js +1 -1
  227. package/lib/utils/copy-directory.js +1 -1
  228. package/lib/utils/entity-with-id.js +1 -1
  229. package/lib/utils/file-utils.js +1 -1
  230. package/lib/utils/guides-cdn.js +1 -1
  231. package/lib/utils/http-client.js +1 -1
  232. package/lib/utils/is-non-interactive.js +1 -1
  233. package/lib/utils/logger.js +1 -1
  234. package/lib/utils/params.js +1 -1
  235. package/lib/utils/platform.js +1 -1
  236. package/lib/utils/rules-cdn.js +1 -1
  237. package/lib/utils/sleep.js +1 -1
  238. package/lib/utils/template-replacer.js +1 -1
  239. package/lib/utils/update-notice.js +1 -1
  240. package/lib/utils/version.js +1 -1
  241. package/lib/utils/with-active-cookie.js +1 -1
  242. package/lib/utils/write-cli-side-channel.js +1 -1
  243. package/package.json +1 -1
@@ -1 +1 @@
1
- function a228_0x4576(_0x109099,_0x8c2848){_0x109099=_0x109099-0x112;const _0x4a4d2b=a228_0x4a4d();let _0x4576db=_0x4a4d2b[_0x109099];return _0x4576db;}(function(_0x2d7f0e,_0x293561){const _0x574aaf=a228_0x4576,_0x59eb1d=_0x2d7f0e();while(!![]){try{const _0x3edaa9=parseInt(_0x574aaf(0x112))/0x1+-parseInt(_0x574aaf(0x11e))/0x2*(-parseInt(_0x574aaf(0x11d))/0x3)+-parseInt(_0x574aaf(0x11b))/0x4*(-parseInt(_0x574aaf(0x11c))/0x5)+-parseInt(_0x574aaf(0x119))/0x6*(parseInt(_0x574aaf(0x11f))/0x7)+parseInt(_0x574aaf(0x114))/0x8+-parseInt(_0x574aaf(0x115))/0x9+-parseInt(_0x574aaf(0x113))/0xa*(-parseInt(_0x574aaf(0x11a))/0xb);if(_0x3edaa9===_0x293561)break;else _0x59eb1d['push'](_0x59eb1d['shift']());}catch(_0x36b938){_0x59eb1d['push'](_0x59eb1d['shift']());}}}(a228_0x4a4d,0x313cf));function toFiniteNumber(_0x1102a5){const _0x47092f=a228_0x4576;if(typeof _0x1102a5==='number'&&Number[_0x47092f(0x116)](_0x1102a5))return _0x1102a5;if(typeof _0x1102a5===_0x47092f(0x118)){const _0x584770=_0x1102a5['trim']();if(!_0x584770)return undefined;const _0x51236b=Number(_0x584770);if(Number[_0x47092f(0x116)](_0x51236b))return _0x51236b;}return undefined;}function a228_0x4a4d(){const _0x1287d5=['2972SjAqyx','560070WlcOuS','2878928WsfDEd','3120525GpGZHn','isFinite','object','string','2448uTRvGa','44CHAZLd','692764sqHEql','5yYGqro','131883uDjxbv','6Hhgxsa','5894BjGATE'];a228_0x4a4d=function(){return _0x1287d5;};return a228_0x4a4d();}export function normalizeEntityWithIdResponse(_0x51a176){const _0x156463=a228_0x4576,_0x321e55=toFiniteNumber(_0x51a176);if(_0x321e55!==undefined)return{'id':_0x321e55,'entity':{'id':_0x321e55}};if(!_0x51a176||typeof _0x51a176!==_0x156463(0x117))return{'id':undefined,'entity':{}};const _0x17df2e={..._0x51a176},_0x15032b=toFiniteNumber(_0x17df2e['id']);return _0x15032b!==undefined&&(_0x17df2e['id']=_0x15032b),{'id':_0x15032b,'entity':_0x17df2e};}
1
+ (function(_0x1a44ae,_0x378d12){const _0x4bfca8=a232_0x27b3,_0x413197=_0x1a44ae();while(!![]){try{const _0x3556c1=parseInt(_0x4bfca8(0x136))/0x1*(-parseInt(_0x4bfca8(0x137))/0x2)+-parseInt(_0x4bfca8(0x143))/0x3+-parseInt(_0x4bfca8(0x13f))/0x4+-parseInt(_0x4bfca8(0x138))/0x5*(-parseInt(_0x4bfca8(0x142))/0x6)+parseInt(_0x4bfca8(0x135))/0x7*(parseInt(_0x4bfca8(0x13c))/0x8)+parseInt(_0x4bfca8(0x13a))/0x9+parseInt(_0x4bfca8(0x141))/0xa*(-parseInt(_0x4bfca8(0x13d))/0xb);if(_0x3556c1===_0x378d12)break;else _0x413197['push'](_0x413197['shift']());}catch(_0x52d9c2){_0x413197['push'](_0x413197['shift']());}}}(a232_0x3447,0x749bc));function toFiniteNumber(_0x27c094){const _0xdc6a28=a232_0x27b3;if(typeof _0x27c094===_0xdc6a28(0x13b)&&Number[_0xdc6a28(0x139)](_0x27c094))return _0x27c094;if(typeof _0x27c094===_0xdc6a28(0x13e)){const _0x494b90=_0x27c094[_0xdc6a28(0x140)]();if(!_0x494b90)return undefined;const _0xfd4031=Number(_0x494b90);if(Number[_0xdc6a28(0x139)](_0xfd4031))return _0xfd4031;}return undefined;}function a232_0x3447(){const _0x1ef6b1=['9235NLobgE','isFinite','7108137rbVzuM','number','130504jjhAus','319mgNcUk','string','890948WeUolI','trim','50150LdhsxL','1362zbWkvo','1414590kOrmYS','object','266gKpwlG','3lufWDL','341084CQtUri'];a232_0x3447=function(){return _0x1ef6b1;};return a232_0x3447();}function a232_0x27b3(_0x558c5c,_0x54ed7f){_0x558c5c=_0x558c5c-0x134;const _0x34478d=a232_0x3447();let _0x27b30f=_0x34478d[_0x558c5c];return _0x27b30f;}export function normalizeEntityWithIdResponse(_0x23c61e){const _0x4ef2c4=a232_0x27b3,_0x3f1df9=toFiniteNumber(_0x23c61e);if(_0x3f1df9!==undefined)return{'id':_0x3f1df9,'entity':{'id':_0x3f1df9}};if(!_0x23c61e||typeof _0x23c61e!==_0x4ef2c4(0x134))return{'id':undefined,'entity':{}};const _0x12e8a6={..._0x23c61e},_0x365a8f=toFiniteNumber(_0x12e8a6['id']);return _0x365a8f!==undefined&&(_0x12e8a6['id']=_0x365a8f),{'id':_0x365a8f,'entity':_0x12e8a6};}
@@ -1 +1 @@
1
- (function(_0x4151c8,_0x16f951){const _0x5182ce=a229_0x4faf,_0x558abb=_0x4151c8();while(!![]){try{const _0x59b9a2=parseInt(_0x5182ce(0x188))/0x1*(parseInt(_0x5182ce(0x186))/0x2)+parseInt(_0x5182ce(0x183))/0x3+-parseInt(_0x5182ce(0x189))/0x4+-parseInt(_0x5182ce(0x18c))/0x5*(parseInt(_0x5182ce(0x18a))/0x6)+parseInt(_0x5182ce(0x184))/0x7+parseInt(_0x5182ce(0x182))/0x8*(parseInt(_0x5182ce(0x18b))/0x9)+-parseInt(_0x5182ce(0x187))/0xa;if(_0x59b9a2===_0x16f951)break;else _0x558abb['push'](_0x558abb['shift']());}catch(_0x5ebe0d){_0x558abb['push'](_0x558abb['shift']());}}}(a229_0x5ea5,0xee206));function a229_0x4faf(_0x4127ec,_0x460d19){_0x4127ec=_0x4127ec-0x182;const _0x5ea54b=a229_0x5ea5();let _0x4faf9a=_0x5ea54b[_0x4127ec];return _0x4faf9a;}function a229_0x5ea5(){const _0x64be48=['11598IfRkSY','152210xXUnHa','245MJTlqh','4296516fOWRrN','5623158LzKFNL','657UNrixT','5rXgywV','1896ZJeSrM','51042dVoVIj','10827873fjvERd','isDirectory'];a229_0x5ea5=function(){return _0x64be48;};return a229_0x5ea5();}import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';import{join}from'node:path';export async function copyDir(_0x42c678,_0x2f4bbc){const _0x5adcc9=a229_0x4faf,_0x35bbf3=statSync(_0x42c678);if(_0x35bbf3[_0x5adcc9(0x185)]()){!existsSync(_0x2f4bbc)&&mkdirSync(_0x2f4bbc,{'recursive':!![]});const _0x354c57=readdirSync(_0x42c678);for(const _0x46381e of _0x354c57){await copyDir(join(_0x42c678,_0x46381e),join(_0x2f4bbc,_0x46381e));}}else copyFileSync(_0x42c678,_0x2f4bbc);}export function ensureDir(_0x2696ca){!existsSync(_0x2696ca)&&mkdirSync(_0x2696ca,{'recursive':!![]});}export function pathExists(_0x353122){return existsSync(_0x353122);}
1
+ (function(_0x27cd21,_0x1c3010){const _0x2859e5=a233_0x2a58,_0x17582a=_0x27cd21();while(!![]){try{const _0x188a87=parseInt(_0x2859e5(0x10a))/0x1+parseInt(_0x2859e5(0x106))/0x2*(parseInt(_0x2859e5(0x10c))/0x3)+-parseInt(_0x2859e5(0x108))/0x4*(-parseInt(_0x2859e5(0x107))/0x5)+parseInt(_0x2859e5(0x10b))/0x6*(-parseInt(_0x2859e5(0x10f))/0x7)+parseInt(_0x2859e5(0x10d))/0x8+-parseInt(_0x2859e5(0x111))/0x9*(parseInt(_0x2859e5(0x110))/0xa)+-parseInt(_0x2859e5(0x109))/0xb;if(_0x188a87===_0x1c3010)break;else _0x17582a['push'](_0x17582a['shift']());}catch(_0x591364){_0x17582a['push'](_0x17582a['shift']());}}}(a233_0x233d,0x3ea6c));import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';function a233_0x2a58(_0x333a7f,_0x21cfe3){_0x333a7f=_0x333a7f-0x106;const _0x233def=a233_0x233d();let _0x2a5807=_0x233def[_0x333a7f];return _0x2a5807;}function a233_0x233d(){const _0x2b4b5e=['40njrkdi','791784Qnounq','10PytREM','5305kbSUff','440yhyCHC','3102077VhvkZK','244140kCHlSS','12wQtMmQ','255615uTmjvf','2588704xjWMZM','isDirectory','769762JePJls'];a233_0x233d=function(){return _0x2b4b5e;};return a233_0x233d();}import{join}from'node:path';export async function copyDir(_0x3ef8c1,_0x5a0ea6){const _0x2fa1fa=a233_0x2a58,_0x20e3c7=statSync(_0x3ef8c1);if(_0x20e3c7[_0x2fa1fa(0x10e)]()){!existsSync(_0x5a0ea6)&&mkdirSync(_0x5a0ea6,{'recursive':!![]});const _0x2c538d=readdirSync(_0x3ef8c1);for(const _0x1fa4ae of _0x2c538d){await copyDir(join(_0x3ef8c1,_0x1fa4ae),join(_0x5a0ea6,_0x1fa4ae));}}else copyFileSync(_0x3ef8c1,_0x5a0ea6);}export function ensureDir(_0x5627dd){!existsSync(_0x5627dd)&&mkdirSync(_0x5627dd,{'recursive':!![]});}export function pathExists(_0x1e2ca6){return existsSync(_0x1e2ca6);}
@@ -1 +1 @@
1
- const a230_0x385920=a230_0x1e73;(function(_0x2c2376,_0x364b5b){const _0x68f80c=a230_0x1e73,_0xed3107=_0x2c2376();while(!![]){try{const _0x37a36b=parseInt(_0x68f80c(0xae))/0x1+-parseInt(_0x68f80c(0xab))/0x2+parseInt(_0x68f80c(0xcd))/0x3*(-parseInt(_0x68f80c(0xbe))/0x4)+parseInt(_0x68f80c(0xbb))/0x5*(parseInt(_0x68f80c(0xba))/0x6)+parseInt(_0x68f80c(0xb9))/0x7*(-parseInt(_0x68f80c(0xc9))/0x8)+-parseInt(_0x68f80c(0xce))/0x9*(parseInt(_0x68f80c(0xc6))/0xa)+-parseInt(_0x68f80c(0xb3))/0xb*(-parseInt(_0x68f80c(0xc4))/0xc);if(_0x37a36b===_0x364b5b)break;else _0xed3107['push'](_0xed3107['shift']());}catch(_0x38db06){_0xed3107['push'](_0xed3107['shift']());}}}(a230_0x2584,0x800ea));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 _0x3f5101=a230_0x1e73,_0x1c0350=getTemplateBaseUrl();return _0x1c0350+_0x3f5101(0xc2);}const CACHE_DIR=join(homedir(),'.lovrabet',a230_0x385920(0xb4));export async function fetchGuidesFromCDN(){const _0x1f12de=a230_0x385920,_0x5af936=getGuidesCdnUrl(),_0x437886=await fetch(_0x5af936,{'headers':{'Accept':_0x1f12de(0xaf)}});if(!_0x437886['ok'])throw new Error('CDN\x20请求失败:\x20'+_0x437886[_0x1f12de(0xbd)]+'\x20'+_0x437886[_0x1f12de(0xb2)]);const _0x2e9f11=await _0x437886[_0x1f12de(0xca)]();if(!_0x2e9f11[_0x1f12de(0xc1)]||typeof _0x2e9f11['guides']!==_0x1f12de(0xc0))throw new Error('CDN\x20返回数据格式错误');return _0x2e9f11;}function a230_0x1e73(_0x3b90c2,_0x124f98){_0x3b90c2=_0x3b90c2-0xab;const _0x2584c1=a230_0x2584();let _0x1e73e2=_0x2584c1[_0x3b90c2];return _0x1e73e2;}export function writeGuidesToProject(_0x369724,_0x17990b,_0x14b120=a230_0x385920(0xc8),_0xdb5887){const _0x5b3ce1=a230_0x385920,_0x1338ac=join(_0x17990b,_0x14b120);mkdirSync(_0x1338ac,{'recursive':!![]});for(const [_0x1d6458,_0x3d9939]of Object[_0x5b3ce1(0xcc)](_0x369724[_0x5b3ce1(0xc1)])){let _0x13224e=_0x3d9939['content'];_0x3d9939[_0x5b3ce1(0xc3)]&&(_0x13224e=appendUpdateTime(_0x13224e,_0x3d9939[_0x5b3ce1(0xc3)])),writeFileSync(join(_0x1338ac,_0x1d6458+_0x5b3ce1(0xb8)),_0x13224e,_0x5b3ce1(0xbf));}}export function appendUpdateTime(_0x2c1743,_0x10f69b){const _0x5778d0=a230_0x385920;return _0x2c1743=_0x2c1743[_0x5778d0(0xb6)](/\n*>更新时间:.*$/m,''),_0x2c1743[_0x5778d0(0xb1)]()+(_0x5778d0(0xb0)+_0x10f69b);}export function getSkillTemplate(_0x4d9b82){const _0x4e35a8=a230_0x385920;return _0x4d9b82[_0x4e35a8(0xc5)]?.['content']||'';}export function appendExtendContents(_0x1c802a,_0x277de0,_0x35e329){const _0x46e06e=a230_0x385920,_0x524791=[];for(const [,_0x383280]of Object['entries'](_0x277de0[_0x46e06e(0xc1)])){_0x383280['extendContent']&&_0x524791[_0x46e06e(0xb5)](_0x383280[_0x46e06e(0xcb)][_0x46e06e(0xb1)]());}if(_0x524791[_0x46e06e(0xad)]===0x0)return _0x1c802a;return _0x1c802a[_0x46e06e(0xb1)]()+'\x0a\x0a'+_0x524791['join']('\x0a\x0a')+'\x0a';}export function writeSkillFile(_0x790df6,_0xa1cfb0,_0x3a8b7e){const _0x13975e=a230_0x385920,_0x8fa6f7=getSkillTemplate(_0x790df6);if(!_0x8fa6f7)throw new Error(_0x13975e(0xb7));const _0x13d873=dirname(_0xa1cfb0);mkdirSync(_0x13d873,{'recursive':!![]});let _0x13811b=_0x8fa6f7[_0x13975e(0xb6)](/\{\{IDE_NAME\}\}/g,_0x3a8b7e);_0x13811b=appendExtendContents(_0x13811b,_0x790df6),_0x790df6[_0x13975e(0xc5)][_0x13975e(0xc3)]&&(_0x13811b=appendUpdateTime(_0x13811b,_0x790df6['skillTemplate'][_0x13975e(0xc3)])),writeFileSync(_0xa1cfb0,_0x13811b,_0x13975e(0xbf));}function a230_0x2584(){const _0x41b61f=['extendContent','entries','428091IzwiVl','360MStWga','810166vsJEyx','keys','length','849233dijXmJ','application/json','\x0a\x0a>更新时间:','trimEnd','statusText','1748549fyKfFp','cache','push','replace','CDN\x20数据中缺少\x20skillTemplate','.md','63dFabWB','702iKiRWp','34635lXcVZk','map','status','12XLINZr','utf-8','object','guides','/skills/guides.json','lastUpdated','36QheOXT','skillTemplate','1630hfNwmS','title','.lovrabet/skill/guides','686536JueEkt','json'];a230_0x2584=function(){return _0x41b61f;};return a230_0x2584();}export async function installGuides(_0x10375f){const _0x1c9a6e=a230_0x385920,_0x588d04=await fetchGuidesFromCDN();return writeGuidesToProject(_0x588d04,_0x10375f),Object[_0x1c9a6e(0xac)](_0x588d04['guides'])[_0x1c9a6e(0xad)];}export function getGuidesSummary(_0x36e08a){const _0x336aaf=a230_0x385920;return Object[_0x336aaf(0xcc)](_0x36e08a[_0x336aaf(0xc1)])[_0x336aaf(0xbc)](([_0x129e7c,_0x2de691])=>({'key':_0x129e7c,'title':_0x2de691[_0x336aaf(0xc7)],'path':_0x2de691['path']}));}
1
+ const a234_0x44aac1=a234_0x5724;(function(_0x24895f,_0x3e8647){const _0x161797=a234_0x5724,_0x1e1026=_0x24895f();while(!![]){try{const _0x4e5113=parseInt(_0x161797(0x170))/0x1*(-parseInt(_0x161797(0x14f))/0x2)+parseInt(_0x161797(0x169))/0x3*(-parseInt(_0x161797(0x166))/0x4)+-parseInt(_0x161797(0x159))/0x5+parseInt(_0x161797(0x16e))/0x6*(-parseInt(_0x161797(0x162))/0x7)+parseInt(_0x161797(0x165))/0x8+-parseInt(_0x161797(0x152))/0x9*(parseInt(_0x161797(0x15a))/0xa)+parseInt(_0x161797(0x167))/0xb;if(_0x4e5113===_0x3e8647)break;else _0x1e1026['push'](_0x1e1026['shift']());}catch(_0x597a2e){_0x1e1026['push'](_0x1e1026['shift']());}}}(a234_0x3a01,0x81b75));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 _0x3f2b83=a234_0x5724,_0x191d72=getTemplateBaseUrl();return _0x191d72+_0x3f2b83(0x153);}const CACHE_DIR=join(homedir(),a234_0x44aac1(0x16b),a234_0x44aac1(0x15f));export async function fetchGuidesFromCDN(){const _0x4c8029=a234_0x44aac1,_0x1f0444=getGuidesCdnUrl(),_0x4e6547=await fetch(_0x1f0444,{'headers':{'Accept':_0x4c8029(0x16f)}});if(!_0x4e6547['ok'])throw new Error(_0x4c8029(0x14c)+_0x4e6547[_0x4c8029(0x158)]+'\x20'+_0x4e6547[_0x4c8029(0x15d)]);const _0x2f5c34=await _0x4e6547[_0x4c8029(0x163)]();if(!_0x2f5c34[_0x4c8029(0x155)]||typeof _0x2f5c34[_0x4c8029(0x155)]!=='object')throw new Error(_0x4c8029(0x168));return _0x2f5c34;}export function writeGuidesToProject(_0x565f33,_0x4a8cd4,_0x156cf2=a234_0x44aac1(0x171),_0x4b9ebe){const _0x3da456=a234_0x44aac1,_0x56608b=join(_0x4a8cd4,_0x156cf2);mkdirSync(_0x56608b,{'recursive':!![]});for(const [_0x46b534,_0x2b7e3d]of Object[_0x3da456(0x16a)](_0x565f33[_0x3da456(0x155)])){let _0x426dd5=_0x2b7e3d['content'];_0x2b7e3d[_0x3da456(0x150)]&&(_0x426dd5=appendUpdateTime(_0x426dd5,_0x2b7e3d['lastUpdated'])),writeFileSync(join(_0x56608b,_0x46b534+_0x3da456(0x14d)),_0x426dd5,'utf-8');}}export function appendUpdateTime(_0x51bc3a,_0x1d059b){const _0x2a8cd4=a234_0x44aac1;return _0x51bc3a=_0x51bc3a[_0x2a8cd4(0x157)](/\n*>更新时间:.*$/m,''),_0x51bc3a[_0x2a8cd4(0x154)]()+(_0x2a8cd4(0x160)+_0x1d059b);}function a234_0x5724(_0x51c766,_0x17832a){_0x51c766=_0x51c766-0x14c;const _0x3a0172=a234_0x3a01();let _0x572490=_0x3a0172[_0x51c766];return _0x572490;}export function getSkillTemplate(_0x3b32c0){const _0x1996ec=a234_0x44aac1;return _0x3b32c0[_0x1996ec(0x15b)]?.[_0x1996ec(0x15c)]||'';}export function appendExtendContents(_0x487286,_0x521430,_0x59d290){const _0x4c9be5=a234_0x44aac1,_0x1d4dcb=[];for(const [,_0x19ccfe]of Object[_0x4c9be5(0x16a)](_0x521430['guides'])){_0x19ccfe['extendContent']&&_0x1d4dcb[_0x4c9be5(0x14e)](_0x19ccfe[_0x4c9be5(0x16d)][_0x4c9be5(0x154)]());}if(_0x1d4dcb['length']===0x0)return _0x487286;return _0x487286[_0x4c9be5(0x154)]()+'\x0a\x0a'+_0x1d4dcb[_0x4c9be5(0x156)]('\x0a\x0a')+'\x0a';}export function writeSkillFile(_0x507349,_0x1bda65,_0x1d3ba8){const _0x24188e=a234_0x44aac1,_0x238421=getSkillTemplate(_0x507349);if(!_0x238421)throw new Error(_0x24188e(0x151));const _0x12b6c6=dirname(_0x1bda65);mkdirSync(_0x12b6c6,{'recursive':!![]});let _0x2b10ed=_0x238421[_0x24188e(0x157)](/\{\{IDE_NAME\}\}/g,_0x1d3ba8);_0x2b10ed=appendExtendContents(_0x2b10ed,_0x507349),_0x507349['skillTemplate']['lastUpdated']&&(_0x2b10ed=appendUpdateTime(_0x2b10ed,_0x507349[_0x24188e(0x15b)]['lastUpdated'])),writeFileSync(_0x1bda65,_0x2b10ed,_0x24188e(0x164));}function a234_0x3a01(){const _0x221ce8=['\x0a\x0a>更新时间:','title','7HjLQYE','json','utf-8','1106216safbEx','116YdvByc','23612248iMUgQl','CDN\x20返回数据格式错误','64401xbiPbI','entries','.lovrabet','map','extendContent','1941342EeBZxn','application/json','5bDAqDH','.lovrabet/skill/guides','keys','CDN\x20请求失败:\x20','.md','push','205826BFTpGZ','lastUpdated','CDN\x20数据中缺少\x20skillTemplate','128295EZIQav','/skills/guides.json','trimEnd','guides','join','replace','status','466465vfosUk','140Esxult','skillTemplate','content','statusText','length','cache'];a234_0x3a01=function(){return _0x221ce8;};return a234_0x3a01();}export async function installGuides(_0x3d9246){const _0x41a3de=a234_0x44aac1,_0x298281=await fetchGuidesFromCDN();return writeGuidesToProject(_0x298281,_0x3d9246),Object[_0x41a3de(0x172)](_0x298281[_0x41a3de(0x155)])[_0x41a3de(0x15e)];}export function getGuidesSummary(_0xaf09dd){const _0x32e1bc=a234_0x44aac1;return Object['entries'](_0xaf09dd[_0x32e1bc(0x155)])[_0x32e1bc(0x16c)](([_0x1172da,_0x53147c])=>({'key':_0x1172da,'title':_0x53147c[_0x32e1bc(0x161)],'path':_0x53147c['path']}));}
@@ -1 +1 @@
1
- function a231_0x415c(){const _0x5c2d0a=['\x20次重试...','18232tvZFLg','734248dwHkFS','headers','get','531Ebeoxf','content-type','application/json','fetch','199145pEHhsF','statusText','30qrUjwX','*\x20请求失败,','5430887dnRlpb','ENOTFOUND','11uGqNfA','1252239YHHuEq','message','text','ms\x20后进行第\x20','name','AbortError','includes','log','1cClSRU','url','4135030zTNsjY','1025006jjYNKI','json'];a231_0x415c=function(){return _0x5c2d0a;};return a231_0x415c();}function a231_0x1d74(_0x3651eb,_0x2ca337){_0x3651eb=_0x3651eb-0xa9;const _0x415cd1=a231_0x415c();let _0x1d7461=_0x415cd1[_0x3651eb];return _0x1d7461;}(function(_0x2fbcb5,_0x124ddf){const _0x3e7166=a231_0x1d74,_0x165bfe=_0x2fbcb5();while(!![]){try{const _0x153793=parseInt(_0x3e7166(0xb7))/0x1*(-parseInt(_0x3e7166(0xba))/0x2)+-parseInt(_0x3e7166(0xaf))/0x3+-parseInt(_0x3e7166(0xbe))/0x4+-parseInt(_0x3e7166(0xc5))/0x5*(-parseInt(_0x3e7166(0xaa))/0x6)+parseInt(_0x3e7166(0xac))/0x7+-parseInt(_0x3e7166(0xbd))/0x8*(-parseInt(_0x3e7166(0xc1))/0x9)+-parseInt(_0x3e7166(0xb9))/0xa*(-parseInt(_0x3e7166(0xae))/0xb);if(_0x153793===_0x124ddf)break;else _0x165bfe['push'](_0x165bfe['shift']());}catch(_0x40fc1d){_0x165bfe['push'](_0x165bfe['shift']());}}}(a231_0x415c,0x63f80));export async function httpRequest(_0x45b624,_0x5d50d2={}){const _0x53baa8=a231_0x1d74,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0x5d50d2;let _0x3285d7=null;for(let _0x5bc968=0x0;_0x5bc968<=retries;_0x5bc968++){try{const _0x5b6cd0=new AbortController(),_0x4b2a8e=setTimeout(()=>_0x5b6cd0['abort'](),timeout),_0x2100f4=await fetch(_0x45b624,{'headers':headers,'signal':_0x5b6cd0['signal']});clearTimeout(_0x4b2a8e);let _0x46fa00;const _0x16ffc7=_0x2100f4[_0x53baa8(0xbf)][_0x53baa8(0xc0)](_0x53baa8(0xc2));return _0x16ffc7?.[_0x53baa8(0xb5)](_0x53baa8(0xc3))?_0x46fa00=await _0x2100f4[_0x53baa8(0xbb)]():_0x46fa00=await _0x2100f4[_0x53baa8(0xb1)](),{'ok':_0x2100f4['ok'],'status':_0x2100f4['status'],'statusText':_0x2100f4[_0x53baa8(0xa9)],'data':_0x46fa00,'headers':_0x2100f4[_0x53baa8(0xbf)],'url':_0x2100f4[_0x53baa8(0xb8)],'text':()=>_0x2100f4[_0x53baa8(0xb1)]()};}catch(_0x2fcf9f){_0x3285d7=_0x2fcf9f instanceof Error?_0x2fcf9f:new Error(String(_0x2fcf9f));if(_0x5bc968===retries)break;if(shouldRetry(_0x2fcf9f)){console[_0x53baa8(0xb6)](_0x53baa8(0xab)+retryDelay+_0x53baa8(0xb2)+(_0x5bc968+0x1)+_0x53baa8(0xbc)),await sleep(retryDelay);continue;}else break;}}throw _0x3285d7||new Error('Request\x20failed');}function shouldRetry(_0x12b357){const _0x476b33=a231_0x1d74;if(_0x12b357 instanceof Error){if(_0x12b357['name']===_0x476b33(0xb4))return![];if(_0x12b357[_0x476b33(0xb3)]==='TypeError'&&_0x12b357[_0x476b33(0xb0)][_0x476b33(0xb5)](_0x476b33(0xc4)))return!![];if(_0x12b357[_0x476b33(0xb0)][_0x476b33(0xb5)]('ECONNRESET'))return!![];if(_0x12b357[_0x476b33(0xb0)][_0x476b33(0xb5)](_0x476b33(0xad)))return![];}return![];}function sleep(_0x9ad07e){return new Promise(_0x56a8ae=>setTimeout(_0x56a8ae,_0x9ad07e));}export function validateUrl(_0x355788){try{return new URL(_0x355788),!![];}catch{return![];}}
1
+ (function(_0x1587c9,_0x390267){const _0x50e166=a235_0x40bd,_0x57b112=_0x1587c9();while(!![]){try{const _0x13623a=-parseInt(_0x50e166(0x1bc))/0x1*(-parseInt(_0x50e166(0x1c2))/0x2)+-parseInt(_0x50e166(0x1c4))/0x3*(parseInt(_0x50e166(0x1be))/0x4)+-parseInt(_0x50e166(0x1c3))/0x5*(parseInt(_0x50e166(0x1b7))/0x6)+parseInt(_0x50e166(0x1b2))/0x7*(-parseInt(_0x50e166(0x1ba))/0x8)+parseInt(_0x50e166(0x1c0))/0x9*(parseInt(_0x50e166(0x1ca))/0xa)+parseInt(_0x50e166(0x1c1))/0xb+parseInt(_0x50e166(0x1c6))/0xc;if(_0x13623a===_0x390267)break;else _0x57b112['push'](_0x57b112['shift']());}catch(_0x3389af){_0x57b112['push'](_0x57b112['shift']());}}}(a235_0x2753,0xbe238));export async function httpRequest(_0x4f50f3,_0x46911a={}){const _0x49fc06=a235_0x40bd,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0x46911a;let _0x4d8683=null;for(let _0x158323=0x0;_0x158323<=retries;_0x158323++){try{const _0x531c99=new AbortController(),_0xf4d1e0=setTimeout(()=>_0x531c99[_0x49fc06(0x1bf)](),timeout),_0x2898b5=await fetch(_0x4f50f3,{'headers':headers,'signal':_0x531c99['signal']});clearTimeout(_0xf4d1e0);let _0x32b381;const _0x20ef8d=_0x2898b5[_0x49fc06(0x1cb)]['get']('content-type');return _0x20ef8d?.[_0x49fc06(0x1b4)](_0x49fc06(0x1bd))?_0x32b381=await _0x2898b5['json']():_0x32b381=await _0x2898b5[_0x49fc06(0x1b8)](),{'ok':_0x2898b5['ok'],'status':_0x2898b5['status'],'statusText':_0x2898b5[_0x49fc06(0x1c9)],'data':_0x32b381,'headers':_0x2898b5[_0x49fc06(0x1cb)],'url':_0x2898b5[_0x49fc06(0x1b9)],'text':()=>_0x2898b5[_0x49fc06(0x1b8)]()};}catch(_0x17b6b3){_0x4d8683=_0x17b6b3 instanceof Error?_0x17b6b3:new Error(String(_0x17b6b3));if(_0x158323===retries)break;if(shouldRetry(_0x17b6b3)){console[_0x49fc06(0x1c7)](_0x49fc06(0x1bb)+retryDelay+_0x49fc06(0x1b3)+(_0x158323+0x1)+'\x20次重试...'),await sleep(retryDelay);continue;}else break;}}throw _0x4d8683||new Error('Request\x20failed');}function shouldRetry(_0x29f921){const _0x13ced7=a235_0x40bd;if(_0x29f921 instanceof Error){if(_0x29f921['name']===_0x13ced7(0x1c8))return![];if(_0x29f921[_0x13ced7(0x1b6)]===_0x13ced7(0x1b0)&&_0x29f921['message'][_0x13ced7(0x1b4)](_0x13ced7(0x1b5)))return!![];if(_0x29f921['message'][_0x13ced7(0x1b4)](_0x13ced7(0x1b1)))return!![];if(_0x29f921['message'][_0x13ced7(0x1b4)](_0x13ced7(0x1c5)))return![];}return![];}function sleep(_0x42ff85){return new Promise(_0x5f18f8=>setTimeout(_0x5f18f8,_0x42ff85));}export function validateUrl(_0x17e2b3){try{return new URL(_0x17e2b3),!![];}catch{return![];}}function a235_0x40bd(_0x2737ea,_0x3895e2){_0x2737ea=_0x2737ea-0x1b0;const _0x2753c0=a235_0x2753();let _0x40bd45=_0x2753c0[_0x2737ea];return _0x40bd45;}function a235_0x2753(){const _0x2cf8e5=['AbortError','statusText','1940hNNKCl','headers','TypeError','ECONNRESET','242270OATaxx','ms\x20后进行第\x20','includes','fetch','name','3828kfSLgj','text','url','40VOKRAe','*\x20请求失败,','2MAftud','application/json','2852LKoIYu','abort','69840pKfrTf','1124695fgLKKT','533798ieZCvx','8795RGUFep','2706IayCro','ENOTFOUND','6908916EUEUrR','log'];a235_0x2753=function(){return _0x2cf8e5;};return a235_0x2753();}
@@ -1 +1 @@
1
- function a232_0x4ff2(){const _0x3cd417=['146130uVSFda','143Tdnanl','isRaw','stdout','50734ilBGun','6618640gYpfEL','true','setRawMode','65XBhKay','18UyGZJq','7248661SHAmTC','stdin','9521064VhKStA','25316HWKcBn','273ALSZdB','isTTY','1506460HRTbwv'];a232_0x4ff2=function(){return _0x3cd417;};return a232_0x4ff2();}function a232_0x53ec(_0x949615,_0x49cf8b){_0x949615=_0x949615-0x1a7;const _0x4ff23a=a232_0x4ff2();let _0x53ec0b=_0x4ff23a[_0x949615];return _0x53ec0b;}(function(_0x2effd7,_0x6e5d23){const _0x25f435=a232_0x53ec,_0x3a018a=_0x2effd7();while(!![]){try{const _0x5b5b65=-parseInt(_0x25f435(0x1b1))/0x1*(parseInt(_0x25f435(0x1ad))/0x2)+-parseInt(_0x25f435(0x1b7))/0x3*(-parseInt(_0x25f435(0x1b6))/0x4)+-parseInt(_0x25f435(0x1a8))/0x5*(-parseInt(_0x25f435(0x1b2))/0x6)+-parseInt(_0x25f435(0x1b3))/0x7+parseInt(_0x25f435(0x1ae))/0x8+parseInt(_0x25f435(0x1b5))/0x9+-parseInt(_0x25f435(0x1a9))/0xa*(-parseInt(_0x25f435(0x1aa))/0xb);if(_0x5b5b65===_0x6e5d23)break;else _0x3a018a['push'](_0x3a018a['shift']());}catch(_0x16c627){_0x3a018a['push'](_0x3a018a['shift']());}}}(a232_0x4ff2,0xd48e8));function env(_0x10547d){return process.env[`RABETBASE_${_0x10547d}`]||process.env[`LOVRABET_${_0x10547d}`]||undefined;}export function isNonInteractive(_0x1074c2){const _0x3f9054=a232_0x53ec;return!!(_0x1074c2['nonInteractive']||_0x1074c2['ci']||env('CI')===_0x3f9054(0x1af)||process.env.CI===_0x3f9054(0x1af)||!process[_0x3f9054(0x1ac)]['isTTY']||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x407ef2=a232_0x53ec;if(!process[_0x407ef2(0x1b4)][_0x407ef2(0x1a7)])return![];try{const _0x1e4e93=process['stdin'][_0x407ef2(0x1ab)];return process[_0x407ef2(0x1b4)]['setRawMode'](!![]),process[_0x407ef2(0x1b4)][_0x407ef2(0x1b0)](_0x1e4e93??![]),!![];}catch{return![];}}
1
+ (function(_0x403c05,_0x5c08aa){const _0x1b2dcf=a236_0x3a45,_0x5763d7=_0x403c05();while(!![]){try{const _0x183496=-parseInt(_0x1b2dcf(0x9e))/0x1+parseInt(_0x1b2dcf(0xa1))/0x2*(-parseInt(_0x1b2dcf(0x9f))/0x3)+-parseInt(_0x1b2dcf(0xa2))/0x4*(parseInt(_0x1b2dcf(0x93))/0x5)+parseInt(_0x1b2dcf(0x9a))/0x6+parseInt(_0x1b2dcf(0x94))/0x7+-parseInt(_0x1b2dcf(0x96))/0x8*(parseInt(_0x1b2dcf(0x9c))/0x9)+parseInt(_0x1b2dcf(0x98))/0xa;if(_0x183496===_0x5c08aa)break;else _0x5763d7['push'](_0x5763d7['shift']());}catch(_0x33f254){_0x5763d7['push'](_0x5763d7['shift']());}}}(a236_0x4484,0xf0f48));function a236_0x3a45(_0x5172ba,_0x214483){_0x5172ba=_0x5172ba-0x93;const _0x4484c0=a236_0x4484();let _0x3a454d=_0x4484c0[_0x5172ba];return _0x3a454d;}function a236_0x4484(){const _0x8b821d=['10484256btYNps','isTTY','2102427bQQtrG','isRaw','799608ihjzXS','2458938rucHpe','stdout','2mydjTO','3614216oLoXED','5AoSjNZ','3643052penthk','true','56qugXUx','setRawMode','28771690iQYkQc','stdin'];a236_0x4484=function(){return _0x8b821d;};return a236_0x4484();}function env(_0x1935ad){return process.env[`RABETBASE_${_0x1935ad}`]||process.env[`LOVRABET_${_0x1935ad}`]||undefined;}export function isNonInteractive(_0x330967){const _0x662da4=a236_0x3a45;return!!(_0x330967['nonInteractive']||_0x330967['ci']||env('CI')===_0x662da4(0x95)||process.env.CI==='true'||!process[_0x662da4(0xa0)]['isTTY']||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x2db516=a236_0x3a45;if(!process[_0x2db516(0x99)][_0x2db516(0x9b)])return![];try{const _0x4450db=process[_0x2db516(0x99)][_0x2db516(0x9d)];return process[_0x2db516(0x99)][_0x2db516(0x97)](!![]),process[_0x2db516(0x99)][_0x2db516(0x97)](_0x4450db??![]),!![];}catch{return![];}}
@@ -1 +1 @@
1
- const a233_0x5659e8=a233_0x24d6;function a233_0x1ba3(){const _0x5ef449=['initWinstonLogger','info','duration','12794RfuJfF','开始执行:\x20','timestamp','mkdirSync','blue','warn','unknown','combine','join','transports','1540722uOrYve','clearLogs','dirname','level','currentRawCommand','details','printf','Failed\x20to\x20clear\x20logs:','filter','utf8','red','logFilePath','891rJCZaS','setLogPath','5705GOJTXP','message','format','getWinstonInstance','error','.lovrabet.log','rawCommand','Failed\x20to\x20read\x20logs:','addColors','81dwmijJ','readFileSync','43370AuLiiw','stringify','existsSync','log','readLogs','now','trim','完成:\x20','toISOString','success','winstonLogger','6058129HFThzC','logTask','1003467ISHobe','572IKDYTb','File','yellow','green','clear','79299KhtmBT','488BzCtsj'];a233_0x1ba3=function(){return _0x5ef449;};return a233_0x1ba3();}(function(_0x53c1f6,_0x52e032){const _0x2503a8=a233_0x24d6,_0x5f1f5f=_0x53c1f6();while(!![]){try{const _0x217769=parseInt(_0x2503a8(0x11a))/0x1*(-parseInt(_0x2503a8(0x134))/0x2)+-parseInt(_0x2503a8(0x129))/0x3+parseInt(_0x2503a8(0x12a))/0x4*(-parseInt(_0x2503a8(0x111))/0x5)+-parseInt(_0x2503a8(0x13e))/0x6+parseInt(_0x2503a8(0x127))/0x7+-parseInt(_0x2503a8(0x130))/0x8*(-parseInt(_0x2503a8(0x12f))/0x9)+-parseInt(_0x2503a8(0x11c))/0xa*(-parseInt(_0x2503a8(0x10f))/0xb);if(_0x217769===_0x52e032)break;else _0x5f1f5f['push'](_0x5f1f5f['shift']());}catch(_0x533a03){_0x5f1f5f['push'](_0x5f1f5f['shift']());}}}(a233_0x1ba3,0x75953));import a233_0x5f593f from'winston';import a233_0x17f6ec from'node:fs';import a233_0x43a6d2 from'node:path';class Logger{[a233_0x5659e8(0x126)];[a233_0x5659e8(0x10e)];[a233_0x5659e8(0x107)]='';constructor(){this['logFilePath']='';}['setRawCommand'](_0x179954){const _0x599668=a233_0x5659e8;this[_0x599668(0x107)]=_0x179954;}[a233_0x5659e8(0x131)](){const _0x4b3331=a233_0x5659e8,_0x4058b5=a233_0x43a6d2[_0x4b3331(0x105)](this[_0x4b3331(0x10e)]);!a233_0x17f6ec['existsSync'](_0x4058b5)&&a233_0x17f6ec[_0x4b3331(0x137)](_0x4058b5,{'recursive':!![]});const _0x205cb3=a233_0x5f593f['format'][_0x4b3331(0x13b)](a233_0x5f593f[_0x4b3331(0x113)][_0x4b3331(0x136)](),a233_0x5f593f[_0x4b3331(0x113)]['errors']({'stack':!![]}),a233_0x5f593f[_0x4b3331(0x113)][_0x4b3331(0x109)](_0x1e5939=>{const _0xc56e30=_0x4b3331,_0x18543b={'timestamp':_0x1e5939[_0xc56e30(0x136)]||new Date()[_0xc56e30(0x124)](),'level':_0x1e5939[_0xc56e30(0x106)]||_0xc56e30(0x132),'command':_0x1e5939['command']||_0xc56e30(0x13a),'rawCommand':_0x1e5939[_0xc56e30(0x117)]||this[_0xc56e30(0x107)]||undefined,'message':_0x1e5939[_0xc56e30(0x112)]||'','duration':_0x1e5939[_0xc56e30(0x133)]||undefined,'details':_0x1e5939[_0xc56e30(0x108)]||undefined};return JSON[_0xc56e30(0x11d)](_0x18543b);}));this[_0x4b3331(0x126)]=a233_0x5f593f['createLogger']({'level':'info','format':_0x205cb3,'transports':[new a233_0x5f593f[(_0x4b3331(0x13d))][(_0x4b3331(0x12b))]({'filename':this[_0x4b3331(0x10e)],'level':'info'})],'silent':![]}),a233_0x5f593f[_0x4b3331(0x119)]({'success':_0x4b3331(0x12d),'error':_0x4b3331(0x10d),'warn':_0x4b3331(0x12c),'info':_0x4b3331(0x138)});}[a233_0x5659e8(0x110)](_0x5500eb){const _0x27483a=a233_0x5659e8;this['logFilePath']=a233_0x43a6d2[_0x27483a(0x13c)](_0x5500eb,_0x27483a(0x116)),this[_0x27483a(0x126)]&&this[_0x27483a(0x126)][_0x27483a(0x12e)](),this[_0x27483a(0x131)]();}[a233_0x5659e8(0x132)](_0x2d8695,_0x209da9,_0x428396){const _0x63edda=a233_0x5659e8;if(!this['logFilePath']||!this[_0x63edda(0x126)])return;this[_0x63edda(0x126)]['info'](_0x209da9,{'command':_0x2d8695,'details':_0x428396});}[a233_0x5659e8(0x125)](_0x4fd456,_0x48794d,_0x428135,_0x510a33){const _0x54ff21=a233_0x5659e8;if(!this[_0x54ff21(0x10e)]||!this['winstonLogger'])return;this[_0x54ff21(0x126)][_0x54ff21(0x11f)](_0x54ff21(0x132),_0x48794d,{'level':_0x54ff21(0x125),'command':_0x4fd456,'duration':_0x428135,'details':_0x510a33});}['error'](_0x4bebf1,_0xd0223c,_0x50a31d){const _0x249a90=a233_0x5659e8;if(!this[_0x249a90(0x10e)]||!this[_0x249a90(0x126)])return;this[_0x249a90(0x126)][_0x249a90(0x115)](_0xd0223c,{'command':_0x4bebf1,'details':_0x50a31d});}['warn'](_0x20ccd9,_0x237452,_0x2b345a){const _0x38b78f=a233_0x5659e8;if(!this[_0x38b78f(0x10e)]||!this[_0x38b78f(0x126)])return;this[_0x38b78f(0x126)][_0x38b78f(0x139)](_0x237452,{'command':_0x20ccd9,'details':_0x2b345a});}async[a233_0x5659e8(0x128)](_0xf0ec7f,_0x5b1dc6,_0x1c1648){const _0x374e82=a233_0x5659e8,_0x56e0d6=Date[_0x374e82(0x121)]();this[_0x374e82(0x132)](_0xf0ec7f,_0x374e82(0x135)+_0x5b1dc6);try{const _0x43b296=await _0x1c1648(),_0x2ac583=Date[_0x374e82(0x121)]()-_0x56e0d6;return this[_0x374e82(0x125)](_0xf0ec7f,_0x374e82(0x123)+_0x5b1dc6,_0x2ac583),_0x43b296;}catch(_0x2d5fb4){const _0x4d662b=Date[_0x374e82(0x121)]()-_0x56e0d6;this['error'](_0xf0ec7f,'失败:\x20'+_0x5b1dc6,{'error':_0x2d5fb4 instanceof Error?_0x2d5fb4[_0x374e82(0x112)]:String(_0x2d5fb4),'duration':_0x4d662b});throw _0x2d5fb4;}}[a233_0x5659e8(0x120)](){const _0x29f283=a233_0x5659e8;try{if(!a233_0x17f6ec[_0x29f283(0x11e)](this[_0x29f283(0x10e)]))return[];const _0x175284=a233_0x17f6ec[_0x29f283(0x11b)](this[_0x29f283(0x10e)],'utf8');return _0x175284['split']('\x0a')[_0x29f283(0x10b)](_0x419eba=>_0x419eba[_0x29f283(0x122)]())['map'](_0x406e1f=>JSON['parse'](_0x406e1f));}catch(_0x5e65e8){return console[_0x29f283(0x139)](_0x29f283(0x118),_0x5e65e8),[];}}[a233_0x5659e8(0x104)](){const _0x4eb162=a233_0x5659e8;try{a233_0x17f6ec[_0x4eb162(0x11e)](this[_0x4eb162(0x10e)])&&a233_0x17f6ec['writeFileSync'](this[_0x4eb162(0x10e)],'',_0x4eb162(0x10c));}catch(_0x4294fd){console[_0x4eb162(0x139)](_0x4eb162(0x10a),_0x4294fd);}}[a233_0x5659e8(0x114)](){return this['winstonLogger'];}}function a233_0x24d6(_0x29696d,_0x25875d){_0x29696d=_0x29696d-0x104;const _0x1ba387=a233_0x1ba3();let _0x24d662=_0x1ba387[_0x29696d];return _0x24d662;}export const logger=new Logger();
1
+ const a237_0x3c86e4=a237_0x64c1;function a237_0x64c1(_0x5a4948,_0x2c267d){_0x5a4948=_0x5a4948-0xf4;const _0x5e30cc=a237_0x5e30();let _0x64c124=_0x5e30cc[_0x5a4948];return _0x64c124;}(function(_0x27fa6c,_0x24c0e4){const _0x6c60ee=a237_0x64c1,_0x340e9a=_0x27fa6c();while(!![]){try{const _0x2b6e2b=-parseInt(_0x6c60ee(0x108))/0x1*(-parseInt(_0x6c60ee(0x106))/0x2)+-parseInt(_0x6c60ee(0x126))/0x3*(-parseInt(_0x6c60ee(0xf4))/0x4)+parseInt(_0x6c60ee(0xff))/0x5+-parseInt(_0x6c60ee(0x11b))/0x6+parseInt(_0x6c60ee(0x118))/0x7*(parseInt(_0x6c60ee(0x10f))/0x8)+parseInt(_0x6c60ee(0x10b))/0x9+-parseInt(_0x6c60ee(0x111))/0xa*(parseInt(_0x6c60ee(0xfc))/0xb);if(_0x2b6e2b===_0x24c0e4)break;else _0x340e9a['push'](_0x340e9a['shift']());}catch(_0x4e47b1){_0x340e9a['push'](_0x340e9a['shift']());}}}(a237_0x5e30,0xd42de));import a237_0x1638ce from'winston';import a237_0x2ae4b1 from'node:fs';function a237_0x5e30(){const _0x195c52=['2702ESHLEL','toISOString','addColors','9296550zUaQdt','File','log','command','getWinstonInstance','initWinstonLogger','yellow','map','mkdirSync','readFileSync','timestamp','3ndkmJu','2871548UKEJGS','printf','setLogPath','readLogs','currentRawCommand','logFilePath','clearLogs','success','165LKlKsA','dirname','existsSync','3280010KHBTRt','rawCommand','errors','duration','error','format','unknown','6QmRkus','完成:\x20','418612qoJYpS','logTask','utf8','6549606JuaxCg','join','now','createLogger','6616yxDkPx','info','838780cwssTe','warn','message','winstonLogger','setRawCommand','Failed\x20to\x20read\x20logs:','Failed\x20to\x20clear\x20logs:'];a237_0x5e30=function(){return _0x195c52;};return a237_0x5e30();}import a237_0x318086 from'node:path';class Logger{[a237_0x3c86e4(0x114)];[a237_0x3c86e4(0xf9)];[a237_0x3c86e4(0xf8)]='';constructor(){const _0xcc22ed=a237_0x3c86e4;this[_0xcc22ed(0xf9)]='';}[a237_0x3c86e4(0x115)](_0x288774){this['currentRawCommand']=_0x288774;}[a237_0x3c86e4(0x120)](){const _0x3c0505=a237_0x3c86e4,_0x14147d=a237_0x318086[_0x3c0505(0xfd)](this[_0x3c0505(0xf9)]);!a237_0x2ae4b1[_0x3c0505(0xfe)](_0x14147d)&&a237_0x2ae4b1[_0x3c0505(0x123)](_0x14147d,{'recursive':!![]});const _0x11300b=a237_0x1638ce['format']['combine'](a237_0x1638ce[_0x3c0505(0x104)][_0x3c0505(0x125)](),a237_0x1638ce[_0x3c0505(0x104)][_0x3c0505(0x101)]({'stack':!![]}),a237_0x1638ce[_0x3c0505(0x104)][_0x3c0505(0xf5)](_0x5796f6=>{const _0x5ab4e4=_0x3c0505,_0x37dde5={'timestamp':_0x5796f6[_0x5ab4e4(0x125)]||new Date()[_0x5ab4e4(0x119)](),'level':_0x5796f6['level']||'info','command':_0x5796f6[_0x5ab4e4(0x11e)]||_0x5ab4e4(0x105),'rawCommand':_0x5796f6[_0x5ab4e4(0x100)]||this[_0x5ab4e4(0xf8)]||undefined,'message':_0x5796f6[_0x5ab4e4(0x113)]||'','duration':_0x5796f6[_0x5ab4e4(0x102)]||undefined,'details':_0x5796f6['details']||undefined};return JSON['stringify'](_0x37dde5);}));this['winstonLogger']=a237_0x1638ce[_0x3c0505(0x10e)]({'level':_0x3c0505(0x110),'format':_0x11300b,'transports':[new a237_0x1638ce['transports'][(_0x3c0505(0x11c))]({'filename':this[_0x3c0505(0xf9)],'level':_0x3c0505(0x110)})],'silent':![]}),a237_0x1638ce[_0x3c0505(0x11a)]({'success':'green','error':'red','warn':_0x3c0505(0x121),'info':'blue'});}[a237_0x3c86e4(0xf6)](_0xd72b70){const _0x3685fb=a237_0x3c86e4;this['logFilePath']=a237_0x318086[_0x3685fb(0x10c)](_0xd72b70,'.lovrabet.log'),this[_0x3685fb(0x114)]&&this[_0x3685fb(0x114)]['clear'](),this['initWinstonLogger']();}[a237_0x3c86e4(0x110)](_0x361f09,_0x59fb24,_0x28e144){const _0x6e969a=a237_0x3c86e4;if(!this[_0x6e969a(0xf9)]||!this['winstonLogger'])return;this[_0x6e969a(0x114)][_0x6e969a(0x110)](_0x59fb24,{'command':_0x361f09,'details':_0x28e144});}['success'](_0x19fa72,_0x518ee3,_0x2e3b4b,_0x2da36d){const _0x32ff8b=a237_0x3c86e4;if(!this[_0x32ff8b(0xf9)]||!this[_0x32ff8b(0x114)])return;this[_0x32ff8b(0x114)][_0x32ff8b(0x11d)](_0x32ff8b(0x110),_0x518ee3,{'level':_0x32ff8b(0xfb),'command':_0x19fa72,'duration':_0x2e3b4b,'details':_0x2da36d});}[a237_0x3c86e4(0x103)](_0x54207d,_0x2f5fcf,_0x1316f7){const _0x5429d5=a237_0x3c86e4;if(!this[_0x5429d5(0xf9)]||!this['winstonLogger'])return;this[_0x5429d5(0x114)]['error'](_0x2f5fcf,{'command':_0x54207d,'details':_0x1316f7});}[a237_0x3c86e4(0x112)](_0xe61551,_0x2f6949,_0x522027){const _0xfcf59f=a237_0x3c86e4;if(!this[_0xfcf59f(0xf9)]||!this[_0xfcf59f(0x114)])return;this[_0xfcf59f(0x114)][_0xfcf59f(0x112)](_0x2f6949,{'command':_0xe61551,'details':_0x522027});}async[a237_0x3c86e4(0x109)](_0xc9c7bd,_0xf53b47,_0xa9c1f0){const _0x122910=a237_0x3c86e4,_0x5b52a3=Date[_0x122910(0x10d)]();this[_0x122910(0x110)](_0xc9c7bd,'开始执行:\x20'+_0xf53b47);try{const _0x3e665c=await _0xa9c1f0(),_0x43a154=Date['now']()-_0x5b52a3;return this[_0x122910(0xfb)](_0xc9c7bd,_0x122910(0x107)+_0xf53b47,_0x43a154),_0x3e665c;}catch(_0x153fdc){const _0x5c8b72=Date[_0x122910(0x10d)]()-_0x5b52a3;this[_0x122910(0x103)](_0xc9c7bd,'失败:\x20'+_0xf53b47,{'error':_0x153fdc instanceof Error?_0x153fdc[_0x122910(0x113)]:String(_0x153fdc),'duration':_0x5c8b72});throw _0x153fdc;}}[a237_0x3c86e4(0xf7)](){const _0x2bac57=a237_0x3c86e4;try{if(!a237_0x2ae4b1[_0x2bac57(0xfe)](this['logFilePath']))return[];const _0x239d6d=a237_0x2ae4b1[_0x2bac57(0x124)](this[_0x2bac57(0xf9)],_0x2bac57(0x10a));return _0x239d6d['split']('\x0a')['filter'](_0x976bc8=>_0x976bc8['trim']())[_0x2bac57(0x122)](_0x28700b=>JSON['parse'](_0x28700b));}catch(_0x5cffe7){return console[_0x2bac57(0x112)](_0x2bac57(0x116),_0x5cffe7),[];}}[a237_0x3c86e4(0xfa)](){const _0x251086=a237_0x3c86e4;try{a237_0x2ae4b1['existsSync'](this[_0x251086(0xf9)])&&a237_0x2ae4b1['writeFileSync'](this[_0x251086(0xf9)],'',_0x251086(0x10a));}catch(_0x18a9f0){console[_0x251086(0x112)](_0x251086(0x117),_0x18a9f0);}}[a237_0x3c86e4(0x11f)](){return this['winstonLogger'];}}export const logger=new Logger();
@@ -1 +1 @@
1
- function a234_0x51aa(){const _0x20d487=['171978mepQqu','3757270BnuPnf','Invalid\x20JSON\x20for\x20--params:\x20','--params\x20must\x20be\x20a\x20JSON\x20object','validation','2530256McdcVu','639436FRavrI','770806KUpBhS','521028OqtLXE','6lXvEFD','65XwaueN','Example:\x20--params\x20\x27{\x22id\x22:123}\x27','7AVqoQH','isArray','740280CrCrwP'];a234_0x51aa=function(){return _0x20d487;};return a234_0x51aa();}(function(_0x3d0dcf,_0xa53f72){const _0x39f027=a234_0x57fe,_0xb87807=_0x3d0dcf();while(!![]){try{const _0x466669=parseInt(_0x39f027(0xe9))/0x1+-parseInt(_0x39f027(0xe2))/0x2+parseInt(_0x39f027(0xe4))/0x3*(-parseInt(_0x39f027(0xe1))/0x4)+parseInt(_0x39f027(0xe5))/0x5*(parseInt(_0x39f027(0xea))/0x6)+parseInt(_0x39f027(0xe7))/0x7*(parseInt(_0x39f027(0xef))/0x8)+parseInt(_0x39f027(0xe3))/0x9+-parseInt(_0x39f027(0xeb))/0xa;if(_0x466669===_0xa53f72)break;else _0xb87807['push'](_0xb87807['shift']());}catch(_0x145abf){_0xb87807['push'](_0xb87807['shift']());}}}(a234_0x51aa,0x632d1));import{CliErrors}from'../errors.js';function a234_0x57fe(_0x532d2f,_0x535b66){_0x532d2f=_0x532d2f-0xe1;const _0x51aad6=a234_0x51aa();let _0x57fee1=_0x51aad6[_0x532d2f];return _0x57fee1;}export function parseJsonParams(_0x4444f7){const _0x5773e7=a234_0x57fe;if(!_0x4444f7)return undefined;let _0x480e47;try{_0x480e47=JSON['parse'](_0x4444f7);}catch{throw CliErrors[_0x5773e7(0xee)](_0x5773e7(0xec)+_0x4444f7);}if(!_0x480e47||typeof _0x480e47!=='object'||Array[_0x5773e7(0xe8)](_0x480e47))throw CliErrors[_0x5773e7(0xee)](_0x5773e7(0xed),_0x5773e7(0xe6));return _0x480e47;}
1
+ function a238_0x3133(){const _0x4563cd=['1772PzoIod','5696397aMYNIp','--params\x20must\x20be\x20a\x20JSON\x20object','12JcAPmH','4554hzVwER','object','126OKbzcd','Example:\x20--params\x20\x27{\x22id\x22:123}\x27','isArray','709571YVpqfg','parse','4204700ZPTBNY','122674FMbqUe','Invalid\x20JSON\x20for\x20--params:\x20','170384uihWmK','validation','1617310ZtPUHs'];a238_0x3133=function(){return _0x4563cd;};return a238_0x3133();}(function(_0x1db711,_0x5d7c8f){const _0x689790=a238_0x3f0a,_0x184ff4=_0x1db711();while(!![]){try{const _0x35c2bc=-parseInt(_0x689790(0x1bf))/0x1+-parseInt(_0x689790(0x1c2))/0x2+parseInt(_0x689790(0x1cb))/0x3*(-parseInt(_0x689790(0x1c7))/0x4)+-parseInt(_0x689790(0x1c6))/0x5*(-parseInt(_0x689790(0x1ca))/0x6)+parseInt(_0x689790(0x1cd))/0x7*(parseInt(_0x689790(0x1c4))/0x8)+parseInt(_0x689790(0x1c8))/0x9+parseInt(_0x689790(0x1c1))/0xa;if(_0x35c2bc===_0x5d7c8f)break;else _0x184ff4['push'](_0x184ff4['shift']());}catch(_0x179ea0){_0x184ff4['push'](_0x184ff4['shift']());}}}(a238_0x3133,0x9c535));function a238_0x3f0a(_0x4ca79f,_0xe2f0c){_0x4ca79f=_0x4ca79f-0x1bf;const _0x3133a6=a238_0x3133();let _0x3f0a5a=_0x3133a6[_0x4ca79f];return _0x3f0a5a;}import{CliErrors}from'../errors.js';export function parseJsonParams(_0x1e9a6f){const _0x168eab=a238_0x3f0a;if(!_0x1e9a6f)return undefined;let _0x1189cc;try{_0x1189cc=JSON[_0x168eab(0x1c0)](_0x1e9a6f);}catch{throw CliErrors[_0x168eab(0x1c5)](_0x168eab(0x1c3)+_0x1e9a6f);}if(!_0x1189cc||typeof _0x1189cc!==_0x168eab(0x1cc)||Array[_0x168eab(0x1cf)](_0x1189cc))throw CliErrors['validation'](_0x168eab(0x1c9),_0x168eab(0x1ce));return _0x1189cc;}
@@ -1 +1 @@
1
- const a235_0x430fbe=a235_0x1186;(function(_0x11efed,_0x6e3190){const _0x251fb2=a235_0x1186,_0x3c32dd=_0x11efed();while(!![]){try{const _0x5f36de=-parseInt(_0x251fb2(0x147))/0x1*(-parseInt(_0x251fb2(0x145))/0x2)+-parseInt(_0x251fb2(0x13f))/0x3+parseInt(_0x251fb2(0x141))/0x4*(parseInt(_0x251fb2(0x13d))/0x5)+parseInt(_0x251fb2(0x148))/0x6+parseInt(_0x251fb2(0x142))/0x7*(-parseInt(_0x251fb2(0x146))/0x8)+parseInt(_0x251fb2(0x13c))/0x9*(-parseInt(_0x251fb2(0x13e))/0xa)+-parseInt(_0x251fb2(0x140))/0xb;if(_0x5f36de===_0x6e3190)break;else _0x3c32dd['push'](_0x3c32dd['shift']());}catch(_0x1d14a5){_0x3c32dd['push'](_0x3c32dd['shift']());}}}(a235_0x1350,0x9c26b));export const isWindows=process[a235_0x430fbe(0x143)]===a235_0x430fbe(0x144);function a235_0x1186(_0x50f09b,_0x328298){_0x50f09b=_0x50f09b-0x13c;const _0x1350f9=a235_0x1350();let _0x1186e9=_0x1350f9[_0x50f09b];return _0x1186e9;}export function resolveNpmBin(_0x14e239){return isWindows?_0x14e239+'.cmd':_0x14e239;}function a235_0x1350(){const _0x283b40=['4404125FEwHTl','236FSHpNW','371hKrxpP','platform','win32','2CQLwYY','24152jNyvkE','763706OPoVHv','3030192rznGHq','18ILKXkT','88355DhDYWQ','1939590vZWKPD','2170296gMfQHW'];a235_0x1350=function(){return _0x283b40;};return a235_0x1350();}
1
+ function a239_0x3ae8(){const _0x293b62=['168312AXnFHh','768754FPOlqz','1957280FHAstH','1264878januOJ','6044436bTqdgn','5XxSnFo','39498VfWaoe','7352acIbOt','1687qGqNTN','platform'];a239_0x3ae8=function(){return _0x293b62;};return a239_0x3ae8();}function a239_0x48ae(_0x250717,_0x48629b){_0x250717=_0x250717-0x122;const _0x3ae8d8=a239_0x3ae8();let _0x48ae81=_0x3ae8d8[_0x250717];return _0x48ae81;}const a239_0xeafa9=a239_0x48ae;(function(_0x7b12f2,_0x1fe296){const _0x407261=a239_0x48ae,_0x47e89f=_0x7b12f2();while(!![]){try{const _0x3688b4=parseInt(_0x407261(0x126))/0x1+parseInt(_0x407261(0x127))/0x2+parseInt(_0x407261(0x122))/0x3+-parseInt(_0x407261(0x128))/0x4+-parseInt(_0x407261(0x12b))/0x5*(parseInt(_0x407261(0x129))/0x6)+-parseInt(_0x407261(0x124))/0x7*(parseInt(_0x407261(0x123))/0x8)+parseInt(_0x407261(0x12a))/0x9;if(_0x3688b4===_0x1fe296)break;else _0x47e89f['push'](_0x47e89f['shift']());}catch(_0x5e6a5c){_0x47e89f['push'](_0x47e89f['shift']());}}}(a239_0x3ae8,0x4d1c7));export const isWindows=process[a239_0xeafa9(0x125)]==='win32';export function resolveNpmBin(_0x23fc47){return isWindows?_0x23fc47+'.cmd':_0x23fc47;}
@@ -1 +1 @@
1
- function a236_0x43c4(_0x445056,_0x2a3816){_0x445056=_0x445056-0x119;const _0x410e5c=a236_0x410e();let _0x43c4ed=_0x410e5c[_0x445056];return _0x43c4ed;}(function(_0x35f400,_0x592efa){const _0x5c5268=a236_0x43c4,_0x2c0099=_0x35f400();while(!![]){try{const _0x51b4f9=-parseInt(_0x5c5268(0x12a))/0x1*(-parseInt(_0x5c5268(0x12b))/0x2)+-parseInt(_0x5c5268(0x121))/0x3*(-parseInt(_0x5c5268(0x12e))/0x4)+-parseInt(_0x5c5268(0x125))/0x5*(-parseInt(_0x5c5268(0x11f))/0x6)+parseInt(_0x5c5268(0x126))/0x7+parseInt(_0x5c5268(0x129))/0x8*(-parseInt(_0x5c5268(0x122))/0x9)+-parseInt(_0x5c5268(0x12c))/0xa+parseInt(_0x5c5268(0x119))/0xb*(-parseInt(_0x5c5268(0x124))/0xc);if(_0x51b4f9===_0x592efa)break;else _0x2c0099['push'](_0x2c0099['shift']());}catch(_0x1dfe2b){_0x2c0099['push'](_0x2c0099['shift']());}}}(a236_0x410e,0x50ce8));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 _0x37f32d=a236_0x43c4,_0x518aae=getTemplateBaseUrl();return _0x518aae+_0x37f32d(0x123);}const LOCAL_TEMPLATE_PATH=resolve(__dirname,'../../templates/rules/lovrabet_rules.mdc.tpl');export async function fetchRulesFromCDN(){const _0x4e9fb3=a236_0x43c4,_0x3b03da=getRulesCdnUrl(),_0x28cfe7=await fetch(_0x3b03da,{'headers':{'Accept':_0x4e9fb3(0x120)}});if(!_0x28cfe7['ok'])throw new Error(_0x4e9fb3(0x11b)+_0x28cfe7['status']+'\x20'+_0x28cfe7['statusText']);const _0x23ebe8=await _0x28cfe7[_0x4e9fb3(0x11c)]();if(!_0x23ebe8['content']||typeof _0x23ebe8[_0x4e9fb3(0x128)]!=='string')throw new Error('CDN\x20返回数据格式错误');return _0x23ebe8;}export async function getRulesContent(){const _0x1f8a87=a236_0x43c4;try{const _0x1a2a80=await fetchRulesFromCDN();return _0x1a2a80[_0x1f8a87(0x128)];}catch{return readLocalTemplate();}}function a236_0x410e(){const _0x5215c6=['558845WdEEhB','utf-8','content','352232IJaLSg','563887ueVovB','2TJcJMP','3441590JAkOFY','本地模板文件不存在:\x20','4WOlcPf','11oWrAQV','catch','CDN\x20请求失败:\x20','json','.cursor/rules','lastUpdated','2355498SgSUsE','application/json','1487979jlcLdh','126OuyMRI','/rules/rules.json','2888988QIITSO','5zrDxts'];a236_0x410e=function(){return _0x5215c6;};return a236_0x410e();}export function readLocalTemplate(){const _0x1b4a2e=a236_0x43c4;if(existsSync(LOCAL_TEMPLATE_PATH))return readFileSync(LOCAL_TEMPLATE_PATH,_0x1b4a2e(0x127));throw new Error(_0x1b4a2e(0x12d)+LOCAL_TEMPLATE_PATH);}export async function writeRulesFile(_0xb595f1){const _0x54a3bb=a236_0x43c4,_0x2d03b3=await fetchRulesFromCDN()[_0x54a3bb(0x11a)](()=>null);let _0x48657f;_0x2d03b3?(_0x48657f=_0x2d03b3[_0x54a3bb(0x128)],_0x2d03b3[_0x54a3bb(0x11e)]&&(_0x48657f=appendUpdateTime(_0x48657f,_0x2d03b3[_0x54a3bb(0x11e)]))):_0x48657f=readLocalTemplate();const _0x2595d7=dirname(_0xb595f1);!existsSync(_0x2595d7)&&mkdirSync(_0x2595d7,{'recursive':!![]}),writeFileSync(_0xb595f1,_0x48657f,_0x54a3bb(0x127));}export async function copyRulesToCursor(_0x18f0ee){const _0x4c8073=a236_0x43c4,_0x443ebf=join(_0x18f0ee,_0x4c8073(0x11d)),_0x3866b3=join(_0x443ebf,'lovrabet_rules.mdc');if(existsSync(_0x3866b3))return![];return await writeRulesFile(_0x3866b3),!![];}export async function copyRulesToAgentsMd(_0x33ee48){const _0x23a155=join(_0x33ee48,'agents.md');if(existsSync(_0x23a155))return![];return await writeRulesFile(_0x23a155),!![];}
1
+ (function(_0x5dc3db,_0x430e13){const _0x2939d7=a240_0x378f,_0x579571=_0x5dc3db();while(!![]){try{const _0x5f34d2=parseInt(_0x2939d7(0x130))/0x1+-parseInt(_0x2939d7(0x133))/0x2+-parseInt(_0x2939d7(0x12e))/0x3+-parseInt(_0x2939d7(0x13d))/0x4*(parseInt(_0x2939d7(0x12c))/0x5)+-parseInt(_0x2939d7(0x12b))/0x6*(parseInt(_0x2939d7(0x128))/0x7)+parseInt(_0x2939d7(0x134))/0x8+parseInt(_0x2939d7(0x136))/0x9*(parseInt(_0x2939d7(0x126))/0xa);if(_0x5f34d2===_0x430e13)break;else _0x579571['push'](_0x579571['shift']());}catch(_0x478d32){_0x579571['push'](_0x579571['shift']());}}}(a240_0x2fe2,0x858cf));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';function a240_0x378f(_0x27e48a,_0x287fae){_0x27e48a=_0x27e48a-0x126;const _0x2fe200=a240_0x2fe2();let _0x378fb9=_0x2fe200[_0x27e48a];return _0x378fb9;}import{appendUpdateTime}from'../utils/guides-cdn.js';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);function getRulesCdnUrl(){const _0x42a376=a240_0x378f,_0x1dda4b=getTemplateBaseUrl();return _0x1dda4b+_0x42a376(0x137);}const LOCAL_TEMPLATE_PATH=resolve(__dirname,'../../templates/rules/lovrabet_rules.mdc.tpl');export async function fetchRulesFromCDN(){const _0x101070=a240_0x378f,_0x404111=getRulesCdnUrl(),_0x3ce914=await fetch(_0x404111,{'headers':{'Accept':_0x101070(0x12d)}});if(!_0x3ce914['ok'])throw new Error(_0x101070(0x13c)+_0x3ce914['status']+'\x20'+_0x3ce914[_0x101070(0x139)]);const _0xf30b4e=await _0x3ce914[_0x101070(0x13a)]();if(!_0xf30b4e['content']||typeof _0xf30b4e[_0x101070(0x138)]!==_0x101070(0x131))throw new Error(_0x101070(0x135));return _0xf30b4e;}function a240_0x2fe2(){const _0x7801c4=['1512488fwPffw','CDN\x20返回数据格式错误','153tRUZxt','/rules/rules.json','content','statusText','json','lastUpdated','CDN\x20请求失败:\x20','1165308SVHGDL','893630lNtSPR','agents.md','997528MqvVLN','.cursor/rules','utf-8','24kScfwc','10cQjCSh','application/json','478164dEhfxn','lovrabet_rules.mdc','187105ojlZBn','string','本地模板文件不存在:\x20','72512eIBojO'];a240_0x2fe2=function(){return _0x7801c4;};return a240_0x2fe2();}export async function getRulesContent(){try{const _0x3af835=await fetchRulesFromCDN();return _0x3af835['content'];}catch{return readLocalTemplate();}}export function readLocalTemplate(){const _0x3204cf=a240_0x378f;if(existsSync(LOCAL_TEMPLATE_PATH))return readFileSync(LOCAL_TEMPLATE_PATH,_0x3204cf(0x12a));throw new Error(_0x3204cf(0x132)+LOCAL_TEMPLATE_PATH);}export async function writeRulesFile(_0x28aab3){const _0x5bc306=a240_0x378f,_0x249a95=await fetchRulesFromCDN()['catch'](()=>null);let _0x4ac6ee;_0x249a95?(_0x4ac6ee=_0x249a95[_0x5bc306(0x138)],_0x249a95[_0x5bc306(0x13b)]&&(_0x4ac6ee=appendUpdateTime(_0x4ac6ee,_0x249a95[_0x5bc306(0x13b)]))):_0x4ac6ee=readLocalTemplate();const _0x462434=dirname(_0x28aab3);!existsSync(_0x462434)&&mkdirSync(_0x462434,{'recursive':!![]}),writeFileSync(_0x28aab3,_0x4ac6ee,_0x5bc306(0x12a));}export async function copyRulesToCursor(_0x29f27c){const _0x4c64ad=a240_0x378f,_0xbb3820=join(_0x29f27c,_0x4c64ad(0x129)),_0x3604ea=join(_0xbb3820,_0x4c64ad(0x12f));if(existsSync(_0x3604ea))return![];return await writeRulesFile(_0x3604ea),!![];}export async function copyRulesToAgentsMd(_0x56e3b3){const _0x12e784=a240_0x378f,_0x59034a=join(_0x56e3b3,_0x12e784(0x127));if(existsSync(_0x59034a))return![];return await writeRulesFile(_0x59034a),!![];}
@@ -1 +1 @@
1
- export function sleep(_0x4fac89){return new Promise(_0x54cc8d=>setTimeout(_0x54cc8d,_0x4fac89));}
1
+ export function sleep(_0x2e6048){return new Promise(_0x509e40=>setTimeout(_0x509e40,_0x2e6048));}
@@ -1 +1 @@
1
- function a238_0x3b64(){const _0x8497c7=['5VXPMmD','mkdir','\x20},','includes','getDate','copyFile','.scss','1186480zCRyiM','.css','writeFile','endsWith','now','datasetCode','pad','isDirectory','YourModel','.tpl','processFile','alias','getMonth','366795hJSggB','replaceContent','isFile','4351000FGqlKF','toUpperCase','.json','replace','extname','toComponentName','模板内容替换完成','LOVRABET','name:\x20\x22','charAt','template','processDirectory','success','tableName:\x20\x22','10495152GaQEnM','457284JhLhLy','getHours','error','toLowerCase','238867ErCWDP','getFullYear','getSeconds','alias:\x20\x22','padStart','name','114tpiIRU','promises','datasetCode:\x20\x22','push','slice','\x0a\x20\x20\x20\x20{\x20','processTemplate','formatLocalTimestamp','.md','.jsx','开始处理模板内容替换','模板内容替换失败','join','getMinutes','pop','utf8','221669jsGySb','message','split','readFile','map'];a238_0x3b64=function(){return _0x8497c7;};return a238_0x3b64();}const a238_0x4d2be6=a238_0x5074;(function(_0x5945ab,_0x58925f){const _0x251399=a238_0x5074,_0x315a1f=_0x5945ab();while(!![]){try{const _0x1b52a8=parseInt(_0x251399(0xd1))/0x1+-parseInt(_0x251399(0xf3))/0x2+-parseInt(_0x251399(0x100))/0x3+parseInt(_0x251399(0xcd))/0x4*(-parseInt(_0x251399(0xec))/0x5)+parseInt(_0x251399(0xd7))/0x6*(-parseInt(_0x251399(0xe7))/0x7)+parseInt(_0x251399(0x103))/0x8+parseInt(_0x251399(0xcc))/0x9;if(_0x1b52a8===_0x58925f)break;else _0x315a1f['push'](_0x315a1f['shift']());}catch(_0x1518b7){_0x315a1f['push'](_0x315a1f['shift']());}}}(a238_0x3b64,0x7e4fb));import a238_0x15c935 from'node:fs';import a238_0x2672f8 from'node:path';import{logger}from'../utils/logger.js';import{getCliVersion}from'../utils/version.js';function a238_0x5074(_0x4462da,_0x3142c9){_0x4462da=_0x4462da-0xc9;const _0x3b6465=a238_0x3b64();let _0x5074ff=_0x3b6465[_0x4462da];return _0x5074ff;}const CLI_VERSION=getCliVersion();export class TemplateReplacer{static[a238_0x4d2be6(0xf9)](_0x2e671f){const _0x8b7675=a238_0x4d2be6;return String(_0x2e671f)[_0x8b7675(0xd5)](0x2,'0');}static[a238_0x4d2be6(0xde)](_0x2ecddc){const _0x4ed5f4=a238_0x4d2be6,_0xeb8fe6=_0x2ecddc[_0x4ed5f4(0xd2)](),_0x5c0201=this[_0x4ed5f4(0xf9)](_0x2ecddc[_0x4ed5f4(0xff)]()+0x1),_0x2ce30b=this[_0x4ed5f4(0xf9)](_0x2ecddc[_0x4ed5f4(0xf0)]()),_0x29cfeb=this['pad'](_0x2ecddc[_0x4ed5f4(0xce)]()),_0x5a5d15=this[_0x4ed5f4(0xf9)](_0x2ecddc[_0x4ed5f4(0xe4)]()),_0x36176e=this['pad'](_0x2ecddc[_0x4ed5f4(0xd3)]());return{'createdAt':_0xeb8fe6+'-'+_0x5c0201+'-'+_0x2ce30b+'\x20'+_0x29cfeb+':'+_0x5a5d15+':'+_0x36176e,'createdDate':_0xeb8fe6+'-'+_0x5c0201+'-'+_0x2ce30b,'createdTime':_0x29cfeb+':'+_0x5a5d15+':'+_0x36176e};}static[a238_0x4d2be6(0x108)](_0x102c1d){const _0x8af272=a238_0x4d2be6,_0x3dacc8=_0x102c1d['split']('/')['pop']()||_0x102c1d;return _0x3dacc8[_0x8af272(0xe9)]('-')[_0x8af272(0xeb)](_0x2f13f6=>_0x2f13f6[_0x8af272(0x10c)](0x0)['toUpperCase']()+_0x2f13f6[_0x8af272(0xdb)](0x1)[_0x8af272(0xd0)]())['join']('');}static['toDisplayTitle'](_0x1f64bf){const _0x1cd715=a238_0x4d2be6,_0x5d9a38=_0x1f64bf[_0x1cd715(0xe9)]('/')[_0x1cd715(0xe5)]()||_0x1f64bf;return _0x5d9a38[_0x1cd715(0xe9)]('-')[_0x1cd715(0xeb)](_0x57939c=>_0x57939c[_0x1cd715(0x10c)](0x0)[_0x1cd715(0x104)]()+_0x57939c[_0x1cd715(0xdb)](0x1)[_0x1cd715(0xd0)]())[_0x1cd715(0xe3)]('\x20');}static[a238_0x4d2be6(0x101)](_0x51aed9,_0x121f61,_0x19bb9b){const _0x139c66=a238_0x4d2be6,_0x3b2e1e=this[_0x139c66(0x108)](_0x121f61),_0x391d7c=this['toDisplayTitle'](_0x121f61),{createdAt:_0x42d118,createdDate:_0x586631,createdTime:_0x1fc579}=this[_0x139c66(0xde)](new Date());let _0x3bfd5f=_0x51aed9[_0x139c66(0x106)](/\{CliVersion\}/g,CLI_VERSION)[_0x139c66(0x106)](/\{ComponentName\}/g,_0x3b2e1e)[_0x139c66(0x106)](/\{DisplayTitle\}/g,_0x391d7c)[_0x139c66(0x106)](/\{PageName\}/g,_0x121f61)[_0x139c66(0x106)](/\{TemplateName\}/g,_0x19bb9b)[_0x139c66(0x106)](/\{CreatedAt\}/g,_0x42d118)[_0x139c66(0x106)](/\{CreatedDate\}/g,_0x586631)['replace'](/\{CreatedTime\}/g,_0x1fc579);return _0x3bfd5f;}static['replaceApiContent'](_0xfaa695,_0x3a5377,_0x1dba5d,_0x5e1cad,_0x335b78,_0xb03aff,_0x44921e,_0xd33b3){const _0x2bef48=a238_0x4d2be6,_0x43600f=new Date(),_0xce4437=_0x43600f['toISOString'](),_0x57a6fd=_0x1dba5d[_0x2bef48(0xeb)](_0x5bac55=>{const _0x289cbd=_0x2bef48,_0x1259d4=[_0x289cbd(0xd9)+_0x5bac55[_0x289cbd(0xf8)]+'\x22',_0x289cbd(0xcb)+_0x5bac55['tableName']+'\x22',_0x289cbd(0x10b)+_0x5bac55[_0x289cbd(0xd6)]+'\x22'];return _0x5bac55[_0x289cbd(0xfe)]&&_0x1259d4[_0x289cbd(0xda)](_0x289cbd(0xd4)+_0x5bac55[_0x289cbd(0xfe)]+'\x22'),_0x289cbd(0xdc)+_0x1259d4[_0x289cbd(0xe3)](',\x20')+_0x289cbd(0xee);})[_0x2bef48(0xe3)](''),_0x2a018c=_0x5e1cad||_0x1dba5d[0x0]?.[_0x2bef48(0xfe)]||_0x2bef48(0xfb);let _0x58717b=_0xfaa695[_0x2bef48(0x106)](/\{AppCode\}/g,_0x3a5377)[_0x2bef48(0x106)](/\{ModelConfigs\}/g,_0x57a6fd)[_0x2bef48(0x106)](/\{ExampleModelName\}/g,_0x2a018c)[_0x2bef48(0x106)](/\{ApiFileName\}/g,_0x335b78||'api')[_0x2bef48(0x106)](/\{ConfigName\}/g,_0xb03aff||'default')[_0x2bef48(0x106)](/\{ClientConfigParam\}/g,_0x44921e||'')['replace'](/\{VarPrefix\}/g,_0xd33b3||_0x2bef48(0x10a))['replace'](/\{CreatedAt\}/g,_0xce4437);return _0x58717b;}static async[a238_0x4d2be6(0xdd)](_0x13fc43,_0x47f3eb,_0x4b2ae4,_0x408452,_0x108cd5=!![]){const _0x4da376=a238_0x4d2be6,_0x4af45a=Date[_0x4da376(0xf7)]();try{_0x108cd5&&logger['info'](_0x4da376(0x10d),_0x4da376(0xe1),{'templatePath':_0x13fc43,'targetPath':_0x47f3eb,'pageName':_0x4b2ae4,'templateName':_0x408452});await a238_0x15c935[_0x4da376(0xd8)]['mkdir'](_0x47f3eb,{'recursive':!![]}),await this[_0x4da376(0xc9)](_0x13fc43,_0x47f3eb,_0x4b2ae4,_0x408452);if(_0x108cd5){const _0x14a16a=Date['now']()-_0x4af45a;logger[_0x4da376(0xca)](_0x4da376(0x10d),_0x4da376(0x109),_0x14a16a,{'pageName':_0x4b2ae4,'templateName':_0x408452});}}catch(_0x9cfe71){if(_0x108cd5){const _0x3b1339=Date[_0x4da376(0xf7)]()-_0x4af45a;logger[_0x4da376(0xcf)]('template',_0x4da376(0xe2),{'templatePath':_0x13fc43,'targetPath':_0x47f3eb,'pageName':_0x4b2ae4,'templateName':_0x408452,'error':_0x9cfe71 instanceof Error?_0x9cfe71[_0x4da376(0xe8)]:String(_0x9cfe71),'duration':_0x3b1339});}throw _0x9cfe71;}}static async[a238_0x4d2be6(0xc9)](_0x3e1119,_0x791016,_0x3a1b4d,_0x1f1eb3){const _0x56057d=a238_0x4d2be6,_0x55cb0b=await a238_0x15c935['promises']['readdir'](_0x3e1119,{'withFileTypes':!![]});for(const _0x566890 of _0x55cb0b){const _0x52f611=a238_0x2672f8[_0x56057d(0xe3)](_0x3e1119,_0x566890[_0x56057d(0xd6)]);let _0x4154f5=a238_0x2672f8[_0x56057d(0xe3)](_0x791016,_0x566890['name']);_0x566890['name']['endsWith'](_0x56057d(0xfc))&&(_0x4154f5=a238_0x2672f8[_0x56057d(0xe3)](_0x791016,_0x566890['name'][_0x56057d(0x106)](/\.tpl$/,'')));if(_0x566890[_0x56057d(0xfa)]())await a238_0x15c935[_0x56057d(0xd8)][_0x56057d(0xed)](_0x4154f5,{'recursive':!![]}),await this[_0x56057d(0xc9)](_0x52f611,_0x4154f5,_0x3a1b4d,_0x1f1eb3);else _0x566890[_0x56057d(0x102)]()&&await this['processFile'](_0x52f611,_0x4154f5,_0x3a1b4d,_0x1f1eb3);}}static async[a238_0x4d2be6(0xfd)](_0x3f32df,_0x15453c,_0x459f5b,_0x3a5245){const _0x29d87a=a238_0x4d2be6,_0x484ca1=a238_0x2672f8[_0x29d87a(0x107)](_0x3f32df)['toLowerCase']();_0x3f32df[_0x29d87a(0xf6)](_0x29d87a(0xfc))&&(_0x15453c=_0x15453c[_0x29d87a(0x106)](/\.tpl$/,''));const _0x11114c=['.tsx','.ts',_0x29d87a(0xe0),'.js',_0x29d87a(0x105),_0x29d87a(0xdf),_0x29d87a(0xf4),_0x29d87a(0xf2),_0x29d87a(0xfc)];if(_0x11114c[_0x29d87a(0xef)](_0x484ca1)||_0x3f32df['endsWith'](_0x29d87a(0xfc))){const _0x2b21ab=await a238_0x15c935[_0x29d87a(0xd8)][_0x29d87a(0xea)](_0x3f32df,_0x29d87a(0xe6)),_0x359ee7=this[_0x29d87a(0x101)](_0x2b21ab,_0x459f5b,_0x3a5245);await a238_0x15c935['promises'][_0x29d87a(0xf5)](_0x15453c,_0x359ee7,_0x29d87a(0xe6));}else await a238_0x15c935['promises'][_0x29d87a(0xf1)](_0x3f32df,_0x15453c);}}
1
+ const a242_0x13611a=a242_0x3cc3;(function(_0x312001,_0x21f378){const _0x44adf4=a242_0x3cc3,_0x47289f=_0x312001();while(!![]){try{const _0x19ef28=parseInt(_0x44adf4(0x18e))/0x1+parseInt(_0x44adf4(0x170))/0x2+-parseInt(_0x44adf4(0x17d))/0x3*(-parseInt(_0x44adf4(0x196))/0x4)+-parseInt(_0x44adf4(0x19e))/0x5*(-parseInt(_0x44adf4(0x166))/0x6)+parseInt(_0x44adf4(0x168))/0x7+parseInt(_0x44adf4(0x17c))/0x8+parseInt(_0x44adf4(0x185))/0x9*(-parseInt(_0x44adf4(0x172))/0xa);if(_0x19ef28===_0x21f378)break;else _0x47289f['push'](_0x47289f['shift']());}catch(_0xbf148d){_0x47289f['push'](_0x47289f['shift']());}}}(a242_0x2412,0xc11a9));import a242_0x3e5a5f from'node:fs';import a242_0x4d759d from'node:path';import{logger}from'../utils/logger.js';import{getCliVersion}from'../utils/version.js';function a242_0x3cc3(_0x23e275,_0x4c3da4){_0x23e275=_0x23e275-0x15f;const _0x2412bc=a242_0x2412();let _0x3cc39c=_0x2412bc[_0x23e275];return _0x3cc39c;}function a242_0x2412(){const _0x1ff4ca=['endsWith','toLowerCase','LOVRABET','.ts','4ZrxkMA','promises','getDate','error','processDirectory','name:\x20\x22','utf8','extname','395dUckQB','pad','join','push','isDirectory','split','default','name','copyFile','template','70896rfNUeK','replace','9693005XwakAp','formatLocalTimestamp','now','toISOString','replaceContent','toDisplayTitle','\x20},','charAt','2216154DtYFYd','.tsx','3983070BfmSkz','.md','map','pop','.tpl','alias','.jsx','toUpperCase','.json','replaceApiContent','8596232biDERh','2622453GEDiGn','datasetCode','getFullYear','.scss','success','message','YourModel','模板内容替换完成','135VhcddO','slice','mkdir','getMonth','processFile','toComponentName','readFile','\x0a\x20\x20\x20\x20{\x20','info','1390622bCycGl','processTemplate','.js','datasetCode:\x20\x22'];a242_0x2412=function(){return _0x1ff4ca;};return a242_0x2412();}const CLI_VERSION=getCliVersion();export class TemplateReplacer{static[a242_0x13611a(0x19f)](_0x135cf9){return String(_0x135cf9)['padStart'](0x2,'0');}static[a242_0x13611a(0x169)](_0x2c41a0){const _0x23139d=a242_0x13611a,_0x998577=_0x2c41a0[_0x23139d(0x17f)](),_0x7b0e68=this[_0x23139d(0x19f)](_0x2c41a0[_0x23139d(0x188)]()+0x1),_0x4a6fc4=this['pad'](_0x2c41a0[_0x23139d(0x198)]()),_0x259004=this[_0x23139d(0x19f)](_0x2c41a0['getHours']()),_0x2b1948=this['pad'](_0x2c41a0['getMinutes']()),_0xd61946=this['pad'](_0x2c41a0['getSeconds']());return{'createdAt':_0x998577+'-'+_0x7b0e68+'-'+_0x4a6fc4+'\x20'+_0x259004+':'+_0x2b1948+':'+_0xd61946,'createdDate':_0x998577+'-'+_0x7b0e68+'-'+_0x4a6fc4,'createdTime':_0x259004+':'+_0x2b1948+':'+_0xd61946};}static[a242_0x13611a(0x18a)](_0x376694){const _0x131206=a242_0x13611a,_0x3549d8=_0x376694[_0x131206(0x161)]('/')['pop']()||_0x376694;return _0x3549d8['split']('-')['map'](_0x3cc7b6=>_0x3cc7b6[_0x131206(0x16f)](0x0)[_0x131206(0x179)]()+_0x3cc7b6[_0x131206(0x186)](0x1)[_0x131206(0x193)]())[_0x131206(0x1a0)]('');}static[a242_0x13611a(0x16d)](_0x4684b8){const _0x43c438=a242_0x13611a,_0x4db0c8=_0x4684b8[_0x43c438(0x161)]('/')[_0x43c438(0x175)]()||_0x4684b8;return _0x4db0c8['split']('-')[_0x43c438(0x174)](_0x4e8262=>_0x4e8262[_0x43c438(0x16f)](0x0)[_0x43c438(0x179)]()+_0x4e8262[_0x43c438(0x186)](0x1)[_0x43c438(0x193)]())[_0x43c438(0x1a0)]('\x20');}static[a242_0x13611a(0x16c)](_0x43ad68,_0x4eb65c,_0x135b05){const _0x1da1d4=a242_0x13611a,_0x52f5d4=this[_0x1da1d4(0x18a)](_0x4eb65c),_0x19cc04=this[_0x1da1d4(0x16d)](_0x4eb65c),{createdAt:_0x3ab6bf,createdDate:_0x57f66e,createdTime:_0x1470c7}=this[_0x1da1d4(0x169)](new Date());let _0x1c3e7d=_0x43ad68[_0x1da1d4(0x167)](/\{CliVersion\}/g,CLI_VERSION)[_0x1da1d4(0x167)](/\{ComponentName\}/g,_0x52f5d4)[_0x1da1d4(0x167)](/\{DisplayTitle\}/g,_0x19cc04)[_0x1da1d4(0x167)](/\{PageName\}/g,_0x4eb65c)['replace'](/\{TemplateName\}/g,_0x135b05)[_0x1da1d4(0x167)](/\{CreatedAt\}/g,_0x3ab6bf)['replace'](/\{CreatedDate\}/g,_0x57f66e)['replace'](/\{CreatedTime\}/g,_0x1470c7);return _0x1c3e7d;}static[a242_0x13611a(0x17b)](_0x5491e1,_0x42ec1e,_0x5fda20,_0x404ee7,_0x5e51a2,_0x8ce435,_0x92ca5a,_0x2f9976){const _0xd660d0=a242_0x13611a,_0x1bde1b=new Date(),_0x57e3f4=_0x1bde1b[_0xd660d0(0x16b)](),_0x1c2d50=_0x5fda20[_0xd660d0(0x174)](_0x3e7899=>{const _0x30fe95=_0xd660d0,_0x5b511a=[_0x30fe95(0x191)+_0x3e7899[_0x30fe95(0x17e)]+'\x22','tableName:\x20\x22'+_0x3e7899['tableName']+'\x22',_0x30fe95(0x19b)+_0x3e7899[_0x30fe95(0x163)]+'\x22'];return _0x3e7899[_0x30fe95(0x177)]&&_0x5b511a[_0x30fe95(0x15f)]('alias:\x20\x22'+_0x3e7899[_0x30fe95(0x177)]+'\x22'),_0x30fe95(0x18c)+_0x5b511a[_0x30fe95(0x1a0)](',\x20')+_0x30fe95(0x16e);})['join'](''),_0x398636=_0x404ee7||_0x5fda20[0x0]?.[_0xd660d0(0x177)]||_0xd660d0(0x183);let _0x1b2865=_0x5491e1[_0xd660d0(0x167)](/\{AppCode\}/g,_0x42ec1e)[_0xd660d0(0x167)](/\{ModelConfigs\}/g,_0x1c2d50)[_0xd660d0(0x167)](/\{ExampleModelName\}/g,_0x398636)[_0xd660d0(0x167)](/\{ApiFileName\}/g,_0x5e51a2||'api')[_0xd660d0(0x167)](/\{ConfigName\}/g,_0x8ce435||_0xd660d0(0x162))['replace'](/\{ClientConfigParam\}/g,_0x92ca5a||'')[_0xd660d0(0x167)](/\{VarPrefix\}/g,_0x2f9976||_0xd660d0(0x194))['replace'](/\{CreatedAt\}/g,_0x57e3f4);return _0x1b2865;}static async[a242_0x13611a(0x18f)](_0x1caed1,_0xef764d,_0x4f16fe,_0xe7662f,_0x1322e4=!![]){const _0x4d425d=a242_0x13611a,_0x148fde=Date[_0x4d425d(0x16a)]();try{_0x1322e4&&logger[_0x4d425d(0x18d)]('template','开始处理模板内容替换',{'templatePath':_0x1caed1,'targetPath':_0xef764d,'pageName':_0x4f16fe,'templateName':_0xe7662f});await a242_0x3e5a5f[_0x4d425d(0x197)][_0x4d425d(0x187)](_0xef764d,{'recursive':!![]}),await this['processDirectory'](_0x1caed1,_0xef764d,_0x4f16fe,_0xe7662f);if(_0x1322e4){const _0x494b14=Date[_0x4d425d(0x16a)]()-_0x148fde;logger[_0x4d425d(0x181)](_0x4d425d(0x165),_0x4d425d(0x184),_0x494b14,{'pageName':_0x4f16fe,'templateName':_0xe7662f});}}catch(_0x384aff){if(_0x1322e4){const _0x4eae03=Date['now']()-_0x148fde;logger[_0x4d425d(0x199)](_0x4d425d(0x165),'模板内容替换失败',{'templatePath':_0x1caed1,'targetPath':_0xef764d,'pageName':_0x4f16fe,'templateName':_0xe7662f,'error':_0x384aff instanceof Error?_0x384aff[_0x4d425d(0x182)]:String(_0x384aff),'duration':_0x4eae03});}throw _0x384aff;}}static async[a242_0x13611a(0x19a)](_0x3eec24,_0x1a8b00,_0x19ca5d,_0x4481cd){const _0xf84fd6=a242_0x13611a,_0x35cf3e=await a242_0x3e5a5f[_0xf84fd6(0x197)]['readdir'](_0x3eec24,{'withFileTypes':!![]});for(const _0x4d9e94 of _0x35cf3e){const _0x1b034b=a242_0x4d759d[_0xf84fd6(0x1a0)](_0x3eec24,_0x4d9e94['name']);let _0x5c30db=a242_0x4d759d[_0xf84fd6(0x1a0)](_0x1a8b00,_0x4d9e94[_0xf84fd6(0x163)]);_0x4d9e94[_0xf84fd6(0x163)][_0xf84fd6(0x192)](_0xf84fd6(0x176))&&(_0x5c30db=a242_0x4d759d[_0xf84fd6(0x1a0)](_0x1a8b00,_0x4d9e94['name'][_0xf84fd6(0x167)](/\.tpl$/,'')));if(_0x4d9e94[_0xf84fd6(0x160)]())await a242_0x3e5a5f[_0xf84fd6(0x197)]['mkdir'](_0x5c30db,{'recursive':!![]}),await this[_0xf84fd6(0x19a)](_0x1b034b,_0x5c30db,_0x19ca5d,_0x4481cd);else _0x4d9e94['isFile']()&&await this['processFile'](_0x1b034b,_0x5c30db,_0x19ca5d,_0x4481cd);}}static async[a242_0x13611a(0x189)](_0x17df06,_0x51ef94,_0x2c6737,_0x39209d){const _0x28208e=a242_0x13611a,_0x4528a6=a242_0x4d759d[_0x28208e(0x19d)](_0x17df06)[_0x28208e(0x193)]();_0x17df06['endsWith'](_0x28208e(0x176))&&(_0x51ef94=_0x51ef94[_0x28208e(0x167)](/\.tpl$/,''));const _0x30304f=[_0x28208e(0x171),_0x28208e(0x195),_0x28208e(0x178),_0x28208e(0x190),_0x28208e(0x17a),_0x28208e(0x173),'.css',_0x28208e(0x180),'.tpl'];if(_0x30304f['includes'](_0x4528a6)||_0x17df06[_0x28208e(0x192)](_0x28208e(0x176))){const _0x4c41c5=await a242_0x3e5a5f[_0x28208e(0x197)][_0x28208e(0x18b)](_0x17df06,_0x28208e(0x19c)),_0x21ac63=this[_0x28208e(0x16c)](_0x4c41c5,_0x2c6737,_0x39209d);await a242_0x3e5a5f[_0x28208e(0x197)]['writeFile'](_0x51ef94,_0x21ac63,_0x28208e(0x19c));}else await a242_0x3e5a5f[_0x28208e(0x197)][_0x28208e(0x164)](_0x17df06,_0x51ef94);}}
@@ -1 +1 @@
1
- (function(_0x57104c,_0x39c2ff){const _0x21215a=a239_0x238c,_0x5285a6=_0x57104c();while(!![]){try{const _0x43e38b=-parseInt(_0x21215a(0x1b4))/0x1+-parseInt(_0x21215a(0x1b0))/0x2*(-parseInt(_0x21215a(0x1c3))/0x3)+-parseInt(_0x21215a(0x1b6))/0x4*(-parseInt(_0x21215a(0x1b8))/0x5)+-parseInt(_0x21215a(0x1b5))/0x6*(parseInt(_0x21215a(0x1af))/0x7)+-parseInt(_0x21215a(0x1b1))/0x8+-parseInt(_0x21215a(0x1aa))/0x9*(parseInt(_0x21215a(0x1c1))/0xa)+-parseInt(_0x21215a(0x1bd))/0xb*(-parseInt(_0x21215a(0x1bf))/0xc);if(_0x43e38b===_0x39c2ff)break;else _0x5285a6['push'](_0x5285a6['shift']());}catch(_0x1280f1){_0x5285a6['push'](_0x5285a6['shift']());}}}(a239_0x39cf,0xa0e34));import{mkdir,readFile,writeFile}from'node:fs/promises';import{homedir}from'node:os';import{dirname,join}from'node:path';import a239_0x163fac from'semver';import{CLI_BIN_NAME,NPM_PACKAGE_NAME}from'../constant/cli.js';import{getCliVersionPolicy}from'../utils/cli-version-policy.js';import{getCliVersion}from'../utils/version.js';const UPDATE_CHECK_TTL_MS=0xc*0x3c*0x3c*0x3e8,UPDATE_NOTICE_TTL_MS=0x18*0x3c*0x3c*0x3e8;function a239_0x39cf(){const _0x224891=['stableVersion','https://www.npmjs.com/package/','2948EaIdKL','gte','146928xpIyCT',',\x20run:\x20','10MHIfoV','rabetbase-cli','84FxRwZg','parse','toLowerCase','stringify','checkedAt','lastNotifiedVersion','/v/','update-check.json','object','number','11125296YSfGUB','latest','\x20available,\x20current\x20','yes','valid','21vTNbUJ','2676hzQaHy','558584bHkbEd','now','utf8','267502PGRCHG','2308158cgfWIQ','8dKvqbW','true','169220gfvRMQ','trim','lastNotifiedAt'];a239_0x39cf=function(){return _0x224891;};return a239_0x39cf();}function isUpdateNoticeDisabled(){const _0x300890=a239_0x238c,_0x255f66=process.env.RABETBASE_NO_UPDATE_NOTICE?.['trim']()[_0x300890(0x1a2)]();return _0x255f66==='1'||_0x255f66===_0x300890(0x1b7)||_0x255f66===_0x300890(0x1ad);}function cacheRoot(){return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),'.cache');}export function getUpdateNoticeCachePath(){const _0x3785c2=a239_0x238c;return join(cacheRoot(),_0x3785c2(0x1c2),_0x3785c2(0x1a7));}async function readUpdateNoticeCache(){const _0x53a2d2=a239_0x238c;try{const _0x3ad209=await readFile(getUpdateNoticeCachePath(),_0x53a2d2(0x1b3)),_0x15b806=JSON[_0x53a2d2(0x1a1)](_0x3ad209);if(!_0x15b806||typeof _0x15b806!==_0x53a2d2(0x1a8))return{};return _0x15b806;}catch{return{};}}async function writeUpdateNoticeCache(_0x3a37d2){const _0x2225cd=a239_0x238c;try{const _0x44c6e6=getUpdateNoticeCachePath();await mkdir(dirname(_0x44c6e6),{'recursive':!![]}),await writeFile(_0x44c6e6,JSON[_0x2225cd(0x1a3)](_0x3a37d2,null,0x2)+'\x0a',_0x2225cd(0x1b3));}catch{}}function isFreshCheck(_0x55bd4d,_0x50920d){const _0x5b3c30=a239_0x238c;return typeof _0x55bd4d[_0x5b3c30(0x1a4)]===_0x5b3c30(0x1a9)&&_0x50920d-_0x55bd4d[_0x5b3c30(0x1a4)]<UPDATE_CHECK_TTL_MS;}function a239_0x238c(_0x53119b,_0x4e68a9){_0x53119b=_0x53119b-0x1a1;const _0x39cf7f=a239_0x39cf();let _0x238ce4=_0x39cf7f[_0x53119b];return _0x238ce4;}function isRecentlyNotified(_0x50f401,_0x4ede05,_0x4c65df){const _0x26fe49=a239_0x238c;return _0x50f401[_0x26fe49(0x1a5)]===_0x4ede05&&typeof _0x50f401[_0x26fe49(0x1ba)]===_0x26fe49(0x1a9)&&_0x4c65df-_0x50f401[_0x26fe49(0x1ba)]<UPDATE_NOTICE_TTL_MS;}export function buildNpmVersionUrl(_0x1bb533){const _0x168284=a239_0x238c;return _0x168284(0x1bc)+NPM_PACKAGE_NAME+_0x168284(0x1a6)+_0x1bb533;}export async function resolveLatestUpdateNotice(){const _0x5a141a=a239_0x238c;if(isUpdateNoticeDisabled())return null;try{const _0xd27e65=Date[_0x5a141a(0x1b2)](),_0xf8dc9c=getCliVersion(),_0x3af08b=await readUpdateNoticeCache();let _0x530865=isFreshCheck(_0x3af08b,_0xd27e65)?_0x3af08b[_0x5a141a(0x1ab)]?.[_0x5a141a(0x1b9)]():undefined;if(!_0x530865&&!isFreshCheck(_0x3af08b,_0xd27e65)){const _0x5c515a=await getCliVersionPolicy();_0x530865=_0x5c515a?.[_0x5a141a(0x1bb)]?.[_0x5a141a(0x1b9)]()||undefined,await writeUpdateNoticeCache({..._0x3af08b,'checkedAt':_0xd27e65,'latest':_0x530865,'failed':!_0x530865});}if(!_0x530865||!a239_0x163fac['valid'](_0xf8dc9c)||!a239_0x163fac[_0x5a141a(0x1ae)](_0x530865))return null;if(a239_0x163fac[_0x5a141a(0x1be)](_0xf8dc9c,_0x530865))return null;if(isRecentlyNotified(_0x3af08b,_0x530865,_0xd27e65))return null;const _0x1dfff6=CLI_BIN_NAME+'\x20update';return await writeUpdateNoticeCache({..._0x3af08b,'checkedAt':isFreshCheck(_0x3af08b,_0xd27e65)?_0x3af08b[_0x5a141a(0x1a4)]:_0xd27e65,'latest':_0x530865,'failed':![],'lastNotifiedVersion':_0x530865,'lastNotifiedAt':_0xd27e65}),{'command':_0x1dfff6,'current':_0xf8dc9c,'latest':_0x530865,'url':buildNpmVersionUrl(_0x530865),'message':CLI_BIN_NAME+'\x20'+_0x530865+_0x5a141a(0x1ac)+_0xf8dc9c+_0x5a141a(0x1c0)+_0x1dfff6};}catch{return null;}}
1
+ (function(_0x2c5a20,_0x456778){const _0x130cb2=a243_0x5828,_0x444855=_0x2c5a20();while(!![]){try{const _0x4435a4=-parseInt(_0x130cb2(0xc3))/0x1+-parseInt(_0x130cb2(0xce))/0x2+-parseInt(_0x130cb2(0xc4))/0x3+parseInt(_0x130cb2(0xd9))/0x4*(-parseInt(_0x130cb2(0xcd))/0x5)+-parseInt(_0x130cb2(0xe0))/0x6+parseInt(_0x130cb2(0xc7))/0x7*(-parseInt(_0x130cb2(0xda))/0x8)+parseInt(_0x130cb2(0xdc))/0x9*(parseInt(_0x130cb2(0xca))/0xa);if(_0x4435a4===_0x456778)break;else _0x444855['push'](_0x444855['shift']());}catch(_0x2b6472){_0x444855['push'](_0x444855['shift']());}}}(a243_0x53db,0xb8eb7));function a243_0x53db(){const _0x27b2a1=['/v/','161CZLTzZ','number','yes','10bVMtex','\x20update','valid','10vmJPFl','1094552CWROOj','rabetbase-cli','\x20available,\x20current\x20','trim','utf8','gte','toLowerCase','latest',',\x20run:\x20','parse','now','2720316iUTggH','465384vAuAHb','lastNotifiedVersion','44108343koAqVA','checkedAt','https://www.npmjs.com/package/','true','1504512mnjcOl','stringify','175899roCIPs','1414296mrJfKH','lastNotifiedAt'];a243_0x53db=function(){return _0x27b2a1;};return a243_0x53db();}import{mkdir,readFile,writeFile}from'node:fs/promises';import{homedir}from'node:os';import{dirname,join}from'node:path';function a243_0x5828(_0x3396b8,_0x4fa772){_0x3396b8=_0x3396b8-0xc2;const _0x53db78=a243_0x53db();let _0x58285e=_0x53db78[_0x3396b8];return _0x58285e;}import a243_0x87b274 from'semver';import{CLI_BIN_NAME,NPM_PACKAGE_NAME}from'../constant/cli.js';import{getCliVersionPolicy}from'../utils/cli-version-policy.js';import{getCliVersion}from'../utils/version.js';const UPDATE_CHECK_TTL_MS=0xc*0x3c*0x3c*0x3e8,UPDATE_NOTICE_TTL_MS=0x18*0x3c*0x3c*0x3e8;function isUpdateNoticeDisabled(){const _0xda8374=a243_0x5828,_0x4d7974=process.env.RABETBASE_NO_UPDATE_NOTICE?.[_0xda8374(0xd1)]()[_0xda8374(0xd4)]();return _0x4d7974==='1'||_0x4d7974===_0xda8374(0xdf)||_0x4d7974===_0xda8374(0xc9);}function cacheRoot(){return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),'.cache');}export function getUpdateNoticeCachePath(){const _0x26905a=a243_0x5828;return join(cacheRoot(),_0x26905a(0xcf),'update-check.json');}async function readUpdateNoticeCache(){const _0x411fed=a243_0x5828;try{const _0x44b989=await readFile(getUpdateNoticeCachePath(),_0x411fed(0xd2)),_0x4ea12f=JSON[_0x411fed(0xd7)](_0x44b989);if(!_0x4ea12f||typeof _0x4ea12f!=='object')return{};return _0x4ea12f;}catch{return{};}}async function writeUpdateNoticeCache(_0x2d0c1a){const _0x303f6d=a243_0x5828;try{const _0x4f933e=getUpdateNoticeCachePath();await mkdir(dirname(_0x4f933e),{'recursive':!![]}),await writeFile(_0x4f933e,JSON[_0x303f6d(0xc2)](_0x2d0c1a,null,0x2)+'\x0a',_0x303f6d(0xd2));}catch{}}function isFreshCheck(_0x1f530b,_0x1b39e8){const _0x5b744b=a243_0x5828;return typeof _0x1f530b[_0x5b744b(0xdd)]===_0x5b744b(0xc8)&&_0x1b39e8-_0x1f530b[_0x5b744b(0xdd)]<UPDATE_CHECK_TTL_MS;}function isRecentlyNotified(_0x4a235c,_0x286796,_0x48211b){const _0x399efa=a243_0x5828;return _0x4a235c[_0x399efa(0xdb)]===_0x286796&&typeof _0x4a235c[_0x399efa(0xc5)]==='number'&&_0x48211b-_0x4a235c['lastNotifiedAt']<UPDATE_NOTICE_TTL_MS;}export function buildNpmVersionUrl(_0x3679ae){const _0x1c4626=a243_0x5828;return _0x1c4626(0xde)+NPM_PACKAGE_NAME+_0x1c4626(0xc6)+_0x3679ae;}export async function resolveLatestUpdateNotice(){const _0x5471b2=a243_0x5828;if(isUpdateNoticeDisabled())return null;try{const _0x5e915a=Date[_0x5471b2(0xd8)](),_0x52ee20=getCliVersion(),_0x5013ac=await readUpdateNoticeCache();let _0x53ce95=isFreshCheck(_0x5013ac,_0x5e915a)?_0x5013ac[_0x5471b2(0xd5)]?.[_0x5471b2(0xd1)]():undefined;if(!_0x53ce95&&!isFreshCheck(_0x5013ac,_0x5e915a)){const _0x1df7fe=await getCliVersionPolicy();_0x53ce95=_0x1df7fe?.['stableVersion']?.['trim']()||undefined,await writeUpdateNoticeCache({..._0x5013ac,'checkedAt':_0x5e915a,'latest':_0x53ce95,'failed':!_0x53ce95});}if(!_0x53ce95||!a243_0x87b274[_0x5471b2(0xcc)](_0x52ee20)||!a243_0x87b274['valid'](_0x53ce95))return null;if(a243_0x87b274[_0x5471b2(0xd3)](_0x52ee20,_0x53ce95))return null;if(isRecentlyNotified(_0x5013ac,_0x53ce95,_0x5e915a))return null;const _0x1f734e=CLI_BIN_NAME+_0x5471b2(0xcb);return await writeUpdateNoticeCache({..._0x5013ac,'checkedAt':isFreshCheck(_0x5013ac,_0x5e915a)?_0x5013ac['checkedAt']:_0x5e915a,'latest':_0x53ce95,'failed':![],'lastNotifiedVersion':_0x53ce95,'lastNotifiedAt':_0x5e915a}),{'command':_0x1f734e,'current':_0x52ee20,'latest':_0x53ce95,'url':buildNpmVersionUrl(_0x53ce95),'message':CLI_BIN_NAME+'\x20'+_0x53ce95+_0x5471b2(0xd0)+_0x52ee20+_0x5471b2(0xd6)+_0x1f734e};}catch{return null;}}
@@ -1 +1 @@
1
- function a240_0x55c2(_0x18ed93,_0x32083d){_0x18ed93=_0x18ed93-0x1a0;var _0x2166cf=a240_0x2166();var _0x55c2fc=_0x2166cf[_0x18ed93];return _0x55c2fc;}(function(_0x5592f4,_0x3f86e4){var _0x47aec2=a240_0x55c2,_0x1c88cb=_0x5592f4();while(!![]){try{var _0x4c5c69=parseInt(_0x47aec2(0x1a4))/0x1*(-parseInt(_0x47aec2(0x1a2))/0x2)+parseInt(_0x47aec2(0x1a1))/0x3*(parseInt(_0x47aec2(0x1a5))/0x4)+parseInt(_0x47aec2(0x1a8))/0x5*(parseInt(_0x47aec2(0x1a7))/0x6)+-parseInt(_0x47aec2(0x1a3))/0x7+-parseInt(_0x47aec2(0x1a0))/0x8*(-parseInt(_0x47aec2(0x1ab))/0x9)+parseInt(_0x47aec2(0x1aa))/0xa*(-parseInt(_0x47aec2(0x1a9))/0xb)+parseInt(_0x47aec2(0x1a6))/0xc;if(_0x4c5c69===_0x3f86e4)break;else _0x1c88cb['push'](_0x1c88cb['shift']());}catch(_0x28e7d5){_0x1c88cb['push'](_0x1c88cb['shift']());}}}(a240_0x2166,0x246f2));function a240_0x2166(){var _0x2700d1=['4151wxCypo','32584iZxwvR','427932MoWovK','1042698XeuCxe','5EEnYwy','891187JPrgTn','10wJiWQF','198hMpLND','32408LZniMS','87nInJEw','26lXzeaf','1754102KOZRzp'];a240_0x2166=function(){return _0x2700d1;};return a240_0x2166();}import{VERSION}from'../generated/build-info.js';export function getCliVersion(){return VERSION;}
1
+ (function(_0x53352d,_0x1e8dfb){var _0x3fd993=a244_0x1413,_0x4a14dc=_0x53352d();while(!![]){try{var _0x4ce091=-parseInt(_0x3fd993(0x96))/0x1*(parseInt(_0x3fd993(0x92))/0x2)+parseInt(_0x3fd993(0x9a))/0x3+parseInt(_0x3fd993(0x97))/0x4+parseInt(_0x3fd993(0x91))/0x5+-parseInt(_0x3fd993(0x98))/0x6+-parseInt(_0x3fd993(0x99))/0x7*(parseInt(_0x3fd993(0x95))/0x8)+-parseInt(_0x3fd993(0x94))/0x9*(-parseInt(_0x3fd993(0x93))/0xa);if(_0x4ce091===_0x1e8dfb)break;else _0x4a14dc['push'](_0x4a14dc['shift']());}catch(_0x5c29c1){_0x4a14dc['push'](_0x4a14dc['shift']());}}}(a244_0x22a2,0x787eb));function a244_0x1413(_0x108b24,_0x34a915){_0x108b24=_0x108b24-0x91;var _0x22a293=a244_0x22a2();var _0x141321=_0x22a293[_0x108b24];return _0x141321;}import{VERSION}from'../generated/build-info.js';function a244_0x22a2(){var _0x122e75=['2362356lkhyCZ','4792295cuimrA','156388UZmgvt','10UfKqFU','253683NDyHlT','8CWlZRI','8eFaclg','2060432tqFJOn','1963494bDhueH','5900006qgSmAw'];a244_0x22a2=function(){return _0x122e75;};return a244_0x22a2();}export function getCliVersion(){return VERSION;}
@@ -1 +1 @@
1
- function a241_0x53f5(_0x29b711,_0x2cb263){_0x29b711=_0x29b711-0x18c;var _0x3832da=a241_0x3832();var _0x53f54e=_0x3832da[_0x29b711];return _0x53f54e;}(function(_0x367841,_0x1a2a05){var _0xd68072=a241_0x53f5,_0x331123=_0x367841();while(!![]){try{var _0x328ea6=-parseInt(_0xd68072(0x18f))/0x1+parseInt(_0xd68072(0x195))/0x2+parseInt(_0xd68072(0x194))/0x3+parseInt(_0xd68072(0x18c))/0x4*(parseInt(_0xd68072(0x192))/0x5)+-parseInt(_0xd68072(0x190))/0x6*(-parseInt(_0xd68072(0x18d))/0x7)+-parseInt(_0xd68072(0x193))/0x8*(-parseInt(_0xd68072(0x191))/0x9)+parseInt(_0xd68072(0x18e))/0xa*(-parseInt(_0xd68072(0x196))/0xb);if(_0x328ea6===_0x1a2a05)break;else _0x331123['push'](_0x331123['shift']());}catch(_0x52a675){_0x331123['push'](_0x331123['shift']());}}}(a241_0x3832,0x85db3));function a241_0x3832(){var _0x1672cc=['56imgFqa','1306146pETqXM','811538XINfTH','11tcYfpI','70668PtdvrC','21OJfONZ','18915290jlzJFD','1783ooWEkP','203316GDsthK','995697KxoWnO','205meIRbv'];a241_0x3832=function(){return _0x1672cc;};return a241_0x3832();}import{setActiveCookie,clearActiveCookie}from'../core/api-client.js';export async function withActiveCookie(_0x4d0cd5,_0x3c43fb){setActiveCookie(_0x4d0cd5);try{return await _0x3c43fb();}finally{clearActiveCookie();}}
1
+ function a245_0x3317(){var _0x60be6=['1122033QtMOHV','322566gDfXsm','713646UqOfpN','2208080QDSsUt','89306RkVnxA','919368lDNjlW','1170375JEFURp'];a245_0x3317=function(){return _0x60be6;};return a245_0x3317();}(function(_0x17ab67,_0x12f588){var _0x517a72=a245_0x56a0,_0x4f11df=_0x17ab67();while(!![]){try{var _0x3a03dc=parseInt(_0x517a72(0x185))/0x1+-parseInt(_0x517a72(0x183))/0x2+-parseInt(_0x517a72(0x181))/0x3+parseInt(_0x517a72(0x17f))/0x4+parseInt(_0x517a72(0x180))/0x5+parseInt(_0x517a72(0x182))/0x6+parseInt(_0x517a72(0x184))/0x7;if(_0x3a03dc===_0x12f588)break;else _0x4f11df['push'](_0x4f11df['shift']());}catch(_0x3946ab){_0x4f11df['push'](_0x4f11df['shift']());}}}(a245_0x3317,0x2ec66));import{setActiveCookie,clearActiveCookie}from'../core/api-client.js';function a245_0x56a0(_0x124250,_0x27f953){_0x124250=_0x124250-0x17f;var _0x3317cc=a245_0x3317();var _0x56a07a=_0x3317cc[_0x124250];return _0x56a07a;}export async function withActiveCookie(_0x538fe7,_0x4afdee){setActiveCookie(_0x538fe7);try{return await _0x4afdee();}finally{clearActiveCookie();}}
@@ -1 +1 @@
1
- function a242_0x1315(_0x72687e,_0x193980){_0x72687e=_0x72687e-0xc3;var _0x1482ea=a242_0x1482();var _0x131549=_0x1482ea[_0x72687e];return _0x131549;}(function(_0x3092b1,_0x547659){var _0x4319b4=a242_0x1315,_0x4f7073=_0x3092b1();while(!![]){try{var _0x2d77b3=parseInt(_0x4319b4(0xc8))/0x1+-parseInt(_0x4319b4(0xcd))/0x2*(-parseInt(_0x4319b4(0xc6))/0x3)+-parseInt(_0x4319b4(0xca))/0x4*(-parseInt(_0x4319b4(0xc7))/0x5)+-parseInt(_0x4319b4(0xc9))/0x6*(-parseInt(_0x4319b4(0xcb))/0x7)+-parseInt(_0x4319b4(0xd0))/0x8*(-parseInt(_0x4319b4(0xc3))/0x9)+parseInt(_0x4319b4(0xc5))/0xa+-parseInt(_0x4319b4(0xcc))/0xb*(parseInt(_0x4319b4(0xc4))/0xc);if(_0x2d77b3===_0x547659)break;else _0x4f7073['push'](_0x4f7073['shift']());}catch(_0x395178){_0x4f7073['push'](_0x4f7073['shift']());}}}(a242_0x1482,0x8a895));function a242_0x1482(){var _0xcad727=['53195McitDw','1103512mGWvYK','8688BUJreK','40RVoyNO','2968JfFiGJ','7733AmcnVR','2Lekxui','stderr','write','4348976LDnpId','9iyqxnI','46344lBilaW','4022000vLfZOC','1538265QMpysp'];a242_0x1482=function(){return _0xcad727;};return a242_0x1482();}export function writeCliSideChannelLine(_0x506d05){var _0x12d33b=a242_0x1315;process[_0x12d33b(0xce)][_0x12d33b(0xcf)](_0x506d05+'\x0a');}
1
+ function a246_0x42a0(_0x3e1d84,_0x5a4558){_0x3e1d84=_0x3e1d84-0x18a;var _0x5018e0=a246_0x5018();var _0x42a015=_0x5018e0[_0x3e1d84];return _0x42a015;}(function(_0x3e7b1c,_0x45b5d8){var _0xd46e9b=a246_0x42a0,_0x39c995=_0x3e7b1c();while(!![]){try{var _0x53f6db=-parseInt(_0xd46e9b(0x191))/0x1+-parseInt(_0xd46e9b(0x18c))/0x2*(parseInt(_0xd46e9b(0x18d))/0x3)+-parseInt(_0xd46e9b(0x18f))/0x4+parseInt(_0xd46e9b(0x18b))/0x5+parseInt(_0xd46e9b(0x18e))/0x6+parseInt(_0xd46e9b(0x18a))/0x7+parseInt(_0xd46e9b(0x192))/0x8;if(_0x53f6db===_0x45b5d8)break;else _0x39c995['push'](_0x39c995['shift']());}catch(_0x154bf3){_0x39c995['push'](_0x39c995['shift']());}}}(a246_0x5018,0x1ff8c));function a246_0x5018(){var _0x1a6a7b=['26061POLltF','355405ayPiHF','2LidSKQ','461910EftcMk','1332240PHboCy','766808mLEarH','write','41146CrHotE','1767440ZqUQEh','stderr'];a246_0x5018=function(){return _0x1a6a7b;};return a246_0x5018();}export function writeCliSideChannelLine(_0x3354c0){var _0x2300f5=a246_0x42a0;process[_0x2300f5(0x193)][_0x2300f5(0x190)](_0x3354c0+'\x0a');}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lovrabet/rabetbase-cli",
3
- "version": "2.3.6",
3
+ "version": "2.3.7-beta.2",
4
4
  "description": "Developer CLI for Lovrabet apps, datasets, pages, SQL, BFF, database connections, skills, and AI agent workflows.",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "keywords": [