@lovrabet/rabetbase-cli 2.3.15-beta.1 → 2.3.15

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 (264) hide show
  1. package/lib/api/api-doc.js +1 -1
  2. package/lib/api/fetch-model-list.js +1 -1
  3. package/lib/api/generate-api-file.js +1 -1
  4. package/lib/auth/auth-server-ui.js +1 -1
  5. package/lib/auth/auth-server.js +1 -1
  6. package/lib/auth/constant.js +1 -1
  7. package/lib/auth/get-cookie.js +1 -1
  8. package/lib/auth/get-session-user.js +1 -1
  9. package/lib/auth/is-session-valid.js +1 -1
  10. package/lib/auth/login-success-html.js +1 -1
  11. package/lib/auth/logout.js +1 -1
  12. package/lib/cli-flags.js +1 -1
  13. package/lib/cli.js +1 -1
  14. package/lib/commands/api/generate.js +1 -1
  15. package/lib/commands/api/index.js +1 -1
  16. package/lib/commands/api/list.js +1 -1
  17. package/lib/commands/api/pull.js +1 -1
  18. package/lib/commands/api/shared.js +1 -1
  19. package/lib/commands/app/add.js +1 -1
  20. package/lib/commands/app/index.js +1 -1
  21. package/lib/commands/app/list.js +1 -1
  22. package/lib/commands/app/remote-directory.js +1 -1
  23. package/lib/commands/app/remove.js +1 -1
  24. package/lib/commands/app/shared.js +1 -1
  25. package/lib/commands/app-config/delete.js +1 -1
  26. package/lib/commands/app-config/get.js +1 -1
  27. package/lib/commands/app-config/index.js +1 -1
  28. package/lib/commands/app-config/list.js +1 -1
  29. package/lib/commands/app-config/set.js +1 -1
  30. package/lib/commands/app-config/shared.js +1 -1
  31. package/lib/commands/auth/index.js +1 -1
  32. package/lib/commands/bff/create.js +1 -1
  33. package/lib/commands/bff/delete.js +1 -1
  34. package/lib/commands/bff/detail.js +1 -1
  35. package/lib/commands/bff/index.js +1 -1
  36. package/lib/commands/bff/list.js +1 -1
  37. package/lib/commands/bff/pull.js +1 -1
  38. package/lib/commands/bff/push.js +1 -1
  39. package/lib/commands/bff/status.js +1 -1
  40. package/lib/commands/cli-skill/index.js +1 -1
  41. package/lib/commands/cli-update.js +1 -1
  42. package/lib/commands/codegen/index.js +1 -1
  43. package/lib/commands/codegen/sdk.js +1 -1
  44. package/lib/commands/codegen/sql.js +1 -1
  45. package/lib/commands/common/app-registry.js +1 -1
  46. package/lib/commands/common/app-selector.js +1 -1
  47. package/lib/commands/common/async-task.js +1 -1
  48. package/lib/commands/common/dry-run.js +1 -1
  49. package/lib/commands/common/flags.js +1 -1
  50. package/lib/commands/common/local-file.js +1 -1
  51. package/lib/commands/common/validate.js +1 -1
  52. package/lib/commands/config/get.js +1 -1
  53. package/lib/commands/config/index.js +1 -1
  54. package/lib/commands/config/list.js +1 -1
  55. package/lib/commands/config/set.js +1 -1
  56. package/lib/commands/config/shared.js +1 -1
  57. package/lib/commands/data/filter.js +1 -1
  58. package/lib/commands/data/getOne.js +1 -1
  59. package/lib/commands/data/index.js +1 -1
  60. package/lib/commands/data/shared.js +1 -1
  61. package/lib/commands/dataset/business-group-update.js +1 -1
  62. package/lib/commands/dataset/capability.js +1 -1
  63. package/lib/commands/dataset/delete.js +1 -1
  64. package/lib/commands/dataset/detail.js +1 -1
  65. package/lib/commands/dataset/extend-update.js +1 -1
  66. package/lib/commands/dataset/field-update.js +1 -1
  67. package/lib/commands/dataset/generate.js +1 -1
  68. package/lib/commands/dataset/index.js +1 -1
  69. package/lib/commands/dataset/list.js +1 -1
  70. package/lib/commands/dataset/operations.js +1 -1
  71. package/lib/commands/dataset/relation-audit.js +1 -1
  72. package/lib/commands/dataset/relation-create.js +1 -1
  73. package/lib/commands/dataset/relation-delete.js +1 -1
  74. package/lib/commands/dataset/relation-shared.js +1 -1
  75. package/lib/commands/dataset/relation-update.js +1 -1
  76. package/lib/commands/dataset/relations.js +1 -1
  77. package/lib/commands/dataset/rename.js +1 -1
  78. package/lib/commands/dataset/restore.js +1 -1
  79. package/lib/commands/db/analysis-batching.js +1 -1
  80. package/lib/commands/db/analyze-batch-plan.js +1 -1
  81. package/lib/commands/db/analyze-cancel.js +1 -1
  82. package/lib/commands/db/analyze-start.js +1 -1
  83. package/lib/commands/db/analyze-status.js +1 -1
  84. package/lib/commands/db/create.js +1 -1
  85. package/lib/commands/db/delete.js +1 -1
  86. package/lib/commands/db/detail.js +1 -1
  87. package/lib/commands/db/diff.js +1 -1
  88. package/lib/commands/db/index.js +1 -1
  89. package/lib/commands/db/list.js +1 -1
  90. package/lib/commands/db/shared.js +1 -1
  91. package/lib/commands/db/tables.js +1 -1
  92. package/lib/commands/db/test.js +1 -1
  93. package/lib/commands/db/update.js +1 -1
  94. package/lib/commands/doctor.js +1 -1
  95. package/lib/commands/file/index.js +1 -1
  96. package/lib/commands/init/index.js +1 -1
  97. package/lib/commands/issue/index.js +1 -1
  98. package/lib/commands/issue/nudge.js +1 -1
  99. package/lib/commands/issue/report.js +1 -1
  100. package/lib/commands/issue/shared.js +1 -1
  101. package/lib/commands/logs/index.js +1 -1
  102. package/lib/commands/menu/asset-update.js +1 -1
  103. package/lib/commands/menu/delete.js +1 -1
  104. package/lib/commands/menu/external-link-create.js +1 -1
  105. package/lib/commands/menu/external-link-update.js +1 -1
  106. package/lib/commands/menu/group-create.js +1 -1
  107. package/lib/commands/menu/group-update.js +1 -1
  108. package/lib/commands/menu/index.js +1 -1
  109. package/lib/commands/menu/list.js +1 -1
  110. package/lib/commands/menu/move.js +1 -1
  111. package/lib/commands/menu/regroup-start.js +1 -1
  112. package/lib/commands/menu/rename.js +1 -0
  113. package/lib/commands/menu/shared/compare-table.js +1 -1
  114. package/lib/commands/menu/shared/delete-plan.js +1 -1
  115. package/lib/commands/menu/shared/facts.js +1 -1
  116. package/lib/commands/menu/shared/index.js +1 -1
  117. package/lib/commands/menu/shared/inquirer.js +1 -1
  118. package/lib/commands/menu/shared/local-pages.js +1 -1
  119. package/lib/commands/menu/shared/logic.js +1 -1
  120. package/lib/commands/menu/shared/mutations.js +1 -1
  121. package/lib/commands/menu/shared/service.js +1 -1
  122. package/lib/commands/menu/shared/sync-core.js +1 -1
  123. package/lib/commands/menu/shared/update-core.js +1 -1
  124. package/lib/commands/menu/shared/valid-url.js +1 -1
  125. package/lib/commands/menu/sync.js +1 -1
  126. package/lib/commands/notification/config-list.js +1 -1
  127. package/lib/commands/notification/index.js +1 -1
  128. package/lib/commands/ocr/index.js +1 -1
  129. package/lib/commands/page/generate-start.js +1 -1
  130. package/lib/commands/page/generate-status.js +1 -1
  131. package/lib/commands/page/index.js +1 -1
  132. package/lib/commands/page/pull.js +1 -1
  133. package/lib/commands/page/push.js +1 -1
  134. package/lib/commands/page/relation-audit.js +1 -1
  135. package/lib/commands/page/restore.js +1 -1
  136. package/lib/commands/page/shared.js +1 -1
  137. package/lib/commands/page/standard-page-status.js +1 -1
  138. package/lib/commands/page/sync.js +1 -1
  139. package/lib/commands/permit/index.js +1 -1
  140. package/lib/commands/permit/page-get.js +1 -1
  141. package/lib/commands/permit/page-set.js +1 -1
  142. package/lib/commands/permit/role-apis-set.js +1 -1
  143. package/lib/commands/permit/role-menus-set.js +1 -1
  144. package/lib/commands/permit/role-menus.js +1 -1
  145. package/lib/commands/permit/shared.js +1 -1
  146. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  147. package/lib/commands/project/create/format-elapsed.js +1 -1
  148. package/lib/commands/project/create/main.js +1 -1
  149. package/lib/commands/project/create/non-interactive.js +1 -1
  150. package/lib/commands/project/create/project-template-path.js +1 -1
  151. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  152. package/lib/commands/project/create/use-format-code.js +1 -1
  153. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  154. package/lib/commands/project/index.js +1 -1
  155. package/lib/commands/project/init.js +1 -1
  156. package/lib/commands/project/upgrade.js +1 -1
  157. package/lib/commands/registry.js +1 -1
  158. package/lib/commands/role/create.js +1 -1
  159. package/lib/commands/role/delete.js +1 -1
  160. package/lib/commands/role/detail.js +1 -1
  161. package/lib/commands/role/index.js +1 -1
  162. package/lib/commands/role/list.js +1 -1
  163. package/lib/commands/role/shared.js +1 -1
  164. package/lib/commands/role/update.js +1 -1
  165. package/lib/commands/role/user-add.js +1 -1
  166. package/lib/commands/role/user-remove.js +1 -1
  167. package/lib/commands/role/user-resolve.js +1 -1
  168. package/lib/commands/run/index.js +1 -1
  169. package/lib/commands/schema.js +1 -1
  170. package/lib/commands/sql/create.js +1 -1
  171. package/lib/commands/sql/delete.js +1 -1
  172. package/lib/commands/sql/detail.js +1 -1
  173. package/lib/commands/sql/exec.js +1 -1
  174. package/lib/commands/sql/index.js +1 -1
  175. package/lib/commands/sql/list.js +1 -1
  176. package/lib/commands/sql/pull.js +1 -1
  177. package/lib/commands/sql/push.js +1 -1
  178. package/lib/commands/sql/save.js +1 -1
  179. package/lib/commands/sql/shared.js +1 -1
  180. package/lib/commands/sql/status.js +1 -1
  181. package/lib/commands/sql/validate.js +1 -1
  182. package/lib/commands/task/index.js +1 -1
  183. package/lib/commands/task/status.js +1 -1
  184. package/lib/commands/workspace/add.js +1 -1
  185. package/lib/commands/workspace/index.js +1 -1
  186. package/lib/commands/workspace/remove.js +1 -1
  187. package/lib/config/schema.js +1 -1
  188. package/lib/constant/cdn.js +1 -1
  189. package/lib/constant/cli.js +1 -1
  190. package/lib/constant/defaults.js +1 -1
  191. package/lib/constant/domain.js +1 -1
  192. package/lib/constant/env.js +1 -1
  193. package/lib/constant/output.js +1 -1
  194. package/lib/constant/paths.js +1 -1
  195. package/lib/constant/risk.js +1 -1
  196. package/lib/context/app-resolver.js +1 -1
  197. package/lib/context/auth-resolver.js +1 -1
  198. package/lib/context/config-loader.js +1 -1
  199. package/lib/context.js +1 -1
  200. package/lib/core/alias-resolver.js +1 -1
  201. package/lib/core/api-client.js +1 -1
  202. package/lib/core/bff/config.js +1 -1
  203. package/lib/core/bff/file-system.js +1 -1
  204. package/lib/core/bff/hash.js +1 -1
  205. package/lib/core/bff/lock.js +1 -1
  206. package/lib/core/bff/utils.js +1 -1
  207. package/lib/core/db-resolver.js +1 -1
  208. package/lib/core/page/file-system.js +1 -1
  209. package/lib/core/page/hash.js +1 -1
  210. package/lib/core/page/lock.js +1 -1
  211. package/lib/core/sql-index-auditor.js +1 -1
  212. package/lib/core/sql-sync/config.js +1 -1
  213. package/lib/core/sql-sync/file-system.js +1 -1
  214. package/lib/core/sql-sync/hash.js +1 -1
  215. package/lib/core/sql-sync/lock.js +1 -1
  216. package/lib/core/sql-sync/utils.js +1 -1
  217. package/lib/core/sql-validator.js +1 -1
  218. package/lib/errors.js +1 -1
  219. package/lib/framework/build-all-flags.js +1 -1
  220. package/lib/framework/error-output.js +1 -1
  221. package/lib/framework/explicit-yes.js +1 -1
  222. package/lib/framework/flags.js +1 -1
  223. package/lib/framework/help.js +1 -1
  224. package/lib/framework/index.js +1 -1
  225. package/lib/framework/output.js +1 -1
  226. package/lib/framework/response.js +1 -1
  227. package/lib/framework/runner-alias.js +1 -1
  228. package/lib/framework/runner.js +1 -1
  229. package/lib/framework/schema-export.js +1 -1
  230. package/lib/framework/types.js +1 -1
  231. package/lib/generated/build-info.js +1 -1
  232. package/lib/help.js +1 -1
  233. package/lib/skills/main.js +1 -1
  234. package/lib/skills/npx-skills-add.js +1 -1
  235. package/lib/telemetry/cli-command-trace.js +1 -1
  236. package/lib/telemetry/cli-help-trace.js +1 -1
  237. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  238. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  239. package/lib/telemetry/send-cli-trace-log.js +1 -1
  240. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  241. package/lib/utils/ai_config.js +1 -1
  242. package/lib/utils/apply-jq-filter.js +1 -1
  243. package/lib/utils/cdn-config.js +1 -1
  244. package/lib/utils/check-sdk-version.js +1 -1
  245. package/lib/utils/cli-version-check.js +1 -1
  246. package/lib/utils/cli-version-policy.js +1 -1
  247. package/lib/utils/config.js +1 -1
  248. package/lib/utils/copy-directory.js +1 -1
  249. package/lib/utils/entity-with-id.js +1 -1
  250. package/lib/utils/file-utils.js +1 -1
  251. package/lib/utils/guides-cdn.js +1 -1
  252. package/lib/utils/http-client.js +1 -1
  253. package/lib/utils/is-non-interactive.js +1 -1
  254. package/lib/utils/logger.js +1 -1
  255. package/lib/utils/params.js +1 -1
  256. package/lib/utils/platform.js +1 -1
  257. package/lib/utils/rules-cdn.js +1 -1
  258. package/lib/utils/sleep.js +1 -1
  259. package/lib/utils/template-replacer.js +1 -1
  260. package/lib/utils/update-notice.js +1 -1
  261. package/lib/utils/version.js +1 -1
  262. package/lib/utils/with-active-cookie.js +1 -1
  263. package/lib/utils/write-cli-side-channel.js +1 -1
  264. package/package.json +1 -1
