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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (259) hide show
  1. package/lib/api/api-doc.js +1 -1
  2. package/lib/api/fetch-model-list.js +1 -1
  3. package/lib/api/generate-api-file.js +1 -1
  4. package/lib/auth/auth-server-ui.js +1 -1
  5. package/lib/auth/auth-server.js +1 -1
  6. package/lib/auth/constant.js +1 -1
  7. package/lib/auth/get-cookie.js +1 -1
  8. package/lib/auth/get-session-user.js +1 -1
  9. package/lib/auth/is-session-valid.js +1 -1
  10. package/lib/auth/login-success-html.js +1 -1
  11. package/lib/auth/logout.js +1 -1
  12. package/lib/cli-flags.js +1 -1
  13. package/lib/cli.js +1 -1
  14. package/lib/commands/api/generate.js +1 -1
  15. package/lib/commands/api/index.js +1 -1
  16. package/lib/commands/api/list.js +1 -1
  17. package/lib/commands/api/pull.js +1 -1
  18. package/lib/commands/api/shared.js +1 -1
  19. package/lib/commands/app/add.js +1 -1
  20. package/lib/commands/app/index.js +1 -1
  21. package/lib/commands/app/list.js +1 -1
  22. package/lib/commands/app/remote-directory.js +1 -1
  23. package/lib/commands/app/remove.js +1 -1
  24. package/lib/commands/app/shared.js +1 -1
  25. package/lib/commands/app-config/delete.js +1 -1
  26. package/lib/commands/app-config/get.js +1 -1
  27. package/lib/commands/app-config/index.js +1 -1
  28. package/lib/commands/app-config/list.js +1 -1
  29. package/lib/commands/app-config/set.js +1 -1
  30. package/lib/commands/app-config/shared.js +1 -1
  31. package/lib/commands/auth/index.js +1 -1
  32. package/lib/commands/bff/create.js +1 -1
  33. package/lib/commands/bff/delete.js +1 -1
  34. package/lib/commands/bff/detail.js +1 -1
  35. package/lib/commands/bff/index.js +1 -1
  36. package/lib/commands/bff/list.js +1 -1
  37. package/lib/commands/bff/pull.js +1 -1
  38. package/lib/commands/bff/push.js +1 -1
  39. package/lib/commands/bff/status.js +1 -1
  40. package/lib/commands/cli-skill/index.js +1 -1
  41. package/lib/commands/cli-update.js +1 -1
  42. package/lib/commands/codegen/index.js +1 -1
  43. package/lib/commands/codegen/sdk.js +1 -1
  44. package/lib/commands/codegen/sql.js +1 -1
  45. package/lib/commands/common/app-registry.js +1 -1
  46. package/lib/commands/common/app-selector.js +1 -1
  47. package/lib/commands/common/async-task.js +1 -1
  48. package/lib/commands/common/dry-run.js +1 -1
  49. package/lib/commands/common/flags.js +1 -1
  50. package/lib/commands/common/local-file.js +1 -1
  51. package/lib/commands/common/validate.js +1 -1
  52. package/lib/commands/config/get.js +1 -1
  53. package/lib/commands/config/index.js +1 -1
  54. package/lib/commands/config/list.js +1 -1
  55. package/lib/commands/config/set.js +1 -1
  56. package/lib/commands/config/shared.js +1 -1
  57. package/lib/commands/data/filter.js +1 -1
  58. package/lib/commands/data/getOne.js +1 -1
  59. package/lib/commands/data/index.js +1 -1
  60. package/lib/commands/data/shared.js +1 -1
  61. package/lib/commands/dataset/business-group-update.js +1 -1
  62. package/lib/commands/dataset/capability.js +1 -1
  63. package/lib/commands/dataset/delete.js +1 -1
  64. package/lib/commands/dataset/detail.js +1 -1
  65. package/lib/commands/dataset/extend-update.js +1 -1
  66. package/lib/commands/dataset/field-update.js +1 -1
  67. package/lib/commands/dataset/generate.js +1 -1
  68. package/lib/commands/dataset/index.js +1 -1
  69. package/lib/commands/dataset/list.js +1 -1
  70. package/lib/commands/dataset/operations.js +1 -1
  71. package/lib/commands/dataset/relation-audit.js +1 -1
  72. package/lib/commands/dataset/relation-create.js +1 -1
  73. package/lib/commands/dataset/relation-delete.js +1 -1
  74. package/lib/commands/dataset/relation-shared.js +1 -1
  75. package/lib/commands/dataset/relation-update.js +1 -1
  76. package/lib/commands/dataset/relations.js +1 -1
  77. package/lib/commands/dataset/rename.js +1 -1
  78. package/lib/commands/dataset/restore.js +1 -1
  79. package/lib/commands/db/analysis-batching.js +1 -1
  80. package/lib/commands/db/analyze-batch-plan.js +1 -1
  81. package/lib/commands/db/analyze-cancel.js +1 -1
  82. package/lib/commands/db/analyze-start.js +1 -1
  83. package/lib/commands/db/analyze-status.js +1 -1
  84. package/lib/commands/db/create.js +1 -1
  85. package/lib/commands/db/delete.js +1 -1
  86. package/lib/commands/db/detail.js +1 -1
  87. package/lib/commands/db/diff.js +1 -1
  88. package/lib/commands/db/index.js +1 -1
  89. package/lib/commands/db/list.js +1 -1
  90. package/lib/commands/db/shared.js +1 -1
  91. package/lib/commands/db/tables.js +1 -1
  92. package/lib/commands/db/test.js +1 -1
  93. package/lib/commands/db/update.js +1 -1
  94. package/lib/commands/doctor.js +1 -1
  95. package/lib/commands/file/index.js +1 -1
  96. package/lib/commands/init/index.js +1 -1
  97. package/lib/commands/issue/index.js +1 -1
  98. package/lib/commands/issue/nudge.js +1 -1
  99. package/lib/commands/issue/report.js +1 -1
  100. package/lib/commands/issue/shared.js +1 -1
  101. package/lib/commands/logs/index.js +1 -1
  102. package/lib/commands/menu/delete.js +1 -1
  103. package/lib/commands/menu/external-link-create.js +1 -0
  104. package/lib/commands/menu/group-create.js +1 -1
  105. package/lib/commands/menu/group-update.js +1 -1
  106. package/lib/commands/menu/index.js +1 -1
  107. package/lib/commands/menu/list.js +1 -1
  108. package/lib/commands/menu/regroup-start.js +1 -1
  109. package/lib/commands/menu/shared/compare-table.js +1 -1
  110. package/lib/commands/menu/shared/delete-plan.js +1 -1
  111. package/lib/commands/menu/shared/facts.js +1 -1
  112. package/lib/commands/menu/shared/index.js +1 -1
  113. package/lib/commands/menu/shared/inquirer.js +1 -1
  114. package/lib/commands/menu/shared/local-pages.js +1 -1
  115. package/lib/commands/menu/shared/logic.js +1 -1
  116. package/lib/commands/menu/shared/mutations.js +1 -1
  117. package/lib/commands/menu/shared/service.js +1 -1
  118. package/lib/commands/menu/shared/sync-core.js +1 -1
  119. package/lib/commands/menu/shared/update-core.js +1 -1
  120. package/lib/commands/menu/shared/valid-url.js +1 -1
  121. package/lib/commands/menu/sync.js +1 -1
  122. package/lib/commands/menu/update.js +1 -1
  123. package/lib/commands/notification/config-list.js +1 -1
  124. package/lib/commands/notification/index.js +1 -1
  125. package/lib/commands/page/generate-start.js +1 -1
  126. package/lib/commands/page/generate-status.js +1 -1
  127. package/lib/commands/page/index.js +1 -1
  128. package/lib/commands/page/pull.js +1 -1
  129. package/lib/commands/page/push.js +1 -1
  130. package/lib/commands/page/relation-audit.js +1 -1
  131. package/lib/commands/page/shared.js +1 -1
  132. package/lib/commands/page/standard-page-status.js +1 -1
  133. package/lib/commands/page/sync.js +1 -1
  134. package/lib/commands/permit/index.js +1 -1
  135. package/lib/commands/permit/page-get.js +1 -1
  136. package/lib/commands/permit/page-set.js +1 -1
  137. package/lib/commands/permit/role-apis-set.js +1 -1
  138. package/lib/commands/permit/role-menus-set.js +1 -1
  139. package/lib/commands/permit/role-menus.js +1 -1
  140. package/lib/commands/permit/shared.js +1 -1
  141. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  142. package/lib/commands/project/create/format-elapsed.js +1 -1
  143. package/lib/commands/project/create/main.js +1 -1
  144. package/lib/commands/project/create/non-interactive.js +1 -1
  145. package/lib/commands/project/create/project-template-path.js +1 -1
  146. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  147. package/lib/commands/project/create/use-format-code.js +1 -1
  148. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  149. package/lib/commands/project/index.js +1 -1
  150. package/lib/commands/project/init.js +1 -1
  151. package/lib/commands/project/upgrade.js +1 -1
  152. package/lib/commands/registry.js +1 -1
  153. package/lib/commands/role/create.js +1 -1
  154. package/lib/commands/role/delete.js +1 -1
  155. package/lib/commands/role/detail.js +1 -1
  156. package/lib/commands/role/index.js +1 -1
  157. package/lib/commands/role/list.js +1 -1
  158. package/lib/commands/role/shared.js +1 -1
  159. package/lib/commands/role/update.js +1 -1
  160. package/lib/commands/role/user-add.js +1 -1
  161. package/lib/commands/role/user-remove.js +1 -1
  162. package/lib/commands/role/user-resolve.js +1 -1
  163. package/lib/commands/run/index.js +1 -1
  164. package/lib/commands/schema.js +1 -1
  165. package/lib/commands/sql/create.js +1 -1
  166. package/lib/commands/sql/delete.js +1 -1
  167. package/lib/commands/sql/detail.js +1 -1
  168. package/lib/commands/sql/exec.js +1 -1
  169. package/lib/commands/sql/index.js +1 -1
  170. package/lib/commands/sql/list.js +1 -1
  171. package/lib/commands/sql/pull.js +1 -1
  172. package/lib/commands/sql/push.js +1 -1
  173. package/lib/commands/sql/save.js +1 -1
  174. package/lib/commands/sql/shared.js +1 -1
  175. package/lib/commands/sql/status.js +1 -1
  176. package/lib/commands/sql/validate.js +1 -1
  177. package/lib/commands/task/index.js +1 -1
  178. package/lib/commands/task/status.js +1 -1
  179. package/lib/commands/workspace/add.js +1 -1
  180. package/lib/commands/workspace/index.js +1 -1
  181. package/lib/commands/workspace/remove.js +1 -1
  182. package/lib/config/schema.js +1 -1
  183. package/lib/constant/cdn.js +1 -1
  184. package/lib/constant/cli.js +1 -1
  185. package/lib/constant/defaults.js +1 -1
  186. package/lib/constant/domain.js +1 -1
  187. package/lib/constant/env.js +1 -1
  188. package/lib/constant/output.js +1 -1
  189. package/lib/constant/paths.js +1 -1
  190. package/lib/constant/risk.js +1 -1
  191. package/lib/context/app-resolver.js +1 -1
  192. package/lib/context/auth-resolver.js +1 -1
  193. package/lib/context/config-loader.js +1 -1
  194. package/lib/context.js +1 -1
  195. package/lib/core/alias-resolver.js +1 -1
  196. package/lib/core/api-client.js +1 -1
  197. package/lib/core/bff/config.js +1 -1
  198. package/lib/core/bff/file-system.js +1 -1
  199. package/lib/core/bff/hash.js +1 -1
  200. package/lib/core/bff/lock.js +1 -1
  201. package/lib/core/bff/utils.js +1 -1
  202. package/lib/core/db-resolver.js +1 -1
  203. package/lib/core/page/file-system.js +1 -1
  204. package/lib/core/page/hash.js +1 -1
  205. package/lib/core/page/lock.js +1 -1
  206. package/lib/core/sql-index-auditor.js +1 -1
  207. package/lib/core/sql-sync/config.js +1 -1
  208. package/lib/core/sql-sync/file-system.js +1 -1
  209. package/lib/core/sql-sync/hash.js +1 -1
  210. package/lib/core/sql-sync/lock.js +1 -1
  211. package/lib/core/sql-sync/utils.js +1 -1
  212. package/lib/core/sql-validator.js +1 -1
  213. package/lib/errors.js +1 -1
  214. package/lib/framework/build-all-flags.js +1 -1
  215. package/lib/framework/error-output.js +1 -1
  216. package/lib/framework/explicit-yes.js +1 -1
  217. package/lib/framework/flags.js +1 -1
  218. package/lib/framework/help.js +1 -1
  219. package/lib/framework/index.js +1 -1
  220. package/lib/framework/output.js +1 -1
  221. package/lib/framework/response.js +1 -1
  222. package/lib/framework/runner-alias.js +1 -1
  223. package/lib/framework/runner.js +1 -1
  224. package/lib/framework/schema-export.js +1 -1
  225. package/lib/framework/types.js +1 -1
  226. package/lib/generated/build-info.js +1 -1
  227. package/lib/help.js +1 -1
  228. package/lib/skills/main.js +1 -1
  229. package/lib/skills/npx-skills-add.js +1 -1
  230. package/lib/telemetry/cli-command-trace.js +1 -1
  231. package/lib/telemetry/cli-help-trace.js +1 -1
  232. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  233. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  234. package/lib/telemetry/send-cli-trace-log.js +1 -1
  235. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  236. package/lib/utils/ai_config.js +1 -1
  237. package/lib/utils/apply-jq-filter.js +1 -1
  238. package/lib/utils/cdn-config.js +1 -1
  239. package/lib/utils/check-sdk-version.js +1 -1
  240. package/lib/utils/cli-version-check.js +1 -1
  241. package/lib/utils/cli-version-policy.js +1 -1
  242. package/lib/utils/config.js +1 -1
  243. package/lib/utils/copy-directory.js +1 -1
  244. package/lib/utils/entity-with-id.js +1 -1
  245. package/lib/utils/file-utils.js +1 -1
  246. package/lib/utils/guides-cdn.js +1 -1
  247. package/lib/utils/http-client.js +1 -1
  248. package/lib/utils/is-non-interactive.js +1 -1
  249. package/lib/utils/logger.js +1 -1
  250. package/lib/utils/params.js +1 -1
  251. package/lib/utils/platform.js +1 -1
  252. package/lib/utils/rules-cdn.js +1 -1
  253. package/lib/utils/sleep.js +1 -1
  254. package/lib/utils/template-replacer.js +1 -1
  255. package/lib/utils/update-notice.js +1 -1
  256. package/lib/utils/version.js +1 -1
  257. package/lib/utils/with-active-cookie.js +1 -1
  258. package/lib/utils/write-cli-side-channel.js +1 -1
  259. package/package.json +1 -1
