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

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 (200) 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/discover.js +1 -1
  21. package/lib/commands/app/index.js +1 -1
  22. package/lib/commands/app/list.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/use.js +1 -1
  26. package/lib/commands/auth/index.js +1 -1
  27. package/lib/commands/bff/create.js +1 -1
  28. package/lib/commands/bff/delete.js +1 -1
  29. package/lib/commands/bff/detail.js +1 -1
  30. package/lib/commands/bff/index.js +1 -1
  31. package/lib/commands/bff/list.js +1 -1
  32. package/lib/commands/bff/pull.js +1 -1
  33. package/lib/commands/bff/push.js +1 -1
  34. package/lib/commands/bff/status.js +1 -1
  35. package/lib/commands/cli-update.js +1 -1
  36. package/lib/commands/codegen/index.js +1 -1
  37. package/lib/commands/codegen/sdk.js +1 -1
  38. package/lib/commands/codegen/sql.js +1 -1
  39. package/lib/commands/common/app-selector.js +1 -1
  40. package/lib/commands/common/flags.js +1 -1
  41. package/lib/commands/common/validate.js +1 -1
  42. package/lib/commands/config/get.js +1 -1
  43. package/lib/commands/config/index.js +1 -1
  44. package/lib/commands/config/list.js +1 -1
  45. package/lib/commands/config/set.js +1 -1
  46. package/lib/commands/config/shared.js +1 -1
  47. package/lib/commands/data/filter.js +1 -1
  48. package/lib/commands/data/getOne.js +1 -1
  49. package/lib/commands/data/index.js +1 -1
  50. package/lib/commands/data/shared.js +1 -1
  51. package/lib/commands/dataset/capability.js +1 -1
  52. package/lib/commands/dataset/delete.js +1 -1
  53. package/lib/commands/dataset/detail.js +1 -1
  54. package/lib/commands/dataset/field-update.js +1 -1
  55. package/lib/commands/dataset/index.js +1 -1
  56. package/lib/commands/dataset/link-create.js +1 -1
  57. package/lib/commands/dataset/link-delete.js +1 -1
  58. package/lib/commands/dataset/link-shared.js +1 -1
  59. package/lib/commands/dataset/link-update.js +1 -1
  60. package/lib/commands/dataset/links.js +1 -1
  61. package/lib/commands/dataset/list.js +1 -1
  62. package/lib/commands/dataset/operations.js +1 -1
  63. package/lib/commands/db/analyze-cancel.js +1 -1
  64. package/lib/commands/db/analyze-start.js +1 -1
  65. package/lib/commands/db/analyze-status.js +1 -1
  66. package/lib/commands/db/create.js +1 -1
  67. package/lib/commands/db/delete.js +1 -1
  68. package/lib/commands/db/detail.js +1 -1
  69. package/lib/commands/db/diff.js +1 -1
  70. package/lib/commands/db/index.js +1 -1
  71. package/lib/commands/db/list.js +1 -1
  72. package/lib/commands/db/shared.js +1 -1
  73. package/lib/commands/db/tables.js +1 -1
  74. package/lib/commands/db/test.js +1 -1
  75. package/lib/commands/db/update.js +1 -1
  76. package/lib/commands/doctor.js +1 -1
  77. package/lib/commands/init/index.js +1 -1
  78. package/lib/commands/issue/index.js +1 -1
  79. package/lib/commands/issue/nudge.js +1 -1
  80. package/lib/commands/issue/report.js +1 -1
  81. package/lib/commands/issue/shared.js +1 -1
  82. package/lib/commands/logs/index.js +1 -1
  83. package/lib/commands/menu/index.js +1 -1
  84. package/lib/commands/menu/shared/compare-table.js +1 -1
  85. package/lib/commands/menu/shared/index.js +1 -1
  86. package/lib/commands/menu/shared/inquirer.js +1 -1
  87. package/lib/commands/menu/shared/local-pages.js +1 -1
  88. package/lib/commands/menu/shared/logic.js +1 -1
  89. package/lib/commands/menu/shared/service.js +1 -1
  90. package/lib/commands/menu/shared/sync-core.js +1 -1
  91. package/lib/commands/menu/shared/update-core.js +1 -1
  92. package/lib/commands/menu/shared/valid-url.js +1 -1
  93. package/lib/commands/menu/sync.js +1 -1
  94. package/lib/commands/menu/update.js +1 -1
  95. package/lib/commands/page/generate-start.js +1 -1
  96. package/lib/commands/page/generate-status.js +1 -1
  97. package/lib/commands/page/index.js +1 -1
  98. package/lib/commands/page/pull.js +1 -1
  99. package/lib/commands/page/push.js +1 -1
  100. package/lib/commands/page/shared.js +1 -1
  101. package/lib/commands/page/standard-page-status.js +1 -1
  102. package/lib/commands/page/sync.js +1 -1
  103. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  104. package/lib/commands/project/create/format-elapsed.js +1 -1
  105. package/lib/commands/project/create/main.js +1 -1
  106. package/lib/commands/project/create/non-interactive.js +1 -1
  107. package/lib/commands/project/create/project-template-path.js +1 -1
  108. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  109. package/lib/commands/project/create/use-format-code.js +1 -1
  110. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  111. package/lib/commands/project/index.js +1 -1
  112. package/lib/commands/project/init.js +1 -1
  113. package/lib/commands/project/upgrade.js +1 -1
  114. package/lib/commands/registry.js +1 -1
  115. package/lib/commands/run/index.js +1 -1
  116. package/lib/commands/schema.js +1 -1
  117. package/lib/commands/skill/index.js +1 -1
  118. package/lib/commands/sql/create.js +1 -1
  119. package/lib/commands/sql/delete.js +1 -1
  120. package/lib/commands/sql/detail.js +1 -1
  121. package/lib/commands/sql/exec.js +1 -1
  122. package/lib/commands/sql/index.js +1 -1
  123. package/lib/commands/sql/list.js +1 -1
  124. package/lib/commands/sql/pull.js +1 -1
  125. package/lib/commands/sql/push.js +1 -1
  126. package/lib/commands/sql/save.js +1 -1
  127. package/lib/commands/sql/shared.js +1 -1
  128. package/lib/commands/sql/status.js +1 -1
  129. package/lib/commands/sql/validate.js +1 -1
  130. package/lib/config/schema.js +1 -1
  131. package/lib/constant/cdn.js +1 -1
  132. package/lib/constant/cli.js +1 -1
  133. package/lib/constant/defaults.js +1 -1
  134. package/lib/constant/domain.js +1 -1
  135. package/lib/constant/env.js +1 -1
  136. package/lib/constant/output.js +1 -1
  137. package/lib/constant/paths.js +1 -1
  138. package/lib/constant/risk.js +1 -1
  139. package/lib/context.js +1 -1
  140. package/lib/core/alias-resolver.js +1 -1
  141. package/lib/core/api-client.js +1 -1
  142. package/lib/core/bff/config.js +1 -1
  143. package/lib/core/bff/file-system.js +1 -1
  144. package/lib/core/bff/hash.js +1 -1
  145. package/lib/core/bff/lock.js +1 -1
  146. package/lib/core/bff/utils.js +1 -1
  147. package/lib/core/db-resolver.js +1 -1
  148. package/lib/core/page/file-system.js +1 -1
  149. package/lib/core/page/hash.js +1 -1
  150. package/lib/core/page/lock.js +1 -1
  151. package/lib/core/sql-sync/config.js +1 -1
  152. package/lib/core/sql-sync/file-system.js +1 -1
  153. package/lib/core/sql-sync/hash.js +1 -1
  154. package/lib/core/sql-sync/lock.js +1 -1
  155. package/lib/core/sql-sync/utils.js +1 -1
  156. package/lib/core/sql-validator.js +1 -1
  157. package/lib/errors.js +1 -1
  158. package/lib/framework/build-all-flags.js +1 -1
  159. package/lib/framework/flags.js +1 -1
  160. package/lib/framework/help.js +1 -1
  161. package/lib/framework/index.js +1 -1
  162. package/lib/framework/output.js +1 -1
  163. package/lib/framework/response.js +1 -1
  164. package/lib/framework/runner-alias.js +1 -1
  165. package/lib/framework/runner.js +1 -1
  166. package/lib/framework/schema-export.js +1 -1
  167. package/lib/framework/types.js +1 -1
  168. package/lib/generated/build-info.js +1 -1
  169. package/lib/help.js +1 -1
  170. package/lib/skills/main.js +1 -1
  171. package/lib/skills/npx-skills-add.js +1 -1
  172. package/lib/telemetry/cli-command-trace.js +1 -1
  173. package/lib/telemetry/cli-help-trace.js +1 -1
  174. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  175. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  176. package/lib/telemetry/send-cli-trace-log.js +1 -1
  177. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  178. package/lib/utils/ai_config.js +1 -1
  179. package/lib/utils/apply-jq-filter.js +1 -1
  180. package/lib/utils/cdn-config.js +1 -1
  181. package/lib/utils/check-sdk-version.js +1 -1
  182. package/lib/utils/cli-version-check.js +1 -1
  183. package/lib/utils/cli-version-policy.js +1 -1
  184. package/lib/utils/config.js +1 -1
  185. package/lib/utils/copy-directory.js +1 -1
  186. package/lib/utils/entity-with-id.js +1 -1
  187. package/lib/utils/file-utils.js +1 -1
  188. package/lib/utils/guides-cdn.js +1 -1
  189. package/lib/utils/http-client.js +1 -1
  190. package/lib/utils/is-non-interactive.js +1 -1
  191. package/lib/utils/logger.js +1 -1
  192. package/lib/utils/params.js +1 -1
  193. package/lib/utils/platform.js +1 -1
  194. package/lib/utils/rules-cdn.js +1 -1
  195. package/lib/utils/sleep.js +1 -1
  196. package/lib/utils/template-replacer.js +1 -1
  197. package/lib/utils/version.js +1 -1
  198. package/lib/utils/with-active-cookie.js +1 -1
  199. package/lib/utils/write-cli-side-channel.js +1 -1
  200. package/package.json +2 -2
