@lovrabet/rabetbase-cli 2.3.12 → 2.3.13-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (260) 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 -1
  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/move.js +1 -1
  109. package/lib/commands/menu/regroup-start.js +1 -1
  110. package/lib/commands/menu/shared/compare-table.js +1 -1
  111. package/lib/commands/menu/shared/delete-plan.js +1 -1
  112. package/lib/commands/menu/shared/facts.js +1 -1
  113. package/lib/commands/menu/shared/index.js +1 -1
  114. package/lib/commands/menu/shared/inquirer.js +1 -1
  115. package/lib/commands/menu/shared/local-pages.js +1 -1
  116. package/lib/commands/menu/shared/logic.js +1 -1
  117. package/lib/commands/menu/shared/mutations.js +1 -1
  118. package/lib/commands/menu/shared/service.js +1 -1
  119. package/lib/commands/menu/shared/sync-core.js +1 -1
  120. package/lib/commands/menu/shared/update-core.js +1 -1
  121. package/lib/commands/menu/shared/valid-url.js +1 -1
  122. package/lib/commands/menu/sync.js +1 -1
  123. package/lib/commands/menu/update.js +1 -1
  124. package/lib/commands/notification/config-list.js +1 -1
  125. package/lib/commands/notification/index.js +1 -1
  126. package/lib/commands/page/generate-start.js +1 -1
  127. package/lib/commands/page/generate-status.js +1 -1
  128. package/lib/commands/page/index.js +1 -1
  129. package/lib/commands/page/pull.js +1 -1
  130. package/lib/commands/page/push.js +1 -1
  131. package/lib/commands/page/relation-audit.js +1 -1
  132. package/lib/commands/page/shared.js +1 -1
  133. package/lib/commands/page/standard-page-status.js +1 -1
  134. package/lib/commands/page/sync.js +1 -1
  135. package/lib/commands/permit/index.js +1 -1
  136. package/lib/commands/permit/page-get.js +1 -1
  137. package/lib/commands/permit/page-set.js +1 -1
  138. package/lib/commands/permit/role-apis-set.js +1 -1
  139. package/lib/commands/permit/role-menus-set.js +1 -1
  140. package/lib/commands/permit/role-menus.js +1 -1
  141. package/lib/commands/permit/shared.js +1 -1
  142. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  143. package/lib/commands/project/create/format-elapsed.js +1 -1
  144. package/lib/commands/project/create/main.js +1 -1
  145. package/lib/commands/project/create/non-interactive.js +1 -1
  146. package/lib/commands/project/create/project-template-path.js +1 -1
  147. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  148. package/lib/commands/project/create/use-format-code.js +1 -1
  149. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  150. package/lib/commands/project/index.js +1 -1
  151. package/lib/commands/project/init.js +1 -1
  152. package/lib/commands/project/upgrade.js +1 -1
  153. package/lib/commands/registry.js +1 -1
  154. package/lib/commands/role/create.js +1 -1
  155. package/lib/commands/role/delete.js +1 -1
  156. package/lib/commands/role/detail.js +1 -1
  157. package/lib/commands/role/index.js +1 -1
  158. package/lib/commands/role/list.js +1 -1
  159. package/lib/commands/role/shared.js +1 -1
  160. package/lib/commands/role/update.js +1 -1
  161. package/lib/commands/role/user-add.js +1 -1
  162. package/lib/commands/role/user-remove.js +1 -1
  163. package/lib/commands/role/user-resolve.js +1 -1
  164. package/lib/commands/run/index.js +1 -1
  165. package/lib/commands/schema.js +1 -1
  166. package/lib/commands/sql/create.js +1 -1
  167. package/lib/commands/sql/delete.js +1 -1
  168. package/lib/commands/sql/detail.js +1 -1
  169. package/lib/commands/sql/exec.js +1 -1
  170. package/lib/commands/sql/index.js +1 -1
  171. package/lib/commands/sql/list.js +1 -1
  172. package/lib/commands/sql/pull.js +1 -1
  173. package/lib/commands/sql/push.js +1 -1
  174. package/lib/commands/sql/save.js +1 -1
  175. package/lib/commands/sql/shared.js +1 -1
  176. package/lib/commands/sql/status.js +1 -1
  177. package/lib/commands/sql/validate.js +1 -1
  178. package/lib/commands/task/index.js +1 -1
  179. package/lib/commands/task/status.js +1 -1
  180. package/lib/commands/workspace/add.js +1 -1
  181. package/lib/commands/workspace/index.js +1 -1
  182. package/lib/commands/workspace/remove.js +1 -1
  183. package/lib/config/schema.js +1 -1
  184. package/lib/constant/cdn.js +1 -1
  185. package/lib/constant/cli.js +1 -1
  186. package/lib/constant/defaults.js +1 -1
  187. package/lib/constant/domain.js +1 -1
  188. package/lib/constant/env.js +1 -1
  189. package/lib/constant/output.js +1 -1
  190. package/lib/constant/paths.js +1 -1
  191. package/lib/constant/risk.js +1 -1
  192. package/lib/context/app-resolver.js +1 -1
  193. package/lib/context/auth-resolver.js +1 -1
  194. package/lib/context/config-loader.js +1 -1
  195. package/lib/context.js +1 -1
  196. package/lib/core/alias-resolver.js +1 -1
  197. package/lib/core/api-client.js +1 -1
  198. package/lib/core/bff/config.js +1 -1
  199. package/lib/core/bff/file-system.js +1 -1
  200. package/lib/core/bff/hash.js +1 -1
  201. package/lib/core/bff/lock.js +1 -1
  202. package/lib/core/bff/utils.js +1 -1
  203. package/lib/core/db-resolver.js +1 -1
  204. package/lib/core/page/file-system.js +1 -1
  205. package/lib/core/page/hash.js +1 -1
  206. package/lib/core/page/lock.js +1 -1
  207. package/lib/core/sql-index-auditor.js +1 -1
  208. package/lib/core/sql-sync/config.js +1 -1
  209. package/lib/core/sql-sync/file-system.js +1 -1
  210. package/lib/core/sql-sync/hash.js +1 -1
  211. package/lib/core/sql-sync/lock.js +1 -1
  212. package/lib/core/sql-sync/utils.js +1 -1
  213. package/lib/core/sql-validator.js +1 -1
  214. package/lib/errors.js +1 -1
  215. package/lib/framework/build-all-flags.js +1 -1
  216. package/lib/framework/error-output.js +1 -1
  217. package/lib/framework/explicit-yes.js +1 -1
  218. package/lib/framework/flags.js +1 -1
  219. package/lib/framework/help.js +1 -1
  220. package/lib/framework/index.js +1 -1
  221. package/lib/framework/output.js +1 -1
  222. package/lib/framework/response.js +1 -1
  223. package/lib/framework/runner-alias.js +1 -1
  224. package/lib/framework/runner.js +1 -1
  225. package/lib/framework/schema-export.js +1 -1
  226. package/lib/framework/types.js +1 -1
  227. package/lib/generated/build-info.js +1 -1
  228. package/lib/help.js +1 -1
  229. package/lib/skills/main.js +1 -1
  230. package/lib/skills/npx-skills-add.js +1 -1
  231. package/lib/telemetry/cli-command-trace.js +1 -1
  232. package/lib/telemetry/cli-help-trace.js +1 -1
  233. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  234. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  235. package/lib/telemetry/send-cli-trace-log.js +1 -1
  236. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  237. package/lib/utils/ai_config.js +1 -1
  238. package/lib/utils/apply-jq-filter.js +1 -1
  239. package/lib/utils/cdn-config.js +1 -1
  240. package/lib/utils/check-sdk-version.js +1 -1
  241. package/lib/utils/cli-version-check.js +1 -1
  242. package/lib/utils/cli-version-policy.js +1 -1
  243. package/lib/utils/config.js +1 -1
  244. package/lib/utils/copy-directory.js +1 -1
  245. package/lib/utils/entity-with-id.js +1 -1
  246. package/lib/utils/file-utils.js +1 -1
  247. package/lib/utils/guides-cdn.js +1 -1
  248. package/lib/utils/http-client.js +1 -1
  249. package/lib/utils/is-non-interactive.js +1 -1
  250. package/lib/utils/logger.js +1 -1
  251. package/lib/utils/params.js +1 -1
  252. package/lib/utils/platform.js +1 -1
  253. package/lib/utils/rules-cdn.js +1 -1
  254. package/lib/utils/sleep.js +1 -1
  255. package/lib/utils/template-replacer.js +1 -1
  256. package/lib/utils/update-notice.js +1 -1
  257. package/lib/utils/version.js +1 -1
  258. package/lib/utils/with-active-cookie.js +1 -1
  259. package/lib/utils/write-cli-side-channel.js +1 -1
  260. package/package.json +1 -1
