@lovrabet/lovrabet-cli 2.2.1-beta.1 → 2.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (136) 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/postinstall.js +1 -1
  103. package/lib/runtime/confirmation.js +1 -1
  104. package/lib/runtime/event.js +1 -1
  105. package/lib/runtime/index.js +1 -1
  106. package/lib/runtime/queue.js +1 -1
  107. package/lib/runtime/resolve.js +1 -1
  108. package/lib/skills/builtin-skill.js +1 -1
  109. package/lib/skills/npx-skills-add.js +1 -1
  110. package/lib/skills/runtime-skill-sync/constants.js +1 -1
  111. package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
  112. package/lib/skills/runtime-skill-sync/hashing.js +1 -1
  113. package/lib/skills/runtime-skill-sync/install-target.js +1 -1
  114. package/lib/skills/runtime-skill-sync/links.js +1 -1
  115. package/lib/skills/runtime-skill-sync/list-local.js +1 -1
  116. package/lib/skills/runtime-skill-sync/local-files.js +1 -1
  117. package/lib/skills/runtime-skill-sync/materialize.js +1 -1
  118. package/lib/skills/runtime-skill-sync/metadata.js +1 -1
  119. package/lib/skills/runtime-skill-sync/paths.js +1 -1
  120. package/lib/skills/runtime-skill-sync/push.js +1 -1
  121. package/lib/skills/runtime-skill-sync/scopes.js +1 -1
  122. package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
  123. package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
  124. package/lib/skills/runtime-skill-sync.js +1 -1
  125. package/lib/skills/skill-presence.js +1 -1
  126. package/lib/utils/apply-jq-filter.js +1 -1
  127. package/lib/utils/logger.js +1 -1
  128. package/lib/utils/lossless-json.js +1 -1
  129. package/lib/utils/params.js +1 -1
  130. package/lib/utils/platform.js +1 -1
  131. package/lib/utils/update-notice.js +1 -1
  132. package/lib/utils/version.js +1 -1
  133. package/lib/utils/write-cli-side-channel.js +1 -1
  134. package/package.json +1 -1
  135. package/skills/lovrabet/SKILL.md +1 -1
  136. package/skills/lovrabet.manifest.json +3 -3
