@lovrabet/lovrabet-cli 2.0.7 → 2.0.9-beta.0

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(_0x5cd74e,_0x3d94c1){const _0x1c9c86=a55_0xcb43,_0x14da0d=_0x5cd74e();while(!![]){try{const _0x228388=-parseInt(_0x1c9c86(0x108))/0x1*(parseInt(_0x1c9c86(0x111))/0x2)+-parseInt(_0x1c9c86(0x10e))/0x3+parseInt(_0x1c9c86(0x10b))/0x4*(-parseInt(_0x1c9c86(0x105))/0x5)+parseInt(_0x1c9c86(0x107))/0x6*(-parseInt(_0x1c9c86(0x10a))/0x7)+-parseInt(_0x1c9c86(0x10c))/0x8*(-parseInt(_0x1c9c86(0x109))/0x9)+parseInt(_0x1c9c86(0x113))/0xa*(-parseInt(_0x1c9c86(0x10d))/0xb)+-parseInt(_0x1c9c86(0x10f))/0xc*(-parseInt(_0x1c9c86(0x114))/0xd);if(_0x228388===_0x3d94c1)break;else _0x14da0d['push'](_0x14da0d['shift']());}catch(_0x6dde86){_0x14da0d['push'](_0x14da0d['shift']());}}}(a55_0x1422,0x4fd30));import{LovrabetError}from'@lovrabet/sdk';function a55_0x1422(){const _0x57612c=['description','745JVbuyS','trim','3138ocilLU','241499sjJryE','72JfHeJH','1155wIxnNw','10828WZEIcq','141080uXDOvC','849651stOiGw','743490HBLSIm','24OWyRlK','message','2OxpoEX','stringify','30cCiYBr','9077705YOHXhZ'];a55_0x1422=function(){return _0x57612c;};return a55_0x1422();}function a55_0xcb43(_0x28a17e,_0x18f906){_0x28a17e=_0x28a17e-0x104;const _0x142257=a55_0x1422();let _0xcb430e=_0x142257[_0x28a17e];return _0xcb430e;}import{CliErrors}from'../errors.js';export function mapUserFacingExecuteError(_0x55c38d){if(_0x55c38d instanceof LovrabetError)return CliErrors['validation'](userFacingLovrabetMessage(_0x55c38d));return _0x55c38d;}function userFacingLovrabetMessage(_0x11dc73){const _0x5f5559=a55_0xcb43,_0x2ea859=_0x11dc73[_0x5f5559(0x104)];if(_0x2ea859!==undefined&&_0x2ea859!==null){if(typeof _0x2ea859==='string'&&_0x2ea859[_0x5f5559(0x106)]())return _0x2ea859[_0x5f5559(0x106)]();try{return JSON[_0x5f5559(0x112)](_0x2ea859);}catch{}}return _0x11dc73[_0x5f5559(0x110)];}
1
+ (function(_0x3ff703,_0x3ce442){const _0x83398c=a56_0x2003,_0xb99b3=_0x3ff703();while(!![]){try{const _0x21e68d=-parseInt(_0x83398c(0x13c))/0x1*(parseInt(_0x83398c(0x144))/0x2)+parseInt(_0x83398c(0x13d))/0x3*(parseInt(_0x83398c(0x138))/0x4)+-parseInt(_0x83398c(0x142))/0x5+-parseInt(_0x83398c(0x137))/0x6*(-parseInt(_0x83398c(0x136))/0x7)+parseInt(_0x83398c(0x145))/0x8+parseInt(_0x83398c(0x143))/0x9*(-parseInt(_0x83398c(0x140))/0xa)+-parseInt(_0x83398c(0x13f))/0xb;if(_0x21e68d===_0x3ce442)break;else _0xb99b3['push'](_0xb99b3['shift']());}catch(_0x16d333){_0xb99b3['push'](_0xb99b3['shift']());}}}(a56_0xe2a9,0x4a346));function a56_0xe2a9(){const _0x27c71a=['119ozwsjw','80436HIZvRp','2186452fOjfKV','validation','message','description','66CnvfFF','3lxcggj','trim','2138356OUVEoQ','2381800vTFMzH','string','1731535hiOTJD','18QGPjjj','812xsHdWX','4586288qxBaTP'];a56_0xe2a9=function(){return _0x27c71a;};return a56_0xe2a9();}function a56_0x2003(_0x3634c4,_0x2b2ade){_0x3634c4=_0x3634c4-0x136;const _0xe2a943=a56_0xe2a9();let _0x2003f8=_0xe2a943[_0x3634c4];return _0x2003f8;}import{LovrabetError}from'@lovrabet/sdk';import{CliErrors}from'../errors.js';export function mapUserFacingExecuteError(_0x436300){const _0x44b972=a56_0x2003;if(_0x436300 instanceof LovrabetError)return CliErrors[_0x44b972(0x139)](userFacingLovrabetMessage(_0x436300));return _0x436300;}function userFacingLovrabetMessage(_0x11ecaa){const _0x533776=a56_0x2003,_0x4593b4=_0x11ecaa[_0x533776(0x13b)];if(_0x4593b4!==undefined&&_0x4593b4!==null){if(typeof _0x4593b4===_0x533776(0x141)&&_0x4593b4[_0x533776(0x13e)]())return _0x4593b4[_0x533776(0x13e)]();try{return JSON['stringify'](_0x4593b4);}catch{}}return _0x11ecaa[_0x533776(0x13a)];}
@@ -1 +1 @@
1
- const a56_0x11ddcf=a56_0x3389;(function(_0x11b82c,_0x280264){const _0x3a4f08=a56_0x3389,_0x3c86f6=_0x11b82c();while(!![]){try{const _0x3af346=-parseInt(_0x3a4f08(0x152))/0x1+-parseInt(_0x3a4f08(0x13e))/0x2+parseInt(_0x3a4f08(0x14c))/0x3+-parseInt(_0x3a4f08(0x154))/0x4*(-parseInt(_0x3a4f08(0x156))/0x5)+parseInt(_0x3a4f08(0x158))/0x6*(parseInt(_0x3a4f08(0x153))/0x7)+parseInt(_0x3a4f08(0x147))/0x8+-parseInt(_0x3a4f08(0x16f))/0x9;if(_0x3af346===_0x280264)break;else _0x3c86f6['push'](_0x3c86f6['shift']());}catch(_0x1ad401){_0x3c86f6['push'](_0x3c86f6['shift']());}}}(a56_0x463d,0xe0bd5));import{runCommandWithAdapter,requireConfirmationPrompt}from'@lovrabet/cli-framework';import{formatOutput}from'../framework/output.js';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';function a56_0x3389(_0x55442c,_0x1f2b87){_0x55442c=_0x55442c-0x13c;const _0x463d64=a56_0x463d();let _0x33893e=_0x463d64[_0x55442c];return _0x33893e;}import{getApiDomain}from'../constant/domain.js';function a56_0x463d(){const _0x7e9c4a=['configMissing','defaultApp','\x20\x20To\x20proceed:\x20','29206368shGKow','ClientAk','string','production','1865448EOVwcn','../core/sdk-client.js','newConfigFileName','Unknown\x20app:\x20','.appcode\x20to\x20','appCode','rawFlags','validation','mergedCli','9869480GMAKfH','accessKey','appcode','Set\x20appcode\x20via\x20--appcode\x20or\x20in\x20','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.\x0a','3082209zxklIL','env','High-risk\x20operation\x20`','app','local-alias','currentApp','149104piLzcg','2744iXXEMC','5113924VOSwMa','APPCODE','5plPokP','../commands/app/remote-source.js','26142pHHeia','verbose','map','../core/api-client.js','error','cancelled','apiDomain','format','appCodeSource','\x20or\x20pass\x20','trim','ACCESS_KEY','items','riskLevel','name','appName','requiresAppCode','pageSize','Run\x20`','isNonInteractive'];a56_0x463d=function(){return _0x7e9c4a;};return a56_0x463d();}import{buildConfirmationLines,reconstructCommandArgv}from'../framework/runner-confirmation.js';import{mapUserFacingExecuteError}from'../framework/runner-error.js';export function resolveAuthMode(_0x7030d4){const _0x22af44=a56_0x3389;return void _0x7030d4,AUTH_MODE[_0x22af44(0x170)];}export function createPipelineEnv(_0x48c669,_0x12afd0){const _0x1d39fe=a56_0x3389,_0x4fea48=typeof _0x12afd0['app']===_0x1d39fe(0x13c)&&_0x12afd0['app'][_0x1d39fe(0x162)]();return{'rawFlags':_0x12afd0,'appCode':_0x48c669['appCode']||productEnv('APPCODE')||(_0x4fea48?undefined:readAppCodeFromConfig()),'appCodeSource':_0x48c669[_0x1d39fe(0x160)],'apiDomain':getApiDomain(),'isNonInteractive':isNonInteractiveMode(_0x12afd0),'defaultFormat':_0x48c669[_0x1d39fe(0x15f)],'defaultPageSize':_0x48c669[_0x1d39fe(0x169)],'defaultVerbose':_0x48c669[_0x1d39fe(0x159)],'riskLevel':_0x48c669[_0x1d39fe(0x165)],'accessKey':_0x48c669['accessKey'],'env':_0x48c669[_0x1d39fe(0x14d)],'mergedCli':{'defaultApp':_0x48c669[_0x1d39fe(0x16d)],'currentApp':_0x48c669[_0x1d39fe(0x151)],'appCode':_0x48c669[_0x1d39fe(0x143)]}};}const runnerAdapter={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS['filter'](_0x4f3420=>PIPELINE_FLAG_NAMES['has'](_0x4f3420[a56_0x11ddcf(0x166)]))[a56_0x11ddcf(0x15a)](({name:_0x4b8cb1,type:_0xf8a22d,description:_0x325cda})=>({'name':_0x4b8cb1,'type':_0xf8a22d,'description':_0x325cda})),'formatOutput':formatOutput,'getCommandLabel'(_0x24329b){return CLI_BIN_NAME+'\x20'+_0x24329b['service']+'\x20'+_0x24329b['command'];},'riskPolicy':{'onViolation'(_0x2f8fa6){const _0x1e0747=a56_0x11ddcf;console[_0x1e0747(0x15c)](_0x2f8fa6);},'createError'(_0x2a84f5){const _0x5e4a31=a56_0x11ddcf;return CliErrors[_0x5e4a31(0x15d)](_0x2a84f5);}},async 'prepare'(_0x34baa9,_0x466549){const _0x4778c0=a56_0x11ddcf,_0x5ab011=resolveAuthMode(_0x466549);if(_0x34baa9['requiresAuth']!==![]){if(!_0x466549[_0x4778c0(0x148)])throw CliErrors['authRequired']('Set\x20accessKey\x20in\x20'+PRODUCT_CONFIG[_0x4778c0(0x140)]+_0x4778c0(0x161)+productEnvName(_0x4778c0(0x163))+'.');const {setActiveAK:_0x4f9e1d}=await import(_0x4778c0(0x15b));_0x4f9e1d(_0x466549[_0x4778c0(0x148)]);}let _0x321674='';if(_0x34baa9[_0x4778c0(0x168)]!==![]){_0x321674=_0x466549[_0x4778c0(0x143)]??'',_0x321674=await resolveExplicitAppName(_0x34baa9,_0x466549,_0x321674);if(!_0x321674)throw CliErrors[_0x4778c0(0x16c)](_0x4778c0(0x14a)+PRODUCT_CONFIG[_0x4778c0(0x140)]+'.');}if(_0x321674){const {initSdkClient:_0x2e6033}=await import(_0x4778c0(0x13f));_0x2e6033({'appCode':_0x321674,'env':_0x466549[_0x4778c0(0x14d)]??'production','accessKey':_0x466549['accessKey'],'authMode':_0x5ab011});}return{'defaults':{'booleans':{'verbose':_0x466549['defaultVerbose']},'numbers':{'pagesize':_0x466549['defaultPageSize']}},'extras':{'appCode':_0x321674,'cookie':'','apiDomain':_0x466549[_0x4778c0(0x15e)],'apiDir':'','accessKey':_0x466549[_0x4778c0(0x148)],'envName':_0x466549[_0x4778c0(0x14d)],'mergedCli':_0x466549[_0x4778c0(0x146)]}};},async 'confirmHighRisk'({def:_0x2ac274,env:_0x3fd6c5,flags:_0x1d9f0a,commandLabel:_0x59846d}){const _0x16ac63=a56_0x11ddcf;if(_0x3fd6c5[_0x16ac63(0x16b)]){const _0x419bcd=reconstructCommandArgv(_0x2ac274,_0x1d9f0a);throw CliErrors['validation'](_0x16ac63(0x14e)+_0x59846d+_0x16ac63(0x14b)+(_0x16ac63(0x16e)+_0x419bcd));}await requireConfirmationPrompt({'lines':buildConfirmationLines(_0x2ac274,_0x59846d,_0x1d9f0a),'createCancelledError':_0x90daa0=>CliErrors['cancelled'](_0x90daa0)});},'mapDryRunError'(_0x2ffb67){return mapUserFacingExecuteError(_0x2ffb67);},'mapExecuteError'(_0x4ffe48){return mapUserFacingExecuteError(_0x4ffe48);},async 'finalize'(){const _0x1d2ffa=a56_0x11ddcf,{clearActiveAK:_0x4d0fdc}=await import(_0x1d2ffa(0x15b));_0x4d0fdc();}};async function resolveExplicitAppName(_0x37754c,_0x29e9e7,_0x3e2e61){const _0x147af7=a56_0x11ddcf;if(_0x37754c[_0x147af7(0x168)]===![])return _0x3e2e61;const _0x5bc085=typeof _0x29e9e7['rawFlags'][_0x147af7(0x14f)]===_0x147af7(0x13c)?_0x29e9e7[_0x147af7(0x144)]['app'][_0x147af7(0x162)]():'';if(!_0x5bc085)return _0x3e2e61;const _0x38d233=typeof _0x29e9e7[_0x147af7(0x144)]['appcode']==='string'&&_0x29e9e7[_0x147af7(0x144)][_0x147af7(0x149)][_0x147af7(0x162)]()||productEnv(_0x147af7(0x155));if(_0x38d233||_0x29e9e7['appCodeSource']===_0x147af7(0x150))return _0x3e2e61;const {getRemoteAppList:_0x4e3fab}=await import(_0x147af7(0x157)),_0x266947=await _0x4e3fab({'env':_0x29e9e7[_0x147af7(0x14d)]??_0x147af7(0x13d),'accessKey':_0x29e9e7[_0x147af7(0x148)]}),_0x5de389=_0x266947[_0x147af7(0x164)]['find'](_0x3ea34f=>_0x3ea34f[_0x147af7(0x167)]===_0x5bc085),_0xf4af6f=_0x5de389?.[_0x147af7(0x143)]?.[_0x147af7(0x162)]();if(_0xf4af6f)return _0xf4af6f;throw CliErrors[_0x147af7(0x145)](_0x147af7(0x141)+_0x5bc085,_0x147af7(0x16a)+CLI_BIN_NAME+'\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20add\x20apps.'+_0x5bc085+_0x147af7(0x142)+PRODUCT_CONFIG['newConfigFileName']+'.');}export async function runCommand(_0x45765d,_0x496ccc){await runCommandWithAdapter(_0x45765d,_0x496ccc,runnerAdapter);}
1
+ const a57_0x488e20=a57_0x5956;(function(_0x557985,_0x2b613b){const _0xf9412a=a57_0x5956,_0x34c7a0=_0x557985();while(!![]){try{const _0x3a4b49=-parseInt(_0xf9412a(0x1f6))/0x1*(-parseInt(_0xf9412a(0x1f5))/0x2)+-parseInt(_0xf9412a(0x1f3))/0x3*(-parseInt(_0xf9412a(0x1fe))/0x4)+-parseInt(_0xf9412a(0x207))/0x5+-parseInt(_0xf9412a(0x1f8))/0x6*(parseInt(_0xf9412a(0x1e7))/0x7)+parseInt(_0xf9412a(0x210))/0x8+-parseInt(_0xf9412a(0x1f2))/0x9*(-parseInt(_0xf9412a(0x214))/0xa)+parseInt(_0xf9412a(0x21b))/0xb;if(_0x3a4b49===_0x2b613b)break;else _0x34c7a0['push'](_0x34c7a0['shift']());}catch(_0x2d0d12){_0x34c7a0['push'](_0x34c7a0['shift']());}}}(a57_0x3bf1,0x6977b));import{runCommandWithAdapter,requireConfirmationPrompt}from'@lovrabet/cli-framework';import{formatOutput}from'../framework/output.js';import{CliErrors}from'../errors.js';import{CLI_BIN_NAME,GLOBAL_FLAGS,PIPELINE_FLAG_NAMES}from'../constant/cli.js';function a57_0x3bf1(){const _0x203173=['isNonInteractive','trim','257915HJgTpz','configMissing','string','defaultVerbose','requiresAppCode','Set\x20appcode\x20via\x20--appcode\x20or\x20in\x20','ClientAk','error','production','requiresAuth','appcode','9Jhgsow','472332MhDBYN','APPCODE','48018WUFQem','11eZxQjC','../core/sdk-client.js','132YRLVhM','defaultPageSize','../core/api-client.js','../commands/app/remote-source.js','apiDomain','app','16LFYYuH','riskLevel','authRequired','cancelled','filter','validation','Run\x20`','accessKey','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.\x0a','3020700gILqxM','verbose','has','Unknown\x20app:\x20','defaultApp','rawFlags','name','High-risk\x20operation\x20`','find','4427184SEMXQc','appCodeSource','env','format','3353990vHzKvT','service','command','appName','appCode','\x20\x20To\x20proceed:\x20','map','704583FEEzzX','newConfigFileName','\x20or\x20pass\x20'];a57_0x3bf1=function(){return _0x203173;};return a57_0x3bf1();}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(_0x19f216){const _0x2a6d2e=a57_0x5956;return void _0x19f216,AUTH_MODE[_0x2a6d2e(0x1ed)];}export function createPipelineEnv(_0xbdd6a4,_0x47e77c){const _0x3fc8dc=a57_0x5956,_0x15dc77=typeof _0x47e77c[_0x3fc8dc(0x1fd)]===_0x3fc8dc(0x1e9)&&_0x47e77c[_0x3fc8dc(0x1fd)]['trim']();return{'rawFlags':_0x47e77c,'appCode':_0xbdd6a4[_0x3fc8dc(0x218)]||productEnv(_0x3fc8dc(0x1f4))||(_0x15dc77?undefined:readAppCodeFromConfig()),'appCodeSource':_0xbdd6a4['appCodeSource'],'apiDomain':getApiDomain(),'isNonInteractive':isNonInteractiveMode(_0x47e77c),'defaultFormat':_0xbdd6a4[_0x3fc8dc(0x213)],'defaultPageSize':_0xbdd6a4['pageSize'],'defaultVerbose':_0xbdd6a4[_0x3fc8dc(0x208)],'riskLevel':_0xbdd6a4[_0x3fc8dc(0x1ff)],'accessKey':_0xbdd6a4[_0x3fc8dc(0x205)],'env':_0xbdd6a4[_0x3fc8dc(0x212)],'mergedCli':{'defaultApp':_0xbdd6a4[_0x3fc8dc(0x20b)],'currentApp':_0xbdd6a4['currentApp'],'appCode':_0xbdd6a4[_0x3fc8dc(0x218)]}};}const runnerAdapter={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[a57_0x488e20(0x202)](_0x3ec214=>PIPELINE_FLAG_NAMES[a57_0x488e20(0x209)](_0x3ec214[a57_0x488e20(0x20d)]))[a57_0x488e20(0x21a)](({name:_0x3290fa,type:_0x2f9e25,description:_0x435161})=>({'name':_0x3290fa,'type':_0x2f9e25,'description':_0x435161})),'formatOutput':formatOutput,'getCommandLabel'(_0x2e20c0){const _0x376676=a57_0x488e20;return CLI_BIN_NAME+'\x20'+_0x2e20c0[_0x376676(0x215)]+'\x20'+_0x2e20c0[_0x376676(0x216)];},'riskPolicy':{'onViolation'(_0x50b153){const _0x5d75e7=a57_0x488e20;console[_0x5d75e7(0x1ee)](_0x50b153);},'createError'(_0x517432){return CliErrors['cancelled'](_0x517432);}},async 'prepare'(_0x46246d,_0x5ac384){const _0x5c990b=a57_0x488e20,_0x4a3622=resolveAuthMode(_0x5ac384);if(_0x46246d[_0x5c990b(0x1f0)]!==![]){if(!_0x5ac384['accessKey'])throw CliErrors[_0x5c990b(0x200)]('Set\x20accessKey\x20in\x20'+PRODUCT_CONFIG['newConfigFileName']+_0x5c990b(0x1e4)+productEnvName('ACCESS_KEY')+'.');const {setActiveAK:_0x3cc175}=await import(_0x5c990b(0x1fa));_0x3cc175(_0x5ac384[_0x5c990b(0x205)]);}let _0x1fbc5d='';if(_0x46246d[_0x5c990b(0x1eb)]!==![]){_0x1fbc5d=_0x5ac384[_0x5c990b(0x218)]??'',_0x1fbc5d=await resolveExplicitAppName(_0x46246d,_0x5ac384,_0x1fbc5d);if(!_0x1fbc5d)throw CliErrors[_0x5c990b(0x1e8)](_0x5c990b(0x1ec)+PRODUCT_CONFIG[_0x5c990b(0x1e3)]+'.');}if(_0x1fbc5d){const {initSdkClient:_0x45e3b4}=await import(_0x5c990b(0x1f7));_0x45e3b4({'appCode':_0x1fbc5d,'env':_0x5ac384['env']??'production','accessKey':_0x5ac384['accessKey'],'authMode':_0x4a3622});}return{'defaults':{'booleans':{'verbose':_0x5ac384[_0x5c990b(0x1ea)]},'numbers':{'pagesize':_0x5ac384[_0x5c990b(0x1f9)]}},'extras':{'appCode':_0x1fbc5d,'cookie':'','apiDomain':_0x5ac384[_0x5c990b(0x1fc)],'apiDir':'','accessKey':_0x5ac384[_0x5c990b(0x205)],'envName':_0x5ac384[_0x5c990b(0x212)],'mergedCli':_0x5ac384['mergedCli']}};},async 'confirmHighRisk'({def:_0xe102e7,env:_0x488d29,flags:_0x48f427,commandLabel:_0x19077e}){const _0x3dd284=a57_0x488e20;if(_0x488d29[_0x3dd284(0x1e5)]){const _0x336ad4=reconstructCommandArgv(_0xe102e7,_0x48f427);throw CliErrors[_0x3dd284(0x203)](_0x3dd284(0x20e)+_0x19077e+_0x3dd284(0x206)+(_0x3dd284(0x219)+_0x336ad4));}await requireConfirmationPrompt({'lines':buildConfirmationLines(_0xe102e7,_0x19077e,_0x48f427),'createCancelledError':_0x392a41=>CliErrors[_0x3dd284(0x201)](_0x392a41)});},'mapDryRunError'(_0x658905){return mapUserFacingExecuteError(_0x658905);},'mapExecuteError'(_0x5d252c){return mapUserFacingExecuteError(_0x5d252c);},async 'finalize'(){const _0x3d367d=a57_0x488e20,{clearActiveAK:_0x478ac3}=await import(_0x3d367d(0x1fa));_0x478ac3();}};function a57_0x5956(_0x385f7d,_0x4eff64){_0x385f7d=_0x385f7d-0x1e3;const _0x3bf128=a57_0x3bf1();let _0x59569c=_0x3bf128[_0x385f7d];return _0x59569c;}async function resolveExplicitAppName(_0x4e43cd,_0x20ed6a,_0xa57ca2){const _0x16939e=a57_0x488e20;if(_0x4e43cd[_0x16939e(0x1eb)]===![])return _0xa57ca2;const _0x581216=typeof _0x20ed6a[_0x16939e(0x20c)][_0x16939e(0x1fd)]===_0x16939e(0x1e9)?_0x20ed6a[_0x16939e(0x20c)][_0x16939e(0x1fd)][_0x16939e(0x1e6)]():'';if(!_0x581216)return _0xa57ca2;const _0x503fd8=typeof _0x20ed6a[_0x16939e(0x20c)][_0x16939e(0x1f1)]===_0x16939e(0x1e9)&&_0x20ed6a[_0x16939e(0x20c)][_0x16939e(0x1f1)][_0x16939e(0x1e6)]()||productEnv(_0x16939e(0x1f4));if(_0x503fd8||_0x20ed6a[_0x16939e(0x211)]==='local-alias')return _0xa57ca2;const {getRemoteAppList:_0x2f99f0}=await import(_0x16939e(0x1fb)),_0x2826c1=await _0x2f99f0({'env':_0x20ed6a[_0x16939e(0x212)]??_0x16939e(0x1ef),'accessKey':_0x20ed6a['accessKey']}),_0x396783=_0x2826c1['items'][_0x16939e(0x20f)](_0x19401f=>_0x19401f[_0x16939e(0x217)]===_0x581216),_0x1efa93=_0x396783?.['appCode']?.[_0x16939e(0x1e6)]();if(_0x1efa93)return _0x1efa93;throw CliErrors[_0x16939e(0x203)](_0x16939e(0x20a)+_0x581216,_0x16939e(0x204)+CLI_BIN_NAME+'\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20add\x20apps.'+_0x581216+'.appcode\x20to\x20'+PRODUCT_CONFIG['newConfigFileName']+'.');}export async function runCommand(_0x326fa1,_0x1a2a0f){await runCommandWithAdapter(_0x326fa1,_0x1a2a0f,runnerAdapter);}
@@ -1 +1 @@
1
- (function(_0x32a371,_0x71bf92){const _0x589767=a57_0x5b74,_0x2c047f=_0x32a371();while(!![]){try{const _0x1d6318=-parseInt(_0x589767(0xd6))/0x1+-parseInt(_0x589767(0xdf))/0x2*(-parseInt(_0x589767(0xd7))/0x3)+-parseInt(_0x589767(0xda))/0x4*(-parseInt(_0x589767(0xe0))/0x5)+-parseInt(_0x589767(0xd8))/0x6*(-parseInt(_0x589767(0xd4))/0x7)+-parseInt(_0x589767(0xdc))/0x8*(parseInt(_0x589767(0xd5))/0x9)+-parseInt(_0x589767(0xde))/0xa+-parseInt(_0x589767(0xdb))/0xb*(-parseInt(_0x589767(0xd9))/0xc);if(_0x1d6318===_0x71bf92)break;else _0x2c047f['push'](_0x2c047f['shift']());}catch(_0x597d32){_0x2c047f['push'](_0x2c047f['shift']());}}}(a57_0x305f,0x65ca8));function a57_0x5b74(_0x3d90d3,_0xc96e6f){_0x3d90d3=_0x3d90d3-0xd4;const _0x305f71=a57_0x305f();let _0x5b74a2=_0x305f71[_0x3d90d3];return _0x5b74a2;}import{buildSchemaPayload as a57_0x251bf0}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';function a57_0x305f(){const _0x3fcfca=['2090935BsGESt','72OqPcTQ','467655HqfkTB','120HiDHWA','6tYuoGR','828PFcnku','1894388vMHauW','58069ahyylB','804184WEOfJs','../commands/registry.js','366580ctdZgG','29444tEIQyv','5kCTFiD'];a57_0x305f=function(){return _0x3fcfca;};return a57_0x305f();}export async function buildSchemaPayload(){const _0x16134b=a57_0x5b74,{serviceRegistry:_0xd01cd6,findDefinition:_0x3eef19}=await import(_0x16134b(0xdd));return a57_0x251bf0({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':process.env.GIT_COMMIT??'','globalFlags':GLOBAL_FLAGS,'serviceRegistry':_0xd01cd6,'buildAllFlags':buildAllFlags,'findDefinition':_0x3eef19});}
1
+ (function(_0x5cea1a,_0x3782e0){const _0x3c4cd7=a58_0x310c,_0x2870f1=_0x5cea1a();while(!![]){try{const _0x5efd38=-parseInt(_0x3c4cd7(0x1f8))/0x1*(parseInt(_0x3c4cd7(0x1f6))/0x2)+parseInt(_0x3c4cd7(0x1f1))/0x3+parseInt(_0x3c4cd7(0x1f7))/0x4+-parseInt(_0x3c4cd7(0x1f9))/0x5+parseInt(_0x3c4cd7(0x1f5))/0x6+-parseInt(_0x3c4cd7(0x1f2))/0x7*(-parseInt(_0x3c4cd7(0x1f4))/0x8)+-parseInt(_0x3c4cd7(0x1fa))/0x9*(-parseInt(_0x3c4cd7(0x1f3))/0xa);if(_0x5efd38===_0x3782e0)break;else _0x2870f1['push'](_0x2870f1['shift']());}catch(_0x2212b0){_0x2870f1['push'](_0x2870f1['shift']());}}}(a58_0x257e,0x8d5d7));function a58_0x310c(_0x1c674f,_0x505fe3){_0x1c674f=_0x1c674f-0x1f1;const _0x257eee=a58_0x257e();let _0x310c4f=_0x257eee[_0x1c674f];return _0x310c4f;}import{buildSchemaPayload as a58_0x127fe8}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';function a58_0x257e(){const _0x18c411=['145896BfDwBk','3818928TbMaed','2apaMkp','723256SlLbTk','1097417oTSwDb','4625390EpNYOr','127296FqoRQq','1503789VmnDwy','259LdiPae','430uHqBsQ'];a58_0x257e=function(){return _0x18c411;};return a58_0x257e();}import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';import{getCliVersion}from'../utils/version.js';export async function buildSchemaPayload(){const {serviceRegistry:_0x5f1e5f,findDefinition:_0x4146be}=await import('../commands/registry.js');return a58_0x127fe8({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':process.env.GIT_COMMIT??'','globalFlags':GLOBAL_FLAGS,'serviceRegistry':_0x5f1e5f,'buildAllFlags':buildAllFlags,'findDefinition':_0x4146be});}
@@ -1 +1 @@
1
- function a58_0x24bf(_0x483328,_0x1fe919){_0x483328=_0x483328-0x18d;var _0x3eb12f=a58_0x3eb1();var _0x24bff5=_0x3eb12f[_0x483328];return _0x24bff5;}function a58_0x3eb1(){var _0x509de9=['517384crYMhr','4774026DhZpOY','15857487GNvWBN','843064oUGPBN','4621078ipXJoW','7723864gznpVY','5qlADvI','12RocxZc','745852LOPkTm'];a58_0x3eb1=function(){return _0x509de9;};return a58_0x3eb1();}(function(_0x5efbe2,_0x3ad4eb){var _0x96eb2b=a58_0x24bf,_0x2e87d3=_0x5efbe2();while(!![]){try{var _0x10464c=-parseInt(_0x96eb2b(0x190))/0x1+parseInt(_0x96eb2b(0x18d))/0x2*(parseInt(_0x96eb2b(0x194))/0x3)+-parseInt(_0x96eb2b(0x195))/0x4*(parseInt(_0x96eb2b(0x193))/0x5)+-parseInt(_0x96eb2b(0x18e))/0x6+parseInt(_0x96eb2b(0x191))/0x7+-parseInt(_0x96eb2b(0x192))/0x8+parseInt(_0x96eb2b(0x18f))/0x9;if(_0x10464c===_0x3ad4eb)break;else _0x2e87d3['push'](_0x2e87d3['shift']());}catch(_0x2d7481){_0x2e87d3['push'](_0x2e87d3['shift']());}}}(a58_0x3eb1,0xa2a48));export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat}from'@lovrabet/cli-framework';
1
+ function a59_0x52ef(){var _0xc59311=['42jLHsiB','3528792gHcxBp','4309245VBsHzf','198207elTWYj','740iKliWD','900tfcCYA','274794Mdrdug','389739cPcoem','2098685QlVcZn'];a59_0x52ef=function(){return _0xc59311;};return a59_0x52ef();}(function(_0x45123d,_0x31a355){var _0x406c91=a59_0x1980,_0x1e4989=_0x45123d();while(!![]){try{var _0x31cd00=parseInt(_0x406c91(0x1d9))/0x1+-parseInt(_0x406c91(0x1d3))/0x2+-parseInt(_0x406c91(0x1d2))/0x3*(-parseInt(_0x406c91(0x1da))/0x4)+-parseInt(_0x406c91(0x1d5))/0x5+-parseInt(_0x406c91(0x1d6))/0x6*(parseInt(_0x406c91(0x1d4))/0x7)+parseInt(_0x406c91(0x1d7))/0x8+parseInt(_0x406c91(0x1d8))/0x9;if(_0x31cd00===_0x31a355)break;else _0x1e4989['push'](_0x1e4989['shift']());}catch(_0x545753){_0x1e4989['push'](_0x1e4989['shift']());}}}(a59_0x52ef,0x375b2));function a59_0x1980(_0x5468ca,_0x1afb83){_0x5468ca=_0x5468ca-0x1d2;var _0x52efc0=a59_0x52ef();var _0x1980fc=_0x52efc0[_0x5468ca];return _0x1980fc;}export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat}from'@lovrabet/cli-framework';
package/lib/help.js CHANGED
@@ -1 +1 @@
1
- function a59_0x53b1(_0x447ce4,_0x2668a4){_0x447ce4=_0x447ce4-0xd7;const _0x421b13=a59_0x421b();let _0x53b115=_0x421b13[_0x447ce4];return _0x53b115;}(function(_0x486c75,_0x5a5806){const _0x493a25=a59_0x53b1,_0x3afa3b=_0x486c75();while(!![]){try{const _0x5001e8=parseInt(_0x493a25(0xd8))/0x1*(parseInt(_0x493a25(0xde))/0x2)+-parseInt(_0x493a25(0xdf))/0x3*(parseInt(_0x493a25(0xe2))/0x4)+parseInt(_0x493a25(0xe5))/0x5*(-parseInt(_0x493a25(0xe7))/0x6)+-parseInt(_0x493a25(0xe0))/0x7+parseInt(_0x493a25(0xe4))/0x8*(parseInt(_0x493a25(0xd7))/0x9)+parseInt(_0x493a25(0xdd))/0xa+parseInt(_0x493a25(0xe3))/0xb*(parseInt(_0x493a25(0xe1))/0xc);if(_0x5001e8===_0x5a5806)break;else _0x3afa3b['push'](_0x3afa3b['shift']());}catch(_0x41145b){_0x3afa3b['push'](_0x3afa3b['shift']());}}}(a59_0x421b,0x2505a));import{jsx as a59_0x416848,jsxs as a59_0x3fda02}from'react/jsx-runtime';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 _0x459443=a59_0x53b1,{exit:_0x46b4eb}=useApp();return useEffect(()=>{_0x46b4eb();},[_0x46b4eb]),a59_0x3fda02(Box,{'flexDirection':_0x459443(0xda),'marginTop':0x1,'marginBottom':0x1,'children':[a59_0x416848(Box,{'children':a59_0x416848(Text,{'bold':!![],'color':'green','children':'\x20\x20'+CLI_DISPLAY_NAME})}),a59_0x3fda02(Box,{'marginTop':0x1,'children':[a59_0x416848(Text,{'dimColor':!![],'children':_0x459443(0xe6)}),a59_0x416848(Text,{'bold':!![],'color':_0x459443(0xd9),'children':CLI_BIN_NAME+_0x459443(0xdb)}),a59_0x416848(Text,{'dimColor':!![],'children':_0x459443(0xdc)})]})]});}function a59_0x421b(){const _0x366c8c=['1813084qXbTJg','450348fUuWmw','32XLRHnr','121ekCZhS','473232xSSbzL','26115nCfxcJ','\x20\x20Use\x20','234lfRVeb','45mMmQzm','79098mHtQzA','green','column','\x20--help','\x20to\x20view\x20available\x20commands.','266300fPecsT','4xPaKPK','104649QQtjxE'];a59_0x421b=function(){return _0x366c8c;};return a59_0x421b();}
1
+ function a60_0x1569(){const _0x15bad5=['12EWluqS','1867987miFzCj','15804ChCPFY','77588RIMzXX','column','1292472wCbCxd','22VYpAWt','105uiGQmP','7899fvlSGa','green','296vXjKta','1000074vcyjrA','93476GHGlUV','\x20to\x20view\x20available\x20commands.','3470nuxXWm','\x20\x20Use\x20'];a60_0x1569=function(){return _0x15bad5;};return a60_0x1569();}(function(_0x232eac,_0x5e9fe1){const _0x4b1d17=a60_0x29af,_0x9da562=_0x232eac();while(!![]){try{const _0x46e64f=-parseInt(_0x4b1d17(0x104))/0x1*(-parseInt(_0x4b1d17(0x102))/0x2)+-parseInt(_0x4b1d17(0x101))/0x3+parseInt(_0x4b1d17(0x108))/0x4*(parseInt(_0x4b1d17(0x103))/0x5)+-parseInt(_0x4b1d17(0x107))/0x6+-parseInt(_0x4b1d17(0xff))/0x7*(parseInt(_0x4b1d17(0x106))/0x8)+parseInt(_0x4b1d17(0xfe))/0x9*(parseInt(_0x4b1d17(0x10a))/0xa)+-parseInt(_0x4b1d17(0xfd))/0xb*(-parseInt(_0x4b1d17(0xfc))/0xc);if(_0x46e64f===_0x5e9fe1)break;else _0x9da562['push'](_0x9da562['shift']());}catch(_0x570e6f){_0x9da562['push'](_0x9da562['shift']());}}}(a60_0x1569,0x553f8));import{jsx as a60_0xe5fb79,jsxs as a60_0x3da07c}from'react/jsx-runtime';function a60_0x29af(_0xc2b65d,_0xb1e134){_0xc2b65d=_0xc2b65d-0xfc;const _0x156940=a60_0x1569();let _0x29af98=_0x156940[_0xc2b65d];return _0x29af98;}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 _0x29f200=a60_0x29af,{exit:_0x194d2e}=useApp();return useEffect(()=>{_0x194d2e();},[_0x194d2e]),a60_0x3da07c(Box,{'flexDirection':_0x29f200(0x100),'marginTop':0x1,'marginBottom':0x1,'children':[a60_0xe5fb79(Box,{'children':a60_0xe5fb79(Text,{'bold':!![],'color':_0x29f200(0x105),'children':'\x20\x20'+CLI_DISPLAY_NAME})}),a60_0x3da07c(Box,{'marginTop':0x1,'children':[a60_0xe5fb79(Text,{'dimColor':!![],'children':_0x29f200(0x10b)}),a60_0xe5fb79(Text,{'bold':!![],'color':_0x29f200(0x105),'children':CLI_BIN_NAME+'\x20--help'}),a60_0xe5fb79(Text,{'dimColor':!![],'children':_0x29f200(0x109)})]})]});}
@@ -1 +1 @@
1
- const a60_0x7673fb=a60_0x4ce7;(function(_0x44d355,_0x1aa14e){const _0x4794fe=a60_0x4ce7,_0x492fda=_0x44d355();while(!![]){try{const _0x4b6ef5=-parseInt(_0x4794fe(0xe3))/0x1*(parseInt(_0x4794fe(0xe5))/0x2)+-parseInt(_0x4794fe(0xdc))/0x3*(-parseInt(_0x4794fe(0xdb))/0x4)+-parseInt(_0x4794fe(0xe4))/0x5*(-parseInt(_0x4794fe(0xe2))/0x6)+parseInt(_0x4794fe(0xdd))/0x7*(parseInt(_0x4794fe(0xe6))/0x8)+-parseInt(_0x4794fe(0xe8))/0x9+-parseInt(_0x4794fe(0xd9))/0xa+parseInt(_0x4794fe(0xde))/0xb;if(_0x4b6ef5===_0x1aa14e)break;else _0x492fda['push'](_0x492fda['shift']());}catch(_0x428ab0){_0x492fda['push'](_0x492fda['shift']());}}}(a60_0xad54,0x5a068));import{spawnSync}from'node:child_process';import{resolveNpmBin}from'../utils/platform.js';function a60_0x4ce7(_0x136f9f,_0x129bb9){_0x136f9f=_0x136f9f-0xd2;const _0xad5437=a60_0xad54();let _0x4ce7aa=_0xad5437[_0x136f9f];return _0x4ce7aa;}import{LOVRABET_SKILL_SOURCE as a60_0x2d7406}from'../constant/distribution.js';import{PRODUCT_CONFIG,productEnvName}from'../constant/product.js';export const LOVRABET_SKILL_SOURCE=a60_0x2d7406;function a60_0xad54(){const _0x39cacc=['skills','21812FhDVEb','192LUvHFu','441BzavEb','3736711WumgOx','log','skipNpxSkillsEnvSuffix','add','2994TTUOvm','5334bEZWrS','5620XtcRIK','148jWqGLZ','28264qvIKqP','npx','721080tZoufi','stdio','trim','join','pipe','status','inherit','toString','stdout','stderr','unknown','exit\x20','6285680UsauDO'];a60_0xad54=function(){return _0x39cacc;};return a60_0xad54();}export const LOVRABET_SKIP_NPX_SKILLS_ENV=productEnvName(PRODUCT_CONFIG[a60_0x7673fb(0xe0)]);export function shouldSkipNpxSkillsAdd(){return process.env[LOVRABET_SKIP_NPX_SKILLS_ENV]==='1';}export function runNpxSkillsAddGlobal(_0x104da8,_0x1874fb=LOVRABET_SKILL_SOURCE,_0xecb5c5){const _0x1aa3a2=a60_0x7673fb;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x20b074=_0xecb5c5?.[_0x1aa3a2(0xe9)]??_0x1aa3a2(0xd3),_0x47dba8=resolveNpmBin(_0x1aa3a2(0xe7)),_0x1bc787=[_0x1aa3a2(0xda),_0x1aa3a2(0xe1),_0x1874fb,'-g','-y'],_0x1c66fb=[_0x47dba8,..._0x1bc787][_0x1aa3a2(0xeb)]('\x20');console[_0x1aa3a2(0xdf)]('*\x20'+_0x1c66fb);const _0x9fed35=spawnSync(_0x47dba8,_0x1bc787,{'cwd':_0x104da8,'stdio':_0x20b074,'env':process.env,'shell':![]});if(_0x9fed35[_0x1aa3a2(0xd2)]===0x0)return{'ok':!![],'status':0x0};let _0x1cdb52=_0x1aa3a2(0xd8)+(_0x9fed35[_0x1aa3a2(0xd2)]??_0x1aa3a2(0xd7));if(_0x20b074===_0x1aa3a2(0xec)){const _0x177b62=_0x9fed35[_0x1aa3a2(0xd6)]?_0x9fed35[_0x1aa3a2(0xd6)][_0x1aa3a2(0xd4)]()[_0x1aa3a2(0xea)]():'',_0x279087=_0x9fed35[_0x1aa3a2(0xd5)]?_0x9fed35['stdout'][_0x1aa3a2(0xd4)]()['trim']():'';if(_0x177b62)_0x1cdb52=_0x177b62;else{if(_0x279087)_0x1cdb52=_0x279087;}}return{'ok':![],'status':_0x9fed35[_0x1aa3a2(0xd2)]??null,'error':_0x1cdb52};}
1
+ const a61_0xc3e34e=a61_0x17b7;function a61_0x17b7(_0x4c7575,_0x356d30){_0x4c7575=_0x4c7575-0x10e;const _0x369e67=a61_0x369e();let _0x17b7a0=_0x369e67[_0x4c7575];return _0x17b7a0;}(function(_0x56afbb,_0x382e0e){const _0x6abf31=a61_0x17b7,_0x1d81ee=_0x56afbb();while(!![]){try{const _0x3a06a6=-parseInt(_0x6abf31(0x11e))/0x1*(parseInt(_0x6abf31(0x11a))/0x2)+-parseInt(_0x6abf31(0x11d))/0x3*(-parseInt(_0x6abf31(0x127))/0x4)+parseInt(_0x6abf31(0x110))/0x5*(parseInt(_0x6abf31(0x112))/0x6)+-parseInt(_0x6abf31(0x119))/0x7+parseInt(_0x6abf31(0x118))/0x8+parseInt(_0x6abf31(0x122))/0x9*(-parseInt(_0x6abf31(0x126))/0xa)+parseInt(_0x6abf31(0x11f))/0xb*(parseInt(_0x6abf31(0x11b))/0xc);if(_0x3a06a6===_0x382e0e)break;else _0x1d81ee['push'](_0x1d81ee['shift']());}catch(_0x5a5571){_0x1d81ee['push'](_0x1d81ee['shift']());}}}(a61_0x369e,0xd6015));import{spawnSync}from'node:child_process';import{resolveNpmBin}from'../utils/platform.js';import{LOVRABET_SKILL_SOURCE as a61_0x7a5a93}from'../constant/distribution.js';function a61_0x369e(){const _0x1a8422=['stderr','301960VIZPda','4TNkgtE','stdout','skills','140zTkJhE','join','20694gBFNTI','toString','skipNpxSkillsEnvSuffix','add','stdio','unknown','13305376iXYOxR','3136392YnByQY','1607276JjYsas','2465796wbAhwf','log','4674183eNQrVz','2YWZMin','44ADTasS','pipe','trim','360ZOOags','exit\x20','status'];a61_0x369e=function(){return _0x1a8422;};return a61_0x369e();}import{PRODUCT_CONFIG,productEnvName}from'../constant/product.js';export const LOVRABET_SKILL_SOURCE=a61_0x7a5a93;export const LOVRABET_SKIP_NPX_SKILLS_ENV=productEnvName(PRODUCT_CONFIG[a61_0xc3e34e(0x114)]);export function shouldSkipNpxSkillsAdd(){return process.env[LOVRABET_SKIP_NPX_SKILLS_ENV]==='1';}export function runNpxSkillsAddGlobal(_0x252362,_0x4614be=LOVRABET_SKILL_SOURCE,_0x7d4392){const _0x55c36a=a61_0xc3e34e;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x3a2f4c=_0x7d4392?.[_0x55c36a(0x116)]??'inherit',_0xf15dc4=resolveNpmBin('npx'),_0x2ba6e7=[_0x55c36a(0x10f),_0x55c36a(0x115),_0x4614be,'-g','-y'],_0x537828=[_0xf15dc4,..._0x2ba6e7][_0x55c36a(0x111)]('\x20');console[_0x55c36a(0x11c)]('*\x20'+_0x537828);const _0x469dc7=spawnSync(_0xf15dc4,_0x2ba6e7,{'cwd':_0x252362,'stdio':_0x3a2f4c,'env':process.env,'shell':![]});if(_0x469dc7[_0x55c36a(0x124)]===0x0)return{'ok':!![],'status':0x0};let _0x1803f7=_0x55c36a(0x123)+(_0x469dc7[_0x55c36a(0x124)]??_0x55c36a(0x117));if(_0x3a2f4c===_0x55c36a(0x120)){const _0x4df040=_0x469dc7[_0x55c36a(0x125)]?_0x469dc7[_0x55c36a(0x125)][_0x55c36a(0x113)]()[_0x55c36a(0x121)]():'',_0x2f8262=_0x469dc7['stdout']?_0x469dc7[_0x55c36a(0x10e)][_0x55c36a(0x113)]()[_0x55c36a(0x121)]():'';if(_0x4df040)_0x1803f7=_0x4df040;else{if(_0x2f8262)_0x1803f7=_0x2f8262;}}return{'ok':![],'status':_0x469dc7[_0x55c36a(0x124)]??null,'error':_0x1803f7};}
@@ -0,0 +1 @@
1
+ const a62_0x250017=a62_0x16d0;(function(_0x105884,_0x4c873b){const _0xf311ee=a62_0x16d0,_0x3c9ccf=_0x105884();while(!![]){try{const _0x18763e=-parseInt(_0xf311ee(0x1f8))/0x1+parseInt(_0xf311ee(0x210))/0x2*(-parseInt(_0xf311ee(0x211))/0x3)+-parseInt(_0xf311ee(0x20c))/0x4+-parseInt(_0xf311ee(0x21a))/0x5+parseInt(_0xf311ee(0x225))/0x6+-parseInt(_0xf311ee(0x1e4))/0x7+parseInt(_0xf311ee(0x1ee))/0x8*(parseInt(_0xf311ee(0x1f6))/0x9);if(_0x18763e===_0x4c873b)break;else _0x3c9ccf['push'](_0x3c9ccf['shift']());}catch(_0x4c761a){_0x3c9ccf['push'](_0x3c9ccf['shift']());}}}(a62_0xf0d3,0x5467e));import{createHash}from'node:crypto';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';function a62_0x16d0(_0x270b3b,_0x5bb567){_0x270b3b=_0x270b3b-0x1e1;const _0xf0d353=a62_0xf0d3();let _0x16d00d=_0xf0d353[_0x270b3b];return _0x16d00d;}import{fingerprintAccessKey}from'../commands/app/cache.js';function a62_0xf0d3(){const _0x131991=['Refusing\x20to\x20overwrite\x20unmanaged\x20path:\x20','616KLxZPw','cache','isArray','force','cacheRoot','endsWith','Skill\x20directory\x20not\x20found:\x20','agentsSkillsDir','266067mIxNTd','isDirectory','292522rmTfeA','skillCode','get','managedRoot','startsWith','claudeSkillsDir','values','update','readonly','version','appCode','personal','dir','pulledAt','.agents','Skill\x20metadata\x20appCode\x20\x22','trim','hasUpstreamUpdate','homeDirName','accessKey','1924044Brgizq','forkedFromSkillId','push','unchanged','27836RKxWIU','87YAESpn','lovrabet.skill.json','includes','SKILL.md','validation','Only\x20personal\x20Skills\x20can\x20be\x20pushed;\x20','set','Invalid\x20','slice','1256995FicXDx','skill','env','isFile','sourceSessionId','length','contentHash','description','homeDir','sha256','isSymbolicLink','185808FCNoLP','skills','skillName','stringify','Missing\x20','tags','.claude','updated','tenantCode','3731273CBrPdI','forkedFromVersion','Runtime\x20Skill\x20is\x20missing\x20skillCode.','digest','paths','content','.tmp','Unable\x20to\x20resolve\x20skillCode\x20from\x20','utf8'];a62_0xf0d3=function(){return _0x131991;};return a62_0xf0d3();}import{PRODUCT_CONFIG}from'../constant/product.js';import{CliErrors}from'../errors.js';const METADATA_FILE=a62_0x250017(0x212),SKILL_FILE=a62_0x250017(0x214);export function resolveSkillSyncPaths(_0x40e746={}){const _0x2238e6=a62_0x250017,_0x5c8a71=_0x40e746[_0x2238e6(0x222)]??homedir(),_0x2bb348=resolve(_0x5c8a71,PRODUCT_CONFIG['homeDirName'],_0x2238e6(0x1ef));return{'homeDir':_0x5c8a71,'cacheRoot':_0x2bb348,'managedRoot':resolve(_0x5c8a71,PRODUCT_CONFIG[_0x2238e6(0x20a)]),'agentsSkillsDir':_0x40e746[_0x2238e6(0x1f5)]??resolve(_0x5c8a71,_0x2238e6(0x206),_0x2238e6(0x226)),'claudeSkillsDir':_0x40e746[_0x2238e6(0x1fd)]??resolve(_0x5c8a71,_0x2238e6(0x1e1),_0x2238e6(0x226))};}export function getRuntimeSkillCacheRoot(_0x51303b,_0x3ae275,_0x31cda8={}){const _0x5f4e69=a62_0x250017,_0x4145af=resolveSkillSyncPaths(_0x31cda8);return resolve(_0x4145af[_0x5f4e69(0x1f2)],_0x51303b,fingerprintAccessKey(_0x3ae275),_0x5f4e69(0x226));}export function getRuntimeSkillDir(_0x1dff3f,_0x3e1ba6,_0x313bfc,_0x4b3138,_0x1acd0c,_0x3b3ffd={}){const _0x302c0a=a62_0x250017;return resolve(getRuntimeSkillCacheRoot(_0x1dff3f,_0x3e1ba6,_0x3b3ffd),safePathSegment(_0x313bfc,_0x302c0a(0x202)),_0x4b3138,safePathSegment(_0x1acd0c,_0x302c0a(0x1f9)));}export function contentHash(_0x1b497a){const _0x55a13c=a62_0x250017;return createHash(_0x55a13c(0x223))[_0x55a13c(0x1ff)](_0x1b497a)[_0x55a13c(0x1e7)]('hex');}export function materializeRuntimeSkill(_0x5d94ea,_0x40de8b,_0x48eb79){const _0x1f9b8b=a62_0x250017,_0xedd058=requireSkillCode(_0x5d94ea),_0x52ac42=_0x5d94ea[_0x1f9b8b(0x1e9)]??'',_0x348b95=getRuntimeSkillDir(_0x48eb79[_0x1f9b8b(0x21c)],_0x48eb79[_0x1f9b8b(0x20b)],_0x48eb79[_0x1f9b8b(0x202)],_0x40de8b,_0xedd058,_0x48eb79[_0x1f9b8b(0x1e8)]),_0x1cb596=resolve(_0x348b95,SKILL_FILE),_0x4b996d=resolve(_0x348b95,METADATA_FILE),_0x237812=contentHash(_0x52ac42);ensurePulledFileCanBeOverwritten(_0x1cb596,_0x4b996d,_0x48eb79[_0x1f9b8b(0x1f1)]===!![]),mkdirSync(_0x348b95,{'recursive':!![],'mode':0x1c0});const _0x4a331c=existsSync(_0x1cb596)?readFileSync(_0x1cb596,_0x1f9b8b(0x1ec)):undefined;return writeTextAtomic(_0x1cb596,_0x52ac42,0x180),writeJsonAtomic(_0x4b996d,buildMetadata(_0x5d94ea,_0x40de8b,_0x48eb79[_0x1f9b8b(0x202)],_0x237812,_0x48eb79[_0x1f9b8b(0x205)])),{'skill':_0x5d94ea,'scope':_0x40de8b,'dir':_0x348b95,'skillMdPath':_0x1cb596,'metadataPath':_0x4b996d,'contentHash':_0x237812,'changed':_0x4a331c!==_0x52ac42};}export function linkEffectiveRuntimeSkills(_0x34b7f6,_0x352e85,_0x3e4dcf={}){const _0x305106=a62_0x250017,_0x152f19=new Map();for(const _0x1f8de3 of _0x34b7f6){const _0x4a927c=_0x1f8de3['skill'][_0x305106(0x1f9)];if(!_0x4a927c)continue;const _0x57fa07=_0x152f19[_0x305106(0x1fa)](_0x4a927c);(!_0x57fa07||_0x1f8de3['scope']==='personal')&&_0x152f19[_0x305106(0x217)](_0x4a927c,_0x1f8de3);}const _0x3a37c3=[],_0x4d0ba8=resolveSkillSyncPaths(_0x3e4dcf);for(const _0x59c473 of _0x152f19[_0x305106(0x1fe)]()){const _0xaa97c8=requireSkillCode(_0x59c473[_0x305106(0x21b)]),_0x2bdb31=_0x352e85+'--'+_0xaa97c8;for(const _0x3e79e3 of[_0x4d0ba8['agentsSkillsDir'],_0x4d0ba8[_0x305106(0x1fd)]]){_0x3a37c3[_0x305106(0x20e)](ensureManagedSymlink(resolve(_0x3e79e3,_0x2bdb31),_0x59c473[_0x305106(0x204)],_0x4d0ba8[_0x305106(0x1fb)]));}}return _0x3a37c3;}export function readPushDirectory(_0x18914d,_0x260b92){const _0x187fca=a62_0x250017,_0x5c0ad5=resolve(_0x18914d);if(!existsSync(_0x5c0ad5)||!lstatSync(_0x5c0ad5)[_0x187fca(0x1f7)]())throw CliErrors[_0x187fca(0x215)](_0x187fca(0x1f4)+_0x18914d);const _0x458285=resolve(_0x5c0ad5,SKILL_FILE);if(!existsSync(_0x458285)||!lstatSync(_0x458285)[_0x187fca(0x21d)]())throw CliErrors[_0x187fca(0x215)](_0x187fca(0x229)+SKILL_FILE+':\x20'+_0x458285);const _0x191a15=readMetadataIfPresent(resolve(_0x5c0ad5,METADATA_FILE));if(_0x191a15&&_0x191a15['scope']!==_0x187fca(0x203))throw CliErrors[_0x187fca(0x215)](_0x187fca(0x216)+METADATA_FILE+'\x20has\x20scope=\x22'+_0x191a15['scope']+'\x22.');if(_0x191a15?.[_0x187fca(0x202)]&&_0x191a15[_0x187fca(0x202)]!==_0x260b92)throw CliErrors[_0x187fca(0x215)](_0x187fca(0x207)+_0x191a15[_0x187fca(0x202)]+'\x22\x20does\x20not\x20match\x20current\x20appCode\x20\x22'+_0x260b92+'\x22.');const _0x9953fe=readFileSync(_0x458285,_0x187fca(0x1ec)),_0x21d6a8=_0x191a15?.[_0x187fca(0x1f9)]??deriveSkillCodeFromDirectory(_0x5c0ad5,_0x260b92);if(!_0x21d6a8)throw CliErrors[_0x187fca(0x215)](_0x187fca(0x1eb)+METADATA_FILE+'\x20or\x20directory\x20name.');return{'skillCode':_0x21d6a8,'metadata':_0x191a15,'input':{'skillCode':_0x21d6a8,'skillName':_0x191a15?.[_0x187fca(0x227)],'description':_0x191a15?.[_0x187fca(0x221)],'content':_0x9953fe,'tags':_0x191a15?.[_0x187fca(0x22a)],'version':_0x191a15?.[_0x187fca(0x201)],'sourceSessionId':_0x191a15?.['sourceSessionId']}};}export function deriveSkillCodeFromDirectory(_0x5382aa,_0x444109){const _0x52b865=a62_0x250017,_0x1a5d72=basename(resolve(_0x5382aa)),_0x54ab50=_0x444109+'--';return _0x1a5d72[_0x52b865(0x1fc)](_0x54ab50)?_0x1a5d72[_0x52b865(0x219)](_0x54ab50[_0x52b865(0x21f)]):_0x1a5d72;}export function readMetadataIfPresent(_0x5c2805){const _0x515b48=a62_0x250017;if(!existsSync(_0x5c2805))return undefined;try{const _0x55d0e1=JSON['parse'](readFileSync(_0x5c2805,_0x515b48(0x1ec)));return _0x55d0e1;}catch{throw CliErrors[_0x515b48(0x215)](_0x515b48(0x218)+METADATA_FILE+':\x20'+_0x5c2805);}}function buildMetadata(_0x290d58,_0x1b1cbd,_0x304f25,_0x4d11b7,_0x88ec0a){const _0x249ed8=a62_0x250017;return{'schemaVersion':0x1,'id':_0x290d58['id'],'appCode':_0x304f25,'skillCode':requireSkillCode(_0x290d58),'skillName':_0x290d58[_0x249ed8(0x227)],'description':_0x290d58[_0x249ed8(0x221)],'scope':_0x1b1cbd,'readonly':_0x1b1cbd!==_0x249ed8(0x203)||_0x290d58[_0x249ed8(0x200)]===!![],'tenantCode':_0x290d58[_0x249ed8(0x1e3)],'userId':_0x290d58['userId'],'version':_0x290d58[_0x249ed8(0x201)],'status':_0x290d58['status'],'tags':Array[_0x249ed8(0x1f0)](_0x290d58['tags'])?_0x290d58['tags']:[],'hasUpstreamUpdate':_0x290d58[_0x249ed8(0x209)],'forkedFromSkillId':_0x290d58[_0x249ed8(0x20d)],'forkedFromVersion':_0x290d58[_0x249ed8(0x1e5)],'sourceSessionId':_0x290d58[_0x249ed8(0x21e)],'contentHash':_0x4d11b7,'pulledAt':_0x88ec0a??new Date()['toISOString']()};}function requireSkillCode(_0x15bf54){const _0x183f12=a62_0x250017,_0x5a52dc=_0x15bf54[_0x183f12(0x1f9)]?.[_0x183f12(0x208)]();if(!_0x5a52dc)throw CliErrors[_0x183f12(0x215)](_0x183f12(0x1e6));return _0x5a52dc;}function safePathSegment(_0x21c486,_0x2188e0='path\x20segment'){const _0x293e1c=a62_0x250017;if(!_0x21c486||_0x21c486[_0x293e1c(0x213)]('/')||_0x21c486[_0x293e1c(0x213)]('\x5c')||_0x21c486[_0x293e1c(0x213)]('..'))throw CliErrors[_0x293e1c(0x215)]('Unsafe\x20'+_0x2188e0+'\x20for\x20local\x20path:\x20'+_0x21c486);return _0x21c486;}function ensurePulledFileCanBeOverwritten(_0x26977e,_0x193505,_0x10ee80){const _0x28a03e=a62_0x250017;if(_0x10ee80||!existsSync(_0x26977e)||!existsSync(_0x193505))return;const _0x21bb00=readMetadataIfPresent(_0x193505);if(!_0x21bb00?.['contentHash'])return;const _0x1d0dbc=contentHash(readFileSync(_0x26977e,_0x28a03e(0x1ec)));if(_0x1d0dbc!==_0x21bb00[_0x28a03e(0x220)])throw CliErrors[_0x28a03e(0x215)]('Local\x20SKILL.md\x20has\x20unpushed\x20edits:\x20'+_0x26977e,'Push\x20the\x20directory\x20first\x20or\x20rerun\x20pull\x20with\x20a\x20future\x20force\x20option.');}function ensureManagedSymlink(_0x50569b,_0x3863d2,_0x40f87f){const _0xf2433a=a62_0x250017;mkdirSync(dirname(_0x50569b),{'recursive':!![],'mode':0x1c0});if(existsSync(_0x50569b)||isDanglingSymlink(_0x50569b)){const _0x2b79bd=lstatSync(_0x50569b);if(!_0x2b79bd['isSymbolicLink']())throw CliErrors[_0xf2433a(0x215)](_0xf2433a(0x1ed)+_0x50569b);const _0x313092=resolveSymlinkTarget(_0x50569b);if(!isPathInside(realOrResolved(_0x313092),realOrResolved(_0x40f87f)))throw CliErrors[_0xf2433a(0x215)]('Refusing\x20to\x20overwrite\x20unmanaged\x20symlink:\x20'+_0x50569b);if(realOrResolved(_0x313092)===realOrResolved(_0x3863d2))return{'path':_0x50569b,'target':_0x3863d2,'action':_0xf2433a(0x20f)};return unlinkSync(_0x50569b),symlinkSync(_0x3863d2,_0x50569b,_0xf2433a(0x204)),{'path':_0x50569b,'target':_0x3863d2,'action':_0xf2433a(0x1e2)};}return symlinkSync(_0x3863d2,_0x50569b,_0xf2433a(0x204)),{'path':_0x50569b,'target':_0x3863d2,'action':'created'};}function isDanglingSymlink(_0x257392){const _0x67d224=a62_0x250017;try{return lstatSync(_0x257392)[_0x67d224(0x224)]();}catch{return![];}}function resolveSymlinkTarget(_0x2d871b){const _0x2310c1=readlinkSync(_0x2d871b);return isAbsolute(_0x2310c1)?_0x2310c1:resolve(dirname(_0x2d871b),_0x2310c1);}function isPathInside(_0x429a3f,_0x36c4fb){const _0x2a954d=a62_0x250017,_0x10033f=_0x429a3f[_0x2a954d(0x1f3)](sep)?_0x429a3f:''+_0x429a3f+sep,_0x2a24d0=_0x36c4fb[_0x2a954d(0x1f3)](sep)?_0x36c4fb:''+_0x36c4fb+sep;return _0x429a3f===_0x36c4fb||_0x10033f[_0x2a954d(0x1fc)](_0x2a24d0);}function realOrResolved(_0x1010e5){try{return realpathSync(_0x1010e5);}catch{return resolve(_0x1010e5);}}function writeTextAtomic(_0x510385,_0x3269b4,_0x200480){const _0x2a2b1f=a62_0x250017,_0x4e95a5=_0x510385+_0x2a2b1f(0x1ea);try{writeFileSync(_0x4e95a5,_0x3269b4,{'encoding':_0x2a2b1f(0x1ec),'mode':_0x200480}),renameSync(_0x4e95a5,_0x510385);}catch(_0x28655a){try{rmSync(_0x4e95a5,{'force':!![]});}catch{}throw _0x28655a;}}function writeJsonAtomic(_0x10b304,_0x4d6ea5){const _0x39d6bb=a62_0x250017;writeTextAtomic(_0x10b304,JSON[_0x39d6bb(0x228)](_0x4d6ea5,null,0x2)+'\x0a',0x180);}
@@ -1 +1 @@
1
- function a61_0x5360(_0x2482fb,_0x43334d){_0x2482fb=_0x2482fb-0x76;const _0x1029cd=a61_0x1029();let _0x5360fd=_0x1029cd[_0x2482fb];return _0x5360fd;}(function(_0x30ad4f,_0x45a6a0){const _0x843737=a61_0x5360,_0x109b3f=_0x30ad4f();while(!![]){try{const _0x2000da=parseInt(_0x843737(0x77))/0x1+parseInt(_0x843737(0x7a))/0x2+-parseInt(_0x843737(0x76))/0x3+parseInt(_0x843737(0x78))/0x4+-parseInt(_0x843737(0x7e))/0x5*(-parseInt(_0x843737(0x79))/0x6)+parseInt(_0x843737(0x7c))/0x7+parseInt(_0x843737(0x7b))/0x8*(-parseInt(_0x843737(0x7d))/0x9);if(_0x2000da===_0x45a6a0)break;else _0x109b3f['push'](_0x109b3f['shift']());}catch(_0x44fd28){_0x109b3f['push'](_0x109b3f['shift']());}}}(a61_0x1029,0xaf7fc));import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';function a61_0x1029(){const _0x700763=['662702jVewPK','1420856WbaeAJ','1182eyHJxt','299152OxifXl','448MTHnJs','5813080nwYUak','349182PgkgYA','23795sIHUrf','131769ELsNpF'];a61_0x1029=function(){return _0x700763;};return a61_0x1029();}import{CliErrors}from'../errors.js';export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
1
+ function a63_0x417b(){const _0x1e21ee=['234076XjBKGz','15AQiMvD','326708xmfKRn','2183150ddJoDc','16HRcBGE','969462Ztwgmb','8792328KlWPXV','418626KvMKUw','5ajGxnN','1oyFlTX','2051280GxCDvW','22CiAqWU'];a63_0x417b=function(){return _0x1e21ee;};return a63_0x417b();}(function(_0x393cb2,_0xdfc9ec){const _0x1bdd7e=a63_0x59db,_0x518f74=_0x393cb2();while(!![]){try{const _0x36fee0=parseInt(_0x1bdd7e(0x15e))/0x1*(parseInt(_0x1bdd7e(0x161))/0x2)+-parseInt(_0x1bdd7e(0x162))/0x3*(-parseInt(_0x1bdd7e(0x163))/0x4)+-parseInt(_0x1bdd7e(0x15d))/0x5*(-parseInt(_0x1bdd7e(0x15c))/0x6)+-parseInt(_0x1bdd7e(0x15f))/0x7+parseInt(_0x1bdd7e(0x165))/0x8*(parseInt(_0x1bdd7e(0x166))/0x9)+-parseInt(_0x1bdd7e(0x164))/0xa*(-parseInt(_0x1bdd7e(0x160))/0xb)+-parseInt(_0x1bdd7e(0x15b))/0xc;if(_0x36fee0===_0xdfc9ec)break;else _0x518f74['push'](_0x518f74['shift']());}catch(_0x5e28a3){_0x518f74['push'](_0x518f74['shift']());}}}(a63_0x417b,0x36156));import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';function a63_0x59db(_0x458c00,_0x34bfa1){_0x458c00=_0x458c00-0x15b;const _0x417b50=a63_0x417b();let _0x59db44=_0x417b50[_0x458c00];return _0x59db44;}export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
@@ -1 +1 @@
1
- const a62_0x3a5c7b=a62_0x359e;function a62_0x5dfd(){const _0x5ab9e2=['info','join','setLogPath','Failed:\x20','184PMXsMX','50MlRrWc','dirname','stringify','details','success','20KaKKSL','Starting:\x20','createLogger','initWinstonLogger','yellow','logFilePath','6736860oJghJF','trim','red','utf8','printf','toISOString','logTask','mkdirSync','combine','now','372GFqsSI','log','errors','12021WVsDbP','writeFileSync','rawCommand','winstonLogger','existsSync','setRawCommand','warn','readFileSync','getWinstonInstance','readLogs','error','logFileName','692EhWzzr','159741qVYCSn','map','Completed:\x20','125koMiPK','currentRawCommand','47030RgMViV','clearLogs','green','Failed\x20to\x20read\x20logs:','148314pAEelV','format','File','filter','message','parse','blue','Failed\x20to\x20clear\x20logs:','203455cyADWz','14124XgdgKF'];a62_0x5dfd=function(){return _0x5ab9e2;};return a62_0x5dfd();}(function(_0xbd1e88,_0x47fb67){const _0x1148f3=a62_0x359e,_0x46b8be=_0xbd1e88();while(!![]){try{const _0x26f63c=parseInt(_0x1148f3(0x1d1))/0x1*(parseInt(_0x1148f3(0x1b9))/0x2)+parseInt(_0x1148f3(0x1e4))/0x3*(parseInt(_0x1148f3(0x1b3))/0x4)+-parseInt(_0x1148f3(0x1b7))/0x5*(parseInt(_0x1148f3(0x1bd))/0x6)+-parseInt(_0x1148f3(0x1c5))/0x7*(parseInt(_0x1148f3(0x1cb))/0x8)+-parseInt(_0x1148f3(0x1b4))/0x9*(-parseInt(_0x1148f3(0x1cc))/0xa)+parseInt(_0x1148f3(0x1c6))/0xb*(-parseInt(_0x1148f3(0x1e1))/0xc)+parseInt(_0x1148f3(0x1d7))/0xd;if(_0x26f63c===_0x47fb67)break;else _0x46b8be['push'](_0x46b8be['shift']());}catch(_0x27ef71){_0x46b8be['push'](_0x46b8be['shift']());}}}(a62_0x5dfd,0x6c72a));import a62_0x1ac54f from'winston';import a62_0x59899c from'node:fs';function a62_0x359e(_0x83a4fe,_0x670ef7){_0x83a4fe=_0x83a4fe-0x1ab;const _0x5dfdf0=a62_0x5dfd();let _0x359e6d=_0x5dfdf0[_0x83a4fe];return _0x359e6d;}import a62_0x47fdd8 from'node:path';import{PRODUCT_CONFIG}from'../constant/product.js';class Logger{['winstonLogger'];['logFilePath']='';[a62_0x3a5c7b(0x1b8)]='';constructor(){}[a62_0x3a5c7b(0x1ac)](_0x2a2412){const _0x2ea3ef=a62_0x3a5c7b;this[_0x2ea3ef(0x1b8)]=_0x2a2412;}[a62_0x3a5c7b(0x1c9)](_0x1b6453){const _0x49841c=a62_0x3a5c7b;this['logFilePath']=a62_0x47fdd8[_0x49841c(0x1c8)](_0x1b6453,PRODUCT_CONFIG[_0x49841c(0x1b2)]),this['winstonLogger']&&this[_0x49841c(0x1e7)]['clear'](),this['initWinstonLogger']();}[a62_0x3a5c7b(0x1d4)](){const _0x4dc43b=a62_0x3a5c7b,_0x11a622=a62_0x47fdd8[_0x4dc43b(0x1cd)](this[_0x4dc43b(0x1d6)]);!a62_0x59899c[_0x4dc43b(0x1ab)](_0x11a622)&&a62_0x59899c[_0x4dc43b(0x1de)](_0x11a622,{'recursive':!![]});const _0x7eabf5=a62_0x1ac54f['format'][_0x4dc43b(0x1df)](a62_0x1ac54f[_0x4dc43b(0x1be)]['timestamp'](),a62_0x1ac54f[_0x4dc43b(0x1be)][_0x4dc43b(0x1e3)]({'stack':!![]}),a62_0x1ac54f[_0x4dc43b(0x1be)][_0x4dc43b(0x1db)](_0x1a1c3a=>{const _0x4f45fa=_0x4dc43b,_0x19d9ef={'timestamp':_0x1a1c3a['timestamp']||new Date()[_0x4f45fa(0x1dc)](),'level':_0x1a1c3a['level']||'info','command':_0x1a1c3a['command']||'unknown','rawCommand':_0x1a1c3a[_0x4f45fa(0x1e6)]||this[_0x4f45fa(0x1b8)]||undefined,'message':_0x1a1c3a['message']||'','duration':_0x1a1c3a['duration']||undefined,'details':_0x1a1c3a[_0x4f45fa(0x1cf)]||undefined};return JSON[_0x4f45fa(0x1ce)](_0x19d9ef);}));this['winstonLogger']=a62_0x1ac54f[_0x4dc43b(0x1d3)]({'level':_0x4dc43b(0x1c7),'format':_0x7eabf5,'transports':[new a62_0x1ac54f['transports'][(_0x4dc43b(0x1bf))]({'filename':this[_0x4dc43b(0x1d6)],'level':_0x4dc43b(0x1c7)})],'silent':![]}),a62_0x1ac54f['addColors']({'success':_0x4dc43b(0x1bb),'error':_0x4dc43b(0x1d9),'warn':_0x4dc43b(0x1d5),'info':_0x4dc43b(0x1c3)});}[a62_0x3a5c7b(0x1c7)](_0x1d0fbd,_0xaa2844,_0x5d00c5){const _0x5858d4=a62_0x3a5c7b;if(!this[_0x5858d4(0x1d6)]||!this[_0x5858d4(0x1e7)])return;this['winstonLogger'][_0x5858d4(0x1c7)](_0xaa2844,{'command':_0x1d0fbd,'details':_0x5d00c5});}[a62_0x3a5c7b(0x1d0)](_0x2a5e71,_0x554559,_0x2a26a7,_0x43cb7b){const _0x339a89=a62_0x3a5c7b;if(!this[_0x339a89(0x1d6)]||!this[_0x339a89(0x1e7)])return;this[_0x339a89(0x1e7)][_0x339a89(0x1e2)](_0x339a89(0x1c7),_0x554559,{'level':_0x339a89(0x1d0),'command':_0x2a5e71,'duration':_0x2a26a7,'details':_0x43cb7b});}[a62_0x3a5c7b(0x1b1)](_0x5b526e,_0x4db773,_0x4b229d){const _0x1e7f56=a62_0x3a5c7b;if(!this[_0x1e7f56(0x1d6)]||!this[_0x1e7f56(0x1e7)])return;this[_0x1e7f56(0x1e7)]['error'](_0x4db773,{'command':_0x5b526e,'details':_0x4b229d});}['warn'](_0x1c3dca,_0x46563a,_0x2f8a06){const _0x291df5=a62_0x3a5c7b;if(!this['logFilePath']||!this[_0x291df5(0x1e7)])return;this['winstonLogger']['warn'](_0x46563a,{'command':_0x1c3dca,'details':_0x2f8a06});}async[a62_0x3a5c7b(0x1dd)](_0x304350,_0x423a74,_0xb51b8d){const _0x13dd80=a62_0x3a5c7b,_0x5a3c9e=Date[_0x13dd80(0x1e0)]();this['info'](_0x304350,_0x13dd80(0x1d2)+_0x423a74);try{const _0x33a827=await _0xb51b8d(),_0x3a3b20=Date['now']()-_0x5a3c9e;return this[_0x13dd80(0x1d0)](_0x304350,_0x13dd80(0x1b6)+_0x423a74,_0x3a3b20),_0x33a827;}catch(_0x1eae60){const _0x4486f1=Date[_0x13dd80(0x1e0)]()-_0x5a3c9e;this[_0x13dd80(0x1b1)](_0x304350,_0x13dd80(0x1ca)+_0x423a74,{'error':_0x1eae60 instanceof Error?_0x1eae60[_0x13dd80(0x1c1)]:String(_0x1eae60),'duration':_0x4486f1});throw _0x1eae60;}}[a62_0x3a5c7b(0x1b0)](){const _0x423a18=a62_0x3a5c7b;try{if(!a62_0x59899c[_0x423a18(0x1ab)](this['logFilePath']))return[];const _0x8153b=a62_0x59899c[_0x423a18(0x1ae)](this[_0x423a18(0x1d6)],_0x423a18(0x1da));return _0x8153b['split'](/\r?\n/)[_0x423a18(0x1c0)](_0x24391a=>_0x24391a[_0x423a18(0x1d8)]())[_0x423a18(0x1b5)](_0x4e28a9=>JSON[_0x423a18(0x1c2)](_0x4e28a9));}catch(_0x2cee5a){return console[_0x423a18(0x1ad)](_0x423a18(0x1bc),_0x2cee5a),[];}}[a62_0x3a5c7b(0x1ba)](){const _0x1395ab=a62_0x3a5c7b;try{a62_0x59899c[_0x1395ab(0x1ab)](this['logFilePath'])&&a62_0x59899c[_0x1395ab(0x1e5)](this['logFilePath'],'','utf8');}catch(_0x5479e0){console['warn'](_0x1395ab(0x1c4),_0x5479e0);}}[a62_0x3a5c7b(0x1af)](){const _0x1fa5b1=a62_0x3a5c7b;return this[_0x1fa5b1(0x1e7)];}}export const logger=new Logger();
1
+ const a64_0x158222=a64_0x342c;(function(_0x58b321,_0x55ebda){const _0x44cdd9=a64_0x342c,_0x1d3dbd=_0x58b321();while(!![]){try{const _0x45d5eb=parseInt(_0x44cdd9(0xee))/0x1*(parseInt(_0x44cdd9(0xf5))/0x2)+parseInt(_0x44cdd9(0x102))/0x3+parseInt(_0x44cdd9(0x104))/0x4+parseInt(_0x44cdd9(0xe2))/0x5+-parseInt(_0x44cdd9(0x10f))/0x6*(parseInt(_0x44cdd9(0x10e))/0x7)+-parseInt(_0x44cdd9(0xfb))/0x8+-parseInt(_0x44cdd9(0x118))/0x9;if(_0x45d5eb===_0x55ebda)break;else _0x1d3dbd['push'](_0x1d3dbd['shift']());}catch(_0x3e2f74){_0x1d3dbd['push'](_0x1d3dbd['shift']());}}}(a64_0x13cf,0xb64c9));function a64_0x342c(_0x3ba83a,_0x254457){_0x3ba83a=_0x3ba83a-0xe2;const _0x13cf4d=a64_0x13cf();let _0x342c46=_0x13cf4d[_0x3ba83a];return _0x342c46;}import a64_0x5288de from'winston';import a64_0x457917 from'node:fs';import a64_0x279d7d from'node:path';function a64_0x13cf(){const _0x3d92f7=['combine','getWinstonInstance','success','existsSync','now','Starting:\x20','2303zraguw','18138NKMnnu','blue','split','map','dirname','unknown','initWinstonLogger','logFileName','Failed\x20to\x20clear\x20logs:','16243731fIGbLd','command','currentRawCommand','Completed:\x20','duration','printf','3257390GHSNUC','logFilePath','join','clear','Failed\x20to\x20read\x20logs:','Failed:\x20','addColors','File','writeFileSync','trim','message','warn','107407xHUDHE','mkdirSync','green','logTask','rawCommand','readLogs','error','26QqcRMX','details','filter','parse','format','winstonLogger','425384nqXFfz','utf8','readFileSync','errors','level','red','clearLogs','3907095RJJKcd','log','996648vOdFhR','info','yellow','timestamp'];a64_0x13cf=function(){return _0x3d92f7;};return a64_0x13cf();}import{PRODUCT_CONFIG}from'../constant/product.js';class Logger{[a64_0x158222(0xfa)];['logFilePath']='';['currentRawCommand']='';constructor(){}['setRawCommand'](_0x2723c0){this['currentRawCommand']=_0x2723c0;}['setLogPath'](_0x46c597){const _0x45f4b6=a64_0x158222;this[_0x45f4b6(0xe3)]=a64_0x279d7d[_0x45f4b6(0xe4)](_0x46c597,PRODUCT_CONFIG[_0x45f4b6(0x116)]),this[_0x45f4b6(0xfa)]&&this[_0x45f4b6(0xfa)][_0x45f4b6(0xe5)](),this[_0x45f4b6(0x115)]();}[a64_0x158222(0x115)](){const _0x3e211d=a64_0x158222,_0x1c8f12=a64_0x279d7d[_0x3e211d(0x113)](this[_0x3e211d(0xe3)]);!a64_0x457917['existsSync'](_0x1c8f12)&&a64_0x457917[_0x3e211d(0xef)](_0x1c8f12,{'recursive':!![]});const _0x40958b=a64_0x5288de[_0x3e211d(0xf9)][_0x3e211d(0x108)](a64_0x5288de[_0x3e211d(0xf9)][_0x3e211d(0x107)](),a64_0x5288de[_0x3e211d(0xf9)][_0x3e211d(0xfe)]({'stack':!![]}),a64_0x5288de['format'][_0x3e211d(0x11d)](_0xc6fd3=>{const _0x3ef3a6=_0x3e211d,_0x59c05f={'timestamp':_0xc6fd3[_0x3ef3a6(0x107)]||new Date()['toISOString'](),'level':_0xc6fd3[_0x3ef3a6(0xff)]||_0x3ef3a6(0x105),'command':_0xc6fd3[_0x3ef3a6(0x119)]||_0x3ef3a6(0x114),'rawCommand':_0xc6fd3[_0x3ef3a6(0xf2)]||this[_0x3ef3a6(0x11a)]||undefined,'message':_0xc6fd3['message']||'','duration':_0xc6fd3[_0x3ef3a6(0x11c)]||undefined,'details':_0xc6fd3[_0x3ef3a6(0xf6)]||undefined};return JSON['stringify'](_0x59c05f);}));this['winstonLogger']=a64_0x5288de['createLogger']({'level':'info','format':_0x40958b,'transports':[new a64_0x5288de['transports'][(_0x3e211d(0xe9))]({'filename':this[_0x3e211d(0xe3)],'level':_0x3e211d(0x105)})],'silent':![]}),a64_0x5288de[_0x3e211d(0xe8)]({'success':_0x3e211d(0xf0),'error':_0x3e211d(0x100),'warn':_0x3e211d(0x106),'info':_0x3e211d(0x110)});}[a64_0x158222(0x105)](_0x497736,_0x1d2219,_0x199c7e){const _0x4850b4=a64_0x158222;if(!this[_0x4850b4(0xe3)]||!this[_0x4850b4(0xfa)])return;this[_0x4850b4(0xfa)][_0x4850b4(0x105)](_0x1d2219,{'command':_0x497736,'details':_0x199c7e});}['success'](_0x33bb04,_0x1653b6,_0x59648b,_0x27c66a){const _0x3cac71=a64_0x158222;if(!this['logFilePath']||!this['winstonLogger'])return;this[_0x3cac71(0xfa)][_0x3cac71(0x103)]('info',_0x1653b6,{'level':'success','command':_0x33bb04,'duration':_0x59648b,'details':_0x27c66a});}[a64_0x158222(0xf4)](_0x89eb5e,_0x3c952,_0x496f7b){const _0x5362ec=a64_0x158222;if(!this['logFilePath']||!this[_0x5362ec(0xfa)])return;this['winstonLogger'][_0x5362ec(0xf4)](_0x3c952,{'command':_0x89eb5e,'details':_0x496f7b});}['warn'](_0x4a20ac,_0x132263,_0x20a9d3){const _0x37def9=a64_0x158222;if(!this[_0x37def9(0xe3)]||!this[_0x37def9(0xfa)])return;this['winstonLogger'][_0x37def9(0xed)](_0x132263,{'command':_0x4a20ac,'details':_0x20a9d3});}async[a64_0x158222(0xf1)](_0x5d8be1,_0x3961c2,_0x30be4c){const _0x3154db=a64_0x158222,_0x442bb6=Date['now']();this[_0x3154db(0x105)](_0x5d8be1,_0x3154db(0x10d)+_0x3961c2);try{const _0x1cf2cd=await _0x30be4c(),_0x6cf0da=Date[_0x3154db(0x10c)]()-_0x442bb6;return this[_0x3154db(0x10a)](_0x5d8be1,_0x3154db(0x11b)+_0x3961c2,_0x6cf0da),_0x1cf2cd;}catch(_0x5526bb){const _0x474b9d=Date[_0x3154db(0x10c)]()-_0x442bb6;this[_0x3154db(0xf4)](_0x5d8be1,_0x3154db(0xe7)+_0x3961c2,{'error':_0x5526bb instanceof Error?_0x5526bb[_0x3154db(0xec)]:String(_0x5526bb),'duration':_0x474b9d});throw _0x5526bb;}}[a64_0x158222(0xf3)](){const _0x331c5e=a64_0x158222;try{if(!a64_0x457917[_0x331c5e(0x10b)](this[_0x331c5e(0xe3)]))return[];const _0x16219b=a64_0x457917[_0x331c5e(0xfd)](this[_0x331c5e(0xe3)],_0x331c5e(0xfc));return _0x16219b[_0x331c5e(0x111)](/\r?\n/)[_0x331c5e(0xf7)](_0xa94806=>_0xa94806[_0x331c5e(0xeb)]())[_0x331c5e(0x112)](_0x18a646=>JSON[_0x331c5e(0xf8)](_0x18a646));}catch(_0x3ccc28){return console[_0x331c5e(0xed)](_0x331c5e(0xe6),_0x3ccc28),[];}}[a64_0x158222(0x101)](){const _0x2bc75d=a64_0x158222;try{a64_0x457917[_0x2bc75d(0x10b)](this[_0x2bc75d(0xe3)])&&a64_0x457917[_0x2bc75d(0xea)](this[_0x2bc75d(0xe3)],'',_0x2bc75d(0xfc));}catch(_0x3c1388){console[_0x2bc75d(0xed)](_0x2bc75d(0x117),_0x3c1388);}}[a64_0x158222(0x109)](){const _0x3aa0d5=a64_0x158222;return this[_0x3aa0d5(0xfa)];}}export const logger=new Logger();
@@ -1 +1 @@
1
- (function(_0x59d883,_0x260f31){var _0x4b7f53=a63_0x3901,_0x1043f6=_0x59d883();while(!![]){try{var _0x10cf34=parseInt(_0x4b7f53(0x11a))/0x1+-parseInt(_0x4b7f53(0x11c))/0x2+-parseInt(_0x4b7f53(0x11b))/0x3+parseInt(_0x4b7f53(0x117))/0x4+-parseInt(_0x4b7f53(0x119))/0x5+parseInt(_0x4b7f53(0x120))/0x6*(-parseInt(_0x4b7f53(0x116))/0x7)+parseInt(_0x4b7f53(0x121))/0x8*(parseInt(_0x4b7f53(0x11d))/0x9);if(_0x10cf34===_0x260f31)break;else _0x1043f6['push'](_0x1043f6['shift']());}catch(_0x2d55d2){_0x1043f6['push'](_0x1043f6['shift']());}}}(a63_0x3d77,0x8c3be));function a63_0x3d77(){var _0x129b22=['6qLDrAE','14680NMesyA','batchCreate\x20--params\x20must\x20be\x20a\x20JSON\x20array\x20or\x20{\x22items\x22:[...]}','validation','object','7492415aChOxH','4339360cYTevX','items','2587105PEirBB','98651gAOYwP','3053007fIwVKG','2165576yCLIuV','15102pQlXwE','Invalid\x20JSON\x20for\x20--params:\x20','parse'];a63_0x3d77=function(){return _0x129b22;};return a63_0x3d77();}import{CliErrors}from'../errors.js';function a63_0x3901(_0x107191,_0x378fe7){_0x107191=_0x107191-0x113;var _0x3d7758=a63_0x3d77();var _0x3901e4=_0x3d7758[_0x107191];return _0x3901e4;}export function parseJsonParams(_0x4a19cc){var _0x41de3e=a63_0x3901;if(!_0x4a19cc)return undefined;try{return JSON[_0x41de3e(0x11f)](_0x4a19cc);}catch{throw CliErrors[_0x41de3e(0x114)](_0x41de3e(0x11e)+_0x4a19cc);}}export function parseJsonParamsValue(_0x3e3949){var _0x425f70=a63_0x3901;if(!_0x3e3949)return undefined;try{return JSON[_0x425f70(0x11f)](_0x3e3949);}catch{throw CliErrors[_0x425f70(0x114)]('Invalid\x20JSON\x20for\x20--params:\x20'+_0x3e3949);}}export function parseBatchCreateItemsFromParams(_0x2647df){var _0x458741=a63_0x3901;if(Array['isArray'](_0x2647df))return _0x2647df;if(_0x2647df!==null&&_0x2647df!==undefined&&typeof _0x2647df===_0x458741(0x115)&&Array['isArray'](_0x2647df[_0x458741(0x118)]))return _0x2647df[_0x458741(0x118)];throw CliErrors[_0x458741(0x114)](_0x458741(0x113),'Example:\x20--params\x20\x27[{\x22name\x22:\x22a\x22},{\x22name\x22:\x22b\x22}]\x27');}
1
+ (function(_0x11e882,_0x4d84ef){var _0x52264a=a65_0xe8fc,_0x4fed98=_0x11e882();while(!![]){try{var _0x5bacc4=-parseInt(_0x52264a(0x1c1))/0x1*(parseInt(_0x52264a(0x1ba))/0x2)+parseInt(_0x52264a(0x1c3))/0x3+-parseInt(_0x52264a(0x1bd))/0x4+parseInt(_0x52264a(0x1b4))/0x5*(parseInt(_0x52264a(0x1b2))/0x6)+-parseInt(_0x52264a(0x1c2))/0x7*(parseInt(_0x52264a(0x1be))/0x8)+parseInt(_0x52264a(0x1b9))/0x9+-parseInt(_0x52264a(0x1b6))/0xa;if(_0x5bacc4===_0x4d84ef)break;else _0x4fed98['push'](_0x4fed98['shift']());}catch(_0x2d21cd){_0x4fed98['push'](_0x4fed98['shift']());}}}(a65_0x32b7,0x37dcb));import{CliErrors}from'../errors.js';function a65_0x32b7(){var _0x34ec5b=['133576ljKRfl','isArray','items','2saOvpQ','42gHejFy','993351httLsH','6RWKavF','Example:\x20--params\x20\x27[{\x22name\x22:\x22a\x22},{\x22name\x22:\x22b\x22}]\x27','1636965BcUdzk','object','2755820uyypgb','parse','Invalid\x20JSON\x20for\x20--params:\x20','1004796Fpogfs','138956EPVtyH','validation','batchCreate\x20--params\x20must\x20be\x20a\x20JSON\x20array\x20or\x20{\x22items\x22:[...]}','106492NfUNvw'];a65_0x32b7=function(){return _0x34ec5b;};return a65_0x32b7();}export function parseJsonParams(_0x55d1f4){var _0x1a9770=a65_0xe8fc;if(!_0x55d1f4)return undefined;try{return JSON[_0x1a9770(0x1b7)](_0x55d1f4);}catch{throw CliErrors[_0x1a9770(0x1bb)](_0x1a9770(0x1b8)+_0x55d1f4);}}function a65_0xe8fc(_0x468d3f,_0x31af11){_0x468d3f=_0x468d3f-0x1b2;var _0x32b76d=a65_0x32b7();var _0xe8fc33=_0x32b76d[_0x468d3f];return _0xe8fc33;}export function parseJsonParamsValue(_0x237b8a){var _0x10fa46=a65_0xe8fc;if(!_0x237b8a)return undefined;try{return JSON[_0x10fa46(0x1b7)](_0x237b8a);}catch{throw CliErrors['validation'](_0x10fa46(0x1b8)+_0x237b8a);}}export function parseBatchCreateItemsFromParams(_0x5908e2){var _0x73fcda=a65_0xe8fc;if(Array[_0x73fcda(0x1bf)](_0x5908e2))return _0x5908e2;if(_0x5908e2!==null&&_0x5908e2!==undefined&&typeof _0x5908e2===_0x73fcda(0x1b5)&&Array['isArray'](_0x5908e2[_0x73fcda(0x1c0)]))return _0x5908e2['items'];throw CliErrors[_0x73fcda(0x1bb)](_0x73fcda(0x1bc),_0x73fcda(0x1b3));}
@@ -1 +1 @@
1
- const a64_0x3f6204=a64_0x202d;(function(_0x1c97bd,_0x5cc06f){const _0x408f72=a64_0x202d,_0x25e38a=_0x1c97bd();while(!![]){try{const _0x440faa=-parseInt(_0x408f72(0x170))/0x1*(-parseInt(_0x408f72(0x16c))/0x2)+-parseInt(_0x408f72(0x16f))/0x3+parseInt(_0x408f72(0x16d))/0x4+-parseInt(_0x408f72(0x16e))/0x5*(-parseInt(_0x408f72(0x171))/0x6)+-parseInt(_0x408f72(0x168))/0x7+parseInt(_0x408f72(0x172))/0x8+-parseInt(_0x408f72(0x16b))/0x9;if(_0x440faa===_0x5cc06f)break;else _0x25e38a['push'](_0x25e38a['shift']());}catch(_0x1f6c95){_0x25e38a['push'](_0x25e38a['shift']());}}}(a64_0x5eba,0x546a5));function a64_0x202d(_0x3924d8,_0x376abe){_0x3924d8=_0x3924d8-0x168;const _0x5eba21=a64_0x5eba();let _0x202d6c=_0x5eba21[_0x3924d8];return _0x202d6c;}function a64_0x5eba(){const _0x26b1ec=['platform','5498289IQmgAg','2MjbulK','138036AfzJVG','135olEAhc','1118553THLidM','516394huOqDm','115914ZqsKtp','4705744WVQkmN','2318379yUVQSZ','win32'];a64_0x5eba=function(){return _0x26b1ec;};return a64_0x5eba();}export const isWindows=process[a64_0x3f6204(0x16a)]===a64_0x3f6204(0x169);export function resolveNpmBin(_0x1ba4e7){return isWindows?_0x1ba4e7+'.cmd':_0x1ba4e7;}
1
+ const a66_0x159a2e=a66_0x5b62;(function(_0x4cdfd9,_0x44bdb1){const _0x37aa5c=a66_0x5b62,_0x309853=_0x4cdfd9();while(!![]){try{const _0x5b9e7e=-parseInt(_0x37aa5c(0xb2))/0x1*(parseInt(_0x37aa5c(0xba))/0x2)+parseInt(_0x37aa5c(0xbe))/0x3*(-parseInt(_0x37aa5c(0xb9))/0x4)+parseInt(_0x37aa5c(0xb6))/0x5*(-parseInt(_0x37aa5c(0xbf))/0x6)+parseInt(_0x37aa5c(0xb5))/0x7*(parseInt(_0x37aa5c(0xb1))/0x8)+parseInt(_0x37aa5c(0xc0))/0x9*(parseInt(_0x37aa5c(0xbd))/0xa)+-parseInt(_0x37aa5c(0xb7))/0xb*(parseInt(_0x37aa5c(0xb8))/0xc)+parseInt(_0x37aa5c(0xb3))/0xd;if(_0x5b9e7e===_0x44bdb1)break;else _0x309853['push'](_0x309853['shift']());}catch(_0x1925fb){_0x309853['push'](_0x309853['shift']());}}}(a66_0x4d41,0x73b88));function a66_0x5b62(_0x103914,_0x510e89){_0x103914=_0x103914-0xb1;const _0x4d415c=a66_0x4d41();let _0x5b628d=_0x4d415c[_0x103914];return _0x5b628d;}export const isWindows=process[a66_0x159a2e(0xbb)]===a66_0x159a2e(0xbc);export function resolveNpmBin(_0x31b191){const _0x341e10=a66_0x159a2e;return isWindows?_0x31b191+_0x341e10(0xb4):_0x31b191;}function a66_0x4d41(){const _0x50aff5=['279YOhttU','5969776OPmypM','444425dlyCcE','18713955DdGYQe','.cmd','7LiubrI','725lXFSFt','2684udOFCA','36060IjLvHA','16zVlmcC','2YCmQyF','platform','win32','57910Wkbfcs','318057OcHLac','11982cxiGjx'];a66_0x4d41=function(){return _0x50aff5;};return a66_0x4d41();}
@@ -1 +1 @@
1
- (function(_0x18bed4,_0x2e1e49){const _0x544c1f=a65_0x91c9,_0x2b352c=_0x18bed4();while(!![]){try{const _0x367c26=-parseInt(_0x544c1f(0x19c))/0x1*(parseInt(_0x544c1f(0x19b))/0x2)+parseInt(_0x544c1f(0x19a))/0x3*(-parseInt(_0x544c1f(0x193))/0x4)+parseInt(_0x544c1f(0x18f))/0x5*(parseInt(_0x544c1f(0x197))/0x6)+parseInt(_0x544c1f(0x198))/0x7+parseInt(_0x544c1f(0x199))/0x8*(parseInt(_0x544c1f(0x19d))/0x9)+parseInt(_0x544c1f(0x195))/0xa+-parseInt(_0x544c1f(0x191))/0xb*(parseInt(_0x544c1f(0x196))/0xc);if(_0x367c26===_0x2e1e49)break;else _0x2b352c['push'](_0x2b352c['shift']());}catch(_0x29e537){_0x2b352c['push'](_0x2b352c['shift']());}}}(a65_0x2233,0x5c366));function a65_0x91c9(_0x3c16ca,_0x4b816c){_0x3c16ca=_0x3c16ca-0x18f;const _0x223358=a65_0x2233();let _0x91c9a5=_0x223358[_0x3c16ca];return _0x91c9a5;}import{readFileSync}from'node:fs';import{dirname,join}from'node:path';function a65_0x2233(){const _0x32f156=['4412zmtWBF','package.json','1962570bDCFak','12HJcAbH','99054eDmZRk','3895787SwrMIx','16vWJBMM','1047PlbLqf','6dUWQdz','102086nFEtNA','2970369SosqFG','190jywGHY','utf8','10684465HYHZIl','version'];a65_0x2233=function(){return _0x32f156;};return a65_0x2233();}import{fileURLToPath}from'node:url';let cached;export function getCliVersion(){const _0x293a56=a65_0x91c9;if(cached)return cached;const _0x3494be=join(dirname(fileURLToPath(import.meta.url)),'..','..'),_0xaf326d=readFileSync(join(_0x3494be,_0x293a56(0x194)),_0x293a56(0x190)),_0x41c1b8=JSON['parse'](_0xaf326d);return cached=_0x41c1b8[_0x293a56(0x192)],cached;}
1
+ (function(_0x170e6f,_0x49d9f1){const _0x4e9b6d=a67_0x2f9f,_0x295227=_0x170e6f();while(!![]){try{const _0xadae48=-parseInt(_0x4e9b6d(0xeb))/0x1*(parseInt(_0x4e9b6d(0xee))/0x2)+-parseInt(_0x4e9b6d(0xf2))/0x3*(-parseInt(_0x4e9b6d(0xe8))/0x4)+-parseInt(_0x4e9b6d(0xe7))/0x5+-parseInt(_0x4e9b6d(0xef))/0x6+parseInt(_0x4e9b6d(0xec))/0x7+parseInt(_0x4e9b6d(0xf1))/0x8*(-parseInt(_0x4e9b6d(0xea))/0x9)+-parseInt(_0x4e9b6d(0xed))/0xa*(-parseInt(_0x4e9b6d(0xf3))/0xb);if(_0xadae48===_0x49d9f1)break;else _0x295227['push'](_0x295227['shift']());}catch(_0x19b191){_0x295227['push'](_0x295227['shift']());}}}(a67_0x2a89,0x667d6));function a67_0x2a89(){const _0x2c6428=['3722257FHWbpm','parse','3015925tsuOoV','1427408QYfZWn','utf8','4563ixLitw','1LeEmHh','4532157XzqxJb','30pZIBCF','1198242ABrAfI','2378076LpXOsM','package.json','16czazfj','3aNSUBu'];a67_0x2a89=function(){return _0x2c6428;};return a67_0x2a89();}import{readFileSync}from'node:fs';import{dirname,join}from'node:path';import{fileURLToPath}from'node:url';let cached;function a67_0x2f9f(_0x44252e,_0x3fafa8){_0x44252e=_0x44252e-0xe7;const _0x2a892f=a67_0x2a89();let _0x2f9f3b=_0x2a892f[_0x44252e];return _0x2f9f3b;}export function getCliVersion(){const _0x2f5daf=a67_0x2f9f;if(cached)return cached;const _0x2c37ca=join(dirname(fileURLToPath(import.meta.url)),'..','..'),_0x17630d=readFileSync(join(_0x2c37ca,_0x2f5daf(0xf0)),_0x2f5daf(0xe9)),_0x1d224f=JSON[_0x2f5daf(0xf4)](_0x17630d);return cached=_0x1d224f['version'],cached;}
@@ -1 +1 @@
1
- function a66_0x1d14(){var _0x1051b5=['30zjJsDo','18240cPldjS','41931144WdcutJ','15658016uAufCO','45MUdcqP','6543229JiXoAW','3315LKuDOS','388504kNbcBQ','10eQStHf','45270gYWFtE','717EFNiAO','3042qIZVBm'];a66_0x1d14=function(){return _0x1051b5;};return a66_0x1d14();}function a66_0x578a(_0x4f2f5e,_0x5731f5){_0x4f2f5e=_0x4f2f5e-0x15d;var _0x1d143b=a66_0x1d14();var _0x578a83=_0x1d143b[_0x4f2f5e];return _0x578a83;}(function(_0x2309f8,_0x56128b){var _0x3d8c79=a66_0x578a,_0x12f1ee=_0x2309f8();while(!![]){try{var _0x26269f=parseInt(_0x3d8c79(0x15e))/0x1*(-parseInt(_0x3d8c79(0x167))/0x2)+parseInt(_0x3d8c79(0x168))/0x3*(parseInt(_0x3d8c79(0x15f))/0x4)+parseInt(_0x3d8c79(0x164))/0x5*(-parseInt(_0x3d8c79(0x15d))/0x6)+-parseInt(_0x3d8c79(0x163))/0x7+-parseInt(_0x3d8c79(0x165))/0x8*(parseInt(_0x3d8c79(0x162))/0x9)+parseInt(_0x3d8c79(0x166))/0xa*(-parseInt(_0x3d8c79(0x161))/0xb)+parseInt(_0x3d8c79(0x160))/0xc;if(_0x26269f===_0x56128b)break;else _0x12f1ee['push'](_0x12f1ee['shift']());}catch(_0x5933b7){_0x12f1ee['push'](_0x12f1ee['shift']());}}}(a66_0x1d14,0xec4d5));export function writeCliSideChannelLine(_0x4f77c0){process['stderr']['write'](_0x4f77c0+'\x0a');}
1
+ function a68_0x18fd(){var _0x277d61=['2156691ykNgoM','996456ckAupF','249015oGTvdv','7DvWPhz','179372urJjUH','696250bMcZcx','70UpPZmw','2103594nXtEud','198rlwTUG','130344JdnwKX','write','44TqCSMO','stderr'];a68_0x18fd=function(){return _0x277d61;};return a68_0x18fd();}(function(_0x56e5c1,_0x208f29){var _0x52ee6b=a68_0x2d83,_0x39aede=_0x56e5c1();while(!![]){try{var _0x4f0c6d=parseInt(_0x52ee6b(0x65))/0x1+parseInt(_0x52ee6b(0x64))/0x2+-parseInt(_0x52ee6b(0x70))/0x3+parseInt(_0x52ee6b(0x67))/0x4*(-parseInt(_0x52ee6b(0x69))/0x5)+-parseInt(_0x52ee6b(0x6a))/0x6*(-parseInt(_0x52ee6b(0x66))/0x7)+parseInt(_0x52ee6b(0x6c))/0x8*(parseInt(_0x52ee6b(0x6b))/0x9)+parseInt(_0x52ee6b(0x68))/0xa*(parseInt(_0x52ee6b(0x6e))/0xb);if(_0x4f0c6d===_0x208f29)break;else _0x39aede['push'](_0x39aede['shift']());}catch(_0x4a13bc){_0x39aede['push'](_0x39aede['shift']());}}}(a68_0x18fd,0x5ebf9));function a68_0x2d83(_0x17269f,_0x39bb57){_0x17269f=_0x17269f-0x64;var _0x18fd17=a68_0x18fd();var _0x2d8357=_0x18fd17[_0x17269f];return _0x2d8357;}export function writeCliSideChannelLine(_0x2ac208){var _0x497a4f=a68_0x2d83;process[_0x497a4f(0x6f)][_0x497a4f(0x6d)](_0x2ac208+'\x0a');}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lovrabet/lovrabet-cli",
3
- "version": "2.0.7",
3
+ "version": "2.0.9-beta.0",
4
4
  "license": "Apache-2.0",
5
5
  "repository": {
6
6
  "type": "git",