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

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_0x2233fc=a64_0x272a;function a64_0x272a(_0x45d2b3,_0x21bf0d){_0x45d2b3=_0x45d2b3-0x17b;const _0x52ccf8=a64_0x52cc();let _0x272a76=_0x52ccf8[_0x45d2b3];return _0x272a76;}(function(_0x354579,_0x3b2534){const _0x1490f8=a64_0x272a,_0x59612d=_0x354579();while(!![]){try{const _0x157a1d=parseInt(_0x1490f8(0x19c))/0x1*(parseInt(_0x1490f8(0x188))/0x2)+-parseInt(_0x1490f8(0x189))/0x3*(parseInt(_0x1490f8(0x1b1))/0x4)+parseInt(_0x1490f8(0x1aa))/0x5+parseInt(_0x1490f8(0x185))/0x6*(parseInt(_0x1490f8(0x1a0))/0x7)+-parseInt(_0x1490f8(0x187))/0x8*(parseInt(_0x1490f8(0x1b4))/0x9)+parseInt(_0x1490f8(0x192))/0xa+-parseInt(_0x1490f8(0x1ab))/0xb;if(_0x157a1d===_0x3b2534)break;else _0x59612d['push'](_0x59612d['shift']());}catch(_0x35e4ba){_0x59612d['push'](_0x59612d['shift']());}}}(a64_0x52cc,0x266f3));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_0x2233fc(0x194),'type':a64_0x2233fc(0x1b2),'description':a64_0x2233fc(0x18f)},{'name':a64_0x2233fc(0x1a4),'type':a64_0x2233fc(0x1b2),'description':a64_0x2233fc(0x18a)},{'name':'env','type':'string','description':a64_0x2233fc(0x1b6),'enum':[...RUNTIME_ENV_VALUES]}];async function executeWorkspaceUse(_0x454ee8,_0x1a0226){const _0x5771f5=a64_0x2233fc,_0x2ed808=_0x454ee8[_0x5771f5(0x186)](_0x5771f5(0x194))[_0x5771f5(0x18b)](),_0x20fa67=_0x454ee8[_0x5771f5(0x186)](_0x5771f5(0x1a4))[_0x5771f5(0x18b)](),_0x404ce0=_0x454ee8['str']('env')[_0x5771f5(0x18b)](),_0x3e8697=resolveWorkspaceEnv(_0x404ce0||_0x454ee8[_0x5771f5(0x181)]||DEFAULT_CONFIG_VALUES[_0x5771f5(0x196)]);if(!_0x2ed808&&!_0x20fa67)throw CliErrors[_0x5771f5(0x1a9)](_0x5771f5(0x193),_0x5771f5(0x19f)+CLI_BIN_NAME+_0x5771f5(0x18e)+_0x1a0226+_0x5771f5(0x1b7)+CLI_BIN_NAME+_0x5771f5(0x18e)+_0x1a0226+'\x20--appcode\x20<code>\x20[--env\x20daily]');if(_0x2ed808&&_0x20fa67)throw CliErrors[_0x5771f5(0x1a9)](_0x5771f5(0x182),_0x5771f5(0x17d));const _0x4afb66=resolveWriteConfigPath('project'),_0x180e00=readConfigFile(_0x4afb66);assertWorkspaceCommandState(_0x1a0226,_0x180e00);const _0x56afe5=_0x20fa67||await resolveRemoteAppCode({'command':_0x1a0226,'appName':_0x2ed808,'env':_0x3e8697,'accessKey':_0x454ee8[_0x5771f5(0x19d)]});return writeWorkspaceConfig({'command':_0x1a0226,'appName':_0x2ed808,'appcode':_0x56afe5,'env':_0x3e8697,'shouldWriteEnv':!!_0x404ce0,'accessKey':_0x454ee8[_0x5771f5(0x19d)]},_0x4afb66,_0x180e00),{'ok':!![],'data':{'configPath':_0x4afb66,'app':_0x2ed808||null,'appcode':_0x56afe5,'env':_0x404ce0?_0x3e8697:null,'accessKeyWritten':![],'command':_0x5771f5(0x1ad)+_0x1a0226},'message':buildWorkspaceMessage(_0x4afb66,_0x2ed808,_0x56afe5,_0x404ce0?_0x3e8697:undefined)};}async function resolveRemoteAppCode(_0x4c2383){const _0x47209e=a64_0x2233fc;if(!_0x4c2383[_0x47209e(0x19d)])throw CliErrors[_0x47209e(0x197)](_0x47209e(0x1b8)+CLI_BIN_NAME+_0x47209e(0x18e)+_0x4c2383['command']+'.');const {setActiveAK:_0x712fe9}=await import(_0x47209e(0x19b)),{getRemoteAppList:_0x46c94e}=await import(_0x47209e(0x17c));_0x712fe9(_0x4c2383[_0x47209e(0x19d)]);const _0x40a082=await _0x46c94e({'env':_0x4c2383[_0x47209e(0x196)],'accessKey':_0x4c2383[_0x47209e(0x19d)],'noCache':![]}),_0x56d6ff=findAppByName(_0x40a082[_0x47209e(0x1a3)],_0x4c2383[_0x47209e(0x190)]);if(_0x56d6ff&&!isRuntimeAccessibleApp(_0x56d6ff))throw runtimeInaccessibleAppError(_0x56d6ff,'\x22'+_0x4c2383[_0x47209e(0x190)]+'\x22');const _0x2d4876=_0x56d6ff?.['appCode']?.[_0x47209e(0x18b)]();if(_0x2d4876)return _0x2d4876;const _0x2b2e3d=_0x40a082[_0x47209e(0x1a3)][_0x47209e(0x1a7)](_0x408b6f=>_0x408b6f[_0x47209e(0x190)])['filter'](Boolean),_0x3891d1=_0x2b2e3d['length']?_0x47209e(0x18c)+Array[_0x47209e(0x1a5)](new Set(_0x2b2e3d))[_0x47209e(0x1a1)](',\x20')+'.':'Run\x20`'+CLI_BIN_NAME+_0x47209e(0x17f);throw CliErrors[_0x47209e(0x1a9)]('App\x20\x22'+_0x4c2383[_0x47209e(0x190)]+'\x22\x20not\x20found.',_0x3891d1);}function a64_0x52cc(){const _0x54a68b=['222309wEWueG','accessKey','workspace','Usage:\x20','21pErUqI','join','将更新当前工作目录已有的应用绑定,并把所选应用设为该目录的默认应用;不会写入\x20AccessKey。','items','appcode','from','Workspace\x20configured.\x0aConfig\x20file:\x20','map','defaultApp','validation','1235520gSvylO','1109471bpLOfH','\x20workspace\x20init\x20--appcode\x20<code>`\x20first.','workspace\x20','修改当前工作目录已有绑定的应用上下文','includes','init','472916XycuXx','string','Use\x20`','1343646ifwczQ','为尚未绑定应用的当前工作目录初始化应用上下文','Target\x20environment','\x20--app\x20<name>\x20[--env\x20daily]\x20or\x20','Resolving\x20--app\x20requires\x20accessKey.\x20Pass\x20--appcode\x20directly,\x20or\x20set\x20accessKey\x20before\x20running\x20','write','shouldWriteEnv','../../commands/app/remote-source.js','Pass\x20either\x20--app\x20<name>\x20or\x20--appcode\x20<code>,\x20not\x20both.','Invalid\x20env\x20\x22','\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20pass\x20--appcode\x20directly.','Workspace\x20app\x20context\x20is\x20already\x20initialized.','envName','Conflicting\x20workspace\x20app\x20selectors.','\x0aEnv:\x20','\x20workspace\x20use\x20--appcode\x20<code>`\x20to\x20change\x20it.','235086IodAhG','str','8MEMTmV','2SwdhRD','6XHaAIo','App\x20code\x20to\x20bind\x20directly','trim','Available\x20apps:\x20','\x0aAccessKey:\x20not\x20written','\x20workspace\x20','App\x20name\x20to\x20bind\x20as\x20the\x20current\x20workspace\x20default','appName','\x22.\x20Allowed:\x20','570840LYIeap','Missing\x20workspace\x20app\x20selector.','app','apps','env','authRequired','Workspace\x20app\x20context\x20is\x20not\x20initialized.','将在尚未绑定应用的当前工作目录写入\x20Lovrabet\x20项目配置,并把所选应用设为该目录的默认应用;不会写入\x20AccessKey。','length','../../core/api-client.js'];a64_0x52cc=function(){return _0x54a68b;};return a64_0x52cc();}function writeWorkspaceConfig(_0x494584,_0x34cd32,_0x55df17){const _0x23195d=a64_0x2233fc;_0x494584[_0x23195d(0x17b)]&&(_0x55df17['env']=_0x494584[_0x23195d(0x196)]);if(_0x494584[_0x23195d(0x190)]){const _0x33b072=isRecord(_0x55df17[_0x23195d(0x195)])?{..._0x55df17[_0x23195d(0x195)]}:{},_0x2a5971=isRecord(_0x33b072[_0x494584[_0x23195d(0x190)]])?_0x33b072[_0x494584[_0x23195d(0x190)]]:{};return _0x33b072[_0x494584['appName']]={..._0x2a5971,'appcode':_0x494584[_0x23195d(0x1a4)]},_0x55df17['apps']=_0x33b072,_0x55df17[_0x23195d(0x1a8)]=_0x494584[_0x23195d(0x190)],delete _0x55df17['appcode'],delete _0x55df17[_0x23195d(0x194)],writeAndReturn(_0x34cd32,_0x55df17);}return _0x55df17[_0x23195d(0x1a4)]=_0x494584['appcode'],delete _0x55df17[_0x23195d(0x1a8)],delete _0x55df17[_0x23195d(0x194)],writeAndReturn(_0x34cd32,_0x55df17);}function writeAndReturn(_0x20c7b1,_0x58182c){return writeConfigFile(_0x20c7b1,_0x58182c),_0x20c7b1;}function resolveWorkspaceEnv(_0x2f2419){const _0x2bb7d6=a64_0x2233fc;if(RUNTIME_ENV_VALUES[_0x2bb7d6(0x1af)](_0x2f2419))return _0x2f2419;throw CliErrors[_0x2bb7d6(0x1a9)](_0x2bb7d6(0x17e)+_0x2f2419+_0x2bb7d6(0x191)+RUNTIME_ENV_VALUES[_0x2bb7d6(0x1a1)](',\x20'));}function buildWorkspaceMessage(_0x4b1ae4,_0xed7c95,_0x3e6aef,_0x490afe){const _0x3b91f1=a64_0x2233fc,_0x148da4=_0xed7c95?_0xed7c95+'\x20('+_0x3e6aef+')':_0x3e6aef,_0x4551fe=_0x490afe?_0x3b91f1(0x183)+_0x490afe:'';return _0x3b91f1(0x1a6)+_0x4b1ae4+'\x0aDefault\x20app:\x20'+_0x148da4+_0x4551fe+_0x3b91f1(0x18d);}function isRecord(_0x30350c){return typeof _0x30350c==='object'&&_0x30350c!==null&&!Array['isArray'](_0x30350c);}function hasWorkspaceAppBinding(_0xbf304f){const _0x4c9479=a64_0x2233fc;if(typeof _0xbf304f[_0x4c9479(0x1a4)]==='string'&&_0xbf304f[_0x4c9479(0x1a4)]['trim']()[_0x4c9479(0x19a)]>0x0)return!![];if(typeof _0xbf304f[_0x4c9479(0x1a8)]!==_0x4c9479(0x1b2)||!_0xbf304f[_0x4c9479(0x1a8)]['trim']())return![];if(!isRecord(_0xbf304f['apps']))return![];const _0x5a0216=_0xbf304f[_0x4c9479(0x195)][_0xbf304f[_0x4c9479(0x1a8)][_0x4c9479(0x18b)]()];return isRecord(_0x5a0216)&&typeof _0x5a0216[_0x4c9479(0x1a4)]===_0x4c9479(0x1b2)&&_0x5a0216[_0x4c9479(0x1a4)][_0x4c9479(0x18b)]()[_0x4c9479(0x19a)]>0x0;}function assertWorkspaceCommandState(_0x58515e,_0x17fdba){const _0x21bd31=a64_0x2233fc,_0x3beebb=hasWorkspaceAppBinding(_0x17fdba);if(_0x58515e===_0x21bd31(0x1b0)&&_0x3beebb)throw CliErrors[_0x21bd31(0x1a9)](_0x21bd31(0x180),_0x21bd31(0x1b3)+CLI_BIN_NAME+'\x20workspace\x20use\x20--app\x20<name>`\x20or\x20`'+CLI_BIN_NAME+_0x21bd31(0x184));if(_0x58515e==='use'&&!_0x3beebb)throw CliErrors[_0x21bd31(0x1a9)](_0x21bd31(0x198),'Run\x20`'+CLI_BIN_NAME+'\x20workspace\x20init\x20--app\x20<name>`\x20or\x20`'+CLI_BIN_NAME+_0x21bd31(0x1ac));}function makeWorkspaceCommand(_0x1d5a51){const _0x70285e=a64_0x2233fc;return{'service':_0x70285e(0x19e),'command':_0x1d5a51,'description':_0x1d5a51===_0x70285e(0x1b0)?_0x70285e(0x1b5):_0x70285e(0x1ae),'risk':_0x70285e(0x1b9),'confirmationDescription':_0x1d5a51===_0x70285e(0x1b0)?_0x70285e(0x199):_0x70285e(0x1a2),'requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':WORKSPACE_USE_FLAGS,async 'execute'(_0x52c475){return executeWorkspaceUse(_0x52c475,_0x1d5a51);}};}export const workspaceDefinitions=[makeWorkspaceCommand(a64_0x2233fc(0x1b0)),makeWorkspaceCommand('use')];
1
+ const a64_0xf47058=a64_0x4079;(function(_0x4526c0,_0x269e19){const _0x563ceb=a64_0x4079,_0x3465e0=_0x4526c0();while(!![]){try{const _0x1e54ad=parseInt(_0x563ceb(0xc5))/0x1*(parseInt(_0x563ceb(0xc0))/0x2)+-parseInt(_0x563ceb(0xbf))/0x3*(parseInt(_0x563ceb(0xde))/0x4)+parseInt(_0x563ceb(0xb3))/0x5+-parseInt(_0x563ceb(0xd4))/0x6+-parseInt(_0x563ceb(0xbe))/0x7*(-parseInt(_0x563ceb(0xd0))/0x8)+parseInt(_0x563ceb(0xdf))/0x9+-parseInt(_0x563ceb(0xc2))/0xa*(parseInt(_0x563ceb(0xc3))/0xb);if(_0x1e54ad===_0x269e19)break;else _0x3465e0['push'](_0x3465e0['shift']());}catch(_0x146704){_0x3465e0['push'](_0x3465e0['shift']());}}}(a64_0x25de,0x53cf9));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_0xf47058(0xb4),'type':a64_0xf47058(0xd2),'description':a64_0xf47058(0xc8)},{'name':a64_0xf47058(0xbd),'type':a64_0xf47058(0xd2),'description':a64_0xf47058(0xd8)},{'name':'env','type':a64_0xf47058(0xd2),'description':a64_0xf47058(0xbb),'enum':[...RUNTIME_ENV_VALUES]}];async function executeWorkspaceUse(_0x5dac2f,_0x42a35a){const _0x1d3006=a64_0xf47058,_0xe6a409=_0x5dac2f[_0x1d3006(0xd7)](_0x1d3006(0xb4))[_0x1d3006(0xe6)](),_0x1609db=_0x5dac2f[_0x1d3006(0xd7)](_0x1d3006(0xbd))[_0x1d3006(0xe6)](),_0x8b275a=_0x5dac2f[_0x1d3006(0xd7)](_0x1d3006(0xf0))[_0x1d3006(0xe6)](),_0x430c68=resolveWorkspaceEnv(_0x8b275a||_0x5dac2f[_0x1d3006(0xdb)]||DEFAULT_CONFIG_VALUES['env']);if(!_0xe6a409&&!_0x1609db)throw CliErrors['validation'](_0x1d3006(0xe9),_0x1d3006(0xaf)+CLI_BIN_NAME+_0x1d3006(0xae)+_0x42a35a+_0x1d3006(0xd9)+CLI_BIN_NAME+_0x1d3006(0xae)+_0x42a35a+_0x1d3006(0xeb));if(_0xe6a409&&_0x1609db)throw CliErrors[_0x1d3006(0xb1)]('Conflicting\x20workspace\x20app\x20selectors.',_0x1d3006(0xc7));const _0x54391a=resolveWriteConfigPath(_0x1d3006(0xe5)),_0x4dc366=readConfigFile(_0x54391a);assertWorkspaceCommandState(_0x42a35a,_0x4dc366);const _0x29fe04=_0x1609db||await resolveRemoteAppCode({'command':_0x42a35a,'appName':_0xe6a409,'env':_0x430c68,'accessKey':_0x5dac2f[_0x1d3006(0xca)]});return writeWorkspaceConfig({'command':_0x42a35a,'appName':_0xe6a409,'appcode':_0x29fe04,'env':_0x430c68,'shouldWriteEnv':!!_0x8b275a,'accessKey':_0x5dac2f[_0x1d3006(0xca)]},_0x54391a,_0x4dc366),{'ok':!![],'data':{'configPath':_0x54391a,'app':_0xe6a409||null,'appcode':_0x29fe04,'env':_0x8b275a?_0x430c68:null,'accessKeyWritten':![],'command':_0x1d3006(0xb8)+_0x42a35a},'message':buildWorkspaceMessage(_0x54391a,_0xe6a409,_0x29fe04,_0x8b275a?_0x430c68:undefined)};}async function resolveRemoteAppCode(_0x4dd111){const _0x2f0b7f=a64_0xf47058;if(!_0x4dd111['accessKey'])throw CliErrors['authRequired']('Resolving\x20--app\x20requires\x20accessKey.\x20Pass\x20--appcode\x20directly,\x20or\x20set\x20accessKey\x20before\x20running\x20'+CLI_BIN_NAME+_0x2f0b7f(0xae)+_0x4dd111[_0x2f0b7f(0xcb)]+'.');const {setActiveAK:_0x16ca1}=await import(_0x2f0b7f(0xc4)),{getRemoteAppList:_0x5a6e68}=await import(_0x2f0b7f(0xe1));_0x16ca1(_0x4dd111['accessKey']);const _0x41c276=await _0x5a6e68({'env':_0x4dd111[_0x2f0b7f(0xf0)],'accessKey':_0x4dd111['accessKey'],'noCache':![]}),_0x4ac534=findAppByName(_0x41c276[_0x2f0b7f(0xcc)],_0x4dd111[_0x2f0b7f(0xd6)]);if(_0x4ac534&&!isRuntimeAccessibleApp(_0x4ac534))throw runtimeInaccessibleAppError(_0x4ac534,'\x22'+_0x4dd111[_0x2f0b7f(0xd6)]+'\x22');const _0x3e7665=_0x4ac534?.[_0x2f0b7f(0xc1)]?.[_0x2f0b7f(0xe6)]();if(_0x3e7665)return _0x3e7665;const _0x32e235=_0x41c276[_0x2f0b7f(0xcc)][_0x2f0b7f(0xe4)](_0x1508e6=>_0x1508e6[_0x2f0b7f(0xd6)])['filter'](Boolean),_0x35dc39=_0x32e235[_0x2f0b7f(0xd1)]?_0x2f0b7f(0xce)+Array[_0x2f0b7f(0xe7)](new Set(_0x32e235))['join'](',\x20')+'.':_0x2f0b7f(0xcf)+CLI_BIN_NAME+_0x2f0b7f(0xc6);throw CliErrors[_0x2f0b7f(0xb1)](_0x2f0b7f(0xb5)+_0x4dd111[_0x2f0b7f(0xd6)]+_0x2f0b7f(0xcd),_0x35dc39);}function writeWorkspaceConfig(_0x35c9f8,_0x4f7a1e,_0x887ccc){const _0x3a189b=a64_0xf47058;_0x35c9f8[_0x3a189b(0xbc)]&&(_0x887ccc[_0x3a189b(0xf0)]=_0x35c9f8[_0x3a189b(0xf0)]);if(_0x35c9f8[_0x3a189b(0xd6)]){const _0x21fd07=isRecord(_0x887ccc[_0x3a189b(0xee)])?{..._0x887ccc[_0x3a189b(0xee)]}:{},_0x405393=isRecord(_0x21fd07[_0x35c9f8[_0x3a189b(0xd6)]])?_0x21fd07[_0x35c9f8['appName']]:{};return _0x21fd07[_0x35c9f8[_0x3a189b(0xd6)]]={..._0x405393,'appcode':_0x35c9f8['appcode']},_0x887ccc['apps']=_0x21fd07,_0x887ccc[_0x3a189b(0xac)]=_0x35c9f8[_0x3a189b(0xd6)],delete _0x887ccc[_0x3a189b(0xbd)],delete _0x887ccc['app'],writeAndReturn(_0x4f7a1e,_0x887ccc);}return _0x887ccc['appcode']=_0x35c9f8['appcode'],delete _0x887ccc[_0x3a189b(0xac)],delete _0x887ccc[_0x3a189b(0xb4)],writeAndReturn(_0x4f7a1e,_0x887ccc);}function writeAndReturn(_0x3d8fd3,_0xd24d8e){return writeConfigFile(_0x3d8fd3,_0xd24d8e),_0x3d8fd3;}function a64_0x25de(){const _0x468055=['includes','Missing\x20workspace\x20app\x20selector.','isArray','\x20--appcode\x20<code>\x20[--env\x20daily]','Workspace\x20app\x20context\x20is\x20already\x20initialized.','workspace','apps','将更新当前工作目录已有的应用绑定,并把所选应用设为该目录的默认应用;不会写入\x20AccessKey。','env','\x0aAccessKey:\x20not\x20written','defaultApp','修改当前工作目录已有绑定的应用上下文','\x20workspace\x20','Usage:\x20','\x20workspace\x20init\x20--app\x20<name>`\x20or\x20`','validation','\x0aDefault\x20app:\x20','2508815UZxEbE','app','App\x20\x22','\x20workspace\x20init\x20--appcode\x20<code>`\x20first.','为尚未绑定应用的当前工作目录初始化应用上下文','workspace\x20','init','将在尚未绑定应用的当前工作目录写入\x20Lovrabet\x20项目配置,并把所选应用设为该目录的默认应用;不会写入\x20AccessKey。','Target\x20environment','shouldWriteEnv','appcode','77oDwaIU','3MqOZXS','2110NGSEdq','appCode','101480SGoIEn','517nRnQHz','../../core/api-client.js','622lpfzjQ','\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20pass\x20--appcode\x20directly.','Pass\x20either\x20--app\x20<name>\x20or\x20--appcode\x20<code>,\x20not\x20both.','App\x20name\x20to\x20bind\x20as\x20the\x20current\x20workspace\x20default','Invalid\x20env\x20\x22','accessKey','command','items','\x22\x20not\x20found.','Available\x20apps:\x20','Run\x20`','314512bsJUsS','length','string','\x20workspace\x20use\x20--appcode\x20<code>`\x20to\x20change\x20it.','4002846fnOQBN','Workspace\x20app\x20context\x20is\x20not\x20initialized.','appName','str','App\x20code\x20to\x20bind\x20directly','\x20--app\x20<name>\x20[--env\x20daily]\x20or\x20','use','envName','write','Workspace\x20configured.\x0aConfig\x20file:\x20','788884FmzjtK','847620ToHqSq','\x22.\x20Allowed:\x20','../../commands/app/remote-source.js','object','\x20workspace\x20use\x20--app\x20<name>`\x20or\x20`','map','project','trim','from'];a64_0x25de=function(){return _0x468055;};return a64_0x25de();}function resolveWorkspaceEnv(_0x29cc6d){const _0xaf3c2d=a64_0xf47058;if(RUNTIME_ENV_VALUES[_0xaf3c2d(0xe8)](_0x29cc6d))return _0x29cc6d;throw CliErrors[_0xaf3c2d(0xb1)](_0xaf3c2d(0xc9)+_0x29cc6d+_0xaf3c2d(0xe0)+RUNTIME_ENV_VALUES['join'](',\x20'));}function buildWorkspaceMessage(_0x37ad3d,_0x28249c,_0x24c5ff,_0x5e4577){const _0x296a47=a64_0xf47058,_0x53d28d=_0x28249c?_0x28249c+'\x20('+_0x24c5ff+')':_0x24c5ff,_0x27855a=_0x5e4577?'\x0aEnv:\x20'+_0x5e4577:'';return _0x296a47(0xdd)+_0x37ad3d+_0x296a47(0xb2)+_0x53d28d+_0x27855a+_0x296a47(0xf1);}function isRecord(_0x5cb6a8){const _0x41bb7a=a64_0xf47058;return typeof _0x5cb6a8===_0x41bb7a(0xe2)&&_0x5cb6a8!==null&&!Array[_0x41bb7a(0xea)](_0x5cb6a8);}function hasWorkspaceAppBinding(_0x4b2c22){const _0x5477f4=a64_0xf47058;if(typeof _0x4b2c22[_0x5477f4(0xbd)]===_0x5477f4(0xd2)&&_0x4b2c22[_0x5477f4(0xbd)][_0x5477f4(0xe6)]()[_0x5477f4(0xd1)]>0x0)return!![];if(typeof _0x4b2c22[_0x5477f4(0xac)]!==_0x5477f4(0xd2)||!_0x4b2c22[_0x5477f4(0xac)][_0x5477f4(0xe6)]())return![];if(!isRecord(_0x4b2c22['apps']))return![];const _0x239f75=_0x4b2c22[_0x5477f4(0xee)][_0x4b2c22[_0x5477f4(0xac)]['trim']()];return isRecord(_0x239f75)&&typeof _0x239f75[_0x5477f4(0xbd)]===_0x5477f4(0xd2)&&_0x239f75['appcode'][_0x5477f4(0xe6)]()[_0x5477f4(0xd1)]>0x0;}function a64_0x4079(_0x31f78a,_0x161a64){_0x31f78a=_0x31f78a-0xac;const _0x25de6d=a64_0x25de();let _0x407966=_0x25de6d[_0x31f78a];return _0x407966;}function assertWorkspaceCommandState(_0x493463,_0x2ce61c){const _0x8cece4=a64_0xf47058,_0xaa4b54=hasWorkspaceAppBinding(_0x2ce61c);if(_0x493463===_0x8cece4(0xb9)&&_0xaa4b54)throw CliErrors[_0x8cece4(0xb1)](_0x8cece4(0xec),'Use\x20`'+CLI_BIN_NAME+_0x8cece4(0xe3)+CLI_BIN_NAME+_0x8cece4(0xd3));if(_0x493463===_0x8cece4(0xda)&&!_0xaa4b54)throw CliErrors[_0x8cece4(0xb1)](_0x8cece4(0xd5),_0x8cece4(0xcf)+CLI_BIN_NAME+_0x8cece4(0xb0)+CLI_BIN_NAME+_0x8cece4(0xb6));}function makeWorkspaceCommand(_0x249694){const _0x5777c9=a64_0xf47058;return{'service':_0x5777c9(0xed),'command':_0x249694,'description':_0x249694===_0x5777c9(0xb9)?_0x5777c9(0xb7):_0x5777c9(0xad),'risk':_0x5777c9(0xdc),'confirmationDescription':_0x249694===_0x5777c9(0xb9)?_0x5777c9(0xba):_0x5777c9(0xef),'requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':WORKSPACE_USE_FLAGS,async 'execute'(_0x2a5d76){return executeWorkspaceUse(_0x2a5d76,_0x249694);}};}export const workspaceDefinitions=[makeWorkspaceCommand('init'),makeWorkspaceCommand(a64_0xf47058(0xda))];
@@ -1 +1 @@
1
- const a65_0x4b9e4c=a65_0x78ce;(function(_0x498ead,_0x84d183){const _0x15b39a=a65_0x78ce,_0x56d1b1=_0x498ead();while(!![]){try{const _0x59ff14=-parseInt(_0x15b39a(0x14e))/0x1*(-parseInt(_0x15b39a(0x15d))/0x2)+-parseInt(_0x15b39a(0x14c))/0x3+-parseInt(_0x15b39a(0x160))/0x4*(-parseInt(_0x15b39a(0x146))/0x5)+-parseInt(_0x15b39a(0x14a))/0x6*(parseInt(_0x15b39a(0x149))/0x7)+-parseInt(_0x15b39a(0x144))/0x8+parseInt(_0x15b39a(0x151))/0x9+-parseInt(_0x15b39a(0x14f))/0xa*(-parseInt(_0x15b39a(0x140))/0xb);if(_0x59ff14===_0x84d183)break;else _0x56d1b1['push'](_0x56d1b1['shift']());}catch(_0x105d92){_0x56d1b1['push'](_0x56d1b1['shift']());}}}(a65_0x7340,0x5473c));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_0x4b9e4c(0x15e),'topLevel':!![],'cliSettableTopLevel':!![],'enumValues':RUNTIME_ENV_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES[a65_0x4b9e4c(0x15c)],'importable':!![]},'format':{'description':a65_0x4b9e4c(0x147),'topLevel':!![],'cliSettableTopLevel':!![],'enumValues':OUTPUT_FORMAT_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES['format'],'importable':!![]},'pageSize':{'description':a65_0x4b9e4c(0x156),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'apiDomain':{'description':a65_0x4b9e4c(0x15a),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'userDomain':{'description':'Override\x20user\x20domain','topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'runtimeDomain':{'description':a65_0x4b9e4c(0x157),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'skillHubDomain':{'description':a65_0x4b9e4c(0x141),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'accessKey':{'description':a65_0x4b9e4c(0x154),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'riskLevel':{'description':a65_0x4b9e4c(0x15f),'topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES[a65_0x4b9e4c(0x153)],'importable':!![]},'locale':{'description':a65_0x4b9e4c(0x14d),'topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES[a65_0x4b9e4c(0x142)],'importable':!![],'legacyCompatOnly':!![]}};export const TOP_LEVEL_CONFIG_KEYS=new Set(Object['entries'](CONFIG_FIELD_SCHEMAS)[a65_0x4b9e4c(0x15b)](([,_0x43fa73])=>_0x43fa73[a65_0x4b9e4c(0x148)])[a65_0x4b9e4c(0x14b)](([_0x57ad5e])=>_0x57ad5e));export const CONFIG_ENUM_VALUES=Object[a65_0x4b9e4c(0x145)](Object[a65_0x4b9e4c(0x155)](CONFIG_FIELD_SCHEMAS)[a65_0x4b9e4c(0x15b)](([,_0x4b6c2d])=>_0x4b6c2d['enumValues'])[a65_0x4b9e4c(0x14b)](([_0x591821,_0x3b19e4])=>[_0x591821,[..._0x3b19e4['enumValues']||[]]]));export const IMPORTABLE_RUNTIME_CONFIG_KEYS=Object[a65_0x4b9e4c(0x155)](CONFIG_FIELD_SCHEMAS)[a65_0x4b9e4c(0x15b)](([,_0x5bfb1f])=>_0x5bfb1f[a65_0x4b9e4c(0x143)])['map'](([_0x4ea8f0])=>_0x4ea8f0);export function getConfigFieldSchema(_0x4d7baf){return CONFIG_FIELD_SCHEMAS[_0x4d7baf];}function a65_0x78ce(_0x32e9bc,_0x5acbfb){_0x32e9bc=_0x32e9bc-0x140;const _0x7340aa=a65_0x7340();let _0x78ce98=_0x7340aa[_0x32e9bc];return _0x78ce98;}export function getConfigEnumValues(_0x23f659){const _0x1b3ce6=a65_0x4b9e4c;return getConfigFieldSchema(_0x23f659)?.[_0x1b3ce6(0x158)];}export function getConfigDefaultValue(_0x427979){const _0x2efc84=a65_0x4b9e4c;return getConfigFieldSchema(_0x427979)?.[_0x2efc84(0x161)];}export function isTopLevelConfigKey(_0x5dd117){return TOP_LEVEL_CONFIG_KEYS['has'](_0x5dd117);}export function isLegacyCompatConfigKey(_0x2fbe39){const _0x4daea5=a65_0x4b9e4c;return getConfigFieldSchema(_0x2fbe39)?.[_0x4daea5(0x159)]===!![];}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function formatConfigKeyList(_0x16954d){return[..._0x16954d]['join'](',\x20');}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){const _0x4989a8=a65_0x4b9e4c;return _0x4989a8(0x150)+getTopLevelConfigKeySummary()+_0x4989a8(0x152);}export function buildAppProfileListFields(_0x24138a){return{'env':_0x24138a,'hasAccessKey':![],'format':null,'pageSize':null,'riskLevel':null,'locale':null};}function a65_0x7340(){const _0x89a872=['14377WtmRPu','Override\x20SkillHub\x20domain','locale','importable','5378880VLaOhF','fromEntries','259505EpqhdM','Default\x20output\x20format','cliSettableTopLevel','49SBmWSg','254838xAvnlV','map','1424616MRqkXR','Locale','1typLqJ','4710maivlw','Config\x20key.\x20Top-level:\x20','5409684RBNdEx',';\x20local\x20alias:\x20apps.<alias>.appcode','riskLevel','Access\x20key\x20(client-ak\x20auth)','entries','Default\x20page\x20size','Override\x20runtime\x20domain','enumValues','legacyCompatOnly','Override\x20API\x20domain','filter','env','1043770Czypvc','Target\x20environment','Risk\x20level','4LVUCii','defaultValue'];a65_0x7340=function(){return _0x89a872;};return a65_0x7340();}
1
+ const a65_0x22fe59=a65_0xbe33;(function(_0x784173,_0x2e0480){const _0x8b5c75=a65_0xbe33,_0x20fead=_0x784173();while(!![]){try{const _0x1898af=-parseInt(_0x8b5c75(0x1ab))/0x1+parseInt(_0x8b5c75(0x1b4))/0x2+-parseInt(_0x8b5c75(0x1ae))/0x3+parseInt(_0x8b5c75(0x19e))/0x4*(parseInt(_0x8b5c75(0x1b9))/0x5)+-parseInt(_0x8b5c75(0x1b2))/0x6+parseInt(_0x8b5c75(0x1a9))/0x7+parseInt(_0x8b5c75(0x19d))/0x8*(parseInt(_0x8b5c75(0x1b8))/0x9);if(_0x1898af===_0x2e0480)break;else _0x20fead['push'](_0x20fead['shift']());}catch(_0x17b017){_0x20fead['push'](_0x20fead['shift']());}}}(a65_0x14a3,0x1d1b6));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_0x22fe59(0x1af),'topLevel':!![],'cliSettableTopLevel':!![],'enumValues':RUNTIME_ENV_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES[a65_0x22fe59(0x1b3)],'importable':!![]},'format':{'description':'Default\x20output\x20format','topLevel':!![],'cliSettableTopLevel':!![],'enumValues':OUTPUT_FORMAT_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES[a65_0x22fe59(0x1a1)],'importable':!![]},'pageSize':{'description':'Default\x20page\x20size','topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'apiDomain':{'description':a65_0x22fe59(0x1a4),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'userDomain':{'description':a65_0x22fe59(0x1a3),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'runtimeDomain':{'description':a65_0x22fe59(0x1a6),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'skillHubDomain':{'description':a65_0x22fe59(0x19f),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'accessKey':{'description':a65_0x22fe59(0x1b7),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'riskLevel':{'description':a65_0x22fe59(0x1a7),'topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES['riskLevel'],'importable':!![]},'locale':{'description':a65_0x22fe59(0x1b1),'topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES[a65_0x22fe59(0x1b0)],'importable':!![],'legacyCompatOnly':!![]}};export const TOP_LEVEL_CONFIG_KEYS=new Set(Object[a65_0x22fe59(0x1aa)](CONFIG_FIELD_SCHEMAS)['filter'](([,_0x304591])=>_0x304591[a65_0x22fe59(0x1a8)])[a65_0x22fe59(0x1b6)](([_0xd71d1])=>_0xd71d1));export const CONFIG_ENUM_VALUES=Object['fromEntries'](Object['entries'](CONFIG_FIELD_SCHEMAS)[a65_0x22fe59(0x1a5)](([,_0x5862fa])=>_0x5862fa[a65_0x22fe59(0x19c)])[a65_0x22fe59(0x1b6)](([_0xb78cc1,_0x531d8d])=>[_0xb78cc1,[..._0x531d8d[a65_0x22fe59(0x19c)]||[]]]));export const IMPORTABLE_RUNTIME_CONFIG_KEYS=Object[a65_0x22fe59(0x1aa)](CONFIG_FIELD_SCHEMAS)['filter'](([,_0x565203])=>_0x565203['importable'])[a65_0x22fe59(0x1b6)](([_0x4e608d])=>_0x4e608d);export function getConfigFieldSchema(_0x183cb6){return CONFIG_FIELD_SCHEMAS[_0x183cb6];}export function getConfigEnumValues(_0xa564f6){const _0x5cc14c=a65_0x22fe59;return getConfigFieldSchema(_0xa564f6)?.[_0x5cc14c(0x19c)];}export function getConfigDefaultValue(_0x2a063e){return getConfigFieldSchema(_0x2a063e)?.['defaultValue'];}function a65_0x14a3(){const _0x510b14=['Locale','110238BVcUwL','env','239756cxiIgx','Config\x20key.\x20Top-level:\x20','map','Access\x20key\x20(client-ak\x20auth)','891CiIKKD','940yakGbs','enumValues','15896yMjKGT','904rmJBuv','Override\x20SkillHub\x20domain','legacyCompatOnly','format','join','Override\x20user\x20domain','Override\x20API\x20domain','filter','Override\x20runtime\x20domain','Risk\x20level','cliSettableTopLevel','324702OhlQAG','entries','131987nvgktl','has',';\x20local\x20alias:\x20apps.<alias>.appcode','407649CUFUVJ','Target\x20environment','locale'];a65_0x14a3=function(){return _0x510b14;};return a65_0x14a3();}export function isTopLevelConfigKey(_0x46a585){const _0x24855c=a65_0x22fe59;return TOP_LEVEL_CONFIG_KEYS[_0x24855c(0x1ac)](_0x46a585);}export function isLegacyCompatConfigKey(_0x3d1b7b){const _0x25472c=a65_0x22fe59;return getConfigFieldSchema(_0x3d1b7b)?.[_0x25472c(0x1a0)]===!![];}function a65_0xbe33(_0x5cd0c2,_0x56e9bb){_0x5cd0c2=_0x5cd0c2-0x19c;const _0x14a3e7=a65_0x14a3();let _0xbe339=_0x14a3e7[_0x5cd0c2];return _0xbe339;}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function formatConfigKeyList(_0x3057d8){const _0x185b54=a65_0x22fe59;return[..._0x3057d8][_0x185b54(0x1a2)](',\x20');}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){const _0x540b02=a65_0x22fe59;return _0x540b02(0x1b5)+getTopLevelConfigKeySummary()+_0x540b02(0x1ad);}export function buildAppProfileListFields(_0x1d67c6){return{'env':_0x1d67c6,'hasAccessKey':![],'format':null,'pageSize':null,'riskLevel':null,'locale':null};}
@@ -1 +1 @@
1
- function a66_0x3267(_0x4758ad,_0x2d8a6a){_0x4758ad=_0x4758ad-0x178;const _0x19912b=a66_0x1991();let _0x326757=_0x19912b[_0x4758ad];return _0x326757;}const a66_0x57e2f7=a66_0x3267;(function(_0x24eb92,_0x38e4b5){const _0x493db9=a66_0x3267,_0x1c73cc=_0x24eb92();while(!![]){try{const _0x3e84d0=-parseInt(_0x493db9(0x179))/0x1+parseInt(_0x493db9(0x180))/0x2+parseInt(_0x493db9(0x183))/0x3+parseInt(_0x493db9(0x17a))/0x4*(-parseInt(_0x493db9(0x17d))/0x5)+parseInt(_0x493db9(0x178))/0x6*(parseInt(_0x493db9(0x17f))/0x7)+parseInt(_0x493db9(0x17c))/0x8*(parseInt(_0x493db9(0x182))/0x9)+-parseInt(_0x493db9(0x17b))/0xa;if(_0x3e84d0===_0x38e4b5)break;else _0x1c73cc['push'](_0x1c73cc['shift']());}catch(_0x47a83b){_0x1c73cc['push'](_0x1c73cc['shift']());}}}(a66_0x1991,0x35d2c));function a66_0x1991(){const _0x5bc03c=['171UdbzYR','932022duKbzV','PUBLISHED','6cdJBvu','391453qDVNDA','4VVGeoO','3794230ezKZoN','51552BWBYfU','360025CWswzX','UNPUBLISH','3043698fIlaWE','390834bpQUQK','Published'];a66_0x1991=function(){return _0x5bc03c;};return a66_0x1991();}export const APP_PUBLISH_STATUS={'Published':a66_0x57e2f7(0x184),'Unpublished':a66_0x57e2f7(0x17e)};export const RUNTIME_ACCESSIBLE_APP_STATUS=APP_PUBLISH_STATUS[a66_0x57e2f7(0x181)];
1
+ const a66_0x11bd98=a66_0x20da;(function(_0x2ef207,_0x1a1ea1){const _0x139339=a66_0x20da,_0x30eb74=_0x2ef207();while(!![]){try{const _0x33fdba=-parseInt(_0x139339(0x179))/0x1+parseInt(_0x139339(0x17b))/0x2*(-parseInt(_0x139339(0x174))/0x3)+-parseInt(_0x139339(0x17d))/0x4+parseInt(_0x139339(0x17a))/0x5*(parseInt(_0x139339(0x177))/0x6)+-parseInt(_0x139339(0x175))/0x7+parseInt(_0x139339(0x17c))/0x8+parseInt(_0x139339(0x17e))/0x9;if(_0x33fdba===_0x1a1ea1)break;else _0x30eb74['push'](_0x30eb74['shift']());}catch(_0x3ae330){_0x30eb74['push'](_0x30eb74['shift']());}}}(a66_0x4153,0x9db56));function a66_0x20da(_0xbd9f63,_0x1775b4){_0xbd9f63=_0xbd9f63-0x174;const _0x415377=a66_0x4153();let _0x20da18=_0x415377[_0xbd9f63];return _0x20da18;}function a66_0x4153(){const _0x28e43f=['2488367niRKzV','Published','2046yBRZwA','PUBLISHED','835122ylGNIM','4750uMjyWp','1626pJZcPm','3962568rvYbkn','1071684jxqZgz','15020667tGdrCT','1416dZgZqd'];a66_0x4153=function(){return _0x28e43f;};return a66_0x4153();}export const APP_PUBLISH_STATUS={'Published':a66_0x11bd98(0x178),'Unpublished':'UNPUBLISH'};export const RUNTIME_ACCESSIBLE_APP_STATUS=APP_PUBLISH_STATUS[a66_0x11bd98(0x176)];
@@ -1 +1 @@
1
- const a67_0x451e69=a67_0x4306;function a67_0x55c9(){const _0xf553c2=['124Akypuc','6866685mxVqTF','1891860igijop','421125dJtZAa','8ZAHGVT','183735jpGMIm','client-ak','690705LjGOTA','5303683blEdTM','2355876hLyXzp','6GusmFe'];a67_0x55c9=function(){return _0xf553c2;};return a67_0x55c9();}(function(_0x2386e5,_0x60c3a3){const _0xda11fc=a67_0x4306,_0xa04529=_0x2386e5();while(!![]){try{const _0x9aedab=parseInt(_0xda11fc(0xa9))/0x1+-parseInt(_0xda11fc(0xab))/0x2+-parseInt(_0xda11fc(0xb0))/0x3+-parseInt(_0xda11fc(0xad))/0x4*(-parseInt(_0xda11fc(0xa7))/0x5)+-parseInt(_0xda11fc(0xac))/0x6*(parseInt(_0xda11fc(0xaa))/0x7)+parseInt(_0xda11fc(0xa6))/0x8*(parseInt(_0xda11fc(0xae))/0x9)+parseInt(_0xda11fc(0xaf))/0xa;if(_0x9aedab===_0x60c3a3)break;else _0xa04529['push'](_0xa04529['shift']());}catch(_0x26aba5){_0xa04529['push'](_0xa04529['shift']());}}}(a67_0x55c9,0xac5ef));export const AUTH_MODE={'ClientAk':a67_0x451e69(0xa8)};function a67_0x4306(_0x1719f8,_0x58e2f1){_0x1719f8=_0x1719f8-0xa6;const _0x55c9ed=a67_0x55c9();let _0x43067e=_0x55c9ed[_0x1719f8];return _0x43067e;}export function isAuthMode(_0x168e00){return _0x168e00===AUTH_MODE['ClientAk'];}
1
+ const a67_0x4024bf=a67_0x1464;function a67_0x1464(_0x477373,_0x24b1d9){_0x477373=_0x477373-0x159;const _0x2281e4=a67_0x2281();let _0x1464fd=_0x2281e4[_0x477373];return _0x1464fd;}(function(_0xc81dbc,_0x547a2d){const _0x51a08c=a67_0x1464,_0x36ced8=_0xc81dbc();while(!![]){try{const _0xa63fb=-parseInt(_0x51a08c(0x161))/0x1*(parseInt(_0x51a08c(0x163))/0x2)+parseInt(_0x51a08c(0x15d))/0x3+-parseInt(_0x51a08c(0x159))/0x4+-parseInt(_0x51a08c(0x15b))/0x5*(parseInt(_0x51a08c(0x164))/0x6)+-parseInt(_0x51a08c(0x160))/0x7*(parseInt(_0x51a08c(0x15a))/0x8)+parseInt(_0x51a08c(0x15e))/0x9+parseInt(_0x51a08c(0x15c))/0xa;if(_0xa63fb===_0x547a2d)break;else _0x36ced8['push'](_0x36ced8['shift']());}catch(_0xcace19){_0x36ced8['push'](_0x36ced8['shift']());}}}(a67_0x2281,0xb727a));function a67_0x2281(){const _0x2180e1=['1584OoAxtm','client-ak','1226ZKVFUo','1158FAIBpc','3701452uPsXiA','5320YPopYq','31470YWvGrf','16253430kINEPI','3153204YKFabf','12357747WuwRhR','ClientAk','1981lEvzgS'];a67_0x2281=function(){return _0x2180e1;};return a67_0x2281();}export const AUTH_MODE={'ClientAk':a67_0x4024bf(0x162)};export function isAuthMode(_0x18314c){const _0x3cdad3=a67_0x4024bf;return _0x18314c===AUTH_MODE[_0x3cdad3(0x15f)];}
@@ -1 +1 @@
1
- const a68_0x21295d=a68_0x4971;function a68_0x4971(_0x4b9628,_0xf564fd){_0x4b9628=_0x4b9628-0x9d;const _0x531eb5=a68_0x531e();let _0x497125=_0x531eb5[_0x4b9628];return _0x497125;}(function(_0x1e1b68,_0x479263){const _0x3f3ac6=a68_0x4971,_0x418c6c=_0x1e1b68();while(!![]){try{const _0x5c8015=parseInt(_0x3f3ac6(0xb6))/0x1*(-parseInt(_0x3f3ac6(0xaf))/0x2)+parseInt(_0x3f3ac6(0xb9))/0x3*(parseInt(_0x3f3ac6(0x9f))/0x4)+parseInt(_0x3f3ac6(0xb2))/0x5+-parseInt(_0x3f3ac6(0xb0))/0x6+-parseInt(_0x3f3ac6(0xa3))/0x7*(parseInt(_0x3f3ac6(0xa6))/0x8)+parseInt(_0x3f3ac6(0xad))/0x9+-parseInt(_0x3f3ac6(0xbe))/0xa;if(_0x5c8015===_0x479263)break;else _0x418c6c['push'](_0x418c6c['shift']());}catch(_0xb54182){_0x418c6c['push'](_0x418c6c['shift']());}}}(a68_0x531e,0x6d36e));import{PRODUCT_CONFIG}from'../constant/product.js';import{LOVRABET_NPM_PACKAGE_NAME}from'../constant/distribution.js';export const CLI_BIN_NAME=PRODUCT_CONFIG['cliBinName'];export const CLI_DISPLAY_NAME=PRODUCT_CONFIG['cliDisplayName'];export const NPM_PACKAGE_NAME=LOVRABET_NPM_PACKAGE_NAME;export const GLOBAL_FLAGS=[{'name':'appcode','meowKey':'appcode','type':a68_0x21295d(0xb8),'description':a68_0x21295d(0xc1),'hint':a68_0x21295d(0xa5)},{'name':a68_0x21295d(0xc6),'meowKey':a68_0x21295d(0xc6),'type':a68_0x21295d(0xb8),'description':'Select\x20app\x20profile\x20by\x20name','hint':a68_0x21295d(0xa9)},{'name':a68_0x21295d(0xc8),'meowKey':'env','type':'string','description':a68_0x21295d(0x9e),'hint':a68_0x21295d(0xb5)},{'name':a68_0x21295d(0xc0),'meowKey':a68_0x21295d(0xc0),'type':'string','description':a68_0x21295d(0xb1),'hint':a68_0x21295d(0xbb)},{'name':'jq','meowKey':'jq','type':a68_0x21295d(0xb8),'description':a68_0x21295d(0xaa),'hint':a68_0x21295d(0xb3)},{'name':a68_0x21295d(0xac),'meowKey':a68_0x21295d(0xca),'type':a68_0x21295d(0xab),'description':a68_0x21295d(0xba)},{'name':'yes','meowKey':'yes','type':a68_0x21295d(0xab),'description':'Skip\x20confirmation\x20for\x20high-risk\x20writes'},{'name':a68_0x21295d(0xbf),'meowKey':a68_0x21295d(0xa2),'type':a68_0x21295d(0xab),'description':'Force\x20non-interactive\x20mode\x20(CI)'},{'name':'global','meowKey':a68_0x21295d(0xc2),'type':a68_0x21295d(0xab),'description':a68_0x21295d(0xbc)},{'name':'ci','meowKey':'ci','type':a68_0x21295d(0xab),'description':a68_0x21295d(0xb4),'hidden':!![]},{'name':a68_0x21295d(0xae),'meowKey':'help','type':a68_0x21295d(0xab),'description':a68_0x21295d(0xc5)},{'name':'id','meowKey':'id','type':a68_0x21295d(0xb8),'description':'Record\x20ID','hidden':!![]},{'name':a68_0x21295d(0xc3),'meowKey':a68_0x21295d(0xc3),'type':a68_0x21295d(0xb8),'description':a68_0x21295d(0xc7),'hidden':!![]},{'name':'sqlcode','meowKey':a68_0x21295d(0xc4),'type':a68_0x21295d(0xb8),'description':a68_0x21295d(0xa0),'hidden':!![]},{'name':a68_0x21295d(0x9d),'meowKey':a68_0x21295d(0x9d),'type':a68_0x21295d(0xb8),'description':'JSON\x20params\x20for\x20execute\x20commands','hidden':!![]},{'name':a68_0x21295d(0xb7),'meowKey':a68_0x21295d(0xb7),'type':a68_0x21295d(0xab),'description':a68_0x21295d(0xa1),'hidden':!![]},{'name':'clear','meowKey':a68_0x21295d(0xa8),'type':a68_0x21295d(0xab),'description':a68_0x21295d(0xa4),'hidden':!![]}];function a68_0x531e(){const _0x2e2464=['Output\x20format','3207235hHhZLX','<expr>','Alias\x20for\x20--non-interactive','production\x20|\x20development\x20|\x20daily','298163jDwBAU','verbose','string','26886mFFNNB','Preview\x20operation\x20without\x20executing','json\x20|\x20pretty\x20|\x20compress','Use\x20global\x20config\x20scope','yes','1996620xfktrW','non-interactive','format','Override\x20appcode','global','name','sqlcode','Show\x20help','app','Name\x20filter','env','meowKey','dryRun','map','params','Environment','284yuJnjA','SQL\x20query\x20code','Verbose\x20output','nonInteractive','2469936lAGnAG','Clear\x20output','<code>','8CfgIVD','type','clear','<name>','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20implies\x20--format\x20json\x20when\x20current\x20format\x20is\x20pretty)','boolean','dry-run','5375340xSqnQR','help','4vMSbgY','1672986SAimdP'];a68_0x531e=function(){return _0x2e2464;};return a68_0x531e();}export const PIPELINE_FLAG_NAMES=new Set(['appcode',a68_0x21295d(0xc6),a68_0x21295d(0xc8),'format','jq',a68_0x21295d(0xac),a68_0x21295d(0xbd),a68_0x21295d(0xbf),'ci']);export function buildMeowFlags(){const _0x466ee3=a68_0x21295d;return Object['fromEntries'](GLOBAL_FLAGS[_0x466ee3(0xcb)](_0x3a871d=>[_0x3a871d[_0x466ee3(0xc9)],{'type':_0x3a871d[_0x466ee3(0xa7)]}]));}
1
+ const a68_0x291eb8=a68_0x4b21;(function(_0x449f2e,_0x2fc555){const _0x3ea15a=a68_0x4b21,_0x2fc515=_0x449f2e();while(!![]){try{const _0x5c744e=-parseInt(_0x3ea15a(0xbe))/0x1*(parseInt(_0x3ea15a(0xcc))/0x2)+parseInt(_0x3ea15a(0xc5))/0x3+parseInt(_0x3ea15a(0xe0))/0x4+-parseInt(_0x3ea15a(0xb4))/0x5+-parseInt(_0x3ea15a(0xda))/0x6+parseInt(_0x3ea15a(0xd4))/0x7+parseInt(_0x3ea15a(0xc8))/0x8*(parseInt(_0x3ea15a(0xd7))/0x9);if(_0x5c744e===_0x2fc555)break;else _0x2fc515['push'](_0x2fc515['shift']());}catch(_0x2a8fd2){_0x2fc515['push'](_0x2fc515['shift']());}}}(a68_0x32af,0xb4ac9));import{PRODUCT_CONFIG}from'../constant/product.js';import{LOVRABET_NPM_PACKAGE_NAME}from'../constant/distribution.js';export const CLI_BIN_NAME=PRODUCT_CONFIG[a68_0x291eb8(0xc1)];export const CLI_DISPLAY_NAME=PRODUCT_CONFIG[a68_0x291eb8(0xce)];function a68_0x4b21(_0x3a2dc0,_0x4c7be3){_0x3a2dc0=_0x3a2dc0-0xb3;const _0x32afd1=a68_0x32af();let _0x4b21aa=_0x32afd1[_0x3a2dc0];return _0x4b21aa;}export const NPM_PACKAGE_NAME=LOVRABET_NPM_PACKAGE_NAME;export const GLOBAL_FLAGS=[{'name':a68_0x291eb8(0xba),'meowKey':a68_0x291eb8(0xba),'type':a68_0x291eb8(0xcb),'description':a68_0x291eb8(0xc4),'hint':a68_0x291eb8(0xb5)},{'name':a68_0x291eb8(0xbb),'meowKey':a68_0x291eb8(0xbb),'type':a68_0x291eb8(0xcb),'description':a68_0x291eb8(0xc7),'hint':a68_0x291eb8(0xdf)},{'name':a68_0x291eb8(0xde),'meowKey':a68_0x291eb8(0xde),'type':a68_0x291eb8(0xcb),'description':'Environment','hint':a68_0x291eb8(0xd9)},{'name':a68_0x291eb8(0xc9),'meowKey':'format','type':a68_0x291eb8(0xcb),'description':a68_0x291eb8(0xc0),'hint':'json\x20|\x20pretty\x20|\x20compress'},{'name':'jq','meowKey':'jq','type':a68_0x291eb8(0xcb),'description':a68_0x291eb8(0xd1),'hint':'<expr>'},{'name':a68_0x291eb8(0xcd),'meowKey':'dryRun','type':'boolean','description':a68_0x291eb8(0xdd)},{'name':a68_0x291eb8(0xca),'meowKey':a68_0x291eb8(0xca),'type':a68_0x291eb8(0xb8),'description':a68_0x291eb8(0xd5)},{'name':a68_0x291eb8(0xb3),'meowKey':'nonInteractive','type':a68_0x291eb8(0xb8),'description':a68_0x291eb8(0xd8)},{'name':a68_0x291eb8(0xdb),'meowKey':'global','type':'boolean','description':a68_0x291eb8(0xd0)},{'name':'ci','meowKey':'ci','type':'boolean','description':'Alias\x20for\x20--non-interactive','hidden':!![]},{'name':a68_0x291eb8(0xd2),'meowKey':a68_0x291eb8(0xd2),'type':a68_0x291eb8(0xb8),'description':a68_0x291eb8(0xbf)},{'name':'id','meowKey':'id','type':a68_0x291eb8(0xcb),'description':a68_0x291eb8(0xdc),'hidden':!![]},{'name':a68_0x291eb8(0xcf),'meowKey':a68_0x291eb8(0xcf),'type':'string','description':a68_0x291eb8(0xbd),'hidden':!![]},{'name':'sqlcode','meowKey':a68_0x291eb8(0xc3),'type':a68_0x291eb8(0xcb),'description':a68_0x291eb8(0xd6),'hidden':!![]},{'name':a68_0x291eb8(0xc6),'meowKey':a68_0x291eb8(0xc6),'type':'string','description':a68_0x291eb8(0xb7),'hidden':!![]},{'name':a68_0x291eb8(0xd3),'meowKey':a68_0x291eb8(0xd3),'type':a68_0x291eb8(0xb8),'description':a68_0x291eb8(0xc2),'hidden':!![]},{'name':a68_0x291eb8(0xbc),'meowKey':a68_0x291eb8(0xbc),'type':'boolean','description':a68_0x291eb8(0xe1),'hidden':!![]}];function a68_0x32af(){const _0x1e3ffa=['Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20implies\x20--format\x20json\x20when\x20current\x20format\x20is\x20pretty)','help','verbose','3629682SWRopd','Skip\x20confirmation\x20for\x20high-risk\x20writes','SQL\x20query\x20code','9CpIHgH','Force\x20non-interactive\x20mode\x20(CI)','production\x20|\x20development\x20|\x20daily','3383706HKFogS','global','Record\x20ID','Preview\x20operation\x20without\x20executing','env','<name>','184344HvhWjB','Clear\x20output','non-interactive','3099190laxIAJ','<code>','meowKey','JSON\x20params\x20for\x20execute\x20commands','boolean','fromEntries','appcode','app','clear','Name\x20filter','3taXQIL','Show\x20help','Output\x20format','cliBinName','Verbose\x20output','sqlcode','Override\x20appcode','2794032EtFxJb','params','Select\x20app\x20profile\x20by\x20name','14798536QUVsea','format','yes','string','947962sxnXdR','dry-run','cliDisplayName','name','Use\x20global\x20config\x20scope'];a68_0x32af=function(){return _0x1e3ffa;};return a68_0x32af();}export const PIPELINE_FLAG_NAMES=new Set([a68_0x291eb8(0xba),a68_0x291eb8(0xbb),a68_0x291eb8(0xde),a68_0x291eb8(0xc9),'jq',a68_0x291eb8(0xcd),'yes',a68_0x291eb8(0xb3),'ci']);export function buildMeowFlags(){const _0x14d270=a68_0x291eb8;return Object[_0x14d270(0xb9)](GLOBAL_FLAGS['map'](_0x132ae5=>[_0x132ae5[_0x14d270(0xb6)],{'type':_0x132ae5['type']}]));}
@@ -1 +1 @@
1
- const a69_0x576b1d=a69_0x3597;function a69_0x3597(_0x51b21c,_0x1edf9d){_0x51b21c=_0x51b21c-0x13f;const _0x5ec0d1=a69_0x5ec0();let _0x3597f8=_0x5ec0d1[_0x51b21c];return _0x3597f8;}(function(_0x22983d,_0x1fadd3){const _0x4c40a0=a69_0x3597,_0x18063d=_0x22983d();while(!![]){try{const _0x5e3de3=-parseInt(_0x4c40a0(0x145))/0x1+-parseInt(_0x4c40a0(0x140))/0x2+parseInt(_0x4c40a0(0x146))/0x3*(parseInt(_0x4c40a0(0x14a))/0x4)+-parseInt(_0x4c40a0(0x144))/0x5+parseInt(_0x4c40a0(0x142))/0x6+-parseInt(_0x4c40a0(0x13f))/0x7*(-parseInt(_0x4c40a0(0x143))/0x8)+-parseInt(_0x4c40a0(0x148))/0x9*(-parseInt(_0x4c40a0(0x141))/0xa);if(_0x5e3de3===_0x1fadd3)break;else _0x18063d['push'](_0x18063d['shift']());}catch(_0x85bb6e){_0x18063d['push'](_0x18063d['shift']());}}}(a69_0x5ec0,0xacb53));export const DEFAULT_APP_PROFILE_NAME='main';function a69_0x5ec0(){const _0x34aeed=['production','63inXtgy','compress','5044qFUOsd','write','42WwOUdZ','1326620khzLhl','2146810fvwSuo','3805944nNLqeM','945528bVbXdB','5134610BqzYEh','1327511wpoEbo','2091pPUdJQ'];a69_0x5ec0=function(){return _0x34aeed;};return a69_0x5ec0();}export const DEFAULT_CONFIG_VALUES={'env':a69_0x576b1d(0x147),'format':a69_0x576b1d(0x149),'locale':'en-US','riskLevel':a69_0x576b1d(0x14b)};export const DEFAULT_COMMAND_OUTPUT_FORMAT=a69_0x576b1d(0x149);
1
+ function a69_0x4070(){const _0x77e901=['main','35546QFSuem','21092628vHqDyA','10qBhIkb','compress','92376NqcXbA','33892zFWCPc','2458632paLrUf','86MgVHBf','en-US','32xLVqOg','1254esHyyI','10pBSFJH','production','1382175cRGmLb','2735997zkOfTz'];a69_0x4070=function(){return _0x77e901;};return a69_0x4070();}const a69_0x4e6d7a=a69_0x2581;(function(_0x8ba5c1,_0x517e89){const _0x245f24=a69_0x2581,_0x4719da=_0x8ba5c1();while(!![]){try{const _0x441c62=parseInt(_0x245f24(0x17e))/0x1*(parseInt(_0x245f24(0x180))/0x2)+parseInt(_0x245f24(0x17f))/0x3+-parseInt(_0x245f24(0x17d))/0x4*(-parseInt(_0x245f24(0x184))/0x5)+-parseInt(_0x245f24(0x183))/0x6*(-parseInt(_0x245f24(0x189))/0x7)+-parseInt(_0x245f24(0x182))/0x8*(parseInt(_0x245f24(0x186))/0x9)+-parseInt(_0x245f24(0x18b))/0xa*(parseInt(_0x245f24(0x187))/0xb)+-parseInt(_0x245f24(0x18a))/0xc;if(_0x441c62===_0x517e89)break;else _0x4719da['push'](_0x4719da['shift']());}catch(_0x8d8e0a){_0x4719da['push'](_0x4719da['shift']());}}}(a69_0x4070,0xba6fc));function a69_0x2581(_0x3c82b6,_0x511e2d){_0x3c82b6=_0x3c82b6-0x17c;const _0x4070a0=a69_0x4070();let _0x258108=_0x4070a0[_0x3c82b6];return _0x258108;}export const DEFAULT_APP_PROFILE_NAME=a69_0x4e6d7a(0x188);export const DEFAULT_CONFIG_VALUES={'env':a69_0x4e6d7a(0x185),'format':a69_0x4e6d7a(0x17c),'locale':a69_0x4e6d7a(0x181),'riskLevel':'write'};export const DEFAULT_COMMAND_OUTPUT_FORMAT=a69_0x4e6d7a(0x17c);
@@ -1 +1 @@
1
- const a70_0x52c068=a70_0x5c31;(function(_0x2f5361,_0x230b01){const _0x7cf862=a70_0x5c31,_0x274713=_0x2f5361();while(!![]){try{const _0x4cefa7=-parseInt(_0x7cf862(0x155))/0x1*(-parseInt(_0x7cf862(0x152))/0x2)+parseInt(_0x7cf862(0x15b))/0x3+parseInt(_0x7cf862(0x153))/0x4+-parseInt(_0x7cf862(0x159))/0x5+-parseInt(_0x7cf862(0x154))/0x6*(-parseInt(_0x7cf862(0x15c))/0x7)+parseInt(_0x7cf862(0x151))/0x8+-parseInt(_0x7cf862(0x158))/0x9*(parseInt(_0x7cf862(0x15d))/0xa);if(_0x4cefa7===_0x230b01)break;else _0x274713['push'](_0x274713['shift']());}catch(_0x4ddbb2){_0x274713['push'](_0x274713['shift']());}}}(a70_0x43bc,0xbb091));import{PRODUCT_CONFIG}from'../constant/product.js';function a70_0x43bc(){const _0x219fbc=['102ixgjjT','5KJtIYQ','skillSource','npmRegistryBaseUrl','23473647xjMABk','6863630rybwUI','npmPackageName','501393cWqyus','457422OLdAVH','10vJgYmc','10056416PTHjHJ','407894lLdqoD','4768824ggSobN'];a70_0x43bc=function(){return _0x219fbc;};return a70_0x43bc();}function a70_0x5c31(_0x32b5fd,_0x19444d){_0x32b5fd=_0x32b5fd-0x151;const _0x43bce7=a70_0x43bc();let _0x5c310d=_0x43bce7[_0x32b5fd];return _0x5c310d;}export const LOVRABET_NPM_PACKAGE_NAME=PRODUCT_CONFIG[a70_0x52c068(0x15a)];export const LOVRABET_SKILL_SOURCE=PRODUCT_CONFIG[a70_0x52c068(0x156)];export const NPM_REGISTRY_BASE_URL=PRODUCT_CONFIG[a70_0x52c068(0x157)];
1
+ const a70_0x32f54c=a70_0x2665;(function(_0x123186,_0x57a509){const _0x3e6315=a70_0x2665,_0x14cea0=_0x123186();while(!![]){try{const _0x8ff916=-parseInt(_0x3e6315(0x112))/0x1*(parseInt(_0x3e6315(0x118))/0x2)+-parseInt(_0x3e6315(0x116))/0x3+-parseInt(_0x3e6315(0x10e))/0x4+-parseInt(_0x3e6315(0x110))/0x5*(-parseInt(_0x3e6315(0x113))/0x6)+-parseInt(_0x3e6315(0x10c))/0x7+-parseInt(_0x3e6315(0x115))/0x8+parseInt(_0x3e6315(0x111))/0x9*(parseInt(_0x3e6315(0x117))/0xa);if(_0x8ff916===_0x57a509)break;else _0x14cea0['push'](_0x14cea0['shift']());}catch(_0x2b214f){_0x14cea0['push'](_0x14cea0['shift']());}}}(a70_0x5d5a,0xb04cf));import{PRODUCT_CONFIG}from'../constant/product.js';export const LOVRABET_NPM_PACKAGE_NAME=PRODUCT_CONFIG[a70_0x32f54c(0x10d)];export const LOVRABET_SKILL_SOURCE=PRODUCT_CONFIG[a70_0x32f54c(0x114)];function a70_0x2665(_0x45e067,_0x1cb14b){_0x45e067=_0x45e067-0x10c;const _0x5d5ac0=a70_0x5d5a();let _0x266545=_0x5d5ac0[_0x45e067];return _0x266545;}function a70_0x5d5a(){const _0x458f58=['2442078OzfhDn','2050pbViwJ','58ihQMyc','5046447uoiijZ','npmPackageName','2374840JpKkFf','npmRegistryBaseUrl','342425SxdjgN','204561ZJFiVl','40685ooTTKh','42ZUQbsV','skillSource','8865528kVmHgl'];a70_0x5d5a=function(){return _0x458f58;};return a70_0x5d5a();}export const NPM_REGISTRY_BASE_URL=PRODUCT_CONFIG[a70_0x32f54c(0x10f)];
@@ -1 +1 @@
1
- const a71_0x1c44f1=a71_0x1b24;(function(_0x37245a,_0x359747){const _0x5a7e16=a71_0x1b24,_0x667fd8=_0x37245a();while(!![]){try{const _0xdfc56b=parseInt(_0x5a7e16(0xc4))/0x1+-parseInt(_0x5a7e16(0xc1))/0x2*(-parseInt(_0x5a7e16(0xd1))/0x3)+parseInt(_0x5a7e16(0xcc))/0x4+parseInt(_0x5a7e16(0xca))/0x5*(-parseInt(_0x5a7e16(0xcf))/0x6)+parseInt(_0x5a7e16(0xc6))/0x7*(parseInt(_0x5a7e16(0xd4))/0x8)+-parseInt(_0x5a7e16(0xc5))/0x9*(parseInt(_0x5a7e16(0xc8))/0xa)+-parseInt(_0x5a7e16(0xc2))/0xb*(-parseInt(_0x5a7e16(0xc3))/0xc);if(_0xdfc56b===_0x359747)break;else _0x667fd8['push'](_0x667fd8['shift']());}catch(_0x581314){_0x667fd8['push'](_0x667fd8['shift']());}}}(a71_0x3a87,0xd353a));import{getEnv,isProduction}from'../constant/env.js';import{PRODUCT_CONFIG}from'../constant/product.js';let customApiDomain,customUserDomain,customRuntimeDomain,customSkillHubDomain;export function initDomains(_0x3e302b){const _0x3139c1=a71_0x1b24;customApiDomain=_0x3e302b?.[_0x3139c1(0xc7)],customUserDomain=_0x3e302b?.['userDomain'],customRuntimeDomain=_0x3e302b?.[_0x3139c1(0xcb)],customSkillHubDomain=_0x3e302b?.['skillHubDomain'];}function a71_0x3a87(){const _0xa327f4=['1441323RpTjep','35pTZZMS','apiDomain','60hmxcTy','production','731800hFNvqi','runtimeDomain','2344344igheQa','domains','api','42QPpuBh','runtime','77493BLxDbh','user','skillhub','1873368aIWQoN','nonProduction','26IDNlmq','7690309TngUXn','12MgLrLl','59133yKTMJh'];a71_0x3a87=function(){return _0xa327f4;};return a71_0x3a87();}export const getUserDomain=()=>customUserDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a71_0x1c44f1(0xcd)][a71_0x1c44f1(0xc9)]['user']:PRODUCT_CONFIG[a71_0x1c44f1(0xcd)][a71_0x1c44f1(0xd5)][a71_0x1c44f1(0xd2)]);function a71_0x1b24(_0x27ec3f,_0x17b395){_0x27ec3f=_0x27ec3f-0xc1;const _0x3a87f0=a71_0x3a87();let _0x1b2459=_0x3a87f0[_0x27ec3f];return _0x1b2459;}export const getApiDomain=()=>customApiDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a71_0x1c44f1(0xcd)][a71_0x1c44f1(0xc9)]['api']:PRODUCT_CONFIG[a71_0x1c44f1(0xcd)][a71_0x1c44f1(0xd5)][a71_0x1c44f1(0xce)]);export const getRuntimeDomain=()=>customRuntimeDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a71_0x1c44f1(0xcd)]['production'][a71_0x1c44f1(0xd0)]:PRODUCT_CONFIG[a71_0x1c44f1(0xcd)]['nonProduction']['runtime']);export const getSkillHubDomain=()=>customSkillHubDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a71_0x1c44f1(0xcd)][a71_0x1c44f1(0xc9)][a71_0x1c44f1(0xd3)]:PRODUCT_CONFIG['domains'][a71_0x1c44f1(0xd5)]['skillhub']);
1
+ const a71_0x130a8a=a71_0x43c9;(function(_0x259d5b,_0xaf383a){const _0x4f9991=a71_0x43c9,_0x4cd349=_0x259d5b();while(!![]){try{const _0x594614=parseInt(_0x4f9991(0x116))/0x1*(-parseInt(_0x4f9991(0x119))/0x2)+-parseInt(_0x4f9991(0x118))/0x3*(parseInt(_0x4f9991(0x115))/0x4)+-parseInt(_0x4f9991(0x117))/0x5*(parseInt(_0x4f9991(0x10c))/0x6)+parseInt(_0x4f9991(0x112))/0x7*(parseInt(_0x4f9991(0x10e))/0x8)+parseInt(_0x4f9991(0x10d))/0x9+-parseInt(_0x4f9991(0x10a))/0xa+parseInt(_0x4f9991(0x10f))/0xb;if(_0x594614===_0xaf383a)break;else _0x4cd349['push'](_0x4cd349['shift']());}catch(_0x59ab90){_0x4cd349['push'](_0x4cd349['shift']());}}}(a71_0x3f64,0x8fee8));function a71_0x43c9(_0x8da2f0,_0x55a928){_0x8da2f0=_0x8da2f0-0x10a;const _0x3f644f=a71_0x3f64();let _0x43c9b4=_0x3f644f[_0x8da2f0];return _0x43c9b4;}import{getEnv,isProduction}from'../constant/env.js';import{PRODUCT_CONFIG}from'../constant/product.js';let customApiDomain,customUserDomain,customRuntimeDomain,customSkillHubDomain;export function initDomains(_0x328b0f){const _0x34245d=a71_0x43c9;customApiDomain=_0x328b0f?.[_0x34245d(0x11c)],customUserDomain=_0x328b0f?.[_0x34245d(0x111)],customRuntimeDomain=_0x328b0f?.['runtimeDomain'],customSkillHubDomain=_0x328b0f?.['skillHubDomain'];}export const getUserDomain=()=>customUserDomain||(isProduction(getEnv())?PRODUCT_CONFIG['domains'][a71_0x130a8a(0x114)][a71_0x130a8a(0x11a)]:PRODUCT_CONFIG['domains'][a71_0x130a8a(0x10b)]['user']);function a71_0x3f64(){const _0xded178=['user','api','apiDomain','8176820JzhKbQ','nonProduction','252zbDFkA','7597341LXuAJz','160jazZxL','19705059rOtHCx','skillhub','userDomain','181433ZgeBqk','domains','production','4YVcCsZ','219025xFJfvY','76370zwRzOw','30117CLiKMy','10qrHcjq'];a71_0x3f64=function(){return _0xded178;};return a71_0x3f64();}export const getApiDomain=()=>customApiDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a71_0x130a8a(0x113)]['production']['api']:PRODUCT_CONFIG[a71_0x130a8a(0x113)][a71_0x130a8a(0x10b)][a71_0x130a8a(0x11b)]);export const getRuntimeDomain=()=>customRuntimeDomain||(isProduction(getEnv())?PRODUCT_CONFIG['domains'][a71_0x130a8a(0x114)]['runtime']:PRODUCT_CONFIG[a71_0x130a8a(0x113)]['nonProduction']['runtime']);export const getSkillHubDomain=()=>customSkillHubDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a71_0x130a8a(0x113)]['production'][a71_0x130a8a(0x110)]:PRODUCT_CONFIG[a71_0x130a8a(0x113)][a71_0x130a8a(0x10b)]['skillhub']);
@@ -1 +1 @@
1
- const a72_0xd48c61=a72_0x12d1;(function(_0x4e7660,_0x5af09a){const _0x258795=a72_0x12d1,_0x51926a=_0x4e7660();while(!![]){try{const _0x563b30=-parseInt(_0x258795(0x1d7))/0x1*(parseInt(_0x258795(0x1db))/0x2)+-parseInt(_0x258795(0x1d6))/0x3*(-parseInt(_0x258795(0x1e4))/0x4)+parseInt(_0x258795(0x1d9))/0x5+parseInt(_0x258795(0x1de))/0x6*(parseInt(_0x258795(0x1dd))/0x7)+-parseInt(_0x258795(0x1da))/0x8*(-parseInt(_0x258795(0x1e0))/0x9)+parseInt(_0x258795(0x1df))/0xa*(-parseInt(_0x258795(0x1e1))/0xb)+parseInt(_0x258795(0x1dc))/0xc*(-parseInt(_0x258795(0x1e3))/0xd);if(_0x563b30===_0x5af09a)break;else _0x51926a['push'](_0x51926a['shift']());}catch(_0x3d7210){_0x51926a['push'](_0x51926a['shift']());}}}(a72_0x1721,0x332fa));import{productEnv}from'../constant/product.js';export const RUNTIME_ENV_VALUES=[a72_0xd48c61(0x1e5),a72_0xd48c61(0x1e7),'daily'];export function normalizeEnv(_0x379d25){const _0x304b40=a72_0xd48c61;return _0x379d25===_0x304b40(0x1d8)?'production':_0x379d25;}export function isProduction(_0x58a182){return normalizeEnv(_0x58a182)==='production';}function a72_0x12d1(_0x17564e,_0x5a0d7c){_0x17564e=_0x17564e-0x1d6;const _0x172151=a72_0x1721();let _0x12d14a=_0x172151[_0x17564e];return _0x12d14a;}export function isDaily(_0x227d55){const _0x49d5f3=a72_0xd48c61;return normalizeEnv(_0x227d55)===_0x49d5f3(0x1e2);}export function isDev(_0x1bf855){const _0x164dd8=normalizeEnv(_0x1bf855);return _0x164dd8==='development'||_0x164dd8==='dev';}let env=normalizeEnv(productEnv(a72_0xd48c61(0x1e6))||a72_0xd48c61(0x1e5));export function getEnv(){return env;}function a72_0x1721(){const _0xd2c4cf=['101981sxeByS','daily','43277QiGJIK','232mXrxnn','production','ENV','development','6267sUWpCQ','119314IJcPsk','online','325990kAtVEj','3026488FjLpdB','2OJwLcq','1104DFxvvu','7Dbbqyv','2314698oRFnnt','340PNKshB','9FHjfmL'];a72_0x1721=function(){return _0xd2c4cf;};return a72_0x1721();}export function initEnv(_0x4679cd){env=normalizeEnv(_0x4679cd);}
1
+ const a72_0x123c18=a72_0x5f25;(function(_0x330008,_0x3b2575){const _0x406962=a72_0x5f25,_0x370195=_0x330008();while(!![]){try{const _0x3621b1=-parseInt(_0x406962(0x1ab))/0x1*(parseInt(_0x406962(0x1b4))/0x2)+parseInt(_0x406962(0x1ae))/0x3*(-parseInt(_0x406962(0x1b3))/0x4)+-parseInt(_0x406962(0x1a9))/0x5*(-parseInt(_0x406962(0x1aa))/0x6)+-parseInt(_0x406962(0x1af))/0x7+-parseInt(_0x406962(0x1b7))/0x8*(parseInt(_0x406962(0x1b6))/0x9)+parseInt(_0x406962(0x1ad))/0xa*(-parseInt(_0x406962(0x1b2))/0xb)+parseInt(_0x406962(0x1b5))/0xc;if(_0x3621b1===_0x3b2575)break;else _0x370195['push'](_0x370195['shift']());}catch(_0x4efad4){_0x370195['push'](_0x370195['shift']());}}}(a72_0x19ed,0xe1a3b));import{productEnv}from'../constant/product.js';function a72_0x5f25(_0x1c3698,_0x49f484){_0x1c3698=_0x1c3698-0x1a9;const _0x19ed14=a72_0x19ed();let _0x5f25e2=_0x19ed14[_0x1c3698];return _0x5f25e2;}function a72_0x19ed(){const _0xa286f0=['310798hVhsWx','dev','2961830RcYsWX','6RwQxoR','10952690iULBqE','production','development','11GPOfrr','3394124OiAZbo','10PwjYQZ','77138328YxiWfp','6415362mneVkd','16fyziHa','15CzSyHq','2067132UbreDH'];a72_0x19ed=function(){return _0xa286f0;};return a72_0x19ed();}export const RUNTIME_ENV_VALUES=['production',a72_0x123c18(0x1b1),'daily'];export function normalizeEnv(_0xf51be1){return _0xf51be1==='online'?'production':_0xf51be1;}export function isProduction(_0x334ff3){const _0x28464e=a72_0x123c18;return normalizeEnv(_0x334ff3)===_0x28464e(0x1b0);}export function isDaily(_0x50a9d0){return normalizeEnv(_0x50a9d0)==='daily';}export function isDev(_0x99a0d7){const _0x3d2cc3=a72_0x123c18,_0xc5e6ed=normalizeEnv(_0x99a0d7);return _0xc5e6ed===_0x3d2cc3(0x1b1)||_0xc5e6ed===_0x3d2cc3(0x1ac);}let env=normalizeEnv(productEnv('ENV')||a72_0x123c18(0x1b0));export function getEnv(){return env;}export function initEnv(_0x11b68e){env=normalizeEnv(_0x11b68e);}
@@ -1 +1 @@
1
- const a73_0x6eba15=a73_0x2f4b;function a73_0x1142(){const _0x49fecb=['3448UhvmTv','19228DWrWtb','366opRtPs','30641916DDDVKu','31166iNXKwh','44285YaQrYw','compress','3770rxQlbW','1813dcnOiJ','json','10dUzTlh','3545910XYRAye','20hKPvVC','pretty','337179iyWDTb'];a73_0x1142=function(){return _0x49fecb;};return a73_0x1142();}(function(_0x5493d7,_0x444527){const _0x24e44c=a73_0x2f4b,_0x562ae6=_0x5493d7();while(!![]){try{const _0x3c8a2f=parseInt(_0x24e44c(0x1e6))/0x1*(-parseInt(_0x24e44c(0x1e0))/0x2)+-parseInt(_0x24e44c(0x1ea))/0x3*(parseInt(_0x24e44c(0x1e8))/0x4)+parseInt(_0x24e44c(0x1e1))/0x5*(-parseInt(_0x24e44c(0x1de))/0x6)+-parseInt(_0x24e44c(0x1e4))/0x7*(-parseInt(_0x24e44c(0x1eb))/0x8)+-parseInt(_0x24e44c(0x1e7))/0x9+parseInt(_0x24e44c(0x1e3))/0xa*(-parseInt(_0x24e44c(0x1ec))/0xb)+parseInt(_0x24e44c(0x1df))/0xc;if(_0x3c8a2f===_0x444527)break;else _0x562ae6['push'](_0x562ae6['shift']());}catch(_0x22c9ea){_0x562ae6['push'](_0x562ae6['shift']());}}}(a73_0x1142,0x56710));function a73_0x2f4b(_0x5bef46,_0x10b96f){_0x5bef46=_0x5bef46-0x1de;const _0x1142c7=a73_0x1142();let _0x2f4bc8=_0x1142c7[_0x5bef46];return _0x2f4bc8;}export const OUTPUT_FORMAT_VALUES=[a73_0x6eba15(0x1e5),a73_0x6eba15(0x1e9),a73_0x6eba15(0x1e2)];
1
+ const a73_0x35278c=a73_0x1796;function a73_0x4ef5(){const _0x3fca58=['6904758CpVHgV','279876sWnPvF','json','1983572lQlPMy','2390645znqDCV','14696696oKthSY','1461797sguRRo','42SpmgcC','2921380JSVLwK','compress'];a73_0x4ef5=function(){return _0x3fca58;};return a73_0x4ef5();}function a73_0x1796(_0x4c51ff,_0xa42aea){_0x4c51ff=_0x4c51ff-0xa5;const _0x4ef5d2=a73_0x4ef5();let _0x1796a6=_0x4ef5d2[_0x4c51ff];return _0x1796a6;}(function(_0x38b4d2,_0x1d5232){const _0x1f33c5=a73_0x1796,_0x24b5d0=_0x38b4d2();while(!![]){try{const _0xabcbe3=parseInt(_0x1f33c5(0xae))/0x1+-parseInt(_0x1f33c5(0xa5))/0x2*(-parseInt(_0x1f33c5(0xa9))/0x3)+parseInt(_0x1f33c5(0xab))/0x4+parseInt(_0x1f33c5(0xac))/0x5+-parseInt(_0x1f33c5(0xa8))/0x6+-parseInt(_0x1f33c5(0xa6))/0x7+-parseInt(_0x1f33c5(0xad))/0x8;if(_0xabcbe3===_0x1d5232)break;else _0x24b5d0['push'](_0x24b5d0['shift']());}catch(_0x5d328f){_0x24b5d0['push'](_0x24b5d0['shift']());}}}(a73_0x4ef5,0xf1a23));export const OUTPUT_FORMAT_VALUES=[a73_0x35278c(0xaa),'pretty',a73_0x35278c(0xa7)];
@@ -1 +1 @@
1
- function a74_0x1cf2(_0x265028,_0x21e58a){_0x265028=_0x265028-0x110;const _0x43fa9c=a74_0x43fa();let _0x1cf2b0=_0x43fa9c[_0x265028];return _0x1cf2b0;}const a74_0x3256c2=a74_0x1cf2;function a74_0x43fa(){const _0x447d02=['.lovrabetrc','RABETBASE','11894742OfTowk','cli:lovrabet-runtime','25419LhrfjE','10bcLTYC','LOVRABET','.lovrabet.json','map','lovrabet','287545YtJAsz','/user/ak','https://daily-api.lovrabet.com','456656vhJsmt','30mHydqQ','.lovrabet','git@codeup.aliyun.com:yuntoo/open/lovrabet-runtime-cli.git','92WbVcmP','582926NvOVjh','Lovrabet\x20Runtime\x20CLI','3354372EGaJer','https://user.lovrabet.com','https://skills.lovrabet.com','https://skills-daily.lovrabet.com','lovrabet/lovrabet-cli','Lovrabet\x20User\x20Center','.lovrabet-runtime.log','3438864AXZJBL','https://api.lovrabet.com'];a74_0x43fa=function(){return _0x447d02;};return a74_0x43fa();}(function(_0x4683d8,_0x368b95){const _0x2cc668=a74_0x1cf2,_0x41d2a8=_0x4683d8();while(!![]){try{const _0x4acc39=parseInt(_0x2cc668(0x12a))/0x1+parseInt(_0x2cc668(0x125))/0x2+parseInt(_0x2cc668(0x11c))/0x3*(parseInt(_0x2cc668(0x129))/0x4)+parseInt(_0x2cc668(0x122))/0x5*(-parseInt(_0x2cc668(0x126))/0x6)+parseInt(_0x2cc668(0x12c))/0x7+parseInt(_0x2cc668(0x116))/0x8+-parseInt(_0x2cc668(0x11a))/0x9*(parseInt(_0x2cc668(0x11d))/0xa);if(_0x4acc39===_0x368b95)break;else _0x41d2a8['push'](_0x41d2a8['shift']());}catch(_0x13328d){_0x41d2a8['push'](_0x41d2a8['shift']());}}}(a74_0x43fa,0x4ab54));export const PRODUCT_CONFIG={'cliBinName':'lovrabet','cliDisplayName':a74_0x3256c2(0x12b),'npmPackageName':'@lovrabet/lovrabet-cli','skillSource':a74_0x3256c2(0x113),'internalSkillSource':a74_0x3256c2(0x128),'globalSkillName':a74_0x3256c2(0x121),'npmRegistryBaseUrl':'https://registry.npmjs.org','envPrefix':a74_0x3256c2(0x11e),'legacyEnvPrefixes':[a74_0x3256c2(0x119)],'configFileNames':[a74_0x3256c2(0x11f),a74_0x3256c2(0x118)],'newConfigFileName':a74_0x3256c2(0x11f),'homeDirName':a74_0x3256c2(0x127),'logFileName':a74_0x3256c2(0x115),'invokeSource':a74_0x3256c2(0x11b),'userCenterDisplayName':a74_0x3256c2(0x114),'skipNpxSkillsEnvSuffix':'SKIP_NPX_SKILLS','domains':{'production':{'user':a74_0x3256c2(0x110),'api':a74_0x3256c2(0x117),'runtime':'https://runtime.lovrabet.com','skillhub':a74_0x3256c2(0x111)},'nonProduction':{'user':'https://user-daily.lovrabet.com','api':a74_0x3256c2(0x124),'runtime':'https://daily-runtime.lovrabet.com','skillhub':a74_0x3256c2(0x112)}},'accessKeyCreatePath':a74_0x3256c2(0x123)};export function productEnvName(_0x222bca){return PRODUCT_CONFIG['envPrefix']+'_'+_0x222bca;}export function productEnvNames(_0x558e36){const _0x5eee2b=a74_0x3256c2;return[productEnvName(_0x558e36),...PRODUCT_CONFIG['legacyEnvPrefixes'][_0x5eee2b(0x120)](_0x5dd414=>_0x5dd414+'_'+_0x558e36)];}export function productEnv(_0x394cff){for(const _0x254097 of productEnvNames(_0x394cff)){const _0x40b46e=process.env[_0x254097];if(_0x40b46e!==undefined)return _0x40b46e;}return undefined;}
1
+ const a74_0x341b1d=a74_0x34cd;(function(_0x4b5ab3,_0x2c25db){const _0x220a25=a74_0x34cd,_0x53c355=_0x4b5ab3();while(!![]){try{const _0x33f460=-parseInt(_0x220a25(0xe0))/0x1*(-parseInt(_0x220a25(0xd2))/0x2)+parseInt(_0x220a25(0xd6))/0x3+-parseInt(_0x220a25(0xd7))/0x4*(parseInt(_0x220a25(0xdc))/0x5)+parseInt(_0x220a25(0xcb))/0x6+parseInt(_0x220a25(0xc9))/0x7*(parseInt(_0x220a25(0xd8))/0x8)+-parseInt(_0x220a25(0xc3))/0x9*(parseInt(_0x220a25(0xde))/0xa)+-parseInt(_0x220a25(0xd5))/0xb;if(_0x33f460===_0x2c25db)break;else _0x53c355['push'](_0x53c355['shift']());}catch(_0x58ee80){_0x53c355['push'](_0x53c355['shift']());}}}(a74_0x4b84,0xc23f7));export const PRODUCT_CONFIG={'cliBinName':a74_0x341b1d(0xd9),'cliDisplayName':a74_0x341b1d(0xd0),'npmPackageName':a74_0x341b1d(0xc5),'skillSource':a74_0x341b1d(0xcc),'internalSkillSource':a74_0x341b1d(0xd4),'globalSkillName':a74_0x341b1d(0xd9),'npmRegistryBaseUrl':a74_0x341b1d(0xc8),'envPrefix':'LOVRABET','legacyEnvPrefixes':[a74_0x341b1d(0xdd)],'configFileNames':[a74_0x341b1d(0xd1),a74_0x341b1d(0xda)],'newConfigFileName':a74_0x341b1d(0xd1),'homeDirName':'.lovrabet','logFileName':a74_0x341b1d(0xca),'invokeSource':'cli:lovrabet-runtime','userCenterDisplayName':a74_0x341b1d(0xdf),'skipNpxSkillsEnvSuffix':a74_0x341b1d(0xce),'domains':{'production':{'user':a74_0x341b1d(0xdb),'api':a74_0x341b1d(0xc4),'runtime':a74_0x341b1d(0xc6),'skillhub':a74_0x341b1d(0xd3)},'nonProduction':{'user':'https://user-daily.lovrabet.com','api':'https://daily-api.lovrabet.com','runtime':a74_0x341b1d(0xcd),'skillhub':'https://skills-daily.lovrabet.com'}},'accessKeyCreatePath':a74_0x341b1d(0xc7)};function a74_0x34cd(_0x3d81d4,_0x935a5a){_0x3d81d4=_0x3d81d4-0xc3;const _0x4b8452=a74_0x4b84();let _0x34cd2b=_0x4b8452[_0x3d81d4];return _0x34cd2b;}export function productEnvName(_0x3e47af){return PRODUCT_CONFIG['envPrefix']+'_'+_0x3e47af;}function a74_0x4b84(){const _0x58aa3e=['8090TAKDuw','Lovrabet\x20User\x20Center','4546qOPQzx','2727sFiiXA','https://api.lovrabet.com','@lovrabet/lovrabet-cli','https://runtime.lovrabet.com','/user/ak','https://registry.npmjs.org','7fisBJa','.lovrabet-runtime.log','7212534VAxjsa','lovrabet/lovrabet-cli','https://daily-runtime.lovrabet.com','SKIP_NPX_SKILLS','map','Lovrabet\x20Runtime\x20CLI','.lovrabet.json','538CbWcCg','https://skills.lovrabet.com','git@codeup.aliyun.com:yuntoo/open/lovrabet-runtime-cli.git','24976347DnOmVE','2349621JdpKfz','573028HSNyDj','3117496eTSfJn','lovrabet','.lovrabetrc','https://user.lovrabet.com','10jlOIEI','RABETBASE'];a74_0x4b84=function(){return _0x58aa3e;};return a74_0x4b84();}export function productEnvNames(_0x475521){const _0x26355c=a74_0x341b1d;return[productEnvName(_0x475521),...PRODUCT_CONFIG['legacyEnvPrefixes'][_0x26355c(0xcf)](_0x4ecc21=>_0x4ecc21+'_'+_0x475521)];}export function productEnv(_0x43a717){for(const _0x1fd9a7 of productEnvNames(_0x43a717)){const _0x662f99=process.env[_0x1fd9a7];if(_0x662f99!==undefined)return _0x662f99;}return undefined;}
@@ -1 +1 @@
1
- function a75_0x3d10(_0xccdc26,_0x438237){_0xccdc26=_0xccdc26-0xaa;const _0x235517=a75_0x2355();let _0x3d1066=_0x235517[_0xccdc26];return _0x3d1066;}const a75_0x5d4b83=a75_0x3d10;(function(_0x4953b8,_0x4981de){const _0x1648a7=a75_0x3d10,_0x2c5e8d=_0x4953b8();while(!![]){try{const _0x48b576=-parseInt(_0x1648a7(0xb4))/0x1*(-parseInt(_0x1648a7(0xb1))/0x2)+-parseInt(_0x1648a7(0xad))/0x3*(-parseInt(_0x1648a7(0xaf))/0x4)+parseInt(_0x1648a7(0xae))/0x5*(parseInt(_0x1648a7(0xb3))/0x6)+-parseInt(_0x1648a7(0xaa))/0x7+parseInt(_0x1648a7(0xb7))/0x8+parseInt(_0x1648a7(0xb2))/0x9*(parseInt(_0x1648a7(0xb5))/0xa)+-parseInt(_0x1648a7(0xac))/0xb;if(_0x48b576===_0x4981de)break;else _0x2c5e8d['push'](_0x2c5e8d['shift']());}catch(_0x15662c){_0x2c5e8d['push'](_0x2c5e8d['shift']());}}}(a75_0x2355,0x1d8ac));export const RISK_LEVEL_VALUES=[a75_0x5d4b83(0xb0),a75_0x5d4b83(0xab),a75_0x5d4b83(0xb6)];function a75_0x2355(){const _0xde1024=['read','18ZPGssj','1251rWfvqE','6YcBgAE','10669rpdrGc','7490cifrfZ','high-risk-write','1908320UQAdqj','1136884XFfddL','write','5747390KnMJvp','18111JasJKz','960805lPQzjA','116RyYUFb'];a75_0x2355=function(){return _0xde1024;};return a75_0x2355();}
1
+ const a75_0x6ec2c0=a75_0x3b4b;(function(_0x454f28,_0x46dd77){const _0x3e0bed=a75_0x3b4b,_0x3d8585=_0x454f28();while(!![]){try{const _0x525b8=parseInt(_0x3e0bed(0xf3))/0x1*(parseInt(_0x3e0bed(0xf8))/0x2)+-parseInt(_0x3e0bed(0xf2))/0x3*(-parseInt(_0x3e0bed(0xfb))/0x4)+-parseInt(_0x3e0bed(0xf7))/0x5+parseInt(_0x3e0bed(0xf5))/0x6+parseInt(_0x3e0bed(0xfd))/0x7+parseInt(_0x3e0bed(0xfa))/0x8*(parseInt(_0x3e0bed(0xfe))/0x9)+parseInt(_0x3e0bed(0xf6))/0xa*(-parseInt(_0x3e0bed(0xf9))/0xb);if(_0x525b8===_0x46dd77)break;else _0x3d8585['push'](_0x3d8585['shift']());}catch(_0x1f1c20){_0x3d8585['push'](_0x3d8585['shift']());}}}(a75_0x2be6,0x5fc7d));function a75_0x3b4b(_0xfc73f,_0x2385f3){_0xfc73f=_0xfc73f-0xf2;const _0x2be6c2=a75_0x2be6();let _0x3b4b82=_0x2be6c2[_0xfc73f];return _0x3b4b82;}function a75_0x2be6(){const _0x4a9767=['95174fafONZ','high-risk-write','889086yRaDoa','9881550aJgaHH','3450740iKCmWC','12RvvgzR','11EGLjTZ','1115176uvGaHY','964eKtyNZ','write','4654797lOzVms','27SPlUWG','3339EgZcPW'];a75_0x2be6=function(){return _0x4a9767;};return a75_0x2be6();}export const RISK_LEVEL_VALUES=['read',a75_0x6ec2c0(0xfc),a75_0x6ec2c0(0xf4)];
@@ -1 +1 @@
1
- function a76_0x37b4(_0x535918,_0xa0ba20){_0x535918=_0x535918-0xaf;const _0x19ff8e=a76_0x19ff();let _0x37b493=_0x19ff8e[_0x535918];return _0x37b493;}const a76_0x563441=a76_0x37b4;(function(_0x25bf44,_0x25b116){const _0x3d97ce=a76_0x37b4,_0x29c4f5=_0x25bf44();while(!![]){try{const _0x35e01e=-parseInt(_0x3d97ce(0xbb))/0x1*(parseInt(_0x3d97ce(0xb6))/0x2)+-parseInt(_0x3d97ce(0xb4))/0x3*(parseInt(_0x3d97ce(0xb2))/0x4)+-parseInt(_0x3d97ce(0xb8))/0x5*(parseInt(_0x3d97ce(0xb9))/0x6)+-parseInt(_0x3d97ce(0xaf))/0x7+-parseInt(_0x3d97ce(0xba))/0x8+parseInt(_0x3d97ce(0xb7))/0x9*(-parseInt(_0x3d97ce(0xb3))/0xa)+parseInt(_0x3d97ce(0xb0))/0xb;if(_0x35e01e===_0x25b116)break;else _0x29c4f5['push'](_0x29c4f5['shift']());}catch(_0x3d1ccb){_0x29c4f5['push'](_0x29c4f5['shift']());}}}(a76_0x19ff,0x3a60a));import{PRODUCT_CONFIG}from'../constant/product.js';function a76_0x19ff(){const _0x2531ca=['20242431sYOsvf','production','119452HqQicN','2571530HvKXEr','9FKBUJd','domains','3866TCGLNY','9rxFjMN','5InaMqc','1477356ITHNtS','1495576cRoikU','199VnZtln','3055675ghKVHI'];a76_0x19ff=function(){return _0x2531ca;};return a76_0x19ff();}export const USER_ACCESS_KEY_CREATE_URL=''+PRODUCT_CONFIG[a76_0x563441(0xb5)][a76_0x563441(0xb1)]['user']+PRODUCT_CONFIG['accessKeyCreatePath'];
1
+ const a76_0x46acb2=a76_0x8bb9;(function(_0x50d021,_0x653cc5){const _0x87955b=a76_0x8bb9,_0x242d09=_0x50d021();while(!![]){try{const _0x39f1b3=-parseInt(_0x87955b(0x170))/0x1*(-parseInt(_0x87955b(0x178))/0x2)+parseInt(_0x87955b(0x179))/0x3*(-parseInt(_0x87955b(0x16f))/0x4)+-parseInt(_0x87955b(0x172))/0x5+-parseInt(_0x87955b(0x174))/0x6+parseInt(_0x87955b(0x173))/0x7*(parseInt(_0x87955b(0x171))/0x8)+parseInt(_0x87955b(0x17a))/0x9+parseInt(_0x87955b(0x176))/0xa;if(_0x39f1b3===_0x653cc5)break;else _0x242d09['push'](_0x242d09['shift']());}catch(_0x3c85ff){_0x242d09['push'](_0x242d09['shift']());}}}(a76_0x5102,0x3002f));import{PRODUCT_CONFIG}from'../constant/product.js';function a76_0x8bb9(_0x2f1b35,_0x4279ec){_0x2f1b35=_0x2f1b35-0x16f;const _0x5102f1=a76_0x5102();let _0x8bb940=_0x5102f1[_0x2f1b35];return _0x8bb940;}export const USER_ACCESS_KEY_CREATE_URL=''+PRODUCT_CONFIG[a76_0x46acb2(0x177)]['production'][a76_0x46acb2(0x175)]+PRODUCT_CONFIG['accessKeyCreatePath'];function a76_0x5102(){const _0x570dac=['107hvbFzT','432tBmSIa','4410gnOKLq','27853zRsFLb','940236eJHsQY','user','723080EbUXxv','domains','2982TQqZfZ','715641HewRyL','1314711uVEHUB','4MSsmYa'];a76_0x5102=function(){return _0x570dac;};return a76_0x5102();}
package/lib/context.js CHANGED
@@ -1 +1 @@
1
- const a77_0x130e94=a77_0x1679;function a77_0x67ec(){const _0x48eea1=['trim','some','EPERM','locale','empty','1507LddUam','113270fIYSPb','utf8','skillHubDomain','production','.tmp','7826444RAFfoV','write','top-level','setLogPath','1651841CbUdCQ','missing','projectConfig','appcode','ACCESS_KEY','authRequired','code','5808522IwZGgv','object','ENV','setRawMode','high-risk-write','development','isTTY','format','isRaw','cwd','78WcbJbv','argv','string','EXDEV','nonInteractive','pageSize','true','daily','inherit','143892rmmwqV','env','project','newConfigFileName','FORMAT','1512710PYzxOC','raw','join','riskLevel','app','stringify','2tBoFpZ','./constant/domain.js','runtimeDomain','userDomain','1343520xZgRrX','VERBOSE','defaultApp','values','online','local-alias','apps','PAGE_SIZE','maxRisk','9CiVghT','explicit','EACCES','global','configFileNames','accessKey','parse','stdin','21rhrAjC','APPCODE','message','APP','cache','find','setRawCommand'];a77_0x67ec=function(){return _0x48eea1;};return a77_0x67ec();}(function(_0x56ffbf,_0x5a247c){const _0x21a405=a77_0x1679,_0x5cf431=_0x56ffbf();while(!![]){try{const _0x140311=-parseInt(_0x21a405(0x119))/0x1*(-parseInt(_0x21a405(0x13e))/0x2)+-parseInt(_0x21a405(0x120))/0x3+parseInt(_0x21a405(0x115))/0x4+parseInt(_0x21a405(0x110))/0x5*(parseInt(_0x21a405(0x12a))/0x6)+-parseInt(_0x21a405(0x103))/0x7*(-parseInt(_0x21a405(0xf2))/0x8)+parseInt(_0x21a405(0xfb))/0x9*(parseInt(_0x21a405(0x138))/0xa)+parseInt(_0x21a405(0x10f))/0xb*(-parseInt(_0x21a405(0x133))/0xc);if(_0x140311===_0x5a247c)break;else _0x5cf431['push'](_0x5cf431['shift']());}catch(_0x262961){_0x5cf431['push'](_0x5cf431['shift']());}}}(a77_0x67ec,0xef0a0));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_0x130e94(0xff)];export const NEW_CONFIG_NAME=PRODUCT_CONFIG[a77_0x130e94(0x136)];function resolveConfigPath(_0x3823d4){for(const _0x5141e8 of CONFIG_NAMES){const _0x51098e=resolve(_0x3823d4,_0x5141e8);if(existsSync(_0x51098e))return _0x51098e;}return undefined;}export function resolveWriteConfigPath(_0x21c65a){const _0x51a098=a77_0x130e94,_0x4fd32d=_0x21c65a===_0x51a098(0x135)?process[_0x51a098(0x129)]():homedir(),_0x2fe1ed=resolveConfigPath(_0x4fd32d);return _0x2fe1ed??resolve(_0x4fd32d,NEW_CONFIG_NAME);}export function readConfigFile(_0x3c9f0d){const _0x58ef8f=a77_0x130e94;try{if(existsSync(_0x3c9f0d)){const _0x3c6087=readFileSync(_0x3c9f0d,{'encoding':_0x58ef8f(0x111)});if(_0x3c6087){const _0x1de41c=JSON['parse'](_0x3c6087);return migrateOnlineEnv(_0x3c9f0d,_0x1de41c),_0x1de41c;}}}catch{}return{};}function migrateOnlineEnv(_0x35c7bb,_0x309605){const _0x457a83=a77_0x130e94;let _0x2ad20=![];_0x309605[_0x457a83(0x134)]===_0x457a83(0xf6)&&(_0x309605[_0x457a83(0x134)]=_0x457a83(0x113),_0x2ad20=!![]);if(_0x309605[_0x457a83(0xf8)]&&typeof _0x309605['apps']===_0x457a83(0x121))for(const _0x573586 of Object['values'](_0x309605[_0x457a83(0xf8)])){_0x573586&&_0x573586[_0x457a83(0x134)]===_0x457a83(0xf6)&&(_0x573586['env']=_0x457a83(0x113),_0x2ad20=!![]);}if(_0x2ad20)try{writeConfigFile(_0x35c7bb,_0x309605);}catch{}}export function writeConfigFile(_0x3f71f0,_0xac311e){const _0x8a8499=a77_0x130e94,_0x403ced=dirname(_0x3f71f0);!existsSync(_0x403ced)&&mkdirSync(_0x403ced,{'recursive':!![]});const _0x11c826=_0x3f71f0+_0x8a8499(0x114);try{writeFileSync(_0x11c826,JSON[_0x8a8499(0x13d)](_0xac311e,null,0x2)+'\x0a',{'encoding':'utf8','mode':0x180});try{renameSync(_0x11c826,_0x3f71f0);}catch(_0x5294f8){if(_0x5294f8['code']===_0x8a8499(0x10c)||_0x5294f8[_0x8a8499(0x11f)]===_0x8a8499(0x12d)||_0x5294f8[_0x8a8499(0x11f)]===_0x8a8499(0xfd)){writeFileSync(_0x3f71f0,JSON[_0x8a8499(0x13d)](_0xac311e,null,0x2)+'\x0a',{'encoding':'utf8'});try{unlinkSync(_0x11c826);}catch{}}else throw _0x5294f8;}}catch(_0x1dc994){try{unlinkSync(_0x11c826);}catch{}throw _0x1dc994;}}export function isNonInteractiveMode(_0x3fc540){const _0x3eb587=a77_0x130e94;return!!(_0x3fc540[_0x3eb587(0x12e)]||_0x3fc540['ci']||productEnvNames('CI')[_0x3eb587(0x10b)](_0xaf3bba=>process.env[_0xaf3bba]===_0x3eb587(0x130))||process.env.CI==='true'||!process['stdout'][_0x3eb587(0x126)]||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x4e96f3=a77_0x130e94;if(!process[_0x4e96f3(0x102)][_0x4e96f3(0x126)])return![];try{const _0x493bcf=process[_0x4e96f3(0x102)][_0x4e96f3(0x128)];return process[_0x4e96f3(0x102)][_0x4e96f3(0x123)](!![]),process[_0x4e96f3(0x102)][_0x4e96f3(0x123)](_0x493bcf??![]),!![];}catch{return![];}}export async function createContext(_0x24a5d0){const _0x28d0b9=a77_0x130e94,_0x2429d3=readRawConfig(),_0x534e23=buildConfig(_0x2429d3,_0x24a5d0);await initGlobalEnvironment(_0x534e23);const {getUserDomain:_0x214898,getApiDomain:_0x2ca9ef}=await import(_0x28d0b9(0x13f)),_0x2bea04={'apiDomain':_0x2ca9ef(),'userDomain':_0x214898()},_0x253e54=await buildAuth(_0x534e23);logger[_0x28d0b9(0x118)](process[_0x28d0b9(0x129)]());const _0x3159eb=(CLI_BIN_NAME+'\x20'+process[_0x28d0b9(0x12b)]['slice'](0x2)[_0x28d0b9(0x13a)]('\x20'))['trim']();logger[_0x28d0b9(0x109)](_0x3159eb);const _0x12a8b5=isNonInteractiveMode(_0x24a5d0);return{'config':_0x534e23,'auth':_0x253e54,'logger':logger,'env':_0x2bea04,'nonInteractive':_0x12a8b5};}export function buildConfigFromFlags(_0xa2b829){return buildConfig(readRawConfig(),_0xa2b829);}export function getLocalAppAliases(_0x51dc54){const _0x198e94=a77_0x130e94;return _0x51dc54['apps']&&typeof _0x51dc54[_0x198e94(0xf8)]===_0x198e94(0x121)?_0x51dc54[_0x198e94(0xf8)]:{};}export function resolveLocalAppAliasCode(_0x5d7928,_0xc01de6){const _0x2c6b84=a77_0x130e94;if(!_0xc01de6)return undefined;const _0x42eb7c=getLocalAppAliases(_0x5d7928)[_0xc01de6],_0x5d70c0=_0x42eb7c?.[_0x2c6b84(0x11c)];return typeof _0x5d70c0===_0x2c6b84(0x12c)&&_0x5d70c0[_0x2c6b84(0x10a)]()?_0x5d70c0['trim']():undefined;}export function readAppCodeFromConfig(){const _0x51ffee=a77_0x130e94,_0x488458=readRawConfig(),_0x178299=_0x488458[_0x51ffee(0x11c)]??_0x488458[_0x51ffee(0x13c)];if(typeof _0x178299==='string'&&_0x178299[_0x51ffee(0x10a)]())return _0x178299['trim']();const _0x2b2bb8=resolveLocalAppAliasCode(_0x488458,typeof _0x488458['defaultApp']===_0x51ffee(0x12c)?_0x488458[_0x51ffee(0xf4)]:undefined);if(_0x2b2bb8)return _0x2b2bb8;const _0x11ce63=normalizeEnv(String(_0x488458[_0x51ffee(0x134)]||'production')),_0x4f9fd7=isDaily(_0x11ce63)?_0x51ffee(0x131):isDev(_0x11ce63)?_0x51ffee(0x125):'production',_0x880b2d=resolveCachedAppCode(typeof _0x488458['defaultApp']===_0x51ffee(0x12c)?_0x488458['defaultApp']:undefined,_0x4f9fd7,typeof _0x488458[_0x51ffee(0x100)]===_0x51ffee(0x12c)?_0x488458[_0x51ffee(0x100)]:undefined);if(_0x880b2d)return _0x880b2d;const _0x1678dd=Object[_0x51ffee(0xf5)](getLocalAppAliases(_0x488458))[_0x51ffee(0x108)](_0x188b4d=>_0x188b4d?.[_0x51ffee(0x11c)]);return typeof _0x1678dd?.[_0x51ffee(0x11c)]===_0x51ffee(0x12c)&&_0x1678dd['appcode'][_0x51ffee(0x10a)]()?_0x1678dd[_0x51ffee(0x11c)][_0x51ffee(0x10a)]():undefined;}export function readScopedConfig(_0x4aa307){const _0x49731e=a77_0x130e94,_0x3f5512=_0x4aa307[_0x49731e(0xfe)]?_0x49731e(0xfe):_0x49731e(0x135);return readConfigFile(resolveWriteConfigPath(_0x3f5512));}export function writeScopedConfig(_0x1b178a,_0x493ea3){const _0x544c23=a77_0x130e94,_0x556cce=_0x493ea3[_0x544c23(0xfe)]?_0x544c23(0xfe):_0x544c23(0x135);writeConfigFile(resolveWriteConfigPath(_0x556cce),_0x1b178a);}export async function initGlobalEnvironment(_0x1f876d){const _0x5d6fe=a77_0x130e94,{initEnv:_0x43f4f7}=await import('./constant/env.js');_0x43f4f7(_0x1f876d[_0x5d6fe(0x134)]);const {initDomains:_0x16aff4}=await import('./constant/domain.js');_0x16aff4({'apiDomain':_0x1f876d[_0x5d6fe(0x139)]['apiDomain']||_0x1f876d['raw']['host']||undefined,'userDomain':_0x1f876d['raw'][_0x5d6fe(0xf1)]||undefined,'runtimeDomain':_0x1f876d[_0x5d6fe(0x139)][_0x5d6fe(0xf0)]||undefined,'skillHubDomain':_0x1f876d[_0x5d6fe(0x139)][_0x5d6fe(0x112)]||undefined});}function a77_0x1679(_0x2195e6,_0x5db2d3){_0x2195e6=_0x2195e6-0xf0;const _0x67ecbf=a77_0x67ec();let _0x167990=_0x67ecbf[_0x2195e6];return _0x167990;}export function getProjectConfigPath(){return resolveConfigPath(process['cwd']());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function inspectCliConfigJsonFile(_0x40a4b2){const _0x3c180e=a77_0x130e94;if(!existsSync(_0x40a4b2))return{'status':_0x3c180e(0x11a)};try{const _0x3154ec=readFileSync(_0x40a4b2,{'encoding':_0x3c180e(0x111)});if(!_0x3154ec?.[_0x3c180e(0x10a)]())return{'status':_0x3c180e(0x10e)};const _0x3203e0=JSON[_0x3c180e(0x101)](_0x3154ec);return{'status':'ok','data':_0x3203e0};}catch(_0x20c5bd){return{'status':'error','message':_0x20c5bd instanceof Error?_0x20c5bd[_0x3c180e(0x105)]:String(_0x20c5bd)};}}export function loadRawConfigLayers(_0x2a2a59){const _0x458ac4=a77_0x130e94;let _0x1d3c0f={},_0x1d2db1={},_0x157924,_0x83ab0a;try{_0x157924=resolveConfigPath(homedir());if(_0x157924){const _0x6c31e3=readFileSync(_0x157924,{'encoding':_0x458ac4(0x111)});if(_0x6c31e3)_0x1d3c0f=JSON[_0x458ac4(0x101)](_0x6c31e3);}}catch{}try{const _0x219ead=_0x2a2a59||process['cwd']();_0x83ab0a=resolveConfigPath(_0x219ead);if(_0x83ab0a){const _0x367897=readFileSync(_0x83ab0a,{'encoding':_0x458ac4(0x111)});if(_0x367897)_0x1d2db1=JSON[_0x458ac4(0x101)](_0x367897);}}catch{}return{'globalPath':_0x157924,'projectPath':_0x83ab0a,'globalConfig':_0x1d3c0f,'projectConfig':_0x1d2db1};}function mergeRawConfigLayers(_0x45388d){const _0x1c605b=a77_0x130e94,{globalConfig:_0x5bab27,projectConfig:_0x2db8c9}=_0x45388d;if(_0x2db8c9[_0x1c605b(0x132)]===![]){const _0x135318={..._0x2db8c9};return delete _0x135318[_0x1c605b(0x132)],_0x135318;}const _0x44b4d1={..._0x5bab27,..._0x2db8c9};if(_0x1c605b(0xf4)in _0x2db8c9)_0x44b4d1['defaultApp']=_0x2db8c9[_0x1c605b(0xf4)];else _0x5bab27[_0x1c605b(0xf4)]&&(_0x44b4d1[_0x1c605b(0xf4)]=_0x5bab27[_0x1c605b(0xf4)]);return _0x44b4d1;}export function isInProject(){return!!getProjectConfigPath();}export function readRawConfig(_0x1535b0){return mergeRawConfigLayers(loadRawConfigLayers(_0x1535b0));}export function readRawConfigWithLayers(_0x4b4d5b){const _0x303c6c=loadRawConfigLayers(_0x4b4d5b);return{'config':mergeRawConfigLayers(_0x303c6c),'layers':_0x303c6c};}export function resolveDefaultAppSource(_0x51131e){const _0x31df49=a77_0x130e94;if('defaultApp'in _0x51131e[_0x31df49(0x11b)])return _0x31df49(0x135);if(_0x51131e['projectConfig'][_0x31df49(0x132)]===![])return null;if(_0x51131e['globalConfig'][_0x31df49(0xf4)])return _0x31df49(0xfe);return null;}function buildConfig(_0x1907f0,_0x4ccd8c){const _0x54482f=a77_0x130e94,_0x3397a3=_0x1907f0['defaultApp']||undefined,_0x1b541c=_0x4ccd8c[_0x54482f(0x13c)]||env(_0x54482f(0x106))||undefined,_0x6f6693=_0x1b541c||_0x3397a3||undefined,_0x598e6e=env(_0x54482f(0x11d))||_0x1907f0['accessKey']||undefined,_0xb4c137=_0x4ccd8c['env']||env(_0x54482f(0x122))||_0x1907f0[_0x54482f(0x134)]||DEFAULT_CONFIG_VALUES[_0x54482f(0x134)],_0x29da93=normalizeEnv(String(_0xb4c137)),_0xb27fab=isDaily(_0x29da93)?_0x54482f(0x131):isDev(_0x29da93)?'development':_0x54482f(0x113),_0x31a057=typeof _0x4ccd8c[_0x54482f(0x11c)]==='string'?_0x4ccd8c[_0x54482f(0x11c)]:undefined,_0x362e6c=env(_0x54482f(0x104)),_0x271b38=_0x1b541c?undefined:_0x1907f0['appcode']||_0x1907f0[_0x54482f(0x13c)]||undefined,_0x5d69a4=_0x1b541c||(_0x271b38?undefined:_0x3397a3),_0x4f3e33=resolveLocalAppAliasCode(_0x1907f0,_0x5d69a4),_0x1a7f97=resolveCachedAppCode(_0x5d69a4,_0xb27fab,_0x598e6e),_0x1bf6eb=_0x31a057||_0x362e6c||_0x271b38||_0x4f3e33||_0x1a7f97||undefined,_0x2e86a5=_0x31a057?_0x54482f(0xfc):_0x362e6c?_0x54482f(0x134):_0x271b38?_0x54482f(0x117):_0x4f3e33?_0x54482f(0xf7):_0x1a7f97?_0x54482f(0x107):undefined,_0x3548be=_0x1907f0['locale']||DEFAULT_CONFIG_VALUES[_0x54482f(0x10d)],_0x4f56c8=undefined,_0xaa47db=_0x4ccd8c[_0x54482f(0x127)]||env(_0x54482f(0x137))||_0x1907f0[_0x54482f(0x127)],_0x4a690d=normalizeLegacyOutputFormat(_0xaa47db),_0x84270e=env(_0x54482f(0xf9))||_0x1907f0[_0x54482f(0x12f)],_0x378d25=_0x84270e?Number(_0x84270e)||undefined:undefined,_0x30fae9=_0x1907f0[_0x54482f(0x13b)]||_0x1907f0[_0x54482f(0xfa)],_0x15b5a3=_0x30fae9==='read'||_0x30fae9===_0x54482f(0x116)||_0x30fae9===_0x54482f(0x124)?_0x30fae9:DEFAULT_CONFIG_VALUES[_0x54482f(0x13b)],_0x2bd190=env(_0x54482f(0xf3)),_0x347dde=_0x2bd190==='1'||_0x2bd190===_0x54482f(0x130);return{'appCode':typeof _0x1bf6eb===_0x54482f(0x12c)&&_0x1bf6eb['trim']()?_0x1bf6eb[_0x54482f(0x10a)]():undefined,'appCodeSource':_0x2e86a5,'env':_0xb27fab,'locale':_0x3548be,'cookie':_0x4f56c8,'accessKey':_0x598e6e,'format':_0x4a690d,'pageSize':_0x378d25,'riskLevel':_0x15b5a3,'verbose':_0x347dde,'defaultApp':_0x3397a3,'currentApp':typeof _0x6f6693===_0x54482f(0x12c)?_0x6f6693:undefined,'raw':_0x1907f0};}function env(_0x19f3bb){return productEnv(_0x19f3bb);}async function buildAuth(_0x123ce0){const _0x4461a7=a77_0x130e94,_0x4fa8e0='',_0x5d2f60=!!_0x123ce0[_0x4461a7(0x100)];return{'cookie':_0x4fa8e0,'isLoggedIn':_0x5d2f60,async 'getOrLogin'(){const _0x59f11f=_0x4461a7;if(_0x5d2f60)return _0x4fa8e0;throw CliErrors[_0x59f11f(0x11e)]();}};}
1
+ const a77_0x2b2401=a77_0x4fdc;(function(_0x5768cb,_0x3e93ca){const _0x141db3=a77_0x4fdc,_0x3545a7=_0x5768cb();while(!![]){try{const _0x1325bf=-parseInt(_0x141db3(0xa5))/0x1*(parseInt(_0x141db3(0xb7))/0x2)+-parseInt(_0x141db3(0x85))/0x3+-parseInt(_0x141db3(0xb3))/0x4+parseInt(_0x141db3(0x8c))/0x5*(-parseInt(_0x141db3(0xa9))/0x6)+parseInt(_0x141db3(0xb2))/0x7*(-parseInt(_0x141db3(0x83))/0x8)+-parseInt(_0x141db3(0x7d))/0x9+parseInt(_0x141db3(0xaf))/0xa;if(_0x1325bf===_0x3e93ca)break;else _0x3545a7['push'](_0x3545a7['shift']());}catch(_0x32c9d0){_0x3545a7['push'](_0x3545a7['shift']());}}}(a77_0x4f01,0x76f91));import{readFileSync,existsSync,mkdirSync,renameSync,unlinkSync,writeFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{homedir}from'node:os';import{logger}from'./utils/logger.js';import{CliErrors}from'./errors.js';import{CLI_BIN_NAME}from'./constant/cli.js';import{PRODUCT_CONFIG,productEnv,productEnvNames}from'./constant/product.js';import{DEFAULT_CONFIG_VALUES}from'./constant/defaults.js';import{normalizeEnv,isDaily,isDev}from'./constant/env.js';import{normalizeLegacyOutputFormat}from'./framework/types.js';import{resolveCachedAppCode}from'./commands/app/cache.js';function a77_0x4f01(){const _0x249d44=['ENV','riskLevel','configFileNames','utf8','4854105OmAnzD','object','empty','online','PAGE_SIZE','EXDEV','24OHVQvw','missing','1581657mkDlWw','global','format','true','trim','app','error','6180yTgHpi','daily','slice','EPERM','parse','project','maxRisk','pageSize','defaultApp','cache','explicit','projectConfig','VERBOSE','setRawMode','locale','development','inherit','./constant/domain.js','skillHubDomain','high-risk-write','code','join','globalConfig','production','APPCODE','57302uSXhfg','find','read','top-level','1446UOhpRx','appcode','setRawCommand','isRaw','string','local-alias','36946690QuswpO','accessKey','values','1859711NdWjer','3725172WTLErv','FORMAT','some','host','4sbLdCE','stringify','authRequired','newConfigFileName','setLogPath','stdin','isTTY','./constant/env.js','APP','cwd','argv','nonInteractive','ACCESS_KEY','EACCES','apps','raw','env','message'];a77_0x4f01=function(){return _0x249d44;};return a77_0x4f01();}export{AUTH_MODE,isAuthMode}from'./constant/auth-mode.js';const CONFIG_NAMES=PRODUCT_CONFIG[a77_0x2b2401(0x7b)];export const NEW_CONFIG_NAME=PRODUCT_CONFIG[a77_0x2b2401(0x6a)];function resolveConfigPath(_0x130efe){for(const _0x36088b of CONFIG_NAMES){const _0x4e886d=resolve(_0x130efe,_0x36088b);if(existsSync(_0x4e886d))return _0x4e886d;}return undefined;}export function resolveWriteConfigPath(_0x163ca3){const _0x5ba8da=a77_0x2b2401,_0x4e7c28=_0x163ca3===_0x5ba8da(0x91)?process[_0x5ba8da(0x70)]():homedir(),_0x407637=resolveConfigPath(_0x4e7c28);return _0x407637??resolve(_0x4e7c28,NEW_CONFIG_NAME);}export function readConfigFile(_0x4ad444){const _0x1d2c8a=a77_0x2b2401;try{if(existsSync(_0x4ad444)){const _0x38ba16=readFileSync(_0x4ad444,{'encoding':'utf8'});if(_0x38ba16){const _0x3d75af=JSON[_0x1d2c8a(0x90)](_0x38ba16);return migrateOnlineEnv(_0x4ad444,_0x3d75af),_0x3d75af;}}}catch{}return{};}function migrateOnlineEnv(_0x4e9a08,_0x1b4789){const _0x203153=a77_0x2b2401;let _0x55e62f=![];_0x1b4789[_0x203153(0x77)]===_0x203153(0x80)&&(_0x1b4789[_0x203153(0x77)]='production',_0x55e62f=!![]);if(_0x1b4789[_0x203153(0x75)]&&typeof _0x1b4789['apps']===_0x203153(0x7e))for(const _0x5479ff of Object[_0x203153(0xb1)](_0x1b4789['apps'])){_0x5479ff&&_0x5479ff[_0x203153(0x77)]==='online'&&(_0x5479ff[_0x203153(0x77)]=_0x203153(0xa3),_0x55e62f=!![]);}if(_0x55e62f)try{writeConfigFile(_0x4e9a08,_0x1b4789);}catch{}}export function writeConfigFile(_0x1aa40c,_0x3aed03){const _0x36749f=a77_0x2b2401,_0x2b9969=dirname(_0x1aa40c);!existsSync(_0x2b9969)&&mkdirSync(_0x2b9969,{'recursive':!![]});const _0x24a821=_0x1aa40c+'.tmp';try{writeFileSync(_0x24a821,JSON[_0x36749f(0xb8)](_0x3aed03,null,0x2)+'\x0a',{'encoding':'utf8','mode':0x180});try{renameSync(_0x24a821,_0x1aa40c);}catch(_0x4c9b25){if(_0x4c9b25[_0x36749f(0xa0)]===_0x36749f(0x8f)||_0x4c9b25[_0x36749f(0xa0)]===_0x36749f(0x82)||_0x4c9b25[_0x36749f(0xa0)]===_0x36749f(0x74)){writeFileSync(_0x1aa40c,JSON['stringify'](_0x3aed03,null,0x2)+'\x0a',{'encoding':_0x36749f(0x7c)});try{unlinkSync(_0x24a821);}catch{}}else throw _0x4c9b25;}}catch(_0x5837e3){try{unlinkSync(_0x24a821);}catch{}throw _0x5837e3;}}export function isNonInteractiveMode(_0x4c6cc0){const _0x1a86f8=a77_0x2b2401;return!!(_0x4c6cc0[_0x1a86f8(0x72)]||_0x4c6cc0['ci']||productEnvNames('CI')[_0x1a86f8(0xb5)](_0x39dc8d=>process.env[_0x39dc8d]===_0x1a86f8(0x88))||process.env.CI===_0x1a86f8(0x88)||!process['stdout'][_0x1a86f8(0x6d)]||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x36867e=a77_0x2b2401;if(!process[_0x36867e(0x6c)][_0x36867e(0x6d)])return![];try{const _0x57a073=process['stdin'][_0x36867e(0xac)];return process[_0x36867e(0x6c)][_0x36867e(0x99)](!![]),process[_0x36867e(0x6c)]['setRawMode'](_0x57a073??![]),!![];}catch{return![];}}export async function createContext(_0x242107){const _0x5db2c3=a77_0x2b2401,_0x43f14d=readRawConfig(),_0x15b220=buildConfig(_0x43f14d,_0x242107);await initGlobalEnvironment(_0x15b220);const {getUserDomain:_0x309276,getApiDomain:_0x3eddd0}=await import(_0x5db2c3(0x9d)),_0x506d6e={'apiDomain':_0x3eddd0(),'userDomain':_0x309276()},_0x39a60b=await buildAuth(_0x15b220);logger[_0x5db2c3(0x6b)](process[_0x5db2c3(0x70)]());const _0x9b4881=(CLI_BIN_NAME+'\x20'+process[_0x5db2c3(0x71)][_0x5db2c3(0x8e)](0x2)[_0x5db2c3(0xa1)]('\x20'))[_0x5db2c3(0x89)]();logger[_0x5db2c3(0xab)](_0x9b4881);const _0xc4f212=isNonInteractiveMode(_0x242107);return{'config':_0x15b220,'auth':_0x39a60b,'logger':logger,'env':_0x506d6e,'nonInteractive':_0xc4f212};}export function buildConfigFromFlags(_0x4a0bbd){return buildConfig(readRawConfig(),_0x4a0bbd);}export function getLocalAppAliases(_0x1aa532){const _0x4fff9e=a77_0x2b2401;return _0x1aa532[_0x4fff9e(0x75)]&&typeof _0x1aa532['apps']===_0x4fff9e(0x7e)?_0x1aa532[_0x4fff9e(0x75)]:{};}export function resolveLocalAppAliasCode(_0x1b706e,_0x3c4237){const _0xb15152=a77_0x2b2401;if(!_0x3c4237)return undefined;const _0x18b242=getLocalAppAliases(_0x1b706e)[_0x3c4237],_0x535245=_0x18b242?.[_0xb15152(0xaa)];return typeof _0x535245==='string'&&_0x535245[_0xb15152(0x89)]()?_0x535245[_0xb15152(0x89)]():undefined;}export function readAppCodeFromConfig(){const _0x1ab169=a77_0x2b2401,_0x4fc6b4=readRawConfig(),_0x94ad61=_0x4fc6b4[_0x1ab169(0xaa)]??_0x4fc6b4['app'];if(typeof _0x94ad61===_0x1ab169(0xad)&&_0x94ad61[_0x1ab169(0x89)]())return _0x94ad61['trim']();const _0x5cf906=resolveLocalAppAliasCode(_0x4fc6b4,typeof _0x4fc6b4[_0x1ab169(0x94)]===_0x1ab169(0xad)?_0x4fc6b4[_0x1ab169(0x94)]:undefined);if(_0x5cf906)return _0x5cf906;const _0x445d9f=normalizeEnv(String(_0x4fc6b4[_0x1ab169(0x77)]||_0x1ab169(0xa3))),_0x46434c=isDaily(_0x445d9f)?_0x1ab169(0x8d):isDev(_0x445d9f)?_0x1ab169(0x9b):_0x1ab169(0xa3),_0x1cb713=resolveCachedAppCode(typeof _0x4fc6b4[_0x1ab169(0x94)]===_0x1ab169(0xad)?_0x4fc6b4[_0x1ab169(0x94)]:undefined,_0x46434c,typeof _0x4fc6b4[_0x1ab169(0xb0)]==='string'?_0x4fc6b4[_0x1ab169(0xb0)]:undefined);if(_0x1cb713)return _0x1cb713;const _0x24f366=Object[_0x1ab169(0xb1)](getLocalAppAliases(_0x4fc6b4))[_0x1ab169(0xa6)](_0x426259=>_0x426259?.[_0x1ab169(0xaa)]);return typeof _0x24f366?.[_0x1ab169(0xaa)]==='string'&&_0x24f366['appcode'][_0x1ab169(0x89)]()?_0x24f366[_0x1ab169(0xaa)][_0x1ab169(0x89)]():undefined;}export function readScopedConfig(_0x38c5b4){const _0x3d51eb=a77_0x2b2401,_0x3180e2=_0x38c5b4['global']?_0x3d51eb(0x86):'project';return readConfigFile(resolveWriteConfigPath(_0x3180e2));}export function writeScopedConfig(_0x1ebb3b,_0x102b5b){const _0x2b20d2=a77_0x2b2401,_0x1a17a2=_0x102b5b[_0x2b20d2(0x86)]?_0x2b20d2(0x86):_0x2b20d2(0x91);writeConfigFile(resolveWriteConfigPath(_0x1a17a2),_0x1ebb3b);}export async function initGlobalEnvironment(_0x16908f){const _0x2226fc=a77_0x2b2401,{initEnv:_0x3ab483}=await import(_0x2226fc(0x6e));_0x3ab483(_0x16908f['env']);const {initDomains:_0x53a9b4}=await import(_0x2226fc(0x9d));_0x53a9b4({'apiDomain':_0x16908f['raw']['apiDomain']||_0x16908f[_0x2226fc(0x76)][_0x2226fc(0xb6)]||undefined,'userDomain':_0x16908f['raw']['userDomain']||undefined,'runtimeDomain':_0x16908f[_0x2226fc(0x76)]['runtimeDomain']||undefined,'skillHubDomain':_0x16908f[_0x2226fc(0x76)][_0x2226fc(0x9e)]||undefined});}export function getProjectConfigPath(){const _0x20b7f8=a77_0x2b2401;return resolveConfigPath(process[_0x20b7f8(0x70)]());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function inspectCliConfigJsonFile(_0x1a0954){const _0x4823fa=a77_0x2b2401;if(!existsSync(_0x1a0954))return{'status':_0x4823fa(0x84)};try{const _0x3bfc10=readFileSync(_0x1a0954,{'encoding':_0x4823fa(0x7c)});if(!_0x3bfc10?.[_0x4823fa(0x89)]())return{'status':_0x4823fa(0x7f)};const _0x241854=JSON[_0x4823fa(0x90)](_0x3bfc10);return{'status':'ok','data':_0x241854};}catch(_0x801066){return{'status':_0x4823fa(0x8b),'message':_0x801066 instanceof Error?_0x801066[_0x4823fa(0x78)]:String(_0x801066)};}}export function loadRawConfigLayers(_0x34ce7c){const _0x4f9391=a77_0x2b2401;let _0x337c6b={},_0x322d0e={},_0x313e13,_0x2e8dd0;try{_0x313e13=resolveConfigPath(homedir());if(_0x313e13){const _0x2d5142=readFileSync(_0x313e13,{'encoding':'utf8'});if(_0x2d5142)_0x337c6b=JSON[_0x4f9391(0x90)](_0x2d5142);}}catch{}try{const _0x228d1d=_0x34ce7c||process[_0x4f9391(0x70)]();_0x2e8dd0=resolveConfigPath(_0x228d1d);if(_0x2e8dd0){const _0x41e9d5=readFileSync(_0x2e8dd0,{'encoding':_0x4f9391(0x7c)});if(_0x41e9d5)_0x322d0e=JSON[_0x4f9391(0x90)](_0x41e9d5);}}catch{}return{'globalPath':_0x313e13,'projectPath':_0x2e8dd0,'globalConfig':_0x337c6b,'projectConfig':_0x322d0e};}function mergeRawConfigLayers(_0x2c092f){const _0x1f2c21=a77_0x2b2401,{globalConfig:_0x35c229,projectConfig:_0x10551b}=_0x2c092f;if(_0x10551b[_0x1f2c21(0x9c)]===![]){const _0x381d57={..._0x10551b};return delete _0x381d57[_0x1f2c21(0x9c)],_0x381d57;}const _0x581933={..._0x35c229,..._0x10551b};if(_0x1f2c21(0x94)in _0x10551b)_0x581933[_0x1f2c21(0x94)]=_0x10551b[_0x1f2c21(0x94)];else _0x35c229[_0x1f2c21(0x94)]&&(_0x581933[_0x1f2c21(0x94)]=_0x35c229[_0x1f2c21(0x94)]);return _0x581933;}export function isInProject(){return!!getProjectConfigPath();}export function readRawConfig(_0x106ead){return mergeRawConfigLayers(loadRawConfigLayers(_0x106ead));}export function readRawConfigWithLayers(_0x236a84){const _0x3a59a9=loadRawConfigLayers(_0x236a84);return{'config':mergeRawConfigLayers(_0x3a59a9),'layers':_0x3a59a9};}export function resolveDefaultAppSource(_0xc4394f){const _0x358855=a77_0x2b2401;if('defaultApp'in _0xc4394f[_0x358855(0x97)])return _0x358855(0x91);if(_0xc4394f[_0x358855(0x97)][_0x358855(0x9c)]===![])return null;if(_0xc4394f[_0x358855(0xa2)]['defaultApp'])return _0x358855(0x86);return null;}function a77_0x4fdc(_0x1cd263,_0x4022d6){_0x1cd263=_0x1cd263-0x69;const _0x4f0163=a77_0x4f01();let _0x4fdc85=_0x4f0163[_0x1cd263];return _0x4fdc85;}function buildConfig(_0x11f5fa,_0x4964d6){const _0x11ec25=a77_0x2b2401,_0x33fbb6=_0x11f5fa[_0x11ec25(0x94)]||undefined,_0x10e0bc=_0x4964d6[_0x11ec25(0x8a)]||env(_0x11ec25(0x6f))||undefined,_0x30ccbc=_0x10e0bc||_0x33fbb6||undefined,_0x35cde3=env(_0x11ec25(0x73))||_0x11f5fa['accessKey']||undefined,_0x18d30f=_0x4964d6[_0x11ec25(0x77)]||env(_0x11ec25(0x79))||_0x11f5fa[_0x11ec25(0x77)]||DEFAULT_CONFIG_VALUES['env'],_0x451cbf=normalizeEnv(String(_0x18d30f)),_0x584b6b=isDaily(_0x451cbf)?_0x11ec25(0x8d):isDev(_0x451cbf)?_0x11ec25(0x9b):'production',_0x1aef9e=typeof _0x4964d6['appcode']==='string'?_0x4964d6[_0x11ec25(0xaa)]:undefined,_0x563dc5=env(_0x11ec25(0xa4)),_0x4cc490=_0x10e0bc?undefined:_0x11f5fa['appcode']||_0x11f5fa[_0x11ec25(0x8a)]||undefined,_0x2ac17b=_0x10e0bc||(_0x4cc490?undefined:_0x33fbb6),_0x157e71=resolveLocalAppAliasCode(_0x11f5fa,_0x2ac17b),_0x5418e6=resolveCachedAppCode(_0x2ac17b,_0x584b6b,_0x35cde3),_0x6e7e1b=_0x1aef9e||_0x563dc5||_0x4cc490||_0x157e71||_0x5418e6||undefined,_0x408477=_0x1aef9e?_0x11ec25(0x96):_0x563dc5?_0x11ec25(0x77):_0x4cc490?_0x11ec25(0xa8):_0x157e71?_0x11ec25(0xae):_0x5418e6?_0x11ec25(0x95):undefined,_0x3a60b0=_0x11f5fa[_0x11ec25(0x9a)]||DEFAULT_CONFIG_VALUES[_0x11ec25(0x9a)],_0x5f4c5=undefined,_0x4200ce=_0x4964d6[_0x11ec25(0x87)]||env(_0x11ec25(0xb4))||_0x11f5fa['format'],_0x44d408=normalizeLegacyOutputFormat(_0x4200ce),_0x8dfbf0=env(_0x11ec25(0x81))||_0x11f5fa[_0x11ec25(0x93)],_0x5851e8=_0x8dfbf0?Number(_0x8dfbf0)||undefined:undefined,_0x11e555=_0x11f5fa['riskLevel']||_0x11f5fa[_0x11ec25(0x92)],_0x3bff18=_0x11e555===_0x11ec25(0xa7)||_0x11e555==='write'||_0x11e555===_0x11ec25(0x9f)?_0x11e555:DEFAULT_CONFIG_VALUES[_0x11ec25(0x7a)],_0x4d72c5=env(_0x11ec25(0x98)),_0x3a363e=_0x4d72c5==='1'||_0x4d72c5===_0x11ec25(0x88);return{'appCode':typeof _0x6e7e1b==='string'&&_0x6e7e1b[_0x11ec25(0x89)]()?_0x6e7e1b['trim']():undefined,'appCodeSource':_0x408477,'env':_0x584b6b,'locale':_0x3a60b0,'cookie':_0x5f4c5,'accessKey':_0x35cde3,'format':_0x44d408,'pageSize':_0x5851e8,'riskLevel':_0x3bff18,'verbose':_0x3a363e,'defaultApp':_0x33fbb6,'currentApp':typeof _0x30ccbc==='string'?_0x30ccbc:undefined,'raw':_0x11f5fa};}function env(_0x31fcb4){return productEnv(_0x31fcb4);}async function buildAuth(_0x1ec188){const _0x27fec6=a77_0x2b2401,_0x30cb7e='',_0x12ea21=!!_0x1ec188[_0x27fec6(0xb0)];return{'cookie':_0x30cb7e,'isLoggedIn':_0x12ea21,async 'getOrLogin'(){const _0x5c7969=_0x27fec6;if(_0x12ea21)return _0x30cb7e;throw CliErrors[_0x5c7969(0x69)]();}};}