@lovrabet/lovrabet-cli 2.1.7 → 2.1.8-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 (117) hide show
  1. package/lib/cli.js +1 -1
  2. package/lib/commands/api-doc/index.js +1 -1
  3. package/lib/commands/app/cache.js +1 -1
  4. package/lib/commands/app/definitions.js +1 -1
  5. package/lib/commands/app/eligibility.js +1 -1
  6. package/lib/commands/app/mock-loader.js +1 -1
  7. package/lib/commands/app/remote-source.js +1 -1
  8. package/lib/commands/app/shared.js +1 -1
  9. package/lib/commands/app-config/get.js +1 -1
  10. package/lib/commands/app-config/index.js +1 -1
  11. package/lib/commands/app-config/shared.js +1 -1
  12. package/lib/commands/artifact/index.js +1 -1
  13. package/lib/commands/auth/index.js +1 -1
  14. package/lib/commands/auth/prompt.js +1 -1
  15. package/lib/commands/bff/detail.js +1 -1
  16. package/lib/commands/bff/exec.js +1 -1
  17. package/lib/commands/bff/index.js +1 -1
  18. package/lib/commands/cli-skill/index.js +1 -1
  19. package/lib/commands/common/config-policy.js +1 -1
  20. package/lib/commands/common/constraints.js +1 -1
  21. package/lib/commands/common/flags.js +1 -1
  22. package/lib/commands/common/local-file.js +1 -0
  23. package/lib/commands/config/definitions.js +1 -1
  24. package/lib/commands/config/shared.js +1 -1
  25. package/lib/commands/data/index.js +1 -1
  26. package/lib/commands/dataset/detail.js +1 -1
  27. package/lib/commands/dataset/index.js +1 -1
  28. package/lib/commands/dataset/list.js +1 -1
  29. package/lib/commands/dataset/sdk-doc.js +1 -1
  30. package/lib/commands/doctor.js +1 -1
  31. package/lib/commands/file/index.js +1 -0
  32. package/lib/commands/init.js +1 -1
  33. package/lib/commands/kb/index.js +1 -1
  34. package/lib/commands/logs/index.js +1 -1
  35. package/lib/commands/ocr/index.js +1 -0
  36. package/lib/commands/personal-bff/index.js +1 -1
  37. package/lib/commands/registry.js +1 -1
  38. package/lib/commands/schema.js +1 -1
  39. package/lib/commands/service/dynamic.js +1 -1
  40. package/lib/commands/service/index.js +1 -1
  41. package/lib/commands/service/registry.js +1 -1
  42. package/lib/commands/skill/commands/create.js +1 -1
  43. package/lib/commands/skill/commands/install.js +1 -1
  44. package/lib/commands/skill/commands/list.js +1 -1
  45. package/lib/commands/skill/commands/push.js +1 -1
  46. package/lib/commands/skill/commands/validate.js +1 -1
  47. package/lib/commands/skill/flags.js +1 -1
  48. package/lib/commands/skill/index.js +1 -1
  49. package/lib/commands/skill/manifest-helpers.js +1 -1
  50. package/lib/commands/skill/push-execute.js +1 -0
  51. package/lib/commands/skill/push-flow-helpers.js +1 -0
  52. package/lib/commands/skill/push-retarget.js +1 -1
  53. package/lib/commands/skill/scopes.js +1 -1
  54. package/lib/commands/skill/summary.js +1 -1
  55. package/lib/commands/skill/templates.js +1 -1
  56. package/lib/commands/skill/validate.js +1 -1
  57. package/lib/commands/sql/detail.js +1 -1
  58. package/lib/commands/sql/exec.js +1 -1
  59. package/lib/commands/sql/index.js +1 -1
  60. package/lib/commands/update.js +1 -1
  61. package/lib/commands/workspace/index.js +1 -1
  62. package/lib/config/schema.js +1 -1
  63. package/lib/constant/app.js +1 -1
  64. package/lib/constant/auth-mode.js +1 -1
  65. package/lib/constant/cli.js +1 -1
  66. package/lib/constant/defaults.js +1 -1
  67. package/lib/constant/distribution.js +1 -1
  68. package/lib/constant/domain.js +1 -1
  69. package/lib/constant/env.js +1 -1
  70. package/lib/constant/output.js +1 -1
  71. package/lib/constant/product.js +1 -1
  72. package/lib/constant/risk.js +1 -1
  73. package/lib/constant/url.js +1 -1
  74. package/lib/context.js +1 -1
  75. package/lib/core/api-client.js +1 -1
  76. package/lib/core/db-resolver.js +1 -1
  77. package/lib/core/sdk-client.js +1 -1
  78. package/lib/errors.js +1 -1
  79. package/lib/framework/build-all-flags.js +1 -1
  80. package/lib/framework/dryrun.js +1 -1
  81. package/lib/framework/flags.js +1 -1
  82. package/lib/framework/help.js +1 -1
  83. package/lib/framework/index.js +1 -1
  84. package/lib/framework/output.js +1 -1
  85. package/lib/framework/preparse.js +1 -1
  86. package/lib/framework/response.js +1 -1
  87. package/lib/framework/runner-confirmation.js +1 -1
  88. package/lib/framework/runner-error.js +1 -1
  89. package/lib/framework/runner.js +1 -1
  90. package/lib/framework/schema-export.js +1 -1
  91. package/lib/framework/service-order.js +1 -1
  92. package/lib/framework/types.js +1 -1
  93. package/lib/generated/build-info.js +1 -1
  94. package/lib/help.js +1 -1
  95. package/lib/skills/npx-skills-add.js +1 -1
  96. package/lib/skills/runtime-skill-sync/constants.js +1 -1
  97. package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
  98. package/lib/skills/runtime-skill-sync/hashing.js +1 -1
  99. package/lib/skills/runtime-skill-sync/links.js +1 -1
  100. package/lib/skills/runtime-skill-sync/list-local.js +1 -1
  101. package/lib/skills/runtime-skill-sync/local-files.js +1 -1
  102. package/lib/skills/runtime-skill-sync/materialize.js +1 -1
  103. package/lib/skills/runtime-skill-sync/metadata.js +1 -1
  104. package/lib/skills/runtime-skill-sync/paths.js +1 -1
  105. package/lib/skills/runtime-skill-sync/push.js +1 -1
  106. package/lib/skills/runtime-skill-sync/scopes.js +1 -1
  107. package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
  108. package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
  109. package/lib/skills/runtime-skill-sync.js +1 -1
  110. package/lib/utils/apply-jq-filter.js +1 -1
  111. package/lib/utils/logger.js +1 -1
  112. package/lib/utils/params.js +1 -1
  113. package/lib/utils/platform.js +1 -1
  114. package/lib/utils/update-notice.js +1 -1
  115. package/lib/utils/version.js +1 -1
  116. package/lib/utils/write-cli-side-channel.js +1 -1
  117. package/package.json +1 -1
