@lovrabet/lovrabet-cli 2.1.23-beta.4 → 2.1.23

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 (132) 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/artifact/index.js +1 -1
  12. package/lib/commands/auth/device.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 -1
  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 -1
  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 -1
  36. package/lib/commands/personal-bff/index.js +1 -1
  37. package/lib/commands/registry.js +1 -1
  38. package/lib/commands/schedule/index.js +1 -1
  39. package/lib/commands/schema.js +1 -1
  40. package/lib/commands/service/dynamic.js +1 -1
  41. package/lib/commands/service/function-name-adapter.js +1 -1
  42. package/lib/commands/service/index.js +1 -1
  43. package/lib/commands/service/registry.js +1 -1
  44. package/lib/commands/skill/commands/create.js +1 -1
  45. package/lib/commands/skill/commands/diagram.js +1 -1
  46. package/lib/commands/skill/commands/install.js +1 -1
  47. package/lib/commands/skill/commands/list.js +1 -1
  48. package/lib/commands/skill/commands/push.js +1 -1
  49. package/lib/commands/skill/commands/validate.js +1 -1
  50. package/lib/commands/skill/diagram.js +1 -1
  51. package/lib/commands/skill/flags.js +1 -1
  52. package/lib/commands/skill/index.js +1 -1
  53. package/lib/commands/skill/manifest-helpers.js +1 -1
  54. package/lib/commands/skill/push-execute.js +1 -1
  55. package/lib/commands/skill/push-flow-helpers.js +1 -1
  56. package/lib/commands/skill/push-retarget.js +1 -1
  57. package/lib/commands/skill/scopes.js +1 -1
  58. package/lib/commands/skill/summary.js +1 -1
  59. package/lib/commands/skill/templates.js +1 -1
  60. package/lib/commands/skill/validate.js +1 -1
  61. package/lib/commands/sql/detail.js +1 -1
  62. package/lib/commands/sql/exec.js +1 -1
  63. package/lib/commands/sql/index.js +1 -1
  64. package/lib/commands/update.js +1 -1
  65. package/lib/commands/workspace/index.js +1 -1
  66. package/lib/config/schema.js +1 -1
  67. package/lib/constant/app.js +1 -1
  68. package/lib/constant/auth-mode.js +1 -1
  69. package/lib/constant/cli.js +1 -1
  70. package/lib/constant/defaults.js +1 -1
  71. package/lib/constant/distribution.js +1 -1
  72. package/lib/constant/domain.js +1 -1
  73. package/lib/constant/env.js +1 -1
  74. package/lib/constant/output.js +1 -1
  75. package/lib/constant/product.js +1 -1
  76. package/lib/constant/risk.js +1 -1
  77. package/lib/constant/url.js +1 -1
  78. package/lib/context.js +1 -1
  79. package/lib/core/api-client.js +1 -1
  80. package/lib/core/db-resolver.js +1 -1
  81. package/lib/core/sdk-client.js +1 -1
  82. package/lib/errors.js +1 -1
  83. package/lib/framework/build-all-flags.js +1 -1
  84. package/lib/framework/dryrun.js +1 -1
  85. package/lib/framework/flags.js +1 -1
  86. package/lib/framework/help.js +1 -1
  87. package/lib/framework/index.js +1 -1
  88. package/lib/framework/output.js +1 -1
  89. package/lib/framework/preparse.js +1 -1
  90. package/lib/framework/rate-limit.js +1 -1
  91. package/lib/framework/raw-flags.js +1 -1
  92. package/lib/framework/response.js +1 -1
  93. package/lib/framework/runner-confirmation.js +1 -1
  94. package/lib/framework/runner-error.js +1 -1
  95. package/lib/framework/runner.js +1 -1
  96. package/lib/framework/schema-export.js +1 -1
  97. package/lib/framework/service-order.js +1 -1
  98. package/lib/framework/types.js +1 -1
  99. package/lib/generated/build-info.d.ts +4 -4
  100. package/lib/generated/build-info.js +1 -1
  101. package/lib/help.js +1 -1
  102. package/lib/runtime/confirmation.js +1 -1
  103. package/lib/runtime/event.js +1 -1
  104. package/lib/runtime/index.js +1 -1
  105. package/lib/runtime/queue.js +1 -1
  106. package/lib/runtime/resolve.js +1 -1
  107. package/lib/skills/npx-skills-add.js +1 -1
  108. package/lib/skills/runtime-skill-sync/constants.js +1 -1
  109. package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
  110. package/lib/skills/runtime-skill-sync/hashing.js +1 -1
  111. package/lib/skills/runtime-skill-sync/install-target.js +1 -1
  112. package/lib/skills/runtime-skill-sync/links.js +1 -1
  113. package/lib/skills/runtime-skill-sync/list-local.js +1 -1
  114. package/lib/skills/runtime-skill-sync/local-files.js +1 -1
  115. package/lib/skills/runtime-skill-sync/materialize.js +1 -1
  116. package/lib/skills/runtime-skill-sync/metadata.js +1 -1
  117. package/lib/skills/runtime-skill-sync/paths.js +1 -1
  118. package/lib/skills/runtime-skill-sync/push.js +1 -1
  119. package/lib/skills/runtime-skill-sync/scopes.js +1 -1
  120. package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
  121. package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
  122. package/lib/skills/runtime-skill-sync.js +1 -1
  123. package/lib/skills/skill-presence.js +1 -1
  124. package/lib/utils/apply-jq-filter.js +1 -1
  125. package/lib/utils/logger.js +1 -1
  126. package/lib/utils/lossless-json.js +1 -1
  127. package/lib/utils/params.js +1 -1
  128. package/lib/utils/platform.js +1 -1
  129. package/lib/utils/update-notice.js +1 -1
  130. package/lib/utils/version.js +1 -1
  131. package/lib/utils/write-cli-side-channel.js +1 -1
  132. package/package.json +1 -1
