@lovrabet/rabetbase-cli 2.2.4-beta.2 → 2.2.4-beta.4

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 (207) 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/extend-update.js +1 -1
  55. package/lib/commands/dataset/field-update.js +1 -1
  56. package/lib/commands/dataset/index.js +1 -1
  57. package/lib/commands/dataset/list.js +1 -1
  58. package/lib/commands/dataset/operations.js +1 -1
  59. package/lib/commands/dataset/relation-create.js +1 -1
  60. package/lib/commands/dataset/relation-delete.js +1 -1
  61. package/lib/commands/dataset/relation-shared.js +1 -1
  62. package/lib/commands/dataset/relation-update.js +1 -1
  63. package/lib/commands/dataset/relations.js +1 -1
  64. package/lib/commands/dataset/rename.js +1 -1
  65. package/lib/commands/db/analyze-cancel.js +1 -1
  66. package/lib/commands/db/analyze-start.js +1 -1
  67. package/lib/commands/db/analyze-status.js +1 -1
  68. package/lib/commands/db/create.js +1 -1
  69. package/lib/commands/db/delete.js +1 -1
  70. package/lib/commands/db/detail.js +1 -1
  71. package/lib/commands/db/diff.js +1 -1
  72. package/lib/commands/db/index.js +1 -1
  73. package/lib/commands/db/list.js +1 -1
  74. package/lib/commands/db/shared.js +1 -1
  75. package/lib/commands/db/tables.js +1 -1
  76. package/lib/commands/db/test.js +1 -1
  77. package/lib/commands/db/update.js +1 -1
  78. package/lib/commands/doctor.js +1 -1
  79. package/lib/commands/init/index.js +1 -1
  80. package/lib/commands/issue/index.js +1 -1
  81. package/lib/commands/issue/nudge.js +1 -1
  82. package/lib/commands/issue/report.js +1 -1
  83. package/lib/commands/issue/shared.js +1 -1
  84. package/lib/commands/logs/index.js +1 -1
  85. package/lib/commands/menu/index.js +1 -1
  86. package/lib/commands/menu/list.js +1 -1
  87. package/lib/commands/menu/shared/compare-table.js +1 -1
  88. package/lib/commands/menu/shared/index.js +1 -1
  89. package/lib/commands/menu/shared/inquirer.js +1 -1
  90. package/lib/commands/menu/shared/local-pages.js +1 -1
  91. package/lib/commands/menu/shared/logic.js +1 -1
  92. package/lib/commands/menu/shared/service.js +1 -1
  93. package/lib/commands/menu/shared/sync-core.js +1 -1
  94. package/lib/commands/menu/shared/update-core.js +1 -1
  95. package/lib/commands/menu/shared/valid-url.js +1 -1
  96. package/lib/commands/menu/sync.js +1 -1
  97. package/lib/commands/menu/update.js +1 -1
  98. package/lib/commands/page/generate-start.js +1 -1
  99. package/lib/commands/page/generate-status.js +1 -1
  100. package/lib/commands/page/index.js +1 -1
  101. package/lib/commands/page/pull.js +1 -1
  102. package/lib/commands/page/push.js +1 -1
  103. package/lib/commands/page/relation-audit.js +1 -1
  104. package/lib/commands/page/shared.js +1 -1
  105. package/lib/commands/page/standard-page-status.js +1 -1
  106. package/lib/commands/page/sync.js +1 -1
  107. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  108. package/lib/commands/project/create/format-elapsed.js +1 -1
  109. package/lib/commands/project/create/main.js +1 -1
  110. package/lib/commands/project/create/non-interactive.js +1 -1
  111. package/lib/commands/project/create/project-template-path.js +1 -1
  112. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  113. package/lib/commands/project/create/use-format-code.js +1 -1
  114. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  115. package/lib/commands/project/index.js +1 -1
  116. package/lib/commands/project/init.js +1 -1
  117. package/lib/commands/project/upgrade.js +1 -1
  118. package/lib/commands/registry.js +1 -1
  119. package/lib/commands/run/index.js +1 -1
  120. package/lib/commands/schema.js +1 -1
  121. package/lib/commands/skill/index.js +1 -1
  122. package/lib/commands/sql/create.js +1 -1
  123. package/lib/commands/sql/delete.js +1 -1
  124. package/lib/commands/sql/detail.js +1 -1
  125. package/lib/commands/sql/exec.js +1 -1
  126. package/lib/commands/sql/index.js +1 -1
  127. package/lib/commands/sql/list.js +1 -1
  128. package/lib/commands/sql/pull.js +1 -1
  129. package/lib/commands/sql/push.js +1 -1
  130. package/lib/commands/sql/save.js +1 -1
  131. package/lib/commands/sql/shared.js +1 -1
  132. package/lib/commands/sql/status.js +1 -1
  133. package/lib/commands/sql/validate.js +1 -1
  134. package/lib/config/schema.js +1 -1
  135. package/lib/constant/cdn.js +1 -1
  136. package/lib/constant/cli.js +1 -1
  137. package/lib/constant/defaults.js +1 -1
  138. package/lib/constant/domain.js +1 -1
  139. package/lib/constant/env.js +1 -1
  140. package/lib/constant/output.js +1 -1
  141. package/lib/constant/paths.js +1 -1
  142. package/lib/constant/risk.js +1 -1
  143. package/lib/context.js +1 -1
  144. package/lib/core/alias-resolver.js +1 -1
  145. package/lib/core/api-client.js +1 -1
  146. package/lib/core/bff/config.js +1 -1
  147. package/lib/core/bff/file-system.js +1 -1
  148. package/lib/core/bff/hash.js +1 -1
  149. package/lib/core/bff/lock.js +1 -1
  150. package/lib/core/bff/utils.js +1 -1
  151. package/lib/core/db-resolver.js +1 -1
  152. package/lib/core/page/file-system.js +1 -1
  153. package/lib/core/page/hash.js +1 -1
  154. package/lib/core/page/lock.js +1 -1
  155. package/lib/core/sql-sync/config.js +1 -1
  156. package/lib/core/sql-sync/file-system.js +1 -1
  157. package/lib/core/sql-sync/hash.js +1 -1
  158. package/lib/core/sql-sync/lock.js +1 -1
  159. package/lib/core/sql-sync/utils.js +1 -1
  160. package/lib/core/sql-validator.js +1 -1
  161. package/lib/errors.js +1 -1
  162. package/lib/framework/build-all-flags.js +1 -1
  163. package/lib/framework/flags.js +1 -1
  164. package/lib/framework/help.js +1 -1
  165. package/lib/framework/index.js +1 -1
  166. package/lib/framework/output.js +1 -1
  167. package/lib/framework/response.js +1 -1
  168. package/lib/framework/runner-alias.js +1 -1
  169. package/lib/framework/runner.js +1 -1
  170. package/lib/framework/schema-export.js +1 -1
  171. package/lib/framework/types.js +1 -1
  172. package/lib/generated/build-info.js +1 -1
  173. package/lib/help.js +1 -1
  174. package/lib/skills/main.js +1 -1
  175. package/lib/skills/npx-skills-add.js +1 -1
  176. package/lib/telemetry/cli-command-trace.js +1 -1
  177. package/lib/telemetry/cli-help-trace.js +1 -1
  178. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  179. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  180. package/lib/telemetry/send-cli-trace-log.js +1 -1
  181. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  182. package/lib/utils/ai_config.js +1 -1
  183. package/lib/utils/apply-jq-filter.js +1 -1
  184. package/lib/utils/cdn-config.js +1 -1
  185. package/lib/utils/check-sdk-version.js +1 -1
  186. package/lib/utils/cli-version-check.js +1 -1
  187. package/lib/utils/cli-version-policy.js +1 -1
  188. package/lib/utils/config.js +1 -1
  189. package/lib/utils/copy-directory.js +1 -1
  190. package/lib/utils/entity-with-id.js +1 -1
  191. package/lib/utils/file-utils.js +1 -1
  192. package/lib/utils/guides-cdn.js +1 -1
  193. package/lib/utils/http-client.js +1 -1
  194. package/lib/utils/is-non-interactive.js +1 -1
  195. package/lib/utils/logger.js +1 -1
  196. package/lib/utils/params.js +1 -1
  197. package/lib/utils/platform.js +1 -1
  198. package/lib/utils/rules-cdn.js +1 -1
  199. package/lib/utils/sleep.js +1 -1
  200. package/lib/utils/template-replacer.js +1 -1
  201. package/lib/utils/update-notice.js +1 -1
  202. package/lib/utils/version.js +1 -1
  203. package/lib/utils/with-active-cookie.js +1 -1
  204. package/lib/utils/write-cli-side-channel.js +1 -1
  205. package/package.json +2 -2
  206. package/templates/projects/sub-app-react-demo/src/vite-env.d.ts +1 -1
  207. package/templates/rules/lovrabet_rules.mdc.tpl +3 -1
