@lovrabet/lovrabet-cli 2.0.13-beta.2 → 2.0.13-beta.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (74) hide show
  1. package/lib/cli.js +1 -1
  2. package/lib/commands/api-doc/index.js +1 -0
  3. package/lib/commands/app/cache.js +1 -1
  4. package/lib/commands/app/definitions.js +1 -1
  5. package/lib/commands/app/mock-loader.js +1 -1
  6. package/lib/commands/app/remote-source.js +1 -1
  7. package/lib/commands/app/shared.js +1 -1
  8. package/lib/commands/artifact/index.js +1 -0
  9. package/lib/commands/auth/index.js +1 -1
  10. package/lib/commands/auth/prompt.js +1 -1
  11. package/lib/commands/bff/detail.js +1 -1
  12. package/lib/commands/bff/exec.js +1 -1
  13. package/lib/commands/bff/index.js +1 -1
  14. package/lib/commands/common/config-policy.js +1 -1
  15. package/lib/commands/common/constraints.js +1 -1
  16. package/lib/commands/common/flags.js +1 -1
  17. package/lib/commands/config/definitions.js +1 -1
  18. package/lib/commands/config/shared.js +1 -1
  19. package/lib/commands/data/index.js +1 -1
  20. package/lib/commands/dataset/detail.js +1 -1
  21. package/lib/commands/dataset/index.js +1 -1
  22. package/lib/commands/dataset/list.js +1 -1
  23. package/lib/commands/dataset/sdk-doc.js +1 -0
  24. package/lib/commands/doctor.js +1 -1
  25. package/lib/commands/init.js +1 -1
  26. package/lib/commands/kb/index.js +1 -1
  27. package/lib/commands/logs/index.js +1 -1
  28. package/lib/commands/personal-bff/index.js +1 -0
  29. package/lib/commands/registry.js +1 -1
  30. package/lib/commands/schema.js +1 -1
  31. package/lib/commands/skill/index.js +1 -1
  32. package/lib/commands/sql/detail.js +1 -1
  33. package/lib/commands/sql/exec.js +1 -1
  34. package/lib/commands/sql/index.js +1 -1
  35. package/lib/commands/update.js +1 -1
  36. package/lib/config/schema.js +1 -1
  37. package/lib/constant/auth-mode.js +1 -1
  38. package/lib/constant/cli.js +1 -1
  39. package/lib/constant/defaults.js +1 -1
  40. package/lib/constant/distribution.js +1 -1
  41. package/lib/constant/domain.js +1 -1
  42. package/lib/constant/env.js +1 -1
  43. package/lib/constant/output.js +1 -1
  44. package/lib/constant/product.js +1 -1
  45. package/lib/constant/risk.js +1 -1
  46. package/lib/constant/url.js +1 -1
  47. package/lib/context.js +1 -1
  48. package/lib/core/api-client.js +1 -1
  49. package/lib/core/db-resolver.js +1 -1
  50. package/lib/core/sdk-client.js +1 -1
  51. package/lib/errors.js +1 -1
  52. package/lib/framework/build-all-flags.js +1 -1
  53. package/lib/framework/dryrun.js +1 -1
  54. package/lib/framework/flags.js +1 -1
  55. package/lib/framework/help.js +1 -1
  56. package/lib/framework/index.js +1 -1
  57. package/lib/framework/output.js +1 -1
  58. package/lib/framework/preparse.js +1 -1
  59. package/lib/framework/response.js +1 -1
  60. package/lib/framework/runner-confirmation.js +1 -1
  61. package/lib/framework/runner-error.js +1 -1
  62. package/lib/framework/runner.js +1 -1
  63. package/lib/framework/schema-export.js +1 -1
  64. package/lib/framework/types.js +1 -1
  65. package/lib/help.js +1 -1
  66. package/lib/skills/npx-skills-add.js +1 -1
  67. package/lib/skills/runtime-skill-sync.js +1 -1
  68. package/lib/utils/apply-jq-filter.js +1 -1
  69. package/lib/utils/logger.js +1 -1
  70. package/lib/utils/params.js +1 -1
  71. package/lib/utils/platform.js +1 -1
  72. package/lib/utils/version.js +1 -1
  73. package/lib/utils/write-cli-side-channel.js +1 -1
  74. package/package.json +3 -3
