@lovrabet/rabetbase-cli 2.3.4-beta.4 → 2.3.5-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (239) hide show
  1. package/lib/api/api-doc.js +1 -1
  2. package/lib/api/fetch-model-list.js +1 -1
  3. package/lib/api/generate-api-file.js +1 -1
  4. package/lib/auth/auth-server-ui.js +1 -1
  5. package/lib/auth/auth-server.js +1 -1
  6. package/lib/auth/constant.js +1 -1
  7. package/lib/auth/get-cookie.js +1 -1
  8. package/lib/auth/get-session-user.js +1 -1
  9. package/lib/auth/is-session-valid.js +1 -1
  10. package/lib/auth/login-success-html.js +1 -1
  11. package/lib/auth/logout.js +1 -1
  12. package/lib/cli-flags.js +1 -1
  13. package/lib/cli.js +1 -1
  14. package/lib/commands/api/generate.js +1 -1
  15. package/lib/commands/api/index.js +1 -1
  16. package/lib/commands/api/list.js +1 -1
  17. package/lib/commands/api/pull.js +1 -1
  18. package/lib/commands/api/shared.js +1 -1
  19. package/lib/commands/app/add.js +1 -1
  20. package/lib/commands/app/index.js +1 -1
  21. package/lib/commands/app/list.js +1 -1
  22. package/lib/commands/app/remote-directory.js +1 -1
  23. package/lib/commands/app/remove.js +1 -1
  24. package/lib/commands/app/shared.js +1 -1
  25. package/lib/commands/app-config/delete.js +1 -1
  26. package/lib/commands/app-config/get.js +1 -1
  27. package/lib/commands/app-config/index.js +1 -1
  28. package/lib/commands/app-config/list.js +1 -1
  29. package/lib/commands/app-config/set.js +1 -1
  30. package/lib/commands/app-config/shared.js +1 -1
  31. package/lib/commands/auth/index.js +1 -1
  32. package/lib/commands/bff/create.js +1 -1
  33. package/lib/commands/bff/delete.js +1 -1
  34. package/lib/commands/bff/detail.js +1 -1
  35. package/lib/commands/bff/index.js +1 -1
  36. package/lib/commands/bff/list.js +1 -1
  37. package/lib/commands/bff/pull.js +1 -1
  38. package/lib/commands/bff/push.js +1 -1
  39. package/lib/commands/bff/status.js +1 -1
  40. package/lib/commands/cli-skill/index.js +1 -1
  41. package/lib/commands/cli-update.js +1 -1
  42. package/lib/commands/codegen/index.js +1 -1
  43. package/lib/commands/codegen/sdk.js +1 -1
  44. package/lib/commands/codegen/sql.js +1 -1
  45. package/lib/commands/common/app-registry.js +1 -1
  46. package/lib/commands/common/app-selector.js +1 -1
  47. package/lib/commands/common/dry-run.js +1 -1
  48. package/lib/commands/common/flags.js +1 -1
  49. package/lib/commands/common/validate.js +1 -1
  50. package/lib/commands/config/get.js +1 -1
  51. package/lib/commands/config/index.js +1 -1
  52. package/lib/commands/config/list.js +1 -1
  53. package/lib/commands/config/set.js +1 -1
  54. package/lib/commands/config/shared.js +1 -1
  55. package/lib/commands/data/filter.js +1 -1
  56. package/lib/commands/data/getOne.js +1 -1
  57. package/lib/commands/data/index.js +1 -1
  58. package/lib/commands/data/shared.js +1 -1
  59. package/lib/commands/dataset/business-group-update.js +1 -1
  60. package/lib/commands/dataset/capability.js +1 -1
  61. package/lib/commands/dataset/delete.js +1 -1
  62. package/lib/commands/dataset/detail.js +1 -1
  63. package/lib/commands/dataset/extend-update.js +1 -1
  64. package/lib/commands/dataset/field-update.js +1 -1
  65. package/lib/commands/dataset/generate.js +1 -1
  66. package/lib/commands/dataset/index.js +1 -1
  67. package/lib/commands/dataset/list.js +1 -1
  68. package/lib/commands/dataset/operations.js +1 -1
  69. package/lib/commands/dataset/relation-audit.js +1 -1
  70. package/lib/commands/dataset/relation-create.js +1 -1
  71. package/lib/commands/dataset/relation-delete.js +1 -1
  72. package/lib/commands/dataset/relation-shared.js +1 -1
  73. package/lib/commands/dataset/relation-update.js +1 -1
  74. package/lib/commands/dataset/relations.js +1 -1
  75. package/lib/commands/dataset/rename.js +1 -1
  76. package/lib/commands/dataset/restore.js +1 -1
  77. package/lib/commands/db/analyze-cancel.js +1 -1
  78. package/lib/commands/db/analyze-start.js +1 -1
  79. package/lib/commands/db/analyze-status.js +1 -1
  80. package/lib/commands/db/create.js +1 -1
  81. package/lib/commands/db/delete.js +1 -1
  82. package/lib/commands/db/detail.js +1 -1
  83. package/lib/commands/db/diff.js +1 -1
  84. package/lib/commands/db/index.js +1 -1
  85. package/lib/commands/db/list.js +1 -1
  86. package/lib/commands/db/shared.js +1 -1
  87. package/lib/commands/db/tables.js +1 -1
  88. package/lib/commands/db/test.js +1 -1
  89. package/lib/commands/db/update.js +1 -1
  90. package/lib/commands/doctor.js +1 -1
  91. package/lib/commands/init/index.js +1 -1
  92. package/lib/commands/issue/index.js +1 -1
  93. package/lib/commands/issue/nudge.js +1 -1
  94. package/lib/commands/issue/report.js +1 -1
  95. package/lib/commands/issue/shared.js +1 -1
  96. package/lib/commands/logs/index.js +1 -1
  97. package/lib/commands/menu/index.js +1 -1
  98. package/lib/commands/menu/list.js +1 -1
  99. package/lib/commands/menu/shared/compare-table.js +1 -1
  100. package/lib/commands/menu/shared/index.js +1 -1
  101. package/lib/commands/menu/shared/inquirer.js +1 -1
  102. package/lib/commands/menu/shared/local-pages.js +1 -1
  103. package/lib/commands/menu/shared/logic.js +1 -1
  104. package/lib/commands/menu/shared/service.js +1 -1
  105. package/lib/commands/menu/shared/sync-core.js +1 -1
  106. package/lib/commands/menu/shared/update-core.js +1 -1
  107. package/lib/commands/menu/shared/valid-url.js +1 -1
  108. package/lib/commands/menu/sync.js +1 -1
  109. package/lib/commands/menu/update.js +1 -1
  110. package/lib/commands/page/generate-start.js +1 -1
  111. package/lib/commands/page/generate-status.js +1 -1
  112. package/lib/commands/page/index.js +1 -1
  113. package/lib/commands/page/pull.js +1 -1
  114. package/lib/commands/page/push.js +1 -1
  115. package/lib/commands/page/relation-audit.js +1 -1
  116. package/lib/commands/page/shared.js +1 -1
  117. package/lib/commands/page/standard-page-status.js +1 -1
  118. package/lib/commands/page/sync.js +1 -1
  119. package/lib/commands/permit/index.js +1 -1
  120. package/lib/commands/permit/page-get.js +1 -1
  121. package/lib/commands/permit/page-set.js +1 -1
  122. package/lib/commands/permit/role-apis-set.js +1 -1
  123. package/lib/commands/permit/role-menus-set.js +1 -1
  124. package/lib/commands/permit/role-menus.js +1 -1
  125. package/lib/commands/permit/shared.js +1 -1
  126. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  127. package/lib/commands/project/create/format-elapsed.js +1 -1
  128. package/lib/commands/project/create/main.js +1 -1
  129. package/lib/commands/project/create/non-interactive.js +1 -1
  130. package/lib/commands/project/create/project-template-path.js +1 -1
  131. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  132. package/lib/commands/project/create/use-format-code.js +1 -1
  133. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  134. package/lib/commands/project/index.js +1 -1
  135. package/lib/commands/project/init.js +1 -1
  136. package/lib/commands/project/upgrade.js +1 -1
  137. package/lib/commands/registry.js +1 -1
  138. package/lib/commands/role/create.js +1 -1
  139. package/lib/commands/role/delete.js +1 -1
  140. package/lib/commands/role/detail.js +1 -1
  141. package/lib/commands/role/index.js +1 -1
  142. package/lib/commands/role/list.js +1 -1
  143. package/lib/commands/role/shared.js +1 -1
  144. package/lib/commands/role/update.js +1 -1
  145. package/lib/commands/role/user-add.js +1 -1
  146. package/lib/commands/role/user-remove.js +1 -1
  147. package/lib/commands/role/user-resolve.js +1 -1
  148. package/lib/commands/run/index.js +1 -1
  149. package/lib/commands/schema.js +1 -1
  150. package/lib/commands/sql/create.js +1 -1
  151. package/lib/commands/sql/delete.js +1 -1
  152. package/lib/commands/sql/detail.js +1 -1
  153. package/lib/commands/sql/exec.js +1 -1
  154. package/lib/commands/sql/index.js +1 -1
  155. package/lib/commands/sql/list.js +1 -1
  156. package/lib/commands/sql/pull.js +1 -1
  157. package/lib/commands/sql/push.js +1 -1
  158. package/lib/commands/sql/save.js +1 -1
  159. package/lib/commands/sql/shared.js +1 -1
  160. package/lib/commands/sql/status.js +1 -1
  161. package/lib/commands/sql/validate.js +1 -1
  162. package/lib/commands/workspace/add.js +1 -1
  163. package/lib/commands/workspace/index.js +1 -1
  164. package/lib/commands/workspace/remove.js +1 -1
  165. package/lib/config/schema.js +1 -1
  166. package/lib/constant/cdn.js +1 -1
  167. package/lib/constant/cli.js +1 -1
  168. package/lib/constant/defaults.js +1 -1
  169. package/lib/constant/domain.js +1 -1
  170. package/lib/constant/env.js +1 -1
  171. package/lib/constant/output.js +1 -1
  172. package/lib/constant/paths.js +1 -1
  173. package/lib/constant/risk.js +1 -1
  174. package/lib/context/app-resolver.js +1 -1
  175. package/lib/context/auth-resolver.js +1 -1
  176. package/lib/context/config-loader.js +1 -1
  177. package/lib/context.js +1 -1
  178. package/lib/core/alias-resolver.js +1 -1
  179. package/lib/core/api-client.js +1 -1
  180. package/lib/core/bff/config.js +1 -1
  181. package/lib/core/bff/file-system.js +1 -1
  182. package/lib/core/bff/hash.js +1 -1
  183. package/lib/core/bff/lock.js +1 -1
  184. package/lib/core/bff/utils.js +1 -1
  185. package/lib/core/db-resolver.js +1 -1
  186. package/lib/core/page/file-system.js +1 -1
  187. package/lib/core/page/hash.js +1 -1
  188. package/lib/core/page/lock.js +1 -1
  189. package/lib/core/sql-sync/config.js +1 -1
  190. package/lib/core/sql-sync/file-system.js +1 -1
  191. package/lib/core/sql-sync/hash.js +1 -1
  192. package/lib/core/sql-sync/lock.js +1 -1
  193. package/lib/core/sql-sync/utils.js +1 -1
  194. package/lib/core/sql-validator.js +1 -1
  195. package/lib/errors.js +1 -1
  196. package/lib/framework/build-all-flags.js +1 -1
  197. package/lib/framework/flags.js +1 -1
  198. package/lib/framework/help.js +1 -1
  199. package/lib/framework/index.js +1 -1
  200. package/lib/framework/output.js +1 -1
  201. package/lib/framework/response.js +1 -1
  202. package/lib/framework/runner-alias.js +1 -1
  203. package/lib/framework/runner.js +1 -1
  204. package/lib/framework/schema-export.js +1 -1
  205. package/lib/framework/types.js +1 -1
  206. package/lib/generated/build-info.js +1 -1
  207. package/lib/help.js +1 -1
  208. package/lib/skills/main.js +1 -1
  209. package/lib/skills/npx-skills-add.js +1 -1
  210. package/lib/telemetry/cli-command-trace.js +1 -1
  211. package/lib/telemetry/cli-help-trace.js +1 -1
  212. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  213. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  214. package/lib/telemetry/send-cli-trace-log.js +1 -1
  215. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  216. package/lib/utils/ai_config.js +1 -1
  217. package/lib/utils/apply-jq-filter.js +1 -1
  218. package/lib/utils/cdn-config.js +1 -1
  219. package/lib/utils/check-sdk-version.js +1 -1
  220. package/lib/utils/cli-version-check.js +1 -1
  221. package/lib/utils/cli-version-policy.js +1 -1
  222. package/lib/utils/config.js +1 -1
  223. package/lib/utils/copy-directory.js +1 -1
  224. package/lib/utils/entity-with-id.js +1 -1
  225. package/lib/utils/file-utils.js +1 -1
  226. package/lib/utils/guides-cdn.js +1 -1
  227. package/lib/utils/http-client.js +1 -1
  228. package/lib/utils/is-non-interactive.js +1 -1
  229. package/lib/utils/logger.js +1 -1
  230. package/lib/utils/params.js +1 -1
  231. package/lib/utils/platform.js +1 -1
  232. package/lib/utils/rules-cdn.js +1 -1
  233. package/lib/utils/sleep.js +1 -1
  234. package/lib/utils/template-replacer.js +1 -1
  235. package/lib/utils/update-notice.js +1 -1
  236. package/lib/utils/version.js +1 -1
  237. package/lib/utils/with-active-cookie.js +1 -1
  238. package/lib/utils/write-cli-side-channel.js +1 -1
  239. package/package.json +1 -1
