@lovrabet/rabetbase-cli 2.3.9-beta.2 → 2.3.9

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 (258) 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 -0
  48. package/lib/commands/common/dry-run.js +1 -1
  49. package/lib/commands/common/flags.js +1 -1
  50. package/lib/commands/common/local-file.js +1 -1
  51. package/lib/commands/common/validate.js +1 -1
  52. package/lib/commands/config/get.js +1 -1
  53. package/lib/commands/config/index.js +1 -1
  54. package/lib/commands/config/list.js +1 -1
  55. package/lib/commands/config/set.js +1 -1
  56. package/lib/commands/config/shared.js +1 -1
  57. package/lib/commands/data/filter.js +1 -1
  58. package/lib/commands/data/getOne.js +1 -1
  59. package/lib/commands/data/index.js +1 -1
  60. package/lib/commands/data/shared.js +1 -1
  61. package/lib/commands/dataset/business-group-update.js +1 -1
  62. package/lib/commands/dataset/capability.js +1 -1
  63. package/lib/commands/dataset/delete.js +1 -1
  64. package/lib/commands/dataset/detail.js +1 -1
  65. package/lib/commands/dataset/extend-update.js +1 -1
  66. package/lib/commands/dataset/field-update.js +1 -1
  67. package/lib/commands/dataset/generate.js +1 -1
  68. package/lib/commands/dataset/index.js +1 -1
  69. package/lib/commands/dataset/list.js +1 -1
  70. package/lib/commands/dataset/operations.js +1 -1
  71. package/lib/commands/dataset/relation-audit.js +1 -1
  72. package/lib/commands/dataset/relation-create.js +1 -1
  73. package/lib/commands/dataset/relation-delete.js +1 -1
  74. package/lib/commands/dataset/relation-shared.js +1 -1
  75. package/lib/commands/dataset/relation-update.js +1 -1
  76. package/lib/commands/dataset/relations.js +1 -1
  77. package/lib/commands/dataset/rename.js +1 -1
  78. package/lib/commands/dataset/restore.js +1 -1
  79. package/lib/commands/db/analysis-batching.js +1 -1
  80. package/lib/commands/db/analyze-batch-plan.js +1 -1
  81. package/lib/commands/db/analyze-cancel.js +1 -1
  82. package/lib/commands/db/analyze-start.js +1 -1
  83. package/lib/commands/db/analyze-status.js +1 -1
  84. package/lib/commands/db/create.js +1 -1
  85. package/lib/commands/db/delete.js +1 -1
  86. package/lib/commands/db/detail.js +1 -1
  87. package/lib/commands/db/diff.js +1 -1
  88. package/lib/commands/db/index.js +1 -1
  89. package/lib/commands/db/list.js +1 -1
  90. package/lib/commands/db/shared.js +1 -1
  91. package/lib/commands/db/tables.js +1 -1
  92. package/lib/commands/db/test.js +1 -1
  93. package/lib/commands/db/update.js +1 -1
  94. package/lib/commands/doctor.js +1 -1
  95. package/lib/commands/file/index.js +1 -1
  96. package/lib/commands/init/index.js +1 -1
  97. package/lib/commands/issue/index.js +1 -1
  98. package/lib/commands/issue/nudge.js +1 -1
  99. package/lib/commands/issue/report.js +1 -1
  100. package/lib/commands/issue/shared.js +1 -1
  101. package/lib/commands/logs/index.js +1 -1
  102. package/lib/commands/menu/delete.js +1 -0
  103. package/lib/commands/menu/group-create.js +1 -0
  104. package/lib/commands/menu/group-update.js +1 -0
  105. package/lib/commands/menu/index.js +1 -1
  106. package/lib/commands/menu/list.js +1 -1
  107. package/lib/commands/menu/regroup-start.js +1 -0
  108. package/lib/commands/menu/shared/compare-table.js +1 -1
  109. package/lib/commands/menu/shared/delete-plan.js +1 -0
  110. package/lib/commands/menu/shared/facts.js +1 -0
  111. package/lib/commands/menu/shared/index.js +1 -1
  112. package/lib/commands/menu/shared/inquirer.js +1 -1
  113. package/lib/commands/menu/shared/local-pages.js +1 -1
  114. package/lib/commands/menu/shared/logic.js +1 -1
  115. package/lib/commands/menu/shared/mutations.js +1 -0
  116. package/lib/commands/menu/shared/service.js +1 -1
  117. package/lib/commands/menu/shared/sync-core.js +1 -1
  118. package/lib/commands/menu/shared/update-core.js +1 -1
  119. package/lib/commands/menu/shared/valid-url.js +1 -1
  120. package/lib/commands/menu/sync.js +1 -1
  121. package/lib/commands/menu/update.js +1 -1
  122. package/lib/commands/notification/config-list.js +1 -1
  123. package/lib/commands/notification/index.js +1 -1
  124. package/lib/commands/page/generate-start.js +1 -1
  125. package/lib/commands/page/generate-status.js +1 -1
  126. package/lib/commands/page/index.js +1 -1
  127. package/lib/commands/page/pull.js +1 -1
  128. package/lib/commands/page/push.js +1 -1
  129. package/lib/commands/page/relation-audit.js +1 -1
  130. package/lib/commands/page/shared.js +1 -1
  131. package/lib/commands/page/standard-page-status.js +1 -1
  132. package/lib/commands/page/sync.js +1 -1
  133. package/lib/commands/permit/index.js +1 -1
  134. package/lib/commands/permit/page-get.js +1 -1
  135. package/lib/commands/permit/page-set.js +1 -1
  136. package/lib/commands/permit/role-apis-set.js +1 -1
  137. package/lib/commands/permit/role-menus-set.js +1 -1
  138. package/lib/commands/permit/role-menus.js +1 -1
  139. package/lib/commands/permit/shared.js +1 -1
  140. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  141. package/lib/commands/project/create/format-elapsed.js +1 -1
  142. package/lib/commands/project/create/main.js +1 -1
  143. package/lib/commands/project/create/non-interactive.js +1 -1
  144. package/lib/commands/project/create/project-template-path.js +1 -1
  145. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  146. package/lib/commands/project/create/use-format-code.js +1 -1
  147. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  148. package/lib/commands/project/index.js +1 -1
  149. package/lib/commands/project/init.js +1 -1
  150. package/lib/commands/project/upgrade.js +1 -1
  151. package/lib/commands/registry.js +1 -1
  152. package/lib/commands/role/create.js +1 -1
  153. package/lib/commands/role/delete.js +1 -1
  154. package/lib/commands/role/detail.js +1 -1
  155. package/lib/commands/role/index.js +1 -1
  156. package/lib/commands/role/list.js +1 -1
  157. package/lib/commands/role/shared.js +1 -1
  158. package/lib/commands/role/update.js +1 -1
  159. package/lib/commands/role/user-add.js +1 -1
  160. package/lib/commands/role/user-remove.js +1 -1
  161. package/lib/commands/role/user-resolve.js +1 -1
  162. package/lib/commands/run/index.js +1 -1
  163. package/lib/commands/schema.js +1 -1
  164. package/lib/commands/sql/create.js +1 -1
  165. package/lib/commands/sql/delete.js +1 -1
  166. package/lib/commands/sql/detail.js +1 -1
  167. package/lib/commands/sql/exec.js +1 -1
  168. package/lib/commands/sql/index.js +1 -1
  169. package/lib/commands/sql/list.js +1 -1
  170. package/lib/commands/sql/pull.js +1 -1
  171. package/lib/commands/sql/push.js +1 -1
  172. package/lib/commands/sql/save.js +1 -1
  173. package/lib/commands/sql/shared.js +1 -1
  174. package/lib/commands/sql/status.js +1 -1
  175. package/lib/commands/sql/validate.js +1 -1
  176. package/lib/commands/task/index.js +1 -0
  177. package/lib/commands/task/status.js +1 -0
  178. package/lib/commands/workspace/add.js +1 -1
  179. package/lib/commands/workspace/index.js +1 -1
  180. package/lib/commands/workspace/remove.js +1 -1
  181. package/lib/config/schema.js +1 -1
  182. package/lib/constant/cdn.js +1 -1
  183. package/lib/constant/cli.js +1 -1
  184. package/lib/constant/defaults.js +1 -1
  185. package/lib/constant/domain.js +1 -1
  186. package/lib/constant/env.js +1 -1
  187. package/lib/constant/output.js +1 -1
  188. package/lib/constant/paths.js +1 -1
  189. package/lib/constant/risk.js +1 -1
  190. package/lib/context/app-resolver.js +1 -1
  191. package/lib/context/auth-resolver.js +1 -1
  192. package/lib/context/config-loader.js +1 -1
  193. package/lib/context.js +1 -1
  194. package/lib/core/alias-resolver.js +1 -1
  195. package/lib/core/api-client.js +1 -1
  196. package/lib/core/bff/config.js +1 -1
  197. package/lib/core/bff/file-system.js +1 -1
  198. package/lib/core/bff/hash.js +1 -1
  199. package/lib/core/bff/lock.js +1 -1
  200. package/lib/core/bff/utils.js +1 -1
  201. package/lib/core/db-resolver.js +1 -1
  202. package/lib/core/page/file-system.js +1 -1
  203. package/lib/core/page/hash.js +1 -1
  204. package/lib/core/page/lock.js +1 -1
  205. package/lib/core/sql-index-auditor.js +1 -0
  206. package/lib/core/sql-sync/config.js +1 -1
  207. package/lib/core/sql-sync/file-system.js +1 -1
  208. package/lib/core/sql-sync/hash.js +1 -1
  209. package/lib/core/sql-sync/lock.js +1 -1
  210. package/lib/core/sql-sync/utils.js +1 -1
  211. package/lib/core/sql-validator.js +1 -1
  212. package/lib/errors.js +1 -1
  213. package/lib/framework/build-all-flags.js +1 -1
  214. package/lib/framework/error-output.js +1 -0
  215. package/lib/framework/explicit-yes.js +1 -0
  216. package/lib/framework/flags.js +1 -1
  217. package/lib/framework/help.js +1 -1
  218. package/lib/framework/index.js +1 -1
  219. package/lib/framework/output.js +1 -1
  220. package/lib/framework/response.js +1 -1
  221. package/lib/framework/runner-alias.js +1 -1
  222. package/lib/framework/runner.js +1 -1
  223. package/lib/framework/schema-export.js +1 -1
  224. package/lib/framework/types.js +1 -1
  225. package/lib/generated/build-info.js +1 -1
  226. package/lib/help.js +1 -1
  227. package/lib/skills/main.js +1 -1
  228. package/lib/skills/npx-skills-add.js +1 -1
  229. package/lib/telemetry/cli-command-trace.js +1 -1
  230. package/lib/telemetry/cli-help-trace.js +1 -1
  231. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  232. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  233. package/lib/telemetry/send-cli-trace-log.js +1 -1
  234. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  235. package/lib/utils/ai_config.js +1 -1
  236. package/lib/utils/apply-jq-filter.js +1 -1
  237. package/lib/utils/cdn-config.js +1 -1
  238. package/lib/utils/check-sdk-version.js +1 -1
  239. package/lib/utils/cli-version-check.js +1 -1
  240. package/lib/utils/cli-version-policy.js +1 -1
  241. package/lib/utils/config.js +1 -1
  242. package/lib/utils/copy-directory.js +1 -1
  243. package/lib/utils/entity-with-id.js +1 -1
  244. package/lib/utils/file-utils.js +1 -1
  245. package/lib/utils/guides-cdn.js +1 -1
  246. package/lib/utils/http-client.js +1 -1
  247. package/lib/utils/is-non-interactive.js +1 -1
  248. package/lib/utils/logger.js +1 -1
  249. package/lib/utils/params.js +1 -1
  250. package/lib/utils/platform.js +1 -1
  251. package/lib/utils/rules-cdn.js +1 -1
  252. package/lib/utils/sleep.js +1 -1
  253. package/lib/utils/template-replacer.js +1 -1
  254. package/lib/utils/update-notice.js +1 -1
  255. package/lib/utils/version.js +1 -1
  256. package/lib/utils/with-active-cookie.js +1 -1
  257. package/lib/utils/write-cli-side-channel.js +1 -1
  258. package/package.json +1 -1