@@ -1 +1 @@
1
- function a64_0x27be(_0x4460b5,_0x23691b){_0x4460b5=_0x4460b5-0x131;const _0x356259=a64_0x3562();let _0x27be6c=_0x356259[_0x4460b5];return _0x27be6c;}const a64_0x1ddcd0=a64_0x27be;(function(_0x13fd39,_0x1eaadb){const _0x5c5c74=a64_0x27be,_0x455d0b=_0x13fd39();while(!![]){try{const _0x226bb3=parseInt(_0x5c5c74(0x165))/0x1+parseInt(_0x5c5c74(0x13c))/0x2*(-parseInt(_0x5c5c74(0x140))/0x3)+parseInt(_0x5c5c74(0x150))/0x4+-parseInt(_0x5c5c74(0x15c))/0x5+parseInt(_0x5c5c74(0x171))/0x6*(parseInt(_0x5c5c74(0x177))/0x7)+-parseInt(_0x5c5c74(0x145))/0x8+-parseInt(_0x5c5c74(0x173))/0x9*(-parseInt(_0x5c5c74(0x169))/0xa);if(_0x226bb3===_0x1eaadb)break;else _0x455d0b['push'](_0x455d0b['shift']());}catch(_0x570982){_0x455d0b['push'](_0x455d0b['shift']());}}}(a64_0x3562,0x25dc2));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':a64_0x1ddcd0(0x14f),'type':a64_0x1ddcd0(0x13a),'description':a64_0x1ddcd0(0x139)},{'name':a64_0x1ddcd0(0x144),'type':a64_0x1ddcd0(0x13a),'description':a64_0x1ddcd0(0x15d)},{'name':'env','type':a64_0x1ddcd0(0x13a),'description':a64_0x1ddcd0(0x155),'enum':[...RUNTIME_ENV_VALUES]}];async function executeWorkspaceUse(_0x5bfa4a,_0x42f922){const _0x50403d=a64_0x1ddcd0,_0x52cf93=_0x5bfa4a['str'](_0x50403d(0x14f))[_0x50403d(0x154)](),_0x2ef25f=_0x5bfa4a[_0x50403d(0x16d)](_0x50403d(0x144))[_0x50403d(0x154)](),_0x5cf6d9=_0x5bfa4a['str'](_0x50403d(0x174))[_0x50403d(0x154)](),_0x3158f3=resolveWorkspaceEnv(_0x5cf6d9||_0x5bfa4a[_0x50403d(0x152)]||DEFAULT_CONFIG_VALUES['env']);if(!_0x52cf93&&!_0x2ef25f)throw CliErrors['validation'](_0x50403d(0x13b),_0x50403d(0x137)+CLI_BIN_NAME+'\x20workspace\x20'+_0x42f922+_0x50403d(0x132)+CLI_BIN_NAME+_0x50403d(0x136)+_0x42f922+_0x50403d(0x164));if(_0x52cf93&&_0x2ef25f)throw CliErrors[_0x50403d(0x16b)](_0x50403d(0x172),_0x50403d(0x141));const _0x5a33dd=resolveWriteConfigPath(_0x50403d(0x134)),_0x525961=readConfigFile(_0x5a33dd);assertWorkspaceCommandState(_0x42f922,_0x525961);const _0x537a30=_0x2ef25f||await resolveRemoteAppCode({'command':_0x42f922,'appName':_0x52cf93,'env':_0x3158f3,'accessKey':_0x5bfa4a['accessKey']});return writeWorkspaceConfig({'command':_0x42f922,'appName':_0x52cf93,'appcode':_0x537a30,'env':_0x3158f3,'shouldWriteEnv':!!_0x5cf6d9,'accessKey':_0x5bfa4a['accessKey']},_0x5a33dd,_0x525961),{'ok':!![],'data':{'configPath':_0x5a33dd,'app':_0x52cf93||null,'appcode':_0x537a30,'env':_0x5cf6d9?_0x3158f3:null,'accessKeyWritten':![],'command':_0x50403d(0x146)+_0x42f922},'message':buildWorkspaceMessage(_0x5a33dd,_0x52cf93,_0x537a30,_0x5cf6d9?_0x3158f3:undefined)};}async function resolveRemoteAppCode(_0x393fb2){const _0x271ed8=a64_0x1ddcd0;if(!_0x393fb2[_0x271ed8(0x131)])throw CliErrors[_0x271ed8(0x16c)](_0x271ed8(0x14a)+CLI_BIN_NAME+'\x20workspace\x20'+_0x393fb2[_0x271ed8(0x168)]+'.');const {setActiveAK:_0x5a475c}=await import(_0x271ed8(0x138)),{getRemoteAppList:_0x1b7716}=await import(_0x271ed8(0x15b));_0x5a475c(_0x393fb2[_0x271ed8(0x131)]);const _0x58e746=await _0x1b7716({'env':_0x393fb2[_0x271ed8(0x174)],'accessKey':_0x393fb2[_0x271ed8(0x131)],'noCache':![]}),_0x111525=findAppByName(_0x58e746[_0x271ed8(0x167)],_0x393fb2[_0x271ed8(0x149)]);if(_0x111525&&!isRuntimeAccessibleApp(_0x111525))throw runtimeInaccessibleAppError(_0x111525,'\x22'+_0x393fb2[_0x271ed8(0x149)]+'\x22');const _0x268852=_0x111525?.[_0x271ed8(0x14c)]?.[_0x271ed8(0x154)]();if(_0x268852)return _0x268852;const _0x503b15=_0x58e746[_0x271ed8(0x167)][_0x271ed8(0x16e)](_0x556090=>_0x556090[_0x271ed8(0x149)])['filter'](Boolean),_0x19abe8=_0x503b15[_0x271ed8(0x156)]?_0x271ed8(0x13f)+Array[_0x271ed8(0x16f)](new Set(_0x503b15))[_0x271ed8(0x14d)](',\x20')+'.':_0x271ed8(0x151)+CLI_BIN_NAME+_0x271ed8(0x135);throw CliErrors[_0x271ed8(0x16b)](_0x271ed8(0x163)+_0x393fb2[_0x271ed8(0x149)]+_0x271ed8(0x175),_0x19abe8);}function writeWorkspaceConfig(_0x4fcac2,_0x3e7eea,_0x3a7f27){const _0xa5dec1=a64_0x1ddcd0;_0x4fcac2[_0xa5dec1(0x13e)]&&(_0x3a7f27['env']=_0x4fcac2['env']);if(_0x4fcac2['appName']){const _0x5b3c5e=isRecord(_0x3a7f27['apps'])?{..._0x3a7f27[_0xa5dec1(0x15e)]}:{},_0x107728=isRecord(_0x5b3c5e[_0x4fcac2['appName']])?_0x5b3c5e[_0x4fcac2[_0xa5dec1(0x149)]]:{};return _0x5b3c5e[_0x4fcac2[_0xa5dec1(0x149)]]={..._0x107728,'appcode':_0x4fcac2[_0xa5dec1(0x144)]},_0x3a7f27['apps']=_0x5b3c5e,_0x3a7f27[_0xa5dec1(0x13d)]=_0x4fcac2[_0xa5dec1(0x149)],delete _0x3a7f27[_0xa5dec1(0x144)],delete _0x3a7f27[_0xa5dec1(0x14f)],writeAndReturn(_0x3e7eea,_0x3a7f27);}return _0x3a7f27['appcode']=_0x4fcac2[_0xa5dec1(0x144)],delete _0x3a7f27[_0xa5dec1(0x13d)],delete _0x3a7f27[_0xa5dec1(0x14f)],writeAndReturn(_0x3e7eea,_0x3a7f27);}function writeAndReturn(_0x32fb91,_0x1ac87d){return writeConfigFile(_0x32fb91,_0x1ac87d),_0x32fb91;}function resolveWorkspaceEnv(_0x2f62a0){const _0x3474a7=a64_0x1ddcd0;if(RUNTIME_ENV_VALUES['includes'](_0x2f62a0))return _0x2f62a0;throw CliErrors['validation'](_0x3474a7(0x142)+_0x2f62a0+_0x3474a7(0x16a)+RUNTIME_ENV_VALUES['join'](',\x20'));}function buildWorkspaceMessage(_0x2d5879,_0x36274a,_0x1cce15,_0x17f5f9){const _0x421972=a64_0x1ddcd0,_0x3b6248=_0x36274a?_0x36274a+'\x20('+_0x1cce15+')':_0x1cce15,_0x34cee7=_0x17f5f9?_0x421972(0x161)+_0x17f5f9:'';return _0x421972(0x14e)+_0x2d5879+_0x421972(0x166)+_0x3b6248+_0x34cee7+_0x421972(0x133);}function isRecord(_0x4d19b4){const _0x22bddc=a64_0x1ddcd0;return typeof _0x4d19b4===_0x22bddc(0x148)&&_0x4d19b4!==null&&!Array['isArray'](_0x4d19b4);}function hasWorkspaceAppBinding(_0x73ed06){const _0x1d29d3=a64_0x1ddcd0;if(typeof _0x73ed06[_0x1d29d3(0x144)]===_0x1d29d3(0x13a)&&_0x73ed06[_0x1d29d3(0x144)][_0x1d29d3(0x154)]()['length']>0x0)return!![];if(typeof _0x73ed06[_0x1d29d3(0x13d)]!==_0x1d29d3(0x13a)||!_0x73ed06[_0x1d29d3(0x13d)][_0x1d29d3(0x154)]())return![];if(!isRecord(_0x73ed06[_0x1d29d3(0x15e)]))return![];const _0x506d48=_0x73ed06['apps'][_0x73ed06['defaultApp'][_0x1d29d3(0x154)]()];return isRecord(_0x506d48)&&typeof _0x506d48[_0x1d29d3(0x144)]==='string'&&_0x506d48['appcode'][_0x1d29d3(0x154)]()[_0x1d29d3(0x156)]>0x0;}function assertWorkspaceCommandState(_0x38277e,_0x440230){const _0x400385=a64_0x1ddcd0,_0x731639=hasWorkspaceAppBinding(_0x440230);if(_0x38277e==='init'&&_0x731639)throw CliErrors[_0x400385(0x16b)](_0x400385(0x143),'Use\x20`'+CLI_BIN_NAME+_0x400385(0x158)+CLI_BIN_NAME+_0x400385(0x176));if(_0x38277e===_0x400385(0x162)&&!_0x731639)throw CliErrors[_0x400385(0x16b)]('Workspace\x20app\x20context\x20is\x20not\x20initialized.',_0x400385(0x151)+CLI_BIN_NAME+_0x400385(0x153)+CLI_BIN_NAME+_0x400385(0x15a));}function makeWorkspaceCommand(_0x9b9bb6){const _0x3bea81=a64_0x1ddcd0;return{'service':_0x3bea81(0x157),'command':_0x9b9bb6,'description':_0x9b9bb6===_0x3bea81(0x147)?_0x3bea81(0x159):_0x3bea81(0x160),'risk':_0x3bea81(0x14b),'confirmationDescription':_0x9b9bb6==='init'?_0x3bea81(0x170):_0x3bea81(0x15f),'requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':WORKSPACE_USE_FLAGS,async 'execute'(_0x71e539){return executeWorkspaceUse(_0x71e539,_0x9b9bb6);}};}export const workspaceDefinitions=[makeWorkspaceCommand('init'),makeWorkspaceCommand(a64_0x1ddcd0(0x162))];function a64_0x3562(){const _0x345c04=['\x20workspace\x20init\x20--appcode\x20<code>`\x20first.','../../commands/app/remote-source.js','905675Ejkwov','App\x20code\x20to\x20bind\x20directly','apps','将更新当前工作目录已有的应用绑定,并把所选应用设为该目录的默认应用;不会写入\x20AccessKey。','修改当前工作目录已有绑定的应用上下文','\x0aEnv:\x20','use','App\x20\x22','\x20--appcode\x20<code>\x20[--env\x20daily]','185650ARMFBi','\x0aDefault\x20app:\x20','items','command','20eAsblj','\x22.\x20Allowed:\x20','validation','authRequired','str','map','from','将在尚未绑定应用的当前工作目录写入\x20Lovrabet\x20项目配置,并把所选应用设为该目录的默认应用;不会写入\x20AccessKey。','31422QZsEiv','Conflicting\x20workspace\x20app\x20selectors.','2076264WCZyzS','env','\x22\x20not\x20found.','\x20workspace\x20use\x20--appcode\x20<code>`\x20to\x20change\x20it.','168tXNfri','accessKey','\x20--app\x20<name>\x20[--env\x20daily]\x20or\x20','\x0aAccessKey:\x20not\x20written','project','\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20pass\x20--appcode\x20directly.','\x20workspace\x20','Usage:\x20','../../core/api-client.js','App\x20name\x20to\x20bind\x20as\x20the\x20current\x20workspace\x20default','string','Missing\x20workspace\x20app\x20selector.','2OLfjQG','defaultApp','shouldWriteEnv','Available\x20apps:\x20','668685ZOutOR','Pass\x20either\x20--app\x20<name>\x20or\x20--appcode\x20<code>,\x20not\x20both.','Invalid\x20env\x20\x22','Workspace\x20app\x20context\x20is\x20already\x20initialized.','appcode','2370280LSBjDk','workspace\x20','init','object','appName','Resolving\x20--app\x20requires\x20accessKey.\x20Pass\x20--appcode\x20directly,\x20or\x20set\x20accessKey\x20before\x20running\x20','write','appCode','join','Workspace\x20configured.\x0aConfig\x20file:\x20','app','330636SGgSSI','Run\x20`','envName','\x20workspace\x20init\x20--app\x20<name>`\x20or\x20`','trim','Target\x20environment','length','workspace','\x20workspace\x20use\x20--app\x20<name>`\x20or\x20`','为尚未绑定应用的当前工作目录初始化应用上下文'];a64_0x3562=function(){return _0x345c04;};return a64_0x3562();}
1
+ const a64_0x5280dd=a64_0x5950;(function(_0x34a657,_0x15dfb7){const _0x508a4d=a64_0x5950,_0x44c508=_0x34a657();while(!![]){try{const _0x502bfc=-parseInt(_0x508a4d(0x138))/0x1+parseInt(_0x508a4d(0x130))/0x2*(parseInt(_0x508a4d(0x146))/0x3)+-parseInt(_0x508a4d(0x151))/0x4+parseInt(_0x508a4d(0x159))/0x5+-parseInt(_0x508a4d(0x14f))/0x6+parseInt(_0x508a4d(0x127))/0x7*(parseInt(_0x508a4d(0x152))/0x8)+parseInt(_0x508a4d(0x132))/0x9;if(_0x502bfc===_0x15dfb7)break;else _0x44c508['push'](_0x44c508['shift']());}catch(_0x1beb31){_0x44c508['push'](_0x44c508['shift']());}}}(a64_0x4358,0x74e0b));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':a64_0x5280dd(0x165),'type':a64_0x5280dd(0x131),'description':'App\x20name\x20to\x20bind\x20as\x20the\x20current\x20workspace\x20default'},{'name':a64_0x5280dd(0x14a),'type':'string','description':a64_0x5280dd(0x162)},{'name':'env','type':a64_0x5280dd(0x131),'description':'Target\x20environment','enum':[...RUNTIME_ENV_VALUES]}];async function executeWorkspaceUse(_0x50496a,_0x558609){const _0x9f2897=a64_0x5280dd,_0x3a9143=_0x50496a['str'](_0x9f2897(0x165))[_0x9f2897(0x13a)](),_0x17f79a=_0x50496a[_0x9f2897(0x148)](_0x9f2897(0x14a))[_0x9f2897(0x13a)](),_0x2edc45=_0x50496a['str'](_0x9f2897(0x161))[_0x9f2897(0x13a)](),_0x498645=resolveWorkspaceEnv(_0x2edc45||_0x50496a[_0x9f2897(0x157)]||DEFAULT_CONFIG_VALUES['env']);if(!_0x3a9143&&!_0x17f79a)throw CliErrors[_0x9f2897(0x13b)]('Missing\x20workspace\x20app\x20selector.',_0x9f2897(0x15a)+CLI_BIN_NAME+'\x20workspace\x20'+_0x558609+_0x9f2897(0x12f)+CLI_BIN_NAME+'\x20workspace\x20'+_0x558609+_0x9f2897(0x13e));if(_0x3a9143&&_0x17f79a)throw CliErrors[_0x9f2897(0x13b)](_0x9f2897(0x15b),_0x9f2897(0x155));const _0x48eb8d=resolveWriteConfigPath(_0x9f2897(0x134)),_0x280f00=readConfigFile(_0x48eb8d);assertWorkspaceCommandState(_0x558609,_0x280f00);const _0x30422a=_0x17f79a||await resolveRemoteAppCode({'command':_0x558609,'appName':_0x3a9143,'env':_0x498645,'accessKey':_0x50496a[_0x9f2897(0x150)]});return writeWorkspaceConfig({'command':_0x558609,'appName':_0x3a9143,'appcode':_0x30422a,'env':_0x498645,'shouldWriteEnv':!!_0x2edc45,'accessKey':_0x50496a['accessKey']},_0x48eb8d,_0x280f00),{'ok':!![],'data':{'configPath':_0x48eb8d,'app':_0x3a9143||null,'appcode':_0x30422a,'env':_0x2edc45?_0x498645:null,'accessKeyWritten':![],'command':'workspace\x20'+_0x558609},'message':buildWorkspaceMessage(_0x48eb8d,_0x3a9143,_0x30422a,_0x2edc45?_0x498645:undefined)};}async function resolveRemoteAppCode(_0x552b66){const _0x42d94b=a64_0x5280dd;if(!_0x552b66[_0x42d94b(0x150)])throw CliErrors[_0x42d94b(0x153)](_0x42d94b(0x13c)+CLI_BIN_NAME+_0x42d94b(0x154)+_0x552b66[_0x42d94b(0x12d)]+'.');const {setActiveAK:_0x3c46c6}=await import(_0x42d94b(0x163)),{getRemoteAppList:_0x4baaf6}=await import(_0x42d94b(0x137));_0x3c46c6(_0x552b66['accessKey']);const _0x8d19a7=await _0x4baaf6({'env':_0x552b66[_0x42d94b(0x161)],'accessKey':_0x552b66[_0x42d94b(0x150)],'noCache':![]}),_0x36e3de=findAppByName(_0x8d19a7['items'],_0x552b66[_0x42d94b(0x12c)]);if(_0x36e3de&&!isRuntimeAccessibleApp(_0x36e3de))throw runtimeInaccessibleAppError(_0x36e3de,'\x22'+_0x552b66[_0x42d94b(0x12c)]+'\x22');const _0x139ef6=_0x36e3de?.[_0x42d94b(0x160)]?.[_0x42d94b(0x13a)]();if(_0x139ef6)return _0x139ef6;const _0x5b739d=_0x8d19a7[_0x42d94b(0x135)]['map'](_0x42c821=>_0x42c821[_0x42d94b(0x12c)])[_0x42d94b(0x128)](Boolean),_0x26f2dd=_0x5b739d[_0x42d94b(0x144)]?_0x42d94b(0x15c)+Array[_0x42d94b(0x14c)](new Set(_0x5b739d))[_0x42d94b(0x164)](',\x20')+'.':'Run\x20`'+CLI_BIN_NAME+_0x42d94b(0x139);throw CliErrors[_0x42d94b(0x13b)]('App\x20\x22'+_0x552b66['appName']+_0x42d94b(0x14d),_0x26f2dd);}function writeWorkspaceConfig(_0x2ad8bf,_0x44f22b,_0x3925a5){const _0x5a92fa=a64_0x5280dd;_0x2ad8bf[_0x5a92fa(0x15e)]&&(_0x3925a5[_0x5a92fa(0x161)]=_0x2ad8bf[_0x5a92fa(0x161)]);if(_0x2ad8bf[_0x5a92fa(0x12c)]){const _0x16a596=isRecord(_0x3925a5[_0x5a92fa(0x12a)])?{..._0x3925a5[_0x5a92fa(0x12a)]}:{},_0x33dd98=isRecord(_0x16a596[_0x2ad8bf[_0x5a92fa(0x12c)]])?_0x16a596[_0x2ad8bf[_0x5a92fa(0x12c)]]:{};return _0x16a596[_0x2ad8bf[_0x5a92fa(0x12c)]]={..._0x33dd98,'appcode':_0x2ad8bf['appcode']},_0x3925a5['apps']=_0x16a596,_0x3925a5[_0x5a92fa(0x13d)]=_0x2ad8bf[_0x5a92fa(0x12c)],delete _0x3925a5['appcode'],delete _0x3925a5[_0x5a92fa(0x165)],writeAndReturn(_0x44f22b,_0x3925a5);}return _0x3925a5[_0x5a92fa(0x14a)]=_0x2ad8bf[_0x5a92fa(0x14a)],delete _0x3925a5[_0x5a92fa(0x13d)],delete _0x3925a5[_0x5a92fa(0x165)],writeAndReturn(_0x44f22b,_0x3925a5);}function a64_0x5950(_0x222a7c,_0x5c8166){_0x222a7c=_0x222a7c-0x127;const _0x4358ec=a64_0x4358();let _0x5950e2=_0x4358ec[_0x222a7c];return _0x5950e2;}function writeAndReturn(_0x7cddc5,_0x3c189f){return writeConfigFile(_0x7cddc5,_0x3c189f),_0x7cddc5;}function a64_0x4358(){const _0x562ca0=['Resolving\x20--app\x20requires\x20accessKey.\x20Pass\x20--appcode\x20directly,\x20or\x20set\x20accessKey\x20before\x20running\x20','defaultApp','\x20--appcode\x20<code>\x20[--env\x20daily]','Workspace\x20app\x20context\x20is\x20already\x20initialized.','use','修改当前工作目录已有绑定的应用上下文','includes','workspace','length','\x0aAccessKey:\x20not\x20written','906ldQLPU','Invalid\x20env\x20\x22','str','Workspace\x20configured.\x0aConfig\x20file:\x20','appcode','\x20workspace\x20init\x20--app\x20<name>`\x20or\x20`','from','\x22\x20not\x20found.','Workspace\x20app\x20context\x20is\x20not\x20initialized.','2048718XaRnfy','accessKey','1108116MAnuxh','8eqPTJo','authRequired','\x20workspace\x20','Pass\x20either\x20--app\x20<name>\x20or\x20--appcode\x20<code>,\x20not\x20both.','isArray','envName','\x0aEnv:\x20','1792990SSAKCD','Usage:\x20','Conflicting\x20workspace\x20app\x20selectors.','Available\x20apps:\x20','\x20workspace\x20init\x20--appcode\x20<code>`\x20first.','shouldWriteEnv','Use\x20`','appCode','env','App\x20code\x20to\x20bind\x20directly','../../core/api-client.js','join','app','1167460cVmBzG','filter','将在尚未绑定应用的当前工作目录写入\x20Lovrabet\x20项目配置,并把所选应用设为该目录的默认应用;不会写入\x20AccessKey。','apps','write','appName','command','init','\x20--app\x20<name>\x20[--env\x20daily]\x20or\x20','2756HdMQnq','string','7526214fKtDUM','\x20workspace\x20use\x20--appcode\x20<code>`\x20to\x20change\x20it.','project','items','Run\x20`','../../commands/app/remote-source.js','680567KVUIVh','\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20pass\x20--appcode\x20directly.','trim','validation'];a64_0x4358=function(){return _0x562ca0;};return a64_0x4358();}function resolveWorkspaceEnv(_0x266145){const _0x3d4176=a64_0x5280dd;if(RUNTIME_ENV_VALUES[_0x3d4176(0x142)](_0x266145))return _0x266145;throw CliErrors['validation'](_0x3d4176(0x147)+_0x266145+'\x22.\x20Allowed:\x20'+RUNTIME_ENV_VALUES[_0x3d4176(0x164)](',\x20'));}function buildWorkspaceMessage(_0x2d6cef,_0x277641,_0x3562c9,_0x3ed8a0){const _0x4bd7aa=a64_0x5280dd,_0x595d1b=_0x277641?_0x277641+'\x20('+_0x3562c9+')':_0x3562c9,_0x176866=_0x3ed8a0?_0x4bd7aa(0x158)+_0x3ed8a0:'';return _0x4bd7aa(0x149)+_0x2d6cef+'\x0aDefault\x20app:\x20'+_0x595d1b+_0x176866+_0x4bd7aa(0x145);}function isRecord(_0x29d533){const _0x140fa8=a64_0x5280dd;return typeof _0x29d533==='object'&&_0x29d533!==null&&!Array[_0x140fa8(0x156)](_0x29d533);}function hasWorkspaceAppBinding(_0x501b85){const _0x5f3557=a64_0x5280dd;if(typeof _0x501b85['appcode']===_0x5f3557(0x131)&&_0x501b85[_0x5f3557(0x14a)]['trim']()[_0x5f3557(0x144)]>0x0)return!![];if(typeof _0x501b85[_0x5f3557(0x13d)]!==_0x5f3557(0x131)||!_0x501b85['defaultApp']['trim']())return![];if(!isRecord(_0x501b85[_0x5f3557(0x12a)]))return![];const _0x1aee11=_0x501b85['apps'][_0x501b85[_0x5f3557(0x13d)][_0x5f3557(0x13a)]()];return isRecord(_0x1aee11)&&typeof _0x1aee11['appcode']===_0x5f3557(0x131)&&_0x1aee11[_0x5f3557(0x14a)][_0x5f3557(0x13a)]()['length']>0x0;}function assertWorkspaceCommandState(_0x363dc4,_0x1ae8e1){const _0x1446bd=a64_0x5280dd,_0x4c7a83=hasWorkspaceAppBinding(_0x1ae8e1);if(_0x363dc4===_0x1446bd(0x12e)&&_0x4c7a83)throw CliErrors[_0x1446bd(0x13b)](_0x1446bd(0x13f),_0x1446bd(0x15f)+CLI_BIN_NAME+'\x20workspace\x20use\x20--app\x20<name>`\x20or\x20`'+CLI_BIN_NAME+_0x1446bd(0x133));if(_0x363dc4===_0x1446bd(0x140)&&!_0x4c7a83)throw CliErrors['validation'](_0x1446bd(0x14e),_0x1446bd(0x136)+CLI_BIN_NAME+_0x1446bd(0x14b)+CLI_BIN_NAME+_0x1446bd(0x15d));}function makeWorkspaceCommand(_0x3e1b0c){const _0x3b9c28=a64_0x5280dd;return{'service':_0x3b9c28(0x143),'command':_0x3e1b0c,'description':_0x3e1b0c===_0x3b9c28(0x12e)?'为尚未绑定应用的当前工作目录初始化应用上下文':_0x3b9c28(0x141),'risk':_0x3b9c28(0x12b),'confirmationDescription':_0x3e1b0c===_0x3b9c28(0x12e)?_0x3b9c28(0x129):'将更新当前工作目录已有的应用绑定,并把所选应用设为该目录的默认应用;不会写入\x20AccessKey。','requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':WORKSPACE_USE_FLAGS,async 'execute'(_0x3468a5){return executeWorkspaceUse(_0x3468a5,_0x3e1b0c);}};}export const workspaceDefinitions=[makeWorkspaceCommand(a64_0x5280dd(0x12e)),makeWorkspaceCommand(a64_0x5280dd(0x140))];
@@ -1 +1 @@
1
- const a65_0x17d527=a65_0x2606;(function(_0x23783a,_0x35b74e){const _0x41e2fd=a65_0x2606,_0x47ef7f=_0x23783a();while(!![]){try{const _0x1d19f3=parseInt(_0x41e2fd(0x11a))/0x1*(parseInt(_0x41e2fd(0x12f))/0x2)+-parseInt(_0x41e2fd(0x11d))/0x3*(-parseInt(_0x41e2fd(0x130))/0x4)+-parseInt(_0x41e2fd(0x12b))/0x5*(parseInt(_0x41e2fd(0x128))/0x6)+-parseInt(_0x41e2fd(0x139))/0x7+-parseInt(_0x41e2fd(0x11f))/0x8*(parseInt(_0x41e2fd(0x12a))/0x9)+parseInt(_0x41e2fd(0x136))/0xa*(parseInt(_0x41e2fd(0x125))/0xb)+parseInt(_0x41e2fd(0x127))/0xc*(-parseInt(_0x41e2fd(0x13d))/0xd);if(_0x1d19f3===_0x35b74e)break;else _0x47ef7f['push'](_0x47ef7f['shift']());}catch(_0x389fdc){_0x47ef7f['push'](_0x47ef7f['shift']());}}}(a65_0x4635,0xf3d7b));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{RUNTIME_ENV_VALUES}from'../constant/env.js';import{OUTPUT_FORMAT_VALUES}from'../constant/output.js';function a65_0x2606(_0x4ceb8e,_0x4a7172){_0x4ceb8e=_0x4ceb8e-0x119;const _0x4635c1=a65_0x4635();let _0x26066e=_0x4635c1[_0x4ceb8e];return _0x26066e;}export const CONFIG_FIELD_SCHEMAS={'env':{'description':a65_0x17d527(0x12d),'topLevel':!![],'cliSettableTopLevel':!![],'enumValues':RUNTIME_ENV_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES[a65_0x17d527(0x126)],'importable':!![]},'format':{'description':a65_0x17d527(0x137),'topLevel':!![],'cliSettableTopLevel':!![],'enumValues':OUTPUT_FORMAT_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES[a65_0x17d527(0x120)],'importable':!![]},'pageSize':{'description':a65_0x17d527(0x132),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'apiDomain':{'description':a65_0x17d527(0x129),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'userDomain':{'description':a65_0x17d527(0x13b),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'runtimeDomain':{'description':'Override\x20runtime\x20domain','topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'skillHubDomain':{'description':a65_0x17d527(0x12c),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'accessKey':{'description':a65_0x17d527(0x138),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'riskLevel':{'description':a65_0x17d527(0x13c),'topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES[a65_0x17d527(0x119)],'importable':!![]},'locale':{'description':a65_0x17d527(0x131),'topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES[a65_0x17d527(0x123)],'importable':!![],'legacyCompatOnly':!![]}};export const TOP_LEVEL_CONFIG_KEYS=new Set(Object['entries'](CONFIG_FIELD_SCHEMAS)['filter'](([,_0x423763])=>_0x423763[a65_0x17d527(0x134)])[a65_0x17d527(0x12e)](([_0x7ab04c])=>_0x7ab04c));export const CONFIG_ENUM_VALUES=Object[a65_0x17d527(0x121)](Object['entries'](CONFIG_FIELD_SCHEMAS)[a65_0x17d527(0x11e)](([,_0x1351af])=>_0x1351af[a65_0x17d527(0x11b)])[a65_0x17d527(0x12e)](([_0x525937,_0x11f7d5])=>[_0x525937,[..._0x11f7d5[a65_0x17d527(0x11b)]||[]]]));export const IMPORTABLE_RUNTIME_CONFIG_KEYS=Object[a65_0x17d527(0x13a)](CONFIG_FIELD_SCHEMAS)['filter'](([,_0x2f2cc8])=>_0x2f2cc8[a65_0x17d527(0x135)])[a65_0x17d527(0x12e)](([_0x14ca4b])=>_0x14ca4b);export function getConfigFieldSchema(_0x46cf94){return CONFIG_FIELD_SCHEMAS[_0x46cf94];}export function getConfigEnumValues(_0x2037d4){const _0x5520a1=a65_0x17d527;return getConfigFieldSchema(_0x2037d4)?.[_0x5520a1(0x11b)];}export function getConfigDefaultValue(_0x357bf9){const _0x256680=a65_0x17d527;return getConfigFieldSchema(_0x357bf9)?.[_0x256680(0x124)];}export function isTopLevelConfigKey(_0x261726){const _0x3ffded=a65_0x17d527;return TOP_LEVEL_CONFIG_KEYS[_0x3ffded(0x11c)](_0x261726);}export function isLegacyCompatConfigKey(_0xc51a49){return getConfigFieldSchema(_0xc51a49)?.['legacyCompatOnly']===!![];}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function formatConfigKeyList(_0x4b08ea){const _0x59ebe5=a65_0x17d527;return[..._0x4b08ea][_0x59ebe5(0x133)](',\x20');}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){const _0xa5aa55=a65_0x17d527;return _0xa5aa55(0x122)+getTopLevelConfigKeySummary()+';\x20local\x20alias:\x20apps.<alias>.appcode';}export function buildAppProfileListFields(_0x30d31a){return{'env':_0x30d31a,'hasAccessKey':![],'format':null,'pageSize':null,'riskLevel':null,'locale':null};}function a65_0x4635(){const _0x10ba63=['Override\x20API\x20domain','117kdaRgY','95uHiwHf','Override\x20SkillHub\x20domain','Target\x20environment','map','2keyMLL','975724ljucnz','Locale','Default\x20page\x20size','join','cliSettableTopLevel','importable','50YeuPYy','Default\x20output\x20format','Access\x20key\x20(client-ak\x20auth)','2545438cGtvZk','entries','Override\x20user\x20domain','Risk\x20level','24050sdbWwF','riskLevel','1494526OAqugV','enumValues','has','3xINmsT','filter','377952HdeyzH','format','fromEntries','Config\x20key.\x20Top-level:\x20','locale','defaultValue','4366835LkauRE','env','804zJxPxa','512478tMuHyO'];a65_0x4635=function(){return _0x10ba63;};return a65_0x4635();}
1
+ const a65_0x19f635=a65_0x4562;function a65_0x4562(_0x5721e6,_0x151cfc){_0x5721e6=_0x5721e6-0x93;const _0x3b1a40=a65_0x3b1a();let _0x4562f6=_0x3b1a40[_0x5721e6];return _0x4562f6;}(function(_0x1ce89d,_0x47c781){const _0x1314c1=a65_0x4562,_0x2d4f6f=_0x1ce89d();while(!![]){try{const _0x4a1e43=parseInt(_0x1314c1(0xad))/0x1+-parseInt(_0x1314c1(0xa9))/0x2+-parseInt(_0x1314c1(0x9a))/0x3*(-parseInt(_0x1314c1(0x99))/0x4)+-parseInt(_0x1314c1(0x93))/0x5+parseInt(_0x1314c1(0x98))/0x6*(parseInt(_0x1314c1(0xa7))/0x7)+-parseInt(_0x1314c1(0xa0))/0x8*(-parseInt(_0x1314c1(0x9f))/0x9)+-parseInt(_0x1314c1(0xa3))/0xa;if(_0x4a1e43===_0x47c781)break;else _0x2d4f6f['push'](_0x2d4f6f['shift']());}catch(_0x3730c0){_0x2d4f6f['push'](_0x2d4f6f['shift']());}}}(a65_0x3b1a,0x5f46d));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':a65_0x19f635(0x96),'topLevel':!![],'cliSettableTopLevel':!![],'enumValues':RUNTIME_ENV_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES[a65_0x19f635(0xac)],'importable':!![]},'format':{'description':a65_0x19f635(0x9c),'topLevel':!![],'cliSettableTopLevel':!![],'enumValues':OUTPUT_FORMAT_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES[a65_0x19f635(0xa5)],'importable':!![]},'pageSize':{'description':'Default\x20page\x20size','topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'apiDomain':{'description':'Override\x20API\x20domain','topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'userDomain':{'description':a65_0x19f635(0x97),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'runtimeDomain':{'description':a65_0x19f635(0x95),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'skillHubDomain':{'description':a65_0x19f635(0x94),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'accessKey':{'description':a65_0x19f635(0x9b),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'riskLevel':{'description':a65_0x19f635(0xa1),'topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES['riskLevel'],'importable':!![]},'locale':{'description':'Locale','topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES[a65_0x19f635(0x9d)],'importable':!![],'legacyCompatOnly':!![]}};export const TOP_LEVEL_CONFIG_KEYS=new Set(Object[a65_0x19f635(0xae)](CONFIG_FIELD_SCHEMAS)['filter'](([,_0x278256])=>_0x278256[a65_0x19f635(0xa6)])[a65_0x19f635(0x9e)](([_0x47cc14])=>_0x47cc14));export const CONFIG_ENUM_VALUES=Object[a65_0x19f635(0xaa)](Object[a65_0x19f635(0xae)](CONFIG_FIELD_SCHEMAS)[a65_0x19f635(0xa2)](([,_0x2eb154])=>_0x2eb154['enumValues'])[a65_0x19f635(0x9e)](([_0x3027de,_0x12e7a9])=>[_0x3027de,[..._0x12e7a9[a65_0x19f635(0xa4)]||[]]]));export const IMPORTABLE_RUNTIME_CONFIG_KEYS=Object[a65_0x19f635(0xae)](CONFIG_FIELD_SCHEMAS)[a65_0x19f635(0xa2)](([,_0x5f514d])=>_0x5f514d[a65_0x19f635(0xab)])['map'](([_0xe83350])=>_0xe83350);export function getConfigFieldSchema(_0x4330bf){return CONFIG_FIELD_SCHEMAS[_0x4330bf];}export function getConfigEnumValues(_0x5bb706){const _0x23bb1a=a65_0x19f635;return getConfigFieldSchema(_0x5bb706)?.[_0x23bb1a(0xa4)];}export function getConfigDefaultValue(_0x17c4e7){return getConfigFieldSchema(_0x17c4e7)?.['defaultValue'];}export function isTopLevelConfigKey(_0x52a5b4){return TOP_LEVEL_CONFIG_KEYS['has'](_0x52a5b4);}export function isLegacyCompatConfigKey(_0x471395){const _0x1ba175=a65_0x19f635;return getConfigFieldSchema(_0x471395)?.[_0x1ba175(0xaf)]===!![];}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}function a65_0x3b1a(){const _0x13e00b=['4gKPiPa','1650081QpHbUv','Access\x20key\x20(client-ak\x20auth)','Default\x20output\x20format','locale','map','1014057fmqqRS','40zJRxOO','Risk\x20level','filter','11237390xYGWQV','enumValues','format','cliSettableTopLevel','1378405tKgYPG','join','474520ZTPEbG','fromEntries','importable','env','526287ueBEtl','entries','legacyCompatOnly','426710cAKwjU','Override\x20SkillHub\x20domain','Override\x20runtime\x20domain','Target\x20environment','Override\x20user\x20domain','6ePxsMB'];a65_0x3b1a=function(){return _0x13e00b;};return a65_0x3b1a();}export function formatConfigKeyList(_0x12e332){const _0x3c4299=a65_0x19f635;return[..._0x12e332][_0x3c4299(0xa8)](',\x20');}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){return'Config\x20key.\x20Top-level:\x20'+getTopLevelConfigKeySummary()+';\x20local\x20alias:\x20apps.<alias>.appcode';}export function buildAppProfileListFields(_0x1fbdb4){return{'env':_0x1fbdb4,'hasAccessKey':![],'format':null,'pageSize':null,'riskLevel':null,'locale':null};}
@@ -1 +1 @@
1
- const a66_0x34e54f=a66_0x28c4;function a66_0x209e(){const _0x5ecb37=['57774VoDaaj','8KDUywA','460KaBugX','99316DdJxda','PUBLISHED','171OzDKgS','17616360mXxgIn','UNPUBLISH','107721DLgVxc','7163072pRWQkY','55362tnqaKL','4027692sDGYmt','24hIxNVx','66uAAzlE'];a66_0x209e=function(){return _0x5ecb37;};return a66_0x209e();}(function(_0x1865f9,_0x20a793){const _0x469097=a66_0x28c4,_0x2b02cc=_0x1865f9();while(!![]){try{const _0x19926d=parseInt(_0x469097(0xee))/0x1*(parseInt(_0x469097(0xe2))/0x2)+-parseInt(_0x469097(0xe7))/0x3*(parseInt(_0x469097(0xe5))/0x4)+parseInt(_0x469097(0xe4))/0x5*(parseInt(_0x469097(0xec))/0x6)+parseInt(_0x469097(0xeb))/0x7+parseInt(_0x469097(0xe3))/0x8*(-parseInt(_0x469097(0xea))/0x9)+parseInt(_0x469097(0xe8))/0xa+parseInt(_0x469097(0xef))/0xb*(-parseInt(_0x469097(0xed))/0xc);if(_0x19926d===_0x20a793)break;else _0x2b02cc['push'](_0x2b02cc['shift']());}catch(_0x4dc618){_0x2b02cc['push'](_0x2b02cc['shift']());}}}(a66_0x209e,0xd8514));export const APP_PUBLISH_STATUS={'Published':a66_0x34e54f(0xe6),'Unpublished':a66_0x34e54f(0xe9)};function a66_0x28c4(_0x1e6aee,_0x5071c0){_0x1e6aee=_0x1e6aee-0xe2;const _0x209ee4=a66_0x209e();let _0x28c47d=_0x209ee4[_0x1e6aee];return _0x28c47d;}export const RUNTIME_ACCESSIBLE_APP_STATUS=APP_PUBLISH_STATUS['Published'];
1
+ const a66_0xff61f4=a66_0x1edb;(function(_0x30d5e2,_0x43d591){const _0x333700=a66_0x1edb,_0x7b254e=_0x30d5e2();while(!![]){try{const _0x41db47=-parseInt(_0x333700(0x1f0))/0x1*(parseInt(_0x333700(0x1ef))/0x2)+-parseInt(_0x333700(0x1e8))/0x3+-parseInt(_0x333700(0x1e7))/0x4+parseInt(_0x333700(0x1e9))/0x5+parseInt(_0x333700(0x1e5))/0x6*(-parseInt(_0x333700(0x1f1))/0x7)+-parseInt(_0x333700(0x1ec))/0x8*(-parseInt(_0x333700(0x1ee))/0x9)+-parseInt(_0x333700(0x1ed))/0xa*(-parseInt(_0x333700(0x1e6))/0xb);if(_0x41db47===_0x43d591)break;else _0x7b254e['push'](_0x7b254e['shift']());}catch(_0x1151f2){_0x7b254e['push'](_0x7b254e['shift']());}}}(a66_0x1288,0xc3fa7));export const APP_PUBLISH_STATUS={'Published':'PUBLISHED','Unpublished':a66_0xff61f4(0x1eb)};function a66_0x1edb(_0x19248c,_0x2a68b3){_0x19248c=_0x19248c-0x1e5;const _0x128823=a66_0x1288();let _0x1edba7=_0x128823[_0x19248c];return _0x1edba7;}export const RUNTIME_ACCESSIBLE_APP_STATUS=APP_PUBLISH_STATUS[a66_0xff61f4(0x1ea)];function a66_0x1288(){const _0x28722f=['21wUAUIX','560874IBrxgM','154PiWOaD','3326788RKYTpP','4647594olQkmQ','2167800synRFg','Published','UNPUBLISH','8irlOeX','3071290JdrXCu','1029492RFGEPq','2NTPLNW','1383695uoQzSx'];a66_0x1288=function(){return _0x28722f;};return a66_0x1288();}
@@ -1 +1 @@
1
- function a67_0x3cae(){const _0x7638a4=['3455224ttsnzO','ClientAk','749220JhxDBp','9dALsMg','7WjNYdc','522438vafMhi','5348sHSISo','client-ak','194069BfuPTC','6033070JxBJwc','1555nDoUht','1249794RkaDUS'];a67_0x3cae=function(){return _0x7638a4;};return a67_0x3cae();}function a67_0x32b7(_0x14938e,_0x4eac81){_0x14938e=_0x14938e-0x134;const _0x3caecf=a67_0x3cae();let _0x32b70c=_0x3caecf[_0x14938e];return _0x32b70c;}const a67_0xa43574=a67_0x32b7;(function(_0x531671,_0x159c65){const _0x1ea12e=a67_0x32b7,_0x2a7104=_0x531671();while(!![]){try{const _0x259fc9=-parseInt(_0x1ea12e(0x13e))/0x1+parseInt(_0x1ea12e(0x138))/0x2+parseInt(_0x1ea12e(0x13b))/0x3+-parseInt(_0x1ea12e(0x13c))/0x4*(parseInt(_0x1ea12e(0x134))/0x5)+parseInt(_0x1ea12e(0x135))/0x6+parseInt(_0x1ea12e(0x13a))/0x7*(-parseInt(_0x1ea12e(0x136))/0x8)+-parseInt(_0x1ea12e(0x139))/0x9*(-parseInt(_0x1ea12e(0x13f))/0xa);if(_0x259fc9===_0x159c65)break;else _0x2a7104['push'](_0x2a7104['shift']());}catch(_0x53dd36){_0x2a7104['push'](_0x2a7104['shift']());}}}(a67_0x3cae,0x4dc77));export const AUTH_MODE={'ClientAk':a67_0xa43574(0x13d)};export function isAuthMode(_0x2b2277){const _0x56ae1a=a67_0xa43574;return _0x2b2277===AUTH_MODE[_0x56ae1a(0x137)];}
1
+ function a67_0x22ed(){const _0x2982e6=['72390uUAMAa','4rZhgAd','ClientAk','18326rThsVM','384EzURmh','31525920AYcCKP','15517035lvCYEx','6882535zdUMtr','3606qsENFt','17311ekYyLH','6701496XlRsbV'];a67_0x22ed=function(){return _0x2982e6;};return a67_0x22ed();}(function(_0x56f948,_0x288950){const _0xe9dae5=a67_0x3b9a,_0x3d65fe=_0x56f948();while(!![]){try{const _0x3c8297=-parseInt(_0xe9dae5(0x87))/0x1+-parseInt(_0xe9dae5(0x7f))/0x2*(parseInt(_0xe9dae5(0x80))/0x3)+-parseInt(_0xe9dae5(0x88))/0x4*(-parseInt(_0xe9dae5(0x83))/0x5)+-parseInt(_0xe9dae5(0x84))/0x6*(parseInt(_0xe9dae5(0x85))/0x7)+parseInt(_0xe9dae5(0x86))/0x8+-parseInt(_0xe9dae5(0x82))/0x9+parseInt(_0xe9dae5(0x81))/0xa;if(_0x3c8297===_0x288950)break;else _0x3d65fe['push'](_0x3d65fe['shift']());}catch(_0x1612bf){_0x3d65fe['push'](_0x3d65fe['shift']());}}}(a67_0x22ed,0xde728));export const AUTH_MODE={'ClientAk':'client-ak'};function a67_0x3b9a(_0x4ab87e,_0x3d7d0c){_0x4ab87e=_0x4ab87e-0x7f;const _0x22eda9=a67_0x22ed();let _0x3b9a08=_0x22eda9[_0x4ab87e];return _0x3b9a08;}export function isAuthMode(_0x1c15cc){const _0x24293d=a67_0x3b9a;return _0x1c15cc===AUTH_MODE[_0x24293d(0x89)];}
@@ -1 +1 @@
1
- const a68_0x2f138a=a68_0x2c62;function a68_0x2c62(_0x2de964,_0x33b0ab){_0x2de964=_0x2de964-0x78;const _0x324435=a68_0x3244();let _0x2c6230=_0x324435[_0x2de964];return _0x2c6230;}function a68_0x3244(){const _0x975863=['21fAAkTv','params','541182EBExXJ','<expr>','<code>','Force\x20non-interactive\x20mode\x20(CI)','map','1215edYFPH','Verbose\x20output','production\x20|\x20development\x20|\x20daily','11ATyDiv','1308040ILjeYM','clear','Name\x20filter','Show\x20help','10HnyHNP','type','app','nonInteractive','Output\x20format','env','fromEntries','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20implies\x20--format\x20json\x20when\x20current\x20format\x20is\x20pretty)','sqlcode','JSON\x20params\x20for\x20execute\x20commands','dry-run','boolean','format','string','global','4aDdhKv','Alias\x20for\x20--non-interactive','Override\x20appcode','appcode','Clear\x20output','Use\x20global\x20config\x20scope','dryRun','yes','59280NmZkWe','meowKey','3403915fzGOPS','verbose','Skip\x20confirmation\x20for\x20high-risk\x20writes','Select\x20app\x20profile\x20by\x20name','17405820QvSzyf','non-interactive','632803KAKPmu','help','SQL\x20query\x20code','<name>','Preview\x20operation\x20without\x20executing','1929570BxYttS','json\x20|\x20pretty\x20|\x20compress','cliDisplayName','name','Environment'];a68_0x3244=function(){return _0x975863;};return a68_0x3244();}(function(_0x16259a,_0x584e38){const _0x508a0d=a68_0x2c62,_0x448ce3=_0x16259a();while(!![]){try{const _0x13e776=-parseInt(_0x508a0d(0x96))/0x1+-parseInt(_0x508a0d(0xaf))/0x2*(parseInt(_0x508a0d(0xa2))/0x3)+-parseInt(_0x508a0d(0x86))/0x4*(-parseInt(_0x508a0d(0x90))/0x5)+-parseInt(_0x508a0d(0x9b))/0x6*(parseInt(_0x508a0d(0xa0))/0x7)+-parseInt(_0x508a0d(0x8e))/0x8*(-parseInt(_0x508a0d(0xa7))/0x9)+-parseInt(_0x508a0d(0xab))/0xa*(parseInt(_0x508a0d(0xaa))/0xb)+parseInt(_0x508a0d(0x94))/0xc;if(_0x13e776===_0x584e38)break;else _0x448ce3['push'](_0x448ce3['shift']());}catch(_0x4f2763){_0x448ce3['push'](_0x448ce3['shift']());}}}(a68_0x3244,0x7a608));import{PRODUCT_CONFIG}from'../constant/product.js';import{LOVRABET_NPM_PACKAGE_NAME}from'../constant/distribution.js';export const CLI_BIN_NAME=PRODUCT_CONFIG['cliBinName'];export const CLI_DISPLAY_NAME=PRODUCT_CONFIG[a68_0x2f138a(0x9d)];export const NPM_PACKAGE_NAME=LOVRABET_NPM_PACKAGE_NAME;export const GLOBAL_FLAGS=[{'name':a68_0x2f138a(0x89),'meowKey':a68_0x2f138a(0x89),'type':a68_0x2f138a(0x84),'description':a68_0x2f138a(0x88),'hint':a68_0x2f138a(0xa4)},{'name':a68_0x2f138a(0x79),'meowKey':'app','type':'string','description':a68_0x2f138a(0x93),'hint':a68_0x2f138a(0x99)},{'name':a68_0x2f138a(0x7c),'meowKey':a68_0x2f138a(0x7c),'type':a68_0x2f138a(0x84),'description':a68_0x2f138a(0x9f),'hint':a68_0x2f138a(0xa9)},{'name':a68_0x2f138a(0x83),'meowKey':a68_0x2f138a(0x83),'type':a68_0x2f138a(0x84),'description':a68_0x2f138a(0x7b),'hint':a68_0x2f138a(0x9c)},{'name':'jq','meowKey':'jq','type':a68_0x2f138a(0x84),'description':a68_0x2f138a(0x7e),'hint':a68_0x2f138a(0xa3)},{'name':a68_0x2f138a(0x81),'meowKey':a68_0x2f138a(0x8c),'type':a68_0x2f138a(0x82),'description':a68_0x2f138a(0x9a)},{'name':a68_0x2f138a(0x8d),'meowKey':'yes','type':a68_0x2f138a(0x82),'description':a68_0x2f138a(0x92)},{'name':a68_0x2f138a(0x95),'meowKey':a68_0x2f138a(0x7a),'type':a68_0x2f138a(0x82),'description':a68_0x2f138a(0xa5)},{'name':'global','meowKey':a68_0x2f138a(0x85),'type':a68_0x2f138a(0x82),'description':a68_0x2f138a(0x8b)},{'name':'ci','meowKey':'ci','type':a68_0x2f138a(0x82),'description':a68_0x2f138a(0x87),'hidden':!![]},{'name':a68_0x2f138a(0x97),'meowKey':'help','type':'boolean','description':a68_0x2f138a(0xae)},{'name':'id','meowKey':'id','type':'string','description':'Record\x20ID','hidden':!![]},{'name':'name','meowKey':a68_0x2f138a(0x9e),'type':a68_0x2f138a(0x84),'description':a68_0x2f138a(0xad),'hidden':!![]},{'name':a68_0x2f138a(0x7f),'meowKey':a68_0x2f138a(0x7f),'type':a68_0x2f138a(0x84),'description':a68_0x2f138a(0x98),'hidden':!![]},{'name':a68_0x2f138a(0xa1),'meowKey':'params','type':a68_0x2f138a(0x84),'description':a68_0x2f138a(0x80),'hidden':!![]},{'name':a68_0x2f138a(0x91),'meowKey':a68_0x2f138a(0x91),'type':'boolean','description':a68_0x2f138a(0xa8),'hidden':!![]},{'name':a68_0x2f138a(0xac),'meowKey':a68_0x2f138a(0xac),'type':a68_0x2f138a(0x82),'description':a68_0x2f138a(0x8a),'hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set([a68_0x2f138a(0x89),'app',a68_0x2f138a(0x7c),a68_0x2f138a(0x83),'jq',a68_0x2f138a(0x81),'yes',a68_0x2f138a(0x95),'ci']);export function buildMeowFlags(){const _0x133c56=a68_0x2f138a;return Object[_0x133c56(0x7d)](GLOBAL_FLAGS[_0x133c56(0xa6)](_0x4a5469=>[_0x4a5469[_0x133c56(0x8f)],{'type':_0x4a5469[_0x133c56(0x78)]}]));}
1
+ const a68_0x2d2d6c=a68_0x12ae;(function(_0x36da31,_0x4ff627){const _0x2595f4=a68_0x12ae,_0x3b6935=_0x36da31();while(!![]){try{const _0x101fd5=-parseInt(_0x2595f4(0x13f))/0x1+-parseInt(_0x2595f4(0x131))/0x2*(parseInt(_0x2595f4(0x127))/0x3)+-parseInt(_0x2595f4(0x128))/0x4*(-parseInt(_0x2595f4(0x144))/0x5)+-parseInt(_0x2595f4(0x123))/0x6*(-parseInt(_0x2595f4(0x132))/0x7)+-parseInt(_0x2595f4(0x12d))/0x8*(-parseInt(_0x2595f4(0x121))/0x9)+parseInt(_0x2595f4(0x12b))/0xa+-parseInt(_0x2595f4(0x13a))/0xb;if(_0x101fd5===_0x4ff627)break;else _0x3b6935['push'](_0x3b6935['shift']());}catch(_0x5b7625){_0x3b6935['push'](_0x3b6935['shift']());}}}(a68_0x496f,0x41aba));import{PRODUCT_CONFIG}from'../constant/product.js';import{LOVRABET_NPM_PACKAGE_NAME}from'../constant/distribution.js';export const CLI_BIN_NAME=PRODUCT_CONFIG[a68_0x2d2d6c(0x11d)];function a68_0x496f(){const _0x1815d0=['2DbSFjp','7eSOPxH','json\x20|\x20pretty\x20|\x20compress','Record\x20ID','cliDisplayName','help','Select\x20app\x20profile\x20by\x20name','<expr>','fromEntries','10406143SnyXRH','app','string','JSON\x20params\x20for\x20execute\x20commands','yes','117100PhcFSS','global','name','sqlcode','appcode','34285zPDWqs','env','Environment','Name\x20filter','dry-run','<code>','production\x20|\x20development\x20|\x20daily','verbose','Alias\x20for\x20--non-interactive','cliBinName','non-interactive','type','SQL\x20query\x20code','603mbPcTF','nonInteractive','2686674jDClHg','format','params','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20implies\x20--format\x20json\x20when\x20current\x20format\x20is\x20pretty)','163662QDVwKa','156pfAhVR','boolean','<name>','1457020bCmXLa','map','62776wtwSsz','Preview\x20operation\x20without\x20executing','Verbose\x20output','clear'];a68_0x496f=function(){return _0x1815d0;};return a68_0x496f();}export const CLI_DISPLAY_NAME=PRODUCT_CONFIG[a68_0x2d2d6c(0x135)];function a68_0x12ae(_0x209b89,_0x41f16f){_0x209b89=_0x209b89-0x11b;const _0x496f38=a68_0x496f();let _0x12aeb7=_0x496f38[_0x209b89];return _0x12aeb7;}export const NPM_PACKAGE_NAME=LOVRABET_NPM_PACKAGE_NAME;export const GLOBAL_FLAGS=[{'name':a68_0x2d2d6c(0x143),'meowKey':a68_0x2d2d6c(0x143),'type':a68_0x2d2d6c(0x13c),'description':'Override\x20appcode','hint':a68_0x2d2d6c(0x149)},{'name':a68_0x2d2d6c(0x13b),'meowKey':a68_0x2d2d6c(0x13b),'type':a68_0x2d2d6c(0x13c),'description':a68_0x2d2d6c(0x137),'hint':a68_0x2d2d6c(0x12a)},{'name':'env','meowKey':a68_0x2d2d6c(0x145),'type':'string','description':a68_0x2d2d6c(0x146),'hint':a68_0x2d2d6c(0x14a)},{'name':'format','meowKey':a68_0x2d2d6c(0x124),'type':'string','description':'Output\x20format','hint':a68_0x2d2d6c(0x133)},{'name':'jq','meowKey':'jq','type':a68_0x2d2d6c(0x13c),'description':a68_0x2d2d6c(0x126),'hint':a68_0x2d2d6c(0x138)},{'name':'dry-run','meowKey':'dryRun','type':'boolean','description':a68_0x2d2d6c(0x12e)},{'name':a68_0x2d2d6c(0x13e),'meowKey':a68_0x2d2d6c(0x13e),'type':'boolean','description':'Skip\x20confirmation\x20for\x20high-risk\x20writes'},{'name':'non-interactive','meowKey':a68_0x2d2d6c(0x122),'type':a68_0x2d2d6c(0x129),'description':'Force\x20non-interactive\x20mode\x20(CI)'},{'name':a68_0x2d2d6c(0x140),'meowKey':'global','type':'boolean','description':'Use\x20global\x20config\x20scope'},{'name':'ci','meowKey':'ci','type':a68_0x2d2d6c(0x129),'description':a68_0x2d2d6c(0x11c),'hidden':!![]},{'name':a68_0x2d2d6c(0x136),'meowKey':'help','type':a68_0x2d2d6c(0x129),'description':'Show\x20help'},{'name':'id','meowKey':'id','type':'string','description':a68_0x2d2d6c(0x134),'hidden':!![]},{'name':a68_0x2d2d6c(0x141),'meowKey':a68_0x2d2d6c(0x141),'type':a68_0x2d2d6c(0x13c),'description':a68_0x2d2d6c(0x147),'hidden':!![]},{'name':a68_0x2d2d6c(0x142),'meowKey':'sqlcode','type':'string','description':a68_0x2d2d6c(0x120),'hidden':!![]},{'name':'params','meowKey':a68_0x2d2d6c(0x125),'type':a68_0x2d2d6c(0x13c),'description':a68_0x2d2d6c(0x13d),'hidden':!![]},{'name':'verbose','meowKey':a68_0x2d2d6c(0x11b),'type':a68_0x2d2d6c(0x129),'description':a68_0x2d2d6c(0x12f),'hidden':!![]},{'name':a68_0x2d2d6c(0x130),'meowKey':'clear','type':a68_0x2d2d6c(0x129),'description':'Clear\x20output','hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set([a68_0x2d2d6c(0x143),a68_0x2d2d6c(0x13b),'env',a68_0x2d2d6c(0x124),'jq',a68_0x2d2d6c(0x148),'yes',a68_0x2d2d6c(0x11e),'ci']);export function buildMeowFlags(){const _0x1e0ca3=a68_0x2d2d6c;return Object[_0x1e0ca3(0x139)](GLOBAL_FLAGS[_0x1e0ca3(0x12c)](_0x1c5050=>[_0x1c5050['meowKey'],{'type':_0x1c5050[_0x1e0ca3(0x11f)]}]));}
@@ -1 +1 @@
1
- function a69_0x2082(){const _0x128c2c=['8VfgMrE','6ILyyEe','1980803wWByWO','main','write','compress','2080xnPYBy','92TVqXRD','en-US','8sqxpyb','production','107760PjHdKJ','532995sPgEhB','6681123Lqzclx','257812sdwnCB','6047503qSNmtU','20JfUzWj','128091NaDHQy'];a69_0x2082=function(){return _0x128c2c;};return a69_0x2082();}function a69_0x5edd(_0x134da9,_0x5b24f4){_0x134da9=_0x134da9-0x116;const _0x208283=a69_0x2082();let _0x5edda9=_0x208283[_0x134da9];return _0x5edda9;}const a69_0x55f684=a69_0x5edd;(function(_0x4fbe1f,_0x55dd12){const _0x31dcff=a69_0x5edd,_0x3cadda=_0x4fbe1f();while(!![]){try{const _0xe41dd8=parseInt(_0x31dcff(0x11f))/0x1*(-parseInt(_0x31dcff(0x124))/0x2)+-parseInt(_0x31dcff(0x127))/0x3*(-parseInt(_0x31dcff(0x11d))/0x4)+-parseInt(_0x31dcff(0x122))/0x5*(-parseInt(_0x31dcff(0x117))/0x6)+parseInt(_0x31dcff(0x125))/0x7*(parseInt(_0x31dcff(0x116))/0x8)+parseInt(_0x31dcff(0x123))/0x9+-parseInt(_0x31dcff(0x126))/0xa*(-parseInt(_0x31dcff(0x118))/0xb)+parseInt(_0x31dcff(0x121))/0xc*(-parseInt(_0x31dcff(0x11c))/0xd);if(_0xe41dd8===_0x55dd12)break;else _0x3cadda['push'](_0x3cadda['shift']());}catch(_0x36f324){_0x3cadda['push'](_0x3cadda['shift']());}}}(a69_0x2082,0x8f4fc));export const DEFAULT_APP_PROFILE_NAME=a69_0x55f684(0x119);export const DEFAULT_CONFIG_VALUES={'env':a69_0x55f684(0x120),'format':a69_0x55f684(0x11b),'locale':a69_0x55f684(0x11e),'riskLevel':a69_0x55f684(0x11a)};export const DEFAULT_COMMAND_OUTPUT_FORMAT='compress';
1
+ const a69_0x2472c8=a69_0x5652;function a69_0x3531(){const _0x3eb148=['14474565nuVjFC','16765OgmKsy','5216gZajNs','write','50kqdGoP','23266990tQfUjh','en-US','185804jxehot','20446NQSvcc','73udbQIe','22VRclSE','2707560SXZBrp','production','compress','main','3078024vcutkZ'];a69_0x3531=function(){return _0x3eb148;};return a69_0x3531();}function a69_0x5652(_0x5487ef,_0x39e0c7){_0x5487ef=_0x5487ef-0x1a2;const _0x3531fe=a69_0x3531();let _0x565211=_0x3531fe[_0x5487ef];return _0x565211;}(function(_0x4072f3,_0x49aea9){const _0x285511=a69_0x5652,_0x45e7f6=_0x4072f3();while(!![]){try{const _0x5ad2ad=parseInt(_0x285511(0x1ae))/0x1*(-parseInt(_0x285511(0x1ad))/0x2)+parseInt(_0x285511(0x1a4))/0x3+-parseInt(_0x285511(0x1ac))/0x4*(parseInt(_0x285511(0x1a9))/0x5)+-parseInt(_0x285511(0x1b0))/0x6+parseInt(_0x285511(0x1a6))/0x7*(-parseInt(_0x285511(0x1a7))/0x8)+-parseInt(_0x285511(0x1a5))/0x9+-parseInt(_0x285511(0x1aa))/0xa*(-parseInt(_0x285511(0x1af))/0xb);if(_0x5ad2ad===_0x49aea9)break;else _0x45e7f6['push'](_0x45e7f6['shift']());}catch(_0x21c014){_0x45e7f6['push'](_0x45e7f6['shift']());}}}(a69_0x3531,0xceeac));export const DEFAULT_APP_PROFILE_NAME=a69_0x2472c8(0x1a3);export const DEFAULT_CONFIG_VALUES={'env':a69_0x2472c8(0x1b1),'format':a69_0x2472c8(0x1a2),'locale':a69_0x2472c8(0x1ab),'riskLevel':a69_0x2472c8(0x1a8)};export const DEFAULT_COMMAND_OUTPUT_FORMAT=a69_0x2472c8(0x1a2);
@@ -1 +1 @@
1
- const a70_0x34ad57=a70_0x4baf;(function(_0x5a814a,_0x1048c0){const _0x22d9de=a70_0x4baf,_0x2a3fb3=_0x5a814a();while(!![]){try{const _0x4acd75=-parseInt(_0x22d9de(0x1c3))/0x1*(-parseInt(_0x22d9de(0x1bd))/0x2)+-parseInt(_0x22d9de(0x1c1))/0x3+parseInt(_0x22d9de(0x1c0))/0x4+-parseInt(_0x22d9de(0x1bb))/0x5+-parseInt(_0x22d9de(0x1bc))/0x6+-parseInt(_0x22d9de(0x1be))/0x7*(parseInt(_0x22d9de(0x1bf))/0x8)+-parseInt(_0x22d9de(0x1ba))/0x9*(-parseInt(_0x22d9de(0x1c4))/0xa);if(_0x4acd75===_0x1048c0)break;else _0x2a3fb3['push'](_0x2a3fb3['shift']());}catch(_0x2e24bf){_0x2a3fb3['push'](_0x2a3fb3['shift']());}}}(a70_0x2305,0xc0f70));function a70_0x4baf(_0x5726af,_0x12e826){_0x5726af=_0x5726af-0x1ba;const _0x2305f4=a70_0x2305();let _0x4baf73=_0x2305f4[_0x5726af];return _0x4baf73;}import{PRODUCT_CONFIG}from'../constant/product.js';function a70_0x2305(){const _0x6a61e7=['skillSource','415983FtdjPA','13234160qKHcEn','9tSjhja','7004760zCdwPp','3698454baOFwK','4wupRnY','7sUpabG','998440FAzgnS','5989352GjPqhV','2160510lqFEZR'];a70_0x2305=function(){return _0x6a61e7;};return a70_0x2305();}export const LOVRABET_NPM_PACKAGE_NAME=PRODUCT_CONFIG['npmPackageName'];export const LOVRABET_SKILL_SOURCE=PRODUCT_CONFIG[a70_0x34ad57(0x1c2)];export const NPM_REGISTRY_BASE_URL=PRODUCT_CONFIG['npmRegistryBaseUrl'];
1
+ const a70_0x109f52=a70_0x57af;(function(_0x5614b1,_0x1d84db){const _0x357d19=a70_0x57af,_0x47303c=_0x5614b1();while(!![]){try{const _0x55ad34=-parseInt(_0x357d19(0xe6))/0x1*(parseInt(_0x357d19(0xec))/0x2)+parseInt(_0x357d19(0xe9))/0x3*(-parseInt(_0x357d19(0xed))/0x4)+-parseInt(_0x357d19(0xe5))/0x5*(parseInt(_0x357d19(0xe1))/0x6)+-parseInt(_0x357d19(0xe2))/0x7*(-parseInt(_0x357d19(0xee))/0x8)+-parseInt(_0x357d19(0xe4))/0x9+parseInt(_0x357d19(0xe3))/0xa*(-parseInt(_0x357d19(0xeb))/0xb)+parseInt(_0x357d19(0xea))/0xc*(parseInt(_0x357d19(0xe7))/0xd);if(_0x55ad34===_0x1d84db)break;else _0x47303c['push'](_0x47303c['shift']());}catch(_0x47a78c){_0x47303c['push'](_0x47303c['shift']());}}}(a70_0x2a46,0xab60b));function a70_0x57af(_0x42f26e,_0x369df7){_0x42f26e=_0x42f26e-0xe1;const _0x2a46bd=a70_0x2a46();let _0x57af48=_0x2a46bd[_0x42f26e];return _0x57af48;}import{PRODUCT_CONFIG}from'../constant/product.js';export const LOVRABET_NPM_PACKAGE_NAME=PRODUCT_CONFIG[a70_0x109f52(0xe8)];export const LOVRABET_SKILL_SOURCE=PRODUCT_CONFIG['skillSource'];export const NPM_REGISTRY_BASE_URL=PRODUCT_CONFIG[a70_0x109f52(0xef)];function a70_0x2a46(){const _0x36f722=['5861qsydSY','53991327nzFRTt','npmPackageName','366621ZFzLrl','12utIDPr','968979xDvlyr','310tcuXUz','24TEqRST','8gOqlrB','npmRegistryBaseUrl','20238rlpNVc','7186697eOuAJX','90iLaldP','10103040gofqEZ','1365PQBFjq'];a70_0x2a46=function(){return _0x36f722;};return a70_0x2a46();}
@@ -1 +1 @@
1
- const a71_0x4c471e=a71_0x5606;(function(_0x15bb05,_0x4f88c7){const _0x13a86a=a71_0x5606,_0x30d685=_0x15bb05();while(!![]){try{const _0x78af32=parseInt(_0x13a86a(0xb6))/0x1+parseInt(_0x13a86a(0xb3))/0x2*(parseInt(_0x13a86a(0xc7))/0x3)+parseInt(_0x13a86a(0xc4))/0x4+-parseInt(_0x13a86a(0xbe))/0x5*(-parseInt(_0x13a86a(0xc5))/0x6)+parseInt(_0x13a86a(0xb4))/0x7*(-parseInt(_0x13a86a(0xbf))/0x8)+parseInt(_0x13a86a(0xc2))/0x9*(parseInt(_0x13a86a(0xb7))/0xa)+parseInt(_0x13a86a(0xc3))/0xb*(-parseInt(_0x13a86a(0xb9))/0xc);if(_0x78af32===_0x4f88c7)break;else _0x30d685['push'](_0x30d685['shift']());}catch(_0x5ca90a){_0x30d685['push'](_0x30d685['shift']());}}}(a71_0x24af,0x850e5));function a71_0x5606(_0x31cb6d,_0x49b3f7){_0x31cb6d=_0x31cb6d-0xb2;const _0x24af0f=a71_0x24af();let _0x560691=_0x24af0f[_0x31cb6d];return _0x560691;}import{getEnv,isProduction}from'../constant/env.js';function a71_0x24af(){const _0x362d30=['api','production','171EyzPoK','18852493HpOEaU','3233784ZOYaGl','14226WcDgvM','apiDomain','6CwMVwi','runtime','900002auNuoA','1911224EDszyb','skillhub','548506mNtFMT','9070ptMiYf','userDomain','12CoVIWq','user','domains','nonProduction','skillHubDomain','1695zjrmxj','24WIdQrs'];a71_0x24af=function(){return _0x362d30;};return a71_0x24af();}import{PRODUCT_CONFIG}from'../constant/product.js';let customApiDomain,customUserDomain,customRuntimeDomain,customSkillHubDomain;export function initDomains(_0x10359e){const _0x1cc015=a71_0x5606;customApiDomain=_0x10359e?.[_0x1cc015(0xc6)],customUserDomain=_0x10359e?.[_0x1cc015(0xb8)],customRuntimeDomain=_0x10359e?.['runtimeDomain'],customSkillHubDomain=_0x10359e?.[_0x1cc015(0xbd)];}export const getUserDomain=()=>customUserDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a71_0x4c471e(0xbb)][a71_0x4c471e(0xc1)][a71_0x4c471e(0xba)]:PRODUCT_CONFIG[a71_0x4c471e(0xbb)][a71_0x4c471e(0xbc)]['user']);export const getApiDomain=()=>customApiDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a71_0x4c471e(0xbb)][a71_0x4c471e(0xc1)][a71_0x4c471e(0xc0)]:PRODUCT_CONFIG[a71_0x4c471e(0xbb)][a71_0x4c471e(0xbc)]['api']);export const getRuntimeDomain=()=>customRuntimeDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a71_0x4c471e(0xbb)][a71_0x4c471e(0xc1)][a71_0x4c471e(0xb2)]:PRODUCT_CONFIG[a71_0x4c471e(0xbb)]['nonProduction'][a71_0x4c471e(0xb2)]);export const getSkillHubDomain=()=>customSkillHubDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a71_0x4c471e(0xbb)][a71_0x4c471e(0xc1)]['skillhub']:PRODUCT_CONFIG[a71_0x4c471e(0xbb)][a71_0x4c471e(0xbc)][a71_0x4c471e(0xb5)]);
1
+ const a71_0x6ba17c=a71_0x5895;(function(_0x5d53fe,_0xd92272){const _0x1f775e=a71_0x5895,_0x461541=_0x5d53fe();while(!![]){try{const _0x55fbc1=parseInt(_0x1f775e(0x148))/0x1+-parseInt(_0x1f775e(0x14e))/0x2*(-parseInt(_0x1f775e(0x14f))/0x3)+-parseInt(_0x1f775e(0x151))/0x4*(parseInt(_0x1f775e(0x152))/0x5)+parseInt(_0x1f775e(0x150))/0x6+parseInt(_0x1f775e(0x14d))/0x7*(parseInt(_0x1f775e(0x143))/0x8)+-parseInt(_0x1f775e(0x146))/0x9+-parseInt(_0x1f775e(0x145))/0xa*(parseInt(_0x1f775e(0x149))/0xb);if(_0x55fbc1===_0xd92272)break;else _0x461541['push'](_0x461541['shift']());}catch(_0x33755d){_0x461541['push'](_0x461541['shift']());}}}(a71_0x11b4,0x18957));import{getEnv,isProduction}from'../constant/env.js';function a71_0x11b4(){const _0x1b33f4=['1470TsiWqS','1497798PBKZFq','runtime','181437hZyWvv','16654YagxxW','nonProduction','skillhub','runtimeDomain','301utRwLB','19192yGSQxl','39QeBqkL','781560uGbWOc','6288YuYiSk','395oOpzCl','user','production','api','33008nabKxp','domains'];a71_0x11b4=function(){return _0x1b33f4;};return a71_0x11b4();}import{PRODUCT_CONFIG}from'../constant/product.js';function a71_0x5895(_0x436856,_0xbdf0f9){_0x436856=_0x436856-0x140;const _0x11b4fb=a71_0x11b4();let _0x5895a3=_0x11b4fb[_0x436856];return _0x5895a3;}let customApiDomain,customUserDomain,customRuntimeDomain,customSkillHubDomain;export function initDomains(_0x24f83b){const _0x25181a=a71_0x5895;customApiDomain=_0x24f83b?.['apiDomain'],customUserDomain=_0x24f83b?.['userDomain'],customRuntimeDomain=_0x24f83b?.[_0x25181a(0x14c)],customSkillHubDomain=_0x24f83b?.['skillHubDomain'];}export const getUserDomain=()=>customUserDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a71_0x6ba17c(0x144)][a71_0x6ba17c(0x141)]['user']:PRODUCT_CONFIG[a71_0x6ba17c(0x144)][a71_0x6ba17c(0x14a)][a71_0x6ba17c(0x140)]);export const getApiDomain=()=>customApiDomain||(isProduction(getEnv())?PRODUCT_CONFIG['domains'][a71_0x6ba17c(0x141)][a71_0x6ba17c(0x142)]:PRODUCT_CONFIG[a71_0x6ba17c(0x144)][a71_0x6ba17c(0x14a)][a71_0x6ba17c(0x142)]);export const getRuntimeDomain=()=>customRuntimeDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a71_0x6ba17c(0x144)][a71_0x6ba17c(0x141)][a71_0x6ba17c(0x147)]:PRODUCT_CONFIG[a71_0x6ba17c(0x144)][a71_0x6ba17c(0x14a)][a71_0x6ba17c(0x147)]);export const getSkillHubDomain=()=>customSkillHubDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a71_0x6ba17c(0x144)]['production'][a71_0x6ba17c(0x14b)]:PRODUCT_CONFIG[a71_0x6ba17c(0x144)][a71_0x6ba17c(0x14a)][a71_0x6ba17c(0x14b)]);
@@ -1 +1 @@
1
- const a72_0x310f2d=a72_0x1848;(function(_0x5a8866,_0x7b7b7d){const _0x468824=a72_0x1848,_0x1ac6ca=_0x5a8866();while(!![]){try{const _0x582899=parseInt(_0x468824(0xe2))/0x1+parseInt(_0x468824(0xe7))/0x2+parseInt(_0x468824(0xe6))/0x3*(parseInt(_0x468824(0xe1))/0x4)+parseInt(_0x468824(0xe3))/0x5*(-parseInt(_0x468824(0xe5))/0x6)+parseInt(_0x468824(0xec))/0x7+parseInt(_0x468824(0xe8))/0x8*(-parseInt(_0x468824(0xea))/0x9)+-parseInt(_0x468824(0xeb))/0xa;if(_0x582899===_0x7b7b7d)break;else _0x1ac6ca['push'](_0x1ac6ca['shift']());}catch(_0x4e8c1a){_0x1ac6ca['push'](_0x1ac6ca['shift']());}}}(a72_0x3b0a,0x8cfc6));import{productEnv}from'../constant/product.js';function a72_0x3b0a(){const _0x51e752=['266583ITsAZd','1997048uMHvMR','3904LbLYBc','development','5310KoSfCa','13205630WLZddw','7847812KiQldL','dev','daily','production','28XDMFfm','583820WViWxL','435rLFjpY','online','78588ZLdEHe'];a72_0x3b0a=function(){return _0x51e752;};return a72_0x3b0a();}function a72_0x1848(_0x176cda,_0x469cf8){_0x176cda=_0x176cda-0xe0;const _0x3b0a9b=a72_0x3b0a();let _0x18481a=_0x3b0a9b[_0x176cda];return _0x18481a;}export const RUNTIME_ENV_VALUES=['production',a72_0x310f2d(0xe9),a72_0x310f2d(0xee)];export function normalizeEnv(_0x3fed90){const _0x36a94a=a72_0x310f2d;return _0x3fed90===_0x36a94a(0xe4)?'production':_0x3fed90;}export function isProduction(_0x2b1b6e){const _0x27a69e=a72_0x310f2d;return normalizeEnv(_0x2b1b6e)===_0x27a69e(0xe0);}export function isDaily(_0xb0b014){const _0x464bfc=a72_0x310f2d;return normalizeEnv(_0xb0b014)===_0x464bfc(0xee);}export function isDev(_0x2e1a11){const _0xa2c70c=a72_0x310f2d,_0x2bc150=normalizeEnv(_0x2e1a11);return _0x2bc150===_0xa2c70c(0xe9)||_0x2bc150===_0xa2c70c(0xed);}let env=normalizeEnv(productEnv('ENV')||a72_0x310f2d(0xe0));export function getEnv(){return env;}export function initEnv(_0x38e688){env=normalizeEnv(_0x38e688);}
1
+ function a72_0x1a4a(_0x4ff678,_0x58545a){_0x4ff678=_0x4ff678-0x8b;const _0x5a60a1=a72_0x5a60();let _0x1a4a7b=_0x5a60a1[_0x4ff678];return _0x1a4a7b;}function a72_0x5a60(){const _0x3a335c=['development','1872744kxdmrL','48HFMsKE','1198057SjgkWx','1488840sOkkTQ','ENV','6861123mPfWDj','daily','288835FATsCS','141282ssrubh','4rVkzDU','23449qrDCSQ','production'];a72_0x5a60=function(){return _0x3a335c;};return a72_0x5a60();}const a72_0x111587=a72_0x1a4a;(function(_0x3a2bb0,_0x5c45c5){const _0xd701cb=a72_0x1a4a,_0x5a97ed=_0x3a2bb0();while(!![]){try{const _0x21ee45=parseInt(_0xd701cb(0x95))/0x1*(parseInt(_0xd701cb(0x94))/0x2)+-parseInt(_0xd701cb(0x93))/0x3+parseInt(_0xd701cb(0x8e))/0x4+parseInt(_0xd701cb(0x92))/0x5*(-parseInt(_0xd701cb(0x8c))/0x6)+-parseInt(_0xd701cb(0x8d))/0x7+-parseInt(_0xd701cb(0x8b))/0x8+parseInt(_0xd701cb(0x90))/0x9;if(_0x21ee45===_0x5c45c5)break;else _0x5a97ed['push'](_0x5a97ed['shift']());}catch(_0x44c975){_0x5a97ed['push'](_0x5a97ed['shift']());}}}(a72_0x5a60,0x412e5));import{productEnv}from'../constant/product.js';export const RUNTIME_ENV_VALUES=['production',a72_0x111587(0x97),'daily'];export function normalizeEnv(_0x553447){const _0x2eb7c0=a72_0x111587;return _0x553447==='online'?_0x2eb7c0(0x96):_0x553447;}export function isProduction(_0x466106){const _0x23b120=a72_0x111587;return normalizeEnv(_0x466106)===_0x23b120(0x96);}export function isDaily(_0x42ea8){const _0x48a579=a72_0x111587;return normalizeEnv(_0x42ea8)===_0x48a579(0x91);}export function isDev(_0x13c3b0){const _0x32d2b7=a72_0x111587,_0x1f16bd=normalizeEnv(_0x13c3b0);return _0x1f16bd===_0x32d2b7(0x97)||_0x1f16bd==='dev';}let env=normalizeEnv(productEnv(a72_0x111587(0x8f))||a72_0x111587(0x96));export function getEnv(){return env;}export function initEnv(_0x430a3e){env=normalizeEnv(_0x430a3e);}
@@ -1 +1 @@
1
- function a73_0x36bd(_0x495541,_0x1db076){_0x495541=_0x495541-0x18e;const _0x317623=a73_0x3176();let _0x36bd9e=_0x317623[_0x495541];return _0x36bd9e;}function a73_0x3176(){const _0x2c125d=['465450CeriHB','3slVdij','1109545qtxcjZ','6HAZlsu','pretty','compress','84136oVhYUJ','1337013tFUUND','285157tNmhse','496880TAgUGe','157514lxlYGe'];a73_0x3176=function(){return _0x2c125d;};return a73_0x3176();}const a73_0x565e1c=a73_0x36bd;(function(_0x12c57d,_0x5020de){const _0x45eb35=a73_0x36bd,_0x5c6adf=_0x12c57d();while(!![]){try{const _0x43b748=parseInt(_0x45eb35(0x194))/0x1+-parseInt(_0x45eb35(0x197))/0x2+-parseInt(_0x45eb35(0x198))/0x3*(parseInt(_0x45eb35(0x192))/0x4)+parseInt(_0x45eb35(0x18e))/0x5+parseInt(_0x45eb35(0x18f))/0x6*(-parseInt(_0x45eb35(0x196))/0x7)+parseInt(_0x45eb35(0x195))/0x8+-parseInt(_0x45eb35(0x193))/0x9;if(_0x43b748===_0x5020de)break;else _0x5c6adf['push'](_0x5c6adf['shift']());}catch(_0x4ae1aa){_0x5c6adf['push'](_0x5c6adf['shift']());}}}(a73_0x3176,0x233e6));export const OUTPUT_FORMAT_VALUES=['json',a73_0x565e1c(0x190),a73_0x565e1c(0x191)];
1
+ function a73_0x446f(){const _0x2eac79=['9YDgmXT','960060UHLdEz','11288410UsmWvh','605646tlKfye','12behFfh','json','12jedRDy','5923264IGnZAN','220546qWGsXR','24594559yDbVge','5081118sfomjn','compress','11jHMzLD','pretty'];a73_0x446f=function(){return _0x2eac79;};return a73_0x446f();}const a73_0x1542d5=a73_0x22e1;(function(_0xdb53cf,_0x3def97){const _0x2e6995=a73_0x22e1,_0x45df9c=_0xdb53cf();while(!![]){try{const _0x46e4ef=parseInt(_0x2e6995(0x1a3))/0x1*(parseInt(_0x2e6995(0x19f))/0x2)+-parseInt(_0x2e6995(0x19a))/0x3*(parseInt(_0x2e6995(0x19b))/0x4)+parseInt(_0x2e6995(0x1a6))/0x5*(parseInt(_0x2e6995(0x19d))/0x6)+-parseInt(_0x2e6995(0x1a1))/0x7+-parseInt(_0x2e6995(0x19e))/0x8+-parseInt(_0x2e6995(0x1a5))/0x9*(parseInt(_0x2e6995(0x1a7))/0xa)+parseInt(_0x2e6995(0x1a0))/0xb;if(_0x46e4ef===_0x3def97)break;else _0x45df9c['push'](_0x45df9c['shift']());}catch(_0x5c6e9f){_0x45df9c['push'](_0x45df9c['shift']());}}}(a73_0x446f,0x9a53f));function a73_0x22e1(_0x299116,_0x2003f6){_0x299116=_0x299116-0x19a;const _0x446fd3=a73_0x446f();let _0x22e1c2=_0x446fd3[_0x299116];return _0x22e1c2;}export const OUTPUT_FORMAT_VALUES=[a73_0x1542d5(0x19c),a73_0x1542d5(0x1a4),a73_0x1542d5(0x1a2)];
@@ -1 +1 @@
1
- function a74_0x247e(_0x531147,_0x37169d){_0x531147=_0x531147-0x6c;const _0x623628=a74_0x6236();let _0x247eae=_0x623628[_0x531147];return _0x247eae;}const a74_0x533cd4=a74_0x247e;(function(_0x2890e5,_0x583937){const _0x25e961=a74_0x247e,_0x4c4b5c=_0x2890e5();while(!![]){try{const _0x348ea2=-parseInt(_0x25e961(0x86))/0x1*(-parseInt(_0x25e961(0x7e))/0x2)+-parseInt(_0x25e961(0x72))/0x3*(parseInt(_0x25e961(0x78))/0x4)+parseInt(_0x25e961(0x7a))/0x5+parseInt(_0x25e961(0x71))/0x6*(-parseInt(_0x25e961(0x6c))/0x7)+-parseInt(_0x25e961(0x73))/0x8+parseInt(_0x25e961(0x6e))/0x9*(-parseInt(_0x25e961(0x7b))/0xa)+-parseInt(_0x25e961(0x82))/0xb*(-parseInt(_0x25e961(0x6f))/0xc);if(_0x348ea2===_0x583937)break;else _0x4c4b5c['push'](_0x4c4b5c['shift']());}catch(_0x3e4244){_0x4c4b5c['push'](_0x4c4b5c['shift']());}}}(a74_0x6236,0x499d7));function a74_0x6236(){const _0x5cc2ba=['RABETBASE','1352232PaWfFE','75PrWgRz','446752LvXjRi','https://user-daily.lovrabet.com','https://user.lovrabet.com','lovrabet','.lovrabet-runtime.log','14860dgTlgP','map','2303895QzVPHc','80XbKJzD','https://runtime.lovrabet.com','https://daily-runtime.lovrabet.com','27422QRUAgK','LOVRABET','envPrefix','/user/ak','1292126mQjoZt','https://api.lovrabet.com','.lovrabet.json','git@codeup.aliyun.com:yuntoo/open/lovrabet-runtime-cli.git','3oTQqOV','cli:lovrabet-runtime','Lovrabet\x20Runtime\x20CLI','14pZeMJm','https://registry.npmjs.org','476082VgUIFX','84NxQvPu'];a74_0x6236=function(){return _0x5cc2ba;};return a74_0x6236();}export const PRODUCT_CONFIG={'cliBinName':a74_0x533cd4(0x76),'cliDisplayName':a74_0x533cd4(0x88),'npmPackageName':'@lovrabet/lovrabet-cli','skillSource':'lovrabet/lovrabet-cli','internalSkillSource':a74_0x533cd4(0x85),'globalSkillName':a74_0x533cd4(0x76),'npmRegistryBaseUrl':a74_0x533cd4(0x6d),'envPrefix':a74_0x533cd4(0x7f),'legacyEnvPrefixes':[a74_0x533cd4(0x70)],'configFileNames':[a74_0x533cd4(0x84),'.lovrabetrc'],'newConfigFileName':'.lovrabet.json','homeDirName':'.lovrabet','logFileName':a74_0x533cd4(0x77),'invokeSource':a74_0x533cd4(0x87),'userCenterDisplayName':'Lovrabet\x20User\x20Center','skipNpxSkillsEnvSuffix':'SKIP_NPX_SKILLS','domains':{'production':{'user':a74_0x533cd4(0x75),'api':a74_0x533cd4(0x83),'runtime':a74_0x533cd4(0x7c),'skillhub':'https://skills.lovrabet.com'},'nonProduction':{'user':a74_0x533cd4(0x74),'api':'https://daily-api.lovrabet.com','runtime':a74_0x533cd4(0x7d),'skillhub':'https://skills-daily.lovrabet.com'}},'accessKeyCreatePath':a74_0x533cd4(0x81)};export function productEnvName(_0x556fc3){const _0x37bbd1=a74_0x533cd4;return PRODUCT_CONFIG[_0x37bbd1(0x80)]+'_'+_0x556fc3;}export function productEnvNames(_0x2457e4){const _0x312c7d=a74_0x533cd4;return[productEnvName(_0x2457e4),...PRODUCT_CONFIG['legacyEnvPrefixes'][_0x312c7d(0x79)](_0x2a1dca=>_0x2a1dca+'_'+_0x2457e4)];}export function productEnv(_0x41e02f){for(const _0x5e4cd6 of productEnvNames(_0x41e02f)){const _0x12af70=process.env[_0x5e4cd6];if(_0x12af70!==undefined)return _0x12af70;}return undefined;}
1
+ const a74_0x5f068f=a74_0x2d47;(function(_0x3a95d7,_0x24fb23){const _0x246f51=a74_0x2d47,_0x5e6379=_0x3a95d7();while(!![]){try{const _0x5aee26=-parseInt(_0x246f51(0x1aa))/0x1*(-parseInt(_0x246f51(0x1b1))/0x2)+-parseInt(_0x246f51(0x1b8))/0x3+-parseInt(_0x246f51(0x1ba))/0x4*(parseInt(_0x246f51(0x1a4))/0x5)+-parseInt(_0x246f51(0x1b7))/0x6*(-parseInt(_0x246f51(0x1b5))/0x7)+-parseInt(_0x246f51(0x1b2))/0x8*(-parseInt(_0x246f51(0x1b9))/0x9)+parseInt(_0x246f51(0x1b4))/0xa*(parseInt(_0x246f51(0x1ab))/0xb)+-parseInt(_0x246f51(0x1b6))/0xc;if(_0x5aee26===_0x24fb23)break;else _0x5e6379['push'](_0x5e6379['shift']());}catch(_0x58ac84){_0x5e6379['push'](_0x5e6379['shift']());}}}(a74_0x4f3d,0x3a306));export const PRODUCT_CONFIG={'cliBinName':'lovrabet','cliDisplayName':'Lovrabet\x20Runtime\x20CLI','npmPackageName':'@lovrabet/lovrabet-cli','skillSource':a74_0x5f068f(0x1b3),'internalSkillSource':a74_0x5f068f(0x1ac),'globalSkillName':'lovrabet','npmRegistryBaseUrl':a74_0x5f068f(0x1a3),'envPrefix':'LOVRABET','legacyEnvPrefixes':['RABETBASE'],'configFileNames':[a74_0x5f068f(0x1a7),'.lovrabetrc'],'newConfigFileName':a74_0x5f068f(0x1a7),'homeDirName':'.lovrabet','logFileName':a74_0x5f068f(0x1af),'invokeSource':a74_0x5f068f(0x1bb),'userCenterDisplayName':a74_0x5f068f(0x1bc),'skipNpxSkillsEnvSuffix':a74_0x5f068f(0x1ae),'domains':{'production':{'user':'https://user.lovrabet.com','api':a74_0x5f068f(0x1a6),'runtime':a74_0x5f068f(0x1a5),'skillhub':a74_0x5f068f(0x1b0)},'nonProduction':{'user':a74_0x5f068f(0x1a9),'api':a74_0x5f068f(0x1a2),'runtime':a74_0x5f068f(0x1ad),'skillhub':'https://skills-daily.lovrabet.com'}},'accessKeyCreatePath':a74_0x5f068f(0x1a1)};export function productEnvName(_0x12b884){return PRODUCT_CONFIG['envPrefix']+'_'+_0x12b884;}function a74_0x2d47(_0x2e0a3d,_0x5ea361){_0x2e0a3d=_0x2e0a3d-0x1a0;const _0x4f3d83=a74_0x4f3d();let _0x2d4781=_0x4f3d83[_0x2e0a3d];return _0x2d4781;}export function productEnvNames(_0x5cc4ba){const _0xaa1333=a74_0x5f068f;return[productEnvName(_0x5cc4ba),...PRODUCT_CONFIG[_0xaa1333(0x1a8)][_0xaa1333(0x1a0)](_0x7cdbd7=>_0x7cdbd7+'_'+_0x5cc4ba)];}export function productEnv(_0x2af715){for(const _0x477dc7 of productEnvNames(_0x2af715)){const _0x4f3652=process.env[_0x477dc7];if(_0x4f3652!==undefined)return _0x4f3652;}return undefined;}function a74_0x4f3d(){const _0x1b285e=['legacyEnvPrefixes','https://user-daily.lovrabet.com','3QpGqOd','11dFwKXY','git@codeup.aliyun.com:yuntoo/open/lovrabet-runtime-cli.git','https://daily-runtime.lovrabet.com','SKIP_NPX_SKILLS','.lovrabet-runtime.log','https://skills.lovrabet.com','139484UuEqAm','16PRfokX','lovrabet/lovrabet-cli','3633030WwlQBf','66087JwiqkR','5960904qeHuXc','186zncZmL','122181NYfLwP','977823etkjuw','94364gUdpfl','cli:lovrabet-runtime','Lovrabet\x20User\x20Center','map','/user/ak','https://daily-api.lovrabet.com','https://registry.npmjs.org','65yxAcpE','https://runtime.lovrabet.com','https://api.lovrabet.com','.lovrabet.json'];a74_0x4f3d=function(){return _0x1b285e;};return a74_0x4f3d();}
@@ -1 +1 @@
1
- function a75_0x2bd0(){const _0x5072e1=['42VILQwX','1018iLTWKR','14012120AMGrue','430YmWvlt','write','5823EBycNx','302600xofLRl','1374149DULiBE','31716223CBQdBf','high-risk-write','1960368SaFRjD','54588sGElcX','189WqdJTn'];a75_0x2bd0=function(){return _0x5072e1;};return a75_0x2bd0();}const a75_0x55bf28=a75_0x2e2c;function a75_0x2e2c(_0x2e996e,_0x5baa29){_0x2e996e=_0x2e996e-0x120;const _0x2bd051=a75_0x2bd0();let _0x2e2cd6=_0x2bd051[_0x2e996e];return _0x2e2cd6;}(function(_0x2d1276,_0x3b4a08){const _0x35228a=a75_0x2e2c,_0x4be16d=_0x2d1276();while(!![]){try{const _0x5381ff=parseInt(_0x35228a(0x127))/0x1+-parseInt(_0x35228a(0x12b))/0x2*(-parseInt(_0x35228a(0x122))/0x3)+parseInt(_0x35228a(0x128))/0x4*(parseInt(_0x35228a(0x120))/0x5)+parseInt(_0x35228a(0x12a))/0x6*(-parseInt(_0x35228a(0x124))/0x7)+parseInt(_0x35228a(0x12c))/0x8+parseInt(_0x35228a(0x129))/0x9*(-parseInt(_0x35228a(0x123))/0xa)+-parseInt(_0x35228a(0x125))/0xb;if(_0x5381ff===_0x3b4a08)break;else _0x4be16d['push'](_0x4be16d['shift']());}catch(_0x5a1a75){_0x4be16d['push'](_0x4be16d['shift']());}}}(a75_0x2bd0,0xef670));export const RISK_LEVEL_VALUES=['read',a75_0x55bf28(0x121),a75_0x55bf28(0x126)];
1
+ function a75_0x4d39(_0x5a3d6c,_0x1e0265){_0x5a3d6c=_0x5a3d6c-0x1ea;const _0x34667a=a75_0x3466();let _0x4d399f=_0x34667a[_0x5a3d6c];return _0x4d399f;}function a75_0x3466(){const _0x257c6c=['7983840tJaZBg','220548jJMGKc','20fWYMDY','write','10WQeKhg','2287884rYnbip','449728lzXtTU','1680705oEyVtm','13120gxgZLZ','37312TiMfxs','7qzkPiK'];a75_0x3466=function(){return _0x257c6c;};return a75_0x3466();}const a75_0x2890e0=a75_0x4d39;(function(_0x5e0adc,_0x48c563){const _0x4cbed7=a75_0x4d39,_0x50ecee=_0x5e0adc();while(!![]){try{const _0x7ffcc1=parseInt(_0x4cbed7(0x1f1))/0x1+parseInt(_0x4cbed7(0x1ec))/0x2*(parseInt(_0x4cbed7(0x1f4))/0x3)+parseInt(_0x4cbed7(0x1ee))/0x4*(parseInt(_0x4cbed7(0x1ea))/0x5)+parseInt(_0x4cbed7(0x1ed))/0x6+-parseInt(_0x4cbed7(0x1f2))/0x7*(-parseInt(_0x4cbed7(0x1f0))/0x8)+-parseInt(_0x4cbed7(0x1ef))/0x9+-parseInt(_0x4cbed7(0x1f3))/0xa;if(_0x7ffcc1===_0x48c563)break;else _0x50ecee['push'](_0x50ecee['shift']());}catch(_0x4826a3){_0x50ecee['push'](_0x50ecee['shift']());}}}(a75_0x3466,0x3da1d));export const RISK_LEVEL_VALUES=['read',a75_0x2890e0(0x1eb),'high-risk-write'];
@@ -1 +1 @@
1
- const a76_0x11ecd2=a76_0x2fff;function a76_0x2fff(_0x2ace68,_0x26d4b7){_0x2ace68=_0x2ace68-0x191;const _0x274113=a76_0x2741();let _0x2fff68=_0x274113[_0x2ace68];return _0x2fff68;}(function(_0x191fb8,_0x133481){const _0x22be34=a76_0x2fff,_0x557838=_0x191fb8();while(!![]){try{const _0x5a2779=-parseInt(_0x22be34(0x19d))/0x1*(parseInt(_0x22be34(0x191))/0x2)+parseInt(_0x22be34(0x197))/0x3*(-parseInt(_0x22be34(0x1a0))/0x4)+-parseInt(_0x22be34(0x19e))/0x5*(parseInt(_0x22be34(0x193))/0x6)+-parseInt(_0x22be34(0x19b))/0x7+parseInt(_0x22be34(0x199))/0x8+-parseInt(_0x22be34(0x19f))/0x9*(parseInt(_0x22be34(0x198))/0xa)+-parseInt(_0x22be34(0x195))/0xb*(-parseInt(_0x22be34(0x19c))/0xc);if(_0x5a2779===_0x133481)break;else _0x557838['push'](_0x557838['shift']());}catch(_0x17b9c7){_0x557838['push'](_0x557838['shift']());}}}(a76_0x2741,0x3abdb));import{PRODUCT_CONFIG}from'../constant/product.js';function a76_0x2741(){const _0x1de26e=['domains','258jIFaWK','user','69883phMExy','production','3XBzzcD','27660wZZaTe','3121424kgKfXu','accessKeyCreatePath','1997793kSxcqT','1776hfrEwl','3833bUcYkw','15395QPblHu','666JFCFLe','1056760uGYWtl','106TUcAIw'];a76_0x2741=function(){return _0x1de26e;};return a76_0x2741();}export const USER_ACCESS_KEY_CREATE_URL=''+PRODUCT_CONFIG[a76_0x11ecd2(0x192)][a76_0x11ecd2(0x196)][a76_0x11ecd2(0x194)]+PRODUCT_CONFIG[a76_0x11ecd2(0x19a)];
1
+ const a76_0x39956d=a76_0x4836;(function(_0x382f6c,_0x4d6d6e){const _0x5284de=a76_0x4836,_0x59b678=_0x382f6c();while(!![]){try{const _0x48b32f=parseInt(_0x5284de(0x95))/0x1*(-parseInt(_0x5284de(0x9b))/0x2)+-parseInt(_0x5284de(0x97))/0x3+-parseInt(_0x5284de(0x92))/0x4*(parseInt(_0x5284de(0x9e))/0x5)+-parseInt(_0x5284de(0x99))/0x6+-parseInt(_0x5284de(0x9a))/0x7*(parseInt(_0x5284de(0x96))/0x8)+-parseInt(_0x5284de(0x98))/0x9*(parseInt(_0x5284de(0x93))/0xa)+parseInt(_0x5284de(0x9f))/0xb*(parseInt(_0x5284de(0x9c))/0xc);if(_0x48b32f===_0x4d6d6e)break;else _0x59b678['push'](_0x59b678['shift']());}catch(_0x291c54){_0x59b678['push'](_0x59b678['shift']());}}}(a76_0x273b,0x4818f));function a76_0x273b(){const _0x2df408=['480wiJZNn','user','10KXhdfb','492096UEISnD','accessKeyCreatePath','domains','203284Swzgyy','70RHszxD','production','119XpaPLJ','8lonAyC','1284234gnFlMB','590346mXyqBw','1567278eKrCQI','1202635XWFceR','1214WKqlhy'];a76_0x273b=function(){return _0x2df408;};return a76_0x273b();}import{PRODUCT_CONFIG}from'../constant/product.js';function a76_0x4836(_0x2fcc10,_0x4609d8){_0x2fcc10=_0x2fcc10-0x90;const _0x273bc5=a76_0x273b();let _0x48361c=_0x273bc5[_0x2fcc10];return _0x48361c;}export const USER_ACCESS_KEY_CREATE_URL=''+PRODUCT_CONFIG[a76_0x39956d(0x91)][a76_0x39956d(0x94)][a76_0x39956d(0x9d)]+PRODUCT_CONFIG[a76_0x39956d(0x90)];
package/lib/context.js CHANGED
@@ -1 +1 @@
1
- const a77_0x56e95f=a77_0x1ce2;(function(_0x5351f0,_0x24fe41){const _0x5bdd1c=a77_0x1ce2,_0x5657fc=_0x5351f0();while(!![]){try{const _0xa5523c=-parseInt(_0x5bdd1c(0x10a))/0x1*(-parseInt(_0x5bdd1c(0x109))/0x2)+parseInt(_0x5bdd1c(0x10b))/0x3*(-parseInt(_0x5bdd1c(0x126))/0x4)+-parseInt(_0x5bdd1c(0x12e))/0x5+parseInt(_0x5bdd1c(0xf2))/0x6+-parseInt(_0x5bdd1c(0x11e))/0x7+parseInt(_0x5bdd1c(0x11f))/0x8+parseInt(_0x5bdd1c(0x112))/0x9;if(_0xa5523c===_0x24fe41)break;else _0x5657fc['push'](_0x5657fc['shift']());}catch(_0x2af89c){_0x5657fc['push'](_0x5657fc['shift']());}}}(a77_0x1c12,0xe5b62));import{readFileSync,existsSync,mkdirSync,renameSync,unlinkSync,writeFileSync}from'node:fs';function a77_0x1c12(){const _0x1381e9=['PAGE_SIZE','6646692hmONFS','setRawMode','setRawCommand','development','.tmp','riskLevel','isRaw','code','ACCESS_KEY','global','locale','production','maxRisk','stringify','slice','apiDomain','true','nonInteractive','string','raw','APP','trim','userDomain','546628SdjIMv','1NTEwTg','5433OGvaOC','apps','EXDEV','missing','parse','online','isTTY','17683353hwtPGH','values','defaultApp','skillHubDomain','env','projectConfig','app','argv','top-level','error','empty','read','10086013ptKLFS','6579448cIZlck','join','pageSize','object','FORMAT','VERBOSE','inherit','892mWkVvn','cache','stdin','EACCES','./constant/domain.js','globalConfig','utf8','newConfigFileName','6913670NmAHRy','cwd','some','accessKey','local-alias','project','appcode','format','explicit','daily','runtimeDomain','configFileNames'];a77_0x1c12=function(){return _0x1381e9;};return a77_0x1c12();}import{resolve,dirname}from'node:path';import{homedir}from'node:os';import{logger}from'./utils/logger.js';import{CliErrors}from'./errors.js';import{CLI_BIN_NAME}from'./constant/cli.js';import{PRODUCT_CONFIG,productEnv,productEnvNames}from'./constant/product.js';import{DEFAULT_CONFIG_VALUES}from'./constant/defaults.js';import{normalizeEnv,isDaily,isDev}from'./constant/env.js';import{normalizeLegacyOutputFormat}from'./framework/types.js';import{resolveCachedAppCode}from'./commands/app/cache.js';export{AUTH_MODE,isAuthMode}from'./constant/auth-mode.js';const CONFIG_NAMES=PRODUCT_CONFIG[a77_0x56e95f(0x139)];export const NEW_CONFIG_NAME=PRODUCT_CONFIG[a77_0x56e95f(0x12d)];function resolveConfigPath(_0x4d2fe3){for(const _0xffd025 of CONFIG_NAMES){const _0x575bac=resolve(_0x4d2fe3,_0xffd025);if(existsSync(_0x575bac))return _0x575bac;}return undefined;}export function resolveWriteConfigPath(_0x5856d0){const _0x24e411=a77_0x56e95f,_0x226f74=_0x5856d0===_0x24e411(0x133)?process['cwd']():homedir(),_0x3a0176=resolveConfigPath(_0x226f74);return _0x3a0176??resolve(_0x226f74,NEW_CONFIG_NAME);}export function readConfigFile(_0x600282){const _0x5da2f9=a77_0x56e95f;try{if(existsSync(_0x600282)){const _0x21587a=readFileSync(_0x600282,{'encoding':_0x5da2f9(0x12c)});if(_0x21587a){const _0x5971dd=JSON[_0x5da2f9(0x10f)](_0x21587a);return migrateOnlineEnv(_0x600282,_0x5971dd),_0x5971dd;}}}catch{}return{};}function migrateOnlineEnv(_0x4413e9,_0x21c4b9){const _0x2c99c1=a77_0x56e95f;let _0x3e4d9b=![];_0x21c4b9[_0x2c99c1(0x116)]==='online'&&(_0x21c4b9[_0x2c99c1(0x116)]=_0x2c99c1(0xfd),_0x3e4d9b=!![]);if(_0x21c4b9['apps']&&typeof _0x21c4b9[_0x2c99c1(0x10c)]===_0x2c99c1(0x122))for(const _0x1d5131 of Object[_0x2c99c1(0x113)](_0x21c4b9['apps'])){_0x1d5131&&_0x1d5131['env']===_0x2c99c1(0x110)&&(_0x1d5131[_0x2c99c1(0x116)]=_0x2c99c1(0xfd),_0x3e4d9b=!![]);}if(_0x3e4d9b)try{writeConfigFile(_0x4413e9,_0x21c4b9);}catch{}}export function writeConfigFile(_0x3aed56,_0x4b5722){const _0x2279aa=a77_0x56e95f,_0x28783a=dirname(_0x3aed56);!existsSync(_0x28783a)&&mkdirSync(_0x28783a,{'recursive':!![]});const _0xf1a298=_0x3aed56+_0x2279aa(0xf6);try{writeFileSync(_0xf1a298,JSON[_0x2279aa(0xff)](_0x4b5722,null,0x2)+'\x0a',{'encoding':_0x2279aa(0x12c),'mode':0x180});try{renameSync(_0xf1a298,_0x3aed56);}catch(_0x222371){if(_0x222371[_0x2279aa(0xf9)]==='EPERM'||_0x222371[_0x2279aa(0xf9)]===_0x2279aa(0x10d)||_0x222371['code']===_0x2279aa(0x129)){writeFileSync(_0x3aed56,JSON[_0x2279aa(0xff)](_0x4b5722,null,0x2)+'\x0a',{'encoding':_0x2279aa(0x12c)});try{unlinkSync(_0xf1a298);}catch{}}else throw _0x222371;}}catch(_0x53c70c){try{unlinkSync(_0xf1a298);}catch{}throw _0x53c70c;}}export function isNonInteractiveMode(_0x218ce3){const _0x74c22e=a77_0x56e95f;return!!(_0x218ce3[_0x74c22e(0x103)]||_0x218ce3['ci']||productEnvNames('CI')[_0x74c22e(0x130)](_0x435bfe=>process.env[_0x435bfe]===_0x74c22e(0x102))||process.env.CI===_0x74c22e(0x102)||!process['stdout'][_0x74c22e(0x111)]||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0xf478ca=a77_0x56e95f;if(!process[_0xf478ca(0x128)][_0xf478ca(0x111)])return![];try{const _0x50c3a4=process[_0xf478ca(0x128)][_0xf478ca(0xf8)];return process[_0xf478ca(0x128)][_0xf478ca(0xf3)](!![]),process[_0xf478ca(0x128)]['setRawMode'](_0x50c3a4??![]),!![];}catch{return![];}}function a77_0x1ce2(_0x3d21e9,_0x92f3c){_0x3d21e9=_0x3d21e9-0xf2;const _0x1c1208=a77_0x1c12();let _0x1ce2e8=_0x1c1208[_0x3d21e9];return _0x1ce2e8;}export async function createContext(_0x241c78){const _0x3f6115=a77_0x56e95f,_0x58f1b6=readRawConfig(),_0x5588c4=buildConfig(_0x58f1b6,_0x241c78);await initGlobalEnvironment(_0x5588c4);const {getUserDomain:_0x5e2662,getApiDomain:_0x1a47e8}=await import(_0x3f6115(0x12a)),_0x3ef61e={'apiDomain':_0x1a47e8(),'userDomain':_0x5e2662()},_0x23a1f4=await buildAuth(_0x5588c4);logger['setLogPath'](process[_0x3f6115(0x12f)]());const _0x433466=(CLI_BIN_NAME+'\x20'+process[_0x3f6115(0x119)][_0x3f6115(0x100)](0x2)[_0x3f6115(0x120)]('\x20'))[_0x3f6115(0x107)]();logger[_0x3f6115(0xf4)](_0x433466);const _0x4498fd=isNonInteractiveMode(_0x241c78);return{'config':_0x5588c4,'auth':_0x23a1f4,'logger':logger,'env':_0x3ef61e,'nonInteractive':_0x4498fd};}export function buildConfigFromFlags(_0x5e3caa){return buildConfig(readRawConfig(),_0x5e3caa);}export function getLocalAppAliases(_0x9327fc){const _0x441151=a77_0x56e95f;return _0x9327fc[_0x441151(0x10c)]&&typeof _0x9327fc['apps']===_0x441151(0x122)?_0x9327fc[_0x441151(0x10c)]:{};}export function resolveLocalAppAliasCode(_0x42d826,_0x39cb12){const _0xc5232=a77_0x56e95f;if(!_0x39cb12)return undefined;const _0x21f6e1=getLocalAppAliases(_0x42d826)[_0x39cb12],_0x236721=_0x21f6e1?.[_0xc5232(0x134)];return typeof _0x236721==='string'&&_0x236721[_0xc5232(0x107)]()?_0x236721[_0xc5232(0x107)]():undefined;}export function readAppCodeFromConfig(){const _0x167f09=a77_0x56e95f,_0x544728=readRawConfig(),_0x37b1ab=_0x544728[_0x167f09(0x134)]??_0x544728[_0x167f09(0x118)];if(typeof _0x37b1ab===_0x167f09(0x104)&&_0x37b1ab[_0x167f09(0x107)]())return _0x37b1ab['trim']();const _0x2e9fc1=resolveLocalAppAliasCode(_0x544728,typeof _0x544728[_0x167f09(0x114)]==='string'?_0x544728['defaultApp']:undefined);if(_0x2e9fc1)return _0x2e9fc1;const _0x2379cd=normalizeEnv(String(_0x544728[_0x167f09(0x116)]||_0x167f09(0xfd))),_0x34c1f3=isDaily(_0x2379cd)?_0x167f09(0x137):isDev(_0x2379cd)?_0x167f09(0xf5):_0x167f09(0xfd),_0x7f86f9=resolveCachedAppCode(typeof _0x544728[_0x167f09(0x114)]===_0x167f09(0x104)?_0x544728[_0x167f09(0x114)]:undefined,_0x34c1f3,typeof _0x544728['accessKey']===_0x167f09(0x104)?_0x544728[_0x167f09(0x131)]:undefined);if(_0x7f86f9)return _0x7f86f9;const _0x1b5bfe=Object[_0x167f09(0x113)](getLocalAppAliases(_0x544728))['find'](_0x2ec47f=>_0x2ec47f?.[_0x167f09(0x134)]);return typeof _0x1b5bfe?.[_0x167f09(0x134)]===_0x167f09(0x104)&&_0x1b5bfe[_0x167f09(0x134)]['trim']()?_0x1b5bfe[_0x167f09(0x134)][_0x167f09(0x107)]():undefined;}export function readScopedConfig(_0xe6029){const _0x143f7b=_0xe6029['global']?'global':'project';return readConfigFile(resolveWriteConfigPath(_0x143f7b));}export function writeScopedConfig(_0x154807,_0x30b187){const _0x30601d=a77_0x56e95f,_0x392a23=_0x30b187[_0x30601d(0xfb)]?'global':_0x30601d(0x133);writeConfigFile(resolveWriteConfigPath(_0x392a23),_0x154807);}export async function initGlobalEnvironment(_0x3288ef){const _0x5b767f=a77_0x56e95f,{initEnv:_0x5884aa}=await import('./constant/env.js');_0x5884aa(_0x3288ef[_0x5b767f(0x116)]);const {initDomains:_0x3b43b4}=await import(_0x5b767f(0x12a));_0x3b43b4({'apiDomain':_0x3288ef['raw'][_0x5b767f(0x101)]||_0x3288ef['raw']['host']||undefined,'userDomain':_0x3288ef[_0x5b767f(0x105)][_0x5b767f(0x108)]||undefined,'runtimeDomain':_0x3288ef[_0x5b767f(0x105)][_0x5b767f(0x138)]||undefined,'skillHubDomain':_0x3288ef[_0x5b767f(0x105)][_0x5b767f(0x115)]||undefined});}export function getProjectConfigPath(){const _0x3662dc=a77_0x56e95f;return resolveConfigPath(process[_0x3662dc(0x12f)]());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function inspectCliConfigJsonFile(_0x266914){const _0x164d33=a77_0x56e95f;if(!existsSync(_0x266914))return{'status':_0x164d33(0x10e)};try{const _0x144371=readFileSync(_0x266914,{'encoding':_0x164d33(0x12c)});if(!_0x144371?.[_0x164d33(0x107)]())return{'status':_0x164d33(0x11c)};const _0xccdd13=JSON[_0x164d33(0x10f)](_0x144371);return{'status':'ok','data':_0xccdd13};}catch(_0x16c364){return{'status':_0x164d33(0x11b),'message':_0x16c364 instanceof Error?_0x16c364['message']:String(_0x16c364)};}}export function loadRawConfigLayers(_0x5f0dfb){const _0x9e7fac=a77_0x56e95f;let _0x4c6d3a={},_0x412662={},_0x319821,_0x5ef336;try{_0x319821=resolveConfigPath(homedir());if(_0x319821){const _0x351941=readFileSync(_0x319821,{'encoding':_0x9e7fac(0x12c)});if(_0x351941)_0x4c6d3a=JSON[_0x9e7fac(0x10f)](_0x351941);}}catch{}try{const _0x1b86db=_0x5f0dfb||process[_0x9e7fac(0x12f)]();_0x5ef336=resolveConfigPath(_0x1b86db);if(_0x5ef336){const _0x7b8147=readFileSync(_0x5ef336,{'encoding':_0x9e7fac(0x12c)});if(_0x7b8147)_0x412662=JSON['parse'](_0x7b8147);}}catch{}return{'globalPath':_0x319821,'projectPath':_0x5ef336,'globalConfig':_0x4c6d3a,'projectConfig':_0x412662};}function mergeRawConfigLayers(_0x1cf10d){const _0x324ce5=a77_0x56e95f,{globalConfig:_0x14c750,projectConfig:_0x414872}=_0x1cf10d;if(_0x414872[_0x324ce5(0x125)]===![]){const _0x44eedb={..._0x414872};return delete _0x44eedb[_0x324ce5(0x125)],_0x44eedb;}const _0x12cb74={..._0x14c750,..._0x414872};if(_0x324ce5(0x114)in _0x414872)_0x12cb74[_0x324ce5(0x114)]=_0x414872['defaultApp'];else _0x14c750[_0x324ce5(0x114)]&&(_0x12cb74['defaultApp']=_0x14c750[_0x324ce5(0x114)]);return _0x12cb74;}export function isInProject(){return!!getProjectConfigPath();}export function readRawConfig(_0x49e6be){return mergeRawConfigLayers(loadRawConfigLayers(_0x49e6be));}export function readRawConfigWithLayers(_0x52acd5){const _0x2d9565=loadRawConfigLayers(_0x52acd5);return{'config':mergeRawConfigLayers(_0x2d9565),'layers':_0x2d9565};}export function resolveDefaultAppSource(_0x3742f1){const _0x325da0=a77_0x56e95f;if('defaultApp'in _0x3742f1[_0x325da0(0x117)])return _0x325da0(0x133);if(_0x3742f1['projectConfig']['inherit']===![])return null;if(_0x3742f1[_0x325da0(0x12b)][_0x325da0(0x114)])return'global';return null;}function buildConfig(_0x4466ee,_0x193bda){const _0x92dcf=a77_0x56e95f,_0x1593de=_0x4466ee['defaultApp']||undefined,_0x41335d=_0x193bda[_0x92dcf(0x118)]||env(_0x92dcf(0x106))||undefined,_0x3cead0=_0x41335d||_0x1593de||undefined,_0x1217cf=env(_0x92dcf(0xfa))||_0x4466ee[_0x92dcf(0x131)]||undefined,_0x3d24e6=_0x193bda['env']||env('ENV')||_0x4466ee[_0x92dcf(0x116)]||DEFAULT_CONFIG_VALUES['env'],_0x37aaf7=normalizeEnv(String(_0x3d24e6)),_0x5460ae=isDaily(_0x37aaf7)?_0x92dcf(0x137):isDev(_0x37aaf7)?'development':_0x92dcf(0xfd),_0x261d11=typeof _0x193bda['appcode']===_0x92dcf(0x104)?_0x193bda[_0x92dcf(0x134)]:undefined,_0x7bd1e0=env('APPCODE'),_0x3cac4b=_0x41335d?undefined:_0x4466ee[_0x92dcf(0x134)]||_0x4466ee['app']||undefined,_0x3cb38f=_0x41335d||(_0x3cac4b?undefined:_0x1593de),_0x53aff3=resolveLocalAppAliasCode(_0x4466ee,_0x3cb38f),_0x617294=resolveCachedAppCode(_0x3cb38f,_0x5460ae,_0x1217cf),_0x2885e2=_0x261d11||_0x7bd1e0||_0x3cac4b||_0x53aff3||_0x617294||undefined,_0x216222=_0x261d11?_0x92dcf(0x136):_0x7bd1e0?_0x92dcf(0x116):_0x3cac4b?_0x92dcf(0x11a):_0x53aff3?_0x92dcf(0x132):_0x617294?_0x92dcf(0x127):undefined,_0x4c521b=_0x4466ee[_0x92dcf(0xfc)]||DEFAULT_CONFIG_VALUES['locale'],_0x3c1d7b=undefined,_0x529e2c=_0x193bda[_0x92dcf(0x135)]||env(_0x92dcf(0x123))||_0x4466ee[_0x92dcf(0x135)],_0x150360=normalizeLegacyOutputFormat(_0x529e2c),_0x1b049a=env(_0x92dcf(0x13a))||_0x4466ee[_0x92dcf(0x121)],_0x4be4ff=_0x1b049a?Number(_0x1b049a)||undefined:undefined,_0x1fe406=_0x4466ee['riskLevel']||_0x4466ee[_0x92dcf(0xfe)],_0x470f07=_0x1fe406===_0x92dcf(0x11d)||_0x1fe406==='write'||_0x1fe406==='high-risk-write'?_0x1fe406:DEFAULT_CONFIG_VALUES[_0x92dcf(0xf7)],_0x11598a=env(_0x92dcf(0x124)),_0x2c65ea=_0x11598a==='1'||_0x11598a===_0x92dcf(0x102);return{'appCode':typeof _0x2885e2==='string'&&_0x2885e2[_0x92dcf(0x107)]()?_0x2885e2[_0x92dcf(0x107)]():undefined,'appCodeSource':_0x216222,'env':_0x5460ae,'locale':_0x4c521b,'cookie':_0x3c1d7b,'accessKey':_0x1217cf,'format':_0x150360,'pageSize':_0x4be4ff,'riskLevel':_0x470f07,'verbose':_0x2c65ea,'defaultApp':_0x1593de,'currentApp':typeof _0x3cead0===_0x92dcf(0x104)?_0x3cead0:undefined,'raw':_0x4466ee};}function env(_0x3c86a8){return productEnv(_0x3c86a8);}async function buildAuth(_0x15329e){const _0x17a0bf='',_0x5f5d2e=!!_0x15329e['accessKey'];return{'cookie':_0x17a0bf,'isLoggedIn':_0x5f5d2e,async 'getOrLogin'(){if(_0x5f5d2e)return _0x17a0bf;throw CliErrors['authRequired']();}};}
1
+ const a77_0x356b1d=a77_0x1b58;(function(_0x27f639,_0x5d44a3){const _0x26d70b=a77_0x1b58,_0x23edc7=_0x27f639();while(!![]){try{const _0x51c035=-parseInt(_0x26d70b(0xc6))/0x1+-parseInt(_0x26d70b(0xe6))/0x2+parseInt(_0x26d70b(0xcb))/0x3*(parseInt(_0x26d70b(0xba))/0x4)+parseInt(_0x26d70b(0xef))/0x5*(parseInt(_0x26d70b(0xbc))/0x6)+parseInt(_0x26d70b(0xd6))/0x7+parseInt(_0x26d70b(0xf3))/0x8+parseInt(_0x26d70b(0xc2))/0x9*(-parseInt(_0x26d70b(0xc1))/0xa);if(_0x51c035===_0x5d44a3)break;else _0x23edc7['push'](_0x23edc7['shift']());}catch(_0x3a91ae){_0x23edc7['push'](_0x23edc7['shift']());}}}(a77_0x1e2d,0xa0bce));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';function a77_0x1b58(_0x425a40,_0x24f811){_0x425a40=_0x425a40-0xb0;const _0x1e2db6=a77_0x1e2d();let _0x1b58ab=_0x1e2db6[_0x425a40];return _0x1b58ab;}import{resolveCachedAppCode}from'./commands/app/cache.js';export{AUTH_MODE,isAuthMode}from'./constant/auth-mode.js';const CONFIG_NAMES=PRODUCT_CONFIG[a77_0x356b1d(0xbe)];export const NEW_CONFIG_NAME=PRODUCT_CONFIG[a77_0x356b1d(0xcf)];function resolveConfigPath(_0x2e72ca){for(const _0x4bafe3 of CONFIG_NAMES){const _0x56efab=resolve(_0x2e72ca,_0x4bafe3);if(existsSync(_0x56efab))return _0x56efab;}return undefined;}export function resolveWriteConfigPath(_0xc5c96){const _0x1ad70b=a77_0x356b1d,_0xf1509d=_0xc5c96===_0x1ad70b(0xde)?process[_0x1ad70b(0xd4)]():homedir(),_0x2b37c6=resolveConfigPath(_0xf1509d);return _0x2b37c6??resolve(_0xf1509d,NEW_CONFIG_NAME);}export function readConfigFile(_0x3e133b){const _0x42f9f8=a77_0x356b1d;try{if(existsSync(_0x3e133b)){const _0x439bf3=readFileSync(_0x3e133b,{'encoding':_0x42f9f8(0xb3)});if(_0x439bf3){const _0x292361=JSON[_0x42f9f8(0xcd)](_0x439bf3);return migrateOnlineEnv(_0x3e133b,_0x292361),_0x292361;}}}catch{}return{};}function migrateOnlineEnv(_0x201c38,_0x46c214){const _0xe99e32=a77_0x356b1d;let _0x29bea8=![];_0x46c214[_0xe99e32(0xbd)]===_0xe99e32(0xd2)&&(_0x46c214[_0xe99e32(0xbd)]=_0xe99e32(0xf7),_0x29bea8=!![]);if(_0x46c214['apps']&&typeof _0x46c214[_0xe99e32(0xd7)]===_0xe99e32(0xd9))for(const _0x4cbb80 of Object[_0xe99e32(0xb1)](_0x46c214['apps'])){_0x4cbb80&&_0x4cbb80[_0xe99e32(0xbd)]===_0xe99e32(0xd2)&&(_0x4cbb80['env']=_0xe99e32(0xf7),_0x29bea8=!![]);}if(_0x29bea8)try{writeConfigFile(_0x201c38,_0x46c214);}catch{}}export function writeConfigFile(_0x2b19ad,_0x51ef26){const _0x129e51=a77_0x356b1d,_0xa7c471=dirname(_0x2b19ad);!existsSync(_0xa7c471)&&mkdirSync(_0xa7c471,{'recursive':!![]});const _0x3f92de=_0x2b19ad+'.tmp';try{writeFileSync(_0x3f92de,JSON[_0x129e51(0xf4)](_0x51ef26,null,0x2)+'\x0a',{'encoding':'utf8','mode':0x180});try{renameSync(_0x3f92de,_0x2b19ad);}catch(_0x2a19fa){if(_0x2a19fa[_0x129e51(0xe5)]===_0x129e51(0xe4)||_0x2a19fa['code']===_0x129e51(0xee)||_0x2a19fa[_0x129e51(0xe5)]==='EACCES'){writeFileSync(_0x2b19ad,JSON['stringify'](_0x51ef26,null,0x2)+'\x0a',{'encoding':_0x129e51(0xb3)});try{unlinkSync(_0x3f92de);}catch{}}else throw _0x2a19fa;}}catch(_0x4d17b1){try{unlinkSync(_0x3f92de);}catch{}throw _0x4d17b1;}}export function isNonInteractiveMode(_0x4ded1b){const _0xf07bf7=a77_0x356b1d;return!!(_0x4ded1b[_0xf07bf7(0xc5)]||_0x4ded1b['ci']||productEnvNames('CI')[_0xf07bf7(0xdb)](_0x336c7=>process.env[_0x336c7]===_0xf07bf7(0xbb))||process.env.CI===_0xf07bf7(0xbb)||!process[_0xf07bf7(0xeb)][_0xf07bf7(0xb4)]||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x29fc83=a77_0x356b1d;if(!process[_0x29fc83(0xc4)][_0x29fc83(0xb4)])return![];try{const _0x2f59de=process['stdin'][_0x29fc83(0xf0)];return process['stdin'][_0x29fc83(0xe0)](!![]),process[_0x29fc83(0xc4)][_0x29fc83(0xe0)](_0x2f59de??![]),!![];}catch{return![];}}export async function createContext(_0x524e64){const _0x51aa0c=a77_0x356b1d,_0x8dd739=readRawConfig(),_0x96d69=buildConfig(_0x8dd739,_0x524e64);await initGlobalEnvironment(_0x96d69);const {getUserDomain:_0x294446,getApiDomain:_0x4168c5}=await import(_0x51aa0c(0xc9)),_0x54367c={'apiDomain':_0x4168c5(),'userDomain':_0x294446()},_0x2a28c7=await buildAuth(_0x96d69);logger[_0x51aa0c(0xec)](process[_0x51aa0c(0xd4)]());const _0x528eed=(CLI_BIN_NAME+'\x20'+process[_0x51aa0c(0xed)][_0x51aa0c(0xea)](0x2)['join']('\x20'))[_0x51aa0c(0xb6)]();logger[_0x51aa0c(0xb8)](_0x528eed);const _0x148d77=isNonInteractiveMode(_0x524e64);return{'config':_0x96d69,'auth':_0x2a28c7,'logger':logger,'env':_0x54367c,'nonInteractive':_0x148d77};}export function buildConfigFromFlags(_0x59b24d){return buildConfig(readRawConfig(),_0x59b24d);}export function getLocalAppAliases(_0x2bdb3f){const _0x4babac=a77_0x356b1d;return _0x2bdb3f[_0x4babac(0xd7)]&&typeof _0x2bdb3f[_0x4babac(0xd7)]===_0x4babac(0xd9)?_0x2bdb3f[_0x4babac(0xd7)]:{};}export function resolveLocalAppAliasCode(_0x24e4ef,_0x728da2){const _0x35c7d6=a77_0x356b1d;if(!_0x728da2)return undefined;const _0x3ea670=getLocalAppAliases(_0x24e4ef)[_0x728da2],_0x301d6e=_0x3ea670?.['appcode'];return typeof _0x301d6e==='string'&&_0x301d6e[_0x35c7d6(0xb6)]()?_0x301d6e[_0x35c7d6(0xb6)]():undefined;}export function readAppCodeFromConfig(){const _0x4ddda6=a77_0x356b1d,_0x19301c=readRawConfig(),_0x1c17bf=_0x19301c[_0x4ddda6(0xf1)]??_0x19301c[_0x4ddda6(0xc8)];if(typeof _0x1c17bf===_0x4ddda6(0xda)&&_0x1c17bf[_0x4ddda6(0xb6)]())return _0x1c17bf['trim']();const _0x105057=resolveLocalAppAliasCode(_0x19301c,typeof _0x19301c[_0x4ddda6(0xe3)]===_0x4ddda6(0xda)?_0x19301c[_0x4ddda6(0xe3)]:undefined);if(_0x105057)return _0x105057;const _0x10ba9f=normalizeEnv(String(_0x19301c[_0x4ddda6(0xbd)]||_0x4ddda6(0xf7))),_0x2ec719=isDaily(_0x10ba9f)?_0x4ddda6(0xf2):isDev(_0x10ba9f)?_0x4ddda6(0xd1):_0x4ddda6(0xf7),_0x458852=resolveCachedAppCode(typeof _0x19301c[_0x4ddda6(0xe3)]===_0x4ddda6(0xda)?_0x19301c[_0x4ddda6(0xe3)]:undefined,_0x2ec719,typeof _0x19301c[_0x4ddda6(0xb7)]===_0x4ddda6(0xda)?_0x19301c[_0x4ddda6(0xb7)]:undefined);if(_0x458852)return _0x458852;const _0x20b216=Object[_0x4ddda6(0xb1)](getLocalAppAliases(_0x19301c))[_0x4ddda6(0xbf)](_0x5b357d=>_0x5b357d?.[_0x4ddda6(0xf1)]);return typeof _0x20b216?.['appcode']==='string'&&_0x20b216[_0x4ddda6(0xf1)][_0x4ddda6(0xb6)]()?_0x20b216[_0x4ddda6(0xf1)][_0x4ddda6(0xb6)]():undefined;}export function readScopedConfig(_0x1f650f){const _0x4f1aa7=_0x1f650f['global']?'global':'project';return readConfigFile(resolveWriteConfigPath(_0x4f1aa7));}export function writeScopedConfig(_0x3b85e6,_0x49730){const _0x5ea178=a77_0x356b1d,_0x7806ff=_0x49730[_0x5ea178(0xd5)]?_0x5ea178(0xd5):'project';writeConfigFile(resolveWriteConfigPath(_0x7806ff),_0x3b85e6);}export async function initGlobalEnvironment(_0x23abb5){const _0x2126f4=a77_0x356b1d,{initEnv:_0x4ed6af}=await import('./constant/env.js');_0x4ed6af(_0x23abb5['env']);const {initDomains:_0x12b5a2}=await import('./constant/domain.js');_0x12b5a2({'apiDomain':_0x23abb5['raw'][_0x2126f4(0xc3)]||_0x23abb5[_0x2126f4(0xcc)][_0x2126f4(0xd3)]||undefined,'userDomain':_0x23abb5[_0x2126f4(0xcc)][_0x2126f4(0xdc)]||undefined,'runtimeDomain':_0x23abb5[_0x2126f4(0xcc)][_0x2126f4(0xdf)]||undefined,'skillHubDomain':_0x23abb5['raw'][_0x2126f4(0xce)]||undefined});}export function getProjectConfigPath(){const _0x3821d9=a77_0x356b1d;return resolveConfigPath(process[_0x3821d9(0xd4)]());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function inspectCliConfigJsonFile(_0x2edc90){const _0x1b4b3f=a77_0x356b1d;if(!existsSync(_0x2edc90))return{'status':_0x1b4b3f(0xe9)};try{const _0x156471=readFileSync(_0x2edc90,{'encoding':_0x1b4b3f(0xb3)});if(!_0x156471?.[_0x1b4b3f(0xb6)]())return{'status':_0x1b4b3f(0xf6)};const _0x3b9b71=JSON[_0x1b4b3f(0xcd)](_0x156471);return{'status':'ok','data':_0x3b9b71};}catch(_0x3436d1){return{'status':_0x1b4b3f(0xb0),'message':_0x3436d1 instanceof Error?_0x3436d1[_0x1b4b3f(0xb9)]:String(_0x3436d1)};}}export function loadRawConfigLayers(_0x1a6879){const _0x26cc1d=a77_0x356b1d;let _0x46ece6={},_0x486152={},_0x5d29b7,_0x1c4ecd;try{_0x5d29b7=resolveConfigPath(homedir());if(_0x5d29b7){const _0x51294e=readFileSync(_0x5d29b7,{'encoding':_0x26cc1d(0xb3)});if(_0x51294e)_0x46ece6=JSON[_0x26cc1d(0xcd)](_0x51294e);}}catch{}try{const _0x5bed3c=_0x1a6879||process['cwd']();_0x1c4ecd=resolveConfigPath(_0x5bed3c);if(_0x1c4ecd){const _0x960d72=readFileSync(_0x1c4ecd,{'encoding':'utf8'});if(_0x960d72)_0x486152=JSON[_0x26cc1d(0xcd)](_0x960d72);}}catch{}return{'globalPath':_0x5d29b7,'projectPath':_0x1c4ecd,'globalConfig':_0x46ece6,'projectConfig':_0x486152};}function mergeRawConfigLayers(_0x4c24ac){const _0xfd712e=a77_0x356b1d,{globalConfig:_0x1dcc24,projectConfig:_0x54ff7e}=_0x4c24ac;if(_0x54ff7e[_0xfd712e(0xe7)]===![]){const _0x398a0b={..._0x54ff7e};return delete _0x398a0b['inherit'],_0x398a0b;}const _0x5aee5c={..._0x1dcc24,..._0x54ff7e};if(_0xfd712e(0xe3)in _0x54ff7e)_0x5aee5c[_0xfd712e(0xe3)]=_0x54ff7e[_0xfd712e(0xe3)];else _0x1dcc24['defaultApp']&&(_0x5aee5c[_0xfd712e(0xe3)]=_0x1dcc24['defaultApp']);return _0x5aee5c;}export function isInProject(){return!!getProjectConfigPath();}export function readRawConfig(_0x49488b){return mergeRawConfigLayers(loadRawConfigLayers(_0x49488b));}function a77_0x1e2d(){const _0x51f3e0=['60OFdpeB','true','7014AjIsOf','env','configFileNames','find','FORMAT','280zIRFKX','181827QNAVWh','apiDomain','stdin','nonInteractive','1195818JRTVcJ','top-level','app','./constant/domain.js','authRequired','158811lzAWBl','raw','parse','skillHubDomain','newConfigFileName','high-risk-write','development','online','host','cwd','global','5410776brQadp','apps','VERBOSE','object','string','some','userDomain','write','project','runtimeDomain','setRawMode','local-alias','projectConfig','defaultApp','EPERM','code','1632518eNjTqa','inherit','format','missing','slice','stdout','setLogPath','argv','EXDEV','4420zIwPyH','isRaw','appcode','daily','5085792sTezIJ','stringify','PAGE_SIZE','empty','production','locale','error','values','riskLevel','utf8','isTTY','ENV','trim','accessKey','setRawCommand','message'];a77_0x1e2d=function(){return _0x51f3e0;};return a77_0x1e2d();}export function readRawConfigWithLayers(_0x548280){const _0x3712c2=loadRawConfigLayers(_0x548280);return{'config':mergeRawConfigLayers(_0x3712c2),'layers':_0x3712c2};}export function resolveDefaultAppSource(_0xb2865d){const _0x5dec03=a77_0x356b1d;if(_0x5dec03(0xe3)in _0xb2865d[_0x5dec03(0xe2)])return _0x5dec03(0xde);if(_0xb2865d[_0x5dec03(0xe2)][_0x5dec03(0xe7)]===![])return null;if(_0xb2865d['globalConfig'][_0x5dec03(0xe3)])return _0x5dec03(0xd5);return null;}function buildConfig(_0x41b1c2,_0x5527ff){const _0x2284c6=a77_0x356b1d,_0x447c9f=_0x41b1c2['defaultApp']||undefined,_0x55fa66=_0x5527ff[_0x2284c6(0xc8)]||env('APP')||undefined,_0x281727=_0x55fa66||_0x447c9f||undefined,_0x59e941=env('ACCESS_KEY')||_0x41b1c2[_0x2284c6(0xb7)]||undefined,_0x23f376=_0x5527ff[_0x2284c6(0xbd)]||env(_0x2284c6(0xb5))||_0x41b1c2[_0x2284c6(0xbd)]||DEFAULT_CONFIG_VALUES[_0x2284c6(0xbd)],_0x11da48=normalizeEnv(String(_0x23f376)),_0x25f93b=isDaily(_0x11da48)?_0x2284c6(0xf2):isDev(_0x11da48)?_0x2284c6(0xd1):_0x2284c6(0xf7),_0x9a4740=typeof _0x5527ff[_0x2284c6(0xf1)]===_0x2284c6(0xda)?_0x5527ff[_0x2284c6(0xf1)]:undefined,_0x596399=env('APPCODE'),_0x34dd89=_0x55fa66?undefined:_0x41b1c2['appcode']||_0x41b1c2[_0x2284c6(0xc8)]||undefined,_0x1720ef=_0x55fa66||(_0x34dd89?undefined:_0x447c9f),_0x36c858=resolveLocalAppAliasCode(_0x41b1c2,_0x1720ef),_0x1dfdba=resolveCachedAppCode(_0x1720ef,_0x25f93b,_0x59e941),_0x1ff5d0=_0x9a4740||_0x596399||_0x34dd89||_0x36c858||_0x1dfdba||undefined,_0x29d6d0=_0x9a4740?'explicit':_0x596399?_0x2284c6(0xbd):_0x34dd89?_0x2284c6(0xc7):_0x36c858?_0x2284c6(0xe1):_0x1dfdba?'cache':undefined,_0x209ca8=_0x41b1c2[_0x2284c6(0xf8)]||DEFAULT_CONFIG_VALUES[_0x2284c6(0xf8)],_0x38303b=undefined,_0x2c7aef=_0x5527ff[_0x2284c6(0xe8)]||env(_0x2284c6(0xc0))||_0x41b1c2[_0x2284c6(0xe8)],_0x81bee7=normalizeLegacyOutputFormat(_0x2c7aef),_0x1c5fd5=env(_0x2284c6(0xf5))||_0x41b1c2['pageSize'],_0x110d4d=_0x1c5fd5?Number(_0x1c5fd5)||undefined:undefined,_0x59a8d6=_0x41b1c2[_0x2284c6(0xb2)]||_0x41b1c2['maxRisk'],_0x206eca=_0x59a8d6==='read'||_0x59a8d6===_0x2284c6(0xdd)||_0x59a8d6===_0x2284c6(0xd0)?_0x59a8d6:DEFAULT_CONFIG_VALUES['riskLevel'],_0x5454f4=env(_0x2284c6(0xd8)),_0x21520a=_0x5454f4==='1'||_0x5454f4===_0x2284c6(0xbb);return{'appCode':typeof _0x1ff5d0===_0x2284c6(0xda)&&_0x1ff5d0[_0x2284c6(0xb6)]()?_0x1ff5d0['trim']():undefined,'appCodeSource':_0x29d6d0,'env':_0x25f93b,'locale':_0x209ca8,'cookie':_0x38303b,'accessKey':_0x59e941,'format':_0x81bee7,'pageSize':_0x110d4d,'riskLevel':_0x206eca,'verbose':_0x21520a,'defaultApp':_0x447c9f,'currentApp':typeof _0x281727===_0x2284c6(0xda)?_0x281727:undefined,'raw':_0x41b1c2};}function env(_0x382f70){return productEnv(_0x382f70);}async function buildAuth(_0x36ef3f){const _0x2abd49=a77_0x356b1d,_0x53ae9d='',_0x4320f5=!!_0x36ef3f[_0x2abd49(0xb7)];return{'cookie':_0x53ae9d,'isLoggedIn':_0x4320f5,async 'getOrLogin'(){const _0x2244d2=_0x2abd49;if(_0x4320f5)return _0x53ae9d;throw CliErrors[_0x2244d2(0xca)]();}};}