@lovrabet/lovrabet-cli 2.1.8-beta.2 → 2.1.8

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 (117) hide show
  1. package/lib/cli.js +1 -1
  2. package/lib/commands/api-doc/index.js +1 -1
  3. package/lib/commands/app/cache.js +1 -1
  4. package/lib/commands/app/definitions.js +1 -1
  5. package/lib/commands/app/eligibility.js +1 -1
  6. package/lib/commands/app/mock-loader.js +1 -1
  7. package/lib/commands/app/remote-source.js +1 -1
  8. package/lib/commands/app/shared.js +1 -1
  9. package/lib/commands/app-config/get.js +1 -1
  10. package/lib/commands/app-config/index.js +1 -1
  11. package/lib/commands/app-config/shared.js +1 -1
  12. package/lib/commands/artifact/index.js +1 -1
  13. package/lib/commands/auth/index.js +1 -1
  14. package/lib/commands/auth/prompt.js +1 -1
  15. package/lib/commands/bff/detail.js +1 -1
  16. package/lib/commands/bff/exec.js +1 -1
  17. package/lib/commands/bff/index.js +1 -1
  18. package/lib/commands/cli-skill/index.js +1 -1
  19. package/lib/commands/common/config-policy.js +1 -1
  20. package/lib/commands/common/constraints.js +1 -1
  21. package/lib/commands/common/flags.js +1 -1
  22. package/lib/commands/common/local-file.js +1 -1
  23. package/lib/commands/config/definitions.js +1 -1
  24. package/lib/commands/config/shared.js +1 -1
  25. package/lib/commands/data/index.js +1 -1
  26. package/lib/commands/dataset/detail.js +1 -1
  27. package/lib/commands/dataset/index.js +1 -1
  28. package/lib/commands/dataset/list.js +1 -1
  29. package/lib/commands/dataset/sdk-doc.js +1 -1
  30. package/lib/commands/doctor.js +1 -1
  31. package/lib/commands/file/index.js +1 -1
  32. package/lib/commands/init.js +1 -1
  33. package/lib/commands/kb/index.js +1 -1
  34. package/lib/commands/logs/index.js +1 -1
  35. package/lib/commands/ocr/index.js +1 -1
  36. package/lib/commands/personal-bff/index.js +1 -1
  37. package/lib/commands/registry.js +1 -1
  38. package/lib/commands/schema.js +1 -1
  39. package/lib/commands/service/dynamic.js +1 -1
  40. package/lib/commands/service/index.js +1 -1
  41. package/lib/commands/service/registry.js +1 -1
  42. package/lib/commands/skill/commands/create.js +1 -1
  43. package/lib/commands/skill/commands/install.js +1 -1
  44. package/lib/commands/skill/commands/list.js +1 -1
  45. package/lib/commands/skill/commands/push.js +1 -1
  46. package/lib/commands/skill/commands/validate.js +1 -1
  47. package/lib/commands/skill/flags.js +1 -1
  48. package/lib/commands/skill/index.js +1 -1
  49. package/lib/commands/skill/manifest-helpers.js +1 -1
  50. package/lib/commands/skill/push-execute.js +1 -1
  51. package/lib/commands/skill/push-flow-helpers.js +1 -1
  52. package/lib/commands/skill/push-retarget.js +1 -1
  53. package/lib/commands/skill/scopes.js +1 -1
  54. package/lib/commands/skill/summary.js +1 -1
  55. package/lib/commands/skill/templates.js +1 -1
  56. package/lib/commands/skill/validate.js +1 -1
  57. package/lib/commands/sql/detail.js +1 -1
  58. package/lib/commands/sql/exec.js +1 -1
  59. package/lib/commands/sql/index.js +1 -1
  60. package/lib/commands/update.js +1 -1
  61. package/lib/commands/workspace/index.js +1 -1
  62. package/lib/config/schema.js +1 -1
  63. package/lib/constant/app.js +1 -1
  64. package/lib/constant/auth-mode.js +1 -1
  65. package/lib/constant/cli.js +1 -1
  66. package/lib/constant/defaults.js +1 -1
  67. package/lib/constant/distribution.js +1 -1
  68. package/lib/constant/domain.js +1 -1
  69. package/lib/constant/env.js +1 -1
  70. package/lib/constant/output.js +1 -1
  71. package/lib/constant/product.js +1 -1
  72. package/lib/constant/risk.js +1 -1
  73. package/lib/constant/url.js +1 -1
  74. package/lib/context.js +1 -1
  75. package/lib/core/api-client.js +1 -1
  76. package/lib/core/db-resolver.js +1 -1
  77. package/lib/core/sdk-client.js +1 -1
  78. package/lib/errors.js +1 -1
  79. package/lib/framework/build-all-flags.js +1 -1
  80. package/lib/framework/dryrun.js +1 -1
  81. package/lib/framework/flags.js +1 -1
  82. package/lib/framework/help.js +1 -1
  83. package/lib/framework/index.js +1 -1
  84. package/lib/framework/output.js +1 -1
  85. package/lib/framework/preparse.js +1 -1
  86. package/lib/framework/response.js +1 -1
  87. package/lib/framework/runner-confirmation.js +1 -1
  88. package/lib/framework/runner-error.js +1 -1
  89. package/lib/framework/runner.js +1 -1
  90. package/lib/framework/schema-export.js +1 -1
  91. package/lib/framework/service-order.js +1 -1
  92. package/lib/framework/types.js +1 -1
  93. package/lib/generated/build-info.js +1 -1
  94. package/lib/help.js +1 -1
  95. package/lib/skills/npx-skills-add.js +1 -1
  96. package/lib/skills/runtime-skill-sync/constants.js +1 -1
  97. package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
  98. package/lib/skills/runtime-skill-sync/hashing.js +1 -1
  99. package/lib/skills/runtime-skill-sync/links.js +1 -1
  100. package/lib/skills/runtime-skill-sync/list-local.js +1 -1
  101. package/lib/skills/runtime-skill-sync/local-files.js +1 -1
  102. package/lib/skills/runtime-skill-sync/materialize.js +1 -1
  103. package/lib/skills/runtime-skill-sync/metadata.js +1 -1
  104. package/lib/skills/runtime-skill-sync/paths.js +1 -1
  105. package/lib/skills/runtime-skill-sync/push.js +1 -1
  106. package/lib/skills/runtime-skill-sync/scopes.js +1 -1
  107. package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
  108. package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
  109. package/lib/skills/runtime-skill-sync.js +1 -1
  110. package/lib/utils/apply-jq-filter.js +1 -1
  111. package/lib/utils/logger.js +1 -1
  112. package/lib/utils/params.js +1 -1
  113. package/lib/utils/platform.js +1 -1
  114. package/lib/utils/update-notice.js +1 -1
  115. package/lib/utils/version.js +1 -1
  116. package/lib/utils/write-cli-side-channel.js +1 -1
  117. package/package.json +1 -1
