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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (85) 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/artifact/index.js +1 -1
  10. package/lib/commands/auth/index.js +1 -1
  11. package/lib/commands/auth/prompt.js +1 -1
  12. package/lib/commands/bff/detail.js +1 -1
  13. package/lib/commands/bff/exec.js +1 -1
  14. package/lib/commands/bff/index.js +1 -1
  15. package/lib/commands/cli-skill/index.js +1 -1
  16. package/lib/commands/common/config-policy.js +1 -1
  17. package/lib/commands/common/constraints.js +1 -1
  18. package/lib/commands/common/flags.js +1 -1
  19. package/lib/commands/config/definitions.js +1 -1
  20. package/lib/commands/config/shared.js +1 -1
  21. package/lib/commands/data/index.js +1 -1
  22. package/lib/commands/dataset/detail.js +1 -1
  23. package/lib/commands/dataset/index.js +1 -1
  24. package/lib/commands/dataset/list.js +1 -1
  25. package/lib/commands/dataset/sdk-doc.js +1 -1
  26. package/lib/commands/doctor.js +1 -1
  27. package/lib/commands/init.js +1 -1
  28. package/lib/commands/kb/index.js +1 -1
  29. package/lib/commands/logs/index.js +1 -1
  30. package/lib/commands/personal-bff/index.js +1 -1
  31. package/lib/commands/registry.js +1 -1
  32. package/lib/commands/schema.js +1 -1
  33. package/lib/commands/service/dynamic.js +1 -1
  34. package/lib/commands/service/index.js +1 -1
  35. package/lib/commands/service/registry.js +1 -1
  36. package/lib/commands/skill/index.js +1 -1
  37. package/lib/commands/skill/templates.js +1 -1
  38. package/lib/commands/skill/validate.js +1 -1
  39. package/lib/commands/sql/detail.js +1 -1
  40. package/lib/commands/sql/exec.js +1 -1
  41. package/lib/commands/sql/index.js +1 -1
  42. package/lib/commands/update.js +1 -1
  43. package/lib/commands/workspace/index.js +1 -1
  44. package/lib/config/schema.js +1 -1
  45. package/lib/constant/app.js +1 -1
  46. package/lib/constant/auth-mode.js +1 -1
  47. package/lib/constant/cli.js +1 -1
  48. package/lib/constant/defaults.js +1 -1
  49. package/lib/constant/distribution.js +1 -1
  50. package/lib/constant/domain.js +1 -1
  51. package/lib/constant/env.js +1 -1
  52. package/lib/constant/output.js +1 -1
  53. package/lib/constant/product.js +1 -1
  54. package/lib/constant/risk.js +1 -1
  55. package/lib/constant/url.js +1 -1
  56. package/lib/context.js +1 -1
  57. package/lib/core/api-client.js +1 -1
  58. package/lib/core/db-resolver.js +1 -1
  59. package/lib/core/sdk-client.js +1 -1
  60. package/lib/errors.js +1 -1
  61. package/lib/framework/build-all-flags.js +1 -1
  62. package/lib/framework/dryrun.js +1 -1
  63. package/lib/framework/flags.js +1 -1
  64. package/lib/framework/help.js +1 -1
  65. package/lib/framework/index.js +1 -1
  66. package/lib/framework/output.js +1 -1
  67. package/lib/framework/preparse.js +1 -1
  68. package/lib/framework/response.js +1 -1
  69. package/lib/framework/runner-confirmation.js +1 -1
  70. package/lib/framework/runner-error.js +1 -1
  71. package/lib/framework/runner.js +1 -1
  72. package/lib/framework/schema-export.js +1 -1
  73. package/lib/framework/types.js +1 -1
  74. package/lib/generated/build-info.js +1 -1
  75. package/lib/help.js +1 -1
  76. package/lib/skills/npx-skills-add.js +1 -1
  77. package/lib/skills/runtime-skill-sync.js +1 -1
  78. package/lib/utils/apply-jq-filter.js +1 -1
  79. package/lib/utils/logger.js +1 -1
  80. package/lib/utils/params.js +1 -1
  81. package/lib/utils/platform.js +1 -1
  82. package/lib/utils/update-notice.js +1 -1
  83. package/lib/utils/version.js +1 -1
  84. package/lib/utils/write-cli-side-channel.js +1 -1
  85. package/package.json +1 -1
