@lovrabet/lovrabet-cli 2.0.9-beta.7 → 2.0.10

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 (70) hide show
  1. package/lib/cli.js +1 -1
  2. package/lib/commands/app/cache.js +1 -1
  3. package/lib/commands/app/definitions.js +1 -1
  4. package/lib/commands/app/mock-loader.js +1 -1
  5. package/lib/commands/app/remote-source.js +1 -1
  6. package/lib/commands/app/shared.js +1 -1
  7. package/lib/commands/auth/index.js +1 -1
  8. package/lib/commands/auth/prompt.js +1 -1
  9. package/lib/commands/bff/detail.js +1 -1
  10. package/lib/commands/bff/exec.js +1 -1
  11. package/lib/commands/bff/index.js +1 -1
  12. package/lib/commands/common/config-policy.js +1 -1
  13. package/lib/commands/common/constraints.js +1 -1
  14. package/lib/commands/common/flags.js +1 -1
  15. package/lib/commands/config/definitions.js +1 -1
  16. package/lib/commands/config/shared.js +1 -1
  17. package/lib/commands/data/index.js +1 -1
  18. package/lib/commands/dataset/detail.js +1 -1
  19. package/lib/commands/dataset/index.js +1 -1
  20. package/lib/commands/dataset/list.js +1 -1
  21. package/lib/commands/doctor.js +1 -1
  22. package/lib/commands/init.js +1 -1
  23. package/lib/commands/kb/index.js +1 -1
  24. package/lib/commands/logs/index.js +1 -1
  25. package/lib/commands/registry.js +1 -1
  26. package/lib/commands/schema.js +1 -1
  27. package/lib/commands/skill/index.js +1 -1
  28. package/lib/commands/sql/detail.js +1 -1
  29. package/lib/commands/sql/exec.js +1 -1
  30. package/lib/commands/sql/index.js +1 -1
  31. package/lib/commands/update.js +1 -1
  32. package/lib/config/schema.js +1 -1
  33. package/lib/constant/auth-mode.js +1 -1
  34. package/lib/constant/cli.js +1 -1
  35. package/lib/constant/defaults.js +1 -1
  36. package/lib/constant/distribution.js +1 -1
  37. package/lib/constant/domain.js +1 -1
  38. package/lib/constant/env.js +1 -1
  39. package/lib/constant/output.js +1 -1
  40. package/lib/constant/product.js +1 -1
  41. package/lib/constant/risk.js +1 -1
  42. package/lib/constant/url.js +1 -1
  43. package/lib/context.js +1 -1
  44. package/lib/core/api-client.js +1 -1
  45. package/lib/core/db-resolver.js +1 -1
  46. package/lib/core/sdk-client.js +1 -1
  47. package/lib/errors.js +1 -1
  48. package/lib/framework/build-all-flags.js +1 -1
  49. package/lib/framework/dryrun.js +1 -1
  50. package/lib/framework/flags.js +1 -1
  51. package/lib/framework/help.js +1 -1
  52. package/lib/framework/index.js +1 -1
  53. package/lib/framework/output.js +1 -1
  54. package/lib/framework/preparse.js +1 -1
  55. package/lib/framework/response.js +1 -1
  56. package/lib/framework/runner-confirmation.js +1 -1
  57. package/lib/framework/runner-error.js +1 -1
  58. package/lib/framework/runner.js +1 -1
  59. package/lib/framework/schema-export.js +1 -1
  60. package/lib/framework/types.js +1 -1
  61. package/lib/help.js +1 -1
  62. package/lib/skills/npx-skills-add.js +1 -1
  63. package/lib/skills/runtime-skill-sync.js +1 -1
  64. package/lib/utils/apply-jq-filter.js +1 -1
  65. package/lib/utils/logger.js +1 -1
  66. package/lib/utils/params.js +1 -1
  67. package/lib/utils/platform.js +1 -1
  68. package/lib/utils/version.js +1 -1
  69. package/lib/utils/write-cli-side-channel.js +1 -1
  70. package/package.json +3 -3
