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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (70) hide show
  1. package/lib/cli.js +1 -1
  2. package/lib/commands/app/cache.js +1 -1
  3. package/lib/commands/app/definitions.js +1 -1
  4. package/lib/commands/app/mock-loader.js +1 -1
  5. package/lib/commands/app/remote-source.js +1 -1
  6. package/lib/commands/app/shared.js +1 -1
  7. package/lib/commands/auth/index.js +1 -1
  8. package/lib/commands/auth/prompt.js +1 -1
  9. package/lib/commands/bff/detail.js +1 -1
  10. package/lib/commands/bff/exec.js +1 -1
  11. package/lib/commands/bff/index.js +1 -1
  12. package/lib/commands/common/config-policy.js +1 -1
  13. package/lib/commands/common/constraints.js +1 -1
  14. package/lib/commands/common/flags.js +1 -1
  15. package/lib/commands/config/definitions.js +1 -1
  16. package/lib/commands/config/shared.js +1 -1
  17. package/lib/commands/data/index.js +1 -1
  18. package/lib/commands/dataset/detail.js +1 -1
  19. package/lib/commands/dataset/index.js +1 -1
  20. package/lib/commands/dataset/list.js +1 -1
  21. package/lib/commands/doctor.js +1 -1
  22. package/lib/commands/init.js +1 -1
  23. package/lib/commands/kb/index.js +1 -0
  24. package/lib/commands/logs/index.js +1 -1
  25. package/lib/commands/registry.js +1 -1
  26. package/lib/commands/schema.js +1 -1
  27. package/lib/commands/skill/index.js +1 -1
  28. package/lib/commands/sql/detail.js +1 -1
  29. package/lib/commands/sql/exec.js +1 -1
  30. package/lib/commands/sql/index.js +1 -1
  31. package/lib/commands/update.js +1 -1
  32. package/lib/config/schema.js +1 -1
  33. package/lib/constant/auth-mode.js +1 -1
  34. package/lib/constant/cli.js +1 -1
  35. package/lib/constant/defaults.js +1 -1
  36. package/lib/constant/distribution.js +1 -1
  37. package/lib/constant/domain.js +1 -1
  38. package/lib/constant/env.js +1 -1
  39. package/lib/constant/output.js +1 -1
  40. package/lib/constant/product.js +1 -1
  41. package/lib/constant/risk.js +1 -1
  42. package/lib/constant/url.js +1 -1
  43. package/lib/context.js +1 -1
  44. package/lib/core/api-client.js +1 -1
  45. package/lib/core/db-resolver.js +1 -1
  46. package/lib/core/sdk-client.js +1 -1
  47. package/lib/errors.js +1 -1
  48. package/lib/framework/build-all-flags.js +1 -1
  49. package/lib/framework/dryrun.js +1 -1
  50. package/lib/framework/flags.js +1 -1
  51. package/lib/framework/help.js +1 -1
  52. package/lib/framework/index.js +1 -1
  53. package/lib/framework/output.js +1 -1
  54. package/lib/framework/preparse.js +1 -1
  55. package/lib/framework/response.js +1 -1
  56. package/lib/framework/runner-confirmation.js +1 -1
  57. package/lib/framework/runner-error.js +1 -1
  58. package/lib/framework/runner.js +1 -1
  59. package/lib/framework/schema-export.js +1 -1
  60. package/lib/framework/types.js +1 -1
  61. package/lib/help.js +1 -1
  62. package/lib/skills/npx-skills-add.js +1 -1
  63. package/lib/skills/runtime-skill-sync.js +1 -0
  64. package/lib/utils/apply-jq-filter.js +1 -1
  65. package/lib/utils/logger.js +1 -1
  66. package/lib/utils/params.js +1 -1
  67. package/lib/utils/platform.js +1 -1
  68. package/lib/utils/version.js +1 -1
  69. package/lib/utils/write-cli-side-channel.js +1 -1
  70. package/package.json +1 -1