package/lib/context.js CHANGED
@@ -1 +1 @@
1
- const a55_0x2b99a9=a55_0x30d8;(function(_0xece9e4,_0x2cbf1a){const _0x752c35=a55_0x30d8,_0x38657c=_0xece9e4();while(!![]){try{const _0x3f5c75=parseInt(_0x752c35(0x213))/0x1*(-parseInt(_0x752c35(0x1d9))/0x2)+parseInt(_0x752c35(0x1e7))/0x3*(-parseInt(_0x752c35(0x1d5))/0x4)+-parseInt(_0x752c35(0x21a))/0x5+-parseInt(_0x752c35(0x1e9))/0x6+-parseInt(_0x752c35(0x203))/0x7+parseInt(_0x752c35(0x20f))/0x8*(-parseInt(_0x752c35(0x1ff))/0x9)+parseInt(_0x752c35(0x1e0))/0xa;if(_0x3f5c75===_0x2cbf1a)break;else _0x38657c['push'](_0x38657c['shift']());}catch(_0x54052b){_0x38657c['push'](_0x38657c['shift']());}}}(a55_0x311f,0x37ba5));import{readFileSync,existsSync,mkdirSync,renameSync,unlinkSync,writeFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{homedir}from'node:os';import{logger}from'./utils/logger.js';import{CliErrors}from'./errors.js';import{CLI_BIN_NAME}from'./constant/cli.js';import{PRODUCT_CONFIG,productEnv,productEnvNames}from'./constant/product.js';import{DEFAULT_CONFIG_VALUES}from'./constant/defaults.js';import{normalizeEnv,isDaily,isDev}from'./constant/env.js';import{normalizeLegacyOutputFormat}from'./framework/types.js';function a55_0x311f(){const _0x3fc6aa=['VERBOSE','find','true','14898860QHXqtp','configFileNames','host','EPERM','message','join','parse','1557YCKsCm','online','136272VqvQLh','appcode','development','PAGE_SIZE','stdout','cache','isRaw','apps','format','some','stringify','local-alias','./constant/env.js','projectConfig','empty','slice','code','app','defaultApp','pageSize','trim','cwd','1665ugByDT','write','isTTY','setRawMode','2711051DNwTTd','object','nonInteractive','string','maxRisk','top-level','high-risk-write','riskLevel','values','accessKey','raw','project','16552VpaWwV','APP','locale','setLogPath','5WlEJbp','newConfigFileName','runtimeDomain','setRawCommand','env','read','inherit','897975MWOLYH','stdin','userDomain','argv','authRequired','.tmp','production','1940RFZUFO','global','error','utf8','15018aKLUzD','EXDEV','skillHubDomain','FORMAT'];a55_0x311f=function(){return _0x3fc6aa;};return a55_0x311f();}import{resolveCachedAppCode}from'./commands/app/cache.js';export{AUTH_MODE,isAuthMode}from'./constant/auth-mode.js';const CONFIG_NAMES=PRODUCT_CONFIG[a55_0x2b99a9(0x1e1)];function a55_0x30d8(_0x34732d,_0x177433){_0x34732d=_0x34732d-0x1d1;const _0x311f2c=a55_0x311f();let _0x30d883=_0x311f2c[_0x34732d];return _0x30d883;}export const NEW_CONFIG_NAME=PRODUCT_CONFIG[a55_0x2b99a9(0x214)];function resolveConfigPath(_0x33f205){for(const _0x401af7 of CONFIG_NAMES){const _0x3e8b61=resolve(_0x33f205,_0x401af7);if(existsSync(_0x3e8b61))return _0x3e8b61;}return undefined;}export function resolveWriteConfigPath(_0x689006){const _0x56744f=a55_0x2b99a9,_0x1e6334=_0x689006===_0x56744f(0x20e)?process[_0x56744f(0x1fe)]():homedir(),_0x5a8580=resolveConfigPath(_0x1e6334);return _0x5a8580??resolve(_0x1e6334,NEW_CONFIG_NAME);}export function readConfigFile(_0x4fc2b7){try{if(existsSync(_0x4fc2b7)){const _0x5cea55=readFileSync(_0x4fc2b7,{'encoding':'utf8'});if(_0x5cea55){const _0x265f7d=JSON['parse'](_0x5cea55);return migrateOnlineEnv(_0x4fc2b7,_0x265f7d),_0x265f7d;}}}catch{}return{};}function migrateOnlineEnv(_0x35d11c,_0x4ce60d){const _0xbd9872=a55_0x2b99a9;let _0x54849b=![];_0x4ce60d[_0xbd9872(0x217)]===_0xbd9872(0x1e8)&&(_0x4ce60d['env']=_0xbd9872(0x1d4),_0x54849b=!![]);if(_0x4ce60d['apps']&&typeof _0x4ce60d[_0xbd9872(0x1f0)]==='object')for(const _0x3bdcb2 of Object[_0xbd9872(0x20b)](_0x4ce60d['apps'])){_0x3bdcb2&&_0x3bdcb2[_0xbd9872(0x217)]===_0xbd9872(0x1e8)&&(_0x3bdcb2[_0xbd9872(0x217)]=_0xbd9872(0x1d4),_0x54849b=!![]);}if(_0x54849b)try{writeConfigFile(_0x35d11c,_0x4ce60d);}catch{}}export function writeConfigFile(_0x34e370,_0x223647){const _0x3baa59=a55_0x2b99a9,_0x47a146=dirname(_0x34e370);!existsSync(_0x47a146)&&mkdirSync(_0x47a146,{'recursive':!![]});const _0x27600a=_0x34e370+_0x3baa59(0x1d3);try{writeFileSync(_0x27600a,JSON[_0x3baa59(0x1f3)](_0x223647,null,0x2)+'\x0a',{'encoding':'utf8','mode':0x180});try{renameSync(_0x27600a,_0x34e370);}catch(_0x27965b){if(_0x27965b[_0x3baa59(0x1f9)]===_0x3baa59(0x1e3)||_0x27965b['code']===_0x3baa59(0x1da)||_0x27965b[_0x3baa59(0x1f9)]==='EACCES'){writeFileSync(_0x34e370,JSON[_0x3baa59(0x1f3)](_0x223647,null,0x2)+'\x0a',{'encoding':_0x3baa59(0x1d8)});try{unlinkSync(_0x27600a);}catch{}}else throw _0x27965b;}}catch(_0x40cc14){try{unlinkSync(_0x27600a);}catch{}throw _0x40cc14;}}export function isNonInteractiveMode(_0x3864bc){const _0x15d463=a55_0x2b99a9;return!!(_0x3864bc[_0x15d463(0x205)]||_0x3864bc['ci']||productEnvNames('CI')[_0x15d463(0x1f2)](_0x4b4316=>process.env[_0x4b4316]===_0x15d463(0x1df))||process.env.CI===_0x15d463(0x1df)||!process[_0x15d463(0x1ed)][_0x15d463(0x201)]||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x48e0d5=a55_0x2b99a9;if(!process[_0x48e0d5(0x21b)][_0x48e0d5(0x201)])return![];try{const _0x32f9b6=process[_0x48e0d5(0x21b)][_0x48e0d5(0x1ef)];return process[_0x48e0d5(0x21b)]['setRawMode'](!![]),process['stdin'][_0x48e0d5(0x202)](_0x32f9b6??![]),!![];}catch{return![];}}export async function createContext(_0x6b0437){const _0xfe83ae=a55_0x2b99a9,_0x5ae163=readRawConfig(),_0x52ade4=buildConfig(_0x5ae163,_0x6b0437);await initGlobalEnvironment(_0x52ade4);const {getUserDomain:_0x5186ec,getApiDomain:_0x489bef}=await import('./constant/domain.js'),_0x1d0dd2={'apiDomain':_0x489bef(),'userDomain':_0x5186ec()},_0x907b29=await buildAuth(_0x52ade4);logger[_0xfe83ae(0x212)](process['cwd']());const _0x713f42=(CLI_BIN_NAME+'\x20'+process[_0xfe83ae(0x1d1)][_0xfe83ae(0x1f8)](0x2)[_0xfe83ae(0x1e5)]('\x20'))[_0xfe83ae(0x1fd)]();logger[_0xfe83ae(0x216)](_0x713f42);const _0x281f57=isNonInteractiveMode(_0x6b0437);return{'config':_0x52ade4,'auth':_0x907b29,'logger':logger,'env':_0x1d0dd2,'nonInteractive':_0x281f57};}export function buildConfigFromFlags(_0x11c2bd){return buildConfig(readRawConfig(),_0x11c2bd);}export function getLocalAppAliases(_0x3805ec){const _0x5451ca=a55_0x2b99a9;return _0x3805ec[_0x5451ca(0x1f0)]&&typeof _0x3805ec[_0x5451ca(0x1f0)]===_0x5451ca(0x204)?_0x3805ec['apps']:{};}export function resolveLocalAppAliasCode(_0xf14133,_0x25d1dc){const _0x551e1b=a55_0x2b99a9;if(!_0x25d1dc)return undefined;const _0x22433e=getLocalAppAliases(_0xf14133)[_0x25d1dc],_0x2e512e=_0x22433e?.[_0x551e1b(0x1ea)];return typeof _0x2e512e===_0x551e1b(0x206)&&_0x2e512e['trim']()?_0x2e512e[_0x551e1b(0x1fd)]():undefined;}export function readAppCodeFromConfig(){const _0x4d597b=a55_0x2b99a9,_0x3031ad=readRawConfig(),_0x4d162d=_0x3031ad[_0x4d597b(0x1ea)]??_0x3031ad[_0x4d597b(0x1fa)];if(typeof _0x4d162d===_0x4d597b(0x206)&&_0x4d162d[_0x4d597b(0x1fd)]())return _0x4d162d['trim']();const _0x8d7651=resolveLocalAppAliasCode(_0x3031ad,typeof _0x3031ad[_0x4d597b(0x1fb)]===_0x4d597b(0x206)?_0x3031ad[_0x4d597b(0x1fb)]:undefined);if(_0x8d7651)return _0x8d7651;const _0x4e8db0=normalizeEnv(String(_0x3031ad[_0x4d597b(0x217)]||_0x4d597b(0x1d4))),_0x4aa789=isDaily(_0x4e8db0)?'daily':isDev(_0x4e8db0)?'development':_0x4d597b(0x1d4),_0x14fa49=resolveCachedAppCode(typeof _0x3031ad['defaultApp']===_0x4d597b(0x206)?_0x3031ad[_0x4d597b(0x1fb)]:undefined,_0x4aa789,typeof _0x3031ad[_0x4d597b(0x20c)]===_0x4d597b(0x206)?_0x3031ad[_0x4d597b(0x20c)]:undefined);if(_0x14fa49)return _0x14fa49;const _0x4154ec=Object['values'](getLocalAppAliases(_0x3031ad))[_0x4d597b(0x1de)](_0x225796=>_0x225796?.[_0x4d597b(0x1ea)]);return typeof _0x4154ec?.[_0x4d597b(0x1ea)]==='string'&&_0x4154ec[_0x4d597b(0x1ea)][_0x4d597b(0x1fd)]()?_0x4154ec[_0x4d597b(0x1ea)][_0x4d597b(0x1fd)]():undefined;}export function readScopedConfig(_0x13ae3a){const _0x44b185=a55_0x2b99a9,_0x4aaf08=_0x13ae3a[_0x44b185(0x1d6)]?_0x44b185(0x1d6):_0x44b185(0x20e);return readConfigFile(resolveWriteConfigPath(_0x4aaf08));}export function writeScopedConfig(_0x51892c,_0x4ea2c9){const _0x3478d2=a55_0x2b99a9,_0x2c2d4d=_0x4ea2c9['global']?_0x3478d2(0x1d6):'project';writeConfigFile(resolveWriteConfigPath(_0x2c2d4d),_0x51892c);}export async function initGlobalEnvironment(_0x3702e2){const _0x2df373=a55_0x2b99a9,{initEnv:_0x48cb0e}=await import(_0x2df373(0x1f5));_0x48cb0e(_0x3702e2[_0x2df373(0x217)]);const {initDomains:_0x508766}=await import('./constant/domain.js');_0x508766({'apiDomain':_0x3702e2[_0x2df373(0x20d)]['apiDomain']||_0x3702e2[_0x2df373(0x20d)][_0x2df373(0x1e2)]||undefined,'userDomain':_0x3702e2[_0x2df373(0x20d)][_0x2df373(0x21c)]||undefined,'runtimeDomain':_0x3702e2[_0x2df373(0x20d)][_0x2df373(0x215)]||undefined,'skillHubDomain':_0x3702e2['raw'][_0x2df373(0x1db)]||undefined});}export function getProjectConfigPath(){const _0x2a72e2=a55_0x2b99a9;return resolveConfigPath(process[_0x2a72e2(0x1fe)]());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function inspectCliConfigJsonFile(_0xf8a136){const _0x44ab02=a55_0x2b99a9;if(!existsSync(_0xf8a136))return{'status':'missing'};try{const _0x564ebf=readFileSync(_0xf8a136,{'encoding':'utf8'});if(!_0x564ebf?.[_0x44ab02(0x1fd)]())return{'status':_0x44ab02(0x1f7)};const _0x369d79=JSON[_0x44ab02(0x1e6)](_0x564ebf);return{'status':'ok','data':_0x369d79};}catch(_0x56c90c){return{'status':_0x44ab02(0x1d7),'message':_0x56c90c instanceof Error?_0x56c90c[_0x44ab02(0x1e4)]:String(_0x56c90c)};}}export function loadRawConfigLayers(_0x4b30b1){const _0x5078a7=a55_0x2b99a9;let _0x1464bb={},_0x4cfdd3={},_0x38b961,_0x5e1ca8;try{_0x38b961=resolveConfigPath(homedir());if(_0x38b961){const _0x422434=readFileSync(_0x38b961,{'encoding':_0x5078a7(0x1d8)});if(_0x422434)_0x1464bb=JSON['parse'](_0x422434);}}catch{}try{const _0x45b66b=_0x4b30b1||process[_0x5078a7(0x1fe)]();_0x5e1ca8=resolveConfigPath(_0x45b66b);if(_0x5e1ca8){const _0x3d4f8a=readFileSync(_0x5e1ca8,{'encoding':_0x5078a7(0x1d8)});if(_0x3d4f8a)_0x4cfdd3=JSON[_0x5078a7(0x1e6)](_0x3d4f8a);}}catch{}return{'globalPath':_0x38b961,'projectPath':_0x5e1ca8,'globalConfig':_0x1464bb,'projectConfig':_0x4cfdd3};}function mergeRawConfigLayers(_0x25f169){const _0x4d982a=a55_0x2b99a9,{globalConfig:_0x5936c5,projectConfig:_0x5b544c}=_0x25f169;if(_0x5b544c[_0x4d982a(0x219)]===![]){const _0x10f2d6={..._0x5b544c};return delete _0x10f2d6[_0x4d982a(0x219)],_0x10f2d6;}const _0x1c3647={..._0x5936c5,..._0x5b544c};if('defaultApp'in _0x5b544c)_0x1c3647[_0x4d982a(0x1fb)]=_0x5b544c[_0x4d982a(0x1fb)];else _0x5936c5[_0x4d982a(0x1fb)]&&(_0x1c3647['defaultApp']=_0x5936c5[_0x4d982a(0x1fb)]);return _0x1c3647;}export function isInProject(){return!!getProjectConfigPath();}export function readRawConfig(_0x59588c){return mergeRawConfigLayers(loadRawConfigLayers(_0x59588c));}export function readRawConfigWithLayers(_0x130693){const _0x958a95=loadRawConfigLayers(_0x130693);return{'config':mergeRawConfigLayers(_0x958a95),'layers':_0x958a95};}export function resolveDefaultAppSource(_0x297ffa){const _0x58d7aa=a55_0x2b99a9;if('defaultApp'in _0x297ffa[_0x58d7aa(0x1f6)])return _0x58d7aa(0x20e);if(_0x297ffa['projectConfig']['inherit']===![])return null;if(_0x297ffa['globalConfig'][_0x58d7aa(0x1fb)])return _0x58d7aa(0x1d6);return null;}function buildConfig(_0x14b5f3,_0x32b92d){const _0x12d0a3=a55_0x2b99a9,_0x36c631=_0x14b5f3[_0x12d0a3(0x1fb)]||undefined,_0x953074=_0x32b92d[_0x12d0a3(0x1fa)]||env(_0x12d0a3(0x210))||undefined,_0x42408a=_0x953074||_0x36c631||undefined,_0x4d6192=env('ACCESS_KEY')||_0x14b5f3[_0x12d0a3(0x20c)]||undefined,_0x49e07e=_0x32b92d[_0x12d0a3(0x217)]||env('ENV')||_0x14b5f3[_0x12d0a3(0x217)]||DEFAULT_CONFIG_VALUES[_0x12d0a3(0x217)],_0x3f5f21=normalizeEnv(String(_0x49e07e)),_0x59b5c9=isDaily(_0x3f5f21)?'daily':isDev(_0x3f5f21)?_0x12d0a3(0x1eb):'production',_0x74643c=resolveLocalAppAliasCode(_0x14b5f3,_0x42408a),_0x1de28c=resolveCachedAppCode(_0x42408a,_0x59b5c9,_0x4d6192),_0x193116=typeof _0x32b92d[_0x12d0a3(0x1ea)]===_0x12d0a3(0x206)?_0x32b92d['appcode']:undefined,_0x22168c=env('APPCODE'),_0x18f78d=_0x953074?undefined:_0x14b5f3['appcode']||_0x14b5f3[_0x12d0a3(0x1fa)]||undefined,_0x17cecc=_0x193116||_0x22168c||_0x74643c||_0x1de28c||_0x18f78d||undefined,_0x2c4367=_0x193116?'explicit':_0x22168c?'env':_0x74643c?_0x12d0a3(0x1f4):_0x1de28c?_0x12d0a3(0x1ee):_0x18f78d?_0x12d0a3(0x208):undefined,_0x96e066=_0x14b5f3[_0x12d0a3(0x211)]||DEFAULT_CONFIG_VALUES[_0x12d0a3(0x211)],_0x28fb8c=undefined,_0x4bfaa2=_0x32b92d[_0x12d0a3(0x1f1)]||env(_0x12d0a3(0x1dc))||_0x14b5f3[_0x12d0a3(0x1f1)],_0x45668f=normalizeLegacyOutputFormat(_0x4bfaa2),_0x4d3371=env(_0x12d0a3(0x1ec))||_0x14b5f3[_0x12d0a3(0x1fc)],_0x507148=_0x4d3371?Number(_0x4d3371)||undefined:undefined,_0x22cf94=_0x14b5f3[_0x12d0a3(0x20a)]||_0x14b5f3[_0x12d0a3(0x207)],_0x489932=_0x22cf94===_0x12d0a3(0x218)||_0x22cf94===_0x12d0a3(0x200)||_0x22cf94===_0x12d0a3(0x209)?_0x22cf94:DEFAULT_CONFIG_VALUES['riskLevel'],_0x4c1575=env(_0x12d0a3(0x1dd)),_0x374b72=_0x4c1575==='1'||_0x4c1575==='true';return{'appCode':typeof _0x17cecc===_0x12d0a3(0x206)&&_0x17cecc[_0x12d0a3(0x1fd)]()?_0x17cecc[_0x12d0a3(0x1fd)]():undefined,'appCodeSource':_0x2c4367,'env':_0x59b5c9,'locale':_0x96e066,'cookie':_0x28fb8c,'accessKey':_0x4d6192,'format':_0x45668f,'pageSize':_0x507148,'riskLevel':_0x489932,'verbose':_0x374b72,'defaultApp':_0x36c631,'currentApp':typeof _0x42408a===_0x12d0a3(0x206)?_0x42408a:undefined,'raw':_0x14b5f3};}function env(_0x1c318f){return productEnv(_0x1c318f);}async function buildAuth(_0x5b207b){const _0x41687d=a55_0x2b99a9,_0x68ac9b='',_0x7cd789=!!_0x5b207b[_0x41687d(0x20c)];return{'cookie':_0x68ac9b,'isLoggedIn':_0x7cd789,async 'getOrLogin'(){const _0x122702=_0x41687d;if(_0x7cd789)return _0x68ac9b;throw CliErrors[_0x122702(0x1d2)]();}};}
1
+ const a55_0x3de67e=a55_0xc765;(function(_0x4fc328,_0x1cd826){const _0x1e414b=a55_0xc765,_0x4835b0=_0x4fc328();while(!![]){try{const _0x379159=parseInt(_0x1e414b(0x13b))/0x1*(parseInt(_0x1e414b(0x117))/0x2)+parseInt(_0x1e414b(0x154))/0x3*(parseInt(_0x1e414b(0x12f))/0x4)+-parseInt(_0x1e414b(0x131))/0x5*(-parseInt(_0x1e414b(0x12e))/0x6)+parseInt(_0x1e414b(0x11c))/0x7+-parseInt(_0x1e414b(0x138))/0x8*(-parseInt(_0x1e414b(0x159))/0x9)+parseInt(_0x1e414b(0x12b))/0xa*(-parseInt(_0x1e414b(0x13d))/0xb)+-parseInt(_0x1e414b(0x143))/0xc;if(_0x379159===_0x1cd826)break;else _0x4835b0['push'](_0x4835b0['shift']());}catch(_0x475060){_0x4835b0['push'](_0x4835b0['shift']());}}}(a55_0x361e,0x4f1ed));import{readFileSync,existsSync,mkdirSync,renameSync,unlinkSync,writeFileSync}from'node:fs';import{resolve,dirname}from'node:path';function a55_0xc765(_0x457956,_0x365b23){_0x457956=_0x457956-0x10d;const _0x361e7c=a55_0x361e();let _0xc765c1=_0x361e7c[_0x457956];return _0xc765c1;}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[a55_0x3de67e(0x114)];export const NEW_CONFIG_NAME=PRODUCT_CONFIG[a55_0x3de67e(0x137)];function resolveConfigPath(_0x3ea93e){for(const _0x49a311 of CONFIG_NAMES){const _0x41590d=resolve(_0x3ea93e,_0x49a311);if(existsSync(_0x41590d))return _0x41590d;}return undefined;}export function resolveWriteConfigPath(_0x230baa){const _0x9f789e=_0x230baa==='project'?process['cwd']():homedir(),_0x237caa=resolveConfigPath(_0x9f789e);return _0x237caa??resolve(_0x9f789e,NEW_CONFIG_NAME);}export function readConfigFile(_0x1ceba1){const _0x42a001=a55_0x3de67e;try{if(existsSync(_0x1ceba1)){const _0x3cf952=readFileSync(_0x1ceba1,{'encoding':_0x42a001(0x120)});if(_0x3cf952){const _0x1f245e=JSON['parse'](_0x3cf952);return migrateOnlineEnv(_0x1ceba1,_0x1f245e),_0x1f245e;}}}catch{}return{};}function migrateOnlineEnv(_0x4eeb03,_0x39dce6){const _0x51e3c4=a55_0x3de67e;let _0x39b6e5=![];_0x39dce6[_0x51e3c4(0x13c)]===_0x51e3c4(0x142)&&(_0x39dce6[_0x51e3c4(0x13c)]=_0x51e3c4(0x123),_0x39b6e5=!![]);if(_0x39dce6[_0x51e3c4(0x156)]&&typeof _0x39dce6[_0x51e3c4(0x156)]==='object')for(const _0x564000 of Object[_0x51e3c4(0x11b)](_0x39dce6[_0x51e3c4(0x156)])){_0x564000&&_0x564000['env']===_0x51e3c4(0x142)&&(_0x564000[_0x51e3c4(0x13c)]=_0x51e3c4(0x123),_0x39b6e5=!![]);}if(_0x39b6e5)try{writeConfigFile(_0x4eeb03,_0x39dce6);}catch{}}export function writeConfigFile(_0x5903f1,_0x75f526){const _0x2e64e2=a55_0x3de67e,_0x3323a4=dirname(_0x5903f1);!existsSync(_0x3323a4)&&mkdirSync(_0x3323a4,{'recursive':!![]});const _0x8772f4=_0x5903f1+_0x2e64e2(0x157);try{writeFileSync(_0x8772f4,JSON['stringify'](_0x75f526,null,0x2)+'\x0a',{'encoding':'utf8','mode':0x180});try{renameSync(_0x8772f4,_0x5903f1);}catch(_0x50295c){if(_0x50295c[_0x2e64e2(0x155)]==='EPERM'||_0x50295c[_0x2e64e2(0x155)]===_0x2e64e2(0x126)||_0x50295c[_0x2e64e2(0x155)]===_0x2e64e2(0x14f)){writeFileSync(_0x5903f1,JSON[_0x2e64e2(0x139)](_0x75f526,null,0x2)+'\x0a',{'encoding':_0x2e64e2(0x120)});try{unlinkSync(_0x8772f4);}catch{}}else throw _0x50295c;}}catch(_0x3fa194){try{unlinkSync(_0x8772f4);}catch{}throw _0x3fa194;}}export function isNonInteractiveMode(_0x35cf3c){const _0x153268=a55_0x3de67e;return!!(_0x35cf3c[_0x153268(0x15a)]||_0x35cf3c['ci']||productEnvNames('CI')[_0x153268(0x127)](_0x5a4ee5=>process.env[_0x5a4ee5]===_0x153268(0x153))||process.env.CI===_0x153268(0x153)||!process['stdout'][_0x153268(0x136)]||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x43772d=a55_0x3de67e;if(!process[_0x43772d(0x11e)][_0x43772d(0x136)])return![];try{const _0x2c459a=process['stdin']['isRaw'];return process[_0x43772d(0x11e)][_0x43772d(0x13f)](!![]),process[_0x43772d(0x11e)]['setRawMode'](_0x2c459a??![]),!![];}catch{return![];}}export async function createContext(_0x373e3b){const _0x134726=a55_0x3de67e,_0x513ebb=readRawConfig(),_0x43a7b7=buildConfig(_0x513ebb,_0x373e3b);await initGlobalEnvironment(_0x43a7b7);const {getUserDomain:_0x32d0fd,getApiDomain:_0x3d7d8d}=await import('./constant/domain.js'),_0x4823dd={'apiDomain':_0x3d7d8d(),'userDomain':_0x32d0fd()},_0x21dfb4=await buildAuth(_0x43a7b7);logger['setLogPath'](process[_0x134726(0x132)]());const _0x455b76=(CLI_BIN_NAME+'\x20'+process[_0x134726(0x13e)][_0x134726(0x111)](0x2)[_0x134726(0x11a)]('\x20'))[_0x134726(0x122)]();logger[_0x134726(0x144)](_0x455b76);const _0x4e2f09=isNonInteractiveMode(_0x373e3b);return{'config':_0x43a7b7,'auth':_0x21dfb4,'logger':logger,'env':_0x4823dd,'nonInteractive':_0x4e2f09};}export function buildConfigFromFlags(_0x12f44a){return buildConfig(readRawConfig(),_0x12f44a);}export function getLocalAppAliases(_0x5cd60a){const _0x2b9136=a55_0x3de67e;return _0x5cd60a['apps']&&typeof _0x5cd60a[_0x2b9136(0x156)]==='object'?_0x5cd60a['apps']:{};}export function resolveLocalAppAliasCode(_0x3e88a9,_0x4d2949){const _0x36c2bf=a55_0x3de67e;if(!_0x4d2949)return undefined;const _0x104a05=getLocalAppAliases(_0x3e88a9)[_0x4d2949],_0x597a3b=_0x104a05?.[_0x36c2bf(0x14c)];return typeof _0x597a3b===_0x36c2bf(0x14b)&&_0x597a3b[_0x36c2bf(0x122)]()?_0x597a3b[_0x36c2bf(0x122)]():undefined;}export function readAppCodeFromConfig(){const _0x3a0eb9=a55_0x3de67e,_0x2bb0cd=readRawConfig(),_0x50f0de=_0x2bb0cd['appcode']??_0x2bb0cd['app'];if(typeof _0x50f0de===_0x3a0eb9(0x14b)&&_0x50f0de[_0x3a0eb9(0x122)]())return _0x50f0de['trim']();const _0x269a04=resolveLocalAppAliasCode(_0x2bb0cd,typeof _0x2bb0cd[_0x3a0eb9(0x14d)]==='string'?_0x2bb0cd[_0x3a0eb9(0x14d)]:undefined);if(_0x269a04)return _0x269a04;const _0x11c344=normalizeEnv(String(_0x2bb0cd[_0x3a0eb9(0x13c)]||_0x3a0eb9(0x123))),_0x11d68c=isDaily(_0x11c344)?_0x3a0eb9(0x151):isDev(_0x11c344)?_0x3a0eb9(0x129):'production',_0x447b90=resolveCachedAppCode(typeof _0x2bb0cd[_0x3a0eb9(0x14d)]===_0x3a0eb9(0x14b)?_0x2bb0cd['defaultApp']:undefined,_0x11d68c,typeof _0x2bb0cd[_0x3a0eb9(0x124)]===_0x3a0eb9(0x14b)?_0x2bb0cd[_0x3a0eb9(0x124)]:undefined);if(_0x447b90)return _0x447b90;const _0x79f5ee=Object[_0x3a0eb9(0x11b)](getLocalAppAliases(_0x2bb0cd))[_0x3a0eb9(0x119)](_0x5bb5cd=>_0x5bb5cd?.[_0x3a0eb9(0x14c)]);return typeof _0x79f5ee?.[_0x3a0eb9(0x14c)]===_0x3a0eb9(0x14b)&&_0x79f5ee[_0x3a0eb9(0x14c)][_0x3a0eb9(0x122)]()?_0x79f5ee[_0x3a0eb9(0x14c)][_0x3a0eb9(0x122)]():undefined;}export function readScopedConfig(_0x488bf3){const _0x2db3d2=a55_0x3de67e,_0x5dcb7c=_0x488bf3['global']?_0x2db3d2(0x150):_0x2db3d2(0x110);return readConfigFile(resolveWriteConfigPath(_0x5dcb7c));}function a55_0x361e(){const _0x272293=['empty','EXDEV','some','ENV','development','top-level','14870vSgBCE','missing','VERBOSE','6VwJvrE','128636QPBwvC','read','3141445QNwEKf','cwd','./constant/env.js','ACCESS_KEY','message','isTTY','newConfigFileName','105976zKzxxj','stringify','APPCODE','368339VpfWvN','env','11nCzMkS','argv','setRawMode','app','runtimeDomain','online','17431248EyfvrV','setRawCommand','explicit','high-risk-write','./constant/domain.js','riskLevel','local-alias','raw','string','appcode','defaultApp','skillHubDomain','EACCES','global','daily','userDomain','true','36OiZRCV','code','apps','.tmp','globalConfig','153gQLYFD','nonInteractive','format','parse','PAGE_SIZE','project','slice','inherit','locale','configFileNames','projectConfig','pageSize','2RoCUSB','authRequired','find','join','values','1193031EwpDSP','error','stdin','apiDomain','utf8','cache','trim','production','accessKey'];a55_0x361e=function(){return _0x272293;};return a55_0x361e();}export function writeScopedConfig(_0x31f058,_0xdaf36b){const _0x2a85ca=a55_0x3de67e,_0x3dae96=_0xdaf36b[_0x2a85ca(0x150)]?_0x2a85ca(0x150):_0x2a85ca(0x110);writeConfigFile(resolveWriteConfigPath(_0x3dae96),_0x31f058);}export async function initGlobalEnvironment(_0x5ab30c){const _0xd45781=a55_0x3de67e,{initEnv:_0x27fdfe}=await import(_0xd45781(0x133));_0x27fdfe(_0x5ab30c['env']);const {initDomains:_0x3d4234}=await import(_0xd45781(0x147));_0x3d4234({'apiDomain':_0x5ab30c['raw'][_0xd45781(0x11f)]||_0x5ab30c['raw']['host']||undefined,'userDomain':_0x5ab30c['raw'][_0xd45781(0x152)]||undefined,'runtimeDomain':_0x5ab30c[_0xd45781(0x14a)][_0xd45781(0x141)]||undefined,'skillHubDomain':_0x5ab30c[_0xd45781(0x14a)][_0xd45781(0x14e)]||undefined});}export function getProjectConfigPath(){const _0x110a3a=a55_0x3de67e;return resolveConfigPath(process[_0x110a3a(0x132)]());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function inspectCliConfigJsonFile(_0x1421d8){const _0x69edb2=a55_0x3de67e;if(!existsSync(_0x1421d8))return{'status':_0x69edb2(0x12c)};try{const _0x567993=readFileSync(_0x1421d8,{'encoding':_0x69edb2(0x120)});if(!_0x567993?.[_0x69edb2(0x122)]())return{'status':_0x69edb2(0x125)};const _0x37053d=JSON[_0x69edb2(0x10e)](_0x567993);return{'status':'ok','data':_0x37053d};}catch(_0x49a667){return{'status':_0x69edb2(0x11d),'message':_0x49a667 instanceof Error?_0x49a667[_0x69edb2(0x135)]:String(_0x49a667)};}}export function loadRawConfigLayers(_0x527ea1){const _0x277df9=a55_0x3de67e;let _0x4be8bf={},_0xe5830a={},_0x434f75,_0x14553e;try{_0x434f75=resolveConfigPath(homedir());if(_0x434f75){const _0xacc9a9=readFileSync(_0x434f75,{'encoding':_0x277df9(0x120)});if(_0xacc9a9)_0x4be8bf=JSON['parse'](_0xacc9a9);}}catch{}try{const _0x55db5c=_0x527ea1||process[_0x277df9(0x132)]();_0x14553e=resolveConfigPath(_0x55db5c);if(_0x14553e){const _0x5d88dd=readFileSync(_0x14553e,{'encoding':_0x277df9(0x120)});if(_0x5d88dd)_0xe5830a=JSON[_0x277df9(0x10e)](_0x5d88dd);}}catch{}return{'globalPath':_0x434f75,'projectPath':_0x14553e,'globalConfig':_0x4be8bf,'projectConfig':_0xe5830a};}function mergeRawConfigLayers(_0x6fad97){const _0x1ad3d9=a55_0x3de67e,{globalConfig:_0x57e4fa,projectConfig:_0x4a3a3e}=_0x6fad97;if(_0x4a3a3e[_0x1ad3d9(0x112)]===![]){const _0x3edb1a={..._0x4a3a3e};return delete _0x3edb1a[_0x1ad3d9(0x112)],_0x3edb1a;}const _0x5a05f5={..._0x57e4fa,..._0x4a3a3e};if(_0x1ad3d9(0x14d)in _0x4a3a3e)_0x5a05f5['defaultApp']=_0x4a3a3e['defaultApp'];else _0x57e4fa[_0x1ad3d9(0x14d)]&&(_0x5a05f5[_0x1ad3d9(0x14d)]=_0x57e4fa[_0x1ad3d9(0x14d)]);return _0x5a05f5;}export function isInProject(){return!!getProjectConfigPath();}export function readRawConfig(_0x42a4f5){return mergeRawConfigLayers(loadRawConfigLayers(_0x42a4f5));}export function readRawConfigWithLayers(_0x2b0f47){const _0x4abd5d=loadRawConfigLayers(_0x2b0f47);return{'config':mergeRawConfigLayers(_0x4abd5d),'layers':_0x4abd5d};}export function resolveDefaultAppSource(_0x5b10a8){const _0x38a7d9=a55_0x3de67e;if(_0x38a7d9(0x14d)in _0x5b10a8[_0x38a7d9(0x115)])return'project';if(_0x5b10a8['projectConfig'][_0x38a7d9(0x112)]===![])return null;if(_0x5b10a8[_0x38a7d9(0x158)][_0x38a7d9(0x14d)])return _0x38a7d9(0x150);return null;}function buildConfig(_0x2795b2,_0x1a5f55){const _0x18e052=a55_0x3de67e,_0x7ad74a=_0x2795b2[_0x18e052(0x14d)]||undefined,_0x26e218=_0x1a5f55[_0x18e052(0x140)]||env('APP')||undefined,_0x259da0=_0x26e218||_0x7ad74a||undefined,_0x610b5f=env(_0x18e052(0x134))||_0x2795b2[_0x18e052(0x124)]||undefined,_0x2873d9=_0x1a5f55['env']||env(_0x18e052(0x128))||_0x2795b2[_0x18e052(0x13c)]||DEFAULT_CONFIG_VALUES[_0x18e052(0x13c)],_0x27e2cd=normalizeEnv(String(_0x2873d9)),_0x5c8dde=isDaily(_0x27e2cd)?'daily':isDev(_0x27e2cd)?_0x18e052(0x129):_0x18e052(0x123),_0x39045d=resolveLocalAppAliasCode(_0x2795b2,_0x259da0),_0x92171a=resolveCachedAppCode(_0x259da0,_0x5c8dde,_0x610b5f),_0x449129=typeof _0x1a5f55[_0x18e052(0x14c)]==='string'?_0x1a5f55[_0x18e052(0x14c)]:undefined,_0x45b380=env(_0x18e052(0x13a)),_0x3f0a78=_0x26e218?undefined:_0x2795b2[_0x18e052(0x14c)]||_0x2795b2[_0x18e052(0x140)]||undefined,_0x566d68=_0x449129||_0x45b380||_0x39045d||_0x92171a||_0x3f0a78||undefined,_0x2d6760=_0x449129?_0x18e052(0x145):_0x45b380?'env':_0x39045d?_0x18e052(0x149):_0x92171a?_0x18e052(0x121):_0x3f0a78?_0x18e052(0x12a):undefined,_0x33e6e2=_0x2795b2['locale']||DEFAULT_CONFIG_VALUES[_0x18e052(0x113)],_0x3ca650=undefined,_0x35efbb=_0x1a5f55[_0x18e052(0x10d)]||env('FORMAT')||_0x2795b2['format'],_0x21863b=normalizeLegacyOutputFormat(_0x35efbb),_0x2e9703=env(_0x18e052(0x10f))||_0x2795b2[_0x18e052(0x116)],_0x3348b4=_0x2e9703?Number(_0x2e9703)||undefined:undefined,_0x22748b=_0x2795b2[_0x18e052(0x148)]||_0x2795b2['maxRisk'],_0x47f6d6=_0x22748b===_0x18e052(0x130)||_0x22748b==='write'||_0x22748b===_0x18e052(0x146)?_0x22748b:DEFAULT_CONFIG_VALUES[_0x18e052(0x148)],_0x5650b2=env(_0x18e052(0x12d)),_0x40ff6f=_0x5650b2==='1'||_0x5650b2===_0x18e052(0x153);return{'appCode':typeof _0x566d68===_0x18e052(0x14b)&&_0x566d68['trim']()?_0x566d68[_0x18e052(0x122)]():undefined,'appCodeSource':_0x2d6760,'env':_0x5c8dde,'locale':_0x33e6e2,'cookie':_0x3ca650,'accessKey':_0x610b5f,'format':_0x21863b,'pageSize':_0x3348b4,'riskLevel':_0x47f6d6,'verbose':_0x40ff6f,'defaultApp':_0x7ad74a,'currentApp':typeof _0x259da0===_0x18e052(0x14b)?_0x259da0:undefined,'raw':_0x2795b2};}function env(_0xc65dca){return productEnv(_0xc65dca);}async function buildAuth(_0x4b2e77){const _0x25bfdd='',_0x446bda=!!_0x4b2e77['accessKey'];return{'cookie':_0x25bfdd,'isLoggedIn':_0x446bda,async 'getOrLogin'(){const _0x2abca4=a55_0xc765;if(_0x446bda)return _0x25bfdd;throw CliErrors[_0x2abca4(0x118)]();}};}
@@ -1 +1 @@
1
- (function(_0x2f63ca,_0x4232b8){const _0x219dc7=a56_0x85bc,_0x68ae23=_0x2f63ca();while(!![]){try{const _0x2df9a9=-parseInt(_0x219dc7(0x12a))/0x1+-parseInt(_0x219dc7(0x112))/0x2*(parseInt(_0x219dc7(0x173))/0x3)+-parseInt(_0x219dc7(0x152))/0x4*(parseInt(_0x219dc7(0x164))/0x5)+parseInt(_0x219dc7(0x16d))/0x6+parseInt(_0x219dc7(0x11b))/0x7+parseInt(_0x219dc7(0x154))/0x8+-parseInt(_0x219dc7(0x13d))/0x9*(-parseInt(_0x219dc7(0x177))/0xa);if(_0x2df9a9===_0x4232b8)break;else _0x68ae23['push'](_0x68ae23['shift']());}catch(_0x5edce8){_0x68ae23['push'](_0x68ae23['shift']());}}}(a56_0x5c5a,0x859da));import{getApiDomain,getRuntimeDomain,getSkillHubDomain}from'../constant/domain.js';import{PRODUCT_CONFIG}from'../constant/product.js';import{CliErrors}from'../errors.js';function a56_0x5c5a(){const _0xeaa723=['SkillHub\x20API\x20error:\x20','number','status','/update','?appCode=','base64','appCode','apiError','738grlSft','/client/knowledge-base/personal/','source','BFF\x20script\x20not\x20found:\x20id=','undefined','text','/client/artifact/','items','errorCode','Toolbox\x20API\x20error','API\x20error:\x20','success','namespace','authRequired','signal','headlineVersion','effective','Configure\x20accessKey\x20in\x20','isArray','json','summary','144DHrBbF','sqlCode','3849136OtBOFW','errorMsg','visibility','Request\x20timeout:\x20','topK','/client/artifact/list?','PUBLIC','tableData','Personal\x20BFF\x20not\x20found:\x20id=','/client/dataset/query?','favorite','Invalid\x20login\x20user\x20info\x20response:\x20expected\x20object.','/api/runtime/v1/namespaces/','invokeSource','newConfigFileName','application/json','80790URbnAd','toString','message','Invalid\x20app\x20list\x20response:\x20expected\x20object\x20or\x20array.','replace','AbortError','data','builtin','file','3979962JzEAat','slug','ownerPreviewVersion','Check\x20your\x20credentials\x20and\x20try\x20again.','personal','/client/sql/query','3utgtQw','Toolbox\x20error\x20code:\x20','scope','Toolbox\x20API\x20error:\x20','82930jLnpwL','set','Toolbox\x20returned\x20non-JSON\x20response\x20(HTTP\x20','user','entries','/client/artifact/create','version','searchParams','code','name','packageBase64','content','skillCode','/publish','SkillHub\x20returned\x20non-JSON\x20response\x20(HTTP\x20','/api/cli/v1/skills/','string','/client/runtime-bff/personal/create','displayName','filter','SQL\x20query\x20not\x20found:\x20','test','Missing\x20Skill\x20package\x20payload.','abort','/client/user/loginUserInfo','arrayBuffer','/client/bff/query/','GET','1060914McFQhD','markdown','artifactType','/client/knowledge-base/personal/list?appCode=','public','NAMESPACE_ONLY','msg','skillName','/client/runtime-bff/personal/list?appCode=','5682201lGgTrW','description','object','/client/runtime-bff/personal/','from','validation','/versions/','/api/node-toolbox/','API\x20returned\x20non-JSON\x20response\x20(HTTP\x20','company','/client/dataset/list','POST','/execute?appCode=','/download','map','976803FJLjnm','Invalid\x20app\x20list\x20response:\x20missing\x20data.tableData.','tags','Download\x20failed:\x20','/skills','/client/app/my-apps','application/octet-stream','trim','appName','PRIVATE','query'];a56_0x5c5a=function(){return _0xeaa723;};return a56_0x5c5a();}import{extractList}from'../framework/response.js';let _activeAK;export function setActiveAK(_0x27d347){_activeAK=_0x27d347||undefined;}export function clearActiveAK(){_activeAK=undefined;}async function apiRequest(_0x25ed50,_0x572f6c={}){const _0x35b687=a56_0x85bc,{method:method=_0x35b687(0x111),body:_0x1aeffc,headers:headers={},timeout:timeout=0x7530}=_0x572f6c,_0x33c841=_activeAK,_0x1ef138=getRuntimeDomain();if(!_0x33c841)throw CliErrors['authRequired'](_0x35b687(0x14e)+PRODUCT_CONFIG['newConfigFileName']+'.');const _0x50809c=''+_0x1ef138+_0x25ed50,_0x335ba6={'X-User-AK':_0x33c841},_0x2d1579=new AbortController(),_0x4311d1=setTimeout(()=>_0x2d1579['abort'](),timeout);try{const _0x448200=await fetch(_0x50809c,{'method':method,'headers':{'Content-Type':'application/json','X-Invoke-Source':PRODUCT_CONFIG[_0x35b687(0x161)],..._0x335ba6,...headers},'body':_0x1aeffc?JSON['stringify'](_0x1aeffc):undefined,'signal':_0x2d1579[_0x35b687(0x14b)]});let _0x3d0a80;try{_0x3d0a80=await _0x448200[_0x35b687(0x150)]();}catch{throw CliErrors['apiError'](_0x35b687(0x123)+_0x448200[_0x35b687(0x137)]+')',_0x448200[_0x35b687(0x137)]>=0x190?'Check\x20your\x20credentials\x20and\x20try\x20again.':undefined);}if(!_0x448200['ok']||_0x3d0a80[_0x35b687(0x148)]===![])throw CliErrors[_0x35b687(0x13c)](_0x3d0a80[_0x35b687(0x155)]||_0x3d0a80['message']||_0x35b687(0x147)+_0x448200[_0x35b687(0x137)],_0x3d0a80[_0x35b687(0x145)]?'API\x20error\x20code:\x20'+_0x3d0a80[_0x35b687(0x145)]:undefined);return _0x3d0a80;}catch(_0x22d033){if(_0x22d033 instanceof Error&&_0x22d033[_0x35b687(0xff)]===_0x35b687(0x169))throw CliErrors[_0x35b687(0x13c)]('Request\x20timeout:\x20'+_0x50809c);throw _0x22d033;}finally{clearTimeout(_0x4311d1);}}async function apiBinaryRequest(_0x1f345d,_0x47b293={}){const _0x4d29fe=a56_0x85bc,{method:method='GET',headers:headers={},timeout:timeout=0x7530}=_0x47b293,_0x3d5fd8=_activeAK,_0x132e05=getRuntimeDomain();if(!_0x3d5fd8)throw CliErrors['authRequired'](_0x4d29fe(0x14e)+PRODUCT_CONFIG[_0x4d29fe(0x162)]+'.');const _0x40f423=''+_0x132e05+_0x1f345d,_0x239c1e=new AbortController(),_0x5e3182=setTimeout(()=>_0x239c1e[_0x4d29fe(0x10d)](),timeout);try{const _0xa9a7ab=await fetch(_0x40f423,{'method':method,'headers':{'X-Invoke-Source':PRODUCT_CONFIG['invokeSource'],'X-User-AK':_0x3d5fd8,...headers},'signal':_0x239c1e[_0x4d29fe(0x14b)]});if(!_0xa9a7ab['ok']){let _0x242a8b;try{const _0x1ae234=await _0xa9a7ab[_0x4d29fe(0x150)]();_0x242a8b=_0x1ae234[_0x4d29fe(0x155)]||_0x1ae234['message']||_0x1ae234['errorCode'];}catch{_0x242a8b=await _0xa9a7ab['text']()['catch'](()=>undefined);}throw CliErrors['apiError'](_0x242a8b||'API\x20error:\x20'+_0xa9a7ab[_0x4d29fe(0x137)],'Download\x20failed:\x20'+_0x40f423);}return Buffer[_0x4d29fe(0x11f)](await _0xa9a7ab[_0x4d29fe(0x10f)]());}catch(_0x42d790){if(_0x42d790 instanceof Error&&_0x42d790[_0x4d29fe(0xff)]===_0x4d29fe(0x169))throw CliErrors[_0x4d29fe(0x13c)](_0x4d29fe(0x157)+_0x40f423);throw _0x42d790;}finally{clearTimeout(_0x5e3182);}}async function toolboxRequest(_0x58bf78,_0x40a4ca,_0x45bc4a={}){const _0x466dfe=a56_0x85bc,{method:method=_0x466dfe(0x111),headers:headers={},timeout:timeout=0x7530}=_0x45bc4a,_0x306529=_activeAK;if(!_0x306529)throw CliErrors['authRequired'](_0x466dfe(0x14e)+PRODUCT_CONFIG[_0x466dfe(0x162)]+'.');const _0x56749c=getApiDomain()[_0x466dfe(0x168)](/\/$/,''),_0x275363=new URL(_0x58bf78,_0x56749c+_0x466dfe(0x122));if(_0x40a4ca)for(const [_0xc0f9d1,_0x2c4aa2]of Object[_0x466dfe(0xfa)](_0x40a4ca)){_0x2c4aa2!==undefined&&_0x2c4aa2!==null&&_0x275363[_0x466dfe(0xfd)]['set'](_0xc0f9d1,String(_0x2c4aa2));}const _0x5eb7b8=new AbortController(),_0x72c8ea=setTimeout(()=>_0x5eb7b8[_0x466dfe(0x10d)](),timeout);try{const _0x5c69d8=await fetch(_0x275363,{'method':method,'headers':{'Content-Type':'application/json','X-Invoke-Source':PRODUCT_CONFIG[_0x466dfe(0x161)],'X-User-AK':_0x306529,...headers},'signal':_0x5eb7b8[_0x466dfe(0x14b)]});let _0x2c3527;try{_0x2c3527=await _0x5c69d8[_0x466dfe(0x150)]();}catch{throw CliErrors[_0x466dfe(0x13c)](_0x466dfe(0x179)+_0x5c69d8[_0x466dfe(0x137)]+')',_0x5c69d8[_0x466dfe(0x137)]>=0x190?_0x466dfe(0x170):undefined);}if(!_0x5c69d8['ok']){const _0x5d5c50=_0x2c3527&&typeof _0x2c3527===_0x466dfe(0x11d)?_0x2c3527:{};throw CliErrors[_0x466dfe(0x13c)](_0x5d5c50['errorMsg']||_0x5d5c50[_0x466dfe(0x166)]||_0x466dfe(0x176)+_0x5c69d8['status'],_0x5d5c50['errorCode']?_0x466dfe(0x174)+_0x5d5c50[_0x466dfe(0x145)]:undefined);}if(_0x2c3527&&typeof _0x2c3527===_0x466dfe(0x11d)&&_0x466dfe(0x148)in _0x2c3527&&typeof _0x2c3527[_0x466dfe(0x148)]==='boolean'){const _0x3e7ae3=_0x2c3527;if(!_0x3e7ae3['success'])throw CliErrors[_0x466dfe(0x13c)](_0x3e7ae3[_0x466dfe(0x155)]||_0x3e7ae3['message']||_0x466dfe(0x146),_0x3e7ae3[_0x466dfe(0x145)]?_0x466dfe(0x174)+_0x3e7ae3['errorCode']:undefined);return _0x3e7ae3['data'];}return _0x2c3527;}catch(_0x3cc77b){if(_0x3cc77b instanceof Error&&_0x3cc77b[_0x466dfe(0xff)]===_0x466dfe(0x169))throw CliErrors[_0x466dfe(0x13c)](_0x466dfe(0x157)+_0x275363[_0x466dfe(0x165)]());throw _0x3cc77b;}finally{clearTimeout(_0x72c8ea);}}async function skillHubJsonRequest(_0x31bd28,_0x647000={}){const _0x57cb34=a56_0x85bc,{method:method='GET',query:_0x98c6ec,body:_0x2c7b38,headers:headers={},timeout:timeout=0x7530}=_0x647000,_0x396109=_activeAK;if(!_0x396109)throw CliErrors[_0x57cb34(0x14a)](_0x57cb34(0x14e)+PRODUCT_CONFIG[_0x57cb34(0x162)]+'.');const _0x2cc12f=getSkillHubDomain()[_0x57cb34(0x168)](/\/$/,''),_0x548570=new URL(_0x31bd28,_0x2cc12f+'/');if(_0x98c6ec)for(const [_0x7d5617,_0x17e50a]of Object[_0x57cb34(0xfa)](_0x98c6ec)){_0x17e50a!==undefined&&_0x17e50a!==null&&_0x548570[_0x57cb34(0xfd)][_0x57cb34(0x178)](_0x7d5617,String(_0x17e50a));}const _0x564526=new AbortController(),_0x34b88d=setTimeout(()=>_0x564526[_0x57cb34(0x10d)](),timeout);try{const _0xe3f64b=await fetch(_0x548570[_0x57cb34(0x165)](),{'method':method,'headers':{'Accept':_0x57cb34(0x163),'X-Invoke-Source':PRODUCT_CONFIG['invokeSource'],'X-User-AK':_0x396109,...headers},'body':_0x2c7b38,'signal':_0x564526[_0x57cb34(0x14b)]});let _0x24e2e0;try{_0x24e2e0=await _0xe3f64b[_0x57cb34(0x150)]();}catch{throw CliErrors[_0x57cb34(0x13c)](_0x57cb34(0x104)+_0xe3f64b[_0x57cb34(0x137)]+')',_0xe3f64b['status']>=0x190?_0x57cb34(0x170):undefined);}const _0x16c86c=!_0xe3f64b['ok']||_0x24e2e0?.['success']===![]||typeof _0x24e2e0?.[_0x57cb34(0xfe)]===_0x57cb34(0x136)&&_0x24e2e0[_0x57cb34(0xfe)]>=0x190;if(_0x16c86c)throw CliErrors[_0x57cb34(0x13c)](_0x24e2e0?.[_0x57cb34(0x155)]||_0x24e2e0?.[_0x57cb34(0x166)]||_0x24e2e0?.[_0x57cb34(0x118)]||'SkillHub\x20API\x20error:\x20'+_0xe3f64b['status'],_0x24e2e0?.[_0x57cb34(0x145)]?'SkillHub\x20error\x20code:\x20'+_0x24e2e0['errorCode']:undefined);return _0x24e2e0?.[_0x57cb34(0x16a)]??_0x24e2e0;}catch(_0x277e31){if(_0x277e31 instanceof Error&&_0x277e31['name']===_0x57cb34(0x169))throw CliErrors[_0x57cb34(0x13c)]('Request\x20timeout:\x20'+_0x548570['toString']());throw _0x277e31;}finally{clearTimeout(_0x34b88d);}}async function skillHubBinaryRequest(_0xda70f,_0x5b3d19={}){const _0x479a4c=a56_0x85bc,{query:_0x35a667,headers:headers={},timeout:timeout=0x7530}=_0x5b3d19,_0x395bf0=_activeAK;if(!_0x395bf0)throw CliErrors['authRequired'](_0x479a4c(0x14e)+PRODUCT_CONFIG[_0x479a4c(0x162)]+'.');const _0x307bfd=getSkillHubDomain()['replace'](/\/$/,''),_0x584aab=new URL(_0xda70f,_0x307bfd+'/');if(_0x35a667)for(const [_0x43f7a4,_0xebec0f]of Object[_0x479a4c(0xfa)](_0x35a667)){_0xebec0f!==undefined&&_0xebec0f!==null&&_0x584aab[_0x479a4c(0xfd)][_0x479a4c(0x178)](_0x43f7a4,String(_0xebec0f));}const _0x4b0c18=new AbortController(),_0x54d441=setTimeout(()=>_0x4b0c18[_0x479a4c(0x10d)](),timeout);try{const _0x835d9b=await fetch(_0x584aab[_0x479a4c(0x165)](),{'method':'GET','headers':{'Accept':_0x479a4c(0x130),'X-Invoke-Source':PRODUCT_CONFIG[_0x479a4c(0x161)],'X-User-AK':_0x395bf0,...headers},'signal':_0x4b0c18[_0x479a4c(0x14b)]});if(!_0x835d9b['ok']){let _0x299f8d;try{const _0x1c7667=await _0x835d9b[_0x479a4c(0x150)]();_0x299f8d=_0x1c7667[_0x479a4c(0x155)]||_0x1c7667[_0x479a4c(0x166)]||_0x1c7667['msg']||_0x1c7667['errorCode'];}catch{_0x299f8d=await _0x835d9b[_0x479a4c(0x142)]()['catch'](()=>undefined);}throw CliErrors['apiError'](_0x299f8d||_0x479a4c(0x135)+_0x835d9b[_0x479a4c(0x137)],_0x479a4c(0x12d)+_0x584aab[_0x479a4c(0x165)]());}return Buffer['from'](await _0x835d9b[_0x479a4c(0x10f)]());}catch(_0x2118e3){if(_0x2118e3 instanceof Error&&_0x2118e3[_0x479a4c(0xff)]==='AbortError')throw CliErrors[_0x479a4c(0x13c)](_0x479a4c(0x157)+_0x584aab[_0x479a4c(0x165)]());throw _0x2118e3;}finally{clearTimeout(_0x54d441);}}export async function getBffScriptInfo(_0xb95915){const _0xf283b6=a56_0x85bc,_0x5ebf5d=await apiRequest(_0xf283b6(0x110)+_0xb95915);if(!_0x5ebf5d[_0xf283b6(0x16a)])throw CliErrors[_0xf283b6(0x120)](_0xf283b6(0x140)+_0xb95915);return _0x5ebf5d[_0xf283b6(0x16a)];}export async function getSqlQueryInfo(_0xbcfbac,_0x39ab6c){const _0x398282=a56_0x85bc,_0x5674dc=await apiRequest(_0x398282(0x172),{'method':_0x398282(0x126),'body':{'appCode':_0xbcfbac,'currentPage':0x1,'pageSize':0x1,'sqlCode':_0x39ab6c}}),_0x337bbe=_0x5674dc[_0x398282(0x16a)],_0x13ce02=_0x337bbe&&typeof _0x337bbe==='object'&&_0x398282(0x15b)in _0x337bbe?_0x337bbe[_0x398282(0x15b)]?.[0x0]:_0x337bbe&&typeof _0x337bbe===_0x398282(0x11d)&&_0x398282(0x153)in _0x337bbe?_0x337bbe:undefined;if(!_0x13ce02)throw CliErrors[_0x398282(0x120)](_0x398282(0x10a)+_0x39ab6c);return _0x13ce02;}function isRemoteAppItem(_0x3851d4){const _0x1a044c=a56_0x85bc;return!!_0x3851d4&&typeof _0x3851d4===_0x1a044c(0x11d)&&typeof _0x3851d4[_0x1a044c(0x13b)]===_0x1a044c(0x106)&&typeof _0x3851d4[_0x1a044c(0x132)]===_0x1a044c(0x106);}function extractRemoteAppItems(_0x2bdeca){const _0x26af2b=a56_0x85bc;if(Array['isArray'](_0x2bdeca))return _0x2bdeca[_0x26af2b(0x109)](isRemoteAppItem);if(!_0x2bdeca||typeof _0x2bdeca!==_0x26af2b(0x11d))throw CliErrors[_0x26af2b(0x13c)](_0x26af2b(0x167));const _0x42573b=_0x2bdeca;if(Array[_0x26af2b(0x14f)](_0x42573b[_0x26af2b(0x15b)]))return _0x42573b[_0x26af2b(0x15b)][_0x26af2b(0x109)](isRemoteAppItem);if(_0x42573b[_0x26af2b(0x16a)]&&typeof _0x42573b['data']===_0x26af2b(0x11d)){const _0x25737b=_0x42573b[_0x26af2b(0x16a)];if(Array['isArray'](_0x25737b['tableData']))return _0x25737b['tableData'][_0x26af2b(0x109)](isRemoteAppItem);}throw CliErrors[_0x26af2b(0x13c)](_0x26af2b(0x12b));}export async function getMyApps(){const _0x5656cb=a56_0x85bc,_0x8a5176=await apiRequest(_0x5656cb(0x12f));return extractRemoteAppItems(_0x8a5176[_0x5656cb(0x16a)]);}export async function getLoginUserInfo(){const _0x2e045f=a56_0x85bc,_0xdc605d=await apiRequest(_0x2e045f(0x10e));if(!_0xdc605d[_0x2e045f(0x16a)]||typeof _0xdc605d[_0x2e045f(0x16a)]!==_0x2e045f(0x11d)||Array['isArray'](_0xdc605d['data']))throw CliErrors[_0x2e045f(0x13c)](_0x2e045f(0x15f));return _0xdc605d['data'];}export async function listDatasets(_0xbba1eb,_0x2a4d7c){const _0x337e8b=a56_0x85bc,_0x5472a4=await apiRequest(_0x337e8b(0x125),{'method':_0x337e8b(0x126),'body':{'appCode':_0xbba1eb,..._0x2a4d7c?.[_0x337e8b(0xfe)]&&{'code':_0x2a4d7c[_0x337e8b(0xfe)]},..._0x2a4d7c?.[_0x337e8b(0xff)]&&{'name':_0x2a4d7c[_0x337e8b(0xff)]}}});return extractList(_0x5472a4['data']);}export async function getDatasetDetail(_0x48d53b){const _0x75b7a6=a56_0x85bc,_0x52c53c=/^\d+$/[_0x75b7a6(0x10b)](_0x48d53b)?'id':_0x75b7a6(0xfe),_0x50adc3=await apiRequest(_0x75b7a6(0x15d)+_0x52c53c+'='+_0x48d53b);return _0x50adc3[_0x75b7a6(0x16a)];}export async function getDatasetSdkUsageDoc(_0x2b2b15,_0x4aeec0){const _0x2ff533=a56_0x85bc,_0x1c957b=await toolboxRequest('api-doc-generator',{'datasetCode':_0x2b2b15,'appCode':_0x4aeec0});return typeof _0x1c957b?.[_0x2ff533(0x113)]===_0x2ff533(0x106)?_0x1c957b['markdown']:'';}export async function listRuntimeArtifacts(_0x313504,_0x310b1c){const _0x3b2cdb=a56_0x85bc,_0x58be80=new URLSearchParams({'appCode':_0x313504});if(_0x310b1c?.[_0x3b2cdb(0x114)])_0x58be80[_0x3b2cdb(0x178)](_0x3b2cdb(0x114),_0x310b1c[_0x3b2cdb(0x114)]);if(_0x310b1c?.[_0x3b2cdb(0x13f)])_0x58be80[_0x3b2cdb(0x178)](_0x3b2cdb(0x13f),_0x310b1c['source']);if(_0x310b1c?.[_0x3b2cdb(0x15e)]!==undefined)_0x58be80[_0x3b2cdb(0x178)]('favorite',String(_0x310b1c['favorite']));const _0x48bc23=await apiRequest(_0x3b2cdb(0x159)+_0x58be80['toString']());return Array[_0x3b2cdb(0x14f)](_0x48bc23[_0x3b2cdb(0x16a)])?_0x48bc23['data']:[];}export async function getRuntimeArtifact(_0x162ee2,_0x3d3619){const _0x258ef8=a56_0x85bc,_0x56a4aa=await apiRequest(_0x258ef8(0x143)+_0x162ee2+_0x258ef8(0x139)+encodeURIComponent(_0x3d3619));if(!_0x56a4aa[_0x258ef8(0x16a)])throw CliErrors[_0x258ef8(0x120)]('Artifact\x20not\x20found:\x20id='+_0x162ee2);return _0x56a4aa['data'];}export async function createRuntimeArtifact(_0x418014,_0x502453){const _0x56aa6e=a56_0x85bc,_0x123f17=await apiRequest(_0x56aa6e(0xfb),{'method':_0x56aa6e(0x126),'body':{'appCode':_0x418014,..._0x502453}});return _0x123f17[_0x56aa6e(0x16a)];}export async function updateRuntimeArtifact(_0x3bb53a,_0x19f10b,_0xa4a445){const _0x50b99e=a56_0x85bc,_0x3e9d3b=await apiRequest('/client/artifact/'+_0x3bb53a+_0x50b99e(0x138),{'method':_0x50b99e(0x126),'body':{'appCode':_0x19f10b,..._0xa4a445}});return _0x3e9d3b['data'];}function a56_0x85bc(_0x25dfc4,_0x392839){_0x25dfc4=_0x25dfc4-0xf9;const _0x5c5ab6=a56_0x5c5a();let _0x85bcf7=_0x5c5ab6[_0x25dfc4];return _0x85bcf7;}export async function listPersonalBffs(_0x49d315){const _0x483216=a56_0x85bc,_0x3c0456=await apiRequest(_0x483216(0x11a)+encodeURIComponent(_0x49d315));return Array[_0x483216(0x14f)](_0x3c0456['data'])?_0x3c0456[_0x483216(0x16a)]:[];}export async function getPersonalBff(_0x5397a6,_0x25530b){const _0x2784a0=a56_0x85bc,_0x1d7eae=await apiRequest(_0x2784a0(0x11e)+_0x5397a6+_0x2784a0(0x139)+encodeURIComponent(_0x25530b));if(!_0x1d7eae['data'])throw CliErrors[_0x2784a0(0x120)](_0x2784a0(0x15c)+_0x5397a6);return _0x1d7eae[_0x2784a0(0x16a)];}export async function createPersonalBff(_0x293a89,_0x409e35){const _0x18ba67=a56_0x85bc,_0x582eed=await apiRequest(_0x18ba67(0x107),{'method':_0x18ba67(0x126),'body':{'appCode':_0x293a89,..._0x409e35}});return _0x582eed[_0x18ba67(0x16a)];}export async function updatePersonalBff(_0x51f122,_0x5b34af,_0x435e68){const _0x24935b=a56_0x85bc,_0x4fee46=await apiRequest(_0x24935b(0x11e)+_0x51f122+_0x24935b(0x138),{'method':_0x24935b(0x126),'body':{'appCode':_0x5b34af,..._0x435e68}});return _0x4fee46[_0x24935b(0x16a)];}export async function executePersonalBff(_0x5bdfee,_0x2e3f11,_0x269562){const _0x29e0d4=a56_0x85bc,_0x1e7a03=await apiRequest(_0x29e0d4(0x11e)+_0x5bdfee+_0x29e0d4(0x127)+encodeURIComponent(_0x2e3f11),{'method':_0x29e0d4(0x126),'body':_0x269562});return _0x1e7a03['data'];}export async function listPersonalKnowledgeBaseItems(_0x2e145c){const _0x10c8d3=a56_0x85bc,_0x1188ed=await apiRequest(_0x10c8d3(0x115)+encodeURIComponent(_0x2e145c));return Array[_0x10c8d3(0x14f)](_0x1188ed[_0x10c8d3(0x16a)])?_0x1188ed[_0x10c8d3(0x16a)]:[];}export async function getPersonalKnowledgeBaseItem(_0x5dfd42,_0x368ed9){const _0x330257=a56_0x85bc,_0xeff97e=await apiRequest('/client/knowledge-base/personal/'+_0x5dfd42+_0x330257(0x139)+encodeURIComponent(_0x368ed9));if(!_0xeff97e['data'])throw CliErrors['validation']('Knowledge-base\x20entry\x20not\x20found:\x20id='+_0x5dfd42);return _0xeff97e[_0x330257(0x16a)];}export async function createPersonalKnowledgeBaseItem(_0x52bb4b,_0x3893a9){const _0x4ba89f=a56_0x85bc,_0x218f7b=await apiRequest('/client/knowledge-base/personal/create',{'method':_0x4ba89f(0x126),'body':{'appCode':_0x52bb4b,..._0x3893a9}});return _0x218f7b[_0x4ba89f(0x16a)];}export async function updatePersonalKnowledgeBaseItem(_0x581a3a,_0x4c80e0,_0x316443){const _0x1ac381=a56_0x85bc,_0x4cf432=await apiRequest(_0x1ac381(0x13e)+_0x581a3a+'/update',{'method':_0x1ac381(0x126),'body':{'appCode':_0x4c80e0,..._0x316443}});return _0x4cf432[_0x1ac381(0x16a)];}export async function searchKnowledgeBase(_0x580fdb,_0xb14f85){const _0x5f5d64=a56_0x85bc,_0xce26a6=await apiRequest('/client/knowledge-base/search',{'method':_0x5f5d64(0x126),'body':{'appCode':_0x580fdb,'query':_0xb14f85[_0x5f5d64(0x134)],..._0xb14f85[_0x5f5d64(0x158)]!==undefined?{'topK':_0xb14f85[_0x5f5d64(0x158)]}:{}}});return Array[_0x5f5d64(0x14f)](_0xce26a6[_0x5f5d64(0x16a)])?_0xce26a6['data']:[];}export async function listRuntimeSkills(_0x176cd2){const _0x6138c3=a56_0x85bc,_0x6abd0d=await skillHubJsonRequest(_0x6138c3(0x160)+encodeURIComponent(_0x176cd2[_0x6138c3(0x13b)])+_0x6138c3(0x12e),{'query':{'page':0x0,'size':0xc8}});return normalizeSkillHubRuntimeListResponse(_0x176cd2[_0x6138c3(0x13b)],_0x6abd0d,_0x176cd2[_0x6138c3(0x175)]??_0x6138c3(0xf9),_0x176cd2[_0x6138c3(0xfe)]);}export async function listPersonalRuntimeSkills(_0x494247){const _0x2cba11=a56_0x85bc;return(await listRuntimeSkills({'appCode':_0x494247,'scope':'personal'}))[_0x2cba11(0x171)];}export async function listCompanyRuntimeSkills(_0x1e0297){const _0xa42aaf=a56_0x85bc;return(await listRuntimeSkills({'appCode':_0x1e0297,'scope':_0xa42aaf(0x124)}))['company'];}export async function listVisibleRuntimeSkills(_0x3a18e3){const _0x2527a4=a56_0x85bc;return(await listRuntimeSkills({'appCode':_0x3a18e3,'scope':_0x2527a4(0xf9)}))[_0x2527a4(0x14d)];}export async function createPersonalRuntimeSkill(_0x550030,_0x92ac1e){return publishRuntimeSkill(_0x550030,_0x92ac1e);}export async function updatePersonalRuntimeSkill(_0x58003,_0x369cc8,_0x11623c){const _0x5c8b92=a56_0x85bc;return publishRuntimeSkill(_0x369cc8,{..._0x11623c,'skillCode':_0x11623c[_0x5c8b92(0x102)]??_0x58003});}export async function downloadRuntimeSkillPackage(_0x33c346,_0x15bfb5,_0xa0774f,_0x5583b4){const _0x3c7af6=a56_0x85bc;void _0x33c346;const _0x1e8579=_0x5583b4?_0x3c7af6(0x105)+encodeURIComponent(_0xa0774f)+'/'+encodeURIComponent(_0x15bfb5)+_0x3c7af6(0x121)+encodeURIComponent(_0x5583b4)+_0x3c7af6(0x128):_0x3c7af6(0x105)+encodeURIComponent(_0xa0774f)+'/'+encodeURIComponent(_0x15bfb5)+_0x3c7af6(0x128);return skillHubBinaryRequest(_0x1e8579);}async function publishRuntimeSkill(_0x21ef01,_0x50e3d5){const _0x5caedd=a56_0x85bc,_0x1acfd6=new FormData();_0x1acfd6[_0x5caedd(0x178)](_0x5caedd(0x16c),runtimeSkillPackageFile(_0x50e3d5)),_0x1acfd6[_0x5caedd(0x178)]('visibility','PRIVATE');const _0x58acf6=await skillHubJsonRequest('/api/cli/v1/skills/'+encodeURIComponent(_0x21ef01)+_0x5caedd(0x103),{'method':_0x5caedd(0x126),'body':_0x1acfd6});return{'appCode':_0x58acf6[_0x5caedd(0x149)]??_0x21ef01,'skillCode':_0x58acf6[_0x5caedd(0x16e)]??_0x50e3d5[_0x5caedd(0x102)]??'','skillName':_0x50e3d5[_0x5caedd(0x119)]??_0x58acf6['slug']??_0x50e3d5['skillCode'],'description':_0x50e3d5[_0x5caedd(0x11c)],'scope':skillHubVisibilityToScope(_0x58acf6['visibility'])??'personal','version':_0x58acf6['version']??_0x50e3d5[_0x5caedd(0xfc)],'tags':_0x50e3d5[_0x5caedd(0x12c)],'content':_0x50e3d5[_0x5caedd(0x101)]};}function runtimeSkillPackageFile(_0x751518){const _0x2f0fea=a56_0x85bc;if(!_0x751518[_0x2f0fea(0x100)])throw CliErrors[_0x2f0fea(0x120)](_0x2f0fea(0x10c));const _0x2c86e8=Buffer[_0x2f0fea(0x11f)](_0x751518['packageBase64'],_0x2f0fea(0x13a)),_0x4061f5=new Blob([_0x2c86e8],{'type':'application/zip'}),_0x1014f3=(_0x751518[_0x2f0fea(0x102)]||'skill')+'.zip';if(typeof File!==_0x2f0fea(0x141))return new File([_0x4061f5],_0x1014f3,{'type':'application/zip'});return _0x4061f5;}function normalizeSkillHubRuntimeListResponse(_0x305a02,_0x5a6080,_0x674c65,_0x3b810b){const _0x3bede6=a56_0x85bc,_0x34393d=Array[_0x3bede6(0x14f)](_0x5a6080)?_0x5a6080:Array['isArray'](_0x5a6080?.[_0x3bede6(0x144)])?_0x5a6080[_0x3bede6(0x144)]:[],_0x9a7eae=_0x3b810b?.['trim'](),_0x5b01c4=_0x34393d['filter'](_0x547a0c=>!_0x9a7eae||_0x547a0c['slug']===_0x9a7eae)[_0x3bede6(0x129)](skillHubRuntimeItemToRuntimeSkill)[_0x3bede6(0x109)](_0x12bfb1=>Boolean(_0x12bfb1)),_0x5c0c1a=_0x5b01c4[_0x3bede6(0x109)](_0x90c867=>_0x90c867[_0x3bede6(0x175)]===_0x3bede6(0x171)),_0x2a1c5d=_0x5b01c4[_0x3bede6(0x109)](_0x26e977=>_0x26e977[_0x3bede6(0x175)]===_0x3bede6(0x124)),_0x281eb0=_0x5b01c4[_0x3bede6(0x109)](_0x1ab286=>_0x1ab286[_0x3bede6(0x175)]===_0x3bede6(0x116));return{'appCode':_0x305a02,'personal':_0x674c65===_0x3bede6(0x124)||_0x674c65===_0x3bede6(0x116)?[]:_0x5c0c1a,'company':_0x674c65===_0x3bede6(0x171)||_0x674c65==='public'?[]:_0x2a1c5d,'public':_0x674c65===_0x3bede6(0x171)||_0x674c65===_0x3bede6(0x124)?[]:_0x281eb0,'effective':buildEffectiveRuntimeSkills(_0x5c0c1a,_0x2a1c5d,_0x281eb0,_0x674c65)};}function skillHubRuntimeItemToRuntimeSkill(_0x3b112b){const _0x26a9cd=a56_0x85bc,_0x4171f9=_0x3b112b[_0x26a9cd(0x16e)]?.[_0x26a9cd(0x131)](),_0xcc1a3b=skillHubVisibilityToScope(_0x3b112b[_0x26a9cd(0x156)]);if(!_0x4171f9||!_0xcc1a3b)return undefined;return{'id':_0x3b112b['id'],'appCode':_0x3b112b[_0x26a9cd(0x149)],'skillCode':_0x4171f9,'skillName':_0x3b112b[_0x26a9cd(0x108)]??_0x4171f9,'description':_0x3b112b[_0x26a9cd(0x151)],'scope':_0xcc1a3b,'version':skillHubRuntimeItemVersion(_0x3b112b),'status':_0x3b112b[_0x26a9cd(0x137)]};}function skillHubVisibilityToScope(_0x274e08){const _0x1491d8=a56_0x85bc;if(_0x274e08===_0x1491d8(0x133))return _0x1491d8(0x171);if(_0x274e08===_0x1491d8(0x117))return _0x1491d8(0x124);if(_0x274e08===_0x1491d8(0x15a))return'public';return undefined;}function skillHubRuntimeItemVersion(_0x569e3e){const _0x3f8d4d=a56_0x85bc;return _0x569e3e['publishedVersion']?.[_0x3f8d4d(0xfc)]??_0x569e3e[_0x3f8d4d(0x14c)]?.[_0x3f8d4d(0xfc)]??_0x569e3e[_0x3f8d4d(0x16f)]?.[_0x3f8d4d(0xfc)];}function buildEffectiveRuntimeSkills(_0x1d11e4,_0x358521,_0x2fc553,_0x2287ac){const _0x2cadc2=a56_0x85bc;if(_0x2287ac===_0x2cadc2(0x171))return _0x1d11e4;if(_0x2287ac===_0x2cadc2(0x124))return _0x358521;if(_0x2287ac===_0x2cadc2(0x116))return _0x2fc553;const _0x430425=new Map();for(const _0xb7c895 of _0x2fc553){_0x430425['set'](_0xb7c895[_0x2cadc2(0x102)],_0xb7c895);}for(const _0xa0d880 of _0x358521){_0x430425[_0x2cadc2(0x178)](_0xa0d880[_0x2cadc2(0x102)],_0xa0d880);}for(const _0x19a17b of _0x1d11e4){_0x430425[_0x2cadc2(0x178)](_0x19a17b[_0x2cadc2(0x102)],_0x19a17b);}return Array[_0x2cadc2(0x11f)](_0x430425['values']());}function normalizeRuntimeSkillListResponse(_0x425b5a,_0x492545){const _0x45ad8c=a56_0x85bc;if(Array[_0x45ad8c(0x14f)](_0x492545)){const _0x16556f=_0x492545['filter'](_0x5c80a3=>_0x5c80a3[_0x45ad8c(0x175)]===_0x45ad8c(0x171)),_0x59f892=_0x492545[_0x45ad8c(0x109)](_0x5bfce3=>_0x5bfce3[_0x45ad8c(0x175)]===_0x45ad8c(0x124)),_0x38bb92=_0x492545[_0x45ad8c(0x109)](_0x41fcf5=>_0x41fcf5[_0x45ad8c(0x175)]===_0x45ad8c(0x116));return{'appCode':_0x425b5a,'personal':_0x16556f,'company':_0x59f892,'public':_0x38bb92,'effective':_0x492545[_0x45ad8c(0x109)](_0x2b177e=>_0x2b177e['scope']!==_0x45ad8c(0x16b))};}return{'appCode':_0x492545?.[_0x45ad8c(0x13b)]??_0x425b5a,'personal':Array['isArray'](_0x492545?.[_0x45ad8c(0x171)])?_0x492545[_0x45ad8c(0x171)]:[],'company':Array[_0x45ad8c(0x14f)](_0x492545?.[_0x45ad8c(0x124)])?_0x492545[_0x45ad8c(0x124)]:[],'public':Array['isArray'](_0x492545?.[_0x45ad8c(0x116)])?_0x492545[_0x45ad8c(0x116)]:[],'effective':Array[_0x45ad8c(0x14f)](_0x492545?.['effective'])?_0x492545[_0x45ad8c(0x14d)]:[]};}
1
+ (function(_0x6bdc30,_0x3ac6cc){const _0x36a5fc=a56_0x5f01,_0x27bfee=_0x6bdc30();while(!![]){try{const _0x26bd72=parseInt(_0x36a5fc(0x157))/0x1+parseInt(_0x36a5fc(0x148))/0x2*(parseInt(_0x36a5fc(0x158))/0x3)+parseInt(_0x36a5fc(0x160))/0x4+parseInt(_0x36a5fc(0x1a5))/0x5*(parseInt(_0x36a5fc(0x163))/0x6)+-parseInt(_0x36a5fc(0x192))/0x7+parseInt(_0x36a5fc(0x193))/0x8*(-parseInt(_0x36a5fc(0x15c))/0x9)+parseInt(_0x36a5fc(0x182))/0xa*(-parseInt(_0x36a5fc(0x135))/0xb);if(_0x26bd72===_0x3ac6cc)break;else _0x27bfee['push'](_0x27bfee['shift']());}catch(_0x1df2b1){_0x27bfee['push'](_0x27bfee['shift']());}}}(a56_0x1f49,0x4ac91));import{getApiDomain,getRuntimeDomain,getSkillHubDomain}from'../constant/domain.js';function a56_0x5f01(_0x23a3fb,_0x38c0e1){_0x23a3fb=_0x23a3fb-0x130;const _0x1f4986=a56_0x1f49();let _0x5f015b=_0x1f4986[_0x23a3fb];return _0x5f015b;}import{PRODUCT_CONFIG}from'../constant/product.js';import{CliErrors}from'../errors.js';import{extractList}from'../framework/response.js';let _activeAK;function a56_0x1f49(){const _0x467206=['/api/runtime/v1/namespaces/','appCode','/client/user/loginUserInfo','map','packageBase64','user','abort','194930WTwEWj','/download','text','/skills','Toolbox\x20error\x20code:\x20','errorMsg','Check\x20your\x20credentials\x20and\x20try\x20again.','status','artifactType','.zip','query','SQL\x20query\x20not\x20found:\x20','isArray','application/zip','favorite','signal','1411599jaldfm','269888CVmzPK','skillCode','/publish','msg','/client/dataset/query?','POST','/client/sql/query','filter','/client/knowledge-base/personal/list?appCode=','items','application/octet-stream','string','/client/knowledge-base/search','/client/dataset/list','Knowledge-base\x20entry\x20not\x20found:\x20id=','name','errorCode','/client/runtime-bff/personal/create','415QmTjyk','from','/update','trim','Missing\x20Skill\x20package\x20payload.','data','/client/artifact/list?','tableData','source','apiError','SkillHub\x20API\x20error:\x20','/client/knowledge-base/personal/create','summary','/api/node-toolbox/','stringify','toString','message','object','242NbfhEb','slug','Configure\x20accessKey\x20in\x20','version','set','/execute?appCode=','catch','personal','Request\x20timeout:\x20','scope','Toolbox\x20returned\x20non-JSON\x20response\x20(HTTP\x20','base64','public','api-doc-generator','authRequired','invokeSource','publishedVersion','?appCode=','PUBLIC','38tdgsnN','/client/runtime-bff/personal/','topK','/client/knowledge-base/personal/','SkillHub\x20error\x20code:\x20','validation','number','AbortError','headlineVersion','ownerPreviewVersion','/client/app/my-apps','Toolbox\x20API\x20error:\x20','replace','/client/artifact/','entries','263068BXOjzW','45606YykliS','namespace','file','application/json','126KcORhf','undefined','Invalid\x20login\x20user\x20info\x20response:\x20expected\x20object.','displayName','2222732wTAbfU','Invalid\x20app\x20list\x20response:\x20expected\x20object\x20or\x20array.','PRIVATE','21798FLgZIG','Personal\x20BFF\x20not\x20found:\x20id=','company','success','json','API\x20returned\x20non-JSON\x20response\x20(HTTP\x20','visibility','searchParams','code','/client/runtime-bff/personal/list?appCode=','skillName','BFF\x20script\x20not\x20found:\x20id=','/api/cli/v1/skills/','newConfigFileName','/versions/','markdown','API\x20error:\x20','appName','sqlCode','values','effective','Artifact\x20not\x20found:\x20id=','GET','tags'];a56_0x1f49=function(){return _0x467206;};return a56_0x1f49();}export function setActiveAK(_0x3b578c){_activeAK=_0x3b578c||undefined;}export function clearActiveAK(){_activeAK=undefined;}async function apiRequest(_0xfb8488,_0xfe9d57={}){const _0x51659b=a56_0x5f01,{method:method=_0x51659b(0x179),body:_0x25e92d,headers:headers={},timeout:timeout=0x7530}=_0xfe9d57,_0x49cea5=_activeAK,_0xfb1d00=getRuntimeDomain();if(!_0x49cea5)throw CliErrors[_0x51659b(0x143)](_0x51659b(0x137)+PRODUCT_CONFIG[_0x51659b(0x170)]+'.');const _0x3137fb=''+_0xfb1d00+_0xfb8488,_0xf798b4={'X-User-AK':_0x49cea5},_0x571215=new AbortController(),_0x32f71f=setTimeout(()=>_0x571215[_0x51659b(0x181)](),timeout);try{const _0x32e79a=await fetch(_0x3137fb,{'method':method,'headers':{'Content-Type':_0x51659b(0x15b),'X-Invoke-Source':PRODUCT_CONFIG['invokeSource'],..._0xf798b4,...headers},'body':_0x25e92d?JSON[_0x51659b(0x131)](_0x25e92d):undefined,'signal':_0x571215[_0x51659b(0x191)]});let _0x457b6b;try{_0x457b6b=await _0x32e79a['json']();}catch{throw CliErrors[_0x51659b(0x1ae)](_0x51659b(0x168)+_0x32e79a['status']+')',_0x32e79a['status']>=0x190?_0x51659b(0x188):undefined);}if(!_0x32e79a['ok']||_0x457b6b[_0x51659b(0x166)]===![])throw CliErrors[_0x51659b(0x1ae)](_0x457b6b['errorMsg']||_0x457b6b[_0x51659b(0x133)]||_0x51659b(0x173)+_0x32e79a[_0x51659b(0x189)],_0x457b6b[_0x51659b(0x1a3)]?'API\x20error\x20code:\x20'+_0x457b6b['errorCode']:undefined);return _0x457b6b;}catch(_0xc02706){if(_0xc02706 instanceof Error&&_0xc02706[_0x51659b(0x1a2)]===_0x51659b(0x14f))throw CliErrors[_0x51659b(0x1ae)](_0x51659b(0x13d)+_0x3137fb);throw _0xc02706;}finally{clearTimeout(_0x32f71f);}}async function apiBinaryRequest(_0x2b1f96,_0xa2423a={}){const _0x364381=a56_0x5f01,{method:method=_0x364381(0x179),headers:headers={},timeout:timeout=0x7530}=_0xa2423a,_0x24af66=_activeAK,_0x539976=getRuntimeDomain();if(!_0x24af66)throw CliErrors[_0x364381(0x143)]('Configure\x20accessKey\x20in\x20'+PRODUCT_CONFIG['newConfigFileName']+'.');const _0xb483c1=''+_0x539976+_0x2b1f96,_0x64f714=new AbortController(),_0x26f1dd=setTimeout(()=>_0x64f714[_0x364381(0x181)](),timeout);try{const _0x503b67=await fetch(_0xb483c1,{'method':method,'headers':{'X-Invoke-Source':PRODUCT_CONFIG[_0x364381(0x144)],'X-User-AK':_0x24af66,...headers},'signal':_0x64f714[_0x364381(0x191)]});if(!_0x503b67['ok']){let _0x10453e;try{const _0x44f096=await _0x503b67[_0x364381(0x167)]();_0x10453e=_0x44f096['errorMsg']||_0x44f096['message']||_0x44f096[_0x364381(0x1a3)];}catch{_0x10453e=await _0x503b67[_0x364381(0x184)]()[_0x364381(0x13b)](()=>undefined);}throw CliErrors[_0x364381(0x1ae)](_0x10453e||'API\x20error:\x20'+_0x503b67[_0x364381(0x189)],'Download\x20failed:\x20'+_0xb483c1);}return Buffer[_0x364381(0x1a6)](await _0x503b67['arrayBuffer']());}catch(_0x2ff97f){if(_0x2ff97f instanceof Error&&_0x2ff97f['name']==='AbortError')throw CliErrors[_0x364381(0x1ae)](_0x364381(0x13d)+_0xb483c1);throw _0x2ff97f;}finally{clearTimeout(_0x26f1dd);}}async function toolboxRequest(_0x1e9c00,_0x1b7193,_0x31a263={}){const _0x42adcf=a56_0x5f01,{method:method='GET',headers:headers={},timeout:timeout=0x7530}=_0x31a263,_0x46415f=_activeAK;if(!_0x46415f)throw CliErrors['authRequired'](_0x42adcf(0x137)+PRODUCT_CONFIG[_0x42adcf(0x170)]+'.');const _0x112a4a=getApiDomain()['replace'](/\/$/,''),_0x44cec3=new URL(_0x1e9c00,_0x112a4a+_0x42adcf(0x130));if(_0x1b7193)for(const [_0x54e757,_0x400b89]of Object[_0x42adcf(0x156)](_0x1b7193)){_0x400b89!==undefined&&_0x400b89!==null&&_0x44cec3[_0x42adcf(0x16a)][_0x42adcf(0x139)](_0x54e757,String(_0x400b89));}const _0x40f084=new AbortController(),_0x2e4e30=setTimeout(()=>_0x40f084[_0x42adcf(0x181)](),timeout);try{const _0xb39f5b=await fetch(_0x44cec3,{'method':method,'headers':{'Content-Type':'application/json','X-Invoke-Source':PRODUCT_CONFIG['invokeSource'],'X-User-AK':_0x46415f,...headers},'signal':_0x40f084[_0x42adcf(0x191)]});let _0x132be4;try{_0x132be4=await _0xb39f5b[_0x42adcf(0x167)]();}catch{throw CliErrors[_0x42adcf(0x1ae)](_0x42adcf(0x13f)+_0xb39f5b[_0x42adcf(0x189)]+')',_0xb39f5b['status']>=0x190?'Check\x20your\x20credentials\x20and\x20try\x20again.':undefined);}if(!_0xb39f5b['ok']){const _0x36e164=_0x132be4&&typeof _0x132be4===_0x42adcf(0x134)?_0x132be4:{};throw CliErrors[_0x42adcf(0x1ae)](_0x36e164[_0x42adcf(0x187)]||_0x36e164[_0x42adcf(0x133)]||_0x42adcf(0x153)+_0xb39f5b[_0x42adcf(0x189)],_0x36e164[_0x42adcf(0x1a3)]?_0x42adcf(0x186)+_0x36e164[_0x42adcf(0x1a3)]:undefined);}if(_0x132be4&&typeof _0x132be4===_0x42adcf(0x134)&&_0x42adcf(0x166)in _0x132be4&&typeof _0x132be4[_0x42adcf(0x166)]==='boolean'){const _0x5e1b3c=_0x132be4;if(!_0x5e1b3c[_0x42adcf(0x166)])throw CliErrors[_0x42adcf(0x1ae)](_0x5e1b3c['errorMsg']||_0x5e1b3c[_0x42adcf(0x133)]||'Toolbox\x20API\x20error',_0x5e1b3c[_0x42adcf(0x1a3)]?_0x42adcf(0x186)+_0x5e1b3c[_0x42adcf(0x1a3)]:undefined);return _0x5e1b3c['data'];}return _0x132be4;}catch(_0x35bd21){if(_0x35bd21 instanceof Error&&_0x35bd21[_0x42adcf(0x1a2)]==='AbortError')throw CliErrors[_0x42adcf(0x1ae)]('Request\x20timeout:\x20'+_0x44cec3[_0x42adcf(0x132)]());throw _0x35bd21;}finally{clearTimeout(_0x2e4e30);}}async function skillHubJsonRequest(_0x2fb504,_0x2bd83c={}){const _0x21817b=a56_0x5f01,{method:method='GET',query:_0xde72d7,body:_0x435150,headers:headers={},timeout:timeout=0x7530}=_0x2bd83c,_0x3b2c95=_activeAK;if(!_0x3b2c95)throw CliErrors[_0x21817b(0x143)](_0x21817b(0x137)+PRODUCT_CONFIG['newConfigFileName']+'.');const _0x5ed5be=getSkillHubDomain()[_0x21817b(0x154)](/\/$/,''),_0x20721c=new URL(_0x2fb504,_0x5ed5be+'/');if(_0xde72d7)for(const [_0x5801d3,_0x3b799d]of Object[_0x21817b(0x156)](_0xde72d7)){_0x3b799d!==undefined&&_0x3b799d!==null&&_0x20721c[_0x21817b(0x16a)][_0x21817b(0x139)](_0x5801d3,String(_0x3b799d));}const _0x1140b8=new AbortController(),_0x2f1a98=setTimeout(()=>_0x1140b8[_0x21817b(0x181)](),timeout);try{const _0x6419f3=await fetch(_0x20721c[_0x21817b(0x132)](),{'method':method,'headers':{'Accept':_0x21817b(0x15b),'X-Invoke-Source':PRODUCT_CONFIG[_0x21817b(0x144)],'X-User-AK':_0x3b2c95,...headers},'body':_0x435150,'signal':_0x1140b8[_0x21817b(0x191)]});let _0x2d667d;try{_0x2d667d=await _0x6419f3[_0x21817b(0x167)]();}catch{throw CliErrors[_0x21817b(0x1ae)]('SkillHub\x20returned\x20non-JSON\x20response\x20(HTTP\x20'+_0x6419f3['status']+')',_0x6419f3[_0x21817b(0x189)]>=0x190?'Check\x20your\x20credentials\x20and\x20try\x20again.':undefined);}const _0x454534=!_0x6419f3['ok']||_0x2d667d?.[_0x21817b(0x166)]===![]||typeof _0x2d667d?.[_0x21817b(0x16b)]===_0x21817b(0x14e)&&_0x2d667d[_0x21817b(0x16b)]>=0x190;if(_0x454534)throw CliErrors['apiError'](_0x2d667d?.[_0x21817b(0x187)]||_0x2d667d?.[_0x21817b(0x133)]||_0x2d667d?.[_0x21817b(0x196)]||'SkillHub\x20API\x20error:\x20'+_0x6419f3[_0x21817b(0x189)],_0x2d667d?.['errorCode']?_0x21817b(0x14c)+_0x2d667d['errorCode']:undefined);return _0x2d667d?.[_0x21817b(0x1aa)]??_0x2d667d;}catch(_0x410241){if(_0x410241 instanceof Error&&_0x410241[_0x21817b(0x1a2)]===_0x21817b(0x14f))throw CliErrors[_0x21817b(0x1ae)](_0x21817b(0x13d)+_0x20721c['toString']());throw _0x410241;}finally{clearTimeout(_0x2f1a98);}}async function skillHubBinaryRequest(_0x33c8b9,_0x719c2c={}){const _0x67fcc3=a56_0x5f01,{query:_0x3f114f,headers:headers={},timeout:timeout=0x7530}=_0x719c2c,_0x19e60a=_activeAK;if(!_0x19e60a)throw CliErrors['authRequired'](_0x67fcc3(0x137)+PRODUCT_CONFIG[_0x67fcc3(0x170)]+'.');const _0x4eda25=getSkillHubDomain()[_0x67fcc3(0x154)](/\/$/,''),_0x3c67f3=new URL(_0x33c8b9,_0x4eda25+'/');if(_0x3f114f)for(const [_0x202511,_0x5d8ff0]of Object[_0x67fcc3(0x156)](_0x3f114f)){_0x5d8ff0!==undefined&&_0x5d8ff0!==null&&_0x3c67f3[_0x67fcc3(0x16a)][_0x67fcc3(0x139)](_0x202511,String(_0x5d8ff0));}const _0x5b9f90=new AbortController(),_0x2f3f47=setTimeout(()=>_0x5b9f90['abort'](),timeout);try{const _0x519b61=await fetch(_0x3c67f3[_0x67fcc3(0x132)](),{'method':_0x67fcc3(0x179),'headers':{'Accept':_0x67fcc3(0x19d),'X-Invoke-Source':PRODUCT_CONFIG[_0x67fcc3(0x144)],'X-User-AK':_0x19e60a,...headers},'signal':_0x5b9f90[_0x67fcc3(0x191)]});if(!_0x519b61['ok']){let _0x174a61;try{const _0x3e7dea=await _0x519b61[_0x67fcc3(0x167)]();_0x174a61=_0x3e7dea[_0x67fcc3(0x187)]||_0x3e7dea[_0x67fcc3(0x133)]||_0x3e7dea['msg']||_0x3e7dea['errorCode'];}catch{_0x174a61=await _0x519b61[_0x67fcc3(0x184)]()[_0x67fcc3(0x13b)](()=>undefined);}throw CliErrors[_0x67fcc3(0x1ae)](_0x174a61||_0x67fcc3(0x1af)+_0x519b61[_0x67fcc3(0x189)],'Download\x20failed:\x20'+_0x3c67f3['toString']());}return Buffer[_0x67fcc3(0x1a6)](await _0x519b61['arrayBuffer']());}catch(_0x5a9834){if(_0x5a9834 instanceof Error&&_0x5a9834[_0x67fcc3(0x1a2)]===_0x67fcc3(0x14f))throw CliErrors['apiError'](_0x67fcc3(0x13d)+_0x3c67f3[_0x67fcc3(0x132)]());throw _0x5a9834;}finally{clearTimeout(_0x2f3f47);}}export async function getBffScriptInfo(_0x209f03){const _0x427fdd=a56_0x5f01,_0x2902c0=await apiRequest('/client/bff/query/'+_0x209f03);if(!_0x2902c0['data'])throw CliErrors[_0x427fdd(0x14d)](_0x427fdd(0x16e)+_0x209f03);return _0x2902c0[_0x427fdd(0x1aa)];}export async function getSqlQueryInfo(_0x4ecd6e,_0x2d9d2b){const _0x255bc6=a56_0x5f01,_0x3f0162=await apiRequest(_0x255bc6(0x199),{'method':_0x255bc6(0x198),'body':{'appCode':_0x4ecd6e,'currentPage':0x1,'pageSize':0x1,'sqlCode':_0x2d9d2b}}),_0x13da9b=_0x3f0162[_0x255bc6(0x1aa)],_0x1c9768=_0x13da9b&&typeof _0x13da9b===_0x255bc6(0x134)&&'tableData'in _0x13da9b?_0x13da9b[_0x255bc6(0x1ac)]?.[0x0]:_0x13da9b&&typeof _0x13da9b===_0x255bc6(0x134)&&_0x255bc6(0x175)in _0x13da9b?_0x13da9b:undefined;if(!_0x1c9768)throw CliErrors[_0x255bc6(0x14d)](_0x255bc6(0x18d)+_0x2d9d2b);return _0x1c9768;}function isRemoteAppItem(_0x1db585){const _0x33e580=a56_0x5f01;return!!_0x1db585&&typeof _0x1db585==='object'&&typeof _0x1db585[_0x33e580(0x17c)]===_0x33e580(0x19e)&&typeof _0x1db585[_0x33e580(0x174)]===_0x33e580(0x19e);}function extractRemoteAppItems(_0x2e8ec6){const _0x15541e=a56_0x5f01;if(Array[_0x15541e(0x18e)](_0x2e8ec6))return _0x2e8ec6['filter'](isRemoteAppItem);if(!_0x2e8ec6||typeof _0x2e8ec6!==_0x15541e(0x134))throw CliErrors['apiError'](_0x15541e(0x161));const _0x42d0a2=_0x2e8ec6;if(Array[_0x15541e(0x18e)](_0x42d0a2[_0x15541e(0x1ac)]))return _0x42d0a2[_0x15541e(0x1ac)]['filter'](isRemoteAppItem);if(_0x42d0a2[_0x15541e(0x1aa)]&&typeof _0x42d0a2[_0x15541e(0x1aa)]===_0x15541e(0x134)){const _0xc34f87=_0x42d0a2[_0x15541e(0x1aa)];if(Array[_0x15541e(0x18e)](_0xc34f87[_0x15541e(0x1ac)]))return _0xc34f87['tableData'][_0x15541e(0x19a)](isRemoteAppItem);}throw CliErrors[_0x15541e(0x1ae)]('Invalid\x20app\x20list\x20response:\x20missing\x20data.tableData.');}export async function getMyApps(){const _0x547897=a56_0x5f01,_0x372914=await apiRequest(_0x547897(0x152));return extractRemoteAppItems(_0x372914['data']);}export async function getLoginUserInfo(){const _0xd4782d=a56_0x5f01,_0x5a4106=await apiRequest(_0xd4782d(0x17d));if(!_0x5a4106['data']||typeof _0x5a4106[_0xd4782d(0x1aa)]!==_0xd4782d(0x134)||Array[_0xd4782d(0x18e)](_0x5a4106['data']))throw CliErrors[_0xd4782d(0x1ae)](_0xd4782d(0x15e));return _0x5a4106[_0xd4782d(0x1aa)];}export async function listDatasets(_0xe70493,_0x224806){const _0x1e85b3=a56_0x5f01,_0x279fb2=await apiRequest(_0x1e85b3(0x1a0),{'method':'POST','body':{'appCode':_0xe70493,..._0x224806?.[_0x1e85b3(0x16b)]&&{'code':_0x224806['code']},..._0x224806?.[_0x1e85b3(0x1a2)]&&{'name':_0x224806['name']}}});return extractList(_0x279fb2[_0x1e85b3(0x1aa)]);}export async function getDatasetDetail(_0x1cf618){const _0x5bfaf9=a56_0x5f01,_0x32686e=/^\d+$/['test'](_0x1cf618)?'id':'code',_0x37c6ea=await apiRequest(_0x5bfaf9(0x197)+_0x32686e+'='+_0x1cf618);return _0x37c6ea[_0x5bfaf9(0x1aa)];}export async function getDatasetSdkUsageDoc(_0x150612,_0x17ac53){const _0x1f0450=a56_0x5f01,_0x24ab15=await toolboxRequest(_0x1f0450(0x142),{'datasetCode':_0x150612,'appCode':_0x17ac53});return typeof _0x24ab15?.[_0x1f0450(0x172)]===_0x1f0450(0x19e)?_0x24ab15[_0x1f0450(0x172)]:'';}export async function listRuntimeArtifacts(_0x2acbdf,_0x3c74c7){const _0x13f0da=a56_0x5f01,_0x57805a=new URLSearchParams({'appCode':_0x2acbdf});if(_0x3c74c7?.[_0x13f0da(0x18a)])_0x57805a[_0x13f0da(0x139)](_0x13f0da(0x18a),_0x3c74c7[_0x13f0da(0x18a)]);if(_0x3c74c7?.[_0x13f0da(0x1ad)])_0x57805a[_0x13f0da(0x139)](_0x13f0da(0x1ad),_0x3c74c7[_0x13f0da(0x1ad)]);if(_0x3c74c7?.['favorite']!==undefined)_0x57805a[_0x13f0da(0x139)](_0x13f0da(0x190),String(_0x3c74c7['favorite']));const _0x5811bd=await apiRequest(_0x13f0da(0x1ab)+_0x57805a[_0x13f0da(0x132)]());return Array[_0x13f0da(0x18e)](_0x5811bd[_0x13f0da(0x1aa)])?_0x5811bd['data']:[];}export async function getRuntimeArtifact(_0x14840f,_0x532f70){const _0x403536=a56_0x5f01,_0x51535d=await apiRequest(_0x403536(0x155)+_0x14840f+_0x403536(0x146)+encodeURIComponent(_0x532f70));if(!_0x51535d['data'])throw CliErrors['validation'](_0x403536(0x178)+_0x14840f);return _0x51535d['data'];}export async function createRuntimeArtifact(_0x27f0d9,_0x77f477){const _0x20f5e8=a56_0x5f01,_0x34f709=await apiRequest('/client/artifact/create',{'method':'POST','body':{'appCode':_0x27f0d9,..._0x77f477}});return _0x34f709[_0x20f5e8(0x1aa)];}export async function updateRuntimeArtifact(_0xd996b1,_0x38b68e,_0x5b1871){const _0x265fe4=a56_0x5f01,_0x554a57=await apiRequest(_0x265fe4(0x155)+_0xd996b1+_0x265fe4(0x1a7),{'method':'POST','body':{'appCode':_0x38b68e,..._0x5b1871}});return _0x554a57[_0x265fe4(0x1aa)];}export async function listPersonalBffs(_0x592390){const _0x149597=a56_0x5f01,_0x3c343b=await apiRequest(_0x149597(0x16c)+encodeURIComponent(_0x592390));return Array['isArray'](_0x3c343b[_0x149597(0x1aa)])?_0x3c343b[_0x149597(0x1aa)]:[];}export async function getPersonalBff(_0xc12719,_0x30d74e){const _0x489161=a56_0x5f01,_0xa1a7a4=await apiRequest(_0x489161(0x149)+_0xc12719+'?appCode='+encodeURIComponent(_0x30d74e));if(!_0xa1a7a4[_0x489161(0x1aa)])throw CliErrors[_0x489161(0x14d)](_0x489161(0x164)+_0xc12719);return _0xa1a7a4[_0x489161(0x1aa)];}export async function createPersonalBff(_0x77661d,_0x38f838){const _0x446785=a56_0x5f01,_0x445932=await apiRequest(_0x446785(0x1a4),{'method':_0x446785(0x198),'body':{'appCode':_0x77661d,..._0x38f838}});return _0x445932[_0x446785(0x1aa)];}export async function updatePersonalBff(_0x172a18,_0x410fb5,_0x4a20c5){const _0x413465=a56_0x5f01,_0x3628bf=await apiRequest(_0x413465(0x149)+_0x172a18+_0x413465(0x1a7),{'method':_0x413465(0x198),'body':{'appCode':_0x410fb5,..._0x4a20c5}});return _0x3628bf[_0x413465(0x1aa)];}export async function executePersonalBff(_0x228b5a,_0x5235e7,_0x1fe689){const _0x47b252=a56_0x5f01,_0x33a8e1=await apiRequest(_0x47b252(0x149)+_0x228b5a+_0x47b252(0x13a)+encodeURIComponent(_0x5235e7),{'method':_0x47b252(0x198),'body':_0x1fe689});return _0x33a8e1[_0x47b252(0x1aa)];}export async function listPersonalKnowledgeBaseItems(_0x54589a){const _0x394b97=a56_0x5f01,_0x302f12=await apiRequest(_0x394b97(0x19b)+encodeURIComponent(_0x54589a));return Array['isArray'](_0x302f12[_0x394b97(0x1aa)])?_0x302f12[_0x394b97(0x1aa)]:[];}export async function getPersonalKnowledgeBaseItem(_0xb753c1,_0x5a5b87){const _0x2431db=a56_0x5f01,_0x19c4b9=await apiRequest('/client/knowledge-base/personal/'+_0xb753c1+'?appCode='+encodeURIComponent(_0x5a5b87));if(!_0x19c4b9[_0x2431db(0x1aa)])throw CliErrors['validation'](_0x2431db(0x1a1)+_0xb753c1);return _0x19c4b9[_0x2431db(0x1aa)];}export async function createPersonalKnowledgeBaseItem(_0x3773a3,_0x547ff1){const _0x2d6e47=a56_0x5f01,_0x2f3145=await apiRequest(_0x2d6e47(0x1b0),{'method':_0x2d6e47(0x198),'body':{'appCode':_0x3773a3,..._0x547ff1}});return _0x2f3145[_0x2d6e47(0x1aa)];}export async function updatePersonalKnowledgeBaseItem(_0x134a5d,_0x4c9fdf,_0x54d557){const _0x452f0b=a56_0x5f01,_0x446455=await apiRequest(_0x452f0b(0x14b)+_0x134a5d+'/update',{'method':_0x452f0b(0x198),'body':{'appCode':_0x4c9fdf,..._0x54d557}});return _0x446455[_0x452f0b(0x1aa)];}export async function searchKnowledgeBase(_0x5b2c65,_0x516611){const _0xf2d452=a56_0x5f01,_0x1fe50d=await apiRequest(_0xf2d452(0x19f),{'method':_0xf2d452(0x198),'body':{'appCode':_0x5b2c65,'query':_0x516611[_0xf2d452(0x18c)],..._0x516611['topK']!==undefined?{'topK':_0x516611[_0xf2d452(0x14a)]}:{}}});return Array[_0xf2d452(0x18e)](_0x1fe50d[_0xf2d452(0x1aa)])?_0x1fe50d[_0xf2d452(0x1aa)]:[];}export async function listRuntimeSkills(_0x39fbbe){const _0x56420c=a56_0x5f01,_0x50f8a1=await skillHubJsonRequest(_0x56420c(0x17b)+encodeURIComponent(_0x39fbbe[_0x56420c(0x17c)])+_0x56420c(0x185),{'query':{'page':0x0,'size':0xc8}});return normalizeSkillHubRuntimeListResponse(_0x39fbbe[_0x56420c(0x17c)],_0x50f8a1,_0x39fbbe['scope']??'user',_0x39fbbe[_0x56420c(0x16b)]);}export async function listPersonalRuntimeSkills(_0xbff641){const _0x2f498f=a56_0x5f01;return(await listRuntimeSkills({'appCode':_0xbff641,'scope':_0x2f498f(0x13c)}))['personal'];}export async function listCompanyRuntimeSkills(_0x4d74e9){const _0xa5bc94=a56_0x5f01;return(await listRuntimeSkills({'appCode':_0x4d74e9,'scope':_0xa5bc94(0x165)}))[_0xa5bc94(0x165)];}export async function listVisibleRuntimeSkills(_0xa9232d){const _0x2f2027=a56_0x5f01;return(await listRuntimeSkills({'appCode':_0xa9232d,'scope':_0x2f2027(0x180)}))[_0x2f2027(0x177)];}export async function createPersonalRuntimeSkill(_0x4e5d40,_0x2f3711){return publishRuntimeSkill(_0x4e5d40,_0x2f3711);}export async function updatePersonalRuntimeSkill(_0x33fa37,_0x1ef60b,_0x3ac182){const _0x59179e=a56_0x5f01;return publishRuntimeSkill(_0x1ef60b,{..._0x3ac182,'skillCode':_0x3ac182[_0x59179e(0x194)]??_0x33fa37});}export async function downloadRuntimeSkillPackage(_0xf79df1,_0x56d92d,_0x5aa1ef,_0x2bca0b){const _0x1313d0=a56_0x5f01;void _0xf79df1;const _0x128f05=_0x2bca0b?'/api/cli/v1/skills/'+encodeURIComponent(_0x5aa1ef)+'/'+encodeURIComponent(_0x56d92d)+_0x1313d0(0x171)+encodeURIComponent(_0x2bca0b)+_0x1313d0(0x183):_0x1313d0(0x16f)+encodeURIComponent(_0x5aa1ef)+'/'+encodeURIComponent(_0x56d92d)+_0x1313d0(0x183);return skillHubBinaryRequest(_0x128f05);}async function publishRuntimeSkill(_0x4e8e6c,_0x437f7f){const _0x54fd11=a56_0x5f01,_0x42bc49=new FormData();_0x42bc49['set'](_0x54fd11(0x15a),runtimeSkillPackageFile(_0x437f7f)),_0x42bc49[_0x54fd11(0x139)](_0x54fd11(0x169),_0x54fd11(0x162));const _0x49638c=await skillHubJsonRequest('/api/cli/v1/skills/'+encodeURIComponent(_0x4e8e6c)+_0x54fd11(0x195),{'method':_0x54fd11(0x198),'body':_0x42bc49});return{'appCode':_0x49638c[_0x54fd11(0x159)]??_0x4e8e6c,'skillCode':_0x49638c[_0x54fd11(0x136)]??_0x437f7f[_0x54fd11(0x194)]??'','skillName':_0x437f7f[_0x54fd11(0x16d)]??_0x49638c[_0x54fd11(0x136)]??_0x437f7f[_0x54fd11(0x194)],'description':_0x437f7f['description'],'scope':skillHubVisibilityToScope(_0x49638c[_0x54fd11(0x169)])??_0x54fd11(0x13c),'version':_0x49638c['version']??_0x437f7f['version'],'tags':_0x437f7f[_0x54fd11(0x17a)],'content':_0x437f7f['content']};}function runtimeSkillPackageFile(_0x4ec044){const _0x24a098=a56_0x5f01;if(!_0x4ec044[_0x24a098(0x17f)])throw CliErrors['validation'](_0x24a098(0x1a9));const _0x2da3bd=Buffer['from'](_0x4ec044[_0x24a098(0x17f)],_0x24a098(0x140)),_0x5f3509=new Blob([_0x2da3bd],{'type':_0x24a098(0x18f)}),_0xf1d28d=(_0x4ec044[_0x24a098(0x194)]||'skill')+_0x24a098(0x18b);if(typeof File!==_0x24a098(0x15d))return new File([_0x5f3509],_0xf1d28d,{'type':_0x24a098(0x18f)});return _0x5f3509;}function normalizeSkillHubRuntimeListResponse(_0xe5871b,_0x4704b4,_0x5e1faf,_0x4f33ef){const _0x36dc38=a56_0x5f01,_0x1d3a50=Array[_0x36dc38(0x18e)](_0x4704b4)?_0x4704b4:Array[_0x36dc38(0x18e)](_0x4704b4?.[_0x36dc38(0x19c)])?_0x4704b4['items']:[],_0x492b74=_0x4f33ef?.[_0x36dc38(0x1a8)](),_0x56b98b=_0x1d3a50[_0x36dc38(0x19a)](_0x4784da=>!_0x492b74||_0x4784da[_0x36dc38(0x136)]===_0x492b74)[_0x36dc38(0x17e)](skillHubRuntimeItemToRuntimeSkill)[_0x36dc38(0x19a)](_0x35613a=>Boolean(_0x35613a)),_0x3b4da3=_0x56b98b[_0x36dc38(0x19a)](_0x3dd2ac=>_0x3dd2ac[_0x36dc38(0x13e)]===_0x36dc38(0x13c)),_0x15377c=_0x56b98b['filter'](_0x53be81=>_0x53be81[_0x36dc38(0x13e)]===_0x36dc38(0x165)),_0x482a99=_0x56b98b[_0x36dc38(0x19a)](_0x59cf3c=>_0x59cf3c[_0x36dc38(0x13e)]==='public');return{'appCode':_0xe5871b,'personal':_0x5e1faf===_0x36dc38(0x165)||_0x5e1faf===_0x36dc38(0x141)?[]:_0x3b4da3,'company':_0x5e1faf===_0x36dc38(0x13c)||_0x5e1faf===_0x36dc38(0x141)?[]:_0x15377c,'public':_0x5e1faf===_0x36dc38(0x13c)||_0x5e1faf===_0x36dc38(0x165)?[]:_0x482a99,'effective':buildEffectiveRuntimeSkills(_0x3b4da3,_0x15377c,_0x482a99,_0x5e1faf)};}function skillHubRuntimeItemToRuntimeSkill(_0x2aa1e0){const _0x2332c7=a56_0x5f01,_0x44655c=_0x2aa1e0['slug']?.['trim'](),_0x3720fc=skillHubVisibilityToScope(_0x2aa1e0[_0x2332c7(0x169)]);if(!_0x44655c||!_0x3720fc)return undefined;return{'id':_0x2aa1e0['id'],'appCode':_0x2aa1e0[_0x2332c7(0x159)],'skillCode':_0x44655c,'skillName':_0x2aa1e0[_0x2332c7(0x15f)]??_0x44655c,'description':_0x2aa1e0[_0x2332c7(0x1b1)],'scope':_0x3720fc,'version':skillHubRuntimeItemVersion(_0x2aa1e0),'status':_0x2aa1e0[_0x2332c7(0x189)]};}function skillHubVisibilityToScope(_0x4df746){const _0x59630f=a56_0x5f01;if(_0x4df746===_0x59630f(0x162))return _0x59630f(0x13c);if(_0x4df746==='NAMESPACE_ONLY')return _0x59630f(0x165);if(_0x4df746===_0x59630f(0x147))return _0x59630f(0x141);return undefined;}function skillHubRuntimeItemVersion(_0x347b62){const _0x4cd0db=a56_0x5f01;return _0x347b62[_0x4cd0db(0x145)]?.[_0x4cd0db(0x138)]??_0x347b62[_0x4cd0db(0x150)]?.[_0x4cd0db(0x138)]??_0x347b62[_0x4cd0db(0x151)]?.['version'];}function buildEffectiveRuntimeSkills(_0x54e826,_0x17686b,_0x157c4f,_0x56c89a){const _0x3934db=a56_0x5f01;if(_0x56c89a===_0x3934db(0x13c))return _0x54e826;if(_0x56c89a===_0x3934db(0x165))return _0x17686b;if(_0x56c89a===_0x3934db(0x141))return _0x157c4f;const _0x377507=new Map();for(const _0x11f6bf of _0x157c4f){_0x377507[_0x3934db(0x139)](_0x11f6bf[_0x3934db(0x194)],_0x11f6bf);}for(const _0x20a013 of _0x17686b){_0x377507['set'](_0x20a013[_0x3934db(0x194)],_0x20a013);}for(const _0x3e5dfd of _0x54e826){_0x377507[_0x3934db(0x139)](_0x3e5dfd[_0x3934db(0x194)],_0x3e5dfd);}return Array[_0x3934db(0x1a6)](_0x377507[_0x3934db(0x176)]());}function normalizeRuntimeSkillListResponse(_0x96ba08,_0x31288f){const _0x15c6c5=a56_0x5f01;if(Array[_0x15c6c5(0x18e)](_0x31288f)){const _0x4c7ecb=_0x31288f['filter'](_0x1ca9fe=>_0x1ca9fe[_0x15c6c5(0x13e)]==='personal'),_0x335f59=_0x31288f['filter'](_0x213cdb=>_0x213cdb[_0x15c6c5(0x13e)]==='company'),_0x3d203b=_0x31288f[_0x15c6c5(0x19a)](_0xc2fcca=>_0xc2fcca[_0x15c6c5(0x13e)]===_0x15c6c5(0x141));return{'appCode':_0x96ba08,'personal':_0x4c7ecb,'company':_0x335f59,'public':_0x3d203b,'effective':_0x31288f['filter'](_0x417f22=>_0x417f22[_0x15c6c5(0x13e)]!=='builtin')};}return{'appCode':_0x31288f?.[_0x15c6c5(0x17c)]??_0x96ba08,'personal':Array[_0x15c6c5(0x18e)](_0x31288f?.[_0x15c6c5(0x13c)])?_0x31288f[_0x15c6c5(0x13c)]:[],'company':Array[_0x15c6c5(0x18e)](_0x31288f?.[_0x15c6c5(0x165)])?_0x31288f[_0x15c6c5(0x165)]:[],'public':Array[_0x15c6c5(0x18e)](_0x31288f?.[_0x15c6c5(0x141)])?_0x31288f[_0x15c6c5(0x141)]:[],'effective':Array[_0x15c6c5(0x18e)](_0x31288f?.[_0x15c6c5(0x177)])?_0x31288f['effective']:[]};}
@@ -1 +1 @@
1
- (function(_0x15a413,_0x541b47){const _0x24e689=a57_0x33ef,_0xf36ab6=_0x15a413();while(!![]){try{const _0x1fdfb3=parseInt(_0x24e689(0x81))/0x1*(parseInt(_0x24e689(0x7a))/0x2)+-parseInt(_0x24e689(0x7d))/0x3*(-parseInt(_0x24e689(0x77))/0x4)+-parseInt(_0x24e689(0x80))/0x5*(-parseInt(_0x24e689(0x71))/0x6)+parseInt(_0x24e689(0x82))/0x7+parseInt(_0x24e689(0x76))/0x8+parseInt(_0x24e689(0x7b))/0x9+-parseInt(_0x24e689(0x74))/0xa*(parseInt(_0x24e689(0x7f))/0xb);if(_0x1fdfb3===_0x541b47)break;else _0xf36ab6['push'](_0xf36ab6['shift']());}catch(_0x4e912e){_0xf36ab6['push'](_0xf36ab6['shift']());}}}(a57_0x1b74,0xa135d));import{listDatasets}from'../core/api-client.js';const cache=new Map();export async function listDatabases(_0x32c0e7){const _0x90c951=a57_0x33ef;if(cache[_0x90c951(0x79)](_0x32c0e7))return cache[_0x90c951(0x72)](_0x32c0e7);const _0x2ff2e3=await listDatasets(_0x32c0e7),_0x3ee3f4=new Map();for(const _0x28d02c of _0x2ff2e3){const _0x8f9dab=_0x28d02c['dbtableConfig'];_0x8f9dab?.[_0x90c951(0x7e)]!=null&&_0x3ee3f4[_0x90c951(0x75)](_0x8f9dab[_0x90c951(0x7e)],_0x8f9dab[_0x90c951(0x7c)]??_0x90c951(0x73)+_0x8f9dab[_0x90c951(0x7e)]);}const _0x597690=[..._0x3ee3f4[_0x90c951(0x70)]()]['map'](([_0x1cbe63,_0x1ad321])=>({'dbId':_0x1cbe63,'dbName':_0x1ad321}));return cache['set'](_0x32c0e7,_0x597690),_0x597690;}export async function getDbName(_0x53f3f0,_0x44b07b){const _0x332102=a57_0x33ef;try{const _0x4ef26d=await listDatabases(_0x53f3f0);return _0x4ef26d[_0x332102(0x78)](_0x4256a8=>_0x4256a8[_0x332102(0x7e)]===_0x44b07b)?.[_0x332102(0x7c)];}catch{return undefined;}}function a57_0x33ef(_0x4c83c7,_0x2e0470){_0x4c83c7=_0x4c83c7-0x70;const _0x1b7463=a57_0x1b74();let _0x33ef4c=_0x1b7463[_0x4c83c7];return _0x33ef4c;}function a57_0x1b74(){const _0xb86ea8=['120UbXpJt','get','db-','94280omNcfj','set','6564104oHRpnk','4GmymCC','find','has','1081148SMAhvh','7618779JPUDCS','dbName','243234CitKco','dbId','3322FARXvE','81635cBrmlP','1RaIMxX','6246359QFPWvm','entries'];a57_0x1b74=function(){return _0xb86ea8;};return a57_0x1b74();}
1
+ function a57_0x2b1b(_0x22c5d0,_0x2c3e7d){_0x22c5d0=_0x22c5d0-0x1e8;const _0x1d9309=a57_0x1d93();let _0x2b1bfd=_0x1d9309[_0x22c5d0];return _0x2b1bfd;}(function(_0x2f775e,_0x37a4e7){const _0x528cf0=a57_0x2b1b,_0x2af3d7=_0x2f775e();while(!![]){try{const _0x8e4ab0=parseInt(_0x528cf0(0x1f9))/0x1+parseInt(_0x528cf0(0x1ef))/0x2*(parseInt(_0x528cf0(0x1ed))/0x3)+-parseInt(_0x528cf0(0x1e8))/0x4+-parseInt(_0x528cf0(0x1f1))/0x5+-parseInt(_0x528cf0(0x1ea))/0x6+parseInt(_0x528cf0(0x1e9))/0x7*(parseInt(_0x528cf0(0x1f7))/0x8)+-parseInt(_0x528cf0(0x1f0))/0x9*(-parseInt(_0x528cf0(0x1f5))/0xa);if(_0x8e4ab0===_0x37a4e7)break;else _0x2af3d7['push'](_0x2af3d7['shift']());}catch(_0x19156b){_0x2af3d7['push'](_0x2af3d7['shift']());}}}(a57_0x1d93,0x7ddd5));import{listDatasets}from'../core/api-client.js';const cache=new Map();export async function listDatabases(_0x49c635){const _0x4cea72=a57_0x2b1b;if(cache[_0x4cea72(0x1f2)](_0x49c635))return cache[_0x4cea72(0x1f6)](_0x49c635);const _0x5e6a75=await listDatasets(_0x49c635),_0x501e6c=new Map();for(const _0x270670 of _0x5e6a75){const _0x450969=_0x270670[_0x4cea72(0x1ec)];_0x450969?.[_0x4cea72(0x1fa)]!=null&&_0x501e6c['set'](_0x450969['dbId'],_0x450969[_0x4cea72(0x1ee)]??_0x4cea72(0x1f4)+_0x450969[_0x4cea72(0x1fa)]);}const _0x1c4f68=[..._0x501e6c[_0x4cea72(0x1eb)]()][_0x4cea72(0x1f3)](([_0x80d39b,_0x47ef94])=>({'dbId':_0x80d39b,'dbName':_0x47ef94}));return cache[_0x4cea72(0x1f8)](_0x49c635,_0x1c4f68),_0x1c4f68;}export async function getDbName(_0x54f90d,_0x2b6d6a){const _0x1eb438=a57_0x2b1b;try{const _0x4c0e98=await listDatabases(_0x54f90d);return _0x4c0e98['find'](_0x109b2e=>_0x109b2e[_0x1eb438(0x1fa)]===_0x2b6d6a)?.['dbName'];}catch{return undefined;}}function a57_0x1d93(){const _0x250199=['3619326eGeryy','entries','dbtableConfig','2196BTaDAs','dbName','1538eRxXvj','8353701jCzISc','4535370JhIJjA','has','map','db-','10hXsWKa','get','8wpZpmM','set','660701FNMoVX','dbId','2652836IsPKJy','3760729PPsArz'];a57_0x1d93=function(){return _0x250199;};return a57_0x1d93();}
@@ -1 +1 @@
1
- (function(_0x5623ed,_0x38fc47){const _0x5ee709=a58_0x1542,_0x57f0d8=_0x5623ed();while(!![]){try{const _0x229764=parseInt(_0x5ee709(0x1b5))/0x1*(parseInt(_0x5ee709(0x1b2))/0x2)+-parseInt(_0x5ee709(0x19c))/0x3+-parseInt(_0x5ee709(0x1a8))/0x4+parseInt(_0x5ee709(0x1b4))/0x5*(-parseInt(_0x5ee709(0x1a2))/0x6)+parseInt(_0x5ee709(0x19e))/0x7*(-parseInt(_0x5ee709(0x1a9))/0x8)+-parseInt(_0x5ee709(0x194))/0x9+parseInt(_0x5ee709(0x1ab))/0xa;if(_0x229764===_0x38fc47)break;else _0x57f0d8['push'](_0x57f0d8['shift']());}catch(_0x439b38){_0x57f0d8['push'](_0x57f0d8['shift']());}}}(a58_0x3ea2,0xc61db));function a58_0x3ea2(){const _0x5b4f62=[']\x20requires\x20\x22column\x22;\x20\x22field\x22\x20is\x20accepted\x20only\x20as\x20a\x20deprecated\x20alias.','execute','getOne','delete','91230CcuZJB','invokeSource','7txDDKn','update','models','data\x20aggregate\x20--params.aggregate\x20must\x20be\x20an\x20array.','6RvDgIb','accessKey','update\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123,\x22name\x22:\x22new\x22}\x27','string','batchCreate','SDK\x20model\x20does\x20not\x20support\x20operation\x20\x22','5407232nwXSru','10824144wYzzVm','data\x20aggregate\x20--params.aggregate[','42656580haqZZB','sql','validation',']\x20must\x20be\x20an\x20object.','map','isArray','getOne\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123}\x27','364hvxtgN','field','3630630yhDWSE','3603dQFKWP','aggregate','5837031aSnyCD','\x22.\x20','trim','appCode'];a58_0x3ea2=function(){return _0x5b4f62;};return a58_0x3ea2();}import{createClient}from'@lovrabet/sdk';import{PRODUCT_CONFIG}from'../constant/product.js';import{CliErrors}from'../errors.js';import{parseBatchCreateItemsFromParams}from'../utils/params.js';function a58_0x1542(_0x419616,_0x48d746){_0x419616=_0x419616-0x194;const _0x3ea210=a58_0x3ea2();let _0x1542fa=_0x3ea210[_0x419616];return _0x1542fa;}let _client;export function initSdkClient(_0x564663){const _0xad9a7c=a58_0x1542;_client=createClient({'appCode':_0x564663[_0xad9a7c(0x197)],'env':_0x564663['env'],'authMode':_0x564663['authMode'],..._0x564663['accessKey']?{'accessKey':_0x564663[_0xad9a7c(0x1a3)]}:{},'options':{'timeout':0x7530,'headers':{'X-Invoke-Source':PRODUCT_CONFIG[_0xad9a7c(0x19d)]}}});}function ensureClient(){if(!_client)throw new Error('SDK\x20client\x20not\x20initialized.\x20Call\x20initSdkClient()\x20first.');return _client;}function normalizeAggregateParams(_0x4cda3f){const _0x4fc639=a58_0x1542,_0x40311d=_0x4cda3f[_0x4fc639(0x1b6)];if(_0x40311d===undefined)return _0x4cda3f;if(!Array['isArray'](_0x40311d))throw CliErrors[_0x4fc639(0x1ad)](_0x4fc639(0x1a1));return{..._0x4cda3f,'aggregate':_0x40311d[_0x4fc639(0x1af)]((_0x11d2ca,_0x3f0b31)=>{const _0x5364bf=_0x4fc639;if(!_0x11d2ca||typeof _0x11d2ca!=='object'||Array[_0x5364bf(0x1b0)](_0x11d2ca))throw CliErrors[_0x5364bf(0x1ad)]('data\x20aggregate\x20--params.aggregate['+_0x3f0b31+_0x5364bf(0x1ae));const _0x510754=_0x11d2ca['column']??_0x11d2ca[_0x5364bf(0x1b3)];if(typeof _0x510754!==_0x5364bf(0x1a5)||_0x510754[_0x5364bf(0x196)]()==='')throw CliErrors['validation'](_0x5364bf(0x1aa)+_0x3f0b31+_0x5364bf(0x198));const _0x3edca7={..._0x11d2ca,'column':_0x510754};return delete _0x3edca7[_0x5364bf(0x1b3)],_0x3edca7;})};}export async function executeData(_0x1cc83b,_0xbe0e28,_0x14ca4d){const _0x47c630=a58_0x1542,_0x37b45b=ensureClient(),_0x35645b='dataset_'+_0x1cc83b,_0x3f480e=_0x37b45b[_0x47c630(0x1a0)][_0x35645b];if(!_0x3f480e||typeof _0x3f480e[_0xbe0e28]!=='function')throw new Error(_0x47c630(0x1a7)+_0xbe0e28+_0x47c630(0x195)+'Available:\x20filter,\x20getOne,\x20create,\x20batchCreate,\x20update,\x20delete,\x20aggregate.');if(_0xbe0e28===_0x47c630(0x1a6))return _0x3f480e[_0x47c630(0x1a6)](parseBatchCreateItemsFromParams(_0x14ca4d));const _0x41b271=_0x14ca4d!==undefined&&_0x14ca4d!==null&&!Array[_0x47c630(0x1b0)](_0x14ca4d)?_0x14ca4d:{};switch(_0xbe0e28){case _0x47c630(0x19a):{const _0x20ff92=_0x41b271['id'];if(_0x20ff92===undefined||_0x20ff92===null)throw new Error(_0x47c630(0x1b1));return _0x3f480e[_0x47c630(0x19a)](_0x20ff92);}case _0x47c630(0x19f):{const {id:_0x338291,..._0x431c6d}=_0x41b271;if(_0x338291===undefined||_0x338291===null)throw new Error(_0x47c630(0x1a4));return _0x3f480e[_0x47c630(0x19f)](_0x338291,_0x431c6d);}case _0x47c630(0x19b):{const _0x33f5b9=_0x41b271['id'];if(_0x33f5b9===undefined||_0x33f5b9===null)throw new Error('delete\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123}\x27');return _0x3f480e[_0x47c630(0x19b)](_0x33f5b9);}case _0x47c630(0x1b6):return _0x3f480e[_0x47c630(0x1b6)](normalizeAggregateParams(_0x41b271));default:return _0x3f480e[_0xbe0e28](_0x41b271);}}export async function executeSdkSql(_0x24b647,_0x37f5d0){const _0x3e381c=a58_0x1542,_0x12a4d0=ensureClient();return _0x12a4d0[_0x3e381c(0x1ac)][_0x3e381c(0x199)]({'sqlCode':_0x24b647,'params':_0x37f5d0});}export async function executeSdkBff(_0x46ea5a,_0x4f4ce1){const _0x258d3f=a58_0x1542,_0x17e272=ensureClient();return _0x17e272['bff'][_0x258d3f(0x199)]({'scriptName':_0x46ea5a,'params':_0x4f4ce1});}
1
+ (function(_0xbfdc64,_0x3db6a2){const _0x4ba915=a58_0x1379,_0x591d1c=_0xbfdc64();while(!![]){try{const _0xc893d5=-parseInt(_0x4ba915(0x12c))/0x1+-parseInt(_0x4ba915(0x144))/0x2+-parseInt(_0x4ba915(0x146))/0x3+-parseInt(_0x4ba915(0x14b))/0x4+parseInt(_0x4ba915(0x14d))/0x5+-parseInt(_0x4ba915(0x13b))/0x6*(parseInt(_0x4ba915(0x13d))/0x7)+-parseInt(_0x4ba915(0x150))/0x8*(-parseInt(_0x4ba915(0x140))/0x9);if(_0xc893d5===_0x3db6a2)break;else _0x591d1c['push'](_0x591d1c['shift']());}catch(_0x23ea2d){_0x591d1c['push'](_0x591d1c['shift']());}}}(a58_0x5ec6,0x7a6a6));import{createClient}from'@lovrabet/sdk';import{PRODUCT_CONFIG}from'../constant/product.js';import{CliErrors}from'../errors.js';import{parseBatchCreateItemsFromParams}from'../utils/params.js';function a58_0x5ec6(){const _0x5b66e1=['field','trim','batchCreate','delete','\x22.\x20','column','execute','data\x20aggregate\x20--params.aggregate[','isArray','env','aggregate','function','SDK\x20client\x20not\x20initialized.\x20Call\x20initSdkClient()\x20first.','map','48pMxZhm','dataset_','454307xlQxhO','update\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123,\x22name\x22:\x22new\x22}\x27','getOne\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123}\x27','13371246UGhLmh','SDK\x20model\x20does\x20not\x20support\x20operation\x20\x22',']\x20must\x20be\x20an\x20object.','update','1103580zbTEQA','getOne','1804704THFuSl','authMode','delete\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123}\x27','string','bff','3057648OixiJf','appCode','2070775KduJqb','data\x20aggregate\x20--params.aggregate\x20must\x20be\x20an\x20array.','invokeSource','16RAMZxO','validation','447151zUWCNl'];a58_0x5ec6=function(){return _0x5b66e1;};return a58_0x5ec6();}let _client;export function initSdkClient(_0x41eeb9){const _0x17724a=a58_0x1379;_client=createClient({'appCode':_0x41eeb9[_0x17724a(0x14c)],'env':_0x41eeb9[_0x17724a(0x136)],'authMode':_0x41eeb9[_0x17724a(0x147)],..._0x41eeb9['accessKey']?{'accessKey':_0x41eeb9['accessKey']}:{},'options':{'timeout':0x7530,'headers':{'X-Invoke-Source':PRODUCT_CONFIG[_0x17724a(0x14f)]}}});}function ensureClient(){const _0x3c3032=a58_0x1379;if(!_client)throw new Error(_0x3c3032(0x139));return _client;}function normalizeAggregateParams(_0x38f28c){const _0xc65824=a58_0x1379,_0x3131ae=_0x38f28c['aggregate'];if(_0x3131ae===undefined)return _0x38f28c;if(!Array[_0xc65824(0x135)](_0x3131ae))throw CliErrors[_0xc65824(0x151)](_0xc65824(0x14e));return{..._0x38f28c,'aggregate':_0x3131ae[_0xc65824(0x13a)]((_0x5aead9,_0x292244)=>{const _0x19e995=_0xc65824;if(!_0x5aead9||typeof _0x5aead9!=='object'||Array[_0x19e995(0x135)](_0x5aead9))throw CliErrors[_0x19e995(0x151)](_0x19e995(0x134)+_0x292244+_0x19e995(0x142));const _0x259d20=_0x5aead9[_0x19e995(0x132)]??_0x5aead9[_0x19e995(0x12d)];if(typeof _0x259d20!==_0x19e995(0x149)||_0x259d20[_0x19e995(0x12e)]()==='')throw CliErrors[_0x19e995(0x151)](_0x19e995(0x134)+_0x292244+']\x20requires\x20\x22column\x22;\x20\x22field\x22\x20is\x20accepted\x20only\x20as\x20a\x20deprecated\x20alias.');const _0x28f687={..._0x5aead9,'column':_0x259d20};return delete _0x28f687[_0x19e995(0x12d)],_0x28f687;})};}export async function executeData(_0x524d46,_0xabda61,_0x488db4){const _0x18b9ad=a58_0x1379,_0x32dc65=ensureClient(),_0x129b10=_0x18b9ad(0x13c)+_0x524d46,_0x16d835=_0x32dc65['models'][_0x129b10];if(!_0x16d835||typeof _0x16d835[_0xabda61]!==_0x18b9ad(0x138))throw new Error(_0x18b9ad(0x141)+_0xabda61+_0x18b9ad(0x131)+'Available:\x20filter,\x20getOne,\x20create,\x20batchCreate,\x20update,\x20delete,\x20aggregate.');if(_0xabda61===_0x18b9ad(0x12f))return _0x16d835[_0x18b9ad(0x12f)](parseBatchCreateItemsFromParams(_0x488db4));const _0x236f2d=_0x488db4!==undefined&&_0x488db4!==null&&!Array[_0x18b9ad(0x135)](_0x488db4)?_0x488db4:{};switch(_0xabda61){case _0x18b9ad(0x145):{const _0x5a8253=_0x236f2d['id'];if(_0x5a8253===undefined||_0x5a8253===null)throw new Error(_0x18b9ad(0x13f));return _0x16d835[_0x18b9ad(0x145)](_0x5a8253);}case _0x18b9ad(0x143):{const {id:_0x3a125e,..._0x3c3b15}=_0x236f2d;if(_0x3a125e===undefined||_0x3a125e===null)throw new Error(_0x18b9ad(0x13e));return _0x16d835[_0x18b9ad(0x143)](_0x3a125e,_0x3c3b15);}case _0x18b9ad(0x130):{const _0x436a98=_0x236f2d['id'];if(_0x436a98===undefined||_0x436a98===null)throw new Error(_0x18b9ad(0x148));return _0x16d835[_0x18b9ad(0x130)](_0x436a98);}case'aggregate':return _0x16d835[_0x18b9ad(0x137)](normalizeAggregateParams(_0x236f2d));default:return _0x16d835[_0xabda61](_0x236f2d);}}export async function executeSdkSql(_0x54dfda,_0x48984e){const _0xaab54f=a58_0x1379,_0x241de9=ensureClient();return _0x241de9['sql'][_0xaab54f(0x133)]({'sqlCode':_0x54dfda,'params':_0x48984e});}function a58_0x1379(_0x32383a,_0x34ac62){_0x32383a=_0x32383a-0x12c;const _0x5ec6b0=a58_0x5ec6();let _0x137921=_0x5ec6b0[_0x32383a];return _0x137921;}export async function executeSdkBff(_0x3802ad,_0x37cd00){const _0x58f8b1=a58_0x1379,_0x35034e=ensureClient();return _0x35034e[_0x58f8b1(0x14a)][_0x58f8b1(0x133)]({'scriptName':_0x3802ad,'params':_0x37cd00});}
package/lib/errors.js CHANGED
@@ -1 +1 @@
1
- const a59_0x565e5e=a59_0x22d7;function a59_0x111a(){const _0x5c371a=['894393JScYZo','newConfigFileName','82086pOFmaK','4338834AjDyba','\x20auth\x20login`.','Set\x20appcode\x20via\x20--appcode\x20or\x20','Configure\x20accessKey\x20in\x20','165752KnmMxO','\x20or\x20run\x20`','8090712dLmDiT','62bEkFGC','2785NgoeYs','1436uFejry','112YIUvFt','\x20file.','Run\x20this\x20command\x20inside\x20a\x20directory\x20with\x20a\x20','1018170sZEwjG'];a59_0x111a=function(){return _0x5c371a;};return a59_0x111a();}(function(_0x21d45b,_0x4e4aeb){const _0x735d45=a59_0x22d7,_0x37daa5=_0x21d45b();while(!![]){try{const _0x2418ea=-parseInt(_0x735d45(0x112))/0x1+-parseInt(_0x735d45(0x115))/0x2*(parseInt(_0x735d45(0x11e))/0x3)+-parseInt(_0x735d45(0x117))/0x4*(-parseInt(_0x735d45(0x116))/0x5)+-parseInt(_0x735d45(0x10e))/0x6+parseInt(_0x735d45(0x114))/0x7+parseInt(_0x735d45(0x118))/0x8*(parseInt(_0x735d45(0x11c))/0x9)+-parseInt(_0x735d45(0x11b))/0xa;if(_0x2418ea===_0x4e4aeb)break;else _0x37daa5['push'](_0x37daa5['shift']());}catch(_0x149358){_0x37daa5['push'](_0x37daa5['shift']());}}}(a59_0x111a,0xddb5f));import{CliError,createCliErrors}from'@lovrabet/cli-framework';import{CLI_BIN_NAME}from'./constant/cli.js';import{PRODUCT_CONFIG}from'./constant/product.js';export{CliError};function a59_0x22d7(_0x8b3677,_0x485d0f){_0x8b3677=_0x8b3677-0x10e;const _0x111a6c=a59_0x111a();let _0x22d7c4=_0x111a6c[_0x8b3677];return _0x22d7c4;}export const CliErrors=createCliErrors({'cliBinName':CLI_BIN_NAME,'authRequiredHint':a59_0x565e5e(0x111)+PRODUCT_CONFIG[a59_0x565e5e(0x11d)]+a59_0x565e5e(0x113)+CLI_BIN_NAME+a59_0x565e5e(0x10f),'configMissingHint':a59_0x565e5e(0x110)+PRODUCT_CONFIG['newConfigFileName']+'.','notInProjectHint':a59_0x565e5e(0x11a)+PRODUCT_CONFIG['newConfigFileName']+a59_0x565e5e(0x119)});
1
+ const a59_0x3e7e6d=a59_0x401b;(function(_0x856ef,_0x5e4bcc){const _0x55515b=a59_0x401b,_0x395ff8=_0x856ef();while(!![]){try{const _0x2dd781=-parseInt(_0x55515b(0x100))/0x1*(parseInt(_0x55515b(0xfe))/0x2)+-parseInt(_0x55515b(0xfb))/0x3+-parseInt(_0x55515b(0xf7))/0x4+parseInt(_0x55515b(0xf8))/0x5+parseInt(_0x55515b(0xf5))/0x6*(-parseInt(_0x55515b(0xfa))/0x7)+parseInt(_0x55515b(0xff))/0x8+parseInt(_0x55515b(0xf6))/0x9;if(_0x2dd781===_0x5e4bcc)break;else _0x395ff8['push'](_0x395ff8['shift']());}catch(_0x3d8ee3){_0x395ff8['push'](_0x395ff8['shift']());}}}(a59_0x38bf,0x31a0b));function a59_0x401b(_0x2f4151,_0x89b545){_0x2f4151=_0x2f4151-0xf3;const _0x38bf69=a59_0x38bf();let _0x401b7a=_0x38bf69[_0x2f4151];return _0x401b7a;}import{CliError,createCliErrors}from'@lovrabet/cli-framework';import{CLI_BIN_NAME}from'./constant/cli.js';function a59_0x38bf(){const _0x4f839c=['newConfigFileName','944069VgaFlh','613917ZrOLBA','\x20file.','Configure\x20accessKey\x20in\x20','2BwfPhK','2171144YBnxfO','149599apTDly','Set\x20appcode\x20via\x20--appcode\x20or\x20','Run\x20this\x20command\x20inside\x20a\x20directory\x20with\x20a\x20','6ruxqNI','1174320QoBeke','416636CrlqDp','1973330nClQcS'];a59_0x38bf=function(){return _0x4f839c;};return a59_0x38bf();}import{PRODUCT_CONFIG}from'./constant/product.js';export{CliError};export const CliErrors=createCliErrors({'cliBinName':CLI_BIN_NAME,'authRequiredHint':a59_0x3e7e6d(0xfd)+PRODUCT_CONFIG[a59_0x3e7e6d(0xf9)]+'\x20or\x20run\x20`'+CLI_BIN_NAME+'\x20auth\x20login`.','configMissingHint':a59_0x3e7e6d(0xf3)+PRODUCT_CONFIG[a59_0x3e7e6d(0xf9)]+'.','notInProjectHint':a59_0x3e7e6d(0xf4)+PRODUCT_CONFIG[a59_0x3e7e6d(0xf9)]+a59_0x3e7e6d(0xfc)});
@@ -1 +1 @@
1
- (function(_0xe3690b,_0xcb103c){var _0x413788=a60_0x3d53,_0x2c503f=_0xe3690b();while(!![]){try{var _0x59c604=-parseInt(_0x413788(0xa2))/0x1*(parseInt(_0x413788(0xa1))/0x2)+-parseInt(_0x413788(0xa4))/0x3+-parseInt(_0x413788(0xa5))/0x4+parseInt(_0x413788(0x9f))/0x5+parseInt(_0x413788(0xa0))/0x6+parseInt(_0x413788(0xa3))/0x7+parseInt(_0x413788(0xa6))/0x8;if(_0x59c604===_0xcb103c)break;else _0x2c503f['push'](_0x2c503f['shift']());}catch(_0x521d1a){_0x2c503f['push'](_0x2c503f['shift']());}}}(a60_0x3458,0x56b95));import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';import{buildAllFlags as a60_0x53dccf}from'@lovrabet/cli-framework';export function buildAllFlags(_0x4036b2){return a60_0x53dccf(_0x4036b2,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});}function a60_0x3d53(_0x40e310,_0xde258d){_0x40e310=_0x40e310-0x9f;var _0x34580f=a60_0x3458();var _0x3d53e1=_0x34580f[_0x40e310];return _0x3d53e1;}function a60_0x3458(){var _0x3eeed3=['3272240zcfvza','975678qEJjLS','517658ocArtO','2sTaQdc','327313nMToxZ','279660gQtZpH','482200FuelUJ','1782632uHhBht'];a60_0x3458=function(){return _0x3eeed3;};return a60_0x3458();}
1
+ (function(_0xafe24e,_0x298ced){var _0x33b6f5=a60_0x3d26,_0xd12475=_0xafe24e();while(!![]){try{var _0x4617c8=-parseInt(_0x33b6f5(0xb1))/0x1+-parseInt(_0x33b6f5(0xb2))/0x2+-parseInt(_0x33b6f5(0xb5))/0x3+parseInt(_0x33b6f5(0xb4))/0x4+-parseInt(_0x33b6f5(0xb6))/0x5*(parseInt(_0x33b6f5(0xb0))/0x6)+parseInt(_0x33b6f5(0xb3))/0x7+-parseInt(_0x33b6f5(0xb8))/0x8*(-parseInt(_0x33b6f5(0xb7))/0x9);if(_0x4617c8===_0x298ced)break;else _0xd12475['push'](_0xd12475['shift']());}catch(_0x43b7e8){_0xd12475['push'](_0xd12475['shift']());}}}(a60_0x4fb7,0x60e4b));function a60_0x3d26(_0x392d5e,_0x4ce073){_0x392d5e=_0x392d5e-0xb0;var _0x4fb7d7=a60_0x4fb7();var _0x3d2690=_0x4fb7d7[_0x392d5e];return _0x3d2690;}import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';function a60_0x4fb7(){var _0x132e7d=['114680qmmvep','1429746lIvlHk','269562tTolqx','1172858IiQQox','940709iuDGHW','2608652dPtdVh','713928MEnjQK','15XWYWcp','891lLOVIC'];a60_0x4fb7=function(){return _0x132e7d;};return a60_0x4fb7();}import{buildAllFlags as a60_0x2392ef}from'@lovrabet/cli-framework';export function buildAllFlags(_0x1efb80){return a60_0x2392ef(_0x1efb80,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});}
@@ -1 +1 @@
1
- function a61_0x56e5(_0x543d1e,_0x5d8746){_0x543d1e=_0x543d1e-0xf8;const _0x1cdfc1=a61_0x1cdf();let _0x56e57a=_0x1cdfc1[_0x543d1e];return _0x56e57a;}(function(_0x3ad36a,_0x3cf325){const _0xf6c704=a61_0x56e5,_0x55e045=_0x3ad36a();while(!![]){try{const _0x49c924=-parseInt(_0xf6c704(0xfa))/0x1*(-parseInt(_0xf6c704(0xff))/0x2)+-parseInt(_0xf6c704(0x103))/0x3+-parseInt(_0xf6c704(0xf8))/0x4*(parseInt(_0xf6c704(0xfb))/0x5)+parseInt(_0xf6c704(0x105))/0x6*(-parseInt(_0xf6c704(0x100))/0x7)+parseInt(_0xf6c704(0xfd))/0x8*(parseInt(_0xf6c704(0xfc))/0x9)+parseInt(_0xf6c704(0x101))/0xa+-parseInt(_0xf6c704(0xfe))/0xb*(parseInt(_0xf6c704(0x102))/0xc);if(_0x49c924===_0x3cf325)break;else _0x55e045['push'](_0x55e045['shift']());}catch(_0x3b3dc7){_0x55e045['push'](_0x55e045['shift']());}}}(a61_0x1cdf,0xee787));export function dryRun(_0x4a76f5,_0xdecd08){const _0x3ba66b={'method':_0x4a76f5,'url':_0xdecd08},_0x1e3a8c={'body'(_0xbdb76b){const _0x2725bb=a61_0x56e5;return _0x3ba66b[_0x2725bb(0x104)]=_0xbdb76b,_0x1e3a8c;},'description'(_0x20e513){const _0x51f8c5=a61_0x56e5;return _0x3ba66b[_0x51f8c5(0xf9)]=_0x20e513,_0x1e3a8c;},'build'(){return{..._0x3ba66b};}};return _0x1e3a8c;}function a61_0x1cdf(){const _0x39647e=['25sYuiYU','30483scOvuC','3832biWeri','16028309qfUEUd','2MwuvjR','7JvyEbT','4276830YJeIvr','12ssIqIu','1080330fOkBUu','body','1440948QfukkE','604188GcfpLf','description','1739341CExXIe'];a61_0x1cdf=function(){return _0x39647e;};return a61_0x1cdf();}
1
+ function a61_0x3fc9(_0x4926bd,_0x2c2482){_0x4926bd=_0x4926bd-0xb8;const _0x5bed0a=a61_0x5bed();let _0x3fc917=_0x5bed0a[_0x4926bd];return _0x3fc917;}(function(_0x1005c6,_0x43ac83){const _0x5a1a7b=a61_0x3fc9,_0x35e8b0=_0x1005c6();while(!![]){try{const _0x593dfb=parseInt(_0x5a1a7b(0xc1))/0x1+parseInt(_0x5a1a7b(0xc4))/0x2*(parseInt(_0x5a1a7b(0xc3))/0x3)+parseInt(_0x5a1a7b(0xb8))/0x4*(-parseInt(_0x5a1a7b(0xba))/0x5)+-parseInt(_0x5a1a7b(0xbf))/0x6+parseInt(_0x5a1a7b(0xb9))/0x7+parseInt(_0x5a1a7b(0xbb))/0x8*(-parseInt(_0x5a1a7b(0xbe))/0x9)+-parseInt(_0x5a1a7b(0xbc))/0xa*(-parseInt(_0x5a1a7b(0xc0))/0xb);if(_0x593dfb===_0x43ac83)break;else _0x35e8b0['push'](_0x35e8b0['shift']());}catch(_0x1a092d){_0x35e8b0['push'](_0x35e8b0['shift']());}}}(a61_0x5bed,0x53729));function a61_0x5bed(){const _0x58968b=['1997128sIKkia','7720edjsoN','1304BZMwko','10gpnvpu','description','18846MViIWO','1678110oiDLhg','3224386DeTGat','315471CYTNvx','body','609LUGnpq','5714vAcjEF','1324SBEYMm'];a61_0x5bed=function(){return _0x58968b;};return a61_0x5bed();}export function dryRun(_0x40123c,_0x14e8e9){const _0x37a1b4={'method':_0x40123c,'url':_0x14e8e9},_0x232bff={'body'(_0x12e059){const _0x1ced17=a61_0x3fc9;return _0x37a1b4[_0x1ced17(0xc2)]=_0x12e059,_0x232bff;},'description'(_0x19eedf){const _0x3c64ff=a61_0x3fc9;return _0x37a1b4[_0x3c64ff(0xbd)]=_0x19eedf,_0x232bff;},'build'(){return{..._0x37a1b4};}};return _0x232bff;}
@@ -1 +1 @@
1
- const a62_0x29ff3c=a62_0x18e3;(function(_0x4343c4,_0x257d84){const _0xa9dd85=a62_0x18e3,_0x15c7f0=_0x4343c4();while(!![]){try{const _0x4565e3=parseInt(_0xa9dd85(0x170))/0x1+-parseInt(_0xa9dd85(0x172))/0x2*(-parseInt(_0xa9dd85(0x177))/0x3)+-parseInt(_0xa9dd85(0x179))/0x4*(-parseInt(_0xa9dd85(0x176))/0x5)+parseInt(_0xa9dd85(0x173))/0x6+-parseInt(_0xa9dd85(0x175))/0x7+-parseInt(_0xa9dd85(0x178))/0x8+parseInt(_0xa9dd85(0x171))/0x9;if(_0x4565e3===_0x257d84)break;else _0x15c7f0['push'](_0x15c7f0['shift']());}catch(_0x309b2e){_0x15c7f0['push'](_0x15c7f0['shift']());}}}(a62_0xea05,0xf1462));import{createFlagHelpers}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';const helpers=createFlagHelpers(CliErrors);function a62_0xea05(){const _0x10d608=['88jwpQXj','validateFlags','355378tHUqvE','4661829UnSrHY','2504686MMzZAF','3394620OZxMot','parseFlags','5638570TDXSNo','226045gIIbyK','3AwILvk','15138416gXzIfg'];a62_0xea05=function(){return _0x10d608;};return a62_0xea05();}export const parseFlags=helpers[a62_0x29ff3c(0x174)];function a62_0x18e3(_0x5597f5,_0x1e5dd9){_0x5597f5=_0x5597f5-0x16f;const _0xea05fe=a62_0xea05();let _0x18e34e=_0xea05fe[_0x5597f5];return _0x18e34e;}export const validateFlags=helpers[a62_0x29ff3c(0x16f)];
1
+ const a62_0x48708a=a62_0x6e96;(function(_0x37a5da,_0x17c94b){const _0x1017a5=a62_0x6e96,_0x750f8f=_0x37a5da();while(!![]){try{const _0x47913b=-parseInt(_0x1017a5(0x146))/0x1+-parseInt(_0x1017a5(0x13e))/0x2+-parseInt(_0x1017a5(0x140))/0x3*(-parseInt(_0x1017a5(0x144))/0x4)+parseInt(_0x1017a5(0x13c))/0x5*(-parseInt(_0x1017a5(0x145))/0x6)+-parseInt(_0x1017a5(0x143))/0x7*(-parseInt(_0x1017a5(0x147))/0x8)+parseInt(_0x1017a5(0x148))/0x9*(parseInt(_0x1017a5(0x13d))/0xa)+parseInt(_0x1017a5(0x141))/0xb;if(_0x47913b===_0x17c94b)break;else _0x750f8f['push'](_0x750f8f['shift']());}catch(_0x59cc8b){_0x750f8f['push'](_0x750f8f['shift']());}}}(a62_0x346f,0x2da98));import{createFlagHelpers}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';function a62_0x6e96(_0x25634d,_0x4660be){_0x25634d=_0x25634d-0x13c;const _0x346f9d=a62_0x346f();let _0x6e968=_0x346f9d[_0x25634d];return _0x6e968;}function a62_0x346f(){const _0x5e50c1=['9870XTrkEp','132432xOMINo','parseFlags','15693zmATMU','1926738tKPznT','validateFlags','7zBOClT','188sfkjTO','24IelSHs','254063KfiRoL','434096dZjCVg','2142KPltzC','253590phFEBd'];a62_0x346f=function(){return _0x5e50c1;};return a62_0x346f();}const helpers=createFlagHelpers(CliErrors);export const parseFlags=helpers[a62_0x48708a(0x13f)];export const validateFlags=helpers[a62_0x48708a(0x142)];
@@ -1 +1 @@
1
- (function(_0x3702f8,_0x144abe){const _0x14df53=a63_0x4fa9,_0xf31f4f=_0x3702f8();while(!![]){try{const _0x40d7cb=parseInt(_0x14df53(0x19c))/0x1*(parseInt(_0x14df53(0x19e))/0x2)+-parseInt(_0x14df53(0x1a0))/0x3*(parseInt(_0x14df53(0x19d))/0x4)+-parseInt(_0x14df53(0x19b))/0x5*(-parseInt(_0x14df53(0x192))/0x6)+parseInt(_0x14df53(0x1a5))/0x7+-parseInt(_0x14df53(0x198))/0x8+-parseInt(_0x14df53(0x199))/0x9+-parseInt(_0x14df53(0x19a))/0xa*(-parseInt(_0x14df53(0x1a4))/0xb);if(_0x40d7cb===_0x144abe)break;else _0xf31f4f['push'](_0xf31f4f['shift']());}catch(_0x545814){_0xf31f4f['push'](_0xf31f4f['shift']());}}}(a63_0xd379,0x85891));import{createHelpGenerators}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';import{serviceRegistry,serviceGroups,getServiceEntry}from'../commands/registry.js';import{getDynamicServiceDefinitions,getDynamicServiceEntry,listDynamicServiceEntries}from'../commands/service/dynamic.js';function a63_0x4fa9(_0x34e25a,_0x1d1f6a){_0x34e25a=_0x34e25a-0x192;const _0xd379c5=a63_0xd379();let _0x4fa9a7=_0xd379c5[_0x34e25a];return _0x4fa9a7;}import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';import{PRODUCT_CONFIG}from'../constant/product.js';function createGenerators(){const _0x56635a=a63_0x4fa9;return createHelpGenerators({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'globalFlags':GLOBAL_FLAGS,'serviceRegistry':[...serviceRegistry,...safeListDynamicServiceEntries()],'getServiceEntry':getAnyServiceEntry,'getServiceDefinitions':getAnyServiceDefinitions,'buildAllFlags':buildAllFlags,'appPrerequisiteText':_0x56635a(0x1a1)+PRODUCT_CONFIG[_0x56635a(0x194)]+'\x20or\x20--appcode).'});}export function generateCommandHelp(_0x4b9d72){return createGenerators()['generateCommandHelp'](_0x4b9d72);}export function generateServiceHelp(_0x499990){const _0x346b3c=a63_0x4fa9;return createGenerators()[_0x346b3c(0x195)](_0x499990);}export function generateFullHelp(){const _0x14eba0=a63_0x4fa9;return createGenerators()[_0x14eba0(0x197)]();}function getAnyServiceEntry(_0x47bc62){const _0x269916=getServiceEntry(_0x47bc62);if(_0x269916)return _0x269916;try{return getDynamicServiceEntry(_0x47bc62);}catch{return undefined;}}function getAnyServiceDefinitions(_0x25f6f4){const _0x541342=a63_0x4fa9,_0x497e4b=serviceGroups[_0x541342(0x196)](_0x25f6f4);if(_0x497e4b)return _0x497e4b;try{return getDynamicServiceDefinitions(_0x25f6f4);}catch{return undefined;}}function safeListDynamicServiceEntries(){const _0x2877fc=a63_0x4fa9,_0x4c96f0=new Set(serviceRegistry[_0x2877fc(0x1a2)](_0x551d2a=>_0x551d2a[_0x2877fc(0x193)]));try{return listDynamicServiceEntries()[_0x2877fc(0x1a3)](_0xa02ea3=>!_0x4c96f0[_0x2877fc(0x19f)](_0xa02ea3['service']));}catch{return[];}}function a63_0xd379(){const _0x79e2ed=['generateFullHelp','4102576XvJRZm','8396109juIKrB','9270BWPhed','236705wCtzwy','4195lZRpbM','264NFzCaY','244yrMtBj','has','9531ybHdrN','Requires\x20appcode\x20(set\x20via\x20','map','filter','4741LMFKez','3403694FdJOZj','102ijGRIN','service','newConfigFileName','generateServiceHelp','get'];a63_0xd379=function(){return _0x79e2ed;};return a63_0xd379();}
1
+ (function(_0x119d6a,_0x17814c){const _0x37c1b6=a63_0x14f2,_0x21ecdb=_0x119d6a();while(!![]){try{const _0x36ab81=-parseInt(_0x37c1b6(0x111))/0x1+-parseInt(_0x37c1b6(0x115))/0x2*(parseInt(_0x37c1b6(0x119))/0x3)+parseInt(_0x37c1b6(0x10f))/0x4+parseInt(_0x37c1b6(0x11b))/0x5+parseInt(_0x37c1b6(0x113))/0x6+-parseInt(_0x37c1b6(0x11c))/0x7+-parseInt(_0x37c1b6(0x116))/0x8*(-parseInt(_0x37c1b6(0x10e))/0x9);if(_0x36ab81===_0x17814c)break;else _0x21ecdb['push'](_0x21ecdb['shift']());}catch(_0x1df830){_0x21ecdb['push'](_0x21ecdb['shift']());}}}(a63_0x6cdc,0xb72ae));import{createHelpGenerators}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';import{serviceRegistry,serviceGroups,getServiceEntry}from'../commands/registry.js';import{getDynamicServiceDefinitions,getDynamicServiceEntry,listDynamicServiceEntries}from'../commands/service/dynamic.js';function a63_0x6cdc(){const _0x257014=['1069069CJwJSo','get','4321254hbMHgn','newConfigFileName','215986DmsPQR','7247184kqxpcz','service','Requires\x20appcode\x20(set\x20via\x20','39LeEmmb','generateCommandHelp','1543650wsFhZn','4191614tNyGIx','generateFullHelp','generateServiceHelp','27HWkqZm','301604dsrgSl','filter'];a63_0x6cdc=function(){return _0x257014;};return a63_0x6cdc();}import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';import{PRODUCT_CONFIG}from'../constant/product.js';function createGenerators(){const _0x43ea1c=a63_0x14f2;return createHelpGenerators({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'globalFlags':GLOBAL_FLAGS,'serviceRegistry':[...serviceRegistry,...safeListDynamicServiceEntries()],'getServiceEntry':getAnyServiceEntry,'getServiceDefinitions':getAnyServiceDefinitions,'buildAllFlags':buildAllFlags,'appPrerequisiteText':_0x43ea1c(0x118)+PRODUCT_CONFIG[_0x43ea1c(0x114)]+'\x20or\x20--appcode).'});}export function generateCommandHelp(_0x3a7780){const _0x1cfe27=a63_0x14f2;return createGenerators()[_0x1cfe27(0x11a)](_0x3a7780);}function a63_0x14f2(_0x53c017,_0x320765){_0x53c017=_0x53c017-0x10c;const _0x6cdc59=a63_0x6cdc();let _0x14f216=_0x6cdc59[_0x53c017];return _0x14f216;}export function generateServiceHelp(_0x9b2436){const _0x347680=a63_0x14f2;return createGenerators()[_0x347680(0x10d)](_0x9b2436);}export function generateFullHelp(){const _0x515586=a63_0x14f2;return createGenerators()[_0x515586(0x10c)]();}function getAnyServiceEntry(_0x258f7a){const _0x597854=getServiceEntry(_0x258f7a);if(_0x597854)return _0x597854;try{return getDynamicServiceEntry(_0x258f7a);}catch{return undefined;}}function getAnyServiceDefinitions(_0x3500a3){const _0x4d014c=a63_0x14f2,_0x5baa7c=serviceGroups[_0x4d014c(0x112)](_0x3500a3);if(_0x5baa7c)return _0x5baa7c;try{return getDynamicServiceDefinitions(_0x3500a3);}catch{return undefined;}}function safeListDynamicServiceEntries(){const _0x2aef71=a63_0x14f2,_0x5d647c=new Set(serviceRegistry['map'](_0x4906b2=>_0x4906b2['service']));try{return listDynamicServiceEntries()[_0x2aef71(0x110)](_0x449eb7=>!_0x5d647c['has'](_0x449eb7[_0x2aef71(0x117)]));}catch{return[];}}
@@ -1 +1 @@
1
- (function(_0x49e17c,_0x4c4183){var _0x85e99c=a64_0x3cd7,_0x441d60=_0x49e17c();while(!![]){try{var _0x2ac31d=parseInt(_0x85e99c(0x1e2))/0x1*(parseInt(_0x85e99c(0x1e9))/0x2)+-parseInt(_0x85e99c(0x1e4))/0x3*(parseInt(_0x85e99c(0x1e8))/0x4)+parseInt(_0x85e99c(0x1e3))/0x5+parseInt(_0x85e99c(0x1e7))/0x6+-parseInt(_0x85e99c(0x1ea))/0x7*(-parseInt(_0x85e99c(0x1e6))/0x8)+-parseInt(_0x85e99c(0x1e1))/0x9+-parseInt(_0x85e99c(0x1e5))/0xa*(-parseInt(_0x85e99c(0x1eb))/0xb);if(_0x2ac31d===_0x4c4183)break;else _0x441d60['push'](_0x441d60['shift']());}catch(_0x32a92f){_0x441d60['push'](_0x441d60['shift']());}}}(a64_0x20a0,0x8575a));export{runCommand}from'../framework/runner.js';export{parseFlags,validateFlags}from'../framework/flags.js';export{formatOutput}from'../framework/output.js';export{generateCommandHelp,generateServiceHelp,generateFullHelp}from'../framework/help.js';function a64_0x20a0(){var _0x23c27a=['280175myJXjm','3229689jBQkIb','5524540fBCyId','184woSsFQ','516714GxToyJ','4VNUvMf','698QUDXbK','189693hZjTQg','33lhgHWf','9423189qWpOEC','709zcvmZS'];a64_0x20a0=function(){return _0x23c27a;};return a64_0x20a0();}export{extractList,extractPaging}from'../framework/response.js';export{dryRun}from'../framework/dryrun.js';function a64_0x3cd7(_0x2497d4,_0x20d94d){_0x2497d4=_0x2497d4-0x1e1;var _0x20a011=a64_0x20a0();var _0x3cd7f0=_0x20a011[_0x2497d4];return _0x3cd7f0;}export{riskLevelOrder,isValidFormat}from'../framework/types.js';
1
+ (function(_0x5c8cc5,_0x468a5d){var _0x513ae4=a64_0x26a1,_0x42be7a=_0x5c8cc5();while(!![]){try{var _0x2e877f=-parseInt(_0x513ae4(0x185))/0x1*(-parseInt(_0x513ae4(0x184))/0x2)+parseInt(_0x513ae4(0x183))/0x3+parseInt(_0x513ae4(0x17d))/0x4+-parseInt(_0x513ae4(0x17c))/0x5*(parseInt(_0x513ae4(0x182))/0x6)+-parseInt(_0x513ae4(0x180))/0x7+-parseInt(_0x513ae4(0x17e))/0x8*(parseInt(_0x513ae4(0x181))/0x9)+parseInt(_0x513ae4(0x17f))/0xa;if(_0x2e877f===_0x468a5d)break;else _0x42be7a['push'](_0x42be7a['shift']());}catch(_0x58a850){_0x42be7a['push'](_0x42be7a['shift']());}}}(a64_0x5663,0x1c93b));export{runCommand}from'../framework/runner.js';function a64_0x26a1(_0x33f779,_0x49f591){_0x33f779=_0x33f779-0x17c;var _0x56636f=a64_0x5663();var _0x26a176=_0x56636f[_0x33f779];return _0x26a176;}export{parseFlags,validateFlags}from'../framework/flags.js';export{formatOutput}from'../framework/output.js';export{generateCommandHelp,generateServiceHelp,generateFullHelp}from'../framework/help.js';export{extractList,extractPaging}from'../framework/response.js';function a64_0x5663(){var _0x2b63ef=['279KTgeCj','984DwgXYW','117054jEFGwP','16vgiMUM','24523GpJcJF','4355hJGzpn','28560FHUgjU','40016cwYouA','2682820gYFITi','669669BkCtwp'];a64_0x5663=function(){return _0x2b63ef;};return a64_0x5663();}export{dryRun}from'../framework/dryrun.js';export{riskLevelOrder,isValidFormat}from'../framework/types.js';
@@ -1 +1 @@
1
- function a65_0x4cfd(){const _0x5ec6b1=['4oWKpgu','1739815FJZpum','url','35086051CXAvCA','32MqraGh','10cNmmMZ','error','3488118KUhnhN','18kPuhgg','129798YeSMVz','format','1425601ZcvuBO','message','4516470DiALDH','update','2747970MedPEL'];a65_0x4cfd=function(){return _0x5ec6b1;};return a65_0x4cfd();}(function(_0x94072e,_0x24fc91){const _0x6db089=a65_0x48a8,_0x573efe=_0x94072e();while(!![]){try{const _0x206b5f=parseInt(_0x6db089(0x1c1))/0x1+-parseInt(_0x6db089(0x1bf))/0x2*(-parseInt(_0x6db089(0x1be))/0x3)+parseInt(_0x6db089(0x1c6))/0x4*(-parseInt(_0x6db089(0x1c7))/0x5)+parseInt(_0x6db089(0x1bd))/0x6+parseInt(_0x6db089(0x1c3))/0x7+parseInt(_0x6db089(0x1ba))/0x8*(parseInt(_0x6db089(0x1c5))/0x9)+parseInt(_0x6db089(0x1bb))/0xa*(-parseInt(_0x6db089(0x1c9))/0xb);if(_0x206b5f===_0x24fc91)break;else _0x573efe['push'](_0x573efe['shift']());}catch(_0x1b4256){_0x573efe['push'](_0x573efe['shift']());}}}(a65_0x4cfd,0xb111a));import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';const baseFormatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});export function formatOutput(_0x2af490,_0x690c33){const _0x5f1723=a65_0x48a8,_0x351932=_0x2af490['_notice'],{_notice:_0x11d357,..._0x27922c}=_0x2af490;void _0x11d357,baseFormatOutput(_0x27922c,_0x690c33),_0x690c33[_0x5f1723(0x1c0)]==='pretty'&&printPrettyNotice(_0x351932);}function a65_0x48a8(_0x1b164d,_0x35fc3b){_0x1b164d=_0x1b164d-0x1ba;const _0x4cfdac=a65_0x4cfd();let _0x48a83c=_0x4cfdac[_0x1b164d];return _0x48a83c;}function printPrettyNotice(_0x3a4afa){const _0x1d81cf=a65_0x48a8;if(!_0x3a4afa?.[_0x1d81cf(0x1c4)])return;console[_0x1d81cf(0x1bc)](_0x3a4afa['update'][_0x1d81cf(0x1c2)]+'\x20('+_0x3a4afa[_0x1d81cf(0x1c4)][_0x1d81cf(0x1c8)]+')');}
1
+ (function(_0x5e8ad5,_0x1a1d0e){const _0xc4ad4c=a65_0x5f22,_0x13a37f=_0x5e8ad5();while(!![]){try{const _0x223090=-parseInt(_0xc4ad4c(0x15b))/0x1*(-parseInt(_0xc4ad4c(0x15e))/0x2)+parseInt(_0xc4ad4c(0x165))/0x3+-parseInt(_0xc4ad4c(0x160))/0x4*(parseInt(_0xc4ad4c(0x155))/0x5)+parseInt(_0xc4ad4c(0x158))/0x6*(-parseInt(_0xc4ad4c(0x159))/0x7)+-parseInt(_0xc4ad4c(0x156))/0x8*(-parseInt(_0xc4ad4c(0x166))/0x9)+parseInt(_0xc4ad4c(0x15c))/0xa+-parseInt(_0xc4ad4c(0x162))/0xb*(-parseInt(_0xc4ad4c(0x15f))/0xc);if(_0x223090===_0x1a1d0e)break;else _0x13a37f['push'](_0x13a37f['shift']());}catch(_0x5b13b9){_0x13a37f['push'](_0x13a37f['shift']());}}}(a65_0x5be7,0xb1a48));function a65_0x5be7(){const _0x2eb3b9=['3391213eOpeGS','url','17047EcceXO','11075900rPfnZV','pretty','4IHFlsb','12qpnAfF','4WzbOig','_notice','8791849QhZUhK','format','update','680688jhLRpT','198xHnPib','error','7209010zaHAZc','176744bvLWiG','message','6StEGCb'];a65_0x5be7=function(){return _0x2eb3b9;};return a65_0x5be7();}import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';const baseFormatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});function a65_0x5f22(_0x1b3a8f,_0x5a1f29){_0x1b3a8f=_0x1b3a8f-0x154;const _0x5be740=a65_0x5be7();let _0x5f22c8=_0x5be740[_0x1b3a8f];return _0x5f22c8;}export function formatOutput(_0x286e89,_0x179ec0){const _0xc95981=a65_0x5f22,_0x4d20c6=_0x286e89[_0xc95981(0x161)],{_notice:_0x3f8d5b,..._0x16e4a8}=_0x286e89;void _0x3f8d5b,baseFormatOutput(_0x16e4a8,_0x179ec0),_0x179ec0[_0xc95981(0x163)]===_0xc95981(0x15d)&&printPrettyNotice(_0x4d20c6);}function printPrettyNotice(_0x21eb77){const _0x38f1b4=a65_0x5f22;if(!_0x21eb77?.[_0x38f1b4(0x164)])return;console[_0x38f1b4(0x154)](_0x21eb77[_0x38f1b4(0x164)][_0x38f1b4(0x157)]+'\x20('+_0x21eb77[_0x38f1b4(0x164)][_0x38f1b4(0x15a)]+')');}
@@ -1 +1 @@
1
- function a66_0x242d(){const _0x1027af=['version','help','has','name','add','164746EAlhCK','toLowerCase','appcode','slice','number','dry-run','386149rRODio','length','alias','string','original','1930UoQqGb','284uEtWyD','sticky','toUpperCase','keys','global','corrected','11337SNLjiJ','type','16569hbxEHn','format','boolean','2165520nkQPTF','non-interactive','indexOf','set','entries','replace','get','10986NsUxWN','2628936hjxFAi','app','nonInteractive','yes','push','785nSNwwY'];a66_0x242d=function(){return _0x1027af;};return a66_0x242d();}(function(_0x4a300a,_0x39f739){const _0x34f13e=a66_0x1e77,_0x8a5082=_0x4a300a();while(!![]){try{const _0x4370e6=parseInt(_0x34f13e(0x15b))/0x1+parseInt(_0x34f13e(0x155))/0x2+-parseInt(_0x34f13e(0x167))/0x3*(parseInt(_0x34f13e(0x161))/0x4)+parseInt(_0x34f13e(0x14f))/0x5*(-parseInt(_0x34f13e(0x149))/0x6)+parseInt(_0x34f13e(0x142))/0x7+-parseInt(_0x34f13e(0x14a))/0x8+-parseInt(_0x34f13e(0x169))/0x9*(-parseInt(_0x34f13e(0x160))/0xa);if(_0x4370e6===_0x39f739)break;else _0x8a5082['push'](_0x8a5082['shift']());}catch(_0xbc0c3a){_0x8a5082['push'](_0x8a5082['shift']());}}}(a66_0x242d,0x3cbe2));function toKebab(_0x52026d){const _0x37d013=a66_0x1e77;return _0x52026d['replace'](/_/g,'-')[_0x37d013(0x147)](/-([A-Z]+)/g,(_0x279de9,_0x1e1b15)=>'-'+_0x1e1b15[_0x37d013(0x156)]())['replace'](/([a-z0-9])([A-Z])/g,(_0x3a6a2e,_0x11afde,_0x275561)=>_0x11afde+'-'+_0x275561)[_0x37d013(0x156)]();}function buildKnownFlags(_0x36fb4d){const _0x3d6a1a=a66_0x1e77,_0x5d4469=new Set();for(const _0x5b0531 of _0x36fb4d){_0x5d4469['add'](_0x5b0531['name']),_0x5d4469[_0x3d6a1a(0x154)](toCamelCase(_0x5b0531[_0x3d6a1a(0x153)]));}for(const _0x306a69 of[_0x3d6a1a(0x15a),'dryRun',_0x3d6a1a(0x14d),_0x3d6a1a(0x16a)]){_0x5d4469[_0x3d6a1a(0x154)](_0x306a69);}for(const _0x5e2396 of[_0x3d6a1a(0x151),'env',_0x3d6a1a(0x157),_0x3d6a1a(0x14b),_0x3d6a1a(0x14c),_0x3d6a1a(0x143),'ci',_0x3d6a1a(0x165),_0x3d6a1a(0x150)]){_0x5d4469['add'](_0x5e2396);}return _0x5d4469;}function buildFlagTypeMap(_0x49d243){const _0xc867a3=a66_0x1e77,_0x2c0902=new Map();for(const _0x32556f of _0x49d243){_0x2c0902[_0xc867a3(0x145)](_0x32556f['name'],_0x32556f[_0xc867a3(0x168)]),_0x2c0902[_0xc867a3(0x145)](toCamelCase(_0x32556f[_0xc867a3(0x153)]),_0x32556f[_0xc867a3(0x168)]);}return _0x2c0902;}function toCamelCase(_0xd54773){const _0x21f6cc=a66_0x1e77;return _0xd54773['replace'](/-([a-z])/g,(_0x50f6cd,_0x4867ff)=>_0x4867ff[_0x21f6cc(0x163)]());}function a66_0x1e77(_0x14277d,_0x3ff0fe){_0x14277d=_0x14277d-0x142;const _0x242db2=a66_0x242d();let _0x1e77d8=_0x242db2[_0x14277d];return _0x1e77d8;}function aliasHandler(_0x11e301,_0x3f4ac0){const _0x4cad43=a66_0x1e77,_0x25d6b4=[];for(const _0x19eccf of Object[_0x4cad43(0x164)](_0x11e301)){if(_0x3f4ac0['has'](_0x19eccf))continue;const _0x95bba5=toKebab(_0x19eccf);_0x95bba5!==_0x19eccf&&_0x3f4ac0[_0x4cad43(0x152)](_0x95bba5)&&_0x25d6b4['push']({'original':_0x19eccf,'corrected':_0x95bba5,'handler':_0x4cad43(0x15d)});}return _0x25d6b4;}function stickyHandler(_0x5e1979,_0x2b85da,_0x5dfee5){const _0x5afccf=a66_0x1e77,_0x5bad25=[];for(const [_0x2cf4d5,_0x2bef96]of Object[_0x5afccf(0x146)](_0x5e1979)){if(_0x2bef96!==!![])continue;for(let _0x181782=_0x2cf4d5[_0x5afccf(0x15c)]-0x1;_0x181782>0x0;_0x181782--){const _0x5b0255=_0x2cf4d5[_0x5afccf(0x158)](0x0,_0x181782),_0x2ff90a=_0x2cf4d5[_0x5afccf(0x158)](_0x181782),_0x2d3910=toKebab(_0x5b0255),_0x33fedd=toCamelCase(_0x5b0255),_0x55fcae=_0x2b85da[_0x5afccf(0x152)](_0x5b0255)?_0x5b0255:_0x2b85da[_0x5afccf(0x152)](_0x2d3910)?_0x2d3910:_0x2b85da[_0x5afccf(0x152)](_0x33fedd)?_0x33fedd:null;if(!_0x55fcae)continue;const _0x5df68a=_0x5dfee5[_0x5afccf(0x148)](_0x55fcae)??_0x5afccf(0x15e);let _0x524f84;if(_0x5df68a===_0x5afccf(0x159)){const _0x5342f1=Number(_0x2ff90a);if(isNaN(_0x5342f1)||_0x2ff90a==='')continue;_0x524f84=_0x5342f1;}else{if(_0x5df68a===_0x5afccf(0x16b))continue;else{if(_0x2ff90a==='')continue;_0x524f84=_0x2ff90a;}}_0x5bad25[_0x5afccf(0x14e)]({'original':_0x2cf4d5,'corrected':_0x55fcae+'='+_0x524f84,'handler':_0x5afccf(0x162)});break;}}return _0x5bad25;}export function correctFlags(_0x18a09e,_0x2f960e){const _0x4159be=a66_0x1e77,_0x4ec1c9=buildKnownFlags(_0x2f960e),_0x13f75c=buildFlagTypeMap(_0x2f960e),_0x11a4b8=aliasHandler(_0x18a09e,_0x4ec1c9),_0x1cf942=stickyHandler(_0x18a09e,_0x4ec1c9,_0x13f75c),_0x573dac=[..._0x11a4b8,..._0x1cf942];if(_0x573dac[_0x4159be(0x15c)]===0x0)return{'flags':_0x18a09e,'corrections':[]};const _0x7275e8={..._0x18a09e},_0x577f3f=new Set();for(const _0x48a5a5 of _0x11a4b8){_0x7275e8[_0x48a5a5[_0x4159be(0x166)]]=_0x18a09e[_0x48a5a5[_0x4159be(0x15f)]],_0x577f3f[_0x4159be(0x154)](_0x48a5a5[_0x4159be(0x15f)]);}for(const _0x379e19 of _0x1cf942){const _0x2b84b0=_0x379e19[_0x4159be(0x166)][_0x4159be(0x144)]('='),_0x451321=_0x379e19['corrected'][_0x4159be(0x158)](0x0,_0x2b84b0),_0x1f37fe=_0x379e19[_0x4159be(0x166)]['slice'](_0x2b84b0+0x1),_0x2e090a=_0x13f75c[_0x4159be(0x148)](_0x451321)??'string';_0x2e090a===_0x4159be(0x159)?_0x7275e8[_0x451321]=Number(_0x1f37fe):_0x7275e8[_0x451321]=_0x1f37fe,_0x577f3f[_0x4159be(0x154)](_0x379e19['original']);}for(const _0x460ab9 of _0x577f3f){delete _0x7275e8[_0x460ab9];}return{'flags':_0x7275e8,'corrections':_0x573dac};}
1
+ function a66_0x3654(_0x3a47e2,_0x439182){_0x3a47e2=_0x3a47e2-0x18f;const _0x5b525f=a66_0x5b52();let _0x365422=_0x5b525f[_0x3a47e2];return _0x365422;}(function(_0x1ee963,_0x3a7277){const _0x211ced=a66_0x3654,_0x523287=_0x1ee963();while(!![]){try{const _0x5382eb=parseInt(_0x211ced(0x1ac))/0x1+-parseInt(_0x211ced(0x193))/0x2+parseInt(_0x211ced(0x194))/0x3*(parseInt(_0x211ced(0x19b))/0x4)+-parseInt(_0x211ced(0x1ad))/0x5+parseInt(_0x211ced(0x1b2))/0x6*(parseInt(_0x211ced(0x19d))/0x7)+parseInt(_0x211ced(0x1b4))/0x8+parseInt(_0x211ced(0x1a4))/0x9*(-parseInt(_0x211ced(0x19f))/0xa);if(_0x5382eb===_0x3a7277)break;else _0x523287['push'](_0x523287['shift']());}catch(_0x13d58b){_0x523287['push'](_0x523287['shift']());}}}(a66_0x5b52,0x2c3de));function toKebab(_0x246930){const _0x1026e6=a66_0x3654;return _0x246930[_0x1026e6(0x1b5)](/_/g,'-')[_0x1026e6(0x1b5)](/-([A-Z]+)/g,(_0x3fd3c2,_0x3c2cd3)=>'-'+_0x3c2cd3[_0x1026e6(0x1b3)]())[_0x1026e6(0x1b5)](/([a-z0-9])([A-Z])/g,(_0x4b7075,_0x1ce4c8,_0x461dd0)=>_0x1ce4c8+'-'+_0x461dd0)[_0x1026e6(0x1b3)]();}function buildKnownFlags(_0x380ef9){const _0x4c2bfb=a66_0x3654,_0x50cc4b=new Set();for(const _0x587ec3 of _0x380ef9){_0x50cc4b[_0x4c2bfb(0x1a1)](_0x587ec3[_0x4c2bfb(0x192)]),_0x50cc4b[_0x4c2bfb(0x1a1)](toCamelCase(_0x587ec3[_0x4c2bfb(0x192)]));}for(const _0x37a537 of[_0x4c2bfb(0x1a8),_0x4c2bfb(0x195),_0x4c2bfb(0x196),_0x4c2bfb(0x190)]){_0x50cc4b['add'](_0x37a537);}for(const _0x2ea8ed of[_0x4c2bfb(0x1a0),_0x4c2bfb(0x198),_0x4c2bfb(0x1ae),_0x4c2bfb(0x1a9),'nonInteractive','non-interactive','ci','global',_0x4c2bfb(0x191)]){_0x50cc4b['add'](_0x2ea8ed);}return _0x50cc4b;}function buildFlagTypeMap(_0x25fcb2){const _0x8f49f5=a66_0x3654,_0x4ba5ff=new Map();for(const _0x2b204c of _0x25fcb2){_0x4ba5ff['set'](_0x2b204c[_0x8f49f5(0x192)],_0x2b204c['type']),_0x4ba5ff[_0x8f49f5(0x19e)](toCamelCase(_0x2b204c[_0x8f49f5(0x192)]),_0x2b204c[_0x8f49f5(0x1a2)]);}return _0x4ba5ff;}function a66_0x5b52(){const _0x4b72de=['format','version','name','308938iLIUrM','389943leDeJr','dryRun','yes','push','env','keys','get','8biYDqi','indexOf','312641ndQsjQ','set','10gUDdkT','help','add','type','length','804483cnoyOW','string','entries','boolean','dry-run','app','corrected','has','87371VCwXiv','249135nAtppC','appcode','slice','alias','number','6qjwdwE','toLowerCase','663208qMADKC','replace','original'];a66_0x5b52=function(){return _0x4b72de;};return a66_0x5b52();}function toCamelCase(_0x3e3d99){const _0xdef48b=a66_0x3654;return _0x3e3d99[_0xdef48b(0x1b5)](/-([a-z])/g,(_0x11cf76,_0x10edb9)=>_0x10edb9['toUpperCase']());}function aliasHandler(_0x165331,_0x4259ff){const _0x3e5f4d=a66_0x3654,_0x1f68ce=[];for(const _0x3d623f of Object[_0x3e5f4d(0x199)](_0x165331)){if(_0x4259ff[_0x3e5f4d(0x1ab)](_0x3d623f))continue;const _0xba636b=toKebab(_0x3d623f);_0xba636b!==_0x3d623f&&_0x4259ff[_0x3e5f4d(0x1ab)](_0xba636b)&&_0x1f68ce[_0x3e5f4d(0x197)]({'original':_0x3d623f,'corrected':_0xba636b,'handler':_0x3e5f4d(0x1b0)});}return _0x1f68ce;}function stickyHandler(_0x27800e,_0x502a24,_0x3fcd9e){const _0x38691c=a66_0x3654,_0x8e2f8d=[];for(const [_0x287a9b,_0x497006]of Object[_0x38691c(0x1a6)](_0x27800e)){if(_0x497006!==!![])continue;for(let _0x1b9b20=_0x287a9b[_0x38691c(0x1a3)]-0x1;_0x1b9b20>0x0;_0x1b9b20--){const _0x3845c6=_0x287a9b['slice'](0x0,_0x1b9b20),_0xb04763=_0x287a9b[_0x38691c(0x1af)](_0x1b9b20),_0x4022bf=toKebab(_0x3845c6),_0x2408b6=toCamelCase(_0x3845c6),_0x4117ab=_0x502a24['has'](_0x3845c6)?_0x3845c6:_0x502a24[_0x38691c(0x1ab)](_0x4022bf)?_0x4022bf:_0x502a24[_0x38691c(0x1ab)](_0x2408b6)?_0x2408b6:null;if(!_0x4117ab)continue;const _0x5450d7=_0x3fcd9e[_0x38691c(0x19a)](_0x4117ab)??_0x38691c(0x1a5);let _0x3d65b5;if(_0x5450d7===_0x38691c(0x1b1)){const _0x129838=Number(_0xb04763);if(isNaN(_0x129838)||_0xb04763==='')continue;_0x3d65b5=_0x129838;}else{if(_0x5450d7===_0x38691c(0x1a7))continue;else{if(_0xb04763==='')continue;_0x3d65b5=_0xb04763;}}_0x8e2f8d['push']({'original':_0x287a9b,'corrected':_0x4117ab+'='+_0x3d65b5,'handler':'sticky'});break;}}return _0x8e2f8d;}export function correctFlags(_0x41889f,_0x1252f1){const _0xd16d98=a66_0x3654,_0x1d55aa=buildKnownFlags(_0x1252f1),_0x3c5184=buildFlagTypeMap(_0x1252f1),_0x9ceaa9=aliasHandler(_0x41889f,_0x1d55aa),_0x16d929=stickyHandler(_0x41889f,_0x1d55aa,_0x3c5184),_0x3b3341=[..._0x9ceaa9,..._0x16d929];if(_0x3b3341['length']===0x0)return{'flags':_0x41889f,'corrections':[]};const _0x5e9a4d={..._0x41889f},_0x44bbaf=new Set();for(const _0x40fe15 of _0x9ceaa9){_0x5e9a4d[_0x40fe15[_0xd16d98(0x1aa)]]=_0x41889f[_0x40fe15[_0xd16d98(0x18f)]],_0x44bbaf[_0xd16d98(0x1a1)](_0x40fe15[_0xd16d98(0x18f)]);}for(const _0x5912ca of _0x16d929){const _0x43201c=_0x5912ca[_0xd16d98(0x1aa)][_0xd16d98(0x19c)]('='),_0x19fc74=_0x5912ca[_0xd16d98(0x1aa)][_0xd16d98(0x1af)](0x0,_0x43201c),_0x2c84c7=_0x5912ca[_0xd16d98(0x1aa)][_0xd16d98(0x1af)](_0x43201c+0x1),_0x1139e3=_0x3c5184[_0xd16d98(0x19a)](_0x19fc74)??_0xd16d98(0x1a5);_0x1139e3===_0xd16d98(0x1b1)?_0x5e9a4d[_0x19fc74]=Number(_0x2c84c7):_0x5e9a4d[_0x19fc74]=_0x2c84c7,_0x44bbaf['add'](_0x5912ca[_0xd16d98(0x18f)]);}for(const _0x32fa6e of _0x44bbaf){delete _0x5e9a4d[_0x32fa6e];}return{'flags':_0x5e9a4d,'corrections':_0x3b3341};}
@@ -1 +1 @@
1
- function a67_0x28f5(_0x397c52,_0x56c42b){_0x397c52=_0x397c52-0xbd;var _0x4b93ad=a67_0x4b93();var _0x28f51b=_0x4b93ad[_0x397c52];return _0x28f51b;}(function(_0x4c3f74,_0x1b760c){var _0x3cc600=a67_0x28f5,_0x24191e=_0x4c3f74();while(!![]){try{var _0x33349e=parseInt(_0x3cc600(0xc2))/0x1+-parseInt(_0x3cc600(0xc6))/0x2+parseInt(_0x3cc600(0xc0))/0x3*(parseInt(_0x3cc600(0xc5))/0x4)+parseInt(_0x3cc600(0xbd))/0x5*(-parseInt(_0x3cc600(0xc4))/0x6)+-parseInt(_0x3cc600(0xc1))/0x7*(parseInt(_0x3cc600(0xbf))/0x8)+parseInt(_0x3cc600(0xbe))/0x9+parseInt(_0x3cc600(0xc3))/0xa;if(_0x33349e===_0x1b760c)break;else _0x24191e['push'](_0x24191e['shift']());}catch(_0x55a609){_0x24191e['push'](_0x24191e['shift']());}}}(a67_0x4b93,0xe1e42));function a67_0x4b93(){var _0x332efb=['300QIDnoT','2372vrNYBT','2015660dRdvSw','83095UPqRAQ','5937534lUejow','1431512vtlQFm','309pnAUcl','28RPRhDo','1032172ziHpET','17268090iTypCG'];a67_0x4b93=function(){return _0x332efb;};return a67_0x4b93();}export{extractList,extractPaging}from'@lovrabet/cli-framework';
1
+ (function(_0x2113b4,_0x3cdc99){var _0x340188=a67_0x40b2,_0xe76bc4=_0x2113b4();while(!![]){try{var _0x46d211=-parseInt(_0x340188(0xaa))/0x1*(parseInt(_0x340188(0xa9))/0x2)+-parseInt(_0x340188(0xae))/0x3+-parseInt(_0x340188(0xad))/0x4+-parseInt(_0x340188(0xa8))/0x5*(parseInt(_0x340188(0xaf))/0x6)+parseInt(_0x340188(0xab))/0x7+-parseInt(_0x340188(0xa7))/0x8+parseInt(_0x340188(0xac))/0x9;if(_0x46d211===_0x3cdc99)break;else _0xe76bc4['push'](_0xe76bc4['shift']());}catch(_0x24aa2d){_0xe76bc4['push'](_0xe76bc4['shift']());}}}(a67_0x352e,0xba15e));function a67_0x352e(){var _0x182912=['2313969gFHsWP','8266020ehhNmB','5685424RgKddR','5JKHcUw','22iKsHdM','43226VREVwv','7272258kvTCAc','39492810QPuFnl','5318484oXVhCf'];a67_0x352e=function(){return _0x182912;};return a67_0x352e();}function a67_0x40b2(_0x26ef61,_0x4689cc){_0x26ef61=_0x26ef61-0xa7;var _0x352ee8=a67_0x352e();var _0x40b259=_0x352ee8[_0x26ef61];return _0x40b259;}export{extractList,extractPaging}from'@lovrabet/cli-framework';
@@ -1 +1 @@
1
- (function(_0x13eca0,_0x17d94a){const _0x5d9ac6=a68_0x1920,_0x19b551=_0x13eca0();while(!![]){try{const _0x57174d=parseInt(_0x5d9ac6(0x1de))/0x1+-parseInt(_0x5d9ac6(0x1cc))/0x2*(parseInt(_0x5d9ac6(0x1cd))/0x3)+parseInt(_0x5d9ac6(0x1ca))/0x4*(-parseInt(_0x5d9ac6(0x1da))/0x5)+parseInt(_0x5d9ac6(0x1c8))/0x6+parseInt(_0x5d9ac6(0x1dc))/0x7*(-parseInt(_0x5d9ac6(0x1d8))/0x8)+parseInt(_0x5d9ac6(0x1d5))/0x9*(-parseInt(_0x5d9ac6(0x1db))/0xa)+parseInt(_0x5d9ac6(0x1e5))/0xb;if(_0x57174d===_0x17d94a)break;else _0x19b551['push'](_0x19b551['shift']());}catch(_0xe98726){_0x19b551['push'](_0x19b551['shift']());}}}(a68_0x2842,0xcebd2));import{CLI_BIN_NAME}from'../constant/cli.js';export function buildConfirmationLines(_0x2b526d,_0x3cba39,_0x3251a){const _0x172697=a68_0x1920,_0x1609e7=buildConfirmationContext(_0x2b526d,_0x3cba39,_0x3251a),_0x41c5ce=[_0x172697(0x1e0)+_0x1609e7[_0x172697(0x1e3)]];return _0x1609e7[_0x172697(0x1dd)]&&_0x41c5ce['push'](_0x172697(0x1d0)+_0x1609e7['description']),_0x1609e7[_0x172697(0x1d9)]&&_0x41c5ce[_0x172697(0x1e2)](_0x172697(0x1c9)+_0x1609e7['affectedRecords']),_0x41c5ce[_0x172697(0x1e2)](_0x172697(0x1cb)),_0x41c5ce;}export function reconstructCommandArgv(_0x3d3aef,_0x23c4b8){const _0x1a90b7=a68_0x1920,_0x247281=[CLI_BIN_NAME,_0x3d3aef[_0x1a90b7(0x1cf)],_0x3d3aef[_0x1a90b7(0x1d7)]];for(const [_0x2863e6,_0x3b4fb7]of Object[_0x1a90b7(0x1d1)](_0x23c4b8)){if(_0x3b4fb7===!![])_0x247281[_0x1a90b7(0x1e2)]('--'+_0x2863e6);else _0x3b4fb7!==![]&&_0x3b4fb7!==undefined&&_0x3b4fb7!==''&&_0x247281[_0x1a90b7(0x1e2)]('--'+_0x2863e6+'\x20'+JSON[_0x1a90b7(0x1df)](_0x3b4fb7));}return _0x247281[_0x1a90b7(0x1e2)](_0x1a90b7(0x1d4)),_0x247281[_0x1a90b7(0x1d6)]('\x20');}function a68_0x2842(){const _0xe61de7=['\x20\x20\x20Continue?\x20[y/N]\x20','756opWrQu','12861HFhtUS','id=','service','\x20\x20\x20','entries','params','params=','--yes','477TCfRMf','join','command','8sCstGN','affectedRecords','30NBPMMi','23930PYXMbM','9098754yQLOJZ','description','1533793kLVdSm','stringify','⚠\x20\x20High-risk\x20operation:\x20','code=','push','commandLabel','code','21154463JPhjvD','9792450QZICOb','\x20\x20\x20Affected:\x20','796708wZkESQ'];a68_0x2842=function(){return _0xe61de7;};return a68_0x2842();}function buildConfirmationContext(_0x107d6f,_0x279c9c,_0x287be3){const _0x34e5c1=a68_0x1920,_0x53208b=extractAffectedRecords(_0x287be3);return{'commandLabel':_0x279c9c,'description':_0x107d6f[_0x34e5c1(0x1dd)],'affectedRecords':_0x53208b};}function a68_0x1920(_0x296a11,_0x331f25){_0x296a11=_0x296a11-0x1c8;const _0x2842b9=a68_0x2842();let _0x1920bf=_0x2842b9[_0x296a11];return _0x1920bf;}function extractAffectedRecords(_0x325d02){const _0x21d469=a68_0x1920,_0x51381f=[];if(_0x325d02[_0x21d469(0x1e4)])_0x51381f[_0x21d469(0x1e2)](_0x21d469(0x1e1)+_0x325d02[_0x21d469(0x1e4)]);if(_0x325d02['id'])_0x51381f[_0x21d469(0x1e2)](_0x21d469(0x1ce)+_0x325d02['id']);if(_0x325d02['name'])_0x51381f['push']('name='+_0x325d02['name']);if(_0x325d02[_0x21d469(0x1d2)])_0x51381f['push'](_0x21d469(0x1d3)+_0x325d02['params']);return _0x51381f['length']>0x0?_0x51381f[_0x21d469(0x1d6)](',\x20'):undefined;}
1
+ (function(_0x5a1c5a,_0x8f0e3e){const _0x26fd61=a68_0x1700,_0x421008=_0x5a1c5a();while(!![]){try{const _0x182110=parseInt(_0x26fd61(0x19b))/0x1+parseInt(_0x26fd61(0x18f))/0x2+parseInt(_0x26fd61(0x192))/0x3*(-parseInt(_0x26fd61(0x191))/0x4)+-parseInt(_0x26fd61(0x19c))/0x5+parseInt(_0x26fd61(0x198))/0x6+-parseInt(_0x26fd61(0x19d))/0x7+-parseInt(_0x26fd61(0x1a6))/0x8;if(_0x182110===_0x8f0e3e)break;else _0x421008['push'](_0x421008['shift']());}catch(_0x433e8d){_0x421008['push'](_0x421008['shift']());}}}(a68_0x4364,0x400d5));function a68_0x1700(_0x75c6bf,_0x339e1f){_0x75c6bf=_0x75c6bf-0x18e;const _0x436444=a68_0x4364();let _0x1700f5=_0x436444[_0x75c6bf];return _0x1700f5;}import{CLI_BIN_NAME}from'../constant/cli.js';export function buildConfirmationLines(_0x5654ea,_0x1f3397,_0x4c3b13){const _0xfc94c0=a68_0x1700,_0x28538d=buildConfirmationContext(_0x5654ea,_0x1f3397,_0x4c3b13),_0x4cf366=[_0xfc94c0(0x1a4)+_0x28538d['commandLabel']];return _0x28538d[_0xfc94c0(0x196)]&&_0x4cf366[_0xfc94c0(0x193)]('\x20\x20\x20'+_0x28538d[_0xfc94c0(0x196)]),_0x28538d[_0xfc94c0(0x197)]&&_0x4cf366['push'](_0xfc94c0(0x199)+_0x28538d[_0xfc94c0(0x197)]),_0x4cf366[_0xfc94c0(0x193)]('\x20\x20\x20Continue?\x20[y/N]\x20'),_0x4cf366;}export function reconstructCommandArgv(_0x239aa5,_0x1833f7){const _0x347de4=a68_0x1700,_0x36a3d0=[CLI_BIN_NAME,_0x239aa5[_0x347de4(0x19a)],_0x239aa5[_0x347de4(0x19f)]];for(const [_0x421c2c,_0x3f9eef]of Object['entries'](_0x1833f7)){if(_0x3f9eef===!![])_0x36a3d0[_0x347de4(0x193)]('--'+_0x421c2c);else _0x3f9eef!==![]&&_0x3f9eef!==undefined&&_0x3f9eef!==''&&_0x36a3d0[_0x347de4(0x193)]('--'+_0x421c2c+'\x20'+JSON[_0x347de4(0x18e)](_0x3f9eef));}return _0x36a3d0[_0x347de4(0x193)](_0x347de4(0x1a1)),_0x36a3d0[_0x347de4(0x1a3)]('\x20');}function buildConfirmationContext(_0x32c0f2,_0x137fec,_0x107ef2){const _0x250d57=a68_0x1700,_0x21639e=extractAffectedRecords(_0x107ef2);return{'commandLabel':_0x137fec,'description':_0x32c0f2[_0x250d57(0x196)],'affectedRecords':_0x21639e};}function extractAffectedRecords(_0xe02b46){const _0x41cae4=a68_0x1700,_0x1661f9=[];if(_0xe02b46[_0x41cae4(0x190)])_0x1661f9['push'](_0x41cae4(0x1a0)+_0xe02b46[_0x41cae4(0x190)]);if(_0xe02b46['id'])_0x1661f9[_0x41cae4(0x193)](_0x41cae4(0x195)+_0xe02b46['id']);if(_0xe02b46['name'])_0x1661f9[_0x41cae4(0x193)](_0x41cae4(0x194)+_0xe02b46[_0x41cae4(0x19e)]);if(_0xe02b46['params'])_0x1661f9['push'](_0x41cae4(0x1a5)+_0xe02b46['params']);return _0x1661f9[_0x41cae4(0x1a2)]>0x0?_0x1661f9[_0x41cae4(0x1a3)](',\x20'):undefined;}function a68_0x4364(){const _0x564507=['295974KkGLYJ','name','command','code=','--yes','length','join','⚠\x20\x20High-risk\x20operation:\x20','params=','1148000xxSBxO','stringify','927672YQmBxl','code','672172rSZqbF','6zymXNP','push','name=','id=','description','affectedRecords','992466KIaRwo','\x20\x20\x20Affected:\x20','service','187448hUzQqX','162350ehlglU'];a68_0x4364=function(){return _0x564507;};return a68_0x4364();}
@@ -1 +1 @@
1
- (function(_0x15263f,_0x457718){const _0x2d448e=a69_0x1bbf,_0x43f687=_0x15263f();while(!![]){try{const _0xf8b2d7=-parseInt(_0x2d448e(0x18b))/0x1+-parseInt(_0x2d448e(0x185))/0x2+-parseInt(_0x2d448e(0x187))/0x3+parseInt(_0x2d448e(0x18f))/0x4*(-parseInt(_0x2d448e(0x18a))/0x5)+-parseInt(_0x2d448e(0x182))/0x6*(parseInt(_0x2d448e(0x18c))/0x7)+parseInt(_0x2d448e(0x18e))/0x8+parseInt(_0x2d448e(0x189))/0x9*(parseInt(_0x2d448e(0x186))/0xa);if(_0xf8b2d7===_0x457718)break;else _0x43f687['push'](_0x43f687['shift']());}catch(_0x1e81ce){_0x43f687['push'](_0x43f687['shift']());}}}(a69_0x2ea3,0x7e9cd));import{LovrabetError}from'@lovrabet/sdk';function a69_0x1bbf(_0x4af07a,_0x2bafe9){_0x4af07a=_0x4af07a-0x181;const _0x2ea32e=a69_0x2ea3();let _0x1bbfe5=_0x2ea32e[_0x4af07a];return _0x1bbfe5;}import{CliErrors}from'../errors.js';export function mapUserFacingExecuteError(_0x1ed518){if(_0x1ed518 instanceof LovrabetError)return CliErrors['validation'](userFacingLovrabetMessage(_0x1ed518));return _0x1ed518;}function userFacingLovrabetMessage(_0x2f1ca8){const _0xde3c0a=a69_0x1bbf,_0x12b714=_0x2f1ca8[_0xde3c0a(0x18d)];if(_0x12b714!==undefined&&_0x12b714!==null){if(typeof _0x12b714===_0xde3c0a(0x183)&&_0x12b714[_0xde3c0a(0x181)]())return _0x12b714['trim']();try{return JSON[_0xde3c0a(0x188)](_0x12b714);}catch{}}return _0x2f1ca8[_0xde3c0a(0x184)];}function a69_0x2ea3(){const _0xa78ecb=['1134gZSNIB','string','message','15218MVZKJW','1833630kHMTAB','1037925xJSQrU','stringify','54pMUaTt','579055fvUOGf','349507BNTmqs','3598KgnuDF','description','4528776brRqac','12uwNZhC','trim'];a69_0x2ea3=function(){return _0xa78ecb;};return a69_0x2ea3();}
1
+ (function(_0xb1625c,_0x4cda12){const _0x2b33af=a69_0x5c0b,_0x522524=_0xb1625c();while(!![]){try{const _0x444e46=parseInt(_0x2b33af(0x10d))/0x1+-parseInt(_0x2b33af(0x110))/0x2+-parseInt(_0x2b33af(0x10c))/0x3*(parseInt(_0x2b33af(0x111))/0x4)+parseInt(_0x2b33af(0x105))/0x5*(parseInt(_0x2b33af(0x112))/0x6)+-parseInt(_0x2b33af(0x10f))/0x7*(parseInt(_0x2b33af(0x114))/0x8)+-parseInt(_0x2b33af(0x108))/0x9+-parseInt(_0x2b33af(0x10e))/0xa*(-parseInt(_0x2b33af(0x115))/0xb);if(_0x444e46===_0x4cda12)break;else _0x522524['push'](_0x522524['shift']());}catch(_0x4ad051){_0x522524['push'](_0x522524['shift']());}}}(a69_0x182b,0xa981f));import{LovrabetError}from'@lovrabet/sdk';import{CliErrors}from'../errors.js';export function mapUserFacingExecuteError(_0x4405d9){const _0x2e99b4=a69_0x5c0b;if(_0x4405d9 instanceof LovrabetError)return CliErrors[_0x2e99b4(0x106)](userFacingLovrabetMessage(_0x4405d9));return _0x4405d9;}function userFacingLovrabetMessage(_0x4d6032){const _0x2763c2=a69_0x5c0b,_0x5577c4=_0x4d6032[_0x2763c2(0x109)];if(_0x5577c4!==undefined&&_0x5577c4!==null){if(typeof _0x5577c4===_0x2763c2(0x10a)&&_0x5577c4['trim']())return _0x5577c4[_0x2763c2(0x107)]();try{return JSON[_0x2763c2(0x10b)](_0x5577c4);}catch{}}return _0x4d6032[_0x2763c2(0x113)];}function a69_0x5c0b(_0x9e4f88,_0x5f4371){_0x9e4f88=_0x9e4f88-0x105;const _0x182bd7=a69_0x182b();let _0x5c0b15=_0x182bd7[_0x9e4f88];return _0x5c0b15;}function a69_0x182b(){const _0x56b0bc=['1041490rNBRJt','28HYMQQh','2132216velzrF','4cjeyfX','55338DwIqWE','message','544792zRsWei','209nJIpBy','125XqNlzc','validation','trim','5116149fWtmmY','description','string','stringify','1618062dkFHlB','931216XNfnDk'];a69_0x182b=function(){return _0x56b0bc;};return a69_0x182b();}
@@ -1 +1 @@
1
- const a70_0x5b0c6f=a70_0xeb00;(function(_0x34a288,_0x14be6d){const _0x67ff9a=a70_0xeb00,_0x3384a6=_0x34a288();while(!![]){try{const _0x1851ee=parseInt(_0x67ff9a(0x176))/0x1*(-parseInt(_0x67ff9a(0x16e))/0x2)+-parseInt(_0x67ff9a(0x14d))/0x3+parseInt(_0x67ff9a(0x166))/0x4+-parseInt(_0x67ff9a(0x16a))/0x5+parseInt(_0x67ff9a(0x163))/0x6+-parseInt(_0x67ff9a(0x152))/0x7*(parseInt(_0x67ff9a(0x179))/0x8)+-parseInt(_0x67ff9a(0x173))/0x9*(-parseInt(_0x67ff9a(0x175))/0xa);if(_0x1851ee===_0x14be6d)break;else _0x3384a6['push'](_0x3384a6['shift']());}catch(_0x55abb2){_0x3384a6['push'](_0x3384a6['shift']());}}}(a70_0xb79f,0xdf40e));import{runCommandWithAdapter,requireConfirmationPrompt}from'@lovrabet/cli-framework';import{formatOutput}from'../framework/output.js';import{CliErrors}from'../errors.js';import{CLI_BIN_NAME,GLOBAL_FLAGS,PIPELINE_FLAG_NAMES}from'../constant/cli.js';import{PRODUCT_CONFIG,productEnv,productEnvName}from'../constant/product.js';import{isNonInteractiveMode,readAppCodeFromConfig}from'../context.js';import{AUTH_MODE}from'../constant/auth-mode.js';import{getApiDomain}from'../constant/domain.js';import{buildConfirmationLines,reconstructCommandArgv}from'../framework/runner-confirmation.js';import{mapUserFacingExecuteError}from'../framework/runner-error.js';import{resolveLatestUpdateNotice}from'../utils/update-notice.js';import{findAppByCode,findAppByName,isRuntimeAccessibleApp,runtimeInaccessibleAppError}from'../commands/app/eligibility.js';export function resolveAuthMode(_0x146124){const _0x5e2b92=a70_0xeb00;return void _0x146124,AUTH_MODE[_0x5e2b92(0x188)];}export function createPipelineEnv(_0x60fc4c,_0x2aeae2){const _0x2bbb12=a70_0xeb00,_0x5b3790=typeof _0x2aeae2[_0x2bbb12(0x184)]==='string'&&_0x2aeae2[_0x2bbb12(0x184)][_0x2bbb12(0x172)]();return{'rawFlags':_0x2aeae2,'appCode':_0x60fc4c[_0x2bbb12(0x18b)]||productEnv(_0x2bbb12(0x18f))||(_0x5b3790?undefined:readAppCodeFromConfig()),'appCodeSource':_0x60fc4c[_0x2bbb12(0x154)],'apiDomain':getApiDomain(),'isNonInteractive':isNonInteractiveMode(_0x2aeae2),'defaultFormat':_0x60fc4c[_0x2bbb12(0x183)],'defaultPageSize':_0x60fc4c[_0x2bbb12(0x15d)],'defaultVerbose':_0x60fc4c[_0x2bbb12(0x170)],'riskLevel':_0x60fc4c[_0x2bbb12(0x167)],'accessKey':_0x60fc4c['accessKey'],'env':_0x60fc4c[_0x2bbb12(0x181)],'mergedCli':{'defaultApp':_0x60fc4c[_0x2bbb12(0x18c)],'currentApp':_0x60fc4c[_0x2bbb12(0x164)],'appCode':_0x60fc4c[_0x2bbb12(0x18b)]}};}const runnerAdapter={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[a70_0x5b0c6f(0x182)](_0x1ef5f9=>PIPELINE_FLAG_NAMES[a70_0x5b0c6f(0x177)](_0x1ef5f9['name']))[a70_0x5b0c6f(0x174)](({name:_0x2a1eff,type:_0x25b6aa,description:_0x23f9da})=>({'name':_0x2a1eff,'type':_0x25b6aa,'description':_0x23f9da})),'formatOutput':formatOutput,'getCommandLabel'(_0x4897b6){const _0x131e26=a70_0x5b0c6f;return CLI_BIN_NAME+'\x20'+_0x4897b6['service']+'\x20'+_0x4897b6[_0x131e26(0x17d)];},'riskPolicy':{'onViolation'(_0x547c42){const _0x16cee0=a70_0x5b0c6f;console[_0x16cee0(0x168)](_0x547c42);},'createError'(_0x3f2829){const _0x506abe=a70_0x5b0c6f;return CliErrors[_0x506abe(0x15e)](_0x3f2829);}},async 'prepare'(_0x27efd3,_0x12a948){const _0x45389c=a70_0x5b0c6f,_0x14587d=resolveAuthMode(_0x12a948);if(_0x27efd3['requiresAuth']!==![]){if(!_0x12a948['accessKey'])throw CliErrors[_0x45389c(0x155)](_0x45389c(0x157)+PRODUCT_CONFIG[_0x45389c(0x16c)]+_0x45389c(0x150)+productEnvName(_0x45389c(0x165))+'.');const {setActiveAK:_0x1879c8}=await import('../core/api-client.js');_0x1879c8(_0x12a948['accessKey']);}let _0x13113f='';if(_0x27efd3[_0x45389c(0x17c)]!==![]){_0x13113f=_0x12a948[_0x45389c(0x18b)]??'',_0x13113f=await resolveExplicitAppName(_0x27efd3,_0x12a948,_0x13113f);if(!_0x13113f){await assertSelectedAppNameIsRuntimeAccessible(_0x27efd3,_0x12a948);throw CliErrors['configMissing'](_0x45389c(0x15c)+PRODUCT_CONFIG[_0x45389c(0x16c)]+'.');}await assertAppCodeIsRuntimeAccessible(_0x27efd3,_0x12a948,_0x13113f);}if(_0x13113f){const {initSdkClient:_0x479ecb}=await import('../core/sdk-client.js');_0x479ecb({'appCode':_0x13113f,'env':_0x12a948[_0x45389c(0x181)]??'production','accessKey':_0x12a948['accessKey'],'authMode':_0x14587d});}return{'defaults':{'booleans':{'verbose':_0x12a948[_0x45389c(0x187)]},'numbers':{'pagesize':_0x12a948[_0x45389c(0x17b)]}},'extras':{'appCode':_0x13113f,'cookie':'','apiDomain':_0x12a948[_0x45389c(0x151)],'apiDir':'','accessKey':_0x12a948['accessKey'],'envName':_0x12a948[_0x45389c(0x181)],'mergedCli':_0x12a948[_0x45389c(0x14e)]}};},async 'confirmHighRisk'({def:_0x38fc78,env:_0x6ae467,flags:_0x536677,commandLabel:_0x22164d}){const _0x3f2eed=a70_0x5b0c6f;if(_0x6ae467[_0x3f2eed(0x18a)]){const _0x4fcf18=reconstructCommandArgv(_0x38fc78,_0x536677);throw CliErrors[_0x3f2eed(0x16f)](_0x3f2eed(0x178)+_0x22164d+_0x3f2eed(0x14f)+(_0x3f2eed(0x158)+_0x4fcf18));}await requireConfirmationPrompt({'lines':buildConfirmationLines(_0x38fc78,_0x22164d,_0x536677),'createCancelledError':_0x30d480=>CliErrors[_0x3f2eed(0x15e)](_0x30d480)});},'mapDryRunError'(_0x48510b){return mapUserFacingExecuteError(_0x48510b);},'mapExecuteError'(_0xbdb58b){return mapUserFacingExecuteError(_0xbdb58b);},async 'finalize'(){const _0x4b4d48=a70_0x5b0c6f,{clearActiveAK:_0x2cf6f2}=await import(_0x4b4d48(0x17f));_0x2cf6f2();}};async function resolveExplicitAppName(_0x51be31,_0x4e911e,_0x1d1662){const _0x1629a1=a70_0x5b0c6f;if(_0x51be31[_0x1629a1(0x17c)]===![])return _0x1d1662;const _0x564ba8=typeof _0x4e911e[_0x1629a1(0x185)][_0x1629a1(0x184)]===_0x1629a1(0x16d)?_0x4e911e['rawFlags'][_0x1629a1(0x184)][_0x1629a1(0x172)]():'';if(!_0x564ba8)return _0x1d1662;const _0x77fcf=typeof _0x4e911e['rawFlags']['appcode']===_0x1629a1(0x16d)&&_0x4e911e[_0x1629a1(0x185)][_0x1629a1(0x17a)][_0x1629a1(0x172)]()||productEnv(_0x1629a1(0x18f));if(_0x77fcf||_0x4e911e['appCodeSource']==='local-alias')return _0x1d1662;const {getRemoteAppList:_0x25331c}=await import('../commands/app/remote-source.js'),_0x344f11=await _0x25331c({'env':_0x4e911e[_0x1629a1(0x181)]??'production','accessKey':_0x4e911e[_0x1629a1(0x15b)]}),_0x5315e0=findAppByName(_0x344f11[_0x1629a1(0x156)],_0x564ba8);if(_0x5315e0&&!isRuntimeAccessibleApp(_0x5315e0))throw runtimeInaccessibleAppError(_0x5315e0,'\x22'+_0x564ba8+'\x22');const _0x552dc2=_0x5315e0?.[_0x1629a1(0x18b)]?.[_0x1629a1(0x172)]();if(_0x552dc2)return _0x552dc2;throw CliErrors[_0x1629a1(0x16f)](_0x1629a1(0x171)+_0x564ba8,_0x1629a1(0x159)+CLI_BIN_NAME+_0x1629a1(0x17e)+_0x564ba8+_0x1629a1(0x189)+PRODUCT_CONFIG[_0x1629a1(0x16c)]+'.');}async function assertSelectedAppNameIsRuntimeAccessible(_0x56f5b0,_0x2d8053){const _0x144cbb=a70_0x5b0c6f;if(_0x56f5b0[_0x144cbb(0x17c)]===![]||!_0x2d8053[_0x144cbb(0x15b)])return;const _0x4e5440=(typeof _0x2d8053[_0x144cbb(0x185)][_0x144cbb(0x184)]==='string'&&_0x2d8053[_0x144cbb(0x185)]['app'][_0x144cbb(0x172)]()?_0x2d8053[_0x144cbb(0x185)][_0x144cbb(0x184)]:_0x2d8053['mergedCli']?.[_0x144cbb(0x164)]??_0x2d8053[_0x144cbb(0x14e)]?.[_0x144cbb(0x18c)])?.[_0x144cbb(0x172)]();if(!_0x4e5440)return;const {getRemoteAppList:_0x1ec0f2}=await import(_0x144cbb(0x160)),_0x15c05c=await _0x1ec0f2({'env':_0x2d8053['env']??'production','accessKey':_0x2d8053[_0x144cbb(0x15b)]}),_0x4a7851=findAppByName(_0x15c05c[_0x144cbb(0x156)],_0x4e5440);if(_0x4a7851&&!isRuntimeAccessibleApp(_0x4a7851))throw runtimeInaccessibleAppError(_0x4a7851,'\x22'+_0x4e5440+'\x22');}function a70_0xeb00(_0x4e0e0e,_0x24ce04){_0x4e0e0e=_0x4e0e0e-0x14d;const _0xb79f26=a70_0xb79f();let _0xeb00cc=_0xb79f26[_0x4e0e0e];return _0xeb00cc;}async function assertAppCodeIsRuntimeAccessible(_0x1c29ab,_0x51dfda,_0x49f050){const _0x594735=a70_0x5b0c6f;if(_0x1c29ab[_0x594735(0x17c)]===![]||!_0x51dfda[_0x594735(0x15b)])return;const {getRemoteAppList:_0x215f09}=await import(_0x594735(0x160)),_0xce86b6=await _0x215f09({'env':_0x51dfda[_0x594735(0x181)]??'production','accessKey':_0x51dfda[_0x594735(0x15b)]}),_0x40ada0=findAppByCode(_0xce86b6[_0x594735(0x156)],_0x49f050);if(_0x40ada0&&!isRuntimeAccessibleApp(_0x40ada0))throw runtimeInaccessibleAppError(_0x40ada0,_0x594735(0x180)+_0x49f050+'\x22');}export async function runCommand(_0x1e0e69,_0x3b8883){await runCommandWithAdapter(shouldAttachUpdateNotice(_0x1e0e69)?withUpdateNotice(_0x1e0e69):_0x1e0e69,_0x3b8883,runnerAdapter);}function shouldAttachUpdateNotice(_0x564348){const _0x4f0b2b=a70_0x5b0c6f;return![_0x4f0b2b(0x162),'schema',_0x4f0b2b(0x161)][_0x4f0b2b(0x169)](_0x564348[_0x4f0b2b(0x16b)]);}function withUpdateNotice(_0x3b8a95){return{..._0x3b8a95,async 'execute'(_0x1978ef){const _0x190cde=a70_0xeb00,_0x5a5301=shouldResolveUpdateNotice(_0x1978ef)?resolveLatestUpdateNotice()[_0x190cde(0x15a)](()=>null):Promise[_0x190cde(0x15f)](null),_0x295bc8=await _0x3b8a95[_0x190cde(0x18e)](_0x1978ef);return attachUpdateNotice(_0x295bc8,await _0x5a5301);}};}function shouldResolveUpdateNotice(_0x2a4d16){const _0x3a02dd=a70_0x5b0c6f;return _0x2a4d16[_0x3a02dd(0x183)]===_0x3a02dd(0x153)&&!_0x2a4d16['nonInteractive'];}function attachUpdateNotice(_0x5a1635,_0x582ff8){const _0x38d166=a70_0x5b0c6f;if(!_0x582ff8||!_0x5a1635||typeof _0x5a1635!==_0x38d166(0x186))return _0x5a1635;const _0x281934=_0x5a1635,_0xdfcd48=typeof _0x281934['_notice']===_0x38d166(0x186)&&_0x281934[_0x38d166(0x18d)]!==null?_0x281934['_notice']:{};return{..._0x281934,'_notice':{..._0xdfcd48,'update':_0x582ff8}};}function a70_0xb79f(){const _0x5575ab=['riskLevel','error','includes','839435bLBiao','service','newConfigFileName','string','1905334sXkHoL','validation','verbose','Unknown\x20app:\x20','trim','9976329bvFxaq','map','30EdmoNN','1FmJeqd','has','High-risk\x20operation\x20`','48hFmvsY','appcode','defaultPageSize','requiresAppCode','command','\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20add\x20apps.','../core/api-client.js','appcode\x20\x22','env','filter','format','app','rawFlags','object','defaultVerbose','ClientAk','.appcode\x20to\x20','isNonInteractive','appCode','defaultApp','_notice','execute','APPCODE','2267835pPBFyu','mergedCli','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.\x0a','\x20or\x20pass\x20','apiDomain','1001014lWqMOb','pretty','appCodeSource','authRequired','items','Set\x20accessKey\x20in\x20','\x20\x20To\x20proceed:\x20','Run\x20`','catch','accessKey','Set\x20appcode\x20via\x20--appcode\x20or\x20in\x20','pageSize','cancelled','resolve','../commands/app/remote-source.js','doctor','update','1629738pmxJnG','currentApp','ACCESS_KEY','207564nFRufs'];a70_0xb79f=function(){return _0x5575ab;};return a70_0xb79f();}
1
+ const a70_0x5277c4=a70_0x1b77;(function(_0x5c6d32,_0x4a8481){const _0x39c842=a70_0x1b77,_0x5c54f3=_0x5c6d32();while(!![]){try{const _0x5ea804=-parseInt(_0x39c842(0xc5))/0x1*(-parseInt(_0x39c842(0xe2))/0x2)+-parseInt(_0x39c842(0xdc))/0x3*(parseInt(_0x39c842(0xca))/0x4)+parseInt(_0x39c842(0xf0))/0x5*(-parseInt(_0x39c842(0xe9))/0x6)+parseInt(_0x39c842(0xec))/0x7+parseInt(_0x39c842(0xc9))/0x8+-parseInt(_0x39c842(0xe4))/0x9+parseInt(_0x39c842(0xdf))/0xa*(parseInt(_0x39c842(0xc1))/0xb);if(_0x5ea804===_0x4a8481)break;else _0x5c54f3['push'](_0x5c54f3['shift']());}catch(_0x21de89){_0x5c54f3['push'](_0x5c54f3['shift']());}}}(a70_0x1c87,0xb7dd7));function a70_0x1b77(_0x6379f4,_0x17127b){_0x6379f4=_0x6379f4-0xc0;const _0x1c87b6=a70_0x1c87();let _0x1b77d3=_0x1c87b6[_0x6379f4];return _0x1b77d3;}import{runCommandWithAdapter,requireConfirmationPrompt}from'@lovrabet/cli-framework';import{formatOutput}from'../framework/output.js';import{CliErrors}from'../errors.js';import{CLI_BIN_NAME,GLOBAL_FLAGS,PIPELINE_FLAG_NAMES}from'../constant/cli.js';import{PRODUCT_CONFIG,productEnv,productEnvName}from'../constant/product.js';import{isNonInteractiveMode,readAppCodeFromConfig}from'../context.js';import{AUTH_MODE}from'../constant/auth-mode.js';import{getApiDomain}from'../constant/domain.js';import{buildConfirmationLines,reconstructCommandArgv}from'../framework/runner-confirmation.js';import{mapUserFacingExecuteError}from'../framework/runner-error.js';import{resolveLatestUpdateNotice}from'../utils/update-notice.js';import{findAppByCode,findAppByName,isRuntimeAccessibleApp,runtimeInaccessibleAppError}from'../commands/app/eligibility.js';export function resolveAuthMode(_0x50a2d4){const _0x3831c1=a70_0x1b77;return void _0x50a2d4,AUTH_MODE[_0x3831c1(0xe8)];}export function createPipelineEnv(_0x393831,_0x264c5d){const _0x3bfc21=a70_0x1b77,_0x5d53ed=typeof _0x264c5d[_0x3bfc21(0xef)]==='string'&&_0x264c5d['app'][_0x3bfc21(0xcf)]();return{'rawFlags':_0x264c5d,'appCode':_0x393831[_0x3bfc21(0xe5)]||productEnv(_0x3bfc21(0xeb))||(_0x5d53ed?undefined:readAppCodeFromConfig()),'appCodeSource':_0x393831['appCodeSource'],'apiDomain':getApiDomain(),'isNonInteractive':isNonInteractiveMode(_0x264c5d),'defaultFormat':_0x393831[_0x3bfc21(0xe3)],'defaultPageSize':_0x393831[_0x3bfc21(0xd8)],'defaultVerbose':_0x393831[_0x3bfc21(0xce)],'riskLevel':_0x393831[_0x3bfc21(0xfd)],'accessKey':_0x393831['accessKey'],'env':_0x393831['env'],'mergedCli':{'defaultApp':_0x393831[_0x3bfc21(0xff)],'currentApp':_0x393831[_0x3bfc21(0xc8)],'appCode':_0x393831[_0x3bfc21(0xe5)]}};}const runnerAdapter={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[a70_0x5277c4(0xf3)](_0x465f18=>PIPELINE_FLAG_NAMES['has'](_0x465f18['name']))[a70_0x5277c4(0xcd)](({name:_0x143417,type:_0x458c46,description:_0x364f29})=>({'name':_0x143417,'type':_0x458c46,'description':_0x364f29})),'formatOutput':formatOutput,'getCommandLabel'(_0x2a32af){const _0x3c7467=a70_0x5277c4;return CLI_BIN_NAME+'\x20'+_0x2a32af[_0x3c7467(0xd5)]+'\x20'+_0x2a32af[_0x3c7467(0xf6)];},'riskPolicy':{'onViolation'(_0x3a50a3){const _0x16a15c=a70_0x5277c4;console[_0x16a15c(0xea)](_0x3a50a3);},'createError'(_0x591119){const _0x53e3f5=a70_0x5277c4;return CliErrors[_0x53e3f5(0xd0)](_0x591119);}},async 'prepare'(_0xe98898,_0x444306){const _0x558086=a70_0x5277c4,_0x4074e2=resolveAuthMode(_0x444306);if(_0xe98898[_0x558086(0xc4)]!==![]){if(!_0x444306[_0x558086(0xd3)])throw CliErrors[_0x558086(0xe7)](_0x558086(0xed)+PRODUCT_CONFIG['newConfigFileName']+_0x558086(0xd1)+productEnvName('ACCESS_KEY')+'.');const {setActiveAK:_0x264b50}=await import(_0x558086(0xf2));_0x264b50(_0x444306[_0x558086(0xd3)]);}let _0x75dccb='';if(_0xe98898[_0x558086(0xcb)]!==![]){_0x75dccb=_0x444306[_0x558086(0xe5)]??'',_0x75dccb=await resolveExplicitAppName(_0xe98898,_0x444306,_0x75dccb);if(!_0x75dccb){await assertSelectedAppNameIsRuntimeAccessible(_0xe98898,_0x444306);throw CliErrors[_0x558086(0xc3)](_0x558086(0x102)+PRODUCT_CONFIG[_0x558086(0xf8)]+'.');}await assertAppCodeIsRuntimeAccessible(_0xe98898,_0x444306,_0x75dccb);}if(_0x75dccb){const {initSdkClient:_0xcc17cb}=await import(_0x558086(0xc0));_0xcc17cb({'appCode':_0x75dccb,'env':_0x444306[_0x558086(0xc6)]??_0x558086(0xda),'accessKey':_0x444306[_0x558086(0xd3)],'authMode':_0x4074e2});}return{'defaults':{'booleans':{'verbose':_0x444306[_0x558086(0xfa)]},'numbers':{'pagesize':_0x444306[_0x558086(0x101)]}},'extras':{'appCode':_0x75dccb,'cookie':'','apiDomain':_0x444306[_0x558086(0xfe)],'apiDir':'','accessKey':_0x444306[_0x558086(0xd3)],'envName':_0x444306[_0x558086(0xc6)],'mergedCli':_0x444306['mergedCli']}};},async 'confirmHighRisk'({def:_0x44815f,env:_0x501484,flags:_0x5a801a,commandLabel:_0x2505d6}){const _0x29177b=a70_0x5277c4;if(_0x501484['isNonInteractive']){const _0x16036d=reconstructCommandArgv(_0x44815f,_0x5a801a);throw CliErrors['validation']('High-risk\x20operation\x20`'+_0x2505d6+_0x29177b(0xc2)+(_0x29177b(0xd7)+_0x16036d));}await requireConfirmationPrompt({'lines':buildConfirmationLines(_0x44815f,_0x2505d6,_0x5a801a),'createCancelledError':_0x49c3c9=>CliErrors['cancelled'](_0x49c3c9)});},'mapDryRunError'(_0x15cdde){return mapUserFacingExecuteError(_0x15cdde);},'mapExecuteError'(_0x3f8085){return mapUserFacingExecuteError(_0x3f8085);},async 'finalize'(){const _0x2b7bad=a70_0x5277c4,{clearActiveAK:_0x103514}=await import(_0x2b7bad(0xf2));_0x103514();}};async function resolveExplicitAppName(_0x105e73,_0x1d50ae,_0x157e38){const _0x198601=a70_0x5277c4;if(_0x105e73[_0x198601(0xcb)]===![])return _0x157e38;const _0x18ced4=typeof _0x1d50ae[_0x198601(0xd4)][_0x198601(0xef)]===_0x198601(0xde)?_0x1d50ae[_0x198601(0xd4)]['app']['trim']():'';if(!_0x18ced4)return _0x157e38;const _0x2b2920=typeof _0x1d50ae[_0x198601(0xd4)][_0x198601(0xe6)]===_0x198601(0xde)&&_0x1d50ae[_0x198601(0xd4)][_0x198601(0xe6)][_0x198601(0xcf)]()||productEnv('APPCODE');if(_0x2b2920||_0x1d50ae['appCodeSource']===_0x198601(0xe0))return _0x157e38;const {getRemoteAppList:_0x4f4aa2}=await import(_0x198601(0xf7)),_0x3a5472=await _0x4f4aa2({'env':_0x1d50ae['env']??_0x198601(0xda),'accessKey':_0x1d50ae[_0x198601(0xd3)]}),_0x5e5a35=findAppByName(_0x3a5472[_0x198601(0xdb)],_0x18ced4);if(_0x5e5a35&&!isRuntimeAccessibleApp(_0x5e5a35))throw runtimeInaccessibleAppError(_0x5e5a35,'\x22'+_0x18ced4+'\x22');const _0x4ef811=_0x5e5a35?.[_0x198601(0xe5)]?.[_0x198601(0xcf)]();if(_0x4ef811)return _0x4ef811;throw CliErrors[_0x198601(0xc7)](_0x198601(0xf4)+_0x18ced4,_0x198601(0xf9)+CLI_BIN_NAME+'\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20add\x20apps.'+_0x18ced4+'.appcode\x20to\x20'+PRODUCT_CONFIG[_0x198601(0xf8)]+'.');}async function assertSelectedAppNameIsRuntimeAccessible(_0x143952,_0x4a8e2d){const _0xa8e8eb=a70_0x5277c4;if(_0x143952[_0xa8e8eb(0xcb)]===![]||!_0x4a8e2d[_0xa8e8eb(0xd3)])return;const _0x3c29e5=(typeof _0x4a8e2d[_0xa8e8eb(0xd4)][_0xa8e8eb(0xef)]===_0xa8e8eb(0xde)&&_0x4a8e2d[_0xa8e8eb(0xd4)]['app']['trim']()?_0x4a8e2d['rawFlags'][_0xa8e8eb(0xef)]:_0x4a8e2d[_0xa8e8eb(0xcc)]?.[_0xa8e8eb(0xc8)]??_0x4a8e2d[_0xa8e8eb(0xcc)]?.[_0xa8e8eb(0xff)])?.[_0xa8e8eb(0xcf)]();if(!_0x3c29e5)return;const {getRemoteAppList:_0x513290}=await import(_0xa8e8eb(0xf7)),_0x11a13c=await _0x513290({'env':_0x4a8e2d[_0xa8e8eb(0xc6)]??_0xa8e8eb(0xda),'accessKey':_0x4a8e2d[_0xa8e8eb(0xd3)]}),_0x5546db=findAppByName(_0x11a13c[_0xa8e8eb(0xdb)],_0x3c29e5);if(_0x5546db&&!isRuntimeAccessibleApp(_0x5546db))throw runtimeInaccessibleAppError(_0x5546db,'\x22'+_0x3c29e5+'\x22');}async function assertAppCodeIsRuntimeAccessible(_0xf6e6c3,_0x468068,_0x2edfb0){const _0x57d2f7=a70_0x5277c4;if(_0xf6e6c3[_0x57d2f7(0xcb)]===![]||!_0x468068[_0x57d2f7(0xd3)])return;const {getRemoteAppList:_0x106a79}=await import(_0x57d2f7(0xf7)),_0x558784=await _0x106a79({'env':_0x468068['env']??_0x57d2f7(0xda),'accessKey':_0x468068[_0x57d2f7(0xd3)]}),_0x5b691d=findAppByCode(_0x558784[_0x57d2f7(0xdb)],_0x2edfb0);if(_0x5b691d&&!isRuntimeAccessibleApp(_0x5b691d))throw runtimeInaccessibleAppError(_0x5b691d,'appcode\x20\x22'+_0x2edfb0+'\x22');}export async function runCommand(_0x1dbd94,_0x2bd26f){await runCommandWithAdapter(shouldAttachUpdateNotice(_0x1dbd94)?withUpdateNotice(_0x1dbd94):_0x1dbd94,_0x2bd26f,runnerAdapter);}function shouldAttachUpdateNotice(_0x536762){const _0x533098=a70_0x5277c4;return![_0x533098(0xd9),_0x533098(0xdd),_0x533098(0x100)][_0x533098(0xee)](_0x536762[_0x533098(0xd5)]);}function withUpdateNotice(_0x4afea7){return{..._0x4afea7,async 'execute'(_0x50b6a1){const _0x53ff0d=a70_0x1b77,_0x45f24b=shouldResolveUpdateNotice(_0x50b6a1)?resolveLatestUpdateNotice()[_0x53ff0d(0xd2)](()=>null):Promise[_0x53ff0d(0xf5)](null),_0x51c24b=await _0x4afea7[_0x53ff0d(0xfb)](_0x50b6a1);return attachUpdateNotice(_0x51c24b,await _0x45f24b);}};}function shouldResolveUpdateNotice(_0x1f0545){const _0x1ef2be=a70_0x5277c4;return _0x1f0545[_0x1ef2be(0xe3)]===_0x1ef2be(0xf1)&&!_0x1f0545[_0x1ef2be(0xfc)];}function attachUpdateNotice(_0x4d54d5,_0xda5fb0){const _0xa683ee=a70_0x5277c4;if(!_0xda5fb0||!_0x4d54d5||typeof _0x4d54d5!=='object')return _0x4d54d5;const _0x364238=_0x4d54d5,_0xc116d7=typeof _0x364238['_notice']===_0xa683ee(0xe1)&&_0x364238[_0xa683ee(0xd6)]!==null?_0x364238[_0xa683ee(0xd6)]:{};return{..._0x364238,'_notice':{..._0xc116d7,'update':_0xda5fb0}};}function a70_0x1c87(){const _0x307cf4=['filter','Unknown\x20app:\x20','resolve','command','../commands/app/remote-source.js','newConfigFileName','Run\x20`','defaultVerbose','execute','nonInteractive','riskLevel','apiDomain','defaultApp','doctor','defaultPageSize','Set\x20appcode\x20via\x20--appcode\x20or\x20in\x20','../core/sdk-client.js','143xLIlfa','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.\x0a','configMissing','requiresAuth','11tCNTYi','env','validation','currentApp','7751504ilKomy','4OGPAQg','requiresAppCode','mergedCli','map','verbose','trim','cancelled','\x20or\x20pass\x20','catch','accessKey','rawFlags','service','_notice','\x20\x20To\x20proceed:\x20','pageSize','update','production','items','1816899qeZugA','schema','string','80770NRGJoK','local-alias','object','242362ChqrAx','format','12438216jKVmER','appCode','appcode','authRequired','ClientAk','78guzYsM','error','APPCODE','7854833fqgQIm','Set\x20accessKey\x20in\x20','includes','app','303185gaWSii','pretty','../core/api-client.js'];a70_0x1c87=function(){return _0x307cf4;};return a70_0x1c87();}