@lovrabet/lovrabet-cli 2.0.8 → 2.0.9-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 (70) hide show
  1. package/lib/cli.js +1 -1
  2. package/lib/commands/app/cache.js +1 -1
  3. package/lib/commands/app/definitions.js +1 -1
  4. package/lib/commands/app/mock-loader.js +1 -1
  5. package/lib/commands/app/remote-source.js +1 -1
  6. package/lib/commands/app/shared.js +1 -1
  7. package/lib/commands/auth/index.js +1 -1
  8. package/lib/commands/auth/prompt.js +1 -1
  9. package/lib/commands/bff/detail.js +1 -1
  10. package/lib/commands/bff/exec.js +1 -1
  11. package/lib/commands/bff/index.js +1 -1
  12. package/lib/commands/common/config-policy.js +1 -1
  13. package/lib/commands/common/constraints.js +1 -1
  14. package/lib/commands/common/flags.js +1 -1
  15. package/lib/commands/config/definitions.js +1 -1
  16. package/lib/commands/config/shared.js +1 -1
  17. package/lib/commands/data/index.js +1 -1
  18. package/lib/commands/dataset/detail.js +1 -1
  19. package/lib/commands/dataset/index.js +1 -1
  20. package/lib/commands/dataset/list.js +1 -1
  21. package/lib/commands/doctor.js +1 -1
  22. package/lib/commands/init.js +1 -1
  23. package/lib/commands/kb/index.js +1 -0
  24. package/lib/commands/logs/index.js +1 -1
  25. package/lib/commands/registry.js +1 -1
  26. package/lib/commands/schema.js +1 -1
  27. package/lib/commands/skill/index.js +1 -1
  28. package/lib/commands/sql/detail.js +1 -1
  29. package/lib/commands/sql/exec.js +1 -1
  30. package/lib/commands/sql/index.js +1 -1
  31. package/lib/commands/update.js +1 -1
  32. package/lib/config/schema.js +1 -1
  33. package/lib/constant/auth-mode.js +1 -1
  34. package/lib/constant/cli.js +1 -1
  35. package/lib/constant/defaults.js +1 -1
  36. package/lib/constant/distribution.js +1 -1
  37. package/lib/constant/domain.js +1 -1
  38. package/lib/constant/env.js +1 -1
  39. package/lib/constant/output.js +1 -1
  40. package/lib/constant/product.js +1 -1
  41. package/lib/constant/risk.js +1 -1
  42. package/lib/constant/url.js +1 -1
  43. package/lib/context.js +1 -1
  44. package/lib/core/api-client.js +1 -1
  45. package/lib/core/db-resolver.js +1 -1
  46. package/lib/core/sdk-client.js +1 -1
  47. package/lib/errors.js +1 -1
  48. package/lib/framework/build-all-flags.js +1 -1
  49. package/lib/framework/dryrun.js +1 -1
  50. package/lib/framework/flags.js +1 -1
  51. package/lib/framework/help.js +1 -1
  52. package/lib/framework/index.js +1 -1
  53. package/lib/framework/output.js +1 -1
  54. package/lib/framework/preparse.js +1 -1
  55. package/lib/framework/response.js +1 -1
  56. package/lib/framework/runner-confirmation.js +1 -1
  57. package/lib/framework/runner-error.js +1 -1
  58. package/lib/framework/runner.js +1 -1
  59. package/lib/framework/schema-export.js +1 -1
  60. package/lib/framework/types.js +1 -1
  61. package/lib/help.js +1 -1
  62. package/lib/skills/npx-skills-add.js +1 -1
  63. package/lib/skills/runtime-skill-sync.js +1 -0
  64. package/lib/utils/apply-jq-filter.js +1 -1
  65. package/lib/utils/logger.js +1 -1
  66. package/lib/utils/params.js +1 -1
  67. package/lib/utils/platform.js +1 -1
  68. package/lib/utils/version.js +1 -1
  69. package/lib/utils/write-cli-side-channel.js +1 -1
  70. package/package.json +1 -1