@@ -1 +1 @@
1
- (function(_0x5484f0,_0x26d69b){const _0x3818d4=a251_0x962d,_0x39ea2a=_0x5484f0();while(!![]){try{const _0x192ce1=parseInt(_0x3818d4(0xae))/0x1+parseInt(_0x3818d4(0xa7))/0x2*(-parseInt(_0x3818d4(0xb3))/0x3)+parseInt(_0x3818d4(0xa8))/0x4+parseInt(_0x3818d4(0xad))/0x5*(-parseInt(_0x3818d4(0xb4))/0x6)+parseInt(_0x3818d4(0xa6))/0x7*(parseInt(_0x3818d4(0xb1))/0x8)+parseInt(_0x3818d4(0xaa))/0x9*(-parseInt(_0x3818d4(0xa9))/0xa)+parseInt(_0x3818d4(0xb0))/0xb;if(_0x192ce1===_0x26d69b)break;else _0x39ea2a['push'](_0x39ea2a['shift']());}catch(_0x4a4e8f){_0x39ea2a['push'](_0x39ea2a['shift']());}}}(a251_0x5ba7,0xf2332));function a251_0x962d(_0x4e6696,_0x2e85d3){_0x4e6696=_0x4e6696-0xa5;const _0x5ba75b=a251_0x5ba7();let _0x962de=_0x5ba75b[_0x4e6696];return _0x962de;}function env(_0x1f0c13){return process.env[`RABETBASE_${_0x1f0c13}`]||process.env[`LOVRABET_${_0x1f0c13}`]||undefined;}export function isNonInteractive(_0x2922fd){const _0x4c63be=a251_0x962d;return!!(_0x2922fd['nonInteractive']||_0x2922fd['ci']||env('CI')===_0x4c63be(0xb2)||process.env.CI===_0x4c63be(0xb2)||!process[_0x4c63be(0xb5)][_0x4c63be(0xaf)]||!isStdinRawModeSupported());}function a251_0x5ba7(){const _0x3cd6b8=['setRawMode','5971364ELuyaN','11032tZnVOF','7893424tXdDEg','12704930xrBfYU','9BMlFHp','stdin','isRaw','5VdGkQy','766093LTnpcm','isTTY','21774005OCbUVb','8MvVQXJ','true','1038ALtHGL','8405262HGYvkp','stdout'];a251_0x5ba7=function(){return _0x3cd6b8;};return a251_0x5ba7();}function isStdinRawModeSupported(){const _0x32ba51=a251_0x962d;if(!process['stdin']['isTTY'])return![];try{const _0x37c1d7=process[_0x32ba51(0xab)][_0x32ba51(0xac)];return process[_0x32ba51(0xab)][_0x32ba51(0xa5)](!![]),process[_0x32ba51(0xab)][_0x32ba51(0xa5)](_0x37c1d7??![]),!![];}catch{return![];}}
1
+ (function(_0x3c2cc4,_0x986e70){const _0x957ae8=a252_0x4466,_0x1c991a=_0x3c2cc4();while(!![]){try{const _0x17b6ac=-parseInt(_0x957ae8(0xf1))/0x1*(parseInt(_0x957ae8(0xf4))/0x2)+parseInt(_0x957ae8(0xf2))/0x3+parseInt(_0x957ae8(0xf9))/0x4+-parseInt(_0x957ae8(0xfd))/0x5+-parseInt(_0x957ae8(0xfa))/0x6*(parseInt(_0x957ae8(0xfe))/0x7)+parseInt(_0x957ae8(0xff))/0x8+parseInt(_0x957ae8(0xf6))/0x9;if(_0x17b6ac===_0x986e70)break;else _0x1c991a['push'](_0x1c991a['shift']());}catch(_0x38f219){_0x1c991a['push'](_0x1c991a['shift']());}}}(a252_0x5a8f,0x7af8f));function a252_0x4466(_0xa55f1f,_0x3e8553){_0xa55f1f=_0xa55f1f-0xf1;const _0x5a8f03=a252_0x5a8f();let _0x446675=_0x5a8f03[_0xa55f1f];return _0x446675;}function env(_0xd97a67){return process.env[`RABETBASE_${_0xd97a67}`]||process.env[`LOVRABET_${_0xd97a67}`]||undefined;}export function isNonInteractive(_0x52d04c){const _0x25bdbf=a252_0x4466;return!!(_0x52d04c[_0x25bdbf(0xf5)]||_0x52d04c['ci']||env('CI')==='true'||process.env.CI===_0x25bdbf(0xf8)||!process['stdout'][_0x25bdbf(0xf3)]||!isStdinRawModeSupported());}function a252_0x5a8f(){const _0x2845eb=['232rspaxk','nonInteractive','1728270JyfTEi','setRawMode','true','2597488rkibAj','12YnFvVt','isRaw','stdin','4842175iKbjOB','1816493cfElWx','7335520vDBbCC','399eUCnxh','837210Aqievw','isTTY'];a252_0x5a8f=function(){return _0x2845eb;};return a252_0x5a8f();}function isStdinRawModeSupported(){const _0x1efbd7=a252_0x4466;if(!process[_0x1efbd7(0xfc)]['isTTY'])return![];try{const _0x83a858=process[_0x1efbd7(0xfc)][_0x1efbd7(0xfb)];return process['stdin'][_0x1efbd7(0xf7)](!![]),process[_0x1efbd7(0xfc)][_0x1efbd7(0xf7)](_0x83a858??![]),!![];}catch{return![];}}
@@ -1 +1 @@
1
- const a252_0x239a2c=a252_0x2785;(function(_0x3491dc,_0xcb71e2){const _0x31536c=a252_0x2785,_0x37617b=_0x3491dc();while(!![]){try{const _0x1a26ee=-parseInt(_0x31536c(0x204))/0x1*(parseInt(_0x31536c(0x1fa))/0x2)+-parseInt(_0x31536c(0x1f1))/0x3+-parseInt(_0x31536c(0x203))/0x4*(parseInt(_0x31536c(0x1ec))/0x5)+-parseInt(_0x31536c(0x1e9))/0x6*(parseInt(_0x31536c(0x1e5))/0x7)+parseInt(_0x31536c(0x1ea))/0x8+parseInt(_0x31536c(0x1ff))/0x9+parseInt(_0x31536c(0x1f3))/0xa*(parseInt(_0x31536c(0x214))/0xb);if(_0x1a26ee===_0xcb71e2)break;else _0x37617b['push'](_0x37617b['shift']());}catch(_0x5942bd){_0x37617b['push'](_0x37617b['shift']());}}}(a252_0x2fc2,0x9306a));import a252_0x46a1b1 from'winston';import a252_0x578eee from'node:fs';function a252_0x2fc2(){const _0x4a1617=['mkdirSync','rawCommand','warn','329Htdcuc','addColors','readLogs','dirname','136038ImNQfO','2159416VSGOth','map','25JTgibQ','winstonLogger','existsSync','filter','clearLogs','358998gIoJoN','writeFileSync','31638370EvgGCs','logTask','yellow','split','duration','失败:\x20','success','197494QMqZTH','timestamp','now','green','logFilePath','85320BgrJEi','currentRawCommand','initWinstonLogger','log','376612OYIgrV','12NTvwbg','parse','details','开始执行:\x20','完成:\x20','info','readFileSync','getWinstonInstance','createLogger','Failed\x20to\x20clear\x20logs:','File','errors','join','command','format','message','11ahhRyF'];a252_0x2fc2=function(){return _0x4a1617;};return a252_0x2fc2();}import a252_0x1c476d from'node:path';class Logger{[a252_0x239a2c(0x1ed)];[a252_0x239a2c(0x1fe)];[a252_0x239a2c(0x200)]='';constructor(){this['logFilePath']='';}['setRawCommand'](_0x1934ea){const _0x5b8b98=a252_0x239a2c;this[_0x5b8b98(0x200)]=_0x1934ea;}['initWinstonLogger'](){const _0x2c46f9=a252_0x239a2c,_0x2ce873=a252_0x1c476d[_0x2c46f9(0x1e8)](this[_0x2c46f9(0x1fe)]);!a252_0x578eee[_0x2c46f9(0x1ee)](_0x2ce873)&&a252_0x578eee[_0x2c46f9(0x215)](_0x2ce873,{'recursive':!![]});const _0x304e2a=a252_0x46a1b1['format']['combine'](a252_0x46a1b1[_0x2c46f9(0x212)][_0x2c46f9(0x1fb)](),a252_0x46a1b1[_0x2c46f9(0x212)][_0x2c46f9(0x20f)]({'stack':!![]}),a252_0x46a1b1[_0x2c46f9(0x212)]['printf'](_0x41b24a=>{const _0x2b8d3d=_0x2c46f9,_0x573560={'timestamp':_0x41b24a[_0x2b8d3d(0x1fb)]||new Date()['toISOString'](),'level':_0x41b24a['level']||_0x2b8d3d(0x209),'command':_0x41b24a[_0x2b8d3d(0x211)]||'unknown','rawCommand':_0x41b24a[_0x2b8d3d(0x1e3)]||this[_0x2b8d3d(0x200)]||undefined,'message':_0x41b24a[_0x2b8d3d(0x213)]||'','duration':_0x41b24a[_0x2b8d3d(0x1f7)]||undefined,'details':_0x41b24a[_0x2b8d3d(0x206)]||undefined};return JSON['stringify'](_0x573560);}));this[_0x2c46f9(0x1ed)]=a252_0x46a1b1[_0x2c46f9(0x20c)]({'level':'info','format':_0x304e2a,'transports':[new a252_0x46a1b1['transports'][(_0x2c46f9(0x20e))]({'filename':this[_0x2c46f9(0x1fe)],'level':'info'})],'silent':![]}),a252_0x46a1b1[_0x2c46f9(0x1e6)]({'success':_0x2c46f9(0x1fd),'error':'red','warn':_0x2c46f9(0x1f5),'info':'blue'});}['setLogPath'](_0x12b598){const _0x1da689=a252_0x239a2c;this['logFilePath']=a252_0x1c476d[_0x1da689(0x210)](_0x12b598,'.lovrabet.log'),this[_0x1da689(0x1ed)]&&this[_0x1da689(0x1ed)]['clear'](),this[_0x1da689(0x201)]();}[a252_0x239a2c(0x209)](_0xe451da,_0x4b56f6,_0x4ea4b9){const _0x2c52f4=a252_0x239a2c;if(!this[_0x2c52f4(0x1fe)]||!this[_0x2c52f4(0x1ed)])return;this[_0x2c52f4(0x1ed)][_0x2c52f4(0x209)](_0x4b56f6,{'command':_0xe451da,'details':_0x4ea4b9});}['success'](_0x2c885b,_0x5f277e,_0x422d16,_0x51997e){const _0xc06e90=a252_0x239a2c;if(!this[_0xc06e90(0x1fe)]||!this[_0xc06e90(0x1ed)])return;this['winstonLogger'][_0xc06e90(0x202)]('info',_0x5f277e,{'level':_0xc06e90(0x1f9),'command':_0x2c885b,'duration':_0x422d16,'details':_0x51997e});}['error'](_0x170c7e,_0x57f728,_0xee6f82){const _0x3354ea=a252_0x239a2c;if(!this[_0x3354ea(0x1fe)]||!this[_0x3354ea(0x1ed)])return;this[_0x3354ea(0x1ed)]['error'](_0x57f728,{'command':_0x170c7e,'details':_0xee6f82});}['warn'](_0xd8e072,_0x533e57,_0x1f0fa1){const _0x45e637=a252_0x239a2c;if(!this[_0x45e637(0x1fe)]||!this['winstonLogger'])return;this[_0x45e637(0x1ed)]['warn'](_0x533e57,{'command':_0xd8e072,'details':_0x1f0fa1});}async[a252_0x239a2c(0x1f4)](_0x518662,_0x58975e,_0xaa17b9){const _0x37a878=a252_0x239a2c,_0x9e0109=Date[_0x37a878(0x1fc)]();this[_0x37a878(0x209)](_0x518662,_0x37a878(0x207)+_0x58975e);try{const _0x20b969=await _0xaa17b9(),_0x3d452e=Date[_0x37a878(0x1fc)]()-_0x9e0109;return this[_0x37a878(0x1f9)](_0x518662,_0x37a878(0x208)+_0x58975e,_0x3d452e),_0x20b969;}catch(_0x1c7d68){const _0x59209e=Date[_0x37a878(0x1fc)]()-_0x9e0109;this['error'](_0x518662,_0x37a878(0x1f8)+_0x58975e,{'error':_0x1c7d68 instanceof Error?_0x1c7d68['message']:String(_0x1c7d68),'duration':_0x59209e});throw _0x1c7d68;}}[a252_0x239a2c(0x1e7)](){const _0x4921ae=a252_0x239a2c;try{if(!a252_0x578eee[_0x4921ae(0x1ee)](this[_0x4921ae(0x1fe)]))return[];const _0x3a0e56=a252_0x578eee[_0x4921ae(0x20a)](this[_0x4921ae(0x1fe)],'utf8');return _0x3a0e56[_0x4921ae(0x1f6)]('\x0a')[_0x4921ae(0x1ef)](_0x5e1fdb=>_0x5e1fdb['trim']())[_0x4921ae(0x1eb)](_0x45b59a=>JSON[_0x4921ae(0x205)](_0x45b59a));}catch(_0x3385fc){return console[_0x4921ae(0x1e4)]('Failed\x20to\x20read\x20logs:',_0x3385fc),[];}}[a252_0x239a2c(0x1f0)](){const _0x300824=a252_0x239a2c;try{a252_0x578eee[_0x300824(0x1ee)](this[_0x300824(0x1fe)])&&a252_0x578eee[_0x300824(0x1f2)](this[_0x300824(0x1fe)],'','utf8');}catch(_0x21962b){console[_0x300824(0x1e4)](_0x300824(0x20d),_0x21962b);}}[a252_0x239a2c(0x20b)](){const _0xc3a078=a252_0x239a2c;return this[_0xc3a078(0x1ed)];}}function a252_0x2785(_0x3d684e,_0x1fc7f3){_0x3d684e=_0x3d684e-0x1e3;const _0x2fc2d3=a252_0x2fc2();let _0x27851b=_0x2fc2d3[_0x3d684e];return _0x27851b;}export const logger=new Logger();
1
+ const a253_0x521ef5=a253_0x18b5;(function(_0x4e8d2a,_0x5b9280){const _0xd05e4b=a253_0x18b5,_0x407128=_0x4e8d2a();while(!![]){try{const _0x353c9b=-parseInt(_0xd05e4b(0xbf))/0x1*(parseInt(_0xd05e4b(0xce))/0x2)+-parseInt(_0xd05e4b(0xcc))/0x3*(parseInt(_0xd05e4b(0xbe))/0x4)+parseInt(_0xd05e4b(0xe3))/0x5*(parseInt(_0xd05e4b(0xc5))/0x6)+-parseInt(_0xd05e4b(0xd3))/0x7+-parseInt(_0xd05e4b(0xc3))/0x8*(parseInt(_0xd05e4b(0xdf))/0x9)+-parseInt(_0xd05e4b(0xec))/0xa+parseInt(_0xd05e4b(0xda))/0xb;if(_0x353c9b===_0x5b9280)break;else _0x407128['push'](_0x407128['shift']());}catch(_0x27f4f8){_0x407128['push'](_0x407128['shift']());}}}(a253_0x157d,0x34f1d));import a253_0x4d4fcb from'winston';import a253_0x5666e5 from'node:fs';function a253_0x18b5(_0x48e94e,_0x317c5d){_0x48e94e=_0x48e94e-0xb8;const _0x157db9=a253_0x157d();let _0x18b5fe=_0x157db9[_0x48e94e];return _0x18b5fe;}import a253_0x24bc74 from'node:path';class Logger{['winstonLogger'];['logFilePath'];['currentRawCommand']='';constructor(){this['logFilePath']='';}['setRawCommand'](_0x1a7323){const _0x57443c=a253_0x18b5;this[_0x57443c(0xc9)]=_0x1a7323;}[a253_0x521ef5(0xc7)](){const _0x3a377d=a253_0x521ef5,_0x436229=a253_0x24bc74[_0x3a377d(0xe2)](this[_0x3a377d(0xd5)]);!a253_0x5666e5[_0x3a377d(0xc8)](_0x436229)&&a253_0x5666e5[_0x3a377d(0xbd)](_0x436229,{'recursive':!![]});const _0x3992fc=a253_0x4d4fcb['format'][_0x3a377d(0xc4)](a253_0x4d4fcb[_0x3a377d(0xbb)][_0x3a377d(0xeb)](),a253_0x4d4fcb[_0x3a377d(0xbb)][_0x3a377d(0xe6)]({'stack':!![]}),a253_0x4d4fcb[_0x3a377d(0xbb)]['printf'](_0x461da3=>{const _0x42efe5=_0x3a377d,_0x1a17a1={'timestamp':_0x461da3[_0x42efe5(0xeb)]||new Date()[_0x42efe5(0xba)](),'level':_0x461da3['level']||_0x42efe5(0xd7),'command':_0x461da3[_0x42efe5(0xdd)]||_0x42efe5(0xd6),'rawCommand':_0x461da3[_0x42efe5(0xe5)]||this[_0x42efe5(0xc9)]||undefined,'message':_0x461da3[_0x42efe5(0xd8)]||'','duration':_0x461da3[_0x42efe5(0xcd)]||undefined,'details':_0x461da3[_0x42efe5(0xb8)]||undefined};return JSON[_0x42efe5(0xc1)](_0x1a17a1);}));this[_0x3a377d(0xbc)]=a253_0x4d4fcb[_0x3a377d(0xb9)]({'level':_0x3a377d(0xd7),'format':_0x3992fc,'transports':[new a253_0x4d4fcb['transports']['File']({'filename':this[_0x3a377d(0xd5)],'level':'info'})],'silent':![]}),a253_0x4d4fcb['addColors']({'success':'green','error':_0x3a377d(0xc2),'warn':_0x3a377d(0xea),'info':'blue'});}[a253_0x521ef5(0xd2)](_0x7c4885){const _0x50c279=a253_0x521ef5;this[_0x50c279(0xd5)]=a253_0x24bc74[_0x50c279(0xe1)](_0x7c4885,_0x50c279(0xde)),this[_0x50c279(0xbc)]&&this[_0x50c279(0xbc)][_0x50c279(0xc6)](),this[_0x50c279(0xc7)]();}['info'](_0x484428,_0x5d1f47,_0x2e1422){const _0x1102b4=a253_0x521ef5;if(!this[_0x1102b4(0xd5)]||!this[_0x1102b4(0xbc)])return;this[_0x1102b4(0xbc)][_0x1102b4(0xd7)](_0x5d1f47,{'command':_0x484428,'details':_0x2e1422});}[a253_0x521ef5(0xd0)](_0x344808,_0x7ff4e9,_0x15c05e,_0x103b40){const _0x5743ed=a253_0x521ef5;if(!this[_0x5743ed(0xd5)]||!this[_0x5743ed(0xbc)])return;this[_0x5743ed(0xbc)][_0x5743ed(0xe8)](_0x5743ed(0xd7),_0x7ff4e9,{'level':'success','command':_0x344808,'duration':_0x15c05e,'details':_0x103b40});}[a253_0x521ef5(0xe0)](_0x5b4e97,_0x40fd91,_0x6eba47){const _0x35e591=a253_0x521ef5;if(!this[_0x35e591(0xd5)]||!this[_0x35e591(0xbc)])return;this[_0x35e591(0xbc)][_0x35e591(0xe0)](_0x40fd91,{'command':_0x5b4e97,'details':_0x6eba47});}[a253_0x521ef5(0xdc)](_0x39ac74,_0x8e6069,_0x1db8f8){const _0x26547d=a253_0x521ef5;if(!this['logFilePath']||!this['winstonLogger'])return;this[_0x26547d(0xbc)][_0x26547d(0xdc)](_0x8e6069,{'command':_0x39ac74,'details':_0x1db8f8});}async[a253_0x521ef5(0xd1)](_0x50a4f9,_0x288d16,_0xe5acae){const _0x7f95f2=a253_0x521ef5,_0x7062d9=Date['now']();this[_0x7f95f2(0xd7)](_0x50a4f9,_0x7f95f2(0xe7)+_0x288d16);try{const _0x2c741b=await _0xe5acae(),_0x519b71=Date['now']()-_0x7062d9;return this[_0x7f95f2(0xd0)](_0x50a4f9,_0x7f95f2(0xca)+_0x288d16,_0x519b71),_0x2c741b;}catch(_0xa25be8){const _0x46e9d9=Date[_0x7f95f2(0xe9)]()-_0x7062d9;this[_0x7f95f2(0xe0)](_0x50a4f9,'失败:\x20'+_0x288d16,{'error':_0xa25be8 instanceof Error?_0xa25be8[_0x7f95f2(0xd8)]:String(_0xa25be8),'duration':_0x46e9d9});throw _0xa25be8;}}[a253_0x521ef5(0xdb)](){const _0x4ebc44=a253_0x521ef5;try{if(!a253_0x5666e5['existsSync'](this[_0x4ebc44(0xd5)]))return[];const _0x591395=a253_0x5666e5[_0x4ebc44(0xcf)](this[_0x4ebc44(0xd5)],'utf8');return _0x591395['split']('\x0a')['filter'](_0x237727=>_0x237727['trim']())['map'](_0x2f93e4=>JSON[_0x4ebc44(0xc0)](_0x2f93e4));}catch(_0x4f0e80){return console['warn']('Failed\x20to\x20read\x20logs:',_0x4f0e80),[];}}[a253_0x521ef5(0xe4)](){const _0x436b2c=a253_0x521ef5;try{a253_0x5666e5[_0x436b2c(0xc8)](this['logFilePath'])&&a253_0x5666e5[_0x436b2c(0xd9)](this[_0x436b2c(0xd5)],'',_0x436b2c(0xd4));}catch(_0x1eee8e){console['warn'](_0x436b2c(0xcb),_0x1eee8e);}}['getWinstonInstance'](){const _0x5f53e2=a253_0x521ef5;return this[_0x5f53e2(0xbc)];}}export const logger=new Logger();function a253_0x157d(){const _0x44d494=['timestamp','729210FJyDqH','details','createLogger','toISOString','format','winstonLogger','mkdirSync','326104oyYLqc','89lfryTF','parse','stringify','red','15320ZTGgog','combine','48nASCku','clear','initWinstonLogger','existsSync','currentRawCommand','完成:\x20','Failed\x20to\x20clear\x20logs:','3tKWANR','duration','4548rTdLtU','readFileSync','success','logTask','setLogPath','467474cAhLXD','utf8','logFilePath','unknown','info','message','writeFileSync','6505158avAoBa','readLogs','warn','command','.lovrabet.log','1314GHhFbJ','error','join','dirname','205430yRZcky','clearLogs','rawCommand','errors','开始执行:\x20','log','now','yellow'];a253_0x157d=function(){return _0x44d494;};return a253_0x157d();}
@@ -1 +1 @@
1
- (function(_0x299d6a,_0x281ed7){const _0x52ba85=a253_0x5446,_0x11b8f7=_0x299d6a();while(!![]){try{const _0x2ccabc=parseInt(_0x52ba85(0xf6))/0x1*(parseInt(_0x52ba85(0xf2))/0x2)+parseInt(_0x52ba85(0xfd))/0x3+parseInt(_0x52ba85(0xf5))/0x4*(parseInt(_0x52ba85(0x101))/0x5)+parseInt(_0x52ba85(0xfc))/0x6+-parseInt(_0x52ba85(0xff))/0x7*(-parseInt(_0x52ba85(0xfb))/0x8)+-parseInt(_0x52ba85(0xf1))/0x9*(-parseInt(_0x52ba85(0xf7))/0xa)+-parseInt(_0x52ba85(0xfa))/0xb;if(_0x2ccabc===_0x281ed7)break;else _0x11b8f7['push'](_0x11b8f7['shift']());}catch(_0x5c5586){_0x11b8f7['push'](_0x11b8f7['shift']());}}}(a253_0x2f58,0xe7abf));import{CliErrors}from'../errors.js';export function parseJsonParams(_0x322116){const _0x1957d8=a253_0x5446;if(!_0x322116)return undefined;let _0x1ef2c6;try{_0x1ef2c6=JSON[_0x1957d8(0x100)](_0x322116);}catch{throw CliErrors[_0x1957d8(0xf0)](_0x1957d8(0xf3)+_0x322116);}if(!_0x1ef2c6||typeof _0x1ef2c6!==_0x1957d8(0xfe)||Array[_0x1957d8(0xf4)](_0x1ef2c6))throw CliErrors['validation'](_0x1957d8(0xf8),_0x1957d8(0xf9));return _0x1ef2c6;}function a253_0x5446(_0x3ac470,_0x5bf10b){_0x3ac470=_0x3ac470-0xf0;const _0x2f5814=a253_0x2f58();let _0x54461c=_0x2f5814[_0x3ac470];return _0x54461c;}function a253_0x2f58(){const _0x2dd5f2=['--params\x20must\x20be\x20a\x20JSON\x20object','Example:\x20--params\x20\x27{\x22id\x22:123}\x27','56056363XdvbKC','11560gbvooA','9538908zGdTkx','4839567MlLLMd','object','777VxDyuf','parse','40RbvuIu','validation','18sGDtDK','8Dnsclx','Invalid\x20JSON\x20for\x20--params:\x20','isArray','140636IcTBgi','314641HSYvyW','5708610mwDRWZ'];a253_0x2f58=function(){return _0x2dd5f2;};return a253_0x2f58();}
1
+ function a254_0xe775(_0x5d8c46,_0x14caa5){_0x5d8c46=_0x5d8c46-0x188;const _0x2e926d=a254_0x2e92();let _0xe775ee=_0x2e926d[_0x5d8c46];return _0xe775ee;}(function(_0x11a426,_0x2e2b9d){const _0x5178a3=a254_0xe775,_0x28c339=_0x11a426();while(!![]){try{const _0x5de10d=-parseInt(_0x5178a3(0x188))/0x1*(-parseInt(_0x5178a3(0x195))/0x2)+parseInt(_0x5178a3(0x194))/0x3+parseInt(_0x5178a3(0x191))/0x4+parseInt(_0x5178a3(0x189))/0x5*(parseInt(_0x5178a3(0x190))/0x6)+parseInt(_0x5178a3(0x192))/0x7*(-parseInt(_0x5178a3(0x196))/0x8)+parseInt(_0x5178a3(0x18d))/0x9*(-parseInt(_0x5178a3(0x18b))/0xa)+-parseInt(_0x5178a3(0x18f))/0xb;if(_0x5de10d===_0x2e2b9d)break;else _0x28c339['push'](_0x28c339['shift']());}catch(_0x3001cb){_0x28c339['push'](_0x28c339['shift']());}}}(a254_0x2e92,0x5e739));import{CliErrors}from'../errors.js';export function parseJsonParams(_0x12730){const _0x5d7022=a254_0xe775;if(!_0x12730)return undefined;let _0x52fbfb;try{_0x52fbfb=JSON[_0x5d7022(0x18a)](_0x12730);}catch{throw CliErrors[_0x5d7022(0x18e)](_0x5d7022(0x193)+_0x12730);}if(!_0x52fbfb||typeof _0x52fbfb!==_0x5d7022(0x18c)||Array['isArray'](_0x52fbfb))throw CliErrors['validation']('--params\x20must\x20be\x20a\x20JSON\x20object','Example:\x20--params\x20\x27{\x22id\x22:123}\x27');return _0x52fbfb;}function a254_0x2e92(){const _0x4830e0=['Invalid\x20JSON\x20for\x20--params:\x20','2036274RDCRvc','12VHVkbk','80EjIpMg','50350OXAbCQ','1931965wQWuMj','parse','50BbZOyI','object','390267ypyVzi','validation','4339588bHorKR','6XXtkvQ','754060XDNYVl','390299VpUZev'];a254_0x2e92=function(){return _0x4830e0;};return a254_0x2e92();}
@@ -1 +1 @@
1
- const a254_0x2aa2ba=a254_0x32c2;function a254_0x2a35(){const _0x2c0feb=['2961300nFbZgy','285hlTqBD','3450228uYfWSX','239238BYQIYs','9SpsTOG','10132888ylDUCk','5958617YYGLEf','platform','1795164aArEOc','33204WLUUks','win32'];a254_0x2a35=function(){return _0x2c0feb;};return a254_0x2a35();}(function(_0x422d2a,_0x4666cf){const _0x39b444=a254_0x32c2,_0x274fbc=_0x422d2a();while(!![]){try{const _0x3f78de=-parseInt(_0x39b444(0x144))/0x1+parseInt(_0x39b444(0x149))/0x2+-parseInt(_0x39b444(0x141))/0x3+parseInt(_0x39b444(0x143))/0x4+parseInt(_0x39b444(0x142))/0x5*(-parseInt(_0x39b444(0x14a))/0x6)+-parseInt(_0x39b444(0x147))/0x7+parseInt(_0x39b444(0x146))/0x8*(parseInt(_0x39b444(0x145))/0x9);if(_0x3f78de===_0x4666cf)break;else _0x274fbc['push'](_0x274fbc['shift']());}catch(_0x3b7a21){_0x274fbc['push'](_0x274fbc['shift']());}}}(a254_0x2a35,0x9ab8f));function a254_0x32c2(_0x58d801,_0x4f1306){_0x58d801=_0x58d801-0x141;const _0x2a35d6=a254_0x2a35();let _0x32c250=_0x2a35d6[_0x58d801];return _0x32c250;}export const isWindows=process[a254_0x2aa2ba(0x148)]===a254_0x2aa2ba(0x14b);export function resolveNpmBin(_0x3fb7aa){return isWindows?_0x3fb7aa+'.cmd':_0x3fb7aa;}
1
+ const a255_0x470d44=a255_0x4f88;function a255_0x4f88(_0x251841,_0x32750d){_0x251841=_0x251841-0x159;const _0x14b447=a255_0x14b4();let _0x4f8889=_0x14b447[_0x251841];return _0x4f8889;}(function(_0x188653,_0x217b9e){const _0x373535=a255_0x4f88,_0x426071=_0x188653();while(!![]){try{const _0x3a1705=parseInt(_0x373535(0x15d))/0x1*(-parseInt(_0x373535(0x160))/0x2)+-parseInt(_0x373535(0x161))/0x3*(-parseInt(_0x373535(0x163))/0x4)+-parseInt(_0x373535(0x15f))/0x5+parseInt(_0x373535(0x15a))/0x6*(parseInt(_0x373535(0x15b))/0x7)+parseInt(_0x373535(0x15e))/0x8*(parseInt(_0x373535(0x15c))/0x9)+-parseInt(_0x373535(0x162))/0xa*(-parseInt(_0x373535(0x164))/0xb)+parseInt(_0x373535(0x165))/0xc;if(_0x3a1705===_0x217b9e)break;else _0x426071['push'](_0x426071['shift']());}catch(_0x55619d){_0x426071['push'](_0x426071['shift']());}}}(a255_0x14b4,0x58775));export const isWindows=process[a255_0x470d44(0x159)]==='win32';function a255_0x14b4(){const _0x56b4eb=['8OCyzwK','3189490BfMGZv','2MubRWI','51VYtOcC','26310aBaDLt','3888ONKBGO','2189bfEkya','5961948grHIYG','platform','1086fhbOSc','1211cOoyhM','3518631xgkqLC','458939lELyne'];a255_0x14b4=function(){return _0x56b4eb;};return a255_0x14b4();}export function resolveNpmBin(_0x2117dc){return isWindows?_0x2117dc+'.cmd':_0x2117dc;}
@@ -1 +1 @@
1
- const a255_0x59bad0=a255_0x5677;(function(_0x1a5ac3,_0x371694){const _0x2acfef=a255_0x5677,_0x1db93a=_0x1a5ac3();while(!![]){try{const _0x5f446d=-parseInt(_0x2acfef(0xa6))/0x1+parseInt(_0x2acfef(0x9c))/0x2+parseInt(_0x2acfef(0x9d))/0x3+-parseInt(_0x2acfef(0xa4))/0x4+-parseInt(_0x2acfef(0xa5))/0x5+parseInt(_0x2acfef(0x98))/0x6*(parseInt(_0x2acfef(0xa7))/0x7)+parseInt(_0x2acfef(0x94))/0x8;if(_0x5f446d===_0x371694)break;else _0x1db93a['push'](_0x1db93a['shift']());}catch(_0x3f0214){_0x1db93a['push'](_0x1db93a['shift']());}}}(a255_0x3062,0x781c6));import{existsSync,mkdirSync,readFileSync,writeFileSync}from'node:fs';function a255_0x5677(_0x4dd49c,_0x4dfd3b){_0x4dd49c=_0x4dd49c-0x93;const _0x306232=a255_0x3062();let _0x567758=_0x306232[_0x4dd49c];return _0x567758;}import{dirname,join,resolve}from'node:path';import{fileURLToPath}from'node:url';function a255_0x3062(){const _0x10ecc7=['1794OQBoNy','CDN\x20请求失败:\x20','statusText','utf-8','1929158cMEeKh','702513tkbpUP','json','../../templates/rules/lovrabet_rules.mdc.tpl','string','content','status','CDN\x20返回数据格式错误','2319036zjXdJL','3426790NjQQhK','563559RtpGmO','7763PGKWFT','本地模板文件不存在:\x20','agents.md','6322472DsCqjD','.cursor/rules','catch','/rules/rules.json'];a255_0x3062=function(){return _0x10ecc7;};return a255_0x3062();}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 _0x472dc4=a255_0x5677,_0x40c7b8=getTemplateBaseUrl();return _0x40c7b8+_0x472dc4(0x97);}const LOCAL_TEMPLATE_PATH=resolve(__dirname,a255_0x59bad0(0x9f));export async function fetchRulesFromCDN(){const _0x2bedbe=a255_0x59bad0,_0x4d6354=getRulesCdnUrl(),_0x3393fa=await fetch(_0x4d6354,{'headers':{'Accept':'application/json'}});if(!_0x3393fa['ok'])throw new Error(_0x2bedbe(0x99)+_0x3393fa[_0x2bedbe(0xa2)]+'\x20'+_0x3393fa[_0x2bedbe(0x9a)]);const _0x565878=await _0x3393fa[_0x2bedbe(0x9e)]();if(!_0x565878[_0x2bedbe(0xa1)]||typeof _0x565878[_0x2bedbe(0xa1)]!==_0x2bedbe(0xa0))throw new Error(_0x2bedbe(0xa3));return _0x565878;}export async function getRulesContent(){try{const _0x17874d=await fetchRulesFromCDN();return _0x17874d['content'];}catch{return readLocalTemplate();}}export function readLocalTemplate(){const _0x2e0622=a255_0x59bad0;if(existsSync(LOCAL_TEMPLATE_PATH))return readFileSync(LOCAL_TEMPLATE_PATH,_0x2e0622(0x9b));throw new Error(_0x2e0622(0xa8)+LOCAL_TEMPLATE_PATH);}export async function writeRulesFile(_0x5d3701){const _0x2b741d=a255_0x59bad0,_0x48f430=await fetchRulesFromCDN()[_0x2b741d(0x96)](()=>null);let _0x9fd6d0;_0x48f430?(_0x9fd6d0=_0x48f430['content'],_0x48f430['lastUpdated']&&(_0x9fd6d0=appendUpdateTime(_0x9fd6d0,_0x48f430['lastUpdated']))):_0x9fd6d0=readLocalTemplate();const _0x5e31d9=dirname(_0x5d3701);!existsSync(_0x5e31d9)&&mkdirSync(_0x5e31d9,{'recursive':!![]}),writeFileSync(_0x5d3701,_0x9fd6d0,_0x2b741d(0x9b));}export async function copyRulesToCursor(_0x521266){const _0x3ae022=a255_0x59bad0,_0x5c2617=join(_0x521266,_0x3ae022(0x95)),_0x3c50da=join(_0x5c2617,'lovrabet_rules.mdc');if(existsSync(_0x3c50da))return![];return await writeRulesFile(_0x3c50da),!![];}export async function copyRulesToAgentsMd(_0x4e8cfe){const _0x5f0771=a255_0x59bad0,_0x4c858d=join(_0x4e8cfe,_0x5f0771(0x93));if(existsSync(_0x4c858d))return![];return await writeRulesFile(_0x4c858d),!![];}
1
+ (function(_0x2e8011,_0x10e0e3){const _0x59235f=a256_0x2caf,_0x25ccd0=_0x2e8011();while(!![]){try{const _0xbd54c2=parseInt(_0x59235f(0x1b9))/0x1+parseInt(_0x59235f(0x1ab))/0x2*(parseInt(_0x59235f(0x1bd))/0x3)+parseInt(_0x59235f(0x1b4))/0x4*(-parseInt(_0x59235f(0x1b0))/0x5)+parseInt(_0x59235f(0x1ac))/0x6*(-parseInt(_0x59235f(0x1ba))/0x7)+parseInt(_0x59235f(0x1a9))/0x8*(parseInt(_0x59235f(0x1b2))/0x9)+parseInt(_0x59235f(0x1b1))/0xa+-parseInt(_0x59235f(0x1bc))/0xb*(-parseInt(_0x59235f(0x1ae))/0xc);if(_0xbd54c2===_0x10e0e3)break;else _0x25ccd0['push'](_0x25ccd0['shift']());}catch(_0x3ed1e4){_0x25ccd0['push'](_0x25ccd0['shift']());}}}(a256_0x2f12,0x39da7));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 a256_0x2caf(_0x4b6a61,_0x28e6a2){_0x4b6a61=_0x4b6a61-0x1a8;const _0x2f1213=a256_0x2f12();let _0x2caf50=_0x2f1213[_0x4b6a61];return _0x2caf50;}function getRulesCdnUrl(){const _0x2cc827=a256_0x2caf,_0x3826fe=getTemplateBaseUrl();return _0x3826fe+_0x2cc827(0x1b6);}const LOCAL_TEMPLATE_PATH=resolve(__dirname,'../../templates/rules/lovrabet_rules.mdc.tpl');export async function fetchRulesFromCDN(){const _0x250e6c=a256_0x2caf,_0x40df9d=getRulesCdnUrl(),_0x365e50=await fetch(_0x40df9d,{'headers':{'Accept':_0x250e6c(0x1bb)}});if(!_0x365e50['ok'])throw new Error(_0x250e6c(0x1b3)+_0x365e50[_0x250e6c(0x1b7)]+'\x20'+_0x365e50[_0x250e6c(0x1b5)]);const _0x1769ea=await _0x365e50[_0x250e6c(0x1ad)]();if(!_0x1769ea[_0x250e6c(0x1af)]||typeof _0x1769ea[_0x250e6c(0x1af)]!==_0x250e6c(0x1bf))throw new Error('CDN\x20返回数据格式错误');return _0x1769ea;}export async function getRulesContent(){const _0x2e1702=a256_0x2caf;try{const _0x20b415=await fetchRulesFromCDN();return _0x20b415[_0x2e1702(0x1af)];}catch{return readLocalTemplate();}}export function readLocalTemplate(){const _0x3e0dad=a256_0x2caf;if(existsSync(LOCAL_TEMPLATE_PATH))return readFileSync(LOCAL_TEMPLATE_PATH,_0x3e0dad(0x1aa));throw new Error('本地模板文件不存在:\x20'+LOCAL_TEMPLATE_PATH);}export async function writeRulesFile(_0x3cd691){const _0x4f121e=a256_0x2caf,_0x1a9b20=await fetchRulesFromCDN()[_0x4f121e(0x1a8)](()=>null);let _0x329123;_0x1a9b20?(_0x329123=_0x1a9b20['content'],_0x1a9b20[_0x4f121e(0x1be)]&&(_0x329123=appendUpdateTime(_0x329123,_0x1a9b20['lastUpdated']))):_0x329123=readLocalTemplate();const _0x247254=dirname(_0x3cd691);!existsSync(_0x247254)&&mkdirSync(_0x247254,{'recursive':!![]}),writeFileSync(_0x3cd691,_0x329123,_0x4f121e(0x1aa));}export async function copyRulesToCursor(_0x588c4a){const _0x3b6b0e=a256_0x2caf,_0x21cf34=join(_0x588c4a,'.cursor/rules'),_0x1f3420=join(_0x21cf34,_0x3b6b0e(0x1b8));if(existsSync(_0x1f3420))return![];return await writeRulesFile(_0x1f3420),!![];}function a256_0x2f12(){const _0x401469=['312horZML','content','56105WEyGfL','990010ozrlwR','531ABJfYo','CDN\x20请求失败:\x20','140rokXsF','statusText','/rules/rules.json','status','lovrabet_rules.mdc','234433xGUBds','7TUpWLG','application/json','26609woLfDX','598254naiTNF','lastUpdated','string','catch','18072HyTQnO','utf-8','2VuScDM','595950IbxOhH','json'];a256_0x2f12=function(){return _0x401469;};return a256_0x2f12();}export async function copyRulesToAgentsMd(_0x4c331d){const _0x312723=join(_0x4c331d,'agents.md');if(existsSync(_0x312723))return![];return await writeRulesFile(_0x312723),!![];}
@@ -1 +1 @@
1
- export function sleep(_0xff50fd){return new Promise(_0x13081f=>setTimeout(_0x13081f,_0xff50fd));}
1
+ export function sleep(_0x154d2d){return new Promise(_0x838d98=>setTimeout(_0x838d98,_0x154d2d));}
@@ -1 +1 @@
1
- function a257_0xfb18(_0x4ce6dc,_0xc8a293){_0x4ce6dc=_0x4ce6dc-0x142;const _0x5236cb=a257_0x5236();let _0xfb1827=_0x5236cb[_0x4ce6dc];return _0xfb1827;}const a257_0xadf9a7=a257_0xfb18;(function(_0xbb6245,_0x395841){const _0x13ad28=a257_0xfb18,_0x28b6eb=_0xbb6245();while(!![]){try{const _0x2e7303=-parseInt(_0x13ad28(0x157))/0x1+-parseInt(_0x13ad28(0x174))/0x2+parseInt(_0x13ad28(0x166))/0x3+-parseInt(_0x13ad28(0x165))/0x4+parseInt(_0x13ad28(0x186))/0x5+-parseInt(_0x13ad28(0x156))/0x6+parseInt(_0x13ad28(0x176))/0x7;if(_0x2e7303===_0x395841)break;else _0x28b6eb['push'](_0x28b6eb['shift']());}catch(_0x3108ef){_0x28b6eb['push'](_0x28b6eb['shift']());}}}(a257_0x5236,0x21296));import a257_0x39a7a3 from'node:fs';import a257_0x21c836 from'node:path';import{logger}from'../utils/logger.js';import{getCliVersion}from'../utils/version.js';const CLI_VERSION=getCliVersion();export class TemplateReplacer{static[a257_0xadf9a7(0x164)](_0x1c57f5){const _0x284168=a257_0xadf9a7;return String(_0x1c57f5)[_0x284168(0x163)](0x2,'0');}static[a257_0xadf9a7(0x178)](_0x4d37e7){const _0x182bff=a257_0xadf9a7,_0x26a793=_0x4d37e7[_0x182bff(0x172)](),_0x459210=this['pad'](_0x4d37e7[_0x182bff(0x151)]()+0x1),_0x49cbb6=this['pad'](_0x4d37e7['getDate']()),_0x1d7e68=this[_0x182bff(0x164)](_0x4d37e7[_0x182bff(0x155)]()),_0x861f32=this[_0x182bff(0x164)](_0x4d37e7[_0x182bff(0x161)]()),_0x46b5f7=this[_0x182bff(0x164)](_0x4d37e7[_0x182bff(0x147)]());return{'createdAt':_0x26a793+'-'+_0x459210+'-'+_0x49cbb6+'\x20'+_0x1d7e68+':'+_0x861f32+':'+_0x46b5f7,'createdDate':_0x26a793+'-'+_0x459210+'-'+_0x49cbb6,'createdTime':_0x1d7e68+':'+_0x861f32+':'+_0x46b5f7};}static['toComponentName'](_0x1a36d1){const _0x336e0d=a257_0xadf9a7,_0x158738=_0x1a36d1[_0x336e0d(0x146)]('/')[_0x336e0d(0x14b)]()||_0x1a36d1;return _0x158738[_0x336e0d(0x146)]('-')[_0x336e0d(0x142)](_0x2ede23=>_0x2ede23[_0x336e0d(0x170)](0x0)[_0x336e0d(0x179)]()+_0x2ede23[_0x336e0d(0x169)](0x1)[_0x336e0d(0x145)]())[_0x336e0d(0x183)]('');}static[a257_0xadf9a7(0x17b)](_0x286e47){const _0x54deb7=a257_0xadf9a7,_0xdc402=_0x286e47['split']('/')[_0x54deb7(0x14b)]()||_0x286e47;return _0xdc402[_0x54deb7(0x146)]('-')[_0x54deb7(0x142)](_0x4a971d=>_0x4a971d[_0x54deb7(0x170)](0x0)[_0x54deb7(0x179)]()+_0x4a971d[_0x54deb7(0x169)](0x1)[_0x54deb7(0x145)]())[_0x54deb7(0x183)]('\x20');}static[a257_0xadf9a7(0x16d)](_0x203f0b,_0x3a7757,_0x29aeaf){const _0x2cc5ca=a257_0xadf9a7,_0x50c560=this[_0x2cc5ca(0x14f)](_0x3a7757),_0x55fa00=this['toDisplayTitle'](_0x3a7757),{createdAt:_0x6cc81e,createdDate:_0x39d829,createdTime:_0x403dfd}=this['formatLocalTimestamp'](new Date());let _0x564509=_0x203f0b[_0x2cc5ca(0x180)](/\{CliVersion\}/g,CLI_VERSION)['replace'](/\{ComponentName\}/g,_0x50c560)['replace'](/\{DisplayTitle\}/g,_0x55fa00)[_0x2cc5ca(0x180)](/\{PageName\}/g,_0x3a7757)[_0x2cc5ca(0x180)](/\{TemplateName\}/g,_0x29aeaf)['replace'](/\{CreatedAt\}/g,_0x6cc81e)['replace'](/\{CreatedDate\}/g,_0x39d829)[_0x2cc5ca(0x180)](/\{CreatedTime\}/g,_0x403dfd);return _0x564509;}static[a257_0xadf9a7(0x17d)](_0x486229,_0xf293b6,_0x2663f6,_0x21da75,_0x3d7976,_0x588898,_0x3ea4e9,_0x2975b8){const _0x30878c=a257_0xadf9a7,_0x5db0f8=new Date(),_0x63d13c=_0x5db0f8['toISOString'](),_0x138a61=_0x2663f6[_0x30878c(0x142)](_0x387aef=>{const _0x2c48a3=_0x30878c,_0xef8bd8=[_0x2c48a3(0x153)+_0x387aef[_0x2c48a3(0x16b)]+'\x22',_0x2c48a3(0x173)+_0x387aef[_0x2c48a3(0x14e)]+'\x22',_0x2c48a3(0x14a)+_0x387aef[_0x2c48a3(0x16f)]+'\x22'];return _0x387aef[_0x2c48a3(0x181)]&&_0xef8bd8['push'](_0x2c48a3(0x15f)+_0x387aef['alias']+'\x22'),_0x2c48a3(0x167)+_0xef8bd8['join'](',\x20')+_0x2c48a3(0x149);})[_0x30878c(0x183)](''),_0x7cbedf=_0x21da75||_0x2663f6[0x0]?.[_0x30878c(0x181)]||'YourModel';let _0x4ae9b3=_0x486229[_0x30878c(0x180)](/\{AppCode\}/g,_0xf293b6)[_0x30878c(0x180)](/\{ModelConfigs\}/g,_0x138a61)[_0x30878c(0x180)](/\{ExampleModelName\}/g,_0x7cbedf)[_0x30878c(0x180)](/\{ApiFileName\}/g,_0x3d7976||_0x30878c(0x15b))[_0x30878c(0x180)](/\{ConfigName\}/g,_0x588898||_0x30878c(0x168))[_0x30878c(0x180)](/\{ClientConfigParam\}/g,_0x3ea4e9||'')['replace'](/\{VarPrefix\}/g,_0x2975b8||_0x30878c(0x162))[_0x30878c(0x180)](/\{CreatedAt\}/g,_0x63d13c);return _0x4ae9b3;}static async[a257_0xadf9a7(0x182)](_0x19152a,_0x57e22c,_0x382cbd,_0x16015e,_0x4fd280=!![]){const _0x334945=a257_0xadf9a7,_0x2be063=Date[_0x334945(0x185)]();try{_0x4fd280&&logger[_0x334945(0x15c)]('template',_0x334945(0x148),{'templatePath':_0x19152a,'targetPath':_0x57e22c,'pageName':_0x382cbd,'templateName':_0x16015e});await a257_0x39a7a3[_0x334945(0x17f)][_0x334945(0x16a)](_0x57e22c,{'recursive':!![]}),await this[_0x334945(0x17e)](_0x19152a,_0x57e22c,_0x382cbd,_0x16015e);if(_0x4fd280){const _0x5afdee=Date[_0x334945(0x185)]()-_0x2be063;logger[_0x334945(0x152)](_0x334945(0x15a),_0x334945(0x171),_0x5afdee,{'pageName':_0x382cbd,'templateName':_0x16015e});}}catch(_0x1c2afd){if(_0x4fd280){const _0x80ebf3=Date[_0x334945(0x185)]()-_0x2be063;logger[_0x334945(0x160)]('template',_0x334945(0x184),{'templatePath':_0x19152a,'targetPath':_0x57e22c,'pageName':_0x382cbd,'templateName':_0x16015e,'error':_0x1c2afd instanceof Error?_0x1c2afd['message']:String(_0x1c2afd),'duration':_0x80ebf3});}throw _0x1c2afd;}}static async[a257_0xadf9a7(0x17e)](_0x5252a9,_0xedf245,_0xa9de90,_0x4f6c04){const _0x2791d5=a257_0xadf9a7,_0x275840=await a257_0x39a7a3[_0x2791d5(0x17f)][_0x2791d5(0x175)](_0x5252a9,{'withFileTypes':!![]});for(const _0x3ae5c0 of _0x275840){const _0x49148d=a257_0x21c836[_0x2791d5(0x183)](_0x5252a9,_0x3ae5c0[_0x2791d5(0x16f)]);let _0x406a1d=a257_0x21c836['join'](_0xedf245,_0x3ae5c0[_0x2791d5(0x16f)]);_0x3ae5c0[_0x2791d5(0x16f)][_0x2791d5(0x16e)]('.tpl')&&(_0x406a1d=a257_0x21c836[_0x2791d5(0x183)](_0xedf245,_0x3ae5c0['name'][_0x2791d5(0x180)](/\.tpl$/,'')));if(_0x3ae5c0[_0x2791d5(0x150)]())await a257_0x39a7a3[_0x2791d5(0x17f)][_0x2791d5(0x16a)](_0x406a1d,{'recursive':!![]}),await this['processDirectory'](_0x49148d,_0x406a1d,_0xa9de90,_0x4f6c04);else _0x3ae5c0[_0x2791d5(0x16c)]()&&await this[_0x2791d5(0x15d)](_0x49148d,_0x406a1d,_0xa9de90,_0x4f6c04);}}static async[a257_0xadf9a7(0x15d)](_0x47e1b2,_0x1692eb,_0x39bc1f,_0x55aa61){const _0x7bd48e=a257_0xadf9a7,_0x2e99fb=a257_0x21c836['extname'](_0x47e1b2)[_0x7bd48e(0x145)]();_0x47e1b2[_0x7bd48e(0x16e)]('.tpl')&&(_0x1692eb=_0x1692eb[_0x7bd48e(0x180)](/\.tpl$/,''));const _0x8a49c8=[_0x7bd48e(0x17c),_0x7bd48e(0x143),_0x7bd48e(0x159),_0x7bd48e(0x177),_0x7bd48e(0x154),_0x7bd48e(0x158),'.css',_0x7bd48e(0x187),_0x7bd48e(0x14c)];if(_0x8a49c8[_0x7bd48e(0x144)](_0x2e99fb)||_0x47e1b2[_0x7bd48e(0x16e)]('.tpl')){const _0x121d2d=await a257_0x39a7a3[_0x7bd48e(0x17f)][_0x7bd48e(0x14d)](_0x47e1b2,_0x7bd48e(0x17a)),_0x20fbb5=this[_0x7bd48e(0x16d)](_0x121d2d,_0x39bc1f,_0x55aa61);await a257_0x39a7a3[_0x7bd48e(0x17f)][_0x7bd48e(0x15e)](_0x1692eb,_0x20fbb5,_0x7bd48e(0x17a));}else await a257_0x39a7a3[_0x7bd48e(0x17f)]['copyFile'](_0x47e1b2,_0x1692eb);}}function a257_0x5236(){const _0x463d9c=['getMonth','success','datasetCode:\x20\x22','.json','getHours','741660SXElZp','146525eKMSnM','.md','.jsx','template','api','info','processFile','writeFile','alias:\x20\x22','error','getMinutes','LOVRABET','padStart','pad','1086236AHimwO','351195owPxox','\x0a\x20\x20\x20\x20{\x20','default','slice','mkdir','datasetCode','isFile','replaceContent','endsWith','name','charAt','模板内容替换完成','getFullYear','tableName:\x20\x22','190424tqrndR','readdir','3120901vKcDzO','.js','formatLocalTimestamp','toUpperCase','utf8','toDisplayTitle','.tsx','replaceApiContent','processDirectory','promises','replace','alias','processTemplate','join','模板内容替换失败','now','1049140DIdSeH','.scss','map','.ts','includes','toLowerCase','split','getSeconds','开始处理模板内容替换','\x20},','name:\x20\x22','pop','.tpl','readFile','tableName','toComponentName','isDirectory'];a257_0x5236=function(){return _0x463d9c;};return a257_0x5236();}
1
+ function a258_0x2854(){const _0x5cf9a4=['pad','default','isFile','LOVRABET','split','toISOString','push','endsWith','template','11QPvAJd','copyFile','isDirectory','getHours','YourModel','mkdir','join','readFile','replaceApiContent','padStart','charAt','.json','.js','开始处理模板内容替换','processFile','api','promises','pop','模板内容替换完成','.jsx','.tpl','processTemplate','1461216pGkluq','109358kQuHMO','toLowerCase','135234YqMHUL','9387ZXXNdv','toDisplayTitle','getFullYear','\x0a\x20\x20\x20\x20{\x20','utf8','map','tableName','15vRANzv','datasetCode:\x20\x22','34995SityOc','getDate','now','getSeconds','replaceContent','.tsx','replace','includes','datasetCode','toComponentName','formatLocalTimestamp','name','4890fwLuqy','\x20},','148yCyPuE','processDirectory','模板内容替换失败','readdir','.ts','getMonth','error','tableName:\x20\x22','1856370LVxbcO','toUpperCase','alias:\x20\x22','.css','getMinutes','slice','info','success','alias','.scss','119441YifIAq','136zYqeaO'];a258_0x2854=function(){return _0x5cf9a4;};return a258_0x2854();}const a258_0x3e5e71=a258_0x2499;(function(_0x8f8a1d,_0x34ceac){const _0xf41244=a258_0x2499,_0x1ee616=_0x8f8a1d();while(!![]){try{const _0x1d3991=-parseInt(_0xf41244(0x1d2))/0x1+parseInt(_0xf41244(0x1d0))/0x2*(parseInt(_0xf41244(0x1da))/0x3)+-parseInt(_0xf41244(0x1ea))/0x4*(parseInt(_0xf41244(0x1dc))/0x5)+parseInt(_0xf41244(0x1f2))/0x6+-parseInt(_0xf41244(0x1fc))/0x7*(parseInt(_0xf41244(0x1fd))/0x8)+parseInt(_0xf41244(0x1d3))/0x9*(parseInt(_0xf41244(0x1e8))/0xa)+parseInt(_0xf41244(0x207))/0xb*(-parseInt(_0xf41244(0x1cf))/0xc);if(_0x1d3991===_0x34ceac)break;else _0x1ee616['push'](_0x1ee616['shift']());}catch(_0x22b421){_0x1ee616['push'](_0x1ee616['shift']());}}}(a258_0x2854,0x4603d));import a258_0x210ed6 from'node:fs';import a258_0x1820e8 from'node:path';import{logger}from'../utils/logger.js';function a258_0x2499(_0xe4e596,_0x1449e6){_0xe4e596=_0xe4e596-0x1bf;const _0x28544a=a258_0x2854();let _0x2499ee=_0x28544a[_0xe4e596];return _0x2499ee;}import{getCliVersion}from'../utils/version.js';const CLI_VERSION=getCliVersion();export class TemplateReplacer{static[a258_0x3e5e71(0x1fe)](_0x550127){const _0x125c36=a258_0x3e5e71;return String(_0x550127)[_0x125c36(0x1c2)](0x2,'0');}static[a258_0x3e5e71(0x1e6)](_0x1fe2ad){const _0x57939b=a258_0x3e5e71,_0x5d016c=_0x1fe2ad[_0x57939b(0x1d5)](),_0x38a1d2=this[_0x57939b(0x1fe)](_0x1fe2ad[_0x57939b(0x1ef)]()+0x1),_0x2bbc37=this[_0x57939b(0x1fe)](_0x1fe2ad[_0x57939b(0x1dd)]()),_0x265147=this[_0x57939b(0x1fe)](_0x1fe2ad[_0x57939b(0x20a)]()),_0x31f072=this[_0x57939b(0x1fe)](_0x1fe2ad[_0x57939b(0x1f6)]()),_0x1de951=this[_0x57939b(0x1fe)](_0x1fe2ad[_0x57939b(0x1df)]());return{'createdAt':_0x5d016c+'-'+_0x38a1d2+'-'+_0x2bbc37+'\x20'+_0x265147+':'+_0x31f072+':'+_0x1de951,'createdDate':_0x5d016c+'-'+_0x38a1d2+'-'+_0x2bbc37,'createdTime':_0x265147+':'+_0x31f072+':'+_0x1de951};}static[a258_0x3e5e71(0x1e5)](_0x5c2bdf){const _0x530c22=a258_0x3e5e71,_0x3b0083=_0x5c2bdf[_0x530c22(0x202)]('/')['pop']()||_0x5c2bdf;return _0x3b0083[_0x530c22(0x202)]('-')['map'](_0x4dbff1=>_0x4dbff1[_0x530c22(0x1c3)](0x0)[_0x530c22(0x1f3)]()+_0x4dbff1[_0x530c22(0x1f7)](0x1)['toLowerCase']())[_0x530c22(0x1bf)]('');}static[a258_0x3e5e71(0x1d4)](_0x518f98){const _0x1925fe=a258_0x3e5e71,_0x1eac17=_0x518f98['split']('/')[_0x1925fe(0x1ca)]()||_0x518f98;return _0x1eac17[_0x1925fe(0x202)]('-')[_0x1925fe(0x1d8)](_0x3904af=>_0x3904af['charAt'](0x0)['toUpperCase']()+_0x3904af[_0x1925fe(0x1f7)](0x1)[_0x1925fe(0x1d1)]())[_0x1925fe(0x1bf)]('\x20');}static[a258_0x3e5e71(0x1e0)](_0x2eb19e,_0x4254bf,_0x166034){const _0x3b4740=a258_0x3e5e71,_0x49327b=this[_0x3b4740(0x1e5)](_0x4254bf),_0x3a37ed=this[_0x3b4740(0x1d4)](_0x4254bf),{createdAt:_0x50857a,createdDate:_0x3fd004,createdTime:_0x2fbc6a}=this['formatLocalTimestamp'](new Date());let _0x9e660a=_0x2eb19e['replace'](/\{CliVersion\}/g,CLI_VERSION)[_0x3b4740(0x1e2)](/\{ComponentName\}/g,_0x49327b)[_0x3b4740(0x1e2)](/\{DisplayTitle\}/g,_0x3a37ed)[_0x3b4740(0x1e2)](/\{PageName\}/g,_0x4254bf)[_0x3b4740(0x1e2)](/\{TemplateName\}/g,_0x166034)[_0x3b4740(0x1e2)](/\{CreatedAt\}/g,_0x50857a)[_0x3b4740(0x1e2)](/\{CreatedDate\}/g,_0x3fd004)[_0x3b4740(0x1e2)](/\{CreatedTime\}/g,_0x2fbc6a);return _0x9e660a;}static[a258_0x3e5e71(0x1c1)](_0x3b0aec,_0x224aff,_0xbb0b75,_0x297f99,_0xd1ab44,_0xc51fb9,_0x286afd,_0x369bd5){const _0x4f2de0=a258_0x3e5e71,_0x184b6d=new Date(),_0x13485f=_0x184b6d[_0x4f2de0(0x203)](),_0x14eb97=_0xbb0b75[_0x4f2de0(0x1d8)](_0x2f058b=>{const _0x2b12cf=_0x4f2de0,_0x148fda=[_0x2b12cf(0x1db)+_0x2f058b[_0x2b12cf(0x1e4)]+'\x22',_0x2b12cf(0x1f1)+_0x2f058b[_0x2b12cf(0x1d9)]+'\x22','name:\x20\x22'+_0x2f058b[_0x2b12cf(0x1e7)]+'\x22'];return _0x2f058b[_0x2b12cf(0x1fa)]&&_0x148fda[_0x2b12cf(0x204)](_0x2b12cf(0x1f4)+_0x2f058b['alias']+'\x22'),_0x2b12cf(0x1d6)+_0x148fda[_0x2b12cf(0x1bf)](',\x20')+_0x2b12cf(0x1e9);})[_0x4f2de0(0x1bf)](''),_0x30704c=_0x297f99||_0xbb0b75[0x0]?.[_0x4f2de0(0x1fa)]||_0x4f2de0(0x20b);let _0x3eba6d=_0x3b0aec[_0x4f2de0(0x1e2)](/\{AppCode\}/g,_0x224aff)['replace'](/\{ModelConfigs\}/g,_0x14eb97)[_0x4f2de0(0x1e2)](/\{ExampleModelName\}/g,_0x30704c)[_0x4f2de0(0x1e2)](/\{ApiFileName\}/g,_0xd1ab44||_0x4f2de0(0x1c8))[_0x4f2de0(0x1e2)](/\{ConfigName\}/g,_0xc51fb9||_0x4f2de0(0x1ff))[_0x4f2de0(0x1e2)](/\{ClientConfigParam\}/g,_0x286afd||'')['replace'](/\{VarPrefix\}/g,_0x369bd5||_0x4f2de0(0x201))['replace'](/\{CreatedAt\}/g,_0x13485f);return _0x3eba6d;}static async[a258_0x3e5e71(0x1ce)](_0x2c5b83,_0x4f7482,_0x5b5c63,_0x33be88,_0x3f41ae=!![]){const _0x76635b=a258_0x3e5e71,_0x53940a=Date[_0x76635b(0x1de)]();try{_0x3f41ae&&logger[_0x76635b(0x1f8)](_0x76635b(0x206),_0x76635b(0x1c6),{'templatePath':_0x2c5b83,'targetPath':_0x4f7482,'pageName':_0x5b5c63,'templateName':_0x33be88});await a258_0x210ed6[_0x76635b(0x1c9)][_0x76635b(0x20c)](_0x4f7482,{'recursive':!![]}),await this[_0x76635b(0x1eb)](_0x2c5b83,_0x4f7482,_0x5b5c63,_0x33be88);if(_0x3f41ae){const _0x289b17=Date[_0x76635b(0x1de)]()-_0x53940a;logger[_0x76635b(0x1f9)](_0x76635b(0x206),_0x76635b(0x1cb),_0x289b17,{'pageName':_0x5b5c63,'templateName':_0x33be88});}}catch(_0x1d654d){if(_0x3f41ae){const _0xf25a3c=Date[_0x76635b(0x1de)]()-_0x53940a;logger[_0x76635b(0x1f0)](_0x76635b(0x206),_0x76635b(0x1ec),{'templatePath':_0x2c5b83,'targetPath':_0x4f7482,'pageName':_0x5b5c63,'templateName':_0x33be88,'error':_0x1d654d instanceof Error?_0x1d654d['message']:String(_0x1d654d),'duration':_0xf25a3c});}throw _0x1d654d;}}static async[a258_0x3e5e71(0x1eb)](_0x1fb13a,_0x5f1ba1,_0x1388f1,_0x47c83a){const _0x8e0d6f=a258_0x3e5e71,_0x292edc=await a258_0x210ed6['promises'][_0x8e0d6f(0x1ed)](_0x1fb13a,{'withFileTypes':!![]});for(const _0x1872f1 of _0x292edc){const _0x30bb2b=a258_0x1820e8[_0x8e0d6f(0x1bf)](_0x1fb13a,_0x1872f1[_0x8e0d6f(0x1e7)]);let _0x2ccf4e=a258_0x1820e8[_0x8e0d6f(0x1bf)](_0x5f1ba1,_0x1872f1[_0x8e0d6f(0x1e7)]);_0x1872f1[_0x8e0d6f(0x1e7)]['endsWith'](_0x8e0d6f(0x1cd))&&(_0x2ccf4e=a258_0x1820e8[_0x8e0d6f(0x1bf)](_0x5f1ba1,_0x1872f1[_0x8e0d6f(0x1e7)][_0x8e0d6f(0x1e2)](/\.tpl$/,'')));if(_0x1872f1[_0x8e0d6f(0x209)]())await a258_0x210ed6['promises'][_0x8e0d6f(0x20c)](_0x2ccf4e,{'recursive':!![]}),await this['processDirectory'](_0x30bb2b,_0x2ccf4e,_0x1388f1,_0x47c83a);else _0x1872f1[_0x8e0d6f(0x200)]()&&await this[_0x8e0d6f(0x1c7)](_0x30bb2b,_0x2ccf4e,_0x1388f1,_0x47c83a);}}static async['processFile'](_0x44bb53,_0x327a79,_0x40c622,_0x4b63f1){const _0x3de65c=a258_0x3e5e71,_0x3b3e89=a258_0x1820e8['extname'](_0x44bb53)[_0x3de65c(0x1d1)]();_0x44bb53[_0x3de65c(0x205)]('.tpl')&&(_0x327a79=_0x327a79['replace'](/\.tpl$/,''));const _0x23c821=[_0x3de65c(0x1e1),_0x3de65c(0x1ee),_0x3de65c(0x1cc),_0x3de65c(0x1c5),_0x3de65c(0x1c4),'.md',_0x3de65c(0x1f5),_0x3de65c(0x1fb),'.tpl'];if(_0x23c821[_0x3de65c(0x1e3)](_0x3b3e89)||_0x44bb53[_0x3de65c(0x205)](_0x3de65c(0x1cd))){const _0x55864a=await a258_0x210ed6[_0x3de65c(0x1c9)][_0x3de65c(0x1c0)](_0x44bb53,_0x3de65c(0x1d7)),_0xaecc5b=this[_0x3de65c(0x1e0)](_0x55864a,_0x40c622,_0x4b63f1);await a258_0x210ed6[_0x3de65c(0x1c9)]['writeFile'](_0x327a79,_0xaecc5b,_0x3de65c(0x1d7));}else await a258_0x210ed6['promises'][_0x3de65c(0x208)](_0x44bb53,_0x327a79);}}
@@ -1 +1 @@
1
- (function(_0x1e2315,_0x3a5e4b){const _0x501485=a258_0xeef8,_0x551af9=_0x1e2315();while(!![]){try{const _0x512eff=-parseInt(_0x501485(0x128))/0x1*(parseInt(_0x501485(0x121))/0x2)+parseInt(_0x501485(0x11d))/0x3+-parseInt(_0x501485(0x125))/0x4*(-parseInt(_0x501485(0x111))/0x5)+-parseInt(_0x501485(0x12a))/0x6*(-parseInt(_0x501485(0x10e))/0x7)+parseInt(_0x501485(0x11e))/0x8*(parseInt(_0x501485(0x129))/0x9)+parseInt(_0x501485(0x120))/0xa+-parseInt(_0x501485(0x118))/0xb;if(_0x512eff===_0x3a5e4b)break;else _0x551af9['push'](_0x551af9['shift']());}catch(_0x307eaa){_0x551af9['push'](_0x551af9['shift']());}}}(a258_0x175d,0x715d0));import{mkdir,readFile,writeFile}from'node:fs/promises';import{homedir}from'node:os';import{dirname,join}from'node:path';import a258_0x4c5917 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 _0xe93450=a258_0xeef8,_0x319464=process.env.RABETBASE_NO_UPDATE_NOTICE?.[_0xe93450(0x11c)]()['toLowerCase']();return _0x319464==='1'||_0x319464===_0xe93450(0x114)||_0x319464===_0xe93450(0x10f);}function cacheRoot(){const _0x2615e9=a258_0xeef8;return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),_0x2615e9(0x123));}export function getUpdateNoticeCachePath(){const _0x16a33a=a258_0xeef8;return join(cacheRoot(),_0x16a33a(0x115),'update-check.json');}async function readUpdateNoticeCache(){const _0x337a1d=a258_0xeef8;try{const _0x4f9785=await readFile(getUpdateNoticeCachePath(),_0x337a1d(0x110)),_0x1bd04c=JSON['parse'](_0x4f9785);if(!_0x1bd04c||typeof _0x1bd04c!==_0x337a1d(0x11a))return{};return _0x1bd04c;}catch{return{};}}async function writeUpdateNoticeCache(_0x1639ef){const _0x58b4d8=a258_0xeef8;try{const _0x44a56a=getUpdateNoticeCachePath();await mkdir(dirname(_0x44a56a),{'recursive':!![]}),await writeFile(_0x44a56a,JSON[_0x58b4d8(0x112)](_0x1639ef,null,0x2)+'\x0a',_0x58b4d8(0x110));}catch{}}function isFreshCheck(_0x463079,_0x38defa){const _0x30b78b=a258_0xeef8;return typeof _0x463079[_0x30b78b(0x122)]===_0x30b78b(0x11f)&&_0x38defa-_0x463079['checkedAt']<UPDATE_CHECK_TTL_MS;}function isRecentlyNotified(_0x3924c4,_0x157705,_0x1cdf13){const _0xfa721b=a258_0xeef8;return _0x3924c4[_0xfa721b(0x119)]===_0x157705&&typeof _0x3924c4['lastNotifiedAt']===_0xfa721b(0x11f)&&_0x1cdf13-_0x3924c4['lastNotifiedAt']<UPDATE_NOTICE_TTL_MS;}export function buildNpmVersionUrl(_0x27e357){const _0x299a91=a258_0xeef8;return _0x299a91(0x11b)+NPM_PACKAGE_NAME+_0x299a91(0x116)+_0x27e357;}export async function resolveLatestUpdateNotice(){const _0x4dc15f=a258_0xeef8;if(isUpdateNoticeDisabled())return null;try{const _0x4913f8=Date['now'](),_0x408b9e=getCliVersion(),_0x845971=await readUpdateNoticeCache();let _0x144494=isFreshCheck(_0x845971,_0x4913f8)?_0x845971[_0x4dc15f(0x113)]?.['trim']():undefined;if(!_0x144494&&!isFreshCheck(_0x845971,_0x4913f8)){const _0x56221c=await getCliVersionPolicy();_0x144494=_0x56221c?.['stableVersion']?.[_0x4dc15f(0x11c)]()||undefined,await writeUpdateNoticeCache({..._0x845971,'checkedAt':_0x4913f8,'latest':_0x144494,'failed':!_0x144494});}if(!_0x144494||!a258_0x4c5917['valid'](_0x408b9e)||!a258_0x4c5917[_0x4dc15f(0x124)](_0x144494))return null;if(a258_0x4c5917[_0x4dc15f(0x127)](_0x408b9e,_0x144494))return null;if(isRecentlyNotified(_0x845971,_0x144494,_0x4913f8))return null;const _0x359be5=CLI_BIN_NAME+_0x4dc15f(0x126);return await writeUpdateNoticeCache({..._0x845971,'checkedAt':isFreshCheck(_0x845971,_0x4913f8)?_0x845971[_0x4dc15f(0x122)]:_0x4913f8,'latest':_0x144494,'failed':![],'lastNotifiedVersion':_0x144494,'lastNotifiedAt':_0x4913f8}),{'command':_0x359be5,'current':_0x408b9e,'latest':_0x144494,'url':buildNpmVersionUrl(_0x144494),'message':CLI_BIN_NAME+'\x20'+_0x144494+'\x20available,\x20current\x20'+_0x408b9e+_0x4dc15f(0x117)+_0x359be5};}catch{return null;}}function a258_0xeef8(_0x3c32af,_0x28482e){_0x3c32af=_0x3c32af-0x10e;const _0x175db9=a258_0x175d();let _0xeef83b=_0x175db9[_0x3c32af];return _0xeef83b;}function a258_0x175d(){const _0x281e3f=['2367790QBSKxC','1518864gQsRsE','checkedAt','.cache','valid','3544796dOKCAa','\x20update','gte','1RJsbFP','9fFWVSq','4266uewEba','3346JTRqyY','yes','utf8','5kOPKga','stringify','latest','true','rabetbase-cli','/v/',',\x20run:\x20','11682451vCUGjV','lastNotifiedVersion','object','https://www.npmjs.com/package/','trim','2038302MMWilX','1148312gPVsin','number'];a258_0x175d=function(){return _0x281e3f;};return a258_0x175d();}
1
+ (function(_0x16b78e,_0x4dd76a){const _0x41552a=a259_0x50cb,_0x332ba0=_0x16b78e();while(!![]){try{const _0x3bc6fe=parseInt(_0x41552a(0x15e))/0x1+-parseInt(_0x41552a(0x144))/0x2*(parseInt(_0x41552a(0x146))/0x3)+-parseInt(_0x41552a(0x13f))/0x4*(parseInt(_0x41552a(0x14e))/0x5)+-parseInt(_0x41552a(0x157))/0x6*(-parseInt(_0x41552a(0x149))/0x7)+-parseInt(_0x41552a(0x145))/0x8+-parseInt(_0x41552a(0x140))/0x9*(parseInt(_0x41552a(0x148))/0xa)+-parseInt(_0x41552a(0x151))/0xb*(-parseInt(_0x41552a(0x14f))/0xc);if(_0x3bc6fe===_0x4dd76a)break;else _0x332ba0['push'](_0x332ba0['shift']());}catch(_0x252fc4){_0x332ba0['push'](_0x332ba0['shift']());}}}(a259_0x45bd,0xe80a1));import{mkdir,readFile,writeFile}from'node:fs/promises';import{homedir}from'node:os';import{dirname,join}from'node:path';import a259_0x18960b 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 _0x5c4bd5=a259_0x50cb,_0x381533=process.env.RABETBASE_NO_UPDATE_NOTICE?.['trim']()[_0x5c4bd5(0x15a)]();return _0x381533==='1'||_0x381533===_0x5c4bd5(0x153)||_0x381533===_0x5c4bd5(0x143);}function cacheRoot(){return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),'.cache');}export function getUpdateNoticeCachePath(){const _0x4bfc7f=a259_0x50cb;return join(cacheRoot(),_0x4bfc7f(0x15c),'update-check.json');}function a259_0x45bd(){const _0x34394a=['utf8','toLowerCase','https://www.npmjs.com/package/','rabetbase-cli','trim','896394VQCtTq','checkedAt','443364OUvAcs','4750182FhQoxo',',\x20run:\x20','\x20update','yes','696988rTkSLT','14207600mVMUQs','15XSBChY','stringify','10GmoKNz','7tSPsFa','lastNotifiedVersion','gte','/v/','number','25entsjE','125700vmVaur','\x20available,\x20current\x20','4565DtIoZK','parse','true','now','lastNotifiedAt','object','1844022UWqVMJ','valid'];a259_0x45bd=function(){return _0x34394a;};return a259_0x45bd();}async function readUpdateNoticeCache(){const _0x2863fe=a259_0x50cb;try{const _0x19af2d=await readFile(getUpdateNoticeCachePath(),_0x2863fe(0x159)),_0x2cafb5=JSON[_0x2863fe(0x152)](_0x19af2d);if(!_0x2cafb5||typeof _0x2cafb5!==_0x2863fe(0x156))return{};return _0x2cafb5;}catch{return{};}}async function writeUpdateNoticeCache(_0x544807){const _0x36cdf8=a259_0x50cb;try{const _0x23fa7f=getUpdateNoticeCachePath();await mkdir(dirname(_0x23fa7f),{'recursive':!![]}),await writeFile(_0x23fa7f,JSON[_0x36cdf8(0x147)](_0x544807,null,0x2)+'\x0a',_0x36cdf8(0x159));}catch{}}function isFreshCheck(_0x4754bd,_0x19eb05){const _0xc9f20=a259_0x50cb;return typeof _0x4754bd[_0xc9f20(0x13e)]===_0xc9f20(0x14d)&&_0x19eb05-_0x4754bd[_0xc9f20(0x13e)]<UPDATE_CHECK_TTL_MS;}function isRecentlyNotified(_0x5265ef,_0x44b7ea,_0x3411a3){const _0x5cf757=a259_0x50cb;return _0x5265ef[_0x5cf757(0x14a)]===_0x44b7ea&&typeof _0x5265ef['lastNotifiedAt']==='number'&&_0x3411a3-_0x5265ef[_0x5cf757(0x155)]<UPDATE_NOTICE_TTL_MS;}export function buildNpmVersionUrl(_0x57739f){const _0x2ba119=a259_0x50cb;return _0x2ba119(0x15b)+NPM_PACKAGE_NAME+_0x2ba119(0x14c)+_0x57739f;}function a259_0x50cb(_0x19f087,_0x20f40f){_0x19f087=_0x19f087-0x13e;const _0x45bd92=a259_0x45bd();let _0x50cbec=_0x45bd92[_0x19f087];return _0x50cbec;}export async function resolveLatestUpdateNotice(){const _0x529f87=a259_0x50cb;if(isUpdateNoticeDisabled())return null;try{const _0x17d3d9=Date[_0x529f87(0x154)](),_0x244577=getCliVersion(),_0x4e3dfc=await readUpdateNoticeCache();let _0x43ad4f=isFreshCheck(_0x4e3dfc,_0x17d3d9)?_0x4e3dfc['latest']?.[_0x529f87(0x15d)]():undefined;if(!_0x43ad4f&&!isFreshCheck(_0x4e3dfc,_0x17d3d9)){const _0x2830f6=await getCliVersionPolicy();_0x43ad4f=_0x2830f6?.['stableVersion']?.['trim']()||undefined,await writeUpdateNoticeCache({..._0x4e3dfc,'checkedAt':_0x17d3d9,'latest':_0x43ad4f,'failed':!_0x43ad4f});}if(!_0x43ad4f||!a259_0x18960b['valid'](_0x244577)||!a259_0x18960b[_0x529f87(0x158)](_0x43ad4f))return null;if(a259_0x18960b[_0x529f87(0x14b)](_0x244577,_0x43ad4f))return null;if(isRecentlyNotified(_0x4e3dfc,_0x43ad4f,_0x17d3d9))return null;const _0x3b07f2=CLI_BIN_NAME+_0x529f87(0x142);return await writeUpdateNoticeCache({..._0x4e3dfc,'checkedAt':isFreshCheck(_0x4e3dfc,_0x17d3d9)?_0x4e3dfc[_0x529f87(0x13e)]:_0x17d3d9,'latest':_0x43ad4f,'failed':![],'lastNotifiedVersion':_0x43ad4f,'lastNotifiedAt':_0x17d3d9}),{'command':_0x3b07f2,'current':_0x244577,'latest':_0x43ad4f,'url':buildNpmVersionUrl(_0x43ad4f),'message':CLI_BIN_NAME+'\x20'+_0x43ad4f+_0x529f87(0x150)+_0x244577+_0x529f87(0x141)+_0x3b07f2};}catch{return null;}}
@@ -1 +1 @@
1
- function a259_0x3acd(_0x14dc62,_0x2c346a){_0x14dc62=_0x14dc62-0xce;var _0x1cf24e=a259_0x1cf2();var _0x3acd84=_0x1cf24e[_0x14dc62];return _0x3acd84;}(function(_0x1742a5,_0x652f71){var _0x3ead=a259_0x3acd,_0x2a2849=_0x1742a5();while(!![]){try{var _0x33697f=-parseInt(_0x3ead(0xce))/0x1+parseInt(_0x3ead(0xcf))/0x2+parseInt(_0x3ead(0xd4))/0x3*(-parseInt(_0x3ead(0xd0))/0x4)+parseInt(_0x3ead(0xd2))/0x5+parseInt(_0x3ead(0xd3))/0x6*(parseInt(_0x3ead(0xd7))/0x7)+-parseInt(_0x3ead(0xd5))/0x8*(-parseInt(_0x3ead(0xd6))/0x9)+parseInt(_0x3ead(0xd1))/0xa;if(_0x33697f===_0x652f71)break;else _0x2a2849['push'](_0x2a2849['shift']());}catch(_0x2840bc){_0x2a2849['push'](_0x2a2849['shift']());}}}(a259_0x1cf2,0x37636));function a259_0x1cf2(){var _0x37963e=['8asbgcJ','2117140RFbqxI','323920NkrmIm','220530FEoigR','539382wUQrqS','514720WInIvf','45fbJeyh','7yctMOL','347005HiJCku','597020bzvcYg'];a259_0x1cf2=function(){return _0x37963e;};return a259_0x1cf2();}import{VERSION}from'../generated/build-info.js';export function getCliVersion(){return VERSION;}
1
+ function a260_0x1cf9(_0x3bcc08,_0x2d1b65){_0x3bcc08=_0x3bcc08-0x185;var _0xf78c43=a260_0xf78c();var _0x1cf960=_0xf78c43[_0x3bcc08];return _0x1cf960;}(function(_0x4713be,_0x2d62fc){var _0x1c48ff=a260_0x1cf9,_0x212b3e=_0x4713be();while(!![]){try{var _0x51d069=parseInt(_0x1c48ff(0x189))/0x1*(parseInt(_0x1c48ff(0x18e))/0x2)+-parseInt(_0x1c48ff(0x186))/0x3*(parseInt(_0x1c48ff(0x187))/0x4)+parseInt(_0x1c48ff(0x18b))/0x5+parseInt(_0x1c48ff(0x18c))/0x6+parseInt(_0x1c48ff(0x188))/0x7+-parseInt(_0x1c48ff(0x18a))/0x8*(-parseInt(_0x1c48ff(0x185))/0x9)+-parseInt(_0x1c48ff(0x18d))/0xa;if(_0x51d069===_0x2d62fc)break;else _0x212b3e['push'](_0x212b3e['shift']());}catch(_0x5529d7){_0x212b3e['push'](_0x212b3e['shift']());}}}(a260_0xf78c,0x482af));function a260_0xf78c(){var _0x1a8d8a=['2ObceKw','189hNWKBl','2901QhNshk','1184VakIXn','2042411EKLSeJ','543617ZRVUEt','171408pUqasB','2014185YCPYWi','2717316jypCfo','15592280wEkGUz'];a260_0xf78c=function(){return _0x1a8d8a;};return a260_0xf78c();}import{VERSION}from'../generated/build-info.js';export function getCliVersion(){return VERSION;}
@@ -1 +1 @@
1
- function a260_0x4fbf(_0x53d3b0,_0x5509d0){_0x53d3b0=_0x53d3b0-0x17e;var _0x14963f=a260_0x1496();var _0x4fbfe2=_0x14963f[_0x53d3b0];return _0x4fbfe2;}(function(_0x53026d,_0x2f9ca6){var _0x484f46=a260_0x4fbf,_0x46f1c2=_0x53026d();while(!![]){try{var _0x34860a=parseInt(_0x484f46(0x186))/0x1+parseInt(_0x484f46(0x180))/0x2+parseInt(_0x484f46(0x181))/0x3+-parseInt(_0x484f46(0x182))/0x4+parseInt(_0x484f46(0x17e))/0x5*(parseInt(_0x484f46(0x185))/0x6)+-parseInt(_0x484f46(0x183))/0x7*(parseInt(_0x484f46(0x184))/0x8)+-parseInt(_0x484f46(0x17f))/0x9;if(_0x34860a===_0x2f9ca6)break;else _0x46f1c2['push'](_0x46f1c2['shift']());}catch(_0x437954){_0x46f1c2['push'](_0x46f1c2['shift']());}}}(a260_0x1496,0xbf0c9));function a260_0x1496(){var _0x17a4d3=['771752ZbfKWZ','1434957dXpThV','109816ggNHJg','1028524JhSkBv','40bEcxhP','2062794ByRFSl','478992XGvseg','5pCHGMY','1281015Xltcbj'];a260_0x1496=function(){return _0x17a4d3;};return a260_0x1496();}import{setActiveCookie,clearActiveCookie}from'../core/api-client.js';export async function withActiveCookie(_0xa4c5fb,_0xe854bd){setActiveCookie(_0xa4c5fb);try{return await _0xe854bd();}finally{clearActiveCookie();}}
1
+ (function(_0x260da7,_0x1519b6){var _0x22774f=a261_0x54f3,_0x47652b=_0x260da7();while(!![]){try{var _0x4a16a7=-parseInt(_0x22774f(0x1f1))/0x1*(parseInt(_0x22774f(0x1f0))/0x2)+parseInt(_0x22774f(0x1f8))/0x3*(-parseInt(_0x22774f(0x1f6))/0x4)+-parseInt(_0x22774f(0x1f5))/0x5+parseInt(_0x22774f(0x1f4))/0x6*(parseInt(_0x22774f(0x1ed))/0x7)+parseInt(_0x22774f(0x1f7))/0x8*(parseInt(_0x22774f(0x1f3))/0x9)+parseInt(_0x22774f(0x1ef))/0xa*(-parseInt(_0x22774f(0x1ee))/0xb)+parseInt(_0x22774f(0x1f2))/0xc;if(_0x4a16a7===_0x1519b6)break;else _0x47652b['push'](_0x47652b['shift']());}catch(_0x3d2550){_0x47652b['push'](_0x47652b['shift']());}}}(a261_0x2e44,0xf2cce));function a261_0x2e44(){var _0x58a011=['66vSUclq','30471yvFtbZ','11ODrkRM','132780DCJQFd','3025572XqGTYs','1lkQppz','31024644oXRQyH','27Ptuyxk','2634aWnZxG','9514855LFGbjI','341060xeDdZz','4808056FFlxCd'];a261_0x2e44=function(){return _0x58a011;};return a261_0x2e44();}import{setActiveCookie,clearActiveCookie}from'../core/api-client.js';function a261_0x54f3(_0x5e014a,_0x160fc5){_0x5e014a=_0x5e014a-0x1ed;var _0x2e445e=a261_0x2e44();var _0x54f3e9=_0x2e445e[_0x5e014a];return _0x54f3e9;}export async function withActiveCookie(_0x1b0018,_0x161699){setActiveCookie(_0x1b0018);try{return await _0x161699();}finally{clearActiveCookie();}}
@@ -1 +1 @@
1
- (function(_0x33729c,_0x2057a8){var _0x4d5088=a261_0x216c,_0x7e2f3a=_0x33729c();while(!![]){try{var _0xb46ac5=-parseInt(_0x4d5088(0x107))/0x1*(-parseInt(_0x4d5088(0x10d))/0x2)+parseInt(_0x4d5088(0x10a))/0x3+parseInt(_0x4d5088(0x105))/0x4+-parseInt(_0x4d5088(0x103))/0x5+-parseInt(_0x4d5088(0x104))/0x6+-parseInt(_0x4d5088(0x108))/0x7*(-parseInt(_0x4d5088(0x10c))/0x8)+-parseInt(_0x4d5088(0x10b))/0x9;if(_0xb46ac5===_0x2057a8)break;else _0x7e2f3a['push'](_0x7e2f3a['shift']());}catch(_0x2803e4){_0x7e2f3a['push'](_0x7e2f3a['shift']());}}}(a261_0x5a64,0x6ab55));function a261_0x5a64(){var _0x271d92=['3552490eeNJfN','1685874iWLrhK','2744360YqAozr','stderr','24dePRDI','3199yzCcKr','write','2584491LrgZlX','6938361TJXVHv','8128WJYptm','15632BUrTAQ'];a261_0x5a64=function(){return _0x271d92;};return a261_0x5a64();}function a261_0x216c(_0x6dda76,_0xae00d7){_0x6dda76=_0x6dda76-0x103;var _0x5a6420=a261_0x5a64();var _0x216cc0=_0x5a6420[_0x6dda76];return _0x216cc0;}export function writeCliSideChannelLine(_0x1f553b){var _0x3e4a7f=a261_0x216c;process[_0x3e4a7f(0x106)][_0x3e4a7f(0x109)](_0x1f553b+'\x0a');}
1
+ (function(_0x5ae944,_0x255e96){var _0x1db061=a262_0x1d9c,_0x5853f9=_0x5ae944();while(!![]){try{var _0x12a025=-parseInt(_0x1db061(0x85))/0x1+-parseInt(_0x1db061(0x83))/0x2*(parseInt(_0x1db061(0x87))/0x3)+parseInt(_0x1db061(0x8a))/0x4+parseInt(_0x1db061(0x8c))/0x5*(parseInt(_0x1db061(0x8b))/0x6)+parseInt(_0x1db061(0x86))/0x7+-parseInt(_0x1db061(0x88))/0x8+parseInt(_0x1db061(0x89))/0x9;if(_0x12a025===_0x255e96)break;else _0x5853f9['push'](_0x5853f9['shift']());}catch(_0x11a081){_0x5853f9['push'](_0x5853f9['shift']());}}}(a262_0x5214,0xddc52));function a262_0x5214(){var _0x5c0eb0=['2700268rETxbd','3902190ZTzFul','5WKkuNg','8298HuLOjl','write','907782hiKhIf','2864106royXHl','393nDetsB','4284792KTdzGg','10446120YVHqir'];a262_0x5214=function(){return _0x5c0eb0;};return a262_0x5214();}function a262_0x1d9c(_0x274023,_0x5139b8){_0x274023=_0x274023-0x83;var _0x5214f2=a262_0x5214();var _0x1d9c1f=_0x5214f2[_0x274023];return _0x1d9c1f;}export function writeCliSideChannelLine(_0x1881a7){var _0x4a7592=a262_0x1d9c;process['stderr'][_0x4a7592(0x84)](_0x1881a7+'\x0a');}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lovrabet/rabetbase-cli",
3
- "version": "2.3.10-beta.1",
3
+ "version": "2.3.10-beta.2",
4
4
  "description": "Developer CLI for Lovrabet apps, datasets, pages, SQL, BFF, database connections, skills, and AI agent workflows.",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "keywords": [