@@ -1 +1 @@
1
- const a28_0x35c363=a28_0x44f9;(function(_0x1cdd1f,_0x24072e){const _0x192b25=a28_0x44f9,_0x3e5c9a=_0x1cdd1f();while(!![]){try{const _0x54febe=-parseInt(_0x192b25(0x75))/0x1+parseInt(_0x192b25(0x73))/0x2*(-parseInt(_0x192b25(0x66))/0x3)+-parseInt(_0x192b25(0x76))/0x4+-parseInt(_0x192b25(0x72))/0x5+-parseInt(_0x192b25(0x6b))/0x6*(parseInt(_0x192b25(0x71))/0x7)+parseInt(_0x192b25(0x6f))/0x8+-parseInt(_0x192b25(0x7a))/0x9*(-parseInt(_0x192b25(0x68))/0xa);if(_0x54febe===_0x24072e)break;else _0x3e5c9a['push'](_0x3e5c9a['shift']());}catch(_0x4130ef){_0x3e5c9a['push'](_0x3e5c9a['shift']());}}}(a28_0x2227,0x55368));function a28_0x44f9(_0x30e811,_0x414986){_0x30e811=_0x30e811-0x64;const _0x2227a7=a28_0x2227();let _0x44f9e0=_0x2227a7[_0x30e811];return _0x44f9e0;}import{executeSdkSql}from'../../core/sdk-client.js';import{SQLCODE_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';import{parseJsonParams}from'../../utils/params.js';function a28_0x2227(){const _0x2e33af=['SQL\x20execution\x20failed','3542512kyEFWj','length','1153362ZRElnN','595BcyhSa','18zkCTOV','str','522430JyLsPH','1602204cwkZMH','execError','params','read','13662603AAjjNV','sqlcode','\x20row(s)\x20in\x20','119739pRImLJ','now','10fImmCe','sql','Returned\x20','12PJzyHU','execSuccess','exec'];a28_0x2227=function(){return _0x2e33af;};return a28_0x2227();}export const sqlExec={'service':a28_0x35c363(0x69),'command':a28_0x35c363(0x6d),'description':'Execute\x20a\x20custom\x20SQL\x20query\x20by\x20sqlCode','risk':a28_0x35c363(0x79),'flags':[SQLCODE_FLAG,PARAMS_FLAG],async 'execute'(_0x1c5f94){const _0x437196=a28_0x35c363,_0x2524f2=parseJsonParams(_0x1c5f94['str'](_0x437196(0x78))),_0xead59a=Date[_0x437196(0x67)](),_0x514cf6=await executeSdkSql(_0x1c5f94[_0x437196(0x74)](_0x437196(0x64)),_0x2524f2),_0x1588ba=Date[_0x437196(0x67)]()-_0xead59a,_0x2bb1bf=_0x514cf6?.['execResult']??_0x514cf6,_0xbd7232=_0x514cf6?.[_0x437196(0x6c)]??!![];if(!_0xbd7232)return{'ok':![],'data':{'error':_0x514cf6?.[_0x437196(0x77)]||_0x437196(0x6e),'elapsed':_0x1588ba},'message':'SQL\x20execution\x20failed'};const _0x24536f=Array['isArray'](_0x2bb1bf)?_0x2bb1bf:[];return{'ok':!![],'data':{'rows':_0x24536f,'rowCount':_0x24536f['length'],'elapsed':_0x1588ba},'message':_0x437196(0x6a)+_0x24536f[_0x437196(0x70)]+_0x437196(0x65)+_0x1588ba+'ms'};}};
1
+ const a28_0x13e78c=a28_0x3537;(function(_0x1796c3,_0x3a88e6){const _0x3c2b17=a28_0x3537,_0x4326dc=_0x1796c3();while(!![]){try{const _0x130b18=-parseInt(_0x3c2b17(0x1ab))/0x1+parseInt(_0x3c2b17(0x19b))/0x2+parseInt(_0x3c2b17(0x1a9))/0x3+parseInt(_0x3c2b17(0x1a6))/0x4+-parseInt(_0x3c2b17(0x1aa))/0x5*(parseInt(_0x3c2b17(0x1a4))/0x6)+parseInt(_0x3c2b17(0x19c))/0x7+-parseInt(_0x3c2b17(0x19f))/0x8;if(_0x130b18===_0x3a88e6)break;else _0x4326dc['push'](_0x4326dc['shift']());}catch(_0x3c3f20){_0x4326dc['push'](_0x4326dc['shift']());}}}(a28_0x2618,0x75b0f));import{executeSdkSql}from'../../core/sdk-client.js';import{SQLCODE_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';function a28_0x2618(){const _0xb1d79f=['614130OkoFMa','execResult','sqlcode','now','1732060mwpwuR','5316542LmbLAC','execSuccess','str','9053336GXVPfZ','Returned\x20','Execute\x20a\x20custom\x20SQL\x20query\x20by\x20sqlCode','exec','params','5656854SUPsNP','SQL\x20execution\x20failed','3196068BJOGOq','sql','length','2238348OdhnGx','5unTQNS'];a28_0x2618=function(){return _0xb1d79f;};return a28_0x2618();}function a28_0x3537(_0x20804c,_0x33c251){_0x20804c=_0x20804c-0x19a;const _0x2618a9=a28_0x2618();let _0x3537ed=_0x2618a9[_0x20804c];return _0x3537ed;}import{parseJsonParams}from'../../utils/params.js';export const sqlExec={'service':a28_0x13e78c(0x1a7),'command':a28_0x13e78c(0x1a2),'description':a28_0x13e78c(0x1a1),'risk':'read','flags':[SQLCODE_FLAG,PARAMS_FLAG],async 'execute'(_0x1ec3fb){const _0x38d285=a28_0x13e78c,_0x6bf9fb=parseJsonParams(_0x1ec3fb[_0x38d285(0x19e)](_0x38d285(0x1a3))),_0x18165e=Date[_0x38d285(0x19a)](),_0x4019f4=await executeSdkSql(_0x1ec3fb['str'](_0x38d285(0x1ad)),_0x6bf9fb),_0x572e3e=Date[_0x38d285(0x19a)]()-_0x18165e,_0x465579=_0x4019f4?.[_0x38d285(0x1ac)]??_0x4019f4,_0x173f7e=_0x4019f4?.[_0x38d285(0x19d)]??!![];if(!_0x173f7e)return{'ok':![],'data':{'error':_0x4019f4?.['execError']||_0x38d285(0x1a5),'elapsed':_0x572e3e},'message':_0x38d285(0x1a5)};const _0x267b17=Array['isArray'](_0x465579)?_0x465579:[];return{'ok':!![],'data':{'rows':_0x267b17,'rowCount':_0x267b17[_0x38d285(0x1a8)],'elapsed':_0x572e3e},'message':_0x38d285(0x1a0)+_0x267b17[_0x38d285(0x1a8)]+'\x20row(s)\x20in\x20'+_0x572e3e+'ms'};}};
@@ -1 +1 @@
1
- function a29_0x45bd(){const _0x3023af=['1184HcxzZk','19881OZwqmA','5130830wZjWXg','1256832kMuIAR','7651cTmApF','1032jxpXzJ','6694450fhWTqv','10CzzHGI','1720400qqnCWQ','128JtKkLW'];a29_0x45bd=function(){return _0x3023af;};return a29_0x45bd();}function a29_0x2936(_0x20890e,_0x57646d){_0x20890e=_0x20890e-0x1bd;const _0x45bdd6=a29_0x45bd();let _0x293641=_0x45bdd6[_0x20890e];return _0x293641;}(function(_0x38cf98,_0x54e7c6){const _0x145856=a29_0x2936,_0x464078=_0x38cf98();while(!![]){try{const _0x258be0=-parseInt(_0x145856(0x1c2))/0x1*(-parseInt(_0x145856(0x1c5))/0x2)+-parseInt(_0x145856(0x1c3))/0x3*(parseInt(_0x145856(0x1be))/0x4)+parseInt(_0x145856(0x1c6))/0x5+-parseInt(_0x145856(0x1c1))/0x6+parseInt(_0x145856(0x1c4))/0x7+parseInt(_0x145856(0x1bd))/0x8*(parseInt(_0x145856(0x1bf))/0x9)+-parseInt(_0x145856(0x1c0))/0xa;if(_0x258be0===_0x54e7c6)break;else _0x464078['push'](_0x464078['shift']());}catch(_0x89a992){_0x464078['push'](_0x464078['shift']());}}}(a29_0x45bd,0x86312));import{sqlDetail}from'../../commands/sql/detail.js';import{sqlExec}from'../../commands/sql/exec.js';export const sqlDefinitions=[sqlDetail,sqlExec];
1
+ (function(_0x4899b0,_0x1defe6){const _0x238cc4=a29_0x2c69,_0x138a9d=_0x4899b0();while(!![]){try{const _0x4d6ae1=parseInt(_0x238cc4(0x143))/0x1*(parseInt(_0x238cc4(0x142))/0x2)+parseInt(_0x238cc4(0x14b))/0x3+parseInt(_0x238cc4(0x149))/0x4*(-parseInt(_0x238cc4(0x147))/0x5)+parseInt(_0x238cc4(0x146))/0x6*(-parseInt(_0x238cc4(0x145))/0x7)+parseInt(_0x238cc4(0x14a))/0x8*(parseInt(_0x238cc4(0x148))/0x9)+-parseInt(_0x238cc4(0x14c))/0xa+-parseInt(_0x238cc4(0x144))/0xb;if(_0x4d6ae1===_0x1defe6)break;else _0x138a9d['push'](_0x138a9d['shift']());}catch(_0x1ca1c7){_0x138a9d['push'](_0x138a9d['shift']());}}}(a29_0x1ab1,0x52034));import{sqlDetail}from'../../commands/sql/detail.js';import{sqlExec}from'../../commands/sql/exec.js';function a29_0x2c69(_0x19708c,_0x199e93){_0x19708c=_0x19708c-0x142;const _0x1ab1bc=a29_0x1ab1();let _0x2c692c=_0x1ab1bc[_0x19708c];return _0x2c692c;}function a29_0x1ab1(){const _0x5ce1c=['60LHtSTy','650TGAjzZ','36LsSsgC','7916FqYbro','868648JrNFRe','1285344oioOkK','3337860ZATykk','19844diMZbr','39iikJwq','164780KPUwsS','215439fGlfAL'];a29_0x1ab1=function(){return _0x5ce1c;};return a29_0x1ab1();}export const sqlDefinitions=[sqlDetail,sqlExec];
@@ -1 +1 @@
1
- const a30_0x45a71b=a30_0x26b3;(function(_0x17c6ee,_0x59743d){const _0x30280b=a30_0x26b3,_0x16ae68=_0x17c6ee();while(!![]){try{const _0x5604b9=-parseInt(_0x30280b(0x235))/0x1+parseInt(_0x30280b(0x1fd))/0x2+parseInt(_0x30280b(0x20a))/0x3+-parseInt(_0x30280b(0x20e))/0x4+-parseInt(_0x30280b(0x215))/0x5+-parseInt(_0x30280b(0x1f4))/0x6+parseInt(_0x30280b(0x226))/0x7*(parseInt(_0x30280b(0x224))/0x8);if(_0x5604b9===_0x59743d)break;else _0x16ae68['push'](_0x16ae68['shift']());}catch(_0x6390f9){_0x16ae68['push'](_0x16ae68['shift']());}}}(a30_0xb54d,0xf4051));import{spawnSync}from'node:child_process';import{CliErrors}from'../errors.js';import{CLI_BIN_NAME}from'../constant/cli.js';import{LOVRABET_NPM_PACKAGE_NAME,LOVRABET_SKILL_SOURCE,NPM_REGISTRY_BASE_URL}from'../constant/distribution.js';import{resolveNpmBin}from'../utils/platform.js';import{getCliVersion}from'../utils/version.js';import{LOVRABET_SKIP_NPX_SKILLS_ENV,runNpxSkillsAddGlobal}from'../skills/npx-skills-add.js';const updateFlags=[{'name':a30_0x45a71b(0x1f8),'type':'boolean','description':a30_0x45a71b(0x21b),'default':![]},{'name':a30_0x45a71b(0x209),'type':a30_0x45a71b(0x21a),'description':a30_0x45a71b(0x201),'default':![]},{'name':a30_0x45a71b(0x230),'type':'string','description':a30_0x45a71b(0x1ff)},{'name':a30_0x45a71b(0x222),'type':'boolean','description':a30_0x45a71b(0x1fa),'default':![]},{'name':a30_0x45a71b(0x20f),'type':a30_0x45a71b(0x21a),'description':'Refresh\x20official\x20skill\x20package\x20after\x20updating','default':!![],'hidden':!![]}];function parseSemver(_0x397f0a){const _0x5e21f0=a30_0x45a71b,_0x1d2483=_0x397f0a[_0x5e21f0(0x22b)]()['match'](/^(\d+)\.(\d+)\.(\d+)(?:-([0-9A-Za-z.-]+))?$/);if(!_0x1d2483)return null;return{'major':Number(_0x1d2483[0x1]),'minor':Number(_0x1d2483[0x2]),'patch':Number(_0x1d2483[0x3]),'prerelease':_0x1d2483[0x4]};}function compareSemver(_0x174a39,_0x1b19de){const _0x4558c8=a30_0x45a71b,_0x27758a=parseSemver(_0x174a39),_0xdff99a=parseSemver(_0x1b19de);if(!_0x27758a||!_0xdff99a)throw CliErrors[_0x4558c8(0x211)](_0x4558c8(0x21f),'Use\x20full\x20semver\x20versions\x20such\x20as\x202.0.6\x20or\x202.0.7-beta.1.');for(const _0x3f5ae8 of['major','minor','patch']){if(_0x27758a[_0x3f5ae8]<_0xdff99a[_0x3f5ae8])return-0x1;if(_0x27758a[_0x3f5ae8]>_0xdff99a[_0x3f5ae8])return 0x1;}if(!_0x27758a[_0x4558c8(0x221)]&&!_0xdff99a[_0x4558c8(0x221)])return 0x0;if(!_0x27758a[_0x4558c8(0x221)])return 0x1;if(!_0xdff99a[_0x4558c8(0x221)])return-0x1;if(_0x27758a[_0x4558c8(0x221)]===_0xdff99a[_0x4558c8(0x221)])return 0x0;return _0x27758a[_0x4558c8(0x221)]<_0xdff99a[_0x4558c8(0x221)]?-0x1:0x1;}function a30_0x26b3(_0x1321e0,_0x5173ba){_0x1321e0=_0x1321e0-0x1f3;const _0xb54d87=a30_0xb54d();let _0x26b354=_0xb54d87[_0x1321e0];return _0x26b354;}function getRequestedVersion(_0x19be87){const _0x57af01=a30_0x45a71b,_0x21d2d3=_0x19be87[_0x57af01(0x220)](_0x57af01(0x230))[_0x57af01(0x22b)]();if(_0x21d2d3)return _0x21d2d3;return String(_0x19be87['args']?.[0x0]??'')[_0x57af01(0x22b)]();}function shouldSkipOfficialSkill(_0x22e9d0){const _0x1de045=a30_0x45a71b;return _0x22e9d0['bool'](_0x1de045(0x222))||_0x22e9d0[_0x1de045(0x216)](_0x1de045(0x20f))===![];}async function validateUpdateFlags(_0x5a27ad){const _0x4df19e=a30_0x45a71b,_0x29d4b8=getRequestedVersion(_0x5a27ad),_0x208f86=[_0x5a27ad[_0x4df19e(0x219)](_0x4df19e(0x1f8))?'latest':'',_0x5a27ad[_0x4df19e(0x219)](_0x4df19e(0x209))?_0x4df19e(0x209):'',_0x29d4b8?'version':''][_0x4df19e(0x1f3)](Boolean);if(_0x208f86[_0x4df19e(0x217)]>0x1)throw CliErrors[_0x4df19e(0x211)](_0x4df19e(0x1fe),'Choose\x20exactly\x20one\x20target:\x20--latest,\x20--beta,\x20or\x20--version\x20<version>.');if(_0x29d4b8&&!parseSemver(_0x29d4b8))throw CliErrors[_0x4df19e(0x211)](_0x4df19e(0x229)+_0x29d4b8,'Use\x20a\x20full\x20semver\x20such\x20as\x202.0.6\x20or\x202.0.7-beta.1.');}async function fetchNpmDistTags(){const _0x390d46=a30_0x45a71b;try{const _0x327a8e=NPM_REGISTRY_BASE_URL+'/-/package/'+encodeURIComponent(LOVRABET_NPM_PACKAGE_NAME)+'/dist-tags',_0x15dbd8=await fetch(_0x327a8e,{'signal':AbortSignal[_0x390d46(0x218)](0x2710)});if(!_0x15dbd8['ok'])return null;const _0x10e0f2=await _0x15dbd8[_0x390d46(0x208)]();if(!_0x10e0f2||typeof _0x10e0f2!=='object')return null;return Object[_0x390d46(0x206)](Object['entries'](_0x10e0f2)[_0x390d46(0x1f3)](([,_0x4352b5])=>typeof _0x4352b5===_0x390d46(0x233)&&_0x4352b5['trim']())[_0x390d46(0x20d)](([_0x73bac8,_0x1befc8])=>[_0x73bac8,String(_0x1befc8)['trim']()]));}catch{return null;}}async function resolveTargetVersion(_0x1a0099){const _0x1d2f0b=a30_0x45a71b,_0x51c492=getRequestedVersion(_0x1a0099);if(_0x51c492)return{'version':_0x51c492,'source':'version'};const _0x102c66=_0x1a0099[_0x1d2f0b(0x219)](_0x1d2f0b(0x209))?_0x1d2f0b(0x209):'latest',_0x4d9ff4=await fetchNpmDistTags(),_0x4c27e2=_0x4d9ff4?.[_0x102c66];if(!_0x4c27e2)return null;return{'version':_0x4c27e2,'source':_0x102c66};}function shouldInstallTarget(_0x547307,_0x94913e){const _0x1204a5=a30_0x45a71b,_0x230e7a=compareSemver(_0x547307,_0x94913e['version']);if(_0x94913e[_0x1204a5(0x21d)]==='version')return _0x230e7a!==0x0;return _0x230e7a<0x0;}function installCliPackage(_0x2b36d2,_0x4360a6){const _0x1218c6=a30_0x45a71b,_0x2a322d=resolveNpmBin(_0x1218c6(0x212)),_0x460e8f=['install','-g',LOVRABET_NPM_PACKAGE_NAME+'@'+_0x2b36d2];console['log']('*\x20'+[_0x2a322d,..._0x460e8f]['join']('\x20'));const _0x12761e=spawnSync(_0x2a322d,_0x460e8f,{'cwd':process[_0x1218c6(0x225)](),'stdio':_0x4360a6?_0x1218c6(0x207):'inherit','env':process.env,'shell':![]});if(_0x12761e[_0x1218c6(0x22e)]===0x0)return{'ok':!![]};let _0x4c4b89=_0x12761e[_0x1218c6(0x22d)]?.[_0x1218c6(0x22c)]||'exit\x20'+(_0x12761e[_0x1218c6(0x22e)]??_0x1218c6(0x232));if(_0x4360a6){const _0x407673=_0x12761e[_0x1218c6(0x214)]?_0x12761e[_0x1218c6(0x214)][_0x1218c6(0x231)]()[_0x1218c6(0x22b)]():'',_0x1bc435=_0x12761e[_0x1218c6(0x202)]?_0x12761e[_0x1218c6(0x202)][_0x1218c6(0x231)]()[_0x1218c6(0x22b)]():'';if(_0x407673)_0x4c4b89=_0x407673;else{if(_0x1bc435)_0x4c4b89=_0x1bc435;}}return{'ok':![],'error':_0x4c4b89};}async function installOfficialSkill(_0x3abb45){const _0x30ddc8=a30_0x45a71b;console[_0x30ddc8(0x200)]('Checking\x20official\x20skill\x20package...');const _0x2d5204=runNpxSkillsAddGlobal(process[_0x30ddc8(0x225)](),LOVRABET_SKILL_SOURCE,{'stdio':_0x3abb45?_0x30ddc8(0x207):'inherit'});if(_0x2d5204[_0x30ddc8(0x1fb)]){console[_0x30ddc8(0x200)](_0x30ddc8(0x204)+LOVRABET_SKIP_NPX_SKILLS_ENV+_0x30ddc8(0x1f6));return;}if(_0x2d5204['ok']){console[_0x30ddc8(0x200)](_0x30ddc8(0x228));return;}console['warn']('\x20\x20Official\x20skill\x20update\x20failed:\x20'+(_0x2d5204['error']||_0x30ddc8(0x232))),console[_0x30ddc8(0x200)](_0x30ddc8(0x20b)+LOVRABET_SKILL_SOURCE+_0x30ddc8(0x20c));}async function execute(_0x149099){const _0x42213a=a30_0x45a71b;await validateUpdateFlags(_0x149099);const _0x5db16c=getCliVersion();console[_0x42213a(0x200)](_0x42213a(0x213)+_0x5db16c),console[_0x42213a(0x200)](_0x42213a(0x205));const _0x307d69=await resolveTargetVersion(_0x149099);if(!_0x307d69){const _0x61d9de=_0x149099[_0x42213a(0x219)](_0x42213a(0x209))?_0x42213a(0x209):'latest',_0x1fc0d4=_0x42213a(0x234)+_0x61d9de+_0x42213a(0x1f5);return console[_0x42213a(0x223)](_0x1fc0d4),console['log']('\x20\x20Run\x20manually:\x20npm\x20install\x20-g\x20'+LOVRABET_NPM_PACKAGE_NAME+'@'+_0x61d9de),{'ok':![]};}if(!shouldInstallTarget(_0x5db16c,_0x307d69)){const _0xab8777=_0x307d69[_0x42213a(0x21d)]==='version'?_0x42213a(0x203)+_0x307d69[_0x42213a(0x230)]+').':'Already\x20up\x20to\x20date\x20(v'+_0x307d69[_0x42213a(0x230)]+').';return console[_0x42213a(0x200)](_0xab8777),shouldSkipOfficialSkill(_0x149099)?console[_0x42213a(0x200)](_0x42213a(0x1f9)):await installOfficialSkill(_0x149099[_0x42213a(0x22f)]),{'ok':!![]};}console[_0x42213a(0x200)]('Updating\x20'+LOVRABET_NPM_PACKAGE_NAME+':\x20'+_0x5db16c+_0x42213a(0x1f7)+_0x307d69[_0x42213a(0x230)]);const _0x374876=installCliPackage(_0x307d69[_0x42213a(0x230)],_0x149099['nonInteractive']);if(!_0x374876['ok']){const _0x3b5735=_0x42213a(0x22a)+(_0x374876['error']||_0x42213a(0x232));return console['error'](_0x3b5735),console['log']('\x20\x20Try\x20manually:\x20npm\x20install\x20-g\x20'+LOVRABET_NPM_PACKAGE_NAME+'@'+_0x307d69[_0x42213a(0x230)]),{'ok':![]};}return console[_0x42213a(0x200)](_0x42213a(0x21e)+_0x307d69[_0x42213a(0x230)]+'.'),console[_0x42213a(0x200)]('\x20\x20Restart\x20your\x20terminal\x20to\x20use\x20the\x20new\x20version.'),shouldSkipOfficialSkill(_0x149099)?console['log']('Skipping\x20official\x20skill\x20package\x20(--no-skills).'):await installOfficialSkill(_0x149099[_0x42213a(0x22f)]),{'ok':!![]};}function a30_0xb54d(){const _0x3371c9=['567669bIsnJP','filter','9649098JqOLWG','\x20version\x20from\x20npm.','=1).','\x20->\x20','latest','Skipping\x20official\x20skill\x20package\x20(--no-skills).','Skip\x20official\x20skill\x20package\x20refresh\x20after\x20updating','skipped','update','380834ibsIMT','--latest,\x20--beta,\x20and\x20version\x20cannot\x20be\x20used\x20together.','Install\x20a\x20specific\x20CLI\x20version','log','Install\x20the\x20version\x20from\x20npm\x20beta\x20dist-tag','stdout','Already\x20on\x20requested\x20version\x20(v','\x20\x20Skipped\x20skill\x20install\x20(','Checking\x20npm\x20dist-tags...','fromEntries','pipe','json','beta','1906632CsDrIk','\x20\x20Run\x20manually:\x20npx\x20skills\x20add\x20','\x20-g\x20-y','map','4981540PpKYkv','skills','Update\x20','validation','npm','Current\x20version:\x20','stderr','7135025lXfFFi','flag','length','timeout','bool','boolean','Install\x20the\x20version\x20from\x20npm\x20latest\x20dist-tag','\x20CLI\x20from\x20npm','source','Updated\x20to\x20v','Version\x20comparison\x20failed.','str','prerelease','no-skills','warn','8QcvAZk','cwd','35152502OXNExI','write','\x20\x20Official\x20skill\x20package\x20is\x20up\x20to\x20date.','Invalid\x20version:\x20','Update\x20failed:\x20','trim','message','error','status','nonInteractive','version','toString','unknown','string','Unable\x20to\x20resolve\x20'];a30_0xb54d=function(){return _0x3371c9;};return a30_0xb54d();}export const updateDefinition={'service':a30_0x45a71b(0x1fc),'command':'run','description':a30_0x45a71b(0x210)+CLI_BIN_NAME+a30_0x45a71b(0x21c),'risk':a30_0x45a71b(0x227),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':updateFlags,'validate':validateUpdateFlags,'execute':execute};
1
+ const a30_0x1ceb9a=a30_0x3206;(function(_0x62412b,_0x19a7d8){const _0x4ae946=a30_0x3206,_0x2e3ac8=_0x62412b();while(!![]){try{const _0xa783fe=-parseInt(_0x4ae946(0x235))/0x1*(-parseInt(_0x4ae946(0x224))/0x2)+parseInt(_0x4ae946(0x219))/0x3+parseInt(_0x4ae946(0x208))/0x4*(parseInt(_0x4ae946(0x21e))/0x5)+-parseInt(_0x4ae946(0x206))/0x6*(-parseInt(_0x4ae946(0x236))/0x7)+-parseInt(_0x4ae946(0x21d))/0x8+parseInt(_0x4ae946(0x1f9))/0x9+-parseInt(_0x4ae946(0x1f5))/0xa;if(_0xa783fe===_0x19a7d8)break;else _0x2e3ac8['push'](_0x2e3ac8['shift']());}catch(_0x17ebff){_0x2e3ac8['push'](_0x2e3ac8['shift']());}}}(a30_0x3626,0xe37f6));import{spawnSync}from'node:child_process';import{CliErrors}from'../errors.js';import{CLI_BIN_NAME}from'../constant/cli.js';import{LOVRABET_NPM_PACKAGE_NAME,LOVRABET_SKILL_SOURCE,NPM_REGISTRY_BASE_URL}from'../constant/distribution.js';import{resolveNpmBin}from'../utils/platform.js';import{getCliVersion}from'../utils/version.js';import{LOVRABET_SKIP_NPX_SKILLS_ENV,runNpxSkillsAddGlobal}from'../skills/npx-skills-add.js';const updateFlags=[{'name':a30_0x1ceb9a(0x237),'type':'boolean','description':a30_0x1ceb9a(0x22c),'default':![]},{'name':a30_0x1ceb9a(0x1ff),'type':'boolean','description':a30_0x1ceb9a(0x1f8),'default':![]},{'name':a30_0x1ceb9a(0x21b),'type':a30_0x1ceb9a(0x214),'description':a30_0x1ceb9a(0x1fc)},{'name':a30_0x1ceb9a(0x240),'type':a30_0x1ceb9a(0x211),'description':'Skip\x20official\x20skill\x20package\x20refresh\x20after\x20updating','default':![]},{'name':'skills','type':a30_0x1ceb9a(0x211),'description':a30_0x1ceb9a(0x1fd),'default':!![],'hidden':!![]}];function parseSemver(_0x3818bf){const _0x2dda61=a30_0x1ceb9a,_0x39fb82=_0x3818bf[_0x2dda61(0x22d)]()[_0x2dda61(0x20e)](/^(\d+)\.(\d+)\.(\d+)(?:-([0-9A-Za-z.-]+))?$/);if(!_0x39fb82)return null;return{'major':Number(_0x39fb82[0x1]),'minor':Number(_0x39fb82[0x2]),'patch':Number(_0x39fb82[0x3]),'prerelease':_0x39fb82[0x4]};}function compareSemver(_0x3da3cc,_0x11ba5f){const _0xdbeff6=a30_0x1ceb9a,_0x1dbd2f=parseSemver(_0x3da3cc),_0x1a0daf=parseSemver(_0x11ba5f);if(!_0x1dbd2f||!_0x1a0daf)throw CliErrors[_0xdbeff6(0x23b)](_0xdbeff6(0x23e),_0xdbeff6(0x207));for(const _0x3e21ac of[_0xdbeff6(0x230),_0xdbeff6(0x20f),_0xdbeff6(0x229)]){if(_0x1dbd2f[_0x3e21ac]<_0x1a0daf[_0x3e21ac])return-0x1;if(_0x1dbd2f[_0x3e21ac]>_0x1a0daf[_0x3e21ac])return 0x1;}if(!_0x1dbd2f[_0xdbeff6(0x23c)]&&!_0x1a0daf['prerelease'])return 0x0;if(!_0x1dbd2f[_0xdbeff6(0x23c)])return 0x1;if(!_0x1a0daf[_0xdbeff6(0x23c)])return-0x1;if(_0x1dbd2f[_0xdbeff6(0x23c)]===_0x1a0daf[_0xdbeff6(0x23c)])return 0x0;return _0x1dbd2f[_0xdbeff6(0x23c)]<_0x1a0daf[_0xdbeff6(0x23c)]?-0x1:0x1;}function getRequestedVersion(_0x86e3e8){const _0x2c04d3=a30_0x1ceb9a,_0x5e371c=_0x86e3e8['str'](_0x2c04d3(0x21b))[_0x2c04d3(0x22d)]();if(_0x5e371c)return _0x5e371c;return String(_0x86e3e8[_0x2c04d3(0x212)]?.[0x0]??'')[_0x2c04d3(0x22d)]();}function shouldSkipOfficialSkill(_0x35d272){const _0x305a06=a30_0x1ceb9a;return _0x35d272['bool'](_0x305a06(0x240))||_0x35d272[_0x305a06(0x234)]('skills')===![];}async function validateUpdateFlags(_0x569296){const _0xd98942=a30_0x1ceb9a,_0x21769b=getRequestedVersion(_0x569296),_0x37fe74=[_0x569296['bool'](_0xd98942(0x237))?'latest':'',_0x569296[_0xd98942(0x213)]('beta')?_0xd98942(0x1ff):'',_0x21769b?_0xd98942(0x21b):''][_0xd98942(0x22b)](Boolean);if(_0x37fe74[_0xd98942(0x1f2)]>0x1)throw CliErrors['validation'](_0xd98942(0x209),_0xd98942(0x1fa));if(_0x21769b&&!parseSemver(_0x21769b))throw CliErrors[_0xd98942(0x23b)]('Invalid\x20version:\x20'+_0x21769b,_0xd98942(0x225));}async function fetchNpmDistTags(){const _0x43aa25=a30_0x1ceb9a;try{const _0x1b3cda=NPM_REGISTRY_BASE_URL+_0x43aa25(0x210)+encodeURIComponent(LOVRABET_NPM_PACKAGE_NAME)+_0x43aa25(0x215),_0x32ca96=await fetch(_0x1b3cda,{'signal':AbortSignal[_0x43aa25(0x239)](0x2710)});if(!_0x32ca96['ok'])return null;const _0x3e77fd=await _0x32ca96[_0x43aa25(0x20c)]();if(!_0x3e77fd||typeof _0x3e77fd!==_0x43aa25(0x1f6))return null;return Object['fromEntries'](Object[_0x43aa25(0x1fb)](_0x3e77fd)['filter'](([,_0x1279ac])=>typeof _0x1279ac===_0x43aa25(0x214)&&_0x1279ac['trim']())[_0x43aa25(0x204)](([_0x4d7de4,_0x3b4fcc])=>[_0x4d7de4,String(_0x3b4fcc)[_0x43aa25(0x22d)]()]));}catch{return null;}}async function resolveTargetVersion(_0x552299){const _0x4aea7b=a30_0x1ceb9a,_0x208cc4=getRequestedVersion(_0x552299);if(_0x208cc4)return{'version':_0x208cc4,'source':_0x4aea7b(0x21b)};const _0x5114e8=_0x552299[_0x4aea7b(0x213)](_0x4aea7b(0x1ff))?_0x4aea7b(0x1ff):_0x4aea7b(0x237),_0xbcc524=await fetchNpmDistTags(),_0x4785f3=_0xbcc524?.[_0x5114e8];if(!_0x4785f3)return null;return{'version':_0x4785f3,'source':_0x5114e8};}function shouldInstallTarget(_0x246f86,_0x3a10de){const _0x27288e=a30_0x1ceb9a,_0x335570=compareSemver(_0x246f86,_0x3a10de[_0x27288e(0x21b)]);if(_0x3a10de[_0x27288e(0x221)]===_0x27288e(0x21b))return _0x335570!==0x0;return _0x335570<0x0;}function a30_0x3626(){const _0x3c4a5c=['/dist-tags','nonInteractive','error','Unable\x20to\x20resolve\x20','712515kIxvbY','update','version','Updated\x20to\x20v','9985224VxsEKK','127185WYDRZp','\x20\x20Try\x20manually:\x20npm\x20install\x20-g\x20','Checking\x20npm\x20dist-tags...','source','join','warn','55394gmmyxd','Use\x20a\x20full\x20semver\x20such\x20as\x202.0.6\x20or\x202.0.7-beta.1.','run','unknown','\x20\x20Run\x20manually:\x20npx\x20skills\x20add\x20','patch','npm','filter','Install\x20the\x20version\x20from\x20npm\x20latest\x20dist-tag','trim','\x20\x20Official\x20skill\x20package\x20is\x20up\x20to\x20date.','cwd','major','stderr','toString','pipe','flag','49sDNIrM','14qnJgHu','latest','Update\x20failed:\x20','timeout','inherit','validation','prerelease','\x20\x20Official\x20skill\x20update\x20failed:\x20','Version\x20comparison\x20failed.','status','no-skills','length','exit\x20','\x20\x20Restart\x20your\x20terminal\x20to\x20use\x20the\x20new\x20version.','18300930nkVvYk','object','log','Install\x20the\x20version\x20from\x20npm\x20beta\x20dist-tag','10198323ZvFquP','Choose\x20exactly\x20one\x20target:\x20--latest,\x20--beta,\x20or\x20--version\x20<version>.','entries','Install\x20a\x20specific\x20CLI\x20version','Refresh\x20official\x20skill\x20package\x20after\x20updating','install','beta','Already\x20on\x20requested\x20version\x20(v','Already\x20up\x20to\x20date\x20(v','message','stdout','map','\x20\x20Run\x20manually:\x20npm\x20install\x20-g\x20','2702148RryHDT','Use\x20full\x20semver\x20versions\x20such\x20as\x202.0.6\x20or\x202.0.7-beta.1.','60xLYFwu','--latest,\x20--beta,\x20and\x20version\x20cannot\x20be\x20used\x20together.','Current\x20version:\x20','\x20-g\x20-y','json','\x20version\x20from\x20npm.','match','minor','/-/package/','boolean','args','bool','string'];a30_0x3626=function(){return _0x3c4a5c;};return a30_0x3626();}function installCliPackage(_0x44b870,_0x58cad9){const _0x479eae=a30_0x1ceb9a,_0x14f4e7=resolveNpmBin(_0x479eae(0x22a)),_0xdd0647=[_0x479eae(0x1fe),'-g',LOVRABET_NPM_PACKAGE_NAME+'@'+_0x44b870];console['log']('*\x20'+[_0x14f4e7,..._0xdd0647][_0x479eae(0x222)]('\x20'));const _0x4a9cfa=spawnSync(_0x14f4e7,_0xdd0647,{'cwd':process['cwd'](),'stdio':_0x58cad9?_0x479eae(0x233):_0x479eae(0x23a),'env':process.env,'shell':![]});if(_0x4a9cfa[_0x479eae(0x23f)]===0x0)return{'ok':!![]};let _0x30200a=_0x4a9cfa[_0x479eae(0x217)]?.[_0x479eae(0x202)]||_0x479eae(0x1f3)+(_0x4a9cfa['status']??_0x479eae(0x227));if(_0x58cad9){const _0x51af31=_0x4a9cfa[_0x479eae(0x231)]?_0x4a9cfa[_0x479eae(0x231)]['toString']()[_0x479eae(0x22d)]():'',_0x1aed09=_0x4a9cfa['stdout']?_0x4a9cfa[_0x479eae(0x203)][_0x479eae(0x232)]()[_0x479eae(0x22d)]():'';if(_0x51af31)_0x30200a=_0x51af31;else{if(_0x1aed09)_0x30200a=_0x1aed09;}}return{'ok':![],'error':_0x30200a};}async function installOfficialSkill(_0x186ddb){const _0x3d0b13=a30_0x1ceb9a;console[_0x3d0b13(0x1f7)]('Checking\x20official\x20skill\x20package...');const _0x94ac6c=runNpxSkillsAddGlobal(process[_0x3d0b13(0x22f)](),LOVRABET_SKILL_SOURCE,{'stdio':_0x186ddb?'pipe':_0x3d0b13(0x23a)});if(_0x94ac6c['skipped']){console['log']('\x20\x20Skipped\x20skill\x20install\x20('+LOVRABET_SKIP_NPX_SKILLS_ENV+'=1).');return;}if(_0x94ac6c['ok']){console[_0x3d0b13(0x1f7)](_0x3d0b13(0x22e));return;}console[_0x3d0b13(0x223)](_0x3d0b13(0x23d)+(_0x94ac6c[_0x3d0b13(0x217)]||'unknown')),console[_0x3d0b13(0x1f7)](_0x3d0b13(0x228)+LOVRABET_SKILL_SOURCE+_0x3d0b13(0x20b));}async function execute(_0x477029){const _0x49c2ba=a30_0x1ceb9a;await validateUpdateFlags(_0x477029);const _0x597f87=getCliVersion();console['log'](_0x49c2ba(0x20a)+_0x597f87),console[_0x49c2ba(0x1f7)](_0x49c2ba(0x220));const _0x53fdf6=await resolveTargetVersion(_0x477029);if(!_0x53fdf6){const _0x469f72=_0x477029['bool'](_0x49c2ba(0x1ff))?_0x49c2ba(0x1ff):_0x49c2ba(0x237),_0x3fbf51=_0x49c2ba(0x218)+_0x469f72+_0x49c2ba(0x20d);return console['warn'](_0x3fbf51),console[_0x49c2ba(0x1f7)](_0x49c2ba(0x205)+LOVRABET_NPM_PACKAGE_NAME+'@'+_0x469f72),{'ok':![]};}if(!shouldInstallTarget(_0x597f87,_0x53fdf6)){const _0x288156=_0x53fdf6[_0x49c2ba(0x221)]===_0x49c2ba(0x21b)?_0x49c2ba(0x200)+_0x53fdf6[_0x49c2ba(0x21b)]+').':_0x49c2ba(0x201)+_0x53fdf6[_0x49c2ba(0x21b)]+').';return console[_0x49c2ba(0x1f7)](_0x288156),shouldSkipOfficialSkill(_0x477029)?console['log']('Skipping\x20official\x20skill\x20package\x20(--no-skills).'):await installOfficialSkill(_0x477029[_0x49c2ba(0x216)]),{'ok':!![]};}console[_0x49c2ba(0x1f7)]('Updating\x20'+LOVRABET_NPM_PACKAGE_NAME+':\x20'+_0x597f87+'\x20->\x20'+_0x53fdf6['version']);const _0x5303a4=installCliPackage(_0x53fdf6['version'],_0x477029[_0x49c2ba(0x216)]);if(!_0x5303a4['ok']){const _0x4e0c3c=_0x49c2ba(0x238)+(_0x5303a4[_0x49c2ba(0x217)]||_0x49c2ba(0x227));return console['error'](_0x4e0c3c),console[_0x49c2ba(0x1f7)](_0x49c2ba(0x21f)+LOVRABET_NPM_PACKAGE_NAME+'@'+_0x53fdf6[_0x49c2ba(0x21b)]),{'ok':![]};}return console[_0x49c2ba(0x1f7)](_0x49c2ba(0x21c)+_0x53fdf6[_0x49c2ba(0x21b)]+'.'),console[_0x49c2ba(0x1f7)](_0x49c2ba(0x1f4)),shouldSkipOfficialSkill(_0x477029)?console['log']('Skipping\x20official\x20skill\x20package\x20(--no-skills).'):await installOfficialSkill(_0x477029[_0x49c2ba(0x216)]),{'ok':!![]};}function a30_0x3206(_0x1147b1,_0xfb8c9d){_0x1147b1=_0x1147b1-0x1f2;const _0x3626a3=a30_0x3626();let _0x320695=_0x3626a3[_0x1147b1];return _0x320695;}export const updateDefinition={'service':a30_0x1ceb9a(0x21a),'command':a30_0x1ceb9a(0x226),'description':'Update\x20'+CLI_BIN_NAME+'\x20CLI\x20from\x20npm','risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':updateFlags,'validate':validateUpdateFlags,'execute':execute};
@@ -1 +1 @@
1
- const a31_0x4a6658=a31_0x31a0;(function(_0x206578,_0x5da722){const _0xc2a95b=a31_0x31a0,_0x391453=_0x206578();while(!![]){try{const _0x439c41=parseInt(_0xc2a95b(0x147))/0x1+-parseInt(_0xc2a95b(0x138))/0x2*(-parseInt(_0xc2a95b(0x157))/0x3)+-parseInt(_0xc2a95b(0x149))/0x4+-parseInt(_0xc2a95b(0x144))/0x5+-parseInt(_0xc2a95b(0x139))/0x6+parseInt(_0xc2a95b(0x158))/0x7+parseInt(_0xc2a95b(0x153))/0x8*(parseInt(_0xc2a95b(0x13a))/0x9);if(_0x439c41===_0x5da722)break;else _0x391453['push'](_0x391453['shift']());}catch(_0x23de6b){_0x391453['push'](_0x391453['shift']());}}}(a31_0x5ae8,0x1bf93));function a31_0x31a0(_0x3c7ebb,_0x1d4692){_0x3c7ebb=_0x3c7ebb-0x138;const _0x5ae82e=a31_0x5ae8();let _0x31a0c9=_0x5ae82e[_0x3c7ebb];return _0x31a0c9;}import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{RUNTIME_ENV_VALUES}from'../constant/env.js';import{OUTPUT_FORMAT_VALUES}from'../constant/output.js';export const CONFIG_FIELD_SCHEMAS={'env':{'description':a31_0x4a6658(0x150),'topLevel':!![],'cliSettableTopLevel':!![],'enumValues':RUNTIME_ENV_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES[a31_0x4a6658(0x13c)],'importable':!![]},'format':{'description':a31_0x4a6658(0x155),'topLevel':!![],'cliSettableTopLevel':!![],'enumValues':OUTPUT_FORMAT_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES[a31_0x4a6658(0x143)],'importable':!![]},'pageSize':{'description':a31_0x4a6658(0x13f),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'apiDomain':{'description':a31_0x4a6658(0x14d),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'userDomain':{'description':a31_0x4a6658(0x140),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'runtimeDomain':{'description':a31_0x4a6658(0x159),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'accessKey':{'description':a31_0x4a6658(0x146),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'riskLevel':{'description':a31_0x4a6658(0x14b),'topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES[a31_0x4a6658(0x14a)],'importable':!![]},'locale':{'description':a31_0x4a6658(0x14e),'topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES[a31_0x4a6658(0x13d)],'importable':!![],'legacyCompatOnly':!![]}};export const TOP_LEVEL_CONFIG_KEYS=new Set(Object[a31_0x4a6658(0x152)](CONFIG_FIELD_SCHEMAS)[a31_0x4a6658(0x14c)](([,_0x577d3a])=>_0x577d3a['cliSettableTopLevel'])[a31_0x4a6658(0x148)](([_0x3438d7])=>_0x3438d7));export const CONFIG_ENUM_VALUES=Object[a31_0x4a6658(0x13e)](Object[a31_0x4a6658(0x152)](CONFIG_FIELD_SCHEMAS)[a31_0x4a6658(0x14c)](([,_0x2738d5])=>_0x2738d5['enumValues'])[a31_0x4a6658(0x148)](([_0x5b744d,_0x353961])=>[_0x5b744d,[..._0x353961[a31_0x4a6658(0x141)]||[]]]));export const IMPORTABLE_RUNTIME_CONFIG_KEYS=Object[a31_0x4a6658(0x152)](CONFIG_FIELD_SCHEMAS)[a31_0x4a6658(0x14c)](([,_0x19f822])=>_0x19f822[a31_0x4a6658(0x154)])[a31_0x4a6658(0x148)](([_0x16155d])=>_0x16155d);export function getConfigFieldSchema(_0x2fece0){return CONFIG_FIELD_SCHEMAS[_0x2fece0];}export function getConfigEnumValues(_0x1cbcb7){const _0x24fcf9=a31_0x4a6658;return getConfigFieldSchema(_0x1cbcb7)?.[_0x24fcf9(0x141)];}function a31_0x5ae8(){const _0x13f364=['riskLevel','Risk\x20level','filter','Override\x20API\x20domain','Locale','has','Target\x20environment','defaultValue','entries','1083688jyQLAg','importable','Default\x20output\x20format','join','54627xDuGiF','162477kEngSm','Override\x20runtime\x20domain','2RRFAOW','1017804kavduU','18VWkjrc','Config\x20key.\x20Top-level:\x20','env','locale','fromEntries','Default\x20page\x20size','Override\x20user\x20domain','enumValues','legacyCompatOnly','format','268495lKjxdd',';\x20local\x20alias:\x20apps.<alias>.appcode','Access\x20key\x20(client-ak\x20auth)','207372CJkafU','map','727208TrSLPX'];a31_0x5ae8=function(){return _0x13f364;};return a31_0x5ae8();}export function getConfigDefaultValue(_0x1bbfad){const _0x1464de=a31_0x4a6658;return getConfigFieldSchema(_0x1bbfad)?.[_0x1464de(0x151)];}export function isTopLevelConfigKey(_0x49be4f){const _0x2ec946=a31_0x4a6658;return TOP_LEVEL_CONFIG_KEYS[_0x2ec946(0x14f)](_0x49be4f);}export function isLegacyCompatConfigKey(_0x342fd0){const _0x314b6f=a31_0x4a6658;return getConfigFieldSchema(_0x342fd0)?.[_0x314b6f(0x142)]===!![];}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function formatConfigKeyList(_0xcca078){const _0x51325a=a31_0x4a6658;return[..._0xcca078][_0x51325a(0x156)](',\x20');}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){const _0x358abf=a31_0x4a6658;return _0x358abf(0x13b)+getTopLevelConfigKeySummary()+_0x358abf(0x145);}export function buildAppProfileListFields(_0x1ba219){return{'env':_0x1ba219,'hasAccessKey':![],'format':null,'pageSize':null,'riskLevel':null,'locale':null};}
1
+ const a31_0x35a331=a31_0xf954;function a31_0xf954(_0x11ea23,_0x5c59ab){_0x11ea23=_0x11ea23-0x182;const _0x28f6f8=a31_0x28f6();let _0xf954be=_0x28f6f8[_0x11ea23];return _0xf954be;}(function(_0x132426,_0x13f9ef){const _0x1253db=a31_0xf954,_0x3b3a52=_0x132426();while(!![]){try{const _0x55f9c6=parseInt(_0x1253db(0x186))/0x1+parseInt(_0x1253db(0x194))/0x2*(-parseInt(_0x1253db(0x193))/0x3)+parseInt(_0x1253db(0x182))/0x4*(-parseInt(_0x1253db(0x195))/0x5)+parseInt(_0x1253db(0x184))/0x6+-parseInt(_0x1253db(0x19e))/0x7+parseInt(_0x1253db(0x1a0))/0x8*(-parseInt(_0x1253db(0x19a))/0x9)+parseInt(_0x1253db(0x197))/0xa;if(_0x55f9c6===_0x13f9ef)break;else _0x3b3a52['push'](_0x3b3a52['shift']());}catch(_0x5277ed){_0x3b3a52['push'](_0x3b3a52['shift']());}}}(a31_0x28f6,0x8ee13));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{RUNTIME_ENV_VALUES}from'../constant/env.js';import{OUTPUT_FORMAT_VALUES}from'../constant/output.js';export const CONFIG_FIELD_SCHEMAS={'env':{'description':'Target\x20environment','topLevel':!![],'cliSettableTopLevel':!![],'enumValues':RUNTIME_ENV_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES[a31_0x35a331(0x19d)],'importable':!![]},'format':{'description':a31_0x35a331(0x188),'topLevel':!![],'cliSettableTopLevel':!![],'enumValues':OUTPUT_FORMAT_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES['format'],'importable':!![]},'pageSize':{'description':a31_0x35a331(0x18b),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'apiDomain':{'description':'Override\x20API\x20domain','topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'userDomain':{'description':a31_0x35a331(0x19b),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'runtimeDomain':{'description':a31_0x35a331(0x18f),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'accessKey':{'description':a31_0x35a331(0x185),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'riskLevel':{'description':a31_0x35a331(0x18a),'topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES[a31_0x35a331(0x19f)],'importable':!![]},'locale':{'description':'Locale','topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES[a31_0x35a331(0x18c)],'importable':!![],'legacyCompatOnly':!![]}};export const TOP_LEVEL_CONFIG_KEYS=new Set(Object[a31_0x35a331(0x192)](CONFIG_FIELD_SCHEMAS)[a31_0x35a331(0x187)](([,_0x534413])=>_0x534413[a31_0x35a331(0x18e)])[a31_0x35a331(0x198)](([_0x4c75a3])=>_0x4c75a3));export const CONFIG_ENUM_VALUES=Object['fromEntries'](Object[a31_0x35a331(0x192)](CONFIG_FIELD_SCHEMAS)[a31_0x35a331(0x187)](([,_0x2cc40e])=>_0x2cc40e['enumValues'])[a31_0x35a331(0x198)](([_0x2df48c,_0x50dc3b])=>[_0x2df48c,[..._0x50dc3b['enumValues']||[]]]));export const IMPORTABLE_RUNTIME_CONFIG_KEYS=Object[a31_0x35a331(0x192)](CONFIG_FIELD_SCHEMAS)['filter'](([,_0x5cac6a])=>_0x5cac6a[a31_0x35a331(0x196)])[a31_0x35a331(0x198)](([_0x5e8204])=>_0x5e8204);export function getConfigFieldSchema(_0x571675){return CONFIG_FIELD_SCHEMAS[_0x571675];}export function getConfigEnumValues(_0x4b70d3){const _0x123ea3=a31_0x35a331;return getConfigFieldSchema(_0x4b70d3)?.[_0x123ea3(0x183)];}export function getConfigDefaultValue(_0x5ab046){const _0x52d988=a31_0x35a331;return getConfigFieldSchema(_0x5ab046)?.[_0x52d988(0x199)];}export function isTopLevelConfigKey(_0x4d59a1){const _0x1edfb5=a31_0x35a331;return TOP_LEVEL_CONFIG_KEYS[_0x1edfb5(0x18d)](_0x4d59a1);}export function isLegacyCompatConfigKey(_0x266d88){const _0x48d485=a31_0x35a331;return getConfigFieldSchema(_0x266d88)?.[_0x48d485(0x191)]===!![];}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function formatConfigKeyList(_0x54c443){const _0x1855ce=a31_0x35a331;return[..._0x54c443][_0x1855ce(0x189)](',\x20');}function a31_0x28f6(){const _0x223db0=['350795OuCKCO','importable','25814580upXDka','map','defaultValue','554094sKQXgN','Override\x20user\x20domain',';\x20local\x20alias:\x20apps.<alias>.appcode','env','4268663hFztLU','riskLevel','64DPjpFH','52GDpLMK','enumValues','991686DMixvo','Access\x20key\x20(client-ak\x20auth)','677375hbNzNg','filter','Default\x20output\x20format','join','Risk\x20level','Default\x20page\x20size','locale','has','cliSettableTopLevel','Override\x20runtime\x20domain','Config\x20key.\x20Top-level:\x20','legacyCompatOnly','entries','32979jUrmIB','150wgBtAB'];a31_0x28f6=function(){return _0x223db0;};return a31_0x28f6();}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){const _0xcbe4aa=a31_0x35a331;return _0xcbe4aa(0x190)+getTopLevelConfigKeySummary()+_0xcbe4aa(0x19c);}export function buildAppProfileListFields(_0x5ebf3c){return{'env':_0x5ebf3c,'hasAccessKey':![],'format':null,'pageSize':null,'riskLevel':null,'locale':null};}
@@ -1 +1 @@
1
- const a32_0x35a01b=a32_0x55df;function a32_0x55df(_0x2ebd8a,_0x4fe52c){_0x2ebd8a=_0x2ebd8a-0xf6;const _0x47fb4f=a32_0x47fb();let _0x55df90=_0x47fb4f[_0x2ebd8a];return _0x55df90;}function a32_0x47fb(){const _0x40c7aa=['1749648cbpNdU','client-ak','32fxGkmf','305319jVTuwG','491360sYVImA','13147740WOrrvx','216sMfUJi','3gyBVTq','927940upeWEb','10998339sfGQWJ','1350172kBQpZc','10temHtr'];a32_0x47fb=function(){return _0x40c7aa;};return a32_0x47fb();}(function(_0x3cd82f,_0x11d971){const _0xc3d377=a32_0x55df,_0x2b360d=_0x3cd82f();while(!![]){try{const _0x5266b4=-parseInt(_0xc3d377(0xfe))/0x1+-parseInt(_0xc3d377(0x100))/0x2*(parseInt(_0xc3d377(0xfd))/0x3)+-parseInt(_0xc3d377(0xf8))/0x4*(parseInt(_0xc3d377(0xfa))/0x5)+-parseInt(_0xc3d377(0xf6))/0x6+parseInt(_0xc3d377(0xf9))/0x7*(parseInt(_0xc3d377(0xfc))/0x8)+parseInt(_0xc3d377(0xfb))/0x9+parseInt(_0xc3d377(0x101))/0xa*(parseInt(_0xc3d377(0xff))/0xb);if(_0x5266b4===_0x11d971)break;else _0x2b360d['push'](_0x2b360d['shift']());}catch(_0x2133ca){_0x2b360d['push'](_0x2b360d['shift']());}}}(a32_0x47fb,0xe9c76));export const AUTH_MODE={'ClientAk':a32_0x35a01b(0xf7)};export function isAuthMode(_0x22473b){return _0x22473b===AUTH_MODE['ClientAk'];}
1
+ const a32_0x2adde1=a32_0x34b2;function a32_0x34b2(_0x12a4ef,_0x21b446){_0x12a4ef=_0x12a4ef-0x194;const _0x4198db=a32_0x4198();let _0x34b23b=_0x4198db[_0x12a4ef];return _0x34b23b;}(function(_0x55afde,_0x3e4852){const _0x26bdbd=a32_0x34b2,_0x455279=_0x55afde();while(!![]){try{const _0x341afd=-parseInt(_0x26bdbd(0x19c))/0x1*(-parseInt(_0x26bdbd(0x198))/0x2)+parseInt(_0x26bdbd(0x19d))/0x3*(parseInt(_0x26bdbd(0x197))/0x4)+-parseInt(_0x26bdbd(0x1a0))/0x5*(-parseInt(_0x26bdbd(0x195))/0x6)+parseInt(_0x26bdbd(0x194))/0x7*(parseInt(_0x26bdbd(0x19e))/0x8)+parseInt(_0x26bdbd(0x19a))/0x9+parseInt(_0x26bdbd(0x19b))/0xa*(-parseInt(_0x26bdbd(0x196))/0xb)+-parseInt(_0x26bdbd(0x19f))/0xc;if(_0x341afd===_0x3e4852)break;else _0x455279['push'](_0x455279['shift']());}catch(_0x22077a){_0x455279['push'](_0x455279['shift']());}}}(a32_0x4198,0x9cc6c));export const AUTH_MODE={'ClientAk':a32_0x2adde1(0x199)};export function isAuthMode(_0xa5af){return _0xa5af===AUTH_MODE['ClientAk'];}function a32_0x4198(){const _0x21d811=['32900aagruc','611796iWLkTN','802450JefjBA','12cpcfFi','36aeRvme','client-ak','9369243SKStsO','50wGFoIs','32416YivgRB','160173FkIEfw','1928BaEfen','27820152MghDMl','20lmijmA'];a32_0x4198=function(){return _0x21d811;};return a32_0x4198();}
@@ -1 +1 @@
1
- const a33_0x2dacf9=a33_0x160c;(function(_0x14f0f5,_0x51e303){const _0x311e2f=a33_0x160c,_0x4d312a=_0x14f0f5();while(!![]){try{const _0x202f4f=-parseInt(_0x311e2f(0x1be))/0x1*(-parseInt(_0x311e2f(0x1d9))/0x2)+-parseInt(_0x311e2f(0x1d4))/0x3*(parseInt(_0x311e2f(0x1c6))/0x4)+parseInt(_0x311e2f(0x1cc))/0x5+-parseInt(_0x311e2f(0x1bd))/0x6*(-parseInt(_0x311e2f(0x1dc))/0x7)+-parseInt(_0x311e2f(0x1bf))/0x8+-parseInt(_0x311e2f(0x1cd))/0x9+parseInt(_0x311e2f(0x1d8))/0xa;if(_0x202f4f===_0x51e303)break;else _0x4d312a['push'](_0x4d312a['shift']());}catch(_0x129a16){_0x4d312a['push'](_0x4d312a['shift']());}}}(a33_0x4d48,0xb03bc));import{PRODUCT_CONFIG}from'../constant/product.js';function a33_0x160c(_0x530f93,_0x124f71){_0x530f93=_0x530f93-0x1af;const _0x4d481d=a33_0x4d48();let _0x160c92=_0x4d481d[_0x530f93];return _0x160c92;}import{LOVRABET_NPM_PACKAGE_NAME}from'../constant/distribution.js';export const CLI_BIN_NAME=PRODUCT_CONFIG[a33_0x2dacf9(0x1b1)];export const CLI_DISPLAY_NAME=PRODUCT_CONFIG[a33_0x2dacf9(0x1b9)];export const NPM_PACKAGE_NAME=LOVRABET_NPM_PACKAGE_NAME;function a33_0x4d48(){const _0xa68e20=['string','Skip\x20confirmation\x20for\x20high-risk\x20writes','map','23549160GKeHAk','526LITCyH','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20implies\x20--format\x20json\x20when\x20current\x20format\x20is\x20pretty)','Select\x20app\x20profile\x20by\x20name','3503423AFrucD','fromEntries','dry-run','cliBinName','sqlcode','non-interactive','verbose','<code>','global','Show\x20help','Name\x20filter','cliDisplayName','Force\x20non-interactive\x20mode\x20(CI)','env','<expr>','6DDcvDD','323sjwGHj','408600pLyvcE','Verbose\x20output','app','appcode','Clear\x20output','Output\x20format','params','236EPwPgu','Preview\x20operation\x20without\x20executing','name','nonInteractive','SQL\x20query\x20code','format','448725cQUHAy','8232705hIzuso','yes','clear','boolean','type','Use\x20global\x20config\x20scope','Environment','68259TONHHw'];a33_0x4d48=function(){return _0xa68e20;};return a33_0x4d48();}export const GLOBAL_FLAGS=[{'name':'appcode','meowKey':a33_0x2dacf9(0x1c2),'type':a33_0x2dacf9(0x1d5),'description':'Override\x20appcode','hint':a33_0x2dacf9(0x1b5)},{'name':a33_0x2dacf9(0x1c1),'meowKey':a33_0x2dacf9(0x1c1),'type':a33_0x2dacf9(0x1d5),'description':a33_0x2dacf9(0x1db),'hint':'<name>'},{'name':a33_0x2dacf9(0x1bb),'meowKey':'env','type':a33_0x2dacf9(0x1d5),'description':a33_0x2dacf9(0x1d3),'hint':'production\x20|\x20development\x20|\x20daily'},{'name':a33_0x2dacf9(0x1cb),'meowKey':a33_0x2dacf9(0x1cb),'type':a33_0x2dacf9(0x1d5),'description':a33_0x2dacf9(0x1c4),'hint':'json\x20|\x20pretty\x20|\x20compress'},{'name':'jq','meowKey':'jq','type':a33_0x2dacf9(0x1d5),'description':a33_0x2dacf9(0x1da),'hint':a33_0x2dacf9(0x1bc)},{'name':a33_0x2dacf9(0x1b0),'meowKey':'dryRun','type':a33_0x2dacf9(0x1d0),'description':a33_0x2dacf9(0x1c7)},{'name':a33_0x2dacf9(0x1ce),'meowKey':a33_0x2dacf9(0x1ce),'type':'boolean','description':a33_0x2dacf9(0x1d6)},{'name':a33_0x2dacf9(0x1b3),'meowKey':a33_0x2dacf9(0x1c9),'type':a33_0x2dacf9(0x1d0),'description':a33_0x2dacf9(0x1ba)},{'name':a33_0x2dacf9(0x1b6),'meowKey':a33_0x2dacf9(0x1b6),'type':a33_0x2dacf9(0x1d0),'description':a33_0x2dacf9(0x1d2)},{'name':'ci','meowKey':'ci','type':a33_0x2dacf9(0x1d0),'description':'Alias\x20for\x20--non-interactive','hidden':!![]},{'name':'help','meowKey':'help','type':a33_0x2dacf9(0x1d0),'description':a33_0x2dacf9(0x1b7)},{'name':'id','meowKey':'id','type':a33_0x2dacf9(0x1d5),'description':'Record\x20ID','hidden':!![]},{'name':a33_0x2dacf9(0x1c8),'meowKey':a33_0x2dacf9(0x1c8),'type':'string','description':a33_0x2dacf9(0x1b8),'hidden':!![]},{'name':'sqlcode','meowKey':a33_0x2dacf9(0x1b2),'type':a33_0x2dacf9(0x1d5),'description':a33_0x2dacf9(0x1ca),'hidden':!![]},{'name':a33_0x2dacf9(0x1c5),'meowKey':a33_0x2dacf9(0x1c5),'type':a33_0x2dacf9(0x1d5),'description':'JSON\x20params\x20for\x20execute\x20commands','hidden':!![]},{'name':a33_0x2dacf9(0x1b4),'meowKey':a33_0x2dacf9(0x1b4),'type':'boolean','description':a33_0x2dacf9(0x1c0),'hidden':!![]},{'name':'clear','meowKey':a33_0x2dacf9(0x1cf),'type':a33_0x2dacf9(0x1d0),'description':a33_0x2dacf9(0x1c3),'hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set([a33_0x2dacf9(0x1c2),a33_0x2dacf9(0x1c1),a33_0x2dacf9(0x1bb),'format','jq',a33_0x2dacf9(0x1b0),a33_0x2dacf9(0x1ce),a33_0x2dacf9(0x1b3),'ci']);export function buildMeowFlags(){const _0x34179a=a33_0x2dacf9;return Object[_0x34179a(0x1af)](GLOBAL_FLAGS[_0x34179a(0x1d7)](_0x3bb8e2=>[_0x3bb8e2['meowKey'],{'type':_0x3bb8e2[_0x34179a(0x1d1)]}]));}
1
+ const a33_0x39393c=a33_0x176a;(function(_0x20f0be,_0x41bc6c){const _0x59602a=a33_0x176a,_0x1b0d19=_0x20f0be();while(!![]){try{const _0x33038e=-parseInt(_0x59602a(0x13f))/0x1*(parseInt(_0x59602a(0x13a))/0x2)+-parseInt(_0x59602a(0x14e))/0x3*(-parseInt(_0x59602a(0x148))/0x4)+-parseInt(_0x59602a(0x146))/0x5*(parseInt(_0x59602a(0x14d))/0x6)+parseInt(_0x59602a(0x12c))/0x7+parseInt(_0x59602a(0x12f))/0x8*(parseInt(_0x59602a(0x125))/0x9)+-parseInt(_0x59602a(0x14b))/0xa*(parseInt(_0x59602a(0x133))/0xb)+parseInt(_0x59602a(0x145))/0xc;if(_0x33038e===_0x41bc6c)break;else _0x1b0d19['push'](_0x1b0d19['shift']());}catch(_0x35c391){_0x1b0d19['push'](_0x1b0d19['shift']());}}}(a33_0x471a,0x626ff));import{PRODUCT_CONFIG}from'../constant/product.js';import{LOVRABET_NPM_PACKAGE_NAME}from'../constant/distribution.js';function a33_0x176a(_0x1969f0,_0x23299c){_0x1969f0=_0x1969f0-0x125;const _0x471ab6=a33_0x471a();let _0x176a93=_0x471ab6[_0x1969f0];return _0x176a93;}export const CLI_BIN_NAME=PRODUCT_CONFIG[a33_0x39393c(0x131)];export const CLI_DISPLAY_NAME=PRODUCT_CONFIG[a33_0x39393c(0x141)];export const NPM_PACKAGE_NAME=LOVRABET_NPM_PACKAGE_NAME;export const GLOBAL_FLAGS=[{'name':a33_0x39393c(0x135),'meowKey':a33_0x39393c(0x135),'type':'string','description':'Override\x20appcode','hint':a33_0x39393c(0x142)},{'name':'app','meowKey':'app','type':a33_0x39393c(0x12a),'description':'Select\x20app\x20profile\x20by\x20name','hint':'<name>'},{'name':a33_0x39393c(0x13c),'meowKey':a33_0x39393c(0x13c),'type':a33_0x39393c(0x12a),'description':a33_0x39393c(0x12d),'hint':'production\x20|\x20development\x20|\x20daily'},{'name':a33_0x39393c(0x130),'meowKey':a33_0x39393c(0x130),'type':'string','description':a33_0x39393c(0x13b),'hint':'json\x20|\x20pretty\x20|\x20compress'},{'name':'jq','meowKey':'jq','type':a33_0x39393c(0x12a),'description':a33_0x39393c(0x127),'hint':'<expr>'},{'name':a33_0x39393c(0x14a),'meowKey':a33_0x39393c(0x126),'type':a33_0x39393c(0x140),'description':a33_0x39393c(0x149)},{'name':a33_0x39393c(0x137),'meowKey':a33_0x39393c(0x137),'type':a33_0x39393c(0x140),'description':a33_0x39393c(0x129)},{'name':a33_0x39393c(0x144),'meowKey':a33_0x39393c(0x152),'type':'boolean','description':'Force\x20non-interactive\x20mode\x20(CI)'},{'name':a33_0x39393c(0x150),'meowKey':a33_0x39393c(0x150),'type':'boolean','description':a33_0x39393c(0x12e)},{'name':'ci','meowKey':'ci','type':a33_0x39393c(0x140),'description':a33_0x39393c(0x128),'hidden':!![]},{'name':a33_0x39393c(0x12b),'meowKey':a33_0x39393c(0x12b),'type':'boolean','description':a33_0x39393c(0x13e)},{'name':'id','meowKey':'id','type':a33_0x39393c(0x12a),'description':a33_0x39393c(0x134),'hidden':!![]},{'name':a33_0x39393c(0x14c),'meowKey':'name','type':a33_0x39393c(0x12a),'description':'Name\x20filter','hidden':!![]},{'name':a33_0x39393c(0x13d),'meowKey':'sqlcode','type':a33_0x39393c(0x12a),'description':a33_0x39393c(0x143),'hidden':!![]},{'name':a33_0x39393c(0x139),'meowKey':a33_0x39393c(0x139),'type':a33_0x39393c(0x12a),'description':a33_0x39393c(0x132),'hidden':!![]},{'name':'verbose','meowKey':'verbose','type':a33_0x39393c(0x140),'description':a33_0x39393c(0x151),'hidden':!![]},{'name':a33_0x39393c(0x147),'meowKey':'clear','type':a33_0x39393c(0x140),'description':'Clear\x20output','hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set([a33_0x39393c(0x135),'app',a33_0x39393c(0x13c),'format','jq',a33_0x39393c(0x14a),'yes',a33_0x39393c(0x144),'ci']);export function buildMeowFlags(){const _0x34529c=a33_0x39393c;return Object[_0x34529c(0x138)](GLOBAL_FLAGS[_0x34529c(0x14f)](_0x566439=>[_0x566439[_0x34529c(0x136)],{'type':_0x566439['type']}]));}function a33_0x471a(){const _0x1abf8b=['non-interactive','5810076yBTXwB','65785vRwGVW','clear','62608gIsGBw','Preview\x20operation\x20without\x20executing','dry-run','39190uEGrUK','name','18UCIcPi','15CPffUf','map','global','Verbose\x20output','nonInteractive','30393syOrhT','dryRun','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20implies\x20--format\x20json\x20when\x20current\x20format\x20is\x20pretty)','Alias\x20for\x20--non-interactive','Skip\x20confirmation\x20for\x20high-risk\x20writes','string','help','1725724PbDBcc','Environment','Use\x20global\x20config\x20scope','1304IwATKS','format','cliBinName','JSON\x20params\x20for\x20execute\x20commands','759xJvqlc','Record\x20ID','appcode','meowKey','yes','fromEntries','params','258534CcTJOc','Output\x20format','env','sqlcode','Show\x20help','5HuyfWW','boolean','cliDisplayName','<code>','SQL\x20query\x20code'];a33_0x471a=function(){return _0x1abf8b;};return a33_0x471a();}
@@ -1 +1 @@
1
- function a34_0x26de(){const _0x14bb17=['production','519952ZhqbtF','write','main','50wiUZUr','4000852tgQtvJ','948933iQXGoj','en-US','compress','8349684CdifUt','39110467GefAau','105xUdIwC','2543679sQcUep','36615VkiplL','130BFuFTE','5AYZIki'];a34_0x26de=function(){return _0x14bb17;};return a34_0x26de();}const a34_0x2a48f7=a34_0x575f;function a34_0x575f(_0x48e0e9,_0x4f57e0){_0x48e0e9=_0x48e0e9-0x1ba;const _0x26deba=a34_0x26de();let _0x575fa5=_0x26deba[_0x48e0e9];return _0x575fa5;}(function(_0x4d489b,_0xfda72a){const _0x163a09=a34_0x575f,_0x271e82=_0x4d489b();while(!![]){try{const _0x34d2e0=-parseInt(_0x163a09(0x1bf))/0x1*(parseInt(_0x163a09(0x1c6))/0x2)+parseInt(_0x163a09(0x1be))/0x3+parseInt(_0x163a09(0x1c7))/0x4*(-parseInt(_0x163a09(0x1c1))/0x5)+-parseInt(_0x163a09(0x1bb))/0x6+-parseInt(_0x163a09(0x1bd))/0x7*(-parseInt(_0x163a09(0x1c3))/0x8)+parseInt(_0x163a09(0x1c8))/0x9*(-parseInt(_0x163a09(0x1c0))/0xa)+parseInt(_0x163a09(0x1bc))/0xb;if(_0x34d2e0===_0xfda72a)break;else _0x271e82['push'](_0x271e82['shift']());}catch(_0x15ea98){_0x271e82['push'](_0x271e82['shift']());}}}(a34_0x26de,0xab001));export const DEFAULT_APP_PROFILE_NAME=a34_0x2a48f7(0x1c5);export const DEFAULT_CONFIG_VALUES={'env':a34_0x2a48f7(0x1c2),'format':'compress','locale':a34_0x2a48f7(0x1c9),'riskLevel':a34_0x2a48f7(0x1c4)};export const DEFAULT_COMMAND_OUTPUT_FORMAT=a34_0x2a48f7(0x1ba);
1
+ const a34_0x59b4aa=a34_0x2c3b;(function(_0x223774,_0x1dc6c1){const _0x589a7c=a34_0x2c3b,_0x1cb1dd=_0x223774();while(!![]){try{const _0x451572=-parseInt(_0x589a7c(0x177))/0x1+parseInt(_0x589a7c(0x181))/0x2*(-parseInt(_0x589a7c(0x17a))/0x3)+parseInt(_0x589a7c(0x178))/0x4+parseInt(_0x589a7c(0x176))/0x5+parseInt(_0x589a7c(0x17f))/0x6+-parseInt(_0x589a7c(0x17b))/0x7+parseInt(_0x589a7c(0x182))/0x8*(parseInt(_0x589a7c(0x17c))/0x9);if(_0x451572===_0x1dc6c1)break;else _0x1cb1dd['push'](_0x1cb1dd['shift']());}catch(_0x1f5286){_0x1cb1dd['push'](_0x1cb1dd['shift']());}}}(a34_0x1002,0x7d7fe));function a34_0x2c3b(_0x62232d,_0x371c31){_0x62232d=_0x62232d-0x176;const _0x100217=a34_0x1002();let _0x2c3b31=_0x100217[_0x62232d];return _0x2c3b31;}export const DEFAULT_APP_PROFILE_NAME=a34_0x59b4aa(0x17d);export const DEFAULT_CONFIG_VALUES={'env':a34_0x59b4aa(0x17e),'format':a34_0x59b4aa(0x180),'locale':'en-US','riskLevel':a34_0x59b4aa(0x179)};function a34_0x1002(){const _0x15c9c2=['622ZcqJhK','56568DpSXmm','764925VfUgmq','207655XeqvAa','3427828xHDNfx','write','7779VbPWmb','3320646mRFLWE','279sHqWza','main','production','4640154TPGNWT','compress'];a34_0x1002=function(){return _0x15c9c2;};return a34_0x1002();}export const DEFAULT_COMMAND_OUTPUT_FORMAT=a34_0x59b4aa(0x180);
@@ -1 +1 @@
1
- const a35_0x37d0f9=a35_0x4409;(function(_0x38fa15,_0x28f5b7){const _0x1319b5=a35_0x4409,_0x268839=_0x38fa15();while(!![]){try{const _0xbae2cd=parseInt(_0x1319b5(0x13f))/0x1*(parseInt(_0x1319b5(0x143))/0x2)+-parseInt(_0x1319b5(0x139))/0x3+-parseInt(_0x1319b5(0x13a))/0x4+-parseInt(_0x1319b5(0x13c))/0x5*(-parseInt(_0x1319b5(0x13d))/0x6)+-parseInt(_0x1319b5(0x13b))/0x7*(parseInt(_0x1319b5(0x140))/0x8)+-parseInt(_0x1319b5(0x142))/0x9+parseInt(_0x1319b5(0x141))/0xa;if(_0xbae2cd===_0x28f5b7)break;else _0x268839['push'](_0x268839['shift']());}catch(_0x4e4f6b){_0x268839['push'](_0x268839['shift']());}}}(a35_0x1e7f,0x44788));import{PRODUCT_CONFIG}from'../constant/product.js';function a35_0x4409(_0x4bddb9,_0x316b1b){_0x4bddb9=_0x4bddb9-0x137;const _0x1e7f82=a35_0x1e7f();let _0x440972=_0x1e7f82[_0x4bddb9];return _0x440972;}export const LOVRABET_NPM_PACKAGE_NAME=PRODUCT_CONFIG[a35_0x37d0f9(0x137)];export const LOVRABET_SKILL_SOURCE=PRODUCT_CONFIG[a35_0x37d0f9(0x13e)];function a35_0x1e7f(){const _0x4e7448=['13052740lMjjnj','2087298cIiBFX','16tYEaHP','npmPackageName','npmRegistryBaseUrl','1518651HvDmQj','1535016MrcaWR','119FqbRWS','24405AfxWKh','96ffyWFK','skillSource','20607dhHrLG','68648BEhaaE'];a35_0x1e7f=function(){return _0x4e7448;};return a35_0x1e7f();}export const NPM_REGISTRY_BASE_URL=PRODUCT_CONFIG[a35_0x37d0f9(0x138)];
1
+ function a35_0x11bf(_0x1a1525,_0x324a74){_0x1a1525=_0x1a1525-0x1c5;const _0x1301f4=a35_0x1301();let _0x11bff1=_0x1301f4[_0x1a1525];return _0x11bff1;}function a35_0x1301(){const _0x27416e=['npmPackageName','472085VQVttP','3900490Gxuici','4lSMIVo','46727087EPLBIG','21TroAbT','5368PVgrxB','2148306MndSuj','795wxhiIU','9ARhgvO','2818344TTkJWJ','npmRegistryBaseUrl','867072kmdrEw'];a35_0x1301=function(){return _0x27416e;};return a35_0x1301();}const a35_0x3c2cb2=a35_0x11bf;(function(_0x583325,_0x5ca21f){const _0x7421a6=a35_0x11bf,_0x1e18b3=_0x583325();while(!![]){try{const _0x4527b4=-parseInt(_0x7421a6(0x1cb))/0x1*(parseInt(_0x7421a6(0x1cd))/0x2)+-parseInt(_0x7421a6(0x1c7))/0x3+parseInt(_0x7421a6(0x1d0))/0x4*(-parseInt(_0x7421a6(0x1c5))/0x5)+parseInt(_0x7421a6(0x1d1))/0x6*(-parseInt(_0x7421a6(0x1cf))/0x7)+-parseInt(_0x7421a6(0x1c9))/0x8+-parseInt(_0x7421a6(0x1c6))/0x9*(parseInt(_0x7421a6(0x1cc))/0xa)+parseInt(_0x7421a6(0x1ce))/0xb;if(_0x4527b4===_0x5ca21f)break;else _0x1e18b3['push'](_0x1e18b3['shift']());}catch(_0x307c74){_0x1e18b3['push'](_0x1e18b3['shift']());}}}(a35_0x1301,0x8d31f));import{PRODUCT_CONFIG}from'../constant/product.js';export const LOVRABET_NPM_PACKAGE_NAME=PRODUCT_CONFIG[a35_0x3c2cb2(0x1ca)];export const LOVRABET_SKILL_SOURCE=PRODUCT_CONFIG['skillSource'];export const NPM_REGISTRY_BASE_URL=PRODUCT_CONFIG[a35_0x3c2cb2(0x1c8)];
@@ -1 +1 @@
1
- const a36_0x2a61e2=a36_0x2147;(function(_0x5666ac,_0x5aa558){const _0x54a8f8=a36_0x2147,_0x29c0d6=_0x5666ac();while(!![]){try{const _0x2cf6c6=-parseInt(_0x54a8f8(0x14c))/0x1+-parseInt(_0x54a8f8(0x151))/0x2*(-parseInt(_0x54a8f8(0x14a))/0x3)+parseInt(_0x54a8f8(0x14f))/0x4*(-parseInt(_0x54a8f8(0x154))/0x5)+parseInt(_0x54a8f8(0x14b))/0x6+parseInt(_0x54a8f8(0x148))/0x7*(-parseInt(_0x54a8f8(0x14d))/0x8)+-parseInt(_0x54a8f8(0x155))/0x9+parseInt(_0x54a8f8(0x157))/0xa;if(_0x2cf6c6===_0x5aa558)break;else _0x29c0d6['push'](_0x29c0d6['shift']());}catch(_0xf66f6){_0x29c0d6['push'](_0x29c0d6['shift']());}}}(a36_0x1a50,0x2839c));import{getEnv,isProduction}from'../constant/env.js';import{PRODUCT_CONFIG}from'../constant/product.js';let customApiDomain,customUserDomain,customRuntimeDomain;function a36_0x1a50(){const _0x432c34=['5RjtqpI','2175732zhuAht','nonProduction','3003210TZORbF','user','apiDomain','368963WygShm','runtime','855429BdQzVe','746394hSmnPE','131112WafGUe','16ocIHLk','domains','267284ReCHQz','production','2sKLVJM','userDomain','api'];a36_0x1a50=function(){return _0x432c34;};return a36_0x1a50();}export function initDomains(_0x2e7f6f){const _0x299534=a36_0x2147;customApiDomain=_0x2e7f6f?.[_0x299534(0x147)],customUserDomain=_0x2e7f6f?.[_0x299534(0x152)],customRuntimeDomain=_0x2e7f6f?.['runtimeDomain'];}export const getUserDomain=()=>customUserDomain||(isProduction(getEnv())?PRODUCT_CONFIG['domains'][a36_0x2a61e2(0x150)][a36_0x2a61e2(0x146)]:PRODUCT_CONFIG['domains'][a36_0x2a61e2(0x156)][a36_0x2a61e2(0x146)]);export const getApiDomain=()=>customApiDomain||(isProduction(getEnv())?PRODUCT_CONFIG['domains'][a36_0x2a61e2(0x150)][a36_0x2a61e2(0x153)]:PRODUCT_CONFIG[a36_0x2a61e2(0x14e)][a36_0x2a61e2(0x156)][a36_0x2a61e2(0x153)]);function a36_0x2147(_0x25a293,_0x17f31c){_0x25a293=_0x25a293-0x146;const _0x1a5097=a36_0x1a50();let _0x214769=_0x1a5097[_0x25a293];return _0x214769;}export const getRuntimeDomain=()=>customRuntimeDomain||(isProduction(getEnv())?PRODUCT_CONFIG['domains'][a36_0x2a61e2(0x150)][a36_0x2a61e2(0x149)]:PRODUCT_CONFIG[a36_0x2a61e2(0x14e)][a36_0x2a61e2(0x156)]['runtime']);
1
+ const a36_0x55e1f0=a36_0x27ee;function a36_0x27ee(_0x26ec53,_0x143cb4){_0x26ec53=_0x26ec53-0x1b7;const _0x868afa=a36_0x868a();let _0x27eec4=_0x868afa[_0x26ec53];return _0x27eec4;}(function(_0x3618c4,_0x1c9eea){const _0x12a6b4=a36_0x27ee,_0x10dc2a=_0x3618c4();while(!![]){try{const _0x3b23de=-parseInt(_0x12a6b4(0x1b9))/0x1+-parseInt(_0x12a6b4(0x1c3))/0x2*(parseInt(_0x12a6b4(0x1bf))/0x3)+-parseInt(_0x12a6b4(0x1c4))/0x4+-parseInt(_0x12a6b4(0x1bc))/0x5+-parseInt(_0x12a6b4(0x1c6))/0x6+-parseInt(_0x12a6b4(0x1bb))/0x7+parseInt(_0x12a6b4(0x1c0))/0x8;if(_0x3b23de===_0x1c9eea)break;else _0x10dc2a['push'](_0x10dc2a['shift']());}catch(_0xaa772){_0x10dc2a['push'](_0x10dc2a['shift']());}}}(a36_0x868a,0x5ceb4));import{getEnv,isProduction}from'../constant/env.js';import{PRODUCT_CONFIG}from'../constant/product.js';let customApiDomain,customUserDomain,customRuntimeDomain;export function initDomains(_0x2f11f7){const _0x15e587=a36_0x27ee;customApiDomain=_0x2f11f7?.[_0x15e587(0x1be)],customUserDomain=_0x2f11f7?.[_0x15e587(0x1c2)],customRuntimeDomain=_0x2f11f7?.['runtimeDomain'];}function a36_0x868a(){const _0x5545e8=['production','userDomain','420962gElINB','622672rGjKvi','runtime','2562546GToWan','domains','nonProduction','125377nvtSRV','api','3333477ddPcZA','2557560JHiHNd','user','apiDomain','9fUdMRw','21663184gdOkny'];a36_0x868a=function(){return _0x5545e8;};return a36_0x868a();}export const getUserDomain=()=>customUserDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a36_0x55e1f0(0x1b7)][a36_0x55e1f0(0x1c1)][a36_0x55e1f0(0x1bd)]:PRODUCT_CONFIG[a36_0x55e1f0(0x1b7)]['nonProduction']['user']);export const getApiDomain=()=>customApiDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a36_0x55e1f0(0x1b7)]['production']['api']:PRODUCT_CONFIG['domains'][a36_0x55e1f0(0x1b8)][a36_0x55e1f0(0x1ba)]);export const getRuntimeDomain=()=>customRuntimeDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a36_0x55e1f0(0x1b7)]['production']['runtime']:PRODUCT_CONFIG[a36_0x55e1f0(0x1b7)][a36_0x55e1f0(0x1b8)][a36_0x55e1f0(0x1c5)]);
@@ -1 +1 @@
1
- const a37_0xc870b7=a37_0x2b7d;(function(_0x10eee7,_0x3d2237){const _0x5641f0=a37_0x2b7d,_0x5e57d6=_0x10eee7();while(!![]){try{const _0x1ced3e=parseInt(_0x5641f0(0xae))/0x1*(-parseInt(_0x5641f0(0xb0))/0x2)+parseInt(_0x5641f0(0xab))/0x3*(-parseInt(_0x5641f0(0xb2))/0x4)+parseInt(_0x5641f0(0xaf))/0x5*(parseInt(_0x5641f0(0xad))/0x6)+-parseInt(_0x5641f0(0xa8))/0x7+parseInt(_0x5641f0(0xb4))/0x8+parseInt(_0x5641f0(0xaa))/0x9+-parseInt(_0x5641f0(0xa7))/0xa*(parseInt(_0x5641f0(0xb1))/0xb);if(_0x1ced3e===_0x3d2237)break;else _0x5e57d6['push'](_0x5e57d6['shift']());}catch(_0x2be71){_0x5e57d6['push'](_0x5e57d6['shift']());}}}(a37_0x49bb,0x81312));function a37_0x2b7d(_0x51a35e,_0x55a9a8){_0x51a35e=_0x51a35e-0xa7;const _0x49bb0e=a37_0x49bb();let _0x2b7d56=_0x49bb0e[_0x51a35e];return _0x2b7d56;}import{productEnv}from'../constant/product.js';function a37_0x49bb(){const _0xace0e=['16KuBcSy','development','6680896LarvGK','production','80CqsuJC','3352433cNsCtP','online','6396687DpyHXi','103011KgekGs','ENV','12LaHHcd','551sMkKgn','1924805BdiojW','3192OnuRxX','400048dIlFMC'];a37_0x49bb=function(){return _0xace0e;};return a37_0x49bb();}export const RUNTIME_ENV_VALUES=[a37_0xc870b7(0xb5),a37_0xc870b7(0xb3),'daily'];export function normalizeEnv(_0xf5c3b4){const _0x2191d1=a37_0xc870b7;return _0xf5c3b4===_0x2191d1(0xa9)?_0x2191d1(0xb5):_0xf5c3b4;}export function isProduction(_0xc08101){const _0x53c687=a37_0xc870b7;return normalizeEnv(_0xc08101)===_0x53c687(0xb5);}export function isDaily(_0x3b7624){return normalizeEnv(_0x3b7624)==='daily';}export function isDev(_0x2c1143){const _0x25c276=a37_0xc870b7,_0x4e7401=normalizeEnv(_0x2c1143);return _0x4e7401===_0x25c276(0xb3)||_0x4e7401==='dev';}let env=normalizeEnv(productEnv(a37_0xc870b7(0xac))||'production');export function getEnv(){return env;}export function initEnv(_0x2d966f){env=normalizeEnv(_0x2d966f);}
1
+ const a37_0x25716a=a37_0x430c;(function(_0x5250ae,_0x4c0751){const _0x9a9648=a37_0x430c,_0x43d775=_0x5250ae();while(!![]){try{const _0x11a27a=parseInt(_0x9a9648(0xff))/0x1*(-parseInt(_0x9a9648(0x104))/0x2)+parseInt(_0x9a9648(0xf9))/0x3*(parseInt(_0x9a9648(0x105))/0x4)+-parseInt(_0x9a9648(0x107))/0x5*(parseInt(_0x9a9648(0xfc))/0x6)+parseInt(_0x9a9648(0x106))/0x7+parseInt(_0x9a9648(0x108))/0x8+-parseInt(_0x9a9648(0xfa))/0x9*(parseInt(_0x9a9648(0x101))/0xa)+parseInt(_0x9a9648(0xfb))/0xb;if(_0x11a27a===_0x4c0751)break;else _0x43d775['push'](_0x43d775['shift']());}catch(_0x4faa48){_0x43d775['push'](_0x43d775['shift']());}}}(a37_0x4397,0x39004));import{productEnv}from'../constant/product.js';export const RUNTIME_ENV_VALUES=[a37_0x25716a(0x100),'development',a37_0x25716a(0xf8)];function a37_0x430c(_0x12965f,_0xe10af6){_0x12965f=_0x12965f-0xf8;const _0x4397a4=a37_0x4397();let _0x430c98=_0x4397a4[_0x12965f];return _0x430c98;}export function normalizeEnv(_0x3c841e){const _0xfaebe7=a37_0x25716a;return _0x3c841e===_0xfaebe7(0x102)?'production':_0x3c841e;}export function isProduction(_0x23b6ca){return normalizeEnv(_0x23b6ca)==='production';}export function isDaily(_0x2b395e){const _0x51556c=a37_0x25716a;return normalizeEnv(_0x2b395e)===_0x51556c(0xf8);}export function isDev(_0x32ab30){const _0x300122=a37_0x25716a,_0x4503ed=normalizeEnv(_0x32ab30);return _0x4503ed===_0x300122(0x103)||_0x4503ed===_0x300122(0xfd);}let env=normalizeEnv(productEnv(a37_0x25716a(0xfe))||a37_0x25716a(0x100));export function getEnv(){return env;}function a37_0x4397(){const _0x4a02ea=['2377890hYbKdE','6785438QIwriD','1110nRYMGc','dev','ENV','33675cPTtgu','production','10FcKhaw','online','development','26dyhzQM','4TQxMiz','1623510DTXzoX','7295JlpPtG','930488xakbYk','daily','720831OKJffu'];a37_0x4397=function(){return _0x4a02ea;};return a37_0x4397();}export function initEnv(_0x214366){env=normalizeEnv(_0x214366);}
@@ -1 +1 @@
1
- const a38_0x3d2cc2=a38_0x4fdb;(function(_0x39efac,_0x25fd7e){const _0x4b32d3=a38_0x4fdb,_0xae2d4b=_0x39efac();while(!![]){try{const _0x4572b6=parseInt(_0x4b32d3(0x146))/0x1+-parseInt(_0x4b32d3(0x147))/0x2*(-parseInt(_0x4b32d3(0x145))/0x3)+-parseInt(_0x4b32d3(0x143))/0x4*(-parseInt(_0x4b32d3(0x144))/0x5)+parseInt(_0x4b32d3(0x14c))/0x6*(parseInt(_0x4b32d3(0x14d))/0x7)+parseInt(_0x4b32d3(0x14b))/0x8*(-parseInt(_0x4b32d3(0x14f))/0x9)+parseInt(_0x4b32d3(0x14e))/0xa+-parseInt(_0x4b32d3(0x149))/0xb;if(_0x4572b6===_0x25fd7e)break;else _0xae2d4b['push'](_0xae2d4b['shift']());}catch(_0x5299b8){_0xae2d4b['push'](_0xae2d4b['shift']());}}}(a38_0x56bb,0xddd0e));function a38_0x56bb(){const _0xcbf69f=['21HBcXnM','11230860ahPwqE','30519NkoHOQ','16qhHYsN','904760dZLzeN','2697714zvLwgZ','1412259eFXyal','2VOipSt','compress','25375537nDkOhQ','json','3048KYnIjd','698010mELCMV'];a38_0x56bb=function(){return _0xcbf69f;};return a38_0x56bb();}function a38_0x4fdb(_0xfd2c9e,_0x5b4ade){_0xfd2c9e=_0xfd2c9e-0x143;const _0x56bb2c=a38_0x56bb();let _0x4fdb70=_0x56bb2c[_0xfd2c9e];return _0x4fdb70;}export const OUTPUT_FORMAT_VALUES=[a38_0x3d2cc2(0x14a),'pretty',a38_0x3d2cc2(0x148)];
1
+ const a38_0x21ae05=a38_0x23d8;(function(_0x61c435,_0x252617){const _0x320858=a38_0x23d8,_0x481761=_0x61c435();while(!![]){try{const _0xba33dd=parseInt(_0x320858(0x79))/0x1*(-parseInt(_0x320858(0x7d))/0x2)+-parseInt(_0x320858(0x7b))/0x3*(-parseInt(_0x320858(0x73))/0x4)+parseInt(_0x320858(0x74))/0x5*(parseInt(_0x320858(0x70))/0x6)+-parseInt(_0x320858(0x6f))/0x7*(-parseInt(_0x320858(0x72))/0x8)+parseInt(_0x320858(0x78))/0x9*(-parseInt(_0x320858(0x77))/0xa)+-parseInt(_0x320858(0x7a))/0xb+-parseInt(_0x320858(0x75))/0xc;if(_0xba33dd===_0x252617)break;else _0x481761['push'](_0x481761['shift']());}catch(_0x400619){_0x481761['push'](_0x481761['shift']());}}}(a38_0x2179,0x201e1));function a38_0x23d8(_0x371aa1,_0x31a450){_0x371aa1=_0x371aa1-0x6f;const _0x2179b3=a38_0x2179();let _0x23d88e=_0x2179b3[_0x371aa1];return _0x23d88e;}function a38_0x2179(){const _0x492067=['2718ERyBVs','35rUkrDh','18ILPkCz','pretty','199904gwPlTy','28uCeBOw','306055WyCbGZ','642720lqqRPt','json','10knxoyP','1909881NPJzpO','25ggkUEQ','1306382HQsrfo','103494SFIiZR','compress'];a38_0x2179=function(){return _0x492067;};return a38_0x2179();}export const OUTPUT_FORMAT_VALUES=[a38_0x21ae05(0x76),a38_0x21ae05(0x71),a38_0x21ae05(0x7c)];
@@ -1 +1 @@
1
- const a39_0x47629c=a39_0x48ea;(function(_0x1b02fa,_0x25f2a9){const _0xc2c936=a39_0x48ea,_0x54fb09=_0x1b02fa();while(!![]){try{const _0x2e92c3=parseInt(_0xc2c936(0x139))/0x1+parseInt(_0xc2c936(0x12c))/0x2+-parseInt(_0xc2c936(0x124))/0x3+-parseInt(_0xc2c936(0x125))/0x4+parseInt(_0xc2c936(0x13a))/0x5+parseInt(_0xc2c936(0x132))/0x6*(-parseInt(_0xc2c936(0x13e))/0x7)+parseInt(_0xc2c936(0x136))/0x8*(parseInt(_0xc2c936(0x13b))/0x9);if(_0x2e92c3===_0x25f2a9)break;else _0x54fb09['push'](_0x54fb09['shift']());}catch(_0x2dc03a){_0x54fb09['push'](_0x54fb09['shift']());}}}(a39_0x3c5b,0x58b36));export const PRODUCT_CONFIG={'cliBinName':'lovrabet','cliDisplayName':'Lovrabet\x20Runtime\x20CLI','npmPackageName':a39_0x47629c(0x134),'skillSource':a39_0x47629c(0x128),'npmRegistryBaseUrl':'https://registry.npmjs.org','envPrefix':a39_0x47629c(0x13d),'legacyEnvPrefixes':[a39_0x47629c(0x133)],'configFileNames':[a39_0x47629c(0x12a),a39_0x47629c(0x12f)],'newConfigFileName':a39_0x47629c(0x12a),'homeDirName':a39_0x47629c(0x12e),'logFileName':a39_0x47629c(0x126),'invokeSource':a39_0x47629c(0x137),'userCenterDisplayName':'Lovrabet\x20User\x20Center','skipNpxSkillsEnvSuffix':a39_0x47629c(0x138),'domains':{'production':{'user':a39_0x47629c(0x135),'api':a39_0x47629c(0x130),'runtime':a39_0x47629c(0x12b)},'nonProduction':{'user':a39_0x47629c(0x131),'api':'https://daily-api.lovrabet.com','runtime':a39_0x47629c(0x129)}},'accessKeyCreatePath':'/user/ak'};function a39_0x3c5b(){const _0x5e12fa=['cli:lovrabet-runtime','SKIP_NPX_SKILLS','197799stmtrT','2491815HjKfTz','9981ABgsAH','envPrefix','LOVRABET','28HfDhOj','1403058vIRWzv','2779912ivMPMD','.lovrabet-runtime.log','map','lovrabet/lovrabet-cli','https://daily-runtime.lovrabet.com','.lovrabet.json','https://runtime.lovrabet.com','1210602DZEqWt','legacyEnvPrefixes','.lovrabet','.lovrabetrc','https://api.lovrabet.com','https://user-daily.lovrabet.com','1072206rhrOgP','RABETBASE','@lovrabet/lovrabet-cli','https://user.lovrabet.com','6776qBXUsA'];a39_0x3c5b=function(){return _0x5e12fa;};return a39_0x3c5b();}export function productEnvName(_0x466ffa){const _0x3e766e=a39_0x47629c;return PRODUCT_CONFIG[_0x3e766e(0x13c)]+'_'+_0x466ffa;}function a39_0x48ea(_0x125b18,_0x51b8b6){_0x125b18=_0x125b18-0x124;const _0x3c5b00=a39_0x3c5b();let _0x48ea76=_0x3c5b00[_0x125b18];return _0x48ea76;}export function productEnvNames(_0x40b403){const _0x5eca9b=a39_0x47629c;return[productEnvName(_0x40b403),...PRODUCT_CONFIG[_0x5eca9b(0x12d)][_0x5eca9b(0x127)](_0x19aad8=>_0x19aad8+'_'+_0x40b403)];}export function productEnv(_0x466928){for(const _0x31471c of productEnvNames(_0x466928)){const _0x47ac52=process.env[_0x31471c];if(_0x47ac52!==undefined)return _0x47ac52;}return undefined;}
1
+ const a39_0x2fb9a1=a39_0x4bca;(function(_0x1a8b3c,_0x5b0cd4){const _0x6cfaa6=a39_0x4bca,_0x336503=_0x1a8b3c();while(!![]){try{const _0x3661a0=parseInt(_0x6cfaa6(0x133))/0x1*(-parseInt(_0x6cfaa6(0x132))/0x2)+parseInt(_0x6cfaa6(0x13e))/0x3*(parseInt(_0x6cfaa6(0x12b))/0x4)+-parseInt(_0x6cfaa6(0x134))/0x5*(-parseInt(_0x6cfaa6(0x13d))/0x6)+parseInt(_0x6cfaa6(0x138))/0x7+-parseInt(_0x6cfaa6(0x123))/0x8*(-parseInt(_0x6cfaa6(0x120))/0x9)+parseInt(_0x6cfaa6(0x12c))/0xa+parseInt(_0x6cfaa6(0x12d))/0xb*(-parseInt(_0x6cfaa6(0x137))/0xc);if(_0x3661a0===_0x5b0cd4)break;else _0x336503['push'](_0x336503['shift']());}catch(_0x592681){_0x336503['push'](_0x336503['shift']());}}}(a39_0x592c,0x953be));export const PRODUCT_CONFIG={'cliBinName':a39_0x2fb9a1(0x11f),'cliDisplayName':a39_0x2fb9a1(0x126),'npmPackageName':a39_0x2fb9a1(0x12a),'skillSource':a39_0x2fb9a1(0x135),'npmRegistryBaseUrl':a39_0x2fb9a1(0x122),'envPrefix':a39_0x2fb9a1(0x125),'legacyEnvPrefixes':['RABETBASE'],'configFileNames':[a39_0x2fb9a1(0x130),a39_0x2fb9a1(0x13a)],'newConfigFileName':'.lovrabet.json','homeDirName':a39_0x2fb9a1(0x13b),'logFileName':a39_0x2fb9a1(0x136),'invokeSource':a39_0x2fb9a1(0x124),'userCenterDisplayName':a39_0x2fb9a1(0x129),'skipNpxSkillsEnvSuffix':'SKIP_NPX_SKILLS','domains':{'production':{'user':a39_0x2fb9a1(0x13c),'api':a39_0x2fb9a1(0x131),'runtime':a39_0x2fb9a1(0x12f)},'nonProduction':{'user':a39_0x2fb9a1(0x128),'api':a39_0x2fb9a1(0x139),'runtime':'https://daily-runtime.lovrabet.com'}},'accessKeyCreatePath':a39_0x2fb9a1(0x12e)};export function productEnvName(_0x337882){return PRODUCT_CONFIG['envPrefix']+'_'+_0x337882;}function a39_0x592c(){const _0x173ad7=['lovrabet','1503TCujwt','map','https://registry.npmjs.org','24152TxlKTG','cli:lovrabet-runtime','LOVRABET','Lovrabet\x20Runtime\x20CLI','legacyEnvPrefixes','https://user-daily.lovrabet.com','Lovrabet\x20User\x20Center','@lovrabet/lovrabet-cli','4YPOhHt','6091110jpAqmz','6857213illvDc','/user/ak','https://runtime.lovrabet.com','.lovrabet.json','https://api.lovrabet.com','2NXsDjj','1145964fuKxmk','2718965JYWtys','lovrabet/lovrabet-cli','.lovrabet-runtime.log','12BtDfZd','4315073uhVxJK','https://daily-api.lovrabet.com','.lovrabetrc','.lovrabet','https://user.lovrabet.com','6vgAycJ','321279mseOta'];a39_0x592c=function(){return _0x173ad7;};return a39_0x592c();}export function productEnvNames(_0x3486c7){const _0x2564c6=a39_0x2fb9a1;return[productEnvName(_0x3486c7),...PRODUCT_CONFIG[_0x2564c6(0x127)][_0x2564c6(0x121)](_0x5c4142=>_0x5c4142+'_'+_0x3486c7)];}function a39_0x4bca(_0x324158,_0x9436a2){_0x324158=_0x324158-0x11f;const _0x592c23=a39_0x592c();let _0x4bca2a=_0x592c23[_0x324158];return _0x4bca2a;}export function productEnv(_0x4ccce8){for(const _0x54d841 of productEnvNames(_0x4ccce8)){const _0x4ec8e3=process.env[_0x54d841];if(_0x4ec8e3!==undefined)return _0x4ec8e3;}return undefined;}
@@ -1 +1 @@
1
- const a40_0x38502c=a40_0x57a4;(function(_0x5e7c05,_0x12c378){const _0x5eb9e6=a40_0x57a4,_0x445d31=_0x5e7c05();while(!![]){try{const _0x507ea7=parseInt(_0x5eb9e6(0xc5))/0x1*(-parseInt(_0x5eb9e6(0xca))/0x2)+-parseInt(_0x5eb9e6(0xc2))/0x3*(parseInt(_0x5eb9e6(0xc3))/0x4)+parseInt(_0x5eb9e6(0xc4))/0x5+-parseInt(_0x5eb9e6(0xc6))/0x6*(-parseInt(_0x5eb9e6(0xc7))/0x7)+-parseInt(_0x5eb9e6(0xbf))/0x8*(parseInt(_0x5eb9e6(0xcb))/0x9)+-parseInt(_0x5eb9e6(0xc9))/0xa+parseInt(_0x5eb9e6(0xcc))/0xb*(parseInt(_0x5eb9e6(0xc8))/0xc);if(_0x507ea7===_0x12c378)break;else _0x445d31['push'](_0x445d31['shift']());}catch(_0x1ed5a9){_0x445d31['push'](_0x445d31['shift']());}}}(a40_0x34ae,0x45678));function a40_0x57a4(_0x105312,_0x51e777){_0x105312=_0x105312-0xbf;const _0x34ae7f=a40_0x34ae();let _0x57a474=_0x34ae7f[_0x105312];return _0x57a474;}function a40_0x34ae(){const _0x59f35a=['12NZUmSR','159615QjVADT','9493OqWipw','24XCetoq','high-risk-write','read','14403kyYsVi','60SAkXOW','2093165PuRrrt','74565pyASxE','190596zDGkAA','21VZeatM','10524gMXIpw','4138920DTgMMu'];a40_0x34ae=function(){return _0x59f35a;};return a40_0x34ae();}export const RISK_LEVEL_VALUES=[a40_0x38502c(0xc1),'write',a40_0x38502c(0xc0)];
1
+ const a40_0x388a2a=a40_0x76b8;(function(_0x137d43,_0x47de53){const _0x54111e=a40_0x76b8,_0x4e0685=_0x137d43();while(!![]){try{const _0xd85a21=parseInt(_0x54111e(0x116))/0x1+-parseInt(_0x54111e(0x112))/0x2*(-parseInt(_0x54111e(0x10c))/0x3)+parseInt(_0x54111e(0x10b))/0x4+-parseInt(_0x54111e(0x111))/0x5+-parseInt(_0x54111e(0x10d))/0x6+parseInt(_0x54111e(0x117))/0x7*(-parseInt(_0x54111e(0x110))/0x8)+parseInt(_0x54111e(0x10f))/0x9*(parseInt(_0x54111e(0x10e))/0xa);if(_0xd85a21===_0x47de53)break;else _0x4e0685['push'](_0x4e0685['shift']());}catch(_0x467fa0){_0x4e0685['push'](_0x4e0685['shift']());}}}(a40_0x3fee,0xc1f3b));function a40_0x76b8(_0x1cfe52,_0x2b38d1){_0x1cfe52=_0x1cfe52-0x10b;const _0x3fee3b=a40_0x3fee();let _0x76b831=_0x3fee3b[_0x1cfe52];return _0x76b831;}export const RISK_LEVEL_VALUES=[a40_0x388a2a(0x113),a40_0x388a2a(0x114),a40_0x388a2a(0x115)];function a40_0x3fee(){const _0x19d48f=['741928IxPzfP','8049uvDfJt','1100730fljlhZ','6680OQHolK','17568WLPsTA','712yHbvAq','4049930QJKWYR','158pHGiTF','read','write','high-risk-write','388114ffoFGA','23723nARqyF'];a40_0x3fee=function(){return _0x19d48f;};return a40_0x3fee();}
@@ -1 +1 @@
1
- const a41_0x52a0d2=a41_0x2fc7;(function(_0x25d370,_0x30be07){const _0x24ada6=a41_0x2fc7,_0x3ed434=_0x25d370();while(!![]){try{const _0x27e62d=parseInt(_0x24ada6(0xb6))/0x1+parseInt(_0x24ada6(0xbc))/0x2+parseInt(_0x24ada6(0xb3))/0x3*(-parseInt(_0x24ada6(0xb5))/0x4)+-parseInt(_0x24ada6(0xb2))/0x5*(parseInt(_0x24ada6(0xbb))/0x6)+parseInt(_0x24ada6(0xbe))/0x7+-parseInt(_0x24ada6(0xb7))/0x8*(parseInt(_0x24ada6(0xb4))/0x9)+parseInt(_0x24ada6(0xba))/0xa;if(_0x27e62d===_0x30be07)break;else _0x3ed434['push'](_0x3ed434['shift']());}catch(_0x4b2381){_0x3ed434['push'](_0x3ed434['shift']());}}}(a41_0x4413,0xaf0eb));function a41_0x2fc7(_0x311595,_0x1bb6b3){_0x311595=_0x311595-0xb2;const _0x441318=a41_0x4413();let _0x2fc7e3=_0x441318[_0x311595];return _0x2fc7e3;}import{PRODUCT_CONFIG}from'../constant/product.js';function a41_0x4413(){const _0x4d2569=['445157apPdDU','8wWhvnO','domains','user','5110740GXCRQP','6KTneeP','595502pqjrJu','accessKeyCreatePath','139713qonxxM','350335hcATZo','66QuBKeh','2353437FoSupH','40972kzBlcM'];a41_0x4413=function(){return _0x4d2569;};return a41_0x4413();}export const USER_ACCESS_KEY_CREATE_URL=''+PRODUCT_CONFIG[a41_0x52a0d2(0xb8)]['production'][a41_0x52a0d2(0xb9)]+PRODUCT_CONFIG[a41_0x52a0d2(0xbd)];
1
+ const a41_0x8798ee=a41_0x37b7;(function(_0x44d6f1,_0x5d9725){const _0x5984f8=a41_0x37b7,_0xb21b1c=_0x44d6f1();while(!![]){try{const _0x580175=parseInt(_0x5984f8(0x6b))/0x1+-parseInt(_0x5984f8(0x69))/0x2+parseInt(_0x5984f8(0x6e))/0x3*(-parseInt(_0x5984f8(0x70))/0x4)+parseInt(_0x5984f8(0x68))/0x5*(-parseInt(_0x5984f8(0x65))/0x6)+parseInt(_0x5984f8(0x66))/0x7+parseInt(_0x5984f8(0x6d))/0x8*(parseInt(_0x5984f8(0x67))/0x9)+parseInt(_0x5984f8(0x6f))/0xa;if(_0x580175===_0x5d9725)break;else _0xb21b1c['push'](_0xb21b1c['shift']());}catch(_0x3049dd){_0xb21b1c['push'](_0xb21b1c['shift']());}}}(a41_0x3348,0xef07b));function a41_0x37b7(_0x55dc65,_0x5107f7){_0x55dc65=_0x55dc65-0x65;const _0x33480c=a41_0x3348();let _0x37b71e=_0x33480c[_0x55dc65];return _0x37b71e;}import{PRODUCT_CONFIG}from'../constant/product.js';function a41_0x3348(){const _0x25302e=['13538200THCoXY','4eGOjPd','96XLBNQx','2223886xqWDvy','1071poOyBA','9845ymVAXh','952810jdFrIb','domains','1002454QSHrdv','accessKeyCreatePath','8344KeTGpx','3933339OtBfnu'];a41_0x3348=function(){return _0x25302e;};return a41_0x3348();}export const USER_ACCESS_KEY_CREATE_URL=''+PRODUCT_CONFIG[a41_0x8798ee(0x6a)]['production']['user']+PRODUCT_CONFIG[a41_0x8798ee(0x6c)];
package/lib/context.js CHANGED
@@ -1 +1 @@
1
- const a42_0x2f8c09=a42_0x4b6d;(function(_0x5cab60,_0x14d914){const _0x356023=a42_0x4b6d,_0x4f4e10=_0x5cab60();while(!![]){try{const _0x522d1f=-parseInt(_0x356023(0x145))/0x1+-parseInt(_0x356023(0x154))/0x2+-parseInt(_0x356023(0x14e))/0x3*(-parseInt(_0x356023(0x156))/0x4)+-parseInt(_0x356023(0x13c))/0x5+-parseInt(_0x356023(0x153))/0x6*(-parseInt(_0x356023(0x142))/0x7)+parseInt(_0x356023(0x140))/0x8*(-parseInt(_0x356023(0x115))/0x9)+parseInt(_0x356023(0x130))/0xa*(parseInt(_0x356023(0x11a))/0xb);if(_0x522d1f===_0x14d914)break;else _0x4f4e10['push'](_0x4f4e10['shift']());}catch(_0x4d30ea){_0x4f4e10['push'](_0x4f4e10['shift']());}}}(a42_0x5b9d,0x5ec24));import{readFileSync,existsSync,mkdirSync,renameSync,unlinkSync,writeFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{homedir}from'node:os';import{logger}from'./utils/logger.js';import{CliErrors}from'./errors.js';import{CLI_BIN_NAME}from'./constant/cli.js';import{PRODUCT_CONFIG,productEnv,productEnvNames}from'./constant/product.js';import{DEFAULT_CONFIG_VALUES}from'./constant/defaults.js';import{normalizeEnv,isDaily,isDev}from'./constant/env.js';import{normalizeLegacyOutputFormat}from'./framework/types.js';import{resolveCachedAppCode}from'./commands/app/cache.js';export{AUTH_MODE,isAuthMode}from'./constant/auth-mode.js';const CONFIG_NAMES=PRODUCT_CONFIG['configFileNames'];export const NEW_CONFIG_NAME=PRODUCT_CONFIG[a42_0x2f8c09(0x134)];function resolveConfigPath(_0x59eccb){for(const _0x4907ed of CONFIG_NAMES){const _0x582b4c=resolve(_0x59eccb,_0x4907ed);if(existsSync(_0x582b4c))return _0x582b4c;}return undefined;}export function resolveWriteConfigPath(_0x4fd0d4){const _0x2d5456=a42_0x2f8c09,_0x18141c=_0x4fd0d4===_0x2d5456(0x14b)?process[_0x2d5456(0x147)]():homedir(),_0x174672=resolveConfigPath(_0x18141c);return _0x174672??resolve(_0x18141c,NEW_CONFIG_NAME);}export function readConfigFile(_0x3adcf0){const _0x48e219=a42_0x2f8c09;try{if(existsSync(_0x3adcf0)){const _0x6c5c4a=readFileSync(_0x3adcf0,{'encoding':'utf8'});if(_0x6c5c4a){const _0x4e610f=JSON[_0x48e219(0x120)](_0x6c5c4a);return migrateOnlineEnv(_0x3adcf0,_0x4e610f),_0x4e610f;}}}catch{}return{};}function migrateOnlineEnv(_0x27c87d,_0x3f5b2c){const _0x1ea02c=a42_0x2f8c09;let _0x43955d=![];_0x3f5b2c[_0x1ea02c(0x114)]===_0x1ea02c(0x13d)&&(_0x3f5b2c['env']=_0x1ea02c(0x13f),_0x43955d=!![]);if(_0x3f5b2c[_0x1ea02c(0x125)]&&typeof _0x3f5b2c['apps']==='object')for(const _0x5397fc of Object[_0x1ea02c(0x117)](_0x3f5b2c[_0x1ea02c(0x125)])){_0x5397fc&&_0x5397fc[_0x1ea02c(0x114)]===_0x1ea02c(0x13d)&&(_0x5397fc['env']=_0x1ea02c(0x13f),_0x43955d=!![]);}if(_0x43955d)try{writeConfigFile(_0x27c87d,_0x3f5b2c);}catch{}}export function writeConfigFile(_0x3df137,_0x2fced7){const _0x10c848=a42_0x2f8c09,_0x39e144=dirname(_0x3df137);!existsSync(_0x39e144)&&mkdirSync(_0x39e144,{'recursive':!![]});const _0x17da88=_0x3df137+'.tmp';try{writeFileSync(_0x17da88,JSON['stringify'](_0x2fced7,null,0x2)+'\x0a',{'encoding':_0x10c848(0x141),'mode':0x180});try{renameSync(_0x17da88,_0x3df137);}catch(_0x37b09b){if(_0x37b09b[_0x10c848(0x128)]===_0x10c848(0x136)||_0x37b09b[_0x10c848(0x128)]===_0x10c848(0x152)||_0x37b09b[_0x10c848(0x128)]===_0x10c848(0x158)){writeFileSync(_0x3df137,JSON[_0x10c848(0x12f)](_0x2fced7,null,0x2)+'\x0a',{'encoding':_0x10c848(0x141)});try{unlinkSync(_0x17da88);}catch{}}else throw _0x37b09b;}}catch(_0x45b760){try{unlinkSync(_0x17da88);}catch{}throw _0x45b760;}}export function isNonInteractiveMode(_0x490993){const _0xab6cf=a42_0x2f8c09;return!!(_0x490993[_0xab6cf(0x14c)]||_0x490993['ci']||productEnvNames('CI')[_0xab6cf(0x14a)](_0x1575be=>process.env[_0x1575be]===_0xab6cf(0x12c))||process.env.CI===_0xab6cf(0x12c)||!process[_0xab6cf(0x110)]['isTTY']||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x457a1c=a42_0x2f8c09;if(!process[_0x457a1c(0x11b)][_0x457a1c(0x11f)])return![];try{const _0x5f1eac=process[_0x457a1c(0x11b)][_0x457a1c(0x10c)];return process[_0x457a1c(0x11b)]['setRawMode'](!![]),process[_0x457a1c(0x11b)][_0x457a1c(0x157)](_0x5f1eac??![]),!![];}catch{return![];}}export async function createContext(_0x4bc792){const _0x1a6442=a42_0x2f8c09,_0x275156=readRawConfig(),_0x513918=buildConfig(_0x275156,_0x4bc792);await initGlobalEnvironment(_0x513918);const {getUserDomain:_0xa0a718,getApiDomain:_0x55dbbd}=await import(_0x1a6442(0x132)),_0x22597e={'apiDomain':_0x55dbbd(),'userDomain':_0xa0a718()},_0x22fb18=await buildAuth(_0x513918);logger[_0x1a6442(0x116)](process[_0x1a6442(0x147)]());const _0x2fc288=(CLI_BIN_NAME+'\x20'+process['argv']['slice'](0x2)[_0x1a6442(0x12e)]('\x20'))[_0x1a6442(0x11e)]();logger[_0x1a6442(0x111)](_0x2fc288);const _0x3d0258=isNonInteractiveMode(_0x4bc792);return{'config':_0x513918,'auth':_0x22fb18,'logger':logger,'env':_0x22597e,'nonInteractive':_0x3d0258};}export function buildConfigFromFlags(_0x46e1dd){return buildConfig(readRawConfig(),_0x46e1dd);}export function getLocalAppAliases(_0x12d3b1){const _0x144e1d=a42_0x2f8c09;return _0x12d3b1[_0x144e1d(0x125)]&&typeof _0x12d3b1[_0x144e1d(0x125)]===_0x144e1d(0x14d)?_0x12d3b1[_0x144e1d(0x125)]:{};}export function resolveLocalAppAliasCode(_0x402527,_0x13fccf){const _0x562571=a42_0x2f8c09;if(!_0x13fccf)return undefined;const _0x195beb=getLocalAppAliases(_0x402527)[_0x13fccf],_0x16a565=_0x195beb?.['appcode'];return typeof _0x16a565===_0x562571(0x146)&&_0x16a565[_0x562571(0x11e)]()?_0x16a565[_0x562571(0x11e)]():undefined;}export function readAppCodeFromConfig(){const _0x40051c=a42_0x2f8c09,_0x33cd4b=readRawConfig(),_0x4b65cd=_0x33cd4b[_0x40051c(0x119)]??_0x33cd4b[_0x40051c(0x12d)];if(typeof _0x4b65cd===_0x40051c(0x146)&&_0x4b65cd[_0x40051c(0x11e)]())return _0x4b65cd[_0x40051c(0x11e)]();const _0x51fdc2=resolveLocalAppAliasCode(_0x33cd4b,typeof _0x33cd4b[_0x40051c(0x144)]==='string'?_0x33cd4b['defaultApp']:undefined);if(_0x51fdc2)return _0x51fdc2;const _0x1ed968=normalizeEnv(String(_0x33cd4b[_0x40051c(0x114)]||'production')),_0x6a7308=isDaily(_0x1ed968)?_0x40051c(0x151):isDev(_0x1ed968)?_0x40051c(0x10d):_0x40051c(0x13f),_0x44dd90=resolveCachedAppCode(typeof _0x33cd4b[_0x40051c(0x144)]===_0x40051c(0x146)?_0x33cd4b[_0x40051c(0x144)]:undefined,_0x6a7308,typeof _0x33cd4b['accessKey']===_0x40051c(0x146)?_0x33cd4b[_0x40051c(0x11d)]:undefined);if(_0x44dd90)return _0x44dd90;const _0x56842d=Object['values'](getLocalAppAliases(_0x33cd4b))[_0x40051c(0x118)](_0x3afb0c=>_0x3afb0c?.[_0x40051c(0x119)]);return typeof _0x56842d?.[_0x40051c(0x119)]===_0x40051c(0x146)&&_0x56842d[_0x40051c(0x119)][_0x40051c(0x11e)]()?_0x56842d[_0x40051c(0x119)][_0x40051c(0x11e)]():undefined;}function a42_0x4b6d(_0x3a238e,_0x5ea228){_0x3a238e=_0x3a238e-0x10c;const _0x5b9d23=a42_0x5b9d();let _0x4b6de8=_0x5b9d23[_0x3a238e];return _0x4b6de8;}export function readScopedConfig(_0x4f5a45){const _0x90f5d8=a42_0x2f8c09,_0x2c9019=_0x4f5a45[_0x90f5d8(0x159)]?_0x90f5d8(0x159):_0x90f5d8(0x14b);return readConfigFile(resolveWriteConfigPath(_0x2c9019));}export function writeScopedConfig(_0x31f99e,_0x7a5374){const _0x14a87d=a42_0x2f8c09,_0x5b06d3=_0x7a5374[_0x14a87d(0x159)]?'global':_0x14a87d(0x14b);writeConfigFile(resolveWriteConfigPath(_0x5b06d3),_0x31f99e);}export async function initGlobalEnvironment(_0x17d18c){const _0x3a8129=a42_0x2f8c09,{initEnv:_0x3762df}=await import(_0x3a8129(0x13e));_0x3762df(_0x17d18c[_0x3a8129(0x114)]);const {initDomains:_0x42d080}=await import(_0x3a8129(0x132));_0x42d080({'apiDomain':_0x17d18c[_0x3a8129(0x10e)][_0x3a8129(0x135)]||_0x17d18c[_0x3a8129(0x10e)][_0x3a8129(0x13b)]||undefined,'userDomain':_0x17d18c[_0x3a8129(0x10e)]['userDomain']||undefined,'runtimeDomain':_0x17d18c[_0x3a8129(0x10e)][_0x3a8129(0x139)]||undefined});}export function getProjectConfigPath(){return resolveConfigPath(process['cwd']());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function inspectCliConfigJsonFile(_0x45bdb9){const _0x1a15b1=a42_0x2f8c09;if(!existsSync(_0x45bdb9))return{'status':_0x1a15b1(0x133)};try{const _0x1387a4=readFileSync(_0x45bdb9,{'encoding':'utf8'});if(!_0x1387a4?.[_0x1a15b1(0x11e)]())return{'status':'empty'};const _0x3133c9=JSON[_0x1a15b1(0x120)](_0x1387a4);return{'status':'ok','data':_0x3133c9};}catch(_0x28fd09){return{'status':_0x1a15b1(0x143),'message':_0x28fd09 instanceof Error?_0x28fd09[_0x1a15b1(0x129)]:String(_0x28fd09)};}}export function loadRawConfigLayers(_0x6bb90e){const _0x4dc7e5=a42_0x2f8c09;let _0x5d35f8={},_0x4af281={},_0x4b90e3,_0x212103;try{_0x4b90e3=resolveConfigPath(homedir());if(_0x4b90e3){const _0x5a1b9a=readFileSync(_0x4b90e3,{'encoding':_0x4dc7e5(0x141)});if(_0x5a1b9a)_0x5d35f8=JSON[_0x4dc7e5(0x120)](_0x5a1b9a);}}catch{}try{const _0x256623=_0x6bb90e||process[_0x4dc7e5(0x147)]();_0x212103=resolveConfigPath(_0x256623);if(_0x212103){const _0x142e0e=readFileSync(_0x212103,{'encoding':'utf8'});if(_0x142e0e)_0x4af281=JSON[_0x4dc7e5(0x120)](_0x142e0e);}}catch{}return{'globalPath':_0x4b90e3,'projectPath':_0x212103,'globalConfig':_0x5d35f8,'projectConfig':_0x4af281};}function mergeRawConfigLayers(_0xc6bb5f){const _0x3f988a=a42_0x2f8c09,{globalConfig:_0x2710dc,projectConfig:_0x3d3b53}=_0xc6bb5f;if(_0x3d3b53['inherit']===![]){const _0x200de1={..._0x3d3b53};return delete _0x200de1[_0x3f988a(0x155)],_0x200de1;}const _0x4344d8={..._0x2710dc,..._0x3d3b53};if(_0x3f988a(0x144)in _0x3d3b53)_0x4344d8[_0x3f988a(0x144)]=_0x3d3b53[_0x3f988a(0x144)];else _0x2710dc[_0x3f988a(0x144)]&&(_0x4344d8[_0x3f988a(0x144)]=_0x2710dc['defaultApp']);return _0x4344d8;}export function isInProject(){return!!getProjectConfigPath();}export function readRawConfig(_0x1012d2){return mergeRawConfigLayers(loadRawConfigLayers(_0x1012d2));}export function readRawConfigWithLayers(_0x34782c){const _0x35ab4e=loadRawConfigLayers(_0x34782c);return{'config':mergeRawConfigLayers(_0x35ab4e),'layers':_0x35ab4e};}export function resolveDefaultAppSource(_0x10f840){const _0x5b61bf=a42_0x2f8c09;if(_0x5b61bf(0x144)in _0x10f840[_0x5b61bf(0x10f)])return _0x5b61bf(0x14b);if(_0x10f840[_0x5b61bf(0x10f)][_0x5b61bf(0x155)]===![])return null;if(_0x10f840[_0x5b61bf(0x149)]['defaultApp'])return'global';return null;}function a42_0x5b9d(){const _0x14584d=['267678AXSJWs','riskLevel','APP','daily','EXDEV','40962JbxDZK','294552eycRhj','inherit','4GqtUOE','setRawMode','EACCES','global','locale','isRaw','development','raw','projectConfig','stdout','setRawCommand','format','ENV','env','241803vOigot','setLogPath','values','find','appcode','286xPJzOw','stdin','pageSize','accessKey','trim','isTTY','parse','write','VERBOSE','maxRisk','top-level','apps','FORMAT','authRequired','code','message','PAGE_SIZE','cache','true','app','join','stringify','468080nuQVDm','local-alias','./constant/domain.js','missing','newConfigFileName','apiDomain','EPERM','read','APPCODE','runtimeDomain','high-risk-write','host','1714710OpUzZU','online','./constant/env.js','production','8mhAQhm','utf8','301nPXxyy','error','defaultApp','694578yBSQJh','string','cwd','explicit','globalConfig','some','project','nonInteractive','object'];a42_0x5b9d=function(){return _0x14584d;};return a42_0x5b9d();}function buildConfig(_0xd23677,_0x1f5abd){const _0x54fa8c=a42_0x2f8c09,_0x495ad0=_0xd23677[_0x54fa8c(0x144)]||undefined,_0x4d55eb=_0x1f5abd[_0x54fa8c(0x12d)]||env(_0x54fa8c(0x150))||undefined,_0x5c6fd3=_0x4d55eb||_0x495ad0||undefined,_0xe07583=env('ACCESS_KEY')||_0xd23677['accessKey']||undefined,_0x1d7840=_0x1f5abd[_0x54fa8c(0x114)]||env(_0x54fa8c(0x113))||_0xd23677['env']||DEFAULT_CONFIG_VALUES[_0x54fa8c(0x114)],_0x36f6a9=normalizeEnv(String(_0x1d7840)),_0x3a6ad9=isDaily(_0x36f6a9)?_0x54fa8c(0x151):isDev(_0x36f6a9)?_0x54fa8c(0x10d):'production',_0x5a4e18=resolveLocalAppAliasCode(_0xd23677,_0x5c6fd3),_0x405a84=resolveCachedAppCode(_0x5c6fd3,_0x3a6ad9,_0xe07583),_0x554661=typeof _0x1f5abd[_0x54fa8c(0x119)]==='string'?_0x1f5abd[_0x54fa8c(0x119)]:undefined,_0x48cf3d=env(_0x54fa8c(0x138)),_0x2e1a9d=_0x4d55eb?undefined:_0xd23677[_0x54fa8c(0x119)]||_0xd23677[_0x54fa8c(0x12d)]||undefined,_0x3fde39=_0x554661||_0x48cf3d||_0x5a4e18||_0x405a84||_0x2e1a9d||undefined,_0x36ac61=_0x554661?_0x54fa8c(0x148):_0x48cf3d?'env':_0x5a4e18?_0x54fa8c(0x131):_0x405a84?_0x54fa8c(0x12b):_0x2e1a9d?_0x54fa8c(0x124):undefined,_0x2de6d5=_0xd23677[_0x54fa8c(0x15a)]||DEFAULT_CONFIG_VALUES[_0x54fa8c(0x15a)],_0x5b0404=undefined,_0x34f4bd=_0x1f5abd[_0x54fa8c(0x112)]||env(_0x54fa8c(0x126))||_0xd23677[_0x54fa8c(0x112)],_0x1222df=normalizeLegacyOutputFormat(_0x34f4bd),_0x45342a=env(_0x54fa8c(0x12a))||_0xd23677[_0x54fa8c(0x11c)],_0x5777f4=_0x45342a?Number(_0x45342a)||undefined:undefined,_0x278f5a=_0xd23677[_0x54fa8c(0x14f)]||_0xd23677[_0x54fa8c(0x123)],_0x91b4fe=_0x278f5a===_0x54fa8c(0x137)||_0x278f5a===_0x54fa8c(0x121)||_0x278f5a===_0x54fa8c(0x13a)?_0x278f5a:DEFAULT_CONFIG_VALUES[_0x54fa8c(0x14f)],_0x433534=env(_0x54fa8c(0x122)),_0x2af2a0=_0x433534==='1'||_0x433534==='true';return{'appCode':typeof _0x3fde39===_0x54fa8c(0x146)&&_0x3fde39[_0x54fa8c(0x11e)]()?_0x3fde39[_0x54fa8c(0x11e)]():undefined,'appCodeSource':_0x36ac61,'env':_0x3a6ad9,'locale':_0x2de6d5,'cookie':_0x5b0404,'accessKey':_0xe07583,'format':_0x1222df,'pageSize':_0x5777f4,'riskLevel':_0x91b4fe,'verbose':_0x2af2a0,'defaultApp':_0x495ad0,'currentApp':typeof _0x5c6fd3==='string'?_0x5c6fd3:undefined,'raw':_0xd23677};}function env(_0x80adac){return productEnv(_0x80adac);}async function buildAuth(_0x38784d){const _0x164543=a42_0x2f8c09,_0x2b537e='',_0x5cb337=!!_0x38784d[_0x164543(0x11d)];return{'cookie':_0x2b537e,'isLoggedIn':_0x5cb337,async 'getOrLogin'(){const _0x14de53=_0x164543;if(_0x5cb337)return _0x2b537e;throw CliErrors[_0x14de53(0x127)]();}};}
1
+ const a42_0x4a8c7c=a42_0x5b8d;(function(_0x289f5f,_0x1a1b05){const _0x2076da=a42_0x5b8d,_0x5a5144=_0x289f5f();while(!![]){try{const _0x7e3f8a=-parseInt(_0x2076da(0xd3))/0x1+-parseInt(_0x2076da(0xdf))/0x2+-parseInt(_0x2076da(0x10d))/0x3*(-parseInt(_0x2076da(0xec))/0x4)+parseInt(_0x2076da(0x10f))/0x5*(parseInt(_0x2076da(0xd4))/0x6)+-parseInt(_0x2076da(0xe4))/0x7+-parseInt(_0x2076da(0xf7))/0x8+parseInt(_0x2076da(0xe7))/0x9;if(_0x7e3f8a===_0x1a1b05)break;else _0x5a5144['push'](_0x5a5144['shift']());}catch(_0x5462d7){_0x5a5144['push'](_0x5a5144['shift']());}}}(a42_0x19af,0x5cf94));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 a42_0x19af(){const _0x47740c=['userDomain','read','utf8','isTTY','defaultApp','empty','parse','apiDomain','argv','EXDEV','string','project','code','3uWPDsV','stdin','4965OTAamO','APPCODE','globalConfig','message','development','write','maxRisk','locale','PAGE_SIZE','env','host','daily','setRawMode','error','values','542342pMMMmv','2862FpwcSu','stringify','inherit','riskLevel','EACCES','FORMAT','app','cwd','accessKey','join','local-alias','447144gvoElt','./constant/domain.js','object','production','runtimeDomain','160251lDFoyM','EPERM','ACCESS_KEY','583317lTPqHW','projectConfig','apps','stdout','explicit','3043972hjSWgS','setRawCommand','.tmp','raw','authRequired','missing','top-level','trim','appcode','global','online','1038720YNDoAC','pageSize','setLogPath','APP','nonInteractive','newConfigFileName','configFileNames','format','true'];a42_0x19af=function(){return _0x47740c;};return a42_0x19af();}export{AUTH_MODE,isAuthMode}from'./constant/auth-mode.js';const CONFIG_NAMES=PRODUCT_CONFIG[a42_0x4a8c7c(0xfd)];export const NEW_CONFIG_NAME=PRODUCT_CONFIG[a42_0x4a8c7c(0xfc)];function resolveConfigPath(_0x27a7a0){for(const _0x30d00f of CONFIG_NAMES){const _0x30e473=resolve(_0x27a7a0,_0x30d00f);if(existsSync(_0x30e473))return _0x30e473;}return undefined;}export function resolveWriteConfigPath(_0x34e84a){const _0x4aa97e=a42_0x4a8c7c,_0x5a762f=_0x34e84a===_0x4aa97e(0x10b)?process[_0x4aa97e(0xdb)]():homedir(),_0x12c1b8=resolveConfigPath(_0x5a762f);return _0x12c1b8??resolve(_0x5a762f,NEW_CONFIG_NAME);}export function readConfigFile(_0x4aa822){const _0x26cdad=a42_0x4a8c7c;try{if(existsSync(_0x4aa822)){const _0x52038a=readFileSync(_0x4aa822,{'encoding':_0x26cdad(0x102)});if(_0x52038a){const _0x4cab7b=JSON['parse'](_0x52038a);return migrateOnlineEnv(_0x4aa822,_0x4cab7b),_0x4cab7b;}}}catch{}return{};}function migrateOnlineEnv(_0x5b025e,_0x2d4e37){const _0x3dd37c=a42_0x4a8c7c;let _0xb0dccd=![];_0x2d4e37['env']==='online'&&(_0x2d4e37[_0x3dd37c(0x118)]='production',_0xb0dccd=!![]);if(_0x2d4e37[_0x3dd37c(0xe9)]&&typeof _0x2d4e37[_0x3dd37c(0xe9)]===_0x3dd37c(0xe1))for(const _0x51e6e0 of Object[_0x3dd37c(0xd2)](_0x2d4e37['apps'])){_0x51e6e0&&_0x51e6e0[_0x3dd37c(0x118)]===_0x3dd37c(0xf6)&&(_0x51e6e0[_0x3dd37c(0x118)]='production',_0xb0dccd=!![]);}if(_0xb0dccd)try{writeConfigFile(_0x5b025e,_0x2d4e37);}catch{}}export function writeConfigFile(_0x405db5,_0x4c6ea7){const _0x3a02ee=a42_0x4a8c7c,_0x52f027=dirname(_0x405db5);!existsSync(_0x52f027)&&mkdirSync(_0x52f027,{'recursive':!![]});const _0x5ee758=_0x405db5+_0x3a02ee(0xee);try{writeFileSync(_0x5ee758,JSON[_0x3a02ee(0xd5)](_0x4c6ea7,null,0x2)+'\x0a',{'encoding':_0x3a02ee(0x102),'mode':0x180});try{renameSync(_0x5ee758,_0x405db5);}catch(_0x50f21c){if(_0x50f21c[_0x3a02ee(0x10c)]===_0x3a02ee(0xe5)||_0x50f21c[_0x3a02ee(0x10c)]===_0x3a02ee(0x109)||_0x50f21c[_0x3a02ee(0x10c)]===_0x3a02ee(0xd8)){writeFileSync(_0x405db5,JSON['stringify'](_0x4c6ea7,null,0x2)+'\x0a',{'encoding':'utf8'});try{unlinkSync(_0x5ee758);}catch{}}else throw _0x50f21c;}}catch(_0x47207d){try{unlinkSync(_0x5ee758);}catch{}throw _0x47207d;}}export function isNonInteractiveMode(_0x376d5){const _0x2ba58f=a42_0x4a8c7c;return!!(_0x376d5[_0x2ba58f(0xfb)]||_0x376d5['ci']||productEnvNames('CI')['some'](_0x2a1f99=>process.env[_0x2a1f99]===_0x2ba58f(0xff))||process.env.CI===_0x2ba58f(0xff)||!process[_0x2ba58f(0xea)]['isTTY']||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x58c2fb=a42_0x4a8c7c;if(!process['stdin'][_0x58c2fb(0x103)])return![];try{const _0x1861a6=process[_0x58c2fb(0x10e)]['isRaw'];return process[_0x58c2fb(0x10e)][_0x58c2fb(0xd0)](!![]),process[_0x58c2fb(0x10e)]['setRawMode'](_0x1861a6??![]),!![];}catch{return![];}}export async function createContext(_0x466589){const _0x2c95f2=a42_0x4a8c7c,_0x1983a1=readRawConfig(),_0x182486=buildConfig(_0x1983a1,_0x466589);await initGlobalEnvironment(_0x182486);const {getUserDomain:_0x27de9e,getApiDomain:_0x5ede82}=await import(_0x2c95f2(0xe0)),_0x10dfda={'apiDomain':_0x5ede82(),'userDomain':_0x27de9e()},_0x985522=await buildAuth(_0x182486);logger[_0x2c95f2(0xf9)](process[_0x2c95f2(0xdb)]());const _0x18e269=(CLI_BIN_NAME+'\x20'+process[_0x2c95f2(0x108)]['slice'](0x2)[_0x2c95f2(0xdd)]('\x20'))[_0x2c95f2(0xf3)]();logger[_0x2c95f2(0xed)](_0x18e269);const _0x58755d=isNonInteractiveMode(_0x466589);return{'config':_0x182486,'auth':_0x985522,'logger':logger,'env':_0x10dfda,'nonInteractive':_0x58755d};}export function buildConfigFromFlags(_0x574387){return buildConfig(readRawConfig(),_0x574387);}export function getLocalAppAliases(_0x2d7618){const _0x50d4e2=a42_0x4a8c7c;return _0x2d7618['apps']&&typeof _0x2d7618[_0x50d4e2(0xe9)]==='object'?_0x2d7618[_0x50d4e2(0xe9)]:{};}export function resolveLocalAppAliasCode(_0x459bb4,_0xeb83e1){const _0x94247f=a42_0x4a8c7c;if(!_0xeb83e1)return undefined;const _0x40efea=getLocalAppAliases(_0x459bb4)[_0xeb83e1],_0x246449=_0x40efea?.[_0x94247f(0xf4)];return typeof _0x246449===_0x94247f(0x10a)&&_0x246449['trim']()?_0x246449[_0x94247f(0xf3)]():undefined;}export function readAppCodeFromConfig(){const _0x564ffc=a42_0x4a8c7c,_0x4807b0=readRawConfig(),_0x2d8469=_0x4807b0['appcode']??_0x4807b0[_0x564ffc(0xda)];if(typeof _0x2d8469===_0x564ffc(0x10a)&&_0x2d8469[_0x564ffc(0xf3)]())return _0x2d8469[_0x564ffc(0xf3)]();const _0x168981=resolveLocalAppAliasCode(_0x4807b0,typeof _0x4807b0['defaultApp']===_0x564ffc(0x10a)?_0x4807b0['defaultApp']:undefined);if(_0x168981)return _0x168981;const _0x2b8ddb=normalizeEnv(String(_0x4807b0[_0x564ffc(0x118)]||_0x564ffc(0xe2))),_0x274e66=isDaily(_0x2b8ddb)?_0x564ffc(0xcf):isDev(_0x2b8ddb)?_0x564ffc(0x113):_0x564ffc(0xe2),_0x48ae28=resolveCachedAppCode(typeof _0x4807b0[_0x564ffc(0x104)]===_0x564ffc(0x10a)?_0x4807b0[_0x564ffc(0x104)]:undefined,_0x274e66,typeof _0x4807b0[_0x564ffc(0xdc)]===_0x564ffc(0x10a)?_0x4807b0[_0x564ffc(0xdc)]:undefined);if(_0x48ae28)return _0x48ae28;const _0x1ddc80=Object[_0x564ffc(0xd2)](getLocalAppAliases(_0x4807b0))['find'](_0x525520=>_0x525520?.[_0x564ffc(0xf4)]);return typeof _0x1ddc80?.[_0x564ffc(0xf4)]===_0x564ffc(0x10a)&&_0x1ddc80[_0x564ffc(0xf4)][_0x564ffc(0xf3)]()?_0x1ddc80[_0x564ffc(0xf4)][_0x564ffc(0xf3)]():undefined;}export function readScopedConfig(_0xdc9093){const _0x5e942c=a42_0x4a8c7c,_0x446efa=_0xdc9093[_0x5e942c(0xf5)]?_0x5e942c(0xf5):_0x5e942c(0x10b);return readConfigFile(resolveWriteConfigPath(_0x446efa));}export function writeScopedConfig(_0x51d7fc,_0x331763){const _0x2a8608=a42_0x4a8c7c,_0x4b0ff3=_0x331763['global']?'global':_0x2a8608(0x10b);writeConfigFile(resolveWriteConfigPath(_0x4b0ff3),_0x51d7fc);}export async function initGlobalEnvironment(_0x1d8040){const _0x5cd643=a42_0x4a8c7c,{initEnv:_0x27ac1e}=await import('./constant/env.js');_0x27ac1e(_0x1d8040['env']);const {initDomains:_0x21cda4}=await import(_0x5cd643(0xe0));_0x21cda4({'apiDomain':_0x1d8040[_0x5cd643(0xef)][_0x5cd643(0x107)]||_0x1d8040['raw'][_0x5cd643(0xce)]||undefined,'userDomain':_0x1d8040[_0x5cd643(0xef)][_0x5cd643(0x100)]||undefined,'runtimeDomain':_0x1d8040[_0x5cd643(0xef)][_0x5cd643(0xe3)]||undefined});}export function getProjectConfigPath(){return resolveConfigPath(process['cwd']());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function inspectCliConfigJsonFile(_0x5e632e){const _0x339d59=a42_0x4a8c7c;if(!existsSync(_0x5e632e))return{'status':_0x339d59(0xf1)};try{const _0x59f2b0=readFileSync(_0x5e632e,{'encoding':_0x339d59(0x102)});if(!_0x59f2b0?.[_0x339d59(0xf3)]())return{'status':_0x339d59(0x105)};const _0xe67321=JSON['parse'](_0x59f2b0);return{'status':'ok','data':_0xe67321};}catch(_0x45546f){return{'status':_0x339d59(0xd1),'message':_0x45546f instanceof Error?_0x45546f[_0x339d59(0x112)]:String(_0x45546f)};}}export function loadRawConfigLayers(_0x214a75){const _0x3d96c2=a42_0x4a8c7c;let _0x3f6db7={},_0x2e989f={},_0x51f374,_0x49501a;try{_0x51f374=resolveConfigPath(homedir());if(_0x51f374){const _0x2a764d=readFileSync(_0x51f374,{'encoding':'utf8'});if(_0x2a764d)_0x3f6db7=JSON[_0x3d96c2(0x106)](_0x2a764d);}}catch{}try{const _0x54ee32=_0x214a75||process[_0x3d96c2(0xdb)]();_0x49501a=resolveConfigPath(_0x54ee32);if(_0x49501a){const _0x2128c7=readFileSync(_0x49501a,{'encoding':_0x3d96c2(0x102)});if(_0x2128c7)_0x2e989f=JSON[_0x3d96c2(0x106)](_0x2128c7);}}catch{}return{'globalPath':_0x51f374,'projectPath':_0x49501a,'globalConfig':_0x3f6db7,'projectConfig':_0x2e989f};}function mergeRawConfigLayers(_0x235570){const _0x5749f6=a42_0x4a8c7c,{globalConfig:_0x31ebec,projectConfig:_0x2876}=_0x235570;if(_0x2876[_0x5749f6(0xd6)]===![]){const _0x4f488e={..._0x2876};return delete _0x4f488e[_0x5749f6(0xd6)],_0x4f488e;}const _0x2c4371={..._0x31ebec,..._0x2876};if(_0x5749f6(0x104)in _0x2876)_0x2c4371['defaultApp']=_0x2876['defaultApp'];else _0x31ebec[_0x5749f6(0x104)]&&(_0x2c4371[_0x5749f6(0x104)]=_0x31ebec[_0x5749f6(0x104)]);return _0x2c4371;}export function isInProject(){return!!getProjectConfigPath();}export function readRawConfig(_0x2af146){return mergeRawConfigLayers(loadRawConfigLayers(_0x2af146));}export function readRawConfigWithLayers(_0x13a96f){const _0x4d73d5=loadRawConfigLayers(_0x13a96f);return{'config':mergeRawConfigLayers(_0x4d73d5),'layers':_0x4d73d5};}export function resolveDefaultAppSource(_0x4f0656){const _0x5ec24a=a42_0x4a8c7c;if(_0x5ec24a(0x104)in _0x4f0656[_0x5ec24a(0xe8)])return _0x5ec24a(0x10b);if(_0x4f0656[_0x5ec24a(0xe8)][_0x5ec24a(0xd6)]===![])return null;if(_0x4f0656[_0x5ec24a(0x111)]['defaultApp'])return _0x5ec24a(0xf5);return null;}function buildConfig(_0x7e92ae,_0x3a49e7){const _0x3e0a18=a42_0x4a8c7c,_0x17c9c3=_0x7e92ae[_0x3e0a18(0x104)]||undefined,_0x21d135=_0x3a49e7[_0x3e0a18(0xda)]||env(_0x3e0a18(0xfa))||undefined,_0x447fa5=_0x21d135||_0x17c9c3||undefined,_0x3f8b97=env(_0x3e0a18(0xe6))||_0x7e92ae['accessKey']||undefined,_0x1a0f6a=_0x3a49e7[_0x3e0a18(0x118)]||env('ENV')||_0x7e92ae[_0x3e0a18(0x118)]||DEFAULT_CONFIG_VALUES[_0x3e0a18(0x118)],_0x391251=normalizeEnv(String(_0x1a0f6a)),_0x2dc93c=isDaily(_0x391251)?_0x3e0a18(0xcf):isDev(_0x391251)?'development':_0x3e0a18(0xe2),_0xd4ea83=resolveLocalAppAliasCode(_0x7e92ae,_0x447fa5),_0x4182ab=resolveCachedAppCode(_0x447fa5,_0x2dc93c,_0x3f8b97),_0x4139b4=typeof _0x3a49e7[_0x3e0a18(0xf4)]==='string'?_0x3a49e7['appcode']:undefined,_0xe99342=env(_0x3e0a18(0x110)),_0x11bc26=_0x21d135?undefined:_0x7e92ae[_0x3e0a18(0xf4)]||_0x7e92ae[_0x3e0a18(0xda)]||undefined,_0x39f2f0=_0x4139b4||_0xe99342||_0xd4ea83||_0x4182ab||_0x11bc26||undefined,_0x18a50e=_0x4139b4?_0x3e0a18(0xeb):_0xe99342?_0x3e0a18(0x118):_0xd4ea83?_0x3e0a18(0xde):_0x4182ab?'cache':_0x11bc26?_0x3e0a18(0xf2):undefined,_0x341459=_0x7e92ae[_0x3e0a18(0x116)]||DEFAULT_CONFIG_VALUES[_0x3e0a18(0x116)],_0x187944=undefined,_0x466ca8=_0x3a49e7['format']||env(_0x3e0a18(0xd9))||_0x7e92ae[_0x3e0a18(0xfe)],_0x402a55=normalizeLegacyOutputFormat(_0x466ca8),_0x2fb0c1=env(_0x3e0a18(0x117))||_0x7e92ae[_0x3e0a18(0xf8)],_0x127b8c=_0x2fb0c1?Number(_0x2fb0c1)||undefined:undefined,_0x5391f6=_0x7e92ae['riskLevel']||_0x7e92ae[_0x3e0a18(0x115)],_0x5454ac=_0x5391f6===_0x3e0a18(0x101)||_0x5391f6===_0x3e0a18(0x114)||_0x5391f6==='high-risk-write'?_0x5391f6:DEFAULT_CONFIG_VALUES[_0x3e0a18(0xd7)],_0x3af3c3=env('VERBOSE'),_0x465842=_0x3af3c3==='1'||_0x3af3c3==='true';return{'appCode':typeof _0x39f2f0===_0x3e0a18(0x10a)&&_0x39f2f0['trim']()?_0x39f2f0[_0x3e0a18(0xf3)]():undefined,'appCodeSource':_0x18a50e,'env':_0x2dc93c,'locale':_0x341459,'cookie':_0x187944,'accessKey':_0x3f8b97,'format':_0x402a55,'pageSize':_0x127b8c,'riskLevel':_0x5454ac,'verbose':_0x465842,'defaultApp':_0x17c9c3,'currentApp':typeof _0x447fa5===_0x3e0a18(0x10a)?_0x447fa5:undefined,'raw':_0x7e92ae};}function env(_0x2b0f73){return productEnv(_0x2b0f73);}function a42_0x5b8d(_0x15488c,_0x5d1a8a){_0x15488c=_0x15488c-0xce;const _0x19af94=a42_0x19af();let _0x5b8d58=_0x19af94[_0x15488c];return _0x5b8d58;}async function buildAuth(_0x59bb6a){const _0x3ca1da=a42_0x4a8c7c,_0x43340f='',_0x469308=!!_0x59bb6a[_0x3ca1da(0xdc)];return{'cookie':_0x43340f,'isLoggedIn':_0x469308,async 'getOrLogin'(){const _0x333218=_0x3ca1da;if(_0x469308)return _0x43340f;throw CliErrors[_0x333218(0xf0)]();}};}
@@ -1 +1 @@
1
- (function(_0xd253a6,_0x29967e){const _0x349354=a43_0x94db,_0x3bc19a=_0xd253a6();while(!![]){try{const _0x2772cb=-parseInt(_0x349354(0x81))/0x1+parseInt(_0x349354(0xaa))/0x2+parseInt(_0x349354(0xa2))/0x3*(parseInt(_0x349354(0x85))/0x4)+-parseInt(_0x349354(0x8e))/0x5+-parseInt(_0x349354(0x7f))/0x6*(parseInt(_0x349354(0x7e))/0x7)+-parseInt(_0x349354(0x94))/0x8*(parseInt(_0x349354(0x9a))/0x9)+parseInt(_0x349354(0xa3))/0xa;if(_0x2772cb===_0x29967e)break;else _0x3bc19a['push'](_0x3bc19a['shift']());}catch(_0x1bc329){_0x3bc19a['push'](_0x3bc19a['shift']());}}}(a43_0x162f,0xf32cc));import{getRuntimeDomain}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(_0x354d18){_activeAK=_0x354d18||undefined;}export function clearActiveAK(){_activeAK=undefined;}async function apiRequest(_0x1fd201,_0x51933e={}){const _0x34cb1c=a43_0x94db,{method:method=_0x34cb1c(0xa9),body:_0x2304b0,headers:headers={},timeout:timeout=0x7530}=_0x51933e,_0x3fa153=_activeAK,_0x475d1a=getRuntimeDomain();if(!_0x3fa153)throw CliErrors['authRequired']('Configure\x20accessKey\x20in\x20'+PRODUCT_CONFIG['newConfigFileName']+'.');const _0x78f823=''+_0x475d1a+_0x1fd201,_0x265d2d={'X-User-AK':_0x3fa153},_0x141f79=new AbortController(),_0x1680be=setTimeout(()=>_0x141f79['abort'](),timeout);try{const _0xc8daf4=await fetch(_0x78f823,{'method':method,'headers':{'Content-Type':'application/json','X-Invoke-Source':PRODUCT_CONFIG[_0x34cb1c(0x88)],..._0x265d2d,...headers},'body':_0x2304b0?JSON['stringify'](_0x2304b0):undefined,'signal':_0x141f79[_0x34cb1c(0x93)]});let _0x5b4824;try{_0x5b4824=await _0xc8daf4['json']();}catch{throw CliErrors[_0x34cb1c(0xa8)](_0x34cb1c(0xab)+_0xc8daf4[_0x34cb1c(0x97)]+')',_0xc8daf4[_0x34cb1c(0x97)]>=0x190?_0x34cb1c(0x8b):undefined);}if(!_0xc8daf4['ok']||_0x5b4824[_0x34cb1c(0xb0)]===![])throw CliErrors[_0x34cb1c(0xa8)](_0x5b4824[_0x34cb1c(0x8c)]||_0x5b4824[_0x34cb1c(0x82)]||_0x34cb1c(0x8d)+_0xc8daf4['status'],_0x5b4824[_0x34cb1c(0x89)]?'API\x20error\x20code:\x20'+_0x5b4824['errorCode']:undefined);return _0x5b4824;}catch(_0x410674){if(_0x410674 instanceof Error&&_0x410674[_0x34cb1c(0x8a)]==='AbortError')throw CliErrors[_0x34cb1c(0xa8)](_0x34cb1c(0xa5)+_0x78f823);throw _0x410674;}finally{clearTimeout(_0x1680be);}}export async function getBffScriptInfo(_0x36c0ea){const _0x32dc91=a43_0x94db,_0x1d65e2=await apiRequest(_0x32dc91(0xac)+_0x36c0ea);if(!_0x1d65e2[_0x32dc91(0xae)])throw CliErrors[_0x32dc91(0x95)]('BFF\x20script\x20not\x20found:\x20id='+_0x36c0ea);return _0x1d65e2[_0x32dc91(0xae)];}export async function getSqlQueryInfo(_0x279721,_0x1b8303){const _0x3fcf4c=a43_0x94db,_0x111dbb=await apiRequest(_0x3fcf4c(0xa0),{'method':'POST','body':{'appCode':_0x279721,'currentPage':0x1,'pageSize':0x1,'sqlCode':_0x1b8303}}),_0x2f38bf=_0x111dbb[_0x3fcf4c(0xae)],_0x174cec=_0x2f38bf&&typeof _0x2f38bf===_0x3fcf4c(0x91)&&_0x3fcf4c(0x99)in _0x2f38bf?_0x2f38bf[_0x3fcf4c(0x99)]?.[0x0]:_0x2f38bf&&typeof _0x2f38bf===_0x3fcf4c(0x91)&&_0x3fcf4c(0x9d)in _0x2f38bf?_0x2f38bf:undefined;if(!_0x174cec)throw CliErrors[_0x3fcf4c(0x95)](_0x3fcf4c(0x9e)+_0x1b8303);return _0x174cec;}function isRemoteAppItem(_0x57af60){const _0x46967a=a43_0x94db;return!!_0x57af60&&typeof _0x57af60===_0x46967a(0x91)&&typeof _0x57af60[_0x46967a(0xa1)]==='string'&&typeof _0x57af60['appName']==='string';}function extractRemoteAppItems(_0x2bb0c6){const _0x430576=a43_0x94db;if(Array['isArray'](_0x2bb0c6))return _0x2bb0c6[_0x430576(0x87)](isRemoteAppItem);if(!_0x2bb0c6||typeof _0x2bb0c6!==_0x430576(0x91))throw CliErrors[_0x430576(0xa8)]('Invalid\x20app\x20list\x20response:\x20expected\x20object\x20or\x20array.');const _0x33075c=_0x2bb0c6;if(Array[_0x430576(0x92)](_0x33075c[_0x430576(0x99)]))return _0x33075c['tableData']['filter'](isRemoteAppItem);if(_0x33075c[_0x430576(0xae)]&&typeof _0x33075c[_0x430576(0xae)]===_0x430576(0x91)){const _0x42d6fa=_0x33075c[_0x430576(0xae)];if(Array[_0x430576(0x92)](_0x42d6fa['tableData']))return _0x42d6fa[_0x430576(0x99)][_0x430576(0x87)](isRemoteAppItem);}throw CliErrors[_0x430576(0xa8)]('Invalid\x20app\x20list\x20response:\x20missing\x20data.tableData.');}export async function getMyApps(){const _0x1073a2=a43_0x94db,_0x2e90c1=await apiRequest(_0x1073a2(0x9c));return extractRemoteAppItems(_0x2e90c1[_0x1073a2(0xae)]);}export async function getLoginUserInfo(){const _0x4e0839=a43_0x94db,_0x97a5f=await apiRequest(_0x4e0839(0x9f));if(!_0x97a5f[_0x4e0839(0xae)]||typeof _0x97a5f[_0x4e0839(0xae)]!=='object'||Array[_0x4e0839(0x92)](_0x97a5f['data']))throw CliErrors[_0x4e0839(0xa8)](_0x4e0839(0x98));return _0x97a5f[_0x4e0839(0xae)];}function a43_0x162f(){const _0x235448=['/client/skill/personal/create','POST','apiError','GET','2296632bRYyUd','API\x20returned\x20non-JSON\x20response\x20(HTTP\x20','/client/bff/query/','query','data','?appCode=','success','/update','427ixlNNa','38694FZSiRF','/client/knowledge-base/personal/list?appCode=','648418utQMjF','message','/client/skill/personal/','/client/knowledge-base/personal/','8oSmAbT','/client/dataset/list','filter','invokeSource','errorCode','name','Check\x20your\x20credentials\x20and\x20try\x20again.','errorMsg','API\x20error:\x20','6985060GPUmWr','/client/skill/personal/list?appCode=','code','object','isArray','signal','10788392zrgbCn','validation','topK','status','Invalid\x20login\x20user\x20info\x20response:\x20expected\x20object.','tableData','9BMDmfn','/client/knowledge-base/search','/client/app/my-apps','sqlCode','SQL\x20query\x20not\x20found:\x20','/client/user/loginUserInfo','/client/sql/query','appCode','2519307xTuMFE','19555580NrPUKU','test','Request\x20timeout:\x20'];a43_0x162f=function(){return _0x235448;};return a43_0x162f();}function a43_0x94db(_0x3d037a,_0x27a46b){_0x3d037a=_0x3d037a-0x7e;const _0x162f61=a43_0x162f();let _0x94dbcd=_0x162f61[_0x3d037a];return _0x94dbcd;}export async function listDatasets(_0xecde27,_0x582fe1){const _0x5548a0=a43_0x94db,_0x44b25a=await apiRequest(_0x5548a0(0x86),{'method':_0x5548a0(0xa7),'body':{'appCode':_0xecde27,..._0x582fe1?.[_0x5548a0(0x90)]&&{'code':_0x582fe1[_0x5548a0(0x90)]},..._0x582fe1?.[_0x5548a0(0x8a)]&&{'name':_0x582fe1[_0x5548a0(0x8a)]}}});return extractList(_0x44b25a[_0x5548a0(0xae)]);}export async function getDatasetDetail(_0x481aa4){const _0x377277=a43_0x94db,_0x22e3fc=/^\d+$/[_0x377277(0xa4)](_0x481aa4)?'id':_0x377277(0x90),_0x500bb4=await apiRequest('/client/dataset/query?'+_0x22e3fc+'='+_0x481aa4);return _0x500bb4[_0x377277(0xae)];}export async function listPersonalKnowledgeBaseItems(_0x34a0dd){const _0x22e826=a43_0x94db,_0x2a2396=await apiRequest(_0x22e826(0x80)+encodeURIComponent(_0x34a0dd));return Array[_0x22e826(0x92)](_0x2a2396[_0x22e826(0xae)])?_0x2a2396['data']:[];}export async function getPersonalKnowledgeBaseItem(_0xcf5614,_0x4a6713){const _0x9a1b35=a43_0x94db,_0x228811=await apiRequest(_0x9a1b35(0x84)+_0xcf5614+_0x9a1b35(0xaf)+encodeURIComponent(_0x4a6713));if(!_0x228811[_0x9a1b35(0xae)])throw CliErrors[_0x9a1b35(0x95)]('Knowledge-base\x20entry\x20not\x20found:\x20id='+_0xcf5614);return _0x228811[_0x9a1b35(0xae)];}export async function createPersonalKnowledgeBaseItem(_0x6f1d08,_0x5d7bd8){const _0x129587=a43_0x94db,_0x47716c=await apiRequest('/client/knowledge-base/personal/create',{'method':_0x129587(0xa7),'body':{'appCode':_0x6f1d08,..._0x5d7bd8}});return _0x47716c[_0x129587(0xae)];}export async function updatePersonalKnowledgeBaseItem(_0x5b933c,_0x47e34a,_0x116535){const _0x4188a1=a43_0x94db,_0x43584c=await apiRequest(_0x4188a1(0x84)+_0x5b933c+_0x4188a1(0xb1),{'method':_0x4188a1(0xa7),'body':{'appCode':_0x47e34a,..._0x116535}});return _0x43584c[_0x4188a1(0xae)];}export async function searchKnowledgeBase(_0x3f52c9,_0x16e506){const _0x45b433=a43_0x94db,_0x59a28d=await apiRequest(_0x45b433(0x9b),{'method':_0x45b433(0xa7),'body':{'appCode':_0x3f52c9,'query':_0x16e506[_0x45b433(0xad)],..._0x16e506[_0x45b433(0x96)]!==undefined?{'topK':_0x16e506[_0x45b433(0x96)]}:{}}});return Array['isArray'](_0x59a28d[_0x45b433(0xae)])?_0x59a28d[_0x45b433(0xae)]:[];}export async function listPersonalRuntimeSkills(_0x532d99){const _0x3de337=a43_0x94db,_0x20ac8d=await apiRequest(_0x3de337(0x8f)+encodeURIComponent(_0x532d99));return Array[_0x3de337(0x92)](_0x20ac8d[_0x3de337(0xae)])?_0x20ac8d[_0x3de337(0xae)]:[];}export async function listCompanyRuntimeSkills(_0x4eacd3){const _0x18d812=a43_0x94db,_0x25e486=await apiRequest('/client/skill/company/list?appCode='+encodeURIComponent(_0x4eacd3));return Array[_0x18d812(0x92)](_0x25e486['data'])?_0x25e486[_0x18d812(0xae)]:[];}export async function createPersonalRuntimeSkill(_0x4f9d43,_0x1df9dc){const _0x4eebeb=a43_0x94db,_0xfb5283=await apiRequest(_0x4eebeb(0xa6),{'method':_0x4eebeb(0xa7),'body':{'appCode':_0x4f9d43,..._0x1df9dc}});return _0xfb5283[_0x4eebeb(0xae)];}export async function updatePersonalRuntimeSkill(_0x275f41,_0x3f6421,_0x2b4a93){const _0x353395=a43_0x94db,_0x22172c=await apiRequest(_0x353395(0x83)+encodeURIComponent(_0x275f41)+_0x353395(0xb1),{'method':_0x353395(0xa7),'body':{'appCode':_0x3f6421,..._0x2b4a93}});return _0x22172c[_0x353395(0xae)];}
1
+ (function(_0x5a40bf,_0x5bcabf){const _0x5a4c19=a43_0x5b70,_0x3627fc=_0x5a40bf();while(!![]){try{const _0x2e8a43=parseInt(_0x5a4c19(0x1dd))/0x1*(-parseInt(_0x5a4c19(0x1d6))/0x2)+-parseInt(_0x5a4c19(0x1f4))/0x3+parseInt(_0x5a4c19(0x1de))/0x4+-parseInt(_0x5a4c19(0x1c6))/0x5+parseInt(_0x5a4c19(0x1d3))/0x6+-parseInt(_0x5a4c19(0x1f9))/0x7+-parseInt(_0x5a4c19(0x1ec))/0x8*(-parseInt(_0x5a4c19(0x1c7))/0x9);if(_0x2e8a43===_0x5bcabf)break;else _0x3627fc['push'](_0x3627fc['shift']());}catch(_0x303e43){_0x3627fc['push'](_0x3627fc['shift']());}}}(a43_0x4288,0xdaf33));import{getRuntimeDomain}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(_0x227fd3){_activeAK=_0x227fd3||undefined;}export function clearActiveAK(){_activeAK=undefined;}async function apiRequest(_0x2f2859,_0x208911={}){const _0x24a9e3=a43_0x5b70,{method:method=_0x24a9e3(0x1e3),body:_0x5716a6,headers:headers={},timeout:timeout=0x7530}=_0x208911,_0x5f110a=_activeAK,_0x5b8931=getRuntimeDomain();if(!_0x5f110a)throw CliErrors[_0x24a9e3(0x1e0)]('Configure\x20accessKey\x20in\x20'+PRODUCT_CONFIG['newConfigFileName']+'.');const _0x4eb1c8=''+_0x5b8931+_0x2f2859,_0x353db8={'X-User-AK':_0x5f110a},_0x297e5b=new AbortController(),_0x950aeb=setTimeout(()=>_0x297e5b[_0x24a9e3(0x1ef)](),timeout);try{const _0x4d1ffb=await fetch(_0x4eb1c8,{'method':method,'headers':{'Content-Type':_0x24a9e3(0x1cf),'X-Invoke-Source':PRODUCT_CONFIG['invokeSource'],..._0x353db8,...headers},'body':_0x5716a6?JSON[_0x24a9e3(0x1f3)](_0x5716a6):undefined,'signal':_0x297e5b['signal']});let _0x552599;try{_0x552599=await _0x4d1ffb['json']();}catch{throw CliErrors[_0x24a9e3(0x1f5)](_0x24a9e3(0x1d4)+_0x4d1ffb[_0x24a9e3(0x1d0)]+')',_0x4d1ffb[_0x24a9e3(0x1d0)]>=0x190?'Check\x20your\x20credentials\x20and\x20try\x20again.':undefined);}if(!_0x4d1ffb['ok']||_0x552599[_0x24a9e3(0x1ce)]===![])throw CliErrors['apiError'](_0x552599[_0x24a9e3(0x1fb)]||_0x552599[_0x24a9e3(0x1e1)]||_0x24a9e3(0x1ca)+_0x4d1ffb[_0x24a9e3(0x1d0)],_0x552599[_0x24a9e3(0x1d1)]?_0x24a9e3(0x1d8)+_0x552599[_0x24a9e3(0x1d1)]:undefined);return _0x552599;}catch(_0x518ca5){if(_0x518ca5 instanceof Error&&_0x518ca5[_0x24a9e3(0x1eb)]===_0x24a9e3(0x1cb))throw CliErrors[_0x24a9e3(0x1f5)]('Request\x20timeout:\x20'+_0x4eb1c8);throw _0x518ca5;}finally{clearTimeout(_0x950aeb);}}export async function getBffScriptInfo(_0x3fd405){const _0x48dce7=a43_0x5b70,_0x268a40=await apiRequest(_0x48dce7(0x1cd)+_0x3fd405);if(!_0x268a40[_0x48dce7(0x1fc)])throw CliErrors[_0x48dce7(0x1ee)]('BFF\x20script\x20not\x20found:\x20id='+_0x3fd405);return _0x268a40['data'];}export async function getSqlQueryInfo(_0x53b54e,_0x66e3ba){const _0x27beaf=a43_0x5b70,_0x4babd6=await apiRequest(_0x27beaf(0x1e2),{'method':_0x27beaf(0x1ed),'body':{'appCode':_0x53b54e,'currentPage':0x1,'pageSize':0x1,'sqlCode':_0x66e3ba}}),_0x28c827=_0x4babd6[_0x27beaf(0x1fc)],_0x571574=_0x28c827&&typeof _0x28c827===_0x27beaf(0x1f8)&&_0x27beaf(0x1fa)in _0x28c827?_0x28c827['tableData']?.[0x0]:_0x28c827&&typeof _0x28c827===_0x27beaf(0x1f8)&&_0x27beaf(0x1e5)in _0x28c827?_0x28c827:undefined;if(!_0x571574)throw CliErrors[_0x27beaf(0x1ee)]('SQL\x20query\x20not\x20found:\x20'+_0x66e3ba);return _0x571574;}function isRemoteAppItem(_0xdcf355){const _0x3d2096=a43_0x5b70;return!!_0xdcf355&&typeof _0xdcf355===_0x3d2096(0x1f8)&&typeof _0xdcf355[_0x3d2096(0x1d2)]===_0x3d2096(0x1f0)&&typeof _0xdcf355[_0x3d2096(0x1e6)]===_0x3d2096(0x1f0);}function extractRemoteAppItems(_0x43fb0b){const _0x43aef7=a43_0x5b70;if(Array[_0x43aef7(0x1cc)](_0x43fb0b))return _0x43fb0b[_0x43aef7(0x1e7)](isRemoteAppItem);if(!_0x43fb0b||typeof _0x43fb0b!=='object')throw CliErrors[_0x43aef7(0x1f5)](_0x43aef7(0x1da));const _0x4138c8=_0x43fb0b;if(Array['isArray'](_0x4138c8[_0x43aef7(0x1fa)]))return _0x4138c8[_0x43aef7(0x1fa)]['filter'](isRemoteAppItem);if(_0x4138c8[_0x43aef7(0x1fc)]&&typeof _0x4138c8[_0x43aef7(0x1fc)]==='object'){const _0xc98e01=_0x4138c8[_0x43aef7(0x1fc)];if(Array[_0x43aef7(0x1cc)](_0xc98e01[_0x43aef7(0x1fa)]))return _0xc98e01['tableData'][_0x43aef7(0x1e7)](isRemoteAppItem);}throw CliErrors[_0x43aef7(0x1f5)]('Invalid\x20app\x20list\x20response:\x20missing\x20data.tableData.');}export async function getMyApps(){const _0x4f3744=a43_0x5b70,_0xe10340=await apiRequest(_0x4f3744(0x1e4));return extractRemoteAppItems(_0xe10340['data']);}export async function getLoginUserInfo(){const _0x1189b1=a43_0x5b70,_0x381b47=await apiRequest(_0x1189b1(0x1c8));if(!_0x381b47[_0x1189b1(0x1fc)]||typeof _0x381b47[_0x1189b1(0x1fc)]!==_0x1189b1(0x1f8)||Array[_0x1189b1(0x1cc)](_0x381b47[_0x1189b1(0x1fc)]))throw CliErrors['apiError']('Invalid\x20login\x20user\x20info\x20response:\x20expected\x20object.');return _0x381b47['data'];}export async function listDatasets(_0x941398,_0x22fb56){const _0x1a27fa=a43_0x5b70,_0x2b766a=await apiRequest(_0x1a27fa(0x1ea),{'method':_0x1a27fa(0x1ed),'body':{'appCode':_0x941398,..._0x22fb56?.['code']&&{'code':_0x22fb56['code']},..._0x22fb56?.['name']&&{'name':_0x22fb56['name']}}});return extractList(_0x2b766a[_0x1a27fa(0x1fc)]);}export async function getDatasetDetail(_0x324c54){const _0x3bf49e=a43_0x5b70,_0x154fd0=/^\d+$/[_0x3bf49e(0x1f1)](_0x324c54)?'id':_0x3bf49e(0x1e8),_0x2d06bd=await apiRequest(_0x3bf49e(0x1dc)+_0x154fd0+'='+_0x324c54);return _0x2d06bd[_0x3bf49e(0x1fc)];}export async function listPersonalKnowledgeBaseItems(_0x3ed86f){const _0x4e3def=a43_0x5b70,_0x37c73f=await apiRequest('/client/knowledge-base/personal/list?appCode='+encodeURIComponent(_0x3ed86f));return Array[_0x4e3def(0x1cc)](_0x37c73f[_0x4e3def(0x1fc)])?_0x37c73f['data']:[];}export async function getPersonalKnowledgeBaseItem(_0xa98e88,_0x5d4725){const _0x316a5d=a43_0x5b70,_0xc8f9f6=await apiRequest(_0x316a5d(0x1f2)+_0xa98e88+_0x316a5d(0x1d9)+encodeURIComponent(_0x5d4725));if(!_0xc8f9f6['data'])throw CliErrors[_0x316a5d(0x1ee)](_0x316a5d(0x1f7)+_0xa98e88);return _0xc8f9f6['data'];}export async function createPersonalKnowledgeBaseItem(_0x1ffe6b,_0xa89fbd){const _0xa1f33c=a43_0x5b70,_0x3a5c16=await apiRequest(_0xa1f33c(0x1d5),{'method':'POST','body':{'appCode':_0x1ffe6b,..._0xa89fbd}});return _0x3a5c16[_0xa1f33c(0x1fc)];}function a43_0x5b70(_0x49ee6e,_0x258dd1){_0x49ee6e=_0x49ee6e-0x1c6;const _0x428813=a43_0x4288();let _0x5b7013=_0x428813[_0x49ee6e];return _0x5b7013;}export async function updatePersonalKnowledgeBaseItem(_0x26675e,_0xa0dd75,_0x2ec0df){const _0x5be77f=a43_0x5b70,_0x188414=await apiRequest(_0x5be77f(0x1f2)+_0x26675e+'/update',{'method':'POST','body':{'appCode':_0xa0dd75,..._0x2ec0df}});return _0x188414[_0x5be77f(0x1fc)];}function a43_0x4288(){const _0x3c39d6=['Knowledge-base\x20entry\x20not\x20found:\x20id=','object','8925511KtvZqu','tableData','errorMsg','data','8789650hwqhdA','28979820wPWSpr','/client/user/loginUserInfo','/client/skill/personal/','API\x20error:\x20','AbortError','isArray','/client/bff/query/','success','application/json','status','errorCode','appCode','8684874EjrTdw','API\x20returned\x20non-JSON\x20response\x20(HTTP\x20','/client/knowledge-base/personal/create','6wONqhn','/client/knowledge-base/search','API\x20error\x20code:\x20','?appCode=','Invalid\x20app\x20list\x20response:\x20expected\x20object\x20or\x20array.','query','/client/dataset/query?','139597FpQULO','3289008jzuNYy','/client/skill/personal/create','authRequired','message','/client/sql/query','GET','/client/app/my-apps','sqlCode','appName','filter','code','/client/skill/personal/list?appCode=','/client/dataset/list','name','8XGUSCI','POST','validation','abort','string','test','/client/knowledge-base/personal/','stringify','3423294Usrsux','apiError','topK'];a43_0x4288=function(){return _0x3c39d6;};return a43_0x4288();}export async function searchKnowledgeBase(_0xd79e9f,_0xa946b0){const _0x2f2d54=a43_0x5b70,_0x3bdd07=await apiRequest(_0x2f2d54(0x1d7),{'method':_0x2f2d54(0x1ed),'body':{'appCode':_0xd79e9f,'query':_0xa946b0[_0x2f2d54(0x1db)],..._0xa946b0[_0x2f2d54(0x1f6)]!==undefined?{'topK':_0xa946b0[_0x2f2d54(0x1f6)]}:{}}});return Array['isArray'](_0x3bdd07[_0x2f2d54(0x1fc)])?_0x3bdd07['data']:[];}export async function listPersonalRuntimeSkills(_0x9e6b4d){const _0x26d0d1=a43_0x5b70,_0x2b8d7a=await apiRequest(_0x26d0d1(0x1e9)+encodeURIComponent(_0x9e6b4d));return Array[_0x26d0d1(0x1cc)](_0x2b8d7a[_0x26d0d1(0x1fc)])?_0x2b8d7a['data']:[];}export async function listCompanyRuntimeSkills(_0x39e5d1){const _0x174712=a43_0x5b70,_0x56123f=await apiRequest('/client/skill/company/list?appCode='+encodeURIComponent(_0x39e5d1));return Array[_0x174712(0x1cc)](_0x56123f['data'])?_0x56123f[_0x174712(0x1fc)]:[];}export async function createPersonalRuntimeSkill(_0x498c04,_0x3e02c7){const _0x35c16e=a43_0x5b70,_0x1cd559=await apiRequest(_0x35c16e(0x1df),{'method':_0x35c16e(0x1ed),'body':{'appCode':_0x498c04,..._0x3e02c7}});return _0x1cd559[_0x35c16e(0x1fc)];}export async function updatePersonalRuntimeSkill(_0x25bb37,_0xe02fee,_0x5ed586){const _0x5c95e0=a43_0x5b70,_0x5d4432=await apiRequest(_0x5c95e0(0x1c9)+encodeURIComponent(_0x25bb37)+'/update',{'method':'POST','body':{'appCode':_0xe02fee,..._0x5ed586}});return _0x5d4432[_0x5c95e0(0x1fc)];}
@@ -1 +1 @@
1
- (function(_0x5be60e,_0x5cee0f){const _0x62e55e=a44_0x4dbd,_0x1b7015=_0x5be60e();while(!![]){try{const _0x59beba=parseInt(_0x62e55e(0xf5))/0x1+parseInt(_0x62e55e(0xf7))/0x2*(-parseInt(_0x62e55e(0xe5))/0x3)+parseInt(_0x62e55e(0xf2))/0x4*(-parseInt(_0x62e55e(0xf4))/0x5)+-parseInt(_0x62e55e(0xea))/0x6*(-parseInt(_0x62e55e(0xf0))/0x7)+parseInt(_0x62e55e(0xef))/0x8+-parseInt(_0x62e55e(0xee))/0x9+parseInt(_0x62e55e(0xed))/0xa*(parseInt(_0x62e55e(0xf6))/0xb);if(_0x59beba===_0x5cee0f)break;else _0x1b7015['push'](_0x1b7015['shift']());}catch(_0x1f99aa){_0x1b7015['push'](_0x1b7015['shift']());}}}(a44_0x1ab2,0x8f749));import{listDatasets}from'../core/api-client.js';function a44_0x1ab2(){const _0x3306e8=['db-','find','6WcpELx','has','dbName','280WOpPml','6034959VuoHRS','7650728ozKLEN','4386949vXAzvA','set','12uQyiWv','map','1759595sbeHvj','941058HmudRf','141416RAwUPu','2zaLcrr','1710519GQnVZU','dbtableConfig','dbId'];a44_0x1ab2=function(){return _0x3306e8;};return a44_0x1ab2();}const cache=new Map();function a44_0x4dbd(_0x187041,_0x5074f7){_0x187041=_0x187041-0xe5;const _0x1ab242=a44_0x1ab2();let _0x4dbd33=_0x1ab242[_0x187041];return _0x4dbd33;}export async function listDatabases(_0x22ea0b){const _0x446f1e=a44_0x4dbd;if(cache[_0x446f1e(0xeb)](_0x22ea0b))return cache['get'](_0x22ea0b);const _0x5afeca=await listDatasets(_0x22ea0b),_0x40b517=new Map();for(const _0xaca430 of _0x5afeca){const _0x56690d=_0xaca430[_0x446f1e(0xe6)];_0x56690d?.[_0x446f1e(0xe7)]!=null&&_0x40b517[_0x446f1e(0xf1)](_0x56690d[_0x446f1e(0xe7)],_0x56690d['dbName']??_0x446f1e(0xe8)+_0x56690d['dbId']);}const _0x39ab96=[..._0x40b517['entries']()][_0x446f1e(0xf3)](([_0x2bf05f,_0x4bc5e3])=>({'dbId':_0x2bf05f,'dbName':_0x4bc5e3}));return cache[_0x446f1e(0xf1)](_0x22ea0b,_0x39ab96),_0x39ab96;}export async function getDbName(_0x20cc3d,_0x3e27b9){const _0x1171a5=a44_0x4dbd;try{const _0x192aa5=await listDatabases(_0x20cc3d);return _0x192aa5[_0x1171a5(0xe9)](_0x2785bb=>_0x2785bb['dbId']===_0x3e27b9)?.[_0x1171a5(0xec)];}catch{return undefined;}}
1
+ (function(_0x5a821c,_0x543ecd){const _0x2caf52=a44_0x1edc,_0x143f55=_0x5a821c();while(!![]){try{const _0x284627=parseInt(_0x2caf52(0x11b))/0x1*(parseInt(_0x2caf52(0x120))/0x2)+-parseInt(_0x2caf52(0x122))/0x3+parseInt(_0x2caf52(0x11c))/0x4*(parseInt(_0x2caf52(0x11e))/0x5)+-parseInt(_0x2caf52(0x11a))/0x6+-parseInt(_0x2caf52(0x11d))/0x7+-parseInt(_0x2caf52(0x119))/0x8*(parseInt(_0x2caf52(0x115))/0x9)+parseInt(_0x2caf52(0x117))/0xa*(parseInt(_0x2caf52(0x116))/0xb);if(_0x284627===_0x543ecd)break;else _0x143f55['push'](_0x143f55['shift']());}catch(_0xe54cbd){_0x143f55['push'](_0x143f55['shift']());}}}(a44_0x3be3,0x2d0d5));import{listDatasets}from'../core/api-client.js';function a44_0x1edc(_0x2d39fe,_0x111b39){_0x2d39fe=_0x2d39fe-0x113;const _0x3be3a4=a44_0x3be3();let _0x1edc6f=_0x3be3a4[_0x2d39fe];return _0x1edc6f;}const cache=new Map();export async function listDatabases(_0x22536b){const _0x44fec6=a44_0x1edc;if(cache[_0x44fec6(0x11f)](_0x22536b))return cache['get'](_0x22536b);const _0x3112ec=await listDatasets(_0x22536b),_0x1c63ec=new Map();for(const _0x8b3eef of _0x3112ec){const _0x4dcc0a=_0x8b3eef[_0x44fec6(0x123)];_0x4dcc0a?.['dbId']!=null&&_0x1c63ec[_0x44fec6(0x121)](_0x4dcc0a[_0x44fec6(0x118)],_0x4dcc0a['dbName']??_0x44fec6(0x113)+_0x4dcc0a[_0x44fec6(0x118)]);}const _0x1d4a72=[..._0x1c63ec['entries']()][_0x44fec6(0x124)](([_0x3acf16,_0xbf933])=>({'dbId':_0x3acf16,'dbName':_0xbf933}));return cache[_0x44fec6(0x121)](_0x22536b,_0x1d4a72),_0x1d4a72;}export async function getDbName(_0xbfb89c,_0x45a8a9){const _0x45d0c1=a44_0x1edc;try{const _0x587a0e=await listDatabases(_0xbfb89c);return _0x587a0e[_0x45d0c1(0x114)](_0x35f62d=>_0x35f62d[_0x45d0c1(0x118)]===_0x45a8a9)?.['dbName'];}catch{return undefined;}}function a44_0x3be3(){const _0x4123cc=['19661gVbIfT','236SEmORP','1369781XqQkuX','19245qdwAfB','has','24AzLmBQ','set','375363ORnhly','dbtableConfig','map','db-','find','18RIGDzJ','44XsCCWZ','1609170HyDimj','dbId','1423264ORAtzf','1473228iAmArX'];a44_0x3be3=function(){return _0x4123cc;};return a44_0x3be3();}
@@ -1 +1 @@
1
- (function(_0x55a142,_0x11afdd){const _0x14d0ae=a45_0x4e75,_0x3b878e=_0x55a142();while(!![]){try{const _0x273040=-parseInt(_0x14d0ae(0x16c))/0x1+-parseInt(_0x14d0ae(0x169))/0x2*(-parseInt(_0x14d0ae(0x15f))/0x3)+parseInt(_0x14d0ae(0x166))/0x4+-parseInt(_0x14d0ae(0x163))/0x5+parseInt(_0x14d0ae(0x16d))/0x6*(-parseInt(_0x14d0ae(0x16b))/0x7)+parseInt(_0x14d0ae(0x15a))/0x8+parseInt(_0x14d0ae(0x172))/0x9*(parseInt(_0x14d0ae(0x162))/0xa);if(_0x273040===_0x11afdd)break;else _0x3b878e['push'](_0x3b878e['shift']());}catch(_0x5dd421){_0x3b878e['push'](_0x3b878e['shift']());}}}(a45_0x5b5b,0x7392d));import{createClient}from'@lovrabet/sdk';import{PRODUCT_CONFIG}from'../constant/product.js';function a45_0x4e75(_0x2c0222,_0x32a66e){_0x2c0222=_0x2c0222-0x156;const _0x5b5bca=a45_0x5b5b();let _0x4e751e=_0x5b5bca[_0x2c0222];return _0x4e751e;}function a45_0x5b5b(){const _0x35d398=['bff','SDK\x20client\x20not\x20initialized.\x20Call\x20initSdkClient()\x20first.','310482hHCpCK','update','7tCauMm','71124lyVGFH','2842530pyYRsl','function','sql','accessKey','getOne\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123}\x27','9MFefoK','isArray','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.','delete','batchCreate','2296976ZJcYsx','\x22.\x20','appCode','authMode','SDK\x20model\x20does\x20not\x20support\x20operation\x20\x22','9iJfvcT','getOne','env','3331390nfZiHZ','760580DbIEWH','models','execute','337600NpjIyo'];a45_0x5b5b=function(){return _0x35d398;};return a45_0x5b5b();}import{parseBatchCreateItemsFromParams}from'../utils/params.js';let _client;export function initSdkClient(_0x5a6c3c){const _0x12fdbe=a45_0x4e75;_client=createClient({'appCode':_0x5a6c3c[_0x12fdbe(0x15c)],'env':_0x5a6c3c[_0x12fdbe(0x161)],'authMode':_0x5a6c3c[_0x12fdbe(0x15d)],..._0x5a6c3c['accessKey']?{'accessKey':_0x5a6c3c[_0x12fdbe(0x170)]}:{},'options':{'timeout':0x7530,'headers':{'X-Invoke-Source':PRODUCT_CONFIG['invokeSource']}}});}function ensureClient(){const _0x5892c9=a45_0x4e75;if(!_client)throw new Error(_0x5892c9(0x168));return _client;}export async function executeData(_0xd628fe,_0x56e5d9,_0x41f2f3){const _0x2d42c2=a45_0x4e75,_0x17d470=ensureClient(),_0x37f317='dataset_'+_0xd628fe,_0xaca48d=_0x17d470[_0x2d42c2(0x164)][_0x37f317];if(!_0xaca48d||typeof _0xaca48d[_0x56e5d9]!==_0x2d42c2(0x16e))throw new Error(_0x2d42c2(0x15e)+_0x56e5d9+_0x2d42c2(0x15b)+_0x2d42c2(0x157));if(_0x56e5d9===_0x2d42c2(0x159))return _0xaca48d[_0x2d42c2(0x159)](parseBatchCreateItemsFromParams(_0x41f2f3));const _0x56bd3f=_0x41f2f3!==undefined&&_0x41f2f3!==null&&!Array[_0x2d42c2(0x173)](_0x41f2f3)?_0x41f2f3:{};switch(_0x56e5d9){case _0x2d42c2(0x160):{const _0x5894c2=_0x56bd3f['id'];if(_0x5894c2===undefined||_0x5894c2===null)throw new Error(_0x2d42c2(0x171));return _0xaca48d[_0x2d42c2(0x160)](_0x5894c2);}case'update':{const {id:_0x4b1470,..._0x28d431}=_0x56bd3f;if(_0x4b1470===undefined||_0x4b1470===null)throw new Error(_0x2d42c2(0x156));return _0xaca48d[_0x2d42c2(0x16a)](_0x4b1470,_0x28d431);}case'delete':{const _0x342165=_0x56bd3f['id'];if(_0x342165===undefined||_0x342165===null)throw new Error('delete\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123}\x27');return _0xaca48d[_0x2d42c2(0x158)](_0x342165);}default:return _0xaca48d[_0x56e5d9](_0x56bd3f);}}export async function executeSdkSql(_0x1eaa08,_0x70c0d3){const _0x277984=a45_0x4e75,_0x151a01=ensureClient();return _0x151a01[_0x277984(0x16f)][_0x277984(0x165)]({'sqlCode':_0x1eaa08,'params':_0x70c0d3});}export async function executeSdkBff(_0x4e6222,_0x4543cb){const _0x436c1c=a45_0x4e75,_0x5019d3=ensureClient();return _0x5019d3[_0x436c1c(0x167)][_0x436c1c(0x165)]({'scriptName':_0x4e6222,'params':_0x4543cb});}
1
+ (function(_0x88e7fb,_0x5295f5){const _0x44b3d8=a45_0x20a3,_0x25254a=_0x88e7fb();while(!![]){try{const _0x57bf1d=-parseInt(_0x44b3d8(0xc4))/0x1+parseInt(_0x44b3d8(0xaf))/0x2*(parseInt(_0x44b3d8(0xbb))/0x3)+parseInt(_0x44b3d8(0xc0))/0x4*(-parseInt(_0x44b3d8(0xae))/0x5)+parseInt(_0x44b3d8(0xba))/0x6*(-parseInt(_0x44b3d8(0xb5))/0x7)+parseInt(_0x44b3d8(0xad))/0x8+parseInt(_0x44b3d8(0xa6))/0x9*(parseInt(_0x44b3d8(0xbd))/0xa)+parseInt(_0x44b3d8(0xb9))/0xb;if(_0x57bf1d===_0x5295f5)break;else _0x25254a['push'](_0x25254a['shift']());}catch(_0x1096bf){_0x25254a['push'](_0x25254a['shift']());}}}(a45_0x2215,0x7a2c0));import{createClient}from'@lovrabet/sdk';import{PRODUCT_CONFIG}from'../constant/product.js';import{parseBatchCreateItemsFromParams}from'../utils/params.js';let _client;export function initSdkClient(_0x335ff5){const _0x29b6ae=a45_0x20a3;_client=createClient({'appCode':_0x335ff5[_0x29b6ae(0xbf)],'env':_0x335ff5['env'],'authMode':_0x335ff5[_0x29b6ae(0xbc)],..._0x335ff5[_0x29b6ae(0xb6)]?{'accessKey':_0x335ff5[_0x29b6ae(0xb6)]}:{},'options':{'timeout':0x7530,'headers':{'X-Invoke-Source':PRODUCT_CONFIG[_0x29b6ae(0xb3)]}}});}function ensureClient(){const _0x12f1ff=a45_0x20a3;if(!_client)throw new Error(_0x12f1ff(0xaa));return _client;}function a45_0x20a3(_0x19104b,_0x257a44){_0x19104b=_0x19104b-0xa6;const _0x221547=a45_0x2215();let _0x20a311=_0x221547[_0x19104b];return _0x20a311;}export async function executeData(_0x1e36df,_0x72c428,_0x33f1be){const _0x489734=a45_0x20a3,_0x779a14=ensureClient(),_0x249c68=_0x489734(0xb2)+_0x1e36df,_0x5afc63=_0x779a14[_0x489734(0xa7)][_0x249c68];if(!_0x5afc63||typeof _0x5afc63[_0x72c428]!==_0x489734(0xbe))throw new Error(_0x489734(0xab)+_0x72c428+'\x22.\x20'+_0x489734(0xa9));if(_0x72c428===_0x489734(0xc1))return _0x5afc63[_0x489734(0xc1)](parseBatchCreateItemsFromParams(_0x33f1be));const _0x74927c=_0x33f1be!==undefined&&_0x33f1be!==null&&!Array[_0x489734(0xc2)](_0x33f1be)?_0x33f1be:{};switch(_0x72c428){case _0x489734(0xa8):{const _0x1e0c62=_0x74927c['id'];if(_0x1e0c62===undefined||_0x1e0c62===null)throw new Error(_0x489734(0xb0));return _0x5afc63[_0x489734(0xa8)](_0x1e0c62);}case _0x489734(0xb1):{const {id:_0x20b4ad,..._0x3a11f5}=_0x74927c;if(_0x20b4ad===undefined||_0x20b4ad===null)throw new Error('update\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123,\x22name\x22:\x22new\x22}\x27');return _0x5afc63[_0x489734(0xb1)](_0x20b4ad,_0x3a11f5);}case'delete':{const _0x568fc6=_0x74927c['id'];if(_0x568fc6===undefined||_0x568fc6===null)throw new Error(_0x489734(0xac));return _0x5afc63[_0x489734(0xb7)](_0x568fc6);}default:return _0x5afc63[_0x72c428](_0x74927c);}}export async function executeSdkSql(_0x5ac27e,_0x106307){const _0x309608=a45_0x20a3,_0x47f8d9=ensureClient();return _0x47f8d9[_0x309608(0xc3)][_0x309608(0xb8)]({'sqlCode':_0x5ac27e,'params':_0x106307});}export async function executeSdkBff(_0x1175f8,_0x46d407){const _0x34fd86=a45_0x20a3,_0x5b8fa2=ensureClient();return _0x5b8fa2[_0x34fd86(0xb4)][_0x34fd86(0xb8)]({'scriptName':_0x1175f8,'params':_0x46d407});}function a45_0x2215(){const _0x39c2a2=['4029jtvdjC','authMode','2110svpJdX','function','appCode','100doKQDh','batchCreate','isArray','sql','55025gAaDGz','22851IAGdPv','models','getOne','Available:\x20filter,\x20getOne,\x20create,\x20batchCreate,\x20update,\x20delete,\x20aggregate.','SDK\x20client\x20not\x20initialized.\x20Call\x20initSdkClient()\x20first.','SDK\x20model\x20does\x20not\x20support\x20operation\x20\x22','delete\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123}\x27','2879728INCLzC','179860gzrtgX','896NloTyA','getOne\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123}\x27','update','dataset_','invokeSource','bff','646814cSrlny','accessKey','delete','execute','4613312dfMqAh','30kTPhxd'];a45_0x2215=function(){return _0x39c2a2;};return a45_0x2215();}
package/lib/errors.js CHANGED
@@ -1 +1 @@
1
- const a46_0x2cd280=a46_0x4319;(function(_0x756ad6,_0x33a230){const _0x421ea2=a46_0x4319,_0x198523=_0x756ad6();while(!![]){try{const _0x1a919a=-parseInt(_0x421ea2(0x17e))/0x1+-parseInt(_0x421ea2(0x177))/0x2*(parseInt(_0x421ea2(0x181))/0x3)+-parseInt(_0x421ea2(0x17c))/0x4*(parseInt(_0x421ea2(0x180))/0x5)+parseInt(_0x421ea2(0x183))/0x6*(-parseInt(_0x421ea2(0x17f))/0x7)+parseInt(_0x421ea2(0x17d))/0x8*(-parseInt(_0x421ea2(0x184))/0x9)+-parseInt(_0x421ea2(0x178))/0xa+-parseInt(_0x421ea2(0x185))/0xb*(-parseInt(_0x421ea2(0x17b))/0xc);if(_0x1a919a===_0x33a230)break;else _0x198523['push'](_0x198523['shift']());}catch(_0x100cb7){_0x198523['push'](_0x198523['shift']());}}}(a46_0x1ef0,0x29ab3));import{CliError,createCliErrors}from'@lovrabet/cli-framework';function a46_0x1ef0(){const _0x2b1dda=['17150914theZFo','Set\x20appcode\x20via\x20--appcode\x20or\x20','676954OcglXH','1259940XNdPYz','newConfigFileName','Run\x20this\x20command\x20inside\x20a\x20directory\x20with\x20a\x20','12YbYgOb','1077144RbMmmv','12808DBgwcP','26697eLatpE','32795xEPXSp','5HguBIw','3WsZbMT','\x20file.','384ojXbbb','1845gBkRCs'];a46_0x1ef0=function(){return _0x2b1dda;};return a46_0x1ef0();}function a46_0x4319(_0x56afca,_0x3378ff){_0x56afca=_0x56afca-0x176;const _0x1ef0c2=a46_0x1ef0();let _0x4319f5=_0x1ef0c2[_0x56afca];return _0x4319f5;}import{CLI_BIN_NAME}from'./constant/cli.js';import{PRODUCT_CONFIG}from'./constant/product.js';export{CliError};export const CliErrors=createCliErrors({'cliBinName':CLI_BIN_NAME,'authRequiredHint':'Configure\x20accessKey\x20in\x20'+PRODUCT_CONFIG['newConfigFileName']+'\x20or\x20run\x20`'+CLI_BIN_NAME+'\x20auth\x20login`.','configMissingHint':a46_0x2cd280(0x176)+PRODUCT_CONFIG[a46_0x2cd280(0x179)]+'.','notInProjectHint':a46_0x2cd280(0x17a)+PRODUCT_CONFIG['newConfigFileName']+a46_0x2cd280(0x182)});
1
+ const a46_0x5a3ebb=a46_0x26d8;function a46_0x26d8(_0x5a6973,_0x281ee3){_0x5a6973=_0x5a6973-0x1cc;const _0x34d81e=a46_0x34d8();let _0x26d8fa=_0x34d81e[_0x5a6973];return _0x26d8fa;}(function(_0x33334a,_0x3d42d4){const _0x405231=a46_0x26d8,_0x1a344f=_0x33334a();while(!![]){try{const _0x181da6=parseInt(_0x405231(0x1d1))/0x1+parseInt(_0x405231(0x1d7))/0x2*(parseInt(_0x405231(0x1d3))/0x3)+parseInt(_0x405231(0x1cd))/0x4+-parseInt(_0x405231(0x1da))/0x5*(-parseInt(_0x405231(0x1db))/0x6)+parseInt(_0x405231(0x1d8))/0x7*(-parseInt(_0x405231(0x1d9))/0x8)+parseInt(_0x405231(0x1ce))/0x9+-parseInt(_0x405231(0x1d5))/0xa;if(_0x181da6===_0x3d42d4)break;else _0x1a344f['push'](_0x1a344f['shift']());}catch(_0x133798){_0x1a344f['push'](_0x1a344f['shift']());}}}(a46_0x34d8,0x1d19c));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 a46_0x34d8(){const _0x26ebf6=['Configure\x20accessKey\x20in\x20','232000kKLpNs','\x20auth\x20login`.','1473Yiyrsw','Set\x20appcode\x20via\x20--appcode\x20or\x20','5747920EDzbQp','newConfigFileName','662JTWJvk','350CtcDnx','9704GQFMtQ','17755oaMhrS','174HoLDMG','\x20file.','Run\x20this\x20command\x20inside\x20a\x20directory\x20with\x20a\x20','714900ZrIoPX','705717mrlRHX','\x20or\x20run\x20`'];a46_0x34d8=function(){return _0x26ebf6;};return a46_0x34d8();}export const CliErrors=createCliErrors({'cliBinName':CLI_BIN_NAME,'authRequiredHint':a46_0x5a3ebb(0x1d0)+PRODUCT_CONFIG[a46_0x5a3ebb(0x1d6)]+a46_0x5a3ebb(0x1cf)+CLI_BIN_NAME+a46_0x5a3ebb(0x1d2),'configMissingHint':a46_0x5a3ebb(0x1d4)+PRODUCT_CONFIG['newConfigFileName']+'.','notInProjectHint':a46_0x5a3ebb(0x1cc)+PRODUCT_CONFIG[a46_0x5a3ebb(0x1d6)]+a46_0x5a3ebb(0x1dc)});
@@ -1 +1 @@
1
- function a47_0x396b(){var _0x424cd2=['887341LKoDta','113fccZwm','3742erPFsm','1507131WkFHfw','30BOmSoo','11943580lfmRyw','119772FyEEtl','1950krFRRe','4GiPbtN','2938968dsxEDL','3125wFwYLF'];a47_0x396b=function(){return _0x424cd2;};return a47_0x396b();}(function(_0x46b219,_0x55fb16){var _0x413c86=a47_0x6e2e,_0x5a2840=_0x46b219();while(!![]){try{var _0x3a80c5=parseInt(_0x413c86(0xf1))/0x1*(parseInt(_0x413c86(0xe7))/0x2)+-parseInt(_0x413c86(0xeb))/0x3*(parseInt(_0x413c86(0xed))/0x4)+parseInt(_0x413c86(0xef))/0x5*(parseInt(_0x413c86(0xec))/0x6)+parseInt(_0x413c86(0xf0))/0x7+parseInt(_0x413c86(0xee))/0x8+-parseInt(_0x413c86(0xe8))/0x9*(-parseInt(_0x413c86(0xe9))/0xa)+-parseInt(_0x413c86(0xea))/0xb;if(_0x3a80c5===_0x55fb16)break;else _0x5a2840['push'](_0x5a2840['shift']());}catch(_0x53c1fd){_0x5a2840['push'](_0x5a2840['shift']());}}}(a47_0x396b,0x45aab));import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';import{buildAllFlags as a47_0x42360a}from'@lovrabet/cli-framework';function a47_0x6e2e(_0x3d9c69,_0x2b38fb){_0x3d9c69=_0x3d9c69-0xe7;var _0x396bda=a47_0x396b();var _0x6e2ee2=_0x396bda[_0x3d9c69];return _0x6e2ee2;}export function buildAllFlags(_0x138b75){return a47_0x42360a(_0x138b75,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});}
1
+ (function(_0x296f16,_0x5bc1c3){var _0x2593e3=a47_0x5558,_0x14a6fb=_0x296f16();while(!![]){try{var _0x5642aa=-parseInt(_0x2593e3(0xdd))/0x1*(parseInt(_0x2593e3(0xdc))/0x2)+parseInt(_0x2593e3(0xd8))/0x3+-parseInt(_0x2593e3(0xd4))/0x4*(parseInt(_0x2593e3(0xdb))/0x5)+parseInt(_0x2593e3(0xda))/0x6*(parseInt(_0x2593e3(0xd9))/0x7)+-parseInt(_0x2593e3(0xd6))/0x8+-parseInt(_0x2593e3(0xd7))/0x9+parseInt(_0x2593e3(0xd5))/0xa;if(_0x5642aa===_0x5bc1c3)break;else _0x14a6fb['push'](_0x14a6fb['shift']());}catch(_0x367654){_0x14a6fb['push'](_0x14a6fb['shift']());}}}(a47_0x551c,0x54ea7));import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';import{buildAllFlags as a47_0xecfcfe}from'@lovrabet/cli-framework';function a47_0x5558(_0x1db484,_0x501644){_0x1db484=_0x1db484-0xd4;var _0x551cb3=a47_0x551c();var _0x5558f6=_0x551cb3[_0x1db484];return _0x5558f6;}function a47_0x551c(){var _0x45b7d8=['420TQqMuT','15618LVFsSf','310kPopIC','168pqxWaY','1904KnSINe','8836fPHyyp','5043940IUAOLR','729696AoOUQt','2966112XQfEsI','1214745EZklOA'];a47_0x551c=function(){return _0x45b7d8;};return a47_0x551c();}export function buildAllFlags(_0x3885e7){return a47_0xecfcfe(_0x3885e7,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});}
@@ -1 +1 @@
1
- (function(_0x52bd93,_0x228a2c){const _0x1feecc=a48_0x4b6b,_0x514275=_0x52bd93();while(!![]){try{const _0x3b93a2=parseInt(_0x1feecc(0x1b8))/0x1*(-parseInt(_0x1feecc(0x1af))/0x2)+-parseInt(_0x1feecc(0x1b2))/0x3*(-parseInt(_0x1feecc(0x1ae))/0x4)+parseInt(_0x1feecc(0x1b9))/0x5*(-parseInt(_0x1feecc(0x1ab))/0x6)+-parseInt(_0x1feecc(0x1ad))/0x7+-parseInt(_0x1feecc(0x1b3))/0x8*(parseInt(_0x1feecc(0x1b4))/0x9)+-parseInt(_0x1feecc(0x1b7))/0xa*(-parseInt(_0x1feecc(0x1b6))/0xb)+-parseInt(_0x1feecc(0x1ac))/0xc*(-parseInt(_0x1feecc(0x1b0))/0xd);if(_0x3b93a2===_0x228a2c)break;else _0x514275['push'](_0x514275['shift']());}catch(_0x207b4f){_0x514275['push'](_0x514275['shift']());}}}(a48_0x5eee,0x1a5c7));function a48_0x4b6b(_0x1df185,_0xd6abcc){_0x1df185=_0x1df185-0x1ab;const _0x5eee1b=a48_0x5eee();let _0x4b6bd5=_0x5eee1b[_0x1df185];return _0x4b6bd5;}export function dryRun(_0x4a45f8,_0x5a574b){const _0x53f0f9={'method':_0x4a45f8,'url':_0x5a574b},_0x87bbbc={'body'(_0x12c124){const _0x31672e=a48_0x4b6b;return _0x53f0f9[_0x31672e(0x1b1)]=_0x12c124,_0x87bbbc;},'description'(_0x190c48){const _0x4c92d9=a48_0x4b6b;return _0x53f0f9[_0x4c92d9(0x1b5)]=_0x190c48,_0x87bbbc;},'build'(){return{..._0x53f0f9};}};return _0x87bbbc;}function a48_0x5eee(){const _0x57b7a8=['1884EXOqpA','222468cPNock','941612ilgCeM','430112rIEZGf','10772RJfHTA','143EiPsix','body','6usPaFY','16zFEiNC','691281suZCki','description','407TElVdQ','22220WXBmsL','11uojGby','730ZroFRm'];a48_0x5eee=function(){return _0x57b7a8;};return a48_0x5eee();}
1
+ function a48_0x37ec(){const _0x19234c=['534uqvhKf','30904EvWFeF','631154esiVeO','3010923dtRLsQ','3330072KoZEQZ','2881179NBTayn','80ltVqnM','description','4493360ebVUmM','931CpJwHT','76280GwOyUr','body'];a48_0x37ec=function(){return _0x19234c;};return a48_0x37ec();}function a48_0x2b04(_0x53bec0,_0x1fa23c){_0x53bec0=_0x53bec0-0xe8;const _0x37ecc7=a48_0x37ec();let _0x2b04e5=_0x37ecc7[_0x53bec0];return _0x2b04e5;}(function(_0x75a3e8,_0x5b0e4a){const _0x4fc1b5=a48_0x2b04,_0x2d6770=_0x75a3e8();while(!![]){try{const _0x380b8e=parseInt(_0x4fc1b5(0xf1))/0x1+parseInt(_0x4fc1b5(0xf3))/0x2+parseInt(_0x4fc1b5(0xe8))/0x3+parseInt(_0x4fc1b5(0xeb))/0x4+parseInt(_0x4fc1b5(0xed))/0x5*(-parseInt(_0x4fc1b5(0xef))/0x6)+parseInt(_0x4fc1b5(0xec))/0x7*(parseInt(_0x4fc1b5(0xf0))/0x8)+-parseInt(_0x4fc1b5(0xf2))/0x9*(parseInt(_0x4fc1b5(0xe9))/0xa);if(_0x380b8e===_0x5b0e4a)break;else _0x2d6770['push'](_0x2d6770['shift']());}catch(_0x2be7c4){_0x2d6770['push'](_0x2d6770['shift']());}}}(a48_0x37ec,0xd1d96));export function dryRun(_0x5a7826,_0x4b5d9c){const _0x1ae008={'method':_0x5a7826,'url':_0x4b5d9c},_0x30bffc={'body'(_0x11873c){const _0x4bdd41=a48_0x2b04;return _0x1ae008[_0x4bdd41(0xee)]=_0x11873c,_0x30bffc;},'description'(_0x4b4f43){const _0xbf4f7b=a48_0x2b04;return _0x1ae008[_0xbf4f7b(0xea)]=_0x4b4f43,_0x30bffc;},'build'(){return{..._0x1ae008};}};return _0x30bffc;}