@@ -1 +1 @@
1
- const a199_0x12e375=a199_0x2cf1;function a199_0x2b3c(){const _0x2264fe=['format','warn','details','addColors','writeFileSync','.lovrabet.log','159950pIFrCu','trim','getWinstonInstance','logTask','red','Failed\x20to\x20read\x20logs:','readLogs','join','winstonLogger','duration','5YamOAG','combine','map','clearLogs','128268uRptFn','timestamp','dirname','开始执行:\x20','180frBPSa','info','301561xidFOv','871590fZjldg','mkdirSync','level','command','blue','154680xNRyyt','split','stringify','success','now','existsSync','2FFqKqk','toISOString','clear','printf','完成:\x20','filter','yellow','rawCommand','utf8','logFilePath','setRawCommand','createLogger','unknown','3498hbhnnB','errors','message','currentRawCommand','File','4610dySxoC','log','error','449271fKeExt','initWinstonLogger'];a199_0x2b3c=function(){return _0x2264fe;};return a199_0x2b3c();}(function(_0x497922,_0x4a11fa){const _0x13d302=a199_0x2cf1,_0x28b161=_0x497922();while(!![]){try{const _0x120935=-parseInt(_0x13d302(0x189))/0x1+-parseInt(_0x13d302(0x195))/0x2*(-parseInt(_0x13d302(0x16d))/0x3)+parseInt(_0x13d302(0x183))/0x4+-parseInt(_0x13d302(0x17f))/0x5*(parseInt(_0x13d302(0x18a))/0x6)+parseInt(_0x13d302(0x175))/0x7+parseInt(_0x13d302(0x18f))/0x8*(parseInt(_0x13d302(0x187))/0x9)+-parseInt(_0x13d302(0x16a))/0xa*(-parseInt(_0x13d302(0x165))/0xb);if(_0x120935===_0x4a11fa)break;else _0x28b161['push'](_0x28b161['shift']());}catch(_0x4a02f2){_0x28b161['push'](_0x28b161['shift']());}}}(a199_0x2b3c,0x4714a));import a199_0x9af3fa from'winston';import a199_0x575db7 from'node:fs';function a199_0x2cf1(_0x5b4b24,_0x4937e3){_0x5b4b24=_0x5b4b24-0x162;const _0x2b3ce7=a199_0x2b3c();let _0x2cf172=_0x2b3ce7[_0x5b4b24];return _0x2cf172;}import a199_0x10d393 from'node:path';class Logger{[a199_0x12e375(0x17d)];[a199_0x12e375(0x19e)];[a199_0x12e375(0x168)]='';constructor(){const _0x293a12=a199_0x12e375;this[_0x293a12(0x19e)]='';}[a199_0x12e375(0x162)](_0x4de74d){this['currentRawCommand']=_0x4de74d;}[a199_0x12e375(0x16e)](){const _0x40e731=a199_0x12e375,_0x75fc4=a199_0x10d393[_0x40e731(0x185)](this[_0x40e731(0x19e)]);!a199_0x575db7[_0x40e731(0x194)](_0x75fc4)&&a199_0x575db7[_0x40e731(0x18b)](_0x75fc4,{'recursive':!![]});const _0x56d22f=a199_0x9af3fa[_0x40e731(0x16f)][_0x40e731(0x180)](a199_0x9af3fa['format'][_0x40e731(0x184)](),a199_0x9af3fa['format'][_0x40e731(0x166)]({'stack':!![]}),a199_0x9af3fa[_0x40e731(0x16f)][_0x40e731(0x198)](_0x4b0a89=>{const _0x5db8db=_0x40e731,_0x455a80={'timestamp':_0x4b0a89['timestamp']||new Date()[_0x5db8db(0x196)](),'level':_0x4b0a89[_0x5db8db(0x18c)]||'info','command':_0x4b0a89[_0x5db8db(0x18d)]||_0x5db8db(0x164),'rawCommand':_0x4b0a89[_0x5db8db(0x19c)]||this[_0x5db8db(0x168)]||undefined,'message':_0x4b0a89[_0x5db8db(0x167)]||'','duration':_0x4b0a89[_0x5db8db(0x17e)]||undefined,'details':_0x4b0a89[_0x5db8db(0x171)]||undefined};return JSON[_0x5db8db(0x191)](_0x455a80);}));this[_0x40e731(0x17d)]=a199_0x9af3fa[_0x40e731(0x163)]({'level':_0x40e731(0x188),'format':_0x56d22f,'transports':[new a199_0x9af3fa['transports'][(_0x40e731(0x169))]({'filename':this[_0x40e731(0x19e)],'level':_0x40e731(0x188)})],'silent':![]}),a199_0x9af3fa[_0x40e731(0x172)]({'success':'green','error':_0x40e731(0x179),'warn':_0x40e731(0x19b),'info':_0x40e731(0x18e)});}['setLogPath'](_0x4f14f9){const _0x1fb84b=a199_0x12e375;this[_0x1fb84b(0x19e)]=a199_0x10d393[_0x1fb84b(0x17c)](_0x4f14f9,_0x1fb84b(0x174)),this[_0x1fb84b(0x17d)]&&this[_0x1fb84b(0x17d)][_0x1fb84b(0x197)](),this[_0x1fb84b(0x16e)]();}[a199_0x12e375(0x188)](_0x280b50,_0x1b7866,_0x1c17bf){const _0x3146b6=a199_0x12e375;if(!this[_0x3146b6(0x19e)]||!this[_0x3146b6(0x17d)])return;this[_0x3146b6(0x17d)]['info'](_0x1b7866,{'command':_0x280b50,'details':_0x1c17bf});}[a199_0x12e375(0x192)](_0x281d53,_0x32204c,_0x4e14eb,_0x20e277){const _0x879122=a199_0x12e375;if(!this['logFilePath']||!this[_0x879122(0x17d)])return;this[_0x879122(0x17d)][_0x879122(0x16b)]('info',_0x32204c,{'level':_0x879122(0x192),'command':_0x281d53,'duration':_0x4e14eb,'details':_0x20e277});}[a199_0x12e375(0x16c)](_0x9a9098,_0x388c18,_0x576741){const _0x7486ef=a199_0x12e375;if(!this[_0x7486ef(0x19e)]||!this[_0x7486ef(0x17d)])return;this['winstonLogger'][_0x7486ef(0x16c)](_0x388c18,{'command':_0x9a9098,'details':_0x576741});}[a199_0x12e375(0x170)](_0x9191d9,_0x442af2,_0x14997e){const _0x55d3c1=a199_0x12e375;if(!this[_0x55d3c1(0x19e)]||!this[_0x55d3c1(0x17d)])return;this[_0x55d3c1(0x17d)][_0x55d3c1(0x170)](_0x442af2,{'command':_0x9191d9,'details':_0x14997e});}async[a199_0x12e375(0x178)](_0x3dbde4,_0x519200,_0x479339){const _0x4e506a=a199_0x12e375,_0x179f38=Date[_0x4e506a(0x193)]();this[_0x4e506a(0x188)](_0x3dbde4,_0x4e506a(0x186)+_0x519200);try{const _0x2a9b4f=await _0x479339(),_0x49be5d=Date[_0x4e506a(0x193)]()-_0x179f38;return this[_0x4e506a(0x192)](_0x3dbde4,_0x4e506a(0x199)+_0x519200,_0x49be5d),_0x2a9b4f;}catch(_0x525792){const _0x10294a=Date[_0x4e506a(0x193)]()-_0x179f38;this[_0x4e506a(0x16c)](_0x3dbde4,'失败:\x20'+_0x519200,{'error':_0x525792 instanceof Error?_0x525792[_0x4e506a(0x167)]:String(_0x525792),'duration':_0x10294a});throw _0x525792;}}[a199_0x12e375(0x17b)](){const _0x514a32=a199_0x12e375;try{if(!a199_0x575db7[_0x514a32(0x194)](this[_0x514a32(0x19e)]))return[];const _0x5da90e=a199_0x575db7['readFileSync'](this['logFilePath'],_0x514a32(0x19d));return _0x5da90e[_0x514a32(0x190)]('\x0a')[_0x514a32(0x19a)](_0x5ed97e=>_0x5ed97e[_0x514a32(0x176)]())[_0x514a32(0x181)](_0x5e176f=>JSON['parse'](_0x5e176f));}catch(_0x24f361){return console[_0x514a32(0x170)](_0x514a32(0x17a),_0x24f361),[];}}[a199_0x12e375(0x182)](){const _0x4df9c5=a199_0x12e375;try{a199_0x575db7[_0x4df9c5(0x194)](this[_0x4df9c5(0x19e)])&&a199_0x575db7[_0x4df9c5(0x173)](this[_0x4df9c5(0x19e)],'',_0x4df9c5(0x19d));}catch(_0x10e0ba){console[_0x4df9c5(0x170)]('Failed\x20to\x20clear\x20logs:',_0x10e0ba);}}[a199_0x12e375(0x177)](){const _0x1173ca=a199_0x12e375;return this[_0x1173ca(0x17d)];}}export const logger=new Logger();
1
+ function a199_0x3dcc(_0x560a02,_0x49d691){_0x560a02=_0x560a02-0x16a;const _0x3032be=a199_0x3032();let _0x3dccc6=_0x3032be[_0x560a02];return _0x3dccc6;}const a199_0x35f5e4=a199_0x3dcc;(function(_0x338d60,_0x1e63ff){const _0xc73160=a199_0x3dcc,_0x4760b4=_0x338d60();while(!![]){try{const _0x57f7c0=parseInt(_0xc73160(0x1a0))/0x1*(-parseInt(_0xc73160(0x184))/0x2)+parseInt(_0xc73160(0x17b))/0x3+parseInt(_0xc73160(0x19f))/0x4*(-parseInt(_0xc73160(0x193))/0x5)+-parseInt(_0xc73160(0x17d))/0x6*(parseInt(_0xc73160(0x175))/0x7)+parseInt(_0xc73160(0x180))/0x8+parseInt(_0xc73160(0x19c))/0x9+parseInt(_0xc73160(0x18e))/0xa*(-parseInt(_0xc73160(0x19e))/0xb);if(_0x57f7c0===_0x1e63ff)break;else _0x4760b4['push'](_0x4760b4['shift']());}catch(_0x1e630e){_0x4760b4['push'](_0x4760b4['shift']());}}}(a199_0x3032,0x29ea0));import a199_0x7ca10a from'winston';import a199_0x1a6b1c from'node:fs';import a199_0x206066 from'node:path';class Logger{[a199_0x35f5e4(0x181)];[a199_0x35f5e4(0x188)];[a199_0x35f5e4(0x192)]='';constructor(){const _0x9a936c=a199_0x35f5e4;this[_0x9a936c(0x188)]='';}['setRawCommand'](_0x2fcf59){this['currentRawCommand']=_0x2fcf59;}['initWinstonLogger'](){const _0x56fe7d=a199_0x35f5e4,_0x2e7e34=a199_0x206066['dirname'](this[_0x56fe7d(0x188)]);!a199_0x1a6b1c['existsSync'](_0x2e7e34)&&a199_0x1a6b1c[_0x56fe7d(0x16a)](_0x2e7e34,{'recursive':!![]});const _0x4c766f=a199_0x7ca10a[_0x56fe7d(0x1a1)][_0x56fe7d(0x18c)](a199_0x7ca10a['format'][_0x56fe7d(0x16f)](),a199_0x7ca10a['format'][_0x56fe7d(0x191)]({'stack':!![]}),a199_0x7ca10a[_0x56fe7d(0x1a1)][_0x56fe7d(0x176)](_0x575fe6=>{const _0x17b787=_0x56fe7d,_0x182458={'timestamp':_0x575fe6[_0x17b787(0x16f)]||new Date()[_0x17b787(0x172)](),'level':_0x575fe6[_0x17b787(0x195)]||'info','command':_0x575fe6[_0x17b787(0x18a)]||_0x17b787(0x18d),'rawCommand':_0x575fe6[_0x17b787(0x187)]||this['currentRawCommand']||undefined,'message':_0x575fe6['message']||'','duration':_0x575fe6[_0x17b787(0x170)]||undefined,'details':_0x575fe6[_0x17b787(0x179)]||undefined};return JSON['stringify'](_0x182458);}));this[_0x56fe7d(0x181)]=a199_0x7ca10a['createLogger']({'level':_0x56fe7d(0x171),'format':_0x4c766f,'transports':[new a199_0x7ca10a[(_0x56fe7d(0x190))][(_0x56fe7d(0x16d))]({'filename':this[_0x56fe7d(0x188)],'level':_0x56fe7d(0x171)})],'silent':![]}),a199_0x7ca10a[_0x56fe7d(0x182)]({'success':_0x56fe7d(0x19a),'error':_0x56fe7d(0x16b),'warn':_0x56fe7d(0x173),'info':_0x56fe7d(0x16e)});}[a199_0x35f5e4(0x174)](_0x5e99ea){const _0x287b26=a199_0x35f5e4;this['logFilePath']=a199_0x206066[_0x287b26(0x177)](_0x5e99ea,_0x287b26(0x16c)),this[_0x287b26(0x181)]&&this[_0x287b26(0x181)]['clear'](),this['initWinstonLogger']();}[a199_0x35f5e4(0x171)](_0x18341e,_0xaefb86,_0x10bee8){const _0x1f8c18=a199_0x35f5e4;if(!this[_0x1f8c18(0x188)]||!this['winstonLogger'])return;this['winstonLogger'][_0x1f8c18(0x171)](_0xaefb86,{'command':_0x18341e,'details':_0x10bee8});}[a199_0x35f5e4(0x17c)](_0x586fee,_0x352bc5,_0x27b7b3,_0x218e89){const _0x427114=a199_0x35f5e4;if(!this[_0x427114(0x188)]||!this['winstonLogger'])return;this[_0x427114(0x181)]['log'](_0x427114(0x171),_0x352bc5,{'level':'success','command':_0x586fee,'duration':_0x27b7b3,'details':_0x218e89});}[a199_0x35f5e4(0x198)](_0x2e365a,_0x4cefba,_0x403c68){if(!this['logFilePath']||!this['winstonLogger'])return;this['winstonLogger']['error'](_0x4cefba,{'command':_0x2e365a,'details':_0x403c68});}['warn'](_0x253f77,_0x23eced,_0x4cf7e2){const _0x32b0b0=a199_0x35f5e4;if(!this['logFilePath']||!this['winstonLogger'])return;this[_0x32b0b0(0x181)][_0x32b0b0(0x17a)](_0x23eced,{'command':_0x253f77,'details':_0x4cf7e2});}async[a199_0x35f5e4(0x199)](_0x5ab971,_0x4fcbc6,_0x41c133){const _0x3524df=a199_0x35f5e4,_0x544c73=Date[_0x3524df(0x18b)]();this[_0x3524df(0x171)](_0x5ab971,_0x3524df(0x197)+_0x4fcbc6);try{const _0x3f77a3=await _0x41c133(),_0x1d37da=Date[_0x3524df(0x18b)]()-_0x544c73;return this[_0x3524df(0x17c)](_0x5ab971,'完成:\x20'+_0x4fcbc6,_0x1d37da),_0x3f77a3;}catch(_0x30329b){const _0x2a81c4=Date[_0x3524df(0x18b)]()-_0x544c73;this[_0x3524df(0x198)](_0x5ab971,'失败:\x20'+_0x4fcbc6,{'error':_0x30329b instanceof Error?_0x30329b[_0x3524df(0x19d)]:String(_0x30329b),'duration':_0x2a81c4});throw _0x30329b;}}['readLogs'](){const _0x319ad9=a199_0x35f5e4;try{if(!a199_0x1a6b1c['existsSync'](this[_0x319ad9(0x188)]))return[];const _0x1faf55=a199_0x1a6b1c[_0x319ad9(0x189)](this[_0x319ad9(0x188)],_0x319ad9(0x183));return _0x1faf55['split']('\x0a')[_0x319ad9(0x17e)](_0x31c189=>_0x31c189[_0x319ad9(0x196)]())[_0x319ad9(0x18f)](_0x500191=>JSON['parse'](_0x500191));}catch(_0x1de491){return console[_0x319ad9(0x17a)](_0x319ad9(0x194),_0x1de491),[];}}[a199_0x35f5e4(0x17f)](){const _0xdcf0e8=a199_0x35f5e4;try{a199_0x1a6b1c[_0xdcf0e8(0x185)](this['logFilePath'])&&a199_0x1a6b1c[_0xdcf0e8(0x19b)](this[_0xdcf0e8(0x188)],'','utf8');}catch(_0x2cf362){console['warn'](_0xdcf0e8(0x178),_0x2cf362);}}[a199_0x35f5e4(0x186)](){const _0x2e5610=a199_0x35f5e4;return this[_0x2e5610(0x181)];}}export const logger=new Logger();function a199_0x3032(){const _0x2dedd0=['command','now','combine','unknown','43150UZOVtJ','map','transports','errors','currentRawCommand','51405asCUeH','Failed\x20to\x20read\x20logs:','level','trim','开始执行:\x20','error','logTask','green','writeFileSync','2161080mpZyvN','message','275Eyaygn','12HJjiZR','149636hdXyUT','format','mkdirSync','red','.lovrabet.log','File','blue','timestamp','duration','info','toISOString','yellow','setLogPath','900221CdXSCC','printf','join','Failed\x20to\x20clear\x20logs:','details','warn','714477JWUkkU','success','6FidRPz','filter','clearLogs','882864ADRegV','winstonLogger','addColors','utf8','2mgVRUd','existsSync','getWinstonInstance','rawCommand','logFilePath','readFileSync'];a199_0x3032=function(){return _0x2dedd0;};return a199_0x3032();}
@@ -1 +1 @@
1
- (function(_0xec406,_0x46fc33){const _0x21f2c2=a200_0x548a,_0x31f735=_0xec406();while(!![]){try{const _0x35f507=-parseInt(_0x21f2c2(0x14e))/0x1*(parseInt(_0x21f2c2(0x14f))/0x2)+parseInt(_0x21f2c2(0x14c))/0x3*(-parseInt(_0x21f2c2(0x148))/0x4)+-parseInt(_0x21f2c2(0x14d))/0x5+parseInt(_0x21f2c2(0x146))/0x6*(-parseInt(_0x21f2c2(0x14b))/0x7)+parseInt(_0x21f2c2(0x151))/0x8*(parseInt(_0x21f2c2(0x150))/0x9)+-parseInt(_0x21f2c2(0x149))/0xa+parseInt(_0x21f2c2(0x147))/0xb*(parseInt(_0x21f2c2(0x145))/0xc);if(_0x35f507===_0x46fc33)break;else _0x31f735['push'](_0x31f735['shift']());}catch(_0x108f64){_0x31f735['push'](_0x31f735['shift']());}}}(a200_0x33fe,0xf0dfd));function a200_0x33fe(){const _0x1c9ba5=['63nxCiUA','937064jhhFiT','validation','Invalid\x20JSON\x20for\x20--params:\x20','--params\x20must\x20be\x20a\x20JSON\x20object','138612xplmgb','2600196xnuHha','7722wZfbAK','3885616MrwkWL','16258140jQDWob','object','28NHHIUh','6HlSzdF','5469825KIHrOJ','140551kSizad','22JZceUT'];a200_0x33fe=function(){return _0x1c9ba5;};return a200_0x33fe();}function a200_0x548a(_0x13e9bc,_0x275e96){_0x13e9bc=_0x13e9bc-0x145;const _0x33fe24=a200_0x33fe();let _0x548a96=_0x33fe24[_0x13e9bc];return _0x548a96;}import{CliErrors}from'../errors.js';export function parseJsonParams(_0x4c18ef){const _0x5aaa66=a200_0x548a;if(!_0x4c18ef)return undefined;let _0xbc3dfb;try{_0xbc3dfb=JSON['parse'](_0x4c18ef);}catch{throw CliErrors[_0x5aaa66(0x152)](_0x5aaa66(0x153)+_0x4c18ef);}if(!_0xbc3dfb||typeof _0xbc3dfb!==_0x5aaa66(0x14a)||Array['isArray'](_0xbc3dfb))throw CliErrors['validation'](_0x5aaa66(0x154),'Example:\x20--params\x20\x27{\x22id\x22:123}\x27');return _0xbc3dfb;}
1
+ function a200_0x5bc9(_0x282688,_0x1b08bf){_0x282688=_0x282688-0x13d;const _0x127cfd=a200_0x127c();let _0x5bc92d=_0x127cfd[_0x282688];return _0x5bc92d;}(function(_0x5899c6,_0x1b887e){const _0x2475ef=a200_0x5bc9,_0x473aed=_0x5899c6();while(!![]){try{const _0x14e074=parseInt(_0x2475ef(0x146))/0x1+-parseInt(_0x2475ef(0x149))/0x2+-parseInt(_0x2475ef(0x145))/0x3+parseInt(_0x2475ef(0x14c))/0x4*(parseInt(_0x2475ef(0x144))/0x5)+-parseInt(_0x2475ef(0x147))/0x6*(-parseInt(_0x2475ef(0x13e))/0x7)+parseInt(_0x2475ef(0x13d))/0x8+parseInt(_0x2475ef(0x148))/0x9*(-parseInt(_0x2475ef(0x14a))/0xa);if(_0x14e074===_0x1b887e)break;else _0x473aed['push'](_0x473aed['shift']());}catch(_0x4bd68f){_0x473aed['push'](_0x473aed['shift']());}}}(a200_0x127c,0x28b40));import{CliErrors}from'../errors.js';function a200_0x127c(){const _0x671e07=['validation','4yubcgL','1932168XMlRjb','9814XfFaCd','object','isArray','Example:\x20--params\x20\x27{\x22id\x22:123}\x27','--params\x20must\x20be\x20a\x20JSON\x20object','parse','1289665oqHJgT','846645TUbYvq','6990YTWyue','18UJOJKu','386658Phtsxw','37506nAhWmF','10PJwYxn'];a200_0x127c=function(){return _0x671e07;};return a200_0x127c();}export function parseJsonParams(_0x5dc9a4){const _0x1b83d5=a200_0x5bc9;if(!_0x5dc9a4)return undefined;let _0x4e5741;try{_0x4e5741=JSON[_0x1b83d5(0x143)](_0x5dc9a4);}catch{throw CliErrors['validation']('Invalid\x20JSON\x20for\x20--params:\x20'+_0x5dc9a4);}if(!_0x4e5741||typeof _0x4e5741!==_0x1b83d5(0x13f)||Array[_0x1b83d5(0x140)](_0x4e5741))throw CliErrors[_0x1b83d5(0x14b)](_0x1b83d5(0x142),_0x1b83d5(0x141));return _0x4e5741;}
@@ -1 +1 @@
1
- function a201_0x24d9(){const _0x36f8a7=['2005997TDUHgu','9531144cTOOsS','1154100zuaUqE','90VNhmFR','287217mzSLYy','2054968HvJOxR','14218hSilNe','platform','5KDFRQd','.cmd','1620464lHmscI'];a201_0x24d9=function(){return _0x36f8a7;};return a201_0x24d9();}function a201_0x7cce(_0x3f3cfc,_0x5a221c){_0x3f3cfc=_0x3f3cfc-0x1b3;const _0x24d975=a201_0x24d9();let _0x7ccebf=_0x24d975[_0x3f3cfc];return _0x7ccebf;}const a201_0x556f0d=a201_0x7cce;(function(_0xdfac5,_0x1ace2f){const _0x20c7e9=a201_0x7cce,_0x421af0=_0xdfac5();while(!![]){try{const _0x5207d2=-parseInt(_0x20c7e9(0x1b7))/0x1+parseInt(_0x20c7e9(0x1b9))/0x2*(-parseInt(_0x20c7e9(0x1b6))/0x3)+parseInt(_0x20c7e9(0x1bd))/0x4*(parseInt(_0x20c7e9(0x1bb))/0x5)+-parseInt(_0x20c7e9(0x1b5))/0x6+-parseInt(_0x20c7e9(0x1b3))/0x7+-parseInt(_0x20c7e9(0x1b8))/0x8+parseInt(_0x20c7e9(0x1b4))/0x9;if(_0x5207d2===_0x1ace2f)break;else _0x421af0['push'](_0x421af0['shift']());}catch(_0xd3fa24){_0x421af0['push'](_0x421af0['shift']());}}}(a201_0x24d9,0x37a0d));export const isWindows=process[a201_0x556f0d(0x1ba)]==='win32';export function resolveNpmBin(_0x491f89){const _0x4fa5cf=a201_0x556f0d;return isWindows?_0x491f89+_0x4fa5cf(0x1bc):_0x491f89;}
1
+ function a201_0x2df2(_0x4e40ed,_0x4b0d8d){_0x4e40ed=_0x4e40ed-0x97;const _0x11f1a5=a201_0x11f1();let _0x2df245=_0x11f1a5[_0x4e40ed];return _0x2df245;}const a201_0x34ae98=a201_0x2df2;function a201_0x11f1(){const _0x149d9e=['1868298zOVQef','2331816klGxfx','90teJGxW','3503340pToQuD','.cmd','platform','681522CEhmkD','102436FrKSwW','9vUDEfb','152940lZHjTY','1565690enkiGk','12PnBfRB'];a201_0x11f1=function(){return _0x149d9e;};return a201_0x11f1();}(function(_0xe73adc,_0x188ef5){const _0x38e949=a201_0x2df2,_0x236b85=_0xe73adc();while(!![]){try{const _0x234098=parseInt(_0x38e949(0x9a))/0x1+parseInt(_0x38e949(0x9f))/0x2*(-parseInt(_0x38e949(0x9d))/0x3)+parseInt(_0x38e949(0x9b))/0x4*(parseInt(_0x38e949(0xa2))/0x5)+-parseInt(_0x38e949(0xa0))/0x6+-parseInt(_0x38e949(0x9e))/0x7+parseInt(_0x38e949(0xa1))/0x8*(-parseInt(_0x38e949(0x9c))/0x9)+parseInt(_0x38e949(0x97))/0xa;if(_0x234098===_0x188ef5)break;else _0x236b85['push'](_0x236b85['shift']());}catch(_0x8d1ac0){_0x236b85['push'](_0x236b85['shift']());}}}(a201_0x11f1,0x57fd8));export const isWindows=process[a201_0x34ae98(0x99)]==='win32';export function resolveNpmBin(_0x3a2969){const _0x301ca5=a201_0x34ae98;return isWindows?_0x3a2969+_0x301ca5(0x98):_0x3a2969;}
@@ -1 +1 @@
1
- (function(_0x539367,_0x68e9c4){const _0xb5d71f=a202_0x4537,_0x881251=_0x539367();while(!![]){try{const _0x2178e9=-parseInt(_0xb5d71f(0xf6))/0x1*(parseInt(_0xb5d71f(0xed))/0x2)+parseInt(_0xb5d71f(0xea))/0x3+parseInt(_0xb5d71f(0xf2))/0x4*(parseInt(_0xb5d71f(0xe9))/0x5)+-parseInt(_0xb5d71f(0xef))/0x6+-parseInt(_0xb5d71f(0xf4))/0x7+-parseInt(_0xb5d71f(0xee))/0x8+parseInt(_0xb5d71f(0xec))/0x9*(parseInt(_0xb5d71f(0xf3))/0xa);if(_0x2178e9===_0x68e9c4)break;else _0x881251['push'](_0x881251['shift']());}catch(_0x5276fe){_0x881251['push'](_0x881251['shift']());}}}(a202_0x1c9e,0x24383));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 _0x5d84f7=getTemplateBaseUrl();return _0x5d84f7+'/rules/rules.json';}const LOCAL_TEMPLATE_PATH=resolve(__dirname,'../../templates/rules/lovrabet_rules.mdc.tpl');export async function fetchRulesFromCDN(){const _0x4bb2b4=a202_0x4537,_0x335484=getRulesCdnUrl(),_0x39c957=await fetch(_0x335484,{'headers':{'Accept':_0x4bb2b4(0xf8)}});if(!_0x39c957['ok'])throw new Error(_0x4bb2b4(0xe8)+_0x39c957['status']+'\x20'+_0x39c957[_0x4bb2b4(0xf7)]);const _0x1a82b0=await _0x39c957[_0x4bb2b4(0xfa)]();if(!_0x1a82b0[_0x4bb2b4(0xe6)]||typeof _0x1a82b0['content']!==_0x4bb2b4(0xf5))throw new Error(_0x4bb2b4(0xeb));return _0x1a82b0;}function a202_0x4537(_0x460d90,_0x2a9788){_0x460d90=_0x460d90-0xe6;const _0x1c9e5e=a202_0x1c9e();let _0x4537b9=_0x1c9e5e[_0x460d90];return _0x4537b9;}export async function getRulesContent(){const _0x17d593=a202_0x4537;try{const _0x545e4b=await fetchRulesFromCDN();return _0x545e4b[_0x17d593(0xe6)];}catch{return readLocalTemplate();}}export function readLocalTemplate(){const _0x42b6ff=a202_0x4537;if(existsSync(LOCAL_TEMPLATE_PATH))return readFileSync(LOCAL_TEMPLATE_PATH,_0x42b6ff(0xf0));throw new Error(_0x42b6ff(0xfd)+LOCAL_TEMPLATE_PATH);}export async function writeRulesFile(_0x24c872){const _0x53e7c4=a202_0x4537,_0x1dcd53=await fetchRulesFromCDN()[_0x53e7c4(0xfc)](()=>null);let _0x388f3e;_0x1dcd53?(_0x388f3e=_0x1dcd53[_0x53e7c4(0xe6)],_0x1dcd53[_0x53e7c4(0xf9)]&&(_0x388f3e=appendUpdateTime(_0x388f3e,_0x1dcd53[_0x53e7c4(0xf9)]))):_0x388f3e=readLocalTemplate();const _0x597a7f=dirname(_0x24c872);!existsSync(_0x597a7f)&&mkdirSync(_0x597a7f,{'recursive':!![]}),writeFileSync(_0x24c872,_0x388f3e,_0x53e7c4(0xf0));}export async function copyRulesToCursor(_0x3ccd62){const _0xd2e1bb=a202_0x4537,_0x1b6de2=join(_0x3ccd62,_0xd2e1bb(0xf1)),_0x35225f=join(_0x1b6de2,_0xd2e1bb(0xfb));if(existsSync(_0x35225f))return![];return await writeRulesFile(_0x35225f),!![];}export async function copyRulesToAgentsMd(_0xe348ee){const _0x375ef5=a202_0x4537,_0x3cd9fe=join(_0xe348ee,_0x375ef5(0xe7));if(existsSync(_0x3cd9fe))return![];return await writeRulesFile(_0x3cd9fe),!![];}function a202_0x1c9e(){const _0x1c9f8d=['catch','本地模板文件不存在:\x20','content','agents.md','CDN\x20请求失败:\x20','15rQofik','172581OdvTiL','CDN\x20返回数据格式错误','601974tJwBSc','8278FqECQx','2057160jQHCjY','1070478vnrMXZ','utf-8','.cursor/rules','316268trgRaG','100etEfyb','1411886YXUECw','string','43HUbgJb','statusText','application/json','lastUpdated','json','lovrabet_rules.mdc'];a202_0x1c9e=function(){return _0x1c9f8d;};return a202_0x1c9e();}
1
+ function a202_0x2879(){const _0x33aa87=['932QSFFsr','utf-8','catch','1816skPGBS','3018665PzLfxI','CDN\x20返回数据格式错误','content','CDN\x20请求失败:\x20','834084gOhXaH','6SHdfKH','lastUpdated','string','97972UDqvTK','json','3237TUDBzn','../../templates/rules/lovrabet_rules.mdc.tpl','status','agents.md','303468kwqHFH','3299850ABdlrJ','24498nIDVjt'];a202_0x2879=function(){return _0x33aa87;};return a202_0x2879();}const a202_0x21f542=a202_0x39c4;(function(_0x15192d,_0x5be187){const _0x248324=a202_0x39c4,_0xd5c64d=_0x15192d();while(!![]){try{const _0x407acc=parseInt(_0x248324(0xd5))/0x1+-parseInt(_0x248324(0xd8))/0x2*(parseInt(_0x248324(0xe6))/0x3)+parseInt(_0x248324(0xe0))/0x4+parseInt(_0x248324(0xdc))/0x5*(-parseInt(_0x248324(0xe1))/0x6)+-parseInt(_0x248324(0xe4))/0x7+-parseInt(_0x248324(0xdb))/0x8*(-parseInt(_0x248324(0xd7))/0x9)+parseInt(_0x248324(0xd6))/0xa;if(_0x407acc===_0x5be187)break;else _0xd5c64d['push'](_0xd5c64d['shift']());}catch(_0x97f68a){_0xd5c64d['push'](_0xd5c64d['shift']());}}}(a202_0x2879,0x52d7d));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 a202_0x39c4(_0x224ac4,_0x229aae){_0x224ac4=_0x224ac4-0xd5;const _0x28793c=a202_0x2879();let _0x39c40a=_0x28793c[_0x224ac4];return _0x39c40a;}const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);function getRulesCdnUrl(){const _0x33c7fa=getTemplateBaseUrl();return _0x33c7fa+'/rules/rules.json';}const LOCAL_TEMPLATE_PATH=resolve(__dirname,a202_0x21f542(0xe7));export async function fetchRulesFromCDN(){const _0x53a1f7=a202_0x21f542,_0x13f78f=getRulesCdnUrl(),_0x18e10e=await fetch(_0x13f78f,{'headers':{'Accept':'application/json'}});if(!_0x18e10e['ok'])throw new Error(_0x53a1f7(0xdf)+_0x18e10e[_0x53a1f7(0xe8)]+'\x20'+_0x18e10e['statusText']);const _0x3dcc86=await _0x18e10e[_0x53a1f7(0xe5)]();if(!_0x3dcc86[_0x53a1f7(0xde)]||typeof _0x3dcc86[_0x53a1f7(0xde)]!==_0x53a1f7(0xe3))throw new Error(_0x53a1f7(0xdd));return _0x3dcc86;}export async function getRulesContent(){const _0x1be869=a202_0x21f542;try{const _0x1a90e7=await fetchRulesFromCDN();return _0x1a90e7[_0x1be869(0xde)];}catch{return readLocalTemplate();}}export function readLocalTemplate(){const _0x55ade1=a202_0x21f542;if(existsSync(LOCAL_TEMPLATE_PATH))return readFileSync(LOCAL_TEMPLATE_PATH,_0x55ade1(0xd9));throw new Error('本地模板文件不存在:\x20'+LOCAL_TEMPLATE_PATH);}export async function writeRulesFile(_0x2f24f2){const _0x54a5f7=a202_0x21f542,_0x3cc50d=await fetchRulesFromCDN()[_0x54a5f7(0xda)](()=>null);let _0x4038d0;_0x3cc50d?(_0x4038d0=_0x3cc50d[_0x54a5f7(0xde)],_0x3cc50d['lastUpdated']&&(_0x4038d0=appendUpdateTime(_0x4038d0,_0x3cc50d[_0x54a5f7(0xe2)]))):_0x4038d0=readLocalTemplate();const _0x4111d8=dirname(_0x2f24f2);!existsSync(_0x4111d8)&&mkdirSync(_0x4111d8,{'recursive':!![]}),writeFileSync(_0x2f24f2,_0x4038d0,_0x54a5f7(0xd9));}export async function copyRulesToCursor(_0x2086d7){const _0x27f750=join(_0x2086d7,'.cursor/rules'),_0x390732=join(_0x27f750,'lovrabet_rules.mdc');if(existsSync(_0x390732))return![];return await writeRulesFile(_0x390732),!![];}export async function copyRulesToAgentsMd(_0xa7301a){const _0xbed2d6=a202_0x21f542,_0x2c8258=join(_0xa7301a,_0xbed2d6(0xe9));if(existsSync(_0x2c8258))return![];return await writeRulesFile(_0x2c8258),!![];}
@@ -1 +1 @@
1
- export function sleep(_0x4ca4d0){return new Promise(_0x5a7d0b=>setTimeout(_0x5a7d0b,_0x4ca4d0));}
1
+ export function sleep(_0x531741){return new Promise(_0x418371=>setTimeout(_0x418371,_0x531741));}
@@ -1 +1 @@
1
- const a204_0x7007f8=a204_0x4952;(function(_0x282cf2,_0x1adac0){const _0x1089a9=a204_0x4952,_0x35e0ee=_0x282cf2();while(!![]){try{const _0x1a2f8e=parseInt(_0x1089a9(0x203))/0x1*(-parseInt(_0x1089a9(0x205))/0x2)+parseInt(_0x1089a9(0x1fa))/0x3+-parseInt(_0x1089a9(0x222))/0x4+parseInt(_0x1089a9(0x21e))/0x5+parseInt(_0x1089a9(0x1fd))/0x6*(-parseInt(_0x1089a9(0x213))/0x7)+-parseInt(_0x1089a9(0x20d))/0x8+-parseInt(_0x1089a9(0x218))/0x9*(parseInt(_0x1089a9(0x1f3))/0xa);if(_0x1a2f8e===_0x1adac0)break;else _0x35e0ee['push'](_0x35e0ee['shift']());}catch(_0x5f06b8){_0x35e0ee['push'](_0x35e0ee['shift']());}}}(a204_0x3450,0x2e1a3));import a204_0x32a007 from'node:fs';import a204_0x3e142b from'node:path';function a204_0x3450(){const _0x24745f=['alias','\x20},','1NEGatv','getSeconds','397588qLBzmW','.tpl','datasetCode','extname','getMonth','.scss','LOVRABET','split','95936UXxShm','isDirectory','.tsx','endsWith','getFullYear','模板内容替换失败','217QvheyU','replaceApiContent','join','success','开始处理模板内容替换','9eDNeDj','message','push','promises','api','now','1159640lZnWHt','info','tableName','getDate','147564bloqwh','name','.css','getHours','.json','toISOString','default','slice','utf8','template','processTemplate','pop','toUpperCase','map','.ts','processDirectory','toLowerCase','formatLocalTimestamp','pad','1312810qViiFn','charAt','YourModel','模板内容替换完成','mkdir','isFile','writeFile','1023684LiGnsi','replace','copyFile','1038LQdsEf','\x0a\x20\x20\x20\x20{\x20','toDisplayTitle','tableName:\x20\x22'];a204_0x3450=function(){return _0x24745f;};return a204_0x3450();}function a204_0x4952(_0x1dd3b2,_0x37d8b7){_0x1dd3b2=_0x1dd3b2-0x1e9;const _0x3450a2=a204_0x3450();let _0x495291=_0x3450a2[_0x1dd3b2];return _0x495291;}import{logger}from'../utils/logger.js';import{getCliVersion}from'../utils/version.js';const CLI_VERSION=getCliVersion();export class TemplateReplacer{static[a204_0x7007f8(0x1f2)](_0x28825a){return String(_0x28825a)['padStart'](0x2,'0');}static[a204_0x7007f8(0x1f1)](_0x153cf4){const _0x596771=a204_0x7007f8,_0x1b9860=_0x153cf4[_0x596771(0x211)](),_0x211ec8=this[_0x596771(0x1f2)](_0x153cf4[_0x596771(0x209)]()+0x1),_0x3bb276=this[_0x596771(0x1f2)](_0x153cf4[_0x596771(0x221)]()),_0x3336fe=this[_0x596771(0x1f2)](_0x153cf4[_0x596771(0x225)]()),_0x3a8cb8=this[_0x596771(0x1f2)](_0x153cf4['getMinutes']()),_0x250ba3=this[_0x596771(0x1f2)](_0x153cf4[_0x596771(0x204)]());return{'createdAt':_0x1b9860+'-'+_0x211ec8+'-'+_0x3bb276+'\x20'+_0x3336fe+':'+_0x3a8cb8+':'+_0x250ba3,'createdDate':_0x1b9860+'-'+_0x211ec8+'-'+_0x3bb276,'createdTime':_0x3336fe+':'+_0x3a8cb8+':'+_0x250ba3};}static['toComponentName'](_0x3c64d0){const _0x2b1c1a=a204_0x7007f8,_0x273d79=_0x3c64d0[_0x2b1c1a(0x20c)]('/')[_0x2b1c1a(0x1eb)]()||_0x3c64d0;return _0x273d79[_0x2b1c1a(0x20c)]('-')[_0x2b1c1a(0x1ed)](_0x6c5dd7=>_0x6c5dd7[_0x2b1c1a(0x1f4)](0x0)[_0x2b1c1a(0x1ec)]()+_0x6c5dd7[_0x2b1c1a(0x229)](0x1)['toLowerCase']())[_0x2b1c1a(0x215)]('');}static['toDisplayTitle'](_0x5728d2){const _0x3f9e2b=a204_0x7007f8,_0x661e2d=_0x5728d2[_0x3f9e2b(0x20c)]('/')['pop']()||_0x5728d2;return _0x661e2d['split']('-')[_0x3f9e2b(0x1ed)](_0x16bcab=>_0x16bcab[_0x3f9e2b(0x1f4)](0x0)['toUpperCase']()+_0x16bcab[_0x3f9e2b(0x229)](0x1)[_0x3f9e2b(0x1f0)]())['join']('\x20');}static['replaceContent'](_0x1b902f,_0x37ddf0,_0x3fcee4){const _0x9ee92=a204_0x7007f8,_0x831653=this['toComponentName'](_0x37ddf0),_0x389640=this[_0x9ee92(0x1ff)](_0x37ddf0),{createdAt:_0x209368,createdDate:_0x4268e4,createdTime:_0x52528c}=this[_0x9ee92(0x1f1)](new Date());let _0x1c1c6e=_0x1b902f[_0x9ee92(0x1fb)](/\{CliVersion\}/g,CLI_VERSION)[_0x9ee92(0x1fb)](/\{ComponentName\}/g,_0x831653)[_0x9ee92(0x1fb)](/\{DisplayTitle\}/g,_0x389640)[_0x9ee92(0x1fb)](/\{PageName\}/g,_0x37ddf0)[_0x9ee92(0x1fb)](/\{TemplateName\}/g,_0x3fcee4)[_0x9ee92(0x1fb)](/\{CreatedAt\}/g,_0x209368)[_0x9ee92(0x1fb)](/\{CreatedDate\}/g,_0x4268e4)[_0x9ee92(0x1fb)](/\{CreatedTime\}/g,_0x52528c);return _0x1c1c6e;}static[a204_0x7007f8(0x214)](_0x160c11,_0x310c18,_0xe18c3c,_0x577eb4,_0x4244b1,_0x284e38,_0x1aa5b2,_0x17b498){const _0x456460=a204_0x7007f8,_0x59eb1d=new Date(),_0x2f006e=_0x59eb1d[_0x456460(0x227)](),_0x5caaa2=_0xe18c3c[_0x456460(0x1ed)](_0x418b3a=>{const _0x10ec3a=_0x456460,_0x2168c8=['datasetCode:\x20\x22'+_0x418b3a[_0x10ec3a(0x207)]+'\x22',_0x10ec3a(0x200)+_0x418b3a[_0x10ec3a(0x220)]+'\x22','name:\x20\x22'+_0x418b3a[_0x10ec3a(0x223)]+'\x22'];return _0x418b3a[_0x10ec3a(0x201)]&&_0x2168c8[_0x10ec3a(0x21a)]('alias:\x20\x22'+_0x418b3a['alias']+'\x22'),_0x10ec3a(0x1fe)+_0x2168c8[_0x10ec3a(0x215)](',\x20')+_0x10ec3a(0x202);})[_0x456460(0x215)](''),_0x451f4f=_0x577eb4||_0xe18c3c[0x0]?.[_0x456460(0x201)]||_0x456460(0x1f5);let _0x1bd374=_0x160c11[_0x456460(0x1fb)](/\{AppCode\}/g,_0x310c18)[_0x456460(0x1fb)](/\{ModelConfigs\}/g,_0x5caaa2)[_0x456460(0x1fb)](/\{ExampleModelName\}/g,_0x451f4f)[_0x456460(0x1fb)](/\{ApiFileName\}/g,_0x4244b1||_0x456460(0x21c))[_0x456460(0x1fb)](/\{ConfigName\}/g,_0x284e38||_0x456460(0x228))[_0x456460(0x1fb)](/\{ClientConfigParam\}/g,_0x1aa5b2||'')[_0x456460(0x1fb)](/\{VarPrefix\}/g,_0x17b498||_0x456460(0x20b))[_0x456460(0x1fb)](/\{CreatedAt\}/g,_0x2f006e);return _0x1bd374;}static async[a204_0x7007f8(0x1ea)](_0x1fac9e,_0x2aaa87,_0x56c50f,_0x18975b,_0x5e0970=!![]){const _0x47194e=a204_0x7007f8,_0x4161ec=Date[_0x47194e(0x21d)]();try{_0x5e0970&&logger[_0x47194e(0x21f)](_0x47194e(0x1e9),_0x47194e(0x217),{'templatePath':_0x1fac9e,'targetPath':_0x2aaa87,'pageName':_0x56c50f,'templateName':_0x18975b});await a204_0x32a007[_0x47194e(0x21b)][_0x47194e(0x1f7)](_0x2aaa87,{'recursive':!![]}),await this['processDirectory'](_0x1fac9e,_0x2aaa87,_0x56c50f,_0x18975b);if(_0x5e0970){const _0x1c1a28=Date[_0x47194e(0x21d)]()-_0x4161ec;logger[_0x47194e(0x216)]('template',_0x47194e(0x1f6),_0x1c1a28,{'pageName':_0x56c50f,'templateName':_0x18975b});}}catch(_0x3006a7){if(_0x5e0970){const _0x28ec24=Date['now']()-_0x4161ec;logger['error'](_0x47194e(0x1e9),_0x47194e(0x212),{'templatePath':_0x1fac9e,'targetPath':_0x2aaa87,'pageName':_0x56c50f,'templateName':_0x18975b,'error':_0x3006a7 instanceof Error?_0x3006a7[_0x47194e(0x219)]:String(_0x3006a7),'duration':_0x28ec24});}throw _0x3006a7;}}static async[a204_0x7007f8(0x1ef)](_0x18b5a4,_0x4a83ae,_0x40dba1,_0x430f1d){const _0x2f5592=a204_0x7007f8,_0xb33684=await a204_0x32a007['promises']['readdir'](_0x18b5a4,{'withFileTypes':!![]});for(const _0x17a266 of _0xb33684){const _0x296177=a204_0x3e142b[_0x2f5592(0x215)](_0x18b5a4,_0x17a266[_0x2f5592(0x223)]);let _0x26295a=a204_0x3e142b['join'](_0x4a83ae,_0x17a266['name']);_0x17a266[_0x2f5592(0x223)][_0x2f5592(0x210)]('.tpl')&&(_0x26295a=a204_0x3e142b[_0x2f5592(0x215)](_0x4a83ae,_0x17a266[_0x2f5592(0x223)][_0x2f5592(0x1fb)](/\.tpl$/,'')));if(_0x17a266[_0x2f5592(0x20e)]())await a204_0x32a007[_0x2f5592(0x21b)][_0x2f5592(0x1f7)](_0x26295a,{'recursive':!![]}),await this[_0x2f5592(0x1ef)](_0x296177,_0x26295a,_0x40dba1,_0x430f1d);else _0x17a266[_0x2f5592(0x1f8)]()&&await this['processFile'](_0x296177,_0x26295a,_0x40dba1,_0x430f1d);}}static async['processFile'](_0xc2ba24,_0x145749,_0x325737,_0x4083bf){const _0x38e9a0=a204_0x7007f8,_0xae45fe=a204_0x3e142b[_0x38e9a0(0x208)](_0xc2ba24)[_0x38e9a0(0x1f0)]();_0xc2ba24[_0x38e9a0(0x210)](_0x38e9a0(0x206))&&(_0x145749=_0x145749[_0x38e9a0(0x1fb)](/\.tpl$/,''));const _0x59a3a4=[_0x38e9a0(0x20f),_0x38e9a0(0x1ee),'.jsx','.js',_0x38e9a0(0x226),'.md',_0x38e9a0(0x224),_0x38e9a0(0x20a),_0x38e9a0(0x206)];if(_0x59a3a4['includes'](_0xae45fe)||_0xc2ba24[_0x38e9a0(0x210)](_0x38e9a0(0x206))){const _0x39a491=await a204_0x32a007[_0x38e9a0(0x21b)]['readFile'](_0xc2ba24,_0x38e9a0(0x22a)),_0x2ea9cf=this['replaceContent'](_0x39a491,_0x325737,_0x4083bf);await a204_0x32a007['promises'][_0x38e9a0(0x1f9)](_0x145749,_0x2ea9cf,_0x38e9a0(0x22a));}else await a204_0x32a007[_0x38e9a0(0x21b)][_0x38e9a0(0x1fc)](_0xc2ba24,_0x145749);}}
1
+ const a204_0x2abe7c=a204_0x3c9a;(function(_0x69ce0,_0x2294fc){const _0x30bdd5=a204_0x3c9a,_0x11a650=_0x69ce0();while(!![]){try{const _0x226bd6=-parseInt(_0x30bdd5(0x1d8))/0x1+-parseInt(_0x30bdd5(0x1da))/0x2+-parseInt(_0x30bdd5(0x1eb))/0x3*(parseInt(_0x30bdd5(0x1d5))/0x4)+parseInt(_0x30bdd5(0x1e6))/0x5*(-parseInt(_0x30bdd5(0x1cd))/0x6)+parseInt(_0x30bdd5(0x1f9))/0x7*(-parseInt(_0x30bdd5(0x1e1))/0x8)+parseInt(_0x30bdd5(0x1db))/0x9*(parseInt(_0x30bdd5(0x1f4))/0xa)+parseInt(_0x30bdd5(0x1f0))/0xb;if(_0x226bd6===_0x2294fc)break;else _0x11a650['push'](_0x11a650['shift']());}catch(_0x563514){_0x11a650['push'](_0x11a650['shift']());}}}(a204_0x2ceb,0x56b03));import a204_0x319a14 from'node:fs';import a204_0x3007d5 from'node:path';function a204_0x3c9a(_0x1f366c,_0x482bf4){_0x1f366c=_0x1f366c-0x1ca;const _0x2ceb68=a204_0x2ceb();let _0x3c9a88=_0x2ceb68[_0x1f366c];return _0x3c9a88;}function a204_0x2ceb(){const _0x335080=['pop','模板内容替换完成','.css','slice','datasetCode:\x20\x22','\x0a\x20\x20\x20\x20{\x20','default','8xzHWAb','getFullYear','padStart','706202EhVwsI','charAt','802938tetDJR','336699upiFTm','.js','processTemplate','utf8','name','getDate','8QgFOCS','.scss','extname','toUpperCase','endsWith','157555BPXwOO','getSeconds','processFile','writeFile','alias:\x20\x22','474807tkrxHM','\x20},','isFile','split','now','30002599ZAbMmC','mkdir','promises','processDirectory','30EuTnFu','readFile','.ts','join','map','3232243bGufwn','.md','replace','pad','.json','tableName:\x20\x22','message','name:\x20\x22','YourModel','.tsx','formatLocalTimestamp','toLowerCase','toComponentName','success','replaceContent','toDisplayTitle','copyFile','getMinutes','toISOString','template','alias','LOVRABET','tableName','.tpl','datasetCode','114VbQDEB'];a204_0x2ceb=function(){return _0x335080;};return a204_0x2ceb();}import{logger}from'../utils/logger.js';import{getCliVersion}from'../utils/version.js';const CLI_VERSION=getCliVersion();export class TemplateReplacer{static[a204_0x2abe7c(0x1fc)](_0x192b25){const _0x2d27aa=a204_0x2abe7c;return String(_0x192b25)[_0x2d27aa(0x1d7)](0x2,'0');}static['formatLocalTimestamp'](_0x5be170){const _0x4db90b=a204_0x2abe7c,_0x39e7a2=_0x5be170[_0x4db90b(0x1d6)](),_0x367731=this[_0x4db90b(0x1fc)](_0x5be170['getMonth']()+0x1),_0x452bd1=this[_0x4db90b(0x1fc)](_0x5be170[_0x4db90b(0x1e0)]()),_0x59f5f0=this[_0x4db90b(0x1fc)](_0x5be170['getHours']()),_0x2cc7fd=this[_0x4db90b(0x1fc)](_0x5be170[_0x4db90b(0x20a)]()),_0xfb0e81=this[_0x4db90b(0x1fc)](_0x5be170[_0x4db90b(0x1e7)]());return{'createdAt':_0x39e7a2+'-'+_0x367731+'-'+_0x452bd1+'\x20'+_0x59f5f0+':'+_0x2cc7fd+':'+_0xfb0e81,'createdDate':_0x39e7a2+'-'+_0x367731+'-'+_0x452bd1,'createdTime':_0x59f5f0+':'+_0x2cc7fd+':'+_0xfb0e81};}static[a204_0x2abe7c(0x205)](_0x5a441c){const _0x337e8b=a204_0x2abe7c,_0x2a8370=_0x5a441c[_0x337e8b(0x1ee)]('/')['pop']()||_0x5a441c;return _0x2a8370[_0x337e8b(0x1ee)]('-')[_0x337e8b(0x1f8)](_0x8d5470=>_0x8d5470[_0x337e8b(0x1d9)](0x0)[_0x337e8b(0x1e4)]()+_0x8d5470[_0x337e8b(0x1d1)](0x1)[_0x337e8b(0x204)]())[_0x337e8b(0x1f7)]('');}static[a204_0x2abe7c(0x208)](_0x1d9177){const _0x4ffca9=a204_0x2abe7c,_0x43431d=_0x1d9177['split']('/')[_0x4ffca9(0x1ce)]()||_0x1d9177;return _0x43431d['split']('-')[_0x4ffca9(0x1f8)](_0x24d3ec=>_0x24d3ec[_0x4ffca9(0x1d9)](0x0)[_0x4ffca9(0x1e4)]()+_0x24d3ec[_0x4ffca9(0x1d1)](0x1)[_0x4ffca9(0x204)]())[_0x4ffca9(0x1f7)]('\x20');}static[a204_0x2abe7c(0x207)](_0x35c079,_0x56b4ab,_0x4cedff){const _0x4ba1cf=a204_0x2abe7c,_0x518dcc=this['toComponentName'](_0x56b4ab),_0x5b7e10=this[_0x4ba1cf(0x208)](_0x56b4ab),{createdAt:_0x2bb425,createdDate:_0x4cab91,createdTime:_0x3ac91e}=this[_0x4ba1cf(0x203)](new Date());let _0x3a1b2e=_0x35c079[_0x4ba1cf(0x1fb)](/\{CliVersion\}/g,CLI_VERSION)[_0x4ba1cf(0x1fb)](/\{ComponentName\}/g,_0x518dcc)['replace'](/\{DisplayTitle\}/g,_0x5b7e10)[_0x4ba1cf(0x1fb)](/\{PageName\}/g,_0x56b4ab)[_0x4ba1cf(0x1fb)](/\{TemplateName\}/g,_0x4cedff)['replace'](/\{CreatedAt\}/g,_0x2bb425)[_0x4ba1cf(0x1fb)](/\{CreatedDate\}/g,_0x4cab91)[_0x4ba1cf(0x1fb)](/\{CreatedTime\}/g,_0x3ac91e);return _0x3a1b2e;}static['replaceApiContent'](_0x2ebd6f,_0x2f9302,_0x48e640,_0x221e36,_0x5df668,_0x2ab62e,_0x5a09dd,_0x22761f){const _0x4d3a62=a204_0x2abe7c,_0x2862c0=new Date(),_0x3413a9=_0x2862c0[_0x4d3a62(0x20b)](),_0x520ba8=_0x48e640[_0x4d3a62(0x1f8)](_0x389d12=>{const _0x45bd66=_0x4d3a62,_0x1b7bf6=[_0x45bd66(0x1d2)+_0x389d12[_0x45bd66(0x1cc)]+'\x22',_0x45bd66(0x1fe)+_0x389d12[_0x45bd66(0x1ca)]+'\x22',_0x45bd66(0x200)+_0x389d12['name']+'\x22'];return _0x389d12[_0x45bd66(0x20d)]&&_0x1b7bf6['push'](_0x45bd66(0x1ea)+_0x389d12[_0x45bd66(0x20d)]+'\x22'),_0x45bd66(0x1d3)+_0x1b7bf6['join'](',\x20')+_0x45bd66(0x1ec);})['join'](''),_0x23fbbd=_0x221e36||_0x48e640[0x0]?.[_0x4d3a62(0x20d)]||_0x4d3a62(0x201);let _0x48ce9b=_0x2ebd6f[_0x4d3a62(0x1fb)](/\{AppCode\}/g,_0x2f9302)['replace'](/\{ModelConfigs\}/g,_0x520ba8)[_0x4d3a62(0x1fb)](/\{ExampleModelName\}/g,_0x23fbbd)[_0x4d3a62(0x1fb)](/\{ApiFileName\}/g,_0x5df668||'api')['replace'](/\{ConfigName\}/g,_0x2ab62e||_0x4d3a62(0x1d4))[_0x4d3a62(0x1fb)](/\{ClientConfigParam\}/g,_0x5a09dd||'')[_0x4d3a62(0x1fb)](/\{VarPrefix\}/g,_0x22761f||_0x4d3a62(0x20e))['replace'](/\{CreatedAt\}/g,_0x3413a9);return _0x48ce9b;}static async[a204_0x2abe7c(0x1dd)](_0x363778,_0x11e440,_0x53dadb,_0x28542b,_0x2fa5d3=!![]){const _0x1ed1f0=a204_0x2abe7c,_0x68d210=Date['now']();try{_0x2fa5d3&&logger['info'](_0x1ed1f0(0x20c),'开始处理模板内容替换',{'templatePath':_0x363778,'targetPath':_0x11e440,'pageName':_0x53dadb,'templateName':_0x28542b});await a204_0x319a14[_0x1ed1f0(0x1f2)][_0x1ed1f0(0x1f1)](_0x11e440,{'recursive':!![]}),await this[_0x1ed1f0(0x1f3)](_0x363778,_0x11e440,_0x53dadb,_0x28542b);if(_0x2fa5d3){const _0x48618b=Date[_0x1ed1f0(0x1ef)]()-_0x68d210;logger[_0x1ed1f0(0x206)](_0x1ed1f0(0x20c),_0x1ed1f0(0x1cf),_0x48618b,{'pageName':_0x53dadb,'templateName':_0x28542b});}}catch(_0x3d737e){if(_0x2fa5d3){const _0x2ea1fa=Date[_0x1ed1f0(0x1ef)]()-_0x68d210;logger['error']('template','模板内容替换失败',{'templatePath':_0x363778,'targetPath':_0x11e440,'pageName':_0x53dadb,'templateName':_0x28542b,'error':_0x3d737e instanceof Error?_0x3d737e[_0x1ed1f0(0x1ff)]:String(_0x3d737e),'duration':_0x2ea1fa});}throw _0x3d737e;}}static async['processDirectory'](_0x2f8041,_0x1b3b6f,_0x3c5a00,_0x26f0b5){const _0x51e30c=a204_0x2abe7c,_0x1ea58a=await a204_0x319a14[_0x51e30c(0x1f2)]['readdir'](_0x2f8041,{'withFileTypes':!![]});for(const _0x1aaab4 of _0x1ea58a){const _0x3f847d=a204_0x3007d5[_0x51e30c(0x1f7)](_0x2f8041,_0x1aaab4[_0x51e30c(0x1df)]);let _0x567135=a204_0x3007d5[_0x51e30c(0x1f7)](_0x1b3b6f,_0x1aaab4[_0x51e30c(0x1df)]);_0x1aaab4['name'][_0x51e30c(0x1e5)](_0x51e30c(0x1cb))&&(_0x567135=a204_0x3007d5['join'](_0x1b3b6f,_0x1aaab4['name'][_0x51e30c(0x1fb)](/\.tpl$/,'')));if(_0x1aaab4['isDirectory']())await a204_0x319a14[_0x51e30c(0x1f2)]['mkdir'](_0x567135,{'recursive':!![]}),await this[_0x51e30c(0x1f3)](_0x3f847d,_0x567135,_0x3c5a00,_0x26f0b5);else _0x1aaab4[_0x51e30c(0x1ed)]()&&await this[_0x51e30c(0x1e8)](_0x3f847d,_0x567135,_0x3c5a00,_0x26f0b5);}}static async[a204_0x2abe7c(0x1e8)](_0x421144,_0x2c5f9b,_0x10df15,_0x24eba0){const _0x2ff360=a204_0x2abe7c,_0x14c936=a204_0x3007d5[_0x2ff360(0x1e3)](_0x421144)[_0x2ff360(0x204)]();_0x421144['endsWith']('.tpl')&&(_0x2c5f9b=_0x2c5f9b['replace'](/\.tpl$/,''));const _0x364088=[_0x2ff360(0x202),_0x2ff360(0x1f6),'.jsx',_0x2ff360(0x1dc),_0x2ff360(0x1fd),_0x2ff360(0x1fa),_0x2ff360(0x1d0),_0x2ff360(0x1e2),'.tpl'];if(_0x364088['includes'](_0x14c936)||_0x421144['endsWith'](_0x2ff360(0x1cb))){const _0x371483=await a204_0x319a14[_0x2ff360(0x1f2)][_0x2ff360(0x1f5)](_0x421144,_0x2ff360(0x1de)),_0x325184=this['replaceContent'](_0x371483,_0x10df15,_0x24eba0);await a204_0x319a14[_0x2ff360(0x1f2)][_0x2ff360(0x1e9)](_0x2c5f9b,_0x325184,_0x2ff360(0x1de));}else await a204_0x319a14[_0x2ff360(0x1f2)][_0x2ff360(0x209)](_0x421144,_0x2c5f9b);}}
@@ -1 +1 @@
1
- (function(_0x123fcf,_0x58d005){const _0x25cc5b=a205_0x466a,_0x31cd6e=_0x123fcf();while(!![]){try{const _0x4f1e6e=-parseInt(_0x25cc5b(0xf9))/0x1+-parseInt(_0x25cc5b(0x103))/0x2*(-parseInt(_0x25cc5b(0xe9))/0x3)+parseInt(_0x25cc5b(0x100))/0x4*(-parseInt(_0x25cc5b(0xfd))/0x5)+parseInt(_0x25cc5b(0xff))/0x6+parseInt(_0x25cc5b(0xf6))/0x7+-parseInt(_0x25cc5b(0xec))/0x8+parseInt(_0x25cc5b(0xed))/0x9;if(_0x4f1e6e===_0x58d005)break;else _0x31cd6e['push'](_0x31cd6e['shift']());}catch(_0x360a84){_0x31cd6e['push'](_0x31cd6e['shift']());}}}(a205_0x3264,0xc0e31));import{mkdir,readFile,writeFile}from'node:fs/promises';import{homedir}from'node:os';import{dirname,join}from'node:path';import a205_0x292209 from'semver';function a205_0x466a(_0x36959d,_0x3b3acb){_0x36959d=_0x36959d-0xe9;const _0x3264e4=a205_0x3264();let _0x466a71=_0x3264e4[_0x36959d];return _0x466a71;}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 _0x115b95=a205_0x466a,_0x32b601=process.env.RABETBASE_NO_UPDATE_NOTICE?.[_0x115b95(0xf1)]()[_0x115b95(0xfa)]();return _0x32b601==='1'||_0x32b601==='true'||_0x32b601===_0x115b95(0xf4);}function cacheRoot(){const _0x2d7dd8=a205_0x466a;return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),_0x2d7dd8(0xef));}export function getUpdateNoticeCachePath(){const _0x5777b7=a205_0x466a;return join(cacheRoot(),'rabetbase-cli',_0x5777b7(0xfe));}async function readUpdateNoticeCache(){const _0x565b96=a205_0x466a;try{const _0x36800a=await readFile(getUpdateNoticeCachePath(),_0x565b96(0xf2)),_0x294758=JSON[_0x565b96(0xf5)](_0x36800a);if(!_0x294758||typeof _0x294758!==_0x565b96(0xeb))return{};return _0x294758;}catch{return{};}}function a205_0x3264(){const _0x25cc06=['lastNotifiedAt','\x20update','5TrsKXm','update-check.json','8913168PmXTlq','4380956HBhZop','latest','lastNotifiedVersion','8PrXBcG','stableVersion','stringify','number','923016XHAxRJ','checkedAt','object','9679352vknQHy','5132520eEfQJX','/v/','.cache','\x20available,\x20current\x20','trim','utf8','valid','yes','parse','2574873DIFOkK','https://www.npmjs.com/package/','gte','559112jqfCcc','toLowerCase'];a205_0x3264=function(){return _0x25cc06;};return a205_0x3264();}async function writeUpdateNoticeCache(_0x904293){const _0x506377=a205_0x466a;try{const _0x215f6b=getUpdateNoticeCachePath();await mkdir(dirname(_0x215f6b),{'recursive':!![]}),await writeFile(_0x215f6b,JSON[_0x506377(0x105)](_0x904293,null,0x2)+'\x0a',_0x506377(0xf2));}catch{}}function isFreshCheck(_0x732b5f,_0xd9ce25){const _0x12b8aa=a205_0x466a;return typeof _0x732b5f[_0x12b8aa(0xea)]===_0x12b8aa(0x106)&&_0xd9ce25-_0x732b5f[_0x12b8aa(0xea)]<UPDATE_CHECK_TTL_MS;}function isRecentlyNotified(_0x34e9ff,_0x17a4bd,_0x3e55d6){const _0x484f1b=a205_0x466a;return _0x34e9ff[_0x484f1b(0x102)]===_0x17a4bd&&typeof _0x34e9ff[_0x484f1b(0xfb)]===_0x484f1b(0x106)&&_0x3e55d6-_0x34e9ff[_0x484f1b(0xfb)]<UPDATE_NOTICE_TTL_MS;}export function buildNpmVersionUrl(_0x4dbacb){const _0x5875d5=a205_0x466a;return _0x5875d5(0xf7)+NPM_PACKAGE_NAME+_0x5875d5(0xee)+_0x4dbacb;}export async function resolveLatestUpdateNotice(){const _0x35069e=a205_0x466a;if(isUpdateNoticeDisabled())return null;try{const _0x2b979d=Date['now'](),_0x59f352=getCliVersion(),_0x4de73f=await readUpdateNoticeCache();let _0x191c72=isFreshCheck(_0x4de73f,_0x2b979d)?_0x4de73f[_0x35069e(0x101)]?.['trim']():undefined;if(!_0x191c72&&!isFreshCheck(_0x4de73f,_0x2b979d)){const _0x4750d5=await getCliVersionPolicy();_0x191c72=_0x4750d5?.[_0x35069e(0x104)]?.[_0x35069e(0xf1)]()||undefined,await writeUpdateNoticeCache({..._0x4de73f,'checkedAt':_0x2b979d,'latest':_0x191c72,'failed':!_0x191c72});}if(!_0x191c72||!a205_0x292209[_0x35069e(0xf3)](_0x59f352)||!a205_0x292209[_0x35069e(0xf3)](_0x191c72))return null;if(a205_0x292209[_0x35069e(0xf8)](_0x59f352,_0x191c72))return null;if(isRecentlyNotified(_0x4de73f,_0x191c72,_0x2b979d))return null;const _0x48f007=CLI_BIN_NAME+_0x35069e(0xfc);return await writeUpdateNoticeCache({..._0x4de73f,'checkedAt':isFreshCheck(_0x4de73f,_0x2b979d)?_0x4de73f[_0x35069e(0xea)]:_0x2b979d,'latest':_0x191c72,'failed':![],'lastNotifiedVersion':_0x191c72,'lastNotifiedAt':_0x2b979d}),{'command':_0x48f007,'current':_0x59f352,'latest':_0x191c72,'url':buildNpmVersionUrl(_0x191c72),'message':CLI_BIN_NAME+'\x20'+_0x191c72+_0x35069e(0xf0)+_0x59f352+',\x20run:\x20'+_0x48f007};}catch{return null;}}
1
+ (function(_0x51b011,_0x34eec0){const _0x5c5275=a205_0x23ee,_0x99a2ca=_0x51b011();while(!![]){try{const _0x33b85d=-parseInt(_0x5c5275(0x86))/0x1*(-parseInt(_0x5c5275(0x7b))/0x2)+-parseInt(_0x5c5275(0x8c))/0x3*(parseInt(_0x5c5275(0x76))/0x4)+-parseInt(_0x5c5275(0x8f))/0x5*(-parseInt(_0x5c5275(0x85))/0x6)+-parseInt(_0x5c5275(0x75))/0x7*(-parseInt(_0x5c5275(0x87))/0x8)+parseInt(_0x5c5275(0x90))/0x9*(parseInt(_0x5c5275(0x81))/0xa)+parseInt(_0x5c5275(0x8e))/0xb+-parseInt(_0x5c5275(0x7e))/0xc;if(_0x33b85d===_0x34eec0)break;else _0x99a2ca['push'](_0x99a2ca['shift']());}catch(_0x490244){_0x99a2ca['push'](_0x99a2ca['shift']());}}}(a205_0x19ee,0x4df8a));import{mkdir,readFile,writeFile}from'node:fs/promises';import{homedir}from'node:os';import{dirname,join}from'node:path';import a205_0x22ec19 from'semver';function a205_0x19ee(){const _0x5e656a=['1ADVkbP','24SFHovg','stableVersion','yes','lastNotifiedAt','latest','9XMsanW','\x20available,\x20current\x20','4766949ShHzzp','415GkZPzy','3458277HPruuU','checkedAt','rabetbase-cli','true','toLowerCase','/v/','638855oiAzXW','717252qfveND','valid','parse','trim','https://www.npmjs.com/package/','660032VvZxIi','utf8','now','8420736ztmVex','number','\x20update','10WQwHWF',',\x20run:\x20','.cache','update-check.json','9948akcnUv'];a205_0x19ee=function(){return _0x5e656a;};return a205_0x19ee();}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 _0x38c8b6=a205_0x23ee,_0x4d428b=process.env.RABETBASE_NO_UPDATE_NOTICE?.[_0x38c8b6(0x79)]()[_0x38c8b6(0x73)]();return _0x4d428b==='1'||_0x4d428b===_0x38c8b6(0x93)||_0x4d428b===_0x38c8b6(0x89);}function cacheRoot(){const _0xf97466=a205_0x23ee;return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),_0xf97466(0x83));}export function getUpdateNoticeCachePath(){const _0x300942=a205_0x23ee;return join(cacheRoot(),_0x300942(0x92),_0x300942(0x84));}async function readUpdateNoticeCache(){const _0x5b1410=a205_0x23ee;try{const _0x32eaae=await readFile(getUpdateNoticeCachePath(),_0x5b1410(0x7c)),_0x3baf0c=JSON[_0x5b1410(0x78)](_0x32eaae);if(!_0x3baf0c||typeof _0x3baf0c!=='object')return{};return _0x3baf0c;}catch{return{};}}async function writeUpdateNoticeCache(_0x5aa7e0){try{const _0xe26a27=getUpdateNoticeCachePath();await mkdir(dirname(_0xe26a27),{'recursive':!![]}),await writeFile(_0xe26a27,JSON['stringify'](_0x5aa7e0,null,0x2)+'\x0a','utf8');}catch{}}function isFreshCheck(_0x552511,_0x176ab0){const _0x195a49=a205_0x23ee;return typeof _0x552511[_0x195a49(0x91)]===_0x195a49(0x7f)&&_0x176ab0-_0x552511['checkedAt']<UPDATE_CHECK_TTL_MS;}function isRecentlyNotified(_0x3ba8a2,_0x2e3e4b,_0x6f8b78){const _0x549a27=a205_0x23ee;return _0x3ba8a2['lastNotifiedVersion']===_0x2e3e4b&&typeof _0x3ba8a2[_0x549a27(0x8a)]==='number'&&_0x6f8b78-_0x3ba8a2[_0x549a27(0x8a)]<UPDATE_NOTICE_TTL_MS;}function a205_0x23ee(_0x3c74e8,_0x351397){_0x3c74e8=_0x3c74e8-0x73;const _0x19eedb=a205_0x19ee();let _0x23eee3=_0x19eedb[_0x3c74e8];return _0x23eee3;}export function buildNpmVersionUrl(_0x436036){const _0x14173a=a205_0x23ee;return _0x14173a(0x7a)+NPM_PACKAGE_NAME+_0x14173a(0x74)+_0x436036;}export async function resolveLatestUpdateNotice(){const _0x274403=a205_0x23ee;if(isUpdateNoticeDisabled())return null;try{const _0x1d9452=Date[_0x274403(0x7d)](),_0x48a937=getCliVersion(),_0x37c13b=await readUpdateNoticeCache();let _0x2c6b29=isFreshCheck(_0x37c13b,_0x1d9452)?_0x37c13b[_0x274403(0x8b)]?.[_0x274403(0x79)]():undefined;if(!_0x2c6b29&&!isFreshCheck(_0x37c13b,_0x1d9452)){const _0x2acc41=await getCliVersionPolicy();_0x2c6b29=_0x2acc41?.[_0x274403(0x88)]?.[_0x274403(0x79)]()||undefined,await writeUpdateNoticeCache({..._0x37c13b,'checkedAt':_0x1d9452,'latest':_0x2c6b29,'failed':!_0x2c6b29});}if(!_0x2c6b29||!a205_0x22ec19[_0x274403(0x77)](_0x48a937)||!a205_0x22ec19['valid'](_0x2c6b29))return null;if(a205_0x22ec19['gte'](_0x48a937,_0x2c6b29))return null;if(isRecentlyNotified(_0x37c13b,_0x2c6b29,_0x1d9452))return null;const _0x4a980f=CLI_BIN_NAME+_0x274403(0x80);return await writeUpdateNoticeCache({..._0x37c13b,'checkedAt':isFreshCheck(_0x37c13b,_0x1d9452)?_0x37c13b[_0x274403(0x91)]:_0x1d9452,'latest':_0x2c6b29,'failed':![],'lastNotifiedVersion':_0x2c6b29,'lastNotifiedAt':_0x1d9452}),{'command':_0x4a980f,'current':_0x48a937,'latest':_0x2c6b29,'url':buildNpmVersionUrl(_0x2c6b29),'message':CLI_BIN_NAME+'\x20'+_0x2c6b29+_0x274403(0x8d)+_0x48a937+_0x274403(0x82)+_0x4a980f};}catch{return null;}}
@@ -1 +1 @@
1
- (function(_0x3946c8,_0x4b4fc7){var _0x4ca35c=a206_0xe9a8,_0x21e5be=_0x3946c8();while(!![]){try{var _0x21d8b5=parseInt(_0x4ca35c(0x1c2))/0x1*(parseInt(_0x4ca35c(0x1c4))/0x2)+parseInt(_0x4ca35c(0x1bc))/0x3+-parseInt(_0x4ca35c(0x1bd))/0x4+parseInt(_0x4ca35c(0x1c0))/0x5*(parseInt(_0x4ca35c(0x1c1))/0x6)+-parseInt(_0x4ca35c(0x1bb))/0x7*(parseInt(_0x4ca35c(0x1c5))/0x8)+-parseInt(_0x4ca35c(0x1bf))/0x9+-parseInt(_0x4ca35c(0x1be))/0xa*(-parseInt(_0x4ca35c(0x1c3))/0xb);if(_0x21d8b5===_0x4b4fc7)break;else _0x21e5be['push'](_0x21e5be['shift']());}catch(_0x4b96ba){_0x21e5be['push'](_0x21e5be['shift']());}}}(a206_0x11c6,0xbee81));function a206_0x11c6(){var _0x4ec78d=['1823396bTxuWE','281830yrluLi','124776sOJtCY','1059745zJZnkg','6QFDFKx','223547GKwqdh','297TqMiGJ','2fXHIGK','88hJQfCe','380051GJHRlh','1957356YoavAD'];a206_0x11c6=function(){return _0x4ec78d;};return a206_0x11c6();}import{VERSION}from'../generated/build-info.js';function a206_0xe9a8(_0x10aaa4,_0x5ec054){_0x10aaa4=_0x10aaa4-0x1bb;var _0x11c6a9=a206_0x11c6();var _0xe9a8b8=_0x11c6a9[_0x10aaa4];return _0xe9a8b8;}export function getCliVersion(){return VERSION;}
1
+ (function(_0x5a4438,_0x328f0d){var _0x3a42c8=a206_0x1150,_0x189260=_0x5a4438();while(!![]){try{var _0x579f75=parseInt(_0x3a42c8(0x99))/0x1+-parseInt(_0x3a42c8(0x9e))/0x2*(-parseInt(_0x3a42c8(0x9c))/0x3)+parseInt(_0x3a42c8(0x96))/0x4*(parseInt(_0x3a42c8(0x9d))/0x5)+-parseInt(_0x3a42c8(0x9a))/0x6+-parseInt(_0x3a42c8(0x9f))/0x7+parseInt(_0x3a42c8(0x98))/0x8*(-parseInt(_0x3a42c8(0xa0))/0x9)+-parseInt(_0x3a42c8(0x97))/0xa*(-parseInt(_0x3a42c8(0x9b))/0xb);if(_0x579f75===_0x328f0d)break;else _0x189260['push'](_0x189260['shift']());}catch(_0x1617d8){_0x189260['push'](_0x189260['shift']());}}}(a206_0x4736,0x2a0ed));function a206_0x1150(_0xf8b7a6,_0x142dbe){_0xf8b7a6=_0xf8b7a6-0x96;var _0x473634=a206_0x4736();var _0x11501a=_0x473634[_0xf8b7a6];return _0x11501a;}import{VERSION}from'../generated/build-info.js';export function getCliVersion(){return VERSION;}function a206_0x4736(){var _0x54e444=['40LzhofD','340xePQIc','897096fkYJvW','251898SnGOPq','1521900dmPEuE','89243FwLWqQ','1110QYipot','98385yYveyx','478qAcxlW','354270nhhHsh','27iOPQQN'];a206_0x4736=function(){return _0x54e444;};return a206_0x4736();}
@@ -1 +1 @@
1
- (function(_0x362a0b,_0xb8972a){var _0x45090e=a207_0xdb3a,_0x4efbb9=_0x362a0b();while(!![]){try{var _0x36b821=-parseInt(_0x45090e(0x199))/0x1+-parseInt(_0x45090e(0x197))/0x2*(-parseInt(_0x45090e(0x198))/0x3)+parseInt(_0x45090e(0x19d))/0x4+parseInt(_0x45090e(0x196))/0x5*(parseInt(_0x45090e(0x19a))/0x6)+-parseInt(_0x45090e(0x195))/0x7+-parseInt(_0x45090e(0x19b))/0x8+-parseInt(_0x45090e(0x19c))/0x9;if(_0x36b821===_0xb8972a)break;else _0x4efbb9['push'](_0x4efbb9['shift']());}catch(_0x325bb8){_0x4efbb9['push'](_0x4efbb9['shift']());}}}(a207_0x2d29,0x80237));function a207_0x2d29(){var _0x275dda=['533785wupMpj','15426DdCrnd','3668512eXkbLF','1192581DeGGiy','1085668VqfonH','619409LYkKGS','1565obbhoq','14ecymOb','283740UrLpQT'];a207_0x2d29=function(){return _0x275dda;};return a207_0x2d29();}function a207_0xdb3a(_0x425106,_0x480e94){_0x425106=_0x425106-0x195;var _0x2d2954=a207_0x2d29();var _0xdb3a6f=_0x2d2954[_0x425106];return _0xdb3a6f;}import{setActiveCookie,clearActiveCookie}from'../core/api-client.js';export async function withActiveCookie(_0x2f0ceb,_0x15d98a){setActiveCookie(_0x2f0ceb);try{return await _0x15d98a();}finally{clearActiveCookie();}}
1
+ (function(_0x87a62c,_0xf32509){var _0x304f36=a207_0x435b,_0x27dca4=_0x87a62c();while(!![]){try{var _0x38c834=parseInt(_0x304f36(0xf5))/0x1+parseInt(_0x304f36(0xf6))/0x2+parseInt(_0x304f36(0xf2))/0x3*(parseInt(_0x304f36(0xf3))/0x4)+parseInt(_0x304f36(0xf0))/0x5*(-parseInt(_0x304f36(0xf4))/0x6)+-parseInt(_0x304f36(0xef))/0x7+parseInt(_0x304f36(0xee))/0x8+-parseInt(_0x304f36(0xf1))/0x9;if(_0x38c834===_0xf32509)break;else _0x27dca4['push'](_0x27dca4['shift']());}catch(_0x11e29d){_0x27dca4['push'](_0x27dca4['shift']());}}}(a207_0x17d8,0x9fa4b));function a207_0x17d8(){var _0xeae803=['795AmCdQZ','3436NVFGqh','594282jIVZLC','1166426UgCSvT','276538HsdyOr','7139880EUHxno','8283541uCMYnZ','5FVCHcE','4396554qKEPlw'];a207_0x17d8=function(){return _0xeae803;};return a207_0x17d8();}function a207_0x435b(_0x156ed0,_0x5ce339){_0x156ed0=_0x156ed0-0xee;var _0x17d800=a207_0x17d8();var _0x435be5=_0x17d800[_0x156ed0];return _0x435be5;}import{setActiveCookie,clearActiveCookie}from'../core/api-client.js';export async function withActiveCookie(_0x3e7cea,_0x4c157f){setActiveCookie(_0x3e7cea);try{return await _0x4c157f();}finally{clearActiveCookie();}}
@@ -1 +1 @@
1
- function a208_0xf2db(){var _0x3ba3e9=['9DiAfAp','4284635hyZJKW','876003bHHjPe','199712QmrAdz','8GhXVuN','3823560OEAXQW','27903950WHzfFm','2006292DoZBUs','6mhShcD','9507575OQOCTP'];a208_0xf2db=function(){return _0x3ba3e9;};return a208_0xf2db();}(function(_0x446531,_0x3cb5f7){var _0x42c3da=a208_0x1058,_0x24bbf2=_0x446531();while(!![]){try{var _0x7b1ae8=-parseInt(_0x42c3da(0x194))/0x1*(-parseInt(_0x42c3da(0x195))/0x2)+parseInt(_0x42c3da(0x193))/0x3+-parseInt(_0x42c3da(0x198))/0x4+-parseInt(_0x42c3da(0x192))/0x5*(parseInt(_0x42c3da(0x199))/0x6)+-parseInt(_0x42c3da(0x19a))/0x7+-parseInt(_0x42c3da(0x196))/0x8+parseInt(_0x42c3da(0x191))/0x9*(parseInt(_0x42c3da(0x197))/0xa);if(_0x7b1ae8===_0x3cb5f7)break;else _0x24bbf2['push'](_0x24bbf2['shift']());}catch(_0x3afd18){_0x24bbf2['push'](_0x24bbf2['shift']());}}}(a208_0xf2db,0xa79ee));function a208_0x1058(_0x2e23ec,_0x197917){_0x2e23ec=_0x2e23ec-0x191;var _0xf2db58=a208_0xf2db();var _0x10587a=_0xf2db58[_0x2e23ec];return _0x10587a;}export function writeCliSideChannelLine(_0x122cb1){process['stderr']['write'](_0x122cb1+'\x0a');}
1
+ function a208_0x147b(_0x41d424,_0x5d919e){_0x41d424=_0x41d424-0x94;var _0x3d47d3=a208_0x3d47();var _0x147bd3=_0x3d47d3[_0x41d424];return _0x147bd3;}(function(_0x3f3769,_0x347c33){var _0x18fb52=a208_0x147b,_0x4057b8=_0x3f3769();while(!![]){try{var _0x4a60da=-parseInt(_0x18fb52(0x9f))/0x1*(-parseInt(_0x18fb52(0x9b))/0x2)+parseInt(_0x18fb52(0x9e))/0x3+-parseInt(_0x18fb52(0x98))/0x4+parseInt(_0x18fb52(0x99))/0x5+parseInt(_0x18fb52(0x95))/0x6*(parseInt(_0x18fb52(0x97))/0x7)+-parseInt(_0x18fb52(0x9d))/0x8+parseInt(_0x18fb52(0x96))/0x9*(-parseInt(_0x18fb52(0x94))/0xa);if(_0x4a60da===_0x347c33)break;else _0x4057b8['push'](_0x4057b8['shift']());}catch(_0x577f41){_0x4057b8['push'](_0x4057b8['shift']());}}}(a208_0x3d47,0xc1635));export function writeCliSideChannelLine(_0x55f81f){var _0x2e83cb=a208_0x147b;process[_0x2e83cb(0x9c)][_0x2e83cb(0x9a)](_0x55f81f+'\x0a');}function a208_0x3d47(){var _0x5381f9=['write','76264IRQDwZ','stderr','8490144jrfOPr','4708818rQyKgg','14FpEpGi','4169330HuRBHS','90TnaIBn','9aSEZzh','98966KTxnPY','4419676hRCvSB','5298565NktMIe'];a208_0x3d47=function(){return _0x5381f9;};return a208_0x3d47();}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lovrabet/rabetbase-cli",
3
- "version": "2.2.4-beta.2",
3
+ "version": "2.2.4-beta.4",
4
4
  "license": "SEE LICENSE IN LICENSE",
