@lovrabet/lovrabet-cli 2.1.22-beta.5 → 2.1.22

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 (131) hide show
  1. package/lib/cli.js +1 -1
  2. package/lib/commands/api-doc/index.js +1 -1
  3. package/lib/commands/app/cache.js +1 -1
  4. package/lib/commands/app/definitions.js +1 -1
  5. package/lib/commands/app/eligibility.js +1 -1
  6. package/lib/commands/app/mock-loader.js +1 -1
  7. package/lib/commands/app/remote-source.js +1 -1
  8. package/lib/commands/app/shared.js +1 -1
  9. package/lib/commands/app-config/get.js +1 -1
  10. package/lib/commands/app-config/index.js +1 -1
  11. package/lib/commands/artifact/index.js +1 -1
  12. package/lib/commands/auth/device.js +1 -1
  13. package/lib/commands/auth/index.js +1 -1
  14. package/lib/commands/auth/prompt.js +1 -1
  15. package/lib/commands/bff/detail.js +1 -1
  16. package/lib/commands/bff/exec.js +1 -1
  17. package/lib/commands/bff/index.js +1 -1
  18. package/lib/commands/cli-skill/index.js +1 -1
  19. package/lib/commands/common/config-policy.js +1 -1
  20. package/lib/commands/common/constraints.js +1 -1
  21. package/lib/commands/common/flags.js +1 -1
  22. package/lib/commands/common/local-file.js +1 -1
  23. package/lib/commands/config/definitions.js +1 -1
  24. package/lib/commands/config/shared.js +1 -1
  25. package/lib/commands/data/index.js +1 -1
  26. package/lib/commands/dataset/detail.js +1 -1
  27. package/lib/commands/dataset/index.js +1 -1
  28. package/lib/commands/dataset/list.js +1 -1
  29. package/lib/commands/dataset/sdk-doc.js +1 -1
  30. package/lib/commands/doctor.js +1 -1
  31. package/lib/commands/file/index.js +1 -1
  32. package/lib/commands/init.js +1 -1
  33. package/lib/commands/kb/index.js +1 -1
  34. package/lib/commands/logs/index.js +1 -1
  35. package/lib/commands/ocr/index.js +1 -1
  36. package/lib/commands/personal-bff/index.js +1 -1
  37. package/lib/commands/registry.js +1 -1
  38. package/lib/commands/schedule/index.js +1 -1
  39. package/lib/commands/schema.js +1 -1
  40. package/lib/commands/service/dynamic.js +1 -1
  41. package/lib/commands/service/function-name-adapter.js +1 -1
  42. package/lib/commands/service/index.js +1 -1
  43. package/lib/commands/service/registry.js +1 -1
  44. package/lib/commands/skill/commands/create.js +1 -1
  45. package/lib/commands/skill/commands/diagram.js +1 -1
  46. package/lib/commands/skill/commands/install.js +1 -1
  47. package/lib/commands/skill/commands/list.js +1 -1
  48. package/lib/commands/skill/commands/push.js +1 -1
  49. package/lib/commands/skill/commands/validate.js +1 -1
  50. package/lib/commands/skill/diagram.js +1 -1
  51. package/lib/commands/skill/flags.js +1 -1
  52. package/lib/commands/skill/index.js +1 -1
  53. package/lib/commands/skill/manifest-helpers.js +1 -1
  54. package/lib/commands/skill/push-execute.js +1 -1
  55. package/lib/commands/skill/push-flow-helpers.js +1 -1
  56. package/lib/commands/skill/push-retarget.js +1 -1
  57. package/lib/commands/skill/scopes.js +1 -1
  58. package/lib/commands/skill/summary.js +1 -1
  59. package/lib/commands/skill/templates.js +1 -1
  60. package/lib/commands/skill/validate.js +1 -1
  61. package/lib/commands/sql/detail.js +1 -1
  62. package/lib/commands/sql/exec.js +1 -1
  63. package/lib/commands/sql/index.js +1 -1
  64. package/lib/commands/update.js +1 -1
  65. package/lib/commands/workspace/index.js +1 -1
  66. package/lib/config/schema.js +1 -1
  67. package/lib/constant/app.js +1 -1
  68. package/lib/constant/auth-mode.js +1 -1
  69. package/lib/constant/cli.js +1 -1
  70. package/lib/constant/defaults.js +1 -1
  71. package/lib/constant/distribution.js +1 -1
  72. package/lib/constant/domain.js +1 -1
  73. package/lib/constant/env.js +1 -1
  74. package/lib/constant/output.js +1 -1
  75. package/lib/constant/product.js +1 -1
  76. package/lib/constant/risk.js +1 -1
  77. package/lib/constant/url.js +1 -1
  78. package/lib/context.js +1 -1
  79. package/lib/core/api-client.js +1 -1
  80. package/lib/core/db-resolver.js +1 -1
  81. package/lib/core/sdk-client.js +1 -1
  82. package/lib/errors.js +1 -1
  83. package/lib/framework/build-all-flags.js +1 -1
  84. package/lib/framework/dryrun.js +1 -1
  85. package/lib/framework/flags.js +1 -1
  86. package/lib/framework/help.js +1 -1
  87. package/lib/framework/index.js +1 -1
  88. package/lib/framework/output.js +1 -1
  89. package/lib/framework/preparse.js +1 -1
  90. package/lib/framework/rate-limit.js +1 -1
  91. package/lib/framework/raw-flags.js +1 -1
  92. package/lib/framework/response.js +1 -1
  93. package/lib/framework/runner-confirmation.js +1 -1
  94. package/lib/framework/runner-error.js +1 -1
  95. package/lib/framework/runner.js +1 -1
  96. package/lib/framework/schema-export.js +1 -1
  97. package/lib/framework/service-order.js +1 -1
  98. package/lib/framework/types.js +1 -1
  99. package/lib/generated/build-info.d.ts +4 -4
  100. package/lib/generated/build-info.js +1 -1
  101. package/lib/help.js +1 -1
  102. package/lib/runtime/confirmation.js +1 -1
  103. package/lib/runtime/event.js +1 -1
  104. package/lib/runtime/index.js +1 -1
  105. package/lib/runtime/queue.js +1 -1
  106. package/lib/runtime/resolve.js +1 -1
  107. package/lib/skills/npx-skills-add.js +1 -1
  108. package/lib/skills/runtime-skill-sync/constants.js +1 -1
  109. package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
  110. package/lib/skills/runtime-skill-sync/hashing.js +1 -1
  111. package/lib/skills/runtime-skill-sync/install-target.js +1 -1
  112. package/lib/skills/runtime-skill-sync/links.js +1 -1
  113. package/lib/skills/runtime-skill-sync/list-local.js +1 -1
  114. package/lib/skills/runtime-skill-sync/local-files.js +1 -1
  115. package/lib/skills/runtime-skill-sync/materialize.js +1 -1
  116. package/lib/skills/runtime-skill-sync/metadata.js +1 -1
  117. package/lib/skills/runtime-skill-sync/paths.js +1 -1
  118. package/lib/skills/runtime-skill-sync/push.js +1 -1
  119. package/lib/skills/runtime-skill-sync/scopes.js +1 -1
  120. package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
  121. package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
  122. package/lib/skills/runtime-skill-sync.js +1 -1
  123. package/lib/utils/apply-jq-filter.js +1 -1
  124. package/lib/utils/logger.js +1 -1
  125. package/lib/utils/lossless-json.js +1 -1
  126. package/lib/utils/params.js +1 -1
  127. package/lib/utils/platform.js +1 -1
  128. package/lib/utils/update-notice.js +1 -1
  129. package/lib/utils/version.js +1 -1
  130. package/lib/utils/write-cli-side-channel.js +1 -1
  131. package/package.json +1 -1
