@lovrabet/lovrabet-cli 2.2.0 → 2.2.1-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (138) hide show
  1. package/lib/cli.js +1 -1
  2. package/lib/commands/api-doc/index.js +1 -1
  3. package/lib/commands/app/cache.js +1 -1
  4. package/lib/commands/app/definitions.js +1 -1
  5. package/lib/commands/app/eligibility.js +1 -1
  6. package/lib/commands/app/mock-loader.js +1 -1
  7. package/lib/commands/app/remote-source.js +1 -1
  8. package/lib/commands/app/shared.js +1 -1
  9. package/lib/commands/app-config/get.js +1 -1
  10. package/lib/commands/app-config/index.js +1 -1
  11. package/lib/commands/artifact/index.js +1 -1
  12. package/lib/commands/auth/device.js +1 -1
  13. package/lib/commands/auth/index.js +1 -1
  14. package/lib/commands/auth/prompt.js +1 -1
  15. package/lib/commands/bff/detail.js +1 -1
  16. package/lib/commands/bff/exec.js +1 -1
  17. package/lib/commands/bff/index.js +1 -1
  18. package/lib/commands/cli-skill/index.js +1 -1
  19. package/lib/commands/common/config-policy.js +1 -1
  20. package/lib/commands/common/constraints.js +1 -1
  21. package/lib/commands/common/flags.js +1 -1
  22. package/lib/commands/common/local-file.js +1 -1
  23. package/lib/commands/config/definitions.js +1 -1
  24. package/lib/commands/config/shared.js +1 -1
  25. package/lib/commands/data/index.js +1 -1
  26. package/lib/commands/dataset/detail.js +1 -1
  27. package/lib/commands/dataset/index.js +1 -1
  28. package/lib/commands/dataset/list.js +1 -1
  29. package/lib/commands/dataset/sdk-doc.js +1 -1
  30. package/lib/commands/doctor.js +1 -1
  31. package/lib/commands/file/index.js +1 -1
  32. package/lib/commands/init.js +1 -1
  33. package/lib/commands/kb/index.js +1 -1
  34. package/lib/commands/logs/index.js +1 -1
  35. package/lib/commands/ocr/index.js +1 -1
  36. package/lib/commands/personal-bff/index.js +1 -1
  37. package/lib/commands/registry.js +1 -1
  38. package/lib/commands/schedule/index.js +1 -1
  39. package/lib/commands/schema.js +1 -1
  40. package/lib/commands/service/dynamic.js +1 -1
  41. package/lib/commands/service/function-name-adapter.js +1 -1
  42. package/lib/commands/service/index.js +1 -1
  43. package/lib/commands/service/registry.js +1 -1
  44. package/lib/commands/skill/commands/create.js +1 -1
  45. package/lib/commands/skill/commands/diagram.js +1 -1
  46. package/lib/commands/skill/commands/install.js +1 -1
  47. package/lib/commands/skill/commands/list.js +1 -1
  48. package/lib/commands/skill/commands/push.js +1 -1
  49. package/lib/commands/skill/commands/validate.js +1 -1
  50. package/lib/commands/skill/diagram.js +1 -1
  51. package/lib/commands/skill/flags.js +1 -1
  52. package/lib/commands/skill/index.js +1 -1
  53. package/lib/commands/skill/manifest-helpers.js +1 -1
  54. package/lib/commands/skill/push-execute.js +1 -1
  55. package/lib/commands/skill/push-flow-helpers.js +1 -1
  56. package/lib/commands/skill/push-retarget.js +1 -1
  57. package/lib/commands/skill/scopes.js +1 -1
  58. package/lib/commands/skill/summary.js +1 -1
  59. package/lib/commands/skill/templates.js +1 -1
  60. package/lib/commands/skill/validate.js +1 -1
  61. package/lib/commands/sql/detail.js +1 -1
  62. package/lib/commands/sql/exec.js +1 -1
  63. package/lib/commands/sql/index.js +1 -1
  64. package/lib/commands/update.js +1 -1
  65. package/lib/commands/workspace/index.js +1 -1
  66. package/lib/config/schema.js +1 -1
  67. package/lib/constant/app.js +1 -1
  68. package/lib/constant/auth-mode.js +1 -1
  69. package/lib/constant/cli.js +1 -1
  70. package/lib/constant/defaults.js +1 -1
  71. package/lib/constant/distribution.js +1 -1
  72. package/lib/constant/domain.js +1 -1
  73. package/lib/constant/env.js +1 -1
  74. package/lib/constant/output.js +1 -1
  75. package/lib/constant/product.js +1 -1
  76. package/lib/constant/risk.js +1 -1
  77. package/lib/constant/url.js +1 -1
  78. package/lib/context.js +1 -1
  79. package/lib/core/api-client.d.ts +2 -1
  80. package/lib/core/api-client.js +1 -1
  81. package/lib/core/db-resolver.js +1 -1
  82. package/lib/core/sdk-client.js +1 -1
  83. package/lib/errors.js +1 -1
  84. package/lib/framework/build-all-flags.js +1 -1
  85. package/lib/framework/dryrun.js +1 -1
  86. package/lib/framework/flags.js +1 -1
  87. package/lib/framework/help.js +1 -1
  88. package/lib/framework/index.js +1 -1
  89. package/lib/framework/output.js +1 -1
  90. package/lib/framework/preparse.js +1 -1
  91. package/lib/framework/rate-limit.js +1 -1
  92. package/lib/framework/raw-flags.js +1 -1
  93. package/lib/framework/response.js +1 -1
  94. package/lib/framework/runner-confirmation.js +1 -1
  95. package/lib/framework/runner-error.js +1 -1
  96. package/lib/framework/runner.js +1 -1
  97. package/lib/framework/schema-export.js +1 -1
  98. package/lib/framework/service-order.js +1 -1
  99. package/lib/framework/types.js +1 -1
  100. package/lib/generated/build-info.d.ts +4 -4
  101. package/lib/generated/build-info.js +1 -1
  102. package/lib/help.js +1 -1
  103. package/lib/postinstall.js +1 -1
  104. package/lib/runtime/confirmation.js +1 -1
  105. package/lib/runtime/event.js +1 -1
  106. package/lib/runtime/index.js +1 -1
  107. package/lib/runtime/queue.js +1 -1
  108. package/lib/runtime/resolve.js +1 -1
  109. package/lib/skills/builtin-skill.js +1 -1
  110. package/lib/skills/npx-skills-add.js +1 -1
  111. package/lib/skills/runtime-skill-sync/constants.js +1 -1
  112. package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
  113. package/lib/skills/runtime-skill-sync/hashing.js +1 -1
  114. package/lib/skills/runtime-skill-sync/install-target.js +1 -1
  115. package/lib/skills/runtime-skill-sync/links.js +1 -1
  116. package/lib/skills/runtime-skill-sync/list-local.js +1 -1
  117. package/lib/skills/runtime-skill-sync/local-files.js +1 -1
  118. package/lib/skills/runtime-skill-sync/materialize.js +1 -1
  119. package/lib/skills/runtime-skill-sync/metadata.js +1 -1
  120. package/lib/skills/runtime-skill-sync/paths.js +1 -1
  121. package/lib/skills/runtime-skill-sync/push.js +1 -1
  122. package/lib/skills/runtime-skill-sync/scopes.js +1 -1
  123. package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
  124. package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
  125. package/lib/skills/runtime-skill-sync.js +1 -1
  126. package/lib/skills/skill-presence.js +1 -1
  127. package/lib/utils/apply-jq-filter.js +1 -1
  128. package/lib/utils/logger.js +1 -1
  129. package/lib/utils/lossless-json.js +1 -1
  130. package/lib/utils/params.js +1 -1
  131. package/lib/utils/platform.js +1 -1
  132. package/lib/utils/update-notice.js +1 -1
  133. package/lib/utils/version.js +1 -1
  134. package/lib/utils/write-cli-side-channel.js +1 -1
  135. package/package.json +1 -1
  136. package/skills/lovrabet/SKILL.md +4 -2
  137. package/skills/lovrabet/references/lovrabet-schedule-workflow.md +10 -4
  138. package/skills/lovrabet.manifest.json +3 -3