@@ -1 +1 @@
1
- function a234_0x9e7c(_0xe27fd9,_0x610b6e){_0xe27fd9=_0xe27fd9-0x134;const _0x5c5bf9=a234_0x5c5b();let _0x9e7c43=_0x5c5bf9[_0xe27fd9];return _0x9e7c43;}(function(_0x2f1fc5,_0x61596){const _0x2f3f83=a234_0x9e7c,_0x32fb14=_0x2f1fc5();while(!![]){try{const _0x12e98d=-parseInt(_0x2f3f83(0x13a))/0x1*(parseInt(_0x2f3f83(0x13f))/0x2)+-parseInt(_0x2f3f83(0x13c))/0x3*(parseInt(_0x2f3f83(0x135))/0x4)+parseInt(_0x2f3f83(0x140))/0x5*(-parseInt(_0x2f3f83(0x139))/0x6)+-parseInt(_0x2f3f83(0x142))/0x7+parseInt(_0x2f3f83(0x13d))/0x8*(parseInt(_0x2f3f83(0x143))/0x9)+-parseInt(_0x2f3f83(0x13e))/0xa+parseInt(_0x2f3f83(0x137))/0xb;if(_0x12e98d===_0x61596)break;else _0x32fb14['push'](_0x32fb14['shift']());}catch(_0xc964f6){_0x32fb14['push'](_0x32fb14['shift']());}}}(a234_0x5c5b,0xdeeca));import{CliErrors}from'../errors.js';export function parseJsonParams(_0x29e6e6){const _0x415405=a234_0x9e7c;if(!_0x29e6e6)return undefined;let _0x5313cd;try{_0x5313cd=JSON[_0x415405(0x141)](_0x29e6e6);}catch{throw CliErrors[_0x415405(0x136)](_0x415405(0x134)+_0x29e6e6);}if(!_0x5313cd||typeof _0x5313cd!==_0x415405(0x138)||Array['isArray'](_0x5313cd))throw CliErrors[_0x415405(0x136)]('--params\x20must\x20be\x20a\x20JSON\x20object',_0x415405(0x13b));return _0x5313cd;}function a234_0x5c5b(){const _0x2f28df=['10gRJqvl','Example:\x20--params\x20\x27{\x22id\x22:123}\x27','3nEeVju','178976OMGUkX','3390960ICbEdx','169578AZDsvZ','2774220WnKpra','parse','2958466GERsLx','423nviDQm','Invalid\x20JSON\x20for\x20--params:\x20','3075268XEQFYk','validation','30743889CTOyoX','object','6pwaVXM'];a234_0x5c5b=function(){return _0x2f28df;};return a234_0x5c5b();}
1
+ (function(_0x464c35,_0x12ca5c){const _0x1a23cd=a234_0xebc0,_0x5abc0f=_0x464c35();while(!![]){try{const _0x5935f7=-parseInt(_0x1a23cd(0x9e))/0x1*(-parseInt(_0x1a23cd(0x9d))/0x2)+-parseInt(_0x1a23cd(0x96))/0x3+-parseInt(_0x1a23cd(0x9f))/0x4+-parseInt(_0x1a23cd(0xa0))/0x5+parseInt(_0x1a23cd(0x9a))/0x6*(parseInt(_0x1a23cd(0x95))/0x7)+-parseInt(_0x1a23cd(0x99))/0x8+parseInt(_0x1a23cd(0x9b))/0x9;if(_0x5935f7===_0x12ca5c)break;else _0x5abc0f['push'](_0x5abc0f['shift']());}catch(_0x4a665a){_0x5abc0f['push'](_0x5abc0f['shift']());}}}(a234_0x4aee,0x6c916));import{CliErrors}from'../errors.js';export function parseJsonParams(_0x185536){const _0x39474d=a234_0xebc0;if(!_0x185536)return undefined;let _0x1fa580;try{_0x1fa580=JSON['parse'](_0x185536);}catch{throw CliErrors[_0x39474d(0x97)]('Invalid\x20JSON\x20for\x20--params:\x20'+_0x185536);}if(!_0x1fa580||typeof _0x1fa580!==_0x39474d(0x9c)||Array['isArray'](_0x1fa580))throw CliErrors[_0x39474d(0x97)](_0x39474d(0x98),'Example:\x20--params\x20\x27{\x22id\x22:123}\x27');return _0x1fa580;}function a234_0xebc0(_0x1fd80d,_0x2b6286){_0x1fd80d=_0x1fd80d-0x95;const _0x4aee59=a234_0x4aee();let _0xebc050=_0x4aee59[_0x1fd80d];return _0xebc050;}function a234_0x4aee(){const _0x418950=['2801812PGkgge','4258775UeIcXu','5929qBbayR','2612943ovDkKx','validation','--params\x20must\x20be\x20a\x20JSON\x20object','3238752kGqqlo','1830bwVFnx','26387433HusiOE','object','690cOPzWY','239YSiuKs'];a234_0x4aee=function(){return _0x418950;};return a234_0x4aee();}
@@ -1 +1 @@
1
- function a235_0xaa09(_0x293805,_0x1b615c){_0x293805=_0x293805-0x65;const _0x5a749a=a235_0x5a74();let _0xaa09c1=_0x5a749a[_0x293805];return _0xaa09c1;}const a235_0x39d86d=a235_0xaa09;(function(_0x2903b6,_0x492e37){const _0x4cfc30=a235_0xaa09,_0x173ba2=_0x2903b6();while(!![]){try{const _0x42c000=-parseInt(_0x4cfc30(0x67))/0x1*(parseInt(_0x4cfc30(0x6b))/0x2)+-parseInt(_0x4cfc30(0x6a))/0x3+parseInt(_0x4cfc30(0x66))/0x4*(-parseInt(_0x4cfc30(0x65))/0x5)+-parseInt(_0x4cfc30(0x6f))/0x6+parseInt(_0x4cfc30(0x68))/0x7+parseInt(_0x4cfc30(0x69))/0x8+parseInt(_0x4cfc30(0x6d))/0x9;if(_0x42c000===_0x492e37)break;else _0x173ba2['push'](_0x173ba2['shift']());}catch(_0xdb8191){_0x173ba2['push'](_0x173ba2['shift']());}}}(a235_0x5a74,0x8559d));export const isWindows=process[a235_0x39d86d(0x6e)]===a235_0x39d86d(0x6c);export function resolveNpmBin(_0x109920){const _0x9609df=a235_0x39d86d;return isWindows?_0x109920+_0x9609df(0x70):_0x109920;}function a235_0x5a74(){const _0x216ee5=['89pboKwm','2395218fWwXsn','8676112eyqMya','1290468SOdOHi','13388uRUukD','win32','10142937OkYtTe','platform','512958BIZvLR','.cmd','4480305IgiTAH','4GNmXoo'];a235_0x5a74=function(){return _0x216ee5;};return a235_0x5a74();}
1
+ const a235_0x156e03=a235_0x1032;(function(_0xb77faa,_0x1eeec5){const _0x445432=a235_0x1032,_0x25935a=_0xb77faa();while(!![]){try{const _0x19fb4a=parseInt(_0x445432(0x181))/0x1+parseInt(_0x445432(0x189))/0x2*(-parseInt(_0x445432(0x188))/0x3)+-parseInt(_0x445432(0x18c))/0x4+-parseInt(_0x445432(0x180))/0x5*(parseInt(_0x445432(0x183))/0x6)+-parseInt(_0x445432(0x18d))/0x7*(-parseInt(_0x445432(0x187))/0x8)+-parseInt(_0x445432(0x18a))/0x9+-parseInt(_0x445432(0x185))/0xa*(-parseInt(_0x445432(0x18b))/0xb);if(_0x19fb4a===_0x1eeec5)break;else _0x25935a['push'](_0x25935a['shift']());}catch(_0x35dea3){_0x25935a['push'](_0x25935a['shift']());}}}(a235_0x9b29,0x5e8f7));export const isWindows=process[a235_0x156e03(0x184)]===a235_0x156e03(0x182);function a235_0x1032(_0x3c30f2,_0x396d7f){_0x3c30f2=_0x3c30f2-0x180;const _0x9b2938=a235_0x9b29();let _0x10326a=_0x9b2938[_0x3c30f2];return _0x10326a;}function a235_0x9b29(){const _0x3fb25d=['8sbnUyx','219927YTvRxl','14gwZtov','2365542tIeZEC','6339553riSeeS','2291916PoiHjs','995449rLUllG','65IbTQRF','134197IvLLlt','win32','124188ZhxNCb','platform','30SxAzWp','.cmd'];a235_0x9b29=function(){return _0x3fb25d;};return a235_0x9b29();}export function resolveNpmBin(_0x1525b7){const _0x1e50cc=a235_0x156e03;return isWindows?_0x1525b7+_0x1e50cc(0x186):_0x1525b7;}
@@ -1 +1 @@
1
- function a236_0x5b36(){const _0x597c7d=['3094242zLLJvp','application/json','string','lovrabet_rules.mdc','本地模板文件不存在:\x20','utf-8','2828ZYfNKK','../../templates/rules/lovrabet_rules.mdc.tpl','21679317KTGpUe','.cursor/rules','content','750557yEiEfL','agents.md','5lPEXna','statusText','json','31664BdDKnX','1408392eSNQhT','6558426jSilXP','status','572769NApFNS'];a236_0x5b36=function(){return _0x597c7d;};return a236_0x5b36();}const a236_0x310081=a236_0x3828;(function(_0x348d17,_0x2ec87d){const _0xf374da=a236_0x3828,_0x1b3f09=_0x348d17();while(!![]){try{const _0x5c2232=parseInt(_0xf374da(0x109))/0x1+parseInt(_0xf374da(0x113))/0x2+parseInt(_0xf374da(0x112))/0x3+parseInt(_0xf374da(0x10f))/0x4+parseInt(_0xf374da(0x10b))/0x5*(-parseInt(_0xf374da(0x110))/0x6)+-parseInt(_0xf374da(0x119))/0x7*(-parseInt(_0xf374da(0x10e))/0x8)+-parseInt(_0xf374da(0x106))/0x9;if(_0x5c2232===_0x2ec87d)break;else _0x1b3f09['push'](_0x1b3f09['shift']());}catch(_0x1b9b0d){_0x1b3f09['push'](_0x1b3f09['shift']());}}}(a236_0x5b36,0xe4f77));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 _0x108a26=getTemplateBaseUrl();return _0x108a26+'/rules/rules.json';}const LOCAL_TEMPLATE_PATH=resolve(__dirname,a236_0x310081(0x11a));export async function fetchRulesFromCDN(){const _0x11fdd6=a236_0x310081,_0x2ee3d5=getRulesCdnUrl(),_0x5b3a8c=await fetch(_0x2ee3d5,{'headers':{'Accept':_0x11fdd6(0x114)}});if(!_0x5b3a8c['ok'])throw new Error('CDN\x20请求失败:\x20'+_0x5b3a8c[_0x11fdd6(0x111)]+'\x20'+_0x5b3a8c[_0x11fdd6(0x10c)]);const _0x246e3b=await _0x5b3a8c[_0x11fdd6(0x10d)]();if(!_0x246e3b[_0x11fdd6(0x108)]||typeof _0x246e3b[_0x11fdd6(0x108)]!==_0x11fdd6(0x115))throw new Error('CDN\x20返回数据格式错误');return _0x246e3b;}export async function getRulesContent(){const _0x3a6162=a236_0x310081;try{const _0x4b26f5=await fetchRulesFromCDN();return _0x4b26f5[_0x3a6162(0x108)];}catch{return readLocalTemplate();}}export function readLocalTemplate(){const _0x278fb1=a236_0x310081;if(existsSync(LOCAL_TEMPLATE_PATH))return readFileSync(LOCAL_TEMPLATE_PATH,'utf-8');throw new Error(_0x278fb1(0x117)+LOCAL_TEMPLATE_PATH);}function a236_0x3828(_0x4f049a,_0x40bdaf){_0x4f049a=_0x4f049a-0x106;const _0x5b368c=a236_0x5b36();let _0x38288e=_0x5b368c[_0x4f049a];return _0x38288e;}export async function writeRulesFile(_0x151796){const _0x79082a=a236_0x310081,_0x4312e8=await fetchRulesFromCDN()['catch'](()=>null);let _0x1daa06;_0x4312e8?(_0x1daa06=_0x4312e8[_0x79082a(0x108)],_0x4312e8['lastUpdated']&&(_0x1daa06=appendUpdateTime(_0x1daa06,_0x4312e8['lastUpdated']))):_0x1daa06=readLocalTemplate();const _0x5c8986=dirname(_0x151796);!existsSync(_0x5c8986)&&mkdirSync(_0x5c8986,{'recursive':!![]}),writeFileSync(_0x151796,_0x1daa06,_0x79082a(0x118));}export async function copyRulesToCursor(_0x35be29){const _0x637a2d=a236_0x310081,_0x64698b=join(_0x35be29,_0x637a2d(0x107)),_0x351d6a=join(_0x64698b,_0x637a2d(0x116));if(existsSync(_0x351d6a))return![];return await writeRulesFile(_0x351d6a),!![];}export async function copyRulesToAgentsMd(_0x36bf37){const _0x2d23f1=a236_0x310081,_0x4ba3dd=join(_0x36bf37,_0x2d23f1(0x10a));if(existsSync(_0x4ba3dd))return![];return await writeRulesFile(_0x4ba3dd),!![];}
1
+ (function(_0x392023,_0x581fc0){const _0x70ee6b=a236_0x161a,_0x28e2e1=_0x392023();while(!![]){try{const _0x543920=-parseInt(_0x70ee6b(0xf4))/0x1*(-parseInt(_0x70ee6b(0x104))/0x2)+parseInt(_0x70ee6b(0xf3))/0x3*(parseInt(_0x70ee6b(0x100))/0x4)+parseInt(_0x70ee6b(0xf7))/0x5+-parseInt(_0x70ee6b(0xff))/0x6*(-parseInt(_0x70ee6b(0xfa))/0x7)+parseInt(_0x70ee6b(0xf6))/0x8*(-parseInt(_0x70ee6b(0xfe))/0x9)+-parseInt(_0x70ee6b(0x102))/0xa+-parseInt(_0x70ee6b(0xf5))/0xb;if(_0x543920===_0x581fc0)break;else _0x28e2e1['push'](_0x28e2e1['shift']());}catch(_0x5100e0){_0x28e2e1['push'](_0x28e2e1['shift']());}}}(a236_0x57bf,0x7d9d5));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 _0x45a528=a236_0x161a,_0x46ecc0=getTemplateBaseUrl();return _0x46ecc0+_0x45a528(0xfc);}const LOCAL_TEMPLATE_PATH=resolve(__dirname,'../../templates/rules/lovrabet_rules.mdc.tpl');function a236_0x161a(_0x5be8c7,_0x3c34a7){_0x5be8c7=_0x5be8c7-0xef;const _0x57bf51=a236_0x57bf();let _0x161aa1=_0x57bf51[_0x5be8c7];return _0x161aa1;}export async function fetchRulesFromCDN(){const _0x6d224f=a236_0x161a,_0x41e7ca=getRulesCdnUrl(),_0x3f3ddf=await fetch(_0x41e7ca,{'headers':{'Accept':_0x6d224f(0xef)}});if(!_0x3f3ddf['ok'])throw new Error('CDN\x20请求失败:\x20'+_0x3f3ddf[_0x6d224f(0xf1)]+'\x20'+_0x3f3ddf['statusText']);const _0x4e43b6=await _0x3f3ddf[_0x6d224f(0xf9)]();if(!_0x4e43b6[_0x6d224f(0xfd)]||typeof _0x4e43b6[_0x6d224f(0xfd)]!==_0x6d224f(0xf0))throw new Error(_0x6d224f(0x105));return _0x4e43b6;}function a236_0x57bf(){const _0x433944=['CDN\x20返回数据格式错误','application/json','string','status','agents.md','2421JsMtQQ','137296hsQirG','5207686BPUlwC','406944sKLhKd','1779875IIHUSx','.cursor/rules','json','284403scImOz','utf-8','/rules/rules.json','content','36YJrfXi','6BUrgEx','4700jiRxLR','lastUpdated','8398940tHAslr','catch','10ciGgGm'];a236_0x57bf=function(){return _0x433944;};return a236_0x57bf();}export async function getRulesContent(){const _0x171ced=a236_0x161a;try{const _0xd48c41=await fetchRulesFromCDN();return _0xd48c41[_0x171ced(0xfd)];}catch{return readLocalTemplate();}}export function readLocalTemplate(){const _0x1e5659=a236_0x161a;if(existsSync(LOCAL_TEMPLATE_PATH))return readFileSync(LOCAL_TEMPLATE_PATH,_0x1e5659(0xfb));throw new Error('本地模板文件不存在:\x20'+LOCAL_TEMPLATE_PATH);}export async function writeRulesFile(_0x58abd3){const _0xce79a1=a236_0x161a,_0x553f40=await fetchRulesFromCDN()[_0xce79a1(0x103)](()=>null);let _0x114070;_0x553f40?(_0x114070=_0x553f40['content'],_0x553f40[_0xce79a1(0x101)]&&(_0x114070=appendUpdateTime(_0x114070,_0x553f40[_0xce79a1(0x101)]))):_0x114070=readLocalTemplate();const _0x4dbb2a=dirname(_0x58abd3);!existsSync(_0x4dbb2a)&&mkdirSync(_0x4dbb2a,{'recursive':!![]}),writeFileSync(_0x58abd3,_0x114070,_0xce79a1(0xfb));}export async function copyRulesToCursor(_0x488a53){const _0x2e79af=a236_0x161a,_0x406d57=join(_0x488a53,_0x2e79af(0xf8)),_0x17a99f=join(_0x406d57,'lovrabet_rules.mdc');if(existsSync(_0x17a99f))return![];return await writeRulesFile(_0x17a99f),!![];}export async function copyRulesToAgentsMd(_0x1ec364){const _0x50e852=a236_0x161a,_0x3650c7=join(_0x1ec364,_0x50e852(0xf2));if(existsSync(_0x3650c7))return![];return await writeRulesFile(_0x3650c7),!![];}
@@ -1 +1 @@
1
- export function sleep(_0xd98191){return new Promise(_0x12cb29=>setTimeout(_0x12cb29,_0xd98191));}
1
+ export function sleep(_0x540474){return new Promise(_0x34c18f=>setTimeout(_0x34c18f,_0x540474));}
@@ -1 +1 @@
1
- const a238_0x41187f=a238_0x26a0;function a238_0x4f20(){const _0x266514=['template','default','success','模板内容替换失败','getMonth','pad','.jsx','replaceApiContent','promises','join','42QpupZF','processTemplate','.js','info','datasetCode:\x20\x22','slice','now','alias','.css','.ts','\x20},','\x0a\x20\x20\x20\x20{\x20','toLowerCase','getFullYear','utf8','replaceContent','name','processDirectory','774hgcVUZ','4dPjFyI','name:\x20\x22','datasetCode','toComponentName','32610aFgmmh','endsWith','charAt','readdir','alias:\x20\x22','.tpl','mkdir','toUpperCase','.md','382314FlIqJB','formatLocalTimestamp','getHours','push','toDisplayTitle','tableName','split','模板内容替换完成','extname','error','2568840hlpNpu','writeFile','688945PFccoM','processFile','message','toISOString','63951aeFfxK','.json','.tsx','map','getDate','tableName:\x20\x22','pop','10493736wUmhXF','LOVRABET','replace','isFile','12FePpih','4931NhSbGV'];a238_0x4f20=function(){return _0x266514;};return a238_0x4f20();}(function(_0x3357dd,_0x362f42){const _0xa10402=a238_0x26a0,_0x3b41fd=_0x3357dd();while(!![]){try{const _0x2d6155=-parseInt(_0xa10402(0x108))/0x1+parseInt(_0xa10402(0x107))/0x2*(-parseInt(_0xa10402(0x143))/0x3)+-parseInt(_0xa10402(0x126))/0x4*(parseInt(_0xa10402(0x13f))/0x5)+parseInt(_0xa10402(0x133))/0x6*(-parseInt(_0xa10402(0x113))/0x7)+-parseInt(_0xa10402(0x13d))/0x8+-parseInt(_0xa10402(0x125))/0x9*(-parseInt(_0xa10402(0x12a))/0xa)+parseInt(_0xa10402(0x14a))/0xb;if(_0x2d6155===_0x362f42)break;else _0x3b41fd['push'](_0x3b41fd['shift']());}catch(_0x1235fb){_0x3b41fd['push'](_0x3b41fd['shift']());}}}(a238_0x4f20,0x3f91d));import a238_0x34807b from'node:fs';import a238_0x2e6a20 from'node:path';import{logger}from'../utils/logger.js';import{getCliVersion}from'../utils/version.js';const CLI_VERSION=getCliVersion();function a238_0x26a0(_0x2f6b96,_0x176981){_0x2f6b96=_0x2f6b96-0x104;const _0x4f20b4=a238_0x4f20();let _0x26a05b=_0x4f20b4[_0x2f6b96];return _0x26a05b;}export class TemplateReplacer{static['pad'](_0x47ac34){return String(_0x47ac34)['padStart'](0x2,'0');}static[a238_0x41187f(0x134)](_0xfee484){const _0x5f31ca=a238_0x41187f,_0x3dd006=_0xfee484[_0x5f31ca(0x120)](),_0x93c2db=this[_0x5f31ca(0x10e)](_0xfee484[_0x5f31ca(0x10d)]()+0x1),_0x13c859=this[_0x5f31ca(0x10e)](_0xfee484[_0x5f31ca(0x147)]()),_0x99d689=this[_0x5f31ca(0x10e)](_0xfee484[_0x5f31ca(0x135)]()),_0x2a1c6b=this[_0x5f31ca(0x10e)](_0xfee484['getMinutes']()),_0x24d0b6=this[_0x5f31ca(0x10e)](_0xfee484['getSeconds']());return{'createdAt':_0x3dd006+'-'+_0x93c2db+'-'+_0x13c859+'\x20'+_0x99d689+':'+_0x2a1c6b+':'+_0x24d0b6,'createdDate':_0x3dd006+'-'+_0x93c2db+'-'+_0x13c859,'createdTime':_0x99d689+':'+_0x2a1c6b+':'+_0x24d0b6};}static[a238_0x41187f(0x129)](_0xf678a9){const _0x44f46d=a238_0x41187f,_0x2de5ac=_0xf678a9[_0x44f46d(0x139)]('/')[_0x44f46d(0x149)]()||_0xf678a9;return _0x2de5ac[_0x44f46d(0x139)]('-')[_0x44f46d(0x146)](_0x588776=>_0x588776[_0x44f46d(0x12c)](0x0)['toUpperCase']()+_0x588776[_0x44f46d(0x118)](0x1)[_0x44f46d(0x11f)]())[_0x44f46d(0x112)]('');}static[a238_0x41187f(0x137)](_0x41e8fe){const _0x2d916e=a238_0x41187f,_0xc7ae20=_0x41e8fe['split']('/')['pop']()||_0x41e8fe;return _0xc7ae20[_0x2d916e(0x139)]('-')[_0x2d916e(0x146)](_0x320ada=>_0x320ada[_0x2d916e(0x12c)](0x0)[_0x2d916e(0x131)]()+_0x320ada[_0x2d916e(0x118)](0x1)['toLowerCase']())[_0x2d916e(0x112)]('\x20');}static['replaceContent'](_0x4808ed,_0x1f7cf6,_0x21b8cd){const _0x3a05c8=a238_0x41187f,_0x2cb975=this['toComponentName'](_0x1f7cf6),_0x409b8d=this[_0x3a05c8(0x137)](_0x1f7cf6),{createdAt:_0x23df0e,createdDate:_0x451fad,createdTime:_0x1f076b}=this[_0x3a05c8(0x134)](new Date());let _0x382bce=_0x4808ed[_0x3a05c8(0x105)](/\{CliVersion\}/g,CLI_VERSION)[_0x3a05c8(0x105)](/\{ComponentName\}/g,_0x2cb975)[_0x3a05c8(0x105)](/\{DisplayTitle\}/g,_0x409b8d)[_0x3a05c8(0x105)](/\{PageName\}/g,_0x1f7cf6)['replace'](/\{TemplateName\}/g,_0x21b8cd)['replace'](/\{CreatedAt\}/g,_0x23df0e)[_0x3a05c8(0x105)](/\{CreatedDate\}/g,_0x451fad)['replace'](/\{CreatedTime\}/g,_0x1f076b);return _0x382bce;}static[a238_0x41187f(0x110)](_0x571e93,_0x22afa6,_0x24d981,_0x32d5ef,_0x8bb2d,_0xe5164,_0x189a9f,_0x423aa7){const _0x55a075=a238_0x41187f,_0x59c54a=new Date(),_0x5c2333=_0x59c54a[_0x55a075(0x142)](),_0x2b1da0=_0x24d981[_0x55a075(0x146)](_0x1daa11=>{const _0x5cb66a=_0x55a075,_0x8de434=[_0x5cb66a(0x117)+_0x1daa11[_0x5cb66a(0x128)]+'\x22',_0x5cb66a(0x148)+_0x1daa11[_0x5cb66a(0x138)]+'\x22',_0x5cb66a(0x127)+_0x1daa11[_0x5cb66a(0x123)]+'\x22'];return _0x1daa11[_0x5cb66a(0x11a)]&&_0x8de434[_0x5cb66a(0x136)](_0x5cb66a(0x12e)+_0x1daa11[_0x5cb66a(0x11a)]+'\x22'),_0x5cb66a(0x11e)+_0x8de434[_0x5cb66a(0x112)](',\x20')+_0x5cb66a(0x11d);})[_0x55a075(0x112)](''),_0x5d9d3e=_0x32d5ef||_0x24d981[0x0]?.[_0x55a075(0x11a)]||'YourModel';let _0x40ee77=_0x571e93[_0x55a075(0x105)](/\{AppCode\}/g,_0x22afa6)[_0x55a075(0x105)](/\{ModelConfigs\}/g,_0x2b1da0)[_0x55a075(0x105)](/\{ExampleModelName\}/g,_0x5d9d3e)[_0x55a075(0x105)](/\{ApiFileName\}/g,_0x8bb2d||'api')[_0x55a075(0x105)](/\{ConfigName\}/g,_0xe5164||_0x55a075(0x10a))['replace'](/\{ClientConfigParam\}/g,_0x189a9f||'')[_0x55a075(0x105)](/\{VarPrefix\}/g,_0x423aa7||_0x55a075(0x104))[_0x55a075(0x105)](/\{CreatedAt\}/g,_0x5c2333);return _0x40ee77;}static async[a238_0x41187f(0x114)](_0x5ca174,_0x3d1554,_0x38c27c,_0xcbcd05,_0x1ba5fb=!![]){const _0x55d54c=a238_0x41187f,_0x48884a=Date[_0x55d54c(0x119)]();try{_0x1ba5fb&&logger[_0x55d54c(0x116)](_0x55d54c(0x109),'开始处理模板内容替换',{'templatePath':_0x5ca174,'targetPath':_0x3d1554,'pageName':_0x38c27c,'templateName':_0xcbcd05});await a238_0x34807b['promises'][_0x55d54c(0x130)](_0x3d1554,{'recursive':!![]}),await this['processDirectory'](_0x5ca174,_0x3d1554,_0x38c27c,_0xcbcd05);if(_0x1ba5fb){const _0x1e1227=Date[_0x55d54c(0x119)]()-_0x48884a;logger[_0x55d54c(0x10b)](_0x55d54c(0x109),_0x55d54c(0x13a),_0x1e1227,{'pageName':_0x38c27c,'templateName':_0xcbcd05});}}catch(_0x2c5eb6){if(_0x1ba5fb){const _0x27e238=Date['now']()-_0x48884a;logger[_0x55d54c(0x13c)](_0x55d54c(0x109),_0x55d54c(0x10c),{'templatePath':_0x5ca174,'targetPath':_0x3d1554,'pageName':_0x38c27c,'templateName':_0xcbcd05,'error':_0x2c5eb6 instanceof Error?_0x2c5eb6[_0x55d54c(0x141)]:String(_0x2c5eb6),'duration':_0x27e238});}throw _0x2c5eb6;}}static async[a238_0x41187f(0x124)](_0x46956a,_0x15adcd,_0x1ea6ed,_0x39bfc7){const _0x43b7c7=a238_0x41187f,_0x59e832=await a238_0x34807b[_0x43b7c7(0x111)][_0x43b7c7(0x12d)](_0x46956a,{'withFileTypes':!![]});for(const _0x11cc0a of _0x59e832){const _0x415f9b=a238_0x2e6a20[_0x43b7c7(0x112)](_0x46956a,_0x11cc0a[_0x43b7c7(0x123)]);let _0x180253=a238_0x2e6a20[_0x43b7c7(0x112)](_0x15adcd,_0x11cc0a[_0x43b7c7(0x123)]);_0x11cc0a['name'][_0x43b7c7(0x12b)](_0x43b7c7(0x12f))&&(_0x180253=a238_0x2e6a20[_0x43b7c7(0x112)](_0x15adcd,_0x11cc0a['name']['replace'](/\.tpl$/,'')));if(_0x11cc0a['isDirectory']())await a238_0x34807b['promises'][_0x43b7c7(0x130)](_0x180253,{'recursive':!![]}),await this[_0x43b7c7(0x124)](_0x415f9b,_0x180253,_0x1ea6ed,_0x39bfc7);else _0x11cc0a[_0x43b7c7(0x106)]()&&await this[_0x43b7c7(0x140)](_0x415f9b,_0x180253,_0x1ea6ed,_0x39bfc7);}}static async['processFile'](_0x3a5c0f,_0x5e6285,_0x1e581f,_0x10df72){const _0x3433c9=a238_0x41187f,_0x497861=a238_0x2e6a20[_0x3433c9(0x13b)](_0x3a5c0f)[_0x3433c9(0x11f)]();_0x3a5c0f[_0x3433c9(0x12b)](_0x3433c9(0x12f))&&(_0x5e6285=_0x5e6285['replace'](/\.tpl$/,''));const _0xcb051e=[_0x3433c9(0x145),_0x3433c9(0x11c),_0x3433c9(0x10f),_0x3433c9(0x115),_0x3433c9(0x144),_0x3433c9(0x132),_0x3433c9(0x11b),'.scss',_0x3433c9(0x12f)];if(_0xcb051e['includes'](_0x497861)||_0x3a5c0f['endsWith'](_0x3433c9(0x12f))){const _0x2e655e=await a238_0x34807b['promises']['readFile'](_0x3a5c0f,'utf8'),_0x64a655=this[_0x3433c9(0x122)](_0x2e655e,_0x1e581f,_0x10df72);await a238_0x34807b[_0x3433c9(0x111)][_0x3433c9(0x13e)](_0x5e6285,_0x64a655,_0x3433c9(0x121));}else await a238_0x34807b[_0x3433c9(0x111)]['copyFile'](_0x3a5c0f,_0x5e6285);}}
1
+ const a238_0x4114f3=a238_0x53a9;(function(_0x306d8c,_0x4ea33a){const _0x178c10=a238_0x53a9,_0x495515=_0x306d8c();while(!![]){try{const _0xc01432=-parseInt(_0x178c10(0x1f3))/0x1+-parseInt(_0x178c10(0x208))/0x2+-parseInt(_0x178c10(0x1f4))/0x3+parseInt(_0x178c10(0x209))/0x4*(-parseInt(_0x178c10(0x1e1))/0x5)+parseInt(_0x178c10(0x1ca))/0x6+-parseInt(_0x178c10(0x1da))/0x7*(-parseInt(_0x178c10(0x1dc))/0x8)+parseInt(_0x178c10(0x1d5))/0x9;if(_0xc01432===_0x4ea33a)break;else _0x495515['push'](_0x495515['shift']());}catch(_0x85a7fc){_0x495515['push'](_0x495515['shift']());}}}(a238_0x3bb9,0x6842b));function a238_0x53a9(_0x375915,_0x59e36f){_0x375915=_0x375915-0x1c7;const _0x3bb981=a238_0x3bb9();let _0x53a975=_0x3bb981[_0x375915];return _0x53a975;}function a238_0x3bb9(){const _0xce44b9=['success','join','LOVRABET','name','pad','2129694kHMwJM','utf8','default','split','tableName:\x20\x22','toISOString','name:\x20\x22','.jsx','template','pop','readFile','8177328GRWrBM','datasetCode','toDisplayTitle','slice','.css','6566zYDLRr','\x0a\x20\x20\x20\x20{\x20','6960uVWmhs','.ts','.tpl','toComponentName','mkdir','5LYNxgm','processTemplate','message','processDirectory','alias','.tsx','tableName','getFullYear','模板内容替换失败','toUpperCase','.scss','.js','isDirectory','replaceContent','includes','isFile','formatLocalTimestamp','alias:\x20\x22','570076NbzCpX','1653318CHiVvN','.json','endsWith','toLowerCase','datasetCode:\x20\x22','writeFile','\x20},','promises','模板内容替换完成','processFile','replace','开始处理模板内容替换','replaceApiContent','push','error','getHours','api','extname','getDate','now','36364JhBPNd','2052744AvNyph','map','charAt'];a238_0x3bb9=function(){return _0xce44b9;};return a238_0x3bb9();}import a238_0x57a2de from'node:fs';import a238_0x8bb55f from'node:path';import{logger}from'../utils/logger.js';import{getCliVersion}from'../utils/version.js';const CLI_VERSION=getCliVersion();export class TemplateReplacer{static[a238_0x4114f3(0x1c9)](_0x3746f8){return String(_0x3746f8)['padStart'](0x2,'0');}static['formatLocalTimestamp'](_0x58c013){const _0xbe69f9=a238_0x4114f3,_0x5bbcf6=_0x58c013[_0xbe69f9(0x1e8)](),_0x3b65ae=this[_0xbe69f9(0x1c9)](_0x58c013['getMonth']()+0x1),_0x5d3236=this[_0xbe69f9(0x1c9)](_0x58c013[_0xbe69f9(0x206)]()),_0x235d07=this[_0xbe69f9(0x1c9)](_0x58c013[_0xbe69f9(0x203)]()),_0x308357=this[_0xbe69f9(0x1c9)](_0x58c013['getMinutes']()),_0x21dfef=this['pad'](_0x58c013['getSeconds']());return{'createdAt':_0x5bbcf6+'-'+_0x3b65ae+'-'+_0x5d3236+'\x20'+_0x235d07+':'+_0x308357+':'+_0x21dfef,'createdDate':_0x5bbcf6+'-'+_0x3b65ae+'-'+_0x5d3236,'createdTime':_0x235d07+':'+_0x308357+':'+_0x21dfef};}static[a238_0x4114f3(0x1df)](_0x5eaaf5){const _0x23817b=a238_0x4114f3,_0x4685bd=_0x5eaaf5[_0x23817b(0x1cd)]('/')[_0x23817b(0x1d3)]()||_0x5eaaf5;return _0x4685bd[_0x23817b(0x1cd)]('-')[_0x23817b(0x20a)](_0x53c9b3=>_0x53c9b3[_0x23817b(0x20b)](0x0)[_0x23817b(0x1ea)]()+_0x53c9b3[_0x23817b(0x1d8)](0x1)[_0x23817b(0x1f7)]())[_0x23817b(0x20d)]('');}static[a238_0x4114f3(0x1d7)](_0x2bd843){const _0x3a234d=a238_0x4114f3,_0x2a335a=_0x2bd843['split']('/')[_0x3a234d(0x1d3)]()||_0x2bd843;return _0x2a335a[_0x3a234d(0x1cd)]('-')[_0x3a234d(0x20a)](_0x492e6c=>_0x492e6c[_0x3a234d(0x20b)](0x0)['toUpperCase']()+_0x492e6c[_0x3a234d(0x1d8)](0x1)['toLowerCase']())['join']('\x20');}static[a238_0x4114f3(0x1ee)](_0x1da7cd,_0x2e80e8,_0x49d5c3){const _0x42791c=a238_0x4114f3,_0x506ad8=this[_0x42791c(0x1df)](_0x2e80e8),_0x3ce4a1=this['toDisplayTitle'](_0x2e80e8),{createdAt:_0x5ecdbf,createdDate:_0x3942f3,createdTime:_0x37b056}=this[_0x42791c(0x1f1)](new Date());let _0x230955=_0x1da7cd[_0x42791c(0x1fe)](/\{CliVersion\}/g,CLI_VERSION)[_0x42791c(0x1fe)](/\{ComponentName\}/g,_0x506ad8)[_0x42791c(0x1fe)](/\{DisplayTitle\}/g,_0x3ce4a1)[_0x42791c(0x1fe)](/\{PageName\}/g,_0x2e80e8)['replace'](/\{TemplateName\}/g,_0x49d5c3)['replace'](/\{CreatedAt\}/g,_0x5ecdbf)[_0x42791c(0x1fe)](/\{CreatedDate\}/g,_0x3942f3)[_0x42791c(0x1fe)](/\{CreatedTime\}/g,_0x37b056);return _0x230955;}static[a238_0x4114f3(0x200)](_0x4aa27f,_0x3fc34b,_0x17c7b2,_0x3f05f0,_0x520d50,_0x466107,_0x312f4e,_0x105e7c){const _0x836a9=a238_0x4114f3,_0x5472be=new Date(),_0x38c22a=_0x5472be[_0x836a9(0x1cf)](),_0x56dcbb=_0x17c7b2[_0x836a9(0x20a)](_0x531b38=>{const _0xa3d4f6=_0x836a9,_0x5f0e7b=[_0xa3d4f6(0x1f8)+_0x531b38[_0xa3d4f6(0x1d6)]+'\x22',_0xa3d4f6(0x1ce)+_0x531b38[_0xa3d4f6(0x1e7)]+'\x22',_0xa3d4f6(0x1d0)+_0x531b38[_0xa3d4f6(0x1c8)]+'\x22'];return _0x531b38[_0xa3d4f6(0x1e5)]&&_0x5f0e7b[_0xa3d4f6(0x201)](_0xa3d4f6(0x1f2)+_0x531b38[_0xa3d4f6(0x1e5)]+'\x22'),_0xa3d4f6(0x1db)+_0x5f0e7b[_0xa3d4f6(0x20d)](',\x20')+_0xa3d4f6(0x1fa);})[_0x836a9(0x20d)](''),_0x5d2b2f=_0x3f05f0||_0x17c7b2[0x0]?.['alias']||'YourModel';let _0x48ed75=_0x4aa27f['replace'](/\{AppCode\}/g,_0x3fc34b)[_0x836a9(0x1fe)](/\{ModelConfigs\}/g,_0x56dcbb)[_0x836a9(0x1fe)](/\{ExampleModelName\}/g,_0x5d2b2f)[_0x836a9(0x1fe)](/\{ApiFileName\}/g,_0x520d50||_0x836a9(0x204))[_0x836a9(0x1fe)](/\{ConfigName\}/g,_0x466107||_0x836a9(0x1cc))[_0x836a9(0x1fe)](/\{ClientConfigParam\}/g,_0x312f4e||'')[_0x836a9(0x1fe)](/\{VarPrefix\}/g,_0x105e7c||_0x836a9(0x1c7))[_0x836a9(0x1fe)](/\{CreatedAt\}/g,_0x38c22a);return _0x48ed75;}static async[a238_0x4114f3(0x1e2)](_0x2e6051,_0x29882f,_0x40585b,_0x33f1a7,_0x203ee1=!![]){const _0x45a978=a238_0x4114f3,_0x3c001b=Date[_0x45a978(0x207)]();try{_0x203ee1&&logger['info']('template',_0x45a978(0x1ff),{'templatePath':_0x2e6051,'targetPath':_0x29882f,'pageName':_0x40585b,'templateName':_0x33f1a7});await a238_0x57a2de[_0x45a978(0x1fb)][_0x45a978(0x1e0)](_0x29882f,{'recursive':!![]}),await this[_0x45a978(0x1e4)](_0x2e6051,_0x29882f,_0x40585b,_0x33f1a7);if(_0x203ee1){const _0x4d12bd=Date[_0x45a978(0x207)]()-_0x3c001b;logger[_0x45a978(0x20c)](_0x45a978(0x1d2),_0x45a978(0x1fc),_0x4d12bd,{'pageName':_0x40585b,'templateName':_0x33f1a7});}}catch(_0x403ebd){if(_0x203ee1){const _0x1c7dee=Date[_0x45a978(0x207)]()-_0x3c001b;logger[_0x45a978(0x202)](_0x45a978(0x1d2),_0x45a978(0x1e9),{'templatePath':_0x2e6051,'targetPath':_0x29882f,'pageName':_0x40585b,'templateName':_0x33f1a7,'error':_0x403ebd instanceof Error?_0x403ebd[_0x45a978(0x1e3)]:String(_0x403ebd),'duration':_0x1c7dee});}throw _0x403ebd;}}static async[a238_0x4114f3(0x1e4)](_0x37b839,_0x545432,_0x346f40,_0x548519){const _0x4cf5b7=a238_0x4114f3,_0x22d66a=await a238_0x57a2de[_0x4cf5b7(0x1fb)]['readdir'](_0x37b839,{'withFileTypes':!![]});for(const _0x361fd8 of _0x22d66a){const _0x1b0715=a238_0x8bb55f[_0x4cf5b7(0x20d)](_0x37b839,_0x361fd8[_0x4cf5b7(0x1c8)]);let _0x4c9299=a238_0x8bb55f[_0x4cf5b7(0x20d)](_0x545432,_0x361fd8[_0x4cf5b7(0x1c8)]);_0x361fd8[_0x4cf5b7(0x1c8)][_0x4cf5b7(0x1f6)](_0x4cf5b7(0x1de))&&(_0x4c9299=a238_0x8bb55f[_0x4cf5b7(0x20d)](_0x545432,_0x361fd8[_0x4cf5b7(0x1c8)][_0x4cf5b7(0x1fe)](/\.tpl$/,'')));if(_0x361fd8[_0x4cf5b7(0x1ed)]())await a238_0x57a2de[_0x4cf5b7(0x1fb)][_0x4cf5b7(0x1e0)](_0x4c9299,{'recursive':!![]}),await this[_0x4cf5b7(0x1e4)](_0x1b0715,_0x4c9299,_0x346f40,_0x548519);else _0x361fd8[_0x4cf5b7(0x1f0)]()&&await this[_0x4cf5b7(0x1fd)](_0x1b0715,_0x4c9299,_0x346f40,_0x548519);}}static async[a238_0x4114f3(0x1fd)](_0x49824b,_0x3dc032,_0x54702d,_0x2e5d10){const _0x17ca00=a238_0x4114f3,_0x3ed91a=a238_0x8bb55f[_0x17ca00(0x205)](_0x49824b)[_0x17ca00(0x1f7)]();_0x49824b[_0x17ca00(0x1f6)](_0x17ca00(0x1de))&&(_0x3dc032=_0x3dc032[_0x17ca00(0x1fe)](/\.tpl$/,''));const _0xab8db6=[_0x17ca00(0x1e6),_0x17ca00(0x1dd),_0x17ca00(0x1d1),_0x17ca00(0x1ec),_0x17ca00(0x1f5),'.md',_0x17ca00(0x1d9),_0x17ca00(0x1eb),_0x17ca00(0x1de)];if(_0xab8db6[_0x17ca00(0x1ef)](_0x3ed91a)||_0x49824b['endsWith']('.tpl')){const _0x540327=await a238_0x57a2de[_0x17ca00(0x1fb)][_0x17ca00(0x1d4)](_0x49824b,_0x17ca00(0x1cb)),_0x36181e=this[_0x17ca00(0x1ee)](_0x540327,_0x54702d,_0x2e5d10);await a238_0x57a2de[_0x17ca00(0x1fb)][_0x17ca00(0x1f9)](_0x3dc032,_0x36181e,_0x17ca00(0x1cb));}else await a238_0x57a2de[_0x17ca00(0x1fb)]['copyFile'](_0x49824b,_0x3dc032);}}
@@ -1 +1 @@
1
- (function(_0x3017cc,_0x409942){const _0x204223=a239_0x52fd,_0x39e283=_0x3017cc();while(!![]){try{const _0x312ad7=parseInt(_0x204223(0x193))/0x1*(parseInt(_0x204223(0x188))/0x2)+parseInt(_0x204223(0x18c))/0x3+-parseInt(_0x204223(0x19f))/0x4*(-parseInt(_0x204223(0x197))/0x5)+-parseInt(_0x204223(0x18f))/0x6+parseInt(_0x204223(0x18e))/0x7*(-parseInt(_0x204223(0x185))/0x8)+-parseInt(_0x204223(0x19a))/0x9+-parseInt(_0x204223(0x18b))/0xa*(parseInt(_0x204223(0x196))/0xb);if(_0x312ad7===_0x409942)break;else _0x39e283['push'](_0x39e283['shift']());}catch(_0x42030d){_0x39e283['push'](_0x39e283['shift']());}}}(a239_0x39c8,0x764dd));import{mkdir,readFile,writeFile}from'node:fs/promises';import{homedir}from'node:os';import{dirname,join}from'node:path';import a239_0x3a3469 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 _0x1b1a3d=a239_0x52fd,_0x3b72bd=process.env.RABETBASE_NO_UPDATE_NOTICE?.[_0x1b1a3d(0x195)]()[_0x1b1a3d(0x198)]();return _0x3b72bd==='1'||_0x3b72bd===_0x1b1a3d(0x18a)||_0x3b72bd===_0x1b1a3d(0x1a5);}function cacheRoot(){const _0xb8ebee=a239_0x52fd;return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),_0xb8ebee(0x19c));}export function getUpdateNoticeCachePath(){const _0x43c540=a239_0x52fd;return join(cacheRoot(),_0x43c540(0x19d),_0x43c540(0x186));}async function readUpdateNoticeCache(){const _0x170068=a239_0x52fd;try{const _0x5e535d=await readFile(getUpdateNoticeCachePath(),'utf8'),_0x245132=JSON[_0x170068(0x1a2)](_0x5e535d);if(!_0x245132||typeof _0x245132!==_0x170068(0x19b))return{};return _0x245132;}catch{return{};}}async function writeUpdateNoticeCache(_0x48c733){const _0x5db824=a239_0x52fd;try{const _0x5a1b4c=getUpdateNoticeCachePath();await mkdir(dirname(_0x5a1b4c),{'recursive':!![]}),await writeFile(_0x5a1b4c,JSON['stringify'](_0x48c733,null,0x2)+'\x0a',_0x5db824(0x1a3));}catch{}}function a239_0x39c8(){const _0x34330a=['255dAaeav','toLowerCase','valid','390177ItmWuD','object','.cache','rabetbase-cli','stableVersion','15020rECzFe','gte','checkedAt','parse','utf8','\x20update','yes','\x20available,\x20current\x20','85856EIIVzu','update-check.json','lastNotifiedAt','936kKQMen','https://www.npmjs.com/package/','true','40BwVDTL','1627698mwGbfR',',\x20run:\x20','287dnamJA','2578158znaFEk','now','number','/v/','1801smHDDV','lastNotifiedVersion','trim','493097NbdpDS'];a239_0x39c8=function(){return _0x34330a;};return a239_0x39c8();}function isFreshCheck(_0x2faad2,_0x85872b){const _0x624ffb=a239_0x52fd;return typeof _0x2faad2[_0x624ffb(0x1a1)]===_0x624ffb(0x191)&&_0x85872b-_0x2faad2[_0x624ffb(0x1a1)]<UPDATE_CHECK_TTL_MS;}function a239_0x52fd(_0x3dbe94,_0x15a40a){_0x3dbe94=_0x3dbe94-0x185;const _0x39c891=a239_0x39c8();let _0x52fd70=_0x39c891[_0x3dbe94];return _0x52fd70;}function isRecentlyNotified(_0x1a8f86,_0x32291b,_0x43126c){const _0x55055b=a239_0x52fd;return _0x1a8f86[_0x55055b(0x194)]===_0x32291b&&typeof _0x1a8f86[_0x55055b(0x187)]===_0x55055b(0x191)&&_0x43126c-_0x1a8f86[_0x55055b(0x187)]<UPDATE_NOTICE_TTL_MS;}export function buildNpmVersionUrl(_0x31903d){const _0xc99a=a239_0x52fd;return _0xc99a(0x189)+NPM_PACKAGE_NAME+_0xc99a(0x192)+_0x31903d;}export async function resolveLatestUpdateNotice(){const _0xdab9ce=a239_0x52fd;if(isUpdateNoticeDisabled())return null;try{const _0x5cc337=Date[_0xdab9ce(0x190)](),_0x56a1eb=getCliVersion(),_0xc97e43=await readUpdateNoticeCache();let _0xd73b78=isFreshCheck(_0xc97e43,_0x5cc337)?_0xc97e43['latest']?.[_0xdab9ce(0x195)]():undefined;if(!_0xd73b78&&!isFreshCheck(_0xc97e43,_0x5cc337)){const _0x5c590d=await getCliVersionPolicy();_0xd73b78=_0x5c590d?.[_0xdab9ce(0x19e)]?.[_0xdab9ce(0x195)]()||undefined,await writeUpdateNoticeCache({..._0xc97e43,'checkedAt':_0x5cc337,'latest':_0xd73b78,'failed':!_0xd73b78});}if(!_0xd73b78||!a239_0x3a3469[_0xdab9ce(0x199)](_0x56a1eb)||!a239_0x3a3469[_0xdab9ce(0x199)](_0xd73b78))return null;if(a239_0x3a3469[_0xdab9ce(0x1a0)](_0x56a1eb,_0xd73b78))return null;if(isRecentlyNotified(_0xc97e43,_0xd73b78,_0x5cc337))return null;const _0x48c8ed=CLI_BIN_NAME+_0xdab9ce(0x1a4);return await writeUpdateNoticeCache({..._0xc97e43,'checkedAt':isFreshCheck(_0xc97e43,_0x5cc337)?_0xc97e43[_0xdab9ce(0x1a1)]:_0x5cc337,'latest':_0xd73b78,'failed':![],'lastNotifiedVersion':_0xd73b78,'lastNotifiedAt':_0x5cc337}),{'command':_0x48c8ed,'current':_0x56a1eb,'latest':_0xd73b78,'url':buildNpmVersionUrl(_0xd73b78),'message':CLI_BIN_NAME+'\x20'+_0xd73b78+_0xdab9ce(0x1a6)+_0x56a1eb+_0xdab9ce(0x18d)+_0x48c8ed};}catch{return null;}}
1
+ (function(_0x648f3c,_0x283b28){const _0xb80452=a239_0x3e4e,_0x336ef3=_0x648f3c();while(!![]){try{const _0x32ee2a=parseInt(_0xb80452(0xf2))/0x1*(parseInt(_0xb80452(0xea))/0x2)+parseInt(_0xb80452(0xdf))/0x3*(-parseInt(_0xb80452(0xf4))/0x4)+parseInt(_0xb80452(0xfa))/0x5+-parseInt(_0xb80452(0xe3))/0x6+-parseInt(_0xb80452(0xee))/0x7*(-parseInt(_0xb80452(0xf3))/0x8)+-parseInt(_0xb80452(0xe0))/0x9*(-parseInt(_0xb80452(0xe1))/0xa)+-parseInt(_0xb80452(0xf1))/0xb;if(_0x32ee2a===_0x283b28)break;else _0x336ef3['push'](_0x336ef3['shift']());}catch(_0x2ee02c){_0x336ef3['push'](_0x336ef3['shift']());}}}(a239_0x77aa,0x5ead4));import{mkdir,readFile,writeFile}from'node:fs/promises';import{homedir}from'node:os';import{dirname,join}from'node:path';function a239_0x77aa(){const _0x2b47f9=['2773440KosiXV','toLowerCase','.cache','true','/v/','checkedAt','trim','72TzYIon','object','valid','\x20update','5097407CuKteM','utf8',',\x20run:\x20','2601610BoDdAB','3919InQSdA','8nJMTKB','4dNfjCP','parse','now','\x20available,\x20current\x20','https://www.npmjs.com/package/','gte','2341985cXhfga','lastNotifiedVersion','yes','stableVersion','lastNotifiedAt','number','2068533JdSPcs','4725SGRkfM','8350eYmxzf','rabetbase-cli'];a239_0x77aa=function(){return _0x2b47f9;};return a239_0x77aa();}import a239_0x4f8bca 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 _0x3119d9=a239_0x3e4e,_0x7c45ad=process.env.RABETBASE_NO_UPDATE_NOTICE?.[_0x3119d9(0xe9)]()[_0x3119d9(0xe4)]();return _0x7c45ad==='1'||_0x7c45ad===_0x3119d9(0xe6)||_0x7c45ad===_0x3119d9(0xfc);}function cacheRoot(){const _0xd8bc1c=a239_0x3e4e;return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),_0xd8bc1c(0xe5));}export function getUpdateNoticeCachePath(){const _0x3f9fa8=a239_0x3e4e;return join(cacheRoot(),_0x3f9fa8(0xe2),'update-check.json');}async function readUpdateNoticeCache(){const _0xad5e2e=a239_0x3e4e;try{const _0x366804=await readFile(getUpdateNoticeCachePath(),_0xad5e2e(0xef)),_0xbe122e=JSON[_0xad5e2e(0xf5)](_0x366804);if(!_0xbe122e||typeof _0xbe122e!==_0xad5e2e(0xeb))return{};return _0xbe122e;}catch{return{};}}async function writeUpdateNoticeCache(_0x33f99a){try{const _0x570c8e=getUpdateNoticeCachePath();await mkdir(dirname(_0x570c8e),{'recursive':!![]}),await writeFile(_0x570c8e,JSON['stringify'](_0x33f99a,null,0x2)+'\x0a','utf8');}catch{}}function a239_0x3e4e(_0x5934d3,_0x52c61f){_0x5934d3=_0x5934d3-0xde;const _0x77aabf=a239_0x77aa();let _0x3e4e90=_0x77aabf[_0x5934d3];return _0x3e4e90;}function isFreshCheck(_0xe4ab38,_0x536526){const _0xc3e160=a239_0x3e4e;return typeof _0xe4ab38[_0xc3e160(0xe8)]==='number'&&_0x536526-_0xe4ab38['checkedAt']<UPDATE_CHECK_TTL_MS;}function isRecentlyNotified(_0x3c8015,_0x37f14a,_0x815f8){const _0x488e90=a239_0x3e4e;return _0x3c8015[_0x488e90(0xfb)]===_0x37f14a&&typeof _0x3c8015['lastNotifiedAt']===_0x488e90(0xde)&&_0x815f8-_0x3c8015[_0x488e90(0xfe)]<UPDATE_NOTICE_TTL_MS;}export function buildNpmVersionUrl(_0x5b1abf){const _0x590aa6=a239_0x3e4e;return _0x590aa6(0xf8)+NPM_PACKAGE_NAME+_0x590aa6(0xe7)+_0x5b1abf;}export async function resolveLatestUpdateNotice(){const _0x34015a=a239_0x3e4e;if(isUpdateNoticeDisabled())return null;try{const _0x1dc35e=Date[_0x34015a(0xf6)](),_0x5a81bf=getCliVersion(),_0x3be6aa=await readUpdateNoticeCache();let _0x282144=isFreshCheck(_0x3be6aa,_0x1dc35e)?_0x3be6aa['latest']?.[_0x34015a(0xe9)]():undefined;if(!_0x282144&&!isFreshCheck(_0x3be6aa,_0x1dc35e)){const _0x5d1b59=await getCliVersionPolicy();_0x282144=_0x5d1b59?.[_0x34015a(0xfd)]?.[_0x34015a(0xe9)]()||undefined,await writeUpdateNoticeCache({..._0x3be6aa,'checkedAt':_0x1dc35e,'latest':_0x282144,'failed':!_0x282144});}if(!_0x282144||!a239_0x4f8bca[_0x34015a(0xec)](_0x5a81bf)||!a239_0x4f8bca[_0x34015a(0xec)](_0x282144))return null;if(a239_0x4f8bca[_0x34015a(0xf9)](_0x5a81bf,_0x282144))return null;if(isRecentlyNotified(_0x3be6aa,_0x282144,_0x1dc35e))return null;const _0x5089dc=CLI_BIN_NAME+_0x34015a(0xed);return await writeUpdateNoticeCache({..._0x3be6aa,'checkedAt':isFreshCheck(_0x3be6aa,_0x1dc35e)?_0x3be6aa[_0x34015a(0xe8)]:_0x1dc35e,'latest':_0x282144,'failed':![],'lastNotifiedVersion':_0x282144,'lastNotifiedAt':_0x1dc35e}),{'command':_0x5089dc,'current':_0x5a81bf,'latest':_0x282144,'url':buildNpmVersionUrl(_0x282144),'message':CLI_BIN_NAME+'\x20'+_0x282144+_0x34015a(0xf7)+_0x5a81bf+_0x34015a(0xf0)+_0x5089dc};}catch{return null;}}
@@ -1 +1 @@
1
- (function(_0x49889a,_0x5ee2fa){var _0x4dcc50=a240_0x294b,_0x1d6214=_0x49889a();while(!![]){try{var _0x589b31=parseInt(_0x4dcc50(0x1c7))/0x1*(parseInt(_0x4dcc50(0x1c4))/0x2)+parseInt(_0x4dcc50(0x1c3))/0x3*(-parseInt(_0x4dcc50(0x1cd))/0x4)+parseInt(_0x4dcc50(0x1c9))/0x5*(parseInt(_0x4dcc50(0x1c8))/0x6)+-parseInt(_0x4dcc50(0x1c5))/0x7+parseInt(_0x4dcc50(0x1c6))/0x8*(parseInt(_0x4dcc50(0x1cc))/0x9)+parseInt(_0x4dcc50(0x1c2))/0xa*(-parseInt(_0x4dcc50(0x1ca))/0xb)+-parseInt(_0x4dcc50(0x1cb))/0xc;if(_0x589b31===_0x5ee2fa)break;else _0x1d6214['push'](_0x1d6214['shift']());}catch(_0x2d254b){_0x1d6214['push'](_0x1d6214['shift']());}}}(a240_0x17f8,0x5f6d6));import{VERSION}from'../generated/build-info.js';function a240_0x17f8(){var _0x5d081a=['150741qNvSZe','16bpVLQG','321160tEBypf','61323tHptPR','2IVyXwf','4488253MnBRDK','56xBZsql','726889oomIeC','30qlWwJb','659105xZaNxL','66zUlufa','2360736KOSlUN'];a240_0x17f8=function(){return _0x5d081a;};return a240_0x17f8();}function a240_0x294b(_0x1503ec,_0x4268ae){_0x1503ec=_0x1503ec-0x1c2;var _0x17f8b3=a240_0x17f8();var _0x294bd3=_0x17f8b3[_0x1503ec];return _0x294bd3;}export function getCliVersion(){return VERSION;}
1
+ (function(_0x176ad7,_0x267771){var _0xbf9ab4=a240_0x591f,_0x2d8a59=_0x176ad7();while(!![]){try{var _0x597a70=-parseInt(_0xbf9ab4(0x167))/0x1*(-parseInt(_0xbf9ab4(0x164))/0x2)+-parseInt(_0xbf9ab4(0x16b))/0x3*(-parseInt(_0xbf9ab4(0x169))/0x4)+parseInt(_0xbf9ab4(0x16c))/0x5*(parseInt(_0xbf9ab4(0x16a))/0x6)+-parseInt(_0xbf9ab4(0x165))/0x7*(parseInt(_0xbf9ab4(0x168))/0x8)+parseInt(_0xbf9ab4(0x166))/0x9+-parseInt(_0xbf9ab4(0x162))/0xa+-parseInt(_0xbf9ab4(0x163))/0xb;if(_0x597a70===_0x267771)break;else _0x2d8a59['push'](_0x2d8a59['shift']());}catch(_0x5e45ea){_0x2d8a59['push'](_0x2d8a59['shift']());}}}(a240_0x385e,0x3c25e));function a240_0x591f(_0x336d71,_0x2d6fd2){_0x336d71=_0x336d71-0x162;var _0x385e04=a240_0x385e();var _0x591f62=_0x385e04[_0x336d71];return _0x591f62;}import{VERSION}from'../generated/build-info.js';export function getCliVersion(){return VERSION;}function a240_0x385e(){var _0x456f85=['14zZDJBK','16121eHdStR','416817surUIv','57482vqFYxP','232tuiFEd','1299408KXZbbc','6228WVeCXL','3bcpPPc','445SFRhux','4780580vXtsUT','821810eoheeZ'];a240_0x385e=function(){return _0x456f85;};return a240_0x385e();}
@@ -1 +1 @@
1
- function a241_0x438f(_0x2d8c54,_0x5602d8){_0x2d8c54=_0x2d8c54-0x10e;var _0x11f291=a241_0x11f2();var _0x438fa6=_0x11f291[_0x2d8c54];return _0x438fa6;}function a241_0x11f2(){var _0x4e445c=['178353vQFIqy','80yQWrfz','627273bbemQu','72kSkfJB','330434tsNKXp','11903199eluGTn','154884XDCwJP','4tduFwX','12dYEFFy','201069gYcToY','596380DpkWAZ'];a241_0x11f2=function(){return _0x4e445c;};return a241_0x11f2();}(function(_0x53115d,_0x2dc6a4){var _0x1243a5=a241_0x438f,_0x3d8a2c=_0x53115d();while(!![]){try{var _0x5c44ef=parseInt(_0x1243a5(0x117))/0x1+parseInt(_0x1243a5(0x10e))/0x2+parseInt(_0x1243a5(0x115))/0x3*(parseInt(_0x1243a5(0x10f))/0x4)+-parseInt(_0x1243a5(0x112))/0x5*(-parseInt(_0x1243a5(0x110))/0x6)+-parseInt(_0x1243a5(0x113))/0x7*(-parseInt(_0x1243a5(0x116))/0x8)+-parseInt(_0x1243a5(0x111))/0x9*(-parseInt(_0x1243a5(0x114))/0xa)+-parseInt(_0x1243a5(0x118))/0xb;if(_0x5c44ef===_0x2dc6a4)break;else _0x3d8a2c['push'](_0x3d8a2c['shift']());}catch(_0x5637d1){_0x3d8a2c['push'](_0x3d8a2c['shift']());}}}(a241_0x11f2,0x2c4c9));import{setActiveCookie,clearActiveCookie}from'../core/api-client.js';export async function withActiveCookie(_0x3a65f2,_0x3d8b83){setActiveCookie(_0x3a65f2);try{return await _0x3d8b83();}finally{clearActiveCookie();}}
1
+ function a241_0x100b(_0x245462,_0xb572dc){_0x245462=_0x245462-0x6a;var _0x4495bb=a241_0x4495();var _0x100bcb=_0x4495bb[_0x245462];return _0x100bcb;}function a241_0x4495(){var _0x3b3f1a=['136vdfHNu','21326976hXjdDY','872242GkdQmB','364511DEyblF','4413008TynfyV','308802yIijKv','3490752EsOfkd','242347ziQgDx','5PmDzdZ'];a241_0x4495=function(){return _0x3b3f1a;};return a241_0x4495();}(function(_0x23b5f7,_0x207686){var _0x52baae=a241_0x100b,_0x5b32e9=_0x23b5f7();while(!![]){try{var _0x2e75dd=-parseInt(_0x52baae(0x6a))/0x1+-parseInt(_0x52baae(0x72))/0x2+parseInt(_0x52baae(0x6c))/0x3+parseInt(_0x52baae(0x6b))/0x4*(-parseInt(_0x52baae(0x6f))/0x5)+-parseInt(_0x52baae(0x6d))/0x6+-parseInt(_0x52baae(0x6e))/0x7*(-parseInt(_0x52baae(0x70))/0x8)+parseInt(_0x52baae(0x71))/0x9;if(_0x2e75dd===_0x207686)break;else _0x5b32e9['push'](_0x5b32e9['shift']());}catch(_0x4374fa){_0x5b32e9['push'](_0x5b32e9['shift']());}}}(a241_0x4495,0x8c7f7));import{setActiveCookie,clearActiveCookie}from'../core/api-client.js';export async function withActiveCookie(_0x5b09e5,_0x30dfc9){setActiveCookie(_0x5b09e5);try{return await _0x30dfc9();}finally{clearActiveCookie();}}
@@ -1 +1 @@
1
- function a242_0x464c(_0x2822e2,_0x24e410){_0x2822e2=_0x2822e2-0xf7;var _0x5e7942=a242_0x5e79();var _0x464c86=_0x5e7942[_0x2822e2];return _0x464c86;}function a242_0x5e79(){var _0x3bbbe1=['524WGhkiK','1355XaFvIc','1JmzHyp','433539LsacDH','2274nAzpXH','write','3018baTRVU','2452760zhHqvH','161304QHeibZ','48EMSavI','32972XoCOCG','1551942ZZdbKz'];a242_0x5e79=function(){return _0x3bbbe1;};return a242_0x5e79();}(function(_0x2d148e,_0x282c1c){var _0x502b41=a242_0x464c,_0x223327=_0x2d148e();while(!![]){try{var _0x79d1ea=parseInt(_0x502b41(0x101))/0x1*(-parseInt(_0x502b41(0xfd))/0x2)+parseInt(_0x502b41(0xf9))/0x3*(-parseInt(_0x502b41(0xff))/0x4)+parseInt(_0x502b41(0x100))/0x5*(parseInt(_0x502b41(0xf7))/0x6)+parseInt(_0x502b41(0xfe))/0x7+parseInt(_0x502b41(0xfc))/0x8*(-parseInt(_0x502b41(0x102))/0x9)+parseInt(_0x502b41(0xfa))/0xa+parseInt(_0x502b41(0xfb))/0xb;if(_0x79d1ea===_0x282c1c)break;else _0x223327['push'](_0x223327['shift']());}catch(_0x376d3c){_0x223327['push'](_0x223327['shift']());}}}(a242_0x5e79,0x23e71));export function writeCliSideChannelLine(_0x71ad65){var _0x50ce04=a242_0x464c;process['stderr'][_0x50ce04(0xf8)](_0x71ad65+'\x0a');}
1
+ (function(_0x12d6d5,_0x15a776){var _0x16d824=a242_0xdd38,_0xfc06d0=_0x12d6d5();while(!![]){try{var _0x1f05e0=-parseInt(_0x16d824(0xe4))/0x1+parseInt(_0x16d824(0xe5))/0x2+parseInt(_0x16d824(0xee))/0x3*(parseInt(_0x16d824(0xec))/0x4)+parseInt(_0x16d824(0xf0))/0x5*(parseInt(_0x16d824(0xe9))/0x6)+parseInt(_0x16d824(0xe7))/0x7+-parseInt(_0x16d824(0xea))/0x8*(parseInt(_0x16d824(0xed))/0x9)+parseInt(_0x16d824(0xef))/0xa*(-parseInt(_0x16d824(0xe6))/0xb);if(_0x1f05e0===_0x15a776)break;else _0xfc06d0['push'](_0xfc06d0['shift']());}catch(_0x5e2b28){_0xfc06d0['push'](_0xfc06d0['shift']());}}}(a242_0x37c2,0x1c4a0));function a242_0x37c2(){var _0x34364e=['90qoPKui','70wXmnpU','75fEJTnQ','51490kjiIxz','428554NoVJmS','578391KsXBLH','127428gyDBnZ','write','66558cDVpHd','8jjEyOJ','stderr','24720XVUdyf','439623tUTgJH'];a242_0x37c2=function(){return _0x34364e;};return a242_0x37c2();}function a242_0xdd38(_0x15ffd2,_0x5445f0){_0x15ffd2=_0x15ffd2-0xe4;var _0x37c28e=a242_0x37c2();var _0xdd38f6=_0x37c28e[_0x15ffd2];return _0xdd38f6;}export function writeCliSideChannelLine(_0x2bd512){var _0x207b07=a242_0xdd38;process[_0x207b07(0xeb)][_0x207b07(0xe8)](_0x2bd512+'\x0a');}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lovrabet/rabetbase-cli",
3
- "version": "2.3.4-beta.4",
3
+ "version": "2.3.5-beta.1",
4
4
  "description": "Developer CLI for Lovrabet apps, datasets, pages, SQL, BFF, database connections, skills, and AI agent workflows.",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "keywords": [