@@ -1 +1 @@
1
- const a64_0x7f607e=a64_0x340a;(function(_0x5ba3e4,_0xeae931){const _0x6f5c04=a64_0x340a,_0xdded7c=_0x5ba3e4();while(!![]){try{const _0x502be0=-parseInt(_0x6f5c04(0xba))/0x1+-parseInt(_0x6f5c04(0xb9))/0x2*(-parseInt(_0x6f5c04(0xac))/0x3)+parseInt(_0x6f5c04(0xbe))/0x4*(-parseInt(_0x6f5c04(0xdd))/0x5)+-parseInt(_0x6f5c04(0xcf))/0x6+-parseInt(_0x6f5c04(0xd9))/0x7+parseInt(_0x6f5c04(0xd7))/0x8+-parseInt(_0x6f5c04(0xc6))/0x9*(-parseInt(_0x6f5c04(0xb2))/0xa);if(_0x502be0===_0xeae931)break;else _0xdded7c['push'](_0xdded7c['shift']());}catch(_0x309089){_0xdded7c['push'](_0xdded7c['shift']());}}}(a64_0x23ad,0xf0daf));import{CLI_BIN_NAME}from'../../constant/cli.js';function a64_0x340a(_0x2468b1,_0x3f7661){_0x2468b1=_0x2468b1-0xac;const _0x23adad=a64_0x23ad();let _0x340abc=_0x23adad[_0x2468b1];return _0x340abc;}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_0x7f607e(0xd5),'type':a64_0x7f607e(0xd8),'description':'App\x20name\x20to\x20bind\x20as\x20the\x20current\x20workspace\x20default'},{'name':a64_0x7f607e(0xbc),'type':a64_0x7f607e(0xd8),'description':'App\x20code\x20to\x20bind\x20directly'},{'name':a64_0x7f607e(0xd2),'type':a64_0x7f607e(0xd8),'description':a64_0x7f607e(0xbd),'enum':[...RUNTIME_ENV_VALUES]},{'name':a64_0x7f607e(0xcc),'type':'boolean','description':a64_0x7f607e(0xb8),'default':![]}];async function executeWorkspaceUse(_0x1103ac,_0x7b36ee){const _0x3bff65=a64_0x7f607e,_0xffb704=_0x1103ac[_0x3bff65(0xc9)](_0x3bff65(0xd5))[_0x3bff65(0xae)](),_0x15c10a=_0x1103ac['str'](_0x3bff65(0xbc))[_0x3bff65(0xae)](),_0x1c4b53=_0x1103ac[_0x3bff65(0xc9)](_0x3bff65(0xd2))[_0x3bff65(0xae)](),_0x5f3e4b=resolveWorkspaceEnv(_0x1c4b53||_0x1103ac[_0x3bff65(0xd1)]||DEFAULT_CONFIG_VALUES['env']);if(!_0xffb704&&!_0x15c10a)throw CliErrors[_0x3bff65(0xb7)](_0x3bff65(0xda),'Usage:\x20'+CLI_BIN_NAME+_0x3bff65(0xc4)+_0x7b36ee+_0x3bff65(0xd6)+CLI_BIN_NAME+'\x20workspace\x20'+_0x7b36ee+'\x20--appcode\x20<code>\x20[--env\x20daily]');const _0x1b610a=_0x15c10a||await resolveRemoteAppCode({'command':_0x7b36ee,'appName':_0xffb704,'env':_0x5f3e4b,'accessKey':_0x1103ac['accessKey']}),_0x5967bc=writeWorkspaceConfig({'command':_0x7b36ee,'appName':_0xffb704,'appcode':_0x1b610a,'env':_0x5f3e4b,'shouldWriteEnv':!!_0x1c4b53,'accessKey':_0x1103ac[_0x3bff65(0xd4)]});return{'ok':!![],'data':{'configPath':_0x5967bc,'app':_0xffb704||null,'appcode':_0x1b610a,'env':_0x1c4b53?_0x5f3e4b:null,'accessKeyWritten':![],'command':_0x3bff65(0xcb)+_0x7b36ee},'message':buildWorkspaceMessage(_0x5967bc,_0xffb704,_0x1b610a,_0x1c4b53?_0x5f3e4b:undefined)};}async function resolveRemoteAppCode(_0xafd5c2){const _0x365470=a64_0x7f607e;if(!_0xafd5c2[_0x365470(0xd4)])throw CliErrors[_0x365470(0xc7)](_0x365470(0xbf)+CLI_BIN_NAME+'\x20workspace\x20'+_0xafd5c2['command']+'.');const {setActiveAK:_0x2a37db}=await import(_0x365470(0xdf)),{getRemoteAppList:_0x558c73}=await import(_0x365470(0xce));_0x2a37db(_0xafd5c2['accessKey']);const _0x1165cd=await _0x558c73({'env':_0xafd5c2[_0x365470(0xd2)],'accessKey':_0xafd5c2[_0x365470(0xd4)],'noCache':![]}),_0x50b359=findAppByName(_0x1165cd[_0x365470(0xaf)],_0xafd5c2[_0x365470(0xb3)]);if(_0x50b359&&!isRuntimeAccessibleApp(_0x50b359))throw runtimeInaccessibleAppError(_0x50b359,'\x22'+_0xafd5c2[_0x365470(0xb3)]+'\x22');const _0x34b9c1=_0x50b359?.['appCode']?.['trim']();if(_0x34b9c1)return _0x34b9c1;const _0x16d610=_0x1165cd[_0x365470(0xaf)][_0x365470(0xdb)](_0xe30e82=>_0xe30e82['appName'])['filter'](Boolean),_0xdf95a7=_0x16d610[_0x365470(0xad)]?_0x365470(0xb0)+Array['from'](new Set(_0x16d610))[_0x365470(0xb5)](',\x20')+'.':'Run\x20`'+CLI_BIN_NAME+_0x365470(0xd3);throw CliErrors[_0x365470(0xb7)]('App\x20\x22'+_0xafd5c2['appName']+_0x365470(0xca),_0xdf95a7);}function writeWorkspaceConfig(_0x145134){const _0x40d784=a64_0x7f607e,_0x242dd1=resolveWriteConfigPath(_0x40d784(0xd0)),_0x589cbf=readConfigFile(_0x242dd1);_0x145134[_0x40d784(0xb1)]&&(_0x589cbf[_0x40d784(0xd2)]=_0x145134[_0x40d784(0xd2)]);if(_0x145134[_0x40d784(0xb3)]){const _0x225dbb=isRecord(_0x589cbf[_0x40d784(0xc8)])?{..._0x589cbf[_0x40d784(0xc8)]}:{},_0x33c6f3=isRecord(_0x225dbb[_0x145134[_0x40d784(0xb3)]])?_0x225dbb[_0x145134[_0x40d784(0xb3)]]:{};_0x225dbb[_0x145134[_0x40d784(0xb3)]]={..._0x33c6f3,'appcode':_0x145134[_0x40d784(0xbc)]},_0x589cbf[_0x40d784(0xc8)]=_0x225dbb,_0x589cbf['defaultApp']=_0x145134[_0x40d784(0xb3)];if(_0x589cbf[_0x40d784(0xd5)])delete _0x589cbf[_0x40d784(0xd5)];return writeAndReturn(_0x242dd1,_0x589cbf);}_0x589cbf['appcode']=_0x145134[_0x40d784(0xbc)];if(_0x589cbf[_0x40d784(0xd5)])delete _0x589cbf[_0x40d784(0xd5)];return writeAndReturn(_0x242dd1,_0x589cbf);}function writeAndReturn(_0x2e9ba4,_0x562cc2){return writeConfigFile(_0x2e9ba4,_0x562cc2),_0x2e9ba4;}function a64_0x23ad(){const _0x15d88b=['1934340QdDdls','includes','appcode','Target\x20environment','15044MtrlCM','Resolving\x20--app\x20requires\x20accessKey.\x20Pass\x20--appcode\x20directly,\x20or\x20set\x20accessKey\x20before\x20running\x20','为当前工作目录初始化应用上下文','Invalid\x20env\x20\x22','init','use','\x20workspace\x20','isArray','75303ikHdDa','authRequired','apps','str','\x22\x20not\x20found.','workspace\x20','yes','workspace','../../commands/app/remote-source.js','8311614PnIVfi','project','envName','env','\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20pass\x20--appcode\x20directly.','accessKey','app','\x20--app\x20<name>\x20[--env\x20daily]\x20or\x20','4279568wjMTte','string','8139460OgBsXK','Missing\x20workspace\x20app\x20selector.','map','将在当前工作目录写入\x20Lovrabet\x20项目配置,并把所选应用设为该目录的默认应用;不会写入\x20AccessKey。','2545cYCxPh','Workspace\x20configured.\x0aConfig\x20file:\x20','../../core/api-client.js','3XohBGr','length','trim','items','Available\x20apps:\x20','shouldWriteEnv','6590BdCplc','appName','\x0aDefault\x20app:\x20','join','object','validation','Compatibility\x20flag;\x20workspace\x20config\x20updates\x20are\x20non-interactive','2668964yHHRXC'];a64_0x23ad=function(){return _0x15d88b;};return a64_0x23ad();}function resolveWorkspaceEnv(_0x2caae3){const _0x4c9f74=a64_0x7f607e;if(RUNTIME_ENV_VALUES[_0x4c9f74(0xbb)](_0x2caae3))return _0x2caae3;throw CliErrors['validation'](_0x4c9f74(0xc1)+_0x2caae3+'\x22.\x20Allowed:\x20'+RUNTIME_ENV_VALUES['join'](',\x20'));}function buildWorkspaceMessage(_0x4e7824,_0xfb50c,_0x55e65a,_0x11a90c){const _0x21a46d=a64_0x7f607e,_0xf69529=_0xfb50c?_0xfb50c+'\x20('+_0x55e65a+')':_0x55e65a,_0x5d1775=_0x11a90c?'\x0aEnv:\x20'+_0x11a90c:'';return _0x21a46d(0xde)+_0x4e7824+_0x21a46d(0xb4)+_0xf69529+_0x5d1775+'\x0aAccessKey:\x20not\x20written';}function isRecord(_0x303add){const _0xc19bc7=a64_0x7f607e;return typeof _0x303add===_0xc19bc7(0xb6)&&_0x303add!==null&&!Array[_0xc19bc7(0xc5)](_0x303add);}function makeWorkspaceCommand(_0x5e3362){const _0x22a714=a64_0x7f607e;return{'service':_0x22a714(0xcd),'command':_0x5e3362,'description':_0x5e3362===_0x22a714(0xc2)?_0x22a714(0xc0):'为当前工作目录设置应用上下文','risk':'write','confirmationDescription':_0x5e3362==='init'?_0x22a714(0xdc):'将更新当前工作目录的\x20Lovrabet\x20项目配置,并把所选应用设为该目录的默认应用;不会写入\x20AccessKey。','requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':WORKSPACE_USE_FLAGS,async 'execute'(_0x5bb2af){return executeWorkspaceUse(_0x5bb2af,_0x5e3362);}};}export const workspaceDefinitions=[makeWorkspaceCommand('init'),makeWorkspaceCommand(a64_0x7f607e(0xc3))];
1
+ function a64_0x5894(){const _0x7b3bca=['Compatibility\x20flag;\x20workspace\x20config\x20updates\x20are\x20non-interactive','57HSFxSA','Target\x20environment','1490363OvcOIS','boolean','env','length','\x22.\x20Allowed:\x20','appName','App\x20name\x20to\x20bind\x20as\x20the\x20current\x20workspace\x20default','isArray','defaultApp','12zvpYVa','\x0aEnv:\x20','workspace','为当前工作目录初始化应用上下文','为当前工作目录设置应用上下文','241828pWkDlE','App\x20\x22','app','\x20--appcode\x20<code>\x20[--env\x20daily]','string','Missing\x20workspace\x20app\x20selector.','filter','180QTlIBN','16xDSCwg','appcode','project','20djHcog','\x0aDefault\x20app:\x20','41702iTXNxO','from','yes','authRequired','items','../../core/api-client.js','shouldWriteEnv','120335MvIiSr','trim','Resolving\x20--app\x20requires\x20accessKey.\x20Pass\x20--appcode\x20directly,\x20or\x20set\x20accessKey\x20before\x20running\x20','envName','init','Available\x20apps:\x20','1750311rAkFQw','use','\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20pass\x20--appcode\x20directly.','includes','validation','apps','map','36KUteSJ','\x20workspace\x20','str','workspace\x20','\x20--app\x20<name>\x20[--env\x20daily]\x20or\x20','accessKey','write','App\x20code\x20to\x20bind\x20directly','2488024zPBWjF','object','Workspace\x20configured.\x0aConfig\x20file:\x20','36982361JOXZNX','Run\x20`'];a64_0x5894=function(){return _0x7b3bca;};return a64_0x5894();}const a64_0x2bf25c=a64_0x365c;(function(_0xefb50,_0x45c768){const _0x2b7d4b=a64_0x365c,_0x4dc16a=_0xefb50();while(!![]){try{const _0x1105ae=-parseInt(_0x2b7d4b(0x10c))/0x1*(parseInt(_0x2b7d4b(0x137))/0x2)+-parseInt(_0x2b7d4b(0x11a))/0x3*(parseInt(_0x2b7d4b(0x12a))/0x4)+parseInt(_0x2b7d4b(0x13e))/0x5*(parseInt(_0x2b7d4b(0x131))/0x6)+-parseInt(_0x2b7d4b(0x11c))/0x7+parseInt(_0x2b7d4b(0x132))/0x8*(-parseInt(_0x2b7d4b(0x144))/0x9)+parseInt(_0x2b7d4b(0x135))/0xa*(-parseInt(_0x2b7d4b(0x114))/0xb)+parseInt(_0x2b7d4b(0x125))/0xc*(parseInt(_0x2b7d4b(0x117))/0xd);if(_0x1105ae===_0x45c768)break;else _0x4dc16a['push'](_0x4dc16a['shift']());}catch(_0x389be6){_0x4dc16a['push'](_0x4dc16a['shift']());}}}(a64_0x5894,0x95b85));import{CLI_BIN_NAME}from'../../constant/cli.js';import{DEFAULT_CONFIG_VALUES}from'../../constant/defaults.js';import{RUNTIME_ENV_VALUES}from'../../constant/env.js';import{CliErrors}from'../../errors.js';import{readConfigFile,resolveWriteConfigPath,writeConfigFile}from'../../context.js';import{findAppByName,isRuntimeAccessibleApp,runtimeInaccessibleAppError}from'../../commands/app/eligibility.js';const WORKSPACE_USE_FLAGS=[{'name':'app','type':a64_0x2bf25c(0x12e),'description':a64_0x2bf25c(0x122)},{'name':a64_0x2bf25c(0x133),'type':a64_0x2bf25c(0x12e),'description':a64_0x2bf25c(0x113)},{'name':a64_0x2bf25c(0x11e),'type':'string','description':a64_0x2bf25c(0x11b),'enum':[...RUNTIME_ENV_VALUES]},{'name':a64_0x2bf25c(0x139),'type':a64_0x2bf25c(0x11d),'description':a64_0x2bf25c(0x119),'default':![]}];async function executeWorkspaceUse(_0x2df4a2,_0x234940){const _0x29b3c6=a64_0x2bf25c,_0x4b0909=_0x2df4a2['str'](_0x29b3c6(0x12c))[_0x29b3c6(0x13f)](),_0x1b358a=_0x2df4a2[_0x29b3c6(0x10e)](_0x29b3c6(0x133))['trim'](),_0x2f091a=_0x2df4a2[_0x29b3c6(0x10e)](_0x29b3c6(0x11e))[_0x29b3c6(0x13f)](),_0x21b67e=resolveWorkspaceEnv(_0x2f091a||_0x2df4a2[_0x29b3c6(0x141)]||DEFAULT_CONFIG_VALUES[_0x29b3c6(0x11e)]);if(!_0x4b0909&&!_0x1b358a)throw CliErrors[_0x29b3c6(0x148)](_0x29b3c6(0x12f),'Usage:\x20'+CLI_BIN_NAME+_0x29b3c6(0x10d)+_0x234940+_0x29b3c6(0x110)+CLI_BIN_NAME+'\x20workspace\x20'+_0x234940+_0x29b3c6(0x12d));const _0x2a7b45=_0x1b358a||await resolveRemoteAppCode({'command':_0x234940,'appName':_0x4b0909,'env':_0x21b67e,'accessKey':_0x2df4a2['accessKey']}),_0x1bcfd1=writeWorkspaceConfig({'command':_0x234940,'appName':_0x4b0909,'appcode':_0x2a7b45,'env':_0x21b67e,'shouldWriteEnv':!!_0x2f091a,'accessKey':_0x2df4a2[_0x29b3c6(0x111)]});return{'ok':!![],'data':{'configPath':_0x1bcfd1,'app':_0x4b0909||null,'appcode':_0x2a7b45,'env':_0x2f091a?_0x21b67e:null,'accessKeyWritten':![],'command':_0x29b3c6(0x10f)+_0x234940},'message':buildWorkspaceMessage(_0x1bcfd1,_0x4b0909,_0x2a7b45,_0x2f091a?_0x21b67e:undefined)};}async function resolveRemoteAppCode(_0x4e7c74){const _0xc52688=a64_0x2bf25c;if(!_0x4e7c74[_0xc52688(0x111)])throw CliErrors[_0xc52688(0x13a)](_0xc52688(0x140)+CLI_BIN_NAME+_0xc52688(0x10d)+_0x4e7c74['command']+'.');const {setActiveAK:_0x40ebd2}=await import(_0xc52688(0x13c)),{getRemoteAppList:_0x3b2824}=await import('../../commands/app/remote-source.js');_0x40ebd2(_0x4e7c74['accessKey']);const _0x48af60=await _0x3b2824({'env':_0x4e7c74['env'],'accessKey':_0x4e7c74[_0xc52688(0x111)],'noCache':![]}),_0x193b24=findAppByName(_0x48af60[_0xc52688(0x13b)],_0x4e7c74['appName']);if(_0x193b24&&!isRuntimeAccessibleApp(_0x193b24))throw runtimeInaccessibleAppError(_0x193b24,'\x22'+_0x4e7c74['appName']+'\x22');const _0x337208=_0x193b24?.['appCode']?.['trim']();if(_0x337208)return _0x337208;const _0x253716=_0x48af60[_0xc52688(0x13b)][_0xc52688(0x10b)](_0x1b669b=>_0x1b669b['appName'])[_0xc52688(0x130)](Boolean),_0x5d8767=_0x253716[_0xc52688(0x11f)]?_0xc52688(0x143)+Array[_0xc52688(0x138)](new Set(_0x253716))['join'](',\x20')+'.':_0xc52688(0x118)+CLI_BIN_NAME+_0xc52688(0x146);throw CliErrors[_0xc52688(0x148)](_0xc52688(0x12b)+_0x4e7c74['appName']+'\x22\x20not\x20found.',_0x5d8767);}function writeWorkspaceConfig(_0x10b31a){const _0x4b3cdd=a64_0x2bf25c,_0x3239a5=resolveWriteConfigPath(_0x4b3cdd(0x134)),_0x76b7e1=readConfigFile(_0x3239a5);_0x10b31a[_0x4b3cdd(0x13d)]&&(_0x76b7e1['env']=_0x10b31a[_0x4b3cdd(0x11e)]);if(_0x10b31a[_0x4b3cdd(0x121)]){const _0x354d66=isRecord(_0x76b7e1[_0x4b3cdd(0x10a)])?{..._0x76b7e1[_0x4b3cdd(0x10a)]}:{},_0x59125f=isRecord(_0x354d66[_0x10b31a['appName']])?_0x354d66[_0x10b31a[_0x4b3cdd(0x121)]]:{};_0x354d66[_0x10b31a['appName']]={..._0x59125f,'appcode':_0x10b31a[_0x4b3cdd(0x133)]},_0x76b7e1[_0x4b3cdd(0x10a)]=_0x354d66,_0x76b7e1[_0x4b3cdd(0x124)]=_0x10b31a[_0x4b3cdd(0x121)];if(_0x76b7e1['app'])delete _0x76b7e1[_0x4b3cdd(0x12c)];return writeAndReturn(_0x3239a5,_0x76b7e1);}_0x76b7e1[_0x4b3cdd(0x133)]=_0x10b31a[_0x4b3cdd(0x133)];if(_0x76b7e1[_0x4b3cdd(0x12c)])delete _0x76b7e1[_0x4b3cdd(0x12c)];return writeAndReturn(_0x3239a5,_0x76b7e1);}function writeAndReturn(_0x5706ec,_0x51c202){return writeConfigFile(_0x5706ec,_0x51c202),_0x5706ec;}function resolveWorkspaceEnv(_0x2e94c9){const _0x51d962=a64_0x2bf25c;if(RUNTIME_ENV_VALUES[_0x51d962(0x147)](_0x2e94c9))return _0x2e94c9;throw CliErrors[_0x51d962(0x148)]('Invalid\x20env\x20\x22'+_0x2e94c9+_0x51d962(0x120)+RUNTIME_ENV_VALUES['join'](',\x20'));}function a64_0x365c(_0x1468bb,_0xf7951){_0x1468bb=_0x1468bb-0x10a;const _0x58948a=a64_0x5894();let _0x365c94=_0x58948a[_0x1468bb];return _0x365c94;}function buildWorkspaceMessage(_0x9e048b,_0x1c3785,_0x340214,_0x43cfab){const _0x435d3b=a64_0x2bf25c,_0x3191e4=_0x1c3785?_0x1c3785+'\x20('+_0x340214+')':_0x340214,_0x595106=_0x43cfab?_0x435d3b(0x126)+_0x43cfab:'';return _0x435d3b(0x116)+_0x9e048b+_0x435d3b(0x136)+_0x3191e4+_0x595106+'\x0aAccessKey:\x20not\x20written';}function isRecord(_0x57c36d){const _0x5b748b=a64_0x2bf25c;return typeof _0x57c36d===_0x5b748b(0x115)&&_0x57c36d!==null&&!Array[_0x5b748b(0x123)](_0x57c36d);}function makeWorkspaceCommand(_0x4c8540){const _0x5e6e2c=a64_0x2bf25c;return{'service':_0x5e6e2c(0x127),'command':_0x4c8540,'description':_0x4c8540===_0x5e6e2c(0x142)?_0x5e6e2c(0x128):_0x5e6e2c(0x129),'risk':_0x5e6e2c(0x112),'confirmationDescription':_0x4c8540==='init'?'将在当前工作目录写入\x20Lovrabet\x20项目配置,并把所选应用设为该目录的默认应用;不会写入\x20AccessKey。':'将更新当前工作目录的\x20Lovrabet\x20项目配置,并把所选应用设为该目录的默认应用;不会写入\x20AccessKey。','requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':WORKSPACE_USE_FLAGS,async 'execute'(_0x31cebe){return executeWorkspaceUse(_0x31cebe,_0x4c8540);}};}export const workspaceDefinitions=[makeWorkspaceCommand(a64_0x2bf25c(0x142)),makeWorkspaceCommand(a64_0x2bf25c(0x145))];
@@ -1 +1 @@
1
- const a65_0x2f2864=a65_0x26b3;(function(_0x3d91e2,_0x5bf4ad){const _0x290c9f=a65_0x26b3,_0x13a519=_0x3d91e2();while(!![]){try{const _0x5839f4=-parseInt(_0x290c9f(0xb8))/0x1+-parseInt(_0x290c9f(0xb3))/0x2*(parseInt(_0x290c9f(0xb0))/0x3)+parseInt(_0x290c9f(0xbb))/0x4*(parseInt(_0x290c9f(0xb4))/0x5)+-parseInt(_0x290c9f(0xa5))/0x6+parseInt(_0x290c9f(0xa6))/0x7*(-parseInt(_0x290c9f(0xa1))/0x8)+parseInt(_0x290c9f(0xa4))/0x9*(parseInt(_0x290c9f(0xae))/0xa)+-parseInt(_0x290c9f(0xa2))/0xb*(-parseInt(_0x290c9f(0xa8))/0xc);if(_0x5839f4===_0x5bf4ad)break;else _0x13a519['push'](_0x13a519['shift']());}catch(_0x18b2b4){_0x13a519['push'](_0x13a519['shift']());}}}(a65_0x581f,0x5269c));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_0x2f2864(0x9e),'topLevel':!![],'cliSettableTopLevel':!![],'enumValues':RUNTIME_ENV_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES[a65_0x2f2864(0xa0)],'importable':!![]},'format':{'description':a65_0x2f2864(0xa9),'topLevel':!![],'cliSettableTopLevel':!![],'enumValues':OUTPUT_FORMAT_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES[a65_0x2f2864(0xba)],'importable':!![]},'pageSize':{'description':'Default\x20page\x20size','topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'apiDomain':{'description':a65_0x2f2864(0xaf),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'userDomain':{'description':a65_0x2f2864(0xab),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'runtimeDomain':{'description':'Override\x20runtime\x20domain','topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'skillHubDomain':{'description':a65_0x2f2864(0xbc),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'accessKey':{'description':'Access\x20key\x20(client-ak\x20auth)','topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'riskLevel':{'description':'Risk\x20level','topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES[a65_0x2f2864(0x9f)],'importable':!![]},'locale':{'description':'Locale','topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES[a65_0x2f2864(0xb9)],'importable':!![],'legacyCompatOnly':!![]}};export const TOP_LEVEL_CONFIG_KEYS=new Set(Object[a65_0x2f2864(0xaa)](CONFIG_FIELD_SCHEMAS)['filter'](([,_0x499cf9])=>_0x499cf9[a65_0x2f2864(0xad)])[a65_0x2f2864(0xa3)](([_0x2075cb])=>_0x2075cb));export const CONFIG_ENUM_VALUES=Object[a65_0x2f2864(0xb2)](Object[a65_0x2f2864(0xaa)](CONFIG_FIELD_SCHEMAS)[a65_0x2f2864(0xac)](([,_0x452a32])=>_0x452a32[a65_0x2f2864(0xb7)])['map'](([_0x397eb3,_0x4e3c28])=>[_0x397eb3,[..._0x4e3c28['enumValues']||[]]]));export const IMPORTABLE_RUNTIME_CONFIG_KEYS=Object['entries'](CONFIG_FIELD_SCHEMAS)[a65_0x2f2864(0xac)](([,_0x57d04a])=>_0x57d04a['importable'])[a65_0x2f2864(0xa3)](([_0x4d98ad])=>_0x4d98ad);export function getConfigFieldSchema(_0x2bd40e){return CONFIG_FIELD_SCHEMAS[_0x2bd40e];}export function getConfigEnumValues(_0x15bf23){const _0x180873=a65_0x2f2864;return getConfigFieldSchema(_0x15bf23)?.[_0x180873(0xb7)];}export function getConfigDefaultValue(_0x57f078){return getConfigFieldSchema(_0x57f078)?.['defaultValue'];}export function isTopLevelConfigKey(_0x37f148){const _0x35c6c5=a65_0x2f2864;return TOP_LEVEL_CONFIG_KEYS[_0x35c6c5(0xb6)](_0x37f148);}function a65_0x26b3(_0x4466d6,_0x5a47fc){_0x4466d6=_0x4466d6-0x9e;const _0x581f93=a65_0x581f();let _0x26b36f=_0x581f93[_0x4466d6];return _0x26b36f;}export function isLegacyCompatConfigKey(_0x31b583){const _0x376a1c=a65_0x2f2864;return getConfigFieldSchema(_0x31b583)?.[_0x376a1c(0xa7)]===!![];}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function formatConfigKeyList(_0x442da9){const _0x10630b=a65_0x2f2864;return[..._0x442da9][_0x10630b(0xb5)](',\x20');}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){const _0x34e781=a65_0x2f2864;return _0x34e781(0xb1)+getTopLevelConfigKeySummary()+';\x20local\x20alias:\x20apps.<alias>.appcode';}export function buildAppProfileListFields(_0x1639d7){return{'env':_0x1639d7,'hasAccessKey':![],'format':null,'pageSize':null,'riskLevel':null,'locale':null};}function a65_0x581f(){const _0x478b76=['has','enumValues','228800mBPGdE','locale','format','1488RkfsiG','Override\x20SkillHub\x20domain','Target\x20environment','riskLevel','env','16YvZKit','33PedGlN','map','1899EuKdsk','2224278QXFpPg','878633InMNZk','legacyCompatOnly','5144712RJzJUt','Default\x20output\x20format','entries','Override\x20user\x20domain','filter','cliSettableTopLevel','18940VYamVr','Override\x20API\x20domain','27UEhdad','Config\x20key.\x20Top-level:\x20','fromEntries','115146cvLqGg','275KIlKve','join'];a65_0x581f=function(){return _0x478b76;};return a65_0x581f();}
1
+ const a65_0x37efc4=a65_0x4e2a;(function(_0x2ac1d7,_0x3e8746){const _0x91e6a0=a65_0x4e2a,_0x319cff=_0x2ac1d7();while(!![]){try{const _0x2628a4=-parseInt(_0x91e6a0(0x152))/0x1*(parseInt(_0x91e6a0(0x141))/0x2)+parseInt(_0x91e6a0(0x145))/0x3+-parseInt(_0x91e6a0(0x157))/0x4+parseInt(_0x91e6a0(0x150))/0x5+-parseInt(_0x91e6a0(0x158))/0x6+-parseInt(_0x91e6a0(0x14e))/0x7*(-parseInt(_0x91e6a0(0x14f))/0x8)+-parseInt(_0x91e6a0(0x13a))/0x9*(-parseInt(_0x91e6a0(0x13c))/0xa);if(_0x2628a4===_0x3e8746)break;else _0x319cff['push'](_0x319cff['shift']());}catch(_0x32018b){_0x319cff['push'](_0x319cff['shift']());}}}(a65_0xe5b6,0x53c85));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_0x37efc4(0x13e),'topLevel':!![],'cliSettableTopLevel':!![],'enumValues':RUNTIME_ENV_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES['env'],'importable':!![]},'format':{'description':a65_0x37efc4(0x149),'topLevel':!![],'cliSettableTopLevel':!![],'enumValues':OUTPUT_FORMAT_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES['format'],'importable':!![]},'pageSize':{'description':a65_0x37efc4(0x147),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'apiDomain':{'description':a65_0x37efc4(0x13b),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'userDomain':{'description':a65_0x37efc4(0x143),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'runtimeDomain':{'description':a65_0x37efc4(0x154),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'skillHubDomain':{'description':a65_0x37efc4(0x14d),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'accessKey':{'description':'Access\x20key\x20(client-ak\x20auth)','topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'riskLevel':{'description':a65_0x37efc4(0x142),'topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES[a65_0x37efc4(0x14a)],'importable':!![]},'locale':{'description':'Locale','topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES[a65_0x37efc4(0x146)],'importable':!![],'legacyCompatOnly':!![]}};export const TOP_LEVEL_CONFIG_KEYS=new Set(Object[a65_0x37efc4(0x140)](CONFIG_FIELD_SCHEMAS)[a65_0x37efc4(0x139)](([,_0x561922])=>_0x561922[a65_0x37efc4(0x14c)])['map'](([_0x28a678])=>_0x28a678));export const CONFIG_ENUM_VALUES=Object[a65_0x37efc4(0x153)](Object[a65_0x37efc4(0x140)](CONFIG_FIELD_SCHEMAS)[a65_0x37efc4(0x139)](([,_0x5c8d55])=>_0x5c8d55['enumValues'])[a65_0x37efc4(0x148)](([_0x57c0e2,_0x3026af])=>[_0x57c0e2,[..._0x3026af[a65_0x37efc4(0x14b)]||[]]]));function a65_0xe5b6(){const _0x2cc360=['Default\x20output\x20format','riskLevel','enumValues','cliSettableTopLevel','Override\x20SkillHub\x20domain','98uaOSnM','56896svYelq','1926830guFmED','has','1ksSNTK','fromEntries','Override\x20runtime\x20domain',';\x20local\x20alias:\x20apps.<alias>.appcode','Config\x20key.\x20Top-level:\x20','1751112nbslcL','1910604qhoyna','filter','9APHnHU','Override\x20API\x20domain','11228710kYtuNk','defaultValue','Target\x20environment','join','entries','1347530YEQTiO','Risk\x20level','Override\x20user\x20domain','legacyCompatOnly','496035MrAoNR','locale','Default\x20page\x20size','map'];a65_0xe5b6=function(){return _0x2cc360;};return a65_0xe5b6();}export const IMPORTABLE_RUNTIME_CONFIG_KEYS=Object[a65_0x37efc4(0x140)](CONFIG_FIELD_SCHEMAS)[a65_0x37efc4(0x139)](([,_0x20a900])=>_0x20a900['importable'])['map'](([_0x149f12])=>_0x149f12);export function getConfigFieldSchema(_0x589b53){return CONFIG_FIELD_SCHEMAS[_0x589b53];}function a65_0x4e2a(_0x22fc28,_0x1d51d5){_0x22fc28=_0x22fc28-0x139;const _0xe5b631=a65_0xe5b6();let _0x4e2a64=_0xe5b631[_0x22fc28];return _0x4e2a64;}export function getConfigEnumValues(_0x3113a6){return getConfigFieldSchema(_0x3113a6)?.['enumValues'];}export function getConfigDefaultValue(_0x5710f9){const _0x39e807=a65_0x37efc4;return getConfigFieldSchema(_0x5710f9)?.[_0x39e807(0x13d)];}export function isTopLevelConfigKey(_0x504f32){const _0xbd7f3b=a65_0x37efc4;return TOP_LEVEL_CONFIG_KEYS[_0xbd7f3b(0x151)](_0x504f32);}export function isLegacyCompatConfigKey(_0x2dd100){const _0x1e950e=a65_0x37efc4;return getConfigFieldSchema(_0x2dd100)?.[_0x1e950e(0x144)]===!![];}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function formatConfigKeyList(_0x47024b){const _0x45a10a=a65_0x37efc4;return[..._0x47024b][_0x45a10a(0x13f)](',\x20');}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){const _0x5a5c54=a65_0x37efc4;return _0x5a5c54(0x156)+getTopLevelConfigKeySummary()+_0x5a5c54(0x155);}export function buildAppProfileListFields(_0x15ad43){return{'env':_0x15ad43,'hasAccessKey':![],'format':null,'pageSize':null,'riskLevel':null,'locale':null};}
@@ -1 +1 @@
1
- function a66_0x3e72(_0x222c49,_0x2cbf74){_0x222c49=_0x222c49-0x11a;const _0x4755c7=a66_0x4755();let _0x3e722a=_0x4755c7[_0x222c49];return _0x3e722a;}const a66_0x533786=a66_0x3e72;(function(_0xe32383,_0x3c15f5){const _0x5c1fda=a66_0x3e72,_0x5a0650=_0xe32383();while(!![]){try{const _0xde5e66=-parseInt(_0x5c1fda(0x123))/0x1*(-parseInt(_0x5c1fda(0x126))/0x2)+-parseInt(_0x5c1fda(0x11b))/0x3*(parseInt(_0x5c1fda(0x11a))/0x4)+-parseInt(_0x5c1fda(0x11c))/0x5+parseInt(_0x5c1fda(0x121))/0x6+parseInt(_0x5c1fda(0x11e))/0x7*(parseInt(_0x5c1fda(0x122))/0x8)+parseInt(_0x5c1fda(0x120))/0x9*(-parseInt(_0x5c1fda(0x11f))/0xa)+parseInt(_0x5c1fda(0x11d))/0xb*(parseInt(_0x5c1fda(0x125))/0xc);if(_0xde5e66===_0x3c15f5)break;else _0x5a0650['push'](_0x5a0650['shift']());}catch(_0x32c91e){_0x5a0650['push'](_0x5a0650['shift']());}}}(a66_0x4755,0x70cc7));export const APP_PUBLISH_STATUS={'Published':'PUBLISHED','Unpublished':a66_0x533786(0x124)};export const RUNTIME_ACCESSIBLE_APP_STATUS=APP_PUBLISH_STATUS['Published'];function a66_0x4755(){const _0x3d9997=['10nrQvPA','8304723yWhWRe','1395048AzlZmH','1080232fXAALn','6QKxodq','UNPUBLISH','22332oPKEhc','224172yRSDoC','1695328MKYrAr','3cHehla','493385lLPery','5126mgJWcS','7MzNrkj'];a66_0x4755=function(){return _0x3d9997;};return a66_0x4755();}
1
+ const a66_0x3ad486=a66_0x4786;function a66_0x4786(_0x19076d,_0x150a68){_0x19076d=_0x19076d-0x8a;const _0x531c49=a66_0x531c();let _0x4786cb=_0x531c49[_0x19076d];return _0x4786cb;}(function(_0x2df989,_0x501e65){const _0x11c190=a66_0x4786,_0x5c5e03=_0x2df989();while(!![]){try{const _0x53a3e3=-parseInt(_0x11c190(0x97))/0x1*(parseInt(_0x11c190(0x93))/0x2)+parseInt(_0x11c190(0x90))/0x3+-parseInt(_0x11c190(0x96))/0x4*(-parseInt(_0x11c190(0x95))/0x5)+parseInt(_0x11c190(0x94))/0x6+-parseInt(_0x11c190(0x8a))/0x7*(parseInt(_0x11c190(0x8b))/0x8)+parseInt(_0x11c190(0x92))/0x9*(-parseInt(_0x11c190(0x8d))/0xa)+parseInt(_0x11c190(0x8e))/0xb;if(_0x53a3e3===_0x501e65)break;else _0x5c5e03['push'](_0x5c5e03['shift']());}catch(_0x151d02){_0x5c5e03['push'](_0x5c5e03['shift']());}}}(a66_0x531c,0x90f21));export const APP_PUBLISH_STATUS={'Published':a66_0x3ad486(0x91),'Unpublished':a66_0x3ad486(0x8f)};export const RUNTIME_ACCESSIBLE_APP_STATUS=APP_PUBLISH_STATUS[a66_0x3ad486(0x8c)];function a66_0x531c(){const _0x50c55a=['62884BtRjaZ','404843HtpZrK','329HWYiqE','48064boLnRC','Published','1760QaMywL','1659768xtxIpS','UNPUBLISH','672321tCXZzB','PUBLISHED','31410NUVdXd','2VmhJIm','6196860vLoutN','155fPBQrs'];a66_0x531c=function(){return _0x50c55a;};return a66_0x531c();}
@@ -1 +1 @@
1
- function a67_0x3022(_0x22af9e,_0x45e921){_0x22af9e=_0x22af9e-0x182;const _0x2b6b0b=a67_0x2b6b();let _0x3022b1=_0x2b6b0b[_0x22af9e];return _0x3022b1;}const a67_0x3ece6a=a67_0x3022;(function(_0x2b91a5,_0x2c0477){const _0x583453=a67_0x3022,_0x4902c5=_0x2b91a5();while(!![]){try{const _0x4e4012=parseInt(_0x583453(0x185))/0x1+-parseInt(_0x583453(0x188))/0x2*(parseInt(_0x583453(0x183))/0x3)+-parseInt(_0x583453(0x18d))/0x4+parseInt(_0x583453(0x18c))/0x5*(-parseInt(_0x583453(0x182))/0x6)+-parseInt(_0x583453(0x186))/0x7*(-parseInt(_0x583453(0x18e))/0x8)+-parseInt(_0x583453(0x18a))/0x9+parseInt(_0x583453(0x18b))/0xa*(parseInt(_0x583453(0x187))/0xb);if(_0x4e4012===_0x2c0477)break;else _0x4902c5['push'](_0x4902c5['shift']());}catch(_0xc7d09){_0x4902c5['push'](_0x4902c5['shift']());}}}(a67_0x2b6b,0x4c056));export const AUTH_MODE={'ClientAk':a67_0x3ece6a(0x184)};function a67_0x2b6b(){const _0x117ae6=['293951RMWXWd','770wIgnHq','160550qMDkKZ','ClientAk','951129zKRTBe','151800gmynvg','235085SlDgdp','1862744iMrHxb','80WJREyv','60vPVoyX','15qPjHzs','client-ak','271764RoWFAJ'];a67_0x2b6b=function(){return _0x117ae6;};return a67_0x2b6b();}export function isAuthMode(_0x454216){const _0x19e7b5=a67_0x3ece6a;return _0x454216===AUTH_MODE[_0x19e7b5(0x189)];}
1
+ function a67_0x47a6(){const _0x5838b8=['467351dRywEY','3702024tqtHlB','ClientAk','3546186oIuFFA','5lURcAB','3277536ItMaje','340970YaRNuN','1497910LTkQvB','client-ak','1408566QufEHm'];a67_0x47a6=function(){return _0x5838b8;};return a67_0x47a6();}function a67_0x2e0c(_0x3816b9,_0x5dd399){_0x3816b9=_0x3816b9-0x1c8;const _0x47a697=a67_0x47a6();let _0x2e0c48=_0x47a697[_0x3816b9];return _0x2e0c48;}const a67_0x385d6b=a67_0x2e0c;(function(_0x438e9f,_0x54886c){const _0x1d1830=a67_0x2e0c,_0x3dcdc3=_0x438e9f();while(!![]){try{const _0x7ca8a2=-parseInt(_0x1d1830(0x1c9))/0x1+parseInt(_0x1d1830(0x1d0))/0x2+-parseInt(_0x1d1830(0x1c8))/0x3+parseInt(_0x1d1830(0x1ce))/0x4+-parseInt(_0x1d1830(0x1cd))/0x5*(parseInt(_0x1d1830(0x1cc))/0x6)+-parseInt(_0x1d1830(0x1cf))/0x7+parseInt(_0x1d1830(0x1ca))/0x8;if(_0x7ca8a2===_0x54886c)break;else _0x3dcdc3['push'](_0x3dcdc3['shift']());}catch(_0x383a0f){_0x3dcdc3['push'](_0x3dcdc3['shift']());}}}(a67_0x47a6,0x6ef4e));export const AUTH_MODE={'ClientAk':a67_0x385d6b(0x1d1)};export function isAuthMode(_0x4813ec){const _0x1877be=a67_0x385d6b;return _0x4813ec===AUTH_MODE[_0x1877be(0x1cb)];}
@@ -1 +1 @@
1
- function a68_0x3c39(_0x1d06b5,_0x4a4dcf){_0x1d06b5=_0x1d06b5-0xc5;const _0x1a30b7=a68_0x1a30();let _0x3c391e=_0x1a30b7[_0x1d06b5];return _0x3c391e;}function a68_0x1a30(){const _0x388865=['sqlcode','non-interactive','string','cliBinName','global','Preview\x20operation\x20without\x20executing','4931703pMitjq','meowKey','cliDisplayName','nonInteractive','SQL\x20query\x20code','yes','JSON\x20params\x20for\x20execute\x20commands','clear','name','20miKBUp','Clear\x20output','Use\x20global\x20config\x20scope','params','738XfycQG','4932018YFSKvX','3777XOrfDV','Environment','1676856IHxZzp','dry-run','appcode','<expr>','736985DgeJRn','app','308439rljXbr','Output\x20format','fromEntries','format','3927399IknSJU','Skip\x20confirmation\x20for\x20high-risk\x20writes','boolean','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20implies\x20--format\x20json\x20when\x20current\x20format\x20is\x20pretty)','Override\x20appcode','help','Record\x20ID','Select\x20app\x20profile\x20by\x20name','Alias\x20for\x20--non-interactive','490hlswFu','env','json\x20|\x20pretty\x20|\x20compress','verbose','Force\x20non-interactive\x20mode\x20(CI)','map','type'];a68_0x1a30=function(){return _0x388865;};return a68_0x1a30();}const a68_0x5dd2a1=a68_0x3c39;(function(_0x389494,_0x87f8d){const _0x20578b=a68_0x3c39,_0x5a3b46=_0x389494();while(!![]){try{const _0x20355b=parseInt(_0x20578b(0xee))/0x1*(-parseInt(_0x20578b(0xec))/0x2)+parseInt(_0x20578b(0xc9))/0x3+parseInt(_0x20578b(0xe8))/0x4*(parseInt(_0x20578b(0xf4))/0x5)+parseInt(_0x20578b(0xed))/0x6+parseInt(_0x20578b(0xdf))/0x7+parseInt(_0x20578b(0xf0))/0x8+-parseInt(_0x20578b(0xc5))/0x9*(parseInt(_0x20578b(0xd2))/0xa);if(_0x20355b===_0x87f8d)break;else _0x5a3b46['push'](_0x5a3b46['shift']());}catch(_0x42ac6c){_0x5a3b46['push'](_0x5a3b46['shift']());}}}(a68_0x1a30,0xad291));import{PRODUCT_CONFIG}from'../constant/product.js';import{LOVRABET_NPM_PACKAGE_NAME}from'../constant/distribution.js';export const CLI_BIN_NAME=PRODUCT_CONFIG[a68_0x5dd2a1(0xdc)];export const CLI_DISPLAY_NAME=PRODUCT_CONFIG[a68_0x5dd2a1(0xe1)];export const NPM_PACKAGE_NAME=LOVRABET_NPM_PACKAGE_NAME;export const GLOBAL_FLAGS=[{'name':a68_0x5dd2a1(0xf2),'meowKey':a68_0x5dd2a1(0xf2),'type':a68_0x5dd2a1(0xdb),'description':a68_0x5dd2a1(0xcd),'hint':'<code>'},{'name':a68_0x5dd2a1(0xf5),'meowKey':'app','type':a68_0x5dd2a1(0xdb),'description':a68_0x5dd2a1(0xd0),'hint':'<name>'},{'name':a68_0x5dd2a1(0xd3),'meowKey':'env','type':a68_0x5dd2a1(0xdb),'description':a68_0x5dd2a1(0xef),'hint':'production\x20|\x20development\x20|\x20daily'},{'name':a68_0x5dd2a1(0xc8),'meowKey':a68_0x5dd2a1(0xc8),'type':'string','description':a68_0x5dd2a1(0xc6),'hint':a68_0x5dd2a1(0xd4)},{'name':'jq','meowKey':'jq','type':'string','description':a68_0x5dd2a1(0xcc),'hint':a68_0x5dd2a1(0xf3)},{'name':a68_0x5dd2a1(0xf1),'meowKey':'dryRun','type':a68_0x5dd2a1(0xcb),'description':a68_0x5dd2a1(0xde)},{'name':a68_0x5dd2a1(0xe4),'meowKey':a68_0x5dd2a1(0xe4),'type':a68_0x5dd2a1(0xcb),'description':a68_0x5dd2a1(0xca)},{'name':a68_0x5dd2a1(0xda),'meowKey':a68_0x5dd2a1(0xe2),'type':a68_0x5dd2a1(0xcb),'description':a68_0x5dd2a1(0xd6)},{'name':a68_0x5dd2a1(0xdd),'meowKey':a68_0x5dd2a1(0xdd),'type':a68_0x5dd2a1(0xcb),'description':a68_0x5dd2a1(0xea)},{'name':'ci','meowKey':'ci','type':a68_0x5dd2a1(0xcb),'description':a68_0x5dd2a1(0xd1),'hidden':!![]},{'name':'help','meowKey':a68_0x5dd2a1(0xce),'type':a68_0x5dd2a1(0xcb),'description':'Show\x20help'},{'name':'id','meowKey':'id','type':a68_0x5dd2a1(0xdb),'description':a68_0x5dd2a1(0xcf),'hidden':!![]},{'name':'name','meowKey':a68_0x5dd2a1(0xe7),'type':'string','description':'Name\x20filter','hidden':!![]},{'name':a68_0x5dd2a1(0xd9),'meowKey':a68_0x5dd2a1(0xd9),'type':a68_0x5dd2a1(0xdb),'description':a68_0x5dd2a1(0xe3),'hidden':!![]},{'name':a68_0x5dd2a1(0xeb),'meowKey':'params','type':a68_0x5dd2a1(0xdb),'description':a68_0x5dd2a1(0xe5),'hidden':!![]},{'name':'verbose','meowKey':a68_0x5dd2a1(0xd5),'type':a68_0x5dd2a1(0xcb),'description':'Verbose\x20output','hidden':!![]},{'name':a68_0x5dd2a1(0xe6),'meowKey':a68_0x5dd2a1(0xe6),'type':a68_0x5dd2a1(0xcb),'description':a68_0x5dd2a1(0xe9),'hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set([a68_0x5dd2a1(0xf2),'app',a68_0x5dd2a1(0xd3),a68_0x5dd2a1(0xc8),'jq',a68_0x5dd2a1(0xf1),a68_0x5dd2a1(0xe4),a68_0x5dd2a1(0xda),'ci']);export function buildMeowFlags(){const _0x4c2241=a68_0x5dd2a1;return Object[_0x4c2241(0xc7)](GLOBAL_FLAGS[_0x4c2241(0xd7)](_0x578856=>[_0x578856[_0x4c2241(0xe0)],{'type':_0x578856[_0x4c2241(0xd8)]}]));}
1
+ function a68_0x1639(){const _0x5c1891=['Verbose\x20output','28497CFIxcv','Use\x20global\x20config\x20scope','<expr>','env','cliDisplayName','params','JSON\x20params\x20for\x20execute\x20commands','dry-run','1773900SCpLmb','SQL\x20query\x20code','Show\x20help','json\x20|\x20pretty\x20|\x20compress','2088117dIboFQ','map','string','meowKey','production\x20|\x20development\x20|\x20daily','help','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20implies\x20--format\x20json\x20when\x20current\x20format\x20is\x20pretty)','clear','8uUoTbD','boolean','verbose','cliBinName','Preview\x20operation\x20without\x20executing','format','Override\x20appcode','Force\x20non-interactive\x20mode\x20(CI)','Select\x20app\x20profile\x20by\x20name','Name\x20filter','app','84CNtcIL','name','Clear\x20output','<code>','type','dryRun','Alias\x20for\x20--non-interactive','249062nDaCjj','fromEntries','appcode','global','708010YOILYg','2719213iUnCtL','Environment','206438ocYaif','non-interactive','Record\x20ID'];a68_0x1639=function(){return _0x5c1891;};return a68_0x1639();}const a68_0x13c53d=a68_0x2a63;(function(_0x4ce59e,_0x209087){const _0x294507=a68_0x2a63,_0x4a085d=_0x4ce59e();while(!![]){try{const _0x48bff3=parseInt(_0x294507(0xb9))/0x1+parseInt(_0x294507(0xb2))/0x2+parseInt(_0x294507(0xbd))/0x3*(parseInt(_0x294507(0xab))/0x4)+parseInt(_0x294507(0xb6))/0x5+-parseInt(_0x294507(0xc5))/0x6+-parseInt(_0x294507(0xb7))/0x7+-parseInt(_0x294507(0xd1))/0x8*(-parseInt(_0x294507(0xc9))/0x9);if(_0x48bff3===_0x209087)break;else _0x4a085d['push'](_0x4a085d['shift']());}catch(_0x46d143){_0x4a085d['push'](_0x4a085d['shift']());}}}(a68_0x1639,0x35b32));import{PRODUCT_CONFIG}from'../constant/product.js';import{LOVRABET_NPM_PACKAGE_NAME}from'../constant/distribution.js';export const CLI_BIN_NAME=PRODUCT_CONFIG[a68_0x13c53d(0xa3)];export const CLI_DISPLAY_NAME=PRODUCT_CONFIG[a68_0x13c53d(0xc1)];export const NPM_PACKAGE_NAME=LOVRABET_NPM_PACKAGE_NAME;function a68_0x2a63(_0x5dd101,_0x5eef70){_0x5dd101=_0x5dd101-0xa3;const _0x163953=a68_0x1639();let _0x2a637d=_0x163953[_0x5dd101];return _0x2a637d;}export const GLOBAL_FLAGS=[{'name':a68_0x13c53d(0xb4),'meowKey':a68_0x13c53d(0xb4),'type':a68_0x13c53d(0xcb),'description':a68_0x13c53d(0xa6),'hint':a68_0x13c53d(0xae)},{'name':a68_0x13c53d(0xaa),'meowKey':'app','type':'string','description':a68_0x13c53d(0xa8),'hint':'<name>'},{'name':a68_0x13c53d(0xc0),'meowKey':'env','type':a68_0x13c53d(0xcb),'description':a68_0x13c53d(0xb8),'hint':a68_0x13c53d(0xcd)},{'name':'format','meowKey':a68_0x13c53d(0xa5),'type':'string','description':'Output\x20format','hint':a68_0x13c53d(0xc8)},{'name':'jq','meowKey':'jq','type':a68_0x13c53d(0xcb),'description':a68_0x13c53d(0xcf),'hint':a68_0x13c53d(0xbf)},{'name':a68_0x13c53d(0xc4),'meowKey':a68_0x13c53d(0xb0),'type':a68_0x13c53d(0xd2),'description':a68_0x13c53d(0xa4)},{'name':'yes','meowKey':'yes','type':'boolean','description':'Skip\x20confirmation\x20for\x20high-risk\x20writes'},{'name':'non-interactive','meowKey':'nonInteractive','type':'boolean','description':a68_0x13c53d(0xa7)},{'name':'global','meowKey':a68_0x13c53d(0xb5),'type':a68_0x13c53d(0xd2),'description':a68_0x13c53d(0xbe)},{'name':'ci','meowKey':'ci','type':a68_0x13c53d(0xd2),'description':a68_0x13c53d(0xb1),'hidden':!![]},{'name':'help','meowKey':a68_0x13c53d(0xce),'type':a68_0x13c53d(0xd2),'description':a68_0x13c53d(0xc7)},{'name':'id','meowKey':'id','type':a68_0x13c53d(0xcb),'description':a68_0x13c53d(0xbb),'hidden':!![]},{'name':a68_0x13c53d(0xac),'meowKey':a68_0x13c53d(0xac),'type':a68_0x13c53d(0xcb),'description':a68_0x13c53d(0xa9),'hidden':!![]},{'name':'sqlcode','meowKey':'sqlcode','type':a68_0x13c53d(0xcb),'description':a68_0x13c53d(0xc6),'hidden':!![]},{'name':a68_0x13c53d(0xc2),'meowKey':a68_0x13c53d(0xc2),'type':'string','description':a68_0x13c53d(0xc3),'hidden':!![]},{'name':a68_0x13c53d(0xd3),'meowKey':'verbose','type':a68_0x13c53d(0xd2),'description':a68_0x13c53d(0xbc),'hidden':!![]},{'name':a68_0x13c53d(0xd0),'meowKey':a68_0x13c53d(0xd0),'type':'boolean','description':a68_0x13c53d(0xad),'hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set([a68_0x13c53d(0xb4),a68_0x13c53d(0xaa),a68_0x13c53d(0xc0),a68_0x13c53d(0xa5),'jq',a68_0x13c53d(0xc4),'yes',a68_0x13c53d(0xba),'ci']);export function buildMeowFlags(){const _0x367fa5=a68_0x13c53d;return Object[_0x367fa5(0xb3)](GLOBAL_FLAGS[_0x367fa5(0xca)](_0x55d393=>[_0x55d393[_0x367fa5(0xcc)],{'type':_0x55d393[_0x367fa5(0xaf)]}]));}
@@ -1 +1 @@
1
- const a69_0x78e063=a69_0x42f2;(function(_0x4e17ce,_0x1f444f){const _0x21f2c5=a69_0x42f2,_0x144503=_0x4e17ce();while(!![]){try{const _0x38b628=parseInt(_0x21f2c5(0x99))/0x1*(-parseInt(_0x21f2c5(0x9c))/0x2)+parseInt(_0x21f2c5(0x95))/0x3+-parseInt(_0x21f2c5(0x94))/0x4+parseInt(_0x21f2c5(0x9e))/0x5*(parseInt(_0x21f2c5(0x9f))/0x6)+parseInt(_0x21f2c5(0x93))/0x7+-parseInt(_0x21f2c5(0x9b))/0x8*(-parseInt(_0x21f2c5(0x9a))/0x9)+-parseInt(_0x21f2c5(0x98))/0xa*(parseInt(_0x21f2c5(0x96))/0xb);if(_0x38b628===_0x1f444f)break;else _0x144503['push'](_0x144503['shift']());}catch(_0x4e18cb){_0x144503['push'](_0x144503['shift']());}}}(a69_0x336d,0x9ddac));export const DEFAULT_APP_PROFILE_NAME=a69_0x78e063(0xa0);function a69_0x42f2(_0x4ffb23,_0x160ec6){_0x4ffb23=_0x4ffb23-0x92;const _0x336d96=a69_0x336d();let _0x42f225=_0x336d96[_0x4ffb23];return _0x42f225;}export const DEFAULT_CONFIG_VALUES={'env':a69_0x78e063(0x9d),'format':a69_0x78e063(0x92),'locale':a69_0x78e063(0x97),'riskLevel':'write'};function a69_0x336d(){const _0xacdd1d=['12xARDGN','main','compress','3888290otammF','957732ELsUDu','1774719JZSxVX','15213kaafTY','en-US','2410Qyexsf','1ZSqeEB','56556oYYkzA','48bEtdpz','222770ODHAFO','production','364865HoNVWJ'];a69_0x336d=function(){return _0xacdd1d;};return a69_0x336d();}export const DEFAULT_COMMAND_OUTPUT_FORMAT=a69_0x78e063(0x92);
1
+ const a69_0x3b9132=a69_0x4f0c;function a69_0x155c(){const _0x2fb0a6=['9KzKYEk','365iZlEXa','6UDnHBO','5636640BzqHwA','61988KpmpVR','6054NuDHdd','5699589ADEkYO','140FNMgNp','36cETDxJ','14789827foQKBO','1157203tiXaSZ','main','1352ZtqMIX','compress','1044461DniSQU'];a69_0x155c=function(){return _0x2fb0a6;};return a69_0x155c();}(function(_0x1ec1da,_0x2f05bb){const _0x145921=a69_0x4f0c,_0x2df0fe=_0x1ec1da();while(!![]){try{const _0x59151d=parseInt(_0x145921(0x161))/0x1+-parseInt(_0x145921(0x163))/0x2*(-parseInt(_0x145921(0x15c))/0x3)+parseInt(_0x145921(0x15b))/0x4*(-parseInt(_0x145921(0x158))/0x5)+-parseInt(_0x145921(0x159))/0x6*(-parseInt(_0x145921(0x15d))/0x7)+-parseInt(_0x145921(0x15a))/0x8*(-parseInt(_0x145921(0x157))/0x9)+-parseInt(_0x145921(0x15e))/0xa*(-parseInt(_0x145921(0x165))/0xb)+-parseInt(_0x145921(0x15f))/0xc*(parseInt(_0x145921(0x160))/0xd);if(_0x59151d===_0x2f05bb)break;else _0x2df0fe['push'](_0x2df0fe['shift']());}catch(_0x5dc2ce){_0x2df0fe['push'](_0x2df0fe['shift']());}}}(a69_0x155c,0xc9756));export const DEFAULT_APP_PROFILE_NAME=a69_0x3b9132(0x162);export const DEFAULT_CONFIG_VALUES={'env':'production','format':'compress','locale':'en-US','riskLevel':'write'};function a69_0x4f0c(_0x30e9ec,_0x1fe456){_0x30e9ec=_0x30e9ec-0x157;const _0x155caa=a69_0x155c();let _0x4f0c70=_0x155caa[_0x30e9ec];return _0x4f0c70;}export const DEFAULT_COMMAND_OUTPUT_FORMAT=a69_0x3b9132(0x164);
@@ -1 +1 @@
1
- function a70_0xb0e5(){const _0x3e342d=['637RxOSXb','71325uwNLJb','174316igXQUb','npmRegistryBaseUrl','21EFepDs','304DQGedQ','471skfXFs','skillSource','7ibHJVK','1752476SDaqdF','30LVSTwW','427956VsmFiK','4324974UPLjav','595235kFrlxe','2690qlcBsc'];a70_0xb0e5=function(){return _0x3e342d;};return a70_0xb0e5();}const a70_0xe5f9ee=a70_0x3f7f;(function(_0x1bbfa2,_0x42c655){const _0x4c2ac8=a70_0x3f7f,_0x6dafcc=_0x1bbfa2();while(!![]){try{const _0x223af2=-parseInt(_0x4c2ac8(0x12b))/0x1*(-parseInt(_0x4c2ac8(0x133))/0x2)+-parseInt(_0x4c2ac8(0x138))/0x3*(parseInt(_0x4c2ac8(0x136))/0x4)+-parseInt(_0x4c2ac8(0x132))/0x5+parseInt(_0x4c2ac8(0x131))/0x6*(-parseInt(_0x4c2ac8(0x12d))/0x7)+parseInt(_0x4c2ac8(0x139))/0x8*(-parseInt(_0x4c2ac8(0x135))/0x9)+parseInt(_0x4c2ac8(0x12f))/0xa*(-parseInt(_0x4c2ac8(0x12e))/0xb)+-parseInt(_0x4c2ac8(0x130))/0xc*(-parseInt(_0x4c2ac8(0x134))/0xd);if(_0x223af2===_0x42c655)break;else _0x6dafcc['push'](_0x6dafcc['shift']());}catch(_0x3cb9e2){_0x6dafcc['push'](_0x6dafcc['shift']());}}}(a70_0xb0e5,0x6f8fb));import{PRODUCT_CONFIG}from'../constant/product.js';export const LOVRABET_NPM_PACKAGE_NAME=PRODUCT_CONFIG['npmPackageName'];function a70_0x3f7f(_0x1c5b23,_0x4d201f){_0x1c5b23=_0x1c5b23-0x12b;const _0xb0e531=a70_0xb0e5();let _0x3f7f9b=_0xb0e531[_0x1c5b23];return _0x3f7f9b;}export const LOVRABET_SKILL_SOURCE=PRODUCT_CONFIG[a70_0xe5f9ee(0x12c)];export const NPM_REGISTRY_BASE_URL=PRODUCT_CONFIG[a70_0xe5f9ee(0x137)];
1
+ function a70_0x499b(_0x24827d,_0x53c02c){_0x24827d=_0x24827d-0xa3;const _0x41590c=a70_0x4159();let _0x499b6d=_0x41590c[_0x24827d];return _0x499b6d;}const a70_0x2328f1=a70_0x499b;(function(_0x2a4210,_0x25d5f5){const _0x52aa31=a70_0x499b,_0x559a60=_0x2a4210();while(!![]){try{const _0x974240=-parseInt(_0x52aa31(0xa9))/0x1+parseInt(_0x52aa31(0xae))/0x2+-parseInt(_0x52aa31(0xad))/0x3+-parseInt(_0x52aa31(0xa6))/0x4*(parseInt(_0x52aa31(0xaf))/0x5)+-parseInt(_0x52aa31(0xab))/0x6*(-parseInt(_0x52aa31(0xac))/0x7)+-parseInt(_0x52aa31(0xa8))/0x8*(parseInt(_0x52aa31(0xa7))/0x9)+parseInt(_0x52aa31(0xa3))/0xa;if(_0x974240===_0x25d5f5)break;else _0x559a60['push'](_0x559a60['shift']());}catch(_0x34364b){_0x559a60['push'](_0x559a60['shift']());}}}(a70_0x4159,0x290a6));import{PRODUCT_CONFIG}from'../constant/product.js';function a70_0x4159(){const _0x5a5f82=['167419HXHWKM','skillSource','48oqudls','62111nnwuGM','935364rKmaDy','119208tIjiqg','290GuckoO','8635640sKuDXd','npmPackageName','npmRegistryBaseUrl','14316mbVtTw','423qgSmQZ','23704MFbbIh'];a70_0x4159=function(){return _0x5a5f82;};return a70_0x4159();}export const LOVRABET_NPM_PACKAGE_NAME=PRODUCT_CONFIG[a70_0x2328f1(0xa4)];export const LOVRABET_SKILL_SOURCE=PRODUCT_CONFIG[a70_0x2328f1(0xaa)];export const NPM_REGISTRY_BASE_URL=PRODUCT_CONFIG[a70_0x2328f1(0xa5)];
@@ -1 +1 @@
1
- const a71_0x26f380=a71_0x1137;(function(_0x5637c1,_0x57e904){const _0x362509=a71_0x1137,_0x1d4d7d=_0x5637c1();while(!![]){try{const _0x1f0100=-parseInt(_0x362509(0x1bd))/0x1+-parseInt(_0x362509(0x1c3))/0x2*(-parseInt(_0x362509(0x1b3))/0x3)+parseInt(_0x362509(0x1c1))/0x4*(-parseInt(_0x362509(0x1ba))/0x5)+-parseInt(_0x362509(0x1b1))/0x6+parseInt(_0x362509(0x1bc))/0x7*(parseInt(_0x362509(0x1b8))/0x8)+parseInt(_0x362509(0x1c2))/0x9*(parseInt(_0x362509(0x1b6))/0xa)+parseInt(_0x362509(0x1b7))/0xb;if(_0x1f0100===_0x57e904)break;else _0x1d4d7d['push'](_0x1d4d7d['shift']());}catch(_0x19e31e){_0x1d4d7d['push'](_0x1d4d7d['shift']());}}}(a71_0x4b5d,0xe3034));import{getEnv,isProduction}from'../constant/env.js';function a71_0x1137(_0x126c5e,_0x389abc){_0x126c5e=_0x126c5e-0x1b0;const _0x4b5d35=a71_0x4b5d();let _0x113776=_0x4b5d35[_0x126c5e];return _0x113776;}import{PRODUCT_CONFIG}from'../constant/product.js';let customApiDomain,customUserDomain,customRuntimeDomain,customSkillHubDomain;export function initDomains(_0x47db57){const _0x1c31c2=a71_0x1137;customApiDomain=_0x47db57?.[_0x1c31c2(0x1b2)],customUserDomain=_0x47db57?.['userDomain'],customRuntimeDomain=_0x47db57?.[_0x1c31c2(0x1b0)],customSkillHubDomain=_0x47db57?.['skillHubDomain'];}function a71_0x4b5d(){const _0xcfe852=['886656OGoiHA','skillhub','production','user','1699676nBJAZj','18lqKQSM','150bkBAtQ','runtimeDomain','4311666aKEtAg','apiDomain','735zDkJwi','api','runtime','5516090uRuqBr','13976523mOWyeC','31896VYprFJ','nonProduction','10bvTlsO','domains','1743kpKpYt'];a71_0x4b5d=function(){return _0xcfe852;};return a71_0x4b5d();}export const getUserDomain=()=>customUserDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a71_0x26f380(0x1bb)][a71_0x26f380(0x1bf)][a71_0x26f380(0x1c0)]:PRODUCT_CONFIG['domains'][a71_0x26f380(0x1b9)][a71_0x26f380(0x1c0)]);export const getApiDomain=()=>customApiDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a71_0x26f380(0x1bb)][a71_0x26f380(0x1bf)][a71_0x26f380(0x1b4)]:PRODUCT_CONFIG['domains'][a71_0x26f380(0x1b9)][a71_0x26f380(0x1b4)]);export const getRuntimeDomain=()=>customRuntimeDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a71_0x26f380(0x1bb)][a71_0x26f380(0x1bf)]['runtime']:PRODUCT_CONFIG[a71_0x26f380(0x1bb)][a71_0x26f380(0x1b9)][a71_0x26f380(0x1b5)]);export const getSkillHubDomain=()=>customSkillHubDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a71_0x26f380(0x1bb)][a71_0x26f380(0x1bf)][a71_0x26f380(0x1be)]:PRODUCT_CONFIG[a71_0x26f380(0x1bb)][a71_0x26f380(0x1b9)][a71_0x26f380(0x1be)]);
1
+ const a71_0x1b02c6=a71_0x1277;(function(_0x54f8b0,_0x40bef7){const _0x573eb8=a71_0x1277,_0x5b3c46=_0x54f8b0();while(!![]){try{const _0x382087=parseInt(_0x573eb8(0x1e8))/0x1+-parseInt(_0x573eb8(0x1e6))/0x2*(parseInt(_0x573eb8(0x1ec))/0x3)+-parseInt(_0x573eb8(0x1ed))/0x4+parseInt(_0x573eb8(0x1e0))/0x5+parseInt(_0x573eb8(0x1e3))/0x6*(-parseInt(_0x573eb8(0x1e1))/0x7)+parseInt(_0x573eb8(0x1e5))/0x8+parseInt(_0x573eb8(0x1ee))/0x9;if(_0x382087===_0x40bef7)break;else _0x5b3c46['push'](_0x5b3c46['shift']());}catch(_0x1cc2b8){_0x5b3c46['push'](_0x5b3c46['shift']());}}}(a71_0x404b,0x92bf6));function a71_0x404b(){const _0x331ed7=['apiDomain','runtime','userDomain','2118425ajTwjj','917xHZokZ','runtimeDomain','26610BlfHye','nonProduction','5713792WAKKPP','196fUIBKw','production','449609VVYgLr','skillHubDomain','api','domains','11541gPhiSh','2366296RDNLXW','5068125dmOhpv'];a71_0x404b=function(){return _0x331ed7;};return a71_0x404b();}import{getEnv,isProduction}from'../constant/env.js';import{PRODUCT_CONFIG}from'../constant/product.js';let customApiDomain,customUserDomain,customRuntimeDomain,customSkillHubDomain;function a71_0x1277(_0x520895,_0x5d08f6){_0x520895=_0x520895-0x1e0;const _0x404b82=a71_0x404b();let _0x12775a=_0x404b82[_0x520895];return _0x12775a;}export function initDomains(_0x41ed26){const _0x335db1=a71_0x1277;customApiDomain=_0x41ed26?.[_0x335db1(0x1ef)],customUserDomain=_0x41ed26?.[_0x335db1(0x1f1)],customRuntimeDomain=_0x41ed26?.[_0x335db1(0x1e2)],customSkillHubDomain=_0x41ed26?.[_0x335db1(0x1e9)];}export const getUserDomain=()=>customUserDomain||(isProduction(getEnv())?PRODUCT_CONFIG['domains'][a71_0x1b02c6(0x1e7)]['user']:PRODUCT_CONFIG[a71_0x1b02c6(0x1eb)][a71_0x1b02c6(0x1e4)]['user']);export const getApiDomain=()=>customApiDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a71_0x1b02c6(0x1eb)][a71_0x1b02c6(0x1e7)][a71_0x1b02c6(0x1ea)]:PRODUCT_CONFIG[a71_0x1b02c6(0x1eb)][a71_0x1b02c6(0x1e4)][a71_0x1b02c6(0x1ea)]);export const getRuntimeDomain=()=>customRuntimeDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a71_0x1b02c6(0x1eb)][a71_0x1b02c6(0x1e7)][a71_0x1b02c6(0x1f0)]:PRODUCT_CONFIG[a71_0x1b02c6(0x1eb)][a71_0x1b02c6(0x1e4)][a71_0x1b02c6(0x1f0)]);export const getSkillHubDomain=()=>customSkillHubDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a71_0x1b02c6(0x1eb)]['production']['skillhub']:PRODUCT_CONFIG[a71_0x1b02c6(0x1eb)][a71_0x1b02c6(0x1e4)]['skillhub']);
@@ -1 +1 @@
1
- const a72_0x20e4f2=a72_0x4f95;(function(_0x3116f1,_0x45bd7e){const _0x5254ca=a72_0x4f95,_0x108ff4=_0x3116f1();while(!![]){try{const _0x55726f=parseInt(_0x5254ca(0xab))/0x1*(-parseInt(_0x5254ca(0xb2))/0x2)+parseInt(_0x5254ca(0xae))/0x3*(-parseInt(_0x5254ca(0xb0))/0x4)+parseInt(_0x5254ca(0xb6))/0x5+-parseInt(_0x5254ca(0xb4))/0x6*(parseInt(_0x5254ca(0xb5))/0x7)+parseInt(_0x5254ca(0xb3))/0x8*(-parseInt(_0x5254ca(0xbb))/0x9)+-parseInt(_0x5254ca(0xb7))/0xa*(parseInt(_0x5254ca(0xb1))/0xb)+-parseInt(_0x5254ca(0xb8))/0xc*(-parseInt(_0x5254ca(0xba))/0xd);if(_0x55726f===_0x45bd7e)break;else _0x108ff4['push'](_0x108ff4['shift']());}catch(_0x413bdd){_0x108ff4['push'](_0x108ff4['shift']());}}}(a72_0x5045,0x62bc6));import{productEnv}from'../constant/product.js';export const RUNTIME_ENV_VALUES=['production',a72_0x20e4f2(0xad),a72_0x20e4f2(0xaa)];export function normalizeEnv(_0x23a130){const _0x3bb0ea=a72_0x20e4f2;return _0x23a130===_0x3bb0ea(0xac)?_0x3bb0ea(0xb9):_0x23a130;}export function isProduction(_0x54b302){const _0x38015d=a72_0x20e4f2;return normalizeEnv(_0x54b302)===_0x38015d(0xb9);}export function isDaily(_0x20bcbd){const _0x4af6a3=a72_0x20e4f2;return normalizeEnv(_0x20bcbd)===_0x4af6a3(0xaa);}export function isDev(_0x139622){const _0x58cdf5=a72_0x20e4f2,_0x4264f4=normalizeEnv(_0x139622);return _0x4264f4===_0x58cdf5(0xad)||_0x4264f4===_0x58cdf5(0xaf);}let env=normalizeEnv(productEnv('ENV')||a72_0x20e4f2(0xb9));export function getEnv(){return env;}function a72_0x4f95(_0x3ea6c6,_0x37d83d){_0x3ea6c6=_0x3ea6c6-0xaa;const _0x50453f=a72_0x5045();let _0x4f9522=_0x50453f[_0x3ea6c6];return _0x4f9522;}function a72_0x5045(){const _0x2b5e8a=['daily','15017sYRmvI','online','development','9auDOYq','dev','514540ccjBRw','15851lVygFW','10vProSt','32248WbUeQg','282oWlDan','33327wpNXIV','696080IyImnS','2570wWmIHD','664836HCFyNg','production','481iiNVwQ','1629sfJYJV'];a72_0x5045=function(){return _0x2b5e8a;};return a72_0x5045();}export function initEnv(_0x4db81d){env=normalizeEnv(_0x4db81d);}
1
+ function a72_0x1cf8(){const _0x5598ba=['28UKsBVd','2583506uBJPHk','10539240ZavcMF','dev','2208144DblpNR','52200vpukiV','production','ENV','development','6446036QjTMUt','1808RhvBZL','804nxHlFf','4713495zkHwFu','1cYodzh','5AbbEgP','178013cQBpAg','daily'];a72_0x1cf8=function(){return _0x5598ba;};return a72_0x1cf8();}const a72_0x2d5212=a72_0xfbd5;function a72_0xfbd5(_0x21dd62,_0x300547){_0x21dd62=_0x21dd62-0xc2;const _0x1cf832=a72_0x1cf8();let _0xfbd50c=_0x1cf832[_0x21dd62];return _0xfbd50c;}(function(_0x136edd,_0x139e89){const _0x38c1fb=a72_0xfbd5,_0xd66d1f=_0x136edd();while(!![]){try{const _0x5ed772=-parseInt(_0x38c1fb(0xc6))/0x1*(-parseInt(_0x38c1fb(0xcb))/0x2)+-parseInt(_0x38c1fb(0xc5))/0x3+parseInt(_0x38c1fb(0xc2))/0x4*(-parseInt(_0x38c1fb(0xc7))/0x5)+parseInt(_0x38c1fb(0xce))/0x6*(parseInt(_0x38c1fb(0xca))/0x7)+parseInt(_0x38c1fb(0xc3))/0x8*(parseInt(_0x38c1fb(0xcf))/0x9)+-parseInt(_0x38c1fb(0xcc))/0xa+parseInt(_0x38c1fb(0xc8))/0xb*(parseInt(_0x38c1fb(0xc4))/0xc);if(_0x5ed772===_0x139e89)break;else _0xd66d1f['push'](_0xd66d1f['shift']());}catch(_0x3b8c4d){_0xd66d1f['push'](_0xd66d1f['shift']());}}}(a72_0x1cf8,0xe12c8));import{productEnv}from'../constant/product.js';export const RUNTIME_ENV_VALUES=[a72_0x2d5212(0xd0),a72_0x2d5212(0xd2),'daily'];export function normalizeEnv(_0x2768f8){const _0x4885a4=a72_0x2d5212;return _0x2768f8==='online'?_0x4885a4(0xd0):_0x2768f8;}export function isProduction(_0x2ad41a){const _0x58ebdc=a72_0x2d5212;return normalizeEnv(_0x2ad41a)===_0x58ebdc(0xd0);}export function isDaily(_0x285dc0){const _0x2c37ed=a72_0x2d5212;return normalizeEnv(_0x285dc0)===_0x2c37ed(0xc9);}export function isDev(_0x5dcb62){const _0x2ed42c=a72_0x2d5212,_0xab4245=normalizeEnv(_0x5dcb62);return _0xab4245===_0x2ed42c(0xd2)||_0xab4245===_0x2ed42c(0xcd);}let env=normalizeEnv(productEnv(a72_0x2d5212(0xd1))||a72_0x2d5212(0xd0));export function getEnv(){return env;}export function initEnv(_0x1f513c){env=normalizeEnv(_0x1f513c);}
@@ -1 +1 @@
1
- const a73_0x58b272=a73_0x5d2c;(function(_0x72eda2,_0x4ca7f8){const _0x2bd202=a73_0x5d2c,_0x530ae8=_0x72eda2();while(!![]){try{const _0x535c12=parseInt(_0x2bd202(0x88))/0x1*(parseInt(_0x2bd202(0x7a))/0x2)+-parseInt(_0x2bd202(0x80))/0x3*(-parseInt(_0x2bd202(0x7d))/0x4)+-parseInt(_0x2bd202(0x7f))/0x5*(parseInt(_0x2bd202(0x86))/0x6)+parseInt(_0x2bd202(0x79))/0x7*(parseInt(_0x2bd202(0x81))/0x8)+-parseInt(_0x2bd202(0x7e))/0x9*(-parseInt(_0x2bd202(0x82))/0xa)+parseInt(_0x2bd202(0x7c))/0xb*(-parseInt(_0x2bd202(0x83))/0xc)+-parseInt(_0x2bd202(0x87))/0xd*(-parseInt(_0x2bd202(0x7b))/0xe);if(_0x535c12===_0x4ca7f8)break;else _0x530ae8['push'](_0x530ae8['shift']());}catch(_0x3d983a){_0x530ae8['push'](_0x530ae8['shift']());}}}(a73_0x50c3,0x3ca65));function a73_0x5d2c(_0x38d309,_0x5087b0){_0x38d309=_0x38d309-0x79;const _0x50c3de=a73_0x50c3();let _0x5d2ca0=_0x50c3de[_0x38d309];return _0x5d2ca0;}export const OUTPUT_FORMAT_VALUES=[a73_0x58b272(0x85),a73_0x58b272(0x84),'compress'];function a73_0x50c3(){const _0x3e3d2b=['52801PWHTib','484PYPKOf','210amDShC','121MtbWdz','191068XnpZWV','135rWRgOq','106105dUIgiF','3CyqBad','448dYdZWA','121410vQYyfM','422724PFzMfh','pretty','json','132LReVgh','357916jRpyHn','155WVuwmD'];a73_0x50c3=function(){return _0x3e3d2b;};return a73_0x50c3();}
1
+ function a73_0x33c7(){const _0x30b162=['17178uVrDVI','1494IKPpVp','4677SctULX','66610mczXZm','7498088OFVace','72299326XLZWiH','137222CSEktM','4424aCaAQH','2468QvdKOO','7611025DEOonU','pretty','18QJFFWU','compress'];a73_0x33c7=function(){return _0x30b162;};return a73_0x33c7();}const a73_0x340f4e=a73_0x2890;function a73_0x2890(_0x133286,_0x6e67c2){_0x133286=_0x133286-0x1d4;const _0x33c745=a73_0x33c7();let _0x2890b9=_0x33c745[_0x133286];return _0x2890b9;}(function(_0x28765b,_0x47f4f6){const _0x1e288d=a73_0x2890,_0xba9d49=_0x28765b();while(!![]){try{const _0x3e90c5=-parseInt(_0x1e288d(0x1d5))/0x1*(-parseInt(_0x1e288d(0x1dd))/0x2)+parseInt(_0x1e288d(0x1d9))/0x3*(parseInt(_0x1e288d(0x1df))/0x4)+parseInt(_0x1e288d(0x1e0))/0x5+parseInt(_0x1e288d(0x1d7))/0x6*(parseInt(_0x1e288d(0x1de))/0x7)+parseInt(_0x1e288d(0x1db))/0x8+-parseInt(_0x1e288d(0x1d8))/0x9*(-parseInt(_0x1e288d(0x1da))/0xa)+-parseInt(_0x1e288d(0x1dc))/0xb;if(_0x3e90c5===_0x47f4f6)break;else _0xba9d49['push'](_0xba9d49['shift']());}catch(_0x1e99c8){_0xba9d49['push'](_0xba9d49['shift']());}}}(a73_0x33c7,0xf3dbb));export const OUTPUT_FORMAT_VALUES=['json',a73_0x340f4e(0x1d4),a73_0x340f4e(0x1d6)];
@@ -1 +1 @@
1
- const a74_0xa38823=a74_0x88d4;(function(_0x3d9b04,_0xa98cb0){const _0x4b5982=a74_0x88d4,_0x67c5b1=_0x3d9b04();while(!![]){try{const _0x2ce521=parseInt(_0x4b5982(0x139))/0x1*(-parseInt(_0x4b5982(0x13b))/0x2)+-parseInt(_0x4b5982(0x149))/0x3*(parseInt(_0x4b5982(0x136))/0x4)+parseInt(_0x4b5982(0x13f))/0x5+parseInt(_0x4b5982(0x142))/0x6*(-parseInt(_0x4b5982(0x13e))/0x7)+parseInt(_0x4b5982(0x135))/0x8*(-parseInt(_0x4b5982(0x150))/0x9)+parseInt(_0x4b5982(0x148))/0xa+parseInt(_0x4b5982(0x151))/0xb;if(_0x2ce521===_0xa98cb0)break;else _0x67c5b1['push'](_0x67c5b1['shift']());}catch(_0x4a70a7){_0x67c5b1['push'](_0x67c5b1['shift']());}}}(a74_0x75ec,0xa214f));export const PRODUCT_CONFIG={'cliBinName':a74_0xa38823(0x134),'cliDisplayName':a74_0xa38823(0x140),'npmPackageName':'@lovrabet/lovrabet-cli','skillSource':a74_0xa38823(0x14b),'npmRegistryBaseUrl':a74_0xa38823(0x137),'envPrefix':'LOVRABET','legacyEnvPrefixes':[a74_0xa38823(0x146)],'configFileNames':[a74_0xa38823(0x13a),a74_0xa38823(0x14a)],'newConfigFileName':'.lovrabet.json','homeDirName':a74_0xa38823(0x143),'logFileName':a74_0xa38823(0x14c),'invokeSource':a74_0xa38823(0x13d),'userCenterDisplayName':a74_0xa38823(0x14f),'skipNpxSkillsEnvSuffix':'SKIP_NPX_SKILLS','domains':{'production':{'user':a74_0xa38823(0x14d),'api':a74_0xa38823(0x138),'runtime':'https://runtime.lovrabet.com','skillhub':a74_0xa38823(0x147)},'nonProduction':{'user':a74_0xa38823(0x141),'api':a74_0xa38823(0x144),'runtime':a74_0xa38823(0x145),'skillhub':a74_0xa38823(0x13c)}},'accessKeyCreatePath':a74_0xa38823(0x133)};function a74_0x88d4(_0x5b998a,_0x3d3d3d){_0x5b998a=_0x5b998a-0x133;const _0x75ecb4=a74_0x75ec();let _0x88d4de=_0x75ecb4[_0x5b998a];return _0x88d4de;}export function productEnvName(_0x4be66d){return PRODUCT_CONFIG['envPrefix']+'_'+_0x4be66d;}export function productEnvNames(_0x727b17){const _0x5f5d24=a74_0xa38823;return[productEnvName(_0x727b17),...PRODUCT_CONFIG[_0x5f5d24(0x14e)]['map'](_0x2cc551=>_0x2cc551+'_'+_0x727b17)];}export function productEnv(_0x25e0b5){for(const _0xeb92c2 of productEnvNames(_0x25e0b5)){const _0x18f320=process.env[_0xeb92c2];if(_0x18f320!==undefined)return _0x18f320;}return undefined;}function a74_0x75ec(){const _0x1ffe7d=['165468cVeNxL','.lovrabet','https://daily-api.lovrabet.com','https://daily-runtime.lovrabet.com','RABETBASE','https://skills.lovrabet.com','4464570htZNke','106956ayzThF','.lovrabetrc','lovrabet/lovrabet-cli','.lovrabet-runtime.log','https://user.lovrabet.com','legacyEnvPrefixes','Lovrabet\x20User\x20Center','9RtDHQo','17120356rRBIKM','/user/ak','lovrabet','1848440jZZdOi','16tjRpqH','https://registry.npmjs.org','https://api.lovrabet.com','110395JFLHAT','.lovrabet.json','14eQPJNO','https://skills-daily.lovrabet.com','cli:lovrabet-runtime','112HBOAeo','1243550Djehss','Lovrabet\x20Runtime\x20CLI','https://user-daily.lovrabet.com'];a74_0x75ec=function(){return _0x1ffe7d;};return a74_0x75ec();}
1
+ const a74_0x34d16f=a74_0x9084;function a74_0x9084(_0x1ff6ed,_0x7f17ec){_0x1ff6ed=_0x1ff6ed-0x1c1;const _0x59c143=a74_0x59c1();let _0x90846e=_0x59c143[_0x1ff6ed];return _0x90846e;}(function(_0x2431a1,_0xff8f38){const _0x5e87d5=a74_0x9084,_0xeacb09=_0x2431a1();while(!![]){try{const _0x3ff87a=parseInt(_0x5e87d5(0x1ce))/0x1*(-parseInt(_0x5e87d5(0x1cc))/0x2)+parseInt(_0x5e87d5(0x1e1))/0x3+parseInt(_0x5e87d5(0x1e3))/0x4*(-parseInt(_0x5e87d5(0x1c3))/0x5)+-parseInt(_0x5e87d5(0x1cd))/0x6*(parseInt(_0x5e87d5(0x1c5))/0x7)+-parseInt(_0x5e87d5(0x1da))/0x8+parseInt(_0x5e87d5(0x1df))/0x9*(parseInt(_0x5e87d5(0x1c4))/0xa)+parseInt(_0x5e87d5(0x1db))/0xb*(parseInt(_0x5e87d5(0x1ca))/0xc);if(_0x3ff87a===_0xff8f38)break;else _0xeacb09['push'](_0xeacb09['shift']());}catch(_0x4c909d){_0xeacb09['push'](_0xeacb09['shift']());}}}(a74_0x59c1,0xa2f88));export const PRODUCT_CONFIG={'cliBinName':a74_0x34d16f(0x1e2),'cliDisplayName':a74_0x34d16f(0x1cb),'npmPackageName':a74_0x34d16f(0x1d9),'skillSource':a74_0x34d16f(0x1d0),'npmRegistryBaseUrl':'https://registry.npmjs.org','envPrefix':a74_0x34d16f(0x1c8),'legacyEnvPrefixes':[a74_0x34d16f(0x1d1)],'configFileNames':[a74_0x34d16f(0x1de),a74_0x34d16f(0x1cf)],'newConfigFileName':'.lovrabet.json','homeDirName':'.lovrabet','logFileName':a74_0x34d16f(0x1d2),'invokeSource':a74_0x34d16f(0x1c6),'userCenterDisplayName':'Lovrabet\x20User\x20Center','skipNpxSkillsEnvSuffix':a74_0x34d16f(0x1e0),'domains':{'production':{'user':a74_0x34d16f(0x1c2),'api':a74_0x34d16f(0x1d3),'runtime':a74_0x34d16f(0x1c9),'skillhub':a74_0x34d16f(0x1dd)},'nonProduction':{'user':a74_0x34d16f(0x1d4),'api':a74_0x34d16f(0x1d7),'runtime':a74_0x34d16f(0x1d8),'skillhub':a74_0x34d16f(0x1c1)}},'accessKeyCreatePath':a74_0x34d16f(0x1d6)};export function productEnvName(_0x12189f){const _0x171912=a74_0x34d16f;return PRODUCT_CONFIG[_0x171912(0x1dc)]+'_'+_0x12189f;}export function productEnvNames(_0x1d5409){const _0x17abc4=a74_0x34d16f;return[productEnvName(_0x1d5409),...PRODUCT_CONFIG[_0x17abc4(0x1c7)][_0x17abc4(0x1d5)](_0x11a78a=>_0x11a78a+'_'+_0x1d5409)];}export function productEnv(_0x3a0bc4){for(const _0x53a617 of productEnvNames(_0x3a0bc4)){const _0x454e51=process.env[_0x53a617];if(_0x454e51!==undefined)return _0x454e51;}return undefined;}function a74_0x59c1(){const _0x492a62=['792082WbYyqC','24PIZhuB','1pcXEor','.lovrabetrc','lovrabet/lovrabet-cli','RABETBASE','.lovrabet-runtime.log','https://api.lovrabet.com','https://user-daily.lovrabet.com','map','/user/ak','https://daily-api.lovrabet.com','https://daily-runtime.lovrabet.com','@lovrabet/lovrabet-cli','510984xZUyFx','2919037pfQoHX','envPrefix','https://skills.lovrabet.com','.lovrabet.json','18auiMNQ','SKIP_NPX_SKILLS','3411084aVQExh','lovrabet','4auzFoR','https://skills-daily.lovrabet.com','https://user.lovrabet.com','5767535MtOiVa','4585230ZZUYkv','67361pUXwgo','cli:lovrabet-runtime','legacyEnvPrefixes','LOVRABET','https://runtime.lovrabet.com','12sGAQLJ','Lovrabet\x20Runtime\x20CLI'];a74_0x59c1=function(){return _0x492a62;};return a74_0x59c1();}
@@ -1 +1 @@
1
- const a75_0x4bcf21=a75_0x3697;(function(_0x5e11ce,_0x35ed6d){const _0x1da4d5=a75_0x3697,_0x5dda3c=_0x5e11ce();while(!![]){try{const _0x25b72d=-parseInt(_0x1da4d5(0x1d6))/0x1*(parseInt(_0x1da4d5(0x1ce))/0x2)+parseInt(_0x1da4d5(0x1d2))/0x3*(parseInt(_0x1da4d5(0x1d7))/0x4)+parseInt(_0x1da4d5(0x1d0))/0x5+-parseInt(_0x1da4d5(0x1da))/0x6*(parseInt(_0x1da4d5(0x1d5))/0x7)+parseInt(_0x1da4d5(0x1d8))/0x8*(parseInt(_0x1da4d5(0x1d1))/0x9)+-parseInt(_0x1da4d5(0x1d3))/0xa+parseInt(_0x1da4d5(0x1db))/0xb*(parseInt(_0x1da4d5(0x1cf))/0xc);if(_0x25b72d===_0x35ed6d)break;else _0x5dda3c['push'](_0x5dda3c['shift']());}catch(_0x5a24e3){_0x5dda3c['push'](_0x5dda3c['shift']());}}}(a75_0x497c,0x61a49));function a75_0x3697(_0x5a6f23,_0x36d4e3){_0x5a6f23=_0x5a6f23-0x1ce;const _0x497cdc=a75_0x497c();let _0x3697e7=_0x497cdc[_0x5a6f23];return _0x3697e7;}export const RISK_LEVEL_VALUES=[a75_0x4bcf21(0x1d4),a75_0x4bcf21(0x1d9),'high-risk-write'];function a75_0x497c(){const _0x49e557=['57370KKZaxb','259218MPVbqN','147TYGusZ','4786090RtSofX','read','301462NHaFbc','24109WFrFlG','10100xQjIuk','8IeakYU','write','66TLCYFS','110wJYaYz','58mncXMC','2264928vduBVv'];a75_0x497c=function(){return _0x49e557;};return a75_0x497c();}
1
+ function a75_0x5383(_0x513c67,_0x1b2060){_0x513c67=_0x513c67-0x110;const _0x2bc0f6=a75_0x2bc0();let _0x538396=_0x2bc0f6[_0x513c67];return _0x538396;}function a75_0x2bc0(){const _0x40c645=['14LsXgBA','high-risk-write','778416XpzDfR','3330825vOYHEX','read','6971532orCGRW','1682790IhKXjq','18134FtgaqB','1456636SGufhJ','40650tabByL','9855cJPovF','89LeURkZ'];a75_0x2bc0=function(){return _0x40c645;};return a75_0x2bc0();}const a75_0x2b7294=a75_0x5383;(function(_0x231caa,_0x3df714){const _0x16aacd=a75_0x5383,_0x403f36=_0x231caa();while(!![]){try{const _0x123281=-parseInt(_0x16aacd(0x119))/0x1*(parseInt(_0x16aacd(0x115))/0x2)+-parseInt(_0x16aacd(0x114))/0x3+-parseInt(_0x16aacd(0x116))/0x4+-parseInt(_0x16aacd(0x111))/0x5+-parseInt(_0x16aacd(0x113))/0x6+parseInt(_0x16aacd(0x11a))/0x7*(-parseInt(_0x16aacd(0x110))/0x8)+parseInt(_0x16aacd(0x118))/0x9*(parseInt(_0x16aacd(0x117))/0xa);if(_0x123281===_0x3df714)break;else _0x403f36['push'](_0x403f36['shift']());}catch(_0x2a96e0){_0x403f36['push'](_0x403f36['shift']());}}}(a75_0x2bc0,0xaa070));export const RISK_LEVEL_VALUES=[a75_0x2b7294(0x112),'write',a75_0x2b7294(0x11b)];
@@ -1 +1 @@
1
- const a76_0x5921fd=a76_0x2c93;function a76_0x2c93(_0x26ceed,_0x2d7fdf){_0x26ceed=_0x26ceed-0x15a;const _0x1e7ebf=a76_0x1e7e();let _0x2c9315=_0x1e7ebf[_0x26ceed];return _0x2c9315;}(function(_0x1722a6,_0x11d416){const _0x437467=a76_0x2c93,_0xfc2f77=_0x1722a6();while(!![]){try{const _0x1d87e6=parseInt(_0x437467(0x15e))/0x1*(parseInt(_0x437467(0x15d))/0x2)+parseInt(_0x437467(0x161))/0x3+parseInt(_0x437467(0x15a))/0x4*(-parseInt(_0x437467(0x15b))/0x5)+parseInt(_0x437467(0x164))/0x6+-parseInt(_0x437467(0x162))/0x7+parseInt(_0x437467(0x15c))/0x8*(parseInt(_0x437467(0x163))/0x9)+parseInt(_0x437467(0x165))/0xa*(parseInt(_0x437467(0x15f))/0xb);if(_0x1d87e6===_0x11d416)break;else _0xfc2f77['push'](_0xfc2f77['shift']());}catch(_0x2a4e9a){_0xfc2f77['push'](_0xfc2f77['shift']());}}}(a76_0x1e7e,0xc69df));import{PRODUCT_CONFIG}from'../constant/product.js';function a76_0x1e7e(){const _0x5cb364=['27cnIQUG','2278908GjtWKM','10NjbhdP','accessKeyCreatePath','3598224gqdjva','5BYBTrt','3140104upYIcZ','367918jPJBsx','4VmbZjq','1086173VxTlbq','production','1041207CVjzMn','7181398aEIXGA'];a76_0x1e7e=function(){return _0x5cb364;};return a76_0x1e7e();}export const USER_ACCESS_KEY_CREATE_URL=''+PRODUCT_CONFIG['domains'][a76_0x5921fd(0x160)]['user']+PRODUCT_CONFIG[a76_0x5921fd(0x166)];
1
+ const a76_0x39510c=a76_0x2497;(function(_0x4fb90f,_0x5f2ef2){const _0x4c9241=a76_0x2497,_0x1a35ed=_0x4fb90f();while(!![]){try{const _0x665955=-parseInt(_0x4c9241(0x1d2))/0x1+-parseInt(_0x4c9241(0x1db))/0x2*(-parseInt(_0x4c9241(0x1ce))/0x3)+-parseInt(_0x4c9241(0x1d3))/0x4+parseInt(_0x4c9241(0x1d4))/0x5*(-parseInt(_0x4c9241(0x1d0))/0x6)+parseInt(_0x4c9241(0x1d5))/0x7+-parseInt(_0x4c9241(0x1d8))/0x8*(parseInt(_0x4c9241(0x1da))/0x9)+parseInt(_0x4c9241(0x1cf))/0xa;if(_0x665955===_0x5f2ef2)break;else _0x1a35ed['push'](_0x1a35ed['shift']());}catch(_0x518ce5){_0x1a35ed['push'](_0x1a35ed['shift']());}}}(a76_0x15fe,0xf3d1a));function a76_0x15fe(){const _0x272478=['6xabqeF','13518590ZPIDXm','6TIaJfU','user','609833EhsbDx','3687080KGllRg','725330KGhHqg','1562988lnwWsF','accessKeyCreatePath','production','172712wbvrEa','domains','90eDYQCW','1316098vXVMgy'];a76_0x15fe=function(){return _0x272478;};return a76_0x15fe();}function a76_0x2497(_0x44033d,_0x10be5b){_0x44033d=_0x44033d-0x1ce;const _0x15fe4b=a76_0x15fe();let _0x2497f6=_0x15fe4b[_0x44033d];return _0x2497f6;}import{PRODUCT_CONFIG}from'../constant/product.js';export const USER_ACCESS_KEY_CREATE_URL=''+PRODUCT_CONFIG[a76_0x39510c(0x1d9)][a76_0x39510c(0x1d7)][a76_0x39510c(0x1d1)]+PRODUCT_CONFIG[a76_0x39510c(0x1d6)];
package/lib/context.js CHANGED
@@ -1 +1 @@
1
- const a77_0x470df1=a77_0x5591;(function(_0x3c522,_0x5d1a14){const _0x45b742=a77_0x5591,_0x2cfc5b=_0x3c522();while(!![]){try{const _0x27378d=parseInt(_0x45b742(0xe7))/0x1+parseInt(_0x45b742(0xda))/0x2*(-parseInt(_0x45b742(0xc0))/0x3)+-parseInt(_0x45b742(0xd4))/0x4+parseInt(_0x45b742(0xe8))/0x5+parseInt(_0x45b742(0xa5))/0x6*(-parseInt(_0x45b742(0xdd))/0x7)+-parseInt(_0x45b742(0xb6))/0x8*(parseInt(_0x45b742(0xe2))/0x9)+parseInt(_0x45b742(0xe4))/0xa;if(_0x27378d===_0x5d1a14)break;else _0x2cfc5b['push'](_0x2cfc5b['shift']());}catch(_0x195e98){_0x2cfc5b['push'](_0x2cfc5b['shift']());}}}(a77_0x569d,0xe9574));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_0x470df1(0xde)];export const NEW_CONFIG_NAME=PRODUCT_CONFIG[a77_0x470df1(0xa7)];function resolveConfigPath(_0x168213){for(const _0x5dafc3 of CONFIG_NAMES){const _0x2bbe87=resolve(_0x168213,_0x5dafc3);if(existsSync(_0x2bbe87))return _0x2bbe87;}return undefined;}function a77_0x5591(_0x4f127c,_0x49dc0f){_0x4f127c=_0x4f127c-0xa4;const _0x569d67=a77_0x569d();let _0x5591d3=_0x569d67[_0x4f127c];return _0x5591d3;}export function resolveWriteConfigPath(_0x4a629e){const _0x5a885b=a77_0x470df1,_0x285334=_0x4a629e===_0x5a885b(0xad)?process[_0x5a885b(0xd1)]():homedir(),_0x42b70d=resolveConfigPath(_0x285334);return _0x42b70d??resolve(_0x285334,NEW_CONFIG_NAME);}export function readConfigFile(_0x1f7bea){const _0x574854=a77_0x470df1;try{if(existsSync(_0x1f7bea)){const _0x21d5a2=readFileSync(_0x1f7bea,{'encoding':'utf8'});if(_0x21d5a2){const _0x2611da=JSON[_0x574854(0xd9)](_0x21d5a2);return migrateOnlineEnv(_0x1f7bea,_0x2611da),_0x2611da;}}}catch{}return{};}function migrateOnlineEnv(_0x122bc0,_0x39bc52){const _0x112c57=a77_0x470df1;let _0xfd9345=![];_0x39bc52[_0x112c57(0xa4)]===_0x112c57(0xae)&&(_0x39bc52[_0x112c57(0xa4)]=_0x112c57(0xeb),_0xfd9345=!![]);if(_0x39bc52[_0x112c57(0xe9)]&&typeof _0x39bc52[_0x112c57(0xe9)]===_0x112c57(0xac))for(const _0x36d5cf of Object[_0x112c57(0xd2)](_0x39bc52[_0x112c57(0xe9)])){_0x36d5cf&&_0x36d5cf[_0x112c57(0xa4)]===_0x112c57(0xae)&&(_0x36d5cf['env']=_0x112c57(0xeb),_0xfd9345=!![]);}if(_0xfd9345)try{writeConfigFile(_0x122bc0,_0x39bc52);}catch{}}export function writeConfigFile(_0x40ec11,_0x291b46){const _0x1369ed=a77_0x470df1,_0x4adf35=dirname(_0x40ec11);!existsSync(_0x4adf35)&&mkdirSync(_0x4adf35,{'recursive':!![]});const _0x81f138=_0x40ec11+_0x1369ed(0xb1);try{writeFileSync(_0x81f138,JSON['stringify'](_0x291b46,null,0x2)+'\x0a',{'encoding':_0x1369ed(0xbd),'mode':0x180});try{renameSync(_0x81f138,_0x40ec11);}catch(_0x23da56){if(_0x23da56[_0x1369ed(0xc3)]==='EPERM'||_0x23da56[_0x1369ed(0xc3)]==='EXDEV'||_0x23da56['code']===_0x1369ed(0xbc)){writeFileSync(_0x40ec11,JSON['stringify'](_0x291b46,null,0x2)+'\x0a',{'encoding':_0x1369ed(0xbd)});try{unlinkSync(_0x81f138);}catch{}}else throw _0x23da56;}}catch(_0x37139a){try{unlinkSync(_0x81f138);}catch{}throw _0x37139a;}}export function isNonInteractiveMode(_0x1276a0){const _0x1cbb40=a77_0x470df1;return!!(_0x1276a0[_0x1cbb40(0xc2)]||_0x1276a0['ci']||productEnvNames('CI')[_0x1cbb40(0xb9)](_0x5eb9c2=>process.env[_0x5eb9c2]===_0x1cbb40(0xb3))||process.env.CI===_0x1cbb40(0xb3)||!process[_0x1cbb40(0xc7)][_0x1cbb40(0xab)]||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x553ca7=a77_0x470df1;if(!process[_0x553ca7(0xcb)][_0x553ca7(0xab)])return![];try{const _0xee2578=process['stdin']['isRaw'];return process['stdin']['setRawMode'](!![]),process[_0x553ca7(0xcb)][_0x553ca7(0xba)](_0xee2578??![]),!![];}catch{return![];}}export async function createContext(_0x22ba36){const _0x296c17=a77_0x470df1,_0xd762a7=readRawConfig(),_0x53fd28=buildConfig(_0xd762a7,_0x22ba36);await initGlobalEnvironment(_0x53fd28);const {getUserDomain:_0x58c46b,getApiDomain:_0x44e31f}=await import(_0x296c17(0xb4)),_0x49a2f1={'apiDomain':_0x44e31f(),'userDomain':_0x58c46b()},_0x4b1117=await buildAuth(_0x53fd28);logger[_0x296c17(0xc5)](process['cwd']());const _0x22d7cb=(CLI_BIN_NAME+'\x20'+process['argv'][_0x296c17(0xe0)](0x2)[_0x296c17(0xd8)]('\x20'))['trim']();logger[_0x296c17(0xaa)](_0x22d7cb);const _0x7aa8cf=isNonInteractiveMode(_0x22ba36);return{'config':_0x53fd28,'auth':_0x4b1117,'logger':logger,'env':_0x49a2f1,'nonInteractive':_0x7aa8cf};}export function buildConfigFromFlags(_0x2a355c){return buildConfig(readRawConfig(),_0x2a355c);}export function getLocalAppAliases(_0x6f5df8){const _0x432000=a77_0x470df1;return _0x6f5df8[_0x432000(0xe9)]&&typeof _0x6f5df8['apps']===_0x432000(0xac)?_0x6f5df8[_0x432000(0xe9)]:{};}export function resolveLocalAppAliasCode(_0x2e1c8d,_0x47b838){const _0x5a56b2=a77_0x470df1;if(!_0x47b838)return undefined;const _0x3401ae=getLocalAppAliases(_0x2e1c8d)[_0x47b838],_0x1223f0=_0x3401ae?.[_0x5a56b2(0xb7)];return typeof _0x1223f0===_0x5a56b2(0xdc)&&_0x1223f0[_0x5a56b2(0xd5)]()?_0x1223f0['trim']():undefined;}export function readAppCodeFromConfig(){const _0x14a73d=a77_0x470df1,_0x1b8b17=readRawConfig(),_0xab82e=_0x1b8b17['appcode']??_0x1b8b17[_0x14a73d(0xea)];if(typeof _0xab82e===_0x14a73d(0xdc)&&_0xab82e[_0x14a73d(0xd5)]())return _0xab82e[_0x14a73d(0xd5)]();const _0x3b033d=resolveLocalAppAliasCode(_0x1b8b17,typeof _0x1b8b17[_0x14a73d(0xb8)]===_0x14a73d(0xdc)?_0x1b8b17['defaultApp']:undefined);if(_0x3b033d)return _0x3b033d;const _0x3dd507=normalizeEnv(String(_0x1b8b17[_0x14a73d(0xa4)]||_0x14a73d(0xeb))),_0xa2a278=isDaily(_0x3dd507)?_0x14a73d(0xdb):isDev(_0x3dd507)?_0x14a73d(0xb5):_0x14a73d(0xeb),_0xc05ba8=resolveCachedAppCode(typeof _0x1b8b17[_0x14a73d(0xb8)]===_0x14a73d(0xdc)?_0x1b8b17[_0x14a73d(0xb8)]:undefined,_0xa2a278,typeof _0x1b8b17[_0x14a73d(0xd6)]==='string'?_0x1b8b17[_0x14a73d(0xd6)]:undefined);if(_0xc05ba8)return _0xc05ba8;const _0x4150ab=Object[_0x14a73d(0xd2)](getLocalAppAliases(_0x1b8b17))['find'](_0x288c73=>_0x288c73?.[_0x14a73d(0xb7)]);return typeof _0x4150ab?.['appcode']===_0x14a73d(0xdc)&&_0x4150ab[_0x14a73d(0xb7)][_0x14a73d(0xd5)]()?_0x4150ab[_0x14a73d(0xb7)][_0x14a73d(0xd5)]():undefined;}export function readScopedConfig(_0x1ad705){const _0x55f686=a77_0x470df1,_0x155f68=_0x1ad705[_0x55f686(0xe5)]?_0x55f686(0xe5):_0x55f686(0xad);return readConfigFile(resolveWriteConfigPath(_0x155f68));}export function writeScopedConfig(_0x175eb7,_0x12d149){const _0x3232eb=a77_0x470df1,_0x136207=_0x12d149[_0x3232eb(0xe5)]?_0x3232eb(0xe5):_0x3232eb(0xad);writeConfigFile(resolveWriteConfigPath(_0x136207),_0x175eb7);}export async function initGlobalEnvironment(_0x5e701a){const _0x36b136=a77_0x470df1,{initEnv:_0x3f0e55}=await import('./constant/env.js');_0x3f0e55(_0x5e701a['env']);const {initDomains:_0x2a760f}=await import(_0x36b136(0xb4));_0x2a760f({'apiDomain':_0x5e701a[_0x36b136(0xe1)][_0x36b136(0xb2)]||_0x5e701a['raw']['host']||undefined,'userDomain':_0x5e701a['raw'][_0x36b136(0xc6)]||undefined,'runtimeDomain':_0x5e701a[_0x36b136(0xe1)]['runtimeDomain']||undefined,'skillHubDomain':_0x5e701a[_0x36b136(0xe1)][_0x36b136(0xaf)]||undefined});}export function getProjectConfigPath(){return resolveConfigPath(process['cwd']());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function inspectCliConfigJsonFile(_0x12e2e3){const _0x3ab285=a77_0x470df1;if(!existsSync(_0x12e2e3))return{'status':_0x3ab285(0xb0)};try{const _0x47dcd9=readFileSync(_0x12e2e3,{'encoding':_0x3ab285(0xbd)});if(!_0x47dcd9?.[_0x3ab285(0xd5)]())return{'status':_0x3ab285(0xbb)};const _0x1ebc5d=JSON[_0x3ab285(0xd9)](_0x47dcd9);return{'status':'ok','data':_0x1ebc5d};}catch(_0x21fe1b){return{'status':_0x3ab285(0xdf),'message':_0x21fe1b instanceof Error?_0x21fe1b[_0x3ab285(0xcc)]:String(_0x21fe1b)};}}function a77_0x569d(){const _0x35f090=['slice','raw','54IGkMfK','VERBOSE','35588910KyVLJk','global','APP','209348YmJfqb','5118970hgIUny','apps','app','production','env','114kTAkCj','authRequired','newConfigFileName','read','local-alias','setRawCommand','isTTY','object','project','online','skillHubDomain','missing','.tmp','apiDomain','true','./constant/domain.js','development','611824AhBPVP','appcode','defaultApp','some','setRawMode','empty','EACCES','utf8','cache','riskLevel','3lRUJhN','write','nonInteractive','code','pageSize','setLogPath','userDomain','stdout','locale','explicit','APPCODE','stdin','message','projectConfig','inherit','PAGE_SIZE','globalConfig','cwd','values','top-level','5061692dQgxEP','trim','accessKey','ACCESS_KEY','join','parse','1506082ZGCmwi','daily','string','500661iDlDJV','configFileNames','error'];a77_0x569d=function(){return _0x35f090;};return a77_0x569d();}export function loadRawConfigLayers(_0x4d46f3){const _0x3db999=a77_0x470df1;let _0x2f4883={},_0x148bca={},_0x22399a,_0x2b61f9;try{_0x22399a=resolveConfigPath(homedir());if(_0x22399a){const _0x114dc0=readFileSync(_0x22399a,{'encoding':'utf8'});if(_0x114dc0)_0x2f4883=JSON['parse'](_0x114dc0);}}catch{}try{const _0x5beb92=_0x4d46f3||process[_0x3db999(0xd1)]();_0x2b61f9=resolveConfigPath(_0x5beb92);if(_0x2b61f9){const _0x40769e=readFileSync(_0x2b61f9,{'encoding':'utf8'});if(_0x40769e)_0x148bca=JSON[_0x3db999(0xd9)](_0x40769e);}}catch{}return{'globalPath':_0x22399a,'projectPath':_0x2b61f9,'globalConfig':_0x2f4883,'projectConfig':_0x148bca};}function mergeRawConfigLayers(_0x2f66bc){const _0x5da245=a77_0x470df1,{globalConfig:_0xf0c4f5,projectConfig:_0x2767a2}=_0x2f66bc;if(_0x2767a2[_0x5da245(0xce)]===![]){const _0xa7b7d9={..._0x2767a2};return delete _0xa7b7d9[_0x5da245(0xce)],_0xa7b7d9;}const _0x6ec487={..._0xf0c4f5,..._0x2767a2};if(_0x5da245(0xb8)in _0x2767a2)_0x6ec487[_0x5da245(0xb8)]=_0x2767a2[_0x5da245(0xb8)];else _0xf0c4f5[_0x5da245(0xb8)]&&(_0x6ec487[_0x5da245(0xb8)]=_0xf0c4f5['defaultApp']);return _0x6ec487;}export function isInProject(){return!!getProjectConfigPath();}export function readRawConfig(_0x360faf){return mergeRawConfigLayers(loadRawConfigLayers(_0x360faf));}export function readRawConfigWithLayers(_0x4f40c2){const _0x5181c9=loadRawConfigLayers(_0x4f40c2);return{'config':mergeRawConfigLayers(_0x5181c9),'layers':_0x5181c9};}export function resolveDefaultAppSource(_0x5a8f53){const _0x8e2bdf=a77_0x470df1;if(_0x8e2bdf(0xb8)in _0x5a8f53[_0x8e2bdf(0xcd)])return _0x8e2bdf(0xad);if(_0x5a8f53['projectConfig'][_0x8e2bdf(0xce)]===![])return null;if(_0x5a8f53[_0x8e2bdf(0xd0)][_0x8e2bdf(0xb8)])return _0x8e2bdf(0xe5);return null;}function buildConfig(_0x5a0a43,_0x1da0e1){const _0x5ce8a4=a77_0x470df1,_0x3d68fb=_0x5a0a43['defaultApp']||undefined,_0x2e22cb=_0x1da0e1[_0x5ce8a4(0xea)]||env(_0x5ce8a4(0xe6))||undefined,_0x40544d=_0x2e22cb||_0x3d68fb||undefined,_0x4e6e6d=env(_0x5ce8a4(0xd7))||_0x5a0a43[_0x5ce8a4(0xd6)]||undefined,_0x3b8c45=_0x1da0e1[_0x5ce8a4(0xa4)]||env('ENV')||_0x5a0a43[_0x5ce8a4(0xa4)]||DEFAULT_CONFIG_VALUES[_0x5ce8a4(0xa4)],_0x5e83ec=normalizeEnv(String(_0x3b8c45)),_0x4b188d=isDaily(_0x5e83ec)?'daily':isDev(_0x5e83ec)?'development':_0x5ce8a4(0xeb),_0x24bb9d=typeof _0x1da0e1['appcode']===_0x5ce8a4(0xdc)?_0x1da0e1['appcode']:undefined,_0x4b9983=env(_0x5ce8a4(0xca)),_0x59aab=_0x2e22cb?undefined:_0x5a0a43[_0x5ce8a4(0xb7)]||_0x5a0a43[_0x5ce8a4(0xea)]||undefined,_0x312ac2=_0x2e22cb||(_0x59aab?undefined:_0x3d68fb),_0x344ec0=resolveLocalAppAliasCode(_0x5a0a43,_0x312ac2),_0x302834=resolveCachedAppCode(_0x312ac2,_0x4b188d,_0x4e6e6d),_0x530728=_0x24bb9d||_0x4b9983||_0x59aab||_0x344ec0||_0x302834||undefined,_0x37738d=_0x24bb9d?_0x5ce8a4(0xc9):_0x4b9983?_0x5ce8a4(0xa4):_0x59aab?_0x5ce8a4(0xd3):_0x344ec0?_0x5ce8a4(0xa9):_0x302834?_0x5ce8a4(0xbe):undefined,_0x266207=_0x5a0a43[_0x5ce8a4(0xc8)]||DEFAULT_CONFIG_VALUES[_0x5ce8a4(0xc8)],_0x5ececf=undefined,_0x27cd22=_0x1da0e1['format']||env('FORMAT')||_0x5a0a43['format'],_0x1a63e1=normalizeLegacyOutputFormat(_0x27cd22),_0x408443=env(_0x5ce8a4(0xcf))||_0x5a0a43[_0x5ce8a4(0xc4)],_0x300999=_0x408443?Number(_0x408443)||undefined:undefined,_0x316892=_0x5a0a43[_0x5ce8a4(0xbf)]||_0x5a0a43['maxRisk'],_0xe83d38=_0x316892===_0x5ce8a4(0xa8)||_0x316892===_0x5ce8a4(0xc1)||_0x316892==='high-risk-write'?_0x316892:DEFAULT_CONFIG_VALUES[_0x5ce8a4(0xbf)],_0x4fbc05=env(_0x5ce8a4(0xe3)),_0xd68af3=_0x4fbc05==='1'||_0x4fbc05===_0x5ce8a4(0xb3);return{'appCode':typeof _0x530728==='string'&&_0x530728[_0x5ce8a4(0xd5)]()?_0x530728[_0x5ce8a4(0xd5)]():undefined,'appCodeSource':_0x37738d,'env':_0x4b188d,'locale':_0x266207,'cookie':_0x5ececf,'accessKey':_0x4e6e6d,'format':_0x1a63e1,'pageSize':_0x300999,'riskLevel':_0xe83d38,'verbose':_0xd68af3,'defaultApp':_0x3d68fb,'currentApp':typeof _0x40544d===_0x5ce8a4(0xdc)?_0x40544d:undefined,'raw':_0x5a0a43};}function env(_0x5e0163){return productEnv(_0x5e0163);}async function buildAuth(_0x5a3827){const _0x320a9a=a77_0x470df1,_0x385f11='',_0x41410b=!!_0x5a3827[_0x320a9a(0xd6)];return{'cookie':_0x385f11,'isLoggedIn':_0x41410b,async 'getOrLogin'(){const _0x4a1151=_0x320a9a;if(_0x41410b)return _0x385f11;throw CliErrors[_0x4a1151(0xa6)]();}};}
1
+ const a77_0x3efaaa=a77_0x504a;(function(_0x2b5370,_0x3b462d){const _0x16f9fc=a77_0x504a,_0x411704=_0x2b5370();while(!![]){try{const _0x411bed=parseInt(_0x16f9fc(0x181))/0x1+-parseInt(_0x16f9fc(0x1a6))/0x2+parseInt(_0x16f9fc(0x1ab))/0x3*(parseInt(_0x16f9fc(0x189))/0x4)+parseInt(_0x16f9fc(0x1b7))/0x5*(-parseInt(_0x16f9fc(0x18c))/0x6)+-parseInt(_0x16f9fc(0x1a2))/0x7*(-parseInt(_0x16f9fc(0x1ad))/0x8)+-parseInt(_0x16f9fc(0x1b8))/0x9*(parseInt(_0x16f9fc(0x1ba))/0xa)+-parseInt(_0x16f9fc(0x18a))/0xb*(-parseInt(_0x16f9fc(0x191))/0xc);if(_0x411bed===_0x3b462d)break;else _0x411704['push'](_0x411704['shift']());}catch(_0x4aae93){_0x411704['push'](_0x411704['shift']());}}}(a77_0x5bde,0x805c7));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_0x3efaaa(0x1bd)];export const NEW_CONFIG_NAME=PRODUCT_CONFIG[a77_0x3efaaa(0x1a3)];function a77_0x5bde(){const _0x40deb5=['globalConfig','local-alias','string','cwd','missing','ACCESS_KEY','4DITKwH','319gEpyGv','global','132OaNbPS','message','code','project','setRawCommand','208188jcyouY','defaultApp','utf8','trim','find','env','FORMAT','EPERM','daily','APP','parse','stdin','accessKey','apiDomain','.tmp','raw','development','14WhVjvh','newConfigFileName','./constant/domain.js','error','335638REKOQD','riskLevel','argv','runtimeDomain','isRaw','1878117JLpGNa','inherit','1568872tnCrbU','EXDEV','locale','slice','values','appcode','explicit','stringify','isTTY','skillHubDomain','236245ryfXmZ','117mtPELp','app','541870DUBAtl','VERBOSE','apps','configFileNames','format','high-risk-write','true','cache','object','nonInteractive','join','setRawMode','PAGE_SIZE','916117YColyk','production'];a77_0x5bde=function(){return _0x40deb5;};return a77_0x5bde();}function resolveConfigPath(_0x32bc82){for(const _0x3dad8b of CONFIG_NAMES){const _0x33f391=resolve(_0x32bc82,_0x3dad8b);if(existsSync(_0x33f391))return _0x33f391;}return undefined;}export function resolveWriteConfigPath(_0x184a7a){const _0x57665a=a77_0x3efaaa,_0x3f268d=_0x184a7a===_0x57665a(0x18f)?process['cwd']():homedir(),_0x8854fa=resolveConfigPath(_0x3f268d);return _0x8854fa??resolve(_0x3f268d,NEW_CONFIG_NAME);}export function readConfigFile(_0x1d9e79){const _0x1044f1=a77_0x3efaaa;try{if(existsSync(_0x1d9e79)){const _0x488e56=readFileSync(_0x1d9e79,{'encoding':_0x1044f1(0x193)});if(_0x488e56){const _0x2d489a=JSON['parse'](_0x488e56);return migrateOnlineEnv(_0x1d9e79,_0x2d489a),_0x2d489a;}}}catch{}return{};}function migrateOnlineEnv(_0x35e25c,_0x5dce64){const _0x4e1988=a77_0x3efaaa;let _0x27d456=![];_0x5dce64[_0x4e1988(0x196)]==='online'&&(_0x5dce64[_0x4e1988(0x196)]='production',_0x27d456=!![]);if(_0x5dce64['apps']&&typeof _0x5dce64['apps']===_0x4e1988(0x1c2))for(const _0x1316be of Object[_0x4e1988(0x1b1)](_0x5dce64[_0x4e1988(0x1bc)])){_0x1316be&&_0x1316be[_0x4e1988(0x196)]==='online'&&(_0x1316be[_0x4e1988(0x196)]=_0x4e1988(0x182),_0x27d456=!![]);}if(_0x27d456)try{writeConfigFile(_0x35e25c,_0x5dce64);}catch{}}export function writeConfigFile(_0x3009da,_0x2c2d63){const _0x4c5cd7=a77_0x3efaaa,_0x1a20b6=dirname(_0x3009da);!existsSync(_0x1a20b6)&&mkdirSync(_0x1a20b6,{'recursive':!![]});const _0x494414=_0x3009da+_0x4c5cd7(0x19f);try{writeFileSync(_0x494414,JSON[_0x4c5cd7(0x1b4)](_0x2c2d63,null,0x2)+'\x0a',{'encoding':_0x4c5cd7(0x193),'mode':0x180});try{renameSync(_0x494414,_0x3009da);}catch(_0x5cd8a5){if(_0x5cd8a5[_0x4c5cd7(0x18e)]===_0x4c5cd7(0x198)||_0x5cd8a5[_0x4c5cd7(0x18e)]===_0x4c5cd7(0x1ae)||_0x5cd8a5[_0x4c5cd7(0x18e)]==='EACCES'){writeFileSync(_0x3009da,JSON[_0x4c5cd7(0x1b4)](_0x2c2d63,null,0x2)+'\x0a',{'encoding':'utf8'});try{unlinkSync(_0x494414);}catch{}}else throw _0x5cd8a5;}}catch(_0x31f7d3){try{unlinkSync(_0x494414);}catch{}throw _0x31f7d3;}}export function isNonInteractiveMode(_0xd2b7ab){const _0x3c754f=a77_0x3efaaa;return!!(_0xd2b7ab[_0x3c754f(0x17d)]||_0xd2b7ab['ci']||productEnvNames('CI')['some'](_0xe42be4=>process.env[_0xe42be4]===_0x3c754f(0x1c0))||process.env.CI===_0x3c754f(0x1c0)||!process['stdout']['isTTY']||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x2f5cf9=a77_0x3efaaa;if(!process['stdin'][_0x2f5cf9(0x1b5)])return![];try{const _0x44a575=process['stdin'][_0x2f5cf9(0x1aa)];return process[_0x2f5cf9(0x19c)][_0x2f5cf9(0x17f)](!![]),process[_0x2f5cf9(0x19c)][_0x2f5cf9(0x17f)](_0x44a575??![]),!![];}catch{return![];}}export async function createContext(_0x27b0c9){const _0x4deba9=a77_0x3efaaa,_0x1ce201=readRawConfig(),_0x110c9c=buildConfig(_0x1ce201,_0x27b0c9);await initGlobalEnvironment(_0x110c9c);const {getUserDomain:_0x40069c,getApiDomain:_0x1fb19f}=await import(_0x4deba9(0x1a4)),_0xa91aa8={'apiDomain':_0x1fb19f(),'userDomain':_0x40069c()},_0x1cfd15=await buildAuth(_0x110c9c);logger['setLogPath'](process['cwd']());const _0x31cc2e=(CLI_BIN_NAME+'\x20'+process[_0x4deba9(0x1a8)][_0x4deba9(0x1b0)](0x2)[_0x4deba9(0x17e)]('\x20'))[_0x4deba9(0x194)]();logger[_0x4deba9(0x190)](_0x31cc2e);const _0x1e9179=isNonInteractiveMode(_0x27b0c9);return{'config':_0x110c9c,'auth':_0x1cfd15,'logger':logger,'env':_0xa91aa8,'nonInteractive':_0x1e9179};}export function buildConfigFromFlags(_0x59f751){return buildConfig(readRawConfig(),_0x59f751);}export function getLocalAppAliases(_0x4d41b3){const _0x511cf9=a77_0x3efaaa;return _0x4d41b3[_0x511cf9(0x1bc)]&&typeof _0x4d41b3[_0x511cf9(0x1bc)]===_0x511cf9(0x1c2)?_0x4d41b3['apps']:{};}export function resolveLocalAppAliasCode(_0x1fd0be,_0x23dd09){const _0x13500b=a77_0x3efaaa;if(!_0x23dd09)return undefined;const _0x48bcdb=getLocalAppAliases(_0x1fd0be)[_0x23dd09],_0x1a7b21=_0x48bcdb?.[_0x13500b(0x1b2)];return typeof _0x1a7b21==='string'&&_0x1a7b21[_0x13500b(0x194)]()?_0x1a7b21['trim']():undefined;}export function readAppCodeFromConfig(){const _0x5be503=a77_0x3efaaa,_0x17bd17=readRawConfig(),_0x8f45d9=_0x17bd17[_0x5be503(0x1b2)]??_0x17bd17[_0x5be503(0x1b9)];if(typeof _0x8f45d9==='string'&&_0x8f45d9[_0x5be503(0x194)]())return _0x8f45d9[_0x5be503(0x194)]();const _0x366c9e=resolveLocalAppAliasCode(_0x17bd17,typeof _0x17bd17[_0x5be503(0x192)]==='string'?_0x17bd17[_0x5be503(0x192)]:undefined);if(_0x366c9e)return _0x366c9e;const _0xf559b1=normalizeEnv(String(_0x17bd17[_0x5be503(0x196)]||_0x5be503(0x182))),_0x1e9d68=isDaily(_0xf559b1)?_0x5be503(0x199):isDev(_0xf559b1)?_0x5be503(0x1a1):_0x5be503(0x182),_0x1b1e25=resolveCachedAppCode(typeof _0x17bd17[_0x5be503(0x192)]===_0x5be503(0x185)?_0x17bd17[_0x5be503(0x192)]:undefined,_0x1e9d68,typeof _0x17bd17['accessKey']==='string'?_0x17bd17['accessKey']:undefined);if(_0x1b1e25)return _0x1b1e25;const _0x285cf7=Object[_0x5be503(0x1b1)](getLocalAppAliases(_0x17bd17))[_0x5be503(0x195)](_0x1cae0b=>_0x1cae0b?.[_0x5be503(0x1b2)]);return typeof _0x285cf7?.[_0x5be503(0x1b2)]===_0x5be503(0x185)&&_0x285cf7[_0x5be503(0x1b2)][_0x5be503(0x194)]()?_0x285cf7[_0x5be503(0x1b2)]['trim']():undefined;}function a77_0x504a(_0x26866e,_0x2dbebe){_0x26866e=_0x26866e-0x17d;const _0x5bdee2=a77_0x5bde();let _0x504a7f=_0x5bdee2[_0x26866e];return _0x504a7f;}export function readScopedConfig(_0x539132){const _0x1198e0=a77_0x3efaaa,_0x6b1f22=_0x539132['global']?_0x1198e0(0x18b):'project';return readConfigFile(resolveWriteConfigPath(_0x6b1f22));}export function writeScopedConfig(_0x84d135,_0x21911b){const _0x556050=a77_0x3efaaa,_0x9ef236=_0x21911b[_0x556050(0x18b)]?_0x556050(0x18b):_0x556050(0x18f);writeConfigFile(resolveWriteConfigPath(_0x9ef236),_0x84d135);}export async function initGlobalEnvironment(_0x376173){const _0x59e80c=a77_0x3efaaa,{initEnv:_0x3dcceb}=await import('./constant/env.js');_0x3dcceb(_0x376173[_0x59e80c(0x196)]);const {initDomains:_0x3c848c}=await import(_0x59e80c(0x1a4));_0x3c848c({'apiDomain':_0x376173[_0x59e80c(0x1a0)][_0x59e80c(0x19e)]||_0x376173['raw']['host']||undefined,'userDomain':_0x376173[_0x59e80c(0x1a0)]['userDomain']||undefined,'runtimeDomain':_0x376173[_0x59e80c(0x1a0)][_0x59e80c(0x1a9)]||undefined,'skillHubDomain':_0x376173[_0x59e80c(0x1a0)][_0x59e80c(0x1b6)]||undefined});}export function getProjectConfigPath(){const _0x1edfba=a77_0x3efaaa;return resolveConfigPath(process[_0x1edfba(0x186)]());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function inspectCliConfigJsonFile(_0x187c10){const _0x3dc545=a77_0x3efaaa;if(!existsSync(_0x187c10))return{'status':_0x3dc545(0x187)};try{const _0x4f4fe5=readFileSync(_0x187c10,{'encoding':_0x3dc545(0x193)});if(!_0x4f4fe5?.[_0x3dc545(0x194)]())return{'status':'empty'};const _0x17a87c=JSON[_0x3dc545(0x19b)](_0x4f4fe5);return{'status':'ok','data':_0x17a87c};}catch(_0x56a987){return{'status':_0x3dc545(0x1a5),'message':_0x56a987 instanceof Error?_0x56a987[_0x3dc545(0x18d)]:String(_0x56a987)};}}export function loadRawConfigLayers(_0x2ac0dd){const _0x2373f3=a77_0x3efaaa;let _0x15e2df={},_0x34667e={},_0x3d84f4,_0x4b6de5;try{_0x3d84f4=resolveConfigPath(homedir());if(_0x3d84f4){const _0x2fb4ab=readFileSync(_0x3d84f4,{'encoding':_0x2373f3(0x193)});if(_0x2fb4ab)_0x15e2df=JSON['parse'](_0x2fb4ab);}}catch{}try{const _0x229176=_0x2ac0dd||process[_0x2373f3(0x186)]();_0x4b6de5=resolveConfigPath(_0x229176);if(_0x4b6de5){const _0x29501c=readFileSync(_0x4b6de5,{'encoding':_0x2373f3(0x193)});if(_0x29501c)_0x34667e=JSON[_0x2373f3(0x19b)](_0x29501c);}}catch{}return{'globalPath':_0x3d84f4,'projectPath':_0x4b6de5,'globalConfig':_0x15e2df,'projectConfig':_0x34667e};}function mergeRawConfigLayers(_0x3bf536){const _0x51aa46=a77_0x3efaaa,{globalConfig:_0x215548,projectConfig:_0x7444b3}=_0x3bf536;if(_0x7444b3['inherit']===![]){const _0x44efcd={..._0x7444b3};return delete _0x44efcd[_0x51aa46(0x1ac)],_0x44efcd;}const _0x43c40f={..._0x215548,..._0x7444b3};if(_0x51aa46(0x192)in _0x7444b3)_0x43c40f[_0x51aa46(0x192)]=_0x7444b3[_0x51aa46(0x192)];else _0x215548[_0x51aa46(0x192)]&&(_0x43c40f[_0x51aa46(0x192)]=_0x215548[_0x51aa46(0x192)]);return _0x43c40f;}export function isInProject(){return!!getProjectConfigPath();}export function readRawConfig(_0x2b9ec7){return mergeRawConfigLayers(loadRawConfigLayers(_0x2b9ec7));}export function readRawConfigWithLayers(_0x236aa0){const _0x43fb15=loadRawConfigLayers(_0x236aa0);return{'config':mergeRawConfigLayers(_0x43fb15),'layers':_0x43fb15};}export function resolveDefaultAppSource(_0x2c071b){const _0x33c0bf=a77_0x3efaaa;if(_0x33c0bf(0x192)in _0x2c071b['projectConfig'])return _0x33c0bf(0x18f);if(_0x2c071b['projectConfig'][_0x33c0bf(0x1ac)]===![])return null;if(_0x2c071b[_0x33c0bf(0x183)][_0x33c0bf(0x192)])return'global';return null;}function buildConfig(_0x30582f,_0x3a8bf6){const _0x8bfbad=a77_0x3efaaa,_0x46530f=_0x30582f[_0x8bfbad(0x192)]||undefined,_0x663be0=_0x3a8bf6[_0x8bfbad(0x1b9)]||env(_0x8bfbad(0x19a))||undefined,_0x4e2ab2=_0x663be0||_0x46530f||undefined,_0xf60137=env(_0x8bfbad(0x188))||_0x30582f[_0x8bfbad(0x19d)]||undefined,_0x51d32a=_0x3a8bf6[_0x8bfbad(0x196)]||env('ENV')||_0x30582f[_0x8bfbad(0x196)]||DEFAULT_CONFIG_VALUES[_0x8bfbad(0x196)],_0x25635e=normalizeEnv(String(_0x51d32a)),_0x56b659=isDaily(_0x25635e)?'daily':isDev(_0x25635e)?_0x8bfbad(0x1a1):_0x8bfbad(0x182),_0x5a71fc=typeof _0x3a8bf6['appcode']===_0x8bfbad(0x185)?_0x3a8bf6[_0x8bfbad(0x1b2)]:undefined,_0x28c076=env('APPCODE'),_0x2d4117=_0x663be0?undefined:_0x30582f[_0x8bfbad(0x1b2)]||_0x30582f[_0x8bfbad(0x1b9)]||undefined,_0x308338=_0x663be0||(_0x2d4117?undefined:_0x46530f),_0x4d99da=resolveLocalAppAliasCode(_0x30582f,_0x308338),_0x1693b7=resolveCachedAppCode(_0x308338,_0x56b659,_0xf60137),_0x26246e=_0x5a71fc||_0x28c076||_0x2d4117||_0x4d99da||_0x1693b7||undefined,_0x199665=_0x5a71fc?_0x8bfbad(0x1b3):_0x28c076?'env':_0x2d4117?'top-level':_0x4d99da?_0x8bfbad(0x184):_0x1693b7?_0x8bfbad(0x1c1):undefined,_0xb5a31c=_0x30582f[_0x8bfbad(0x1af)]||DEFAULT_CONFIG_VALUES[_0x8bfbad(0x1af)],_0x1d8416=undefined,_0x21ed56=_0x3a8bf6[_0x8bfbad(0x1be)]||env(_0x8bfbad(0x197))||_0x30582f[_0x8bfbad(0x1be)],_0x23a986=normalizeLegacyOutputFormat(_0x21ed56),_0x275266=env(_0x8bfbad(0x180))||_0x30582f['pageSize'],_0x48d78e=_0x275266?Number(_0x275266)||undefined:undefined,_0x25cb7a=_0x30582f[_0x8bfbad(0x1a7)]||_0x30582f['maxRisk'],_0x196f6e=_0x25cb7a==='read'||_0x25cb7a==='write'||_0x25cb7a===_0x8bfbad(0x1bf)?_0x25cb7a:DEFAULT_CONFIG_VALUES[_0x8bfbad(0x1a7)],_0x147c10=env(_0x8bfbad(0x1bb)),_0x286f3e=_0x147c10==='1'||_0x147c10==='true';return{'appCode':typeof _0x26246e===_0x8bfbad(0x185)&&_0x26246e[_0x8bfbad(0x194)]()?_0x26246e[_0x8bfbad(0x194)]():undefined,'appCodeSource':_0x199665,'env':_0x56b659,'locale':_0xb5a31c,'cookie':_0x1d8416,'accessKey':_0xf60137,'format':_0x23a986,'pageSize':_0x48d78e,'riskLevel':_0x196f6e,'verbose':_0x286f3e,'defaultApp':_0x46530f,'currentApp':typeof _0x4e2ab2===_0x8bfbad(0x185)?_0x4e2ab2:undefined,'raw':_0x30582f};}function env(_0x26c23b){return productEnv(_0x26c23b);}async function buildAuth(_0x2044d2){const _0x5ce917=a77_0x3efaaa,_0x40a870='',_0x42cc69=!!_0x2044d2[_0x5ce917(0x19d)];return{'cookie':_0x40a870,'isLoggedIn':_0x42cc69,async 'getOrLogin'(){if(_0x42cc69)return _0x40a870;throw CliErrors['authRequired']();}};}