@@ -1 +1 @@
1
- const a64_0x170628=a64_0x40eb;(function(_0x43e721,_0x540521){const _0xf96230=a64_0x40eb,_0x143a37=_0x43e721();while(!![]){try{const _0x554a61=-parseInt(_0xf96230(0x1bc))/0x1*(-parseInt(_0xf96230(0x1ae))/0x2)+parseInt(_0xf96230(0x19f))/0x3+parseInt(_0xf96230(0x1a7))/0x4*(parseInt(_0xf96230(0x1c2))/0x5)+parseInt(_0xf96230(0x1c0))/0x6+parseInt(_0xf96230(0x1b0))/0x7*(-parseInt(_0xf96230(0x1c6))/0x8)+parseInt(_0xf96230(0x1c7))/0x9+-parseInt(_0xf96230(0x1ab))/0xa*(parseInt(_0xf96230(0x1a2))/0xb);if(_0x554a61===_0x540521)break;else _0x143a37['push'](_0x143a37['shift']());}catch(_0x11fbcd){_0x143a37['push'](_0x143a37['shift']());}}}(a64_0x190a,0xcc640));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';function a64_0x40eb(_0x219114,_0xc45908){_0x219114=_0x219114-0x191;const _0x190a31=a64_0x190a();let _0x40eb35=_0x190a31[_0x219114];return _0x40eb35;}const WORKSPACE_USE_FLAGS=[{'name':'app','type':a64_0x170628(0x1cc),'description':'App\x20name\x20to\x20bind\x20as\x20the\x20current\x20workspace\x20default'},{'name':a64_0x170628(0x19d),'type':a64_0x170628(0x1cc),'description':a64_0x170628(0x1ca)},{'name':a64_0x170628(0x1c4),'type':a64_0x170628(0x1cc),'description':a64_0x170628(0x1af),'enum':[...RUNTIME_ENV_VALUES]}];async function executeWorkspaceUse(_0xbc0bfd,_0x158689){const _0x4ea256=a64_0x170628,_0x3e97d1=_0xbc0bfd['str']('app')[_0x4ea256(0x1a0)](),_0x135054=_0xbc0bfd[_0x4ea256(0x1c3)](_0x4ea256(0x19d))['trim'](),_0x4698bc=_0xbc0bfd[_0x4ea256(0x1c3)]('env')[_0x4ea256(0x1a0)](),_0x395f46=resolveWorkspaceEnv(_0x4698bc||_0xbc0bfd[_0x4ea256(0x194)]||DEFAULT_CONFIG_VALUES[_0x4ea256(0x1c4)]);if(!_0x3e97d1&&!_0x135054)throw CliErrors['validation'](_0x4ea256(0x1a5),_0x4ea256(0x1a9)+CLI_BIN_NAME+_0x4ea256(0x1a1)+_0x158689+_0x4ea256(0x1ba)+CLI_BIN_NAME+_0x4ea256(0x1a1)+_0x158689+_0x4ea256(0x1a4));if(_0x3e97d1&&_0x135054)throw CliErrors[_0x4ea256(0x1d1)]('Conflicting\x20workspace\x20app\x20selectors.',_0x4ea256(0x1be));const _0x52658c=resolveWriteConfigPath(_0x4ea256(0x1ce)),_0x48f392=readConfigFile(_0x52658c);assertWorkspaceCommandState(_0x158689,_0x48f392);const _0x51a124=_0x135054||await resolveRemoteAppCode({'command':_0x158689,'appName':_0x3e97d1,'env':_0x395f46,'accessKey':_0xbc0bfd[_0x4ea256(0x1a3)]});return writeWorkspaceConfig({'command':_0x158689,'appName':_0x3e97d1,'appcode':_0x51a124,'env':_0x395f46,'shouldWriteEnv':!!_0x4698bc,'accessKey':_0xbc0bfd[_0x4ea256(0x1a3)]},_0x52658c,_0x48f392),{'ok':!![],'data':{'configPath':_0x52658c,'app':_0x3e97d1||null,'appcode':_0x51a124,'env':_0x4698bc?_0x395f46:null,'accessKeyWritten':![],'command':_0x4ea256(0x1b6)+_0x158689},'message':buildWorkspaceMessage(_0x52658c,_0x3e97d1,_0x51a124,_0x4698bc?_0x395f46:undefined)};}async function resolveRemoteAppCode(_0x2e003c){const _0x121660=a64_0x170628;if(!_0x2e003c['accessKey'])throw CliErrors['authRequired'](_0x121660(0x1bb)+CLI_BIN_NAME+'\x20workspace\x20'+_0x2e003c['command']+'.');const {setActiveAK:_0x188406}=await import('../../core/api-client.js'),{getRemoteAppList:_0x445e2e}=await import(_0x121660(0x196));_0x188406(_0x2e003c[_0x121660(0x1a3)]);const _0x295d90=await _0x445e2e({'env':_0x2e003c[_0x121660(0x1c4)],'accessKey':_0x2e003c[_0x121660(0x1a3)],'noCache':![]}),_0x3f2f46=findAppByName(_0x295d90[_0x121660(0x1aa)],_0x2e003c[_0x121660(0x19b)]);if(_0x3f2f46&&!isRuntimeAccessibleApp(_0x3f2f46))throw runtimeInaccessibleAppError(_0x3f2f46,'\x22'+_0x2e003c[_0x121660(0x19b)]+'\x22');const _0x3b0d16=_0x3f2f46?.[_0x121660(0x19e)]?.[_0x121660(0x1a0)]();if(_0x3b0d16)return _0x3b0d16;const _0x1d6f39=_0x295d90[_0x121660(0x1aa)]['map'](_0x373051=>_0x373051[_0x121660(0x19b)])[_0x121660(0x1b3)](Boolean),_0x2bd40b=_0x1d6f39[_0x121660(0x1b9)]?_0x121660(0x19a)+Array[_0x121660(0x198)](new Set(_0x1d6f39))['join'](',\x20')+'.':'Run\x20`'+CLI_BIN_NAME+_0x121660(0x1cd);throw CliErrors[_0x121660(0x1d1)](_0x121660(0x1b5)+_0x2e003c[_0x121660(0x19b)]+_0x121660(0x192),_0x2bd40b);}function writeWorkspaceConfig(_0x170400,_0x3eae50,_0x7f5c52){const _0x55cf06=a64_0x170628;_0x170400[_0x55cf06(0x1ac)]&&(_0x7f5c52[_0x55cf06(0x1c4)]=_0x170400[_0x55cf06(0x1c4)]);if(_0x170400['appName']){const _0x102b8d=isRecord(_0x7f5c52[_0x55cf06(0x1d2)])?{..._0x7f5c52[_0x55cf06(0x1d2)]}:{},_0x205bd3=isRecord(_0x102b8d[_0x170400[_0x55cf06(0x19b)]])?_0x102b8d[_0x170400[_0x55cf06(0x19b)]]:{};return _0x102b8d[_0x170400[_0x55cf06(0x19b)]]={..._0x205bd3,'appcode':_0x170400['appcode']},_0x7f5c52[_0x55cf06(0x1d2)]=_0x102b8d,_0x7f5c52[_0x55cf06(0x1c9)]=_0x170400[_0x55cf06(0x19b)],delete _0x7f5c52[_0x55cf06(0x19d)],delete _0x7f5c52[_0x55cf06(0x1bd)],writeAndReturn(_0x3eae50,_0x7f5c52);}return _0x7f5c52[_0x55cf06(0x19d)]=_0x170400[_0x55cf06(0x19d)],delete _0x7f5c52['defaultApp'],delete _0x7f5c52[_0x55cf06(0x1bd)],writeAndReturn(_0x3eae50,_0x7f5c52);}function writeAndReturn(_0x511ec3,_0x5259a2){return writeConfigFile(_0x511ec3,_0x5259a2),_0x511ec3;}function resolveWorkspaceEnv(_0x4752d6){const _0x5a83a9=a64_0x170628;if(RUNTIME_ENV_VALUES['includes'](_0x4752d6))return _0x4752d6;throw CliErrors[_0x5a83a9(0x1d1)](_0x5a83a9(0x191)+_0x4752d6+_0x5a83a9(0x195)+RUNTIME_ENV_VALUES[_0x5a83a9(0x1c1)](',\x20'));}function buildWorkspaceMessage(_0x35f596,_0x425284,_0x247560,_0x73d60a){const _0x2b982c=a64_0x170628,_0x28632d=_0x425284?_0x425284+'\x20('+_0x247560+')':_0x247560,_0x963df2=_0x73d60a?_0x2b982c(0x199)+_0x73d60a:'';return _0x2b982c(0x1d0)+_0x35f596+_0x2b982c(0x1c8)+_0x28632d+_0x963df2+_0x2b982c(0x1ad);}function isRecord(_0x2010e6){const _0x2ab0bf=a64_0x170628;return typeof _0x2010e6==='object'&&_0x2010e6!==null&&!Array[_0x2ab0bf(0x1c5)](_0x2010e6);}function hasWorkspaceAppBinding(_0x14ff42){const _0x4c688c=a64_0x170628;if(typeof _0x14ff42[_0x4c688c(0x19d)]==='string'&&_0x14ff42[_0x4c688c(0x19d)][_0x4c688c(0x1a0)]()[_0x4c688c(0x1b9)]>0x0)return!![];if(typeof _0x14ff42[_0x4c688c(0x1c9)]!=='string'||!_0x14ff42['defaultApp'][_0x4c688c(0x1a0)]())return![];if(!isRecord(_0x14ff42[_0x4c688c(0x1d2)]))return![];const _0x55b870=_0x14ff42['apps'][_0x14ff42[_0x4c688c(0x1c9)][_0x4c688c(0x1a0)]()];return isRecord(_0x55b870)&&typeof _0x55b870['appcode']===_0x4c688c(0x1cc)&&_0x55b870[_0x4c688c(0x19d)][_0x4c688c(0x1a0)]()['length']>0x0;}function assertWorkspaceCommandState(_0x4505c7,_0x19ae5a){const _0x54d2fb=a64_0x170628,_0x48b28a=hasWorkspaceAppBinding(_0x19ae5a);if(_0x4505c7===_0x54d2fb(0x1b8)&&_0x48b28a)throw CliErrors[_0x54d2fb(0x1d1)](_0x54d2fb(0x19c),_0x54d2fb(0x1b1)+CLI_BIN_NAME+_0x54d2fb(0x193)+CLI_BIN_NAME+_0x54d2fb(0x197));if(_0x4505c7===_0x54d2fb(0x1a8)&&!_0x48b28a)throw CliErrors[_0x54d2fb(0x1d1)]('Workspace\x20app\x20context\x20is\x20not\x20initialized.',_0x54d2fb(0x1b2)+CLI_BIN_NAME+'\x20workspace\x20init\x20--app\x20<name>`\x20or\x20`'+CLI_BIN_NAME+_0x54d2fb(0x1cb));}function makeWorkspaceCommand(_0xc8956){const _0x186f6f=a64_0x170628;return{'service':'workspace','command':_0xc8956,'description':_0xc8956===_0x186f6f(0x1b8)?_0x186f6f(0x1b7):_0x186f6f(0x1b4),'risk':_0x186f6f(0x1cf),'confirmationDescription':_0xc8956==='init'?_0x186f6f(0x1bf):_0x186f6f(0x1a6),'requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':WORKSPACE_USE_FLAGS,async 'execute'(_0xa99517){return executeWorkspaceUse(_0xa99517,_0xc8956);}};}function a64_0x190a(){const _0x22bb45=['Usage:\x20','items','310xSDSUN','shouldWriteEnv','\x0aAccessKey:\x20not\x20written','62lDkFbF','Target\x20environment','28PvkgHa','Use\x20`','Run\x20`','filter','修改当前工作目录已有绑定的应用上下文','App\x20\x22','workspace\x20','为尚未绑定应用的当前工作目录初始化应用上下文','init','length','\x20--app\x20<name>\x20[--env\x20daily]\x20or\x20','Resolving\x20--app\x20requires\x20accessKey.\x20Pass\x20--appcode\x20directly,\x20or\x20set\x20accessKey\x20before\x20running\x20','46109QhlEOq','app','Pass\x20either\x20--app\x20<name>\x20or\x20--appcode\x20<code>,\x20not\x20both.','将在尚未绑定应用的当前工作目录写入\x20Lovrabet\x20项目配置,并把所选应用设为该目录的默认应用;不会写入\x20AccessKey。','1018860gmDUIK','join','10vqUrHT','str','env','isArray','1946096DkPBTS','6530814Iszrhb','\x0aDefault\x20app:\x20','defaultApp','App\x20code\x20to\x20bind\x20directly','\x20workspace\x20init\x20--appcode\x20<code>`\x20first.','string','\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20pass\x20--appcode\x20directly.','project','write','Workspace\x20configured.\x0aConfig\x20file:\x20','validation','apps','Invalid\x20env\x20\x22','\x22\x20not\x20found.','\x20workspace\x20use\x20--app\x20<name>`\x20or\x20`','envName','\x22.\x20Allowed:\x20','../../commands/app/remote-source.js','\x20workspace\x20use\x20--appcode\x20<code>`\x20to\x20change\x20it.','from','\x0aEnv:\x20','Available\x20apps:\x20','appName','Workspace\x20app\x20context\x20is\x20already\x20initialized.','appcode','appCode','547050RevAiP','trim','\x20workspace\x20','762047gmEgqV','accessKey','\x20--appcode\x20<code>\x20[--env\x20daily]','Missing\x20workspace\x20app\x20selector.','将更新当前工作目录已有的应用绑定,并把所选应用设为该目录的默认应用;不会写入\x20AccessKey。','2901268mdoBjb','use'];a64_0x190a=function(){return _0x22bb45;};return a64_0x190a();}export const workspaceDefinitions=[makeWorkspaceCommand(a64_0x170628(0x1b8)),makeWorkspaceCommand(a64_0x170628(0x1a8))];
1
+ const a64_0x1324f0=a64_0xf145;(function(_0x32aaab,_0x36b5c3){const _0x369ace=a64_0xf145,_0x3dd8ab=_0x32aaab();while(!![]){try{const _0x4cf6e8=-parseInt(_0x369ace(0x184))/0x1*(-parseInt(_0x369ace(0x157))/0x2)+-parseInt(_0x369ace(0x17a))/0x3+parseInt(_0x369ace(0x164))/0x4*(-parseInt(_0x369ace(0x15a))/0x5)+-parseInt(_0x369ace(0x16c))/0x6+-parseInt(_0x369ace(0x18c))/0x7*(parseInt(_0x369ace(0x17f))/0x8)+parseInt(_0x369ace(0x162))/0x9*(parseInt(_0x369ace(0x185))/0xa)+parseInt(_0x369ace(0x166))/0xb*(parseInt(_0x369ace(0x17b))/0xc);if(_0x4cf6e8===_0x36b5c3)break;else _0x3dd8ab['push'](_0x3dd8ab['shift']());}catch(_0x5352fa){_0x3dd8ab['push'](_0x3dd8ab['shift']());}}}(a64_0x3aef,0xf0b4f));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_0x1324f0(0x188),'type':a64_0x1324f0(0x189),'description':'App\x20name\x20to\x20bind\x20as\x20the\x20current\x20workspace\x20default'},{'name':a64_0x1324f0(0x160),'type':a64_0x1324f0(0x189),'description':a64_0x1324f0(0x177)},{'name':a64_0x1324f0(0x16f),'type':a64_0x1324f0(0x189),'description':a64_0x1324f0(0x17e),'enum':[...RUNTIME_ENV_VALUES]}];async function executeWorkspaceUse(_0x251158,_0x4d0b45){const _0x196f6b=a64_0x1324f0,_0x5abb83=_0x251158[_0x196f6b(0x165)]('app')[_0x196f6b(0x17d)](),_0x21e040=_0x251158[_0x196f6b(0x165)](_0x196f6b(0x160))[_0x196f6b(0x17d)](),_0x31cc44=_0x251158[_0x196f6b(0x165)](_0x196f6b(0x16f))[_0x196f6b(0x17d)](),_0x2ecb71=resolveWorkspaceEnv(_0x31cc44||_0x251158[_0x196f6b(0x151)]||DEFAULT_CONFIG_VALUES[_0x196f6b(0x16f)]);if(!_0x5abb83&&!_0x21e040)throw CliErrors['validation']('Missing\x20workspace\x20app\x20selector.',_0x196f6b(0x173)+CLI_BIN_NAME+_0x196f6b(0x16d)+_0x4d0b45+_0x196f6b(0x182)+CLI_BIN_NAME+_0x196f6b(0x16d)+_0x4d0b45+_0x196f6b(0x167));if(_0x5abb83&&_0x21e040)throw CliErrors['validation'](_0x196f6b(0x16b),_0x196f6b(0x18f));const _0x746e26=resolveWriteConfigPath(_0x196f6b(0x175)),_0x23c086=readConfigFile(_0x746e26);assertWorkspaceCommandState(_0x4d0b45,_0x23c086);const _0x2dbc47=_0x21e040||await resolveRemoteAppCode({'command':_0x4d0b45,'appName':_0x5abb83,'env':_0x2ecb71,'accessKey':_0x251158[_0x196f6b(0x163)]});return writeWorkspaceConfig({'command':_0x4d0b45,'appName':_0x5abb83,'appcode':_0x2dbc47,'env':_0x2ecb71,'shouldWriteEnv':!!_0x31cc44,'accessKey':_0x251158[_0x196f6b(0x163)]},_0x746e26,_0x23c086),{'ok':!![],'data':{'configPath':_0x746e26,'app':_0x5abb83||null,'appcode':_0x2dbc47,'env':_0x31cc44?_0x2ecb71:null,'accessKeyWritten':![],'command':'workspace\x20'+_0x4d0b45},'message':buildWorkspaceMessage(_0x746e26,_0x5abb83,_0x2dbc47,_0x31cc44?_0x2ecb71:undefined)};}function a64_0xf145(_0x5d5646,_0x5c080){_0x5d5646=_0x5d5646-0x150;const _0x3aef98=a64_0x3aef();let _0xf1450=_0x3aef98[_0x5d5646];return _0xf1450;}async function resolveRemoteAppCode(_0x15d598){const _0x464c5f=a64_0x1324f0;if(!_0x15d598[_0x464c5f(0x163)])throw CliErrors[_0x464c5f(0x15e)]('Resolving\x20--app\x20requires\x20accessKey.\x20Pass\x20--appcode\x20directly,\x20or\x20set\x20accessKey\x20before\x20running\x20'+CLI_BIN_NAME+'\x20workspace\x20'+_0x15d598[_0x464c5f(0x153)]+'.');const {setActiveAK:_0x321e39}=await import(_0x464c5f(0x190)),{getRemoteAppList:_0x2c5eee}=await import(_0x464c5f(0x179));_0x321e39(_0x15d598[_0x464c5f(0x163)]);const _0x1c6dbe=await _0x2c5eee({'env':_0x15d598[_0x464c5f(0x16f)],'accessKey':_0x15d598[_0x464c5f(0x163)],'noCache':![]}),_0x1dd62d=findAppByName(_0x1c6dbe[_0x464c5f(0x183)],_0x15d598[_0x464c5f(0x15d)]);if(_0x1dd62d&&!isRuntimeAccessibleApp(_0x1dd62d))throw runtimeInaccessibleAppError(_0x1dd62d,'\x22'+_0x15d598['appName']+'\x22');const _0x582afd=_0x1dd62d?.['appCode']?.[_0x464c5f(0x17d)]();if(_0x582afd)return _0x582afd;const _0x296ed3=_0x1c6dbe[_0x464c5f(0x183)][_0x464c5f(0x180)](_0x1295b8=>_0x1295b8[_0x464c5f(0x15d)])['filter'](Boolean),_0x27bef5=_0x296ed3[_0x464c5f(0x168)]?'Available\x20apps:\x20'+Array[_0x464c5f(0x16a)](new Set(_0x296ed3))['join'](',\x20')+'.':_0x464c5f(0x17c)+CLI_BIN_NAME+_0x464c5f(0x161);throw CliErrors[_0x464c5f(0x18d)](_0x464c5f(0x15f)+_0x15d598[_0x464c5f(0x15d)]+_0x464c5f(0x155),_0x27bef5);}function writeWorkspaceConfig(_0x1c054e,_0x3b1991,_0x21db0e){const _0x57c59b=a64_0x1324f0;_0x1c054e[_0x57c59b(0x172)]&&(_0x21db0e['env']=_0x1c054e[_0x57c59b(0x16f)]);if(_0x1c054e[_0x57c59b(0x15d)]){const _0x7f2319=isRecord(_0x21db0e[_0x57c59b(0x18e)])?{..._0x21db0e[_0x57c59b(0x18e)]}:{},_0x4a25f7=isRecord(_0x7f2319[_0x1c054e[_0x57c59b(0x15d)]])?_0x7f2319[_0x1c054e[_0x57c59b(0x15d)]]:{};return _0x7f2319[_0x1c054e['appName']]={..._0x4a25f7,'appcode':_0x1c054e[_0x57c59b(0x160)]},_0x21db0e[_0x57c59b(0x18e)]=_0x7f2319,_0x21db0e[_0x57c59b(0x178)]=_0x1c054e[_0x57c59b(0x15d)],delete _0x21db0e[_0x57c59b(0x160)],delete _0x21db0e[_0x57c59b(0x188)],writeAndReturn(_0x3b1991,_0x21db0e);}return _0x21db0e[_0x57c59b(0x160)]=_0x1c054e['appcode'],delete _0x21db0e['defaultApp'],delete _0x21db0e[_0x57c59b(0x188)],writeAndReturn(_0x3b1991,_0x21db0e);}function writeAndReturn(_0x2c9feb,_0x339079){return writeConfigFile(_0x2c9feb,_0x339079),_0x2c9feb;}function resolveWorkspaceEnv(_0xa310dd){const _0x5ba46b=a64_0x1324f0;if(RUNTIME_ENV_VALUES[_0x5ba46b(0x150)](_0xa310dd))return _0xa310dd;throw CliErrors[_0x5ba46b(0x18d)](_0x5ba46b(0x170)+_0xa310dd+_0x5ba46b(0x171)+RUNTIME_ENV_VALUES[_0x5ba46b(0x174)](',\x20'));}function buildWorkspaceMessage(_0x2f293e,_0x36afa6,_0x5c605f,_0x2b1e3f){const _0x404d34=a64_0x1324f0,_0x3d98d0=_0x36afa6?_0x36afa6+'\x20('+_0x5c605f+')':_0x5c605f,_0x39fea9=_0x2b1e3f?_0x404d34(0x18b)+_0x2b1e3f:'';return'Workspace\x20configured.\x0aConfig\x20file:\x20'+_0x2f293e+_0x404d34(0x154)+_0x3d98d0+_0x39fea9+'\x0aAccessKey:\x20not\x20written';}function isRecord(_0x198865){const _0x14b5fe=a64_0x1324f0;return typeof _0x198865===_0x14b5fe(0x18a)&&_0x198865!==null&&!Array[_0x14b5fe(0x15c)](_0x198865);}function hasWorkspaceAppBinding(_0x14bf1c){const _0x3d8716=a64_0x1324f0;if(typeof _0x14bf1c[_0x3d8716(0x160)]==='string'&&_0x14bf1c[_0x3d8716(0x160)][_0x3d8716(0x17d)]()['length']>0x0)return!![];if(typeof _0x14bf1c['defaultApp']!==_0x3d8716(0x189)||!_0x14bf1c[_0x3d8716(0x178)][_0x3d8716(0x17d)]())return![];if(!isRecord(_0x14bf1c[_0x3d8716(0x18e)]))return![];const _0x119beb=_0x14bf1c['apps'][_0x14bf1c[_0x3d8716(0x178)][_0x3d8716(0x17d)]()];return isRecord(_0x119beb)&&typeof _0x119beb[_0x3d8716(0x160)]===_0x3d8716(0x189)&&_0x119beb['appcode'][_0x3d8716(0x17d)]()[_0x3d8716(0x168)]>0x0;}function assertWorkspaceCommandState(_0x1f42f7,_0x3c6f60){const _0x45b307=a64_0x1324f0,_0x180257=hasWorkspaceAppBinding(_0x3c6f60);if(_0x1f42f7===_0x45b307(0x176)&&_0x180257)throw CliErrors['validation']('Workspace\x20app\x20context\x20is\x20already\x20initialized.',_0x45b307(0x16e)+CLI_BIN_NAME+_0x45b307(0x186)+CLI_BIN_NAME+_0x45b307(0x152));if(_0x1f42f7===_0x45b307(0x159)&&!_0x180257)throw CliErrors[_0x45b307(0x18d)](_0x45b307(0x156),_0x45b307(0x17c)+CLI_BIN_NAME+_0x45b307(0x181)+CLI_BIN_NAME+'\x20workspace\x20init\x20--appcode\x20<code>`\x20first.');}function a64_0x3aef(){const _0x5e9bab=['command','\x0aDefault\x20app:\x20','\x22\x20not\x20found.','Workspace\x20app\x20context\x20is\x20not\x20initialized.','105396KtJuyA','将在尚未绑定应用的当前工作目录写入\x20Lovrabet\x20项目配置,并把所选应用设为该目录的默认应用;不会写入\x20AccessKey。','use','595kYhKXU','将更新当前工作目录已有的应用绑定,并把所选应用设为该目录的默认应用;不会写入\x20AccessKey。','isArray','appName','authRequired','App\x20\x22','appcode','\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20pass\x20--appcode\x20directly.','45ASNMet','accessKey','7372IwevKJ','str','35915242QUAOMP','\x20--appcode\x20<code>\x20[--env\x20daily]','length','workspace','from','Conflicting\x20workspace\x20app\x20selectors.','146262dyeQUm','\x20workspace\x20','Use\x20`','env','Invalid\x20env\x20\x22','\x22.\x20Allowed:\x20','shouldWriteEnv','Usage:\x20','join','project','init','App\x20code\x20to\x20bind\x20directly','defaultApp','../../commands/app/remote-source.js','1626852FaPNSm','12LMKPdN','Run\x20`','trim','Target\x20environment','2488GfLkVA','map','\x20workspace\x20init\x20--app\x20<name>`\x20or\x20`','\x20--app\x20<name>\x20[--env\x20daily]\x20or\x20','items','6CVTcKS','239050LNPEDZ','\x20workspace\x20use\x20--app\x20<name>`\x20or\x20`','write','app','string','object','\x0aEnv:\x20','43414INymLW','validation','apps','Pass\x20either\x20--app\x20<name>\x20or\x20--appcode\x20<code>,\x20not\x20both.','../../core/api-client.js','修改当前工作目录已有绑定的应用上下文','includes','envName','\x20workspace\x20use\x20--appcode\x20<code>`\x20to\x20change\x20it.'];a64_0x3aef=function(){return _0x5e9bab;};return a64_0x3aef();}function makeWorkspaceCommand(_0x5ad2fa){const _0xebe46e=a64_0x1324f0;return{'service':_0xebe46e(0x169),'command':_0x5ad2fa,'description':_0x5ad2fa===_0xebe46e(0x176)?'为尚未绑定应用的当前工作目录初始化应用上下文':_0xebe46e(0x191),'risk':_0xebe46e(0x187),'confirmationDescription':_0x5ad2fa===_0xebe46e(0x176)?_0xebe46e(0x158):_0xebe46e(0x15b),'requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':WORKSPACE_USE_FLAGS,async 'execute'(_0x48904a){return executeWorkspaceUse(_0x48904a,_0x5ad2fa);}};}export const workspaceDefinitions=[makeWorkspaceCommand(a64_0x1324f0(0x176)),makeWorkspaceCommand(a64_0x1324f0(0x159))];
@@ -1 +1 @@
1
- const a65_0xc6fa6c=a65_0x454d;(function(_0x174ff5,_0x2c1cc2){const _0x12c09b=a65_0x454d,_0xd6aa4e=_0x174ff5();while(!![]){try{const _0x45e91c=parseInt(_0x12c09b(0xf4))/0x1+parseInt(_0x12c09b(0xf6))/0x2*(-parseInt(_0x12c09b(0xff))/0x3)+parseInt(_0x12c09b(0x10d))/0x4+parseInt(_0x12c09b(0x10c))/0x5+parseInt(_0x12c09b(0xfb))/0x6+-parseInt(_0x12c09b(0x10f))/0x7+-parseInt(_0x12c09b(0xfa))/0x8;if(_0x45e91c===_0x2c1cc2)break;else _0xd6aa4e['push'](_0xd6aa4e['shift']());}catch(_0x33a012){_0xd6aa4e['push'](_0xd6aa4e['shift']());}}}(a65_0x14b8,0x3c2ba));function a65_0x454d(_0x2c0dec,_0x3804ab){_0x2c0dec=_0x2c0dec-0xf1;const _0x14b859=a65_0x14b8();let _0x454d37=_0x14b859[_0x2c0dec];return _0x454d37;}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_0xc6fa6c(0x107),'topLevel':!![],'cliSettableTopLevel':!![],'enumValues':RUNTIME_ENV_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES[a65_0xc6fa6c(0xfe)],'importable':!![]},'format':{'description':a65_0xc6fa6c(0x10a),'topLevel':!![],'cliSettableTopLevel':!![],'enumValues':OUTPUT_FORMAT_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES[a65_0xc6fa6c(0x104)],'importable':!![]},'pageSize':{'description':a65_0xc6fa6c(0xf5),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'apiDomain':{'description':a65_0xc6fa6c(0xf3),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'userDomain':{'description':'Override\x20user\x20domain','topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'runtimeDomain':{'description':a65_0xc6fa6c(0xfd),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'skillHubDomain':{'description':'Override\x20SkillHub\x20domain','topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'accessKey':{'description':a65_0xc6fa6c(0x109),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'riskLevel':{'description':a65_0xc6fa6c(0x10b),'topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES[a65_0xc6fa6c(0xf1)],'importable':!![]},'locale':{'description':a65_0xc6fa6c(0xf9),'topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES[a65_0xc6fa6c(0x105)],'importable':!![],'legacyCompatOnly':!![]}};export const TOP_LEVEL_CONFIG_KEYS=new Set(Object[a65_0xc6fa6c(0x102)](CONFIG_FIELD_SCHEMAS)[a65_0xc6fa6c(0x100)](([,_0x27cc6a])=>_0x27cc6a[a65_0xc6fa6c(0x101)])['map'](([_0x178708])=>_0x178708));function a65_0x14b8(){const _0x5c42b1=['env','18EOHhkD','filter','cliSettableTopLevel','entries','join','format','locale','Config\x20key.\x20Top-level:\x20','Target\x20environment','defaultValue','Access\x20key\x20(client-ak\x20auth)','Default\x20output\x20format','Risk\x20level','622750YgdRFS','1867076zLWzVJ','enumValues','1947057aCSugw','riskLevel','fromEntries','Override\x20API\x20domain','231373GKYGvT','Default\x20page\x20size','34268EhGFzD','map','importable','Locale','2267456UFGQWw','528918nDLbEw','legacyCompatOnly','Override\x20runtime\x20domain'];a65_0x14b8=function(){return _0x5c42b1;};return a65_0x14b8();}export const CONFIG_ENUM_VALUES=Object[a65_0xc6fa6c(0xf2)](Object[a65_0xc6fa6c(0x102)](CONFIG_FIELD_SCHEMAS)[a65_0xc6fa6c(0x100)](([,_0x2a79d4])=>_0x2a79d4[a65_0xc6fa6c(0x10e)])[a65_0xc6fa6c(0xf7)](([_0x171e9b,_0xec4906])=>[_0x171e9b,[..._0xec4906[a65_0xc6fa6c(0x10e)]||[]]]));export const IMPORTABLE_RUNTIME_CONFIG_KEYS=Object[a65_0xc6fa6c(0x102)](CONFIG_FIELD_SCHEMAS)[a65_0xc6fa6c(0x100)](([,_0x49d471])=>_0x49d471[a65_0xc6fa6c(0xf8)])[a65_0xc6fa6c(0xf7)](([_0x9fd199])=>_0x9fd199);export function getConfigFieldSchema(_0x4963d9){return CONFIG_FIELD_SCHEMAS[_0x4963d9];}export function getConfigEnumValues(_0x5d4390){const _0x3cf0c6=a65_0xc6fa6c;return getConfigFieldSchema(_0x5d4390)?.[_0x3cf0c6(0x10e)];}export function getConfigDefaultValue(_0xc51764){const _0x566c0e=a65_0xc6fa6c;return getConfigFieldSchema(_0xc51764)?.[_0x566c0e(0x108)];}export function isTopLevelConfigKey(_0x2e1962){return TOP_LEVEL_CONFIG_KEYS['has'](_0x2e1962);}export function isLegacyCompatConfigKey(_0x14aebe){const _0x1bb8ac=a65_0xc6fa6c;return getConfigFieldSchema(_0x14aebe)?.[_0x1bb8ac(0xfc)]===!![];}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function formatConfigKeyList(_0x4533c3){const _0x3c89d0=a65_0xc6fa6c;return[..._0x4533c3][_0x3c89d0(0x103)](',\x20');}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){const _0x52a434=a65_0xc6fa6c;return _0x52a434(0x106)+getTopLevelConfigKeySummary()+';\x20local\x20alias:\x20apps.<alias>.appcode';}export function buildAppProfileListFields(_0x5a4d7c){return{'env':_0x5a4d7c,'hasAccessKey':![],'format':null,'pageSize':null,'riskLevel':null,'locale':null};}
1
+ const a65_0x3c9de4=a65_0x1b55;(function(_0x2db6e4,_0x3229c4){const _0x17e49f=a65_0x1b55,_0x42f191=_0x2db6e4();while(!![]){try{const _0x197aa6=parseInt(_0x17e49f(0x1df))/0x1+-parseInt(_0x17e49f(0x1e4))/0x2+parseInt(_0x17e49f(0x1ef))/0x3*(-parseInt(_0x17e49f(0x1ed))/0x4)+-parseInt(_0x17e49f(0x1e0))/0x5*(-parseInt(_0x17e49f(0x1d6))/0x6)+parseInt(_0x17e49f(0x1f0))/0x7+parseInt(_0x17e49f(0x1f1))/0x8+-parseInt(_0x17e49f(0x1ea))/0x9;if(_0x197aa6===_0x3229c4)break;else _0x42f191['push'](_0x42f191['shift']());}catch(_0x5e441c){_0x42f191['push'](_0x42f191['shift']());}}}(a65_0x12ad,0x3996e));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':'Target\x20environment','topLevel':!![],'cliSettableTopLevel':!![],'enumValues':RUNTIME_ENV_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES['env'],'importable':!![]},'format':{'description':a65_0x3c9de4(0x1e7),'topLevel':!![],'cliSettableTopLevel':!![],'enumValues':OUTPUT_FORMAT_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES[a65_0x3c9de4(0x1e8)],'importable':!![]},'pageSize':{'description':'Default\x20page\x20size','topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'apiDomain':{'description':'Override\x20API\x20domain','topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'userDomain':{'description':a65_0x3c9de4(0x1de),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'runtimeDomain':{'description':a65_0x3c9de4(0x1e5),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'skillHubDomain':{'description':a65_0x3c9de4(0x1d9),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'accessKey':{'description':a65_0x3c9de4(0x1f2),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'riskLevel':{'description':a65_0x3c9de4(0x1ec),'topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES[a65_0x3c9de4(0x1d4)],'importable':!![]},'locale':{'description':a65_0x3c9de4(0x1da),'topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES[a65_0x3c9de4(0x1dc)],'importable':!![],'legacyCompatOnly':!![]}};export const TOP_LEVEL_CONFIG_KEYS=new Set(Object['entries'](CONFIG_FIELD_SCHEMAS)[a65_0x3c9de4(0x1d5)](([,_0xaf5bad])=>_0xaf5bad[a65_0x3c9de4(0x1eb)])['map'](([_0x4f41f1])=>_0x4f41f1));export const CONFIG_ENUM_VALUES=Object[a65_0x3c9de4(0x1d8)](Object[a65_0x3c9de4(0x1e1)](CONFIG_FIELD_SCHEMAS)[a65_0x3c9de4(0x1d5)](([,_0x44c0ec])=>_0x44c0ec[a65_0x3c9de4(0x1e9)])[a65_0x3c9de4(0x1e2)](([_0xbc5ca2,_0x54b16c])=>[_0xbc5ca2,[..._0x54b16c[a65_0x3c9de4(0x1e9)]||[]]]));export const IMPORTABLE_RUNTIME_CONFIG_KEYS=Object[a65_0x3c9de4(0x1e1)](CONFIG_FIELD_SCHEMAS)[a65_0x3c9de4(0x1d5)](([,_0x560d95])=>_0x560d95[a65_0x3c9de4(0x1e6)])['map'](([_0x1764cf])=>_0x1764cf);export function getConfigFieldSchema(_0x13a3f6){return CONFIG_FIELD_SCHEMAS[_0x13a3f6];}export function getConfigEnumValues(_0x583882){const _0x526bad=a65_0x3c9de4;return getConfigFieldSchema(_0x583882)?.[_0x526bad(0x1e9)];}export function getConfigDefaultValue(_0x4974d6){const _0x157865=a65_0x3c9de4;return getConfigFieldSchema(_0x4974d6)?.[_0x157865(0x1d7)];}export function isTopLevelConfigKey(_0x454edd){const _0x1c1490=a65_0x3c9de4;return TOP_LEVEL_CONFIG_KEYS[_0x1c1490(0x1ee)](_0x454edd);}function a65_0x12ad(){const _0x155ca1=['1205816aVXuIj','Access\x20key\x20(client-ak\x20auth)','riskLevel','filter','313566jlsiil','defaultValue','fromEntries','Override\x20SkillHub\x20domain','Locale','Config\x20key.\x20Top-level:\x20','locale','join','Override\x20user\x20domain','246069pasTrH','45aJyaVD','entries','map',';\x20local\x20alias:\x20apps.<alias>.appcode','65444KqzaWA','Override\x20runtime\x20domain','importable','Default\x20output\x20format','format','enumValues','7113330FdjUZz','cliSettableTopLevel','Risk\x20level','181324XZXLkI','has','6RiaGJT','1977465dfxUWh'];a65_0x12ad=function(){return _0x155ca1;};return a65_0x12ad();}export function isLegacyCompatConfigKey(_0x278213){return getConfigFieldSchema(_0x278213)?.['legacyCompatOnly']===!![];}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}function a65_0x1b55(_0x509200,_0x3200c0){_0x509200=_0x509200-0x1d4;const _0x12ad84=a65_0x12ad();let _0x1b5597=_0x12ad84[_0x509200];return _0x1b5597;}export function formatConfigKeyList(_0x527d06){const _0x5b0975=a65_0x3c9de4;return[..._0x527d06][_0x5b0975(0x1dd)](',\x20');}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){const _0x2258d5=a65_0x3c9de4;return _0x2258d5(0x1db)+getTopLevelConfigKeySummary()+_0x2258d5(0x1e3);}export function buildAppProfileListFields(_0x30f0b8){return{'env':_0x30f0b8,'hasAccessKey':![],'format':null,'pageSize':null,'riskLevel':null,'locale':null};}
@@ -1 +1 @@
1
- const a66_0x537494=a66_0xec64;(function(_0x2562c2,_0x29dabd){const _0x5d5e30=a66_0xec64,_0x4b73ab=_0x2562c2();while(!![]){try{const _0x97f0a8=parseInt(_0x5d5e30(0x9b))/0x1+parseInt(_0x5d5e30(0xa1))/0x2*(parseInt(_0x5d5e30(0x9a))/0x3)+-parseInt(_0x5d5e30(0xa3))/0x4*(-parseInt(_0x5d5e30(0xa0))/0x5)+parseInt(_0x5d5e30(0x9c))/0x6+-parseInt(_0x5d5e30(0x9e))/0x7+parseInt(_0x5d5e30(0xa2))/0x8*(-parseInt(_0x5d5e30(0x9f))/0x9)+-parseInt(_0x5d5e30(0xa4))/0xa;if(_0x97f0a8===_0x29dabd)break;else _0x4b73ab['push'](_0x4b73ab['shift']());}catch(_0x3fa1b1){_0x4b73ab['push'](_0x4b73ab['shift']());}}}(a66_0x5065,0xce261));export const APP_PUBLISH_STATUS={'Published':a66_0x537494(0x99),'Unpublished':a66_0x537494(0x9d)};export const RUNTIME_ACCESSIBLE_APP_STATUS=APP_PUBLISH_STATUS['Published'];function a66_0xec64(_0x52b469,_0x5911c0){_0x52b469=_0x52b469-0x99;const _0x5065ad=a66_0x5065();let _0xec64b6=_0x5065ad[_0x52b469];return _0xec64b6;}function a66_0x5065(){const _0x200d33=['76904JgLkrD','948iFkaYg','24884720YCkGyr','PUBLISHED','65901QRNnwb','258952epMNRz','6066900kKhHeu','UNPUBLISH','2007593CuLRCI','207eALDyw','32915wcVSYq','92UVkQbx'];a66_0x5065=function(){return _0x200d33;};return a66_0x5065();}
1
+ const a66_0xf71e33=a66_0x2186;function a66_0x2186(_0x53436c,_0x115208){_0x53436c=_0x53436c-0xd0;const _0x8238d0=a66_0x8238();let _0x218618=_0x8238d0[_0x53436c];return _0x218618;}(function(_0x2b4ee1,_0x4abd97){const _0x359765=a66_0x2186,_0x48b135=_0x2b4ee1();while(!![]){try{const _0x517f6c=-parseInt(_0x359765(0xd0))/0x1*(parseInt(_0x359765(0xd7))/0x2)+parseInt(_0x359765(0xda))/0x3*(-parseInt(_0x359765(0xd8))/0x4)+parseInt(_0x359765(0xdd))/0x5*(-parseInt(_0x359765(0xdb))/0x6)+-parseInt(_0x359765(0xdc))/0x7*(-parseInt(_0x359765(0xd2))/0x8)+parseInt(_0x359765(0xd3))/0x9+parseInt(_0x359765(0xd5))/0xa*(parseInt(_0x359765(0xd1))/0xb)+parseInt(_0x359765(0xde))/0xc*(parseInt(_0x359765(0xd4))/0xd);if(_0x517f6c===_0x4abd97)break;else _0x48b135['push'](_0x48b135['shift']());}catch(_0x1667a2){_0x48b135['push'](_0x48b135['shift']());}}}(a66_0x8238,0xa153d));export const APP_PUBLISH_STATUS={'Published':a66_0xf71e33(0xd6),'Unpublished':'UNPUBLISH'};function a66_0x8238(){const _0x24a43e=['Published','231558gorIOH','44556uaPswG','196567IypgEn','750SYxmNY','14484veIZUK','1mRBclw','825kUDLXJ','264rorTvR','870561jIJOsF','3991loxrNi','171220AZvEsO','PUBLISHED','108716uhvQZg','44HwWaYA'];a66_0x8238=function(){return _0x24a43e;};return a66_0x8238();}export const RUNTIME_ACCESSIBLE_APP_STATUS=APP_PUBLISH_STATUS[a66_0xf71e33(0xd9)];
@@ -1 +1 @@
1
- function a67_0x3172(_0x4deab1,_0x337a27){_0x4deab1=_0x4deab1-0x14a;const _0x28a8f6=a67_0x28a8();let _0x3172c8=_0x28a8f6[_0x4deab1];return _0x3172c8;}const a67_0x1096f9=a67_0x3172;function a67_0x28a8(){const _0x19169e=['672246qLZfJh','12590250eOcRTD','36911LZfyRH','3TfVyQp','344YdRHCJ','355021oCPFfn','ClientAk','131370FovBPE','client-ak','4KLvhdp','693324mCgDai','548876BjbEsR'];a67_0x28a8=function(){return _0x19169e;};return a67_0x28a8();}(function(_0xdcac3f,_0x2de7e7){const _0x172b69=a67_0x3172,_0x160efd=_0xdcac3f();while(!![]){try{const _0x12ec6c=-parseInt(_0x172b69(0x14c))/0x1+-parseInt(_0x172b69(0x152))/0x2*(parseInt(_0x172b69(0x14a))/0x3)+parseInt(_0x172b69(0x150))/0x4*(-parseInt(_0x172b69(0x14e))/0x5)+-parseInt(_0x172b69(0x151))/0x6+-parseInt(_0x172b69(0x155))/0x7*(parseInt(_0x172b69(0x14b))/0x8)+-parseInt(_0x172b69(0x153))/0x9+parseInt(_0x172b69(0x154))/0xa;if(_0x12ec6c===_0x2de7e7)break;else _0x160efd['push'](_0x160efd['shift']());}catch(_0x2ec3f6){_0x160efd['push'](_0x160efd['shift']());}}}(a67_0x28a8,0x2d7c1));export const AUTH_MODE={'ClientAk':a67_0x1096f9(0x14f)};export function isAuthMode(_0x5e022f){const _0x1710db=a67_0x1096f9;return _0x5e022f===AUTH_MODE[_0x1710db(0x14d)];}
1
+ const a67_0x31a0d8=a67_0x4a1b;(function(_0x4f27ac,_0x5d7be1){const _0x197f12=a67_0x4a1b,_0x4a234a=_0x4f27ac();while(!![]){try{const _0x55894a=parseInt(_0x197f12(0x186))/0x1*(parseInt(_0x197f12(0x18f))/0x2)+-parseInt(_0x197f12(0x190))/0x3*(-parseInt(_0x197f12(0x188))/0x4)+parseInt(_0x197f12(0x18b))/0x5+parseInt(_0x197f12(0x18a))/0x6+-parseInt(_0x197f12(0x191))/0x7+parseInt(_0x197f12(0x18c))/0x8*(parseInt(_0x197f12(0x185))/0x9)+parseInt(_0x197f12(0x18d))/0xa*(-parseInt(_0x197f12(0x18e))/0xb);if(_0x55894a===_0x5d7be1)break;else _0x4a234a['push'](_0x4a234a['shift']());}catch(_0x2b12b0){_0x4a234a['push'](_0x4a234a['shift']());}}}(a67_0x1e53,0x1d000));function a67_0x4a1b(_0x189e19,_0x11808d){_0x189e19=_0x189e19-0x185;const _0x1e53f6=a67_0x1e53();let _0x4a1b22=_0x1e53f6[_0x189e19];return _0x4a1b22;}function a67_0x1e53(){const _0x3ab831=['8908UqwSFY','1509ckSFIj','170800ZLtVDt','101619dmZvAR','34qJBPMs','ClientAk','1828YjfleT','client-ak','252582HeZMRa','629005wEwzEm','16rnlyEg','70EGmpHF','673519ZUpCVT'];a67_0x1e53=function(){return _0x3ab831;};return a67_0x1e53();}export const AUTH_MODE={'ClientAk':a67_0x31a0d8(0x189)};export function isAuthMode(_0xfd4921){const _0x56daa2=a67_0x31a0d8;return _0xfd4921===AUTH_MODE[_0x56daa2(0x187)];}
@@ -1 +1 @@
1
- const a68_0x234907=a68_0x5891;(function(_0x292a99,_0x4d6ebb){const _0x16a054=a68_0x5891,_0x174679=_0x292a99();while(!![]){try{const _0x24ebcc=parseInt(_0x16a054(0xb9))/0x1+parseInt(_0x16a054(0xa5))/0x2+parseInt(_0x16a054(0xa3))/0x3*(parseInt(_0x16a054(0x9b))/0x4)+parseInt(_0x16a054(0xb2))/0x5*(-parseInt(_0x16a054(0x91))/0x6)+parseInt(_0x16a054(0xa8))/0x7*(-parseInt(_0x16a054(0xa2))/0x8)+parseInt(_0x16a054(0x90))/0x9+parseInt(_0x16a054(0xaa))/0xa;if(_0x24ebcc===_0x4d6ebb)break;else _0x174679['push'](_0x174679['shift']());}catch(_0x38ca29){_0x174679['push'](_0x174679['shift']());}}}(a68_0x34d9,0xc4719));import{PRODUCT_CONFIG}from'../constant/product.js';function a68_0x5891(_0x30e81e,_0x5b4d80){_0x30e81e=_0x30e81e-0x90;const _0x34d956=a68_0x34d9();let _0x589115=_0x34d956[_0x30e81e];return _0x589115;}function a68_0x34d9(){const _0x4e6516=['type','global','Select\x20app\x20profile\x20by\x20name','verbose','363247abLINr','yes','Preview\x20operation\x20without\x20executing','11291841orfpbJ','242916HykzjC','Name\x20filter','<code>','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20implies\x20--format\x20json\x20when\x20current\x20format\x20is\x20pretty)','json\x20|\x20pretty\x20|\x20compress','dryRun','clear','Output\x20format','production\x20|\x20development\x20|\x20daily','name','236DYcLzt','cliDisplayName','<expr>','format','app','help','Show\x20help','8LzgUJC','8904gsJqoR','dry-run','1369722eMaZHv','non-interactive','Record\x20ID','11033701QXCIjb','Alias\x20for\x20--non-interactive','5912690SlsZJE','Use\x20global\x20config\x20scope','JSON\x20params\x20for\x20execute\x20commands','appcode','boolean','SQL\x20query\x20code','meowKey','string','85cxhMYp','env','sqlcode'];a68_0x34d9=function(){return _0x4e6516;};return a68_0x34d9();}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_0x234907(0x9c)];export const NPM_PACKAGE_NAME=LOVRABET_NPM_PACKAGE_NAME;export const GLOBAL_FLAGS=[{'name':a68_0x234907(0xad),'meowKey':a68_0x234907(0xad),'type':a68_0x234907(0xb1),'description':'Override\x20appcode','hint':a68_0x234907(0x93)},{'name':a68_0x234907(0x9f),'meowKey':a68_0x234907(0x9f),'type':a68_0x234907(0xb1),'description':a68_0x234907(0xb7),'hint':'<name>'},{'name':a68_0x234907(0xb3),'meowKey':a68_0x234907(0xb3),'type':'string','description':'Environment','hint':a68_0x234907(0x99)},{'name':a68_0x234907(0x9e),'meowKey':a68_0x234907(0x9e),'type':a68_0x234907(0xb1),'description':a68_0x234907(0x98),'hint':a68_0x234907(0x95)},{'name':'jq','meowKey':'jq','type':'string','description':a68_0x234907(0x94),'hint':a68_0x234907(0x9d)},{'name':a68_0x234907(0xa4),'meowKey':a68_0x234907(0x96),'type':'boolean','description':a68_0x234907(0xbb)},{'name':a68_0x234907(0xba),'meowKey':a68_0x234907(0xba),'type':'boolean','description':'Skip\x20confirmation\x20for\x20high-risk\x20writes'},{'name':'non-interactive','meowKey':'nonInteractive','type':a68_0x234907(0xae),'description':'Force\x20non-interactive\x20mode\x20(CI)'},{'name':a68_0x234907(0xb6),'meowKey':a68_0x234907(0xb6),'type':a68_0x234907(0xae),'description':a68_0x234907(0xab)},{'name':'ci','meowKey':'ci','type':a68_0x234907(0xae),'description':a68_0x234907(0xa9),'hidden':!![]},{'name':a68_0x234907(0xa0),'meowKey':a68_0x234907(0xa0),'type':a68_0x234907(0xae),'description':a68_0x234907(0xa1)},{'name':'id','meowKey':'id','type':'string','description':a68_0x234907(0xa7),'hidden':!![]},{'name':'name','meowKey':a68_0x234907(0x9a),'type':a68_0x234907(0xb1),'description':a68_0x234907(0x92),'hidden':!![]},{'name':a68_0x234907(0xb4),'meowKey':a68_0x234907(0xb4),'type':'string','description':a68_0x234907(0xaf),'hidden':!![]},{'name':'params','meowKey':'params','type':a68_0x234907(0xb1),'description':a68_0x234907(0xac),'hidden':!![]},{'name':'verbose','meowKey':a68_0x234907(0xb8),'type':a68_0x234907(0xae),'description':'Verbose\x20output','hidden':!![]},{'name':a68_0x234907(0x97),'meowKey':a68_0x234907(0x97),'type':'boolean','description':'Clear\x20output','hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set([a68_0x234907(0xad),a68_0x234907(0x9f),'env','format','jq','dry-run',a68_0x234907(0xba),a68_0x234907(0xa6),'ci']);export function buildMeowFlags(){const _0x261ef2=a68_0x234907;return Object['fromEntries'](GLOBAL_FLAGS['map'](_0x7ddbce=>[_0x7ddbce[_0x261ef2(0xb0)],{'type':_0x7ddbce[_0x261ef2(0xb5)]}]));}
1
+ const a68_0x17c376=a68_0x4f1c;function a68_0x4f1c(_0x4c09fd,_0x3d8674){_0x4c09fd=_0x4c09fd-0x1c7;const _0x25b765=a68_0x25b7();let _0x4f1c34=_0x25b765[_0x4c09fd];return _0x4f1c34;}(function(_0x3f7fc5,_0x2988b9){const _0x20b05b=a68_0x4f1c,_0x3e8621=_0x3f7fc5();while(!![]){try{const _0x2f129d=parseInt(_0x20b05b(0x1eb))/0x1*(parseInt(_0x20b05b(0x1f2))/0x2)+-parseInt(_0x20b05b(0x1ce))/0x3+parseInt(_0x20b05b(0x1f9))/0x4*(-parseInt(_0x20b05b(0x1cc))/0x5)+-parseInt(_0x20b05b(0x1dc))/0x6*(-parseInt(_0x20b05b(0x1f6))/0x7)+-parseInt(_0x20b05b(0x1ee))/0x8*(-parseInt(_0x20b05b(0x1cd))/0x9)+parseInt(_0x20b05b(0x1f3))/0xa*(-parseInt(_0x20b05b(0x1ec))/0xb)+parseInt(_0x20b05b(0x1d2))/0xc;if(_0x2f129d===_0x2988b9)break;else _0x3e8621['push'](_0x3e8621['shift']());}catch(_0x189a1e){_0x3e8621['push'](_0x3e8621['shift']());}}}(a68_0x25b7,0x1f92a));function a68_0x25b7(){const _0x4787a7=['Force\x20non-interactive\x20mode\x20(CI)','6703128ymfiYA','app','<code>','clear','yes','help','Show\x20help','name','fromEntries','production\x20|\x20development\x20|\x20daily','3018BHcAfG','Environment','meowKey','appcode','env','Override\x20appcode','<name>','sqlcode','map','<expr>','nonInteractive','SQL\x20query\x20code','non-interactive','dry-run','global','2Sofbkz','1226863RSfVuD','params','1112ZDnwvK','boolean','format','Select\x20app\x20profile\x20by\x20name','118046aGrRHJ','20IbFdWV','Clear\x20output','cliDisplayName','21CSyeNe','Output\x20format','Skip\x20confirmation\x20for\x20high-risk\x20writes','383124EaHFiJ','json\x20|\x20pretty\x20|\x20compress','Name\x20filter','string','Use\x20global\x20config\x20scope','Verbose\x20output','10hYRzXn','2754QCqrPW','530199HEZsoN','dryRun','cliBinName'];a68_0x25b7=function(){return _0x4787a7;};return a68_0x25b7();}import{PRODUCT_CONFIG}from'../constant/product.js';import{LOVRABET_NPM_PACKAGE_NAME}from'../constant/distribution.js';export const CLI_BIN_NAME=PRODUCT_CONFIG[a68_0x17c376(0x1d0)];export const CLI_DISPLAY_NAME=PRODUCT_CONFIG[a68_0x17c376(0x1f5)];export const NPM_PACKAGE_NAME=LOVRABET_NPM_PACKAGE_NAME;export const GLOBAL_FLAGS=[{'name':a68_0x17c376(0x1df),'meowKey':'appcode','type':a68_0x17c376(0x1c9),'description':a68_0x17c376(0x1e1),'hint':a68_0x17c376(0x1d4)},{'name':'app','meowKey':a68_0x17c376(0x1d3),'type':a68_0x17c376(0x1c9),'description':a68_0x17c376(0x1f1),'hint':a68_0x17c376(0x1e2)},{'name':'env','meowKey':a68_0x17c376(0x1e0),'type':a68_0x17c376(0x1c9),'description':a68_0x17c376(0x1dd),'hint':a68_0x17c376(0x1db)},{'name':a68_0x17c376(0x1f0),'meowKey':a68_0x17c376(0x1f0),'type':'string','description':a68_0x17c376(0x1f7),'hint':a68_0x17c376(0x1c7)},{'name':'jq','meowKey':'jq','type':a68_0x17c376(0x1c9),'description':'Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20implies\x20--format\x20json\x20when\x20current\x20format\x20is\x20pretty)','hint':a68_0x17c376(0x1e5)},{'name':a68_0x17c376(0x1e9),'meowKey':a68_0x17c376(0x1cf),'type':a68_0x17c376(0x1ef),'description':'Preview\x20operation\x20without\x20executing'},{'name':a68_0x17c376(0x1d6),'meowKey':a68_0x17c376(0x1d6),'type':'boolean','description':a68_0x17c376(0x1f8)},{'name':a68_0x17c376(0x1e8),'meowKey':a68_0x17c376(0x1e6),'type':'boolean','description':a68_0x17c376(0x1d1)},{'name':a68_0x17c376(0x1ea),'meowKey':a68_0x17c376(0x1ea),'type':a68_0x17c376(0x1ef),'description':a68_0x17c376(0x1ca)},{'name':'ci','meowKey':'ci','type':a68_0x17c376(0x1ef),'description':'Alias\x20for\x20--non-interactive','hidden':!![]},{'name':a68_0x17c376(0x1d7),'meowKey':a68_0x17c376(0x1d7),'type':a68_0x17c376(0x1ef),'description':a68_0x17c376(0x1d8)},{'name':'id','meowKey':'id','type':'string','description':'Record\x20ID','hidden':!![]},{'name':a68_0x17c376(0x1d9),'meowKey':a68_0x17c376(0x1d9),'type':a68_0x17c376(0x1c9),'description':a68_0x17c376(0x1c8),'hidden':!![]},{'name':a68_0x17c376(0x1e3),'meowKey':a68_0x17c376(0x1e3),'type':a68_0x17c376(0x1c9),'description':a68_0x17c376(0x1e7),'hidden':!![]},{'name':a68_0x17c376(0x1ed),'meowKey':a68_0x17c376(0x1ed),'type':a68_0x17c376(0x1c9),'description':'JSON\x20params\x20for\x20execute\x20commands','hidden':!![]},{'name':'verbose','meowKey':'verbose','type':'boolean','description':a68_0x17c376(0x1cb),'hidden':!![]},{'name':'clear','meowKey':a68_0x17c376(0x1d5),'type':a68_0x17c376(0x1ef),'description':a68_0x17c376(0x1f4),'hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set(['appcode',a68_0x17c376(0x1d3),a68_0x17c376(0x1e0),'format','jq',a68_0x17c376(0x1e9),a68_0x17c376(0x1d6),'non-interactive','ci']);export function buildMeowFlags(){const _0x25425e=a68_0x17c376;return Object[_0x25425e(0x1da)](GLOBAL_FLAGS[_0x25425e(0x1e4)](_0x108375=>[_0x108375[_0x25425e(0x1de)],{'type':_0x108375['type']}]));}
@@ -1 +1 @@
1
- const a69_0x15e8bb=a69_0xa8c9;function a69_0xa8c9(_0x49d4d6,_0x1af42a){_0x49d4d6=_0x49d4d6-0xc1;const _0x503027=a69_0x5030();let _0xa8c96b=_0x503027[_0x49d4d6];return _0xa8c96b;}(function(_0x5b6cb4,_0x5a653d){const _0x5bc2c8=a69_0xa8c9,_0x145c27=_0x5b6cb4();while(!![]){try{const _0x5e45c9=parseInt(_0x5bc2c8(0xc7))/0x1+parseInt(_0x5bc2c8(0xc5))/0x2*(parseInt(_0x5bc2c8(0xcd))/0x3)+-parseInt(_0x5bc2c8(0xc8))/0x4+-parseInt(_0x5bc2c8(0xc3))/0x5+parseInt(_0x5bc2c8(0xc1))/0x6*(-parseInt(_0x5bc2c8(0xcb))/0x7)+parseInt(_0x5bc2c8(0xca))/0x8*(parseInt(_0x5bc2c8(0xc4))/0x9)+parseInt(_0x5bc2c8(0xc2))/0xa;if(_0x5e45c9===_0x5a653d)break;else _0x145c27['push'](_0x145c27['shift']());}catch(_0x560026){_0x145c27['push'](_0x145c27['shift']());}}}(a69_0x5030,0x4d650));export const DEFAULT_APP_PROFILE_NAME=a69_0x15e8bb(0xc9);export const DEFAULT_CONFIG_VALUES={'env':a69_0x15e8bb(0xc6),'format':'compress','locale':a69_0x15e8bb(0xcc),'riskLevel':'write'};export const DEFAULT_COMMAND_OUTPUT_FORMAT='compress';function a69_0x5030(){const _0x165f4b=['598636XrBgdh','1181080rZePmn','main','670256FWmHss','5404LqrzlG','en-US','71943tHqMla','3894nQKTOc','5092510lTZGKM','3026695UbwldT','45KZMYBe','16njehmi','production'];a69_0x5030=function(){return _0x165f4b;};return a69_0x5030();}
1
+ const a69_0x4e71a6=a69_0x1bc5;function a69_0x1bc5(_0x2fc9f0,_0x47253c){_0x2fc9f0=_0x2fc9f0-0x82;const _0x11c073=a69_0x11c0();let _0x1bc5d9=_0x11c073[_0x2fc9f0];return _0x1bc5d9;}(function(_0x12f598,_0xb4fd92){const _0x12e86b=a69_0x1bc5,_0x5d50fb=_0x12f598();while(!![]){try{const _0x3c5cb6=-parseInt(_0x12e86b(0x8f))/0x1+parseInt(_0x12e86b(0x85))/0x2*(-parseInt(_0x12e86b(0x8b))/0x3)+parseInt(_0x12e86b(0x82))/0x4+parseInt(_0x12e86b(0x86))/0x5*(-parseInt(_0x12e86b(0x83))/0x6)+-parseInt(_0x12e86b(0x87))/0x7+-parseInt(_0x12e86b(0x8a))/0x8*(-parseInt(_0x12e86b(0x89))/0x9)+parseInt(_0x12e86b(0x8d))/0xa;if(_0x3c5cb6===_0xb4fd92)break;else _0x5d50fb['push'](_0x5d50fb['shift']());}catch(_0x3d15a3){_0x5d50fb['push'](_0x5d50fb['shift']());}}}(a69_0x11c0,0x68a81));export const DEFAULT_APP_PROFILE_NAME='main';export const DEFAULT_CONFIG_VALUES={'env':a69_0x4e71a6(0x8e),'format':a69_0x4e71a6(0x88),'locale':a69_0x4e71a6(0x8c),'riskLevel':a69_0x4e71a6(0x84)};function a69_0x11c0(){const _0x46d6bd=['3327184FEXSPi','258sLoknL','write','1054978vrUbjY','7885czlxVW','5061210zLLGtG','compress','2493cEBBvo','9224FsyscS','3kOHwel','en-US','12184950VFzPeG','production','622669pJrrXI'];a69_0x11c0=function(){return _0x46d6bd;};return a69_0x11c0();}export const DEFAULT_COMMAND_OUTPUT_FORMAT=a69_0x4e71a6(0x88);
@@ -1 +1 @@
1
- function a70_0x32d8(_0x5cdb8d,_0x4bd76a){_0x5cdb8d=_0x5cdb8d-0xf1;const _0x24504d=a70_0x2450();let _0x32d8ad=_0x24504d[_0x5cdb8d];return _0x32d8ad;}const a70_0x184505=a70_0x32d8;(function(_0x369833,_0x549a12){const _0x14f405=a70_0x32d8,_0x8aa58d=_0x369833();while(!![]){try{const _0x3a5218=-parseInt(_0x14f405(0xfb))/0x1+parseInt(_0x14f405(0xf6))/0x2*(-parseInt(_0x14f405(0xf1))/0x3)+-parseInt(_0x14f405(0xfd))/0x4*(-parseInt(_0x14f405(0xf7))/0x5)+parseInt(_0x14f405(0xf4))/0x6+-parseInt(_0x14f405(0xfa))/0x7*(parseInt(_0x14f405(0xf2))/0x8)+parseInt(_0x14f405(0xf9))/0x9+parseInt(_0x14f405(0xfe))/0xa*(parseInt(_0x14f405(0xf3))/0xb);if(_0x3a5218===_0x549a12)break;else _0x8aa58d['push'](_0x8aa58d['shift']());}catch(_0x146e3b){_0x8aa58d['push'](_0x8aa58d['shift']());}}}(a70_0x2450,0x9e8b7));import{PRODUCT_CONFIG}from'../constant/product.js';export const LOVRABET_NPM_PACKAGE_NAME=PRODUCT_CONFIG[a70_0x184505(0xfc)];export const LOVRABET_SKILL_SOURCE=PRODUCT_CONFIG[a70_0x184505(0xf8)];export const NPM_REGISTRY_BASE_URL=PRODUCT_CONFIG[a70_0x184505(0xf5)];function a70_0x2450(){const _0x4e4a41=['skillSource','528561LdckCQ','21fYXezs','819937ShiSOt','npmPackageName','336FzOyGv','5265070jzTAvM','3uAusGe','2026920pWffpr','55jzldxt','2420856TfxIkg','npmRegistryBaseUrl','1902986rYvUyl','5130IaUXYW'];a70_0x2450=function(){return _0x4e4a41;};return a70_0x2450();}
1
+ const a70_0xc81d65=a70_0x56a8;function a70_0x56a8(_0x1e28c1,_0xd7fd40){_0x1e28c1=_0x1e28c1-0x15e;const _0xa9cad2=a70_0xa9ca();let _0x56a8f5=_0xa9cad2[_0x1e28c1];return _0x56a8f5;}(function(_0x377e6b,_0x126bd7){const _0x1ab79a=a70_0x56a8,_0x1066b8=_0x377e6b();while(!![]){try{const _0x59744b=parseInt(_0x1ab79a(0x169))/0x1*(-parseInt(_0x1ab79a(0x16a))/0x2)+-parseInt(_0x1ab79a(0x165))/0x3*(parseInt(_0x1ab79a(0x160))/0x4)+-parseInt(_0x1ab79a(0x161))/0x5*(parseInt(_0x1ab79a(0x16b))/0x6)+-parseInt(_0x1ab79a(0x168))/0x7*(parseInt(_0x1ab79a(0x162))/0x8)+parseInt(_0x1ab79a(0x163))/0x9*(-parseInt(_0x1ab79a(0x166))/0xa)+parseInt(_0x1ab79a(0x167))/0xb+parseInt(_0x1ab79a(0x15e))/0xc*(parseInt(_0x1ab79a(0x15f))/0xd);if(_0x59744b===_0x126bd7)break;else _0x1066b8['push'](_0x1066b8['shift']());}catch(_0x16ad01){_0x1066b8['push'](_0x1066b8['shift']());}}}(a70_0xa9ca,0x6a336));import{PRODUCT_CONFIG}from'../constant/product.js';export const LOVRABET_NPM_PACKAGE_NAME=PRODUCT_CONFIG['npmPackageName'];export const LOVRABET_SKILL_SOURCE=PRODUCT_CONFIG['skillSource'];function a70_0xa9ca(){const _0x2c1f1a=['72panbuu','npmRegistryBaseUrl','3linowX','811260xzrDws','3806825ETWbHA','14khchdy','11xaYIgK','49022mQFtrm','162588DHdpTa','16764qBmxsc','24869UhOgYG','3142868DkPugy','55xDqmVI','2324456dmFXSW'];a70_0xa9ca=function(){return _0x2c1f1a;};return a70_0xa9ca();}export const NPM_REGISTRY_BASE_URL=PRODUCT_CONFIG[a70_0xc81d65(0x164)];
@@ -1 +1 @@
1
- const a71_0x184460=a71_0x5276;(function(_0x281cd9,_0xe6a134){const _0x19f4c3=a71_0x5276,_0x20d39a=_0x281cd9();while(!![]){try{const _0x5af45a=-parseInt(_0x19f4c3(0x7d))/0x1*(-parseInt(_0x19f4c3(0x74))/0x2)+-parseInt(_0x19f4c3(0x7c))/0x3+parseInt(_0x19f4c3(0x6d))/0x4*(-parseInt(_0x19f4c3(0x80))/0x5)+parseInt(_0x19f4c3(0x6f))/0x6*(parseInt(_0x19f4c3(0x72))/0x7)+-parseInt(_0x19f4c3(0x7e))/0x8+parseInt(_0x19f4c3(0x7f))/0x9+-parseInt(_0x19f4c3(0x71))/0xa*(parseInt(_0x19f4c3(0x75))/0xb);if(_0x5af45a===_0xe6a134)break;else _0x20d39a['push'](_0x20d39a['shift']());}catch(_0x4085df){_0x20d39a['push'](_0x20d39a['shift']());}}}(a71_0x2637,0xd6bff));import{getEnv,isProduction}from'../constant/env.js';import{PRODUCT_CONFIG}from'../constant/product.js';let customApiDomain,customUserDomain,customRuntimeDomain,customSkillHubDomain;export function initDomains(_0x1d96f7){const _0x1225d1=a71_0x5276;customApiDomain=_0x1d96f7?.[_0x1225d1(0x6e)],customUserDomain=_0x1d96f7?.[_0x1225d1(0x76)],customRuntimeDomain=_0x1d96f7?.[_0x1225d1(0x73)],customSkillHubDomain=_0x1d96f7?.['skillHubDomain'];}export const getUserDomain=()=>customUserDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a71_0x184460(0x79)][a71_0x184460(0x7a)][a71_0x184460(0x78)]:PRODUCT_CONFIG[a71_0x184460(0x79)][a71_0x184460(0x81)][a71_0x184460(0x78)]);export const getApiDomain=()=>customApiDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a71_0x184460(0x79)]['production'][a71_0x184460(0x70)]:PRODUCT_CONFIG[a71_0x184460(0x79)]['nonProduction'][a71_0x184460(0x70)]);function a71_0x5276(_0x46b9ee,_0x16c132){_0x46b9ee=_0x46b9ee-0x6d;const _0x2637b4=a71_0x2637();let _0x52764d=_0x2637b4[_0x46b9ee];return _0x52764d;}export const getRuntimeDomain=()=>customRuntimeDomain||(isProduction(getEnv())?PRODUCT_CONFIG['domains'][a71_0x184460(0x7a)][a71_0x184460(0x7b)]:PRODUCT_CONFIG[a71_0x184460(0x79)][a71_0x184460(0x81)][a71_0x184460(0x7b)]);function a71_0x2637(){const _0x250aaa=['6gyGWBq','api','1490JXQWoJ','11158679fOpCjS','runtimeDomain','2QGWGZg','14740IIYVuW','userDomain','skillhub','user','domains','production','runtime','2293092BJOgfp','1028849fJPhJi','3864064nAdWSv','12739446EhDYHN','8558965oVrLsC','nonProduction','4VZepce','apiDomain'];a71_0x2637=function(){return _0x250aaa;};return a71_0x2637();}export const getSkillHubDomain=()=>customSkillHubDomain||(isProduction(getEnv())?PRODUCT_CONFIG['domains'][a71_0x184460(0x7a)][a71_0x184460(0x77)]:PRODUCT_CONFIG[a71_0x184460(0x79)][a71_0x184460(0x81)][a71_0x184460(0x77)]);
1
+ const a71_0x1ed4a0=a71_0x4e68;(function(_0xd12a67,_0xcdc69b){const _0x18cb39=a71_0x4e68,_0x2c642a=_0xd12a67();while(!![]){try{const _0x1591bb=-parseInt(_0x18cb39(0x96))/0x1*(parseInt(_0x18cb39(0x9a))/0x2)+parseInt(_0x18cb39(0x95))/0x3+-parseInt(_0x18cb39(0x98))/0x4*(-parseInt(_0x18cb39(0xa1))/0x5)+parseInt(_0x18cb39(0xa0))/0x6*(parseInt(_0x18cb39(0x9b))/0x7)+parseInt(_0x18cb39(0xa6))/0x8*(-parseInt(_0x18cb39(0x97))/0x9)+parseInt(_0x18cb39(0xa5))/0xa+parseInt(_0x18cb39(0x9f))/0xb;if(_0x1591bb===_0xcdc69b)break;else _0x2c642a['push'](_0x2c642a['shift']());}catch(_0x446cb2){_0x2c642a['push'](_0x2c642a['shift']());}}}(a71_0x55c0,0xbf6a7));function a71_0x55c0(){const _0xf3e5a1=['1KVEDhc','289458TUNqOE','4488444oEfOlo','userDomain','623262thXofz','1512qTiIGF','runtime','nonProduction','production','7649972YXqNnC','9534NliHht','5WohGbC','domains','user','skillhub','102500hFbGVi','304womLpK','runtimeDomain','api','apiDomain','440367JcTvoL'];a71_0x55c0=function(){return _0xf3e5a1;};return a71_0x55c0();}import{getEnv,isProduction}from'../constant/env.js';import{PRODUCT_CONFIG}from'../constant/product.js';let customApiDomain,customUserDomain,customRuntimeDomain,customSkillHubDomain;export function initDomains(_0x384d81){const _0x493ac8=a71_0x4e68;customApiDomain=_0x384d81?.[_0x493ac8(0x94)],customUserDomain=_0x384d81?.[_0x493ac8(0x99)],customRuntimeDomain=_0x384d81?.[_0x493ac8(0xa7)],customSkillHubDomain=_0x384d81?.['skillHubDomain'];}function a71_0x4e68(_0x4f3f22,_0x2703d5){_0x4f3f22=_0x4f3f22-0x93;const _0x55c0a0=a71_0x55c0();let _0x4e6885=_0x55c0a0[_0x4f3f22];return _0x4e6885;}export const getUserDomain=()=>customUserDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a71_0x1ed4a0(0xa2)]['production'][a71_0x1ed4a0(0xa3)]:PRODUCT_CONFIG[a71_0x1ed4a0(0xa2)][a71_0x1ed4a0(0x9d)][a71_0x1ed4a0(0xa3)]);export const getApiDomain=()=>customApiDomain||(isProduction(getEnv())?PRODUCT_CONFIG['domains'][a71_0x1ed4a0(0x9e)][a71_0x1ed4a0(0x93)]:PRODUCT_CONFIG[a71_0x1ed4a0(0xa2)][a71_0x1ed4a0(0x9d)][a71_0x1ed4a0(0x93)]);export const getRuntimeDomain=()=>customRuntimeDomain||(isProduction(getEnv())?PRODUCT_CONFIG['domains'][a71_0x1ed4a0(0x9e)][a71_0x1ed4a0(0x9c)]:PRODUCT_CONFIG[a71_0x1ed4a0(0xa2)][a71_0x1ed4a0(0x9d)][a71_0x1ed4a0(0x9c)]);export const getSkillHubDomain=()=>customSkillHubDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a71_0x1ed4a0(0xa2)][a71_0x1ed4a0(0x9e)][a71_0x1ed4a0(0xa4)]:PRODUCT_CONFIG[a71_0x1ed4a0(0xa2)]['nonProduction'][a71_0x1ed4a0(0xa4)]);
@@ -1 +1 @@
1
- const a72_0x31a332=a72_0x17c7;(function(_0x1ac52d,_0x5f59bb){const _0x24cf90=a72_0x17c7,_0x45fc45=_0x1ac52d();while(!![]){try{const _0x5cfcc3=parseInt(_0x24cf90(0xe3))/0x1*(-parseInt(_0x24cf90(0xd7))/0x2)+parseInt(_0x24cf90(0xe2))/0x3+-parseInt(_0x24cf90(0xd8))/0x4+parseInt(_0x24cf90(0xe6))/0x5+-parseInt(_0x24cf90(0xdf))/0x6*(parseInt(_0x24cf90(0xe7))/0x7)+-parseInt(_0x24cf90(0xe0))/0x8*(-parseInt(_0x24cf90(0xdd))/0x9)+parseInt(_0x24cf90(0xdc))/0xa*(-parseInt(_0x24cf90(0xe1))/0xb);if(_0x5cfcc3===_0x5f59bb)break;else _0x45fc45['push'](_0x45fc45['shift']());}catch(_0x4635ad){_0x45fc45['push'](_0x45fc45['shift']());}}}(a72_0x48a8,0x6e90d));import{productEnv}from'../constant/product.js';export const RUNTIME_ENV_VALUES=[a72_0x31a332(0xd9),a72_0x31a332(0xe4),a72_0x31a332(0xdb)];export function normalizeEnv(_0x7ea245){const _0x17f01f=a72_0x31a332;return _0x7ea245===_0x17f01f(0xe5)?_0x17f01f(0xd9):_0x7ea245;}export function isProduction(_0x26346d){const _0x2cba88=a72_0x31a332;return normalizeEnv(_0x26346d)===_0x2cba88(0xd9);}export function isDaily(_0x16fba6){return normalizeEnv(_0x16fba6)==='daily';}export function isDev(_0x41f069){const _0x1bf9c1=a72_0x31a332,_0x14b7f8=normalizeEnv(_0x41f069);return _0x14b7f8===_0x1bf9c1(0xe4)||_0x14b7f8===_0x1bf9c1(0xda);}let env=normalizeEnv(productEnv(a72_0x31a332(0xde))||'production');export function getEnv(){return env;}function a72_0x17c7(_0x427498,_0x249b4e){_0x427498=_0x427498-0xd7;const _0x48a862=a72_0x48a8();let _0x17c77a=_0x48a862[_0x427498];return _0x17c77a;}function a72_0x48a8(){const _0x261b63=['daily','30MMBgQA','5913549SGpoRX','ENV','2574atRAzO','8YiVAQk','440462FYVgxQ','2512839UfcmTT','249506vmyGUo','development','online','780650ozdlLX','3829YnhaKQ','4BwXFOx','1376504UpSgoH','production','dev'];a72_0x48a8=function(){return _0x261b63;};return a72_0x48a8();}export function initEnv(_0x32e272){env=normalizeEnv(_0x32e272);}
1
+ const a72_0xf665f2=a72_0x3949;(function(_0x2b74b3,_0x3ebbea){const _0xd9e7fb=a72_0x3949,_0x544a7e=_0x2b74b3();while(!![]){try{const _0x4dd767=parseInt(_0xd9e7fb(0x74))/0x1+parseInt(_0xd9e7fb(0x6b))/0x2+parseInt(_0xd9e7fb(0x68))/0x3*(-parseInt(_0xd9e7fb(0x69))/0x4)+-parseInt(_0xd9e7fb(0x6e))/0x5*(parseInt(_0xd9e7fb(0x75))/0x6)+parseInt(_0xd9e7fb(0x6d))/0x7+parseInt(_0xd9e7fb(0x71))/0x8+parseInt(_0xd9e7fb(0x70))/0x9*(parseInt(_0xd9e7fb(0x6a))/0xa);if(_0x4dd767===_0x3ebbea)break;else _0x544a7e['push'](_0x544a7e['shift']());}catch(_0x132fd0){_0x544a7e['push'](_0x544a7e['shift']());}}}(a72_0x364b,0xd0ffc));import{productEnv}from'../constant/product.js';export const RUNTIME_ENV_VALUES=[a72_0xf665f2(0x6f),a72_0xf665f2(0x72),'daily'];export function normalizeEnv(_0x343d45){const _0xf80180=a72_0xf665f2;return _0x343d45==='online'?_0xf80180(0x6f):_0x343d45;}function a72_0x364b(){const _0x420b09=['2230024Esypdd','dev','5586707PUVkhx','5umYxOW','production','18spHjdh','9756432uXDorr','development','daily','517892lDgnCv','9594408CAGTcw','3kQCSsd','5513108kEkTJU','914230oeoQZD'];a72_0x364b=function(){return _0x420b09;};return a72_0x364b();}export function isProduction(_0x2e8031){const _0x4ba22f=a72_0xf665f2;return normalizeEnv(_0x2e8031)===_0x4ba22f(0x6f);}export function isDaily(_0x5f4825){const _0x1c6e86=a72_0xf665f2;return normalizeEnv(_0x5f4825)===_0x1c6e86(0x73);}export function isDev(_0x22b0a6){const _0x2c70c4=a72_0xf665f2,_0x27ed10=normalizeEnv(_0x22b0a6);return _0x27ed10===_0x2c70c4(0x72)||_0x27ed10===_0x2c70c4(0x6c);}let env=normalizeEnv(productEnv('ENV')||a72_0xf665f2(0x6f));export function getEnv(){return env;}function a72_0x3949(_0x2a2173,_0x552537){_0x2a2173=_0x2a2173-0x68;const _0x364b19=a72_0x364b();let _0x3949b9=_0x364b19[_0x2a2173];return _0x3949b9;}export function initEnv(_0x107ff7){env=normalizeEnv(_0x107ff7);}
@@ -1 +1 @@
1
- function a73_0x2e7b(){const _0xa53acd=['276722irLsBM','33931280JuUHPV','13006935qlRwdq','pretty','204196ZWdjWH','95RRVyzD','7qFlghh','json','8683432KWPasn','compress','1162563wjBkBF','2359146ylLBcG','6GhZYNO'];a73_0x2e7b=function(){return _0xa53acd;};return a73_0x2e7b();}const a73_0x275111=a73_0x1cc0;(function(_0x6c5057,_0x35dd29){const _0x237f47=a73_0x1cc0,_0x54d135=_0x6c5057();while(!![]){try{const _0xf83004=-parseInt(_0x237f47(0x122))/0x1+-parseInt(_0x237f47(0x125))/0x2*(-parseInt(_0x237f47(0x124))/0x3)+-parseInt(_0x237f47(0x11c))/0x4*(parseInt(_0x237f47(0x11d))/0x5)+-parseInt(_0x237f47(0x123))/0x6*(parseInt(_0x237f47(0x11e))/0x7)+parseInt(_0x237f47(0x120))/0x8+-parseInt(_0x237f47(0x11a))/0x9+parseInt(_0x237f47(0x119))/0xa;if(_0xf83004===_0x35dd29)break;else _0x54d135['push'](_0x54d135['shift']());}catch(_0x41bead){_0x54d135['push'](_0x54d135['shift']());}}}(a73_0x2e7b,0xbf7fb));function a73_0x1cc0(_0x149b46,_0x4732d7){_0x149b46=_0x149b46-0x119;const _0x2e7b1c=a73_0x2e7b();let _0x1cc061=_0x2e7b1c[_0x149b46];return _0x1cc061;}export const OUTPUT_FORMAT_VALUES=[a73_0x275111(0x11f),a73_0x275111(0x11b),a73_0x275111(0x121)];
1
+ function a73_0x673f(){const _0x21de31=['12vMQyuC','2061hIwOCV','1xXXfJp','1581756qBtaKD','5391191DTTSnC','16010zGJZnx','7KGoDPQ','242332eAQYnu','2379ijchCK','10acoWUp','json','878478GDZGZB','2564pkOkwF','4848424qrhwfc','pretty'];a73_0x673f=function(){return _0x21de31;};return a73_0x673f();}function a73_0x5694(_0x23d6a,_0xdee7b1){_0x23d6a=_0x23d6a-0x1bf;const _0x673f16=a73_0x673f();let _0x5694fb=_0x673f16[_0x23d6a];return _0x5694fb;}const a73_0x2c5f7e=a73_0x5694;(function(_0x2d3889,_0x1cc990){const _0x4bc0a9=a73_0x5694,_0x579930=_0x2d3889();while(!![]){try{const _0x1de1f6=parseInt(_0x4bc0a9(0x1c6))/0x1*(-parseInt(_0x4bc0a9(0x1cb))/0x2)+-parseInt(_0x4bc0a9(0x1cc))/0x3*(parseInt(_0x4bc0a9(0x1c1))/0x4)+-parseInt(_0x4bc0a9(0x1cd))/0x5*(-parseInt(_0x4bc0a9(0x1c0))/0x6)+parseInt(_0x4bc0a9(0x1ca))/0x7*(parseInt(_0x4bc0a9(0x1c2))/0x8)+parseInt(_0x4bc0a9(0x1c5))/0x9*(parseInt(_0x4bc0a9(0x1c9))/0xa)+parseInt(_0x4bc0a9(0x1c7))/0xb+-parseInt(_0x4bc0a9(0x1c4))/0xc*(parseInt(_0x4bc0a9(0x1c8))/0xd);if(_0x1de1f6===_0x1cc990)break;else _0x579930['push'](_0x579930['shift']());}catch(_0x2afb7d){_0x579930['push'](_0x579930['shift']());}}}(a73_0x673f,0x5923e));export const OUTPUT_FORMAT_VALUES=[a73_0x2c5f7e(0x1bf),a73_0x2c5f7e(0x1c3),'compress'];
@@ -1 +1 @@
1
- const a74_0x4f7fde=a74_0x4462;(function(_0x4aa229,_0x5ce205){const _0x5d54fe=a74_0x4462,_0x3932dc=_0x4aa229();while(!![]){try{const _0x15c4fa=parseInt(_0x5d54fe(0x13d))/0x1*(-parseInt(_0x5d54fe(0x155))/0x2)+-parseInt(_0x5d54fe(0x14b))/0x3*(parseInt(_0x5d54fe(0x13b))/0x4)+-parseInt(_0x5d54fe(0x159))/0x5*(-parseInt(_0x5d54fe(0x13a))/0x6)+-parseInt(_0x5d54fe(0x150))/0x7+-parseInt(_0x5d54fe(0x151))/0x8*(parseInt(_0x5d54fe(0x149))/0x9)+parseInt(_0x5d54fe(0x148))/0xa*(parseInt(_0x5d54fe(0x14c))/0xb)+-parseInt(_0x5d54fe(0x15a))/0xc*(-parseInt(_0x5d54fe(0x152))/0xd);if(_0x15c4fa===_0x5ce205)break;else _0x3932dc['push'](_0x3932dc['shift']());}catch(_0x1d23bf){_0x3932dc['push'](_0x3932dc['shift']());}}}(a74_0x2a6c,0xd8ac3));export const PRODUCT_CONFIG={'cliBinName':a74_0x4f7fde(0x154),'cliDisplayName':a74_0x4f7fde(0x146),'npmPackageName':a74_0x4f7fde(0x145),'skillSource':a74_0x4f7fde(0x157),'internalSkillSource':a74_0x4f7fde(0x13c),'globalSkillName':a74_0x4f7fde(0x154),'npmRegistryBaseUrl':a74_0x4f7fde(0x14f),'envPrefix':a74_0x4f7fde(0x158),'legacyEnvPrefixes':[a74_0x4f7fde(0x13f)],'configFileNames':['.lovrabet.json','.lovrabetrc'],'newConfigFileName':a74_0x4f7fde(0x141),'homeDirName':'.lovrabet','logFileName':a74_0x4f7fde(0x139),'invokeSource':'cli:lovrabet-runtime','userCenterDisplayName':a74_0x4f7fde(0x14e),'skipNpxSkillsEnvSuffix':'SKIP_NPX_SKILLS','domains':{'production':{'user':a74_0x4f7fde(0x140),'api':a74_0x4f7fde(0x156),'runtime':a74_0x4f7fde(0x142),'skillhub':a74_0x4f7fde(0x14d)},'nonProduction':{'user':'https://user-daily.lovrabet.com','api':a74_0x4f7fde(0x144),'runtime':a74_0x4f7fde(0x15b),'skillhub':a74_0x4f7fde(0x13e)}},'accessKeyCreatePath':a74_0x4f7fde(0x143)};function a74_0x2a6c(){const _0x386b24=['legacyEnvPrefixes','4397091RyxAPz','341iKpZxm','https://skills.lovrabet.com','Lovrabet\x20User\x20Center','https://registry.npmjs.org','1177736FoXeLs','8swCZOD','13yKeTtZ','envPrefix','lovrabet','12462RhljVk','https://api.lovrabet.com','lovrabet/lovrabet-cli','LOVRABET','395880CitXNh','18226932CwGZoN','https://daily-runtime.lovrabet.com','.lovrabet-runtime.log','24LIaUpo','4EScLVq','git@codeup.aliyun.com:yuntoo/open/lovrabet-runtime-cli.git','25HdAIxf','https://skills-daily.lovrabet.com','RABETBASE','https://user.lovrabet.com','.lovrabet.json','https://runtime.lovrabet.com','/user/ak','https://daily-api.lovrabet.com','@lovrabet/lovrabet-cli','Lovrabet\x20Runtime\x20CLI','map','398590XMjQaR','3546297QTJiTO'];a74_0x2a6c=function(){return _0x386b24;};return a74_0x2a6c();}export function productEnvName(_0x25a443){const _0x3f9f57=a74_0x4f7fde;return PRODUCT_CONFIG[_0x3f9f57(0x153)]+'_'+_0x25a443;}function a74_0x4462(_0x129a43,_0xd902b){_0x129a43=_0x129a43-0x139;const _0x2a6c74=a74_0x2a6c();let _0x446263=_0x2a6c74[_0x129a43];return _0x446263;}export function productEnvNames(_0x4a482f){const _0x541738=a74_0x4f7fde;return[productEnvName(_0x4a482f),...PRODUCT_CONFIG[_0x541738(0x14a)][_0x541738(0x147)](_0x5ec7d8=>_0x5ec7d8+'_'+_0x4a482f)];}export function productEnv(_0x20769f){for(const _0x1fa8f7 of productEnvNames(_0x20769f)){const _0x1972e=process.env[_0x1fa8f7];if(_0x1972e!==undefined)return _0x1972e;}return undefined;}
1
+ const a74_0x1d4bba=a74_0x4226;function a74_0x5820(){const _0x42a1db=['LOVRABET','121mhCWXz','legacyEnvPrefixes','https://user-daily.lovrabet.com','@lovrabet/lovrabet-cli','/user/ak','Lovrabet\x20Runtime\x20CLI','https://user.lovrabet.com','.lovrabet','182350QPCgxk','https://api.lovrabet.com','2250CMCmyJ','SKIP_NPX_SKILLS','https://registry.npmjs.org','lovrabet','27968oHyqKp','5612796axWXwP','3633261SxVYfY','7504145lUQCEn','.lovrabetrc','https://skills-daily.lovrabet.com','64712IVbFog','map','https://daily-runtime.lovrabet.com','https://runtime.lovrabet.com','Lovrabet\x20User\x20Center','.lovrabet.json','7897939kyqlst','.lovrabet-runtime.log','6DuFSnq','4wCUdds','39sIbcnz'];a74_0x5820=function(){return _0x42a1db;};return a74_0x5820();}(function(_0x4dfe27,_0x19bdbb){const _0x1351c8=a74_0x4226,_0x5c0886=_0x4dfe27();while(!![]){try{const _0x29cf13=-parseInt(_0x1351c8(0x18d))/0x1*(parseInt(_0x1351c8(0x1a3))/0x2)+parseInt(_0x1351c8(0x19f))/0x3*(-parseInt(_0x1351c8(0x18c))/0x4)+-parseInt(_0x1351c8(0x1a0))/0x5+-parseInt(_0x1351c8(0x18b))/0x6*(parseInt(_0x1351c8(0x189))/0x7)+parseInt(_0x1351c8(0x19d))/0x8*(parseInt(_0x1351c8(0x199))/0x9)+parseInt(_0x1351c8(0x197))/0xa+parseInt(_0x1351c8(0x18f))/0xb*(parseInt(_0x1351c8(0x19e))/0xc);if(_0x29cf13===_0x19bdbb)break;else _0x5c0886['push'](_0x5c0886['shift']());}catch(_0x45eb6a){_0x5c0886['push'](_0x5c0886['shift']());}}}(a74_0x5820,0xe4535));export const PRODUCT_CONFIG={'cliBinName':a74_0x1d4bba(0x19c),'cliDisplayName':a74_0x1d4bba(0x194),'npmPackageName':a74_0x1d4bba(0x192),'skillSource':'lovrabet/lovrabet-cli','internalSkillSource':'git@codeup.aliyun.com:yuntoo/open/lovrabet-runtime-cli.git','globalSkillName':a74_0x1d4bba(0x19c),'npmRegistryBaseUrl':a74_0x1d4bba(0x19b),'envPrefix':a74_0x1d4bba(0x18e),'legacyEnvPrefixes':['RABETBASE'],'configFileNames':[a74_0x1d4bba(0x188),a74_0x1d4bba(0x1a1)],'newConfigFileName':a74_0x1d4bba(0x188),'homeDirName':a74_0x1d4bba(0x196),'logFileName':a74_0x1d4bba(0x18a),'invokeSource':'cli:lovrabet-runtime','userCenterDisplayName':a74_0x1d4bba(0x187),'skipNpxSkillsEnvSuffix':a74_0x1d4bba(0x19a),'domains':{'production':{'user':a74_0x1d4bba(0x195),'api':a74_0x1d4bba(0x198),'runtime':a74_0x1d4bba(0x186),'skillhub':'https://skills.lovrabet.com'},'nonProduction':{'user':a74_0x1d4bba(0x191),'api':'https://daily-api.lovrabet.com','runtime':a74_0x1d4bba(0x185),'skillhub':a74_0x1d4bba(0x1a2)}},'accessKeyCreatePath':a74_0x1d4bba(0x193)};function a74_0x4226(_0x15e5e3,_0x1d0b7c){_0x15e5e3=_0x15e5e3-0x184;const _0x582071=a74_0x5820();let _0x422637=_0x582071[_0x15e5e3];return _0x422637;}export function productEnvName(_0x49a674){return PRODUCT_CONFIG['envPrefix']+'_'+_0x49a674;}export function productEnvNames(_0x1abdcf){const _0x1f7ab0=a74_0x1d4bba;return[productEnvName(_0x1abdcf),...PRODUCT_CONFIG[_0x1f7ab0(0x190)][_0x1f7ab0(0x184)](_0x43bf9b=>_0x43bf9b+'_'+_0x1abdcf)];}export function productEnv(_0x22b9bf){for(const _0x352579 of productEnvNames(_0x22b9bf)){const _0x281575=process.env[_0x352579];if(_0x281575!==undefined)return _0x281575;}return undefined;}
@@ -1 +1 @@
1
- function a75_0x2e85(_0x2e8f6d,_0x45ce9f){_0x2e8f6d=_0x2e8f6d-0xa1;const _0x59ef79=a75_0x59ef();let _0x2e85bf=_0x59ef79[_0x2e8f6d];return _0x2e85bf;}function a75_0x59ef(){const _0x5bac49=['70557CJhpcX','40505XUudFF','361945bdpMCN','32gSeOrF','12bLUgvT','2207200WRMAXZ','40LfuiNz','25795099pHERWO','63kuRihe','447290TAREXS','6kRTejp','3312659kxAJWg'];a75_0x59ef=function(){return _0x5bac49;};return a75_0x59ef();}(function(_0xac3c86,_0x21920a){const _0x1cb268=a75_0x2e85,_0x4ee175=_0xac3c86();while(!![]){try{const _0x274f74=-parseInt(_0x1cb268(0xa3))/0x1*(parseInt(_0x1cb268(0xa8))/0x2)+-parseInt(_0x1cb268(0xa2))/0x3+-parseInt(_0x1cb268(0xa5))/0x4*(parseInt(_0x1cb268(0xa4))/0x5)+parseInt(_0x1cb268(0xac))/0x6*(-parseInt(_0x1cb268(0xa1))/0x7)+parseInt(_0x1cb268(0xa7))/0x8+parseInt(_0x1cb268(0xaa))/0x9*(-parseInt(_0x1cb268(0xab))/0xa)+-parseInt(_0x1cb268(0xa9))/0xb*(-parseInt(_0x1cb268(0xa6))/0xc);if(_0x274f74===_0x21920a)break;else _0x4ee175['push'](_0x4ee175['shift']());}catch(_0x114e75){_0x4ee175['push'](_0x4ee175['shift']());}}}(a75_0x59ef,0x66fce));export const RISK_LEVEL_VALUES=['read','write','high-risk-write'];
1
+ function a75_0x55a9(_0x28f3fc,_0x328c90){_0x28f3fc=_0x28f3fc-0x11a;const _0x30ca64=a75_0x30ca();let _0x55a919=_0x30ca64[_0x28f3fc];return _0x55a919;}const a75_0x28d4ff=a75_0x55a9;(function(_0xa56e7b,_0xfe7b3){const _0x29e839=a75_0x55a9,_0x817959=_0xa56e7b();while(!![]){try{const _0x32f434=parseInt(_0x29e839(0x123))/0x1+parseInt(_0x29e839(0x121))/0x2+parseInt(_0x29e839(0x11f))/0x3*(parseInt(_0x29e839(0x11b))/0x4)+-parseInt(_0x29e839(0x124))/0x5*(-parseInt(_0x29e839(0x11d))/0x6)+-parseInt(_0x29e839(0x122))/0x7*(parseInt(_0x29e839(0x11a))/0x8)+parseInt(_0x29e839(0x11c))/0x9+-parseInt(_0x29e839(0x11e))/0xa*(parseInt(_0x29e839(0x120))/0xb);if(_0x32f434===_0xfe7b3)break;else _0x817959['push'](_0x817959['shift']());}catch(_0xeb36e5){_0x817959['push'](_0x817959['shift']());}}}(a75_0x30ca,0x661e2));export const RISK_LEVEL_VALUES=['read',a75_0x28d4ff(0x125),a75_0x28d4ff(0x126)];function a75_0x30ca(){const _0x12c07f=['2068dBUuKo','760671lDmUfr','36lnWtVI','730UJvlIS','2385YtqozA','268565gSqwJq','1240922lkGuKL','721SUVIiN','598146iTWitx','486040rzGwSA','write','high-risk-write','7520WSNOJr'];a75_0x30ca=function(){return _0x12c07f;};return a75_0x30ca();}
@@ -1 +1 @@
1
- function a76_0x48c5(){const _0x32be4b=['production','7SPYRka','3698992HcjWIk','3339006ilGwKk','150840SOJfIR','30DxHdQd','18021710icFoDp','1110849YMUJSH','2419659hRKHyB','63nvLLGy','23774gcZeGg'];a76_0x48c5=function(){return _0x32be4b;};return a76_0x48c5();}const a76_0x21742f=a76_0x3e66;(function(_0x57344b,_0x4fc69c){const _0x182506=a76_0x3e66,_0x1eea02=_0x57344b();while(!![]){try{const _0x418109=parseInt(_0x182506(0x1a5))/0x1*(parseInt(_0x182506(0x1a6))/0x2)+parseInt(_0x182506(0x1ae))/0x3+parseInt(_0x182506(0x1ab))/0x4*(-parseInt(_0x182506(0x1ac))/0x5)+-parseInt(_0x182506(0x1aa))/0x6*(-parseInt(_0x182506(0x1a8))/0x7)+parseInt(_0x182506(0x1a9))/0x8+parseInt(_0x182506(0x1a4))/0x9+-parseInt(_0x182506(0x1ad))/0xa;if(_0x418109===_0x4fc69c)break;else _0x1eea02['push'](_0x1eea02['shift']());}catch(_0x16679b){_0x1eea02['push'](_0x1eea02['shift']());}}}(a76_0x48c5,0x5c65b));function a76_0x3e66(_0x3d388f,_0x25107d){_0x3d388f=_0x3d388f-0x1a4;const _0x48c52f=a76_0x48c5();let _0x3e6697=_0x48c52f[_0x3d388f];return _0x3e6697;}import{PRODUCT_CONFIG}from'../constant/product.js';export const USER_ACCESS_KEY_CREATE_URL=''+PRODUCT_CONFIG['domains'][a76_0x21742f(0x1a7)]['user']+PRODUCT_CONFIG['accessKeyCreatePath'];
1
+ const a76_0x48037a=a76_0x129e;function a76_0x4b46(){const _0x3f85e2=['3989696PwGTaw','3966770qPXVot','161JMblHt','production','user','91896ACSDKg','170xHdXUk','6326NXFVkF','domains','1486184iDcCYg','3375900DJPTCM','104ncpwHS','147429wJpleU'];a76_0x4b46=function(){return _0x3f85e2;};return a76_0x4b46();}(function(_0x523291,_0x557319){const _0x4e61cc=a76_0x129e,_0xc052c4=_0x523291();while(!![]){try{const _0x1ab2e4=parseInt(_0x4e61cc(0x161))/0x1*(parseInt(_0x4e61cc(0x15d))/0x2)+parseInt(_0x4e61cc(0x160))/0x3+-parseInt(_0x4e61cc(0x15f))/0x4+-parseInt(_0x4e61cc(0x164))/0x5+-parseInt(_0x4e61cc(0x15b))/0x6*(-parseInt(_0x4e61cc(0x158))/0x7)+parseInt(_0x4e61cc(0x163))/0x8+parseInt(_0x4e61cc(0x162))/0x9*(-parseInt(_0x4e61cc(0x15c))/0xa);if(_0x1ab2e4===_0x557319)break;else _0xc052c4['push'](_0xc052c4['shift']());}catch(_0x32d055){_0xc052c4['push'](_0xc052c4['shift']());}}}(a76_0x4b46,0xd269f));import{PRODUCT_CONFIG}from'../constant/product.js';function a76_0x129e(_0x4cd82f,_0x333187){_0x4cd82f=_0x4cd82f-0x158;const _0x4b467a=a76_0x4b46();let _0x129e1e=_0x4b467a[_0x4cd82f];return _0x129e1e;}export const USER_ACCESS_KEY_CREATE_URL=''+PRODUCT_CONFIG[a76_0x48037a(0x15e)][a76_0x48037a(0x159)][a76_0x48037a(0x15a)]+PRODUCT_CONFIG['accessKeyCreatePath'];
package/lib/context.js CHANGED
@@ -1 +1 @@
1
- const a77_0x33b869=a77_0x18d4;(function(_0x6d5c05,_0x30aaae){const _0x10b4d8=a77_0x18d4,_0x31d32e=_0x6d5c05();while(!![]){try{const _0x550ebc=parseInt(_0x10b4d8(0x1db))/0x1*(parseInt(_0x10b4d8(0x1e8))/0x2)+-parseInt(_0x10b4d8(0x204))/0x3+parseInt(_0x10b4d8(0x1d3))/0x4+parseInt(_0x10b4d8(0x1c7))/0x5*(-parseInt(_0x10b4d8(0x1e4))/0x6)+parseInt(_0x10b4d8(0x1d6))/0x7*(-parseInt(_0x10b4d8(0x20c))/0x8)+parseInt(_0x10b4d8(0x1f1))/0x9+-parseInt(_0x10b4d8(0x1cf))/0xa*(-parseInt(_0x10b4d8(0x1eb))/0xb);if(_0x550ebc===_0x30aaae)break;else _0x31d32e['push'](_0x31d32e['shift']());}catch(_0x475bb2){_0x31d32e['push'](_0x31d32e['shift']());}}}(a77_0x4cf9,0x55221));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_0x18d4(_0x21795f,_0x35bc8c){_0x21795f=_0x21795f-0x1c4;const _0x4cf915=a77_0x4cf9();let _0x18d46e=_0x4cf915[_0x21795f];return _0x18d46e;}function a77_0x4cf9(){const _0x17d6f8=['ACCESS_KEY','nonInteractive','riskLevel','1905504dnwtXQ','true','defaultApp','7aKxyKb','trim','argv','setRawMode','.tmp','69227deQKOG','accessKey','values','stdin','setLogPath','daily','globalConfig','appcode','EXDEV','1253838CExWbq','cwd','./constant/domain.js','parse','10bjSUmN','configFileNames','apps','11nTHIcz','project','projectConfig','inherit','APP','production','2714427jwEPDz','locale','slice','VERBOSE','stringify','local-alias','env','global','development','pageSize','FORMAT','online','ENV','runtimeDomain','utf8','write','newConfigFileName','authRequired','./constant/env.js','706338GGqYji','empty','APPCODE','raw','code','maxRisk','skillHubDomain','string','1507664YgyPjn','isTTY','setRawCommand','object','some','message','EACCES','10qxLlpy','stdout','format','app','apiDomain','isRaw','EPERM','explicit','664410DzPNML'];a77_0x4cf9=function(){return _0x17d6f8;};return a77_0x4cf9();}import{resolveCachedAppCode}from'./commands/app/cache.js';export{AUTH_MODE,isAuthMode}from'./constant/auth-mode.js';const CONFIG_NAMES=PRODUCT_CONFIG[a77_0x33b869(0x1e9)];export const NEW_CONFIG_NAME=PRODUCT_CONFIG[a77_0x33b869(0x201)];function resolveConfigPath(_0xf32bca){for(const _0x5779ea of CONFIG_NAMES){const _0x4737cc=resolve(_0xf32bca,_0x5779ea);if(existsSync(_0x4737cc))return _0x4737cc;}return undefined;}export function resolveWriteConfigPath(_0x28f4fb){const _0x10a1b4=a77_0x33b869,_0x35ca54=_0x28f4fb===_0x10a1b4(0x1ec)?process['cwd']():homedir(),_0x51a746=resolveConfigPath(_0x35ca54);return _0x51a746??resolve(_0x35ca54,NEW_CONFIG_NAME);}export function readConfigFile(_0xe3a064){const _0x353251=a77_0x33b869;try{if(existsSync(_0xe3a064)){const _0x287e68=readFileSync(_0xe3a064,{'encoding':_0x353251(0x1ff)});if(_0x287e68){const _0xa210d=JSON['parse'](_0x287e68);return migrateOnlineEnv(_0xe3a064,_0xa210d),_0xa210d;}}}catch{}return{};}function migrateOnlineEnv(_0x259a3a,_0x8454af){const _0x392fab=a77_0x33b869;let _0x1a953f=![];_0x8454af[_0x392fab(0x1f7)]===_0x392fab(0x1fc)&&(_0x8454af['env']=_0x392fab(0x1f0),_0x1a953f=!![]);if(_0x8454af[_0x392fab(0x1ea)]&&typeof _0x8454af[_0x392fab(0x1ea)]===_0x392fab(0x20f))for(const _0x4f2187 of Object[_0x392fab(0x1dd)](_0x8454af[_0x392fab(0x1ea)])){_0x4f2187&&_0x4f2187[_0x392fab(0x1f7)]===_0x392fab(0x1fc)&&(_0x4f2187['env']=_0x392fab(0x1f0),_0x1a953f=!![]);}if(_0x1a953f)try{writeConfigFile(_0x259a3a,_0x8454af);}catch{}}export function writeConfigFile(_0x5d254f,_0x145833){const _0x51e009=a77_0x33b869,_0x4ef2a9=dirname(_0x5d254f);!existsSync(_0x4ef2a9)&&mkdirSync(_0x4ef2a9,{'recursive':!![]});const _0x1f425d=_0x5d254f+_0x51e009(0x1da);try{writeFileSync(_0x1f425d,JSON[_0x51e009(0x1f5)](_0x145833,null,0x2)+'\x0a',{'encoding':_0x51e009(0x1ff),'mode':0x180});try{renameSync(_0x1f425d,_0x5d254f);}catch(_0x1ba4bc){if(_0x1ba4bc['code']===_0x51e009(0x1cd)||_0x1ba4bc['code']===_0x51e009(0x1e3)||_0x1ba4bc[_0x51e009(0x208)]===_0x51e009(0x1c6)){writeFileSync(_0x5d254f,JSON['stringify'](_0x145833,null,0x2)+'\x0a',{'encoding':_0x51e009(0x1ff)});try{unlinkSync(_0x1f425d);}catch{}}else throw _0x1ba4bc;}}catch(_0x56bf5f){try{unlinkSync(_0x1f425d);}catch{}throw _0x56bf5f;}}export function isNonInteractiveMode(_0x4c68a4){const _0x1c9418=a77_0x33b869;return!!(_0x4c68a4[_0x1c9418(0x1d1)]||_0x4c68a4['ci']||productEnvNames('CI')[_0x1c9418(0x1c4)](_0x2d1fa8=>process.env[_0x2d1fa8]===_0x1c9418(0x1d4))||process.env.CI===_0x1c9418(0x1d4)||!process[_0x1c9418(0x1c8)][_0x1c9418(0x20d)]||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x17cb4b=a77_0x33b869;if(!process[_0x17cb4b(0x1de)][_0x17cb4b(0x20d)])return![];try{const _0x309501=process['stdin'][_0x17cb4b(0x1cc)];return process[_0x17cb4b(0x1de)]['setRawMode'](!![]),process[_0x17cb4b(0x1de)][_0x17cb4b(0x1d9)](_0x309501??![]),!![];}catch{return![];}}export async function createContext(_0x45b24c){const _0x439f72=a77_0x33b869,_0x4199dc=readRawConfig(),_0x214f4d=buildConfig(_0x4199dc,_0x45b24c);await initGlobalEnvironment(_0x214f4d);const {getUserDomain:_0x28b870,getApiDomain:_0x1a7408}=await import(_0x439f72(0x1e6)),_0x390e9a={'apiDomain':_0x1a7408(),'userDomain':_0x28b870()},_0x5d84c0=await buildAuth(_0x214f4d);logger[_0x439f72(0x1df)](process[_0x439f72(0x1e5)]());const _0xf0db86=(CLI_BIN_NAME+'\x20'+process[_0x439f72(0x1d8)][_0x439f72(0x1f3)](0x2)['join']('\x20'))[_0x439f72(0x1d7)]();logger[_0x439f72(0x20e)](_0xf0db86);const _0x3da4d0=isNonInteractiveMode(_0x45b24c);return{'config':_0x214f4d,'auth':_0x5d84c0,'logger':logger,'env':_0x390e9a,'nonInteractive':_0x3da4d0};}export function buildConfigFromFlags(_0x260ecc){return buildConfig(readRawConfig(),_0x260ecc);}export function getLocalAppAliases(_0x2daef7){const _0x3db441=a77_0x33b869;return _0x2daef7['apps']&&typeof _0x2daef7[_0x3db441(0x1ea)]===_0x3db441(0x20f)?_0x2daef7[_0x3db441(0x1ea)]:{};}export function resolveLocalAppAliasCode(_0x1e0101,_0x3ed72b){const _0x325a58=a77_0x33b869;if(!_0x3ed72b)return undefined;const _0x58a162=getLocalAppAliases(_0x1e0101)[_0x3ed72b],_0xd08adb=_0x58a162?.[_0x325a58(0x1e2)];return typeof _0xd08adb===_0x325a58(0x20b)&&_0xd08adb[_0x325a58(0x1d7)]()?_0xd08adb['trim']():undefined;}export function readAppCodeFromConfig(){const _0x1f9000=a77_0x33b869,_0x49188c=readRawConfig(),_0x1e8889=_0x49188c[_0x1f9000(0x1e2)]??_0x49188c['app'];if(typeof _0x1e8889==='string'&&_0x1e8889[_0x1f9000(0x1d7)]())return _0x1e8889['trim']();const _0xd4476d=resolveLocalAppAliasCode(_0x49188c,typeof _0x49188c[_0x1f9000(0x1d5)]==='string'?_0x49188c[_0x1f9000(0x1d5)]:undefined);if(_0xd4476d)return _0xd4476d;const _0x53aad9=normalizeEnv(String(_0x49188c[_0x1f9000(0x1f7)]||_0x1f9000(0x1f0))),_0x45d58d=isDaily(_0x53aad9)?'daily':isDev(_0x53aad9)?_0x1f9000(0x1f9):_0x1f9000(0x1f0),_0x5d2764=resolveCachedAppCode(typeof _0x49188c[_0x1f9000(0x1d5)]===_0x1f9000(0x20b)?_0x49188c[_0x1f9000(0x1d5)]:undefined,_0x45d58d,typeof _0x49188c[_0x1f9000(0x1dc)]==='string'?_0x49188c['accessKey']:undefined);if(_0x5d2764)return _0x5d2764;const _0x38e2b2=Object[_0x1f9000(0x1dd)](getLocalAppAliases(_0x49188c))['find'](_0x3d1d4d=>_0x3d1d4d?.[_0x1f9000(0x1e2)]);return typeof _0x38e2b2?.['appcode']===_0x1f9000(0x20b)&&_0x38e2b2[_0x1f9000(0x1e2)][_0x1f9000(0x1d7)]()?_0x38e2b2[_0x1f9000(0x1e2)][_0x1f9000(0x1d7)]():undefined;}export function readScopedConfig(_0x4895c2){const _0x110ea1=a77_0x33b869,_0x56b0b7=_0x4895c2[_0x110ea1(0x1f8)]?'global':'project';return readConfigFile(resolveWriteConfigPath(_0x56b0b7));}export function writeScopedConfig(_0x14c17d,_0x4cbc2e){const _0xf6f10a=a77_0x33b869,_0x18da3a=_0x4cbc2e[_0xf6f10a(0x1f8)]?_0xf6f10a(0x1f8):'project';writeConfigFile(resolveWriteConfigPath(_0x18da3a),_0x14c17d);}export async function initGlobalEnvironment(_0xa16d6a){const _0x45a568=a77_0x33b869,{initEnv:_0x498435}=await import(_0x45a568(0x203));_0x498435(_0xa16d6a['env']);const {initDomains:_0x93f878}=await import('./constant/domain.js');_0x93f878({'apiDomain':_0xa16d6a[_0x45a568(0x207)][_0x45a568(0x1cb)]||_0xa16d6a[_0x45a568(0x207)]['host']||undefined,'userDomain':_0xa16d6a[_0x45a568(0x207)]['userDomain']||undefined,'runtimeDomain':_0xa16d6a[_0x45a568(0x207)][_0x45a568(0x1fe)]||undefined,'skillHubDomain':_0xa16d6a['raw'][_0x45a568(0x20a)]||undefined});}export function getProjectConfigPath(){const _0x5d6a4e=a77_0x33b869;return resolveConfigPath(process[_0x5d6a4e(0x1e5)]());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function inspectCliConfigJsonFile(_0xc7ecd5){const _0x5b6a1c=a77_0x33b869;if(!existsSync(_0xc7ecd5))return{'status':'missing'};try{const _0x5516f6=readFileSync(_0xc7ecd5,{'encoding':_0x5b6a1c(0x1ff)});if(!_0x5516f6?.[_0x5b6a1c(0x1d7)]())return{'status':_0x5b6a1c(0x205)};const _0x52c471=JSON[_0x5b6a1c(0x1e7)](_0x5516f6);return{'status':'ok','data':_0x52c471};}catch(_0x421434){return{'status':'error','message':_0x421434 instanceof Error?_0x421434[_0x5b6a1c(0x1c5)]:String(_0x421434)};}}export function loadRawConfigLayers(_0x1988d0){const _0x707733=a77_0x33b869;let _0x2e9480={},_0x4c4346={},_0x5ab6b8,_0x174b00;try{_0x5ab6b8=resolveConfigPath(homedir());if(_0x5ab6b8){const _0x4dca0d=readFileSync(_0x5ab6b8,{'encoding':_0x707733(0x1ff)});if(_0x4dca0d)_0x2e9480=JSON[_0x707733(0x1e7)](_0x4dca0d);}}catch{}try{const _0x555d9e=_0x1988d0||process[_0x707733(0x1e5)]();_0x174b00=resolveConfigPath(_0x555d9e);if(_0x174b00){const _0x5eadb6=readFileSync(_0x174b00,{'encoding':'utf8'});if(_0x5eadb6)_0x4c4346=JSON['parse'](_0x5eadb6);}}catch{}return{'globalPath':_0x5ab6b8,'projectPath':_0x174b00,'globalConfig':_0x2e9480,'projectConfig':_0x4c4346};}function mergeRawConfigLayers(_0x1e1bd3){const _0x386b99=a77_0x33b869,{globalConfig:_0x5afa34,projectConfig:_0x480472}=_0x1e1bd3;if(_0x480472[_0x386b99(0x1ee)]===![]){const _0x2b0e31={..._0x480472};return delete _0x2b0e31['inherit'],_0x2b0e31;}const _0x583ce0={..._0x5afa34,..._0x480472};if(_0x386b99(0x1d5)in _0x480472)_0x583ce0[_0x386b99(0x1d5)]=_0x480472[_0x386b99(0x1d5)];else _0x5afa34['defaultApp']&&(_0x583ce0[_0x386b99(0x1d5)]=_0x5afa34[_0x386b99(0x1d5)]);return _0x583ce0;}export function isInProject(){return!!getProjectConfigPath();}export function readRawConfig(_0x54b3ba){return mergeRawConfigLayers(loadRawConfigLayers(_0x54b3ba));}export function readRawConfigWithLayers(_0x39e6ef){const _0x354645=loadRawConfigLayers(_0x39e6ef);return{'config':mergeRawConfigLayers(_0x354645),'layers':_0x354645};}export function resolveDefaultAppSource(_0x4da39c){const _0xa2b18a=a77_0x33b869;if('defaultApp'in _0x4da39c[_0xa2b18a(0x1ed)])return'project';if(_0x4da39c[_0xa2b18a(0x1ed)]['inherit']===![])return null;if(_0x4da39c[_0xa2b18a(0x1e1)]['defaultApp'])return'global';return null;}function buildConfig(_0x25657a,_0x3aed30){const _0x54de7f=a77_0x33b869,_0x4bc2fc=_0x25657a[_0x54de7f(0x1d5)]||undefined,_0x40a192=_0x3aed30[_0x54de7f(0x1ca)]||env(_0x54de7f(0x1ef))||undefined,_0x1f0dd8=_0x40a192||_0x4bc2fc||undefined,_0x2e555e=env(_0x54de7f(0x1d0))||_0x25657a['accessKey']||undefined,_0x3ac5f6=_0x3aed30[_0x54de7f(0x1f7)]||env(_0x54de7f(0x1fd))||_0x25657a[_0x54de7f(0x1f7)]||DEFAULT_CONFIG_VALUES[_0x54de7f(0x1f7)],_0x45e970=normalizeEnv(String(_0x3ac5f6)),_0x330e08=isDaily(_0x45e970)?_0x54de7f(0x1e0):isDev(_0x45e970)?'development':_0x54de7f(0x1f0),_0x21ef65=typeof _0x3aed30[_0x54de7f(0x1e2)]==='string'?_0x3aed30[_0x54de7f(0x1e2)]:undefined,_0x36e63d=env(_0x54de7f(0x206)),_0x1750ab=_0x40a192?undefined:_0x25657a['appcode']||_0x25657a['app']||undefined,_0x4012d6=_0x40a192||(_0x1750ab?undefined:_0x4bc2fc),_0x4082dc=resolveLocalAppAliasCode(_0x25657a,_0x4012d6),_0x5cc9ac=resolveCachedAppCode(_0x4012d6,_0x330e08,_0x2e555e),_0x4e2d83=_0x21ef65||_0x36e63d||_0x1750ab||_0x4082dc||_0x5cc9ac||undefined,_0x455251=_0x21ef65?_0x54de7f(0x1ce):_0x36e63d?_0x54de7f(0x1f7):_0x1750ab?'top-level':_0x4082dc?_0x54de7f(0x1f6):_0x5cc9ac?'cache':undefined,_0x2c211c=_0x25657a[_0x54de7f(0x1f2)]||DEFAULT_CONFIG_VALUES[_0x54de7f(0x1f2)],_0x35a66b=undefined,_0x51fe2d=_0x3aed30[_0x54de7f(0x1c9)]||env(_0x54de7f(0x1fb))||_0x25657a[_0x54de7f(0x1c9)],_0x373441=normalizeLegacyOutputFormat(_0x51fe2d),_0x320c06=env('PAGE_SIZE')||_0x25657a[_0x54de7f(0x1fa)],_0x5929ff=_0x320c06?Number(_0x320c06)||undefined:undefined,_0x4baef2=_0x25657a[_0x54de7f(0x1d2)]||_0x25657a[_0x54de7f(0x209)],_0x54225=_0x4baef2==='read'||_0x4baef2===_0x54de7f(0x200)||_0x4baef2==='high-risk-write'?_0x4baef2:DEFAULT_CONFIG_VALUES[_0x54de7f(0x1d2)],_0x139ea7=env(_0x54de7f(0x1f4)),_0x384e7d=_0x139ea7==='1'||_0x139ea7==='true';return{'appCode':typeof _0x4e2d83===_0x54de7f(0x20b)&&_0x4e2d83['trim']()?_0x4e2d83[_0x54de7f(0x1d7)]():undefined,'appCodeSource':_0x455251,'env':_0x330e08,'locale':_0x2c211c,'cookie':_0x35a66b,'accessKey':_0x2e555e,'format':_0x373441,'pageSize':_0x5929ff,'riskLevel':_0x54225,'verbose':_0x384e7d,'defaultApp':_0x4bc2fc,'currentApp':typeof _0x1f0dd8===_0x54de7f(0x20b)?_0x1f0dd8:undefined,'raw':_0x25657a};}function env(_0x3a835f){return productEnv(_0x3a835f);}async function buildAuth(_0x1e7137){const _0x5223e1=a77_0x33b869,_0x151dfd='',_0x441427=!!_0x1e7137[_0x5223e1(0x1dc)];return{'cookie':_0x151dfd,'isLoggedIn':_0x441427,async 'getOrLogin'(){const _0x3f8ea8=_0x5223e1;if(_0x441427)return _0x151dfd;throw CliErrors[_0x3f8ea8(0x202)]();}};}
1
+ const a77_0x423985=a77_0x3ccb;(function(_0x1a6a45,_0x5c34ac){const _0x3fadc6=a77_0x3ccb,_0x1bbf24=_0x1a6a45();while(!![]){try{const _0x27fa93=parseInt(_0x3fadc6(0x1e8))/0x1*(-parseInt(_0x3fadc6(0x1e6))/0x2)+-parseInt(_0x3fadc6(0x1f6))/0x3+-parseInt(_0x3fadc6(0x1d9))/0x4*(-parseInt(_0x3fadc6(0x1f2))/0x5)+parseInt(_0x3fadc6(0x1c4))/0x6*(parseInt(_0x3fadc6(0x1ee))/0x7)+-parseInt(_0x3fadc6(0x1b4))/0x8*(parseInt(_0x3fadc6(0x1c5))/0x9)+-parseInt(_0x3fadc6(0x1fc))/0xa*(parseInt(_0x3fadc6(0x1cd))/0xb)+-parseInt(_0x3fadc6(0x1d4))/0xc*(-parseInt(_0x3fadc6(0x1d3))/0xd);if(_0x27fa93===_0x5c34ac)break;else _0x1bbf24['push'](_0x1bbf24['shift']());}catch(_0xabfab7){_0x1bbf24['push'](_0x1bbf24['shift']());}}}(a77_0x4a99,0xe9be3));import{readFileSync,existsSync,mkdirSync,renameSync,unlinkSync,writeFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{homedir}from'node:os';import{logger}from'./utils/logger.js';import{CliErrors}from'./errors.js';import{CLI_BIN_NAME}from'./constant/cli.js';import{PRODUCT_CONFIG,productEnv,productEnvNames}from'./constant/product.js';import{DEFAULT_CONFIG_VALUES}from'./constant/defaults.js';import{normalizeEnv,isDaily,isDev}from'./constant/env.js';import{normalizeLegacyOutputFormat}from'./framework/types.js';import{resolveCachedAppCode}from'./commands/app/cache.js';export{AUTH_MODE,isAuthMode}from'./constant/auth-mode.js';const CONFIG_NAMES=PRODUCT_CONFIG[a77_0x423985(0x1b6)];export const NEW_CONFIG_NAME=PRODUCT_CONFIG['newConfigFileName'];function resolveConfigPath(_0x1d9249){for(const _0x14e973 of CONFIG_NAMES){const _0x17269e=resolve(_0x1d9249,_0x14e973);if(existsSync(_0x17269e))return _0x17269e;}return undefined;}export function resolveWriteConfigPath(_0x33d202){const _0x5e8964=a77_0x423985,_0x508b3b=_0x33d202===_0x5e8964(0x1cb)?process[_0x5e8964(0x1d5)]():homedir(),_0x44b2aa=resolveConfigPath(_0x508b3b);return _0x44b2aa??resolve(_0x508b3b,NEW_CONFIG_NAME);}export function readConfigFile(_0x2d3c3f){const _0x24fb6b=a77_0x423985;try{if(existsSync(_0x2d3c3f)){const _0x462954=readFileSync(_0x2d3c3f,{'encoding':'utf8'});if(_0x462954){const _0x352eb9=JSON[_0x24fb6b(0x1e0)](_0x462954);return migrateOnlineEnv(_0x2d3c3f,_0x352eb9),_0x352eb9;}}}catch{}return{};}function migrateOnlineEnv(_0x3fab8a,_0x2de9ff){const _0x48fd38=a77_0x423985;let _0x437cd6=![];_0x2de9ff[_0x48fd38(0x1fb)]===_0x48fd38(0x1cc)&&(_0x2de9ff[_0x48fd38(0x1fb)]=_0x48fd38(0x1f3),_0x437cd6=!![]);if(_0x2de9ff[_0x48fd38(0x1d6)]&&typeof _0x2de9ff[_0x48fd38(0x1d6)]==='object')for(const _0xd988af of Object[_0x48fd38(0x1de)](_0x2de9ff[_0x48fd38(0x1d6)])){_0xd988af&&_0xd988af['env']==='online'&&(_0xd988af[_0x48fd38(0x1fb)]='production',_0x437cd6=!![]);}if(_0x437cd6)try{writeConfigFile(_0x3fab8a,_0x2de9ff);}catch{}}export function writeConfigFile(_0x42abc0,_0x41e1ae){const _0x1ea2a6=a77_0x423985,_0x115b0b=dirname(_0x42abc0);!existsSync(_0x115b0b)&&mkdirSync(_0x115b0b,{'recursive':!![]});const _0x474182=_0x42abc0+_0x1ea2a6(0x1fa);try{writeFileSync(_0x474182,JSON[_0x1ea2a6(0x1f1)](_0x41e1ae,null,0x2)+'\x0a',{'encoding':_0x1ea2a6(0x1c2),'mode':0x180});try{renameSync(_0x474182,_0x42abc0);}catch(_0x4091a0){if(_0x4091a0[_0x1ea2a6(0x1bb)]===_0x1ea2a6(0x1cf)||_0x4091a0['code']===_0x1ea2a6(0x1ed)||_0x4091a0[_0x1ea2a6(0x1bb)]==='EACCES'){writeFileSync(_0x42abc0,JSON[_0x1ea2a6(0x1f1)](_0x41e1ae,null,0x2)+'\x0a',{'encoding':_0x1ea2a6(0x1c2)});try{unlinkSync(_0x474182);}catch{}}else throw _0x4091a0;}}catch(_0x1d6fe0){try{unlinkSync(_0x474182);}catch{}throw _0x1d6fe0;}}export function isNonInteractiveMode(_0x415928){const _0x34d051=a77_0x423985;return!!(_0x415928[_0x34d051(0x1ea)]||_0x415928['ci']||productEnvNames('CI')[_0x34d051(0x1d0)](_0x1ca03e=>process.env[_0x1ca03e]===_0x34d051(0x1e9))||process.env.CI===_0x34d051(0x1e9)||!process[_0x34d051(0x1b0)][_0x34d051(0x1d1)]||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x18a390=a77_0x423985;if(!process[_0x18a390(0x1b2)][_0x18a390(0x1d1)])return![];try{const _0x5dad79=process[_0x18a390(0x1b2)]['isRaw'];return process['stdin']['setRawMode'](!![]),process[_0x18a390(0x1b2)][_0x18a390(0x1ce)](_0x5dad79??![]),!![];}catch{return![];}}export async function createContext(_0xfc3cd){const _0x3a863c=a77_0x423985,_0x49836f=readRawConfig(),_0x501c43=buildConfig(_0x49836f,_0xfc3cd);await initGlobalEnvironment(_0x501c43);const {getUserDomain:_0xb6784,getApiDomain:_0x36ba39}=await import('./constant/domain.js'),_0x2367c0={'apiDomain':_0x36ba39(),'userDomain':_0xb6784()},_0x5b8623=await buildAuth(_0x501c43);logger[_0x3a863c(0x1b3)](process['cwd']());const _0xb5b2bc=(CLI_BIN_NAME+'\x20'+process[_0x3a863c(0x1f4)][_0x3a863c(0x1bd)](0x2)[_0x3a863c(0x1f8)]('\x20'))[_0x3a863c(0x1b5)]();logger[_0x3a863c(0x1dc)](_0xb5b2bc);const _0x435009=isNonInteractiveMode(_0xfc3cd);return{'config':_0x501c43,'auth':_0x5b8623,'logger':logger,'env':_0x2367c0,'nonInteractive':_0x435009};}export function buildConfigFromFlags(_0x1069e5){return buildConfig(readRawConfig(),_0x1069e5);}export function getLocalAppAliases(_0xcfa1e0){const _0x1fb932=a77_0x423985;return _0xcfa1e0[_0x1fb932(0x1d6)]&&typeof _0xcfa1e0[_0x1fb932(0x1d6)]==='object'?_0xcfa1e0[_0x1fb932(0x1d6)]:{};}export function resolveLocalAppAliasCode(_0x2228c8,_0x29605a){const _0x4aa3c2=a77_0x423985;if(!_0x29605a)return undefined;const _0xf44cab=getLocalAppAliases(_0x2228c8)[_0x29605a],_0xdb49b8=_0xf44cab?.[_0x4aa3c2(0x1b8)];return typeof _0xdb49b8===_0x4aa3c2(0x1f9)&&_0xdb49b8['trim']()?_0xdb49b8[_0x4aa3c2(0x1b5)]():undefined;}export function readAppCodeFromConfig(){const _0x184bbb=a77_0x423985,_0x3dbe6e=readRawConfig(),_0x12bd89=_0x3dbe6e[_0x184bbb(0x1b8)]??_0x3dbe6e[_0x184bbb(0x1f7)];if(typeof _0x12bd89===_0x184bbb(0x1f9)&&_0x12bd89[_0x184bbb(0x1b5)]())return _0x12bd89[_0x184bbb(0x1b5)]();const _0x403625=resolveLocalAppAliasCode(_0x3dbe6e,typeof _0x3dbe6e[_0x184bbb(0x1c9)]===_0x184bbb(0x1f9)?_0x3dbe6e[_0x184bbb(0x1c9)]:undefined);if(_0x403625)return _0x403625;const _0x25bff5=normalizeEnv(String(_0x3dbe6e['env']||_0x184bbb(0x1f3))),_0x2fab8b=isDaily(_0x25bff5)?_0x184bbb(0x1dd):isDev(_0x25bff5)?'development':_0x184bbb(0x1f3),_0x176bcd=resolveCachedAppCode(typeof _0x3dbe6e[_0x184bbb(0x1c9)]===_0x184bbb(0x1f9)?_0x3dbe6e[_0x184bbb(0x1c9)]:undefined,_0x2fab8b,typeof _0x3dbe6e[_0x184bbb(0x1e4)]===_0x184bbb(0x1f9)?_0x3dbe6e[_0x184bbb(0x1e4)]:undefined);if(_0x176bcd)return _0x176bcd;const _0x9e2b95=Object[_0x184bbb(0x1de)](getLocalAppAliases(_0x3dbe6e))[_0x184bbb(0x1f5)](_0x3e25f5=>_0x3e25f5?.[_0x184bbb(0x1b8)]);return typeof _0x9e2b95?.[_0x184bbb(0x1b8)]===_0x184bbb(0x1f9)&&_0x9e2b95[_0x184bbb(0x1b8)][_0x184bbb(0x1b5)]()?_0x9e2b95[_0x184bbb(0x1b8)]['trim']():undefined;}export function readScopedConfig(_0x3d7ee9){const _0x20f035=a77_0x423985,_0x2e07fd=_0x3d7ee9[_0x20f035(0x1eb)]?_0x20f035(0x1eb):_0x20f035(0x1cb);return readConfigFile(resolveWriteConfigPath(_0x2e07fd));}export function writeScopedConfig(_0x276892,_0x219d01){const _0x5af23a=a77_0x423985,_0x1fa215=_0x219d01[_0x5af23a(0x1eb)]?_0x5af23a(0x1eb):_0x5af23a(0x1cb);writeConfigFile(resolveWriteConfigPath(_0x1fa215),_0x276892);}export async function initGlobalEnvironment(_0x205654){const _0x11d6a8=a77_0x423985,{initEnv:_0x3a8286}=await import(_0x11d6a8(0x1b9));_0x3a8286(_0x205654[_0x11d6a8(0x1fb)]);const {initDomains:_0x39169b}=await import('./constant/domain.js');_0x39169b({'apiDomain':_0x205654['raw'][_0x11d6a8(0x1df)]||_0x205654[_0x11d6a8(0x1d7)]['host']||undefined,'userDomain':_0x205654[_0x11d6a8(0x1d7)][_0x11d6a8(0x1af)]||undefined,'runtimeDomain':_0x205654['raw'][_0x11d6a8(0x1bf)]||undefined,'skillHubDomain':_0x205654[_0x11d6a8(0x1d7)][_0x11d6a8(0x1e2)]||undefined});}export function getProjectConfigPath(){const _0x2563d1=a77_0x423985;return resolveConfigPath(process[_0x2563d1(0x1d5)]());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function inspectCliConfigJsonFile(_0x5d204e){const _0x30aec1=a77_0x423985;if(!existsSync(_0x5d204e))return{'status':_0x30aec1(0x1c7)};try{const _0x2b348a=readFileSync(_0x5d204e,{'encoding':_0x30aec1(0x1c2)});if(!_0x2b348a?.[_0x30aec1(0x1b5)]())return{'status':_0x30aec1(0x1da)};const _0x1d8531=JSON[_0x30aec1(0x1e0)](_0x2b348a);return{'status':'ok','data':_0x1d8531};}catch(_0x5e20c0){return{'status':_0x30aec1(0x1ba),'message':_0x5e20c0 instanceof Error?_0x5e20c0[_0x30aec1(0x1ca)]:String(_0x5e20c0)};}}export function loadRawConfigLayers(_0x132201){const _0x38640a=a77_0x423985;let _0x525357={},_0x159558={},_0x2bd474,_0x2c8ece;try{_0x2bd474=resolveConfigPath(homedir());if(_0x2bd474){const _0x1c6445=readFileSync(_0x2bd474,{'encoding':_0x38640a(0x1c2)});if(_0x1c6445)_0x525357=JSON[_0x38640a(0x1e0)](_0x1c6445);}}catch{}try{const _0x2c25fc=_0x132201||process[_0x38640a(0x1d5)]();_0x2c8ece=resolveConfigPath(_0x2c25fc);if(_0x2c8ece){const _0x530af5=readFileSync(_0x2c8ece,{'encoding':_0x38640a(0x1c2)});if(_0x530af5)_0x159558=JSON['parse'](_0x530af5);}}catch{}return{'globalPath':_0x2bd474,'projectPath':_0x2c8ece,'globalConfig':_0x525357,'projectConfig':_0x159558};}function mergeRawConfigLayers(_0x1c09b2){const _0x2bc2d8=a77_0x423985,{globalConfig:_0x3b8fc7,projectConfig:_0x59a3bc}=_0x1c09b2;if(_0x59a3bc[_0x2bc2d8(0x1d2)]===![]){const _0x27a7b9={..._0x59a3bc};return delete _0x27a7b9[_0x2bc2d8(0x1d2)],_0x27a7b9;}const _0x13801e={..._0x3b8fc7,..._0x59a3bc};if('defaultApp'in _0x59a3bc)_0x13801e['defaultApp']=_0x59a3bc[_0x2bc2d8(0x1c9)];else _0x3b8fc7[_0x2bc2d8(0x1c9)]&&(_0x13801e[_0x2bc2d8(0x1c9)]=_0x3b8fc7[_0x2bc2d8(0x1c9)]);return _0x13801e;}function a77_0x4a99(){const _0x3be1aa=['11522601gEIlez','ENV','missing','PAGE_SIZE','defaultApp','message','project','online','16441502SQywab','setRawMode','EPERM','some','isTTY','inherit','13lYmuge','43234764SsUBRK','cwd','apps','raw','projectConfig','1208oDEMbt','empty','APPCODE','setRawCommand','daily','values','apiDomain','parse','high-risk-write','skillHubDomain','read','accessKey','local-alias','1278VoRjUp','FORMAT','1159vfZUVS','true','nonInteractive','global','write','EXDEV','6804yUteBc','pageSize','VERBOSE','stringify','14650uYyvgS','production','argv','find','5575974eVZXzK','app','join','string','.tmp','env','10BvSMfA','userDomain','stdout','cache','stdin','setLogPath','8wPGpYN','trim','configFileNames','ACCESS_KEY','appcode','./constant/env.js','error','code','APP','slice','locale','runtimeDomain','explicit','authRequired','utf8','development','11382ZjCLzp'];a77_0x4a99=function(){return _0x3be1aa;};return a77_0x4a99();}export function isInProject(){return!!getProjectConfigPath();}export function readRawConfig(_0x1672ed){return mergeRawConfigLayers(loadRawConfigLayers(_0x1672ed));}export function readRawConfigWithLayers(_0x7f1144){const _0x3caf35=loadRawConfigLayers(_0x7f1144);return{'config':mergeRawConfigLayers(_0x3caf35),'layers':_0x3caf35};}export function resolveDefaultAppSource(_0x31d214){const _0x404c7d=a77_0x423985;if('defaultApp'in _0x31d214['projectConfig'])return _0x404c7d(0x1cb);if(_0x31d214[_0x404c7d(0x1d8)]['inherit']===![])return null;if(_0x31d214['globalConfig'][_0x404c7d(0x1c9)])return _0x404c7d(0x1eb);return null;}function a77_0x3ccb(_0x38c876,_0x5b32b8){_0x38c876=_0x38c876-0x1af;const _0x4a995a=a77_0x4a99();let _0x3ccbef=_0x4a995a[_0x38c876];return _0x3ccbef;}function buildConfig(_0x546a28,_0x478f76){const _0x35ee23=a77_0x423985,_0x25dfec=_0x546a28[_0x35ee23(0x1c9)]||undefined,_0x1a98f1=_0x478f76[_0x35ee23(0x1f7)]||env(_0x35ee23(0x1bc))||undefined,_0x2c20b2=_0x1a98f1||_0x25dfec||undefined,_0x3280e8=env(_0x35ee23(0x1b7))||_0x546a28[_0x35ee23(0x1e4)]||undefined,_0x375472=_0x478f76[_0x35ee23(0x1fb)]||env(_0x35ee23(0x1c6))||_0x546a28['env']||DEFAULT_CONFIG_VALUES[_0x35ee23(0x1fb)],_0x3b0de1=normalizeEnv(String(_0x375472)),_0x59323d=isDaily(_0x3b0de1)?_0x35ee23(0x1dd):isDev(_0x3b0de1)?_0x35ee23(0x1c3):_0x35ee23(0x1f3),_0x22d69a=typeof _0x478f76[_0x35ee23(0x1b8)]===_0x35ee23(0x1f9)?_0x478f76[_0x35ee23(0x1b8)]:undefined,_0x5835d7=env(_0x35ee23(0x1db)),_0x319d47=_0x1a98f1?undefined:_0x546a28[_0x35ee23(0x1b8)]||_0x546a28[_0x35ee23(0x1f7)]||undefined,_0x182229=_0x1a98f1||(_0x319d47?undefined:_0x25dfec),_0x3b8c78=resolveLocalAppAliasCode(_0x546a28,_0x182229),_0xdd914d=resolveCachedAppCode(_0x182229,_0x59323d,_0x3280e8),_0x5ae0ac=_0x22d69a||_0x5835d7||_0x319d47||_0x3b8c78||_0xdd914d||undefined,_0x504f79=_0x22d69a?_0x35ee23(0x1c0):_0x5835d7?_0x35ee23(0x1fb):_0x319d47?'top-level':_0x3b8c78?_0x35ee23(0x1e5):_0xdd914d?_0x35ee23(0x1b1):undefined,_0x4725fc=_0x546a28[_0x35ee23(0x1be)]||DEFAULT_CONFIG_VALUES['locale'],_0xb3d1f7=undefined,_0x32a54d=_0x478f76['format']||env(_0x35ee23(0x1e7))||_0x546a28['format'],_0x113e54=normalizeLegacyOutputFormat(_0x32a54d),_0x209425=env(_0x35ee23(0x1c8))||_0x546a28[_0x35ee23(0x1ef)],_0x202d97=_0x209425?Number(_0x209425)||undefined:undefined,_0x2edea2=_0x546a28['riskLevel']||_0x546a28['maxRisk'],_0x48e3af=_0x2edea2===_0x35ee23(0x1e3)||_0x2edea2===_0x35ee23(0x1ec)||_0x2edea2===_0x35ee23(0x1e1)?_0x2edea2:DEFAULT_CONFIG_VALUES['riskLevel'],_0x2cb534=env(_0x35ee23(0x1f0)),_0x558d1d=_0x2cb534==='1'||_0x2cb534===_0x35ee23(0x1e9);return{'appCode':typeof _0x5ae0ac===_0x35ee23(0x1f9)&&_0x5ae0ac[_0x35ee23(0x1b5)]()?_0x5ae0ac[_0x35ee23(0x1b5)]():undefined,'appCodeSource':_0x504f79,'env':_0x59323d,'locale':_0x4725fc,'cookie':_0xb3d1f7,'accessKey':_0x3280e8,'format':_0x113e54,'pageSize':_0x202d97,'riskLevel':_0x48e3af,'verbose':_0x558d1d,'defaultApp':_0x25dfec,'currentApp':typeof _0x2c20b2===_0x35ee23(0x1f9)?_0x2c20b2:undefined,'raw':_0x546a28};}function env(_0x201a12){return productEnv(_0x201a12);}async function buildAuth(_0x336489){const _0xf70313=a77_0x423985,_0x8bd0fa='',_0x430e53=!!_0x336489[_0xf70313(0x1e4)];return{'cookie':_0x8bd0fa,'isLoggedIn':_0x430e53,async 'getOrLogin'(){const _0x260c75=_0xf70313;if(_0x430e53)return _0x8bd0fa;throw CliErrors[_0x260c75(0x1c1)]();}};}