@lovrabet/rabetbase-cli 2.3.14 → 2.3.15-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (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 a255_0x3a87(){const _0x58abe9=['message','9255dmZpZn','includes','name','56FbyuCO','1113060qUdBnI','fetch','84FWUTIC','ms\x20后进行第\x20','11067mQPGME','content-type','403082uOgcdq','headers','136OazCog','status','application/json','TypeError','3178260wPgYYc','ENOTFOUND','get','126999HkUUnu','AbortError','*\x20请求失败,','ECONNRESET','text','log','18426mumWBh'];a255_0x3a87=function(){return _0x58abe9;};return a255_0x3a87();}(function(_0xe9c723,_0x27994b){const _0xf3f4f2=a255_0x33f7,_0xee3cde=_0xe9c723();while(!![]){try{const _0x2b7cc1=parseInt(_0xf3f4f2(0xf5))/0x1+parseInt(_0xf3f4f2(0xff))/0x2+parseInt(_0xf3f4f2(0xf3))/0x3*(parseInt(_0xf3f4f2(0xf8))/0x4)+-parseInt(_0xf3f4f2(0xf9))/0x5+-parseInt(_0xf3f4f2(0xfb))/0x6*(parseInt(_0xf3f4f2(0xfd))/0x7)+parseInt(_0xf3f4f2(0x101))/0x8*(-parseInt(_0xf3f4f2(0xed))/0x9)+parseInt(_0xf3f4f2(0x105))/0xa;if(_0x2b7cc1===_0x27994b)break;else _0xee3cde['push'](_0xee3cde['shift']());}catch(_0x5bd13e){_0xee3cde['push'](_0xee3cde['shift']());}}}(a255_0x3a87,0x1fbb9));export async function httpRequest(_0x586b61,_0x4b16f7={}){const _0x1006f2=a255_0x33f7,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0x4b16f7;let _0xc490da=null;for(let _0x1225f0=0x0;_0x1225f0<=retries;_0x1225f0++){try{const _0x29a596=new AbortController(),_0x374e8e=setTimeout(()=>_0x29a596['abort'](),timeout),_0x510cff=await fetch(_0x586b61,{'headers':headers,'signal':_0x29a596['signal']});clearTimeout(_0x374e8e);let _0x31a7a7;const _0x1e8641=_0x510cff['headers'][_0x1006f2(0x107)](_0x1006f2(0xfe));return _0x1e8641?.[_0x1006f2(0xf6)](_0x1006f2(0x103))?_0x31a7a7=await _0x510cff['json']():_0x31a7a7=await _0x510cff[_0x1006f2(0xf1)](),{'ok':_0x510cff['ok'],'status':_0x510cff[_0x1006f2(0x102)],'statusText':_0x510cff['statusText'],'data':_0x31a7a7,'headers':_0x510cff[_0x1006f2(0x100)],'url':_0x510cff['url'],'text':()=>_0x510cff[_0x1006f2(0xf1)]()};}catch(_0x5bd746){_0xc490da=_0x5bd746 instanceof Error?_0x5bd746:new Error(String(_0x5bd746));if(_0x1225f0===retries)break;if(shouldRetry(_0x5bd746)){console[_0x1006f2(0xf2)](_0x1006f2(0xef)+retryDelay+_0x1006f2(0xfc)+(_0x1225f0+0x1)+'\x20次重试...'),await sleep(retryDelay);continue;}else break;}}throw _0xc490da||new Error('Request\x20failed');}function shouldRetry(_0x1b84e8){const _0x4ccc6e=a255_0x33f7;if(_0x1b84e8 instanceof Error){if(_0x1b84e8['name']===_0x4ccc6e(0xee))return![];if(_0x1b84e8[_0x4ccc6e(0xf7)]===_0x4ccc6e(0x104)&&_0x1b84e8[_0x4ccc6e(0xf4)][_0x4ccc6e(0xf6)](_0x4ccc6e(0xfa)))return!![];if(_0x1b84e8[_0x4ccc6e(0xf4)][_0x4ccc6e(0xf6)](_0x4ccc6e(0xf0)))return!![];if(_0x1b84e8[_0x4ccc6e(0xf4)][_0x4ccc6e(0xf6)](_0x4ccc6e(0x106)))return![];}return![];}function sleep(_0x19298d){return new Promise(_0x272705=>setTimeout(_0x272705,_0x19298d));}function a255_0x33f7(_0x34f1a0,_0x347cf9){_0x34f1a0=_0x34f1a0-0xed;const _0x3a8706=a255_0x3a87();let _0x33f76b=_0x3a8706[_0x34f1a0];return _0x33f76b;}export function validateUrl(_0x3f9f9c){try{return new URL(_0x3f9f9c),!![];}catch{return![];}}
1
+ (function(_0x39adc3,_0x1035c9){const _0x854182=a256_0x9b4d,_0x594c69=_0x39adc3();while(!![]){try{const _0x440de1=parseInt(_0x854182(0x128))/0x1+-parseInt(_0x854182(0x11c))/0x2+-parseInt(_0x854182(0x111))/0x3*(-parseInt(_0x854182(0x116))/0x4)+parseInt(_0x854182(0x118))/0x5+-parseInt(_0x854182(0x11f))/0x6+-parseInt(_0x854182(0x129))/0x7+-parseInt(_0x854182(0x113))/0x8*(-parseInt(_0x854182(0x11b))/0x9);if(_0x440de1===_0x1035c9)break;else _0x594c69['push'](_0x594c69['shift']());}catch(_0x5a1de8){_0x594c69['push'](_0x594c69['shift']());}}}(a256_0x5ce9,0xaf3f9));export async function httpRequest(_0x2069b5,_0x628c61={}){const _0x577d19=a256_0x9b4d,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0x628c61;let _0xc85f19=null;for(let _0x4470e4=0x0;_0x4470e4<=retries;_0x4470e4++){try{const _0x1dacd3=new AbortController(),_0x503f74=setTimeout(()=>_0x1dacd3[_0x577d19(0x124)](),timeout),_0x2c32f3=await fetch(_0x2069b5,{'headers':headers,'signal':_0x1dacd3[_0x577d19(0x120)]});clearTimeout(_0x503f74);let _0x35eecc;const _0xf611d2=_0x2c32f3[_0x577d19(0x11d)][_0x577d19(0x12c)](_0x577d19(0x122));return _0xf611d2?.[_0x577d19(0x125)]('application/json')?_0x35eecc=await _0x2c32f3[_0x577d19(0x123)]():_0x35eecc=await _0x2c32f3[_0x577d19(0x12d)](),{'ok':_0x2c32f3['ok'],'status':_0x2c32f3[_0x577d19(0x10e)],'statusText':_0x2c32f3[_0x577d19(0x127)],'data':_0x35eecc,'headers':_0x2c32f3[_0x577d19(0x11d)],'url':_0x2c32f3[_0x577d19(0x110)],'text':()=>_0x2c32f3[_0x577d19(0x12d)]()};}catch(_0x4c2d23){_0xc85f19=_0x4c2d23 instanceof Error?_0x4c2d23:new Error(String(_0x4c2d23));if(_0x4470e4===retries)break;if(shouldRetry(_0x4c2d23)){console[_0x577d19(0x12a)](_0x577d19(0x11e)+retryDelay+_0x577d19(0x115)+(_0x4470e4+0x1)+_0x577d19(0x11a)),await sleep(retryDelay);continue;}else break;}}throw _0xc85f19||new Error(_0x577d19(0x114));}function shouldRetry(_0x451b14){const _0x4bf366=a256_0x9b4d;if(_0x451b14 instanceof Error){if(_0x451b14[_0x4bf366(0x126)]===_0x4bf366(0x121))return![];if(_0x451b14['name']===_0x4bf366(0x119)&&_0x451b14['message']['includes'](_0x4bf366(0x117)))return!![];if(_0x451b14[_0x4bf366(0x10f)][_0x4bf366(0x125)](_0x4bf366(0x12b)))return!![];if(_0x451b14[_0x4bf366(0x10f)][_0x4bf366(0x125)](_0x4bf366(0x112)))return![];}return![];}function sleep(_0x470656){return new Promise(_0x4af127=>setTimeout(_0x4af127,_0x470656));}function a256_0x9b4d(_0x3a7d63,_0x4d0f80){_0x3a7d63=_0x3a7d63-0x10e;const _0x5ce9d1=a256_0x5ce9();let _0x9b4dbf=_0x5ce9d1[_0x3a7d63];return _0x9b4dbf;}export function validateUrl(_0x1b84a6){try{return new URL(_0x1b84a6),!![];}catch{return![];}}function a256_0x5ce9(){const _0x1095db=['get','text','status','message','url','5658XaTXuT','ENOTFOUND','360pZnKHZ','Request\x20failed','ms\x20后进行第\x20','716rqqtzC','fetch','2083090EnPOKS','TypeError','\x20次重试...','192735cFmGha','300922OEJYEe','headers','*\x20请求失败,','7021254ltRGOy','signal','AbortError','content-type','json','abort','includes','name','statusText','753674tkNdYA','3031518McjeSk','log','ECONNRESET'];a256_0x5ce9=function(){return _0x1095db;};return a256_0x5ce9();}
@@ -1 +1 @@
1
- (function(_0xec53be,_0xa731de){const _0x391955=a256_0x1ae1,_0x27323f=_0xec53be();while(!![]){try{const _0x5d63d6=-parseInt(_0x391955(0x108))/0x1*(parseInt(_0x391955(0x116))/0x2)+-parseInt(_0x391955(0x118))/0x3*(parseInt(_0x391955(0x117))/0x4)+parseInt(_0x391955(0x10c))/0x5+-parseInt(_0x391955(0x109))/0x6*(parseInt(_0x391955(0x10e))/0x7)+parseInt(_0x391955(0x115))/0x8*(-parseInt(_0x391955(0x110))/0x9)+parseInt(_0x391955(0x114))/0xa*(-parseInt(_0x391955(0x10a))/0xb)+-parseInt(_0x391955(0x106))/0xc*(-parseInt(_0x391955(0x111))/0xd);if(_0x5d63d6===_0xa731de)break;else _0x27323f['push'](_0x27323f['shift']());}catch(_0x28a957){_0x27323f['push'](_0x27323f['shift']());}}}(a256_0x3d55,0xc7e78));function a256_0x3d55(){const _0xa03aab=['783985oRSuXm','setRawMode','98539fSUFzS','stdin','186759AHthPo','2002KOVPzZ','isTTY','isRaw','7170votPiR','608YPbgYG','42806CyUdzO','40cUUVmC','434685kwFvJq','537960plyRgU','true','57zDOyTt','318KztErK','19173sUNNjo','stdout'];a256_0x3d55=function(){return _0xa03aab;};return a256_0x3d55();}function env(_0x85192c){return process.env[`RABETBASE_${_0x85192c}`]||process.env[`LOVRABET_${_0x85192c}`]||undefined;}function a256_0x1ae1(_0x4a0934,_0x34002b){_0x4a0934=_0x4a0934-0x106;const _0x3d55fc=a256_0x3d55();let _0x1ae18a=_0x3d55fc[_0x4a0934];return _0x1ae18a;}export function isNonInteractive(_0x369464){const _0x23ae0b=a256_0x1ae1;return!!(_0x369464['nonInteractive']||_0x369464['ci']||env('CI')===_0x23ae0b(0x107)||process.env.CI===_0x23ae0b(0x107)||!process[_0x23ae0b(0x10b)][_0x23ae0b(0x112)]||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x3e6bbe=a256_0x1ae1;if(!process[_0x3e6bbe(0x10f)][_0x3e6bbe(0x112)])return![];try{const _0x2526ec=process[_0x3e6bbe(0x10f)][_0x3e6bbe(0x113)];return process['stdin'][_0x3e6bbe(0x10d)](!![]),process[_0x3e6bbe(0x10f)][_0x3e6bbe(0x10d)](_0x2526ec??![]),!![];}catch{return![];}}
1
+ function a257_0x39f1(){const _0x259963=['54iasXCd','36875UmVNjD','setRawMode','119930wvNOBo','685156eeGdbQ','stdin','nonInteractive','6573jPWBVA','594zcePwT','787856VoBiru','isTTY','16YZQiEL','434904iFlwTR','true','864732vfmNNr','3CoqnWt','4056QWWtEu','182eMMtag'];a257_0x39f1=function(){return _0x259963;};return a257_0x39f1();}function a257_0x2375(_0x2555f8,_0x292a03){_0x2555f8=_0x2555f8-0x114;const _0x39f16f=a257_0x39f1();let _0x2375e3=_0x39f16f[_0x2555f8];return _0x2375e3;}(function(_0x15489c,_0x39e24b){const _0x72fe5a=a257_0x2375,_0x492b91=_0x15489c();while(!![]){try{const _0x2725a0=-parseInt(_0x72fe5a(0x11b))/0x1+parseInt(_0x72fe5a(0x123))/0x2*(parseInt(_0x72fe5a(0x114))/0x3)+parseInt(_0x72fe5a(0x122))/0x4*(parseInt(_0x72fe5a(0x118))/0x5)+-parseInt(_0x72fe5a(0x115))/0x6*(-parseInt(_0x72fe5a(0x11e))/0x7)+-parseInt(_0x72fe5a(0x120))/0x8*(-parseInt(_0x72fe5a(0x117))/0x9)+parseInt(_0x72fe5a(0x11a))/0xa*(parseInt(_0x72fe5a(0x11f))/0xb)+-parseInt(_0x72fe5a(0x125))/0xc*(parseInt(_0x72fe5a(0x116))/0xd);if(_0x2725a0===_0x39e24b)break;else _0x492b91['push'](_0x492b91['shift']());}catch(_0x463047){_0x492b91['push'](_0x492b91['shift']());}}}(a257_0x39f1,0x680ec));function env(_0x3c0f77){return process.env[`RABETBASE_${_0x3c0f77}`]||process.env[`LOVRABET_${_0x3c0f77}`]||undefined;}export function isNonInteractive(_0x536977){const _0x1158fd=a257_0x2375;return!!(_0x536977[_0x1158fd(0x11d)]||_0x536977['ci']||env('CI')===_0x1158fd(0x124)||process.env.CI===_0x1158fd(0x124)||!process['stdout'][_0x1158fd(0x121)]||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x1e0811=a257_0x2375;if(!process[_0x1e0811(0x11c)]['isTTY'])return![];try{const _0x546738=process['stdin']['isRaw'];return process[_0x1e0811(0x11c)][_0x1e0811(0x119)](!![]),process[_0x1e0811(0x11c)][_0x1e0811(0x119)](_0x546738??![]),!![];}catch{return![];}}
@@ -1 +1 @@
1
- function a257_0x1b94(){const _0x540a3f=['3488120AZnGxx','duration','5jRcyzp','stringify','readLogs','join','getWinstonInstance','writeFileSync','utf8','setRawCommand','clearLogs','dirname','yellow','format','121244iZvaey','now','12818088sdjMnk','level','filter','currentRawCommand','error','unknown','warn','logFilePath','initWinstonLogger','addColors','red','command','开始执行:\x20','786822rnKoQR','224722pklKIa','失败:\x20','info','7995342KxOulJ','green','Failed\x20to\x20read\x20logs:','10vSTNcW','details','trim','完成:\x20','map','blue','Failed\x20to\x20clear\x20logs:','timestamp','mkdirSync','transports','winstonLogger','createLogger','printf','File','existsSync','success','72LGJSJe','setLogPath','readFileSync','clear','177387DjRBNJ','log'];a257_0x1b94=function(){return _0x540a3f;};return a257_0x1b94();}const a257_0x27107a=a257_0x14a3;(function(_0x29da39,_0xf06e43){const _0x147c26=a257_0x14a3,_0x1d7ae8=_0x29da39();while(!![]){try{const _0x545ea7=parseInt(_0x147c26(0x199))/0x1*(-parseInt(_0x147c26(0x17b))/0x2)+parseInt(_0x147c26(0x17a))/0x3+parseInt(_0x147c26(0x16b))/0x4+parseInt(_0x147c26(0x197))/0x5+-parseInt(_0x147c26(0x17e))/0x6+parseInt(_0x147c26(0x195))/0x7*(parseInt(_0x147c26(0x191))/0x8)+parseInt(_0x147c26(0x16d))/0x9*(parseInt(_0x147c26(0x181))/0xa);if(_0x545ea7===_0xf06e43)break;else _0x1d7ae8['push'](_0x1d7ae8['shift']());}catch(_0x3b171f){_0x1d7ae8['push'](_0x1d7ae8['shift']());}}}(a257_0x1b94,0xb6a74));import a257_0x2be9d0 from'winston';function a257_0x14a3(_0x3ba714,_0x68a135){_0x3ba714=_0x3ba714-0x165;const _0x1b942f=a257_0x1b94();let _0x14a326=_0x1b942f[_0x3ba714];return _0x14a326;}import a257_0x3bf289 from'node:fs';import a257_0x4c0c4f from'node:path';class Logger{[a257_0x27107a(0x18b)];[a257_0x27107a(0x174)];[a257_0x27107a(0x170)]='';constructor(){const _0x486bcf=a257_0x27107a;this[_0x486bcf(0x174)]='';}[a257_0x27107a(0x166)](_0x2de7dc){const _0x5a192c=a257_0x27107a;this[_0x5a192c(0x170)]=_0x2de7dc;}[a257_0x27107a(0x175)](){const _0x2e7624=a257_0x27107a,_0x21c26b=a257_0x4c0c4f[_0x2e7624(0x168)](this[_0x2e7624(0x174)]);!a257_0x3bf289[_0x2e7624(0x18f)](_0x21c26b)&&a257_0x3bf289[_0x2e7624(0x189)](_0x21c26b,{'recursive':!![]});const _0x32d03a=a257_0x2be9d0['format']['combine'](a257_0x2be9d0[_0x2e7624(0x16a)][_0x2e7624(0x188)](),a257_0x2be9d0['format']['errors']({'stack':!![]}),a257_0x2be9d0[_0x2e7624(0x16a)][_0x2e7624(0x18d)](_0x13ae26=>{const _0x3f8622=_0x2e7624,_0x46222b={'timestamp':_0x13ae26[_0x3f8622(0x188)]||new Date()['toISOString'](),'level':_0x13ae26[_0x3f8622(0x16e)]||'info','command':_0x13ae26[_0x3f8622(0x178)]||_0x3f8622(0x172),'rawCommand':_0x13ae26['rawCommand']||this['currentRawCommand']||undefined,'message':_0x13ae26['message']||'','duration':_0x13ae26[_0x3f8622(0x198)]||undefined,'details':_0x13ae26[_0x3f8622(0x182)]||undefined};return JSON[_0x3f8622(0x19a)](_0x46222b);}));this['winstonLogger']=a257_0x2be9d0[_0x2e7624(0x18c)]({'level':_0x2e7624(0x17d),'format':_0x32d03a,'transports':[new a257_0x2be9d0[(_0x2e7624(0x18a))][(_0x2e7624(0x18e))]({'filename':this['logFilePath'],'level':_0x2e7624(0x17d)})],'silent':![]}),a257_0x2be9d0[_0x2e7624(0x176)]({'success':_0x2e7624(0x17f),'error':_0x2e7624(0x177),'warn':_0x2e7624(0x169),'info':_0x2e7624(0x186)});}[a257_0x27107a(0x192)](_0x787624){const _0x1633cc=a257_0x27107a;this[_0x1633cc(0x174)]=a257_0x4c0c4f[_0x1633cc(0x19c)](_0x787624,'.lovrabet.log'),this[_0x1633cc(0x18b)]&&this[_0x1633cc(0x18b)][_0x1633cc(0x194)](),this[_0x1633cc(0x175)]();}[a257_0x27107a(0x17d)](_0x2dca18,_0x59d20e,_0x389254){const _0x5ba1a0=a257_0x27107a;if(!this['logFilePath']||!this[_0x5ba1a0(0x18b)])return;this[_0x5ba1a0(0x18b)]['info'](_0x59d20e,{'command':_0x2dca18,'details':_0x389254});}['success'](_0x140122,_0x2006d7,_0x247c4c,_0x204323){const _0x40ae18=a257_0x27107a;if(!this[_0x40ae18(0x174)]||!this[_0x40ae18(0x18b)])return;this['winstonLogger'][_0x40ae18(0x196)](_0x40ae18(0x17d),_0x2006d7,{'level':_0x40ae18(0x190),'command':_0x140122,'duration':_0x247c4c,'details':_0x204323});}[a257_0x27107a(0x171)](_0x3594ab,_0x82aedf,_0x3f3d4f){const _0x553b7e=a257_0x27107a;if(!this[_0x553b7e(0x174)]||!this[_0x553b7e(0x18b)])return;this[_0x553b7e(0x18b)]['error'](_0x82aedf,{'command':_0x3594ab,'details':_0x3f3d4f});}[a257_0x27107a(0x173)](_0x174a58,_0x3c4345,_0x3a617c){const _0x2d2d97=a257_0x27107a;if(!this[_0x2d2d97(0x174)]||!this[_0x2d2d97(0x18b)])return;this['winstonLogger'][_0x2d2d97(0x173)](_0x3c4345,{'command':_0x174a58,'details':_0x3a617c});}async['logTask'](_0x2dd532,_0x48e034,_0x4e6d80){const _0x5c4b43=a257_0x27107a,_0x337f8e=Date[_0x5c4b43(0x16c)]();this[_0x5c4b43(0x17d)](_0x2dd532,_0x5c4b43(0x179)+_0x48e034);try{const _0x3843f6=await _0x4e6d80(),_0x3a1a21=Date[_0x5c4b43(0x16c)]()-_0x337f8e;return this[_0x5c4b43(0x190)](_0x2dd532,_0x5c4b43(0x184)+_0x48e034,_0x3a1a21),_0x3843f6;}catch(_0x534f0e){const _0x2f8c80=Date[_0x5c4b43(0x16c)]()-_0x337f8e;this[_0x5c4b43(0x171)](_0x2dd532,_0x5c4b43(0x17c)+_0x48e034,{'error':_0x534f0e instanceof Error?_0x534f0e['message']:String(_0x534f0e),'duration':_0x2f8c80});throw _0x534f0e;}}[a257_0x27107a(0x19b)](){const _0x269bf6=a257_0x27107a;try{if(!a257_0x3bf289[_0x269bf6(0x18f)](this[_0x269bf6(0x174)]))return[];const _0x3afb7a=a257_0x3bf289[_0x269bf6(0x193)](this['logFilePath'],_0x269bf6(0x165));return _0x3afb7a['split']('\x0a')[_0x269bf6(0x16f)](_0x4e3c26=>_0x4e3c26[_0x269bf6(0x183)]())[_0x269bf6(0x185)](_0x95d365=>JSON['parse'](_0x95d365));}catch(_0x2e1e8c){return console[_0x269bf6(0x173)](_0x269bf6(0x180),_0x2e1e8c),[];}}[a257_0x27107a(0x167)](){const _0x2dac23=a257_0x27107a;try{a257_0x3bf289[_0x2dac23(0x18f)](this['logFilePath'])&&a257_0x3bf289[_0x2dac23(0x19e)](this['logFilePath'],'',_0x2dac23(0x165));}catch(_0x3f0462){console[_0x2dac23(0x173)](_0x2dac23(0x187),_0x3f0462);}}[a257_0x27107a(0x19d)](){const _0x45c737=a257_0x27107a;return this[_0x45c737(0x18b)];}}export const logger=new Logger();
1
+ const a258_0x2ae1af=a258_0x1cc6;(function(_0x1811da,_0x41c764){const _0x3e53ff=a258_0x1cc6,_0xdc9e2a=_0x1811da();while(!![]){try{const _0x399985=parseInt(_0x3e53ff(0x11e))/0x1*(parseInt(_0x3e53ff(0xff))/0x2)+-parseInt(_0x3e53ff(0x104))/0x3+-parseInt(_0x3e53ff(0xf5))/0x4*(-parseInt(_0x3e53ff(0x10a))/0x5)+parseInt(_0x3e53ff(0x10f))/0x6+parseInt(_0x3e53ff(0x109))/0x7+-parseInt(_0x3e53ff(0xf6))/0x8+parseInt(_0x3e53ff(0xf8))/0x9*(parseInt(_0x3e53ff(0x10d))/0xa);if(_0x399985===_0x41c764)break;else _0xdc9e2a['push'](_0xdc9e2a['shift']());}catch(_0x4eff27){_0xdc9e2a['push'](_0xdc9e2a['shift']());}}}(a258_0x265b,0x8799b));function a258_0x1cc6(_0x47b9f3,_0x284bfc){_0x47b9f3=_0x47b9f3-0xeb;const _0x265b5e=a258_0x265b();let _0x1cc6e5=_0x265b5e[_0x47b9f3];return _0x1cc6e5;}import a258_0x50c569 from'winston';function a258_0x265b(){const _0x3a1469=['command','warn','完成:\x20','12lRFSQn','File','clearLogs','errors','stringify','utf8','combine','writeFileSync','readFileSync','失败:\x20','clear','currentRawCommand','message','logTask','info','878852qjsthN','6385408sktOAh','map','117ISHmcR','green','unknown','now','Failed\x20to\x20read\x20logs:','createLogger','timestamp','16870IHCCuS','blue','yellow','trim','setRawCommand','2184081WakqRw','dirname','log','success','transports','2989735lohiud','15XXNNGm','winstonLogger','mkdirSync','135770qUtUST','error','4305942RLHnhB','existsSync','details','readLogs','format','开始执行:\x20','logFilePath','rawCommand','split','.lovrabet.log','getWinstonInstance','initWinstonLogger'];a258_0x265b=function(){return _0x3a1469;};return a258_0x265b();}import a258_0x32985d from'node:fs';import a258_0x4a0de6 from'node:path';class Logger{['winstonLogger'];['logFilePath'];[a258_0x2ae1af(0xf1)]='';constructor(){this['logFilePath']='';}[a258_0x2ae1af(0x103)](_0xfe42f){this['currentRawCommand']=_0xfe42f;}['initWinstonLogger'](){const _0x18642d=a258_0x2ae1af,_0x1f0213=a258_0x4a0de6[_0x18642d(0x105)](this['logFilePath']);!a258_0x32985d[_0x18642d(0x110)](_0x1f0213)&&a258_0x32985d[_0x18642d(0x10c)](_0x1f0213,{'recursive':!![]});const _0x441839=a258_0x50c569[_0x18642d(0x113)][_0x18642d(0xec)](a258_0x50c569[_0x18642d(0x113)][_0x18642d(0xfe)](),a258_0x50c569[_0x18642d(0x113)][_0x18642d(0x121)]({'stack':!![]}),a258_0x50c569[_0x18642d(0x113)]['printf'](_0x3a4eb0=>{const _0x3965eb=_0x18642d,_0x2e112d={'timestamp':_0x3a4eb0[_0x3965eb(0xfe)]||new Date()['toISOString'](),'level':_0x3a4eb0['level']||_0x3965eb(0xf4),'command':_0x3a4eb0[_0x3965eb(0x11b)]||_0x3965eb(0xfa),'rawCommand':_0x3a4eb0[_0x3965eb(0x116)]||this[_0x3965eb(0xf1)]||undefined,'message':_0x3a4eb0[_0x3965eb(0xf2)]||'','duration':_0x3a4eb0['duration']||undefined,'details':_0x3a4eb0[_0x3965eb(0x111)]||undefined};return JSON[_0x3965eb(0x122)](_0x2e112d);}));this[_0x18642d(0x10b)]=a258_0x50c569[_0x18642d(0xfd)]({'level':'info','format':_0x441839,'transports':[new a258_0x50c569[(_0x18642d(0x108))][(_0x18642d(0x11f))]({'filename':this['logFilePath'],'level':_0x18642d(0xf4)})],'silent':![]}),a258_0x50c569['addColors']({'success':_0x18642d(0xf9),'error':'red','warn':_0x18642d(0x101),'info':_0x18642d(0x100)});}['setLogPath'](_0x4e8ddb){const _0x398433=a258_0x2ae1af;this['logFilePath']=a258_0x4a0de6['join'](_0x4e8ddb,_0x398433(0x118)),this[_0x398433(0x10b)]&&this[_0x398433(0x10b)][_0x398433(0xf0)](),this[_0x398433(0x11a)]();}['info'](_0x1b9dd8,_0x14a0e1,_0x2d2982){const _0x3ec6a0=a258_0x2ae1af;if(!this[_0x3ec6a0(0x115)]||!this[_0x3ec6a0(0x10b)])return;this[_0x3ec6a0(0x10b)][_0x3ec6a0(0xf4)](_0x14a0e1,{'command':_0x1b9dd8,'details':_0x2d2982});}[a258_0x2ae1af(0x107)](_0x301c1f,_0x239810,_0xe2623f,_0x5318ab){const _0x2bce61=a258_0x2ae1af;if(!this['logFilePath']||!this['winstonLogger'])return;this[_0x2bce61(0x10b)][_0x2bce61(0x106)](_0x2bce61(0xf4),_0x239810,{'level':_0x2bce61(0x107),'command':_0x301c1f,'duration':_0xe2623f,'details':_0x5318ab});}['error'](_0x30fe0a,_0x37d912,_0x5a338c){const _0x1b7b25=a258_0x2ae1af;if(!this[_0x1b7b25(0x115)]||!this[_0x1b7b25(0x10b)])return;this['winstonLogger'][_0x1b7b25(0x10e)](_0x37d912,{'command':_0x30fe0a,'details':_0x5a338c});}[a258_0x2ae1af(0x11c)](_0x240879,_0x32c921,_0x4ac562){const _0x23cba7=a258_0x2ae1af;if(!this[_0x23cba7(0x115)]||!this[_0x23cba7(0x10b)])return;this[_0x23cba7(0x10b)][_0x23cba7(0x11c)](_0x32c921,{'command':_0x240879,'details':_0x4ac562});}async[a258_0x2ae1af(0xf3)](_0x874de2,_0x1ab00f,_0x52d1aa){const _0x1c4c8c=a258_0x2ae1af,_0x132308=Date[_0x1c4c8c(0xfb)]();this['info'](_0x874de2,_0x1c4c8c(0x114)+_0x1ab00f);try{const _0x58ad75=await _0x52d1aa(),_0xd1acfe=Date[_0x1c4c8c(0xfb)]()-_0x132308;return this[_0x1c4c8c(0x107)](_0x874de2,_0x1c4c8c(0x11d)+_0x1ab00f,_0xd1acfe),_0x58ad75;}catch(_0x4bc939){const _0x42e04e=Date[_0x1c4c8c(0xfb)]()-_0x132308;this[_0x1c4c8c(0x10e)](_0x874de2,_0x1c4c8c(0xef)+_0x1ab00f,{'error':_0x4bc939 instanceof Error?_0x4bc939[_0x1c4c8c(0xf2)]:String(_0x4bc939),'duration':_0x42e04e});throw _0x4bc939;}}[a258_0x2ae1af(0x112)](){const _0x40ff2c=a258_0x2ae1af;try{if(!a258_0x32985d[_0x40ff2c(0x110)](this[_0x40ff2c(0x115)]))return[];const _0x35e595=a258_0x32985d[_0x40ff2c(0xee)](this['logFilePath'],_0x40ff2c(0xeb));return _0x35e595[_0x40ff2c(0x117)]('\x0a')['filter'](_0x44df10=>_0x44df10[_0x40ff2c(0x102)]())[_0x40ff2c(0xf7)](_0x2f2587=>JSON['parse'](_0x2f2587));}catch(_0x48fec){return console['warn'](_0x40ff2c(0xfc),_0x48fec),[];}}[a258_0x2ae1af(0x120)](){const _0x509c4d=a258_0x2ae1af;try{a258_0x32985d[_0x509c4d(0x110)](this[_0x509c4d(0x115)])&&a258_0x32985d[_0x509c4d(0xed)](this[_0x509c4d(0x115)],'',_0x509c4d(0xeb));}catch(_0x281bbb){console[_0x509c4d(0x11c)]('Failed\x20to\x20clear\x20logs:',_0x281bbb);}}[a258_0x2ae1af(0x119)](){const _0xfaa9e1=a258_0x2ae1af;return this[_0xfaa9e1(0x10b)];}}export const logger=new Logger();
@@ -1 +1 @@
1
- function a258_0x2029(_0x3a7299,_0x6d7234){_0x3a7299=_0x3a7299-0x130;const _0x4d6c16=a258_0x4d6c();let _0x2029c5=_0x4d6c16[_0x3a7299];return _0x2029c5;}function a258_0x4d6c(){const _0x5c285d=['417VQFCZP','24683823nxQCjS','1055722mjiDtL','Invalid\x20JSON\x20for\x20--params:\x20','validation','127390nwIPvt','parse','17212CftnOb','10yqmeyL','1539948EGVQkI','77BKVleW','--params\x20must\x20be\x20a\x20JSON\x20object','837608EbOmcP','isArray','3035900ZpOUBw','object'];a258_0x4d6c=function(){return _0x5c285d;};return a258_0x4d6c();}(function(_0x19ec22,_0x16e7bd){const _0x485c22=a258_0x2029,_0x1c74a4=_0x19ec22();while(!![]){try{const _0x499144=-parseInt(_0x485c22(0x13c))/0x1+-parseInt(_0x485c22(0x139))/0x2+parseInt(_0x485c22(0x137))/0x3*(parseInt(_0x485c22(0x13e))/0x4)+-parseInt(_0x485c22(0x135))/0x5+-parseInt(_0x485c22(0x130))/0x6+-parseInt(_0x485c22(0x131))/0x7*(parseInt(_0x485c22(0x133))/0x8)+parseInt(_0x485c22(0x138))/0x9*(parseInt(_0x485c22(0x13f))/0xa);if(_0x499144===_0x16e7bd)break;else _0x1c74a4['push'](_0x1c74a4['shift']());}catch(_0x3dd34b){_0x1c74a4['push'](_0x1c74a4['shift']());}}}(a258_0x4d6c,0xa390c));import{CliErrors}from'../errors.js';export function parseJsonParams(_0x375b14){const _0x544d86=a258_0x2029;if(!_0x375b14)return undefined;let _0x515f46;try{_0x515f46=JSON[_0x544d86(0x13d)](_0x375b14);}catch{throw CliErrors[_0x544d86(0x13b)](_0x544d86(0x13a)+_0x375b14);}if(!_0x515f46||typeof _0x515f46!==_0x544d86(0x136)||Array[_0x544d86(0x134)](_0x515f46))throw CliErrors[_0x544d86(0x13b)](_0x544d86(0x132),'Example:\x20--params\x20\x27{\x22id\x22:123}\x27');return _0x515f46;}
1
+ (function(_0x16824f,_0x118cd3){const _0x4fd874=a259_0x38b7,_0x12fb89=_0x16824f();while(!![]){try{const _0x345e0b=-parseInt(_0x4fd874(0x10c))/0x1*(-parseInt(_0x4fd874(0x104))/0x2)+-parseInt(_0x4fd874(0x112))/0x3+-parseInt(_0x4fd874(0x10b))/0x4+parseInt(_0x4fd874(0x10f))/0x5*(parseInt(_0x4fd874(0x10a))/0x6)+parseInt(_0x4fd874(0x105))/0x7+parseInt(_0x4fd874(0x10d))/0x8+-parseInt(_0x4fd874(0x106))/0x9*(parseInt(_0x4fd874(0x108))/0xa);if(_0x345e0b===_0x118cd3)break;else _0x12fb89['push'](_0x12fb89['shift']());}catch(_0x1fc497){_0x12fb89['push'](_0x12fb89['shift']());}}}(a259_0x2663,0xe59c2));function a259_0x2663(){const _0xbc09f8=['--params\x20must\x20be\x20a\x20JSON\x20object','50UTbfjJ','validation','12VWYomC','275436zjUIuz','65267avOcmj','9327120mXsOaZ','Invalid\x20JSON\x20for\x20--params:\x20','3452765wgZIgb','parse','isArray','4712361jBKMNS','object','6IGYUKm','252322LhHVjw','357687JxGiGn'];a259_0x2663=function(){return _0xbc09f8;};return a259_0x2663();}function a259_0x38b7(_0x51cd58,_0x5dbab3){_0x51cd58=_0x51cd58-0x104;const _0x266393=a259_0x2663();let _0x38b703=_0x266393[_0x51cd58];return _0x38b703;}import{CliErrors}from'../errors.js';export function parseJsonParams(_0x22713d){const _0xac0c24=a259_0x38b7;if(!_0x22713d)return undefined;let _0x29b5d4;try{_0x29b5d4=JSON[_0xac0c24(0x110)](_0x22713d);}catch{throw CliErrors['validation'](_0xac0c24(0x10e)+_0x22713d);}if(!_0x29b5d4||typeof _0x29b5d4!==_0xac0c24(0x113)||Array[_0xac0c24(0x111)](_0x29b5d4))throw CliErrors[_0xac0c24(0x109)](_0xac0c24(0x107),'Example:\x20--params\x20\x27{\x22id\x22:123}\x27');return _0x29b5d4;}
@@ -1 +1 @@
1
- function a259_0x2888(){const _0x1b19aa=['361870VkkzDu','23472nWIImL','115gRUTnn','win32','135kTCRSj','279164oXtSZs','23331060Xmpimo','582152GxSfmM','platform','551780HPHuqq','3ArjLBj','2DLwcKs','319ReitIh','6325158VbNYQY'];a259_0x2888=function(){return _0x1b19aa;};return a259_0x2888();}const a259_0x1e1b02=a259_0x422b;(function(_0x1fb025,_0x46f7ee){const _0x35e8d7=a259_0x422b,_0x1c1286=_0x1fb025();while(!![]){try{const _0x420551=-parseInt(_0x35e8d7(0x1e5))/0x1*(parseInt(_0x35e8d7(0x1e3))/0x2)+parseInt(_0x35e8d7(0x1e4))/0x3*(parseInt(_0x35e8d7(0x1df))/0x4)+parseInt(_0x35e8d7(0x1dc))/0x5*(parseInt(_0x35e8d7(0x1e9))/0x6)+-parseInt(_0x35e8d7(0x1e7))/0x7+-parseInt(_0x35e8d7(0x1e1))/0x8*(-parseInt(_0x35e8d7(0x1de))/0x9)+-parseInt(_0x35e8d7(0x1e8))/0xa*(parseInt(_0x35e8d7(0x1e6))/0xb)+parseInt(_0x35e8d7(0x1e0))/0xc;if(_0x420551===_0x46f7ee)break;else _0x1c1286['push'](_0x1c1286['shift']());}catch(_0x437c84){_0x1c1286['push'](_0x1c1286['shift']());}}}(a259_0x2888,0xa8a48));export const isWindows=process[a259_0x1e1b02(0x1e2)]===a259_0x1e1b02(0x1dd);function a259_0x422b(_0x247a38,_0x3fdf39){_0x247a38=_0x247a38-0x1dc;const _0x288893=a259_0x2888();let _0x422b94=_0x288893[_0x247a38];return _0x422b94;}export function resolveNpmBin(_0x1b8404){return isWindows?_0x1b8404+'.cmd':_0x1b8404;}
1
+ const a260_0x489905=a260_0x3e79;(function(_0x188460,_0xbb1ec8){const _0x2c2275=a260_0x3e79,_0x41bc71=_0x188460();while(!![]){try{const _0x440db5=-parseInt(_0x2c2275(0x7c))/0x1+-parseInt(_0x2c2275(0x7d))/0x2+parseInt(_0x2c2275(0x81))/0x3*(parseInt(_0x2c2275(0x79))/0x4)+parseInt(_0x2c2275(0x7e))/0x5+parseInt(_0x2c2275(0x80))/0x6*(parseInt(_0x2c2275(0x76))/0x7)+parseInt(_0x2c2275(0x78))/0x8*(parseInt(_0x2c2275(0x7a))/0x9)+parseInt(_0x2c2275(0x7f))/0xa*(-parseInt(_0x2c2275(0x7b))/0xb);if(_0x440db5===_0xbb1ec8)break;else _0x41bc71['push'](_0x41bc71['shift']());}catch(_0x3a0a8e){_0x41bc71['push'](_0x41bc71['shift']());}}}(a260_0x5009,0x2a185));export const isWindows=process[a260_0x489905(0x77)]===a260_0x489905(0x82);export function resolveNpmBin(_0x97a880){return isWindows?_0x97a880+'.cmd':_0x97a880;}function a260_0x3e79(_0x4c7cee,_0x37ea22){_0x4c7cee=_0x4c7cee-0x76;const _0x50090c=a260_0x5009();let _0x3e791a=_0x50090c[_0x4c7cee];return _0x3e791a;}function a260_0x5009(){const _0x38ed10=['681530hOqpWv','12vBZRob','78pncpqd','win32','296919lNRUXK','platform','762056ANIvQW','40556lJXWVp','9YyXKaC','11ttsWKK','260478cowKeC','525988pfRywp','1601705OVTpOt'];a260_0x5009=function(){return _0x38ed10;};return a260_0x5009();}
@@ -1 +1 @@
1
- const a260_0x1e1fec=a260_0x4db2;(function(_0xb72cd3,_0x50d5cb){const _0x5d736b=a260_0x4db2,_0x1ddfb0=_0xb72cd3();while(!![]){try{const _0x41079c=-parseInt(_0x5d736b(0xdc))/0x1+-parseInt(_0x5d736b(0xe4))/0x2+parseInt(_0x5d736b(0xdf))/0x3*(-parseInt(_0x5d736b(0xdb))/0x4)+-parseInt(_0x5d736b(0xda))/0x5*(parseInt(_0x5d736b(0xd3))/0x6)+-parseInt(_0x5d736b(0xd2))/0x7+parseInt(_0x5d736b(0xe6))/0x8+parseInt(_0x5d736b(0xd6))/0x9*(parseInt(_0x5d736b(0xd4))/0xa);if(_0x41079c===_0x50d5cb)break;else _0x1ddfb0['push'](_0x1ddfb0['shift']());}catch(_0x1ae88e){_0x1ddfb0['push'](_0x1ddfb0['shift']());}}}(a260_0x332f,0x1d86a));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 _0x5a5045=a260_0x4db2,_0x34f2bf=getTemplateBaseUrl();return _0x34f2bf+_0x5a5045(0xde);}const LOCAL_TEMPLATE_PATH=resolve(__dirname,a260_0x1e1fec(0xe1));export async function fetchRulesFromCDN(){const _0x45d011=a260_0x1e1fec,_0x5ef5e0=getRulesCdnUrl(),_0x2aeda3=await fetch(_0x5ef5e0,{'headers':{'Accept':_0x45d011(0xe7)}});if(!_0x2aeda3['ok'])throw new Error('CDN\x20请求失败:\x20'+_0x2aeda3[_0x45d011(0xe0)]+'\x20'+_0x2aeda3[_0x45d011(0xd5)]);const _0x1e2142=await _0x2aeda3[_0x45d011(0xdd)]();if(!_0x1e2142[_0x45d011(0xe5)]||typeof _0x1e2142[_0x45d011(0xe5)]!==_0x45d011(0xd8))throw new Error('CDN\x20返回数据格式错误');return _0x1e2142;}export async function getRulesContent(){const _0x87257=a260_0x1e1fec;try{const _0x235622=await fetchRulesFromCDN();return _0x235622[_0x87257(0xe5)];}catch{return readLocalTemplate();}}function a260_0x332f(){const _0x3fc532=['348vNapDg','109925ZPrhoW','json','/rules/rules.json','1347pmdLbd','status','../../templates/rules/lovrabet_rules.mdc.tpl','utf-8','lastUpdated','77102eENCgc','content','137096uyjjCz','application/json','710486LVgMCk','15030ZLsqWw','1534910FaOBEV','statusText','27rMkkFr','本地模板文件不存在:\x20','string','agents.md','135FoKpBE'];a260_0x332f=function(){return _0x3fc532;};return a260_0x332f();}export function readLocalTemplate(){const _0x567eb7=a260_0x1e1fec;if(existsSync(LOCAL_TEMPLATE_PATH))return readFileSync(LOCAL_TEMPLATE_PATH,_0x567eb7(0xe2));throw new Error(_0x567eb7(0xd7)+LOCAL_TEMPLATE_PATH);}export async function writeRulesFile(_0x3d1091){const _0xe58208=a260_0x1e1fec,_0x168f76=await fetchRulesFromCDN()['catch'](()=>null);let _0x26ae48;_0x168f76?(_0x26ae48=_0x168f76['content'],_0x168f76[_0xe58208(0xe3)]&&(_0x26ae48=appendUpdateTime(_0x26ae48,_0x168f76[_0xe58208(0xe3)]))):_0x26ae48=readLocalTemplate();const _0x3cc58=dirname(_0x3d1091);!existsSync(_0x3cc58)&&mkdirSync(_0x3cc58,{'recursive':!![]}),writeFileSync(_0x3d1091,_0x26ae48,_0xe58208(0xe2));}export async function copyRulesToCursor(_0x481133){const _0x52c6b6=join(_0x481133,'.cursor/rules'),_0x51f01e=join(_0x52c6b6,'lovrabet_rules.mdc');if(existsSync(_0x51f01e))return![];return await writeRulesFile(_0x51f01e),!![];}function a260_0x4db2(_0x15ce12,_0xb47663){_0x15ce12=_0x15ce12-0xd2;const _0x332f3a=a260_0x332f();let _0x4db268=_0x332f3a[_0x15ce12];return _0x4db268;}export async function copyRulesToAgentsMd(_0x2abbb8){const _0xf1ecec=a260_0x1e1fec,_0x4a4419=join(_0x2abbb8,_0xf1ecec(0xd9));if(existsSync(_0x4a4419))return![];return await writeRulesFile(_0x4a4419),!![];}
1
+ (function(_0x1ef611,_0x3dda71){const _0x54b05e=a261_0x327a,_0x3c4ec4=_0x1ef611();while(!![]){try{const _0x518bfd=-parseInt(_0x54b05e(0x139))/0x1*(parseInt(_0x54b05e(0x132))/0x2)+-parseInt(_0x54b05e(0x141))/0x3*(-parseInt(_0x54b05e(0x13e))/0x4)+parseInt(_0x54b05e(0x138))/0x5+parseInt(_0x54b05e(0x140))/0x6+-parseInt(_0x54b05e(0x137))/0x7+-parseInt(_0x54b05e(0x13b))/0x8+parseInt(_0x54b05e(0x134))/0x9;if(_0x518bfd===_0x3dda71)break;else _0x3c4ec4['push'](_0x3c4ec4['shift']());}catch(_0x435e17){_0x3c4ec4['push'](_0x3c4ec4['shift']());}}}(a261_0x4bdc,0x31d59));import{existsSync,mkdirSync,readFileSync,writeFileSync}from'node:fs';import{dirname,join,resolve}from'node:path';import{fileURLToPath}from'node:url';import{getTemplateBaseUrl}from'../utils/config.js';function a261_0x4bdc(){const _0x331d27=['application/json','4776390lRLnXV','agents.md','utf-8','2217033MsEglf','586450Fzwwxf','240454JZASgH','catch','2801784oTuQhL','lastUpdated','/rules/rules.json','4yDgSuv','本地模板文件不存在:\x20','811188CaRLlf','984957lqokgn','statusText','CDN\x20返回数据格式错误','.cursor/rules','lovrabet_rules.mdc','content','2LfSPmT'];a261_0x4bdc=function(){return _0x331d27;};return a261_0x4bdc();}import{appendUpdateTime}from'../utils/guides-cdn.js';function a261_0x327a(_0xac502f,_0x6eb40f){_0xac502f=_0xac502f-0x130;const _0x4bdc2f=a261_0x4bdc();let _0x327a91=_0x4bdc2f[_0xac502f];return _0x327a91;}const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);function getRulesCdnUrl(){const _0x1f2dfd=a261_0x327a,_0x4b65ba=getTemplateBaseUrl();return _0x4b65ba+_0x1f2dfd(0x13d);}const LOCAL_TEMPLATE_PATH=resolve(__dirname,'../../templates/rules/lovrabet_rules.mdc.tpl');export async function fetchRulesFromCDN(){const _0x53cd97=a261_0x327a,_0x4a219b=getRulesCdnUrl(),_0x1947db=await fetch(_0x4a219b,{'headers':{'Accept':_0x53cd97(0x133)}});if(!_0x1947db['ok'])throw new Error('CDN\x20请求失败:\x20'+_0x1947db['status']+'\x20'+_0x1947db[_0x53cd97(0x142)]);const _0x1eec27=await _0x1947db['json']();if(!_0x1eec27['content']||typeof _0x1eec27[_0x53cd97(0x131)]!=='string')throw new Error(_0x53cd97(0x143));return _0x1eec27;}export async function getRulesContent(){const _0x491446=a261_0x327a;try{const _0x155ab1=await fetchRulesFromCDN();return _0x155ab1[_0x491446(0x131)];}catch{return readLocalTemplate();}}export function readLocalTemplate(){const _0x235f58=a261_0x327a;if(existsSync(LOCAL_TEMPLATE_PATH))return readFileSync(LOCAL_TEMPLATE_PATH,_0x235f58(0x136));throw new Error(_0x235f58(0x13f)+LOCAL_TEMPLATE_PATH);}export async function writeRulesFile(_0x38eb6f){const _0x2e3530=a261_0x327a,_0x42a8f3=await fetchRulesFromCDN()[_0x2e3530(0x13a)](()=>null);let _0x1e48e5;_0x42a8f3?(_0x1e48e5=_0x42a8f3[_0x2e3530(0x131)],_0x42a8f3['lastUpdated']&&(_0x1e48e5=appendUpdateTime(_0x1e48e5,_0x42a8f3[_0x2e3530(0x13c)]))):_0x1e48e5=readLocalTemplate();const _0x3a1b97=dirname(_0x38eb6f);!existsSync(_0x3a1b97)&&mkdirSync(_0x3a1b97,{'recursive':!![]}),writeFileSync(_0x38eb6f,_0x1e48e5,_0x2e3530(0x136));}export async function copyRulesToCursor(_0x349ade){const _0x4e914c=a261_0x327a,_0x1981eb=join(_0x349ade,_0x4e914c(0x144)),_0x33462b=join(_0x1981eb,_0x4e914c(0x130));if(existsSync(_0x33462b))return![];return await writeRulesFile(_0x33462b),!![];}export async function copyRulesToAgentsMd(_0x109b00){const _0x36aa89=a261_0x327a,_0x380f97=join(_0x109b00,_0x36aa89(0x135));if(existsSync(_0x380f97))return![];return await writeRulesFile(_0x380f97),!![];}
@@ -1 +1 @@
1
- export function sleep(_0x4801b1){return new Promise(_0x425cd6=>setTimeout(_0x425cd6,_0x4801b1));}
1
+ export function sleep(_0x22729){return new Promise(_0x535e46=>setTimeout(_0x535e46,_0x22729));}
@@ -1 +1 @@
1
- const a262_0x3fe636=a262_0x1ae6;function a262_0x1e00(){const _0x32efd9=['\x0a\x20\x20\x20\x20{\x20','getFullYear','isDirectory','template','getMinutes','name:\x20\x22','24kRInab','36967AeQGZB','getMonth','error','toLowerCase','3KPGPvB','.scss','174SLxbpx','alias','processFile','charAt','utf8','processTemplate','padStart','mkdir','map','now','641730huDAEB','2053386FNVwRO','replace','message','endsWith','getSeconds','replaceContent','copyFile','YourModel','pop','datasetCode','.json','join','\x20},','push','success','开始处理模板内容替换','alias:\x20\x22','191490ftjCWM','模板内容替换失败','84nDcVPN','readdir','.tsx','formatLocalTimestamp','tableName:\x20\x22','.ts','pad','readFile','模板内容替换完成','getHours','24015dpyOcn','split','toComponentName','.css','datasetCode:\x20\x22','toDisplayTitle','default','1842000AbjPZD','.js','.tpl','77ImkjqE','name','processDirectory','slice','writeFile','extname','LOVRABET','info','promises','1177090NcHWJp'];a262_0x1e00=function(){return _0x32efd9;};return a262_0x1e00();}(function(_0x2fb21e,_0xc4f2b9){const _0x272fd7=a262_0x1ae6,_0x5700eb=_0x2fb21e();while(!![]){try{const _0xd04976=-parseInt(_0x272fd7(0x128))/0x1+parseInt(_0x272fd7(0x110))/0x2*(parseInt(_0x272fd7(0x11c))/0x3)+parseInt(_0x272fd7(0x13c))/0x4*(-parseInt(_0x272fd7(0x146))/0x5)+parseInt(_0x272fd7(0x11e))/0x6*(parseInt(_0x272fd7(0x118))/0x7)+parseInt(_0x272fd7(0x117))/0x8*(parseInt(_0x272fd7(0x129))/0x9)+-parseInt(_0x272fd7(0x13a))/0xa*(parseInt(_0x272fd7(0x150))/0xb)+-parseInt(_0x272fd7(0x14d))/0xc;if(_0xd04976===_0xc4f2b9)break;else _0x5700eb['push'](_0x5700eb['shift']());}catch(_0x3e91ce){_0x5700eb['push'](_0x5700eb['shift']());}}}(a262_0x1e00,0x60af4));import a262_0x247e6e from'node:fs';import a262_0x68c567 from'node:path';function a262_0x1ae6(_0x5ca02f,_0x292437){_0x5ca02f=_0x5ca02f-0x10d;const _0x1e0011=a262_0x1e00();let _0x1ae666=_0x1e0011[_0x5ca02f];return _0x1ae666;}import{logger}from'../utils/logger.js';import{getCliVersion}from'../utils/version.js';const CLI_VERSION=getCliVersion();export class TemplateReplacer{static[a262_0x3fe636(0x142)](_0x28264d){const _0x16e251=a262_0x3fe636;return String(_0x28264d)[_0x16e251(0x124)](0x2,'0');}static[a262_0x3fe636(0x13f)](_0x396306){const _0x2a3f88=a262_0x3fe636,_0x113a47=_0x396306[_0x2a3f88(0x112)](),_0xa7ebe0=this[_0x2a3f88(0x142)](_0x396306[_0x2a3f88(0x119)]()+0x1),_0x1f01fa=this[_0x2a3f88(0x142)](_0x396306['getDate']()),_0x5d611c=this['pad'](_0x396306[_0x2a3f88(0x145)]()),_0x1c2aa0=this[_0x2a3f88(0x142)](_0x396306[_0x2a3f88(0x115)]()),_0x1429f1=this[_0x2a3f88(0x142)](_0x396306[_0x2a3f88(0x12d)]());return{'createdAt':_0x113a47+'-'+_0xa7ebe0+'-'+_0x1f01fa+'\x20'+_0x5d611c+':'+_0x1c2aa0+':'+_0x1429f1,'createdDate':_0x113a47+'-'+_0xa7ebe0+'-'+_0x1f01fa,'createdTime':_0x5d611c+':'+_0x1c2aa0+':'+_0x1429f1};}static[a262_0x3fe636(0x148)](_0x36319f){const _0xa0f082=a262_0x3fe636,_0x55385b=_0x36319f[_0xa0f082(0x147)]('/')[_0xa0f082(0x131)]()||_0x36319f;return _0x55385b[_0xa0f082(0x147)]('-')['map'](_0x2632e0=>_0x2632e0[_0xa0f082(0x121)](0x0)['toUpperCase']()+_0x2632e0['slice'](0x1)[_0xa0f082(0x11b)]())[_0xa0f082(0x134)]('');}static[a262_0x3fe636(0x14b)](_0xfc3dac){const _0x2d9b6a=a262_0x3fe636,_0x747718=_0xfc3dac[_0x2d9b6a(0x147)]('/')[_0x2d9b6a(0x131)]()||_0xfc3dac;return _0x747718['split']('-')[_0x2d9b6a(0x126)](_0x15e831=>_0x15e831[_0x2d9b6a(0x121)](0x0)['toUpperCase']()+_0x15e831[_0x2d9b6a(0x153)](0x1)[_0x2d9b6a(0x11b)]())['join']('\x20');}static[a262_0x3fe636(0x12e)](_0x1ca49b,_0x3a7055,_0x36a65d){const _0x35cd9a=a262_0x3fe636,_0x4e79ca=this[_0x35cd9a(0x148)](_0x3a7055),_0x37a342=this[_0x35cd9a(0x14b)](_0x3a7055),{createdAt:_0x360c07,createdDate:_0x8d913,createdTime:_0x182e17}=this['formatLocalTimestamp'](new Date());let _0x1b199d=_0x1ca49b['replace'](/\{CliVersion\}/g,CLI_VERSION)[_0x35cd9a(0x12a)](/\{ComponentName\}/g,_0x4e79ca)[_0x35cd9a(0x12a)](/\{DisplayTitle\}/g,_0x37a342)[_0x35cd9a(0x12a)](/\{PageName\}/g,_0x3a7055)[_0x35cd9a(0x12a)](/\{TemplateName\}/g,_0x36a65d)[_0x35cd9a(0x12a)](/\{CreatedAt\}/g,_0x360c07)[_0x35cd9a(0x12a)](/\{CreatedDate\}/g,_0x8d913)['replace'](/\{CreatedTime\}/g,_0x182e17);return _0x1b199d;}static['replaceApiContent'](_0x5f1911,_0x5f5c17,_0x533e79,_0x3156fe,_0x53a67b,_0x516c57,_0x539079,_0x11824a){const _0x308947=a262_0x3fe636,_0x1957e5=new Date(),_0x241fa0=_0x1957e5['toISOString'](),_0x4a2d26=_0x533e79['map'](_0x27addd=>{const _0x375e13=a262_0x1ae6,_0x106db0=[_0x375e13(0x14a)+_0x27addd[_0x375e13(0x132)]+'\x22',_0x375e13(0x140)+_0x27addd['tableName']+'\x22',_0x375e13(0x116)+_0x27addd[_0x375e13(0x151)]+'\x22'];return _0x27addd[_0x375e13(0x11f)]&&_0x106db0[_0x375e13(0x136)](_0x375e13(0x139)+_0x27addd['alias']+'\x22'),_0x375e13(0x111)+_0x106db0[_0x375e13(0x134)](',\x20')+_0x375e13(0x135);})['join'](''),_0x2933db=_0x3156fe||_0x533e79[0x0]?.['alias']||_0x308947(0x130);let _0x13b7d0=_0x5f1911[_0x308947(0x12a)](/\{AppCode\}/g,_0x5f5c17)[_0x308947(0x12a)](/\{ModelConfigs\}/g,_0x4a2d26)[_0x308947(0x12a)](/\{ExampleModelName\}/g,_0x2933db)['replace'](/\{ApiFileName\}/g,_0x53a67b||'api')['replace'](/\{ConfigName\}/g,_0x516c57||_0x308947(0x14c))[_0x308947(0x12a)](/\{ClientConfigParam\}/g,_0x539079||'')[_0x308947(0x12a)](/\{VarPrefix\}/g,_0x11824a||_0x308947(0x10d))[_0x308947(0x12a)](/\{CreatedAt\}/g,_0x241fa0);return _0x13b7d0;}static async[a262_0x3fe636(0x123)](_0x2c9092,_0x3a0273,_0x920ad5,_0xf9e911,_0x36eb65=!![]){const _0x7707ad=a262_0x3fe636,_0x2d3f9f=Date[_0x7707ad(0x127)]();try{_0x36eb65&&logger[_0x7707ad(0x10e)]('template',_0x7707ad(0x138),{'templatePath':_0x2c9092,'targetPath':_0x3a0273,'pageName':_0x920ad5,'templateName':_0xf9e911});await a262_0x247e6e[_0x7707ad(0x10f)][_0x7707ad(0x125)](_0x3a0273,{'recursive':!![]}),await this['processDirectory'](_0x2c9092,_0x3a0273,_0x920ad5,_0xf9e911);if(_0x36eb65){const _0x43b041=Date['now']()-_0x2d3f9f;logger[_0x7707ad(0x137)](_0x7707ad(0x114),_0x7707ad(0x144),_0x43b041,{'pageName':_0x920ad5,'templateName':_0xf9e911});}}catch(_0x5f0c79){if(_0x36eb65){const _0x219e44=Date[_0x7707ad(0x127)]()-_0x2d3f9f;logger[_0x7707ad(0x11a)](_0x7707ad(0x114),_0x7707ad(0x13b),{'templatePath':_0x2c9092,'targetPath':_0x3a0273,'pageName':_0x920ad5,'templateName':_0xf9e911,'error':_0x5f0c79 instanceof Error?_0x5f0c79[_0x7707ad(0x12b)]:String(_0x5f0c79),'duration':_0x219e44});}throw _0x5f0c79;}}static async[a262_0x3fe636(0x152)](_0x4cc47c,_0x5c268e,_0x682d32,_0x1eaa22){const _0x1a28cf=a262_0x3fe636,_0x5fb532=await a262_0x247e6e['promises'][_0x1a28cf(0x13d)](_0x4cc47c,{'withFileTypes':!![]});for(const _0x593403 of _0x5fb532){const _0x4ffd34=a262_0x68c567[_0x1a28cf(0x134)](_0x4cc47c,_0x593403[_0x1a28cf(0x151)]);let _0x312f77=a262_0x68c567[_0x1a28cf(0x134)](_0x5c268e,_0x593403[_0x1a28cf(0x151)]);_0x593403[_0x1a28cf(0x151)][_0x1a28cf(0x12c)](_0x1a28cf(0x14f))&&(_0x312f77=a262_0x68c567[_0x1a28cf(0x134)](_0x5c268e,_0x593403[_0x1a28cf(0x151)][_0x1a28cf(0x12a)](/\.tpl$/,'')));if(_0x593403[_0x1a28cf(0x113)]())await a262_0x247e6e['promises'][_0x1a28cf(0x125)](_0x312f77,{'recursive':!![]}),await this['processDirectory'](_0x4ffd34,_0x312f77,_0x682d32,_0x1eaa22);else _0x593403['isFile']()&&await this[_0x1a28cf(0x120)](_0x4ffd34,_0x312f77,_0x682d32,_0x1eaa22);}}static async[a262_0x3fe636(0x120)](_0x2aae2e,_0x346934,_0x56ac51,_0x461b90){const _0x3db6d0=a262_0x3fe636,_0x3d4163=a262_0x68c567[_0x3db6d0(0x155)](_0x2aae2e)[_0x3db6d0(0x11b)]();_0x2aae2e[_0x3db6d0(0x12c)](_0x3db6d0(0x14f))&&(_0x346934=_0x346934[_0x3db6d0(0x12a)](/\.tpl$/,''));const _0x205bac=[_0x3db6d0(0x13e),_0x3db6d0(0x141),'.jsx',_0x3db6d0(0x14e),_0x3db6d0(0x133),'.md',_0x3db6d0(0x149),_0x3db6d0(0x11d),_0x3db6d0(0x14f)];if(_0x205bac['includes'](_0x3d4163)||_0x2aae2e[_0x3db6d0(0x12c)](_0x3db6d0(0x14f))){const _0x32c906=await a262_0x247e6e[_0x3db6d0(0x10f)][_0x3db6d0(0x143)](_0x2aae2e,_0x3db6d0(0x122)),_0x33c2dc=this[_0x3db6d0(0x12e)](_0x32c906,_0x56ac51,_0x461b90);await a262_0x247e6e[_0x3db6d0(0x10f)][_0x3db6d0(0x154)](_0x346934,_0x33c2dc,_0x3db6d0(0x122));}else await a262_0x247e6e[_0x3db6d0(0x10f)][_0x3db6d0(0x12f)](_0x2aae2e,_0x346934);}}
1
+ function a263_0x306c(_0x582a0c,_0x55b268){_0x582a0c=_0x582a0c-0x14c;const _0x37c6bd=a263_0x37c6();let _0x306cf9=_0x37c6bd[_0x582a0c];return _0x306cf9;}const a263_0x335017=a263_0x306c;(function(_0xa84909,_0x1d6009){const _0x1e2a07=a263_0x306c,_0x2465cb=_0xa84909();while(!![]){try{const _0x410009=parseInt(_0x1e2a07(0x174))/0x1+parseInt(_0x1e2a07(0x16c))/0x2+parseInt(_0x1e2a07(0x189))/0x3+-parseInt(_0x1e2a07(0x180))/0x4+-parseInt(_0x1e2a07(0x150))/0x5*(-parseInt(_0x1e2a07(0x17f))/0x6)+parseInt(_0x1e2a07(0x17d))/0x7+-parseInt(_0x1e2a07(0x15b))/0x8;if(_0x410009===_0x1d6009)break;else _0x2465cb['push'](_0x2465cb['shift']());}catch(_0x4b39f6){_0x2465cb['push'](_0x2465cb['shift']());}}}(a263_0x37c6,0x3a73c));import a263_0x55f3af from'node:fs';import a263_0x1df67a from'node:path';import{logger}from'../utils/logger.js';function a263_0x37c6(){const _0x4c67db=['模板内容替换失败','processFile','toComponentName','map','info','932048lOdpEc','name','readdir','promises','mkdir','开始处理模板内容替换','utf8','push','61409EeBuQS','datasetCode','extname','template','pop','charAt','pad','includes','default','1629341BteCkX','toDisplayTitle','30FaoCNd','327508WMDpFA','split','slice','getHours','getDate','toLowerCase','copyFile','processTemplate','tableName','270915sHNqGl','.jsx','api','\x0a\x20\x20\x20\x20{\x20','getMonth','formatLocalTimestamp','119010CYaNwF','padStart','\x20},','alias','getSeconds','replace','toISOString','.js','endsWith','success','tableName:\x20\x22','5185712bWIpmx','message','now','getFullYear','.tpl','join','readFile','name:\x20\x22','.tsx','replaceContent','.md','processDirectory'];a263_0x37c6=function(){return _0x4c67db;};return a263_0x37c6();}import{getCliVersion}from'../utils/version.js';const CLI_VERSION=getCliVersion();export class TemplateReplacer{static[a263_0x335017(0x17a)](_0x44902e){const _0x3cf499=a263_0x335017;return String(_0x44902e)[_0x3cf499(0x151)](0x2,'0');}static[a263_0x335017(0x14f)](_0x11a8bb){const _0x392391=a263_0x335017,_0x324b8c=_0x11a8bb[_0x392391(0x15e)](),_0x49be9c=this[_0x392391(0x17a)](_0x11a8bb[_0x392391(0x14e)]()+0x1),_0x81baf4=this[_0x392391(0x17a)](_0x11a8bb[_0x392391(0x184)]()),_0x2c9557=this[_0x392391(0x17a)](_0x11a8bb[_0x392391(0x183)]()),_0x1ef8bc=this['pad'](_0x11a8bb['getMinutes']()),_0x1b93a3=this[_0x392391(0x17a)](_0x11a8bb[_0x392391(0x154)]());return{'createdAt':_0x324b8c+'-'+_0x49be9c+'-'+_0x81baf4+'\x20'+_0x2c9557+':'+_0x1ef8bc+':'+_0x1b93a3,'createdDate':_0x324b8c+'-'+_0x49be9c+'-'+_0x81baf4,'createdTime':_0x2c9557+':'+_0x1ef8bc+':'+_0x1b93a3};}static[a263_0x335017(0x169)](_0x8928d7){const _0x9e4dca=a263_0x335017,_0x2d2f7c=_0x8928d7['split']('/')[_0x9e4dca(0x178)]()||_0x8928d7;return _0x2d2f7c[_0x9e4dca(0x181)]('-')[_0x9e4dca(0x16a)](_0x55e221=>_0x55e221['charAt'](0x0)['toUpperCase']()+_0x55e221[_0x9e4dca(0x182)](0x1)['toLowerCase']())[_0x9e4dca(0x160)]('');}static['toDisplayTitle'](_0x3ceb93){const _0x56dc23=a263_0x335017,_0xfe8a1=_0x3ceb93[_0x56dc23(0x181)]('/')['pop']()||_0x3ceb93;return _0xfe8a1['split']('-')[_0x56dc23(0x16a)](_0x3d8e9f=>_0x3d8e9f[_0x56dc23(0x179)](0x0)['toUpperCase']()+_0x3d8e9f[_0x56dc23(0x182)](0x1)[_0x56dc23(0x185)]())[_0x56dc23(0x160)]('\x20');}static['replaceContent'](_0x17ecb8,_0x34eee8,_0x31a218){const _0x595e76=a263_0x335017,_0x8cdc5e=this[_0x595e76(0x169)](_0x34eee8),_0x4dedc2=this[_0x595e76(0x17e)](_0x34eee8),{createdAt:_0x2800db,createdDate:_0xef7a83,createdTime:_0x538d9b}=this[_0x595e76(0x14f)](new Date());let _0x269d56=_0x17ecb8['replace'](/\{CliVersion\}/g,CLI_VERSION)['replace'](/\{ComponentName\}/g,_0x8cdc5e)[_0x595e76(0x155)](/\{DisplayTitle\}/g,_0x4dedc2)[_0x595e76(0x155)](/\{PageName\}/g,_0x34eee8)['replace'](/\{TemplateName\}/g,_0x31a218)[_0x595e76(0x155)](/\{CreatedAt\}/g,_0x2800db)[_0x595e76(0x155)](/\{CreatedDate\}/g,_0xef7a83)[_0x595e76(0x155)](/\{CreatedTime\}/g,_0x538d9b);return _0x269d56;}static['replaceApiContent'](_0x484d82,_0x42eddd,_0x4c3792,_0x3222d8,_0x1951dc,_0x122a19,_0x3bd56d,_0x40434c){const _0x52a9fc=a263_0x335017,_0x5015b1=new Date(),_0x137393=_0x5015b1[_0x52a9fc(0x156)](),_0x21b0d4=_0x4c3792[_0x52a9fc(0x16a)](_0x3060e4=>{const _0x43a27d=_0x52a9fc,_0x417db1=['datasetCode:\x20\x22'+_0x3060e4[_0x43a27d(0x175)]+'\x22',_0x43a27d(0x15a)+_0x3060e4[_0x43a27d(0x188)]+'\x22',_0x43a27d(0x162)+_0x3060e4['name']+'\x22'];return _0x3060e4[_0x43a27d(0x153)]&&_0x417db1[_0x43a27d(0x173)]('alias:\x20\x22'+_0x3060e4[_0x43a27d(0x153)]+'\x22'),_0x43a27d(0x14d)+_0x417db1[_0x43a27d(0x160)](',\x20')+_0x43a27d(0x152);})['join'](''),_0x18c4d8=_0x3222d8||_0x4c3792[0x0]?.[_0x52a9fc(0x153)]||'YourModel';let _0x1502ca=_0x484d82['replace'](/\{AppCode\}/g,_0x42eddd)[_0x52a9fc(0x155)](/\{ModelConfigs\}/g,_0x21b0d4)[_0x52a9fc(0x155)](/\{ExampleModelName\}/g,_0x18c4d8)[_0x52a9fc(0x155)](/\{ApiFileName\}/g,_0x1951dc||_0x52a9fc(0x14c))[_0x52a9fc(0x155)](/\{ConfigName\}/g,_0x122a19||_0x52a9fc(0x17c))[_0x52a9fc(0x155)](/\{ClientConfigParam\}/g,_0x3bd56d||'')['replace'](/\{VarPrefix\}/g,_0x40434c||'LOVRABET')[_0x52a9fc(0x155)](/\{CreatedAt\}/g,_0x137393);return _0x1502ca;}static async[a263_0x335017(0x187)](_0x3a8ce4,_0x4fe9e7,_0x21b1b4,_0x1fb423,_0x727746=!![]){const _0x27150c=a263_0x335017,_0x9fb8da=Date[_0x27150c(0x15d)]();try{_0x727746&&logger[_0x27150c(0x16b)](_0x27150c(0x177),_0x27150c(0x171),{'templatePath':_0x3a8ce4,'targetPath':_0x4fe9e7,'pageName':_0x21b1b4,'templateName':_0x1fb423});await a263_0x55f3af[_0x27150c(0x16f)]['mkdir'](_0x4fe9e7,{'recursive':!![]}),await this[_0x27150c(0x166)](_0x3a8ce4,_0x4fe9e7,_0x21b1b4,_0x1fb423);if(_0x727746){const _0x3cc903=Date['now']()-_0x9fb8da;logger[_0x27150c(0x159)](_0x27150c(0x177),'模板内容替换完成',_0x3cc903,{'pageName':_0x21b1b4,'templateName':_0x1fb423});}}catch(_0xc52c6b){if(_0x727746){const _0x4f5e31=Date[_0x27150c(0x15d)]()-_0x9fb8da;logger['error']('template',_0x27150c(0x167),{'templatePath':_0x3a8ce4,'targetPath':_0x4fe9e7,'pageName':_0x21b1b4,'templateName':_0x1fb423,'error':_0xc52c6b instanceof Error?_0xc52c6b[_0x27150c(0x15c)]:String(_0xc52c6b),'duration':_0x4f5e31});}throw _0xc52c6b;}}static async[a263_0x335017(0x166)](_0x3ef8a5,_0x279480,_0x5b5a1d,_0xa75cd6){const _0x428c83=a263_0x335017,_0x2ee1f2=await a263_0x55f3af[_0x428c83(0x16f)][_0x428c83(0x16e)](_0x3ef8a5,{'withFileTypes':!![]});for(const _0x37dcd0 of _0x2ee1f2){const _0x369cca=a263_0x1df67a['join'](_0x3ef8a5,_0x37dcd0[_0x428c83(0x16d)]);let _0xfbbd93=a263_0x1df67a[_0x428c83(0x160)](_0x279480,_0x37dcd0[_0x428c83(0x16d)]);_0x37dcd0[_0x428c83(0x16d)]['endsWith']('.tpl')&&(_0xfbbd93=a263_0x1df67a[_0x428c83(0x160)](_0x279480,_0x37dcd0[_0x428c83(0x16d)][_0x428c83(0x155)](/\.tpl$/,'')));if(_0x37dcd0['isDirectory']())await a263_0x55f3af[_0x428c83(0x16f)][_0x428c83(0x170)](_0xfbbd93,{'recursive':!![]}),await this['processDirectory'](_0x369cca,_0xfbbd93,_0x5b5a1d,_0xa75cd6);else _0x37dcd0['isFile']()&&await this[_0x428c83(0x168)](_0x369cca,_0xfbbd93,_0x5b5a1d,_0xa75cd6);}}static async[a263_0x335017(0x168)](_0x2126cd,_0x1bf298,_0x2cf488,_0xb550a7){const _0xf29b62=a263_0x335017,_0x20391b=a263_0x1df67a[_0xf29b62(0x176)](_0x2126cd)[_0xf29b62(0x185)]();_0x2126cd['endsWith'](_0xf29b62(0x15f))&&(_0x1bf298=_0x1bf298['replace'](/\.tpl$/,''));const _0x3a2726=[_0xf29b62(0x163),'.ts',_0xf29b62(0x18a),_0xf29b62(0x157),'.json',_0xf29b62(0x165),'.css','.scss',_0xf29b62(0x15f)];if(_0x3a2726[_0xf29b62(0x17b)](_0x20391b)||_0x2126cd[_0xf29b62(0x158)](_0xf29b62(0x15f))){const _0x1f3b2b=await a263_0x55f3af[_0xf29b62(0x16f)][_0xf29b62(0x161)](_0x2126cd,'utf8'),_0x383f88=this[_0xf29b62(0x164)](_0x1f3b2b,_0x2cf488,_0xb550a7);await a263_0x55f3af['promises']['writeFile'](_0x1bf298,_0x383f88,_0xf29b62(0x172));}else await a263_0x55f3af['promises'][_0xf29b62(0x186)](_0x2126cd,_0x1bf298);}}
@@ -1 +1 @@
1
- (function(_0x468619,_0x1e3c14){const _0x1713b6=a263_0x1b28,_0x24223b=_0x468619();while(!![]){try{const _0x1f46bc=parseInt(_0x1713b6(0xde))/0x1*(parseInt(_0x1713b6(0xe2))/0x2)+parseInt(_0x1713b6(0xd2))/0x3*(-parseInt(_0x1713b6(0xd5))/0x4)+-parseInt(_0x1713b6(0xd7))/0x5+-parseInt(_0x1713b6(0xe4))/0x6+-parseInt(_0x1713b6(0xdb))/0x7+-parseInt(_0x1713b6(0xca))/0x8+-parseInt(_0x1713b6(0xdf))/0x9*(-parseInt(_0x1713b6(0xdc))/0xa);if(_0x1f46bc===_0x1e3c14)break;else _0x24223b['push'](_0x24223b['shift']());}catch(_0x179975){_0x24223b['push'](_0x24223b['shift']());}}}(a263_0x42f3,0x4fc47));import{mkdir,readFile,writeFile}from'node:fs/promises';import{homedir}from'node:os';import{dirname,join}from'node:path';import a263_0x52cb2f from'semver';import{CLI_BIN_NAME,NPM_PACKAGE_NAME}from'../constant/cli.js';function a263_0x42f3(){const _0x9532d5=['4620MCTZHo','latest','71XUAdMJ','34272rqamoc','update-check.json','stringify','894CsLYJg','lastNotifiedVersion','556698xqZCkr','true','valid','\x20update','checkedAt','toLowerCase','3000208FTdXXW','https://www.npmjs.com/package/','now','object','rabetbase-cli','.cache','\x20available,\x20current\x20','lastNotifiedAt','2586BpKXuI','trim','yes','848HnNbmD','gte','2873065gtcdWR',',\x20run:\x20','number','utf8','1673980hqZRgQ'];a263_0x42f3=function(){return _0x9532d5;};return a263_0x42f3();}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 _0x1cffa8=a263_0x1b28,_0x313721=process.env.RABETBASE_NO_UPDATE_NOTICE?.['trim']()[_0x1cffa8(0xc9)]();return _0x313721==='1'||_0x313721===_0x1cffa8(0xe5)||_0x313721===_0x1cffa8(0xd4);}function cacheRoot(){const _0x35490b=a263_0x1b28;return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),_0x35490b(0xcf));}export function getUpdateNoticeCachePath(){const _0x406b87=a263_0x1b28;return join(cacheRoot(),_0x406b87(0xce),_0x406b87(0xe0));}async function readUpdateNoticeCache(){const _0x52b825=a263_0x1b28;try{const _0x71e4e1=await readFile(getUpdateNoticeCachePath(),_0x52b825(0xda)),_0x40e0fc=JSON['parse'](_0x71e4e1);if(!_0x40e0fc||typeof _0x40e0fc!==_0x52b825(0xcd))return{};return _0x40e0fc;}catch{return{};}}async function writeUpdateNoticeCache(_0x178c97){const _0x28d738=a263_0x1b28;try{const _0x565b53=getUpdateNoticeCachePath();await mkdir(dirname(_0x565b53),{'recursive':!![]}),await writeFile(_0x565b53,JSON[_0x28d738(0xe1)](_0x178c97,null,0x2)+'\x0a','utf8');}catch{}}function a263_0x1b28(_0x28b41f,_0x4c286d){_0x28b41f=_0x28b41f-0xc6;const _0x42f34a=a263_0x42f3();let _0x1b2824=_0x42f34a[_0x28b41f];return _0x1b2824;}function isFreshCheck(_0x9f0fbd,_0x5aebd9){const _0x1e388a=a263_0x1b28;return typeof _0x9f0fbd[_0x1e388a(0xc8)]==='number'&&_0x5aebd9-_0x9f0fbd[_0x1e388a(0xc8)]<UPDATE_CHECK_TTL_MS;}function isRecentlyNotified(_0x4bd262,_0x132bbd,_0x4f25aa){const _0x28d98d=a263_0x1b28;return _0x4bd262[_0x28d98d(0xe3)]===_0x132bbd&&typeof _0x4bd262[_0x28d98d(0xd1)]===_0x28d98d(0xd9)&&_0x4f25aa-_0x4bd262['lastNotifiedAt']<UPDATE_NOTICE_TTL_MS;}export function buildNpmVersionUrl(_0x58bc4f){const _0x368611=a263_0x1b28;return _0x368611(0xcb)+NPM_PACKAGE_NAME+'/v/'+_0x58bc4f;}export async function resolveLatestUpdateNotice(){const _0x3b9150=a263_0x1b28;if(isUpdateNoticeDisabled())return null;try{const _0x13eb62=Date[_0x3b9150(0xcc)](),_0x382fba=getCliVersion(),_0x2d4482=await readUpdateNoticeCache();let _0x45cf5a=isFreshCheck(_0x2d4482,_0x13eb62)?_0x2d4482[_0x3b9150(0xdd)]?.[_0x3b9150(0xd3)]():undefined;if(!_0x45cf5a&&!isFreshCheck(_0x2d4482,_0x13eb62)){const _0x38a644=await getCliVersionPolicy();_0x45cf5a=_0x38a644?.['stableVersion']?.[_0x3b9150(0xd3)]()||undefined,await writeUpdateNoticeCache({..._0x2d4482,'checkedAt':_0x13eb62,'latest':_0x45cf5a,'failed':!_0x45cf5a});}if(!_0x45cf5a||!a263_0x52cb2f[_0x3b9150(0xc6)](_0x382fba)||!a263_0x52cb2f[_0x3b9150(0xc6)](_0x45cf5a))return null;if(a263_0x52cb2f[_0x3b9150(0xd6)](_0x382fba,_0x45cf5a))return null;if(isRecentlyNotified(_0x2d4482,_0x45cf5a,_0x13eb62))return null;const _0x552e05=CLI_BIN_NAME+_0x3b9150(0xc7);return await writeUpdateNoticeCache({..._0x2d4482,'checkedAt':isFreshCheck(_0x2d4482,_0x13eb62)?_0x2d4482[_0x3b9150(0xc8)]:_0x13eb62,'latest':_0x45cf5a,'failed':![],'lastNotifiedVersion':_0x45cf5a,'lastNotifiedAt':_0x13eb62}),{'command':_0x552e05,'current':_0x382fba,'latest':_0x45cf5a,'url':buildNpmVersionUrl(_0x45cf5a),'message':CLI_BIN_NAME+'\x20'+_0x45cf5a+_0x3b9150(0xd0)+_0x382fba+_0x3b9150(0xd8)+_0x552e05};}catch{return null;}}
1
+ (function(_0x1721d1,_0x3baf61){const _0x3bf496=a264_0x5984,_0x444477=_0x1721d1();while(!![]){try{const _0x382e34=parseInt(_0x3bf496(0x18b))/0x1+parseInt(_0x3bf496(0x177))/0x2+-parseInt(_0x3bf496(0x17e))/0x3+parseInt(_0x3bf496(0x18f))/0x4+parseInt(_0x3bf496(0x18c))/0x5*(parseInt(_0x3bf496(0x178))/0x6)+-parseInt(_0x3bf496(0x17b))/0x7+parseInt(_0x3bf496(0x183))/0x8*(-parseInt(_0x3bf496(0x179))/0x9);if(_0x382e34===_0x3baf61)break;else _0x444477['push'](_0x444477['shift']());}catch(_0x34c3b5){_0x444477['push'](_0x444477['shift']());}}}(a264_0x5f37,0xa840e));import{mkdir,readFile,writeFile}from'node:fs/promises';import{homedir}from'node:os';import{dirname,join}from'node:path';import a264_0x15174d 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 _0x26c691=a264_0x5984,_0x4c225e=process.env.RABETBASE_NO_UPDATE_NOTICE?.[_0x26c691(0x181)]()[_0x26c691(0x175)]();return _0x4c225e==='1'||_0x4c225e===_0x26c691(0x184)||_0x4c225e==='yes';}function cacheRoot(){const _0x5d6f0d=a264_0x5984;return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),_0x5d6f0d(0x18d));}export function getUpdateNoticeCachePath(){const _0x27fd15=a264_0x5984;return join(cacheRoot(),_0x27fd15(0x17d),_0x27fd15(0x187));}async function readUpdateNoticeCache(){const _0x5635eb=a264_0x5984;try{const _0x58f5c0=await readFile(getUpdateNoticeCachePath(),_0x5635eb(0x180)),_0x14712e=JSON['parse'](_0x58f5c0);if(!_0x14712e||typeof _0x14712e!==_0x5635eb(0x189))return{};return _0x14712e;}catch{return{};}}async function writeUpdateNoticeCache(_0x51dd78){const _0x386f24=a264_0x5984;try{const _0x2e46f7=getUpdateNoticeCachePath();await mkdir(dirname(_0x2e46f7),{'recursive':!![]}),await writeFile(_0x2e46f7,JSON[_0x386f24(0x18e)](_0x51dd78,null,0x2)+'\x0a',_0x386f24(0x180));}catch{}}function isFreshCheck(_0x2b293a,_0x4e07f0){const _0x5271cb=a264_0x5984;return typeof _0x2b293a[_0x5271cb(0x174)]===_0x5271cb(0x185)&&_0x4e07f0-_0x2b293a['checkedAt']<UPDATE_CHECK_TTL_MS;}function isRecentlyNotified(_0x4554fa,_0x4ff394,_0x517eac){const _0x959ec7=a264_0x5984;return _0x4554fa[_0x959ec7(0x173)]===_0x4ff394&&typeof _0x4554fa[_0x959ec7(0x17a)]===_0x959ec7(0x185)&&_0x517eac-_0x4554fa[_0x959ec7(0x17a)]<UPDATE_NOTICE_TTL_MS;}export function buildNpmVersionUrl(_0x4a306b){const _0x4be25a=a264_0x5984;return _0x4be25a(0x182)+NPM_PACKAGE_NAME+_0x4be25a(0x172)+_0x4a306b;}function a264_0x5f37(){const _0x71735f=['checkedAt','toLowerCase','valid','1131152PjFNaC','6rZzDVi','3433941FIEQpx','lastNotifiedAt','3699234XSzgYu','\x20update','rabetbase-cli','2296755ILaQRJ','\x20available,\x20current\x20','utf8','trim','https://www.npmjs.com/package/','24kEAliA','true','number','latest','update-check.json','gte','object','now','1113640wufWxb','2068210xyFpeh','.cache','stringify','4140008akRgXX','/v/','lastNotifiedVersion'];a264_0x5f37=function(){return _0x71735f;};return a264_0x5f37();}function a264_0x5984(_0x4ce8b4,_0x2e6b58){_0x4ce8b4=_0x4ce8b4-0x172;const _0x5f37ce=a264_0x5f37();let _0x598447=_0x5f37ce[_0x4ce8b4];return _0x598447;}export async function resolveLatestUpdateNotice(){const _0x38b6fa=a264_0x5984;if(isUpdateNoticeDisabled())return null;try{const _0x28c11c=Date[_0x38b6fa(0x18a)](),_0x14841b=getCliVersion(),_0x1a256d=await readUpdateNoticeCache();let _0x5d4a71=isFreshCheck(_0x1a256d,_0x28c11c)?_0x1a256d[_0x38b6fa(0x186)]?.[_0x38b6fa(0x181)]():undefined;if(!_0x5d4a71&&!isFreshCheck(_0x1a256d,_0x28c11c)){const _0x323a24=await getCliVersionPolicy();_0x5d4a71=_0x323a24?.['stableVersion']?.[_0x38b6fa(0x181)]()||undefined,await writeUpdateNoticeCache({..._0x1a256d,'checkedAt':_0x28c11c,'latest':_0x5d4a71,'failed':!_0x5d4a71});}if(!_0x5d4a71||!a264_0x15174d[_0x38b6fa(0x176)](_0x14841b)||!a264_0x15174d['valid'](_0x5d4a71))return null;if(a264_0x15174d[_0x38b6fa(0x188)](_0x14841b,_0x5d4a71))return null;if(isRecentlyNotified(_0x1a256d,_0x5d4a71,_0x28c11c))return null;const _0x3a3fdf=CLI_BIN_NAME+_0x38b6fa(0x17c);return await writeUpdateNoticeCache({..._0x1a256d,'checkedAt':isFreshCheck(_0x1a256d,_0x28c11c)?_0x1a256d[_0x38b6fa(0x174)]:_0x28c11c,'latest':_0x5d4a71,'failed':![],'lastNotifiedVersion':_0x5d4a71,'lastNotifiedAt':_0x28c11c}),{'command':_0x3a3fdf,'current':_0x14841b,'latest':_0x5d4a71,'url':buildNpmVersionUrl(_0x5d4a71),'message':CLI_BIN_NAME+'\x20'+_0x5d4a71+_0x38b6fa(0x17f)+_0x14841b+',\x20run:\x20'+_0x3a3fdf};}catch{return null;}}
@@ -1 +1 @@
1
- (function(_0x471bbf,_0x305a5b){var _0x57fec3=a264_0x4173,_0xb3117a=_0x471bbf();while(!![]){try{var _0x43f77b=parseInt(_0x57fec3(0x143))/0x1*(parseInt(_0x57fec3(0x147))/0x2)+-parseInt(_0x57fec3(0x144))/0x3+parseInt(_0x57fec3(0x149))/0x4*(-parseInt(_0x57fec3(0x145))/0x5)+parseInt(_0x57fec3(0x140))/0x6+-parseInt(_0x57fec3(0x148))/0x7*(parseInt(_0x57fec3(0x142))/0x8)+-parseInt(_0x57fec3(0x146))/0x9+parseInt(_0x57fec3(0x141))/0xa;if(_0x43f77b===_0x305a5b)break;else _0xb3117a['push'](_0xb3117a['shift']());}catch(_0x287c3d){_0xb3117a['push'](_0xb3117a['shift']());}}}(a264_0x3896,0x26974));import{VERSION}from'../generated/build-info.js';export function getCliVersion(){return VERSION;}function a264_0x4173(_0x1e0e19,_0x54f157){_0x1e0e19=_0x1e0e19-0x140;var _0x389645=a264_0x3896();var _0x417387=_0x389645[_0x1e0e19];return _0x417387;}function a264_0x3896(){var _0x3413ef=['156531Mjsggs','5RVfpyi','2360187diMCuE','2nETxGZ','1689422cHpkXc','634472GLbxlR','1832922ImBrBF','4302120DhUglv','8bxePCo','136753nIkhnF'];a264_0x3896=function(){return _0x3413ef;};return a264_0x3896();}
1
+ (function(_0x2bc221,_0x430f9a){var _0x5c8262=a265_0x1fb4,_0x235a9d=_0x2bc221();while(!![]){try{var _0x29adea=parseInt(_0x5c8262(0x1ae))/0x1+-parseInt(_0x5c8262(0x1b3))/0x2*(-parseInt(_0x5c8262(0x1b7))/0x3)+-parseInt(_0x5c8262(0x1b4))/0x4+-parseInt(_0x5c8262(0x1b1))/0x5*(-parseInt(_0x5c8262(0x1b0))/0x6)+parseInt(_0x5c8262(0x1af))/0x7*(parseInt(_0x5c8262(0x1b6))/0x8)+parseInt(_0x5c8262(0x1b2))/0x9+parseInt(_0x5c8262(0x1ad))/0xa*(-parseInt(_0x5c8262(0x1b5))/0xb);if(_0x29adea===_0x430f9a)break;else _0x235a9d['push'](_0x235a9d['shift']());}catch(_0xb81509){_0x235a9d['push'](_0x235a9d['shift']());}}}(a265_0x23fc,0x5b91c));function a265_0x1fb4(_0x477923,_0x594374){_0x477923=_0x477923-0x1ad;var _0x23fc92=a265_0x23fc();var _0x1fb4b9=_0x23fc92[_0x477923];return _0x1fb4b9;}function a265_0x23fc(){var _0x23aa48=['3211839GXfQan','4104tNESPL','2384116ZKlwLw','66XdNtLw','24xppwfa','549FyJXHr','1985720fwvRGM','732840zMLjyM','1093603xcWIGl','18hXsMvl','381025XBLjtk'];a265_0x23fc=function(){return _0x23aa48;};return a265_0x23fc();}import{VERSION}from'../generated/build-info.js';export function getCliVersion(){return VERSION;}
@@ -1 +1 @@
1
- function a265_0xfdfb(){var _0x1bb29b=['1131wdXDgc','3454297QsfVMp','2RjZEVL','1050509atUvcX','43841996AtqVSP','695238HkfcDM','520JsLXQn','10IqDmgk','2493472siwozd','5911173kQAKwo','40QEnsfp'];a265_0xfdfb=function(){return _0x1bb29b;};return a265_0xfdfb();}(function(_0x4bde7c,_0x2d2744){var _0x31b5c7=a265_0x2d46,_0x349151=_0x4bde7c();while(!![]){try{var _0x1392db=parseInt(_0x31b5c7(0x150))/0x1*(-parseInt(_0x31b5c7(0x14f))/0x2)+-parseInt(_0x31b5c7(0x158))/0x3*(-parseInt(_0x31b5c7(0x153))/0x4)+parseInt(_0x31b5c7(0x157))/0x5*(-parseInt(_0x31b5c7(0x152))/0x6)+-parseInt(_0x31b5c7(0x159))/0x7+-parseInt(_0x31b5c7(0x155))/0x8+parseInt(_0x31b5c7(0x156))/0x9*(-parseInt(_0x31b5c7(0x154))/0xa)+parseInt(_0x31b5c7(0x151))/0xb;if(_0x1392db===_0x2d2744)break;else _0x349151['push'](_0x349151['shift']());}catch(_0x3a4486){_0x349151['push'](_0x349151['shift']());}}}(a265_0xfdfb,0x91501));import{setActiveCookie,clearActiveCookie}from'../core/api-client.js';function a265_0x2d46(_0x5861b3,_0x4b6a28){_0x5861b3=_0x5861b3-0x14f;var _0xfdfb2d=a265_0xfdfb();var _0x2d4675=_0xfdfb2d[_0x5861b3];return _0x2d4675;}export async function withActiveCookie(_0x23f873,_0x372579){setActiveCookie(_0x23f873);try{return await _0x372579();}finally{clearActiveCookie();}}
1
+ function a266_0x1720(){var _0x791250=['27320uKxKnv','914373JRMncX','749Wjgoud','41526uFJAmm','84PrLqOF','9979NFAtnA','716828nxsvYu','283002QovHPY','5697790PSwztx','40aeNGLM'];a266_0x1720=function(){return _0x791250;};return a266_0x1720();}function a266_0x309a(_0x233fff,_0xf7f88b){_0x233fff=_0x233fff-0x1ab;var _0x17207f=a266_0x1720();var _0x309a8b=_0x17207f[_0x233fff];return _0x309a8b;}(function(_0x391a15,_0x3060d5){var _0x5689f6=a266_0x309a,_0x1ba421=_0x391a15();while(!![]){try{var _0x239b14=-parseInt(_0x5689f6(0x1b2))/0x1*(parseInt(_0x5689f6(0x1b1))/0x2)+parseInt(_0x5689f6(0x1b0))/0x3+parseInt(_0x5689f6(0x1b3))/0x4+-parseInt(_0x5689f6(0x1ac))/0x5*(parseInt(_0x5689f6(0x1b4))/0x6)+parseInt(_0x5689f6(0x1af))/0x7*(parseInt(_0x5689f6(0x1ad))/0x8)+-parseInt(_0x5689f6(0x1ae))/0x9+parseInt(_0x5689f6(0x1ab))/0xa;if(_0x239b14===_0x3060d5)break;else _0x1ba421['push'](_0x1ba421['shift']());}catch(_0x5b318a){_0x1ba421['push'](_0x1ba421['shift']());}}}(a266_0x1720,0x38326));import{setActiveCookie,clearActiveCookie}from'../core/api-client.js';export async function withActiveCookie(_0x5bfe14,_0x1ef9f9){setActiveCookie(_0x5bfe14);try{return await _0x1ef9f9();}finally{clearActiveCookie();}}
@@ -1 +1 @@
1
- (function(_0x41d440,_0x29447b){var _0x27a647=a266_0x7b9c,_0xe3a025=_0x41d440();while(!![]){try{var _0x1546c0=-parseInt(_0x27a647(0x15f))/0x1+parseInt(_0x27a647(0x160))/0x2+-parseInt(_0x27a647(0x162))/0x3+parseInt(_0x27a647(0x15c))/0x4*(parseInt(_0x27a647(0x15e))/0x5)+-parseInt(_0x27a647(0x159))/0x6*(-parseInt(_0x27a647(0x161))/0x7)+-parseInt(_0x27a647(0x163))/0x8+parseInt(_0x27a647(0x15b))/0x9;if(_0x1546c0===_0x29447b)break;else _0xe3a025['push'](_0xe3a025['shift']());}catch(_0x40a45c){_0xe3a025['push'](_0xe3a025['shift']());}}}(a266_0x3b97,0x522b7));export function writeCliSideChannelLine(_0x384eb7){var _0x5bdea0=a266_0x7b9c;process[_0x5bdea0(0x15d)][_0x5bdea0(0x15a)](_0x384eb7+'\x0a');}function a266_0x7b9c(_0x46a22c,_0x357664){_0x46a22c=_0x46a22c-0x159;var _0x3b9733=a266_0x3b97();var _0x7b9c76=_0x3b9733[_0x46a22c];return _0x7b9c76;}function a266_0x3b97(){var _0x5e40ed=['2162154ieJooL','write','2224710lzYXnO','516diGkll','stderr','14545NNfcsu','550668GPqihr','528958mMHJKY','7jNpaBm','647154ePDteZ','1154688vcBoyY'];a266_0x3b97=function(){return _0x5e40ed;};return a266_0x3b97();}
1
+ function a267_0x1b63(_0x34a293,_0x24d6d2){_0x34a293=_0x34a293-0xde;var _0x82fd20=a267_0x82fd();var _0x1b63d9=_0x82fd20[_0x34a293];return _0x1b63d9;}(function(_0x4ff643,_0x178583){var _0x16e168=a267_0x1b63,_0x237d7e=_0x4ff643();while(!![]){try{var _0x3e9da1=-parseInt(_0x16e168(0xe6))/0x1*(parseInt(_0x16e168(0xe0))/0x2)+parseInt(_0x16e168(0xe1))/0x3+-parseInt(_0x16e168(0xdf))/0x4*(-parseInt(_0x16e168(0xe5))/0x5)+-parseInt(_0x16e168(0xde))/0x6+-parseInt(_0x16e168(0xe2))/0x7+-parseInt(_0x16e168(0xe3))/0x8+parseInt(_0x16e168(0xe4))/0x9;if(_0x3e9da1===_0x178583)break;else _0x237d7e['push'](_0x237d7e['shift']());}catch(_0x2387e8){_0x237d7e['push'](_0x237d7e['shift']());}}}(a267_0x82fd,0x2de62));export function writeCliSideChannelLine(_0x186d7f){process['stderr']['write'](_0x186d7f+'\x0a');}function a267_0x82fd(){var _0xe98d7d=['925050uqTtyk','2556624WAoXQG','5853879SrPNXj','155ctqnVR','107129XYcMaL','1788744qHjKuW','30844rcQQWq','6yIbzbL','1109307xJWQba'];a267_0x82fd=function(){return _0xe98d7d;};return a267_0x82fd();}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lovrabet/rabetbase-cli",
3
- "version": "2.3.14",
3
+ "version": "2.3.15-beta.2",
4
4
  "description": "Developer CLI for Lovrabet apps, datasets, pages, SQL, BFF, database connections, skills, and AI agent workflows.",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "keywords": [