@lovrabet/rabetbase-cli 2.3.10 → 2.3.11-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (260) hide show
  1. package/lib/api/api-doc.js +1 -1
  2. package/lib/api/fetch-model-list.js +1 -1
  3. package/lib/api/generate-api-file.js +1 -1
  4. package/lib/auth/auth-server-ui.js +1 -1
  5. package/lib/auth/auth-server.js +1 -1
  6. package/lib/auth/constant.js +1 -1
  7. package/lib/auth/get-cookie.js +1 -1
  8. package/lib/auth/get-session-user.js +1 -1
  9. package/lib/auth/is-session-valid.js +1 -1
  10. package/lib/auth/login-success-html.js +1 -1
  11. package/lib/auth/logout.js +1 -1
  12. package/lib/cli-flags.js +1 -1
  13. package/lib/cli.js +1 -1
  14. package/lib/commands/api/generate.js +1 -1
  15. package/lib/commands/api/index.js +1 -1
  16. package/lib/commands/api/list.js +1 -1
  17. package/lib/commands/api/pull.js +1 -1
  18. package/lib/commands/api/shared.js +1 -1
  19. package/lib/commands/app/add.js +1 -1
  20. package/lib/commands/app/index.js +1 -1
  21. package/lib/commands/app/list.js +1 -1
  22. package/lib/commands/app/remote-directory.js +1 -1
  23. package/lib/commands/app/remove.js +1 -1
  24. package/lib/commands/app/shared.js +1 -1
  25. package/lib/commands/app-config/delete.js +1 -1
  26. package/lib/commands/app-config/get.js +1 -1
  27. package/lib/commands/app-config/index.js +1 -1
  28. package/lib/commands/app-config/list.js +1 -1
  29. package/lib/commands/app-config/set.js +1 -1
  30. package/lib/commands/app-config/shared.js +1 -1
  31. package/lib/commands/auth/index.js +1 -1
  32. package/lib/commands/bff/create.js +1 -1
  33. package/lib/commands/bff/delete.js +1 -1
  34. package/lib/commands/bff/detail.js +1 -1
  35. package/lib/commands/bff/index.js +1 -1
  36. package/lib/commands/bff/list.js +1 -1
  37. package/lib/commands/bff/pull.js +1 -1
  38. package/lib/commands/bff/push.js +1 -1
  39. package/lib/commands/bff/status.js +1 -1
  40. package/lib/commands/cli-skill/index.js +1 -1
  41. package/lib/commands/cli-update.js +1 -1
  42. package/lib/commands/codegen/index.js +1 -1
  43. package/lib/commands/codegen/sdk.js +1 -1
  44. package/lib/commands/codegen/sql.js +1 -1
  45. package/lib/commands/common/app-registry.js +1 -1
  46. package/lib/commands/common/app-selector.js +1 -1
  47. package/lib/commands/common/async-task.js +1 -1
  48. package/lib/commands/common/dry-run.js +1 -1
  49. package/lib/commands/common/flags.js +1 -1
  50. package/lib/commands/common/local-file.js +1 -1
  51. package/lib/commands/common/validate.js +1 -1
  52. package/lib/commands/config/get.js +1 -1
  53. package/lib/commands/config/index.js +1 -1
  54. package/lib/commands/config/list.js +1 -1
  55. package/lib/commands/config/set.js +1 -1
  56. package/lib/commands/config/shared.js +1 -1
  57. package/lib/commands/data/filter.js +1 -1
  58. package/lib/commands/data/getOne.js +1 -1
  59. package/lib/commands/data/index.js +1 -1
  60. package/lib/commands/data/shared.js +1 -1
  61. package/lib/commands/dataset/business-group-update.js +1 -1
  62. package/lib/commands/dataset/capability.js +1 -1
  63. package/lib/commands/dataset/delete.js +1 -1
  64. package/lib/commands/dataset/detail.js +1 -1
  65. package/lib/commands/dataset/extend-update.js +1 -1
  66. package/lib/commands/dataset/field-update.js +1 -1
  67. package/lib/commands/dataset/generate.js +1 -1
  68. package/lib/commands/dataset/index.js +1 -1
  69. package/lib/commands/dataset/list.js +1 -1
  70. package/lib/commands/dataset/operations.js +1 -1
  71. package/lib/commands/dataset/relation-audit.js +1 -1
  72. package/lib/commands/dataset/relation-create.js +1 -1
  73. package/lib/commands/dataset/relation-delete.js +1 -1
  74. package/lib/commands/dataset/relation-shared.js +1 -1
  75. package/lib/commands/dataset/relation-update.js +1 -1
  76. package/lib/commands/dataset/relations.js +1 -1
  77. package/lib/commands/dataset/rename.js +1 -1
  78. package/lib/commands/dataset/restore.js +1 -1
  79. package/lib/commands/db/analysis-batching.js +1 -1
  80. package/lib/commands/db/analyze-batch-plan.js +1 -1
  81. package/lib/commands/db/analyze-cancel.js +1 -1
  82. package/lib/commands/db/analyze-start.js +1 -1
  83. package/lib/commands/db/analyze-status.js +1 -1
  84. package/lib/commands/db/create.js +1 -1
  85. package/lib/commands/db/delete.js +1 -1
  86. package/lib/commands/db/detail.js +1 -1
  87. package/lib/commands/db/diff.js +1 -1
  88. package/lib/commands/db/index.js +1 -1
  89. package/lib/commands/db/list.js +1 -1
  90. package/lib/commands/db/shared.js +1 -1
  91. package/lib/commands/db/tables.js +1 -1
  92. package/lib/commands/db/test.js +1 -1
  93. package/lib/commands/db/update.js +1 -1
  94. package/lib/commands/doctor.js +1 -1
  95. package/lib/commands/file/index.js +1 -1
  96. package/lib/commands/init/index.js +1 -1
  97. package/lib/commands/issue/index.js +1 -1
  98. package/lib/commands/issue/nudge.js +1 -1
  99. package/lib/commands/issue/report.js +1 -1
  100. package/lib/commands/issue/shared.js +1 -1
  101. package/lib/commands/logs/index.js +1 -1
  102. package/lib/commands/menu/delete.js +1 -1
  103. package/lib/commands/menu/external-link-create.js +1 -1
  104. package/lib/commands/menu/group-create.js +1 -1
  105. package/lib/commands/menu/group-update.js +1 -1
  106. package/lib/commands/menu/index.js +1 -1
  107. package/lib/commands/menu/list.js +1 -1
  108. package/lib/commands/menu/move.js +1 -0
  109. package/lib/commands/menu/regroup-start.js +1 -1
  110. package/lib/commands/menu/shared/compare-table.js +1 -1
  111. package/lib/commands/menu/shared/delete-plan.js +1 -1
  112. package/lib/commands/menu/shared/facts.js +1 -1
  113. package/lib/commands/menu/shared/index.js +1 -1
  114. package/lib/commands/menu/shared/inquirer.js +1 -1
  115. package/lib/commands/menu/shared/local-pages.js +1 -1
  116. package/lib/commands/menu/shared/logic.js +1 -1
  117. package/lib/commands/menu/shared/mutations.js +1 -1
  118. package/lib/commands/menu/shared/service.js +1 -1
  119. package/lib/commands/menu/shared/sync-core.js +1 -1
  120. package/lib/commands/menu/shared/update-core.js +1 -1
  121. package/lib/commands/menu/shared/valid-url.js +1 -1
  122. package/lib/commands/menu/sync.js +1 -1
  123. package/lib/commands/menu/update.js +1 -1
  124. package/lib/commands/notification/config-list.js +1 -1
  125. package/lib/commands/notification/index.js +1 -1
  126. package/lib/commands/page/generate-start.js +1 -1
  127. package/lib/commands/page/generate-status.js +1 -1
  128. package/lib/commands/page/index.js +1 -1
  129. package/lib/commands/page/pull.js +1 -1
  130. package/lib/commands/page/push.js +1 -1
  131. package/lib/commands/page/relation-audit.js +1 -1
  132. package/lib/commands/page/shared.js +1 -1
  133. package/lib/commands/page/standard-page-status.js +1 -1
  134. package/lib/commands/page/sync.js +1 -1
  135. package/lib/commands/permit/index.js +1 -1
  136. package/lib/commands/permit/page-get.js +1 -1
  137. package/lib/commands/permit/page-set.js +1 -1
  138. package/lib/commands/permit/role-apis-set.js +1 -1
  139. package/lib/commands/permit/role-menus-set.js +1 -1
  140. package/lib/commands/permit/role-menus.js +1 -1
  141. package/lib/commands/permit/shared.js +1 -1
  142. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  143. package/lib/commands/project/create/format-elapsed.js +1 -1
  144. package/lib/commands/project/create/main.js +1 -1
  145. package/lib/commands/project/create/non-interactive.js +1 -1
  146. package/lib/commands/project/create/project-template-path.js +1 -1
  147. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  148. package/lib/commands/project/create/use-format-code.js +1 -1
  149. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  150. package/lib/commands/project/index.js +1 -1
  151. package/lib/commands/project/init.js +1 -1
  152. package/lib/commands/project/upgrade.js +1 -1
  153. package/lib/commands/registry.js +1 -1
  154. package/lib/commands/role/create.js +1 -1
  155. package/lib/commands/role/delete.js +1 -1
  156. package/lib/commands/role/detail.js +1 -1
  157. package/lib/commands/role/index.js +1 -1
  158. package/lib/commands/role/list.js +1 -1
  159. package/lib/commands/role/shared.js +1 -1
  160. package/lib/commands/role/update.js +1 -1
  161. package/lib/commands/role/user-add.js +1 -1
  162. package/lib/commands/role/user-remove.js +1 -1
  163. package/lib/commands/role/user-resolve.js +1 -1
  164. package/lib/commands/run/index.js +1 -1
  165. package/lib/commands/schema.js +1 -1
  166. package/lib/commands/sql/create.js +1 -1
  167. package/lib/commands/sql/delete.js +1 -1
  168. package/lib/commands/sql/detail.js +1 -1
  169. package/lib/commands/sql/exec.js +1 -1
  170. package/lib/commands/sql/index.js +1 -1
  171. package/lib/commands/sql/list.js +1 -1
  172. package/lib/commands/sql/pull.js +1 -1
  173. package/lib/commands/sql/push.js +1 -1
  174. package/lib/commands/sql/save.js +1 -1
  175. package/lib/commands/sql/shared.js +1 -1
  176. package/lib/commands/sql/status.js +1 -1
  177. package/lib/commands/sql/validate.js +1 -1
  178. package/lib/commands/task/index.js +1 -1
  179. package/lib/commands/task/status.js +1 -1
  180. package/lib/commands/workspace/add.js +1 -1
  181. package/lib/commands/workspace/index.js +1 -1
  182. package/lib/commands/workspace/remove.js +1 -1
  183. package/lib/config/schema.js +1 -1
  184. package/lib/constant/cdn.js +1 -1
  185. package/lib/constant/cli.js +1 -1
  186. package/lib/constant/defaults.js +1 -1
  187. package/lib/constant/domain.js +1 -1
  188. package/lib/constant/env.js +1 -1
  189. package/lib/constant/output.js +1 -1
  190. package/lib/constant/paths.js +1 -1
  191. package/lib/constant/risk.js +1 -1
  192. package/lib/context/app-resolver.js +1 -1
  193. package/lib/context/auth-resolver.js +1 -1
  194. package/lib/context/config-loader.js +1 -1
  195. package/lib/context.js +1 -1
  196. package/lib/core/alias-resolver.js +1 -1
  197. package/lib/core/api-client.js +1 -1
  198. package/lib/core/bff/config.js +1 -1
  199. package/lib/core/bff/file-system.js +1 -1
  200. package/lib/core/bff/hash.js +1 -1
  201. package/lib/core/bff/lock.js +1 -1
  202. package/lib/core/bff/utils.js +1 -1
  203. package/lib/core/db-resolver.js +1 -1
  204. package/lib/core/page/file-system.js +1 -1
  205. package/lib/core/page/hash.js +1 -1
  206. package/lib/core/page/lock.js +1 -1
  207. package/lib/core/sql-index-auditor.js +1 -1
  208. package/lib/core/sql-sync/config.js +1 -1
  209. package/lib/core/sql-sync/file-system.js +1 -1
  210. package/lib/core/sql-sync/hash.js +1 -1
  211. package/lib/core/sql-sync/lock.js +1 -1
  212. package/lib/core/sql-sync/utils.js +1 -1
  213. package/lib/core/sql-validator.js +1 -1
  214. package/lib/errors.js +1 -1
  215. package/lib/framework/build-all-flags.js +1 -1
  216. package/lib/framework/error-output.js +1 -1
  217. package/lib/framework/explicit-yes.js +1 -1
  218. package/lib/framework/flags.js +1 -1
  219. package/lib/framework/help.js +1 -1
  220. package/lib/framework/index.js +1 -1
  221. package/lib/framework/output.js +1 -1
  222. package/lib/framework/response.js +1 -1
  223. package/lib/framework/runner-alias.js +1 -1
  224. package/lib/framework/runner.js +1 -1
  225. package/lib/framework/schema-export.js +1 -1
  226. package/lib/framework/types.js +1 -1
  227. package/lib/generated/build-info.js +1 -1
  228. package/lib/help.js +1 -1
  229. package/lib/skills/main.js +1 -1
  230. package/lib/skills/npx-skills-add.js +1 -1
  231. package/lib/telemetry/cli-command-trace.js +1 -1
  232. package/lib/telemetry/cli-help-trace.js +1 -1
  233. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  234. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  235. package/lib/telemetry/send-cli-trace-log.js +1 -1
  236. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  237. package/lib/utils/ai_config.js +1 -1
  238. package/lib/utils/apply-jq-filter.js +1 -1
  239. package/lib/utils/cdn-config.js +1 -1
  240. package/lib/utils/check-sdk-version.js +1 -1
  241. package/lib/utils/cli-version-check.js +1 -1
  242. package/lib/utils/cli-version-policy.js +1 -1
  243. package/lib/utils/config.js +1 -1
  244. package/lib/utils/copy-directory.js +1 -1
  245. package/lib/utils/entity-with-id.js +1 -1
  246. package/lib/utils/file-utils.js +1 -1
  247. package/lib/utils/guides-cdn.js +1 -1
  248. package/lib/utils/http-client.js +1 -1
  249. package/lib/utils/is-non-interactive.js +1 -1
  250. package/lib/utils/logger.js +1 -1
  251. package/lib/utils/params.js +1 -1
  252. package/lib/utils/platform.js +1 -1
  253. package/lib/utils/rules-cdn.js +1 -1
  254. package/lib/utils/sleep.js +1 -1
  255. package/lib/utils/template-replacer.js +1 -1
  256. package/lib/utils/update-notice.js +1 -1
  257. package/lib/utils/version.js +1 -1
  258. package/lib/utils/with-active-cookie.js +1 -1
  259. package/lib/utils/write-cli-side-channel.js +1 -1
  260. package/package.json +1 -1