@@ -1 +1 @@
1
- (function(_0xd3c2d8,_0x2eb880){const _0x195b4e=a240_0x5b74,_0x52e82b=_0xd3c2d8();while(!![]){try{const _0x3430ee=parseInt(_0x195b4e(0x191))/0x1+parseInt(_0x195b4e(0x190))/0x2*(-parseInt(_0x195b4e(0x18b))/0x3)+parseInt(_0x195b4e(0x185))/0x4*(parseInt(_0x195b4e(0x184))/0x5)+-parseInt(_0x195b4e(0x18f))/0x6+parseInt(_0x195b4e(0x188))/0x7+-parseInt(_0x195b4e(0x189))/0x8*(-parseInt(_0x195b4e(0x18e))/0x9)+parseInt(_0x195b4e(0x18d))/0xa*(-parseInt(_0x195b4e(0x187))/0xb);if(_0x3430ee===_0x2eb880)break;else _0x52e82b['push'](_0x52e82b['shift']());}catch(_0x3678f9){_0x52e82b['push'](_0x52e82b['shift']());}}}(a240_0x191c,0xbd10a));function a240_0x5b74(_0x4755a2,_0x5c09ac){_0x4755a2=_0x4755a2-0x184;const _0x191cea=a240_0x191c();let _0x5b74ad=_0x191cea[_0x4755a2];return _0x5b74ad;}function a240_0x191c(){const _0xb19b3d=['416612ZlnTbY','--params\x20must\x20be\x20a\x20JSON\x20object','535kaSwzz','24356XxdnJp','object','535359UEpHgA','9440144gAIBEv','6000096kFYqBg','parse','39pssFMf','Invalid\x20JSON\x20for\x20--params:\x20','290XoByBZ','18Ikxiiu','8294850XyQMkT','53610mxHtiE'];a240_0x191c=function(){return _0xb19b3d;};return a240_0x191c();}import{CliErrors}from'../errors.js';export function parseJsonParams(_0x276f56){const _0x400f60=a240_0x5b74;if(!_0x276f56)return undefined;let _0xa64f71;try{_0xa64f71=JSON[_0x400f60(0x18a)](_0x276f56);}catch{throw CliErrors['validation'](_0x400f60(0x18c)+_0x276f56);}if(!_0xa64f71||typeof _0xa64f71!==_0x400f60(0x186)||Array['isArray'](_0xa64f71))throw CliErrors['validation'](_0x400f60(0x192),'Example:\x20--params\x20\x27{\x22id\x22:123}\x27');return _0xa64f71;}
1
+ (function(_0x24b3f5,_0x7c147e){const _0x1fcb66=a253_0x6256,_0x741182=_0x24b3f5();while(!![]){try{const _0x30b7d9=-parseInt(_0x1fcb66(0x1b1))/0x1+parseInt(_0x1fcb66(0x1a7))/0x2+-parseInt(_0x1fcb66(0x1ad))/0x3*(-parseInt(_0x1fcb66(0x1b0))/0x4)+-parseInt(_0x1fcb66(0x1ac))/0x5+parseInt(_0x1fcb66(0x1a8))/0x6+-parseInt(_0x1fcb66(0x1ae))/0x7+parseInt(_0x1fcb66(0x1a6))/0x8;if(_0x30b7d9===_0x7c147e)break;else _0x741182['push'](_0x741182['shift']());}catch(_0x1b4ec6){_0x741182['push'](_0x741182['shift']());}}}(a253_0x47e8,0x9e444));import{CliErrors}from'../errors.js';function a253_0x47e8(){const _0x55f8e8=['validation','isArray','Invalid\x20JSON\x20for\x20--params:\x20','2503680ZpcGou','539454XxfaHE','7912604TpNjBs','object','20iuCVVH','174354LencxK','Example:\x20--params\x20\x27{\x22id\x22:123}\x27','parse','--params\x20must\x20be\x20a\x20JSON\x20object','5813184UgmAUv','1499204OHTyps','470292bbitYY'];a253_0x47e8=function(){return _0x55f8e8;};return a253_0x47e8();}function a253_0x6256(_0x388458,_0x48d156){_0x388458=_0x388458-0x1a3;const _0x47e8cb=a253_0x47e8();let _0x62566a=_0x47e8cb[_0x388458];return _0x62566a;}export function parseJsonParams(_0x433562){const _0x1f2202=a253_0x6256;if(!_0x433562)return undefined;let _0xc6fd77;try{_0xc6fd77=JSON[_0x1f2202(0x1a4)](_0x433562);}catch{throw CliErrors[_0x1f2202(0x1a9)](_0x1f2202(0x1ab)+_0x433562);}if(!_0xc6fd77||typeof _0xc6fd77!==_0x1f2202(0x1af)||Array[_0x1f2202(0x1aa)](_0xc6fd77))throw CliErrors[_0x1f2202(0x1a9)](_0x1f2202(0x1a5),_0x1f2202(0x1a3));return _0xc6fd77;}
@@ -1 +1 @@
1
- const a241_0xa95c70=a241_0x3297;function a241_0x79b0(){const _0x3cf567=['2966046NCoulN','280356QrAQSC','8mwZJdl','5275640lRjgVT','win32','5OapfZL','2JvWHqz','22gUjceU','7nSqmmv','246628Biioxv','2838285FJImrp','647272wBLpQj','6303WQmwdk'];a241_0x79b0=function(){return _0x3cf567;};return a241_0x79b0();}function a241_0x3297(_0x2f0df6,_0x49a90d){_0x2f0df6=_0x2f0df6-0x1bc;const _0x79b0c4=a241_0x79b0();let _0x3297f8=_0x79b0c4[_0x2f0df6];return _0x3297f8;}(function(_0x548dbc,_0x195eb7){const _0x2ce6e3=a241_0x3297,_0x3cd4b5=_0x548dbc();while(!![]){try{const _0x5b1b45=-parseInt(_0x2ce6e3(0x1c6))/0x1*(parseInt(_0x2ce6e3(0x1bc))/0x2)+parseInt(_0x2ce6e3(0x1bf))/0x3+-parseInt(_0x2ce6e3(0x1be))/0x4*(parseInt(_0x2ce6e3(0x1c5))/0x5)+-parseInt(_0x2ce6e3(0x1c0))/0x6*(-parseInt(_0x2ce6e3(0x1c8))/0x7)+-parseInt(_0x2ce6e3(0x1c2))/0x8*(parseInt(_0x2ce6e3(0x1bd))/0x9)+parseInt(_0x2ce6e3(0x1c3))/0xa+parseInt(_0x2ce6e3(0x1c7))/0xb*(parseInt(_0x2ce6e3(0x1c1))/0xc);if(_0x5b1b45===_0x195eb7)break;else _0x3cd4b5['push'](_0x3cd4b5['shift']());}catch(_0x1a6275){_0x3cd4b5['push'](_0x3cd4b5['shift']());}}}(a241_0x79b0,0x54b29));export const isWindows=process['platform']===a241_0xa95c70(0x1c4);export function resolveNpmBin(_0x31045c){return isWindows?_0x31045c+'.cmd':_0x31045c;}
1
+ const a254_0x19d093=a254_0x3245;(function(_0x4a0cc2,_0x2d025f){const _0x17acc7=a254_0x3245,_0x51669b=_0x4a0cc2();while(!![]){try{const _0x4e1eb0=parseInt(_0x17acc7(0x14b))/0x1+parseInt(_0x17acc7(0x150))/0x2+parseInt(_0x17acc7(0x154))/0x3*(parseInt(_0x17acc7(0x14d))/0x4)+parseInt(_0x17acc7(0x151))/0x5+parseInt(_0x17acc7(0x152))/0x6+-parseInt(_0x17acc7(0x14f))/0x7*(parseInt(_0x17acc7(0x14e))/0x8)+-parseInt(_0x17acc7(0x149))/0x9;if(_0x4e1eb0===_0x2d025f)break;else _0x51669b['push'](_0x51669b['shift']());}catch(_0x1db84e){_0x51669b['push'](_0x51669b['shift']());}}}(a254_0x261d,0xde467));export const isWindows=process[a254_0x19d093(0x14c)]===a254_0x19d093(0x14a);function a254_0x3245(_0x400815,_0x28e2a9){_0x400815=_0x400815-0x149;const _0x261da9=a254_0x261d();let _0x3245fe=_0x261da9[_0x400815];return _0x3245fe;}export function resolveNpmBin(_0x5edac6){const _0xc95263=a254_0x19d093;return isWindows?_0x5edac6+_0xc95263(0x153):_0x5edac6;}function a254_0x261d(){const _0x194a8c=['6167UkTxCq','1900978NMNccn','1903960sQlZjR','5450868OMvJgH','.cmd','70194DAmAjw','7088508RdxrYO','win32','135872HlogWc','platform','164mOhKXR','14864SzityB'];a254_0x261d=function(){return _0x194a8c;};return a254_0x261d();}
@@ -1 +1 @@
1
- (function(_0x207a11,_0x200c1e){const _0x3a9a8d=a242_0x372d,_0x10c788=_0x207a11();while(!![]){try{const _0x255d6f=parseInt(_0x3a9a8d(0x200))/0x1*(parseInt(_0x3a9a8d(0x1fa))/0x2)+-parseInt(_0x3a9a8d(0x1ff))/0x3+-parseInt(_0x3a9a8d(0x1f6))/0x4+-parseInt(_0x3a9a8d(0x203))/0x5*(parseInt(_0x3a9a8d(0x1f7))/0x6)+-parseInt(_0x3a9a8d(0x1f0))/0x7+parseInt(_0x3a9a8d(0x1f4))/0x8*(parseInt(_0x3a9a8d(0x1f9))/0x9)+parseInt(_0x3a9a8d(0x1fd))/0xa*(parseInt(_0x3a9a8d(0x204))/0xb);if(_0x255d6f===_0x200c1e)break;else _0x10c788['push'](_0x10c788['shift']());}catch(_0x58234f){_0x10c788['push'](_0x10c788['shift']());}}}(a242_0x35ba,0xb7a84));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 _0x2a3650=a242_0x372d,_0x40d206=getTemplateBaseUrl();return _0x40d206+_0x2a3650(0x205);}const LOCAL_TEMPLATE_PATH=resolve(__dirname,'../../templates/rules/lovrabet_rules.mdc.tpl');export async function fetchRulesFromCDN(){const _0x3a9b62=a242_0x372d,_0x51accb=getRulesCdnUrl(),_0xd45c26=await fetch(_0x51accb,{'headers':{'Accept':_0x3a9b62(0x1f8)}});if(!_0xd45c26['ok'])throw new Error(_0x3a9b62(0x1fb)+_0xd45c26[_0x3a9b62(0x1ef)]+'\x20'+_0xd45c26[_0x3a9b62(0x201)]);const _0x273174=await _0xd45c26[_0x3a9b62(0x1f5)]();if(!_0x273174[_0x3a9b62(0x1fe)]||typeof _0x273174[_0x3a9b62(0x1fe)]!==_0x3a9b62(0x207))throw new Error(_0x3a9b62(0x1f2));return _0x273174;}export async function getRulesContent(){const _0x39373c=a242_0x372d;try{const _0x24d587=await fetchRulesFromCDN();return _0x24d587[_0x39373c(0x1fe)];}catch{return readLocalTemplate();}}function a242_0x35ba(){const _0x56142b=['catch','CDN\x20返回数据格式错误','lastUpdated','2840lhQXyV','json','927560uzFtlV','66954NLSXaA','application/json','693yuQzvh','44reShYd','CDN\x20请求失败:\x20','本地模板文件不存在:\x20','105190NNBfHc','content','2082837aoDLyv','16747XQqnGQ','statusText','utf-8','80mShFZd','2981PeGalr','/rules/rules.json','.cursor/rules','string','lovrabet_rules.mdc','agents.md','status','9726115Zmkpcm'];a242_0x35ba=function(){return _0x56142b;};return a242_0x35ba();}export function readLocalTemplate(){const _0x113922=a242_0x372d;if(existsSync(LOCAL_TEMPLATE_PATH))return readFileSync(LOCAL_TEMPLATE_PATH,'utf-8');throw new Error(_0x113922(0x1fc)+LOCAL_TEMPLATE_PATH);}function a242_0x372d(_0x3826bb,_0x112958){_0x3826bb=_0x3826bb-0x1ed;const _0x35ba7c=a242_0x35ba();let _0x372d95=_0x35ba7c[_0x3826bb];return _0x372d95;}export async function writeRulesFile(_0x1469b0){const _0x270d4b=a242_0x372d,_0x28a593=await fetchRulesFromCDN()[_0x270d4b(0x1f1)](()=>null);let _0x91bbe4;_0x28a593?(_0x91bbe4=_0x28a593['content'],_0x28a593[_0x270d4b(0x1f3)]&&(_0x91bbe4=appendUpdateTime(_0x91bbe4,_0x28a593[_0x270d4b(0x1f3)]))):_0x91bbe4=readLocalTemplate();const _0x9d3820=dirname(_0x1469b0);!existsSync(_0x9d3820)&&mkdirSync(_0x9d3820,{'recursive':!![]}),writeFileSync(_0x1469b0,_0x91bbe4,_0x270d4b(0x202));}export async function copyRulesToCursor(_0x42dae9){const _0x2bfb31=a242_0x372d,_0x18d690=join(_0x42dae9,_0x2bfb31(0x206)),_0x3c1f04=join(_0x18d690,_0x2bfb31(0x1ed));if(existsSync(_0x3c1f04))return![];return await writeRulesFile(_0x3c1f04),!![];}export async function copyRulesToAgentsMd(_0x57784e){const _0x50ba76=a242_0x372d,_0x1a6cb8=join(_0x57784e,_0x50ba76(0x1ee));if(existsSync(_0x1a6cb8))return![];return await writeRulesFile(_0x1a6cb8),!![];}
1
+ (function(_0x394e30,_0xf1d43d){const _0x57efd7=a255_0x3675,_0x3141e2=_0x394e30();while(!![]){try{const _0x1c86b4=-parseInt(_0x57efd7(0x12e))/0x1*(-parseInt(_0x57efd7(0x12c))/0x2)+-parseInt(_0x57efd7(0x11f))/0x3*(parseInt(_0x57efd7(0x120))/0x4)+parseInt(_0x57efd7(0x11e))/0x5*(-parseInt(_0x57efd7(0x123))/0x6)+parseInt(_0x57efd7(0x131))/0x7*(-parseInt(_0x57efd7(0x11c))/0x8)+parseInt(_0x57efd7(0x12f))/0x9+-parseInt(_0x57efd7(0x125))/0xa+parseInt(_0x57efd7(0x11b))/0xb;if(_0x1c86b4===_0xf1d43d)break;else _0x3141e2['push'](_0x3141e2['shift']());}catch(_0x2cde03){_0x3141e2['push'](_0x3141e2['shift']());}}}(a255_0x1717,0xe8381));function a255_0x1717(){const _0x546192=['statusText','10ItFCXP','本地模板文件不存在:\x20','229781EQPOLY','4188420LDGGfO','json','4123IKKVSF','/rules/rules.json','32117525fiXnHC','16888ubcVUw','utf-8','1585QwyjQA','5572641VLbpcc','4Ukmvvt','lastUpdated','.cursor/rules','978bRloGt','application/json','4302940EuSuEi','catch','CDN\x20返回数据格式错误','CDN\x20请求失败:\x20','lovrabet_rules.mdc','content'];a255_0x1717=function(){return _0x546192;};return a255_0x1717();}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 a255_0x3675(_0x5bb5a6,_0x25cb70){_0x5bb5a6=_0x5bb5a6-0x11b;const _0x171708=a255_0x1717();let _0x3675f7=_0x171708[_0x5bb5a6];return _0x3675f7;}import{appendUpdateTime}from'../utils/guides-cdn.js';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);function getRulesCdnUrl(){const _0x3de7af=a255_0x3675,_0x2e2222=getTemplateBaseUrl();return _0x2e2222+_0x3de7af(0x132);}const LOCAL_TEMPLATE_PATH=resolve(__dirname,'../../templates/rules/lovrabet_rules.mdc.tpl');export async function fetchRulesFromCDN(){const _0x271c67=a255_0x3675,_0x58dcbb=getRulesCdnUrl(),_0x2e735b=await fetch(_0x58dcbb,{'headers':{'Accept':_0x271c67(0x124)}});if(!_0x2e735b['ok'])throw new Error(_0x271c67(0x128)+_0x2e735b['status']+'\x20'+_0x2e735b[_0x271c67(0x12b)]);const _0x3de922=await _0x2e735b[_0x271c67(0x130)]();if(!_0x3de922[_0x271c67(0x12a)]||typeof _0x3de922[_0x271c67(0x12a)]!=='string')throw new Error(_0x271c67(0x127));return _0x3de922;}export async function getRulesContent(){const _0xdc849d=a255_0x3675;try{const _0x1aa730=await fetchRulesFromCDN();return _0x1aa730[_0xdc849d(0x12a)];}catch{return readLocalTemplate();}}export function readLocalTemplate(){const _0x5d96fe=a255_0x3675;if(existsSync(LOCAL_TEMPLATE_PATH))return readFileSync(LOCAL_TEMPLATE_PATH,_0x5d96fe(0x11d));throw new Error(_0x5d96fe(0x12d)+LOCAL_TEMPLATE_PATH);}export async function writeRulesFile(_0x50cb17){const _0x131367=a255_0x3675,_0x50a6af=await fetchRulesFromCDN()[_0x131367(0x126)](()=>null);let _0x4adf07;_0x50a6af?(_0x4adf07=_0x50a6af[_0x131367(0x12a)],_0x50a6af[_0x131367(0x121)]&&(_0x4adf07=appendUpdateTime(_0x4adf07,_0x50a6af['lastUpdated']))):_0x4adf07=readLocalTemplate();const _0x8e3a5b=dirname(_0x50cb17);!existsSync(_0x8e3a5b)&&mkdirSync(_0x8e3a5b,{'recursive':!![]}),writeFileSync(_0x50cb17,_0x4adf07,_0x131367(0x11d));}export async function copyRulesToCursor(_0xc0448e){const _0xd4eb44=a255_0x3675,_0x1f23d6=join(_0xc0448e,_0xd4eb44(0x122)),_0x5d37e7=join(_0x1f23d6,_0xd4eb44(0x129));if(existsSync(_0x5d37e7))return![];return await writeRulesFile(_0x5d37e7),!![];}export async function copyRulesToAgentsMd(_0x2cac5f){const _0x436e2f=join(_0x2cac5f,'agents.md');if(existsSync(_0x436e2f))return![];return await writeRulesFile(_0x436e2f),!![];}
@@ -1 +1 @@
1
- export function sleep(_0x16b56c){return new Promise(_0x370058=>setTimeout(_0x370058,_0x16b56c));}
1
+ export function sleep(_0x3148e2){return new Promise(_0x310851=>setTimeout(_0x310851,_0x3148e2));}
@@ -1 +1 @@
1
- const a244_0x29bf15=a244_0x3130;function a244_0x3130(_0x5bc773,_0x31664b){_0x5bc773=_0x5bc773-0x1b3;const _0x2d4c2d=a244_0x2d4c();let _0x31303c=_0x2d4c2d[_0x5bc773];return _0x31303c;}(function(_0xd1bca3,_0x9b78e8){const _0x61dab7=a244_0x3130,_0x226dfe=_0xd1bca3();while(!![]){try{const _0x518092=parseInt(_0x61dab7(0x1c2))/0x1*(-parseInt(_0x61dab7(0x1e9))/0x2)+-parseInt(_0x61dab7(0x1ef))/0x3*(parseInt(_0x61dab7(0x1f3))/0x4)+-parseInt(_0x61dab7(0x1ed))/0x5*(-parseInt(_0x61dab7(0x1f2))/0x6)+parseInt(_0x61dab7(0x1de))/0x7+-parseInt(_0x61dab7(0x1ce))/0x8*(-parseInt(_0x61dab7(0x1d2))/0x9)+parseInt(_0x61dab7(0x1d8))/0xa+-parseInt(_0x61dab7(0x1eb))/0xb*(parseInt(_0x61dab7(0x1e0))/0xc);if(_0x518092===_0x9b78e8)break;else _0x226dfe['push'](_0x226dfe['shift']());}catch(_0x3ca3ff){_0x226dfe['push'](_0x226dfe['shift']());}}}(a244_0x2d4c,0xa00b1));import a244_0x2f1a79 from'node:fs';import a244_0x43406b from'node:path';import{logger}from'../utils/logger.js';import{getCliVersion}from'../utils/version.js';function a244_0x2d4c(){const _0x56591f=['.js','template','extname','pop','split','toComponentName','getMinutes','processTemplate','开始处理模板内容替换','.json','formatLocalTimestamp','now','alias:\x20\x22','isDirectory','41KmFKHw','slice','replaceContent','toUpperCase','LOVRABET','name','getFullYear','mkdir','toDisplayTitle','promises','datasetCode:\x20\x22','push','8qEyAuo','charAt','toLowerCase','YourModel','10682487DySBkc','message','getSeconds','.tpl','info','pad','2566790PZHTjD','.tsx','padStart','api','utf8','getMonth','1879234pdZlte','datasetCode','12pTaTFH','join','processFile','endsWith','name:\x20\x22','readFile','writeFile','replace','processDirectory','40374KvWYkv','readdir','15136077RbWDPy','getHours','316795wjXOLo','copyFile','99hxqDMg','replaceApiContent','alias','114IPiSab','6872MTGtZm','map','tableName:\x20\x22'];a244_0x2d4c=function(){return _0x56591f;};return a244_0x2d4c();}const CLI_VERSION=getCliVersion();export class TemplateReplacer{static[a244_0x29bf15(0x1d7)](_0x2e9a03){const _0x212371=a244_0x29bf15;return String(_0x2e9a03)[_0x212371(0x1da)](0x2,'0');}static[a244_0x29bf15(0x1be)](_0x51e58d){const _0x261603=a244_0x29bf15,_0x483510=_0x51e58d[_0x261603(0x1c8)](),_0x326a07=this[_0x261603(0x1d7)](_0x51e58d[_0x261603(0x1dd)]()+0x1),_0x14648a=this[_0x261603(0x1d7)](_0x51e58d['getDate']()),_0x3667cc=this[_0x261603(0x1d7)](_0x51e58d[_0x261603(0x1ec)]()),_0x46406a=this[_0x261603(0x1d7)](_0x51e58d[_0x261603(0x1ba)]()),_0x4141cf=this['pad'](_0x51e58d[_0x261603(0x1d4)]());return{'createdAt':_0x483510+'-'+_0x326a07+'-'+_0x14648a+'\x20'+_0x3667cc+':'+_0x46406a+':'+_0x4141cf,'createdDate':_0x483510+'-'+_0x326a07+'-'+_0x14648a,'createdTime':_0x3667cc+':'+_0x46406a+':'+_0x4141cf};}static[a244_0x29bf15(0x1b9)](_0x108bbf){const _0x5d4235=a244_0x29bf15,_0x4ec93d=_0x108bbf[_0x5d4235(0x1b8)]('/')[_0x5d4235(0x1b7)]()||_0x108bbf;return _0x4ec93d[_0x5d4235(0x1b8)]('-')['map'](_0x54bd91=>_0x54bd91[_0x5d4235(0x1cf)](0x0)[_0x5d4235(0x1c5)]()+_0x54bd91[_0x5d4235(0x1c3)](0x1)[_0x5d4235(0x1d0)]())[_0x5d4235(0x1e1)]('');}static[a244_0x29bf15(0x1ca)](_0x1ebd06){const _0x46d3fa=a244_0x29bf15,_0x4b73d6=_0x1ebd06[_0x46d3fa(0x1b8)]('/')[_0x46d3fa(0x1b7)]()||_0x1ebd06;return _0x4b73d6[_0x46d3fa(0x1b8)]('-')[_0x46d3fa(0x1f4)](_0x32e704=>_0x32e704[_0x46d3fa(0x1cf)](0x0)[_0x46d3fa(0x1c5)]()+_0x32e704[_0x46d3fa(0x1c3)](0x1)['toLowerCase']())['join']('\x20');}static['replaceContent'](_0x309860,_0x45cd1f,_0x569b05){const _0xa4afb7=a244_0x29bf15,_0x51c7fe=this[_0xa4afb7(0x1b9)](_0x45cd1f),_0x650861=this[_0xa4afb7(0x1ca)](_0x45cd1f),{createdAt:_0x5b42ca,createdDate:_0x369123,createdTime:_0x2bcdd5}=this[_0xa4afb7(0x1be)](new Date());let _0x25b31b=_0x309860['replace'](/\{CliVersion\}/g,CLI_VERSION)[_0xa4afb7(0x1e7)](/\{ComponentName\}/g,_0x51c7fe)[_0xa4afb7(0x1e7)](/\{DisplayTitle\}/g,_0x650861)[_0xa4afb7(0x1e7)](/\{PageName\}/g,_0x45cd1f)[_0xa4afb7(0x1e7)](/\{TemplateName\}/g,_0x569b05)[_0xa4afb7(0x1e7)](/\{CreatedAt\}/g,_0x5b42ca)[_0xa4afb7(0x1e7)](/\{CreatedDate\}/g,_0x369123)[_0xa4afb7(0x1e7)](/\{CreatedTime\}/g,_0x2bcdd5);return _0x25b31b;}static[a244_0x29bf15(0x1f0)](_0x53ba0a,_0xcf645e,_0x3f3a36,_0x20ebdf,_0x131816,_0xd1a4c7,_0x14e27b,_0xe5211c){const _0x437ccd=a244_0x29bf15,_0x35e794=new Date(),_0x5063ed=_0x35e794['toISOString'](),_0x7deae7=_0x3f3a36['map'](_0x2a66ca=>{const _0x57ee95=a244_0x3130,_0x3205a8=[_0x57ee95(0x1cc)+_0x2a66ca[_0x57ee95(0x1df)]+'\x22',_0x57ee95(0x1b3)+_0x2a66ca['tableName']+'\x22',_0x57ee95(0x1e4)+_0x2a66ca[_0x57ee95(0x1c7)]+'\x22'];return _0x2a66ca[_0x57ee95(0x1f1)]&&_0x3205a8[_0x57ee95(0x1cd)](_0x57ee95(0x1c0)+_0x2a66ca[_0x57ee95(0x1f1)]+'\x22'),'\x0a\x20\x20\x20\x20{\x20'+_0x3205a8[_0x57ee95(0x1e1)](',\x20')+'\x20},';})[_0x437ccd(0x1e1)](''),_0x58ccd1=_0x20ebdf||_0x3f3a36[0x0]?.[_0x437ccd(0x1f1)]||_0x437ccd(0x1d1);let _0x335a33=_0x53ba0a[_0x437ccd(0x1e7)](/\{AppCode\}/g,_0xcf645e)[_0x437ccd(0x1e7)](/\{ModelConfigs\}/g,_0x7deae7)['replace'](/\{ExampleModelName\}/g,_0x58ccd1)[_0x437ccd(0x1e7)](/\{ApiFileName\}/g,_0x131816||_0x437ccd(0x1db))[_0x437ccd(0x1e7)](/\{ConfigName\}/g,_0xd1a4c7||'default')[_0x437ccd(0x1e7)](/\{ClientConfigParam\}/g,_0x14e27b||'')[_0x437ccd(0x1e7)](/\{VarPrefix\}/g,_0xe5211c||_0x437ccd(0x1c6))['replace'](/\{CreatedAt\}/g,_0x5063ed);return _0x335a33;}static async[a244_0x29bf15(0x1bb)](_0x39f5f9,_0xf9626a,_0x17a4c4,_0x29680c,_0x22cd4f=!![]){const _0x2596ad=a244_0x29bf15,_0x263b74=Date[_0x2596ad(0x1bf)]();try{_0x22cd4f&&logger[_0x2596ad(0x1d6)]('template',_0x2596ad(0x1bc),{'templatePath':_0x39f5f9,'targetPath':_0xf9626a,'pageName':_0x17a4c4,'templateName':_0x29680c});await a244_0x2f1a79['promises'][_0x2596ad(0x1c9)](_0xf9626a,{'recursive':!![]}),await this[_0x2596ad(0x1e8)](_0x39f5f9,_0xf9626a,_0x17a4c4,_0x29680c);if(_0x22cd4f){const _0x2938c6=Date[_0x2596ad(0x1bf)]()-_0x263b74;logger['success'](_0x2596ad(0x1b5),'模板内容替换完成',_0x2938c6,{'pageName':_0x17a4c4,'templateName':_0x29680c});}}catch(_0x4f42da){if(_0x22cd4f){const _0x33b5ff=Date['now']()-_0x263b74;logger['error']('template','模板内容替换失败',{'templatePath':_0x39f5f9,'targetPath':_0xf9626a,'pageName':_0x17a4c4,'templateName':_0x29680c,'error':_0x4f42da instanceof Error?_0x4f42da[_0x2596ad(0x1d3)]:String(_0x4f42da),'duration':_0x33b5ff});}throw _0x4f42da;}}static async[a244_0x29bf15(0x1e8)](_0x269bd1,_0x11b1ae,_0x23ea79,_0x136911){const _0x303f0d=a244_0x29bf15,_0x8ea744=await a244_0x2f1a79[_0x303f0d(0x1cb)][_0x303f0d(0x1ea)](_0x269bd1,{'withFileTypes':!![]});for(const _0x2de474 of _0x8ea744){const _0x5956f4=a244_0x43406b[_0x303f0d(0x1e1)](_0x269bd1,_0x2de474[_0x303f0d(0x1c7)]);let _0xff30cc=a244_0x43406b[_0x303f0d(0x1e1)](_0x11b1ae,_0x2de474[_0x303f0d(0x1c7)]);_0x2de474[_0x303f0d(0x1c7)]['endsWith'](_0x303f0d(0x1d5))&&(_0xff30cc=a244_0x43406b[_0x303f0d(0x1e1)](_0x11b1ae,_0x2de474['name'][_0x303f0d(0x1e7)](/\.tpl$/,'')));if(_0x2de474[_0x303f0d(0x1c1)]())await a244_0x2f1a79['promises'][_0x303f0d(0x1c9)](_0xff30cc,{'recursive':!![]}),await this['processDirectory'](_0x5956f4,_0xff30cc,_0x23ea79,_0x136911);else _0x2de474['isFile']()&&await this['processFile'](_0x5956f4,_0xff30cc,_0x23ea79,_0x136911);}}static async[a244_0x29bf15(0x1e2)](_0x3e347d,_0x5d4300,_0x21e1b6,_0x6e6352){const _0x25f828=a244_0x29bf15,_0x1df20d=a244_0x43406b[_0x25f828(0x1b6)](_0x3e347d)['toLowerCase']();_0x3e347d[_0x25f828(0x1e3)](_0x25f828(0x1d5))&&(_0x5d4300=_0x5d4300[_0x25f828(0x1e7)](/\.tpl$/,''));const _0x20d4e6=[_0x25f828(0x1d9),'.ts','.jsx',_0x25f828(0x1b4),_0x25f828(0x1bd),'.md','.css','.scss',_0x25f828(0x1d5)];if(_0x20d4e6['includes'](_0x1df20d)||_0x3e347d[_0x25f828(0x1e3)](_0x25f828(0x1d5))){const _0x450d02=await a244_0x2f1a79['promises'][_0x25f828(0x1e5)](_0x3e347d,_0x25f828(0x1dc)),_0x34c840=this[_0x25f828(0x1c4)](_0x450d02,_0x21e1b6,_0x6e6352);await a244_0x2f1a79[_0x25f828(0x1cb)][_0x25f828(0x1e6)](_0x5d4300,_0x34c840,_0x25f828(0x1dc));}else await a244_0x2f1a79[_0x25f828(0x1cb)][_0x25f828(0x1ee)](_0x3e347d,_0x5d4300);}}
1
+ function a257_0x5a72(){const _0x16fe83=['datasetCode:\x20\x22','.tsx','datasetCode','formatLocalTimestamp','replaceContent','slice','getMinutes','default','52IzBbie','now','push','charAt','utf8','开始处理模板内容替换','.jsx','name','2133880ZDAuiY','split','padStart','processFile','\x0a\x20\x20\x20\x20{\x20','tableName:\x20\x22','extname','LOVRABET','3184587QmMbdq','getFullYear','template','endsWith','getMonth','.js','32772RPSdqY','replace','readFile','isFile','23588MJeWyq','getSeconds','replaceApiContent','error','message','toUpperCase','58BuZpQs','pad','success','模板内容替换失败','toComponentName','toISOString','.md','writeFile','getDate','13851717jufFxy','map','模板内容替换完成','join','alias','pop','promises','toDisplayTitle','copyFile','2696smORGE','tableName','.tpl','isDirectory','.scss','6fXNGyr','17127vbcooY','alias:\x20\x22','mkdir','readdir','.json','processDirectory','2006700JwCkkt','toLowerCase','includes'];a257_0x5a72=function(){return _0x16fe83;};return a257_0x5a72();}const a257_0x3a67e8=a257_0x521d;(function(_0x50a947,_0xdf850b){const _0x10d8be=a257_0x521d,_0x305e4f=_0x50a947();while(!![]){try{const _0x5a8570=-parseInt(_0x10d8be(0x1b5))/0x1*(-parseInt(_0x10d8be(0x1af))/0x2)+-parseInt(_0x10d8be(0x1ab))/0x3*(-parseInt(_0x10d8be(0x195))/0x4)+parseInt(_0x10d8be(0x19d))/0x5+-parseInt(_0x10d8be(0x183))/0x6*(parseInt(_0x10d8be(0x1a5))/0x7)+-parseInt(_0x10d8be(0x17e))/0x8*(-parseInt(_0x10d8be(0x184))/0x9)+parseInt(_0x10d8be(0x18a))/0xa+-parseInt(_0x10d8be(0x1be))/0xb;if(_0x5a8570===_0xdf850b)break;else _0x305e4f['push'](_0x305e4f['shift']());}catch(_0xe9d4){_0x305e4f['push'](_0x305e4f['shift']());}}}(a257_0x5a72,0x5ced9));import a257_0x4dfd38 from'node:fs';import a257_0x681b0c from'node:path';import{logger}from'../utils/logger.js';import{getCliVersion}from'../utils/version.js';const CLI_VERSION=getCliVersion();function a257_0x521d(_0x157926,_0x418d79){_0x157926=_0x157926-0x17d;const _0x5a722c=a257_0x5a72();let _0x521df9=_0x5a722c[_0x157926];return _0x521df9;}export class TemplateReplacer{static[a257_0x3a67e8(0x1b6)](_0x4b71b2){const _0x47207b=a257_0x3a67e8;return String(_0x4b71b2)[_0x47207b(0x19f)](0x2,'0');}static[a257_0x3a67e8(0x190)](_0x246299){const _0x2c4c0b=a257_0x3a67e8,_0x2eeb9b=_0x246299[_0x2c4c0b(0x1a6)](),_0x263b36=this[_0x2c4c0b(0x1b6)](_0x246299[_0x2c4c0b(0x1a9)]()+0x1),_0xc9eb2d=this[_0x2c4c0b(0x1b6)](_0x246299[_0x2c4c0b(0x1bd)]()),_0x41d097=this[_0x2c4c0b(0x1b6)](_0x246299['getHours']()),_0x16d06f=this[_0x2c4c0b(0x1b6)](_0x246299[_0x2c4c0b(0x193)]()),_0x2ce9fa=this[_0x2c4c0b(0x1b6)](_0x246299[_0x2c4c0b(0x1b0)]());return{'createdAt':_0x2eeb9b+'-'+_0x263b36+'-'+_0xc9eb2d+'\x20'+_0x41d097+':'+_0x16d06f+':'+_0x2ce9fa,'createdDate':_0x2eeb9b+'-'+_0x263b36+'-'+_0xc9eb2d,'createdTime':_0x41d097+':'+_0x16d06f+':'+_0x2ce9fa};}static['toComponentName'](_0x5940fd){const _0x5f56d9=a257_0x3a67e8,_0x4332b2=_0x5940fd[_0x5f56d9(0x19e)]('/')[_0x5f56d9(0x1c3)]()||_0x5940fd;return _0x4332b2[_0x5f56d9(0x19e)]('-')[_0x5f56d9(0x1bf)](_0x148dc9=>_0x148dc9[_0x5f56d9(0x198)](0x0)[_0x5f56d9(0x1b4)]()+_0x148dc9[_0x5f56d9(0x192)](0x1)[_0x5f56d9(0x18b)]())[_0x5f56d9(0x1c1)]('');}static[a257_0x3a67e8(0x1c5)](_0x535f69){const _0x84509b=a257_0x3a67e8,_0x4e7e8f=_0x535f69[_0x84509b(0x19e)]('/')[_0x84509b(0x1c3)]()||_0x535f69;return _0x4e7e8f[_0x84509b(0x19e)]('-')[_0x84509b(0x1bf)](_0xa0ccd1=>_0xa0ccd1[_0x84509b(0x198)](0x0)[_0x84509b(0x1b4)]()+_0xa0ccd1['slice'](0x1)['toLowerCase']())[_0x84509b(0x1c1)]('\x20');}static['replaceContent'](_0x1f18ce,_0x3607ee,_0xdbc9f0){const _0x4927fb=a257_0x3a67e8,_0x4a44b4=this[_0x4927fb(0x1b9)](_0x3607ee),_0x29acf6=this[_0x4927fb(0x1c5)](_0x3607ee),{createdAt:_0x7b066e,createdDate:_0x1869b1,createdTime:_0x11a06c}=this[_0x4927fb(0x190)](new Date());let _0x56a5cf=_0x1f18ce[_0x4927fb(0x1ac)](/\{CliVersion\}/g,CLI_VERSION)[_0x4927fb(0x1ac)](/\{ComponentName\}/g,_0x4a44b4)[_0x4927fb(0x1ac)](/\{DisplayTitle\}/g,_0x29acf6)[_0x4927fb(0x1ac)](/\{PageName\}/g,_0x3607ee)[_0x4927fb(0x1ac)](/\{TemplateName\}/g,_0xdbc9f0)[_0x4927fb(0x1ac)](/\{CreatedAt\}/g,_0x7b066e)['replace'](/\{CreatedDate\}/g,_0x1869b1)[_0x4927fb(0x1ac)](/\{CreatedTime\}/g,_0x11a06c);return _0x56a5cf;}static[a257_0x3a67e8(0x1b1)](_0x3d30b4,_0x203f4e,_0x47fd8c,_0x2c0704,_0x124130,_0x5470c9,_0x29c4c2,_0x52207b){const _0x1e93ae=a257_0x3a67e8,_0x45232d=new Date(),_0x4c8da2=_0x45232d[_0x1e93ae(0x1ba)](),_0x508655=_0x47fd8c[_0x1e93ae(0x1bf)](_0x292bd3=>{const _0x43cc64=_0x1e93ae,_0x415ac3=[_0x43cc64(0x18d)+_0x292bd3[_0x43cc64(0x18f)]+'\x22',_0x43cc64(0x1a2)+_0x292bd3[_0x43cc64(0x17f)]+'\x22','name:\x20\x22'+_0x292bd3[_0x43cc64(0x19c)]+'\x22'];return _0x292bd3[_0x43cc64(0x1c2)]&&_0x415ac3[_0x43cc64(0x197)](_0x43cc64(0x185)+_0x292bd3[_0x43cc64(0x1c2)]+'\x22'),_0x43cc64(0x1a1)+_0x415ac3[_0x43cc64(0x1c1)](',\x20')+'\x20},';})[_0x1e93ae(0x1c1)](''),_0x56d395=_0x2c0704||_0x47fd8c[0x0]?.[_0x1e93ae(0x1c2)]||'YourModel';let _0xacb690=_0x3d30b4['replace'](/\{AppCode\}/g,_0x203f4e)['replace'](/\{ModelConfigs\}/g,_0x508655)[_0x1e93ae(0x1ac)](/\{ExampleModelName\}/g,_0x56d395)[_0x1e93ae(0x1ac)](/\{ApiFileName\}/g,_0x124130||'api')[_0x1e93ae(0x1ac)](/\{ConfigName\}/g,_0x5470c9||_0x1e93ae(0x194))[_0x1e93ae(0x1ac)](/\{ClientConfigParam\}/g,_0x29c4c2||'')[_0x1e93ae(0x1ac)](/\{VarPrefix\}/g,_0x52207b||_0x1e93ae(0x1a4))[_0x1e93ae(0x1ac)](/\{CreatedAt\}/g,_0x4c8da2);return _0xacb690;}static async['processTemplate'](_0x159b16,_0x4f6fd7,_0x1a3c7e,_0x4a4def,_0x403282=!![]){const _0x1ec31e=a257_0x3a67e8,_0x352568=Date['now']();try{_0x403282&&logger['info'](_0x1ec31e(0x1a7),_0x1ec31e(0x19a),{'templatePath':_0x159b16,'targetPath':_0x4f6fd7,'pageName':_0x1a3c7e,'templateName':_0x4a4def});await a257_0x4dfd38[_0x1ec31e(0x1c4)]['mkdir'](_0x4f6fd7,{'recursive':!![]}),await this['processDirectory'](_0x159b16,_0x4f6fd7,_0x1a3c7e,_0x4a4def);if(_0x403282){const _0x51a271=Date['now']()-_0x352568;logger[_0x1ec31e(0x1b7)](_0x1ec31e(0x1a7),_0x1ec31e(0x1c0),_0x51a271,{'pageName':_0x1a3c7e,'templateName':_0x4a4def});}}catch(_0x2ee39d){if(_0x403282){const _0xdcf89c=Date[_0x1ec31e(0x196)]()-_0x352568;logger[_0x1ec31e(0x1b2)](_0x1ec31e(0x1a7),_0x1ec31e(0x1b8),{'templatePath':_0x159b16,'targetPath':_0x4f6fd7,'pageName':_0x1a3c7e,'templateName':_0x4a4def,'error':_0x2ee39d instanceof Error?_0x2ee39d[_0x1ec31e(0x1b3)]:String(_0x2ee39d),'duration':_0xdcf89c});}throw _0x2ee39d;}}static async[a257_0x3a67e8(0x189)](_0x40da93,_0x1b5ec7,_0x2853e0,_0x132743){const _0x33f9cc=a257_0x3a67e8,_0xa2283b=await a257_0x4dfd38[_0x33f9cc(0x1c4)][_0x33f9cc(0x187)](_0x40da93,{'withFileTypes':!![]});for(const _0x9a9306 of _0xa2283b){const _0x5e4990=a257_0x681b0c[_0x33f9cc(0x1c1)](_0x40da93,_0x9a9306['name']);let _0x1ae809=a257_0x681b0c[_0x33f9cc(0x1c1)](_0x1b5ec7,_0x9a9306[_0x33f9cc(0x19c)]);_0x9a9306[_0x33f9cc(0x19c)][_0x33f9cc(0x1a8)](_0x33f9cc(0x180))&&(_0x1ae809=a257_0x681b0c[_0x33f9cc(0x1c1)](_0x1b5ec7,_0x9a9306['name'][_0x33f9cc(0x1ac)](/\.tpl$/,'')));if(_0x9a9306[_0x33f9cc(0x181)]())await a257_0x4dfd38[_0x33f9cc(0x1c4)][_0x33f9cc(0x186)](_0x1ae809,{'recursive':!![]}),await this['processDirectory'](_0x5e4990,_0x1ae809,_0x2853e0,_0x132743);else _0x9a9306[_0x33f9cc(0x1ae)]()&&await this[_0x33f9cc(0x1a0)](_0x5e4990,_0x1ae809,_0x2853e0,_0x132743);}}static async[a257_0x3a67e8(0x1a0)](_0x266a10,_0x442b87,_0x5b6e77,_0x61a10f){const _0x53d769=a257_0x3a67e8,_0x3a6e23=a257_0x681b0c[_0x53d769(0x1a3)](_0x266a10)['toLowerCase']();_0x266a10[_0x53d769(0x1a8)](_0x53d769(0x180))&&(_0x442b87=_0x442b87[_0x53d769(0x1ac)](/\.tpl$/,''));const _0x3f6a4b=[_0x53d769(0x18e),'.ts',_0x53d769(0x19b),_0x53d769(0x1aa),_0x53d769(0x188),_0x53d769(0x1bb),'.css',_0x53d769(0x182),'.tpl'];if(_0x3f6a4b[_0x53d769(0x18c)](_0x3a6e23)||_0x266a10[_0x53d769(0x1a8)]('.tpl')){const _0x485ad5=await a257_0x4dfd38[_0x53d769(0x1c4)][_0x53d769(0x1ad)](_0x266a10,_0x53d769(0x199)),_0x3435d7=this[_0x53d769(0x191)](_0x485ad5,_0x5b6e77,_0x61a10f);await a257_0x4dfd38['promises'][_0x53d769(0x1bc)](_0x442b87,_0x3435d7,_0x53d769(0x199));}else await a257_0x4dfd38[_0x53d769(0x1c4)][_0x53d769(0x17d)](_0x266a10,_0x442b87);}}
@@ -1 +1 @@
1
- (function(_0x10eeb5,_0x1450cf){const _0x728c8f=a245_0x9e86,_0x581f03=_0x10eeb5();while(!![]){try{const _0x15e942=-parseInt(_0x728c8f(0x8d))/0x1*(parseInt(_0x728c8f(0xa5))/0x2)+-parseInt(_0x728c8f(0xa1))/0x3+parseInt(_0x728c8f(0x96))/0x4+parseInt(_0x728c8f(0x8e))/0x5+-parseInt(_0x728c8f(0xa7))/0x6+parseInt(_0x728c8f(0x90))/0x7+parseInt(_0x728c8f(0x91))/0x8*(parseInt(_0x728c8f(0xa9))/0x9);if(_0x15e942===_0x1450cf)break;else _0x581f03['push'](_0x581f03['shift']());}catch(_0x26478d){_0x581f03['push'](_0x581f03['shift']());}}}(a245_0x5a3f,0x66e3a));import{mkdir,readFile,writeFile}from'node:fs/promises';import{homedir}from'node:os';import{dirname,join}from'node:path';import a245_0x4df890 from'semver';function a245_0x9e86(_0x2389d4,_0x4d269f){_0x2389d4=_0x2389d4-0x8d;const _0x5a3f36=a245_0x5a3f();let _0x9e862f=_0x5a3f36[_0x2389d4];return _0x9e862f;}import{CLI_BIN_NAME,NPM_PACKAGE_NAME}from'../constant/cli.js';import{getCliVersionPolicy}from'../utils/cli-version-policy.js';function a245_0x5a3f(){const _0x2ba19d=['2515428nKrqoH','utf8','9JkuHTB','2kSPhsF','829215xMJsSB','\x20update','1694721EleXaH','5573624UxBfCM','rabetbase-cli','toLowerCase','now','true','139060yCrFYS','update-check.json','yes','gte','trim','lastNotifiedAt','number','.cache','stringify','checkedAt','/v/','613536aoGLNF','valid',',\x20run:\x20','https://www.npmjs.com/package/','94230QDglzm','\x20available,\x20current\x20'];a245_0x5a3f=function(){return _0x2ba19d;};return a245_0x5a3f();}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 _0x37decd=a245_0x9e86,_0x4d079e=process.env.RABETBASE_NO_UPDATE_NOTICE?.[_0x37decd(0x9a)]()[_0x37decd(0x93)]();return _0x4d079e==='1'||_0x4d079e===_0x37decd(0x95)||_0x4d079e===_0x37decd(0x98);}function cacheRoot(){const _0x21f842=a245_0x9e86;return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),_0x21f842(0x9d));}export function getUpdateNoticeCachePath(){const _0x3c8564=a245_0x9e86;return join(cacheRoot(),_0x3c8564(0x92),_0x3c8564(0x97));}async function readUpdateNoticeCache(){try{const _0x1df988=await readFile(getUpdateNoticeCachePath(),'utf8'),_0x4a64a2=JSON['parse'](_0x1df988);if(!_0x4a64a2||typeof _0x4a64a2!=='object')return{};return _0x4a64a2;}catch{return{};}}async function writeUpdateNoticeCache(_0xda1cd7){const _0x396c5d=a245_0x9e86;try{const _0x4debcd=getUpdateNoticeCachePath();await mkdir(dirname(_0x4debcd),{'recursive':!![]}),await writeFile(_0x4debcd,JSON[_0x396c5d(0x9e)](_0xda1cd7,null,0x2)+'\x0a',_0x396c5d(0xa8));}catch{}}function isFreshCheck(_0x1d8f2c,_0x1220c4){const _0x33f887=a245_0x9e86;return typeof _0x1d8f2c[_0x33f887(0x9f)]===_0x33f887(0x9c)&&_0x1220c4-_0x1d8f2c[_0x33f887(0x9f)]<UPDATE_CHECK_TTL_MS;}function isRecentlyNotified(_0x5d49bf,_0x3335b5,_0x1f760f){const _0x5c3271=a245_0x9e86;return _0x5d49bf['lastNotifiedVersion']===_0x3335b5&&typeof _0x5d49bf[_0x5c3271(0x9b)]==='number'&&_0x1f760f-_0x5d49bf['lastNotifiedAt']<UPDATE_NOTICE_TTL_MS;}export function buildNpmVersionUrl(_0x551421){const _0x19da2f=a245_0x9e86;return _0x19da2f(0xa4)+NPM_PACKAGE_NAME+_0x19da2f(0xa0)+_0x551421;}export async function resolveLatestUpdateNotice(){const _0x500c54=a245_0x9e86;if(isUpdateNoticeDisabled())return null;try{const _0xc0f002=Date[_0x500c54(0x94)](),_0x4ef48c=getCliVersion(),_0x2cf119=await readUpdateNoticeCache();let _0x586546=isFreshCheck(_0x2cf119,_0xc0f002)?_0x2cf119['latest']?.[_0x500c54(0x9a)]():undefined;if(!_0x586546&&!isFreshCheck(_0x2cf119,_0xc0f002)){const _0x38a810=await getCliVersionPolicy();_0x586546=_0x38a810?.['stableVersion']?.[_0x500c54(0x9a)]()||undefined,await writeUpdateNoticeCache({..._0x2cf119,'checkedAt':_0xc0f002,'latest':_0x586546,'failed':!_0x586546});}if(!_0x586546||!a245_0x4df890[_0x500c54(0xa2)](_0x4ef48c)||!a245_0x4df890['valid'](_0x586546))return null;if(a245_0x4df890[_0x500c54(0x99)](_0x4ef48c,_0x586546))return null;if(isRecentlyNotified(_0x2cf119,_0x586546,_0xc0f002))return null;const _0xf84d13=CLI_BIN_NAME+_0x500c54(0x8f);return await writeUpdateNoticeCache({..._0x2cf119,'checkedAt':isFreshCheck(_0x2cf119,_0xc0f002)?_0x2cf119[_0x500c54(0x9f)]:_0xc0f002,'latest':_0x586546,'failed':![],'lastNotifiedVersion':_0x586546,'lastNotifiedAt':_0xc0f002}),{'command':_0xf84d13,'current':_0x4ef48c,'latest':_0x586546,'url':buildNpmVersionUrl(_0x586546),'message':CLI_BIN_NAME+'\x20'+_0x586546+_0x500c54(0xa6)+_0x4ef48c+_0x500c54(0xa3)+_0xf84d13};}catch{return null;}}
1
+ (function(_0x51a13e,_0xd937a7){const _0x448bcc=a258_0x4732,_0x58f8c3=_0x51a13e();while(!![]){try{const _0x34c7d7=parseInt(_0x448bcc(0x176))/0x1+parseInt(_0x448bcc(0x184))/0x2+parseInt(_0x448bcc(0x18b))/0x3+parseInt(_0x448bcc(0x177))/0x4*(parseInt(_0x448bcc(0x181))/0x5)+parseInt(_0x448bcc(0x17e))/0x6*(-parseInt(_0x448bcc(0x175))/0x7)+-parseInt(_0x448bcc(0x179))/0x8+parseInt(_0x448bcc(0x18a))/0x9*(parseInt(_0x448bcc(0x182))/0xa);if(_0x34c7d7===_0xd937a7)break;else _0x58f8c3['push'](_0x58f8c3['shift']());}catch(_0x4d337e){_0x58f8c3['push'](_0x58f8c3['shift']());}}}(a258_0x1dda,0x9824e));function a258_0x1dda(){const _0x9c91d5=['lastNotifiedAt','gte','18QelPRb','326796hPYMdN','utf8','object','469lkAAXU','704944RBNHnU','4JliMMo','yes','6742784eniRty','\x20update','update-check.json','trim','parse','50826qrxdkc',',\x20run:\x20','valid','502595cONwQf','1006330CcNiZD','.cache','1835852zsMCNl','lastNotifiedVersion','toLowerCase','checkedAt'];a258_0x1dda=function(){return _0x9c91d5;};return a258_0x1dda();}import{mkdir,readFile,writeFile}from'node:fs/promises';import{homedir}from'node:os';import{dirname,join}from'node:path';import a258_0x42eb79 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 a258_0x4732(_0x43671d,_0x24400d){_0x43671d=_0x43671d-0x174;const _0x1ddacd=a258_0x1dda();let _0x4732a6=_0x1ddacd[_0x43671d];return _0x4732a6;}function isUpdateNoticeDisabled(){const _0x2662eb=a258_0x4732,_0x3b2c9d=process.env.RABETBASE_NO_UPDATE_NOTICE?.[_0x2662eb(0x17c)]()[_0x2662eb(0x186)]();return _0x3b2c9d==='1'||_0x3b2c9d==='true'||_0x3b2c9d===_0x2662eb(0x178);}function cacheRoot(){const _0x11e98c=a258_0x4732;return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),_0x11e98c(0x183));}export function getUpdateNoticeCachePath(){const _0x5b818b=a258_0x4732;return join(cacheRoot(),'rabetbase-cli',_0x5b818b(0x17b));}async function readUpdateNoticeCache(){const _0x55e889=a258_0x4732;try{const _0x291825=await readFile(getUpdateNoticeCachePath(),_0x55e889(0x18c)),_0x3e2c7b=JSON[_0x55e889(0x17d)](_0x291825);if(!_0x3e2c7b||typeof _0x3e2c7b!==_0x55e889(0x174))return{};return _0x3e2c7b;}catch{return{};}}async function writeUpdateNoticeCache(_0x1c9cd5){try{const _0x1329be=getUpdateNoticeCachePath();await mkdir(dirname(_0x1329be),{'recursive':!![]}),await writeFile(_0x1329be,JSON['stringify'](_0x1c9cd5,null,0x2)+'\x0a','utf8');}catch{}}function isFreshCheck(_0x10f854,_0x258a0f){const _0x1cb982=a258_0x4732;return typeof _0x10f854[_0x1cb982(0x187)]==='number'&&_0x258a0f-_0x10f854[_0x1cb982(0x187)]<UPDATE_CHECK_TTL_MS;}function isRecentlyNotified(_0x42a8f3,_0x517c25,_0xac44fe){const _0x15c133=a258_0x4732;return _0x42a8f3[_0x15c133(0x185)]===_0x517c25&&typeof _0x42a8f3[_0x15c133(0x188)]==='number'&&_0xac44fe-_0x42a8f3[_0x15c133(0x188)]<UPDATE_NOTICE_TTL_MS;}export function buildNpmVersionUrl(_0x713cea){return'https://www.npmjs.com/package/'+NPM_PACKAGE_NAME+'/v/'+_0x713cea;}export async function resolveLatestUpdateNotice(){const _0x297fdf=a258_0x4732;if(isUpdateNoticeDisabled())return null;try{const _0x2ee661=Date['now'](),_0x48a848=getCliVersion(),_0x2b83ab=await readUpdateNoticeCache();let _0x27d809=isFreshCheck(_0x2b83ab,_0x2ee661)?_0x2b83ab['latest']?.['trim']():undefined;if(!_0x27d809&&!isFreshCheck(_0x2b83ab,_0x2ee661)){const _0x2ea190=await getCliVersionPolicy();_0x27d809=_0x2ea190?.['stableVersion']?.[_0x297fdf(0x17c)]()||undefined,await writeUpdateNoticeCache({..._0x2b83ab,'checkedAt':_0x2ee661,'latest':_0x27d809,'failed':!_0x27d809});}if(!_0x27d809||!a258_0x42eb79[_0x297fdf(0x180)](_0x48a848)||!a258_0x42eb79[_0x297fdf(0x180)](_0x27d809))return null;if(a258_0x42eb79[_0x297fdf(0x189)](_0x48a848,_0x27d809))return null;if(isRecentlyNotified(_0x2b83ab,_0x27d809,_0x2ee661))return null;const _0x36f1ab=CLI_BIN_NAME+_0x297fdf(0x17a);return await writeUpdateNoticeCache({..._0x2b83ab,'checkedAt':isFreshCheck(_0x2b83ab,_0x2ee661)?_0x2b83ab['checkedAt']:_0x2ee661,'latest':_0x27d809,'failed':![],'lastNotifiedVersion':_0x27d809,'lastNotifiedAt':_0x2ee661}),{'command':_0x36f1ab,'current':_0x48a848,'latest':_0x27d809,'url':buildNpmVersionUrl(_0x27d809),'message':CLI_BIN_NAME+'\x20'+_0x27d809+'\x20available,\x20current\x20'+_0x48a848+_0x297fdf(0x17f)+_0x36f1ab};}catch{return null;}}
@@ -1 +1 @@
1
- function a246_0x495f(){var _0x276935=['21qQMliT','186mxKqpa','10CGuyBT','6289404Fiwhix','32DFTVxB','13BELVZU','1222TKPXYJ','195945hKeIOw','2788524atihnt','1846njvolv','10262028WqrKDx','810604wkcTGF','59885ZoZsLU'];a246_0x495f=function(){return _0x276935;};return a246_0x495f();}(function(_0x501639,_0x17403a){var _0x599536=a246_0x262d,_0x1a69a1=_0x501639();while(!![]){try{var _0x3678f4=-parseInt(_0x599536(0xb4))/0x1*(-parseInt(_0x599536(0xb1))/0x2)+-parseInt(_0x599536(0xb8))/0x3*(-parseInt(_0x599536(0xb6))/0x4)+-parseInt(_0x599536(0xb2))/0x5*(parseInt(_0x599536(0xac))/0x6)+parseInt(_0x599536(0xb7))/0x7*(parseInt(_0x599536(0xaf))/0x8)+parseInt(_0x599536(0xb3))/0x9*(-parseInt(_0x599536(0xad))/0xa)+parseInt(_0x599536(0xae))/0xb+-parseInt(_0x599536(0xb5))/0xc*(parseInt(_0x599536(0xb0))/0xd);if(_0x3678f4===_0x17403a)break;else _0x1a69a1['push'](_0x1a69a1['shift']());}catch(_0x5d42f1){_0x1a69a1['push'](_0x1a69a1['shift']());}}}(a246_0x495f,0xbc9e7));function a246_0x262d(_0x2ec4d3,_0x1433d3){_0x2ec4d3=_0x2ec4d3-0xac;var _0x495f3e=a246_0x495f();var _0x262d60=_0x495f3e[_0x2ec4d3];return _0x262d60;}import{VERSION}from'../generated/build-info.js';export function getCliVersion(){return VERSION;}
1
+ (function(_0x10b26d,_0x9a1545){var _0x992c95=a259_0x199a,_0x351d97=_0x10b26d();while(!![]){try{var _0x3ddda5=-parseInt(_0x992c95(0x79))/0x1*(-parseInt(_0x992c95(0x7f))/0x2)+parseInt(_0x992c95(0x7d))/0x3+-parseInt(_0x992c95(0x7b))/0x4+-parseInt(_0x992c95(0x80))/0x5+-parseInt(_0x992c95(0x7e))/0x6*(parseInt(_0x992c95(0x82))/0x7)+-parseInt(_0x992c95(0x7c))/0x8*(-parseInt(_0x992c95(0x83))/0x9)+-parseInt(_0x992c95(0x81))/0xa*(-parseInt(_0x992c95(0x7a))/0xb);if(_0x3ddda5===_0x9a1545)break;else _0x351d97['push'](_0x351d97['shift']());}catch(_0x44827f){_0x351d97['push'](_0x351d97['shift']());}}}(a259_0x21c7,0x237f2));import{VERSION}from'../generated/build-info.js';export function getCliVersion(){return VERSION;}function a259_0x199a(_0x46a04a,_0x243122){_0x46a04a=_0x46a04a-0x79;var _0x21c7d9=a259_0x21c7();var _0x199ab7=_0x21c7d9[_0x46a04a];return _0x199ab7;}function a259_0x21c7(){var _0x12f8d5=['567RdOImW','909DqNMFk','1OePpYP','401170QnURck','762900dcBvKL','12112KYPCfX','245190YCwTuY','10284jypJOq','474662IgAOhl','1443910WZuNKy','80buVand'];a259_0x21c7=function(){return _0x12f8d5;};return a259_0x21c7();}
@@ -1 +1 @@
1
- function a247_0x535b(_0x2e5a7d,_0xaa6e73){_0x2e5a7d=_0x2e5a7d-0x128;var _0x54420d=a247_0x5442();var _0x535b66=_0x54420d[_0x2e5a7d];return _0x535b66;}(function(_0x4b170f,_0x573ede){var _0x507452=a247_0x535b,_0x576692=_0x4b170f();while(!![]){try{var _0x2f175c=parseInt(_0x507452(0x12d))/0x1*(parseInt(_0x507452(0x128))/0x2)+parseInt(_0x507452(0x130))/0x3+parseInt(_0x507452(0x129))/0x4*(parseInt(_0x507452(0x132))/0x5)+parseInt(_0x507452(0x12a))/0x6*(parseInt(_0x507452(0x12c))/0x7)+-parseInt(_0x507452(0x12f))/0x8*(-parseInt(_0x507452(0x12b))/0x9)+parseInt(_0x507452(0x131))/0xa+-parseInt(_0x507452(0x12e))/0xb;if(_0x2f175c===_0x573ede)break;else _0x576692['push'](_0x576692['shift']());}catch(_0x7b1f43){_0x576692['push'](_0x576692['shift']());}}}(a247_0x5442,0xb302c));import{setActiveCookie,clearActiveCookie}from'../core/api-client.js';export async function withActiveCookie(_0x4ae85e,_0x13c6b2){setActiveCookie(_0x4ae85e);try{return await _0x13c6b2();}finally{clearActiveCookie();}}function a247_0x5442(){var _0x12a020=['25731qMykxG','7hqtfQl','19368dUeSSo','22513150jBKwMq','1720pscOQL','1456929eDvfaX','1644400OuuRgb','5AlCcdx','22FtSqPX','2564532NXYgKN','3965574yyOeiB'];a247_0x5442=function(){return _0x12a020;};return a247_0x5442();}
1
+ function a260_0x4791(){var _0x1ce4e3=['19580oLkjfn','2755208GpvHjz','16170348gXrEty','1512838fkPtqA','11DmoKZW','100BztqvG','128664YANSNi','99415LACZYU','16BDEELw','3SAqVQG','228lGLqAD','796383ngjVza'];a260_0x4791=function(){return _0x1ce4e3;};return a260_0x4791();}(function(_0x471500,_0x530384){var _0x38ae71=a260_0x6df9,_0xb4b635=_0x471500();while(!![]){try{var _0x238443=parseInt(_0x38ae71(0x1a1))/0x1+-parseInt(_0x38ae71(0x1a4))/0x2*(parseInt(_0x38ae71(0x19e))/0x3)+parseInt(_0x38ae71(0x1a2))/0x4+parseInt(_0x38ae71(0x19c))/0x5*(-parseInt(_0x38ae71(0x19f))/0x6)+-parseInt(_0x38ae71(0x1a0))/0x7*(parseInt(_0x38ae71(0x19d))/0x8)+-parseInt(_0x38ae71(0x19b))/0x9*(-parseInt(_0x38ae71(0x19a))/0xa)+parseInt(_0x38ae71(0x1a5))/0xb*(parseInt(_0x38ae71(0x1a3))/0xc);if(_0x238443===_0x530384)break;else _0xb4b635['push'](_0xb4b635['shift']());}catch(_0xd0552e){_0xb4b635['push'](_0xb4b635['shift']());}}}(a260_0x4791,0x70260));import{setActiveCookie,clearActiveCookie}from'../core/api-client.js';function a260_0x6df9(_0x40d61e,_0xfdae6e){_0x40d61e=_0x40d61e-0x19a;var _0x4791d8=a260_0x4791();var _0x6df9f4=_0x4791d8[_0x40d61e];return _0x6df9f4;}export async function withActiveCookie(_0x24b8c2,_0x558a34){setActiveCookie(_0x24b8c2);try{return await _0x558a34();}finally{clearActiveCookie();}}
@@ -1 +1 @@
1
- (function(_0x451dd1,_0x4ccd25){var _0x3163ea=a248_0x4d8c,_0x226fca=_0x451dd1();while(!![]){try{var _0x65230d=-parseInt(_0x3163ea(0x92))/0x1*(parseInt(_0x3163ea(0x87))/0x2)+parseInt(_0x3163ea(0x8a))/0x3*(-parseInt(_0x3163ea(0x8d))/0x4)+-parseInt(_0x3163ea(0x8e))/0x5*(parseInt(_0x3163ea(0x8b))/0x6)+-parseInt(_0x3163ea(0x8f))/0x7+parseInt(_0x3163ea(0x93))/0x8*(parseInt(_0x3163ea(0x8c))/0x9)+-parseInt(_0x3163ea(0x88))/0xa+parseInt(_0x3163ea(0x90))/0xb;if(_0x65230d===_0x4ccd25)break;else _0x226fca['push'](_0x226fca['shift']());}catch(_0x451ce6){_0x226fca['push'](_0x226fca['shift']());}}}(a248_0x3a23,0xb085e));function a248_0x4d8c(_0x90df61,_0x3abd3e){_0x90df61=_0x90df61-0x87;var _0x3a233a=a248_0x3a23();var _0x4d8c55=_0x3a233a[_0x90df61];return _0x4d8c55;}export function writeCliSideChannelLine(_0xef67d2){var _0x1eeaf7=a248_0x4d8c;process[_0x1eeaf7(0x89)][_0x1eeaf7(0x91)](_0xef67d2+'\x0a');}function a248_0x3a23(){var _0x5c1248=['write','665174fTmFZC','2824AwBOMv','2GNYBze','2109760ZwGlOZ','stderr','21dtONFl','8886oDbpjM','22239EYaQum','544212ztIHup','415GIfPEH','7682486OtaYEk','31896887AntuUd'];a248_0x3a23=function(){return _0x5c1248;};return a248_0x3a23();}
1
+ (function(_0x551c5e,_0x1f46bc){var _0x38ca7d=a261_0x222e,_0x375f4a=_0x551c5e();while(!![]){try{var _0x307b99=parseInt(_0x38ca7d(0x140))/0x1*(parseInt(_0x38ca7d(0x144))/0x2)+-parseInt(_0x38ca7d(0x142))/0x3*(parseInt(_0x38ca7d(0x146))/0x4)+-parseInt(_0x38ca7d(0x13f))/0x5+parseInt(_0x38ca7d(0x147))/0x6+parseInt(_0x38ca7d(0x13d))/0x7+parseInt(_0x38ca7d(0x143))/0x8+parseInt(_0x38ca7d(0x13e))/0x9*(-parseInt(_0x38ca7d(0x145))/0xa);if(_0x307b99===_0x1f46bc)break;else _0x375f4a['push'](_0x375f4a['shift']());}catch(_0x311cc0){_0x375f4a['push'](_0x375f4a['shift']());}}}(a261_0x288d,0xd973c));function a261_0x288d(){var _0xd05c93=['996MlKfva','6473862ySdNwq','stderr','9612169MqpCxY','36pdbpdz','3599990AnpDrn','1BBwHCd','write','20301EvIPuF','1437152FgaGix','2120578eAlQev','991030HjnYeo'];a261_0x288d=function(){return _0xd05c93;};return a261_0x288d();}function a261_0x222e(_0x5baa65,_0x4a98c9){_0x5baa65=_0x5baa65-0x13c;var _0x288d62=a261_0x288d();var _0x222e67=_0x288d62[_0x5baa65];return _0x222e67;}export function writeCliSideChannelLine(_0x156b3f){var _0x2cab86=a261_0x222e;process[_0x2cab86(0x13c)][_0x2cab86(0x141)](_0x156b3f+'\x0a');}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lovrabet/rabetbase-cli",
3
- "version": "2.3.9-beta.2",
3
+ "version": "2.3.9",
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": [