@@ -1 +1 @@
1
- function a26_0x231a(){const _0x8650fb=['appCode','personal','cwd','Skipped\x20npx\x20(','Only\x20pull\x20a\x20specific\x20runtime\x20Skill\x20code','\x20skill\x20installed','20164YCJjLv','Backend\x20did\x20not\x20persist\x20the\x20multi-file\x20Skill\x20manifest.','str','authRequired','unchanged','pipe','input','22KvMImI','treeSha256','filter','write','ossPath','Installing\x20published\x20','16935xfJOry','action','1723812WwADtE','\x20personal\x20and\x20','reduce','path','trim','accessKey','string','isArray','\x20company\x20Skill(s).','Check\x20network\x20connectivity\x20and\x20try\x20again.','code','validation','\x20developer\x20skill','install','scope','inherit','Installing\x20official\x20skill\x20via\x20npx\x20(npx\x20skills\x20add\x20','length','zipSize','skillCode','SKILL.md','zipSha256','67020iryHqn','readonly','Check\x20the\x20runtime\x20service\x20Skill\x20file\x20manifest\x20storage\x20before\x20pulling\x20this\x20Skill.','join','push','10MKCrdg','log','skill','size','172470wxvufn','setLogPath','Install\x20the\x20published\x20','envName','../../core/api-client.js','object','Backend\x20returned\x20a\x20different\x20multi-file\x20Skill\x20manifest\x20after\x20push.','sha256','603NABOvl','created','skipped','Local\x20Skill\x20directory\x20containing\x20SKILL.md','apiError','map','skill-install','dir','../../skills/npx-skills-add.js','27080OgKvxs','pull','575806PNBcWz','info','updated','36nyBjaN','files','company'];a26_0x231a=function(){return _0x8650fb;};return a26_0x231a();}const a26_0x2fa19c=a26_0x1196;(function(_0x4c461a,_0x19a1f3){const _0xff1854=a26_0x1196,_0xbca94c=_0x4c461a();while(!![]){try{const _0x4f53c5=-parseInt(_0xff1854(0xa6))/0x1*(-parseInt(_0xff1854(0xc9))/0x2)+-parseInt(_0xff1854(0xaa))/0x3+parseInt(_0xff1854(0xc0))/0x4*(-parseInt(_0xff1854(0xd6))/0x5)+parseInt(_0xff1854(0xd8))/0x6+parseInt(_0xff1854(0xbd))/0x7+-parseInt(_0xff1854(0xbb))/0x8*(parseInt(_0xff1854(0xb2))/0x9)+parseInt(_0xff1854(0xee))/0xa*(parseInt(_0xff1854(0xd0))/0xb);if(_0x4f53c5===_0x19a1f3)break;else _0xbca94c['push'](_0xbca94c['shift']());}catch(_0x567850){_0xbca94c['push'](_0xbca94c['shift']());}}}(a26_0x231a,0x29438));import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'../../constant/cli.js';function a26_0x1196(_0x3c9008,_0x3cfe27){_0x3c9008=_0x3c9008-0xa5;const _0x231a01=a26_0x231a();let _0x119606=_0x231a01[_0x3c9008];return _0x119606;}import{CliErrors}from'../../errors.js';import{logger}from'../../utils/logger.js';const CODE_FLAG={'name':'code','type':a26_0x2fa19c(0xde),'description':a26_0x2fa19c(0xc7)},DIR_FLAG={'name':a26_0x2fa19c(0xb9),'type':'string','required':!![],'description':a26_0x2fa19c(0xb5)};function summarizeRuntimeSkill(_0x4c2f42){const _0x38221d=a26_0x2fa19c;return{'id':_0x4c2f42['id'],'skillCode':_0x4c2f42[_0x38221d(0xeb)],'skillName':_0x4c2f42['skillName'],'scope':_0x4c2f42[_0x38221d(0xe6)],'version':_0x4c2f42['version'],'readonly':_0x4c2f42[_0x38221d(0xef)]};}function filterByCode(_0x2e6b6b,_0x9232be){const _0x52727c=a26_0x2fa19c,_0x30d6a=_0x9232be[_0x52727c(0xdc)]();if(!_0x30d6a)return _0x2e6b6b;return _0x2e6b6b[_0x52727c(0xd2)](_0x430101=>_0x430101[_0x52727c(0xeb)]===_0x30d6a);}export const skillDefinitions=[{'service':a26_0x2fa19c(0xa8),'command':a26_0x2fa19c(0xe5),'description':a26_0x2fa19c(0xac)+CLI_BIN_NAME+a26_0x2fa19c(0xe4),'risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x51d552){const _0x11d530=a26_0x2fa19c;logger[_0x11d530(0xab)](process[_0x11d530(0xc5)]()),logger[_0x11d530(0xbe)](_0x11d530(0xb8),_0x11d530(0xd5)+CLI_DISPLAY_NAME+'\x20skill\x20via\x20npx.');const {LOVRABET_SKILL_SOURCE:_0xa71149,LOVRABET_SKIP_NPX_SKILLS_ENV:_0x4007e2,runNpxSkillsAddGlobal:_0x13acb5}=await import(_0x11d530(0xba)),_0x3e50ce=_0x51d552['nonInteractive']?_0x11d530(0xce):_0x11d530(0xe7);console['log'](_0x11d530(0xe8)+_0xa71149+'\x20-g\x20-y)...');const _0x4e994f=_0x13acb5(process[_0x11d530(0xc5)](),_0xa71149,{'stdio':_0x3e50ce});if(_0x4e994f[_0x11d530(0xb4)])console[_0x11d530(0xa7)](_0x11d530(0xc6)+_0x4007e2+'=1);\x20assuming\x20skill\x20is\x20already\x20present.');else{if(_0x4e994f['ok'])console[_0x11d530(0xa7)](CLI_BIN_NAME+_0x11d530(0xc8));else throw CliErrors[_0x11d530(0xb6)]('npx\x20skills\x20add\x20failed:\x20'+(_0x4e994f['error']||'unknown'),_0x11d530(0xe1));}return{'ok':!![]};}},{'service':a26_0x2fa19c(0xa8),'command':a26_0x2fa19c(0xbc),'description':'Pull\x20personal\x20and\x20company\x20runtime\x20Skills\x20into\x20local\x20agent\x20skill\x20directories','risk':'write','flags':[CODE_FLAG],async 'execute'(_0x3503bd){const _0x4e8208=a26_0x2fa19c,{downloadRuntimeSkillPackage:_0x538f7c,listCompanyRuntimeSkills:_0x94a59a,listPersonalRuntimeSkills:_0x46967a}=await import(_0x4e8208(0xae)),{linkEffectiveRuntimeSkills:_0x28dd40,materializeRuntimeSkill:_0x5c242f}=await import('../../skills/runtime-skill-sync.js'),_0x1aa33b=_0x3503bd[_0x4e8208(0xcb)](_0x4e8208(0xe2)),_0x149825=_0x3503bd[_0x4e8208(0xad)]??'production',_0x12ced2=_0x3503bd[_0x4e8208(0xdd)];if(!_0x12ced2)throw CliErrors[_0x4e8208(0xcc)]();const _0x4099a5=filterByCode(await _0x46967a(_0x3503bd['appCode']),_0x1aa33b),_0x5ed0a6=filterByCode(await _0x94a59a(_0x3503bd['appCode']),_0x1aa33b),_0xa8ff1d=[];for(const _0x2881c7 of _0x4099a5){_0xa8ff1d['push'](_0x5c242f(_0x2881c7,_0x4e8208(0xc4),{'env':_0x149825,'accessKey':_0x12ced2,'appCode':_0x3503bd['appCode'],'packageBytes':await downloadPackageIfNeeded(_0x2881c7,_0x4e8208(0xc4),_0x3503bd['appCode'],_0x538f7c)}));}for(const _0x4cbd3a of _0x5ed0a6){_0xa8ff1d['push'](_0x5c242f(_0x4cbd3a,'company',{'env':_0x149825,'accessKey':_0x12ced2,'appCode':_0x3503bd[_0x4e8208(0xc3)],'packageBytes':await downloadPackageIfNeeded(_0x4cbd3a,_0x4e8208(0xc2),_0x3503bd[_0x4e8208(0xc3)],_0x538f7c)}));}const _0xa6fa55=_0x28dd40(_0xa8ff1d,_0x3503bd[_0x4e8208(0xc3)]),_0x4bb8ab=_0xa6fa55[_0x4e8208(0xda)]((_0x210406,_0x197d29)=>{const _0x4b4099=_0x4e8208;return _0x210406[_0x197d29[_0x4b4099(0xd7)]]=(_0x210406[_0x197d29[_0x4b4099(0xd7)]]??0x0)+0x1,_0x210406;},{});return{'ok':!![],'data':{'appCode':_0x3503bd[_0x4e8208(0xc3)],'personal':_0x4099a5[_0x4e8208(0xe9)],'company':_0x5ed0a6[_0x4e8208(0xe9)],'materialized':_0xa8ff1d[_0x4e8208(0xe9)],'links':{'total':_0xa6fa55[_0x4e8208(0xe9)],'created':_0x4bb8ab[_0x4e8208(0xb3)]??0x0,'updated':_0x4bb8ab[_0x4e8208(0xbf)]??0x0,'unchanged':_0x4bb8ab[_0x4e8208(0xcd)]??0x0,'skipped':0x0,'conflicted':0x0},'skills':{'personal':_0x4099a5[_0x4e8208(0xb7)](summarizeRuntimeSkill),'company':_0x5ed0a6[_0x4e8208(0xb7)](summarizeRuntimeSkill)}},'message':'Pulled\x20'+_0x4099a5[_0x4e8208(0xe9)]+_0x4e8208(0xd9)+_0x5ed0a6['length']+_0x4e8208(0xe0)};}},{'service':'skill','command':a26_0x2fa19c(0xa5),'description':'Push\x20a\x20local\x20Skill\x20directory\x20to\x20personal\x20runtime\x20Skill\x20scope','risk':a26_0x2fa19c(0xd3),'flags':[DIR_FLAG],async 'execute'(_0x21ca9e){const _0x17ef25=a26_0x2fa19c,{createPersonalRuntimeSkill:_0xff5fc7,downloadRuntimeSkillPackage:_0x250453,listPersonalRuntimeSkills:_0x28ea56,updatePersonalRuntimeSkill:_0x297efc}=await import(_0x17ef25(0xae)),{verifyRuntimeSkillPackage:_0x20a25d,readPushDirectory:_0x5d21d5,recordPushedRuntimeSkill:_0x2acf3b}=await import('../../skills/runtime-skill-sync.js');if(!_0x21ca9e[_0x17ef25(0xdd)])throw CliErrors['authRequired']();const _0x35b60e=_0x5d21d5(_0x21ca9e['str'](_0x17ef25(0xb9)),_0x21ca9e[_0x17ef25(0xc3)]),_0x5b4f11=(await _0x28ea56(_0x21ca9e['appCode']))['find'](_0x3e8de2=>_0x3e8de2['skillCode']===_0x35b60e[_0x17ef25(0xeb)]),_0x5aacb3=_0x5b4f11?await _0x297efc(_0x35b60e['skillCode'],_0x21ca9e[_0x17ef25(0xc3)],_0x35b60e[_0x17ef25(0xcf)]):await _0xff5fc7(_0x21ca9e[_0x17ef25(0xc3)],_0x35b60e[_0x17ef25(0xcf)]);assertMultiFilePushPersisted(_0x35b60e[_0x17ef25(0xcf)][_0x17ef25(0xc1)],_0x5aacb3);if(isPackageBackedMultiFile(_0x5aacb3['files'])){const _0x1ded82=await _0x250453('personal',_0x35b60e[_0x17ef25(0xeb)],_0x21ca9e[_0x17ef25(0xc3)]);_0x20a25d(_0x5aacb3[_0x17ef25(0xc1)],_0x1ded82);}return _0x2acf3b(_0x21ca9e[_0x17ef25(0xcb)](_0x17ef25(0xb9)),_0x5aacb3,_0x21ca9e[_0x17ef25(0xc3)]),{'ok':!![],'data':summarizeRuntimeSkill(_0x5aacb3),'message':_0x5b4f11?'Updated\x20personal\x20Skill\x20'+_0x35b60e[_0x17ef25(0xeb)]:'Created\x20personal\x20Skill\x20'+_0x35b60e['skillCode']};}}];async function downloadPackageIfNeeded(_0xc23122,_0x1cc87a,_0x25b515,_0x1b4d7e){const _0x3956ab=a26_0x2fa19c;if(!isPackageBackedManifest(_0xc23122[_0x3956ab(0xc1)]))return undefined;return _0x1b4d7e(_0x1cc87a,_0xc23122['skillCode'],_0x25b515);}function assertMultiFilePushPersisted(_0x420409,_0x1d9e13){const _0x493d91=a26_0x2fa19c;if(!isMultiFileManifest(_0x420409))return;if(!isPackageBackedMultiFile(_0x1d9e13[_0x493d91(0xc1)]))throw CliErrors[_0x493d91(0xe3)](_0x493d91(0xca),'Upgrade\x20the\x20runtime\x20service\x20before\x20pushing\x20multi-file\x20Skill\x20directories.');if(_0x420409[_0x493d91(0xd1)]!==_0x1d9e13[_0x493d91(0xc1)][_0x493d91(0xd1)]||_0x420409[_0x493d91(0xed)]!==_0x1d9e13[_0x493d91(0xc1)][_0x493d91(0xed)]||_0x420409['zipSize']!==_0x1d9e13[_0x493d91(0xc1)][_0x493d91(0xea)]||!_0x1d9e13[_0x493d91(0xc1)]['ossPath']||manifestFileSignature(_0x420409)!==manifestFileSignature(_0x1d9e13[_0x493d91(0xc1)]))throw CliErrors['validation'](_0x493d91(0xb0),_0x493d91(0xf0));}function isPackageBackedManifest(_0xd37278){const _0x322e33=a26_0x2fa19c;return!!_0xd37278&&typeof _0xd37278===_0x322e33(0xaf)&&!Array[_0x322e33(0xdf)](_0xd37278)&&typeof _0xd37278[_0x322e33(0xd4)]==='string'&&_0xd37278[_0x322e33(0xd4)][_0x322e33(0xe9)]>0x0&&Array[_0x322e33(0xdf)](_0xd37278[_0x322e33(0xc1)]);}function isPackageBackedMultiFile(_0x3fa836){return isPackageBackedManifest(_0x3fa836)&&isMultiFileManifest(_0x3fa836);}function isMultiFileManifest(_0x1fa94b){const _0x40fac0=a26_0x2fa19c;return!!_0x1fa94b&&typeof _0x1fa94b===_0x40fac0(0xaf)&&!Array[_0x40fac0(0xdf)](_0x1fa94b)&&Array[_0x40fac0(0xdf)](_0x1fa94b[_0x40fac0(0xc1)])&&_0x1fa94b[_0x40fac0(0xc1)]['some'](_0x1438aa=>_0x1438aa['path']!==_0x40fac0(0xec));}function manifestFileSignature(_0x2e6985){const _0x48381f=a26_0x2fa19c;return[..._0x2e6985[_0x48381f(0xc1)]][_0x48381f(0xb7)](_0x567a56=>_0x567a56[_0x48381f(0xdb)]+'\x00'+_0x567a56[_0x48381f(0xb1)]+'\x00'+_0x567a56[_0x48381f(0xa9)])['sort']()[_0x48381f(0xf1)]('\x00');}
1
+ const a30_0x458caf=a30_0x4c3d;(function(_0x2112b0,_0x4b26b3){const _0x280bb0=a30_0x4c3d,_0x56bcb6=_0x2112b0();while(!![]){try{const _0x4ddf1c=-parseInt(_0x280bb0(0x1f3))/0x1*(parseInt(_0x280bb0(0x1e5))/0x2)+-parseInt(_0x280bb0(0x1d0))/0x3+-parseInt(_0x280bb0(0x207))/0x4+parseInt(_0x280bb0(0x1d5))/0x5+parseInt(_0x280bb0(0x1df))/0x6+-parseInt(_0x280bb0(0x1c1))/0x7*(-parseInt(_0x280bb0(0x1e9))/0x8)+-parseInt(_0x280bb0(0x1ed))/0x9*(-parseInt(_0x280bb0(0x1ef))/0xa);if(_0x4ddf1c===_0x4b26b3)break;else _0x56bcb6['push'](_0x56bcb6['shift']());}catch(_0x5546e9){_0x56bcb6['push'](_0x56bcb6['shift']());}}}(a30_0x3411,0xa0c28));function a30_0x3411(){const _0x430529=['zipSha256','../../skills/npx-skills-add.js','files','setLogPath','2107173QroAXg','skillName','pipe','cwd','map','1622015lIAcdS','ossPath','path','treeSha256','Pulled\x20','action','sha256','Check\x20network\x20connectivity\x20and\x20try\x20again.','personal','Only\x20pull\x20a\x20specific\x20runtime\x20Skill\x20code','3262230AHpnSs','Upgrade\x20the\x20runtime\x20service\x20before\x20pushing\x20multi-file\x20Skill\x20directories.','nonInteractive','pull','inherit','write','14BAwvTG','Local\x20Skill\x20directory\x20containing\x20SKILL.md','push','company','634592zWuJrQ','readonly','Installing\x20published\x20','code','45135fJkmfb','dir','1630lNUyQo','input','some','npx\x20skills\x20add\x20failed:\x20','30965huVWFd','\x20company\x20Skill(s).','validation','install','length','find','size','Check\x20the\x20runtime\x20service\x20Skill\x20file\x20manifest\x20storage\x20before\x20pulling\x20this\x20Skill.','Push\x20a\x20local\x20Skill\x20directory\x20to\x20personal\x20runtime\x20Skill\x20scope','skipped','log','unknown','\x20-g\x20-y)...','object','../../skills/runtime-skill-sync.js','skillCode','Installing\x20official\x20skill\x20via\x20npx\x20(npx\x20skills\x20add\x20','isArray','appCode','created','3921996eZlYpB','error','trim','authRequired','skill','production','=1);\x20assuming\x20skill\x20is\x20already\x20present.','SKILL.md','77MaRGAQ','str','updated','Backend\x20returned\x20a\x20different\x20multi-file\x20Skill\x20manifest\x20after\x20push.','zipSize','version','\x20skill\x20via\x20npx.','string','../../core/api-client.js','filter','Skipped\x20npx\x20('];a30_0x3411=function(){return _0x430529;};return a30_0x3411();}function a30_0x4c3d(_0x372749,_0x5087a5){_0x372749=_0x372749-0x1be;const _0x3411e8=a30_0x3411();let _0x4c3da5=_0x3411e8[_0x372749];return _0x4c3da5;}import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'../../constant/cli.js';import{CliErrors}from'../../errors.js';import{logger}from'../../utils/logger.js';const CODE_FLAG={'name':'code','type':a30_0x458caf(0x1c8),'description':a30_0x458caf(0x1de)},DIR_FLAG={'name':'dir','type':a30_0x458caf(0x1c8),'required':!![],'description':a30_0x458caf(0x1e6)};function summarizeRuntimeSkill(_0x513cea){const _0x3409b8=a30_0x458caf;return{'id':_0x513cea['id'],'skillCode':_0x513cea[_0x3409b8(0x202)],'skillName':_0x513cea[_0x3409b8(0x1d1)],'scope':_0x513cea['scope'],'version':_0x513cea[_0x3409b8(0x1c6)],'readonly':_0x513cea[_0x3409b8(0x1ea)]};}function filterByCode(_0x5735a5,_0x1b8953){const _0x116779=a30_0x458caf,_0x4067cb=_0x1b8953[_0x116779(0x209)]();if(!_0x4067cb)return _0x5735a5;return _0x5735a5[_0x116779(0x1ca)](_0x4f2b27=>_0x4f2b27[_0x116779(0x202)]===_0x4067cb);}export const skillDefinitions=[{'service':'skill','command':a30_0x458caf(0x1f6),'description':'Install\x20the\x20published\x20'+CLI_BIN_NAME+'\x20developer\x20skill','risk':a30_0x458caf(0x1e4),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x4181d4){const _0x3bf011=a30_0x458caf;logger[_0x3bf011(0x1cf)](process[_0x3bf011(0x1d3)]()),logger['info']('skill-install',_0x3bf011(0x1eb)+CLI_DISPLAY_NAME+_0x3bf011(0x1c7));const {LOVRABET_SKILL_SOURCE:_0x165c49,LOVRABET_SKIP_NPX_SKILLS_ENV:_0x2a3290,runNpxSkillsAddGlobal:_0xd8062}=await import(_0x3bf011(0x1cd)),_0x5e11b2=_0x4181d4[_0x3bf011(0x1e1)]?_0x3bf011(0x1d2):_0x3bf011(0x1e3);console[_0x3bf011(0x1fd)](_0x3bf011(0x203)+_0x165c49+_0x3bf011(0x1ff));const _0x505c04=_0xd8062(process[_0x3bf011(0x1d3)](),_0x165c49,{'stdio':_0x5e11b2});if(_0x505c04[_0x3bf011(0x1fc)])console['log'](_0x3bf011(0x1cb)+_0x2a3290+_0x3bf011(0x1bf));else{if(_0x505c04['ok'])console[_0x3bf011(0x1fd)](CLI_BIN_NAME+'\x20skill\x20installed');else throw CliErrors['apiError'](_0x3bf011(0x1f2)+(_0x505c04[_0x3bf011(0x208)]||_0x3bf011(0x1fe)),_0x3bf011(0x1dc));}return{'ok':!![]};}},{'service':a30_0x458caf(0x20b),'command':a30_0x458caf(0x1e2),'description':'Pull\x20personal\x20and\x20company\x20runtime\x20Skills\x20into\x20local\x20agent\x20skill\x20directories','risk':a30_0x458caf(0x1e4),'flags':[CODE_FLAG],async 'execute'(_0x285dcb){const _0x773e92=a30_0x458caf,{downloadRuntimeSkillPackage:_0x1aa692,listCompanyRuntimeSkills:_0x317e9e,listPersonalRuntimeSkills:_0x224111}=await import('../../core/api-client.js'),{linkEffectiveRuntimeSkills:_0x200b8e,materializeRuntimeSkill:_0x38b192}=await import(_0x773e92(0x201)),_0x221875=_0x285dcb[_0x773e92(0x1c2)](_0x773e92(0x1ec)),_0x33627b=_0x285dcb['envName']??_0x773e92(0x1be),_0x1bf58e=_0x285dcb['accessKey'];if(!_0x1bf58e)throw CliErrors['authRequired']();const _0x3a375c=filterByCode(await _0x224111(_0x285dcb['appCode']),_0x221875),_0x5e0a77=filterByCode(await _0x317e9e(_0x285dcb[_0x773e92(0x205)]),_0x221875),_0x9d3719=[];for(const _0x209677 of _0x3a375c){_0x9d3719[_0x773e92(0x1e7)](_0x38b192(_0x209677,_0x773e92(0x1dd),{'env':_0x33627b,'accessKey':_0x1bf58e,'appCode':_0x285dcb[_0x773e92(0x205)],'packageBytes':await downloadPackageIfNeeded(_0x209677,_0x773e92(0x1dd),_0x285dcb[_0x773e92(0x205)],_0x1aa692)}));}for(const _0x58f242 of _0x5e0a77){_0x9d3719['push'](_0x38b192(_0x58f242,'company',{'env':_0x33627b,'accessKey':_0x1bf58e,'appCode':_0x285dcb['appCode'],'packageBytes':await downloadPackageIfNeeded(_0x58f242,_0x773e92(0x1e8),_0x285dcb[_0x773e92(0x205)],_0x1aa692)}));}const _0x48c30c=_0x200b8e(_0x9d3719,_0x285dcb[_0x773e92(0x205)]),_0x2fa542=_0x48c30c['reduce']((_0x271dce,_0x1bb24b)=>{const _0x2595c1=_0x773e92;return _0x271dce[_0x1bb24b[_0x2595c1(0x1da)]]=(_0x271dce[_0x1bb24b[_0x2595c1(0x1da)]]??0x0)+0x1,_0x271dce;},{});return{'ok':!![],'data':{'appCode':_0x285dcb[_0x773e92(0x205)],'personal':_0x3a375c['length'],'company':_0x5e0a77[_0x773e92(0x1f7)],'materialized':_0x9d3719['length'],'links':{'total':_0x48c30c[_0x773e92(0x1f7)],'created':_0x2fa542[_0x773e92(0x206)]??0x0,'updated':_0x2fa542[_0x773e92(0x1c3)]??0x0,'unchanged':_0x2fa542['unchanged']??0x0,'skipped':0x0,'conflicted':0x0},'skills':{'personal':_0x3a375c['map'](summarizeRuntimeSkill),'company':_0x5e0a77[_0x773e92(0x1d4)](summarizeRuntimeSkill)}},'message':_0x773e92(0x1d9)+_0x3a375c[_0x773e92(0x1f7)]+'\x20personal\x20and\x20'+_0x5e0a77[_0x773e92(0x1f7)]+_0x773e92(0x1f4)};}},{'service':a30_0x458caf(0x20b),'command':a30_0x458caf(0x1e7),'description':a30_0x458caf(0x1fb),'risk':a30_0x458caf(0x1e4),'flags':[DIR_FLAG],async 'execute'(_0x3bd8df){const _0x3b2a34=a30_0x458caf,{createPersonalRuntimeSkill:_0x132002,downloadRuntimeSkillPackage:_0x591b0a,listPersonalRuntimeSkills:_0x5997d3,updatePersonalRuntimeSkill:_0x3a3b97}=await import(_0x3b2a34(0x1c9)),{verifyRuntimeSkillPackage:_0xb45d0a,readPushDirectory:_0x2a8094,recordPushedRuntimeSkill:_0x14bcfc}=await import(_0x3b2a34(0x201));if(!_0x3bd8df['accessKey'])throw CliErrors[_0x3b2a34(0x20a)]();const _0x484378=_0x2a8094(_0x3bd8df[_0x3b2a34(0x1c2)](_0x3b2a34(0x1ee)),_0x3bd8df['appCode']),_0x5a9871=(await _0x5997d3(_0x3bd8df[_0x3b2a34(0x205)]))[_0x3b2a34(0x1f8)](_0x17c65b=>_0x17c65b[_0x3b2a34(0x202)]===_0x484378[_0x3b2a34(0x202)]),_0x4333e7=_0x5a9871?await _0x3a3b97(_0x484378['skillCode'],_0x3bd8df[_0x3b2a34(0x205)],_0x484378[_0x3b2a34(0x1f0)]):await _0x132002(_0x3bd8df['appCode'],_0x484378[_0x3b2a34(0x1f0)]);assertMultiFilePushPersisted(_0x484378[_0x3b2a34(0x1f0)][_0x3b2a34(0x1ce)],_0x4333e7);if(isPackageBackedMultiFile(_0x4333e7[_0x3b2a34(0x1ce)])){const _0x1a7e56=await _0x591b0a(_0x3b2a34(0x1dd),_0x484378[_0x3b2a34(0x202)],_0x3bd8df[_0x3b2a34(0x205)]);_0xb45d0a(_0x4333e7[_0x3b2a34(0x1ce)],_0x1a7e56);}return _0x14bcfc(_0x3bd8df[_0x3b2a34(0x1c2)](_0x3b2a34(0x1ee)),_0x4333e7,_0x3bd8df[_0x3b2a34(0x205)]),{'ok':!![],'data':summarizeRuntimeSkill(_0x4333e7),'message':_0x5a9871?'Updated\x20personal\x20Skill\x20'+_0x484378[_0x3b2a34(0x202)]:'Created\x20personal\x20Skill\x20'+_0x484378['skillCode']};}}];async function downloadPackageIfNeeded(_0x2b977b,_0x3d349c,_0x552419,_0x44d817){const _0x25e55f=a30_0x458caf;if(!isPackageBackedManifest(_0x2b977b['files']))return undefined;return _0x44d817(_0x3d349c,_0x2b977b[_0x25e55f(0x202)],_0x552419);}function assertMultiFilePushPersisted(_0x4aeb82,_0x4272b0){const _0x7a6717=a30_0x458caf;if(!isMultiFileManifest(_0x4aeb82))return;if(!isPackageBackedMultiFile(_0x4272b0[_0x7a6717(0x1ce)]))throw CliErrors['validation']('Backend\x20did\x20not\x20persist\x20the\x20multi-file\x20Skill\x20manifest.',_0x7a6717(0x1e0));if(_0x4aeb82[_0x7a6717(0x1d8)]!==_0x4272b0['files']['treeSha256']||_0x4aeb82[_0x7a6717(0x1cc)]!==_0x4272b0['files']['zipSha256']||_0x4aeb82[_0x7a6717(0x1c5)]!==_0x4272b0[_0x7a6717(0x1ce)]['zipSize']||!_0x4272b0[_0x7a6717(0x1ce)][_0x7a6717(0x1d6)]||manifestFileSignature(_0x4aeb82)!==manifestFileSignature(_0x4272b0[_0x7a6717(0x1ce)]))throw CliErrors[_0x7a6717(0x1f5)](_0x7a6717(0x1c4),_0x7a6717(0x1fa));}function isPackageBackedManifest(_0x3fd874){const _0x14730b=a30_0x458caf;return!!_0x3fd874&&typeof _0x3fd874==='object'&&!Array[_0x14730b(0x204)](_0x3fd874)&&typeof _0x3fd874['ossPath']===_0x14730b(0x1c8)&&_0x3fd874[_0x14730b(0x1d6)][_0x14730b(0x1f7)]>0x0&&Array[_0x14730b(0x204)](_0x3fd874['files']);}function isPackageBackedMultiFile(_0xb37a46){return isPackageBackedManifest(_0xb37a46)&&isMultiFileManifest(_0xb37a46);}function isMultiFileManifest(_0x3a3048){const _0x1fc85a=a30_0x458caf;return!!_0x3a3048&&typeof _0x3a3048===_0x1fc85a(0x200)&&!Array[_0x1fc85a(0x204)](_0x3a3048)&&Array[_0x1fc85a(0x204)](_0x3a3048[_0x1fc85a(0x1ce)])&&_0x3a3048['files'][_0x1fc85a(0x1f1)](_0x4c062e=>_0x4c062e[_0x1fc85a(0x1d7)]!==_0x1fc85a(0x1c0));}function manifestFileSignature(_0x330581){const _0x196729=a30_0x458caf;return[..._0x330581[_0x196729(0x1ce)]]['map'](_0x186aa4=>_0x186aa4[_0x196729(0x1d7)]+'\x00'+_0x186aa4[_0x196729(0x1db)]+'\x00'+_0x186aa4[_0x196729(0x1f9)])['sort']()['join']('\x00');}
@@ -1 +1 @@
1
- const a27_0xa509e9=a27_0x5c9d;(function(_0x255e5d,_0x242b2c){const _0x2c38e6=a27_0x5c9d,_0x2f3f80=_0x255e5d();while(!![]){try{const _0x33ee24=-parseInt(_0x2c38e6(0x11d))/0x1+parseInt(_0x2c38e6(0x12d))/0x2*(parseInt(_0x2c38e6(0x122))/0x3)+-parseInt(_0x2c38e6(0x12e))/0x4+-parseInt(_0x2c38e6(0x128))/0x5*(parseInt(_0x2c38e6(0x129))/0x6)+-parseInt(_0x2c38e6(0x121))/0x7+-parseInt(_0x2c38e6(0x11f))/0x8*(-parseInt(_0x2c38e6(0x127))/0x9)+parseInt(_0x2c38e6(0x12c))/0xa;if(_0x33ee24===_0x242b2c)break;else _0x2f3f80['push'](_0x2f3f80['shift']());}catch(_0x5ca874){_0x2f3f80['push'](_0x2f3f80['shift']());}}}(a27_0x58bf,0x5386b));import{getSqlQueryInfo}from'../../core/api-client.js';import{getDbName}from'../../core/db-resolver.js';function a27_0x5c9d(_0x449301,_0x1d04eb){_0x449301=_0x449301-0x11a;const _0x58bffb=a27_0x58bf();let _0x5c9df0=_0x58bffb[_0x449301];return _0x5c9df0;}import{SQLCODE_FLAG,VERBOSE_FLAG}from'../../commands/common/flags.js';export const sqlDetail={'service':a27_0xa509e9(0x11b),'command':a27_0xa509e9(0x11a),'description':'Get\x20custom\x20SQL\x20query\x20details\x20by\x20sqlCode','risk':a27_0xa509e9(0x11e),'flags':[SQLCODE_FLAG,VERBOSE_FLAG],async 'execute'(_0x3fde04){const _0x3b0548=a27_0xa509e9,_0x37afb0=await getSqlQueryInfo(_0x3fde04[_0x3b0548(0x12b)],_0x3fde04[_0x3b0548(0x125)](_0x3b0548(0x11c))),_0x3803ef=_0x3fde04[_0x3b0548(0x124)](_0x3b0548(0x12f));if(_0x3803ef)return{'ok':!![],'data':_0x37afb0};const _0x68058=_0x37afb0[_0x3b0548(0x123)]?await getDbName(_0x3fde04[_0x3b0548(0x12b)],_0x37afb0[_0x3b0548(0x123)]):undefined;return{'ok':!![],'data':{'sqlCode':_0x37afb0['sqlCode'],'sqlName':_0x37afb0[_0x3b0548(0x12a)],'db':_0x68058?_0x68058+'\x20('+_0x37afb0[_0x3b0548(0x123)]+')':_0x37afb0[_0x3b0548(0x123)]??'','description':_0x37afb0[_0x3b0548(0x126)]??'','sqlContent':_0x37afb0[_0x3b0548(0x120)]??''}};}};function a27_0x58bf(){const _0x48b828=['608hcdXQS','sqlContent','4469787wAkRCX','1723611AzdAlK','dbId','bool','str','description','72369LHVEiy','1606765NVJlCL','6pfbJtF','sqlName','appCode','9157530rmuRvW','2jjHAns','2362940HmkPcT','verbose','detail','sql','sqlcode','208654FAVTAM','read'];a27_0x58bf=function(){return _0x48b828;};return a27_0x58bf();}
1
+ const a31_0x3968af=a31_0xbdc2;(function(_0x4e61c4,_0x47779c){const _0x2416b1=a31_0xbdc2,_0x3d9a84=_0x4e61c4();while(!![]){try{const _0x38f9d3=parseInt(_0x2416b1(0xf5))/0x1+parseInt(_0x2416b1(0xfd))/0x2+parseInt(_0x2416b1(0xfc))/0x3+parseInt(_0x2416b1(0x100))/0x4+-parseInt(_0x2416b1(0xfa))/0x5+-parseInt(_0x2416b1(0xf7))/0x6+parseInt(_0x2416b1(0xf9))/0x7*(parseInt(_0x2416b1(0xf4))/0x8);if(_0x38f9d3===_0x47779c)break;else _0x3d9a84['push'](_0x3d9a84['shift']());}catch(_0x3e1a71){_0x3d9a84['push'](_0x3d9a84['shift']());}}}(a31_0x1a64,0x6d94b));import{getSqlQueryInfo}from'../../core/api-client.js';function a31_0x1a64(){const _0x3da6f8=['Get\x20custom\x20SQL\x20query\x20details\x20by\x20sqlCode','419466aTKSGk','21260xnGohj','sqlCode','read','290068SsguLJ','detail','appCode','sql','dbId','8NgEHFQ','741001ugQbTt','verbose','4852008KYacNC','description','8306620exGdfn','4465595qYAsdp'];a31_0x1a64=function(){return _0x3da6f8;};return a31_0x1a64();}import{getDbName}from'../../core/db-resolver.js';function a31_0xbdc2(_0x341daa,_0xe61bfb){_0x341daa=_0x341daa-0xf0;const _0x1a64e1=a31_0x1a64();let _0xbdc2e7=_0x1a64e1[_0x341daa];return _0xbdc2e7;}import{SQLCODE_FLAG,VERBOSE_FLAG}from'../../commands/common/flags.js';export const sqlDetail={'service':a31_0x3968af(0xf2),'command':a31_0x3968af(0xf0),'description':a31_0x3968af(0xfb),'risk':a31_0x3968af(0xff),'flags':[SQLCODE_FLAG,VERBOSE_FLAG],async 'execute'(_0x460631){const _0x51d5f5=a31_0x3968af,_0x56481e=await getSqlQueryInfo(_0x460631['appCode'],_0x460631['str']('sqlcode')),_0x3adc9e=_0x460631['bool'](_0x51d5f5(0xf6));if(_0x3adc9e)return{'ok':!![],'data':_0x56481e};const _0x1a1866=_0x56481e[_0x51d5f5(0xf3)]?await getDbName(_0x460631[_0x51d5f5(0xf1)],_0x56481e[_0x51d5f5(0xf3)]):undefined;return{'ok':!![],'data':{'sqlCode':_0x56481e[_0x51d5f5(0xfe)],'sqlName':_0x56481e['sqlName'],'db':_0x1a1866?_0x1a1866+'\x20('+_0x56481e[_0x51d5f5(0xf3)]+')':_0x56481e[_0x51d5f5(0xf3)]??'','description':_0x56481e[_0x51d5f5(0xf8)]??'','sqlContent':_0x56481e['sqlContent']??''}};}};
@@ -1 +1 @@
1
- const a28_0x45b4fc=a28_0x445f;(function(_0x2ac290,_0x4d156a){const _0xd4abe4=a28_0x445f,_0x2130de=_0x2ac290();while(!![]){try{const _0xf527ed=parseInt(_0xd4abe4(0x74))/0x1+parseInt(_0xd4abe4(0x70))/0x2+parseInt(_0xd4abe4(0x71))/0x3*(-parseInt(_0xd4abe4(0x73))/0x4)+-parseInt(_0xd4abe4(0x65))/0x5+parseInt(_0xd4abe4(0x66))/0x6*(-parseInt(_0xd4abe4(0x69))/0x7)+parseInt(_0xd4abe4(0x68))/0x8+-parseInt(_0xd4abe4(0x75))/0x9;if(_0xf527ed===_0x4d156a)break;else _0x2130de['push'](_0x2130de['shift']());}catch(_0xbd2237){_0x2130de['push'](_0x2130de['shift']());}}}(a28_0x2596,0x1e832));import{executeSdkSql}from'../../core/sdk-client.js';import{SQLCODE_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';function a28_0x445f(_0x20ba36,_0x1dda27){_0x20ba36=_0x20ba36-0x65;const _0x2596ff=a28_0x2596();let _0x445f58=_0x2596ff[_0x20ba36];return _0x445f58;}function a28_0x2596(){const _0x50b0c2=['1099728PEHrby','67494PFoOTE','Execute\x20a\x20custom\x20SQL\x20query\x20by\x20sqlCode','execResult','exec','execSuccess','str','SQL\x20execution\x20failed','417570qDMyEz','921gJmFeY','read','2804HMOyWn','216100PMwaxt','136638bniRpz','sqlcode','793870LOChXx','30vqORdJ','length'];a28_0x2596=function(){return _0x50b0c2;};return a28_0x2596();}import{parseJsonParams}from'../../utils/params.js';export const sqlExec={'service':'sql','command':a28_0x45b4fc(0x6c),'description':a28_0x45b4fc(0x6a),'risk':a28_0x45b4fc(0x72),'flags':[SQLCODE_FLAG,PARAMS_FLAG],async 'execute'(_0x4a8b74){const _0x31e0b9=a28_0x45b4fc,_0x199409=parseJsonParams(_0x4a8b74[_0x31e0b9(0x6e)]('params')),_0x42c4ad=Date['now'](),_0x2e0be9=await executeSdkSql(_0x4a8b74[_0x31e0b9(0x6e)](_0x31e0b9(0x76)),_0x199409),_0x395387=Date['now']()-_0x42c4ad,_0x454355=_0x2e0be9?.[_0x31e0b9(0x6b)]??_0x2e0be9,_0x5e0a05=_0x2e0be9?.[_0x31e0b9(0x6d)]??!![];if(!_0x5e0a05)return{'ok':![],'data':{'error':_0x2e0be9?.['execError']||_0x31e0b9(0x6f),'elapsed':_0x395387},'message':_0x31e0b9(0x6f)};const _0x9719b7=Array['isArray'](_0x454355)?_0x454355:[];return{'ok':!![],'data':{'rows':_0x9719b7,'rowCount':_0x9719b7[_0x31e0b9(0x67)],'elapsed':_0x395387},'message':'Returned\x20'+_0x9719b7[_0x31e0b9(0x67)]+'\x20row(s)\x20in\x20'+_0x395387+'ms'};}};
1
+ const a32_0x57d94e=a32_0x1803;(function(_0xcb1733,_0x4a2a75){const _0x498150=a32_0x1803,_0x475644=_0xcb1733();while(!![]){try{const _0xd6283a=parseInt(_0x498150(0x155))/0x1*(parseInt(_0x498150(0x14e))/0x2)+parseInt(_0x498150(0x14b))/0x3*(parseInt(_0x498150(0x157))/0x4)+-parseInt(_0x498150(0x158))/0x5+parseInt(_0x498150(0x148))/0x6+-parseInt(_0x498150(0x14d))/0x7+-parseInt(_0x498150(0x142))/0x8*(-parseInt(_0x498150(0x143))/0x9)+parseInt(_0x498150(0x14c))/0xa*(parseInt(_0x498150(0x14a))/0xb);if(_0xd6283a===_0x4a2a75)break;else _0x475644['push'](_0x475644['shift']());}catch(_0x486ef7){_0x475644['push'](_0x475644['shift']());}}}(a32_0x3d45,0xd1908));import{executeSdkSql}from'../../core/sdk-client.js';import{SQLCODE_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';import{parseJsonParams}from'../../utils/params.js';function a32_0x3d45(){const _0x574a8e=['9WLNZvX','read','exec','str','Execute\x20a\x20custom\x20SQL\x20query\x20by\x20sqlCode','2718978RSkzoJ','execResult','593153ARFRsv','1885242rIFERZ','130DbPVoF','3891517weSmcy','4076QNYUSR','length','execSuccess','Returned\x20','sql','execError','SQL\x20execution\x20failed','145TkcNOJ','now','4wSUjUx','3658335GhfnWf','\x20row(s)\x20in\x20','543104RGNxhk'];a32_0x3d45=function(){return _0x574a8e;};return a32_0x3d45();}function a32_0x1803(_0x5d01b3,_0x4faddc){_0x5d01b3=_0x5d01b3-0x141;const _0x3d4553=a32_0x3d45();let _0x180344=_0x3d4553[_0x5d01b3];return _0x180344;}export const sqlExec={'service':a32_0x57d94e(0x152),'command':a32_0x57d94e(0x145),'description':a32_0x57d94e(0x147),'risk':a32_0x57d94e(0x144),'flags':[SQLCODE_FLAG,PARAMS_FLAG],async 'execute'(_0x108324){const _0x404058=a32_0x57d94e,_0x23297f=parseJsonParams(_0x108324[_0x404058(0x146)]('params')),_0x40f182=Date[_0x404058(0x156)](),_0x169ded=await executeSdkSql(_0x108324[_0x404058(0x146)]('sqlcode'),_0x23297f),_0x485db8=Date[_0x404058(0x156)]()-_0x40f182,_0x4ca3ba=_0x169ded?.[_0x404058(0x149)]??_0x169ded,_0x48d5ea=_0x169ded?.[_0x404058(0x150)]??!![];if(!_0x48d5ea)return{'ok':![],'data':{'error':_0x169ded?.[_0x404058(0x153)]||_0x404058(0x154),'elapsed':_0x485db8},'message':_0x404058(0x154)};const _0x2c6453=Array['isArray'](_0x4ca3ba)?_0x4ca3ba:[];return{'ok':!![],'data':{'rows':_0x2c6453,'rowCount':_0x2c6453['length'],'elapsed':_0x485db8},'message':_0x404058(0x151)+_0x2c6453[_0x404058(0x14f)]+_0x404058(0x141)+_0x485db8+'ms'};}};
@@ -1 +1 @@
1
- function a29_0x43a7(_0x45f52b,_0x41f310){_0x45f52b=_0x45f52b-0x170;const _0x1aefc2=a29_0x1aef();let _0x43a78a=_0x1aefc2[_0x45f52b];return _0x43a78a;}(function(_0x35e463,_0x53ee68){const _0x59d6b3=a29_0x43a7,_0x277f1a=_0x35e463();while(!![]){try{const _0x46f823=-parseInt(_0x59d6b3(0x176))/0x1*(parseInt(_0x59d6b3(0x178))/0x2)+-parseInt(_0x59d6b3(0x174))/0x3*(parseInt(_0x59d6b3(0x172))/0x4)+parseInt(_0x59d6b3(0x173))/0x5*(-parseInt(_0x59d6b3(0x177))/0x6)+parseInt(_0x59d6b3(0x171))/0x7+parseInt(_0x59d6b3(0x170))/0x8+-parseInt(_0x59d6b3(0x175))/0x9+parseInt(_0x59d6b3(0x179))/0xa;if(_0x46f823===_0x53ee68)break;else _0x277f1a['push'](_0x277f1a['shift']());}catch(_0x56f396){_0x277f1a['push'](_0x277f1a['shift']());}}}(a29_0x1aef,0xedd2f));import{sqlDetail}from'../../commands/sql/detail.js';function a29_0x1aef(){const _0x3d433c=['64EzjDxz','15onbfCu','357792TCylTq','13608387ddXOpd','1511Eujiib','97278pttnKN','1576nDcCeV','33922070FwyzNz','9526200bbvwcV','7355033cflfSN'];a29_0x1aef=function(){return _0x3d433c;};return a29_0x1aef();}import{sqlExec}from'../../commands/sql/exec.js';export const sqlDefinitions=[sqlDetail,sqlExec];
1
+ (function(_0x5e21e7,_0x350b9b){const _0x565347=a33_0x3e02,_0x1dfe0c=_0x5e21e7();while(!![]){try{const _0x365a13=-parseInt(_0x565347(0xe4))/0x1*(parseInt(_0x565347(0xdb))/0x2)+-parseInt(_0x565347(0xe0))/0x3*(-parseInt(_0x565347(0xdc))/0x4)+parseInt(_0x565347(0xe3))/0x5*(-parseInt(_0x565347(0xdf))/0x6)+parseInt(_0x565347(0xe6))/0x7+-parseInt(_0x565347(0xdd))/0x8*(-parseInt(_0x565347(0xe2))/0x9)+parseInt(_0x565347(0xde))/0xa*(-parseInt(_0x565347(0xe1))/0xb)+parseInt(_0x565347(0xe5))/0xc;if(_0x365a13===_0x350b9b)break;else _0x1dfe0c['push'](_0x1dfe0c['shift']());}catch(_0x340dc5){_0x1dfe0c['push'](_0x1dfe0c['shift']());}}}(a33_0x4e01,0xecc17));function a33_0x3e02(_0x56100b,_0x14e177){_0x56100b=_0x56100b-0xdb;const _0x4e01f4=a33_0x4e01();let _0x3e025a=_0x4e01f4[_0x56100b];return _0x3e025a;}import{sqlDetail}from'../../commands/sql/detail.js';import{sqlExec}from'../../commands/sql/exec.js';function a33_0x4e01(){const _0x560fda=['4807sqjkiM','223749FkTbWO','6672005Gnjoyk','484VbFazC','14925756otEcJO','11448577AcIGoC','212ukjCNl','12rQvPKL','328kFmhhQ','38380NkCqGI','6WgOaYL','134037ATZaIG'];a33_0x4e01=function(){return _0x560fda;};return a33_0x4e01();}export const sqlDefinitions=[sqlDetail,sqlExec];
@@ -1 +1 @@
1
- const a30_0x587a5a=a30_0x2e4f;(function(_0x1df9a1,_0x25b6bd){const _0x256406=a30_0x2e4f,_0x423719=_0x1df9a1();while(!![]){try{const _0x44c7c6=parseInt(_0x256406(0x1f8))/0x1*(parseInt(_0x256406(0x1ad))/0x2)+parseInt(_0x256406(0x1ed))/0x3*(parseInt(_0x256406(0x1d4))/0x4)+-parseInt(_0x256406(0x1a8))/0x5*(-parseInt(_0x256406(0x1ee))/0x6)+-parseInt(_0x256406(0x1e3))/0x7*(parseInt(_0x256406(0x1c3))/0x8)+-parseInt(_0x256406(0x1f6))/0x9+-parseInt(_0x256406(0x1f1))/0xa*(parseInt(_0x256406(0x1d2))/0xb)+parseInt(_0x256406(0x1b2))/0xc;if(_0x44c7c6===_0x25b6bd)break;else _0x423719['push'](_0x423719['shift']());}catch(_0x5e371e){_0x423719['push'](_0x423719['shift']());}}}(a30_0x4c70,0xca16c));import{spawnSync}from'node:child_process';import{CliErrors}from'../errors.js';import{CLI_BIN_NAME}from'../constant/cli.js';import{LOVRABET_NPM_PACKAGE_NAME,LOVRABET_SKILL_SOURCE,NPM_REGISTRY_BASE_URL}from'../constant/distribution.js';function a30_0x4c70(){const _0x4dc64a=['/-/package/','join','entries','error','trim','source','751458eFsmpm','6AETXtv','pipe','Version\x20comparison\x20failed.','2150bBVKWJ','Invalid\x20version:\x20','toString','stderr','\x20-g\x20-y','4233834mJdPMB','Update\x20failed:\x20','99451OXBXBU','latest','1386145srAgDF','filter','cwd','match','Checking\x20npm\x20dist-tags...','30WJIAWc','flag','beta','\x20\x20Try\x20manually:\x20npm\x20install\x20-g\x20','nonInteractive','2465796omvjoA','run','--latest,\x20--beta,\x20and\x20version\x20cannot\x20be\x20used\x20together.','validation','minor','patch','Already\x20on\x20requested\x20version\x20(v','length','skills','\x20->\x20','\x20\x20Run\x20manually:\x20npx\x20skills\x20add\x20','Updated\x20to\x20v','\x20\x20Official\x20skill\x20package\x20is\x20up\x20to\x20date.','Updating\x20','Skipping\x20official\x20skill\x20package\x20(--no-skills).','\x20\x20Run\x20manually:\x20npm\x20install\x20-g\x20','skipped','536fgptvJ','Already\x20up\x20to\x20date\x20(v','install','Use\x20full\x20semver\x20versions\x20such\x20as\x202.0.6\x20or\x202.0.7-beta.1.','map','message','unknown','status','json','stdout','prerelease','Update\x20','Use\x20a\x20full\x20semver\x20such\x20as\x202.0.6\x20or\x202.0.7-beta.1.','Current\x20version:\x20','no-skills','2398VMCYvk','object','4vAdcRO','Install\x20the\x20version\x20from\x20npm\x20beta\x20dist-tag','args','boolean','Checking\x20official\x20skill\x20package...','log','/dist-tags','bool','Unable\x20to\x20resolve\x20','version','exit\x20','warn','string','timeout','npm','91931kmDKQz','Choose\x20exactly\x20one\x20target:\x20--latest,\x20--beta,\x20or\x20--version\x20<version>.','update','\x20\x20Skipped\x20skill\x20install\x20('];a30_0x4c70=function(){return _0x4dc64a;};return a30_0x4c70();}import{resolveNpmBin}from'../utils/platform.js';import{getCliVersion}from'../utils/version.js';import{LOVRABET_SKIP_NPX_SKILLS_ENV,runNpxSkillsAddGlobal}from'../skills/npx-skills-add.js';const updateFlags=[{'name':a30_0x587a5a(0x1a7),'type':a30_0x587a5a(0x1d7),'description':'Install\x20the\x20version\x20from\x20npm\x20latest\x20dist-tag','default':![]},{'name':a30_0x587a5a(0x1af),'type':'boolean','description':a30_0x587a5a(0x1d5),'default':![]},{'name':a30_0x587a5a(0x1dd),'type':a30_0x587a5a(0x1e0),'description':'Install\x20a\x20specific\x20CLI\x20version'},{'name':'no-skills','type':a30_0x587a5a(0x1d7),'description':'Skip\x20official\x20skill\x20package\x20refresh\x20after\x20updating','default':![]},{'name':a30_0x587a5a(0x1ba),'type':a30_0x587a5a(0x1d7),'description':'Refresh\x20official\x20skill\x20package\x20after\x20updating','default':!![],'hidden':!![]}];function parseSemver(_0x3fa4c9){const _0x5345c2=a30_0x587a5a,_0x2ed9ea=_0x3fa4c9[_0x5345c2(0x1eb)]()[_0x5345c2(0x1ab)](/^(\d+)\.(\d+)\.(\d+)(?:-([0-9A-Za-z.-]+))?$/);if(!_0x2ed9ea)return null;return{'major':Number(_0x2ed9ea[0x1]),'minor':Number(_0x2ed9ea[0x2]),'patch':Number(_0x2ed9ea[0x3]),'prerelease':_0x2ed9ea[0x4]};}function compareSemver(_0x522ebb,_0x42a529){const _0x4b7ac1=a30_0x587a5a,_0x75648f=parseSemver(_0x522ebb),_0x9cd688=parseSemver(_0x42a529);if(!_0x75648f||!_0x9cd688)throw CliErrors[_0x4b7ac1(0x1b5)](_0x4b7ac1(0x1f0),_0x4b7ac1(0x1c6));for(const _0x1506d8 of['major',_0x4b7ac1(0x1b6),_0x4b7ac1(0x1b7)]){if(_0x75648f[_0x1506d8]<_0x9cd688[_0x1506d8])return-0x1;if(_0x75648f[_0x1506d8]>_0x9cd688[_0x1506d8])return 0x1;}if(!_0x75648f[_0x4b7ac1(0x1cd)]&&!_0x9cd688[_0x4b7ac1(0x1cd)])return 0x0;if(!_0x75648f[_0x4b7ac1(0x1cd)])return 0x1;if(!_0x9cd688[_0x4b7ac1(0x1cd)])return-0x1;if(_0x75648f[_0x4b7ac1(0x1cd)]===_0x9cd688[_0x4b7ac1(0x1cd)])return 0x0;return _0x75648f[_0x4b7ac1(0x1cd)]<_0x9cd688[_0x4b7ac1(0x1cd)]?-0x1:0x1;}function getRequestedVersion(_0x353f2f){const _0x1ac7ad=a30_0x587a5a,_0x315430=_0x353f2f['str'](_0x1ac7ad(0x1dd))[_0x1ac7ad(0x1eb)]();if(_0x315430)return _0x315430;return String(_0x353f2f[_0x1ac7ad(0x1d6)]?.[0x0]??'')[_0x1ac7ad(0x1eb)]();}function a30_0x2e4f(_0x1a30a1,_0x539904){_0x1a30a1=_0x1a30a1-0x1a7;const _0x4c70c3=a30_0x4c70();let _0x2e4f06=_0x4c70c3[_0x1a30a1];return _0x2e4f06;}function shouldSkipOfficialSkill(_0x32bc84){const _0x51bb6a=a30_0x587a5a;return _0x32bc84[_0x51bb6a(0x1db)](_0x51bb6a(0x1d1))||_0x32bc84[_0x51bb6a(0x1ae)](_0x51bb6a(0x1ba))===![];}async function validateUpdateFlags(_0x26be03){const _0x156745=a30_0x587a5a,_0xb7cd9=getRequestedVersion(_0x26be03),_0x77c3a1=[_0x26be03[_0x156745(0x1db)](_0x156745(0x1a7))?'latest':'',_0x26be03[_0x156745(0x1db)](_0x156745(0x1af))?'beta':'',_0xb7cd9?'version':''][_0x156745(0x1a9)](Boolean);if(_0x77c3a1[_0x156745(0x1b9)]>0x1)throw CliErrors[_0x156745(0x1b5)](_0x156745(0x1b4),_0x156745(0x1e4));if(_0xb7cd9&&!parseSemver(_0xb7cd9))throw CliErrors[_0x156745(0x1b5)](_0x156745(0x1f2)+_0xb7cd9,_0x156745(0x1cf));}async function fetchNpmDistTags(){const _0x516137=a30_0x587a5a;try{const _0x1ec582=NPM_REGISTRY_BASE_URL+_0x516137(0x1e7)+encodeURIComponent(LOVRABET_NPM_PACKAGE_NAME)+_0x516137(0x1da),_0x276a18=await fetch(_0x1ec582,{'signal':AbortSignal[_0x516137(0x1e1)](0x2710)});if(!_0x276a18['ok'])return null;const _0x390da5=await _0x276a18[_0x516137(0x1cb)]();if(!_0x390da5||typeof _0x390da5!==_0x516137(0x1d3))return null;return Object['fromEntries'](Object[_0x516137(0x1e9)](_0x390da5)[_0x516137(0x1a9)](([,_0x213809])=>typeof _0x213809==='string'&&_0x213809[_0x516137(0x1eb)]())[_0x516137(0x1c7)](([_0x477721,_0x2f0f47])=>[_0x477721,String(_0x2f0f47)[_0x516137(0x1eb)]()]));}catch{return null;}}async function resolveTargetVersion(_0x5edf99){const _0x10efda=a30_0x587a5a,_0x29f8d0=getRequestedVersion(_0x5edf99);if(_0x29f8d0)return{'version':_0x29f8d0,'source':_0x10efda(0x1dd)};const _0x496da7=_0x5edf99['bool'](_0x10efda(0x1af))?_0x10efda(0x1af):_0x10efda(0x1a7),_0x1cdaed=await fetchNpmDistTags(),_0x1f5c00=_0x1cdaed?.[_0x496da7];if(!_0x1f5c00)return null;return{'version':_0x1f5c00,'source':_0x496da7};}function shouldInstallTarget(_0x5d5d42,_0x29a618){const _0x302472=a30_0x587a5a,_0x2232a0=compareSemver(_0x5d5d42,_0x29a618[_0x302472(0x1dd)]);if(_0x29a618[_0x302472(0x1ec)]===_0x302472(0x1dd))return _0x2232a0!==0x0;return _0x2232a0<0x0;}function installCliPackage(_0x4a6830,_0x4f7aef){const _0x39db88=a30_0x587a5a,_0x5c277c=resolveNpmBin(_0x39db88(0x1e2)),_0xb3695c=[_0x39db88(0x1c5),'-g',LOVRABET_NPM_PACKAGE_NAME+'@'+_0x4a6830];console[_0x39db88(0x1d9)]('*\x20'+[_0x5c277c,..._0xb3695c][_0x39db88(0x1e8)]('\x20'));const _0xeabac2=spawnSync(_0x5c277c,_0xb3695c,{'cwd':process[_0x39db88(0x1aa)](),'stdio':_0x4f7aef?_0x39db88(0x1ef):'inherit','env':process.env,'shell':![]});if(_0xeabac2[_0x39db88(0x1ca)]===0x0)return{'ok':!![]};let _0x3a3738=_0xeabac2['error']?.[_0x39db88(0x1c8)]||_0x39db88(0x1de)+(_0xeabac2[_0x39db88(0x1ca)]??_0x39db88(0x1c9));if(_0x4f7aef){const _0x36d277=_0xeabac2['stderr']?_0xeabac2[_0x39db88(0x1f4)][_0x39db88(0x1f3)]()[_0x39db88(0x1eb)]():'',_0x38d655=_0xeabac2['stdout']?_0xeabac2[_0x39db88(0x1cc)][_0x39db88(0x1f3)]()[_0x39db88(0x1eb)]():'';if(_0x36d277)_0x3a3738=_0x36d277;else{if(_0x38d655)_0x3a3738=_0x38d655;}}return{'ok':![],'error':_0x3a3738};}async function installOfficialSkill(_0x9b0a58){const _0x573010=a30_0x587a5a;console['log'](_0x573010(0x1d8));const _0x41d1f7=runNpxSkillsAddGlobal(process[_0x573010(0x1aa)](),LOVRABET_SKILL_SOURCE,{'stdio':_0x9b0a58?_0x573010(0x1ef):'inherit'});if(_0x41d1f7[_0x573010(0x1c2)]){console['log'](_0x573010(0x1e6)+LOVRABET_SKIP_NPX_SKILLS_ENV+'=1).');return;}if(_0x41d1f7['ok']){console['log'](_0x573010(0x1be));return;}console[_0x573010(0x1df)]('\x20\x20Official\x20skill\x20update\x20failed:\x20'+(_0x41d1f7[_0x573010(0x1ea)]||'unknown')),console[_0x573010(0x1d9)](_0x573010(0x1bc)+LOVRABET_SKILL_SOURCE+_0x573010(0x1f5));}async function execute(_0x1e2204){const _0x4e7e36=a30_0x587a5a;await validateUpdateFlags(_0x1e2204);const _0x482c91=getCliVersion();console[_0x4e7e36(0x1d9)](_0x4e7e36(0x1d0)+_0x482c91),console[_0x4e7e36(0x1d9)](_0x4e7e36(0x1ac));const _0x1c700f=await resolveTargetVersion(_0x1e2204);if(!_0x1c700f){const _0x18b340=_0x1e2204[_0x4e7e36(0x1db)](_0x4e7e36(0x1af))?'beta':'latest',_0x503d21=_0x4e7e36(0x1dc)+_0x18b340+'\x20version\x20from\x20npm.';return console['warn'](_0x503d21),console[_0x4e7e36(0x1d9)](_0x4e7e36(0x1c1)+LOVRABET_NPM_PACKAGE_NAME+'@'+_0x18b340),{'ok':![]};}if(!shouldInstallTarget(_0x482c91,_0x1c700f)){const _0x42839d=_0x1c700f['source']===_0x4e7e36(0x1dd)?_0x4e7e36(0x1b8)+_0x1c700f[_0x4e7e36(0x1dd)]+').':_0x4e7e36(0x1c4)+_0x1c700f['version']+').';return console['log'](_0x42839d),shouldSkipOfficialSkill(_0x1e2204)?console[_0x4e7e36(0x1d9)](_0x4e7e36(0x1c0)):await installOfficialSkill(_0x1e2204[_0x4e7e36(0x1b1)]),{'ok':!![]};}console[_0x4e7e36(0x1d9)](_0x4e7e36(0x1bf)+LOVRABET_NPM_PACKAGE_NAME+':\x20'+_0x482c91+_0x4e7e36(0x1bb)+_0x1c700f[_0x4e7e36(0x1dd)]);const _0x162ca1=installCliPackage(_0x1c700f[_0x4e7e36(0x1dd)],_0x1e2204['nonInteractive']);if(!_0x162ca1['ok']){const _0x58e90a=_0x4e7e36(0x1f7)+(_0x162ca1['error']||'unknown');return console[_0x4e7e36(0x1ea)](_0x58e90a),console['log'](_0x4e7e36(0x1b0)+LOVRABET_NPM_PACKAGE_NAME+'@'+_0x1c700f[_0x4e7e36(0x1dd)]),{'ok':![]};}return console[_0x4e7e36(0x1d9)](_0x4e7e36(0x1bd)+_0x1c700f[_0x4e7e36(0x1dd)]+'.'),console[_0x4e7e36(0x1d9)]('\x20\x20Restart\x20your\x20terminal\x20to\x20use\x20the\x20new\x20version.'),shouldSkipOfficialSkill(_0x1e2204)?console[_0x4e7e36(0x1d9)](_0x4e7e36(0x1c0)):await installOfficialSkill(_0x1e2204[_0x4e7e36(0x1b1)]),{'ok':!![]};}export const updateDefinition={'service':a30_0x587a5a(0x1e5),'command':a30_0x587a5a(0x1b3),'description':a30_0x587a5a(0x1ce)+CLI_BIN_NAME+'\x20CLI\x20from\x20npm','risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':updateFlags,'validate':validateUpdateFlags,'execute':execute};
1
+ const a34_0x80755a=a34_0xdd3b;(function(_0x1b68bb,_0x94a3d1){const _0x23d517=a34_0xdd3b,_0xa29734=_0x1b68bb();while(!![]){try{const _0xbec5d=-parseInt(_0x23d517(0x189))/0x1*(-parseInt(_0x23d517(0x17e))/0x2)+-parseInt(_0x23d517(0x170))/0x3+parseInt(_0x23d517(0x173))/0x4*(parseInt(_0x23d517(0x1af))/0x5)+-parseInt(_0x23d517(0x199))/0x6+-parseInt(_0x23d517(0x1b6))/0x7+parseInt(_0x23d517(0x18a))/0x8+-parseInt(_0x23d517(0x190))/0x9*(-parseInt(_0x23d517(0x176))/0xa);if(_0xbec5d===_0x94a3d1)break;else _0xa29734['push'](_0xa29734['shift']());}catch(_0x5474d0){_0xa29734['push'](_0xa29734['shift']());}}}(a34_0x574e,0x9bbf8));import{spawnSync}from'node:child_process';import{CliErrors}from'../errors.js';import{CLI_BIN_NAME}from'../constant/cli.js';import{LOVRABET_NPM_PACKAGE_NAME,LOVRABET_SKILL_SOURCE,NPM_REGISTRY_BASE_URL}from'../constant/distribution.js';import{resolveNpmBin}from'../utils/platform.js';import{getCliVersion}from'../utils/version.js';import{LOVRABET_SKIP_NPX_SKILLS_ENV,runNpxSkillsAddGlobal}from'../skills/npx-skills-add.js';const updateFlags=[{'name':a34_0x80755a(0x1a5),'type':'boolean','description':a34_0x80755a(0x1b4),'default':![]},{'name':a34_0x80755a(0x1a6),'type':a34_0x80755a(0x1a3),'description':a34_0x80755a(0x195),'default':![]},{'name':a34_0x80755a(0x196),'type':a34_0x80755a(0x18f),'description':a34_0x80755a(0x172)},{'name':a34_0x80755a(0x1ac),'type':a34_0x80755a(0x1a3),'description':'Skip\x20official\x20skill\x20package\x20refresh\x20after\x20updating','default':![]},{'name':a34_0x80755a(0x188),'type':a34_0x80755a(0x1a3),'description':a34_0x80755a(0x1b5),'default':!![],'hidden':!![]}];function parseSemver(_0x2273f3){const _0x5a2cb7=a34_0x80755a,_0x34d550=_0x2273f3['trim']()[_0x5a2cb7(0x178)](/^(\d+)\.(\d+)\.(\d+)(?:-([0-9A-Za-z.-]+))?$/);if(!_0x34d550)return null;return{'major':Number(_0x34d550[0x1]),'minor':Number(_0x34d550[0x2]),'patch':Number(_0x34d550[0x3]),'prerelease':_0x34d550[0x4]};}function compareSemver(_0x400622,_0x33fc41){const _0x11b349=a34_0x80755a,_0x3d925d=parseSemver(_0x400622),_0x30c40d=parseSemver(_0x33fc41);if(!_0x3d925d||!_0x30c40d)throw CliErrors[_0x11b349(0x17c)](_0x11b349(0x1a1),'Use\x20full\x20semver\x20versions\x20such\x20as\x202.0.6\x20or\x202.0.7-beta.1.');for(const _0xd16947 of[_0x11b349(0x192),_0x11b349(0x198),_0x11b349(0x184)]){if(_0x3d925d[_0xd16947]<_0x30c40d[_0xd16947])return-0x1;if(_0x3d925d[_0xd16947]>_0x30c40d[_0xd16947])return 0x1;}if(!_0x3d925d[_0x11b349(0x1a0)]&&!_0x30c40d['prerelease'])return 0x0;if(!_0x3d925d[_0x11b349(0x1a0)])return 0x1;if(!_0x30c40d[_0x11b349(0x1a0)])return-0x1;if(_0x3d925d[_0x11b349(0x1a0)]===_0x30c40d[_0x11b349(0x1a0)])return 0x0;return _0x3d925d['prerelease']<_0x30c40d[_0x11b349(0x1a0)]?-0x1:0x1;}function getRequestedVersion(_0x3821d0){const _0xf9eafd=a34_0x80755a,_0x470a24=_0x3821d0['str'](_0xf9eafd(0x196))['trim']();if(_0x470a24)return _0x470a24;return String(_0x3821d0['args']?.[0x0]??'')[_0xf9eafd(0x19d)]();}function a34_0x574e(){const _0x277a36=['boolean','fromEntries','latest','beta','\x20version\x20from\x20npm.','map','Already\x20up\x20to\x20date\x20(v','\x20-g\x20-y','Current\x20version:\x20','no-skills','/-/package/','warn','5bxvUna','=1).','Checking\x20official\x20skill\x20package...','Unable\x20to\x20resolve\x20','\x20\x20Run\x20manually:\x20npx\x20skills\x20add\x20','Install\x20the\x20version\x20from\x20npm\x20latest\x20dist-tag','Refresh\x20official\x20skill\x20package\x20after\x20updating','6704929RQPHch','error','Use\x20a\x20full\x20semver\x20such\x20as\x202.0.6\x20or\x202.0.7-beta.1.','flag','object','3566175vDJuyI','exit\x20','Install\x20a\x20specific\x20CLI\x20version','2250696nWQwGA','Updated\x20to\x20v','Checking\x20npm\x20dist-tags...','1587710YJQojY','Update\x20failed:\x20','match','Choose\x20exactly\x20one\x20target:\x20--latest,\x20--beta,\x20or\x20--version\x20<version>.','write','source','validation','\x20CLI\x20from\x20npm','26aRMnQI','join','\x20\x20Official\x20skill\x20package\x20is\x20up\x20to\x20date.','json','nonInteractive','\x20\x20Restart\x20your\x20terminal\x20to\x20use\x20the\x20new\x20version.','patch','\x20\x20Official\x20skill\x20update\x20failed:\x20','unknown','Invalid\x20version:\x20','skills','8521rnLmHd','3078672PuOabl','Already\x20on\x20requested\x20version\x20(v','Updating\x20','log','length','string','117entYPa','--latest,\x20--beta,\x20and\x20version\x20cannot\x20be\x20used\x20together.','major','entries','toString','Install\x20the\x20version\x20from\x20npm\x20beta\x20dist-tag','version','bool','minor','2026728NaoBBO','stderr','cwd','status','trim','stdout','Update\x20','prerelease','Version\x20comparison\x20failed.','filter'];a34_0x574e=function(){return _0x277a36;};return a34_0x574e();}function shouldSkipOfficialSkill(_0x1a5725){const _0xaa3d69=a34_0x80755a;return _0x1a5725['bool'](_0xaa3d69(0x1ac))||_0x1a5725[_0xaa3d69(0x16e)](_0xaa3d69(0x188))===![];}async function validateUpdateFlags(_0x2bb7b2){const _0x3eee2e=a34_0x80755a,_0x29b897=getRequestedVersion(_0x2bb7b2),_0x214c48=[_0x2bb7b2[_0x3eee2e(0x197)](_0x3eee2e(0x1a5))?'latest':'',_0x2bb7b2[_0x3eee2e(0x197)](_0x3eee2e(0x1a6))?_0x3eee2e(0x1a6):'',_0x29b897?'version':''][_0x3eee2e(0x1a2)](Boolean);if(_0x214c48[_0x3eee2e(0x18e)]>0x1)throw CliErrors['validation'](_0x3eee2e(0x191),_0x3eee2e(0x179));if(_0x29b897&&!parseSemver(_0x29b897))throw CliErrors['validation'](_0x3eee2e(0x187)+_0x29b897,_0x3eee2e(0x1b8));}async function fetchNpmDistTags(){const _0x27a187=a34_0x80755a;try{const _0x5bd7d5=NPM_REGISTRY_BASE_URL+_0x27a187(0x1ad)+encodeURIComponent(LOVRABET_NPM_PACKAGE_NAME)+'/dist-tags',_0x5aaa23=await fetch(_0x5bd7d5,{'signal':AbortSignal['timeout'](0x2710)});if(!_0x5aaa23['ok'])return null;const _0xc24b60=await _0x5aaa23[_0x27a187(0x181)]();if(!_0xc24b60||typeof _0xc24b60!==_0x27a187(0x16f))return null;return Object[_0x27a187(0x1a4)](Object[_0x27a187(0x193)](_0xc24b60)[_0x27a187(0x1a2)](([,_0x46dbed])=>typeof _0x46dbed===_0x27a187(0x18f)&&_0x46dbed[_0x27a187(0x19d)]())[_0x27a187(0x1a8)](([_0x30e399,_0x569a50])=>[_0x30e399,String(_0x569a50)['trim']()]));}catch{return null;}}function a34_0xdd3b(_0x7bf3e6,_0x330da5){_0x7bf3e6=_0x7bf3e6-0x16e;const _0x574ead=a34_0x574e();let _0xdd3bda=_0x574ead[_0x7bf3e6];return _0xdd3bda;}async function resolveTargetVersion(_0x696722){const _0x17b1c7=a34_0x80755a,_0x33747c=getRequestedVersion(_0x696722);if(_0x33747c)return{'version':_0x33747c,'source':'version'};const _0x6cd832=_0x696722[_0x17b1c7(0x197)](_0x17b1c7(0x1a6))?'beta':_0x17b1c7(0x1a5),_0x272abf=await fetchNpmDistTags(),_0x307ecb=_0x272abf?.[_0x6cd832];if(!_0x307ecb)return null;return{'version':_0x307ecb,'source':_0x6cd832};}function shouldInstallTarget(_0x345687,_0x4eb6b6){const _0x269c16=a34_0x80755a,_0x1d03b4=compareSemver(_0x345687,_0x4eb6b6['version']);if(_0x4eb6b6[_0x269c16(0x17b)]===_0x269c16(0x196))return _0x1d03b4!==0x0;return _0x1d03b4<0x0;}function installCliPackage(_0xf027c6,_0xc06b13){const _0x380fc8=a34_0x80755a,_0x1e19a9=resolveNpmBin('npm'),_0x450fac=['install','-g',LOVRABET_NPM_PACKAGE_NAME+'@'+_0xf027c6];console['log']('*\x20'+[_0x1e19a9,..._0x450fac][_0x380fc8(0x17f)]('\x20'));const _0x804baa=spawnSync(_0x1e19a9,_0x450fac,{'cwd':process[_0x380fc8(0x19b)](),'stdio':_0xc06b13?'pipe':'inherit','env':process.env,'shell':![]});if(_0x804baa[_0x380fc8(0x19c)]===0x0)return{'ok':!![]};let _0x2465e8=_0x804baa['error']?.['message']||_0x380fc8(0x171)+(_0x804baa[_0x380fc8(0x19c)]??_0x380fc8(0x186));if(_0xc06b13){const _0x4b5cfc=_0x804baa[_0x380fc8(0x19a)]?_0x804baa['stderr'][_0x380fc8(0x194)]()[_0x380fc8(0x19d)]():'',_0x50dd0e=_0x804baa[_0x380fc8(0x19e)]?_0x804baa[_0x380fc8(0x19e)][_0x380fc8(0x194)]()[_0x380fc8(0x19d)]():'';if(_0x4b5cfc)_0x2465e8=_0x4b5cfc;else{if(_0x50dd0e)_0x2465e8=_0x50dd0e;}}return{'ok':![],'error':_0x2465e8};}async function installOfficialSkill(_0x1ebb51){const _0xd9266e=a34_0x80755a;console[_0xd9266e(0x18d)](_0xd9266e(0x1b1));const _0x42aa18=runNpxSkillsAddGlobal(process[_0xd9266e(0x19b)](),LOVRABET_SKILL_SOURCE,{'stdio':_0x1ebb51?'pipe':'inherit'});if(_0x42aa18['skipped']){console['log']('\x20\x20Skipped\x20skill\x20install\x20('+LOVRABET_SKIP_NPX_SKILLS_ENV+_0xd9266e(0x1b0));return;}if(_0x42aa18['ok']){console[_0xd9266e(0x18d)](_0xd9266e(0x180));return;}console[_0xd9266e(0x1ae)](_0xd9266e(0x185)+(_0x42aa18[_0xd9266e(0x1b7)]||_0xd9266e(0x186))),console['log'](_0xd9266e(0x1b3)+LOVRABET_SKILL_SOURCE+_0xd9266e(0x1aa));}async function execute(_0x80ae47){const _0x42f808=a34_0x80755a;await validateUpdateFlags(_0x80ae47);const _0x338eba=getCliVersion();console['log'](_0x42f808(0x1ab)+_0x338eba),console['log'](_0x42f808(0x175));const _0x64af4=await resolveTargetVersion(_0x80ae47);if(!_0x64af4){const _0x452f6f=_0x80ae47[_0x42f808(0x197)]('beta')?_0x42f808(0x1a6):_0x42f808(0x1a5),_0x541844=_0x42f808(0x1b2)+_0x452f6f+_0x42f808(0x1a7);return console['warn'](_0x541844),console[_0x42f808(0x18d)]('\x20\x20Run\x20manually:\x20npm\x20install\x20-g\x20'+LOVRABET_NPM_PACKAGE_NAME+'@'+_0x452f6f),{'ok':![]};}if(!shouldInstallTarget(_0x338eba,_0x64af4)){const _0x28ba50=_0x64af4[_0x42f808(0x17b)]==='version'?_0x42f808(0x18b)+_0x64af4[_0x42f808(0x196)]+').':_0x42f808(0x1a9)+_0x64af4[_0x42f808(0x196)]+').';return console[_0x42f808(0x18d)](_0x28ba50),shouldSkipOfficialSkill(_0x80ae47)?console[_0x42f808(0x18d)]('Skipping\x20official\x20skill\x20package\x20(--no-skills).'):await installOfficialSkill(_0x80ae47[_0x42f808(0x182)]),{'ok':!![]};}console['log'](_0x42f808(0x18c)+LOVRABET_NPM_PACKAGE_NAME+':\x20'+_0x338eba+'\x20->\x20'+_0x64af4['version']);const _0x2c1fc5=installCliPackage(_0x64af4[_0x42f808(0x196)],_0x80ae47[_0x42f808(0x182)]);if(!_0x2c1fc5['ok']){const _0x4801cf=_0x42f808(0x177)+(_0x2c1fc5[_0x42f808(0x1b7)]||_0x42f808(0x186));return console[_0x42f808(0x1b7)](_0x4801cf),console[_0x42f808(0x18d)]('\x20\x20Try\x20manually:\x20npm\x20install\x20-g\x20'+LOVRABET_NPM_PACKAGE_NAME+'@'+_0x64af4[_0x42f808(0x196)]),{'ok':![]};}return console[_0x42f808(0x18d)](_0x42f808(0x174)+_0x64af4[_0x42f808(0x196)]+'.'),console[_0x42f808(0x18d)](_0x42f808(0x183)),shouldSkipOfficialSkill(_0x80ae47)?console[_0x42f808(0x18d)]('Skipping\x20official\x20skill\x20package\x20(--no-skills).'):await installOfficialSkill(_0x80ae47['nonInteractive']),{'ok':!![]};}export const updateDefinition={'service':'update','command':'run','description':a34_0x80755a(0x19f)+CLI_BIN_NAME+a34_0x80755a(0x17d),'risk':a34_0x80755a(0x17a),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':updateFlags,'validate':validateUpdateFlags,'execute':execute};
@@ -1 +1 @@
1
- const a31_0x3f723f=a31_0x4dd1;(function(_0x378122,_0x595582){const _0x679857=a31_0x4dd1,_0x458a9b=_0x378122();while(!![]){try{const _0x25abec=-parseInt(_0x679857(0x112))/0x1*(parseInt(_0x679857(0x110))/0x2)+-parseInt(_0x679857(0x102))/0x3*(parseInt(_0x679857(0x107))/0x4)+-parseInt(_0x679857(0x100))/0x5*(-parseInt(_0x679857(0x10a))/0x6)+-parseInt(_0x679857(0x109))/0x7+parseInt(_0x679857(0x104))/0x8*(-parseInt(_0x679857(0xfd))/0x9)+-parseInt(_0x679857(0xfb))/0xa*(parseInt(_0x679857(0x10c))/0xb)+parseInt(_0x679857(0x10e))/0xc;if(_0x25abec===_0x595582)break;else _0x458a9b['push'](_0x458a9b['shift']());}catch(_0x49df09){_0x458a9b['push'](_0x458a9b['shift']());}}}(a31_0x63a9,0x58b46));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';function a31_0x63a9(){const _0x689fe6=['Locale','10467wCnxrx','defaultValue','has','2677405XkViru','filter','627JMNcXm','riskLevel','1400pODDiL','Risk\x20level','cliSettableTopLevel','10084PErCIB','env','4846492dyOYsq','6BNtoqZ','fromEntries','1285988MZvZfC','Override\x20user\x20domain','21252084IcCzPi','Default\x20output\x20format','806952HltOQm','enumValues','1NkOXvP','entries','Config\x20key.\x20Top-level:\x20','map','Target\x20environment','Override\x20runtime\x20domain','10gFeMBv'];a31_0x63a9=function(){return _0x689fe6;};return a31_0x63a9();}import{RUNTIME_ENV_VALUES}from'../constant/env.js';function a31_0x4dd1(_0x4eae57,_0x506e3c){_0x4eae57=_0x4eae57-0xf8;const _0x63a926=a31_0x63a9();let _0x4dd166=_0x63a926[_0x4eae57];return _0x4dd166;}import{OUTPUT_FORMAT_VALUES}from'../constant/output.js';export const CONFIG_FIELD_SCHEMAS={'env':{'description':a31_0x3f723f(0xf9),'topLevel':!![],'cliSettableTopLevel':!![],'enumValues':RUNTIME_ENV_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES[a31_0x3f723f(0x108)],'importable':!![]},'format':{'description':a31_0x3f723f(0x10f),'topLevel':!![],'cliSettableTopLevel':!![],'enumValues':OUTPUT_FORMAT_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES['format'],'importable':!![]},'pageSize':{'description':'Default\x20page\x20size','topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'apiDomain':{'description':'Override\x20API\x20domain','topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'userDomain':{'description':a31_0x3f723f(0x10d),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'runtimeDomain':{'description':a31_0x3f723f(0xfa),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'accessKey':{'description':'Access\x20key\x20(client-ak\x20auth)','topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'riskLevel':{'description':a31_0x3f723f(0x105),'topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES[a31_0x3f723f(0x103)],'importable':!![]},'locale':{'description':a31_0x3f723f(0xfc),'topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES['locale'],'importable':!![],'legacyCompatOnly':!![]}};export const TOP_LEVEL_CONFIG_KEYS=new Set(Object[a31_0x3f723f(0x113)](CONFIG_FIELD_SCHEMAS)[a31_0x3f723f(0x101)](([,_0x36906f])=>_0x36906f[a31_0x3f723f(0x106)])[a31_0x3f723f(0xf8)](([_0x27e5d2])=>_0x27e5d2));export const CONFIG_ENUM_VALUES=Object[a31_0x3f723f(0x10b)](Object[a31_0x3f723f(0x113)](CONFIG_FIELD_SCHEMAS)[a31_0x3f723f(0x101)](([,_0x238342])=>_0x238342[a31_0x3f723f(0x111)])['map'](([_0x1855fe,_0x2ebcc8])=>[_0x1855fe,[..._0x2ebcc8[a31_0x3f723f(0x111)]||[]]]));export const IMPORTABLE_RUNTIME_CONFIG_KEYS=Object[a31_0x3f723f(0x113)](CONFIG_FIELD_SCHEMAS)['filter'](([,_0x4c4bc7])=>_0x4c4bc7['importable'])['map'](([_0x2a6cde])=>_0x2a6cde);export function getConfigFieldSchema(_0x172477){return CONFIG_FIELD_SCHEMAS[_0x172477];}export function getConfigEnumValues(_0x1c6b74){return getConfigFieldSchema(_0x1c6b74)?.['enumValues'];}export function getConfigDefaultValue(_0x5f54d5){const _0x3e8a97=a31_0x3f723f;return getConfigFieldSchema(_0x5f54d5)?.[_0x3e8a97(0xfe)];}export function isTopLevelConfigKey(_0x5f5046){const _0x17fad8=a31_0x3f723f;return TOP_LEVEL_CONFIG_KEYS[_0x17fad8(0xff)](_0x5f5046);}export function isLegacyCompatConfigKey(_0x330c0f){return getConfigFieldSchema(_0x330c0f)?.['legacyCompatOnly']===!![];}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function formatConfigKeyList(_0xc6fbb1){return[..._0xc6fbb1]['join'](',\x20');}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){const _0x2cf32b=a31_0x3f723f;return _0x2cf32b(0x114)+getTopLevelConfigKeySummary()+';\x20local\x20alias:\x20apps.<alias>.appcode';}export function buildAppProfileListFields(_0xcdc600){return{'env':_0xcdc600,'hasAccessKey':![],'format':null,'pageSize':null,'riskLevel':null,'locale':null};}
1
+ function a35_0x4eb5(_0x1a6ba6,_0x400f50){_0x1a6ba6=_0x1a6ba6-0x176;const _0x38e7f6=a35_0x38e7();let _0x4eb56c=_0x38e7f6[_0x1a6ba6];return _0x4eb56c;}const a35_0xb5fe42=a35_0x4eb5;(function(_0x2fc98d,_0x1d5c39){const _0x50435d=a35_0x4eb5,_0x71bf75=_0x2fc98d();while(!![]){try{const _0x5cd83c=-parseInt(_0x50435d(0x17c))/0x1*(-parseInt(_0x50435d(0x178))/0x2)+-parseInt(_0x50435d(0x195))/0x3*(parseInt(_0x50435d(0x186))/0x4)+-parseInt(_0x50435d(0x18a))/0x5+parseInt(_0x50435d(0x191))/0x6*(-parseInt(_0x50435d(0x179))/0x7)+parseInt(_0x50435d(0x18e))/0x8*(-parseInt(_0x50435d(0x17d))/0x9)+-parseInt(_0x50435d(0x185))/0xa*(parseInt(_0x50435d(0x193))/0xb)+-parseInt(_0x50435d(0x176))/0xc*(-parseInt(_0x50435d(0x18f))/0xd);if(_0x5cd83c===_0x1d5c39)break;else _0x71bf75['push'](_0x71bf75['shift']());}catch(_0x302f9e){_0x71bf75['push'](_0x71bf75['shift']());}}}(a35_0x38e7,0xe36a6));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{RUNTIME_ENV_VALUES}from'../constant/env.js';import{OUTPUT_FORMAT_VALUES}from'../constant/output.js';export const CONFIG_FIELD_SCHEMAS={'env':{'description':a35_0xb5fe42(0x18c),'topLevel':!![],'cliSettableTopLevel':!![],'enumValues':RUNTIME_ENV_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES[a35_0xb5fe42(0x194)],'importable':!![]},'format':{'description':a35_0xb5fe42(0x197),'topLevel':!![],'cliSettableTopLevel':!![],'enumValues':OUTPUT_FORMAT_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES[a35_0xb5fe42(0x18b)],'importable':!![]},'pageSize':{'description':'Default\x20page\x20size','topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'apiDomain':{'description':a35_0xb5fe42(0x17e),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'userDomain':{'description':'Override\x20user\x20domain','topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'runtimeDomain':{'description':a35_0xb5fe42(0x190),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'accessKey':{'description':a35_0xb5fe42(0x189),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'riskLevel':{'description':a35_0xb5fe42(0x187),'topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES['riskLevel'],'importable':!![]},'locale':{'description':a35_0xb5fe42(0x192),'topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES['locale'],'importable':!![],'legacyCompatOnly':!![]}};export const TOP_LEVEL_CONFIG_KEYS=new Set(Object[a35_0xb5fe42(0x17a)](CONFIG_FIELD_SCHEMAS)[a35_0xb5fe42(0x18d)](([,_0x3bf438])=>_0x3bf438['cliSettableTopLevel'])[a35_0xb5fe42(0x180)](([_0x466b6e])=>_0x466b6e));function a35_0x38e7(){const _0x5d4257=['filter','34808FrxYNU','195oUiBEp','Override\x20runtime\x20domain','569382dPkFqi','Locale','1668491jHrPXp','env','3vuMgYR','join','Default\x20output\x20format','4146444zTpNws','has','359764kgHJFs','14dTaSil','entries',';\x20local\x20alias:\x20apps.<alias>.appcode','1awEwZc','2277JVIfAD','Override\x20API\x20domain','defaultValue','map','importable','legacyCompatOnly','Config\x20key.\x20Top-level:\x20','fromEntries','30whsNzA','4418416wuCUoQ','Risk\x20level','enumValues','Access\x20key\x20(client-ak\x20auth)','7905995MgIKxy','format','Target\x20environment'];a35_0x38e7=function(){return _0x5d4257;};return a35_0x38e7();}export const CONFIG_ENUM_VALUES=Object[a35_0xb5fe42(0x184)](Object[a35_0xb5fe42(0x17a)](CONFIG_FIELD_SCHEMAS)[a35_0xb5fe42(0x18d)](([,_0x989215])=>_0x989215[a35_0xb5fe42(0x188)])[a35_0xb5fe42(0x180)](([_0x791c3e,_0x1c0a84])=>[_0x791c3e,[..._0x1c0a84[a35_0xb5fe42(0x188)]||[]]]));export const IMPORTABLE_RUNTIME_CONFIG_KEYS=Object[a35_0xb5fe42(0x17a)](CONFIG_FIELD_SCHEMAS)[a35_0xb5fe42(0x18d)](([,_0x4f841d])=>_0x4f841d[a35_0xb5fe42(0x181)])['map'](([_0x56356b])=>_0x56356b);export function getConfigFieldSchema(_0xa40041){return CONFIG_FIELD_SCHEMAS[_0xa40041];}export function getConfigEnumValues(_0x3e35cc){return getConfigFieldSchema(_0x3e35cc)?.['enumValues'];}export function getConfigDefaultValue(_0x3b47eb){const _0x30a5a8=a35_0xb5fe42;return getConfigFieldSchema(_0x3b47eb)?.[_0x30a5a8(0x17f)];}export function isTopLevelConfigKey(_0x47989b){const _0xaa5566=a35_0xb5fe42;return TOP_LEVEL_CONFIG_KEYS[_0xaa5566(0x177)](_0x47989b);}export function isLegacyCompatConfigKey(_0x128104){const _0x347a75=a35_0xb5fe42;return getConfigFieldSchema(_0x128104)?.[_0x347a75(0x182)]===!![];}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function formatConfigKeyList(_0x5ad85e){const _0x16ba8f=a35_0xb5fe42;return[..._0x5ad85e][_0x16ba8f(0x196)](',\x20');}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){const _0x1258d3=a35_0xb5fe42;return _0x1258d3(0x183)+getTopLevelConfigKeySummary()+_0x1258d3(0x17b);}export function buildAppProfileListFields(_0xf3a98b){return{'env':_0xf3a98b,'hasAccessKey':![],'format':null,'pageSize':null,'riskLevel':null,'locale':null};}
@@ -1 +1 @@
1
- const a32_0x1df31f=a32_0x3787;(function(_0x487266,_0x233075){const _0x5b2149=a32_0x3787,_0x3737d8=_0x487266();while(!![]){try{const _0x523f5f=parseInt(_0x5b2149(0x76))/0x1*(-parseInt(_0x5b2149(0x7a))/0x2)+parseInt(_0x5b2149(0x78))/0x3+parseInt(_0x5b2149(0x71))/0x4*(parseInt(_0x5b2149(0x79))/0x5)+-parseInt(_0x5b2149(0x72))/0x6*(-parseInt(_0x5b2149(0x75))/0x7)+parseInt(_0x5b2149(0x73))/0x8*(parseInt(_0x5b2149(0x77))/0x9)+parseInt(_0x5b2149(0x70))/0xa+-parseInt(_0x5b2149(0x74))/0xb;if(_0x523f5f===_0x233075)break;else _0x3737d8['push'](_0x3737d8['shift']());}catch(_0x45ce23){_0x3737d8['push'](_0x3737d8['shift']());}}}(a32_0x5509,0xc7804));export const AUTH_MODE={'ClientAk':a32_0x1df31f(0x6f)};function a32_0x3787(_0x33fd9c,_0x1d4cbb){_0x33fd9c=_0x33fd9c-0x6f;const _0x5509c0=a32_0x5509();let _0x378782=_0x5509c0[_0x33fd9c];return _0x378782;}export function isAuthMode(_0x3db44e){const _0x457763=a32_0x1df31f;return _0x3db44e===AUTH_MODE[_0x457763(0x7b)];}function a32_0x5509(){const _0x47ebd5=['928359MjqRNR','3573990kYgkoL','58355SsysdA','10646JLUjEX','ClientAk','client-ak','1128670BzmXcR','72LwCVmN','8478OxXWvi','8etTEDY','9129285zJFElP','3997YbGFjC','146nbMnnN'];a32_0x5509=function(){return _0x47ebd5;};return a32_0x5509();}
1
+ (function(_0x5efb2d,_0x178fff){const _0x24480f=a36_0x3b41,_0x59a607=_0x5efb2d();while(!![]){try{const _0x11771b=parseInt(_0x24480f(0xde))/0x1+parseInt(_0x24480f(0xe4))/0x2+-parseInt(_0x24480f(0xe5))/0x3+parseInt(_0x24480f(0xe2))/0x4+parseInt(_0x24480f(0xdf))/0x5+-parseInt(_0x24480f(0xe0))/0x6+-parseInt(_0x24480f(0xe1))/0x7*(parseInt(_0x24480f(0xe3))/0x8);if(_0x11771b===_0x178fff)break;else _0x59a607['push'](_0x59a607['shift']());}catch(_0x3c901c){_0x59a607['push'](_0x59a607['shift']());}}}(a36_0x5995,0xdc9f9));export const AUTH_MODE={'ClientAk':'client-ak'};function a36_0x3b41(_0x386307,_0x5e3484){_0x386307=_0x386307-0xde;const _0x599593=a36_0x5995();let _0x3b41c0=_0x599593[_0x386307];return _0x3b41c0;}function a36_0x5995(){const _0x5963a0=['35DQRrsF','6843984AsPWsp','724624ZPzzla','1599982vYUHlH','4465278WUmvfp','ClientAk','534111OmNaNZ','4271565CqznLe','6326532auyszs'];a36_0x5995=function(){return _0x5963a0;};return a36_0x5995();}export function isAuthMode(_0x431ac7){const _0x5466fe=a36_0x3b41;return _0x431ac7===AUTH_MODE[_0x5466fe(0xe6)];}
@@ -1 +1 @@
1
- const a33_0x2bcc3a=a33_0x4c0d;(function(_0x5c5160,_0xa7d6aa){const _0x2ce9c8=a33_0x4c0d,_0x3efb79=_0x5c5160();while(!![]){try{const _0x4d3b97=parseInt(_0x2ce9c8(0xe0))/0x1+-parseInt(_0x2ce9c8(0xe9))/0x2+parseInt(_0x2ce9c8(0xd3))/0x3+-parseInt(_0x2ce9c8(0xea))/0x4+-parseInt(_0x2ce9c8(0xf9))/0x5*(parseInt(_0x2ce9c8(0xe2))/0x6)+parseInt(_0x2ce9c8(0xe5))/0x7+parseInt(_0x2ce9c8(0xd5))/0x8;if(_0x4d3b97===_0xa7d6aa)break;else _0x3efb79['push'](_0x3efb79['shift']());}catch(_0x5358f2){_0x3efb79['push'](_0x3efb79['shift']());}}}(a33_0x5bef,0x880c2));function a33_0x5bef(){const _0x7acc59=['clear','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20implies\x20--format\x20json\x20when\x20current\x20format\x20is\x20pretty)','type','Alias\x20for\x20--non-interactive','JSON\x20params\x20for\x20execute\x20commands','dryRun','Skip\x20confirmation\x20for\x20high-risk\x20writes','global','params','Use\x20global\x20config\x20scope','cliBinName','name','Output\x20format','82445Hbqlgi','boolean','Select\x20app\x20profile\x20by\x20name','app','string','fromEntries','3039306qSeJAJ','Clear\x20output','7761360TeVqdb','Preview\x20operation\x20without\x20executing','Record\x20ID','non-interactive','<expr>','Show\x20help','verbose','sqlcode','json\x20|\x20pretty\x20|\x20compress','help','<code>','723416GMVcNj','yes','282tPNnqY','format','dry-run','508340NEqTxn','env','cliDisplayName','Force\x20non-interactive\x20mode\x20(CI)','1744846SUGjbV','2298608VTLcyO','SQL\x20query\x20code'];a33_0x5bef=function(){return _0x7acc59;};return a33_0x5bef();}import{PRODUCT_CONFIG}from'../constant/product.js';function a33_0x4c0d(_0x207c46,_0x2cca01){_0x207c46=_0x207c46-0xd2;const _0x5bef44=a33_0x5bef();let _0x4c0de4=_0x5bef44[_0x207c46];return _0x4c0de4;}import{LOVRABET_NPM_PACKAGE_NAME}from'../constant/distribution.js';export const CLI_BIN_NAME=PRODUCT_CONFIG[a33_0x2bcc3a(0xf6)];export const CLI_DISPLAY_NAME=PRODUCT_CONFIG[a33_0x2bcc3a(0xe7)];export const NPM_PACKAGE_NAME=LOVRABET_NPM_PACKAGE_NAME;export const GLOBAL_FLAGS=[{'name':'appcode','meowKey':'appcode','type':a33_0x2bcc3a(0xfd),'description':'Override\x20appcode','hint':a33_0x2bcc3a(0xdf)},{'name':a33_0x2bcc3a(0xfc),'meowKey':a33_0x2bcc3a(0xfc),'type':a33_0x2bcc3a(0xfd),'description':a33_0x2bcc3a(0xfb),'hint':'<name>'},{'name':a33_0x2bcc3a(0xe6),'meowKey':'env','type':a33_0x2bcc3a(0xfd),'description':'Environment','hint':'production\x20|\x20development\x20|\x20daily'},{'name':a33_0x2bcc3a(0xe3),'meowKey':a33_0x2bcc3a(0xe3),'type':a33_0x2bcc3a(0xfd),'description':a33_0x2bcc3a(0xf8),'hint':a33_0x2bcc3a(0xdd)},{'name':'jq','meowKey':'jq','type':a33_0x2bcc3a(0xfd),'description':a33_0x2bcc3a(0xed),'hint':a33_0x2bcc3a(0xd9)},{'name':a33_0x2bcc3a(0xe4),'meowKey':a33_0x2bcc3a(0xf1),'type':a33_0x2bcc3a(0xfa),'description':a33_0x2bcc3a(0xd6)},{'name':'yes','meowKey':'yes','type':'boolean','description':a33_0x2bcc3a(0xf2)},{'name':a33_0x2bcc3a(0xd8),'meowKey':'nonInteractive','type':a33_0x2bcc3a(0xfa),'description':a33_0x2bcc3a(0xe8)},{'name':a33_0x2bcc3a(0xf3),'meowKey':a33_0x2bcc3a(0xf3),'type':'boolean','description':a33_0x2bcc3a(0xf5)},{'name':'ci','meowKey':'ci','type':a33_0x2bcc3a(0xfa),'description':a33_0x2bcc3a(0xef),'hidden':!![]},{'name':a33_0x2bcc3a(0xde),'meowKey':a33_0x2bcc3a(0xde),'type':'boolean','description':a33_0x2bcc3a(0xda)},{'name':'id','meowKey':'id','type':a33_0x2bcc3a(0xfd),'description':a33_0x2bcc3a(0xd7),'hidden':!![]},{'name':a33_0x2bcc3a(0xf7),'meowKey':'name','type':a33_0x2bcc3a(0xfd),'description':'Name\x20filter','hidden':!![]},{'name':'sqlcode','meowKey':a33_0x2bcc3a(0xdc),'type':a33_0x2bcc3a(0xfd),'description':a33_0x2bcc3a(0xeb),'hidden':!![]},{'name':a33_0x2bcc3a(0xf4),'meowKey':'params','type':a33_0x2bcc3a(0xfd),'description':a33_0x2bcc3a(0xf0),'hidden':!![]},{'name':'verbose','meowKey':a33_0x2bcc3a(0xdb),'type':a33_0x2bcc3a(0xfa),'description':'Verbose\x20output','hidden':!![]},{'name':a33_0x2bcc3a(0xec),'meowKey':a33_0x2bcc3a(0xec),'type':'boolean','description':a33_0x2bcc3a(0xd4),'hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set(['appcode',a33_0x2bcc3a(0xfc),'env',a33_0x2bcc3a(0xe3),'jq',a33_0x2bcc3a(0xe4),a33_0x2bcc3a(0xe1),a33_0x2bcc3a(0xd8),'ci']);export function buildMeowFlags(){const _0x53f73d=a33_0x2bcc3a;return Object[_0x53f73d(0xd2)](GLOBAL_FLAGS['map'](_0x5084e3=>[_0x5084e3['meowKey'],{'type':_0x5084e3[_0x53f73d(0xee)]}]));}
1
+ const a37_0x49d552=a37_0x473c;function a37_0x473c(_0xb8802f,_0x4f1f97){_0xb8802f=_0xb8802f-0x1cb;const _0x2664cf=a37_0x2664();let _0x473c42=_0x2664cf[_0xb8802f];return _0x473c42;}function a37_0x2664(){const _0x363cac=['1yrDjoA','2378034gpklkP','101316RoiFFU','Record\x20ID','app','json\x20|\x20pretty\x20|\x20compress','appcode','Clear\x20output','sqlcode','production\x20|\x20development\x20|\x20daily','params','1736355EQETwU','format','Show\x20help','3486461PZAwaP','fromEntries','329546QNIzJh','string','env','Verbose\x20output','<code>','boolean','Output\x20format','Use\x20global\x20config\x20scope','161ZWoaPs','yes','nonInteractive','4551840tjyxhb','verbose','Force\x20non-interactive\x20mode\x20(CI)','dry-run','name','non-interactive','<name>','Name\x20filter','140NWAUXy','clear','<expr>','meowKey','Environment','dryRun','4168RIpRlW','JSON\x20params\x20for\x20execute\x20commands','global','map','help','10WvzOUH','Select\x20app\x20profile\x20by\x20name','8GhyjXU'];a37_0x2664=function(){return _0x363cac;};return a37_0x2664();}(function(_0x47e33c,_0x31e83c){const _0x489eae=a37_0x473c,_0x412948=_0x47e33c();while(!![]){try{const _0x2ee104=-parseInt(_0x489eae(0x1f5))/0x1*(parseInt(_0x489eae(0x1d4))/0x2)+parseInt(_0x489eae(0x1cf))/0x3+-parseInt(_0x489eae(0x1ed))/0x4*(-parseInt(_0x489eae(0x1e7))/0x5)+-parseInt(_0x489eae(0x1f7))/0x6*(parseInt(_0x489eae(0x1dc))/0x7)+-parseInt(_0x489eae(0x1f4))/0x8*(-parseInt(_0x489eae(0x1f6))/0x9)+parseInt(_0x489eae(0x1f2))/0xa*(-parseInt(_0x489eae(0x1d2))/0xb)+parseInt(_0x489eae(0x1df))/0xc;if(_0x2ee104===_0x31e83c)break;else _0x412948['push'](_0x412948['shift']());}catch(_0x2dff9b){_0x412948['push'](_0x412948['shift']());}}}(a37_0x2664,0x5d1dd));import{PRODUCT_CONFIG}from'../constant/product.js';import{LOVRABET_NPM_PACKAGE_NAME}from'../constant/distribution.js';export const CLI_BIN_NAME=PRODUCT_CONFIG['cliBinName'];export const CLI_DISPLAY_NAME=PRODUCT_CONFIG['cliDisplayName'];export const NPM_PACKAGE_NAME=LOVRABET_NPM_PACKAGE_NAME;export const GLOBAL_FLAGS=[{'name':a37_0x49d552(0x1fb),'meowKey':a37_0x49d552(0x1fb),'type':a37_0x49d552(0x1d5),'description':'Override\x20appcode','hint':a37_0x49d552(0x1d8)},{'name':a37_0x49d552(0x1f9),'meowKey':a37_0x49d552(0x1f9),'type':a37_0x49d552(0x1d5),'description':a37_0x49d552(0x1f3),'hint':a37_0x49d552(0x1e5)},{'name':'env','meowKey':a37_0x49d552(0x1d6),'type':a37_0x49d552(0x1d5),'description':a37_0x49d552(0x1eb),'hint':a37_0x49d552(0x1cd)},{'name':'format','meowKey':a37_0x49d552(0x1d0),'type':a37_0x49d552(0x1d5),'description':a37_0x49d552(0x1da),'hint':a37_0x49d552(0x1fa)},{'name':'jq','meowKey':'jq','type':a37_0x49d552(0x1d5),'description':'Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20implies\x20--format\x20json\x20when\x20current\x20format\x20is\x20pretty)','hint':a37_0x49d552(0x1e9)},{'name':a37_0x49d552(0x1e2),'meowKey':a37_0x49d552(0x1ec),'type':a37_0x49d552(0x1d9),'description':'Preview\x20operation\x20without\x20executing'},{'name':a37_0x49d552(0x1dd),'meowKey':a37_0x49d552(0x1dd),'type':a37_0x49d552(0x1d9),'description':'Skip\x20confirmation\x20for\x20high-risk\x20writes'},{'name':a37_0x49d552(0x1e4),'meowKey':a37_0x49d552(0x1de),'type':'boolean','description':a37_0x49d552(0x1e1)},{'name':a37_0x49d552(0x1ef),'meowKey':a37_0x49d552(0x1ef),'type':a37_0x49d552(0x1d9),'description':a37_0x49d552(0x1db)},{'name':'ci','meowKey':'ci','type':a37_0x49d552(0x1d9),'description':'Alias\x20for\x20--non-interactive','hidden':!![]},{'name':a37_0x49d552(0x1f1),'meowKey':'help','type':'boolean','description':a37_0x49d552(0x1d1)},{'name':'id','meowKey':'id','type':a37_0x49d552(0x1d5),'description':a37_0x49d552(0x1f8),'hidden':!![]},{'name':a37_0x49d552(0x1e3),'meowKey':'name','type':a37_0x49d552(0x1d5),'description':a37_0x49d552(0x1e6),'hidden':!![]},{'name':a37_0x49d552(0x1cc),'meowKey':a37_0x49d552(0x1cc),'type':a37_0x49d552(0x1d5),'description':'SQL\x20query\x20code','hidden':!![]},{'name':'params','meowKey':a37_0x49d552(0x1ce),'type':a37_0x49d552(0x1d5),'description':a37_0x49d552(0x1ee),'hidden':!![]},{'name':a37_0x49d552(0x1e0),'meowKey':'verbose','type':a37_0x49d552(0x1d9),'description':a37_0x49d552(0x1d7),'hidden':!![]},{'name':a37_0x49d552(0x1e8),'meowKey':a37_0x49d552(0x1e8),'type':a37_0x49d552(0x1d9),'description':a37_0x49d552(0x1cb),'hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set([a37_0x49d552(0x1fb),a37_0x49d552(0x1f9),a37_0x49d552(0x1d6),'format','jq',a37_0x49d552(0x1e2),a37_0x49d552(0x1dd),a37_0x49d552(0x1e4),'ci']);export function buildMeowFlags(){const _0x3cbe27=a37_0x49d552;return Object[_0x3cbe27(0x1d3)](GLOBAL_FLAGS[_0x3cbe27(0x1f0)](_0x1d5f7b=>[_0x1d5f7b[_0x3cbe27(0x1ea)],{'type':_0x1d5f7b['type']}]));}
@@ -1 +1 @@
1
- function a34_0x5ab5(){const _0xa4c7c1=['130792WyexJH','154soaQVf','2iLFwRo','write','610okTaUL','10lmgfqg','production','1160473DiADka','593886lDcsAg','6094143cwQOzz','1062645cirJqK','compress','162118jzHfMk','en-US','4479868iXwvms','main'];a34_0x5ab5=function(){return _0xa4c7c1;};return a34_0x5ab5();}const a34_0x3d821e=a34_0x49db;(function(_0x5db47a,_0xad1442){const _0x4f351e=a34_0x49db,_0x38af7b=_0x5db47a();while(!![]){try{const _0x22cc03=parseInt(_0x4f351e(0xb5))/0x1*(-parseInt(_0x4f351e(0xb0))/0x2)+-parseInt(_0x4f351e(0xb8))/0x3+parseInt(_0x4f351e(0xac))/0x4+-parseInt(_0x4f351e(0xb3))/0x5*(parseInt(_0x4f351e(0xb6))/0x6)+-parseInt(_0x4f351e(0xaf))/0x7*(parseInt(_0x4f351e(0xae))/0x8)+parseInt(_0x4f351e(0xb7))/0x9+parseInt(_0x4f351e(0xb2))/0xa*(parseInt(_0x4f351e(0xaa))/0xb);if(_0x22cc03===_0xad1442)break;else _0x38af7b['push'](_0x38af7b['shift']());}catch(_0x9b2590){_0x38af7b['push'](_0x38af7b['shift']());}}}(a34_0x5ab5,0x984a8));function a34_0x49db(_0x315191,_0x25e9de){_0x315191=_0x315191-0xa9;const _0x5ab5b3=a34_0x5ab5();let _0x49dbc3=_0x5ab5b3[_0x315191];return _0x49dbc3;}export const DEFAULT_APP_PROFILE_NAME=a34_0x3d821e(0xad);export const DEFAULT_CONFIG_VALUES={'env':a34_0x3d821e(0xb4),'format':a34_0x3d821e(0xa9),'locale':a34_0x3d821e(0xab),'riskLevel':a34_0x3d821e(0xb1)};export const DEFAULT_COMMAND_OUTPUT_FORMAT='compress';
1
+ const a38_0x550f7d=a38_0x5b86;(function(_0x2622c8,_0x226d11){const _0x3df8f6=a38_0x5b86,_0x3dcbc5=_0x2622c8();while(!![]){try{const _0x4c9fd4=-parseInt(_0x3df8f6(0xc4))/0x1*(parseInt(_0x3df8f6(0xcf))/0x2)+-parseInt(_0x3df8f6(0xcc))/0x3+parseInt(_0x3df8f6(0xd3))/0x4*(-parseInt(_0x3df8f6(0xc8))/0x5)+-parseInt(_0x3df8f6(0xd2))/0x6*(-parseInt(_0x3df8f6(0xcb))/0x7)+parseInt(_0x3df8f6(0xc9))/0x8+parseInt(_0x3df8f6(0xca))/0x9*(-parseInt(_0x3df8f6(0xd0))/0xa)+parseInt(_0x3df8f6(0xc7))/0xb*(parseInt(_0x3df8f6(0xcd))/0xc);if(_0x4c9fd4===_0x226d11)break;else _0x3dcbc5['push'](_0x3dcbc5['shift']());}catch(_0x59cb1e){_0x3dcbc5['push'](_0x3dcbc5['shift']());}}}(a38_0x41c8,0x381f5));function a38_0x41c8(){const _0x3fdbb0=['243624CblxQb','write','766gullOH','8210uyzkSz','en-US','31902AXJvIV','20mJbSzd','866ifSnZu','main','production','308RFxnlI','412655QutGFH','2180656cLvOyF','693CDpYuE','497uJiycX','543354svAiuI'];a38_0x41c8=function(){return _0x3fdbb0;};return a38_0x41c8();}export const DEFAULT_APP_PROFILE_NAME=a38_0x550f7d(0xc5);function a38_0x5b86(_0x399aad,_0x15cdd3){_0x399aad=_0x399aad-0xc4;const _0x41c8f7=a38_0x41c8();let _0x5b8620=_0x41c8f7[_0x399aad];return _0x5b8620;}export const DEFAULT_CONFIG_VALUES={'env':a38_0x550f7d(0xc6),'format':'compress','locale':a38_0x550f7d(0xd1),'riskLevel':a38_0x550f7d(0xce)};export const DEFAULT_COMMAND_OUTPUT_FORMAT='compress';
@@ -1 +1 @@
1
- const a35_0x342607=a35_0x39ad;function a35_0x3b21(){const _0x43d6c0=['6234534dgJRGS','1456456KaZpnZ','5744480UKgSIX','3DYnUFR','1598680LEPUMq','773451qUXFGW','6112656kguSqq','skillSource','32SdMhbz','npmRegistryBaseUrl','1727747QnVuvt','10NdHNey'];a35_0x3b21=function(){return _0x43d6c0;};return a35_0x3b21();}(function(_0x284330,_0x89f0e6){const _0x5e4225=a35_0x39ad,_0x42cb61=_0x284330();while(!![]){try{const _0x36f001=parseInt(_0x5e4225(0x1d2))/0x1+-parseInt(_0x5e4225(0x1d1))/0x2+parseInt(_0x5e4225(0x1d0))/0x3*(parseInt(_0x5e4225(0x1ce))/0x4)+parseInt(_0x5e4225(0x1cf))/0x5+-parseInt(_0x5e4225(0x1d3))/0x6+-parseInt(_0x5e4225(0x1cb))/0x7*(-parseInt(_0x5e4225(0x1c9))/0x8)+-parseInt(_0x5e4225(0x1cd))/0x9*(parseInt(_0x5e4225(0x1cc))/0xa);if(_0x36f001===_0x89f0e6)break;else _0x42cb61['push'](_0x42cb61['shift']());}catch(_0x3493e1){_0x42cb61['push'](_0x42cb61['shift']());}}}(a35_0x3b21,0xba417));import{PRODUCT_CONFIG}from'../constant/product.js';export const LOVRABET_NPM_PACKAGE_NAME=PRODUCT_CONFIG['npmPackageName'];function a35_0x39ad(_0x5c3277,_0xbec266){_0x5c3277=_0x5c3277-0x1c8;const _0x3b2174=a35_0x3b21();let _0x39ad0b=_0x3b2174[_0x5c3277];return _0x39ad0b;}export const LOVRABET_SKILL_SOURCE=PRODUCT_CONFIG[a35_0x342607(0x1c8)];export const NPM_REGISTRY_BASE_URL=PRODUCT_CONFIG[a35_0x342607(0x1ca)];
1
+ const a39_0x2d60ef=a39_0x40a4;(function(_0x36803c,_0xa66562){const _0x3d4d87=a39_0x40a4,_0x4c235b=_0x36803c();while(!![]){try{const _0x138dd9=parseInt(_0x3d4d87(0xdd))/0x1+parseInt(_0x3d4d87(0xe8))/0x2*(-parseInt(_0x3d4d87(0xdf))/0x3)+-parseInt(_0x3d4d87(0xe1))/0x4*(-parseInt(_0x3d4d87(0xdc))/0x5)+-parseInt(_0x3d4d87(0xe5))/0x6*(-parseInt(_0x3d4d87(0xe0))/0x7)+-parseInt(_0x3d4d87(0xe2))/0x8+parseInt(_0x3d4d87(0xe7))/0x9*(parseInt(_0x3d4d87(0xe6))/0xa)+parseInt(_0x3d4d87(0xe4))/0xb;if(_0x138dd9===_0xa66562)break;else _0x4c235b['push'](_0x4c235b['shift']());}catch(_0x5e6b50){_0x4c235b['push'](_0x4c235b['shift']());}}}(a39_0x389d,0xab80a));function a39_0x389d(){const _0xa72f67=['6mIGWeD','84110ggsEcL','981NlhbWk','11114KEOUOY','132195eZZZUh','1028401RVhIUD','npmRegistryBaseUrl','213MPSSAq','1161818HmgkUB','12ICzRGg','9509992HjdOhr','npmPackageName','1048069lJTWft'];a39_0x389d=function(){return _0xa72f67;};return a39_0x389d();}import{PRODUCT_CONFIG}from'../constant/product.js';function a39_0x40a4(_0x23a923,_0x5444b1){_0x23a923=_0x23a923-0xdc;const _0x389df6=a39_0x389d();let _0x40a472=_0x389df6[_0x23a923];return _0x40a472;}export const LOVRABET_NPM_PACKAGE_NAME=PRODUCT_CONFIG[a39_0x2d60ef(0xe3)];export const LOVRABET_SKILL_SOURCE=PRODUCT_CONFIG['skillSource'];export const NPM_REGISTRY_BASE_URL=PRODUCT_CONFIG[a39_0x2d60ef(0xde)];
@@ -1 +1 @@
1
- const a36_0xd73fe5=a36_0x59bc;(function(_0x34e921,_0xb054d9){const _0x332326=a36_0x59bc,_0xd111da=_0x34e921();while(!![]){try{const _0x1766e6=-parseInt(_0x332326(0xc9))/0x1*(-parseInt(_0x332326(0xca))/0x2)+-parseInt(_0x332326(0xc0))/0x3+parseInt(_0x332326(0xbb))/0x4+-parseInt(_0x332326(0xbf))/0x5*(-parseInt(_0x332326(0xc1))/0x6)+parseInt(_0x332326(0xc2))/0x7+-parseInt(_0x332326(0xba))/0x8*(-parseInt(_0x332326(0xc6))/0x9)+-parseInt(_0x332326(0xc5))/0xa;if(_0x1766e6===_0xb054d9)break;else _0xd111da['push'](_0xd111da['shift']());}catch(_0x3f82b2){_0xd111da['push'](_0xd111da['shift']());}}}(a36_0x288a,0xee986));import{getEnv,isProduction}from'../constant/env.js';function a36_0x59bc(_0x1ce249,_0x47c8ec){_0x1ce249=_0x1ce249-0xb9;const _0x288a20=a36_0x288a();let _0x59bc83=_0x288a20[_0x1ce249];return _0x59bc83;}import{PRODUCT_CONFIG}from'../constant/product.js';function a36_0x288a(){const _0x1c42fd=['45981150CcLusC','3960IWrCvH','domains','runtimeDomain','2zcBVHZ','1905478KVcDnD','user','26824MtqEpX','821436dUiYWr','nonProduction','api','production','5ZHeXwB','3376224oAUeHa','7859682VMNFTX','12632935KtDSNZ','userDomain','runtime'];a36_0x288a=function(){return _0x1c42fd;};return a36_0x288a();}let customApiDomain,customUserDomain,customRuntimeDomain;export function initDomains(_0x5141fc){const _0xc13259=a36_0x59bc;customApiDomain=_0x5141fc?.['apiDomain'],customUserDomain=_0x5141fc?.[_0xc13259(0xc3)],customRuntimeDomain=_0x5141fc?.[_0xc13259(0xc8)];}export const getUserDomain=()=>customUserDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a36_0xd73fe5(0xc7)][a36_0xd73fe5(0xbe)][a36_0xd73fe5(0xb9)]:PRODUCT_CONFIG[a36_0xd73fe5(0xc7)]['nonProduction'][a36_0xd73fe5(0xb9)]);export const getApiDomain=()=>customApiDomain||(isProduction(getEnv())?PRODUCT_CONFIG['domains'][a36_0xd73fe5(0xbe)][a36_0xd73fe5(0xbd)]:PRODUCT_CONFIG[a36_0xd73fe5(0xc7)][a36_0xd73fe5(0xbc)][a36_0xd73fe5(0xbd)]);export const getRuntimeDomain=()=>customRuntimeDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a36_0xd73fe5(0xc7)][a36_0xd73fe5(0xbe)][a36_0xd73fe5(0xc4)]:PRODUCT_CONFIG[a36_0xd73fe5(0xc7)][a36_0xd73fe5(0xbc)]['runtime']);
1
+ const a40_0x5e4972=a40_0x5785;(function(_0x2a1e0a,_0x37bbe8){const _0x2e33da=a40_0x5785,_0x34546a=_0x2a1e0a();while(!![]){try{const _0x52fde7=-parseInt(_0x2e33da(0x149))/0x1*(-parseInt(_0x2e33da(0x148))/0x2)+-parseInt(_0x2e33da(0x14f))/0x3+-parseInt(_0x2e33da(0x151))/0x4+parseInt(_0x2e33da(0x14d))/0x5+-parseInt(_0x2e33da(0x144))/0x6*(parseInt(_0x2e33da(0x152))/0x7)+parseInt(_0x2e33da(0x150))/0x8+parseInt(_0x2e33da(0x154))/0x9*(parseInt(_0x2e33da(0x153))/0xa);if(_0x52fde7===_0x37bbe8)break;else _0x34546a['push'](_0x34546a['shift']());}catch(_0x3e4f6e){_0x34546a['push'](_0x34546a['shift']());}}}(a40_0x1a17,0x67a66));import{getEnv,isProduction}from'../constant/env.js';function a40_0x1a17(){const _0x40bff7=['11769970BZWCqn','9hXDDPc','runtime','runtimeDomain','6RRIEHA','nonProduction','user','api','10OKIrRO','61633oWDLoq','production','apiDomain','userDomain','1731545xiswah','domains','497385eRqRpE','1391944ceKPOx','2868776oTqYHg','4885475mPaPbP'];a40_0x1a17=function(){return _0x40bff7;};return a40_0x1a17();}import{PRODUCT_CONFIG}from'../constant/product.js';let customApiDomain,customUserDomain,customRuntimeDomain;export function initDomains(_0x120114){const _0x20890=a40_0x5785;customApiDomain=_0x120114?.[_0x20890(0x14b)],customUserDomain=_0x120114?.[_0x20890(0x14c)],customRuntimeDomain=_0x120114?.[_0x20890(0x143)];}export const getUserDomain=()=>customUserDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a40_0x5e4972(0x14e)][a40_0x5e4972(0x14a)][a40_0x5e4972(0x146)]:PRODUCT_CONFIG[a40_0x5e4972(0x14e)]['nonProduction']['user']);export const getApiDomain=()=>customApiDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a40_0x5e4972(0x14e)]['production'][a40_0x5e4972(0x147)]:PRODUCT_CONFIG['domains'][a40_0x5e4972(0x145)][a40_0x5e4972(0x147)]);function a40_0x5785(_0x2782f6,_0x1c3472){_0x2782f6=_0x2782f6-0x142;const _0x1a17ea=a40_0x1a17();let _0x57857e=_0x1a17ea[_0x2782f6];return _0x57857e;}export const getRuntimeDomain=()=>customRuntimeDomain||(isProduction(getEnv())?PRODUCT_CONFIG['domains'][a40_0x5e4972(0x14a)][a40_0x5e4972(0x142)]:PRODUCT_CONFIG[a40_0x5e4972(0x14e)][a40_0x5e4972(0x145)][a40_0x5e4972(0x142)]);
@@ -1 +1 @@
1
- function a37_0x30dc(_0x19e382,_0x3965a4){_0x19e382=_0x19e382-0x13e;const _0x3c12a3=a37_0x3c12();let _0x30dc46=_0x3c12a3[_0x19e382];return _0x30dc46;}const a37_0x25524e=a37_0x30dc;(function(_0x3e968a,_0x380b83){const _0x3d00df=a37_0x30dc,_0x4c9ecd=_0x3e968a();while(!![]){try{const _0x59ba48=-parseInt(_0x3d00df(0x145))/0x1+parseInt(_0x3d00df(0x147))/0x2+parseInt(_0x3d00df(0x143))/0x3*(-parseInt(_0x3d00df(0x142))/0x4)+parseInt(_0x3d00df(0x13e))/0x5+-parseInt(_0x3d00df(0x146))/0x6*(-parseInt(_0x3d00df(0x144))/0x7)+parseInt(_0x3d00df(0x140))/0x8+parseInt(_0x3d00df(0x13f))/0x9*(parseInt(_0x3d00df(0x141))/0xa);if(_0x59ba48===_0x380b83)break;else _0x4c9ecd['push'](_0x4c9ecd['shift']());}catch(_0xd3ff8c){_0x4c9ecd['push'](_0x4c9ecd['shift']());}}}(a37_0x3c12,0x6d208));import{productEnv}from'../constant/product.js';export const RUNTIME_ENV_VALUES=[a37_0x25524e(0x14b),a37_0x25524e(0x149),'daily'];function a37_0x3c12(){const _0x256687=['dev','development','ENV','production','1508435fRVAsT','288MXxlzG','2961408UsvknC','181060pVashD','2748476EmALfn','3gcVyON','77Cciveu','294991tImPGM','96828MUqPXO','642ZOmjzR'];a37_0x3c12=function(){return _0x256687;};return a37_0x3c12();}export function normalizeEnv(_0x554a5f){const _0x11afee=a37_0x25524e;return _0x554a5f==='online'?_0x11afee(0x14b):_0x554a5f;}export function isProduction(_0x56305f){const _0x2fa0e4=a37_0x25524e;return normalizeEnv(_0x56305f)===_0x2fa0e4(0x14b);}export function isDaily(_0x249cbb){return normalizeEnv(_0x249cbb)==='daily';}export function isDev(_0x2446af){const _0xcfb420=a37_0x25524e,_0x395f05=normalizeEnv(_0x2446af);return _0x395f05===_0xcfb420(0x149)||_0x395f05===_0xcfb420(0x148);}let env=normalizeEnv(productEnv(a37_0x25524e(0x14a))||a37_0x25524e(0x14b));export function getEnv(){return env;}export function initEnv(_0x1970d1){env=normalizeEnv(_0x1970d1);}
1
+ const a41_0x389593=a41_0x3458;function a41_0x2d5d(){const _0x376380=['7rsBIcm','592JFRlQk','1930794eibzUO','45wuPWqs','171zBDpkP','online','production','ENV','development','9815dqcClL','24255Odkaqn','4306vdFbWS','10CHeXyP','dev','118430LEHpGj','4776871AuGnfo','372xFfSmY','7972oiIokd','daily'];a41_0x2d5d=function(){return _0x376380;};return a41_0x2d5d();}(function(_0x591928,_0x222378){const _0x599853=a41_0x3458,_0x415bf4=_0x591928();while(!![]){try{const _0x5d9919=-parseInt(_0x599853(0x153))/0x1+-parseInt(_0x599853(0x150))/0x2*(parseInt(_0x599853(0x15c))/0x3)+parseInt(_0x599853(0x156))/0x4*(-parseInt(_0x599853(0x15b))/0x5)+parseInt(_0x599853(0x15a))/0x6*(parseInt(_0x599853(0x158))/0x7)+-parseInt(_0x599853(0x159))/0x8*(parseInt(_0x599853(0x162))/0x9)+-parseInt(_0x599853(0x151))/0xa*(-parseInt(_0x599853(0x154))/0xb)+parseInt(_0x599853(0x155))/0xc*(parseInt(_0x599853(0x161))/0xd);if(_0x5d9919===_0x222378)break;else _0x415bf4['push'](_0x415bf4['shift']());}catch(_0x31ff7d){_0x415bf4['push'](_0x415bf4['shift']());}}}(a41_0x2d5d,0x4e5b3));import{productEnv}from'../constant/product.js';export const RUNTIME_ENV_VALUES=[a41_0x389593(0x15e),'development',a41_0x389593(0x157)];export function normalizeEnv(_0x3d5686){const _0x408642=a41_0x389593;return _0x3d5686===_0x408642(0x15d)?'production':_0x3d5686;}export function isProduction(_0x46c437){const _0x49917e=a41_0x389593;return normalizeEnv(_0x46c437)===_0x49917e(0x15e);}export function isDaily(_0x2499b5){return normalizeEnv(_0x2499b5)==='daily';}export function isDev(_0x1deccf){const _0x1ac73b=a41_0x389593,_0x5b2bc6=normalizeEnv(_0x1deccf);return _0x5b2bc6===_0x1ac73b(0x160)||_0x5b2bc6===_0x1ac73b(0x152);}function a41_0x3458(_0x56d617,_0x2705ba){_0x56d617=_0x56d617-0x150;const _0x2d5d59=a41_0x2d5d();let _0x345816=_0x2d5d59[_0x56d617];return _0x345816;}let env=normalizeEnv(productEnv(a41_0x389593(0x15f))||'production');export function getEnv(){return env;}export function initEnv(_0x1eaa1a){env=normalizeEnv(_0x1eaa1a);}
@@ -1 +1 @@
1
- function a38_0x51e4(){const _0x26e65e=['370069ZQnhvh','10421336BSoYVX','compress','2925924fgkhld','json','630tcKyHu','557382WmmnUW','1822970TGjkgJ','4770esSZGh','1187112bKFHZz','pretty'];a38_0x51e4=function(){return _0x26e65e;};return a38_0x51e4();}function a38_0x4b10(_0x19e8f3,_0x475edd){_0x19e8f3=_0x19e8f3-0x96;const _0x51e468=a38_0x51e4();let _0x4b1004=_0x51e468[_0x19e8f3];return _0x4b1004;}const a38_0x2f0b2a=a38_0x4b10;(function(_0x512a6c,_0x25e205){const _0x30ec8d=a38_0x4b10,_0x26ad83=_0x512a6c();while(!![]){try{const _0x58ba6f=-parseInt(_0x30ec8d(0x9c))/0x1+parseInt(_0x30ec8d(0x99))/0x2*(parseInt(_0x30ec8d(0x96))/0x3)+-parseInt(_0x30ec8d(0x9a))/0x4+-parseInt(_0x30ec8d(0x98))/0x5+-parseInt(_0x30ec8d(0x9f))/0x6+parseInt(_0x30ec8d(0x97))/0x7+parseInt(_0x30ec8d(0x9d))/0x8;if(_0x58ba6f===_0x25e205)break;else _0x26ad83['push'](_0x26ad83['shift']());}catch(_0x4f11de){_0x26ad83['push'](_0x26ad83['shift']());}}}(a38_0x51e4,0x58e10));export const OUTPUT_FORMAT_VALUES=[a38_0x2f0b2a(0xa0),a38_0x2f0b2a(0x9b),a38_0x2f0b2a(0x9e)];
1
+ function a42_0x2693(_0x15256c,_0xec8b4d){_0x15256c=_0x15256c-0x11a;const _0x6beb76=a42_0x6beb();let _0x2693f5=_0x6beb76[_0x15256c];return _0x2693f5;}const a42_0x278ceb=a42_0x2693;(function(_0x2c58cb,_0xb2d9df){const _0x5ead73=a42_0x2693,_0x154461=_0x2c58cb();while(!![]){try{const _0x59f137=-parseInt(_0x5ead73(0x123))/0x1*(-parseInt(_0x5ead73(0x124))/0x2)+-parseInt(_0x5ead73(0x122))/0x3+parseInt(_0x5ead73(0x11e))/0x4+parseInt(_0x5ead73(0x120))/0x5+parseInt(_0x5ead73(0x11f))/0x6+parseInt(_0x5ead73(0x11b))/0x7*(-parseInt(_0x5ead73(0x125))/0x8)+parseInt(_0x5ead73(0x121))/0x9*(-parseInt(_0x5ead73(0x11a))/0xa);if(_0x59f137===_0xb2d9df)break;else _0x154461['push'](_0x154461['shift']());}catch(_0x88afc8){_0x154461['push'](_0x154461['shift']());}}}(a42_0x6beb,0x71db2));export const OUTPUT_FORMAT_VALUES=[a42_0x278ceb(0x11c),a42_0x278ceb(0x126),a42_0x278ceb(0x11d)];function a42_0x6beb(){const _0x4b749e=['compress','2439452pnPauR','5007978cRZUIq','3212260QryLLK','141966mldXHS','954792xHbmAO','967bghdqP','1006AXWeEJ','6990952ebNtTj','pretty','580NtXHKB','7vficPh','json'];a42_0x6beb=function(){return _0x4b749e;};return a42_0x6beb();}
@@ -1 +1 @@
1
- const a39_0x27cb32=a39_0x2ba1;(function(_0x7eebd3,_0x39b2b8){const _0x4c5617=a39_0x2ba1,_0x1fddeb=_0x7eebd3();while(!![]){try{const _0x4e37fe=-parseInt(_0x4c5617(0x171))/0x1*(parseInt(_0x4c5617(0x161))/0x2)+-parseInt(_0x4c5617(0x162))/0x3*(parseInt(_0x4c5617(0x15a))/0x4)+parseInt(_0x4c5617(0x16b))/0x5+-parseInt(_0x4c5617(0x168))/0x6*(parseInt(_0x4c5617(0x15e))/0x7)+parseInt(_0x4c5617(0x159))/0x8+-parseInt(_0x4c5617(0x16f))/0x9*(-parseInt(_0x4c5617(0x163))/0xa)+parseInt(_0x4c5617(0x15d))/0xb;if(_0x4e37fe===_0x39b2b8)break;else _0x1fddeb['push'](_0x1fddeb['shift']());}catch(_0x1a13d5){_0x1fddeb['push'](_0x1fddeb['shift']());}}}(a39_0x25e5,0x1cb00));function a39_0x2ba1(_0x2866fc,_0x3df804){_0x2866fc=_0x2866fc-0x156;const _0x25e53e=a39_0x25e5();let _0x2ba11f=_0x25e53e[_0x2866fc];return _0x2ba11f;}export const PRODUCT_CONFIG={'cliBinName':a39_0x27cb32(0x169),'cliDisplayName':a39_0x27cb32(0x164),'npmPackageName':a39_0x27cb32(0x156),'skillSource':a39_0x27cb32(0x158),'npmRegistryBaseUrl':a39_0x27cb32(0x16d),'envPrefix':a39_0x27cb32(0x15b),'legacyEnvPrefixes':[a39_0x27cb32(0x166)],'configFileNames':[a39_0x27cb32(0x160),a39_0x27cb32(0x16c)],'newConfigFileName':a39_0x27cb32(0x160),'homeDirName':a39_0x27cb32(0x15c),'logFileName':a39_0x27cb32(0x16e),'invokeSource':'cli:lovrabet-runtime','userCenterDisplayName':a39_0x27cb32(0x15f),'skipNpxSkillsEnvSuffix':'SKIP_NPX_SKILLS','domains':{'production':{'user':a39_0x27cb32(0x167),'api':a39_0x27cb32(0x16a),'runtime':'https://runtime.lovrabet.com'},'nonProduction':{'user':'https://user-daily.lovrabet.com','api':'https://daily-api.lovrabet.com','runtime':a39_0x27cb32(0x165)}},'accessKeyCreatePath':'/user/ak'};export function productEnvName(_0x2729c4){return PRODUCT_CONFIG['envPrefix']+'_'+_0x2729c4;}function a39_0x25e5(){const _0x2b08e5=['143991GzNyzE','legacyEnvPrefixes','6197IgNQnJ','@lovrabet/lovrabet-cli','map','lovrabet/lovrabet-cli','174704zPjNXk','19588ruuOyY','LOVRABET','.lovrabet','3431406vOuKCb','772373sQhvcr','Lovrabet\x20User\x20Center','.lovrabet.json','30UOZDeu','87FxQGsv','20kWRVWk','Lovrabet\x20Runtime\x20CLI','https://daily-runtime.lovrabet.com','RABETBASE','https://user.lovrabet.com','6HxzDKK','lovrabet','https://api.lovrabet.com','485145gFElwQ','.lovrabetrc','https://registry.npmjs.org','.lovrabet-runtime.log'];a39_0x25e5=function(){return _0x2b08e5;};return a39_0x25e5();}export function productEnvNames(_0x1c2beb){const _0x2ab1a6=a39_0x27cb32;return[productEnvName(_0x1c2beb),...PRODUCT_CONFIG[_0x2ab1a6(0x170)][_0x2ab1a6(0x157)](_0x11974b=>_0x11974b+'_'+_0x1c2beb)];}export function productEnv(_0xc8deb0){for(const _0x5991d0 of productEnvNames(_0xc8deb0)){const _0x2ebc9c=process.env[_0x5991d0];if(_0x2ebc9c!==undefined)return _0x2ebc9c;}return undefined;}
1
+ const a43_0xdd8113=a43_0x1ea8;function a43_0x1ea8(_0x4bf0a2,_0x9cd0f1){_0x4bf0a2=_0x4bf0a2-0x1e9;const _0x4966ae=a43_0x4966();let _0x1ea83c=_0x4966ae[_0x4bf0a2];return _0x1ea83c;}(function(_0x355cd,_0x4d2de7){const _0x35837e=a43_0x1ea8,_0x282930=_0x355cd();while(!![]){try{const _0x196fb2=-parseInt(_0x35837e(0x1f4))/0x1*(-parseInt(_0x35837e(0x1f6))/0x2)+-parseInt(_0x35837e(0x1ec))/0x3+parseInt(_0x35837e(0x1f1))/0x4+-parseInt(_0x35837e(0x1f0))/0x5*(parseInt(_0x35837e(0x1fd))/0x6)+-parseInt(_0x35837e(0x1ff))/0x7+parseInt(_0x35837e(0x1f2))/0x8*(parseInt(_0x35837e(0x202))/0x9)+parseInt(_0x35837e(0x1fe))/0xa;if(_0x196fb2===_0x4d2de7)break;else _0x282930['push'](_0x282930['shift']());}catch(_0x113c20){_0x282930['push'](_0x282930['shift']());}}}(a43_0x4966,0x289bd));function a43_0x4966(){const _0x182153=['1NNlSsV','lovrabet','162742asfMOq','SKIP_NPX_SKILLS','https://daily-api.lovrabet.com','https://user.lovrabet.com','.lovrabet','legacyEnvPrefixes','https://api.lovrabet.com','1398VqFCEo','4280710pgcRyM','718655QmXDKH','cli:lovrabet-runtime','https://registry.npmjs.org','529776vYCBps','Lovrabet\x20Runtime\x20CLI','https://daily-runtime.lovrabet.com','LOVRABET','.lovrabet-runtime.log','envPrefix','Lovrabet\x20User\x20Center','324336EegLoH','/user/ak','.lovrabet.json','lovrabet/lovrabet-cli','4980lrHnrQ','163488QcYwgG','8NloYgG','@lovrabet/lovrabet-cli'];a43_0x4966=function(){return _0x182153;};return a43_0x4966();}export const PRODUCT_CONFIG={'cliBinName':a43_0xdd8113(0x1f5),'cliDisplayName':a43_0xdd8113(0x203),'npmPackageName':a43_0xdd8113(0x1f3),'skillSource':a43_0xdd8113(0x1ef),'npmRegistryBaseUrl':a43_0xdd8113(0x201),'envPrefix':a43_0xdd8113(0x205),'legacyEnvPrefixes':['RABETBASE'],'configFileNames':[a43_0xdd8113(0x1ee),'.lovrabetrc'],'newConfigFileName':a43_0xdd8113(0x1ee),'homeDirName':a43_0xdd8113(0x1fa),'logFileName':a43_0xdd8113(0x1e9),'invokeSource':a43_0xdd8113(0x200),'userCenterDisplayName':a43_0xdd8113(0x1eb),'skipNpxSkillsEnvSuffix':a43_0xdd8113(0x1f7),'domains':{'production':{'user':a43_0xdd8113(0x1f9),'api':a43_0xdd8113(0x1fc),'runtime':'https://runtime.lovrabet.com'},'nonProduction':{'user':'https://user-daily.lovrabet.com','api':a43_0xdd8113(0x1f8),'runtime':a43_0xdd8113(0x204)}},'accessKeyCreatePath':a43_0xdd8113(0x1ed)};export function productEnvName(_0x5106a9){const _0x32721b=a43_0xdd8113;return PRODUCT_CONFIG[_0x32721b(0x1ea)]+'_'+_0x5106a9;}export function productEnvNames(_0xf861cb){const _0x13e5f0=a43_0xdd8113;return[productEnvName(_0xf861cb),...PRODUCT_CONFIG[_0x13e5f0(0x1fb)]['map'](_0x500664=>_0x500664+'_'+_0xf861cb)];}export function productEnv(_0x19dcd3){for(const _0x41f722 of productEnvNames(_0x19dcd3)){const _0x1a58b2=process.env[_0x41f722];if(_0x1a58b2!==undefined)return _0x1a58b2;}return undefined;}
@@ -1 +1 @@
1
- const a40_0x551267=a40_0x53a3;function a40_0x53a3(_0x347c98,_0x517839){_0x347c98=_0x347c98-0x143;const _0x57bc4d=a40_0x57bc();let _0x53a357=_0x57bc4d[_0x347c98];return _0x53a357;}function a40_0x57bc(){const _0x4a66dd=['96ZPQllL','4042060PDRMlv','6XHfoPm','3769690ulxYwF','1921730xnNZFr','read','7zAUUcw','high-risk-write','5917328euixPh','2233931FByqNb','50702wvSbhu','74127FNHWUk','write','27OzPnal'];a40_0x57bc=function(){return _0x4a66dd;};return a40_0x57bc();}(function(_0x473d2c,_0xc0e70e){const _0x4d343c=a40_0x53a3,_0x37e6e1=_0x473d2c();while(!![]){try{const _0x1a34eb=parseInt(_0x4d343c(0x148))/0x1*(-parseInt(_0x4d343c(0x14c))/0x2)+parseInt(_0x4d343c(0x14d))/0x3*(-parseInt(_0x4d343c(0x150))/0x4)+parseInt(_0x4d343c(0x145))/0x5*(-parseInt(_0x4d343c(0x144))/0x6)+parseInt(_0x4d343c(0x14b))/0x7+parseInt(_0x4d343c(0x14a))/0x8+parseInt(_0x4d343c(0x14f))/0x9*(parseInt(_0x4d343c(0x146))/0xa)+parseInt(_0x4d343c(0x143))/0xb;if(_0x1a34eb===_0xc0e70e)break;else _0x37e6e1['push'](_0x37e6e1['shift']());}catch(_0x25da8a){_0x37e6e1['push'](_0x37e6e1['shift']());}}}(a40_0x57bc,0x74c9f));export const RISK_LEVEL_VALUES=[a40_0x551267(0x147),a40_0x551267(0x14e),a40_0x551267(0x149)];
1
+ function a44_0x5ae8(_0x3406e2,_0x3d020d){_0x3406e2=_0x3406e2-0x188;const _0x1deb69=a44_0x1deb();let _0x5ae8ff=_0x1deb69[_0x3406e2];return _0x5ae8ff;}function a44_0x1deb(){const _0x335a89=['1243090BWvhFO','2662908UkMssP','99OaeTsM','write','2719705vwSTud','5056WxygCJ','32SjaDOs','1139638zLvGeU','1068578wdkOyt','52955sjsnix','read','2481rUqIzh'];a44_0x1deb=function(){return _0x335a89;};return a44_0x1deb();}const a44_0x1574de=a44_0x5ae8;(function(_0x29549d,_0x11207c){const _0x3957cf=a44_0x5ae8,_0x37925e=_0x29549d();while(!![]){try{const _0x22c7c8=-parseInt(_0x3957cf(0x188))/0x1+parseInt(_0x3957cf(0x192))/0x2+-parseInt(_0x3957cf(0x18a))/0x3*(-parseInt(_0x3957cf(0x190))/0x4)+parseInt(_0x3957cf(0x18f))/0x5+parseInt(_0x3957cf(0x18c))/0x6+-parseInt(_0x3957cf(0x193))/0x7*(parseInt(_0x3957cf(0x191))/0x8)+parseInt(_0x3957cf(0x18d))/0x9*(-parseInt(_0x3957cf(0x18b))/0xa);if(_0x22c7c8===_0x11207c)break;else _0x37925e['push'](_0x37925e['shift']());}catch(_0x224035){_0x37925e['push'](_0x37925e['shift']());}}}(a44_0x1deb,0x8ba20));export const RISK_LEVEL_VALUES=[a44_0x1574de(0x189),a44_0x1574de(0x18e),'high-risk-write'];
@@ -1 +1 @@
1
- const a41_0x522fcb=a41_0x26b6;function a41_0x5438(){const _0x294318=['11nMkrwy','46664ibMmVN','758372tZMXHV','3900570ysAqFf','36XUJzxY','9mOTqsF','425070bhKsTT','3090492YLhlwE','production','52561EhidFJ','user','399nWFiRy','42963924IrWGSE','20InaCdJ'];a41_0x5438=function(){return _0x294318;};return a41_0x5438();}function a41_0x26b6(_0x2a11a7,_0x8e2fca){_0x2a11a7=_0x2a11a7-0xfb;const _0x543862=a41_0x5438();let _0x26b64b=_0x543862[_0x2a11a7];return _0x26b64b;}(function(_0x3a723f,_0x430def){const _0x3611d1=a41_0x26b6,_0x10585e=_0x3a723f();while(!![]){try{const _0x5d39d6=-parseInt(_0x3611d1(0x101))/0x1*(parseInt(_0x3611d1(0x105))/0x2)+-parseInt(_0x3611d1(0xff))/0x3+-parseInt(_0x3611d1(0x108))/0x4+-parseInt(_0x3611d1(0xfe))/0x5*(parseInt(_0x3611d1(0xfc))/0x6)+-parseInt(_0x3611d1(0x103))/0x7*(parseInt(_0x3611d1(0x107))/0x8)+parseInt(_0x3611d1(0xfd))/0x9*(-parseInt(_0x3611d1(0xfb))/0xa)+-parseInt(_0x3611d1(0x106))/0xb*(-parseInt(_0x3611d1(0x104))/0xc);if(_0x5d39d6===_0x430def)break;else _0x10585e['push'](_0x10585e['shift']());}catch(_0x3f54ff){_0x10585e['push'](_0x10585e['shift']());}}}(a41_0x5438,0x930e2));import{PRODUCT_CONFIG}from'../constant/product.js';export const USER_ACCESS_KEY_CREATE_URL=''+PRODUCT_CONFIG['domains'][a41_0x522fcb(0x100)][a41_0x522fcb(0x102)]+PRODUCT_CONFIG['accessKeyCreatePath'];
1
+ const a45_0xda750b=a45_0x4aef;(function(_0x244312,_0x4a58f2){const _0x263de8=a45_0x4aef,_0x3c4efa=_0x244312();while(!![]){try{const _0xea9d9c=-parseInt(_0x263de8(0x13f))/0x1*(-parseInt(_0x263de8(0x140))/0x2)+parseInt(_0x263de8(0x13c))/0x3*(-parseInt(_0x263de8(0x143))/0x4)+parseInt(_0x263de8(0x145))/0x5+parseInt(_0x263de8(0x144))/0x6+parseInt(_0x263de8(0x141))/0x7+-parseInt(_0x263de8(0x142))/0x8*(parseInt(_0x263de8(0x139))/0x9)+parseInt(_0x263de8(0x147))/0xa*(-parseInt(_0x263de8(0x13d))/0xb);if(_0xea9d9c===_0x4a58f2)break;else _0x3c4efa['push'](_0x3c4efa['shift']());}catch(_0x5bd409){_0x3c4efa['push'](_0x3c4efa['shift']());}}}(a45_0x4081,0x80b5d));function a45_0x4081(){const _0x1000ae=['domains','accessKeyCreatePath','3876gGrRND','22EMzqzO','production','5BrnyPz','402626UyQibF','1093050cykQtq','256OvoSef','2248NegLIz','1687092gjTxAM','3771310HsFklG','user','4340130YnNcMA','21609ltLEyj'];a45_0x4081=function(){return _0x1000ae;};return a45_0x4081();}function a45_0x4aef(_0x4b8fd2,_0xdffe99){_0x4b8fd2=_0x4b8fd2-0x139;const _0x4081a0=a45_0x4081();let _0x4aeff0=_0x4081a0[_0x4b8fd2];return _0x4aeff0;}import{PRODUCT_CONFIG}from'../constant/product.js';export const USER_ACCESS_KEY_CREATE_URL=''+PRODUCT_CONFIG[a45_0xda750b(0x13a)][a45_0xda750b(0x13e)][a45_0xda750b(0x146)]+PRODUCT_CONFIG[a45_0xda750b(0x13b)];
package/lib/context.js CHANGED
@@ -1 +1 @@
1
- const a42_0x20e21e=a42_0x4ca9;(function(_0x6eae2,_0x2415bd){const _0x22d336=a42_0x4ca9,_0x331dfc=_0x6eae2();while(!![]){try{const _0x1e8866=-parseInt(_0x22d336(0x135))/0x1*(-parseInt(_0x22d336(0x139))/0x2)+-parseInt(_0x22d336(0x14c))/0x3*(parseInt(_0x22d336(0x14d))/0x4)+-parseInt(_0x22d336(0x136))/0x5+-parseInt(_0x22d336(0x13b))/0x6*(-parseInt(_0x22d336(0x15d))/0x7)+parseInt(_0x22d336(0x118))/0x8*(parseInt(_0x22d336(0x149))/0x9)+parseInt(_0x22d336(0x154))/0xa+parseInt(_0x22d336(0x119))/0xb*(-parseInt(_0x22d336(0x137))/0xc);if(_0x1e8866===_0x2415bd)break;else _0x331dfc['push'](_0x331dfc['shift']());}catch(_0x493747){_0x331dfc['push'](_0x331dfc['shift']());}}}(a42_0x236d,0x6679d));import{readFileSync,existsSync,mkdirSync,renameSync,unlinkSync,writeFileSync}from'node:fs';function a42_0x4ca9(_0x4ccac6,_0x50e4de){_0x4ccac6=_0x4ccac6-0x111;const _0x236d06=a42_0x236d();let _0x4ca95b=_0x236d06[_0x4ccac6];return _0x4ca95b;}import{resolve,dirname}from'node:path';import{homedir}from'node:os';import{logger}from'./utils/logger.js';import{CliErrors}from'./errors.js';import{CLI_BIN_NAME}from'./constant/cli.js';import{PRODUCT_CONFIG,productEnv,productEnvNames}from'./constant/product.js';import{DEFAULT_CONFIG_VALUES}from'./constant/defaults.js';import{normalizeEnv,isDaily,isDev}from'./constant/env.js';import{normalizeLegacyOutputFormat}from'./framework/types.js';import{resolveCachedAppCode}from'./commands/app/cache.js';export{AUTH_MODE,isAuthMode}from'./constant/auth-mode.js';const CONFIG_NAMES=PRODUCT_CONFIG['configFileNames'];export const NEW_CONFIG_NAME=PRODUCT_CONFIG[a42_0x20e21e(0x13c)];function resolveConfigPath(_0x3f130e){for(const _0x4736e2 of CONFIG_NAMES){const _0x26ae4e=resolve(_0x3f130e,_0x4736e2);if(existsSync(_0x26ae4e))return _0x26ae4e;}return undefined;}export function resolveWriteConfigPath(_0x444315){const _0x68a111=a42_0x20e21e,_0x521703=_0x444315===_0x68a111(0x126)?process[_0x68a111(0x12b)]():homedir(),_0x1c4e51=resolveConfigPath(_0x521703);return _0x1c4e51??resolve(_0x521703,NEW_CONFIG_NAME);}export function readConfigFile(_0x1a032e){const _0x2fe6ba=a42_0x20e21e;try{if(existsSync(_0x1a032e)){const _0x49367b=readFileSync(_0x1a032e,{'encoding':_0x2fe6ba(0x116)});if(_0x49367b){const _0x29acaa=JSON[_0x2fe6ba(0x11e)](_0x49367b);return migrateOnlineEnv(_0x1a032e,_0x29acaa),_0x29acaa;}}}catch{}return{};}function migrateOnlineEnv(_0x119f52,_0xb8229a){const _0x22d027=a42_0x20e21e;let _0x522a1f=![];_0xb8229a[_0x22d027(0x12c)]==='online'&&(_0xb8229a[_0x22d027(0x12c)]=_0x22d027(0x112),_0x522a1f=!![]);if(_0xb8229a['apps']&&typeof _0xb8229a[_0x22d027(0x129)]===_0x22d027(0x133))for(const _0x136690 of Object[_0x22d027(0x13e)](_0xb8229a[_0x22d027(0x129)])){_0x136690&&_0x136690[_0x22d027(0x12c)]==='online'&&(_0x136690[_0x22d027(0x12c)]=_0x22d027(0x112),_0x522a1f=!![]);}if(_0x522a1f)try{writeConfigFile(_0x119f52,_0xb8229a);}catch{}}export function writeConfigFile(_0x125a87,_0x17fac5){const _0x1fc255=a42_0x20e21e,_0x3e32cb=dirname(_0x125a87);!existsSync(_0x3e32cb)&&mkdirSync(_0x3e32cb,{'recursive':!![]});const _0x1d2d44=_0x125a87+_0x1fc255(0x128);try{writeFileSync(_0x1d2d44,JSON[_0x1fc255(0x111)](_0x17fac5,null,0x2)+'\x0a',{'encoding':'utf8','mode':0x180});try{renameSync(_0x1d2d44,_0x125a87);}catch(_0x3abb54){if(_0x3abb54['code']===_0x1fc255(0x153)||_0x3abb54[_0x1fc255(0x121)]===_0x1fc255(0x143)||_0x3abb54[_0x1fc255(0x121)]===_0x1fc255(0x142)){writeFileSync(_0x125a87,JSON['stringify'](_0x17fac5,null,0x2)+'\x0a',{'encoding':_0x1fc255(0x116)});try{unlinkSync(_0x1d2d44);}catch{}}else throw _0x3abb54;}}catch(_0xae26e){try{unlinkSync(_0x1d2d44);}catch{}throw _0xae26e;}}export function isNonInteractiveMode(_0x449f10){const _0x265fbd=a42_0x20e21e;return!!(_0x449f10[_0x265fbd(0x14f)]||_0x449f10['ci']||productEnvNames('CI')[_0x265fbd(0x125)](_0x5e4518=>process.env[_0x5e4518]==='true')||process.env.CI===_0x265fbd(0x12e)||!process['stdout'][_0x265fbd(0x113)]||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0xf3dcdd=a42_0x20e21e;if(!process[_0xf3dcdd(0x14a)][_0xf3dcdd(0x113)])return![];try{const _0x2162c9=process[_0xf3dcdd(0x14a)]['isRaw'];return process['stdin']['setRawMode'](!![]),process[_0xf3dcdd(0x14a)][_0xf3dcdd(0x127)](_0x2162c9??![]),!![];}catch{return![];}}export async function createContext(_0x23384f){const _0xb1e8cc=a42_0x20e21e,_0x3b91da=readRawConfig(),_0x217b19=buildConfig(_0x3b91da,_0x23384f);await initGlobalEnvironment(_0x217b19);const {getUserDomain:_0x1a94b7,getApiDomain:_0x131215}=await import(_0xb1e8cc(0x117)),_0x526127={'apiDomain':_0x131215(),'userDomain':_0x1a94b7()},_0x5c3558=await buildAuth(_0x217b19);logger[_0xb1e8cc(0x14b)](process[_0xb1e8cc(0x12b)]());const _0x10346c=(CLI_BIN_NAME+'\x20'+process[_0xb1e8cc(0x13f)]['slice'](0x2)[_0xb1e8cc(0x141)]('\x20'))[_0xb1e8cc(0x150)]();logger[_0xb1e8cc(0x12d)](_0x10346c);const _0x34296a=isNonInteractiveMode(_0x23384f);return{'config':_0x217b19,'auth':_0x5c3558,'logger':logger,'env':_0x526127,'nonInteractive':_0x34296a};}export function buildConfigFromFlags(_0x528197){return buildConfig(readRawConfig(),_0x528197);}export function getLocalAppAliases(_0x5eff01){const _0x4b7f46=a42_0x20e21e;return _0x5eff01[_0x4b7f46(0x129)]&&typeof _0x5eff01[_0x4b7f46(0x129)]===_0x4b7f46(0x133)?_0x5eff01['apps']:{};}export function resolveLocalAppAliasCode(_0xa25c83,_0x1eba93){const _0x340226=a42_0x20e21e;if(!_0x1eba93)return undefined;const _0x51089f=getLocalAppAliases(_0xa25c83)[_0x1eba93],_0x5b05bf=_0x51089f?.[_0x340226(0x15c)];return typeof _0x5b05bf==='string'&&_0x5b05bf[_0x340226(0x150)]()?_0x5b05bf[_0x340226(0x150)]():undefined;}export function readAppCodeFromConfig(){const _0x55e7b0=a42_0x20e21e,_0x9dc29e=readRawConfig(),_0x13560e=_0x9dc29e[_0x55e7b0(0x15c)]??_0x9dc29e[_0x55e7b0(0x11c)];if(typeof _0x13560e==='string'&&_0x13560e[_0x55e7b0(0x150)]())return _0x13560e['trim']();const _0x3a8222=resolveLocalAppAliasCode(_0x9dc29e,typeof _0x9dc29e[_0x55e7b0(0x147)]==='string'?_0x9dc29e[_0x55e7b0(0x147)]:undefined);if(_0x3a8222)return _0x3a8222;const _0x17e409=normalizeEnv(String(_0x9dc29e[_0x55e7b0(0x12c)]||_0x55e7b0(0x112))),_0x9c7f2b=isDaily(_0x17e409)?_0x55e7b0(0x13d):isDev(_0x17e409)?_0x55e7b0(0x145):_0x55e7b0(0x112),_0x2da8fa=resolveCachedAppCode(typeof _0x9dc29e[_0x55e7b0(0x147)]===_0x55e7b0(0x11d)?_0x9dc29e[_0x55e7b0(0x147)]:undefined,_0x9c7f2b,typeof _0x9dc29e[_0x55e7b0(0x132)]==='string'?_0x9dc29e[_0x55e7b0(0x132)]:undefined);if(_0x2da8fa)return _0x2da8fa;const _0x145492=Object[_0x55e7b0(0x13e)](getLocalAppAliases(_0x9dc29e))[_0x55e7b0(0x15b)](_0x385379=>_0x385379?.[_0x55e7b0(0x15c)]);return typeof _0x145492?.[_0x55e7b0(0x15c)]===_0x55e7b0(0x11d)&&_0x145492['appcode'][_0x55e7b0(0x150)]()?_0x145492[_0x55e7b0(0x15c)]['trim']():undefined;}export function readScopedConfig(_0x33276f){const _0xf4f4be=a42_0x20e21e,_0x1c60a8=_0x33276f[_0xf4f4be(0x140)]?_0xf4f4be(0x140):_0xf4f4be(0x126);return readConfigFile(resolveWriteConfigPath(_0x1c60a8));}function a42_0x236d(){const _0x3c4f25=['setLogPath','3ArVGaY','1544924cdLijm','maxRisk','nonInteractive','trim','FORMAT','APPCODE','EPERM','544290UqaqUw','empty','runtimeDomain','cache','high-risk-write','authRequired','host','find','appcode','7xvVamZ','stringify','production','isTTY','local-alias','format','utf8','./constant/domain.js','8SCqybA','1727yUFFZj','APP','ENV','app','string','parse','write','globalConfig','code','inherit','projectConfig','apiDomain','some','project','setRawMode','.tmp','apps','locale','cwd','env','setRawCommand','true','PAGE_SIZE','read','raw','accessKey','object','error','1RYYptr','1159525IbHfTA','11652bpwYtI','./constant/env.js','33038eQhWlx','missing','1797762uvmsRj','newConfigFileName','daily','values','argv','global','join','EACCES','EXDEV','riskLevel','development','userDomain','defaultApp','pageSize','7377741hFReef','stdin'];a42_0x236d=function(){return _0x3c4f25;};return a42_0x236d();}export function writeScopedConfig(_0x20e14f,_0x439755){const _0xb0fc7a=a42_0x20e21e,_0x5f4046=_0x439755[_0xb0fc7a(0x140)]?_0xb0fc7a(0x140):_0xb0fc7a(0x126);writeConfigFile(resolveWriteConfigPath(_0x5f4046),_0x20e14f);}export async function initGlobalEnvironment(_0x197f66){const _0x3633f9=a42_0x20e21e,{initEnv:_0x1c5617}=await import(_0x3633f9(0x138));_0x1c5617(_0x197f66['env']);const {initDomains:_0xeee4d6}=await import(_0x3633f9(0x117));_0xeee4d6({'apiDomain':_0x197f66[_0x3633f9(0x131)][_0x3633f9(0x124)]||_0x197f66[_0x3633f9(0x131)][_0x3633f9(0x15a)]||undefined,'userDomain':_0x197f66[_0x3633f9(0x131)][_0x3633f9(0x146)]||undefined,'runtimeDomain':_0x197f66[_0x3633f9(0x131)][_0x3633f9(0x156)]||undefined});}export function getProjectConfigPath(){const _0x161bd1=a42_0x20e21e;return resolveConfigPath(process[_0x161bd1(0x12b)]());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function inspectCliConfigJsonFile(_0x1d3af1){const _0x1fb39e=a42_0x20e21e;if(!existsSync(_0x1d3af1))return{'status':_0x1fb39e(0x13a)};try{const _0x88a3bb=readFileSync(_0x1d3af1,{'encoding':'utf8'});if(!_0x88a3bb?.[_0x1fb39e(0x150)]())return{'status':_0x1fb39e(0x155)};const _0x2d2f89=JSON[_0x1fb39e(0x11e)](_0x88a3bb);return{'status':'ok','data':_0x2d2f89};}catch(_0x29c1fd){return{'status':_0x1fb39e(0x134),'message':_0x29c1fd instanceof Error?_0x29c1fd['message']:String(_0x29c1fd)};}}export function loadRawConfigLayers(_0x55be29){const _0x5619a3=a42_0x20e21e;let _0x380e95={},_0x1443ca={},_0x49518d,_0x31f0bd;try{_0x49518d=resolveConfigPath(homedir());if(_0x49518d){const _0x27335c=readFileSync(_0x49518d,{'encoding':_0x5619a3(0x116)});if(_0x27335c)_0x380e95=JSON[_0x5619a3(0x11e)](_0x27335c);}}catch{}try{const _0x4ff20d=_0x55be29||process[_0x5619a3(0x12b)]();_0x31f0bd=resolveConfigPath(_0x4ff20d);if(_0x31f0bd){const _0x437358=readFileSync(_0x31f0bd,{'encoding':'utf8'});if(_0x437358)_0x1443ca=JSON[_0x5619a3(0x11e)](_0x437358);}}catch{}return{'globalPath':_0x49518d,'projectPath':_0x31f0bd,'globalConfig':_0x380e95,'projectConfig':_0x1443ca};}function mergeRawConfigLayers(_0x2fc0cf){const _0x2ff85f=a42_0x20e21e,{globalConfig:_0x561f39,projectConfig:_0x339740}=_0x2fc0cf;if(_0x339740[_0x2ff85f(0x122)]===![]){const _0x3c61ff={..._0x339740};return delete _0x3c61ff[_0x2ff85f(0x122)],_0x3c61ff;}const _0x4d2e5b={..._0x561f39,..._0x339740};if('defaultApp'in _0x339740)_0x4d2e5b[_0x2ff85f(0x147)]=_0x339740[_0x2ff85f(0x147)];else _0x561f39[_0x2ff85f(0x147)]&&(_0x4d2e5b['defaultApp']=_0x561f39[_0x2ff85f(0x147)]);return _0x4d2e5b;}export function isInProject(){return!!getProjectConfigPath();}export function readRawConfig(_0x3f2556){return mergeRawConfigLayers(loadRawConfigLayers(_0x3f2556));}export function readRawConfigWithLayers(_0x4cd5ba){const _0x361257=loadRawConfigLayers(_0x4cd5ba);return{'config':mergeRawConfigLayers(_0x361257),'layers':_0x361257};}export function resolveDefaultAppSource(_0x3b618b){const _0x2680cb=a42_0x20e21e;if(_0x2680cb(0x147)in _0x3b618b[_0x2680cb(0x123)])return'project';if(_0x3b618b[_0x2680cb(0x123)][_0x2680cb(0x122)]===![])return null;if(_0x3b618b[_0x2680cb(0x120)]['defaultApp'])return _0x2680cb(0x140);return null;}function buildConfig(_0x14aeb0,_0x58d53b){const _0x48988c=a42_0x20e21e,_0x5dd663=_0x14aeb0[_0x48988c(0x147)]||undefined,_0x329e28=_0x58d53b['app']||env(_0x48988c(0x11a))||undefined,_0x4042ec=_0x329e28||_0x5dd663||undefined,_0xbdb8d8=env('ACCESS_KEY')||_0x14aeb0[_0x48988c(0x132)]||undefined,_0x55b109=_0x58d53b[_0x48988c(0x12c)]||env(_0x48988c(0x11b))||_0x14aeb0[_0x48988c(0x12c)]||DEFAULT_CONFIG_VALUES['env'],_0x2d5fc5=normalizeEnv(String(_0x55b109)),_0x313982=isDaily(_0x2d5fc5)?_0x48988c(0x13d):isDev(_0x2d5fc5)?_0x48988c(0x145):_0x48988c(0x112),_0x988fc4=resolveLocalAppAliasCode(_0x14aeb0,_0x4042ec),_0x49d64b=resolveCachedAppCode(_0x4042ec,_0x313982,_0xbdb8d8),_0x5401d0=typeof _0x58d53b['appcode']===_0x48988c(0x11d)?_0x58d53b['appcode']:undefined,_0x24dc17=env(_0x48988c(0x152)),_0xb80001=_0x329e28?undefined:_0x14aeb0[_0x48988c(0x15c)]||_0x14aeb0[_0x48988c(0x11c)]||undefined,_0x1392a9=_0x5401d0||_0x24dc17||_0x988fc4||_0x49d64b||_0xb80001||undefined,_0x19d06b=_0x5401d0?'explicit':_0x24dc17?'env':_0x988fc4?_0x48988c(0x114):_0x49d64b?_0x48988c(0x157):_0xb80001?'top-level':undefined,_0x4236ee=_0x14aeb0[_0x48988c(0x12a)]||DEFAULT_CONFIG_VALUES[_0x48988c(0x12a)],_0x21e283=undefined,_0x4ea02c=_0x58d53b[_0x48988c(0x115)]||env(_0x48988c(0x151))||_0x14aeb0[_0x48988c(0x115)],_0x50944c=normalizeLegacyOutputFormat(_0x4ea02c),_0x2cecd8=env(_0x48988c(0x12f))||_0x14aeb0[_0x48988c(0x148)],_0x26fb7f=_0x2cecd8?Number(_0x2cecd8)||undefined:undefined,_0x471cfb=_0x14aeb0[_0x48988c(0x144)]||_0x14aeb0[_0x48988c(0x14e)],_0x5cc52b=_0x471cfb===_0x48988c(0x130)||_0x471cfb===_0x48988c(0x11f)||_0x471cfb===_0x48988c(0x158)?_0x471cfb:DEFAULT_CONFIG_VALUES[_0x48988c(0x144)],_0x43532e=env('VERBOSE'),_0x3a04b7=_0x43532e==='1'||_0x43532e===_0x48988c(0x12e);return{'appCode':typeof _0x1392a9===_0x48988c(0x11d)&&_0x1392a9[_0x48988c(0x150)]()?_0x1392a9[_0x48988c(0x150)]():undefined,'appCodeSource':_0x19d06b,'env':_0x313982,'locale':_0x4236ee,'cookie':_0x21e283,'accessKey':_0xbdb8d8,'format':_0x50944c,'pageSize':_0x26fb7f,'riskLevel':_0x5cc52b,'verbose':_0x3a04b7,'defaultApp':_0x5dd663,'currentApp':typeof _0x4042ec===_0x48988c(0x11d)?_0x4042ec:undefined,'raw':_0x14aeb0};}function env(_0x257941){return productEnv(_0x257941);}async function buildAuth(_0x16de0b){const _0x314f15=a42_0x20e21e,_0x56d2de='',_0x4fe33f=!!_0x16de0b[_0x314f15(0x132)];return{'cookie':_0x56d2de,'isLoggedIn':_0x4fe33f,async 'getOrLogin'(){const _0x1b0073=_0x314f15;if(_0x4fe33f)return _0x56d2de;throw CliErrors[_0x1b0073(0x159)]();}};}
1
+ const a46_0x5bafbe=a46_0x6526;(function(_0x267148,_0xea38a){const _0x3e6df7=a46_0x6526,_0x2cc1e8=_0x267148();while(!![]){try{const _0x4420e1=parseInt(_0x3e6df7(0x1ae))/0x1*(-parseInt(_0x3e6df7(0x1c2))/0x2)+-parseInt(_0x3e6df7(0x1c4))/0x3+parseInt(_0x3e6df7(0x1c3))/0x4+-parseInt(_0x3e6df7(0x1bd))/0x5+-parseInt(_0x3e6df7(0x1c6))/0x6*(-parseInt(_0x3e6df7(0x19f))/0x7)+parseInt(_0x3e6df7(0x199))/0x8*(-parseInt(_0x3e6df7(0x19e))/0x9)+parseInt(_0x3e6df7(0x1b3))/0xa;if(_0x4420e1===_0xea38a)break;else _0x2cc1e8['push'](_0x2cc1e8['shift']());}catch(_0x3701a){_0x2cc1e8['push'](_0x2cc1e8['shift']());}}}(a46_0x5250,0x5aa25));import{readFileSync,existsSync,mkdirSync,renameSync,unlinkSync,writeFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{homedir}from'node:os';import{logger}from'./utils/logger.js';import{CliErrors}from'./errors.js';import{CLI_BIN_NAME}from'./constant/cli.js';import{PRODUCT_CONFIG,productEnv,productEnvNames}from'./constant/product.js';import{DEFAULT_CONFIG_VALUES}from'./constant/defaults.js';import{normalizeEnv,isDaily,isDev}from'./constant/env.js';function a46_0x6526(_0x530ded,_0x1e779d){_0x530ded=_0x530ded-0x199;const _0x52501b=a46_0x5250();let _0x652679=_0x52501b[_0x530ded];return _0x652679;}import{normalizeLegacyOutputFormat}from'./framework/types.js';import{resolveCachedAppCode}from'./commands/app/cache.js';export{AUTH_MODE,isAuthMode}from'./constant/auth-mode.js';const CONFIG_NAMES=PRODUCT_CONFIG[a46_0x5bafbe(0x1ce)];export const NEW_CONFIG_NAME=PRODUCT_CONFIG[a46_0x5bafbe(0x1b0)];function resolveConfigPath(_0x3079bc){for(const _0x589a8b of CONFIG_NAMES){const _0x13129c=resolve(_0x3079bc,_0x589a8b);if(existsSync(_0x13129c))return _0x13129c;}return undefined;}export function resolveWriteConfigPath(_0x44d8b7){const _0x2a1930=a46_0x5bafbe,_0x50ce44=_0x44d8b7==='project'?process[_0x2a1930(0x1cb)]():homedir(),_0x56e09c=resolveConfigPath(_0x50ce44);return _0x56e09c??resolve(_0x50ce44,NEW_CONFIG_NAME);}export function readConfigFile(_0x24c34d){const _0x2e3ca7=a46_0x5bafbe;try{if(existsSync(_0x24c34d)){const _0x183280=readFileSync(_0x24c34d,{'encoding':_0x2e3ca7(0x1b8)});if(_0x183280){const _0x51d7ac=JSON[_0x2e3ca7(0x1a0)](_0x183280);return migrateOnlineEnv(_0x24c34d,_0x51d7ac),_0x51d7ac;}}}catch{}return{};}function migrateOnlineEnv(_0x56ef73,_0x28fb11){const _0x4cdfeb=a46_0x5bafbe;let _0x41b315=![];_0x28fb11[_0x4cdfeb(0x1ac)]===_0x4cdfeb(0x1bf)&&(_0x28fb11[_0x4cdfeb(0x1ac)]=_0x4cdfeb(0x1e2),_0x41b315=!![]);if(_0x28fb11[_0x4cdfeb(0x1a6)]&&typeof _0x28fb11[_0x4cdfeb(0x1a6)]===_0x4cdfeb(0x1b6))for(const _0x3d2b85 of Object['values'](_0x28fb11['apps'])){_0x3d2b85&&_0x3d2b85['env']===_0x4cdfeb(0x1bf)&&(_0x3d2b85[_0x4cdfeb(0x1ac)]=_0x4cdfeb(0x1e2),_0x41b315=!![]);}if(_0x41b315)try{writeConfigFile(_0x56ef73,_0x28fb11);}catch{}}export function writeConfigFile(_0x28f962,_0x24fb5e){const _0x230b6a=a46_0x5bafbe,_0x38068d=dirname(_0x28f962);!existsSync(_0x38068d)&&mkdirSync(_0x38068d,{'recursive':!![]});const _0x350ddd=_0x28f962+_0x230b6a(0x1c0);try{writeFileSync(_0x350ddd,JSON[_0x230b6a(0x1af)](_0x24fb5e,null,0x2)+'\x0a',{'encoding':'utf8','mode':0x180});try{renameSync(_0x350ddd,_0x28f962);}catch(_0x5effbe){if(_0x5effbe[_0x230b6a(0x1c9)]===_0x230b6a(0x19a)||_0x5effbe[_0x230b6a(0x1c9)]===_0x230b6a(0x1d5)||_0x5effbe[_0x230b6a(0x1c9)]==='EACCES'){writeFileSync(_0x28f962,JSON['stringify'](_0x24fb5e,null,0x2)+'\x0a',{'encoding':_0x230b6a(0x1b8)});try{unlinkSync(_0x350ddd);}catch{}}else throw _0x5effbe;}}catch(_0xf0a184){try{unlinkSync(_0x350ddd);}catch{}throw _0xf0a184;}}export function isNonInteractiveMode(_0xedd09b){const _0x267a50=a46_0x5bafbe;return!!(_0xedd09b[_0x267a50(0x1d9)]||_0xedd09b['ci']||productEnvNames('CI')[_0x267a50(0x1a9)](_0x198e81=>process.env[_0x198e81]===_0x267a50(0x1df))||process.env.CI===_0x267a50(0x1df)||!process['stdout']['isTTY']||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x6ad69a=a46_0x5bafbe;if(!process[_0x6ad69a(0x1cf)][_0x6ad69a(0x1c7)])return![];try{const _0x5d8102=process[_0x6ad69a(0x1cf)]['isRaw'];return process[_0x6ad69a(0x1cf)][_0x6ad69a(0x1a4)](!![]),process[_0x6ad69a(0x1cf)][_0x6ad69a(0x1a4)](_0x5d8102??![]),!![];}catch{return![];}}export async function createContext(_0x4723c0){const _0x31fc92=a46_0x5bafbe,_0x575d47=readRawConfig(),_0x56dee4=buildConfig(_0x575d47,_0x4723c0);await initGlobalEnvironment(_0x56dee4);const {getUserDomain:_0x46971e,getApiDomain:_0xc92e6c}=await import(_0x31fc92(0x1d3)),_0x58d5d2={'apiDomain':_0xc92e6c(),'userDomain':_0x46971e()},_0x122e51=await buildAuth(_0x56dee4);logger[_0x31fc92(0x1a5)](process[_0x31fc92(0x1cb)]());const _0x5b1ed0=(CLI_BIN_NAME+'\x20'+process[_0x31fc92(0x1b5)][_0x31fc92(0x19b)](0x2)[_0x31fc92(0x1db)]('\x20'))[_0x31fc92(0x1b7)]();logger[_0x31fc92(0x1aa)](_0x5b1ed0);const _0x5c8b06=isNonInteractiveMode(_0x4723c0);return{'config':_0x56dee4,'auth':_0x122e51,'logger':logger,'env':_0x58d5d2,'nonInteractive':_0x5c8b06};}export function buildConfigFromFlags(_0x3df552){return buildConfig(readRawConfig(),_0x3df552);}export function getLocalAppAliases(_0x2df473){const _0x344b02=a46_0x5bafbe;return _0x2df473[_0x344b02(0x1a6)]&&typeof _0x2df473[_0x344b02(0x1a6)]==='object'?_0x2df473[_0x344b02(0x1a6)]:{};}export function resolveLocalAppAliasCode(_0x1cf442,_0x17e791){const _0x2d03d2=a46_0x5bafbe;if(!_0x17e791)return undefined;const _0x429ec2=getLocalAppAliases(_0x1cf442)[_0x17e791],_0x2ffffe=_0x429ec2?.['appcode'];return typeof _0x2ffffe===_0x2d03d2(0x1e0)&&_0x2ffffe[_0x2d03d2(0x1b7)]()?_0x2ffffe[_0x2d03d2(0x1b7)]():undefined;}export function readAppCodeFromConfig(){const _0x12c7de=a46_0x5bafbe,_0x5692bc=readRawConfig(),_0x5672ef=_0x5692bc[_0x12c7de(0x1c8)]??_0x5692bc[_0x12c7de(0x1e1)];if(typeof _0x5672ef===_0x12c7de(0x1e0)&&_0x5672ef[_0x12c7de(0x1b7)]())return _0x5672ef[_0x12c7de(0x1b7)]();const _0x2e41ba=resolveLocalAppAliasCode(_0x5692bc,typeof _0x5692bc[_0x12c7de(0x1b4)]===_0x12c7de(0x1e0)?_0x5692bc[_0x12c7de(0x1b4)]:undefined);if(_0x2e41ba)return _0x2e41ba;const _0x4f46ef=normalizeEnv(String(_0x5692bc['env']||_0x12c7de(0x1e2))),_0x39d3aa=isDaily(_0x4f46ef)?_0x12c7de(0x1d4):isDev(_0x4f46ef)?_0x12c7de(0x1cd):'production',_0xcc5062=resolveCachedAppCode(typeof _0x5692bc['defaultApp']===_0x12c7de(0x1e0)?_0x5692bc['defaultApp']:undefined,_0x39d3aa,typeof _0x5692bc['accessKey']===_0x12c7de(0x1e0)?_0x5692bc[_0x12c7de(0x1dc)]:undefined);if(_0xcc5062)return _0xcc5062;const _0x14a923=Object[_0x12c7de(0x1da)](getLocalAppAliases(_0x5692bc))[_0x12c7de(0x1dd)](_0x5d9c8f=>_0x5d9c8f?.['appcode']);return typeof _0x14a923?.['appcode']==='string'&&_0x14a923['appcode'][_0x12c7de(0x1b7)]()?_0x14a923[_0x12c7de(0x1c8)][_0x12c7de(0x1b7)]():undefined;}export function readScopedConfig(_0x18c5fc){const _0x3651e2=a46_0x5bafbe,_0x41db8b=_0x18c5fc[_0x3651e2(0x1d7)]?_0x3651e2(0x1d7):_0x3651e2(0x1cc);return readConfigFile(resolveWriteConfigPath(_0x41db8b));}export function writeScopedConfig(_0x2b1055,_0x2addeb){const _0x23aabf=a46_0x5bafbe,_0x7750b9=_0x2addeb[_0x23aabf(0x1d7)]?'global':_0x23aabf(0x1cc);writeConfigFile(resolveWriteConfigPath(_0x7750b9),_0x2b1055);}export async function initGlobalEnvironment(_0x12eebd){const _0x17a603=a46_0x5bafbe,{initEnv:_0x265565}=await import('./constant/env.js');_0x265565(_0x12eebd[_0x17a603(0x1ac)]);const {initDomains:_0x4cc088}=await import('./constant/domain.js');_0x4cc088({'apiDomain':_0x12eebd['raw'][_0x17a603(0x1ba)]||_0x12eebd[_0x17a603(0x1b1)][_0x17a603(0x1d0)]||undefined,'userDomain':_0x12eebd[_0x17a603(0x1b1)][_0x17a603(0x19c)]||undefined,'runtimeDomain':_0x12eebd[_0x17a603(0x1b1)][_0x17a603(0x1c5)]||undefined});}export function getProjectConfigPath(){const _0x39416e=a46_0x5bafbe;return resolveConfigPath(process[_0x39416e(0x1cb)]());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function inspectCliConfigJsonFile(_0x2d9dce){const _0x8ec329=a46_0x5bafbe;if(!existsSync(_0x2d9dce))return{'status':_0x8ec329(0x19d)};try{const _0x4a1cd2=readFileSync(_0x2d9dce,{'encoding':_0x8ec329(0x1b8)});if(!_0x4a1cd2?.[_0x8ec329(0x1b7)]())return{'status':_0x8ec329(0x1a1)};const _0x93b9e9=JSON[_0x8ec329(0x1a0)](_0x4a1cd2);return{'status':'ok','data':_0x93b9e9};}catch(_0x18dddb){return{'status':'error','message':_0x18dddb instanceof Error?_0x18dddb['message']:String(_0x18dddb)};}}function a46_0x5250(){const _0x28b9f4=['setRawMode','setLogPath','apps','APPCODE','top-level','some','setRawCommand','write','env','local-alias','2GgIYuo','stringify','newConfigFileName','raw','globalConfig','9048380SKpOBX','defaultApp','argv','object','trim','utf8','authRequired','apiDomain','explicit','PAGE_SIZE','618225bPIMnM','ACCESS_KEY','online','.tmp','locale','226852nmylzl','1015536PjqJiJ','1376001rmKDuf','runtimeDomain','1914pKYFsC','isTTY','appcode','code','riskLevel','cwd','project','development','configFileNames','stdin','host','ENV','VERBOSE','./constant/domain.js','daily','EXDEV','high-risk-write','global','projectConfig','nonInteractive','values','join','accessKey','find','maxRisk','true','string','app','production','1196992dtrYQo','EPERM','slice','userDomain','missing','9vJsjpt','3759pwcBZM','parse','empty','inherit','format'];a46_0x5250=function(){return _0x28b9f4;};return a46_0x5250();}export function loadRawConfigLayers(_0x375771){const _0x1b5b1a=a46_0x5bafbe;let _0x2f343d={},_0x13408b={},_0x87438c,_0x248b0f;try{_0x87438c=resolveConfigPath(homedir());if(_0x87438c){const _0x1c9601=readFileSync(_0x87438c,{'encoding':_0x1b5b1a(0x1b8)});if(_0x1c9601)_0x2f343d=JSON['parse'](_0x1c9601);}}catch{}try{const _0x5d95f9=_0x375771||process[_0x1b5b1a(0x1cb)]();_0x248b0f=resolveConfigPath(_0x5d95f9);if(_0x248b0f){const _0x36ee6c=readFileSync(_0x248b0f,{'encoding':_0x1b5b1a(0x1b8)});if(_0x36ee6c)_0x13408b=JSON['parse'](_0x36ee6c);}}catch{}return{'globalPath':_0x87438c,'projectPath':_0x248b0f,'globalConfig':_0x2f343d,'projectConfig':_0x13408b};}function mergeRawConfigLayers(_0x26a5fe){const _0x3def8a=a46_0x5bafbe,{globalConfig:_0x4919b8,projectConfig:_0x3ca771}=_0x26a5fe;if(_0x3ca771[_0x3def8a(0x1a2)]===![]){const _0x1d09a5={..._0x3ca771};return delete _0x1d09a5[_0x3def8a(0x1a2)],_0x1d09a5;}const _0x27bf6b={..._0x4919b8,..._0x3ca771};if(_0x3def8a(0x1b4)in _0x3ca771)_0x27bf6b[_0x3def8a(0x1b4)]=_0x3ca771['defaultApp'];else _0x4919b8[_0x3def8a(0x1b4)]&&(_0x27bf6b[_0x3def8a(0x1b4)]=_0x4919b8[_0x3def8a(0x1b4)]);return _0x27bf6b;}export function isInProject(){return!!getProjectConfigPath();}export function readRawConfig(_0x36ab90){return mergeRawConfigLayers(loadRawConfigLayers(_0x36ab90));}export function readRawConfigWithLayers(_0x3d217b){const _0x4aba8b=loadRawConfigLayers(_0x3d217b);return{'config':mergeRawConfigLayers(_0x4aba8b),'layers':_0x4aba8b};}export function resolveDefaultAppSource(_0x7d5c3b){const _0x1ff47e=a46_0x5bafbe;if(_0x1ff47e(0x1b4)in _0x7d5c3b[_0x1ff47e(0x1d8)])return _0x1ff47e(0x1cc);if(_0x7d5c3b[_0x1ff47e(0x1d8)][_0x1ff47e(0x1a2)]===![])return null;if(_0x7d5c3b[_0x1ff47e(0x1b2)][_0x1ff47e(0x1b4)])return _0x1ff47e(0x1d7);return null;}function buildConfig(_0x35dbb5,_0x43efbc){const _0x1813b7=a46_0x5bafbe,_0x4d33ae=_0x35dbb5[_0x1813b7(0x1b4)]||undefined,_0xe59c51=_0x43efbc[_0x1813b7(0x1e1)]||env('APP')||undefined,_0x48f62e=_0xe59c51||_0x4d33ae||undefined,_0xa75a9e=env(_0x1813b7(0x1be))||_0x35dbb5[_0x1813b7(0x1dc)]||undefined,_0x299aeb=_0x43efbc['env']||env(_0x1813b7(0x1d1))||_0x35dbb5['env']||DEFAULT_CONFIG_VALUES[_0x1813b7(0x1ac)],_0x299bf4=normalizeEnv(String(_0x299aeb)),_0x4e6082=isDaily(_0x299bf4)?_0x1813b7(0x1d4):isDev(_0x299bf4)?_0x1813b7(0x1cd):_0x1813b7(0x1e2),_0x2caee9=resolveLocalAppAliasCode(_0x35dbb5,_0x48f62e),_0x54a9d2=resolveCachedAppCode(_0x48f62e,_0x4e6082,_0xa75a9e),_0x4a520e=typeof _0x43efbc[_0x1813b7(0x1c8)]===_0x1813b7(0x1e0)?_0x43efbc[_0x1813b7(0x1c8)]:undefined,_0xe7c6f4=env(_0x1813b7(0x1a7)),_0x518176=_0xe59c51?undefined:_0x35dbb5[_0x1813b7(0x1c8)]||_0x35dbb5[_0x1813b7(0x1e1)]||undefined,_0x9592e2=_0x4a520e||_0xe7c6f4||_0x2caee9||_0x54a9d2||_0x518176||undefined,_0x4cbb14=_0x4a520e?_0x1813b7(0x1bb):_0xe7c6f4?_0x1813b7(0x1ac):_0x2caee9?_0x1813b7(0x1ad):_0x54a9d2?'cache':_0x518176?_0x1813b7(0x1a8):undefined,_0x3e647b=_0x35dbb5[_0x1813b7(0x1c1)]||DEFAULT_CONFIG_VALUES[_0x1813b7(0x1c1)],_0x12015c=undefined,_0x25ee45=_0x43efbc[_0x1813b7(0x1a3)]||env('FORMAT')||_0x35dbb5[_0x1813b7(0x1a3)],_0x14378f=normalizeLegacyOutputFormat(_0x25ee45),_0x4bd5c0=env(_0x1813b7(0x1bc))||_0x35dbb5['pageSize'],_0x320f50=_0x4bd5c0?Number(_0x4bd5c0)||undefined:undefined,_0x2f8cb3=_0x35dbb5[_0x1813b7(0x1ca)]||_0x35dbb5[_0x1813b7(0x1de)],_0x381f5f=_0x2f8cb3==='read'||_0x2f8cb3===_0x1813b7(0x1ab)||_0x2f8cb3===_0x1813b7(0x1d6)?_0x2f8cb3:DEFAULT_CONFIG_VALUES['riskLevel'],_0x1f0f89=env(_0x1813b7(0x1d2)),_0xa7a7d4=_0x1f0f89==='1'||_0x1f0f89===_0x1813b7(0x1df);return{'appCode':typeof _0x9592e2==='string'&&_0x9592e2[_0x1813b7(0x1b7)]()?_0x9592e2[_0x1813b7(0x1b7)]():undefined,'appCodeSource':_0x4cbb14,'env':_0x4e6082,'locale':_0x3e647b,'cookie':_0x12015c,'accessKey':_0xa75a9e,'format':_0x14378f,'pageSize':_0x320f50,'riskLevel':_0x381f5f,'verbose':_0xa7a7d4,'defaultApp':_0x4d33ae,'currentApp':typeof _0x48f62e===_0x1813b7(0x1e0)?_0x48f62e:undefined,'raw':_0x35dbb5};}function env(_0x562487){return productEnv(_0x562487);}async function buildAuth(_0x5b19e9){const _0x1d2bb1=a46_0x5bafbe,_0x889354='',_0x5d4705=!!_0x5b19e9[_0x1d2bb1(0x1dc)];return{'cookie':_0x889354,'isLoggedIn':_0x5d4705,async 'getOrLogin'(){const _0x1aed63=_0x1d2bb1;if(_0x5d4705)return _0x889354;throw CliErrors[_0x1aed63(0x1b9)]();}};}
@@ -1 +1 @@
1
- (function(_0x465dad,_0x2a6106){const _0x34815e=a43_0x1603,_0x5dd6cc=_0x465dad();while(!![]){try{const _0x16b89b=parseInt(_0x34815e(0x127))/0x1*(parseInt(_0x34815e(0x12d))/0x2)+parseInt(_0x34815e(0x112))/0x3+parseInt(_0x34815e(0x146))/0x4+-parseInt(_0x34815e(0x11a))/0x5+-parseInt(_0x34815e(0x13e))/0x6*(-parseInt(_0x34815e(0x12f))/0x7)+-parseInt(_0x34815e(0x137))/0x8+-parseInt(_0x34815e(0x10a))/0x9*(parseInt(_0x34815e(0x121))/0xa);if(_0x16b89b===_0x2a6106)break;else _0x5dd6cc['push'](_0x5dd6cc['shift']());}catch(_0x463975){_0x5dd6cc['push'](_0x5dd6cc['shift']());}}}(a43_0x5ad1,0x1b7f5));import{getRuntimeDomain}from'../constant/domain.js';import{PRODUCT_CONFIG}from'../constant/product.js';import{CliErrors}from'../errors.js';import{extractList}from'../framework/response.js';let _activeAK;export function setActiveAK(_0x473a06){_activeAK=_0x473a06||undefined;}export function clearActiveAK(){_activeAK=undefined;}async function apiRequest(_0x48045c,_0x47cfcc={}){const _0x374740=a43_0x1603,{method:method=_0x374740(0x114),body:_0x357f9a,headers:headers={},timeout:timeout=0x7530}=_0x47cfcc,_0x124a1a=_activeAK,_0x125830=getRuntimeDomain();if(!_0x124a1a)throw CliErrors[_0x374740(0x109)](_0x374740(0x126)+PRODUCT_CONFIG[_0x374740(0x142)]+'.');const _0x32d334=''+_0x125830+_0x48045c,_0x19e791={'X-User-AK':_0x124a1a},_0x65cc40=new AbortController(),_0x274346=setTimeout(()=>_0x65cc40[_0x374740(0x125)](),timeout);try{const _0xa71829=await fetch(_0x32d334,{'method':method,'headers':{'Content-Type':_0x374740(0x12a),'X-Invoke-Source':PRODUCT_CONFIG[_0x374740(0x149)],..._0x19e791,...headers},'body':_0x357f9a?JSON['stringify'](_0x357f9a):undefined,'signal':_0x65cc40['signal']});let _0x3e1f9d;try{_0x3e1f9d=await _0xa71829['json']();}catch{throw CliErrors[_0x374740(0x113)]('API\x20returned\x20non-JSON\x20response\x20(HTTP\x20'+_0xa71829['status']+')',_0xa71829['status']>=0x190?_0x374740(0x131):undefined);}if(!_0xa71829['ok']||_0x3e1f9d['success']===![])throw CliErrors[_0x374740(0x113)](_0x3e1f9d[_0x374740(0x123)]||_0x3e1f9d['message']||_0x374740(0x148)+_0xa71829[_0x374740(0x118)],_0x3e1f9d[_0x374740(0x110)]?'API\x20error\x20code:\x20'+_0x3e1f9d[_0x374740(0x110)]:undefined);return _0x3e1f9d;}catch(_0x46a691){if(_0x46a691 instanceof Error&&_0x46a691[_0x374740(0x138)]===_0x374740(0x128))throw CliErrors['apiError'](_0x374740(0x13b)+_0x32d334);throw _0x46a691;}finally{clearTimeout(_0x274346);}}async function apiBinaryRequest(_0x440c1b,_0x53501e={}){const _0x168dc6=a43_0x1603,{method:method=_0x168dc6(0x114),headers:headers={},timeout:timeout=0x7530}=_0x53501e,_0x1005bd=_activeAK,_0x38761f=getRuntimeDomain();if(!_0x1005bd)throw CliErrors['authRequired'](_0x168dc6(0x126)+PRODUCT_CONFIG[_0x168dc6(0x142)]+'.');const _0x7dbc98=''+_0x38761f+_0x440c1b,_0x2ac258=new AbortController(),_0x32d3e2=setTimeout(()=>_0x2ac258[_0x168dc6(0x125)](),timeout);try{const _0x525ea9=await fetch(_0x7dbc98,{'method':method,'headers':{'X-Invoke-Source':PRODUCT_CONFIG['invokeSource'],'X-User-AK':_0x1005bd,...headers},'signal':_0x2ac258[_0x168dc6(0x12e)]});if(!_0x525ea9['ok']){let _0x240334;try{const _0x5e7f5=await _0x525ea9[_0x168dc6(0x124)]();_0x240334=_0x5e7f5[_0x168dc6(0x123)]||_0x5e7f5[_0x168dc6(0x10f)]||_0x5e7f5[_0x168dc6(0x110)];}catch{_0x240334=await _0x525ea9[_0x168dc6(0x134)]()[_0x168dc6(0x147)](()=>undefined);}throw CliErrors[_0x168dc6(0x113)](_0x240334||_0x168dc6(0x148)+_0x525ea9['status'],_0x168dc6(0x116)+_0x7dbc98);}return Buffer['from'](await _0x525ea9[_0x168dc6(0x12c)]());}catch(_0x5eb4f1){if(_0x5eb4f1 instanceof Error&&_0x5eb4f1['name']===_0x168dc6(0x128))throw CliErrors['apiError'](_0x168dc6(0x13b)+_0x7dbc98);throw _0x5eb4f1;}finally{clearTimeout(_0x32d3e2);}}export async function getBffScriptInfo(_0xe70ff8){const _0x4a2a7f=a43_0x1603,_0x5ddd5a=await apiRequest(_0x4a2a7f(0x10d)+_0xe70ff8);if(!_0x5ddd5a[_0x4a2a7f(0x144)])throw CliErrors['validation'](_0x4a2a7f(0x129)+_0xe70ff8);return _0x5ddd5a[_0x4a2a7f(0x144)];}export async function getSqlQueryInfo(_0x4fe54b,_0x471d64){const _0x1b72a5=a43_0x1603,_0x1da5c8=await apiRequest('/client/sql/query',{'method':_0x1b72a5(0x122),'body':{'appCode':_0x4fe54b,'currentPage':0x1,'pageSize':0x1,'sqlCode':_0x471d64}}),_0xd224dc=_0x1da5c8[_0x1b72a5(0x144)],_0x876964=_0xd224dc&&typeof _0xd224dc===_0x1b72a5(0x133)&&_0x1b72a5(0x120)in _0xd224dc?_0xd224dc[_0x1b72a5(0x120)]?.[0x0]:_0xd224dc&&typeof _0xd224dc===_0x1b72a5(0x133)&&_0x1b72a5(0x119)in _0xd224dc?_0xd224dc:undefined;if(!_0x876964)throw CliErrors[_0x1b72a5(0x13c)](_0x1b72a5(0x13a)+_0x471d64);return _0x876964;}function a43_0x1603(_0x168938,_0x188329){_0x168938=_0x168938-0x109;const _0x5ad198=a43_0x5ad1();let _0x1603c0=_0x5ad198[_0x168938];return _0x1603c0;}function isRemoteAppItem(_0x305f10){const _0x29acf6=a43_0x1603;return!!_0x305f10&&typeof _0x305f10===_0x29acf6(0x133)&&typeof _0x305f10['appCode']===_0x29acf6(0x115)&&typeof _0x305f10[_0x29acf6(0x10b)]===_0x29acf6(0x115);}function extractRemoteAppItems(_0x258a31){const _0x364b51=a43_0x1603;if(Array[_0x364b51(0x11f)](_0x258a31))return _0x258a31[_0x364b51(0x13f)](isRemoteAppItem);if(!_0x258a31||typeof _0x258a31!=='object')throw CliErrors[_0x364b51(0x113)](_0x364b51(0x143));const _0xe28644=_0x258a31;if(Array[_0x364b51(0x11f)](_0xe28644['tableData']))return _0xe28644['tableData'][_0x364b51(0x13f)](isRemoteAppItem);if(_0xe28644[_0x364b51(0x144)]&&typeof _0xe28644[_0x364b51(0x144)]===_0x364b51(0x133)){const _0x59b36e=_0xe28644[_0x364b51(0x144)];if(Array[_0x364b51(0x11f)](_0x59b36e[_0x364b51(0x120)]))return _0x59b36e[_0x364b51(0x120)]['filter'](isRemoteAppItem);}throw CliErrors[_0x364b51(0x113)](_0x364b51(0x13d));}export async function getMyApps(){const _0x528558=a43_0x1603,_0xc0956b=await apiRequest(_0x528558(0x145));return extractRemoteAppItems(_0xc0956b[_0x528558(0x144)]);}export async function getLoginUserInfo(){const _0x1cb149=a43_0x1603,_0x1da126=await apiRequest('/client/user/loginUserInfo');if(!_0x1da126[_0x1cb149(0x144)]||typeof _0x1da126[_0x1cb149(0x144)]!==_0x1cb149(0x133)||Array[_0x1cb149(0x11f)](_0x1da126[_0x1cb149(0x144)]))throw CliErrors[_0x1cb149(0x113)](_0x1cb149(0x11e));return _0x1da126[_0x1cb149(0x144)];}function a43_0x5ad1(){const _0x49044a=['status','sqlCode','746350SYtglK','/client/knowledge-base/personal/','/client/skill/personal/list?appCode=','?appCode=','Invalid\x20login\x20user\x20info\x20response:\x20expected\x20object.','isArray','tableData','6040zbgtId','POST','errorMsg','json','abort','Configure\x20accessKey\x20in\x20','1jnFMyK','AbortError','BFF\x20script\x20not\x20found:\x20id=','application/json','test','arrayBuffer','333226EKPmiy','signal','7AiokIJ','/update','Check\x20your\x20credentials\x20and\x20try\x20again.','code','object','text','/client/knowledge-base/search','/client/skill/','1157224EGyHAJ','name','/client/skill/personal/create','SQL\x20query\x20not\x20found:\x20','Request\x20timeout:\x20','validation','Invalid\x20app\x20list\x20response:\x20missing\x20data.tableData.','611070vJYijk','filter','/client/skill/company/list?appCode=','/client/dataset/query?','newConfigFileName','Invalid\x20app\x20list\x20response:\x20expected\x20object\x20or\x20array.','data','/client/app/my-apps','380424olZSoZ','catch','API\x20error:\x20','invokeSource','authRequired','117aPxCYD','appName','topK','/client/bff/query/','/client/knowledge-base/personal/list?appCode=','message','errorCode','query','152520AfLcKl','apiError','GET','string','Download\x20failed:\x20','/package?appCode='];a43_0x5ad1=function(){return _0x49044a;};return a43_0x5ad1();}export async function listDatasets(_0x10fe88,_0x3e6d5c){const _0x161563=a43_0x1603,_0x435cde=await apiRequest('/client/dataset/list',{'method':'POST','body':{'appCode':_0x10fe88,..._0x3e6d5c?.[_0x161563(0x132)]&&{'code':_0x3e6d5c[_0x161563(0x132)]},..._0x3e6d5c?.[_0x161563(0x138)]&&{'name':_0x3e6d5c[_0x161563(0x138)]}}});return extractList(_0x435cde[_0x161563(0x144)]);}export async function getDatasetDetail(_0x2a3b51){const _0x4b7e3a=a43_0x1603,_0x386ae6=/^\d+$/[_0x4b7e3a(0x12b)](_0x2a3b51)?'id':_0x4b7e3a(0x132),_0x523c57=await apiRequest(_0x4b7e3a(0x141)+_0x386ae6+'='+_0x2a3b51);return _0x523c57[_0x4b7e3a(0x144)];}export async function listPersonalKnowledgeBaseItems(_0x78872e){const _0x4111d1=a43_0x1603,_0x3617e7=await apiRequest(_0x4111d1(0x10e)+encodeURIComponent(_0x78872e));return Array[_0x4111d1(0x11f)](_0x3617e7[_0x4111d1(0x144)])?_0x3617e7[_0x4111d1(0x144)]:[];}export async function getPersonalKnowledgeBaseItem(_0x200bbc,_0xabda91){const _0x2961c7=a43_0x1603,_0x3e51bf=await apiRequest(_0x2961c7(0x11b)+_0x200bbc+_0x2961c7(0x11d)+encodeURIComponent(_0xabda91));if(!_0x3e51bf['data'])throw CliErrors[_0x2961c7(0x13c)]('Knowledge-base\x20entry\x20not\x20found:\x20id='+_0x200bbc);return _0x3e51bf[_0x2961c7(0x144)];}export async function createPersonalKnowledgeBaseItem(_0x245d15,_0x126ee9){const _0x566019=a43_0x1603,_0x536723=await apiRequest('/client/knowledge-base/personal/create',{'method':'POST','body':{'appCode':_0x245d15,..._0x126ee9}});return _0x536723[_0x566019(0x144)];}export async function updatePersonalKnowledgeBaseItem(_0x325349,_0x72963b,_0x4e13d2){const _0x22597f=a43_0x1603,_0x59fd31=await apiRequest('/client/knowledge-base/personal/'+_0x325349+_0x22597f(0x130),{'method':_0x22597f(0x122),'body':{'appCode':_0x72963b,..._0x4e13d2}});return _0x59fd31['data'];}export async function searchKnowledgeBase(_0x4b83fa,_0x722811){const _0x1cc590=a43_0x1603,_0x33f5cf=await apiRequest(_0x1cc590(0x135),{'method':_0x1cc590(0x122),'body':{'appCode':_0x4b83fa,'query':_0x722811[_0x1cc590(0x111)],..._0x722811[_0x1cc590(0x10c)]!==undefined?{'topK':_0x722811[_0x1cc590(0x10c)]}:{}}});return Array[_0x1cc590(0x11f)](_0x33f5cf[_0x1cc590(0x144)])?_0x33f5cf[_0x1cc590(0x144)]:[];}export async function listPersonalRuntimeSkills(_0x1f6dd5){const _0x17aedf=a43_0x1603,_0x45ab3b=await apiRequest(_0x17aedf(0x11c)+encodeURIComponent(_0x1f6dd5));return Array[_0x17aedf(0x11f)](_0x45ab3b['data'])?_0x45ab3b[_0x17aedf(0x144)]:[];}export async function listCompanyRuntimeSkills(_0x175f79){const _0x17ef8a=a43_0x1603,_0x30564c=await apiRequest(_0x17ef8a(0x140)+encodeURIComponent(_0x175f79));return Array[_0x17ef8a(0x11f)](_0x30564c[_0x17ef8a(0x144)])?_0x30564c[_0x17ef8a(0x144)]:[];}export async function createPersonalRuntimeSkill(_0x85dd8c,_0x26c3a1){const _0x44364c=a43_0x1603,_0xeed666=await apiRequest(_0x44364c(0x139),{'method':_0x44364c(0x122),'body':{'appCode':_0x85dd8c,..._0x26c3a1}});return _0xeed666['data'];}export async function updatePersonalRuntimeSkill(_0x1f52b2,_0x18892d,_0x201c70){const _0x5b14da=a43_0x1603,_0x11032e=await apiRequest('/client/skill/personal/'+encodeURIComponent(_0x1f52b2)+_0x5b14da(0x130),{'method':_0x5b14da(0x122),'body':{'appCode':_0x18892d,..._0x201c70}});return _0x11032e['data'];}export async function downloadRuntimeSkillPackage(_0x18aa4a,_0x1aa5fd,_0x359244){const _0x5c57f2=a43_0x1603;return apiBinaryRequest(_0x5c57f2(0x136)+encodeURIComponent(_0x18aa4a)+'/'+encodeURIComponent(_0x1aa5fd)+_0x5c57f2(0x117)+encodeURIComponent(_0x359244));}
1
+ (function(_0x373634,_0x2300f8){const _0x357726=a47_0x5bd0,_0xf2693a=_0x373634();while(!![]){try{const _0x46f3ac=-parseInt(_0x357726(0x114))/0x1+parseInt(_0x357726(0xe5))/0x2+-parseInt(_0x357726(0x123))/0x3*(-parseInt(_0x357726(0xee))/0x4)+-parseInt(_0x357726(0x127))/0x5+-parseInt(_0x357726(0xf0))/0x6*(-parseInt(_0x357726(0x137))/0x7)+parseInt(_0x357726(0x11a))/0x8+-parseInt(_0x357726(0xe6))/0x9;if(_0x46f3ac===_0x2300f8)break;else _0xf2693a['push'](_0xf2693a['shift']());}catch(_0x4a37a0){_0xf2693a['push'](_0xf2693a['shift']());}}}(a47_0x4972,0x84864));import{getApiDomain,getRuntimeDomain}from'../constant/domain.js';import{PRODUCT_CONFIG}from'../constant/product.js';import{CliErrors}from'../errors.js';function a47_0x5bd0(_0x5dcecf,_0xe92064){_0x5dcecf=_0x5dcecf-0xe3;const _0x4972e4=a47_0x4972();let _0x5bd05e=_0x4972e4[_0x5dcecf];return _0x5bd05e;}import{extractList}from'../framework/response.js';let _activeAK;export function setActiveAK(_0x354ee8){_activeAK=_0x354ee8||undefined;}export function clearActiveAK(){_activeAK=undefined;}async function apiRequest(_0x271680,_0x2d3356={}){const _0xa689c2=a47_0x5bd0,{method:method=_0xa689c2(0x11c),body:_0x1439c4,headers:headers={},timeout:timeout=0x7530}=_0x2d3356,_0x437b55=_activeAK,_0x2090e6=getRuntimeDomain();if(!_0x437b55)throw CliErrors[_0xa689c2(0x138)]('Configure\x20accessKey\x20in\x20'+PRODUCT_CONFIG[_0xa689c2(0x129)]+'.');const _0x48bc90=''+_0x2090e6+_0x271680,_0x241a10={'X-User-AK':_0x437b55},_0x1b5734=new AbortController(),_0x3334c3=setTimeout(()=>_0x1b5734[_0xa689c2(0x119)](),timeout);try{const _0x45ebac=await fetch(_0x48bc90,{'method':method,'headers':{'Content-Type':_0xa689c2(0x10a),'X-Invoke-Source':PRODUCT_CONFIG[_0xa689c2(0x13a)],..._0x241a10,...headers},'body':_0x1439c4?JSON[_0xa689c2(0x103)](_0x1439c4):undefined,'signal':_0x1b5734[_0xa689c2(0x10c)]});let _0x5e9259;try{_0x5e9259=await _0x45ebac[_0xa689c2(0x130)]();}catch{throw CliErrors[_0xa689c2(0x102)]('API\x20returned\x20non-JSON\x20response\x20(HTTP\x20'+_0x45ebac[_0xa689c2(0x11f)]+')',_0x45ebac['status']>=0x190?'Check\x20your\x20credentials\x20and\x20try\x20again.':undefined);}if(!_0x45ebac['ok']||_0x5e9259[_0xa689c2(0xf7)]===![])throw CliErrors['apiError'](_0x5e9259[_0xa689c2(0xfc)]||_0x5e9259[_0xa689c2(0x101)]||_0xa689c2(0xf9)+_0x45ebac[_0xa689c2(0x11f)],_0x5e9259['errorCode']?_0xa689c2(0x12a)+_0x5e9259[_0xa689c2(0x10b)]:undefined);return _0x5e9259;}catch(_0x34953f){if(_0x34953f instanceof Error&&_0x34953f['name']===_0xa689c2(0x104))throw CliErrors['apiError']('Request\x20timeout:\x20'+_0x48bc90);throw _0x34953f;}finally{clearTimeout(_0x3334c3);}}function a47_0x4972(){const _0x291046=['/update','tableData','errorMsg','entries','source','/client/skill/personal/list?appCode=','replace','message','apiError','stringify','AbortError','Download\x20failed:\x20','text','/api/node-toolbox/','appCode','Toolbox\x20API\x20error','application/json','errorCode','signal','markdown','filter','/client/knowledge-base/personal/','/client/dataset/list','SQL\x20query\x20not\x20found:\x20','/client/knowledge-base/personal/list?appCode=','/client/runtime-bff/personal/','337305NAhafL','/client/skill/personal/','Configure\x20accessKey\x20in\x20','Request\x20timeout:\x20','/client/sql/query','abort','4146696UvoRfN','artifactType','GET','toString','/client/runtime-bff/personal/create','status','from','/client/knowledge-base/search','POST','9CsxMXQ','/package?appCode=','test','object','2052880YIobMX','boolean','newConfigFileName','API\x20error\x20code:\x20','set','name','/client/runtime-bff/personal/list?appCode=','Check\x20your\x20credentials\x20and\x20try\x20again.','code','json','/client/app/my-apps','isArray','validation','Knowledge-base\x20entry\x20not\x20found:\x20id=','/client/artifact/','/client/dataset/query?','49441BPALiX','authRequired','sqlCode','invokeSource','Toolbox\x20error\x20code:\x20','/client/user/loginUserInfo','/client/skill/','searchParams','1365680xzvFDe','10674198KUdZeh','/client/artifact/list?','BFF\x20script\x20not\x20found:\x20id=','api-doc-generator','/client/bff/query/','/client/skill/company/list?appCode=','topK','Toolbox\x20returned\x20non-JSON\x20response\x20(HTTP\x20','1220444MSqWpg','?appCode=','306SHRixO','Invalid\x20app\x20list\x20response:\x20missing\x20data.tableData.','data','favorite','string','/client/artifact/create','Invalid\x20app\x20list\x20response:\x20expected\x20object\x20or\x20array.','success','query','API\x20error:\x20'];a47_0x4972=function(){return _0x291046;};return a47_0x4972();}async function apiBinaryRequest(_0x172dd3,_0x825b8a={}){const _0x43ef37=a47_0x5bd0,{method:method='GET',headers:headers={},timeout:timeout=0x7530}=_0x825b8a,_0xd953ed=_activeAK,_0x1f5c7c=getRuntimeDomain();if(!_0xd953ed)throw CliErrors[_0x43ef37(0x138)]('Configure\x20accessKey\x20in\x20'+PRODUCT_CONFIG[_0x43ef37(0x129)]+'.');const _0x191b6c=''+_0x1f5c7c+_0x172dd3,_0x36ae3d=new AbortController(),_0x185513=setTimeout(()=>_0x36ae3d['abort'](),timeout);try{const _0x1c8bc7=await fetch(_0x191b6c,{'method':method,'headers':{'X-Invoke-Source':PRODUCT_CONFIG['invokeSource'],'X-User-AK':_0xd953ed,...headers},'signal':_0x36ae3d[_0x43ef37(0x10c)]});if(!_0x1c8bc7['ok']){let _0x47ff71;try{const _0x13fb76=await _0x1c8bc7[_0x43ef37(0x130)]();_0x47ff71=_0x13fb76['errorMsg']||_0x13fb76[_0x43ef37(0x101)]||_0x13fb76[_0x43ef37(0x10b)];}catch{_0x47ff71=await _0x1c8bc7[_0x43ef37(0x106)]()['catch'](()=>undefined);}throw CliErrors['apiError'](_0x47ff71||_0x43ef37(0xf9)+_0x1c8bc7['status'],_0x43ef37(0x105)+_0x191b6c);}return Buffer[_0x43ef37(0x120)](await _0x1c8bc7['arrayBuffer']());}catch(_0x21d789){if(_0x21d789 instanceof Error&&_0x21d789[_0x43ef37(0x12c)]===_0x43ef37(0x104))throw CliErrors[_0x43ef37(0x102)](_0x43ef37(0x117)+_0x191b6c);throw _0x21d789;}finally{clearTimeout(_0x185513);}}async function toolboxRequest(_0x38ba06,_0x482231,_0x25c8a={}){const _0x1d22c5=a47_0x5bd0,{method:method=_0x1d22c5(0x11c),headers:headers={},timeout:timeout=0x7530}=_0x25c8a,_0x3e5e47=_activeAK;if(!_0x3e5e47)throw CliErrors['authRequired'](_0x1d22c5(0x116)+PRODUCT_CONFIG[_0x1d22c5(0x129)]+'.');const _0x1d0961=getApiDomain()[_0x1d22c5(0x100)](/\/$/,''),_0x230d25=new URL(_0x38ba06,_0x1d0961+_0x1d22c5(0x107));if(_0x482231)for(const [_0x52bbe9,_0xbbdae2]of Object[_0x1d22c5(0xfd)](_0x482231)){_0xbbdae2!==undefined&&_0xbbdae2!==null&&_0x230d25[_0x1d22c5(0xe4)]['set'](_0x52bbe9,String(_0xbbdae2));}const _0xe23802=new AbortController(),_0x186887=setTimeout(()=>_0xe23802[_0x1d22c5(0x119)](),timeout);try{const _0x2a9759=await fetch(_0x230d25,{'method':method,'headers':{'Content-Type':_0x1d22c5(0x10a),'X-Invoke-Source':PRODUCT_CONFIG[_0x1d22c5(0x13a)],'X-User-AK':_0x3e5e47,...headers},'signal':_0xe23802['signal']});let _0x330f4e;try{_0x330f4e=await _0x2a9759[_0x1d22c5(0x130)]();}catch{throw CliErrors[_0x1d22c5(0x102)](_0x1d22c5(0xed)+_0x2a9759['status']+')',_0x2a9759['status']>=0x190?_0x1d22c5(0x12e):undefined);}if(!_0x2a9759['ok']){const _0x5d0962=_0x330f4e&&typeof _0x330f4e===_0x1d22c5(0x126)?_0x330f4e:{};throw CliErrors['apiError'](_0x5d0962[_0x1d22c5(0xfc)]||_0x5d0962[_0x1d22c5(0x101)]||'Toolbox\x20API\x20error:\x20'+_0x2a9759[_0x1d22c5(0x11f)],_0x5d0962[_0x1d22c5(0x10b)]?_0x1d22c5(0x13b)+_0x5d0962['errorCode']:undefined);}if(_0x330f4e&&typeof _0x330f4e===_0x1d22c5(0x126)&&_0x1d22c5(0xf7)in _0x330f4e&&typeof _0x330f4e[_0x1d22c5(0xf7)]===_0x1d22c5(0x128)){const _0x5d0fa6=_0x330f4e;if(!_0x5d0fa6[_0x1d22c5(0xf7)])throw CliErrors['apiError'](_0x5d0fa6[_0x1d22c5(0xfc)]||_0x5d0fa6['message']||_0x1d22c5(0x109),_0x5d0fa6[_0x1d22c5(0x10b)]?_0x1d22c5(0x13b)+_0x5d0fa6[_0x1d22c5(0x10b)]:undefined);return _0x5d0fa6[_0x1d22c5(0xf2)];}return _0x330f4e;}catch(_0x36c6b3){if(_0x36c6b3 instanceof Error&&_0x36c6b3[_0x1d22c5(0x12c)]===_0x1d22c5(0x104))throw CliErrors[_0x1d22c5(0x102)]('Request\x20timeout:\x20'+_0x230d25['toString']());throw _0x36c6b3;}finally{clearTimeout(_0x186887);}}export async function getBffScriptInfo(_0x5cfbcf){const _0x49f0d8=a47_0x5bd0,_0x442ac5=await apiRequest(_0x49f0d8(0xea)+_0x5cfbcf);if(!_0x442ac5[_0x49f0d8(0xf2)])throw CliErrors[_0x49f0d8(0x133)](_0x49f0d8(0xe8)+_0x5cfbcf);return _0x442ac5[_0x49f0d8(0xf2)];}export async function getSqlQueryInfo(_0xedc476,_0x4667dc){const _0x2d383a=a47_0x5bd0,_0x13b4da=await apiRequest(_0x2d383a(0x118),{'method':_0x2d383a(0x122),'body':{'appCode':_0xedc476,'currentPage':0x1,'pageSize':0x1,'sqlCode':_0x4667dc}}),_0x343bf9=_0x13b4da[_0x2d383a(0xf2)],_0x52549f=_0x343bf9&&typeof _0x343bf9==='object'&&_0x2d383a(0xfb)in _0x343bf9?_0x343bf9[_0x2d383a(0xfb)]?.[0x0]:_0x343bf9&&typeof _0x343bf9===_0x2d383a(0x126)&&_0x2d383a(0x139)in _0x343bf9?_0x343bf9:undefined;if(!_0x52549f)throw CliErrors[_0x2d383a(0x133)](_0x2d383a(0x111)+_0x4667dc);return _0x52549f;}function isRemoteAppItem(_0x15b353){const _0x317773=a47_0x5bd0;return!!_0x15b353&&typeof _0x15b353===_0x317773(0x126)&&typeof _0x15b353[_0x317773(0x108)]===_0x317773(0xf4)&&typeof _0x15b353['appName']===_0x317773(0xf4);}function extractRemoteAppItems(_0x4a475e){const _0x4fc14b=a47_0x5bd0;if(Array[_0x4fc14b(0x132)](_0x4a475e))return _0x4a475e[_0x4fc14b(0x10e)](isRemoteAppItem);if(!_0x4a475e||typeof _0x4a475e!==_0x4fc14b(0x126))throw CliErrors['apiError'](_0x4fc14b(0xf6));const _0x6ad860=_0x4a475e;if(Array[_0x4fc14b(0x132)](_0x6ad860[_0x4fc14b(0xfb)]))return _0x6ad860[_0x4fc14b(0xfb)][_0x4fc14b(0x10e)](isRemoteAppItem);if(_0x6ad860[_0x4fc14b(0xf2)]&&typeof _0x6ad860[_0x4fc14b(0xf2)]===_0x4fc14b(0x126)){const _0x1bd1f3=_0x6ad860[_0x4fc14b(0xf2)];if(Array[_0x4fc14b(0x132)](_0x1bd1f3[_0x4fc14b(0xfb)]))return _0x1bd1f3[_0x4fc14b(0xfb)][_0x4fc14b(0x10e)](isRemoteAppItem);}throw CliErrors[_0x4fc14b(0x102)](_0x4fc14b(0xf1));}export async function getMyApps(){const _0x47c058=a47_0x5bd0,_0x1a36f3=await apiRequest(_0x47c058(0x131));return extractRemoteAppItems(_0x1a36f3['data']);}export async function getLoginUserInfo(){const _0x4f0ed2=a47_0x5bd0,_0x1bc784=await apiRequest(_0x4f0ed2(0x13c));if(!_0x1bc784['data']||typeof _0x1bc784[_0x4f0ed2(0xf2)]!=='object'||Array[_0x4f0ed2(0x132)](_0x1bc784[_0x4f0ed2(0xf2)]))throw CliErrors['apiError']('Invalid\x20login\x20user\x20info\x20response:\x20expected\x20object.');return _0x1bc784[_0x4f0ed2(0xf2)];}export async function listDatasets(_0x59e0e7,_0x1e5d45){const _0x1266cb=a47_0x5bd0,_0x9dd8ba=await apiRequest(_0x1266cb(0x110),{'method':'POST','body':{'appCode':_0x59e0e7,..._0x1e5d45?.[_0x1266cb(0x12f)]&&{'code':_0x1e5d45[_0x1266cb(0x12f)]},..._0x1e5d45?.[_0x1266cb(0x12c)]&&{'name':_0x1e5d45['name']}}});return extractList(_0x9dd8ba[_0x1266cb(0xf2)]);}export async function getDatasetDetail(_0x28b51b){const _0x895b6c=a47_0x5bd0,_0x248d80=/^\d+$/[_0x895b6c(0x125)](_0x28b51b)?'id':_0x895b6c(0x12f),_0x1f7446=await apiRequest(_0x895b6c(0x136)+_0x248d80+'='+_0x28b51b);return _0x1f7446['data'];}export async function getDatasetSdkUsageDoc(_0x535a70,_0x20a893){const _0x3c2603=a47_0x5bd0,_0x53a662=await toolboxRequest(_0x3c2603(0xe9),{'datasetCode':_0x535a70,'appCode':_0x20a893});return typeof _0x53a662?.[_0x3c2603(0x10d)]==='string'?_0x53a662[_0x3c2603(0x10d)]:'';}export async function listRuntimeArtifacts(_0x18d9fa,_0x2d3aa8){const _0x4caaaa=a47_0x5bd0,_0xfa7c79=new URLSearchParams({'appCode':_0x18d9fa});if(_0x2d3aa8?.['artifactType'])_0xfa7c79[_0x4caaaa(0x12b)](_0x4caaaa(0x11b),_0x2d3aa8[_0x4caaaa(0x11b)]);if(_0x2d3aa8?.[_0x4caaaa(0xfe)])_0xfa7c79[_0x4caaaa(0x12b)](_0x4caaaa(0xfe),_0x2d3aa8[_0x4caaaa(0xfe)]);if(_0x2d3aa8?.['favorite']!==undefined)_0xfa7c79['set'](_0x4caaaa(0xf3),String(_0x2d3aa8[_0x4caaaa(0xf3)]));const _0x42bdec=await apiRequest(_0x4caaaa(0xe7)+_0xfa7c79[_0x4caaaa(0x11d)]());return Array[_0x4caaaa(0x132)](_0x42bdec[_0x4caaaa(0xf2)])?_0x42bdec['data']:[];}export async function getRuntimeArtifact(_0x4accaf,_0x39e5b0){const _0x14b440=a47_0x5bd0,_0x190265=await apiRequest(_0x14b440(0x135)+_0x4accaf+_0x14b440(0xef)+encodeURIComponent(_0x39e5b0));if(!_0x190265[_0x14b440(0xf2)])throw CliErrors[_0x14b440(0x133)]('Artifact\x20not\x20found:\x20id='+_0x4accaf);return _0x190265[_0x14b440(0xf2)];}export async function createRuntimeArtifact(_0xeac3cd,_0x55b3fe){const _0x205b01=a47_0x5bd0,_0x3353b1=await apiRequest(_0x205b01(0xf5),{'method':_0x205b01(0x122),'body':{'appCode':_0xeac3cd,..._0x55b3fe}});return _0x3353b1[_0x205b01(0xf2)];}export async function updateRuntimeArtifact(_0x23af97,_0x5ab993,_0x7ee99f){const _0x58287a=a47_0x5bd0,_0x8dfc55=await apiRequest('/client/artifact/'+_0x23af97+_0x58287a(0xfa),{'method':'POST','body':{'appCode':_0x5ab993,..._0x7ee99f}});return _0x8dfc55[_0x58287a(0xf2)];}export async function listPersonalBffs(_0x276a7e){const _0x4d1db4=a47_0x5bd0,_0x2a4999=await apiRequest(_0x4d1db4(0x12d)+encodeURIComponent(_0x276a7e));return Array['isArray'](_0x2a4999[_0x4d1db4(0xf2)])?_0x2a4999[_0x4d1db4(0xf2)]:[];}export async function getPersonalBff(_0x4ac122,_0x264303){const _0x222357=a47_0x5bd0,_0x2a3d8a=await apiRequest(_0x222357(0x113)+_0x4ac122+_0x222357(0xef)+encodeURIComponent(_0x264303));if(!_0x2a3d8a[_0x222357(0xf2)])throw CliErrors[_0x222357(0x133)]('Personal\x20BFF\x20not\x20found:\x20id='+_0x4ac122);return _0x2a3d8a[_0x222357(0xf2)];}export async function createPersonalBff(_0x321ba8,_0x237657){const _0x4b4046=a47_0x5bd0,_0x3f3c85=await apiRequest(_0x4b4046(0x11e),{'method':_0x4b4046(0x122),'body':{'appCode':_0x321ba8,..._0x237657}});return _0x3f3c85[_0x4b4046(0xf2)];}export async function updatePersonalBff(_0x458c02,_0x2cba8d,_0x5474b1){const _0x14f383=a47_0x5bd0,_0x100ed7=await apiRequest(_0x14f383(0x113)+_0x458c02+'/update',{'method':_0x14f383(0x122),'body':{'appCode':_0x2cba8d,..._0x5474b1}});return _0x100ed7[_0x14f383(0xf2)];}export async function executePersonalBff(_0x49e23,_0x181003,_0x234637){const _0x12af61=a47_0x5bd0,_0x888ad=await apiRequest(_0x12af61(0x113)+_0x49e23+'/execute?appCode='+encodeURIComponent(_0x181003),{'method':_0x12af61(0x122),'body':_0x234637});return _0x888ad[_0x12af61(0xf2)];}export async function listPersonalKnowledgeBaseItems(_0x9c390){const _0x204b75=a47_0x5bd0,_0x463973=await apiRequest(_0x204b75(0x112)+encodeURIComponent(_0x9c390));return Array[_0x204b75(0x132)](_0x463973['data'])?_0x463973[_0x204b75(0xf2)]:[];}export async function getPersonalKnowledgeBaseItem(_0x3bf0f6,_0x3f2358){const _0x4b08a3=a47_0x5bd0,_0x23282f=await apiRequest(_0x4b08a3(0x10f)+_0x3bf0f6+_0x4b08a3(0xef)+encodeURIComponent(_0x3f2358));if(!_0x23282f['data'])throw CliErrors[_0x4b08a3(0x133)](_0x4b08a3(0x134)+_0x3bf0f6);return _0x23282f[_0x4b08a3(0xf2)];}export async function createPersonalKnowledgeBaseItem(_0x170aee,_0x188051){const _0x10fbac=await apiRequest('/client/knowledge-base/personal/create',{'method':'POST','body':{'appCode':_0x170aee,..._0x188051}});return _0x10fbac['data'];}export async function updatePersonalKnowledgeBaseItem(_0x5212e7,_0x537585,_0x12c2a3){const _0x35f506=a47_0x5bd0,_0x8ff80d=await apiRequest(_0x35f506(0x10f)+_0x5212e7+_0x35f506(0xfa),{'method':_0x35f506(0x122),'body':{'appCode':_0x537585,..._0x12c2a3}});return _0x8ff80d[_0x35f506(0xf2)];}export async function searchKnowledgeBase(_0x458e6d,_0x482338){const _0x53ac47=a47_0x5bd0,_0x283448=await apiRequest(_0x53ac47(0x121),{'method':_0x53ac47(0x122),'body':{'appCode':_0x458e6d,'query':_0x482338[_0x53ac47(0xf8)],..._0x482338[_0x53ac47(0xec)]!==undefined?{'topK':_0x482338[_0x53ac47(0xec)]}:{}}});return Array[_0x53ac47(0x132)](_0x283448['data'])?_0x283448[_0x53ac47(0xf2)]:[];}export async function listPersonalRuntimeSkills(_0x45a19b){const _0x5f5ca2=a47_0x5bd0,_0x31d49b=await apiRequest(_0x5f5ca2(0xff)+encodeURIComponent(_0x45a19b));return Array[_0x5f5ca2(0x132)](_0x31d49b[_0x5f5ca2(0xf2)])?_0x31d49b[_0x5f5ca2(0xf2)]:[];}export async function listCompanyRuntimeSkills(_0x267887){const _0x4a7d27=a47_0x5bd0,_0x8989dc=await apiRequest(_0x4a7d27(0xeb)+encodeURIComponent(_0x267887));return Array[_0x4a7d27(0x132)](_0x8989dc[_0x4a7d27(0xf2)])?_0x8989dc[_0x4a7d27(0xf2)]:[];}export async function createPersonalRuntimeSkill(_0x55a708,_0x3e2b3f){const _0x16fba0=a47_0x5bd0,_0x47194d=await apiRequest('/client/skill/personal/create',{'method':_0x16fba0(0x122),'body':{'appCode':_0x55a708,..._0x3e2b3f}});return _0x47194d[_0x16fba0(0xf2)];}export async function updatePersonalRuntimeSkill(_0x591ad5,_0x15fce0,_0x45f7b2){const _0x292f8a=a47_0x5bd0,_0x1d77e3=await apiRequest(_0x292f8a(0x115)+encodeURIComponent(_0x591ad5)+'/update',{'method':_0x292f8a(0x122),'body':{'appCode':_0x15fce0,..._0x45f7b2}});return _0x1d77e3[_0x292f8a(0xf2)];}export async function downloadRuntimeSkillPackage(_0x3f5ab5,_0x245eeb,_0x193147){const _0x303553=a47_0x5bd0;return apiBinaryRequest(_0x303553(0xe3)+encodeURIComponent(_0x3f5ab5)+'/'+encodeURIComponent(_0x245eeb)+_0x303553(0x124)+encodeURIComponent(_0x193147));}
@@ -1 +1 @@
1
- (function(_0x1270db,_0x281cee){const _0x498183=a44_0x4b3d,_0x104b68=_0x1270db();while(!![]){try{const _0x10b0aa=parseInt(_0x498183(0x88))/0x1*(parseInt(_0x498183(0x7f))/0x2)+-parseInt(_0x498183(0x80))/0x3+parseInt(_0x498183(0x87))/0x4*(parseInt(_0x498183(0x7d))/0x5)+parseInt(_0x498183(0x84))/0x6+parseInt(_0x498183(0x7c))/0x7*(parseInt(_0x498183(0x86))/0x8)+-parseInt(_0x498183(0x85))/0x9*(parseInt(_0x498183(0x8a))/0xa)+-parseInt(_0x498183(0x8b))/0xb;if(_0x10b0aa===_0x281cee)break;else _0x104b68['push'](_0x104b68['shift']());}catch(_0x32c257){_0x104b68['push'](_0x104b68['shift']());}}}(a44_0x26c4,0xe51f5));import{listDatasets}from'../core/api-client.js';function a44_0x4b3d(_0x3d1444,_0xe46b00){_0x3d1444=_0x3d1444-0x7c;const _0x26c414=a44_0x26c4();let _0x4b3d6c=_0x26c414[_0x3d1444];return _0x4b3d6c;}const cache=new Map();export async function listDatabases(_0x4c0d95){const _0x23ad83=a44_0x4b3d;if(cache['has'](_0x4c0d95))return cache['get'](_0x4c0d95);const _0x310444=await listDatasets(_0x4c0d95),_0x2f5d71=new Map();for(const _0x1d2e07 of _0x310444){const _0x1adae4=_0x1d2e07['dbtableConfig'];_0x1adae4?.['dbId']!=null&&_0x2f5d71[_0x23ad83(0x7e)](_0x1adae4[_0x23ad83(0x81)],_0x1adae4['dbName']??_0x23ad83(0x89)+_0x1adae4[_0x23ad83(0x81)]);}const _0x145bc8=[..._0x2f5d71[_0x23ad83(0x82)]()]['map'](([_0x4168da,_0x4cba35])=>({'dbId':_0x4168da,'dbName':_0x4cba35}));return cache[_0x23ad83(0x7e)](_0x4c0d95,_0x145bc8),_0x145bc8;}function a44_0x26c4(){const _0x4cb3c6=['7642062dsKpZM','1268464oWnjUp','716SpUOTy','247dDwkdW','db-','10ydwwmu','2631585txMAFN','35RhTAXy','45070AvDrOO','set','1840iuiFUA','4254351OpErDn','dbId','entries','find','4868514YWgAkz'];a44_0x26c4=function(){return _0x4cb3c6;};return a44_0x26c4();}export async function getDbName(_0x470c26,_0x3f8e00){const _0x2f0db8=a44_0x4b3d;try{const _0x28c63d=await listDatabases(_0x470c26);return _0x28c63d[_0x2f0db8(0x83)](_0x23ee3f=>_0x23ee3f[_0x2f0db8(0x81)]===_0x3f8e00)?.['dbName'];}catch{return undefined;}}
1
+ (function(_0x38a158,_0xf588b2){const _0x3984ed=a48_0x579e,_0x11ffb5=_0x38a158();while(!![]){try{const _0x260637=parseInt(_0x3984ed(0x1a1))/0x1+parseInt(_0x3984ed(0x19d))/0x2*(parseInt(_0x3984ed(0x1a2))/0x3)+parseInt(_0x3984ed(0x195))/0x4+parseInt(_0x3984ed(0x19a))/0x5*(-parseInt(_0x3984ed(0x1a5))/0x6)+-parseInt(_0x3984ed(0x197))/0x7*(-parseInt(_0x3984ed(0x194))/0x8)+parseInt(_0x3984ed(0x1a4))/0x9+parseInt(_0x3984ed(0x1a3))/0xa*(-parseInt(_0x3984ed(0x1a0))/0xb);if(_0x260637===_0xf588b2)break;else _0x11ffb5['push'](_0x11ffb5['shift']());}catch(_0x578d5e){_0x11ffb5['push'](_0x11ffb5['shift']());}}}(a48_0x1285,0xc5e10));import{listDatasets}from'../core/api-client.js';function a48_0x579e(_0x566ea5,_0x1d1a93){_0x566ea5=_0x566ea5-0x194;const _0x12853c=a48_0x1285();let _0x579e6f=_0x12853c[_0x566ea5];return _0x579e6f;}const cache=new Map();function a48_0x1285(){const _0x465cbd=['map','7WFHhiV','set','has','20ZAqwge','entries','find','8xuHMUr','dbId','dbName','25509EglzLT','54846XDXYRj','348747InEFQa','8570MdwlLb','11810691nBtgqx','2239692VbXekn','db-','11968296OjxYkz','3851380GJxoQY'];a48_0x1285=function(){return _0x465cbd;};return a48_0x1285();}export async function listDatabases(_0x2bde8d){const _0x554c23=a48_0x579e;if(cache[_0x554c23(0x199)](_0x2bde8d))return cache['get'](_0x2bde8d);const _0x56c131=await listDatasets(_0x2bde8d),_0x109204=new Map();for(const _0x409da1 of _0x56c131){const _0x30568a=_0x409da1['dbtableConfig'];_0x30568a?.[_0x554c23(0x19e)]!=null&&_0x109204[_0x554c23(0x198)](_0x30568a['dbId'],_0x30568a[_0x554c23(0x19f)]??_0x554c23(0x1a6)+_0x30568a[_0x554c23(0x19e)]);}const _0x1a7571=[..._0x109204[_0x554c23(0x19b)]()][_0x554c23(0x196)](([_0x4b09c7,_0x56b65a])=>({'dbId':_0x4b09c7,'dbName':_0x56b65a}));return cache[_0x554c23(0x198)](_0x2bde8d,_0x1a7571),_0x1a7571;}export async function getDbName(_0x248050,_0x3868dd){const _0x1334e4=a48_0x579e;try{const _0x2661c6=await listDatabases(_0x248050);return _0x2661c6[_0x1334e4(0x19c)](_0x4f4aeb=>_0x4f4aeb['dbId']===_0x3868dd)?.[_0x1334e4(0x19f)];}catch{return undefined;}}