@@ -1 +1 @@
1
- const a54_0x4675cb=a54_0x5766;(function(_0x29d306,_0x54f27b){const _0x3612fb=a54_0x5766,_0x4e6f5c=_0x29d306();while(!![]){try{const _0x4846be=-parseInt(_0x3612fb(0xf9))/0x1*(parseInt(_0x3612fb(0xde))/0x2)+parseInt(_0x3612fb(0xf7))/0x3+parseInt(_0x3612fb(0xe6))/0x4+-parseInt(_0x3612fb(0xf8))/0x5*(-parseInt(_0x3612fb(0x101))/0x6)+parseInt(_0x3612fb(0xe7))/0x7*(-parseInt(_0x3612fb(0x11a))/0x8)+parseInt(_0x3612fb(0x10e))/0x9*(parseInt(_0x3612fb(0x103))/0xa)+-parseInt(_0x3612fb(0x104))/0xb;if(_0x4846be===_0x54f27b)break;else _0x4e6f5c['push'](_0x4e6f5c['shift']());}catch(_0x56ac7f){_0x4e6f5c['push'](_0x4e6f5c['shift']());}}}(a54_0x2cfc,0x53d3f));function a54_0x2cfc(){const _0x234f16=['\x20\x20Restart\x20your\x20terminal\x20to\x20use\x20the\x20new\x20version.','trim','Refresh\x20CLI\x20Built-in\x20Skill\x20after\x20updating','latest','run','Already\x20up\x20to\x20date\x20(v','source','warn','status','json','nonInteractive','Update\x20','skipped','\x20CLI\x20from\x20npm','map','unknown','151490OSMmuh','\x20->\x20','Checking\x20npm\x20dist-tags...','object','prerelease','/dist-tags','\x20\x20Try\x20manually:\x20npm\x20install\x20-g\x20','Updating\x20','2033756SOznZO','581IkQsZt','no-skills','str','log','write','Install\x20the\x20version\x20from\x20npm\x20beta\x20dist-tag','Current\x20version:\x20','--latest,\x20--beta,\x20and\x20version\x20cannot\x20be\x20used\x20together.','filter','boolean','\x20\x20Run\x20manually:\x20lovrabet\x20cli-skill\x20install','args','Install\x20the\x20version\x20from\x20npm\x20latest\x20dist-tag','flag','string','\x20\x20Run\x20manually:\x20npm\x20install\x20-g\x20','1406940XzwbQC','2045bTixVL','1wTEatk','minor','beta','version','stdout','major','Use\x20full\x20semver\x20versions\x20such\x20as\x202.0.6\x20or\x202.0.7-beta.1.','Unable\x20to\x20resolve\x20','1614cMrFOi','skills','90zgZlhc','6182319PvAxnk','/-/package/','\x20\x20Skipped\x20CLI\x20Built-in\x20Skill\x20install\x20(','Skipping\x20CLI\x20Built-in\x20Skill\x20refresh\x20(--no-skills).','toString','Update\x20failed:\x20','stderr','\x20version\x20from\x20npm.','Choose\x20exactly\x20one\x20target:\x20--latest,\x20--beta,\x20or\x20--version\x20<version>.','timeout','505071pTEpIv','Skip\x20CLI\x20Built-in\x20Skill\x20refresh\x20after\x20updating','update','exit\x20','fromEntries','error','join','Checking\x20CLI\x20Built-in\x20Skill...','Invalid\x20version:\x20','entries','pipe','\x20\x20CLI\x20Built-in\x20Skill\x20update\x20failed:\x20','58928nUrQSp','bool','cwd','validation'];a54_0x2cfc=function(){return _0x234f16;};return a54_0x2cfc();}import{spawnSync}from'node:child_process';import{CliErrors}from'../errors.js';import{CLI_BIN_NAME}from'../constant/cli.js';import{LOVRABET_NPM_PACKAGE_NAME,LOVRABET_SKILL_SOURCE,NPM_REGISTRY_BASE_URL}from'../constant/distribution.js';function a54_0x5766(_0x266aa4,_0x1a3fe8){_0x266aa4=_0x266aa4-0xda;const _0x2cfc0f=a54_0x2cfc();let _0x57667f=_0x2cfc0f[_0x266aa4];return _0x57667f;}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':a54_0x4675cb(0x121),'type':'boolean','description':a54_0x4675cb(0xf3),'default':![]},{'name':a54_0x4675cb(0xfb),'type':a54_0x4675cb(0xf0),'description':a54_0x4675cb(0xec),'default':![]},{'name':a54_0x4675cb(0xfc),'type':'string','description':'Install\x20a\x20specific\x20CLI\x20version'},{'name':'no-skills','type':a54_0x4675cb(0xf0),'description':a54_0x4675cb(0x10f),'default':![]},{'name':a54_0x4675cb(0x102),'type':a54_0x4675cb(0xf0),'description':a54_0x4675cb(0x120),'default':!![],'hidden':!![]}];function parseSemver(_0x23cc5e){const _0x5353d0=a54_0x4675cb,_0x11ff9e=_0x23cc5e[_0x5353d0(0x11f)]()['match'](/^(\d+)\.(\d+)\.(\d+)(?:-([0-9A-Za-z.-]+))?$/);if(!_0x11ff9e)return null;return{'major':Number(_0x11ff9e[0x1]),'minor':Number(_0x11ff9e[0x2]),'patch':Number(_0x11ff9e[0x3]),'prerelease':_0x11ff9e[0x4]};}function compareSemver(_0x390e8b,_0x26ab63){const _0x3d9cab=a54_0x4675cb,_0x15dfe3=parseSemver(_0x390e8b),_0x1b9e6c=parseSemver(_0x26ab63);if(!_0x15dfe3||!_0x1b9e6c)throw CliErrors[_0x3d9cab(0x11d)]('Version\x20comparison\x20failed.',_0x3d9cab(0xff));for(const _0x1023c2 of[_0x3d9cab(0xfe),_0x3d9cab(0xfa),'patch']){if(_0x15dfe3[_0x1023c2]<_0x1b9e6c[_0x1023c2])return-0x1;if(_0x15dfe3[_0x1023c2]>_0x1b9e6c[_0x1023c2])return 0x1;}if(!_0x15dfe3[_0x3d9cab(0xe2)]&&!_0x1b9e6c[_0x3d9cab(0xe2)])return 0x0;if(!_0x15dfe3[_0x3d9cab(0xe2)])return 0x1;if(!_0x1b9e6c[_0x3d9cab(0xe2)])return-0x1;if(_0x15dfe3['prerelease']===_0x1b9e6c[_0x3d9cab(0xe2)])return 0x0;return _0x15dfe3[_0x3d9cab(0xe2)]<_0x1b9e6c[_0x3d9cab(0xe2)]?-0x1:0x1;}function getRequestedVersion(_0x31f5fa){const _0x5b5378=a54_0x4675cb,_0x17c092=_0x31f5fa[_0x5b5378(0xe9)](_0x5b5378(0xfc))[_0x5b5378(0x11f)]();if(_0x17c092)return _0x17c092;return String(_0x31f5fa[_0x5b5378(0xf2)]?.[0x0]??'')[_0x5b5378(0x11f)]();}function shouldSkipCliBuiltInSkill(_0x1b0352){const _0x7701e0=a54_0x4675cb;return _0x1b0352['bool'](_0x7701e0(0xe8))||_0x1b0352[_0x7701e0(0xf4)]('skills')===![];}async function validateUpdateFlags(_0x569f13){const _0x5981c9=a54_0x4675cb,_0x593b4a=getRequestedVersion(_0x569f13),_0x5ee0f8=[_0x569f13[_0x5981c9(0x11b)](_0x5981c9(0x121))?_0x5981c9(0x121):'',_0x569f13[_0x5981c9(0x11b)](_0x5981c9(0xfb))?_0x5981c9(0xfb):'',_0x593b4a?'version':''][_0x5981c9(0xef)](Boolean);if(_0x5ee0f8['length']>0x1)throw CliErrors[_0x5981c9(0x11d)](_0x5981c9(0xee),_0x5981c9(0x10c));if(_0x593b4a&&!parseSemver(_0x593b4a))throw CliErrors[_0x5981c9(0x11d)](_0x5981c9(0x116)+_0x593b4a,'Use\x20a\x20full\x20semver\x20such\x20as\x202.0.6\x20or\x202.0.7-beta.1.');}async function fetchNpmDistTags(){const _0x44dab4=a54_0x4675cb;try{const _0x5540b1=NPM_REGISTRY_BASE_URL+_0x44dab4(0x105)+encodeURIComponent(LOVRABET_NPM_PACKAGE_NAME)+_0x44dab4(0xe3),_0xb9b039=await fetch(_0x5540b1,{'signal':AbortSignal[_0x44dab4(0x10d)](0x2710)});if(!_0xb9b039['ok'])return null;const _0x1946f6=await _0xb9b039[_0x44dab4(0x127)]();if(!_0x1946f6||typeof _0x1946f6!==_0x44dab4(0xe1))return null;return Object[_0x44dab4(0x112)](Object[_0x44dab4(0x117)](_0x1946f6)['filter'](([,_0x5d62c7])=>typeof _0x5d62c7===_0x44dab4(0xf5)&&_0x5d62c7[_0x44dab4(0x11f)]())[_0x44dab4(0xdc)](([_0x23b077,_0x28ff46])=>[_0x23b077,String(_0x28ff46)[_0x44dab4(0x11f)]()]));}catch{return null;}}async function resolveTargetVersion(_0x4530aa){const _0x46b693=a54_0x4675cb,_0x1edd18=getRequestedVersion(_0x4530aa);if(_0x1edd18)return{'version':_0x1edd18,'source':'version'};const _0x46a7e8=_0x4530aa[_0x46b693(0x11b)]('beta')?_0x46b693(0xfb):_0x46b693(0x121),_0x12220f=await fetchNpmDistTags(),_0x5f11f3=_0x12220f?.[_0x46a7e8];if(!_0x5f11f3)return null;return{'version':_0x5f11f3,'source':_0x46a7e8};}function shouldInstallTarget(_0x31c7ab,_0x496faa){const _0x2a3cc2=a54_0x4675cb,_0x2d900b=compareSemver(_0x31c7ab,_0x496faa[_0x2a3cc2(0xfc)]);if(_0x496faa[_0x2a3cc2(0x124)]===_0x2a3cc2(0xfc))return _0x2d900b!==0x0;return _0x2d900b<0x0;}function installCliPackage(_0x21e4e1,_0x5f29f9){const _0x53321c=a54_0x4675cb,_0x120288=resolveNpmBin('npm'),_0x597b8f=['install','-g',LOVRABET_NPM_PACKAGE_NAME+'@'+_0x21e4e1];console[_0x53321c(0xea)]('*\x20'+[_0x120288,..._0x597b8f][_0x53321c(0x114)]('\x20'));const _0x4871d6=spawnSync(_0x120288,_0x597b8f,{'cwd':process[_0x53321c(0x11c)](),'stdio':_0x5f29f9?_0x53321c(0x118):'inherit','env':process.env,'shell':![]});if(_0x4871d6['status']===0x0)return{'ok':!![]};let _0x356e32=_0x4871d6[_0x53321c(0x113)]?.['message']||_0x53321c(0x111)+(_0x4871d6[_0x53321c(0x126)]??_0x53321c(0xdd));if(_0x5f29f9){const _0x5a6ff1=_0x4871d6[_0x53321c(0x10a)]?_0x4871d6['stderr'][_0x53321c(0x108)]()['trim']():'',_0x3c4ffa=_0x4871d6[_0x53321c(0xfd)]?_0x4871d6['stdout'][_0x53321c(0x108)]()[_0x53321c(0x11f)]():'';if(_0x5a6ff1)_0x356e32=_0x5a6ff1;else{if(_0x3c4ffa)_0x356e32=_0x3c4ffa;}}return{'ok':![],'error':_0x356e32};}async function installCliBuiltInSkill(_0x51dcc1){const _0x543b91=a54_0x4675cb;console[_0x543b91(0xea)](_0x543b91(0x115));const _0x33d3ad=runNpxSkillsAddGlobal(process[_0x543b91(0x11c)](),LOVRABET_SKILL_SOURCE,{'stdio':_0x51dcc1?_0x543b91(0x118):'inherit'});if(_0x33d3ad[_0x543b91(0xda)]){console['log'](_0x543b91(0x106)+LOVRABET_SKIP_NPX_SKILLS_ENV+'=1).');return;}if(_0x33d3ad['ok']){console[_0x543b91(0xea)]('\x20\x20CLI\x20Built-in\x20Skill\x20is\x20up\x20to\x20date.');return;}console['warn'](_0x543b91(0x119)+(_0x33d3ad['error']||_0x543b91(0xdd))),console[_0x543b91(0xea)](_0x543b91(0xf1));}async function execute(_0x5df999){const _0x316e97=a54_0x4675cb;await validateUpdateFlags(_0x5df999);const _0x266bf8=getCliVersion();console[_0x316e97(0xea)](_0x316e97(0xed)+_0x266bf8),console[_0x316e97(0xea)](_0x316e97(0xe0));const _0x4a1495=await resolveTargetVersion(_0x5df999);if(!_0x4a1495){const _0x12dc9c=_0x5df999['bool'](_0x316e97(0xfb))?'beta':_0x316e97(0x121),_0x495f19=_0x316e97(0x100)+_0x12dc9c+_0x316e97(0x10b);return console[_0x316e97(0x125)](_0x495f19),console[_0x316e97(0xea)](_0x316e97(0xf6)+LOVRABET_NPM_PACKAGE_NAME+'@'+_0x12dc9c),{'ok':![]};}if(!shouldInstallTarget(_0x266bf8,_0x4a1495)){const _0x530bfe=_0x4a1495[_0x316e97(0x124)]===_0x316e97(0xfc)?'Already\x20on\x20requested\x20version\x20(v'+_0x4a1495[_0x316e97(0xfc)]+').':_0x316e97(0x123)+_0x4a1495[_0x316e97(0xfc)]+').';return console[_0x316e97(0xea)](_0x530bfe),shouldSkipCliBuiltInSkill(_0x5df999)?console[_0x316e97(0xea)](_0x316e97(0x107)):await installCliBuiltInSkill(_0x5df999[_0x316e97(0x128)]),{'ok':!![]};}console['log'](_0x316e97(0xe5)+LOVRABET_NPM_PACKAGE_NAME+':\x20'+_0x266bf8+_0x316e97(0xdf)+_0x4a1495[_0x316e97(0xfc)]);const _0x3e9003=installCliPackage(_0x4a1495[_0x316e97(0xfc)],_0x5df999[_0x316e97(0x128)]);if(!_0x3e9003['ok']){const _0x16e6ff=_0x316e97(0x109)+(_0x3e9003[_0x316e97(0x113)]||'unknown');return console[_0x316e97(0x113)](_0x16e6ff),console[_0x316e97(0xea)](_0x316e97(0xe4)+LOVRABET_NPM_PACKAGE_NAME+'@'+_0x4a1495[_0x316e97(0xfc)]),{'ok':![]};}return console[_0x316e97(0xea)]('Updated\x20to\x20v'+_0x4a1495[_0x316e97(0xfc)]+'.'),console[_0x316e97(0xea)](_0x316e97(0x11e)),shouldSkipCliBuiltInSkill(_0x5df999)?console[_0x316e97(0xea)]('Skipping\x20CLI\x20Built-in\x20Skill\x20refresh\x20(--no-skills).'):await installCliBuiltInSkill(_0x5df999[_0x316e97(0x128)]),{'ok':!![]};}export const updateDefinition={'service':a54_0x4675cb(0x110),'command':a54_0x4675cb(0x122),'description':a54_0x4675cb(0x129)+CLI_BIN_NAME+a54_0x4675cb(0xdb),'risk':a54_0x4675cb(0xeb),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':updateFlags,'validate':validateUpdateFlags,'execute':execute};
1
+ const a59_0x5d6a85=a59_0x212f;(function(_0x323458,_0x206d89){const _0x5c23c4=a59_0x212f,_0x1c0139=_0x323458();while(!![]){try{const _0x1a9ffe=-parseInt(_0x5c23c4(0x1dc))/0x1+parseInt(_0x5c23c4(0x1cc))/0x2+-parseInt(_0x5c23c4(0x1c4))/0x3+-parseInt(_0x5c23c4(0x1b9))/0x4+parseInt(_0x5c23c4(0x1dd))/0x5*(parseInt(_0x5c23c4(0x1cd))/0x6)+parseInt(_0x5c23c4(0x1cf))/0x7*(-parseInt(_0x5c23c4(0x1be))/0x8)+parseInt(_0x5c23c4(0x1c0))/0x9;if(_0x1a9ffe===_0x206d89)break;else _0x1c0139['push'](_0x1c0139['shift']());}catch(_0x4bbc08){_0x1c0139['push'](_0x1c0139['shift']());}}}(a59_0x2a63,0xd8bfa));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':'latest','type':'boolean','description':a59_0x5d6a85(0x1b5),'default':![]},{'name':'beta','type':'boolean','description':a59_0x5d6a85(0x1b0),'default':![]},{'name':a59_0x5d6a85(0x1e7),'type':a59_0x5d6a85(0x1a5),'description':a59_0x5d6a85(0x1da)},{'name':a59_0x5d6a85(0x1d2),'type':a59_0x5d6a85(0x1bb),'description':'Skip\x20CLI\x20Built-in\x20Skill\x20refresh\x20after\x20updating','default':![]},{'name':a59_0x5d6a85(0x1cb),'type':a59_0x5d6a85(0x1bb),'description':'Refresh\x20CLI\x20Built-in\x20Skill\x20after\x20updating','default':!![],'hidden':!![]}];function parseSemver(_0x23b365){const _0x941de5=a59_0x5d6a85,_0x27e517=_0x23b365[_0x941de5(0x1b1)]()[_0x941de5(0x1c8)](/^(\d+)\.(\d+)\.(\d+)(?:-([0-9A-Za-z.-]+))?$/);if(!_0x27e517)return null;return{'major':Number(_0x27e517[0x1]),'minor':Number(_0x27e517[0x2]),'patch':Number(_0x27e517[0x3]),'prerelease':_0x27e517[0x4]};}function compareSemver(_0x3ba9da,_0x7f4c14){const _0x1b86a9=a59_0x5d6a85,_0x300be6=parseSemver(_0x3ba9da),_0xab97ec=parseSemver(_0x7f4c14);if(!_0x300be6||!_0xab97ec)throw CliErrors[_0x1b86a9(0x1b6)](_0x1b86a9(0x1df),_0x1b86a9(0x1b3));for(const _0x40ebe3 of[_0x1b86a9(0x1d3),_0x1b86a9(0x1c1),'patch']){if(_0x300be6[_0x40ebe3]<_0xab97ec[_0x40ebe3])return-0x1;if(_0x300be6[_0x40ebe3]>_0xab97ec[_0x40ebe3])return 0x1;}if(!_0x300be6[_0x1b86a9(0x1c2)]&&!_0xab97ec[_0x1b86a9(0x1c2)])return 0x0;if(!_0x300be6[_0x1b86a9(0x1c2)])return 0x1;if(!_0xab97ec['prerelease'])return-0x1;if(_0x300be6[_0x1b86a9(0x1c2)]===_0xab97ec[_0x1b86a9(0x1c2)])return 0x0;return _0x300be6[_0x1b86a9(0x1c2)]<_0xab97ec[_0x1b86a9(0x1c2)]?-0x1:0x1;}function a59_0x212f(_0xf5ad4f,_0x44304d){_0xf5ad4f=_0xf5ad4f-0x19d;const _0x2a63d6=a59_0x2a63();let _0x212f17=_0x2a63d6[_0xf5ad4f];return _0x212f17;}function a59_0x2a63(){const _0x390640=['minor','prerelease','status','2132310boPJHn','\x20\x20CLI\x20Built-in\x20Skill\x20update\x20failed:\x20','timeout','log','match','Invalid\x20version:\x20','Update\x20failed:\x20','skills','1029516CJvskJ','12kcrZYU','length','5523sLbXxd','toString','source','no-skills','major','\x20\x20Skipped\x20CLI\x20Built-in\x20Skill\x20install\x20(','skipped','join','Checking\x20npm\x20dist-tags...','bool','filter','Install\x20a\x20specific\x20CLI\x20version','fromEntries','1184324GxsiVj','3420620aOIEvS','inherit','Version\x20comparison\x20failed.','cwd','\x20CLI\x20from\x20npm','error','\x20version\x20from\x20npm.','run','write','unknown','version','json','stdout','stderr','pipe','map','Choose\x20exactly\x20one\x20target:\x20--latest,\x20--beta,\x20or\x20--version\x20<version>.','\x20->\x20','flag','\x20\x20CLI\x20Built-in\x20Skill\x20is\x20up\x20to\x20date.','string','nonInteractive','/dist-tags','message','Checking\x20CLI\x20Built-in\x20Skill...','/-/package/','\x20\x20Try\x20manually:\x20npm\x20install\x20-g\x20','\x20\x20Restart\x20your\x20terminal\x20to\x20use\x20the\x20new\x20version.','Already\x20up\x20to\x20date\x20(v','Skipping\x20CLI\x20Built-in\x20Skill\x20refresh\x20(--no-skills).','entries','Install\x20the\x20version\x20from\x20npm\x20beta\x20dist-tag','trim','install','Use\x20full\x20semver\x20versions\x20such\x20as\x202.0.6\x20or\x202.0.7-beta.1.','=1).','Install\x20the\x20version\x20from\x20npm\x20latest\x20dist-tag','validation','exit\x20','--latest,\x20--beta,\x20and\x20version\x20cannot\x20be\x20used\x20together.','4131956afrUTA','beta','boolean','npm','latest','13032cizsUk','\x20\x20Run\x20manually:\x20npm\x20install\x20-g\x20','28963440yLFxVI'];a59_0x2a63=function(){return _0x390640;};return a59_0x2a63();}function getRequestedVersion(_0x1478e0){const _0x45876c=a59_0x5d6a85,_0xd96a20=_0x1478e0['str']('version')[_0x45876c(0x1b1)]();if(_0xd96a20)return _0xd96a20;return String(_0x1478e0['args']?.[0x0]??'')[_0x45876c(0x1b1)]();}function shouldSkipCliBuiltInSkill(_0x10be23){const _0x5dc118=a59_0x5d6a85;return _0x10be23[_0x5dc118(0x1d8)](_0x5dc118(0x1d2))||_0x10be23[_0x5dc118(0x1a3)](_0x5dc118(0x1cb))===![];}async function validateUpdateFlags(_0xf8042b){const _0x2455f1=a59_0x5d6a85,_0x3ac07d=getRequestedVersion(_0xf8042b),_0x16ec03=[_0xf8042b[_0x2455f1(0x1d8)]('latest')?'latest':'',_0xf8042b[_0x2455f1(0x1d8)](_0x2455f1(0x1ba))?_0x2455f1(0x1ba):'',_0x3ac07d?_0x2455f1(0x1e7):''][_0x2455f1(0x1d9)](Boolean);if(_0x16ec03[_0x2455f1(0x1ce)]>0x1)throw CliErrors['validation'](_0x2455f1(0x1b8),_0x2455f1(0x1a1));if(_0x3ac07d&&!parseSemver(_0x3ac07d))throw CliErrors[_0x2455f1(0x1b6)](_0x2455f1(0x1c9)+_0x3ac07d,'Use\x20a\x20full\x20semver\x20such\x20as\x202.0.6\x20or\x202.0.7-beta.1.');}async function fetchNpmDistTags(){const _0x39b844=a59_0x5d6a85;try{const _0x58c3db=NPM_REGISTRY_BASE_URL+_0x39b844(0x1aa)+encodeURIComponent(LOVRABET_NPM_PACKAGE_NAME)+_0x39b844(0x1a7),_0x263486=await fetch(_0x58c3db,{'signal':AbortSignal[_0x39b844(0x1c6)](0x2710)});if(!_0x263486['ok'])return null;const _0x194035=await _0x263486[_0x39b844(0x1e8)]();if(!_0x194035||typeof _0x194035!=='object')return null;return Object[_0x39b844(0x1db)](Object[_0x39b844(0x1af)](_0x194035)['filter'](([,_0x458be1])=>typeof _0x458be1===_0x39b844(0x1a5)&&_0x458be1[_0x39b844(0x1b1)]())[_0x39b844(0x1a0)](([_0xb657ae,_0x19618b])=>[_0xb657ae,String(_0x19618b)['trim']()]));}catch{return null;}}async function resolveTargetVersion(_0x35b5da){const _0x59824c=a59_0x5d6a85,_0x11bbd8=getRequestedVersion(_0x35b5da);if(_0x11bbd8)return{'version':_0x11bbd8,'source':_0x59824c(0x1e7)};const _0x17b220=_0x35b5da['bool']('beta')?_0x59824c(0x1ba):'latest',_0xd33dd3=await fetchNpmDistTags(),_0xe44888=_0xd33dd3?.[_0x17b220];if(!_0xe44888)return null;return{'version':_0xe44888,'source':_0x17b220};}function shouldInstallTarget(_0x5724a5,_0x17c542){const _0xfa6759=a59_0x5d6a85,_0x5cb810=compareSemver(_0x5724a5,_0x17c542[_0xfa6759(0x1e7)]);if(_0x17c542['source']===_0xfa6759(0x1e7))return _0x5cb810!==0x0;return _0x5cb810<0x0;}function installCliPackage(_0x4bb51b,_0x1ba42f){const _0xb519ea=a59_0x5d6a85,_0xf3dbb3=resolveNpmBin(_0xb519ea(0x1bc)),_0xb2e79b=[_0xb519ea(0x1b2),'-g',LOVRABET_NPM_PACKAGE_NAME+'@'+_0x4bb51b];console[_0xb519ea(0x1c7)]('*\x20'+[_0xf3dbb3,..._0xb2e79b][_0xb519ea(0x1d6)]('\x20'));const _0x219c1e=spawnSync(_0xf3dbb3,_0xb2e79b,{'cwd':process[_0xb519ea(0x1e0)](),'stdio':_0x1ba42f?_0xb519ea(0x19f):_0xb519ea(0x1de),'env':process.env,'shell':![]});if(_0x219c1e[_0xb519ea(0x1c3)]===0x0)return{'ok':!![]};let _0x39ca74=_0x219c1e[_0xb519ea(0x1e2)]?.[_0xb519ea(0x1a8)]||_0xb519ea(0x1b7)+(_0x219c1e['status']??'unknown');if(_0x1ba42f){const _0x22bdd7=_0x219c1e[_0xb519ea(0x19e)]?_0x219c1e[_0xb519ea(0x19e)][_0xb519ea(0x1d0)]()['trim']():'',_0x555df4=_0x219c1e[_0xb519ea(0x19d)]?_0x219c1e[_0xb519ea(0x19d)]['toString']()[_0xb519ea(0x1b1)]():'';if(_0x22bdd7)_0x39ca74=_0x22bdd7;else{if(_0x555df4)_0x39ca74=_0x555df4;}}return{'ok':![],'error':_0x39ca74};}async function installCliBuiltInSkill(_0xc886ff){const _0x262c79=a59_0x5d6a85;console['log'](_0x262c79(0x1a9));const _0x33afe4=runNpxSkillsAddGlobal(process[_0x262c79(0x1e0)](),LOVRABET_SKILL_SOURCE,{'stdio':_0xc886ff?_0x262c79(0x19f):_0x262c79(0x1de)});if(_0x33afe4[_0x262c79(0x1d5)]){console[_0x262c79(0x1c7)](_0x262c79(0x1d4)+LOVRABET_SKIP_NPX_SKILLS_ENV+_0x262c79(0x1b4));return;}if(_0x33afe4['ok']){console[_0x262c79(0x1c7)](_0x262c79(0x1a4));return;}console['warn'](_0x262c79(0x1c5)+(_0x33afe4[_0x262c79(0x1e2)]||_0x262c79(0x1e6))),console[_0x262c79(0x1c7)]('\x20\x20Run\x20manually:\x20lovrabet\x20cli-skill\x20install');}async function execute(_0x4ac270){const _0x419dd6=a59_0x5d6a85;await validateUpdateFlags(_0x4ac270);const _0x2e1188=getCliVersion();console[_0x419dd6(0x1c7)]('Current\x20version:\x20'+_0x2e1188),console[_0x419dd6(0x1c7)](_0x419dd6(0x1d7));const _0x595832=await resolveTargetVersion(_0x4ac270);if(!_0x595832){const _0x4a9586=_0x4ac270[_0x419dd6(0x1d8)](_0x419dd6(0x1ba))?_0x419dd6(0x1ba):_0x419dd6(0x1bd),_0x7dad5b='Unable\x20to\x20resolve\x20'+_0x4a9586+_0x419dd6(0x1e3);return console['warn'](_0x7dad5b),console[_0x419dd6(0x1c7)](_0x419dd6(0x1bf)+LOVRABET_NPM_PACKAGE_NAME+'@'+_0x4a9586),{'ok':![]};}if(!shouldInstallTarget(_0x2e1188,_0x595832)){const _0x24881d=_0x595832[_0x419dd6(0x1d1)]===_0x419dd6(0x1e7)?'Already\x20on\x20requested\x20version\x20(v'+_0x595832[_0x419dd6(0x1e7)]+').':_0x419dd6(0x1ad)+_0x595832[_0x419dd6(0x1e7)]+').';return console[_0x419dd6(0x1c7)](_0x24881d),shouldSkipCliBuiltInSkill(_0x4ac270)?console['log'](_0x419dd6(0x1ae)):await installCliBuiltInSkill(_0x4ac270[_0x419dd6(0x1a6)]),{'ok':!![]};}console[_0x419dd6(0x1c7)]('Updating\x20'+LOVRABET_NPM_PACKAGE_NAME+':\x20'+_0x2e1188+_0x419dd6(0x1a2)+_0x595832['version']);const _0x2e15d0=installCliPackage(_0x595832[_0x419dd6(0x1e7)],_0x4ac270[_0x419dd6(0x1a6)]);if(!_0x2e15d0['ok']){const _0x1d8900=_0x419dd6(0x1ca)+(_0x2e15d0[_0x419dd6(0x1e2)]||_0x419dd6(0x1e6));return console['error'](_0x1d8900),console[_0x419dd6(0x1c7)](_0x419dd6(0x1ab)+LOVRABET_NPM_PACKAGE_NAME+'@'+_0x595832[_0x419dd6(0x1e7)]),{'ok':![]};}return console[_0x419dd6(0x1c7)]('Updated\x20to\x20v'+_0x595832['version']+'.'),console[_0x419dd6(0x1c7)](_0x419dd6(0x1ac)),shouldSkipCliBuiltInSkill(_0x4ac270)?console['log'](_0x419dd6(0x1ae)):await installCliBuiltInSkill(_0x4ac270[_0x419dd6(0x1a6)]),{'ok':!![]};}export const updateDefinition={'service':'update','command':a59_0x5d6a85(0x1e4),'description':'Update\x20'+CLI_BIN_NAME+a59_0x5d6a85(0x1e1),'risk':a59_0x5d6a85(0x1e5),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':updateFlags,'validate':validateUpdateFlags,'execute':execute};
@@ -1 +1 @@
1
- const a55_0x4b5c4d=a55_0x5791;(function(_0x15ad91,_0x20d111){const _0x3bce6e=a55_0x5791,_0x14183a=_0x15ad91();while(!![]){try{const _0x48be4b=-parseInt(_0x3bce6e(0xb0))/0x1*(parseInt(_0x3bce6e(0xbb))/0x2)+-parseInt(_0x3bce6e(0xb6))/0x3*(parseInt(_0x3bce6e(0xbc))/0x4)+-parseInt(_0x3bce6e(0x9e))/0x5*(-parseInt(_0x3bce6e(0xb1))/0x6)+parseInt(_0x3bce6e(0x97))/0x7*(parseInt(_0x3bce6e(0x9b))/0x8)+parseInt(_0x3bce6e(0xa8))/0x9+parseInt(_0x3bce6e(0xc3))/0xa*(-parseInt(_0x3bce6e(0xb2))/0xb)+-parseInt(_0x3bce6e(0xb4))/0xc;if(_0x48be4b===_0x20d111)break;else _0x14183a['push'](_0x14183a['shift']());}catch(_0x5e0e35){_0x14183a['push'](_0x14183a['shift']());}}}(a55_0x288f,0x5e12a));import{CLI_BIN_NAME}from'../../constant/cli.js';function a55_0x5791(_0xbb8ea1,_0x28acaf){_0xbb8ea1=_0xbb8ea1-0x97;const _0x288ff9=a55_0x288f();let _0x5791f7=_0x288ff9[_0xbb8ea1];return _0x5791f7;}import{DEFAULT_CONFIG_VALUES}from'../../constant/defaults.js';import{RUNTIME_ENV_VALUES}from'../../constant/env.js';import{CliErrors}from'../../errors.js';import{readConfigFile,resolveWriteConfigPath,writeConfigFile}from'../../context.js';import{findAppByName,isRuntimeAccessibleApp,runtimeInaccessibleAppError}from'../../commands/app/eligibility.js';const WORKSPACE_USE_FLAGS=[{'name':a55_0x4b5c4d(0xc4),'type':a55_0x4b5c4d(0xc1),'description':a55_0x4b5c4d(0xcf)},{'name':a55_0x4b5c4d(0xc2),'type':'string','description':a55_0x4b5c4d(0xcc)},{'name':a55_0x4b5c4d(0xad),'type':'string','description':a55_0x4b5c4d(0x9a),'enum':[...RUNTIME_ENV_VALUES]},{'name':a55_0x4b5c4d(0xc5),'type':'boolean','description':a55_0x4b5c4d(0xae),'default':![]}];async function executeWorkspaceUse(_0xc010a9,_0x7ff3a6){const _0x1a85ba=a55_0x4b5c4d,_0x3fa99f=_0xc010a9[_0x1a85ba(0xab)](_0x1a85ba(0xc4))[_0x1a85ba(0xd0)](),_0xfae665=_0xc010a9[_0x1a85ba(0xab)](_0x1a85ba(0xc2))[_0x1a85ba(0xd0)](),_0x18af04=_0xc010a9[_0x1a85ba(0xab)](_0x1a85ba(0xad))[_0x1a85ba(0xd0)](),_0x53b9a9=resolveWorkspaceEnv(_0x18af04||_0xc010a9[_0x1a85ba(0xcd)]||DEFAULT_CONFIG_VALUES['env']);if(!_0x3fa99f&&!_0xfae665)throw CliErrors[_0x1a85ba(0x98)]('Missing\x20workspace\x20app\x20selector.',_0x1a85ba(0xbf)+CLI_BIN_NAME+_0x1a85ba(0xb5)+_0x7ff3a6+_0x1a85ba(0xa0)+CLI_BIN_NAME+_0x1a85ba(0xb5)+_0x7ff3a6+_0x1a85ba(0xbd));const _0x32b260=_0xfae665||await resolveRemoteAppCode({'command':_0x7ff3a6,'appName':_0x3fa99f,'env':_0x53b9a9,'accessKey':_0xc010a9[_0x1a85ba(0xc7)]}),_0x5959fd=writeWorkspaceConfig({'command':_0x7ff3a6,'appName':_0x3fa99f,'appcode':_0x32b260,'env':_0x53b9a9,'shouldWriteEnv':!!_0x18af04,'accessKey':_0xc010a9[_0x1a85ba(0xc7)]});return{'ok':!![],'data':{'configPath':_0x5959fd,'app':_0x3fa99f||null,'appcode':_0x32b260,'env':_0x18af04?_0x53b9a9:null,'accessKeyWritten':![],'command':_0x1a85ba(0xc8)+_0x7ff3a6},'message':buildWorkspaceMessage(_0x5959fd,_0x3fa99f,_0x32b260,_0x18af04?_0x53b9a9:undefined)};}async function resolveRemoteAppCode(_0x4e4eca){const _0x4afe20=a55_0x4b5c4d;if(!_0x4e4eca[_0x4afe20(0xc7)])throw CliErrors[_0x4afe20(0xb9)]('Resolving\x20--app\x20requires\x20accessKey.\x20Pass\x20--appcode\x20directly,\x20or\x20set\x20accessKey\x20before\x20running\x20'+CLI_BIN_NAME+_0x4afe20(0xb5)+_0x4e4eca[_0x4afe20(0x9d)]+'.');const {setActiveAK:_0x10bb9e}=await import('../../core/api-client.js'),{getRemoteAppList:_0x1d2852}=await import(_0x4afe20(0xa1));_0x10bb9e(_0x4e4eca[_0x4afe20(0xc7)]);const _0x48af46=await _0x1d2852({'env':_0x4e4eca[_0x4afe20(0xad)],'accessKey':_0x4e4eca['accessKey'],'noCache':![]}),_0x15a039=findAppByName(_0x48af46[_0x4afe20(0xa3)],_0x4e4eca[_0x4afe20(0xac)]);if(_0x15a039&&!isRuntimeAccessibleApp(_0x15a039))throw runtimeInaccessibleAppError(_0x15a039,'\x22'+_0x4e4eca[_0x4afe20(0xac)]+'\x22');const _0x5e3f03=_0x15a039?.[_0x4afe20(0x99)]?.[_0x4afe20(0xd0)]();if(_0x5e3f03)return _0x5e3f03;const _0x219092=_0x48af46[_0x4afe20(0xa3)][_0x4afe20(0xba)](_0x4235c9=>_0x4235c9[_0x4afe20(0xac)])[_0x4afe20(0xd1)](Boolean),_0x46cb2e=_0x219092[_0x4afe20(0xaa)]?_0x4afe20(0xb7)+Array[_0x4afe20(0xb8)](new Set(_0x219092))['join'](',\x20')+'.':'Run\x20`'+CLI_BIN_NAME+'\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20pass\x20--appcode\x20directly.';throw CliErrors[_0x4afe20(0x98)](_0x4afe20(0x9c)+_0x4e4eca['appName']+_0x4afe20(0xce),_0x46cb2e);}function a55_0x288f(){const _0x2cf6e0=['Compatibility\x20flag;\x20workspace\x20config\x20updates\x20are\x20non-interactive','includes','12161tpPpmm','1380150uvPpuC','451OrnwFh','init','8583240JipaXW','\x20workspace\x20','3lkHKxU','Available\x20apps:\x20','from','authRequired','map','44xcdnmi','2029956lCymOL','\x20--appcode\x20<code>\x20[--env\x20daily]','shouldWriteEnv','Usage:\x20','write','string','appcode','49310SLgyoi','app','yes','\x0aDefault\x20app:\x20','accessKey','workspace\x20','use','Invalid\x20env\x20\x22','join','App\x20code\x20to\x20bind\x20directly','envName','\x22\x20not\x20found.','App\x20name\x20to\x20bind\x20as\x20the\x20current\x20workspace\x20default','trim','filter','workspace','21lGDgnF','validation','appCode','Target\x20environment','1928632UPUchO','App\x20\x22','command','15kwDKVt','defaultApp','\x20--app\x20<name>\x20[--env\x20daily]\x20or\x20','../../commands/app/remote-source.js','apps','items','Initialize\x20app\x20context\x20for\x20the\x20current\x20workspace','\x0aAccessKey:\x20not\x20written','\x0aEnv:\x20','isArray','5980338uEzWRL','Workspace\x20configured.\x0aConfig\x20file:\x20','length','str','appName','env'];a55_0x288f=function(){return _0x2cf6e0;};return a55_0x288f();}function writeWorkspaceConfig(_0x186845){const _0x387c07=a55_0x4b5c4d,_0x43e59c=resolveWriteConfigPath('project'),_0x31d8f4=readConfigFile(_0x43e59c);_0x186845[_0x387c07(0xbe)]&&(_0x31d8f4[_0x387c07(0xad)]=_0x186845[_0x387c07(0xad)]);if(_0x186845[_0x387c07(0xac)]){const _0x395af7=isRecord(_0x31d8f4[_0x387c07(0xa2)])?{..._0x31d8f4[_0x387c07(0xa2)]}:{},_0xb983e2=isRecord(_0x395af7[_0x186845[_0x387c07(0xac)]])?_0x395af7[_0x186845[_0x387c07(0xac)]]:{};_0x395af7[_0x186845['appName']]={..._0xb983e2,'appcode':_0x186845[_0x387c07(0xc2)]},_0x31d8f4[_0x387c07(0xa2)]=_0x395af7,_0x31d8f4[_0x387c07(0x9f)]=_0x186845[_0x387c07(0xac)];if(_0x31d8f4[_0x387c07(0xc4)])delete _0x31d8f4[_0x387c07(0xc4)];return writeAndReturn(_0x43e59c,_0x31d8f4);}_0x31d8f4[_0x387c07(0xc2)]=_0x186845[_0x387c07(0xc2)];if(_0x31d8f4[_0x387c07(0xc4)])delete _0x31d8f4['app'];return writeAndReturn(_0x43e59c,_0x31d8f4);}function writeAndReturn(_0x3b83c5,_0x4b68ec){return writeConfigFile(_0x3b83c5,_0x4b68ec),_0x3b83c5;}function resolveWorkspaceEnv(_0x11747e){const _0x497871=a55_0x4b5c4d;if(RUNTIME_ENV_VALUES[_0x497871(0xaf)](_0x11747e))return _0x11747e;throw CliErrors[_0x497871(0x98)](_0x497871(0xca)+_0x11747e+'\x22.\x20Allowed:\x20'+RUNTIME_ENV_VALUES[_0x497871(0xcb)](',\x20'));}function buildWorkspaceMessage(_0x580524,_0x4f5aed,_0xde64e2,_0x30f899){const _0x16b9ea=a55_0x4b5c4d,_0x22db32=_0x4f5aed?_0x4f5aed+'\x20('+_0xde64e2+')':_0xde64e2,_0x2d03d5=_0x30f899?_0x16b9ea(0xa6)+_0x30f899:'';return _0x16b9ea(0xa9)+_0x580524+_0x16b9ea(0xc6)+_0x22db32+_0x2d03d5+_0x16b9ea(0xa5);}function isRecord(_0xfac5e){const _0x13e32d=a55_0x4b5c4d;return typeof _0xfac5e==='object'&&_0xfac5e!==null&&!Array[_0x13e32d(0xa7)](_0xfac5e);}function makeWorkspaceCommand(_0x3fdb09){const _0x304d1d=a55_0x4b5c4d;return{'service':_0x304d1d(0xd2),'command':_0x3fdb09,'description':_0x3fdb09==='init'?_0x304d1d(0xa4):'Set\x20app\x20context\x20for\x20the\x20current\x20workspace','risk':_0x304d1d(0xc0),'requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':WORKSPACE_USE_FLAGS,async 'execute'(_0x328aa0){return executeWorkspaceUse(_0x328aa0,_0x3fdb09);}};}export const workspaceDefinitions=[makeWorkspaceCommand(a55_0x4b5c4d(0xb3)),makeWorkspaceCommand(a55_0x4b5c4d(0xc9))];
1
+ function a60_0x5563(){const _0x5c515c=['\x20workspace\x20','includes','from','use','join','Missing\x20workspace\x20app\x20selector.','trim','Usage:\x20','193281ExZTlU','\x22\x20not\x20found.','length','object','appcode','yes','\x0aAccessKey:\x20not\x20written','81kZOOhZ','10468SuWhAf','Initialize\x20app\x20context\x20for\x20the\x20current\x20workspace','Invalid\x20env\x20\x22','init','validation','113256AgjyHc','envName','apps','workspace\x20','11482368NSSiLJ','app','App\x20code\x20to\x20bind\x20directly','Available\x20apps:\x20','\x22.\x20Allowed:\x20','Workspace\x20configured.\x0aConfig\x20file:\x20','isArray','\x0aEnv:\x20','items','../../commands/app/remote-source.js','../../core/api-client.js','3590tSyAyz','env','authRequired','Compatibility\x20flag;\x20workspace\x20config\x20updates\x20are\x20non-interactive','shouldWriteEnv','707YjeiPQ','appName','str','785160djInvT','defaultApp','command','9890352fekqwK','Target\x20environment','string','map','2710hSdslD','accessKey','boolean','write','App\x20name\x20to\x20bind\x20as\x20the\x20current\x20workspace\x20default','\x20--app\x20<name>\x20[--env\x20daily]\x20or\x20','37754XcANlu','\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20pass\x20--appcode\x20directly.','filter'];a60_0x5563=function(){return _0x5c515c;};return a60_0x5563();}const a60_0x2195f2=a60_0x5db1;(function(_0x1f72e4,_0x5bf851){const _0x3dbd33=a60_0x5db1,_0x4d21f8=_0x1f72e4();while(!![]){try{const _0x155623=-parseInt(_0x3dbd33(0xc3))/0x1+-parseInt(_0x3dbd33(0xd0))/0x2*(parseInt(_0x3dbd33(0xa6))/0x3)+parseInt(_0x3dbd33(0xa7))/0x4*(-parseInt(_0x3dbd33(0xbb))/0x5)+parseInt(_0x3dbd33(0xb0))/0x6+-parseInt(_0x3dbd33(0xc0))/0x7*(parseInt(_0x3dbd33(0xac))/0x8)+-parseInt(_0x3dbd33(0xc6))/0x9+parseInt(_0x3dbd33(0xca))/0xa*(parseInt(_0x3dbd33(0x9f))/0xb);if(_0x155623===_0x5bf851)break;else _0x4d21f8['push'](_0x4d21f8['shift']());}catch(_0x4ca2db){_0x4d21f8['push'](_0x4d21f8['shift']());}}}(a60_0x5563,0xed827));import{CLI_BIN_NAME}from'../../constant/cli.js';import{DEFAULT_CONFIG_VALUES}from'../../constant/defaults.js';import{RUNTIME_ENV_VALUES}from'../../constant/env.js';import{CliErrors}from'../../errors.js';import{readConfigFile,resolveWriteConfigPath,writeConfigFile}from'../../context.js';import{findAppByName,isRuntimeAccessibleApp,runtimeInaccessibleAppError}from'../../commands/app/eligibility.js';const WORKSPACE_USE_FLAGS=[{'name':'app','type':a60_0x2195f2(0xc8),'description':a60_0x2195f2(0xce)},{'name':a60_0x2195f2(0xa3),'type':a60_0x2195f2(0xc8),'description':a60_0x2195f2(0xb2)},{'name':a60_0x2195f2(0xbc),'type':a60_0x2195f2(0xc8),'description':a60_0x2195f2(0xc7),'enum':[...RUNTIME_ENV_VALUES]},{'name':a60_0x2195f2(0xa4),'type':a60_0x2195f2(0xcc),'description':a60_0x2195f2(0xbe),'default':![]}];async function executeWorkspaceUse(_0x59ba0e,_0x5d7eb8){const _0x121e07=a60_0x2195f2,_0x4dbddd=_0x59ba0e[_0x121e07(0xc2)](_0x121e07(0xb1))[_0x121e07(0x9d)](),_0x58a67f=_0x59ba0e[_0x121e07(0xc2)](_0x121e07(0xa3))['trim'](),_0x2f7132=_0x59ba0e[_0x121e07(0xc2)](_0x121e07(0xbc))[_0x121e07(0x9d)](),_0x43eb50=resolveWorkspaceEnv(_0x2f7132||_0x59ba0e[_0x121e07(0xad)]||DEFAULT_CONFIG_VALUES[_0x121e07(0xbc)]);if(!_0x4dbddd&&!_0x58a67f)throw CliErrors[_0x121e07(0xab)](_0x121e07(0x9c),_0x121e07(0x9e)+CLI_BIN_NAME+_0x121e07(0xd3)+_0x5d7eb8+_0x121e07(0xcf)+CLI_BIN_NAME+'\x20workspace\x20'+_0x5d7eb8+'\x20--appcode\x20<code>\x20[--env\x20daily]');const _0x1f1389=_0x58a67f||await resolveRemoteAppCode({'command':_0x5d7eb8,'appName':_0x4dbddd,'env':_0x43eb50,'accessKey':_0x59ba0e[_0x121e07(0xcb)]}),_0xea9e4=writeWorkspaceConfig({'command':_0x5d7eb8,'appName':_0x4dbddd,'appcode':_0x1f1389,'env':_0x43eb50,'shouldWriteEnv':!!_0x2f7132,'accessKey':_0x59ba0e['accessKey']});return{'ok':!![],'data':{'configPath':_0xea9e4,'app':_0x4dbddd||null,'appcode':_0x1f1389,'env':_0x2f7132?_0x43eb50:null,'accessKeyWritten':![],'command':_0x121e07(0xaf)+_0x5d7eb8},'message':buildWorkspaceMessage(_0xea9e4,_0x4dbddd,_0x1f1389,_0x2f7132?_0x43eb50:undefined)};}async function resolveRemoteAppCode(_0x46c6cf){const _0x4958a9=a60_0x2195f2;if(!_0x46c6cf[_0x4958a9(0xcb)])throw CliErrors[_0x4958a9(0xbd)]('Resolving\x20--app\x20requires\x20accessKey.\x20Pass\x20--appcode\x20directly,\x20or\x20set\x20accessKey\x20before\x20running\x20'+CLI_BIN_NAME+'\x20workspace\x20'+_0x46c6cf[_0x4958a9(0xc5)]+'.');const {setActiveAK:_0x4abd26}=await import(_0x4958a9(0xba)),{getRemoteAppList:_0x131cd2}=await import(_0x4958a9(0xb9));_0x4abd26(_0x46c6cf[_0x4958a9(0xcb)]);const _0x16c937=await _0x131cd2({'env':_0x46c6cf['env'],'accessKey':_0x46c6cf[_0x4958a9(0xcb)],'noCache':![]}),_0xe8d793=findAppByName(_0x16c937[_0x4958a9(0xb8)],_0x46c6cf[_0x4958a9(0xc1)]);if(_0xe8d793&&!isRuntimeAccessibleApp(_0xe8d793))throw runtimeInaccessibleAppError(_0xe8d793,'\x22'+_0x46c6cf[_0x4958a9(0xc1)]+'\x22');const _0x1121f8=_0xe8d793?.['appCode']?.[_0x4958a9(0x9d)]();if(_0x1121f8)return _0x1121f8;const _0x55b68d=_0x16c937[_0x4958a9(0xb8)][_0x4958a9(0xc9)](_0x4cd503=>_0x4cd503[_0x4958a9(0xc1)])[_0x4958a9(0xd2)](Boolean),_0x54889a=_0x55b68d[_0x4958a9(0xa1)]?_0x4958a9(0xb3)+Array[_0x4958a9(0xd5)](new Set(_0x55b68d))[_0x4958a9(0x9b)](',\x20')+'.':'Run\x20`'+CLI_BIN_NAME+_0x4958a9(0xd1);throw CliErrors['validation']('App\x20\x22'+_0x46c6cf[_0x4958a9(0xc1)]+_0x4958a9(0xa0),_0x54889a);}function writeWorkspaceConfig(_0x1b298f){const _0x107a04=a60_0x2195f2,_0x31c035=resolveWriteConfigPath('project'),_0x3ab08b=readConfigFile(_0x31c035);_0x1b298f[_0x107a04(0xbf)]&&(_0x3ab08b[_0x107a04(0xbc)]=_0x1b298f[_0x107a04(0xbc)]);if(_0x1b298f[_0x107a04(0xc1)]){const _0x27bb43=isRecord(_0x3ab08b[_0x107a04(0xae)])?{..._0x3ab08b[_0x107a04(0xae)]}:{},_0x468c24=isRecord(_0x27bb43[_0x1b298f[_0x107a04(0xc1)]])?_0x27bb43[_0x1b298f['appName']]:{};_0x27bb43[_0x1b298f[_0x107a04(0xc1)]]={..._0x468c24,'appcode':_0x1b298f[_0x107a04(0xa3)]},_0x3ab08b[_0x107a04(0xae)]=_0x27bb43,_0x3ab08b[_0x107a04(0xc4)]=_0x1b298f['appName'];if(_0x3ab08b[_0x107a04(0xb1)])delete _0x3ab08b[_0x107a04(0xb1)];return writeAndReturn(_0x31c035,_0x3ab08b);}_0x3ab08b[_0x107a04(0xa3)]=_0x1b298f[_0x107a04(0xa3)];if(_0x3ab08b[_0x107a04(0xb1)])delete _0x3ab08b[_0x107a04(0xb1)];return writeAndReturn(_0x31c035,_0x3ab08b);}function writeAndReturn(_0x2d7723,_0x3eefaf){return writeConfigFile(_0x2d7723,_0x3eefaf),_0x2d7723;}function resolveWorkspaceEnv(_0x4b2f0b){const _0x4526cf=a60_0x2195f2;if(RUNTIME_ENV_VALUES[_0x4526cf(0xd4)](_0x4b2f0b))return _0x4b2f0b;throw CliErrors[_0x4526cf(0xab)](_0x4526cf(0xa9)+_0x4b2f0b+_0x4526cf(0xb4)+RUNTIME_ENV_VALUES[_0x4526cf(0x9b)](',\x20'));}function buildWorkspaceMessage(_0x380909,_0x3d1391,_0xdcd4c9,_0x3423b4){const _0x40a044=a60_0x2195f2,_0x53451d=_0x3d1391?_0x3d1391+'\x20('+_0xdcd4c9+')':_0xdcd4c9,_0x2acfcb=_0x3423b4?_0x40a044(0xb7)+_0x3423b4:'';return _0x40a044(0xb5)+_0x380909+'\x0aDefault\x20app:\x20'+_0x53451d+_0x2acfcb+_0x40a044(0xa5);}function a60_0x5db1(_0x36a9c8,_0x40a80f){_0x36a9c8=_0x36a9c8-0x9a;const _0x556339=a60_0x5563();let _0x5db1e6=_0x556339[_0x36a9c8];return _0x5db1e6;}function isRecord(_0x20b42c){const _0x6ffeb5=a60_0x2195f2;return typeof _0x20b42c===_0x6ffeb5(0xa2)&&_0x20b42c!==null&&!Array[_0x6ffeb5(0xb6)](_0x20b42c);}function makeWorkspaceCommand(_0x3c5522){const _0x414325=a60_0x2195f2;return{'service':'workspace','command':_0x3c5522,'description':_0x3c5522===_0x414325(0xaa)?_0x414325(0xa8):'Set\x20app\x20context\x20for\x20the\x20current\x20workspace','risk':_0x414325(0xcd),'requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':WORKSPACE_USE_FLAGS,async 'execute'(_0x14fc8c){return executeWorkspaceUse(_0x14fc8c,_0x3c5522);}};}export const workspaceDefinitions=[makeWorkspaceCommand(a60_0x2195f2(0xaa)),makeWorkspaceCommand(a60_0x2195f2(0x9a))];
@@ -1 +1 @@
1
- function a56_0x53f0(){const _0x50498d=['entries','10duNkwG','importable','200uMhUQO','Config\x20key.\x20Top-level:\x20','162636KNBscB','enumValues','4848420OsOcQL','fromEntries','map','Default\x20page\x20size','Override\x20SkillHub\x20domain','locale','12SfLwlg','8620XHkcML','has','format','Risk\x20level','legacyCompatOnly','60mJOPxZ','join','60669zMTGNg','cliSettableTopLevel','Target\x20environment','980370nSHHeE','Override\x20runtime\x20domain','885132qiOubz','Access\x20key\x20(client-ak\x20auth)','88iWoVUd','filter','170797GGFFMY'];a56_0x53f0=function(){return _0x50498d;};return a56_0x53f0();}const a56_0x4ac230=a56_0x1c60;(function(_0x240b89,_0x1a214e){const _0x2969ac=a56_0x1c60,_0x20eed6=_0x240b89();while(!![]){try{const _0x9cc6dd=parseInt(_0x2969ac(0x1e4))/0x1*(parseInt(_0x2969ac(0x1df))/0x2)+-parseInt(_0x2969ac(0x1de))/0x3*(-parseInt(_0x2969ac(0x1f5))/0x4)+-parseInt(_0x2969ac(0x1f1))/0x5*(parseInt(_0x2969ac(0x1e9))/0x6)+parseInt(_0x2969ac(0x1e6))/0x7*(parseInt(_0x2969ac(0x1ed))/0x8)+parseInt(_0x2969ac(0x1eb))/0x9+parseInt(_0x2969ac(0x1f3))/0xa*(parseInt(_0x2969ac(0x1ef))/0xb)+-parseInt(_0x2969ac(0x1f7))/0xc;if(_0x9cc6dd===_0x1a214e)break;else _0x20eed6['push'](_0x20eed6['shift']());}catch(_0x1b93e5){_0x20eed6['push'](_0x20eed6['shift']());}}}(a56_0x53f0,0x2f84c));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':a56_0x4ac230(0x1e8),'topLevel':!![],'cliSettableTopLevel':!![],'enumValues':RUNTIME_ENV_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES['env'],'importable':!![]},'format':{'description':'Default\x20output\x20format','topLevel':!![],'cliSettableTopLevel':!![],'enumValues':OUTPUT_FORMAT_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES[a56_0x4ac230(0x1e1)],'importable':!![]},'pageSize':{'description':a56_0x4ac230(0x1fa),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'apiDomain':{'description':'Override\x20API\x20domain','topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'userDomain':{'description':'Override\x20user\x20domain','topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'runtimeDomain':{'description':a56_0x4ac230(0x1ea),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'skillHubDomain':{'description':a56_0x4ac230(0x1fb),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'accessKey':{'description':a56_0x4ac230(0x1ec),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'riskLevel':{'description':a56_0x4ac230(0x1e2),'topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES['riskLevel'],'importable':!![]},'locale':{'description':'Locale','topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES[a56_0x4ac230(0x1fc)],'importable':!![],'legacyCompatOnly':!![]}};export const TOP_LEVEL_CONFIG_KEYS=new Set(Object[a56_0x4ac230(0x1f0)](CONFIG_FIELD_SCHEMAS)[a56_0x4ac230(0x1ee)](([,_0x4c8664])=>_0x4c8664[a56_0x4ac230(0x1e7)])[a56_0x4ac230(0x1f9)](([_0x22a619])=>_0x22a619));export const CONFIG_ENUM_VALUES=Object[a56_0x4ac230(0x1f8)](Object[a56_0x4ac230(0x1f0)](CONFIG_FIELD_SCHEMAS)['filter'](([,_0x86c2a6])=>_0x86c2a6[a56_0x4ac230(0x1f6)])[a56_0x4ac230(0x1f9)](([_0x51a90b,_0x22ff17])=>[_0x51a90b,[..._0x22ff17[a56_0x4ac230(0x1f6)]||[]]]));export const IMPORTABLE_RUNTIME_CONFIG_KEYS=Object[a56_0x4ac230(0x1f0)](CONFIG_FIELD_SCHEMAS)[a56_0x4ac230(0x1ee)](([,_0x1a2170])=>_0x1a2170[a56_0x4ac230(0x1f2)])[a56_0x4ac230(0x1f9)](([_0x309915])=>_0x309915);export function getConfigFieldSchema(_0x44edc3){return CONFIG_FIELD_SCHEMAS[_0x44edc3];}export function getConfigEnumValues(_0x1eaac9){const _0x243a24=a56_0x4ac230;return getConfigFieldSchema(_0x1eaac9)?.[_0x243a24(0x1f6)];}export function getConfigDefaultValue(_0x116767){return getConfigFieldSchema(_0x116767)?.['defaultValue'];}export function isTopLevelConfigKey(_0x269ae0){const _0x47f50e=a56_0x4ac230;return TOP_LEVEL_CONFIG_KEYS[_0x47f50e(0x1e0)](_0x269ae0);}function a56_0x1c60(_0xc5f6ab,_0x5b9147){_0xc5f6ab=_0xc5f6ab-0x1de;const _0x53f02e=a56_0x53f0();let _0x1c600e=_0x53f02e[_0xc5f6ab];return _0x1c600e;}export function isLegacyCompatConfigKey(_0x458776){const _0x358d6e=a56_0x4ac230;return getConfigFieldSchema(_0x458776)?.[_0x358d6e(0x1e3)]===!![];}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function formatConfigKeyList(_0x19af59){const _0x42a7fb=a56_0x4ac230;return[..._0x19af59][_0x42a7fb(0x1e5)](',\x20');}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){const _0x335060=a56_0x4ac230;return _0x335060(0x1f4)+getTopLevelConfigKeySummary()+';\x20local\x20alias:\x20apps.<alias>.appcode';}export function buildAppProfileListFields(_0x1f07d8){return{'env':_0x1f07d8,'hasAccessKey':![],'format':null,'pageSize':null,'riskLevel':null,'locale':null};}
1
+ const a61_0x185492=a61_0x44e0;(function(_0x234ea4,_0x5744b4){const _0x1a760e=a61_0x44e0,_0x29b081=_0x234ea4();while(!![]){try{const _0x178d8b=-parseInt(_0x1a760e(0x19c))/0x1*(parseInt(_0x1a760e(0x1a2))/0x2)+parseInt(_0x1a760e(0x1a1))/0x3*(parseInt(_0x1a760e(0x192))/0x4)+parseInt(_0x1a760e(0x18c))/0x5+-parseInt(_0x1a760e(0x19d))/0x6+-parseInt(_0x1a760e(0x19a))/0x7+-parseInt(_0x1a760e(0x1a9))/0x8+-parseInt(_0x1a760e(0x18f))/0x9*(-parseInt(_0x1a760e(0x18d))/0xa);if(_0x178d8b===_0x5744b4)break;else _0x29b081['push'](_0x29b081['shift']());}catch(_0x5bdbbf){_0x29b081['push'](_0x29b081['shift']());}}}(a61_0x3560,0x620dd));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':a61_0x185492(0x198),'topLevel':!![],'cliSettableTopLevel':!![],'enumValues':RUNTIME_ENV_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES[a61_0x185492(0x19e)],'importable':!![]},'format':{'description':'Default\x20output\x20format','topLevel':!![],'cliSettableTopLevel':!![],'enumValues':OUTPUT_FORMAT_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES[a61_0x185492(0x197)],'importable':!![]},'pageSize':{'description':'Default\x20page\x20size','topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'apiDomain':{'description':'Override\x20API\x20domain','topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'userDomain':{'description':'Override\x20user\x20domain','topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'runtimeDomain':{'description':a61_0x185492(0x18e),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'skillHubDomain':{'description':a61_0x185492(0x1a6),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'accessKey':{'description':a61_0x185492(0x19b),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'riskLevel':{'description':a61_0x185492(0x194),'topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES['riskLevel'],'importable':!![]},'locale':{'description':a61_0x185492(0x190),'topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES['locale'],'importable':!![],'legacyCompatOnly':!![]}};export const TOP_LEVEL_CONFIG_KEYS=new Set(Object[a61_0x185492(0x191)](CONFIG_FIELD_SCHEMAS)['filter'](([,_0x271cc2])=>_0x271cc2[a61_0x185492(0x193)])[a61_0x185492(0x1a7)](([_0x457f55])=>_0x457f55));export const CONFIG_ENUM_VALUES=Object[a61_0x185492(0x1a8)](Object[a61_0x185492(0x191)](CONFIG_FIELD_SCHEMAS)[a61_0x185492(0x1a5)](([,_0x1e1b70])=>_0x1e1b70[a61_0x185492(0x1aa)])[a61_0x185492(0x1a7)](([_0x100ac8,_0x4ca77c])=>[_0x100ac8,[..._0x4ca77c[a61_0x185492(0x1aa)]||[]]]));export const IMPORTABLE_RUNTIME_CONFIG_KEYS=Object[a61_0x185492(0x191)](CONFIG_FIELD_SCHEMAS)[a61_0x185492(0x1a5)](([,_0x3e7c8f])=>_0x3e7c8f[a61_0x185492(0x199)])['map'](([_0x512d6e])=>_0x512d6e);function a61_0x44e0(_0x48f095,_0x2ecceb){_0x48f095=_0x48f095-0x18c;const _0x356061=a61_0x3560();let _0x44e054=_0x356061[_0x48f095];return _0x44e054;}export function getConfigFieldSchema(_0x5e606b){return CONFIG_FIELD_SCHEMAS[_0x5e606b];}export function getConfigEnumValues(_0x25d2db){const _0x1bcf18=a61_0x185492;return getConfigFieldSchema(_0x25d2db)?.[_0x1bcf18(0x1aa)];}export function getConfigDefaultValue(_0x35c284){const _0x75902e=a61_0x185492;return getConfigFieldSchema(_0x35c284)?.[_0x75902e(0x1a4)];}export function isTopLevelConfigKey(_0x51a7d7){const _0x56ff38=a61_0x185492;return TOP_LEVEL_CONFIG_KEYS[_0x56ff38(0x1a3)](_0x51a7d7);}export function isLegacyCompatConfigKey(_0x1cd091){const _0x2ed178=a61_0x185492;return getConfigFieldSchema(_0x1cd091)?.[_0x2ed178(0x19f)]===!![];}function a61_0x3560(){const _0x5eb538=['cliSettableTopLevel','Risk\x20level',';\x20local\x20alias:\x20apps.<alias>.appcode','join','format','Target\x20environment','importable','1759401qBnHoZ','Access\x20key\x20(client-ak\x20auth)','148570OPecSL','254670ubyHdS','env','legacyCompatOnly','Config\x20key.\x20Top-level:\x20','111kYCyiQ','2XnzorP','has','defaultValue','filter','Override\x20SkillHub\x20domain','map','fromEntries','2762872AkWhaJ','enumValues','2752505owbEZe','10jBnSQP','Override\x20runtime\x20domain','5526828YIBjtY','Locale','entries','2676hcpteu'];a61_0x3560=function(){return _0x5eb538;};return a61_0x3560();}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function formatConfigKeyList(_0x5bfe03){const _0x41efd7=a61_0x185492;return[..._0x5bfe03][_0x41efd7(0x196)](',\x20');}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){const _0x56e612=a61_0x185492;return _0x56e612(0x1a0)+getTopLevelConfigKeySummary()+_0x56e612(0x195);}export function buildAppProfileListFields(_0x10604a){return{'env':_0x10604a,'hasAccessKey':![],'format':null,'pageSize':null,'riskLevel':null,'locale':null};}
@@ -1 +1 @@
1
- const a57_0x50790e=a57_0x3b35;function a57_0x3b35(_0x20ced6,_0x511797){_0x20ced6=_0x20ced6-0x1a8;const _0x2782b8=a57_0x2782();let _0x3b3573=_0x2782b8[_0x20ced6];return _0x3b3573;}(function(_0x5993e9,_0x40bc3f){const _0x53dfb2=a57_0x3b35,_0x2d933a=_0x5993e9();while(!![]){try{const _0x1b89ff=parseInt(_0x53dfb2(0x1b0))/0x1*(parseInt(_0x53dfb2(0x1b4))/0x2)+-parseInt(_0x53dfb2(0x1ad))/0x3*(parseInt(_0x53dfb2(0x1aa))/0x4)+-parseInt(_0x53dfb2(0x1af))/0x5*(-parseInt(_0x53dfb2(0x1a9))/0x6)+parseInt(_0x53dfb2(0x1b3))/0x7*(parseInt(_0x53dfb2(0x1ae))/0x8)+-parseInt(_0x53dfb2(0x1b6))/0x9*(-parseInt(_0x53dfb2(0x1a8))/0xa)+-parseInt(_0x53dfb2(0x1b1))/0xb*(-parseInt(_0x53dfb2(0x1ab))/0xc)+-parseInt(_0x53dfb2(0x1b2))/0xd;if(_0x1b89ff===_0x40bc3f)break;else _0x2d933a['push'](_0x2d933a['shift']());}catch(_0x4e9937){_0x2d933a['push'](_0x2d933a['shift']());}}}(a57_0x2782,0xc7cc2));export const APP_PUBLISH_STATUS={'Published':'PUBLISHED','Unpublished':a57_0x50790e(0x1b5)};export const RUNTIME_ACCESSIBLE_APP_STATUS=APP_PUBLISH_STATUS[a57_0x50790e(0x1ac)];function a57_0x2782(){const _0x4349a2=['11273913MzoKvY','10OKiSMC','384528pcTMDI','234964DVhSRQ','33612RlATcG','Published','6YnZCmH','4562776dhaWUK','45ruORdN','634UCDxiF','3663OFQsWG','42387358FUheEB','14tqSHzP','926yXJAwb','UNPUBLISH'];a57_0x2782=function(){return _0x4349a2;};return a57_0x2782();}
1
+ const a62_0x22d035=a62_0x73dd;(function(_0x2346b6,_0x4241f3){const _0x4497a6=a62_0x73dd,_0x38fcd4=_0x2346b6();while(!![]){try{const _0x594cc8=-parseInt(_0x4497a6(0x174))/0x1+-parseInt(_0x4497a6(0x175))/0x2*(-parseInt(_0x4497a6(0x176))/0x3)+parseInt(_0x4497a6(0x178))/0x4*(-parseInt(_0x4497a6(0x17d))/0x5)+-parseInt(_0x4497a6(0x17f))/0x6*(-parseInt(_0x4497a6(0x17a))/0x7)+-parseInt(_0x4497a6(0x17b))/0x8*(parseInt(_0x4497a6(0x17e))/0x9)+parseInt(_0x4497a6(0x17c))/0xa*(-parseInt(_0x4497a6(0x173))/0xb)+parseInt(_0x4497a6(0x177))/0xc;if(_0x594cc8===_0x4241f3)break;else _0x38fcd4['push'](_0x38fcd4['shift']());}catch(_0x54783f){_0x38fcd4['push'](_0x38fcd4['shift']());}}}(a62_0x317b,0xa5ba1));function a62_0x317b(){const _0x4dedce=['Published','270259qVGrsi','789148UYxEpz','9682IaKzeD','105RzJWFk','32700072wNggUz','12aANBLl','PUBLISHED','9457VrPfzs','1555384ZsLaKb','260AfCscV','1603470WQsLDL','9OEGHXP','1638DbUIUq'];a62_0x317b=function(){return _0x4dedce;};return a62_0x317b();}function a62_0x73dd(_0x365e1f,_0x4e40b6){_0x365e1f=_0x365e1f-0x173;const _0x317b24=a62_0x317b();let _0x73dda6=_0x317b24[_0x365e1f];return _0x73dda6;}export const APP_PUBLISH_STATUS={'Published':a62_0x22d035(0x179),'Unpublished':'UNPUBLISH'};export const RUNTIME_ACCESSIBLE_APP_STATUS=APP_PUBLISH_STATUS[a62_0x22d035(0x180)];
@@ -1 +1 @@
1
- (function(_0x288907,_0x5373ae){const _0x143ae8=a58_0xe817,_0x53ef8b=_0x288907();while(!![]){try{const _0xe9cfd1=-parseInt(_0x143ae8(0x16d))/0x1*(-parseInt(_0x143ae8(0x166))/0x2)+-parseInt(_0x143ae8(0x164))/0x3+-parseInt(_0x143ae8(0x16c))/0x4*(parseInt(_0x143ae8(0x16a))/0x5)+-parseInt(_0x143ae8(0x165))/0x6+-parseInt(_0x143ae8(0x167))/0x7*(-parseInt(_0x143ae8(0x169))/0x8)+-parseInt(_0x143ae8(0x16e))/0x9*(-parseInt(_0x143ae8(0x16b))/0xa)+parseInt(_0x143ae8(0x16f))/0xb;if(_0xe9cfd1===_0x5373ae)break;else _0x53ef8b['push'](_0x53ef8b['shift']());}catch(_0x42b550){_0x53ef8b['push'](_0x53ef8b['shift']());}}}(a58_0x2e99,0xbaf86));function a58_0x2e99(){const _0xd48c9=['21181919NnYZXW','4444746ovtpGB','3412374TBEaWg','248KPNVPq','433678PDiViU','ClientAk','16GvTXsV','1312880jvDBRA','388600NBNWou','12OHNCNb','1253hZTLww','324LyuNmC'];a58_0x2e99=function(){return _0xd48c9;};return a58_0x2e99();}export const AUTH_MODE={'ClientAk':'client-ak'};function a58_0xe817(_0x22ad4d,_0x1dca06){_0x22ad4d=_0x22ad4d-0x164;const _0x2e9924=a58_0x2e99();let _0xe8177a=_0x2e9924[_0x22ad4d];return _0xe8177a;}export function isAuthMode(_0x334bcc){const _0x197fe9=a58_0xe817;return _0x334bcc===AUTH_MODE[_0x197fe9(0x168)];}
1
+ const a63_0x54adf0=a63_0x41ee;function a63_0x42fc(){const _0x2ff544=['3351105aiQBaW','4010704SwkRmQ','12130JQyrhV','175jYnqXR','2802471eBzJQU','178gSYkpG','17878518gQUVAZ','88554mzVMYL','client-ak','5079088Xbyzzl'];a63_0x42fc=function(){return _0x2ff544;};return a63_0x42fc();}(function(_0x563924,_0x838f3a){const _0x4923df=a63_0x41ee,_0x79c32b=_0x563924();while(!![]){try{const _0x1a15eb=parseInt(_0x4923df(0x1a9))/0x1*(parseInt(_0x4923df(0x1b0))/0x2)+parseInt(_0x4923df(0x1b2))/0x3+-parseInt(_0x4923df(0x1af))/0x4+parseInt(_0x4923df(0x1ae))/0x5+-parseInt(_0x4923df(0x1ab))/0x6*(-parseInt(_0x4923df(0x1b1))/0x7)+parseInt(_0x4923df(0x1ad))/0x8+-parseInt(_0x4923df(0x1aa))/0x9;if(_0x1a15eb===_0x838f3a)break;else _0x79c32b['push'](_0x79c32b['shift']());}catch(_0x280f34){_0x79c32b['push'](_0x79c32b['shift']());}}}(a63_0x42fc,0xaa907));export const AUTH_MODE={'ClientAk':a63_0x54adf0(0x1ac)};function a63_0x41ee(_0x14b818,_0x4f463d){_0x14b818=_0x14b818-0x1a9;const _0x42fc37=a63_0x42fc();let _0x41eec1=_0x42fc37[_0x14b818];return _0x41eec1;}export function isAuthMode(_0x57d6de){return _0x57d6de===AUTH_MODE['ClientAk'];}
@@ -1 +1 @@
1
- const a59_0x56d8d5=a59_0x5d67;(function(_0x4c9658,_0x35014a){const _0x329485=a59_0x5d67,_0x3d6d42=_0x4c9658();while(!![]){try{const _0x169af9=parseInt(_0x329485(0x194))/0x1*(parseInt(_0x329485(0x185))/0x2)+parseInt(_0x329485(0x192))/0x3*(-parseInt(_0x329485(0x19b))/0x4)+parseInt(_0x329485(0x1a7))/0x5*(parseInt(_0x329485(0x17b))/0x6)+-parseInt(_0x329485(0x1a4))/0x7*(-parseInt(_0x329485(0x1a3))/0x8)+-parseInt(_0x329485(0x17d))/0x9*(-parseInt(_0x329485(0x17e))/0xa)+parseInt(_0x329485(0x1a8))/0xb*(-parseInt(_0x329485(0x1a2))/0xc)+parseInt(_0x329485(0x186))/0xd*(parseInt(_0x329485(0x180))/0xe);if(_0x169af9===_0x35014a)break;else _0x3d6d42['push'](_0x3d6d42['shift']());}catch(_0x5ac4cf){_0x3d6d42['push'](_0x3d6d42['shift']());}}}(a59_0x578b,0xe8da8));import{PRODUCT_CONFIG}from'../constant/product.js';import{LOVRABET_NPM_PACKAGE_NAME}from'../constant/distribution.js';export const CLI_BIN_NAME=PRODUCT_CONFIG[a59_0x56d8d5(0x1a9)];function a59_0x5d67(_0x41debe,_0x4c6bc6){_0x41debe=_0x41debe-0x17b;const _0x578b82=a59_0x578b();let _0x5d67f8=_0x578b82[_0x41debe];return _0x5d67f8;}function a59_0x578b(){const _0x3aea8f=['75pVDKHw','88zVmcmQ','cliBinName','JSON\x20params\x20for\x20execute\x20commands','env','Preview\x20operation\x20without\x20executing','type','clear','meowKey','74166OwiVeT','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20implies\x20--format\x20json\x20when\x20current\x20format\x20is\x20pretty)','117324aEdPYQ','220kptvpO','sqlcode','6657406Rrdimk','Name\x20filter','<expr>','dry-run','map','2pqRIvI','26XtQzZu','params','Force\x20non-interactive\x20mode\x20(CI)','dryRun','Select\x20app\x20profile\x20by\x20name','Environment','appcode','format','global','Verbose\x20output','Alias\x20for\x20--non-interactive','cliDisplayName','915495vHQWnS','help','548161EgHujK','fromEntries','Skip\x20confirmation\x20for\x20high-risk\x20writes','verbose','app','non-interactive','yes','16aRCGRu','production\x20|\x20development\x20|\x20daily','string','Override\x20appcode','Show\x20help','name','<name>','985836LqSpBq','14928SFqZKK','3227mYYGqG','Clear\x20output','boolean'];a59_0x578b=function(){return _0x3aea8f;};return a59_0x578b();}export const CLI_DISPLAY_NAME=PRODUCT_CONFIG[a59_0x56d8d5(0x191)];export const NPM_PACKAGE_NAME=LOVRABET_NPM_PACKAGE_NAME;export const GLOBAL_FLAGS=[{'name':'appcode','meowKey':a59_0x56d8d5(0x18c),'type':a59_0x56d8d5(0x19d),'description':a59_0x56d8d5(0x19e),'hint':'<code>'},{'name':a59_0x56d8d5(0x198),'meowKey':'app','type':'string','description':a59_0x56d8d5(0x18a),'hint':a59_0x56d8d5(0x1a1)},{'name':a59_0x56d8d5(0x1ab),'meowKey':a59_0x56d8d5(0x1ab),'type':'string','description':a59_0x56d8d5(0x18b),'hint':a59_0x56d8d5(0x19c)},{'name':'format','meowKey':a59_0x56d8d5(0x18d),'type':a59_0x56d8d5(0x19d),'description':'Output\x20format','hint':'json\x20|\x20pretty\x20|\x20compress'},{'name':'jq','meowKey':'jq','type':a59_0x56d8d5(0x19d),'description':a59_0x56d8d5(0x17c),'hint':a59_0x56d8d5(0x182)},{'name':a59_0x56d8d5(0x183),'meowKey':a59_0x56d8d5(0x189),'type':a59_0x56d8d5(0x1a6),'description':a59_0x56d8d5(0x1ac)},{'name':a59_0x56d8d5(0x19a),'meowKey':a59_0x56d8d5(0x19a),'type':'boolean','description':a59_0x56d8d5(0x196)},{'name':a59_0x56d8d5(0x199),'meowKey':'nonInteractive','type':a59_0x56d8d5(0x1a6),'description':a59_0x56d8d5(0x188)},{'name':a59_0x56d8d5(0x18e),'meowKey':a59_0x56d8d5(0x18e),'type':'boolean','description':'Use\x20global\x20config\x20scope'},{'name':'ci','meowKey':'ci','type':a59_0x56d8d5(0x1a6),'description':a59_0x56d8d5(0x190),'hidden':!![]},{'name':'help','meowKey':a59_0x56d8d5(0x193),'type':'boolean','description':a59_0x56d8d5(0x19f)},{'name':'id','meowKey':'id','type':a59_0x56d8d5(0x19d),'description':'Record\x20ID','hidden':!![]},{'name':a59_0x56d8d5(0x1a0),'meowKey':a59_0x56d8d5(0x1a0),'type':a59_0x56d8d5(0x19d),'description':a59_0x56d8d5(0x181),'hidden':!![]},{'name':a59_0x56d8d5(0x17f),'meowKey':'sqlcode','type':'string','description':'SQL\x20query\x20code','hidden':!![]},{'name':a59_0x56d8d5(0x187),'meowKey':a59_0x56d8d5(0x187),'type':a59_0x56d8d5(0x19d),'description':a59_0x56d8d5(0x1aa),'hidden':!![]},{'name':a59_0x56d8d5(0x197),'meowKey':'verbose','type':a59_0x56d8d5(0x1a6),'description':a59_0x56d8d5(0x18f),'hidden':!![]},{'name':a59_0x56d8d5(0x1ae),'meowKey':a59_0x56d8d5(0x1ae),'type':a59_0x56d8d5(0x1a6),'description':a59_0x56d8d5(0x1a5),'hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set([a59_0x56d8d5(0x18c),a59_0x56d8d5(0x198),a59_0x56d8d5(0x1ab),'format','jq',a59_0x56d8d5(0x183),'yes',a59_0x56d8d5(0x199),'ci']);export function buildMeowFlags(){const _0x1ff9b5=a59_0x56d8d5;return Object[_0x1ff9b5(0x195)](GLOBAL_FLAGS[_0x1ff9b5(0x184)](_0x384ece=>[_0x384ece[_0x1ff9b5(0x1af)],{'type':_0x384ece[_0x1ff9b5(0x1ad)]}]));}
1
+ const a64_0x73e20f=a64_0x32b9;(function(_0x5896aa,_0x14b8ee){const _0x5270ba=a64_0x32b9,_0x517cd9=_0x5896aa();while(!![]){try{const _0x38b2fb=parseInt(_0x5270ba(0x14b))/0x1*(parseInt(_0x5270ba(0x13a))/0x2)+parseInt(_0x5270ba(0x153))/0x3+-parseInt(_0x5270ba(0x12e))/0x4+-parseInt(_0x5270ba(0x15a))/0x5+parseInt(_0x5270ba(0x139))/0x6*(-parseInt(_0x5270ba(0x133))/0x7)+parseInt(_0x5270ba(0x151))/0x8+parseInt(_0x5270ba(0x155))/0x9*(parseInt(_0x5270ba(0x145))/0xa);if(_0x38b2fb===_0x14b8ee)break;else _0x517cd9['push'](_0x517cd9['shift']());}catch(_0x6accba){_0x517cd9['push'](_0x517cd9['shift']());}}}(a64_0x1c2b,0x91b4e));import{PRODUCT_CONFIG}from'../constant/product.js';import{LOVRABET_NPM_PACKAGE_NAME}from'../constant/distribution.js';export const CLI_BIN_NAME=PRODUCT_CONFIG[a64_0x73e20f(0x140)];function a64_0x1c2b(){const _0x26b128=['Verbose\x20output','Clear\x20output','Alias\x20for\x20--non-interactive','245IiWkid','name','<name>','Output\x20format','clear','sqlcode','6773784ytwLuc','Select\x20app\x20profile\x20by\x20name','98526xnDwee','env','92151ySwamB','Preview\x20operation\x20without\x20executing','SQL\x20query\x20code','Skip\x20confirmation\x20for\x20high-risk\x20writes','nonInteractive','3741595duCaES','params','Force\x20non-interactive\x20mode\x20(CI)','Override\x20appcode','yes','json\x20|\x20pretty\x20|\x20compress','dry-run','3244160gKbkcH','fromEntries','map','<code>','Environment','14fzJkmN','verbose','app','Use\x20global\x20config\x20scope','JSON\x20params\x20for\x20execute\x20commands','help','3388236DONhbS','4178OFRakp','global','Show\x20help','non-interactive','production\x20|\x20development\x20|\x20daily','dryRun','cliBinName','format','string','Name\x20filter','Record\x20ID','1850fBKWOr','appcode','boolean'];a64_0x1c2b=function(){return _0x26b128;};return a64_0x1c2b();}function a64_0x32b9(_0x4430a0,_0x29b340){_0x4430a0=_0x4430a0-0x12a;const _0x1c2b8d=a64_0x1c2b();let _0x32b93d=_0x1c2b8d[_0x4430a0];return _0x32b93d;}export const CLI_DISPLAY_NAME=PRODUCT_CONFIG['cliDisplayName'];export const NPM_PACKAGE_NAME=LOVRABET_NPM_PACKAGE_NAME;export const GLOBAL_FLAGS=[{'name':a64_0x73e20f(0x146),'meowKey':'appcode','type':a64_0x73e20f(0x142),'description':a64_0x73e20f(0x12a),'hint':a64_0x73e20f(0x131)},{'name':a64_0x73e20f(0x135),'meowKey':'app','type':a64_0x73e20f(0x142),'description':a64_0x73e20f(0x152),'hint':a64_0x73e20f(0x14d)},{'name':a64_0x73e20f(0x154),'meowKey':a64_0x73e20f(0x154),'type':a64_0x73e20f(0x142),'description':a64_0x73e20f(0x132),'hint':a64_0x73e20f(0x13e)},{'name':a64_0x73e20f(0x141),'meowKey':a64_0x73e20f(0x141),'type':'string','description':a64_0x73e20f(0x14e),'hint':a64_0x73e20f(0x12c)},{'name':'jq','meowKey':'jq','type':a64_0x73e20f(0x142),'description':'Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20implies\x20--format\x20json\x20when\x20current\x20format\x20is\x20pretty)','hint':'<expr>'},{'name':a64_0x73e20f(0x12d),'meowKey':a64_0x73e20f(0x13f),'type':'boolean','description':a64_0x73e20f(0x156)},{'name':a64_0x73e20f(0x12b),'meowKey':a64_0x73e20f(0x12b),'type':a64_0x73e20f(0x147),'description':a64_0x73e20f(0x158)},{'name':a64_0x73e20f(0x13d),'meowKey':a64_0x73e20f(0x159),'type':'boolean','description':a64_0x73e20f(0x15c)},{'name':a64_0x73e20f(0x13b),'meowKey':a64_0x73e20f(0x13b),'type':a64_0x73e20f(0x147),'description':a64_0x73e20f(0x136)},{'name':'ci','meowKey':'ci','type':a64_0x73e20f(0x147),'description':a64_0x73e20f(0x14a),'hidden':!![]},{'name':a64_0x73e20f(0x138),'meowKey':'help','type':a64_0x73e20f(0x147),'description':a64_0x73e20f(0x13c)},{'name':'id','meowKey':'id','type':a64_0x73e20f(0x142),'description':a64_0x73e20f(0x144),'hidden':!![]},{'name':a64_0x73e20f(0x14c),'meowKey':a64_0x73e20f(0x14c),'type':a64_0x73e20f(0x142),'description':a64_0x73e20f(0x143),'hidden':!![]},{'name':a64_0x73e20f(0x150),'meowKey':a64_0x73e20f(0x150),'type':a64_0x73e20f(0x142),'description':a64_0x73e20f(0x157),'hidden':!![]},{'name':a64_0x73e20f(0x15b),'meowKey':a64_0x73e20f(0x15b),'type':a64_0x73e20f(0x142),'description':a64_0x73e20f(0x137),'hidden':!![]},{'name':a64_0x73e20f(0x134),'meowKey':'verbose','type':a64_0x73e20f(0x147),'description':a64_0x73e20f(0x148),'hidden':!![]},{'name':a64_0x73e20f(0x14f),'meowKey':'clear','type':a64_0x73e20f(0x147),'description':a64_0x73e20f(0x149),'hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set(['appcode',a64_0x73e20f(0x135),'env',a64_0x73e20f(0x141),'jq',a64_0x73e20f(0x12d),'yes',a64_0x73e20f(0x13d),'ci']);export function buildMeowFlags(){const _0x19ed9c=a64_0x73e20f;return Object[_0x19ed9c(0x12f)](GLOBAL_FLAGS[_0x19ed9c(0x130)](_0x3c9cf9=>[_0x3c9cf9['meowKey'],{'type':_0x3c9cf9['type']}]));}
@@ -1 +1 @@
1
- const a60_0xe947bf=a60_0x10c4;(function(_0x1009f5,_0x3b7b68){const _0x77ad44=a60_0x10c4,_0x3e5f0d=_0x1009f5();while(!![]){try{const _0x5584fc=parseInt(_0x77ad44(0x1be))/0x1+parseInt(_0x77ad44(0x1bb))/0x2*(parseInt(_0x77ad44(0x1ba))/0x3)+parseInt(_0x77ad44(0x1bc))/0x4+parseInt(_0x77ad44(0x1c0))/0x5+parseInt(_0x77ad44(0x1bd))/0x6+-parseInt(_0x77ad44(0x1b7))/0x7+-parseInt(_0x77ad44(0x1c3))/0x8*(parseInt(_0x77ad44(0x1b8))/0x9);if(_0x5584fc===_0x3b7b68)break;else _0x3e5f0d['push'](_0x3e5f0d['shift']());}catch(_0x556a87){_0x3e5f0d['push'](_0x3e5f0d['shift']());}}}(a60_0x1636,0x90d69));export const DEFAULT_APP_PROFILE_NAME=a60_0xe947bf(0x1b9);function a60_0x10c4(_0x4fb7a6,_0x1696a4){_0x4fb7a6=_0x4fb7a6-0x1b7;const _0x163629=a60_0x1636();let _0x10c48e=_0x163629[_0x4fb7a6];return _0x10c48e;}export const DEFAULT_CONFIG_VALUES={'env':a60_0xe947bf(0x1c1),'format':a60_0xe947bf(0x1c2),'locale':a60_0xe947bf(0x1bf),'riskLevel':'write'};export const DEFAULT_COMMAND_OUTPUT_FORMAT=a60_0xe947bf(0x1c2);function a60_0x1636(){const _0x1bb999=['509154KgmQDo','3896020rWcnVi','6791580fKLUAi','1009911QUnlZA','en-US','1825425iXjtrA','production','compress','384UpitdM','8086701pdyySJ','372564OEzbkn','main','3dRaPgH'];a60_0x1636=function(){return _0x1bb999;};return a60_0x1636();}
1
+ const a65_0x5ba892=a65_0x4578;function a65_0x4578(_0x28522f,_0x177a0a){_0x28522f=_0x28522f-0xf5;const _0x3b422e=a65_0x3b42();let _0x4578c2=_0x3b422e[_0x28522f];return _0x4578c2;}(function(_0x14ddb4,_0x4e5dcb){const _0x5c8de4=a65_0x4578,_0x3df65b=_0x14ddb4();while(!![]){try{const _0x8780=-parseInt(_0x5c8de4(0x101))/0x1*(parseInt(_0x5c8de4(0x102))/0x2)+-parseInt(_0x5c8de4(0xfd))/0x3*(-parseInt(_0x5c8de4(0xf6))/0x4)+parseInt(_0x5c8de4(0xf8))/0x5+parseInt(_0x5c8de4(0xff))/0x6+-parseInt(_0x5c8de4(0xfb))/0x7*(-parseInt(_0x5c8de4(0xfc))/0x8)+-parseInt(_0x5c8de4(0xf7))/0x9*(parseInt(_0x5c8de4(0xfe))/0xa)+parseInt(_0x5c8de4(0xf5))/0xb;if(_0x8780===_0x4e5dcb)break;else _0x3df65b['push'](_0x3df65b['shift']());}catch(_0x56062f){_0x3df65b['push'](_0x3df65b['shift']());}}}(a65_0x3b42,0xe1c43));export const DEFAULT_APP_PROFILE_NAME='main';export const DEFAULT_CONFIG_VALUES={'env':a65_0x5ba892(0x100),'format':a65_0x5ba892(0xf9),'locale':a65_0x5ba892(0xfa),'riskLevel':'write'};function a65_0x3b42(){const _0x354ee9=['production','983ldKAeJ','3746NMZhYI','5783316pAFABa','1595220sbJklz','9breKUg','4726275GLVOsb','compress','en-US','912254NVXEKo','48qyTFar','3MggMdr','13609540JTLQbz','8850624jPIjjJ'];a65_0x3b42=function(){return _0x354ee9;};return a65_0x3b42();}export const DEFAULT_COMMAND_OUTPUT_FORMAT='compress';
@@ -1 +1 @@
1
- const a61_0x26ba1d=a61_0x18d1;function a61_0x18d1(_0x25223a,_0x127f00){_0x25223a=_0x25223a-0x16e;const _0x3508be=a61_0x3508();let _0x18d175=_0x3508be[_0x25223a];return _0x18d175;}(function(_0x5576a4,_0x11232a){const _0x5f4cf5=a61_0x18d1,_0xd3f23f=_0x5576a4();while(!![]){try{const _0x277771=parseInt(_0x5f4cf5(0x171))/0x1+-parseInt(_0x5f4cf5(0x179))/0x2+parseInt(_0x5f4cf5(0x170))/0x3+-parseInt(_0x5f4cf5(0x178))/0x4*(-parseInt(_0x5f4cf5(0x16f))/0x5)+-parseInt(_0x5f4cf5(0x172))/0x6+parseInt(_0x5f4cf5(0x176))/0x7+-parseInt(_0x5f4cf5(0x175))/0x8*(parseInt(_0x5f4cf5(0x16e))/0x9);if(_0x277771===_0x11232a)break;else _0xd3f23f['push'](_0xd3f23f['shift']());}catch(_0x4ff568){_0xd3f23f['push'](_0xd3f23f['shift']());}}}(a61_0x3508,0xd1caf));import{PRODUCT_CONFIG}from'../constant/product.js';function a61_0x3508(){const _0x20a276=['2876160IRHdqY','1070937HBGBJQ','6484692HDicNs','skillSource','npmPackageName','40aNaqKE','7395248SsjhPw','npmRegistryBaseUrl','8472dPiLBB','2877078zrjOOd','14841iRfTQo','710cDPGGk'];a61_0x3508=function(){return _0x20a276;};return a61_0x3508();}export const LOVRABET_NPM_PACKAGE_NAME=PRODUCT_CONFIG[a61_0x26ba1d(0x174)];export const LOVRABET_SKILL_SOURCE=PRODUCT_CONFIG[a61_0x26ba1d(0x173)];export const NPM_REGISTRY_BASE_URL=PRODUCT_CONFIG[a61_0x26ba1d(0x177)];
1
+ const a66_0x5ade50=a66_0x3e0c;function a66_0x3e0c(_0x4d9edf,_0x8ac603){_0x4d9edf=_0x4d9edf-0x1d5;const _0x2a8784=a66_0x2a87();let _0x3e0cce=_0x2a8784[_0x4d9edf];return _0x3e0cce;}(function(_0x92a336,_0x4df2ae){const _0x5de72d=a66_0x3e0c,_0x3b0233=_0x92a336();while(!![]){try{const _0x35e57d=parseInt(_0x5de72d(0x1d5))/0x1*(parseInt(_0x5de72d(0x1d8))/0x2)+parseInt(_0x5de72d(0x1dd))/0x3+parseInt(_0x5de72d(0x1da))/0x4+-parseInt(_0x5de72d(0x1d7))/0x5+parseInt(_0x5de72d(0x1de))/0x6+parseInt(_0x5de72d(0x1db))/0x7*(parseInt(_0x5de72d(0x1dc))/0x8)+-parseInt(_0x5de72d(0x1d6))/0x9;if(_0x35e57d===_0x4df2ae)break;else _0x3b0233['push'](_0x3b0233['shift']());}catch(_0x5e1fcb){_0x3b0233['push'](_0x3b0233['shift']());}}}(a66_0x2a87,0xc4d25));import{PRODUCT_CONFIG}from'../constant/product.js';export const LOVRABET_NPM_PACKAGE_NAME=PRODUCT_CONFIG[a66_0x5ade50(0x1df)];export const LOVRABET_SKILL_SOURCE=PRODUCT_CONFIG[a66_0x5ade50(0x1d9)];export const NPM_REGISTRY_BASE_URL=PRODUCT_CONFIG['npmRegistryBaseUrl'];function a66_0x2a87(){const _0x3cb3a9=['602577kWoshl','9373848hruwsi','npmPackageName','1UjxDjG','29221452bXMCRg','592165yizelG','1189066EZepMj','skillSource','2780684GhLMkm','7829997kdpCTv','8PHSRgk'];a66_0x2a87=function(){return _0x3cb3a9;};return a66_0x2a87();}
@@ -1 +1 @@
1
- function a62_0x50f9(_0x242400,_0x1bf136){_0x242400=_0x242400-0x103;const _0x12567d=a62_0x1256();let _0x50f96d=_0x12567d[_0x242400];return _0x50f96d;}const a62_0x4ae361=a62_0x50f9;(function(_0x390d4d,_0x4d02c9){const _0x2ffba4=a62_0x50f9,_0x4f5725=_0x390d4d();while(!![]){try{const _0x74ebe2=-parseInt(_0x2ffba4(0x10e))/0x1*(-parseInt(_0x2ffba4(0x106))/0x2)+-parseInt(_0x2ffba4(0x111))/0x3+-parseInt(_0x2ffba4(0x10a))/0x4*(-parseInt(_0x2ffba4(0x10b))/0x5)+parseInt(_0x2ffba4(0x10f))/0x6+parseInt(_0x2ffba4(0x104))/0x7+-parseInt(_0x2ffba4(0x117))/0x8+parseInt(_0x2ffba4(0x113))/0x9*(-parseInt(_0x2ffba4(0x10c))/0xa);if(_0x74ebe2===_0x4d02c9)break;else _0x4f5725['push'](_0x4f5725['shift']());}catch(_0x46dae1){_0x4f5725['push'](_0x4f5725['shift']());}}}(a62_0x1256,0x65cee));import{getEnv,isProduction}from'../constant/env.js';import{PRODUCT_CONFIG}from'../constant/product.js';let customApiDomain,customUserDomain,customRuntimeDomain,customSkillHubDomain;export function initDomains(_0x254df6){const _0x2ec567=a62_0x50f9;customApiDomain=_0x254df6?.[_0x2ec567(0x109)],customUserDomain=_0x254df6?.[_0x2ec567(0x105)],customRuntimeDomain=_0x254df6?.[_0x2ec567(0x10d)],customSkillHubDomain=_0x254df6?.[_0x2ec567(0x108)];}export const getUserDomain=()=>customUserDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a62_0x4ae361(0x114)]['production'][a62_0x4ae361(0x116)]:PRODUCT_CONFIG['domains'][a62_0x4ae361(0x107)][a62_0x4ae361(0x116)]);export const getApiDomain=()=>customApiDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a62_0x4ae361(0x114)][a62_0x4ae361(0x110)][a62_0x4ae361(0x112)]:PRODUCT_CONFIG['domains'][a62_0x4ae361(0x107)]['api']);export const getRuntimeDomain=()=>customRuntimeDomain||(isProduction(getEnv())?PRODUCT_CONFIG['domains']['production'][a62_0x4ae361(0x115)]:PRODUCT_CONFIG['domains'][a62_0x4ae361(0x107)][a62_0x4ae361(0x115)]);export const getSkillHubDomain=()=>customSkillHubDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a62_0x4ae361(0x114)][a62_0x4ae361(0x110)][a62_0x4ae361(0x103)]:PRODUCT_CONFIG[a62_0x4ae361(0x114)]['nonProduction'][a62_0x4ae361(0x103)]);function a62_0x1256(){const _0x48a8d8=['domains','runtime','user','2692152hDtRtQ','skillhub','3773161xqWFGT','userDomain','18NlDcDp','nonProduction','skillHubDomain','apiDomain','188SfsGDx','73835mnkkfy','42810rWkUNz','runtimeDomain','57543kpzZGU','644574CPQhoh','production','1786272fMSGdi','api','1071pFmxvy'];a62_0x1256=function(){return _0x48a8d8;};return a62_0x1256();}
1
+ const a67_0x24b729=a67_0x55c1;function a67_0x55c1(_0x3a8fe2,_0x435d38){_0x3a8fe2=_0x3a8fe2-0x1e4;const _0x151bd0=a67_0x151b();let _0x55c1b3=_0x151bd0[_0x3a8fe2];return _0x55c1b3;}(function(_0x5f15ca,_0x3d34c6){const _0x710e22=a67_0x55c1,_0x1bac1d=_0x5f15ca();while(!![]){try{const _0xffad7b=parseInt(_0x710e22(0x1eb))/0x1+parseInt(_0x710e22(0x1f8))/0x2*(parseInt(_0x710e22(0x1ed))/0x3)+parseInt(_0x710e22(0x1e6))/0x4+-parseInt(_0x710e22(0x1f3))/0x5*(-parseInt(_0x710e22(0x1f1))/0x6)+parseInt(_0x710e22(0x1ec))/0x7*(-parseInt(_0x710e22(0x1f6))/0x8)+parseInt(_0x710e22(0x1e7))/0x9+-parseInt(_0x710e22(0x1e8))/0xa*(parseInt(_0x710e22(0x1f0))/0xb);if(_0xffad7b===_0x3d34c6)break;else _0x1bac1d['push'](_0x1bac1d['shift']());}catch(_0x3d1ba0){_0x1bac1d['push'](_0x1bac1d['shift']());}}}(a67_0x151b,0x8ee9e));import{getEnv,isProduction}from'../constant/env.js';function a67_0x151b(){const _0x420c77=['apiDomain','8mmNzpf','domains','28088zlCTvf','user','userDomain','1281264jatoRk','2421432ZliUyC','217320lRxSLo','api','production','713493cvEMWv','4952507LgXaFl','204XIabpm','nonProduction','runtime','891LnBfnZ','90036IgZzlW','skillhub','265jzPZDf','skillHubDomain'];a67_0x151b=function(){return _0x420c77;};return a67_0x151b();}import{PRODUCT_CONFIG}from'../constant/product.js';let customApiDomain,customUserDomain,customRuntimeDomain,customSkillHubDomain;export function initDomains(_0x55eea9){const _0x265f7b=a67_0x55c1;customApiDomain=_0x55eea9?.[_0x265f7b(0x1f5)],customUserDomain=_0x55eea9?.[_0x265f7b(0x1e5)],customRuntimeDomain=_0x55eea9?.['runtimeDomain'],customSkillHubDomain=_0x55eea9?.[_0x265f7b(0x1f4)];}export const getUserDomain=()=>customUserDomain||(isProduction(getEnv())?PRODUCT_CONFIG['domains'][a67_0x24b729(0x1ea)][a67_0x24b729(0x1e4)]:PRODUCT_CONFIG['domains'][a67_0x24b729(0x1ee)][a67_0x24b729(0x1e4)]);export const getApiDomain=()=>customApiDomain||(isProduction(getEnv())?PRODUCT_CONFIG['domains'][a67_0x24b729(0x1ea)][a67_0x24b729(0x1e9)]:PRODUCT_CONFIG['domains']['nonProduction']['api']);export const getRuntimeDomain=()=>customRuntimeDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a67_0x24b729(0x1f7)][a67_0x24b729(0x1ea)]['runtime']:PRODUCT_CONFIG[a67_0x24b729(0x1f7)][a67_0x24b729(0x1ee)][a67_0x24b729(0x1ef)]);export const getSkillHubDomain=()=>customSkillHubDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a67_0x24b729(0x1f7)][a67_0x24b729(0x1ea)][a67_0x24b729(0x1f2)]:PRODUCT_CONFIG[a67_0x24b729(0x1f7)][a67_0x24b729(0x1ee)]['skillhub']);
@@ -1 +1 @@
1
- const a63_0x52f710=a63_0x52c8;(function(_0x7756b6,_0x236c79){const _0x17a963=a63_0x52c8,_0x4d9fa3=_0x7756b6();while(!![]){try{const _0x3eb03f=-parseInt(_0x17a963(0xe5))/0x1*(-parseInt(_0x17a963(0xf0))/0x2)+-parseInt(_0x17a963(0xe9))/0x3*(-parseInt(_0x17a963(0xef))/0x4)+-parseInt(_0x17a963(0xed))/0x5*(-parseInt(_0x17a963(0xe7))/0x6)+-parseInt(_0x17a963(0xee))/0x7+-parseInt(_0x17a963(0xec))/0x8*(-parseInt(_0x17a963(0xe8))/0x9)+parseInt(_0x17a963(0xf2))/0xa+-parseInt(_0x17a963(0xea))/0xb*(parseInt(_0x17a963(0xe6))/0xc);if(_0x3eb03f===_0x236c79)break;else _0x4d9fa3['push'](_0x4d9fa3['shift']());}catch(_0x25ff3a){_0x4d9fa3['push'](_0x4d9fa3['shift']());}}}(a63_0x2675,0x39b40));import{productEnv}from'../constant/product.js';export const RUNTIME_ENV_VALUES=['production',a63_0x52f710(0xf1),'daily'];export function normalizeEnv(_0x387916){const _0x3ece8d=a63_0x52f710;return _0x387916===_0x3ece8d(0xeb)?_0x3ece8d(0xe4):_0x387916;}function a63_0x2675(){const _0x1030ab=['12148741nTcWTQ','online','2446424dAmlLm','5zWBWGF','385819mqgXnw','4cSsYLj','821726LAbhkR','development','33180hgZspw','production','1NXFWTE','12lJbnJq','2359758cCCamu','9NvwOqr','847869ZQIgDY'];a63_0x2675=function(){return _0x1030ab;};return a63_0x2675();}export function isProduction(_0x1f991c){const _0x33d6cf=a63_0x52f710;return normalizeEnv(_0x1f991c)===_0x33d6cf(0xe4);}export function isDaily(_0x1ce93d){return normalizeEnv(_0x1ce93d)==='daily';}function a63_0x52c8(_0x2cb077,_0x37f69b){_0x2cb077=_0x2cb077-0xe4;const _0x267514=a63_0x2675();let _0x52c85a=_0x267514[_0x2cb077];return _0x52c85a;}export function isDev(_0x583e7c){const _0x5a106d=a63_0x52f710,_0x7a4c61=normalizeEnv(_0x583e7c);return _0x7a4c61===_0x5a106d(0xf1)||_0x7a4c61==='dev';}let env=normalizeEnv(productEnv('ENV')||'production');export function getEnv(){return env;}export function initEnv(_0x424146){env=normalizeEnv(_0x424146);}
1
+ const a68_0x313342=a68_0x3d62;(function(_0xccd0b5,_0x38ad58){const _0x3ea219=a68_0x3d62,_0x2095df=_0xccd0b5();while(!![]){try{const _0x5a8d1c=-parseInt(_0x3ea219(0xf9))/0x1*(-parseInt(_0x3ea219(0x104))/0x2)+parseInt(_0x3ea219(0x105))/0x3*(parseInt(_0x3ea219(0x108))/0x4)+-parseInt(_0x3ea219(0x102))/0x5+-parseInt(_0x3ea219(0x107))/0x6*(-parseInt(_0x3ea219(0x100))/0x7)+parseInt(_0x3ea219(0x106))/0x8+parseInt(_0x3ea219(0xfc))/0x9+parseInt(_0x3ea219(0x101))/0xa*(-parseInt(_0x3ea219(0xfe))/0xb);if(_0x5a8d1c===_0x38ad58)break;else _0x2095df['push'](_0x2095df['shift']());}catch(_0x4e5cfa){_0x2095df['push'](_0x2095df['shift']());}}}(a68_0x4eb2,0x482ea));import{productEnv}from'../constant/product.js';export const RUNTIME_ENV_VALUES=[a68_0x313342(0xff),a68_0x313342(0x109),a68_0x313342(0xfd)];export function normalizeEnv(_0x5f3b1c){const _0x424994=a68_0x313342;return _0x5f3b1c===_0x424994(0xfb)?_0x424994(0xff):_0x5f3b1c;}export function isProduction(_0x520566){const _0x28f80f=a68_0x313342;return normalizeEnv(_0x520566)===_0x28f80f(0xff);}export function isDaily(_0xa5e23a){return normalizeEnv(_0xa5e23a)==='daily';}function a68_0x3d62(_0x4fa3a2,_0x55bef2){_0x4fa3a2=_0x4fa3a2-0xf9;const _0x4eb244=a68_0x4eb2();let _0x3d62c7=_0x4eb244[_0x4fa3a2];return _0x3d62c7;}export function isDev(_0x4e1c55){const _0x3b1a66=a68_0x313342,_0x2b39f3=normalizeEnv(_0x4e1c55);return _0x2b39f3===_0x3b1a66(0x109)||_0x2b39f3===_0x3b1a66(0xfa);}let env=normalizeEnv(productEnv(a68_0x313342(0x103))||a68_0x313342(0xff));export function getEnv(){return env;}export function initEnv(_0xd3ba37){env=normalizeEnv(_0xd3ba37);}function a68_0x4eb2(){const _0x4eab22=['2551265YmCKJw','ENV','102bCXVSi','1770198ZXvkRT','2382704AiDsRD','1310718VdMLJk','4FiyRAR','development','312rTBtct','dev','online','4078791HJbcCr','daily','4807mbhUoT','production','7OlTHpS','17610LsjKUY'];a68_0x4eb2=function(){return _0x4eab22;};return a68_0x4eb2();}
@@ -1 +1 @@
1
- const a64_0x159f05=a64_0x5649;function a64_0x109e(){const _0x1ba329=['compress','5599dhMJqi','72iRxlAv','2847593oozQIt','970xRFgRO','184939hPYDNE','pretty','42831vgtUAB','30mZYAoK','725616OJFEWF','80973VJrvim','json','366522sttRug','8cEzESz'];a64_0x109e=function(){return _0x1ba329;};return a64_0x109e();}function a64_0x5649(_0x378f91,_0x3509a4){_0x378f91=_0x378f91-0x1b6;const _0x109ec3=a64_0x109e();let _0x5649cc=_0x109ec3[_0x378f91];return _0x5649cc;}(function(_0x43cd26,_0x3cb5b3){const _0x3624db=a64_0x5649,_0x3e3a01=_0x43cd26();while(!![]){try{const _0x324ccd=parseInt(_0x3624db(0x1b7))/0x1+parseInt(_0x3624db(0x1bf))/0x2*(-parseInt(_0x3624db(0x1bc))/0x3)+parseInt(_0x3624db(0x1bb))/0x4+parseInt(_0x3624db(0x1ba))/0x5*(parseInt(_0x3624db(0x1be))/0x6)+-parseInt(_0x3624db(0x1c3))/0x7+-parseInt(_0x3624db(0x1c2))/0x8*(-parseInt(_0x3624db(0x1b9))/0x9)+parseInt(_0x3624db(0x1b6))/0xa*(-parseInt(_0x3624db(0x1c1))/0xb);if(_0x324ccd===_0x3cb5b3)break;else _0x3e3a01['push'](_0x3e3a01['shift']());}catch(_0x1d30de){_0x3e3a01['push'](_0x3e3a01['shift']());}}}(a64_0x109e,0x33a68));export const OUTPUT_FORMAT_VALUES=[a64_0x159f05(0x1bd),a64_0x159f05(0x1b8),a64_0x159f05(0x1c0)];
1
+ function a69_0x2d56(_0x5c08c1,_0xc1106f){_0x5c08c1=_0x5c08c1-0x185;const _0x208f6a=a69_0x208f();let _0x2d5619=_0x208f6a[_0x5c08c1];return _0x2d5619;}const a69_0x1dc728=a69_0x2d56;(function(_0x3b1979,_0x390e09){const _0x15f3f3=a69_0x2d56,_0x511d9c=_0x3b1979();while(!![]){try{const _0x392314=-parseInt(_0x15f3f3(0x185))/0x1*(-parseInt(_0x15f3f3(0x187))/0x2)+parseInt(_0x15f3f3(0x189))/0x3+parseInt(_0x15f3f3(0x186))/0x4+-parseInt(_0x15f3f3(0x188))/0x5+parseInt(_0x15f3f3(0x18f))/0x6+parseInt(_0x15f3f3(0x18e))/0x7+-parseInt(_0x15f3f3(0x18a))/0x8;if(_0x392314===_0x390e09)break;else _0x511d9c['push'](_0x511d9c['shift']());}catch(_0xf3dd56){_0x511d9c['push'](_0x511d9c['shift']());}}}(a69_0x208f,0xdcdb1));export const OUTPUT_FORMAT_VALUES=[a69_0x1dc728(0x18d),a69_0x1dc728(0x18c),a69_0x1dc728(0x18b)];function a69_0x208f(){const _0x13a2f3=['4669696iFNnTD','compress','pretty','json','297997lfQPdF','4559454JlZZiq','4mwrnOy','1588900RVRGVW','31016XQWIYY','1216975DzZXlg','1409985mUXlkh'];a69_0x208f=function(){return _0x13a2f3;};return a69_0x208f();}
@@ -1 +1 @@
1
- const a65_0x356b22=a65_0x2e8e;(function(_0x2121ae,_0x5caa4b){const _0x59b16a=a65_0x2e8e,_0x3e1f74=_0x2121ae();while(!![]){try{const _0x4590d3=parseInt(_0x59b16a(0x1f1))/0x1+-parseInt(_0x59b16a(0x1fc))/0x2*(-parseInt(_0x59b16a(0x1eb))/0x3)+parseInt(_0x59b16a(0x208))/0x4*(-parseInt(_0x59b16a(0x1f7))/0x5)+-parseInt(_0x59b16a(0x201))/0x6*(parseInt(_0x59b16a(0x1f6))/0x7)+parseInt(_0x59b16a(0x207))/0x8+-parseInt(_0x59b16a(0x202))/0x9*(-parseInt(_0x59b16a(0x205))/0xa)+parseInt(_0x59b16a(0x1f0))/0xb;if(_0x4590d3===_0x5caa4b)break;else _0x3e1f74['push'](_0x3e1f74['shift']());}catch(_0x2d5279){_0x3e1f74['push'](_0x3e1f74['shift']());}}}(a65_0x5b41,0xb6dab));export const PRODUCT_CONFIG={'cliBinName':'lovrabet','cliDisplayName':a65_0x356b22(0x1f5),'npmPackageName':a65_0x356b22(0x204),'skillSource':a65_0x356b22(0x1ec),'npmRegistryBaseUrl':a65_0x356b22(0x1e9),'envPrefix':a65_0x356b22(0x1f3),'legacyEnvPrefixes':[a65_0x356b22(0x1fa)],'configFileNames':[a65_0x356b22(0x1f9),a65_0x356b22(0x1ff)],'newConfigFileName':'.lovrabet.json','homeDirName':a65_0x356b22(0x1fe),'logFileName':a65_0x356b22(0x1ea),'invokeSource':a65_0x356b22(0x1f2),'userCenterDisplayName':a65_0x356b22(0x200),'skipNpxSkillsEnvSuffix':a65_0x356b22(0x1f4),'domains':{'production':{'user':'https://user.lovrabet.com','api':a65_0x356b22(0x1fd),'runtime':a65_0x356b22(0x206),'skillhub':a65_0x356b22(0x1f8)},'nonProduction':{'user':'https://user-daily.lovrabet.com','api':'https://daily-api.lovrabet.com','runtime':a65_0x356b22(0x1fb),'skillhub':a65_0x356b22(0x203)}},'accessKeyCreatePath':a65_0x356b22(0x1ef)};export function productEnvName(_0x2f7f7b){const _0x4d95d3=a65_0x356b22;return PRODUCT_CONFIG[_0x4d95d3(0x1ee)]+'_'+_0x2f7f7b;}function a65_0x2e8e(_0x1d80e8,_0x3c3251){_0x1d80e8=_0x1d80e8-0x1e9;const _0x5b4157=a65_0x5b41();let _0x2e8e47=_0x5b4157[_0x1d80e8];return _0x2e8e47;}export function productEnvNames(_0x2b14ad){const _0x3c67ef=a65_0x356b22;return[productEnvName(_0x2b14ad),...PRODUCT_CONFIG['legacyEnvPrefixes'][_0x3c67ef(0x1ed)](_0x30279d=>_0x30279d+'_'+_0x2b14ad)];}export function productEnv(_0x55fdcf){for(const _0x19ab62 of productEnvNames(_0x55fdcf)){const _0x1af130=process.env[_0x19ab62];if(_0x1af130!==undefined)return _0x1af130;}return undefined;}function a65_0x5b41(){const _0x556a9d=['414465VRFNAx','lovrabet/lovrabet-cli','map','envPrefix','/user/ak','3304301IPZuke','971157VWLMjW','cli:lovrabet-runtime','LOVRABET','SKIP_NPX_SKILLS','Lovrabet\x20Runtime\x20CLI','105baLRUz','20semSpf','https://skills.lovrabet.com','.lovrabet.json','RABETBASE','https://daily-runtime.lovrabet.com','2PQptFd','https://api.lovrabet.com','.lovrabet','.lovrabetrc','Lovrabet\x20User\x20Center','212808ZxLwuc','225kwdRde','https://skills-daily.lovrabet.com','@lovrabet/lovrabet-cli','180650XVUUQW','https://runtime.lovrabet.com','5389048hojTNK','1253968FYXymg','https://registry.npmjs.org','.lovrabet-runtime.log'];a65_0x5b41=function(){return _0x556a9d;};return a65_0x5b41();}
1
+ function a70_0x5346(){const _0x20a0cd=['3HUQIjV','https://user-daily.lovrabet.com','cli:lovrabet-runtime','/user/ak','legacyEnvPrefixes','https://user.lovrabet.com','https://api.lovrabet.com','63320GKNirx','lovrabet','2047780BvfTxB','RABETBASE','172518KVSnlO','1866254tEbZKD','envPrefix','3360cTcLVq','36586NgscYI','https://daily-api.lovrabet.com','Lovrabet\x20User\x20Center','.lovrabet','59712cfuDeF','Lovrabet\x20Runtime\x20CLI','18xzXBuj','https://runtime.lovrabet.com','https://skills.lovrabet.com','.lovrabet-runtime.log','49QQMsHc','2AUGmCT','SKIP_NPX_SKILLS','https://registry.npmjs.org','lovrabet/lovrabet-cli','65iwmeVz','76564oyCuCX','.lovrabet.json'];a70_0x5346=function(){return _0x20a0cd;};return a70_0x5346();}const a70_0x296138=a70_0x19f2;(function(_0x5b78c2,_0x283a42){const _0x55dc15=a70_0x19f2,_0x41d205=_0x5b78c2();while(!![]){try{const _0x2e3fa3=-parseInt(_0x55dc15(0xdf))/0x1*(-parseInt(_0x55dc15(0xee))/0x2)+parseInt(_0x55dc15(0xf5))/0x3*(parseInt(_0x55dc15(0xf3))/0x4)+-parseInt(_0x55dc15(0xf2))/0x5*(parseInt(_0x55dc15(0xe7))/0x6)+parseInt(_0x55dc15(0xed))/0x7*(-parseInt(_0x55dc15(0xdb))/0x8)+parseInt(_0x55dc15(0xe9))/0x9*(-parseInt(_0x55dc15(0xdd))/0xa)+-parseInt(_0x55dc15(0xe3))/0xb*(-parseInt(_0x55dc15(0xe2))/0xc)+parseInt(_0x55dc15(0xe0))/0xd;if(_0x2e3fa3===_0x283a42)break;else _0x41d205['push'](_0x41d205['shift']());}catch(_0x156702){_0x41d205['push'](_0x41d205['shift']());}}}(a70_0x5346,0xa41a0));function a70_0x19f2(_0x56d727,_0x2ef8f9){_0x56d727=_0x56d727-0xd9;const _0x534617=a70_0x5346();let _0x19f25b=_0x534617[_0x56d727];return _0x19f25b;}export const PRODUCT_CONFIG={'cliBinName':a70_0x296138(0xdc),'cliDisplayName':a70_0x296138(0xe8),'npmPackageName':'@lovrabet/lovrabet-cli','skillSource':a70_0x296138(0xf1),'npmRegistryBaseUrl':a70_0x296138(0xf0),'envPrefix':'LOVRABET','legacyEnvPrefixes':[a70_0x296138(0xde)],'configFileNames':[a70_0x296138(0xf4),'.lovrabetrc'],'newConfigFileName':'.lovrabet.json','homeDirName':a70_0x296138(0xe6),'logFileName':a70_0x296138(0xec),'invokeSource':a70_0x296138(0xf7),'userCenterDisplayName':a70_0x296138(0xe5),'skipNpxSkillsEnvSuffix':a70_0x296138(0xef),'domains':{'production':{'user':a70_0x296138(0xd9),'api':a70_0x296138(0xda),'runtime':a70_0x296138(0xea),'skillhub':a70_0x296138(0xeb)},'nonProduction':{'user':a70_0x296138(0xf6),'api':a70_0x296138(0xe4),'runtime':'https://daily-runtime.lovrabet.com','skillhub':'https://skills-daily.lovrabet.com'}},'accessKeyCreatePath':a70_0x296138(0xf8)};export function productEnvName(_0x32dff0){const _0x500feb=a70_0x296138;return PRODUCT_CONFIG[_0x500feb(0xe1)]+'_'+_0x32dff0;}export function productEnvNames(_0x5f3671){const _0x56ac0b=a70_0x296138;return[productEnvName(_0x5f3671),...PRODUCT_CONFIG[_0x56ac0b(0xf9)]['map'](_0x59e22e=>_0x59e22e+'_'+_0x5f3671)];}export function productEnv(_0x70b72e){for(const _0x2a75ca of productEnvNames(_0x70b72e)){const _0x3349e3=process.env[_0x2a75ca];if(_0x3349e3!==undefined)return _0x3349e3;}return undefined;}
@@ -1 +1 @@
1
- function a66_0x33fe(_0x5a8ccf,_0x44ac5a){_0x5a8ccf=_0x5a8ccf-0x1a8;const _0x323278=a66_0x3232();let _0x33fe94=_0x323278[_0x5a8ccf];return _0x33fe94;}const a66_0x146ee5=a66_0x33fe;(function(_0x5596ff,_0x193f9f){const _0xaf2390=a66_0x33fe,_0x162ca1=_0x5596ff();while(!![]){try{const _0x2ce415=parseInt(_0xaf2390(0x1ab))/0x1*(-parseInt(_0xaf2390(0x1ae))/0x2)+parseInt(_0xaf2390(0x1a8))/0x3+-parseInt(_0xaf2390(0x1a9))/0x4+-parseInt(_0xaf2390(0x1b1))/0x5+-parseInt(_0xaf2390(0x1b2))/0x6+parseInt(_0xaf2390(0x1af))/0x7+-parseInt(_0xaf2390(0x1ad))/0x8*(-parseInt(_0xaf2390(0x1b0))/0x9);if(_0x2ce415===_0x193f9f)break;else _0x162ca1['push'](_0x162ca1['shift']());}catch(_0x54f9c5){_0x162ca1['push'](_0x162ca1['shift']());}}}(a66_0x3232,0x7a442));export const RISK_LEVEL_VALUES=[a66_0x146ee5(0x1aa),a66_0x146ee5(0x1ac),'high-risk-write'];function a66_0x3232(){const _0x1c0fc7=['read','501167TbmLgN','write','24hBbwdH','2GKPOAH','6533303iOojDl','1266228dPuTKq','2250665AneORa','1883310dKOOqr','2529966hnwLCo','1730960EVDzKo'];a66_0x3232=function(){return _0x1c0fc7;};return a66_0x3232();}
1
+ function a71_0x2da8(_0x25aead,_0x2c112e){_0x25aead=_0x25aead-0x6f;const _0x50ae20=a71_0x50ae();let _0x2da8a1=_0x50ae20[_0x25aead];return _0x2da8a1;}const a71_0x1ecdd7=a71_0x2da8;function a71_0x50ae(){const _0x3a7d95=['392550pRbOMC','3714237tapiSE','8101560pBuNMW','6ZhpeOM','8dnkmRI','1710295TSHlxx','477602LWuETj','high-risk-write','2448005sRifUb','246201WxOEzN','12SDvwKN'];a71_0x50ae=function(){return _0x3a7d95;};return a71_0x50ae();}(function(_0x333eaf,_0x4a400f){const _0x221bea=a71_0x2da8,_0x1118a8=_0x333eaf();while(!![]){try{const _0x4a5fe7=-parseInt(_0x221bea(0x72))/0x1+-parseInt(_0x221bea(0x78))/0x2+parseInt(_0x221bea(0x70))/0x3*(-parseInt(_0x221bea(0x71))/0x4)+-parseInt(_0x221bea(0x77))/0x5*(-parseInt(_0x221bea(0x75))/0x6)+-parseInt(_0x221bea(0x6f))/0x7*(-parseInt(_0x221bea(0x76))/0x8)+-parseInt(_0x221bea(0x73))/0x9+parseInt(_0x221bea(0x74))/0xa;if(_0x4a5fe7===_0x4a400f)break;else _0x1118a8['push'](_0x1118a8['shift']());}catch(_0x438dd2){_0x1118a8['push'](_0x1118a8['shift']());}}}(a71_0x50ae,0x33ae5));export const RISK_LEVEL_VALUES=['read','write',a71_0x1ecdd7(0x79)];
@@ -1 +1 @@
1
- const a67_0x5cea89=a67_0x34a0;function a67_0x34a0(_0x8e2a52,_0x4c884d){_0x8e2a52=_0x8e2a52-0x1db;const _0x4a8d0e=a67_0x4a8d();let _0x34a053=_0x4a8d0e[_0x8e2a52];return _0x34a053;}(function(_0x50d254,_0x5e973d){const _0x5a8743=a67_0x34a0,_0x576caa=_0x50d254();while(!![]){try{const _0xca8eb1=-parseInt(_0x5a8743(0x1de))/0x1+parseInt(_0x5a8743(0x1db))/0x2*(-parseInt(_0x5a8743(0x1e6))/0x3)+-parseInt(_0x5a8743(0x1e3))/0x4*(-parseInt(_0x5a8743(0x1e7))/0x5)+parseInt(_0x5a8743(0x1e2))/0x6*(parseInt(_0x5a8743(0x1e5))/0x7)+parseInt(_0x5a8743(0x1e8))/0x8*(-parseInt(_0x5a8743(0x1e1))/0x9)+-parseInt(_0x5a8743(0x1dd))/0xa+parseInt(_0x5a8743(0x1dc))/0xb*(parseInt(_0x5a8743(0x1e0))/0xc);if(_0xca8eb1===_0x5e973d)break;else _0x576caa['push'](_0x576caa['shift']());}catch(_0x409bd5){_0x576caa['push'](_0x576caa['shift']());}}}(a67_0x4a8d,0xf2bfe));import{PRODUCT_CONFIG}from'../constant/product.js';function a67_0x4a8d(){const _0x543145=['136960qrEXcQ','12ZJoEvL','121RSsMlP','17107680gxwnkD','1572140CUTLLL','user','5222724rPBjWw','774GbYKmI','1614EBFycE','3551188dxjppk','domains','30674fDpHOo','552261WnhfTa','5LaIiXV'];a67_0x4a8d=function(){return _0x543145;};return a67_0x4a8d();}export const USER_ACCESS_KEY_CREATE_URL=''+PRODUCT_CONFIG[a67_0x5cea89(0x1e4)]['production'][a67_0x5cea89(0x1df)]+PRODUCT_CONFIG['accessKeyCreatePath'];
1
+ const a72_0x37d977=a72_0x77cf;function a72_0x44db(){const _0x4977f7=['535115oPmNQP','105726YEqZMG','production','8664rkncoJ','6IEOkho','domains','306008NVJjmu','2VJMmCf','7161aeMOMz','1352407iNhwIG','24VYLhtj','1878790OCvrLD','249042fqiIEe','user','accessKeyCreatePath','63zlqxZf'];a72_0x44db=function(){return _0x4977f7;};return a72_0x44db();}(function(_0x3827de,_0x218739){const _0x4d8144=a72_0x77cf,_0x2703e0=_0x3827de();while(!![]){try{const _0x352b7c=-parseInt(_0x4d8144(0x7c))/0x1*(-parseInt(_0x4d8144(0x81))/0x2)+parseInt(_0x4d8144(0x86))/0x3*(-parseInt(_0x4d8144(0x7f))/0x4)+-parseInt(_0x4d8144(0x85))/0x5+parseInt(_0x4d8144(0x89))/0x6*(parseInt(_0x4d8144(0x7e))/0x7)+parseInt(_0x4d8144(0x7b))/0x8*(-parseInt(_0x4d8144(0x84))/0x9)+-parseInt(_0x4d8144(0x80))/0xa+parseInt(_0x4d8144(0x7d))/0xb*(parseInt(_0x4d8144(0x88))/0xc);if(_0x352b7c===_0x218739)break;else _0x2703e0['push'](_0x2703e0['shift']());}catch(_0x2607a7){_0x2703e0['push'](_0x2703e0['shift']());}}}(a72_0x44db,0x21baa));function a72_0x77cf(_0x194702,_0x2d7a1f){_0x194702=_0x194702-0x7a;const _0x44dbe5=a72_0x44db();let _0x77cfe9=_0x44dbe5[_0x194702];return _0x77cfe9;}import{PRODUCT_CONFIG}from'../constant/product.js';export const USER_ACCESS_KEY_CREATE_URL=''+PRODUCT_CONFIG[a72_0x37d977(0x7a)][a72_0x37d977(0x87)][a72_0x37d977(0x82)]+PRODUCT_CONFIG[a72_0x37d977(0x83)];
package/lib/context.js CHANGED
@@ -1 +1 @@
1
- const a68_0x4a00b3=a68_0xb49c;(function(_0x2e9aa0,_0x45ffc2){const _0x495eb1=a68_0xb49c,_0x4852b9=_0x2e9aa0();while(!![]){try{const _0x2e6135=parseInt(_0x495eb1(0x15e))/0x1*(-parseInt(_0x495eb1(0x123))/0x2)+parseInt(_0x495eb1(0x155))/0x3+-parseInt(_0x495eb1(0x147))/0x4+-parseInt(_0x495eb1(0x14c))/0x5+parseInt(_0x495eb1(0x159))/0x6*(-parseInt(_0x495eb1(0x133))/0x7)+parseInt(_0x495eb1(0x145))/0x8+parseInt(_0x495eb1(0x14b))/0x9*(parseInt(_0x495eb1(0x161))/0xa);if(_0x2e6135===_0x45ffc2)break;else _0x4852b9['push'](_0x4852b9['shift']());}catch(_0x4bc3b6){_0x4852b9['push'](_0x4852b9['shift']());}}}(a68_0x3225,0x8d984));import{readFileSync,existsSync,mkdirSync,renameSync,unlinkSync,writeFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{homedir}from'node:os';import{logger}from'./utils/logger.js';import{CliErrors}from'./errors.js';import{CLI_BIN_NAME}from'./constant/cli.js';import{PRODUCT_CONFIG,productEnv,productEnvNames}from'./constant/product.js';import{DEFAULT_CONFIG_VALUES}from'./constant/defaults.js';import{normalizeEnv,isDaily,isDev}from'./constant/env.js';import{normalizeLegacyOutputFormat}from'./framework/types.js';import{resolveCachedAppCode}from'./commands/app/cache.js';export{AUTH_MODE,isAuthMode}from'./constant/auth-mode.js';function a68_0xb49c(_0x4a086a,_0x421717){_0x4a086a=_0x4a086a-0x117;const _0x3225e9=a68_0x3225();let _0xb49c83=_0x3225e9[_0x4a086a];return _0xb49c83;}const CONFIG_NAMES=PRODUCT_CONFIG[a68_0x4a00b3(0x12f)];export const NEW_CONFIG_NAME=PRODUCT_CONFIG[a68_0x4a00b3(0x134)];function resolveConfigPath(_0x3ae364){for(const _0x4ec64a of CONFIG_NAMES){const _0xbf3c79=resolve(_0x3ae364,_0x4ec64a);if(existsSync(_0xbf3c79))return _0xbf3c79;}return undefined;}export function resolveWriteConfigPath(_0x28604a){const _0x39732f=a68_0x4a00b3,_0x901b4d=_0x28604a===_0x39732f(0x11b)?process[_0x39732f(0x142)]():homedir(),_0xef0285=resolveConfigPath(_0x901b4d);return _0xef0285??resolve(_0x901b4d,NEW_CONFIG_NAME);}export function readConfigFile(_0x1fca5f){const _0x315ea1=a68_0x4a00b3;try{if(existsSync(_0x1fca5f)){const _0x2f47bd=readFileSync(_0x1fca5f,{'encoding':_0x315ea1(0x13a)});if(_0x2f47bd){const _0x7b3a5c=JSON[_0x315ea1(0x148)](_0x2f47bd);return migrateOnlineEnv(_0x1fca5f,_0x7b3a5c),_0x7b3a5c;}}}catch{}return{};}function migrateOnlineEnv(_0x2c31f7,_0x3fd7dd){const _0x8334de=a68_0x4a00b3;let _0x3e49f2=![];_0x3fd7dd[_0x8334de(0x118)]===_0x8334de(0x117)&&(_0x3fd7dd[_0x8334de(0x118)]='production',_0x3e49f2=!![]);if(_0x3fd7dd[_0x8334de(0x12d)]&&typeof _0x3fd7dd[_0x8334de(0x12d)]===_0x8334de(0x13d))for(const _0x5d9ff9 of Object[_0x8334de(0x151)](_0x3fd7dd[_0x8334de(0x12d)])){_0x5d9ff9&&_0x5d9ff9[_0x8334de(0x118)]===_0x8334de(0x117)&&(_0x5d9ff9['env']=_0x8334de(0x11d),_0x3e49f2=!![]);}if(_0x3e49f2)try{writeConfigFile(_0x2c31f7,_0x3fd7dd);}catch{}}export function writeConfigFile(_0xf3fa3d,_0x14c3a2){const _0x5dac34=a68_0x4a00b3,_0xb401a7=dirname(_0xf3fa3d);!existsSync(_0xb401a7)&&mkdirSync(_0xb401a7,{'recursive':!![]});const _0x48f5a=_0xf3fa3d+_0x5dac34(0x141);try{writeFileSync(_0x48f5a,JSON[_0x5dac34(0x13f)](_0x14c3a2,null,0x2)+'\x0a',{'encoding':_0x5dac34(0x13a),'mode':0x180});try{renameSync(_0x48f5a,_0xf3fa3d);}catch(_0x4a2f83){if(_0x4a2f83[_0x5dac34(0x13c)]===_0x5dac34(0x152)||_0x4a2f83[_0x5dac34(0x13c)]===_0x5dac34(0x13b)||_0x4a2f83[_0x5dac34(0x13c)]===_0x5dac34(0x156)){writeFileSync(_0xf3fa3d,JSON[_0x5dac34(0x13f)](_0x14c3a2,null,0x2)+'\x0a',{'encoding':_0x5dac34(0x13a)});try{unlinkSync(_0x48f5a);}catch{}}else throw _0x4a2f83;}}catch(_0x15e05){try{unlinkSync(_0x48f5a);}catch{}throw _0x15e05;}}export function isNonInteractiveMode(_0x2c983d){const _0x257b4e=a68_0x4a00b3;return!!(_0x2c983d[_0x257b4e(0x130)]||_0x2c983d['ci']||productEnvNames('CI')[_0x257b4e(0x11e)](_0x210575=>process.env[_0x210575]==='true')||process.env.CI===_0x257b4e(0x15c)||!process[_0x257b4e(0x164)]['isTTY']||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x1a205f=a68_0x4a00b3;if(!process[_0x1a205f(0x165)][_0x1a205f(0x11a)])return![];try{const _0xa2ad33=process[_0x1a205f(0x165)]['isRaw'];return process['stdin']['setRawMode'](!![]),process[_0x1a205f(0x165)][_0x1a205f(0x129)](_0xa2ad33??![]),!![];}catch{return![];}}export async function createContext(_0x4ca769){const _0x471580=a68_0x4a00b3,_0xcebd33=readRawConfig(),_0x51164d=buildConfig(_0xcebd33,_0x4ca769);await initGlobalEnvironment(_0x51164d);const {getUserDomain:_0x47c0c5,getApiDomain:_0xef8734}=await import(_0x471580(0x140)),_0xf0408={'apiDomain':_0xef8734(),'userDomain':_0x47c0c5()},_0x866b40=await buildAuth(_0x51164d);logger[_0x471580(0x125)](process[_0x471580(0x142)]());const _0x31ef28=(CLI_BIN_NAME+'\x20'+process[_0x471580(0x12e)][_0x471580(0x154)](0x2)[_0x471580(0x15f)]('\x20'))[_0x471580(0x162)]();logger['setRawCommand'](_0x31ef28);const _0xce420=isNonInteractiveMode(_0x4ca769);return{'config':_0x51164d,'auth':_0x866b40,'logger':logger,'env':_0xf0408,'nonInteractive':_0xce420};}export function buildConfigFromFlags(_0x552493){return buildConfig(readRawConfig(),_0x552493);}export function getLocalAppAliases(_0x195532){const _0x545e12=a68_0x4a00b3;return _0x195532[_0x545e12(0x12d)]&&typeof _0x195532[_0x545e12(0x12d)]===_0x545e12(0x13d)?_0x195532[_0x545e12(0x12d)]:{};}export function resolveLocalAppAliasCode(_0x45847a,_0x1b9a9e){const _0xe3f0ba=a68_0x4a00b3;if(!_0x1b9a9e)return undefined;const _0x97db1d=getLocalAppAliases(_0x45847a)[_0x1b9a9e],_0x3247a7=_0x97db1d?.[_0xe3f0ba(0x14e)];return typeof _0x3247a7===_0xe3f0ba(0x153)&&_0x3247a7[_0xe3f0ba(0x162)]()?_0x3247a7['trim']():undefined;}export function readAppCodeFromConfig(){const _0x5274bf=a68_0x4a00b3,_0x257bc7=readRawConfig(),_0x1ffe09=_0x257bc7[_0x5274bf(0x14e)]??_0x257bc7[_0x5274bf(0x160)];if(typeof _0x1ffe09===_0x5274bf(0x153)&&_0x1ffe09['trim']())return _0x1ffe09['trim']();const _0x40a1a4=resolveLocalAppAliasCode(_0x257bc7,typeof _0x257bc7[_0x5274bf(0x163)]===_0x5274bf(0x153)?_0x257bc7[_0x5274bf(0x163)]:undefined);if(_0x40a1a4)return _0x40a1a4;const _0x71e257=normalizeEnv(String(_0x257bc7[_0x5274bf(0x118)]||_0x5274bf(0x11d))),_0x1907ca=isDaily(_0x71e257)?_0x5274bf(0x12c):isDev(_0x71e257)?'development':'production',_0x53739f=resolveCachedAppCode(typeof _0x257bc7[_0x5274bf(0x163)]===_0x5274bf(0x153)?_0x257bc7['defaultApp']:undefined,_0x1907ca,typeof _0x257bc7[_0x5274bf(0x157)]===_0x5274bf(0x153)?_0x257bc7['accessKey']:undefined);if(_0x53739f)return _0x53739f;const _0x1bd731=Object[_0x5274bf(0x151)](getLocalAppAliases(_0x257bc7))[_0x5274bf(0x124)](_0x16ad04=>_0x16ad04?.[_0x5274bf(0x14e)]);return typeof _0x1bd731?.['appcode']==='string'&&_0x1bd731['appcode'][_0x5274bf(0x162)]()?_0x1bd731['appcode'][_0x5274bf(0x162)]():undefined;}export function readScopedConfig(_0x39e555){const _0x133895=a68_0x4a00b3,_0x37a4f9=_0x39e555[_0x133895(0x150)]?'global':'project';return readConfigFile(resolveWriteConfigPath(_0x37a4f9));}export function writeScopedConfig(_0x1566b7,_0x28f309){const _0xbf15b4=a68_0x4a00b3,_0x58766a=_0x28f309['global']?_0xbf15b4(0x150):_0xbf15b4(0x11b);writeConfigFile(resolveWriteConfigPath(_0x58766a),_0x1566b7);}export async function initGlobalEnvironment(_0x4c32d8){const _0x1058f6=a68_0x4a00b3,{initEnv:_0x3f919c}=await import(_0x1058f6(0x139));_0x3f919c(_0x4c32d8['env']);const {initDomains:_0x176a83}=await import(_0x1058f6(0x140));_0x176a83({'apiDomain':_0x4c32d8[_0x1058f6(0x149)][_0x1058f6(0x146)]||_0x4c32d8[_0x1058f6(0x149)][_0x1058f6(0x14f)]||undefined,'userDomain':_0x4c32d8[_0x1058f6(0x149)][_0x1058f6(0x128)]||undefined,'runtimeDomain':_0x4c32d8[_0x1058f6(0x149)][_0x1058f6(0x122)]||undefined,'skillHubDomain':_0x4c32d8[_0x1058f6(0x149)][_0x1058f6(0x135)]||undefined});}export function getProjectConfigPath(){return resolveConfigPath(process['cwd']());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function inspectCliConfigJsonFile(_0x1944e7){const _0x3d6bff=a68_0x4a00b3;if(!existsSync(_0x1944e7))return{'status':'missing'};try{const _0x3c9912=readFileSync(_0x1944e7,{'encoding':_0x3d6bff(0x13a)});if(!_0x3c9912?.[_0x3d6bff(0x162)]())return{'status':_0x3d6bff(0x11c)};const _0x15146d=JSON[_0x3d6bff(0x148)](_0x3c9912);return{'status':'ok','data':_0x15146d};}catch(_0x5e198d){return{'status':'error','message':_0x5e198d instanceof Error?_0x5e198d[_0x3d6bff(0x158)]:String(_0x5e198d)};}}export function loadRawConfigLayers(_0x3297b2){const _0x1bf169=a68_0x4a00b3;let _0x38c4ef={},_0x341149={},_0xa69671,_0x3715d1;try{_0xa69671=resolveConfigPath(homedir());if(_0xa69671){const _0xdf27cd=readFileSync(_0xa69671,{'encoding':_0x1bf169(0x13a)});if(_0xdf27cd)_0x38c4ef=JSON['parse'](_0xdf27cd);}}catch{}try{const _0x8e5978=_0x3297b2||process[_0x1bf169(0x142)]();_0x3715d1=resolveConfigPath(_0x8e5978);if(_0x3715d1){const _0x47fafa=readFileSync(_0x3715d1,{'encoding':'utf8'});if(_0x47fafa)_0x341149=JSON[_0x1bf169(0x148)](_0x47fafa);}}catch{}return{'globalPath':_0xa69671,'projectPath':_0x3715d1,'globalConfig':_0x38c4ef,'projectConfig':_0x341149};}function mergeRawConfigLayers(_0x1ad7ac){const _0xa1b8f1=a68_0x4a00b3,{globalConfig:_0xd9d3ee,projectConfig:_0x3e7dc7}=_0x1ad7ac;if(_0x3e7dc7[_0xa1b8f1(0x138)]===![]){const _0x21899e={..._0x3e7dc7};return delete _0x21899e['inherit'],_0x21899e;}const _0x5af52e={..._0xd9d3ee,..._0x3e7dc7};if(_0xa1b8f1(0x163)in _0x3e7dc7)_0x5af52e[_0xa1b8f1(0x163)]=_0x3e7dc7[_0xa1b8f1(0x163)];else _0xd9d3ee[_0xa1b8f1(0x163)]&&(_0x5af52e[_0xa1b8f1(0x163)]=_0xd9d3ee[_0xa1b8f1(0x163)]);return _0x5af52e;}export function isInProject(){return!!getProjectConfigPath();}export function readRawConfig(_0x46de16){return mergeRawConfigLayers(loadRawConfigLayers(_0x46de16));}export function readRawConfigWithLayers(_0x45dd54){const _0x3f8a9a=loadRawConfigLayers(_0x45dd54);return{'config':mergeRawConfigLayers(_0x3f8a9a),'layers':_0x3f8a9a};}export function resolveDefaultAppSource(_0x45757f){const _0x2491f5=a68_0x4a00b3;if(_0x2491f5(0x163)in _0x45757f[_0x2491f5(0x14a)])return'project';if(_0x45757f['projectConfig'][_0x2491f5(0x138)]===![])return null;if(_0x45757f[_0x2491f5(0x15b)][_0x2491f5(0x163)])return _0x2491f5(0x150);return null;}function buildConfig(_0x39ca1d,_0x5e1b27){const _0x26413d=a68_0x4a00b3,_0x3312d2=_0x39ca1d[_0x26413d(0x163)]||undefined,_0x2e6589=_0x5e1b27[_0x26413d(0x160)]||env(_0x26413d(0x136))||undefined,_0x51c3b0=_0x2e6589||_0x3312d2||undefined,_0x43ba64=env(_0x26413d(0x14d))||_0x39ca1d[_0x26413d(0x157)]||undefined,_0x274705=_0x5e1b27['env']||env(_0x26413d(0x13e))||_0x39ca1d['env']||DEFAULT_CONFIG_VALUES[_0x26413d(0x118)],_0x4cf034=normalizeEnv(String(_0x274705)),_0x4cf965=isDaily(_0x4cf034)?_0x26413d(0x12c):isDev(_0x4cf034)?_0x26413d(0x131):_0x26413d(0x11d),_0x1356b5=typeof _0x5e1b27[_0x26413d(0x14e)]==='string'?_0x5e1b27[_0x26413d(0x14e)]:undefined,_0x3427ff=env(_0x26413d(0x12b)),_0x477f10=_0x2e6589?undefined:_0x39ca1d[_0x26413d(0x14e)]||_0x39ca1d['app']||undefined,_0x6a7eca=_0x2e6589||(_0x477f10?undefined:_0x3312d2),_0x5143b1=resolveLocalAppAliasCode(_0x39ca1d,_0x6a7eca),_0x57c59f=resolveCachedAppCode(_0x6a7eca,_0x4cf965,_0x43ba64),_0x4d64d3=_0x1356b5||_0x3427ff||_0x477f10||_0x5143b1||_0x57c59f||undefined,_0x1ed5cd=_0x1356b5?_0x26413d(0x132):_0x3427ff?'env':_0x477f10?_0x26413d(0x137):_0x5143b1?_0x26413d(0x144):_0x57c59f?_0x26413d(0x11f):undefined,_0x3e09a6=_0x39ca1d[_0x26413d(0x119)]||DEFAULT_CONFIG_VALUES[_0x26413d(0x119)],_0x10c8c8=undefined,_0x2b9fab=_0x5e1b27[_0x26413d(0x15a)]||env(_0x26413d(0x126))||_0x39ca1d[_0x26413d(0x15a)],_0x5c7cdf=normalizeLegacyOutputFormat(_0x2b9fab),_0x1c3126=env(_0x26413d(0x120))||_0x39ca1d['pageSize'],_0x4e35e6=_0x1c3126?Number(_0x1c3126)||undefined:undefined,_0x153935=_0x39ca1d[_0x26413d(0x143)]||_0x39ca1d[_0x26413d(0x15d)],_0x498b6c=_0x153935==='read'||_0x153935==='write'||_0x153935===_0x26413d(0x121)?_0x153935:DEFAULT_CONFIG_VALUES[_0x26413d(0x143)],_0x5644c8=env(_0x26413d(0x12a)),_0x4c1ced=_0x5644c8==='1'||_0x5644c8===_0x26413d(0x15c);return{'appCode':typeof _0x4d64d3===_0x26413d(0x153)&&_0x4d64d3[_0x26413d(0x162)]()?_0x4d64d3['trim']():undefined,'appCodeSource':_0x1ed5cd,'env':_0x4cf965,'locale':_0x3e09a6,'cookie':_0x10c8c8,'accessKey':_0x43ba64,'format':_0x5c7cdf,'pageSize':_0x4e35e6,'riskLevel':_0x498b6c,'verbose':_0x4c1ced,'defaultApp':_0x3312d2,'currentApp':typeof _0x51c3b0===_0x26413d(0x153)?_0x51c3b0:undefined,'raw':_0x39ca1d};}function a68_0x3225(){const _0x3decac=['apiDomain','653180EOzsQs','parse','raw','projectConfig','90ncFdlv','4100475sPdNEY','ACCESS_KEY','appcode','host','global','values','EPERM','string','slice','1788819BcICnE','EACCES','accessKey','message','6062226ZdLxmX','format','globalConfig','true','maxRisk','1125807vYGHIF','join','app','2121960waAUOv','trim','defaultApp','stdout','stdin','online','env','locale','isTTY','project','empty','production','some','cache','PAGE_SIZE','high-risk-write','runtimeDomain','2pOKCLX','find','setLogPath','FORMAT','authRequired','userDomain','setRawMode','VERBOSE','APPCODE','daily','apps','argv','configFileNames','nonInteractive','development','explicit','7JedhhA','newConfigFileName','skillHubDomain','APP','top-level','inherit','./constant/env.js','utf8','EXDEV','code','object','ENV','stringify','./constant/domain.js','.tmp','cwd','riskLevel','local-alias','7850456aHOnBX'];a68_0x3225=function(){return _0x3decac;};return a68_0x3225();}function env(_0x312658){return productEnv(_0x312658);}async function buildAuth(_0x2edc2c){const _0x20b917=a68_0x4a00b3,_0xb98e53='',_0x3a553e=!!_0x2edc2c[_0x20b917(0x157)];return{'cookie':_0xb98e53,'isLoggedIn':_0x3a553e,async 'getOrLogin'(){const _0x38be0e=_0x20b917;if(_0x3a553e)return _0xb98e53;throw CliErrors[_0x38be0e(0x127)]();}};}
1
+ const a73_0x535910=a73_0x3099;(function(_0x313973,_0x1b3db1){const _0x6dff9e=a73_0x3099,_0x1680bc=_0x313973();while(!![]){try{const _0x263a36=-parseInt(_0x6dff9e(0x127))/0x1*(-parseInt(_0x6dff9e(0xf5))/0x2)+-parseInt(_0x6dff9e(0x11f))/0x3*(parseInt(_0x6dff9e(0xfd))/0x4)+-parseInt(_0x6dff9e(0x125))/0x5*(-parseInt(_0x6dff9e(0x134))/0x6)+-parseInt(_0x6dff9e(0x114))/0x7*(-parseInt(_0x6dff9e(0xf9))/0x8)+-parseInt(_0x6dff9e(0x13b))/0x9+-parseInt(_0x6dff9e(0xfb))/0xa*(-parseInt(_0x6dff9e(0x11e))/0xb)+parseInt(_0x6dff9e(0xf4))/0xc*(-parseInt(_0x6dff9e(0x126))/0xd);if(_0x263a36===_0x1b3db1)break;else _0x1680bc['push'](_0x1680bc['shift']());}catch(_0x2d5de9){_0x1680bc['push'](_0x1680bc['shift']());}}}(a73_0x3f8d,0xba0bb));import{readFileSync,existsSync,mkdirSync,renameSync,unlinkSync,writeFileSync}from'node:fs';import{resolve,dirname}from'node:path';function a73_0x3099(_0x491f69,_0x3a76aa){_0x491f69=_0x491f69-0xef;const _0x3f8dfb=a73_0x3f8d();let _0x309984=_0x3f8dfb[_0x491f69];return _0x309984;}import{homedir}from'node:os';import{logger}from'./utils/logger.js';import{CliErrors}from'./errors.js';import{CLI_BIN_NAME}from'./constant/cli.js';import{PRODUCT_CONFIG,productEnv,productEnvNames}from'./constant/product.js';import{DEFAULT_CONFIG_VALUES}from'./constant/defaults.js';import{normalizeEnv,isDaily,isDev}from'./constant/env.js';import{normalizeLegacyOutputFormat}from'./framework/types.js';import{resolveCachedAppCode}from'./commands/app/cache.js';export{AUTH_MODE,isAuthMode}from'./constant/auth-mode.js';const CONFIG_NAMES=PRODUCT_CONFIG[a73_0x535910(0xf7)];export const NEW_CONFIG_NAME=PRODUCT_CONFIG[a73_0x535910(0x128)];function resolveConfigPath(_0x42632a){for(const _0x14426e of CONFIG_NAMES){const _0x4ab350=resolve(_0x42632a,_0x14426e);if(existsSync(_0x4ab350))return _0x4ab350;}return undefined;}export function resolveWriteConfigPath(_0x994d2b){const _0x308b27=a73_0x535910,_0x15e0c8=_0x994d2b==='project'?process[_0x308b27(0x118)]():homedir(),_0x48879a=resolveConfigPath(_0x15e0c8);return _0x48879a??resolve(_0x15e0c8,NEW_CONFIG_NAME);}export function readConfigFile(_0x5ef608){const _0x11a494=a73_0x535910;try{if(existsSync(_0x5ef608)){const _0x390885=readFileSync(_0x5ef608,{'encoding':_0x11a494(0x10d)});if(_0x390885){const _0x35ecdd=JSON['parse'](_0x390885);return migrateOnlineEnv(_0x5ef608,_0x35ecdd),_0x35ecdd;}}}catch{}return{};}function migrateOnlineEnv(_0x5d82cd,_0x3c5861){const _0x2ccdd3=a73_0x535910;let _0x54e1f5=![];_0x3c5861[_0x2ccdd3(0x135)]===_0x2ccdd3(0xff)&&(_0x3c5861[_0x2ccdd3(0x135)]=_0x2ccdd3(0xf3),_0x54e1f5=!![]);if(_0x3c5861[_0x2ccdd3(0xfc)]&&typeof _0x3c5861[_0x2ccdd3(0xfc)]==='object')for(const _0x653987 of Object[_0x2ccdd3(0x136)](_0x3c5861[_0x2ccdd3(0xfc)])){_0x653987&&_0x653987['env']===_0x2ccdd3(0xff)&&(_0x653987[_0x2ccdd3(0x135)]=_0x2ccdd3(0xf3),_0x54e1f5=!![]);}if(_0x54e1f5)try{writeConfigFile(_0x5d82cd,_0x3c5861);}catch{}}export function writeConfigFile(_0xb4850f,_0x34f863){const _0xdaae22=a73_0x535910,_0x376cae=dirname(_0xb4850f);!existsSync(_0x376cae)&&mkdirSync(_0x376cae,{'recursive':!![]});const _0x445fab=_0xb4850f+_0xdaae22(0xf2);try{writeFileSync(_0x445fab,JSON[_0xdaae22(0x10a)](_0x34f863,null,0x2)+'\x0a',{'encoding':'utf8','mode':0x180});try{renameSync(_0x445fab,_0xb4850f);}catch(_0x5437dd){if(_0x5437dd[_0xdaae22(0xf1)]==='EPERM'||_0x5437dd[_0xdaae22(0xf1)]===_0xdaae22(0x13a)||_0x5437dd[_0xdaae22(0xf1)]==='EACCES'){writeFileSync(_0xb4850f,JSON[_0xdaae22(0x10a)](_0x34f863,null,0x2)+'\x0a',{'encoding':_0xdaae22(0x10d)});try{unlinkSync(_0x445fab);}catch{}}else throw _0x5437dd;}}catch(_0x2b7f84){try{unlinkSync(_0x445fab);}catch{}throw _0x2b7f84;}}export function isNonInteractiveMode(_0x3b3f16){const _0x5b1b0d=a73_0x535910;return!!(_0x3b3f16[_0x5b1b0d(0x129)]||_0x3b3f16['ci']||productEnvNames('CI')[_0x5b1b0d(0x110)](_0x285850=>process.env[_0x285850]===_0x5b1b0d(0x101))||process.env.CI===_0x5b1b0d(0x101)||!process['stdout']['isTTY']||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x1d0712=a73_0x535910;if(!process[_0x1d0712(0xfa)][_0x1d0712(0x103)])return![];try{const _0x1a103f=process[_0x1d0712(0xfa)][_0x1d0712(0x102)];return process[_0x1d0712(0xfa)][_0x1d0712(0xf6)](!![]),process['stdin'][_0x1d0712(0xf6)](_0x1a103f??![]),!![];}catch{return![];}}export async function createContext(_0x2e923a){const _0x25941e=a73_0x535910,_0x146bd3=readRawConfig(),_0x5b3666=buildConfig(_0x146bd3,_0x2e923a);await initGlobalEnvironment(_0x5b3666);const {getUserDomain:_0x7948be,getApiDomain:_0x3c95fb}=await import(_0x25941e(0xfe)),_0x307d77={'apiDomain':_0x3c95fb(),'userDomain':_0x7948be()},_0x515226=await buildAuth(_0x5b3666);logger[_0x25941e(0x12a)](process[_0x25941e(0x118)]());const _0x51b079=(CLI_BIN_NAME+'\x20'+process[_0x25941e(0x108)][_0x25941e(0x133)](0x2)[_0x25941e(0x10c)]('\x20'))[_0x25941e(0xf8)]();logger[_0x25941e(0x138)](_0x51b079);const _0x3a7554=isNonInteractiveMode(_0x2e923a);return{'config':_0x5b3666,'auth':_0x515226,'logger':logger,'env':_0x307d77,'nonInteractive':_0x3a7554};}export function buildConfigFromFlags(_0x185af3){return buildConfig(readRawConfig(),_0x185af3);}export function getLocalAppAliases(_0x46abac){const _0x3e6b0b=a73_0x535910;return _0x46abac[_0x3e6b0b(0xfc)]&&typeof _0x46abac['apps']===_0x3e6b0b(0x12b)?_0x46abac[_0x3e6b0b(0xfc)]:{};}export function resolveLocalAppAliasCode(_0xdc81fe,_0x5ce9cb){const _0x1ca7fc=a73_0x535910;if(!_0x5ce9cb)return undefined;const _0x110044=getLocalAppAliases(_0xdc81fe)[_0x5ce9cb],_0x63644b=_0x110044?.['appcode'];return typeof _0x63644b===_0x1ca7fc(0x11b)&&_0x63644b[_0x1ca7fc(0xf8)]()?_0x63644b['trim']():undefined;}export function readAppCodeFromConfig(){const _0x43099b=a73_0x535910,_0x3e9c32=readRawConfig(),_0x29c9b5=_0x3e9c32[_0x43099b(0x130)]??_0x3e9c32['app'];if(typeof _0x29c9b5==='string'&&_0x29c9b5['trim']())return _0x29c9b5[_0x43099b(0xf8)]();const _0x40fbf7=resolveLocalAppAliasCode(_0x3e9c32,typeof _0x3e9c32[_0x43099b(0x113)]===_0x43099b(0x11b)?_0x3e9c32['defaultApp']:undefined);if(_0x40fbf7)return _0x40fbf7;const _0x4c9fc2=normalizeEnv(String(_0x3e9c32[_0x43099b(0x135)]||_0x43099b(0xf3))),_0x8302b7=isDaily(_0x4c9fc2)?_0x43099b(0x124):isDev(_0x4c9fc2)?_0x43099b(0x121):'production',_0x110e2a=resolveCachedAppCode(typeof _0x3e9c32[_0x43099b(0x113)]===_0x43099b(0x11b)?_0x3e9c32['defaultApp']:undefined,_0x8302b7,typeof _0x3e9c32[_0x43099b(0x10b)]===_0x43099b(0x11b)?_0x3e9c32[_0x43099b(0x10b)]:undefined);if(_0x110e2a)return _0x110e2a;const _0x4e9cc0=Object['values'](getLocalAppAliases(_0x3e9c32))[_0x43099b(0x123)](_0x494eab=>_0x494eab?.[_0x43099b(0x130)]);return typeof _0x4e9cc0?.[_0x43099b(0x130)]===_0x43099b(0x11b)&&_0x4e9cc0[_0x43099b(0x130)]['trim']()?_0x4e9cc0[_0x43099b(0x130)]['trim']():undefined;}export function readScopedConfig(_0x8e1734){const _0x553026=a73_0x535910,_0x5a6929=_0x8e1734['global']?'global':_0x553026(0x120);return readConfigFile(resolveWriteConfigPath(_0x5a6929));}export function writeScopedConfig(_0x328e4d,_0x2712c9){const _0x4d668b=a73_0x535910,_0x41916f=_0x2712c9[_0x4d668b(0x117)]?_0x4d668b(0x117):_0x4d668b(0x120);writeConfigFile(resolveWriteConfigPath(_0x41916f),_0x328e4d);}export async function initGlobalEnvironment(_0x4b0544){const _0xbe3a5d=a73_0x535910,{initEnv:_0x330132}=await import(_0xbe3a5d(0x13d));_0x330132(_0x4b0544['env']);const {initDomains:_0x3599f5}=await import(_0xbe3a5d(0xfe));_0x3599f5({'apiDomain':_0x4b0544[_0xbe3a5d(0x111)][_0xbe3a5d(0x105)]||_0x4b0544[_0xbe3a5d(0x111)]['host']||undefined,'userDomain':_0x4b0544[_0xbe3a5d(0x111)][_0xbe3a5d(0xef)]||undefined,'runtimeDomain':_0x4b0544['raw']['runtimeDomain']||undefined,'skillHubDomain':_0x4b0544['raw'][_0xbe3a5d(0x12f)]||undefined});}export function getProjectConfigPath(){const _0x416bff=a73_0x535910;return resolveConfigPath(process[_0x416bff(0x118)]());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function inspectCliConfigJsonFile(_0x357eb9){const _0x3237e1=a73_0x535910;if(!existsSync(_0x357eb9))return{'status':_0x3237e1(0x10f)};try{const _0x721b59=readFileSync(_0x357eb9,{'encoding':_0x3237e1(0x10d)});if(!_0x721b59?.[_0x3237e1(0xf8)]())return{'status':_0x3237e1(0x116)};const _0x43aa27=JSON[_0x3237e1(0x109)](_0x721b59);return{'status':'ok','data':_0x43aa27};}catch(_0x3c7a64){return{'status':_0x3237e1(0x11c),'message':_0x3c7a64 instanceof Error?_0x3c7a64[_0x3237e1(0x112)]:String(_0x3c7a64)};}}export function loadRawConfigLayers(_0x542a09){const _0x13475e=a73_0x535910;let _0x182175={},_0x1fdace={},_0x2efc7f,_0x473b09;try{_0x2efc7f=resolveConfigPath(homedir());if(_0x2efc7f){const _0x56b6f6=readFileSync(_0x2efc7f,{'encoding':'utf8'});if(_0x56b6f6)_0x182175=JSON[_0x13475e(0x109)](_0x56b6f6);}}catch{}try{const _0x5d7dad=_0x542a09||process[_0x13475e(0x118)]();_0x473b09=resolveConfigPath(_0x5d7dad);if(_0x473b09){const _0x11fb66=readFileSync(_0x473b09,{'encoding':'utf8'});if(_0x11fb66)_0x1fdace=JSON[_0x13475e(0x109)](_0x11fb66);}}catch{}return{'globalPath':_0x2efc7f,'projectPath':_0x473b09,'globalConfig':_0x182175,'projectConfig':_0x1fdace};}function mergeRawConfigLayers(_0x2b21c6){const _0x2b093f=a73_0x535910,{globalConfig:_0x9fd4a3,projectConfig:_0x2f6926}=_0x2b21c6;if(_0x2f6926['inherit']===![]){const _0x5ec580={..._0x2f6926};return delete _0x5ec580[_0x2b093f(0x137)],_0x5ec580;}const _0x5dac2d={..._0x9fd4a3,..._0x2f6926};if('defaultApp'in _0x2f6926)_0x5dac2d[_0x2b093f(0x113)]=_0x2f6926[_0x2b093f(0x113)];else _0x9fd4a3['defaultApp']&&(_0x5dac2d['defaultApp']=_0x9fd4a3['defaultApp']);return _0x5dac2d;}export function isInProject(){return!!getProjectConfigPath();}export function readRawConfig(_0x14ca8a){return mergeRawConfigLayers(loadRawConfigLayers(_0x14ca8a));}export function readRawConfigWithLayers(_0xe7e12c){const _0x34ed8a=loadRawConfigLayers(_0xe7e12c);return{'config':mergeRawConfigLayers(_0x34ed8a),'layers':_0x34ed8a};}function a73_0x3f8d(){const _0x13af8b=['globalConfig','slice','1044612ffyXLL','env','values','inherit','setRawCommand','FORMAT','EXDEV','11261826shViCq','pageSize','./constant/env.js','read','explicit','userDomain','locale','code','.tmp','production','15275100Tiuuor','2748862sxuoLc','setRawMode','configFileNames','trim','616008AQqbvQ','stdin','9383270UwZSAg','apps','2188CMfuZS','./constant/domain.js','online','APPCODE','true','isRaw','isTTY','top-level','apiDomain','maxRisk','riskLevel','argv','parse','stringify','accessKey','join','utf8','authRequired','missing','some','raw','message','defaultApp','77CEhNXN','write','empty','global','cwd','projectConfig','app','string','error','ACCESS_KEY','11fsGANT','261YcFMMM','project','development','VERBOSE','find','daily','5ReYaNg','13WXIxlx','1AiAbsk','newConfigFileName','nonInteractive','setLogPath','object','format','local-alias','ENV','skillHubDomain','appcode','cache'];a73_0x3f8d=function(){return _0x13af8b;};return a73_0x3f8d();}export function resolveDefaultAppSource(_0x141566){const _0x40ac8e=a73_0x535910;if(_0x40ac8e(0x113)in _0x141566[_0x40ac8e(0x119)])return _0x40ac8e(0x120);if(_0x141566[_0x40ac8e(0x119)]['inherit']===![])return null;if(_0x141566[_0x40ac8e(0x132)][_0x40ac8e(0x113)])return _0x40ac8e(0x117);return null;}function buildConfig(_0x2b30e4,_0x174c6f){const _0x4350cb=a73_0x535910,_0x98db4d=_0x2b30e4['defaultApp']||undefined,_0x3a8bea=_0x174c6f[_0x4350cb(0x11a)]||env('APP')||undefined,_0x4eeeac=_0x3a8bea||_0x98db4d||undefined,_0x181707=env(_0x4350cb(0x11d))||_0x2b30e4[_0x4350cb(0x10b)]||undefined,_0x29ffc2=_0x174c6f[_0x4350cb(0x135)]||env(_0x4350cb(0x12e))||_0x2b30e4[_0x4350cb(0x135)]||DEFAULT_CONFIG_VALUES[_0x4350cb(0x135)],_0xb3f584=normalizeEnv(String(_0x29ffc2)),_0x1eb71c=isDaily(_0xb3f584)?'daily':isDev(_0xb3f584)?_0x4350cb(0x121):_0x4350cb(0xf3),_0x4bb0e1=typeof _0x174c6f[_0x4350cb(0x130)]===_0x4350cb(0x11b)?_0x174c6f[_0x4350cb(0x130)]:undefined,_0x12793e=env(_0x4350cb(0x100)),_0x7f9b19=_0x3a8bea?undefined:_0x2b30e4[_0x4350cb(0x130)]||_0x2b30e4[_0x4350cb(0x11a)]||undefined,_0x27ea0a=_0x3a8bea||(_0x7f9b19?undefined:_0x98db4d),_0x55589a=resolveLocalAppAliasCode(_0x2b30e4,_0x27ea0a),_0x3576f4=resolveCachedAppCode(_0x27ea0a,_0x1eb71c,_0x181707),_0x51ee66=_0x4bb0e1||_0x12793e||_0x7f9b19||_0x55589a||_0x3576f4||undefined,_0x15d853=_0x4bb0e1?_0x4350cb(0x13f):_0x12793e?_0x4350cb(0x135):_0x7f9b19?_0x4350cb(0x104):_0x55589a?_0x4350cb(0x12d):_0x3576f4?_0x4350cb(0x131):undefined,_0x12f235=_0x2b30e4[_0x4350cb(0xf0)]||DEFAULT_CONFIG_VALUES[_0x4350cb(0xf0)],_0x5a2f72=undefined,_0x19009d=_0x174c6f[_0x4350cb(0x12c)]||env(_0x4350cb(0x139))||_0x2b30e4[_0x4350cb(0x12c)],_0x32aa4b=normalizeLegacyOutputFormat(_0x19009d),_0x172ca3=env('PAGE_SIZE')||_0x2b30e4[_0x4350cb(0x13c)],_0x25eeb4=_0x172ca3?Number(_0x172ca3)||undefined:undefined,_0x2a1b99=_0x2b30e4[_0x4350cb(0x107)]||_0x2b30e4[_0x4350cb(0x106)],_0xb45118=_0x2a1b99===_0x4350cb(0x13e)||_0x2a1b99===_0x4350cb(0x115)||_0x2a1b99==='high-risk-write'?_0x2a1b99:DEFAULT_CONFIG_VALUES[_0x4350cb(0x107)],_0x1f27ed=env(_0x4350cb(0x122)),_0x27cef8=_0x1f27ed==='1'||_0x1f27ed===_0x4350cb(0x101);return{'appCode':typeof _0x51ee66==='string'&&_0x51ee66[_0x4350cb(0xf8)]()?_0x51ee66[_0x4350cb(0xf8)]():undefined,'appCodeSource':_0x15d853,'env':_0x1eb71c,'locale':_0x12f235,'cookie':_0x5a2f72,'accessKey':_0x181707,'format':_0x32aa4b,'pageSize':_0x25eeb4,'riskLevel':_0xb45118,'verbose':_0x27cef8,'defaultApp':_0x98db4d,'currentApp':typeof _0x4eeeac==='string'?_0x4eeeac:undefined,'raw':_0x2b30e4};}function env(_0x5ef295){return productEnv(_0x5ef295);}async function buildAuth(_0x318e01){const _0x1d1f69='',_0x30f76e=!!_0x318e01['accessKey'];return{'cookie':_0x1d1f69,'isLoggedIn':_0x30f76e,async 'getOrLogin'(){const _0x43483f=a73_0x3099;if(_0x30f76e)return _0x1d1f69;throw CliErrors[_0x43483f(0x10e)]();}};}