package/lib/context.js CHANGED
@@ -1 +1 @@
1
- const a73_0x3543cd=a73_0x3982;(function(_0x290555,_0x4bd804){const _0x1c12c5=a73_0x3982,_0x50ebf0=_0x290555();while(!![]){try{const _0x9dccb8=parseInt(_0x1c12c5(0x17f))/0x1*(-parseInt(_0x1c12c5(0x167))/0x2)+-parseInt(_0x1c12c5(0x153))/0x3*(-parseInt(_0x1c12c5(0x155))/0x4)+parseInt(_0x1c12c5(0x183))/0x5+parseInt(_0x1c12c5(0x171))/0x6+parseInt(_0x1c12c5(0x16a))/0x7+parseInt(_0x1c12c5(0x17c))/0x8+-parseInt(_0x1c12c5(0x15e))/0x9*(parseInt(_0x1c12c5(0x158))/0xa);if(_0x9dccb8===_0x4bd804)break;else _0x50ebf0['push'](_0x50ebf0['shift']());}catch(_0x373aa1){_0x50ebf0['push'](_0x50ebf0['shift']());}}}(a73_0x1415,0x65aea));import{readFileSync,existsSync,mkdirSync,renameSync,unlinkSync,writeFileSync}from'node:fs';function a73_0x1415(){const _0x2726d7=['some','1397965rBmZaw','configFileNames','raw','.tmp','daily','nonInteractive','true','./constant/domain.js','format','join','PAGE_SIZE','top-level','FORMAT','runtimeDomain','stdout','read','defaultApp','inherit','stringify','argv','object','online','cache','find','userDomain','3513IWNgPB','setLogPath','1064FOBFwZ','empty','riskLevel','6426020jmRgYk','apps','APP','EPERM','stdin','trim','27lnLRNL','global','globalConfig','local-alias','string','appcode','newConfigFileName','authRequired','apiDomain','4314pmQcBy','parse','values','3946775KYfglu','project','utf8','env','isTTY','APPCODE','ACCESS_KEY','4678068RoQCaI','setRawMode','isRaw','cwd','pageSize','message','slice','locale','development','skillHubDomain','projectConfig','6193976toakLC','accessKey','production','169TisdbR','code','app'];a73_0x1415=function(){return _0x2726d7;};return a73_0x1415();}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';function a73_0x3982(_0x29468e,_0x229a37){_0x29468e=_0x29468e-0x13c;const _0x141506=a73_0x1415();let _0x3982fb=_0x141506[_0x29468e];return _0x3982fb;}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[a73_0x3543cd(0x184)];export const NEW_CONFIG_NAME=PRODUCT_CONFIG[a73_0x3543cd(0x164)];function resolveConfigPath(_0x4f1876){for(const _0x1c6521 of CONFIG_NAMES){const _0x3e2086=resolve(_0x4f1876,_0x1c6521);if(existsSync(_0x3e2086))return _0x3e2086;}return undefined;}export function resolveWriteConfigPath(_0x1e7041){const _0x32b42c=a73_0x3543cd,_0x417c2c=_0x1e7041===_0x32b42c(0x16b)?process[_0x32b42c(0x174)]():homedir(),_0x137824=resolveConfigPath(_0x417c2c);return _0x137824??resolve(_0x417c2c,NEW_CONFIG_NAME);}export function readConfigFile(_0x2ba26a){const _0x49fad2=a73_0x3543cd;try{if(existsSync(_0x2ba26a)){const _0x4d4319=readFileSync(_0x2ba26a,{'encoding':_0x49fad2(0x16c)});if(_0x4d4319){const _0x4a2709=JSON[_0x49fad2(0x168)](_0x4d4319);return migrateOnlineEnv(_0x2ba26a,_0x4a2709),_0x4a2709;}}}catch{}return{};}function migrateOnlineEnv(_0x53249e,_0x1827b6){const _0x326b93=a73_0x3543cd;let _0x953122=![];_0x1827b6[_0x326b93(0x16d)]===_0x326b93(0x14f)&&(_0x1827b6[_0x326b93(0x16d)]=_0x326b93(0x17e),_0x953122=!![]);if(_0x1827b6['apps']&&typeof _0x1827b6[_0x326b93(0x159)]===_0x326b93(0x14e))for(const _0x9b6838 of Object[_0x326b93(0x169)](_0x1827b6[_0x326b93(0x159)])){_0x9b6838&&_0x9b6838[_0x326b93(0x16d)]===_0x326b93(0x14f)&&(_0x9b6838['env']='production',_0x953122=!![]);}if(_0x953122)try{writeConfigFile(_0x53249e,_0x1827b6);}catch{}}export function writeConfigFile(_0x1bc378,_0x58e01d){const _0x508086=a73_0x3543cd,_0x2c6700=dirname(_0x1bc378);!existsSync(_0x2c6700)&&mkdirSync(_0x2c6700,{'recursive':!![]});const _0x397af2=_0x1bc378+_0x508086(0x13d);try{writeFileSync(_0x397af2,JSON[_0x508086(0x14c)](_0x58e01d,null,0x2)+'\x0a',{'encoding':'utf8','mode':0x180});try{renameSync(_0x397af2,_0x1bc378);}catch(_0xe98bff){if(_0xe98bff[_0x508086(0x180)]===_0x508086(0x15b)||_0xe98bff['code']==='EXDEV'||_0xe98bff[_0x508086(0x180)]==='EACCES'){writeFileSync(_0x1bc378,JSON['stringify'](_0x58e01d,null,0x2)+'\x0a',{'encoding':_0x508086(0x16c)});try{unlinkSync(_0x397af2);}catch{}}else throw _0xe98bff;}}catch(_0x1a8bca){try{unlinkSync(_0x397af2);}catch{}throw _0x1a8bca;}}export function isNonInteractiveMode(_0x46d4d3){const _0x5b52d7=a73_0x3543cd;return!!(_0x46d4d3[_0x5b52d7(0x13f)]||_0x46d4d3['ci']||productEnvNames('CI')[_0x5b52d7(0x182)](_0x1b8289=>process.env[_0x1b8289]===_0x5b52d7(0x140))||process.env.CI===_0x5b52d7(0x140)||!process[_0x5b52d7(0x148)]['isTTY']||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x52e220=a73_0x3543cd;if(!process[_0x52e220(0x15c)][_0x52e220(0x16e)])return![];try{const _0xc26fd5=process[_0x52e220(0x15c)][_0x52e220(0x173)];return process[_0x52e220(0x15c)][_0x52e220(0x172)](!![]),process[_0x52e220(0x15c)][_0x52e220(0x172)](_0xc26fd5??![]),!![];}catch{return![];}}export async function createContext(_0x4492a4){const _0x28648f=a73_0x3543cd,_0x36cf54=readRawConfig(),_0xb3e807=buildConfig(_0x36cf54,_0x4492a4);await initGlobalEnvironment(_0xb3e807);const {getUserDomain:_0x20bc7b,getApiDomain:_0x4e7a32}=await import(_0x28648f(0x141)),_0x4c86e0={'apiDomain':_0x4e7a32(),'userDomain':_0x20bc7b()},_0x284efb=await buildAuth(_0xb3e807);logger[_0x28648f(0x154)](process[_0x28648f(0x174)]());const _0x5919d0=(CLI_BIN_NAME+'\x20'+process[_0x28648f(0x14d)][_0x28648f(0x177)](0x2)[_0x28648f(0x143)]('\x20'))[_0x28648f(0x15d)]();logger['setRawCommand'](_0x5919d0);const _0x437e12=isNonInteractiveMode(_0x4492a4);return{'config':_0xb3e807,'auth':_0x284efb,'logger':logger,'env':_0x4c86e0,'nonInteractive':_0x437e12};}export function buildConfigFromFlags(_0x1af480){return buildConfig(readRawConfig(),_0x1af480);}export function getLocalAppAliases(_0x11d4b0){const _0x1d0535=a73_0x3543cd;return _0x11d4b0[_0x1d0535(0x159)]&&typeof _0x11d4b0[_0x1d0535(0x159)]===_0x1d0535(0x14e)?_0x11d4b0[_0x1d0535(0x159)]:{};}export function resolveLocalAppAliasCode(_0x9928a1,_0x4943bc){const _0x420392=a73_0x3543cd;if(!_0x4943bc)return undefined;const _0x195980=getLocalAppAliases(_0x9928a1)[_0x4943bc],_0x28a930=_0x195980?.[_0x420392(0x163)];return typeof _0x28a930===_0x420392(0x162)&&_0x28a930[_0x420392(0x15d)]()?_0x28a930[_0x420392(0x15d)]():undefined;}export function readAppCodeFromConfig(){const _0x420624=a73_0x3543cd,_0xb74475=readRawConfig(),_0x485e9a=_0xb74475[_0x420624(0x163)]??_0xb74475[_0x420624(0x181)];if(typeof _0x485e9a===_0x420624(0x162)&&_0x485e9a[_0x420624(0x15d)]())return _0x485e9a[_0x420624(0x15d)]();const _0xed741b=resolveLocalAppAliasCode(_0xb74475,typeof _0xb74475[_0x420624(0x14a)]==='string'?_0xb74475[_0x420624(0x14a)]:undefined);if(_0xed741b)return _0xed741b;const _0x474d64=normalizeEnv(String(_0xb74475[_0x420624(0x16d)]||_0x420624(0x17e))),_0x4c93b3=isDaily(_0x474d64)?_0x420624(0x13e):isDev(_0x474d64)?_0x420624(0x179):_0x420624(0x17e),_0x282565=resolveCachedAppCode(typeof _0xb74475[_0x420624(0x14a)]===_0x420624(0x162)?_0xb74475['defaultApp']:undefined,_0x4c93b3,typeof _0xb74475['accessKey']===_0x420624(0x162)?_0xb74475[_0x420624(0x17d)]:undefined);if(_0x282565)return _0x282565;const _0x814ce1=Object[_0x420624(0x169)](getLocalAppAliases(_0xb74475))[_0x420624(0x151)](_0x30f271=>_0x30f271?.[_0x420624(0x163)]);return typeof _0x814ce1?.[_0x420624(0x163)]==='string'&&_0x814ce1[_0x420624(0x163)]['trim']()?_0x814ce1['appcode']['trim']():undefined;}export function readScopedConfig(_0x2e6847){const _0x19a634=a73_0x3543cd,_0x3e5d1d=_0x2e6847[_0x19a634(0x15f)]?_0x19a634(0x15f):_0x19a634(0x16b);return readConfigFile(resolveWriteConfigPath(_0x3e5d1d));}export function writeScopedConfig(_0x3fdcfc,_0xdd6059){const _0x46f698=a73_0x3543cd,_0x39b75d=_0xdd6059[_0x46f698(0x15f)]?_0x46f698(0x15f):_0x46f698(0x16b);writeConfigFile(resolveWriteConfigPath(_0x39b75d),_0x3fdcfc);}export async function initGlobalEnvironment(_0x3e4732){const _0x5020d7=a73_0x3543cd,{initEnv:_0x24d94c}=await import('./constant/env.js');_0x24d94c(_0x3e4732['env']);const {initDomains:_0x42b121}=await import(_0x5020d7(0x141));_0x42b121({'apiDomain':_0x3e4732[_0x5020d7(0x13c)][_0x5020d7(0x166)]||_0x3e4732[_0x5020d7(0x13c)]['host']||undefined,'userDomain':_0x3e4732[_0x5020d7(0x13c)][_0x5020d7(0x152)]||undefined,'runtimeDomain':_0x3e4732[_0x5020d7(0x13c)][_0x5020d7(0x147)]||undefined,'skillHubDomain':_0x3e4732[_0x5020d7(0x13c)][_0x5020d7(0x17a)]||undefined});}export function getProjectConfigPath(){const _0x7641e8=a73_0x3543cd;return resolveConfigPath(process[_0x7641e8(0x174)]());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function inspectCliConfigJsonFile(_0x1b1ba5){const _0x4e70e8=a73_0x3543cd;if(!existsSync(_0x1b1ba5))return{'status':'missing'};try{const _0x2c02a0=readFileSync(_0x1b1ba5,{'encoding':_0x4e70e8(0x16c)});if(!_0x2c02a0?.[_0x4e70e8(0x15d)]())return{'status':_0x4e70e8(0x156)};const _0x3da03b=JSON[_0x4e70e8(0x168)](_0x2c02a0);return{'status':'ok','data':_0x3da03b};}catch(_0x155f4b){return{'status':'error','message':_0x155f4b instanceof Error?_0x155f4b[_0x4e70e8(0x176)]:String(_0x155f4b)};}}export function loadRawConfigLayers(_0x466571){const _0x4b8b4a=a73_0x3543cd;let _0x57b330={},_0x10e926={},_0xbac666,_0x54d4d5;try{_0xbac666=resolveConfigPath(homedir());if(_0xbac666){const _0x5af06f=readFileSync(_0xbac666,{'encoding':_0x4b8b4a(0x16c)});if(_0x5af06f)_0x57b330=JSON[_0x4b8b4a(0x168)](_0x5af06f);}}catch{}try{const _0x434b5c=_0x466571||process[_0x4b8b4a(0x174)]();_0x54d4d5=resolveConfigPath(_0x434b5c);if(_0x54d4d5){const _0x4367b3=readFileSync(_0x54d4d5,{'encoding':_0x4b8b4a(0x16c)});if(_0x4367b3)_0x10e926=JSON['parse'](_0x4367b3);}}catch{}return{'globalPath':_0xbac666,'projectPath':_0x54d4d5,'globalConfig':_0x57b330,'projectConfig':_0x10e926};}function mergeRawConfigLayers(_0x571bf3){const _0x39f011=a73_0x3543cd,{globalConfig:_0x47591c,projectConfig:_0x464424}=_0x571bf3;if(_0x464424[_0x39f011(0x14b)]===![]){const _0xce73a4={..._0x464424};return delete _0xce73a4[_0x39f011(0x14b)],_0xce73a4;}const _0x5b4cd6={..._0x47591c,..._0x464424};if(_0x39f011(0x14a)in _0x464424)_0x5b4cd6[_0x39f011(0x14a)]=_0x464424[_0x39f011(0x14a)];else _0x47591c[_0x39f011(0x14a)]&&(_0x5b4cd6['defaultApp']=_0x47591c[_0x39f011(0x14a)]);return _0x5b4cd6;}export function isInProject(){return!!getProjectConfigPath();}export function readRawConfig(_0x5712a7){return mergeRawConfigLayers(loadRawConfigLayers(_0x5712a7));}export function readRawConfigWithLayers(_0x197809){const _0x130731=loadRawConfigLayers(_0x197809);return{'config':mergeRawConfigLayers(_0x130731),'layers':_0x130731};}export function resolveDefaultAppSource(_0x43d391){const _0x35df74=a73_0x3543cd;if(_0x35df74(0x14a)in _0x43d391[_0x35df74(0x17b)])return _0x35df74(0x16b);if(_0x43d391['projectConfig'][_0x35df74(0x14b)]===![])return null;if(_0x43d391[_0x35df74(0x160)][_0x35df74(0x14a)])return'global';return null;}function buildConfig(_0x177111,_0x5b2f9f){const _0x3d4b32=a73_0x3543cd,_0x246a17=_0x177111[_0x3d4b32(0x14a)]||undefined,_0x5b5485=_0x5b2f9f['app']||env(_0x3d4b32(0x15a))||undefined,_0x1bc32a=_0x5b5485||_0x246a17||undefined,_0x377567=env(_0x3d4b32(0x170))||_0x177111[_0x3d4b32(0x17d)]||undefined,_0x50cf13=_0x5b2f9f['env']||env('ENV')||_0x177111[_0x3d4b32(0x16d)]||DEFAULT_CONFIG_VALUES[_0x3d4b32(0x16d)],_0x44bb85=normalizeEnv(String(_0x50cf13)),_0xcbd2b0=isDaily(_0x44bb85)?_0x3d4b32(0x13e):isDev(_0x44bb85)?_0x3d4b32(0x179):_0x3d4b32(0x17e),_0x2b81f9=typeof _0x5b2f9f[_0x3d4b32(0x163)]===_0x3d4b32(0x162)?_0x5b2f9f[_0x3d4b32(0x163)]:undefined,_0x4fc96d=env(_0x3d4b32(0x16f)),_0xd7a40e=_0x5b5485?undefined:_0x177111[_0x3d4b32(0x163)]||_0x177111['app']||undefined,_0x44502b=_0x5b5485||(_0xd7a40e?undefined:_0x246a17),_0x24876c=resolveLocalAppAliasCode(_0x177111,_0x44502b),_0x229bc4=resolveCachedAppCode(_0x44502b,_0xcbd2b0,_0x377567),_0x2f67df=_0x2b81f9||_0x4fc96d||_0xd7a40e||_0x24876c||_0x229bc4||undefined,_0x616cbd=_0x2b81f9?'explicit':_0x4fc96d?_0x3d4b32(0x16d):_0xd7a40e?_0x3d4b32(0x145):_0x24876c?_0x3d4b32(0x161):_0x229bc4?_0x3d4b32(0x150):undefined,_0x5e102e=_0x177111[_0x3d4b32(0x178)]||DEFAULT_CONFIG_VALUES[_0x3d4b32(0x178)],_0x306059=undefined,_0x1bcbdc=_0x5b2f9f[_0x3d4b32(0x142)]||env(_0x3d4b32(0x146))||_0x177111[_0x3d4b32(0x142)],_0x54e8d2=normalizeLegacyOutputFormat(_0x1bcbdc),_0x3ee851=env(_0x3d4b32(0x144))||_0x177111[_0x3d4b32(0x175)],_0x57f11d=_0x3ee851?Number(_0x3ee851)||undefined:undefined,_0x3c7a5e=_0x177111[_0x3d4b32(0x157)]||_0x177111['maxRisk'],_0x272e7f=_0x3c7a5e===_0x3d4b32(0x149)||_0x3c7a5e==='write'||_0x3c7a5e==='high-risk-write'?_0x3c7a5e:DEFAULT_CONFIG_VALUES['riskLevel'],_0x19117a=env('VERBOSE'),_0x59ff4c=_0x19117a==='1'||_0x19117a===_0x3d4b32(0x140);return{'appCode':typeof _0x2f67df==='string'&&_0x2f67df[_0x3d4b32(0x15d)]()?_0x2f67df['trim']():undefined,'appCodeSource':_0x616cbd,'env':_0xcbd2b0,'locale':_0x5e102e,'cookie':_0x306059,'accessKey':_0x377567,'format':_0x54e8d2,'pageSize':_0x57f11d,'riskLevel':_0x272e7f,'verbose':_0x59ff4c,'defaultApp':_0x246a17,'currentApp':typeof _0x1bc32a===_0x3d4b32(0x162)?_0x1bc32a:undefined,'raw':_0x177111};}function env(_0x4fbe87){return productEnv(_0x4fbe87);}async function buildAuth(_0x252a14){const _0x5b0406=a73_0x3543cd,_0x2d7ee2='',_0x35322f=!!_0x252a14[_0x5b0406(0x17d)];return{'cookie':_0x2d7ee2,'isLoggedIn':_0x35322f,async 'getOrLogin'(){const _0x14ce9f=_0x5b0406;if(_0x35322f)return _0x2d7ee2;throw CliErrors[_0x14ce9f(0x165)]();}};}
1
+ const a73_0xec356a=a73_0x5227;(function(_0x4dff4c,_0x20a60d){const _0x46b793=a73_0x5227,_0x2bd596=_0x4dff4c();while(!![]){try{const _0x3e3c61=-parseInt(_0x46b793(0xad))/0x1*(parseInt(_0x46b793(0xb1))/0x2)+parseInt(_0x46b793(0xb5))/0x3+parseInt(_0x46b793(0xb2))/0x4*(parseInt(_0x46b793(0xb9))/0x5)+parseInt(_0x46b793(0x77))/0x6*(parseInt(_0x46b793(0xa2))/0x7)+-parseInt(_0x46b793(0xab))/0x8+-parseInt(_0x46b793(0xb0))/0x9*(parseInt(_0x46b793(0x81))/0xa)+parseInt(_0x46b793(0xb3))/0xb*(parseInt(_0x46b793(0x98))/0xc);if(_0x3e3c61===_0x20a60d)break;else _0x2bd596['push'](_0x2bd596['shift']());}catch(_0xe8bc58){_0x2bd596['push'](_0x2bd596['shift']());}}}(a73_0x3b98,0x49af2));import{readFileSync,existsSync,mkdirSync,renameSync,unlinkSync,writeFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{homedir}from'node:os';import{logger}from'./utils/logger.js';import{CliErrors}from'./errors.js';import{CLI_BIN_NAME}from'./constant/cli.js';import{PRODUCT_CONFIG,productEnv,productEnvNames}from'./constant/product.js';import{DEFAULT_CONFIG_VALUES}from'./constant/defaults.js';import{normalizeEnv,isDaily,isDev}from'./constant/env.js';import{normalizeLegacyOutputFormat}from'./framework/types.js';import{resolveCachedAppCode}from'./commands/app/cache.js';function a73_0x3b98(){const _0x107eb7=['.tmp','projectConfig','3012430ZyZbDM','maxRisk','values','stdout','trim','skillHubDomain','error','app','cache','newConfigFileName','EPERM','appcode','find','isTTY','stdin','some','./constant/env.js','EACCES','write','utf8','read','defaultApp','slice','27732HIKKYp','./constant/domain.js','setLogPath','top-level','format','code','object','inherit','cwd','accessKey','7GMxlOC','project','explicit','stringify','raw','host','riskLevel','production','parse','239152zVjSKC','daily','1BTxjDM','userDomain','locale','9PWMOHI','651590LFEaKp','4dsHEWg','704rGFsHs','FORMAT','877770xhcerq','global','true','runtimeDomain','380125bHKAzD','missing','ACCESS_KEY','string','2653338fVJSma','APP','development','EXDEV','env','apps','online','VERBOSE'];a73_0x3b98=function(){return _0x107eb7;};return a73_0x3b98();}export{AUTH_MODE,isAuthMode}from'./constant/auth-mode.js';const CONFIG_NAMES=PRODUCT_CONFIG['configFileNames'];function a73_0x5227(_0x2e58d0,_0x53dbca){_0x2e58d0=_0x2e58d0-0x77;const _0x3b98dc=a73_0x3b98();let _0x522771=_0x3b98dc[_0x2e58d0];return _0x522771;}export const NEW_CONFIG_NAME=PRODUCT_CONFIG[a73_0xec356a(0x8a)];function resolveConfigPath(_0x1fcf1c){for(const _0x2ed256 of CONFIG_NAMES){const _0x52bdf7=resolve(_0x1fcf1c,_0x2ed256);if(existsSync(_0x52bdf7))return _0x52bdf7;}return undefined;}export function resolveWriteConfigPath(_0x1b7e61){const _0x4c0fed=a73_0xec356a,_0x135b30=_0x1b7e61===_0x4c0fed(0xa3)?process[_0x4c0fed(0xa0)]():homedir(),_0x35e0c8=resolveConfigPath(_0x135b30);return _0x35e0c8??resolve(_0x135b30,NEW_CONFIG_NAME);}export function readConfigFile(_0x4f1e71){const _0xe0a25=a73_0xec356a;try{if(existsSync(_0x4f1e71)){const _0x2ac256=readFileSync(_0x4f1e71,{'encoding':_0xe0a25(0x94)});if(_0x2ac256){const _0x1c16aa=JSON[_0xe0a25(0xaa)](_0x2ac256);return migrateOnlineEnv(_0x4f1e71,_0x1c16aa),_0x1c16aa;}}}catch{}return{};}function migrateOnlineEnv(_0x4c28ae,_0x4cea61){const _0x178a8f=a73_0xec356a;let _0x388895=![];_0x4cea61['env']===_0x178a8f(0x7d)&&(_0x4cea61['env']=_0x178a8f(0xa9),_0x388895=!![]);if(_0x4cea61['apps']&&typeof _0x4cea61[_0x178a8f(0x7c)]===_0x178a8f(0x9e))for(const _0x3c4991 of Object[_0x178a8f(0x83)](_0x4cea61[_0x178a8f(0x7c)])){_0x3c4991&&_0x3c4991[_0x178a8f(0x7b)]===_0x178a8f(0x7d)&&(_0x3c4991[_0x178a8f(0x7b)]=_0x178a8f(0xa9),_0x388895=!![]);}if(_0x388895)try{writeConfigFile(_0x4c28ae,_0x4cea61);}catch{}}export function writeConfigFile(_0x3902e1,_0x13c045){const _0x498f95=a73_0xec356a,_0x5e1d65=dirname(_0x3902e1);!existsSync(_0x5e1d65)&&mkdirSync(_0x5e1d65,{'recursive':!![]});const _0x372295=_0x3902e1+_0x498f95(0x7f);try{writeFileSync(_0x372295,JSON[_0x498f95(0xa5)](_0x13c045,null,0x2)+'\x0a',{'encoding':_0x498f95(0x94),'mode':0x180});try{renameSync(_0x372295,_0x3902e1);}catch(_0x217ce7){if(_0x217ce7[_0x498f95(0x9d)]===_0x498f95(0x8b)||_0x217ce7[_0x498f95(0x9d)]===_0x498f95(0x7a)||_0x217ce7[_0x498f95(0x9d)]===_0x498f95(0x92)){writeFileSync(_0x3902e1,JSON[_0x498f95(0xa5)](_0x13c045,null,0x2)+'\x0a',{'encoding':'utf8'});try{unlinkSync(_0x372295);}catch{}}else throw _0x217ce7;}}catch(_0x5e1ce2){try{unlinkSync(_0x372295);}catch{}throw _0x5e1ce2;}}export function isNonInteractiveMode(_0x581382){const _0xb64d19=a73_0xec356a;return!!(_0x581382['nonInteractive']||_0x581382['ci']||productEnvNames('CI')[_0xb64d19(0x90)](_0x26e367=>process.env[_0x26e367]===_0xb64d19(0xb7))||process.env.CI===_0xb64d19(0xb7)||!process[_0xb64d19(0x84)]['isTTY']||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x551520=a73_0xec356a;if(!process[_0x551520(0x8f)][_0x551520(0x8e)])return![];try{const _0x5e9f92=process[_0x551520(0x8f)]['isRaw'];return process[_0x551520(0x8f)]['setRawMode'](!![]),process[_0x551520(0x8f)]['setRawMode'](_0x5e9f92??![]),!![];}catch{return![];}}export async function createContext(_0x6f8259){const _0xacb98f=a73_0xec356a,_0x506133=readRawConfig(),_0x5fd6fe=buildConfig(_0x506133,_0x6f8259);await initGlobalEnvironment(_0x5fd6fe);const {getUserDomain:_0x194b47,getApiDomain:_0x1eb2f8}=await import(_0xacb98f(0x99)),_0x4838af={'apiDomain':_0x1eb2f8(),'userDomain':_0x194b47()},_0xdb5bbb=await buildAuth(_0x5fd6fe);logger[_0xacb98f(0x9a)](process['cwd']());const _0x4cb034=(CLI_BIN_NAME+'\x20'+process['argv'][_0xacb98f(0x97)](0x2)['join']('\x20'))['trim']();logger['setRawCommand'](_0x4cb034);const _0x3faea2=isNonInteractiveMode(_0x6f8259);return{'config':_0x5fd6fe,'auth':_0xdb5bbb,'logger':logger,'env':_0x4838af,'nonInteractive':_0x3faea2};}export function buildConfigFromFlags(_0x4ef57d){return buildConfig(readRawConfig(),_0x4ef57d);}export function getLocalAppAliases(_0x252f90){const _0x5d26ce=a73_0xec356a;return _0x252f90[_0x5d26ce(0x7c)]&&typeof _0x252f90[_0x5d26ce(0x7c)]==='object'?_0x252f90['apps']:{};}export function resolveLocalAppAliasCode(_0x3e9485,_0x42c0f5){const _0x1b22a9=a73_0xec356a;if(!_0x42c0f5)return undefined;const _0x21391e=getLocalAppAliases(_0x3e9485)[_0x42c0f5],_0x58ab45=_0x21391e?.[_0x1b22a9(0x8c)];return typeof _0x58ab45===_0x1b22a9(0xbc)&&_0x58ab45[_0x1b22a9(0x85)]()?_0x58ab45[_0x1b22a9(0x85)]():undefined;}export function readAppCodeFromConfig(){const _0x3ce7ba=a73_0xec356a,_0x34f698=readRawConfig(),_0xa1f06e=_0x34f698[_0x3ce7ba(0x8c)]??_0x34f698[_0x3ce7ba(0x88)];if(typeof _0xa1f06e===_0x3ce7ba(0xbc)&&_0xa1f06e[_0x3ce7ba(0x85)]())return _0xa1f06e[_0x3ce7ba(0x85)]();const _0x4be0bf=resolveLocalAppAliasCode(_0x34f698,typeof _0x34f698[_0x3ce7ba(0x96)]==='string'?_0x34f698[_0x3ce7ba(0x96)]:undefined);if(_0x4be0bf)return _0x4be0bf;const _0x4ab59a=normalizeEnv(String(_0x34f698['env']||_0x3ce7ba(0xa9))),_0x225d81=isDaily(_0x4ab59a)?_0x3ce7ba(0xac):isDev(_0x4ab59a)?_0x3ce7ba(0x79):_0x3ce7ba(0xa9),_0x29b7d4=resolveCachedAppCode(typeof _0x34f698[_0x3ce7ba(0x96)]===_0x3ce7ba(0xbc)?_0x34f698['defaultApp']:undefined,_0x225d81,typeof _0x34f698[_0x3ce7ba(0xa1)]==='string'?_0x34f698[_0x3ce7ba(0xa1)]:undefined);if(_0x29b7d4)return _0x29b7d4;const _0x14ff73=Object[_0x3ce7ba(0x83)](getLocalAppAliases(_0x34f698))[_0x3ce7ba(0x8d)](_0x24ba33=>_0x24ba33?.[_0x3ce7ba(0x8c)]);return typeof _0x14ff73?.[_0x3ce7ba(0x8c)]===_0x3ce7ba(0xbc)&&_0x14ff73['appcode'][_0x3ce7ba(0x85)]()?_0x14ff73[_0x3ce7ba(0x8c)][_0x3ce7ba(0x85)]():undefined;}export function readScopedConfig(_0x10c7cd){const _0x18e116=a73_0xec356a,_0x139265=_0x10c7cd[_0x18e116(0xb6)]?_0x18e116(0xb6):_0x18e116(0xa3);return readConfigFile(resolveWriteConfigPath(_0x139265));}export function writeScopedConfig(_0xa10b42,_0x1aba33){const _0x4ef50a=a73_0xec356a,_0x269039=_0x1aba33['global']?_0x4ef50a(0xb6):'project';writeConfigFile(resolveWriteConfigPath(_0x269039),_0xa10b42);}export async function initGlobalEnvironment(_0x5f3b8e){const _0x24e450=a73_0xec356a,{initEnv:_0x450281}=await import(_0x24e450(0x91));_0x450281(_0x5f3b8e['env']);const {initDomains:_0x99291f}=await import(_0x24e450(0x99));_0x99291f({'apiDomain':_0x5f3b8e[_0x24e450(0xa6)]['apiDomain']||_0x5f3b8e[_0x24e450(0xa6)][_0x24e450(0xa7)]||undefined,'userDomain':_0x5f3b8e[_0x24e450(0xa6)][_0x24e450(0xae)]||undefined,'runtimeDomain':_0x5f3b8e['raw'][_0x24e450(0xb8)]||undefined,'skillHubDomain':_0x5f3b8e[_0x24e450(0xa6)][_0x24e450(0x86)]||undefined});}export function getProjectConfigPath(){const _0x41fc57=a73_0xec356a;return resolveConfigPath(process[_0x41fc57(0xa0)]());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function inspectCliConfigJsonFile(_0x116b01){const _0x980d1a=a73_0xec356a;if(!existsSync(_0x116b01))return{'status':_0x980d1a(0xba)};try{const _0x5523a6=readFileSync(_0x116b01,{'encoding':_0x980d1a(0x94)});if(!_0x5523a6?.[_0x980d1a(0x85)]())return{'status':'empty'};const _0x524a77=JSON['parse'](_0x5523a6);return{'status':'ok','data':_0x524a77};}catch(_0x991763){return{'status':_0x980d1a(0x87),'message':_0x991763 instanceof Error?_0x991763['message']:String(_0x991763)};}}export function loadRawConfigLayers(_0x23fcc5){const _0x23a7be=a73_0xec356a;let _0x5a0668={},_0x439bbc={},_0x4be342,_0x6400a9;try{_0x4be342=resolveConfigPath(homedir());if(_0x4be342){const _0x29e6c5=readFileSync(_0x4be342,{'encoding':_0x23a7be(0x94)});if(_0x29e6c5)_0x5a0668=JSON[_0x23a7be(0xaa)](_0x29e6c5);}}catch{}try{const _0x29c9a5=_0x23fcc5||process[_0x23a7be(0xa0)]();_0x6400a9=resolveConfigPath(_0x29c9a5);if(_0x6400a9){const _0x32c72d=readFileSync(_0x6400a9,{'encoding':'utf8'});if(_0x32c72d)_0x439bbc=JSON['parse'](_0x32c72d);}}catch{}return{'globalPath':_0x4be342,'projectPath':_0x6400a9,'globalConfig':_0x5a0668,'projectConfig':_0x439bbc};}function mergeRawConfigLayers(_0x4e2f13){const _0x23f406=a73_0xec356a,{globalConfig:_0x500aca,projectConfig:_0x474aea}=_0x4e2f13;if(_0x474aea[_0x23f406(0x9f)]===![]){const _0x572687={..._0x474aea};return delete _0x572687[_0x23f406(0x9f)],_0x572687;}const _0x43fa1d={..._0x500aca,..._0x474aea};if(_0x23f406(0x96)in _0x474aea)_0x43fa1d[_0x23f406(0x96)]=_0x474aea[_0x23f406(0x96)];else _0x500aca[_0x23f406(0x96)]&&(_0x43fa1d[_0x23f406(0x96)]=_0x500aca[_0x23f406(0x96)]);return _0x43fa1d;}export function isInProject(){return!!getProjectConfigPath();}export function readRawConfig(_0x4bd9d3){return mergeRawConfigLayers(loadRawConfigLayers(_0x4bd9d3));}export function readRawConfigWithLayers(_0x16c07d){const _0x37bcb9=loadRawConfigLayers(_0x16c07d);return{'config':mergeRawConfigLayers(_0x37bcb9),'layers':_0x37bcb9};}export function resolveDefaultAppSource(_0x3cc561){const _0x1b8bec=a73_0xec356a;if(_0x1b8bec(0x96)in _0x3cc561[_0x1b8bec(0x80)])return _0x1b8bec(0xa3);if(_0x3cc561['projectConfig'][_0x1b8bec(0x9f)]===![])return null;if(_0x3cc561['globalConfig'][_0x1b8bec(0x96)])return _0x1b8bec(0xb6);return null;}function buildConfig(_0x1d7342,_0x32eaef){const _0x9a6287=a73_0xec356a,_0x20eaef=_0x1d7342['defaultApp']||undefined,_0x3d889d=_0x32eaef[_0x9a6287(0x88)]||env(_0x9a6287(0x78))||undefined,_0x5e2f73=_0x3d889d||_0x20eaef||undefined,_0x1da1b5=env(_0x9a6287(0xbb))||_0x1d7342[_0x9a6287(0xa1)]||undefined,_0x36b42a=_0x32eaef[_0x9a6287(0x7b)]||env('ENV')||_0x1d7342[_0x9a6287(0x7b)]||DEFAULT_CONFIG_VALUES[_0x9a6287(0x7b)],_0x451a8e=normalizeEnv(String(_0x36b42a)),_0x50ea83=isDaily(_0x451a8e)?_0x9a6287(0xac):isDev(_0x451a8e)?_0x9a6287(0x79):_0x9a6287(0xa9),_0x23cc20=typeof _0x32eaef[_0x9a6287(0x8c)]==='string'?_0x32eaef[_0x9a6287(0x8c)]:undefined,_0x20d402=env('APPCODE'),_0x7696ab=_0x3d889d?undefined:_0x1d7342['appcode']||_0x1d7342[_0x9a6287(0x88)]||undefined,_0x56aa3b=_0x3d889d||(_0x7696ab?undefined:_0x20eaef),_0x12891c=resolveLocalAppAliasCode(_0x1d7342,_0x56aa3b),_0x50cada=resolveCachedAppCode(_0x56aa3b,_0x50ea83,_0x1da1b5),_0x174a9a=_0x23cc20||_0x20d402||_0x7696ab||_0x12891c||_0x50cada||undefined,_0xd387c6=_0x23cc20?_0x9a6287(0xa4):_0x20d402?_0x9a6287(0x7b):_0x7696ab?_0x9a6287(0x9b):_0x12891c?'local-alias':_0x50cada?_0x9a6287(0x89):undefined,_0x236d4f=_0x1d7342[_0x9a6287(0xaf)]||DEFAULT_CONFIG_VALUES['locale'],_0xf6d2e3=undefined,_0x44cebd=_0x32eaef[_0x9a6287(0x9c)]||env(_0x9a6287(0xb4))||_0x1d7342[_0x9a6287(0x9c)],_0xd99e0e=normalizeLegacyOutputFormat(_0x44cebd),_0x1a5fe9=env('PAGE_SIZE')||_0x1d7342['pageSize'],_0x3033e5=_0x1a5fe9?Number(_0x1a5fe9)||undefined:undefined,_0x4b0f92=_0x1d7342[_0x9a6287(0xa8)]||_0x1d7342[_0x9a6287(0x82)],_0x426c9c=_0x4b0f92===_0x9a6287(0x95)||_0x4b0f92===_0x9a6287(0x93)||_0x4b0f92==='high-risk-write'?_0x4b0f92:DEFAULT_CONFIG_VALUES[_0x9a6287(0xa8)],_0x36160b=env(_0x9a6287(0x7e)),_0x2c57f0=_0x36160b==='1'||_0x36160b===_0x9a6287(0xb7);return{'appCode':typeof _0x174a9a===_0x9a6287(0xbc)&&_0x174a9a['trim']()?_0x174a9a[_0x9a6287(0x85)]():undefined,'appCodeSource':_0xd387c6,'env':_0x50ea83,'locale':_0x236d4f,'cookie':_0xf6d2e3,'accessKey':_0x1da1b5,'format':_0xd99e0e,'pageSize':_0x3033e5,'riskLevel':_0x426c9c,'verbose':_0x2c57f0,'defaultApp':_0x20eaef,'currentApp':typeof _0x5e2f73===_0x9a6287(0xbc)?_0x5e2f73:undefined,'raw':_0x1d7342};}function env(_0x54755b){return productEnv(_0x54755b);}async function buildAuth(_0xc56946){const _0x4dfbe4=a73_0xec356a,_0x850125='',_0x25e51c=!!_0xc56946[_0x4dfbe4(0xa1)];return{'cookie':_0x850125,'isLoggedIn':_0x25e51c,async 'getOrLogin'(){if(_0x25e51c)return _0x850125;throw CliErrors['authRequired']();}};}
@@ -1 +1 @@
1
- (function(_0x1efa4f,_0x5db400){const _0x35e074=a74_0x1964,_0x17597c=_0x1efa4f();while(!![]){try{const _0x477087=-parseInt(_0x35e074(0x19b))/0x1*(-parseInt(_0x35e074(0x136))/0x2)+-parseInt(_0x35e074(0x154))/0x3+-parseInt(_0x35e074(0x138))/0x4+parseInt(_0x35e074(0x186))/0x5*(parseInt(_0x35e074(0x16f))/0x6)+parseInt(_0x35e074(0x152))/0x7+-parseInt(_0x35e074(0x190))/0x8+-parseInt(_0x35e074(0x140))/0x9*(-parseInt(_0x35e074(0x16d))/0xa);if(_0x477087===_0x5db400)break;else _0x17597c['push'](_0x17597c['shift']());}catch(_0x1121d3){_0x17597c['push'](_0x17597c['shift']());}}}(a74_0x440c,0x7b9c6));import{readFile}from'node:fs/promises';import{basename}from'node:path';import{getApiDomain,getRuntimeDomain,getSkillHubDomain}from'../constant/domain.js';import{PRODUCT_CONFIG}from'../constant/product.js';import{CliErrors}from'../errors.js';import{extractList}from'../framework/response.js';let _activeAK;export function setActiveAK(_0x1e90d7){_activeAK=_0x1e90d7||undefined;}export function clearActiveAK(){_activeAK=undefined;}async function apiRequest(_0x1019e6,_0x499895={}){const _0x242fed=a74_0x1964,{method:method=_0x242fed(0x191),body:_0x5a76fe,headers:headers={},timeout:timeout=0x7530}=_0x499895,_0x64e5ce=_activeAK,_0xa61aa0=getRuntimeDomain();if(!_0x64e5ce)throw CliErrors[_0x242fed(0x12c)](_0x242fed(0x197)+PRODUCT_CONFIG[_0x242fed(0x135)]+'.');const _0x528310=''+_0xa61aa0+_0x1019e6,_0x4dfdb3={'X-User-AK':_0x64e5ce},_0x55fc10=new AbortController(),_0x4bbca3=setTimeout(()=>_0x55fc10[_0x242fed(0x15b)](),timeout);try{const _0x4d07c0=await fetch(_0x528310,{'method':method,'headers':{'Content-Type':'application/json','X-Invoke-Source':PRODUCT_CONFIG[_0x242fed(0x175)],..._0x4dfdb3,...headers},'body':_0x5a76fe?JSON[_0x242fed(0x164)](_0x5a76fe):undefined,'signal':_0x55fc10[_0x242fed(0x13b)]});let _0x37f1fd;try{_0x37f1fd=await _0x4d07c0[_0x242fed(0x128)]();}catch{throw CliErrors[_0x242fed(0x16c)](_0x242fed(0x14f)+_0x4d07c0[_0x242fed(0x163)]+')',_0x4d07c0[_0x242fed(0x163)]>=0x190?_0x242fed(0x14b):undefined);}if(!_0x4d07c0['ok']||_0x37f1fd[_0x242fed(0x177)]===![])throw CliErrors[_0x242fed(0x16c)](_0x37f1fd[_0x242fed(0x124)]||_0x37f1fd['message']||_0x242fed(0x161)+_0x4d07c0[_0x242fed(0x163)],_0x37f1fd[_0x242fed(0x159)]?_0x242fed(0x178)+_0x37f1fd[_0x242fed(0x159)]:undefined);return _0x37f1fd;}catch(_0x127d2d){if(_0x127d2d instanceof Error&&_0x127d2d[_0x242fed(0x18a)]===_0x242fed(0x198))throw CliErrors['apiError'](_0x242fed(0x194)+_0x528310);throw _0x127d2d;}finally{clearTimeout(_0x4bbca3);}}async function apiBinaryRequest(_0x44e9d9,_0x3e3585={}){const _0x2379b6=a74_0x1964,{method:method=_0x2379b6(0x191),headers:headers={},timeout:timeout=0x7530}=_0x3e3585,_0x1faf58=_activeAK,_0x41e890=getRuntimeDomain();if(!_0x1faf58)throw CliErrors[_0x2379b6(0x12c)]('Configure\x20accessKey\x20in\x20'+PRODUCT_CONFIG[_0x2379b6(0x135)]+'.');const _0x48878b=''+_0x41e890+_0x44e9d9,_0x1bc691=new AbortController(),_0x1bfbae=setTimeout(()=>_0x1bc691[_0x2379b6(0x15b)](),timeout);try{const _0x18cb1e=await fetch(_0x48878b,{'method':method,'headers':{'X-Invoke-Source':PRODUCT_CONFIG[_0x2379b6(0x175)],'X-User-AK':_0x1faf58,...headers},'signal':_0x1bc691['signal']});if(!_0x18cb1e['ok']){let _0x8df32c;try{const _0x54c231=await _0x18cb1e[_0x2379b6(0x128)]();_0x8df32c=_0x54c231[_0x2379b6(0x124)]||_0x54c231[_0x2379b6(0x126)]||_0x54c231[_0x2379b6(0x159)];}catch{_0x8df32c=await _0x18cb1e[_0x2379b6(0x174)]()['catch'](()=>undefined);}throw CliErrors['apiError'](_0x8df32c||_0x2379b6(0x161)+_0x18cb1e[_0x2379b6(0x163)],_0x2379b6(0x17e)+_0x48878b);}return Buffer[_0x2379b6(0x14d)](await _0x18cb1e[_0x2379b6(0x16b)]());}catch(_0x1afe79){if(_0x1afe79 instanceof Error&&_0x1afe79[_0x2379b6(0x18a)]===_0x2379b6(0x198))throw CliErrors[_0x2379b6(0x16c)](_0x2379b6(0x194)+_0x48878b);throw _0x1afe79;}finally{clearTimeout(_0x1bfbae);}}async function apiFormRequest(_0x1e2315,_0x5ed4f9,_0x40ca3c={}){const _0x2c5bcb=a74_0x1964,{timeout:timeout=0x7530}=_0x40ca3c,_0x2b8331=_activeAK,_0x4bea7c=getRuntimeDomain();if(!_0x2b8331)throw CliErrors['authRequired'](_0x2c5bcb(0x197)+PRODUCT_CONFIG['newConfigFileName']+'.');const _0x445bc4=''+_0x4bea7c+_0x1e2315,_0xf56227=new AbortController(),_0x562af7=setTimeout(()=>_0xf56227[_0x2c5bcb(0x15b)](),timeout);try{const _0x3d879b=await fetch(_0x445bc4,{'method':_0x2c5bcb(0x149),'headers':{'X-Invoke-Source':PRODUCT_CONFIG[_0x2c5bcb(0x175)],'X-User-AK':_0x2b8331},'body':_0x5ed4f9,'signal':_0xf56227['signal']});let _0x3d0771;try{_0x3d0771=await _0x3d879b['json']();}catch{throw CliErrors[_0x2c5bcb(0x16c)]('API\x20returned\x20non-JSON\x20response\x20(HTTP\x20'+_0x3d879b[_0x2c5bcb(0x163)]+')',_0x3d879b[_0x2c5bcb(0x163)]>=0x190?_0x2c5bcb(0x14b):undefined);}if(!_0x3d879b['ok']||_0x3d0771[_0x2c5bcb(0x177)]===![])throw CliErrors['apiError'](_0x3d0771[_0x2c5bcb(0x124)]||_0x3d0771['message']||_0x2c5bcb(0x161)+_0x3d879b[_0x2c5bcb(0x163)],_0x3d0771['errorCode']?_0x2c5bcb(0x178)+_0x3d0771['errorCode']:undefined);return _0x3d0771;}catch(_0x4a90ba){if(_0x4a90ba instanceof Error&&_0x4a90ba[_0x2c5bcb(0x18a)]===_0x2c5bcb(0x198))throw CliErrors[_0x2c5bcb(0x16c)]('Request\x20timeout:\x20'+_0x445bc4);throw _0x4a90ba;}finally{clearTimeout(_0x562af7);}}async function toolboxRequest(_0x47f585,_0x5ead2a,_0x30929c={}){const _0x3f832e=a74_0x1964,{method:method=_0x3f832e(0x191),headers:headers={},timeout:timeout=0x7530}=_0x30929c,_0x3c9101=_activeAK;if(!_0x3c9101)throw CliErrors[_0x3f832e(0x12c)](_0x3f832e(0x197)+PRODUCT_CONFIG['newConfigFileName']+'.');const _0x2da5d5=getApiDomain()['replace'](/\/$/,''),_0xf12a02=new URL(_0x47f585,_0x2da5d5+'/api/node-toolbox/');if(_0x5ead2a)for(const [_0x154e9f,_0xc26ba1]of Object[_0x3f832e(0x15a)](_0x5ead2a)){_0xc26ba1!==undefined&&_0xc26ba1!==null&&_0xf12a02[_0x3f832e(0x14a)][_0x3f832e(0x160)](_0x154e9f,String(_0xc26ba1));}const _0x1e0895=new AbortController(),_0xe7995d=setTimeout(()=>_0x1e0895[_0x3f832e(0x15b)](),timeout);try{const _0x7c10a7=await fetch(_0xf12a02,{'method':method,'headers':{'Content-Type':_0x3f832e(0x181),'X-Invoke-Source':PRODUCT_CONFIG[_0x3f832e(0x175)],'X-User-AK':_0x3c9101,...headers},'signal':_0x1e0895[_0x3f832e(0x13b)]});let _0x563adb;try{_0x563adb=await _0x7c10a7[_0x3f832e(0x128)]();}catch{throw CliErrors['apiError']('Toolbox\x20returned\x20non-JSON\x20response\x20(HTTP\x20'+_0x7c10a7[_0x3f832e(0x163)]+')',_0x7c10a7[_0x3f832e(0x163)]>=0x190?_0x3f832e(0x14b):undefined);}if(!_0x7c10a7['ok']){const _0xe456f0=_0x563adb&&typeof _0x563adb===_0x3f832e(0x158)?_0x563adb:{};throw CliErrors[_0x3f832e(0x16c)](_0xe456f0[_0x3f832e(0x124)]||_0xe456f0[_0x3f832e(0x126)]||'Toolbox\x20API\x20error:\x20'+_0x7c10a7['status'],_0xe456f0[_0x3f832e(0x159)]?_0x3f832e(0x172)+_0xe456f0[_0x3f832e(0x159)]:undefined);}if(_0x563adb&&typeof _0x563adb==='object'&&_0x3f832e(0x177)in _0x563adb&&typeof _0x563adb[_0x3f832e(0x177)]===_0x3f832e(0x189)){const _0x15d33b=_0x563adb;if(!_0x15d33b['success'])throw CliErrors[_0x3f832e(0x16c)](_0x15d33b[_0x3f832e(0x124)]||_0x15d33b[_0x3f832e(0x126)]||'Toolbox\x20API\x20error',_0x15d33b[_0x3f832e(0x159)]?_0x3f832e(0x172)+_0x15d33b[_0x3f832e(0x159)]:undefined);return _0x15d33b['data'];}return _0x563adb;}catch(_0x326c69){if(_0x326c69 instanceof Error&&_0x326c69[_0x3f832e(0x18a)]===_0x3f832e(0x198))throw CliErrors[_0x3f832e(0x16c)](_0x3f832e(0x194)+_0xf12a02['toString']());throw _0x326c69;}finally{clearTimeout(_0xe7995d);}}async function skillHubJsonRequest(_0x1851bb,_0x5ef288={}){const _0x35f48f=a74_0x1964,{method:method=_0x35f48f(0x191),query:_0x327671,body:_0x1c6fab,headers:headers={},timeout:timeout=0x7530,allowNotFound:allowNotFound=![]}=_0x5ef288,_0x502f4c=_activeAK;if(!_0x502f4c)throw CliErrors[_0x35f48f(0x12c)](_0x35f48f(0x197)+PRODUCT_CONFIG[_0x35f48f(0x135)]+'.');const _0x757934=getSkillHubDomain()['replace'](/\/$/,''),_0x29cd42=new URL(_0x1851bb,_0x757934+'/');if(_0x327671)for(const [_0x445cb4,_0x6622df]of Object[_0x35f48f(0x15a)](_0x327671)){_0x6622df!==undefined&&_0x6622df!==null&&_0x29cd42[_0x35f48f(0x14a)]['set'](_0x445cb4,String(_0x6622df));}const _0x3bf227=new AbortController(),_0x42cb94=setTimeout(()=>_0x3bf227[_0x35f48f(0x15b)](),timeout);try{const _0x1dd259=await fetch(_0x29cd42[_0x35f48f(0x150)](),{'method':method,'headers':{'Accept':_0x35f48f(0x181),'X-Invoke-Source':PRODUCT_CONFIG['invokeSource'],'X-User-AK':_0x502f4c,...headers},'body':_0x1c6fab,'signal':_0x3bf227[_0x35f48f(0x13b)]});let _0x19828e;try{_0x19828e=await _0x1dd259[_0x35f48f(0x128)]();}catch{if(allowNotFound&&_0x1dd259[_0x35f48f(0x163)]===0x194)return undefined;throw CliErrors['apiError'](_0x35f48f(0x157)+_0x1dd259[_0x35f48f(0x163)]+')',_0x1dd259[_0x35f48f(0x163)]>=0x190?_0x35f48f(0x14b):undefined);}if(allowNotFound&&isSkillHubNotFoundResponse(_0x1dd259['status'],_0x19828e))return undefined;const _0x3c0b26=!_0x1dd259['ok']||_0x19828e?.['success']===![]||typeof _0x19828e?.[_0x35f48f(0x153)]===_0x35f48f(0x156)&&_0x19828e['code']>=0x190;if(_0x3c0b26)throw CliErrors[_0x35f48f(0x16c)](_0x19828e?.[_0x35f48f(0x124)]||_0x19828e?.[_0x35f48f(0x126)]||_0x19828e?.[_0x35f48f(0x18b)]||_0x35f48f(0x13d)+_0x1dd259['status'],_0x19828e?.[_0x35f48f(0x159)]?_0x35f48f(0x173)+_0x19828e['errorCode']:undefined);return _0x19828e?.[_0x35f48f(0x131)]??_0x19828e;}catch(_0x170231){if(_0x170231 instanceof Error&&_0x170231[_0x35f48f(0x18a)]===_0x35f48f(0x198))throw CliErrors['apiError'](_0x35f48f(0x194)+_0x29cd42[_0x35f48f(0x150)]());throw _0x170231;}finally{clearTimeout(_0x42cb94);}}function isSkillHubNotFoundResponse(_0x5790e3,_0x1e3b5b){const _0x38dcb5=a74_0x1964;if(_0x5790e3===0x194||_0x1e3b5b?.[_0x38dcb5(0x153)]===0x194)return!![];if(_0x5790e3!==0x190&&_0x1e3b5b?.[_0x38dcb5(0x153)]!==0x190)return![];const _0x5e5e0a=[_0x1e3b5b?.['msg'],_0x1e3b5b?.[_0x38dcb5(0x126)],_0x1e3b5b?.[_0x38dcb5(0x124)],_0x1e3b5b?.['error']][_0x38dcb5(0x195)](_0x1ab29d=>typeof _0x1ab29d===_0x38dcb5(0x1a2))[_0x38dcb5(0x16e)]('\x20');return/skill not found\b/i[_0x38dcb5(0x176)](_0x5e5e0a);}async function skillHubBinaryRequest(_0x3c7ed8,_0x8ba54={}){const _0x527cdf=a74_0x1964,{query:_0x36ee18,headers:headers={},timeout:timeout=0x7530}=_0x8ba54,_0x177f6d=_activeAK;if(!_0x177f6d)throw CliErrors['authRequired'](_0x527cdf(0x197)+PRODUCT_CONFIG[_0x527cdf(0x135)]+'.');const _0x590306=getSkillHubDomain()[_0x527cdf(0x171)](/\/$/,''),_0x2133c3=new URL(_0x3c7ed8,_0x590306+'/');if(_0x36ee18)for(const [_0x535ced,_0x43b022]of Object[_0x527cdf(0x15a)](_0x36ee18)){_0x43b022!==undefined&&_0x43b022!==null&&_0x2133c3['searchParams'][_0x527cdf(0x160)](_0x535ced,String(_0x43b022));}const _0x3432c3=new AbortController(),_0x1d4a20=setTimeout(()=>_0x3432c3[_0x527cdf(0x15b)](),timeout);try{const _0x4cf8d8=await fetch(_0x2133c3['toString'](),{'method':_0x527cdf(0x191),'headers':{'Accept':_0x527cdf(0x12a),'X-Invoke-Source':PRODUCT_CONFIG[_0x527cdf(0x175)],'X-User-AK':_0x177f6d,...headers},'signal':_0x3432c3[_0x527cdf(0x13b)]});if(!_0x4cf8d8['ok']){let _0x4a31f7;try{const _0x39a5b7=await _0x4cf8d8['json']();_0x4a31f7=_0x39a5b7[_0x527cdf(0x124)]||_0x39a5b7[_0x527cdf(0x126)]||_0x39a5b7[_0x527cdf(0x18b)]||_0x39a5b7['errorCode'];}catch{_0x4a31f7=await _0x4cf8d8['text']()['catch'](()=>undefined);}throw CliErrors['apiError'](_0x4a31f7||_0x527cdf(0x13d)+_0x4cf8d8[_0x527cdf(0x163)],_0x527cdf(0x17e)+_0x2133c3[_0x527cdf(0x150)]());}return Buffer[_0x527cdf(0x14d)](await _0x4cf8d8['arrayBuffer']());}catch(_0x493d84){if(_0x493d84 instanceof Error&&_0x493d84[_0x527cdf(0x18a)]===_0x527cdf(0x198))throw CliErrors[_0x527cdf(0x16c)](_0x527cdf(0x194)+_0x2133c3['toString']());throw _0x493d84;}finally{clearTimeout(_0x1d4a20);}}export async function getBffScriptInfo(_0x30d07d){const _0x55ece2=a74_0x1964,_0xbfab3=await apiRequest('/client/bff/query/'+_0x30d07d);if(!_0xbfab3[_0x55ece2(0x131)])throw CliErrors[_0x55ece2(0x143)](_0x55ece2(0x165)+_0x30d07d);return _0xbfab3[_0x55ece2(0x131)];}export async function getSqlQueryInfo(_0x20158c,_0x1bee51){const _0x53a002=a74_0x1964,_0x420da0=await apiRequest(_0x53a002(0x17a),{'method':_0x53a002(0x149),'body':{'appCode':_0x20158c,'currentPage':0x1,'pageSize':0x1,'sqlCode':_0x1bee51}}),_0x4fd2ca=_0x420da0[_0x53a002(0x131)],_0x28a13e=_0x4fd2ca&&typeof _0x4fd2ca==='object'&&_0x53a002(0x134)in _0x4fd2ca?_0x4fd2ca['tableData']?.[0x0]:_0x4fd2ca&&typeof _0x4fd2ca===_0x53a002(0x158)&&_0x53a002(0x148)in _0x4fd2ca?_0x4fd2ca:undefined;if(!_0x28a13e)throw CliErrors[_0x53a002(0x143)](_0x53a002(0x18c)+_0x1bee51);return _0x28a13e;}function isRemoteAppItem(_0x42c6f9){const _0x3b4177=a74_0x1964;return!!_0x42c6f9&&typeof _0x42c6f9===_0x3b4177(0x158)&&typeof _0x42c6f9[_0x3b4177(0x11e)]===_0x3b4177(0x1a2)&&typeof _0x42c6f9[_0x3b4177(0x188)]===_0x3b4177(0x1a2);}function extractRemoteAppItems(_0x520123){const _0x229c0b=a74_0x1964;if(Array[_0x229c0b(0x16a)](_0x520123))return _0x520123['filter'](isRemoteAppItem);if(!_0x520123||typeof _0x520123!==_0x229c0b(0x158))throw CliErrors[_0x229c0b(0x16c)](_0x229c0b(0x1a1));const _0x3cee0b=_0x520123;if(Array['isArray'](_0x3cee0b[_0x229c0b(0x134)]))return _0x3cee0b[_0x229c0b(0x134)][_0x229c0b(0x195)](isRemoteAppItem);if(_0x3cee0b[_0x229c0b(0x131)]&&typeof _0x3cee0b[_0x229c0b(0x131)]===_0x229c0b(0x158)){const _0x4c5bde=_0x3cee0b[_0x229c0b(0x131)];if(Array[_0x229c0b(0x16a)](_0x4c5bde[_0x229c0b(0x134)]))return _0x4c5bde[_0x229c0b(0x134)]['filter'](isRemoteAppItem);}throw CliErrors[_0x229c0b(0x16c)](_0x229c0b(0x11d));}export async function getMyApps(){const _0x389644=a74_0x1964,_0x43f2d6=await apiRequest('/client/app/my-apps');return extractRemoteAppItems(_0x43f2d6[_0x389644(0x131)]);}export async function getLoginUserInfo(){const _0x191bcc=a74_0x1964,_0x5abb23=await apiRequest(_0x191bcc(0x151));if(!_0x5abb23[_0x191bcc(0x131)]||typeof _0x5abb23[_0x191bcc(0x131)]!==_0x191bcc(0x158)||Array[_0x191bcc(0x16a)](_0x5abb23[_0x191bcc(0x131)]))throw CliErrors[_0x191bcc(0x16c)](_0x191bcc(0x119));return _0x5abb23[_0x191bcc(0x131)];}export async function listDatasets(_0x2982ea,_0x5b4140){const _0x19fedc=a74_0x1964,_0x13c6ea=await apiRequest(_0x19fedc(0x183),{'method':_0x19fedc(0x149),'body':{'appCode':_0x2982ea,..._0x5b4140?.[_0x19fedc(0x153)]&&{'code':_0x5b4140[_0x19fedc(0x153)]},..._0x5b4140?.['name']&&{'name':_0x5b4140['name']}}});return extractList(_0x13c6ea[_0x19fedc(0x131)]);}export async function getDatasetDetail(_0x53a2ba){const _0x5e9f72=a74_0x1964,_0x1b6ad8=await apiRequest(_0x5e9f72(0x196)+encodeURIComponent(_0x53a2ba));return _0x1b6ad8[_0x5e9f72(0x131)];}export async function getDatasetSdkUsageDoc(_0x3bda2c,_0x33c89){const _0x21857a=a74_0x1964,_0x54a345=await toolboxRequest(_0x21857a(0x122),{'datasetCode':_0x3bda2c,'appCode':_0x33c89});return typeof _0x54a345?.[_0x21857a(0x18e)]===_0x21857a(0x1a2)?_0x54a345[_0x21857a(0x18e)]:'';}export async function uploadRuntimeFile(_0x434c03,_0x6c03c0){const _0xc039ea=a74_0x1964,_0x4e0bce=await readFile(_0x6c03c0),_0x5d8922=new FormData();_0x5d8922[_0xc039ea(0x167)](_0xc039ea(0x11e),_0x434c03),_0x5d8922[_0xc039ea(0x167)](_0xc039ea(0x187),new Blob([new Uint8Array(_0x4e0bce)]),basename(_0x6c03c0));const _0x476a99=await apiFormRequest(_0xc039ea(0x166),_0x5d8922);return _0x476a99['data'];}export async function queryRuntimeFileUrl(_0x498ca2,_0x20749a={}){const _0x221b5e=a74_0x1964,_0x114e41=await apiRequest('/client/queryFileUrl',{'method':'POST','body':{'filePath':_0x498ca2,'downloadFlag':_0x20749a[_0x221b5e(0x142)]??![]}});return _0x114e41[_0x221b5e(0x131)];}export async function recognizeRuntimeOcr(_0x1927d,_0x3c60c7){const _0x53f408=a74_0x1964,_0x235f7b=await apiRequest('/client/ocr',{'method':_0x53f408(0x149),'body':{'appCode':_0x1927d,'url':_0x3c60c7[_0x53f408(0x17b)],'type':_0x3c60c7['type']}});return _0x235f7b[_0x53f408(0x131)];}export async function getRuntimeAppConfigByKey(_0x32e0eb,_0x1ddaea){const _0x976726=a74_0x1964,_0x580242=new URLSearchParams({'appCode':_0x32e0eb,'key':_0x1ddaea}),_0x9c32c8=await apiRequest(_0x976726(0x121)+_0x580242['toString']());if(!_0x9c32c8[_0x976726(0x131)])throw CliErrors[_0x976726(0x143)]('App\x20config\x20not\x20found:\x20key='+_0x1ddaea);return _0x9c32c8[_0x976726(0x131)];}export async function listRuntimeArtifacts(_0x5cec5e,_0xa38bd3){const _0x22aecb=a74_0x1964,_0x58c674=new URLSearchParams({'appCode':_0x5cec5e});if(_0xa38bd3?.[_0x22aecb(0x123)])_0x58c674[_0x22aecb(0x160)](_0x22aecb(0x123),_0xa38bd3[_0x22aecb(0x123)]);if(_0xa38bd3?.[_0x22aecb(0x11b)])_0x58c674[_0x22aecb(0x160)]('source',_0xa38bd3[_0x22aecb(0x11b)]);if(_0xa38bd3?.[_0x22aecb(0x19c)]!==undefined)_0x58c674[_0x22aecb(0x160)](_0x22aecb(0x19c),String(_0xa38bd3['favorite']));const _0x31be82=await apiRequest(_0x22aecb(0x14c)+_0x58c674['toString']());return Array[_0x22aecb(0x16a)](_0x31be82[_0x22aecb(0x131)])?_0x31be82[_0x22aecb(0x131)]:[];}export async function getRuntimeArtifact(_0xb7e00,_0x121e92){const _0x3721e4=a74_0x1964,_0x4c50a4=await apiRequest('/client/artifact/'+_0xb7e00+_0x3721e4(0x15f)+encodeURIComponent(_0x121e92));if(!_0x4c50a4[_0x3721e4(0x131)])throw CliErrors['validation']('Artifact\x20not\x20found:\x20id='+_0xb7e00);return _0x4c50a4[_0x3721e4(0x131)];}function a74_0x1964(_0x20b1c8,_0x4c7b66){_0x20b1c8=_0x20b1c8-0x119;const _0x440c53=a74_0x440c();let _0x1964c3=_0x440c53[_0x20b1c8];return _0x1964c3;}export async function createRuntimeArtifact(_0x375977,_0x497a78){const _0x19e83e=a74_0x1964,_0x8e5278=await apiRequest(_0x19e83e(0x15d),{'method':_0x19e83e(0x149),'body':{'appCode':_0x375977,..._0x497a78}});return _0x8e5278[_0x19e83e(0x131)];}export async function updateRuntimeArtifact(_0xf6f0c6,_0x522b6c,_0x17a723){const _0x3eaa4a=a74_0x1964,_0x48ba0b=await apiRequest(_0x3eaa4a(0x184)+_0xf6f0c6+'/update',{'method':'POST','body':{'appCode':_0x522b6c,..._0x17a723}});return _0x48ba0b[_0x3eaa4a(0x131)];}export async function listPersonalBffs(_0xa0603c){const _0x3e2957=a74_0x1964,_0x377d88=await apiRequest(_0x3e2957(0x18d)+encodeURIComponent(_0xa0603c));return Array[_0x3e2957(0x16a)](_0x377d88['data'])?_0x377d88['data']:[];}export async function getPersonalBff(_0x3fe333,_0x36ebb6){const _0x196763=a74_0x1964,_0xeb68bb=await apiRequest(_0x196763(0x11f)+_0x3fe333+_0x196763(0x15f)+encodeURIComponent(_0x36ebb6));if(!_0xeb68bb[_0x196763(0x131)])throw CliErrors[_0x196763(0x143)](_0x196763(0x12e)+_0x3fe333);return _0xeb68bb[_0x196763(0x131)];}export async function createPersonalBff(_0x181a12,_0x3ad804){const _0x473e2c=a74_0x1964,_0x344d0a=await apiRequest(_0x473e2c(0x18f),{'method':_0x473e2c(0x149),'body':{'appCode':_0x181a12,..._0x3ad804}});return _0x344d0a[_0x473e2c(0x131)];}export async function updatePersonalBff(_0x1fc776,_0x2b9f10,_0x195b1c){const _0xef0693=a74_0x1964,_0x254aae=await apiRequest(_0xef0693(0x11f)+_0x1fc776+'/update',{'method':_0xef0693(0x149),'body':{'appCode':_0x2b9f10,..._0x195b1c}});return _0x254aae['data'];}export async function executePersonalBff(_0x609e2a,_0x1fff39,_0x1f2eda){const _0x50f9d5=a74_0x1964,_0x26862c=await apiRequest(_0x50f9d5(0x11f)+_0x609e2a+'/execute?appCode='+encodeURIComponent(_0x1fff39),{'method':_0x50f9d5(0x149),'body':_0x1f2eda});return _0x26862c[_0x50f9d5(0x131)];}export async function listPersonalKnowledgeBaseItems(_0x334b36){const _0x29242b=a74_0x1964,_0xcb4a6e=await apiRequest(_0x29242b(0x139)+encodeURIComponent(_0x334b36));return Array['isArray'](_0xcb4a6e[_0x29242b(0x131)])?_0xcb4a6e[_0x29242b(0x131)]:[];}export async function getPersonalKnowledgeBaseItem(_0x3b30e5,_0x2cc85d){const _0x1e1d24=a74_0x1964,_0xdda36f=await apiRequest('/client/knowledge-base/personal/'+_0x3b30e5+_0x1e1d24(0x15f)+encodeURIComponent(_0x2cc85d));if(!_0xdda36f[_0x1e1d24(0x131)])throw CliErrors[_0x1e1d24(0x143)](_0x1e1d24(0x120)+_0x3b30e5);return _0xdda36f['data'];}export async function createPersonalKnowledgeBaseItem(_0x174ec6,_0x476697){const _0x47a4d6=a74_0x1964,_0x197c2d=await apiRequest(_0x47a4d6(0x19f),{'method':_0x47a4d6(0x149),'body':{'appCode':_0x174ec6,..._0x476697}});return _0x197c2d['data'];}export async function updatePersonalKnowledgeBaseItem(_0x8888fc,_0xfd8f14,_0x15dd48){const _0x19d825=a74_0x1964,_0xfd6f2f=await apiRequest(_0x19d825(0x162)+_0x8888fc+_0x19d825(0x19d),{'method':_0x19d825(0x149),'body':{'appCode':_0xfd8f14,..._0x15dd48}});return _0xfd6f2f[_0x19d825(0x131)];}export async function searchKnowledgeBase(_0x5d0fd8,_0x161fa8){const _0x282a01=a74_0x1964,_0x53442d=await apiRequest(_0x282a01(0x17f),{'method':'POST','body':{'appCode':_0x5d0fd8,'query':_0x161fa8['query'],..._0x161fa8[_0x282a01(0x12f)]!==undefined?{'topK':_0x161fa8[_0x282a01(0x12f)]}:{}}});return Array['isArray'](_0x53442d[_0x282a01(0x131)])?_0x53442d[_0x282a01(0x131)]:[];}export async function getRuntimeSkillByCode(_0x5c4dc9,_0x5cb1df){const _0x502de0=await skillHubJsonRequest('/api/v1/skills/'+encodeURIComponent(_0x5c4dc9)+'/'+encodeURIComponent(_0x5cb1df),{'allowNotFound':!![]});return _0x502de0?skillHubRuntimeDetailToRuntimeSkill(_0x502de0):undefined;}export async function listRuntimeSkills(_0x2ac864){const _0x2f61b4=a74_0x1964,_0x5e1d3d=await skillHubJsonRequest(_0x2f61b4(0x13c)+encodeURIComponent(_0x2ac864[_0x2f61b4(0x11e)])+_0x2f61b4(0x15e),{'query':{'page':0x0,'size':0xc8}});return normalizeSkillHubRuntimeListResponse(_0x2ac864[_0x2f61b4(0x11e)],_0x5e1d3d,_0x2ac864[_0x2f61b4(0x1a3)]??_0x2f61b4(0x168),_0x2ac864[_0x2f61b4(0x153)]);}export async function listPersonalRuntimeSkills(_0x3aed3c){const _0x53aa88=a74_0x1964;return(await listRuntimeSkills({'appCode':_0x3aed3c,'scope':_0x53aa88(0x185)}))['personal'];}export async function listCompanyRuntimeSkills(_0x1b3e94){const _0x512f16=a74_0x1964;return(await listRuntimeSkills({'appCode':_0x1b3e94,'scope':_0x512f16(0x145)}))[_0x512f16(0x145)];}export async function listVisibleRuntimeSkills(_0x5e3781){const _0x1f38e1=a74_0x1964;return(await listRuntimeSkills({'appCode':_0x5e3781,'scope':'all'}))[_0x1f38e1(0x182)];}export async function createPersonalRuntimeSkill(_0x3e0258,_0x394146){return publishRuntimeSkill(_0x3e0258,_0x394146,{'visibility':'PRIVATE'});}export async function updatePersonalRuntimeSkill(_0x5e222c,_0x5e428c,_0x1eacdf){const _0x4a8cf8=a74_0x1964;return publishRuntimeSkill(_0x5e428c,{..._0x1eacdf,'skillCode':_0x1eacdf[_0x4a8cf8(0x125)]??_0x5e222c},{'visibility':_0x4a8cf8(0x13f)});}export async function publishCompanyRuntimeSkill(_0x11dedc,_0x594769,_0x5953c6={}){const _0x9f5c16=a74_0x1964;return publishRuntimeSkill(_0x11dedc,_0x594769,{'visibility':_0x9f5c16(0x19e),'confirmWarnings':_0x5953c6[_0x9f5c16(0x179)]});}export async function validateRuntimeSkillPublish(_0x4a6acf,_0x1d70a1,_0x41cb48){const _0x547c59=a74_0x1964,_0x3ab87a=buildRuntimeSkillPublishForm(_0x1d70a1,_0x41cb48[_0x547c59(0x12b)]),_0x3c31a9=await skillHubJsonRequest(_0x547c59(0x170)+encodeURIComponent(_0x4a6acf)+_0x547c59(0x141),{'method':_0x547c59(0x149),'body':_0x3ab87a});return{'valid':_0x3c31a9[_0x547c59(0x192)]===!![],'errors':Array[_0x547c59(0x16a)](_0x3c31a9[_0x547c59(0x17d)])?_0x3c31a9[_0x547c59(0x17d)]:[],'warnings':Array[_0x547c59(0x16a)](_0x3c31a9[_0x547c59(0x199)])?_0x3c31a9[_0x547c59(0x199)]:[],'resolvedSlug':_0x3c31a9[_0x547c59(0x15c)],'resolvedVersion':_0x3c31a9['resolvedVersion']};}export async function downloadRuntimeSkillPackage(_0xed7682,_0x110083,_0x1e254f,_0x1caa3a){const _0x558fed=a74_0x1964;void _0xed7682;const _0x13e9c4=_0x1caa3a?_0x558fed(0x170)+encodeURIComponent(_0x1e254f)+'/'+encodeURIComponent(_0x110083)+'/versions/'+encodeURIComponent(_0x1caa3a)+'/download':_0x558fed(0x170)+encodeURIComponent(_0x1e254f)+'/'+encodeURIComponent(_0x110083)+'/download';return skillHubBinaryRequest(_0x13e9c4);}function a74_0x440c(){const _0xc64e8d=['text','invokeSource','test','success','API\x20error\x20code:\x20','confirmWarnings','/client/sql/query','url','values','errors','Download\x20failed:\x20','/client/knowledge-base/search','content','application/json','effective','/client/dataset/list','/client/artifact/','personal','998405ySHkzY','file','appName','boolean','name','msg','SQL\x20query\x20not\x20found:\x20','/client/runtime-bff/personal/list?appCode=','markdown','/client/runtime-bff/personal/create','7271512kVDDNe','GET','valid','version','Request\x20timeout:\x20','filter','/client/dataset/get-driven-data?code=','Configure\x20accessKey\x20in\x20','AbortError','warnings','skill','22kQJqZI','favorite','/update','NAMESPACE_ONLY','/client/knowledge-base/personal/create','summary','Invalid\x20app\x20list\x20response:\x20expected\x20object\x20or\x20array.','string','scope','Invalid\x20login\x20user\x20info\x20response:\x20expected\x20object.','slug','source','/publish','Invalid\x20app\x20list\x20response:\x20missing\x20data.tableData.','appCode','/client/runtime-bff/personal/','Knowledge-base\x20entry\x20not\x20found:\x20id=','/client/app-config/getByKey?','api-doc-generator','artifactType','errorMsg','skillCode','message','Missing\x20Skill\x20package\x20payload.','json','items','application/octet-stream','visibility','authRequired','namespace','Personal\x20BFF\x20not\x20found:\x20id=','topK','displayName','data','tags','skillName','tableData','newConfigFileName','19016bZWcdA','base64','3626276iZnwSC','/client/knowledge-base/personal/list?appCode=','.zip','signal','/api/runtime/v1/namespaces/','SkillHub\x20API\x20error:\x20','trim','PRIVATE','232092jZzHYn','/publish/validate','download','validation','map','company','ownerPreviewVersion','description','sqlCode','POST','searchParams','Check\x20your\x20credentials\x20and\x20try\x20again.','/client/artifact/list?','from','application/zip','API\x20returned\x20non-JSON\x20response\x20(HTTP\x20','toString','/client/user/loginUserInfo','6587707fELHEM','code','795780UMtpKy','packageBase64','number','SkillHub\x20returned\x20non-JSON\x20response\x20(HTTP\x20','object','errorCode','entries','abort','resolvedSlug','/client/artifact/create','/skills','?appCode=','set','API\x20error:\x20','/client/knowledge-base/personal/','status','stringify','BFF\x20script\x20not\x20found:\x20id=','/client/uploadFile','append','all','toLowerCase','isArray','arrayBuffer','apiError','170qOMzhi','join','30iDNitn','/api/cli/v1/skills/','replace','Toolbox\x20error\x20code:\x20','SkillHub\x20error\x20code:\x20'];a74_0x440c=function(){return _0xc64e8d;};return a74_0x440c();}async function publishRuntimeSkill(_0x620c29,_0x2abeea,_0x14a7d3){const _0x3bc877=a74_0x1964,_0x3fcb18=buildRuntimeSkillPublishForm(_0x2abeea,_0x14a7d3[_0x3bc877(0x12b)]),_0x26f3eb=await skillHubJsonRequest(_0x3bc877(0x170)+encodeURIComponent(_0x620c29)+_0x3bc877(0x11c),{'method':'POST','query':{'confirmWarnings':_0x14a7d3['confirmWarnings']===!![]?!![]:undefined},'body':_0x3fcb18});return{'appCode':_0x26f3eb[_0x3bc877(0x12d)]??_0x620c29,'skillCode':_0x26f3eb[_0x3bc877(0x11a)]??_0x2abeea[_0x3bc877(0x125)]??'','skillName':_0x2abeea[_0x3bc877(0x133)]??_0x26f3eb['slug']??_0x2abeea[_0x3bc877(0x125)],'description':_0x2abeea[_0x3bc877(0x147)],'scope':skillHubVisibilityToScope(_0x26f3eb[_0x3bc877(0x12b)]??_0x14a7d3['visibility'])??_0x3bc877(0x185),'version':_0x26f3eb['version']??_0x2abeea['version'],'tags':_0x2abeea[_0x3bc877(0x132)],'content':_0x2abeea[_0x3bc877(0x180)]};}function buildRuntimeSkillPublishForm(_0x2c271a,_0x3b347b){const _0x598ea=a74_0x1964,_0x23dc76=new FormData();return _0x23dc76[_0x598ea(0x160)](_0x598ea(0x187),runtimeSkillPackageFile(_0x2c271a)),_0x2c271a['skillName']?.[_0x598ea(0x13e)]()&&_0x23dc76[_0x598ea(0x160)]('displayName',_0x2c271a[_0x598ea(0x133)][_0x598ea(0x13e)]()),_0x23dc76[_0x598ea(0x160)](_0x598ea(0x12b),_0x3b347b),_0x23dc76;}function runtimeSkillPackageFile(_0x515079){const _0xfa78a3=a74_0x1964;if(!_0x515079[_0xfa78a3(0x155)])throw CliErrors[_0xfa78a3(0x143)](_0xfa78a3(0x127));const _0x5f06b8=Buffer['from'](_0x515079[_0xfa78a3(0x155)],_0xfa78a3(0x137)),_0x1753c2=new Blob([_0x5f06b8],{'type':_0xfa78a3(0x14e)}),_0x2726db=(_0x515079[_0xfa78a3(0x125)]||_0xfa78a3(0x19a))+_0xfa78a3(0x13a);if(typeof File!=='undefined')return new File([_0x1753c2],_0x2726db,{'type':_0xfa78a3(0x14e)});return _0x1753c2;}function normalizeSkillHubRuntimeListResponse(_0x91f65c,_0x3fc8eb,_0x507cd8,_0x580b14){const _0x450140=a74_0x1964,_0x4da067=Array[_0x450140(0x16a)](_0x3fc8eb)?_0x3fc8eb:Array[_0x450140(0x16a)](_0x3fc8eb?.[_0x450140(0x129)])?_0x3fc8eb['items']:[],_0x12baa8=_0x580b14?.[_0x450140(0x13e)](),_0x465471=_0x4da067['filter'](_0x17b191=>!_0x12baa8||_0x17b191['slug']===_0x12baa8)[_0x450140(0x144)](skillHubRuntimeItemToRuntimeSkill)['filter'](_0xfcd4b2=>Boolean(_0xfcd4b2)),_0xbf03fc=_0x465471[_0x450140(0x195)](_0x2fb516=>_0x2fb516[_0x450140(0x1a3)]==='personal'),_0x3b6f4b=_0x465471[_0x450140(0x195)](_0x54db44=>_0x54db44['scope']===_0x450140(0x145));return{'appCode':_0x91f65c,'personal':_0x507cd8===_0x450140(0x145)?[]:_0xbf03fc,'company':_0x507cd8===_0x450140(0x185)?[]:_0x3b6f4b,'effective':buildEffectiveRuntimeSkills(_0xbf03fc,_0x3b6f4b,_0x507cd8)};}function skillHubRuntimeItemToRuntimeSkill(_0x158795){const _0x359ffe=a74_0x1964,_0x3596f4=_0x158795[_0x359ffe(0x11a)]?.[_0x359ffe(0x13e)](),_0x2414c1=skillHubVisibilityToScope(_0x158795[_0x359ffe(0x12b)]);if(!_0x3596f4||!_0x2414c1)return undefined;return{'id':_0x158795['id'],'appCode':_0x158795[_0x359ffe(0x12d)],'skillCode':_0x3596f4,'skillName':_0x158795[_0x359ffe(0x130)]??_0x3596f4,'description':_0x158795[_0x359ffe(0x1a0)],'scope':_0x2414c1,'version':skillHubRuntimeItemVersion(_0x158795),'status':_0x158795[_0x359ffe(0x163)]};}function skillHubRuntimeDetailToRuntimeSkill(_0x1ced44){const _0x288fdf=a74_0x1964,_0x411fe4=_0x1ced44['slug']?.[_0x288fdf(0x13e)]();if(!_0x411fe4)return undefined;return{'id':_0x1ced44['id'],'appCode':_0x1ced44[_0x288fdf(0x12d)],'skillCode':_0x411fe4,'skillName':_0x1ced44[_0x288fdf(0x130)]??_0x411fe4,'description':_0x1ced44[_0x288fdf(0x1a0)],'scope':skillHubVisibilityToScope(_0x1ced44[_0x288fdf(0x12b)])??_0x1ced44[_0x288fdf(0x12b)]?.[_0x288fdf(0x169)](),'version':skillHubRuntimeItemVersion(_0x1ced44),'status':_0x1ced44['status']};}function skillHubVisibilityToScope(_0x2264b7){const _0x24f78d=a74_0x1964;if(_0x2264b7==='PRIVATE')return _0x24f78d(0x185);if(_0x2264b7===_0x24f78d(0x19e))return'company';return undefined;}function skillHubRuntimeItemVersion(_0x4bd7fd){const _0x4d7a04=a74_0x1964;return _0x4bd7fd['publishedVersion']?.[_0x4d7a04(0x193)]??_0x4bd7fd['headlineVersion']?.[_0x4d7a04(0x193)]??_0x4bd7fd[_0x4d7a04(0x146)]?.['version'];}function buildEffectiveRuntimeSkills(_0x2a9579,_0xb68cee,_0xe1e4d5){const _0x5cfd2a=a74_0x1964;if(_0xe1e4d5===_0x5cfd2a(0x185))return _0x2a9579;if(_0xe1e4d5===_0x5cfd2a(0x145))return _0xb68cee;const _0x1aa39c=new Map();for(const _0x1ec6ee of _0xb68cee){_0x1aa39c[_0x5cfd2a(0x160)](_0x1ec6ee[_0x5cfd2a(0x125)],_0x1ec6ee);}for(const _0x4ea06d of _0x2a9579){_0x1aa39c[_0x5cfd2a(0x160)](_0x4ea06d[_0x5cfd2a(0x125)],_0x4ea06d);}return Array[_0x5cfd2a(0x14d)](_0x1aa39c[_0x5cfd2a(0x17c)]());}function normalizeRuntimeSkillListResponse(_0x295838,_0x1b0149){const _0x18ff1c=a74_0x1964;if(Array[_0x18ff1c(0x16a)](_0x1b0149)){const _0x47e748=_0x1b0149[_0x18ff1c(0x195)](_0x4add37=>_0x4add37[_0x18ff1c(0x1a3)]===_0x18ff1c(0x185)),_0x15f9d8=_0x1b0149[_0x18ff1c(0x195)](_0x456f2f=>_0x456f2f[_0x18ff1c(0x1a3)]===_0x18ff1c(0x145));return{'appCode':_0x295838,'personal':_0x47e748,'company':_0x15f9d8,'effective':[..._0x15f9d8,..._0x47e748]};}return{'appCode':_0x1b0149?.[_0x18ff1c(0x11e)]??_0x295838,'personal':Array[_0x18ff1c(0x16a)](_0x1b0149?.[_0x18ff1c(0x185)])?_0x1b0149[_0x18ff1c(0x185)]:[],'company':Array['isArray'](_0x1b0149?.[_0x18ff1c(0x145)])?_0x1b0149[_0x18ff1c(0x145)]:[],'effective':Array[_0x18ff1c(0x16a)](_0x1b0149?.[_0x18ff1c(0x182)])?_0x1b0149[_0x18ff1c(0x182)]:[]};}
1
+ (function(_0x3b8ffc,_0x24590c){const _0x5961c3=a74_0x42b3,_0x5a3f8d=_0x3b8ffc();while(!![]){try{const _0x267d8a=-parseInt(_0x5961c3(0x12c))/0x1*(-parseInt(_0x5961c3(0x175))/0x2)+parseInt(_0x5961c3(0x13d))/0x3+parseInt(_0x5961c3(0x180))/0x4*(-parseInt(_0x5961c3(0x10a))/0x5)+parseInt(_0x5961c3(0x153))/0x6*(-parseInt(_0x5961c3(0x134))/0x7)+-parseInt(_0x5961c3(0x162))/0x8*(parseInt(_0x5961c3(0x18f))/0x9)+-parseInt(_0x5961c3(0x119))/0xa*(parseInt(_0x5961c3(0x112))/0xb)+parseInt(_0x5961c3(0x10c))/0xc;if(_0x267d8a===_0x24590c)break;else _0x5a3f8d['push'](_0x5a3f8d['shift']());}catch(_0x3ca2a9){_0x5a3f8d['push'](_0x5a3f8d['shift']());}}}(a74_0x182c,0xf1f5b));import{readFile}from'node:fs/promises';import{basename}from'node:path';import{getApiDomain,getRuntimeDomain,getSkillHubDomain}from'../constant/domain.js';import{PRODUCT_CONFIG}from'../constant/product.js';import{CliErrors}from'../errors.js';import{extractList}from'../framework/response.js';let _activeAK;export function setActiveAK(_0x35b926){_activeAK=_0x35b926||undefined;}export function clearActiveAK(){_activeAK=undefined;}async function apiRequest(_0x1f61e1,_0x2be2b7={}){const _0x3bed8d=a74_0x42b3,{method:method=_0x3bed8d(0x167),body:_0x206988,headers:headers={},timeout:timeout=0x7530}=_0x2be2b7,_0x4ec338=_activeAK,_0x217158=getRuntimeDomain();if(!_0x4ec338)throw CliErrors[_0x3bed8d(0x14a)](_0x3bed8d(0x105)+PRODUCT_CONFIG[_0x3bed8d(0x12d)]+'.');const _0x299ea5=''+_0x217158+_0x1f61e1,_0x506297={'X-User-AK':_0x4ec338},_0x39d43b=new AbortController(),_0x4d9ce2=setTimeout(()=>_0x39d43b[_0x3bed8d(0x116)](),timeout);try{const _0xf9790f=await fetch(_0x299ea5,{'method':method,'headers':{'Content-Type':_0x3bed8d(0x177),'X-Invoke-Source':PRODUCT_CONFIG[_0x3bed8d(0x103)],..._0x506297,...headers},'body':_0x206988?JSON['stringify'](_0x206988):undefined,'signal':_0x39d43b[_0x3bed8d(0x173)]});let _0x481ad4;try{_0x481ad4=await _0xf9790f['json']();}catch{throw CliErrors[_0x3bed8d(0x11f)](_0x3bed8d(0x179)+_0xf9790f[_0x3bed8d(0x17b)]+')',_0xf9790f[_0x3bed8d(0x17b)]>=0x190?_0x3bed8d(0x14f):undefined);}if(!_0xf9790f['ok']||_0x481ad4[_0x3bed8d(0x17e)]===![])throw CliErrors[_0x3bed8d(0x11f)](_0x481ad4['errorMsg']||_0x481ad4[_0x3bed8d(0x189)]||'API\x20error:\x20'+_0xf9790f['status'],_0x481ad4[_0x3bed8d(0x188)]?'API\x20error\x20code:\x20'+_0x481ad4['errorCode']:undefined);return _0x481ad4;}catch(_0x4ff6b9){if(_0x4ff6b9 instanceof Error&&_0x4ff6b9[_0x3bed8d(0x165)]===_0x3bed8d(0x169))throw CliErrors[_0x3bed8d(0x11f)](_0x3bed8d(0x131)+_0x299ea5);throw _0x4ff6b9;}finally{clearTimeout(_0x4d9ce2);}}async function apiBinaryRequest(_0x338f1a,_0x56ed48={}){const _0x252bcf=a74_0x42b3,{method:method=_0x252bcf(0x167),headers:headers={},timeout:timeout=0x7530}=_0x56ed48,_0x3592c8=_activeAK,_0x22a2a6=getRuntimeDomain();if(!_0x3592c8)throw CliErrors[_0x252bcf(0x14a)]('Configure\x20accessKey\x20in\x20'+PRODUCT_CONFIG['newConfigFileName']+'.');const _0x358c95=''+_0x22a2a6+_0x338f1a,_0x34eb61=new AbortController(),_0x1b19b6=setTimeout(()=>_0x34eb61[_0x252bcf(0x116)](),timeout);try{const _0x37c2c1=await fetch(_0x358c95,{'method':method,'headers':{'X-Invoke-Source':PRODUCT_CONFIG[_0x252bcf(0x103)],'X-User-AK':_0x3592c8,...headers},'signal':_0x34eb61[_0x252bcf(0x173)]});if(!_0x37c2c1['ok']){let _0x2d8541;try{const _0x330b59=await _0x37c2c1[_0x252bcf(0x15b)]();_0x2d8541=_0x330b59[_0x252bcf(0x110)]||_0x330b59[_0x252bcf(0x189)]||_0x330b59[_0x252bcf(0x188)];}catch{_0x2d8541=await _0x37c2c1[_0x252bcf(0x10d)]()[_0x252bcf(0x127)](()=>undefined);}throw CliErrors['apiError'](_0x2d8541||_0x252bcf(0x151)+_0x37c2c1[_0x252bcf(0x17b)],'Download\x20failed:\x20'+_0x358c95);}return Buffer[_0x252bcf(0x137)](await _0x37c2c1['arrayBuffer']());}catch(_0x3c4a08){if(_0x3c4a08 instanceof Error&&_0x3c4a08[_0x252bcf(0x165)]===_0x252bcf(0x169))throw CliErrors[_0x252bcf(0x11f)]('Request\x20timeout:\x20'+_0x358c95);throw _0x3c4a08;}finally{clearTimeout(_0x1b19b6);}}async function apiFormRequest(_0x259809,_0x176293,_0x54125a={}){const _0x1e9f36=a74_0x42b3,{timeout:timeout=0x7530}=_0x54125a,_0x2f9d62=_activeAK,_0x5518f9=getRuntimeDomain();if(!_0x2f9d62)throw CliErrors[_0x1e9f36(0x14a)]('Configure\x20accessKey\x20in\x20'+PRODUCT_CONFIG['newConfigFileName']+'.');const _0x260b0b=''+_0x5518f9+_0x259809,_0xdcbcf5=new AbortController(),_0x5d6beb=setTimeout(()=>_0xdcbcf5[_0x1e9f36(0x116)](),timeout);try{const _0x581a7f=await fetch(_0x260b0b,{'method':_0x1e9f36(0x138),'headers':{'X-Invoke-Source':PRODUCT_CONFIG[_0x1e9f36(0x103)],'X-User-AK':_0x2f9d62},'body':_0x176293,'signal':_0xdcbcf5[_0x1e9f36(0x173)]});let _0x221e8c;try{_0x221e8c=await _0x581a7f['json']();}catch{throw CliErrors['apiError'](_0x1e9f36(0x179)+_0x581a7f[_0x1e9f36(0x17b)]+')',_0x581a7f[_0x1e9f36(0x17b)]>=0x190?'Check\x20your\x20credentials\x20and\x20try\x20again.':undefined);}if(!_0x581a7f['ok']||_0x221e8c[_0x1e9f36(0x17e)]===![])throw CliErrors[_0x1e9f36(0x11f)](_0x221e8c[_0x1e9f36(0x110)]||_0x221e8c['message']||_0x1e9f36(0x151)+_0x581a7f[_0x1e9f36(0x17b)],_0x221e8c[_0x1e9f36(0x188)]?'API\x20error\x20code:\x20'+_0x221e8c[_0x1e9f36(0x188)]:undefined);return _0x221e8c;}catch(_0xd96a72){if(_0xd96a72 instanceof Error&&_0xd96a72[_0x1e9f36(0x165)]===_0x1e9f36(0x169))throw CliErrors[_0x1e9f36(0x11f)](_0x1e9f36(0x131)+_0x260b0b);throw _0xd96a72;}finally{clearTimeout(_0x5d6beb);}}async function toolboxRequest(_0x127a7a,_0x13bf3d,_0x1eb391={}){const _0x229297=a74_0x42b3,{method:method='GET',headers:headers={},timeout:timeout=0x7530}=_0x1eb391,_0x6d5271=_activeAK;if(!_0x6d5271)throw CliErrors['authRequired'](_0x229297(0x105)+PRODUCT_CONFIG[_0x229297(0x12d)]+'.');const _0x2d1d56=getApiDomain()['replace'](/\/$/,''),_0x4fdf31=new URL(_0x127a7a,_0x2d1d56+_0x229297(0x164));if(_0x13bf3d)for(const [_0x263b5e,_0x486839]of Object[_0x229297(0x12b)](_0x13bf3d)){_0x486839!==undefined&&_0x486839!==null&&_0x4fdf31[_0x229297(0x118)]['set'](_0x263b5e,String(_0x486839));}const _0x2a0a56=new AbortController(),_0x13c7a9=setTimeout(()=>_0x2a0a56[_0x229297(0x116)](),timeout);try{const _0x45dab9=await fetch(_0x4fdf31,{'method':method,'headers':{'Content-Type':_0x229297(0x177),'X-Invoke-Source':PRODUCT_CONFIG[_0x229297(0x103)],'X-User-AK':_0x6d5271,...headers},'signal':_0x2a0a56[_0x229297(0x173)]});let _0x847685;try{_0x847685=await _0x45dab9[_0x229297(0x15b)]();}catch{throw CliErrors['apiError'](_0x229297(0x172)+_0x45dab9[_0x229297(0x17b)]+')',_0x45dab9[_0x229297(0x17b)]>=0x190?_0x229297(0x14f):undefined);}if(!_0x45dab9['ok']){const _0x15ff66=_0x847685&&typeof _0x847685===_0x229297(0x18c)?_0x847685:{};throw CliErrors[_0x229297(0x11f)](_0x15ff66[_0x229297(0x110)]||_0x15ff66[_0x229297(0x189)]||'Toolbox\x20API\x20error:\x20'+_0x45dab9[_0x229297(0x17b)],_0x15ff66[_0x229297(0x188)]?'Toolbox\x20error\x20code:\x20'+_0x15ff66[_0x229297(0x188)]:undefined);}if(_0x847685&&typeof _0x847685===_0x229297(0x18c)&&_0x229297(0x17e)in _0x847685&&typeof _0x847685['success']===_0x229297(0x161)){const _0x28a760=_0x847685;if(!_0x28a760[_0x229297(0x17e)])throw CliErrors['apiError'](_0x28a760[_0x229297(0x110)]||_0x28a760['message']||_0x229297(0x14d),_0x28a760[_0x229297(0x188)]?_0x229297(0x16f)+_0x28a760[_0x229297(0x188)]:undefined);return _0x28a760[_0x229297(0x147)];}return _0x847685;}catch(_0x4a5ce8){if(_0x4a5ce8 instanceof Error&&_0x4a5ce8['name']===_0x229297(0x169))throw CliErrors[_0x229297(0x11f)]('Request\x20timeout:\x20'+_0x4fdf31[_0x229297(0x15c)]());throw _0x4a5ce8;}finally{clearTimeout(_0x13c7a9);}}async function skillHubJsonRequest(_0x2fe871,_0x377f6e={}){const _0x168209=a74_0x42b3,{method:method=_0x168209(0x167),query:_0x526d70,body:_0x38e710,headers:headers={},timeout:timeout=0x7530,allowNotFound:allowNotFound=![]}=_0x377f6e,_0x1cc3db=_activeAK;if(!_0x1cc3db)throw CliErrors[_0x168209(0x14a)](_0x168209(0x105)+PRODUCT_CONFIG['newConfigFileName']+'.');const _0x549ae5=getSkillHubDomain()[_0x168209(0x166)](/\/$/,''),_0x703549=new URL(_0x2fe871,_0x549ae5+'/');if(_0x526d70)for(const [_0x37528e,_0x455dd0]of Object[_0x168209(0x12b)](_0x526d70)){_0x455dd0!==undefined&&_0x455dd0!==null&&_0x703549[_0x168209(0x118)]['set'](_0x37528e,String(_0x455dd0));}const _0x476bac=new AbortController(),_0x5d4695=setTimeout(()=>_0x476bac['abort'](),timeout);try{const _0x379dfb=await fetch(_0x703549[_0x168209(0x15c)](),{'method':method,'headers':{'Accept':_0x168209(0x177),'X-Invoke-Source':PRODUCT_CONFIG[_0x168209(0x103)],'X-User-AK':_0x1cc3db,...headers},'body':_0x38e710,'signal':_0x476bac[_0x168209(0x173)]});let _0x3cb01e;try{_0x3cb01e=await _0x379dfb[_0x168209(0x15b)]();}catch{if(allowNotFound&&_0x379dfb[_0x168209(0x17b)]===0x194)return undefined;throw CliErrors[_0x168209(0x11f)](_0x168209(0x174)+_0x379dfb['status']+')',_0x379dfb[_0x168209(0x17b)]>=0x190?'Check\x20your\x20credentials\x20and\x20try\x20again.':undefined);}if(allowNotFound&&isSkillHubNotFoundResponse(_0x379dfb[_0x168209(0x17b)],_0x3cb01e))return undefined;const _0x585511=!_0x379dfb['ok']||_0x3cb01e?.['success']===![]||typeof _0x3cb01e?.['code']===_0x168209(0x121)&&_0x3cb01e['code']>=0x190;if(_0x585511)throw CliErrors[_0x168209(0x11f)](_0x3cb01e?.[_0x168209(0x110)]||_0x3cb01e?.['message']||_0x3cb01e?.[_0x168209(0x115)]||_0x168209(0x150)+_0x379dfb['status'],_0x3cb01e?.[_0x168209(0x188)]?'SkillHub\x20error\x20code:\x20'+_0x3cb01e[_0x168209(0x188)]:undefined);return _0x3cb01e?.[_0x168209(0x147)]??_0x3cb01e;}catch(_0x4d2fab){if(_0x4d2fab instanceof Error&&_0x4d2fab[_0x168209(0x165)]===_0x168209(0x169))throw CliErrors[_0x168209(0x11f)](_0x168209(0x131)+_0x703549['toString']());throw _0x4d2fab;}finally{clearTimeout(_0x5d4695);}}function isSkillHubNotFoundResponse(_0x1d3439,_0xfa9533){const _0x14a27d=a74_0x42b3;if(_0x1d3439===0x194||_0xfa9533?.['code']===0x194)return!![];if(_0x1d3439!==0x190&&_0xfa9533?.[_0x14a27d(0x18a)]!==0x190)return![];const _0x5b8a3d=[_0xfa9533?.[_0x14a27d(0x115)],_0xfa9533?.[_0x14a27d(0x189)],_0xfa9533?.[_0x14a27d(0x110)],_0xfa9533?.[_0x14a27d(0x11c)]][_0x14a27d(0x106)](_0x5d6b03=>typeof _0x5d6b03==='string')['join']('\x20');return/skill not found\b/i[_0x14a27d(0x10f)](_0x5b8a3d);}async function skillHubBinaryRequest(_0x1f1dab,_0xc0da33={}){const _0x4d69d7=a74_0x42b3,{query:_0x321305,headers:headers={},timeout:timeout=0x7530}=_0xc0da33,_0x1eb21c=_activeAK;if(!_0x1eb21c)throw CliErrors[_0x4d69d7(0x14a)](_0x4d69d7(0x105)+PRODUCT_CONFIG[_0x4d69d7(0x12d)]+'.');const _0x1e4e5d=getSkillHubDomain()[_0x4d69d7(0x166)](/\/$/,''),_0x5a891c=new URL(_0x1f1dab,_0x1e4e5d+'/');if(_0x321305)for(const [_0x292d14,_0x4b7d81]of Object[_0x4d69d7(0x12b)](_0x321305)){_0x4b7d81!==undefined&&_0x4b7d81!==null&&_0x5a891c[_0x4d69d7(0x118)]['set'](_0x292d14,String(_0x4b7d81));}const _0x5617b3=new AbortController(),_0x426423=setTimeout(()=>_0x5617b3[_0x4d69d7(0x116)](),timeout);try{const _0x399fa3=await fetch(_0x5a891c[_0x4d69d7(0x15c)](),{'method':'GET','headers':{'Accept':_0x4d69d7(0x12e),'X-Invoke-Source':PRODUCT_CONFIG['invokeSource'],'X-User-AK':_0x1eb21c,...headers},'signal':_0x5617b3[_0x4d69d7(0x173)]});if(!_0x399fa3['ok']){let _0x535486;try{const _0xd62690=await _0x399fa3[_0x4d69d7(0x15b)]();_0x535486=_0xd62690[_0x4d69d7(0x110)]||_0xd62690[_0x4d69d7(0x189)]||_0xd62690[_0x4d69d7(0x115)]||_0xd62690[_0x4d69d7(0x188)];}catch{_0x535486=await _0x399fa3[_0x4d69d7(0x10d)]()['catch'](()=>undefined);}throw CliErrors[_0x4d69d7(0x11f)](_0x535486||_0x4d69d7(0x150)+_0x399fa3[_0x4d69d7(0x17b)],'Download\x20failed:\x20'+_0x5a891c['toString']());}return Buffer[_0x4d69d7(0x137)](await _0x399fa3['arrayBuffer']());}catch(_0x556908){if(_0x556908 instanceof Error&&_0x556908[_0x4d69d7(0x165)]==='AbortError')throw CliErrors['apiError']('Request\x20timeout:\x20'+_0x5a891c[_0x4d69d7(0x15c)]());throw _0x556908;}finally{clearTimeout(_0x426423);}}export async function getBffScriptInfo(_0x1b61dd){const _0x391125=a74_0x42b3,_0x3b6d56=await apiRequest('/client/bff/query/'+_0x1b61dd);if(!_0x3b6d56[_0x391125(0x147)])throw CliErrors[_0x391125(0x125)](_0x391125(0x132)+_0x1b61dd);return _0x3b6d56[_0x391125(0x147)];}export async function getSqlQueryInfo(_0x4be75b,_0x2c1e82){const _0x2bf867=a74_0x42b3,_0x4c6924=await apiRequest(_0x2bf867(0x107),{'method':_0x2bf867(0x138),'body':{'appCode':_0x4be75b,'currentPage':0x1,'pageSize':0x1,'sqlCode':_0x2c1e82}}),_0x16d665=_0x4c6924['data'],_0x4facfd=_0x16d665&&typeof _0x16d665==='object'&&'tableData'in _0x16d665?_0x16d665['tableData']?.[0x0]:_0x16d665&&typeof _0x16d665===_0x2bf867(0x18c)&&_0x2bf867(0x12f)in _0x16d665?_0x16d665:undefined;if(!_0x4facfd)throw CliErrors[_0x2bf867(0x125)](_0x2bf867(0x168)+_0x2c1e82);return _0x4facfd;}function isRemoteAppItem(_0x4e4557){const _0x374e15=a74_0x42b3;return!!_0x4e4557&&typeof _0x4e4557===_0x374e15(0x18c)&&typeof _0x4e4557['appCode']===_0x374e15(0x18d)&&typeof _0x4e4557[_0x374e15(0x130)]===_0x374e15(0x18d);}function extractRemoteAppItems(_0x3bab5a){const _0x348000=a74_0x42b3;if(Array[_0x348000(0x11a)](_0x3bab5a))return _0x3bab5a[_0x348000(0x106)](isRemoteAppItem);if(!_0x3bab5a||typeof _0x3bab5a!==_0x348000(0x18c))throw CliErrors[_0x348000(0x11f)]('Invalid\x20app\x20list\x20response:\x20expected\x20object\x20or\x20array.');const _0x11b73c=_0x3bab5a;if(Array[_0x348000(0x11a)](_0x11b73c[_0x348000(0x111)]))return _0x11b73c[_0x348000(0x111)]['filter'](isRemoteAppItem);if(_0x11b73c[_0x348000(0x147)]&&typeof _0x11b73c[_0x348000(0x147)]===_0x348000(0x18c)){const _0x3d2136=_0x11b73c[_0x348000(0x147)];if(Array[_0x348000(0x11a)](_0x3d2136[_0x348000(0x111)]))return _0x3d2136[_0x348000(0x111)][_0x348000(0x106)](isRemoteAppItem);}throw CliErrors[_0x348000(0x11f)]('Invalid\x20app\x20list\x20response:\x20missing\x20data.tableData.');}export async function getMyApps(){const _0x4da0b4=a74_0x42b3,_0x145e3e=await apiRequest(_0x4da0b4(0x156));return extractRemoteAppItems(_0x145e3e[_0x4da0b4(0x147)]);}export async function getLoginUserInfo(){const _0x3e33db=a74_0x42b3,_0xb3fed8=await apiRequest(_0x3e33db(0x144));if(!_0xb3fed8[_0x3e33db(0x147)]||typeof _0xb3fed8[_0x3e33db(0x147)]!==_0x3e33db(0x18c)||Array['isArray'](_0xb3fed8[_0x3e33db(0x147)]))throw CliErrors[_0x3e33db(0x11f)]('Invalid\x20login\x20user\x20info\x20response:\x20expected\x20object.');return _0xb3fed8[_0x3e33db(0x147)];}export async function listDatasets(_0x58985a,_0x4861f3){const _0x128c08=a74_0x42b3,_0x424565=await apiRequest('/client/dataset/list',{'method':_0x128c08(0x138),'body':{'appCode':_0x58985a,..._0x4861f3?.['code']&&{'code':_0x4861f3[_0x128c08(0x18a)]},..._0x4861f3?.[_0x128c08(0x165)]&&{'name':_0x4861f3['name']}}});return extractList(_0x424565[_0x128c08(0x147)]);}export async function getDatasetDetail(_0x3ea890){const _0x59a5d3=a74_0x42b3,_0x144c1c=await apiRequest(_0x59a5d3(0x11b)+encodeURIComponent(_0x3ea890));return _0x144c1c['data'];}export async function getDatasetSdkUsageDoc(_0x43490b,_0x499209){const _0xe6c07a=a74_0x42b3,_0x4d3aec=await toolboxRequest(_0xe6c07a(0x171),{'datasetCode':_0x43490b,'appCode':_0x499209});return typeof _0x4d3aec?.[_0xe6c07a(0x11e)]===_0xe6c07a(0x18d)?_0x4d3aec[_0xe6c07a(0x11e)]:'';}export async function uploadRuntimeFile(_0x5aa908,_0xe14d41){const _0x33b563=a74_0x42b3,_0x5c3acb=await readFile(_0xe14d41),_0x51db72=new FormData();_0x51db72[_0x33b563(0x113)](_0x33b563(0x16e),_0x5aa908),_0x51db72[_0x33b563(0x113)](_0x33b563(0x152),new Blob([new Uint8Array(_0x5c3acb)]),basename(_0xe14d41));const _0x286896=await apiFormRequest(_0x33b563(0x141),_0x51db72);return _0x286896[_0x33b563(0x147)];}export async function queryRuntimeFileUrl(_0x4eeabb,_0x2f3fe4={}){const _0x575c57=a74_0x42b3,_0xf7ac2=await apiRequest('/client/queryFileUrl',{'method':_0x575c57(0x138),'body':{'filePath':_0x4eeabb,'downloadFlag':_0x2f3fe4['download']??![]}});return _0xf7ac2[_0x575c57(0x147)];}export async function recognizeRuntimeOcr(_0x208132,_0x570e3d){const _0x40f537=a74_0x42b3,_0x269d52=await apiRequest(_0x40f537(0x10e),{'method':'POST','body':{'appCode':_0x208132,'url':_0x570e3d[_0x40f537(0x155)],'type':_0x570e3d[_0x40f537(0x17a)]}});return _0x269d52[_0x40f537(0x147)];}export async function getRuntimeAppConfigByKey(_0x3553e5,_0x1438e1){const _0x1dee2c=a74_0x42b3,_0x343df9=new URLSearchParams({'appCode':_0x3553e5,'key':_0x1438e1}),_0x12e218=await apiRequest(_0x1dee2c(0x143)+_0x343df9[_0x1dee2c(0x15c)]());if(!_0x12e218[_0x1dee2c(0x147)])throw CliErrors[_0x1dee2c(0x125)](_0x1dee2c(0x158)+_0x1438e1);return _0x12e218[_0x1dee2c(0x147)];}export async function listRuntimeArtifacts(_0xc87c94,_0x1aaeb8){const _0x49ab4c=a74_0x42b3,_0x4e00b0=new URLSearchParams({'appCode':_0xc87c94});if(_0x1aaeb8?.['artifactType'])_0x4e00b0['set'](_0x49ab4c(0x154),_0x1aaeb8['artifactType']);if(_0x1aaeb8?.[_0x49ab4c(0x145)])_0x4e00b0[_0x49ab4c(0x176)](_0x49ab4c(0x145),_0x1aaeb8[_0x49ab4c(0x145)]);if(_0x1aaeb8?.[_0x49ab4c(0x128)]!==undefined)_0x4e00b0['set'](_0x49ab4c(0x128),String(_0x1aaeb8['favorite']));const _0x28de26=await apiRequest(_0x49ab4c(0x15d)+_0x4e00b0[_0x49ab4c(0x15c)]());return Array['isArray'](_0x28de26[_0x49ab4c(0x147)])?_0x28de26[_0x49ab4c(0x147)]:[];}export async function getRuntimeArtifact(_0x1d8e22,_0x2a4eb5){const _0x5c229d=a74_0x42b3,_0x421c1d=await apiRequest(_0x5c229d(0x108)+_0x1d8e22+_0x5c229d(0x124)+encodeURIComponent(_0x2a4eb5));if(!_0x421c1d[_0x5c229d(0x147)])throw CliErrors[_0x5c229d(0x125)](_0x5c229d(0x15f)+_0x1d8e22);return _0x421c1d['data'];}export async function createRuntimeArtifact(_0x5cfa53,_0x2222e5){const _0x199cf0=a74_0x42b3,_0xa5e606=await apiRequest('/client/artifact/create',{'method':'POST','body':{'appCode':_0x5cfa53,..._0x2222e5}});return _0xa5e606[_0x199cf0(0x147)];}export async function updateRuntimeArtifact(_0x758376,_0x37a534,_0x47ca5c){const _0x20bfe3=a74_0x42b3,_0xcc38f2=await apiRequest(_0x20bfe3(0x108)+_0x758376+_0x20bfe3(0x16b),{'method':_0x20bfe3(0x138),'body':{'appCode':_0x37a534,..._0x47ca5c}});return _0xcc38f2[_0x20bfe3(0x147)];}export async function listPersonalBffs(_0x26382c){const _0x364cc1=a74_0x42b3,_0x2787dd=await apiRequest('/client/runtime-bff/personal/list?appCode='+encodeURIComponent(_0x26382c));return Array['isArray'](_0x2787dd[_0x364cc1(0x147)])?_0x2787dd[_0x364cc1(0x147)]:[];}export async function getPersonalBff(_0x592652,_0x243549){const _0x2b1ba9=a74_0x42b3,_0x366741=await apiRequest(_0x2b1ba9(0x10b)+_0x592652+'?appCode='+encodeURIComponent(_0x243549));if(!_0x366741[_0x2b1ba9(0x147)])throw CliErrors['validation'](_0x2b1ba9(0x18e)+_0x592652);return _0x366741[_0x2b1ba9(0x147)];}export async function createPersonalBff(_0x36db,_0x28cf19){const _0x44332a=a74_0x42b3,_0x337ecf=await apiRequest('/client/runtime-bff/personal/create',{'method':_0x44332a(0x138),'body':{'appCode':_0x36db,..._0x28cf19}});return _0x337ecf['data'];}export async function updatePersonalBff(_0x234f04,_0x38dcfa,_0xf754b8){const _0x2d3972=a74_0x42b3,_0x1ba317=await apiRequest(_0x2d3972(0x10b)+_0x234f04+_0x2d3972(0x16b),{'method':'POST','body':{'appCode':_0x38dcfa,..._0xf754b8}});return _0x1ba317[_0x2d3972(0x147)];}export async function executePersonalBff(_0x93d2e3,_0x3216e1,_0x18f30f){const _0xe1a6c1=a74_0x42b3,_0x54eac5=await apiRequest(_0xe1a6c1(0x10b)+_0x93d2e3+_0xe1a6c1(0x140)+encodeURIComponent(_0x3216e1),{'method':_0xe1a6c1(0x138),'body':_0x18f30f});return _0x54eac5['data'];}export async function listPersonalKnowledgeBaseItems(_0x4f0772){const _0x5426c8=a74_0x42b3,_0x5c3ee9=await apiRequest('/client/knowledge-base/personal/list?appCode='+encodeURIComponent(_0x4f0772));return Array['isArray'](_0x5c3ee9[_0x5426c8(0x147)])?_0x5c3ee9[_0x5426c8(0x147)]:[];}export async function getPersonalKnowledgeBaseItem(_0x45ddb0,_0x3b909b){const _0x5b42a0=a74_0x42b3,_0x5d3e52=await apiRequest(_0x5b42a0(0x13a)+_0x45ddb0+_0x5b42a0(0x124)+encodeURIComponent(_0x3b909b));if(!_0x5d3e52[_0x5b42a0(0x147)])throw CliErrors[_0x5b42a0(0x125)](_0x5b42a0(0x13f)+_0x45ddb0);return _0x5d3e52[_0x5b42a0(0x147)];}export async function createPersonalKnowledgeBaseItem(_0x35fc24,_0x4ce593){const _0xbf619=a74_0x42b3,_0x212dbf=await apiRequest(_0xbf619(0x181),{'method':_0xbf619(0x138),'body':{'appCode':_0x35fc24,..._0x4ce593}});return _0x212dbf[_0xbf619(0x147)];}export async function updatePersonalKnowledgeBaseItem(_0x2f9289,_0x54072e,_0x2714a6){const _0x46176b=a74_0x42b3,_0x1e9ff7=await apiRequest(_0x46176b(0x13a)+_0x2f9289+_0x46176b(0x16b),{'method':_0x46176b(0x138),'body':{'appCode':_0x54072e,..._0x2714a6}});return _0x1e9ff7[_0x46176b(0x147)];}export async function searchKnowledgeBase(_0x2151d2,_0x34880b){const _0x3826f2=a74_0x42b3,_0x7e5454=await apiRequest('/client/knowledge-base/search',{'method':_0x3826f2(0x138),'body':{'appCode':_0x2151d2,'query':_0x34880b[_0x3826f2(0x120)],..._0x34880b['topK']!==undefined?{'topK':_0x34880b[_0x3826f2(0x178)]}:{}}});return Array[_0x3826f2(0x11a)](_0x7e5454[_0x3826f2(0x147)])?_0x7e5454[_0x3826f2(0x147)]:[];}export async function getRuntimeSkillByCode(_0x653b95,_0x52a8cc){const _0x3bc05a=a74_0x42b3,_0x563ffb=await skillHubJsonRequest(_0x3bc05a(0x184)+encodeURIComponent(_0x653b95)+'/'+encodeURIComponent(_0x52a8cc),{'allowNotFound':!![]});return _0x563ffb?skillHubRuntimeDetailToRuntimeSkill(_0x563ffb):undefined;}export async function listRuntimeSkills(_0x366524){const _0x111139=a74_0x42b3,_0xfcf112=await skillHubJsonRequest(_0x111139(0x136)+encodeURIComponent(_0x366524['appCode'])+_0x111139(0x16d),{'query':{'page':0x0,'size':0xc8}});return normalizeSkillHubRuntimeListResponse(_0x366524['appCode'],_0xfcf112,_0x366524['scope']??_0x111139(0x114),_0x366524[_0x111139(0x18a)]);}export async function listPersonalRuntimeSkills(_0xee8507){const _0x316bc7=a74_0x42b3;return(await listRuntimeSkills({'appCode':_0xee8507,'scope':_0x316bc7(0x122)}))[_0x316bc7(0x122)];}export async function listCompanyRuntimeSkills(_0x4e5486){const _0x5b140a=a74_0x42b3;return(await listRuntimeSkills({'appCode':_0x4e5486,'scope':_0x5b140a(0x13e)}))[_0x5b140a(0x13e)];}export async function listVisibleRuntimeSkills(_0x4d2cde){const _0x40b25d=a74_0x42b3;return(await listRuntimeSkills({'appCode':_0x4d2cde,'scope':_0x40b25d(0x114)}))[_0x40b25d(0x11d)];}export async function createPersonalRuntimeSkill(_0x40a15d,_0x206d44){return publishRuntimeSkill(_0x40a15d,_0x206d44,{'visibility':'PRIVATE'});}export async function updatePersonalRuntimeSkill(_0x427a6a,_0x202c27,_0x299be8){const _0x53df03=a74_0x42b3;return publishRuntimeSkill(_0x202c27,{..._0x299be8,'skillCode':_0x299be8[_0x53df03(0x123)]??_0x427a6a},{'visibility':_0x53df03(0x183)});}export async function publishCompanyRuntimeSkill(_0x2d8452,_0x1a2216,_0x578294={}){const _0x371e26=a74_0x42b3;return publishRuntimeSkill(_0x2d8452,_0x1a2216,{'visibility':_0x371e26(0x12a),'confirmWarnings':_0x578294[_0x371e26(0x163)]});}export async function validateRuntimeSkillPublish(_0x2d1440,_0x9a7304,_0x15723e){const _0x44064f=a74_0x42b3,_0x31d395=buildRuntimeSkillPublishForm(_0x9a7304,_0x15723e['visibility']),_0x37a505=await skillHubJsonRequest('/api/cli/v1/skills/'+encodeURIComponent(_0x2d1440)+_0x44064f(0x16c),{'method':_0x44064f(0x138),'body':_0x31d395});return{'valid':_0x37a505[_0x44064f(0x17c)]===!![],'errors':Array['isArray'](_0x37a505[_0x44064f(0x186)])?_0x37a505[_0x44064f(0x186)]:[],'warnings':Array[_0x44064f(0x11a)](_0x37a505[_0x44064f(0x182)])?_0x37a505[_0x44064f(0x182)]:[],'resolvedSlug':_0x37a505[_0x44064f(0x13c)],'resolvedVersion':_0x37a505[_0x44064f(0x146)]};}export async function downloadRuntimeSkillPackage(_0x2ba213,_0x5d5f37,_0x26756d,_0x57e8c8){const _0x50f65c=a74_0x42b3;void _0x2ba213;const _0x1e7d6=_0x57e8c8?'/api/cli/v1/skills/'+encodeURIComponent(_0x26756d)+'/'+encodeURIComponent(_0x5d5f37)+_0x50f65c(0x160)+encodeURIComponent(_0x57e8c8)+_0x50f65c(0x109):_0x50f65c(0x18b)+encodeURIComponent(_0x26756d)+'/'+encodeURIComponent(_0x5d5f37)+_0x50f65c(0x109);return skillHubBinaryRequest(_0x1e7d6);}async function publishRuntimeSkill(_0x5c836d,_0x1b86cf,_0xe05074){const _0x2381a3=a74_0x42b3,_0x4d286f=buildRuntimeSkillPublishForm(_0x1b86cf,_0xe05074[_0x2381a3(0x148)]),_0x68f3aa=await skillHubJsonRequest(_0x2381a3(0x18b)+encodeURIComponent(_0x5c836d)+_0x2381a3(0x135),{'method':'POST','query':{'confirmWarnings':_0xe05074[_0x2381a3(0x163)]===!![]?!![]:undefined},'body':_0x4d286f});return{'appCode':_0x68f3aa['namespace']??_0x5c836d,'skillCode':_0x68f3aa[_0x2381a3(0x17f)]??_0x1b86cf[_0x2381a3(0x123)]??'','skillName':_0x1b86cf['skillName']??_0x68f3aa['slug']??_0x1b86cf[_0x2381a3(0x123)],'description':_0x1b86cf[_0x2381a3(0x142)],'scope':skillHubVisibilityToScope(_0x68f3aa['visibility']??_0xe05074['visibility'])??'personal','version':_0x68f3aa[_0x2381a3(0x16a)]??_0x1b86cf[_0x2381a3(0x16a)],'tags':_0x1b86cf[_0x2381a3(0x15e)],'content':_0x1b86cf[_0x2381a3(0x126)]};}function buildRuntimeSkillPublishForm(_0x5a8559,_0x161705){const _0x3583ea=a74_0x42b3,_0x480c98=new FormData();return _0x480c98[_0x3583ea(0x176)](_0x3583ea(0x152),runtimeSkillPackageFile(_0x5a8559)),_0x5a8559[_0x3583ea(0x187)]?.[_0x3583ea(0x102)]()&&_0x480c98['set'](_0x3583ea(0x14c),_0x5a8559[_0x3583ea(0x187)]['trim']()),_0x480c98['set'](_0x3583ea(0x148),_0x161705),_0x480c98;}function runtimeSkillPackageFile(_0x17777f){const _0x2f8806=a74_0x42b3;if(!_0x17777f[_0x2f8806(0x14e)])throw CliErrors['validation'](_0x2f8806(0x133));const _0x3f20f3=Buffer['from'](_0x17777f[_0x2f8806(0x14e)],_0x2f8806(0x17d)),_0x514c46=new Blob([_0x3f20f3],{'type':_0x2f8806(0x129)}),_0x528ea6=(_0x17777f[_0x2f8806(0x123)]||_0x2f8806(0x159))+_0x2f8806(0x15a);if(typeof File!==_0x2f8806(0x149))return new File([_0x514c46],_0x528ea6,{'type':'application/zip'});return _0x514c46;}function normalizeSkillHubRuntimeListResponse(_0x27ddf8,_0x69a91,_0x5c4fc5,_0x540445){const _0x39121e=a74_0x42b3,_0x4e2816=Array[_0x39121e(0x11a)](_0x69a91)?_0x69a91:Array['isArray'](_0x69a91?.[_0x39121e(0x14b)])?_0x69a91[_0x39121e(0x14b)]:[],_0x3a6836=_0x540445?.[_0x39121e(0x102)](),_0x513440=_0x4e2816[_0x39121e(0x106)](_0x4bafd7=>!_0x3a6836||_0x4bafd7['slug']===_0x3a6836)[_0x39121e(0x170)](skillHubRuntimeItemToRuntimeSkill)['filter'](_0x5ea3fa=>Boolean(_0x5ea3fa)),_0x2738ea=_0x513440[_0x39121e(0x106)](_0xc651f=>_0xc651f[_0x39121e(0x185)]===_0x39121e(0x122)),_0x2d38de=_0x513440[_0x39121e(0x106)](_0x4fdb65=>_0x4fdb65[_0x39121e(0x185)]===_0x39121e(0x13e));return{'appCode':_0x27ddf8,'personal':_0x5c4fc5===_0x39121e(0x13e)?[]:_0x2738ea,'company':_0x5c4fc5===_0x39121e(0x122)?[]:_0x2d38de,'effective':buildEffectiveRuntimeSkills(_0x2738ea,_0x2d38de,_0x5c4fc5)};}function skillHubRuntimeItemToRuntimeSkill(_0x1e24b5){const _0x1ac3cb=a74_0x42b3,_0x3c2965=_0x1e24b5[_0x1ac3cb(0x17f)]?.['trim'](),_0x16f8e3=skillHubVisibilityToScope(_0x1e24b5[_0x1ac3cb(0x148)]);if(!_0x3c2965||!_0x16f8e3)return undefined;return{'id':_0x1e24b5['id'],'appCode':_0x1e24b5[_0x1ac3cb(0x157)],'skillCode':_0x3c2965,'skillName':_0x1e24b5[_0x1ac3cb(0x14c)]??_0x3c2965,'description':_0x1e24b5['summary'],'scope':_0x16f8e3,'version':skillHubRuntimeItemVersion(_0x1e24b5),'status':_0x1e24b5[_0x1ac3cb(0x17b)]};}function skillHubRuntimeDetailToRuntimeSkill(_0x281400){const _0x489385=a74_0x42b3,_0x194392=_0x281400[_0x489385(0x17f)]?.[_0x489385(0x102)]();if(!_0x194392)return undefined;return{'id':_0x281400['id'],'appCode':_0x281400[_0x489385(0x157)],'skillCode':_0x194392,'skillName':_0x281400[_0x489385(0x14c)]??_0x194392,'description':_0x281400[_0x489385(0x13b)],'scope':skillHubVisibilityToScope(_0x281400[_0x489385(0x148)])??_0x281400[_0x489385(0x148)]?.[_0x489385(0x117)](),'version':skillHubRuntimeItemVersion(_0x281400),'status':_0x281400['status']};}function skillHubVisibilityToScope(_0x2ed619){const _0x1eb4fc=a74_0x42b3;if(_0x2ed619==='PRIVATE')return _0x1eb4fc(0x122);if(_0x2ed619===_0x1eb4fc(0x12a))return'company';return undefined;}function a74_0x182c(){const _0x306237=['Configure\x20accessKey\x20in\x20','filter','/client/sql/query','/client/artifact/','/download','5qODMRY','/client/runtime-bff/personal/','30853920jvuDDc','text','/client/ocr','test','errorMsg','tableData','98153cgHbhH','append','all','msg','abort','toLowerCase','searchParams','1010OTEXrz','isArray','/client/dataset/get-driven-data?code=','error','effective','markdown','apiError','query','number','personal','skillCode','?appCode=','validation','content','catch','favorite','application/zip','NAMESPACE_ONLY','entries','34PmVjnR','newConfigFileName','application/octet-stream','sqlCode','appName','Request\x20timeout:\x20','BFF\x20script\x20not\x20found:\x20id=','Missing\x20Skill\x20package\x20payload.','9023jLRxCg','/publish','/api/runtime/v1/namespaces/','from','POST','headlineVersion','/client/knowledge-base/personal/','summary','resolvedSlug','5139909kwJRKr','company','Knowledge-base\x20entry\x20not\x20found:\x20id=','/execute?appCode=','/client/uploadFile','description','/client/app-config/getByKey?','/client/user/loginUserInfo','source','resolvedVersion','data','visibility','undefined','authRequired','items','displayName','Toolbox\x20API\x20error','packageBase64','Check\x20your\x20credentials\x20and\x20try\x20again.','SkillHub\x20API\x20error:\x20','API\x20error:\x20','file','8214LsimCO','artifactType','url','/client/app/my-apps','namespace','App\x20config\x20not\x20found:\x20key=','skill','.zip','json','toString','/client/artifact/list?','tags','Artifact\x20not\x20found:\x20id=','/versions/','boolean','64264tmtFUN','confirmWarnings','/api/node-toolbox/','name','replace','GET','SQL\x20query\x20not\x20found:\x20','AbortError','version','/update','/publish/validate','/skills','appCode','Toolbox\x20error\x20code:\x20','map','api-doc-generator','Toolbox\x20returned\x20non-JSON\x20response\x20(HTTP\x20','signal','SkillHub\x20returned\x20non-JSON\x20response\x20(HTTP\x20','88978kbxkfF','set','application/json','topK','API\x20returned\x20non-JSON\x20response\x20(HTTP\x20','type','status','valid','base64','success','slug','2423420xcIYGl','/client/knowledge-base/personal/create','warnings','PRIVATE','/api/v1/skills/','scope','errors','skillName','errorCode','message','code','/api/cli/v1/skills/','object','string','Personal\x20BFF\x20not\x20found:\x20id=','1719tTbYrw','trim','invokeSource','values'];a74_0x182c=function(){return _0x306237;};return a74_0x182c();}function skillHubRuntimeItemVersion(_0x348c33){const _0x35f69a=a74_0x42b3;return _0x348c33['publishedVersion']?.[_0x35f69a(0x16a)]??_0x348c33[_0x35f69a(0x139)]?.[_0x35f69a(0x16a)]??_0x348c33['ownerPreviewVersion']?.['version'];}function a74_0x42b3(_0x23a27e,_0x470f98){_0x23a27e=_0x23a27e-0x102;const _0x182cf5=a74_0x182c();let _0x42b3b7=_0x182cf5[_0x23a27e];return _0x42b3b7;}function buildEffectiveRuntimeSkills(_0x3a665f,_0x199b02,_0x3354a2){const _0x8ad93d=a74_0x42b3;if(_0x3354a2===_0x8ad93d(0x122))return _0x3a665f;if(_0x3354a2===_0x8ad93d(0x13e))return _0x199b02;const _0x3da68c=new Map();for(const _0x2bd367 of _0x199b02){_0x3da68c[_0x8ad93d(0x176)](_0x2bd367[_0x8ad93d(0x123)],_0x2bd367);}for(const _0x306192 of _0x3a665f){_0x3da68c[_0x8ad93d(0x176)](_0x306192[_0x8ad93d(0x123)],_0x306192);}return Array[_0x8ad93d(0x137)](_0x3da68c[_0x8ad93d(0x104)]());}function normalizeRuntimeSkillListResponse(_0x591672,_0x5401a5){const _0x315580=a74_0x42b3;if(Array['isArray'](_0x5401a5)){const _0x32bf5e=_0x5401a5[_0x315580(0x106)](_0xa2ecd3=>_0xa2ecd3['scope']===_0x315580(0x122)),_0x1f5267=_0x5401a5['filter'](_0x4baa7d=>_0x4baa7d[_0x315580(0x185)]===_0x315580(0x13e));return{'appCode':_0x591672,'personal':_0x32bf5e,'company':_0x1f5267,'effective':[..._0x1f5267,..._0x32bf5e]};}return{'appCode':_0x5401a5?.['appCode']??_0x591672,'personal':Array['isArray'](_0x5401a5?.[_0x315580(0x122)])?_0x5401a5[_0x315580(0x122)]:[],'company':Array['isArray'](_0x5401a5?.[_0x315580(0x13e)])?_0x5401a5['company']:[],'effective':Array[_0x315580(0x11a)](_0x5401a5?.[_0x315580(0x11d)])?_0x5401a5[_0x315580(0x11d)]:[]};}
@@ -1 +1 @@
1
- (function(_0x24219e,_0x384d23){const _0x4b9184=a75_0xe124,_0x386a21=_0x24219e();while(!![]){try{const _0x218b2b=parseInt(_0x4b9184(0x1d1))/0x1+-parseInt(_0x4b9184(0x1d3))/0x2*(parseInt(_0x4b9184(0x1de))/0x3)+-parseInt(_0x4b9184(0x1dd))/0x4+-parseInt(_0x4b9184(0x1da))/0x5*(-parseInt(_0x4b9184(0x1ce))/0x6)+-parseInt(_0x4b9184(0x1d9))/0x7+-parseInt(_0x4b9184(0x1d5))/0x8*(parseInt(_0x4b9184(0x1d8))/0x9)+parseInt(_0x4b9184(0x1d0))/0xa*(parseInt(_0x4b9184(0x1d7))/0xb);if(_0x218b2b===_0x384d23)break;else _0x386a21['push'](_0x386a21['shift']());}catch(_0x4591f3){_0x386a21['push'](_0x386a21['shift']());}}}(a75_0x3730,0x1c575));import{listDatasets}from'../core/api-client.js';const cache=new Map();export async function listDatabases(_0x21248f){const _0x161b6b=a75_0xe124;if(cache[_0x161b6b(0x1db)](_0x21248f))return cache[_0x161b6b(0x1dc)](_0x21248f);const _0x205df8=await listDatasets(_0x21248f),_0x160e63=new Map();for(const _0x36c831 of _0x205df8){const _0xd07beb=_0x36c831['dbtableConfig'];_0xd07beb?.[_0x161b6b(0x1d4)]!=null&&_0x160e63[_0x161b6b(0x1d2)](_0xd07beb[_0x161b6b(0x1d4)],_0xd07beb['dbName']??'db-'+_0xd07beb['dbId']);}const _0xd1692a=[..._0x160e63['entries']()]['map'](([_0x2f3f99,_0x149933])=>({'dbId':_0x2f3f99,'dbName':_0x149933}));return cache[_0x161b6b(0x1d2)](_0x21248f,_0xd1692a),_0xd1692a;}function a75_0x3730(){const _0x57347e=['find','11GLuERP','1854cqjpJG','288932MjBOBg','10DFfPKX','has','get','509676jtQjTg','1701UPbspE','442302PCyAsb','dbName','3081110cONquk','98012KOdkDW','set','406pyEWyN','dbId','5968GMAJWj'];a75_0x3730=function(){return _0x57347e;};return a75_0x3730();}function a75_0xe124(_0x228201,_0x1caaad){_0x228201=_0x228201-0x1ce;const _0x37303f=a75_0x3730();let _0xe12483=_0x37303f[_0x228201];return _0xe12483;}export async function getDbName(_0x4aa61b,_0x104ba0){const _0x19490b=a75_0xe124;try{const _0x515c7c=await listDatabases(_0x4aa61b);return _0x515c7c[_0x19490b(0x1d6)](_0x7cc668=>_0x7cc668['dbId']===_0x104ba0)?.[_0x19490b(0x1cf)];}catch{return undefined;}}
1
+ (function(_0x5d5d28,_0x2e536b){const _0x2946c2=a75_0x1920,_0x21fd9b=_0x5d5d28();while(!![]){try{const _0x4eb531=-parseInt(_0x2946c2(0x11d))/0x1*(-parseInt(_0x2946c2(0x11f))/0x2)+parseInt(_0x2946c2(0x11a))/0x3*(-parseInt(_0x2946c2(0x115))/0x4)+parseInt(_0x2946c2(0x126))/0x5*(-parseInt(_0x2946c2(0x120))/0x6)+parseInt(_0x2946c2(0x11b))/0x7+parseInt(_0x2946c2(0x11e))/0x8*(-parseInt(_0x2946c2(0x124))/0x9)+-parseInt(_0x2946c2(0x125))/0xa*(parseInt(_0x2946c2(0x11c))/0xb)+parseInt(_0x2946c2(0x123))/0xc;if(_0x4eb531===_0x2e536b)break;else _0x21fd9b['push'](_0x21fd9b['shift']());}catch(_0x3b96cd){_0x21fd9b['push'](_0x21fd9b['shift']());}}}(a75_0x340e,0x93e66));function a75_0x340e(){const _0x75fc0=['20tHCdSo','4158205YlqSqk','dbId','map','181564aEcQJS','set','db-','dbtableConfig','dbName','57NGVmFj','4018959yzVGNo','5067183DHJPWX','3287xpeSbu','6527624kPXSzh','2HPXOOV','6TXQysq','has','get','41516436YSiquW','9XquUCL'];a75_0x340e=function(){return _0x75fc0;};return a75_0x340e();}function a75_0x1920(_0x5100c7,_0x78df94){_0x5100c7=_0x5100c7-0x115;const _0x340eab=a75_0x340e();let _0x19202=_0x340eab[_0x5100c7];return _0x19202;}import{listDatasets}from'../core/api-client.js';const cache=new Map();export async function listDatabases(_0x268678){const _0x23d4ea=a75_0x1920;if(cache[_0x23d4ea(0x121)](_0x268678))return cache[_0x23d4ea(0x122)](_0x268678);const _0x105493=await listDatasets(_0x268678),_0x15cbc5=new Map();for(const _0x312dfd of _0x105493){const _0x3e8bdc=_0x312dfd[_0x23d4ea(0x118)];_0x3e8bdc?.[_0x23d4ea(0x127)]!=null&&_0x15cbc5[_0x23d4ea(0x116)](_0x3e8bdc[_0x23d4ea(0x127)],_0x3e8bdc[_0x23d4ea(0x119)]??_0x23d4ea(0x117)+_0x3e8bdc[_0x23d4ea(0x127)]);}const _0x26f861=[..._0x15cbc5['entries']()][_0x23d4ea(0x128)](([_0x1484ef,_0x51418e])=>({'dbId':_0x1484ef,'dbName':_0x51418e}));return cache['set'](_0x268678,_0x26f861),_0x26f861;}export async function getDbName(_0xda3cd0,_0x32b1ed){const _0x496b7c=a75_0x1920;try{const _0x423889=await listDatabases(_0xda3cd0);return _0x423889['find'](_0x44bc1d=>_0x44bc1d[_0x496b7c(0x127)]===_0x32b1ed)?.[_0x496b7c(0x119)];}catch{return undefined;}}
@@ -1 +1 @@
1
- (function(_0x18a09a,_0x592479){const _0x434c4b=a76_0x3646,_0x383473=_0x18a09a();while(!![]){try{const _0x2b046f=-parseInt(_0x434c4b(0x138))/0x1+parseInt(_0x434c4b(0x139))/0x2+-parseInt(_0x434c4b(0x14c))/0x3+parseInt(_0x434c4b(0x14d))/0x4*(parseInt(_0x434c4b(0x13c))/0x5)+-parseInt(_0x434c4b(0x15a))/0x6+parseInt(_0x434c4b(0x13e))/0x7*(-parseInt(_0x434c4b(0x14a))/0x8)+parseInt(_0x434c4b(0x141))/0x9*(parseInt(_0x434c4b(0x152))/0xa);if(_0x2b046f===_0x592479)break;else _0x383473['push'](_0x383473['shift']());}catch(_0x175a4c){_0x383473['push'](_0x383473['shift']());}}}(a76_0x414b,0x83642));import{createClient}from'@lovrabet/sdk';import{PRODUCT_CONFIG}from'../constant/product.js';import{CliErrors}from'../errors.js';import{parseBatchCreateItemsFromParams}from'../utils/params.js';function a76_0x414b(){const _0x4f51ea=['invokeSource','6104ltmTAk','delete\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123}\x27','batchCreate','324SwHwtM','models','map','object','validation','appCode','aggregate','\x22.\x20','data\x20aggregate\x20--params.aggregate[','40XOEztG','delete','714453WmHJmf','892sNeAvl','function','env','trim','getOne','77800tXThXu','update\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123,\x22name\x22:\x22new\x22}\x27','Available:\x20filter,\x20getOne,\x20create,\x20batchCreate,\x20update,\x20delete,\x20aggregate.','field','update','accessKey','authMode','isArray','2849496VAJfSv','106808CYparL','1178560CKjcxS','execute','sql','11055GTtGlh'];a76_0x414b=function(){return _0x4f51ea;};return a76_0x414b();}let _client;export function initSdkClient(_0x161243){const _0x2c1d67=a76_0x3646;_client=createClient({'appCode':_0x161243[_0x2c1d67(0x146)],'env':_0x161243[_0x2c1d67(0x14f)],'authMode':_0x161243[_0x2c1d67(0x158)],..._0x161243[_0x2c1d67(0x157)]?{'accessKey':_0x161243[_0x2c1d67(0x157)]}:{},'options':{'timeout':0x7530,'headers':{'X-Invoke-Source':PRODUCT_CONFIG[_0x2c1d67(0x13d)]}}});}function ensureClient(){if(!_client)throw new Error('SDK\x20client\x20not\x20initialized.\x20Call\x20initSdkClient()\x20first.');return _client;}function normalizeAggregateParams(_0x1701ad){const _0x32f9de=a76_0x3646,_0x4c4103=_0x1701ad[_0x32f9de(0x147)];if(_0x4c4103===undefined)return _0x1701ad;if(!Array[_0x32f9de(0x159)](_0x4c4103))throw CliErrors[_0x32f9de(0x145)]('data\x20aggregate\x20--params.aggregate\x20must\x20be\x20an\x20array.');return{..._0x1701ad,'aggregate':_0x4c4103[_0x32f9de(0x143)]((_0x3d41d6,_0x5066eb)=>{const _0x965c80=_0x32f9de;if(!_0x3d41d6||typeof _0x3d41d6!==_0x965c80(0x144)||Array[_0x965c80(0x159)](_0x3d41d6))throw CliErrors[_0x965c80(0x145)]('data\x20aggregate\x20--params.aggregate['+_0x5066eb+']\x20must\x20be\x20an\x20object.');const _0x330214=_0x3d41d6['column']??_0x3d41d6[_0x965c80(0x155)];if(typeof _0x330214!=='string'||_0x330214[_0x965c80(0x150)]()==='')throw CliErrors['validation'](_0x965c80(0x149)+_0x5066eb+']\x20requires\x20\x22column\x22;\x20\x22field\x22\x20is\x20accepted\x20only\x20as\x20a\x20deprecated\x20alias.');const _0x503934={..._0x3d41d6,'column':_0x330214};return delete _0x503934[_0x965c80(0x155)],_0x503934;})};}function a76_0x3646(_0x12fa15,_0x409da7){_0x12fa15=_0x12fa15-0x138;const _0x414b05=a76_0x414b();let _0x364613=_0x414b05[_0x12fa15];return _0x364613;}export async function executeData(_0x262e6a,_0x779acf,_0x5f0cb9){const _0x4a3fa2=a76_0x3646,_0x111c8a=ensureClient(),_0x52b28a='dataset_'+_0x262e6a,_0x3c9856=_0x111c8a[_0x4a3fa2(0x142)][_0x52b28a];if(!_0x3c9856||typeof _0x3c9856[_0x779acf]!==_0x4a3fa2(0x14e))throw new Error('SDK\x20model\x20does\x20not\x20support\x20operation\x20\x22'+_0x779acf+_0x4a3fa2(0x148)+_0x4a3fa2(0x154));if(_0x779acf===_0x4a3fa2(0x140))return _0x3c9856[_0x4a3fa2(0x140)](parseBatchCreateItemsFromParams(_0x5f0cb9));const _0x505369=_0x5f0cb9!==undefined&&_0x5f0cb9!==null&&!Array[_0x4a3fa2(0x159)](_0x5f0cb9)?_0x5f0cb9:{};switch(_0x779acf){case _0x4a3fa2(0x151):{const _0x2302e1=_0x505369['id'];if(_0x2302e1===undefined||_0x2302e1===null)throw new Error('getOne\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123}\x27');return _0x3c9856['getOne'](_0x2302e1);}case _0x4a3fa2(0x156):{const {id:_0x2fd062,..._0x1e0baa}=_0x505369;if(_0x2fd062===undefined||_0x2fd062===null)throw new Error(_0x4a3fa2(0x153));return _0x3c9856[_0x4a3fa2(0x156)](_0x2fd062,_0x1e0baa);}case'delete':{const _0x270c21=_0x505369['id'];if(_0x270c21===undefined||_0x270c21===null)throw new Error(_0x4a3fa2(0x13f));return _0x3c9856[_0x4a3fa2(0x14b)](_0x270c21);}case _0x4a3fa2(0x147):return _0x3c9856[_0x4a3fa2(0x147)](normalizeAggregateParams(_0x505369));default:return _0x3c9856[_0x779acf](_0x505369);}}export async function executeSdkSql(_0x2e4825,_0x1b819){const _0x2e3a24=a76_0x3646,_0x4d82b2=ensureClient();return _0x4d82b2[_0x2e3a24(0x13b)][_0x2e3a24(0x13a)]({'sqlCode':_0x2e4825,'params':_0x1b819});}export async function executeSdkBff(_0x32493b,_0x269d1b){const _0x1dbfa5=a76_0x3646,_0x4e19e6=ensureClient();return _0x4e19e6['bff'][_0x1dbfa5(0x13a)]({'scriptName':_0x32493b,'params':_0x269d1b});}
1
+ (function(_0x270f9c,_0xa35122){const _0x4ff8b1=a76_0x2c38,_0x4b2c7f=_0x270f9c();while(!![]){try{const _0x3d17bf=-parseInt(_0x4ff8b1(0x159))/0x1*(-parseInt(_0x4ff8b1(0x17d))/0x2)+-parseInt(_0x4ff8b1(0x166))/0x3*(-parseInt(_0x4ff8b1(0x15c))/0x4)+-parseInt(_0x4ff8b1(0x165))/0x5+parseInt(_0x4ff8b1(0x161))/0x6+parseInt(_0x4ff8b1(0x172))/0x7*(parseInt(_0x4ff8b1(0x16c))/0x8)+parseInt(_0x4ff8b1(0x178))/0x9+-parseInt(_0x4ff8b1(0x162))/0xa*(parseInt(_0x4ff8b1(0x168))/0xb);if(_0x3d17bf===_0xa35122)break;else _0x4b2c7f['push'](_0x4b2c7f['shift']());}catch(_0x4cd24f){_0x4b2c7f['push'](_0x4b2c7f['shift']());}}}(a76_0x4ee1,0xc535d));import{createClient}from'@lovrabet/sdk';import{PRODUCT_CONFIG}from'../constant/product.js';import{CliErrors}from'../errors.js';import{parseBatchCreateItemsFromParams}from'../utils/params.js';function a76_0x2c38(_0x226d83,_0x44d271){_0x226d83=_0x226d83-0x159;const _0x4ee179=a76_0x4ee1();let _0x2c3871=_0x4ee179[_0x226d83];return _0x2c3871;}let _client;export function initSdkClient(_0x3a7890){const _0x305fd7=a76_0x2c38;_client=createClient({'appCode':_0x3a7890[_0x305fd7(0x173)],'env':_0x3a7890['env'],'authMode':_0x3a7890['authMode'],..._0x3a7890[_0x305fd7(0x15d)]?{'accessKey':_0x3a7890[_0x305fd7(0x15d)]}:{},'options':{'timeout':0x7530,'headers':{'X-Invoke-Source':PRODUCT_CONFIG[_0x305fd7(0x15e)]}}});}function ensureClient(){if(!_client)throw new Error('SDK\x20client\x20not\x20initialized.\x20Call\x20initSdkClient()\x20first.');return _client;}function normalizeAggregateParams(_0x3e76e8){const _0x79d781=_0x3e76e8['aggregate'];if(_0x79d781===undefined)return _0x3e76e8;if(!Array['isArray'](_0x79d781))throw CliErrors['validation']('data\x20aggregate\x20--params.aggregate\x20must\x20be\x20an\x20array.');return{..._0x3e76e8,'aggregate':_0x79d781['map']((_0x25d735,_0x1ac501)=>{const _0x32980a=a76_0x2c38;if(!_0x25d735||typeof _0x25d735!==_0x32980a(0x174)||Array[_0x32980a(0x16d)](_0x25d735))throw CliErrors[_0x32980a(0x17e)](_0x32980a(0x15b)+_0x1ac501+_0x32980a(0x17b));const _0x23a9b1=_0x25d735[_0x32980a(0x179)]??_0x25d735[_0x32980a(0x171)];if(typeof _0x23a9b1!==_0x32980a(0x169)||_0x23a9b1[_0x32980a(0x16a)]()==='')throw CliErrors[_0x32980a(0x17e)](_0x32980a(0x15b)+_0x1ac501+_0x32980a(0x15a));const _0x1d2be9={..._0x25d735,'column':_0x23a9b1};return delete _0x1d2be9['field'],_0x1d2be9;})};}export async function executeData(_0x46ea1e,_0x77be6,_0x5d8931){const _0x184c81=a76_0x2c38,_0x1d7ac2=ensureClient(),_0x27de41=_0x184c81(0x163)+_0x46ea1e,_0x544a03=_0x1d7ac2[_0x184c81(0x16b)][_0x27de41];if(!_0x544a03||typeof _0x544a03[_0x77be6]!=='function')throw new Error('SDK\x20model\x20does\x20not\x20support\x20operation\x20\x22'+_0x77be6+_0x184c81(0x164)+_0x184c81(0x17a));if(_0x77be6===_0x184c81(0x170))return _0x544a03['batchCreate'](parseBatchCreateItemsFromParams(_0x5d8931));const _0x180a57=_0x5d8931!==undefined&&_0x5d8931!==null&&!Array[_0x184c81(0x16d)](_0x5d8931)?_0x5d8931:{};switch(_0x77be6){case _0x184c81(0x16e):{const _0x235025=_0x180a57['id'];if(_0x235025===undefined||_0x235025===null)throw new Error(_0x184c81(0x15f));return _0x544a03['getOne'](_0x235025);}case _0x184c81(0x176):{const {id:_0x2e0d98,..._0x141176}=_0x180a57;if(_0x2e0d98===undefined||_0x2e0d98===null)throw new Error(_0x184c81(0x17c));return _0x544a03['update'](_0x2e0d98,_0x141176);}case _0x184c81(0x16f):{const _0x545933=_0x180a57['id'];if(_0x545933===undefined||_0x545933===null)throw new Error('delete\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123}\x27');return _0x544a03[_0x184c81(0x16f)](_0x545933);}case'aggregate':return _0x544a03[_0x184c81(0x167)](normalizeAggregateParams(_0x180a57));default:return _0x544a03[_0x77be6](_0x180a57);}}export async function executeSdkSql(_0x67fdf5,_0x15fa58){const _0x3a4211=a76_0x2c38,_0x2f5a29=ensureClient();return _0x2f5a29[_0x3a4211(0x177)][_0x3a4211(0x160)]({'sqlCode':_0x67fdf5,'params':_0x15fa58});}export async function executeSdkBff(_0x57ce74,_0x1c5196){const _0x5b83ef=a76_0x2c38,_0x505322=ensureClient();return _0x505322[_0x5b83ef(0x175)]['execute']({'scriptName':_0x57ce74,'params':_0x1c5196});}function a76_0x4ee1(){const _0x3c472c=['dataset_','\x22.\x20','5853530oKhUZG','3GWPrgb','aggregate','14498pGluQh','string','trim','models','864yRVuED','isArray','getOne','delete','batchCreate','field','61866vkmAWX','appCode','object','bff','update','sql','8164575HGyCQV','column','Available:\x20filter,\x20getOne,\x20create,\x20batchCreate,\x20update,\x20delete,\x20aggregate.',']\x20must\x20be\x20an\x20object.','update\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123,\x22name\x22:\x22new\x22}\x27','1739158QWTPNs','validation','1wAZLYK',']\x20requires\x20\x22column\x22;\x20\x22field\x22\x20is\x20accepted\x20only\x20as\x20a\x20deprecated\x20alias.','data\x20aggregate\x20--params.aggregate[','1371712czyceC','accessKey','invokeSource','getOne\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123}\x27','execute','7011702bTBKzF','17180BmbSwl'];a76_0x4ee1=function(){return _0x3c472c;};return a76_0x4ee1();}
package/lib/errors.js CHANGED
@@ -1 +1 @@
1
- const a77_0x27ad15=a77_0x2a9d;(function(_0x7ac84c,_0x4db834){const _0x34b2cf=a77_0x2a9d,_0x2be61d=_0x7ac84c();while(!![]){try{const _0x535675=-parseInt(_0x34b2cf(0x1d6))/0x1+-parseInt(_0x34b2cf(0x1cc))/0x2*(-parseInt(_0x34b2cf(0x1d9))/0x3)+-parseInt(_0x34b2cf(0x1d2))/0x4+-parseInt(_0x34b2cf(0x1d4))/0x5*(-parseInt(_0x34b2cf(0x1ca))/0x6)+parseInt(_0x34b2cf(0x1d3))/0x7*(-parseInt(_0x34b2cf(0x1da))/0x8)+parseInt(_0x34b2cf(0x1ce))/0x9*(-parseInt(_0x34b2cf(0x1cd))/0xa)+parseInt(_0x34b2cf(0x1d1))/0xb;if(_0x535675===_0x4db834)break;else _0x2be61d['push'](_0x2be61d['shift']());}catch(_0x21565a){_0x2be61d['push'](_0x2be61d['shift']());}}}(a77_0x505b,0xb6170));import{CliError,createCliErrors}from'@lovrabet/cli-framework';function a77_0x2a9d(_0xb6cdc8,_0x4a318e){_0xb6cdc8=_0xb6cdc8-0x1ca;const _0x505b55=a77_0x505b();let _0x2a9de3=_0x505b55[_0xb6cdc8];return _0x2a9de3;}import{CLI_BIN_NAME}from'./constant/cli.js';import{PRODUCT_CONFIG}from'./constant/product.js';function a77_0x505b(){const _0x254d1e=['683977tuDrfZ','157905HVhyeo','newConfigFileName','507772eLWJBQ','\x20auth\x20login`.','\x20or\x20run\x20`','3VEIUfp','104kuyinR','210QwqzpH','Set\x20appcode\x20via\x20--appcode\x20or\x20','2449446VVOqzS','18770lbQMEl','4959PwshmW','\x20file.','Configure\x20accessKey\x20in\x20','21102906LxKlvK','2761688TarDsL'];a77_0x505b=function(){return _0x254d1e;};return a77_0x505b();}export{CliError};export const CliErrors=createCliErrors({'cliBinName':CLI_BIN_NAME,'authRequiredHint':a77_0x27ad15(0x1d0)+PRODUCT_CONFIG[a77_0x27ad15(0x1d5)]+a77_0x27ad15(0x1d8)+CLI_BIN_NAME+a77_0x27ad15(0x1d7),'configMissingHint':a77_0x27ad15(0x1cb)+PRODUCT_CONFIG['newConfigFileName']+'.','notInProjectHint':'Run\x20this\x20command\x20inside\x20a\x20directory\x20with\x20a\x20'+PRODUCT_CONFIG[a77_0x27ad15(0x1d5)]+a77_0x27ad15(0x1cf)});
1
+ const a77_0x4a115d=a77_0xcee2;(function(_0x2b1696,_0x1fa4f9){const _0x5d80ed=a77_0xcee2,_0x5ea861=_0x2b1696();while(!![]){try{const _0x24c9ba=parseInt(_0x5d80ed(0x1b4))/0x1+-parseInt(_0x5d80ed(0x1b6))/0x2*(parseInt(_0x5d80ed(0x1b7))/0x3)+parseInt(_0x5d80ed(0x1bd))/0x4+parseInt(_0x5d80ed(0x1b8))/0x5*(-parseInt(_0x5d80ed(0x1c1))/0x6)+-parseInt(_0x5d80ed(0x1bb))/0x7+-parseInt(_0x5d80ed(0x1be))/0x8+parseInt(_0x5d80ed(0x1bc))/0x9;if(_0x24c9ba===_0x1fa4f9)break;else _0x5ea861['push'](_0x5ea861['shift']());}catch(_0x51210c){_0x5ea861['push'](_0x5ea861['shift']());}}}(a77_0x2fd1,0x83867));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 a77_0x2fd1(){const _0x5c23a5=['110031gOqoLW','1740tniRow','\x20file.','\x20or\x20run\x20`','2188410fsWnlw','17296029EjIkip','647288CmBADh','7598784JvSrna','\x20auth\x20login`.','Configure\x20accessKey\x20in\x20','1758xqETZB','2951BQtVOt','newConfigFileName','10RwBsXs'];a77_0x2fd1=function(){return _0x5c23a5;};return a77_0x2fd1();}function a77_0xcee2(_0x8f8dd4,_0x3d0e47){_0x8f8dd4=_0x8f8dd4-0x1b4;const _0x2fd1cd=a77_0x2fd1();let _0xcee293=_0x2fd1cd[_0x8f8dd4];return _0xcee293;}export const CliErrors=createCliErrors({'cliBinName':CLI_BIN_NAME,'authRequiredHint':a77_0x4a115d(0x1c0)+PRODUCT_CONFIG[a77_0x4a115d(0x1b5)]+a77_0x4a115d(0x1ba)+CLI_BIN_NAME+a77_0x4a115d(0x1bf),'configMissingHint':'Set\x20appcode\x20via\x20--appcode\x20or\x20'+PRODUCT_CONFIG[a77_0x4a115d(0x1b5)]+'.','notInProjectHint':'Run\x20this\x20command\x20inside\x20a\x20directory\x20with\x20a\x20'+PRODUCT_CONFIG[a77_0x4a115d(0x1b5)]+a77_0x4a115d(0x1b9)});
@@ -1 +1 @@
1
- function a78_0x4865(_0x157f06,_0x4ce887){_0x157f06=_0x157f06-0x1b7;var _0x102aef=a78_0x102a();var _0x4865a5=_0x102aef[_0x157f06];return _0x4865a5;}(function(_0x1fcb70,_0x564587){var _0xac57f9=a78_0x4865,_0x4ec1cc=_0x1fcb70();while(!![]){try{var _0x15627e=parseInt(_0xac57f9(0x1bc))/0x1*(parseInt(_0xac57f9(0x1c0))/0x2)+-parseInt(_0xac57f9(0x1be))/0x3+parseInt(_0xac57f9(0x1b8))/0x4+-parseInt(_0xac57f9(0x1bd))/0x5+parseInt(_0xac57f9(0x1bf))/0x6*(parseInt(_0xac57f9(0x1bb))/0x7)+-parseInt(_0xac57f9(0x1ba))/0x8*(-parseInt(_0xac57f9(0x1b9))/0x9)+-parseInt(_0xac57f9(0x1b7))/0xa;if(_0x15627e===_0x564587)break;else _0x4ec1cc['push'](_0x4ec1cc['shift']());}catch(_0x26940b){_0x4ec1cc['push'](_0x4ec1cc['shift']());}}}(a78_0x102a,0x1b56d));function a78_0x102a(){var _0x5daeab=['2528PEEABN','84049wvGIKF','58dSgAfM','778505mKCyQv','520143tgGxwz','96AzFUCV','7274ClgXXw','2711420VTaGKs','642508CjZTzy','4230NKIVFO'];a78_0x102a=function(){return _0x5daeab;};return a78_0x102a();}import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';import{buildAllFlags as a78_0x2e9d39}from'@lovrabet/cli-framework';export function buildAllFlags(_0x39838d){return a78_0x2e9d39(_0x39838d,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});}
1
+ function a78_0x16c9(_0x48861a,_0x508807){_0x48861a=_0x48861a-0xee;var _0x2a614a=a78_0x2a61();var _0x16c9e2=_0x2a614a[_0x48861a];return _0x16c9e2;}(function(_0x262d10,_0x21bcb4){var _0x3965dc=a78_0x16c9,_0x30c4b2=_0x262d10();while(!![]){try{var _0x2e3630=-parseInt(_0x3965dc(0xf8))/0x1*(parseInt(_0x3965dc(0xf0))/0x2)+-parseInt(_0x3965dc(0xf9))/0x3*(parseInt(_0x3965dc(0xf4))/0x4)+parseInt(_0x3965dc(0xef))/0x5*(-parseInt(_0x3965dc(0xf5))/0x6)+-parseInt(_0x3965dc(0xf1))/0x7*(-parseInt(_0x3965dc(0xf6))/0x8)+-parseInt(_0x3965dc(0xf7))/0x9+parseInt(_0x3965dc(0xf3))/0xa*(-parseInt(_0x3965dc(0xf2))/0xb)+parseInt(_0x3965dc(0xee))/0xc;if(_0x2e3630===_0x21bcb4)break;else _0x30c4b2['push'](_0x30c4b2['shift']());}catch(_0x5215b7){_0x30c4b2['push'](_0x30c4b2['shift']());}}}(a78_0x2a61,0x4ca06));import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';function a78_0x2a61(){var _0x52d2ae=['355nTnpsE','2YGiiYr','161fBHoZf','44zkTBRO','1276690EdyLDF','264ssaSLF','8604zVDZtr','200296YECvDd','1156536rIoguP','572687EbIXcH','15843vKkZhk','16802856taNNkC'];a78_0x2a61=function(){return _0x52d2ae;};return a78_0x2a61();}import{buildAllFlags as a78_0x1fcbe6}from'@lovrabet/cli-framework';export function buildAllFlags(_0x4a403b){return a78_0x1fcbe6(_0x4a403b,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});}
@@ -1 +1 @@
1
- (function(_0x3cf084,_0x1209ba){const _0x5597a9=a79_0x4318,_0x46c586=_0x3cf084();while(!![]){try{const _0x2d933a=parseInt(_0x5597a9(0x168))/0x1+-parseInt(_0x5597a9(0x166))/0x2*(parseInt(_0x5597a9(0x163))/0x3)+parseInt(_0x5597a9(0x165))/0x4+parseInt(_0x5597a9(0x15e))/0x5+parseInt(_0x5597a9(0x160))/0x6+parseInt(_0x5597a9(0x167))/0x7+parseInt(_0x5597a9(0x164))/0x8*(-parseInt(_0x5597a9(0x15f))/0x9);if(_0x2d933a===_0x1209ba)break;else _0x46c586['push'](_0x46c586['shift']());}catch(_0x1fb678){_0x46c586['push'](_0x46c586['shift']());}}}(a79_0x339c,0xd722a));function a79_0x4318(_0x955969,_0x4e73af){_0x955969=_0x955969-0x15e;const _0x339c3b=a79_0x339c();let _0x431821=_0x339c3b[_0x955969];return _0x431821;}function a79_0x339c(){const _0x9d1aee=['27OeZFrx','51328YHQitK','4759368mRKqMF','238006DixAfF','455385fKnpMc','1628238bpfreL','7941350cnbqaa','3771ADYrmX','1014720XqQSfM','body','description'];a79_0x339c=function(){return _0x9d1aee;};return a79_0x339c();}export function dryRun(_0x45c02f,_0x2af362){const _0x55ad54={'method':_0x45c02f,'url':_0x2af362},_0x53b447={'body'(_0xb60b75){const _0x52fb06=a79_0x4318;return _0x55ad54[_0x52fb06(0x161)]=_0xb60b75,_0x53b447;},'description'(_0x2448f3){const _0x24e557=a79_0x4318;return _0x55ad54[_0x24e557(0x162)]=_0x2448f3,_0x53b447;},'build'(){return{..._0x55ad54};}};return _0x53b447;}
1
+ function a79_0x8478(_0x5e79cd,_0x40f0fa){_0x5e79cd=_0x5e79cd-0x84;const _0x15d226=a79_0x15d2();let _0x84781=_0x15d226[_0x5e79cd];return _0x84781;}(function(_0x5e0d16,_0x4c0b32){const _0x3d4069=a79_0x8478,_0x21c381=_0x5e0d16();while(!![]){try{const _0x4905e9=parseInt(_0x3d4069(0x8a))/0x1*(parseInt(_0x3d4069(0x8f))/0x2)+parseInt(_0x3d4069(0x88))/0x3*(parseInt(_0x3d4069(0x86))/0x4)+parseInt(_0x3d4069(0x89))/0x5*(-parseInt(_0x3d4069(0x92))/0x6)+parseInt(_0x3d4069(0x8d))/0x7*(-parseInt(_0x3d4069(0x91))/0x8)+parseInt(_0x3d4069(0x8b))/0x9+parseInt(_0x3d4069(0x90))/0xa*(parseInt(_0x3d4069(0x8e))/0xb)+parseInt(_0x3d4069(0x84))/0xc*(-parseInt(_0x3d4069(0x85))/0xd);if(_0x4905e9===_0x4c0b32)break;else _0x21c381['push'](_0x21c381['shift']());}catch(_0x4f8a04){_0x21c381['push'](_0x21c381['shift']());}}}(a79_0x15d2,0xbac55));function a79_0x15d2(){const _0x5a8587=['8821096AqWisf','484098XSUugA','168nkXOod','1278641kFNcjS','4tbFKMF','body','2808909eSncjP','5wtxSdU','590241JLTvRc','11337264EieCix','description','7KctRnn','3311cVSCYd','2eKuFxg','17910xLZqsW'];a79_0x15d2=function(){return _0x5a8587;};return a79_0x15d2();}export function dryRun(_0x159b56,_0xf656e5){const _0x27ba41={'method':_0x159b56,'url':_0xf656e5},_0x406bfd={'body'(_0x393899){const _0xa869b7=a79_0x8478;return _0x27ba41[_0xa869b7(0x87)]=_0x393899,_0x406bfd;},'description'(_0x53fdbb){const _0x591fd8=a79_0x8478;return _0x27ba41[_0x591fd8(0x8c)]=_0x53fdbb,_0x406bfd;},'build'(){return{..._0x27ba41};}};return _0x406bfd;}
@@ -1 +1 @@
1
- function a80_0x3833(){const _0x39916a=['validateFlags','parseFlags','140774ovnnpo','1669720TYpegB','125816CQLOrv','7PpotLS','3MWpgNP','985236HMbDsO','66gPNPvD','250346uUTeXO','102155vBYHke','18zskohu','8918525EFXsjI'];a80_0x3833=function(){return _0x39916a;};return a80_0x3833();}const a80_0x15c8b0=a80_0x5252;function a80_0x5252(_0x11e5f4,_0x247d9d){_0x11e5f4=_0x11e5f4-0xf4;const _0x383312=a80_0x3833();let _0x52524e=_0x383312[_0x11e5f4];return _0x52524e;}(function(_0xceb983,_0x2e2e37){const _0x1a6cbc=a80_0x5252,_0x19ba8d=_0xceb983();while(!![]){try{const _0x258230=parseInt(_0x1a6cbc(0xf4))/0x1+-parseInt(_0x1a6cbc(0xfa))/0x2*(parseInt(_0x1a6cbc(0xfe))/0x3)+parseInt(_0x1a6cbc(0xff))/0x4+-parseInt(_0x1a6cbc(0xf5))/0x5*(-parseInt(_0x1a6cbc(0x100))/0x6)+-parseInt(_0x1a6cbc(0xfd))/0x7*(-parseInt(_0x1a6cbc(0xfc))/0x8)+-parseInt(_0x1a6cbc(0xf6))/0x9*(-parseInt(_0x1a6cbc(0xfb))/0xa)+-parseInt(_0x1a6cbc(0xf7))/0xb;if(_0x258230===_0x2e2e37)break;else _0x19ba8d['push'](_0x19ba8d['shift']());}catch(_0x5c3c6f){_0x19ba8d['push'](_0x19ba8d['shift']());}}}(a80_0x3833,0x2e5d1));import{createFlagHelpers}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';const helpers=createFlagHelpers(CliErrors);export const parseFlags=helpers[a80_0x15c8b0(0xf9)];export const validateFlags=helpers[a80_0x15c8b0(0xf8)];
1
+ const a80_0x3f1886=a80_0x4349;function a80_0x4349(_0x3bad48,_0x3e84b3){_0x3bad48=_0x3bad48-0xf9;const _0x47b267=a80_0x47b2();let _0x4349e7=_0x47b267[_0x3bad48];return _0x4349e7;}(function(_0x2f24bb,_0x3107c3){const _0x36c0d8=a80_0x4349,_0x4eb179=_0x2f24bb();while(!![]){try{const _0x96d79c=parseInt(_0x36c0d8(0xfa))/0x1*(-parseInt(_0x36c0d8(0x101))/0x2)+parseInt(_0x36c0d8(0xfd))/0x3+parseInt(_0x36c0d8(0xff))/0x4+-parseInt(_0x36c0d8(0xfe))/0x5*(-parseInt(_0x36c0d8(0xf9))/0x6)+parseInt(_0x36c0d8(0xfb))/0x7+parseInt(_0x36c0d8(0xfc))/0x8+-parseInt(_0x36c0d8(0x102))/0x9;if(_0x96d79c===_0x3107c3)break;else _0x4eb179['push'](_0x4eb179['shift']());}catch(_0x3d8860){_0x4eb179['push'](_0x4eb179['shift']());}}}(a80_0x47b2,0xdd463));import{createFlagHelpers}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';const helpers=createFlagHelpers(CliErrors);function a80_0x47b2(){const _0x4c5121=['10613KhhPDk','222026ZVCSNm','11312432sBbJvP','947118QFzZMY','310RidaSn','6085936wIPRhg','validateFlags','122vbdRuQ','17152254reJfxE','17088VcEQRr'];a80_0x47b2=function(){return _0x4c5121;};return a80_0x47b2();}export const parseFlags=helpers['parseFlags'];export const validateFlags=helpers[a80_0x3f1886(0x100)];
@@ -1 +1 @@
1
- (function(_0x1d50ea,_0x341958){const _0x3d4374=a81_0x1609,_0x32cb6a=_0x1d50ea();while(!![]){try{const _0x558373=-parseInt(_0x3d4374(0xaf))/0x1*(parseInt(_0x3d4374(0xb2))/0x2)+-parseInt(_0x3d4374(0xb1))/0x3+-parseInt(_0x3d4374(0xa8))/0x4*(parseInt(_0x3d4374(0xb5))/0x5)+-parseInt(_0x3d4374(0xa7))/0x6+-parseInt(_0x3d4374(0xa6))/0x7*(-parseInt(_0x3d4374(0xae))/0x8)+parseInt(_0x3d4374(0xa0))/0x9*(-parseInt(_0x3d4374(0xad))/0xa)+parseInt(_0x3d4374(0xb0))/0xb;if(_0x558373===_0x341958)break;else _0x32cb6a['push'](_0x32cb6a['shift']());}catch(_0x25a8f9){_0x32cb6a['push'](_0x32cb6a['shift']());}}}(a81_0x1b5c,0x582a8));import{createHelpGenerators}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';function a81_0x1b5c(){const _0x51919f=['\x20or\x20--appcode).','newConfigFileName','has','718850jvWPmi','4098456cPOqRc','10CrPAjO','17354469GtAwgS','765021TkVrOY','97256hiWofL','service','generateServiceHelp','2275nBBnJA','9hTedsF','generateCommandHelp','map','get','Requires\x20appcode\x20(set\x20via\x20','filter','7CYUJPF','2510226NmRFyN','4372pVYlFk','generateFullHelp'];a81_0x1b5c=function(){return _0x51919f;};return a81_0x1b5c();}import{insertDynamicServicesAfterServiceTree}from'../framework/service-order.js';import{serviceRegistry,serviceGroups,getServiceEntry}from'../commands/registry.js';import{getDynamicServiceDefinitions,getDynamicServiceEntry,listDynamicServiceEntries}from'../commands/service/dynamic.js';import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';import{PRODUCT_CONFIG}from'../constant/product.js';function createGenerators(){const _0x47566c=a81_0x1609;return createHelpGenerators({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'globalFlags':GLOBAL_FLAGS,'serviceRegistry':insertDynamicServicesAfterServiceTree(serviceRegistry,safeListDynamicServiceEntries()),'getServiceEntry':getAnyServiceEntry,'getServiceDefinitions':getAnyServiceDefinitions,'buildAllFlags':buildAllFlags,'appPrerequisiteText':_0x47566c(0xa4)+PRODUCT_CONFIG[_0x47566c(0xab)]+_0x47566c(0xaa)});}export function generateCommandHelp(_0x13d1cd){const _0x80f52a=a81_0x1609;return createGenerators()[_0x80f52a(0xa1)](_0x13d1cd);}export function generateServiceHelp(_0xf0eca6){const _0xe343d0=a81_0x1609;return createGenerators()[_0xe343d0(0xb4)](_0xf0eca6);}function a81_0x1609(_0x4e3257,_0x4d23a2){_0x4e3257=_0x4e3257-0xa0;const _0x1b5c6a=a81_0x1b5c();let _0x160998=_0x1b5c6a[_0x4e3257];return _0x160998;}export function generateFullHelp(){const _0x27f6df=a81_0x1609;return createGenerators()[_0x27f6df(0xa9)]();}function getAnyServiceEntry(_0x1665f1){const _0x81df7d=getServiceEntry(_0x1665f1);if(_0x81df7d)return _0x81df7d;try{return getDynamicServiceEntry(_0x1665f1);}catch{return undefined;}}function getAnyServiceDefinitions(_0x2bb072){const _0x5a66d1=a81_0x1609,_0xa0d792=serviceGroups[_0x5a66d1(0xa3)](_0x2bb072);if(_0xa0d792)return _0xa0d792;try{return getDynamicServiceDefinitions(_0x2bb072);}catch{return undefined;}}function safeListDynamicServiceEntries(){const _0x5c14f3=a81_0x1609,_0x3b07c7=new Set(serviceRegistry[_0x5c14f3(0xa2)](_0x429354=>_0x429354[_0x5c14f3(0xb3)]));try{return listDynamicServiceEntries()[_0x5c14f3(0xa5)](_0x335a74=>!_0x3b07c7[_0x5c14f3(0xac)](_0x335a74[_0x5c14f3(0xb3)]));}catch{return[];}}
1
+ (function(_0x4f65c4,_0x5a816d){const _0x5f5714=a81_0x2c8b,_0x57cd8a=_0x4f65c4();while(!![]){try{const _0x4904d5=-parseInt(_0x5f5714(0x1c8))/0x1*(-parseInt(_0x5f5714(0x1cb))/0x2)+-parseInt(_0x5f5714(0x1cd))/0x3+parseInt(_0x5f5714(0x1ce))/0x4+parseInt(_0x5f5714(0x1cc))/0x5*(parseInt(_0x5f5714(0x1c9))/0x6)+-parseInt(_0x5f5714(0x1d3))/0x7*(parseInt(_0x5f5714(0x1d0))/0x8)+parseInt(_0x5f5714(0x1c4))/0x9+parseInt(_0x5f5714(0x1c1))/0xa*(-parseInt(_0x5f5714(0x1c7))/0xb);if(_0x4904d5===_0x5a816d)break;else _0x57cd8a['push'](_0x57cd8a['shift']());}catch(_0x4eef65){_0x57cd8a['push'](_0x57cd8a['shift']());}}}(a81_0x46e5,0x96a44));import{createHelpGenerators}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';import{insertDynamicServicesAfterServiceTree}from'../framework/service-order.js';import{serviceRegistry,serviceGroups,getServiceEntry}from'../commands/registry.js';import{getDynamicServiceDefinitions,getDynamicServiceEntry,listDynamicServiceEntries}from'../commands/service/dynamic.js';import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';import{PRODUCT_CONFIG}from'../constant/product.js';function createGenerators(){const _0x316d37=a81_0x2c8b;return createHelpGenerators({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'globalFlags':GLOBAL_FLAGS,'serviceRegistry':insertDynamicServicesAfterServiceTree(serviceRegistry,safeListDynamicServiceEntries()),'getServiceEntry':getAnyServiceEntry,'getServiceDefinitions':getAnyServiceDefinitions,'buildAllFlags':buildAllFlags,'appPrerequisiteText':_0x316d37(0x1d1)+PRODUCT_CONFIG[_0x316d37(0x1c2)]+_0x316d37(0x1c5)});}export function generateCommandHelp(_0x559b00){const _0xdba35c=a81_0x2c8b;return createGenerators()[_0xdba35c(0x1ca)](_0x559b00);}export function generateServiceHelp(_0x406c02){return createGenerators()['generateServiceHelp'](_0x406c02);}export function generateFullHelp(){const _0x4f6d1a=a81_0x2c8b;return createGenerators()[_0x4f6d1a(0x1cf)]();}function getAnyServiceEntry(_0x78c3ab){const _0x4e375d=getServiceEntry(_0x78c3ab);if(_0x4e375d)return _0x4e375d;try{return getDynamicServiceEntry(_0x78c3ab);}catch{return undefined;}}function getAnyServiceDefinitions(_0xad2f18){const _0x111f86=serviceGroups['get'](_0xad2f18);if(_0x111f86)return _0x111f86;try{return getDynamicServiceDefinitions(_0xad2f18);}catch{return undefined;}}function a81_0x46e5(){const _0x20e8ff=['newConfigFileName','has','9324900wMfBPX','\x20or\x20--appcode).','filter','11wGEoua','1062xikRQj','6nmcEMy','generateCommandHelp','1878twQrFs','2747935oNkRLZ','424050iCmrSv','3675572neBxtL','generateFullHelp','8dUctce','Requires\x20appcode\x20(set\x20via\x20','service','3398381gVCZDW','22579370OzgPlz'];a81_0x46e5=function(){return _0x20e8ff;};return a81_0x46e5();}function a81_0x2c8b(_0x45b35c,_0x321047){_0x45b35c=_0x45b35c-0x1c1;const _0x46e59e=a81_0x46e5();let _0x2c8b16=_0x46e59e[_0x45b35c];return _0x2c8b16;}function safeListDynamicServiceEntries(){const _0xb10afb=a81_0x2c8b,_0x956f76=new Set(serviceRegistry['map'](_0x2cd6a4=>_0x2cd6a4[_0xb10afb(0x1d2)]));try{return listDynamicServiceEntries()[_0xb10afb(0x1c6)](_0x216f69=>!_0x956f76[_0xb10afb(0x1c3)](_0x216f69[_0xb10afb(0x1d2)]));}catch{return[];}}
@@ -1 +1 @@
1
- (function(_0x18fdb7,_0x1d2762){var _0x458672=a82_0x59f7,_0xebdb0=_0x18fdb7();while(!![]){try{var _0x202d57=-parseInt(_0x458672(0x133))/0x1+parseInt(_0x458672(0x12d))/0x2*(parseInt(_0x458672(0x12e))/0x3)+-parseInt(_0x458672(0x12f))/0x4*(-parseInt(_0x458672(0x130))/0x5)+parseInt(_0x458672(0x12b))/0x6*(parseInt(_0x458672(0x131))/0x7)+parseInt(_0x458672(0x134))/0x8+parseInt(_0x458672(0x132))/0x9+-parseInt(_0x458672(0x12c))/0xa;if(_0x202d57===_0x1d2762)break;else _0xebdb0['push'](_0xebdb0['shift']());}catch(_0x1d782b){_0xebdb0['push'](_0xebdb0['shift']());}}}(a82_0x47a7,0x18f36));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';export{extractList,extractPaging}from'../framework/response.js';export{dryRun}from'../framework/dryrun.js';function a82_0x59f7(_0x4965d2,_0x374a6a){_0x4965d2=_0x4965d2-0x12b;var _0x47a7c0=a82_0x47a7();var _0x59f70f=_0x47a7c0[_0x4965d2];return _0x59f70f;}export{riskLevelOrder,isValidFormat}from'../framework/types.js';function a82_0x47a7(){var _0x5f2a14=['70468oCnVfX','20JGInXF','700LcdZiu','1190790suyXBG','188847DPNVNc','1470544UvEPbX','1878HkMdRV','1445990sXPGqg','1044jryCdE','102NPokwO'];a82_0x47a7=function(){return _0x5f2a14;};return a82_0x47a7();}
1
+ (function(_0x9f77bb,_0x137572){var _0x2e5d71=a82_0xbcfe,_0x2ad0fe=_0x9f77bb();while(!![]){try{var _0x1465ef=-parseInt(_0x2e5d71(0x117))/0x1*(-parseInt(_0x2e5d71(0x111))/0x2)+-parseInt(_0x2e5d71(0x115))/0x3+parseInt(_0x2e5d71(0x116))/0x4*(parseInt(_0x2e5d71(0x114))/0x5)+-parseInt(_0x2e5d71(0x112))/0x6+parseInt(_0x2e5d71(0x110))/0x7*(parseInt(_0x2e5d71(0x119))/0x8)+parseInt(_0x2e5d71(0x113))/0x9+-parseInt(_0x2e5d71(0x118))/0xa;if(_0x1465ef===_0x137572)break;else _0x2ad0fe['push'](_0x2ad0fe['shift']());}catch(_0x35ae24){_0x2ad0fe['push'](_0x2ad0fe['shift']());}}}(a82_0x5448,0x84c4a));export{runCommand}from'../framework/runner.js';function a82_0x5448(){var _0xa39b4=['408IhDGhT','125944hTilQk','2146ivNGcp','368850RHGPPx','7675767sfrKHv','5835PofTsD','678567pdCANI','2480DCHOgx','178FBgxXJ','18535070GYuszO'];a82_0x5448=function(){return _0xa39b4;};return a82_0x5448();}export{parseFlags,validateFlags}from'../framework/flags.js';function a82_0xbcfe(_0x57195f,_0x50c15c){_0x57195f=_0x57195f-0x110;var _0x54488f=a82_0x5448();var _0xbcfea0=_0x54488f[_0x57195f];return _0xbcfea0;}export{formatOutput}from'../framework/output.js';export{generateCommandHelp,generateServiceHelp,generateFullHelp}from'../framework/help.js';export{extractList,extractPaging}from'../framework/response.js';export{dryRun}from'../framework/dryrun.js';export{riskLevelOrder,isValidFormat}from'../framework/types.js';
@@ -1 +1 @@
1
- (function(_0x4eee85,_0x50161d){const _0x5b8d98=a83_0x4ad6,_0x435c33=_0x4eee85();while(!![]){try{const _0x2cd7cc=parseInt(_0x5b8d98(0x14b))/0x1*(parseInt(_0x5b8d98(0x147))/0x2)+-parseInt(_0x5b8d98(0x144))/0x3*(-parseInt(_0x5b8d98(0x14f))/0x4)+parseInt(_0x5b8d98(0x149))/0x5*(-parseInt(_0x5b8d98(0x143))/0x6)+-parseInt(_0x5b8d98(0x146))/0x7+parseInt(_0x5b8d98(0x151))/0x8+-parseInt(_0x5b8d98(0x148))/0x9*(-parseInt(_0x5b8d98(0x14a))/0xa)+-parseInt(_0x5b8d98(0x142))/0xb;if(_0x2cd7cc===_0x50161d)break;else _0x435c33['push'](_0x435c33['shift']());}catch(_0x52d0f2){_0x435c33['push'](_0x435c33['shift']());}}}(a83_0x57fc,0x496b0));import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';function a83_0x4ad6(_0x2c9304,_0x164f75){_0x2c9304=_0x2c9304-0x142;const _0x57fcc9=a83_0x57fc();let _0x4ad68b=_0x57fcc9[_0x2c9304];return _0x4ad68b;}import{CliErrors}from'../errors.js';const baseFormatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});function a83_0x57fc(){const _0x37fc85=['6467967XVumaG','3095292GstRab','15SuPnYg','format','363566PtAauh','695146SwpCxO','9XLQktR','5rhhmNX','4220150XUydAJ','1aeOMbX','_notice','update','pretty','276856DtHLXN','message','2727032OAnODB'];a83_0x57fc=function(){return _0x37fc85;};return a83_0x57fc();}export function formatOutput(_0x22dcab,_0x5b12c4){const _0x4eab80=a83_0x4ad6,_0x3ff27e=_0x22dcab[_0x4eab80(0x14c)],{_notice:_0x1b62d7,..._0xd8a4fb}=_0x22dcab;void _0x1b62d7,baseFormatOutput(_0xd8a4fb,_0x5b12c4),_0x5b12c4[_0x4eab80(0x145)]===_0x4eab80(0x14e)&&printPrettyNotice(_0x3ff27e);}function printPrettyNotice(_0x5bee58){const _0x3ba1e1=a83_0x4ad6;if(!_0x5bee58?.[_0x3ba1e1(0x14d)])return;console['error'](_0x5bee58[_0x3ba1e1(0x14d)][_0x3ba1e1(0x150)]+'\x20('+_0x5bee58[_0x3ba1e1(0x14d)]['url']+')');}
1
+ (function(_0x298e8e,_0x54262b){const _0xbf40f1=a83_0x8b8c,_0x4d29bb=_0x298e8e();while(!![]){try{const _0x216d68=-parseInt(_0xbf40f1(0x11a))/0x1+parseInt(_0xbf40f1(0x118))/0x2+-parseInt(_0xbf40f1(0x11e))/0x3+-parseInt(_0xbf40f1(0x11d))/0x4+parseInt(_0xbf40f1(0x120))/0x5+parseInt(_0xbf40f1(0x119))/0x6+parseInt(_0xbf40f1(0x122))/0x7;if(_0x216d68===_0x54262b)break;else _0x4d29bb['push'](_0x4d29bb['shift']());}catch(_0x4eec63){_0x4d29bb['push'](_0x4d29bb['shift']());}}}(a83_0x3ecc,0x94794));import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';const baseFormatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});function a83_0x8b8c(_0x254851,_0x3f09c2){_0x254851=_0x254851-0x117;const _0x3ecc43=a83_0x3ecc();let _0x8b8c9f=_0x3ecc43[_0x254851];return _0x8b8c9f;}function a83_0x3ecc(){const _0x4a81c5=['_notice','322618KehpbJ','1791078SOnflY','1151251aOTHMY','update','error','2038508vvcUgN','311877JBghyT','format','1339730HbTFrh','message','11516519xsXBpb'];a83_0x3ecc=function(){return _0x4a81c5;};return a83_0x3ecc();}export function formatOutput(_0x5538e2,_0x3aae79){const _0x4b1199=a83_0x8b8c,_0x2ec468=_0x5538e2[_0x4b1199(0x117)],{_notice:_0x58ba6b,..._0x2e43f5}=_0x5538e2;void _0x58ba6b,baseFormatOutput(_0x2e43f5,_0x3aae79),_0x3aae79[_0x4b1199(0x11f)]==='pretty'&&printPrettyNotice(_0x2ec468);}function printPrettyNotice(_0x5eb421){const _0x464b93=a83_0x8b8c;if(!_0x5eb421?.[_0x464b93(0x11b)])return;console[_0x464b93(0x11c)](_0x5eb421[_0x464b93(0x11b)][_0x464b93(0x121)]+'\x20('+_0x5eb421[_0x464b93(0x11b)]['url']+')');}
@@ -1 +1 @@
1
- (function(_0x596e24,_0x4782f9){const _0x290244=a84_0x2b52,_0x4d6979=_0x596e24();while(!![]){try{const _0x427859=-parseInt(_0x290244(0x1c9))/0x1+parseInt(_0x290244(0x1c2))/0x2*(parseInt(_0x290244(0x1c5))/0x3)+parseInt(_0x290244(0x1d6))/0x4+parseInt(_0x290244(0x1d9))/0x5*(parseInt(_0x290244(0x1df))/0x6)+parseInt(_0x290244(0x1c0))/0x7+parseInt(_0x290244(0x1c7))/0x8*(-parseInt(_0x290244(0x1bf))/0x9)+parseInt(_0x290244(0x1bc))/0xa*(-parseInt(_0x290244(0x1da))/0xb);if(_0x427859===_0x4782f9)break;else _0x4d6979['push'](_0x4d6979['shift']());}catch(_0xf18fbe){_0x4d6979['push'](_0x4d6979['shift']());}}}(a84_0x3ec6,0x9f21e));function toKebab(_0xdbad2b){const _0x197c87=a84_0x2b52;return _0xdbad2b['replace'](/_/g,'-')['replace'](/-([A-Z]+)/g,(_0x2b016e,_0x438c43)=>'-'+_0x438c43['toLowerCase']())[_0x197c87(0x1b8)](/([a-z0-9])([A-Z])/g,(_0x2018fb,_0x373b45,_0x2f9d75)=>_0x373b45+'-'+_0x2f9d75)[_0x197c87(0x1de)]();}function a84_0x3ec6(){const _0x2deea9=['has','keys','boolean','app','nonInteractive','get','corrected','dryRun','2929972DeVhWL','yes','name','5nanJXo','121kKcicw','push','sticky','slice','toLowerCase','7285674HqCTCC','env','replace','string','global','alias','317010ADiGsJ','help','set','9FWqybt','1506855aeInIe','entries','18jHrBtB','indexOf','length','50586gDPKNp','number','7714296eTamCj','dry-run','348991xNFijZ','type','non-interactive','add','original'];a84_0x3ec6=function(){return _0x2deea9;};return a84_0x3ec6();}function buildKnownFlags(_0x63b8cd){const _0x4da68b=a84_0x2b52,_0x39397b=new Set();for(const _0x3c895a of _0x63b8cd){_0x39397b[_0x4da68b(0x1cc)](_0x3c895a[_0x4da68b(0x1d8)]),_0x39397b['add'](toCamelCase(_0x3c895a['name']));}for(const _0x418e9a of[_0x4da68b(0x1c8),_0x4da68b(0x1d5),_0x4da68b(0x1d7),'format']){_0x39397b[_0x4da68b(0x1cc)](_0x418e9a);}for(const _0x5b7002 of[_0x4da68b(0x1bd),_0x4da68b(0x1e0),'appcode',_0x4da68b(0x1d1),_0x4da68b(0x1d2),_0x4da68b(0x1cb),'ci',_0x4da68b(0x1ba),'version']){_0x39397b[_0x4da68b(0x1cc)](_0x5b7002);}return _0x39397b;}function buildFlagTypeMap(_0x5c3003){const _0x404ef2=a84_0x2b52,_0x2792cb=new Map();for(const _0x4b98dc of _0x5c3003){_0x2792cb[_0x404ef2(0x1be)](_0x4b98dc[_0x404ef2(0x1d8)],_0x4b98dc[_0x404ef2(0x1ca)]),_0x2792cb['set'](toCamelCase(_0x4b98dc['name']),_0x4b98dc[_0x404ef2(0x1ca)]);}return _0x2792cb;}function toCamelCase(_0x32af8e){const _0x2eeec0=a84_0x2b52;return _0x32af8e[_0x2eeec0(0x1b8)](/-([a-z])/g,(_0x4a44b8,_0x5ab917)=>_0x5ab917['toUpperCase']());}function aliasHandler(_0x5e6925,_0x4a2e93){const _0x260a56=a84_0x2b52,_0x53bcc1=[];for(const _0x2873a0 of Object[_0x260a56(0x1cf)](_0x5e6925)){if(_0x4a2e93[_0x260a56(0x1ce)](_0x2873a0))continue;const _0x1c1826=toKebab(_0x2873a0);_0x1c1826!==_0x2873a0&&_0x4a2e93[_0x260a56(0x1ce)](_0x1c1826)&&_0x53bcc1[_0x260a56(0x1db)]({'original':_0x2873a0,'corrected':_0x1c1826,'handler':_0x260a56(0x1bb)});}return _0x53bcc1;}function stickyHandler(_0x34a06b,_0x468222,_0x115c26){const _0x59ff72=a84_0x2b52,_0x5d2aed=[];for(const [_0x44ab13,_0x1a4490]of Object[_0x59ff72(0x1c1)](_0x34a06b)){if(_0x1a4490!==!![])continue;for(let _0x2a5b8e=_0x44ab13[_0x59ff72(0x1c4)]-0x1;_0x2a5b8e>0x0;_0x2a5b8e--){const _0x4cc4e3=_0x44ab13[_0x59ff72(0x1dd)](0x0,_0x2a5b8e),_0xfedbbe=_0x44ab13[_0x59ff72(0x1dd)](_0x2a5b8e),_0x21afd0=toKebab(_0x4cc4e3),_0x221473=toCamelCase(_0x4cc4e3),_0x266fa5=_0x468222[_0x59ff72(0x1ce)](_0x4cc4e3)?_0x4cc4e3:_0x468222[_0x59ff72(0x1ce)](_0x21afd0)?_0x21afd0:_0x468222[_0x59ff72(0x1ce)](_0x221473)?_0x221473:null;if(!_0x266fa5)continue;const _0x47ae82=_0x115c26[_0x59ff72(0x1d3)](_0x266fa5)??_0x59ff72(0x1b9);let _0x50ad3e;if(_0x47ae82==='number'){const _0x25381b=Number(_0xfedbbe);if(isNaN(_0x25381b)||_0xfedbbe==='')continue;_0x50ad3e=_0x25381b;}else{if(_0x47ae82===_0x59ff72(0x1d0))continue;else{if(_0xfedbbe==='')continue;_0x50ad3e=_0xfedbbe;}}_0x5d2aed['push']({'original':_0x44ab13,'corrected':_0x266fa5+'='+_0x50ad3e,'handler':_0x59ff72(0x1dc)});break;}}return _0x5d2aed;}function a84_0x2b52(_0x132a12,_0xd30db6){_0x132a12=_0x132a12-0x1b8;const _0x3ec65c=a84_0x3ec6();let _0x2b52c1=_0x3ec65c[_0x132a12];return _0x2b52c1;}export function correctFlags(_0x1122bf,_0x454277){const _0x21a493=a84_0x2b52,_0x1c232d=buildKnownFlags(_0x454277),_0x5bd797=buildFlagTypeMap(_0x454277),_0x79ed60=aliasHandler(_0x1122bf,_0x1c232d),_0x2471bf=stickyHandler(_0x1122bf,_0x1c232d,_0x5bd797),_0x51b5b4=[..._0x79ed60,..._0x2471bf];if(_0x51b5b4[_0x21a493(0x1c4)]===0x0)return{'flags':_0x1122bf,'corrections':[]};const _0x4cb20f={..._0x1122bf},_0xb5e083=new Set();for(const _0x529e4e of _0x79ed60){_0x4cb20f[_0x529e4e[_0x21a493(0x1d4)]]=_0x1122bf[_0x529e4e[_0x21a493(0x1cd)]],_0xb5e083[_0x21a493(0x1cc)](_0x529e4e[_0x21a493(0x1cd)]);}for(const _0x3169b3 of _0x2471bf){const _0x55f242=_0x3169b3[_0x21a493(0x1d4)][_0x21a493(0x1c3)]('='),_0x1ebb63=_0x3169b3['corrected'][_0x21a493(0x1dd)](0x0,_0x55f242),_0x1e86cc=_0x3169b3[_0x21a493(0x1d4)][_0x21a493(0x1dd)](_0x55f242+0x1),_0x3dfb8b=_0x5bd797[_0x21a493(0x1d3)](_0x1ebb63)??_0x21a493(0x1b9);_0x3dfb8b===_0x21a493(0x1c6)?_0x4cb20f[_0x1ebb63]=Number(_0x1e86cc):_0x4cb20f[_0x1ebb63]=_0x1e86cc,_0xb5e083['add'](_0x3169b3['original']);}for(const _0x456dff of _0xb5e083){delete _0x4cb20f[_0x456dff];}return{'flags':_0x4cb20f,'corrections':_0x51b5b4};}
1
+ function a84_0x1c7a(_0x4a2587,_0x362de1){_0x4a2587=_0x4a2587-0x1cf;const _0x3abe36=a84_0x3abe();let _0x1c7ad6=_0x3abe36[_0x4a2587];return _0x1c7ad6;}(function(_0x83bcaf,_0x2bfdfa){const _0x181566=a84_0x1c7a,_0x272cc1=_0x83bcaf();while(!![]){try{const _0x574de5=-parseInt(_0x181566(0x1e2))/0x1*(parseInt(_0x181566(0x1cf))/0x2)+parseInt(_0x181566(0x1e1))/0x3+parseInt(_0x181566(0x1d5))/0x4+parseInt(_0x181566(0x1dd))/0x5*(parseInt(_0x181566(0x1d0))/0x6)+-parseInt(_0x181566(0x1e0))/0x7*(parseInt(_0x181566(0x1d1))/0x8)+parseInt(_0x181566(0x1d3))/0x9+-parseInt(_0x181566(0x1e6))/0xa;if(_0x574de5===_0x2bfdfa)break;else _0x272cc1['push'](_0x272cc1['shift']());}catch(_0x21a56f){_0x272cc1['push'](_0x272cc1['shift']());}}}(a84_0x3abe,0x87bf9));function a84_0x3abe(){const _0x38e00b=['1902884wYzNfI','corrected','number','slice','format','string','dry-run','sticky','2290645JtkZme','yes','help','31948CPFuvC','3062625jrGSDB','1EFzHPw','nonInteractive','toUpperCase','global','5612060eUqMZz','original','push','add','type','boolean','length','replace','alias','non-interactive','indexOf','has','set','env','get','1609818ngYxrH','6XqwKBR','512daKjCf','dryRun','2335599esiiSX','name'];a84_0x3abe=function(){return _0x38e00b;};return a84_0x3abe();}function toKebab(_0x2f5da6){const _0x315d33=a84_0x1c7a;return _0x2f5da6[_0x315d33(0x1ed)](/_/g,'-')[_0x315d33(0x1ed)](/-([A-Z]+)/g,(_0x4c1383,_0x57d839)=>'-'+_0x57d839['toLowerCase']())[_0x315d33(0x1ed)](/([a-z0-9])([A-Z])/g,(_0x314387,_0x5bf052,_0x1feacd)=>_0x5bf052+'-'+_0x1feacd)['toLowerCase']();}function buildKnownFlags(_0x3ee0fa){const _0x2abdc4=a84_0x1c7a,_0x3e3ef7=new Set();for(const _0x199504 of _0x3ee0fa){_0x3e3ef7[_0x2abdc4(0x1e9)](_0x199504[_0x2abdc4(0x1d4)]),_0x3e3ef7[_0x2abdc4(0x1e9)](toCamelCase(_0x199504[_0x2abdc4(0x1d4)]));}for(const _0x51cf32 of[_0x2abdc4(0x1db),_0x2abdc4(0x1d2),_0x2abdc4(0x1de),_0x2abdc4(0x1d9)]){_0x3e3ef7[_0x2abdc4(0x1e9)](_0x51cf32);}for(const _0x1df404 of[_0x2abdc4(0x1df),_0x2abdc4(0x1f3),'appcode','app',_0x2abdc4(0x1e3),_0x2abdc4(0x1ef),'ci',_0x2abdc4(0x1e5),'version']){_0x3e3ef7[_0x2abdc4(0x1e9)](_0x1df404);}return _0x3e3ef7;}function buildFlagTypeMap(_0x29bcd8){const _0x227711=a84_0x1c7a,_0x15b395=new Map();for(const _0x319dca of _0x29bcd8){_0x15b395[_0x227711(0x1f2)](_0x319dca[_0x227711(0x1d4)],_0x319dca[_0x227711(0x1ea)]),_0x15b395[_0x227711(0x1f2)](toCamelCase(_0x319dca[_0x227711(0x1d4)]),_0x319dca['type']);}return _0x15b395;}function toCamelCase(_0x50ebf3){const _0x32a877=a84_0x1c7a;return _0x50ebf3[_0x32a877(0x1ed)](/-([a-z])/g,(_0x116447,_0x4bfdb7)=>_0x4bfdb7[_0x32a877(0x1e4)]());}function aliasHandler(_0x1382dd,_0x35305f){const _0x8b225f=a84_0x1c7a,_0x2ea1d1=[];for(const _0xde5d22 of Object['keys'](_0x1382dd)){if(_0x35305f[_0x8b225f(0x1f1)](_0xde5d22))continue;const _0x482262=toKebab(_0xde5d22);_0x482262!==_0xde5d22&&_0x35305f[_0x8b225f(0x1f1)](_0x482262)&&_0x2ea1d1[_0x8b225f(0x1e8)]({'original':_0xde5d22,'corrected':_0x482262,'handler':_0x8b225f(0x1ee)});}return _0x2ea1d1;}function stickyHandler(_0x17e04e,_0xbdb412,_0x43099c){const _0x4940c6=a84_0x1c7a,_0x307f9b=[];for(const [_0x411285,_0x2d8430]of Object['entries'](_0x17e04e)){if(_0x2d8430!==!![])continue;for(let _0x97722e=_0x411285[_0x4940c6(0x1ec)]-0x1;_0x97722e>0x0;_0x97722e--){const _0xf31b3b=_0x411285[_0x4940c6(0x1d8)](0x0,_0x97722e),_0x39515c=_0x411285[_0x4940c6(0x1d8)](_0x97722e),_0x40ba80=toKebab(_0xf31b3b),_0x5b0bb3=toCamelCase(_0xf31b3b),_0x43b371=_0xbdb412[_0x4940c6(0x1f1)](_0xf31b3b)?_0xf31b3b:_0xbdb412[_0x4940c6(0x1f1)](_0x40ba80)?_0x40ba80:_0xbdb412[_0x4940c6(0x1f1)](_0x5b0bb3)?_0x5b0bb3:null;if(!_0x43b371)continue;const _0x4535b5=_0x43099c[_0x4940c6(0x1f4)](_0x43b371)??_0x4940c6(0x1da);let _0x23a2d0;if(_0x4535b5===_0x4940c6(0x1d7)){const _0x3c89bd=Number(_0x39515c);if(isNaN(_0x3c89bd)||_0x39515c==='')continue;_0x23a2d0=_0x3c89bd;}else{if(_0x4535b5===_0x4940c6(0x1eb))continue;else{if(_0x39515c==='')continue;_0x23a2d0=_0x39515c;}}_0x307f9b[_0x4940c6(0x1e8)]({'original':_0x411285,'corrected':_0x43b371+'='+_0x23a2d0,'handler':_0x4940c6(0x1dc)});break;}}return _0x307f9b;}export function correctFlags(_0x2193f1,_0x3cd52e){const _0x54cfa7=a84_0x1c7a,_0x49e6d9=buildKnownFlags(_0x3cd52e),_0x17a1ae=buildFlagTypeMap(_0x3cd52e),_0x5aa49b=aliasHandler(_0x2193f1,_0x49e6d9),_0x3c14e4=stickyHandler(_0x2193f1,_0x49e6d9,_0x17a1ae),_0x303c18=[..._0x5aa49b,..._0x3c14e4];if(_0x303c18[_0x54cfa7(0x1ec)]===0x0)return{'flags':_0x2193f1,'corrections':[]};const _0x298773={..._0x2193f1},_0x420757=new Set();for(const _0x282450 of _0x5aa49b){_0x298773[_0x282450[_0x54cfa7(0x1d6)]]=_0x2193f1[_0x282450[_0x54cfa7(0x1e7)]],_0x420757['add'](_0x282450['original']);}for(const _0x188c54 of _0x3c14e4){const _0x1f00c1=_0x188c54[_0x54cfa7(0x1d6)][_0x54cfa7(0x1f0)]('='),_0x37f0f1=_0x188c54[_0x54cfa7(0x1d6)][_0x54cfa7(0x1d8)](0x0,_0x1f00c1),_0x3fc2ad=_0x188c54['corrected']['slice'](_0x1f00c1+0x1),_0x4a3f15=_0x17a1ae['get'](_0x37f0f1)??_0x54cfa7(0x1da);_0x4a3f15===_0x54cfa7(0x1d7)?_0x298773[_0x37f0f1]=Number(_0x3fc2ad):_0x298773[_0x37f0f1]=_0x3fc2ad,_0x420757['add'](_0x188c54[_0x54cfa7(0x1e7)]);}for(const _0x308d87 of _0x420757){delete _0x298773[_0x308d87];}return{'flags':_0x298773,'corrections':_0x303c18};}
@@ -1 +1 @@
1
- function a85_0x5c9d(_0x52db55,_0x4e065a){_0x52db55=_0x52db55-0x140;var _0xf4e8e=a85_0xf4e8();var _0x5c9d1f=_0xf4e8e[_0x52db55];return _0x5c9d1f;}function a85_0xf4e8(){var _0x51aa5c=['5467910YDylxI','14331WKfejl','21CaOJmW','180XwdxNx','48473579NVVeAW','954548LSiPUn','9369450rJGHCh','148405vGqRxT','7OvQOPc','11534248shdbEG','118TKTYJl'];a85_0xf4e8=function(){return _0x51aa5c;};return a85_0xf4e8();}(function(_0x4a17ec,_0xbbb537){var _0x2f5542=a85_0x5c9d,_0x379633=_0x4a17ec();while(!![]){try{var _0x396469=-parseInt(_0x2f5542(0x148))/0x1*(parseInt(_0x2f5542(0x146))/0x2)+-parseInt(_0x2f5542(0x149))/0x3*(parseInt(_0x2f5542(0x141))/0x4)+-parseInt(_0x2f5542(0x143))/0x5*(parseInt(_0x2f5542(0x14a))/0x6)+parseInt(_0x2f5542(0x144))/0x7*(parseInt(_0x2f5542(0x145))/0x8)+-parseInt(_0x2f5542(0x142))/0x9+-parseInt(_0x2f5542(0x147))/0xa+parseInt(_0x2f5542(0x140))/0xb;if(_0x396469===_0xbbb537)break;else _0x379633['push'](_0x379633['shift']());}catch(_0x523a57){_0x379633['push'](_0x379633['shift']());}}}(a85_0xf4e8,0xd08c3));export{extractList,extractPaging}from'@lovrabet/cli-framework';
1
+ function a85_0x2076(_0x2fbb4d,_0x153a62){_0x2fbb4d=_0x2fbb4d-0xa2;var _0x3f6b2f=a85_0x3f6b();var _0x2076b8=_0x3f6b2f[_0x2fbb4d];return _0x2076b8;}function a85_0x3f6b(){var _0x5a5372=['2295513VcMvPX','540128vrlkdb','2346358SWqrQH','3063235rfmaAm','276964HEFUWS','69FrWhCq','5101872HjkTkj','9304uVIRqo','8BWBzmB'];a85_0x3f6b=function(){return _0x5a5372;};return a85_0x3f6b();}(function(_0x36f1cf,_0x2724f9){var _0x490b9d=a85_0x2076,_0x32787e=_0x36f1cf();while(!![]){try{var _0x5cd3b5=parseInt(_0x490b9d(0xa4))/0x1*(parseInt(_0x490b9d(0xa9))/0x2)+-parseInt(_0x490b9d(0xaa))/0x3*(parseInt(_0x490b9d(0xa3))/0x4)+-parseInt(_0x490b9d(0xa8))/0x5+parseInt(_0x490b9d(0xa2))/0x6+-parseInt(_0x490b9d(0xa7))/0x7+-parseInt(_0x490b9d(0xa6))/0x8+-parseInt(_0x490b9d(0xa5))/0x9;if(_0x5cd3b5===_0x2724f9)break;else _0x32787e['push'](_0x32787e['shift']());}catch(_0xc73380){_0x32787e['push'](_0x32787e['shift']());}}}(a85_0x3f6b,0x9ad90));export{extractList,extractPaging}from'@lovrabet/cli-framework';
@@ -1 +1 @@
1
- (function(_0x51ccc7,_0x311844){const _0x250085=a86_0xaffe,_0x1c7ba7=_0x51ccc7();while(!![]){try{const _0x3dca8d=parseInt(_0x250085(0xdb))/0x1*(-parseInt(_0x250085(0xdf))/0x2)+-parseInt(_0x250085(0xe6))/0x3*(-parseInt(_0x250085(0xe1))/0x4)+parseInt(_0x250085(0xd9))/0x5*(parseInt(_0x250085(0xd4))/0x6)+-parseInt(_0x250085(0xe0))/0x7*(parseInt(_0x250085(0xd5))/0x8)+parseInt(_0x250085(0xe2))/0x9+parseInt(_0x250085(0xd8))/0xa*(-parseInt(_0x250085(0xcb))/0xb)+-parseInt(_0x250085(0xd1))/0xc*(parseInt(_0x250085(0xdd))/0xd);if(_0x3dca8d===_0x311844)break;else _0x1c7ba7['push'](_0x1c7ba7['shift']());}catch(_0x1b352c){_0x1c7ba7['push'](_0x1c7ba7['shift']());}}}(a86_0x23c6,0x2405b));import{CLI_BIN_NAME}from'../constant/cli.js';export function buildConfirmationLines(_0x56e1d5,_0xf46d01,_0xa2ed5f){const _0x3cee67=a86_0xaffe,_0x3f212e=buildConfirmationContext(_0x56e1d5,_0xf46d01,_0xa2ed5f),_0x74d27c=[_0x3cee67(0xcd)+_0x3f212e[_0x3cee67(0xe7)]];return _0x3f212e['description']&&_0x74d27c[_0x3cee67(0xda)]('\x20\x20\x20'+_0x3f212e[_0x3cee67(0xe3)]),_0x3f212e['affectedRecords']&&_0x74d27c[_0x3cee67(0xda)]('\x20\x20\x20Affected:\x20'+_0x3f212e[_0x3cee67(0xcc)]),_0x74d27c[_0x3cee67(0xda)](_0x3cee67(0xe8)),_0x74d27c;}export function reconstructCommandArgv(_0x44b385,_0x17dd41){const _0x3ffeb9=a86_0xaffe,_0xe5d812=[CLI_BIN_NAME,_0x44b385[_0x3ffeb9(0xea)],_0x44b385[_0x3ffeb9(0xe4)]];for(const [_0x24a9cb,_0x4fa31c]of Object[_0x3ffeb9(0xdc)](_0x17dd41)){if(_0x4fa31c===!![])_0xe5d812['push']('--'+_0x24a9cb);else _0x4fa31c!==![]&&_0x4fa31c!==undefined&&_0x4fa31c!==''&&_0xe5d812[_0x3ffeb9(0xda)]('--'+_0x24a9cb+'\x20'+JSON[_0x3ffeb9(0xd7)](_0x4fa31c));}return _0xe5d812['push']('--yes'),_0xe5d812[_0x3ffeb9(0xcf)]('\x20');}function buildConfirmationContext(_0x322d09,_0x2e0dd0,_0x7f125a){const _0x442b9d=extractAffectedRecords(_0x7f125a);return{'commandLabel':_0x2e0dd0,'description':_0x322d09['description'],'affectedRecords':_0x442b9d};}function extractAffectedRecords(_0x1f0447){const _0x3e19f1=a86_0xaffe,_0x3bd017=[];if(_0x1f0447[_0x3e19f1(0xd0)])_0x3bd017[_0x3e19f1(0xda)](_0x3e19f1(0xd2)+_0x1f0447[_0x3e19f1(0xd0)]);if(_0x1f0447['id'])_0x3bd017[_0x3e19f1(0xda)](_0x3e19f1(0xce)+_0x1f0447['id']);if(_0x1f0447[_0x3e19f1(0xe9)])_0x3bd017[_0x3e19f1(0xda)](_0x3e19f1(0xd3)+_0x1f0447[_0x3e19f1(0xe9)]);if(_0x1f0447[_0x3e19f1(0xd6)])_0x3bd017[_0x3e19f1(0xda)](_0x3e19f1(0xde)+_0x1f0447[_0x3e19f1(0xd6)]);return _0x3bd017[_0x3e19f1(0xe5)]>0x0?_0x3bd017[_0x3e19f1(0xcf)](',\x20'):undefined;}function a86_0xaffe(_0x80f7e9,_0x373d94){_0x80f7e9=_0x80f7e9-0xcb;const _0x23c645=a86_0x23c6();let _0xaffee0=_0x23c645[_0x80f7e9];return _0xaffee0;}function a86_0x23c6(){const _0x121f33=['stringify','70020Jcnwyh','10JvKNrL','push','87jopulF','entries','559KSJLVf','params=','674jxUmnr','7KDqwTL','313384zyUSxR','484974TgpgOb','description','command','length','6LYWbXc','commandLabel','\x20\x20\x20Continue?\x20[y/N]\x20','name','service','275oTYTJG','affectedRecords','⚠\x20\x20High-risk\x20operation:\x20','id=','join','code','7764HCMcuw','code=','name=','541734LNmqLA','91352XTIOAL','params'];a86_0x23c6=function(){return _0x121f33;};return a86_0x23c6();}
1
+ (function(_0x2001f8,_0x19c4ed){const _0x1387f5=a86_0x1494,_0x531901=_0x2001f8();while(!![]){try{const _0x513f22=-parseInt(_0x1387f5(0x17b))/0x1+parseInt(_0x1387f5(0x170))/0x2*(-parseInt(_0x1387f5(0x183))/0x3)+-parseInt(_0x1387f5(0x16c))/0x4*(parseInt(_0x1387f5(0x176))/0x5)+parseInt(_0x1387f5(0x17c))/0x6+-parseInt(_0x1387f5(0x17a))/0x7*(parseInt(_0x1387f5(0x16e))/0x8)+-parseInt(_0x1387f5(0x185))/0x9+parseInt(_0x1387f5(0x171))/0xa*(parseInt(_0x1387f5(0x174))/0xb);if(_0x513f22===_0x19c4ed)break;else _0x531901['push'](_0x531901['shift']());}catch(_0x4c8d2b){_0x531901['push'](_0x531901['shift']());}}}(a86_0x331e,0x3b1ff));import{CLI_BIN_NAME}from'../constant/cli.js';function a86_0x1494(_0x2ae59a,_0xa4a34b){_0x2ae59a=_0x2ae59a-0x16c;const _0x331e49=a86_0x331e();let _0x14949a=_0x331e49[_0x2ae59a];return _0x14949a;}export function buildConfirmationLines(_0x2b0bd5,_0x8e71b1,_0x4c09cd){const _0x565b1a=a86_0x1494,_0x2e55dd=buildConfirmationContext(_0x2b0bd5,_0x8e71b1,_0x4c09cd),_0x254fca=['⚠\x20\x20High-risk\x20operation:\x20'+_0x2e55dd[_0x565b1a(0x189)]];return _0x2e55dd[_0x565b1a(0x188)]&&_0x254fca['push'](_0x565b1a(0x184)+_0x2e55dd[_0x565b1a(0x188)]),_0x2e55dd[_0x565b1a(0x18a)]&&_0x254fca['push'](_0x565b1a(0x182)+_0x2e55dd[_0x565b1a(0x18a)]),_0x254fca[_0x565b1a(0x17e)](_0x565b1a(0x181)),_0x254fca;}export function reconstructCommandArgv(_0x1b81c5,_0x1c2d1a){const _0x5821e9=a86_0x1494,_0x51227c=[CLI_BIN_NAME,_0x1b81c5[_0x5821e9(0x17f)],_0x1b81c5[_0x5821e9(0x16d)]];for(const [_0x4c73ad,_0x944e7f]of Object[_0x5821e9(0x173)](_0x1c2d1a)){if(_0x944e7f===!![])_0x51227c[_0x5821e9(0x17e)]('--'+_0x4c73ad);else _0x944e7f!==![]&&_0x944e7f!==undefined&&_0x944e7f!==''&&_0x51227c[_0x5821e9(0x17e)]('--'+_0x4c73ad+'\x20'+JSON['stringify'](_0x944e7f));}return _0x51227c[_0x5821e9(0x17e)](_0x5821e9(0x177)),_0x51227c[_0x5821e9(0x178)]('\x20');}function buildConfirmationContext(_0x52909d,_0x14f278,_0x15aa5c){const _0x5ce437=a86_0x1494,_0x3af860=extractAffectedRecords(_0x15aa5c);return{'commandLabel':_0x14f278,'description':_0x52909d[_0x5ce437(0x188)],'affectedRecords':_0x3af860};}function extractAffectedRecords(_0x52da32){const _0x551a50=a86_0x1494,_0x2830dd=[];if(_0x52da32[_0x551a50(0x17d)])_0x2830dd[_0x551a50(0x17e)](_0x551a50(0x180)+_0x52da32[_0x551a50(0x17d)]);if(_0x52da32['id'])_0x2830dd[_0x551a50(0x17e)](_0x551a50(0x179)+_0x52da32['id']);if(_0x52da32['name'])_0x2830dd[_0x551a50(0x17e)](_0x551a50(0x186)+_0x52da32[_0x551a50(0x175)]);if(_0x52da32['params'])_0x2830dd[_0x551a50(0x17e)](_0x551a50(0x172)+_0x52da32[_0x551a50(0x16f)]);return _0x2830dd[_0x551a50(0x187)]>0x0?_0x2830dd[_0x551a50(0x178)](',\x20'):undefined;}function a86_0x331e(){const _0x463147=['3111190WcRfXn','params=','entries','55eBGiuF','name','185PPYqzE','--yes','join','id=','539ZmUcah','414087MuwYpe','509418aLoZvm','code','push','service','code=','\x20\x20\x20Continue?\x20[y/N]\x20','\x20\x20\x20Affected:\x20','1779rmdsor','\x20\x20\x20','3228633UskiPp','name=','length','description','commandLabel','affectedRecords','17268TRXsuI','command','17032eRZgmX','params','1018pPwGVC'];a86_0x331e=function(){return _0x463147;};return a86_0x331e();}
@@ -1 +1 @@
1
- (function(_0xa803c8,_0xf1837f){const _0x1a8a02=a87_0x2c16,_0x4252d6=_0xa803c8();while(!![]){try{const _0x25a310=-parseInt(_0x1a8a02(0x171))/0x1*(-parseInt(_0x1a8a02(0x16d))/0x2)+-parseInt(_0x1a8a02(0x164))/0x3*(-parseInt(_0x1a8a02(0x170))/0x4)+-parseInt(_0x1a8a02(0x16f))/0x5*(-parseInt(_0x1a8a02(0x16e))/0x6)+-parseInt(_0x1a8a02(0x172))/0x7*(-parseInt(_0x1a8a02(0x162))/0x8)+parseInt(_0x1a8a02(0x16c))/0x9+parseInt(_0x1a8a02(0x16a))/0xa*(-parseInt(_0x1a8a02(0x168))/0xb)+parseInt(_0x1a8a02(0x163))/0xc*(-parseInt(_0x1a8a02(0x166))/0xd);if(_0x25a310===_0xf1837f)break;else _0x4252d6['push'](_0x4252d6['shift']());}catch(_0xb2cc4){_0x4252d6['push'](_0x4252d6['shift']());}}}(a87_0x19c5,0x590ff));import{LovrabetError}from'@lovrabet/sdk';function a87_0x19c5(){const _0x4d4d8c=['validation','3508884dvursp','2hFwjLJ','90jiePrz','129895pGFpYh','4mBLLSd','112487rOLvMa','21rvPojx','string','243728StoIzP','3324pFxaDv','555897GvVFAo','message','6799nMCmMX','stringify','2255GsnZqG','trim','32150EvtFWQ'];a87_0x19c5=function(){return _0x4d4d8c;};return a87_0x19c5();}function a87_0x2c16(_0x33db60,_0x596b6c){_0x33db60=_0x33db60-0x161;const _0x19c536=a87_0x19c5();let _0x2c165d=_0x19c536[_0x33db60];return _0x2c165d;}import{CliErrors}from'../errors.js';export function mapUserFacingExecuteError(_0x4af12b){const _0x93b9e1=a87_0x2c16;if(_0x4af12b instanceof LovrabetError)return CliErrors[_0x93b9e1(0x16b)](userFacingLovrabetMessage(_0x4af12b));return _0x4af12b;}function userFacingLovrabetMessage(_0x45a5b2){const _0x485d7d=a87_0x2c16,_0x24d354=_0x45a5b2['description'];if(_0x24d354!==undefined&&_0x24d354!==null){if(typeof _0x24d354===_0x485d7d(0x161)&&_0x24d354['trim']())return _0x24d354[_0x485d7d(0x169)]();try{return JSON[_0x485d7d(0x167)](_0x24d354);}catch{}}return _0x45a5b2[_0x485d7d(0x165)];}
1
+ (function(_0x15ff58,_0xce8b90){const _0x34639b=a87_0x588e,_0x299061=_0x15ff58();while(!![]){try{const _0x3f6142=-parseInt(_0x34639b(0x185))/0x1+-parseInt(_0x34639b(0x188))/0x2+parseInt(_0x34639b(0x18f))/0x3*(parseInt(_0x34639b(0x18a))/0x4)+-parseInt(_0x34639b(0x183))/0x5+-parseInt(_0x34639b(0x184))/0x6*(parseInt(_0x34639b(0x190))/0x7)+-parseInt(_0x34639b(0x181))/0x8+parseInt(_0x34639b(0x18d))/0x9*(parseInt(_0x34639b(0x18c))/0xa);if(_0x3f6142===_0xce8b90)break;else _0x299061['push'](_0x299061['shift']());}catch(_0xad0e9d){_0x299061['push'](_0x299061['shift']());}}}(a87_0xcd78,0x457c3));import{LovrabetError}from'@lovrabet/sdk';function a87_0xcd78(){const _0xdd19d=['830712bhqsXe','validation','2395540sshsqN','6aahegw','203375BaIskt','trim','stringify','545412RwiCnb','message','1995652ErMxJE','description','6116090rpQzon','18siPbXz','string','3XXOKen','2649444AnIRBa'];a87_0xcd78=function(){return _0xdd19d;};return a87_0xcd78();}import{CliErrors}from'../errors.js';export function mapUserFacingExecuteError(_0x63949b){const _0x17baf1=a87_0x588e;if(_0x63949b instanceof LovrabetError)return CliErrors[_0x17baf1(0x182)](userFacingLovrabetMessage(_0x63949b));return _0x63949b;}function a87_0x588e(_0x44aab9,_0x236286){_0x44aab9=_0x44aab9-0x181;const _0xcd7875=a87_0xcd78();let _0x588e56=_0xcd7875[_0x44aab9];return _0x588e56;}function userFacingLovrabetMessage(_0xd1f9aa){const _0x49759b=a87_0x588e,_0x4c9b76=_0xd1f9aa[_0x49759b(0x18b)];if(_0x4c9b76!==undefined&&_0x4c9b76!==null){if(typeof _0x4c9b76===_0x49759b(0x18e)&&_0x4c9b76['trim']())return _0x4c9b76[_0x49759b(0x186)]();try{return JSON[_0x49759b(0x187)](_0x4c9b76);}catch{}}return _0xd1f9aa[_0x49759b(0x189)];}