5
5
  "repository": {
6
6
  "type": "git",
@@ -56,7 +56,7 @@
56
56
  ],
57
57
  "dependencies": {
58
58
  "@inquirer/prompts": "^8.3.2",
59
- "@lovrabet/cli-framework": "1.0.3",
59
+ "@lovrabet/cli-framework": "1.0.4",
60
60
  "@lovrabet/otel-logger": "1.0.1-beta.5",
61
61
  "@opentelemetry/api": "^1.9.1",
62
62
  "chalk": "^5.6.2",
@@ -1,2 +1,2 @@
1
1
  /// <reference types="vite/client" />
2
- /// <reference types="vite-plugin-pages/client" />
2
+ /// <reference types="vite-plugin-pages/client-react" />
@@ -798,6 +798,9 @@ import {
798
798
  - **必须使用操作符**:`where: { status: { $eq: 'active' } }`,不是 `where: { status: 'active' }`
799
799
  - **参数必须是数组**:`select: ['id', 'name']`,不是 `select: 'id,name'`
800
800
 
801
+ #### Aggregate 查询
802
+ - **聚合列用 column**:`aggregate: [{ type: 'COUNT', column: 'id', alias: 'cnt' }]`,不要写旧别名 `field`
803
+
801
804
  #### SQL API
802
805
  - **使用方式**:`client.sql.execute({ sqlCode, params })` - 对象参数格式
803
806
  - **返回值检查**:应用层必须检查 `execSuccess` 状态
@@ -888,4 +891,3 @@ import {
888
891
  ---
889
892
 
890
893
  > update:2025-01-24
891
-