@@ -1 +1 @@
1
- (function(_0x56fa63,_0x4b5dc9){const _0x3f9fd9=a255_0x54fb,_0x690607=_0x56fa63();while(!![]){try{const _0x7fc3ea=parseInt(_0x3f9fd9(0x171))/0x1*(parseInt(_0x3f9fd9(0x178))/0x2)+parseInt(_0x3f9fd9(0x177))/0x3+-parseInt(_0x3f9fd9(0x175))/0x4+parseInt(_0x3f9fd9(0x183))/0x5*(parseInt(_0x3f9fd9(0x172))/0x6)+parseInt(_0x3f9fd9(0x16f))/0x7*(parseInt(_0x3f9fd9(0x17e))/0x8)+-parseInt(_0x3f9fd9(0x16b))/0x9+parseInt(_0x3f9fd9(0x17f))/0xa*(-parseInt(_0x3f9fd9(0x16a))/0xb);if(_0x7fc3ea===_0x4b5dc9)break;else _0x690607['push'](_0x690607['shift']());}catch(_0xe4bc60){_0x690607['push'](_0x690607['shift']());}}}(a255_0x484b,0xd66b0));function a255_0x54fb(_0x1f96f5,_0x561339){_0x1f96f5=_0x1f96f5-0x166;const _0x484b34=a255_0x484b();let _0x54fb6e=_0x484b34[_0x1f96f5];return _0x54fb6e;}export async function httpRequest(_0x5f1bf8,_0x48ce6a={}){const _0x573757=a255_0x54fb,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0x48ce6a;let _0x2b0bfb=null;for(let _0xb99655=0x0;_0xb99655<=retries;_0xb99655++){try{const _0x53e5e1=new AbortController(),_0x4c6f1d=setTimeout(()=>_0x53e5e1[_0x573757(0x17c)](),timeout),_0x37ce47=await fetch(_0x5f1bf8,{'headers':headers,'signal':_0x53e5e1[_0x573757(0x173)]});clearTimeout(_0x4c6f1d);let _0x508d7d;const _0x1c1f74=_0x37ce47[_0x573757(0x169)][_0x573757(0x181)]('content-type');return _0x1c1f74?.[_0x573757(0x167)](_0x573757(0x180))?_0x508d7d=await _0x37ce47['json']():_0x508d7d=await _0x37ce47[_0x573757(0x17a)](),{'ok':_0x37ce47['ok'],'status':_0x37ce47[_0x573757(0x179)],'statusText':_0x37ce47[_0x573757(0x182)],'data':_0x508d7d,'headers':_0x37ce47['headers'],'url':_0x37ce47[_0x573757(0x17b)],'text':()=>_0x37ce47[_0x573757(0x17a)]()};}catch(_0x19136f){_0x2b0bfb=_0x19136f instanceof Error?_0x19136f:new Error(String(_0x19136f));if(_0xb99655===retries)break;if(shouldRetry(_0x19136f)){console[_0x573757(0x16c)](_0x573757(0x174)+retryDelay+_0x573757(0x176)+(_0xb99655+0x1)+_0x573757(0x170)),await sleep(retryDelay);continue;}else break;}}throw _0x2b0bfb||new Error(_0x573757(0x184));}function shouldRetry(_0x25da38){const _0x5eead2=a255_0x54fb;if(_0x25da38 instanceof Error){if(_0x25da38['name']===_0x5eead2(0x16e))return![];if(_0x25da38[_0x5eead2(0x17d)]===_0x5eead2(0x16d)&&_0x25da38['message'][_0x5eead2(0x167)](_0x5eead2(0x168)))return!![];if(_0x25da38[_0x5eead2(0x166)][_0x5eead2(0x167)]('ECONNRESET'))return!![];if(_0x25da38['message'][_0x5eead2(0x167)]('ENOTFOUND'))return![];}return![];}function sleep(_0x29b3fa){return new Promise(_0x38fa3f=>setTimeout(_0x38fa3f,_0x29b3fa));}function a255_0x484b(){const _0x423526=['1486530xkJLRC','application/json','get','statusText','5bPyscQ','Request\x20failed','message','includes','fetch','headers','121yGybzE','4514598sItXqP','log','TypeError','AbortError','23639wtAwYI','\x20次重试...','294185OJtBTi','5437758uCPFRm','signal','*\x20请求失败,','1109124gYuxMH','ms\x20后进行第\x20','1238169MNRJVh','6bBJlPs','status','text','url','abort','name','2584KGeBcJ'];a255_0x484b=function(){return _0x423526;};return a255_0x484b();}export function validateUrl(_0xc48cdd){try{return new URL(_0xc48cdd),!![];}catch{return![];}}
1
+ (function(_0x2ea899,_0x5514ec){const _0x4b9c0f=a256_0x3481,_0x7b2e33=_0x2ea899();while(!![]){try{const _0x528a88=parseInt(_0x4b9c0f(0x1dd))/0x1+-parseInt(_0x4b9c0f(0x1d7))/0x2*(-parseInt(_0x4b9c0f(0x1dc))/0x3)+-parseInt(_0x4b9c0f(0x1d3))/0x4*(parseInt(_0x4b9c0f(0x1d4))/0x5)+parseInt(_0x4b9c0f(0x1d1))/0x6*(parseInt(_0x4b9c0f(0x1d6))/0x7)+parseInt(_0x4b9c0f(0x1cf))/0x8+-parseInt(_0x4b9c0f(0x1e6))/0x9+-parseInt(_0x4b9c0f(0x1de))/0xa;if(_0x528a88===_0x5514ec)break;else _0x7b2e33['push'](_0x7b2e33['shift']());}catch(_0x59bb37){_0x7b2e33['push'](_0x7b2e33['shift']());}}}(a256_0xbe73,0xd0c9a));export async function httpRequest(_0x170382,_0xd6a7e2={}){const _0x1ffc2f=a256_0x3481,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0xd6a7e2;let _0x3eb658=null;for(let _0xa1f5e5=0x0;_0xa1f5e5<=retries;_0xa1f5e5++){try{const _0x5566e2=new AbortController(),_0x419442=setTimeout(()=>_0x5566e2['abort'](),timeout),_0x7cd790=await fetch(_0x170382,{'headers':headers,'signal':_0x5566e2[_0x1ffc2f(0x1e4)]});clearTimeout(_0x419442);let _0x18d80f;const _0x1cabba=_0x7cd790[_0x1ffc2f(0x1e1)]['get']('content-type');return _0x1cabba?.[_0x1ffc2f(0x1df)]('application/json')?_0x18d80f=await _0x7cd790[_0x1ffc2f(0x1ce)]():_0x18d80f=await _0x7cd790[_0x1ffc2f(0x1e7)](),{'ok':_0x7cd790['ok'],'status':_0x7cd790[_0x1ffc2f(0x1d5)],'statusText':_0x7cd790[_0x1ffc2f(0x1e8)],'data':_0x18d80f,'headers':_0x7cd790['headers'],'url':_0x7cd790['url'],'text':()=>_0x7cd790['text']()};}catch(_0x5a3195){_0x3eb658=_0x5a3195 instanceof Error?_0x5a3195:new Error(String(_0x5a3195));if(_0xa1f5e5===retries)break;if(shouldRetry(_0x5a3195)){console[_0x1ffc2f(0x1db)](_0x1ffc2f(0x1e5)+retryDelay+'ms\x20后进行第\x20'+(_0xa1f5e5+0x1)+_0x1ffc2f(0x1da)),await sleep(retryDelay);continue;}else break;}}throw _0x3eb658||new Error(_0x1ffc2f(0x1d0));}function a256_0x3481(_0x3681f1,_0x1cc18c){_0x3681f1=_0x3681f1-0x1cd;const _0xbe739b=a256_0xbe73();let _0x348100=_0xbe739b[_0x3681f1];return _0x348100;}function shouldRetry(_0x2a82b2){const _0xfa53e7=a256_0x3481;if(_0x2a82b2 instanceof Error){if(_0x2a82b2[_0xfa53e7(0x1e3)]===_0xfa53e7(0x1d9))return![];if(_0x2a82b2[_0xfa53e7(0x1e3)]===_0xfa53e7(0x1d8)&&_0x2a82b2[_0xfa53e7(0x1d2)]['includes'](_0xfa53e7(0x1e0)))return!![];if(_0x2a82b2[_0xfa53e7(0x1d2)][_0xfa53e7(0x1df)](_0xfa53e7(0x1cd)))return!![];if(_0x2a82b2['message'][_0xfa53e7(0x1df)](_0xfa53e7(0x1e2)))return![];}return![];}function a256_0xbe73(){const _0x1f0203=['58765wTklCE','status','1089039hXQLIh','6CxDoGy','TypeError','AbortError','\x20次重试...','log','258474uiSjoq','1267846DauPtz','20135420GnHQiV','includes','fetch','headers','ENOTFOUND','name','signal','*\x20请求失败,','6732504eqZGdG','text','statusText','ECONNRESET','json','10782768LXIVaf','Request\x20failed','30JIVaMo','message','12OTClHG'];a256_0xbe73=function(){return _0x1f0203;};return a256_0xbe73();}function sleep(_0x522771){return new Promise(_0x27c971=>setTimeout(_0x27c971,_0x522771));}export function validateUrl(_0x9d7489){try{return new URL(_0x9d7489),!![];}catch{return![];}}
@@ -1 +1 @@
1
- (function(_0xebf6a4,_0x286d9f){const _0xa270be=a256_0x356e,_0x1e9c87=_0xebf6a4();while(!![]){try{const _0x3ba965=-parseInt(_0xa270be(0xc3))/0x1+parseInt(_0xa270be(0xb8))/0x2*(-parseInt(_0xa270be(0xc0))/0x3)+-parseInt(_0xa270be(0xb5))/0x4+parseInt(_0xa270be(0xb9))/0x5+parseInt(_0xa270be(0xb6))/0x6*(parseInt(_0xa270be(0xb7))/0x7)+parseInt(_0xa270be(0xbf))/0x8*(-parseInt(_0xa270be(0xbd))/0x9)+parseInt(_0xa270be(0xbb))/0xa;if(_0x3ba965===_0x286d9f)break;else _0x1e9c87['push'](_0x1e9c87['shift']());}catch(_0x2ce632){_0x1e9c87['push'](_0x1e9c87['shift']());}}}(a256_0x3b59,0xb33bf));function env(_0x4ee038){return process.env[`RABETBASE_${_0x4ee038}`]||process.env[`LOVRABET_${_0x4ee038}`]||undefined;}export function isNonInteractive(_0x156def){const _0x2fbc57=a256_0x356e;return!!(_0x156def[_0x2fbc57(0xbc)]||_0x156def['ci']||env('CI')==='true'||process.env.CI===_0x2fbc57(0xc1)||!process['stdout'][_0x2fbc57(0xba)]||!isStdinRawModeSupported());}function a256_0x356e(_0x24e861,_0x1e4af3){_0x24e861=_0x24e861-0xb4;const _0x3b59bd=a256_0x3b59();let _0x356ecf=_0x3b59bd[_0x24e861];return _0x356ecf;}function isStdinRawModeSupported(){const _0x347d19=a256_0x356e;if(!process[_0x347d19(0xb4)][_0x347d19(0xba)])return![];try{const _0x9816c7=process['stdin'][_0x347d19(0xbe)];return process['stdin'][_0x347d19(0xc2)](!![]),process[_0x347d19(0xb4)][_0x347d19(0xc2)](_0x9816c7??![]),!![];}catch{return![];}}function a256_0x3b59(){const _0x4f8af6=['stdin','5552056MGgDSu','12MmqHXP','1174943KvlaTO','22ESoRyp','3754330kewXVg','isTTY','24584110qTfwAb','nonInteractive','135tLzDAD','isRaw','513720jVYKBh','23019CIyYaO','true','setRawMode','375190LdWNCr'];a256_0x3b59=function(){return _0x4f8af6;};return a256_0x3b59();}
1
+ (function(_0x42d585,_0x370401){const _0x23902b=a257_0x2823,_0x206436=_0x42d585();while(!![]){try{const _0x1c023b=parseInt(_0x23902b(0x11e))/0x1+-parseInt(_0x23902b(0x11c))/0x2+-parseInt(_0x23902b(0x11f))/0x3*(-parseInt(_0x23902b(0x122))/0x4)+-parseInt(_0x23902b(0x123))/0x5+-parseInt(_0x23902b(0x125))/0x6*(parseInt(_0x23902b(0x11a))/0x7)+-parseInt(_0x23902b(0x124))/0x8*(parseInt(_0x23902b(0x120))/0x9)+parseInt(_0x23902b(0x127))/0xa;if(_0x1c023b===_0x370401)break;else _0x206436['push'](_0x206436['shift']());}catch(_0x19926d){_0x206436['push'](_0x206436['shift']());}}}(a257_0x2faa,0x95c50));function env(_0x32c6d5){return process.env[`RABETBASE_${_0x32c6d5}`]||process.env[`LOVRABET_${_0x32c6d5}`]||undefined;}function a257_0x2faa(){const _0x1cc7a5=['24JMLUPh','108NRfzls','isTTY','18845320MRiJlu','stdin','true','9345uAUFpj','setRawMode','1641232ITSPfa','nonInteractive','382483suTvIP','6ESTPku','2265345FEnUKI','isRaw','946636KBjGuq','2635580gJCuHE'];a257_0x2faa=function(){return _0x1cc7a5;};return a257_0x2faa();}function a257_0x2823(_0x27b9b1,_0x16b15a){_0x27b9b1=_0x27b9b1-0x11a;const _0x2faa6c=a257_0x2faa();let _0x282364=_0x2faa6c[_0x27b9b1];return _0x282364;}export function isNonInteractive(_0x174b9b){const _0x1e306d=a257_0x2823;return!!(_0x174b9b[_0x1e306d(0x11d)]||_0x174b9b['ci']||env('CI')===_0x1e306d(0x129)||process.env.CI===_0x1e306d(0x129)||!process['stdout'][_0x1e306d(0x126)]||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x5c9b96=a257_0x2823;if(!process[_0x5c9b96(0x128)]['isTTY'])return![];try{const _0x18b044=process['stdin'][_0x5c9b96(0x121)];return process['stdin']['setRawMode'](!![]),process[_0x5c9b96(0x128)][_0x5c9b96(0x11b)](_0x18b044??![]),!![];}catch{return![];}}
@@ -1 +1 @@
1
- const a257_0x3c42f6=a257_0x1967;(function(_0x1a369c,_0x3f5c0f){const _0x408dd6=a257_0x1967,_0x505848=_0x1a369c();while(!![]){try{const _0x5c8cff=-parseInt(_0x408dd6(0x19e))/0x1*(parseInt(_0x408dd6(0x1b9))/0x2)+-parseInt(_0x408dd6(0x1b6))/0x3+-parseInt(_0x408dd6(0x1a2))/0x4+-parseInt(_0x408dd6(0x1bd))/0x5*(parseInt(_0x408dd6(0x1a9))/0x6)+-parseInt(_0x408dd6(0x1c5))/0x7*(-parseInt(_0x408dd6(0x1c3))/0x8)+parseInt(_0x408dd6(0x1bc))/0x9*(-parseInt(_0x408dd6(0x1b0))/0xa)+parseInt(_0x408dd6(0x197))/0xb;if(_0x5c8cff===_0x3f5c0f)break;else _0x505848['push'](_0x505848['shift']());}catch(_0x5179d1){_0x505848['push'](_0x505848['shift']());}}}(a257_0x5158,0x1c8c6));import a257_0x952a0d from'winston';function a257_0x5158(){const _0x55c037=['now','message','4622pnhbvn','winstonLogger','clear','106992vjJGdc','93135DUIsnB','parse','join','utf8','File','完成:\x20','139312VpJyxK','format','14IGjMmv','green','errors','info','unknown','getWinstonInstance','toISOString','details','trim','6487679CftJyL','Failed\x20to\x20read\x20logs:','error','initWinstonLogger','existsSync','filter','yellow','101BcCWEH','clearLogs','success','writeFileSync','30392qrPMvE','addColors','warn','失败:\x20','logFilePath','command','currentRawCommand','6ubhGZj','combine','mkdirSync','rawCommand','readLogs','duration','setLogPath','50SbBxUH','.lovrabet.log','transports','dirname','开始执行:\x20','level','565821iIGRAm'];a257_0x5158=function(){return _0x55c037;};return a257_0x5158();}function a257_0x1967(_0x394491,_0x37cc9c){_0x394491=_0x394491-0x194;const _0x51583c=a257_0x5158();let _0x196765=_0x51583c[_0x394491];return _0x196765;}import a257_0x48ace5 from'node:fs';import a257_0x4a47f1 from'node:path';class Logger{['winstonLogger'];[a257_0x3c42f6(0x1a6)];['currentRawCommand']='';constructor(){const _0x5dba06=a257_0x3c42f6;this[_0x5dba06(0x1a6)]='';}['setRawCommand'](_0x5b86e2){this['currentRawCommand']=_0x5b86e2;}[a257_0x3c42f6(0x19a)](){const _0xe1164=a257_0x3c42f6,_0x67ff7a=a257_0x4a47f1[_0xe1164(0x1b3)](this[_0xe1164(0x1a6)]);!a257_0x48ace5[_0xe1164(0x19b)](_0x67ff7a)&&a257_0x48ace5[_0xe1164(0x1ab)](_0x67ff7a,{'recursive':!![]});const _0x2f38c6=a257_0x952a0d[_0xe1164(0x1c4)][_0xe1164(0x1aa)](a257_0x952a0d[_0xe1164(0x1c4)]['timestamp'](),a257_0x952a0d[_0xe1164(0x1c4)][_0xe1164(0x1c7)]({'stack':!![]}),a257_0x952a0d['format']['printf'](_0x44fae5=>{const _0x14f14b=_0xe1164,_0x2fb481={'timestamp':_0x44fae5['timestamp']||new Date()[_0x14f14b(0x194)](),'level':_0x44fae5[_0x14f14b(0x1b5)]||_0x14f14b(0x1c8),'command':_0x44fae5[_0x14f14b(0x1a7)]||_0x14f14b(0x1c9),'rawCommand':_0x44fae5[_0x14f14b(0x1ac)]||this[_0x14f14b(0x1a8)]||undefined,'message':_0x44fae5[_0x14f14b(0x1b8)]||'','duration':_0x44fae5[_0x14f14b(0x1ae)]||undefined,'details':_0x44fae5[_0x14f14b(0x195)]||undefined};return JSON['stringify'](_0x2fb481);}));this[_0xe1164(0x1ba)]=a257_0x952a0d['createLogger']({'level':'info','format':_0x2f38c6,'transports':[new a257_0x952a0d[(_0xe1164(0x1b2))][(_0xe1164(0x1c1))]({'filename':this[_0xe1164(0x1a6)],'level':_0xe1164(0x1c8)})],'silent':![]}),a257_0x952a0d[_0xe1164(0x1a3)]({'success':_0xe1164(0x1c6),'error':'red','warn':_0xe1164(0x19d),'info':'blue'});}[a257_0x3c42f6(0x1af)](_0x118edd){const _0x593f5f=a257_0x3c42f6;this[_0x593f5f(0x1a6)]=a257_0x4a47f1[_0x593f5f(0x1bf)](_0x118edd,_0x593f5f(0x1b1)),this[_0x593f5f(0x1ba)]&&this[_0x593f5f(0x1ba)][_0x593f5f(0x1bb)](),this[_0x593f5f(0x19a)]();}[a257_0x3c42f6(0x1c8)](_0x3b7e80,_0x327bb5,_0x80a3c3){const _0x456bbf=a257_0x3c42f6;if(!this[_0x456bbf(0x1a6)]||!this[_0x456bbf(0x1ba)])return;this['winstonLogger'][_0x456bbf(0x1c8)](_0x327bb5,{'command':_0x3b7e80,'details':_0x80a3c3});}[a257_0x3c42f6(0x1a0)](_0x42d6a4,_0x37ba10,_0x3f9a59,_0x48c5af){const _0xfbcefd=a257_0x3c42f6;if(!this['logFilePath']||!this['winstonLogger'])return;this['winstonLogger']['log'](_0xfbcefd(0x1c8),_0x37ba10,{'level':'success','command':_0x42d6a4,'duration':_0x3f9a59,'details':_0x48c5af});}[a257_0x3c42f6(0x199)](_0x39cde6,_0x29aae3,_0x161943){const _0x181b53=a257_0x3c42f6;if(!this[_0x181b53(0x1a6)]||!this[_0x181b53(0x1ba)])return;this['winstonLogger']['error'](_0x29aae3,{'command':_0x39cde6,'details':_0x161943});}[a257_0x3c42f6(0x1a4)](_0x96dca0,_0x4b3171,_0x4babc1){const _0x1ea5be=a257_0x3c42f6;if(!this[_0x1ea5be(0x1a6)]||!this[_0x1ea5be(0x1ba)])return;this[_0x1ea5be(0x1ba)][_0x1ea5be(0x1a4)](_0x4b3171,{'command':_0x96dca0,'details':_0x4babc1});}async['logTask'](_0x187a3e,_0x573695,_0x1b1a1a){const _0x12ee6b=a257_0x3c42f6,_0x34d268=Date[_0x12ee6b(0x1b7)]();this[_0x12ee6b(0x1c8)](_0x187a3e,_0x12ee6b(0x1b4)+_0x573695);try{const _0x520a43=await _0x1b1a1a(),_0x139663=Date[_0x12ee6b(0x1b7)]()-_0x34d268;return this[_0x12ee6b(0x1a0)](_0x187a3e,_0x12ee6b(0x1c2)+_0x573695,_0x139663),_0x520a43;}catch(_0x303542){const _0x28332a=Date['now']()-_0x34d268;this['error'](_0x187a3e,_0x12ee6b(0x1a5)+_0x573695,{'error':_0x303542 instanceof Error?_0x303542[_0x12ee6b(0x1b8)]:String(_0x303542),'duration':_0x28332a});throw _0x303542;}}[a257_0x3c42f6(0x1ad)](){const _0x5895f5=a257_0x3c42f6;try{if(!a257_0x48ace5[_0x5895f5(0x19b)](this['logFilePath']))return[];const _0x2030e8=a257_0x48ace5['readFileSync'](this[_0x5895f5(0x1a6)],_0x5895f5(0x1c0));return _0x2030e8['split']('\x0a')[_0x5895f5(0x19c)](_0x4643c8=>_0x4643c8[_0x5895f5(0x196)]())['map'](_0x40a819=>JSON[_0x5895f5(0x1be)](_0x40a819));}catch(_0x5d5c77){return console['warn'](_0x5895f5(0x198),_0x5d5c77),[];}}[a257_0x3c42f6(0x19f)](){const _0x297004=a257_0x3c42f6;try{a257_0x48ace5[_0x297004(0x19b)](this[_0x297004(0x1a6)])&&a257_0x48ace5[_0x297004(0x1a1)](this[_0x297004(0x1a6)],'',_0x297004(0x1c0));}catch(_0x25d9e6){console[_0x297004(0x1a4)]('Failed\x20to\x20clear\x20logs:',_0x25d9e6);}}[a257_0x3c42f6(0x1ca)](){return this['winstonLogger'];}}export const logger=new Logger();
1
+ const a258_0x5bd8c6=a258_0x1ad5;function a258_0x53aa(){const _0xff6d5a=['level','失败:\x20','4254200mBQeCa','combine','format','getWinstonInstance','info','utf8','timestamp','logFilePath','now','11354787aJbkne','initWinstonLogger','parse','log','command','red','readFileSync','yellow','251613RKlRnW','12iXSYFn','logTask','transports','join','message','details','4Yznzvc','10xeoVne','完成:\x20','19776cfOrhm','mkdirSync','duration','setRawCommand','error','map','6514032tODBic','.lovrabet.log','winstonLogger','setLogPath','currentRawCommand','587191pTtvgd','开始执行:\x20','8395490rbjZGy','existsSync','trim','success','toISOString','readLogs'];a258_0x53aa=function(){return _0xff6d5a;};return a258_0x53aa();}(function(_0x437489,_0x175be1){const _0x407b13=a258_0x1ad5,_0x3d16e6=_0x437489();while(!![]){try{const _0x3dcab4=-parseInt(_0x407b13(0xaa))/0x1*(parseInt(_0x407b13(0x9c))/0x2)+-parseInt(_0x407b13(0x95))/0x3*(-parseInt(_0x407b13(0x96))/0x4)+-parseInt(_0x407b13(0x9d))/0x5*(-parseInt(_0x407b13(0x9f))/0x6)+-parseInt(_0x407b13(0xa5))/0x7+parseInt(_0x407b13(0xb4))/0x8+parseInt(_0x407b13(0xbd))/0x9+parseInt(_0x407b13(0xac))/0xa;if(_0x3dcab4===_0x175be1)break;else _0x3d16e6['push'](_0x3d16e6['shift']());}catch(_0x2e6635){_0x3d16e6['push'](_0x3d16e6['shift']());}}}(a258_0x53aa,0xbff26));import a258_0x2d4d04 from'winston';import a258_0x430d9d from'node:fs';function a258_0x1ad5(_0x2a8015,_0x2a17f5){_0x2a8015=_0x2a8015-0x90;const _0x53aafa=a258_0x53aa();let _0x1ad509=_0x53aafa[_0x2a8015];return _0x1ad509;}import a258_0x391158 from'node:path';class Logger{['winstonLogger'];['logFilePath'];['currentRawCommand']='';constructor(){this['logFilePath']='';}[a258_0x5bd8c6(0xa2)](_0x561973){const _0x873e9=a258_0x5bd8c6;this[_0x873e9(0xa9)]=_0x561973;}[a258_0x5bd8c6(0xbe)](){const _0x7b0503=a258_0x5bd8c6,_0x14989c=a258_0x391158['dirname'](this[_0x7b0503(0xbb)]);!a258_0x430d9d['existsSync'](_0x14989c)&&a258_0x430d9d[_0x7b0503(0xa0)](_0x14989c,{'recursive':!![]});const _0x158d72=a258_0x2d4d04['format'][_0x7b0503(0xb5)](a258_0x2d4d04[_0x7b0503(0xb6)][_0x7b0503(0xba)](),a258_0x2d4d04[_0x7b0503(0xb6)]['errors']({'stack':!![]}),a258_0x2d4d04[_0x7b0503(0xb6)]['printf'](_0x95ec4f=>{const _0x4a8faf=_0x7b0503,_0x3f2b54={'timestamp':_0x95ec4f[_0x4a8faf(0xba)]||new Date()[_0x4a8faf(0xb0)](),'level':_0x95ec4f[_0x4a8faf(0xb2)]||_0x4a8faf(0xb8),'command':_0x95ec4f[_0x4a8faf(0x91)]||'unknown','rawCommand':_0x95ec4f['rawCommand']||this[_0x4a8faf(0xa9)]||undefined,'message':_0x95ec4f[_0x4a8faf(0x9a)]||'','duration':_0x95ec4f[_0x4a8faf(0xa1)]||undefined,'details':_0x95ec4f[_0x4a8faf(0x9b)]||undefined};return JSON['stringify'](_0x3f2b54);}));this[_0x7b0503(0xa7)]=a258_0x2d4d04['createLogger']({'level':_0x7b0503(0xb8),'format':_0x158d72,'transports':[new a258_0x2d4d04[(_0x7b0503(0x98))]['File']({'filename':this[_0x7b0503(0xbb)],'level':_0x7b0503(0xb8)})],'silent':![]}),a258_0x2d4d04['addColors']({'success':'green','error':_0x7b0503(0x92),'warn':_0x7b0503(0x94),'info':'blue'});}[a258_0x5bd8c6(0xa8)](_0x1dfa2d){const _0x9f6935=a258_0x5bd8c6;this[_0x9f6935(0xbb)]=a258_0x391158[_0x9f6935(0x99)](_0x1dfa2d,_0x9f6935(0xa6)),this[_0x9f6935(0xa7)]&&this[_0x9f6935(0xa7)]['clear'](),this[_0x9f6935(0xbe)]();}[a258_0x5bd8c6(0xb8)](_0x45d380,_0x5cf15d,_0x34b5fe){const _0x51ed07=a258_0x5bd8c6;if(!this['logFilePath']||!this[_0x51ed07(0xa7)])return;this[_0x51ed07(0xa7)][_0x51ed07(0xb8)](_0x5cf15d,{'command':_0x45d380,'details':_0x34b5fe});}[a258_0x5bd8c6(0xaf)](_0x121b1e,_0x1c432f,_0x57cb58,_0x3ae1b3){const _0x44eee0=a258_0x5bd8c6;if(!this[_0x44eee0(0xbb)]||!this[_0x44eee0(0xa7)])return;this[_0x44eee0(0xa7)][_0x44eee0(0x90)]('info',_0x1c432f,{'level':_0x44eee0(0xaf),'command':_0x121b1e,'duration':_0x57cb58,'details':_0x3ae1b3});}[a258_0x5bd8c6(0xa3)](_0x1e7346,_0x3a1825,_0x43633c){const _0x188db5=a258_0x5bd8c6;if(!this[_0x188db5(0xbb)]||!this[_0x188db5(0xa7)])return;this[_0x188db5(0xa7)]['error'](_0x3a1825,{'command':_0x1e7346,'details':_0x43633c});}['warn'](_0x42a569,_0x179dd4,_0xeb79e9){const _0xb2e014=a258_0x5bd8c6;if(!this[_0xb2e014(0xbb)]||!this['winstonLogger'])return;this[_0xb2e014(0xa7)]['warn'](_0x179dd4,{'command':_0x42a569,'details':_0xeb79e9});}async[a258_0x5bd8c6(0x97)](_0x149ae6,_0x26342a,_0x566f2c){const _0x1ecec8=a258_0x5bd8c6,_0x53ddce=Date[_0x1ecec8(0xbc)]();this[_0x1ecec8(0xb8)](_0x149ae6,_0x1ecec8(0xab)+_0x26342a);try{const _0x57043d=await _0x566f2c(),_0x2e74f1=Date[_0x1ecec8(0xbc)]()-_0x53ddce;return this[_0x1ecec8(0xaf)](_0x149ae6,_0x1ecec8(0x9e)+_0x26342a,_0x2e74f1),_0x57043d;}catch(_0x5afad9){const _0x1264aa=Date[_0x1ecec8(0xbc)]()-_0x53ddce;this[_0x1ecec8(0xa3)](_0x149ae6,_0x1ecec8(0xb3)+_0x26342a,{'error':_0x5afad9 instanceof Error?_0x5afad9[_0x1ecec8(0x9a)]:String(_0x5afad9),'duration':_0x1264aa});throw _0x5afad9;}}[a258_0x5bd8c6(0xb1)](){const _0x152780=a258_0x5bd8c6;try{if(!a258_0x430d9d['existsSync'](this[_0x152780(0xbb)]))return[];const _0x539031=a258_0x430d9d[_0x152780(0x93)](this['logFilePath'],_0x152780(0xb9));return _0x539031['split']('\x0a')['filter'](_0x163898=>_0x163898[_0x152780(0xae)]())[_0x152780(0xa4)](_0x3b2b9a=>JSON[_0x152780(0xbf)](_0x3b2b9a));}catch(_0x5aec2b){return console['warn']('Failed\x20to\x20read\x20logs:',_0x5aec2b),[];}}['clearLogs'](){const _0x2f38b8=a258_0x5bd8c6;try{a258_0x430d9d[_0x2f38b8(0xad)](this['logFilePath'])&&a258_0x430d9d['writeFileSync'](this[_0x2f38b8(0xbb)],'','utf8');}catch(_0x2029ec){console['warn']('Failed\x20to\x20clear\x20logs:',_0x2029ec);}}[a258_0x5bd8c6(0xb7)](){const _0x5c23c2=a258_0x5bd8c6;return this[_0x5c23c2(0xa7)];}}export const logger=new Logger();
@@ -1 +1 @@
1
- function a258_0x3ef1(_0x568d8e,_0x5613ec){_0x568d8e=_0x568d8e-0x11d;const _0x58297b=a258_0x5829();let _0x3ef15c=_0x58297b[_0x568d8e];return _0x3ef15c;}(function(_0x19e5cb,_0x245f93){const _0x382735=a258_0x3ef1,_0xa19457=_0x19e5cb();while(!![]){try{const _0x5245fc=-parseInt(_0x382735(0x12a))/0x1*(parseInt(_0x382735(0x127))/0x2)+parseInt(_0x382735(0x12e))/0x3*(-parseInt(_0x382735(0x120))/0x4)+parseInt(_0x382735(0x11f))/0x5+-parseInt(_0x382735(0x126))/0x6+-parseInt(_0x382735(0x11e))/0x7*(-parseInt(_0x382735(0x128))/0x8)+-parseInt(_0x382735(0x12d))/0x9*(-parseInt(_0x382735(0x12c))/0xa)+parseInt(_0x382735(0x122))/0xb;if(_0x5245fc===_0x245f93)break;else _0xa19457['push'](_0xa19457['shift']());}catch(_0x9ff16d){_0xa19457['push'](_0xa19457['shift']());}}}(a258_0x5829,0x57115));import{CliErrors}from'../errors.js';export function parseJsonParams(_0x2a9963){const _0x1f833b=a258_0x3ef1;if(!_0x2a9963)return undefined;let _0x3bf253;try{_0x3bf253=JSON[_0x1f833b(0x129)](_0x2a9963);}catch{throw CliErrors[_0x1f833b(0x121)](_0x1f833b(0x12b)+_0x2a9963);}if(!_0x3bf253||typeof _0x3bf253!==_0x1f833b(0x125)||Array[_0x1f833b(0x11d)](_0x3bf253))throw CliErrors[_0x1f833b(0x121)](_0x1f833b(0x123),_0x1f833b(0x124));return _0x3bf253;}function a258_0x5829(){const _0x2c0c64=['Invalid\x20JSON\x20for\x20--params:\x20','230rLzBTk','97623iVYYTz','3kxoZwg','isArray','4833052qsugCn','730110oXLvnh','952496KcuPwD','validation','7347472KwoQdw','--params\x20must\x20be\x20a\x20JSON\x20object','Example:\x20--params\x20\x27{\x22id\x22:123}\x27','object','4198452NcZaou','24NYTdFX','8jebCPO','parse','38283FVLgrT'];a258_0x5829=function(){return _0x2c0c64;};return a258_0x5829();}
1
+ function a259_0xc517(){const _0x2f8152=['parse','33VaPgim','158137recYSf','Example:\x20--params\x20\x27{\x22id\x22:123}\x27','Invalid\x20JSON\x20for\x20--params:\x20','validation','1166768FFwWFS','isArray','724932pXbbfI','--params\x20must\x20be\x20a\x20JSON\x20object','45252lUuANM','4852ESnmWb','object','339OSZlAQ','16RpnaCd','6114460KFWpzH','30FJPvFj','2958110CNSEBb','27TTbjLq','468yrzxwD'];a259_0xc517=function(){return _0x2f8152;};return a259_0xc517();}function a259_0x6022(_0x216790,_0x142c65){_0x216790=_0x216790-0x1aa;const _0xc517a8=a259_0xc517();let _0x60229d=_0xc517a8[_0x216790];return _0x60229d;}(function(_0x4221a5,_0x587a55){const _0x40dff9=a259_0x6022,_0xcc2d87=_0x4221a5();while(!![]){try{const _0x28b529=-parseInt(_0x40dff9(0x1ad))/0x1*(-parseInt(_0x40dff9(0x1ab))/0x2)+parseInt(_0x40dff9(0x1aa))/0x3*(parseInt(_0x40dff9(0x1ae))/0x4)+-parseInt(_0x40dff9(0x1af))/0x5+-parseInt(_0x40dff9(0x1b0))/0x6*(-parseInt(_0x40dff9(0x1b6))/0x7)+-parseInt(_0x40dff9(0x1ba))/0x8*(parseInt(_0x40dff9(0x1b2))/0x9)+-parseInt(_0x40dff9(0x1b1))/0xa*(parseInt(_0x40dff9(0x1b5))/0xb)+-parseInt(_0x40dff9(0x1bc))/0xc*(-parseInt(_0x40dff9(0x1b3))/0xd);if(_0x28b529===_0x587a55)break;else _0xcc2d87['push'](_0xcc2d87['shift']());}catch(_0xbb112c){_0xcc2d87['push'](_0xcc2d87['shift']());}}}(a259_0xc517,0x9802e));import{CliErrors}from'../errors.js';export function parseJsonParams(_0x459c5f){const _0xb1786a=a259_0x6022;if(!_0x459c5f)return undefined;let _0x5ac5f4;try{_0x5ac5f4=JSON[_0xb1786a(0x1b4)](_0x459c5f);}catch{throw CliErrors['validation'](_0xb1786a(0x1b8)+_0x459c5f);}if(!_0x5ac5f4||typeof _0x5ac5f4!==_0xb1786a(0x1ac)||Array[_0xb1786a(0x1bb)](_0x5ac5f4))throw CliErrors[_0xb1786a(0x1b9)](_0xb1786a(0x1bd),_0xb1786a(0x1b7));return _0x5ac5f4;}
@@ -1 +1 @@
1
- function a259_0x2a75(){const _0x4d913c=['40200DAKHLe','7agAxkw','win32','121ROWxFg','225mskYRl','4dtGbfP','571059qtLmDH','platform','652HwWYZL','1501956bDEJUa','1661488jjFwVQ','1429075nXbKqc','727pqcsmE','35710dgJHiM'];a259_0x2a75=function(){return _0x4d913c;};return a259_0x2a75();}const a259_0x51187e=a259_0x890a;(function(_0x586cfe,_0x4c5d64){const _0x305038=a259_0x890a,_0x5d4919=_0x586cfe();while(!![]){try{const _0x5d4c56=parseInt(_0x305038(0xc0))/0x1*(parseInt(_0x305038(0xbc))/0x2)+parseInt(_0x305038(0xc8))/0x3*(parseInt(_0x305038(0xc7))/0x4)+-parseInt(_0x305038(0xbf))/0x5+-parseInt(_0x305038(0xbd))/0x6+parseInt(_0x305038(0xc3))/0x7*(parseInt(_0x305038(0xbe))/0x8)+parseInt(_0x305038(0xc6))/0x9*(parseInt(_0x305038(0xc1))/0xa)+-parseInt(_0x305038(0xc5))/0xb*(parseInt(_0x305038(0xc2))/0xc);if(_0x5d4c56===_0x4c5d64)break;else _0x5d4919['push'](_0x5d4919['shift']());}catch(_0x44f9e8){_0x5d4919['push'](_0x5d4919['shift']());}}}(a259_0x2a75,0x24f1d));export const isWindows=process[a259_0x51187e(0xc9)]===a259_0x51187e(0xc4);function a259_0x890a(_0x35ac30,_0x3b4d1c){_0x35ac30=_0x35ac30-0xbc;const _0x2a75bb=a259_0x2a75();let _0x890a3=_0x2a75bb[_0x35ac30];return _0x890a3;}export function resolveNpmBin(_0x3c2bd4){return isWindows?_0x3c2bd4+'.cmd':_0x3c2bd4;}
1
+ function a260_0x2a9d(){const _0x3a78e9=['165tBdgII','1449314ofvujw','1806XtAVCl','42260592iMErNt','3278622IwiIFb','11064wuzHIu','53748vetyGm','763533VrGhzA','platform','1MGCyvW','2564565jGcMdN','50HOqgTr'];a260_0x2a9d=function(){return _0x3a78e9;};return a260_0x2a9d();}const a260_0x190038=a260_0x1dab;(function(_0x7df3ff,_0x427b06){const _0xa81779=a260_0x1dab,_0xf1d953=_0x7df3ff();while(!![]){try{const _0x2de2dd=parseInt(_0xa81779(0x171))/0x1*(-parseInt(_0xa81779(0x169))/0x2)+-parseInt(_0xa81779(0x166))/0x3+-parseInt(_0xa81779(0x16e))/0x4*(parseInt(_0xa81779(0x168))/0x5)+-parseInt(_0xa81779(0x16c))/0x6+parseInt(_0xa81779(0x16a))/0x7*(-parseInt(_0xa81779(0x16d))/0x8)+-parseInt(_0xa81779(0x16f))/0x9*(parseInt(_0xa81779(0x167))/0xa)+parseInt(_0xa81779(0x16b))/0xb;if(_0x2de2dd===_0x427b06)break;else _0xf1d953['push'](_0xf1d953['shift']());}catch(_0xf90834){_0xf1d953['push'](_0xf1d953['shift']());}}}(a260_0x2a9d,0x77fef));export const isWindows=process[a260_0x190038(0x170)]==='win32';function a260_0x1dab(_0x52f219,_0x5812b8){_0x52f219=_0x52f219-0x166;const _0x2a9d1b=a260_0x2a9d();let _0x1dabc7=_0x2a9d1b[_0x52f219];return _0x1dabc7;}export function resolveNpmBin(_0xac5c9b){return isWindows?_0xac5c9b+'.cmd':_0xac5c9b;}
@@ -1 +1 @@
1
- const a260_0x1bdfe5=a260_0x1618;(function(_0x365f5d,_0x5aa82e){const _0x51eaff=a260_0x1618,_0x5811da=_0x365f5d();while(!![]){try{const _0x34b221=-parseInt(_0x51eaff(0xa1))/0x1*(-parseInt(_0x51eaff(0xa8))/0x2)+parseInt(_0x51eaff(0xaa))/0x3+parseInt(_0x51eaff(0x9c))/0x4+parseInt(_0x51eaff(0xa9))/0x5*(-parseInt(_0x51eaff(0xac))/0x6)+-parseInt(_0x51eaff(0x9e))/0x7+parseInt(_0x51eaff(0x98))/0x8*(-parseInt(_0x51eaff(0x9d))/0x9)+-parseInt(_0x51eaff(0xa3))/0xa*(-parseInt(_0x51eaff(0xad))/0xb);if(_0x34b221===_0x5aa82e)break;else _0x5811da['push'](_0x5811da['shift']());}catch(_0x56ad4e){_0x5811da['push'](_0x5811da['shift']());}}}(a260_0x393b,0x2e26f));import{existsSync,mkdirSync,readFileSync,writeFileSync}from'node:fs';import{dirname,join,resolve}from'node:path';function a260_0x393b(){const _0x5d1f91=['lastUpdated','../../templates/rules/lovrabet_rules.mdc.tpl','38fZHNGh','string','10rhVRgi','utf-8','/rules/rules.json','application/json','CDN\x20返回数据格式错误','3636tWvDQT','1630XCiLCo','662055QXIADW','本地模板文件不存在:\x20','3342bIvBWs','3738614XXHYKG','content','54680FSoNlt','agents.md','lovrabet_rules.mdc','catch','942700UeMSFs','189CuujiS','2458134AqwqbA'];a260_0x393b=function(){return _0x5d1f91;};return a260_0x393b();}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 _0x46891c=a260_0x1618,_0x514001=getTemplateBaseUrl();return _0x514001+_0x46891c(0xa5);}const LOCAL_TEMPLATE_PATH=resolve(__dirname,a260_0x1bdfe5(0xa0));export async function fetchRulesFromCDN(){const _0x33fc3f=a260_0x1bdfe5,_0x3e50a6=getRulesCdnUrl(),_0x50dbc2=await fetch(_0x3e50a6,{'headers':{'Accept':_0x33fc3f(0xa6)}});if(!_0x50dbc2['ok'])throw new Error('CDN\x20请求失败:\x20'+_0x50dbc2['status']+'\x20'+_0x50dbc2['statusText']);const _0xd3276a=await _0x50dbc2['json']();if(!_0xd3276a[_0x33fc3f(0xae)]||typeof _0xd3276a[_0x33fc3f(0xae)]!==_0x33fc3f(0xa2))throw new Error(_0x33fc3f(0xa7));return _0xd3276a;}export async function getRulesContent(){const _0x21126a=a260_0x1bdfe5;try{const _0x4101df=await fetchRulesFromCDN();return _0x4101df[_0x21126a(0xae)];}catch{return readLocalTemplate();}}function a260_0x1618(_0xe49b4c,_0x1a6c1a){_0xe49b4c=_0xe49b4c-0x98;const _0x393bf7=a260_0x393b();let _0x161824=_0x393bf7[_0xe49b4c];return _0x161824;}export function readLocalTemplate(){const _0x3f7ee2=a260_0x1bdfe5;if(existsSync(LOCAL_TEMPLATE_PATH))return readFileSync(LOCAL_TEMPLATE_PATH,_0x3f7ee2(0xa4));throw new Error(_0x3f7ee2(0xab)+LOCAL_TEMPLATE_PATH);}export async function writeRulesFile(_0x493507){const _0x5d1235=a260_0x1bdfe5,_0x566f1b=await fetchRulesFromCDN()[_0x5d1235(0x9b)](()=>null);let _0x1b92f5;_0x566f1b?(_0x1b92f5=_0x566f1b['content'],_0x566f1b[_0x5d1235(0x9f)]&&(_0x1b92f5=appendUpdateTime(_0x1b92f5,_0x566f1b[_0x5d1235(0x9f)]))):_0x1b92f5=readLocalTemplate();const _0x574673=dirname(_0x493507);!existsSync(_0x574673)&&mkdirSync(_0x574673,{'recursive':!![]}),writeFileSync(_0x493507,_0x1b92f5,_0x5d1235(0xa4));}export async function copyRulesToCursor(_0x20b8e1){const _0x32487d=a260_0x1bdfe5,_0x210a8d=join(_0x20b8e1,'.cursor/rules'),_0x1f02d4=join(_0x210a8d,_0x32487d(0x9a));if(existsSync(_0x1f02d4))return![];return await writeRulesFile(_0x1f02d4),!![];}export async function copyRulesToAgentsMd(_0x572307){const _0x2ad0bc=a260_0x1bdfe5,_0x451fad=join(_0x572307,_0x2ad0bc(0x99));if(existsSync(_0x451fad))return![];return await writeRulesFile(_0x451fad),!![];}
1
+ const a261_0x4331fc=a261_0xa2aa;(function(_0x284271,_0x5de6c7){const _0x264d06=a261_0xa2aa,_0x6c4fc3=_0x284271();while(!![]){try{const _0x4c82a1=parseInt(_0x264d06(0x1c0))/0x1+-parseInt(_0x264d06(0x1c4))/0x2*(parseInt(_0x264d06(0x1b2))/0x3)+-parseInt(_0x264d06(0x1b7))/0x4+-parseInt(_0x264d06(0x1b9))/0x5*(-parseInt(_0x264d06(0x1bb))/0x6)+-parseInt(_0x264d06(0x1c3))/0x7+parseInt(_0x264d06(0x1b4))/0x8*(parseInt(_0x264d06(0x1b3))/0x9)+parseInt(_0x264d06(0x1be))/0xa*(parseInt(_0x264d06(0x1bd))/0xb);if(_0x4c82a1===_0x5de6c7)break;else _0x6c4fc3['push'](_0x6c4fc3['shift']());}catch(_0x3b2057){_0x6c4fc3['push'](_0x6c4fc3['shift']());}}}(a261_0x12e6,0xa9c19));import{existsSync,mkdirSync,readFileSync,writeFileSync}from'node:fs';import{dirname,join,resolve}from'node:path';import{fileURLToPath}from'node:url';function a261_0xa2aa(_0x1be4ab,_0x482560){_0x1be4ab=_0x1be4ab-0x1b2;const _0x12e608=a261_0x12e6();let _0xa2aa4c=_0x12e608[_0x1be4ab];return _0xa2aa4c;}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 _0x315ddf=a261_0xa2aa,_0x1d62e6=getTemplateBaseUrl();return _0x1d62e6+_0x315ddf(0x1c8);}const LOCAL_TEMPLATE_PATH=resolve(__dirname,a261_0x4331fc(0x1b5));function a261_0x12e6(){const _0x293fc3=['.cursor/rules','CDN\x20返回数据格式错误','1419040oKDMFX','2OCMRKW','lovrabet_rules.mdc','agents.md','utf-8','/rules/rules.json','lastUpdated','1704294KGFerO','18GvtJuy','3936664ARkOJe','../../templates/rules/lovrabet_rules.mdc.tpl','status','2382764gInwhu','content','361520vKpouG','string','36vHPaIs','json','154TyPDsE','353690zLpWZv','CDN\x20请求失败:\x20','148674bAVMuz'];a261_0x12e6=function(){return _0x293fc3;};return a261_0x12e6();}export async function fetchRulesFromCDN(){const _0x55945d=a261_0x4331fc,_0x2f79c0=getRulesCdnUrl(),_0x3eb921=await fetch(_0x2f79c0,{'headers':{'Accept':'application/json'}});if(!_0x3eb921['ok'])throw new Error(_0x55945d(0x1bf)+_0x3eb921[_0x55945d(0x1b6)]+'\x20'+_0x3eb921['statusText']);const _0x3635ac=await _0x3eb921[_0x55945d(0x1bc)]();if(!_0x3635ac[_0x55945d(0x1b8)]||typeof _0x3635ac[_0x55945d(0x1b8)]!==_0x55945d(0x1ba))throw new Error(_0x55945d(0x1c2));return _0x3635ac;}export async function getRulesContent(){try{const _0x59410e=await fetchRulesFromCDN();return _0x59410e['content'];}catch{return readLocalTemplate();}}export function readLocalTemplate(){const _0x5d5a41=a261_0x4331fc;if(existsSync(LOCAL_TEMPLATE_PATH))return readFileSync(LOCAL_TEMPLATE_PATH,_0x5d5a41(0x1c7));throw new Error('本地模板文件不存在:\x20'+LOCAL_TEMPLATE_PATH);}export async function writeRulesFile(_0x3f03ef){const _0x408e83=a261_0x4331fc,_0x5f3839=await fetchRulesFromCDN()['catch'](()=>null);let _0x10a744;_0x5f3839?(_0x10a744=_0x5f3839['content'],_0x5f3839['lastUpdated']&&(_0x10a744=appendUpdateTime(_0x10a744,_0x5f3839[_0x408e83(0x1c9)]))):_0x10a744=readLocalTemplate();const _0x3b294e=dirname(_0x3f03ef);!existsSync(_0x3b294e)&&mkdirSync(_0x3b294e,{'recursive':!![]}),writeFileSync(_0x3f03ef,_0x10a744,_0x408e83(0x1c7));}export async function copyRulesToCursor(_0x81e8e6){const _0x3d9fe4=a261_0x4331fc,_0x17d961=join(_0x81e8e6,_0x3d9fe4(0x1c1)),_0x38232a=join(_0x17d961,_0x3d9fe4(0x1c5));if(existsSync(_0x38232a))return![];return await writeRulesFile(_0x38232a),!![];}export async function copyRulesToAgentsMd(_0x384d71){const _0x395548=a261_0x4331fc,_0x5bd5d9=join(_0x384d71,_0x395548(0x1c6));if(existsSync(_0x5bd5d9))return![];return await writeRulesFile(_0x5bd5d9),!![];}
@@ -1 +1 @@
1
- export function sleep(_0x4e718a){return new Promise(_0x2c3fdd=>setTimeout(_0x2c3fdd,_0x4e718a));}
1
+ export function sleep(_0x2ffa67){return new Promise(_0x3d1825=>setTimeout(_0x3d1825,_0x2ffa67));}
@@ -1 +1 @@
1
- const a262_0x13c30c=a262_0x3346;(function(_0x19966f,_0x5b0c2d){const _0x44092d=a262_0x3346,_0x3ddce1=_0x19966f();while(!![]){try{const _0x173e1a=-parseInt(_0x44092d(0xf5))/0x1+parseInt(_0x44092d(0xf0))/0x2*(parseInt(_0x44092d(0x115))/0x3)+-parseInt(_0x44092d(0x106))/0x4+-parseInt(_0x44092d(0x10a))/0x5+parseInt(_0x44092d(0x129))/0x6+parseInt(_0x44092d(0x108))/0x7*(parseInt(_0x44092d(0x109))/0x8)+-parseInt(_0x44092d(0x114))/0x9*(-parseInt(_0x44092d(0x105))/0xa);if(_0x173e1a===_0x5b0c2d)break;else _0x3ddce1['push'](_0x3ddce1['shift']());}catch(_0x2d377c){_0x3ddce1['push'](_0x3ddce1['shift']());}}}(a262_0x2090,0xa4ac2));import a262_0x29d09b from'node:fs';import a262_0x5bc4c8 from'node:path';import{logger}from'../utils/logger.js';import{getCliVersion}from'../utils/version.js';function a262_0x2090(){const _0x388364=['627508bmvTbf','\x0a\x20\x20\x20\x20{\x20','isFile','info','slice','success','endsWith','getDate','default','utf8','split','template','formatLocalTimestamp','toDisplayTitle','toUpperCase','includes','10YAxAvo','3310212lXiOmr','toComponentName','469MLspIY','90648vSCdqq','5622145pIuxWs','padStart','datasetCode','api','.json','.md','processFile','.tpl','getMinutes','alias:\x20\x22','9125667lXPYWw','3tKheJw','mkdir','pad','readFile','LOVRABET','replaceContent','writeFile','join','processTemplate','.css','processDirectory','getHours','replaceApiContent','promises','toLowerCase','name','.tsx','message','alias','pop','6089592Ldvbnj','模板内容替换失败','.js','map','datasetCode:\x20\x22','now','模板内容替换完成','replace','push','getMonth','tableName:\x20\x22','toISOString','tableName','getFullYear','931832iAruIj','.jsx','isDirectory','\x20},','extname'];a262_0x2090=function(){return _0x388364;};return a262_0x2090();}const CLI_VERSION=getCliVersion();function a262_0x3346(_0x21d1ad,_0x5cb237){_0x21d1ad=_0x21d1ad-0xed;const _0x209072=a262_0x2090();let _0x334658=_0x209072[_0x21d1ad];return _0x334658;}export class TemplateReplacer{static[a262_0x13c30c(0x117)](_0x11f542){const _0xb2c3de=a262_0x13c30c;return String(_0x11f542)[_0xb2c3de(0x10b)](0x2,'0');}static[a262_0x13c30c(0x101)](_0xa8f1ac){const _0x78e3a9=a262_0x13c30c,_0x2d8c62=_0xa8f1ac[_0x78e3a9(0xef)](),_0x5d07f3=this[_0x78e3a9(0x117)](_0xa8f1ac[_0x78e3a9(0x132)]()+0x1),_0x3333d2=this['pad'](_0xa8f1ac[_0x78e3a9(0xfc)]()),_0x30ec44=this[_0x78e3a9(0x117)](_0xa8f1ac[_0x78e3a9(0x120)]()),_0x53b44e=this['pad'](_0xa8f1ac[_0x78e3a9(0x112)]()),_0x2d3f1f=this[_0x78e3a9(0x117)](_0xa8f1ac['getSeconds']());return{'createdAt':_0x2d8c62+'-'+_0x5d07f3+'-'+_0x3333d2+'\x20'+_0x30ec44+':'+_0x53b44e+':'+_0x2d3f1f,'createdDate':_0x2d8c62+'-'+_0x5d07f3+'-'+_0x3333d2,'createdTime':_0x30ec44+':'+_0x53b44e+':'+_0x2d3f1f};}static[a262_0x13c30c(0x107)](_0x29840b){const _0x12eab2=a262_0x13c30c,_0x17627d=_0x29840b[_0x12eab2(0xff)]('/')[_0x12eab2(0x128)]()||_0x29840b;return _0x17627d[_0x12eab2(0xff)]('-')[_0x12eab2(0x12c)](_0x5329c1=>_0x5329c1['charAt'](0x0)[_0x12eab2(0x103)]()+_0x5329c1[_0x12eab2(0xf9)](0x1)['toLowerCase']())[_0x12eab2(0x11c)]('');}static[a262_0x13c30c(0x102)](_0x625e9a){const _0x716443=a262_0x13c30c,_0x2f732f=_0x625e9a[_0x716443(0xff)]('/')['pop']()||_0x625e9a;return _0x2f732f[_0x716443(0xff)]('-')['map'](_0x62064d=>_0x62064d['charAt'](0x0)[_0x716443(0x103)]()+_0x62064d[_0x716443(0xf9)](0x1)[_0x716443(0x123)]())[_0x716443(0x11c)]('\x20');}static[a262_0x13c30c(0x11a)](_0x6951da,_0x2c50b2,_0x301143){const _0x5837dd=a262_0x13c30c,_0x4bab5a=this[_0x5837dd(0x107)](_0x2c50b2),_0x1adcd3=this[_0x5837dd(0x102)](_0x2c50b2),{createdAt:_0x3c005e,createdDate:_0x13c024,createdTime:_0x5772a4}=this[_0x5837dd(0x101)](new Date());let _0x3e7e38=_0x6951da['replace'](/\{CliVersion\}/g,CLI_VERSION)[_0x5837dd(0x130)](/\{ComponentName\}/g,_0x4bab5a)[_0x5837dd(0x130)](/\{DisplayTitle\}/g,_0x1adcd3)[_0x5837dd(0x130)](/\{PageName\}/g,_0x2c50b2)[_0x5837dd(0x130)](/\{TemplateName\}/g,_0x301143)[_0x5837dd(0x130)](/\{CreatedAt\}/g,_0x3c005e)[_0x5837dd(0x130)](/\{CreatedDate\}/g,_0x13c024)[_0x5837dd(0x130)](/\{CreatedTime\}/g,_0x5772a4);return _0x3e7e38;}static[a262_0x13c30c(0x121)](_0x20991b,_0x3eb300,_0x2c07c6,_0x20ce9d,_0x5e2a7f,_0x588a78,_0x6195fe,_0x2c26ea){const _0x532670=a262_0x13c30c,_0x58c754=new Date(),_0x548790=_0x58c754[_0x532670(0xed)](),_0x34246c=_0x2c07c6[_0x532670(0x12c)](_0x3cbb66=>{const _0x445be3=_0x532670,_0x535101=[_0x445be3(0x12d)+_0x3cbb66[_0x445be3(0x10c)]+'\x22',_0x445be3(0x133)+_0x3cbb66[_0x445be3(0xee)]+'\x22','name:\x20\x22'+_0x3cbb66[_0x445be3(0x124)]+'\x22'];return _0x3cbb66['alias']&&_0x535101[_0x445be3(0x131)](_0x445be3(0x113)+_0x3cbb66[_0x445be3(0x127)]+'\x22'),_0x445be3(0xf6)+_0x535101[_0x445be3(0x11c)](',\x20')+_0x445be3(0xf3);})['join'](''),_0x201e57=_0x20ce9d||_0x2c07c6[0x0]?.['alias']||'YourModel';let _0x11e3b8=_0x20991b[_0x532670(0x130)](/\{AppCode\}/g,_0x3eb300)[_0x532670(0x130)](/\{ModelConfigs\}/g,_0x34246c)[_0x532670(0x130)](/\{ExampleModelName\}/g,_0x201e57)['replace'](/\{ApiFileName\}/g,_0x5e2a7f||_0x532670(0x10d))['replace'](/\{ConfigName\}/g,_0x588a78||_0x532670(0xfd))[_0x532670(0x130)](/\{ClientConfigParam\}/g,_0x6195fe||'')[_0x532670(0x130)](/\{VarPrefix\}/g,_0x2c26ea||_0x532670(0x119))[_0x532670(0x130)](/\{CreatedAt\}/g,_0x548790);return _0x11e3b8;}static async[a262_0x13c30c(0x11d)](_0x49224e,_0x309b16,_0x8707ac,_0x12e98d,_0xb90c5f=!![]){const _0x45161e=a262_0x13c30c,_0x49afc1=Date['now']();try{_0xb90c5f&&logger[_0x45161e(0xf8)](_0x45161e(0x100),'开始处理模板内容替换',{'templatePath':_0x49224e,'targetPath':_0x309b16,'pageName':_0x8707ac,'templateName':_0x12e98d});await a262_0x29d09b[_0x45161e(0x122)][_0x45161e(0x116)](_0x309b16,{'recursive':!![]}),await this['processDirectory'](_0x49224e,_0x309b16,_0x8707ac,_0x12e98d);if(_0xb90c5f){const _0x4effde=Date['now']()-_0x49afc1;logger[_0x45161e(0xfa)](_0x45161e(0x100),_0x45161e(0x12f),_0x4effde,{'pageName':_0x8707ac,'templateName':_0x12e98d});}}catch(_0x385b6f){if(_0xb90c5f){const _0x3ca74c=Date[_0x45161e(0x12e)]()-_0x49afc1;logger['error'](_0x45161e(0x100),_0x45161e(0x12a),{'templatePath':_0x49224e,'targetPath':_0x309b16,'pageName':_0x8707ac,'templateName':_0x12e98d,'error':_0x385b6f instanceof Error?_0x385b6f[_0x45161e(0x126)]:String(_0x385b6f),'duration':_0x3ca74c});}throw _0x385b6f;}}static async[a262_0x13c30c(0x11f)](_0xbae392,_0x4cde3f,_0xc6206c,_0x2960d0){const _0x21c3b4=a262_0x13c30c,_0x3edf9d=await a262_0x29d09b[_0x21c3b4(0x122)]['readdir'](_0xbae392,{'withFileTypes':!![]});for(const _0x567c35 of _0x3edf9d){const _0x365cfe=a262_0x5bc4c8[_0x21c3b4(0x11c)](_0xbae392,_0x567c35['name']);let _0x53c40c=a262_0x5bc4c8[_0x21c3b4(0x11c)](_0x4cde3f,_0x567c35[_0x21c3b4(0x124)]);_0x567c35['name'][_0x21c3b4(0xfb)](_0x21c3b4(0x111))&&(_0x53c40c=a262_0x5bc4c8[_0x21c3b4(0x11c)](_0x4cde3f,_0x567c35[_0x21c3b4(0x124)][_0x21c3b4(0x130)](/\.tpl$/,'')));if(_0x567c35[_0x21c3b4(0xf2)]())await a262_0x29d09b[_0x21c3b4(0x122)][_0x21c3b4(0x116)](_0x53c40c,{'recursive':!![]}),await this[_0x21c3b4(0x11f)](_0x365cfe,_0x53c40c,_0xc6206c,_0x2960d0);else _0x567c35[_0x21c3b4(0xf7)]()&&await this['processFile'](_0x365cfe,_0x53c40c,_0xc6206c,_0x2960d0);}}static async[a262_0x13c30c(0x110)](_0x4d94bd,_0x361e89,_0x3ca570,_0x239371){const _0x17ec02=a262_0x13c30c,_0x827567=a262_0x5bc4c8[_0x17ec02(0xf4)](_0x4d94bd)[_0x17ec02(0x123)]();_0x4d94bd[_0x17ec02(0xfb)](_0x17ec02(0x111))&&(_0x361e89=_0x361e89[_0x17ec02(0x130)](/\.tpl$/,''));const _0x4194e2=[_0x17ec02(0x125),'.ts',_0x17ec02(0xf1),_0x17ec02(0x12b),_0x17ec02(0x10e),_0x17ec02(0x10f),_0x17ec02(0x11e),'.scss',_0x17ec02(0x111)];if(_0x4194e2[_0x17ec02(0x104)](_0x827567)||_0x4d94bd[_0x17ec02(0xfb)](_0x17ec02(0x111))){const _0x479ba6=await a262_0x29d09b[_0x17ec02(0x122)][_0x17ec02(0x118)](_0x4d94bd,_0x17ec02(0xfe)),_0x2c3bd0=this[_0x17ec02(0x11a)](_0x479ba6,_0x3ca570,_0x239371);await a262_0x29d09b[_0x17ec02(0x122)][_0x17ec02(0x11b)](_0x361e89,_0x2c3bd0,_0x17ec02(0xfe));}else await a262_0x29d09b[_0x17ec02(0x122)]['copyFile'](_0x4d94bd,_0x361e89);}}
1
+ const a263_0x3b8f25=a263_0x4673;(function(_0x3ca6fe,_0x1992e8){const _0x30eae2=a263_0x4673,_0x85bb49=_0x3ca6fe();while(!![]){try{const _0x21bb55=parseInt(_0x30eae2(0x164))/0x1*(-parseInt(_0x30eae2(0x187))/0x2)+-parseInt(_0x30eae2(0x166))/0x3*(-parseInt(_0x30eae2(0x195))/0x4)+parseInt(_0x30eae2(0x18d))/0x5*(parseInt(_0x30eae2(0x172))/0x6)+parseInt(_0x30eae2(0x196))/0x7+parseInt(_0x30eae2(0x18a))/0x8+parseInt(_0x30eae2(0x19d))/0x9+parseInt(_0x30eae2(0x169))/0xa*(-parseInt(_0x30eae2(0x170))/0xb);if(_0x21bb55===_0x1992e8)break;else _0x85bb49['push'](_0x85bb49['shift']());}catch(_0x469347){_0x85bb49['push'](_0x85bb49['shift']());}}}(a263_0x1b2b,0x45a0b));function a263_0x1b2b(){const _0x564734=['1089981HwdMKW','join','.tpl','13641470Hiwikr','.js','extname','datasetCode','processTemplate','slice','datasetCode:\x20\x22','11tuSbOl','\x20},','396bqzLnR','.md','replaceApiContent','模板内容替换完成','.jsx','formatLocalTimestamp','getMinutes','utf8','getHours','mkdir','YourModel','toDisplayTitle','getMonth','default','error','.json','pad','toISOString','alias','pop','replaceContent','2462flbHcF','replace','now','3868768nieluN','LOVRABET','name','39015xGcoBy','readdir','readFile','info','toUpperCase','copyFile','map','charAt','4ZILyMm','977095exPItT','模板内容替换失败','processFile','name:\x20\x22','.ts','toLowerCase','message','3690351trNQZR','toComponentName','tableName:\x20\x22','includes','getFullYear','promises','writeFile','tableName','.css','push','split','isDirectory','processDirectory','213aVEtbI','template'];a263_0x1b2b=function(){return _0x564734;};return a263_0x1b2b();}import a263_0xe74de5 from'node:fs';import a263_0x331197 from'node:path';function a263_0x4673(_0x57bf5a,_0x44671d){_0x57bf5a=_0x57bf5a-0x160;const _0x1b2bff=a263_0x1b2b();let _0x467390=_0x1b2bff[_0x57bf5a];return _0x467390;}import{logger}from'../utils/logger.js';import{getCliVersion}from'../utils/version.js';const CLI_VERSION=getCliVersion();export class TemplateReplacer{static[a263_0x3b8f25(0x182)](_0x2bde92){return String(_0x2bde92)['padStart'](0x2,'0');}static[a263_0x3b8f25(0x177)](_0x2dda8f){const _0x2f3872=a263_0x3b8f25,_0xdaf03=_0x2dda8f[_0x2f3872(0x1a1)](),_0x5dc3a6=this[_0x2f3872(0x182)](_0x2dda8f[_0x2f3872(0x17e)]()+0x1),_0x59bb9a=this[_0x2f3872(0x182)](_0x2dda8f['getDate']()),_0x516e31=this[_0x2f3872(0x182)](_0x2dda8f[_0x2f3872(0x17a)]()),_0x56dd81=this['pad'](_0x2dda8f[_0x2f3872(0x178)]()),_0x4f1e2b=this[_0x2f3872(0x182)](_0x2dda8f['getSeconds']());return{'createdAt':_0xdaf03+'-'+_0x5dc3a6+'-'+_0x59bb9a+'\x20'+_0x516e31+':'+_0x56dd81+':'+_0x4f1e2b,'createdDate':_0xdaf03+'-'+_0x5dc3a6+'-'+_0x59bb9a,'createdTime':_0x516e31+':'+_0x56dd81+':'+_0x4f1e2b};}static[a263_0x3b8f25(0x19e)](_0x1f6c38){const _0x4965b6=a263_0x3b8f25,_0x461e78=_0x1f6c38['split']('/')[_0x4965b6(0x185)]()||_0x1f6c38;return _0x461e78[_0x4965b6(0x161)]('-')[_0x4965b6(0x193)](_0x497d2a=>_0x497d2a[_0x4965b6(0x194)](0x0)['toUpperCase']()+_0x497d2a[_0x4965b6(0x16e)](0x1)['toLowerCase']())['join']('');}static[a263_0x3b8f25(0x17d)](_0x20d3ce){const _0x3a2065=a263_0x3b8f25,_0x3e9fb=_0x20d3ce[_0x3a2065(0x161)]('/')['pop']()||_0x20d3ce;return _0x3e9fb[_0x3a2065(0x161)]('-')['map'](_0x3fab8b=>_0x3fab8b[_0x3a2065(0x194)](0x0)[_0x3a2065(0x191)]()+_0x3fab8b[_0x3a2065(0x16e)](0x1)['toLowerCase']())[_0x3a2065(0x167)]('\x20');}static['replaceContent'](_0x42080d,_0x40e5f9,_0x2a587c){const _0x317479=a263_0x3b8f25,_0x378e25=this[_0x317479(0x19e)](_0x40e5f9),_0x1a1471=this[_0x317479(0x17d)](_0x40e5f9),{createdAt:_0x5becbf,createdDate:_0x502a25,createdTime:_0x1a9583}=this[_0x317479(0x177)](new Date());let _0x4d661b=_0x42080d[_0x317479(0x188)](/\{CliVersion\}/g,CLI_VERSION)[_0x317479(0x188)](/\{ComponentName\}/g,_0x378e25)[_0x317479(0x188)](/\{DisplayTitle\}/g,_0x1a1471)[_0x317479(0x188)](/\{PageName\}/g,_0x40e5f9)[_0x317479(0x188)](/\{TemplateName\}/g,_0x2a587c)['replace'](/\{CreatedAt\}/g,_0x5becbf)['replace'](/\{CreatedDate\}/g,_0x502a25)[_0x317479(0x188)](/\{CreatedTime\}/g,_0x1a9583);return _0x4d661b;}static[a263_0x3b8f25(0x174)](_0x2cb8c2,_0x2b3432,_0x567af6,_0x34e7c1,_0x5e6426,_0x531332,_0x12665f,_0x45eaf3){const _0xb6ddbb=a263_0x3b8f25,_0x32a75b=new Date(),_0xce7ce9=_0x32a75b[_0xb6ddbb(0x183)](),_0xbf0c7e=_0x567af6[_0xb6ddbb(0x193)](_0x1f2454=>{const _0x3aa4f3=_0xb6ddbb,_0xa64c0c=[_0x3aa4f3(0x16f)+_0x1f2454[_0x3aa4f3(0x16c)]+'\x22',_0x3aa4f3(0x19f)+_0x1f2454[_0x3aa4f3(0x1a4)]+'\x22',_0x3aa4f3(0x199)+_0x1f2454['name']+'\x22'];return _0x1f2454[_0x3aa4f3(0x184)]&&_0xa64c0c[_0x3aa4f3(0x160)]('alias:\x20\x22'+_0x1f2454[_0x3aa4f3(0x184)]+'\x22'),'\x0a\x20\x20\x20\x20{\x20'+_0xa64c0c[_0x3aa4f3(0x167)](',\x20')+_0x3aa4f3(0x171);})[_0xb6ddbb(0x167)](''),_0x586a8b=_0x34e7c1||_0x567af6[0x0]?.['alias']||_0xb6ddbb(0x17c);let _0x2f7a12=_0x2cb8c2[_0xb6ddbb(0x188)](/\{AppCode\}/g,_0x2b3432)[_0xb6ddbb(0x188)](/\{ModelConfigs\}/g,_0xbf0c7e)['replace'](/\{ExampleModelName\}/g,_0x586a8b)[_0xb6ddbb(0x188)](/\{ApiFileName\}/g,_0x5e6426||'api')[_0xb6ddbb(0x188)](/\{ConfigName\}/g,_0x531332||_0xb6ddbb(0x17f))['replace'](/\{ClientConfigParam\}/g,_0x12665f||'')[_0xb6ddbb(0x188)](/\{VarPrefix\}/g,_0x45eaf3||_0xb6ddbb(0x18b))[_0xb6ddbb(0x188)](/\{CreatedAt\}/g,_0xce7ce9);return _0x2f7a12;}static async[a263_0x3b8f25(0x16d)](_0x53b598,_0x4c9a10,_0x347411,_0xc12b4d,_0x445dcf=!![]){const _0x1a509b=a263_0x3b8f25,_0x4f5f49=Date[_0x1a509b(0x189)]();try{_0x445dcf&&logger[_0x1a509b(0x190)](_0x1a509b(0x165),'开始处理模板内容替换',{'templatePath':_0x53b598,'targetPath':_0x4c9a10,'pageName':_0x347411,'templateName':_0xc12b4d});await a263_0xe74de5[_0x1a509b(0x1a2)][_0x1a509b(0x17b)](_0x4c9a10,{'recursive':!![]}),await this['processDirectory'](_0x53b598,_0x4c9a10,_0x347411,_0xc12b4d);if(_0x445dcf){const _0xe2b49a=Date[_0x1a509b(0x189)]()-_0x4f5f49;logger['success'](_0x1a509b(0x165),_0x1a509b(0x175),_0xe2b49a,{'pageName':_0x347411,'templateName':_0xc12b4d});}}catch(_0x57b0dc){if(_0x445dcf){const _0x58509e=Date[_0x1a509b(0x189)]()-_0x4f5f49;logger[_0x1a509b(0x180)](_0x1a509b(0x165),_0x1a509b(0x197),{'templatePath':_0x53b598,'targetPath':_0x4c9a10,'pageName':_0x347411,'templateName':_0xc12b4d,'error':_0x57b0dc instanceof Error?_0x57b0dc[_0x1a509b(0x19c)]:String(_0x57b0dc),'duration':_0x58509e});}throw _0x57b0dc;}}static async[a263_0x3b8f25(0x163)](_0x5a815e,_0x169929,_0x428e2b,_0x1e752b){const _0x94c8d6=a263_0x3b8f25,_0x4eda22=await a263_0xe74de5[_0x94c8d6(0x1a2)][_0x94c8d6(0x18e)](_0x5a815e,{'withFileTypes':!![]});for(const _0x4c2e65 of _0x4eda22){const _0x3d5e40=a263_0x331197[_0x94c8d6(0x167)](_0x5a815e,_0x4c2e65[_0x94c8d6(0x18c)]);let _0x139063=a263_0x331197[_0x94c8d6(0x167)](_0x169929,_0x4c2e65['name']);_0x4c2e65[_0x94c8d6(0x18c)]['endsWith'](_0x94c8d6(0x168))&&(_0x139063=a263_0x331197['join'](_0x169929,_0x4c2e65[_0x94c8d6(0x18c)][_0x94c8d6(0x188)](/\.tpl$/,'')));if(_0x4c2e65[_0x94c8d6(0x162)]())await a263_0xe74de5[_0x94c8d6(0x1a2)][_0x94c8d6(0x17b)](_0x139063,{'recursive':!![]}),await this[_0x94c8d6(0x163)](_0x3d5e40,_0x139063,_0x428e2b,_0x1e752b);else _0x4c2e65['isFile']()&&await this[_0x94c8d6(0x198)](_0x3d5e40,_0x139063,_0x428e2b,_0x1e752b);}}static async[a263_0x3b8f25(0x198)](_0x3976d5,_0x244c9d,_0x2abba8,_0x1cd10b){const _0x30cb3e=a263_0x3b8f25,_0xa02548=a263_0x331197[_0x30cb3e(0x16b)](_0x3976d5)[_0x30cb3e(0x19b)]();_0x3976d5['endsWith'](_0x30cb3e(0x168))&&(_0x244c9d=_0x244c9d[_0x30cb3e(0x188)](/\.tpl$/,''));const _0x2dd66f=['.tsx',_0x30cb3e(0x19a),_0x30cb3e(0x176),_0x30cb3e(0x16a),_0x30cb3e(0x181),_0x30cb3e(0x173),_0x30cb3e(0x1a5),'.scss','.tpl'];if(_0x2dd66f[_0x30cb3e(0x1a0)](_0xa02548)||_0x3976d5['endsWith'](_0x30cb3e(0x168))){const _0x3ff5fe=await a263_0xe74de5[_0x30cb3e(0x1a2)][_0x30cb3e(0x18f)](_0x3976d5,_0x30cb3e(0x179)),_0x5caa1c=this[_0x30cb3e(0x186)](_0x3ff5fe,_0x2abba8,_0x1cd10b);await a263_0xe74de5[_0x30cb3e(0x1a2)][_0x30cb3e(0x1a3)](_0x244c9d,_0x5caa1c,_0x30cb3e(0x179));}else await a263_0xe74de5['promises'][_0x30cb3e(0x192)](_0x3976d5,_0x244c9d);}}
@@ -1 +1 @@
1
- (function(_0x5a7eea,_0x4808cd){const _0x1eb521=a263_0x39a0,_0x508b45=_0x5a7eea();while(!![]){try{const _0x584a8e=-parseInt(_0x1eb521(0x1aa))/0x1+parseInt(_0x1eb521(0x1bc))/0x2*(parseInt(_0x1eb521(0x1b5))/0x3)+parseInt(_0x1eb521(0x1c3))/0x4+parseInt(_0x1eb521(0x1ab))/0x5+parseInt(_0x1eb521(0x1c6))/0x6*(parseInt(_0x1eb521(0x1ad))/0x7)+parseInt(_0x1eb521(0x1ac))/0x8+-parseInt(_0x1eb521(0x1ae))/0x9*(parseInt(_0x1eb521(0x1b1))/0xa);if(_0x584a8e===_0x4808cd)break;else _0x508b45['push'](_0x508b45['shift']());}catch(_0x5d872e){_0x508b45['push'](_0x508b45['shift']());}}}(a263_0x42b2,0x9c5ee));import{mkdir,readFile,writeFile}from'node:fs/promises';import{homedir}from'node:os';import{dirname,join}from'node:path';import a263_0x1a8c5c 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 a263_0x39a0(_0x2a3283,_0x29f577){_0x2a3283=_0x2a3283-0x1a8;const _0x42b2dc=a263_0x42b2();let _0x39a027=_0x42b2dc[_0x2a3283];return _0x39a027;}function isUpdateNoticeDisabled(){const _0x3edde5=a263_0x39a0,_0x9eabac=process.env.RABETBASE_NO_UPDATE_NOTICE?.[_0x3edde5(0x1ba)]()[_0x3edde5(0x1b2)]();return _0x9eabac==='1'||_0x9eabac===_0x3edde5(0x1bf)||_0x9eabac===_0x3edde5(0x1c4);}function a263_0x42b2(){const _0x12d694=['yes','object','6sfeKFr','rabetbase-cli','\x20update','579961qNFzWG','820655rEWGAG','2409632bwskWN','7193669VkAWsT','9ifBinH','gte','number','15709130lGAxVW','toLowerCase','valid','parse','6042shMeDD','checkedAt','update-check.json','lastNotifiedAt','.cache','trim','\x20available,\x20current\x20','200LfTGXi','now','utf8','true','/v/','lastNotifiedVersion','stringify','4387864swkyVE'];a263_0x42b2=function(){return _0x12d694;};return a263_0x42b2();}function cacheRoot(){const _0x3dc1da=a263_0x39a0;return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),_0x3dc1da(0x1b9));}export function getUpdateNoticeCachePath(){const _0x132749=a263_0x39a0;return join(cacheRoot(),_0x132749(0x1a8),_0x132749(0x1b7));}async function readUpdateNoticeCache(){const _0x147f8f=a263_0x39a0;try{const _0x2709ec=await readFile(getUpdateNoticeCachePath(),_0x147f8f(0x1be)),_0x425db0=JSON[_0x147f8f(0x1b4)](_0x2709ec);if(!_0x425db0||typeof _0x425db0!==_0x147f8f(0x1c5))return{};return _0x425db0;}catch{return{};}}async function writeUpdateNoticeCache(_0x4acd2a){const _0x2be267=a263_0x39a0;try{const _0x114702=getUpdateNoticeCachePath();await mkdir(dirname(_0x114702),{'recursive':!![]}),await writeFile(_0x114702,JSON[_0x2be267(0x1c2)](_0x4acd2a,null,0x2)+'\x0a',_0x2be267(0x1be));}catch{}}function isFreshCheck(_0x22e5e0,_0x1d9d4d){const _0xc918ab=a263_0x39a0;return typeof _0x22e5e0[_0xc918ab(0x1b6)]===_0xc918ab(0x1b0)&&_0x1d9d4d-_0x22e5e0[_0xc918ab(0x1b6)]<UPDATE_CHECK_TTL_MS;}function isRecentlyNotified(_0x27e44d,_0xd19b8f,_0x56a242){const _0x46e943=a263_0x39a0;return _0x27e44d[_0x46e943(0x1c1)]===_0xd19b8f&&typeof _0x27e44d['lastNotifiedAt']===_0x46e943(0x1b0)&&_0x56a242-_0x27e44d[_0x46e943(0x1b8)]<UPDATE_NOTICE_TTL_MS;}export function buildNpmVersionUrl(_0x1e5c82){const _0x498b90=a263_0x39a0;return'https://www.npmjs.com/package/'+NPM_PACKAGE_NAME+_0x498b90(0x1c0)+_0x1e5c82;}export async function resolveLatestUpdateNotice(){const _0x2e76bb=a263_0x39a0;if(isUpdateNoticeDisabled())return null;try{const _0x363b25=Date[_0x2e76bb(0x1bd)](),_0x5747ae=getCliVersion(),_0x2749fe=await readUpdateNoticeCache();let _0x495ce1=isFreshCheck(_0x2749fe,_0x363b25)?_0x2749fe['latest']?.[_0x2e76bb(0x1ba)]():undefined;if(!_0x495ce1&&!isFreshCheck(_0x2749fe,_0x363b25)){const _0x158155=await getCliVersionPolicy();_0x495ce1=_0x158155?.['stableVersion']?.[_0x2e76bb(0x1ba)]()||undefined,await writeUpdateNoticeCache({..._0x2749fe,'checkedAt':_0x363b25,'latest':_0x495ce1,'failed':!_0x495ce1});}if(!_0x495ce1||!a263_0x1a8c5c[_0x2e76bb(0x1b3)](_0x5747ae)||!a263_0x1a8c5c[_0x2e76bb(0x1b3)](_0x495ce1))return null;if(a263_0x1a8c5c[_0x2e76bb(0x1af)](_0x5747ae,_0x495ce1))return null;if(isRecentlyNotified(_0x2749fe,_0x495ce1,_0x363b25))return null;const _0x5caefa=CLI_BIN_NAME+_0x2e76bb(0x1a9);return await writeUpdateNoticeCache({..._0x2749fe,'checkedAt':isFreshCheck(_0x2749fe,_0x363b25)?_0x2749fe['checkedAt']:_0x363b25,'latest':_0x495ce1,'failed':![],'lastNotifiedVersion':_0x495ce1,'lastNotifiedAt':_0x363b25}),{'command':_0x5caefa,'current':_0x5747ae,'latest':_0x495ce1,'url':buildNpmVersionUrl(_0x495ce1),'message':CLI_BIN_NAME+'\x20'+_0x495ce1+_0x2e76bb(0x1bb)+_0x5747ae+',\x20run:\x20'+_0x5caefa};}catch{return null;}}
1
+ (function(_0x2ed943,_0x5d5c61){const _0x1a0bd8=a264_0x3986,_0x1645b4=_0x2ed943();while(!![]){try{const _0x2bfa92=parseInt(_0x1a0bd8(0xfe))/0x1+-parseInt(_0x1a0bd8(0xef))/0x2*(-parseInt(_0x1a0bd8(0xec))/0x3)+-parseInt(_0x1a0bd8(0xeb))/0x4*(-parseInt(_0x1a0bd8(0xee))/0x5)+parseInt(_0x1a0bd8(0xe7))/0x6+parseInt(_0x1a0bd8(0xe9))/0x7*(-parseInt(_0x1a0bd8(0xf6))/0x8)+-parseInt(_0x1a0bd8(0xf7))/0x9+parseInt(_0x1a0bd8(0xed))/0xa*(-parseInt(_0x1a0bd8(0xfa))/0xb);if(_0x2bfa92===_0x5d5c61)break;else _0x1645b4['push'](_0x1645b4['shift']());}catch(_0x20df17){_0x1645b4['push'](_0x1645b4['shift']());}}}(a264_0xdb0e,0x248d6));function a264_0x3986(_0x17e655,_0x434a19){_0x17e655=_0x17e655-0xe7;const _0xdb0e9e=a264_0xdb0e();let _0x3986fa=_0xdb0e9e[_0x17e655];return _0x3986fa;}import{mkdir,readFile,writeFile}from'node:fs/promises';import{homedir}from'node:os';import{dirname,join}from'node:path';import a264_0x6720c6 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 _0x406f39=a264_0x3986,_0x5c17c6=process.env.RABETBASE_NO_UPDATE_NOTICE?.[_0x406f39(0xf3)]()['toLowerCase']();return _0x5c17c6==='1'||_0x5c17c6==='true'||_0x5c17c6===_0x406f39(0x101);}function cacheRoot(){const _0x2689f1=a264_0x3986;return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),_0x2689f1(0xf0));}export function getUpdateNoticeCachePath(){const _0xa8e23e=a264_0x3986;return join(cacheRoot(),_0xa8e23e(0xe8),_0xa8e23e(0xf1));}async function readUpdateNoticeCache(){const _0x3e1149=a264_0x3986;try{const _0x4302c0=await readFile(getUpdateNoticeCachePath(),_0x3e1149(0x100)),_0x1204cb=JSON[_0x3e1149(0xf5)](_0x4302c0);if(!_0x1204cb||typeof _0x1204cb!==_0x3e1149(0xf2))return{};return _0x1204cb;}catch{return{};}}async function writeUpdateNoticeCache(_0x2e2458){const _0x1423ec=a264_0x3986;try{const _0x2043df=getUpdateNoticeCachePath();await mkdir(dirname(_0x2043df),{'recursive':!![]}),await writeFile(_0x2043df,JSON[_0x1423ec(0x104)](_0x2e2458,null,0x2)+'\x0a','utf8');}catch{}}function isFreshCheck(_0x3878cf,_0x540330){const _0x8c0fd7=a264_0x3986;return typeof _0x3878cf[_0x8c0fd7(0x103)]===_0x8c0fd7(0xf9)&&_0x540330-_0x3878cf['checkedAt']<UPDATE_CHECK_TTL_MS;}function a264_0xdb0e(){const _0x275bfa=['trim','lastNotifiedVersion','parse','16xeojSD','1081899vZIcSC','now','number','792AaeHtR','\x20available,\x20current\x20',',\x20run:\x20','valid','44476YCechq','stableVersion','utf8','yes','gte','checkedAt','stringify','292800KqeAdx','rabetbase-cli','156527dLXeUz','lastNotifiedAt','666252HtnHRH','6BDQPBG','10180XlogmD','5ZuwXru','128108krcARK','.cache','update-check.json','object'];a264_0xdb0e=function(){return _0x275bfa;};return a264_0xdb0e();}function isRecentlyNotified(_0xecbdcd,_0x2af015,_0x26d1f2){const _0x960563=a264_0x3986;return _0xecbdcd[_0x960563(0xf4)]===_0x2af015&&typeof _0xecbdcd[_0x960563(0xea)]==='number'&&_0x26d1f2-_0xecbdcd['lastNotifiedAt']<UPDATE_NOTICE_TTL_MS;}export function buildNpmVersionUrl(_0x2bfd4d){return'https://www.npmjs.com/package/'+NPM_PACKAGE_NAME+'/v/'+_0x2bfd4d;}export async function resolveLatestUpdateNotice(){const _0xe81c22=a264_0x3986;if(isUpdateNoticeDisabled())return null;try{const _0x4f78db=Date[_0xe81c22(0xf8)](),_0x1e6509=getCliVersion(),_0x435086=await readUpdateNoticeCache();let _0x3d4bc0=isFreshCheck(_0x435086,_0x4f78db)?_0x435086['latest']?.[_0xe81c22(0xf3)]():undefined;if(!_0x3d4bc0&&!isFreshCheck(_0x435086,_0x4f78db)){const _0x9ce955=await getCliVersionPolicy();_0x3d4bc0=_0x9ce955?.[_0xe81c22(0xff)]?.[_0xe81c22(0xf3)]()||undefined,await writeUpdateNoticeCache({..._0x435086,'checkedAt':_0x4f78db,'latest':_0x3d4bc0,'failed':!_0x3d4bc0});}if(!_0x3d4bc0||!a264_0x6720c6[_0xe81c22(0xfd)](_0x1e6509)||!a264_0x6720c6[_0xe81c22(0xfd)](_0x3d4bc0))return null;if(a264_0x6720c6[_0xe81c22(0x102)](_0x1e6509,_0x3d4bc0))return null;if(isRecentlyNotified(_0x435086,_0x3d4bc0,_0x4f78db))return null;const _0x42b68d=CLI_BIN_NAME+'\x20update';return await writeUpdateNoticeCache({..._0x435086,'checkedAt':isFreshCheck(_0x435086,_0x4f78db)?_0x435086[_0xe81c22(0x103)]:_0x4f78db,'latest':_0x3d4bc0,'failed':![],'lastNotifiedVersion':_0x3d4bc0,'lastNotifiedAt':_0x4f78db}),{'command':_0x42b68d,'current':_0x1e6509,'latest':_0x3d4bc0,'url':buildNpmVersionUrl(_0x3d4bc0),'message':CLI_BIN_NAME+'\x20'+_0x3d4bc0+_0xe81c22(0xfb)+_0x1e6509+_0xe81c22(0xfc)+_0x42b68d};}catch{return null;}}
@@ -1 +1 @@
1
- function a264_0x381a(_0x3f8f94,_0x538b25){_0x3f8f94=_0x3f8f94-0xfc;var _0x2a4e14=a264_0x2a4e();var _0x381a74=_0x2a4e14[_0x3f8f94];return _0x381a74;}(function(_0x18914f,_0x40836e){var _0x4119d0=a264_0x381a,_0x34a177=_0x18914f();while(!![]){try{var _0x1e1335=-parseInt(_0x4119d0(0x100))/0x1+parseInt(_0x4119d0(0xff))/0x2+parseInt(_0x4119d0(0xfe))/0x3+parseInt(_0x4119d0(0x101))/0x4+-parseInt(_0x4119d0(0x102))/0x5+-parseInt(_0x4119d0(0xfd))/0x6+parseInt(_0x4119d0(0xfc))/0x7;if(_0x1e1335===_0x40836e)break;else _0x34a177['push'](_0x34a177['shift']());}catch(_0x3db1ee){_0x34a177['push'](_0x34a177['shift']());}}}(a264_0x2a4e,0x822ad));import{VERSION}from'../generated/build-info.js';function a264_0x2a4e(){var _0x6e578f=['3715166SzMgTF','3760722qwVHSO','533307kCamJa','1381762YQEcSr','617263xGtCYR','3754764diqdbd','2804320EdeTyR'];a264_0x2a4e=function(){return _0x6e578f;};return a264_0x2a4e();}export function getCliVersion(){return VERSION;}
1
+ function a265_0x14e6(_0x347646,_0x13d652){_0x347646=_0x347646-0xc7;var _0x551133=a265_0x5511();var _0x14e625=_0x551133[_0x347646];return _0x14e625;}(function(_0x258c26,_0x26c374){var _0x1aca82=a265_0x14e6,_0x18ec5d=_0x258c26();while(!![]){try{var _0x3b5864=-parseInt(_0x1aca82(0xcd))/0x1*(-parseInt(_0x1aca82(0xcf))/0x2)+parseInt(_0x1aca82(0xc7))/0x3*(-parseInt(_0x1aca82(0xcb))/0x4)+parseInt(_0x1aca82(0xd0))/0x5+parseInt(_0x1aca82(0xc9))/0x6+parseInt(_0x1aca82(0xce))/0x7+parseInt(_0x1aca82(0xcc))/0x8+-parseInt(_0x1aca82(0xc8))/0x9*(parseInt(_0x1aca82(0xca))/0xa);if(_0x3b5864===_0x26c374)break;else _0x18ec5d['push'](_0x18ec5d['shift']());}catch(_0x330b84){_0x18ec5d['push'](_0x18ec5d['shift']());}}}(a265_0x5511,0xb4e3b));function a265_0x5511(){var _0x7ed051=['859825BOWBGG','927963orSorS','1432116UQGUpM','2501250OpVkIn','130nxIsCT','4AIOjbE','917600oDjOUE','6278xwWJgq','8689310cDLFun','374BpysEE'];a265_0x5511=function(){return _0x7ed051;};return a265_0x5511();}import{VERSION}from'../generated/build-info.js';export function getCliVersion(){return VERSION;}
@@ -1 +1 @@
1
- function a265_0xe77e(_0x2ad802,_0x152e6a){_0x2ad802=_0x2ad802-0x17a;var _0x3ee308=a265_0x3ee3();var _0xe77e0f=_0x3ee308[_0x2ad802];return _0xe77e0f;}(function(_0x4707e6,_0x39d02d){var _0x3de994=a265_0xe77e,_0x4a0889=_0x4707e6();while(!![]){try{var _0x117af3=-parseInt(_0x3de994(0x17b))/0x1+parseInt(_0x3de994(0x17a))/0x2+parseInt(_0x3de994(0x180))/0x3*(-parseInt(_0x3de994(0x17e))/0x4)+parseInt(_0x3de994(0x17f))/0x5+-parseInt(_0x3de994(0x17c))/0x6*(-parseInt(_0x3de994(0x17d))/0x7)+parseInt(_0x3de994(0x181))/0x8+parseInt(_0x3de994(0x182))/0x9;if(_0x117af3===_0x39d02d)break;else _0x4a0889['push'](_0x4a0889['shift']());}catch(_0x5ce4b1){_0x4a0889['push'](_0x4a0889['shift']());}}}(a265_0x3ee3,0x7d013));import{setActiveCookie,clearActiveCookie}from'../core/api-client.js';export async function withActiveCookie(_0x12cf1e,_0x1341a3){setActiveCookie(_0x12cf1e);try{return await _0x1341a3();}finally{clearActiveCookie();}}function a265_0x3ee3(){var _0x1f688b=['10492PXrIXh','898999hatkij','6mnADmw','274673LvBGdj','1108YFBTQX','2086800zZBABp','1266nCXcdV','7676576tpHEua','958455jyrQrY'];a265_0x3ee3=function(){return _0x1f688b;};return a265_0x3ee3();}
1
+ (function(_0x10dba7,_0x189fb9){var _0x424edb=a266_0x169b,_0x7cb126=_0x10dba7();while(!![]){try{var _0x25f355=-parseInt(_0x424edb(0x1e3))/0x1+-parseInt(_0x424edb(0x1ea))/0x2+-parseInt(_0x424edb(0x1e7))/0x3+-parseInt(_0x424edb(0x1e6))/0x4+parseInt(_0x424edb(0x1e9))/0x5+-parseInt(_0x424edb(0x1eb))/0x6*(-parseInt(_0x424edb(0x1e8))/0x7)+parseInt(_0x424edb(0x1e5))/0x8*(parseInt(_0x424edb(0x1e4))/0x9);if(_0x25f355===_0x189fb9)break;else _0x7cb126['push'](_0x7cb126['shift']());}catch(_0x25a070){_0x7cb126['push'](_0x7cb126['shift']());}}}(a266_0xaac9,0xd8425));function a266_0x169b(_0x2e9a8a,_0x56be58){_0x2e9a8a=_0x2e9a8a-0x1e3;var _0xaac97e=a266_0xaac9();var _0x169bda=_0xaac97e[_0x2e9a8a];return _0x169bda;}import{setActiveCookie,clearActiveCookie}from'../core/api-client.js';export async function withActiveCookie(_0x1e5797,_0x26d23e){setActiveCookie(_0x1e5797);try{return await _0x26d23e();}finally{clearActiveCookie();}}function a266_0xaac9(){var _0x5e6036=['77uyeldV','3576020OthDxD','1209246vdCzav','114528MbwLap','381865rqBeLG','19448658sFojRb','8NZuwcA','1274924UNatsy','2685354Mmzrhp'];a266_0xaac9=function(){return _0x5e6036;};return a266_0xaac9();}
@@ -1 +1 @@
1
- (function(_0x3e291b,_0x5d63c5){var _0x136c64=a266_0xf1c5,_0x2ab67e=_0x3e291b();while(!![]){try{var _0x298a7b=-parseInt(_0x136c64(0xbb))/0x1*(-parseInt(_0x136c64(0xbf))/0x2)+parseInt(_0x136c64(0xc2))/0x3+parseInt(_0x136c64(0xc1))/0x4*(-parseInt(_0x136c64(0xba))/0x5)+-parseInt(_0x136c64(0xc4))/0x6+-parseInt(_0x136c64(0xbe))/0x7+-parseInt(_0x136c64(0xc3))/0x8*(-parseInt(_0x136c64(0xbd))/0x9)+parseInt(_0x136c64(0xbc))/0xa;if(_0x298a7b===_0x5d63c5)break;else _0x2ab67e['push'](_0x2ab67e['shift']());}catch(_0x2f9c79){_0x2ab67e['push'](_0x2ab67e['shift']());}}}(a266_0x4801,0xe8c1e));function a266_0xf1c5(_0x4824a8,_0x1296c1){_0x4824a8=_0x4824a8-0xb9;var _0x480182=a266_0x4801();var _0xf1c5ac=_0x480182[_0x4824a8];return _0xf1c5ac;}export function writeCliSideChannelLine(_0x374e91){var _0x367c06=a266_0xf1c5;process[_0x367c06(0xc0)][_0x367c06(0xb9)](_0x374e91+'\x0a');}function a266_0x4801(){var _0x246467=['write','22405QCRwDx','4361WVVWNV','6342230cZWSio','288QxgQnE','8655367IEOdsN','244GNwixh','stderr','556DBEMOP','2289132nORdJv','411640NvzznL','4578930diRlVn'];a266_0x4801=function(){return _0x246467;};return a266_0x4801();}
1
+ function a267_0x5764(){var _0x1da8c7=['10498400lZxOSJ','stderr','1584768tynWyj','511144jDvEGK','write','38jrEIwD','14PdIKoU','205448DjvPvL','6aVXFbB','101214xkYJBB','12279uaDLZE','805865DrNqlK'];a267_0x5764=function(){return _0x1da8c7;};return a267_0x5764();}(function(_0x1f37a0,_0x55b13a){var _0x20e7f5=a267_0x7bce,_0xeac9ef=_0x1f37a0();while(!![]){try{var _0x506198=-parseInt(_0x20e7f5(0x7a))/0x1+-parseInt(_0x20e7f5(0x78))/0x2*(-parseInt(_0x20e7f5(0x7d))/0x3)+-parseInt(_0x20e7f5(0x75))/0x4+-parseInt(_0x20e7f5(0x72))/0x5*(parseInt(_0x20e7f5(0x7b))/0x6)+-parseInt(_0x20e7f5(0x79))/0x7*(parseInt(_0x20e7f5(0x76))/0x8)+parseInt(_0x20e7f5(0x7c))/0x9+parseInt(_0x20e7f5(0x73))/0xa;if(_0x506198===_0x55b13a)break;else _0xeac9ef['push'](_0xeac9ef['shift']());}catch(_0x4cdb81){_0xeac9ef['push'](_0xeac9ef['shift']());}}}(a267_0x5764,0x3c9be));function a267_0x7bce(_0x45554b,_0x1376bd){_0x45554b=_0x45554b-0x72;var _0x576438=a267_0x5764();var _0x7bce27=_0x576438[_0x45554b];return _0x7bce27;}export function writeCliSideChannelLine(_0xe5a081){var _0x51da17=a267_0x7bce;process[_0x51da17(0x74)][_0x51da17(0x77)](_0xe5a081+'\x0a');}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lovrabet/rabetbase-cli",
3
- "version": "2.3.15-beta.1",
3
+ "version": "2.3.15",
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": [