@@ -1 +1 @@
1
- function a248_0x2006(){const _0x40e5aa=['340vRKCIy','string','72340PBNnfe','528786TdpUxH','object','1252608uWzxtN','number','8779416nzVmoJ','4477270UNNDUd','108NBNVlt','trim','794362ASoiBb','2LoYFmq','isFinite','1647016ptWdAh'];a248_0x2006=function(){return _0x40e5aa;};return a248_0x2006();}function a248_0x5e56(_0x17d7aa,_0x1efb8a){_0x17d7aa=_0x17d7aa-0x178;const _0x200657=a248_0x2006();let _0x5e564f=_0x200657[_0x17d7aa];return _0x5e564f;}(function(_0x2f69f7,_0x3d028c){const _0x233112=a248_0x5e56,_0x5f33b9=_0x2f69f7();while(!![]){try{const _0x2ce5ff=parseInt(_0x233112(0x17c))/0x1*(-parseInt(_0x233112(0x17b))/0x2)+-parseInt(_0x233112(0x184))/0x3+-parseInt(_0x233112(0x17e))/0x4+parseInt(_0x233112(0x181))/0x5*(-parseInt(_0x233112(0x179))/0x6)+-parseInt(_0x233112(0x178))/0x7+parseInt(_0x233112(0x186))/0x8+-parseInt(_0x233112(0x182))/0x9*(-parseInt(_0x233112(0x17f))/0xa);if(_0x2ce5ff===_0x3d028c)break;else _0x5f33b9['push'](_0x5f33b9['shift']());}catch(_0x31b1f2){_0x5f33b9['push'](_0x5f33b9['shift']());}}}(a248_0x2006,0x8b7f1));function toFiniteNumber(_0x2b5fa9){const _0x438653=a248_0x5e56;if(typeof _0x2b5fa9===_0x438653(0x185)&&Number[_0x438653(0x17d)](_0x2b5fa9))return _0x2b5fa9;if(typeof _0x2b5fa9===_0x438653(0x180)){const _0x5751ec=_0x2b5fa9[_0x438653(0x17a)]();if(!_0x5751ec)return undefined;const _0x3920e4=Number(_0x5751ec);if(Number[_0x438653(0x17d)](_0x3920e4))return _0x3920e4;}return undefined;}export function normalizeEntityWithIdResponse(_0x36503d){const _0x1675d1=a248_0x5e56,_0x385919=toFiniteNumber(_0x36503d);if(_0x385919!==undefined)return{'id':_0x385919,'entity':{'id':_0x385919}};if(!_0x36503d||typeof _0x36503d!==_0x1675d1(0x183))return{'id':undefined,'entity':{}};const _0xf62d3a={..._0x36503d},_0x4bed89=toFiniteNumber(_0xf62d3a['id']);return _0x4bed89!==undefined&&(_0xf62d3a['id']=_0x4bed89),{'id':_0x4bed89,'entity':_0xf62d3a};}
1
+ function a249_0xcbf2(_0x259238,_0x239931){_0x259238=_0x259238-0x1e1;const _0x282794=a249_0x2827();let _0xcbf288=_0x282794[_0x259238];return _0xcbf288;}function a249_0x2827(){const _0x5222bb=['number','1345509yAvrAy','isFinite','699116YrQlEz','trim','string','151984ZVLpPU','76213LOwBIY','48kyNgPo','523970cYYTSh','1757620wVYDLT','126588IXktZl'];a249_0x2827=function(){return _0x5222bb;};return a249_0x2827();}(function(_0x523e6a,_0x5cb8d1){const _0x20b4a3=a249_0xcbf2,_0x2dae84=_0x523e6a();while(!![]){try{const _0x403955=-parseInt(_0x20b4a3(0x1e8))/0x1+parseInt(_0x20b4a3(0x1ea))/0x2+parseInt(_0x20b4a3(0x1e2))/0x3+parseInt(_0x20b4a3(0x1e4))/0x4+-parseInt(_0x20b4a3(0x1eb))/0x5+-parseInt(_0x20b4a3(0x1ec))/0x6+parseInt(_0x20b4a3(0x1e7))/0x7*(-parseInt(_0x20b4a3(0x1e9))/0x8);if(_0x403955===_0x5cb8d1)break;else _0x2dae84['push'](_0x2dae84['shift']());}catch(_0x5b0a19){_0x2dae84['push'](_0x2dae84['shift']());}}}(a249_0x2827,0x4abf0));function toFiniteNumber(_0x497fb5){const _0x2f1f66=a249_0xcbf2;if(typeof _0x497fb5===_0x2f1f66(0x1e1)&&Number['isFinite'](_0x497fb5))return _0x497fb5;if(typeof _0x497fb5===_0x2f1f66(0x1e6)){const _0x2ea0ac=_0x497fb5[_0x2f1f66(0x1e5)]();if(!_0x2ea0ac)return undefined;const _0x598c06=Number(_0x2ea0ac);if(Number[_0x2f1f66(0x1e3)](_0x598c06))return _0x598c06;}return undefined;}export function normalizeEntityWithIdResponse(_0x10dd82){const _0x588850=toFiniteNumber(_0x10dd82);if(_0x588850!==undefined)return{'id':_0x588850,'entity':{'id':_0x588850}};if(!_0x10dd82||typeof _0x10dd82!=='object')return{'id':undefined,'entity':{}};const _0x456575={..._0x10dd82},_0x520803=toFiniteNumber(_0x456575['id']);return _0x520803!==undefined&&(_0x456575['id']=_0x520803),{'id':_0x520803,'entity':_0x456575};}
@@ -1 +1 @@
1
- (function(_0x226226,_0x59a1f0){const _0x4869d6=a249_0x25ce,_0x227cd1=_0x226226();while(!![]){try{const _0x369fce=-parseInt(_0x4869d6(0x96))/0x1*(-parseInt(_0x4869d6(0x98))/0x2)+parseInt(_0x4869d6(0x97))/0x3+-parseInt(_0x4869d6(0x9b))/0x4*(-parseInt(_0x4869d6(0x95))/0x5)+-parseInt(_0x4869d6(0x9f))/0x6*(parseInt(_0x4869d6(0x9a))/0x7)+parseInt(_0x4869d6(0x9d))/0x8*(parseInt(_0x4869d6(0x99))/0x9)+-parseInt(_0x4869d6(0x9e))/0xa+parseInt(_0x4869d6(0x9c))/0xb*(-parseInt(_0x4869d6(0x94))/0xc);if(_0x369fce===_0x59a1f0)break;else _0x227cd1['push'](_0x227cd1['shift']());}catch(_0x4f95b3){_0x227cd1['push'](_0x227cd1['shift']());}}}(a249_0x1239,0x9e5af));function a249_0x25ce(_0x111789,_0x37dc71){_0x111789=_0x111789-0x93;const _0x123906=a249_0x1239();let _0x25ce2b=_0x123906[_0x111789];return _0x25ce2b;}function a249_0x1239(){const _0x259916=['5771380omqtsl','12zUWMKl','isDirectory','5061864JoCXNc','5312030RVsAXi','196894Mwawvh','3340686WIlpcV','8arYxYC','2105307YkJlTp','1156547GgilrC','4crmMyL','55yIpFbP','24yZxNSq'];a249_0x1239=function(){return _0x259916;};return a249_0x1239();}import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';import{join}from'node:path';export async function copyDir(_0x45d4c3,_0x12a12f){const _0x22e320=a249_0x25ce,_0xdb0f78=statSync(_0x45d4c3);if(_0xdb0f78[_0x22e320(0x93)]()){!existsSync(_0x12a12f)&&mkdirSync(_0x12a12f,{'recursive':!![]});const _0x23d521=readdirSync(_0x45d4c3);for(const _0x21d3ef of _0x23d521){await copyDir(join(_0x45d4c3,_0x21d3ef),join(_0x12a12f,_0x21d3ef));}}else copyFileSync(_0x45d4c3,_0x12a12f);}export function ensureDir(_0x16ac7d){!existsSync(_0x16ac7d)&&mkdirSync(_0x16ac7d,{'recursive':!![]});}export function pathExists(_0x5e4697){return existsSync(_0x5e4697);}
1
+ (function(_0x59cd1b,_0x1f73bb){const _0x6f3e=a250_0x4735,_0x253c21=_0x59cd1b();while(!![]){try{const _0x300374=parseInt(_0x6f3e(0xa8))/0x1+parseInt(_0x6f3e(0xab))/0x2+parseInt(_0x6f3e(0xaa))/0x3+parseInt(_0x6f3e(0xa4))/0x4*(parseInt(_0x6f3e(0xa6))/0x5)+parseInt(_0x6f3e(0xad))/0x6+-parseInt(_0x6f3e(0xac))/0x7+-parseInt(_0x6f3e(0xa7))/0x8*(parseInt(_0x6f3e(0xa5))/0x9);if(_0x300374===_0x1f73bb)break;else _0x253c21['push'](_0x253c21['shift']());}catch(_0x30f1a8){_0x253c21['push'](_0x253c21['shift']());}}}(a250_0x3507,0xf0c12));import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';import{join}from'node:path';export async function copyDir(_0x3770ae,_0x1582b6){const _0x3b270a=a250_0x4735,_0x67a9ea=statSync(_0x3770ae);if(_0x67a9ea[_0x3b270a(0xa9)]()){!existsSync(_0x1582b6)&&mkdirSync(_0x1582b6,{'recursive':!![]});const _0x663e05=readdirSync(_0x3770ae);for(const _0x2cd5dc of _0x663e05){await copyDir(join(_0x3770ae,_0x2cd5dc),join(_0x1582b6,_0x2cd5dc));}}else copyFileSync(_0x3770ae,_0x1582b6);}export function ensureDir(_0x2845ac){!existsSync(_0x2845ac)&&mkdirSync(_0x2845ac,{'recursive':!![]});}function a250_0x4735(_0x4b55cf,_0x55fac4){_0x4b55cf=_0x4b55cf-0xa4;const _0x3507e3=a250_0x3507();let _0x4735e7=_0x3507e3[_0x4b55cf];return _0x4735e7;}function a250_0x3507(){const _0x4dac5c=['193685dGIJgS','isDirectory','3900813yFgLWA','3196148ZGUmcT','7670299SSgrnc','3454068rYNxRc','468RwzNdh','31091958QiuxKs','79865ZHwmMM','8yDtPzj'];a250_0x3507=function(){return _0x4dac5c;};return a250_0x3507();}export function pathExists(_0x224ef3){return existsSync(_0x224ef3);}
@@ -1 +1 @@
1
- const a250_0x4fc0c8=a250_0x3364;(function(_0x4f9bdc,_0x34dbdd){const _0x5119cd=a250_0x3364,_0x424272=_0x4f9bdc();while(!![]){try{const _0x4deb47=parseInt(_0x5119cd(0xbf))/0x1*(-parseInt(_0x5119cd(0xe0))/0x2)+-parseInt(_0x5119cd(0xdf))/0x3+parseInt(_0x5119cd(0xd7))/0x4+-parseInt(_0x5119cd(0xdc))/0x5+-parseInt(_0x5119cd(0xcd))/0x6*(-parseInt(_0x5119cd(0xc8))/0x7)+-parseInt(_0x5119cd(0xc7))/0x8*(parseInt(_0x5119cd(0xc6))/0x9)+-parseInt(_0x5119cd(0xc1))/0xa*(-parseInt(_0x5119cd(0xde))/0xb);if(_0x4deb47===_0x34dbdd)break;else _0x424272['push'](_0x424272['shift']());}catch(_0x27e1e8){_0x424272['push'](_0x424272['shift']());}}}(a250_0x44d4,0xcf896));import{mkdirSync,writeFileSync}from'node:fs';import{dirname,join}from'node:path';import{homedir}from'node:os';function a250_0x3364(_0x599e49,_0x48bb45){_0x599e49=_0x599e49-0xbe;const _0x44d489=a250_0x44d4();let _0x3364a5=_0x44d489[_0x599e49];return _0x3364a5;}import{getTemplateBaseUrl}from'../utils/config.js';function getGuidesCdnUrl(){const _0x51042d=getTemplateBaseUrl();return _0x51042d+'/skills/guides.json';}const CACHE_DIR=join(homedir(),a250_0x4fc0c8(0xd8),'cache');export async function fetchGuidesFromCDN(){const _0x13a3d5=a250_0x4fc0c8,_0x23a955=getGuidesCdnUrl(),_0x333e95=await fetch(_0x23a955,{'headers':{'Accept':_0x13a3d5(0xc0)}});if(!_0x333e95['ok'])throw new Error(_0x13a3d5(0xda)+_0x333e95[_0x13a3d5(0xc5)]+'\x20'+_0x333e95['statusText']);const _0x42ba66=await _0x333e95[_0x13a3d5(0xcc)]();if(!_0x42ba66[_0x13a3d5(0xcf)]||typeof _0x42ba66[_0x13a3d5(0xcf)]!==_0x13a3d5(0xd4))throw new Error(_0x13a3d5(0xd9));return _0x42ba66;}export function writeGuidesToProject(_0x4fdedc,_0x38be77,_0x5c789d=a250_0x4fc0c8(0xc2),_0x1034fe){const _0x216006=a250_0x4fc0c8,_0x1a7476=join(_0x38be77,_0x5c789d);mkdirSync(_0x1a7476,{'recursive':!![]});for(const [_0x286dea,_0x4ce2df]of Object[_0x216006(0xdb)](_0x4fdedc[_0x216006(0xcf)])){let _0x1eb568=_0x4ce2df[_0x216006(0xd0)];_0x4ce2df['lastUpdated']&&(_0x1eb568=appendUpdateTime(_0x1eb568,_0x4ce2df[_0x216006(0xce)])),writeFileSync(join(_0x1a7476,_0x286dea+'.md'),_0x1eb568,_0x216006(0xc9));}}export function appendUpdateTime(_0x4c1b3d,_0x1bc625){const _0x30d283=a250_0x4fc0c8;return _0x4c1b3d=_0x4c1b3d[_0x30d283(0xc4)](/\n*>更新时间:.*$/m,''),_0x4c1b3d[_0x30d283(0xc3)]()+(_0x30d283(0xd1)+_0x1bc625);}export function getSkillTemplate(_0x3ffd85){const _0x8bb687=a250_0x4fc0c8;return _0x3ffd85[_0x8bb687(0xd2)]?.[_0x8bb687(0xd0)]||'';}function a250_0x44d4(){const _0x489bcd=['10224LtlBEh','7uEEIoJ','utf-8','push','keys','json','5494530vexHnk','lastUpdated','guides','content','\x0a\x0a>更新时间:','skillTemplate','extendContent','object','join','length','1594528PlUQCg','.lovrabet','CDN\x20返回数据格式错误','CDN\x20请求失败:\x20','entries','4787535ejKlPZ','CDN\x20数据中缺少\x20skillTemplate','30335041ikWzNt','1908591kIctwe','37244UdolJn','path','37QOYbES','application/json','10JWibdc','.lovrabet/skill/guides','trimEnd','replace','status','6615MeDcaD'];a250_0x44d4=function(){return _0x489bcd;};return a250_0x44d4();}export function appendExtendContents(_0x2e9155,_0x39c9ae,_0x218242){const _0x3aa14e=a250_0x4fc0c8,_0x1abd4a=[];for(const [,_0x366201]of Object[_0x3aa14e(0xdb)](_0x39c9ae[_0x3aa14e(0xcf)])){_0x366201[_0x3aa14e(0xd3)]&&_0x1abd4a[_0x3aa14e(0xca)](_0x366201[_0x3aa14e(0xd3)]['trimEnd']());}if(_0x1abd4a[_0x3aa14e(0xd6)]===0x0)return _0x2e9155;return _0x2e9155[_0x3aa14e(0xc3)]()+'\x0a\x0a'+_0x1abd4a[_0x3aa14e(0xd5)]('\x0a\x0a')+'\x0a';}export function writeSkillFile(_0x5b72a2,_0x3d0586,_0x3b9136){const _0x572db1=a250_0x4fc0c8,_0x43f202=getSkillTemplate(_0x5b72a2);if(!_0x43f202)throw new Error(_0x572db1(0xdd));const _0x322c36=dirname(_0x3d0586);mkdirSync(_0x322c36,{'recursive':!![]});let _0x2bf6fe=_0x43f202[_0x572db1(0xc4)](/\{\{IDE_NAME\}\}/g,_0x3b9136);_0x2bf6fe=appendExtendContents(_0x2bf6fe,_0x5b72a2),_0x5b72a2[_0x572db1(0xd2)][_0x572db1(0xce)]&&(_0x2bf6fe=appendUpdateTime(_0x2bf6fe,_0x5b72a2[_0x572db1(0xd2)][_0x572db1(0xce)])),writeFileSync(_0x3d0586,_0x2bf6fe,'utf-8');}export async function installGuides(_0x223763){const _0x16b6ec=a250_0x4fc0c8,_0x3c5f3f=await fetchGuidesFromCDN();return writeGuidesToProject(_0x3c5f3f,_0x223763),Object[_0x16b6ec(0xcb)](_0x3c5f3f[_0x16b6ec(0xcf)])['length'];}export function getGuidesSummary(_0x47e8ad){const _0x16a05c=a250_0x4fc0c8;return Object['entries'](_0x47e8ad[_0x16a05c(0xcf)])['map'](([_0x4ed811,_0x3ee26])=>({'key':_0x4ed811,'title':_0x3ee26['title'],'path':_0x3ee26[_0x16a05c(0xbe)]}));}
1
+ const a251_0x1106aa=a251_0x5d32;(function(_0x36abdb,_0x5f27c5){const _0x2c889a=a251_0x5d32,_0x4c2477=_0x36abdb();while(!![]){try{const _0x28d856=-parseInt(_0x2c889a(0x1d3))/0x1*(parseInt(_0x2c889a(0x1bc))/0x2)+-parseInt(_0x2c889a(0x1d8))/0x3*(-parseInt(_0x2c889a(0x1b9))/0x4)+parseInt(_0x2c889a(0x1d7))/0x5+-parseInt(_0x2c889a(0x1c1))/0x6*(-parseInt(_0x2c889a(0x1c7))/0x7)+parseInt(_0x2c889a(0x1c6))/0x8*(-parseInt(_0x2c889a(0x1b6))/0x9)+parseInt(_0x2c889a(0x1ba))/0xa+parseInt(_0x2c889a(0x1cd))/0xb;if(_0x28d856===_0x5f27c5)break;else _0x4c2477['push'](_0x4c2477['shift']());}catch(_0x36c598){_0x4c2477['push'](_0x4c2477['shift']());}}}(a251_0x14bc,0xd6787));function a251_0x14bc(){const _0x16814a=['entries','object','replace','.lovrabet/skill/guides','8TIZAaB','51310uKdXIm','CDN\x20数据中缺少\x20skillTemplate','statusText','content','skillTemplate','cache','438097zRKwog','join','CDN\x20请求失败:\x20','status','map','\x0a\x0a>更新时间:','247465VyJWJm','json','keys','.lovrabet','299085dsqIBY','24dcwzmZ','guides','push','15184647PrDnwQ','extendContent','application/json','127936qppdcE','10484880CLpXjY','length','4OTcDdx','title','utf-8','lastUpdated','trimEnd','1356Yaodxg'];a251_0x14bc=function(){return _0x16814a;};return a251_0x14bc();}import{mkdirSync,writeFileSync}from'node:fs';import{dirname,join}from'node:path';function a251_0x5d32(_0x16cd7e,_0x1c2fa3){_0x16cd7e=_0x16cd7e-0x1b5;const _0x14bc09=a251_0x14bc();let _0x5d3284=_0x14bc09[_0x16cd7e];return _0x5d3284;}import{homedir}from'node:os';import{getTemplateBaseUrl}from'../utils/config.js';function getGuidesCdnUrl(){const _0x2aac15=getTemplateBaseUrl();return _0x2aac15+'/skills/guides.json';}const CACHE_DIR=join(homedir(),a251_0x1106aa(0x1d6),a251_0x1106aa(0x1cc));export async function fetchGuidesFromCDN(){const _0x4b403b=a251_0x1106aa,_0x59b9cf=getGuidesCdnUrl(),_0x3f3e04=await fetch(_0x59b9cf,{'headers':{'Accept':_0x4b403b(0x1b8)}});if(!_0x3f3e04['ok'])throw new Error(_0x4b403b(0x1cf)+_0x3f3e04[_0x4b403b(0x1d0)]+'\x20'+_0x3f3e04[_0x4b403b(0x1c9)]);const _0x460383=await _0x3f3e04[_0x4b403b(0x1d4)]();if(!_0x460383[_0x4b403b(0x1d9)]||typeof _0x460383[_0x4b403b(0x1d9)]!==_0x4b403b(0x1c3))throw new Error('CDN\x20返回数据格式错误');return _0x460383;}export function writeGuidesToProject(_0x49cc3f,_0x369008,_0x4d5a90=a251_0x1106aa(0x1c5),_0x2efc82){const _0x47bf3d=a251_0x1106aa,_0x2e2ff2=join(_0x369008,_0x4d5a90);mkdirSync(_0x2e2ff2,{'recursive':!![]});for(const [_0x191be7,_0x1876db]of Object[_0x47bf3d(0x1c2)](_0x49cc3f[_0x47bf3d(0x1d9)])){let _0x3b1286=_0x1876db[_0x47bf3d(0x1ca)];_0x1876db['lastUpdated']&&(_0x3b1286=appendUpdateTime(_0x3b1286,_0x1876db[_0x47bf3d(0x1bf)])),writeFileSync(join(_0x2e2ff2,_0x191be7+'.md'),_0x3b1286,_0x47bf3d(0x1be));}}export function appendUpdateTime(_0x393a12,_0x5cbad3){const _0x241178=a251_0x1106aa;return _0x393a12=_0x393a12[_0x241178(0x1c4)](/\n*>更新时间:.*$/m,''),_0x393a12['trimEnd']()+(_0x241178(0x1d2)+_0x5cbad3);}export function getSkillTemplate(_0xc5d85){const _0xd85b5c=a251_0x1106aa;return _0xc5d85[_0xd85b5c(0x1cb)]?.[_0xd85b5c(0x1ca)]||'';}export function appendExtendContents(_0x5c9af9,_0x1d15da,_0x1b319f){const _0x19fda7=a251_0x1106aa,_0x14f500=[];for(const [,_0x496260]of Object['entries'](_0x1d15da[_0x19fda7(0x1d9)])){_0x496260[_0x19fda7(0x1b7)]&&_0x14f500[_0x19fda7(0x1b5)](_0x496260[_0x19fda7(0x1b7)][_0x19fda7(0x1c0)]());}if(_0x14f500[_0x19fda7(0x1bb)]===0x0)return _0x5c9af9;return _0x5c9af9[_0x19fda7(0x1c0)]()+'\x0a\x0a'+_0x14f500[_0x19fda7(0x1ce)]('\x0a\x0a')+'\x0a';}export function writeSkillFile(_0x5ba89b,_0x55b88f,_0x57eda1){const _0x3a39df=a251_0x1106aa,_0x3f106e=getSkillTemplate(_0x5ba89b);if(!_0x3f106e)throw new Error(_0x3a39df(0x1c8));const _0x35d2bd=dirname(_0x55b88f);mkdirSync(_0x35d2bd,{'recursive':!![]});let _0x4536b2=_0x3f106e['replace'](/\{\{IDE_NAME\}\}/g,_0x57eda1);_0x4536b2=appendExtendContents(_0x4536b2,_0x5ba89b),_0x5ba89b[_0x3a39df(0x1cb)]['lastUpdated']&&(_0x4536b2=appendUpdateTime(_0x4536b2,_0x5ba89b[_0x3a39df(0x1cb)][_0x3a39df(0x1bf)])),writeFileSync(_0x55b88f,_0x4536b2,'utf-8');}export async function installGuides(_0x333f46){const _0xaaa915=a251_0x1106aa,_0x4c0479=await fetchGuidesFromCDN();return writeGuidesToProject(_0x4c0479,_0x333f46),Object[_0xaaa915(0x1d5)](_0x4c0479[_0xaaa915(0x1d9)])[_0xaaa915(0x1bb)];}export function getGuidesSummary(_0xa11da){const _0x32815b=a251_0x1106aa;return Object[_0x32815b(0x1c2)](_0xa11da[_0x32815b(0x1d9)])[_0x32815b(0x1d1)](([_0x5c6782,_0x2f6568])=>({'key':_0x5c6782,'title':_0x2f6568[_0x32815b(0x1bd)],'path':_0x2f6568['path']}));}
@@ -1 +1 @@
1
- (function(_0x22e85a,_0x26d041){const _0x2d6cac=a251_0x1470,_0x9cf9cc=_0x22e85a();while(!![]){try{const _0x27669c=parseInt(_0x2d6cac(0x1a8))/0x1*(parseInt(_0x2d6cac(0x1a7))/0x2)+parseInt(_0x2d6cac(0x19f))/0x3*(-parseInt(_0x2d6cac(0x1b3))/0x4)+-parseInt(_0x2d6cac(0x19b))/0x5*(-parseInt(_0x2d6cac(0x19e))/0x6)+parseInt(_0x2d6cac(0x1a6))/0x7*(-parseInt(_0x2d6cac(0x1aa))/0x8)+-parseInt(_0x2d6cac(0x1ac))/0x9*(parseInt(_0x2d6cac(0x1b0))/0xa)+parseInt(_0x2d6cac(0x1a1))/0xb+parseInt(_0x2d6cac(0x1b4))/0xc;if(_0x27669c===_0x26d041)break;else _0x9cf9cc['push'](_0x9cf9cc['shift']());}catch(_0x89d65b){_0x9cf9cc['push'](_0x9cf9cc['shift']());}}}(a251_0x51b1,0x50f1c));function a251_0x1470(_0x5ebbd5,_0xad1f8a){_0x5ebbd5=_0x5ebbd5-0x193;const _0x51b195=a251_0x51b1();let _0x147004=_0x51b195[_0x5ebbd5];return _0x147004;}function a251_0x51b1(){const _0x3c1246=['115761bWKMNP','url','634304DtXvxL','ENOTFOUND','text','abort','message','9002ypKotp','83998LTHIFO','2yViliT','ECONNRESET','712hQbgAR','\x20次重试...','9tXJheF','headers','log','AbortError','4574770GIbKaE','includes','content-type','56TqLZQK','13012404hNnvQD','TypeError','status','ms\x20后进行第\x20','signal','json','Request\x20failed','fetch','application/json','110wGQLqp','get','name','59364ohMPhu'];a251_0x51b1=function(){return _0x3c1246;};return a251_0x51b1();}export async function httpRequest(_0x75b7aa,_0x510e70={}){const _0xdad156=a251_0x1470,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0x510e70;let _0x10de1d=null;for(let _0x5dd857=0x0;_0x5dd857<=retries;_0x5dd857++){try{const _0x35b04a=new AbortController(),_0x36d804=setTimeout(()=>_0x35b04a[_0xdad156(0x1a4)](),timeout),_0x5ef70c=await fetch(_0x75b7aa,{'headers':headers,'signal':_0x35b04a[_0xdad156(0x196)]});clearTimeout(_0x36d804);let _0x27b6bb;const _0x48de79=_0x5ef70c[_0xdad156(0x1ad)][_0xdad156(0x19c)](_0xdad156(0x1b2));return _0x48de79?.[_0xdad156(0x1b1)](_0xdad156(0x19a))?_0x27b6bb=await _0x5ef70c[_0xdad156(0x197)]():_0x27b6bb=await _0x5ef70c[_0xdad156(0x1a3)](),{'ok':_0x5ef70c['ok'],'status':_0x5ef70c[_0xdad156(0x194)],'statusText':_0x5ef70c['statusText'],'data':_0x27b6bb,'headers':_0x5ef70c[_0xdad156(0x1ad)],'url':_0x5ef70c[_0xdad156(0x1a0)],'text':()=>_0x5ef70c[_0xdad156(0x1a3)]()};}catch(_0x3cc008){_0x10de1d=_0x3cc008 instanceof Error?_0x3cc008:new Error(String(_0x3cc008));if(_0x5dd857===retries)break;if(shouldRetry(_0x3cc008)){console[_0xdad156(0x1ae)]('*\x20请求失败,'+retryDelay+_0xdad156(0x195)+(_0x5dd857+0x1)+_0xdad156(0x1ab)),await sleep(retryDelay);continue;}else break;}}throw _0x10de1d||new Error(_0xdad156(0x198));}function shouldRetry(_0x23c170){const _0x363113=a251_0x1470;if(_0x23c170 instanceof Error){if(_0x23c170[_0x363113(0x19d)]===_0x363113(0x1af))return![];if(_0x23c170[_0x363113(0x19d)]===_0x363113(0x193)&&_0x23c170[_0x363113(0x1a5)]['includes'](_0x363113(0x199)))return!![];if(_0x23c170[_0x363113(0x1a5)][_0x363113(0x1b1)](_0x363113(0x1a9)))return!![];if(_0x23c170[_0x363113(0x1a5)]['includes'](_0x363113(0x1a2)))return![];}return![];}function sleep(_0x2540f3){return new Promise(_0x44192b=>setTimeout(_0x44192b,_0x2540f3));}export function validateUrl(_0x2be3a5){try{return new URL(_0x2be3a5),!![];}catch{return![];}}
1
+ (function(_0x38bb81,_0x2422da){const _0x245d96=a252_0x3ac5,_0x414a64=_0x38bb81();while(!![]){try{const _0x14fe7f=-parseInt(_0x245d96(0x75))/0x1*(parseInt(_0x245d96(0x77))/0x2)+-parseInt(_0x245d96(0x6e))/0x3*(parseInt(_0x245d96(0x7e))/0x4)+parseInt(_0x245d96(0x82))/0x5+parseInt(_0x245d96(0x85))/0x6+-parseInt(_0x245d96(0x68))/0x7*(-parseInt(_0x245d96(0x7a))/0x8)+-parseInt(_0x245d96(0x6f))/0x9+parseInt(_0x245d96(0x6d))/0xa;if(_0x14fe7f===_0x2422da)break;else _0x414a64['push'](_0x414a64['shift']());}catch(_0x4ea49b){_0x414a64['push'](_0x414a64['shift']());}}}(a252_0x14ab,0xea003));export async function httpRequest(_0x134ebf,_0x45e1eb={}){const _0x13f83b=a252_0x3ac5,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0x45e1eb;let _0x4d4215=null;for(let _0x571523=0x0;_0x571523<=retries;_0x571523++){try{const _0x3f8dcb=new AbortController(),_0x4dad55=setTimeout(()=>_0x3f8dcb[_0x13f83b(0x6a)](),timeout),_0x29b258=await fetch(_0x134ebf,{'headers':headers,'signal':_0x3f8dcb[_0x13f83b(0x80)]});clearTimeout(_0x4dad55);let _0x3718f6;const _0x4c0126=_0x29b258['headers'][_0x13f83b(0x72)]('content-type');return _0x4c0126?.[_0x13f83b(0x7b)](_0x13f83b(0x76))?_0x3718f6=await _0x29b258[_0x13f83b(0x7c)]():_0x3718f6=await _0x29b258[_0x13f83b(0x73)](),{'ok':_0x29b258['ok'],'status':_0x29b258[_0x13f83b(0x78)],'statusText':_0x29b258[_0x13f83b(0x6c)],'data':_0x3718f6,'headers':_0x29b258[_0x13f83b(0x69)],'url':_0x29b258['url'],'text':()=>_0x29b258[_0x13f83b(0x73)]()};}catch(_0x5845ea){_0x4d4215=_0x5845ea instanceof Error?_0x5845ea:new Error(String(_0x5845ea));if(_0x571523===retries)break;if(shouldRetry(_0x5845ea)){console[_0x13f83b(0x7d)](_0x13f83b(0x71)+retryDelay+_0x13f83b(0x83)+(_0x571523+0x1)+_0x13f83b(0x74)),await sleep(retryDelay);continue;}else break;}}throw _0x4d4215||new Error('Request\x20failed');}function shouldRetry(_0xe4c4e6){const _0x76df73=a252_0x3ac5;if(_0xe4c4e6 instanceof Error){if(_0xe4c4e6[_0x76df73(0x6b)]===_0x76df73(0x7f))return![];if(_0xe4c4e6[_0x76df73(0x6b)]==='TypeError'&&_0xe4c4e6[_0x76df73(0x84)][_0x76df73(0x7b)](_0x76df73(0x70)))return!![];if(_0xe4c4e6[_0x76df73(0x84)][_0x76df73(0x7b)](_0x76df73(0x81)))return!![];if(_0xe4c4e6[_0x76df73(0x84)]['includes'](_0x76df73(0x79)))return![];}return![];}function a252_0x3ac5(_0x387e97,_0x39d334){_0x387e97=_0x387e97-0x68;const _0x14abbc=a252_0x14ab();let _0x3ac573=_0x14abbc[_0x387e97];return _0x3ac573;}function sleep(_0x2993f5){return new Promise(_0x4cd825=>setTimeout(_0x4cd825,_0x2993f5));}function a252_0x14ab(){const _0x340697=['statusText','14717160wzVaja','3989631jSrwfX','9045387PLnHbC','fetch','*\x20请求失败,','get','text','\x20次重试...','1MQPzPO','application/json','2721958fytaAE','status','ENOTFOUND','10616504DOoBah','includes','json','log','4pbKUpH','AbortError','signal','ECONNRESET','817140clhojO','ms\x20后进行第\x20','message','10152954tRbGul','7YtvqTN','headers','abort','name'];a252_0x14ab=function(){return _0x340697;};return a252_0x14ab();}export function validateUrl(_0x281ce4){try{return new URL(_0x281ce4),!![];}catch{return![];}}
@@ -1 +1 @@
1
- function a252_0x3bff(){const _0x21a32c=['2400447bAZJFw','32780GFCryv','1153NozBpJ','7193137brHELh','nonInteractive','3312595iMNOOu','1817590JUyWXA','true','1385442BTFwCE','8QvUOAR','stdout','117NiGcsL','setRawMode','stdin','isTTY','1834KrOSKU'];a252_0x3bff=function(){return _0x21a32c;};return a252_0x3bff();}(function(_0x1fb1ce,_0x42ef82){const _0x1e616f=a252_0x1903,_0x38aaae=_0x1fb1ce();while(!![]){try{const _0x2e6741=parseInt(_0x1e616f(0x1ee))/0x1*(-parseInt(_0x1e616f(0x1eb))/0x2)+parseInt(_0x1e616f(0x1ec))/0x3+parseInt(_0x1e616f(0x1ed))/0x4+-parseInt(_0x1e616f(0x1f1))/0x5+parseInt(_0x1e616f(0x1e4))/0x6+-parseInt(_0x1e616f(0x1ef))/0x7*(parseInt(_0x1e616f(0x1e5))/0x8)+-parseInt(_0x1e616f(0x1e7))/0x9*(-parseInt(_0x1e616f(0x1e2))/0xa);if(_0x2e6741===_0x42ef82)break;else _0x38aaae['push'](_0x38aaae['shift']());}catch(_0x49706c){_0x38aaae['push'](_0x38aaae['shift']());}}}(a252_0x3bff,0x9fd73));function env(_0x449741){return process.env[`RABETBASE_${_0x449741}`]||process.env[`LOVRABET_${_0x449741}`]||undefined;}export function isNonInteractive(_0x56bd60){const _0x4c6886=a252_0x1903;return!!(_0x56bd60[_0x4c6886(0x1f0)]||_0x56bd60['ci']||env('CI')===_0x4c6886(0x1e3)||process.env.CI===_0x4c6886(0x1e3)||!process[_0x4c6886(0x1e6)][_0x4c6886(0x1ea)]||!isStdinRawModeSupported());}function a252_0x1903(_0x1b6e26,_0x165824){_0x1b6e26=_0x1b6e26-0x1e2;const _0x3bfff9=a252_0x3bff();let _0x190353=_0x3bfff9[_0x1b6e26];return _0x190353;}function isStdinRawModeSupported(){const _0x533423=a252_0x1903;if(!process[_0x533423(0x1e9)][_0x533423(0x1ea)])return![];try{const _0x121a97=process['stdin']['isRaw'];return process[_0x533423(0x1e9)][_0x533423(0x1e8)](!![]),process['stdin'][_0x533423(0x1e8)](_0x121a97??![]),!![];}catch{return![];}}
1
+ (function(_0x966efd,_0x4b37a7){const _0x218588=a253_0x21e7,_0x7f9869=_0x966efd();while(!![]){try{const _0xf4c8df=-parseInt(_0x218588(0x11f))/0x1*(parseInt(_0x218588(0x11b))/0x2)+parseInt(_0x218588(0x11e))/0x3+parseInt(_0x218588(0x119))/0x4+-parseInt(_0x218588(0x11c))/0x5*(-parseInt(_0x218588(0x11a))/0x6)+parseInt(_0x218588(0x118))/0x7*(parseInt(_0x218588(0x113))/0x8)+parseInt(_0x218588(0x110))/0x9*(parseInt(_0x218588(0x115))/0xa)+-parseInt(_0x218588(0x112))/0xb*(parseInt(_0x218588(0x116))/0xc);if(_0xf4c8df===_0x4b37a7)break;else _0x7f9869['push'](_0x7f9869['shift']());}catch(_0x59b459){_0x7f9869['push'](_0x7f9869['shift']());}}}(a253_0x12a1,0xc6eac));function a253_0x12a1(){const _0x48c97c=['true','1078917Okeonl','1456drUtCu','6WZZzGR','570736NfXZuM','8002090fLaXfj','stdin','2413161uWNNwH','1zCzhoH','setRawMode','1449GCvrHr','stdout','2713821sPDUTZ','40bnAAOJ','isTTY','100930CzHUPQ','180dNiphd'];a253_0x12a1=function(){return _0x48c97c;};return a253_0x12a1();}function env(_0x8d0642){return process.env[`RABETBASE_${_0x8d0642}`]||process.env[`LOVRABET_${_0x8d0642}`]||undefined;}function a253_0x21e7(_0x5f2a48,_0xffa37b){_0x5f2a48=_0x5f2a48-0x10f;const _0x12a1ee=a253_0x12a1();let _0x21e79d=_0x12a1ee[_0x5f2a48];return _0x21e79d;}export function isNonInteractive(_0x58c0ae){const _0x252484=a253_0x21e7;return!!(_0x58c0ae['nonInteractive']||_0x58c0ae['ci']||env('CI')===_0x252484(0x117)||process.env.CI==='true'||!process[_0x252484(0x111)][_0x252484(0x114)]||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x1fbb06=a253_0x21e7;if(!process[_0x1fbb06(0x11d)]['isTTY'])return![];try{const _0x3760ef=process[_0x1fbb06(0x11d)]['isRaw'];return process['stdin'][_0x1fbb06(0x10f)](!![]),process[_0x1fbb06(0x11d)][_0x1fbb06(0x10f)](_0x3760ef??![]),!![];}catch{return![];}}
@@ -1 +1 @@
1
- function a253_0x4816(_0x10c0fe,_0xfae9ef){_0x10c0fe=_0x10c0fe-0x18b;const _0x3bb367=a253_0x3bb3();let _0x48169b=_0x3bb367[_0x10c0fe];return _0x48169b;}const a253_0x10a69c=a253_0x4816;(function(_0x439c58,_0x4f4fbc){const _0x6b9dbc=a253_0x4816,_0x1bdd39=_0x439c58();while(!![]){try{const _0x305fc0=parseInt(_0x6b9dbc(0x1ab))/0x1*(-parseInt(_0x6b9dbc(0x1b5))/0x2)+parseInt(_0x6b9dbc(0x1a6))/0x3*(parseInt(_0x6b9dbc(0x19f))/0x4)+parseInt(_0x6b9dbc(0x1c0))/0x5*(parseInt(_0x6b9dbc(0x19d))/0x6)+-parseInt(_0x6b9dbc(0x1aa))/0x7+parseInt(_0x6b9dbc(0x1c1))/0x8*(parseInt(_0x6b9dbc(0x1b1))/0x9)+-parseInt(_0x6b9dbc(0x1b0))/0xa+-parseInt(_0x6b9dbc(0x1a2))/0xb*(parseInt(_0x6b9dbc(0x1c6))/0xc);if(_0x305fc0===_0x4f4fbc)break;else _0x1bdd39['push'](_0x1bdd39['shift']());}catch(_0x85f8b0){_0x1bdd39['push'](_0x1bdd39['shift']());}}}(a253_0x3bb3,0x53c98));import a253_0x215266 from'winston';import a253_0x3a96fd from'node:fs';import a253_0x42b63d from'node:path';class Logger{['winstonLogger'];[a253_0x10a69c(0x1a4)];[a253_0x10a69c(0x1ae)]='';constructor(){const _0x1d6bc2=a253_0x10a69c;this[_0x1d6bc2(0x1a4)]='';}[a253_0x10a69c(0x191)](_0x2c61df){this['currentRawCommand']=_0x2c61df;}[a253_0x10a69c(0x1ba)](){const _0x262077=a253_0x10a69c,_0x14d5d7=a253_0x42b63d['dirname'](this[_0x262077(0x1a4)]);!a253_0x3a96fd[_0x262077(0x1bb)](_0x14d5d7)&&a253_0x3a96fd[_0x262077(0x190)](_0x14d5d7,{'recursive':!![]});const _0x156fbc=a253_0x215266[_0x262077(0x1b6)][_0x262077(0x1c4)](a253_0x215266['format'][_0x262077(0x1ad)](),a253_0x215266[_0x262077(0x1b6)][_0x262077(0x19b)]({'stack':!![]}),a253_0x215266[_0x262077(0x1b6)][_0x262077(0x1b2)](_0xcb6911=>{const _0xc2f176=_0x262077,_0x430c04={'timestamp':_0xcb6911['timestamp']||new Date()[_0xc2f176(0x1a9)](),'level':_0xcb6911[_0xc2f176(0x1bc)]||'info','command':_0xcb6911[_0xc2f176(0x1b7)]||'unknown','rawCommand':_0xcb6911[_0xc2f176(0x1a0)]||this[_0xc2f176(0x1ae)]||undefined,'message':_0xcb6911['message']||'','duration':_0xcb6911[_0xc2f176(0x1a7)]||undefined,'details':_0xcb6911[_0xc2f176(0x1bf)]||undefined};return JSON[_0xc2f176(0x18d)](_0x430c04);}));this[_0x262077(0x196)]=a253_0x215266['createLogger']({'level':_0x262077(0x1b4),'format':_0x156fbc,'transports':[new a253_0x215266[(_0x262077(0x194))]['File']({'filename':this[_0x262077(0x1a4)],'level':_0x262077(0x1b4)})],'silent':![]}),a253_0x215266[_0x262077(0x19e)]({'success':_0x262077(0x1a3),'error':_0x262077(0x1c2),'warn':_0x262077(0x18b),'info':'blue'});}[a253_0x10a69c(0x1a1)](_0x37da50){const _0x29022a=a253_0x10a69c;this[_0x29022a(0x1a4)]=a253_0x42b63d['join'](_0x37da50,_0x29022a(0x1c3)),this['winstonLogger']&&this[_0x29022a(0x196)][_0x29022a(0x193)](),this[_0x29022a(0x1ba)]();}[a253_0x10a69c(0x1b4)](_0x32d131,_0x59716c,_0x153b4a){const _0x4cac5c=a253_0x10a69c;if(!this['logFilePath']||!this['winstonLogger'])return;this[_0x4cac5c(0x196)][_0x4cac5c(0x1b4)](_0x59716c,{'command':_0x32d131,'details':_0x153b4a});}[a253_0x10a69c(0x1bd)](_0x5775b6,_0x1fb7b8,_0x1d1f61,_0x57f2b1){const _0x2d5870=a253_0x10a69c;if(!this[_0x2d5870(0x1a4)]||!this[_0x2d5870(0x196)])return;this[_0x2d5870(0x196)]['log'](_0x2d5870(0x1b4),_0x1fb7b8,{'level':_0x2d5870(0x1bd),'command':_0x5775b6,'duration':_0x1d1f61,'details':_0x57f2b1});}[a253_0x10a69c(0x199)](_0x391634,_0x5d6343,_0x56a14f){const _0x205fcd=a253_0x10a69c;if(!this[_0x205fcd(0x1a4)]||!this[_0x205fcd(0x196)])return;this['winstonLogger'][_0x205fcd(0x199)](_0x5d6343,{'command':_0x391634,'details':_0x56a14f});}['warn'](_0x440524,_0x259014,_0x3d49c9){const _0x8cfa83=a253_0x10a69c;if(!this[_0x8cfa83(0x1a4)]||!this[_0x8cfa83(0x196)])return;this['winstonLogger']['warn'](_0x259014,{'command':_0x440524,'details':_0x3d49c9});}async[a253_0x10a69c(0x195)](_0x423489,_0x116e4e,_0x2f85da){const _0x24011e=a253_0x10a69c,_0x319fb1=Date[_0x24011e(0x197)]();this['info'](_0x423489,_0x24011e(0x1a8)+_0x116e4e);try{const _0x5eb6e9=await _0x2f85da(),_0xb6760d=Date[_0x24011e(0x197)]()-_0x319fb1;return this['success'](_0x423489,'完成:\x20'+_0x116e4e,_0xb6760d),_0x5eb6e9;}catch(_0x197c6f){const _0x190262=Date['now']()-_0x319fb1;this[_0x24011e(0x199)](_0x423489,_0x24011e(0x1b3)+_0x116e4e,{'error':_0x197c6f instanceof Error?_0x197c6f[_0x24011e(0x18e)]:String(_0x197c6f),'duration':_0x190262});throw _0x197c6f;}}[a253_0x10a69c(0x1af)](){const _0x34d669=a253_0x10a69c;try{if(!a253_0x3a96fd[_0x34d669(0x1bb)](this['logFilePath']))return[];const _0x4f3739=a253_0x3a96fd[_0x34d669(0x1be)](this[_0x34d669(0x1a4)],_0x34d669(0x19a));return _0x4f3739[_0x34d669(0x192)]('\x0a')[_0x34d669(0x19c)](_0x32f9b8=>_0x32f9b8[_0x34d669(0x1c5)]())[_0x34d669(0x1b8)](_0x58f1d4=>JSON[_0x34d669(0x198)](_0x58f1d4));}catch(_0x4c8365){return console[_0x34d669(0x1a5)](_0x34d669(0x18c),_0x4c8365),[];}}['clearLogs'](){const _0x176ecd=a253_0x10a69c;try{a253_0x3a96fd[_0x176ecd(0x1bb)](this[_0x176ecd(0x1a4)])&&a253_0x3a96fd[_0x176ecd(0x1b9)](this[_0x176ecd(0x1a4)],'',_0x176ecd(0x19a));}catch(_0xa8e8b3){console[_0x176ecd(0x1a5)](_0x176ecd(0x18f),_0xa8e8b3);}}[a253_0x10a69c(0x1ac)](){const _0x69bb6c=a253_0x10a69c;return this[_0x69bb6c(0x196)];}}function a253_0x3bb3(){const _0x3620d2=['split','clear','transports','logTask','winstonLogger','now','parse','error','utf8','errors','filter','18OEJkxY','addColors','24eMIKWe','rawCommand','setLogPath','803keOwkU','green','logFilePath','warn','98172lXFCPU','duration','开始执行:\x20','toISOString','1691837OVVtAv','4TlbzxD','getWinstonInstance','timestamp','currentRawCommand','readLogs','1061230JnPqPr','1557MyvBRR','printf','失败:\x20','info','8638HqtsEv','format','command','map','writeFileSync','initWinstonLogger','existsSync','level','success','readFileSync','details','950110PknBGL','22424vhHwmM','red','.lovrabet.log','combine','trim','89268Wvlevx','yellow','Failed\x20to\x20read\x20logs:','stringify','message','Failed\x20to\x20clear\x20logs:','mkdirSync','setRawCommand'];a253_0x3bb3=function(){return _0x3620d2;};return a253_0x3bb3();}export const logger=new Logger();
1
+ const a254_0x253d4e=a254_0x33b2;function a254_0x33b2(_0x4c8968,_0x4b71f9){_0x4c8968=_0x4c8968-0x1c4;const _0x1deb38=a254_0x1deb();let _0x33b289=_0x1deb38[_0x4c8968];return _0x33b289;}(function(_0x1324b7,_0x1eff8f){const _0x3b17de=a254_0x33b2,_0x32491c=_0x1324b7();while(!![]){try{const _0x16898d=parseInt(_0x3b17de(0x1d7))/0x1*(-parseInt(_0x3b17de(0x1d5))/0x2)+-parseInt(_0x3b17de(0x1e2))/0x3+parseInt(_0x3b17de(0x1ce))/0x4*(-parseInt(_0x3b17de(0x1d4))/0x5)+parseInt(_0x3b17de(0x1e7))/0x6+-parseInt(_0x3b17de(0x1ed))/0x7+-parseInt(_0x3b17de(0x1f4))/0x8+parseInt(_0x3b17de(0x1d2))/0x9;if(_0x16898d===_0x1eff8f)break;else _0x32491c['push'](_0x32491c['shift']());}catch(_0xc0f1c4){_0x32491c['push'](_0x32491c['shift']());}}}(a254_0x1deb,0x2d4dc));import a254_0x290944 from'winston';function a254_0x1deb(){const _0x29c346=['logFilePath','format','开始执行:\x20','timestamp','752004dnFTdZ','createLogger','log','addColors','join','yellow','1467144hUhCCu','setRawCommand','parse','existsSync','clear','warn','trim','2451288FSMlRH','initWinstonLogger','currentRawCommand','message','stringify','utf8','失败:\x20','error','rawCommand','now','readFileSync','combine','getWinstonInstance','winstonLogger','map','unknown','writeFileSync','Failed\x20to\x20clear\x20logs:','4DQJoeA','info','完成:\x20','filter','8891136DbTieE','level','773560tfYcnF','52VvkYJY','mkdirSync','9202wXAjOM','setLogPath','green','File','Failed\x20to\x20read\x20logs:','.lovrabet.log','command','success','toISOString','duration','dirname','53121pPLEqa'];a254_0x1deb=function(){return _0x29c346;};return a254_0x1deb();}import a254_0x3bec4e from'node:fs';import a254_0x57280b from'node:path';class Logger{['winstonLogger'];['logFilePath'];['currentRawCommand']='';constructor(){const _0x3499ab=a254_0x33b2;this[_0x3499ab(0x1e3)]='';}[a254_0x253d4e(0x1ee)](_0x1f0150){const _0x3359ea=a254_0x253d4e;this[_0x3359ea(0x1f6)]=_0x1f0150;}[a254_0x253d4e(0x1f5)](){const _0x5ef8d2=a254_0x253d4e,_0x46afc3=a254_0x57280b[_0x5ef8d2(0x1e1)](this[_0x5ef8d2(0x1e3)]);!a254_0x3bec4e[_0x5ef8d2(0x1f0)](_0x46afc3)&&a254_0x3bec4e[_0x5ef8d2(0x1d6)](_0x46afc3,{'recursive':!![]});const _0x5de996=a254_0x290944[_0x5ef8d2(0x1e4)][_0x5ef8d2(0x1c7)](a254_0x290944[_0x5ef8d2(0x1e4)]['timestamp'](),a254_0x290944[_0x5ef8d2(0x1e4)]['errors']({'stack':!![]}),a254_0x290944[_0x5ef8d2(0x1e4)]['printf'](_0x3ecd3a=>{const _0x4b54bc=_0x5ef8d2,_0x3e5f2e={'timestamp':_0x3ecd3a[_0x4b54bc(0x1e6)]||new Date()[_0x4b54bc(0x1df)](),'level':_0x3ecd3a[_0x4b54bc(0x1d3)]||'info','command':_0x3ecd3a[_0x4b54bc(0x1dd)]||_0x4b54bc(0x1cb),'rawCommand':_0x3ecd3a[_0x4b54bc(0x1c4)]||this[_0x4b54bc(0x1f6)]||undefined,'message':_0x3ecd3a['message']||'','duration':_0x3ecd3a[_0x4b54bc(0x1e0)]||undefined,'details':_0x3ecd3a['details']||undefined};return JSON[_0x4b54bc(0x1f8)](_0x3e5f2e);}));this[_0x5ef8d2(0x1c9)]=a254_0x290944[_0x5ef8d2(0x1e8)]({'level':_0x5ef8d2(0x1cf),'format':_0x5de996,'transports':[new a254_0x290944['transports'][(_0x5ef8d2(0x1da))]({'filename':this['logFilePath'],'level':_0x5ef8d2(0x1cf)})],'silent':![]}),a254_0x290944[_0x5ef8d2(0x1ea)]({'success':_0x5ef8d2(0x1d9),'error':'red','warn':_0x5ef8d2(0x1ec),'info':'blue'});}[a254_0x253d4e(0x1d8)](_0x2a37b9){const _0x3591e4=a254_0x253d4e;this[_0x3591e4(0x1e3)]=a254_0x57280b[_0x3591e4(0x1eb)](_0x2a37b9,_0x3591e4(0x1dc)),this['winstonLogger']&&this['winstonLogger'][_0x3591e4(0x1f1)](),this[_0x3591e4(0x1f5)]();}[a254_0x253d4e(0x1cf)](_0x281b35,_0x354db2,_0x553b09){const _0x59a13d=a254_0x253d4e;if(!this[_0x59a13d(0x1e3)]||!this['winstonLogger'])return;this['winstonLogger'][_0x59a13d(0x1cf)](_0x354db2,{'command':_0x281b35,'details':_0x553b09});}[a254_0x253d4e(0x1de)](_0x2a8d0d,_0x1d8884,_0x346777,_0xc0d84f){const _0x342428=a254_0x253d4e;if(!this['logFilePath']||!this[_0x342428(0x1c9)])return;this[_0x342428(0x1c9)][_0x342428(0x1e9)](_0x342428(0x1cf),_0x1d8884,{'level':_0x342428(0x1de),'command':_0x2a8d0d,'duration':_0x346777,'details':_0xc0d84f});}[a254_0x253d4e(0x1fb)](_0x218dcd,_0x50565a,_0x4a4fdb){const _0x30a25a=a254_0x253d4e;if(!this['logFilePath']||!this['winstonLogger'])return;this[_0x30a25a(0x1c9)][_0x30a25a(0x1fb)](_0x50565a,{'command':_0x218dcd,'details':_0x4a4fdb});}['warn'](_0x3e29eb,_0x248489,_0x5504d6){const _0x3f2b8f=a254_0x253d4e;if(!this[_0x3f2b8f(0x1e3)]||!this[_0x3f2b8f(0x1c9)])return;this[_0x3f2b8f(0x1c9)][_0x3f2b8f(0x1f2)](_0x248489,{'command':_0x3e29eb,'details':_0x5504d6});}async['logTask'](_0x2bbb7d,_0x4cf5f2,_0x443e1a){const _0x4641e7=a254_0x253d4e,_0x5ba8b5=Date[_0x4641e7(0x1c5)]();this['info'](_0x2bbb7d,_0x4641e7(0x1e5)+_0x4cf5f2);try{const _0x29424d=await _0x443e1a(),_0x455601=Date['now']()-_0x5ba8b5;return this[_0x4641e7(0x1de)](_0x2bbb7d,_0x4641e7(0x1d0)+_0x4cf5f2,_0x455601),_0x29424d;}catch(_0x3b7de2){const _0x4461ad=Date[_0x4641e7(0x1c5)]()-_0x5ba8b5;this[_0x4641e7(0x1fb)](_0x2bbb7d,_0x4641e7(0x1fa)+_0x4cf5f2,{'error':_0x3b7de2 instanceof Error?_0x3b7de2[_0x4641e7(0x1f7)]:String(_0x3b7de2),'duration':_0x4461ad});throw _0x3b7de2;}}['readLogs'](){const _0x1a1140=a254_0x253d4e;try{if(!a254_0x3bec4e[_0x1a1140(0x1f0)](this[_0x1a1140(0x1e3)]))return[];const _0x32278a=a254_0x3bec4e[_0x1a1140(0x1c6)](this['logFilePath'],_0x1a1140(0x1f9));return _0x32278a['split']('\x0a')[_0x1a1140(0x1d1)](_0x59917a=>_0x59917a[_0x1a1140(0x1f3)]())[_0x1a1140(0x1ca)](_0x24de3c=>JSON[_0x1a1140(0x1ef)](_0x24de3c));}catch(_0x1d075c){return console[_0x1a1140(0x1f2)](_0x1a1140(0x1db),_0x1d075c),[];}}['clearLogs'](){const _0x237c5d=a254_0x253d4e;try{a254_0x3bec4e[_0x237c5d(0x1f0)](this[_0x237c5d(0x1e3)])&&a254_0x3bec4e[_0x237c5d(0x1cc)](this[_0x237c5d(0x1e3)],'',_0x237c5d(0x1f9));}catch(_0x3ce6b8){console[_0x237c5d(0x1f2)](_0x237c5d(0x1cd),_0x3ce6b8);}}[a254_0x253d4e(0x1c8)](){const _0x368fb1=a254_0x253d4e;return this[_0x368fb1(0x1c9)];}}export const logger=new Logger();
@@ -1 +1 @@
1
- (function(_0x4e77cc,_0x3a8720){const _0x443d85=a254_0xbc31,_0x8047ae=_0x4e77cc();while(!![]){try{const _0x348f0b=-parseInt(_0x443d85(0xac))/0x1*(parseInt(_0x443d85(0xa7))/0x2)+parseInt(_0x443d85(0xb0))/0x3+-parseInt(_0x443d85(0xb3))/0x4*(-parseInt(_0x443d85(0xad))/0x5)+-parseInt(_0x443d85(0xae))/0x6*(-parseInt(_0x443d85(0xaa))/0x7)+parseInt(_0x443d85(0xb1))/0x8+parseInt(_0x443d85(0xab))/0x9+parseInt(_0x443d85(0xa5))/0xa*(-parseInt(_0x443d85(0xa9))/0xb);if(_0x348f0b===_0x3a8720)break;else _0x8047ae['push'](_0x8047ae['shift']());}catch(_0x3afc30){_0x8047ae['push'](_0x8047ae['shift']());}}}(a254_0x2853,0x24418));function a254_0xbc31(_0x2de4f6,_0x22dac2){_0x2de4f6=_0x2de4f6-0xa5;const _0x2853cf=a254_0x2853();let _0xbc3192=_0x2853cf[_0x2de4f6];return _0xbc3192;}import{CliErrors}from'../errors.js';export function parseJsonParams(_0x1fb3dc){const _0x8f42c0=a254_0xbc31;if(!_0x1fb3dc)return undefined;let _0x2193e3;try{_0x2193e3=JSON['parse'](_0x1fb3dc);}catch{throw CliErrors[_0x8f42c0(0xa6)](_0x8f42c0(0xa8)+_0x1fb3dc);}if(!_0x2193e3||typeof _0x2193e3!=='object'||Array[_0x8f42c0(0xaf)](_0x2193e3))throw CliErrors[_0x8f42c0(0xa6)](_0x8f42c0(0xb2),'Example:\x20--params\x20\x27{\x22id\x22:123}\x27');return _0x2193e3;}function a254_0x2853(){const _0x396031=['Invalid\x20JSON\x20for\x20--params:\x20','957abkJua','8274EBMlHM','1858779uoXgnw','163857wQbCUF','5HgRkOP','1098adJKAV','isArray','164445IDfdTv','1701656SZrilK','--params\x20must\x20be\x20a\x20JSON\x20object','210956tlGPsD','49510BIkdPW','validation','2uchbdD'];a254_0x2853=function(){return _0x396031;};return a254_0x2853();}
1
+ (function(_0x3b3db9,_0x48b4b2){const _0x2b1357=a255_0x93d7,_0x203f57=_0x3b3db9();while(!![]){try{const _0x2826e4=parseInt(_0x2b1357(0x1b0))/0x1*(-parseInt(_0x2b1357(0x1a6))/0x2)+parseInt(_0x2b1357(0x1aa))/0x3+parseInt(_0x2b1357(0x1a8))/0x4+parseInt(_0x2b1357(0x1a7))/0x5*(parseInt(_0x2b1357(0x1ae))/0x6)+-parseInt(_0x2b1357(0x1a9))/0x7*(parseInt(_0x2b1357(0x1ad))/0x8)+-parseInt(_0x2b1357(0x1a0))/0x9*(parseInt(_0x2b1357(0x1ac))/0xa)+parseInt(_0x2b1357(0x1a1))/0xb;if(_0x2826e4===_0x48b4b2)break;else _0x203f57['push'](_0x203f57['shift']());}catch(_0x412064){_0x203f57['push'](_0x203f57['shift']());}}}(a255_0x39f4,0x57d27));function a255_0x93d7(_0x2a4906,_0x442edc){_0x2a4906=_0x2a4906-0x1a0;const _0x39f43d=a255_0x39f4();let _0x93d702=_0x39f43d[_0x2a4906];return _0x93d702;}function a255_0x39f4(){const _0x346192=['isArray','325990FcUTEL','1850808uFSDBN','498thmJxw','Invalid\x20JSON\x20for\x20--params:\x20','62VqCthH','18uktgzP','1920105kYlABQ','validation','object','Example:\x20--params\x20\x27{\x22id\x22:123}\x27','--params\x20must\x20be\x20a\x20JSON\x20object','9474potqXC','10965anoRdC','2821836GyTNiL','21medBLQ','1051893juAkth'];a255_0x39f4=function(){return _0x346192;};return a255_0x39f4();}import{CliErrors}from'../errors.js';export function parseJsonParams(_0x112596){const _0x4f0231=a255_0x93d7;if(!_0x112596)return undefined;let _0x57c042;try{_0x57c042=JSON['parse'](_0x112596);}catch{throw CliErrors[_0x4f0231(0x1a2)](_0x4f0231(0x1af)+_0x112596);}if(!_0x57c042||typeof _0x57c042!==_0x4f0231(0x1a3)||Array[_0x4f0231(0x1ab)](_0x57c042))throw CliErrors[_0x4f0231(0x1a2)](_0x4f0231(0x1a5),_0x4f0231(0x1a4));return _0x57c042;}
@@ -1 +1 @@
1
- function a255_0x4d95(_0x25a3c3,_0x389029){_0x25a3c3=_0x25a3c3-0x71;const _0x3fbd62=a255_0x3fbd();let _0x4d95d0=_0x3fbd62[_0x25a3c3];return _0x4d95d0;}const a255_0x5bde8c=a255_0x4d95;function a255_0x3fbd(){const _0x5ba262=['13485390sfglnl','812902dYsWsm','3647508PuOSsj','171fAJJPe','2PkrZPP','19587OvDLPO','659715IRWvLn','176rWRhzF','411245RNCwzK','11qjUYaC','6rZWgiV','win32','277208LqjyCU'];a255_0x3fbd=function(){return _0x5ba262;};return a255_0x3fbd();}(function(_0x5f5a87,_0x3fdef4){const _0x40f866=a255_0x4d95,_0x8e5d83=_0x5f5a87();while(!![]){try{const _0x246033=-parseInt(_0x40f866(0x7c))/0x1*(-parseInt(_0x40f866(0x72))/0x2)+-parseInt(_0x40f866(0x73))/0x3*(-parseInt(_0x40f866(0x75))/0x4)+parseInt(_0x40f866(0x76))/0x5*(-parseInt(_0x40f866(0x78))/0x6)+parseInt(_0x40f866(0x74))/0x7+-parseInt(_0x40f866(0x7a))/0x8*(-parseInt(_0x40f866(0x71))/0x9)+-parseInt(_0x40f866(0x7b))/0xa+parseInt(_0x40f866(0x77))/0xb*(parseInt(_0x40f866(0x7d))/0xc);if(_0x246033===_0x3fdef4)break;else _0x8e5d83['push'](_0x8e5d83['shift']());}catch(_0x59af2a){_0x8e5d83['push'](_0x8e5d83['shift']());}}}(a255_0x3fbd,0xb13cb));export const isWindows=process['platform']===a255_0x5bde8c(0x79);export function resolveNpmBin(_0x1d3daa){return isWindows?_0x1d3daa+'.cmd':_0x1d3daa;}
1
+ const a256_0x29d7c5=a256_0xfc39;(function(_0x5179ee,_0x2545fe){const _0x298caf=a256_0xfc39,_0x40c4db=_0x5179ee();while(!![]){try{const _0x4e55b8=parseInt(_0x298caf(0x170))/0x1+parseInt(_0x298caf(0x16e))/0x2*(-parseInt(_0x298caf(0x174))/0x3)+parseInt(_0x298caf(0x178))/0x4+-parseInt(_0x298caf(0x176))/0x5+parseInt(_0x298caf(0x172))/0x6+parseInt(_0x298caf(0x171))/0x7*(-parseInt(_0x298caf(0x175))/0x8)+parseInt(_0x298caf(0x16f))/0x9*(parseInt(_0x298caf(0x16d))/0xa);if(_0x4e55b8===_0x2545fe)break;else _0x40c4db['push'](_0x40c4db['shift']());}catch(_0x242910){_0x40c4db['push'](_0x40c4db['shift']());}}}(a256_0x1508,0x9bc61));function a256_0x1508(){const _0x3fd19c=['3GcPsCb','5357368LGedLC','1786910tGEMTn','platform','142336LZjHik','.cmd','50WqnkAD','1409222NZksia','1906299ydOhEl','866123SBlvAI','7nQlmVF','2453706LHpSKE','win32'];a256_0x1508=function(){return _0x3fd19c;};return a256_0x1508();}export const isWindows=process[a256_0x29d7c5(0x177)]===a256_0x29d7c5(0x173);function a256_0xfc39(_0x515f65,_0xecc4a1){_0x515f65=_0x515f65-0x16c;const _0x150852=a256_0x1508();let _0xfc393c=_0x150852[_0x515f65];return _0xfc393c;}export function resolveNpmBin(_0x4c0181){const _0x3a2444=a256_0x29d7c5;return isWindows?_0x4c0181+_0x3a2444(0x16c):_0x4c0181;}
@@ -1 +1 @@
1
- (function(_0x3a6fb3,_0x5a6757){const _0x520028=a256_0x401c,_0x59e4a6=_0x3a6fb3();while(!![]){try{const _0x9cb650=parseInt(_0x520028(0xd7))/0x1*(parseInt(_0x520028(0xc8))/0x2)+-parseInt(_0x520028(0xca))/0x3*(parseInt(_0x520028(0xc5))/0x4)+parseInt(_0x520028(0xc4))/0x5+-parseInt(_0x520028(0xcb))/0x6+parseInt(_0x520028(0xd8))/0x7+parseInt(_0x520028(0xcf))/0x8+-parseInt(_0x520028(0xd4))/0x9;if(_0x9cb650===_0x5a6757)break;else _0x59e4a6['push'](_0x59e4a6['shift']());}catch(_0x4eb30f){_0x59e4a6['push'](_0x59e4a6['shift']());}}}(a256_0x16c5,0x94106));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';function a256_0x401c(_0x1f4ec0,_0x30d2eb){_0x1f4ec0=_0x1f4ec0-0xc4;const _0x16c5ff=a256_0x16c5();let _0x401c23=_0x16c5ff[_0x1f4ec0];return _0x401c23;}const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);function a256_0x16c5(){const _0x31802d=['lovrabet_rules.mdc','9626130eSkXJQ','statusText','lastUpdated','4hEgJqP','7631820wuiINa','string','json','agents.md','4136625BVsMTL','4347028miaqkB','CDN\x20请求失败:\x20','本地模板文件不存在:\x20','269554gSTega','content','3HXbMTj','1691340iqnQCq','utf-8','catch','.cursor/rules','4703952DcCbBu','/rules/rules.json','CDN\x20返回数据格式错误','application/json'];a256_0x16c5=function(){return _0x31802d;};return a256_0x16c5();}function getRulesCdnUrl(){const _0x32b5e3=a256_0x401c,_0x379e9c=getTemplateBaseUrl();return _0x379e9c+_0x32b5e3(0xd0);}const LOCAL_TEMPLATE_PATH=resolve(__dirname,'../../templates/rules/lovrabet_rules.mdc.tpl');export async function fetchRulesFromCDN(){const _0x302203=a256_0x401c,_0xb8f0e5=getRulesCdnUrl(),_0x5a76ca=await fetch(_0xb8f0e5,{'headers':{'Accept':_0x302203(0xd2)}});if(!_0x5a76ca['ok'])throw new Error(_0x302203(0xc6)+_0x5a76ca['status']+'\x20'+_0x5a76ca[_0x302203(0xd5)]);const _0xa14659=await _0x5a76ca[_0x302203(0xda)]();if(!_0xa14659['content']||typeof _0xa14659[_0x302203(0xc9)]!==_0x302203(0xd9))throw new Error(_0x302203(0xd1));return _0xa14659;}export async function getRulesContent(){const _0x347608=a256_0x401c;try{const _0x44cea2=await fetchRulesFromCDN();return _0x44cea2[_0x347608(0xc9)];}catch{return readLocalTemplate();}}export function readLocalTemplate(){const _0x40c18=a256_0x401c;if(existsSync(LOCAL_TEMPLATE_PATH))return readFileSync(LOCAL_TEMPLATE_PATH,_0x40c18(0xcc));throw new Error(_0x40c18(0xc7)+LOCAL_TEMPLATE_PATH);}export async function writeRulesFile(_0x3998bd){const _0x475b7e=a256_0x401c,_0x268671=await fetchRulesFromCDN()[_0x475b7e(0xcd)](()=>null);let _0x47ebe5;_0x268671?(_0x47ebe5=_0x268671[_0x475b7e(0xc9)],_0x268671[_0x475b7e(0xd6)]&&(_0x47ebe5=appendUpdateTime(_0x47ebe5,_0x268671[_0x475b7e(0xd6)]))):_0x47ebe5=readLocalTemplate();const _0x39da9d=dirname(_0x3998bd);!existsSync(_0x39da9d)&&mkdirSync(_0x39da9d,{'recursive':!![]}),writeFileSync(_0x3998bd,_0x47ebe5,'utf-8');}export async function copyRulesToCursor(_0x579fa4){const _0x4a4634=a256_0x401c,_0x210406=join(_0x579fa4,_0x4a4634(0xce)),_0x431847=join(_0x210406,_0x4a4634(0xd3));if(existsSync(_0x431847))return![];return await writeRulesFile(_0x431847),!![];}export async function copyRulesToAgentsMd(_0x3a6cdd){const _0x3f106e=a256_0x401c,_0x5d4ae2=join(_0x3a6cdd,_0x3f106e(0xdb));if(existsSync(_0x5d4ae2))return![];return await writeRulesFile(_0x5d4ae2),!![];}
1
+ const a257_0x4fbef3=a257_0x3f08;(function(_0x593ddb,_0x33f4b0){const _0x32e52c=a257_0x3f08,_0x189be5=_0x593ddb();while(!![]){try{const _0x24a140=-parseInt(_0x32e52c(0x1db))/0x1*(-parseInt(_0x32e52c(0x1d3))/0x2)+-parseInt(_0x32e52c(0x1d0))/0x3*(-parseInt(_0x32e52c(0x1e2))/0x4)+parseInt(_0x32e52c(0x1d9))/0x5+parseInt(_0x32e52c(0x1d6))/0x6*(parseInt(_0x32e52c(0x1da))/0x7)+parseInt(_0x32e52c(0x1e0))/0x8+parseInt(_0x32e52c(0x1cd))/0x9+-parseInt(_0x32e52c(0x1e1))/0xa*(parseInt(_0x32e52c(0x1ce))/0xb);if(_0x24a140===_0x33f4b0)break;else _0x189be5['push'](_0x189be5['shift']());}catch(_0x357e3d){_0x189be5['push'](_0x189be5['shift']());}}}(a257_0x3f00,0x59721));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 _0x23a29a=a257_0x3f08,_0x1fa917=getTemplateBaseUrl();return _0x1fa917+_0x23a29a(0x1dc);}const LOCAL_TEMPLATE_PATH=resolve(__dirname,a257_0x4fbef3(0x1d2));export async function fetchRulesFromCDN(){const _0x186b09=a257_0x4fbef3,_0x44c394=getRulesCdnUrl(),_0x2d88c0=await fetch(_0x44c394,{'headers':{'Accept':_0x186b09(0x1d1)}});if(!_0x2d88c0['ok'])throw new Error('CDN\x20请求失败:\x20'+_0x2d88c0['status']+'\x20'+_0x2d88c0[_0x186b09(0x1d8)]);const _0xbda207=await _0x2d88c0[_0x186b09(0x1cf)]();if(!_0xbda207[_0x186b09(0x1d5)]||typeof _0xbda207['content']!==_0x186b09(0x1de))throw new Error('CDN\x20返回数据格式错误');return _0xbda207;}export async function getRulesContent(){const _0x117638=a257_0x4fbef3;try{const _0x5400c2=await fetchRulesFromCDN();return _0x5400c2[_0x117638(0x1d5)];}catch{return readLocalTemplate();}}export function readLocalTemplate(){const _0x61bb6e=a257_0x4fbef3;if(existsSync(LOCAL_TEMPLATE_PATH))return readFileSync(LOCAL_TEMPLATE_PATH,_0x61bb6e(0x1d4));throw new Error(_0x61bb6e(0x1df)+LOCAL_TEMPLATE_PATH);}function a257_0x3f08(_0x4de187,_0x39a518){_0x4de187=_0x4de187-0x1cd;const _0x3f0040=a257_0x3f00();let _0x3f0855=_0x3f0040[_0x4de187];return _0x3f0855;}export async function writeRulesFile(_0x45109f){const _0x69dd45=a257_0x4fbef3,_0x3cade0=await fetchRulesFromCDN()[_0x69dd45(0x1dd)](()=>null);let _0x5a220b;_0x3cade0?(_0x5a220b=_0x3cade0[_0x69dd45(0x1d5)],_0x3cade0[_0x69dd45(0x1e3)]&&(_0x5a220b=appendUpdateTime(_0x5a220b,_0x3cade0[_0x69dd45(0x1e3)]))):_0x5a220b=readLocalTemplate();const _0x55240=dirname(_0x45109f);!existsSync(_0x55240)&&mkdirSync(_0x55240,{'recursive':!![]}),writeFileSync(_0x45109f,_0x5a220b,_0x69dd45(0x1d4));}export async function copyRulesToCursor(_0x456f8d){const _0x1a3fc0=a257_0x4fbef3,_0x23e9e5=join(_0x456f8d,_0x1a3fc0(0x1d7)),_0x5deb60=join(_0x23e9e5,'lovrabet_rules.mdc');if(existsSync(_0x5deb60))return![];return await writeRulesFile(_0x5deb60),!![];}function a257_0x3f00(){const _0x360a00=['application/json','../../templates/rules/lovrabet_rules.mdc.tpl','40kGwkkQ','utf-8','content','48438CFgSLx','.cursor/rules','statusText','1366265ofHIXq','175XsWdFu','3539dtiELE','/rules/rules.json','catch','string','本地模板文件不存在:\x20','5380976Phvczy','82610fjhBrK','25204ONocGL','lastUpdated','5643135AFVOCV','2431tGOzye','json','165uqfBVp'];a257_0x3f00=function(){return _0x360a00;};return a257_0x3f00();}export async function copyRulesToAgentsMd(_0x2d638f){const _0x2d0da3=join(_0x2d638f,'agents.md');if(existsSync(_0x2d0da3))return![];return await writeRulesFile(_0x2d0da3),!![];}
@@ -1 +1 @@
1
- export function sleep(_0x364d81){return new Promise(_0x1d2e5f=>setTimeout(_0x1d2e5f,_0x364d81));}
1
+ export function sleep(_0x526866){return new Promise(_0xcfa461=>setTimeout(_0xcfa461,_0x526866));}
@@ -1 +1 @@
1
- const a258_0x150312=a258_0x5193;(function(_0x263080,_0x55e335){const _0x2400d9=a258_0x5193,_0xacff53=_0x263080();while(!![]){try{const _0x58f737=-parseInt(_0x2400d9(0xd9))/0x1+-parseInt(_0x2400d9(0xd4))/0x2*(parseInt(_0x2400d9(0xd2))/0x3)+-parseInt(_0x2400d9(0xd1))/0x4+parseInt(_0x2400d9(0xef))/0x5*(-parseInt(_0x2400d9(0xfb))/0x6)+parseInt(_0x2400d9(0xf1))/0x7*(parseInt(_0x2400d9(0xde))/0x8)+parseInt(_0x2400d9(0xf3))/0x9*(-parseInt(_0x2400d9(0xf8))/0xa)+parseInt(_0x2400d9(0xe7))/0xb;if(_0x58f737===_0x55e335)break;else _0xacff53['push'](_0xacff53['shift']());}catch(_0x3cc62e){_0xacff53['push'](_0xacff53['shift']());}}}(a258_0xea6c,0x55dda));import a258_0x37856b from'node:fs';import a258_0x25bdbc from'node:path';function a258_0xea6c(){const _0x473b2f=['3pYJPmG','copyFile','275778QEZAkL','\x0a\x20\x20\x20\x20{\x20','includes','padStart','.ts','75784cUKuRl','LOVRABET','endsWith','processFile','processTemplate','34312BrubVa','replaceContent','toLowerCase','datasetCode:\x20\x22','writeFile','error','.jsx','.js','开始处理模板内容替换','6456571aOObpC','default','tableName:\x20\x22','tableName','alias','formatLocalTimestamp','getHours','模板内容替换完成','29985dbgCXw','pop','1113eWUenQ','getSeconds','585IrcJry','processDirectory','join','template','\x20},','56410mzECPi','pad','.scss','84HXppso','模板内容替换失败','.json','.tpl','slice','replace','success','getMinutes','.tsx','now','message','getFullYear','push','getDate','promises','name','map','charAt','split','readFile','1011640XuAUPV'];a258_0xea6c=function(){return _0x473b2f;};return a258_0xea6c();}import{logger}from'../utils/logger.js';import{getCliVersion}from'../utils/version.js';function a258_0x5193(_0x168bb2,_0x2a33bf){_0x168bb2=_0x168bb2-0xc3;const _0xea6c6c=a258_0xea6c();let _0x51934d=_0xea6c6c[_0x168bb2];return _0x51934d;}const CLI_VERSION=getCliVersion();export class TemplateReplacer{static[a258_0x150312(0xf9)](_0x126a59){const _0x5ae464=a258_0x150312;return String(_0x126a59)[_0x5ae464(0xd7)](0x2,'0');}static[a258_0x150312(0xec)](_0x132293){const _0x37fc27=a258_0x150312,_0x150510=_0x132293[_0x37fc27(0xc8)](),_0x3ba8c3=this[_0x37fc27(0xf9)](_0x132293['getMonth']()+0x1),_0x76537f=this[_0x37fc27(0xf9)](_0x132293[_0x37fc27(0xca)]()),_0x4c122a=this[_0x37fc27(0xf9)](_0x132293[_0x37fc27(0xed)]()),_0x325ff0=this[_0x37fc27(0xf9)](_0x132293[_0x37fc27(0xc4)]()),_0x207c5c=this['pad'](_0x132293[_0x37fc27(0xf2)]());return{'createdAt':_0x150510+'-'+_0x3ba8c3+'-'+_0x76537f+'\x20'+_0x4c122a+':'+_0x325ff0+':'+_0x207c5c,'createdDate':_0x150510+'-'+_0x3ba8c3+'-'+_0x76537f,'createdTime':_0x4c122a+':'+_0x325ff0+':'+_0x207c5c};}static['toComponentName'](_0x2548fa){const _0x29bc85=a258_0x150312,_0x5436ce=_0x2548fa[_0x29bc85(0xcf)]('/')[_0x29bc85(0xf0)]()||_0x2548fa;return _0x5436ce[_0x29bc85(0xcf)]('-')[_0x29bc85(0xcd)](_0x3fbcfc=>_0x3fbcfc[_0x29bc85(0xce)](0x0)['toUpperCase']()+_0x3fbcfc[_0x29bc85(0xff)](0x1)[_0x29bc85(0xe0)]())[_0x29bc85(0xf5)]('');}static['toDisplayTitle'](_0x2c153a){const _0x1bd40e=a258_0x150312,_0x2cd3ec=_0x2c153a[_0x1bd40e(0xcf)]('/')[_0x1bd40e(0xf0)]()||_0x2c153a;return _0x2cd3ec[_0x1bd40e(0xcf)]('-')['map'](_0x566f24=>_0x566f24[_0x1bd40e(0xce)](0x0)['toUpperCase']()+_0x566f24[_0x1bd40e(0xff)](0x1)['toLowerCase']())[_0x1bd40e(0xf5)]('\x20');}static['replaceContent'](_0x135c05,_0x3fdb8a,_0x26bac3){const _0x2d1f62=a258_0x150312,_0xc3608c=this['toComponentName'](_0x3fdb8a),_0xb20fa8=this['toDisplayTitle'](_0x3fdb8a),{createdAt:_0x2ae2fd,createdDate:_0x26517e,createdTime:_0x153d3d}=this[_0x2d1f62(0xec)](new Date());let _0x348de6=_0x135c05['replace'](/\{CliVersion\}/g,CLI_VERSION)[_0x2d1f62(0x100)](/\{ComponentName\}/g,_0xc3608c)[_0x2d1f62(0x100)](/\{DisplayTitle\}/g,_0xb20fa8)[_0x2d1f62(0x100)](/\{PageName\}/g,_0x3fdb8a)[_0x2d1f62(0x100)](/\{TemplateName\}/g,_0x26bac3)[_0x2d1f62(0x100)](/\{CreatedAt\}/g,_0x2ae2fd)[_0x2d1f62(0x100)](/\{CreatedDate\}/g,_0x26517e)[_0x2d1f62(0x100)](/\{CreatedTime\}/g,_0x153d3d);return _0x348de6;}static['replaceApiContent'](_0x8e5894,_0xb811a,_0x37459a,_0x1dc7fe,_0x31ee07,_0xd5f4a1,_0x3acfc0,_0x22f235){const _0x6a1bf2=a258_0x150312,_0xc78f8d=new Date(),_0x4ea695=_0xc78f8d['toISOString'](),_0x469a70=_0x37459a[_0x6a1bf2(0xcd)](_0x5d58f2=>{const _0x2b4f93=_0x6a1bf2,_0x2d659a=[_0x2b4f93(0xe1)+_0x5d58f2['datasetCode']+'\x22',_0x2b4f93(0xe9)+_0x5d58f2[_0x2b4f93(0xea)]+'\x22','name:\x20\x22'+_0x5d58f2['name']+'\x22'];return _0x5d58f2['alias']&&_0x2d659a[_0x2b4f93(0xc9)]('alias:\x20\x22'+_0x5d58f2['alias']+'\x22'),_0x2b4f93(0xd5)+_0x2d659a[_0x2b4f93(0xf5)](',\x20')+_0x2b4f93(0xf7);})[_0x6a1bf2(0xf5)](''),_0x455d5a=_0x1dc7fe||_0x37459a[0x0]?.[_0x6a1bf2(0xeb)]||'YourModel';let _0x50f313=_0x8e5894[_0x6a1bf2(0x100)](/\{AppCode\}/g,_0xb811a)[_0x6a1bf2(0x100)](/\{ModelConfigs\}/g,_0x469a70)[_0x6a1bf2(0x100)](/\{ExampleModelName\}/g,_0x455d5a)[_0x6a1bf2(0x100)](/\{ApiFileName\}/g,_0x31ee07||'api')['replace'](/\{ConfigName\}/g,_0xd5f4a1||_0x6a1bf2(0xe8))[_0x6a1bf2(0x100)](/\{ClientConfigParam\}/g,_0x3acfc0||'')['replace'](/\{VarPrefix\}/g,_0x22f235||_0x6a1bf2(0xda))[_0x6a1bf2(0x100)](/\{CreatedAt\}/g,_0x4ea695);return _0x50f313;}static async[a258_0x150312(0xdd)](_0xc8a5f,_0x33b1c4,_0x2d79bc,_0x585c70,_0x979f61=!![]){const _0x3ba163=a258_0x150312,_0x240a77=Date['now']();try{_0x979f61&&logger['info'](_0x3ba163(0xf6),_0x3ba163(0xe6),{'templatePath':_0xc8a5f,'targetPath':_0x33b1c4,'pageName':_0x2d79bc,'templateName':_0x585c70});await a258_0x37856b[_0x3ba163(0xcb)]['mkdir'](_0x33b1c4,{'recursive':!![]}),await this[_0x3ba163(0xf4)](_0xc8a5f,_0x33b1c4,_0x2d79bc,_0x585c70);if(_0x979f61){const _0x49cb6d=Date[_0x3ba163(0xc6)]()-_0x240a77;logger[_0x3ba163(0xc3)](_0x3ba163(0xf6),_0x3ba163(0xee),_0x49cb6d,{'pageName':_0x2d79bc,'templateName':_0x585c70});}}catch(_0x18ebda){if(_0x979f61){const _0x3a1ad3=Date[_0x3ba163(0xc6)]()-_0x240a77;logger[_0x3ba163(0xe3)](_0x3ba163(0xf6),_0x3ba163(0xfc),{'templatePath':_0xc8a5f,'targetPath':_0x33b1c4,'pageName':_0x2d79bc,'templateName':_0x585c70,'error':_0x18ebda instanceof Error?_0x18ebda[_0x3ba163(0xc7)]:String(_0x18ebda),'duration':_0x3a1ad3});}throw _0x18ebda;}}static async['processDirectory'](_0x4a4d2e,_0x15d974,_0x43b3ca,_0xce0992){const _0x2f614f=a258_0x150312,_0x49d6da=await a258_0x37856b[_0x2f614f(0xcb)]['readdir'](_0x4a4d2e,{'withFileTypes':!![]});for(const _0x1e5573 of _0x49d6da){const _0x3ad1fb=a258_0x25bdbc[_0x2f614f(0xf5)](_0x4a4d2e,_0x1e5573[_0x2f614f(0xcc)]);let _0x60a02c=a258_0x25bdbc[_0x2f614f(0xf5)](_0x15d974,_0x1e5573['name']);_0x1e5573[_0x2f614f(0xcc)][_0x2f614f(0xdb)](_0x2f614f(0xfe))&&(_0x60a02c=a258_0x25bdbc[_0x2f614f(0xf5)](_0x15d974,_0x1e5573[_0x2f614f(0xcc)][_0x2f614f(0x100)](/\.tpl$/,'')));if(_0x1e5573['isDirectory']())await a258_0x37856b[_0x2f614f(0xcb)]['mkdir'](_0x60a02c,{'recursive':!![]}),await this[_0x2f614f(0xf4)](_0x3ad1fb,_0x60a02c,_0x43b3ca,_0xce0992);else _0x1e5573['isFile']()&&await this['processFile'](_0x3ad1fb,_0x60a02c,_0x43b3ca,_0xce0992);}}static async[a258_0x150312(0xdc)](_0x57f4e2,_0x30ee03,_0x2e0acb,_0xc152c1){const _0x146744=a258_0x150312,_0x1c41af=a258_0x25bdbc['extname'](_0x57f4e2)['toLowerCase']();_0x57f4e2[_0x146744(0xdb)](_0x146744(0xfe))&&(_0x30ee03=_0x30ee03['replace'](/\.tpl$/,''));const _0x34dd64=[_0x146744(0xc5),_0x146744(0xd8),_0x146744(0xe4),_0x146744(0xe5),_0x146744(0xfd),'.md','.css',_0x146744(0xfa),_0x146744(0xfe)];if(_0x34dd64[_0x146744(0xd6)](_0x1c41af)||_0x57f4e2[_0x146744(0xdb)](_0x146744(0xfe))){const _0x495716=await a258_0x37856b['promises'][_0x146744(0xd0)](_0x57f4e2,'utf8'),_0x58a051=this[_0x146744(0xdf)](_0x495716,_0x2e0acb,_0xc152c1);await a258_0x37856b[_0x146744(0xcb)][_0x146744(0xe2)](_0x30ee03,_0x58a051,'utf8');}else await a258_0x37856b[_0x146744(0xcb)][_0x146744(0xd3)](_0x57f4e2,_0x30ee03);}}
1
+ const a259_0x3febde=a259_0x1327;function a259_0x5d25(){const _0x15229a=['copyFile','YourModel','pop','readFile','message','pad','18GjXfiE','.js','toComponentName','isFile','template','getMinutes','.json','processFile','alias:\x20\x22','toLowerCase','开始处理模板内容替换','\x20},','toDisplayTitle','name:\x20\x22','.tpl','name','.scss','11UkQrud','promises','extname','datasetCode','alias','11196333sKBGeB','processDirectory','LOVRABET','mkdir','map','getHours','1115528dibuqg','charAt','tableName:\x20\x22','formatLocalTimestamp','12517370ymCCUS','getDate','replaceContent','slice','tableName','3476564UYAJcJ','api','success','replace','10GniHpy','processTemplate','now','toUpperCase','toISOString','.css','.ts','3109764LkRwvL','push','default','split','8VyWxIF','datasetCode:\x20\x22','join','模板内容替换完成','459529NyxZGa','isDirectory','501588IYqJnN','getMonth','utf8'];a259_0x5d25=function(){return _0x15229a;};return a259_0x5d25();}(function(_0x325860,_0x5e8cd1){const _0x22ea3c=a259_0x1327,_0x15a6b9=_0x325860();while(!![]){try{const _0x558beb=parseInt(_0x22ea3c(0x207))/0x1+parseInt(_0x22ea3c(0x212))/0x2*(-parseInt(_0x22ea3c(0x209))/0x3)+parseInt(_0x22ea3c(0x1eb))/0x4+-parseInt(_0x22ea3c(0x1f8))/0x5*(-parseInt(_0x22ea3c(0x1ff))/0x6)+parseInt(_0x22ea3c(0x1f4))/0x7+-parseInt(_0x22ea3c(0x203))/0x8*(parseInt(_0x22ea3c(0x1e5))/0x9)+-parseInt(_0x22ea3c(0x1ef))/0xa*(-parseInt(_0x22ea3c(0x1e0))/0xb);if(_0x558beb===_0x5e8cd1)break;else _0x15a6b9['push'](_0x15a6b9['shift']());}catch(_0x3c21e9){_0x15a6b9['push'](_0x15a6b9['shift']());}}}(a259_0x5d25,0xbd1bb));import a259_0x5d0ab1 from'node:fs';import a259_0x3f03c3 from'node:path';import{logger}from'../utils/logger.js';import{getCliVersion}from'../utils/version.js';const CLI_VERSION=getCliVersion();function a259_0x1327(_0x533d73,_0x5d329d){_0x533d73=_0x533d73-0x1dc;const _0x5d25c7=a259_0x5d25();let _0x132740=_0x5d25c7[_0x533d73];return _0x132740;}export class TemplateReplacer{static[a259_0x3febde(0x211)](_0x1c417c){return String(_0x1c417c)['padStart'](0x2,'0');}static['formatLocalTimestamp'](_0x10cf05){const _0x21bb9f=a259_0x3febde,_0x375b4a=_0x10cf05['getFullYear'](),_0x25ad45=this['pad'](_0x10cf05[_0x21bb9f(0x20a)]()+0x1),_0x2d6ea0=this[_0x21bb9f(0x211)](_0x10cf05[_0x21bb9f(0x1f0)]()),_0x510e99=this[_0x21bb9f(0x211)](_0x10cf05[_0x21bb9f(0x1ea)]()),_0x117590=this[_0x21bb9f(0x211)](_0x10cf05[_0x21bb9f(0x217)]()),_0x5076ff=this[_0x21bb9f(0x211)](_0x10cf05['getSeconds']());return{'createdAt':_0x375b4a+'-'+_0x25ad45+'-'+_0x2d6ea0+'\x20'+_0x510e99+':'+_0x117590+':'+_0x5076ff,'createdDate':_0x375b4a+'-'+_0x25ad45+'-'+_0x2d6ea0,'createdTime':_0x510e99+':'+_0x117590+':'+_0x5076ff};}static[a259_0x3febde(0x214)](_0x120dab){const _0x340e25=a259_0x3febde,_0x137138=_0x120dab[_0x340e25(0x202)]('/')[_0x340e25(0x20e)]()||_0x120dab;return _0x137138[_0x340e25(0x202)]('-')[_0x340e25(0x1e9)](_0x28c29a=>_0x28c29a[_0x340e25(0x1ec)](0x0)[_0x340e25(0x1fb)]()+_0x28c29a[_0x340e25(0x1f2)](0x1)[_0x340e25(0x21b)]())[_0x340e25(0x205)]('');}static[a259_0x3febde(0x21e)](_0x345cc2){const _0x4c11ec=a259_0x3febde,_0x34acbe=_0x345cc2[_0x4c11ec(0x202)]('/')[_0x4c11ec(0x20e)]()||_0x345cc2;return _0x34acbe[_0x4c11ec(0x202)]('-')['map'](_0x673027=>_0x673027[_0x4c11ec(0x1ec)](0x0)[_0x4c11ec(0x1fb)]()+_0x673027[_0x4c11ec(0x1f2)](0x1)['toLowerCase']())[_0x4c11ec(0x205)]('\x20');}static[a259_0x3febde(0x1f1)](_0x342d99,_0x41cbd7,_0x4d1434){const _0x3dcf96=a259_0x3febde,_0x9bbb6b=this['toComponentName'](_0x41cbd7),_0x393d4a=this[_0x3dcf96(0x21e)](_0x41cbd7),{createdAt:_0x2a186e,createdDate:_0x536312,createdTime:_0x3f7a19}=this[_0x3dcf96(0x1ee)](new Date());let _0x29d570=_0x342d99[_0x3dcf96(0x1f7)](/\{CliVersion\}/g,CLI_VERSION)[_0x3dcf96(0x1f7)](/\{ComponentName\}/g,_0x9bbb6b)[_0x3dcf96(0x1f7)](/\{DisplayTitle\}/g,_0x393d4a)[_0x3dcf96(0x1f7)](/\{PageName\}/g,_0x41cbd7)['replace'](/\{TemplateName\}/g,_0x4d1434)[_0x3dcf96(0x1f7)](/\{CreatedAt\}/g,_0x2a186e)['replace'](/\{CreatedDate\}/g,_0x536312)[_0x3dcf96(0x1f7)](/\{CreatedTime\}/g,_0x3f7a19);return _0x29d570;}static['replaceApiContent'](_0x574783,_0x2bc3f1,_0x1c03d8,_0x50b450,_0x11a439,_0x206029,_0x4e788b,_0x42b295){const _0x92b06c=a259_0x3febde,_0x3633b7=new Date(),_0x40bea2=_0x3633b7[_0x92b06c(0x1fc)](),_0x2e3694=_0x1c03d8['map'](_0xd5606e=>{const _0x5b1f80=_0x92b06c,_0x12156d=[_0x5b1f80(0x204)+_0xd5606e[_0x5b1f80(0x1e3)]+'\x22',_0x5b1f80(0x1ed)+_0xd5606e[_0x5b1f80(0x1f3)]+'\x22',_0x5b1f80(0x1dc)+_0xd5606e[_0x5b1f80(0x1de)]+'\x22'];return _0xd5606e[_0x5b1f80(0x1e4)]&&_0x12156d[_0x5b1f80(0x200)](_0x5b1f80(0x21a)+_0xd5606e[_0x5b1f80(0x1e4)]+'\x22'),'\x0a\x20\x20\x20\x20{\x20'+_0x12156d[_0x5b1f80(0x205)](',\x20')+_0x5b1f80(0x21d);})[_0x92b06c(0x205)](''),_0xd5aa0f=_0x50b450||_0x1c03d8[0x0]?.[_0x92b06c(0x1e4)]||_0x92b06c(0x20d);let _0x3e8e57=_0x574783[_0x92b06c(0x1f7)](/\{AppCode\}/g,_0x2bc3f1)['replace'](/\{ModelConfigs\}/g,_0x2e3694)[_0x92b06c(0x1f7)](/\{ExampleModelName\}/g,_0xd5aa0f)[_0x92b06c(0x1f7)](/\{ApiFileName\}/g,_0x11a439||_0x92b06c(0x1f5))[_0x92b06c(0x1f7)](/\{ConfigName\}/g,_0x206029||_0x92b06c(0x201))[_0x92b06c(0x1f7)](/\{ClientConfigParam\}/g,_0x4e788b||'')[_0x92b06c(0x1f7)](/\{VarPrefix\}/g,_0x42b295||_0x92b06c(0x1e7))['replace'](/\{CreatedAt\}/g,_0x40bea2);return _0x3e8e57;}static async[a259_0x3febde(0x1f9)](_0x188525,_0x2080d9,_0x3f9b31,_0x4313b3,_0x5ca6ac=!![]){const _0x14fd73=a259_0x3febde,_0x44eca2=Date[_0x14fd73(0x1fa)]();try{_0x5ca6ac&&logger['info'](_0x14fd73(0x216),_0x14fd73(0x21c),{'templatePath':_0x188525,'targetPath':_0x2080d9,'pageName':_0x3f9b31,'templateName':_0x4313b3});await a259_0x5d0ab1[_0x14fd73(0x1e1)][_0x14fd73(0x1e8)](_0x2080d9,{'recursive':!![]}),await this['processDirectory'](_0x188525,_0x2080d9,_0x3f9b31,_0x4313b3);if(_0x5ca6ac){const _0x286bf1=Date['now']()-_0x44eca2;logger[_0x14fd73(0x1f6)]('template',_0x14fd73(0x206),_0x286bf1,{'pageName':_0x3f9b31,'templateName':_0x4313b3});}}catch(_0x1074de){if(_0x5ca6ac){const _0x2c3768=Date[_0x14fd73(0x1fa)]()-_0x44eca2;logger['error'](_0x14fd73(0x216),'模板内容替换失败',{'templatePath':_0x188525,'targetPath':_0x2080d9,'pageName':_0x3f9b31,'templateName':_0x4313b3,'error':_0x1074de instanceof Error?_0x1074de[_0x14fd73(0x210)]:String(_0x1074de),'duration':_0x2c3768});}throw _0x1074de;}}static async[a259_0x3febde(0x1e6)](_0x2f305b,_0x31277b,_0x1c433b,_0x259299){const _0x1ab88b=a259_0x3febde,_0x4aafaa=await a259_0x5d0ab1[_0x1ab88b(0x1e1)]['readdir'](_0x2f305b,{'withFileTypes':!![]});for(const _0x450f35 of _0x4aafaa){const _0x1e5a5c=a259_0x3f03c3[_0x1ab88b(0x205)](_0x2f305b,_0x450f35['name']);let _0x470788=a259_0x3f03c3['join'](_0x31277b,_0x450f35[_0x1ab88b(0x1de)]);_0x450f35[_0x1ab88b(0x1de)]['endsWith']('.tpl')&&(_0x470788=a259_0x3f03c3[_0x1ab88b(0x205)](_0x31277b,_0x450f35[_0x1ab88b(0x1de)]['replace'](/\.tpl$/,'')));if(_0x450f35[_0x1ab88b(0x208)]())await a259_0x5d0ab1[_0x1ab88b(0x1e1)][_0x1ab88b(0x1e8)](_0x470788,{'recursive':!![]}),await this[_0x1ab88b(0x1e6)](_0x1e5a5c,_0x470788,_0x1c433b,_0x259299);else _0x450f35[_0x1ab88b(0x215)]()&&await this[_0x1ab88b(0x219)](_0x1e5a5c,_0x470788,_0x1c433b,_0x259299);}}static async[a259_0x3febde(0x219)](_0x117151,_0x384ec7,_0x406068,_0x4ffa06){const _0x11c4f1=a259_0x3febde,_0xbdf09b=a259_0x3f03c3[_0x11c4f1(0x1e2)](_0x117151)[_0x11c4f1(0x21b)]();_0x117151['endsWith'](_0x11c4f1(0x1dd))&&(_0x384ec7=_0x384ec7[_0x11c4f1(0x1f7)](/\.tpl$/,''));const _0x51dd99=['.tsx',_0x11c4f1(0x1fe),'.jsx',_0x11c4f1(0x213),_0x11c4f1(0x218),'.md',_0x11c4f1(0x1fd),_0x11c4f1(0x1df),_0x11c4f1(0x1dd)];if(_0x51dd99['includes'](_0xbdf09b)||_0x117151['endsWith'](_0x11c4f1(0x1dd))){const _0x58aec5=await a259_0x5d0ab1['promises'][_0x11c4f1(0x20f)](_0x117151,'utf8'),_0x12b3fe=this[_0x11c4f1(0x1f1)](_0x58aec5,_0x406068,_0x4ffa06);await a259_0x5d0ab1[_0x11c4f1(0x1e1)]['writeFile'](_0x384ec7,_0x12b3fe,_0x11c4f1(0x20b));}else await a259_0x5d0ab1['promises'][_0x11c4f1(0x20c)](_0x117151,_0x384ec7);}}
@@ -1 +1 @@
1
- function a259_0x13ec(_0x53a133,_0x223f46){_0x53a133=_0x53a133-0x14a;const _0x3f3fdf=a259_0x3f3f();let _0x13ec20=_0x3f3fdf[_0x53a133];return _0x13ec20;}(function(_0x52fe4c,_0x319e49){const _0x3fe41f=a259_0x13ec,_0xf480aa=_0x52fe4c();while(!![]){try{const _0x84ac57=parseInt(_0x3fe41f(0x156))/0x1+-parseInt(_0x3fe41f(0x14a))/0x2*(parseInt(_0x3fe41f(0x162))/0x3)+parseInt(_0x3fe41f(0x163))/0x4+parseInt(_0x3fe41f(0x157))/0x5*(parseInt(_0x3fe41f(0x15d))/0x6)+parseInt(_0x3fe41f(0x159))/0x7*(parseInt(_0x3fe41f(0x15a))/0x8)+-parseInt(_0x3fe41f(0x161))/0x9+parseInt(_0x3fe41f(0x15f))/0xa*(parseInt(_0x3fe41f(0x160))/0xb);if(_0x84ac57===_0x319e49)break;else _0xf480aa['push'](_0xf480aa['shift']());}catch(_0x5d7adc){_0xf480aa['push'](_0xf480aa['shift']());}}}(a259_0x3f3f,0x35002));import{mkdir,readFile,writeFile}from'node:fs/promises';import{homedir}from'node:os';import{dirname,join}from'node:path';import a259_0xbe647 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 _0x3caf6f=a259_0x13ec,_0x14d9e1=process.env.RABETBASE_NO_UPDATE_NOTICE?.[_0x3caf6f(0x164)]()['toLowerCase']();return _0x14d9e1==='1'||_0x14d9e1===_0x3caf6f(0x153)||_0x14d9e1===_0x3caf6f(0x14f);}function cacheRoot(){const _0x2bb295=a259_0x13ec;return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),_0x2bb295(0x167));}export function getUpdateNoticeCachePath(){const _0x3dd78a=a259_0x13ec;return join(cacheRoot(),_0x3dd78a(0x166),_0x3dd78a(0x14b));}function a259_0x3f3f(){const _0x19545f=['parse','rabetbase-cli','.cache','lastNotifiedAt','214zKhvND','update-check.json','stringify','now','checkedAt','yes','https://www.npmjs.com/package/','lastNotifiedVersion','stableVersion','true','latest','\x20available,\x20current\x20','176440tmZHCq','60460ZPDvON','valid','17486lGgIfO','816FcZnqd','utf8','number','192LgKThF','object','124130fFquAR','33pHZYWg','3525885RWjjrI','11451mQkoXD','647420mhciEs','trim'];a259_0x3f3f=function(){return _0x19545f;};return a259_0x3f3f();}async function readUpdateNoticeCache(){const _0x244714=a259_0x13ec;try{const _0x48190a=await readFile(getUpdateNoticeCachePath(),_0x244714(0x15b)),_0x2276e0=JSON[_0x244714(0x165)](_0x48190a);if(!_0x2276e0||typeof _0x2276e0!==_0x244714(0x15e))return{};return _0x2276e0;}catch{return{};}}async function writeUpdateNoticeCache(_0xb85cd6){const _0x4fd47a=a259_0x13ec;try{const _0x3ac1f3=getUpdateNoticeCachePath();await mkdir(dirname(_0x3ac1f3),{'recursive':!![]}),await writeFile(_0x3ac1f3,JSON[_0x4fd47a(0x14c)](_0xb85cd6,null,0x2)+'\x0a',_0x4fd47a(0x15b));}catch{}}function isFreshCheck(_0x4af8e9,_0x3a8a02){const _0x3d851e=a259_0x13ec;return typeof _0x4af8e9[_0x3d851e(0x14e)]===_0x3d851e(0x15c)&&_0x3a8a02-_0x4af8e9[_0x3d851e(0x14e)]<UPDATE_CHECK_TTL_MS;}function isRecentlyNotified(_0x505b79,_0x4e6a07,_0x3d6972){const _0x5df372=a259_0x13ec;return _0x505b79[_0x5df372(0x151)]===_0x4e6a07&&typeof _0x505b79[_0x5df372(0x168)]==='number'&&_0x3d6972-_0x505b79[_0x5df372(0x168)]<UPDATE_NOTICE_TTL_MS;}export function buildNpmVersionUrl(_0x1fc141){const _0x2e2636=a259_0x13ec;return _0x2e2636(0x150)+NPM_PACKAGE_NAME+'/v/'+_0x1fc141;}export async function resolveLatestUpdateNotice(){const _0x289470=a259_0x13ec;if(isUpdateNoticeDisabled())return null;try{const _0x13cfb0=Date[_0x289470(0x14d)](),_0x5ae61d=getCliVersion(),_0x23404c=await readUpdateNoticeCache();let _0x2b4e89=isFreshCheck(_0x23404c,_0x13cfb0)?_0x23404c[_0x289470(0x154)]?.[_0x289470(0x164)]():undefined;if(!_0x2b4e89&&!isFreshCheck(_0x23404c,_0x13cfb0)){const _0x152f6c=await getCliVersionPolicy();_0x2b4e89=_0x152f6c?.[_0x289470(0x152)]?.[_0x289470(0x164)]()||undefined,await writeUpdateNoticeCache({..._0x23404c,'checkedAt':_0x13cfb0,'latest':_0x2b4e89,'failed':!_0x2b4e89});}if(!_0x2b4e89||!a259_0xbe647['valid'](_0x5ae61d)||!a259_0xbe647[_0x289470(0x158)](_0x2b4e89))return null;if(a259_0xbe647['gte'](_0x5ae61d,_0x2b4e89))return null;if(isRecentlyNotified(_0x23404c,_0x2b4e89,_0x13cfb0))return null;const _0x35593d=CLI_BIN_NAME+'\x20update';return await writeUpdateNoticeCache({..._0x23404c,'checkedAt':isFreshCheck(_0x23404c,_0x13cfb0)?_0x23404c[_0x289470(0x14e)]:_0x13cfb0,'latest':_0x2b4e89,'failed':![],'lastNotifiedVersion':_0x2b4e89,'lastNotifiedAt':_0x13cfb0}),{'command':_0x35593d,'current':_0x5ae61d,'latest':_0x2b4e89,'url':buildNpmVersionUrl(_0x2b4e89),'message':CLI_BIN_NAME+'\x20'+_0x2b4e89+_0x289470(0x155)+_0x5ae61d+',\x20run:\x20'+_0x35593d};}catch{return null;}}
1
+ (function(_0x17a63f,_0x149470){const _0x339d8e=a260_0x17ef,_0x4bca1a=_0x17a63f();while(!![]){try{const _0x5779cf=parseInt(_0x339d8e(0x170))/0x1+parseInt(_0x339d8e(0x184))/0x2*(-parseInt(_0x339d8e(0x176))/0x3)+-parseInt(_0x339d8e(0x171))/0x4+parseInt(_0x339d8e(0x17e))/0x5+-parseInt(_0x339d8e(0x172))/0x6*(parseInt(_0x339d8e(0x174))/0x7)+-parseInt(_0x339d8e(0x17a))/0x8*(-parseInt(_0x339d8e(0x173))/0x9)+parseInt(_0x339d8e(0x16a))/0xa*(parseInt(_0x339d8e(0x17c))/0xb);if(_0x5779cf===_0x149470)break;else _0x4bca1a['push'](_0x4bca1a['shift']());}catch(_0x4bc968){_0x4bca1a['push'](_0x4bca1a['shift']());}}}(a260_0x2848,0x412ac));import{mkdir,readFile,writeFile}from'node:fs/promises';import{homedir}from'node:os';function a260_0x17ef(_0x1d6f7a,_0x1ae9a6){_0x1d6f7a=_0x1d6f7a-0x169;const _0x284838=a260_0x2848();let _0x17efc7=_0x284838[_0x1d6f7a];return _0x17efc7;}import{dirname,join}from'node:path';function a260_0x2848(){const _0x408f4a=['toLowerCase','584180uRYZoD','rabetbase-cli','trim','utf8','valid','now','11090CnOOaa','latest','392650PrQSKr','update-check.json','.cache','checkedAt','stringify','true','63950NeLfUL','899804BPbPpu','12HHWKgx','9iFHRLj','758107NFqhbO','number','243XbeIDm','gte','https://www.npmjs.com/package/','yes','904048PeMeNT','lastNotifiedAt','242OlrxIh'];a260_0x2848=function(){return _0x408f4a;};return a260_0x2848();}import a260_0x230817 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 _0x26b168=a260_0x17ef,_0x201ec9=process.env.RABETBASE_NO_UPDATE_NOTICE?.['trim']()[_0x26b168(0x17d)]();return _0x201ec9==='1'||_0x201ec9===_0x26b168(0x16f)||_0x201ec9===_0x26b168(0x179);}function cacheRoot(){const _0x1c53b3=a260_0x17ef;return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),_0x1c53b3(0x16c));}export function getUpdateNoticeCachePath(){const _0x3cfd7e=a260_0x17ef;return join(cacheRoot(),_0x3cfd7e(0x17f),_0x3cfd7e(0x16b));}async function readUpdateNoticeCache(){const _0x57c105=a260_0x17ef;try{const _0x111eb0=await readFile(getUpdateNoticeCachePath(),_0x57c105(0x181)),_0x1ba8b9=JSON['parse'](_0x111eb0);if(!_0x1ba8b9||typeof _0x1ba8b9!=='object')return{};return _0x1ba8b9;}catch{return{};}}async function writeUpdateNoticeCache(_0x4f49df){const _0x4168ad=a260_0x17ef;try{const _0xcc26ad=getUpdateNoticeCachePath();await mkdir(dirname(_0xcc26ad),{'recursive':!![]}),await writeFile(_0xcc26ad,JSON[_0x4168ad(0x16e)](_0x4f49df,null,0x2)+'\x0a',_0x4168ad(0x181));}catch{}}function isFreshCheck(_0x3a13ed,_0x5025f4){const _0x340256=a260_0x17ef;return typeof _0x3a13ed[_0x340256(0x16d)]===_0x340256(0x175)&&_0x5025f4-_0x3a13ed[_0x340256(0x16d)]<UPDATE_CHECK_TTL_MS;}function isRecentlyNotified(_0x3ca8fe,_0x3c1141,_0xcb2e15){const _0x2226cf=a260_0x17ef;return _0x3ca8fe['lastNotifiedVersion']===_0x3c1141&&typeof _0x3ca8fe[_0x2226cf(0x17b)]==='number'&&_0xcb2e15-_0x3ca8fe[_0x2226cf(0x17b)]<UPDATE_NOTICE_TTL_MS;}export function buildNpmVersionUrl(_0x3982d5){const _0x3e5778=a260_0x17ef;return _0x3e5778(0x178)+NPM_PACKAGE_NAME+'/v/'+_0x3982d5;}export async function resolveLatestUpdateNotice(){const _0x4a953e=a260_0x17ef;if(isUpdateNoticeDisabled())return null;try{const _0x3e3899=Date[_0x4a953e(0x183)](),_0x4cf39b=getCliVersion(),_0x3d439b=await readUpdateNoticeCache();let _0x160a4d=isFreshCheck(_0x3d439b,_0x3e3899)?_0x3d439b[_0x4a953e(0x169)]?.['trim']():undefined;if(!_0x160a4d&&!isFreshCheck(_0x3d439b,_0x3e3899)){const _0x66979f=await getCliVersionPolicy();_0x160a4d=_0x66979f?.['stableVersion']?.[_0x4a953e(0x180)]()||undefined,await writeUpdateNoticeCache({..._0x3d439b,'checkedAt':_0x3e3899,'latest':_0x160a4d,'failed':!_0x160a4d});}if(!_0x160a4d||!a260_0x230817['valid'](_0x4cf39b)||!a260_0x230817[_0x4a953e(0x182)](_0x160a4d))return null;if(a260_0x230817[_0x4a953e(0x177)](_0x4cf39b,_0x160a4d))return null;if(isRecentlyNotified(_0x3d439b,_0x160a4d,_0x3e3899))return null;const _0x1ee03a=CLI_BIN_NAME+'\x20update';return await writeUpdateNoticeCache({..._0x3d439b,'checkedAt':isFreshCheck(_0x3d439b,_0x3e3899)?_0x3d439b[_0x4a953e(0x16d)]:_0x3e3899,'latest':_0x160a4d,'failed':![],'lastNotifiedVersion':_0x160a4d,'lastNotifiedAt':_0x3e3899}),{'command':_0x1ee03a,'current':_0x4cf39b,'latest':_0x160a4d,'url':buildNpmVersionUrl(_0x160a4d),'message':CLI_BIN_NAME+'\x20'+_0x160a4d+'\x20available,\x20current\x20'+_0x4cf39b+',\x20run:\x20'+_0x1ee03a};}catch{return null;}}
@@ -1 +1 @@
1
- (function(_0x3ea380,_0x215fc4){var _0x5dda1a=a260_0x3afb,_0x3b7518=_0x3ea380();while(!![]){try{var _0x2d78ff=parseInt(_0x5dda1a(0x1b9))/0x1+-parseInt(_0x5dda1a(0x1b1))/0x2*(parseInt(_0x5dda1a(0x1b8))/0x3)+-parseInt(_0x5dda1a(0x1b6))/0x4*(parseInt(_0x5dda1a(0x1b5))/0x5)+parseInt(_0x5dda1a(0x1b4))/0x6*(-parseInt(_0x5dda1a(0x1b7))/0x7)+-parseInt(_0x5dda1a(0x1b0))/0x8+parseInt(_0x5dda1a(0x1b3))/0x9+parseInt(_0x5dda1a(0x1b2))/0xa;if(_0x2d78ff===_0x215fc4)break;else _0x3b7518['push'](_0x3b7518['shift']());}catch(_0x2ce868){_0x3b7518['push'](_0x3b7518['shift']());}}}(a260_0x1361,0xb6812));function a260_0x3afb(_0x434cc3,_0x5cf11e){_0x434cc3=_0x434cc3-0x1b0;var _0x136167=a260_0x1361();var _0x3afbfc=_0x136167[_0x434cc3];return _0x3afbfc;}import{VERSION}from'../generated/build-info.js';export function getCliVersion(){return VERSION;}function a260_0x1361(){var _0x5e313f=['508704BOaPJb','2210872lnKylo','318958ADNdFZ','21386050jyVZKS','12749706TVEWXs','84174rjFPqV','199245JSQsyP','88KHKBmH','602dtlAui','18LhwChb'];a260_0x1361=function(){return _0x5e313f;};return a260_0x1361();}
1
+ function a261_0x5843(_0x4f7adb,_0x2d0729){_0x4f7adb=_0x4f7adb-0x1a3;var _0x242c7b=a261_0x242c();var _0x5843a8=_0x242c7b[_0x4f7adb];return _0x5843a8;}(function(_0x20b18d,_0x5d193c){var _0x570462=a261_0x5843,_0x2b1d25=_0x20b18d();while(!![]){try{var _0x27be49=-parseInt(_0x570462(0x1a7))/0x1+parseInt(_0x570462(0x1a5))/0x2+parseInt(_0x570462(0x1a9))/0x3+parseInt(_0x570462(0x1aa))/0x4*(-parseInt(_0x570462(0x1a3))/0x5)+-parseInt(_0x570462(0x1a6))/0x6+parseInt(_0x570462(0x1a8))/0x7+-parseInt(_0x570462(0x1a4))/0x8;if(_0x27be49===_0x5d193c)break;else _0x2b1d25['push'](_0x2b1d25['shift']());}catch(_0x18c3af){_0x2b1d25['push'](_0x2b1d25['shift']());}}}(a261_0x242c,0x2c4ab));import{VERSION}from'../generated/build-info.js';function a261_0x242c(){var _0x416c9c=['496vaxEdX','3335QBzlBs','5298304TDkqfs','648628XtPFZN','333528IJnmSd','17481iNvjzz','2473212OSmrkr','965562gJeUqS'];a261_0x242c=function(){return _0x416c9c;};return a261_0x242c();}export function getCliVersion(){return VERSION;}
@@ -1 +1 @@
1
- (function(_0x3f8be8,_0x4bcf39){var _0x59f11e=a261_0x3c67,_0x24d979=_0x3f8be8();while(!![]){try{var _0x431632=-parseInt(_0x59f11e(0x1c4))/0x1+parseInt(_0x59f11e(0x1cb))/0x2*(-parseInt(_0x59f11e(0x1c7))/0x3)+parseInt(_0x59f11e(0x1c5))/0x4*(-parseInt(_0x59f11e(0x1c8))/0x5)+-parseInt(_0x59f11e(0x1c3))/0x6+parseInt(_0x59f11e(0x1c9))/0x7+parseInt(_0x59f11e(0x1ca))/0x8+parseInt(_0x59f11e(0x1c6))/0x9;if(_0x431632===_0x4bcf39)break;else _0x24d979['push'](_0x24d979['shift']());}catch(_0x4baa25){_0x24d979['push'](_0x24d979['shift']());}}}(a261_0x1ca4,0x2e70a));function a261_0x3c67(_0x3623b9,_0x462645){_0x3623b9=_0x3623b9-0x1c3;var _0x1ca499=a261_0x1ca4();var _0x3c67cd=_0x1ca499[_0x3623b9];return _0x3c67cd;}import{setActiveCookie,clearActiveCookie}from'../core/api-client.js';function a261_0x1ca4(){var _0x33cd98=['842808aMlqCt','110793vBqFzT','171016JrSWJM','4611564CjfGmP','921ivoavt','35HGhUYP','977606hYDoWe','1976920dHWtTL','1032iAZLiO'];a261_0x1ca4=function(){return _0x33cd98;};return a261_0x1ca4();}export async function withActiveCookie(_0x417973,_0x3a009a){setActiveCookie(_0x417973);try{return await _0x3a009a();}finally{clearActiveCookie();}}
1
+ function a262_0x1c5c(_0x54a694,_0x157935){_0x54a694=_0x54a694-0x11b;var _0x27b682=a262_0x27b6();var _0x1c5c8a=_0x27b682[_0x54a694];return _0x1c5c8a;}(function(_0x4fa6e4,_0x303a1a){var _0x4dab3d=a262_0x1c5c,_0x3c3b67=_0x4fa6e4();while(!![]){try{var _0x1b4fff=parseInt(_0x4dab3d(0x121))/0x1+parseInt(_0x4dab3d(0x11b))/0x2+parseInt(_0x4dab3d(0x11d))/0x3*(-parseInt(_0x4dab3d(0x11f))/0x4)+-parseInt(_0x4dab3d(0x120))/0x5+parseInt(_0x4dab3d(0x123))/0x6+-parseInt(_0x4dab3d(0x11c))/0x7+-parseInt(_0x4dab3d(0x122))/0x8*(-parseInt(_0x4dab3d(0x11e))/0x9);if(_0x1b4fff===_0x303a1a)break;else _0x3c3b67['push'](_0x3c3b67['shift']());}catch(_0x1b9b66){_0x3c3b67['push'](_0x3c3b67['shift']());}}}(a262_0x27b6,0xdc383));function a262_0x27b6(){var _0x289775=['16ycPihu','7298725dSNvxl','1457599ZIqrJL','1304jVTHos','9184020xDLMay','560298WLWNPd','5568654JAZlnH','839343BwAdZc','55656UJTZpP'];a262_0x27b6=function(){return _0x289775;};return a262_0x27b6();}import{setActiveCookie,clearActiveCookie}from'../core/api-client.js';export async function withActiveCookie(_0x4d7b45,_0x3e1b95){setActiveCookie(_0x4d7b45);try{return await _0x3e1b95();}finally{clearActiveCookie();}}
@@ -1 +1 @@
1
- function a262_0x30f0(_0x1f7ddb,_0xba1dd9){_0x1f7ddb=_0x1f7ddb-0xa2;var _0x459056=a262_0x4590();var _0x30f0e2=_0x459056[_0x1f7ddb];return _0x30f0e2;}(function(_0x4465c1,_0xe3a47f){var _0x293c8d=a262_0x30f0,_0x50e1b1=_0x4465c1();while(!![]){try{var _0x5963ec=parseInt(_0x293c8d(0xa4))/0x1+-parseInt(_0x293c8d(0xa9))/0x2*(parseInt(_0x293c8d(0xa2))/0x3)+-parseInt(_0x293c8d(0xa6))/0x4*(-parseInt(_0x293c8d(0xa3))/0x5)+parseInt(_0x293c8d(0xad))/0x6*(parseInt(_0x293c8d(0xae))/0x7)+parseInt(_0x293c8d(0xab))/0x8*(-parseInt(_0x293c8d(0xa7))/0x9)+-parseInt(_0x293c8d(0xac))/0xa+-parseInt(_0x293c8d(0xa5))/0xb;if(_0x5963ec===_0xe3a47f)break;else _0x50e1b1['push'](_0x50e1b1['shift']());}catch(_0x478897){_0x50e1b1['push'](_0x50e1b1['shift']());}}}(a262_0x4590,0x9968f));function a262_0x4590(){var _0xe1e18b=['1241111GOaezn','28138vZdDuD','4ncygmf','99XsHoSy','write','1599134NXdxfp','stderr','194648psdsoK','7249740eCOxzv','6VhcWAf','6594343eDBBLa','3bYBHJm','1199735mChnao'];a262_0x4590=function(){return _0xe1e18b;};return a262_0x4590();}export function writeCliSideChannelLine(_0x4f1157){var _0x2d06bc=a262_0x30f0;process[_0x2d06bc(0xaa)][_0x2d06bc(0xa8)](_0x4f1157+'\x0a');}
1
+ (function(_0x596408,_0x39321b){var _0x591143=a263_0x46e6,_0x3c8be5=_0x596408();while(!![]){try{var _0x4c138b=-parseInt(_0x591143(0x1d6))/0x1*(-parseInt(_0x591143(0x1ce))/0x2)+parseInt(_0x591143(0x1d1))/0x3*(parseInt(_0x591143(0x1cf))/0x4)+parseInt(_0x591143(0x1d4))/0x5*(parseInt(_0x591143(0x1d2))/0x6)+-parseInt(_0x591143(0x1d0))/0x7+-parseInt(_0x591143(0x1d8))/0x8*(parseInt(_0x591143(0x1d5))/0x9)+-parseInt(_0x591143(0x1cc))/0xa*(-parseInt(_0x591143(0x1d7))/0xb)+-parseInt(_0x591143(0x1cb))/0xc;if(_0x4c138b===_0x39321b)break;else _0x3c8be5['push'](_0x3c8be5['shift']());}catch(_0x2c3bd9){_0x3c8be5['push'](_0x3c8be5['shift']());}}}(a263_0x2449,0xcc880));function a263_0x2449(){var _0x31af48=['66872ZnyOgX','17883336qaRpwm','2587850ikvlbN','write','50VSxExL','278784jLawNp','6414457JOFoRw','51gCUHkX','6zjrhWJ','stderr','4404325zvMYKN','63FCteIq','18434xsOVAc','33wUilsw'];a263_0x2449=function(){return _0x31af48;};return a263_0x2449();}function a263_0x46e6(_0x1f7225,_0x3e4aac){_0x1f7225=_0x1f7225-0x1cb;var _0x2449ea=a263_0x2449();var _0x46e616=_0x2449ea[_0x1f7225];return _0x46e616;}export function writeCliSideChannelLine(_0x5d62c7){var _0x5cda68=a263_0x46e6;process[_0x5cda68(0x1d3)][_0x5cda68(0x1cd)](_0x5d62c7+'\x0a');}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lovrabet/rabetbase-cli",
3
- "version": "2.3.10",
3
+ "version": "2.3.11-beta.1",
4
4
  "description": "Developer CLI for Lovrabet apps, datasets, pages, SQL, BFF, database connections, skills, and AI agent workflows.",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "keywords": [