@@ -1 +1 @@
1
- const a195_0x239d66=a195_0x2c24;(function(_0xa8cd2a,_0x5a4071){const _0x57397d=a195_0x2c24,_0x250e54=_0xa8cd2a();while(!![]){try{const _0x3a3e6b=parseInt(_0x57397d(0x137))/0x1*(-parseInt(_0x57397d(0x10d))/0x2)+-parseInt(_0x57397d(0x11d))/0x3+parseInt(_0x57397d(0x10f))/0x4+parseInt(_0x57397d(0x142))/0x5+-parseInt(_0x57397d(0x119))/0x6*(parseInt(_0x57397d(0x13c))/0x7)+parseInt(_0x57397d(0x127))/0x8*(parseInt(_0x57397d(0x10e))/0x9)+parseInt(_0x57397d(0x141))/0xa*(parseInt(_0x57397d(0x13f))/0xb);if(_0x3a3e6b===_0x5a4071)break;else _0x250e54['push'](_0x250e54['shift']());}catch(_0x1e6528){_0x250e54['push'](_0x250e54['shift']());}}}(a195_0x64b6,0x5c5ea));import a195_0x56a72d from'winston';import a195_0x1799c9 from'node:fs';function a195_0x2c24(_0x5d56ee,_0x228e09){_0x5d56ee=_0x5d56ee-0x10c;const _0x64b6c4=a195_0x64b6();let _0x2c2401=_0x64b6c4[_0x5d56ee];return _0x2c2401;}import a195_0x14d8ae from'node:path';class Logger{[a195_0x239d66(0x130)];[a195_0x239d66(0x11e)];[a195_0x239d66(0x136)]='';constructor(){const _0x455e7f=a195_0x239d66;this[_0x455e7f(0x11e)]='';}[a195_0x239d66(0x113)](_0x188424){const _0x250ea8=a195_0x239d66;this[_0x250ea8(0x136)]=_0x188424;}[a195_0x239d66(0x135)](){const _0x4c5fc8=a195_0x239d66,_0x35b545=a195_0x14d8ae[_0x4c5fc8(0x133)](this[_0x4c5fc8(0x11e)]);!a195_0x1799c9[_0x4c5fc8(0x125)](_0x35b545)&&a195_0x1799c9['mkdirSync'](_0x35b545,{'recursive':!![]});const _0xae0f5b=a195_0x56a72d[_0x4c5fc8(0x114)][_0x4c5fc8(0x138)](a195_0x56a72d[_0x4c5fc8(0x114)][_0x4c5fc8(0x13b)](),a195_0x56a72d[_0x4c5fc8(0x114)]['errors']({'stack':!![]}),a195_0x56a72d[_0x4c5fc8(0x114)]['printf'](_0x23cd53=>{const _0x1d2d18=_0x4c5fc8,_0x586636={'timestamp':_0x23cd53['timestamp']||new Date()['toISOString'](),'level':_0x23cd53[_0x1d2d18(0x139)]||'info','command':_0x23cd53[_0x1d2d18(0x144)]||'unknown','rawCommand':_0x23cd53['rawCommand']||this[_0x1d2d18(0x136)]||undefined,'message':_0x23cd53[_0x1d2d18(0x126)]||'','duration':_0x23cd53[_0x1d2d18(0x134)]||undefined,'details':_0x23cd53[_0x1d2d18(0x13a)]||undefined};return JSON[_0x1d2d18(0x121)](_0x586636);}));this['winstonLogger']=a195_0x56a72d['createLogger']({'level':'info','format':_0xae0f5b,'transports':[new a195_0x56a72d[(_0x4c5fc8(0x12e))][(_0x4c5fc8(0x143))]({'filename':this[_0x4c5fc8(0x11e)],'level':_0x4c5fc8(0x12b)})],'silent':![]}),a195_0x56a72d[_0x4c5fc8(0x10c)]({'success':_0x4c5fc8(0x118),'error':_0x4c5fc8(0x12c),'warn':_0x4c5fc8(0x117),'info':_0x4c5fc8(0x12f)});}[a195_0x239d66(0x13d)](_0x36a058){const _0xa887f5=a195_0x239d66;this[_0xa887f5(0x11e)]=a195_0x14d8ae[_0xa887f5(0x11f)](_0x36a058,_0xa887f5(0x145)),this[_0xa887f5(0x130)]&&this['winstonLogger'][_0xa887f5(0x140)](),this[_0xa887f5(0x135)]();}['info'](_0x57e0db,_0x4c32c7,_0x3f25bd){const _0x5cb3ee=a195_0x239d66;if(!this[_0x5cb3ee(0x11e)]||!this['winstonLogger'])return;this[_0x5cb3ee(0x130)]['info'](_0x4c32c7,{'command':_0x57e0db,'details':_0x3f25bd});}[a195_0x239d66(0x11c)](_0x3e4d25,_0x2dc5b6,_0x5a3533,_0x4df7a2){const _0x4fe0f3=a195_0x239d66;if(!this[_0x4fe0f3(0x11e)]||!this['winstonLogger'])return;this[_0x4fe0f3(0x130)]['log'](_0x4fe0f3(0x12b),_0x2dc5b6,{'level':_0x4fe0f3(0x11c),'command':_0x3e4d25,'duration':_0x5a3533,'details':_0x4df7a2});}[a195_0x239d66(0x122)](_0x44a119,_0x55a6dd,_0x1428cc){const _0x116af2=a195_0x239d66;if(!this[_0x116af2(0x11e)]||!this[_0x116af2(0x130)])return;this[_0x116af2(0x130)][_0x116af2(0x122)](_0x55a6dd,{'command':_0x44a119,'details':_0x1428cc});}['warn'](_0x4f249e,_0x2d1fa4,_0x41ee27){const _0x508de3=a195_0x239d66;if(!this['logFilePath']||!this[_0x508de3(0x130)])return;this['winstonLogger'][_0x508de3(0x123)](_0x2d1fa4,{'command':_0x4f249e,'details':_0x41ee27});}async['logTask'](_0x40b806,_0x466147,_0xa203d5){const _0x55252c=a195_0x239d66,_0x5b0c16=Date[_0x55252c(0x12a)]();this[_0x55252c(0x12b)](_0x40b806,_0x55252c(0x129)+_0x466147);try{const _0x752c14=await _0xa203d5(),_0x23cb15=Date[_0x55252c(0x12a)]()-_0x5b0c16;return this[_0x55252c(0x11c)](_0x40b806,_0x55252c(0x116)+_0x466147,_0x23cb15),_0x752c14;}catch(_0x36936f){const _0x3b7007=Date[_0x55252c(0x12a)]()-_0x5b0c16;this[_0x55252c(0x122)](_0x40b806,_0x55252c(0x115)+_0x466147,{'error':_0x36936f instanceof Error?_0x36936f[_0x55252c(0x126)]:String(_0x36936f),'duration':_0x3b7007});throw _0x36936f;}}[a195_0x239d66(0x11b)](){const _0x2de577=a195_0x239d66;try{if(!a195_0x1799c9[_0x2de577(0x125)](this[_0x2de577(0x11e)]))return[];const _0x1b12d4=a195_0x1799c9[_0x2de577(0x128)](this[_0x2de577(0x11e)],_0x2de577(0x132));return _0x1b12d4[_0x2de577(0x131)]('\x0a')['filter'](_0x11aff3=>_0x11aff3[_0x2de577(0x120)]())[_0x2de577(0x111)](_0x2bb36f=>JSON[_0x2de577(0x13e)](_0x2bb36f));}catch(_0x45d55c){return console['warn'](_0x2de577(0x12d),_0x45d55c),[];}}[a195_0x239d66(0x11a)](){const _0x39d0b0=a195_0x239d66;try{a195_0x1799c9[_0x39d0b0(0x125)](this[_0x39d0b0(0x11e)])&&a195_0x1799c9[_0x39d0b0(0x110)](this[_0x39d0b0(0x11e)],'',_0x39d0b0(0x132));}catch(_0x271d28){console[_0x39d0b0(0x123)](_0x39d0b0(0x112),_0x271d28);}}[a195_0x239d66(0x124)](){const _0x3e2d64=a195_0x239d66;return this[_0x3e2d64(0x130)];}}export const logger=new Logger();function a195_0x64b6(){const _0x2c8d48=['834295KZsvxK','File','command','.lovrabet.log','addColors','2IvyUGW','9zhxEOH','1748344OnLtYV','writeFileSync','map','Failed\x20to\x20clear\x20logs:','setRawCommand','format','失败:\x20','完成:\x20','yellow','green','462LqGGDs','clearLogs','readLogs','success','1173747fjpjFA','logFilePath','join','trim','stringify','error','warn','getWinstonInstance','existsSync','message','3031696MvPGwf','readFileSync','开始执行:\x20','now','info','red','Failed\x20to\x20read\x20logs:','transports','blue','winstonLogger','split','utf8','dirname','duration','initWinstonLogger','currentRawCommand','41037JmlPYM','combine','level','details','timestamp','45003tKthTM','setLogPath','parse','41283QUhkcl','clear','860LusfvC'];a195_0x64b6=function(){return _0x2c8d48;};return a195_0x64b6();}
1
+ const a195_0x475d30=a195_0xb6cf;(function(_0x371646,_0x4f8123){const _0x6260f3=a195_0xb6cf,_0x16ba50=_0x371646();while(!![]){try{const _0x547f58=-parseInt(_0x6260f3(0x87))/0x1*(parseInt(_0x6260f3(0xa1))/0x2)+-parseInt(_0x6260f3(0x8e))/0x3+-parseInt(_0x6260f3(0xad))/0x4+-parseInt(_0x6260f3(0x97))/0x5+-parseInt(_0x6260f3(0x9d))/0x6+-parseInt(_0x6260f3(0xa3))/0x7+parseInt(_0x6260f3(0xb9))/0x8;if(_0x547f58===_0x4f8123)break;else _0x16ba50['push'](_0x16ba50['shift']());}catch(_0x213338){_0x16ba50['push'](_0x16ba50['shift']());}}}(a195_0x5214,0x3be8c));import a195_0x3b6580 from'winston';import a195_0x1c169b from'node:fs';function a195_0x5214(){const _0x4622e2=['combine','join','readFileSync','readLogs','Failed\x20to\x20clear\x20logs:','993500HFenAD','map','dirname','message','existsSync','.lovrabet.log','split','clear','writeFileSync','log','stringify','addColors','12424568ZYkbsA','toISOString','rawCommand','warn','2629skvAJY','utf8','setLogPath','details','now','command','initWinstonLogger','728952EPEqKm','clearLogs','success','green','unknown','parse','File','format','getWinstonInstance','1710755cWoGWH','transports','currentRawCommand','info','printf','duration','1328556ZnOnPb','error','mkdirSync','Failed\x20to\x20read\x20logs:','14TWYrqy','logFilePath','1640408hQVAft','winstonLogger','setRawCommand','完成:\x20','timestamp'];a195_0x5214=function(){return _0x4622e2;};return a195_0x5214();}function a195_0xb6cf(_0x343a22,_0x557f97){_0x343a22=_0x343a22-0x85;const _0x5214b6=a195_0x5214();let _0xb6cf96=_0x5214b6[_0x343a22];return _0xb6cf96;}import a195_0x21f84f from'node:path';class Logger{[a195_0x475d30(0xa4)];[a195_0x475d30(0xa2)];[a195_0x475d30(0x99)]='';constructor(){this['logFilePath']='';}[a195_0x475d30(0xa5)](_0x4c733f){const _0x14a612=a195_0x475d30;this[_0x14a612(0x99)]=_0x4c733f;}[a195_0x475d30(0x8d)](){const _0x3a067d=a195_0x475d30,_0x32e9a1=a195_0x21f84f[_0x3a067d(0xaf)](this[_0x3a067d(0xa2)]);!a195_0x1c169b[_0x3a067d(0xb1)](_0x32e9a1)&&a195_0x1c169b[_0x3a067d(0x9f)](_0x32e9a1,{'recursive':!![]});const _0x2bf9a1=a195_0x3b6580[_0x3a067d(0x95)][_0x3a067d(0xa8)](a195_0x3b6580[_0x3a067d(0x95)][_0x3a067d(0xa7)](),a195_0x3b6580[_0x3a067d(0x95)]['errors']({'stack':!![]}),a195_0x3b6580[_0x3a067d(0x95)][_0x3a067d(0x9b)](_0x34d74b=>{const _0xeff901=_0x3a067d,_0x4f96f5={'timestamp':_0x34d74b[_0xeff901(0xa7)]||new Date()[_0xeff901(0xba)](),'level':_0x34d74b['level']||_0xeff901(0x9a),'command':_0x34d74b[_0xeff901(0x8c)]||_0xeff901(0x92),'rawCommand':_0x34d74b[_0xeff901(0x85)]||this[_0xeff901(0x99)]||undefined,'message':_0x34d74b[_0xeff901(0xb0)]||'','duration':_0x34d74b[_0xeff901(0x9c)]||undefined,'details':_0x34d74b[_0xeff901(0x8a)]||undefined};return JSON[_0xeff901(0xb7)](_0x4f96f5);}));this[_0x3a067d(0xa4)]=a195_0x3b6580['createLogger']({'level':_0x3a067d(0x9a),'format':_0x2bf9a1,'transports':[new a195_0x3b6580[(_0x3a067d(0x98))][(_0x3a067d(0x94))]({'filename':this[_0x3a067d(0xa2)],'level':_0x3a067d(0x9a)})],'silent':![]}),a195_0x3b6580[_0x3a067d(0xb8)]({'success':_0x3a067d(0x91),'error':'red','warn':'yellow','info':'blue'});}[a195_0x475d30(0x89)](_0x54261c){const _0xea128e=a195_0x475d30;this['logFilePath']=a195_0x21f84f[_0xea128e(0xa9)](_0x54261c,_0xea128e(0xb2)),this[_0xea128e(0xa4)]&&this[_0xea128e(0xa4)][_0xea128e(0xb4)](),this[_0xea128e(0x8d)]();}[a195_0x475d30(0x9a)](_0xc7faf2,_0x2ecb41,_0x18e44a){const _0x5cb06e=a195_0x475d30;if(!this[_0x5cb06e(0xa2)]||!this['winstonLogger'])return;this[_0x5cb06e(0xa4)][_0x5cb06e(0x9a)](_0x2ecb41,{'command':_0xc7faf2,'details':_0x18e44a});}[a195_0x475d30(0x90)](_0x166b4e,_0xec34ee,_0x1cd6d3,_0x5f3f47){const _0x3b3a8b=a195_0x475d30;if(!this['logFilePath']||!this['winstonLogger'])return;this[_0x3b3a8b(0xa4)][_0x3b3a8b(0xb6)](_0x3b3a8b(0x9a),_0xec34ee,{'level':'success','command':_0x166b4e,'duration':_0x1cd6d3,'details':_0x5f3f47});}[a195_0x475d30(0x9e)](_0xf90521,_0xcd4a74,_0x16b75e){const _0x176f8d=a195_0x475d30;if(!this[_0x176f8d(0xa2)]||!this[_0x176f8d(0xa4)])return;this[_0x176f8d(0xa4)][_0x176f8d(0x9e)](_0xcd4a74,{'command':_0xf90521,'details':_0x16b75e});}[a195_0x475d30(0x86)](_0xcfb268,_0x25b89e,_0x1bd3ca){const _0x3040b1=a195_0x475d30;if(!this[_0x3040b1(0xa2)]||!this[_0x3040b1(0xa4)])return;this[_0x3040b1(0xa4)][_0x3040b1(0x86)](_0x25b89e,{'command':_0xcfb268,'details':_0x1bd3ca});}async['logTask'](_0x164f19,_0x3b6152,_0x2e6931){const _0x3e4f66=a195_0x475d30,_0x60e8e7=Date[_0x3e4f66(0x8b)]();this[_0x3e4f66(0x9a)](_0x164f19,'开始执行:\x20'+_0x3b6152);try{const _0x1305e4=await _0x2e6931(),_0x55e4ef=Date[_0x3e4f66(0x8b)]()-_0x60e8e7;return this['success'](_0x164f19,_0x3e4f66(0xa6)+_0x3b6152,_0x55e4ef),_0x1305e4;}catch(_0x146bba){const _0x41d72f=Date['now']()-_0x60e8e7;this[_0x3e4f66(0x9e)](_0x164f19,'失败:\x20'+_0x3b6152,{'error':_0x146bba instanceof Error?_0x146bba[_0x3e4f66(0xb0)]:String(_0x146bba),'duration':_0x41d72f});throw _0x146bba;}}[a195_0x475d30(0xab)](){const _0x54a861=a195_0x475d30;try{if(!a195_0x1c169b[_0x54a861(0xb1)](this[_0x54a861(0xa2)]))return[];const _0xb73d96=a195_0x1c169b[_0x54a861(0xaa)](this[_0x54a861(0xa2)],'utf8');return _0xb73d96[_0x54a861(0xb3)]('\x0a')['filter'](_0x107bc9=>_0x107bc9['trim']())[_0x54a861(0xae)](_0x2d4842=>JSON[_0x54a861(0x93)](_0x2d4842));}catch(_0x369558){return console[_0x54a861(0x86)](_0x54a861(0xa0),_0x369558),[];}}[a195_0x475d30(0x8f)](){const _0xd4a010=a195_0x475d30;try{a195_0x1c169b[_0xd4a010(0xb1)](this[_0xd4a010(0xa2)])&&a195_0x1c169b[_0xd4a010(0xb5)](this['logFilePath'],'',_0xd4a010(0x88));}catch(_0x18fe68){console[_0xd4a010(0x86)](_0xd4a010(0xac),_0x18fe68);}}[a195_0x475d30(0x96)](){const _0x2d71b9=a195_0x475d30;return this[_0x2d71b9(0xa4)];}}export const logger=new Logger();
@@ -1 +1 @@
1
- function a196_0x1585(_0x17da8c,_0xd63ba6){_0x17da8c=_0x17da8c-0x106;const _0x1c1382=a196_0x1c13();let _0x1585c1=_0x1c1382[_0x17da8c];return _0x1585c1;}(function(_0x325ade,_0x399ed2){const _0xe13e39=a196_0x1585,_0x30fbfd=_0x325ade();while(!![]){try{const _0x5bd791=-parseInt(_0xe13e39(0x113))/0x1+parseInt(_0xe13e39(0x111))/0x2*(-parseInt(_0xe13e39(0x114))/0x3)+-parseInt(_0xe13e39(0x10c))/0x4+-parseInt(_0xe13e39(0x10b))/0x5*(-parseInt(_0xe13e39(0x108))/0x6)+parseInt(_0xe13e39(0x10e))/0x7+-parseInt(_0xe13e39(0x110))/0x8+parseInt(_0xe13e39(0x10d))/0x9;if(_0x5bd791===_0x399ed2)break;else _0x30fbfd['push'](_0x30fbfd['shift']());}catch(_0x4fe1b3){_0x30fbfd['push'](_0x30fbfd['shift']());}}}(a196_0x1c13,0x7c7cf));import{CliErrors}from'../errors.js';function a196_0x1c13(){const _0x456891=['3960748unpTnl','15788448fMeyql','6879271ZdLNrW','Invalid\x20JSON\x20for\x20--params:\x20','7761200gUUqES','189902mGlYeP','isArray','561924DNpvhR','21tfTLnG','Example:\x20--params\x20\x27{\x22id\x22:123}\x27','object','24kFTAeX','validation','parse','1199745rpneVL'];a196_0x1c13=function(){return _0x456891;};return a196_0x1c13();}export function parseJsonParams(_0x46de90){const _0x211ac0=a196_0x1585;if(!_0x46de90)return undefined;let _0x3fa9c3;try{_0x3fa9c3=JSON[_0x211ac0(0x10a)](_0x46de90);}catch{throw CliErrors[_0x211ac0(0x109)](_0x211ac0(0x10f)+_0x46de90);}if(!_0x3fa9c3||typeof _0x3fa9c3!==_0x211ac0(0x107)||Array[_0x211ac0(0x112)](_0x3fa9c3))throw CliErrors['validation']('--params\x20must\x20be\x20a\x20JSON\x20object',_0x211ac0(0x106));return _0x3fa9c3;}
1
+ (function(_0x4587ca,_0x2e9c58){const _0x56b946=a196_0x332d,_0x1f9be0=_0x4587ca();while(!![]){try{const _0xf0b82=-parseInt(_0x56b946(0x118))/0x1+parseInt(_0x56b946(0x10e))/0x2+-parseInt(_0x56b946(0x111))/0x3+-parseInt(_0x56b946(0x119))/0x4*(parseInt(_0x56b946(0x117))/0x5)+parseInt(_0x56b946(0x10f))/0x6+-parseInt(_0x56b946(0x116))/0x7*(-parseInt(_0x56b946(0x11a))/0x8)+-parseInt(_0x56b946(0x11d))/0x9;if(_0xf0b82===_0x2e9c58)break;else _0x1f9be0['push'](_0x1f9be0['shift']());}catch(_0x4deb83){_0x1f9be0['push'](_0x1f9be0['shift']());}}}(a196_0x1dfb,0x3cef8));function a196_0x332d(_0x19a6fd,_0x5566d2){_0x19a6fd=_0x19a6fd-0x10e;const _0x1dfb0e=a196_0x1dfb();let _0x332d37=_0x1dfb0e[_0x19a6fd];return _0x332d37;}function a196_0x1dfb(){const _0xe6c68b=['540wuCnmM','298833mHxcZi','2748wCQwXD','1550288sHNCGG','Example:\x20--params\x20\x27{\x22id\x22:123}\x27','Invalid\x20JSON\x20for\x20--params:\x20','3793896itVEIC','952736UvsGjQ','1992246MiYfVY','object','455448BlKsxh','--params\x20must\x20be\x20a\x20JSON\x20object','validation','parse','isArray','14oOLmlc'];a196_0x1dfb=function(){return _0xe6c68b;};return a196_0x1dfb();}import{CliErrors}from'../errors.js';export function parseJsonParams(_0x181410){const _0x21830c=a196_0x332d;if(!_0x181410)return undefined;let _0x5a7ff1;try{_0x5a7ff1=JSON[_0x21830c(0x114)](_0x181410);}catch{throw CliErrors[_0x21830c(0x113)](_0x21830c(0x11c)+_0x181410);}if(!_0x5a7ff1||typeof _0x5a7ff1!==_0x21830c(0x110)||Array[_0x21830c(0x115)](_0x5a7ff1))throw CliErrors[_0x21830c(0x113)](_0x21830c(0x112),_0x21830c(0x11b));return _0x5a7ff1;}
@@ -1 +1 @@
1
- const a197_0x513cbc=a197_0x33b9;function a197_0x2c66(){const _0x108a43=['397543UmtkgO','.cmd','4unNymw','50mJBFvv','2ymOsKF','2999275ODfTmx','1942428pfMaZk','1588944PDecfS','1750842tgPlfI','platform','win32','1410073IFmdXe','211419GdezMI'];a197_0x2c66=function(){return _0x108a43;};return a197_0x2c66();}(function(_0x629dff,_0x45aa37){const _0x7f8bfb=a197_0x33b9,_0x5d4b86=_0x629dff();while(!![]){try{const _0x180622=-parseInt(_0x7f8bfb(0x1b3))/0x1+-parseInt(_0x7f8bfb(0x1aa))/0x2*(parseInt(_0x7f8bfb(0x1b2))/0x3)+-parseInt(_0x7f8bfb(0x1b5))/0x4*(-parseInt(_0x7f8bfb(0x1ab))/0x5)+-parseInt(_0x7f8bfb(0x1ac))/0x6+-parseInt(_0x7f8bfb(0x1b1))/0x7+-parseInt(_0x7f8bfb(0x1ad))/0x8+-parseInt(_0x7f8bfb(0x1ae))/0x9*(-parseInt(_0x7f8bfb(0x1b6))/0xa);if(_0x180622===_0x45aa37)break;else _0x5d4b86['push'](_0x5d4b86['shift']());}catch(_0x2634ac){_0x5d4b86['push'](_0x5d4b86['shift']());}}}(a197_0x2c66,0x5cf3e));export const isWindows=process[a197_0x513cbc(0x1af)]===a197_0x513cbc(0x1b0);function a197_0x33b9(_0x410281,_0x3a4972){_0x410281=_0x410281-0x1aa;const _0x2c6624=a197_0x2c66();let _0x33b984=_0x2c6624[_0x410281];return _0x33b984;}export function resolveNpmBin(_0x2a03dd){const _0x277757=a197_0x513cbc;return isWindows?_0x2a03dd+_0x277757(0x1b4):_0x2a03dd;}
1
+ const a197_0x53634d=a197_0x2e84;function a197_0x2e84(_0x491e5b,_0x48f1c4){_0x491e5b=_0x491e5b-0x78;const _0x715332=a197_0x7153();let _0x2e8465=_0x715332[_0x491e5b];return _0x2e8465;}(function(_0xaba90d,_0x1f76ca){const _0x5069b7=a197_0x2e84,_0x11c207=_0xaba90d();while(!![]){try{const _0x532ac3=-parseInt(_0x5069b7(0x7b))/0x1*(parseInt(_0x5069b7(0x80))/0x2)+-parseInt(_0x5069b7(0x81))/0x3+parseInt(_0x5069b7(0x7c))/0x4*(parseInt(_0x5069b7(0x84))/0x5)+parseInt(_0x5069b7(0x7a))/0x6+-parseInt(_0x5069b7(0x7d))/0x7*(-parseInt(_0x5069b7(0x83))/0x8)+-parseInt(_0x5069b7(0x85))/0x9*(-parseInt(_0x5069b7(0x79))/0xa)+parseInt(_0x5069b7(0x82))/0xb*(-parseInt(_0x5069b7(0x7f))/0xc);if(_0x532ac3===_0x1f76ca)break;else _0x11c207['push'](_0x11c207['shift']());}catch(_0x30c4ce){_0x11c207['push'](_0x11c207['shift']());}}}(a197_0x7153,0x70e3c));export const isWindows=process[a197_0x53634d(0x78)]===a197_0x53634d(0x7e);function a197_0x7153(){const _0x9ff477=['367704irFBZV','235rJxrLt','96237CxhmsJ','platform','190sXrjnA','4634760VbhUur','2tGcFgs','73948wRAZEE','77HkaGXY','win32','18713616PiDVXr','18726JAyKsH','928557jGVKvn','11pMPzWy'];a197_0x7153=function(){return _0x9ff477;};return a197_0x7153();}export function resolveNpmBin(_0x47e097){return isWindows?_0x47e097+'.cmd':_0x47e097;}
@@ -1 +1 @@
1
- const a198_0x4732ab=a198_0x2841;(function(_0x164522,_0x3e0aea){const _0x60d4a5=a198_0x2841,_0x10d38c=_0x164522();while(!![]){try{const _0xcbf853=-parseInt(_0x60d4a5(0x103))/0x1*(-parseInt(_0x60d4a5(0xf3))/0x2)+parseInt(_0x60d4a5(0xf1))/0x3+parseInt(_0x60d4a5(0x100))/0x4*(parseInt(_0x60d4a5(0xfb))/0x5)+parseInt(_0x60d4a5(0xf6))/0x6*(-parseInt(_0x60d4a5(0xea))/0x7)+parseInt(_0x60d4a5(0xf2))/0x8*(parseInt(_0x60d4a5(0xf7))/0x9)+-parseInt(_0x60d4a5(0x102))/0xa+-parseInt(_0x60d4a5(0xe7))/0xb*(parseInt(_0x60d4a5(0xf9))/0xc);if(_0xcbf853===_0x3e0aea)break;else _0x10d38c['push'](_0x10d38c['shift']());}catch(_0x3d2795){_0x10d38c['push'](_0x10d38c['shift']());}}}(a198_0x1397,0x568d3));import{existsSync,mkdirSync,readFileSync,writeFileSync}from'node:fs';import{dirname,join,resolve}from'node:path';import{fileURLToPath}from'node:url';import{getTemplateBaseUrl}from'../utils/config.js';function a198_0x2841(_0x22bc65,_0x2d75a3){_0x22bc65=_0x22bc65-0xe7;const _0x139734=a198_0x1397();let _0x284196=_0x139734[_0x22bc65];return _0x284196;}import{appendUpdateTime}from'../utils/guides-cdn.js';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);function getRulesCdnUrl(){const _0x11a637=a198_0x2841,_0x2e1034=getTemplateBaseUrl();return _0x2e1034+_0x11a637(0xe8);}const LOCAL_TEMPLATE_PATH=resolve(__dirname,a198_0x4732ab(0xfa));export async function fetchRulesFromCDN(){const _0x5d45b3=a198_0x4732ab,_0x35653e=getRulesCdnUrl(),_0x1da19d=await fetch(_0x35653e,{'headers':{'Accept':_0x5d45b3(0xed)}});if(!_0x1da19d['ok'])throw new Error(_0x5d45b3(0xfc)+_0x1da19d[_0x5d45b3(0xec)]+'\x20'+_0x1da19d[_0x5d45b3(0xf4)]);const _0x2a1254=await _0x1da19d[_0x5d45b3(0xfd)]();if(!_0x2a1254[_0x5d45b3(0xf0)]||typeof _0x2a1254[_0x5d45b3(0xf0)]!==_0x5d45b3(0x101))throw new Error(_0x5d45b3(0xf8));return _0x2a1254;}export async function getRulesContent(){const _0x4bbed7=a198_0x4732ab;try{const _0x919310=await fetchRulesFromCDN();return _0x919310[_0x4bbed7(0xf0)];}catch{return readLocalTemplate();}}export function readLocalTemplate(){const _0x541470=a198_0x4732ab;if(existsSync(LOCAL_TEMPLATE_PATH))return readFileSync(LOCAL_TEMPLATE_PATH,_0x541470(0xe9));throw new Error(_0x541470(0xfe)+LOCAL_TEMPLATE_PATH);}export async function writeRulesFile(_0x5e9a9d){const _0x36717d=a198_0x4732ab,_0x33a6a9=await fetchRulesFromCDN()[_0x36717d(0xff)](()=>null);let _0x1a4619;_0x33a6a9?(_0x1a4619=_0x33a6a9[_0x36717d(0xf0)],_0x33a6a9['lastUpdated']&&(_0x1a4619=appendUpdateTime(_0x1a4619,_0x33a6a9[_0x36717d(0xeb)]))):_0x1a4619=readLocalTemplate();const _0x1a6f80=dirname(_0x5e9a9d);!existsSync(_0x1a6f80)&&mkdirSync(_0x1a6f80,{'recursive':!![]}),writeFileSync(_0x5e9a9d,_0x1a4619,'utf-8');}function a198_0x1397(){const _0x9c0a97=['本地模板文件不存在:\x20','catch','1404764tAesUc','string','847770fnzcfd','1wzpHFD','308rqYuAl','/rules/rules.json','utf-8','7fPToan','lastUpdated','status','application/json','.cursor/rules','agents.md','content','187569YMVLZc','369704tRvYeW','445754FRdHTh','statusText','lovrabet_rules.mdc','341094UseKlq','18ZHFhmm','CDN\x20返回数据格式错误','99804osndxd','../../templates/rules/lovrabet_rules.mdc.tpl','5OJAJCr','CDN\x20请求失败:\x20','json'];a198_0x1397=function(){return _0x9c0a97;};return a198_0x1397();}export async function copyRulesToCursor(_0x4f37c7){const _0x52820c=a198_0x4732ab,_0x2c4b15=join(_0x4f37c7,_0x52820c(0xee)),_0x56d533=join(_0x2c4b15,_0x52820c(0xf5));if(existsSync(_0x56d533))return![];return await writeRulesFile(_0x56d533),!![];}export async function copyRulesToAgentsMd(_0x5bb1a3){const _0x5acac0=a198_0x4732ab,_0x19144e=join(_0x5bb1a3,_0x5acac0(0xef));if(existsSync(_0x19144e))return![];return await writeRulesFile(_0x19144e),!![];}
1
+ (function(_0x4977f1,_0x4dd563){const _0x59a799=a198_0x4c77,_0x2b7b4b=_0x4977f1();while(!![]){try{const _0x188157=parseInt(_0x59a799(0x15c))/0x1*(parseInt(_0x59a799(0x158))/0x2)+-parseInt(_0x59a799(0x151))/0x3*(parseInt(_0x59a799(0x14f))/0x4)+-parseInt(_0x59a799(0x154))/0x5*(parseInt(_0x59a799(0x15b))/0x6)+-parseInt(_0x59a799(0x14b))/0x7*(parseInt(_0x59a799(0x152))/0x8)+parseInt(_0x59a799(0x156))/0x9+-parseInt(_0x59a799(0x14e))/0xa*(parseInt(_0x59a799(0x159))/0xb)+-parseInt(_0x59a799(0x155))/0xc*(-parseInt(_0x59a799(0x148))/0xd);if(_0x188157===_0x4dd563)break;else _0x2b7b4b['push'](_0x2b7b4b['shift']());}catch(_0x4fc91a){_0x2b7b4b['push'](_0x2b7b4b['shift']());}}}(a198_0x171b,0xd1905));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';function a198_0x171b(){const _0xec2c67=['agents.md','content','410CtmVnz','4gHPQDb','.cursor/rules','1111533WXvnkk','7352IADqCK','CDN\x20返回数据格式错误','45380EMjFAY','132jeecJs','5776515lnVcPg','utf-8','2cehfeH','224807qUwzae','json','102UukLTo','1709507maBPjf','status','CDN\x20请求失败:\x20','1251471HPeVvf','/rules/rules.json','lastUpdated','9058qeqDJH'];a198_0x171b=function(){return _0xec2c67;};return a198_0x171b();}const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);function a198_0x4c77(_0x4f75eb,_0x37f447){_0x4f75eb=_0x4f75eb-0x146;const _0x171baa=a198_0x171b();let _0x4c77db=_0x171baa[_0x4f75eb];return _0x4c77db;}function getRulesCdnUrl(){const _0x17ebe9=a198_0x4c77,_0x3643d2=getTemplateBaseUrl();return _0x3643d2+_0x17ebe9(0x149);}const LOCAL_TEMPLATE_PATH=resolve(__dirname,'../../templates/rules/lovrabet_rules.mdc.tpl');export async function fetchRulesFromCDN(){const _0x36cb9b=a198_0x4c77,_0x20e1b4=getRulesCdnUrl(),_0x223bae=await fetch(_0x20e1b4,{'headers':{'Accept':'application/json'}});if(!_0x223bae['ok'])throw new Error(_0x36cb9b(0x147)+_0x223bae[_0x36cb9b(0x146)]+'\x20'+_0x223bae['statusText']);const _0x5ec426=await _0x223bae[_0x36cb9b(0x15a)]();if(!_0x5ec426[_0x36cb9b(0x14d)]||typeof _0x5ec426['content']!=='string')throw new Error(_0x36cb9b(0x153));return _0x5ec426;}export async function getRulesContent(){const _0xe7235c=a198_0x4c77;try{const _0x5d68f9=await fetchRulesFromCDN();return _0x5d68f9[_0xe7235c(0x14d)];}catch{return readLocalTemplate();}}export function readLocalTemplate(){const _0x1d2f72=a198_0x4c77;if(existsSync(LOCAL_TEMPLATE_PATH))return readFileSync(LOCAL_TEMPLATE_PATH,_0x1d2f72(0x157));throw new Error('本地模板文件不存在:\x20'+LOCAL_TEMPLATE_PATH);}export async function writeRulesFile(_0x36c323){const _0x21b0d7=a198_0x4c77,_0x2b8343=await fetchRulesFromCDN()['catch'](()=>null);let _0xc6718f;_0x2b8343?(_0xc6718f=_0x2b8343['content'],_0x2b8343[_0x21b0d7(0x14a)]&&(_0xc6718f=appendUpdateTime(_0xc6718f,_0x2b8343[_0x21b0d7(0x14a)]))):_0xc6718f=readLocalTemplate();const _0x5e8661=dirname(_0x36c323);!existsSync(_0x5e8661)&&mkdirSync(_0x5e8661,{'recursive':!![]}),writeFileSync(_0x36c323,_0xc6718f,_0x21b0d7(0x157));}export async function copyRulesToCursor(_0x44c3c5){const _0x2985e3=a198_0x4c77,_0x13292f=join(_0x44c3c5,_0x2985e3(0x150)),_0x59e0de=join(_0x13292f,'lovrabet_rules.mdc');if(existsSync(_0x59e0de))return![];return await writeRulesFile(_0x59e0de),!![];}export async function copyRulesToAgentsMd(_0x97923d){const _0x4c5b18=a198_0x4c77,_0x4687d4=join(_0x97923d,_0x4c5b18(0x14c));if(existsSync(_0x4687d4))return![];return await writeRulesFile(_0x4687d4),!![];}
@@ -1 +1 @@
1
- export function sleep(_0x558055){return new Promise(_0x422d13=>setTimeout(_0x422d13,_0x558055));}
1
+ export function sleep(_0x267adf){return new Promise(_0x4d36d5=>setTimeout(_0x4d36d5,_0x267adf));}
@@ -1 +1 @@
1
- const a200_0x117e40=a200_0x1fc2;(function(_0x2f736e,_0x3b5b3a){const _0x5b224d=a200_0x1fc2,_0x1676fc=_0x2f736e();while(!![]){try{const _0x5c13a0=-parseInt(_0x5b224d(0xac))/0x1*(parseInt(_0x5b224d(0xc2))/0x2)+parseInt(_0x5b224d(0xc6))/0x3*(-parseInt(_0x5b224d(0x9e))/0x4)+parseInt(_0x5b224d(0x8f))/0x5+-parseInt(_0x5b224d(0xb2))/0x6+-parseInt(_0x5b224d(0xb8))/0x7*(parseInt(_0x5b224d(0xa1))/0x8)+-parseInt(_0x5b224d(0xbb))/0x9+parseInt(_0x5b224d(0xb0))/0xa;if(_0x5c13a0===_0x3b5b3a)break;else _0x1676fc['push'](_0x1676fc['shift']());}catch(_0x55cebb){_0x1676fc['push'](_0x1676fc['shift']());}}}(a200_0x1b11,0x92770));import a200_0x8f1984 from'node:fs';function a200_0x1fc2(_0x1799f0,_0x349309){_0x1799f0=_0x1799f0-0x83;const _0x1b11b5=a200_0x1b11();let _0x1fc25f=_0x1b11b5[_0x1799f0];return _0x1fc25f;}import a200_0x328432 from'node:path';import{logger}from'../utils/logger.js';import{getCliVersion}from'../utils/version.js';const CLI_VERSION=getCliVersion();export class TemplateReplacer{static['pad'](_0x3ac0df){const _0x12e631=a200_0x1fc2;return String(_0x3ac0df)[_0x12e631(0xa0)](0x2,'0');}static[a200_0x117e40(0x99)](_0x5efb03){const _0x45df4f=a200_0x117e40,_0x5f1f6e=_0x5efb03[_0x45df4f(0xbd)](),_0x3b5e70=this[_0x45df4f(0x93)](_0x5efb03[_0x45df4f(0xbe)]()+0x1),_0x37a497=this['pad'](_0x5efb03[_0x45df4f(0x83)]()),_0x3b36a0=this[_0x45df4f(0x93)](_0x5efb03['getHours']()),_0x477887=this[_0x45df4f(0x93)](_0x5efb03[_0x45df4f(0xba)]()),_0x41dd0e=this[_0x45df4f(0x93)](_0x5efb03[_0x45df4f(0x8d)]());return{'createdAt':_0x5f1f6e+'-'+_0x3b5e70+'-'+_0x37a497+'\x20'+_0x3b36a0+':'+_0x477887+':'+_0x41dd0e,'createdDate':_0x5f1f6e+'-'+_0x3b5e70+'-'+_0x37a497,'createdTime':_0x3b36a0+':'+_0x477887+':'+_0x41dd0e};}static[a200_0x117e40(0x85)](_0xdc2f97){const _0x14bc55=a200_0x117e40,_0x5ae2b6=_0xdc2f97['split']('/')[_0x14bc55(0xc7)]()||_0xdc2f97;return _0x5ae2b6[_0x14bc55(0x9d)]('-')[_0x14bc55(0xb7)](_0x2eccbe=>_0x2eccbe[_0x14bc55(0xa9)](0x0)[_0x14bc55(0x86)]()+_0x2eccbe[_0x14bc55(0x9b)](0x1)[_0x14bc55(0xab)]())[_0x14bc55(0xae)]('');}static[a200_0x117e40(0xb4)](_0x46b571){const _0x52d4dd=a200_0x117e40,_0x1404a8=_0x46b571[_0x52d4dd(0x9d)]('/')['pop']()||_0x46b571;return _0x1404a8[_0x52d4dd(0x9d)]('-')[_0x52d4dd(0xb7)](_0x5a9ed7=>_0x5a9ed7[_0x52d4dd(0xa9)](0x0)[_0x52d4dd(0x86)]()+_0x5a9ed7[_0x52d4dd(0x9b)](0x1)[_0x52d4dd(0xab)]())['join']('\x20');}static[a200_0x117e40(0x9a)](_0x241566,_0x5ebf3c,_0x175e86){const _0x31555b=a200_0x117e40,_0x139529=this[_0x31555b(0x85)](_0x5ebf3c),_0x155ecc=this[_0x31555b(0xb4)](_0x5ebf3c),{createdAt:_0x2dc046,createdDate:_0x20d535,createdTime:_0x3c905a}=this[_0x31555b(0x99)](new Date());let _0x32d8f4=_0x241566[_0x31555b(0xc4)](/\{CliVersion\}/g,CLI_VERSION)[_0x31555b(0xc4)](/\{ComponentName\}/g,_0x139529)['replace'](/\{DisplayTitle\}/g,_0x155ecc)[_0x31555b(0xc4)](/\{PageName\}/g,_0x5ebf3c)[_0x31555b(0xc4)](/\{TemplateName\}/g,_0x175e86)[_0x31555b(0xc4)](/\{CreatedAt\}/g,_0x2dc046)[_0x31555b(0xc4)](/\{CreatedDate\}/g,_0x20d535)[_0x31555b(0xc4)](/\{CreatedTime\}/g,_0x3c905a);return _0x32d8f4;}static['replaceApiContent'](_0x5a164f,_0x3f76d5,_0x5a79e2,_0x20f434,_0x56a843,_0x45e17b,_0x32377e,_0x59301a){const _0x1c783b=a200_0x117e40,_0x1e716d=new Date(),_0x30ce8d=_0x1e716d[_0x1c783b(0x8e)](),_0x5acde9=_0x5a79e2[_0x1c783b(0xb7)](_0x5a701e=>{const _0x2524f3=_0x1c783b,_0x4a4db4=[_0x2524f3(0xa6)+_0x5a701e['datasetCode']+'\x22',_0x2524f3(0x87)+_0x5a701e[_0x2524f3(0xb9)]+'\x22',_0x2524f3(0xb1)+_0x5a701e['name']+'\x22'];return _0x5a701e[_0x2524f3(0xbf)]&&_0x4a4db4[_0x2524f3(0x8a)](_0x2524f3(0x84)+_0x5a701e[_0x2524f3(0xbf)]+'\x22'),_0x2524f3(0x96)+_0x4a4db4[_0x2524f3(0xae)](',\x20')+'\x20},';})['join'](''),_0x12660b=_0x20f434||_0x5a79e2[0x0]?.[_0x1c783b(0xbf)]||'YourModel';let _0x23f62f=_0x5a164f[_0x1c783b(0xc4)](/\{AppCode\}/g,_0x3f76d5)[_0x1c783b(0xc4)](/\{ModelConfigs\}/g,_0x5acde9)[_0x1c783b(0xc4)](/\{ExampleModelName\}/g,_0x12660b)['replace'](/\{ApiFileName\}/g,_0x56a843||_0x1c783b(0x88))['replace'](/\{ConfigName\}/g,_0x45e17b||_0x1c783b(0xb5))['replace'](/\{ClientConfigParam\}/g,_0x32377e||'')['replace'](/\{VarPrefix\}/g,_0x59301a||_0x1c783b(0xa5))[_0x1c783b(0xc4)](/\{CreatedAt\}/g,_0x30ce8d);return _0x23f62f;}static async[a200_0x117e40(0x92)](_0x1be085,_0x2bee3a,_0x1d2c8d,_0x3e595c,_0x10d172=!![]){const _0x131797=a200_0x117e40,_0x20c9b9=Date[_0x131797(0xc3)]();try{_0x10d172&&logger[_0x131797(0x97)](_0x131797(0xa7),_0x131797(0xb6),{'templatePath':_0x1be085,'targetPath':_0x2bee3a,'pageName':_0x1d2c8d,'templateName':_0x3e595c});await a200_0x8f1984[_0x131797(0xa4)][_0x131797(0xa3)](_0x2bee3a,{'recursive':!![]}),await this[_0x131797(0xa2)](_0x1be085,_0x2bee3a,_0x1d2c8d,_0x3e595c);if(_0x10d172){const _0x212aee=Date[_0x131797(0xc3)]()-_0x20c9b9;logger[_0x131797(0x90)]('template',_0x131797(0x9c),_0x212aee,{'pageName':_0x1d2c8d,'templateName':_0x3e595c});}}catch(_0x286552){if(_0x10d172){const _0x13142d=Date[_0x131797(0xc3)]()-_0x20c9b9;logger['error'](_0x131797(0xa7),_0x131797(0xc0),{'templatePath':_0x1be085,'targetPath':_0x2bee3a,'pageName':_0x1d2c8d,'templateName':_0x3e595c,'error':_0x286552 instanceof Error?_0x286552['message']:String(_0x286552),'duration':_0x13142d});}throw _0x286552;}}static async[a200_0x117e40(0xa2)](_0x56694b,_0x520c3c,_0x486dd0,_0x240c64){const _0x1e1ffa=a200_0x117e40,_0x31839b=await a200_0x8f1984[_0x1e1ffa(0xa4)][_0x1e1ffa(0xbc)](_0x56694b,{'withFileTypes':!![]});for(const _0x3c98d8 of _0x31839b){const _0x473e54=a200_0x328432[_0x1e1ffa(0xae)](_0x56694b,_0x3c98d8['name']);let _0x5ef358=a200_0x328432[_0x1e1ffa(0xae)](_0x520c3c,_0x3c98d8[_0x1e1ffa(0x9f)]);_0x3c98d8[_0x1e1ffa(0x9f)][_0x1e1ffa(0xaf)](_0x1e1ffa(0x95))&&(_0x5ef358=a200_0x328432[_0x1e1ffa(0xae)](_0x520c3c,_0x3c98d8[_0x1e1ffa(0x9f)][_0x1e1ffa(0xc4)](/\.tpl$/,'')));if(_0x3c98d8[_0x1e1ffa(0x89)]())await a200_0x8f1984['promises']['mkdir'](_0x5ef358,{'recursive':!![]}),await this['processDirectory'](_0x473e54,_0x5ef358,_0x486dd0,_0x240c64);else _0x3c98d8[_0x1e1ffa(0xa8)]()&&await this[_0x1e1ffa(0xad)](_0x473e54,_0x5ef358,_0x486dd0,_0x240c64);}}static async[a200_0x117e40(0xad)](_0xfce698,_0x3d9cfd,_0x5b1558,_0x7bdbc1){const _0x1f2168=a200_0x117e40,_0x31bbd2=a200_0x328432[_0x1f2168(0x98)](_0xfce698)[_0x1f2168(0xab)]();_0xfce698[_0x1f2168(0xaf)](_0x1f2168(0x95))&&(_0x3d9cfd=_0x3d9cfd[_0x1f2168(0xc4)](/\.tpl$/,''));const _0x1a5a2b=[_0x1f2168(0x8b),'.ts',_0x1f2168(0xb3),_0x1f2168(0x94),_0x1f2168(0x91),'.md',_0x1f2168(0xc1),'.scss','.tpl'];if(_0x1a5a2b[_0x1f2168(0xaa)](_0x31bbd2)||_0xfce698[_0x1f2168(0xaf)](_0x1f2168(0x95))){const _0x26801d=await a200_0x8f1984[_0x1f2168(0xa4)][_0x1f2168(0xc5)](_0xfce698,_0x1f2168(0x8c)),_0x213860=this[_0x1f2168(0x9a)](_0x26801d,_0x5b1558,_0x7bdbc1);await a200_0x8f1984['promises']['writeFile'](_0x3d9cfd,_0x213860,_0x1f2168(0x8c));}else await a200_0x8f1984[_0x1f2168(0xa4)]['copyFile'](_0xfce698,_0x3d9cfd);}}function a200_0x1b11(){const _0x4d1ec8=['pop','getDate','alias:\x20\x22','toComponentName','toUpperCase','tableName:\x20\x22','api','isDirectory','push','.tsx','utf8','getSeconds','toISOString','1837725SQzbia','success','.json','processTemplate','pad','.js','.tpl','\x0a\x20\x20\x20\x20{\x20','info','extname','formatLocalTimestamp','replaceContent','slice','模板内容替换完成','split','576ZmtDeo','name','padStart','8609168mlExCq','processDirectory','mkdir','promises','LOVRABET','datasetCode:\x20\x22','template','isFile','charAt','includes','toLowerCase','38411fyNBbd','processFile','join','endsWith','31338880dQOkgd','name:\x20\x22','2090256rXezkt','.jsx','toDisplayTitle','default','开始处理模板内容替换','map','7GEhuxT','tableName','getMinutes','3846078dFNMfM','readdir','getFullYear','getMonth','alias','模板内容替换失败','.css','6TWqihN','now','replace','readFile','19467BWPbSU'];a200_0x1b11=function(){return _0x4d1ec8;};return a200_0x1b11();}
1
+ const a200_0x119b5c=a200_0xe363;function a200_0x5e6e(){const _0x3d7572=['toDisplayTitle','9986XiABLJ','includes','.md','name:\x20\x22','toLowerCase','split','api','toISOString','5162025cscdCO','replaceApiContent','processDirectory','\x20},','getMinutes','pop','.ts','.json','模板内容替换失败','processFile','writeFile','tableName:\x20\x22','553038nyyass','mkdir','127gMODYI','.jsx','endsWith','promises','utf8','readdir','formatLocalTimestamp','isDirectory','YourModel','getMonth','tableName','5212990eGgmjZ','now','toUpperCase','2980455ZhaXLu','extname','processTemplate','开始处理模板内容替换','246376GLnXPU','.js','1840996dxlRvD','.tpl','getFullYear','7viZfcO','template','copyFile','padStart','模板内容替换完成','map','success','toComponentName','replace','join','alias','charAt','replaceContent','171Mptfws','.css','LOVRABET','getHours','pad','info','slice','22StQhOg','\x0a\x20\x20\x20\x20{\x20','name'];a200_0x5e6e=function(){return _0x3d7572;};return a200_0x5e6e();}(function(_0x49e5f8,_0x3d5296){const _0xe7d985=a200_0xe363,_0x2a41f4=_0x49e5f8();while(!![]){try{const _0x431c86=-parseInt(_0xe7d985(0x166))/0x1*(parseInt(_0xe7d985(0x195))/0x2)+parseInt(_0xe7d985(0x174))/0x3+-parseInt(_0xe7d985(0x17a))/0x4+-parseInt(_0xe7d985(0x158))/0x5+parseInt(_0xe7d985(0x164))/0x6*(parseInt(_0xe7d985(0x17d))/0x7)+parseInt(_0xe7d985(0x178))/0x8*(parseInt(_0xe7d985(0x18a))/0x9)+-parseInt(_0xe7d985(0x171))/0xa*(-parseInt(_0xe7d985(0x191))/0xb);if(_0x431c86===_0x3d5296)break;else _0x2a41f4['push'](_0x2a41f4['shift']());}catch(_0x4ead78){_0x2a41f4['push'](_0x2a41f4['shift']());}}}(a200_0x5e6e,0x8f38a));import a200_0x261d42 from'node:fs';import a200_0x4e2a27 from'node:path';import{logger}from'../utils/logger.js';import{getCliVersion}from'../utils/version.js';const CLI_VERSION=getCliVersion();function a200_0xe363(_0x43437b,_0xed8555){_0x43437b=_0x43437b-0x151;const _0x5e6e88=a200_0x5e6e();let _0xe3637c=_0x5e6e88[_0x43437b];return _0xe3637c;}export class TemplateReplacer{static['pad'](_0x22314b){const _0x261be7=a200_0xe363;return String(_0x22314b)[_0x261be7(0x180)](0x2,'0');}static[a200_0x119b5c(0x16c)](_0x1b84cc){const _0x18ef1f=a200_0x119b5c,_0x3e204=_0x1b84cc[_0x18ef1f(0x17c)](),_0x55f8f9=this[_0x18ef1f(0x18e)](_0x1b84cc[_0x18ef1f(0x16f)]()+0x1),_0x198425=this[_0x18ef1f(0x18e)](_0x1b84cc['getDate']()),_0x125692=this[_0x18ef1f(0x18e)](_0x1b84cc[_0x18ef1f(0x18d)]()),_0x1f409e=this[_0x18ef1f(0x18e)](_0x1b84cc[_0x18ef1f(0x15c)]()),_0x2af729=this[_0x18ef1f(0x18e)](_0x1b84cc['getSeconds']());return{'createdAt':_0x3e204+'-'+_0x55f8f9+'-'+_0x198425+'\x20'+_0x125692+':'+_0x1f409e+':'+_0x2af729,'createdDate':_0x3e204+'-'+_0x55f8f9+'-'+_0x198425,'createdTime':_0x125692+':'+_0x1f409e+':'+_0x2af729};}static[a200_0x119b5c(0x184)](_0x166525){const _0x56d553=a200_0x119b5c,_0x4178ab=_0x166525[_0x56d553(0x155)]('/')[_0x56d553(0x15d)]()||_0x166525;return _0x4178ab[_0x56d553(0x155)]('-')['map'](_0x5e5ef8=>_0x5e5ef8['charAt'](0x0)[_0x56d553(0x173)]()+_0x5e5ef8[_0x56d553(0x190)](0x1)[_0x56d553(0x154)]())['join']('');}static[a200_0x119b5c(0x194)](_0x5a4423){const _0x2f39e2=a200_0x119b5c,_0x1c3d52=_0x5a4423[_0x2f39e2(0x155)]('/')[_0x2f39e2(0x15d)]()||_0x5a4423;return _0x1c3d52[_0x2f39e2(0x155)]('-')[_0x2f39e2(0x182)](_0x2215b6=>_0x2215b6[_0x2f39e2(0x188)](0x0)[_0x2f39e2(0x173)]()+_0x2215b6[_0x2f39e2(0x190)](0x1)['toLowerCase']())['join']('\x20');}static[a200_0x119b5c(0x189)](_0x79579a,_0x4f15d9,_0x1029a4){const _0xcd07e1=a200_0x119b5c,_0x51e03f=this[_0xcd07e1(0x184)](_0x4f15d9),_0x21f329=this['toDisplayTitle'](_0x4f15d9),{createdAt:_0x3727e7,createdDate:_0x4f9a80,createdTime:_0x551304}=this[_0xcd07e1(0x16c)](new Date());let _0x404776=_0x79579a['replace'](/\{CliVersion\}/g,CLI_VERSION)['replace'](/\{ComponentName\}/g,_0x51e03f)['replace'](/\{DisplayTitle\}/g,_0x21f329)['replace'](/\{PageName\}/g,_0x4f15d9)[_0xcd07e1(0x185)](/\{TemplateName\}/g,_0x1029a4)['replace'](/\{CreatedAt\}/g,_0x3727e7)[_0xcd07e1(0x185)](/\{CreatedDate\}/g,_0x4f9a80)['replace'](/\{CreatedTime\}/g,_0x551304);return _0x404776;}static[a200_0x119b5c(0x159)](_0x498fcd,_0x298edb,_0x46e2d5,_0x701199,_0x38da7f,_0x38aaec,_0x399034,_0x3d7a26){const _0x4023d1=a200_0x119b5c,_0x212faf=new Date(),_0x278172=_0x212faf[_0x4023d1(0x157)](),_0x5d51d8=_0x46e2d5[_0x4023d1(0x182)](_0x570014=>{const _0x143c15=_0x4023d1,_0x434d40=['datasetCode:\x20\x22'+_0x570014['datasetCode']+'\x22',_0x143c15(0x163)+_0x570014[_0x143c15(0x170)]+'\x22',_0x143c15(0x153)+_0x570014[_0x143c15(0x193)]+'\x22'];return _0x570014[_0x143c15(0x187)]&&_0x434d40['push']('alias:\x20\x22'+_0x570014[_0x143c15(0x187)]+'\x22'),_0x143c15(0x192)+_0x434d40[_0x143c15(0x186)](',\x20')+_0x143c15(0x15b);})[_0x4023d1(0x186)](''),_0x3a1f3b=_0x701199||_0x46e2d5[0x0]?.[_0x4023d1(0x187)]||_0x4023d1(0x16e);let _0x3ef60a=_0x498fcd[_0x4023d1(0x185)](/\{AppCode\}/g,_0x298edb)[_0x4023d1(0x185)](/\{ModelConfigs\}/g,_0x5d51d8)[_0x4023d1(0x185)](/\{ExampleModelName\}/g,_0x3a1f3b)['replace'](/\{ApiFileName\}/g,_0x38da7f||_0x4023d1(0x156))[_0x4023d1(0x185)](/\{ConfigName\}/g,_0x38aaec||'default')[_0x4023d1(0x185)](/\{ClientConfigParam\}/g,_0x399034||'')['replace'](/\{VarPrefix\}/g,_0x3d7a26||_0x4023d1(0x18c))[_0x4023d1(0x185)](/\{CreatedAt\}/g,_0x278172);return _0x3ef60a;}static async[a200_0x119b5c(0x176)](_0x6500aa,_0x1573f1,_0x4e6f87,_0x3f1c45,_0x10e9cf=!![]){const _0x241425=a200_0x119b5c,_0x36bb27=Date[_0x241425(0x172)]();try{_0x10e9cf&&logger[_0x241425(0x18f)](_0x241425(0x17e),_0x241425(0x177),{'templatePath':_0x6500aa,'targetPath':_0x1573f1,'pageName':_0x4e6f87,'templateName':_0x3f1c45});await a200_0x261d42[_0x241425(0x169)]['mkdir'](_0x1573f1,{'recursive':!![]}),await this[_0x241425(0x15a)](_0x6500aa,_0x1573f1,_0x4e6f87,_0x3f1c45);if(_0x10e9cf){const _0x1fd8d6=Date[_0x241425(0x172)]()-_0x36bb27;logger[_0x241425(0x183)](_0x241425(0x17e),_0x241425(0x181),_0x1fd8d6,{'pageName':_0x4e6f87,'templateName':_0x3f1c45});}}catch(_0x1bce67){if(_0x10e9cf){const _0x437b3f=Date[_0x241425(0x172)]()-_0x36bb27;logger['error']('template',_0x241425(0x160),{'templatePath':_0x6500aa,'targetPath':_0x1573f1,'pageName':_0x4e6f87,'templateName':_0x3f1c45,'error':_0x1bce67 instanceof Error?_0x1bce67['message']:String(_0x1bce67),'duration':_0x437b3f});}throw _0x1bce67;}}static async['processDirectory'](_0x573fca,_0x105970,_0x46931b,_0x285d6d){const _0x29bb57=a200_0x119b5c,_0x3c45af=await a200_0x261d42['promises'][_0x29bb57(0x16b)](_0x573fca,{'withFileTypes':!![]});for(const _0x5bc748 of _0x3c45af){const _0x5ad1c1=a200_0x4e2a27[_0x29bb57(0x186)](_0x573fca,_0x5bc748[_0x29bb57(0x193)]);let _0x50ea3f=a200_0x4e2a27[_0x29bb57(0x186)](_0x105970,_0x5bc748[_0x29bb57(0x193)]);_0x5bc748[_0x29bb57(0x193)][_0x29bb57(0x168)](_0x29bb57(0x17b))&&(_0x50ea3f=a200_0x4e2a27[_0x29bb57(0x186)](_0x105970,_0x5bc748[_0x29bb57(0x193)][_0x29bb57(0x185)](/\.tpl$/,'')));if(_0x5bc748[_0x29bb57(0x16d)]())await a200_0x261d42['promises'][_0x29bb57(0x165)](_0x50ea3f,{'recursive':!![]}),await this['processDirectory'](_0x5ad1c1,_0x50ea3f,_0x46931b,_0x285d6d);else _0x5bc748['isFile']()&&await this[_0x29bb57(0x161)](_0x5ad1c1,_0x50ea3f,_0x46931b,_0x285d6d);}}static async[a200_0x119b5c(0x161)](_0x2abba0,_0x100d19,_0x3f147e,_0x23df4a){const _0x3e32fb=a200_0x119b5c,_0x1f1cdd=a200_0x4e2a27[_0x3e32fb(0x175)](_0x2abba0)['toLowerCase']();_0x2abba0[_0x3e32fb(0x168)](_0x3e32fb(0x17b))&&(_0x100d19=_0x100d19[_0x3e32fb(0x185)](/\.tpl$/,''));const _0x37999f=['.tsx',_0x3e32fb(0x15e),_0x3e32fb(0x167),_0x3e32fb(0x179),_0x3e32fb(0x15f),_0x3e32fb(0x152),_0x3e32fb(0x18b),'.scss',_0x3e32fb(0x17b)];if(_0x37999f[_0x3e32fb(0x151)](_0x1f1cdd)||_0x2abba0[_0x3e32fb(0x168)](_0x3e32fb(0x17b))){const _0x4e47af=await a200_0x261d42[_0x3e32fb(0x169)]['readFile'](_0x2abba0,_0x3e32fb(0x16a)),_0x1b7a82=this['replaceContent'](_0x4e47af,_0x3f147e,_0x23df4a);await a200_0x261d42[_0x3e32fb(0x169)][_0x3e32fb(0x162)](_0x100d19,_0x1b7a82,_0x3e32fb(0x16a));}else await a200_0x261d42[_0x3e32fb(0x169)][_0x3e32fb(0x17f)](_0x2abba0,_0x100d19);}}
@@ -1 +1 @@
1
- (function(_0x476b8f,_0x35bc88){var _0x2c25fe=a201_0x5bf0,_0x1dd918=_0x476b8f();while(!![]){try{var _0x558d11=parseInt(_0x2c25fe(0xf7))/0x1*(parseInt(_0x2c25fe(0xf4))/0x2)+parseInt(_0x2c25fe(0xff))/0x3*(-parseInt(_0x2c25fe(0xf5))/0x4)+parseInt(_0x2c25fe(0xf6))/0x5*(parseInt(_0x2c25fe(0xfa))/0x6)+-parseInt(_0x2c25fe(0xf9))/0x7*(parseInt(_0x2c25fe(0xfb))/0x8)+parseInt(_0x2c25fe(0xfd))/0x9+-parseInt(_0x2c25fe(0xf8))/0xa*(-parseInt(_0x2c25fe(0xfc))/0xb)+-parseInt(_0x2c25fe(0xfe))/0xc*(-parseInt(_0x2c25fe(0xf3))/0xd);if(_0x558d11===_0x35bc88)break;else _0x1dd918['push'](_0x1dd918['shift']());}catch(_0x5f31cc){_0x1dd918['push'](_0x1dd918['shift']());}}}(a201_0x2e9f,0xbf518));import{VERSION}from'../generated/build-info.js';function a201_0x2e9f(){var _0x3bfa93=['5997nXKVPr','247KDnHNR','2EAqSCH','1596zWcJLd','950OErJfl','184735yMPjKW','10KjleiQ','63daqRjq','27426WVOCDX','535336vdoLFv','1224179CcXSKs','1477359xOhpAf','539892xDTVKI'];a201_0x2e9f=function(){return _0x3bfa93;};return a201_0x2e9f();}function a201_0x5bf0(_0x5ca768,_0x161a43){_0x5ca768=_0x5ca768-0xf3;var _0x2e9fed=a201_0x2e9f();var _0x5bf0a2=_0x2e9fed[_0x5ca768];return _0x5bf0a2;}export function getCliVersion(){return VERSION;}
1
+ (function(_0x5555f2,_0x2bfdec){var _0x285eb4=a201_0x3c01,_0x5029a2=_0x5555f2();while(!![]){try{var _0x382362=-parseInt(_0x285eb4(0xe9))/0x1+-parseInt(_0x285eb4(0xe7))/0x2*(parseInt(_0x285eb4(0xe0))/0x3)+parseInt(_0x285eb4(0xe8))/0x4*(parseInt(_0x285eb4(0xe1))/0x5)+-parseInt(_0x285eb4(0xdf))/0x6*(-parseInt(_0x285eb4(0xe6))/0x7)+-parseInt(_0x285eb4(0xe3))/0x8+parseInt(_0x285eb4(0xe2))/0x9*(parseInt(_0x285eb4(0xe4))/0xa)+parseInt(_0x285eb4(0xe5))/0xb;if(_0x382362===_0x2bfdec)break;else _0x5029a2['push'](_0x5029a2['shift']());}catch(_0x1ca24e){_0x5029a2['push'](_0x5029a2['shift']());}}}(a201_0xe881,0x5adc6));import{VERSION}from'../generated/build-info.js';function a201_0xe881(){var _0x34512d=['13512CBQsJs','821965WOFvxP','3393LiVbGS','4129552UZkVBo','14330qmeRdn','6619657MnieZD','3006521yvxeFN','206usaVId','8IPbSrp','548045loNZDf','6xVUPUn'];a201_0xe881=function(){return _0x34512d;};return a201_0xe881();}function a201_0x3c01(_0x38a076,_0x13291a){_0x38a076=_0x38a076-0xdf;var _0xe881e4=a201_0xe881();var _0x3c01df=_0xe881e4[_0x38a076];return _0x3c01df;}export function getCliVersion(){return VERSION;}
@@ -1 +1 @@
1
- function a202_0x299b(){var _0x1b1bd5=['112ibWPvn','1093869hTQxGp','2032481vjsswd','14sxytvV','72360wZdODg','9340mEFgFc','187061KfsyCu','2649702BlyIIW','36ACestv','60tTyutQ','16tECHyD','24281ArgXtl'];a202_0x299b=function(){return _0x1b1bd5;};return a202_0x299b();}(function(_0x4ffd37,_0x3002b1){var _0xf02bbf=a202_0x5775,_0xc31fd3=_0x4ffd37();while(!![]){try{var _0x310249=parseInt(_0xf02bbf(0x199))/0x1*(parseInt(_0xf02bbf(0x19d))/0x2)+parseInt(_0xf02bbf(0x19b))/0x3+-parseInt(_0xf02bbf(0x198))/0x4*(parseInt(_0xf02bbf(0x19f))/0x5)+-parseInt(_0xf02bbf(0x1a1))/0x6+-parseInt(_0xf02bbf(0x1a0))/0x7*(parseInt(_0xf02bbf(0x19a))/0x8)+parseInt(_0xf02bbf(0x19e))/0x9*(parseInt(_0xf02bbf(0x197))/0xa)+-parseInt(_0xf02bbf(0x19c))/0xb*(-parseInt(_0xf02bbf(0x1a2))/0xc);if(_0x310249===_0x3002b1)break;else _0xc31fd3['push'](_0xc31fd3['shift']());}catch(_0x1ea054){_0xc31fd3['push'](_0xc31fd3['shift']());}}}(a202_0x299b,0x4ca4c));function a202_0x5775(_0x4abd82,_0x377c21){_0x4abd82=_0x4abd82-0x197;var _0x299bee=a202_0x299b();var _0x5775f2=_0x299bee[_0x4abd82];return _0x5775f2;}import{setActiveCookie,clearActiveCookie}from'../core/api-client.js';export async function withActiveCookie(_0x30ba38,_0x4bfd4f){setActiveCookie(_0x30ba38);try{return await _0x4bfd4f();}finally{clearActiveCookie();}}
1
+ (function(_0x39d130,_0x4a47b4){var _0x25928c=a202_0x3955,_0x23e038=_0x39d130();while(!![]){try{var _0x2163cd=parseInt(_0x25928c(0x11f))/0x1+parseInt(_0x25928c(0x123))/0x2+-parseInt(_0x25928c(0x121))/0x3*(parseInt(_0x25928c(0x11b))/0x4)+-parseInt(_0x25928c(0x120))/0x5*(-parseInt(_0x25928c(0x122))/0x6)+parseInt(_0x25928c(0x11d))/0x7+-parseInt(_0x25928c(0x11e))/0x8+-parseInt(_0x25928c(0x11c))/0x9*(-parseInt(_0x25928c(0x124))/0xa);if(_0x2163cd===_0x4a47b4)break;else _0x23e038['push'](_0x23e038['shift']());}catch(_0x252c49){_0x23e038['push'](_0x23e038['shift']());}}}(a202_0x5df1,0x18be4));import{setActiveCookie,clearActiveCookie}from'../core/api-client.js';function a202_0x5df1(){var _0x2e5881=['30OOSLBt','260XazBMC','194517ZmZOSo','1401904xzdOta','1177856IqkqXf','70957FwiIlh','33505izDjyo','6681kQsBXK','30YyxQDd','47524ZsJWfB'];a202_0x5df1=function(){return _0x2e5881;};return a202_0x5df1();}function a202_0x3955(_0x1728fd,_0x3c596e){_0x1728fd=_0x1728fd-0x11b;var _0x5df117=a202_0x5df1();var _0x395543=_0x5df117[_0x1728fd];return _0x395543;}export async function withActiveCookie(_0x1c8f65,_0x562be1){setActiveCookie(_0x1c8f65);try{return await _0x562be1();}finally{clearActiveCookie();}}
@@ -1 +1 @@
1
- function a203_0x1ca5(_0x3ea639,_0x7dea68){_0x3ea639=_0x3ea639-0xaf;var _0x55e763=a203_0x55e7();var _0x1ca53f=_0x55e763[_0x3ea639];return _0x1ca53f;}function a203_0x55e7(){var _0x205405=['3400026oBbyIu','558243RfHZsu','stderr','8ijnpWx','7194257qDucMx','7105205PhmiwE','write','95271UPPrlq','32029083kmcPpt','92eCJPbE','2498528RvVVxG'];a203_0x55e7=function(){return _0x205405;};return a203_0x55e7();}(function(_0xd87444,_0x1cd3ca){var _0x236195=a203_0x1ca5,_0x39bec2=_0xd87444();while(!![]){try{var _0x4b825b=-parseInt(_0x236195(0xb8))/0x1+-parseInt(_0x236195(0xb5))/0x2*(-parseInt(_0x236195(0xb3))/0x3)+-parseInt(_0x236195(0xb6))/0x4+-parseInt(_0x236195(0xb1))/0x5+-parseInt(_0x236195(0xb7))/0x6+-parseInt(_0x236195(0xb0))/0x7*(parseInt(_0x236195(0xaf))/0x8)+parseInt(_0x236195(0xb4))/0x9;if(_0x4b825b===_0x1cd3ca)break;else _0x39bec2['push'](_0x39bec2['shift']());}catch(_0x5ed06b){_0x39bec2['push'](_0x39bec2['shift']());}}}(a203_0x55e7,0xc8817));export function writeCliSideChannelLine(_0x343711){var _0x51611b=a203_0x1ca5;process[_0x51611b(0xb9)][_0x51611b(0xb2)](_0x343711+'\x0a');}
1
+ function a203_0x28e5(_0x352f67,_0x359159){_0x352f67=_0x352f67-0x7c;var _0x34d583=a203_0x34d5();var _0x28e5d0=_0x34d583[_0x352f67];return _0x28e5d0;}(function(_0x42ec11,_0x3cdd7f){var _0x54fb4d=a203_0x28e5,_0x130398=_0x42ec11();while(!![]){try{var _0x5513fc=parseInt(_0x54fb4d(0x83))/0x1*(-parseInt(_0x54fb4d(0x7e))/0x2)+parseInt(_0x54fb4d(0x87))/0x3*(-parseInt(_0x54fb4d(0x81))/0x4)+parseInt(_0x54fb4d(0x80))/0x5*(parseInt(_0x54fb4d(0x82))/0x6)+-parseInt(_0x54fb4d(0x89))/0x7*(-parseInt(_0x54fb4d(0x7c))/0x8)+-parseInt(_0x54fb4d(0x84))/0x9+parseInt(_0x54fb4d(0x88))/0xa*(-parseInt(_0x54fb4d(0x7d))/0xb)+parseInt(_0x54fb4d(0x86))/0xc;if(_0x5513fc===_0x3cdd7f)break;else _0x130398['push'](_0x130398['shift']());}catch(_0x42628b){_0x130398['push'](_0x130398['shift']());}}}(a203_0x34d5,0xcb786));function a203_0x34d5(){var _0x3cab9b=['23460HYFABH','298963pCTgzp','2725767axfnzo','write','8051496eTScrv','3MsyHYl','320090gWozXy','176071SbfMYT','224oUMaEJ','198JWMiXr','4SKSKhz','stderr','1285UbSqhw','278988QRLPLh'];a203_0x34d5=function(){return _0x3cab9b;};return a203_0x34d5();}export function writeCliSideChannelLine(_0x23feb0){var _0x3a6b67=a203_0x28e5;process[_0x3a6b67(0x7f)][_0x3a6b67(0x85)](_0x23feb0+'\x0a');}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lovrabet/rabetbase-cli",
3
- "version": "2.1.12-beta.2",
3
+ "version": "2.1.12",
4
4
  "license": "SEE LICENSE IN LICENSE",
5
5
  "repository": {
6
6
  "type": "git",
@@ -26,7 +26,7 @@
26
26
  "verify:bundled-jq": "node scripts/verify-bundled-jq.mjs",
27
27
  "regression:beta-smoke": "node scripts/regression-beta-smoke.mjs",
28
28
  "beta-release": "sh scripts/update-beta-version.sh && bun run build && git push && git push origin --tag && bun publish --tag beta",
29
- "release": "sh scripts/update-latest-version.sh && bun run build && git push && git push origin --tag && bun publish",
29
+ "release": "sh scripts/update-latest-version.sh && bun run build && git push && git push origin --tag && npm run publish:github && bun publish",
30
30
  "test": "vitest run",
31
31
  "test:run": "vitest run",
32
32
  "test:coverage": "vitest run --coverage",