@@ -1 +1 @@
1
- const a127_0x31696a=a127_0x3df1;(function(_0x4f44e9,_0x2a74ff){const _0x764bf4=a127_0x3df1,_0xe0d69f=_0x4f44e9();while(!![]){try{const _0x4a3760=parseInt(_0x764bf4(0x1b2))/0x1*(parseInt(_0x764bf4(0x1d0))/0x2)+parseInt(_0x764bf4(0x1d6))/0x3*(-parseInt(_0x764bf4(0x1bc))/0x4)+-parseInt(_0x764bf4(0x1c8))/0x5*(parseInt(_0x764bf4(0x1c2))/0x6)+-parseInt(_0x764bf4(0x1d9))/0x7*(-parseInt(_0x764bf4(0x1d4))/0x8)+-parseInt(_0x764bf4(0x1ae))/0x9*(-parseInt(_0x764bf4(0x1de))/0xa)+parseInt(_0x764bf4(0x1b6))/0xb*(parseInt(_0x764bf4(0x1ad))/0xc)+-parseInt(_0x764bf4(0x1bb))/0xd;if(_0x4a3760===_0x2a74ff)break;else _0xe0d69f['push'](_0xe0d69f['shift']());}catch(_0x4b7017){_0xe0d69f['push'](_0xe0d69f['shift']());}}}(a127_0x3e1c,0x236f2));import a127_0x5b6b14 from'winston';import a127_0x4ae95d from'node:fs';function a127_0x3e1c(){const _0x35856f=['now','104855uUCkSq','readLogs','split','timestamp','toISOString','map','command','warn','93988kInbeJ','parse','red','logFilePath','16ssCzej','utf8','59739Nlychx','join','format','43141aITrdr','log','error','logFileName','info','690tyoTRG','winstonLogger','writeFileSync','Failed\x20to\x20clear\x20logs:','initWinstonLogger','Failed\x20to\x20read\x20logs:','combine','120sQxUTD','8172Ujazjh','level','Failed:\x20','logTask','2qMqIFW','green','addColors','success','99517UVmnHl','clearLogs','createLogger','dirname','setRawCommand','681759ktlnPe','4jBvtJk','rawCommand','existsSync','Completed:\x20','currentRawCommand','transports','12BjzYID','getWinstonInstance','message','yellow','blue'];a127_0x3e1c=function(){return _0x35856f;};return a127_0x3e1c();}import a127_0x3f22e2 from'node:path';import{PRODUCT_CONFIG}from'../constant/product.js';class Logger{[a127_0x31696a(0x1df)];['logFilePath']='';[a127_0x31696a(0x1c0)]='';constructor(){}[a127_0x31696a(0x1ba)](_0x13d1a3){const _0x1ba17a=a127_0x31696a;this[_0x1ba17a(0x1c0)]=_0x13d1a3;}['setLogPath'](_0x2d0727){const _0x323a2b=a127_0x31696a;this[_0x323a2b(0x1d3)]=a127_0x3f22e2[_0x323a2b(0x1d7)](_0x2d0727,PRODUCT_CONFIG[_0x323a2b(0x1dc)]),this[_0x323a2b(0x1df)]&&this[_0x323a2b(0x1df)]['clear'](),this[_0x323a2b(0x1aa)]();}[a127_0x31696a(0x1aa)](){const _0x253609=a127_0x31696a,_0x2d78dd=a127_0x3f22e2[_0x253609(0x1b9)](this[_0x253609(0x1d3)]);!a127_0x4ae95d['existsSync'](_0x2d78dd)&&a127_0x4ae95d['mkdirSync'](_0x2d78dd,{'recursive':!![]});const _0x53f6a9=a127_0x5b6b14[_0x253609(0x1d8)][_0x253609(0x1ac)](a127_0x5b6b14[_0x253609(0x1d8)][_0x253609(0x1cb)](),a127_0x5b6b14[_0x253609(0x1d8)]['errors']({'stack':!![]}),a127_0x5b6b14['format']['printf'](_0x569402=>{const _0x5a3e40=_0x253609,_0x4e76e3={'timestamp':_0x569402['timestamp']||new Date()[_0x5a3e40(0x1cc)](),'level':_0x569402[_0x5a3e40(0x1af)]||'info','command':_0x569402[_0x5a3e40(0x1ce)]||'unknown','rawCommand':_0x569402[_0x5a3e40(0x1bd)]||this['currentRawCommand']||undefined,'message':_0x569402[_0x5a3e40(0x1c4)]||'','duration':_0x569402['duration']||undefined,'details':_0x569402['details']||undefined};return JSON['stringify'](_0x4e76e3);}));this[_0x253609(0x1df)]=a127_0x5b6b14[_0x253609(0x1b8)]({'level':_0x253609(0x1dd),'format':_0x53f6a9,'transports':[new a127_0x5b6b14[(_0x253609(0x1c1))]['File']({'filename':this[_0x253609(0x1d3)],'level':_0x253609(0x1dd)})],'silent':![]}),a127_0x5b6b14[_0x253609(0x1b4)]({'success':_0x253609(0x1b3),'error':_0x253609(0x1d2),'warn':_0x253609(0x1c5),'info':_0x253609(0x1c6)});}[a127_0x31696a(0x1dd)](_0x3dee75,_0x50faf1,_0x423003){const _0x113212=a127_0x31696a;if(!this[_0x113212(0x1d3)]||!this[_0x113212(0x1df)])return;this[_0x113212(0x1df)][_0x113212(0x1dd)](_0x50faf1,{'command':_0x3dee75,'details':_0x423003});}[a127_0x31696a(0x1b5)](_0x552bd3,_0x4975cf,_0xcb014f,_0x321916){const _0x2e7302=a127_0x31696a;if(!this[_0x2e7302(0x1d3)]||!this['winstonLogger'])return;this['winstonLogger'][_0x2e7302(0x1da)](_0x2e7302(0x1dd),_0x4975cf,{'level':_0x2e7302(0x1b5),'command':_0x552bd3,'duration':_0xcb014f,'details':_0x321916});}['error'](_0x1de28c,_0x2f5f4e,_0x5cfc4c){const _0x183d3f=a127_0x31696a;if(!this[_0x183d3f(0x1d3)]||!this[_0x183d3f(0x1df)])return;this['winstonLogger']['error'](_0x2f5f4e,{'command':_0x1de28c,'details':_0x5cfc4c});}[a127_0x31696a(0x1cf)](_0x169d5a,_0xa70c24,_0x3c3219){const _0x52f85e=a127_0x31696a;if(!this[_0x52f85e(0x1d3)]||!this[_0x52f85e(0x1df)])return;this['winstonLogger'][_0x52f85e(0x1cf)](_0xa70c24,{'command':_0x169d5a,'details':_0x3c3219});}async[a127_0x31696a(0x1b1)](_0x3dae9c,_0x5acd97,_0x4e941a){const _0x5f1108=a127_0x31696a,_0x17e7f8=Date['now']();this[_0x5f1108(0x1dd)](_0x3dae9c,'Starting:\x20'+_0x5acd97);try{const _0x1a442b=await _0x4e941a(),_0x2cf3a3=Date[_0x5f1108(0x1c7)]()-_0x17e7f8;return this[_0x5f1108(0x1b5)](_0x3dae9c,_0x5f1108(0x1bf)+_0x5acd97,_0x2cf3a3),_0x1a442b;}catch(_0x255af3){const _0x19db91=Date['now']()-_0x17e7f8;this[_0x5f1108(0x1db)](_0x3dae9c,_0x5f1108(0x1b0)+_0x5acd97,{'error':_0x255af3 instanceof Error?_0x255af3[_0x5f1108(0x1c4)]:String(_0x255af3),'duration':_0x19db91});throw _0x255af3;}}[a127_0x31696a(0x1c9)](){const _0x3ea691=a127_0x31696a;try{if(!a127_0x4ae95d['existsSync'](this[_0x3ea691(0x1d3)]))return[];const _0x22a7bf=a127_0x4ae95d['readFileSync'](this['logFilePath'],_0x3ea691(0x1d5));return _0x22a7bf[_0x3ea691(0x1ca)](/\r?\n/)['filter'](_0x44a795=>_0x44a795['trim']())[_0x3ea691(0x1cd)](_0x36fab6=>JSON[_0x3ea691(0x1d1)](_0x36fab6));}catch(_0x3eb7cf){return console[_0x3ea691(0x1cf)](_0x3ea691(0x1ab),_0x3eb7cf),[];}}[a127_0x31696a(0x1b7)](){const _0x5df5ec=a127_0x31696a;try{a127_0x4ae95d[_0x5df5ec(0x1be)](this['logFilePath'])&&a127_0x4ae95d[_0x5df5ec(0x1e0)](this[_0x5df5ec(0x1d3)],'',_0x5df5ec(0x1d5));}catch(_0x21a41d){console[_0x5df5ec(0x1cf)](_0x5df5ec(0x1e1),_0x21a41d);}}[a127_0x31696a(0x1c3)](){const _0x342f32=a127_0x31696a;return this[_0x342f32(0x1df)];}}function a127_0x3df1(_0x1d0b29,_0x1d7501){_0x1d0b29=_0x1d0b29-0x1aa;const _0x3e1c3b=a127_0x3e1c();let _0x3df14f=_0x3e1c3b[_0x1d0b29];return _0x3df14f;}export const logger=new Logger();
1
+ const a127_0x19db5c=a127_0x17eb;(function(_0x5d4f58,_0x301204){const _0x39e137=a127_0x17eb,_0x5716e9=_0x5d4f58();while(!![]){try{const _0x2b60c2=-parseInt(_0x39e137(0xba))/0x1+parseInt(_0x39e137(0xef))/0x2+-parseInt(_0x39e137(0xc3))/0x3*(parseInt(_0x39e137(0xb4))/0x4)+parseInt(_0x39e137(0xde))/0x5+-parseInt(_0x39e137(0xc5))/0x6*(parseInt(_0x39e137(0xd5))/0x7)+parseInt(_0x39e137(0xc9))/0x8*(parseInt(_0x39e137(0xc1))/0x9)+parseInt(_0x39e137(0xdd))/0xa;if(_0x2b60c2===_0x301204)break;else _0x5716e9['push'](_0x5716e9['shift']());}catch(_0x29255f){_0x5716e9['push'](_0x5716e9['shift']());}}}(a127_0x191b,0x7a473));function a127_0x17eb(_0x50bc67,_0x5493d5){_0x50bc67=_0x50bc67-0xb4;const _0x191b09=a127_0x191b();let _0x17eb64=_0x191b09[_0x50bc67];return _0x17eb64;}import a127_0x1fad12 from'winston';import a127_0x4d87ab from'node:fs';import a127_0x4554b1 from'node:path';import{PRODUCT_CONFIG}from'../constant/product.js';function a127_0x191b(){const _0x21c1a2=['timestamp','existsSync','now','File','1597240rMNAHb','winstonLogger','1884BBoisL','createLogger','clearLogs','details','trim','utf8','718114YDjybe','Failed\x20to\x20read\x20logs:','currentRawCommand','Starting:\x20','toISOString','message','red','765621BMHuLk','dirname','2298AHYGTo','logTask','4213188pBzEOq','green','filter','blue','16jPNQfg','mkdirSync','error','printf','errors','map','format','Completed:\x20','level','transports','setRawCommand','command','7xzeCVq','rawCommand','initWinstonLogger','join','logFilePath','stringify','combine','warn','5717200iqkYGZ','3707355fJskLD','duration','readLogs','info','split','success','addColors','log','clear','Failed\x20to\x20clear\x20logs:','yellow','setLogPath','Failed:\x20'];a127_0x191b=function(){return _0x21c1a2;};return a127_0x191b();}class Logger{['winstonLogger'];[a127_0x19db5c(0xd9)]='';[a127_0x19db5c(0xbc)]='';constructor(){}[a127_0x19db5c(0xd3)](_0xc7eae){const _0x49c6cc=a127_0x19db5c;this[_0x49c6cc(0xbc)]=_0xc7eae;}[a127_0x19db5c(0xe9)](_0x16b1d8){const _0x2a5306=a127_0x19db5c;this[_0x2a5306(0xd9)]=a127_0x4554b1[_0x2a5306(0xd8)](_0x16b1d8,PRODUCT_CONFIG['logFileName']),this['winstonLogger']&&this[_0x2a5306(0xf0)][_0x2a5306(0xe6)](),this[_0x2a5306(0xd7)]();}[a127_0x19db5c(0xd7)](){const _0x169ef0=a127_0x19db5c,_0x59987f=a127_0x4554b1[_0x169ef0(0xc2)](this[_0x169ef0(0xd9)]);!a127_0x4d87ab[_0x169ef0(0xec)](_0x59987f)&&a127_0x4d87ab[_0x169ef0(0xca)](_0x59987f,{'recursive':!![]});const _0x468b56=a127_0x1fad12[_0x169ef0(0xcf)][_0x169ef0(0xdb)](a127_0x1fad12[_0x169ef0(0xcf)][_0x169ef0(0xeb)](),a127_0x1fad12[_0x169ef0(0xcf)][_0x169ef0(0xcd)]({'stack':!![]}),a127_0x1fad12[_0x169ef0(0xcf)][_0x169ef0(0xcc)](_0x42bc60=>{const _0x19804d=_0x169ef0,_0xaa568a={'timestamp':_0x42bc60[_0x19804d(0xeb)]||new Date()[_0x19804d(0xbe)](),'level':_0x42bc60[_0x19804d(0xd1)]||_0x19804d(0xe1),'command':_0x42bc60[_0x19804d(0xd4)]||'unknown','rawCommand':_0x42bc60[_0x19804d(0xd6)]||this[_0x19804d(0xbc)]||undefined,'message':_0x42bc60[_0x19804d(0xbf)]||'','duration':_0x42bc60[_0x19804d(0xdf)]||undefined,'details':_0x42bc60[_0x19804d(0xb7)]||undefined};return JSON[_0x19804d(0xda)](_0xaa568a);}));this['winstonLogger']=a127_0x1fad12[_0x169ef0(0xb5)]({'level':'info','format':_0x468b56,'transports':[new a127_0x1fad12[(_0x169ef0(0xd2))][(_0x169ef0(0xee))]({'filename':this[_0x169ef0(0xd9)],'level':_0x169ef0(0xe1)})],'silent':![]}),a127_0x1fad12[_0x169ef0(0xe4)]({'success':_0x169ef0(0xc6),'error':_0x169ef0(0xc0),'warn':_0x169ef0(0xe8),'info':_0x169ef0(0xc8)});}[a127_0x19db5c(0xe1)](_0x466da8,_0x2f88c1,_0xf0dffd){const _0x29fd1d=a127_0x19db5c;if(!this[_0x29fd1d(0xd9)]||!this[_0x29fd1d(0xf0)])return;this['winstonLogger'][_0x29fd1d(0xe1)](_0x2f88c1,{'command':_0x466da8,'details':_0xf0dffd});}[a127_0x19db5c(0xe3)](_0x3b45b0,_0x22030c,_0x318b00,_0xa94edb){const _0xab9d9e=a127_0x19db5c;if(!this['logFilePath']||!this[_0xab9d9e(0xf0)])return;this[_0xab9d9e(0xf0)][_0xab9d9e(0xe5)](_0xab9d9e(0xe1),_0x22030c,{'level':_0xab9d9e(0xe3),'command':_0x3b45b0,'duration':_0x318b00,'details':_0xa94edb});}[a127_0x19db5c(0xcb)](_0x27b7bf,_0x3fdc72,_0x3111d9){const _0x1cae8a=a127_0x19db5c;if(!this['logFilePath']||!this[_0x1cae8a(0xf0)])return;this[_0x1cae8a(0xf0)]['error'](_0x3fdc72,{'command':_0x27b7bf,'details':_0x3111d9});}[a127_0x19db5c(0xdc)](_0x14e451,_0x5bca70,_0x3c386b){const _0x5e35ff=a127_0x19db5c;if(!this['logFilePath']||!this[_0x5e35ff(0xf0)])return;this[_0x5e35ff(0xf0)][_0x5e35ff(0xdc)](_0x5bca70,{'command':_0x14e451,'details':_0x3c386b});}async[a127_0x19db5c(0xc4)](_0x26de5a,_0x2ea398,_0x5a65f3){const _0x408de2=a127_0x19db5c,_0x20babc=Date[_0x408de2(0xed)]();this[_0x408de2(0xe1)](_0x26de5a,_0x408de2(0xbd)+_0x2ea398);try{const _0x5cbbda=await _0x5a65f3(),_0x439ac3=Date[_0x408de2(0xed)]()-_0x20babc;return this['success'](_0x26de5a,_0x408de2(0xd0)+_0x2ea398,_0x439ac3),_0x5cbbda;}catch(_0x57a437){const _0x43702a=Date[_0x408de2(0xed)]()-_0x20babc;this[_0x408de2(0xcb)](_0x26de5a,_0x408de2(0xea)+_0x2ea398,{'error':_0x57a437 instanceof Error?_0x57a437['message']:String(_0x57a437),'duration':_0x43702a});throw _0x57a437;}}[a127_0x19db5c(0xe0)](){const _0x571910=a127_0x19db5c;try{if(!a127_0x4d87ab[_0x571910(0xec)](this[_0x571910(0xd9)]))return[];const _0x461858=a127_0x4d87ab['readFileSync'](this[_0x571910(0xd9)],_0x571910(0xb9));return _0x461858[_0x571910(0xe2)](/\r?\n/)[_0x571910(0xc7)](_0x56022c=>_0x56022c[_0x571910(0xb8)]())[_0x571910(0xce)](_0x191132=>JSON['parse'](_0x191132));}catch(_0x84aa30){return console[_0x571910(0xdc)](_0x571910(0xbb),_0x84aa30),[];}}[a127_0x19db5c(0xb6)](){const _0x1544ea=a127_0x19db5c;try{a127_0x4d87ab[_0x1544ea(0xec)](this[_0x1544ea(0xd9)])&&a127_0x4d87ab['writeFileSync'](this[_0x1544ea(0xd9)],'',_0x1544ea(0xb9));}catch(_0xa618fa){console[_0x1544ea(0xdc)](_0x1544ea(0xe7),_0xa618fa);}}['getWinstonInstance'](){return this['winstonLogger'];}}export const logger=new Logger();
@@ -1 +1 @@
1
- function a128_0x36f0(){const _0x19b713=['30oClLxD','24822JUmPXL','103nfHOog','5159759EUBEhG','defineProperty','1190532TkdzjR','3725420EmRMhX','slice','text','includes','50dsEaAy','4390uffHEF','4200732NPhOkL','24YsoiOu','prototype','json','6672980AfGhnX','MIN_SAFE_INTEGER','MAX_SAFE_INTEGER','exec','length'];a128_0x36f0=function(){return _0x19b713;};return a128_0x36f0();}const a128_0x574016=a128_0x5578;(function(_0x4550c4,_0x4d09a7){const _0x2037a6=a128_0x5578,_0x1209bc=_0x4550c4();while(!![]){try{const _0x4757d8=-parseInt(_0x2037a6(0x122))/0x1*(-parseInt(_0x2037a6(0x12b))/0x2)+parseInt(_0x2037a6(0x12c))/0x3+parseInt(_0x2037a6(0x126))/0x4+parseInt(_0x2037a6(0x130))/0x5+-parseInt(_0x2037a6(0x120))/0x6*(parseInt(_0x2037a6(0x125))/0x7)+parseInt(_0x2037a6(0x12d))/0x8*(parseInt(_0x2037a6(0x121))/0x9)+-parseInt(_0x2037a6(0x12a))/0xa*(parseInt(_0x2037a6(0x123))/0xb);if(_0x4757d8===_0x4d09a7)break;else _0x1209bc['push'](_0x1209bc['shift']());}catch(_0x327e9a){_0x1209bc['push'](_0x1209bc['shift']());}}}(a128_0x36f0,0xac13d));const JSON_NUMBER_PATTERN=/^-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?/,MAX_SAFE_INTEGER=BigInt(Number[a128_0x574016(0x132)]),MIN_SAFE_INTEGER=BigInt(Number[a128_0x574016(0x131)]);let restoreResponseJsonParser,responseJsonPrototype,originalResponseJsonDescriptor;function isUnsafeIntegerLiteral(_0x506aba){const _0x487025=a128_0x574016;if(_0x506aba[_0x487025(0x129)]('.')||_0x506aba[_0x487025(0x129)]('e')||_0x506aba[_0x487025(0x129)]('E'))return![];const _0x524de1=BigInt(_0x506aba);return _0x524de1>MAX_SAFE_INTEGER||_0x524de1<MIN_SAFE_INTEGER;}function a128_0x5578(_0x372f39,_0x406908){_0x372f39=_0x372f39-0x11e;const _0x36f030=a128_0x36f0();let _0x5578ad=_0x36f030[_0x372f39];return _0x5578ad;}function quoteUnsafeIntegerLiterals(_0xf71174){const _0xd74e76=a128_0x574016;let _0x2f523a='',_0x469015=![],_0x24f338=![];for(let _0x8a66ea=0x0;_0x8a66ea<_0xf71174[_0xd74e76(0x11f)];){const _0x2bacc1=_0xf71174[_0x8a66ea];if(_0x469015){_0x2f523a+=_0x2bacc1,_0x8a66ea+=0x1;if(_0x24f338)_0x24f338=![];else{if(_0x2bacc1==='\x5c')_0x24f338=!![];else _0x2bacc1==='\x22'&&(_0x469015=![]);}continue;}if(_0x2bacc1==='\x22'){_0x469015=!![],_0x2f523a+=_0x2bacc1,_0x8a66ea+=0x1;continue;}if(_0x2bacc1==='-'||_0x2bacc1>='0'&&_0x2bacc1<='9'){const _0x2d37ca=JSON_NUMBER_PATTERN[_0xd74e76(0x11e)](_0xf71174[_0xd74e76(0x127)](_0x8a66ea))?.[0x0];if(_0x2d37ca){_0x2f523a+=isUnsafeIntegerLiteral(_0x2d37ca)?'\x22'+_0x2d37ca+'\x22':_0x2d37ca,_0x8a66ea+=_0x2d37ca[_0xd74e76(0x11f)];continue;}}_0x2f523a+=_0x2bacc1,_0x8a66ea+=0x1;}return _0x2f523a;}export function parseLosslessJson(_0x2c7acb){return JSON['parse'](quoteUnsafeIntegerLiterals(_0x2c7acb));}export function installLosslessJsonResponseParser(){const _0x1c3b92=a128_0x574016;if(typeof Response==='undefined')return()=>{};if(restoreResponseJsonParser)return restoreResponseJsonParser;return responseJsonPrototype=Response[_0x1c3b92(0x12e)],originalResponseJsonDescriptor=Object['getOwnPropertyDescriptor'](responseJsonPrototype,_0x1c3b92(0x12f)),Object[_0x1c3b92(0x124)](responseJsonPrototype,'json',{...originalResponseJsonDescriptor??{'configurable':!![],'enumerable':![],'writable':!![]},'value':async function _0x468556(){const _0x24b032=_0x1c3b92;return parseLosslessJson(await this[_0x24b032(0x128)]());}}),restoreResponseJsonParser=()=>{if(!responseJsonPrototype)return;originalResponseJsonDescriptor?Object['defineProperty'](responseJsonPrototype,'json',originalResponseJsonDescriptor):delete responseJsonPrototype['json'],responseJsonPrototype=undefined,originalResponseJsonDescriptor=undefined,restoreResponseJsonParser=undefined;},restoreResponseJsonParser;}export function restoreLosslessJsonResponseParser(){restoreResponseJsonParser?.();}
1
+ function a128_0x5b3a(){const _0x20f647=['MIN_SAFE_INTEGER','includes','345688FVMdxE','undefined','4giUcQK','190839ozegvy','434602eiZmFp','json','27OwMgTt','20KZFvPZ','5474480TgUqRa','length','7OUPhZU','parse','1619770ywrqBa','1113762nCcsSu','exec','294270EaJqLs','MAX_SAFE_INTEGER','defineProperty'];a128_0x5b3a=function(){return _0x20f647;};return a128_0x5b3a();}const a128_0x48baee=a128_0x217b;(function(_0x5c2d76,_0x4d2c78){const _0x4ac25e=a128_0x217b,_0x33ed33=_0x5c2d76();while(!![]){try{const _0x49af62=parseInt(_0x4ac25e(0x1b6))/0x1+parseInt(_0x4ac25e(0x1b7))/0x2+-parseInt(_0x4ac25e(0x1c0))/0x3*(parseInt(_0x4ac25e(0x1b5))/0x4)+parseInt(_0x4ac25e(0x1ba))/0x5*(parseInt(_0x4ac25e(0x1ae))/0x6)+parseInt(_0x4ac25e(0x1bd))/0x7*(parseInt(_0x4ac25e(0x1b3))/0x8)+-parseInt(_0x4ac25e(0x1b9))/0x9*(-parseInt(_0x4ac25e(0x1bf))/0xa)+-parseInt(_0x4ac25e(0x1bb))/0xb;if(_0x49af62===_0x4d2c78)break;else _0x33ed33['push'](_0x33ed33['shift']());}catch(_0x4c0563){_0x33ed33['push'](_0x33ed33['shift']());}}}(a128_0x5b3a,0x40950));const JSON_NUMBER_PATTERN=/^-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?/,MAX_SAFE_INTEGER=BigInt(Number[a128_0x48baee(0x1af)]),MIN_SAFE_INTEGER=BigInt(Number[a128_0x48baee(0x1b1)]);let restoreResponseJsonParser,responseJsonPrototype,originalResponseJsonDescriptor;function isUnsafeIntegerLiteral(_0x559195){const _0x57419f=a128_0x48baee;if(_0x559195[_0x57419f(0x1b2)]('.')||_0x559195[_0x57419f(0x1b2)]('e')||_0x559195['includes']('E'))return![];const _0xe3e24c=BigInt(_0x559195);return _0xe3e24c>MAX_SAFE_INTEGER||_0xe3e24c<MIN_SAFE_INTEGER;}function a128_0x217b(_0x270879,_0x30a005){_0x270879=_0x270879-0x1ad;const _0x5b3ad8=a128_0x5b3a();let _0x217b0a=_0x5b3ad8[_0x270879];return _0x217b0a;}function quoteUnsafeIntegerLiterals(_0x2e9690){const _0x1e6e26=a128_0x48baee;let _0x4575b6='',_0x525fa6=![],_0x439246=![];for(let _0x1befd0=0x0;_0x1befd0<_0x2e9690[_0x1e6e26(0x1bc)];){const _0x271c6b=_0x2e9690[_0x1befd0];if(_0x525fa6){_0x4575b6+=_0x271c6b,_0x1befd0+=0x1;if(_0x439246)_0x439246=![];else{if(_0x271c6b==='\x5c')_0x439246=!![];else _0x271c6b==='\x22'&&(_0x525fa6=![]);}continue;}if(_0x271c6b==='\x22'){_0x525fa6=!![],_0x4575b6+=_0x271c6b,_0x1befd0+=0x1;continue;}if(_0x271c6b==='-'||_0x271c6b>='0'&&_0x271c6b<='9'){const _0x7f03b7=JSON_NUMBER_PATTERN[_0x1e6e26(0x1ad)](_0x2e9690['slice'](_0x1befd0))?.[0x0];if(_0x7f03b7){_0x4575b6+=isUnsafeIntegerLiteral(_0x7f03b7)?'\x22'+_0x7f03b7+'\x22':_0x7f03b7,_0x1befd0+=_0x7f03b7['length'];continue;}}_0x4575b6+=_0x271c6b,_0x1befd0+=0x1;}return _0x4575b6;}export function parseLosslessJson(_0x5c76d6){const _0x15dd88=a128_0x48baee;return JSON[_0x15dd88(0x1be)](quoteUnsafeIntegerLiterals(_0x5c76d6));}export function installLosslessJsonResponseParser(){const _0x28ff17=a128_0x48baee;if(typeof Response===_0x28ff17(0x1b4))return()=>{};if(restoreResponseJsonParser)return restoreResponseJsonParser;return responseJsonPrototype=Response['prototype'],originalResponseJsonDescriptor=Object['getOwnPropertyDescriptor'](responseJsonPrototype,'json'),Object[_0x28ff17(0x1b0)](responseJsonPrototype,_0x28ff17(0x1b8),{...originalResponseJsonDescriptor??{'configurable':!![],'enumerable':![],'writable':!![]},'value':async function _0x2980b3(){return parseLosslessJson(await this['text']());}}),restoreResponseJsonParser=()=>{const _0x23683e=_0x28ff17;if(!responseJsonPrototype)return;originalResponseJsonDescriptor?Object['defineProperty'](responseJsonPrototype,_0x23683e(0x1b8),originalResponseJsonDescriptor):delete responseJsonPrototype[_0x23683e(0x1b8)],responseJsonPrototype=undefined,originalResponseJsonDescriptor=undefined,restoreResponseJsonParser=undefined;},restoreResponseJsonParser;}export function restoreLosslessJsonResponseParser(){restoreResponseJsonParser?.();}
@@ -1 +1 @@
1
- (function(_0x50691c,_0x1fa721){const _0x3a5945=a129_0x5966,_0xdadafa=_0x50691c();while(!![]){try{const _0x57ddc3=parseInt(_0x3a5945(0x1aa))/0x1+parseInt(_0x3a5945(0x19b))/0x2*(-parseInt(_0x3a5945(0x192))/0x3)+-parseInt(_0x3a5945(0x197))/0x4+parseInt(_0x3a5945(0x199))/0x5+-parseInt(_0x3a5945(0x1a2))/0x6+parseInt(_0x3a5945(0x19a))/0x7*(parseInt(_0x3a5945(0x1a3))/0x8)+parseInt(_0x3a5945(0x19d))/0x9;if(_0x57ddc3===_0x1fa721)break;else _0xdadafa['push'](_0xdadafa['shift']());}catch(_0x398e1f){_0xdadafa['push'](_0xdadafa['shift']());}}}(a129_0x59ba,0x80525));function a129_0x59ba(){const _0xc2d7b5=['items','data\x20update\x20--params\x20must\x20be\x20a\x20JSON\x20object\x20with\x20id.','validation','\x20records\x20per\x20call;\x20received\x20','Example:\x20--params\x20\x27{\x22id\x22:[1,2,3],\x22status\x22:\x22done\x22}\x27','string','96910KtMpNn','isSafeInteger','join','object','3ZgJXRr','data\x20update\x20id\x20array\x20cannot\x20be\x20empty.','Invalid\x20JSON\x20for\x20--params:\x20','data\x20update\x20--params.','id[','2373460NfExhT','\x20must\x20be\x20a\x20positive\x20integer\x20or\x20numeric\x20string.','1630330wBlOyD','226051XaZCaS','167542tUFbOo','length','7547346pDUiqh','batchCreate\x20--params\x20must\x20be\x20a\x20JSON\x20array\x20or\x20{\x22items\x22:[...]}','map','test','isArray','546732lcCPLm','8aACIgw'];a129_0x59ba=function(){return _0xc2d7b5;};return a129_0x59ba();}import{CliErrors}from'../errors.js';import{parseLosslessJson}from'../utils/lossless-json.js';export const MAX_DATA_UPDATE_IDS=0x3e8;export function parseJsonParams(_0x4debe7){const _0x440f98=a129_0x5966;if(!_0x4debe7)return undefined;try{return parseLosslessJson(_0x4debe7);}catch{throw CliErrors['validation'](_0x440f98(0x194)+_0x4debe7);}}export function parseJsonParamsValue(_0x5991f0){const _0x36731e=a129_0x5966;if(!_0x5991f0)return undefined;try{return parseLosslessJson(_0x5991f0);}catch{throw CliErrors[_0x36731e(0x1a6)]('Invalid\x20JSON\x20for\x20--params:\x20'+_0x5991f0);}}export function parseBatchCreateItemsFromParams(_0x1d734c){const _0x3cf6d0=a129_0x5966;if(Array[_0x3cf6d0(0x1a1)](_0x1d734c))return _0x1d734c;if(_0x1d734c!==null&&_0x1d734c!==undefined&&typeof _0x1d734c===_0x3cf6d0(0x191)&&Array[_0x3cf6d0(0x1a1)](_0x1d734c[_0x3cf6d0(0x1a4)]))return _0x1d734c[_0x3cf6d0(0x1a4)];throw CliErrors[_0x3cf6d0(0x1a6)](_0x3cf6d0(0x19e),'Example:\x20--params\x20\x27[{\x22name\x22:\x22a\x22},{\x22name\x22:\x22b\x22}]\x27');}function parseDataUpdateId(_0x4c694d,_0x2a0f98){const _0x4bc20a=a129_0x5966;if(typeof _0x4c694d==='number'&&Number[_0x4bc20a(0x1ab)](_0x4c694d)&&_0x4c694d>0x0)return _0x4c694d;if(typeof _0x4c694d===_0x4bc20a(0x1a9)){if(/^[1-9]\d*$/[_0x4bc20a(0x1a0)](_0x4c694d))return _0x4c694d;}throw CliErrors[_0x4bc20a(0x1a6)](_0x4bc20a(0x195)+_0x2a0f98+_0x4bc20a(0x198));}function a129_0x5966(_0x5cb81d,_0x1a7386){_0x5cb81d=_0x5cb81d-0x190;const _0x59ba11=a129_0x59ba();let _0x596697=_0x59ba11[_0x5cb81d];return _0x596697;}export function parseUpdateIdsFromParams(_0x836a20){const _0x436fca=a129_0x5966;if(_0x836a20===null||_0x836a20===undefined||typeof _0x836a20!==_0x436fca(0x191)||Array['isArray'](_0x836a20))throw CliErrors[_0x436fca(0x1a6)](_0x436fca(0x1a5),_0x436fca(0x1a8));const _0x8965f2=_0x836a20['id'];if(_0x8965f2===undefined||_0x8965f2===null)throw CliErrors[_0x436fca(0x1a6)]('data\x20update\x20requires\x20\x22id\x22\x20in\x20--params.',_0x436fca(0x1a8));const _0x11a2c6=Array[_0x436fca(0x1a1)](_0x8965f2)?_0x8965f2:[_0x8965f2];if(_0x11a2c6['length']===0x0)throw CliErrors[_0x436fca(0x1a6)](_0x436fca(0x193));if(_0x11a2c6[_0x436fca(0x19c)]>MAX_DATA_UPDATE_IDS)throw CliErrors[_0x436fca(0x1a6)]('data\x20update\x20can\x20update\x20at\x20most\x20'+MAX_DATA_UPDATE_IDS+_0x436fca(0x1a7)+_0x11a2c6[_0x436fca(0x19c)]+'.');return _0x11a2c6[_0x436fca(0x19f)]((_0x3ebd60,_0x2ac5b9)=>parseDataUpdateId(_0x3ebd60,Array['isArray'](_0x8965f2)?_0x436fca(0x196)+_0x2ac5b9+']':'id'));}export function normalizeUpdateParamsForRuntime(_0x292f9f,_0x3c8fd6){const _0x573af6=a129_0x5966;if(Array['isArray'](_0x292f9f['id'])&&_0x3c8fd6['length']>0x1)return{..._0x292f9f,'id':_0x3c8fd6[_0x573af6(0x190)](',')};return _0x292f9f;}
1
+ (function(_0x5cfe6b,_0x32d033){const _0x7f61d7=a129_0x15cb,_0x46481c=_0x5cfe6b();while(!![]){try{const _0x21ae85=parseInt(_0x7f61d7(0x115))/0x1+-parseInt(_0x7f61d7(0x117))/0x2+parseInt(_0x7f61d7(0x11d))/0x3+-parseInt(_0x7f61d7(0x119))/0x4*(parseInt(_0x7f61d7(0x116))/0x5)+parseInt(_0x7f61d7(0x10e))/0x6+parseInt(_0x7f61d7(0x10f))/0x7*(-parseInt(_0x7f61d7(0x112))/0x8)+parseInt(_0x7f61d7(0x110))/0x9;if(_0x21ae85===_0x32d033)break;else _0x46481c['push'](_0x46481c['shift']());}catch(_0x154b16){_0x46481c['push'](_0x46481c['shift']());}}}(a129_0x2c84,0x8bdaa));import{CliErrors}from'../errors.js';function a129_0x2c84(){const _0xcd56=['673582CkjVVo','6776253rMSJff','data\x20update\x20id\x20array\x20cannot\x20be\x20empty.','32GnkQSN','object','validation','153797ZPOjoj','530fREYZq','692654SOlZfo','\x20records\x20per\x20call;\x20received\x20','30248HrJPzv','map','isArray','data\x20update\x20--params.','499980MhsjpL','batchCreate\x20--params\x20must\x20be\x20a\x20JSON\x20array\x20or\x20{\x22items\x22:[...]}','Invalid\x20JSON\x20for\x20--params:\x20','Example:\x20--params\x20\x27{\x22id\x22:[1,2,3],\x22status\x22:\x22done\x22}\x27','length','items','string','data\x20update\x20--params\x20must\x20be\x20a\x20JSON\x20object\x20with\x20id.','\x20must\x20be\x20a\x20positive\x20integer\x20or\x20numeric\x20string.','6193626lKTHCO'];a129_0x2c84=function(){return _0xcd56;};return a129_0x2c84();}function a129_0x15cb(_0x4bcc62,_0x5f53fb){_0x4bcc62=_0x4bcc62-0x109;const _0x2c8476=a129_0x2c84();let _0x15cb5b=_0x2c8476[_0x4bcc62];return _0x15cb5b;}import{parseLosslessJson}from'../utils/lossless-json.js';export const MAX_DATA_UPDATE_IDS=0x3e8;export function parseJsonParams(_0x380903){const _0x33ffbc=a129_0x15cb;if(!_0x380903)return undefined;try{return parseLosslessJson(_0x380903);}catch{throw CliErrors['validation'](_0x33ffbc(0x11f)+_0x380903);}}export function parseJsonParamsValue(_0x46db78){const _0x4a8436=a129_0x15cb;if(!_0x46db78)return undefined;try{return parseLosslessJson(_0x46db78);}catch{throw CliErrors[_0x4a8436(0x114)](_0x4a8436(0x11f)+_0x46db78);}}export function parseBatchCreateItemsFromParams(_0x452849){const _0x22b805=a129_0x15cb;if(Array[_0x22b805(0x11b)](_0x452849))return _0x452849;if(_0x452849!==null&&_0x452849!==undefined&&typeof _0x452849===_0x22b805(0x113)&&Array[_0x22b805(0x11b)](_0x452849[_0x22b805(0x10a)]))return _0x452849['items'];throw CliErrors[_0x22b805(0x114)](_0x22b805(0x11e),'Example:\x20--params\x20\x27[{\x22name\x22:\x22a\x22},{\x22name\x22:\x22b\x22}]\x27');}function parseDataUpdateId(_0x51484f,_0x2a3391){const _0x56d983=a129_0x15cb;if(typeof _0x51484f==='number'&&Number['isSafeInteger'](_0x51484f)&&_0x51484f>0x0)return _0x51484f;if(typeof _0x51484f===_0x56d983(0x10b)){if(/^[1-9]\d*$/['test'](_0x51484f))return _0x51484f;}throw CliErrors[_0x56d983(0x114)](_0x56d983(0x11c)+_0x2a3391+_0x56d983(0x10d));}export function parseUpdateIdsFromParams(_0x485466){const _0x466d8e=a129_0x15cb;if(_0x485466===null||_0x485466===undefined||typeof _0x485466!==_0x466d8e(0x113)||Array[_0x466d8e(0x11b)](_0x485466))throw CliErrors[_0x466d8e(0x114)](_0x466d8e(0x10c),_0x466d8e(0x120));const _0x2c6280=_0x485466['id'];if(_0x2c6280===undefined||_0x2c6280===null)throw CliErrors[_0x466d8e(0x114)]('data\x20update\x20requires\x20\x22id\x22\x20in\x20--params.',_0x466d8e(0x120));const _0x5d2a1d=Array[_0x466d8e(0x11b)](_0x2c6280)?_0x2c6280:[_0x2c6280];if(_0x5d2a1d['length']===0x0)throw CliErrors[_0x466d8e(0x114)](_0x466d8e(0x111));if(_0x5d2a1d[_0x466d8e(0x109)]>MAX_DATA_UPDATE_IDS)throw CliErrors[_0x466d8e(0x114)]('data\x20update\x20can\x20update\x20at\x20most\x20'+MAX_DATA_UPDATE_IDS+_0x466d8e(0x118)+_0x5d2a1d[_0x466d8e(0x109)]+'.');return _0x5d2a1d[_0x466d8e(0x11a)]((_0x4369fa,_0x1c63fe)=>parseDataUpdateId(_0x4369fa,Array[_0x466d8e(0x11b)](_0x2c6280)?'id['+_0x1c63fe+']':'id'));}export function normalizeUpdateParamsForRuntime(_0x22fce9,_0x3090a9){const _0x53affb=a129_0x15cb;if(Array[_0x53affb(0x11b)](_0x22fce9['id'])&&_0x3090a9[_0x53affb(0x109)]>0x1)return{..._0x22fce9,'id':_0x3090a9['join'](',')};return _0x22fce9;}
@@ -1 +1 @@
1
- const a130_0x3514af=a130_0x4a69;function a130_0x4a69(_0x13b4fd,_0xaf4f81){_0x13b4fd=_0x13b4fd-0x8f;const _0x3130cb=a130_0x3130();let _0x4a699b=_0x3130cb[_0x13b4fd];return _0x4a699b;}function a130_0x3130(){const _0x38e430=['4734664cOudlo','12378087AZCWvM','7BVRkkA','13300991wRhEUk','win32','.cmd','99476kSobVE','8GFZAzQ','5gNHlSe','10iOoDbp','7059534wipawm','6820499DBlBXa','4832544UNpBbj'];a130_0x3130=function(){return _0x38e430;};return a130_0x3130();}(function(_0x3b33be,_0x5190c5){const _0x440d92=a130_0x4a69,_0x56a858=_0x3b33be();while(!![]){try{const _0x30a140=parseInt(_0x440d92(0x96))/0x1*(parseInt(_0x440d92(0x9a))/0x2)+parseInt(_0x440d92(0x93))/0x3+-parseInt(_0x440d92(0x94))/0x4*(parseInt(_0x440d92(0x8f))/0x5)+parseInt(_0x440d92(0x91))/0x6+-parseInt(_0x440d92(0x92))/0x7+parseInt(_0x440d92(0x9b))/0x8*(-parseInt(_0x440d92(0x95))/0x9)+parseInt(_0x440d92(0x90))/0xa*(parseInt(_0x440d92(0x97))/0xb);if(_0x30a140===_0x5190c5)break;else _0x56a858['push'](_0x56a858['shift']());}catch(_0x56cf83){_0x56a858['push'](_0x56a858['shift']());}}}(a130_0x3130,0xc619a));export const isWindows=process['platform']===a130_0x3514af(0x98);export function resolveNpmBin(_0x2d7f22){const _0x562523=a130_0x3514af;return isWindows?_0x2d7f22+_0x562523(0x99):_0x2d7f22;}
1
+ const a130_0x71c48e=a130_0x13f2;function a130_0x13f2(_0x10aecd,_0x5ed49f){_0x10aecd=_0x10aecd-0x1ec;const _0x1cefa1=a130_0x1cef();let _0x13f209=_0x1cefa1[_0x10aecd];return _0x13f209;}(function(_0x1668b3,_0x4ba487){const _0x416dc6=a130_0x13f2,_0x74a774=_0x1668b3();while(!![]){try{const _0x2b78a4=parseInt(_0x416dc6(0x1ec))/0x1+parseInt(_0x416dc6(0x1ef))/0x2*(parseInt(_0x416dc6(0x1f0))/0x3)+parseInt(_0x416dc6(0x1ee))/0x4+parseInt(_0x416dc6(0x1f6))/0x5*(-parseInt(_0x416dc6(0x1f7))/0x6)+-parseInt(_0x416dc6(0x1f4))/0x7+-parseInt(_0x416dc6(0x1f3))/0x8+parseInt(_0x416dc6(0x1f5))/0x9*(parseInt(_0x416dc6(0x1ed))/0xa);if(_0x2b78a4===_0x4ba487)break;else _0x74a774['push'](_0x74a774['shift']());}catch(_0x3e789b){_0x74a774['push'](_0x74a774['shift']());}}}(a130_0x1cef,0x6051b));export const isWindows=process[a130_0x71c48e(0x1f2)]==='win32';export function resolveNpmBin(_0x51a7bf){const _0x40edb8=a130_0x71c48e;return isWindows?_0x51a7bf+_0x40edb8(0x1f1):_0x51a7bf;}function a130_0x1cef(){const _0x5e9447=['153892LVfaTT','30DUbiOH','2317948IrpoMZ','31866cnAvKq','33apYcvo','.cmd','platform','4161864tyzqXi','3814678TGvqZu','2270214oiRtsh','1028350FihHGC','6fuTGhv'];a130_0x1cef=function(){return _0x5e9447;};return a130_0x1cef();}
@@ -1 +1 @@
1
- (function(_0x1109bd,_0x54364b){const _0x11263f=a131_0x460f,_0x528433=_0x1109bd();while(!![]){try{const _0x371328=parseInt(_0x11263f(0x1d2))/0x1*(parseInt(_0x11263f(0x1c1))/0x2)+parseInt(_0x11263f(0x1dc))/0x3+-parseInt(_0x11263f(0x1d5))/0x4+parseInt(_0x11263f(0x1db))/0x5+parseInt(_0x11263f(0x1da))/0x6*(-parseInt(_0x11263f(0x1ca))/0x7)+-parseInt(_0x11263f(0x1d4))/0x8+parseInt(_0x11263f(0x1c9))/0x9*(parseInt(_0x11263f(0x1c2))/0xa);if(_0x371328===_0x54364b)break;else _0x528433['push'](_0x528433['shift']());}catch(_0x48f675){_0x528433['push'](_0x528433['shift']());}}}(a131_0x28d9,0x53675));import{mkdir,readFile,writeFile}from'node:fs/promises';import{homedir}from'node:os';import{dirname,join}from'node:path';import{LOVRABET_NPM_PACKAGE_NAME,NPM_REGISTRY_BASE_URL}from'../constant/distribution.js';import{CLI_BIN_NAME}from'../constant/cli.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 parseSemver(_0xad7e78){const _0x4b609a=a131_0x460f,_0x569247=_0xad7e78[_0x4b609a(0x1e0)]()['match'](/^(\d+)\.(\d+)\.(\d+)(?:-([0-9A-Za-z.-]+))?$/);if(!_0x569247)return null;return{'major':Number(_0x569247[0x1]),'minor':Number(_0x569247[0x2]),'patch':Number(_0x569247[0x3]),'prerelease':_0x569247[0x4]};}function compareSemver(_0x130283,_0x53b2cc){const _0x5064ad=a131_0x460f,_0x2f8c83=parseSemver(_0x130283),_0x1fc9c9=parseSemver(_0x53b2cc);if(!_0x2f8c83||!_0x1fc9c9)throw new Error(_0x5064ad(0x1d9));for(const _0x43efa0 of[_0x5064ad(0x1cd),_0x5064ad(0x1c3),'patch']){if(_0x2f8c83[_0x43efa0]<_0x1fc9c9[_0x43efa0])return-0x1;if(_0x2f8c83[_0x43efa0]>_0x1fc9c9[_0x43efa0])return 0x1;}if(!_0x2f8c83['prerelease']&&!_0x1fc9c9[_0x5064ad(0x1de)])return 0x0;if(!_0x2f8c83['prerelease'])return 0x1;if(!_0x1fc9c9['prerelease'])return-0x1;if(_0x2f8c83[_0x5064ad(0x1de)]===_0x1fc9c9[_0x5064ad(0x1de)])return 0x0;return _0x2f8c83[_0x5064ad(0x1de)]<_0x1fc9c9[_0x5064ad(0x1de)]?-0x1:0x1;}function isUpdateNoticeDisabled(){const _0x2be77b=a131_0x460f,_0x47850a=process.env.LOVRABET_NO_UPDATE_NOTICE?.[_0x2be77b(0x1e0)]()[_0x2be77b(0x1cf)]();return _0x47850a==='1'||_0x47850a===_0x2be77b(0x1dd)||_0x47850a===_0x2be77b(0x1c7);}function cacheRoot(){const _0x562e13=a131_0x460f;return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),_0x562e13(0x1c8));}export function getUpdateNoticeCachePath(){const _0xd7419b=a131_0x460f;return join(cacheRoot(),_0xd7419b(0x1e3),_0xd7419b(0x1df));}async function readUpdateNoticeCache(){const _0x2e1b2e=a131_0x460f;try{const _0x1ddbda=await readFile(getUpdateNoticeCachePath(),_0x2e1b2e(0x1c6)),_0x547823=JSON[_0x2e1b2e(0x1d8)](_0x1ddbda);if(!_0x547823||typeof _0x547823!==_0x2e1b2e(0x1c5))return{};return _0x547823;}catch{return{};}}async function writeUpdateNoticeCache(_0x20db7f){const _0x3b8c47=a131_0x460f;try{const _0x25e635=getUpdateNoticeCachePath();await mkdir(dirname(_0x25e635),{'recursive':!![]}),await writeFile(_0x25e635,JSON[_0x3b8c47(0x1e2)](_0x20db7f,null,0x2)+'\x0a','utf8');}catch{}}function isFreshCheck(_0x20c1ae,_0x2b9268){const _0x77a48=a131_0x460f;return typeof _0x20c1ae['checkedAt']===_0x77a48(0x1cb)&&_0x2b9268-_0x20c1ae[_0x77a48(0x1bf)]<UPDATE_CHECK_TTL_MS;}function isRecentlyNotified(_0x2a6528,_0x1ecf88,_0x2276e6){const _0x52a731=a131_0x460f;return _0x2a6528[_0x52a731(0x1e5)]===_0x1ecf88&&typeof _0x2a6528[_0x52a731(0x1c4)]===_0x52a731(0x1cb)&&_0x2276e6-_0x2a6528['lastNotifiedAt']<UPDATE_NOTICE_TTL_MS;}function a131_0x460f(_0x4e7c6e,_0x441642){_0x4e7c6e=_0x4e7c6e-0x1bf;const _0x28d9ad=a131_0x28d9();let _0x460fb2=_0x28d9ad[_0x4e7c6e];return _0x460fb2;}async function fetchNpmDistTags(_0x1a3452=0x5dc){const _0x49774b=a131_0x460f;try{const _0x54c38f=NPM_REGISTRY_BASE_URL+'/-/package/'+encodeURIComponent(LOVRABET_NPM_PACKAGE_NAME)+'/dist-tags',_0x2c1ebe=await fetch(_0x54c38f,{'signal':AbortSignal[_0x49774b(0x1e6)](_0x1a3452)});if(!_0x2c1ebe['ok'])return null;const _0x155af3=await _0x2c1ebe['json']();if(!_0x155af3||typeof _0x155af3!==_0x49774b(0x1c5))return null;return Object[_0x49774b(0x1d0)](Object[_0x49774b(0x1ce)](_0x155af3)[_0x49774b(0x1d6)](([,_0x295de2])=>typeof _0x295de2==='string'&&_0x295de2['trim']())['map'](([_0x4e399b,_0x460a09])=>[_0x4e399b,String(_0x460a09)[_0x49774b(0x1e0)]()]));}catch{return null;}}export function buildNpmVersionUrl(_0x3ea9cb){const _0x2b6460=a131_0x460f;return _0x2b6460(0x1e4)+LOVRABET_NPM_PACKAGE_NAME+_0x2b6460(0x1d7)+_0x3ea9cb;}function a131_0x28d9(){const _0x46b526=['minor','lastNotifiedAt','object','utf8','yes','.cache','153YmFxAP','50491dkFlgd','number','\x20update','major','entries','toLowerCase','fromEntries','now','487164mpQFUx','latest','5243928ZDsjuE','2534384vXqAkD','filter','/v/','parse','Invalid\x20semver','6ECngay','1047245AKEbGc','523977OLQZas','true','prerelease','update-check.json','trim',',\x20run:\x20','stringify','lovrabet-cli','https://www.npmjs.com/package/','lastNotifiedVersion','timeout','checkedAt','\x20available,\x20current\x20','2oIJoeP','450970IrbVno'];a131_0x28d9=function(){return _0x46b526;};return a131_0x28d9();}export async function resolveLatestUpdateNotice(){const _0x171875=a131_0x460f;if(isUpdateNoticeDisabled())return null;try{const _0x11e556=Date[_0x171875(0x1d1)](),_0x52ebe6=getCliVersion(),_0x5b3009=await readUpdateNoticeCache();let _0x435df8=isFreshCheck(_0x5b3009,_0x11e556)?_0x5b3009['latest']?.['trim']():undefined;if(!_0x435df8&&!isFreshCheck(_0x5b3009,_0x11e556)){const _0xd1e877=await fetchNpmDistTags();_0x435df8=_0xd1e877?.[_0x171875(0x1d3)]?.[_0x171875(0x1e0)](),await writeUpdateNoticeCache({..._0x5b3009,'checkedAt':_0x11e556,'latest':_0x435df8,'failed':!_0x435df8});}if(!_0x435df8||compareSemver(_0x52ebe6,_0x435df8)>=0x0)return null;if(isRecentlyNotified(_0x5b3009,_0x435df8,_0x11e556))return null;const _0xaa081a=CLI_BIN_NAME+_0x171875(0x1cc);return await writeUpdateNoticeCache({..._0x5b3009,'checkedAt':isFreshCheck(_0x5b3009,_0x11e556)?_0x5b3009[_0x171875(0x1bf)]:_0x11e556,'latest':_0x435df8,'failed':![],'lastNotifiedVersion':_0x435df8,'lastNotifiedAt':_0x11e556}),{'command':_0xaa081a,'current':_0x52ebe6,'latest':_0x435df8,'url':buildNpmVersionUrl(_0x435df8),'message':CLI_BIN_NAME+'\x20'+_0x435df8+_0x171875(0x1c0)+_0x52ebe6+_0x171875(0x1e1)+_0xaa081a};}catch{return null;}}
1
+ (function(_0x1ef0b6,_0x2e69ac){const _0x4a06a9=a131_0xa388,_0x3395e1=_0x1ef0b6();while(!![]){try{const _0x4facd8=-parseInt(_0x4a06a9(0xe2))/0x1+-parseInt(_0x4a06a9(0xc8))/0x2+parseInt(_0x4a06a9(0xca))/0x3*(parseInt(_0x4a06a9(0xd9))/0x4)+-parseInt(_0x4a06a9(0xc7))/0x5*(-parseInt(_0x4a06a9(0xc4))/0x6)+parseInt(_0x4a06a9(0xcd))/0x7*(-parseInt(_0x4a06a9(0xe9))/0x8)+-parseInt(_0x4a06a9(0xc1))/0x9*(-parseInt(_0x4a06a9(0xcc))/0xa)+parseInt(_0x4a06a9(0xe6))/0xb*(parseInt(_0x4a06a9(0xe5))/0xc);if(_0x4facd8===_0x2e69ac)break;else _0x3395e1['push'](_0x3395e1['shift']());}catch(_0x5b405b){_0x3395e1['push'](_0x3395e1['shift']());}}}(a131_0x46c3,0x36c21));import{mkdir,readFile,writeFile}from'node:fs/promises';import{homedir}from'node:os';import{dirname,join}from'node:path';import{LOVRABET_NPM_PACKAGE_NAME,NPM_REGISTRY_BASE_URL}from'../constant/distribution.js';import{CLI_BIN_NAME}from'../constant/cli.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 parseSemver(_0xdeda18){const _0x2a2353=a131_0xa388,_0x44d89d=_0xdeda18[_0x2a2353(0xc6)]()[_0x2a2353(0xe1)](/^(\d+)\.(\d+)\.(\d+)(?:-([0-9A-Za-z.-]+))?$/);if(!_0x44d89d)return null;return{'major':Number(_0x44d89d[0x1]),'minor':Number(_0x44d89d[0x2]),'patch':Number(_0x44d89d[0x3]),'prerelease':_0x44d89d[0x4]};}function compareSemver(_0x1d4cca,_0x3f7ff9){const _0x1db645=a131_0xa388,_0x162991=parseSemver(_0x1d4cca),_0x14e578=parseSemver(_0x3f7ff9);if(!_0x162991||!_0x14e578)throw new Error(_0x1db645(0xcf));for(const _0x25f43c of[_0x1db645(0xd2),_0x1db645(0xd7),'patch']){if(_0x162991[_0x25f43c]<_0x14e578[_0x25f43c])return-0x1;if(_0x162991[_0x25f43c]>_0x14e578[_0x25f43c])return 0x1;}if(!_0x162991[_0x1db645(0xd6)]&&!_0x14e578[_0x1db645(0xd6)])return 0x0;if(!_0x162991['prerelease'])return 0x1;if(!_0x14e578['prerelease'])return-0x1;if(_0x162991[_0x1db645(0xd6)]===_0x14e578[_0x1db645(0xd6)])return 0x0;return _0x162991[_0x1db645(0xd6)]<_0x14e578['prerelease']?-0x1:0x1;}function isUpdateNoticeDisabled(){const _0x54284d=a131_0xa388,_0x2a3f38=process.env.LOVRABET_NO_UPDATE_NOTICE?.[_0x54284d(0xc6)]()[_0x54284d(0xde)]();return _0x2a3f38==='1'||_0x2a3f38===_0x54284d(0xd5)||_0x2a3f38===_0x54284d(0xd4);}function cacheRoot(){return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),'.cache');}function a131_0x46c3(){const _0xdbdc2f=['stringify','json','24WwGJIc','\x20update','9wQHipE','parse','update-check.json','209904EnhxMM','string','trim','10ykhlyl','115418LMJrTW','/v/','39QFzDUr','object','248110YxZmUR','627662bBqvrt','lovrabet-cli','Invalid\x20semver','number','latest','major','now','yes','true','prerelease','minor','https://www.npmjs.com/package/','127048WnHAvs','timeout','checkedAt','lastNotifiedAt','entries','toLowerCase','fromEntries','\x20available,\x20current\x20','match','48818FDcAgd','lastNotifiedVersion','/-/package/','12lVUocL','1013419qQUpVt'];a131_0x46c3=function(){return _0xdbdc2f;};return a131_0x46c3();}export function getUpdateNoticeCachePath(){const _0x504102=a131_0xa388;return join(cacheRoot(),_0x504102(0xce),_0x504102(0xc3));}async function readUpdateNoticeCache(){const _0x3c5f0d=a131_0xa388;try{const _0x547e9d=await readFile(getUpdateNoticeCachePath(),'utf8'),_0x2ba789=JSON[_0x3c5f0d(0xc2)](_0x547e9d);if(!_0x2ba789||typeof _0x2ba789!==_0x3c5f0d(0xcb))return{};return _0x2ba789;}catch{return{};}}async function writeUpdateNoticeCache(_0x3092fa){const _0x5b0471=a131_0xa388;try{const _0x4334f5=getUpdateNoticeCachePath();await mkdir(dirname(_0x4334f5),{'recursive':!![]}),await writeFile(_0x4334f5,JSON[_0x5b0471(0xe7)](_0x3092fa,null,0x2)+'\x0a','utf8');}catch{}}function isFreshCheck(_0x57373a,_0x26617a){const _0x383064=a131_0xa388;return typeof _0x57373a[_0x383064(0xdb)]===_0x383064(0xd0)&&_0x26617a-_0x57373a['checkedAt']<UPDATE_CHECK_TTL_MS;}function isRecentlyNotified(_0x373e5d,_0x5e21ba,_0x1b50ba){const _0x272624=a131_0xa388;return _0x373e5d[_0x272624(0xe3)]===_0x5e21ba&&typeof _0x373e5d['lastNotifiedAt']===_0x272624(0xd0)&&_0x1b50ba-_0x373e5d[_0x272624(0xdc)]<UPDATE_NOTICE_TTL_MS;}async function fetchNpmDistTags(_0x54059c=0x5dc){const _0x48eada=a131_0xa388;try{const _0x26afc0=NPM_REGISTRY_BASE_URL+_0x48eada(0xe4)+encodeURIComponent(LOVRABET_NPM_PACKAGE_NAME)+'/dist-tags',_0x1aec0e=await fetch(_0x26afc0,{'signal':AbortSignal[_0x48eada(0xda)](_0x54059c)});if(!_0x1aec0e['ok'])return null;const _0x26f451=await _0x1aec0e[_0x48eada(0xe8)]();if(!_0x26f451||typeof _0x26f451!==_0x48eada(0xcb))return null;return Object[_0x48eada(0xdf)](Object[_0x48eada(0xdd)](_0x26f451)['filter'](([,_0x327a63])=>typeof _0x327a63===_0x48eada(0xc5)&&_0x327a63[_0x48eada(0xc6)]())['map'](([_0x17581e,_0x4a046a])=>[_0x17581e,String(_0x4a046a)[_0x48eada(0xc6)]()]));}catch{return null;}}function a131_0xa388(_0x218999,_0x4fb2b3){_0x218999=_0x218999-0xc1;const _0x46c3d9=a131_0x46c3();let _0xa388e0=_0x46c3d9[_0x218999];return _0xa388e0;}export function buildNpmVersionUrl(_0x1b1a8e){const _0x1abafb=a131_0xa388;return _0x1abafb(0xd8)+LOVRABET_NPM_PACKAGE_NAME+_0x1abafb(0xc9)+_0x1b1a8e;}export async function resolveLatestUpdateNotice(){const _0x183721=a131_0xa388;if(isUpdateNoticeDisabled())return null;try{const _0x305b7b=Date[_0x183721(0xd3)](),_0x109103=getCliVersion(),_0x332858=await readUpdateNoticeCache();let _0x538503=isFreshCheck(_0x332858,_0x305b7b)?_0x332858[_0x183721(0xd1)]?.[_0x183721(0xc6)]():undefined;if(!_0x538503&&!isFreshCheck(_0x332858,_0x305b7b)){const _0x1f9692=await fetchNpmDistTags();_0x538503=_0x1f9692?.[_0x183721(0xd1)]?.[_0x183721(0xc6)](),await writeUpdateNoticeCache({..._0x332858,'checkedAt':_0x305b7b,'latest':_0x538503,'failed':!_0x538503});}if(!_0x538503||compareSemver(_0x109103,_0x538503)>=0x0)return null;if(isRecentlyNotified(_0x332858,_0x538503,_0x305b7b))return null;const _0x100f76=CLI_BIN_NAME+_0x183721(0xea);return await writeUpdateNoticeCache({..._0x332858,'checkedAt':isFreshCheck(_0x332858,_0x305b7b)?_0x332858['checkedAt']:_0x305b7b,'latest':_0x538503,'failed':![],'lastNotifiedVersion':_0x538503,'lastNotifiedAt':_0x305b7b}),{'command':_0x100f76,'current':_0x109103,'latest':_0x538503,'url':buildNpmVersionUrl(_0x538503),'message':CLI_BIN_NAME+'\x20'+_0x538503+_0x183721(0xe0)+_0x109103+',\x20run:\x20'+_0x100f76};}catch{return null;}}
@@ -1 +1 @@
1
- function a132_0x5a10(){const _0x408f07=['unknown','6fWivLD','1147700sJMllt','3740305IrlfJu','134836cuefll','4eADPYE','1122374oQGEZp','105kjnRJM','8124248jsyygd','slice','45upeMvU','2944676sJyPsg','4160pXMTjb'];a132_0x5a10=function(){return _0x408f07;};return a132_0x5a10();}(function(_0x545260,_0x18fe49){const _0xe7427a=a132_0xb070,_0xab12eb=_0x545260();while(!![]){try{const _0x36eb47=parseInt(_0xe7427a(0x83))/0x1+parseInt(_0xe7427a(0x7e))/0x2*(-parseInt(_0xe7427a(0x86))/0x3)+parseInt(_0xe7427a(0x84))/0x4*(parseInt(_0xe7427a(0x82))/0x5)+parseInt(_0xe7427a(0x80))/0x6*(-parseInt(_0xe7427a(0x7d))/0x7)+parseInt(_0xe7427a(0x87))/0x8+parseInt(_0xe7427a(0x89))/0x9*(-parseInt(_0xe7427a(0x81))/0xa)+-parseInt(_0xe7427a(0x85))/0xb;if(_0x36eb47===_0x18fe49)break;else _0xab12eb['push'](_0xab12eb['shift']());}catch(_0x89f187){_0xab12eb['push'](_0xab12eb['shift']());}}}(a132_0x5a10,0xb1ff4));import{BUILD_TIME,GIT_COMMIT,VERSION}from'../generated/build-info.js';export function getCliVersion(){return VERSION;}function a132_0xb070(_0xbbdce9,_0x4f348f){_0xbbdce9=_0xbbdce9-0x7d;const _0x5a10bb=a132_0x5a10();let _0xb070a7=_0x5a10bb[_0xbbdce9];return _0xb070a7;}export function getCliGitCommit(){const _0x25d756=a132_0xb070,_0x15c2f0=String(GIT_COMMIT);return _0x15c2f0&&_0x15c2f0!==_0x25d756(0x7f)?_0x15c2f0:'';}export function getCliVersionDisplay(){const _0xe238c0=a132_0xb070,_0x224431=getCliGitCommit(),_0x3d6f45=BUILD_TIME[_0xe238c0(0x88)](0x0,0xa);if(!_0x224431||!_0x3d6f45)return VERSION;return VERSION+'\x20('+_0x224431+',\x20'+_0x3d6f45+')';}
1
+ function a132_0x3129(_0x516cef,_0x3a9e07){_0x516cef=_0x516cef-0x1ba;const _0x38f7eb=a132_0x38f7();let _0x31297f=_0x38f7eb[_0x516cef];return _0x31297f;}function a132_0x38f7(){const _0x5599b4=['608331zQJSgV','unknown','slice','8457620awnLAq','3078990SjbIss','9unEZIu','41315DTeOWs','36ydMTjx','239065hKAYgu','4148968QBQcPJ','2FzmzcL','2850841ldonbX'];a132_0x38f7=function(){return _0x5599b4;};return a132_0x38f7();}(function(_0xffee70,_0x407ca9){const _0x28e32c=a132_0x3129,_0x6665ee=_0xffee70();while(!![]){try{const _0x706f0d=-parseInt(_0x28e32c(0x1c3))/0x1+-parseInt(_0x28e32c(0x1bb))/0x2*(-parseInt(_0x28e32c(0x1bd))/0x3)+parseInt(_0x28e32c(0x1c4))/0x4*(-parseInt(_0x28e32c(0x1c5))/0x5)+parseInt(_0x28e32c(0x1c1))/0x6+parseInt(_0x28e32c(0x1bc))/0x7+-parseInt(_0x28e32c(0x1ba))/0x8*(-parseInt(_0x28e32c(0x1c2))/0x9)+-parseInt(_0x28e32c(0x1c0))/0xa;if(_0x706f0d===_0x407ca9)break;else _0x6665ee['push'](_0x6665ee['shift']());}catch(_0xddb7af){_0x6665ee['push'](_0x6665ee['shift']());}}}(a132_0x38f7,0x4f350));import{BUILD_TIME,GIT_COMMIT,VERSION}from'../generated/build-info.js';export function getCliVersion(){return VERSION;}export function getCliGitCommit(){const _0x330c15=a132_0x3129,_0x5050be=String(GIT_COMMIT);return _0x5050be&&_0x5050be!==_0x330c15(0x1be)?_0x5050be:'';}export function getCliVersionDisplay(){const _0xa96f66=a132_0x3129,_0x38ff9e=getCliGitCommit(),_0x93bb6d=BUILD_TIME[_0xa96f66(0x1bf)](0x0,0xa);if(!_0x38ff9e||!_0x93bb6d)return VERSION;return VERSION+'\x20('+_0x38ff9e+',\x20'+_0x93bb6d+')';}
@@ -1 +1 @@
1
- (function(_0x456148,_0x2cdd26){var _0x42f2f1=a133_0x5f14,_0x243559=_0x456148();while(!![]){try{var _0x4c43c4=-parseInt(_0x42f2f1(0xb9))/0x1+parseInt(_0x42f2f1(0xb5))/0x2+-parseInt(_0x42f2f1(0xba))/0x3+-parseInt(_0x42f2f1(0xb8))/0x4+-parseInt(_0x42f2f1(0xb1))/0x5*(parseInt(_0x42f2f1(0xb4))/0x6)+-parseInt(_0x42f2f1(0xb3))/0x7*(-parseInt(_0x42f2f1(0xbb))/0x8)+parseInt(_0x42f2f1(0xb6))/0x9*(parseInt(_0x42f2f1(0xb2))/0xa);if(_0x4c43c4===_0x2cdd26)break;else _0x243559['push'](_0x243559['shift']());}catch(_0x3394a7){_0x243559['push'](_0x243559['shift']());}}}(a133_0x2ba1,0x66402));function a133_0x5f14(_0x5326e9,_0x6a6b02){_0x5326e9=_0x5326e9-0xb0;var _0x2ba1f5=a133_0x2ba1();var _0x5f1403=_0x2ba1f5[_0x5326e9];return _0x5f1403;}function a133_0x2ba1(){var _0x23ef29=['9950QxLtUP','413RVXbvy','120htnwhY','806546QORnMS','11862cXwXLN','stderr','122664owKljZ','689257CEdsEy','2421087NrdNUP','66024NSOKAG','write','63960lbmwVA'];a133_0x2ba1=function(){return _0x23ef29;};return a133_0x2ba1();}export function writeCliSideChannelLine(_0x13f4c6){var _0x5cb676=a133_0x5f14;process[_0x5cb676(0xb7)][_0x5cb676(0xb0)](_0x13f4c6+'\x0a');}
1
+ function a133_0xbce5(){var _0x26e96e=['356SsfHBH','374958prxzGb','stderr','write','9845770zSVCox','18364mnQaWt','56604DqkIYF','380331YzVKls','6374vmIgHW','200EcSgiL','9727030jQWCGk','495UMgLXi','216nUWqUw'];a133_0xbce5=function(){return _0x26e96e;};return a133_0xbce5();}function a133_0x5164(_0x507e50,_0x46df13){_0x507e50=_0x507e50-0xe0;var _0xbce51d=a133_0xbce5();var _0x51649f=_0xbce51d[_0x507e50];return _0x51649f;}(function(_0x262349,_0x37783f){var _0x249f36=a133_0x5164,_0x4ea588=_0x262349();while(!![]){try{var _0x5c07eb=parseInt(_0x249f36(0xe5))/0x1*(parseInt(_0x249f36(0xea))/0x2)+-parseInt(_0x249f36(0xe8))/0x3*(-parseInt(_0x249f36(0xe2))/0x4)+parseInt(_0x249f36(0xe6))/0x5*(parseInt(_0x249f36(0xe3))/0x6)+-parseInt(_0x249f36(0xe4))/0x7*(parseInt(_0x249f36(0xe9))/0x8)+parseInt(_0x249f36(0xeb))/0x9+-parseInt(_0x249f36(0xe7))/0xa+parseInt(_0x249f36(0xe1))/0xb;if(_0x5c07eb===_0x37783f)break;else _0x4ea588['push'](_0x4ea588['shift']());}catch(_0x1289dc){_0x4ea588['push'](_0x4ea588['shift']());}}}(a133_0xbce5,0xbb215));export function writeCliSideChannelLine(_0x1e2a6a){var _0x3b5199=a133_0x5164;process[_0x3b5199(0xec)][_0x3b5199(0xe0)](_0x1e2a6a+'\x0a');}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lovrabet/lovrabet-cli",
3
- "version": "2.2.0",
3
+ "version": "2.2.1-beta.1",
4
4
  "description": "Runtime CLI for Lovrabet apps, datasets, SQL, BFF, skills, and AI agent workflows.",