@@ -1 +1 @@
1
- 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_0x2b58b0=a30_0x5619;(function(_0x56244f,_0x31f1cd){const _0x51209c=a30_0x5619,_0x5ad9b3=_0x56244f();while(!![]){try{const _0x47e7ce=-parseInt(_0x51209c(0xdc))/0x1+parseInt(_0x51209c(0xf4))/0x2*(parseInt(_0x51209c(0xdd))/0x3)+-parseInt(_0x51209c(0xc3))/0x4*(parseInt(_0x51209c(0xb6))/0x5)+parseInt(_0x51209c(0xe9))/0x6+-parseInt(_0x51209c(0xd6))/0x7*(-parseInt(_0x51209c(0xba))/0x8)+-parseInt(_0x51209c(0xc0))/0x9+parseInt(_0x51209c(0xb4))/0xa*(parseInt(_0x51209c(0xe4))/0xb);if(_0x47e7ce===_0x31f1cd)break;else _0x5ad9b3['push'](_0x5ad9b3['shift']());}catch(_0x38f067){_0x5ad9b3['push'](_0x5ad9b3['shift']());}}}(a30_0x2d85,0xa7642));import{spawnSync}from'node:child_process';function a30_0x2d85(){const _0x293051=['Use\x20full\x20semver\x20versions\x20such\x20as\x202.0.6\x20or\x202.0.7-beta.1.','\x20CLI\x20from\x20npm','Choose\x20exactly\x20one\x20target:\x20--latest,\x20--beta,\x20or\x20--version\x20<version>.','9831978HaKJfW','Checking\x20npm\x20dist-tags...','status','36172yUIxYe','Updated\x20to\x20v','Update\x20','Checking\x20official\x20skill\x20package...','json','bool','string','latest','skipped','boolean','version','stdout','/-/package/','map','\x20\x20Skipped\x20skill\x20install\x20(','\x20-g\x20-y','Invalid\x20version:\x20','timeout','major','2359Xdynfb','--latest,\x20--beta,\x20and\x20version\x20cannot\x20be\x20used\x20together.','Install\x20the\x20version\x20from\x20npm\x20beta\x20dist-tag','nonInteractive','message','fromEntries','936926buZiNA','48WNBOTw','toString','flag','args','validation','\x20->\x20','stderr','22AlQtgy','=1).','inherit','object','write','25884KNqORX','install','skills','\x20\x20Restart\x20your\x20terminal\x20to\x20use\x20the\x20new\x20version.','Install\x20the\x20version\x20from\x20npm\x20latest\x20dist-tag','filter','/dist-tags','trim','error','source','Already\x20up\x20to\x20date\x20(v','169714wMwhMi','\x20\x20Run\x20manually:\x20npm\x20install\x20-g\x20','unknown','\x20\x20Run\x20manually:\x20npx\x20skills\x20add\x20','exit\x20','update','no-skills','str','beta','\x20version\x20from\x20npm.','Current\x20version:\x20','\x20\x20Official\x20skill\x20package\x20is\x20up\x20to\x20date.','patch','Refresh\x20official\x20skill\x20package\x20after\x20updating','Unable\x20to\x20resolve\x20','minor','7637450ZsIydZ','cwd','125Nyjzra','Already\x20on\x20requested\x20version\x20(v','Skip\x20official\x20skill\x20package\x20refresh\x20after\x20updating','warn','1224aqlaQu','prerelease','log'];a30_0x2d85=function(){return _0x293051;};return a30_0x2d85();}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_0x2b58b0(0xca),'type':a30_0x2b58b0(0xcc),'description':a30_0x2b58b0(0xed),'default':![]},{'name':a30_0x2b58b0(0xac),'type':a30_0x2b58b0(0xcc),'description':a30_0x2b58b0(0xd8),'default':![]},{'name':a30_0x2b58b0(0xcd),'type':a30_0x2b58b0(0xc9),'description':'Install\x20a\x20specific\x20CLI\x20version'},{'name':a30_0x2b58b0(0xfa),'type':a30_0x2b58b0(0xcc),'description':a30_0x2b58b0(0xb8),'default':![]},{'name':a30_0x2b58b0(0xeb),'type':a30_0x2b58b0(0xcc),'description':a30_0x2b58b0(0xb1),'default':!![],'hidden':!![]}];function parseSemver(_0xc8d487){const _0x140522=_0xc8d487['trim']()['match'](/^(\d+)\.(\d+)\.(\d+)(?:-([0-9A-Za-z.-]+))?$/);if(!_0x140522)return null;return{'major':Number(_0x140522[0x1]),'minor':Number(_0x140522[0x2]),'patch':Number(_0x140522[0x3]),'prerelease':_0x140522[0x4]};}function compareSemver(_0x3ba0fb,_0x3ee4aa){const _0x414cb0=a30_0x2b58b0,_0x3f3f99=parseSemver(_0x3ba0fb),_0x3f3bd5=parseSemver(_0x3ee4aa);if(!_0x3f3f99||!_0x3f3bd5)throw CliErrors[_0x414cb0(0xe1)]('Version\x20comparison\x20failed.',_0x414cb0(0xbd));for(const _0x3bd580 of[_0x414cb0(0xd5),_0x414cb0(0xb3),_0x414cb0(0xb0)]){if(_0x3f3f99[_0x3bd580]<_0x3f3bd5[_0x3bd580])return-0x1;if(_0x3f3f99[_0x3bd580]>_0x3f3bd5[_0x3bd580])return 0x1;}if(!_0x3f3f99[_0x414cb0(0xbb)]&&!_0x3f3bd5[_0x414cb0(0xbb)])return 0x0;if(!_0x3f3f99['prerelease'])return 0x1;if(!_0x3f3bd5[_0x414cb0(0xbb)])return-0x1;if(_0x3f3f99[_0x414cb0(0xbb)]===_0x3f3bd5[_0x414cb0(0xbb)])return 0x0;return _0x3f3f99['prerelease']<_0x3f3bd5['prerelease']?-0x1:0x1;}function getRequestedVersion(_0x41a8b4){const _0x50cb5e=a30_0x2b58b0,_0x5d23ce=_0x41a8b4[_0x50cb5e(0xfb)]('version')[_0x50cb5e(0xf0)]();if(_0x5d23ce)return _0x5d23ce;return String(_0x41a8b4[_0x50cb5e(0xe0)]?.[0x0]??'')[_0x50cb5e(0xf0)]();}function shouldSkipOfficialSkill(_0x3bf9d4){const _0x4574d6=a30_0x2b58b0;return _0x3bf9d4[_0x4574d6(0xc8)](_0x4574d6(0xfa))||_0x3bf9d4[_0x4574d6(0xdf)](_0x4574d6(0xeb))===![];}async function validateUpdateFlags(_0x2647ba){const _0x217da2=a30_0x2b58b0,_0x25c2fd=getRequestedVersion(_0x2647ba),_0x35982f=[_0x2647ba['bool'](_0x217da2(0xca))?_0x217da2(0xca):'',_0x2647ba[_0x217da2(0xc8)](_0x217da2(0xac))?_0x217da2(0xac):'',_0x25c2fd?'version':''][_0x217da2(0xee)](Boolean);if(_0x35982f['length']>0x1)throw CliErrors['validation'](_0x217da2(0xd7),_0x217da2(0xbf));if(_0x25c2fd&&!parseSemver(_0x25c2fd))throw CliErrors[_0x217da2(0xe1)](_0x217da2(0xd3)+_0x25c2fd,'Use\x20a\x20full\x20semver\x20such\x20as\x202.0.6\x20or\x202.0.7-beta.1.');}async function fetchNpmDistTags(){const _0x10c6a3=a30_0x2b58b0;try{const _0x2aa464=NPM_REGISTRY_BASE_URL+_0x10c6a3(0xcf)+encodeURIComponent(LOVRABET_NPM_PACKAGE_NAME)+_0x10c6a3(0xef),_0xd1b068=await fetch(_0x2aa464,{'signal':AbortSignal[_0x10c6a3(0xd4)](0x2710)});if(!_0xd1b068['ok'])return null;const _0x3b1aa4=await _0xd1b068[_0x10c6a3(0xc7)]();if(!_0x3b1aa4||typeof _0x3b1aa4!==_0x10c6a3(0xe7))return null;return Object[_0x10c6a3(0xdb)](Object['entries'](_0x3b1aa4)[_0x10c6a3(0xee)](([,_0x28d475])=>typeof _0x28d475==='string'&&_0x28d475[_0x10c6a3(0xf0)]())[_0x10c6a3(0xd0)](([_0x5e1d51,_0x517fd4])=>[_0x5e1d51,String(_0x517fd4)[_0x10c6a3(0xf0)]()]));}catch{return null;}}async function resolveTargetVersion(_0x243302){const _0x5c8914=a30_0x2b58b0,_0x458568=getRequestedVersion(_0x243302);if(_0x458568)return{'version':_0x458568,'source':_0x5c8914(0xcd)};const _0x44b1c1=_0x243302[_0x5c8914(0xc8)](_0x5c8914(0xac))?'beta':_0x5c8914(0xca),_0x4a1dec=await fetchNpmDistTags(),_0x123e48=_0x4a1dec?.[_0x44b1c1];if(!_0x123e48)return null;return{'version':_0x123e48,'source':_0x44b1c1};}function a30_0x5619(_0x55c3c8,_0x549312){_0x55c3c8=_0x55c3c8-0xac;const _0x2d85db=a30_0x2d85();let _0x5619fe=_0x2d85db[_0x55c3c8];return _0x5619fe;}function shouldInstallTarget(_0x4f7e78,_0x59b5f0){const _0xf47a99=a30_0x2b58b0,_0x3782f8=compareSemver(_0x4f7e78,_0x59b5f0[_0xf47a99(0xcd)]);if(_0x59b5f0[_0xf47a99(0xf2)]==='version')return _0x3782f8!==0x0;return _0x3782f8<0x0;}function installCliPackage(_0x4c1b8d,_0x2b5060){const _0x10f5b0=a30_0x2b58b0,_0x439ec4=resolveNpmBin('npm'),_0x161135=[_0x10f5b0(0xea),'-g',LOVRABET_NPM_PACKAGE_NAME+'@'+_0x4c1b8d];console['log']('*\x20'+[_0x439ec4,..._0x161135]['join']('\x20'));const _0x3b7714=spawnSync(_0x439ec4,_0x161135,{'cwd':process[_0x10f5b0(0xb5)](),'stdio':_0x2b5060?'pipe':_0x10f5b0(0xe6),'env':process.env,'shell':![]});if(_0x3b7714[_0x10f5b0(0xc2)]===0x0)return{'ok':!![]};let _0x8e01b1=_0x3b7714[_0x10f5b0(0xf1)]?.[_0x10f5b0(0xda)]||_0x10f5b0(0xf8)+(_0x3b7714[_0x10f5b0(0xc2)]??'unknown');if(_0x2b5060){const _0x3fcb6a=_0x3b7714[_0x10f5b0(0xe3)]?_0x3b7714[_0x10f5b0(0xe3)][_0x10f5b0(0xde)]()[_0x10f5b0(0xf0)]():'',_0x1910f0=_0x3b7714[_0x10f5b0(0xce)]?_0x3b7714['stdout']['toString']()['trim']():'';if(_0x3fcb6a)_0x8e01b1=_0x3fcb6a;else{if(_0x1910f0)_0x8e01b1=_0x1910f0;}}return{'ok':![],'error':_0x8e01b1};}async function installOfficialSkill(_0x4441a5){const _0x1fe3a4=a30_0x2b58b0;console['log'](_0x1fe3a4(0xc6));const _0x10d510=runNpxSkillsAddGlobal(process[_0x1fe3a4(0xb5)](),LOVRABET_SKILL_SOURCE,{'stdio':_0x4441a5?'pipe':'inherit'});if(_0x10d510[_0x1fe3a4(0xcb)]){console[_0x1fe3a4(0xbc)](_0x1fe3a4(0xd1)+LOVRABET_SKIP_NPX_SKILLS_ENV+_0x1fe3a4(0xe5));return;}if(_0x10d510['ok']){console[_0x1fe3a4(0xbc)](_0x1fe3a4(0xaf));return;}console['warn']('\x20\x20Official\x20skill\x20update\x20failed:\x20'+(_0x10d510[_0x1fe3a4(0xf1)]||_0x1fe3a4(0xf6))),console[_0x1fe3a4(0xbc)](_0x1fe3a4(0xf7)+LOVRABET_SKILL_SOURCE+_0x1fe3a4(0xd2));}async function execute(_0x2ccdf5){const _0x25fbd1=a30_0x2b58b0;await validateUpdateFlags(_0x2ccdf5);const _0x5e5d84=getCliVersion();console[_0x25fbd1(0xbc)](_0x25fbd1(0xae)+_0x5e5d84),console['log'](_0x25fbd1(0xc1));const _0x3f9535=await resolveTargetVersion(_0x2ccdf5);if(!_0x3f9535){const _0x8658f5=_0x2ccdf5[_0x25fbd1(0xc8)](_0x25fbd1(0xac))?_0x25fbd1(0xac):'latest',_0x15d15b=_0x25fbd1(0xb2)+_0x8658f5+_0x25fbd1(0xad);return console[_0x25fbd1(0xb9)](_0x15d15b),console[_0x25fbd1(0xbc)](_0x25fbd1(0xf5)+LOVRABET_NPM_PACKAGE_NAME+'@'+_0x8658f5),{'ok':![]};}if(!shouldInstallTarget(_0x5e5d84,_0x3f9535)){const _0x215ebe=_0x3f9535['source']===_0x25fbd1(0xcd)?_0x25fbd1(0xb7)+_0x3f9535[_0x25fbd1(0xcd)]+').':_0x25fbd1(0xf3)+_0x3f9535[_0x25fbd1(0xcd)]+').';return console[_0x25fbd1(0xbc)](_0x215ebe),shouldSkipOfficialSkill(_0x2ccdf5)?console[_0x25fbd1(0xbc)]('Skipping\x20official\x20skill\x20package\x20(--no-skills).'):await installOfficialSkill(_0x2ccdf5['nonInteractive']),{'ok':!![]};}console[_0x25fbd1(0xbc)]('Updating\x20'+LOVRABET_NPM_PACKAGE_NAME+':\x20'+_0x5e5d84+_0x25fbd1(0xe2)+_0x3f9535[_0x25fbd1(0xcd)]);const _0x4b02af=installCliPackage(_0x3f9535['version'],_0x2ccdf5[_0x25fbd1(0xd9)]);if(!_0x4b02af['ok']){const _0x54ece5='Update\x20failed:\x20'+(_0x4b02af[_0x25fbd1(0xf1)]||_0x25fbd1(0xf6));return console['error'](_0x54ece5),console[_0x25fbd1(0xbc)]('\x20\x20Try\x20manually:\x20npm\x20install\x20-g\x20'+LOVRABET_NPM_PACKAGE_NAME+'@'+_0x3f9535[_0x25fbd1(0xcd)]),{'ok':![]};}return console[_0x25fbd1(0xbc)](_0x25fbd1(0xc4)+_0x3f9535[_0x25fbd1(0xcd)]+'.'),console[_0x25fbd1(0xbc)](_0x25fbd1(0xec)),shouldSkipOfficialSkill(_0x2ccdf5)?console[_0x25fbd1(0xbc)]('Skipping\x20official\x20skill\x20package\x20(--no-skills).'):await installOfficialSkill(_0x2ccdf5['nonInteractive']),{'ok':!![]};}export const updateDefinition={'service':a30_0x2b58b0(0xf9),'command':'run','description':a30_0x2b58b0(0xc5)+CLI_BIN_NAME+a30_0x2b58b0(0xbe),'risk':a30_0x2b58b0(0xe8),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':updateFlags,'validate':validateUpdateFlags,'execute':execute};
@@ -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_0x57cd84=a31_0x3072;(function(_0xd8c383,_0x193ff4){const _0x3cb75f=a31_0x3072,_0x4b1442=_0xd8c383();while(!![]){try{const _0x66b3c8=-parseInt(_0x3cb75f(0x6c))/0x1+parseInt(_0x3cb75f(0x78))/0x2*(parseInt(_0x3cb75f(0x86))/0x3)+parseInt(_0x3cb75f(0x8c))/0x4+parseInt(_0x3cb75f(0x89))/0x5*(parseInt(_0x3cb75f(0x72))/0x6)+parseInt(_0x3cb75f(0x70))/0x7+parseInt(_0x3cb75f(0x7f))/0x8*(-parseInt(_0x3cb75f(0x73))/0x9)+-parseInt(_0x3cb75f(0x82))/0xa*(parseInt(_0x3cb75f(0x81))/0xb);if(_0x66b3c8===_0x193ff4)break;else _0x4b1442['push'](_0x4b1442['shift']());}catch(_0x191a9b){_0x4b1442['push'](_0x4b1442['shift']());}}}(a31_0x1f2d,0xad365));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{RUNTIME_ENV_VALUES}from'../constant/env.js';import{OUTPUT_FORMAT_VALUES}from'../constant/output.js';export const CONFIG_FIELD_SCHEMAS={'env':{'description':a31_0x57cd84(0x7e),'topLevel':!![],'cliSettableTopLevel':!![],'enumValues':RUNTIME_ENV_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES[a31_0x57cd84(0x7c)],'importable':!![]},'format':{'description':'Default\x20output\x20format','topLevel':!![],'cliSettableTopLevel':!![],'enumValues':OUTPUT_FORMAT_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES[a31_0x57cd84(0x7b)],'importable':!![]},'pageSize':{'description':'Default\x20page\x20size','topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'apiDomain':{'description':a31_0x57cd84(0x74),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'userDomain':{'description':a31_0x57cd84(0x6e),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'runtimeDomain':{'description':a31_0x57cd84(0x71),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'accessKey':{'description':a31_0x57cd84(0x76),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'riskLevel':{'description':a31_0x57cd84(0x87),'topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES[a31_0x57cd84(0x77)],'importable':!![]},'locale':{'description':a31_0x57cd84(0x85),'topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES[a31_0x57cd84(0x88)],'importable':!![],'legacyCompatOnly':!![]}};export const TOP_LEVEL_CONFIG_KEYS=new Set(Object['entries'](CONFIG_FIELD_SCHEMAS)[a31_0x57cd84(0x6f)](([,_0x12504f])=>_0x12504f[a31_0x57cd84(0x7a)])[a31_0x57cd84(0x79)](([_0x22fef5])=>_0x22fef5));export const CONFIG_ENUM_VALUES=Object[a31_0x57cd84(0x7d)](Object[a31_0x57cd84(0x8b)](CONFIG_FIELD_SCHEMAS)[a31_0x57cd84(0x6f)](([,_0x2798b8])=>_0x2798b8[a31_0x57cd84(0x80)])[a31_0x57cd84(0x79)](([_0x40d50f,_0x25f5da])=>[_0x40d50f,[..._0x25f5da[a31_0x57cd84(0x80)]||[]]]));function a31_0x3072(_0x348487,_0x4a6428){_0x348487=_0x348487-0x6b;const _0x1f2dcc=a31_0x1f2d();let _0x30724b=_0x1f2dcc[_0x348487];return _0x30724b;}export const IMPORTABLE_RUNTIME_CONFIG_KEYS=Object[a31_0x57cd84(0x8b)](CONFIG_FIELD_SCHEMAS)[a31_0x57cd84(0x6f)](([,_0x35df6e])=>_0x35df6e[a31_0x57cd84(0x6b)])['map'](([_0x5f30e4])=>_0x5f30e4);export function getConfigFieldSchema(_0x37e982){return CONFIG_FIELD_SCHEMAS[_0x37e982];}export function getConfigEnumValues(_0x175be2){const _0x24ba91=a31_0x57cd84;return getConfigFieldSchema(_0x175be2)?.[_0x24ba91(0x80)];}export function getConfigDefaultValue(_0x38047e){const _0x421250=a31_0x57cd84;return getConfigFieldSchema(_0x38047e)?.[_0x421250(0x6d)];}export function isTopLevelConfigKey(_0x4d8926){return TOP_LEVEL_CONFIG_KEYS['has'](_0x4d8926);}function a31_0x1f2d(){const _0x34e60c=['449479mTSXDq','defaultValue','Override\x20user\x20domain','filter','58926yOMUes','Override\x20runtime\x20domain','6hASOlY','1544967WUZULR','Override\x20API\x20domain','join','Access\x20key\x20(client-ak\x20auth)','riskLevel','12OSrBzR','map','cliSettableTopLevel','format','env','fromEntries','Target\x20environment','8RcHogO','enumValues','11121lRnrpV','7790nRBjWa','Config\x20key.\x20Top-level:\x20',';\x20local\x20alias:\x20apps.<alias>.appcode','Locale','556815iQNBBJ','Risk\x20level','locale','1523480psRAqN','legacyCompatOnly','entries','2765776zqvcqU','importable'];a31_0x1f2d=function(){return _0x34e60c;};return a31_0x1f2d();}export function isLegacyCompatConfigKey(_0xf61e65){const _0x7547ee=a31_0x57cd84;return getConfigFieldSchema(_0xf61e65)?.[_0x7547ee(0x8a)]===!![];}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function formatConfigKeyList(_0x3001ed){const _0x2c1055=a31_0x57cd84;return[..._0x3001ed][_0x2c1055(0x75)](',\x20');}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){const _0xffede1=a31_0x57cd84;return _0xffede1(0x83)+getTopLevelConfigKeySummary()+_0xffede1(0x84);}export function buildAppProfileListFields(_0x418da1){return{'env':_0x418da1,'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_0x5bc974=a32_0x4c55;function a32_0x4534(){const _0xa5eff9=['client-ak','1872960OTQxsx','9wWATON','44152xSXhcS','873960pzSfCd','168782ezrxkV','1807162nyHGOM','ClientAk','733735iqzoYc','326197FaEOLw'];a32_0x4534=function(){return _0xa5eff9;};return a32_0x4534();}(function(_0x5a6308,_0x382f9e){const _0x8e23f=a32_0x4c55,_0x30152a=_0x5a6308();while(!![]){try{const _0x185778=-parseInt(_0x8e23f(0x1b4))/0x1+-parseInt(_0x8e23f(0x1b0))/0x2+parseInt(_0x8e23f(0x1b7))/0x3*(-parseInt(_0x8e23f(0x1ae))/0x4)+parseInt(_0x8e23f(0x1b3))/0x5+parseInt(_0x8e23f(0x1b6))/0x6+parseInt(_0x8e23f(0x1b1))/0x7+-parseInt(_0x8e23f(0x1af))/0x8;if(_0x185778===_0x382f9e)break;else _0x30152a['push'](_0x30152a['shift']());}catch(_0x44e069){_0x30152a['push'](_0x30152a['shift']());}}}(a32_0x4534,0x2811e));function a32_0x4c55(_0x3fcbbf,_0x49a506){_0x3fcbbf=_0x3fcbbf-0x1ae;const _0x4534d5=a32_0x4534();let _0x4c556a=_0x4534d5[_0x3fcbbf];return _0x4c556a;}export const AUTH_MODE={'ClientAk':a32_0x5bc974(0x1b5)};export function isAuthMode(_0x39f645){const _0x54cb89=a32_0x5bc974;return _0x39f645===AUTH_MODE[_0x54cb89(0x1b2)];}
@@ -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_0x12f2bb=a33_0x572b;(function(_0x4387b7,_0x2b8039){const _0x1cdf17=a33_0x572b,_0x2a9be1=_0x4387b7();while(!![]){try{const _0x5328ee=parseInt(_0x1cdf17(0xb0))/0x1*(-parseInt(_0x1cdf17(0xa9))/0x2)+-parseInt(_0x1cdf17(0xc0))/0x3+parseInt(_0x1cdf17(0xbf))/0x4*(parseInt(_0x1cdf17(0xaf))/0x5)+-parseInt(_0x1cdf17(0xcf))/0x6*(-parseInt(_0x1cdf17(0xb5))/0x7)+-parseInt(_0x1cdf17(0xc3))/0x8+-parseInt(_0x1cdf17(0xcd))/0x9+parseInt(_0x1cdf17(0xd8))/0xa;if(_0x5328ee===_0x2b8039)break;else _0x2a9be1['push'](_0x2a9be1['shift']());}catch(_0x446bc0){_0x2a9be1['push'](_0x2a9be1['shift']());}}}(a33_0x51ec,0x29706));import{PRODUCT_CONFIG}from'../constant/product.js';function a33_0x572b(_0x314553,_0x350baa){_0x314553=_0x314553-0xa9;const _0x51ec3a=a33_0x51ec();let _0x572b3d=_0x51ec3a[_0x314553];return _0x572b3d;}import{LOVRABET_NPM_PACKAGE_NAME}from'../constant/distribution.js';export const CLI_BIN_NAME=PRODUCT_CONFIG['cliBinName'];export const CLI_DISPLAY_NAME=PRODUCT_CONFIG[a33_0x12f2bb(0xda)];export const NPM_PACKAGE_NAME=LOVRABET_NPM_PACKAGE_NAME;export const GLOBAL_FLAGS=[{'name':a33_0x12f2bb(0xd2),'meowKey':a33_0x12f2bb(0xd2),'type':'string','description':'Override\x20appcode','hint':a33_0x12f2bb(0xc7)},{'name':a33_0x12f2bb(0xcc),'meowKey':a33_0x12f2bb(0xcc),'type':a33_0x12f2bb(0xd9),'description':a33_0x12f2bb(0xac),'hint':a33_0x12f2bb(0xab)},{'name':a33_0x12f2bb(0xb3),'meowKey':a33_0x12f2bb(0xb3),'type':'string','description':a33_0x12f2bb(0xba),'hint':a33_0x12f2bb(0xb9)},{'name':a33_0x12f2bb(0xc9),'meowKey':a33_0x12f2bb(0xc9),'type':a33_0x12f2bb(0xd9),'description':a33_0x12f2bb(0xae),'hint':a33_0x12f2bb(0xaa)},{'name':'jq','meowKey':'jq','type':'string','description':a33_0x12f2bb(0xca),'hint':a33_0x12f2bb(0xbc)},{'name':a33_0x12f2bb(0xc6),'meowKey':a33_0x12f2bb(0xb8),'type':a33_0x12f2bb(0xd7),'description':a33_0x12f2bb(0xad)},{'name':a33_0x12f2bb(0xc1),'meowKey':a33_0x12f2bb(0xc1),'type':a33_0x12f2bb(0xd7),'description':a33_0x12f2bb(0xb4)},{'name':a33_0x12f2bb(0xc8),'meowKey':a33_0x12f2bb(0xd4),'type':a33_0x12f2bb(0xd7),'description':a33_0x12f2bb(0xd5)},{'name':a33_0x12f2bb(0xb2),'meowKey':a33_0x12f2bb(0xb2),'type':a33_0x12f2bb(0xd7),'description':a33_0x12f2bb(0xd6)},{'name':'ci','meowKey':'ci','type':'boolean','description':'Alias\x20for\x20--non-interactive','hidden':!![]},{'name':a33_0x12f2bb(0xd0),'meowKey':a33_0x12f2bb(0xd0),'type':a33_0x12f2bb(0xd7),'description':a33_0x12f2bb(0xd1)},{'name':'id','meowKey':'id','type':a33_0x12f2bb(0xd9),'description':a33_0x12f2bb(0xcb),'hidden':!![]},{'name':a33_0x12f2bb(0xbe),'meowKey':'name','type':a33_0x12f2bb(0xd9),'description':'Name\x20filter','hidden':!![]},{'name':'sqlcode','meowKey':a33_0x12f2bb(0xbb),'type':a33_0x12f2bb(0xd9),'description':a33_0x12f2bb(0xb7),'hidden':!![]},{'name':a33_0x12f2bb(0xbd),'meowKey':'params','type':a33_0x12f2bb(0xd9),'description':a33_0x12f2bb(0xd3),'hidden':!![]},{'name':'verbose','meowKey':'verbose','type':a33_0x12f2bb(0xd7),'description':a33_0x12f2bb(0xb6),'hidden':!![]},{'name':a33_0x12f2bb(0xc5),'meowKey':a33_0x12f2bb(0xc5),'type':a33_0x12f2bb(0xd7),'description':a33_0x12f2bb(0xc4),'hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set([a33_0x12f2bb(0xd2),a33_0x12f2bb(0xcc),a33_0x12f2bb(0xb3),a33_0x12f2bb(0xc9),'jq',a33_0x12f2bb(0xc6),a33_0x12f2bb(0xc1),a33_0x12f2bb(0xc8),'ci']);function a33_0x51ec(){const _0x52fe85=['yes','type','1919176eWEMOG','Clear\x20output','clear','dry-run','<code>','non-interactive','format','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20implies\x20--format\x20json\x20when\x20current\x20format\x20is\x20pretty)','Record\x20ID','app','927990NrKlks','fromEntries','3246DFbJnB','help','Show\x20help','appcode','JSON\x20params\x20for\x20execute\x20commands','nonInteractive','Force\x20non-interactive\x20mode\x20(CI)','Use\x20global\x20config\x20scope','boolean','5580620RfXxqh','string','cliDisplayName','980IjAnzx','json\x20|\x20pretty\x20|\x20compress','<name>','Select\x20app\x20profile\x20by\x20name','Preview\x20operation\x20without\x20executing','Output\x20format','96320llYRbp','477ZFvpXG','map','global','env','Skip\x20confirmation\x20for\x20high-risk\x20writes','3605xlSdDg','Verbose\x20output','SQL\x20query\x20code','dryRun','production\x20|\x20development\x20|\x20daily','Environment','sqlcode','<expr>','params','name','44HWiAhS','906330PPmjcZ'];a33_0x51ec=function(){return _0x52fe85;};return a33_0x51ec();}export function buildMeowFlags(){const _0x40c985=a33_0x12f2bb;return Object[_0x40c985(0xce)](GLOBAL_FLAGS[_0x40c985(0xb1)](_0x2aa607=>[_0x2aa607['meowKey'],{'type':_0x2aa607[_0x40c985(0xc2)]}]));}
@@ -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_0x1a6c(){const _0x24cdb2=['431436RMZmqO','1593098dkZlsN','11898XsTkIr','21490IAQRey','1554YxPMtz','main','en-US','246278beSlLg','15NTOipq','3663858iGdxjT','17724mRlbTU','production','6635352rtVWDB'];a34_0x1a6c=function(){return _0x24cdb2;};return a34_0x1a6c();}const a34_0x53b35d=a34_0x596b;(function(_0x5e1011,_0x1ff5d8){const _0x2bc330=a34_0x596b,_0x3c25fa=_0x5e1011();while(!![]){try{const _0x175d7e=parseInt(_0x2bc330(0x136))/0x1+-parseInt(_0x2bc330(0x13d))/0x2+-parseInt(_0x2bc330(0x138))/0x3+parseInt(_0x2bc330(0x13c))/0x4*(-parseInt(_0x2bc330(0x137))/0x5)+-parseInt(_0x2bc330(0x133))/0x6*(parseInt(_0x2bc330(0x139))/0x7)+parseInt(_0x2bc330(0x13b))/0x8+-parseInt(_0x2bc330(0x13e))/0x9*(-parseInt(_0x2bc330(0x132))/0xa);if(_0x175d7e===_0x1ff5d8)break;else _0x3c25fa['push'](_0x3c25fa['shift']());}catch(_0x4bc04a){_0x3c25fa['push'](_0x3c25fa['shift']());}}}(a34_0x1a6c,0xe07b3));function a34_0x596b(_0x154648,_0x1a7d7d){_0x154648=_0x154648-0x132;const _0x1a6c71=a34_0x1a6c();let _0x596bca=_0x1a6c71[_0x154648];return _0x596bca;}export const DEFAULT_APP_PROFILE_NAME=a34_0x53b35d(0x134);export const DEFAULT_CONFIG_VALUES={'env':a34_0x53b35d(0x13a),'format':'compress','locale':a34_0x53b35d(0x135),'riskLevel':'write'};export const DEFAULT_COMMAND_OUTPUT_FORMAT='compress';
@@ -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
+ function a35_0x3d24(_0x422d4e,_0x427be1){_0x422d4e=_0x422d4e-0x1e2;const _0x313a25=a35_0x313a();let _0x3d2404=_0x313a25[_0x422d4e];return _0x3d2404;}const a35_0x10eaf8=a35_0x3d24;(function(_0x480348,_0x51f845){const _0x4627e3=a35_0x3d24,_0x17e6d4=_0x480348();while(!![]){try{const _0x55b492=parseInt(_0x4627e3(0x1ea))/0x1*(-parseInt(_0x4627e3(0x1e8))/0x2)+-parseInt(_0x4627e3(0x1e3))/0x3*(parseInt(_0x4627e3(0x1ec))/0x4)+parseInt(_0x4627e3(0x1e5))/0x5*(-parseInt(_0x4627e3(0x1ee))/0x6)+parseInt(_0x4627e3(0x1e7))/0x7+parseInt(_0x4627e3(0x1eb))/0x8+parseInt(_0x4627e3(0x1e9))/0x9+parseInt(_0x4627e3(0x1ed))/0xa;if(_0x55b492===_0x51f845)break;else _0x17e6d4['push'](_0x17e6d4['shift']());}catch(_0x1aa3f9){_0x17e6d4['push'](_0x17e6d4['shift']());}}}(a35_0x313a,0x1dc84));import{PRODUCT_CONFIG}from'../constant/product.js';export const LOVRABET_NPM_PACKAGE_NAME=PRODUCT_CONFIG[a35_0x10eaf8(0x1e2)];export const LOVRABET_SKILL_SOURCE=PRODUCT_CONFIG[a35_0x10eaf8(0x1e6)];function a35_0x313a(){const _0x433e4d=['npmPackageName','5616TzvfOa','npmRegistryBaseUrl','5Brkxdd','skillSource','1476741TaSZoE','143454fQzfRE','639999ALYuMu','3BgZVag','1317088vFYLWe','332bvcbYN','986210aRKljV','316716bFSymb'];a35_0x313a=function(){return _0x433e4d;};return a35_0x313a();}export const NPM_REGISTRY_BASE_URL=PRODUCT_CONFIG[a35_0x10eaf8(0x1e4)];
@@ -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
+ function a36_0x2067(){const _0x4f5f01=['24taWZZR','api','5EzHdhC','20WnQzIf','production','user','runtime','4340800HrqzUR','1641820cCdXBT','7hCKRMR','domains','580631GEUQxc','4226643WJuxFp','nonProduction','2287770byEWMc','243498aaqCAQ','14968822derJQg'];a36_0x2067=function(){return _0x4f5f01;};return a36_0x2067();}const a36_0x3b7b27=a36_0x225b;(function(_0x478962,_0xa3ecbf){const _0x360662=a36_0x225b,_0x45fd24=_0x478962();while(!![]){try{const _0x577488=parseInt(_0x360662(0x13d))/0x1+-parseInt(_0x360662(0x13a))/0x2+parseInt(_0x360662(0x141))/0x3*(-parseInt(_0x360662(0x143))/0x4)+-parseInt(_0x360662(0x134))/0x5*(-parseInt(_0x360662(0x140))/0x6)+parseInt(_0x360662(0x13b))/0x7*(parseInt(_0x360662(0x139))/0x8)+-parseInt(_0x360662(0x13e))/0x9*(parseInt(_0x360662(0x135))/0xa)+parseInt(_0x360662(0x142))/0xb;if(_0x577488===_0xa3ecbf)break;else _0x45fd24['push'](_0x45fd24['shift']());}catch(_0xb926db){_0x45fd24['push'](_0x45fd24['shift']());}}}(a36_0x2067,0x96eb8));import{getEnv,isProduction}from'../constant/env.js';import{PRODUCT_CONFIG}from'../constant/product.js';let customApiDomain,customUserDomain,customRuntimeDomain;export function initDomains(_0x29aa0b){customApiDomain=_0x29aa0b?.['apiDomain'],customUserDomain=_0x29aa0b?.['userDomain'],customRuntimeDomain=_0x29aa0b?.['runtimeDomain'];}export const getUserDomain=()=>customUserDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a36_0x3b7b27(0x13c)][a36_0x3b7b27(0x136)][a36_0x3b7b27(0x137)]:PRODUCT_CONFIG[a36_0x3b7b27(0x13c)]['nonProduction'][a36_0x3b7b27(0x137)]);function a36_0x225b(_0x5606c6,_0x14cd94){_0x5606c6=_0x5606c6-0x134;const _0x206779=a36_0x2067();let _0x225be8=_0x206779[_0x5606c6];return _0x225be8;}export const getApiDomain=()=>customApiDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a36_0x3b7b27(0x13c)][a36_0x3b7b27(0x136)][a36_0x3b7b27(0x144)]:PRODUCT_CONFIG[a36_0x3b7b27(0x13c)][a36_0x3b7b27(0x13f)][a36_0x3b7b27(0x144)]);export const getRuntimeDomain=()=>customRuntimeDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a36_0x3b7b27(0x13c)]['production'][a36_0x3b7b27(0x138)]:PRODUCT_CONFIG[a36_0x3b7b27(0x13c)][a36_0x3b7b27(0x13f)]['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_0x572999=a37_0xafbe;(function(_0x212ff8,_0x2d03e7){const _0x1f4020=a37_0xafbe,_0x302e6f=_0x212ff8();while(!![]){try{const _0x5afe25=-parseInt(_0x1f4020(0xf1))/0x1+-parseInt(_0x1f4020(0xf0))/0x2+-parseInt(_0x1f4020(0xed))/0x3*(parseInt(_0x1f4020(0xf3))/0x4)+parseInt(_0x1f4020(0xeb))/0x5+parseInt(_0x1f4020(0xea))/0x6+parseInt(_0x1f4020(0xec))/0x7+parseInt(_0x1f4020(0xf2))/0x8;if(_0x5afe25===_0x2d03e7)break;else _0x302e6f['push'](_0x302e6f['shift']());}catch(_0xc1ccfe){_0x302e6f['push'](_0x302e6f['shift']());}}}(a37_0x3b5e,0xbc728));function a37_0xafbe(_0x398873,_0x54888b){_0x398873=_0x398873-0xe9;const _0x3b5e93=a37_0x3b5e();let _0xafbef4=_0x3b5e93[_0x398873];return _0xafbef4;}import{productEnv}from'../constant/product.js';export const RUNTIME_ENV_VALUES=[a37_0x572999(0xef),a37_0x572999(0xee),a37_0x572999(0xe9)];export function normalizeEnv(_0x37be23){const _0x42d1c9=a37_0x572999;return _0x37be23===_0x42d1c9(0xf5)?'production':_0x37be23;}function a37_0x3b5e(){const _0x21ad0c=['4OKqYOk','dev','online','ENV','daily','7379040PfFjam','6409700hKITWY','1231146RzWfEY','67116zxFSYv','development','production','2518728xEPHxf','1424797OofYww','6326040cKoQvy'];a37_0x3b5e=function(){return _0x21ad0c;};return a37_0x3b5e();}export function isProduction(_0x1d02b5){const _0x3df5e0=a37_0x572999;return normalizeEnv(_0x1d02b5)===_0x3df5e0(0xef);}export function isDaily(_0x43d259){return normalizeEnv(_0x43d259)==='daily';}export function isDev(_0x161db2){const _0x3aa23d=a37_0x572999,_0x5abb91=normalizeEnv(_0x161db2);return _0x5abb91===_0x3aa23d(0xee)||_0x5abb91===_0x3aa23d(0xf4);}let env=normalizeEnv(productEnv(a37_0x572999(0xf6))||a37_0x572999(0xef));export function getEnv(){return env;}export function initEnv(_0x2ddf4a){env=normalizeEnv(_0x2ddf4a);}
@@ -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_0x987421=a38_0xf8bf;(function(_0x178f93,_0x140002){const _0x55f63c=a38_0xf8bf,_0x4f3a67=_0x178f93();while(!![]){try{const _0x157456=-parseInt(_0x55f63c(0x70))/0x1+parseInt(_0x55f63c(0x74))/0x2+-parseInt(_0x55f63c(0x69))/0x3+-parseInt(_0x55f63c(0x6f))/0x4*(-parseInt(_0x55f63c(0x6a))/0x5)+parseInt(_0x55f63c(0x6e))/0x6+-parseInt(_0x55f63c(0x6d))/0x7+parseInt(_0x55f63c(0x71))/0x8*(-parseInt(_0x55f63c(0x6b))/0x9);if(_0x157456===_0x140002)break;else _0x4f3a67['push'](_0x4f3a67['shift']());}catch(_0x1bbb1e){_0x4f3a67['push'](_0x4f3a67['shift']());}}}(a38_0x3a37,0x381e0));function a38_0xf8bf(_0x2349d3,_0x5ad99a){_0x2349d3=_0x2349d3-0x69;const _0x3a3763=a38_0x3a37();let _0xf8bff6=_0x3a3763[_0x2349d3];return _0xf8bff6;}function a38_0x3a37(){const _0x1ac53f=['83292cKuKoT','20465QTpalA','16gMFoBf','pretty','json','821714oeAWeU','394089lkcIoJ','105qwMwAm','2394666vjoNTa','compress','2254091AMGREU','2326230snJMMP'];a38_0x3a37=function(){return _0x1ac53f;};return a38_0x3a37();}export const OUTPUT_FORMAT_VALUES=[a38_0x987421(0x73),a38_0x987421(0x72),a38_0x987421(0x6c)];
@@ -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_0x29ce(){const _0x5a3013=['145jtLYQy','6897380nowFpg','/user/ak','8792sAOWXc','@lovrabet/lovrabet-cli','https://daily-runtime.lovrabet.com','403773LuPxVZ','287577eKiuMz','lovrabet/lovrabet-cli','https://user-daily.lovrabet.com','1573817NyfEOt','cli:lovrabet-runtime','https://api.lovrabet.com','LOVRABET','envPrefix','.lovrabet.json','https://runtime.lovrabet.com','map','https://user.lovrabet.com','Lovrabet\x20User\x20Center','8YmoSKX','Lovrabet\x20Runtime\x20CLI','1040445wJSZUU','1677666ruTEhg','4edXNoV','legacyEnvPrefixes','https://daily-api.lovrabet.com','RABETBASE','11HuoXhs'];a39_0x29ce=function(){return _0x5a3013;};return a39_0x29ce();}const a39_0x376caa=a39_0x3400;(function(_0x5d7201,_0x255df3){const _0x13c069=a39_0x3400,_0x2bf927=_0x5d7201();while(!![]){try{const _0x16c1fe=parseInt(_0x13c069(0x1b4))/0x1+-parseInt(_0x13c069(0x1c5))/0x2*(parseInt(_0x13c069(0x1b3))/0x3)+-parseInt(_0x13c069(0x1b0))/0x4*(-parseInt(_0x13c069(0x1ad))/0x5)+-parseInt(_0x13c069(0x1c4))/0x6+parseInt(_0x13c069(0x1b7))/0x7*(-parseInt(_0x13c069(0x1c1))/0x8)+-parseInt(_0x13c069(0x1c3))/0x9+-parseInt(_0x13c069(0x1ae))/0xa*(-parseInt(_0x13c069(0x1ac))/0xb);if(_0x16c1fe===_0x255df3)break;else _0x2bf927['push'](_0x2bf927['shift']());}catch(_0x3feda8){_0x2bf927['push'](_0x2bf927['shift']());}}}(a39_0x29ce,0x25114));export const PRODUCT_CONFIG={'cliBinName':'lovrabet','cliDisplayName':a39_0x376caa(0x1c2),'npmPackageName':a39_0x376caa(0x1b1),'skillSource':a39_0x376caa(0x1b5),'npmRegistryBaseUrl':'https://registry.npmjs.org','envPrefix':a39_0x376caa(0x1ba),'legacyEnvPrefixes':[a39_0x376caa(0x1ab)],'configFileNames':['.lovrabet.json','.lovrabetrc'],'newConfigFileName':a39_0x376caa(0x1bc),'homeDirName':'.lovrabet','logFileName':'.lovrabet-runtime.log','invokeSource':a39_0x376caa(0x1b8),'userCenterDisplayName':a39_0x376caa(0x1c0),'skipNpxSkillsEnvSuffix':'SKIP_NPX_SKILLS','domains':{'production':{'user':a39_0x376caa(0x1bf),'api':a39_0x376caa(0x1b9),'runtime':a39_0x376caa(0x1bd)},'nonProduction':{'user':a39_0x376caa(0x1b6),'api':a39_0x376caa(0x1c7),'runtime':a39_0x376caa(0x1b2)}},'accessKeyCreatePath':a39_0x376caa(0x1af)};export function productEnvName(_0x48cef3){const _0x20f7d1=a39_0x376caa;return PRODUCT_CONFIG[_0x20f7d1(0x1bb)]+'_'+_0x48cef3;}function a39_0x3400(_0xcbc3d,_0x16e46d){_0xcbc3d=_0xcbc3d-0x1ab;const _0x29ce1b=a39_0x29ce();let _0x3400a0=_0x29ce1b[_0xcbc3d];return _0x3400a0;}export function productEnvNames(_0x164d52){const _0x2984a2=a39_0x376caa;return[productEnvName(_0x164d52),...PRODUCT_CONFIG[_0x2984a2(0x1c6)][_0x2984a2(0x1be)](_0x297f7c=>_0x297f7c+'_'+_0x164d52)];}export function productEnv(_0x44fff4){for(const _0x15f69b of productEnvNames(_0x44fff4)){const _0x3c251b=process.env[_0x15f69b];if(_0x3c251b!==undefined)return _0x3c251b;}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
+ const a40_0x5ec544=a40_0x9f72;function a40_0x9f72(_0xcdc127,_0x78a7de){_0xcdc127=_0xcdc127-0xe9;const _0x1982f5=a40_0x1982();let _0x9f72e7=_0x1982f5[_0xcdc127];return _0x9f72e7;}(function(_0x3b69d1,_0x36bac8){const _0x3d8949=a40_0x9f72,_0x4fb567=_0x3b69d1();while(!![]){try{const _0x50e0cd=parseInt(_0x3d8949(0xf4))/0x1+parseInt(_0x3d8949(0xf0))/0x2+parseInt(_0x3d8949(0xea))/0x3*(parseInt(_0x3d8949(0xef))/0x4)+parseInt(_0x3d8949(0xf2))/0x5*(-parseInt(_0x3d8949(0xec))/0x6)+-parseInt(_0x3d8949(0xeb))/0x7*(parseInt(_0x3d8949(0xf3))/0x8)+-parseInt(_0x3d8949(0xf1))/0x9+-parseInt(_0x3d8949(0xee))/0xa*(parseInt(_0x3d8949(0xe9))/0xb);if(_0x50e0cd===_0x36bac8)break;else _0x4fb567['push'](_0x4fb567['shift']());}catch(_0x9e32ce){_0x4fb567['push'](_0x4fb567['shift']());}}}(a40_0x1982,0x9282d));function a40_0x1982(){const _0x126a62=['34868gydwcV','1365232zYofsN','3036915iqpbSF','139085Gwvkuc','693416qaiFDx','99644uadCUi','high-risk-write','read','570955dixqLd','372fgHExm','21wNPGUL','54WrVuBo','write','80CwyXKl'];a40_0x1982=function(){return _0x126a62;};return a40_0x1982();}export const RISK_LEVEL_VALUES=[a40_0x5ec544(0xf6),a40_0x5ec544(0xed),a40_0x5ec544(0xf5)];
@@ -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_0x36b17f=a41_0x2c75;(function(_0x2c2acd,_0x116b6b){const _0x3450f2=a41_0x2c75,_0xa7640=_0x2c2acd();while(!![]){try{const _0x47ea4=-parseInt(_0x3450f2(0x1c6))/0x1+-parseInt(_0x3450f2(0x1bd))/0x2+parseInt(_0x3450f2(0x1c4))/0x3*(-parseInt(_0x3450f2(0x1bc))/0x4)+-parseInt(_0x3450f2(0x1c7))/0x5+-parseInt(_0x3450f2(0x1c2))/0x6*(parseInt(_0x3450f2(0x1be))/0x7)+-parseInt(_0x3450f2(0x1c3))/0x8+parseInt(_0x3450f2(0x1bf))/0x9;if(_0x47ea4===_0x116b6b)break;else _0xa7640['push'](_0xa7640['shift']());}catch(_0xc6d964){_0xa7640['push'](_0xa7640['shift']());}}}(a41_0x3876,0x77c1a));function a41_0x2c75(_0x2e2b3a,_0x20013e){_0x2e2b3a=_0x2e2b3a-0x1bc;const _0x3876b8=a41_0x3876();let _0x2c7592=_0x3876b8[_0x2e2b3a];return _0x2c7592;}import{PRODUCT_CONFIG}from'../constant/product.js';export const USER_ACCESS_KEY_CREATE_URL=''+PRODUCT_CONFIG[a41_0x36b17f(0x1c8)][a41_0x36b17f(0x1c5)][a41_0x36b17f(0x1c1)]+PRODUCT_CONFIG[a41_0x36b17f(0x1c0)];function a41_0x3876(){const _0x5d73c4=['3hshhUs','production','877665xhnUAR','2070600wvJojI','domains','3822456hByWhW','1255256GZErPw','366443cWTBHb','37639179AHaOVL','accessKeyCreatePath','user','30CTVSJT','4438696FbVSpk'];a41_0x3876=function(){return _0x5d73c4;};return a41_0x3876();}
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_0x52fd4b=a42_0x271f;(function(_0x5bf11b,_0x1f4852){const _0x4dcc5f=a42_0x271f,_0x464773=_0x5bf11b();while(!![]){try{const _0x1470b7=-parseInt(_0x4dcc5f(0x16d))/0x1+-parseInt(_0x4dcc5f(0x13b))/0x2*(-parseInt(_0x4dcc5f(0x170))/0x3)+-parseInt(_0x4dcc5f(0x14e))/0x4+-parseInt(_0x4dcc5f(0x145))/0x5*(parseInt(_0x4dcc5f(0x14b))/0x6)+-parseInt(_0x4dcc5f(0x160))/0x7+parseInt(_0x4dcc5f(0x15b))/0x8*(parseInt(_0x4dcc5f(0x15e))/0x9)+parseInt(_0x4dcc5f(0x159))/0xa;if(_0x1470b7===_0x1f4852)break;else _0x464773['push'](_0x464773['shift']());}catch(_0x5a0300){_0x464773['push'](_0x464773['shift']());}}}(a42_0x4b40,0xe61b8));import{readFileSync,existsSync,mkdirSync,renameSync,unlinkSync,writeFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{homedir}from'node:os';function a42_0x271f(_0x1c4c20,_0x17350d){_0x1c4c20=_0x1c4c20-0x131;const _0x4b40fd=a42_0x4b40();let _0x271f12=_0x4b40fd[_0x1c4c20];return _0x271f12;}import{logger}from'./utils/logger.js';import{CliErrors}from'./errors.js';import{CLI_BIN_NAME}from'./constant/cli.js';import{PRODUCT_CONFIG,productEnv,productEnvNames}from'./constant/product.js';import{DEFAULT_CONFIG_VALUES}from'./constant/defaults.js';import{normalizeEnv,isDaily,isDev}from'./constant/env.js';import{normalizeLegacyOutputFormat}from'./framework/types.js';import{resolveCachedAppCode}from'./commands/app/cache.js';export{AUTH_MODE,isAuthMode}from'./constant/auth-mode.js';const CONFIG_NAMES=PRODUCT_CONFIG['configFileNames'];export const NEW_CONFIG_NAME=PRODUCT_CONFIG[a42_0x52fd4b(0x135)];function resolveConfigPath(_0x5d8d1b){for(const _0x15b5fd of CONFIG_NAMES){const _0x4763d5=resolve(_0x5d8d1b,_0x15b5fd);if(existsSync(_0x4763d5))return _0x4763d5;}return undefined;}export function resolveWriteConfigPath(_0x465921){const _0x5a309b=a42_0x52fd4b,_0x55e2ba=_0x465921===_0x5a309b(0x16a)?process[_0x5a309b(0x156)]():homedir(),_0x366867=resolveConfigPath(_0x55e2ba);return _0x366867??resolve(_0x55e2ba,NEW_CONFIG_NAME);}export function readConfigFile(_0x97f427){const _0x25e995=a42_0x52fd4b;try{if(existsSync(_0x97f427)){const _0x3b19e7=readFileSync(_0x97f427,{'encoding':_0x25e995(0x15d)});if(_0x3b19e7){const _0x3952b0=JSON[_0x25e995(0x171)](_0x3b19e7);return migrateOnlineEnv(_0x97f427,_0x3952b0),_0x3952b0;}}}catch{}return{};}function migrateOnlineEnv(_0x24b6fa,_0x50fce1){const _0x2a057c=a42_0x52fd4b;let _0x55c43b=![];_0x50fce1['env']==='online'&&(_0x50fce1[_0x2a057c(0x14d)]=_0x2a057c(0x16f),_0x55c43b=!![]);if(_0x50fce1[_0x2a057c(0x16e)]&&typeof _0x50fce1[_0x2a057c(0x16e)]===_0x2a057c(0x139))for(const _0xa81d53 of Object[_0x2a057c(0x15f)](_0x50fce1[_0x2a057c(0x16e)])){_0xa81d53&&_0xa81d53[_0x2a057c(0x14d)]===_0x2a057c(0x169)&&(_0xa81d53['env']=_0x2a057c(0x16f),_0x55c43b=!![]);}if(_0x55c43b)try{writeConfigFile(_0x24b6fa,_0x50fce1);}catch{}}export function writeConfigFile(_0x48a9ce,_0x425619){const _0x20750c=a42_0x52fd4b,_0x1b8976=dirname(_0x48a9ce);!existsSync(_0x1b8976)&&mkdirSync(_0x1b8976,{'recursive':!![]});const _0x51c0cd=_0x48a9ce+_0x20750c(0x140);try{writeFileSync(_0x51c0cd,JSON[_0x20750c(0x177)](_0x425619,null,0x2)+'\x0a',{'encoding':'utf8','mode':0x180});try{renameSync(_0x51c0cd,_0x48a9ce);}catch(_0x22b46e){if(_0x22b46e['code']===_0x20750c(0x175)||_0x22b46e['code']===_0x20750c(0x137)||_0x22b46e[_0x20750c(0x155)]==='EACCES'){writeFileSync(_0x48a9ce,JSON['stringify'](_0x425619,null,0x2)+'\x0a',{'encoding':_0x20750c(0x15d)});try{unlinkSync(_0x51c0cd);}catch{}}else throw _0x22b46e;}}catch(_0x4c2e74){try{unlinkSync(_0x51c0cd);}catch{}throw _0x4c2e74;}}export function isNonInteractiveMode(_0x2b2557){const _0x495e41=a42_0x52fd4b;return!!(_0x2b2557[_0x495e41(0x134)]||_0x2b2557['ci']||productEnvNames('CI')[_0x495e41(0x168)](_0x15d3e7=>process.env[_0x15d3e7]===_0x495e41(0x15c))||process.env.CI==='true'||!process[_0x495e41(0x143)][_0x495e41(0x15a)]||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x8e1360=a42_0x52fd4b;if(!process['stdin'][_0x8e1360(0x15a)])return![];try{const _0x36f2bc=process[_0x8e1360(0x14c)]['isRaw'];return process[_0x8e1360(0x14c)][_0x8e1360(0x174)](!![]),process[_0x8e1360(0x14c)][_0x8e1360(0x174)](_0x36f2bc??![]),!![];}catch{return![];}}export async function createContext(_0x52214a){const _0x17affd=a42_0x52fd4b,_0x3ea0c7=readRawConfig(),_0x189793=buildConfig(_0x3ea0c7,_0x52214a);await initGlobalEnvironment(_0x189793);const {getUserDomain:_0xdf198d,getApiDomain:_0x2d9085}=await import(_0x17affd(0x164)),_0x535427={'apiDomain':_0x2d9085(),'userDomain':_0xdf198d()},_0x543799=await buildAuth(_0x189793);logger['setLogPath'](process['cwd']());const _0x2afbc0=(CLI_BIN_NAME+'\x20'+process[_0x17affd(0x16b)]['slice'](0x2)[_0x17affd(0x142)]('\x20'))[_0x17affd(0x172)]();logger[_0x17affd(0x150)](_0x2afbc0);const _0x195848=isNonInteractiveMode(_0x52214a);return{'config':_0x189793,'auth':_0x543799,'logger':logger,'env':_0x535427,'nonInteractive':_0x195848};}export function buildConfigFromFlags(_0x4fdda6){return buildConfig(readRawConfig(),_0x4fdda6);}export function getLocalAppAliases(_0x45cb30){const _0x3681e3=a42_0x52fd4b;return _0x45cb30[_0x3681e3(0x16e)]&&typeof _0x45cb30[_0x3681e3(0x16e)]===_0x3681e3(0x139)?_0x45cb30[_0x3681e3(0x16e)]:{};}export function resolveLocalAppAliasCode(_0x1b3bf5,_0x24da5e){const _0x55e91a=a42_0x52fd4b;if(!_0x24da5e)return undefined;const _0x493c65=getLocalAppAliases(_0x1b3bf5)[_0x24da5e],_0x35b3c3=_0x493c65?.[_0x55e91a(0x179)];return typeof _0x35b3c3===_0x55e91a(0x133)&&_0x35b3c3[_0x55e91a(0x172)]()?_0x35b3c3[_0x55e91a(0x172)]():undefined;}export function readAppCodeFromConfig(){const _0x2d228d=a42_0x52fd4b,_0x28019a=readRawConfig(),_0x432000=_0x28019a['appcode']??_0x28019a[_0x2d228d(0x157)];if(typeof _0x432000==='string'&&_0x432000[_0x2d228d(0x172)]())return _0x432000[_0x2d228d(0x172)]();const _0x4956c1=resolveLocalAppAliasCode(_0x28019a,typeof _0x28019a[_0x2d228d(0x16c)]==='string'?_0x28019a['defaultApp']:undefined);if(_0x4956c1)return _0x4956c1;const _0x56c4db=normalizeEnv(String(_0x28019a[_0x2d228d(0x14d)]||'production')),_0x2b1171=isDaily(_0x56c4db)?_0x2d228d(0x149):isDev(_0x56c4db)?_0x2d228d(0x146):'production',_0x3d135a=resolveCachedAppCode(typeof _0x28019a['defaultApp']==='string'?_0x28019a[_0x2d228d(0x16c)]:undefined,_0x2b1171,typeof _0x28019a['accessKey']===_0x2d228d(0x133)?_0x28019a[_0x2d228d(0x147)]:undefined);if(_0x3d135a)return _0x3d135a;const _0x43f29b=Object['values'](getLocalAppAliases(_0x28019a))[_0x2d228d(0x13c)](_0x34d6fd=>_0x34d6fd?.['appcode']);return typeof _0x43f29b?.[_0x2d228d(0x179)]===_0x2d228d(0x133)&&_0x43f29b[_0x2d228d(0x179)][_0x2d228d(0x172)]()?_0x43f29b[_0x2d228d(0x179)][_0x2d228d(0x172)]():undefined;}export function readScopedConfig(_0x3c7262){const _0xb19d3d=a42_0x52fd4b,_0x22162c=_0x3c7262[_0xb19d3d(0x162)]?_0xb19d3d(0x162):'project';return readConfigFile(resolveWriteConfigPath(_0x22162c));}export function writeScopedConfig(_0x344615,_0x13c5ce){const _0x32d091=a42_0x52fd4b,_0x1a8d0c=_0x13c5ce[_0x32d091(0x162)]?_0x32d091(0x162):'project';writeConfigFile(resolveWriteConfigPath(_0x1a8d0c),_0x344615);}export async function initGlobalEnvironment(_0x51b537){const _0x52474c=a42_0x52fd4b,{initEnv:_0x2bc9df}=await import(_0x52474c(0x176));_0x2bc9df(_0x51b537['env']);const {initDomains:_0x252a54}=await import(_0x52474c(0x164));_0x252a54({'apiDomain':_0x51b537[_0x52474c(0x178)][_0x52474c(0x163)]||_0x51b537['raw'][_0x52474c(0x158)]||undefined,'userDomain':_0x51b537[_0x52474c(0x178)][_0x52474c(0x132)]||undefined,'runtimeDomain':_0x51b537[_0x52474c(0x178)]['runtimeDomain']||undefined});}export function getProjectConfigPath(){const _0x50d9a9=a42_0x52fd4b;return resolveConfigPath(process[_0x50d9a9(0x156)]());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function inspectCliConfigJsonFile(_0x520ac1){const _0x287d25=a42_0x52fd4b;if(!existsSync(_0x520ac1))return{'status':'missing'};try{const _0x5398d9=readFileSync(_0x520ac1,{'encoding':_0x287d25(0x15d)});if(!_0x5398d9?.[_0x287d25(0x172)]())return{'status':_0x287d25(0x148)};const _0x41a8df=JSON[_0x287d25(0x171)](_0x5398d9);return{'status':'ok','data':_0x41a8df};}catch(_0x2f1a55){return{'status':_0x287d25(0x13d),'message':_0x2f1a55 instanceof Error?_0x2f1a55[_0x287d25(0x13a)]:String(_0x2f1a55)};}}export function loadRawConfigLayers(_0x223ed0){const _0x29446d=a42_0x52fd4b;let _0x5c2fb8={},_0x2c7eab={},_0x3db3d4,_0x317991;try{_0x3db3d4=resolveConfigPath(homedir());if(_0x3db3d4){const _0x1223de=readFileSync(_0x3db3d4,{'encoding':_0x29446d(0x15d)});if(_0x1223de)_0x5c2fb8=JSON[_0x29446d(0x171)](_0x1223de);}}catch{}try{const _0x513559=_0x223ed0||process[_0x29446d(0x156)]();_0x317991=resolveConfigPath(_0x513559);if(_0x317991){const _0x122681=readFileSync(_0x317991,{'encoding':_0x29446d(0x15d)});if(_0x122681)_0x2c7eab=JSON['parse'](_0x122681);}}catch{}return{'globalPath':_0x3db3d4,'projectPath':_0x317991,'globalConfig':_0x5c2fb8,'projectConfig':_0x2c7eab};}function mergeRawConfigLayers(_0x49b521){const _0x149ceb=a42_0x52fd4b,{globalConfig:_0x38b2c1,projectConfig:_0x577d39}=_0x49b521;if(_0x577d39[_0x149ceb(0x166)]===![]){const _0xb4f18c={..._0x577d39};return delete _0xb4f18c[_0x149ceb(0x166)],_0xb4f18c;}const _0x6c4a13={..._0x38b2c1,..._0x577d39};if(_0x149ceb(0x16c)in _0x577d39)_0x6c4a13[_0x149ceb(0x16c)]=_0x577d39['defaultApp'];else _0x38b2c1['defaultApp']&&(_0x6c4a13[_0x149ceb(0x16c)]=_0x38b2c1[_0x149ceb(0x16c)]);return _0x6c4a13;}export function isInProject(){return!!getProjectConfigPath();}export function readRawConfig(_0x3b9241){return mergeRawConfigLayers(loadRawConfigLayers(_0x3b9241));}export function readRawConfigWithLayers(_0x31a014){const _0x2220ff=loadRawConfigLayers(_0x31a014);return{'config':mergeRawConfigLayers(_0x2220ff),'layers':_0x2220ff};}export function resolveDefaultAppSource(_0x35f677){const _0x187dfd=a42_0x52fd4b;if(_0x187dfd(0x16c)in _0x35f677[_0x187dfd(0x152)])return _0x187dfd(0x16a);if(_0x35f677[_0x187dfd(0x152)][_0x187dfd(0x166)]===![])return null;if(_0x35f677[_0x187dfd(0x173)][_0x187dfd(0x16c)])return'global';return null;}function buildConfig(_0x2174f5,_0x4e6b97){const _0x44f988=a42_0x52fd4b,_0x1b2288=_0x2174f5[_0x44f988(0x16c)]||undefined,_0x4727b7=_0x4e6b97[_0x44f988(0x157)]||env(_0x44f988(0x153))||undefined,_0x3e7d03=_0x4727b7||_0x1b2288||undefined,_0x47c353=env(_0x44f988(0x154))||_0x2174f5[_0x44f988(0x147)]||undefined,_0x43a55a=_0x4e6b97['env']||env('ENV')||_0x2174f5[_0x44f988(0x14d)]||DEFAULT_CONFIG_VALUES[_0x44f988(0x14d)],_0x5b5c31=normalizeEnv(String(_0x43a55a)),_0x27edc2=isDaily(_0x5b5c31)?_0x44f988(0x149):isDev(_0x5b5c31)?_0x44f988(0x146):_0x44f988(0x16f),_0x128d88=resolveLocalAppAliasCode(_0x2174f5,_0x3e7d03),_0x2f63e3=resolveCachedAppCode(_0x3e7d03,_0x27edc2,_0x47c353),_0x522800=typeof _0x4e6b97[_0x44f988(0x179)]===_0x44f988(0x133)?_0x4e6b97[_0x44f988(0x179)]:undefined,_0x5a915c=env(_0x44f988(0x136)),_0x2777f9=_0x4727b7?undefined:_0x2174f5['appcode']||_0x2174f5[_0x44f988(0x157)]||undefined,_0x3c90a8=_0x522800||_0x5a915c||_0x128d88||_0x2f63e3||_0x2777f9||undefined,_0x415b62=_0x522800?_0x44f988(0x167):_0x5a915c?_0x44f988(0x14d):_0x128d88?'local-alias':_0x2f63e3?_0x44f988(0x161):_0x2777f9?_0x44f988(0x14a):undefined,_0x2cbc6f=_0x2174f5['locale']||DEFAULT_CONFIG_VALUES['locale'],_0x2b1301=undefined,_0x504979=_0x4e6b97[_0x44f988(0x165)]||env(_0x44f988(0x144))||_0x2174f5['format'],_0x6d5f4b=normalizeLegacyOutputFormat(_0x504979),_0x111643=env(_0x44f988(0x151))||_0x2174f5['pageSize'],_0x383c21=_0x111643?Number(_0x111643)||undefined:undefined,_0x417cf4=_0x2174f5[_0x44f988(0x13e)]||_0x2174f5[_0x44f988(0x13f)],_0x2de02b=_0x417cf4===_0x44f988(0x14f)||_0x417cf4===_0x44f988(0x138)||_0x417cf4==='high-risk-write'?_0x417cf4:DEFAULT_CONFIG_VALUES[_0x44f988(0x13e)],_0x1a1043=env(_0x44f988(0x131)),_0x2f7fc1=_0x1a1043==='1'||_0x1a1043===_0x44f988(0x15c);return{'appCode':typeof _0x3c90a8==='string'&&_0x3c90a8[_0x44f988(0x172)]()?_0x3c90a8['trim']():undefined,'appCodeSource':_0x415b62,'env':_0x27edc2,'locale':_0x2cbc6f,'cookie':_0x2b1301,'accessKey':_0x47c353,'format':_0x6d5f4b,'pageSize':_0x383c21,'riskLevel':_0x2de02b,'verbose':_0x2f7fc1,'defaultApp':_0x1b2288,'currentApp':typeof _0x3e7d03==='string'?_0x3e7d03:undefined,'raw':_0x2174f5};}function env(_0x21c7bf){return productEnv(_0x21c7bf);}async function buildAuth(_0x57490a){const _0x46d21e=a42_0x52fd4b,_0x261b7b='',_0x204cc2=!!_0x57490a[_0x46d21e(0x147)];return{'cookie':_0x261b7b,'isLoggedIn':_0x204cc2,async 'getOrLogin'(){const _0x2e20c2=_0x46d21e;if(_0x204cc2)return _0x261b7b;throw CliErrors[_0x2e20c2(0x141)]();}};}function a42_0x4b40(){const _0x3e6f1d=['apiDomain','./constant/domain.js','format','inherit','explicit','some','online','project','argv','defaultApp','1118114CiQQiH','apps','production','2733HVnDKc','parse','trim','globalConfig','setRawMode','EPERM','./constant/env.js','stringify','raw','appcode','VERBOSE','userDomain','string','nonInteractive','newConfigFileName','APPCODE','EXDEV','write','object','message','470IEOOrw','find','error','riskLevel','maxRisk','.tmp','authRequired','join','stdout','FORMAT','281955xTNxgE','development','accessKey','empty','daily','top-level','84cEThCh','stdin','env','5189560ccxLQI','read','setRawCommand','PAGE_SIZE','projectConfig','APP','ACCESS_KEY','code','cwd','app','host','42399150KeNdDx','isTTY','35024sgoPnz','true','utf8','3051FptJVn','values','12534508tyBDgW','cache','global'];a42_0x4b40=function(){return _0x3e6f1d;};return a42_0x4b40();}
@@ -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(_0x2734a5,_0x20d088){const _0x6c80aa=a43_0x5887,_0x14c9ea=_0x2734a5();while(!![]){try{const _0x2c8f97=parseInt(_0x6c80aa(0x134))/0x1*(-parseInt(_0x6c80aa(0x11a))/0x2)+-parseInt(_0x6c80aa(0x13a))/0x3+-parseInt(_0x6c80aa(0x136))/0x4+parseInt(_0x6c80aa(0x133))/0x5+-parseInt(_0x6c80aa(0x122))/0x6*(-parseInt(_0x6c80aa(0x127))/0x7)+parseInt(_0x6c80aa(0x13c))/0x8+parseInt(_0x6c80aa(0x149))/0x9;if(_0x2c8f97===_0x20d088)break;else _0x14c9ea['push'](_0x14c9ea['shift']());}catch(_0xcacaba){_0x14c9ea['push'](_0x14c9ea['shift']());}}}(a43_0x5cfb,0xdc8ed));import{getRuntimeDomain}from'../constant/domain.js';import{PRODUCT_CONFIG}from'../constant/product.js';import{CliErrors}from'../errors.js';import{extractList}from'../framework/response.js';function a43_0x5cfb(){const _0xe33e11=['4610432pnNCzu','SQL\x20query\x20not\x20found:\x20','application/json','errorCode','/client/dataset/query?','POST','errorMsg','topK','test','/client/bff/query/','BFF\x20script\x20not\x20found:\x20id=','abort','tableData','13536639Ygkhzb','filter','stringify','Invalid\x20login\x20user\x20info\x20response:\x20expected\x20object.','message','newConfigFileName','name','/client/knowledge-base/personal/list?appCode=','authRequired','Request\x20timeout:\x20','code','/client/sql/query','string','API\x20error:\x20','Knowledge-base\x20entry\x20not\x20found:\x20id=','/client/user/loginUserInfo','?appCode=','invokeSource','3234694BUbUaP','/client/skill/personal/list?appCode=','validation','API\x20error\x20code:\x20','object','isArray','/client/knowledge-base/search','sqlCode','168pxYZgs','apiError','/client/knowledge-base/personal/','/client/knowledge-base/personal/create','appCode','226016WawkcC','API\x20returned\x20non-JSON\x20response\x20(HTTP\x20','Check\x20your\x20credentials\x20and\x20try\x20again.','AbortError','Configure\x20accessKey\x20in\x20','/client/app/my-apps','signal','/client/skill/personal/create','/client/skill/company/list?appCode=','status','Invalid\x20app\x20list\x20response:\x20missing\x20data.tableData.','/update','8307990iIZunX','1pTkJuw','GET','5345544VoPaSj','data','/client/dataset/list','/client/skill/personal/','2366697cqbrXv','json'];a43_0x5cfb=function(){return _0xe33e11;};return a43_0x5cfb();}let _activeAK;export function setActiveAK(_0x29e463){_activeAK=_0x29e463||undefined;}export function clearActiveAK(){_activeAK=undefined;}async function apiRequest(_0x450924,_0x2d2080={}){const _0x5a7f82=a43_0x5887,{method:method=_0x5a7f82(0x135),body:_0x9dd3bf,headers:headers={},timeout:timeout=0x7530}=_0x2d2080,_0xc2288c=_activeAK,_0x5e947c=getRuntimeDomain();if(!_0xc2288c)throw CliErrors[_0x5a7f82(0x151)](_0x5a7f82(0x12b)+PRODUCT_CONFIG[_0x5a7f82(0x14e)]+'.');const _0x38f218=''+_0x5e947c+_0x450924,_0x2efc09={'X-User-AK':_0xc2288c},_0x312b8=new AbortController(),_0x304663=setTimeout(()=>_0x312b8[_0x5a7f82(0x147)](),timeout);try{const _0x4891b2=await fetch(_0x38f218,{'method':method,'headers':{'Content-Type':_0x5a7f82(0x13e),'X-Invoke-Source':PRODUCT_CONFIG[_0x5a7f82(0x119)],..._0x2efc09,...headers},'body':_0x9dd3bf?JSON[_0x5a7f82(0x14b)](_0x9dd3bf):undefined,'signal':_0x312b8[_0x5a7f82(0x12d)]});let _0x191e2a;try{_0x191e2a=await _0x4891b2[_0x5a7f82(0x13b)]();}catch{throw CliErrors[_0x5a7f82(0x123)](_0x5a7f82(0x128)+_0x4891b2[_0x5a7f82(0x130)]+')',_0x4891b2[_0x5a7f82(0x130)]>=0x190?_0x5a7f82(0x129):undefined);}if(!_0x4891b2['ok']||_0x191e2a['success']===![])throw CliErrors[_0x5a7f82(0x123)](_0x191e2a[_0x5a7f82(0x142)]||_0x191e2a[_0x5a7f82(0x14d)]||_0x5a7f82(0x115)+_0x4891b2[_0x5a7f82(0x130)],_0x191e2a[_0x5a7f82(0x13f)]?_0x5a7f82(0x11d)+_0x191e2a[_0x5a7f82(0x13f)]:undefined);return _0x191e2a;}catch(_0x450e60){if(_0x450e60 instanceof Error&&_0x450e60[_0x5a7f82(0x14f)]===_0x5a7f82(0x12a))throw CliErrors[_0x5a7f82(0x123)](_0x5a7f82(0x111)+_0x38f218);throw _0x450e60;}finally{clearTimeout(_0x304663);}}export async function getBffScriptInfo(_0x429a61){const _0x387297=a43_0x5887,_0x297f3b=await apiRequest(_0x387297(0x145)+_0x429a61);if(!_0x297f3b['data'])throw CliErrors['validation'](_0x387297(0x146)+_0x429a61);return _0x297f3b[_0x387297(0x137)];}export async function getSqlQueryInfo(_0x43c91b,_0x3f846b){const _0x1f4b59=a43_0x5887,_0x17f721=await apiRequest(_0x1f4b59(0x113),{'method':'POST','body':{'appCode':_0x43c91b,'currentPage':0x1,'pageSize':0x1,'sqlCode':_0x3f846b}}),_0x123e5c=_0x17f721[_0x1f4b59(0x137)],_0x5542a6=_0x123e5c&&typeof _0x123e5c===_0x1f4b59(0x11e)&&_0x1f4b59(0x148)in _0x123e5c?_0x123e5c['tableData']?.[0x0]:_0x123e5c&&typeof _0x123e5c==='object'&&_0x1f4b59(0x121)in _0x123e5c?_0x123e5c:undefined;if(!_0x5542a6)throw CliErrors[_0x1f4b59(0x11c)](_0x1f4b59(0x13d)+_0x3f846b);return _0x5542a6;}function isRemoteAppItem(_0x4b54fe){const _0x19daa8=a43_0x5887;return!!_0x4b54fe&&typeof _0x4b54fe===_0x19daa8(0x11e)&&typeof _0x4b54fe[_0x19daa8(0x126)]===_0x19daa8(0x114)&&typeof _0x4b54fe['appName']===_0x19daa8(0x114);}function extractRemoteAppItems(_0x5d7ae0){const _0x55496c=a43_0x5887;if(Array[_0x55496c(0x11f)](_0x5d7ae0))return _0x5d7ae0[_0x55496c(0x14a)](isRemoteAppItem);if(!_0x5d7ae0||typeof _0x5d7ae0!==_0x55496c(0x11e))throw CliErrors[_0x55496c(0x123)]('Invalid\x20app\x20list\x20response:\x20expected\x20object\x20or\x20array.');const _0x32f773=_0x5d7ae0;if(Array[_0x55496c(0x11f)](_0x32f773[_0x55496c(0x148)]))return _0x32f773[_0x55496c(0x148)][_0x55496c(0x14a)](isRemoteAppItem);if(_0x32f773[_0x55496c(0x137)]&&typeof _0x32f773[_0x55496c(0x137)]==='object'){const _0x10c546=_0x32f773[_0x55496c(0x137)];if(Array[_0x55496c(0x11f)](_0x10c546[_0x55496c(0x148)]))return _0x10c546[_0x55496c(0x148)][_0x55496c(0x14a)](isRemoteAppItem);}throw CliErrors[_0x55496c(0x123)](_0x55496c(0x131));}export async function getMyApps(){const _0x24f600=a43_0x5887,_0x355b06=await apiRequest(_0x24f600(0x12c));return extractRemoteAppItems(_0x355b06[_0x24f600(0x137)]);}export async function getLoginUserInfo(){const _0x4a853c=a43_0x5887,_0x334bdf=await apiRequest(_0x4a853c(0x117));if(!_0x334bdf[_0x4a853c(0x137)]||typeof _0x334bdf[_0x4a853c(0x137)]!==_0x4a853c(0x11e)||Array[_0x4a853c(0x11f)](_0x334bdf['data']))throw CliErrors[_0x4a853c(0x123)](_0x4a853c(0x14c));return _0x334bdf[_0x4a853c(0x137)];}export async function listDatasets(_0x37b1c2,_0x21daf0){const _0x58286b=a43_0x5887,_0x5d4ef7=await apiRequest(_0x58286b(0x138),{'method':_0x58286b(0x141),'body':{'appCode':_0x37b1c2,..._0x21daf0?.[_0x58286b(0x112)]&&{'code':_0x21daf0[_0x58286b(0x112)]},..._0x21daf0?.[_0x58286b(0x14f)]&&{'name':_0x21daf0[_0x58286b(0x14f)]}}});return extractList(_0x5d4ef7[_0x58286b(0x137)]);}export async function getDatasetDetail(_0x3151a4){const _0x4446a8=a43_0x5887,_0x3bd598=/^\d+$/[_0x4446a8(0x144)](_0x3151a4)?'id':'code',_0x2e78ec=await apiRequest(_0x4446a8(0x140)+_0x3bd598+'='+_0x3151a4);return _0x2e78ec[_0x4446a8(0x137)];}export async function listPersonalKnowledgeBaseItems(_0x468edc){const _0x330656=a43_0x5887,_0x1e6eea=await apiRequest(_0x330656(0x150)+encodeURIComponent(_0x468edc));return Array['isArray'](_0x1e6eea[_0x330656(0x137)])?_0x1e6eea['data']:[];}export async function getPersonalKnowledgeBaseItem(_0x483529,_0x108118){const _0x98bd58=a43_0x5887,_0x3d055f=await apiRequest(_0x98bd58(0x124)+_0x483529+_0x98bd58(0x118)+encodeURIComponent(_0x108118));if(!_0x3d055f[_0x98bd58(0x137)])throw CliErrors[_0x98bd58(0x11c)](_0x98bd58(0x116)+_0x483529);return _0x3d055f[_0x98bd58(0x137)];}export async function createPersonalKnowledgeBaseItem(_0x277799,_0x203ff3){const _0x579b86=a43_0x5887,_0xa8ce32=await apiRequest(_0x579b86(0x125),{'method':_0x579b86(0x141),'body':{'appCode':_0x277799,..._0x203ff3}});return _0xa8ce32[_0x579b86(0x137)];}export async function updatePersonalKnowledgeBaseItem(_0x259258,_0x5c73bf,_0x502cd6){const _0x41f0a6=a43_0x5887,_0xe33f20=await apiRequest(_0x41f0a6(0x124)+_0x259258+'/update',{'method':'POST','body':{'appCode':_0x5c73bf,..._0x502cd6}});return _0xe33f20[_0x41f0a6(0x137)];}export async function searchKnowledgeBase(_0x3f66e6,_0x454fa7){const _0x35a65b=a43_0x5887,_0x1b64f9=await apiRequest(_0x35a65b(0x120),{'method':'POST','body':{'appCode':_0x3f66e6,'query':_0x454fa7['query'],..._0x454fa7[_0x35a65b(0x143)]!==undefined?{'topK':_0x454fa7[_0x35a65b(0x143)]}:{}}});return Array[_0x35a65b(0x11f)](_0x1b64f9[_0x35a65b(0x137)])?_0x1b64f9[_0x35a65b(0x137)]:[];}export async function listPersonalRuntimeSkills(_0xe89cf7){const _0x43e408=a43_0x5887,_0xa142e0=await apiRequest(_0x43e408(0x11b)+encodeURIComponent(_0xe89cf7));return Array[_0x43e408(0x11f)](_0xa142e0['data'])?_0xa142e0['data']:[];}export async function listCompanyRuntimeSkills(_0x2479c9){const _0x2449bf=a43_0x5887,_0x10ff17=await apiRequest(_0x2449bf(0x12f)+encodeURIComponent(_0x2479c9));return Array[_0x2449bf(0x11f)](_0x10ff17[_0x2449bf(0x137)])?_0x10ff17['data']:[];}function a43_0x5887(_0x3f7cea,_0xd4cf4b){_0x3f7cea=_0x3f7cea-0x111;const _0x5cfb0a=a43_0x5cfb();let _0x58878a=_0x5cfb0a[_0x3f7cea];return _0x58878a;}export async function createPersonalRuntimeSkill(_0xd22cd3,_0x2889aa){const _0x903967=a43_0x5887,_0x44bd6f=await apiRequest(_0x903967(0x12e),{'method':_0x903967(0x141),'body':{'appCode':_0xd22cd3,..._0x2889aa}});return _0x44bd6f[_0x903967(0x137)];}export async function updatePersonalRuntimeSkill(_0x15cfed,_0x5e8a65,_0x247c46){const _0x49ada4=a43_0x5887,_0x2eed9f=await apiRequest(_0x49ada4(0x139)+encodeURIComponent(_0x15cfed)+_0x49ada4(0x132),{'method':_0x49ada4(0x141),'body':{'appCode':_0x5e8a65,..._0x247c46}});return _0x2eed9f['data'];}
@@ -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(_0x514727,_0x6e4ce9){const _0xe8122e=a44_0x1d1b,_0x5b8a3a=_0x514727();while(!![]){try{const _0x590e02=-parseInt(_0xe8122e(0x155))/0x1*(parseInt(_0xe8122e(0x159))/0x2)+-parseInt(_0xe8122e(0x15c))/0x3*(-parseInt(_0xe8122e(0x157))/0x4)+parseInt(_0xe8122e(0x152))/0x5*(-parseInt(_0xe8122e(0x14c))/0x6)+parseInt(_0xe8122e(0x158))/0x7+parseInt(_0xe8122e(0x15f))/0x8*(-parseInt(_0xe8122e(0x154))/0x9)+parseInt(_0xe8122e(0x14f))/0xa+-parseInt(_0xe8122e(0x15e))/0xb*(-parseInt(_0xe8122e(0x150))/0xc);if(_0x590e02===_0x6e4ce9)break;else _0x5b8a3a['push'](_0x5b8a3a['shift']());}catch(_0x20c0ef){_0x5b8a3a['push'](_0x5b8a3a['shift']());}}}(a44_0x4155,0x63ed5));import{listDatasets}from'../core/api-client.js';function a44_0x4155(){const _0x37e1c8=['18XTQtWN','3AYmaWT','dbtableConfig','524uimTRa','4374251zzqQDX','165622lKHkVU','dbName','dbId','1875MQYsrL','db-','6347ykIgqd','3270192HLWiiO','833574GHYpFE','entries','has','6286240crtKoK','8688mHfwIO','find','10SwxDFE','set'];a44_0x4155=function(){return _0x37e1c8;};return a44_0x4155();}const cache=new Map();function a44_0x1d1b(_0x462c33,_0x5136f1){_0x462c33=_0x462c33-0x14c;const _0x415538=a44_0x4155();let _0x1d1bce=_0x415538[_0x462c33];return _0x1d1bce;}export async function listDatabases(_0x136355){const _0x2728c6=a44_0x1d1b;if(cache[_0x2728c6(0x14e)](_0x136355))return cache['get'](_0x136355);const _0x33900e=await listDatasets(_0x136355),_0x29afd4=new Map();for(const _0x570fea of _0x33900e){const _0xd6a097=_0x570fea[_0x2728c6(0x156)];_0xd6a097?.[_0x2728c6(0x15b)]!=null&&_0x29afd4[_0x2728c6(0x153)](_0xd6a097[_0x2728c6(0x15b)],_0xd6a097[_0x2728c6(0x15a)]??_0x2728c6(0x15d)+_0xd6a097[_0x2728c6(0x15b)]);}const _0x234c16=[..._0x29afd4[_0x2728c6(0x14d)]()]['map'](([_0x226d27,_0x115e83])=>({'dbId':_0x226d27,'dbName':_0x115e83}));return cache[_0x2728c6(0x153)](_0x136355,_0x234c16),_0x234c16;}export async function getDbName(_0xa24e42,_0x32624d){const _0x2a4dd2=a44_0x1d1b;try{const _0x3a6fee=await listDatabases(_0xa24e42);return _0x3a6fee[_0x2a4dd2(0x151)](_0x3a19d4=>_0x3a19d4[_0x2a4dd2(0x15b)]===_0x32624d)?.[_0x2a4dd2(0x15a)];}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 a45_0x1964(){const _0x1399e4=['update','Available:\x20filter,\x20getOne,\x20create,\x20batchCreate,\x20update,\x20delete,\x20aggregate.','sql','36650zyDbfk','accessKey','58274oBTIWp','dataset_','SDK\x20client\x20not\x20initialized.\x20Call\x20initSdkClient()\x20first.','bff','getOne\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123}\x27','365GPaQtg','436167FYHzzr','batchCreate','delete\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123}\x27','1123479fqKiBE','16wTDRmJ','4KCutSI','execute','275hGxJCn','getOne','delete','function','686247mIJwQB','16806JtpTZU','update\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123,\x22name\x22:\x22new\x22}\x27','isArray','authMode','models','610604posDoa'];a45_0x1964=function(){return _0x1399e4;};return a45_0x1964();}(function(_0x4ceb75,_0x4c111b){const _0x5ee12f=a45_0x5d94,_0x29809e=_0x4ceb75();while(!![]){try{const _0x537e81=parseInt(_0x5ee12f(0x1a0))/0x1*(parseInt(_0x5ee12f(0x1ab))/0x2)+parseInt(_0x5ee12f(0x194))/0x3+parseInt(_0x5ee12f(0x19a))/0x4+-parseInt(_0x5ee12f(0x1a5))/0x5*(parseInt(_0x5ee12f(0x195))/0x6)+-parseInt(_0x5ee12f(0x1a9))/0x7+parseInt(_0x5ee12f(0x1aa))/0x8*(-parseInt(_0x5ee12f(0x1a6))/0x9)+parseInt(_0x5ee12f(0x19e))/0xa*(parseInt(_0x5ee12f(0x190))/0xb);if(_0x537e81===_0x4c111b)break;else _0x29809e['push'](_0x29809e['shift']());}catch(_0x5c4c9e){_0x29809e['push'](_0x29809e['shift']());}}}(a45_0x1964,0x1f2bd));import{createClient}from'@lovrabet/sdk';import{parseBatchCreateItemsFromParams}from'../utils/params.js';let _client;export function initSdkClient(_0x30b731){const _0x196726=a45_0x5d94;_client=createClient({'appCode':_0x30b731['appCode'],'env':_0x30b731['env'],'authMode':_0x30b731[_0x196726(0x198)],..._0x30b731[_0x196726(0x19f)]?{'accessKey':_0x30b731['accessKey']}:{},'options':{'timeout':0x7530}});}function ensureClient(){const _0xfcff1f=a45_0x5d94;if(!_client)throw new Error(_0xfcff1f(0x1a2));return _client;}function a45_0x5d94(_0x3f9369,_0x20877a){_0x3f9369=_0x3f9369-0x18f;const _0x196479=a45_0x1964();let _0x5d9400=_0x196479[_0x3f9369];return _0x5d9400;}export async function executeData(_0x4b6e46,_0x5eb2e0,_0x30306d){const _0x50bdb8=a45_0x5d94,_0x27dd88=ensureClient(),_0x5297a8=_0x50bdb8(0x1a1)+_0x4b6e46,_0x351b5a=_0x27dd88[_0x50bdb8(0x199)][_0x5297a8];if(!_0x351b5a||typeof _0x351b5a[_0x5eb2e0]!==_0x50bdb8(0x193))throw new Error('SDK\x20model\x20does\x20not\x20support\x20operation\x20\x22'+_0x5eb2e0+'\x22.\x20'+_0x50bdb8(0x19c));if(_0x5eb2e0===_0x50bdb8(0x1a7))return _0x351b5a[_0x50bdb8(0x1a7)](parseBatchCreateItemsFromParams(_0x30306d));const _0x5ae066=_0x30306d!==undefined&&_0x30306d!==null&&!Array[_0x50bdb8(0x197)](_0x30306d)?_0x30306d:{};switch(_0x5eb2e0){case'getOne':{const _0x5d85e2=_0x5ae066['id'];if(_0x5d85e2===undefined||_0x5d85e2===null)throw new Error(_0x50bdb8(0x1a4));return _0x351b5a[_0x50bdb8(0x191)](_0x5d85e2);}case _0x50bdb8(0x19b):{const {id:_0x1718b0,..._0x2b6182}=_0x5ae066;if(_0x1718b0===undefined||_0x1718b0===null)throw new Error(_0x50bdb8(0x196));return _0x351b5a[_0x50bdb8(0x19b)](_0x1718b0,_0x2b6182);}case _0x50bdb8(0x192):{const _0x1c3657=_0x5ae066['id'];if(_0x1c3657===undefined||_0x1c3657===null)throw new Error(_0x50bdb8(0x1a8));return _0x351b5a['delete'](_0x1c3657);}default:return _0x351b5a[_0x5eb2e0](_0x5ae066);}}export async function executeSdkSql(_0xfa2b1f,_0x2af46e){const _0x4a2d8b=a45_0x5d94,_0x29cc7d=ensureClient();return _0x29cc7d[_0x4a2d8b(0x19d)][_0x4a2d8b(0x18f)]({'sqlCode':_0xfa2b1f,'params':_0x2af46e});}export async function executeSdkBff(_0xe5965a,_0x216873){const _0x1086e2=a45_0x5d94,_0x1deaa0=ensureClient();return _0x1deaa0[_0x1086e2(0x1a3)][_0x1086e2(0x18f)]({'scriptName':_0xe5965a,'params':_0x216873});}
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
+ const a46_0x2abfc5=a46_0x5f57;(function(_0x55f2d2,_0x5a4100){const _0x313c5c=a46_0x5f57,_0x31c19c=_0x55f2d2();while(!![]){try{const _0x585855=parseInt(_0x313c5c(0x15f))/0x1+parseInt(_0x313c5c(0x161))/0x2*(-parseInt(_0x313c5c(0x153))/0x3)+-parseInt(_0x313c5c(0x162))/0x4*(parseInt(_0x313c5c(0x159))/0x5)+-parseInt(_0x313c5c(0x158))/0x6*(parseInt(_0x313c5c(0x157))/0x7)+-parseInt(_0x313c5c(0x154))/0x8+parseInt(_0x313c5c(0x15d))/0x9*(parseInt(_0x313c5c(0x156))/0xa)+parseInt(_0x313c5c(0x15b))/0xb;if(_0x585855===_0x5a4100)break;else _0x31c19c['push'](_0x31c19c['shift']());}catch(_0x4c5edf){_0x31c19c['push'](_0x31c19c['shift']());}}}(a46_0x36b0,0x5ce9d));import{CliError,createCliErrors}from'@lovrabet/cli-framework';import{CLI_BIN_NAME}from'./constant/cli.js';import{PRODUCT_CONFIG}from'./constant/product.js';export{CliError};function a46_0x36b0(){const _0x17d974=['932210uPPRqn','91hyJtyj','268074gjHLAj','45635Omlbtd','Set\x20appcode\x20via\x20--appcode\x20or\x20','12031921MnXhtg','\x20auth\x20login`.','72icBQdC','Run\x20this\x20command\x20inside\x20a\x20directory\x20with\x20a\x20','200663iaAqNV','newConfigFileName','2wiScFB','292ficgCf','116601hkMRQV','2989632IIInSk','\x20or\x20run\x20`'];a46_0x36b0=function(){return _0x17d974;};return a46_0x36b0();}function a46_0x5f57(_0x3b087c,_0xbde3b8){_0x3b087c=_0x3b087c-0x153;const _0x36b016=a46_0x36b0();let _0x5f5797=_0x36b016[_0x3b087c];return _0x5f5797;}export const CliErrors=createCliErrors({'cliBinName':CLI_BIN_NAME,'authRequiredHint':'Configure\x20accessKey\x20in\x20'+PRODUCT_CONFIG[a46_0x2abfc5(0x160)]+a46_0x2abfc5(0x155)+CLI_BIN_NAME+a46_0x2abfc5(0x15c),'configMissingHint':a46_0x2abfc5(0x15a)+PRODUCT_CONFIG['newConfigFileName']+'.','notInProjectHint':a46_0x2abfc5(0x15e)+PRODUCT_CONFIG['newConfigFileName']+'\x20file.'});
@@ -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(_0x6abef3,_0x440926){var _0xc6ecea=a47_0xffad,_0x59af08=_0x6abef3();while(!![]){try{var _0x4cc946=parseInt(_0xc6ecea(0x12b))/0x1*(parseInt(_0xc6ecea(0x128))/0x2)+-parseInt(_0xc6ecea(0x126))/0x3*(-parseInt(_0xc6ecea(0x129))/0x4)+parseInt(_0xc6ecea(0x12d))/0x5+-parseInt(_0xc6ecea(0x127))/0x6+-parseInt(_0xc6ecea(0x12c))/0x7+parseInt(_0xc6ecea(0x125))/0x8*(-parseInt(_0xc6ecea(0x12e))/0x9)+parseInt(_0xc6ecea(0x12a))/0xa;if(_0x4cc946===_0x440926)break;else _0x59af08['push'](_0x59af08['shift']());}catch(_0x4d71c7){_0x59af08['push'](_0x59af08['shift']());}}}(a47_0x3f11,0x71794));function a47_0xffad(_0x5580ad,_0x508a22){_0x5580ad=_0x5580ad-0x125;var _0x3f1198=a47_0x3f11();var _0xffad0a=_0x3f1198[_0x5580ad];return _0xffad0a;}import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';import{buildAllFlags as a47_0x3d9aa8}from'@lovrabet/cli-framework';export function buildAllFlags(_0x31812a){return a47_0x3d9aa8(_0x31812a,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});}function a47_0x3f11(){var _0x3f03b0=['1773lGhuAn','31016lHIHbx','48219vpyOPm','1490910LoMMlz','358NEzKTt','68KTaUUl','7506590hXdXvG','3631DYsGgf','3412703BHpSkI','1453610YQFVoX'];a47_0x3f11=function(){return _0x3f03b0;};return a47_0x3f11();}
@@ -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(_0x28e90f,_0x3cfffb){const _0x5826b3=a48_0x269f,_0x21da7b=_0x28e90f();while(!![]){try{const _0x5d1f0b=-parseInt(_0x5826b3(0x1bf))/0x1+-parseInt(_0x5826b3(0x1c6))/0x2*(-parseInt(_0x5826b3(0x1c0))/0x3)+parseInt(_0x5826b3(0x1c3))/0x4+parseInt(_0x5826b3(0x1c2))/0x5*(parseInt(_0x5826b3(0x1c1))/0x6)+parseInt(_0x5826b3(0x1c9))/0x7+parseInt(_0x5826b3(0x1c8))/0x8+parseInt(_0x5826b3(0x1c5))/0x9*(-parseInt(_0x5826b3(0x1c7))/0xa);if(_0x5d1f0b===_0x3cfffb)break;else _0x21da7b['push'](_0x21da7b['shift']());}catch(_0xa72646){_0x21da7b['push'](_0x21da7b['shift']());}}}(a48_0x4d77,0x211e1));function a48_0x269f(_0x142c32,_0x43927b){_0x142c32=_0x142c32-0x1bf;const _0x4d7733=a48_0x4d77();let _0x269fd9=_0x4d7733[_0x142c32];return _0x269fd9;}function a48_0x4d77(){const _0x5dcb69=['178340wGRptN','body','18seZZqa','10dypgpE','495110zxpEoA','1064072ySKSAn','302673jsfuLX','99030vInLds','942TqmODk','667788Rjqyiy','5LSfAPd'];a48_0x4d77=function(){return _0x5dcb69;};return a48_0x4d77();}export function dryRun(_0x2c8393,_0x1651b5){const _0x110a99={'method':_0x2c8393,'url':_0x1651b5},_0x1a3381={'body'(_0x3333ba){const _0x10ff1c=a48_0x269f;return _0x110a99[_0x10ff1c(0x1c4)]=_0x3333ba,_0x1a3381;},'description'(_0x2b97a2){return _0x110a99['description']=_0x2b97a2,_0x1a3381;},'build'(){return{..._0x110a99};}};return _0x1a3381;}
@@ -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_0x3f1ef6=a49_0x2ed5;(function(_0x5b70bf,_0x207c42){const _0xeae0d3=a49_0x2ed5,_0x40ca38=_0x5b70bf();while(!![]){try{const _0x3dfcdf=-parseInt(_0xeae0d3(0x1e4))/0x1*(parseInt(_0xeae0d3(0x1df))/0x2)+-parseInt(_0xeae0d3(0x1e1))/0x3+-parseInt(_0xeae0d3(0x1dd))/0x4*(parseInt(_0xeae0d3(0x1e3))/0x5)+-parseInt(_0xeae0d3(0x1e0))/0x6*(parseInt(_0xeae0d3(0x1e5))/0x7)+-parseInt(_0xeae0d3(0x1de))/0x8*(-parseInt(_0xeae0d3(0x1e9))/0x9)+-parseInt(_0xeae0d3(0x1e8))/0xa*(-parseInt(_0xeae0d3(0x1ea))/0xb)+-parseInt(_0xeae0d3(0x1e7))/0xc*(-parseInt(_0xeae0d3(0x1e2))/0xd);if(_0x3dfcdf===_0x207c42)break;else _0x40ca38['push'](_0x40ca38['shift']());}catch(_0x16fb80){_0x40ca38['push'](_0x40ca38['shift']());}}}(a49_0xbce7,0x788ce));function a49_0xbce7(){const _0x33b268=['6302714ZnwmvW','4nviSPW','8872kjthin','435562cbTXwR','380202QDZayI','72027BVedrA','13PlXlgp','2271820KhYpPj','2aHYgCl','91YnpPsu','parseFlags','16614996ATfWmC','10totsxQ','2223LarSOA'];a49_0xbce7=function(){return _0x33b268;};return a49_0xbce7();}import{createFlagHelpers}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';const helpers=createFlagHelpers(CliErrors);function a49_0x2ed5(_0x8312ae,_0x1a9cb0){_0x8312ae=_0x8312ae-0x1dd;const _0xbce72e=a49_0xbce7();let _0x2ed537=_0xbce72e[_0x8312ae];return _0x2ed537;}export const parseFlags=helpers[a49_0x3f1ef6(0x1e6)];export const validateFlags=helpers['validateFlags'];
@@ -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_0x1a2492=a50_0x20c1;(function(_0x3ab450,_0x28dd66){const _0x2f1c58=a50_0x20c1,_0x2d0516=_0x3ab450();while(!![]){try{const _0x1bdf12=-parseInt(_0x2f1c58(0x11e))/0x1+parseInt(_0x2f1c58(0x122))/0x2*(-parseInt(_0x2f1c58(0x121))/0x3)+-parseInt(_0x2f1c58(0x12a))/0x4*(parseInt(_0x2f1c58(0x11b))/0x5)+-parseInt(_0x2f1c58(0x11f))/0x6*(-parseInt(_0x2f1c58(0x11c))/0x7)+parseInt(_0x2f1c58(0x11d))/0x8+-parseInt(_0x2f1c58(0x123))/0x9*(parseInt(_0x2f1c58(0x126))/0xa)+parseInt(_0x2f1c58(0x125))/0xb;if(_0x1bdf12===_0x28dd66)break;else _0x2d0516['push'](_0x2d0516['shift']());}catch(_0x2f8bc8){_0x2d0516['push'](_0x2d0516['shift']());}}}(a50_0x50df,0x6e6af));function a50_0x50df(){const _0x3ea1a0=['73140nEoBIT','5887cArOGE','6989160sfWFeu','228385NCNoeU','3390hMzZaJ','generateServiceHelp','1087911DFqDvk','4OfNvOU','819549ywntAq','generateFullHelp','12805089kuKKLs','30pswmgl','newConfigFileName','Requires\x20appcode\x20(set\x20via\x20','get','228zMvjni'];a50_0x50df=function(){return _0x3ea1a0;};return a50_0x50df();}import{createHelpGenerators}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';function a50_0x20c1(_0x459044,_0x124028){_0x459044=_0x459044-0x11b;const _0x50dfb9=a50_0x50df();let _0x20c11e=_0x50dfb9[_0x459044];return _0x20c11e;}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':_0x258296=>serviceGroups[a50_0x1a2492(0x129)](_0x258296),'buildAllFlags':buildAllFlags,'appPrerequisiteText':a50_0x1a2492(0x128)+PRODUCT_CONFIG[a50_0x1a2492(0x127)]+'\x20or\x20--appcode).'});export function generateCommandHelp(_0x21f919){return generators['generateCommandHelp'](_0x21f919);}export const generateServiceHelp=generators[a50_0x1a2492(0x120)];export const generateFullHelp=generators[a50_0x1a2492(0x124)];
@@ -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 a51_0x4df7(){var _0x217e4f=['5790aUejcB','419918HRItFg','2SoRLBH','3140604AsxwFL','540MUEPXc','581atmSkW','94185WWoRaU','2216250SRQWnm','19569CaDIsw','20040Bmkany','100616JEDjwe','1130wouxFU'];a51_0x4df7=function(){return _0x217e4f;};return a51_0x4df7();}(function(_0x50663d,_0x4662c0){var _0xead99c=a51_0x5791,_0x137a28=_0x50663d();while(!![]){try{var _0x129901=-parseInt(_0xead99c(0xd6))/0x1*(parseInt(_0xead99c(0xd7))/0x2)+-parseInt(_0xead99c(0xd0))/0x3+-parseInt(_0xead99c(0xcc))/0x4+-parseInt(_0xead99c(0xd5))/0x5*(parseInt(_0xead99c(0xcd))/0x6)+-parseInt(_0xead99c(0xce))/0x7*(-parseInt(_0xead99c(0xd3))/0x8)+parseInt(_0xead99c(0xcf))/0x9*(-parseInt(_0xead99c(0xd4))/0xa)+parseInt(_0xead99c(0xd1))/0xb*(parseInt(_0xead99c(0xd2))/0xc);if(_0x129901===_0x4662c0)break;else _0x137a28['push'](_0x137a28['shift']());}catch(_0x23a7fa){_0x137a28['push'](_0x137a28['shift']());}}}(a51_0x4df7,0xbf76d));export{runCommand}from'../framework/runner.js';export{parseFlags,validateFlags}from'../framework/flags.js';export{formatOutput}from'../framework/output.js';export{generateCommandHelp,generateServiceHelp,generateFullHelp}from'../framework/help.js';function a51_0x5791(_0x20d887,_0xdce447){_0x20d887=_0x20d887-0xcc;var _0x4df78d=a51_0x4df7();var _0x5791b4=_0x4df78d[_0x20d887];return _0x5791b4;}export{extractList,extractPaging}from'../framework/response.js';export{dryRun}from'../framework/dryrun.js';export{riskLevelOrder,isValidFormat}from'../framework/types.js';