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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (70) hide show
  1. package/lib/cli.js +1 -1
  2. package/lib/commands/app/cache.js +1 -1
  3. package/lib/commands/app/definitions.js +1 -1
  4. package/lib/commands/app/mock-loader.js +1 -1
  5. package/lib/commands/app/remote-source.js +1 -1
  6. package/lib/commands/app/shared.js +1 -1
  7. package/lib/commands/auth/index.js +1 -1
  8. package/lib/commands/auth/prompt.js +1 -1
  9. package/lib/commands/bff/detail.js +1 -1
  10. package/lib/commands/bff/exec.js +1 -1
  11. package/lib/commands/bff/index.js +1 -1
  12. package/lib/commands/common/config-policy.js +1 -1
  13. package/lib/commands/common/constraints.js +1 -1
  14. package/lib/commands/common/flags.js +1 -1
  15. package/lib/commands/config/definitions.js +1 -1
  16. package/lib/commands/config/shared.js +1 -1
  17. package/lib/commands/data/index.js +1 -1
  18. package/lib/commands/dataset/detail.js +1 -1
  19. package/lib/commands/dataset/index.js +1 -1
  20. package/lib/commands/dataset/list.js +1 -1
  21. package/lib/commands/doctor.js +1 -1
  22. package/lib/commands/init.js +1 -1
  23. package/lib/commands/kb/index.js +1 -0
  24. package/lib/commands/logs/index.js +1 -1
  25. package/lib/commands/registry.js +1 -1
  26. package/lib/commands/schema.js +1 -1
  27. package/lib/commands/skill/index.js +1 -1
  28. package/lib/commands/sql/detail.js +1 -1
  29. package/lib/commands/sql/exec.js +1 -1
  30. package/lib/commands/sql/index.js +1 -1
  31. package/lib/commands/update.js +1 -1
  32. package/lib/config/schema.js +1 -1
  33. package/lib/constant/auth-mode.js +1 -1
  34. package/lib/constant/cli.js +1 -1
  35. package/lib/constant/defaults.js +1 -1
  36. package/lib/constant/distribution.js +1 -1
  37. package/lib/constant/domain.js +1 -1
  38. package/lib/constant/env.js +1 -1
  39. package/lib/constant/output.js +1 -1
  40. package/lib/constant/product.js +1 -1
  41. package/lib/constant/risk.js +1 -1
  42. package/lib/constant/url.js +1 -1
  43. package/lib/context.js +1 -1
  44. package/lib/core/api-client.js +1 -1
  45. package/lib/core/db-resolver.js +1 -1
  46. package/lib/core/sdk-client.js +1 -1
  47. package/lib/errors.js +1 -1
  48. package/lib/framework/build-all-flags.js +1 -1
  49. package/lib/framework/dryrun.js +1 -1
  50. package/lib/framework/flags.js +1 -1
  51. package/lib/framework/help.js +1 -1
  52. package/lib/framework/index.js +1 -1
  53. package/lib/framework/output.js +1 -1
  54. package/lib/framework/preparse.js +1 -1
  55. package/lib/framework/response.js +1 -1
  56. package/lib/framework/runner-confirmation.js +1 -1
  57. package/lib/framework/runner-error.js +1 -1
  58. package/lib/framework/runner.js +1 -1
  59. package/lib/framework/schema-export.js +1 -1
  60. package/lib/framework/types.js +1 -1
  61. package/lib/help.js +1 -1
  62. package/lib/skills/npx-skills-add.js +1 -1
  63. package/lib/skills/runtime-skill-sync.js +1 -0
  64. package/lib/utils/apply-jq-filter.js +1 -1
  65. package/lib/utils/logger.js +1 -1
  66. package/lib/utils/params.js +1 -1
  67. package/lib/utils/platform.js +1 -1
  68. package/lib/utils/version.js +1 -1
  69. package/lib/utils/write-cli-side-channel.js +1 -1
  70. package/package.json +1 -1