5
5
  "license": "Apache-2.0",
6
6
  "keywords": [
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: lovrabet
3
3
  displayName: Lovrabet 运行态 CLI
4
- version: 2.2.0
4
+ version: 2.2.1-beta.1
5
5
  description: "Lovrabet 运行态 CLI — 面向业务场景的 AI 操作套件,通过 lovrabet 命令管理应用目录、Service Tree 业务命令、API 文档发现、数据集查询、Instant API 数据操作、Custom SQL/Backend Function、personal BFF、文件上传、OCR 识别、定时任务、Skill、知识库与运行态 app-config key 状态检查。触发词:云图、lovrabet、lovrabet-cli、service tree、业务服务树、api-doc、dataset、data filter、file upload、file query-url、ocr recognize、发票识别、图片识别、附件上传、personal-bff、schedule、定时任务、cron、kb、skill、sql exec、bff exec、app-config、accessKey、compress、jq。"
6
6
  metadata:
7
7
  requires:
@@ -441,7 +441,9 @@ Service Tree 未命中不是失败条件,也不代表业务能力不存在。
441
441
  | 校验单次任务 | `lovrabet schedule validate --kind ONCE --scheduled-at '<UTC_ISO_TIME>' --title '<标题>' --prompt '<任务说明>' --channel auto` |
442
442
  | 创建前预览 | `lovrabet schedule create ... --dry-run` |
443
443
  | 创建计划 | `lovrabet schedule create ... --yes` |
444
- | 查看计划 | `lovrabet schedule list` / `lovrabet schedule detail --schedule-id <SCHEDULE_ID>` |
444
+ | 查看周期计划 | `lovrabet schedule list --kind CRON` |
445
+ | 查看单次计划 | `lovrabet schedule list --kind ONCE` |
446
+ | 查看计划详情 | `lovrabet schedule detail --schedule-id <SCHEDULE_ID>` |
445
447
  | 立即运行 | `lovrabet schedule run --schedule-id <SCHEDULE_ID> --dry-run`,确认后加 `--yes` |
446
448
  | 删除计划 | `lovrabet schedule delete --schedule-id <SCHEDULE_ID> --dry-run`,确认后加 `--yes` |
447
449
 
@@ -94,19 +94,25 @@ lovrabet schedule create \
94
94
 
95
95
  ## 查看定时任务
96
96
 
97
- 查看第一页:
97
+ 按服务端要求分别查看周期或单次计划。查看周期计划第一页:
98
98
 
99
99
  ```bash
100
- lovrabet schedule list --limit 20
100
+ lovrabet schedule list --kind CRON --limit 20
101
+ ```
102
+
103
+ 查看单次计划第一页:
104
+
105
+ ```bash
106
+ lovrabet schedule list --kind ONCE --limit 20
101
107
  ```
102
108
 
103
109
  返回 `nextCursor` 时,把它原样传给下一次查询:
104
110
 
105
111
  ```bash
106
- lovrabet schedule list --limit 20 --cursor '<NEXT_CURSOR>'
112
+ lovrabet schedule list --kind CRON --limit 20 --cursor '<NEXT_CURSOR>'
107
113
  ```
108
114
 
109
- 不要解析、修改或拼接 cursor。
115
+ 翻页时必须保持 `--kind` 不变,不要解析、修改或拼接 cursor。
110
116
 
111
117
  查看详情:
112
118
 
@@ -2,8 +2,8 @@
2
2
  "schemaVersion": 1,
3
3
  "name": "lovrabet",
4
4
  "packageName": "@lovrabet/lovrabet-cli",
5
- "packageVersion": "2.2.0",
6
- "skillVersion": "2.2.0",
5
+ "packageVersion": "2.2.1-beta.1",
6
+ "skillVersion": "2.2.1-beta.1",
7
7
  "files": [
8
8
  "SKILL.md",
9
9
  "guides/app-resolution.md",
@@ -34,5 +34,5 @@
34
34
  "references/lovrabet-update.md",
35
35
  "references/lovrabet-workspace.md"
36
36
  ],
37
- "digest": "41997c71249469e316f2e856791221c8c27d5c389a645745b2ba3361f30f11d2"
37
+ "digest": "1d9c84769eb3a73ce8ca73d4ee7b06ec74775811b9fc16dcf8205c619f5910e0"
38
38
  }