@@ -1 +1 @@
1
- (function(_0x38f51a,_0x2c2e3d){const _0x4ab3bd=a253_0x1c2c,_0x529a44=_0x38f51a();while(!![]){try{const _0xd82711=parseInt(_0x4ab3bd(0x9d))/0x1*(-parseInt(_0x4ab3bd(0x97))/0x2)+-parseInt(_0x4ab3bd(0x95))/0x3+parseInt(_0x4ab3bd(0x98))/0x4*(parseInt(_0x4ab3bd(0x9f))/0x5)+-parseInt(_0x4ab3bd(0x96))/0x6+-parseInt(_0x4ab3bd(0x9c))/0x7+parseInt(_0x4ab3bd(0x99))/0x8*(parseInt(_0x4ab3bd(0xa0))/0x9)+parseInt(_0x4ab3bd(0x9a))/0xa;if(_0xd82711===_0x2c2e3d)break;else _0x529a44['push'](_0x529a44['shift']());}catch(_0x1d41f9){_0x529a44['push'](_0x529a44['shift']());}}}(a253_0x4e10,0x534ac));function a253_0x4e10(){const _0x33914c=['1NtTtMz','true','7355JMrmcU','2043GeZRQp','isTTY','setRawMode','stdout','stdin','830568MhMOIf','173640JjuJPs','1190194YCbANe','12AXbmzH','18448QJBfZW','9535640lMGkvr','isRaw','1675674lEoDFl'];a253_0x4e10=function(){return _0x33914c;};return a253_0x4e10();}function a253_0x1c2c(_0x236c4c,_0x44396a){_0x236c4c=_0x236c4c-0x95;const _0x4e1011=a253_0x4e10();let _0x1c2cd1=_0x4e1011[_0x236c4c];return _0x1c2cd1;}function env(_0x3b92fe){return process.env[`RABETBASE_${_0x3b92fe}`]||process.env[`LOVRABET_${_0x3b92fe}`]||undefined;}export function isNonInteractive(_0x5714ca){const _0x581db0=a253_0x1c2c;return!!(_0x5714ca['nonInteractive']||_0x5714ca['ci']||env('CI')===_0x581db0(0x9e)||process.env.CI==='true'||!process[_0x581db0(0xa3)][_0x581db0(0xa1)]||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x6d1d97=a253_0x1c2c;if(!process[_0x6d1d97(0xa4)]['isTTY'])return![];try{const _0x281bab=process[_0x6d1d97(0xa4)][_0x6d1d97(0x9b)];return process['stdin'][_0x6d1d97(0xa2)](!![]),process[_0x6d1d97(0xa4)]['setRawMode'](_0x281bab??![]),!![];}catch{return![];}}
1
+ (function(_0x3dda25,_0x40ea3b){const _0x4ec36a=a253_0x592a,_0x17e6cf=_0x3dda25();while(!![]){try{const _0x17d911=-parseInt(_0x4ec36a(0x118))/0x1*(parseInt(_0x4ec36a(0x113))/0x2)+-parseInt(_0x4ec36a(0x115))/0x3+-parseInt(_0x4ec36a(0x10c))/0x4+parseInt(_0x4ec36a(0x116))/0x5+parseInt(_0x4ec36a(0x10d))/0x6+parseInt(_0x4ec36a(0x114))/0x7+parseInt(_0x4ec36a(0x112))/0x8;if(_0x17d911===_0x40ea3b)break;else _0x17e6cf['push'](_0x17e6cf['shift']());}catch(_0x50d36c){_0x17e6cf['push'](_0x17e6cf['shift']());}}}(a253_0x5e40,0xbb60a));function a253_0x592a(_0x54d592,_0xa00b68){_0x54d592=_0x54d592-0x10c;const _0x5e4057=a253_0x5e40();let _0x592afb=_0x5e4057[_0x54d592];return _0x592afb;}function env(_0x2c5af4){return process.env[`RABETBASE_${_0x2c5af4}`]||process.env[`LOVRABET_${_0x2c5af4}`]||undefined;}function a253_0x5e40(){const _0xf7c922=['4232208iuevhG','41596HbVlit','10386831qBRQhq','981396KCjnep','70985JVodpt','nonInteractive','14aPZGIM','6136696XtUEdx','5357520fHlVVR','isTTY','stdin','true','setRawMode'];a253_0x5e40=function(){return _0xf7c922;};return a253_0x5e40();}export function isNonInteractive(_0x427468){const _0x4aee23=a253_0x592a;return!!(_0x427468[_0x4aee23(0x117)]||_0x427468['ci']||env('CI')==='true'||process.env.CI===_0x4aee23(0x110)||!process['stdout']['isTTY']||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x13efed=a253_0x592a;if(!process[_0x13efed(0x10f)][_0x13efed(0x10e)])return![];try{const _0x18fe01=process[_0x13efed(0x10f)]['isRaw'];return process[_0x13efed(0x10f)]['setRawMode'](!![]),process['stdin'][_0x13efed(0x111)](_0x18fe01??![]),!![];}catch{return![];}}
@@ -1 +1 @@
1
- const a254_0x4d5b63=a254_0x4e4a;(function(_0x23494f,_0x2d019a){const _0x3f8c51=a254_0x4e4a,_0x3d7fcd=_0x23494f();while(!![]){try{const _0x29318f=-parseInt(_0x3f8c51(0x1dd))/0x1*(-parseInt(_0x3f8c51(0x1e7))/0x2)+parseInt(_0x3f8c51(0x1c3))/0x3*(-parseInt(_0x3f8c51(0x1d7))/0x4)+parseInt(_0x3f8c51(0x1dc))/0x5+parseInt(_0x3f8c51(0x1ed))/0x6+-parseInt(_0x3f8c51(0x1d3))/0x7+parseInt(_0x3f8c51(0x1bd))/0x8*(-parseInt(_0x3f8c51(0x1c4))/0x9)+parseInt(_0x3f8c51(0x1c9))/0xa*(parseInt(_0x3f8c51(0x1c1))/0xb);if(_0x29318f===_0x2d019a)break;else _0x3d7fcd['push'](_0x3d7fcd['shift']());}catch(_0x16f02f){_0x3d7fcd['push'](_0x3d7fcd['shift']());}}}(a254_0x4d22,0xc731b));import a254_0x5c5797 from'winston';import a254_0x4c0311 from'node:fs';import a254_0x27ce49 from'node:path';function a254_0x4e4a(_0x49dbad,_0x7e1dc6){_0x49dbad=_0x49dbad-0x1b3;const _0x4d22d1=a254_0x4d22();let _0x4e4a50=_0x4d22d1[_0x49dbad];return _0x4e4a50;}class Logger{[a254_0x4d5b63(0x1ca)];[a254_0x4d5b63(0x1d6)];[a254_0x4d5b63(0x1eb)]='';constructor(){const _0x5d9464=a254_0x4d5b63;this[_0x5d9464(0x1d6)]='';}[a254_0x4d5b63(0x1cf)](_0x149d2c){const _0x4f610f=a254_0x4d5b63;this[_0x4f610f(0x1eb)]=_0x149d2c;}[a254_0x4d5b63(0x1de)](){const _0x20aad9=a254_0x4d5b63,_0x143c65=a254_0x27ce49['dirname'](this[_0x20aad9(0x1d6)]);!a254_0x4c0311['existsSync'](_0x143c65)&&a254_0x4c0311[_0x20aad9(0x1e1)](_0x143c65,{'recursive':!![]});const _0x2f3843=a254_0x5c5797['format'][_0x20aad9(0x1e9)](a254_0x5c5797[_0x20aad9(0x1db)]['timestamp'](),a254_0x5c5797['format'][_0x20aad9(0x1d0)]({'stack':!![]}),a254_0x5c5797[_0x20aad9(0x1db)][_0x20aad9(0x1e0)](_0x1c0f25=>{const _0x59a813=_0x20aad9,_0x1aca06={'timestamp':_0x1c0f25[_0x59a813(0x1d4)]||new Date()[_0x59a813(0x1e4)](),'level':_0x1c0f25['level']||'info','command':_0x1c0f25[_0x59a813(0x1ce)]||_0x59a813(0x1d5),'rawCommand':_0x1c0f25[_0x59a813(0x1c7)]||this[_0x59a813(0x1eb)]||undefined,'message':_0x1c0f25[_0x59a813(0x1da)]||'','duration':_0x1c0f25['duration']||undefined,'details':_0x1c0f25[_0x59a813(0x1ee)]||undefined};return JSON[_0x59a813(0x1c8)](_0x1aca06);}));this[_0x20aad9(0x1ca)]=a254_0x5c5797[_0x20aad9(0x1cc)]({'level':_0x20aad9(0x1b3),'format':_0x2f3843,'transports':[new a254_0x5c5797[(_0x20aad9(0x1ea))]['File']({'filename':this[_0x20aad9(0x1d6)],'level':_0x20aad9(0x1b3)})],'silent':![]}),a254_0x5c5797[_0x20aad9(0x1e6)]({'success':_0x20aad9(0x1bc),'error':_0x20aad9(0x1ec),'warn':_0x20aad9(0x1c2),'info':_0x20aad9(0x1c6)});}[a254_0x4d5b63(0x1be)](_0x63b1ad){const _0x51cd57=a254_0x4d5b63;this[_0x51cd57(0x1d6)]=a254_0x27ce49[_0x51cd57(0x1b5)](_0x63b1ad,_0x51cd57(0x1d1)),this['winstonLogger']&&this[_0x51cd57(0x1ca)][_0x51cd57(0x1ba)](),this[_0x51cd57(0x1de)]();}[a254_0x4d5b63(0x1b3)](_0x334666,_0x36105f,_0x562ff4){const _0x44ad6f=a254_0x4d5b63;if(!this[_0x44ad6f(0x1d6)]||!this[_0x44ad6f(0x1ca)])return;this[_0x44ad6f(0x1ca)][_0x44ad6f(0x1b3)](_0x36105f,{'command':_0x334666,'details':_0x562ff4});}[a254_0x4d5b63(0x1bb)](_0x1fe0ed,_0x4bfe24,_0x1a880a,_0x121486){const _0x45bcee=a254_0x4d5b63;if(!this[_0x45bcee(0x1d6)]||!this[_0x45bcee(0x1ca)])return;this[_0x45bcee(0x1ca)]['log'](_0x45bcee(0x1b3),_0x4bfe24,{'level':_0x45bcee(0x1bb),'command':_0x1fe0ed,'duration':_0x1a880a,'details':_0x121486});}['error'](_0x27c583,_0x4bb33d,_0x117b67){const _0x9240cc=a254_0x4d5b63;if(!this[_0x9240cc(0x1d6)]||!this[_0x9240cc(0x1ca)])return;this[_0x9240cc(0x1ca)][_0x9240cc(0x1e2)](_0x4bb33d,{'command':_0x27c583,'details':_0x117b67});}['warn'](_0x13df1b,_0x2a1c28,_0x374aed){const _0x363f17=a254_0x4d5b63;if(!this[_0x363f17(0x1d6)]||!this[_0x363f17(0x1ca)])return;this[_0x363f17(0x1ca)][_0x363f17(0x1c5)](_0x2a1c28,{'command':_0x13df1b,'details':_0x374aed});}async['logTask'](_0x441055,_0x2b50cd,_0xd1f3db){const _0x4b9a6e=a254_0x4d5b63,_0x265763=Date[_0x4b9a6e(0x1b7)]();this[_0x4b9a6e(0x1b3)](_0x441055,_0x4b9a6e(0x1b8)+_0x2b50cd);try{const _0x2229f1=await _0xd1f3db(),_0x4cf208=Date['now']()-_0x265763;return this[_0x4b9a6e(0x1bb)](_0x441055,_0x4b9a6e(0x1c0)+_0x2b50cd,_0x4cf208),_0x2229f1;}catch(_0x3184a2){const _0x488f1a=Date[_0x4b9a6e(0x1b7)]()-_0x265763;this['error'](_0x441055,_0x4b9a6e(0x1cd)+_0x2b50cd,{'error':_0x3184a2 instanceof Error?_0x3184a2[_0x4b9a6e(0x1da)]:String(_0x3184a2),'duration':_0x488f1a});throw _0x3184a2;}}[a254_0x4d5b63(0x1df)](){const _0x55123c=a254_0x4d5b63;try{if(!a254_0x4c0311['existsSync'](this[_0x55123c(0x1d6)]))return[];const _0x11326a=a254_0x4c0311[_0x55123c(0x1e3)](this[_0x55123c(0x1d6)],_0x55123c(0x1b9));return _0x11326a['split']('\x0a')[_0x55123c(0x1b4)](_0x1c9b74=>_0x1c9b74[_0x55123c(0x1e8)]())['map'](_0x5591e4=>JSON[_0x55123c(0x1e5)](_0x5591e4));}catch(_0x5739c6){return console['warn'](_0x55123c(0x1bf),_0x5739c6),[];}}[a254_0x4d5b63(0x1d8)](){const _0x4f73e4=a254_0x4d5b63;try{a254_0x4c0311[_0x4f73e4(0x1b6)](this[_0x4f73e4(0x1d6)])&&a254_0x4c0311[_0x4f73e4(0x1cb)](this[_0x4f73e4(0x1d6)],'',_0x4f73e4(0x1b9));}catch(_0x19e59f){console[_0x4f73e4(0x1c5)](_0x4f73e4(0x1d9),_0x19e59f);}}[a254_0x4d5b63(0x1d2)](){const _0xa9a353=a254_0x4d5b63;return this[_0xa9a353(0x1ca)];}}export const logger=new Logger();function a254_0x4d22(){const _0x3623dd=['8yhyQRL','setLogPath','Failed\x20to\x20read\x20logs:','完成:\x20','7375247uZbOfK','yellow','12IFxsyd','14046993uIzvLA','warn','blue','rawCommand','stringify','10daicAo','winstonLogger','writeFileSync','createLogger','失败:\x20','command','setRawCommand','errors','.lovrabet.log','getWinstonInstance','5019644grqBdW','timestamp','unknown','logFilePath','179484IemlMM','clearLogs','Failed\x20to\x20clear\x20logs:','message','format','1057325reJWEq','3557UKGPpy','initWinstonLogger','readLogs','printf','mkdirSync','error','readFileSync','toISOString','parse','addColors','758ubsYRA','trim','combine','transports','currentRawCommand','red','6259242OjWQjz','details','info','filter','join','existsSync','now','开始执行:\x20','utf8','clear','success','green'];a254_0x4d22=function(){return _0x3623dd;};return a254_0x4d22();}
1
+ function a254_0x4b1d(){const _0x157e7e=['timestamp','error','4279389aPXtUX','toISOString','4ybsVNy','warn','.lovrabet.log','完成:\x20','initWinstonLogger','stringify','rawCommand','trim','unknown','green','logFilePath','addColors','parse','existsSync','printf','24323695pCmWKL','red','details','transports','join','errors','Failed\x20to\x20clear\x20logs:','2546425kYdJND','yellow','10vOzPHP','7407itCXyB','utf8','2062mWkxfT','format','6517770KTSttq','clearLogs','now','mkdirSync','duration','3608SHZAGu','createLogger','message','dirname','info','2239805opwCDu','setRawCommand','currentRawCommand','File','失败:\x20','setLogPath','winstonLogger','split','success','1211KoiEkl','filter','readLogs','logTask','log','getWinstonInstance','readFileSync'];a254_0x4b1d=function(){return _0x157e7e;};return a254_0x4b1d();}function a254_0x33f1(_0x3e88b9,_0x5157ae){_0x3e88b9=_0x3e88b9-0x1da;const _0x4b1dfc=a254_0x4b1d();let _0x33f19d=_0x4b1dfc[_0x3e88b9];return _0x33f19d;}const a254_0x340ec2=a254_0x33f1;(function(_0x1e5104,_0x336b4b){const _0x56e689=a254_0x33f1,_0x3ce1f3=_0x1e5104();while(!![]){try{const _0x490d91=parseInt(_0x56e689(0x1ec))/0x1*(-parseInt(_0x56e689(0x212))/0x2)+-parseInt(_0x56e689(0x1f5))/0x3+parseInt(_0x56e689(0x1f7))/0x4*(-parseInt(_0x56e689(0x1e3))/0x5)+parseInt(_0x56e689(0x214))/0x6+parseInt(_0x56e689(0x20d))/0x7+-parseInt(_0x56e689(0x1de))/0x8*(-parseInt(_0x56e689(0x210))/0x9)+-parseInt(_0x56e689(0x20f))/0xa*(-parseInt(_0x56e689(0x206))/0xb);if(_0x490d91===_0x336b4b)break;else _0x3ce1f3['push'](_0x3ce1f3['shift']());}catch(_0x2b4bf4){_0x3ce1f3['push'](_0x3ce1f3['shift']());}}}(a254_0x4b1d,0xde0d3));import a254_0x4d1d65 from'winston';import a254_0x34c6b1 from'node:fs';import a254_0x50019a from'node:path';class Logger{['winstonLogger'];[a254_0x340ec2(0x201)];[a254_0x340ec2(0x1e5)]='';constructor(){this['logFilePath']='';}[a254_0x340ec2(0x1e4)](_0x5a9d97){this['currentRawCommand']=_0x5a9d97;}[a254_0x340ec2(0x1fb)](){const _0x12ba17=a254_0x340ec2,_0x1267e3=a254_0x50019a[_0x12ba17(0x1e1)](this[_0x12ba17(0x201)]);!a254_0x34c6b1[_0x12ba17(0x204)](_0x1267e3)&&a254_0x34c6b1[_0x12ba17(0x1dc)](_0x1267e3,{'recursive':!![]});const _0x12c9b7=a254_0x4d1d65[_0x12ba17(0x213)]['combine'](a254_0x4d1d65['format'][_0x12ba17(0x1f3)](),a254_0x4d1d65['format'][_0x12ba17(0x20b)]({'stack':!![]}),a254_0x4d1d65[_0x12ba17(0x213)][_0x12ba17(0x205)](_0x8c7a3=>{const _0x4501ef=_0x12ba17,_0x5eeb90={'timestamp':_0x8c7a3['timestamp']||new Date()[_0x4501ef(0x1f6)](),'level':_0x8c7a3['level']||_0x4501ef(0x1e2),'command':_0x8c7a3['command']||_0x4501ef(0x1ff),'rawCommand':_0x8c7a3[_0x4501ef(0x1fd)]||this['currentRawCommand']||undefined,'message':_0x8c7a3[_0x4501ef(0x1e0)]||'','duration':_0x8c7a3[_0x4501ef(0x1dd)]||undefined,'details':_0x8c7a3[_0x4501ef(0x208)]||undefined};return JSON[_0x4501ef(0x1fc)](_0x5eeb90);}));this['winstonLogger']=a254_0x4d1d65[_0x12ba17(0x1df)]({'level':_0x12ba17(0x1e2),'format':_0x12c9b7,'transports':[new a254_0x4d1d65[(_0x12ba17(0x209))][(_0x12ba17(0x1e6))]({'filename':this[_0x12ba17(0x201)],'level':_0x12ba17(0x1e2)})],'silent':![]}),a254_0x4d1d65[_0x12ba17(0x202)]({'success':_0x12ba17(0x200),'error':_0x12ba17(0x207),'warn':_0x12ba17(0x20e),'info':'blue'});}[a254_0x340ec2(0x1e8)](_0x4764c2){const _0x244473=a254_0x340ec2;this['logFilePath']=a254_0x50019a[_0x244473(0x20a)](_0x4764c2,_0x244473(0x1f9)),this['winstonLogger']&&this[_0x244473(0x1e9)]['clear'](),this[_0x244473(0x1fb)]();}[a254_0x340ec2(0x1e2)](_0x43bc12,_0xc5be05,_0x4ae0e3){const _0x2cf233=a254_0x340ec2;if(!this[_0x2cf233(0x201)]||!this['winstonLogger'])return;this[_0x2cf233(0x1e9)][_0x2cf233(0x1e2)](_0xc5be05,{'command':_0x43bc12,'details':_0x4ae0e3});}[a254_0x340ec2(0x1eb)](_0x5f45fa,_0x5279a0,_0x58d3b8,_0x136d60){const _0x9b8c20=a254_0x340ec2;if(!this['logFilePath']||!this[_0x9b8c20(0x1e9)])return;this[_0x9b8c20(0x1e9)][_0x9b8c20(0x1f0)](_0x9b8c20(0x1e2),_0x5279a0,{'level':_0x9b8c20(0x1eb),'command':_0x5f45fa,'duration':_0x58d3b8,'details':_0x136d60});}['error'](_0x31c624,_0x30bb0b,_0x3e3e92){const _0x37d07b=a254_0x340ec2;if(!this[_0x37d07b(0x201)]||!this[_0x37d07b(0x1e9)])return;this[_0x37d07b(0x1e9)][_0x37d07b(0x1f4)](_0x30bb0b,{'command':_0x31c624,'details':_0x3e3e92});}[a254_0x340ec2(0x1f8)](_0x56777c,_0x59f0ed,_0xdcbe77){const _0x12a705=a254_0x340ec2;if(!this[_0x12a705(0x201)]||!this['winstonLogger'])return;this[_0x12a705(0x1e9)][_0x12a705(0x1f8)](_0x59f0ed,{'command':_0x56777c,'details':_0xdcbe77});}async[a254_0x340ec2(0x1ef)](_0x5d99c3,_0x2da47a,_0x16a7b9){const _0x1c95e7=a254_0x340ec2,_0x1b19f8=Date[_0x1c95e7(0x1db)]();this[_0x1c95e7(0x1e2)](_0x5d99c3,'开始执行:\x20'+_0x2da47a);try{const _0x53243b=await _0x16a7b9(),_0x3bbdfc=Date[_0x1c95e7(0x1db)]()-_0x1b19f8;return this[_0x1c95e7(0x1eb)](_0x5d99c3,_0x1c95e7(0x1fa)+_0x2da47a,_0x3bbdfc),_0x53243b;}catch(_0xbe20e7){const _0x5bcb00=Date[_0x1c95e7(0x1db)]()-_0x1b19f8;this[_0x1c95e7(0x1f4)](_0x5d99c3,_0x1c95e7(0x1e7)+_0x2da47a,{'error':_0xbe20e7 instanceof Error?_0xbe20e7[_0x1c95e7(0x1e0)]:String(_0xbe20e7),'duration':_0x5bcb00});throw _0xbe20e7;}}[a254_0x340ec2(0x1ee)](){const _0x5f1b1c=a254_0x340ec2;try{if(!a254_0x34c6b1[_0x5f1b1c(0x204)](this[_0x5f1b1c(0x201)]))return[];const _0x59e5c4=a254_0x34c6b1[_0x5f1b1c(0x1f2)](this['logFilePath'],_0x5f1b1c(0x211));return _0x59e5c4[_0x5f1b1c(0x1ea)]('\x0a')[_0x5f1b1c(0x1ed)](_0x135a52=>_0x135a52[_0x5f1b1c(0x1fe)]())['map'](_0x3c9144=>JSON[_0x5f1b1c(0x203)](_0x3c9144));}catch(_0x121a81){return console[_0x5f1b1c(0x1f8)]('Failed\x20to\x20read\x20logs:',_0x121a81),[];}}[a254_0x340ec2(0x1da)](){const _0x135b72=a254_0x340ec2;try{a254_0x34c6b1[_0x135b72(0x204)](this['logFilePath'])&&a254_0x34c6b1['writeFileSync'](this[_0x135b72(0x201)],'',_0x135b72(0x211));}catch(_0x55ae6a){console['warn'](_0x135b72(0x20c),_0x55ae6a);}}[a254_0x340ec2(0x1f1)](){const _0x5dd851=a254_0x340ec2;return this[_0x5dd851(0x1e9)];}}export const logger=new Logger();
@@ -1 +1 @@
1
- function a255_0x58c4(_0x4ee491,_0x1edaf2){_0x4ee491=_0x4ee491-0x1f0;const _0x48bd2b=a255_0x48bd();let _0x58c49c=_0x48bd2b[_0x4ee491];return _0x58c49c;}function a255_0x48bd(){const _0x977e39=['16872PPVQiz','parse','679ewvjzb','1345248gQKSdu','431jGIcDU','Invalid\x20JSON\x20for\x20--params:\x20','49740xphqto','isArray','object','11QUCfRE','validation','4kIMaZA','1321515DypYuy','2395302TKIqKv','594ofewCz','1931085qKgXJP'];a255_0x48bd=function(){return _0x977e39;};return a255_0x48bd();}(function(_0x54db88,_0xa178d4){const _0x23e846=a255_0x58c4,_0x5f392e=_0x54db88();while(!![]){try{const _0x5409e0=parseInt(_0x23e846(0x1fb))/0x1*(parseInt(_0x23e846(0x1f5))/0x2)+parseInt(_0x23e846(0x1f3))/0x3+-parseInt(_0x23e846(0x1f2))/0x4*(parseInt(_0x23e846(0x1f6))/0x5)+parseInt(_0x23e846(0x1f4))/0x6+-parseInt(_0x23e846(0x1f9))/0x7*(parseInt(_0x23e846(0x1f7))/0x8)+-parseInt(_0x23e846(0x1fa))/0x9+-parseInt(_0x23e846(0x1fd))/0xa*(-parseInt(_0x23e846(0x1f0))/0xb);if(_0x5409e0===_0xa178d4)break;else _0x5f392e['push'](_0x5f392e['shift']());}catch(_0x4b0ecb){_0x5f392e['push'](_0x5f392e['shift']());}}}(a255_0x48bd,0x38bf9));import{CliErrors}from'../errors.js';export function parseJsonParams(_0x4a523e){const _0x498831=a255_0x58c4;if(!_0x4a523e)return undefined;let _0xf62e3f;try{_0xf62e3f=JSON[_0x498831(0x1f8)](_0x4a523e);}catch{throw CliErrors[_0x498831(0x1f1)](_0x498831(0x1fc)+_0x4a523e);}if(!_0xf62e3f||typeof _0xf62e3f!==_0x498831(0x1ff)||Array[_0x498831(0x1fe)](_0xf62e3f))throw CliErrors['validation']('--params\x20must\x20be\x20a\x20JSON\x20object','Example:\x20--params\x20\x27{\x22id\x22:123}\x27');return _0xf62e3f;}
1
+ (function(_0x171589,_0x1d1046){const _0x533013=a255_0x5598,_0x1cd1b6=_0x171589();while(!![]){try{const _0x42ee22=-parseInt(_0x533013(0x142))/0x1+parseInt(_0x533013(0x13f))/0x2*(-parseInt(_0x533013(0x143))/0x3)+-parseInt(_0x533013(0x144))/0x4+-parseInt(_0x533013(0x141))/0x5*(-parseInt(_0x533013(0x14c))/0x6)+-parseInt(_0x533013(0x147))/0x7+-parseInt(_0x533013(0x140))/0x8+-parseInt(_0x533013(0x149))/0x9*(-parseInt(_0x533013(0x146))/0xa);if(_0x42ee22===_0x1d1046)break;else _0x1cd1b6['push'](_0x1cd1b6['shift']());}catch(_0x3a40fb){_0x1cd1b6['push'](_0x1cd1b6['shift']());}}}(a255_0x157b,0xa8e0f));import{CliErrors}from'../errors.js';function a255_0x5598(_0x27bc5e,_0x4e8c89){_0x27bc5e=_0x27bc5e-0x13f;const _0x157b32=a255_0x157b();let _0x559833=_0x157b32[_0x27bc5e];return _0x559833;}function a255_0x157b(){const _0x9fcc7f=['7596897jEZHyb','isArray','45pzymqB','Example:\x20--params\x20\x27{\x22id\x22:123}\x27','parse','6jZOxIo','Invalid\x20JSON\x20for\x20--params:\x20','--params\x20must\x20be\x20a\x20JSON\x20object','validation','14MVaKig','6176184AGDDtJ','2961215NXeLAd','830548ITKObQ','198801umDMPI','1241600sInMNJ','object','7123190CSgOWO'];a255_0x157b=function(){return _0x9fcc7f;};return a255_0x157b();}export function parseJsonParams(_0x3f9d69){const _0x51c025=a255_0x5598;if(!_0x3f9d69)return undefined;let _0x204c90;try{_0x204c90=JSON[_0x51c025(0x14b)](_0x3f9d69);}catch{throw CliErrors[_0x51c025(0x14f)](_0x51c025(0x14d)+_0x3f9d69);}if(!_0x204c90||typeof _0x204c90!==_0x51c025(0x145)||Array[_0x51c025(0x148)](_0x204c90))throw CliErrors[_0x51c025(0x14f)](_0x51c025(0x14e),_0x51c025(0x14a));return _0x204c90;}
@@ -1 +1 @@
1
- const a256_0x4f1806=a256_0x175d;(function(_0x7eb7d8,_0x5b990b){const _0x2aac3d=a256_0x175d,_0x420e62=_0x7eb7d8();while(!![]){try{const _0x24e04b=parseInt(_0x2aac3d(0x106))/0x1+-parseInt(_0x2aac3d(0x108))/0x2+parseInt(_0x2aac3d(0x105))/0x3*(parseInt(_0x2aac3d(0x101))/0x4)+-parseInt(_0x2aac3d(0x10d))/0x5*(-parseInt(_0x2aac3d(0x10b))/0x6)+-parseInt(_0x2aac3d(0x103))/0x7*(parseInt(_0x2aac3d(0x102))/0x8)+parseInt(_0x2aac3d(0x10c))/0x9*(parseInt(_0x2aac3d(0x104))/0xa)+parseInt(_0x2aac3d(0x109))/0xb*(-parseInt(_0x2aac3d(0x100))/0xc);if(_0x24e04b===_0x5b990b)break;else _0x420e62['push'](_0x420e62['shift']());}catch(_0x6479f2){_0x420e62['push'](_0x420e62['shift']());}}}(a256_0x5a88,0xde44d));export const isWindows=process[a256_0x4f1806(0x107)]===a256_0x4f1806(0x10a);function a256_0x175d(_0x3f21e4,_0x4a5f8d){_0x3f21e4=_0x3f21e4-0x100;const _0x5a8827=a256_0x5a88();let _0x175dc8=_0x5a8827[_0x3f21e4];return _0x175dc8;}function a256_0x5a88(){const _0x18c023=['platform','1800604Xoambe','24233riiePs','win32','8371002tngdvI','79272mrjYmh','5KAaRqz','13272GHneZh','5743916WakoUB','3136gDXhYN','1260CCWOqX','600CHTjMJ','3AJSBpY','958167cKQxUX'];a256_0x5a88=function(){return _0x18c023;};return a256_0x5a88();}export function resolveNpmBin(_0x25a69d){return isWindows?_0x25a69d+'.cmd':_0x25a69d;}
1
+ const a256_0x178b99=a256_0x29ad;(function(_0x57f7b7,_0x18b0fa){const _0x283340=a256_0x29ad,_0x4252aa=_0x57f7b7();while(!![]){try{const _0x118886=parseInt(_0x283340(0x110))/0x1+parseInt(_0x283340(0x115))/0x2*(parseInt(_0x283340(0x116))/0x3)+parseInt(_0x283340(0x114))/0x4+-parseInt(_0x283340(0x111))/0x5+parseInt(_0x283340(0x117))/0x6*(-parseInt(_0x283340(0x10e))/0x7)+-parseInt(_0x283340(0x10d))/0x8+parseInt(_0x283340(0x10f))/0x9;if(_0x118886===_0x18b0fa)break;else _0x4252aa['push'](_0x4252aa['shift']());}catch(_0x5e8f1d){_0x4252aa['push'](_0x4252aa['shift']());}}}(a256_0x38bd,0x1f4fe));export const isWindows=process[a256_0x178b99(0x112)]===a256_0x178b99(0x113);export function resolveNpmBin(_0x3bd0c2){return isWindows?_0x3bd0c2+'.cmd':_0x3bd0c2;}function a256_0x29ad(_0x28afb0,_0x545463){_0x28afb0=_0x28afb0-0x10d;const _0x38bd2c=a256_0x38bd();let _0x29ad6f=_0x38bd2c[_0x28afb0];return _0x29ad6f;}function a256_0x38bd(){const _0x558e1d=['platform','win32','790768RBEyhf','2UuPglT','110793sPiKgo','598566EnPvXc','1486144EIuiwA','14LrBumk','1012446UGQrmW','193809eGjJgM','136910IbfqQd'];a256_0x38bd=function(){return _0x558e1d;};return a256_0x38bd();}
@@ -1 +1 @@
1
- const a257_0x45547e=a257_0x50bd;function a257_0x50bd(_0x2444d1,_0x3396ab){_0x2444d1=_0x2444d1-0x113;const _0x5be9a1=a257_0x5be9();let _0x50bdd3=_0x5be9a1[_0x2444d1];return _0x50bdd3;}(function(_0x106d77,_0x1954a8){const _0x3253c2=a257_0x50bd,_0xdb1be0=_0x106d77();while(!![]){try{const _0x4d7eb6=parseInt(_0x3253c2(0x119))/0x1+-parseInt(_0x3253c2(0x113))/0x2+-parseInt(_0x3253c2(0x118))/0x3+parseInt(_0x3253c2(0x11f))/0x4+parseInt(_0x3253c2(0x11b))/0x5*(-parseInt(_0x3253c2(0x127))/0x6)+-parseInt(_0x3253c2(0x126))/0x7+-parseInt(_0x3253c2(0x11d))/0x8*(parseInt(_0x3253c2(0x128))/0x9);if(_0x4d7eb6===_0x1954a8)break;else _0xdb1be0['push'](_0xdb1be0['shift']());}catch(_0xc2f0dc){_0xdb1be0['push'](_0xdb1be0['shift']());}}}(a257_0x5be9,0x21c7a));function a257_0x5be9(){const _0x2b2653=['228519utzocZ','199197lSfCiw','CDN\x20返回数据格式错误','290980IYYOyk','CDN\x20请求失败:\x20','151496QrcsmH','../../templates/rules/lovrabet_rules.mdc.tpl','982180BjVptz','agents.md','lovrabet_rules.mdc','.cursor/rules','status','content','application/json','207165tRCbfU','6pyhvMn','63upTXSR','json','19714yZxbpE','utf-8','本地模板文件不存在:\x20','catch','lastUpdated'];a257_0x5be9=function(){return _0x2b2653;};return a257_0x5be9();}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 _0x4fc583=getTemplateBaseUrl();return _0x4fc583+'/rules/rules.json';}const LOCAL_TEMPLATE_PATH=resolve(__dirname,a257_0x45547e(0x11e));export async function fetchRulesFromCDN(){const _0x291bb9=a257_0x45547e,_0x44a280=getRulesCdnUrl(),_0x3a742b=await fetch(_0x44a280,{'headers':{'Accept':_0x291bb9(0x125)}});if(!_0x3a742b['ok'])throw new Error(_0x291bb9(0x11c)+_0x3a742b[_0x291bb9(0x123)]+'\x20'+_0x3a742b['statusText']);const _0x5caa22=await _0x3a742b[_0x291bb9(0x129)]();if(!_0x5caa22[_0x291bb9(0x124)]||typeof _0x5caa22[_0x291bb9(0x124)]!=='string')throw new Error(_0x291bb9(0x11a));return _0x5caa22;}export async function getRulesContent(){const _0x3af6ca=a257_0x45547e;try{const _0x2a5e39=await fetchRulesFromCDN();return _0x2a5e39[_0x3af6ca(0x124)];}catch{return readLocalTemplate();}}export function readLocalTemplate(){const _0x2325c6=a257_0x45547e;if(existsSync(LOCAL_TEMPLATE_PATH))return readFileSync(LOCAL_TEMPLATE_PATH,_0x2325c6(0x114));throw new Error(_0x2325c6(0x115)+LOCAL_TEMPLATE_PATH);}export async function writeRulesFile(_0x8a6082){const _0x3c3a3f=a257_0x45547e,_0x484ece=await fetchRulesFromCDN()[_0x3c3a3f(0x116)](()=>null);let _0x5f13ff;_0x484ece?(_0x5f13ff=_0x484ece[_0x3c3a3f(0x124)],_0x484ece[_0x3c3a3f(0x117)]&&(_0x5f13ff=appendUpdateTime(_0x5f13ff,_0x484ece[_0x3c3a3f(0x117)]))):_0x5f13ff=readLocalTemplate();const _0x235cb5=dirname(_0x8a6082);!existsSync(_0x235cb5)&&mkdirSync(_0x235cb5,{'recursive':!![]}),writeFileSync(_0x8a6082,_0x5f13ff,_0x3c3a3f(0x114));}export async function copyRulesToCursor(_0x13e64f){const _0x433343=a257_0x45547e,_0x3ed229=join(_0x13e64f,_0x433343(0x122)),_0xf8b868=join(_0x3ed229,_0x433343(0x121));if(existsSync(_0xf8b868))return![];return await writeRulesFile(_0xf8b868),!![];}export async function copyRulesToAgentsMd(_0xc31a2b){const _0x30b01e=a257_0x45547e,_0x58f428=join(_0xc31a2b,_0x30b01e(0x120));if(existsSync(_0x58f428))return![];return await writeRulesFile(_0x58f428),!![];}
1
+ (function(_0x2e883d,_0x40276e){const _0x45e1f9=a257_0x5262,_0x14d313=_0x2e883d();while(!![]){try{const _0x494556=-parseInt(_0x45e1f9(0x158))/0x1+-parseInt(_0x45e1f9(0x159))/0x2+parseInt(_0x45e1f9(0x15a))/0x3+parseInt(_0x45e1f9(0x154))/0x4+-parseInt(_0x45e1f9(0x152))/0x5*(-parseInt(_0x45e1f9(0x160))/0x6)+-parseInt(_0x45e1f9(0x151))/0x7+-parseInt(_0x45e1f9(0x164))/0x8*(-parseInt(_0x45e1f9(0x15d))/0x9);if(_0x494556===_0x40276e)break;else _0x14d313['push'](_0x14d313['shift']());}catch(_0x177404){_0x14d313['push'](_0x14d313['shift']());}}}(a257_0x4f2c,0x1da21));import{existsSync,mkdirSync,readFileSync,writeFileSync}from'node:fs';function a257_0x4f2c(){const _0x16dbbc=['454020VOFoEE','lovrabet_rules.mdc','json','2371401JqURIu','utf-8','content','345810caOVZk','application/json','本地模板文件不存在:\x20','statusText','8LimkzV','catch','1286418UOeUZY','5muZtuZ','CDN\x20返回数据格式错误','425504DwWCsD','lastUpdated','string','agents.md','207276kgyJil','132826itscZJ'];a257_0x4f2c=function(){return _0x16dbbc;};return a257_0x4f2c();}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 _0x2467bb=getTemplateBaseUrl();return _0x2467bb+'/rules/rules.json';}const LOCAL_TEMPLATE_PATH=resolve(__dirname,'../../templates/rules/lovrabet_rules.mdc.tpl');export async function fetchRulesFromCDN(){const _0x589ed2=a257_0x5262,_0x5d6bb2=getRulesCdnUrl(),_0x2ab662=await fetch(_0x5d6bb2,{'headers':{'Accept':_0x589ed2(0x161)}});if(!_0x2ab662['ok'])throw new Error('CDN\x20请求失败:\x20'+_0x2ab662['status']+'\x20'+_0x2ab662[_0x589ed2(0x163)]);const _0xc455ff=await _0x2ab662[_0x589ed2(0x15c)]();if(!_0xc455ff['content']||typeof _0xc455ff[_0x589ed2(0x15f)]!==_0x589ed2(0x156))throw new Error(_0x589ed2(0x153));return _0xc455ff;}export async function getRulesContent(){const _0x476285=a257_0x5262;try{const _0x32d18a=await fetchRulesFromCDN();return _0x32d18a[_0x476285(0x15f)];}catch{return readLocalTemplate();}}export function readLocalTemplate(){const _0x68f16b=a257_0x5262;if(existsSync(LOCAL_TEMPLATE_PATH))return readFileSync(LOCAL_TEMPLATE_PATH,_0x68f16b(0x15e));throw new Error(_0x68f16b(0x162)+LOCAL_TEMPLATE_PATH);}export async function writeRulesFile(_0xdc977c){const _0x3be82b=a257_0x5262,_0x597a95=await fetchRulesFromCDN()[_0x3be82b(0x150)](()=>null);let _0x5375fe;_0x597a95?(_0x5375fe=_0x597a95[_0x3be82b(0x15f)],_0x597a95['lastUpdated']&&(_0x5375fe=appendUpdateTime(_0x5375fe,_0x597a95[_0x3be82b(0x155)]))):_0x5375fe=readLocalTemplate();const _0x5055ae=dirname(_0xdc977c);!existsSync(_0x5055ae)&&mkdirSync(_0x5055ae,{'recursive':!![]}),writeFileSync(_0xdc977c,_0x5375fe,_0x3be82b(0x15e));}export async function copyRulesToCursor(_0x2ace0b){const _0x46ee5c=a257_0x5262,_0x55ef4c=join(_0x2ace0b,'.cursor/rules'),_0x11bcfc=join(_0x55ef4c,_0x46ee5c(0x15b));if(existsSync(_0x11bcfc))return![];return await writeRulesFile(_0x11bcfc),!![];}function a257_0x5262(_0x291520,_0x1ce60c){_0x291520=_0x291520-0x150;const _0x4f2c39=a257_0x4f2c();let _0x5262f3=_0x4f2c39[_0x291520];return _0x5262f3;}export async function copyRulesToAgentsMd(_0x413643){const _0xbca35c=a257_0x5262,_0x2afc1b=join(_0x413643,_0xbca35c(0x157));if(existsSync(_0x2afc1b))return![];return await writeRulesFile(_0x2afc1b),!![];}
@@ -1 +1 @@
1
- export function sleep(_0x5823dd){return new Promise(_0x1115d5=>setTimeout(_0x1115d5,_0x5823dd));}
1
+ export function sleep(_0x2cd6f7){return new Promise(_0x35619c=>setTimeout(_0x35619c,_0x2cd6f7));}
@@ -1 +1 @@
1
- const a259_0x297223=a259_0x3b33;(function(_0x2d9834,_0x292d1a){const _0x1127cf=a259_0x3b33,_0x4830d9=_0x2d9834();while(!![]){try{const _0x3ca647=-parseInt(_0x1127cf(0xbc))/0x1+parseInt(_0x1127cf(0xcc))/0x2+-parseInt(_0x1127cf(0xe4))/0x3+parseInt(_0x1127cf(0xe0))/0x4*(parseInt(_0x1127cf(0xd4))/0x5)+parseInt(_0x1127cf(0xe2))/0x6*(parseInt(_0x1127cf(0xc8))/0x7)+-parseInt(_0x1127cf(0xb9))/0x8+-parseInt(_0x1127cf(0xe9))/0x9*(-parseInt(_0x1127cf(0xbd))/0xa);if(_0x3ca647===_0x292d1a)break;else _0x4830d9['push'](_0x4830d9['shift']());}catch(_0x336251){_0x4830d9['push'](_0x4830d9['shift']());}}}(a259_0x4595,0x2f131));import a259_0x49c0ce from'node:fs';import a259_0x42d3e1 from'node:path';import{logger}from'../utils/logger.js';import{getCliVersion}from'../utils/version.js';function a259_0x3b33(_0xdf9613,_0x401851){_0xdf9613=_0xdf9613-0xb6;const _0x459560=a259_0x4595();let _0x3b337a=_0x459560[_0xdf9613];return _0x3b337a;}const CLI_VERSION=getCliVersion();function a259_0x4595(){const _0x370e1b=['getDate','error','.jsx','map','pop','toComponentName','\x0a\x20\x20\x20\x20{\x20','isFile','getMonth','.tpl','name','replace','name:\x20\x22','1665168UayFhj','utf8','模板内容替换完成','300917aotgHm','10HPXhwy','.json','processTemplate','toISOString','charAt','slice','LOVRABET','formatLocalTimestamp','.css','push','mkdir','49DUhaaF','toLowerCase','join','.scss','455894HLIbXA','isDirectory','toDisplayTitle','template','getHours','datasetCode:\x20\x22','padStart','now','55pzvYWq','pad','message','promises','.tsx','api','processFile','endsWith','模板内容替换失败','alias:\x20\x22','toUpperCase','.md','18972CoIleY','includes','10488UBFBsx','writeFile','1014351zeyjJr','alias','YourModel','copyFile','getSeconds','6728769TBBcfy','split'];a259_0x4595=function(){return _0x370e1b;};return a259_0x4595();}export class TemplateReplacer{static[a259_0x297223(0xd5)](_0x11d226){const _0xa67a37=a259_0x297223;return String(_0x11d226)[_0xa67a37(0xd2)](0x2,'0');}static[a259_0x297223(0xc4)](_0x2a8e85){const _0x40c3d1=a259_0x297223,_0x15310f=_0x2a8e85['getFullYear'](),_0xfdc213=this[_0x40c3d1(0xd5)](_0x2a8e85[_0x40c3d1(0xf3)]()+0x1),_0xb2b3a8=this[_0x40c3d1(0xd5)](_0x2a8e85[_0x40c3d1(0xeb)]()),_0x4ca7ec=this['pad'](_0x2a8e85[_0x40c3d1(0xd0)]()),_0x1867ca=this[_0x40c3d1(0xd5)](_0x2a8e85['getMinutes']()),_0x171d21=this[_0x40c3d1(0xd5)](_0x2a8e85[_0x40c3d1(0xe8)]());return{'createdAt':_0x15310f+'-'+_0xfdc213+'-'+_0xb2b3a8+'\x20'+_0x4ca7ec+':'+_0x1867ca+':'+_0x171d21,'createdDate':_0x15310f+'-'+_0xfdc213+'-'+_0xb2b3a8,'createdTime':_0x4ca7ec+':'+_0x1867ca+':'+_0x171d21};}static['toComponentName'](_0x649748){const _0xc8f0ed=a259_0x297223,_0x42f6e2=_0x649748[_0xc8f0ed(0xea)]('/')[_0xc8f0ed(0xef)]()||_0x649748;return _0x42f6e2[_0xc8f0ed(0xea)]('-')[_0xc8f0ed(0xee)](_0x4492fd=>_0x4492fd[_0xc8f0ed(0xc1)](0x0)[_0xc8f0ed(0xde)]()+_0x4492fd[_0xc8f0ed(0xc2)](0x1)['toLowerCase']())[_0xc8f0ed(0xca)]('');}static[a259_0x297223(0xce)](_0x1ea9de){const _0x478aa0=a259_0x297223,_0x603474=_0x1ea9de['split']('/')[_0x478aa0(0xef)]()||_0x1ea9de;return _0x603474['split']('-')[_0x478aa0(0xee)](_0x518f1b=>_0x518f1b[_0x478aa0(0xc1)](0x0)[_0x478aa0(0xde)]()+_0x518f1b[_0x478aa0(0xc2)](0x1)[_0x478aa0(0xc9)]())[_0x478aa0(0xca)]('\x20');}static['replaceContent'](_0x5b82dc,_0x1a04f2,_0x5bab39){const _0x523a09=a259_0x297223,_0x521827=this[_0x523a09(0xf0)](_0x1a04f2),_0x1fd682=this[_0x523a09(0xce)](_0x1a04f2),{createdAt:_0x46d7e0,createdDate:_0x4164d6,createdTime:_0x108384}=this['formatLocalTimestamp'](new Date());let _0x4be3a1=_0x5b82dc['replace'](/\{CliVersion\}/g,CLI_VERSION)[_0x523a09(0xb7)](/\{ComponentName\}/g,_0x521827)[_0x523a09(0xb7)](/\{DisplayTitle\}/g,_0x1fd682)[_0x523a09(0xb7)](/\{PageName\}/g,_0x1a04f2)['replace'](/\{TemplateName\}/g,_0x5bab39)[_0x523a09(0xb7)](/\{CreatedAt\}/g,_0x46d7e0)['replace'](/\{CreatedDate\}/g,_0x4164d6)[_0x523a09(0xb7)](/\{CreatedTime\}/g,_0x108384);return _0x4be3a1;}static['replaceApiContent'](_0x2d7d83,_0x3d0f53,_0x3d84de,_0x1e2abd,_0x21e2e3,_0x125c20,_0x27c7a6,_0x3a9e80){const _0x13d195=a259_0x297223,_0x22e7c5=new Date(),_0x1b0f4d=_0x22e7c5[_0x13d195(0xc0)](),_0x3560f9=_0x3d84de[_0x13d195(0xee)](_0x57abba=>{const _0x1b4030=_0x13d195,_0x2fc513=[_0x1b4030(0xd1)+_0x57abba['datasetCode']+'\x22','tableName:\x20\x22'+_0x57abba['tableName']+'\x22',_0x1b4030(0xb8)+_0x57abba[_0x1b4030(0xb6)]+'\x22'];return _0x57abba[_0x1b4030(0xe5)]&&_0x2fc513[_0x1b4030(0xc6)](_0x1b4030(0xdd)+_0x57abba[_0x1b4030(0xe5)]+'\x22'),_0x1b4030(0xf1)+_0x2fc513[_0x1b4030(0xca)](',\x20')+'\x20},';})['join'](''),_0x24763d=_0x1e2abd||_0x3d84de[0x0]?.[_0x13d195(0xe5)]||_0x13d195(0xe6);let _0x5ac1cc=_0x2d7d83[_0x13d195(0xb7)](/\{AppCode\}/g,_0x3d0f53)[_0x13d195(0xb7)](/\{ModelConfigs\}/g,_0x3560f9)[_0x13d195(0xb7)](/\{ExampleModelName\}/g,_0x24763d)[_0x13d195(0xb7)](/\{ApiFileName\}/g,_0x21e2e3||_0x13d195(0xd9))[_0x13d195(0xb7)](/\{ConfigName\}/g,_0x125c20||'default')[_0x13d195(0xb7)](/\{ClientConfigParam\}/g,_0x27c7a6||'')[_0x13d195(0xb7)](/\{VarPrefix\}/g,_0x3a9e80||_0x13d195(0xc3))[_0x13d195(0xb7)](/\{CreatedAt\}/g,_0x1b0f4d);return _0x5ac1cc;}static async[a259_0x297223(0xbf)](_0x5cc6d5,_0x4c32d3,_0x353539,_0x18bdf1,_0x3085c7=!![]){const _0x15058c=a259_0x297223,_0x2bc4b8=Date[_0x15058c(0xd3)]();try{_0x3085c7&&logger['info'](_0x15058c(0xcf),'开始处理模板内容替换',{'templatePath':_0x5cc6d5,'targetPath':_0x4c32d3,'pageName':_0x353539,'templateName':_0x18bdf1});await a259_0x49c0ce[_0x15058c(0xd7)][_0x15058c(0xc7)](_0x4c32d3,{'recursive':!![]}),await this['processDirectory'](_0x5cc6d5,_0x4c32d3,_0x353539,_0x18bdf1);if(_0x3085c7){const _0x27d540=Date[_0x15058c(0xd3)]()-_0x2bc4b8;logger['success']('template',_0x15058c(0xbb),_0x27d540,{'pageName':_0x353539,'templateName':_0x18bdf1});}}catch(_0x3b6819){if(_0x3085c7){const _0x475f9e=Date['now']()-_0x2bc4b8;logger[_0x15058c(0xec)](_0x15058c(0xcf),_0x15058c(0xdc),{'templatePath':_0x5cc6d5,'targetPath':_0x4c32d3,'pageName':_0x353539,'templateName':_0x18bdf1,'error':_0x3b6819 instanceof Error?_0x3b6819[_0x15058c(0xd6)]:String(_0x3b6819),'duration':_0x475f9e});}throw _0x3b6819;}}static async['processDirectory'](_0x5b386c,_0x53e2af,_0x22689a,_0x436547){const _0x4ddd9c=a259_0x297223,_0x248d3d=await a259_0x49c0ce[_0x4ddd9c(0xd7)]['readdir'](_0x5b386c,{'withFileTypes':!![]});for(const _0x4e1d56 of _0x248d3d){const _0x5e60ca=a259_0x42d3e1[_0x4ddd9c(0xca)](_0x5b386c,_0x4e1d56[_0x4ddd9c(0xb6)]);let _0x3b7b57=a259_0x42d3e1['join'](_0x53e2af,_0x4e1d56[_0x4ddd9c(0xb6)]);_0x4e1d56[_0x4ddd9c(0xb6)][_0x4ddd9c(0xdb)](_0x4ddd9c(0xf4))&&(_0x3b7b57=a259_0x42d3e1[_0x4ddd9c(0xca)](_0x53e2af,_0x4e1d56[_0x4ddd9c(0xb6)]['replace'](/\.tpl$/,'')));if(_0x4e1d56[_0x4ddd9c(0xcd)]())await a259_0x49c0ce['promises'][_0x4ddd9c(0xc7)](_0x3b7b57,{'recursive':!![]}),await this['processDirectory'](_0x5e60ca,_0x3b7b57,_0x22689a,_0x436547);else _0x4e1d56[_0x4ddd9c(0xf2)]()&&await this[_0x4ddd9c(0xda)](_0x5e60ca,_0x3b7b57,_0x22689a,_0x436547);}}static async[a259_0x297223(0xda)](_0x1a3ef5,_0x31c263,_0x4ad9c5,_0x5708f8){const _0x501f14=a259_0x297223,_0x40f327=a259_0x42d3e1['extname'](_0x1a3ef5)[_0x501f14(0xc9)]();_0x1a3ef5['endsWith'](_0x501f14(0xf4))&&(_0x31c263=_0x31c263[_0x501f14(0xb7)](/\.tpl$/,''));const _0x3df872=[_0x501f14(0xd8),'.ts',_0x501f14(0xed),'.js',_0x501f14(0xbe),_0x501f14(0xdf),_0x501f14(0xc5),_0x501f14(0xcb),_0x501f14(0xf4)];if(_0x3df872[_0x501f14(0xe1)](_0x40f327)||_0x1a3ef5[_0x501f14(0xdb)]('.tpl')){const _0x235c47=await a259_0x49c0ce[_0x501f14(0xd7)]['readFile'](_0x1a3ef5,_0x501f14(0xba)),_0x3eb319=this['replaceContent'](_0x235c47,_0x4ad9c5,_0x5708f8);await a259_0x49c0ce[_0x501f14(0xd7)][_0x501f14(0xe3)](_0x31c263,_0x3eb319,_0x501f14(0xba));}else await a259_0x49c0ce['promises'][_0x501f14(0xe7)](_0x1a3ef5,_0x31c263);}}
1
+ const a259_0x29f1ab=a259_0x2fad;function a259_0x50f9(){const _0x1b01b9=['endsWith','.js','now','tableName','\x0a\x20\x20\x20\x20{\x20','getFullYear','success','replaceContent','isDirectory','9ZRflkK','toUpperCase','slice','processFile','getSeconds','getDate','LOVRABET','replace','开始处理模板内容替换','.scss','\x20},','tableName:\x20\x22','message','extname','getMinutes','10674AkzrJs','padStart','replaceApiContent','map','374910UTPDlC','1517060qBHpgG','name','api','isFile','charAt','template','split','promises','writeFile','copyFile','formatLocalTimestamp','6YNqHjJ','default','getMonth','toDisplayTitle','info','datasetCode:\x20\x22','error','processDirectory','utf8','.ts','.tsx','754520GTkPeH','mkdir','datasetCode','pad','toComponentName','.css','.json','alias','.tpl','getHours','3232744hXZPJa','100380mMFSrM','1109899ZgJPSb','toISOString','alias:\x20\x22','name:\x20\x22','processTemplate','toLowerCase','模板内容替换失败','join'];a259_0x50f9=function(){return _0x1b01b9;};return a259_0x50f9();}(function(_0x1f3b27,_0x44cd7e){const _0x38b444=a259_0x2fad,_0x3c3837=_0x1f3b27();while(!![]){try{const _0x1a3013=parseInt(_0x38b444(0x110))/0x1+parseInt(_0x38b444(0x135))/0x2+-parseInt(_0x38b444(0x131))/0x3+-parseInt(_0x38b444(0x105))/0x4+-parseInt(_0x38b444(0x136))/0x5*(-parseInt(_0x38b444(0xfa))/0x6)+parseInt(_0x38b444(0x111))/0x7+-parseInt(_0x38b444(0x10f))/0x8*(parseInt(_0x38b444(0x122))/0x9);if(_0x1a3013===_0x44cd7e)break;else _0x3c3837['push'](_0x3c3837['shift']());}catch(_0x4b6381){_0x3c3837['push'](_0x3c3837['shift']());}}}(a259_0x50f9,0x257b3));import a259_0x30c82a from'node:fs';import a259_0x5a5ac1 from'node:path';import{logger}from'../utils/logger.js';function a259_0x2fad(_0x16386a,_0x287b9c){_0x16386a=_0x16386a-0xf4;const _0x50f91b=a259_0x50f9();let _0x2fadf6=_0x50f91b[_0x16386a];return _0x2fadf6;}import{getCliVersion}from'../utils/version.js';const CLI_VERSION=getCliVersion();export class TemplateReplacer{static[a259_0x29f1ab(0x108)](_0x300558){const _0x191e98=a259_0x29f1ab;return String(_0x300558)[_0x191e98(0x132)](0x2,'0');}static[a259_0x29f1ab(0xf9)](_0x25efbf){const _0x196308=a259_0x29f1ab,_0x262939=_0x25efbf[_0x196308(0x11e)](),_0x3ec98d=this[_0x196308(0x108)](_0x25efbf[_0x196308(0xfc)]()+0x1),_0x38fc3a=this[_0x196308(0x108)](_0x25efbf[_0x196308(0x127)]()),_0x5e44ea=this[_0x196308(0x108)](_0x25efbf[_0x196308(0x10e)]()),_0x230d1e=this[_0x196308(0x108)](_0x25efbf[_0x196308(0x130)]()),_0x2f15b9=this[_0x196308(0x108)](_0x25efbf[_0x196308(0x126)]());return{'createdAt':_0x262939+'-'+_0x3ec98d+'-'+_0x38fc3a+'\x20'+_0x5e44ea+':'+_0x230d1e+':'+_0x2f15b9,'createdDate':_0x262939+'-'+_0x3ec98d+'-'+_0x38fc3a,'createdTime':_0x5e44ea+':'+_0x230d1e+':'+_0x2f15b9};}static[a259_0x29f1ab(0x109)](_0x3b3183){const _0x3a4e75=a259_0x29f1ab,_0x17fb2e=_0x3b3183[_0x3a4e75(0xf5)]('/')['pop']()||_0x3b3183;return _0x17fb2e['split']('-')[_0x3a4e75(0x134)](_0x35c51d=>_0x35c51d[_0x3a4e75(0x13a)](0x0)[_0x3a4e75(0x123)]()+_0x35c51d['slice'](0x1)[_0x3a4e75(0x116)]())[_0x3a4e75(0x118)]('');}static['toDisplayTitle'](_0x5df19e){const _0x5adece=a259_0x29f1ab,_0x461067=_0x5df19e[_0x5adece(0xf5)]('/')['pop']()||_0x5df19e;return _0x461067[_0x5adece(0xf5)]('-')[_0x5adece(0x134)](_0x5f00e1=>_0x5f00e1[_0x5adece(0x13a)](0x0)[_0x5adece(0x123)]()+_0x5f00e1[_0x5adece(0x124)](0x1)['toLowerCase']())['join']('\x20');}static[a259_0x29f1ab(0x120)](_0x23253a,_0x5bac4f,_0x571953){const _0x28b958=a259_0x29f1ab,_0x8f67a5=this[_0x28b958(0x109)](_0x5bac4f),_0x35a878=this[_0x28b958(0xfd)](_0x5bac4f),{createdAt:_0x1f683b,createdDate:_0x199de2,createdTime:_0x54a104}=this[_0x28b958(0xf9)](new Date());let _0x33807e=_0x23253a[_0x28b958(0x129)](/\{CliVersion\}/g,CLI_VERSION)[_0x28b958(0x129)](/\{ComponentName\}/g,_0x8f67a5)[_0x28b958(0x129)](/\{DisplayTitle\}/g,_0x35a878)[_0x28b958(0x129)](/\{PageName\}/g,_0x5bac4f)[_0x28b958(0x129)](/\{TemplateName\}/g,_0x571953)[_0x28b958(0x129)](/\{CreatedAt\}/g,_0x1f683b)[_0x28b958(0x129)](/\{CreatedDate\}/g,_0x199de2)[_0x28b958(0x129)](/\{CreatedTime\}/g,_0x54a104);return _0x33807e;}static[a259_0x29f1ab(0x133)](_0x3435a4,_0x414b8c,_0x1374c7,_0x50e0f9,_0x40695e,_0x4d421d,_0x331e8e,_0x492c4e){const _0x3e5d3e=a259_0x29f1ab,_0x490a98=new Date(),_0x46bbf2=_0x490a98[_0x3e5d3e(0x112)](),_0x1a7663=_0x1374c7[_0x3e5d3e(0x134)](_0x414561=>{const _0x26462f=_0x3e5d3e,_0x57e9a8=[_0x26462f(0xff)+_0x414561[_0x26462f(0x107)]+'\x22',_0x26462f(0x12d)+_0x414561[_0x26462f(0x11c)]+'\x22',_0x26462f(0x114)+_0x414561['name']+'\x22'];return _0x414561[_0x26462f(0x10c)]&&_0x57e9a8['push'](_0x26462f(0x113)+_0x414561[_0x26462f(0x10c)]+'\x22'),_0x26462f(0x11d)+_0x57e9a8['join'](',\x20')+_0x26462f(0x12c);})[_0x3e5d3e(0x118)](''),_0x36ace3=_0x50e0f9||_0x1374c7[0x0]?.[_0x3e5d3e(0x10c)]||'YourModel';let _0x157830=_0x3435a4[_0x3e5d3e(0x129)](/\{AppCode\}/g,_0x414b8c)[_0x3e5d3e(0x129)](/\{ModelConfigs\}/g,_0x1a7663)[_0x3e5d3e(0x129)](/\{ExampleModelName\}/g,_0x36ace3)[_0x3e5d3e(0x129)](/\{ApiFileName\}/g,_0x40695e||_0x3e5d3e(0x138))[_0x3e5d3e(0x129)](/\{ConfigName\}/g,_0x4d421d||_0x3e5d3e(0xfb))['replace'](/\{ClientConfigParam\}/g,_0x331e8e||'')[_0x3e5d3e(0x129)](/\{VarPrefix\}/g,_0x492c4e||_0x3e5d3e(0x128))['replace'](/\{CreatedAt\}/g,_0x46bbf2);return _0x157830;}static async[a259_0x29f1ab(0x115)](_0x27c366,_0x3425e2,_0x2129c9,_0xdd212b,_0xfdaeb9=!![]){const _0x2db578=a259_0x29f1ab,_0x5912da=Date[_0x2db578(0x11b)]();try{_0xfdaeb9&&logger[_0x2db578(0xfe)](_0x2db578(0xf4),_0x2db578(0x12a),{'templatePath':_0x27c366,'targetPath':_0x3425e2,'pageName':_0x2129c9,'templateName':_0xdd212b});await a259_0x30c82a[_0x2db578(0xf6)]['mkdir'](_0x3425e2,{'recursive':!![]}),await this['processDirectory'](_0x27c366,_0x3425e2,_0x2129c9,_0xdd212b);if(_0xfdaeb9){const _0x3782bf=Date[_0x2db578(0x11b)]()-_0x5912da;logger[_0x2db578(0x11f)]('template','模板内容替换完成',_0x3782bf,{'pageName':_0x2129c9,'templateName':_0xdd212b});}}catch(_0x1fecf9){if(_0xfdaeb9){const _0x5cc86b=Date['now']()-_0x5912da;logger[_0x2db578(0x100)](_0x2db578(0xf4),_0x2db578(0x117),{'templatePath':_0x27c366,'targetPath':_0x3425e2,'pageName':_0x2129c9,'templateName':_0xdd212b,'error':_0x1fecf9 instanceof Error?_0x1fecf9[_0x2db578(0x12e)]:String(_0x1fecf9),'duration':_0x5cc86b});}throw _0x1fecf9;}}static async[a259_0x29f1ab(0x101)](_0x7ba6f2,_0x146f92,_0x2dafed,_0x23b7bc){const _0x1cab67=a259_0x29f1ab,_0x11427b=await a259_0x30c82a[_0x1cab67(0xf6)]['readdir'](_0x7ba6f2,{'withFileTypes':!![]});for(const _0xb8f513 of _0x11427b){const _0x5d2c29=a259_0x5a5ac1['join'](_0x7ba6f2,_0xb8f513[_0x1cab67(0x137)]);let _0x1e5efe=a259_0x5a5ac1['join'](_0x146f92,_0xb8f513['name']);_0xb8f513[_0x1cab67(0x137)][_0x1cab67(0x119)]('.tpl')&&(_0x1e5efe=a259_0x5a5ac1['join'](_0x146f92,_0xb8f513[_0x1cab67(0x137)]['replace'](/\.tpl$/,'')));if(_0xb8f513[_0x1cab67(0x121)]())await a259_0x30c82a[_0x1cab67(0xf6)][_0x1cab67(0x106)](_0x1e5efe,{'recursive':!![]}),await this[_0x1cab67(0x101)](_0x5d2c29,_0x1e5efe,_0x2dafed,_0x23b7bc);else _0xb8f513[_0x1cab67(0x139)]()&&await this[_0x1cab67(0x125)](_0x5d2c29,_0x1e5efe,_0x2dafed,_0x23b7bc);}}static async[a259_0x29f1ab(0x125)](_0x288d23,_0x52aabe,_0x101583,_0x8256c){const _0x338d2f=a259_0x29f1ab,_0x804451=a259_0x5a5ac1[_0x338d2f(0x12f)](_0x288d23)[_0x338d2f(0x116)]();_0x288d23[_0x338d2f(0x119)](_0x338d2f(0x10d))&&(_0x52aabe=_0x52aabe['replace'](/\.tpl$/,''));const _0x18b02c=[_0x338d2f(0x104),_0x338d2f(0x103),'.jsx',_0x338d2f(0x11a),_0x338d2f(0x10b),'.md',_0x338d2f(0x10a),_0x338d2f(0x12b),'.tpl'];if(_0x18b02c['includes'](_0x804451)||_0x288d23['endsWith'](_0x338d2f(0x10d))){const _0x28fbe4=await a259_0x30c82a['promises']['readFile'](_0x288d23,_0x338d2f(0x102)),_0x53fa5e=this[_0x338d2f(0x120)](_0x28fbe4,_0x101583,_0x8256c);await a259_0x30c82a['promises'][_0x338d2f(0xf7)](_0x52aabe,_0x53fa5e,_0x338d2f(0x102));}else await a259_0x30c82a[_0x338d2f(0xf6)][_0x338d2f(0xf8)](_0x288d23,_0x52aabe);}}
@@ -1 +1 @@
1
- function a260_0x49ef(){const _0x436887=['6690920onoRvG','9drgBfv','latest','\x20available,\x20current\x20','gte','trim','toLowerCase','125jZkXDQ','447246lvkGBP','41WJabuc','now','stableVersion','https://www.npmjs.com/package/','5964552hobZzZ','lastNotifiedVersion','1149522TtjvYJ','utf8','stringify','40282tJUVgx','update-check.json','7LEzGmB','true','lastNotifiedAt','number',',\x20run:\x20','\x20update','.cache','7473504zvpIqL','checkedAt','object','valid','92648AQGjWe','33JcWykl'];a260_0x49ef=function(){return _0x436887;};return a260_0x49ef();}(function(_0x3ed933,_0x39f66b){const _0x206642=a260_0x466a,_0x5017dc=_0x3ed933();while(!![]){try{const _0x465b02=-parseInt(_0x206642(0x1e3))/0x1*(parseInt(_0x206642(0x1cb))/0x2)+parseInt(_0x206642(0x1e2))/0x3+parseInt(_0x206642(0x1d8))/0x4*(parseInt(_0x206642(0x1e1))/0x5)+parseInt(_0x206642(0x1c8))/0x6*(parseInt(_0x206642(0x1cd))/0x7)+-parseInt(_0x206642(0x1c6))/0x8+parseInt(_0x206642(0x1db))/0x9*(-parseInt(_0x206642(0x1da))/0xa)+parseInt(_0x206642(0x1d9))/0xb*(parseInt(_0x206642(0x1d4))/0xc);if(_0x465b02===_0x39f66b)break;else _0x5017dc['push'](_0x5017dc['shift']());}catch(_0x2ad1f4){_0x5017dc['push'](_0x5017dc['shift']());}}}(a260_0x49ef,0x85b45));import{mkdir,readFile,writeFile}from'node:fs/promises';import{homedir}from'node:os';import{dirname,join}from'node:path';import a260_0x42a978 from'semver';import{CLI_BIN_NAME,NPM_PACKAGE_NAME}from'../constant/cli.js';function a260_0x466a(_0x512ace,_0x31bbf8){_0x512ace=_0x512ace-0x1c4;const _0x49ef0f=a260_0x49ef();let _0x466a5f=_0x49ef0f[_0x512ace];return _0x466a5f;}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 _0x5d92d4=a260_0x466a,_0x3b0121=process.env.RABETBASE_NO_UPDATE_NOTICE?.[_0x5d92d4(0x1df)]()[_0x5d92d4(0x1e0)]();return _0x3b0121==='1'||_0x3b0121===_0x5d92d4(0x1ce)||_0x3b0121==='yes';}function cacheRoot(){const _0x3e20bf=a260_0x466a;return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),_0x3e20bf(0x1d3));}export function getUpdateNoticeCachePath(){const _0x5dbfdd=a260_0x466a;return join(cacheRoot(),'rabetbase-cli',_0x5dbfdd(0x1cc));}async function readUpdateNoticeCache(){const _0x300bc6=a260_0x466a;try{const _0x2a79d1=await readFile(getUpdateNoticeCachePath(),_0x300bc6(0x1c9)),_0x49bc98=JSON['parse'](_0x2a79d1);if(!_0x49bc98||typeof _0x49bc98!==_0x300bc6(0x1d6))return{};return _0x49bc98;}catch{return{};}}async function writeUpdateNoticeCache(_0x55bae0){const _0x56a009=a260_0x466a;try{const _0x37b0a5=getUpdateNoticeCachePath();await mkdir(dirname(_0x37b0a5),{'recursive':!![]}),await writeFile(_0x37b0a5,JSON[_0x56a009(0x1ca)](_0x55bae0,null,0x2)+'\x0a',_0x56a009(0x1c9));}catch{}}function isFreshCheck(_0x199553,_0x27f41a){const _0x587dc7=a260_0x466a;return typeof _0x199553[_0x587dc7(0x1d5)]===_0x587dc7(0x1d0)&&_0x27f41a-_0x199553['checkedAt']<UPDATE_CHECK_TTL_MS;}function isRecentlyNotified(_0x15d443,_0xf84d73,_0x278c00){const _0xceac31=a260_0x466a;return _0x15d443[_0xceac31(0x1c7)]===_0xf84d73&&typeof _0x15d443[_0xceac31(0x1cf)]==='number'&&_0x278c00-_0x15d443['lastNotifiedAt']<UPDATE_NOTICE_TTL_MS;}export function buildNpmVersionUrl(_0x1d41fc){const _0x464d05=a260_0x466a;return _0x464d05(0x1c5)+NPM_PACKAGE_NAME+'/v/'+_0x1d41fc;}export async function resolveLatestUpdateNotice(){const _0x3ec4d3=a260_0x466a;if(isUpdateNoticeDisabled())return null;try{const _0x58898e=Date[_0x3ec4d3(0x1e4)](),_0x1eb97e=getCliVersion(),_0x32ffb1=await readUpdateNoticeCache();let _0x2bbeca=isFreshCheck(_0x32ffb1,_0x58898e)?_0x32ffb1[_0x3ec4d3(0x1dc)]?.[_0x3ec4d3(0x1df)]():undefined;if(!_0x2bbeca&&!isFreshCheck(_0x32ffb1,_0x58898e)){const _0x26d951=await getCliVersionPolicy();_0x2bbeca=_0x26d951?.[_0x3ec4d3(0x1c4)]?.[_0x3ec4d3(0x1df)]()||undefined,await writeUpdateNoticeCache({..._0x32ffb1,'checkedAt':_0x58898e,'latest':_0x2bbeca,'failed':!_0x2bbeca});}if(!_0x2bbeca||!a260_0x42a978[_0x3ec4d3(0x1d7)](_0x1eb97e)||!a260_0x42a978[_0x3ec4d3(0x1d7)](_0x2bbeca))return null;if(a260_0x42a978[_0x3ec4d3(0x1de)](_0x1eb97e,_0x2bbeca))return null;if(isRecentlyNotified(_0x32ffb1,_0x2bbeca,_0x58898e))return null;const _0x28b3cd=CLI_BIN_NAME+_0x3ec4d3(0x1d2);return await writeUpdateNoticeCache({..._0x32ffb1,'checkedAt':isFreshCheck(_0x32ffb1,_0x58898e)?_0x32ffb1[_0x3ec4d3(0x1d5)]:_0x58898e,'latest':_0x2bbeca,'failed':![],'lastNotifiedVersion':_0x2bbeca,'lastNotifiedAt':_0x58898e}),{'command':_0x28b3cd,'current':_0x1eb97e,'latest':_0x2bbeca,'url':buildNpmVersionUrl(_0x2bbeca),'message':CLI_BIN_NAME+'\x20'+_0x2bbeca+_0x3ec4d3(0x1dd)+_0x1eb97e+_0x3ec4d3(0x1d1)+_0x28b3cd};}catch{return null;}}
1
+ (function(_0x31d670,_0x53d326){const _0xb0196b=a260_0x9d51,_0x5eac32=_0x31d670();while(!![]){try{const _0x2057c4=-parseInt(_0xb0196b(0xce))/0x1*(-parseInt(_0xb0196b(0xc3))/0x2)+-parseInt(_0xb0196b(0xcb))/0x3+parseInt(_0xb0196b(0xba))/0x4+parseInt(_0xb0196b(0xb9))/0x5+parseInt(_0xb0196b(0xcd))/0x6+-parseInt(_0xb0196b(0xbb))/0x7+parseInt(_0xb0196b(0xc9))/0x8;if(_0x2057c4===_0x53d326)break;else _0x5eac32['push'](_0x5eac32['shift']());}catch(_0xb1baf5){_0x5eac32['push'](_0x5eac32['shift']());}}}(a260_0x5a7e,0x545d0));import{mkdir,readFile,writeFile}from'node:fs/promises';import{homedir}from'node:os';import{dirname,join}from'node:path';import a260_0x14e5db 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 _0x11c0b7=a260_0x9d51,_0x3bf7c4=process.env.RABETBASE_NO_UPDATE_NOTICE?.[_0x11c0b7(0xc6)]()[_0x11c0b7(0xbc)]();return _0x3bf7c4==='1'||_0x3bf7c4===_0x11c0b7(0xcc)||_0x3bf7c4===_0x11c0b7(0xd1);}function cacheRoot(){const _0xe2d6df=a260_0x9d51;return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),_0xe2d6df(0xbf));}export function getUpdateNoticeCachePath(){const _0x5121a1=a260_0x9d51;return join(cacheRoot(),_0x5121a1(0xc7),'update-check.json');}function a260_0x5a7e(){const _0xa92f03=['gte','trim','rabetbase-cli','stableVersion','2049528gtrWbM','checkedAt','700842DpaIuj','true','1669716wYtDhx','2cvBELB','number','now','yes','71085zdtdeJ','818908bSQbtz','1304443kCYLXZ','toLowerCase','\x20available,\x20current\x20','lastNotifiedVersion','.cache','valid','/v/','utf8','12094SVjvHY','parse'];a260_0x5a7e=function(){return _0xa92f03;};return a260_0x5a7e();}function a260_0x9d51(_0x1af2d3,_0x5c61b0){_0x1af2d3=_0x1af2d3-0xb9;const _0x5a7ed7=a260_0x5a7e();let _0x9d5175=_0x5a7ed7[_0x1af2d3];return _0x9d5175;}async function readUpdateNoticeCache(){const _0x2f4a9b=a260_0x9d51;try{const _0x13eceb=await readFile(getUpdateNoticeCachePath(),_0x2f4a9b(0xc2)),_0x15fb95=JSON[_0x2f4a9b(0xc4)](_0x13eceb);if(!_0x15fb95||typeof _0x15fb95!=='object')return{};return _0x15fb95;}catch{return{};}}async function writeUpdateNoticeCache(_0x1f2b63){const _0x305a7f=a260_0x9d51;try{const _0x4a9be7=getUpdateNoticeCachePath();await mkdir(dirname(_0x4a9be7),{'recursive':!![]}),await writeFile(_0x4a9be7,JSON['stringify'](_0x1f2b63,null,0x2)+'\x0a',_0x305a7f(0xc2));}catch{}}function isFreshCheck(_0x5892fd,_0x51431c){const _0x362375=a260_0x9d51;return typeof _0x5892fd[_0x362375(0xca)]===_0x362375(0xcf)&&_0x51431c-_0x5892fd['checkedAt']<UPDATE_CHECK_TTL_MS;}function isRecentlyNotified(_0x415014,_0x18d61a,_0x4b3457){const _0x3bb9b2=a260_0x9d51;return _0x415014[_0x3bb9b2(0xbe)]===_0x18d61a&&typeof _0x415014['lastNotifiedAt']===_0x3bb9b2(0xcf)&&_0x4b3457-_0x415014['lastNotifiedAt']<UPDATE_NOTICE_TTL_MS;}export function buildNpmVersionUrl(_0x30ec09){const _0x12106e=a260_0x9d51;return'https://www.npmjs.com/package/'+NPM_PACKAGE_NAME+_0x12106e(0xc1)+_0x30ec09;}export async function resolveLatestUpdateNotice(){const _0x493d65=a260_0x9d51;if(isUpdateNoticeDisabled())return null;try{const _0x66345=Date[_0x493d65(0xd0)](),_0x514cfb=getCliVersion(),_0x51996d=await readUpdateNoticeCache();let _0x1a444b=isFreshCheck(_0x51996d,_0x66345)?_0x51996d['latest']?.[_0x493d65(0xc6)]():undefined;if(!_0x1a444b&&!isFreshCheck(_0x51996d,_0x66345)){const _0x1813ef=await getCliVersionPolicy();_0x1a444b=_0x1813ef?.[_0x493d65(0xc8)]?.[_0x493d65(0xc6)]()||undefined,await writeUpdateNoticeCache({..._0x51996d,'checkedAt':_0x66345,'latest':_0x1a444b,'failed':!_0x1a444b});}if(!_0x1a444b||!a260_0x14e5db[_0x493d65(0xc0)](_0x514cfb)||!a260_0x14e5db[_0x493d65(0xc0)](_0x1a444b))return null;if(a260_0x14e5db[_0x493d65(0xc5)](_0x514cfb,_0x1a444b))return null;if(isRecentlyNotified(_0x51996d,_0x1a444b,_0x66345))return null;const _0x165690=CLI_BIN_NAME+'\x20update';return await writeUpdateNoticeCache({..._0x51996d,'checkedAt':isFreshCheck(_0x51996d,_0x66345)?_0x51996d[_0x493d65(0xca)]:_0x66345,'latest':_0x1a444b,'failed':![],'lastNotifiedVersion':_0x1a444b,'lastNotifiedAt':_0x66345}),{'command':_0x165690,'current':_0x514cfb,'latest':_0x1a444b,'url':buildNpmVersionUrl(_0x1a444b),'message':CLI_BIN_NAME+'\x20'+_0x1a444b+_0x493d65(0xbd)+_0x514cfb+',\x20run:\x20'+_0x165690};}catch{return null;}}
@@ -1 +1 @@
1
- function a261_0x4c59(_0x21cd6e,_0x541a87){_0x21cd6e=_0x21cd6e-0xcd;var _0x2d181e=a261_0x2d18();var _0x4c5923=_0x2d181e[_0x21cd6e];return _0x4c5923;}function a261_0x2d18(){var _0x2c024b=['320zuBGmj','200730fvICzx','202020IqCtWO','110sepJul','13980jzCYpJ','298760vHNutc','1499528qcikKH','220668BnKOwx','7owEyYr','6hNhzBS','6597llOXNE'];a261_0x2d18=function(){return _0x2c024b;};return a261_0x2d18();}(function(_0x4bef08,_0x2589aa){var _0x301f05=a261_0x4c59,_0x18a2d6=_0x4bef08();while(!![]){try{var _0x2b86eb=parseInt(_0x301f05(0xd4))/0x1+parseInt(_0x301f05(0xd3))/0x2*(parseInt(_0x301f05(0xd0))/0x3)+parseInt(_0x301f05(0xce))/0x4+-parseInt(_0x301f05(0xd2))/0x5*(parseInt(_0x301f05(0xd6))/0x6)+parseInt(_0x301f05(0xcf))/0x7*(-parseInt(_0x301f05(0xcd))/0x8)+-parseInt(_0x301f05(0xd1))/0x9*(-parseInt(_0x301f05(0xd5))/0xa)+-parseInt(_0x301f05(0xd7))/0xb;if(_0x2b86eb===_0x2589aa)break;else _0x18a2d6['push'](_0x18a2d6['shift']());}catch(_0x2373b6){_0x18a2d6['push'](_0x18a2d6['shift']());}}}(a261_0x2d18,0x18f73));import{VERSION}from'../generated/build-info.js';export function getCliVersion(){return VERSION;}
1
+ (function(_0x4f675e,_0x20e843){var _0x1f3aec=a261_0x173e,_0x1a81e1=_0x4f675e();while(!![]){try{var _0x38cdfb=-parseInt(_0x1f3aec(0x15d))/0x1*(parseInt(_0x1f3aec(0x161))/0x2)+-parseInt(_0x1f3aec(0x15f))/0x3*(-parseInt(_0x1f3aec(0x160))/0x4)+-parseInt(_0x1f3aec(0x163))/0x5+parseInt(_0x1f3aec(0x162))/0x6*(parseInt(_0x1f3aec(0x164))/0x7)+parseInt(_0x1f3aec(0x166))/0x8*(parseInt(_0x1f3aec(0x165))/0x9)+-parseInt(_0x1f3aec(0x15e))/0xa+-parseInt(_0x1f3aec(0x167))/0xb*(-parseInt(_0x1f3aec(0x15c))/0xc);if(_0x38cdfb===_0x20e843)break;else _0x1a81e1['push'](_0x1a81e1['shift']());}catch(_0x1f55e7){_0x1a81e1['push'](_0x1a81e1['shift']());}}}(a261_0x410f,0xd9309));import{VERSION}from'../generated/build-info.js';function a261_0x410f(){var _0x555050=['11UQQOhL','9515556oLiILz','17noEyoh','12498710sPAsUq','3YIhKdi','1969564ehrqeD','162746TxkzKL','396mFVdZn','2849980ZTLIvh','119644huFUxH','63wRdUtF','1919304XzHJDR'];a261_0x410f=function(){return _0x555050;};return a261_0x410f();}function a261_0x173e(_0x3cca92,_0x34cca4){_0x3cca92=_0x3cca92-0x15c;var _0x410fa8=a261_0x410f();var _0x173ea6=_0x410fa8[_0x3cca92];return _0x173ea6;}export function getCliVersion(){return VERSION;}
@@ -1 +1 @@
1
- (function(_0x5a648f,_0x47c92d){var _0x1c23aa=a262_0x1d8f,_0x5b0cfa=_0x5a648f();while(!![]){try{var _0x317bf5=parseInt(_0x1c23aa(0xb1))/0x1+-parseInt(_0x1c23aa(0xb5))/0x2*(parseInt(_0x1c23aa(0xb0))/0x3)+parseInt(_0x1c23aa(0xae))/0x4+parseInt(_0x1c23aa(0xad))/0x5+-parseInt(_0x1c23aa(0xb3))/0x6+-parseInt(_0x1c23aa(0xaf))/0x7*(parseInt(_0x1c23aa(0xb6))/0x8)+-parseInt(_0x1c23aa(0xb2))/0x9*(-parseInt(_0x1c23aa(0xb4))/0xa);if(_0x317bf5===_0x47c92d)break;else _0x5b0cfa['push'](_0x5b0cfa['shift']());}catch(_0x1eda56){_0x5b0cfa['push'](_0x5b0cfa['shift']());}}}(a262_0x56ad,0x6c11e));import{setActiveCookie,clearActiveCookie}from'../core/api-client.js';function a262_0x1d8f(_0x519b73,_0x56587d){_0x519b73=_0x519b73-0xad;var _0x56adb6=a262_0x56ad();var _0x1d8fca=_0x56adb6[_0x519b73];return _0x1d8fca;}export async function withActiveCookie(_0xddfe67,_0x5095b5){setActiveCookie(_0xddfe67);try{return await _0x5095b5();}finally{clearActiveCookie();}}function a262_0x56ad(){var _0x343630=['4414926UNEGFv','10gfrDfn','2BBHzAC','64CohScG','2264540xrTJAr','2350116jEYjkC','104398pUciJw','2034609GYZrbk','218975VeHpAs','6449202gYRAVd'];a262_0x56ad=function(){return _0x343630;};return a262_0x56ad();}
1
+ (function(_0x59f6ca,_0x3c1c45){var _0x3cab1b=a262_0x4177,_0x5e4e3b=_0x59f6ca();while(!![]){try{var _0x59afc3=-parseInt(_0x3cab1b(0x1e9))/0x1*(-parseInt(_0x3cab1b(0x1e7))/0x2)+-parseInt(_0x3cab1b(0x1eb))/0x3+parseInt(_0x3cab1b(0x1ec))/0x4+parseInt(_0x3cab1b(0x1ef))/0x5*(parseInt(_0x3cab1b(0x1ee))/0x6)+-parseInt(_0x3cab1b(0x1ed))/0x7*(-parseInt(_0x3cab1b(0x1e8))/0x8)+-parseInt(_0x3cab1b(0x1ea))/0x9+-parseInt(_0x3cab1b(0x1e6))/0xa;if(_0x59afc3===_0x3c1c45)break;else _0x5e4e3b['push'](_0x5e4e3b['shift']());}catch(_0x561c30){_0x5e4e3b['push'](_0x5e4e3b['shift']());}}}(a262_0x3fe2,0xdbbeb));function a262_0x4177(_0x1d2c99,_0x21457f){_0x1d2c99=_0x1d2c99-0x1e6;var _0x3fe2a5=a262_0x3fe2();var _0x417789=_0x3fe2a5[_0x1d2c99];return _0x417789;}function a262_0x3fe2(){var _0x417c6b=['1364393gkadoU','4135014qXsvCa','2045139hpSLDa','1859380EqxZGW','936691eukAmS','236718vqyWgJ','25AKATuR','3867080qdFplz','2UShyBk','24PSygpH'];a262_0x3fe2=function(){return _0x417c6b;};return a262_0x3fe2();}import{setActiveCookie,clearActiveCookie}from'../core/api-client.js';export async function withActiveCookie(_0x4bb44f,_0x301cb7){setActiveCookie(_0x4bb44f);try{return await _0x301cb7();}finally{clearActiveCookie();}}
@@ -1 +1 @@
1
- (function(_0x1aaed7,_0x601a87){var _0x2ab870=a263_0x3f3a,_0x11a0da=_0x1aaed7();while(!![]){try{var _0x1321b4=parseInt(_0x2ab870(0x118))/0x1*(parseInt(_0x2ab870(0x121))/0x2)+parseInt(_0x2ab870(0x123))/0x3*(parseInt(_0x2ab870(0x120))/0x4)+parseInt(_0x2ab870(0x11b))/0x5+-parseInt(_0x2ab870(0x124))/0x6*(parseInt(_0x2ab870(0x11a))/0x7)+parseInt(_0x2ab870(0x122))/0x8+-parseInt(_0x2ab870(0x11f))/0x9+parseInt(_0x2ab870(0x11e))/0xa*(-parseInt(_0x2ab870(0x11d))/0xb);if(_0x1321b4===_0x601a87)break;else _0x11a0da['push'](_0x11a0da['shift']());}catch(_0x5663e7){_0x11a0da['push'](_0x11a0da['shift']());}}}(a263_0x3f64,0x3c0b9));export function writeCliSideChannelLine(_0x165bed){var _0x44a7a1=a263_0x3f3a;process[_0x44a7a1(0x11c)][_0x44a7a1(0x119)](_0x165bed+'\x0a');}function a263_0x3f3a(_0x28a1cd,_0x10bb0a){_0x28a1cd=_0x28a1cd-0x118;var _0x3f64ac=a263_0x3f64();var _0x3f3ad3=_0x3f64ac[_0x28a1cd];return _0x3f3ad3;}function a263_0x3f64(){var _0x2d5dab=['83223tzqqrE','1101745xlqpnu','stderr','1868031ijGxOb','50pPcFwg','1742958wDMYsS','118492PZdCxR','448436XrgAet','1973736WcLadY','39zPyLWQ','6TNRgck','2gwRmiM','write'];a263_0x3f64=function(){return _0x2d5dab;};return a263_0x3f64();}
1
+ (function(_0x1dca5b,_0x2c2a12){var _0x3b20c5=a263_0x18a7,_0x34538a=_0x1dca5b();while(!![]){try{var _0xeb6de2=-parseInt(_0x3b20c5(0x10d))/0x1*(parseInt(_0x3b20c5(0x105))/0x2)+parseInt(_0x3b20c5(0x10b))/0x3*(-parseInt(_0x3b20c5(0x108))/0x4)+-parseInt(_0x3b20c5(0x10c))/0x5+parseInt(_0x3b20c5(0x106))/0x6+-parseInt(_0x3b20c5(0x10a))/0x7*(-parseInt(_0x3b20c5(0x109))/0x8)+-parseInt(_0x3b20c5(0x107))/0x9+parseInt(_0x3b20c5(0x104))/0xa;if(_0xeb6de2===_0x2c2a12)break;else _0x34538a['push'](_0x34538a['shift']());}catch(_0x5570a1){_0x34538a['push'](_0x34538a['shift']());}}}(a263_0x53cd,0x30071));function a263_0x18a7(_0x24403b,_0x22e050){_0x24403b=_0x24403b-0x104;var _0x53cd74=a263_0x53cd();var _0x18a780=_0x53cd74[_0x24403b];return _0x18a780;}function a263_0x53cd(){var _0x49a464=['184303zKDZXl','410301qgKzZM','701155OpJMwM','26KOBWmm','7300370XqprUN','17642XXlVTo','322146fBBLVl','2338596bxkJqf','8WYygCd','96GIrtPH'];a263_0x53cd=function(){return _0x49a464;};return a263_0x53cd();}export function writeCliSideChannelLine(_0x1ed165){process['stderr']['write'](_0x1ed165+'\x0a');}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lovrabet/rabetbase-cli",
3
- "version": "2.3.12",
3
+ "version": "2.3.13-beta.1",
4
4
  "description": "Developer CLI for Lovrabet apps, datasets, pages, SQL, BFF, database connections, skills, and AI agent workflows.",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "keywords": [