@@ -1 +1 @@
1
- function a51_0x172b(_0x5db1a8,_0x5a2a3b){_0x5db1a8=_0x5db1a8-0x186;const _0x2b624c=a51_0x2b62();let _0x172b62=_0x2b624c[_0x5db1a8];return _0x172b62;}(function(_0x416be6,_0x513129){const _0x447334=a51_0x172b,_0x1f08c2=_0x416be6();while(!![]){try{const _0x2f65f1=-parseInt(_0x447334(0x18d))/0x1+-parseInt(_0x447334(0x18a))/0x2*(parseInt(_0x447334(0x18f))/0x3)+parseInt(_0x447334(0x190))/0x4*(parseInt(_0x447334(0x191))/0x5)+parseInt(_0x447334(0x188))/0x6*(-parseInt(_0x447334(0x189))/0x7)+-parseInt(_0x447334(0x18c))/0x8*(parseInt(_0x447334(0x18b))/0x9)+parseInt(_0x447334(0x18e))/0xa*(-parseInt(_0x447334(0x187))/0xb)+parseInt(_0x447334(0x186))/0xc;if(_0x2f65f1===_0x513129)break;else _0x1f08c2['push'](_0x1f08c2['shift']());}catch(_0x4ee86e){_0x1f08c2['push'](_0x1f08c2['shift']());}}}(a51_0x2b62,0x90ca7));function a51_0x2b62(){const _0x544997=['66333zcRClw','60804EegMCu','255YHyvkd','21793236fDlZrA','1089HeHisl','18kKsXrk','2751959krMoNW','2sqSgJd','2157390BYCpyx','16nOCJpS','191817QMJhpy','12680IDaIvm'];a51_0x2b62=function(){return _0x544997;};return a51_0x2b62();}import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';export const formatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});
1
+ (function(_0x28e780,_0x27bb7b){const _0x1fdb23=a52_0x2f00,_0x4d47cb=_0x28e780();while(!![]){try{const _0xd90951=-parseInt(_0x1fdb23(0x18b))/0x1*(-parseInt(_0x1fdb23(0x188))/0x2)+parseInt(_0x1fdb23(0x18c))/0x3*(-parseInt(_0x1fdb23(0x190))/0x4)+-parseInt(_0x1fdb23(0x192))/0x5*(parseInt(_0x1fdb23(0x18e))/0x6)+-parseInt(_0x1fdb23(0x18f))/0x7+parseInt(_0x1fdb23(0x18d))/0x8+-parseInt(_0x1fdb23(0x189))/0x9+-parseInt(_0x1fdb23(0x18a))/0xa*(-parseInt(_0x1fdb23(0x191))/0xb);if(_0xd90951===_0x27bb7b)break;else _0x4d47cb['push'](_0x4d47cb['shift']());}catch(_0x26ce18){_0x4d47cb['push'](_0x4d47cb['shift']());}}}(a52_0x34f3,0xb42f0));import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';function a52_0x34f3(){const _0x414cad=['4395xLIKkX','274JIOTFX','7235541FBDmPn','18981510ycAUoI','1578RxXPGX','51oJTNqe','11589840ESgpXh','1020jwDOtJ','6343106EUMMsk','227176AMlaGX','11FbNSKl'];a52_0x34f3=function(){return _0x414cad;};return a52_0x34f3();}function a52_0x2f00(_0x5ae830,_0x57cbfc){_0x5ae830=_0x5ae830-0x188;const _0x34f32a=a52_0x34f3();let _0x2f0021=_0x34f32a[_0x5ae830];return _0x2f0021;}import{CliErrors}from'../errors.js';export const formatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});
@@ -1 +1 @@
1
- (function(_0x478521,_0x2a9a92){const _0x7fff84=a52_0x4b61,_0x1c6e1b=_0x478521();while(!![]){try{const _0x530831=parseInt(_0x7fff84(0x1fb))/0x1*(parseInt(_0x7fff84(0x1f6))/0x2)+-parseInt(_0x7fff84(0x1ff))/0x3+-parseInt(_0x7fff84(0x1e8))/0x4*(-parseInt(_0x7fff84(0x1fe))/0x5)+parseInt(_0x7fff84(0x1e6))/0x6+parseInt(_0x7fff84(0x1fc))/0x7+parseInt(_0x7fff84(0x1df))/0x8+parseInt(_0x7fff84(0x1f1))/0x9*(-parseInt(_0x7fff84(0x1e5))/0xa);if(_0x530831===_0x2a9a92)break;else _0x1c6e1b['push'](_0x1c6e1b['shift']());}catch(_0xcf7222){_0x1c6e1b['push'](_0x1c6e1b['shift']());}}}(a52_0x5e69,0x66124));function toKebab(_0x4d5d34){const _0x19619b=a52_0x4b61;return _0x4d5d34[_0x19619b(0x1ec)](/_/g,'-')[_0x19619b(0x1ec)](/-([A-Z]+)/g,(_0x470ce1,_0x4495ff)=>'-'+_0x4495ff['toLowerCase']())[_0x19619b(0x1ec)](/([a-z0-9])([A-Z])/g,(_0x66ff65,_0x519ab0,_0x4d3932)=>_0x519ab0+'-'+_0x4d3932)[_0x19619b(0x1e1)]();}function buildKnownFlags(_0x342206){const _0xd2d545=a52_0x4b61,_0x47fa5e=new Set();for(const _0x5acac8 of _0x342206){_0x47fa5e[_0xd2d545(0x1e7)](_0x5acac8[_0xd2d545(0x1f5)]),_0x47fa5e[_0xd2d545(0x1e7)](toCamelCase(_0x5acac8[_0xd2d545(0x1f5)]));}for(const _0x53693f of[_0xd2d545(0x1e4),'dryRun',_0xd2d545(0x1e9),_0xd2d545(0x1de)]){_0x47fa5e['add'](_0x53693f);}for(const _0x35038d of[_0xd2d545(0x1fa),_0xd2d545(0x1e2),_0xd2d545(0x1f3),'app',_0xd2d545(0x1e0),_0xd2d545(0x1f2),'ci',_0xd2d545(0x1ed),_0xd2d545(0x1f9)]){_0x47fa5e[_0xd2d545(0x1e7)](_0x35038d);}return _0x47fa5e;}function a52_0x4b61(_0x67690d,_0x4a0aa5){_0x67690d=_0x67690d-0x1de;const _0x5e69fa=a52_0x5e69();let _0x4b6172=_0x5e69fa[_0x67690d];return _0x4b6172;}function buildFlagTypeMap(_0x2e236b){const _0x4c5b23=a52_0x4b61,_0x4a6419=new Map();for(const _0x385368 of _0x2e236b){_0x4a6419['set'](_0x385368[_0x4c5b23(0x1f5)],_0x385368['type']),_0x4a6419[_0x4c5b23(0x1ef)](toCamelCase(_0x385368[_0x4c5b23(0x1f5)]),_0x385368['type']);}return _0x4a6419;}function toCamelCase(_0x3e68cf){const _0x2aa0b1=a52_0x4b61;return _0x3e68cf[_0x2aa0b1(0x1ec)](/-([a-z])/g,(_0x3d9a8a,_0x12f33c)=>_0x12f33c['toUpperCase']());}function a52_0x5e69(){const _0x48e875=['2625ScmYbT','1358913gXSehX','string','number','entries','has','format','3441520uuDWoo','nonInteractive','toLowerCase','env','original','dry-run','2982350TQTAKo','774192yMDXSI','add','3296mkQYIk','yes','get','length','replace','global','alias','set','push','9LEFWMV','non-interactive','appcode','slice','name','24718srqJma','corrected','keys','version','help','11xECyvY','290633DFeSVJ','boolean'];a52_0x5e69=function(){return _0x48e875;};return a52_0x5e69();}function aliasHandler(_0x1f9972,_0x55eb5f){const _0x5654d3=a52_0x4b61,_0x5ace45=[];for(const _0x136504 of Object[_0x5654d3(0x1f8)](_0x1f9972)){if(_0x55eb5f['has'](_0x136504))continue;const _0x2d2fb7=toKebab(_0x136504);_0x2d2fb7!==_0x136504&&_0x55eb5f[_0x5654d3(0x203)](_0x2d2fb7)&&_0x5ace45['push']({'original':_0x136504,'corrected':_0x2d2fb7,'handler':_0x5654d3(0x1ee)});}return _0x5ace45;}function stickyHandler(_0x54227e,_0x538828,_0x16c057){const _0x47638c=a52_0x4b61,_0x3d3c82=[];for(const [_0x2e2c13,_0x14580b]of Object[_0x47638c(0x202)](_0x54227e)){if(_0x14580b!==!![])continue;for(let _0x1f5560=_0x2e2c13[_0x47638c(0x1eb)]-0x1;_0x1f5560>0x0;_0x1f5560--){const _0x3c8444=_0x2e2c13['slice'](0x0,_0x1f5560),_0x156dcb=_0x2e2c13[_0x47638c(0x1f4)](_0x1f5560),_0x204e0b=toKebab(_0x3c8444),_0x421c04=toCamelCase(_0x3c8444),_0x4a820d=_0x538828['has'](_0x3c8444)?_0x3c8444:_0x538828[_0x47638c(0x203)](_0x204e0b)?_0x204e0b:_0x538828[_0x47638c(0x203)](_0x421c04)?_0x421c04:null;if(!_0x4a820d)continue;const _0x178d51=_0x16c057[_0x47638c(0x1ea)](_0x4a820d)??_0x47638c(0x200);let _0x3a94f1;if(_0x178d51===_0x47638c(0x201)){const _0x3999b8=Number(_0x156dcb);if(isNaN(_0x3999b8)||_0x156dcb==='')continue;_0x3a94f1=_0x3999b8;}else{if(_0x178d51===_0x47638c(0x1fd))continue;else{if(_0x156dcb==='')continue;_0x3a94f1=_0x156dcb;}}_0x3d3c82[_0x47638c(0x1f0)]({'original':_0x2e2c13,'corrected':_0x4a820d+'='+_0x3a94f1,'handler':'sticky'});break;}}return _0x3d3c82;}export function correctFlags(_0x265ed1,_0x152ed9){const _0x54a854=a52_0x4b61,_0x20cbab=buildKnownFlags(_0x152ed9),_0xb1e2bb=buildFlagTypeMap(_0x152ed9),_0x1fc2b9=aliasHandler(_0x265ed1,_0x20cbab),_0xc6535e=stickyHandler(_0x265ed1,_0x20cbab,_0xb1e2bb),_0x26fadc=[..._0x1fc2b9,..._0xc6535e];if(_0x26fadc[_0x54a854(0x1eb)]===0x0)return{'flags':_0x265ed1,'corrections':[]};const _0x353550={..._0x265ed1},_0x3c9fc0=new Set();for(const _0x2ca4d6 of _0x1fc2b9){_0x353550[_0x2ca4d6['corrected']]=_0x265ed1[_0x2ca4d6[_0x54a854(0x1e3)]],_0x3c9fc0[_0x54a854(0x1e7)](_0x2ca4d6['original']);}for(const _0x2e344f of _0xc6535e){const _0x1beea0=_0x2e344f['corrected']['indexOf']('='),_0x512ba0=_0x2e344f['corrected']['slice'](0x0,_0x1beea0),_0x406fa3=_0x2e344f[_0x54a854(0x1f7)][_0x54a854(0x1f4)](_0x1beea0+0x1),_0xd8297d=_0xb1e2bb['get'](_0x512ba0)??_0x54a854(0x200);_0xd8297d===_0x54a854(0x201)?_0x353550[_0x512ba0]=Number(_0x406fa3):_0x353550[_0x512ba0]=_0x406fa3,_0x3c9fc0[_0x54a854(0x1e7)](_0x2e344f[_0x54a854(0x1e3)]);}for(const _0x245c88 of _0x3c9fc0){delete _0x353550[_0x245c88];}return{'flags':_0x353550,'corrections':_0x26fadc};}
1
+ (function(_0x39ee6e,_0x40742c){const _0x5e7ba0=a53_0x5db4,_0x5b5591=_0x39ee6e();while(!![]){try{const _0x583598=-parseInt(_0x5e7ba0(0xa5))/0x1+parseInt(_0x5e7ba0(0x95))/0x2+parseInt(_0x5e7ba0(0x99))/0x3*(-parseInt(_0x5e7ba0(0x8b))/0x4)+-parseInt(_0x5e7ba0(0x9a))/0x5+-parseInt(_0x5e7ba0(0x9b))/0x6*(parseInt(_0x5e7ba0(0xa1))/0x7)+-parseInt(_0x5e7ba0(0x8c))/0x8+parseInt(_0x5e7ba0(0x94))/0x9;if(_0x583598===_0x40742c)break;else _0x5b5591['push'](_0x5b5591['shift']());}catch(_0x3795ea){_0x5b5591['push'](_0x5b5591['shift']());}}}(a53_0x33e3,0x85570));function toKebab(_0x157b6c){const _0x6430d8=a53_0x5db4;return _0x157b6c['replace'](/_/g,'-')[_0x6430d8(0xa9)](/-([A-Z]+)/g,(_0x4821e8,_0x1a9f39)=>'-'+_0x1a9f39[_0x6430d8(0xa6)]())['replace'](/([a-z0-9])([A-Z])/g,(_0x28f570,_0x51f00f,_0x42be61)=>_0x51f00f+'-'+_0x42be61)[_0x6430d8(0xa6)]();}function a53_0x5db4(_0x12b690,_0xde463e){_0x12b690=_0x12b690-0x8a;const _0x33e3ae=a53_0x33e3();let _0x5db4ce=_0x33e3ae[_0x12b690];return _0x5db4ce;}function buildKnownFlags(_0x1ad39b){const _0xaee097=a53_0x5db4,_0x5df3d0=new Set();for(const _0x1099aa of _0x1ad39b){_0x5df3d0[_0xaee097(0xa4)](_0x1099aa['name']),_0x5df3d0[_0xaee097(0xa4)](toCamelCase(_0x1099aa[_0xaee097(0x90)]));}for(const _0x2c46ef of[_0xaee097(0x8d),'dryRun',_0xaee097(0x9d),_0xaee097(0x97)]){_0x5df3d0[_0xaee097(0xa4)](_0x2c46ef);}for(const _0x889ce4 of['help','env',_0xaee097(0x91),_0xaee097(0xa8),'nonInteractive',_0xaee097(0x92),'ci',_0xaee097(0x8a),'version']){_0x5df3d0[_0xaee097(0xa4)](_0x889ce4);}return _0x5df3d0;}function buildFlagTypeMap(_0x5a718a){const _0x434386=a53_0x5db4,_0x2533da=new Map();for(const _0x2a7dc6 of _0x5a718a){_0x2533da[_0x434386(0xaa)](_0x2a7dc6[_0x434386(0x90)],_0x2a7dc6[_0x434386(0x96)]),_0x2533da[_0x434386(0xaa)](toCamelCase(_0x2a7dc6[_0x434386(0x90)]),_0x2a7dc6['type']);}return _0x2533da;}function toCamelCase(_0x14665a){const _0x41c7d2=a53_0x5db4;return _0x14665a[_0x41c7d2(0xa9)](/-([a-z])/g,(_0x504dc5,_0x16b474)=>_0x16b474[_0x41c7d2(0xa3)]());}function aliasHandler(_0x34a635,_0x5d00cc){const _0x5d09d9=a53_0x5db4,_0x28c5dc=[];for(const _0x3dc8dc of Object[_0x5d09d9(0x93)](_0x34a635)){if(_0x5d00cc['has'](_0x3dc8dc))continue;const _0x1e48f3=toKebab(_0x3dc8dc);_0x1e48f3!==_0x3dc8dc&&_0x5d00cc['has'](_0x1e48f3)&&_0x28c5dc[_0x5d09d9(0x98)]({'original':_0x3dc8dc,'corrected':_0x1e48f3,'handler':_0x5d09d9(0xa7)});}return _0x28c5dc;}function stickyHandler(_0x446334,_0x3134bb,_0x5b1f79){const _0x46491e=a53_0x5db4,_0x389149=[];for(const [_0x101132,_0x594f9c]of Object[_0x46491e(0xab)](_0x446334)){if(_0x594f9c!==!![])continue;for(let _0x25a9a6=_0x101132[_0x46491e(0x8e)]-0x1;_0x25a9a6>0x0;_0x25a9a6--){const _0xd69a05=_0x101132[_0x46491e(0xad)](0x0,_0x25a9a6),_0x1e906e=_0x101132[_0x46491e(0xad)](_0x25a9a6),_0x368d65=toKebab(_0xd69a05),_0x1995a7=toCamelCase(_0xd69a05),_0x317963=_0x3134bb[_0x46491e(0xac)](_0xd69a05)?_0xd69a05:_0x3134bb['has'](_0x368d65)?_0x368d65:_0x3134bb[_0x46491e(0xac)](_0x1995a7)?_0x1995a7:null;if(!_0x317963)continue;const _0x371b0a=_0x5b1f79[_0x46491e(0x9c)](_0x317963)??_0x46491e(0xa2);let _0x48f0a9;if(_0x371b0a===_0x46491e(0x8f)){const _0x45f470=Number(_0x1e906e);if(isNaN(_0x45f470)||_0x1e906e==='')continue;_0x48f0a9=_0x45f470;}else{if(_0x371b0a===_0x46491e(0xae))continue;else{if(_0x1e906e==='')continue;_0x48f0a9=_0x1e906e;}}_0x389149[_0x46491e(0x98)]({'original':_0x101132,'corrected':_0x317963+'='+_0x48f0a9,'handler':'sticky'});break;}}return _0x389149;}function a53_0x33e3(){const _0x4a3891=['set','entries','has','slice','boolean','global','4kdGbqV','6803816BjnnCK','dry-run','length','number','name','appcode','non-interactive','keys','28210797QqZLVE','764322KNPsEC','type','format','push','3034677Bbelhg','752600ACtXvi','54CVNRlt','get','yes','indexOf','original','corrected','416129weLGjn','string','toUpperCase','add','422955UuguOM','toLowerCase','alias','app','replace'];a53_0x33e3=function(){return _0x4a3891;};return a53_0x33e3();}export function correctFlags(_0x57ef1f,_0x140432){const _0x5ba04a=a53_0x5db4,_0xb8c157=buildKnownFlags(_0x140432),_0x133a25=buildFlagTypeMap(_0x140432),_0x36975d=aliasHandler(_0x57ef1f,_0xb8c157),_0x1c36ca=stickyHandler(_0x57ef1f,_0xb8c157,_0x133a25),_0x296c22=[..._0x36975d,..._0x1c36ca];if(_0x296c22[_0x5ba04a(0x8e)]===0x0)return{'flags':_0x57ef1f,'corrections':[]};const _0xc94064={..._0x57ef1f},_0x192456=new Set();for(const _0x437607 of _0x36975d){_0xc94064[_0x437607[_0x5ba04a(0xa0)]]=_0x57ef1f[_0x437607[_0x5ba04a(0x9f)]],_0x192456['add'](_0x437607[_0x5ba04a(0x9f)]);}for(const _0x2cf5d0 of _0x1c36ca){const _0x2fd3ac=_0x2cf5d0[_0x5ba04a(0xa0)][_0x5ba04a(0x9e)]('='),_0x94215=_0x2cf5d0[_0x5ba04a(0xa0)]['slice'](0x0,_0x2fd3ac),_0x28029d=_0x2cf5d0[_0x5ba04a(0xa0)][_0x5ba04a(0xad)](_0x2fd3ac+0x1),_0x54833a=_0x133a25[_0x5ba04a(0x9c)](_0x94215)??'string';_0x54833a===_0x5ba04a(0x8f)?_0xc94064[_0x94215]=Number(_0x28029d):_0xc94064[_0x94215]=_0x28029d,_0x192456[_0x5ba04a(0xa4)](_0x2cf5d0['original']);}for(const _0x4c94ae of _0x192456){delete _0xc94064[_0x4c94ae];}return{'flags':_0xc94064,'corrections':_0x296c22};}
@@ -1 +1 @@
1
- function a53_0x1367(_0x4bfdde,_0x52cab3){_0x4bfdde=_0x4bfdde-0x16d;var _0xe6dfbd=a53_0xe6df();var _0x1367de=_0xe6dfbd[_0x4bfdde];return _0x1367de;}(function(_0x4df1a8,_0x3d6517){var _0x2bd73e=a53_0x1367,_0x362f02=_0x4df1a8();while(!![]){try{var _0x11630c=parseInt(_0x2bd73e(0x176))/0x1*(parseInt(_0x2bd73e(0x16e))/0x2)+-parseInt(_0x2bd73e(0x16f))/0x3*(parseInt(_0x2bd73e(0x173))/0x4)+parseInt(_0x2bd73e(0x16d))/0x5+parseInt(_0x2bd73e(0x174))/0x6*(-parseInt(_0x2bd73e(0x175))/0x7)+parseInt(_0x2bd73e(0x172))/0x8+-parseInt(_0x2bd73e(0x171))/0x9+parseInt(_0x2bd73e(0x170))/0xa;if(_0x11630c===_0x3d6517)break;else _0x362f02['push'](_0x362f02['shift']());}catch(_0x179782){_0x362f02['push'](_0x362f02['shift']());}}}(a53_0xe6df,0x844f6));export{extractList,extractPaging}from'@lovrabet/cli-framework';function a53_0xe6df(){var _0x286f4b=['87366jMkxIB','1215vFqNXN','12824920kknjhi','4352058yNKeMy','3807768dLtKfm','4924bgkbWg','5960622WtqUjD','7gxVSdo','7bicjOS','2266260fEyTqd'];a53_0xe6df=function(){return _0x286f4b;};return a53_0xe6df();}
1
+ function a54_0x50fe(){var _0x3b06bc=['190tDSnbd','2162575QnjHzf','44ftOsTg','9159038PgcGbR','34513eTuVGy','6kJxvQg','1461361rsevhr','1265960isbgpJ','3953511BULzos','3755781VLBggt','4IpUgpE'];a54_0x50fe=function(){return _0x3b06bc;};return a54_0x50fe();}function a54_0x8af6(_0x327680,_0x1ddc14){_0x327680=_0x327680-0x132;var _0x50fe7e=a54_0x50fe();var _0x8af642=_0x50fe7e[_0x327680];return _0x8af642;}(function(_0x16fc77,_0x4b4fc3){var _0x576e7d=a54_0x8af6,_0xd8620f=_0x16fc77();while(!![]){try{var _0x4b76dc=-parseInt(_0x576e7d(0x13c))/0x1*(-parseInt(_0x576e7d(0x13a))/0x2)+-parseInt(_0x576e7d(0x135))/0x3+-parseInt(_0x576e7d(0x137))/0x4*(parseInt(_0x576e7d(0x139))/0x5)+-parseInt(_0x576e7d(0x132))/0x6*(parseInt(_0x576e7d(0x13b))/0x7)+parseInt(_0x576e7d(0x134))/0x8+parseInt(_0x576e7d(0x136))/0x9+-parseInt(_0x576e7d(0x138))/0xa*(-parseInt(_0x576e7d(0x133))/0xb);if(_0x4b76dc===_0x4b4fc3)break;else _0xd8620f['push'](_0xd8620f['shift']());}catch(_0x10ad70){_0xd8620f['push'](_0xd8620f['shift']());}}}(a54_0x50fe,0xc35df));export{extractList,extractPaging}from'@lovrabet/cli-framework';
@@ -1 +1 @@
1
- (function(_0x5cad4a,_0x2f4fa9){const _0x1fa14d=a54_0x4fe8,_0xb5c347=_0x5cad4a();while(!![]){try{const _0x38c0c8=-parseInt(_0x1fa14d(0x1e2))/0x1+parseInt(_0x1fa14d(0x1dc))/0x2*(parseInt(_0x1fa14d(0x1e3))/0x3)+parseInt(_0x1fa14d(0x1d8))/0x4+-parseInt(_0x1fa14d(0x1ed))/0x5*(parseInt(_0x1fa14d(0x1e4))/0x6)+-parseInt(_0x1fa14d(0x1d9))/0x7*(-parseInt(_0x1fa14d(0x1da))/0x8)+parseInt(_0x1fa14d(0x1eb))/0x9+-parseInt(_0x1fa14d(0x1db))/0xa;if(_0x38c0c8===_0x2f4fa9)break;else _0xb5c347['push'](_0xb5c347['shift']());}catch(_0xd341c){_0xb5c347['push'](_0xb5c347['shift']());}}}(a54_0x1e9c,0x58e9c));function a54_0x1e9c(){const _0x7218a0=['join','length','4329540zROEgx','params','5aZsdMI','--yes','code','push','2184992vdKdAw','4217885TMDUcw','8fVIEZP','7173850qZAlSL','212qMQHZR','description','commandLabel','name=','name','stringify','425319fPPJox','5466YFJmCo','1896618soABWh','\x20\x20\x20','entries','\x20\x20\x20Affected:\x20','command'];a54_0x1e9c=function(){return _0x7218a0;};return a54_0x1e9c();}import{CLI_BIN_NAME}from'../constant/cli.js';export function buildConfirmationLines(_0x473b09,_0x25f990,_0x1206f1){const _0x4cd74a=a54_0x4fe8,_0x1671bc=buildConfirmationContext(_0x473b09,_0x25f990,_0x1206f1),_0x14cb83=['⚠\x20\x20High-risk\x20operation:\x20'+_0x1671bc[_0x4cd74a(0x1de)]];return _0x1671bc[_0x4cd74a(0x1dd)]&&_0x14cb83['push'](_0x4cd74a(0x1e5)+_0x1671bc[_0x4cd74a(0x1dd)]),_0x1671bc['affectedRecords']&&_0x14cb83[_0x4cd74a(0x1d7)](_0x4cd74a(0x1e7)+_0x1671bc['affectedRecords']),_0x14cb83['push']('\x20\x20\x20Continue?\x20[y/N]\x20'),_0x14cb83;}function a54_0x4fe8(_0x448a24,_0x1bfe38){_0x448a24=_0x448a24-0x1d7;const _0x1e9c10=a54_0x1e9c();let _0x4fe8fa=_0x1e9c10[_0x448a24];return _0x4fe8fa;}export function reconstructCommandArgv(_0x156063,_0x4cbd85){const _0x2d5bb7=a54_0x4fe8,_0x49dc04=[CLI_BIN_NAME,_0x156063['service'],_0x156063[_0x2d5bb7(0x1e8)]];for(const [_0x1c64f4,_0x262682]of Object[_0x2d5bb7(0x1e6)](_0x4cbd85)){if(_0x262682===!![])_0x49dc04[_0x2d5bb7(0x1d7)]('--'+_0x1c64f4);else _0x262682!==![]&&_0x262682!==undefined&&_0x262682!==''&&_0x49dc04[_0x2d5bb7(0x1d7)]('--'+_0x1c64f4+'\x20'+JSON[_0x2d5bb7(0x1e1)](_0x262682));}return _0x49dc04['push'](_0x2d5bb7(0x1ee)),_0x49dc04[_0x2d5bb7(0x1e9)]('\x20');}function buildConfirmationContext(_0x1629b8,_0x181608,_0x5a9ed7){const _0x3ab6f0=extractAffectedRecords(_0x5a9ed7);return{'commandLabel':_0x181608,'description':_0x1629b8['description'],'affectedRecords':_0x3ab6f0};}function extractAffectedRecords(_0x49a4a1){const _0x4a403b=a54_0x4fe8,_0x1ed2bc=[];if(_0x49a4a1[_0x4a403b(0x1ef)])_0x1ed2bc[_0x4a403b(0x1d7)]('code='+_0x49a4a1[_0x4a403b(0x1ef)]);if(_0x49a4a1['id'])_0x1ed2bc[_0x4a403b(0x1d7)]('id='+_0x49a4a1['id']);if(_0x49a4a1[_0x4a403b(0x1e0)])_0x1ed2bc[_0x4a403b(0x1d7)](_0x4a403b(0x1df)+_0x49a4a1[_0x4a403b(0x1e0)]);if(_0x49a4a1[_0x4a403b(0x1ec)])_0x1ed2bc[_0x4a403b(0x1d7)]('params='+_0x49a4a1[_0x4a403b(0x1ec)]);return _0x1ed2bc[_0x4a403b(0x1ea)]>0x0?_0x1ed2bc[_0x4a403b(0x1e9)](',\x20'):undefined;}
1
+ (function(_0x444646,_0x3fe34d){const _0x2764ad=a55_0x396b,_0x2e789d=_0x444646();while(!![]){try{const _0x26d216=parseInt(_0x2764ad(0x151))/0x1+-parseInt(_0x2764ad(0x14e))/0x2*(parseInt(_0x2764ad(0x152))/0x3)+parseInt(_0x2764ad(0x15b))/0x4+-parseInt(_0x2764ad(0x154))/0x5*(-parseInt(_0x2764ad(0x142))/0x6)+-parseInt(_0x2764ad(0x14d))/0x7*(parseInt(_0x2764ad(0x156))/0x8)+-parseInt(_0x2764ad(0x157))/0x9+parseInt(_0x2764ad(0x159))/0xa;if(_0x26d216===_0x3fe34d)break;else _0x2e789d['push'](_0x2e789d['shift']());}catch(_0x1da9b3){_0x2e789d['push'](_0x2e789d['shift']());}}}(a55_0x57f8,0xc6036));import{CLI_BIN_NAME}from'../constant/cli.js';export function buildConfirmationLines(_0xf580e8,_0x4fdcc7,_0x2c0619){const _0x38403f=a55_0x396b,_0x29b852=buildConfirmationContext(_0xf580e8,_0x4fdcc7,_0x2c0619),_0x138fbd=[_0x38403f(0x144)+_0x29b852[_0x38403f(0x150)]];return _0x29b852[_0x38403f(0x155)]&&_0x138fbd[_0x38403f(0x145)](_0x38403f(0x14f)+_0x29b852['description']),_0x29b852[_0x38403f(0x14a)]&&_0x138fbd['push']('\x20\x20\x20Affected:\x20'+_0x29b852[_0x38403f(0x14a)]),_0x138fbd[_0x38403f(0x145)](_0x38403f(0x158)),_0x138fbd;}function a55_0x396b(_0x122d58,_0x2687a4){_0x122d58=_0x122d58-0x142;const _0x57f81c=a55_0x57f8();let _0x396b4c=_0x57f81c[_0x122d58];return _0x396b4c;}export function reconstructCommandArgv(_0xdc9d7f,_0x24edbd){const _0x5359de=a55_0x396b,_0x2db683=[CLI_BIN_NAME,_0xdc9d7f['service'],_0xdc9d7f[_0x5359de(0x15c)]];for(const [_0x24bcc3,_0x4bc8d9]of Object[_0x5359de(0x15a)](_0x24edbd)){if(_0x4bc8d9===!![])_0x2db683[_0x5359de(0x145)]('--'+_0x24bcc3);else _0x4bc8d9!==![]&&_0x4bc8d9!==undefined&&_0x4bc8d9!==''&&_0x2db683[_0x5359de(0x145)]('--'+_0x24bcc3+'\x20'+JSON[_0x5359de(0x153)](_0x4bc8d9));}return _0x2db683['push'](_0x5359de(0x146)),_0x2db683['join']('\x20');}function buildConfirmationContext(_0x1f4f69,_0x33b353,_0x31d296){const _0x4d5b12=a55_0x396b,_0x48a791=extractAffectedRecords(_0x31d296);return{'commandLabel':_0x33b353,'description':_0x1f4f69[_0x4d5b12(0x155)],'affectedRecords':_0x48a791};}function a55_0x57f8(){const _0x9291f2=['commandLabel','1059159bBcUiy','57NNNwCC','stringify','10lNpPes','description','16zeMmIY','13176558bHFxEk','\x20\x20\x20Continue?\x20[y/N]\x20','16672020HBdIuH','entries','2599808bCTKVb','command','2178114CwulyL','code','⚠\x20\x20High-risk\x20operation:\x20','push','--yes','name','length','code=','affectedRecords','join','params','3293269xQKebP','93294XlLdNF','\x20\x20\x20'];a55_0x57f8=function(){return _0x9291f2;};return a55_0x57f8();}function extractAffectedRecords(_0x4012ef){const _0x2c8533=a55_0x396b,_0x44f01b=[];if(_0x4012ef['code'])_0x44f01b[_0x2c8533(0x145)](_0x2c8533(0x149)+_0x4012ef[_0x2c8533(0x143)]);if(_0x4012ef['id'])_0x44f01b[_0x2c8533(0x145)]('id='+_0x4012ef['id']);if(_0x4012ef[_0x2c8533(0x147)])_0x44f01b['push']('name='+_0x4012ef[_0x2c8533(0x147)]);if(_0x4012ef['params'])_0x44f01b[_0x2c8533(0x145)]('params='+_0x4012ef[_0x2c8533(0x14c)]);return _0x44f01b[_0x2c8533(0x148)]>0x0?_0x44f01b[_0x2c8533(0x14b)](',\x20'):undefined;}
@@ -1 +1 @@
1
- (function(_0x150086,_0x18b561){const _0x42c7a5=a55_0x55c5,_0x2c4454=_0x150086();while(!![]){try{const _0x157def=parseInt(_0x42c7a5(0xf8))/0x1*(-parseInt(_0x42c7a5(0xfb))/0x2)+-parseInt(_0x42c7a5(0xf9))/0x3*(parseInt(_0x42c7a5(0xee))/0x4)+parseInt(_0x42c7a5(0xfd))/0x5*(parseInt(_0x42c7a5(0xfa))/0x6)+-parseInt(_0x42c7a5(0xf3))/0x7+-parseInt(_0x42c7a5(0xf6))/0x8*(-parseInt(_0x42c7a5(0xf5))/0x9)+-parseInt(_0x42c7a5(0xf1))/0xa*(parseInt(_0x42c7a5(0xfc))/0xb)+-parseInt(_0x42c7a5(0xf4))/0xc*(-parseInt(_0x42c7a5(0xf7))/0xd);if(_0x157def===_0x18b561)break;else _0x2c4454['push'](_0x2c4454['shift']());}catch(_0x3f6cb8){_0x2c4454['push'](_0x2c4454['shift']());}}}(a55_0x176b,0x1b48a));import{LovrabetError}from'@lovrabet/sdk';import{CliErrors}from'../errors.js';function a55_0x55c5(_0x222807,_0x2c66e5){_0x222807=_0x222807-0xee;const _0x176bf4=a55_0x176b();let _0x55c517=_0x176bf4[_0x222807];return _0x55c517;}export function mapUserFacingExecuteError(_0x1d79e8){if(_0x1d79e8 instanceof LovrabetError)return CliErrors['validation'](userFacingLovrabetMessage(_0x1d79e8));return _0x1d79e8;}function a55_0x176b(){const _0x457d9a=['3202QVTzUh','143UYYbzL','356515KjGZRN','4wWlJsn','string','description','170860lqNFoM','trim','648655EhfVIK','4356024mkWwak','45lXImFK','143464DKCkgs','13MSVYfS','127PYskrc','110136fBlXGv','18aPyXnW'];a55_0x176b=function(){return _0x457d9a;};return a55_0x176b();}function userFacingLovrabetMessage(_0x52c59b){const _0x111792=a55_0x55c5,_0x4b6358=_0x52c59b[_0x111792(0xf0)];if(_0x4b6358!==undefined&&_0x4b6358!==null){if(typeof _0x4b6358===_0x111792(0xef)&&_0x4b6358[_0x111792(0xf2)]())return _0x4b6358[_0x111792(0xf2)]();try{return JSON['stringify'](_0x4b6358);}catch{}}return _0x52c59b['message'];}
1
+ (function(_0x94d10a,_0x444f9a){const _0x3ed3d2=a56_0x2d4f,_0x5395e7=_0x94d10a();while(!![]){try{const _0x53e12a=-parseInt(_0x3ed3d2(0xd1))/0x1*(parseInt(_0x3ed3d2(0xc6))/0x2)+parseInt(_0x3ed3d2(0xd0))/0x3+-parseInt(_0x3ed3d2(0xcf))/0x4+parseInt(_0x3ed3d2(0xc4))/0x5+parseInt(_0x3ed3d2(0xc7))/0x6*(parseInt(_0x3ed3d2(0xce))/0x7)+parseInt(_0x3ed3d2(0xc8))/0x8*(-parseInt(_0x3ed3d2(0xca))/0x9)+parseInt(_0x3ed3d2(0xc3))/0xa;if(_0x53e12a===_0x444f9a)break;else _0x5395e7['push'](_0x5395e7['shift']());}catch(_0x11884b){_0x5395e7['push'](_0x5395e7['shift']());}}}(a56_0x1906,0x659e8));import{LovrabetError}from'@lovrabet/sdk';import{CliErrors}from'../errors.js';export function mapUserFacingExecuteError(_0x1c7166){const _0x17526a=a56_0x2d4f;if(_0x1c7166 instanceof LovrabetError)return CliErrors[_0x17526a(0xcb)](userFacingLovrabetMessage(_0x1c7166));return _0x1c7166;}function a56_0x1906(){const _0x13f6d9=['validation','trim','description','7OkcrhN','2860404wAriuk','220596FCJmdQ','1ahceNR','stringify','17000620BxtZEf','2166195eRXxaV','message','1634410Thkjig','427794CTGMEM','8VkJzDd','string','2966346OwitDP'];a56_0x1906=function(){return _0x13f6d9;};return a56_0x1906();}function a56_0x2d4f(_0x6edc21,_0x1177c7){_0x6edc21=_0x6edc21-0xc2;const _0x190642=a56_0x1906();let _0x2d4f1d=_0x190642[_0x6edc21];return _0x2d4f1d;}function userFacingLovrabetMessage(_0x2afecf){const _0x4e482b=a56_0x2d4f,_0x6a6064=_0x2afecf[_0x4e482b(0xcd)];if(_0x6a6064!==undefined&&_0x6a6064!==null){if(typeof _0x6a6064===_0x4e482b(0xc9)&&_0x6a6064[_0x4e482b(0xcc)]())return _0x6a6064['trim']();try{return JSON[_0x4e482b(0xc2)](_0x6a6064);}catch{}}return _0x2afecf[_0x4e482b(0xc5)];}
@@ -1 +1 @@
1
- const a56_0x725397=a56_0x2179;(function(_0x3488e4,_0x28a3df){const _0x3e6235=a56_0x2179,_0x138983=_0x3488e4();while(!![]){try{const _0x87787a=-parseInt(_0x3e6235(0x176))/0x1+-parseInt(_0x3e6235(0x16d))/0x2*(parseInt(_0x3e6235(0x169))/0x3)+-parseInt(_0x3e6235(0x168))/0x4*(parseInt(_0x3e6235(0x17c))/0x5)+-parseInt(_0x3e6235(0x189))/0x6+parseInt(_0x3e6235(0x182))/0x7*(-parseInt(_0x3e6235(0x15d))/0x8)+parseInt(_0x3e6235(0x18b))/0x9*(parseInt(_0x3e6235(0x181))/0xa)+parseInt(_0x3e6235(0x167))/0xb;if(_0x87787a===_0x28a3df)break;else _0x138983['push'](_0x138983['shift']());}catch(_0x4f9f11){_0x138983['push'](_0x138983['shift']());}}}(a56_0x59a3,0x55b63));import{runCommandWithAdapter,requireConfirmationPrompt}from'@lovrabet/cli-framework';import{formatOutput}from'../framework/output.js';import{CliErrors}from'../errors.js';function a56_0x2179(_0x16a2ab,_0xe3c0f8){_0x16a2ab=_0x16a2ab-0x158;const _0x59a364=a56_0x59a3();let _0x217934=_0x59a364[_0x16a2ab];return _0x217934;}import{CLI_BIN_NAME,GLOBAL_FLAGS,PIPELINE_FLAG_NAMES}from'../constant/cli.js';import{PRODUCT_CONFIG,productEnv,productEnvName}from'../constant/product.js';import{isNonInteractiveMode,readAppCodeFromConfig}from'../context.js';import{AUTH_MODE}from'../constant/auth-mode.js';import{getApiDomain}from'../constant/domain.js';import{buildConfirmationLines,reconstructCommandArgv}from'../framework/runner-confirmation.js';import{mapUserFacingExecuteError}from'../framework/runner-error.js';export function resolveAuthMode(_0x235526){const _0x4080e6=a56_0x2179;return void _0x235526,AUTH_MODE[_0x4080e6(0x16b)];}export function createPipelineEnv(_0x15468d,_0x42fbad){const _0xdb488d=a56_0x2179,_0x39deb6=typeof _0x42fbad[_0xdb488d(0x16a)]===_0xdb488d(0x18d)&&_0x42fbad['app'][_0xdb488d(0x16f)]();return{'rawFlags':_0x42fbad,'appCode':_0x15468d[_0xdb488d(0x16c)]||productEnv(_0xdb488d(0x18c))||(_0x39deb6?undefined:readAppCodeFromConfig()),'appCodeSource':_0x15468d[_0xdb488d(0x165)],'apiDomain':getApiDomain(),'isNonInteractive':isNonInteractiveMode(_0x42fbad),'defaultFormat':_0x15468d[_0xdb488d(0x180)],'defaultPageSize':_0x15468d['pageSize'],'defaultVerbose':_0x15468d[_0xdb488d(0x18f)],'riskLevel':_0x15468d[_0xdb488d(0x164)],'accessKey':_0x15468d['accessKey'],'env':_0x15468d['env'],'mergedCli':{'defaultApp':_0x15468d['defaultApp'],'currentApp':_0x15468d[_0xdb488d(0x184)],'appCode':_0x15468d[_0xdb488d(0x16c)]}};}const runnerAdapter={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[a56_0x725397(0x17e)](_0x56ab1a=>PIPELINE_FLAG_NAMES['has'](_0x56ab1a[a56_0x725397(0x15e)]))[a56_0x725397(0x163)](({name:_0x2a2a7c,type:_0x2e2ed0,description:_0x2f6bcf})=>({'name':_0x2a2a7c,'type':_0x2e2ed0,'description':_0x2f6bcf})),'formatOutput':formatOutput,'getCommandLabel'(_0x10930a){const _0x146e91=a56_0x725397;return CLI_BIN_NAME+'\x20'+_0x10930a[_0x146e91(0x160)]+'\x20'+_0x10930a['command'];},'riskPolicy':{'onViolation'(_0x52021c){const _0x4352b2=a56_0x725397;console[_0x4352b2(0x17d)](_0x52021c);},'createError'(_0x59f27b){const _0x4f5641=a56_0x725397;return CliErrors[_0x4f5641(0x162)](_0x59f27b);}},async 'prepare'(_0x3fa28e,_0x3bf75c){const _0x79849d=a56_0x725397,_0x4d9095=resolveAuthMode(_0x3bf75c);if(_0x3fa28e[_0x79849d(0x187)]!==![]){if(!_0x3bf75c[_0x79849d(0x186)])throw CliErrors[_0x79849d(0x17f)](_0x79849d(0x17a)+PRODUCT_CONFIG[_0x79849d(0x175)]+_0x79849d(0x15f)+productEnvName('ACCESS_KEY')+'.');const {setActiveAK:_0x541110}=await import('../core/api-client.js');_0x541110(_0x3bf75c[_0x79849d(0x186)]);}let _0x4087a4='';if(_0x3fa28e[_0x79849d(0x158)]!==![]){_0x4087a4=_0x3bf75c[_0x79849d(0x16c)]??'',_0x4087a4=await resolveExplicitAppName(_0x3fa28e,_0x3bf75c,_0x4087a4);if(!_0x4087a4)throw CliErrors[_0x79849d(0x179)]('Set\x20appcode\x20via\x20--appcode\x20or\x20in\x20'+PRODUCT_CONFIG[_0x79849d(0x175)]+'.');}if(_0x4087a4){const {initSdkClient:_0x11b765}=await import(_0x79849d(0x15a));_0x11b765({'appCode':_0x4087a4,'env':_0x3bf75c[_0x79849d(0x159)]??'production','accessKey':_0x3bf75c[_0x79849d(0x186)],'authMode':_0x4d9095});}return{'defaults':{'booleans':{'verbose':_0x3bf75c[_0x79849d(0x171)]},'numbers':{'pagesize':_0x3bf75c['defaultPageSize']}},'extras':{'appCode':_0x4087a4,'cookie':'','apiDomain':_0x3bf75c[_0x79849d(0x173)],'apiDir':'','accessKey':_0x3bf75c['accessKey'],'envName':_0x3bf75c[_0x79849d(0x159)],'mergedCli':_0x3bf75c[_0x79849d(0x15b)]}};},async 'confirmHighRisk'({def:_0x951418,env:_0xbe9876,flags:_0x326212,commandLabel:_0x203776}){const _0x47cc6a=a56_0x725397;if(_0xbe9876[_0x47cc6a(0x18a)]){const _0x14a88d=reconstructCommandArgv(_0x951418,_0x326212);throw CliErrors[_0x47cc6a(0x18e)]('High-risk\x20operation\x20`'+_0x203776+_0x47cc6a(0x174)+(_0x47cc6a(0x178)+_0x14a88d));}await requireConfirmationPrompt({'lines':buildConfirmationLines(_0x951418,_0x203776,_0x326212),'createCancelledError':_0x9726d0=>CliErrors[_0x47cc6a(0x162)](_0x9726d0)});},'mapDryRunError'(_0x8a7bfb){return mapUserFacingExecuteError(_0x8a7bfb);},'mapExecuteError'(_0x37f3ea){return mapUserFacingExecuteError(_0x37f3ea);},async 'finalize'(){const _0x870a6=a56_0x725397,{clearActiveAK:_0x43f3a5}=await import(_0x870a6(0x177));_0x43f3a5();}};async function resolveExplicitAppName(_0x4a4d7f,_0x379b5d,_0xb2815c){const _0x54fa1b=a56_0x725397;if(_0x4a4d7f['requiresAppCode']===![])return _0xb2815c;const _0x1ae564=typeof _0x379b5d[_0x54fa1b(0x166)][_0x54fa1b(0x16a)]==='string'?_0x379b5d[_0x54fa1b(0x166)][_0x54fa1b(0x16a)][_0x54fa1b(0x16f)]():'';if(!_0x1ae564)return _0xb2815c;const _0x44f69a=typeof _0x379b5d[_0x54fa1b(0x166)][_0x54fa1b(0x183)]===_0x54fa1b(0x18d)&&_0x379b5d[_0x54fa1b(0x166)][_0x54fa1b(0x183)][_0x54fa1b(0x16f)]()||productEnv(_0x54fa1b(0x18c));if(_0x44f69a||_0x379b5d['appCodeSource']===_0x54fa1b(0x16e))return _0xb2815c;const {getRemoteAppList:_0xe06622}=await import(_0x54fa1b(0x185)),_0x5211bd=await _0xe06622({'env':_0x379b5d[_0x54fa1b(0x159)]??_0x54fa1b(0x172),'accessKey':_0x379b5d[_0x54fa1b(0x186)]}),_0x2b950f=_0x5211bd[_0x54fa1b(0x170)][_0x54fa1b(0x15c)](_0x4862c1=>_0x4862c1[_0x54fa1b(0x17b)]===_0x1ae564),_0x3f0a20=_0x2b950f?.['appCode']?.[_0x54fa1b(0x16f)]();if(_0x3f0a20)return _0x3f0a20;throw CliErrors[_0x54fa1b(0x18e)]('Unknown\x20app:\x20'+_0x1ae564,_0x54fa1b(0x188)+CLI_BIN_NAME+'\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20add\x20apps.'+_0x1ae564+_0x54fa1b(0x161)+PRODUCT_CONFIG[_0x54fa1b(0x175)]+'.');}function a56_0x59a3(){const _0x2da1f9=['appcode','currentApp','../commands/app/remote-source.js','accessKey','requiresAuth','Run\x20`','1944876TrxGnN','isNonInteractive','4131909cpkJWc','APPCODE','string','validation','verbose','requiresAppCode','env','../core/sdk-client.js','mergedCli','find','254744urbNtR','name','\x20or\x20pass\x20','service','.appcode\x20to\x20','cancelled','map','riskLevel','appCodeSource','rawFlags','13814526niHiID','8DjcoLS','44265ZRcbHo','app','ClientAk','appCode','20XRbfKD','local-alias','trim','items','defaultVerbose','production','apiDomain','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.\x0a','newConfigFileName','559494fALTnc','../core/api-client.js','\x20\x20To\x20proceed:\x20','configMissing','Set\x20accessKey\x20in\x20','appName','513325ymWkxP','error','filter','authRequired','format','10fklkiI','28vCsxmu'];a56_0x59a3=function(){return _0x2da1f9;};return a56_0x59a3();}export async function runCommand(_0xbd4fbd,_0x1a3422){await runCommandWithAdapter(_0xbd4fbd,_0x1a3422,runnerAdapter);}
1
+ const a57_0x19bb0b=a57_0x5a06;(function(_0x3bbb8d,_0x1bb4d9){const _0x1dc655=a57_0x5a06,_0x5dad66=_0x3bbb8d();while(!![]){try{const _0xb8fc3a=parseInt(_0x1dc655(0x127))/0x1*(-parseInt(_0x1dc655(0x13d))/0x2)+-parseInt(_0x1dc655(0x137))/0x3+-parseInt(_0x1dc655(0x134))/0x4*(parseInt(_0x1dc655(0x120))/0x5)+parseInt(_0x1dc655(0x131))/0x6*(parseInt(_0x1dc655(0x13e))/0x7)+parseInt(_0x1dc655(0x135))/0x8*(-parseInt(_0x1dc655(0x10c))/0x9)+parseInt(_0x1dc655(0x132))/0xa*(parseInt(_0x1dc655(0x125))/0xb)+-parseInt(_0x1dc655(0x115))/0xc*(-parseInt(_0x1dc655(0x136))/0xd);if(_0xb8fc3a===_0x1bb4d9)break;else _0x5dad66['push'](_0x5dad66['shift']());}catch(_0x32cab9){_0x5dad66['push'](_0x5dad66['shift']());}}}(a57_0xce7a,0x355d9));import{runCommandWithAdapter,requireConfirmationPrompt}from'@lovrabet/cli-framework';function a57_0xce7a(){const _0x1b4119=['local-alias','\x20or\x20pass\x20','requiresAuth','../commands/app/remote-source.js','27708MZnxru','10xMlJWR','defaultApp','4EWeCDP','34216dLFBjC','62283XMQrSM','510633jceEyE','accessKey','string','../core/api-client.js','riskLevel','APPCODE','2KDSZrj','525hEnRYR','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.\x0a','newConfigFileName','validation','command','env','filter','Unknown\x20app:\x20','189OGkjEd','app','Set\x20appcode\x20via\x20--appcode\x20or\x20in\x20','appName','map','cancelled','ACCESS_KEY','ClientAk','requiresAppCode','1116blXfMO','mergedCli','isNonInteractive','error','appCode','defaultPageSize','\x20\x20To\x20proceed:\x20','name','../core/sdk-client.js','High-risk\x20operation\x20`','appcode','608635tjnlRR','trim','format','apiDomain','appCodeSource','2681998uCVTfB','currentApp','435391czMqwn','find','rawFlags','has','production','configMissing'];a57_0xce7a=function(){return _0x1b4119;};return a57_0xce7a();}import{formatOutput}from'../framework/output.js';function a57_0x5a06(_0x53d285,_0x9e9d0){_0x53d285=_0x53d285-0x10b;const _0xce7a4d=a57_0xce7a();let _0x5a0644=_0xce7a4d[_0x53d285];return _0x5a0644;}import{CliErrors}from'../errors.js';import{CLI_BIN_NAME,GLOBAL_FLAGS,PIPELINE_FLAG_NAMES}from'../constant/cli.js';import{PRODUCT_CONFIG,productEnv,productEnvName}from'../constant/product.js';import{isNonInteractiveMode,readAppCodeFromConfig}from'../context.js';import{AUTH_MODE}from'../constant/auth-mode.js';import{getApiDomain}from'../constant/domain.js';import{buildConfirmationLines,reconstructCommandArgv}from'../framework/runner-confirmation.js';import{mapUserFacingExecuteError}from'../framework/runner-error.js';export function resolveAuthMode(_0x176eba){const _0x5911ec=a57_0x5a06;return void _0x176eba,AUTH_MODE[_0x5911ec(0x113)];}export function createPipelineEnv(_0x1126be,_0x276841){const _0x296f77=a57_0x5a06,_0x37ef22=typeof _0x276841[_0x296f77(0x10d)]===_0x296f77(0x139)&&_0x276841['app']['trim']();return{'rawFlags':_0x276841,'appCode':_0x1126be[_0x296f77(0x119)]||productEnv(_0x296f77(0x13c))||(_0x37ef22?undefined:readAppCodeFromConfig()),'appCodeSource':_0x1126be['appCodeSource'],'apiDomain':getApiDomain(),'isNonInteractive':isNonInteractiveMode(_0x276841),'defaultFormat':_0x1126be[_0x296f77(0x122)],'defaultPageSize':_0x1126be['pageSize'],'defaultVerbose':_0x1126be['verbose'],'riskLevel':_0x1126be[_0x296f77(0x13b)],'accessKey':_0x1126be['accessKey'],'env':_0x1126be[_0x296f77(0x143)],'mergedCli':{'defaultApp':_0x1126be[_0x296f77(0x133)],'currentApp':_0x1126be[_0x296f77(0x126)],'appCode':_0x1126be['appCode']}};}const runnerAdapter={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[a57_0x19bb0b(0x144)](_0x3dd78a=>PIPELINE_FLAG_NAMES[a57_0x19bb0b(0x12a)](_0x3dd78a[a57_0x19bb0b(0x11c)]))[a57_0x19bb0b(0x110)](({name:_0x5747a5,type:_0x5ed532,description:_0x195d4f})=>({'name':_0x5747a5,'type':_0x5ed532,'description':_0x195d4f})),'formatOutput':formatOutput,'getCommandLabel'(_0x14c45c){const _0x4ee9d4=a57_0x19bb0b;return CLI_BIN_NAME+'\x20'+_0x14c45c['service']+'\x20'+_0x14c45c[_0x4ee9d4(0x142)];},'riskPolicy':{'onViolation'(_0x69e105){const _0xa2712e=a57_0x19bb0b;console[_0xa2712e(0x118)](_0x69e105);},'createError'(_0x2e5e98){const _0x4c7ede=a57_0x19bb0b;return CliErrors[_0x4c7ede(0x111)](_0x2e5e98);}},async 'prepare'(_0x1364e1,_0x3803cc){const _0x55aaf2=a57_0x19bb0b,_0x43c460=resolveAuthMode(_0x3803cc);if(_0x1364e1[_0x55aaf2(0x12f)]!==![]){if(!_0x3803cc[_0x55aaf2(0x138)])throw CliErrors['authRequired']('Set\x20accessKey\x20in\x20'+PRODUCT_CONFIG[_0x55aaf2(0x140)]+_0x55aaf2(0x12e)+productEnvName(_0x55aaf2(0x112))+'.');const {setActiveAK:_0x532428}=await import(_0x55aaf2(0x13a));_0x532428(_0x3803cc[_0x55aaf2(0x138)]);}let _0x5486fe='';if(_0x1364e1[_0x55aaf2(0x114)]!==![]){_0x5486fe=_0x3803cc[_0x55aaf2(0x119)]??'',_0x5486fe=await resolveExplicitAppName(_0x1364e1,_0x3803cc,_0x5486fe);if(!_0x5486fe)throw CliErrors[_0x55aaf2(0x12c)](_0x55aaf2(0x10e)+PRODUCT_CONFIG['newConfigFileName']+'.');}if(_0x5486fe){const {initSdkClient:_0x5e63c8}=await import(_0x55aaf2(0x11d));_0x5e63c8({'appCode':_0x5486fe,'env':_0x3803cc[_0x55aaf2(0x143)]??_0x55aaf2(0x12b),'accessKey':_0x3803cc['accessKey'],'authMode':_0x43c460});}return{'defaults':{'booleans':{'verbose':_0x3803cc['defaultVerbose']},'numbers':{'pagesize':_0x3803cc[_0x55aaf2(0x11a)]}},'extras':{'appCode':_0x5486fe,'cookie':'','apiDomain':_0x3803cc[_0x55aaf2(0x123)],'apiDir':'','accessKey':_0x3803cc[_0x55aaf2(0x138)],'envName':_0x3803cc[_0x55aaf2(0x143)],'mergedCli':_0x3803cc[_0x55aaf2(0x116)]}};},async 'confirmHighRisk'({def:_0x1f3dd6,env:_0x555064,flags:_0x4bac0c,commandLabel:_0x59612f}){const _0xbbbc1d=a57_0x19bb0b;if(_0x555064[_0xbbbc1d(0x117)]){const _0x1513de=reconstructCommandArgv(_0x1f3dd6,_0x4bac0c);throw CliErrors[_0xbbbc1d(0x141)](_0xbbbc1d(0x11e)+_0x59612f+_0xbbbc1d(0x13f)+(_0xbbbc1d(0x11b)+_0x1513de));}await requireConfirmationPrompt({'lines':buildConfirmationLines(_0x1f3dd6,_0x59612f,_0x4bac0c),'createCancelledError':_0x5eaec3=>CliErrors[_0xbbbc1d(0x111)](_0x5eaec3)});},'mapDryRunError'(_0x348615){return mapUserFacingExecuteError(_0x348615);},'mapExecuteError'(_0x219235){return mapUserFacingExecuteError(_0x219235);},async 'finalize'(){const _0x17caea=a57_0x19bb0b,{clearActiveAK:_0x14c8b3}=await import(_0x17caea(0x13a));_0x14c8b3();}};async function resolveExplicitAppName(_0x5c59bc,_0x1217fc,_0x45066a){const _0x13b19a=a57_0x19bb0b;if(_0x5c59bc['requiresAppCode']===![])return _0x45066a;const _0x33f3cd=typeof _0x1217fc[_0x13b19a(0x129)][_0x13b19a(0x10d)]===_0x13b19a(0x139)?_0x1217fc['rawFlags'][_0x13b19a(0x10d)]['trim']():'';if(!_0x33f3cd)return _0x45066a;const _0x152dd5=typeof _0x1217fc[_0x13b19a(0x129)][_0x13b19a(0x11f)]===_0x13b19a(0x139)&&_0x1217fc[_0x13b19a(0x129)][_0x13b19a(0x11f)][_0x13b19a(0x121)]()||productEnv(_0x13b19a(0x13c));if(_0x152dd5||_0x1217fc[_0x13b19a(0x124)]===_0x13b19a(0x12d))return _0x45066a;const {getRemoteAppList:_0x30514d}=await import(_0x13b19a(0x130)),_0x395582=await _0x30514d({'env':_0x1217fc[_0x13b19a(0x143)]??_0x13b19a(0x12b),'accessKey':_0x1217fc['accessKey']}),_0x48eec4=_0x395582['items'][_0x13b19a(0x128)](_0xcc40d6=>_0xcc40d6[_0x13b19a(0x10f)]===_0x33f3cd),_0x21a4f7=_0x48eec4?.[_0x13b19a(0x119)]?.['trim']();if(_0x21a4f7)return _0x21a4f7;throw CliErrors['validation'](_0x13b19a(0x10b)+_0x33f3cd,'Run\x20`'+CLI_BIN_NAME+'\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20add\x20apps.'+_0x33f3cd+'.appcode\x20to\x20'+PRODUCT_CONFIG['newConfigFileName']+'.');}export async function runCommand(_0x4c27bf,_0x1e9959){await runCommandWithAdapter(_0x4c27bf,_0x1e9959,runnerAdapter);}
@@ -1 +1 @@
1
- function a57_0x4e99(_0x1eed9c,_0x28afcd){_0x1eed9c=_0x1eed9c-0xa9;const _0x736d8e=a57_0x736d();let _0x4e9920=_0x736d8e[_0x1eed9c];return _0x4e9920;}function a57_0x736d(){const _0x1c9c00=['5161JmqEYP','240WPhFFv','198CnXoKQ','828876IpubHl','1436127HnMPcL','4aXzksB','1189137CugmBZ','277083vLXvLI','8hrRUzz','../commands/registry.js','29036062OpxOWD','2693120jxWIzk'];a57_0x736d=function(){return _0x1c9c00;};return a57_0x736d();}(function(_0x2bc2cc,_0x54d97c){const _0x5964b6=a57_0x4e99,_0x46adc0=_0x2bc2cc();while(!![]){try{const _0x1272d4=-parseInt(_0x5964b6(0xb3))/0x1*(parseInt(_0x5964b6(0xa9))/0x2)+parseInt(_0x5964b6(0xad))/0x3*(-parseInt(_0x5964b6(0xac))/0x4)+-parseInt(_0x5964b6(0xb2))/0x5+parseInt(_0x5964b6(0xaa))/0x6+-parseInt(_0x5964b6(0xab))/0x7*(parseInt(_0x5964b6(0xaf))/0x8)+parseInt(_0x5964b6(0xae))/0x9*(-parseInt(_0x5964b6(0xb4))/0xa)+parseInt(_0x5964b6(0xb1))/0xb;if(_0x1272d4===_0x54d97c)break;else _0x46adc0['push'](_0x46adc0['shift']());}catch(_0xc204b0){_0x46adc0['push'](_0x46adc0['shift']());}}}(a57_0x736d,0x5ead5));import{buildSchemaPayload as a57_0x6da70b}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';import{getCliVersion}from'../utils/version.js';export async function buildSchemaPayload(){const _0x331fd8=a57_0x4e99,{serviceRegistry:_0xb6006e,findDefinition:_0x1729ff}=await import(_0x331fd8(0xb0));return a57_0x6da70b({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':process.env.GIT_COMMIT??'','globalFlags':GLOBAL_FLAGS,'serviceRegistry':_0xb6006e,'buildAllFlags':buildAllFlags,'findDefinition':_0x1729ff});}
1
+ (function(_0x365f19,_0x56634a){const _0x504f75=a58_0x507c,_0x490d7b=_0x365f19();while(!![]){try{const _0x67e0c3=-parseInt(_0x504f75(0xfe))/0x1*(parseInt(_0x504f75(0xf9))/0x2)+-parseInt(_0x504f75(0xfc))/0x3+parseInt(_0x504f75(0xf8))/0x4*(parseInt(_0x504f75(0xfd))/0x5)+parseInt(_0x504f75(0x101))/0x6+-parseInt(_0x504f75(0xff))/0x7*(-parseInt(_0x504f75(0xfb))/0x8)+parseInt(_0x504f75(0x102))/0x9+-parseInt(_0x504f75(0xfa))/0xa;if(_0x67e0c3===_0x56634a)break;else _0x490d7b['push'](_0x490d7b['shift']());}catch(_0x4ce91e){_0x490d7b['push'](_0x490d7b['shift']());}}}(a58_0x1173,0x8f4ac));import{buildSchemaPayload as a58_0x1635fb}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';function a58_0x507c(_0x24f1ac,_0x3c21d0){_0x24f1ac=_0x24f1ac-0xf8;const _0x11735e=a58_0x1173();let _0x507ccd=_0x11735e[_0x24f1ac];return _0x507ccd;}import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';import{getCliVersion}from'../utils/version.js';export async function buildSchemaPayload(){const _0x2b5e5d=a58_0x507c,{serviceRegistry:_0x1fbb72,findDefinition:_0x3225cc}=await import(_0x2b5e5d(0x100));return a58_0x1635fb({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':process.env.GIT_COMMIT??'','globalFlags':GLOBAL_FLAGS,'serviceRegistry':_0x1fbb72,'buildAllFlags':buildAllFlags,'findDefinition':_0x3225cc});}function a58_0x1173(){const _0x20d1f0=['2seQfNJ','5603370mYKSTj','5502016jPdZqy','140211mDOJKu','4955HjhHMy','723784DKLUaZ','7DkuJPV','../commands/registry.js','6328380wDRNkN','1104993IiTXxb','212GFviGB'];a58_0x1173=function(){return _0x20d1f0;};return a58_0x1173();}
@@ -1 +1 @@
1
- (function(_0x33437a,_0x2a2199){var _0x4dd5ad=a58_0x4048,_0x5cd4eb=_0x33437a();while(!![]){try{var _0x241a23=parseInt(_0x4dd5ad(0x1af))/0x1*(-parseInt(_0x4dd5ad(0x1ab))/0x2)+parseInt(_0x4dd5ad(0x1ad))/0x3+-parseInt(_0x4dd5ad(0x1a9))/0x4*(parseInt(_0x4dd5ad(0x1ae))/0x5)+-parseInt(_0x4dd5ad(0x1a7))/0x6+parseInt(_0x4dd5ad(0x1aa))/0x7*(-parseInt(_0x4dd5ad(0x1a8))/0x8)+parseInt(_0x4dd5ad(0x1ac))/0x9+parseInt(_0x4dd5ad(0x1a6))/0xa;if(_0x241a23===_0x2a2199)break;else _0x5cd4eb['push'](_0x5cd4eb['shift']());}catch(_0x245244){_0x5cd4eb['push'](_0x5cd4eb['shift']());}}}(a58_0x260e,0x371e5));export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat}from'@lovrabet/cli-framework';function a58_0x4048(_0x531695,_0x4d359d){_0x531695=_0x531695-0x1a6;var _0x260eac=a58_0x260e();var _0x4048a7=_0x260eac[_0x531695];return _0x4048a7;}function a58_0x260e(){var _0x3518ca=['1626834kxHyye','32736jGMIxM','3668HhmGhi','539MuRxqs','619774rxupRV','1926522jeLXTN','447759CeSiBy','170aDsJqJ','1NYZMPa','7897420XlCdvz'];a58_0x260e=function(){return _0x3518ca;};return a58_0x260e();}
1
+ (function(_0x40ccc5,_0x436dfe){var _0x2066f8=a59_0x491a,_0x335df4=_0x40ccc5();while(!![]){try{var _0x595105=parseInt(_0x2066f8(0x1dd))/0x1+parseInt(_0x2066f8(0x1de))/0x2*(-parseInt(_0x2066f8(0x1df))/0x3)+-parseInt(_0x2066f8(0x1db))/0x4*(parseInt(_0x2066f8(0x1d8))/0x5)+parseInt(_0x2066f8(0x1dc))/0x6*(parseInt(_0x2066f8(0x1d7))/0x7)+-parseInt(_0x2066f8(0x1d9))/0x8+-parseInt(_0x2066f8(0x1e0))/0x9+parseInt(_0x2066f8(0x1d6))/0xa*(parseInt(_0x2066f8(0x1da))/0xb);if(_0x595105===_0x436dfe)break;else _0x335df4['push'](_0x335df4['shift']());}catch(_0x1c178b){_0x335df4['push'](_0x335df4['shift']());}}}(a59_0x4bfe,0x54789));function a59_0x491a(_0x558484,_0x40588a){_0x558484=_0x558484-0x1d6;var _0x4bfea6=a59_0x4bfe();var _0x491af2=_0x4bfea6[_0x558484];return _0x491af2;}export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat}from'@lovrabet/cli-framework';function a59_0x4bfe(){var _0x56f6ff=['55gLqQHD','4133944cjMrVV','1199XCQMaO','17432dnyJjk','156tbHZAj','378697OpyiCk','1486hxsNHE','573Iwzfzv','5013243fQuWWd','109510uOeVOH','10031AASXxJ'];a59_0x4bfe=function(){return _0x56f6ff;};return a59_0x4bfe();}
package/lib/help.js CHANGED
@@ -1 +1 @@
1
- function a59_0x5f43(_0x2e3ac0,_0x33880e){_0x2e3ac0=_0x2e3ac0-0x1cb;const _0x329521=a59_0x3295();let _0x5f436d=_0x329521[_0x2e3ac0];return _0x5f436d;}(function(_0x198747,_0x285ee2){const _0xc5fb6e=a59_0x5f43,_0x5623bc=_0x198747();while(!![]){try{const _0x2a657f=-parseInt(_0xc5fb6e(0x1d4))/0x1+-parseInt(_0xc5fb6e(0x1d6))/0x2*(parseInt(_0xc5fb6e(0x1d0))/0x3)+-parseInt(_0xc5fb6e(0x1cc))/0x4+parseInt(_0xc5fb6e(0x1d1))/0x5+parseInt(_0xc5fb6e(0x1d3))/0x6+parseInt(_0xc5fb6e(0x1d2))/0x7+-parseInt(_0xc5fb6e(0x1cb))/0x8*(parseInt(_0xc5fb6e(0x1ce))/0x9);if(_0x2a657f===_0x285ee2)break;else _0x5623bc['push'](_0x5623bc['shift']());}catch(_0xf3f98c){_0x5623bc['push'](_0x5623bc['shift']());}}}(a59_0x3295,0xcf1c3));import{jsx as a59_0x259b5b,jsxs as a59_0x32b657}from'react/jsx-runtime';function a59_0x3295(){const _0x4cbcf5=['96082ZeLzAF','592bYJSYo','1295656PKwPNn','\x20\x20Use\x20','84312zvBszH','column','87ZDMUCw','4319365QGWQsH','5616884jcsGCN','9577932ZhnBmp','3949hwOtwp','\x20to\x20view\x20available\x20commands.'];a59_0x3295=function(){return _0x4cbcf5;};return a59_0x3295();}import{useEffect}from'react';import{Box,Text,useApp}from'ink';import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';export function Help(){const _0x2c6daf=a59_0x5f43,{exit:_0x510c25}=useApp();return useEffect(()=>{_0x510c25();},[_0x510c25]),a59_0x32b657(Box,{'flexDirection':_0x2c6daf(0x1cf),'marginTop':0x1,'marginBottom':0x1,'children':[a59_0x259b5b(Box,{'children':a59_0x259b5b(Text,{'bold':!![],'color':'green','children':'\x20\x20'+CLI_DISPLAY_NAME})}),a59_0x32b657(Box,{'marginTop':0x1,'children':[a59_0x259b5b(Text,{'dimColor':!![],'children':_0x2c6daf(0x1cd)}),a59_0x259b5b(Text,{'bold':!![],'color':'green','children':CLI_BIN_NAME+'\x20--help'}),a59_0x259b5b(Text,{'dimColor':!![],'children':_0x2c6daf(0x1d5)})]})]});}
1
+ (function(_0x312f28,_0x3cd423){const _0x1426cf=a60_0x6b99,_0x2618ec=_0x312f28();while(!![]){try{const _0xde00eb=-parseInt(_0x1426cf(0xc3))/0x1+parseInt(_0x1426cf(0xc6))/0x2+-parseInt(_0x1426cf(0xc0))/0x3+parseInt(_0x1426cf(0xbf))/0x4+-parseInt(_0x1426cf(0xbc))/0x5+parseInt(_0x1426cf(0xc2))/0x6+parseInt(_0x1426cf(0xc5))/0x7*(parseInt(_0x1426cf(0xbe))/0x8);if(_0xde00eb===_0x3cd423)break;else _0x2618ec['push'](_0x2618ec['shift']());}catch(_0x42542c){_0x2618ec['push'](_0x2618ec['shift']());}}}(a60_0x434f,0x90bd7));function a60_0x434f(){const _0xc1c894=['\x20--help','3756010vBfIuc','green','16ijUjSl','2900316QANCME','2083086uOBUzp','column','5660478IABlqp','1001318DDtfoO','\x20to\x20view\x20available\x20commands.','972986xPjvhD','2186498SbMleU','\x20\x20Use\x20'];a60_0x434f=function(){return _0xc1c894;};return a60_0x434f();}import{jsx as a60_0x444e11,jsxs as a60_0x13c266}from'react/jsx-runtime';import{useEffect}from'react';function a60_0x6b99(_0x308636,_0x106081){_0x308636=_0x308636-0xba;const _0x434f70=a60_0x434f();let _0x6b99f6=_0x434f70[_0x308636];return _0x6b99f6;}import{Box,Text,useApp}from'ink';import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';export function Help(){const _0x1ad265=a60_0x6b99,{exit:_0x44e40d}=useApp();return useEffect(()=>{_0x44e40d();},[_0x44e40d]),a60_0x13c266(Box,{'flexDirection':_0x1ad265(0xc1),'marginTop':0x1,'marginBottom':0x1,'children':[a60_0x444e11(Box,{'children':a60_0x444e11(Text,{'bold':!![],'color':_0x1ad265(0xbd),'children':'\x20\x20'+CLI_DISPLAY_NAME})}),a60_0x13c266(Box,{'marginTop':0x1,'children':[a60_0x444e11(Text,{'dimColor':!![],'children':_0x1ad265(0xba)}),a60_0x444e11(Text,{'bold':!![],'color':'green','children':CLI_BIN_NAME+_0x1ad265(0xbb)}),a60_0x444e11(Text,{'dimColor':!![],'children':_0x1ad265(0xc4)})]})]});}
@@ -1 +1 @@
1
- function a60_0x3e80(_0x3f04d1,_0x5c7d9e){_0x3f04d1=_0x3f04d1-0x140;const _0x3273a7=a60_0x3273();let _0x3e809f=_0x3273a7[_0x3f04d1];return _0x3e809f;}(function(_0x15bfd8,_0x5ec30f){const _0x149b69=a60_0x3e80,_0x406b65=_0x15bfd8();while(!![]){try{const _0x34525d=-parseInt(_0x149b69(0x14c))/0x1+parseInt(_0x149b69(0x140))/0x2+parseInt(_0x149b69(0x141))/0x3+-parseInt(_0x149b69(0x142))/0x4*(parseInt(_0x149b69(0x143))/0x5)+parseInt(_0x149b69(0x145))/0x6+parseInt(_0x149b69(0x14b))/0x7+-parseInt(_0x149b69(0x14f))/0x8;if(_0x34525d===_0x5ec30f)break;else _0x406b65['push'](_0x406b65['shift']());}catch(_0x416149){_0x406b65['push'](_0x406b65['shift']());}}}(a60_0x3273,0x4072a));function a60_0x3273(){const _0x2df86b=['toString','1624966Mjhtjx','96165dRGtGE','stdout','npx','5381240dpUmDq','240878WeVboC','1083663dHJfEA','8GziIGW','377065SbzHfA','unknown','2818956VcnEQj','inherit','status','stderr','log'];a60_0x3273=function(){return _0x2df86b;};return a60_0x3273();}import{spawnSync}from'node:child_process';import{resolveNpmBin}from'../utils/platform.js';import{LOVRABET_SKILL_SOURCE as a60_0x4bbf78}from'../constant/distribution.js';import{PRODUCT_CONFIG,productEnvName}from'../constant/product.js';export const LOVRABET_SKILL_SOURCE=a60_0x4bbf78;export const LOVRABET_SKIP_NPX_SKILLS_ENV=productEnvName(PRODUCT_CONFIG['skipNpxSkillsEnvSuffix']);export function shouldSkipNpxSkillsAdd(){return process.env[LOVRABET_SKIP_NPX_SKILLS_ENV]==='1';}export function runNpxSkillsAddGlobal(_0xac8d86,_0x417ed6=LOVRABET_SKILL_SOURCE,_0x4040d5){const _0x545f77=a60_0x3e80;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x3e6db0=_0x4040d5?.['stdio']??_0x545f77(0x146),_0x3258eb=resolveNpmBin(_0x545f77(0x14e)),_0x12638a=['skills','add',_0x417ed6,'-g','-y'],_0x35fa17=[_0x3258eb,..._0x12638a]['join']('\x20');console[_0x545f77(0x149)]('*\x20'+_0x35fa17);const _0x1d39cf=spawnSync(_0x3258eb,_0x12638a,{'cwd':_0xac8d86,'stdio':_0x3e6db0,'env':process.env,'shell':![]});if(_0x1d39cf['status']===0x0)return{'ok':!![],'status':0x0};let _0x4bc4e0='exit\x20'+(_0x1d39cf[_0x545f77(0x147)]??_0x545f77(0x144));if(_0x3e6db0==='pipe'){const _0x45d15d=_0x1d39cf[_0x545f77(0x148)]?_0x1d39cf[_0x545f77(0x148)][_0x545f77(0x14a)]()['trim']():'',_0x48fa2a=_0x1d39cf['stdout']?_0x1d39cf[_0x545f77(0x14d)]['toString']()['trim']():'';if(_0x45d15d)_0x4bc4e0=_0x45d15d;else{if(_0x48fa2a)_0x4bc4e0=_0x48fa2a;}}return{'ok':![],'status':_0x1d39cf[_0x545f77(0x147)]??null,'error':_0x4bc4e0};}
1
+ function a61_0x55b7(_0x11b936,_0x13bc8d){_0x11b936=_0x11b936-0x155;const _0xac064d=a61_0xac06();let _0x55b7ef=_0xac064d[_0x11b936];return _0x55b7ef;}const a61_0x1e42d7=a61_0x55b7;(function(_0x11db9f,_0x27ce22){const _0x1b139f=a61_0x55b7,_0x4f03aa=_0x11db9f();while(!![]){try{const _0x16a342=-parseInt(_0x1b139f(0x15b))/0x1*(parseInt(_0x1b139f(0x168))/0x2)+-parseInt(_0x1b139f(0x15a))/0x3*(-parseInt(_0x1b139f(0x161))/0x4)+parseInt(_0x1b139f(0x16e))/0x5*(-parseInt(_0x1b139f(0x16c))/0x6)+parseInt(_0x1b139f(0x165))/0x7+-parseInt(_0x1b139f(0x16a))/0x8+-parseInt(_0x1b139f(0x169))/0x9*(-parseInt(_0x1b139f(0x16b))/0xa)+parseInt(_0x1b139f(0x156))/0xb*(-parseInt(_0x1b139f(0x15d))/0xc);if(_0x16a342===_0x27ce22)break;else _0x4f03aa['push'](_0x4f03aa['shift']());}catch(_0x3e38b2){_0x4f03aa['push'](_0x4f03aa['shift']());}}}(a61_0xac06,0x2e3c1));import{spawnSync}from'node:child_process';import{resolveNpmBin}from'../utils/platform.js';import{LOVRABET_SKILL_SOURCE as a61_0x59e0f7}from'../constant/distribution.js';function a61_0xac06(){const _0x17412b=['1398700KVNHNl','exit\x20','toString','status','1877645FUsfIM','inherit','pipe','174yfNvwC','729lzhWzY','245984qZcsjg','42830pQijtX','42bryLRd','trim','218585wjPzjJ','log','163768nRCkkX','unknown','stdout','npx','3UMkTMo','1791autXSC','stdio','228jwwcLy','join','skipNpxSkillsEnvSuffix','skills'];a61_0xac06=function(){return _0x17412b;};return a61_0xac06();}import{PRODUCT_CONFIG,productEnvName}from'../constant/product.js';export const LOVRABET_SKILL_SOURCE=a61_0x59e0f7;export const LOVRABET_SKIP_NPX_SKILLS_ENV=productEnvName(PRODUCT_CONFIG[a61_0x1e42d7(0x15f)]);export function shouldSkipNpxSkillsAdd(){return process.env[LOVRABET_SKIP_NPX_SKILLS_ENV]==='1';}export function runNpxSkillsAddGlobal(_0x3a3273,_0x40731b=LOVRABET_SKILL_SOURCE,_0x109968){const _0x4e396c=a61_0x1e42d7;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x417ffb=_0x109968?.[_0x4e396c(0x15c)]??_0x4e396c(0x166),_0x532671=resolveNpmBin(_0x4e396c(0x159)),_0x5f2704=[_0x4e396c(0x160),'add',_0x40731b,'-g','-y'],_0x1758c9=[_0x532671,..._0x5f2704][_0x4e396c(0x15e)]('\x20');console[_0x4e396c(0x155)]('*\x20'+_0x1758c9);const _0x29571a=spawnSync(_0x532671,_0x5f2704,{'cwd':_0x3a3273,'stdio':_0x417ffb,'env':process.env,'shell':![]});if(_0x29571a[_0x4e396c(0x164)]===0x0)return{'ok':!![],'status':0x0};let _0x26e597=_0x4e396c(0x162)+(_0x29571a[_0x4e396c(0x164)]??_0x4e396c(0x157));if(_0x417ffb===_0x4e396c(0x167)){const _0x221687=_0x29571a['stderr']?_0x29571a['stderr'][_0x4e396c(0x163)]()[_0x4e396c(0x16d)]():'',_0x3b006e=_0x29571a[_0x4e396c(0x158)]?_0x29571a[_0x4e396c(0x158)][_0x4e396c(0x163)]()[_0x4e396c(0x16d)]():'';if(_0x221687)_0x26e597=_0x221687;else{if(_0x3b006e)_0x26e597=_0x3b006e;}}return{'ok':![],'status':_0x29571a[_0x4e396c(0x164)]??null,'error':_0x26e597};}
@@ -0,0 +1 @@
1
+ const a62_0x38194a=a62_0x42a4;(function(_0x26309a,_0x561ee1){const _0x15f8de=a62_0x42a4,_0x50f0df=_0x26309a();while(!![]){try{const _0xfe31e6=-parseInt(_0x15f8de(0x101))/0x1+-parseInt(_0x15f8de(0xe7))/0x2+-parseInt(_0x15f8de(0xf6))/0x3*(-parseInt(_0x15f8de(0xec))/0x4)+-parseInt(_0x15f8de(0x105))/0x5*(-parseInt(_0x15f8de(0xfa))/0x6)+-parseInt(_0x15f8de(0xf0))/0x7+-parseInt(_0x15f8de(0xf7))/0x8*(-parseInt(_0x15f8de(0xe2))/0x9)+parseInt(_0x15f8de(0x100))/0xa;if(_0xfe31e6===_0x561ee1)break;else _0x50f0df['push'](_0x50f0df['shift']());}catch(_0x958261){_0x50f0df['push'](_0x50f0df['shift']());}}}(a62_0x56b3,0xeafc6));import{createHash}from'node:crypto';function a62_0x56b3(){const _0x109c75=['values','270042fPIBfI','728iVjiuc','updated','includes','503622QLHlGL','description','Missing\x20','Only\x20personal\x20Skills\x20can\x20be\x20pushed;\x20','unchanged','.agents','14652790BiAvSN','206249rkcNXv','lovrabet.skill.json','Push\x20the\x20directory\x20first\x20or\x20rerun\x20pull\x20with\x20a\x20future\x20force\x20option.','cacheRoot','75qSgGIt','toISOString','endsWith','\x20for\x20local\x20path:\x20','dir','claudeSkillsDir','hex','skillCode','contentHash','appCode','homeDir','path\x20segment','isSymbolicLink','forkedFromVersion','skillName','tags','get','forkedFromSkillId','push','paths','\x20has\x20scope=\x22','Refusing\x20to\x20overwrite\x20unmanaged\x20symlink:\x20','digest','\x22\x20does\x20not\x20match\x20current\x20appCode\x20\x22','hasUpstreamUpdate','trim','Refusing\x20to\x20overwrite\x20unmanaged\x20path:\x20','Local\x20SKILL.md\x20has\x20unpushed\x20edits:\x20','update','skills','managedRoot','\x20or\x20directory\x20name.','personal','Unsafe\x20','Skill\x20metadata\x20appCode\x20\x22','set','homeDirName','SKILL.md','Runtime\x20Skill\x20is\x20missing\x20skillCode.','80973xLmFqb','readonly','tenantCode','env','utf8','1717174hcBAOe','startsWith','skill','sourceSessionId','Invalid\x20','4QiRDFl','created','.claude','userId','11240159muTwXT','pulledAt','stringify','validation','scope'];a62_0x56b3=function(){return _0x109c75;};return a62_0x56b3();}import{existsSync,lstatSync,mkdirSync,readFileSync,readlinkSync,realpathSync,renameSync,rmSync,symlinkSync,unlinkSync,writeFileSync}from'node:fs';import{homedir}from'node:os';import{basename,dirname,isAbsolute,resolve,sep}from'node:path';import{fingerprintAccessKey}from'../commands/app/cache.js';import{PRODUCT_CONFIG}from'../constant/product.js';import{CliErrors}from'../errors.js';const METADATA_FILE=a62_0x38194a(0x102),SKILL_FILE=a62_0x38194a(0xe0);export function resolveSkillSyncPaths(_0x4866aa={}){const _0x545214=a62_0x38194a,_0x2ea77c=_0x4866aa[_0x545214(0xc5)]??homedir(),_0x11673f=resolve(_0x2ea77c,PRODUCT_CONFIG[_0x545214(0xdf)],'cache');return{'homeDir':_0x2ea77c,'cacheRoot':_0x11673f,'managedRoot':resolve(_0x2ea77c,PRODUCT_CONFIG[_0x545214(0xdf)]),'agentsSkillsDir':_0x4866aa['agentsSkillsDir']??resolve(_0x2ea77c,_0x545214(0xff),_0x545214(0xd8)),'claudeSkillsDir':_0x4866aa[_0x545214(0x10a)]??resolve(_0x2ea77c,_0x545214(0xee),_0x545214(0xd8))};}export function getRuntimeSkillCacheRoot(_0x4f1856,_0x30e983,_0x2d7370={}){const _0x2b9b35=a62_0x38194a,_0x1de4c7=resolveSkillSyncPaths(_0x2d7370);return resolve(_0x1de4c7[_0x2b9b35(0x104)],_0x4f1856,fingerprintAccessKey(_0x30e983),_0x2b9b35(0xd8));}export function getRuntimeSkillDir(_0x1c29fc,_0x28b379,_0x7dd91b,_0x583678,_0x3f0bf7,_0x4bc25a={}){const _0xaaf302=a62_0x38194a;return resolve(getRuntimeSkillCacheRoot(_0x1c29fc,_0x28b379,_0x4bc25a),safePathSegment(_0x7dd91b,_0xaaf302(0xc4)),_0x583678,safePathSegment(_0x3f0bf7,_0xaaf302(0xc2)));}export function contentHash(_0x520fb8){const _0x502e3f=a62_0x38194a;return createHash('sha256')[_0x502e3f(0xd7)](_0x520fb8)[_0x502e3f(0xd1)](_0x502e3f(0x10b));}export function materializeRuntimeSkill(_0x5abe1a,_0x11fc14,_0x59f870){const _0x11cc26=a62_0x38194a,_0x46179e=requireSkillCode(_0x5abe1a),_0x337c6c=_0x5abe1a['content']??'',_0x4f112b=getRuntimeSkillDir(_0x59f870[_0x11cc26(0xe5)],_0x59f870['accessKey'],_0x59f870[_0x11cc26(0xc4)],_0x11fc14,_0x46179e,_0x59f870[_0x11cc26(0xce)]),_0x41e554=resolve(_0x4f112b,SKILL_FILE),_0x52bc20=resolve(_0x4f112b,METADATA_FILE),_0x57fffe=contentHash(_0x337c6c);ensurePulledFileCanBeOverwritten(_0x41e554,_0x52bc20,_0x59f870['force']===!![]),mkdirSync(_0x4f112b,{'recursive':!![],'mode':0x1c0});const _0x3991e5=existsSync(_0x41e554)?readFileSync(_0x41e554,_0x11cc26(0xe6)):undefined;return writeTextAtomic(_0x41e554,_0x337c6c,0x180),writeJsonAtomic(_0x52bc20,buildMetadata(_0x5abe1a,_0x11fc14,_0x59f870[_0x11cc26(0xc4)],_0x57fffe,_0x59f870[_0x11cc26(0xf1)])),{'skill':_0x5abe1a,'scope':_0x11fc14,'dir':_0x4f112b,'skillMdPath':_0x41e554,'metadataPath':_0x52bc20,'contentHash':_0x57fffe,'changed':_0x3991e5!==_0x337c6c};}export function linkEffectiveRuntimeSkills(_0x57d8cf,_0x3e94b8,_0x25f917={}){const _0x2249ad=a62_0x38194a,_0x4eeb0a=new Map();for(const _0x16d26b of _0x57d8cf){const _0x5de6ad=_0x16d26b[_0x2249ad(0xe9)][_0x2249ad(0xc2)];if(!_0x5de6ad)continue;const _0x404f62=_0x4eeb0a[_0x2249ad(0xcb)](_0x5de6ad);(!_0x404f62||_0x16d26b[_0x2249ad(0xf4)]==='personal')&&_0x4eeb0a[_0x2249ad(0xde)](_0x5de6ad,_0x16d26b);}const _0x1b1445=[],_0x451455=resolveSkillSyncPaths(_0x25f917);for(const _0x275f0a of _0x4eeb0a[_0x2249ad(0xf5)]()){const _0x5e9f8e=requireSkillCode(_0x275f0a[_0x2249ad(0xe9)]),_0x294190=_0x3e94b8+'--'+_0x5e9f8e;for(const _0x3328df of[_0x451455['agentsSkillsDir'],_0x451455['claudeSkillsDir']]){_0x1b1445[_0x2249ad(0xcd)](ensureManagedSymlink(resolve(_0x3328df,_0x294190),_0x275f0a[_0x2249ad(0x109)],_0x451455[_0x2249ad(0xd9)]));}}return _0x1b1445;}export function readPushDirectory(_0xb5565c,_0x1c222a){const _0x405cba=a62_0x38194a,_0x9fd316=resolve(_0xb5565c);if(!existsSync(_0x9fd316)||!lstatSync(_0x9fd316)['isDirectory']())throw CliErrors['validation']('Skill\x20directory\x20not\x20found:\x20'+_0xb5565c);const _0x5edb7b=resolve(_0x9fd316,SKILL_FILE);if(!existsSync(_0x5edb7b)||!lstatSync(_0x5edb7b)['isFile']())throw CliErrors[_0x405cba(0xf3)](_0x405cba(0xfc)+SKILL_FILE+':\x20'+_0x5edb7b);const _0x698100=readMetadataIfPresent(resolve(_0x9fd316,METADATA_FILE));if(_0x698100&&_0x698100['scope']!==_0x405cba(0xdb))throw CliErrors[_0x405cba(0xf3)](_0x405cba(0xfd)+METADATA_FILE+_0x405cba(0xcf)+_0x698100[_0x405cba(0xf4)]+'\x22.');if(_0x698100?.[_0x405cba(0xc4)]&&_0x698100['appCode']!==_0x1c222a)throw CliErrors[_0x405cba(0xf3)](_0x405cba(0xdd)+_0x698100[_0x405cba(0xc4)]+_0x405cba(0xd2)+_0x1c222a+'\x22.');const _0x2751dc=readFileSync(_0x5edb7b,_0x405cba(0xe6)),_0x39844a=_0x698100?.[_0x405cba(0xc2)]??deriveSkillCodeFromDirectory(_0x9fd316,_0x1c222a);if(!_0x39844a)throw CliErrors['validation']('Unable\x20to\x20resolve\x20skillCode\x20from\x20'+METADATA_FILE+_0x405cba(0xda));return{'skillCode':_0x39844a,'metadata':_0x698100,'input':{'skillCode':_0x39844a,'skillName':_0x698100?.[_0x405cba(0xc9)],'description':_0x698100?.[_0x405cba(0xfb)],'content':_0x2751dc,'tags':_0x698100?.['tags'],'version':_0x698100?.['version'],'sourceSessionId':_0x698100?.[_0x405cba(0xea)]}};}export function deriveSkillCodeFromDirectory(_0x290ffa,_0x3c2109){const _0x30ca22=basename(resolve(_0x290ffa)),_0xc0250e=_0x3c2109+'--';return _0x30ca22['startsWith'](_0xc0250e)?_0x30ca22['slice'](_0xc0250e['length']):_0x30ca22;}export function readMetadataIfPresent(_0x33c2b5){const _0x39b486=a62_0x38194a;if(!existsSync(_0x33c2b5))return undefined;try{const _0x246be7=JSON['parse'](readFileSync(_0x33c2b5,_0x39b486(0xe6)));return _0x246be7;}catch{throw CliErrors['validation'](_0x39b486(0xeb)+METADATA_FILE+':\x20'+_0x33c2b5);}}function buildMetadata(_0x27f1e9,_0x3e3997,_0x5cddc2,_0x1d801b,_0x277f57){const _0x166f60=a62_0x38194a;return{'schemaVersion':0x1,'id':_0x27f1e9['id'],'appCode':_0x5cddc2,'skillCode':requireSkillCode(_0x27f1e9),'skillName':_0x27f1e9['skillName'],'description':_0x27f1e9[_0x166f60(0xfb)],'scope':_0x3e3997,'readonly':_0x3e3997!==_0x166f60(0xdb)||_0x27f1e9[_0x166f60(0xe3)]===!![],'tenantCode':_0x27f1e9[_0x166f60(0xe4)],'userId':_0x27f1e9[_0x166f60(0xef)],'version':_0x27f1e9['version'],'status':_0x27f1e9['status'],'tags':Array['isArray'](_0x27f1e9['tags'])?_0x27f1e9[_0x166f60(0xca)]:[],'hasUpstreamUpdate':_0x27f1e9[_0x166f60(0xd3)],'forkedFromSkillId':_0x27f1e9[_0x166f60(0xcc)],'forkedFromVersion':_0x27f1e9[_0x166f60(0xc8)],'sourceSessionId':_0x27f1e9[_0x166f60(0xea)],'contentHash':_0x1d801b,'pulledAt':_0x277f57??new Date()[_0x166f60(0x106)]()};}function a62_0x42a4(_0x2a9823,_0x475b27){_0x2a9823=_0x2a9823-0xc2;const _0x56b3db=a62_0x56b3();let _0x42a474=_0x56b3db[_0x2a9823];return _0x42a474;}function requireSkillCode(_0x31cded){const _0x533d4d=a62_0x38194a,_0x31bae4=_0x31cded[_0x533d4d(0xc2)]?.[_0x533d4d(0xd4)]();if(!_0x31bae4)throw CliErrors[_0x533d4d(0xf3)](_0x533d4d(0xe1));return _0x31bae4;}function safePathSegment(_0x54c1e7,_0x777fba=a62_0x38194a(0xc6)){const _0x4a0c48=a62_0x38194a;if(!_0x54c1e7||_0x54c1e7['includes']('/')||_0x54c1e7['includes']('\x5c')||_0x54c1e7[_0x4a0c48(0xf9)]('..'))throw CliErrors['validation'](_0x4a0c48(0xdc)+_0x777fba+_0x4a0c48(0x108)+_0x54c1e7);return _0x54c1e7;}function ensurePulledFileCanBeOverwritten(_0x1861ab,_0x299f80,_0x5f4335){const _0x2f4b7c=a62_0x38194a;if(_0x5f4335||!existsSync(_0x1861ab)||!existsSync(_0x299f80))return;const _0x300965=readMetadataIfPresent(_0x299f80);if(!_0x300965?.[_0x2f4b7c(0xc3)])return;const _0x1a7e34=contentHash(readFileSync(_0x1861ab,_0x2f4b7c(0xe6)));if(_0x1a7e34!==_0x300965[_0x2f4b7c(0xc3)])throw CliErrors[_0x2f4b7c(0xf3)](_0x2f4b7c(0xd6)+_0x1861ab,_0x2f4b7c(0x103));}function ensureManagedSymlink(_0x2c63f5,_0x1ad9b8,_0x4056ca){const _0x20794e=a62_0x38194a;mkdirSync(dirname(_0x2c63f5),{'recursive':!![],'mode':0x1c0});if(existsSync(_0x2c63f5)||isDanglingSymlink(_0x2c63f5)){const _0x175be8=lstatSync(_0x2c63f5);if(!_0x175be8[_0x20794e(0xc7)]())throw CliErrors[_0x20794e(0xf3)](_0x20794e(0xd5)+_0x2c63f5);const _0x2aceee=resolveSymlinkTarget(_0x2c63f5);if(!isPathInside(realOrResolved(_0x2aceee),realOrResolved(_0x4056ca)))throw CliErrors[_0x20794e(0xf3)](_0x20794e(0xd0)+_0x2c63f5);if(realOrResolved(_0x2aceee)===realOrResolved(_0x1ad9b8))return{'path':_0x2c63f5,'target':_0x1ad9b8,'action':_0x20794e(0xfe)};return unlinkSync(_0x2c63f5),symlinkSync(_0x1ad9b8,_0x2c63f5,_0x20794e(0x109)),{'path':_0x2c63f5,'target':_0x1ad9b8,'action':_0x20794e(0xf8)};}return symlinkSync(_0x1ad9b8,_0x2c63f5,_0x20794e(0x109)),{'path':_0x2c63f5,'target':_0x1ad9b8,'action':_0x20794e(0xed)};}function isDanglingSymlink(_0x8ad2be){const _0x2d1a38=a62_0x38194a;try{return lstatSync(_0x8ad2be)[_0x2d1a38(0xc7)]();}catch{return![];}}function resolveSymlinkTarget(_0x33123c){const _0x424186=readlinkSync(_0x33123c);return isAbsolute(_0x424186)?_0x424186:resolve(dirname(_0x33123c),_0x424186);}function isPathInside(_0x4171ba,_0x526526){const _0x1f2a44=a62_0x38194a,_0x11346f=_0x4171ba['endsWith'](sep)?_0x4171ba:''+_0x4171ba+sep,_0x2eb5a8=_0x526526[_0x1f2a44(0x107)](sep)?_0x526526:''+_0x526526+sep;return _0x4171ba===_0x526526||_0x11346f[_0x1f2a44(0xe8)](_0x2eb5a8);}function realOrResolved(_0x14a9e7){try{return realpathSync(_0x14a9e7);}catch{return resolve(_0x14a9e7);}}function writeTextAtomic(_0xd310b1,_0x5967f1,_0x4a0612){const _0x263059=_0xd310b1+'.tmp';try{writeFileSync(_0x263059,_0x5967f1,{'encoding':'utf8','mode':_0x4a0612}),renameSync(_0x263059,_0xd310b1);}catch(_0x145961){try{rmSync(_0x263059,{'force':!![]});}catch{}throw _0x145961;}}function writeJsonAtomic(_0x416147,_0x147c5d){const _0x49dd65=a62_0x38194a;writeTextAtomic(_0x416147,JSON[_0x49dd65(0xf2)](_0x147c5d,null,0x2)+'\x0a',0x180);}
@@ -1 +1 @@
1
- function a61_0x49b8(){const _0x61ca6e=['48FLgsTH','9567648mmvsVM','9042201RRQcCj','122vvpGkN','8355LBUjcM','243zhwYKQ','268610IFIsIQ','1614FYliAH','352VnJMeE','674792DzQLHY','192352nZOeVI'];a61_0x49b8=function(){return _0x61ca6e;};return a61_0x49b8();}(function(_0x1aef39,_0x299eb4){const _0x33cb56=a61_0x341b,_0x2590ad=_0x1aef39();while(!![]){try{const _0x304bfc=parseInt(_0x33cb56(0xe3))/0x1*(parseInt(_0x33cb56(0xe1))/0x2)+parseInt(_0x33cb56(0xde))/0x3*(-parseInt(_0x33cb56(0xdd))/0x4)+-parseInt(_0x33cb56(0xe2))/0x5*(-parseInt(_0x33cb56(0xda))/0x6)+parseInt(_0x33cb56(0xe0))/0x7+-parseInt(_0x33cb56(0xdc))/0x8+-parseInt(_0x33cb56(0xdf))/0x9+-parseInt(_0x33cb56(0xd9))/0xa*(-parseInt(_0x33cb56(0xdb))/0xb);if(_0x304bfc===_0x299eb4)break;else _0x2590ad['push'](_0x2590ad['shift']());}catch(_0x1cbe83){_0x2590ad['push'](_0x2590ad['shift']());}}}(a61_0x49b8,0xaa9a4));import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';function a61_0x341b(_0x5b7e39,_0x44dbf9){_0x5b7e39=_0x5b7e39-0xd9;const _0x49b83e=a61_0x49b8();let _0x341b9b=_0x49b83e[_0x5b7e39];return _0x341b9b;}export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
1
+ (function(_0x4f0f82,_0x39ccd4){const _0x25d826=a63_0x596d,_0x19bf62=_0x4f0f82();while(!![]){try{const _0x5ec857=parseInt(_0x25d826(0x176))/0x1*(parseInt(_0x25d826(0x17a))/0x2)+-parseInt(_0x25d826(0x173))/0x3+parseInt(_0x25d826(0x174))/0x4*(parseInt(_0x25d826(0x172))/0x5)+-parseInt(_0x25d826(0x171))/0x6*(-parseInt(_0x25d826(0x179))/0x7)+parseInt(_0x25d826(0x177))/0x8*(-parseInt(_0x25d826(0x170))/0x9)+-parseInt(_0x25d826(0x175))/0xa+parseInt(_0x25d826(0x178))/0xb;if(_0x5ec857===_0x39ccd4)break;else _0x19bf62['push'](_0x19bf62['shift']());}catch(_0x9a4a22){_0x19bf62['push'](_0x19bf62['shift']());}}}(a63_0x3508,0xcd7e3));import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});function a63_0x596d(_0x54ae5d,_0x1f55b9){_0x54ae5d=_0x54ae5d-0x170;const _0x350840=a63_0x3508();let _0x596d81=_0x350840[_0x54ae5d];return _0x596d81;}function a63_0x3508(){const _0x206fc4=['2ACCvZV','366759wUCwOa','5689956VcUywj','4130NgshpT','48513IXTeOf','1460oezvfe','7755410ZyHoqY','1450743pvJiUL','328amwinR','6640073ZDULxZ','7DCcIfB'];a63_0x3508=function(){return _0x206fc4;};return a63_0x3508();}
@@ -1 +1 @@
1
- function a62_0x2fd2(){const _0x46047e=['writeFileSync','blue','winstonLogger','trim','green','Failed\x20to\x20clear\x20logs:','printf','unknown','dirname','logFilePath','info','format','utf8','yellow','errors','toISOString','addColors','Completed:\x20','8456103HQMAiC','join','readLogs','red','stringify','3663704kWHXmx','error','getWinstonInstance','mkdirSync','initWinstonLogger','3838360wLQSkW','File','now','1909245nbaEBr','duration','map','setRawCommand','log','warn','4336JjWONE','4ctkyvu','existsSync','message','details','497ZPWcvh','success','rawCommand','logTask','17634WbDBeo','split','currentRawCommand','parse','clearLogs','logFileName','timestamp','clear','Starting:\x20','54072rrgLZb','984fZNjKJ','command'];a62_0x2fd2=function(){return _0x46047e;};return a62_0x2fd2();}function a62_0x5e5f(_0x41822b,_0x489844){_0x41822b=_0x41822b-0x8c;const _0x2fd23b=a62_0x2fd2();let _0x5e5fa0=_0x2fd23b[_0x41822b];return _0x5e5fa0;}const a62_0x3864dc=a62_0x5e5f;(function(_0x1c36f9,_0x1eb4a0){const _0x8c2089=a62_0x5e5f,_0x1e7ce7=_0x1c36f9();while(!![]){try{const _0x16ac60=-parseInt(_0x8c2089(0xa9))/0x1*(parseInt(_0x8c2089(0x98))/0x2)+parseInt(_0x8c2089(0xaa))/0x3*(parseInt(_0x8c2089(0x97))/0x4)+parseInt(_0x8c2089(0x91))/0x5+-parseInt(_0x8c2089(0xa0))/0x6*(parseInt(_0x8c2089(0x9c))/0x7)+-parseInt(_0x8c2089(0xc3))/0x8+parseInt(_0x8c2089(0xbe))/0x9+-parseInt(_0x8c2089(0x8e))/0xa;if(_0x16ac60===_0x1eb4a0)break;else _0x1e7ce7['push'](_0x1e7ce7['shift']());}catch(_0x57db99){_0x1e7ce7['push'](_0x1e7ce7['shift']());}}}(a62_0x2fd2,0x7e8d4));import a62_0x2df222 from'winston';import a62_0xabc5c3 from'node:fs';import a62_0x583bde from'node:path';import{PRODUCT_CONFIG}from'../constant/product.js';class Logger{[a62_0x3864dc(0xae)];[a62_0x3864dc(0xb5)]='';['currentRawCommand']='';constructor(){}[a62_0x3864dc(0x94)](_0x2237ce){const _0x442b14=a62_0x3864dc;this[_0x442b14(0xa2)]=_0x2237ce;}['setLogPath'](_0x43fabd){const _0x305dde=a62_0x3864dc;this[_0x305dde(0xb5)]=a62_0x583bde[_0x305dde(0xbf)](_0x43fabd,PRODUCT_CONFIG[_0x305dde(0xa5)]),this[_0x305dde(0xae)]&&this['winstonLogger'][_0x305dde(0xa7)](),this['initWinstonLogger']();}[a62_0x3864dc(0x8d)](){const _0x5dc60b=a62_0x3864dc,_0x28e4f2=a62_0x583bde[_0x5dc60b(0xb4)](this['logFilePath']);!a62_0xabc5c3[_0x5dc60b(0x99)](_0x28e4f2)&&a62_0xabc5c3[_0x5dc60b(0x8c)](_0x28e4f2,{'recursive':!![]});const _0x2afbc8=a62_0x2df222[_0x5dc60b(0xb7)]['combine'](a62_0x2df222['format'][_0x5dc60b(0xa6)](),a62_0x2df222['format'][_0x5dc60b(0xba)]({'stack':!![]}),a62_0x2df222[_0x5dc60b(0xb7)][_0x5dc60b(0xb2)](_0x302b0d=>{const _0x24e3e9=_0x5dc60b,_0x4a5584={'timestamp':_0x302b0d[_0x24e3e9(0xa6)]||new Date()[_0x24e3e9(0xbb)](),'level':_0x302b0d['level']||_0x24e3e9(0xb6),'command':_0x302b0d[_0x24e3e9(0xab)]||_0x24e3e9(0xb3),'rawCommand':_0x302b0d[_0x24e3e9(0x9e)]||this[_0x24e3e9(0xa2)]||undefined,'message':_0x302b0d[_0x24e3e9(0x9a)]||'','duration':_0x302b0d[_0x24e3e9(0x92)]||undefined,'details':_0x302b0d[_0x24e3e9(0x9b)]||undefined};return JSON[_0x24e3e9(0xc2)](_0x4a5584);}));this[_0x5dc60b(0xae)]=a62_0x2df222['createLogger']({'level':'info','format':_0x2afbc8,'transports':[new a62_0x2df222['transports'][(_0x5dc60b(0x8f))]({'filename':this[_0x5dc60b(0xb5)],'level':'info'})],'silent':![]}),a62_0x2df222[_0x5dc60b(0xbc)]({'success':_0x5dc60b(0xb0),'error':_0x5dc60b(0xc1),'warn':_0x5dc60b(0xb9),'info':_0x5dc60b(0xad)});}[a62_0x3864dc(0xb6)](_0x2c208f,_0x484f2f,_0x3056af){const _0xf96620=a62_0x3864dc;if(!this[_0xf96620(0xb5)]||!this[_0xf96620(0xae)])return;this[_0xf96620(0xae)][_0xf96620(0xb6)](_0x484f2f,{'command':_0x2c208f,'details':_0x3056af});}[a62_0x3864dc(0x9d)](_0x324787,_0x3a13d8,_0x5bbfab,_0x4bfb68){const _0x324687=a62_0x3864dc;if(!this[_0x324687(0xb5)]||!this[_0x324687(0xae)])return;this[_0x324687(0xae)][_0x324687(0x95)](_0x324687(0xb6),_0x3a13d8,{'level':_0x324687(0x9d),'command':_0x324787,'duration':_0x5bbfab,'details':_0x4bfb68});}[a62_0x3864dc(0xc4)](_0x390a43,_0x16b00d,_0xb0bc4a){const _0x12ba5c=a62_0x3864dc;if(!this['logFilePath']||!this[_0x12ba5c(0xae)])return;this[_0x12ba5c(0xae)][_0x12ba5c(0xc4)](_0x16b00d,{'command':_0x390a43,'details':_0xb0bc4a});}[a62_0x3864dc(0x96)](_0x141355,_0x5994b9,_0x38fed2){const _0x43e41b=a62_0x3864dc;if(!this[_0x43e41b(0xb5)]||!this[_0x43e41b(0xae)])return;this[_0x43e41b(0xae)][_0x43e41b(0x96)](_0x5994b9,{'command':_0x141355,'details':_0x38fed2});}async[a62_0x3864dc(0x9f)](_0x179892,_0x5459b5,_0x2dccb7){const _0x16a014=a62_0x3864dc,_0x509c2d=Date[_0x16a014(0x90)]();this[_0x16a014(0xb6)](_0x179892,_0x16a014(0xa8)+_0x5459b5);try{const _0x1fc69f=await _0x2dccb7(),_0x2cd4ec=Date[_0x16a014(0x90)]()-_0x509c2d;return this[_0x16a014(0x9d)](_0x179892,_0x16a014(0xbd)+_0x5459b5,_0x2cd4ec),_0x1fc69f;}catch(_0x419c67){const _0x2e953c=Date[_0x16a014(0x90)]()-_0x509c2d;this[_0x16a014(0xc4)](_0x179892,'Failed:\x20'+_0x5459b5,{'error':_0x419c67 instanceof Error?_0x419c67['message']:String(_0x419c67),'duration':_0x2e953c});throw _0x419c67;}}[a62_0x3864dc(0xc0)](){const _0x41f4be=a62_0x3864dc;try{if(!a62_0xabc5c3[_0x41f4be(0x99)](this[_0x41f4be(0xb5)]))return[];const _0x22c343=a62_0xabc5c3['readFileSync'](this[_0x41f4be(0xb5)],_0x41f4be(0xb8));return _0x22c343[_0x41f4be(0xa1)](/\r?\n/)['filter'](_0x1a54de=>_0x1a54de[_0x41f4be(0xaf)]())[_0x41f4be(0x93)](_0x342c08=>JSON[_0x41f4be(0xa3)](_0x342c08));}catch(_0x2a67f6){return console['warn']('Failed\x20to\x20read\x20logs:',_0x2a67f6),[];}}[a62_0x3864dc(0xa4)](){const _0x264deb=a62_0x3864dc;try{a62_0xabc5c3[_0x264deb(0x99)](this['logFilePath'])&&a62_0xabc5c3[_0x264deb(0xac)](this['logFilePath'],'',_0x264deb(0xb8));}catch(_0x1098ee){console[_0x264deb(0x96)](_0x264deb(0xb1),_0x1098ee);}}[a62_0x3864dc(0xc5)](){const _0x404cd4=a62_0x3864dc;return this[_0x404cd4(0xae)];}}export const logger=new Logger();
1
+ const a64_0x31b31c=a64_0x36e4;function a64_0x36e4(_0x3591f0,_0x79ac77){_0x3591f0=_0x3591f0-0x145;const _0x436e7e=a64_0x436e();let _0x36e490=_0x436e7e[_0x3591f0];return _0x36e490;}(function(_0x1d55b6,_0x1019cf){const _0xe6d338=a64_0x36e4,_0xb988e9=_0x1d55b6();while(!![]){try{const _0x13e9c6=-parseInt(_0xe6d338(0x179))/0x1+-parseInt(_0xe6d338(0x148))/0x2+-parseInt(_0xe6d338(0x158))/0x3+-parseInt(_0xe6d338(0x171))/0x4*(-parseInt(_0xe6d338(0x14e))/0x5)+parseInt(_0xe6d338(0x163))/0x6*(-parseInt(_0xe6d338(0x17e))/0x7)+-parseInt(_0xe6d338(0x16c))/0x8+-parseInt(_0xe6d338(0x151))/0x9*(-parseInt(_0xe6d338(0x165))/0xa);if(_0x13e9c6===_0x1019cf)break;else _0xb988e9['push'](_0xb988e9['shift']());}catch(_0x351631){_0xb988e9['push'](_0xb988e9['shift']());}}}(a64_0x436e,0x9382c));import a64_0x4f5b4f from'winston';function a64_0x436e(){const _0x158e94=['logTask','printf','logFilePath','1594208aSLdQf','toISOString','clear','warn','dirname','parse','25WMoPuc','stringify','message','2547qGzTRS','level','mkdirSync','readFileSync','split','success','yellow','222507yyMfYA','initWinstonLogger','log','error','writeFileSync','Failed\x20to\x20read\x20logs:','logFileName','winstonLogger','join','filter','currentRawCommand','78uLVQdt','command','37530UfSVMw','addColors','File','Failed:\x20','format','timestamp','readLogs','1721592aHnIHQ','clearLogs','Completed:\x20','Failed\x20to\x20clear\x20logs:','rawCommand','700228zqbNCP','errors','createLogger','map','trim','info','duration','combine','96857jsUyBr','setRawCommand','now','Starting:\x20','utf8','80689TtIPYQ','existsSync','details'];a64_0x436e=function(){return _0x158e94;};return a64_0x436e();}import a64_0x20efaa from'node:fs';import a64_0x131d93 from'node:path';import{PRODUCT_CONFIG}from'../constant/product.js';class Logger{[a64_0x31b31c(0x15f)];[a64_0x31b31c(0x147)]='';[a64_0x31b31c(0x162)]='';constructor(){}[a64_0x31b31c(0x17a)](_0x373644){this['currentRawCommand']=_0x373644;}['setLogPath'](_0x5c0fe){const _0x537f77=a64_0x31b31c;this['logFilePath']=a64_0x131d93[_0x537f77(0x160)](_0x5c0fe,PRODUCT_CONFIG[_0x537f77(0x15e)]),this[_0x537f77(0x15f)]&&this[_0x537f77(0x15f)][_0x537f77(0x14a)](),this['initWinstonLogger']();}[a64_0x31b31c(0x159)](){const _0x1b5da8=a64_0x31b31c,_0x274e05=a64_0x131d93[_0x1b5da8(0x14c)](this['logFilePath']);!a64_0x20efaa['existsSync'](_0x274e05)&&a64_0x20efaa[_0x1b5da8(0x153)](_0x274e05,{'recursive':!![]});const _0x55e3e0=a64_0x4f5b4f['format'][_0x1b5da8(0x178)](a64_0x4f5b4f[_0x1b5da8(0x169)][_0x1b5da8(0x16a)](),a64_0x4f5b4f[_0x1b5da8(0x169)][_0x1b5da8(0x172)]({'stack':!![]}),a64_0x4f5b4f[_0x1b5da8(0x169)][_0x1b5da8(0x146)](_0x486803=>{const _0x6eaffb=_0x1b5da8,_0xbc7d58={'timestamp':_0x486803['timestamp']||new Date()[_0x6eaffb(0x149)](),'level':_0x486803[_0x6eaffb(0x152)]||_0x6eaffb(0x176),'command':_0x486803[_0x6eaffb(0x164)]||'unknown','rawCommand':_0x486803[_0x6eaffb(0x170)]||this[_0x6eaffb(0x162)]||undefined,'message':_0x486803[_0x6eaffb(0x150)]||'','duration':_0x486803[_0x6eaffb(0x177)]||undefined,'details':_0x486803[_0x6eaffb(0x180)]||undefined};return JSON[_0x6eaffb(0x14f)](_0xbc7d58);}));this[_0x1b5da8(0x15f)]=a64_0x4f5b4f[_0x1b5da8(0x173)]({'level':_0x1b5da8(0x176),'format':_0x55e3e0,'transports':[new a64_0x4f5b4f['transports'][(_0x1b5da8(0x167))]({'filename':this[_0x1b5da8(0x147)],'level':_0x1b5da8(0x176)})],'silent':![]}),a64_0x4f5b4f[_0x1b5da8(0x166)]({'success':'green','error':'red','warn':_0x1b5da8(0x157),'info':'blue'});}[a64_0x31b31c(0x176)](_0x2bfd7e,_0x1af903,_0x296825){const _0x540b3c=a64_0x31b31c;if(!this[_0x540b3c(0x147)]||!this['winstonLogger'])return;this[_0x540b3c(0x15f)][_0x540b3c(0x176)](_0x1af903,{'command':_0x2bfd7e,'details':_0x296825});}[a64_0x31b31c(0x156)](_0x461f7c,_0x3e4e08,_0x4c0f44,_0x3ef2ad){const _0x1d4fae=a64_0x31b31c;if(!this[_0x1d4fae(0x147)]||!this[_0x1d4fae(0x15f)])return;this[_0x1d4fae(0x15f)][_0x1d4fae(0x15a)](_0x1d4fae(0x176),_0x3e4e08,{'level':'success','command':_0x461f7c,'duration':_0x4c0f44,'details':_0x3ef2ad});}['error'](_0x3d34cf,_0x55754f,_0x48dec2){const _0x53b450=a64_0x31b31c;if(!this[_0x53b450(0x147)]||!this[_0x53b450(0x15f)])return;this[_0x53b450(0x15f)][_0x53b450(0x15b)](_0x55754f,{'command':_0x3d34cf,'details':_0x48dec2});}[a64_0x31b31c(0x14b)](_0x517a52,_0x1de250,_0x92dcdc){const _0x44906f=a64_0x31b31c;if(!this[_0x44906f(0x147)]||!this[_0x44906f(0x15f)])return;this[_0x44906f(0x15f)][_0x44906f(0x14b)](_0x1de250,{'command':_0x517a52,'details':_0x92dcdc});}async[a64_0x31b31c(0x145)](_0x2c081f,_0x36394d,_0x7fbebe){const _0x2001fd=a64_0x31b31c,_0x10b03a=Date[_0x2001fd(0x17b)]();this[_0x2001fd(0x176)](_0x2c081f,_0x2001fd(0x17c)+_0x36394d);try{const _0x48b0f2=await _0x7fbebe(),_0x4089c4=Date[_0x2001fd(0x17b)]()-_0x10b03a;return this[_0x2001fd(0x156)](_0x2c081f,_0x2001fd(0x16e)+_0x36394d,_0x4089c4),_0x48b0f2;}catch(_0x5f27f6){const _0x3b4bde=Date[_0x2001fd(0x17b)]()-_0x10b03a;this['error'](_0x2c081f,_0x2001fd(0x168)+_0x36394d,{'error':_0x5f27f6 instanceof Error?_0x5f27f6[_0x2001fd(0x150)]:String(_0x5f27f6),'duration':_0x3b4bde});throw _0x5f27f6;}}[a64_0x31b31c(0x16b)](){const _0xb25317=a64_0x31b31c;try{if(!a64_0x20efaa[_0xb25317(0x17f)](this[_0xb25317(0x147)]))return[];const _0x8084dc=a64_0x20efaa[_0xb25317(0x154)](this[_0xb25317(0x147)],'utf8');return _0x8084dc[_0xb25317(0x155)](/\r?\n/)[_0xb25317(0x161)](_0x166eb0=>_0x166eb0[_0xb25317(0x175)]())[_0xb25317(0x174)](_0x447712=>JSON[_0xb25317(0x14d)](_0x447712));}catch(_0x4276a7){return console[_0xb25317(0x14b)](_0xb25317(0x15d),_0x4276a7),[];}}[a64_0x31b31c(0x16d)](){const _0x31010f=a64_0x31b31c;try{a64_0x20efaa[_0x31010f(0x17f)](this['logFilePath'])&&a64_0x20efaa[_0x31010f(0x15c)](this[_0x31010f(0x147)],'',_0x31010f(0x17d));}catch(_0x2e93c5){console[_0x31010f(0x14b)](_0x31010f(0x16f),_0x2e93c5);}}['getWinstonInstance'](){return this['winstonLogger'];}}export const logger=new Logger();
@@ -1 +1 @@
1
- (function(_0x3237e3,_0x193594){var _0x590ca4=a63_0x2579,_0x2fa291=_0x3237e3();while(!![]){try{var _0xd001e8=-parseInt(_0x590ca4(0x156))/0x1*(parseInt(_0x590ca4(0x163))/0x2)+parseInt(_0x590ca4(0x155))/0x3+-parseInt(_0x590ca4(0x161))/0x4+-parseInt(_0x590ca4(0x159))/0x5*(parseInt(_0x590ca4(0x15c))/0x6)+parseInt(_0x590ca4(0x15d))/0x7+-parseInt(_0x590ca4(0x157))/0x8+-parseInt(_0x590ca4(0x160))/0x9*(-parseInt(_0x590ca4(0x15e))/0xa);if(_0xd001e8===_0x193594)break;else _0x2fa291['push'](_0x2fa291['shift']());}catch(_0x7759e2){_0x2fa291['push'](_0x2fa291['shift']());}}}(a63_0x5a1e,0xe7aa8));function a63_0x5a1e(){var _0xb23bec=['Example:\x20--params\x20\x27[{\x22name\x22:\x22a\x22},{\x22name\x22:\x22b\x22}]\x27','Invalid\x20JSON\x20for\x20--params:\x20','object','325776uFhpIt','5429hMajjI','11474384SclCuN','isArray','5mRxUAR','items','batchCreate\x20--params\x20must\x20be\x20a\x20JSON\x20array\x20or\x20{\x22items\x22:[...]}','8281410CVtAdi','8446466umCeyt','55420370rrkWdc','validation','9zzlFNL','6425136YBCXlG','parse','548jvpRjf'];a63_0x5a1e=function(){return _0xb23bec;};return a63_0x5a1e();}import{CliErrors}from'../errors.js';export function parseJsonParams(_0x5c62a0){var _0x22210b=a63_0x2579;if(!_0x5c62a0)return undefined;try{return JSON[_0x22210b(0x162)](_0x5c62a0);}catch{throw CliErrors[_0x22210b(0x15f)](_0x22210b(0x165)+_0x5c62a0);}}function a63_0x2579(_0x55ac79,_0x15d437){_0x55ac79=_0x55ac79-0x154;var _0x5a1eba=a63_0x5a1e();var _0x2579b3=_0x5a1eba[_0x55ac79];return _0x2579b3;}export function parseJsonParamsValue(_0x314346){var _0x313669=a63_0x2579;if(!_0x314346)return undefined;try{return JSON['parse'](_0x314346);}catch{throw CliErrors[_0x313669(0x15f)](_0x313669(0x165)+_0x314346);}}export function parseBatchCreateItemsFromParams(_0x3b2edb){var _0x5c45cf=a63_0x2579;if(Array[_0x5c45cf(0x158)](_0x3b2edb))return _0x3b2edb;if(_0x3b2edb!==null&&_0x3b2edb!==undefined&&typeof _0x3b2edb===_0x5c45cf(0x154)&&Array[_0x5c45cf(0x158)](_0x3b2edb[_0x5c45cf(0x15a)]))return _0x3b2edb['items'];throw CliErrors['validation'](_0x5c45cf(0x15b),_0x5c45cf(0x164));}
1
+ function a65_0x20db(){var _0x11c187=['3564636AuIjYl','isArray','items','Invalid\x20JSON\x20for\x20--params:\x20','batchCreate\x20--params\x20must\x20be\x20a\x20JSON\x20array\x20or\x20{\x22items\x22:[...]}','6330256StBbDR','2644JCEgGp','object','5889177fDZfQL','246JVnKJm','validation','Example:\x20--params\x20\x27[{\x22name\x22:\x22a\x22},{\x22name\x22:\x22b\x22}]\x27','315794PwTBhv','831qsnVDw','3448296IIcaUR','parse','74645IBFRkl'];a65_0x20db=function(){return _0x11c187;};return a65_0x20db();}(function(_0x339856,_0x623dad){var _0x2d6f01=a65_0x34b0,_0x132fd9=_0x339856();while(!![]){try{var _0x46e958=-parseInt(_0x2d6f01(0x1bc))/0x1+-parseInt(_0x2d6f01(0x1c7))/0x2*(parseInt(_0x2d6f01(0x1bd))/0x3)+parseInt(_0x2d6f01(0x1c1))/0x4+-parseInt(_0x2d6f01(0x1c0))/0x5*(-parseInt(_0x2d6f01(0x1ca))/0x6)+parseInt(_0x2d6f01(0x1c9))/0x7+-parseInt(_0x2d6f01(0x1c6))/0x8+-parseInt(_0x2d6f01(0x1be))/0x9;if(_0x46e958===_0x623dad)break;else _0x132fd9['push'](_0x132fd9['shift']());}catch(_0x4e5a19){_0x132fd9['push'](_0x132fd9['shift']());}}}(a65_0x20db,0x772d1));import{CliErrors}from'../errors.js';export function parseJsonParams(_0xb3a43f){var _0x30a4b1=a65_0x34b0;if(!_0xb3a43f)return undefined;try{return JSON[_0x30a4b1(0x1bf)](_0xb3a43f);}catch{throw CliErrors[_0x30a4b1(0x1cb)](_0x30a4b1(0x1c4)+_0xb3a43f);}}export function parseJsonParamsValue(_0x1fc7bc){var _0x2527b6=a65_0x34b0;if(!_0x1fc7bc)return undefined;try{return JSON['parse'](_0x1fc7bc);}catch{throw CliErrors[_0x2527b6(0x1cb)](_0x2527b6(0x1c4)+_0x1fc7bc);}}function a65_0x34b0(_0x360435,_0x59b9c6){_0x360435=_0x360435-0x1bc;var _0x20db6e=a65_0x20db();var _0x34b0ba=_0x20db6e[_0x360435];return _0x34b0ba;}export function parseBatchCreateItemsFromParams(_0x46ea7a){var _0x5af304=a65_0x34b0;if(Array[_0x5af304(0x1c2)](_0x46ea7a))return _0x46ea7a;if(_0x46ea7a!==null&&_0x46ea7a!==undefined&&typeof _0x46ea7a===_0x5af304(0x1c8)&&Array[_0x5af304(0x1c2)](_0x46ea7a[_0x5af304(0x1c3)]))return _0x46ea7a[_0x5af304(0x1c3)];throw CliErrors[_0x5af304(0x1cb)](_0x5af304(0x1c5),_0x5af304(0x1cc));}
@@ -1 +1 @@
1
- const a64_0x498496=a64_0x1ac0;function a64_0x1ac0(_0x44a6f0,_0x10f4dc){_0x44a6f0=_0x44a6f0-0x1d9;const _0x5d5eff=a64_0x5d5e();let _0x1ac09c=_0x5d5eff[_0x44a6f0];return _0x1ac09c;}(function(_0x1b6501,_0x3d24ad){const _0x719037=a64_0x1ac0,_0x3f451d=_0x1b6501();while(!![]){try{const _0x122768=parseInt(_0x719037(0x1de))/0x1*(parseInt(_0x719037(0x1db))/0x2)+-parseInt(_0x719037(0x1dc))/0x3*(parseInt(_0x719037(0x1e6))/0x4)+-parseInt(_0x719037(0x1e5))/0x5+parseInt(_0x719037(0x1e2))/0x6+-parseInt(_0x719037(0x1e3))/0x7+-parseInt(_0x719037(0x1dd))/0x8*(-parseInt(_0x719037(0x1e4))/0x9)+-parseInt(_0x719037(0x1d9))/0xa*(-parseInt(_0x719037(0x1da))/0xb);if(_0x122768===_0x3d24ad)break;else _0x3f451d['push'](_0x3f451d['shift']());}catch(_0x284161){_0x3f451d['push'](_0x3f451d['shift']());}}}(a64_0x5d5e,0x428fe));export const isWindows=process[a64_0x498496(0x1df)]===a64_0x498496(0x1e1);function a64_0x5d5e(){const _0x2db8eb=['.cmd','win32','1853916gpDWRu','1380309UzSkwj','9ZwPOnb','823830eDalsR','1444ScLmrF','10ShxYwc','659241QZxFjk','86148LTbSuh','2445voIhzg','3445336ZLmdib','3QtptUU','platform'];a64_0x5d5e=function(){return _0x2db8eb;};return a64_0x5d5e();}export function resolveNpmBin(_0x1c868c){const _0x28572e=a64_0x498496;return isWindows?_0x1c868c+_0x28572e(0x1e0):_0x1c868c;}
1
+ function a66_0x53cd(){const _0x52583c=['78410JBkIRU','1GzSLjl','130500CVIAQK','21432MlibQg','33odPHYQ','win32','3675628amYcUd','.cmd','1190YYYcMN','117VjNznB','344676wfgBvY','340dGPOkS','2307096tCbwCo'];a66_0x53cd=function(){return _0x52583c;};return a66_0x53cd();}const a66_0x1c3906=a66_0x1a73;(function(_0x15f23f,_0x1adf48){const _0x454a9a=a66_0x1a73,_0x5b5436=_0x15f23f();while(!![]){try{const _0x39c484=-parseInt(_0x454a9a(0x141))/0x1*(parseInt(_0x454a9a(0x14a))/0x2)+parseInt(_0x454a9a(0x144))/0x3*(-parseInt(_0x454a9a(0x142))/0x4)+parseInt(_0x454a9a(0x14b))/0x5*(parseInt(_0x454a9a(0x143))/0x6)+-parseInt(_0x454a9a(0x148))/0x7+parseInt(_0x454a9a(0x14c))/0x8+parseInt(_0x454a9a(0x149))/0x9*(-parseInt(_0x454a9a(0x140))/0xa)+parseInt(_0x454a9a(0x146))/0xb;if(_0x39c484===_0x1adf48)break;else _0x5b5436['push'](_0x5b5436['shift']());}catch(_0x3300ed){_0x5b5436['push'](_0x5b5436['shift']());}}}(a66_0x53cd,0x38ab3));function a66_0x1a73(_0x4c56ac,_0x3c562c){_0x4c56ac=_0x4c56ac-0x140;const _0x53cdc6=a66_0x53cd();let _0x1a7355=_0x53cdc6[_0x4c56ac];return _0x1a7355;}export const isWindows=process['platform']===a66_0x1c3906(0x145);export function resolveNpmBin(_0x2dd582){const _0x2f0bc2=a66_0x1c3906;return isWindows?_0x2dd582+_0x2f0bc2(0x147):_0x2dd582;}
@@ -1 +1 @@
1
- (function(_0x4b83e0,_0x3805b7){const _0x40317d=a65_0x3299,_0x536571=_0x4b83e0();while(!![]){try{const _0x4d806d=-parseInt(_0x40317d(0xd2))/0x1*(-parseInt(_0x40317d(0xd6))/0x2)+-parseInt(_0x40317d(0xd1))/0x3*(parseInt(_0x40317d(0xd7))/0x4)+-parseInt(_0x40317d(0xd3))/0x5+-parseInt(_0x40317d(0xd9))/0x6+parseInt(_0x40317d(0xd8))/0x7*(-parseInt(_0x40317d(0xdb))/0x8)+parseInt(_0x40317d(0xda))/0x9+-parseInt(_0x40317d(0xd0))/0xa*(-parseInt(_0x40317d(0xd4))/0xb);if(_0x4d806d===_0x3805b7)break;else _0x536571['push'](_0x536571['shift']());}catch(_0x3f2489){_0x536571['push'](_0x536571['shift']());}}}(a65_0x49cc,0xb01da));function a65_0x49cc(){const _0x679ce7=['3016422UNfpWj','7456923cdFZnS','136DZZJvJ','package.json','utf8','parse','733030HdZDEn','352581uigDuq','199gQjAck','1063700ejvXOk','187eBQxPG','version','9626XbOSlm','12BqZNKg','511847TTYXaq'];a65_0x49cc=function(){return _0x679ce7;};return a65_0x49cc();}import{readFileSync}from'node:fs';import{dirname,join}from'node:path';import{fileURLToPath}from'node:url';let cached;function a65_0x3299(_0x2b02d6,_0x207e60){_0x2b02d6=_0x2b02d6-0xd0;const _0x49cc28=a65_0x49cc();let _0x3299a3=_0x49cc28[_0x2b02d6];return _0x3299a3;}export function getCliVersion(){const _0x41572c=a65_0x3299;if(cached)return cached;const _0x55e924=join(dirname(fileURLToPath(import.meta.url)),'..','..'),_0x38bfc5=readFileSync(join(_0x55e924,_0x41572c(0xdc)),_0x41572c(0xdd)),_0x43daf3=JSON[_0x41572c(0xde)](_0x38bfc5);return cached=_0x43daf3[_0x41572c(0xd5)],cached;}
1
+ (function(_0x5df895,_0x1d5e2a){const _0x1e542a=a67_0x9da9,_0x1b5649=_0x5df895();while(!![]){try{const _0x1a99b7=parseInt(_0x1e542a(0x9d))/0x1*(parseInt(_0x1e542a(0x94))/0x2)+-parseInt(_0x1e542a(0x9e))/0x3+-parseInt(_0x1e542a(0x9c))/0x4+parseInt(_0x1e542a(0x95))/0x5*(parseInt(_0x1e542a(0x9b))/0x6)+parseInt(_0x1e542a(0x9a))/0x7+-parseInt(_0x1e542a(0x96))/0x8+parseInt(_0x1e542a(0x93))/0x9;if(_0x1a99b7===_0x1d5e2a)break;else _0x1b5649['push'](_0x1b5649['shift']());}catch(_0x262826){_0x1b5649['push'](_0x1b5649['shift']());}}}(a67_0x2294,0xd94b1));function a67_0x9da9(_0x316dac,_0x349027){_0x316dac=_0x316dac-0x93;const _0x2294dc=a67_0x2294();let _0x9da92f=_0x2294dc[_0x316dac];return _0x9da92f;}import{readFileSync}from'node:fs';function a67_0x2294(){const _0x44ba31=['24762096dqpFNb','2UXRUIL','185YnHgov','5058816pABrKT','version','utf8','package.json','2295916hTykTv','40758yXSJuB','2490064phkGco','472564agkWhL','4975008PfFoxo'];a67_0x2294=function(){return _0x44ba31;};return a67_0x2294();}import{dirname,join}from'node:path';import{fileURLToPath}from'node:url';let cached;export function getCliVersion(){const _0x302bf3=a67_0x9da9;if(cached)return cached;const _0x3c7ed9=join(dirname(fileURLToPath(import.meta.url)),'..','..'),_0x5bea9f=readFileSync(join(_0x3c7ed9,_0x302bf3(0x99)),_0x302bf3(0x98)),_0x280c09=JSON['parse'](_0x5bea9f);return cached=_0x280c09[_0x302bf3(0x97)],cached;}
@@ -1 +1 @@
1
- function a66_0x1e6d(_0x29773f,_0x559460){_0x29773f=_0x29773f-0x97;var _0x58ebc4=a66_0x58eb();var _0x1e6d7b=_0x58ebc4[_0x29773f];return _0x1e6d7b;}function a66_0x58eb(){var _0x3eaf84=['135YAxeje','write','787761ErkwRN','stderr','591792VDmdMh','1539852cocMQC','2689299DIveei','2utWIHy','8033304reamuo','6974310uKqMWd','189608hfZSAO'];a66_0x58eb=function(){return _0x3eaf84;};return a66_0x58eb();}(function(_0x21c77b,_0x52e08a){var _0xc4aa72=a66_0x1e6d,_0x5c1620=_0x21c77b();while(!![]){try{var _0x1f9bbe=-parseInt(_0xc4aa72(0x9f))/0x1+-parseInt(_0xc4aa72(0x99))/0x2*(parseInt(_0xc4aa72(0x97))/0x3)+parseInt(_0xc4aa72(0x9c))/0x4*(parseInt(_0xc4aa72(0x9d))/0x5)+parseInt(_0xc4aa72(0x9a))/0x6+-parseInt(_0xc4aa72(0x9b))/0x7+parseInt(_0xc4aa72(0xa1))/0x8+parseInt(_0xc4aa72(0x98))/0x9;if(_0x1f9bbe===_0x52e08a)break;else _0x5c1620['push'](_0x5c1620['shift']());}catch(_0x311b06){_0x5c1620['push'](_0x5c1620['shift']());}}}(a66_0x58eb,0xa9784));export function writeCliSideChannelLine(_0x3d4462){var _0x38ece0=a66_0x1e6d;process[_0x38ece0(0xa0)][_0x38ece0(0x9e)](_0x3d4462+'\x0a');}
1
+ (function(_0x5a2d69,_0x58e4e5){var _0x42dbe1=a68_0x1463,_0x4de95c=_0x5a2d69();while(!![]){try{var _0x27e9dc=parseInt(_0x42dbe1(0x188))/0x1+-parseInt(_0x42dbe1(0x183))/0x2*(parseInt(_0x42dbe1(0x18b))/0x3)+-parseInt(_0x42dbe1(0x181))/0x4*(-parseInt(_0x42dbe1(0x180))/0x5)+-parseInt(_0x42dbe1(0x18a))/0x6*(-parseInt(_0x42dbe1(0x182))/0x7)+-parseInt(_0x42dbe1(0x184))/0x8*(parseInt(_0x42dbe1(0x187))/0x9)+-parseInt(_0x42dbe1(0x186))/0xa+parseInt(_0x42dbe1(0x189))/0xb*(parseInt(_0x42dbe1(0x17f))/0xc);if(_0x27e9dc===_0x58e4e5)break;else _0x4de95c['push'](_0x4de95c['shift']());}catch(_0x199a3f){_0x4de95c['push'](_0x4de95c['shift']());}}}(a68_0x4eee,0x6d118));function a68_0x1463(_0x2c8164,_0x232b3d){_0x2c8164=_0x2c8164-0x17f;var _0x4eeeab=a68_0x4eee();var _0x1463a3=_0x4eeeab[_0x2c8164];return _0x1463a3;}function a68_0x4eee(){var _0x19747c=['stderr','8369540diJndO','53163dhGrGb','291662qKZNmb','44upVZaj','18dOtKsx','9PgsPke','2408772ioaknz','62075CeVXeZ','4ZtjPMM','1466983lHELHx','289526dkcknB','24edStfE'];a68_0x4eee=function(){return _0x19747c;};return a68_0x4eee();}export function writeCliSideChannelLine(_0xa446a1){var _0x4cdf85=a68_0x1463;process[_0x4cdf85(0x185)]['write'](_0xa446a1+'\x0a');}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lovrabet/lovrabet-cli",
3
- "version": "2.0.8",
3
+ "version": "2.0.9-beta.1",
4
4
  "license": "Apache-2.0",
5
5
  "repository": {
6
6
  "type": "git",