@@ -1 +1 @@
1
- const a29_0x23b207=a29_0x3347;(function(_0x20bbd5,_0x507d7f){const _0x380bf6=a29_0x3347,_0x102a25=_0x20bbd5();while(!![]){try{const _0x577d8e=-parseInt(_0x380bf6(0xaf))/0x1*(-parseInt(_0x380bf6(0xb7))/0x2)+parseInt(_0x380bf6(0x9f))/0x3+-parseInt(_0x380bf6(0x81))/0x4+parseInt(_0x380bf6(0x78))/0x5*(parseInt(_0x380bf6(0x9d))/0x6)+-parseInt(_0x380bf6(0xae))/0x7+parseInt(_0x380bf6(0x74))/0x8*(-parseInt(_0x380bf6(0x99))/0x9)+-parseInt(_0x380bf6(0x70))/0xa*(parseInt(_0x380bf6(0x8d))/0xb);if(_0x577d8e===_0x507d7f)break;else _0x102a25['push'](_0x102a25['shift']());}catch(_0xcd1ae5){_0x102a25['push'](_0x102a25['shift']());}}}(a29_0x1464,0xc0111));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':a29_0x23b207(0x97),'type':a29_0x23b207(0xa3),'description':'Install\x20the\x20version\x20from\x20npm\x20latest\x20dist-tag','default':![]},{'name':a29_0x23b207(0x8f),'type':a29_0x23b207(0xa3),'description':a29_0x23b207(0xb3),'default':![]},{'name':a29_0x23b207(0x6d),'type':a29_0x23b207(0x6c),'description':'Install\x20a\x20specific\x20CLI\x20version'},{'name':'no-skills','type':a29_0x23b207(0xa3),'description':a29_0x23b207(0x9a),'default':![]},{'name':'skills','type':a29_0x23b207(0xa3),'description':a29_0x23b207(0xb6),'default':!![],'hidden':!![]}];function parseSemver(_0x5b3399){const _0xf0a77f=a29_0x23b207,_0x193c50=_0x5b3399[_0xf0a77f(0x7d)]()[_0xf0a77f(0x76)](/^(\d+)\.(\d+)\.(\d+)(?:-([0-9A-Za-z.-]+))?$/);if(!_0x193c50)return null;return{'major':Number(_0x193c50[0x1]),'minor':Number(_0x193c50[0x2]),'patch':Number(_0x193c50[0x3]),'prerelease':_0x193c50[0x4]};}function compareSemver(_0x281ae7,_0xfa0819){const _0x3a503e=a29_0x23b207,_0x5b12bf=parseSemver(_0x281ae7),_0x3b834c=parseSemver(_0xfa0819);if(!_0x5b12bf||!_0x3b834c)throw CliErrors[_0x3a503e(0xb4)](_0x3a503e(0xaa),'Use\x20full\x20semver\x20versions\x20such\x20as\x202.0.6\x20or\x202.0.7-beta.1.');for(const _0x2eeecb of['major',_0x3a503e(0x8c),_0x3a503e(0x7f)]){if(_0x5b12bf[_0x2eeecb]<_0x3b834c[_0x2eeecb])return-0x1;if(_0x5b12bf[_0x2eeecb]>_0x3b834c[_0x2eeecb])return 0x1;}if(!_0x5b12bf[_0x3a503e(0xa5)]&&!_0x3b834c[_0x3a503e(0xa5)])return 0x0;if(!_0x5b12bf[_0x3a503e(0xa5)])return 0x1;if(!_0x3b834c[_0x3a503e(0xa5)])return-0x1;if(_0x5b12bf[_0x3a503e(0xa5)]===_0x3b834c[_0x3a503e(0xa5)])return 0x0;return _0x5b12bf[_0x3a503e(0xa5)]<_0x3b834c[_0x3a503e(0xa5)]?-0x1:0x1;}function getRequestedVersion(_0x4c3ab2){const _0x19bcf0=a29_0x23b207,_0x2ca44a=_0x4c3ab2[_0x19bcf0(0xa7)]('version')['trim']();if(_0x2ca44a)return _0x2ca44a;return String(_0x4c3ab2['args']?.[0x0]??'')[_0x19bcf0(0x7d)]();}function shouldSkipOfficialSkill(_0x446f4e){const _0x18fd3d=a29_0x23b207;return _0x446f4e['bool'](_0x18fd3d(0x6e))||_0x446f4e[_0x18fd3d(0x91)](_0x18fd3d(0x9b))===![];}async function validateUpdateFlags(_0x524db7){const _0x55941d=a29_0x23b207,_0x4a5e05=getRequestedVersion(_0x524db7),_0xedde30=[_0x524db7[_0x55941d(0x95)]('latest')?_0x55941d(0x97):'',_0x524db7[_0x55941d(0x95)](_0x55941d(0x8f))?_0x55941d(0x8f):'',_0x4a5e05?_0x55941d(0x6d):''][_0x55941d(0x7e)](Boolean);if(_0xedde30[_0x55941d(0x85)]>0x1)throw CliErrors[_0x55941d(0xb4)]('--latest,\x20--beta,\x20and\x20version\x20cannot\x20be\x20used\x20together.','Choose\x20exactly\x20one\x20target:\x20--latest,\x20--beta,\x20or\x20--version\x20<version>.');if(_0x4a5e05&&!parseSemver(_0x4a5e05))throw CliErrors[_0x55941d(0xb4)](_0x55941d(0x9e)+_0x4a5e05,_0x55941d(0x77));}async function fetchNpmDistTags(){const _0x4e2fe7=a29_0x23b207;try{const _0x4bbd91=NPM_REGISTRY_BASE_URL+_0x4e2fe7(0x84)+encodeURIComponent(LOVRABET_NPM_PACKAGE_NAME)+'/dist-tags',_0x55fc24=await fetch(_0x4bbd91,{'signal':AbortSignal['timeout'](0x2710)});if(!_0x55fc24['ok'])return null;const _0x476c61=await _0x55fc24[_0x4e2fe7(0xa1)]();if(!_0x476c61||typeof _0x476c61!==_0x4e2fe7(0x98))return null;return Object[_0x4e2fe7(0xa9)](Object['entries'](_0x476c61)[_0x4e2fe7(0x7e)](([,_0x1fc594])=>typeof _0x1fc594===_0x4e2fe7(0x6c)&&_0x1fc594[_0x4e2fe7(0x7d)]())[_0x4e2fe7(0x9c)](([_0xbcb1ca,_0x47d4db])=>[_0xbcb1ca,String(_0x47d4db)['trim']()]));}catch{return null;}}async function resolveTargetVersion(_0x45440b){const _0x27c24f=a29_0x23b207,_0x8ba032=getRequestedVersion(_0x45440b);if(_0x8ba032)return{'version':_0x8ba032,'source':'version'};const _0x422dbd=_0x45440b[_0x27c24f(0x95)]('beta')?_0x27c24f(0x8f):'latest',_0x4c790f=await fetchNpmDistTags(),_0x341558=_0x4c790f?.[_0x422dbd];if(!_0x341558)return null;return{'version':_0x341558,'source':_0x422dbd};}function shouldInstallTarget(_0x17c5cc,_0xa8050b){const _0x100552=a29_0x23b207,_0x188de2=compareSemver(_0x17c5cc,_0xa8050b[_0x100552(0x6d)]);if(_0xa8050b[_0x100552(0xb9)]===_0x100552(0x6d))return _0x188de2!==0x0;return _0x188de2<0x0;}function installCliPackage(_0x25759f,_0x496999){const _0x41f8e1=a29_0x23b207,_0x118267=resolveNpmBin(_0x41f8e1(0xa0)),_0x3beb45=[_0x41f8e1(0xa6),'-g',LOVRABET_NPM_PACKAGE_NAME+'@'+_0x25759f];console[_0x41f8e1(0x93)]('*\x20'+[_0x118267,..._0x3beb45][_0x41f8e1(0x87)]('\x20'));const _0x467739=spawnSync(_0x118267,_0x3beb45,{'cwd':process['cwd'](),'stdio':_0x496999?_0x41f8e1(0x96):_0x41f8e1(0xab),'env':process.env,'shell':![]});if(_0x467739[_0x41f8e1(0x7c)]===0x0)return{'ok':!![]};let _0x3f7931=_0x467739['error']?.[_0x41f8e1(0xb2)]||_0x41f8e1(0x7a)+(_0x467739[_0x41f8e1(0x7c)]??'unknown');if(_0x496999){const _0x308e17=_0x467739[_0x41f8e1(0x6b)]?_0x467739[_0x41f8e1(0x6b)]['toString']()[_0x41f8e1(0x7d)]():'',_0x1ec7af=_0x467739[_0x41f8e1(0x80)]?_0x467739[_0x41f8e1(0x80)][_0x41f8e1(0x82)]()['trim']():'';if(_0x308e17)_0x3f7931=_0x308e17;else{if(_0x1ec7af)_0x3f7931=_0x1ec7af;}}return{'ok':![],'error':_0x3f7931};}function a29_0x3347(_0x247650,_0x1a3145){_0x247650=_0x247650-0x6b;const _0x1464d9=a29_0x1464();let _0x334799=_0x1464d9[_0x247650];return _0x334799;}async function installOfficialSkill(_0x28160a){const _0x3fac43=a29_0x23b207;console[_0x3fac43(0x93)]('Checking\x20official\x20skill\x20package...');const _0x1cb0a7=runNpxSkillsAddGlobal(process[_0x3fac43(0xb8)](),LOVRABET_SKILL_SOURCE,{'stdio':_0x28160a?_0x3fac43(0x96):_0x3fac43(0xab)});if(_0x1cb0a7[_0x3fac43(0x75)]){console[_0x3fac43(0x93)](_0x3fac43(0x8e)+LOVRABET_SKIP_NPX_SKILLS_ENV+'=1).');return;}if(_0x1cb0a7['ok']){console[_0x3fac43(0x93)](_0x3fac43(0xb5));return;}console[_0x3fac43(0xa4)](_0x3fac43(0xa8)+(_0x1cb0a7[_0x3fac43(0x89)]||_0x3fac43(0x83))),console[_0x3fac43(0x93)](_0x3fac43(0xac)+LOVRABET_SKILL_SOURCE+_0x3fac43(0x79));}async function execute(_0x5efd83){const _0x59d6f8=a29_0x23b207;await validateUpdateFlags(_0x5efd83);const _0x157d17=getCliVersion();console[_0x59d6f8(0x93)](_0x59d6f8(0x92)+_0x157d17),console[_0x59d6f8(0x93)]('Checking\x20npm\x20dist-tags...');const _0x4a15aa=await resolveTargetVersion(_0x5efd83);if(!_0x4a15aa){const _0x35be94=_0x5efd83['bool'](_0x59d6f8(0x8f))?'beta':_0x59d6f8(0x97),_0x47bf15=_0x59d6f8(0x86)+_0x35be94+_0x59d6f8(0x7b);return console[_0x59d6f8(0xa4)](_0x47bf15),console[_0x59d6f8(0x93)](_0x59d6f8(0xa2)+LOVRABET_NPM_PACKAGE_NAME+'@'+_0x35be94),{'ok':![]};}if(!shouldInstallTarget(_0x157d17,_0x4a15aa)){const _0x2cc628=_0x4a15aa[_0x59d6f8(0xb9)]===_0x59d6f8(0x6d)?_0x59d6f8(0x73)+_0x4a15aa[_0x59d6f8(0x6d)]+').':'Already\x20up\x20to\x20date\x20(v'+_0x4a15aa[_0x59d6f8(0x6d)]+').';return console[_0x59d6f8(0x93)](_0x2cc628),shouldSkipOfficialSkill(_0x5efd83)?console[_0x59d6f8(0x93)](_0x59d6f8(0xad)):await installOfficialSkill(_0x5efd83[_0x59d6f8(0x94)]),{'ok':!![]};}console[_0x59d6f8(0x93)]('Updating\x20'+LOVRABET_NPM_PACKAGE_NAME+':\x20'+_0x157d17+_0x59d6f8(0xb1)+_0x4a15aa[_0x59d6f8(0x6d)]);const _0x14ded2=installCliPackage(_0x4a15aa[_0x59d6f8(0x6d)],_0x5efd83[_0x59d6f8(0x94)]);if(!_0x14ded2['ok']){const _0x5307b0=_0x59d6f8(0x88)+(_0x14ded2[_0x59d6f8(0x89)]||_0x59d6f8(0x83));return console[_0x59d6f8(0x89)](_0x5307b0),console[_0x59d6f8(0x93)](_0x59d6f8(0x6f)+LOVRABET_NPM_PACKAGE_NAME+'@'+_0x4a15aa['version']),{'ok':![]};}return console[_0x59d6f8(0x93)](_0x59d6f8(0x90)+_0x4a15aa['version']+'.'),console[_0x59d6f8(0x93)](_0x59d6f8(0x8b)),shouldSkipOfficialSkill(_0x5efd83)?console[_0x59d6f8(0x93)]('Skipping\x20official\x20skill\x20package\x20(--no-skills).'):await installOfficialSkill(_0x5efd83[_0x59d6f8(0x94)]),{'ok':!![]};}function a29_0x1464(){const _0x133fd1=['npm','json','\x20\x20Run\x20manually:\x20npm\x20install\x20-g\x20','boolean','warn','prerelease','install','str','\x20\x20Official\x20skill\x20update\x20failed:\x20','fromEntries','Version\x20comparison\x20failed.','inherit','\x20\x20Run\x20manually:\x20npx\x20skills\x20add\x20','Skipping\x20official\x20skill\x20package\x20(--no-skills).','8207479DygJeu','207721lSOPPA','update','\x20->\x20','message','Install\x20the\x20version\x20from\x20npm\x20beta\x20dist-tag','validation','\x20\x20Official\x20skill\x20package\x20is\x20up\x20to\x20date.','Refresh\x20official\x20skill\x20package\x20after\x20updating','12MooNmT','cwd','source','stderr','string','version','no-skills','\x20\x20Try\x20manually:\x20npm\x20install\x20-g\x20','10rGgYES','\x20CLI\x20from\x20npm','Update\x20','Already\x20on\x20requested\x20version\x20(v','5032tHLNNE','skipped','match','Use\x20a\x20full\x20semver\x20such\x20as\x202.0.6\x20or\x202.0.7-beta.1.','16655yCBYVI','\x20-g\x20-y','exit\x20','\x20version\x20from\x20npm.','status','trim','filter','patch','stdout','5899756IHOilY','toString','unknown','/-/package/','length','Unable\x20to\x20resolve\x20','join','Update\x20failed:\x20','error','run','\x20\x20Restart\x20your\x20terminal\x20to\x20use\x20the\x20new\x20version.','minor','3271818zeTNCx','\x20\x20Skipped\x20skill\x20install\x20(','beta','Updated\x20to\x20v','flag','Current\x20version:\x20','log','nonInteractive','bool','pipe','latest','object','315sYlXhE','Skip\x20official\x20skill\x20package\x20refresh\x20after\x20updating','skills','map','2520BAYYMg','Invalid\x20version:\x20','3324744ZoQOse'];a29_0x1464=function(){return _0x133fd1;};return a29_0x1464();}export const updateDefinition={'service':a29_0x23b207(0xb0),'command':a29_0x23b207(0x8a),'description':a29_0x23b207(0x72)+CLI_BIN_NAME+a29_0x23b207(0x71),'risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':updateFlags,'validate':validateUpdateFlags,'execute':execute};
1
+ const a30_0xeb4b32=a30_0x318e;(function(_0x298d4e,_0x383c32){const _0xcece76=a30_0x318e,_0x35a88a=_0x298d4e();while(!![]){try{const _0xe3ab95=parseInt(_0xcece76(0xe9))/0x1*(parseInt(_0xcece76(0x115))/0x2)+parseInt(_0xcece76(0xe1))/0x3+-parseInt(_0xcece76(0xda))/0x4*(parseInt(_0xcece76(0x119))/0x5)+-parseInt(_0xcece76(0x10f))/0x6*(parseInt(_0xcece76(0x11a))/0x7)+parseInt(_0xcece76(0xe4))/0x8+-parseInt(_0xcece76(0x11f))/0x9+parseInt(_0xcece76(0xe0))/0xa;if(_0xe3ab95===_0x383c32)break;else _0x35a88a['push'](_0x35a88a['shift']());}catch(_0x414365){_0x35a88a['push'](_0x35a88a['shift']());}}}(a30_0x3c0d,0xc4bf6));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':a30_0xeb4b32(0xe2),'type':a30_0xeb4b32(0x107),'description':a30_0xeb4b32(0xdd),'default':![]},{'name':a30_0xeb4b32(0xe7),'type':a30_0xeb4b32(0x107),'description':a30_0xeb4b32(0x11b),'default':![]},{'name':'version','type':a30_0xeb4b32(0xf8),'description':a30_0xeb4b32(0xeb)},{'name':a30_0xeb4b32(0xf5),'type':'boolean','description':'Skip\x20official\x20skill\x20package\x20refresh\x20after\x20updating','default':![]},{'name':a30_0xeb4b32(0xfb),'type':'boolean','description':a30_0xeb4b32(0x116),'default':!![],'hidden':!![]}];function parseSemver(_0x1f5eb7){const _0x46b00e=a30_0xeb4b32,_0x483a5b=_0x1f5eb7[_0x46b00e(0xd8)]()[_0x46b00e(0x120)](/^(\d+)\.(\d+)\.(\d+)(?:-([0-9A-Za-z.-]+))?$/);if(!_0x483a5b)return null;return{'major':Number(_0x483a5b[0x1]),'minor':Number(_0x483a5b[0x2]),'patch':Number(_0x483a5b[0x3]),'prerelease':_0x483a5b[0x4]};}function compareSemver(_0x452faf,_0x385145){const _0x14bc62=a30_0xeb4b32,_0x5aae0a=parseSemver(_0x452faf),_0x33df86=parseSemver(_0x385145);if(!_0x5aae0a||!_0x33df86)throw CliErrors[_0x14bc62(0xfe)](_0x14bc62(0x117),_0x14bc62(0xf1));for(const _0x156910 of[_0x14bc62(0x112),_0x14bc62(0xe3),_0x14bc62(0x103)]){if(_0x5aae0a[_0x156910]<_0x33df86[_0x156910])return-0x1;if(_0x5aae0a[_0x156910]>_0x33df86[_0x156910])return 0x1;}if(!_0x5aae0a[_0x14bc62(0xdf)]&&!_0x33df86[_0x14bc62(0xdf)])return 0x0;if(!_0x5aae0a[_0x14bc62(0xdf)])return 0x1;if(!_0x33df86[_0x14bc62(0xdf)])return-0x1;if(_0x5aae0a[_0x14bc62(0xdf)]===_0x33df86[_0x14bc62(0xdf)])return 0x0;return _0x5aae0a[_0x14bc62(0xdf)]<_0x33df86[_0x14bc62(0xdf)]?-0x1:0x1;}function getRequestedVersion(_0x5773b1){const _0x1c0596=a30_0xeb4b32,_0x36365f=_0x5773b1[_0x1c0596(0xea)]('version')[_0x1c0596(0xd8)]();if(_0x36365f)return _0x36365f;return String(_0x5773b1[_0x1c0596(0x106)]?.[0x0]??'')['trim']();}function shouldSkipOfficialSkill(_0x9ba168){const _0x5b0565=a30_0xeb4b32;return _0x9ba168[_0x5b0565(0xf4)](_0x5b0565(0xf5))||_0x9ba168[_0x5b0565(0x10a)](_0x5b0565(0xfb))===![];}async function validateUpdateFlags(_0x440b9c){const _0x22a1d4=a30_0xeb4b32,_0x4ffcbb=getRequestedVersion(_0x440b9c),_0x36bebc=[_0x440b9c[_0x22a1d4(0xf4)]('latest')?_0x22a1d4(0xe2):'',_0x440b9c[_0x22a1d4(0xf4)](_0x22a1d4(0xe7))?_0x22a1d4(0xe7):'',_0x4ffcbb?'version':''][_0x22a1d4(0xec)](Boolean);if(_0x36bebc[_0x22a1d4(0xf3)]>0x1)throw CliErrors[_0x22a1d4(0xfe)](_0x22a1d4(0x118),'Choose\x20exactly\x20one\x20target:\x20--latest,\x20--beta,\x20or\x20--version\x20<version>.');if(_0x4ffcbb&&!parseSemver(_0x4ffcbb))throw CliErrors[_0x22a1d4(0xfe)](_0x22a1d4(0x111)+_0x4ffcbb,_0x22a1d4(0x104));}async function fetchNpmDistTags(){const _0xb07321=a30_0xeb4b32;try{const _0x39cf13=NPM_REGISTRY_BASE_URL+'/-/package/'+encodeURIComponent(LOVRABET_NPM_PACKAGE_NAME)+_0xb07321(0xe6),_0x1c0bf4=await fetch(_0x39cf13,{'signal':AbortSignal[_0xb07321(0xd9)](0x2710)});if(!_0x1c0bf4['ok'])return null;const _0xbd6aa8=await _0x1c0bf4[_0xb07321(0xf7)]();if(!_0xbd6aa8||typeof _0xbd6aa8!==_0xb07321(0xd3))return null;return Object['fromEntries'](Object['entries'](_0xbd6aa8)[_0xb07321(0xec)](([,_0x314545])=>typeof _0x314545===_0xb07321(0xf8)&&_0x314545[_0xb07321(0xd8)]())['map'](([_0x2aaeb0,_0x2fcf0e])=>[_0x2aaeb0,String(_0x2fcf0e)[_0xb07321(0xd8)]()]));}catch{return null;}}async function resolveTargetVersion(_0x2baeff){const _0x1dd32a=a30_0xeb4b32,_0x3815a3=getRequestedVersion(_0x2baeff);if(_0x3815a3)return{'version':_0x3815a3,'source':_0x1dd32a(0xee)};const _0x5396fc=_0x2baeff['bool'](_0x1dd32a(0xe7))?_0x1dd32a(0xe7):_0x1dd32a(0xe2),_0x35d96a=await fetchNpmDistTags(),_0x50bf1e=_0x35d96a?.[_0x5396fc];if(!_0x50bf1e)return null;return{'version':_0x50bf1e,'source':_0x5396fc};}function a30_0x318e(_0x2195cb,_0x57b15b){_0x2195cb=_0x2195cb-0xd3;const _0x3c0df1=a30_0x3c0d();let _0x318e28=_0x3c0df1[_0x2195cb];return _0x318e28;}function shouldInstallTarget(_0x1e01b7,_0xeff127){const _0x2702d5=a30_0xeb4b32,_0x152024=compareSemver(_0x1e01b7,_0xeff127['version']);if(_0xeff127[_0x2702d5(0xfc)]===_0x2702d5(0xee))return _0x152024!==0x0;return _0x152024<0x0;}function installCliPackage(_0x4dc8c8,_0x55d123){const _0xf6884=a30_0xeb4b32,_0x66c6d=resolveNpmBin('npm'),_0x448947=[_0xf6884(0x100),'-g',LOVRABET_NPM_PACKAGE_NAME+'@'+_0x4dc8c8];console['log']('*\x20'+[_0x66c6d,..._0x448947][_0xf6884(0x10d)]('\x20'));const _0x574ed4=spawnSync(_0x66c6d,_0x448947,{'cwd':process[_0xf6884(0x10c)](),'stdio':_0x55d123?'pipe':_0xf6884(0xfd),'env':process.env,'shell':![]});if(_0x574ed4[_0xf6884(0xde)]===0x0)return{'ok':!![]};let _0x33d12f=_0x574ed4[_0xf6884(0x108)]?.[_0xf6884(0xd4)]||_0xf6884(0x105)+(_0x574ed4[_0xf6884(0xde)]??_0xf6884(0x113));if(_0x55d123){const _0x25177b=_0x574ed4[_0xf6884(0x109)]?_0x574ed4[_0xf6884(0x109)][_0xf6884(0x10b)]()[_0xf6884(0xd8)]():'',_0x2690f1=_0x574ed4[_0xf6884(0x114)]?_0x574ed4[_0xf6884(0x114)]['toString']()[_0xf6884(0xd8)]():'';if(_0x25177b)_0x33d12f=_0x25177b;else{if(_0x2690f1)_0x33d12f=_0x2690f1;}}return{'ok':![],'error':_0x33d12f};}async function installOfficialSkill(_0x58539a){const _0x10b1ab=a30_0xeb4b32;console[_0x10b1ab(0xd7)]('Checking\x20official\x20skill\x20package...');const _0x3dd7b6=runNpxSkillsAddGlobal(process[_0x10b1ab(0x10c)](),LOVRABET_SKILL_SOURCE,{'stdio':_0x58539a?_0x10b1ab(0x102):_0x10b1ab(0xfd)});if(_0x3dd7b6['skipped']){console[_0x10b1ab(0xd7)]('\x20\x20Skipped\x20skill\x20install\x20('+LOVRABET_SKIP_NPX_SKILLS_ENV+_0x10b1ab(0xe5));return;}if(_0x3dd7b6['ok']){console[_0x10b1ab(0xd7)]('\x20\x20Official\x20skill\x20package\x20is\x20up\x20to\x20date.');return;}console[_0x10b1ab(0x11e)]('\x20\x20Official\x20skill\x20update\x20failed:\x20'+(_0x3dd7b6['error']||'unknown')),console['log']('\x20\x20Run\x20manually:\x20npx\x20skills\x20add\x20'+LOVRABET_SKILL_SOURCE+_0x10b1ab(0xf6));}async function execute(_0xf0c783){const _0x3ab98d=a30_0xeb4b32;await validateUpdateFlags(_0xf0c783);const _0xc0cc4a=getCliVersion();console[_0x3ab98d(0xd7)](_0x3ab98d(0xdc)+_0xc0cc4a),console['log'](_0x3ab98d(0x110));const _0x112d1c=await resolveTargetVersion(_0xf0c783);if(!_0x112d1c){const _0x38ebf3=_0xf0c783[_0x3ab98d(0xf4)](_0x3ab98d(0xe7))?_0x3ab98d(0xe7):_0x3ab98d(0xe2),_0xb3a462=_0x3ab98d(0xdb)+_0x38ebf3+_0x3ab98d(0xff);return console[_0x3ab98d(0x11e)](_0xb3a462),console[_0x3ab98d(0xd7)](_0x3ab98d(0xf0)+LOVRABET_NPM_PACKAGE_NAME+'@'+_0x38ebf3),{'ok':![]};}if(!shouldInstallTarget(_0xc0cc4a,_0x112d1c)){const _0xc0218d=_0x112d1c[_0x3ab98d(0xfc)]==='version'?_0x3ab98d(0x11d)+_0x112d1c['version']+').':_0x3ab98d(0xe8)+_0x112d1c[_0x3ab98d(0xee)]+').';return console['log'](_0xc0218d),shouldSkipOfficialSkill(_0xf0c783)?console[_0x3ab98d(0xd7)]('Skipping\x20official\x20skill\x20package\x20(--no-skills).'):await installOfficialSkill(_0xf0c783[_0x3ab98d(0x10e)]),{'ok':!![]};}console[_0x3ab98d(0xd7)](_0x3ab98d(0xf2)+LOVRABET_NPM_PACKAGE_NAME+':\x20'+_0xc0cc4a+'\x20->\x20'+_0x112d1c[_0x3ab98d(0xee)]);const _0xd06ac=installCliPackage(_0x112d1c[_0x3ab98d(0xee)],_0xf0c783[_0x3ab98d(0x10e)]);if(!_0xd06ac['ok']){const _0x1b3067=_0x3ab98d(0xd6)+(_0xd06ac[_0x3ab98d(0x108)]||_0x3ab98d(0x113));return console[_0x3ab98d(0x108)](_0x1b3067),console[_0x3ab98d(0xd7)](_0x3ab98d(0xf9)+LOVRABET_NPM_PACKAGE_NAME+'@'+_0x112d1c[_0x3ab98d(0xee)]),{'ok':![]};}return console['log']('Updated\x20to\x20v'+_0x112d1c[_0x3ab98d(0xee)]+'.'),console[_0x3ab98d(0xd7)](_0x3ab98d(0xef)),shouldSkipOfficialSkill(_0xf0c783)?console['log'](_0x3ab98d(0x101)):await installOfficialSkill(_0xf0c783[_0x3ab98d(0x10e)]),{'ok':!![]};}export const updateDefinition={'service':'update','command':a30_0xeb4b32(0xd5),'description':a30_0xeb4b32(0x11c)+CLI_BIN_NAME+a30_0xeb4b32(0xfa),'risk':a30_0xeb4b32(0xed),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':updateFlags,'validate':validateUpdateFlags,'execute':execute};function a30_0x3c0d(){const _0x157865=['Current\x20version:\x20','Install\x20the\x20version\x20from\x20npm\x20latest\x20dist-tag','status','prerelease','5561870SnwRMc','3017877SWlsCL','latest','minor','982064RYBCYa','=1).','/dist-tags','beta','Already\x20up\x20to\x20date\x20(v','1FpHmCN','str','Install\x20a\x20specific\x20CLI\x20version','filter','write','version','\x20\x20Restart\x20your\x20terminal\x20to\x20use\x20the\x20new\x20version.','\x20\x20Run\x20manually:\x20npm\x20install\x20-g\x20','Use\x20full\x20semver\x20versions\x20such\x20as\x202.0.6\x20or\x202.0.7-beta.1.','Updating\x20','length','bool','no-skills','\x20-g\x20-y','json','string','\x20\x20Try\x20manually:\x20npm\x20install\x20-g\x20','\x20CLI\x20from\x20npm','skills','source','inherit','validation','\x20version\x20from\x20npm.','install','Skipping\x20official\x20skill\x20package\x20(--no-skills).','pipe','patch','Use\x20a\x20full\x20semver\x20such\x20as\x202.0.6\x20or\x202.0.7-beta.1.','exit\x20','args','boolean','error','stderr','flag','toString','cwd','join','nonInteractive','114UkNDQq','Checking\x20npm\x20dist-tags...','Invalid\x20version:\x20','major','unknown','stdout','2993958EWGLqR','Refresh\x20official\x20skill\x20package\x20after\x20updating','Version\x20comparison\x20failed.','--latest,\x20--beta,\x20and\x20version\x20cannot\x20be\x20used\x20together.','30MwPdaS','389011HLQrtD','Install\x20the\x20version\x20from\x20npm\x20beta\x20dist-tag','Update\x20','Already\x20on\x20requested\x20version\x20(v','warn','9674460DkjYfz','match','object','message','run','Update\x20failed:\x20','log','trim','timeout','163452swSCyB','Unable\x20to\x20resolve\x20'];a30_0x3c0d=function(){return _0x157865;};return a30_0x3c0d();}
@@ -1 +1 @@
1
- const a30_0x2cc92a=a30_0x13e4;(function(_0x475bcb,_0x290aea){const _0x468083=a30_0x13e4,_0x4e967b=_0x475bcb();while(!![]){try{const _0x4d790a=parseInt(_0x468083(0x160))/0x1+parseInt(_0x468083(0x158))/0x2*(-parseInt(_0x468083(0x14b))/0x3)+-parseInt(_0x468083(0x15f))/0x4*(-parseInt(_0x468083(0x166))/0x5)+-parseInt(_0x468083(0x164))/0x6*(-parseInt(_0x468083(0x165))/0x7)+-parseInt(_0x468083(0x14a))/0x8+parseInt(_0x468083(0x162))/0x9+-parseInt(_0x468083(0x154))/0xa*(parseInt(_0x468083(0x155))/0xb);if(_0x4d790a===_0x290aea)break;else _0x4e967b['push'](_0x4e967b['shift']());}catch(_0x1e35c6){_0x4e967b['push'](_0x4e967b['shift']());}}}(a30_0x4d9a,0x24f73));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{RUNTIME_ENV_VALUES}from'../constant/env.js';function a30_0x4d9a(){const _0x3fa8d6=['Locale','riskLevel','Override\x20runtime\x20domain','15720OEfrRN','561iHUOMN','legacyCompatOnly','entries','31408OxTZeq','Config\x20key.\x20Top-level:\x20','env','enumValues','Default\x20page\x20size','Risk\x20level','Target\x20environment','964Lrfmkv','100337cvDgcs','map','1349874rcwqpi','importable','6bcufHg','881846EtoCId','3815JfmLpS','1875016qsmRlV','18YIsfSd','Default\x20output\x20format','Override\x20user\x20domain','filter','locale','join'];a30_0x4d9a=function(){return _0x3fa8d6;};return a30_0x4d9a();}import{OUTPUT_FORMAT_VALUES}from'../constant/output.js';export const CONFIG_FIELD_SCHEMAS={'env':{'description':a30_0x2cc92a(0x15e),'topLevel':!![],'cliSettableTopLevel':!![],'enumValues':RUNTIME_ENV_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES[a30_0x2cc92a(0x15a)],'importable':!![]},'format':{'description':a30_0x2cc92a(0x14c),'topLevel':!![],'cliSettableTopLevel':!![],'enumValues':OUTPUT_FORMAT_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES['format'],'importable':!![]},'pageSize':{'description':a30_0x2cc92a(0x15c),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'apiDomain':{'description':'Override\x20API\x20domain','topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'userDomain':{'description':a30_0x2cc92a(0x14d),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'runtimeDomain':{'description':a30_0x2cc92a(0x153),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'accessKey':{'description':'Access\x20key\x20(client-ak\x20auth)','topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'riskLevel':{'description':a30_0x2cc92a(0x15d),'topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES[a30_0x2cc92a(0x152)],'importable':!![]},'locale':{'description':a30_0x2cc92a(0x151),'topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES[a30_0x2cc92a(0x14f)],'importable':!![],'legacyCompatOnly':!![]}};export const TOP_LEVEL_CONFIG_KEYS=new Set(Object[a30_0x2cc92a(0x157)](CONFIG_FIELD_SCHEMAS)[a30_0x2cc92a(0x14e)](([,_0x5e0383])=>_0x5e0383['cliSettableTopLevel'])[a30_0x2cc92a(0x161)](([_0x4fa845])=>_0x4fa845));export const CONFIG_ENUM_VALUES=Object['fromEntries'](Object[a30_0x2cc92a(0x157)](CONFIG_FIELD_SCHEMAS)[a30_0x2cc92a(0x14e)](([,_0x26508c])=>_0x26508c[a30_0x2cc92a(0x15b)])['map'](([_0x3169a7,_0x3a4a78])=>[_0x3169a7,[..._0x3a4a78[a30_0x2cc92a(0x15b)]||[]]]));export const IMPORTABLE_RUNTIME_CONFIG_KEYS=Object[a30_0x2cc92a(0x157)](CONFIG_FIELD_SCHEMAS)[a30_0x2cc92a(0x14e)](([,_0x2f08a4])=>_0x2f08a4[a30_0x2cc92a(0x163)])[a30_0x2cc92a(0x161)](([_0x4bcfb9])=>_0x4bcfb9);export function getConfigFieldSchema(_0xc3fed2){return CONFIG_FIELD_SCHEMAS[_0xc3fed2];}export function getConfigEnumValues(_0x37da2f){const _0x15ecdd=a30_0x2cc92a;return getConfigFieldSchema(_0x37da2f)?.[_0x15ecdd(0x15b)];}export function getConfigDefaultValue(_0xea977e){return getConfigFieldSchema(_0xea977e)?.['defaultValue'];}export function isTopLevelConfigKey(_0xfb6d59){return TOP_LEVEL_CONFIG_KEYS['has'](_0xfb6d59);}export function isLegacyCompatConfigKey(_0x25a3be){const _0x4d54b7=a30_0x2cc92a;return getConfigFieldSchema(_0x25a3be)?.[_0x4d54b7(0x156)]===!![];}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}function a30_0x13e4(_0x47bc33,_0xc56de3){_0x47bc33=_0x47bc33-0x14a;const _0x4d9a57=a30_0x4d9a();let _0x13e488=_0x4d9a57[_0x47bc33];return _0x13e488;}export function formatConfigKeyList(_0x5d8b03){const _0x116256=a30_0x2cc92a;return[..._0x5d8b03][_0x116256(0x150)](',\x20');}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){const _0xb46489=a30_0x2cc92a;return _0xb46489(0x159)+getTopLevelConfigKeySummary()+';\x20local\x20alias:\x20apps.<alias>.appcode';}export function buildAppProfileListFields(_0x17f9e0){return{'env':_0x17f9e0,'hasAccessKey':![],'format':null,'pageSize':null,'riskLevel':null,'locale':null};}
1
+ const a31_0x2c4655=a31_0x13ba;(function(_0x4269ca,_0x41de33){const _0x1416c9=a31_0x13ba,_0x3e5633=_0x4269ca();while(!![]){try{const _0x5b7a8a=parseInt(_0x1416c9(0x11b))/0x1*(parseInt(_0x1416c9(0x10d))/0x2)+-parseInt(_0x1416c9(0x10e))/0x3+parseInt(_0x1416c9(0x108))/0x4*(-parseInt(_0x1416c9(0x10b))/0x5)+-parseInt(_0x1416c9(0x107))/0x6*(-parseInt(_0x1416c9(0x11e))/0x7)+-parseInt(_0x1416c9(0x114))/0x8+-parseInt(_0x1416c9(0x11d))/0x9+parseInt(_0x1416c9(0x11f))/0xa;if(_0x5b7a8a===_0x41de33)break;else _0x3e5633['push'](_0x3e5633['shift']());}catch(_0xe5b1f0){_0x3e5633['push'](_0x3e5633['shift']());}}}(a31_0x5ac4,0x562db));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{RUNTIME_ENV_VALUES}from'../constant/env.js';import{OUTPUT_FORMAT_VALUES}from'../constant/output.js';function a31_0x5ac4(){const _0x329124=['1289169AmcBQx','cliSettableTopLevel','importable','Access\x20key\x20(client-ak\x20auth)','riskLevel','format','1846096ULynnR','Override\x20API\x20domain','enumValues','map','env','Locale','filter','364933nXORDp','has','2804184zRxmpH','4662mZDrax','10080440TWsNxe','locale','Override\x20runtime\x20domain','Risk\x20level','1644hlCjXw','13756IznBdW','Default\x20output\x20format','entries','335puSkXS','Default\x20page\x20size','2subbNb'];a31_0x5ac4=function(){return _0x329124;};return a31_0x5ac4();}export const CONFIG_FIELD_SCHEMAS={'env':{'description':'Target\x20environment','topLevel':!![],'cliSettableTopLevel':!![],'enumValues':RUNTIME_ENV_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES[a31_0x2c4655(0x118)],'importable':!![]},'format':{'description':a31_0x2c4655(0x109),'topLevel':!![],'cliSettableTopLevel':!![],'enumValues':OUTPUT_FORMAT_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES[a31_0x2c4655(0x113)],'importable':!![]},'pageSize':{'description':a31_0x2c4655(0x10c),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'apiDomain':{'description':a31_0x2c4655(0x115),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'userDomain':{'description':'Override\x20user\x20domain','topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'runtimeDomain':{'description':a31_0x2c4655(0x105),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'accessKey':{'description':a31_0x2c4655(0x111),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'riskLevel':{'description':a31_0x2c4655(0x106),'topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES[a31_0x2c4655(0x112)],'importable':!![]},'locale':{'description':a31_0x2c4655(0x119),'topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES[a31_0x2c4655(0x120)],'importable':!![],'legacyCompatOnly':!![]}};export const TOP_LEVEL_CONFIG_KEYS=new Set(Object['entries'](CONFIG_FIELD_SCHEMAS)[a31_0x2c4655(0x11a)](([,_0x3671a7])=>_0x3671a7[a31_0x2c4655(0x10f)])[a31_0x2c4655(0x117)](([_0x58de64])=>_0x58de64));export const CONFIG_ENUM_VALUES=Object['fromEntries'](Object[a31_0x2c4655(0x10a)](CONFIG_FIELD_SCHEMAS)[a31_0x2c4655(0x11a)](([,_0x59de26])=>_0x59de26['enumValues'])[a31_0x2c4655(0x117)](([_0x29f28f,_0xe490c])=>[_0x29f28f,[..._0xe490c[a31_0x2c4655(0x116)]||[]]]));export const IMPORTABLE_RUNTIME_CONFIG_KEYS=Object[a31_0x2c4655(0x10a)](CONFIG_FIELD_SCHEMAS)[a31_0x2c4655(0x11a)](([,_0xce3f9d])=>_0xce3f9d[a31_0x2c4655(0x110)])[a31_0x2c4655(0x117)](([_0x1d37d1])=>_0x1d37d1);export function getConfigFieldSchema(_0x149cf7){return CONFIG_FIELD_SCHEMAS[_0x149cf7];}export function getConfigEnumValues(_0x12de5a){return getConfigFieldSchema(_0x12de5a)?.['enumValues'];}export function getConfigDefaultValue(_0x516172){return getConfigFieldSchema(_0x516172)?.['defaultValue'];}export function isTopLevelConfigKey(_0x15e6b6){const _0x3e6a69=a31_0x2c4655;return TOP_LEVEL_CONFIG_KEYS[_0x3e6a69(0x11c)](_0x15e6b6);}export function isLegacyCompatConfigKey(_0x3d8dcc){return getConfigFieldSchema(_0x3d8dcc)?.['legacyCompatOnly']===!![];}function a31_0x13ba(_0x26c5d8,_0x56f867){_0x26c5d8=_0x26c5d8-0x105;const _0x5ac49b=a31_0x5ac4();let _0x13bac7=_0x5ac49b[_0x26c5d8];return _0x13bac7;}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function formatConfigKeyList(_0x648888){return[..._0x648888]['join'](',\x20');}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){return'Config\x20key.\x20Top-level:\x20'+getTopLevelConfigKeySummary()+';\x20local\x20alias:\x20apps.<alias>.appcode';}export function buildAppProfileListFields(_0x5c7190){return{'env':_0x5c7190,'hasAccessKey':![],'format':null,'pageSize':null,'riskLevel':null,'locale':null};}
@@ -1 +1 @@
1
- (function(_0x575899,_0x52ee84){const _0x47027e=a31_0x7b41,_0x5a0b81=_0x575899();while(!![]){try{const _0x1ce8ac=parseInt(_0x47027e(0xbd))/0x1+-parseInt(_0x47027e(0xb7))/0x2+parseInt(_0x47027e(0xb8))/0x3*(parseInt(_0x47027e(0xbe))/0x4)+parseInt(_0x47027e(0xb9))/0x5*(parseInt(_0x47027e(0xc1))/0x6)+parseInt(_0x47027e(0xbf))/0x7*(parseInt(_0x47027e(0xba))/0x8)+parseInt(_0x47027e(0xbb))/0x9+parseInt(_0x47027e(0xb6))/0xa*(-parseInt(_0x47027e(0xbc))/0xb);if(_0x1ce8ac===_0x52ee84)break;else _0x5a0b81['push'](_0x5a0b81['shift']());}catch(_0x2a3b68){_0x5a0b81['push'](_0x5a0b81['shift']());}}}(a31_0xe4c0,0xefa96));function a31_0x7b41(_0x52e189,_0x82eee2){_0x52e189=_0x52e189-0xb6;const _0xe4c010=a31_0xe4c0();let _0x7b41ff=_0xe4c010[_0x52e189];return _0x7b41ff;}function a31_0xe4c0(){const _0x5c28af=['18QEnaPk','155RoEhka','4302200vBymLt','13563855ewMGAH','506ZFZFuO','1493152ZMYHHS','30484ZyLXFE','14ZhPVTF','ClientAk','300786syOWZI','1010910eAAVjj','87488pssJdk'];a31_0xe4c0=function(){return _0x5c28af;};return a31_0xe4c0();}export const AUTH_MODE={'ClientAk':'client-ak'};export function isAuthMode(_0x3f4e5a){const _0x1d67b8=a31_0x7b41;return _0x3f4e5a===AUTH_MODE[_0x1d67b8(0xc0)];}
1
+ const a32_0x23b2d1=a32_0x1d78;function a32_0x1d78(_0x57997d,_0x3f5a7b){_0x57997d=_0x57997d-0x1eb;const _0x5d7952=a32_0x5d79();let _0x1d7820=_0x5d7952[_0x57997d];return _0x1d7820;}(function(_0x40b8f2,_0xdaeff5){const _0x23d9ec=a32_0x1d78,_0x255310=_0x40b8f2();while(!![]){try{const _0x427c19=parseInt(_0x23d9ec(0x1f4))/0x1*(-parseInt(_0x23d9ec(0x1f3))/0x2)+parseInt(_0x23d9ec(0x1ef))/0x3*(-parseInt(_0x23d9ec(0x1eb))/0x4)+-parseInt(_0x23d9ec(0x1f0))/0x5*(parseInt(_0x23d9ec(0x1f5))/0x6)+-parseInt(_0x23d9ec(0x1ed))/0x7+parseInt(_0x23d9ec(0x1f1))/0x8+parseInt(_0x23d9ec(0x1f7))/0x9*(-parseInt(_0x23d9ec(0x1f6))/0xa)+parseInt(_0x23d9ec(0x1ec))/0xb;if(_0x427c19===_0xdaeff5)break;else _0x255310['push'](_0x255310['shift']());}catch(_0x5afb21){_0x255310['push'](_0x255310['shift']());}}}(a32_0x5d79,0x63c85));export const AUTH_MODE={'ClientAk':a32_0x23b2d1(0x1ee)};export function isAuthMode(_0x5e6186){const _0x341892=a32_0x23b2d1;return _0x5e6186===AUTH_MODE[_0x341892(0x1f2)];}function a32_0x5d79(){const _0x40eaec=['46omgsHL','14795BjHsSQ','6558BkgByG','8730GZXcKl','3987Iyjnwf','791036RBnluq','17995681jOGDwg','2349760vxWYSV','client-ak','9bFFuxQ','1295uAcURC','5694448iFSHUr','ClientAk'];a32_0x5d79=function(){return _0x40eaec;};return a32_0x5d79();}
@@ -1 +1 @@
1
- const a32_0x3e1170=a32_0x345a;function a32_0x345a(_0x4892dd,_0x21ff2f){_0x4892dd=_0x4892dd-0xcd;const _0xd69a06=a32_0xd69a();let _0x345ad1=_0xd69a06[_0x4892dd];return _0x345ad1;}(function(_0x267f3b,_0x3ab79a){const _0x391c9e=a32_0x345a,_0x2f6a8a=_0x267f3b();while(!![]){try{const _0x1dd369=parseInt(_0x391c9e(0xfb))/0x1*(-parseInt(_0x391c9e(0xe4))/0x2)+parseInt(_0x391c9e(0xe1))/0x3+-parseInt(_0x391c9e(0xd7))/0x4*(parseInt(_0x391c9e(0xf8))/0x5)+parseInt(_0x391c9e(0xf3))/0x6*(parseInt(_0x391c9e(0xef))/0x7)+-parseInt(_0x391c9e(0xee))/0x8*(-parseInt(_0x391c9e(0xd2))/0x9)+-parseInt(_0x391c9e(0xed))/0xa*(-parseInt(_0x391c9e(0xf2))/0xb)+-parseInt(_0x391c9e(0xde))/0xc*(-parseInt(_0x391c9e(0xda))/0xd);if(_0x1dd369===_0x3ab79a)break;else _0x2f6a8a['push'](_0x2f6a8a['shift']());}catch(_0x1c77d1){_0x2f6a8a['push'](_0x2f6a8a['shift']());}}}(a32_0xd69a,0x20639));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'];function a32_0xd69a(){const _0x21dee5=['sqlcode','string','Output\x20format','name','10UbKlxE','16ejyaEI','5089UWOqpD','clear','Verbose\x20output','74723elWIzh','294IvQbCL','Alias\x20for\x20--non-interactive','json\x20|\x20pretty\x20|\x20compress','type','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20implies\x20--format\x20json\x20when\x20current\x20format\x20is\x20pretty)','5PfpDCx','JSON\x20params\x20for\x20execute\x20commands','format','1VWqmTj','params','Override\x20appcode','app','Force\x20non-interactive\x20mode\x20(CI)','<name>','help','fromEntries','dryRun','Select\x20app\x20profile\x20by\x20name','200358dAWAgq','Name\x20filter','production\x20|\x20development\x20|\x20daily','boolean','yes','597120AINXDw','global','Record\x20ID','1805609wPkAGE','<expr>','dry-run','Environment','36JQBOdq','env','Preview\x20operation\x20without\x20executing','110430HQyveI','Clear\x20output','<code>','516968EAKLEZ','appcode','verbose','nonInteractive','non-interactive'];a32_0xd69a=function(){return _0x21dee5;};return a32_0xd69a();}export const NPM_PACKAGE_NAME=LOVRABET_NPM_PACKAGE_NAME;export const GLOBAL_FLAGS=[{'name':a32_0x3e1170(0xe5),'meowKey':'appcode','type':a32_0x3e1170(0xea),'description':a32_0x3e1170(0xfd),'hint':a32_0x3e1170(0xe3)},{'name':a32_0x3e1170(0xfe),'meowKey':a32_0x3e1170(0xfe),'type':a32_0x3e1170(0xea),'description':a32_0x3e1170(0xd1),'hint':a32_0x3e1170(0xcd)},{'name':a32_0x3e1170(0xdf),'meowKey':a32_0x3e1170(0xdf),'type':a32_0x3e1170(0xea),'description':a32_0x3e1170(0xdd),'hint':a32_0x3e1170(0xd4)},{'name':a32_0x3e1170(0xfa),'meowKey':a32_0x3e1170(0xfa),'type':a32_0x3e1170(0xea),'description':a32_0x3e1170(0xeb),'hint':a32_0x3e1170(0xf5)},{'name':'jq','meowKey':'jq','type':a32_0x3e1170(0xea),'description':a32_0x3e1170(0xf7),'hint':a32_0x3e1170(0xdb)},{'name':a32_0x3e1170(0xdc),'meowKey':a32_0x3e1170(0xd0),'type':a32_0x3e1170(0xd5),'description':a32_0x3e1170(0xe0)},{'name':a32_0x3e1170(0xd6),'meowKey':'yes','type':'boolean','description':'Skip\x20confirmation\x20for\x20high-risk\x20writes'},{'name':a32_0x3e1170(0xe8),'meowKey':a32_0x3e1170(0xe7),'type':a32_0x3e1170(0xd5),'description':a32_0x3e1170(0xff)},{'name':a32_0x3e1170(0xd8),'meowKey':a32_0x3e1170(0xd8),'type':a32_0x3e1170(0xd5),'description':'Use\x20global\x20config\x20scope'},{'name':'ci','meowKey':'ci','type':a32_0x3e1170(0xd5),'description':a32_0x3e1170(0xf4),'hidden':!![]},{'name':'help','meowKey':a32_0x3e1170(0xce),'type':a32_0x3e1170(0xd5),'description':'Show\x20help'},{'name':'id','meowKey':'id','type':'string','description':a32_0x3e1170(0xd9),'hidden':!![]},{'name':'name','meowKey':a32_0x3e1170(0xec),'type':'string','description':a32_0x3e1170(0xd3),'hidden':!![]},{'name':a32_0x3e1170(0xe9),'meowKey':'sqlcode','type':'string','description':'SQL\x20query\x20code','hidden':!![]},{'name':'params','meowKey':a32_0x3e1170(0xfc),'type':a32_0x3e1170(0xea),'description':a32_0x3e1170(0xf9),'hidden':!![]},{'name':a32_0x3e1170(0xe6),'meowKey':a32_0x3e1170(0xe6),'type':a32_0x3e1170(0xd5),'description':a32_0x3e1170(0xf1),'hidden':!![]},{'name':'clear','meowKey':a32_0x3e1170(0xf0),'type':a32_0x3e1170(0xd5),'description':a32_0x3e1170(0xe2),'hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set([a32_0x3e1170(0xe5),a32_0x3e1170(0xfe),a32_0x3e1170(0xdf),a32_0x3e1170(0xfa),'jq',a32_0x3e1170(0xdc),'yes',a32_0x3e1170(0xe8),'ci']);export function buildMeowFlags(){const _0x48b782=a32_0x3e1170;return Object[_0x48b782(0xcf)](GLOBAL_FLAGS['map'](_0x1505ee=>[_0x1505ee['meowKey'],{'type':_0x1505ee[_0x48b782(0xf6)]}]));}
1
+ const a33_0x3dbb65=a33_0x3fb5;(function(_0x444353,_0x146880){const _0xfdcaf5=a33_0x3fb5,_0x4e7ee0=_0x444353();while(!![]){try{const _0x1c0c42=parseInt(_0xfdcaf5(0xfe))/0x1*(parseInt(_0xfdcaf5(0xfa))/0x2)+-parseInt(_0xfdcaf5(0x119))/0x3+parseInt(_0xfdcaf5(0xf6))/0x4+-parseInt(_0xfdcaf5(0x115))/0x5*(-parseInt(_0xfdcaf5(0x109))/0x6)+parseInt(_0xfdcaf5(0x121))/0x7+-parseInt(_0xfdcaf5(0x100))/0x8*(parseInt(_0xfdcaf5(0x11b))/0x9)+-parseInt(_0xfdcaf5(0x111))/0xa;if(_0x1c0c42===_0x146880)break;else _0x4e7ee0['push'](_0x4e7ee0['shift']());}catch(_0x214728){_0x4e7ee0['push'](_0x4e7ee0['shift']());}}}(a33_0x411d,0x90c51));import{PRODUCT_CONFIG}from'../constant/product.js';import{LOVRABET_NPM_PACKAGE_NAME}from'../constant/distribution.js';function a33_0x411d(){const _0x3a6e58=['dryRun','<code>','JSON\x20params\x20for\x20execute\x20commands','Force\x20non-interactive\x20mode\x20(CI)','Override\x20appcode','Name\x20filter','global','boolean','6cCqwie','Output\x20format','env','dry-run','Preview\x20operation\x20without\x20executing','help','<name>','non-interactive','2152250dLVZOo','Show\x20help','params','appcode','3459655iCZYRs','SQL\x20query\x20code','yes','production\x20|\x20development\x20|\x20daily','2128497lGViVv','meowKey','747AauAPF','Environment','sqlcode','Verbose\x20output','verbose','string','4535202PwMADs','<expr>','fromEntries','Use\x20global\x20config\x20scope','2094240NRcZXh','cliBinName','app','clear','79428cMyoQg','map','nonInteractive','Record\x20ID','15gGkbap','format','90736ljgXEg'];a33_0x411d=function(){return _0x3a6e58;};return a33_0x411d();}export const CLI_BIN_NAME=PRODUCT_CONFIG[a33_0x3dbb65(0xf7)];export const CLI_DISPLAY_NAME=PRODUCT_CONFIG['cliDisplayName'];export const NPM_PACKAGE_NAME=LOVRABET_NPM_PACKAGE_NAME;export const GLOBAL_FLAGS=[{'name':'appcode','meowKey':a33_0x3dbb65(0x114),'type':a33_0x3dbb65(0x120),'description':a33_0x3dbb65(0x105),'hint':a33_0x3dbb65(0x102)},{'name':a33_0x3dbb65(0xf8),'meowKey':'app','type':a33_0x3dbb65(0x120),'description':'Select\x20app\x20profile\x20by\x20name','hint':a33_0x3dbb65(0x10f)},{'name':a33_0x3dbb65(0x10b),'meowKey':a33_0x3dbb65(0x10b),'type':a33_0x3dbb65(0x120),'description':a33_0x3dbb65(0x11c),'hint':a33_0x3dbb65(0x118)},{'name':a33_0x3dbb65(0xff),'meowKey':a33_0x3dbb65(0xff),'type':a33_0x3dbb65(0x120),'description':a33_0x3dbb65(0x10a),'hint':'json\x20|\x20pretty\x20|\x20compress'},{'name':'jq','meowKey':'jq','type':a33_0x3dbb65(0x120),'description':'Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20implies\x20--format\x20json\x20when\x20current\x20format\x20is\x20pretty)','hint':a33_0x3dbb65(0x122)},{'name':a33_0x3dbb65(0x10c),'meowKey':a33_0x3dbb65(0x101),'type':a33_0x3dbb65(0x108),'description':a33_0x3dbb65(0x10d)},{'name':a33_0x3dbb65(0x117),'meowKey':a33_0x3dbb65(0x117),'type':a33_0x3dbb65(0x108),'description':'Skip\x20confirmation\x20for\x20high-risk\x20writes'},{'name':a33_0x3dbb65(0x110),'meowKey':a33_0x3dbb65(0xfc),'type':a33_0x3dbb65(0x108),'description':a33_0x3dbb65(0x104)},{'name':a33_0x3dbb65(0x107),'meowKey':'global','type':a33_0x3dbb65(0x108),'description':a33_0x3dbb65(0x124)},{'name':'ci','meowKey':'ci','type':a33_0x3dbb65(0x108),'description':'Alias\x20for\x20--non-interactive','hidden':!![]},{'name':a33_0x3dbb65(0x10e),'meowKey':a33_0x3dbb65(0x10e),'type':a33_0x3dbb65(0x108),'description':a33_0x3dbb65(0x112)},{'name':'id','meowKey':'id','type':a33_0x3dbb65(0x120),'description':a33_0x3dbb65(0xfd),'hidden':!![]},{'name':'name','meowKey':'name','type':'string','description':a33_0x3dbb65(0x106),'hidden':!![]},{'name':a33_0x3dbb65(0x11d),'meowKey':'sqlcode','type':a33_0x3dbb65(0x120),'description':a33_0x3dbb65(0x116),'hidden':!![]},{'name':a33_0x3dbb65(0x113),'meowKey':a33_0x3dbb65(0x113),'type':'string','description':a33_0x3dbb65(0x103),'hidden':!![]},{'name':a33_0x3dbb65(0x11f),'meowKey':a33_0x3dbb65(0x11f),'type':a33_0x3dbb65(0x108),'description':a33_0x3dbb65(0x11e),'hidden':!![]},{'name':a33_0x3dbb65(0xf9),'meowKey':a33_0x3dbb65(0xf9),'type':a33_0x3dbb65(0x108),'description':'Clear\x20output','hidden':!![]}];function a33_0x3fb5(_0x2f985e,_0xcbe3ec){_0x2f985e=_0x2f985e-0xf6;const _0x411dd2=a33_0x411d();let _0x3fb5f0=_0x411dd2[_0x2f985e];return _0x3fb5f0;}export const PIPELINE_FLAG_NAMES=new Set(['appcode',a33_0x3dbb65(0xf8),'env',a33_0x3dbb65(0xff),'jq','dry-run','yes',a33_0x3dbb65(0x110),'ci']);export function buildMeowFlags(){const _0x2d8d0b=a33_0x3dbb65;return Object[_0x2d8d0b(0x123)](GLOBAL_FLAGS[_0x2d8d0b(0xfb)](_0x1f58e9=>[_0x1f58e9[_0x2d8d0b(0x11a)],{'type':_0x1f58e9['type']}]));}
@@ -1 +1 @@
1
- function a33_0x2329(_0x1a8845,_0x5af0b8){_0x1a8845=_0x1a8845-0x19d;const _0x213552=a33_0x2135();let _0x232909=_0x213552[_0x1a8845];return _0x232909;}const a33_0x356883=a33_0x2329;function a33_0x2135(){const _0x5b6ac1=['main','2153216ZkOTsw','en-US','283404sLOxbU','133VJWkUE','4848993kpPJIz','write','compress','2386605bBbrmW','372jYIBIo','938779zsUZhF','310wnBkad','46805MxDZfI','2DNYOcY','184496lRULpJ'];a33_0x2135=function(){return _0x5b6ac1;};return a33_0x2135();}(function(_0x5c579b,_0x41c214){const _0x3e96ce=a33_0x2329,_0xb79cc0=_0x5c579b();while(!![]){try{const _0x16473e=-parseInt(_0x3e96ce(0x1a3))/0x1*(parseInt(_0x3e96ce(0x1a6))/0x2)+parseInt(_0x3e96ce(0x1a1))/0x3+parseInt(_0x3e96ce(0x1a9))/0x4+-parseInt(_0x3e96ce(0x1a5))/0x5*(parseInt(_0x3e96ce(0x1a2))/0x6)+-parseInt(_0x3e96ce(0x19d))/0x7*(-parseInt(_0x3e96ce(0x1a7))/0x8)+-parseInt(_0x3e96ce(0x19e))/0x9+parseInt(_0x3e96ce(0x1a4))/0xa*(parseInt(_0x3e96ce(0x1ab))/0xb);if(_0x16473e===_0x41c214)break;else _0xb79cc0['push'](_0xb79cc0['shift']());}catch(_0x4b4c4b){_0xb79cc0['push'](_0xb79cc0['shift']());}}}(a33_0x2135,0x7d2fb));export const DEFAULT_APP_PROFILE_NAME=a33_0x356883(0x1a8);export const DEFAULT_CONFIG_VALUES={'env':'production','format':a33_0x356883(0x1a0),'locale':a33_0x356883(0x1aa),'riskLevel':a33_0x356883(0x19f)};export const DEFAULT_COMMAND_OUTPUT_FORMAT=a33_0x356883(0x1a0);
1
+ function a34_0x4292(_0x3811a2,_0x5e77bc){_0x3811a2=_0x3811a2-0x146;const _0x42ea4a=a34_0x42ea();let _0x4292f2=_0x42ea4a[_0x3811a2];return _0x4292f2;}const a34_0x4af0de=a34_0x4292;(function(_0x1a08a8,_0x21d64a){const _0x382b0a=a34_0x4292,_0x8a2409=_0x1a08a8();while(!![]){try{const _0x2c50b4=parseInt(_0x382b0a(0x149))/0x1*(parseInt(_0x382b0a(0x152))/0x2)+parseInt(_0x382b0a(0x14f))/0x3+parseInt(_0x382b0a(0x14c))/0x4+-parseInt(_0x382b0a(0x14d))/0x5+parseInt(_0x382b0a(0x151))/0x6*(-parseInt(_0x382b0a(0x148))/0x7)+parseInt(_0x382b0a(0x147))/0x8*(parseInt(_0x382b0a(0x153))/0x9)+-parseInt(_0x382b0a(0x14a))/0xa;if(_0x2c50b4===_0x21d64a)break;else _0x8a2409['push'](_0x8a2409['shift']());}catch(_0x5aa970){_0x8a2409['push'](_0x8a2409['shift']());}}}(a34_0x42ea,0x52b3f));export const DEFAULT_APP_PROFILE_NAME='main';export const DEFAULT_CONFIG_VALUES={'env':a34_0x4af0de(0x146),'format':a34_0x4af0de(0x14b),'locale':a34_0x4af0de(0x14e),'riskLevel':a34_0x4af0de(0x150)};export const DEFAULT_COMMAND_OUTPUT_FORMAT=a34_0x4af0de(0x14b);function a34_0x42ea(){const _0x1123cf=['2692340JzAibV','2200675grrEbe','en-US','1473621OWeQMm','write','1113924KsbOQu','103242mVyLmp','4311Rjlavi','production','10504SSBsqW','7Xaotdb','2yentQD','9319210JcXDfZ','compress'];a34_0x42ea=function(){return _0x1123cf;};return a34_0x42ea();}
@@ -1 +1 @@
1
- const a34_0x4e4206=a34_0x2436;function a34_0x2436(_0x52c459,_0xc5f430){_0x52c459=_0x52c459-0x18c;const _0x4c183a=a34_0x4c18();let _0x243698=_0x4c183a[_0x52c459];return _0x243698;}(function(_0xcbf445,_0x356b79){const _0x2d45c8=a34_0x2436,_0x12adac=_0xcbf445();while(!![]){try{const _0x3a2e7f=parseInt(_0x2d45c8(0x192))/0x1*(parseInt(_0x2d45c8(0x190))/0x2)+parseInt(_0x2d45c8(0x195))/0x3+parseInt(_0x2d45c8(0x18d))/0x4*(parseInt(_0x2d45c8(0x18c))/0x5)+-parseInt(_0x2d45c8(0x198))/0x6+parseInt(_0x2d45c8(0x194))/0x7*(-parseInt(_0x2d45c8(0x18e))/0x8)+-parseInt(_0x2d45c8(0x193))/0x9*(-parseInt(_0x2d45c8(0x191))/0xa)+-parseInt(_0x2d45c8(0x199))/0xb;if(_0x3a2e7f===_0x356b79)break;else _0x12adac['push'](_0x12adac['shift']());}catch(_0x14299b){_0x12adac['push'](_0x12adac['shift']());}}}(a34_0x4c18,0x206f7));import{PRODUCT_CONFIG}from'../constant/product.js';function a34_0x4c18(){const _0x5597dd=['8UlFdpi','npmPackageName','437110SROnNK','50ETYjKA','1xxUOjs','77733TxnfMM','235585eNDXlS','787824tAdCxv','skillSource','npmRegistryBaseUrl','1061676vONoxi','3448632QKmqfx','6980zyMzVC','380JjXtUq'];a34_0x4c18=function(){return _0x5597dd;};return a34_0x4c18();}export const LOVRABET_NPM_PACKAGE_NAME=PRODUCT_CONFIG[a34_0x4e4206(0x18f)];export const LOVRABET_SKILL_SOURCE=PRODUCT_CONFIG[a34_0x4e4206(0x196)];export const NPM_REGISTRY_BASE_URL=PRODUCT_CONFIG[a34_0x4e4206(0x197)];
1
+ const a35_0x451c90=a35_0x19c4;function a35_0x58ee(){const _0x5955dd=['2357352SWKzma','4BiuscS','46BNJABO','266265dVzZLz','3043660RhCqht','207879TvKRYw','156RvBFbT','npmRegistryBaseUrl','skillSource','7327ecIcxQ','40rErHWm','271535hdAKyz','3884535TXoqWW','npmPackageName'];a35_0x58ee=function(){return _0x5955dd;};return a35_0x58ee();}(function(_0x1489b3,_0x4a19f8){const _0xf2a50e=a35_0x19c4,_0x21b565=_0x1489b3();while(!![]){try{const _0x4dd815=parseInt(_0xf2a50e(0x14f))/0x1*(-parseInt(_0xf2a50e(0x156))/0x2)+parseInt(_0xf2a50e(0x154))/0x3+-parseInt(_0xf2a50e(0x155))/0x4*(parseInt(_0xf2a50e(0x152))/0x5)+-parseInt(_0xf2a50e(0x14c))/0x6*(-parseInt(_0xf2a50e(0x14b))/0x7)+parseInt(_0xf2a50e(0x150))/0x8*(parseInt(_0xf2a50e(0x149))/0x9)+-parseInt(_0xf2a50e(0x14a))/0xa+parseInt(_0xf2a50e(0x151))/0xb;if(_0x4dd815===_0x4a19f8)break;else _0x21b565['push'](_0x21b565['shift']());}catch(_0x365a99){_0x21b565['push'](_0x21b565['shift']());}}}(a35_0x58ee,0x755d2));import{PRODUCT_CONFIG}from'../constant/product.js';export const LOVRABET_NPM_PACKAGE_NAME=PRODUCT_CONFIG[a35_0x451c90(0x153)];function a35_0x19c4(_0x2bb382,_0xe3f57b){_0x2bb382=_0x2bb382-0x149;const _0x58ee59=a35_0x58ee();let _0x19c471=_0x58ee59[_0x2bb382];return _0x19c471;}export const LOVRABET_SKILL_SOURCE=PRODUCT_CONFIG[a35_0x451c90(0x14e)];export const NPM_REGISTRY_BASE_URL=PRODUCT_CONFIG[a35_0x451c90(0x14d)];
@@ -1 +1 @@
1
- function a35_0x2b88(_0x1756f4,_0x652532){_0x1756f4=_0x1756f4-0x14e;const _0x423b66=a35_0x423b();let _0x2b889d=_0x423b66[_0x1756f4];return _0x2b889d;}const a35_0x5aa87a=a35_0x2b88;(function(_0xe08ebc,_0x41f7bb){const _0x3901a6=a35_0x2b88,_0x3dcfee=_0xe08ebc();while(!![]){try{const _0x3fe4df=parseInt(_0x3901a6(0x151))/0x1*(parseInt(_0x3901a6(0x152))/0x2)+parseInt(_0x3901a6(0x155))/0x3+-parseInt(_0x3901a6(0x15c))/0x4*(parseInt(_0x3901a6(0x158))/0x5)+-parseInt(_0x3901a6(0x159))/0x6+-parseInt(_0x3901a6(0x15b))/0x7*(-parseInt(_0x3901a6(0x15d))/0x8)+parseInt(_0x3901a6(0x14e))/0x9+-parseInt(_0x3901a6(0x15a))/0xa;if(_0x3fe4df===_0x41f7bb)break;else _0x3dcfee['push'](_0x3dcfee['shift']());}catch(_0x664c1c){_0x3dcfee['push'](_0x3dcfee['shift']());}}}(a35_0x423b,0xb4ab6));import{getEnv,isProduction}from'../constant/env.js';import{PRODUCT_CONFIG}from'../constant/product.js';let customApiDomain,customUserDomain,customRuntimeDomain;export function initDomains(_0x3efe55){const _0x485439=a35_0x2b88;customApiDomain=_0x3efe55?.['apiDomain'],customUserDomain=_0x3efe55?.['userDomain'],customRuntimeDomain=_0x3efe55?.[_0x485439(0x154)];}export const getUserDomain=()=>customUserDomain||(isProduction(getEnv())?PRODUCT_CONFIG['domains'][a35_0x5aa87a(0x153)][a35_0x5aa87a(0x15e)]:PRODUCT_CONFIG[a35_0x5aa87a(0x150)][a35_0x5aa87a(0x156)][a35_0x5aa87a(0x15e)]);function a35_0x423b(){const _0x8fe067=['1699593KkgRYQ','60NOjOvm','8TtAquE','user','5739498eAokOj','api','domains','42220TUkbqn','52YWrFbn','production','runtimeDomain','3830112CCIcxy','nonProduction','runtime','470805VcTySI','363060uuvJDa','10419980ZlrOQt'];a35_0x423b=function(){return _0x8fe067;};return a35_0x423b();}export const getApiDomain=()=>customApiDomain||(isProduction(getEnv())?PRODUCT_CONFIG['domains'][a35_0x5aa87a(0x153)][a35_0x5aa87a(0x14f)]:PRODUCT_CONFIG['domains'][a35_0x5aa87a(0x156)]['api']);export const getRuntimeDomain=()=>customRuntimeDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a35_0x5aa87a(0x150)]['production']['runtime']:PRODUCT_CONFIG[a35_0x5aa87a(0x150)][a35_0x5aa87a(0x156)][a35_0x5aa87a(0x157)]);
1
+ const a36_0x427168=a36_0x6131;(function(_0x487dde,_0x2e69d9){const _0x3541d3=a36_0x6131,_0x32313b=_0x487dde();while(!![]){try{const _0x1769a0=parseInt(_0x3541d3(0x148))/0x1*(parseInt(_0x3541d3(0x13c))/0x2)+-parseInt(_0x3541d3(0x14d))/0x3+-parseInt(_0x3541d3(0x145))/0x4+-parseInt(_0x3541d3(0x146))/0x5*(-parseInt(_0x3541d3(0x14e))/0x6)+-parseInt(_0x3541d3(0x14a))/0x7+-parseInt(_0x3541d3(0x13f))/0x8*(-parseInt(_0x3541d3(0x141))/0x9)+parseInt(_0x3541d3(0x144))/0xa*(parseInt(_0x3541d3(0x149))/0xb);if(_0x1769a0===_0x2e69d9)break;else _0x32313b['push'](_0x32313b['shift']());}catch(_0x4dc101){_0x32313b['push'](_0x32313b['shift']());}}}(a36_0x5435,0xb27c5));function a36_0x6131(_0x203b97,_0x477205){_0x203b97=_0x203b97-0x13c;const _0x543569=a36_0x5435();let _0x6131bb=_0x543569[_0x203b97];return _0x6131bb;}import{getEnv,isProduction}from'../constant/env.js';import{PRODUCT_CONFIG}from'../constant/product.js';let customApiDomain,customUserDomain,customRuntimeDomain;export function initDomains(_0x1d06c3){const _0x1c501d=a36_0x6131;customApiDomain=_0x1d06c3?.[_0x1c501d(0x143)],customUserDomain=_0x1d06c3?.[_0x1c501d(0x140)],customRuntimeDomain=_0x1d06c3?.[_0x1c501d(0x147)];}export const getUserDomain=()=>customUserDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a36_0x427168(0x14c)][a36_0x427168(0x14f)][a36_0x427168(0x142)]:PRODUCT_CONFIG[a36_0x427168(0x14c)][a36_0x427168(0x13d)][a36_0x427168(0x142)]);export const getApiDomain=()=>customApiDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a36_0x427168(0x14c)][a36_0x427168(0x14f)][a36_0x427168(0x14b)]:PRODUCT_CONFIG[a36_0x427168(0x14c)]['nonProduction'][a36_0x427168(0x14b)]);function a36_0x5435(){const _0xea4985=['5595996GwdpYq','api','domains','3996465lWYXoh','95154XztfEz','production','61090SmNvXc','nonProduction','runtime','8htcIcZ','userDomain','8066133vpKTGY','user','apiDomain','30MOzpiw','3430516LJarzp','5ufPEPk','runtimeDomain','23RVKRgE','7720746AEMvfB'];a36_0x5435=function(){return _0xea4985;};return a36_0x5435();}export const getRuntimeDomain=()=>customRuntimeDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a36_0x427168(0x14c)][a36_0x427168(0x14f)][a36_0x427168(0x13e)]:PRODUCT_CONFIG[a36_0x427168(0x14c)]['nonProduction']['runtime']);
@@ -1 +1 @@
1
- const a36_0x7d7fcb=a36_0x3a9d;(function(_0x1be752,_0xcb9488){const _0x20b982=a36_0x3a9d,_0xd8343c=_0x1be752();while(!![]){try{const _0x4dae04=parseInt(_0x20b982(0x141))/0x1+parseInt(_0x20b982(0x143))/0x2+parseInt(_0x20b982(0x13d))/0x3+parseInt(_0x20b982(0x138))/0x4*(parseInt(_0x20b982(0x139))/0x5)+parseInt(_0x20b982(0x13c))/0x6*(parseInt(_0x20b982(0x13b))/0x7)+-parseInt(_0x20b982(0x144))/0x8+-parseInt(_0x20b982(0x13e))/0x9*(parseInt(_0x20b982(0x142))/0xa);if(_0x4dae04===_0xcb9488)break;else _0xd8343c['push'](_0xd8343c['shift']());}catch(_0x147235){_0xd8343c['push'](_0xd8343c['shift']());}}}(a36_0x13e3,0x501aa));function a36_0x3a9d(_0x3f94c3,_0x2af89c){_0x3f94c3=_0x3f94c3-0x138;const _0x13e357=a36_0x13e3();let _0x3a9d35=_0x13e357[_0x3f94c3];return _0x3a9d35;}import{productEnv}from'../constant/product.js';export const RUNTIME_ENV_VALUES=[a36_0x7d7fcb(0x146),a36_0x7d7fcb(0x13a),'daily'];export function normalizeEnv(_0x53b3a7){const _0x381011=a36_0x7d7fcb;return _0x53b3a7===_0x381011(0x13f)?'production':_0x53b3a7;}export function isProduction(_0x540b7b){const _0x41c098=a36_0x7d7fcb;return normalizeEnv(_0x540b7b)===_0x41c098(0x146);}export function isDaily(_0x3325b5){const _0x11bc5c=a36_0x7d7fcb;return normalizeEnv(_0x3325b5)===_0x11bc5c(0x140);}export function isDev(_0xa7b168){const _0x420dc3=normalizeEnv(_0xa7b168);return _0x420dc3==='development'||_0x420dc3==='dev';}function a36_0x13e3(){const _0x1e66be=['347826RUTCFu','8103456jHpsNL','online','daily','162248SMukHn','10valEzc','1022598lxodQp','1452392JImFYh','ENV','production','35372TlmZKk','205PScqoI','development','1805909dfOXAf','6jEOlJi'];a36_0x13e3=function(){return _0x1e66be;};return a36_0x13e3();}let env=normalizeEnv(productEnv(a36_0x7d7fcb(0x145))||a36_0x7d7fcb(0x146));export function getEnv(){return env;}export function initEnv(_0x2fa0b6){env=normalizeEnv(_0x2fa0b6);}
1
+ const a37_0x5ef596=a37_0x312e;(function(_0x4e4a39,_0x1cd847){const _0x4db322=a37_0x312e,_0x29534e=_0x4e4a39();while(!![]){try{const _0xeedc32=-parseInt(_0x4db322(0x156))/0x1*(parseInt(_0x4db322(0x158))/0x2)+parseInt(_0x4db322(0x15d))/0x3+-parseInt(_0x4db322(0x155))/0x4+parseInt(_0x4db322(0x162))/0x5+-parseInt(_0x4db322(0x160))/0x6*(parseInt(_0x4db322(0x15b))/0x7)+parseInt(_0x4db322(0x15a))/0x8+parseInt(_0x4db322(0x154))/0x9*(parseInt(_0x4db322(0x15f))/0xa);if(_0xeedc32===_0x1cd847)break;else _0x29534e['push'](_0x29534e['shift']());}catch(_0x519c52){_0x29534e['push'](_0x29534e['shift']());}}}(a37_0x2d76,0x4def8));function a37_0x2d76(){const _0x274107=['1674444xcwEqm','3cuhVny','online','319556VoVXtk','development','1416376tGffqw','32921jZSwuC','dev','66309qpOZiF','ENV','6982770SRlIof','186fpwXen','daily','2327675jypXGU','production','9HSbvKl'];a37_0x2d76=function(){return _0x274107;};return a37_0x2d76();}import{productEnv}from'../constant/product.js';export const RUNTIME_ENV_VALUES=[a37_0x5ef596(0x163),a37_0x5ef596(0x159),a37_0x5ef596(0x161)];export function normalizeEnv(_0x7c72c7){const _0x386123=a37_0x5ef596;return _0x7c72c7===_0x386123(0x157)?_0x386123(0x163):_0x7c72c7;}export function isProduction(_0xda3d81){const _0xd5de9=a37_0x5ef596;return normalizeEnv(_0xda3d81)===_0xd5de9(0x163);}export function isDaily(_0x1c0fef){const _0x4a09a9=a37_0x5ef596;return normalizeEnv(_0x1c0fef)===_0x4a09a9(0x161);}export function isDev(_0x59a0ca){const _0x5d6887=a37_0x5ef596,_0x543a8b=normalizeEnv(_0x59a0ca);return _0x543a8b==='development'||_0x543a8b===_0x5d6887(0x15c);}function a37_0x312e(_0x244164,_0x48b79f){_0x244164=_0x244164-0x154;const _0x2d762a=a37_0x2d76();let _0x312efb=_0x2d762a[_0x244164];return _0x312efb;}let env=normalizeEnv(productEnv(a37_0x5ef596(0x15e))||a37_0x5ef596(0x163));export function getEnv(){return env;}export function initEnv(_0x54a9f5){env=normalizeEnv(_0x54a9f5);}
@@ -1 +1 @@
1
- const a37_0x12419d=a37_0x5c35;(function(_0x3d9827,_0x4782fb){const _0x4d8999=a37_0x5c35,_0x53f0c1=_0x3d9827();while(!![]){try{const _0x4d9050=parseInt(_0x4d8999(0x1ed))/0x1*(parseInt(_0x4d8999(0x1e6))/0x2)+parseInt(_0x4d8999(0x1e7))/0x3+parseInt(_0x4d8999(0x1ea))/0x4+parseInt(_0x4d8999(0x1ee))/0x5+-parseInt(_0x4d8999(0x1ef))/0x6+parseInt(_0x4d8999(0x1e8))/0x7*(-parseInt(_0x4d8999(0x1f1))/0x8)+parseInt(_0x4d8999(0x1eb))/0x9;if(_0x4d9050===_0x4782fb)break;else _0x53f0c1['push'](_0x53f0c1['shift']());}catch(_0x4e42cc){_0x53f0c1['push'](_0x53f0c1['shift']());}}}(a37_0xe8b0,0x1b570));function a37_0xe8b0(){const _0x3f779a=['compress','184UzafwD','40682qOgPml','391434pHzekN','65163jYqUQe','pretty','488780wiWFCR','1361772aOTpgU','json','3qYaxkf','260780ZgSRgr','1146414lckJmN'];a37_0xe8b0=function(){return _0x3f779a;};return a37_0xe8b0();}function a37_0x5c35(_0x5a6705,_0x311470){_0x5a6705=_0x5a6705-0x1e6;const _0xe8b0f6=a37_0xe8b0();let _0x5c3555=_0xe8b0f6[_0x5a6705];return _0x5c3555;}export const OUTPUT_FORMAT_VALUES=[a37_0x12419d(0x1ec),a37_0x12419d(0x1e9),a37_0x12419d(0x1f0)];
1
+ const a38_0x9c36ed=a38_0x41cd;function a38_0x15e3(){const _0x11fec5=['json','compress','40HKwJrc','287748eeNvtF','2504538ApCfnM','74CxuugX','323232ZQDRJf','17814150bNmerl','130512GXRxZL','901893WAzHIz','12791dMEHRT','32QcRkUK'];a38_0x15e3=function(){return _0x11fec5;};return a38_0x15e3();}(function(_0xaf4073,_0x441edc){const _0x15acac=a38_0x41cd,_0x570aa1=_0xaf4073();while(!![]){try{const _0x11b4f6=-parseInt(_0x15acac(0x117))/0x1*(parseInt(_0x15acac(0x11e))/0x2)+-parseInt(_0x15acac(0x116))/0x3+-parseInt(_0x15acac(0x115))/0x4*(parseInt(_0x15acac(0x11b))/0x5)+-parseInt(_0x15acac(0x11d))/0x6+parseInt(_0x15acac(0x11f))/0x7+-parseInt(_0x15acac(0x118))/0x8*(parseInt(_0x15acac(0x11c))/0x9)+parseInt(_0x15acac(0x120))/0xa;if(_0x11b4f6===_0x441edc)break;else _0x570aa1['push'](_0x570aa1['shift']());}catch(_0x34aa5c){_0x570aa1['push'](_0x570aa1['shift']());}}}(a38_0x15e3,0x3c63e));function a38_0x41cd(_0x3a1a23,_0x654f34){_0x3a1a23=_0x3a1a23-0x115;const _0x15e3bf=a38_0x15e3();let _0x41cde4=_0x15e3bf[_0x3a1a23];return _0x41cde4;}export const OUTPUT_FORMAT_VALUES=[a38_0x9c36ed(0x119),'pretty',a38_0x9c36ed(0x11a)];
@@ -1 +1 @@
1
- const a38_0x38c31f=a38_0x1902;function a38_0x1902(_0x5efd6f,_0x2e14f0){_0x5efd6f=_0x5efd6f-0x183;const _0x4e5b87=a38_0x4e5b();let _0x1902c0=_0x4e5b87[_0x5efd6f];return _0x1902c0;}(function(_0x59c847,_0x493eed){const _0x413801=a38_0x1902,_0x543dcb=_0x59c847();while(!![]){try{const _0x4788f2=-parseInt(_0x413801(0x19d))/0x1*(-parseInt(_0x413801(0x199))/0x2)+-parseInt(_0x413801(0x186))/0x3+-parseInt(_0x413801(0x193))/0x4*(-parseInt(_0x413801(0x185))/0x5)+parseInt(_0x413801(0x18f))/0x6+-parseInt(_0x413801(0x189))/0x7+parseInt(_0x413801(0x18d))/0x8*(-parseInt(_0x413801(0x19e))/0x9)+parseInt(_0x413801(0x18e))/0xa;if(_0x4788f2===_0x493eed)break;else _0x543dcb['push'](_0x543dcb['shift']());}catch(_0xf4ba3b){_0x543dcb['push'](_0x543dcb['shift']());}}}(a38_0x4e5b,0x6d08a));export const PRODUCT_CONFIG={'cliBinName':a38_0x38c31f(0x195),'cliDisplayName':'Lovrabet\x20Runtime\x20CLI','npmPackageName':a38_0x38c31f(0x187),'skillSource':a38_0x38c31f(0x19c),'npmRegistryBaseUrl':a38_0x38c31f(0x18b),'envPrefix':'LOVRABET','legacyEnvPrefixes':[a38_0x38c31f(0x196)],'configFileNames':[a38_0x38c31f(0x18a),a38_0x38c31f(0x19a)],'newConfigFileName':'.lovrabet.json','homeDirName':'.lovrabet','logFileName':a38_0x38c31f(0x19b),'invokeSource':a38_0x38c31f(0x188),'userCenterDisplayName':a38_0x38c31f(0x192),'skipNpxSkillsEnvSuffix':a38_0x38c31f(0x190),'domains':{'production':{'user':a38_0x38c31f(0x198),'api':a38_0x38c31f(0x183),'runtime':a38_0x38c31f(0x191)},'nonProduction':{'user':'https://user-daily.lovrabet.com','api':a38_0x38c31f(0x18c),'runtime':a38_0x38c31f(0x197)}},'accessKeyCreatePath':'/user/ak'};export function productEnvName(_0x4cc575){const _0x2a74da=a38_0x38c31f;return PRODUCT_CONFIG[_0x2a74da(0x194)]+'_'+_0x4cc575;}export function productEnvNames(_0x457164){const _0x450cd7=a38_0x38c31f;return[productEnvName(_0x457164),...PRODUCT_CONFIG[_0x450cd7(0x184)]['map'](_0x568cd2=>_0x568cd2+'_'+_0x457164)];}export function productEnv(_0x20f155){for(const _0x4b2d39 of productEnvNames(_0x20f155)){const _0x1c0369=process.env[_0x4b2d39];if(_0x1c0369!==undefined)return _0x1c0369;}return undefined;}function a38_0x4e5b(){const _0xbad546=['https://registry.npmjs.org','https://daily-api.lovrabet.com','248MsmtwM','14128810mCUEAW','732486KOaAAL','SKIP_NPX_SKILLS','https://runtime.lovrabet.com','Lovrabet\x20User\x20Center','4eZcjrk','envPrefix','lovrabet','RABETBASE','https://daily-runtime.lovrabet.com','https://user.lovrabet.com','2vctPGl','.lovrabetrc','.lovrabet-runtime.log','lovrabet/lovrabet-cli','454903zvalQG','181017CNzaDs','https://api.lovrabet.com','legacyEnvPrefixes','550045ucCQqs','1613577SFBgCw','@lovrabet/lovrabet-cli','cli:lovrabet-runtime','3443370yHPLzc','.lovrabet.json'];a38_0x4e5b=function(){return _0xbad546;};return a38_0x4e5b();}
1
+ function a39_0x41f2(_0x1e8f19,_0x33cd12){_0x1e8f19=_0x1e8f19-0xff;const _0x558a43=a39_0x558a();let _0x41f26e=_0x558a43[_0x1e8f19];return _0x41f26e;}const a39_0x26d269=a39_0x41f2;(function(_0x1f1d6f,_0x53394c){const _0x50eb8b=a39_0x41f2,_0x30f41d=_0x1f1d6f();while(!![]){try{const _0x390e46=-parseInt(_0x50eb8b(0x116))/0x1*(parseInt(_0x50eb8b(0x102))/0x2)+parseInt(_0x50eb8b(0x11a))/0x3*(-parseInt(_0x50eb8b(0x10c))/0x4)+parseInt(_0x50eb8b(0x11b))/0x5+parseInt(_0x50eb8b(0x106))/0x6+parseInt(_0x50eb8b(0x111))/0x7*(parseInt(_0x50eb8b(0x103))/0x8)+parseInt(_0x50eb8b(0x11d))/0x9+parseInt(_0x50eb8b(0x11c))/0xa*(parseInt(_0x50eb8b(0x105))/0xb);if(_0x390e46===_0x53394c)break;else _0x30f41d['push'](_0x30f41d['shift']());}catch(_0x8bba19){_0x30f41d['push'](_0x30f41d['shift']());}}}(a39_0x558a,0x7c255));function a39_0x558a(){const _0x495a57=['4416310EjBxtp','7160733qNGJvD','/user/ak','envPrefix','.lovrabetrc','143886PMDRwJ','2166432eINIyx','SKIP_NPX_SKILLS','22LUtxFu','1138068JOVkVZ','cli:lovrabet-runtime','legacyEnvPrefixes','https://registry.npmjs.org','https://user-daily.lovrabet.com','.lovrabet-runtime.log','4NxdUKD','https://api.lovrabet.com','RABETBASE','.lovrabet','map','7YCAlPU','lovrabet/lovrabet-cli','.lovrabet.json','Lovrabet\x20Runtime\x20CLI','lovrabet','13dWdbBY','https://user.lovrabet.com','LOVRABET','Lovrabet\x20User\x20Center','2842923djLGRy','1260100qJkuzS'];a39_0x558a=function(){return _0x495a57;};return a39_0x558a();}export const PRODUCT_CONFIG={'cliBinName':a39_0x26d269(0x115),'cliDisplayName':a39_0x26d269(0x114),'npmPackageName':'@lovrabet/lovrabet-cli','skillSource':a39_0x26d269(0x112),'npmRegistryBaseUrl':a39_0x26d269(0x109),'envPrefix':a39_0x26d269(0x118),'legacyEnvPrefixes':[a39_0x26d269(0x10e)],'configFileNames':[a39_0x26d269(0x113),a39_0x26d269(0x101)],'newConfigFileName':a39_0x26d269(0x113),'homeDirName':a39_0x26d269(0x10f),'logFileName':a39_0x26d269(0x10b),'invokeSource':a39_0x26d269(0x107),'userCenterDisplayName':a39_0x26d269(0x119),'skipNpxSkillsEnvSuffix':a39_0x26d269(0x104),'domains':{'production':{'user':a39_0x26d269(0x117),'api':a39_0x26d269(0x10d),'runtime':'https://runtime.lovrabet.com'},'nonProduction':{'user':a39_0x26d269(0x10a),'api':'https://daily-api.lovrabet.com','runtime':'https://daily-runtime.lovrabet.com'}},'accessKeyCreatePath':a39_0x26d269(0xff)};export function productEnvName(_0xf2e43d){const _0x4f5e93=a39_0x26d269;return PRODUCT_CONFIG[_0x4f5e93(0x100)]+'_'+_0xf2e43d;}export function productEnvNames(_0x520158){const _0xbfde20=a39_0x26d269;return[productEnvName(_0x520158),...PRODUCT_CONFIG[_0xbfde20(0x108)][_0xbfde20(0x110)](_0x362660=>_0x362660+'_'+_0x520158)];}export function productEnv(_0x29179e){for(const _0x2164a0 of productEnvNames(_0x29179e)){const _0x4de77c=process.env[_0x2164a0];if(_0x4de77c!==undefined)return _0x4de77c;}return undefined;}
@@ -1 +1 @@
1
- function a39_0x3f2b(){const _0xc1eb52=['5BZzScg','2532456qwXBZO','10jCOwbQ','read','high-risk-write','write','2176664ihAPCp','466938ENVZnD','4222AqBykz','248wiKQsj','1441932cxLgrh','2502024HyBGlY','95264nGpSwN'];a39_0x3f2b=function(){return _0xc1eb52;};return a39_0x3f2b();}function a39_0x559f(_0x312da2,_0x23fbf1){_0x312da2=_0x312da2-0xfe;const _0x3f2b58=a39_0x3f2b();let _0x559fac=_0x3f2b58[_0x312da2];return _0x559fac;}const a39_0x37ec24=a39_0x559f;(function(_0x218259,_0x5af567){const _0x177f81=a39_0x559f,_0xde227a=_0x218259();while(!![]){try{const _0x4fd033=-parseInt(_0x177f81(0x108))/0x1*(parseInt(_0x177f81(0x109))/0x2)+parseInt(_0x177f81(0xfe))/0x3+-parseInt(_0x177f81(0xff))/0x4+parseInt(_0x177f81(0x100))/0x5*(parseInt(_0x177f81(0x10a))/0x6)+-parseInt(_0x177f81(0x106))/0x7+parseInt(_0x177f81(0x101))/0x8+-parseInt(_0x177f81(0x107))/0x9*(parseInt(_0x177f81(0x102))/0xa);if(_0x4fd033===_0x5af567)break;else _0xde227a['push'](_0xde227a['shift']());}catch(_0x471970){_0xde227a['push'](_0xde227a['shift']());}}}(a39_0x3f2b,0x755c5));export const RISK_LEVEL_VALUES=[a39_0x37ec24(0x103),a39_0x37ec24(0x105),a39_0x37ec24(0x104)];
1
+ function a40_0x2af2(_0x3fc3a3,_0x5cd785){_0x3fc3a3=_0x3fc3a3-0x175;const _0x1d0827=a40_0x1d08();let _0x2af2e0=_0x1d0827[_0x3fc3a3];return _0x2af2e0;}const a40_0x3b2e1e=a40_0x2af2;(function(_0x5846a3,_0x1b2d12){const _0x4cf373=a40_0x2af2,_0x54d8e2=_0x5846a3();while(!![]){try{const _0x3a0c87=-parseInt(_0x4cf373(0x176))/0x1+-parseInt(_0x4cf373(0x179))/0x2*(-parseInt(_0x4cf373(0x17d))/0x3)+-parseInt(_0x4cf373(0x178))/0x4+parseInt(_0x4cf373(0x175))/0x5*(-parseInt(_0x4cf373(0x177))/0x6)+parseInt(_0x4cf373(0x17a))/0x7*(parseInt(_0x4cf373(0x17f))/0x8)+-parseInt(_0x4cf373(0x17c))/0x9+parseInt(_0x4cf373(0x17b))/0xa;if(_0x3a0c87===_0x1b2d12)break;else _0x54d8e2['push'](_0x54d8e2['shift']());}catch(_0x1946d4){_0x54d8e2['push'](_0x54d8e2['shift']());}}}(a40_0x1d08,0x6098f));function a40_0x1d08(){const _0x428272=['25119120HayZJQ','6644556vBXRls','627vxIeIF','high-risk-write','4548368KqabDt','5MXIxPU','692865ikFQYm','3024978LdAHWF','3005456MevTvh','18jTrBhh','7ERgWXf'];a40_0x1d08=function(){return _0x428272;};return a40_0x1d08();}export const RISK_LEVEL_VALUES=['read','write',a40_0x3b2e1e(0x17e)];
@@ -1 +1 @@
1
- const a40_0x39adf6=a40_0x5a1e;(function(_0x37f9fc,_0x53b75e){const _0x2dbfdc=a40_0x5a1e,_0x5ab40f=_0x37f9fc();while(!![]){try{const _0x25ffd9=parseInt(_0x2dbfdc(0x1bf))/0x1+parseInt(_0x2dbfdc(0x1be))/0x2*(-parseInt(_0x2dbfdc(0x1c1))/0x3)+-parseInt(_0x2dbfdc(0x1c2))/0x4*(-parseInt(_0x2dbfdc(0x1b6))/0x5)+parseInt(_0x2dbfdc(0x1b8))/0x6*(-parseInt(_0x2dbfdc(0x1b7))/0x7)+parseInt(_0x2dbfdc(0x1c3))/0x8+-parseInt(_0x2dbfdc(0x1bd))/0x9*(parseInt(_0x2dbfdc(0x1bc))/0xa)+-parseInt(_0x2dbfdc(0x1b9))/0xb*(-parseInt(_0x2dbfdc(0x1bb))/0xc);if(_0x25ffd9===_0x53b75e)break;else _0x5ab40f['push'](_0x5ab40f['shift']());}catch(_0x74b686){_0x5ab40f['push'](_0x5ab40f['shift']());}}}(a40_0x5d9e,0xe9804));function a40_0x5a1e(_0x502800,_0x11d643){_0x502800=_0x502800-0x1b5;const _0x5d9e1a=a40_0x5d9e();let _0x5a1e05=_0x5d9e1a[_0x502800];return _0x5a1e05;}import{PRODUCT_CONFIG}from'../constant/product.js';export const USER_ACCESS_KEY_CREATE_URL=''+PRODUCT_CONFIG[a40_0x39adf6(0x1ba)]['production'][a40_0x39adf6(0x1b5)]+PRODUCT_CONFIG[a40_0x39adf6(0x1c0)];function a40_0x5d9e(){const _0x56c7ef=['685235xFLMaM','14XbvaXY','1844856LUUUOK','11CIOCgA','domains','8963196xCBaDT','1110MDaFdR','123984HcoSoz','102OaqnBb','1705809GZypoc','accessKeyCreatePath','92577bPNlky','32rIOalR','9001592aIvDFC','user'];a40_0x5d9e=function(){return _0x56c7ef;};return a40_0x5d9e();}
1
+ const a41_0x1caa5b=a41_0xe387;function a41_0xe387(_0x5e9dfe,_0x5a8f35){_0x5e9dfe=_0x5e9dfe-0xb0;const _0x4ed269=a41_0x4ed2();let _0xe3874e=_0x4ed269[_0x5e9dfe];return _0xe3874e;}(function(_0x2535fd,_0x1e28ba){const _0x21ea6e=a41_0xe387,_0xa096d=_0x2535fd();while(!![]){try{const _0x492d23=parseInt(_0x21ea6e(0xbc))/0x1*(-parseInt(_0x21ea6e(0xb6))/0x2)+parseInt(_0x21ea6e(0xbf))/0x3*(-parseInt(_0x21ea6e(0xbd))/0x4)+-parseInt(_0x21ea6e(0xb7))/0x5*(-parseInt(_0x21ea6e(0xb2))/0x6)+-parseInt(_0x21ea6e(0xb5))/0x7+-parseInt(_0x21ea6e(0xba))/0x8*(parseInt(_0x21ea6e(0xb4))/0x9)+parseInt(_0x21ea6e(0xb0))/0xa*(-parseInt(_0x21ea6e(0xbb))/0xb)+parseInt(_0x21ea6e(0xb8))/0xc;if(_0x492d23===_0x1e28ba)break;else _0xa096d['push'](_0xa096d['shift']());}catch(_0x37a8e2){_0xa096d['push'](_0xa096d['shift']());}}}(a41_0x4ed2,0x6c516));import{PRODUCT_CONFIG}from'../constant/product.js';function a41_0x4ed2(){const _0x3b484c=['109898xUUcOj','19644eeeMcs','user','306OApvMu','600MFxHih','domains','102uIuWoF','accessKeyCreatePath','7263IJgMCM','1835883wMfZVT','10hUYcsh','4645LqYjMM','35566128pOBxUq','production','5584yBqUDo','121000oKSTbK'];a41_0x4ed2=function(){return _0x3b484c;};return a41_0x4ed2();}export const USER_ACCESS_KEY_CREATE_URL=''+PRODUCT_CONFIG[a41_0x1caa5b(0xb1)][a41_0x1caa5b(0xb9)][a41_0x1caa5b(0xbe)]+PRODUCT_CONFIG[a41_0x1caa5b(0xb3)];
package/lib/context.js CHANGED
@@ -1 +1 @@
1
- const a41_0xbb3efe=a41_0x259b;function a41_0x259b(_0x2bb2a5,_0x74f521){_0x2bb2a5=_0x2bb2a5-0x181;const _0x165225=a41_0x1652();let _0x259ba7=_0x165225[_0x2bb2a5];return _0x259ba7;}(function(_0x580479,_0x2a7abe){const _0x16b522=a41_0x259b,_0x330083=_0x580479();while(!![]){try{const _0x5cc25b=-parseInt(_0x16b522(0x1b3))/0x1+-parseInt(_0x16b522(0x188))/0x2*(parseInt(_0x16b522(0x183))/0x3)+-parseInt(_0x16b522(0x1b4))/0x4+parseInt(_0x16b522(0x1aa))/0x5+parseInt(_0x16b522(0x1c6))/0x6*(parseInt(_0x16b522(0x1a8))/0x7)+-parseInt(_0x16b522(0x1b9))/0x8+parseInt(_0x16b522(0x193))/0x9;if(_0x5cc25b===_0x2a7abe)break;else _0x330083['push'](_0x330083['shift']());}catch(_0x330243){_0x330083['push'](_0x330083['shift']());}}}(a41_0x1652,0x4c251));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';function a41_0x1652(){const _0x1d82cc=['online','daily','ENV','setRawMode','apiDomain','production','top-level','./constant/env.js','isRaw','runtimeDomain','globalConfig','raw','.tmp','missing','write','pageSize','7RqMiYW','setLogPath','1641965XcRpNR','locale','riskLevel','slice','parse','high-risk-write','inherit','cache','VERBOSE','571730tAASDq','1050684JvOsLV','authRequired','newConfigFileName','appcode','local-alias','4360088AfLJvP','maxRisk','accessKey','argv','configFileNames','development','APPCODE','apps','global','ACCESS_KEY','message','project','stdout','3361398saqNgm','join','env','stdin','projectConfig','63033YhCDLb','host','object','values','APP','50WWNNGw','./constant/domain.js','defaultApp','stringify','cwd','trim','nonInteractive','string','format','error','some','11951550iTNkXi','app','code','EACCES','utf8'];a41_0x1652=function(){return _0x1d82cc;};return a41_0x1652();}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[a41_0xbb3efe(0x1bd)];export const NEW_CONFIG_NAME=PRODUCT_CONFIG[a41_0xbb3efe(0x1b6)];function resolveConfigPath(_0x124aae){for(const _0xb79fb4 of CONFIG_NAMES){const _0x2e05cd=resolve(_0x124aae,_0xb79fb4);if(existsSync(_0x2e05cd))return _0x2e05cd;}return undefined;}export function resolveWriteConfigPath(_0x376f81){const _0x4a69c2=a41_0xbb3efe,_0xedde25=_0x376f81===_0x4a69c2(0x1c4)?process['cwd']():homedir(),_0xa43315=resolveConfigPath(_0xedde25);return _0xa43315??resolve(_0xedde25,NEW_CONFIG_NAME);}export function readConfigFile(_0x3a3b91){const _0x4144a0=a41_0xbb3efe;try{if(existsSync(_0x3a3b91)){const _0x582f4f=readFileSync(_0x3a3b91,{'encoding':_0x4144a0(0x197)});if(_0x582f4f){const _0x443dd5=JSON[_0x4144a0(0x1ae)](_0x582f4f);return migrateOnlineEnv(_0x3a3b91,_0x443dd5),_0x443dd5;}}}catch{}return{};}function migrateOnlineEnv(_0x4c0e1c,_0x145ac0){const _0x3b5314=a41_0xbb3efe;let _0x44ecb4=![];_0x145ac0[_0x3b5314(0x1c8)]==='online'&&(_0x145ac0['env']='production',_0x44ecb4=!![]);if(_0x145ac0[_0x3b5314(0x1c0)]&&typeof _0x145ac0[_0x3b5314(0x1c0)]===_0x3b5314(0x185))for(const _0x341bc0 of Object['values'](_0x145ac0[_0x3b5314(0x1c0)])){_0x341bc0&&_0x341bc0[_0x3b5314(0x1c8)]===_0x3b5314(0x198)&&(_0x341bc0['env']=_0x3b5314(0x19d),_0x44ecb4=!![]);}if(_0x44ecb4)try{writeConfigFile(_0x4c0e1c,_0x145ac0);}catch{}}export function writeConfigFile(_0x2c803b,_0x1b3064){const _0x13f9f1=a41_0xbb3efe,_0x5ee79e=dirname(_0x2c803b);!existsSync(_0x5ee79e)&&mkdirSync(_0x5ee79e,{'recursive':!![]});const _0x27c43c=_0x2c803b+_0x13f9f1(0x1a4);try{writeFileSync(_0x27c43c,JSON[_0x13f9f1(0x18b)](_0x1b3064,null,0x2)+'\x0a',{'encoding':_0x13f9f1(0x197),'mode':0x180});try{renameSync(_0x27c43c,_0x2c803b);}catch(_0x155993){if(_0x155993[_0x13f9f1(0x195)]==='EPERM'||_0x155993[_0x13f9f1(0x195)]==='EXDEV'||_0x155993[_0x13f9f1(0x195)]===_0x13f9f1(0x196)){writeFileSync(_0x2c803b,JSON['stringify'](_0x1b3064,null,0x2)+'\x0a',{'encoding':'utf8'});try{unlinkSync(_0x27c43c);}catch{}}else throw _0x155993;}}catch(_0x3c65c6){try{unlinkSync(_0x27c43c);}catch{}throw _0x3c65c6;}}export function isNonInteractiveMode(_0x193816){const _0x4320df=a41_0xbb3efe;return!!(_0x193816[_0x4320df(0x18e)]||_0x193816['ci']||productEnvNames('CI')[_0x4320df(0x192)](_0x200437=>process.env[_0x200437]==='true')||process.env.CI==='true'||!process[_0x4320df(0x1c5)]['isTTY']||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x3815d0=a41_0xbb3efe;if(!process[_0x3815d0(0x181)]['isTTY'])return![];try{const _0x22ccde=process[_0x3815d0(0x181)][_0x3815d0(0x1a0)];return process[_0x3815d0(0x181)][_0x3815d0(0x19b)](!![]),process[_0x3815d0(0x181)][_0x3815d0(0x19b)](_0x22ccde??![]),!![];}catch{return![];}}export async function createContext(_0x266514){const _0xff29a8=a41_0xbb3efe,_0x168252=readRawConfig(),_0x38f2c6=buildConfig(_0x168252,_0x266514);await initGlobalEnvironment(_0x38f2c6);const {getUserDomain:_0x512031,getApiDomain:_0x1952c9}=await import('./constant/domain.js'),_0x32761f={'apiDomain':_0x1952c9(),'userDomain':_0x512031()},_0x4bf596=await buildAuth(_0x38f2c6);logger[_0xff29a8(0x1a9)](process[_0xff29a8(0x18c)]());const _0xce028c=(CLI_BIN_NAME+'\x20'+process[_0xff29a8(0x1bc)][_0xff29a8(0x1ad)](0x2)[_0xff29a8(0x1c7)]('\x20'))[_0xff29a8(0x18d)]();logger['setRawCommand'](_0xce028c);const _0x411469=isNonInteractiveMode(_0x266514);return{'config':_0x38f2c6,'auth':_0x4bf596,'logger':logger,'env':_0x32761f,'nonInteractive':_0x411469};}export function buildConfigFromFlags(_0x129217){return buildConfig(readRawConfig(),_0x129217);}export function getLocalAppAliases(_0x3f0cbf){const _0x5a4f2e=a41_0xbb3efe;return _0x3f0cbf[_0x5a4f2e(0x1c0)]&&typeof _0x3f0cbf[_0x5a4f2e(0x1c0)]==='object'?_0x3f0cbf[_0x5a4f2e(0x1c0)]:{};}export function resolveLocalAppAliasCode(_0x17bd77,_0x482bba){const _0x5bbb7c=a41_0xbb3efe;if(!_0x482bba)return undefined;const _0x111334=getLocalAppAliases(_0x17bd77)[_0x482bba],_0x2f7133=_0x111334?.[_0x5bbb7c(0x1b7)];return typeof _0x2f7133===_0x5bbb7c(0x18f)&&_0x2f7133[_0x5bbb7c(0x18d)]()?_0x2f7133[_0x5bbb7c(0x18d)]():undefined;}export function readAppCodeFromConfig(){const _0x442b73=a41_0xbb3efe,_0x126ada=readRawConfig(),_0xe03d3c=_0x126ada['appcode']??_0x126ada[_0x442b73(0x194)];if(typeof _0xe03d3c==='string'&&_0xe03d3c[_0x442b73(0x18d)]())return _0xe03d3c[_0x442b73(0x18d)]();const _0x1142a5=resolveLocalAppAliasCode(_0x126ada,typeof _0x126ada[_0x442b73(0x18a)]===_0x442b73(0x18f)?_0x126ada[_0x442b73(0x18a)]:undefined);if(_0x1142a5)return _0x1142a5;const _0x3a83ca=normalizeEnv(String(_0x126ada['env']||_0x442b73(0x19d))),_0x5c420b=isDaily(_0x3a83ca)?_0x442b73(0x199):isDev(_0x3a83ca)?_0x442b73(0x1be):_0x442b73(0x19d),_0x14cec4=resolveCachedAppCode(typeof _0x126ada['defaultApp']===_0x442b73(0x18f)?_0x126ada[_0x442b73(0x18a)]:undefined,_0x5c420b,typeof _0x126ada[_0x442b73(0x1bb)]===_0x442b73(0x18f)?_0x126ada[_0x442b73(0x1bb)]:undefined);if(_0x14cec4)return _0x14cec4;const _0x53fb1f=Object[_0x442b73(0x186)](getLocalAppAliases(_0x126ada))['find'](_0x1e2a40=>_0x1e2a40?.[_0x442b73(0x1b7)]);return typeof _0x53fb1f?.[_0x442b73(0x1b7)]===_0x442b73(0x18f)&&_0x53fb1f[_0x442b73(0x1b7)]['trim']()?_0x53fb1f['appcode'][_0x442b73(0x18d)]():undefined;}export function readScopedConfig(_0x2c5447){const _0x2226e8=a41_0xbb3efe,_0x72b110=_0x2c5447[_0x2226e8(0x1c1)]?_0x2226e8(0x1c1):_0x2226e8(0x1c4);return readConfigFile(resolveWriteConfigPath(_0x72b110));}export function writeScopedConfig(_0x41fa65,_0x17825d){const _0x3ce2b6=a41_0xbb3efe,_0x58a001=_0x17825d[_0x3ce2b6(0x1c1)]?_0x3ce2b6(0x1c1):_0x3ce2b6(0x1c4);writeConfigFile(resolveWriteConfigPath(_0x58a001),_0x41fa65);}export async function initGlobalEnvironment(_0x18baf0){const _0x2c2bae=a41_0xbb3efe,{initEnv:_0x41db66}=await import(_0x2c2bae(0x19f));_0x41db66(_0x18baf0[_0x2c2bae(0x1c8)]);const {initDomains:_0x3fb137}=await import(_0x2c2bae(0x189));_0x3fb137({'apiDomain':_0x18baf0[_0x2c2bae(0x1a3)][_0x2c2bae(0x19c)]||_0x18baf0[_0x2c2bae(0x1a3)][_0x2c2bae(0x184)]||undefined,'userDomain':_0x18baf0[_0x2c2bae(0x1a3)]['userDomain']||undefined,'runtimeDomain':_0x18baf0[_0x2c2bae(0x1a3)][_0x2c2bae(0x1a1)]||undefined});}export function getProjectConfigPath(){const _0x32f5cb=a41_0xbb3efe;return resolveConfigPath(process[_0x32f5cb(0x18c)]());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function inspectCliConfigJsonFile(_0x4eab73){const _0x2815db=a41_0xbb3efe;if(!existsSync(_0x4eab73))return{'status':_0x2815db(0x1a5)};try{const _0x1c75df=readFileSync(_0x4eab73,{'encoding':_0x2815db(0x197)});if(!_0x1c75df?.[_0x2815db(0x18d)]())return{'status':'empty'};const _0xe9b8a2=JSON['parse'](_0x1c75df);return{'status':'ok','data':_0xe9b8a2};}catch(_0x89df2b){return{'status':_0x2815db(0x191),'message':_0x89df2b instanceof Error?_0x89df2b[_0x2815db(0x1c3)]:String(_0x89df2b)};}}export function loadRawConfigLayers(_0x4eaf41){const _0xca549a=a41_0xbb3efe;let _0x30161c={},_0x349c1b={},_0x4626ab,_0x512739;try{_0x4626ab=resolveConfigPath(homedir());if(_0x4626ab){const _0x3a8584=readFileSync(_0x4626ab,{'encoding':_0xca549a(0x197)});if(_0x3a8584)_0x30161c=JSON[_0xca549a(0x1ae)](_0x3a8584);}}catch{}try{const _0x37f4db=_0x4eaf41||process[_0xca549a(0x18c)]();_0x512739=resolveConfigPath(_0x37f4db);if(_0x512739){const _0x136a19=readFileSync(_0x512739,{'encoding':_0xca549a(0x197)});if(_0x136a19)_0x349c1b=JSON['parse'](_0x136a19);}}catch{}return{'globalPath':_0x4626ab,'projectPath':_0x512739,'globalConfig':_0x30161c,'projectConfig':_0x349c1b};}function mergeRawConfigLayers(_0x54d847){const _0x52c297=a41_0xbb3efe,{globalConfig:_0x368dcb,projectConfig:_0x2da69e}=_0x54d847;if(_0x2da69e[_0x52c297(0x1b0)]===![]){const _0x4ba503={..._0x2da69e};return delete _0x4ba503[_0x52c297(0x1b0)],_0x4ba503;}const _0x56b710={..._0x368dcb,..._0x2da69e};if('defaultApp'in _0x2da69e)_0x56b710[_0x52c297(0x18a)]=_0x2da69e[_0x52c297(0x18a)];else _0x368dcb['defaultApp']&&(_0x56b710[_0x52c297(0x18a)]=_0x368dcb[_0x52c297(0x18a)]);return _0x56b710;}export function isInProject(){return!!getProjectConfigPath();}export function readRawConfig(_0x513a1a){return mergeRawConfigLayers(loadRawConfigLayers(_0x513a1a));}export function readRawConfigWithLayers(_0x19c9a5){const _0x208450=loadRawConfigLayers(_0x19c9a5);return{'config':mergeRawConfigLayers(_0x208450),'layers':_0x208450};}export function resolveDefaultAppSource(_0x4fed28){const _0x51f70b=a41_0xbb3efe;if(_0x51f70b(0x18a)in _0x4fed28[_0x51f70b(0x182)])return _0x51f70b(0x1c4);if(_0x4fed28['projectConfig'][_0x51f70b(0x1b0)]===![])return null;if(_0x4fed28[_0x51f70b(0x1a2)][_0x51f70b(0x18a)])return _0x51f70b(0x1c1);return null;}function buildConfig(_0x3a0cff,_0x4b3564){const _0x4f5af2=a41_0xbb3efe,_0x5142db=_0x3a0cff[_0x4f5af2(0x18a)]||undefined,_0x47992c=_0x4b3564['app']||env(_0x4f5af2(0x187))||undefined,_0x13e76c=_0x47992c||_0x5142db||undefined,_0x7de6d8=env(_0x4f5af2(0x1c2))||_0x3a0cff[_0x4f5af2(0x1bb)]||undefined,_0x5e98be=_0x4b3564[_0x4f5af2(0x1c8)]||env(_0x4f5af2(0x19a))||_0x3a0cff[_0x4f5af2(0x1c8)]||DEFAULT_CONFIG_VALUES['env'],_0x225164=normalizeEnv(String(_0x5e98be)),_0x21ac4d=isDaily(_0x225164)?'daily':isDev(_0x225164)?_0x4f5af2(0x1be):_0x4f5af2(0x19d),_0x18f349=resolveLocalAppAliasCode(_0x3a0cff,_0x13e76c),_0x4014e5=resolveCachedAppCode(_0x13e76c,_0x21ac4d,_0x7de6d8),_0x5d19ff=typeof _0x4b3564['appcode']===_0x4f5af2(0x18f)?_0x4b3564[_0x4f5af2(0x1b7)]:undefined,_0x174653=env(_0x4f5af2(0x1bf)),_0x585b65=_0x47992c?undefined:_0x3a0cff[_0x4f5af2(0x1b7)]||_0x3a0cff[_0x4f5af2(0x194)]||undefined,_0x9ab470=_0x5d19ff||_0x174653||_0x18f349||_0x4014e5||_0x585b65||undefined,_0x38f9ee=_0x5d19ff?'explicit':_0x174653?_0x4f5af2(0x1c8):_0x18f349?_0x4f5af2(0x1b8):_0x4014e5?_0x4f5af2(0x1b1):_0x585b65?_0x4f5af2(0x19e):undefined,_0x140126=_0x3a0cff[_0x4f5af2(0x1ab)]||DEFAULT_CONFIG_VALUES[_0x4f5af2(0x1ab)],_0x791c61=undefined,_0x46f0d3=_0x4b3564['format']||env('FORMAT')||_0x3a0cff[_0x4f5af2(0x190)],_0x2d021c=normalizeLegacyOutputFormat(_0x46f0d3),_0xd0a89f=env('PAGE_SIZE')||_0x3a0cff[_0x4f5af2(0x1a7)],_0x7b3c39=_0xd0a89f?Number(_0xd0a89f)||undefined:undefined,_0x73b5a6=_0x3a0cff[_0x4f5af2(0x1ac)]||_0x3a0cff[_0x4f5af2(0x1ba)],_0x4f4021=_0x73b5a6==='read'||_0x73b5a6===_0x4f5af2(0x1a6)||_0x73b5a6===_0x4f5af2(0x1af)?_0x73b5a6:DEFAULT_CONFIG_VALUES[_0x4f5af2(0x1ac)],_0x43636e=env(_0x4f5af2(0x1b2)),_0x301b7e=_0x43636e==='1'||_0x43636e==='true';return{'appCode':typeof _0x9ab470==='string'&&_0x9ab470[_0x4f5af2(0x18d)]()?_0x9ab470[_0x4f5af2(0x18d)]():undefined,'appCodeSource':_0x38f9ee,'env':_0x21ac4d,'locale':_0x140126,'cookie':_0x791c61,'accessKey':_0x7de6d8,'format':_0x2d021c,'pageSize':_0x7b3c39,'riskLevel':_0x4f4021,'verbose':_0x301b7e,'defaultApp':_0x5142db,'currentApp':typeof _0x13e76c===_0x4f5af2(0x18f)?_0x13e76c:undefined,'raw':_0x3a0cff};}function env(_0x2374eb){return productEnv(_0x2374eb);}async function buildAuth(_0x5ef404){const _0x4c1fba='',_0x3535c4=!!_0x5ef404['accessKey'];return{'cookie':_0x4c1fba,'isLoggedIn':_0x3535c4,async 'getOrLogin'(){const _0x537f15=a41_0x259b;if(_0x3535c4)return _0x4c1fba;throw CliErrors[_0x537f15(0x1b5)]();}};}
1
+ const a42_0x43a54e=a42_0x36d6;(function(_0x1f70d5,_0x54176e){const _0x29bb98=a42_0x36d6,_0x46436b=_0x1f70d5();while(!![]){try{const _0x2af1c3=-parseInt(_0x29bb98(0x146))/0x1+parseInt(_0x29bb98(0x17a))/0x2+-parseInt(_0x29bb98(0x163))/0x3+parseInt(_0x29bb98(0x14e))/0x4+-parseInt(_0x29bb98(0x178))/0x5+-parseInt(_0x29bb98(0x171))/0x6+-parseInt(_0x29bb98(0x180))/0x7*(-parseInt(_0x29bb98(0x156))/0x8);if(_0x2af1c3===_0x54176e)break;else _0x46436b['push'](_0x46436b['shift']());}catch(_0x2c214c){_0x46436b['push'](_0x46436b['shift']());}}}(a42_0x19c2,0x62963));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';import{normalizeLegacyOutputFormat}from'./framework/types.js';import{resolveCachedAppCode}from'./commands/app/cache.js';function a42_0x19c2(){const _0xdbb5d1=['setRawMode','2027650pdVzWW','stringify','1610312IOPtvH','error','read','VERBOSE','raw','object','14mbBIIe','configFileNames','riskLevel','setLogPath','.tmp','inherit','userDomain','defaultApp','projectConfig','authRequired','project','env','slice','ACCESS_KEY','461323nUFcNi','missing','locale','string','EXDEV','EPERM','join','EACCES','1357424YkHaUb','isTTY','code','argv','find','apps','global','true','3735800CbHcLK','utf8','online','cache','APPCODE','pageSize','parse','appcode','maxRisk','newConfigFileName','values','cwd','runtimeDomain','560775GIihmc','app','stdin','FORMAT','daily','nonInteractive','accessKey','explicit','high-risk-write','PAGE_SIZE','isRaw','production','stdout','trim','3725238OGMNHe','./constant/domain.js','globalConfig','format','development','top-level'];a42_0x19c2=function(){return _0xdbb5d1;};return a42_0x19c2();}export{AUTH_MODE,isAuthMode}from'./constant/auth-mode.js';const CONFIG_NAMES=PRODUCT_CONFIG[a42_0x43a54e(0x181)];export const NEW_CONFIG_NAME=PRODUCT_CONFIG[a42_0x43a54e(0x15f)];function resolveConfigPath(_0x13b9bc){for(const _0x20c879 of CONFIG_NAMES){const _0x1a9171=resolve(_0x13b9bc,_0x20c879);if(existsSync(_0x1a9171))return _0x1a9171;}return undefined;}export function resolveWriteConfigPath(_0xc38d86){const _0x43c16e=a42_0x43a54e,_0x562375=_0xc38d86==='project'?process[_0x43c16e(0x161)]():homedir(),_0x2ec14e=resolveConfigPath(_0x562375);return _0x2ec14e??resolve(_0x562375,NEW_CONFIG_NAME);}export function readConfigFile(_0x356986){const _0x21d60a=a42_0x43a54e;try{if(existsSync(_0x356986)){const _0x24046b=readFileSync(_0x356986,{'encoding':_0x21d60a(0x157)});if(_0x24046b){const _0x1aa137=JSON['parse'](_0x24046b);return migrateOnlineEnv(_0x356986,_0x1aa137),_0x1aa137;}}}catch{}return{};}function migrateOnlineEnv(_0x31fe5e,_0x206fc2){const _0x37a018=a42_0x43a54e;let _0x23812e=![];_0x206fc2['env']===_0x37a018(0x158)&&(_0x206fc2[_0x37a018(0x18b)]=_0x37a018(0x16e),_0x23812e=!![]);if(_0x206fc2['apps']&&typeof _0x206fc2[_0x37a018(0x153)]===_0x37a018(0x17f))for(const _0x276895 of Object[_0x37a018(0x160)](_0x206fc2['apps'])){_0x276895&&_0x276895[_0x37a018(0x18b)]===_0x37a018(0x158)&&(_0x276895[_0x37a018(0x18b)]=_0x37a018(0x16e),_0x23812e=!![]);}if(_0x23812e)try{writeConfigFile(_0x31fe5e,_0x206fc2);}catch{}}export function writeConfigFile(_0x5b5868,_0x36b7f5){const _0x2cad1c=a42_0x43a54e,_0x1776a2=dirname(_0x5b5868);!existsSync(_0x1776a2)&&mkdirSync(_0x1776a2,{'recursive':!![]});const _0x1abd32=_0x5b5868+_0x2cad1c(0x184);try{writeFileSync(_0x1abd32,JSON[_0x2cad1c(0x179)](_0x36b7f5,null,0x2)+'\x0a',{'encoding':_0x2cad1c(0x157),'mode':0x180});try{renameSync(_0x1abd32,_0x5b5868);}catch(_0x498c1d){if(_0x498c1d[_0x2cad1c(0x150)]===_0x2cad1c(0x14b)||_0x498c1d[_0x2cad1c(0x150)]===_0x2cad1c(0x14a)||_0x498c1d[_0x2cad1c(0x150)]===_0x2cad1c(0x14d)){writeFileSync(_0x5b5868,JSON[_0x2cad1c(0x179)](_0x36b7f5,null,0x2)+'\x0a',{'encoding':_0x2cad1c(0x157)});try{unlinkSync(_0x1abd32);}catch{}}else throw _0x498c1d;}}catch(_0x619c6){try{unlinkSync(_0x1abd32);}catch{}throw _0x619c6;}}export function isNonInteractiveMode(_0x139376){const _0x2b78fb=a42_0x43a54e;return!!(_0x139376[_0x2b78fb(0x168)]||_0x139376['ci']||productEnvNames('CI')['some'](_0x468a05=>process.env[_0x468a05]==='true')||process.env.CI===_0x2b78fb(0x155)||!process[_0x2b78fb(0x16f)]['isTTY']||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x380bd8=a42_0x43a54e;if(!process[_0x380bd8(0x165)][_0x380bd8(0x14f)])return![];try{const _0x5b2854=process[_0x380bd8(0x165)][_0x380bd8(0x16d)];return process[_0x380bd8(0x165)][_0x380bd8(0x177)](!![]),process[_0x380bd8(0x165)]['setRawMode'](_0x5b2854??![]),!![];}catch{return![];}}export async function createContext(_0x412b0e){const _0x1496b7=a42_0x43a54e,_0x1d660c=readRawConfig(),_0x29324f=buildConfig(_0x1d660c,_0x412b0e);await initGlobalEnvironment(_0x29324f);const {getUserDomain:_0x8699e7,getApiDomain:_0xd4aef7}=await import(_0x1496b7(0x172)),_0x45a860={'apiDomain':_0xd4aef7(),'userDomain':_0x8699e7()},_0x929a24=await buildAuth(_0x29324f);logger[_0x1496b7(0x183)](process[_0x1496b7(0x161)]());const _0x4c90c1=(CLI_BIN_NAME+'\x20'+process[_0x1496b7(0x151)][_0x1496b7(0x18c)](0x2)[_0x1496b7(0x14c)]('\x20'))[_0x1496b7(0x170)]();logger['setRawCommand'](_0x4c90c1);const _0x487228=isNonInteractiveMode(_0x412b0e);return{'config':_0x29324f,'auth':_0x929a24,'logger':logger,'env':_0x45a860,'nonInteractive':_0x487228};}export function buildConfigFromFlags(_0x4224fd){return buildConfig(readRawConfig(),_0x4224fd);}export function getLocalAppAliases(_0x22a532){const _0x4ca3c8=a42_0x43a54e;return _0x22a532[_0x4ca3c8(0x153)]&&typeof _0x22a532[_0x4ca3c8(0x153)]===_0x4ca3c8(0x17f)?_0x22a532[_0x4ca3c8(0x153)]:{};}function a42_0x36d6(_0x5c44f0,_0x25f0a0){_0x5c44f0=_0x5c44f0-0x145;const _0x19c249=a42_0x19c2();let _0x36d6b0=_0x19c249[_0x5c44f0];return _0x36d6b0;}export function resolveLocalAppAliasCode(_0x2e3b47,_0x458df8){const _0x12ff51=a42_0x43a54e;if(!_0x458df8)return undefined;const _0x5687df=getLocalAppAliases(_0x2e3b47)[_0x458df8],_0xe76a19=_0x5687df?.[_0x12ff51(0x15d)];return typeof _0xe76a19===_0x12ff51(0x149)&&_0xe76a19['trim']()?_0xe76a19[_0x12ff51(0x170)]():undefined;}export function readAppCodeFromConfig(){const _0x44f0b1=a42_0x43a54e,_0x364b47=readRawConfig(),_0x3ca518=_0x364b47[_0x44f0b1(0x15d)]??_0x364b47['app'];if(typeof _0x3ca518===_0x44f0b1(0x149)&&_0x3ca518[_0x44f0b1(0x170)]())return _0x3ca518[_0x44f0b1(0x170)]();const _0x58fb44=resolveLocalAppAliasCode(_0x364b47,typeof _0x364b47[_0x44f0b1(0x187)]===_0x44f0b1(0x149)?_0x364b47[_0x44f0b1(0x187)]:undefined);if(_0x58fb44)return _0x58fb44;const _0x3b449e=normalizeEnv(String(_0x364b47['env']||_0x44f0b1(0x16e))),_0x136fb4=isDaily(_0x3b449e)?'daily':isDev(_0x3b449e)?'development':_0x44f0b1(0x16e),_0x3e9e42=resolveCachedAppCode(typeof _0x364b47[_0x44f0b1(0x187)]===_0x44f0b1(0x149)?_0x364b47[_0x44f0b1(0x187)]:undefined,_0x136fb4,typeof _0x364b47[_0x44f0b1(0x169)]===_0x44f0b1(0x149)?_0x364b47['accessKey']:undefined);if(_0x3e9e42)return _0x3e9e42;const _0x2d5e6f=Object[_0x44f0b1(0x160)](getLocalAppAliases(_0x364b47))[_0x44f0b1(0x152)](_0x4bed19=>_0x4bed19?.[_0x44f0b1(0x15d)]);return typeof _0x2d5e6f?.['appcode']===_0x44f0b1(0x149)&&_0x2d5e6f[_0x44f0b1(0x15d)]['trim']()?_0x2d5e6f['appcode'][_0x44f0b1(0x170)]():undefined;}export function readScopedConfig(_0x1c2930){const _0x127eb5=a42_0x43a54e,_0x38271f=_0x1c2930[_0x127eb5(0x154)]?_0x127eb5(0x154):_0x127eb5(0x18a);return readConfigFile(resolveWriteConfigPath(_0x38271f));}export function writeScopedConfig(_0x1af605,_0x2a0d5a){const _0x90c864=a42_0x43a54e,_0x42fc10=_0x2a0d5a['global']?_0x90c864(0x154):_0x90c864(0x18a);writeConfigFile(resolveWriteConfigPath(_0x42fc10),_0x1af605);}export async function initGlobalEnvironment(_0x4f985f){const _0xce869a=a42_0x43a54e,{initEnv:_0x3372e5}=await import('./constant/env.js');_0x3372e5(_0x4f985f[_0xce869a(0x18b)]);const {initDomains:_0xfe8aa1}=await import(_0xce869a(0x172));_0xfe8aa1({'apiDomain':_0x4f985f[_0xce869a(0x17e)]['apiDomain']||_0x4f985f['raw']['host']||undefined,'userDomain':_0x4f985f['raw'][_0xce869a(0x186)]||undefined,'runtimeDomain':_0x4f985f[_0xce869a(0x17e)][_0xce869a(0x162)]||undefined});}export function getProjectConfigPath(){const _0x34c4e7=a42_0x43a54e;return resolveConfigPath(process[_0x34c4e7(0x161)]());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function inspectCliConfigJsonFile(_0x1c2270){const _0x50b3a5=a42_0x43a54e;if(!existsSync(_0x1c2270))return{'status':_0x50b3a5(0x147)};try{const _0x4db931=readFileSync(_0x1c2270,{'encoding':_0x50b3a5(0x157)});if(!_0x4db931?.['trim']())return{'status':'empty'};const _0x5ec9b5=JSON[_0x50b3a5(0x15c)](_0x4db931);return{'status':'ok','data':_0x5ec9b5};}catch(_0x55f3cf){return{'status':_0x50b3a5(0x17b),'message':_0x55f3cf instanceof Error?_0x55f3cf['message']:String(_0x55f3cf)};}}export function loadRawConfigLayers(_0x194429){const _0x11b073=a42_0x43a54e;let _0x14dcc4={},_0x1f06cd={},_0x57eb95,_0x11675c;try{_0x57eb95=resolveConfigPath(homedir());if(_0x57eb95){const _0x2816e2=readFileSync(_0x57eb95,{'encoding':_0x11b073(0x157)});if(_0x2816e2)_0x14dcc4=JSON[_0x11b073(0x15c)](_0x2816e2);}}catch{}try{const _0x5e8cac=_0x194429||process[_0x11b073(0x161)]();_0x11675c=resolveConfigPath(_0x5e8cac);if(_0x11675c){const _0x6d45d3=readFileSync(_0x11675c,{'encoding':'utf8'});if(_0x6d45d3)_0x1f06cd=JSON[_0x11b073(0x15c)](_0x6d45d3);}}catch{}return{'globalPath':_0x57eb95,'projectPath':_0x11675c,'globalConfig':_0x14dcc4,'projectConfig':_0x1f06cd};}function mergeRawConfigLayers(_0x11ed21){const _0x26437b=a42_0x43a54e,{globalConfig:_0x5802a7,projectConfig:_0x174dc2}=_0x11ed21;if(_0x174dc2['inherit']===![]){const _0x2fb668={..._0x174dc2};return delete _0x2fb668[_0x26437b(0x185)],_0x2fb668;}const _0x2ae215={..._0x5802a7,..._0x174dc2};if(_0x26437b(0x187)in _0x174dc2)_0x2ae215[_0x26437b(0x187)]=_0x174dc2['defaultApp'];else _0x5802a7[_0x26437b(0x187)]&&(_0x2ae215[_0x26437b(0x187)]=_0x5802a7[_0x26437b(0x187)]);return _0x2ae215;}export function isInProject(){return!!getProjectConfigPath();}export function readRawConfig(_0x585b4a){return mergeRawConfigLayers(loadRawConfigLayers(_0x585b4a));}export function readRawConfigWithLayers(_0x31443a){const _0x1ebb4b=loadRawConfigLayers(_0x31443a);return{'config':mergeRawConfigLayers(_0x1ebb4b),'layers':_0x1ebb4b};}export function resolveDefaultAppSource(_0x23df88){const _0xeb681b=a42_0x43a54e;if(_0xeb681b(0x187)in _0x23df88[_0xeb681b(0x188)])return _0xeb681b(0x18a);if(_0x23df88[_0xeb681b(0x188)][_0xeb681b(0x185)]===![])return null;if(_0x23df88[_0xeb681b(0x173)][_0xeb681b(0x187)])return _0xeb681b(0x154);return null;}function buildConfig(_0x26ae87,_0x5ee81e){const _0x1250c5=a42_0x43a54e,_0x21545b=_0x26ae87[_0x1250c5(0x187)]||undefined,_0x5655fd=_0x5ee81e['app']||env('APP')||undefined,_0x34a87e=_0x5655fd||_0x21545b||undefined,_0x55abcd=env(_0x1250c5(0x145))||_0x26ae87[_0x1250c5(0x169)]||undefined,_0x5e0c34=_0x5ee81e['env']||env('ENV')||_0x26ae87[_0x1250c5(0x18b)]||DEFAULT_CONFIG_VALUES[_0x1250c5(0x18b)],_0xd29e83=normalizeEnv(String(_0x5e0c34)),_0x528824=isDaily(_0xd29e83)?_0x1250c5(0x167):isDev(_0xd29e83)?_0x1250c5(0x175):_0x1250c5(0x16e),_0x3a7d1b=resolveLocalAppAliasCode(_0x26ae87,_0x34a87e),_0x494d55=resolveCachedAppCode(_0x34a87e,_0x528824,_0x55abcd),_0x46dd22=typeof _0x5ee81e[_0x1250c5(0x15d)]==='string'?_0x5ee81e['appcode']:undefined,_0x56a886=env(_0x1250c5(0x15a)),_0x4eb45e=_0x5655fd?undefined:_0x26ae87[_0x1250c5(0x15d)]||_0x26ae87[_0x1250c5(0x164)]||undefined,_0x151fdc=_0x46dd22||_0x56a886||_0x3a7d1b||_0x494d55||_0x4eb45e||undefined,_0x1fa5cd=_0x46dd22?_0x1250c5(0x16a):_0x56a886?_0x1250c5(0x18b):_0x3a7d1b?'local-alias':_0x494d55?_0x1250c5(0x159):_0x4eb45e?_0x1250c5(0x176):undefined,_0x2f4153=_0x26ae87[_0x1250c5(0x148)]||DEFAULT_CONFIG_VALUES[_0x1250c5(0x148)],_0x5b9478=undefined,_0x3a53a7=_0x5ee81e[_0x1250c5(0x174)]||env(_0x1250c5(0x166))||_0x26ae87['format'],_0x698120=normalizeLegacyOutputFormat(_0x3a53a7),_0x4b11df=env(_0x1250c5(0x16c))||_0x26ae87[_0x1250c5(0x15b)],_0x25aaee=_0x4b11df?Number(_0x4b11df)||undefined:undefined,_0x29c656=_0x26ae87[_0x1250c5(0x182)]||_0x26ae87[_0x1250c5(0x15e)],_0x3fd734=_0x29c656===_0x1250c5(0x17c)||_0x29c656==='write'||_0x29c656===_0x1250c5(0x16b)?_0x29c656:DEFAULT_CONFIG_VALUES[_0x1250c5(0x182)],_0x3d477a=env(_0x1250c5(0x17d)),_0x1b6502=_0x3d477a==='1'||_0x3d477a===_0x1250c5(0x155);return{'appCode':typeof _0x151fdc===_0x1250c5(0x149)&&_0x151fdc[_0x1250c5(0x170)]()?_0x151fdc[_0x1250c5(0x170)]():undefined,'appCodeSource':_0x1fa5cd,'env':_0x528824,'locale':_0x2f4153,'cookie':_0x5b9478,'accessKey':_0x55abcd,'format':_0x698120,'pageSize':_0x25aaee,'riskLevel':_0x3fd734,'verbose':_0x1b6502,'defaultApp':_0x21545b,'currentApp':typeof _0x34a87e===_0x1250c5(0x149)?_0x34a87e:undefined,'raw':_0x26ae87};}function env(_0x39856c){return productEnv(_0x39856c);}async function buildAuth(_0x144b3f){const _0x3fc052=a42_0x43a54e,_0x5d427e='',_0x2f23a8=!!_0x144b3f[_0x3fc052(0x169)];return{'cookie':_0x5d427e,'isLoggedIn':_0x2f23a8,async 'getOrLogin'(){const _0x2cb82e=_0x3fc052;if(_0x2f23a8)return _0x5d427e;throw CliErrors[_0x2cb82e(0x189)]();}};}
@@ -1 +1 @@
1
- (function(_0xa4b9ab,_0x5cc1f5){const _0x5a8a82=a42_0x288f,_0x49fb67=_0xa4b9ab();while(!![]){try{const _0x20023d=parseInt(_0x5a8a82(0xcb))/0x1+-parseInt(_0x5a8a82(0xf8))/0x2*(parseInt(_0x5a8a82(0xce))/0x3)+-parseInt(_0x5a8a82(0xf7))/0x4*(parseInt(_0x5a8a82(0xd7))/0x5)+-parseInt(_0x5a8a82(0xf3))/0x6+-parseInt(_0x5a8a82(0xc9))/0x7*(parseInt(_0x5a8a82(0xec))/0x8)+parseInt(_0x5a8a82(0xcd))/0x9*(parseInt(_0x5a8a82(0xe9))/0xa)+-parseInt(_0x5a8a82(0xf0))/0xb*(-parseInt(_0x5a8a82(0xf4))/0xc);if(_0x20023d===_0x5cc1f5)break;else _0x49fb67['push'](_0x49fb67['shift']());}catch(_0x495b8b){_0x49fb67['push'](_0x49fb67['shift']());}}}(a42_0x4d7b,0x525d9));function a42_0x4d7b(){const _0x5c8c8d=['/client/dataset/list','appName','11OEERIs','Invalid\x20app\x20list\x20response:\x20expected\x20object\x20or\x20array.','sqlCode','383706vSQVlO','14790408QAlFGp','/client/app/my-apps','Invalid\x20app\x20list\x20response:\x20missing\x20data.tableData.','4XIusAU','2vbtdYO','validation','code','Invalid\x20login\x20user\x20info\x20response:\x20expected\x20object.','/client/user/loginUserInfo','SQL\x20query\x20not\x20found:\x20','3940853PypFPE','newConfigFileName','395031XivAfK','success','225LBCRMT','134454AKTEeR','object','abort','data','AbortError','Check\x20your\x20credentials\x20and\x20try\x20again.','tableData','isArray','appCode','3323615eqZgQJ','name','/client/sql/query','test','string','BFF\x20script\x20not\x20found:\x20id=','/client/bff/query/','message','status','Configure\x20accessKey\x20in\x20','/client/dataset/query?','errorMsg','filter','API\x20returned\x20non-JSON\x20response\x20(HTTP\x20','Request\x20timeout:\x20','json','signal','apiError','18510yZRnNd','API\x20error:\x20','POST','8TcTChK','errorCode'];a42_0x4d7b=function(){return _0x5c8c8d;};return a42_0x4d7b();}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(_0x54d0ae){_activeAK=_0x54d0ae||undefined;}export function clearActiveAK(){_activeAK=undefined;}async function apiRequest(_0x1b3a84,_0x13c67a={}){const _0x546a5f=a42_0x288f,{method:method='GET',body:_0x3f5de6,headers:headers={},timeout:timeout=0x7530}=_0x13c67a,_0x46cb48=_activeAK,_0x441971=getRuntimeDomain();if(!_0x46cb48)throw CliErrors['authRequired'](_0x546a5f(0xe0)+PRODUCT_CONFIG[_0x546a5f(0xca)]+'.');const _0x5b1b86=''+_0x441971+_0x1b3a84,_0x536d5e={'X-User-AK':_0x46cb48},_0x3a9798=new AbortController(),_0xb58c36=setTimeout(()=>_0x3a9798[_0x546a5f(0xd0)](),timeout);try{const _0x108f5a=await fetch(_0x5b1b86,{'method':method,'headers':{'Content-Type':'application/json','X-Invoke-Source':PRODUCT_CONFIG['invokeSource'],..._0x536d5e,...headers},'body':_0x3f5de6?JSON['stringify'](_0x3f5de6):undefined,'signal':_0x3a9798[_0x546a5f(0xe7)]});let _0x5e8838;try{_0x5e8838=await _0x108f5a[_0x546a5f(0xe6)]();}catch{throw CliErrors['apiError'](_0x546a5f(0xe4)+_0x108f5a[_0x546a5f(0xdf)]+')',_0x108f5a[_0x546a5f(0xdf)]>=0x190?_0x546a5f(0xd3):undefined);}if(!_0x108f5a['ok']||_0x5e8838[_0x546a5f(0xcc)]===![])throw CliErrors[_0x546a5f(0xe8)](_0x5e8838[_0x546a5f(0xe2)]||_0x5e8838[_0x546a5f(0xde)]||_0x546a5f(0xea)+_0x108f5a[_0x546a5f(0xdf)],_0x5e8838[_0x546a5f(0xed)]?'API\x20error\x20code:\x20'+_0x5e8838[_0x546a5f(0xed)]:undefined);return _0x5e8838;}catch(_0x35c1fa){if(_0x35c1fa instanceof Error&&_0x35c1fa[_0x546a5f(0xd8)]===_0x546a5f(0xd2))throw CliErrors['apiError'](_0x546a5f(0xe5)+_0x5b1b86);throw _0x35c1fa;}finally{clearTimeout(_0xb58c36);}}export async function getBffScriptInfo(_0x159c77){const _0x9a8ef3=a42_0x288f,_0x2f273d=await apiRequest(_0x9a8ef3(0xdd)+_0x159c77);if(!_0x2f273d[_0x9a8ef3(0xd1)])throw CliErrors[_0x9a8ef3(0xf9)](_0x9a8ef3(0xdc)+_0x159c77);return _0x2f273d[_0x9a8ef3(0xd1)];}function a42_0x288f(_0x4a33e9,_0x319a25){_0x4a33e9=_0x4a33e9-0xc7;const _0x4d7bf3=a42_0x4d7b();let _0x288fef=_0x4d7bf3[_0x4a33e9];return _0x288fef;}export async function getSqlQueryInfo(_0x25518a,_0x2a1195){const _0x53696d=a42_0x288f,_0x4d9e68=await apiRequest(_0x53696d(0xd9),{'method':_0x53696d(0xeb),'body':{'appCode':_0x25518a,'currentPage':0x1,'pageSize':0x1,'sqlCode':_0x2a1195}}),_0x3fc1c5=_0x4d9e68['data'],_0x230c35=_0x3fc1c5&&typeof _0x3fc1c5===_0x53696d(0xcf)&&_0x53696d(0xd4)in _0x3fc1c5?_0x3fc1c5[_0x53696d(0xd4)]?.[0x0]:_0x3fc1c5&&typeof _0x3fc1c5==='object'&&_0x53696d(0xf2)in _0x3fc1c5?_0x3fc1c5:undefined;if(!_0x230c35)throw CliErrors[_0x53696d(0xf9)](_0x53696d(0xc8)+_0x2a1195);return _0x230c35;}function isRemoteAppItem(_0x91cb8c){const _0x3c2187=a42_0x288f;return!!_0x91cb8c&&typeof _0x91cb8c==='object'&&typeof _0x91cb8c[_0x3c2187(0xd6)]===_0x3c2187(0xdb)&&typeof _0x91cb8c[_0x3c2187(0xef)]===_0x3c2187(0xdb);}function extractRemoteAppItems(_0x1ca205){const _0x4730c5=a42_0x288f;if(Array['isArray'](_0x1ca205))return _0x1ca205[_0x4730c5(0xe3)](isRemoteAppItem);if(!_0x1ca205||typeof _0x1ca205!==_0x4730c5(0xcf))throw CliErrors[_0x4730c5(0xe8)](_0x4730c5(0xf1));const _0x2dcba4=_0x1ca205;if(Array[_0x4730c5(0xd5)](_0x2dcba4[_0x4730c5(0xd4)]))return _0x2dcba4[_0x4730c5(0xd4)][_0x4730c5(0xe3)](isRemoteAppItem);if(_0x2dcba4[_0x4730c5(0xd1)]&&typeof _0x2dcba4[_0x4730c5(0xd1)]===_0x4730c5(0xcf)){const _0x2e12e6=_0x2dcba4[_0x4730c5(0xd1)];if(Array[_0x4730c5(0xd5)](_0x2e12e6[_0x4730c5(0xd4)]))return _0x2e12e6[_0x4730c5(0xd4)]['filter'](isRemoteAppItem);}throw CliErrors[_0x4730c5(0xe8)](_0x4730c5(0xf6));}export async function getMyApps(){const _0x359389=a42_0x288f,_0x3fa8f6=await apiRequest(_0x359389(0xf5));return extractRemoteAppItems(_0x3fa8f6[_0x359389(0xd1)]);}export async function getLoginUserInfo(){const _0x117d6d=a42_0x288f,_0x13a64d=await apiRequest(_0x117d6d(0xc7));if(!_0x13a64d['data']||typeof _0x13a64d[_0x117d6d(0xd1)]!==_0x117d6d(0xcf)||Array[_0x117d6d(0xd5)](_0x13a64d[_0x117d6d(0xd1)]))throw CliErrors[_0x117d6d(0xe8)](_0x117d6d(0xfb));return _0x13a64d[_0x117d6d(0xd1)];}export async function listDatasets(_0x2e9357,_0xbe720){const _0x13b742=a42_0x288f,_0x37312c=await apiRequest(_0x13b742(0xee),{'method':_0x13b742(0xeb),'body':{'appCode':_0x2e9357,..._0xbe720?.[_0x13b742(0xfa)]&&{'code':_0xbe720[_0x13b742(0xfa)]},..._0xbe720?.[_0x13b742(0xd8)]&&{'name':_0xbe720[_0x13b742(0xd8)]}}});return extractList(_0x37312c[_0x13b742(0xd1)]);}export async function getDatasetDetail(_0xab7578){const _0x7e3a08=a42_0x288f,_0x455d4c=/^\d+$/[_0x7e3a08(0xda)](_0xab7578)?'id':_0x7e3a08(0xfa),_0x5ece25=await apiRequest(_0x7e3a08(0xe1)+_0x455d4c+'='+_0xab7578);return _0x5ece25[_0x7e3a08(0xd1)];}
1
+ (function(_0x582883,_0x56ba62){const _0x1e8042=a43_0x3ff7,_0x428e6e=_0x582883();while(!![]){try{const _0x4e02ea=-parseInt(_0x1e8042(0xfd))/0x1+-parseInt(_0x1e8042(0x107))/0x2*(-parseInt(_0x1e8042(0x10a))/0x3)+parseInt(_0x1e8042(0x12b))/0x4+parseInt(_0x1e8042(0x104))/0x5*(parseInt(_0x1e8042(0x113))/0x6)+-parseInt(_0x1e8042(0x123))/0x7*(-parseInt(_0x1e8042(0x125))/0x8)+parseInt(_0x1e8042(0x12a))/0x9+-parseInt(_0x1e8042(0x115))/0xa;if(_0x4e02ea===_0x56ba62)break;else _0x428e6e['push'](_0x428e6e['shift']());}catch(_0x21c1f0){_0x428e6e['push'](_0x428e6e['shift']());}}}(a43_0x54c4,0xd14dd));import{getRuntimeDomain}from'../constant/domain.js';function a43_0x3ff7(_0x29f028,_0x12f969){_0x29f028=_0x29f028-0xf8;const _0x54c47b=a43_0x54c4();let _0x3ff78a=_0x54c47b[_0x29f028];return _0x3ff78a;}import{PRODUCT_CONFIG}from'../constant/product.js';function a43_0x54c4(){const _0x3c53b5=['stringify','sqlCode','510laojag','object','37653670QVgxMb','topK','Request\x20timeout:\x20','/client/app/my-apps','POST','SQL\x20query\x20not\x20found:\x20','/client/bff/query/','apiError','BFF\x20script\x20not\x20found:\x20id=','appCode','/client/skill/personal/list?appCode=','string','data','tableData','168bFshcf','Configure\x20accessKey\x20in\x20','204432iZOxLI','filter','/client/skill/personal/create','/client/knowledge-base/personal/','status','12582144VtWjWH','884452FDEDbl','GET','/update','authRequired','test','?appCode=','name','Check\x20your\x20credentials\x20and\x20try\x20again.','application/json','success','isArray','50319coRZhj','Knowledge-base\x20entry\x20not\x20found:\x20id=','/client/knowledge-base/search','message','code','abort','/client/skill/personal/','47675MhyFif','API\x20error:\x20','newConfigFileName','1086730XaqqOh','appName','invokeSource','9HVrWQt','validation','Invalid\x20app\x20list\x20response:\x20missing\x20data.tableData.','/client/knowledge-base/personal/list?appCode=','signal','Invalid\x20login\x20user\x20info\x20response:\x20expected\x20object.','/client/sql/query'];a43_0x54c4=function(){return _0x3c53b5;};return a43_0x54c4();}import{CliErrors}from'../errors.js';import{extractList}from'../framework/response.js';let _activeAK;export function setActiveAK(_0x54c606){_activeAK=_0x54c606||undefined;}export function clearActiveAK(){_activeAK=undefined;}async function apiRequest(_0x136410,_0x4cd7fd={}){const _0x5e0a16=a43_0x3ff7,{method:method=_0x5e0a16(0x12c),body:_0x335f0d,headers:headers={},timeout:timeout=0x7530}=_0x4cd7fd,_0x317fd1=_activeAK,_0x500676=getRuntimeDomain();if(!_0x317fd1)throw CliErrors[_0x5e0a16(0x12e)](_0x5e0a16(0x124)+PRODUCT_CONFIG[_0x5e0a16(0x106)]+'.');const _0x311cd4=''+_0x500676+_0x136410,_0x3857ce={'X-User-AK':_0x317fd1},_0x5d1b57=new AbortController(),_0x4f649e=setTimeout(()=>_0x5d1b57[_0x5e0a16(0x102)](),timeout);try{const _0x139a74=await fetch(_0x311cd4,{'method':method,'headers':{'Content-Type':_0x5e0a16(0xfa),'X-Invoke-Source':PRODUCT_CONFIG[_0x5e0a16(0x109)],..._0x3857ce,...headers},'body':_0x335f0d?JSON[_0x5e0a16(0x111)](_0x335f0d):undefined,'signal':_0x5d1b57[_0x5e0a16(0x10e)]});let _0x13e0a4;try{_0x13e0a4=await _0x139a74['json']();}catch{throw CliErrors[_0x5e0a16(0x11c)]('API\x20returned\x20non-JSON\x20response\x20(HTTP\x20'+_0x139a74[_0x5e0a16(0x129)]+')',_0x139a74[_0x5e0a16(0x129)]>=0x190?_0x5e0a16(0xf9):undefined);}if(!_0x139a74['ok']||_0x13e0a4[_0x5e0a16(0xfb)]===![])throw CliErrors[_0x5e0a16(0x11c)](_0x13e0a4['errorMsg']||_0x13e0a4[_0x5e0a16(0x100)]||_0x5e0a16(0x105)+_0x139a74[_0x5e0a16(0x129)],_0x13e0a4['errorCode']?'API\x20error\x20code:\x20'+_0x13e0a4['errorCode']:undefined);return _0x13e0a4;}catch(_0x2437d4){if(_0x2437d4 instanceof Error&&_0x2437d4[_0x5e0a16(0xf8)]==='AbortError')throw CliErrors[_0x5e0a16(0x11c)](_0x5e0a16(0x117)+_0x311cd4);throw _0x2437d4;}finally{clearTimeout(_0x4f649e);}}export async function getBffScriptInfo(_0x42a31d){const _0x14ca55=a43_0x3ff7,_0x5638cb=await apiRequest(_0x14ca55(0x11b)+_0x42a31d);if(!_0x5638cb[_0x14ca55(0x121)])throw CliErrors['validation'](_0x14ca55(0x11d)+_0x42a31d);return _0x5638cb['data'];}export async function getSqlQueryInfo(_0x132592,_0x2e6c92){const _0x278495=a43_0x3ff7,_0x63ce1b=await apiRequest(_0x278495(0x110),{'method':_0x278495(0x119),'body':{'appCode':_0x132592,'currentPage':0x1,'pageSize':0x1,'sqlCode':_0x2e6c92}}),_0x434f81=_0x63ce1b[_0x278495(0x121)],_0x2cdf86=_0x434f81&&typeof _0x434f81===_0x278495(0x114)&&_0x278495(0x122)in _0x434f81?_0x434f81[_0x278495(0x122)]?.[0x0]:_0x434f81&&typeof _0x434f81===_0x278495(0x114)&&_0x278495(0x112)in _0x434f81?_0x434f81:undefined;if(!_0x2cdf86)throw CliErrors[_0x278495(0x10b)](_0x278495(0x11a)+_0x2e6c92);return _0x2cdf86;}function isRemoteAppItem(_0x5997d4){const _0x21ca3e=a43_0x3ff7;return!!_0x5997d4&&typeof _0x5997d4===_0x21ca3e(0x114)&&typeof _0x5997d4[_0x21ca3e(0x11e)]===_0x21ca3e(0x120)&&typeof _0x5997d4[_0x21ca3e(0x108)]==='string';}function extractRemoteAppItems(_0x4cbd51){const _0x367817=a43_0x3ff7;if(Array[_0x367817(0xfc)](_0x4cbd51))return _0x4cbd51['filter'](isRemoteAppItem);if(!_0x4cbd51||typeof _0x4cbd51!==_0x367817(0x114))throw CliErrors[_0x367817(0x11c)]('Invalid\x20app\x20list\x20response:\x20expected\x20object\x20or\x20array.');const _0x4d8428=_0x4cbd51;if(Array[_0x367817(0xfc)](_0x4d8428[_0x367817(0x122)]))return _0x4d8428[_0x367817(0x122)][_0x367817(0x126)](isRemoteAppItem);if(_0x4d8428[_0x367817(0x121)]&&typeof _0x4d8428[_0x367817(0x121)]===_0x367817(0x114)){const _0x11f273=_0x4d8428['data'];if(Array[_0x367817(0xfc)](_0x11f273['tableData']))return _0x11f273[_0x367817(0x122)]['filter'](isRemoteAppItem);}throw CliErrors[_0x367817(0x11c)](_0x367817(0x10c));}export async function getMyApps(){const _0x543f58=a43_0x3ff7,_0x35c5ee=await apiRequest(_0x543f58(0x118));return extractRemoteAppItems(_0x35c5ee['data']);}export async function getLoginUserInfo(){const _0x42df81=a43_0x3ff7,_0x400e7a=await apiRequest('/client/user/loginUserInfo');if(!_0x400e7a['data']||typeof _0x400e7a['data']!==_0x42df81(0x114)||Array[_0x42df81(0xfc)](_0x400e7a['data']))throw CliErrors[_0x42df81(0x11c)](_0x42df81(0x10f));return _0x400e7a[_0x42df81(0x121)];}export async function listDatasets(_0x11b515,_0x1d0203){const _0x5f5cd9=a43_0x3ff7,_0x2ce74c=await apiRequest('/client/dataset/list',{'method':_0x5f5cd9(0x119),'body':{'appCode':_0x11b515,..._0x1d0203?.[_0x5f5cd9(0x101)]&&{'code':_0x1d0203[_0x5f5cd9(0x101)]},..._0x1d0203?.['name']&&{'name':_0x1d0203[_0x5f5cd9(0xf8)]}}});return extractList(_0x2ce74c[_0x5f5cd9(0x121)]);}export async function getDatasetDetail(_0x136022){const _0xfa0b7d=a43_0x3ff7,_0x4c634d=/^\d+$/[_0xfa0b7d(0x12f)](_0x136022)?'id':_0xfa0b7d(0x101),_0x45f624=await apiRequest('/client/dataset/query?'+_0x4c634d+'='+_0x136022);return _0x45f624[_0xfa0b7d(0x121)];}export async function listPersonalKnowledgeBaseItems(_0x56e4ec){const _0x9c6c71=a43_0x3ff7,_0x3b5190=await apiRequest(_0x9c6c71(0x10d)+encodeURIComponent(_0x56e4ec));return Array[_0x9c6c71(0xfc)](_0x3b5190[_0x9c6c71(0x121)])?_0x3b5190['data']:[];}export async function getPersonalKnowledgeBaseItem(_0xfa6c60,_0x1fe097){const _0x554f87=a43_0x3ff7,_0x490b5b=await apiRequest(_0x554f87(0x128)+_0xfa6c60+_0x554f87(0x130)+encodeURIComponent(_0x1fe097));if(!_0x490b5b[_0x554f87(0x121)])throw CliErrors[_0x554f87(0x10b)](_0x554f87(0xfe)+_0xfa6c60);return _0x490b5b['data'];}export async function createPersonalKnowledgeBaseItem(_0x57549f,_0x73b4f3){const _0x2da1dd=a43_0x3ff7,_0x326998=await apiRequest('/client/knowledge-base/personal/create',{'method':_0x2da1dd(0x119),'body':{'appCode':_0x57549f,..._0x73b4f3}});return _0x326998[_0x2da1dd(0x121)];}export async function updatePersonalKnowledgeBaseItem(_0x48939d,_0x53d4cc,_0x333af1){const _0x1c1785=a43_0x3ff7,_0x31a4ad=await apiRequest(_0x1c1785(0x128)+_0x48939d+_0x1c1785(0x12d),{'method':_0x1c1785(0x119),'body':{'appCode':_0x53d4cc,..._0x333af1}});return _0x31a4ad[_0x1c1785(0x121)];}export async function searchKnowledgeBase(_0x162421,_0x2928d7){const _0x511b04=a43_0x3ff7,_0xd19038=await apiRequest(_0x511b04(0xff),{'method':_0x511b04(0x119),'body':{'appCode':_0x162421,'query':_0x2928d7['query'],..._0x2928d7[_0x511b04(0x116)]!==undefined?{'topK':_0x2928d7[_0x511b04(0x116)]}:{}}});return Array[_0x511b04(0xfc)](_0xd19038[_0x511b04(0x121)])?_0xd19038[_0x511b04(0x121)]:[];}export async function listPersonalRuntimeSkills(_0x182a57){const _0x40a8cc=a43_0x3ff7,_0x5d89bc=await apiRequest(_0x40a8cc(0x11f)+encodeURIComponent(_0x182a57));return Array['isArray'](_0x5d89bc[_0x40a8cc(0x121)])?_0x5d89bc[_0x40a8cc(0x121)]:[];}export async function listCompanyRuntimeSkills(_0x3d7be1){const _0x5f0ecf=a43_0x3ff7,_0x401920=await apiRequest('/client/skill/company/list?appCode='+encodeURIComponent(_0x3d7be1));return Array[_0x5f0ecf(0xfc)](_0x401920[_0x5f0ecf(0x121)])?_0x401920[_0x5f0ecf(0x121)]:[];}export async function createPersonalRuntimeSkill(_0x4fcdaa,_0x42b775){const _0x18e6b0=a43_0x3ff7,_0x591aea=await apiRequest(_0x18e6b0(0x127),{'method':'POST','body':{'appCode':_0x4fcdaa,..._0x42b775}});return _0x591aea['data'];}export async function updatePersonalRuntimeSkill(_0x4d6326,_0x150cc8,_0x32e923){const _0x3b8dfd=a43_0x3ff7,_0xad6b6e=await apiRequest(_0x3b8dfd(0x103)+encodeURIComponent(_0x4d6326)+_0x3b8dfd(0x12d),{'method':_0x3b8dfd(0x119),'body':{'appCode':_0x150cc8,..._0x32e923}});return _0xad6b6e[_0x3b8dfd(0x121)];}
@@ -1 +1 @@
1
- function a43_0x3208(_0x5d4f6e,_0xbe2e92){_0x5d4f6e=_0x5d4f6e-0x1eb;const _0x3879c3=a43_0x3879();let _0x32083e=_0x3879c3[_0x5d4f6e];return _0x32083e;}(function(_0x1cde5d,_0x3fad03){const _0x172639=a43_0x3208,_0x4dc5d7=_0x1cde5d();while(!![]){try{const _0x1e2d85=-parseInt(_0x172639(0x1f2))/0x1*(parseInt(_0x172639(0x1f5))/0x2)+-parseInt(_0x172639(0x1f0))/0x3+-parseInt(_0x172639(0x1f3))/0x4+parseInt(_0x172639(0x1f7))/0x5*(parseInt(_0x172639(0x1f9))/0x6)+parseInt(_0x172639(0x1f4))/0x7+-parseInt(_0x172639(0x1eb))/0x8+parseInt(_0x172639(0x1ec))/0x9*(parseInt(_0x172639(0x1ef))/0xa);if(_0x1e2d85===_0x3fad03)break;else _0x4dc5d7['push'](_0x4dc5d7['shift']());}catch(_0x5118ec){_0x4dc5d7['push'](_0x4dc5d7['shift']());}}}(a43_0x3879,0x76eed));import{listDatasets}from'../core/api-client.js';function a43_0x3879(){const _0x4340fa=['get','dbName','90250PEDfZl','1918536vziFsY','find','42563vQCdfT','285900WNBRKE','6643105NZeTIv','30lqZQvV','map','15Csqsvf','dbId','1248174dknoEP','db-','set','5039968VkZfFM','891gwHTLH'];a43_0x3879=function(){return _0x4340fa;};return a43_0x3879();}const cache=new Map();export async function listDatabases(_0x247750){const _0x19d50d=a43_0x3208;if(cache['has'](_0x247750))return cache[_0x19d50d(0x1ed)](_0x247750);const _0x237283=await listDatasets(_0x247750),_0x50e453=new Map();for(const _0x1dc8bd of _0x237283){const _0x5738fc=_0x1dc8bd['dbtableConfig'];_0x5738fc?.['dbId']!=null&&_0x50e453[_0x19d50d(0x1fb)](_0x5738fc[_0x19d50d(0x1f8)],_0x5738fc[_0x19d50d(0x1ee)]??_0x19d50d(0x1fa)+_0x5738fc['dbId']);}const _0x3245fb=[..._0x50e453['entries']()][_0x19d50d(0x1f6)](([_0x43db37,_0x28ea50])=>({'dbId':_0x43db37,'dbName':_0x28ea50}));return cache[_0x19d50d(0x1fb)](_0x247750,_0x3245fb),_0x3245fb;}export async function getDbName(_0xa8fd15,_0x5ba90c){const _0x12c88a=a43_0x3208;try{const _0x3c8446=await listDatabases(_0xa8fd15);return _0x3c8446[_0x12c88a(0x1f1)](_0x27a94c=>_0x27a94c[_0x12c88a(0x1f8)]===_0x5ba90c)?.[_0x12c88a(0x1ee)];}catch{return undefined;}}
1
+ (function(_0x2c13f3,_0x13bb1e){const _0x3fa1c9=a44_0x3bb6,_0x5af507=_0x2c13f3();while(!![]){try{const _0x4e9bc2=-parseInt(_0x3fa1c9(0x15e))/0x1+parseInt(_0x3fa1c9(0x167))/0x2*(parseInt(_0x3fa1c9(0x15f))/0x3)+-parseInt(_0x3fa1c9(0x162))/0x4+-parseInt(_0x3fa1c9(0x163))/0x5+parseInt(_0x3fa1c9(0x164))/0x6+-parseInt(_0x3fa1c9(0x15a))/0x7+parseInt(_0x3fa1c9(0x15c))/0x8;if(_0x4e9bc2===_0x13bb1e)break;else _0x5af507['push'](_0x5af507['shift']());}catch(_0x1e280b){_0x5af507['push'](_0x5af507['shift']());}}}(a44_0x3422,0x45f6a));import{listDatasets}from'../core/api-client.js';const cache=new Map();function a44_0x3bb6(_0x1d7481,_0x42e276){_0x1d7481=_0x1d7481-0x15a;const _0x3422de=a44_0x3422();let _0x3bb65e=_0x3422de[_0x1d7481];return _0x3bb65e;}export async function listDatabases(_0x5c3c3b){const _0x49fd85=a44_0x3bb6;if(cache[_0x49fd85(0x15d)](_0x5c3c3b))return cache[_0x49fd85(0x166)](_0x5c3c3b);const _0x137f2c=await listDatasets(_0x5c3c3b),_0xfdbbba=new Map();for(const _0x31b007 of _0x137f2c){const _0x170829=_0x31b007[_0x49fd85(0x168)];_0x170829?.[_0x49fd85(0x169)]!=null&&_0xfdbbba['set'](_0x170829[_0x49fd85(0x169)],_0x170829[_0x49fd85(0x160)]??'db-'+_0x170829['dbId']);}const _0x21b014=[..._0xfdbbba[_0x49fd85(0x16a)]()][_0x49fd85(0x161)](([_0x3f37eb,_0x3f1d4b])=>({'dbId':_0x3f37eb,'dbName':_0x3f1d4b}));return cache[_0x49fd85(0x165)](_0x5c3c3b,_0x21b014),_0x21b014;}function a44_0x3422(){const _0x14a6e1=['dbtableConfig','dbId','entries','305921LnwLxj','find','7069448vPOtrS','has','137302JggUto','276780mitihi','dbName','map','1659740eDORrb','1772915UDLDbl','1566912VoWXBD','set','get','2WXtPNr'];a44_0x3422=function(){return _0x14a6e1;};return a44_0x3422();}export async function getDbName(_0x3e7e43,_0x4e265f){const _0x8a21b5=a44_0x3bb6;try{const _0x165d51=await listDatabases(_0x3e7e43);return _0x165d51[_0x8a21b5(0x15b)](_0x4aa702=>_0x4aa702['dbId']===_0x4e265f)?.['dbName'];}catch{return undefined;}}
@@ -1 +1 @@
1
- (function(_0x4d4c80,_0x29ea2c){const _0x50a0f0=a44_0x4573,_0x8779ca=_0x4d4c80();while(!![]){try{const _0x493bd2=parseInt(_0x50a0f0(0x1d6))/0x1+-parseInt(_0x50a0f0(0x1cf))/0x2+parseInt(_0x50a0f0(0x1d9))/0x3*(parseInt(_0x50a0f0(0x1db))/0x4)+-parseInt(_0x50a0f0(0x1dc))/0x5+parseInt(_0x50a0f0(0x1ce))/0x6+parseInt(_0x50a0f0(0x1cd))/0x7+parseInt(_0x50a0f0(0x1e1))/0x8*(-parseInt(_0x50a0f0(0x1d4))/0x9);if(_0x493bd2===_0x29ea2c)break;else _0x8779ca['push'](_0x8779ca['shift']());}catch(_0x339bb6){_0x8779ca['push'](_0x8779ca['shift']());}}}(a44_0xfd63,0x497e9));import{createClient}from'@lovrabet/sdk';import{parseBatchCreateItemsFromParams}from'../utils/params.js';let _client;export function initSdkClient(_0x5e9bcd){const _0x4728d8=a44_0x4573;_client=createClient({'appCode':_0x5e9bcd[_0x4728d8(0x1d1)],'env':_0x5e9bcd[_0x4728d8(0x1c9)],'authMode':_0x5e9bcd['authMode'],..._0x5e9bcd['accessKey']?{'accessKey':_0x5e9bcd[_0x4728d8(0x1e0)]}:{},'options':{'timeout':0x7530}});}function a44_0x4573(_0x55452c,_0x40c707){_0x55452c=_0x55452c-0x1c9;const _0xfd6341=a44_0xfd63();let _0x457399=_0xfd6341[_0x55452c];return _0x457399;}function a44_0xfd63(){const _0x424c45=['delete','SDK\x20client\x20not\x20initialized.\x20Call\x20initSdkClient()\x20first.','getOne\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123}\x27','accessKey','11352AbeGfu','sql','function','env','SDK\x20model\x20does\x20not\x20support\x20operation\x20\x22','batchCreate','delete\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123}\x27','2355675GUbhSG','1767696Qpbgsy','690266fVVend','execute','appCode','models','update','1917gtSzBe','Available:\x20filter,\x20getOne,\x20create,\x20batchCreate,\x20update,\x20delete,\x20aggregate.','575015dfivSs','getOne','bff','43689xWmRXN','\x22.\x20','56LGSEux','2308125DVySoR'];a44_0xfd63=function(){return _0x424c45;};return a44_0xfd63();}function ensureClient(){const _0x447267=a44_0x4573;if(!_client)throw new Error(_0x447267(0x1de));return _client;}export async function executeData(_0x52fc8b,_0x38850e,_0x33fcc3){const _0x32c2fe=a44_0x4573,_0x99bbff=ensureClient(),_0x2d7957='dataset_'+_0x52fc8b,_0x33bf0d=_0x99bbff[_0x32c2fe(0x1d2)][_0x2d7957];if(!_0x33bf0d||typeof _0x33bf0d[_0x38850e]!==_0x32c2fe(0x1e3))throw new Error(_0x32c2fe(0x1ca)+_0x38850e+_0x32c2fe(0x1da)+_0x32c2fe(0x1d5));if(_0x38850e===_0x32c2fe(0x1cb))return _0x33bf0d['batchCreate'](parseBatchCreateItemsFromParams(_0x33fcc3));const _0x422f14=_0x33fcc3!==undefined&&_0x33fcc3!==null&&!Array['isArray'](_0x33fcc3)?_0x33fcc3:{};switch(_0x38850e){case _0x32c2fe(0x1d7):{const _0x3068f7=_0x422f14['id'];if(_0x3068f7===undefined||_0x3068f7===null)throw new Error(_0x32c2fe(0x1df));return _0x33bf0d[_0x32c2fe(0x1d7)](_0x3068f7);}case _0x32c2fe(0x1d3):{const {id:_0x4b778b,..._0x2c86f6}=_0x422f14;if(_0x4b778b===undefined||_0x4b778b===null)throw new Error('update\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123,\x22name\x22:\x22new\x22}\x27');return _0x33bf0d[_0x32c2fe(0x1d3)](_0x4b778b,_0x2c86f6);}case _0x32c2fe(0x1dd):{const _0x11bf77=_0x422f14['id'];if(_0x11bf77===undefined||_0x11bf77===null)throw new Error(_0x32c2fe(0x1cc));return _0x33bf0d['delete'](_0x11bf77);}default:return _0x33bf0d[_0x38850e](_0x422f14);}}export async function executeSdkSql(_0x436574,_0x5a0c30){const _0x47fb24=a44_0x4573,_0x2a74b6=ensureClient();return _0x2a74b6[_0x47fb24(0x1e2)][_0x47fb24(0x1d0)]({'sqlCode':_0x436574,'params':_0x5a0c30});}export async function executeSdkBff(_0x4bf674,_0x1db638){const _0x3befff=a44_0x4573,_0x545de1=ensureClient();return _0x545de1[_0x3befff(0x1d8)]['execute']({'scriptName':_0x4bf674,'params':_0x1db638});}
1
+ (function(_0x19cfd0,_0x33adfe){const _0x47b7e4=a45_0x275a,_0x3408d5=_0x19cfd0();while(!![]){try{const _0x36fbda=parseInt(_0x47b7e4(0xc6))/0x1+-parseInt(_0x47b7e4(0xc1))/0x2*(parseInt(_0x47b7e4(0xbd))/0x3)+parseInt(_0x47b7e4(0xcc))/0x4+-parseInt(_0x47b7e4(0xcf))/0x5+-parseInt(_0x47b7e4(0xc0))/0x6+parseInt(_0x47b7e4(0xbc))/0x7*(-parseInt(_0x47b7e4(0xc4))/0x8)+-parseInt(_0x47b7e4(0xbb))/0x9*(-parseInt(_0x47b7e4(0xc3))/0xa);if(_0x36fbda===_0x33adfe)break;else _0x3408d5['push'](_0x3408d5['shift']());}catch(_0x29938e){_0x3408d5['push'](_0x3408d5['shift']());}}}(a45_0x23fa,0x6120f));import{createClient}from'@lovrabet/sdk';import{parseBatchCreateItemsFromParams}from'../utils/params.js';let _client;export function initSdkClient(_0x598103){const _0x12108a=a45_0x275a;_client=createClient({'appCode':_0x598103[_0x12108a(0xb9)],'env':_0x598103[_0x12108a(0xca)],'authMode':_0x598103['authMode'],..._0x598103[_0x12108a(0xbf)]?{'accessKey':_0x598103['accessKey']}:{},'options':{'timeout':0x7530}});}function a45_0x275a(_0x59f068,_0x4fb576){_0x59f068=_0x59f068-0xb5;const _0x23fa1f=a45_0x23fa();let _0x275a87=_0x23fa1f[_0x59f068];return _0x275a87;}function ensureClient(){const _0x18e2da=a45_0x275a;if(!_client)throw new Error(_0x18e2da(0xb5));return _client;}function a45_0x23fa(){const _0x4269a8=['23067220UXdauy','8WjJHPL','update','672589jDNOfQ','SDK\x20model\x20does\x20not\x20support\x20operation\x20\x22','dataset_','Available:\x20filter,\x20getOne,\x20create,\x20batchCreate,\x20update,\x20delete,\x20aggregate.','env','getOne','110668nndfWA','bff','delete\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123}\x27','3751005mPQiUI','delete','SDK\x20client\x20not\x20initialized.\x20Call\x20initSdkClient()\x20first.','sql','getOne\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123}\x27','isArray','appCode','execute','9KJKlmb','5235580klzAIz','14031syUnXo','batchCreate','accessKey','1979634nNZvnI','334YmrfVJ','function'];a45_0x23fa=function(){return _0x4269a8;};return a45_0x23fa();}export async function executeData(_0x28a17e,_0x6fb9c0,_0x585448){const _0x2cb08b=a45_0x275a,_0x167c8e=ensureClient(),_0x16dfd5=_0x2cb08b(0xc8)+_0x28a17e,_0x4fde90=_0x167c8e['models'][_0x16dfd5];if(!_0x4fde90||typeof _0x4fde90[_0x6fb9c0]!==_0x2cb08b(0xc2))throw new Error(_0x2cb08b(0xc7)+_0x6fb9c0+'\x22.\x20'+_0x2cb08b(0xc9));if(_0x6fb9c0==='batchCreate')return _0x4fde90[_0x2cb08b(0xbe)](parseBatchCreateItemsFromParams(_0x585448));const _0x8d4570=_0x585448!==undefined&&_0x585448!==null&&!Array[_0x2cb08b(0xb8)](_0x585448)?_0x585448:{};switch(_0x6fb9c0){case _0x2cb08b(0xcb):{const _0x3adbf8=_0x8d4570['id'];if(_0x3adbf8===undefined||_0x3adbf8===null)throw new Error(_0x2cb08b(0xb7));return _0x4fde90[_0x2cb08b(0xcb)](_0x3adbf8);}case _0x2cb08b(0xc5):{const {id:_0x4065a7,..._0x451d83}=_0x8d4570;if(_0x4065a7===undefined||_0x4065a7===null)throw new Error('update\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123,\x22name\x22:\x22new\x22}\x27');return _0x4fde90[_0x2cb08b(0xc5)](_0x4065a7,_0x451d83);}case _0x2cb08b(0xd0):{const _0x4d35d9=_0x8d4570['id'];if(_0x4d35d9===undefined||_0x4d35d9===null)throw new Error(_0x2cb08b(0xce));return _0x4fde90[_0x2cb08b(0xd0)](_0x4d35d9);}default:return _0x4fde90[_0x6fb9c0](_0x8d4570);}}export async function executeSdkSql(_0x2f0e95,_0x3d3f89){const _0x3b94b6=a45_0x275a,_0x3d7f57=ensureClient();return _0x3d7f57[_0x3b94b6(0xb6)][_0x3b94b6(0xba)]({'sqlCode':_0x2f0e95,'params':_0x3d3f89});}export async function executeSdkBff(_0xcc24cf,_0x450dcc){const _0x3a089d=a45_0x275a,_0x3aefc4=ensureClient();return _0x3aefc4[_0x3a089d(0xcd)][_0x3a089d(0xba)]({'scriptName':_0xcc24cf,'params':_0x450dcc});}
package/lib/errors.js CHANGED
@@ -1 +1 @@
1
- const a45_0x331843=a45_0xbd46;(function(_0x5b4fcb,_0x4ab183){const _0x18c807=a45_0xbd46,_0x13c6b0=_0x5b4fcb();while(!![]){try{const _0x55db14=parseInt(_0x18c807(0x1eb))/0x1+parseInt(_0x18c807(0x1e9))/0x2+-parseInt(_0x18c807(0x1e7))/0x3*(-parseInt(_0x18c807(0x1e8))/0x4)+-parseInt(_0x18c807(0x1ec))/0x5+-parseInt(_0x18c807(0x1f0))/0x6+-parseInt(_0x18c807(0x1f4))/0x7+parseInt(_0x18c807(0x1ea))/0x8*(parseInt(_0x18c807(0x1f1))/0x9);if(_0x55db14===_0x4ab183)break;else _0x13c6b0['push'](_0x13c6b0['shift']());}catch(_0x404b0c){_0x13c6b0['push'](_0x13c6b0['shift']());}}}(a45_0x5d70,0x5ce4b));import{CliError,createCliErrors}from'@lovrabet/cli-framework';function a45_0xbd46(_0x575156,_0x25178e){_0x575156=_0x575156-0x1e7;const _0x5d7011=a45_0x5d70();let _0xbd46c3=_0x5d7011[_0x575156];return _0xbd46c3;}function a45_0x5d70(){const _0x53619c=['1560734uYzZqY','Configure\x20accessKey\x20in\x20','753TlIEdm','7892szycLo','325916cTkJKi','8GVhkGn','421361eYUuCF','216185xAUFEv','\x20or\x20run\x20`','Set\x20appcode\x20via\x20--appcode\x20or\x20','Run\x20this\x20command\x20inside\x20a\x20directory\x20with\x20a\x20','2648994OtMGld','77823GsQgss','\x20auth\x20login`.','newConfigFileName'];a45_0x5d70=function(){return _0x53619c;};return a45_0x5d70();}import{CLI_BIN_NAME}from'./constant/cli.js';import{PRODUCT_CONFIG}from'./constant/product.js';export{CliError};export const CliErrors=createCliErrors({'cliBinName':CLI_BIN_NAME,'authRequiredHint':a45_0x331843(0x1f5)+PRODUCT_CONFIG['newConfigFileName']+a45_0x331843(0x1ed)+CLI_BIN_NAME+a45_0x331843(0x1f2),'configMissingHint':a45_0x331843(0x1ee)+PRODUCT_CONFIG[a45_0x331843(0x1f3)]+'.','notInProjectHint':a45_0x331843(0x1ef)+PRODUCT_CONFIG['newConfigFileName']+'\x20file.'});
1
+ function a46_0x555f(_0x2a869f,_0x20ea4a){_0x2a869f=_0x2a869f-0x1c3;const _0x1c3c6f=a46_0x1c3c();let _0x555f00=_0x1c3c6f[_0x2a869f];return _0x555f00;}const a46_0x5b670f=a46_0x555f;(function(_0x33f2d8,_0xb8c6eb){const _0xdf6049=a46_0x555f,_0x5c251b=_0x33f2d8();while(!![]){try{const _0x34e594=parseInt(_0xdf6049(0x1d2))/0x1+-parseInt(_0xdf6049(0x1cf))/0x2*(parseInt(_0xdf6049(0x1ce))/0x3)+-parseInt(_0xdf6049(0x1d1))/0x4*(parseInt(_0xdf6049(0x1c3))/0x5)+parseInt(_0xdf6049(0x1c7))/0x6*(parseInt(_0xdf6049(0x1c8))/0x7)+parseInt(_0xdf6049(0x1cb))/0x8*(-parseInt(_0xdf6049(0x1d3))/0x9)+-parseInt(_0xdf6049(0x1ca))/0xa*(parseInt(_0xdf6049(0x1c9))/0xb)+parseInt(_0xdf6049(0x1cd))/0xc;if(_0x34e594===_0xb8c6eb)break;else _0x5c251b['push'](_0x5c251b['shift']());}catch(_0x31e9bb){_0x5c251b['push'](_0x5c251b['shift']());}}}(a46_0x1c3c,0xd4350));import{CliError,createCliErrors}from'@lovrabet/cli-framework';import{CLI_BIN_NAME}from'./constant/cli.js';import{PRODUCT_CONFIG}from'./constant/product.js';function a46_0x1c3c(){const _0x59971a=['2080xagbcI','newConfigFileName','11219412YmnRIv','447030wsBEZa','2KFhiip','Run\x20this\x20command\x20inside\x20a\x20directory\x20with\x20a\x20','3668dVThtX','466619EIarKk','8793fAHiiM','\x20auth\x20login`.','\x20or\x20run\x20`','655sAGvrz','\x20file.','Configure\x20accessKey\x20in\x20','Set\x20appcode\x20via\x20--appcode\x20or\x20','18ofVnko','2392691uQiOyH','1896862jnQOZz','60fBSTod'];a46_0x1c3c=function(){return _0x59971a;};return a46_0x1c3c();}export{CliError};export const CliErrors=createCliErrors({'cliBinName':CLI_BIN_NAME,'authRequiredHint':a46_0x5b670f(0x1c5)+PRODUCT_CONFIG[a46_0x5b670f(0x1cc)]+a46_0x5b670f(0x1d5)+CLI_BIN_NAME+a46_0x5b670f(0x1d4),'configMissingHint':a46_0x5b670f(0x1c6)+PRODUCT_CONFIG[a46_0x5b670f(0x1cc)]+'.','notInProjectHint':a46_0x5b670f(0x1d0)+PRODUCT_CONFIG['newConfigFileName']+a46_0x5b670f(0x1c4)});
@@ -1 +1 @@
1
- (function(_0x4eeb1c,_0x2bef5a){var _0x24c40=a46_0x543a,_0x33d994=_0x4eeb1c();while(!![]){try{var _0x58310a=parseInt(_0x24c40(0x6e))/0x1*(parseInt(_0x24c40(0x71))/0x2)+parseInt(_0x24c40(0x75))/0x3+-parseInt(_0x24c40(0x70))/0x4+-parseInt(_0x24c40(0x6f))/0x5+parseInt(_0x24c40(0x76))/0x6*(parseInt(_0x24c40(0x6d))/0x7)+parseInt(_0x24c40(0x73))/0x8+-parseInt(_0x24c40(0x72))/0x9*(parseInt(_0x24c40(0x74))/0xa);if(_0x58310a===_0x2bef5a)break;else _0x33d994['push'](_0x33d994['shift']());}catch(_0x2aaefd){_0x33d994['push'](_0x33d994['shift']());}}}(a46_0x4763,0xc8dc2));function a46_0x4763(){var _0x46f9f8=['2938484XtRlAT','3504XfgAeS','399717yKAihu','2823176IcMTgt','60MoXunD','3125853RehPfS','13836zEDgVD','42PQZcMr','651fmmdzh','3627075ZPtuMV'];a46_0x4763=function(){return _0x46f9f8;};return a46_0x4763();}import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';import{buildAllFlags as a46_0x51f478}from'@lovrabet/cli-framework';function a46_0x543a(_0xe97bd9,_0xd74344){_0xe97bd9=_0xe97bd9-0x6d;var _0x4763ed=a46_0x4763();var _0x543af6=_0x4763ed[_0xe97bd9];return _0x543af6;}export function buildAllFlags(_0x23a490){return a46_0x51f478(_0x23a490,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});}
1
+ (function(_0x3e2a80,_0x21e6b7){var _0x5054d5=a47_0x1603,_0x48f76c=_0x3e2a80();while(!![]){try{var _0xab8077=-parseInt(_0x5054d5(0x1a5))/0x1+-parseInt(_0x5054d5(0x1a3))/0x2*(parseInt(_0x5054d5(0x19f))/0x3)+parseInt(_0x5054d5(0x1a0))/0x4+-parseInt(_0x5054d5(0x1a2))/0x5+parseInt(_0x5054d5(0x1a6))/0x6+parseInt(_0x5054d5(0x1a1))/0x7+parseInt(_0x5054d5(0x1a4))/0x8;if(_0xab8077===_0x21e6b7)break;else _0x48f76c['push'](_0x48f76c['shift']());}catch(_0x35a843){_0x48f76c['push'](_0x48f76c['shift']());}}}(a47_0x5489,0x30e8c));import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';import{buildAllFlags as a47_0x26406e}from'@lovrabet/cli-framework';function a47_0x5489(){var _0x2c0657=['1678593MIdCpx','865150menMUX','94SQPYjT','2637776qqwnNy','112969saiXlu','193368oMphDo','21765wUONVk','902268zVvcqi'];a47_0x5489=function(){return _0x2c0657;};return a47_0x5489();}function a47_0x1603(_0x4431a4,_0x55e7b8){_0x4431a4=_0x4431a4-0x19f;var _0x54893b=a47_0x5489();var _0x160305=_0x54893b[_0x4431a4];return _0x160305;}export function buildAllFlags(_0x4ce625){return a47_0x26406e(_0x4ce625,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});}
@@ -1 +1 @@
1
- function a47_0xef58(_0x3c5d30,_0x3a610e){_0x3c5d30=_0x3c5d30-0xae;const _0x547ae4=a47_0x547a();let _0xef5810=_0x547ae4[_0x3c5d30];return _0xef5810;}(function(_0x4e2643,_0x470fc9){const _0x17c7a9=a47_0xef58,_0x292c56=_0x4e2643();while(!![]){try{const _0x56cdcf=parseInt(_0x17c7a9(0xb2))/0x1*(-parseInt(_0x17c7a9(0xb8))/0x2)+parseInt(_0x17c7a9(0xae))/0x3*(parseInt(_0x17c7a9(0xb6))/0x4)+parseInt(_0x17c7a9(0xb5))/0x5*(parseInt(_0x17c7a9(0xb1))/0x6)+parseInt(_0x17c7a9(0xb3))/0x7*(-parseInt(_0x17c7a9(0xbb))/0x8)+parseInt(_0x17c7a9(0xb4))/0x9*(-parseInt(_0x17c7a9(0xba))/0xa)+-parseInt(_0x17c7a9(0xb9))/0xb+parseInt(_0x17c7a9(0xb0))/0xc;if(_0x56cdcf===_0x470fc9)break;else _0x292c56['push'](_0x292c56['shift']());}catch(_0x226d53){_0x292c56['push'](_0x292c56['shift']());}}}(a47_0x547a,0xb4e6a));export function dryRun(_0x4cb780,_0x2e5eed){const _0x365db5={'method':_0x4cb780,'url':_0x2e5eed},_0x182015={'body'(_0x4f4122){const _0x4e1587=a47_0xef58;return _0x365db5[_0x4e1587(0xaf)]=_0x4f4122,_0x182015;},'description'(_0x4858cb){const _0x23f250=a47_0xef58;return _0x365db5[_0x23f250(0xb7)]=_0x4858cb,_0x182015;},'build'(){return{..._0x365db5};}};return _0x182015;}function a47_0x547a(){const _0xb2e9a9=['10IvqUdc','4576OnAkVP','2084046dpsHkA','body','40890540hXQvgw','6YbUAZH','1420630gmWNKd','16814DVSLFJ','11424186HRgRDQ','5819705ibKzfT','4kEBQkq','description','2iiUhxJ','5073970sPbtqn'];a47_0x547a=function(){return _0xb2e9a9;};return a47_0x547a();}
1
+ function a48_0x22b3(){const _0x4e9536=['1945mxMAck','body','6715242qOzzmY','1293GXuFrm','description','5740427mBCauH','197670QkmeTu','3408794gMXgTN','72Zrmfny','945147sfTnBS','3270gjTLVf','8076qhwtZO','10uYQCIB'];a48_0x22b3=function(){return _0x4e9536;};return a48_0x22b3();}(function(_0x2135e6,_0x14b99a){const _0x4f0438=a48_0x1bb8,_0x50da4b=_0x2135e6();while(!![]){try{const _0x59e8ce=-parseInt(_0x4f0438(0xf0))/0x1+parseInt(_0x4f0438(0xf1))/0x2+-parseInt(_0x4f0438(0xfa))/0x3*(parseInt(_0x4f0438(0xf5))/0x4)+-parseInt(_0x4f0438(0xf7))/0x5*(-parseInt(_0x4f0438(0xf4))/0x6)+-parseInt(_0x4f0438(0xf3))/0x7*(parseInt(_0x4f0438(0xf2))/0x8)+parseInt(_0x4f0438(0xf9))/0x9+parseInt(_0x4f0438(0xf6))/0xa*(parseInt(_0x4f0438(0xef))/0xb);if(_0x59e8ce===_0x14b99a)break;else _0x50da4b['push'](_0x50da4b['shift']());}catch(_0xd2ebbd){_0x50da4b['push'](_0x50da4b['shift']());}}}(a48_0x22b3,0xdc0e5));function a48_0x1bb8(_0x425030,_0x5d9081){_0x425030=_0x425030-0xef;const _0x22b376=a48_0x22b3();let _0x1bb8be=_0x22b376[_0x425030];return _0x1bb8be;}export function dryRun(_0x4f705b,_0x22541c){const _0x2303f2={'method':_0x4f705b,'url':_0x22541c},_0x780e43={'body'(_0x234d8f){const _0x3d1ccb=a48_0x1bb8;return _0x2303f2[_0x3d1ccb(0xf8)]=_0x234d8f,_0x780e43;},'description'(_0x12e94b){const _0x2d65b6=a48_0x1bb8;return _0x2303f2[_0x2d65b6(0xfb)]=_0x12e94b,_0x780e43;},'build'(){return{..._0x2303f2};}};return _0x780e43;}
@@ -1 +1 @@
1
- function a48_0x5957(){const _0x16f06e=['21mskFeh','parseFlags','validateFlags','360eobKjB','14ZyszSa','16AHcVjw','22712WGPVVY','551469tRybNm','2190798xDqYQG','70996XbngPR','9793428wniGkt','52SZPbQZ','6905895miTwrO','10anqQpq','18216077jlvzqg'];a48_0x5957=function(){return _0x16f06e;};return a48_0x5957();}const a48_0x10f0c8=a48_0xa2c0;function a48_0xa2c0(_0x46d122,_0x594367){_0x46d122=_0x46d122-0x14f;const _0x595759=a48_0x5957();let _0xa2c05b=_0x595759[_0x46d122];return _0xa2c05b;}(function(_0x1982f9,_0x51daf6){const _0x33afa0=a48_0xa2c0,_0x125198=_0x1982f9();while(!![]){try{const _0x29c3e5=parseInt(_0x33afa0(0x150))/0x1*(-parseInt(_0x33afa0(0x159))/0x2)+-parseInt(_0x33afa0(0x157))/0x3*(-parseInt(_0x33afa0(0x155))/0x4)+-parseInt(_0x33afa0(0x15c))/0x5+parseInt(_0x33afa0(0x158))/0x6*(parseInt(_0x33afa0(0x154))/0x7)+parseInt(_0x33afa0(0x156))/0x8*(-parseInt(_0x33afa0(0x153))/0x9)+parseInt(_0x33afa0(0x15d))/0xa*(-parseInt(_0x33afa0(0x14f))/0xb)+-parseInt(_0x33afa0(0x15a))/0xc*(-parseInt(_0x33afa0(0x15b))/0xd);if(_0x29c3e5===_0x51daf6)break;else _0x125198['push'](_0x125198['shift']());}catch(_0x415134){_0x125198['push'](_0x125198['shift']());}}}(a48_0x5957,0xcb926));import{createFlagHelpers}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';const helpers=createFlagHelpers(CliErrors);export const parseFlags=helpers[a48_0x10f0c8(0x151)];export const validateFlags=helpers[a48_0x10f0c8(0x152)];
1
+ const a49_0x1439c0=a49_0x2a08;(function(_0x413572,_0x5d6080){const _0x4ad00b=a49_0x2a08,_0x43036d=_0x413572();while(!![]){try{const _0x33d51d=parseInt(_0x4ad00b(0x1bb))/0x1+parseInt(_0x4ad00b(0x1bd))/0x2+parseInt(_0x4ad00b(0x1bc))/0x3*(parseInt(_0x4ad00b(0x1c1))/0x4)+-parseInt(_0x4ad00b(0x1c3))/0x5+-parseInt(_0x4ad00b(0x1be))/0x6*(-parseInt(_0x4ad00b(0x1c2))/0x7)+-parseInt(_0x4ad00b(0x1c4))/0x8+parseInt(_0x4ad00b(0x1bf))/0x9*(parseInt(_0x4ad00b(0x1c5))/0xa);if(_0x33d51d===_0x5d6080)break;else _0x43036d['push'](_0x43036d['shift']());}catch(_0x56b96c){_0x43036d['push'](_0x43036d['shift']());}}}(a49_0x4725,0x7ad45));import{createFlagHelpers}from'@lovrabet/cli-framework';function a49_0x4725(){const _0x4bf1b2=['1190jVMNmX','validateFlags','664758oInWrx','13197YGPeDi','450436ZcEXNB','36aeSWZc','16947bMsFRQ','parseFlags','116hEiRRt','228046aSNrCP','2677575cQMWnv','3187744UCBeMf'];a49_0x4725=function(){return _0x4bf1b2;};return a49_0x4725();}function a49_0x2a08(_0x5d3579,_0x18f376){_0x5d3579=_0x5d3579-0x1ba;const _0x4725ae=a49_0x4725();let _0x2a080f=_0x4725ae[_0x5d3579];return _0x2a080f;}import{CliErrors}from'../errors.js';const helpers=createFlagHelpers(CliErrors);export const parseFlags=helpers[a49_0x1439c0(0x1c0)];export const validateFlags=helpers[a49_0x1439c0(0x1ba)];
@@ -1 +1 @@
1
- const a49_0x4a31dd=a49_0x523e;function a49_0x523e(_0x484430,_0x4b7c2c){_0x484430=_0x484430-0xe2;const _0x19633f=a49_0x1963();let _0x523e58=_0x19633f[_0x484430];return _0x523e58;}(function(_0x3231aa,_0x213d88){const _0x31f4d8=a49_0x523e,_0x5d44d1=_0x3231aa();while(!![]){try{const _0x30162d=parseInt(_0x31f4d8(0xeb))/0x1*(parseInt(_0x31f4d8(0xee))/0x2)+parseInt(_0x31f4d8(0xea))/0x3*(-parseInt(_0x31f4d8(0xef))/0x4)+-parseInt(_0x31f4d8(0xe9))/0x5*(-parseInt(_0x31f4d8(0xf2))/0x6)+parseInt(_0x31f4d8(0xed))/0x7+parseInt(_0x31f4d8(0xe4))/0x8+-parseInt(_0x31f4d8(0xe7))/0x9*(parseInt(_0x31f4d8(0xec))/0xa)+parseInt(_0x31f4d8(0xe6))/0xb;if(_0x30162d===_0x213d88)break;else _0x5d44d1['push'](_0x5d44d1['shift']());}catch(_0x4a87ae){_0x5d44d1['push'](_0x5d44d1['shift']());}}}(a49_0x1963,0xdfa5e));import{createHelpGenerators}from'@lovrabet/cli-framework';function a49_0x1963(){const _0x28dd26=['8455664tZQbzv','generateCommandHelp','11282700Mimabw','9LSKflH','generateServiceHelp','5whwkhq','753ujDKfQ','9jYmUap','10395030VnTGed','322686RPcbxv','151264TFqKxQ','17868JHbgSQ','\x20or\x20--appcode).','get','1604028RTRHKc','generateFullHelp','newConfigFileName'];a49_0x1963=function(){return _0x28dd26;};return a49_0x1963();}import{buildAllFlags}from'../framework/build-all-flags.js';import{serviceRegistry,serviceGroups,getServiceEntry}from'../commands/registry.js';import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';import{PRODUCT_CONFIG}from'../constant/product.js';const generators=createHelpGenerators({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'globalFlags':GLOBAL_FLAGS,'serviceRegistry':serviceRegistry,'getServiceEntry':getServiceEntry,'getServiceDefinitions':_0x14d851=>serviceGroups[a49_0x4a31dd(0xf1)](_0x14d851),'buildAllFlags':buildAllFlags,'appPrerequisiteText':'Requires\x20appcode\x20(set\x20via\x20'+PRODUCT_CONFIG[a49_0x4a31dd(0xe3)]+a49_0x4a31dd(0xf0)});export function generateCommandHelp(_0x526050){const _0x3c0c78=a49_0x4a31dd;return generators[_0x3c0c78(0xe5)](_0x526050);}export const generateServiceHelp=generators[a49_0x4a31dd(0xe8)];export const generateFullHelp=generators[a49_0x4a31dd(0xe2)];
1
+ const a50_0x240456=a50_0x280f;(function(_0x5642f1,_0x55a54a){const _0x140371=a50_0x280f,_0x58b593=_0x5642f1();while(!![]){try{const _0x1e00f8=parseInt(_0x140371(0x1c5))/0x1*(parseInt(_0x140371(0x1cb))/0x2)+parseInt(_0x140371(0x1c1))/0x3*(-parseInt(_0x140371(0x1c7))/0x4)+-parseInt(_0x140371(0x1c9))/0x5*(-parseInt(_0x140371(0x1c4))/0x6)+parseInt(_0x140371(0x1c3))/0x7*(parseInt(_0x140371(0x1c8))/0x8)+parseInt(_0x140371(0x1d1))/0x9*(parseInt(_0x140371(0x1ca))/0xa)+-parseInt(_0x140371(0x1cc))/0xb*(-parseInt(_0x140371(0x1cf))/0xc)+parseInt(_0x140371(0x1cd))/0xd*(-parseInt(_0x140371(0x1ce))/0xe);if(_0x1e00f8===_0x55a54a)break;else _0x58b593['push'](_0x58b593['shift']());}catch(_0x1ae2d1){_0x58b593['push'](_0x58b593['shift']());}}}(a50_0x440b,0x4e52c));import{createHelpGenerators}from'@lovrabet/cli-framework';function a50_0x280f(_0x1f18c9,_0x1b57e9){_0x1f18c9=_0x1f18c9-0x1c1;const _0x440b37=a50_0x440b();let _0x280f74=_0x440b37[_0x1f18c9];return _0x280f74;}import{buildAllFlags}from'../framework/build-all-flags.js';import{serviceRegistry,serviceGroups,getServiceEntry}from'../commands/registry.js';import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';import{PRODUCT_CONFIG}from'../constant/product.js';const generators=createHelpGenerators({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'globalFlags':GLOBAL_FLAGS,'serviceRegistry':serviceRegistry,'getServiceEntry':getServiceEntry,'getServiceDefinitions':_0x269db5=>serviceGroups['get'](_0x269db5),'buildAllFlags':buildAllFlags,'appPrerequisiteText':a50_0x240456(0x1d2)+PRODUCT_CONFIG['newConfigFileName']+a50_0x240456(0x1d0)});function a50_0x440b(){const _0x1d89e5=['80ukYTpg','1115NoqQMB','2050XjYObx','88HoVRDM','66fsjBcI','15743rYvPqg','13706MDAUgS','702708uWiYtF','\x20or\x20--appcode).','10098yAZnVR','Requires\x20appcode\x20(set\x20via\x20','3idKctu','generateFullHelp','271061KdOAMR','15342lsuseo','13271VeCKKd','generateCommandHelp','2465392mJqIjc'];a50_0x440b=function(){return _0x1d89e5;};return a50_0x440b();}export function generateCommandHelp(_0xe97430){const _0x3851e5=a50_0x240456;return generators[_0x3851e5(0x1c6)](_0xe97430);}export const generateServiceHelp=generators['generateServiceHelp'];export const generateFullHelp=generators[a50_0x240456(0x1c2)];
@@ -1 +1 @@
1
- (function(_0x55feae,_0x4dd627){var _0x403e3c=a50_0x1612,_0x4b954a=_0x55feae();while(!![]){try{var _0x476e15=parseInt(_0x403e3c(0x1d9))/0x1+-parseInt(_0x403e3c(0x1e0))/0x2*(parseInt(_0x403e3c(0x1de))/0x3)+-parseInt(_0x403e3c(0x1db))/0x4*(parseInt(_0x403e3c(0x1e1))/0x5)+-parseInt(_0x403e3c(0x1e2))/0x6*(-parseInt(_0x403e3c(0x1dc))/0x7)+parseInt(_0x403e3c(0x1da))/0x8+parseInt(_0x403e3c(0x1df))/0x9*(parseInt(_0x403e3c(0x1e3))/0xa)+-parseInt(_0x403e3c(0x1dd))/0xb;if(_0x476e15===_0x4dd627)break;else _0x4b954a['push'](_0x4b954a['shift']());}catch(_0xab9337){_0x4b954a['push'](_0x4b954a['shift']());}}}(a50_0x420b,0x52065));export{runCommand}from'../framework/runner.js';export{parseFlags,validateFlags}from'../framework/flags.js';function a50_0x1612(_0x44556c,_0x5c05f4){_0x44556c=_0x44556c-0x1d9;var _0x420ba9=a50_0x420b();var _0x1612ed=_0x420ba9[_0x44556c];return _0x1612ed;}export{formatOutput}from'../framework/output.js';export{generateCommandHelp,generateServiceHelp,generateFullHelp}from'../framework/help.js';export{extractList,extractPaging}from'../framework/response.js';export{dryRun}from'../framework/dryrun.js';export{riskLevelOrder,isValidFormat}from'../framework/types.js';function a50_0x420b(){var _0x4da7f0=['3130PbrPSb','5472ZPXZvO','2991130FhZRFi','390061eDCTyH','1809072aFTuXQ','2456Bvofnc','980IoWUti','784322vIAakE','107721TGYnPF','9qHssqx','14CUMitg'];a50_0x420b=function(){return _0x4da7f0;};return a50_0x420b();}
1
+ (function(_0x2671d8,_0x1b6f1a){var _0x243b1c=a51_0x4e5c,_0x386e1b=_0x2671d8();while(!![]){try{var _0x30c587=parseInt(_0x243b1c(0xc0))/0x1+-parseInt(_0x243b1c(0xc2))/0x2*(-parseInt(_0x243b1c(0xc1))/0x3)+-parseInt(_0x243b1c(0xbd))/0x4+parseInt(_0x243b1c(0xb9))/0x5*(-parseInt(_0x243b1c(0xbf))/0x6)+-parseInt(_0x243b1c(0xbe))/0x7+-parseInt(_0x243b1c(0xbc))/0x8+parseInt(_0x243b1c(0xbb))/0x9*(parseInt(_0x243b1c(0xba))/0xa);if(_0x30c587===_0x1b6f1a)break;else _0x386e1b['push'](_0x386e1b['shift']());}catch(_0x57697e){_0x386e1b['push'](_0x386e1b['shift']());}}}(a51_0x366b,0x7657e));export{runCommand}from'../framework/runner.js';export{parseFlags,validateFlags}from'../framework/flags.js';export{formatOutput}from'../framework/output.js';function a51_0x4e5c(_0x2d8d47,_0x5bc99a){_0x2d8d47=_0x2d8d47-0xb9;var _0x366b43=a51_0x366b();var _0x4e5c10=_0x366b43[_0x2d8d47];return _0x4e5c10;}export{generateCommandHelp,generateServiceHelp,generateFullHelp}from'../framework/help.js';function a51_0x366b(){var _0x490ff9=['2539676gxatIy','1681428iCEWcx','1542xyogsW','324088tgXecf','140280jgAiGO','40SPjqdH','2045lchJXO','40hrYzHZ','600543OegIhO','489808MvgEeT'];a51_0x366b=function(){return _0x490ff9;};return a51_0x366b();}export{extractList,extractPaging}from'../framework/response.js';export{dryRun}from'../framework/dryrun.js';export{riskLevelOrder,isValidFormat}from'../framework/types.js';