@lovrabet/lovrabet-cli 2.1.0-beta.1 → 2.1.0-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (85) hide show
  1. package/lib/cli.js +1 -1
  2. package/lib/commands/api-doc/index.js +1 -1
  3. package/lib/commands/app/cache.js +1 -1
  4. package/lib/commands/app/definitions.js +1 -1
  5. package/lib/commands/app/eligibility.js +1 -1
  6. package/lib/commands/app/mock-loader.js +1 -1
  7. package/lib/commands/app/remote-source.js +1 -1
  8. package/lib/commands/app/shared.js +1 -1
  9. package/lib/commands/artifact/index.js +1 -1
  10. package/lib/commands/auth/index.js +1 -1
  11. package/lib/commands/auth/prompt.js +1 -1
  12. package/lib/commands/bff/detail.js +1 -1
  13. package/lib/commands/bff/exec.js +1 -1
  14. package/lib/commands/bff/index.js +1 -1
  15. package/lib/commands/cli-skill/index.js +1 -1
  16. package/lib/commands/common/config-policy.js +1 -1
  17. package/lib/commands/common/constraints.js +1 -1
  18. package/lib/commands/common/flags.js +1 -1
  19. package/lib/commands/config/definitions.js +1 -1
  20. package/lib/commands/config/shared.js +1 -1
  21. package/lib/commands/data/index.js +1 -1
  22. package/lib/commands/dataset/detail.js +1 -1
  23. package/lib/commands/dataset/index.js +1 -1
  24. package/lib/commands/dataset/list.js +1 -1
  25. package/lib/commands/dataset/sdk-doc.js +1 -1
  26. package/lib/commands/doctor.js +1 -1
  27. package/lib/commands/init.js +1 -1
  28. package/lib/commands/kb/index.js +1 -1
  29. package/lib/commands/logs/index.js +1 -1
  30. package/lib/commands/personal-bff/index.js +1 -1
  31. package/lib/commands/registry.js +1 -1
  32. package/lib/commands/schema.js +1 -1
  33. package/lib/commands/service/dynamic.js +1 -1
  34. package/lib/commands/service/index.js +1 -1
  35. package/lib/commands/service/registry.js +1 -1
  36. package/lib/commands/skill/index.js +1 -1
  37. package/lib/commands/skill/templates.js +1 -1
  38. package/lib/commands/skill/validate.js +1 -1
  39. package/lib/commands/sql/detail.js +1 -1
  40. package/lib/commands/sql/exec.js +1 -1
  41. package/lib/commands/sql/index.js +1 -1
  42. package/lib/commands/update.js +1 -1
  43. package/lib/commands/workspace/index.js +1 -1
  44. package/lib/config/schema.js +1 -1
  45. package/lib/constant/app.js +1 -1
  46. package/lib/constant/auth-mode.js +1 -1
  47. package/lib/constant/cli.js +1 -1
  48. package/lib/constant/defaults.js +1 -1
  49. package/lib/constant/distribution.js +1 -1
  50. package/lib/constant/domain.js +1 -1
  51. package/lib/constant/env.js +1 -1
  52. package/lib/constant/output.js +1 -1
  53. package/lib/constant/product.js +1 -1
  54. package/lib/constant/risk.js +1 -1
  55. package/lib/constant/url.js +1 -1
  56. package/lib/context.js +1 -1
  57. package/lib/core/api-client.js +1 -1
  58. package/lib/core/db-resolver.js +1 -1
  59. package/lib/core/sdk-client.js +1 -1
  60. package/lib/errors.js +1 -1
  61. package/lib/framework/build-all-flags.js +1 -1
  62. package/lib/framework/dryrun.js +1 -1
  63. package/lib/framework/flags.js +1 -1
  64. package/lib/framework/help.js +1 -1
  65. package/lib/framework/index.js +1 -1
  66. package/lib/framework/output.js +1 -1
  67. package/lib/framework/preparse.js +1 -1
  68. package/lib/framework/response.js +1 -1
  69. package/lib/framework/runner-confirmation.js +1 -1
  70. package/lib/framework/runner-error.js +1 -1
  71. package/lib/framework/runner.js +1 -1
  72. package/lib/framework/schema-export.js +1 -1
  73. package/lib/framework/types.js +1 -1
  74. package/lib/generated/build-info.js +1 -1
  75. package/lib/help.js +1 -1
  76. package/lib/skills/npx-skills-add.js +1 -1
  77. package/lib/skills/runtime-skill-sync.js +1 -1
  78. package/lib/utils/apply-jq-filter.js +1 -1
  79. package/lib/utils/logger.js +1 -1
  80. package/lib/utils/params.js +1 -1
  81. package/lib/utils/platform.js +1 -1
  82. package/lib/utils/update-notice.js +1 -1
  83. package/lib/utils/version.js +1 -1
  84. package/lib/utils/write-cli-side-channel.js +1 -1
  85. package/package.json +1 -1
@@ -1 +1 @@
1
- const a49_0x23d73b=a49_0x2169;(function(_0x3b6c8c,_0x4fca7f){const _0x4d0110=a49_0x2169,_0x3089f9=_0x3b6c8c();while(!![]){try{const _0x9f270=parseInt(_0x4d0110(0x144))/0x1*(-parseInt(_0x4d0110(0x148))/0x2)+-parseInt(_0x4d0110(0x13b))/0x3*(-parseInt(_0x4d0110(0x138))/0x4)+-parseInt(_0x4d0110(0x13a))/0x5*(-parseInt(_0x4d0110(0x145))/0x6)+parseInt(_0x4d0110(0x13e))/0x7+-parseInt(_0x4d0110(0x140))/0x8+parseInt(_0x4d0110(0x139))/0x9*(parseInt(_0x4d0110(0x13c))/0xa)+parseInt(_0x4d0110(0x136))/0xb;if(_0x9f270===_0x4fca7f)break;else _0x3089f9['push'](_0x3089f9['shift']());}catch(_0x47ab75){_0x3089f9['push'](_0x3089f9['shift']());}}}(a49_0x1c68,0x58f5d));import{getEnv,isProduction}from'../constant/env.js';function a49_0x1c68(){const _0x6eebd5=['nonProduction','53860MKAIJj','799857pKyYPT','15KNtGgC','69VYsFYW','10lMqxoL','runtimeDomain','2431072hfYVlU','runtime','4204656RbzvRl','domains','production','api','294268KPyVMF','777858nWjGoo','skillhub','userDomain','2qZOWlY','skillHubDomain','apiDomain','543818ILVdEH'];a49_0x1c68=function(){return _0x6eebd5;};return a49_0x1c68();}import{PRODUCT_CONFIG}from'../constant/product.js';let customApiDomain,customUserDomain,customRuntimeDomain,customSkillHubDomain;export function initDomains(_0x457554){const _0x5c3a02=a49_0x2169;customApiDomain=_0x457554?.[_0x5c3a02(0x14a)],customUserDomain=_0x457554?.[_0x5c3a02(0x147)],customRuntimeDomain=_0x457554?.[_0x5c3a02(0x13d)],customSkillHubDomain=_0x457554?.[_0x5c3a02(0x149)];}export const getUserDomain=()=>customUserDomain||(isProduction(getEnv())?PRODUCT_CONFIG['domains']['production']['user']:PRODUCT_CONFIG[a49_0x23d73b(0x141)][a49_0x23d73b(0x137)]['user']);function a49_0x2169(_0xd09725,_0x21e018){_0xd09725=_0xd09725-0x136;const _0x1c6826=a49_0x1c68();let _0x2169aa=_0x1c6826[_0xd09725];return _0x2169aa;}export const getApiDomain=()=>customApiDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a49_0x23d73b(0x141)]['production']['api']:PRODUCT_CONFIG['domains'][a49_0x23d73b(0x137)][a49_0x23d73b(0x143)]);export const getRuntimeDomain=()=>customRuntimeDomain||(isProduction(getEnv())?PRODUCT_CONFIG['domains']['production'][a49_0x23d73b(0x13f)]:PRODUCT_CONFIG[a49_0x23d73b(0x141)][a49_0x23d73b(0x137)][a49_0x23d73b(0x13f)]);export const getSkillHubDomain=()=>customSkillHubDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a49_0x23d73b(0x141)][a49_0x23d73b(0x142)][a49_0x23d73b(0x146)]:PRODUCT_CONFIG[a49_0x23d73b(0x141)]['nonProduction'][a49_0x23d73b(0x146)]);
1
+ const a49_0x399fba=a49_0x1584;(function(_0x3883dd,_0x3ca4a8){const _0x50ae42=a49_0x1584,_0x235125=_0x3883dd();while(!![]){try{const _0x40ea74=parseInt(_0x50ae42(0x160))/0x1*(-parseInt(_0x50ae42(0x15a))/0x2)+parseInt(_0x50ae42(0x16a))/0x3*(parseInt(_0x50ae42(0x157))/0x4)+-parseInt(_0x50ae42(0x16c))/0x5*(-parseInt(_0x50ae42(0x16b))/0x6)+parseInt(_0x50ae42(0x168))/0x7+parseInt(_0x50ae42(0x15e))/0x8+-parseInt(_0x50ae42(0x15b))/0x9*(-parseInt(_0x50ae42(0x15f))/0xa)+-parseInt(_0x50ae42(0x163))/0xb;if(_0x40ea74===_0x3ca4a8)break;else _0x235125['push'](_0x235125['shift']());}catch(_0x3a42a3){_0x235125['push'](_0x235125['shift']());}}}(a49_0xc55e,0x24e35));import{getEnv,isProduction}from'../constant/env.js';import{PRODUCT_CONFIG}from'../constant/product.js';function a49_0xc55e(){const _0xe1f2cd=['241720SPEYqe','1913ILFqLR','nonProduction','apiDomain','5622166LzmJjZ','production','userDomain','domains','api','1459402NWYCkF','runtimeDomain','3WhUlho','1351482lUBVJe','5uVMGsB','995308VgDrhH','runtime','user','284oyGBSx','81SxVEOf','skillHubDomain','skillhub','269896aFQnhp'];a49_0xc55e=function(){return _0xe1f2cd;};return a49_0xc55e();}let customApiDomain,customUserDomain,customRuntimeDomain,customSkillHubDomain;function a49_0x1584(_0x458dfc,_0x3ac63e){_0x458dfc=_0x458dfc-0x157;const _0xc55e08=a49_0xc55e();let _0x15841d=_0xc55e08[_0x458dfc];return _0x15841d;}export function initDomains(_0x5d5363){const _0x2f15ab=a49_0x1584;customApiDomain=_0x5d5363?.[_0x2f15ab(0x162)],customUserDomain=_0x5d5363?.[_0x2f15ab(0x165)],customRuntimeDomain=_0x5d5363?.[_0x2f15ab(0x169)],customSkillHubDomain=_0x5d5363?.[_0x2f15ab(0x15c)];}export const getUserDomain=()=>customUserDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a49_0x399fba(0x166)][a49_0x399fba(0x164)][a49_0x399fba(0x159)]:PRODUCT_CONFIG[a49_0x399fba(0x166)]['nonProduction']['user']);export const getApiDomain=()=>customApiDomain||(isProduction(getEnv())?PRODUCT_CONFIG['domains'][a49_0x399fba(0x164)][a49_0x399fba(0x167)]:PRODUCT_CONFIG[a49_0x399fba(0x166)][a49_0x399fba(0x161)]['api']);export const getRuntimeDomain=()=>customRuntimeDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a49_0x399fba(0x166)][a49_0x399fba(0x164)][a49_0x399fba(0x158)]:PRODUCT_CONFIG['domains'][a49_0x399fba(0x161)][a49_0x399fba(0x158)]);export const getSkillHubDomain=()=>customSkillHubDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a49_0x399fba(0x166)][a49_0x399fba(0x164)]['skillhub']:PRODUCT_CONFIG[a49_0x399fba(0x166)][a49_0x399fba(0x161)][a49_0x399fba(0x15d)]);
@@ -1 +1 @@
1
- const a50_0x1b17ca=a50_0x1ee2;(function(_0x32eb62,_0x38e0b5){const _0x1ca407=a50_0x1ee2,_0x4287fc=_0x32eb62();while(!![]){try{const _0x5ba3a1=-parseInt(_0x1ca407(0xea))/0x1*(-parseInt(_0x1ca407(0xf4))/0x2)+-parseInt(_0x1ca407(0xf7))/0x3*(-parseInt(_0x1ca407(0xf1))/0x4)+parseInt(_0x1ca407(0xf5))/0x5+-parseInt(_0x1ca407(0xeb))/0x6*(-parseInt(_0x1ca407(0xee))/0x7)+-parseInt(_0x1ca407(0xef))/0x8+-parseInt(_0x1ca407(0xec))/0x9+parseInt(_0x1ca407(0xf3))/0xa;if(_0x5ba3a1===_0x38e0b5)break;else _0x4287fc['push'](_0x4287fc['shift']());}catch(_0x450e13){_0x4287fc['push'](_0x4287fc['shift']());}}}(a50_0x12ed,0xcb519));import{productEnv}from'../constant/product.js';export const RUNTIME_ENV_VALUES=[a50_0x1b17ca(0xf2),a50_0x1b17ca(0xf0),a50_0x1b17ca(0xf6)];export function normalizeEnv(_0xbf9072){const _0x1cf4e5=a50_0x1b17ca;return _0xbf9072==='online'?_0x1cf4e5(0xf2):_0xbf9072;}export function isProduction(_0x3e6c33){const _0x5b3700=a50_0x1b17ca;return normalizeEnv(_0x3e6c33)===_0x5b3700(0xf2);}export function isDaily(_0x4044da){const _0x1639f7=a50_0x1b17ca;return normalizeEnv(_0x4044da)===_0x1639f7(0xf6);}export function isDev(_0xc3712f){const _0x39690c=a50_0x1b17ca,_0x402582=normalizeEnv(_0xc3712f);return _0x402582===_0x39690c(0xf0)||_0x402582===_0x39690c(0xed);}let env=normalizeEnv(productEnv(a50_0x1b17ca(0xf8))||a50_0x1b17ca(0xf2));function a50_0x12ed(){const _0x338dd5=['1208139kBDOVu','642408OwTsYF','9481221scLsEk','dev','7djBySH','13248208cHMKNe','development','76844hsHQMR','production','10019540HXIePD','2gOApbD','3051875FjZFvu','daily','96gEohpC','ENV'];a50_0x12ed=function(){return _0x338dd5;};return a50_0x12ed();}function a50_0x1ee2(_0x31b9b4,_0x232185){_0x31b9b4=_0x31b9b4-0xea;const _0x12edec=a50_0x12ed();let _0x1ee2ff=_0x12edec[_0x31b9b4];return _0x1ee2ff;}export function getEnv(){return env;}export function initEnv(_0x559468){env=normalizeEnv(_0x559468);}
1
+ function a50_0xd216(){const _0x9cd64f=['online','75698akOmVW','production','1521138QgSPsW','daily','ENV','823077yUJLao','7974780nlNOIt','32zIFjOi','7AmPuXZ','dev','development','4YUfFmU','3408985JJOEYR','1959627MZBmZw','22ViKfHc','21750894fxfeqh'];a50_0xd216=function(){return _0x9cd64f;};return a50_0xd216();}const a50_0x4a2e27=a50_0xe7df;(function(_0x187b74,_0x26bf11){const _0x533d63=a50_0xe7df,_0x4e6098=_0x187b74();while(!![]){try{const _0xb68474=parseInt(_0x533d63(0x97))/0x1*(-parseInt(_0x533d63(0x94))/0x2)+parseInt(_0x533d63(0x93))/0x3*(-parseInt(_0x533d63(0x91))/0x4)+-parseInt(_0x533d63(0x92))/0x5+parseInt(_0x533d63(0x99))/0x6*(parseInt(_0x533d63(0x9f))/0x7)+parseInt(_0x533d63(0x9e))/0x8*(-parseInt(_0x533d63(0x9c))/0x9)+parseInt(_0x533d63(0x9d))/0xa+parseInt(_0x533d63(0x95))/0xb;if(_0xb68474===_0x26bf11)break;else _0x4e6098['push'](_0x4e6098['shift']());}catch(_0x419db2){_0x4e6098['push'](_0x4e6098['shift']());}}}(a50_0xd216,0x78d0b));import{productEnv}from'../constant/product.js';export const RUNTIME_ENV_VALUES=['production',a50_0x4a2e27(0x90),a50_0x4a2e27(0x9a)];function a50_0xe7df(_0x5bb019,_0x3021aa){_0x5bb019=_0x5bb019-0x8f;const _0xd216ee=a50_0xd216();let _0xe7dfa1=_0xd216ee[_0x5bb019];return _0xe7dfa1;}export function normalizeEnv(_0x23e9ec){const _0x25da18=a50_0x4a2e27;return _0x23e9ec===_0x25da18(0x96)?_0x25da18(0x98):_0x23e9ec;}export function isProduction(_0x396a4f){const _0x510313=a50_0x4a2e27;return normalizeEnv(_0x396a4f)===_0x510313(0x98);}export function isDaily(_0x5f02a6){const _0x2913f8=a50_0x4a2e27;return normalizeEnv(_0x5f02a6)===_0x2913f8(0x9a);}export function isDev(_0x4fe41b){const _0x292bda=a50_0x4a2e27,_0x538bdc=normalizeEnv(_0x4fe41b);return _0x538bdc===_0x292bda(0x90)||_0x538bdc===_0x292bda(0x8f);}let env=normalizeEnv(productEnv(a50_0x4a2e27(0x9b))||a50_0x4a2e27(0x98));export function getEnv(){return env;}export function initEnv(_0x42d196){env=normalizeEnv(_0x42d196);}
@@ -1 +1 @@
1
- const a51_0x1119c2=a51_0x3a2b;function a51_0x3a2b(_0x3efa4b,_0x42cc63){_0x3efa4b=_0x3efa4b-0xf9;const _0x2a5bfb=a51_0x2a5b();let _0x3a2b84=_0x2a5bfb[_0x3efa4b];return _0x3a2b84;}(function(_0x500e6b,_0x4c031f){const _0x276333=a51_0x3a2b,_0x34bb3d=_0x500e6b();while(!![]){try{const _0x760274=-parseInt(_0x276333(0x103))/0x1+-parseInt(_0x276333(0xfb))/0x2*(-parseInt(_0x276333(0xf9))/0x3)+-parseInt(_0x276333(0xfa))/0x4*(parseInt(_0x276333(0x105))/0x5)+parseInt(_0x276333(0xff))/0x6+parseInt(_0x276333(0x100))/0x7+-parseInt(_0x276333(0x102))/0x8+-parseInt(_0x276333(0x104))/0x9*(parseInt(_0x276333(0xfc))/0xa);if(_0x760274===_0x4c031f)break;else _0x34bb3d['push'](_0x34bb3d['shift']());}catch(_0x50bbfc){_0x34bb3d['push'](_0x34bb3d['shift']());}}}(a51_0x2a5b,0x2d0be));function a51_0x2a5b(){const _0x37096b=['297557PWakHO','73917sTRdQO','1055QgPZqo','3VbIlHd','208jwaKWT','65818aaroYa','10vAizPR','pretty','json','1874646aZuFTm','1143394wyQIeN','compress','59520QPNwVn'];a51_0x2a5b=function(){return _0x37096b;};return a51_0x2a5b();}export const OUTPUT_FORMAT_VALUES=[a51_0x1119c2(0xfe),a51_0x1119c2(0xfd),a51_0x1119c2(0x101)];
1
+ const a51_0x4641f0=a51_0x1fa9;(function(_0x300b2c,_0x13faf6){const _0x16b7d2=a51_0x1fa9,_0x555189=_0x300b2c();while(!![]){try{const _0x3b79c4=-parseInt(_0x16b7d2(0xed))/0x1*(-parseInt(_0x16b7d2(0xf4))/0x2)+-parseInt(_0x16b7d2(0xf5))/0x3+parseInt(_0x16b7d2(0xee))/0x4+parseInt(_0x16b7d2(0xf0))/0x5+-parseInt(_0x16b7d2(0xf3))/0x6+-parseInt(_0x16b7d2(0xf2))/0x7*(parseInt(_0x16b7d2(0xf1))/0x8)+parseInt(_0x16b7d2(0xef))/0x9;if(_0x3b79c4===_0x13faf6)break;else _0x555189['push'](_0x555189['shift']());}catch(_0x1ef250){_0x555189['push'](_0x555189['shift']());}}}(a51_0x4d91,0xa289c));function a51_0x1fa9(_0x588483,_0x5d793e){_0x588483=_0x588483-0xec;const _0x4d911e=a51_0x4d91();let _0x1fa9e6=_0x4d911e[_0x588483];return _0x1fa9e6;}export const OUTPUT_FORMAT_VALUES=['json','pretty',a51_0x4641f0(0xec)];function a51_0x4d91(){const _0x257bcc=['14930739tcSzNm','2834045WwsVhn','40iYVsQe','1375507saaJGm','4631628boMrxj','2wcEoTK','3706869ffMzLd','compress','1011273wOUVwP','1675076ybZcEw'];a51_0x4d91=function(){return _0x257bcc;};return a51_0x4d91();}
@@ -1 +1 @@
1
- function a52_0x6bff(){const _0x3f45c9=['https://user.lovrabet.com','map','276zVOJNk','.lovrabetrc','lovrabet/lovrabet-cli','SKIP_NPX_SKILLS','3190waiLoN','https://api.lovrabet.com','/user/ak','1813944LhfooF','1857924YYLQqG','LOVRABET','@lovrabet/lovrabet-cli','lovrabet','https://registry.npmjs.org','https://skills-daily.lovrabet.com','Lovrabet\x20User\x20Center','71337iAbtFv','4oIbDif','https://daily-runtime.lovrabet.com','.lovrabet-runtime.log','1086vgLSzC','legacyEnvPrefixes','.lovrabet.json','36113PitInA','4191gzqICL','.lovrabet','https://skills.lovrabet.com','8mYyQhd','93KHFtWT','789625UsXnKA'];a52_0x6bff=function(){return _0x3f45c9;};return a52_0x6bff();}const a52_0x4a1fd8=a52_0x1220;(function(_0x249f02,_0x386373){const _0x2c7e07=a52_0x1220,_0x2e651a=_0x249f02();while(!![]){try{const _0x45a3e0=-parseInt(_0x2c7e07(0x1b1))/0x1*(parseInt(_0x2c7e07(0x1a9))/0x2)+parseInt(_0x2c7e07(0x1c4))/0x3+-parseInt(_0x2c7e07(0x1c5))/0x4*(-parseInt(_0x2c7e07(0x1b2))/0x5)+parseInt(_0x2c7e07(0x1b5))/0x6*(parseInt(_0x2c7e07(0x1ac))/0x7)+parseInt(_0x2c7e07(0x1b0))/0x8*(-parseInt(_0x2c7e07(0x1bd))/0x9)+parseInt(_0x2c7e07(0x1b9))/0xa*(parseInt(_0x2c7e07(0x1ad))/0xb)+-parseInt(_0x2c7e07(0x1bc))/0xc;if(_0x45a3e0===_0x386373)break;else _0x2e651a['push'](_0x2e651a['shift']());}catch(_0x2f876f){_0x2e651a['push'](_0x2e651a['shift']());}}}(a52_0x6bff,0x2056c));export const PRODUCT_CONFIG={'cliBinName':a52_0x4a1fd8(0x1c0),'cliDisplayName':'Lovrabet\x20Runtime\x20CLI','npmPackageName':a52_0x4a1fd8(0x1bf),'skillSource':a52_0x4a1fd8(0x1b7),'npmRegistryBaseUrl':a52_0x4a1fd8(0x1c1),'envPrefix':a52_0x4a1fd8(0x1be),'legacyEnvPrefixes':['RABETBASE'],'configFileNames':['.lovrabet.json',a52_0x4a1fd8(0x1b6)],'newConfigFileName':a52_0x4a1fd8(0x1ab),'homeDirName':a52_0x4a1fd8(0x1ae),'logFileName':a52_0x4a1fd8(0x1a8),'invokeSource':'cli:lovrabet-runtime','userCenterDisplayName':a52_0x4a1fd8(0x1c3),'skipNpxSkillsEnvSuffix':a52_0x4a1fd8(0x1b8),'domains':{'production':{'user':a52_0x4a1fd8(0x1b3),'api':a52_0x4a1fd8(0x1ba),'runtime':'https://runtime.lovrabet.com','skillhub':a52_0x4a1fd8(0x1af)},'nonProduction':{'user':'https://user-daily.lovrabet.com','api':'https://daily-api.lovrabet.com','runtime':a52_0x4a1fd8(0x1c6),'skillhub':a52_0x4a1fd8(0x1c2)}},'accessKeyCreatePath':a52_0x4a1fd8(0x1bb)};export function productEnvName(_0x5de3b0){return PRODUCT_CONFIG['envPrefix']+'_'+_0x5de3b0;}export function productEnvNames(_0x5ab03b){const _0x1c19e5=a52_0x4a1fd8;return[productEnvName(_0x5ab03b),...PRODUCT_CONFIG[_0x1c19e5(0x1aa)][_0x1c19e5(0x1b4)](_0x31cc9d=>_0x31cc9d+'_'+_0x5ab03b)];}function a52_0x1220(_0x1d0da0,_0x1bdb57){_0x1d0da0=_0x1d0da0-0x1a8;const _0x6bff75=a52_0x6bff();let _0x1220cf=_0x6bff75[_0x1d0da0];return _0x1220cf;}export function productEnv(_0x2d571e){for(const _0x3216c1 of productEnvNames(_0x2d571e)){const _0x35d690=process.env[_0x3216c1];if(_0x35d690!==undefined)return _0x35d690;}return undefined;}
1
+ const a52_0x469b9f=a52_0x15f3;(function(_0x17e2af,_0x8bbc9c){const _0x2d9125=a52_0x15f3,_0x11352f=_0x17e2af();while(!![]){try{const _0x18ff3c=parseInt(_0x2d9125(0xfc))/0x1+parseInt(_0x2d9125(0x106))/0x2+parseInt(_0x2d9125(0x113))/0x3*(-parseInt(_0x2d9125(0x108))/0x4)+parseInt(_0x2d9125(0xff))/0x5*(-parseInt(_0x2d9125(0x100))/0x6)+-parseInt(_0x2d9125(0xfe))/0x7+parseInt(_0x2d9125(0x110))/0x8+parseInt(_0x2d9125(0xfb))/0x9*(parseInt(_0x2d9125(0x101))/0xa);if(_0x18ff3c===_0x8bbc9c)break;else _0x11352f['push'](_0x11352f['shift']());}catch(_0x281ec2){_0x11352f['push'](_0x11352f['shift']());}}}(a52_0x34d5,0xd2027));export const PRODUCT_CONFIG={'cliBinName':a52_0x469b9f(0x10e),'cliDisplayName':a52_0x469b9f(0x103),'npmPackageName':'@lovrabet/lovrabet-cli','skillSource':'lovrabet/lovrabet-cli','npmRegistryBaseUrl':'https://registry.npmjs.org','envPrefix':a52_0x469b9f(0x114),'legacyEnvPrefixes':['RABETBASE'],'configFileNames':['.lovrabet.json',a52_0x469b9f(0x111)],'newConfigFileName':a52_0x469b9f(0x10f),'homeDirName':a52_0x469b9f(0x105),'logFileName':'.lovrabet-runtime.log','invokeSource':a52_0x469b9f(0x10b),'userCenterDisplayName':a52_0x469b9f(0x109),'skipNpxSkillsEnvSuffix':a52_0x469b9f(0x10d),'domains':{'production':{'user':a52_0x469b9f(0x10a),'api':'https://api.lovrabet.com','runtime':a52_0x469b9f(0x10c),'skillhub':'https://skills.lovrabet.com'},'nonProduction':{'user':a52_0x469b9f(0x107),'api':'https://daily-api.lovrabet.com','runtime':a52_0x469b9f(0x104),'skillhub':'https://skills-daily.lovrabet.com'}},'accessKeyCreatePath':'/user/ak'};export function productEnvName(_0x3fe1a1){const _0x24f917=a52_0x469b9f;return PRODUCT_CONFIG[_0x24f917(0x112)]+'_'+_0x3fe1a1;}export function productEnvNames(_0x13c128){const _0x4c42cf=a52_0x469b9f;return[productEnvName(_0x13c128),...PRODUCT_CONFIG[_0x4c42cf(0xfd)][_0x4c42cf(0x102)](_0x109e28=>_0x109e28+'_'+_0x13c128)];}function a52_0x15f3(_0x152a8e,_0x352796){_0x152a8e=_0x152a8e-0xfb;const _0x34d5dd=a52_0x34d5();let _0x15f398=_0x34d5dd[_0x152a8e];return _0x15f398;}function a52_0x34d5(){const _0x34b00d=['754456KobZUF','.lovrabetrc','envPrefix','12UGZhCt','LOVRABET','33131313QwxhAV','1061372jxIbpm','legacyEnvPrefixes','12016466bNRWZr','257995rEiRdq','156HeWZPU','10nnVdEt','map','Lovrabet\x20Runtime\x20CLI','https://daily-runtime.lovrabet.com','.lovrabet','745606hVRzOs','https://user-daily.lovrabet.com','1291328jbVtyC','Lovrabet\x20User\x20Center','https://user.lovrabet.com','cli:lovrabet-runtime','https://runtime.lovrabet.com','SKIP_NPX_SKILLS','lovrabet','.lovrabet.json'];a52_0x34d5=function(){return _0x34b00d;};return a52_0x34d5();}export function productEnv(_0x6746d2){for(const _0x253a59 of productEnvNames(_0x6746d2)){const _0x1218e8=process.env[_0x253a59];if(_0x1218e8!==undefined)return _0x1218e8;}return undefined;}
@@ -1 +1 @@
1
- function a53_0x16ec(_0xfa6f8a,_0x4ce76a){_0xfa6f8a=_0xfa6f8a-0x1a7;const _0x47981c=a53_0x4798();let _0x16ec4c=_0x47981c[_0xfa6f8a];return _0x16ec4c;}const a53_0x3ac6f0=a53_0x16ec;(function(_0x1be7c1,_0x213250){const _0x5e2a5e=a53_0x16ec,_0x53141b=_0x1be7c1();while(!![]){try{const _0x25af3d=-parseInt(_0x5e2a5e(0x1ab))/0x1*(parseInt(_0x5e2a5e(0x1b3))/0x2)+parseInt(_0x5e2a5e(0x1aa))/0x3*(-parseInt(_0x5e2a5e(0x1a8))/0x4)+parseInt(_0x5e2a5e(0x1b6))/0x5*(-parseInt(_0x5e2a5e(0x1b0))/0x6)+parseInt(_0x5e2a5e(0x1af))/0x7*(-parseInt(_0x5e2a5e(0x1b5))/0x8)+parseInt(_0x5e2a5e(0x1ad))/0x9*(-parseInt(_0x5e2a5e(0x1b1))/0xa)+parseInt(_0x5e2a5e(0x1a7))/0xb*(-parseInt(_0x5e2a5e(0x1ac))/0xc)+-parseInt(_0x5e2a5e(0x1ae))/0xd*(-parseInt(_0x5e2a5e(0x1a9))/0xe);if(_0x25af3d===_0x213250)break;else _0x53141b['push'](_0x53141b['shift']());}catch(_0xd21cfc){_0x53141b['push'](_0x53141b['shift']());}}}(a53_0x4798,0x2ee9d));export const RISK_LEVEL_VALUES=[a53_0x3ac6f0(0x1b2),a53_0x3ac6f0(0x1b4),'high-risk-write'];function a53_0x4798(){const _0x258a73=['write','798584rkDoBe','7260nHtVdZ','560659zGyyoZ','230628zUkuOz','22621522DMdmqb','3zfDOwo','8yKIaxU','72accxqn','18BTjDXV','13EmlsBZ','21jZCodg','1104GVGQdw','1095350hBuEst','read','68622lyVZgY'];a53_0x4798=function(){return _0x258a73;};return a53_0x4798();}
1
+ function a53_0x2cf3(_0x43a1f7,_0x58a81f){_0x43a1f7=_0x43a1f7-0xc0;const _0x55294a=a53_0x5529();let _0x2cf3f2=_0x55294a[_0x43a1f7];return _0x2cf3f2;}const a53_0x3eb186=a53_0x2cf3;(function(_0x1e818a,_0x45a20c){const _0x572763=a53_0x2cf3,_0x337889=_0x1e818a();while(!![]){try{const _0x23aa05=-parseInt(_0x572763(0xc8))/0x1*(parseInt(_0x572763(0xc3))/0x2)+-parseInt(_0x572763(0xc9))/0x3+-parseInt(_0x572763(0xca))/0x4*(-parseInt(_0x572763(0xc7))/0x5)+-parseInt(_0x572763(0xc1))/0x6+parseInt(_0x572763(0xc2))/0x7+parseInt(_0x572763(0xc5))/0x8+parseInt(_0x572763(0xc6))/0x9*(parseInt(_0x572763(0xc4))/0xa);if(_0x23aa05===_0x45a20c)break;else _0x337889['push'](_0x337889['shift']());}catch(_0x57179f){_0x337889['push'](_0x337889['shift']());}}}(a53_0x5529,0x81524));function a53_0x5529(){const _0x2b416e=['high-risk-write','read','3892518xHpUfa','6324192rNyydz','2ouVKCE','10UvdieC','2039464JMpzZM','5169519qrlBTF','15OyjewZ','689369yJGrOX','429363BOuMZU','370884MQyzcS'];a53_0x5529=function(){return _0x2b416e;};return a53_0x5529();}export const RISK_LEVEL_VALUES=[a53_0x3eb186(0xc0),'write',a53_0x3eb186(0xcb)];
@@ -1 +1 @@
1
- const a54_0x24e602=a54_0x293c;function a54_0x293c(_0x500219,_0x314064){_0x500219=_0x500219-0x70;const _0x356483=a54_0x3564();let _0x293c16=_0x356483[_0x500219];return _0x293c16;}function a54_0x3564(){const _0x367553=['3627152DqERCv','5599thuxGN','7VUcHNM','user','1915308qpqbWu','1168104EWKzDx','1GQdiQW','domains','770uRSAFP','65ttLEeb','18942czOzRm','4420287cWQtKu','1043446gAEDqz'];a54_0x3564=function(){return _0x367553;};return a54_0x3564();}(function(_0x1443aa,_0x3d7e6e){const _0x440bae=a54_0x293c,_0x4b06d0=_0x1443aa();while(!![]){try{const _0x2f0c4b=parseInt(_0x440bae(0x77))/0x1*(-parseInt(_0x440bae(0x70))/0x2)+parseInt(_0x440bae(0x76))/0x3+parseInt(_0x440bae(0x75))/0x4+-parseInt(_0x440bae(0x7a))/0x5*(-parseInt(_0x440bae(0x7b))/0x6)+parseInt(_0x440bae(0x73))/0x7*(parseInt(_0x440bae(0x71))/0x8)+-parseInt(_0x440bae(0x7c))/0x9+parseInt(_0x440bae(0x79))/0xa*(-parseInt(_0x440bae(0x72))/0xb);if(_0x2f0c4b===_0x3d7e6e)break;else _0x4b06d0['push'](_0x4b06d0['shift']());}catch(_0x50752d){_0x4b06d0['push'](_0x4b06d0['shift']());}}}(a54_0x3564,0x4bd2b));import{PRODUCT_CONFIG}from'../constant/product.js';export const USER_ACCESS_KEY_CREATE_URL=''+PRODUCT_CONFIG[a54_0x24e602(0x78)]['production'][a54_0x24e602(0x74)]+PRODUCT_CONFIG['accessKeyCreatePath'];
1
+ function a54_0x2a88(){const _0x2c6511=['445484zRbaFU','4748412wizxva','4901491mydhpb','28RiqfCz','3078PmAFhj','5182600zNjtgc','66196BBXVOz','2470977Hlmsvu','domains','45536JsjduP'];a54_0x2a88=function(){return _0x2c6511;};return a54_0x2a88();}const a54_0x31f8dd=a54_0x1a30;function a54_0x1a30(_0x45bcd8,_0x16d443){_0x45bcd8=_0x45bcd8-0x189;const _0x2a880e=a54_0x2a88();let _0x1a30c0=_0x2a880e[_0x45bcd8];return _0x1a30c0;}(function(_0x5cea95,_0x4bd858){const _0x508257=a54_0x1a30,_0x628a5d=_0x5cea95();while(!![]){try{const _0x30f310=-parseInt(_0x508257(0x18c))/0x1*(parseInt(_0x508257(0x189))/0x2)+parseInt(_0x508257(0x18d))/0x3+parseInt(_0x508257(0x190))/0x4+parseInt(_0x508257(0x18b))/0x5+parseInt(_0x508257(0x191))/0x6+parseInt(_0x508257(0x192))/0x7+parseInt(_0x508257(0x18f))/0x8*(-parseInt(_0x508257(0x18a))/0x9);if(_0x30f310===_0x4bd858)break;else _0x628a5d['push'](_0x628a5d['shift']());}catch(_0x18c6ed){_0x628a5d['push'](_0x628a5d['shift']());}}}(a54_0x2a88,0x8ffbd));import{PRODUCT_CONFIG}from'../constant/product.js';export const USER_ACCESS_KEY_CREATE_URL=''+PRODUCT_CONFIG[a54_0x31f8dd(0x18e)]['production']['user']+PRODUCT_CONFIG['accessKeyCreatePath'];
package/lib/context.js CHANGED
@@ -1 +1 @@
1
- const a55_0x5e6172=a55_0x1487;(function(_0x2d5418,_0x3e1ff7){const _0x406b99=a55_0x1487,_0x5a90c8=_0x2d5418();while(!![]){try{const _0x8e401=parseInt(_0x406b99(0x136))/0x1*(parseInt(_0x406b99(0x137))/0x2)+parseInt(_0x406b99(0x106))/0x3+-parseInt(_0x406b99(0x12b))/0x4*(parseInt(_0x406b99(0x120))/0x5)+parseInt(_0x406b99(0x139))/0x6*(-parseInt(_0x406b99(0x11e))/0x7)+-parseInt(_0x406b99(0x142))/0x8*(-parseInt(_0x406b99(0x114))/0x9)+parseInt(_0x406b99(0x127))/0xa+-parseInt(_0x406b99(0x132))/0xb*(parseInt(_0x406b99(0x12d))/0xc);if(_0x8e401===_0x3e1ff7)break;else _0x5a90c8['push'](_0x5a90c8['shift']());}catch(_0x5fe8f0){_0x5a90c8['push'](_0x5a90c8['shift']());}}}(a55_0x19a8,0xf35f2));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[a55_0x5e6172(0x134)];export const NEW_CONFIG_NAME=PRODUCT_CONFIG['newConfigFileName'];function resolveConfigPath(_0x3ad1a7){for(const _0x1197b8 of CONFIG_NAMES){const _0x16515e=resolve(_0x3ad1a7,_0x1197b8);if(existsSync(_0x16515e))return _0x16515e;}return undefined;}export function resolveWriteConfigPath(_0x43c8b1){const _0x35e448=a55_0x5e6172,_0x557f7a=_0x43c8b1==='project'?process[_0x35e448(0x13b)]():homedir(),_0x50691b=resolveConfigPath(_0x557f7a);return _0x50691b??resolve(_0x557f7a,NEW_CONFIG_NAME);}export function readConfigFile(_0x9b3173){const _0x5cfc66=a55_0x5e6172;try{if(existsSync(_0x9b3173)){const _0x5c118b=readFileSync(_0x9b3173,{'encoding':'utf8'});if(_0x5c118b){const _0x22692a=JSON[_0x5cfc66(0x112)](_0x5c118b);return migrateOnlineEnv(_0x9b3173,_0x22692a),_0x22692a;}}}catch{}return{};}function migrateOnlineEnv(_0x7ba91a,_0x2e9f9c){const _0x13469c=a55_0x5e6172;let _0x2b3b1a=![];_0x2e9f9c[_0x13469c(0x12f)]==='online'&&(_0x2e9f9c['env']='production',_0x2b3b1a=!![]);if(_0x2e9f9c['apps']&&typeof _0x2e9f9c['apps']===_0x13469c(0x104))for(const _0x4d2eb6 of Object[_0x13469c(0x12c)](_0x2e9f9c['apps'])){_0x4d2eb6&&_0x4d2eb6[_0x13469c(0x12f)]===_0x13469c(0x138)&&(_0x4d2eb6[_0x13469c(0x12f)]=_0x13469c(0x150),_0x2b3b1a=!![]);}if(_0x2b3b1a)try{writeConfigFile(_0x7ba91a,_0x2e9f9c);}catch{}}function a55_0x1487(_0x4a74d1,_0x3bd12a){_0x4a74d1=_0x4a74d1-0x103;const _0x19a819=a55_0x19a8();let _0x148733=_0x19a819[_0x4a74d1];return _0x148733;}export function writeConfigFile(_0x50ac35,_0x5aed57){const _0x1d0782=a55_0x5e6172,_0x3ce6cc=dirname(_0x50ac35);!existsSync(_0x3ce6cc)&&mkdirSync(_0x3ce6cc,{'recursive':!![]});const _0x4982ed=_0x50ac35+_0x1d0782(0x14a);try{writeFileSync(_0x4982ed,JSON['stringify'](_0x5aed57,null,0x2)+'\x0a',{'encoding':_0x1d0782(0x109),'mode':0x180});try{renameSync(_0x4982ed,_0x50ac35);}catch(_0x5437e3){if(_0x5437e3[_0x1d0782(0x129)]===_0x1d0782(0x13a)||_0x5437e3['code']===_0x1d0782(0x14f)||_0x5437e3[_0x1d0782(0x129)]===_0x1d0782(0x123)){writeFileSync(_0x50ac35,JSON['stringify'](_0x5aed57,null,0x2)+'\x0a',{'encoding':_0x1d0782(0x109)});try{unlinkSync(_0x4982ed);}catch{}}else throw _0x5437e3;}}catch(_0x574e12){try{unlinkSync(_0x4982ed);}catch{}throw _0x574e12;}}export function isNonInteractiveMode(_0x4b5267){const _0x152017=a55_0x5e6172;return!!(_0x4b5267[_0x152017(0x13f)]||_0x4b5267['ci']||productEnvNames('CI')[_0x152017(0x151)](_0x262b64=>process.env[_0x262b64]===_0x152017(0x11c))||process.env.CI===_0x152017(0x11c)||!process[_0x152017(0x147)][_0x152017(0x133)]||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x4eb29e=a55_0x5e6172;if(!process[_0x4eb29e(0x10d)][_0x4eb29e(0x133)])return![];try{const _0x17b60d=process[_0x4eb29e(0x10d)][_0x4eb29e(0x135)];return process[_0x4eb29e(0x10d)][_0x4eb29e(0x119)](!![]),process[_0x4eb29e(0x10d)][_0x4eb29e(0x119)](_0x17b60d??![]),!![];}catch{return![];}}export async function createContext(_0x22d1dc){const _0x179c39=a55_0x5e6172,_0x22cf93=readRawConfig(),_0x34a625=buildConfig(_0x22cf93,_0x22d1dc);await initGlobalEnvironment(_0x34a625);const {getUserDomain:_0x35867b,getApiDomain:_0x40e3f7}=await import(_0x179c39(0x13e)),_0x387e41={'apiDomain':_0x40e3f7(),'userDomain':_0x35867b()},_0x4fb2d9=await buildAuth(_0x34a625);logger[_0x179c39(0x124)](process[_0x179c39(0x13b)]());const _0x1342f1=(CLI_BIN_NAME+'\x20'+process[_0x179c39(0x14e)]['slice'](0x2)[_0x179c39(0x149)]('\x20'))['trim']();logger[_0x179c39(0x116)](_0x1342f1);const _0x520e68=isNonInteractiveMode(_0x22d1dc);return{'config':_0x34a625,'auth':_0x4fb2d9,'logger':logger,'env':_0x387e41,'nonInteractive':_0x520e68};}export function buildConfigFromFlags(_0x4a1968){return buildConfig(readRawConfig(),_0x4a1968);}export function getLocalAppAliases(_0x597dff){const _0x4b4050=a55_0x5e6172;return _0x597dff[_0x4b4050(0x145)]&&typeof _0x597dff[_0x4b4050(0x145)]===_0x4b4050(0x104)?_0x597dff[_0x4b4050(0x145)]:{};}export function resolveLocalAppAliasCode(_0x44e784,_0x4b43f5){const _0x2b10ce=a55_0x5e6172;if(!_0x4b43f5)return undefined;const _0x4b1e7a=getLocalAppAliases(_0x44e784)[_0x4b43f5],_0x544ca8=_0x4b1e7a?.['appcode'];return typeof _0x544ca8===_0x2b10ce(0x105)&&_0x544ca8['trim']()?_0x544ca8[_0x2b10ce(0x103)]():undefined;}export function readAppCodeFromConfig(){const _0x58f2a2=a55_0x5e6172,_0x377e56=readRawConfig(),_0xef5829=_0x377e56[_0x58f2a2(0x113)]??_0x377e56[_0x58f2a2(0x10e)];if(typeof _0xef5829===_0x58f2a2(0x105)&&_0xef5829['trim']())return _0xef5829[_0x58f2a2(0x103)]();const _0x166126=resolveLocalAppAliasCode(_0x377e56,typeof _0x377e56['defaultApp']==='string'?_0x377e56[_0x58f2a2(0x126)]:undefined);if(_0x166126)return _0x166126;const _0x371334=normalizeEnv(String(_0x377e56[_0x58f2a2(0x12f)]||_0x58f2a2(0x150))),_0xf48eec=isDaily(_0x371334)?_0x58f2a2(0x11b):isDev(_0x371334)?'development':_0x58f2a2(0x150),_0x264253=resolveCachedAppCode(typeof _0x377e56[_0x58f2a2(0x126)]===_0x58f2a2(0x105)?_0x377e56[_0x58f2a2(0x126)]:undefined,_0xf48eec,typeof _0x377e56[_0x58f2a2(0x13d)]==='string'?_0x377e56[_0x58f2a2(0x13d)]:undefined);if(_0x264253)return _0x264253;const _0x38af53=Object[_0x58f2a2(0x12c)](getLocalAppAliases(_0x377e56))[_0x58f2a2(0x11a)](_0x5dd9bb=>_0x5dd9bb?.[_0x58f2a2(0x113)]);return typeof _0x38af53?.[_0x58f2a2(0x113)]===_0x58f2a2(0x105)&&_0x38af53['appcode'][_0x58f2a2(0x103)]()?_0x38af53['appcode'][_0x58f2a2(0x103)]():undefined;}export function readScopedConfig(_0xc90375){const _0x19ade5=a55_0x5e6172,_0x4a22f0=_0xc90375['global']?_0x19ade5(0x115):_0x19ade5(0x146);return readConfigFile(resolveWriteConfigPath(_0x4a22f0));}export function writeScopedConfig(_0x501577,_0x155cbc){const _0x543ca0=a55_0x5e6172,_0x423e51=_0x155cbc['global']?_0x543ca0(0x115):_0x543ca0(0x146);writeConfigFile(resolveWriteConfigPath(_0x423e51),_0x501577);}export async function initGlobalEnvironment(_0x1a2fbe){const _0x40123c=a55_0x5e6172,{initEnv:_0x270373}=await import(_0x40123c(0x144));_0x270373(_0x1a2fbe[_0x40123c(0x12f)]);const {initDomains:_0x5b1d4e}=await import(_0x40123c(0x13e));_0x5b1d4e({'apiDomain':_0x1a2fbe[_0x40123c(0x107)][_0x40123c(0x11f)]||_0x1a2fbe[_0x40123c(0x107)][_0x40123c(0x11d)]||undefined,'userDomain':_0x1a2fbe[_0x40123c(0x107)][_0x40123c(0x148)]||undefined,'runtimeDomain':_0x1a2fbe[_0x40123c(0x107)][_0x40123c(0x10f)]||undefined,'skillHubDomain':_0x1a2fbe[_0x40123c(0x107)][_0x40123c(0x14c)]||undefined});}export function getProjectConfigPath(){const _0x51661d=a55_0x5e6172;return resolveConfigPath(process[_0x51661d(0x13b)]());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function inspectCliConfigJsonFile(_0x13e9be){const _0x24c6f7=a55_0x5e6172;if(!existsSync(_0x13e9be))return{'status':_0x24c6f7(0x143)};try{const _0x552d41=readFileSync(_0x13e9be,{'encoding':_0x24c6f7(0x109)});if(!_0x552d41?.[_0x24c6f7(0x103)]())return{'status':_0x24c6f7(0x125)};const _0x3c4525=JSON[_0x24c6f7(0x112)](_0x552d41);return{'status':'ok','data':_0x3c4525};}catch(_0x139caa){return{'status':_0x24c6f7(0x14d),'message':_0x139caa instanceof Error?_0x139caa[_0x24c6f7(0x10c)]:String(_0x139caa)};}}export function loadRawConfigLayers(_0x415fe2){const _0x12d37b=a55_0x5e6172;let _0x5262af={},_0x4da302={},_0x53c91f,_0xa2dbc6;try{_0x53c91f=resolveConfigPath(homedir());if(_0x53c91f){const _0x4c8aca=readFileSync(_0x53c91f,{'encoding':_0x12d37b(0x109)});if(_0x4c8aca)_0x5262af=JSON[_0x12d37b(0x112)](_0x4c8aca);}}catch{}try{const _0x3e4b21=_0x415fe2||process[_0x12d37b(0x13b)]();_0xa2dbc6=resolveConfigPath(_0x3e4b21);if(_0xa2dbc6){const _0xbacee6=readFileSync(_0xa2dbc6,{'encoding':_0x12d37b(0x109)});if(_0xbacee6)_0x4da302=JSON[_0x12d37b(0x112)](_0xbacee6);}}catch{}return{'globalPath':_0x53c91f,'projectPath':_0xa2dbc6,'globalConfig':_0x5262af,'projectConfig':_0x4da302};}function mergeRawConfigLayers(_0x2efb26){const _0x401397=a55_0x5e6172,{globalConfig:_0x3a3267,projectConfig:_0x24dc6f}=_0x2efb26;if(_0x24dc6f['inherit']===![]){const _0x26786a={..._0x24dc6f};return delete _0x26786a['inherit'],_0x26786a;}const _0x59be83={..._0x3a3267,..._0x24dc6f};if(_0x401397(0x126)in _0x24dc6f)_0x59be83[_0x401397(0x126)]=_0x24dc6f['defaultApp'];else _0x3a3267[_0x401397(0x126)]&&(_0x59be83[_0x401397(0x126)]=_0x3a3267[_0x401397(0x126)]);return _0x59be83;}export function isInProject(){return!!getProjectConfigPath();}export function readRawConfig(_0x396d8e){return mergeRawConfigLayers(loadRawConfigLayers(_0x396d8e));}export function readRawConfigWithLayers(_0x1801d5){const _0x3840a0=loadRawConfigLayers(_0x1801d5);return{'config':mergeRawConfigLayers(_0x3840a0),'layers':_0x3840a0};}export function resolveDefaultAppSource(_0x320f1c){const _0x2dfa7a=a55_0x5e6172;if(_0x2dfa7a(0x126)in _0x320f1c['projectConfig'])return _0x2dfa7a(0x146);if(_0x320f1c[_0x2dfa7a(0x108)][_0x2dfa7a(0x110)]===![])return null;if(_0x320f1c[_0x2dfa7a(0x131)][_0x2dfa7a(0x126)])return _0x2dfa7a(0x115);return null;}function a55_0x19a8(){const _0x229dc6=['app','runtimeDomain','inherit','APPCODE','parse','appcode','36vQshfU','global','setRawCommand','write','top-level','setRawMode','find','daily','true','host','206619naJZGG','apiDomain','337885JWcOzw','format','locale','EACCES','setLogPath','empty','defaultApp','17573410KEYnvS','PAGE_SIZE','code','high-risk-write','12fKytBI','values','4812qAPeWE','maxRisk','env','explicit','globalConfig','106711PezREy','isTTY','configFileNames','isRaw','30MkmrPw','95878vdvpFN','online','306RmLnXI','EPERM','cwd','APP','accessKey','./constant/domain.js','nonInteractive','ACCESS_KEY','cache','3630568mfxNNx','missing','./constant/env.js','apps','project','stdout','userDomain','join','.tmp','riskLevel','skillHubDomain','error','argv','EXDEV','production','some','FORMAT','development','trim','object','string','4752762YHclsy','raw','projectConfig','utf8','pageSize','VERBOSE','message','stdin'];a55_0x19a8=function(){return _0x229dc6;};return a55_0x19a8();}function buildConfig(_0x4ed7f7,_0x20118b){const _0x730d2e=a55_0x5e6172,_0x10ca48=_0x4ed7f7[_0x730d2e(0x126)]||undefined,_0x2bd632=_0x20118b[_0x730d2e(0x10e)]||env(_0x730d2e(0x13c))||undefined,_0x43e96c=_0x2bd632||_0x10ca48||undefined,_0x41c7ab=env(_0x730d2e(0x140))||_0x4ed7f7[_0x730d2e(0x13d)]||undefined,_0x33cf48=_0x20118b[_0x730d2e(0x12f)]||env('ENV')||_0x4ed7f7[_0x730d2e(0x12f)]||DEFAULT_CONFIG_VALUES[_0x730d2e(0x12f)],_0x5693b5=normalizeEnv(String(_0x33cf48)),_0x4b18ee=isDaily(_0x5693b5)?'daily':isDev(_0x5693b5)?_0x730d2e(0x153):_0x730d2e(0x150),_0x4d3b1e=resolveLocalAppAliasCode(_0x4ed7f7,_0x43e96c),_0x4abab0=resolveCachedAppCode(_0x43e96c,_0x4b18ee,_0x41c7ab),_0x433a42=typeof _0x20118b['appcode']===_0x730d2e(0x105)?_0x20118b[_0x730d2e(0x113)]:undefined,_0x310ead=env(_0x730d2e(0x111)),_0x237f81=_0x2bd632?undefined:_0x4ed7f7['appcode']||_0x4ed7f7['app']||undefined,_0x3e5085=_0x433a42||_0x310ead||_0x4d3b1e||_0x4abab0||_0x237f81||undefined,_0x47f70d=_0x433a42?_0x730d2e(0x130):_0x310ead?_0x730d2e(0x12f):_0x4d3b1e?'local-alias':_0x4abab0?_0x730d2e(0x141):_0x237f81?_0x730d2e(0x118):undefined,_0x4a947d=_0x4ed7f7[_0x730d2e(0x122)]||DEFAULT_CONFIG_VALUES['locale'],_0x4c6574=undefined,_0x43672b=_0x20118b['format']||env(_0x730d2e(0x152))||_0x4ed7f7[_0x730d2e(0x121)],_0x32fef2=normalizeLegacyOutputFormat(_0x43672b),_0x2e706e=env(_0x730d2e(0x128))||_0x4ed7f7[_0x730d2e(0x10a)],_0x265cfc=_0x2e706e?Number(_0x2e706e)||undefined:undefined,_0x2efca3=_0x4ed7f7[_0x730d2e(0x14b)]||_0x4ed7f7[_0x730d2e(0x12e)],_0x42fb06=_0x2efca3==='read'||_0x2efca3===_0x730d2e(0x117)||_0x2efca3===_0x730d2e(0x12a)?_0x2efca3:DEFAULT_CONFIG_VALUES[_0x730d2e(0x14b)],_0x422c38=env(_0x730d2e(0x10b)),_0x1a642d=_0x422c38==='1'||_0x422c38==='true';return{'appCode':typeof _0x3e5085===_0x730d2e(0x105)&&_0x3e5085[_0x730d2e(0x103)]()?_0x3e5085[_0x730d2e(0x103)]():undefined,'appCodeSource':_0x47f70d,'env':_0x4b18ee,'locale':_0x4a947d,'cookie':_0x4c6574,'accessKey':_0x41c7ab,'format':_0x32fef2,'pageSize':_0x265cfc,'riskLevel':_0x42fb06,'verbose':_0x1a642d,'defaultApp':_0x10ca48,'currentApp':typeof _0x43e96c===_0x730d2e(0x105)?_0x43e96c:undefined,'raw':_0x4ed7f7};}function env(_0x6b1db8){return productEnv(_0x6b1db8);}async function buildAuth(_0x43e538){const _0x651790=a55_0x5e6172,_0x42a4d4='',_0x58c7bc=!!_0x43e538[_0x651790(0x13d)];return{'cookie':_0x42a4d4,'isLoggedIn':_0x58c7bc,async 'getOrLogin'(){if(_0x58c7bc)return _0x42a4d4;throw CliErrors['authRequired']();}};}
1
+ const a55_0xa0676c=a55_0x5595;(function(_0x160c07,_0x1f7c5c){const _0x3b9276=a55_0x5595,_0x119ce0=_0x160c07();while(!![]){try{const _0x4b39d5=-parseInt(_0x3b9276(0x178))/0x1*(-parseInt(_0x3b9276(0x14f))/0x2)+-parseInt(_0x3b9276(0x14a))/0x3+parseInt(_0x3b9276(0x171))/0x4*(-parseInt(_0x3b9276(0x15b))/0x5)+parseInt(_0x3b9276(0x13f))/0x6*(-parseInt(_0x3b9276(0x162))/0x7)+-parseInt(_0x3b9276(0x13e))/0x8+-parseInt(_0x3b9276(0x155))/0x9+parseInt(_0x3b9276(0x172))/0xa*(parseInt(_0x3b9276(0x15d))/0xb);if(_0x4b39d5===_0x1f7c5c)break;else _0x119ce0['push'](_0x119ce0['shift']());}catch(_0x465ecb){_0x119ce0['push'](_0x119ce0['shift']());}}}(a55_0xebc4,0x499ea));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';function a55_0xebc4(){const _0x1882d0=['code','61071RWcECb','object','riskLevel','app','setRawMode','153276UgZMag','utf8','cache','EACCES','ACCESS_KEY','PAGE_SIZE','5164047hOxFaG','cwd','project','./constant/env.js','userDomain','stdin','5wdvpCr','apps','102113jcZfiU','values','string','write','FORMAT','7MvvCxn','parse','globalConfig','global','newConfigFileName','runtimeDomain','projectConfig','nonInteractive','daily','inherit','skillHubDomain','isTTY','configFileNames','EPERM','accessKey','1704692GeeFID','1670BeqDHZ','true','format','VERBOSE','EXDEV','find','5rRqVhz','some','setRawCommand','online','appcode','production','raw','env','argv','message','ENV','isRaw','1727872LJVeyy','2373648CrJJoo','host','./constant/domain.js','locale','authRequired','trim','error','stringify','defaultApp','.tmp'];a55_0xebc4=function(){return _0x1882d0;};return a55_0xebc4();}import{normalizeLegacyOutputFormat}from'./framework/types.js';import{resolveCachedAppCode}from'./commands/app/cache.js';export{AUTH_MODE,isAuthMode}from'./constant/auth-mode.js';const CONFIG_NAMES=PRODUCT_CONFIG[a55_0xa0676c(0x16e)];export const NEW_CONFIG_NAME=PRODUCT_CONFIG[a55_0xa0676c(0x166)];function resolveConfigPath(_0x51ba19){for(const _0x1bd411 of CONFIG_NAMES){const _0x41d53a=resolve(_0x51ba19,_0x1bd411);if(existsSync(_0x41d53a))return _0x41d53a;}return undefined;}export function resolveWriteConfigPath(_0x3b1451){const _0x4e96ff=a55_0xa0676c,_0x39c7eb=_0x3b1451===_0x4e96ff(0x157)?process[_0x4e96ff(0x156)]():homedir(),_0x2d05f7=resolveConfigPath(_0x39c7eb);return _0x2d05f7??resolve(_0x39c7eb,NEW_CONFIG_NAME);}export function readConfigFile(_0x4d1bab){const _0x89ac1=a55_0xa0676c;try{if(existsSync(_0x4d1bab)){const _0x410463=readFileSync(_0x4d1bab,{'encoding':_0x89ac1(0x150)});if(_0x410463){const _0x19f74c=JSON[_0x89ac1(0x163)](_0x410463);return migrateOnlineEnv(_0x4d1bab,_0x19f74c),_0x19f74c;}}}catch{}return{};}function migrateOnlineEnv(_0xdc9fd1,_0x2608b8){const _0x2d08ad=a55_0xa0676c;let _0x5c12f6=![];_0x2608b8['env']===_0x2d08ad(0x17b)&&(_0x2608b8[_0x2d08ad(0x139)]=_0x2d08ad(0x137),_0x5c12f6=!![]);if(_0x2608b8['apps']&&typeof _0x2608b8[_0x2d08ad(0x15c)]===_0x2d08ad(0x14b))for(const _0x5b9006 of Object[_0x2d08ad(0x15e)](_0x2608b8[_0x2d08ad(0x15c)])){_0x5b9006&&_0x5b9006['env']===_0x2d08ad(0x17b)&&(_0x5b9006[_0x2d08ad(0x139)]=_0x2d08ad(0x137),_0x5c12f6=!![]);}if(_0x5c12f6)try{writeConfigFile(_0xdc9fd1,_0x2608b8);}catch{}}export function writeConfigFile(_0x3dc19,_0x3a2db5){const _0x31e307=a55_0xa0676c,_0xced064=dirname(_0x3dc19);!existsSync(_0xced064)&&mkdirSync(_0xced064,{'recursive':!![]});const _0x47e4bb=_0x3dc19+_0x31e307(0x148);try{writeFileSync(_0x47e4bb,JSON[_0x31e307(0x146)](_0x3a2db5,null,0x2)+'\x0a',{'encoding':_0x31e307(0x150),'mode':0x180});try{renameSync(_0x47e4bb,_0x3dc19);}catch(_0x1ef2a5){if(_0x1ef2a5[_0x31e307(0x149)]===_0x31e307(0x16f)||_0x1ef2a5[_0x31e307(0x149)]===_0x31e307(0x176)||_0x1ef2a5[_0x31e307(0x149)]===_0x31e307(0x152)){writeFileSync(_0x3dc19,JSON['stringify'](_0x3a2db5,null,0x2)+'\x0a',{'encoding':'utf8'});try{unlinkSync(_0x47e4bb);}catch{}}else throw _0x1ef2a5;}}catch(_0x4046e1){try{unlinkSync(_0x47e4bb);}catch{}throw _0x4046e1;}}export function isNonInteractiveMode(_0xf061e4){const _0x275e9f=a55_0xa0676c;return!!(_0xf061e4[_0x275e9f(0x169)]||_0xf061e4['ci']||productEnvNames('CI')[_0x275e9f(0x179)](_0x5390e1=>process.env[_0x5390e1]===_0x275e9f(0x173))||process.env.CI===_0x275e9f(0x173)||!process['stdout'][_0x275e9f(0x16d)]||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x1d99af=a55_0xa0676c;if(!process[_0x1d99af(0x15a)]['isTTY'])return![];try{const _0x480704=process[_0x1d99af(0x15a)][_0x1d99af(0x13d)];return process[_0x1d99af(0x15a)][_0x1d99af(0x14e)](!![]),process[_0x1d99af(0x15a)][_0x1d99af(0x14e)](_0x480704??![]),!![];}catch{return![];}}export async function createContext(_0x3cd718){const _0x12c12e=a55_0xa0676c,_0x10d4c5=readRawConfig(),_0x7565f3=buildConfig(_0x10d4c5,_0x3cd718);await initGlobalEnvironment(_0x7565f3);const {getUserDomain:_0x1af230,getApiDomain:_0x11131c}=await import(_0x12c12e(0x141)),_0x52e651={'apiDomain':_0x11131c(),'userDomain':_0x1af230()},_0x136eec=await buildAuth(_0x7565f3);logger['setLogPath'](process[_0x12c12e(0x156)]());const _0x2bf9ce=(CLI_BIN_NAME+'\x20'+process[_0x12c12e(0x13a)]['slice'](0x2)['join']('\x20'))[_0x12c12e(0x144)]();logger[_0x12c12e(0x17a)](_0x2bf9ce);const _0x280e2b=isNonInteractiveMode(_0x3cd718);return{'config':_0x7565f3,'auth':_0x136eec,'logger':logger,'env':_0x52e651,'nonInteractive':_0x280e2b};}export function buildConfigFromFlags(_0x338285){return buildConfig(readRawConfig(),_0x338285);}export function getLocalAppAliases(_0x2652c5){const _0x26b316=a55_0xa0676c;return _0x2652c5[_0x26b316(0x15c)]&&typeof _0x2652c5['apps']===_0x26b316(0x14b)?_0x2652c5[_0x26b316(0x15c)]:{};}export function resolveLocalAppAliasCode(_0x4422b6,_0x324d10){const _0x99b99e=a55_0xa0676c;if(!_0x324d10)return undefined;const _0x534005=getLocalAppAliases(_0x4422b6)[_0x324d10],_0x2b812d=_0x534005?.[_0x99b99e(0x17c)];return typeof _0x2b812d===_0x99b99e(0x15f)&&_0x2b812d[_0x99b99e(0x144)]()?_0x2b812d[_0x99b99e(0x144)]():undefined;}export function readAppCodeFromConfig(){const _0x3451c4=a55_0xa0676c,_0x144685=readRawConfig(),_0x4ffa61=_0x144685[_0x3451c4(0x17c)]??_0x144685[_0x3451c4(0x14d)];if(typeof _0x4ffa61===_0x3451c4(0x15f)&&_0x4ffa61['trim']())return _0x4ffa61['trim']();const _0x5dffc2=resolveLocalAppAliasCode(_0x144685,typeof _0x144685[_0x3451c4(0x147)]==='string'?_0x144685[_0x3451c4(0x147)]:undefined);if(_0x5dffc2)return _0x5dffc2;const _0x9ec7f2=normalizeEnv(String(_0x144685['env']||_0x3451c4(0x137))),_0x5a2394=isDaily(_0x9ec7f2)?_0x3451c4(0x16a):isDev(_0x9ec7f2)?'development':_0x3451c4(0x137),_0x272b66=resolveCachedAppCode(typeof _0x144685[_0x3451c4(0x147)]===_0x3451c4(0x15f)?_0x144685['defaultApp']:undefined,_0x5a2394,typeof _0x144685['accessKey']===_0x3451c4(0x15f)?_0x144685[_0x3451c4(0x170)]:undefined);if(_0x272b66)return _0x272b66;const _0x5243d6=Object[_0x3451c4(0x15e)](getLocalAppAliases(_0x144685))[_0x3451c4(0x177)](_0x1ed7b4=>_0x1ed7b4?.[_0x3451c4(0x17c)]);return typeof _0x5243d6?.['appcode']===_0x3451c4(0x15f)&&_0x5243d6[_0x3451c4(0x17c)]['trim']()?_0x5243d6[_0x3451c4(0x17c)][_0x3451c4(0x144)]():undefined;}export function readScopedConfig(_0x2c6926){const _0x5bcb90=a55_0xa0676c,_0x495e52=_0x2c6926[_0x5bcb90(0x165)]?'global':_0x5bcb90(0x157);return readConfigFile(resolveWriteConfigPath(_0x495e52));}export function writeScopedConfig(_0x23d10f,_0x2c4a99){const _0xa7af84=a55_0xa0676c,_0x5effe5=_0x2c4a99[_0xa7af84(0x165)]?_0xa7af84(0x165):_0xa7af84(0x157);writeConfigFile(resolveWriteConfigPath(_0x5effe5),_0x23d10f);}export async function initGlobalEnvironment(_0x5e9ae5){const _0x211093=a55_0xa0676c,{initEnv:_0x5256b4}=await import(_0x211093(0x158));_0x5256b4(_0x5e9ae5[_0x211093(0x139)]);const {initDomains:_0x3b9f65}=await import(_0x211093(0x141));_0x3b9f65({'apiDomain':_0x5e9ae5[_0x211093(0x138)]['apiDomain']||_0x5e9ae5[_0x211093(0x138)][_0x211093(0x140)]||undefined,'userDomain':_0x5e9ae5[_0x211093(0x138)][_0x211093(0x159)]||undefined,'runtimeDomain':_0x5e9ae5[_0x211093(0x138)][_0x211093(0x167)]||undefined,'skillHubDomain':_0x5e9ae5[_0x211093(0x138)][_0x211093(0x16c)]||undefined});}export function getProjectConfigPath(){return resolveConfigPath(process['cwd']());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}function a55_0x5595(_0x35b3c0,_0x2d5ea0){_0x35b3c0=_0x35b3c0-0x137;const _0xebc4bf=a55_0xebc4();let _0x55959c=_0xebc4bf[_0x35b3c0];return _0x55959c;}export function inspectCliConfigJsonFile(_0x22170f){const _0x194d0b=a55_0xa0676c;if(!existsSync(_0x22170f))return{'status':'missing'};try{const _0x41e651=readFileSync(_0x22170f,{'encoding':_0x194d0b(0x150)});if(!_0x41e651?.[_0x194d0b(0x144)]())return{'status':'empty'};const _0x441249=JSON[_0x194d0b(0x163)](_0x41e651);return{'status':'ok','data':_0x441249};}catch(_0x58500e){return{'status':_0x194d0b(0x145),'message':_0x58500e instanceof Error?_0x58500e[_0x194d0b(0x13b)]:String(_0x58500e)};}}export function loadRawConfigLayers(_0x47fd0a){const _0x33d53a=a55_0xa0676c;let _0x203c76={},_0x270834={},_0x3a1842,_0x4ed0f4;try{_0x3a1842=resolveConfigPath(homedir());if(_0x3a1842){const _0x32f0ee=readFileSync(_0x3a1842,{'encoding':'utf8'});if(_0x32f0ee)_0x203c76=JSON[_0x33d53a(0x163)](_0x32f0ee);}}catch{}try{const _0x35da08=_0x47fd0a||process[_0x33d53a(0x156)]();_0x4ed0f4=resolveConfigPath(_0x35da08);if(_0x4ed0f4){const _0x568411=readFileSync(_0x4ed0f4,{'encoding':_0x33d53a(0x150)});if(_0x568411)_0x270834=JSON[_0x33d53a(0x163)](_0x568411);}}catch{}return{'globalPath':_0x3a1842,'projectPath':_0x4ed0f4,'globalConfig':_0x203c76,'projectConfig':_0x270834};}function mergeRawConfigLayers(_0x55fc04){const _0x51cef4=a55_0xa0676c,{globalConfig:_0x3d653b,projectConfig:_0x44d580}=_0x55fc04;if(_0x44d580[_0x51cef4(0x16b)]===![]){const _0x32addb={..._0x44d580};return delete _0x32addb[_0x51cef4(0x16b)],_0x32addb;}const _0x51a84d={..._0x3d653b,..._0x44d580};if(_0x51cef4(0x147)in _0x44d580)_0x51a84d[_0x51cef4(0x147)]=_0x44d580[_0x51cef4(0x147)];else _0x3d653b[_0x51cef4(0x147)]&&(_0x51a84d['defaultApp']=_0x3d653b['defaultApp']);return _0x51a84d;}export function isInProject(){return!!getProjectConfigPath();}export function readRawConfig(_0x5bb0b4){return mergeRawConfigLayers(loadRawConfigLayers(_0x5bb0b4));}export function readRawConfigWithLayers(_0x12acda){const _0x5a7b19=loadRawConfigLayers(_0x12acda);return{'config':mergeRawConfigLayers(_0x5a7b19),'layers':_0x5a7b19};}export function resolveDefaultAppSource(_0x2067da){const _0x254fe5=a55_0xa0676c;if('defaultApp'in _0x2067da[_0x254fe5(0x168)])return _0x254fe5(0x157);if(_0x2067da[_0x254fe5(0x168)]['inherit']===![])return null;if(_0x2067da[_0x254fe5(0x164)][_0x254fe5(0x147)])return _0x254fe5(0x165);return null;}function buildConfig(_0x1c96bb,_0x179419){const _0x54ec24=a55_0xa0676c,_0x239ee0=_0x1c96bb[_0x54ec24(0x147)]||undefined,_0x3eebe8=_0x179419['app']||env('APP')||undefined,_0x136014=_0x3eebe8||_0x239ee0||undefined,_0x3006eb=env(_0x54ec24(0x153))||_0x1c96bb['accessKey']||undefined,_0x55f8cf=_0x179419[_0x54ec24(0x139)]||env(_0x54ec24(0x13c))||_0x1c96bb['env']||DEFAULT_CONFIG_VALUES[_0x54ec24(0x139)],_0x4903a2=normalizeEnv(String(_0x55f8cf)),_0x3663d6=isDaily(_0x4903a2)?_0x54ec24(0x16a):isDev(_0x4903a2)?'development':_0x54ec24(0x137),_0xcbc988=resolveLocalAppAliasCode(_0x1c96bb,_0x136014),_0x408ed0=resolveCachedAppCode(_0x136014,_0x3663d6,_0x3006eb),_0x1e3d88=typeof _0x179419[_0x54ec24(0x17c)]===_0x54ec24(0x15f)?_0x179419['appcode']:undefined,_0x36a46e=env('APPCODE'),_0x46e542=_0x3eebe8?undefined:_0x1c96bb[_0x54ec24(0x17c)]||_0x1c96bb[_0x54ec24(0x14d)]||undefined,_0x2db4a3=_0x1e3d88||_0x36a46e||_0xcbc988||_0x408ed0||_0x46e542||undefined,_0xc0f57=_0x1e3d88?'explicit':_0x36a46e?'env':_0xcbc988?'local-alias':_0x408ed0?_0x54ec24(0x151):_0x46e542?'top-level':undefined,_0x3d4a69=_0x1c96bb[_0x54ec24(0x142)]||DEFAULT_CONFIG_VALUES[_0x54ec24(0x142)],_0x1957ce=undefined,_0x1c2717=_0x179419[_0x54ec24(0x174)]||env(_0x54ec24(0x161))||_0x1c96bb[_0x54ec24(0x174)],_0x41d25d=normalizeLegacyOutputFormat(_0x1c2717),_0x478461=env(_0x54ec24(0x154))||_0x1c96bb['pageSize'],_0x1dbb03=_0x478461?Number(_0x478461)||undefined:undefined,_0x1730fb=_0x1c96bb['riskLevel']||_0x1c96bb['maxRisk'],_0x2c8eab=_0x1730fb==='read'||_0x1730fb===_0x54ec24(0x160)||_0x1730fb==='high-risk-write'?_0x1730fb:DEFAULT_CONFIG_VALUES[_0x54ec24(0x14c)],_0x4b028b=env(_0x54ec24(0x175)),_0x5f46e9=_0x4b028b==='1'||_0x4b028b==='true';return{'appCode':typeof _0x2db4a3===_0x54ec24(0x15f)&&_0x2db4a3['trim']()?_0x2db4a3[_0x54ec24(0x144)]():undefined,'appCodeSource':_0xc0f57,'env':_0x3663d6,'locale':_0x3d4a69,'cookie':_0x1957ce,'accessKey':_0x3006eb,'format':_0x41d25d,'pageSize':_0x1dbb03,'riskLevel':_0x2c8eab,'verbose':_0x5f46e9,'defaultApp':_0x239ee0,'currentApp':typeof _0x136014===_0x54ec24(0x15f)?_0x136014:undefined,'raw':_0x1c96bb};}function env(_0x5055c7){return productEnv(_0x5055c7);}async function buildAuth(_0x14d3f2){const _0x322175=a55_0xa0676c,_0x1d1899='',_0x36dee3=!!_0x14d3f2[_0x322175(0x170)];return{'cookie':_0x1d1899,'isLoggedIn':_0x36dee3,async 'getOrLogin'(){const _0x140068=_0x322175;if(_0x36dee3)return _0x1d1899;throw CliErrors[_0x140068(0x143)]();}};}
@@ -1 +1 @@
1
- (function(_0x3076da,_0x3d72b8){const _0x4a9256=a56_0x4100,_0xa153f7=_0x3076da();while(!![]){try{const _0x189e90=parseInt(_0x4a9256(0x225))/0x1+-parseInt(_0x4a9256(0x1c1))/0x2+-parseInt(_0x4a9256(0x202))/0x3*(-parseInt(_0x4a9256(0x214))/0x4)+parseInt(_0x4a9256(0x1c7))/0x5+parseInt(_0x4a9256(0x200))/0x6+parseInt(_0x4a9256(0x215))/0x7*(-parseInt(_0x4a9256(0x244))/0x8)+parseInt(_0x4a9256(0x1c8))/0x9*(-parseInt(_0x4a9256(0x1d5))/0xa);if(_0x189e90===_0x3d72b8)break;else _0xa153f7['push'](_0xa153f7['shift']());}catch(_0xf6314c){_0xa153f7['push'](_0xa153f7['shift']());}}}(a56_0x174a,0x4fa5d));function a56_0x4100(_0x2122ec,_0x4fd012){_0x2122ec=_0x2122ec-0x1c1;const _0x174a34=a56_0x174a();let _0x4100ad=_0x174a34[_0x2122ec];return _0x4100ad;}import{getApiDomain,getRuntimeDomain,getSkillHubDomain}from'../constant/domain.js';import{PRODUCT_CONFIG}from'../constant/product.js';import{CliErrors}from'../errors.js';import{extractList}from'../framework/response.js';let _activeAK;export function setActiveAK(_0x2655af){_activeAK=_0x2655af||undefined;}export function clearActiveAK(){_activeAK=undefined;}async function apiRequest(_0x275b31,_0x4a20dc={}){const _0x8fc121=a56_0x4100,{method:method=_0x8fc121(0x20d),body:_0x5578a4,headers:headers={},timeout:timeout=0x7530}=_0x4a20dc,_0x3a0a05=_activeAK,_0x284354=getRuntimeDomain();if(!_0x3a0a05)throw CliErrors[_0x8fc121(0x229)](_0x8fc121(0x22c)+PRODUCT_CONFIG[_0x8fc121(0x20a)]+'.');const _0x2ede55=''+_0x284354+_0x275b31,_0x527aa7={'X-User-AK':_0x3a0a05},_0x2d5993=new AbortController(),_0x212ea6=setTimeout(()=>_0x2d5993[_0x8fc121(0x1ec)](),timeout);try{const _0x4cd824=await fetch(_0x2ede55,{'method':method,'headers':{'Content-Type':_0x8fc121(0x212),'X-Invoke-Source':PRODUCT_CONFIG[_0x8fc121(0x209)],..._0x527aa7,...headers},'body':_0x5578a4?JSON[_0x8fc121(0x1f9)](_0x5578a4):undefined,'signal':_0x2d5993[_0x8fc121(0x221)]});let _0x170c80;try{_0x170c80=await _0x4cd824[_0x8fc121(0x1e4)]();}catch{throw CliErrors[_0x8fc121(0x1eb)](_0x8fc121(0x1d6)+_0x4cd824[_0x8fc121(0x1dd)]+')',_0x4cd824[_0x8fc121(0x1dd)]>=0x190?_0x8fc121(0x1fe):undefined);}if(!_0x4cd824['ok']||_0x170c80[_0x8fc121(0x1d4)]===![])throw CliErrors[_0x8fc121(0x1eb)](_0x170c80[_0x8fc121(0x1d9)]||_0x170c80[_0x8fc121(0x208)]||_0x8fc121(0x210)+_0x4cd824[_0x8fc121(0x1dd)],_0x170c80[_0x8fc121(0x211)]?_0x8fc121(0x203)+_0x170c80['errorCode']:undefined);return _0x170c80;}catch(_0x84b345){if(_0x84b345 instanceof Error&&_0x84b345[_0x8fc121(0x1f7)]===_0x8fc121(0x1f6))throw CliErrors[_0x8fc121(0x1eb)](_0x8fc121(0x20c)+_0x2ede55);throw _0x84b345;}finally{clearTimeout(_0x212ea6);}}async function apiBinaryRequest(_0x334fc6,_0x2164c0={}){const _0x7cf332=a56_0x4100,{method:method=_0x7cf332(0x20d),headers:headers={},timeout:timeout=0x7530}=_0x2164c0,_0x6d3640=_activeAK,_0x583ace=getRuntimeDomain();if(!_0x6d3640)throw CliErrors[_0x7cf332(0x229)](_0x7cf332(0x22c)+PRODUCT_CONFIG[_0x7cf332(0x20a)]+'.');const _0x5b3f74=''+_0x583ace+_0x334fc6,_0x4bb86b=new AbortController(),_0x3ba660=setTimeout(()=>_0x4bb86b['abort'](),timeout);try{const _0x50c56f=await fetch(_0x5b3f74,{'method':method,'headers':{'X-Invoke-Source':PRODUCT_CONFIG['invokeSource'],'X-User-AK':_0x6d3640,...headers},'signal':_0x4bb86b['signal']});if(!_0x50c56f['ok']){let _0x20796e;try{const _0x54fa50=await _0x50c56f[_0x7cf332(0x1e4)]();_0x20796e=_0x54fa50[_0x7cf332(0x1d9)]||_0x54fa50[_0x7cf332(0x208)]||_0x54fa50[_0x7cf332(0x211)];}catch{_0x20796e=await _0x50c56f[_0x7cf332(0x1ee)]()['catch'](()=>undefined);}throw CliErrors['apiError'](_0x20796e||_0x7cf332(0x210)+_0x50c56f[_0x7cf332(0x1dd)],_0x7cf332(0x1ce)+_0x5b3f74);}return Buffer[_0x7cf332(0x1ff)](await _0x50c56f['arrayBuffer']());}catch(_0x2249ea){if(_0x2249ea instanceof Error&&_0x2249ea[_0x7cf332(0x1f7)]===_0x7cf332(0x1f6))throw CliErrors[_0x7cf332(0x1eb)]('Request\x20timeout:\x20'+_0x5b3f74);throw _0x2249ea;}finally{clearTimeout(_0x3ba660);}}async function toolboxRequest(_0x17433b,_0x281848,_0x30f3ae={}){const _0x2be090=a56_0x4100,{method:method=_0x2be090(0x20d),headers:headers={},timeout:timeout=0x7530}=_0x30f3ae,_0x5a7688=_activeAK;if(!_0x5a7688)throw CliErrors[_0x2be090(0x229)](_0x2be090(0x22c)+PRODUCT_CONFIG[_0x2be090(0x20a)]+'.');const _0x312094=getApiDomain()[_0x2be090(0x1fa)](/\/$/,''),_0x3f60b1=new URL(_0x17433b,_0x312094+_0x2be090(0x236));if(_0x281848)for(const [_0x537421,_0x3c3365]of Object[_0x2be090(0x217)](_0x281848)){_0x3c3365!==undefined&&_0x3c3365!==null&&_0x3f60b1['searchParams']['set'](_0x537421,String(_0x3c3365));}const _0x4bc55e=new AbortController(),_0x46d1ea=setTimeout(()=>_0x4bc55e[_0x2be090(0x1ec)](),timeout);try{const _0x3f6670=await fetch(_0x3f60b1,{'method':method,'headers':{'Content-Type':'application/json','X-Invoke-Source':PRODUCT_CONFIG['invokeSource'],'X-User-AK':_0x5a7688,...headers},'signal':_0x4bc55e[_0x2be090(0x221)]});let _0x2c6c02;try{_0x2c6c02=await _0x3f6670[_0x2be090(0x1e4)]();}catch{throw CliErrors[_0x2be090(0x1eb)]('Toolbox\x20returned\x20non-JSON\x20response\x20(HTTP\x20'+_0x3f6670['status']+')',_0x3f6670[_0x2be090(0x1dd)]>=0x190?_0x2be090(0x1fe):undefined);}if(!_0x3f6670['ok']){const _0x3f58af=_0x2c6c02&&typeof _0x2c6c02===_0x2be090(0x230)?_0x2c6c02:{};throw CliErrors[_0x2be090(0x1eb)](_0x3f58af[_0x2be090(0x1d9)]||_0x3f58af[_0x2be090(0x208)]||_0x2be090(0x1c4)+_0x3f6670['status'],_0x3f58af['errorCode']?_0x2be090(0x224)+_0x3f58af[_0x2be090(0x211)]:undefined);}if(_0x2c6c02&&typeof _0x2c6c02===_0x2be090(0x230)&&'success'in _0x2c6c02&&typeof _0x2c6c02[_0x2be090(0x1d4)]===_0x2be090(0x227)){const _0x3b9928=_0x2c6c02;if(!_0x3b9928[_0x2be090(0x1d4)])throw CliErrors['apiError'](_0x3b9928['errorMsg']||_0x3b9928[_0x2be090(0x208)]||_0x2be090(0x1f1),_0x3b9928['errorCode']?'Toolbox\x20error\x20code:\x20'+_0x3b9928[_0x2be090(0x211)]:undefined);return _0x3b9928[_0x2be090(0x1d1)];}return _0x2c6c02;}catch(_0xf3e494){if(_0xf3e494 instanceof Error&&_0xf3e494['name']===_0x2be090(0x1f6))throw CliErrors[_0x2be090(0x1eb)](_0x2be090(0x20c)+_0x3f60b1[_0x2be090(0x1f0)]());throw _0xf3e494;}finally{clearTimeout(_0x46d1ea);}}async function skillHubJsonRequest(_0x8ecbf8,_0x4d9787={}){const _0x2bf75f=a56_0x4100,{method:method=_0x2bf75f(0x20d),query:_0x41a0c1,body:_0x29994a,headers:headers={},timeout:timeout=0x7530}=_0x4d9787,_0x3c587e=_activeAK;if(!_0x3c587e)throw CliErrors['authRequired'](_0x2bf75f(0x22c)+PRODUCT_CONFIG['newConfigFileName']+'.');const _0x107a81=getSkillHubDomain()[_0x2bf75f(0x1fa)](/\/$/,''),_0xc51d44=new URL(_0x8ecbf8,_0x107a81+'/');if(_0x41a0c1)for(const [_0xdde019,_0x1011bf]of Object[_0x2bf75f(0x217)](_0x41a0c1)){_0x1011bf!==undefined&&_0x1011bf!==null&&_0xc51d44[_0x2bf75f(0x20e)]['set'](_0xdde019,String(_0x1011bf));}const _0x26555e=new AbortController(),_0x27227e=setTimeout(()=>_0x26555e[_0x2bf75f(0x1ec)](),timeout);try{const _0x5aa358=await fetch(_0xc51d44['toString'](),{'method':method,'headers':{'Accept':_0x2bf75f(0x212),'X-Invoke-Source':PRODUCT_CONFIG[_0x2bf75f(0x209)],'X-User-AK':_0x3c587e,...headers},'body':_0x29994a,'signal':_0x26555e[_0x2bf75f(0x221)]});let _0x3d05cd;try{_0x3d05cd=await _0x5aa358[_0x2bf75f(0x1e4)]();}catch{throw CliErrors[_0x2bf75f(0x1eb)](_0x2bf75f(0x21a)+_0x5aa358[_0x2bf75f(0x1dd)]+')',_0x5aa358[_0x2bf75f(0x1dd)]>=0x190?_0x2bf75f(0x1fe):undefined);}const _0x2600c7=!_0x5aa358['ok']||_0x3d05cd?.[_0x2bf75f(0x1d4)]===![]||typeof _0x3d05cd?.[_0x2bf75f(0x216)]===_0x2bf75f(0x231)&&_0x3d05cd['code']>=0x190;if(_0x2600c7)throw CliErrors['apiError'](_0x3d05cd?.[_0x2bf75f(0x1d9)]||_0x3d05cd?.[_0x2bf75f(0x208)]||_0x3d05cd?.[_0x2bf75f(0x1e0)]||_0x2bf75f(0x1da)+_0x5aa358[_0x2bf75f(0x1dd)],_0x3d05cd?.[_0x2bf75f(0x211)]?'SkillHub\x20error\x20code:\x20'+_0x3d05cd['errorCode']:undefined);return _0x3d05cd?.[_0x2bf75f(0x1d1)]??_0x3d05cd;}catch(_0x1d0871){if(_0x1d0871 instanceof Error&&_0x1d0871['name']===_0x2bf75f(0x1f6))throw CliErrors[_0x2bf75f(0x1eb)](_0x2bf75f(0x20c)+_0xc51d44[_0x2bf75f(0x1f0)]());throw _0x1d0871;}finally{clearTimeout(_0x27227e);}}async function skillHubBinaryRequest(_0x15ce77,_0x10d1af={}){const _0x147c09=a56_0x4100,{query:_0x589e63,headers:headers={},timeout:timeout=0x7530}=_0x10d1af,_0x3971be=_activeAK;if(!_0x3971be)throw CliErrors[_0x147c09(0x229)](_0x147c09(0x22c)+PRODUCT_CONFIG['newConfigFileName']+'.');const _0x1c1cec=getSkillHubDomain()[_0x147c09(0x1fa)](/\/$/,''),_0x565ea4=new URL(_0x15ce77,_0x1c1cec+'/');if(_0x589e63)for(const [_0x395908,_0x4a28ff]of Object[_0x147c09(0x217)](_0x589e63)){_0x4a28ff!==undefined&&_0x4a28ff!==null&&_0x565ea4[_0x147c09(0x20e)][_0x147c09(0x23d)](_0x395908,String(_0x4a28ff));}const _0x50bb34=new AbortController(),_0x1b0ba3=setTimeout(()=>_0x50bb34[_0x147c09(0x1ec)](),timeout);try{const _0x26ec64=await fetch(_0x565ea4[_0x147c09(0x1f0)](),{'method':_0x147c09(0x20d),'headers':{'Accept':_0x147c09(0x1e3),'X-Invoke-Source':PRODUCT_CONFIG[_0x147c09(0x209)],'X-User-AK':_0x3971be,...headers},'signal':_0x50bb34[_0x147c09(0x221)]});if(!_0x26ec64['ok']){let _0x20390e;try{const _0xfb7054=await _0x26ec64[_0x147c09(0x1e4)]();_0x20390e=_0xfb7054[_0x147c09(0x1d9)]||_0xfb7054['message']||_0xfb7054[_0x147c09(0x1e0)]||_0xfb7054[_0x147c09(0x211)];}catch{_0x20390e=await _0x26ec64[_0x147c09(0x1ee)]()[_0x147c09(0x232)](()=>undefined);}throw CliErrors[_0x147c09(0x1eb)](_0x20390e||_0x147c09(0x1da)+_0x26ec64[_0x147c09(0x1dd)],_0x147c09(0x1ce)+_0x565ea4[_0x147c09(0x1f0)]());}return Buffer[_0x147c09(0x1ff)](await _0x26ec64['arrayBuffer']());}catch(_0x240bf1){if(_0x240bf1 instanceof Error&&_0x240bf1[_0x147c09(0x1f7)]===_0x147c09(0x1f6))throw CliErrors[_0x147c09(0x1eb)](_0x147c09(0x20c)+_0x565ea4[_0x147c09(0x1f0)]());throw _0x240bf1;}finally{clearTimeout(_0x1b0ba3);}}export async function getBffScriptInfo(_0x9b8bd){const _0x1c6bcc=a56_0x4100,_0x4fa218=await apiRequest(_0x1c6bcc(0x220)+_0x9b8bd);if(!_0x4fa218[_0x1c6bcc(0x1d1)])throw CliErrors[_0x1c6bcc(0x21b)](_0x1c6bcc(0x1ca)+_0x9b8bd);return _0x4fa218[_0x1c6bcc(0x1d1)];}export async function getSqlQueryInfo(_0x4b4e1d,_0x1f340d){const _0x16aa2e=a56_0x4100,_0x26ceb7=await apiRequest(_0x16aa2e(0x223),{'method':'POST','body':{'appCode':_0x4b4e1d,'currentPage':0x1,'pageSize':0x1,'sqlCode':_0x1f340d}}),_0x16bd6d=_0x26ceb7[_0x16aa2e(0x1d1)],_0x3a59db=_0x16bd6d&&typeof _0x16bd6d===_0x16aa2e(0x230)&&_0x16aa2e(0x1e7)in _0x16bd6d?_0x16bd6d['tableData']?.[0x0]:_0x16bd6d&&typeof _0x16bd6d===_0x16aa2e(0x230)&&'sqlCode'in _0x16bd6d?_0x16bd6d:undefined;if(!_0x3a59db)throw CliErrors[_0x16aa2e(0x21b)](_0x16aa2e(0x1ef)+_0x1f340d);return _0x3a59db;}function isRemoteAppItem(_0x25e87c){const _0x5f29e0=a56_0x4100;return!!_0x25e87c&&typeof _0x25e87c===_0x5f29e0(0x230)&&typeof _0x25e87c[_0x5f29e0(0x22f)]==='string'&&typeof _0x25e87c['appName']===_0x5f29e0(0x201);}function extractRemoteAppItems(_0x9d0abf){const _0x2ba944=a56_0x4100;if(Array[_0x2ba944(0x1ed)](_0x9d0abf))return _0x9d0abf[_0x2ba944(0x22a)](isRemoteAppItem);if(!_0x9d0abf||typeof _0x9d0abf!=='object')throw CliErrors['apiError'](_0x2ba944(0x213));const _0x27b559=_0x9d0abf;if(Array['isArray'](_0x27b559['tableData']))return _0x27b559['tableData']['filter'](isRemoteAppItem);if(_0x27b559[_0x2ba944(0x1d1)]&&typeof _0x27b559['data']==='object'){const _0xe4c16b=_0x27b559[_0x2ba944(0x1d1)];if(Array[_0x2ba944(0x1ed)](_0xe4c16b[_0x2ba944(0x1e7)]))return _0xe4c16b[_0x2ba944(0x1e7)][_0x2ba944(0x22a)](isRemoteAppItem);}throw CliErrors[_0x2ba944(0x1eb)](_0x2ba944(0x22e));}export async function getMyApps(){const _0x5351c0=a56_0x4100,_0x523d42=await apiRequest('/client/app/my-apps');return extractRemoteAppItems(_0x523d42[_0x5351c0(0x1d1)]);}export async function getLoginUserInfo(){const _0x5a567=a56_0x4100,_0x3b7dc6=await apiRequest(_0x5a567(0x205));if(!_0x3b7dc6[_0x5a567(0x1d1)]||typeof _0x3b7dc6['data']!=='object'||Array[_0x5a567(0x1ed)](_0x3b7dc6[_0x5a567(0x1d1)]))throw CliErrors['apiError'](_0x5a567(0x228));return _0x3b7dc6[_0x5a567(0x1d1)];}export async function listDatasets(_0x1816d1,_0x698c5){const _0x4e8b58=a56_0x4100,_0x4fe2a6=await apiRequest(_0x4e8b58(0x1e8),{'method':'POST','body':{'appCode':_0x1816d1,..._0x698c5?.[_0x4e8b58(0x216)]&&{'code':_0x698c5['code']},..._0x698c5?.[_0x4e8b58(0x1f7)]&&{'name':_0x698c5[_0x4e8b58(0x1f7)]}}});return extractList(_0x4fe2a6[_0x4e8b58(0x1d1)]);}export async function getDatasetDetail(_0x1d8d93){const _0x5cb2e8=a56_0x4100,_0x3f4464=/^\d+$/[_0x5cb2e8(0x1c2)](_0x1d8d93)?'id':_0x5cb2e8(0x216),_0xb549f2=await apiRequest(_0x5cb2e8(0x1df)+_0x3f4464+'='+_0x1d8d93);return _0xb549f2[_0x5cb2e8(0x1d1)];}export async function getDatasetSdkUsageDoc(_0x14dd43,_0x374aa2){const _0x27d114=a56_0x4100,_0x479948=await toolboxRequest(_0x27d114(0x204),{'datasetCode':_0x14dd43,'appCode':_0x374aa2});return typeof _0x479948?.[_0x27d114(0x1f8)]===_0x27d114(0x201)?_0x479948[_0x27d114(0x1f8)]:'';}export async function listRuntimeArtifacts(_0x54f4f5,_0x520d85){const _0x16d74d=a56_0x4100,_0x312c58=new URLSearchParams({'appCode':_0x54f4f5});if(_0x520d85?.['artifactType'])_0x312c58['set']('artifactType',_0x520d85[_0x16d74d(0x21e)]);if(_0x520d85?.['source'])_0x312c58[_0x16d74d(0x23d)](_0x16d74d(0x1cb),_0x520d85[_0x16d74d(0x1cb)]);if(_0x520d85?.['favorite']!==undefined)_0x312c58[_0x16d74d(0x23d)](_0x16d74d(0x1f3),String(_0x520d85[_0x16d74d(0x1f3)]));const _0x436b33=await apiRequest(_0x16d74d(0x241)+_0x312c58[_0x16d74d(0x1f0)]());return Array[_0x16d74d(0x1ed)](_0x436b33[_0x16d74d(0x1d1)])?_0x436b33['data']:[];}export async function getRuntimeArtifact(_0x5c3497,_0x5de7ba){const _0x2af92b=a56_0x4100,_0x4b2af7=await apiRequest(_0x2af92b(0x239)+_0x5c3497+_0x2af92b(0x1d0)+encodeURIComponent(_0x5de7ba));if(!_0x4b2af7['data'])throw CliErrors[_0x2af92b(0x21b)](_0x2af92b(0x21d)+_0x5c3497);return _0x4b2af7[_0x2af92b(0x1d1)];}export async function createRuntimeArtifact(_0x234f00,_0x3e5931){const _0x36f9fc=a56_0x4100,_0x2685ea=await apiRequest(_0x36f9fc(0x1e1),{'method':_0x36f9fc(0x1dc),'body':{'appCode':_0x234f00,..._0x3e5931}});return _0x2685ea[_0x36f9fc(0x1d1)];}export async function updateRuntimeArtifact(_0x5d1490,_0x22e340,_0x5b5399){const _0x57227d=a56_0x4100,_0xe686a8=await apiRequest('/client/artifact/'+_0x5d1490+_0x57227d(0x1e5),{'method':'POST','body':{'appCode':_0x22e340,..._0x5b5399}});return _0xe686a8[_0x57227d(0x1d1)];}export async function listPersonalBffs(_0x4618ef){const _0x226478=a56_0x4100,_0x243384=await apiRequest('/client/runtime-bff/personal/list?appCode='+encodeURIComponent(_0x4618ef));return Array[_0x226478(0x1ed)](_0x243384[_0x226478(0x1d1)])?_0x243384[_0x226478(0x1d1)]:[];}export async function getPersonalBff(_0xba1642,_0x2ae686){const _0x54b1cd=a56_0x4100,_0x179c1e=await apiRequest(_0x54b1cd(0x243)+_0xba1642+_0x54b1cd(0x1d0)+encodeURIComponent(_0x2ae686));if(!_0x179c1e[_0x54b1cd(0x1d1)])throw CliErrors[_0x54b1cd(0x21b)](_0x54b1cd(0x1fc)+_0xba1642);return _0x179c1e[_0x54b1cd(0x1d1)];}export async function createPersonalBff(_0x2f8b38,_0x27e1bf){const _0x266c66=a56_0x4100,_0x66e698=await apiRequest(_0x266c66(0x1cc),{'method':_0x266c66(0x1dc),'body':{'appCode':_0x2f8b38,..._0x27e1bf}});return _0x66e698[_0x266c66(0x1d1)];}export async function updatePersonalBff(_0x549c94,_0x505960,_0x52a389){const _0x43fc3b=a56_0x4100,_0x1b2301=await apiRequest(_0x43fc3b(0x243)+_0x549c94+_0x43fc3b(0x1e5),{'method':_0x43fc3b(0x1dc),'body':{'appCode':_0x505960,..._0x52a389}});return _0x1b2301['data'];}export async function executePersonalBff(_0x567784,_0x54a307,_0x43aea9){const _0x4e2f49=a56_0x4100,_0x29792f=await apiRequest('/client/runtime-bff/personal/'+_0x567784+_0x4e2f49(0x234)+encodeURIComponent(_0x54a307),{'method':'POST','body':_0x43aea9});return _0x29792f[_0x4e2f49(0x1d1)];}export async function listPersonalKnowledgeBaseItems(_0x474b4f){const _0x3475fd=a56_0x4100,_0x2bb238=await apiRequest(_0x3475fd(0x237)+encodeURIComponent(_0x474b4f));return Array[_0x3475fd(0x1ed)](_0x2bb238['data'])?_0x2bb238[_0x3475fd(0x1d1)]:[];}export async function getPersonalKnowledgeBaseItem(_0x254d49,_0x542dfa){const _0x13e0c8=a56_0x4100,_0x5db6a7=await apiRequest('/client/knowledge-base/personal/'+_0x254d49+_0x13e0c8(0x1d0)+encodeURIComponent(_0x542dfa));if(!_0x5db6a7[_0x13e0c8(0x1d1)])throw CliErrors[_0x13e0c8(0x21b)](_0x13e0c8(0x1de)+_0x254d49);return _0x5db6a7[_0x13e0c8(0x1d1)];}export async function createPersonalKnowledgeBaseItem(_0xaf3eb6,_0x4d5044){const _0x3e0d6c=a56_0x4100,_0x1dc7c5=await apiRequest(_0x3e0d6c(0x1e9),{'method':_0x3e0d6c(0x1dc),'body':{'appCode':_0xaf3eb6,..._0x4d5044}});return _0x1dc7c5[_0x3e0d6c(0x1d1)];}export async function updatePersonalKnowledgeBaseItem(_0x5d0c05,_0x5c428a,_0x172339){const _0x24ec5d=a56_0x4100,_0x5f4522=await apiRequest(_0x24ec5d(0x1fb)+_0x5d0c05+_0x24ec5d(0x1e5),{'method':'POST','body':{'appCode':_0x5c428a,..._0x172339}});return _0x5f4522[_0x24ec5d(0x1d1)];}export async function searchKnowledgeBase(_0x491c2c,_0x59c476){const _0x4ab0ed=a56_0x4100,_0x3a2391=await apiRequest(_0x4ab0ed(0x1c6),{'method':'POST','body':{'appCode':_0x491c2c,'query':_0x59c476[_0x4ab0ed(0x235)],..._0x59c476['topK']!==undefined?{'topK':_0x59c476[_0x4ab0ed(0x238)]}:{}}});return Array[_0x4ab0ed(0x1ed)](_0x3a2391[_0x4ab0ed(0x1d1)])?_0x3a2391[_0x4ab0ed(0x1d1)]:[];}export async function listRuntimeSkills(_0x326946){const _0x3f10b3=a56_0x4100,_0x4be046=await skillHubJsonRequest(_0x3f10b3(0x233)+encodeURIComponent(_0x326946[_0x3f10b3(0x22f)])+_0x3f10b3(0x222),{'query':{'page':0x0,'size':0xc8}});return normalizeSkillHubRuntimeListResponse(_0x326946[_0x3f10b3(0x22f)],_0x4be046,_0x326946[_0x3f10b3(0x20b)]??_0x3f10b3(0x23b),_0x326946[_0x3f10b3(0x216)]);}export async function listPersonalRuntimeSkills(_0x5632a8){const _0x24ccc2=a56_0x4100;return(await listRuntimeSkills({'appCode':_0x5632a8,'scope':_0x24ccc2(0x240)}))[_0x24ccc2(0x240)];}function a56_0x174a(){const _0x1ecd80=['296GkMyqc','23498NoNwrt','test','PUBLIC','Toolbox\x20API\x20error:\x20','trim','/client/knowledge-base/search','911290qEEgmK','4149108IDrzeB','company','BFF\x20script\x20not\x20found:\x20id=','source','/client/runtime-bff/personal/create','/api/cli/v1/skills/','Download\x20failed:\x20','headlineVersion','?appCode=','data','values','summary','success','10wVwxwZ','API\x20returned\x20non-JSON\x20response\x20(HTTP\x20','publishedVersion','packageBase64','errorMsg','SkillHub\x20API\x20error:\x20','PRIVATE','POST','status','Knowledge-base\x20entry\x20not\x20found:\x20id=','/client/dataset/query?','msg','/client/artifact/create','files','application/octet-stream','json','/update','namespace','tableData','/client/dataset/list','/client/knowledge-base/personal/create','base64','apiError','abort','isArray','text','SQL\x20query\x20not\x20found:\x20','toString','Toolbox\x20API\x20error','public','favorite','undefined','skillName','AbortError','name','markdown','stringify','replace','/client/knowledge-base/personal/','Personal\x20BFF\x20not\x20found:\x20id=','/publish','Check\x20your\x20credentials\x20and\x20try\x20again.','from','1961478RUIlaP','string','3bdboHg','API\x20error\x20code:\x20','api-doc-generator','/client/user/loginUserInfo','content','tags','message','invokeSource','newConfigFileName','scope','Request\x20timeout:\x20','GET','searchParams','effective','API\x20error:\x20','errorCode','application/json','Invalid\x20app\x20list\x20response:\x20expected\x20object\x20or\x20array.','1035380EtomwG','96047GcdHuB','code','entries','skill','/versions/','SkillHub\x20returned\x20non-JSON\x20response\x20(HTTP\x20','validation','/download','Artifact\x20not\x20found:\x20id=','artifactType','skillCode','/client/bff/query/','signal','/skills','/client/sql/query','Toolbox\x20error\x20code:\x20','538659SUaFHj','application/zip','boolean','Invalid\x20login\x20user\x20info\x20response:\x20expected\x20object.','authRequired','filter','items','Configure\x20accessKey\x20in\x20','version','Invalid\x20app\x20list\x20response:\x20missing\x20data.tableData.','appCode','object','number','catch','/api/runtime/v1/namespaces/','/execute?appCode=','query','/api/node-toolbox/','/client/knowledge-base/personal/list?appCode=','topK','/client/artifact/','displayName','user','map','set','slug','description','personal','/client/artifact/list?','visibility','/client/runtime-bff/personal/'];a56_0x174a=function(){return _0x1ecd80;};return a56_0x174a();}export async function listCompanyRuntimeSkills(_0x347930){return(await listRuntimeSkills({'appCode':_0x347930,'scope':'company'}))['company'];}export async function listVisibleRuntimeSkills(_0x389621){const _0x31b231=a56_0x4100;return(await listRuntimeSkills({'appCode':_0x389621,'scope':'user'}))[_0x31b231(0x20f)];}export async function createPersonalRuntimeSkill(_0x452784,_0x52d7bf){return publishRuntimeSkill(_0x452784,_0x52d7bf);}export async function updatePersonalRuntimeSkill(_0x2ba71d,_0x26a61c,_0x3d48ee){const _0x3aa7d=a56_0x4100;return publishRuntimeSkill(_0x26a61c,{..._0x3d48ee,'skillCode':_0x3d48ee[_0x3aa7d(0x21f)]??_0x2ba71d});}export async function downloadRuntimeSkillPackage(_0x4f1fda,_0x30144a,_0x7a5588,_0x4960d8){const _0x20a131=a56_0x4100;void _0x4f1fda;const _0x57ef68=_0x4960d8?_0x20a131(0x1cd)+encodeURIComponent(_0x7a5588)+'/'+encodeURIComponent(_0x30144a)+_0x20a131(0x219)+encodeURIComponent(_0x4960d8)+_0x20a131(0x21c):_0x20a131(0x1cd)+encodeURIComponent(_0x7a5588)+'/'+encodeURIComponent(_0x30144a)+_0x20a131(0x21c);return skillHubBinaryRequest(_0x57ef68);}async function publishRuntimeSkill(_0x512576,_0x25c821){const _0x3f93cc=a56_0x4100,_0x5f2ee0=new FormData();_0x5f2ee0[_0x3f93cc(0x23d)]('file',runtimeSkillPackageFile(_0x25c821)),_0x5f2ee0['set']('visibility',_0x3f93cc(0x1db));const _0xca5a38=await skillHubJsonRequest('/api/cli/v1/skills/'+encodeURIComponent(_0x512576)+_0x3f93cc(0x1fd),{'method':'POST','body':_0x5f2ee0});return{'appCode':_0xca5a38['namespace']??_0x512576,'skillCode':_0xca5a38[_0x3f93cc(0x23e)]??_0x25c821['skillCode']??'','skillName':_0x25c821[_0x3f93cc(0x1f5)]??_0xca5a38[_0x3f93cc(0x23e)]??_0x25c821['skillCode'],'description':_0x25c821[_0x3f93cc(0x23f)],'scope':skillHubVisibilityToScope(_0xca5a38[_0x3f93cc(0x242)])??_0x3f93cc(0x240),'version':_0xca5a38[_0x3f93cc(0x22d)]??_0x25c821[_0x3f93cc(0x22d)],'tags':_0x25c821[_0x3f93cc(0x207)],'content':_0x25c821[_0x3f93cc(0x206)],'files':_0x25c821[_0x3f93cc(0x1e2)]};}function runtimeSkillPackageFile(_0x31ca2d){const _0x5ef5fa=a56_0x4100;if(!_0x31ca2d['packageBase64'])throw CliErrors[_0x5ef5fa(0x21b)]('Missing\x20Skill\x20package\x20payload.');const _0x455c71=Buffer[_0x5ef5fa(0x1ff)](_0x31ca2d[_0x5ef5fa(0x1d8)],_0x5ef5fa(0x1ea)),_0x858659=new Blob([_0x455c71],{'type':_0x5ef5fa(0x226)}),_0x14b0ed=(_0x31ca2d[_0x5ef5fa(0x21f)]||_0x5ef5fa(0x218))+'.zip';if(typeof File!==_0x5ef5fa(0x1f4))return new File([_0x858659],_0x14b0ed,{'type':_0x5ef5fa(0x226)});return _0x858659;}function normalizeSkillHubRuntimeListResponse(_0x1e2be3,_0x337884,_0x2281cf,_0x58e579){const _0xf8cc06=a56_0x4100,_0x4acd8d=Array[_0xf8cc06(0x1ed)](_0x337884)?_0x337884:Array[_0xf8cc06(0x1ed)](_0x337884?.['items'])?_0x337884[_0xf8cc06(0x22b)]:[],_0x472661=_0x58e579?.[_0xf8cc06(0x1c5)](),_0x3b38ff=_0x4acd8d[_0xf8cc06(0x22a)](_0x44dec5=>!_0x472661||_0x44dec5[_0xf8cc06(0x23e)]===_0x472661)[_0xf8cc06(0x23c)](skillHubRuntimeItemToRuntimeSkill)[_0xf8cc06(0x22a)](_0x38bf0f=>Boolean(_0x38bf0f)),_0x23b11e=_0x3b38ff[_0xf8cc06(0x22a)](_0x500398=>_0x500398[_0xf8cc06(0x20b)]===_0xf8cc06(0x240)),_0x2754df=_0x3b38ff[_0xf8cc06(0x22a)](_0x23ff8f=>_0x23ff8f['scope']==='company'),_0x4d0b3e=_0x3b38ff[_0xf8cc06(0x22a)](_0x12576c=>_0x12576c['scope']===_0xf8cc06(0x1f2));return{'appCode':_0x1e2be3,'personal':_0x2281cf===_0xf8cc06(0x1c9)||_0x2281cf===_0xf8cc06(0x1f2)?[]:_0x23b11e,'company':_0x2281cf===_0xf8cc06(0x240)||_0x2281cf===_0xf8cc06(0x1f2)?[]:_0x2754df,'public':_0x2281cf===_0xf8cc06(0x240)||_0x2281cf===_0xf8cc06(0x1c9)?[]:_0x4d0b3e,'effective':buildEffectiveRuntimeSkills(_0x23b11e,_0x2754df,_0x4d0b3e,_0x2281cf)};}function skillHubRuntimeItemToRuntimeSkill(_0x4a6648){const _0x314583=a56_0x4100,_0x48ec37=_0x4a6648[_0x314583(0x23e)]?.[_0x314583(0x1c5)](),_0x5094de=skillHubVisibilityToScope(_0x4a6648[_0x314583(0x242)]);if(!_0x48ec37||!_0x5094de)return undefined;return{'id':_0x4a6648['id'],'appCode':_0x4a6648[_0x314583(0x1e6)],'skillCode':_0x48ec37,'skillName':_0x4a6648[_0x314583(0x23a)]??_0x48ec37,'description':_0x4a6648[_0x314583(0x1d3)],'scope':_0x5094de,'version':skillHubRuntimeItemVersion(_0x4a6648),'status':_0x4a6648[_0x314583(0x1dd)]};}function skillHubVisibilityToScope(_0x538579){const _0x5e1955=a56_0x4100;if(_0x538579===_0x5e1955(0x1db))return _0x5e1955(0x240);if(_0x538579==='NAMESPACE_ONLY')return _0x5e1955(0x1c9);if(_0x538579===_0x5e1955(0x1c3))return _0x5e1955(0x1f2);return undefined;}function skillHubRuntimeItemVersion(_0x3dfc40){const _0x29ba3a=a56_0x4100;return _0x3dfc40[_0x29ba3a(0x1d7)]?.[_0x29ba3a(0x22d)]??_0x3dfc40[_0x29ba3a(0x1cf)]?.['version']??_0x3dfc40['ownerPreviewVersion']?.[_0x29ba3a(0x22d)];}function buildEffectiveRuntimeSkills(_0x15d5d3,_0x5e26cc,_0x27d433,_0x34b7a0){const _0x1f056e=a56_0x4100;if(_0x34b7a0===_0x1f056e(0x240))return _0x15d5d3;if(_0x34b7a0===_0x1f056e(0x1c9))return _0x5e26cc;if(_0x34b7a0===_0x1f056e(0x1f2))return _0x27d433;const _0xfcfad6=new Map();for(const _0x553fb4 of _0x27d433){_0xfcfad6[_0x1f056e(0x23d)](_0x553fb4['skillCode'],_0x553fb4);}for(const _0x140ace of _0x5e26cc){_0xfcfad6[_0x1f056e(0x23d)](_0x140ace['skillCode'],_0x140ace);}for(const _0x2ad5c3 of _0x15d5d3){_0xfcfad6[_0x1f056e(0x23d)](_0x2ad5c3['skillCode'],_0x2ad5c3);}return Array[_0x1f056e(0x1ff)](_0xfcfad6[_0x1f056e(0x1d2)]());}function normalizeRuntimeSkillListResponse(_0x400a81,_0x1c35f8){const _0xf0aefa=a56_0x4100;if(Array[_0xf0aefa(0x1ed)](_0x1c35f8)){const _0x4ddff4=_0x1c35f8['filter'](_0x4fc709=>_0x4fc709[_0xf0aefa(0x20b)]===_0xf0aefa(0x240)),_0x44b2a0=_0x1c35f8[_0xf0aefa(0x22a)](_0x4f0061=>_0x4f0061['scope']===_0xf0aefa(0x1c9)),_0x4ed3a5=_0x1c35f8['filter'](_0x12e27f=>_0x12e27f[_0xf0aefa(0x20b)]===_0xf0aefa(0x1f2));return{'appCode':_0x400a81,'personal':_0x4ddff4,'company':_0x44b2a0,'public':_0x4ed3a5,'effective':_0x1c35f8[_0xf0aefa(0x22a)](_0x2b3127=>_0x2b3127[_0xf0aefa(0x20b)]!=='builtin')};}return{'appCode':_0x1c35f8?.[_0xf0aefa(0x22f)]??_0x400a81,'personal':Array['isArray'](_0x1c35f8?.[_0xf0aefa(0x240)])?_0x1c35f8[_0xf0aefa(0x240)]:[],'company':Array[_0xf0aefa(0x1ed)](_0x1c35f8?.[_0xf0aefa(0x1c9)])?_0x1c35f8[_0xf0aefa(0x1c9)]:[],'public':Array['isArray'](_0x1c35f8?.[_0xf0aefa(0x1f2)])?_0x1c35f8[_0xf0aefa(0x1f2)]:[],'effective':Array[_0xf0aefa(0x1ed)](_0x1c35f8?.[_0xf0aefa(0x20f)])?_0x1c35f8[_0xf0aefa(0x20f)]:[]};}
1
+ function a56_0x455e(_0x4b9635,_0x3a7317){_0x4b9635=_0x4b9635-0x1d8;const _0x16f4c7=a56_0x16f4();let _0x455ee5=_0x16f4c7[_0x4b9635];return _0x455ee5;}(function(_0x3cdd25,_0x1a1f53){const _0x38bf38=a56_0x455e,_0x9ba676=_0x3cdd25();while(!![]){try{const _0x4f58a1=parseInt(_0x38bf38(0x220))/0x1+-parseInt(_0x38bf38(0x239))/0x2*(parseInt(_0x38bf38(0x231))/0x3)+-parseInt(_0x38bf38(0x1ed))/0x4*(-parseInt(_0x38bf38(0x1ff))/0x5)+parseInt(_0x38bf38(0x1e3))/0x6*(parseInt(_0x38bf38(0x23b))/0x7)+parseInt(_0x38bf38(0x210))/0x8*(-parseInt(_0x38bf38(0x1f5))/0x9)+-parseInt(_0x38bf38(0x1f3))/0xa+parseInt(_0x38bf38(0x23e))/0xb*(-parseInt(_0x38bf38(0x1e0))/0xc);if(_0x4f58a1===_0x1a1f53)break;else _0x9ba676['push'](_0x9ba676['shift']());}catch(_0x493280){_0x9ba676['push'](_0x9ba676['shift']());}}}(a56_0x16f4,0xa9339));import{getApiDomain,getRuntimeDomain,getSkillHubDomain}from'../constant/domain.js';import{PRODUCT_CONFIG}from'../constant/product.js';import{CliErrors}from'../errors.js';import{extractList}from'../framework/response.js';let _activeAK;export function setActiveAK(_0x3dea49){_activeAK=_0x3dea49||undefined;}export function clearActiveAK(){_activeAK=undefined;}async function apiRequest(_0x4aa608,_0x5c2f13={}){const _0x406f00=a56_0x455e,{method:method=_0x406f00(0x1de),body:_0x1da5a1,headers:headers={},timeout:timeout=0x7530}=_0x5c2f13,_0x2c3dfa=_activeAK,_0x435070=getRuntimeDomain();if(!_0x2c3dfa)throw CliErrors[_0x406f00(0x252)](_0x406f00(0x22d)+PRODUCT_CONFIG[_0x406f00(0x212)]+'.');const _0xcc09b3=''+_0x435070+_0x4aa608,_0x118c2c={'X-User-AK':_0x2c3dfa},_0x4d926e=new AbortController(),_0x22feda=setTimeout(()=>_0x4d926e[_0x406f00(0x249)](),timeout);try{const _0x36749b=await fetch(_0xcc09b3,{'method':method,'headers':{'Content-Type':_0x406f00(0x20a),'X-Invoke-Source':PRODUCT_CONFIG[_0x406f00(0x1e1)],..._0x118c2c,...headers},'body':_0x1da5a1?JSON['stringify'](_0x1da5a1):undefined,'signal':_0x4d926e[_0x406f00(0x208)]});let _0x598ef3;try{_0x598ef3=await _0x36749b[_0x406f00(0x246)]();}catch{throw CliErrors[_0x406f00(0x1e9)](_0x406f00(0x1d8)+_0x36749b[_0x406f00(0x253)]+')',_0x36749b[_0x406f00(0x253)]>=0x190?_0x406f00(0x238):undefined);}if(!_0x36749b['ok']||_0x598ef3[_0x406f00(0x1e8)]===![])throw CliErrors[_0x406f00(0x1e9)](_0x598ef3['errorMsg']||_0x598ef3[_0x406f00(0x23a)]||_0x406f00(0x216)+_0x36749b[_0x406f00(0x253)],_0x598ef3['errorCode']?'API\x20error\x20code:\x20'+_0x598ef3[_0x406f00(0x244)]:undefined);return _0x598ef3;}catch(_0x54be4c){if(_0x54be4c instanceof Error&&_0x54be4c['name']===_0x406f00(0x21d))throw CliErrors[_0x406f00(0x1e9)]('Request\x20timeout:\x20'+_0xcc09b3);throw _0x54be4c;}finally{clearTimeout(_0x22feda);}}async function apiBinaryRequest(_0x49c974,_0x16df15={}){const _0x45d74d=a56_0x455e,{method:method=_0x45d74d(0x1de),headers:headers={},timeout:timeout=0x7530}=_0x16df15,_0x1329ac=_activeAK,_0x1e70a0=getRuntimeDomain();if(!_0x1329ac)throw CliErrors[_0x45d74d(0x252)](_0x45d74d(0x22d)+PRODUCT_CONFIG[_0x45d74d(0x212)]+'.');const _0x3c738d=''+_0x1e70a0+_0x49c974,_0x4eecd9=new AbortController(),_0xbef1c9=setTimeout(()=>_0x4eecd9[_0x45d74d(0x249)](),timeout);try{const _0x2ab484=await fetch(_0x3c738d,{'method':method,'headers':{'X-Invoke-Source':PRODUCT_CONFIG[_0x45d74d(0x1e1)],'X-User-AK':_0x1329ac,...headers},'signal':_0x4eecd9[_0x45d74d(0x208)]});if(!_0x2ab484['ok']){let _0x8636e2;try{const _0x27c1b8=await _0x2ab484['json']();_0x8636e2=_0x27c1b8[_0x45d74d(0x1e2)]||_0x27c1b8[_0x45d74d(0x23a)]||_0x27c1b8['errorCode'];}catch{_0x8636e2=await _0x2ab484[_0x45d74d(0x223)]()[_0x45d74d(0x23c)](()=>undefined);}throw CliErrors[_0x45d74d(0x1e9)](_0x8636e2||_0x45d74d(0x216)+_0x2ab484[_0x45d74d(0x253)],'Download\x20failed:\x20'+_0x3c738d);}return Buffer[_0x45d74d(0x225)](await _0x2ab484[_0x45d74d(0x240)]());}catch(_0x2f5fad){if(_0x2f5fad instanceof Error&&_0x2f5fad['name']===_0x45d74d(0x21d))throw CliErrors[_0x45d74d(0x1e9)]('Request\x20timeout:\x20'+_0x3c738d);throw _0x2f5fad;}finally{clearTimeout(_0xbef1c9);}}async function toolboxRequest(_0x41fe3e,_0x59b123,_0x1bfcc2={}){const _0xe0c613=a56_0x455e,{method:method=_0xe0c613(0x1de),headers:headers={},timeout:timeout=0x7530}=_0x1bfcc2,_0xb2f561=_activeAK;if(!_0xb2f561)throw CliErrors['authRequired'](_0xe0c613(0x22d)+PRODUCT_CONFIG[_0xe0c613(0x212)]+'.');const _0x4dffdd=getApiDomain()[_0xe0c613(0x1ea)](/\/$/,''),_0x55d254=new URL(_0x41fe3e,_0x4dffdd+_0xe0c613(0x1f9));if(_0x59b123)for(const [_0x407931,_0x3d5e6a]of Object[_0xe0c613(0x236)](_0x59b123)){_0x3d5e6a!==undefined&&_0x3d5e6a!==null&&_0x55d254[_0xe0c613(0x234)][_0xe0c613(0x1fc)](_0x407931,String(_0x3d5e6a));}const _0x59d27=new AbortController(),_0x4716ff=setTimeout(()=>_0x59d27[_0xe0c613(0x249)](),timeout);try{const _0x426620=await fetch(_0x55d254,{'method':method,'headers':{'Content-Type':_0xe0c613(0x20a),'X-Invoke-Source':PRODUCT_CONFIG[_0xe0c613(0x1e1)],'X-User-AK':_0xb2f561,...headers},'signal':_0x59d27[_0xe0c613(0x208)]});let _0x3c2384;try{_0x3c2384=await _0x426620[_0xe0c613(0x246)]();}catch{throw CliErrors[_0xe0c613(0x1e9)](_0xe0c613(0x226)+_0x426620['status']+')',_0x426620[_0xe0c613(0x253)]>=0x190?_0xe0c613(0x238):undefined);}if(!_0x426620['ok']){const _0x400030=_0x3c2384&&typeof _0x3c2384===_0xe0c613(0x21c)?_0x3c2384:{};throw CliErrors[_0xe0c613(0x1e9)](_0x400030[_0xe0c613(0x1e2)]||_0x400030[_0xe0c613(0x23a)]||_0xe0c613(0x245)+_0x426620[_0xe0c613(0x253)],_0x400030[_0xe0c613(0x244)]?_0xe0c613(0x1ef)+_0x400030[_0xe0c613(0x244)]:undefined);}if(_0x3c2384&&typeof _0x3c2384==='object'&&_0xe0c613(0x1e8)in _0x3c2384&&typeof _0x3c2384[_0xe0c613(0x1e8)]===_0xe0c613(0x1fa)){const _0xc5e546=_0x3c2384;if(!_0xc5e546[_0xe0c613(0x1e8)])throw CliErrors['apiError'](_0xc5e546[_0xe0c613(0x1e2)]||_0xc5e546['message']||_0xe0c613(0x1f4),_0xc5e546[_0xe0c613(0x244)]?'Toolbox\x20error\x20code:\x20'+_0xc5e546[_0xe0c613(0x244)]:undefined);return _0xc5e546[_0xe0c613(0x22c)];}return _0x3c2384;}catch(_0x1dfd60){if(_0x1dfd60 instanceof Error&&_0x1dfd60[_0xe0c613(0x1e6)]==='AbortError')throw CliErrors[_0xe0c613(0x1e9)](_0xe0c613(0x21e)+_0x55d254[_0xe0c613(0x24f)]());throw _0x1dfd60;}finally{clearTimeout(_0x4716ff);}}async function skillHubJsonRequest(_0x98d51e,_0x20dd1c={}){const _0x331801=a56_0x455e,{method:method=_0x331801(0x1de),query:_0x19c330,body:_0x426431,headers:headers={},timeout:timeout=0x7530}=_0x20dd1c,_0x26ce11=_activeAK;if(!_0x26ce11)throw CliErrors[_0x331801(0x252)](_0x331801(0x22d)+PRODUCT_CONFIG[_0x331801(0x212)]+'.');const _0x32e577=getSkillHubDomain()[_0x331801(0x1ea)](/\/$/,''),_0x516a70=new URL(_0x98d51e,_0x32e577+'/');if(_0x19c330)for(const [_0x23d64f,_0x73f731]of Object[_0x331801(0x236)](_0x19c330)){_0x73f731!==undefined&&_0x73f731!==null&&_0x516a70['searchParams']['set'](_0x23d64f,String(_0x73f731));}const _0x353504=new AbortController(),_0x25c6b7=setTimeout(()=>_0x353504['abort'](),timeout);try{const _0x4646f1=await fetch(_0x516a70[_0x331801(0x24f)](),{'method':method,'headers':{'Accept':'application/json','X-Invoke-Source':PRODUCT_CONFIG[_0x331801(0x1e1)],'X-User-AK':_0x26ce11,...headers},'body':_0x426431,'signal':_0x353504[_0x331801(0x208)]});let _0x166024;try{_0x166024=await _0x4646f1[_0x331801(0x246)]();}catch{throw CliErrors['apiError']('SkillHub\x20returned\x20non-JSON\x20response\x20(HTTP\x20'+_0x4646f1['status']+')',_0x4646f1[_0x331801(0x253)]>=0x190?'Check\x20your\x20credentials\x20and\x20try\x20again.':undefined);}const _0x1ba478=!_0x4646f1['ok']||_0x166024?.[_0x331801(0x1e8)]===![]||typeof _0x166024?.[_0x331801(0x215)]===_0x331801(0x1ec)&&_0x166024[_0x331801(0x215)]>=0x190;if(_0x1ba478)throw CliErrors[_0x331801(0x1e9)](_0x166024?.[_0x331801(0x1e2)]||_0x166024?.[_0x331801(0x23a)]||_0x166024?.['msg']||_0x331801(0x1eb)+_0x4646f1[_0x331801(0x253)],_0x166024?.[_0x331801(0x244)]?'SkillHub\x20error\x20code:\x20'+_0x166024[_0x331801(0x244)]:undefined);return _0x166024?.['data']??_0x166024;}catch(_0x5bfba5){if(_0x5bfba5 instanceof Error&&_0x5bfba5[_0x331801(0x1e6)]===_0x331801(0x21d))throw CliErrors[_0x331801(0x1e9)]('Request\x20timeout:\x20'+_0x516a70[_0x331801(0x24f)]());throw _0x5bfba5;}finally{clearTimeout(_0x25c6b7);}}async function skillHubBinaryRequest(_0x5eeb46,_0x46c486={}){const _0x1e104f=a56_0x455e,{query:_0x4e0598,headers:headers={},timeout:timeout=0x7530}=_0x46c486,_0x3911ed=_activeAK;if(!_0x3911ed)throw CliErrors[_0x1e104f(0x252)](_0x1e104f(0x22d)+PRODUCT_CONFIG[_0x1e104f(0x212)]+'.');const _0x4f31a4=getSkillHubDomain()['replace'](/\/$/,''),_0x1bb553=new URL(_0x5eeb46,_0x4f31a4+'/');if(_0x4e0598)for(const [_0x5a7ae7,_0xf6b3f4]of Object[_0x1e104f(0x236)](_0x4e0598)){_0xf6b3f4!==undefined&&_0xf6b3f4!==null&&_0x1bb553[_0x1e104f(0x234)]['set'](_0x5a7ae7,String(_0xf6b3f4));}const _0x302984=new AbortController(),_0x24ad91=setTimeout(()=>_0x302984[_0x1e104f(0x249)](),timeout);try{const _0x1022db=await fetch(_0x1bb553[_0x1e104f(0x24f)](),{'method':'GET','headers':{'Accept':'application/octet-stream','X-Invoke-Source':PRODUCT_CONFIG[_0x1e104f(0x1e1)],'X-User-AK':_0x3911ed,...headers},'signal':_0x302984[_0x1e104f(0x208)]});if(!_0x1022db['ok']){let _0x17f8de;try{const _0x281140=await _0x1022db[_0x1e104f(0x246)]();_0x17f8de=_0x281140['errorMsg']||_0x281140[_0x1e104f(0x23a)]||_0x281140[_0x1e104f(0x21a)]||_0x281140[_0x1e104f(0x244)];}catch{_0x17f8de=await _0x1022db[_0x1e104f(0x223)]()[_0x1e104f(0x23c)](()=>undefined);}throw CliErrors['apiError'](_0x17f8de||_0x1e104f(0x1eb)+_0x1022db['status'],_0x1e104f(0x20d)+_0x1bb553[_0x1e104f(0x24f)]());}return Buffer[_0x1e104f(0x225)](await _0x1022db['arrayBuffer']());}catch(_0x1d07f7){if(_0x1d07f7 instanceof Error&&_0x1d07f7[_0x1e104f(0x1e6)]===_0x1e104f(0x21d))throw CliErrors['apiError'](_0x1e104f(0x21e)+_0x1bb553[_0x1e104f(0x24f)]());throw _0x1d07f7;}finally{clearTimeout(_0x24ad91);}}export async function getBffScriptInfo(_0x13b15f){const _0x2ecff1=a56_0x455e,_0x18008b=await apiRequest(_0x2ecff1(0x222)+_0x13b15f);if(!_0x18008b[_0x2ecff1(0x22c)])throw CliErrors[_0x2ecff1(0x250)](_0x2ecff1(0x219)+_0x13b15f);return _0x18008b[_0x2ecff1(0x22c)];}export async function getSqlQueryInfo(_0x1b570c,_0x250f64){const _0x318a09=a56_0x455e,_0x2edc4f=await apiRequest(_0x318a09(0x209),{'method':_0x318a09(0x22b),'body':{'appCode':_0x1b570c,'currentPage':0x1,'pageSize':0x1,'sqlCode':_0x250f64}}),_0x40987b=_0x2edc4f['data'],_0x3d869=_0x40987b&&typeof _0x40987b===_0x318a09(0x21c)&&_0x318a09(0x1fe)in _0x40987b?_0x40987b[_0x318a09(0x1fe)]?.[0x0]:_0x40987b&&typeof _0x40987b===_0x318a09(0x21c)&&_0x318a09(0x1e7)in _0x40987b?_0x40987b:undefined;if(!_0x3d869)throw CliErrors[_0x318a09(0x250)](_0x318a09(0x1f7)+_0x250f64);return _0x3d869;}function isRemoteAppItem(_0x2726c4){const _0x12ac76=a56_0x455e;return!!_0x2726c4&&typeof _0x2726c4===_0x12ac76(0x21c)&&typeof _0x2726c4[_0x12ac76(0x24a)]===_0x12ac76(0x241)&&typeof _0x2726c4[_0x12ac76(0x1f6)]==='string';}function extractRemoteAppItems(_0x40f237){const _0x5aea0f=a56_0x455e;if(Array[_0x5aea0f(0x23f)](_0x40f237))return _0x40f237[_0x5aea0f(0x227)](isRemoteAppItem);if(!_0x40f237||typeof _0x40f237!==_0x5aea0f(0x21c))throw CliErrors[_0x5aea0f(0x1e9)](_0x5aea0f(0x203));const _0x1caf49=_0x40f237;if(Array[_0x5aea0f(0x23f)](_0x1caf49['tableData']))return _0x1caf49['tableData']['filter'](isRemoteAppItem);if(_0x1caf49[_0x5aea0f(0x22c)]&&typeof _0x1caf49[_0x5aea0f(0x22c)]===_0x5aea0f(0x21c)){const _0x89012b=_0x1caf49[_0x5aea0f(0x22c)];if(Array[_0x5aea0f(0x23f)](_0x89012b['tableData']))return _0x89012b[_0x5aea0f(0x1fe)][_0x5aea0f(0x227)](isRemoteAppItem);}throw CliErrors[_0x5aea0f(0x1e9)](_0x5aea0f(0x23d));}export async function getMyApps(){const _0x3dabfc=a56_0x455e,_0x47cc9b=await apiRequest('/client/app/my-apps');return extractRemoteAppItems(_0x47cc9b[_0x3dabfc(0x22c)]);}export async function getLoginUserInfo(){const _0x157ab1=a56_0x455e,_0x3cfdb8=await apiRequest('/client/user/loginUserInfo');if(!_0x3cfdb8[_0x157ab1(0x22c)]||typeof _0x3cfdb8[_0x157ab1(0x22c)]!==_0x157ab1(0x21c)||Array['isArray'](_0x3cfdb8[_0x157ab1(0x22c)]))throw CliErrors[_0x157ab1(0x1e9)](_0x157ab1(0x232));return _0x3cfdb8['data'];}export async function listDatasets(_0xb6e92e,_0x3cadc8){const _0x3e35d8=a56_0x455e,_0x5e0047=await apiRequest(_0x3e35d8(0x204),{'method':_0x3e35d8(0x22b),'body':{'appCode':_0xb6e92e,..._0x3cadc8?.[_0x3e35d8(0x215)]&&{'code':_0x3cadc8[_0x3e35d8(0x215)]},..._0x3cadc8?.['name']&&{'name':_0x3cadc8[_0x3e35d8(0x1e6)]}}});return extractList(_0x5e0047['data']);}export async function getDatasetDetail(_0xe2f474){const _0x2aefd3=a56_0x455e,_0x192845=/^\d+$/[_0x2aefd3(0x24d)](_0xe2f474)?'id':'code',_0x3dcc7c=await apiRequest(_0x2aefd3(0x22f)+_0x192845+'='+_0xe2f474);return _0x3dcc7c['data'];}export async function getDatasetSdkUsageDoc(_0x4e0778,_0x36f5af){const _0x29c4e0=a56_0x455e,_0x48c72d=await toolboxRequest(_0x29c4e0(0x254),{'datasetCode':_0x4e0778,'appCode':_0x36f5af});return typeof _0x48c72d?.[_0x29c4e0(0x243)]===_0x29c4e0(0x241)?_0x48c72d[_0x29c4e0(0x243)]:'';}export async function listRuntimeArtifacts(_0x2a43ca,_0x5a5e9b){const _0x2cc934=a56_0x455e,_0x5924cb=new URLSearchParams({'appCode':_0x2a43ca});if(_0x5a5e9b?.[_0x2cc934(0x22e)])_0x5924cb[_0x2cc934(0x1fc)](_0x2cc934(0x22e),_0x5a5e9b['artifactType']);if(_0x5a5e9b?.[_0x2cc934(0x251)])_0x5924cb[_0x2cc934(0x1fc)]('source',_0x5a5e9b[_0x2cc934(0x251)]);if(_0x5a5e9b?.[_0x2cc934(0x22a)]!==undefined)_0x5924cb['set'](_0x2cc934(0x22a),String(_0x5a5e9b[_0x2cc934(0x22a)]));const _0x3b9ee6=await apiRequest(_0x2cc934(0x24b)+_0x5924cb[_0x2cc934(0x24f)]());return Array[_0x2cc934(0x23f)](_0x3b9ee6['data'])?_0x3b9ee6[_0x2cc934(0x22c)]:[];}export async function getRuntimeArtifact(_0x39970b,_0x47d6eb){const _0x13b3d8=a56_0x455e,_0x26feae=await apiRequest(_0x13b3d8(0x224)+_0x39970b+'?appCode='+encodeURIComponent(_0x47d6eb));if(!_0x26feae[_0x13b3d8(0x22c)])throw CliErrors[_0x13b3d8(0x250)](_0x13b3d8(0x1f2)+_0x39970b);return _0x26feae[_0x13b3d8(0x22c)];}export async function createRuntimeArtifact(_0x5a0561,_0x5c6238){const _0x4e75eb=a56_0x455e,_0x42095b=await apiRequest(_0x4e75eb(0x206),{'method':'POST','body':{'appCode':_0x5a0561,..._0x5c6238}});return _0x42095b['data'];}export async function updateRuntimeArtifact(_0x20ad22,_0x217d8a,_0x474018){const _0x246996=a56_0x455e,_0x37c8ac=await apiRequest('/client/artifact/'+_0x20ad22+_0x246996(0x1da),{'method':_0x246996(0x22b),'body':{'appCode':_0x217d8a,..._0x474018}});return _0x37c8ac['data'];}export async function listPersonalBffs(_0x2ebbef){const _0x5912d2=a56_0x455e,_0x477cc5=await apiRequest(_0x5912d2(0x221)+encodeURIComponent(_0x2ebbef));return Array[_0x5912d2(0x23f)](_0x477cc5['data'])?_0x477cc5[_0x5912d2(0x22c)]:[];}export async function getPersonalBff(_0x42fc07,_0x5648f8){const _0x195a5c=a56_0x455e,_0x1bf3d6=await apiRequest(_0x195a5c(0x235)+_0x42fc07+_0x195a5c(0x205)+encodeURIComponent(_0x5648f8));if(!_0x1bf3d6['data'])throw CliErrors[_0x195a5c(0x250)](_0x195a5c(0x20e)+_0x42fc07);return _0x1bf3d6[_0x195a5c(0x22c)];}export async function createPersonalBff(_0x739d90,_0xa7f70f){const _0x4c7695=await apiRequest('/client/runtime-bff/personal/create',{'method':'POST','body':{'appCode':_0x739d90,..._0xa7f70f}});return _0x4c7695['data'];}export async function updatePersonalBff(_0x6c8f1a,_0x40ecf5,_0x438dd8){const _0x54bcaf=a56_0x455e,_0x250462=await apiRequest('/client/runtime-bff/personal/'+_0x6c8f1a+_0x54bcaf(0x1da),{'method':_0x54bcaf(0x22b),'body':{'appCode':_0x40ecf5,..._0x438dd8}});return _0x250462[_0x54bcaf(0x22c)];}export async function executePersonalBff(_0x169f8e,_0x1ee6ad,_0x4b3252){const _0x522cca=a56_0x455e,_0x4f52e4=await apiRequest(_0x522cca(0x235)+_0x169f8e+_0x522cca(0x228)+encodeURIComponent(_0x1ee6ad),{'method':_0x522cca(0x22b),'body':_0x4b3252});return _0x4f52e4['data'];}export async function listPersonalKnowledgeBaseItems(_0x157cbe){const _0x2909ec=a56_0x455e,_0x16950d=await apiRequest(_0x2909ec(0x21f)+encodeURIComponent(_0x157cbe));return Array[_0x2909ec(0x23f)](_0x16950d[_0x2909ec(0x22c)])?_0x16950d[_0x2909ec(0x22c)]:[];}export async function getPersonalKnowledgeBaseItem(_0x501668,_0x4b8eb0){const _0x4792a1=a56_0x455e,_0xf641a5=await apiRequest(_0x4792a1(0x21b)+_0x501668+_0x4792a1(0x205)+encodeURIComponent(_0x4b8eb0));if(!_0xf641a5['data'])throw CliErrors[_0x4792a1(0x250)](_0x4792a1(0x1e4)+_0x501668);return _0xf641a5[_0x4792a1(0x22c)];}export async function createPersonalKnowledgeBaseItem(_0x11262a,_0x3d904e){const _0x5680bc=a56_0x455e,_0x107157=await apiRequest('/client/knowledge-base/personal/create',{'method':_0x5680bc(0x22b),'body':{'appCode':_0x11262a,..._0x3d904e}});return _0x107157[_0x5680bc(0x22c)];}export async function updatePersonalKnowledgeBaseItem(_0x4ec982,_0x589636,_0x2d3d2a){const _0x1aadd8=a56_0x455e,_0xabcbd5=await apiRequest(_0x1aadd8(0x21b)+_0x4ec982+'/update',{'method':_0x1aadd8(0x22b),'body':{'appCode':_0x589636,..._0x2d3d2a}});return _0xabcbd5[_0x1aadd8(0x22c)];}export async function searchKnowledgeBase(_0x1abdc3,_0x2de7f5){const _0x37d9e3=a56_0x455e,_0x4656da=await apiRequest(_0x37d9e3(0x24c),{'method':'POST','body':{'appCode':_0x1abdc3,'query':_0x2de7f5['query'],..._0x2de7f5[_0x37d9e3(0x218)]!==undefined?{'topK':_0x2de7f5[_0x37d9e3(0x218)]}:{}}});return Array[_0x37d9e3(0x23f)](_0x4656da[_0x37d9e3(0x22c)])?_0x4656da['data']:[];}export async function listRuntimeSkills(_0x2529fc){const _0x341293=a56_0x455e,_0x305313=await skillHubJsonRequest('/api/runtime/v1/namespaces/'+encodeURIComponent(_0x2529fc[_0x341293(0x24a)])+_0x341293(0x217),{'query':{'page':0x0,'size':0xc8}});return normalizeSkillHubRuntimeListResponse(_0x2529fc[_0x341293(0x24a)],_0x305313,_0x2529fc[_0x341293(0x248)]??_0x341293(0x1ee),_0x2529fc[_0x341293(0x215)]);}export async function listPersonalRuntimeSkills(_0x433c79){const _0x56ac37=a56_0x455e;return(await listRuntimeSkills({'appCode':_0x433c79,'scope':_0x56ac37(0x237)}))['personal'];}function a56_0x16f4(){const _0x5efcc1=['api-doc-generator','API\x20returned\x20non-JSON\x20response\x20(HTTP\x20','tags','/update','builtin','version','effective','GET','application/zip','11196Jmsgwf','invokeSource','errorMsg','5442KtpSdD','Knowledge-base\x20entry\x20not\x20found:\x20id=','files','name','sqlCode','success','apiError','replace','SkillHub\x20API\x20error:\x20','number','560012mmrqcW','user','Toolbox\x20error\x20code:\x20','PRIVATE','map','Artifact\x20not\x20found:\x20id=','3494920JAPqkj','Toolbox\x20API\x20error','936moWPkN','appName','SQL\x20query\x20not\x20found:\x20','/api/cli/v1/skills/','/api/node-toolbox/','boolean','description','set','public','tableData','40euCpQo','summary','namespace','trim','Invalid\x20app\x20list\x20response:\x20expected\x20object\x20or\x20array.','/client/dataset/list','?appCode=','/client/artifact/create','displayName','signal','/client/sql/query','application/json','undefined','items','Download\x20failed:\x20','Personal\x20BFF\x20not\x20found:\x20id=','company','46448DokFkU','Missing\x20Skill\x20package\x20payload.','newConfigFileName','.zip','visibility','code','API\x20error:\x20','/skills','topK','BFF\x20script\x20not\x20found:\x20id=','msg','/client/knowledge-base/personal/','object','AbortError','Request\x20timeout:\x20','/client/knowledge-base/personal/list?appCode=','1241907bJTyxL','/client/runtime-bff/personal/list?appCode=','/client/bff/query/','text','/client/artifact/','from','Toolbox\x20returned\x20non-JSON\x20response\x20(HTTP\x20','filter','/execute?appCode=','skillCode','favorite','POST','data','Configure\x20accessKey\x20in\x20','artifactType','/client/dataset/query?','slug','6FSciqP','Invalid\x20login\x20user\x20info\x20response:\x20expected\x20object.','/download','searchParams','/client/runtime-bff/personal/','entries','personal','Check\x20your\x20credentials\x20and\x20try\x20again.','502058lSDedC','message','9254Urumhx','catch','Invalid\x20app\x20list\x20response:\x20missing\x20data.tableData.','16654CfaPXA','isArray','arrayBuffer','string','packageBase64','markdown','errorCode','Toolbox\x20API\x20error:\x20','json','ownerPreviewVersion','scope','abort','appCode','/client/artifact/list?','/client/knowledge-base/search','test','headlineVersion','toString','validation','source','authRequired','status'];a56_0x16f4=function(){return _0x5efcc1;};return a56_0x16f4();}export async function listCompanyRuntimeSkills(_0x1b16c8){const _0x1ca74d=a56_0x455e;return(await listRuntimeSkills({'appCode':_0x1b16c8,'scope':_0x1ca74d(0x20f)}))[_0x1ca74d(0x20f)];}export async function listVisibleRuntimeSkills(_0x91af4){const _0x5c3169=a56_0x455e;return(await listRuntimeSkills({'appCode':_0x91af4,'scope':_0x5c3169(0x1ee)}))[_0x5c3169(0x1dd)];}export async function createPersonalRuntimeSkill(_0x657415,_0x3ceb4b){return publishRuntimeSkill(_0x657415,_0x3ceb4b);}export async function updatePersonalRuntimeSkill(_0x126ceb,_0x562958,_0x3d9f5d){return publishRuntimeSkill(_0x562958,{..._0x3d9f5d,'skillCode':_0x3d9f5d['skillCode']??_0x126ceb});}export async function downloadRuntimeSkillPackage(_0x2a2e3c,_0x44cfcc,_0x2abec5,_0x49f04a){const _0x5353c0=a56_0x455e;void _0x2a2e3c;const _0x3f120f=_0x49f04a?'/api/cli/v1/skills/'+encodeURIComponent(_0x2abec5)+'/'+encodeURIComponent(_0x44cfcc)+'/versions/'+encodeURIComponent(_0x49f04a)+'/download':_0x5353c0(0x1f8)+encodeURIComponent(_0x2abec5)+'/'+encodeURIComponent(_0x44cfcc)+_0x5353c0(0x233);return skillHubBinaryRequest(_0x3f120f);}async function publishRuntimeSkill(_0x547cad,_0x5066d8){const _0x52e408=a56_0x455e,_0x4b04e5=new FormData();_0x4b04e5[_0x52e408(0x1fc)]('file',runtimeSkillPackageFile(_0x5066d8)),_0x4b04e5[_0x52e408(0x1fc)](_0x52e408(0x214),_0x52e408(0x1f0));const _0x330d33=await skillHubJsonRequest(_0x52e408(0x1f8)+encodeURIComponent(_0x547cad)+'/publish',{'method':_0x52e408(0x22b),'body':_0x4b04e5});return{'appCode':_0x330d33['namespace']??_0x547cad,'skillCode':_0x330d33[_0x52e408(0x230)]??_0x5066d8['skillCode']??'','skillName':_0x5066d8['skillName']??_0x330d33[_0x52e408(0x230)]??_0x5066d8[_0x52e408(0x229)],'description':_0x5066d8[_0x52e408(0x1fb)],'scope':skillHubVisibilityToScope(_0x330d33[_0x52e408(0x214)])??_0x52e408(0x237),'version':_0x330d33[_0x52e408(0x1dc)]??_0x5066d8[_0x52e408(0x1dc)],'tags':_0x5066d8[_0x52e408(0x1d9)],'content':_0x5066d8['content'],'files':_0x5066d8[_0x52e408(0x1e5)]};}function runtimeSkillPackageFile(_0x89900){const _0x28d058=a56_0x455e;if(!_0x89900['packageBase64'])throw CliErrors[_0x28d058(0x250)](_0x28d058(0x211));const _0x2f772b=Buffer[_0x28d058(0x225)](_0x89900[_0x28d058(0x242)],'base64'),_0x3bcf8b=new Blob([_0x2f772b],{'type':_0x28d058(0x1df)}),_0x33efc6=(_0x89900['skillCode']||'skill')+_0x28d058(0x213);if(typeof File!==_0x28d058(0x20b))return new File([_0x3bcf8b],_0x33efc6,{'type':_0x28d058(0x1df)});return _0x3bcf8b;}function normalizeSkillHubRuntimeListResponse(_0x795def,_0x170054,_0x1d4ae9,_0x4ccc92){const _0x2c6c19=a56_0x455e,_0x22aaae=Array['isArray'](_0x170054)?_0x170054:Array[_0x2c6c19(0x23f)](_0x170054?.[_0x2c6c19(0x20c)])?_0x170054[_0x2c6c19(0x20c)]:[],_0x1640b5=_0x4ccc92?.['trim'](),_0x3fa6e0=_0x22aaae[_0x2c6c19(0x227)](_0x45310f=>!_0x1640b5||_0x45310f[_0x2c6c19(0x230)]===_0x1640b5)[_0x2c6c19(0x1f1)](skillHubRuntimeItemToRuntimeSkill)[_0x2c6c19(0x227)](_0x5c686c=>Boolean(_0x5c686c)),_0x4a1c0e=_0x3fa6e0['filter'](_0x144a50=>_0x144a50[_0x2c6c19(0x248)]===_0x2c6c19(0x237)),_0x54de31=_0x3fa6e0[_0x2c6c19(0x227)](_0x2f1248=>_0x2f1248[_0x2c6c19(0x248)]===_0x2c6c19(0x20f)),_0x9bd9cb=_0x3fa6e0[_0x2c6c19(0x227)](_0x3b8b82=>_0x3b8b82['scope']===_0x2c6c19(0x1fd));return{'appCode':_0x795def,'personal':_0x1d4ae9===_0x2c6c19(0x20f)||_0x1d4ae9===_0x2c6c19(0x1fd)?[]:_0x4a1c0e,'company':_0x1d4ae9===_0x2c6c19(0x237)||_0x1d4ae9===_0x2c6c19(0x1fd)?[]:_0x54de31,'public':_0x1d4ae9===_0x2c6c19(0x237)||_0x1d4ae9==='company'?[]:_0x9bd9cb,'effective':buildEffectiveRuntimeSkills(_0x4a1c0e,_0x54de31,_0x9bd9cb,_0x1d4ae9)};}function skillHubRuntimeItemToRuntimeSkill(_0xba6fba){const _0x4ca0d3=a56_0x455e,_0x5508a1=_0xba6fba[_0x4ca0d3(0x230)]?.[_0x4ca0d3(0x202)](),_0x1b6c9e=skillHubVisibilityToScope(_0xba6fba[_0x4ca0d3(0x214)]);if(!_0x5508a1||!_0x1b6c9e)return undefined;return{'id':_0xba6fba['id'],'appCode':_0xba6fba[_0x4ca0d3(0x201)],'skillCode':_0x5508a1,'skillName':_0xba6fba[_0x4ca0d3(0x207)]??_0x5508a1,'description':_0xba6fba[_0x4ca0d3(0x200)],'scope':_0x1b6c9e,'version':skillHubRuntimeItemVersion(_0xba6fba),'status':_0xba6fba['status']};}function skillHubVisibilityToScope(_0x2d1201){const _0x294571=a56_0x455e;if(_0x2d1201===_0x294571(0x1f0))return _0x294571(0x237);if(_0x2d1201==='NAMESPACE_ONLY')return _0x294571(0x20f);if(_0x2d1201==='PUBLIC')return _0x294571(0x1fd);return undefined;}function skillHubRuntimeItemVersion(_0x42b94c){const _0x5bd0b5=a56_0x455e;return _0x42b94c['publishedVersion']?.[_0x5bd0b5(0x1dc)]??_0x42b94c[_0x5bd0b5(0x24e)]?.[_0x5bd0b5(0x1dc)]??_0x42b94c[_0x5bd0b5(0x247)]?.[_0x5bd0b5(0x1dc)];}function buildEffectiveRuntimeSkills(_0x24c0dc,_0x13c83b,_0x14f175,_0x32f62b){const _0x3408c5=a56_0x455e;if(_0x32f62b===_0x3408c5(0x237))return _0x24c0dc;if(_0x32f62b===_0x3408c5(0x20f))return _0x13c83b;if(_0x32f62b===_0x3408c5(0x1fd))return _0x14f175;const _0x35f4b9=new Map();for(const _0x537e39 of _0x14f175){_0x35f4b9[_0x3408c5(0x1fc)](_0x537e39[_0x3408c5(0x229)],_0x537e39);}for(const _0x529775 of _0x13c83b){_0x35f4b9[_0x3408c5(0x1fc)](_0x529775[_0x3408c5(0x229)],_0x529775);}for(const _0x191438 of _0x24c0dc){_0x35f4b9[_0x3408c5(0x1fc)](_0x191438[_0x3408c5(0x229)],_0x191438);}return Array[_0x3408c5(0x225)](_0x35f4b9['values']());}function normalizeRuntimeSkillListResponse(_0x33353d,_0x11d968){const _0x465ae1=a56_0x455e;if(Array[_0x465ae1(0x23f)](_0x11d968)){const _0x51cb21=_0x11d968[_0x465ae1(0x227)](_0x34dfde=>_0x34dfde['scope']==='personal'),_0x4ef33b=_0x11d968[_0x465ae1(0x227)](_0x5da4b4=>_0x5da4b4[_0x465ae1(0x248)]===_0x465ae1(0x20f)),_0x1a3bce=_0x11d968[_0x465ae1(0x227)](_0x1e4eb5=>_0x1e4eb5[_0x465ae1(0x248)]===_0x465ae1(0x1fd));return{'appCode':_0x33353d,'personal':_0x51cb21,'company':_0x4ef33b,'public':_0x1a3bce,'effective':_0x11d968[_0x465ae1(0x227)](_0x8c6bbc=>_0x8c6bbc[_0x465ae1(0x248)]!==_0x465ae1(0x1db))};}return{'appCode':_0x11d968?.['appCode']??_0x33353d,'personal':Array[_0x465ae1(0x23f)](_0x11d968?.[_0x465ae1(0x237)])?_0x11d968[_0x465ae1(0x237)]:[],'company':Array[_0x465ae1(0x23f)](_0x11d968?.[_0x465ae1(0x20f)])?_0x11d968['company']:[],'public':Array['isArray'](_0x11d968?.[_0x465ae1(0x1fd)])?_0x11d968[_0x465ae1(0x1fd)]:[],'effective':Array[_0x465ae1(0x23f)](_0x11d968?.['effective'])?_0x11d968[_0x465ae1(0x1dd)]:[]};}
@@ -1 +1 @@
1
- (function(_0x5b1cb7,_0x46f432){const _0x4cb367=a57_0x531c,_0x19519f=_0x5b1cb7();while(!![]){try{const _0x1ca2d2=parseInt(_0x4cb367(0x1c6))/0x1+-parseInt(_0x4cb367(0x1ba))/0x2*(parseInt(_0x4cb367(0x1b9))/0x3)+-parseInt(_0x4cb367(0x1bc))/0x4+-parseInt(_0x4cb367(0x1bf))/0x5+parseInt(_0x4cb367(0x1c3))/0x6+-parseInt(_0x4cb367(0x1b8))/0x7*(-parseInt(_0x4cb367(0x1bd))/0x8)+-parseInt(_0x4cb367(0x1c5))/0x9;if(_0x1ca2d2===_0x46f432)break;else _0x19519f['push'](_0x19519f['shift']());}catch(_0x197ee5){_0x19519f['push'](_0x19519f['shift']());}}}(a57_0x2e8d,0x3beb2));import{listDatasets}from'../core/api-client.js';const cache=new Map();export async function listDatabases(_0x22fd1c){const _0x5b65a4=a57_0x531c;if(cache[_0x5b65a4(0x1c7)](_0x22fd1c))return cache[_0x5b65a4(0x1b7)](_0x22fd1c);const _0x513e80=await listDatasets(_0x22fd1c),_0xf1473=new Map();for(const _0x137726 of _0x513e80){const _0x6a9234=_0x137726[_0x5b65a4(0x1c4)];_0x6a9234?.[_0x5b65a4(0x1bb)]!=null&&_0xf1473['set'](_0x6a9234[_0x5b65a4(0x1bb)],_0x6a9234['dbName']??_0x5b65a4(0x1be)+_0x6a9234[_0x5b65a4(0x1bb)]);}const _0x46b1a1=[..._0xf1473[_0x5b65a4(0x1c0)]()][_0x5b65a4(0x1c1)](([_0x5c12ea,_0x455846])=>({'dbId':_0x5c12ea,'dbName':_0x455846}));return cache['set'](_0x22fd1c,_0x46b1a1),_0x46b1a1;}function a57_0x531c(_0x168925,_0x5ddd06){_0x168925=_0x168925-0x1b7;const _0x2e8dd4=a57_0x2e8d();let _0x531c5b=_0x2e8dd4[_0x168925];return _0x531c5b;}export async function getDbName(_0xd97496,_0x33fb92){const _0x3a68a8=a57_0x531c;try{const _0x1b3eb0=await listDatabases(_0xd97496);return _0x1b3eb0[_0x3a68a8(0x1c2)](_0x3353e4=>_0x3353e4[_0x3a68a8(0x1bb)]===_0x33fb92)?.['dbName'];}catch{return undefined;}}function a57_0x2e8d(){const _0x1fa890=['281488YClafM','db-','2044615wlsRSg','entries','map','find','2268864OBTBhN','dbtableConfig','2830293mVwIDM','320014NFyxzr','has','get','91PXBwZr','1884qSiRTg','158QlfMvC','dbId','548552jWwzDn'];a57_0x2e8d=function(){return _0x1fa890;};return a57_0x2e8d();}
1
+ (function(_0x12be22,_0x41b11c){const _0x2189eb=a57_0x1c05,_0x5ddeb0=_0x12be22();while(!![]){try{const _0x252c92=-parseInt(_0x2189eb(0x1c1))/0x1+-parseInt(_0x2189eb(0x1cd))/0x2+-parseInt(_0x2189eb(0x1c2))/0x3+-parseInt(_0x2189eb(0x1c3))/0x4+parseInt(_0x2189eb(0x1cb))/0x5*(parseInt(_0x2189eb(0x1c8))/0x6)+parseInt(_0x2189eb(0x1ca))/0x7+-parseInt(_0x2189eb(0x1c6))/0x8*(-parseInt(_0x2189eb(0x1cc))/0x9);if(_0x252c92===_0x41b11c)break;else _0x5ddeb0['push'](_0x5ddeb0['shift']());}catch(_0xcc42f9){_0x5ddeb0['push'](_0x5ddeb0['shift']());}}}(a57_0x2c88,0xbd2d3));import{listDatasets}from'../core/api-client.js';const cache=new Map();function a57_0x1c05(_0x31be79,_0x48f362){_0x31be79=_0x31be79-0x1c1;const _0x2c889a=a57_0x2c88();let _0x1c0557=_0x2c889a[_0x31be79];return _0x1c0557;}function a57_0x2c88(){const _0x2a8d23=['dbName','697698ZIcgZM','3162051AfKuNC','4909468IIbEVL','find','get','10096QGrTpc','dbtableConfig','99258HVqbyr','dbId','882742TOMZKf','145gJmYLE','30618qROEKD','2290456ZqjdUR','has','map','set','db-'];a57_0x2c88=function(){return _0x2a8d23;};return a57_0x2c88();}export async function listDatabases(_0x4d23e0){const _0x40ba28=a57_0x1c05;if(cache[_0x40ba28(0x1ce)](_0x4d23e0))return cache[_0x40ba28(0x1c5)](_0x4d23e0);const _0x567a8e=await listDatasets(_0x4d23e0),_0xa3ebd1=new Map();for(const _0x59f5ef of _0x567a8e){const _0x4b9a12=_0x59f5ef[_0x40ba28(0x1c7)];_0x4b9a12?.[_0x40ba28(0x1c9)]!=null&&_0xa3ebd1[_0x40ba28(0x1d0)](_0x4b9a12[_0x40ba28(0x1c9)],_0x4b9a12['dbName']??_0x40ba28(0x1d1)+_0x4b9a12[_0x40ba28(0x1c9)]);}const _0x1cc844=[..._0xa3ebd1['entries']()][_0x40ba28(0x1cf)](([_0x54d418,_0x3ba7a7])=>({'dbId':_0x54d418,'dbName':_0x3ba7a7}));return cache[_0x40ba28(0x1d0)](_0x4d23e0,_0x1cc844),_0x1cc844;}export async function getDbName(_0x473ed3,_0x1aac08){const _0x545e7d=a57_0x1c05;try{const _0x35e810=await listDatabases(_0x473ed3);return _0x35e810[_0x545e7d(0x1c4)](_0x220fb0=>_0x220fb0['dbId']===_0x1aac08)?.[_0x545e7d(0x1d2)];}catch{return undefined;}}
@@ -1 +1 @@
1
- (function(_0x5f55dd,_0x2b8154){const _0x23aad3=a58_0xbba4,_0x516730=_0x5f55dd();while(!![]){try{const _0x4fe90b=-parseInt(_0x23aad3(0x1b9))/0x1+parseInt(_0x23aad3(0x1bd))/0x2+-parseInt(_0x23aad3(0x1cb))/0x3*(-parseInt(_0x23aad3(0x1c4))/0x4)+parseInt(_0x23aad3(0x1bf))/0x5*(-parseInt(_0x23aad3(0x1cc))/0x6)+parseInt(_0x23aad3(0x1d3))/0x7*(parseInt(_0x23aad3(0x1c0))/0x8)+-parseInt(_0x23aad3(0x1c3))/0x9*(parseInt(_0x23aad3(0x1c5))/0xa)+parseInt(_0x23aad3(0x1b3))/0xb;if(_0x4fe90b===_0x2b8154)break;else _0x516730['push'](_0x516730['shift']());}catch(_0x147483){_0x516730['push'](_0x516730['shift']());}}}(a58_0x1482,0xe0d00));import{createClient}from'@lovrabet/sdk';import{PRODUCT_CONFIG}from'../constant/product.js';import{CliErrors}from'../errors.js';import{parseBatchCreateItemsFromParams}from'../utils/params.js';let _client;export function initSdkClient(_0x511ff1){const _0x398877=a58_0xbba4;_client=createClient({'appCode':_0x511ff1[_0x398877(0x1ad)],'env':_0x511ff1[_0x398877(0x1be)],'authMode':_0x511ff1[_0x398877(0x1ca)],..._0x511ff1[_0x398877(0x1d1)]?{'accessKey':_0x511ff1['accessKey']}:{},'options':{'timeout':0x7530,'headers':{'X-Invoke-Source':PRODUCT_CONFIG[_0x398877(0x1c9)]}}});}function ensureClient(){if(!_client)throw new Error('SDK\x20client\x20not\x20initialized.\x20Call\x20initSdkClient()\x20first.');return _client;}function normalizeAggregateParams(_0x413416){const _0x4089a8=a58_0xbba4,_0x16d0b0=_0x413416[_0x4089a8(0x1ce)];if(_0x16d0b0===undefined)return _0x413416;if(!Array[_0x4089a8(0x1c8)](_0x16d0b0))throw CliErrors['validation'](_0x4089a8(0x1d2));return{..._0x413416,'aggregate':_0x16d0b0[_0x4089a8(0x1cf)]((_0x421198,_0x514dd7)=>{const _0x48c673=_0x4089a8;if(!_0x421198||typeof _0x421198!==_0x48c673(0x1c1)||Array[_0x48c673(0x1c8)](_0x421198))throw CliErrors['validation'](_0x48c673(0x1d0)+_0x514dd7+']\x20must\x20be\x20an\x20object.');const _0x1c949d=_0x421198[_0x48c673(0x1bc)]??_0x421198['field'];if(typeof _0x1c949d!==_0x48c673(0x1b6)||_0x1c949d[_0x48c673(0x1b7)]()==='')throw CliErrors[_0x48c673(0x1c2)](_0x48c673(0x1d0)+_0x514dd7+_0x48c673(0x1af));const _0xf0bfbd={..._0x421198,'column':_0x1c949d};return delete _0xf0bfbd[_0x48c673(0x1cd)],_0xf0bfbd;})};}function a58_0x1482(){const _0x674307=['trim','batchCreate','1207457klkwgk','function','update','column','2649252FzxMsT','env','5ZWXaik','40ikXqMd','object','validation','9FwLsOp','40892aTjJHS','14514810WpZzcJ','getOne','models','isArray','invokeSource','authMode','291yzTuhk','7503036lbUPdO','field','aggregate','map','data\x20aggregate\x20--params.aggregate[','accessKey','data\x20aggregate\x20--params.aggregate\x20must\x20be\x20an\x20array.','2202214xFBtGQ','appCode','\x22.\x20',']\x20requires\x20\x22column\x22;\x20\x22field\x22\x20is\x20accepted\x20only\x20as\x20a\x20deprecated\x20alias.','getOne\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123}\x27','bff','sql','10351099JdOqCi','delete\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123}\x27','execute','string'];a58_0x1482=function(){return _0x674307;};return a58_0x1482();}export async function executeData(_0x30883a,_0x39cd2d,_0x27a746){const _0x2ec21d=a58_0xbba4,_0xa1bc45=ensureClient(),_0x2944ca='dataset_'+_0x30883a,_0x40be7c=_0xa1bc45[_0x2ec21d(0x1c7)][_0x2944ca];if(!_0x40be7c||typeof _0x40be7c[_0x39cd2d]!==_0x2ec21d(0x1ba))throw new Error('SDK\x20model\x20does\x20not\x20support\x20operation\x20\x22'+_0x39cd2d+_0x2ec21d(0x1ae)+'Available:\x20filter,\x20getOne,\x20create,\x20batchCreate,\x20update,\x20delete,\x20aggregate.');if(_0x39cd2d==='batchCreate')return _0x40be7c[_0x2ec21d(0x1b8)](parseBatchCreateItemsFromParams(_0x27a746));const _0x5618fe=_0x27a746!==undefined&&_0x27a746!==null&&!Array[_0x2ec21d(0x1c8)](_0x27a746)?_0x27a746:{};switch(_0x39cd2d){case _0x2ec21d(0x1c6):{const _0x383df7=_0x5618fe['id'];if(_0x383df7===undefined||_0x383df7===null)throw new Error(_0x2ec21d(0x1b0));return _0x40be7c[_0x2ec21d(0x1c6)](_0x383df7);}case'update':{const {id:_0x1359d0,..._0x27a6fa}=_0x5618fe;if(_0x1359d0===undefined||_0x1359d0===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 _0x40be7c[_0x2ec21d(0x1bb)](_0x1359d0,_0x27a6fa);}case'delete':{const _0x4eab17=_0x5618fe['id'];if(_0x4eab17===undefined||_0x4eab17===null)throw new Error(_0x2ec21d(0x1b4));return _0x40be7c['delete'](_0x4eab17);}case'aggregate':return _0x40be7c['aggregate'](normalizeAggregateParams(_0x5618fe));default:return _0x40be7c[_0x39cd2d](_0x5618fe);}}export async function executeSdkSql(_0x1a6db4,_0x5547bf){const _0x2e3b41=a58_0xbba4,_0x33dd8a=ensureClient();return _0x33dd8a[_0x2e3b41(0x1b2)][_0x2e3b41(0x1b5)]({'sqlCode':_0x1a6db4,'params':_0x5547bf});}function a58_0xbba4(_0x360f3c,_0x11c755){_0x360f3c=_0x360f3c-0x1ad;const _0x1482e4=a58_0x1482();let _0xbba415=_0x1482e4[_0x360f3c];return _0xbba415;}export async function executeSdkBff(_0x592763,_0x493a9f){const _0xcd3c8f=a58_0xbba4,_0x433546=ensureClient();return _0x433546[_0xcd3c8f(0x1b1)][_0xcd3c8f(0x1b5)]({'scriptName':_0x592763,'params':_0x493a9f});}
1
+ (function(_0x1ee6ad,_0x1419a2){const _0x11283=a58_0x43b6,_0x400544=_0x1ee6ad();while(!![]){try{const _0x525a70=parseInt(_0x11283(0xb4))/0x1*(-parseInt(_0x11283(0xd4))/0x2)+-parseInt(_0x11283(0xc1))/0x3*(-parseInt(_0x11283(0xd2))/0x4)+-parseInt(_0x11283(0xc7))/0x5*(parseInt(_0x11283(0xbd))/0x6)+-parseInt(_0x11283(0xc9))/0x7+parseInt(_0x11283(0xb1))/0x8+-parseInt(_0x11283(0xb9))/0x9+parseInt(_0x11283(0xbc))/0xa;if(_0x525a70===_0x1419a2)break;else _0x400544['push'](_0x400544['shift']());}catch(_0x59be17){_0x400544['push'](_0x400544['shift']());}}}(a58_0x5c2e,0x6fef2));import{createClient}from'@lovrabet/sdk';import{PRODUCT_CONFIG}from'../constant/product.js';import{CliErrors}from'../errors.js';import{parseBatchCreateItemsFromParams}from'../utils/params.js';function a58_0x5c2e(){const _0x2cfc27=['execute','env','delete\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123}\x27',']\x20requires\x20\x22column\x22;\x20\x22field\x22\x20is\x20accepted\x20only\x20as\x20a\x20deprecated\x20alias.','bff','update\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123,\x22name\x22:\x22new\x22}\x27','28TaRuHl',']\x20must\x20be\x20an\x20object.','623190KnrYQh','isArray','2981896kfJgYt','dataset_','Available:\x20filter,\x20getOne,\x20create,\x20batchCreate,\x20update,\x20delete,\x20aggregate.','1eXfeJD','validation','batchCreate','SDK\x20client\x20not\x20initialized.\x20Call\x20initSdkClient()\x20first.','appCode','662994aEHvKj','delete','getOne','8921580lCnACk','264CdzjFk','update','object','getOne\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123}\x27','41433iWLRYP','column','sql','\x22.\x20','aggregate','data\x20aggregate\x20--params.aggregate[','4175WyjOtn','invokeSource','3367623UWmHkM','field','accessKey'];a58_0x5c2e=function(){return _0x2cfc27;};return a58_0x5c2e();}let _client;export function initSdkClient(_0x49564e){const _0x14fdb1=a58_0x43b6;_client=createClient({'appCode':_0x49564e[_0x14fdb1(0xb8)],'env':_0x49564e[_0x14fdb1(0xcd)],'authMode':_0x49564e['authMode'],..._0x49564e[_0x14fdb1(0xcb)]?{'accessKey':_0x49564e[_0x14fdb1(0xcb)]}:{},'options':{'timeout':0x7530,'headers':{'X-Invoke-Source':PRODUCT_CONFIG[_0x14fdb1(0xc8)]}}});}function ensureClient(){const _0x2f9fec=a58_0x43b6;if(!_client)throw new Error(_0x2f9fec(0xb7));return _client;}function normalizeAggregateParams(_0x59677a){const _0x409364=a58_0x43b6,_0x48014f=_0x59677a[_0x409364(0xc5)];if(_0x48014f===undefined)return _0x59677a;if(!Array[_0x409364(0xd5)](_0x48014f))throw CliErrors[_0x409364(0xb5)]('data\x20aggregate\x20--params.aggregate\x20must\x20be\x20an\x20array.');return{..._0x59677a,'aggregate':_0x48014f['map']((_0x5679b5,_0x1e7bf7)=>{const _0x2b94f6=_0x409364;if(!_0x5679b5||typeof _0x5679b5!==_0x2b94f6(0xbf)||Array[_0x2b94f6(0xd5)](_0x5679b5))throw CliErrors['validation']('data\x20aggregate\x20--params.aggregate['+_0x1e7bf7+_0x2b94f6(0xd3));const _0x180144=_0x5679b5[_0x2b94f6(0xc2)]??_0x5679b5['field'];if(typeof _0x180144!=='string'||_0x180144['trim']()==='')throw CliErrors['validation'](_0x2b94f6(0xc6)+_0x1e7bf7+_0x2b94f6(0xcf));const _0x315232={..._0x5679b5,'column':_0x180144};return delete _0x315232[_0x2b94f6(0xca)],_0x315232;})};}export async function executeData(_0x4f84f7,_0x32bfe9,_0x39940b){const _0x256d81=a58_0x43b6,_0x508534=ensureClient(),_0x5b04c0=_0x256d81(0xb2)+_0x4f84f7,_0x126f03=_0x508534['models'][_0x5b04c0];if(!_0x126f03||typeof _0x126f03[_0x32bfe9]!=='function')throw new Error('SDK\x20model\x20does\x20not\x20support\x20operation\x20\x22'+_0x32bfe9+_0x256d81(0xc4)+_0x256d81(0xb3));if(_0x32bfe9===_0x256d81(0xb6))return _0x126f03[_0x256d81(0xb6)](parseBatchCreateItemsFromParams(_0x39940b));const _0xcd9ad1=_0x39940b!==undefined&&_0x39940b!==null&&!Array[_0x256d81(0xd5)](_0x39940b)?_0x39940b:{};switch(_0x32bfe9){case'getOne':{const _0x202fde=_0xcd9ad1['id'];if(_0x202fde===undefined||_0x202fde===null)throw new Error(_0x256d81(0xc0));return _0x126f03[_0x256d81(0xbb)](_0x202fde);}case _0x256d81(0xbe):{const {id:_0x57d036,..._0x10ed02}=_0xcd9ad1;if(_0x57d036===undefined||_0x57d036===null)throw new Error(_0x256d81(0xd1));return _0x126f03['update'](_0x57d036,_0x10ed02);}case _0x256d81(0xba):{const _0x3e9c76=_0xcd9ad1['id'];if(_0x3e9c76===undefined||_0x3e9c76===null)throw new Error(_0x256d81(0xce));return _0x126f03[_0x256d81(0xba)](_0x3e9c76);}case _0x256d81(0xc5):return _0x126f03[_0x256d81(0xc5)](normalizeAggregateParams(_0xcd9ad1));default:return _0x126f03[_0x32bfe9](_0xcd9ad1);}}function a58_0x43b6(_0x3668b5,_0x4be282){_0x3668b5=_0x3668b5-0xb1;const _0x5c2e6c=a58_0x5c2e();let _0x43b6c0=_0x5c2e6c[_0x3668b5];return _0x43b6c0;}export async function executeSdkSql(_0x1e8993,_0x3d12ce){const _0x23cd07=a58_0x43b6,_0x4f71fc=ensureClient();return _0x4f71fc[_0x23cd07(0xc3)][_0x23cd07(0xcc)]({'sqlCode':_0x1e8993,'params':_0x3d12ce});}export async function executeSdkBff(_0x1b76e0,_0x281fee){const _0x40dc85=a58_0x43b6,_0x40bd8d=ensureClient();return _0x40bd8d[_0x40dc85(0xd0)][_0x40dc85(0xcc)]({'scriptName':_0x1b76e0,'params':_0x281fee});}
package/lib/errors.js CHANGED
@@ -1 +1 @@
1
- const a59_0x22f634=a59_0x4f18;function a59_0x5139(){const _0x49d011=['231160gAMuWa','36560iZlxsc','800560etGYTl','1juskdg','7559202PVqUyz','143OkMJNA','3494334kUBbio','\x20auth\x20login`.','newConfigFileName','Run\x20this\x20command\x20inside\x20a\x20directory\x20with\x20a\x20','8PyVtEd','2210268JyMjgf','2355777xlnite','235JIovdg','Configure\x20accessKey\x20in\x20'];a59_0x5139=function(){return _0x49d011;};return a59_0x5139();}function a59_0x4f18(_0x112951,_0x5f4e91){_0x112951=_0x112951-0x1d4;const _0x5139fb=a59_0x5139();let _0x4f18ec=_0x5139fb[_0x112951];return _0x4f18ec;}(function(_0x1ec2a9,_0x2f1099){const _0x4717f6=a59_0x4f18,_0x3ff737=_0x1ec2a9();while(!![]){try{const _0x32a45f=parseInt(_0x4717f6(0x1db))/0x1*(-parseInt(_0x4717f6(0x1d8))/0x2)+parseInt(_0x4717f6(0x1de))/0x3+parseInt(_0x4717f6(0x1d9))/0x4*(-parseInt(_0x4717f6(0x1d6))/0x5)+parseInt(_0x4717f6(0x1d4))/0x6+-parseInt(_0x4717f6(0x1dc))/0x7+parseInt(_0x4717f6(0x1e2))/0x8*(-parseInt(_0x4717f6(0x1d5))/0x9)+parseInt(_0x4717f6(0x1da))/0xa*(parseInt(_0x4717f6(0x1dd))/0xb);if(_0x32a45f===_0x2f1099)break;else _0x3ff737['push'](_0x3ff737['shift']());}catch(_0x26a176){_0x3ff737['push'](_0x3ff737['shift']());}}}(a59_0x5139,0xa7bed));import{CliError,createCliErrors}from'@lovrabet/cli-framework';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':a59_0x22f634(0x1d7)+PRODUCT_CONFIG['newConfigFileName']+'\x20or\x20run\x20`'+CLI_BIN_NAME+a59_0x22f634(0x1df),'configMissingHint':'Set\x20appcode\x20via\x20--appcode\x20or\x20'+PRODUCT_CONFIG[a59_0x22f634(0x1e0)]+'.','notInProjectHint':a59_0x22f634(0x1e1)+PRODUCT_CONFIG[a59_0x22f634(0x1e0)]+'\x20file.'});
1
+ const a59_0x1195f0=a59_0x1a82;(function(_0x4571de,_0x19c295){const _0x33be63=a59_0x1a82,_0x5c2a63=_0x4571de();while(!![]){try{const _0x463bfa=parseInt(_0x33be63(0xc3))/0x1*(parseInt(_0x33be63(0xc1))/0x2)+-parseInt(_0x33be63(0xc9))/0x3+parseInt(_0x33be63(0xcd))/0x4*(-parseInt(_0x33be63(0xc5))/0x5)+-parseInt(_0x33be63(0xc7))/0x6+-parseInt(_0x33be63(0xc6))/0x7+parseInt(_0x33be63(0xc2))/0x8*(-parseInt(_0x33be63(0xcb))/0x9)+parseInt(_0x33be63(0xbe))/0xa*(parseInt(_0x33be63(0xc0))/0xb);if(_0x463bfa===_0x19c295)break;else _0x5c2a63['push'](_0x5c2a63['shift']());}catch(_0xfeba42){_0x5c2a63['push'](_0x5c2a63['shift']());}}}(a59_0x2e6f,0x5021c));function a59_0x2e6f(){const _0x5ef165=['308101AJURNY','\x20file.','55yGqrdE','2258522QKdHXC','2921766TnUhmZ','Run\x20this\x20command\x20inside\x20a\x20directory\x20with\x20a\x20','1707597IfPdud','Configure\x20accessKey\x20in\x20','153bVfRPA','Set\x20appcode\x20via\x20--appcode\x20or\x20','134308XpxkAa','\x20or\x20run\x20`','290vpNcPn','newConfigFileName','904519cNJKzG','2FbGnCy','290056nIJKvW'];a59_0x2e6f=function(){return _0x5ef165;};return a59_0x2e6f();}import{CliError,createCliErrors}from'@lovrabet/cli-framework';import{CLI_BIN_NAME}from'./constant/cli.js';import{PRODUCT_CONFIG}from'./constant/product.js';export{CliError};function a59_0x1a82(_0x58e4e5,_0x823c3e){_0x58e4e5=_0x58e4e5-0xbd;const _0x2e6ffa=a59_0x2e6f();let _0x1a8215=_0x2e6ffa[_0x58e4e5];return _0x1a8215;}export const CliErrors=createCliErrors({'cliBinName':CLI_BIN_NAME,'authRequiredHint':a59_0x1195f0(0xca)+PRODUCT_CONFIG[a59_0x1195f0(0xbf)]+a59_0x1195f0(0xbd)+CLI_BIN_NAME+'\x20auth\x20login`.','configMissingHint':a59_0x1195f0(0xcc)+PRODUCT_CONFIG[a59_0x1195f0(0xbf)]+'.','notInProjectHint':a59_0x1195f0(0xc8)+PRODUCT_CONFIG['newConfigFileName']+a59_0x1195f0(0xc4)});
@@ -1 +1 @@
1
- function a60_0x4ad0(_0x45f3ec,_0x114522){_0x45f3ec=_0x45f3ec-0xa8;var _0x49055e=a60_0x4905();var _0x4ad08a=_0x49055e[_0x45f3ec];return _0x4ad08a;}function a60_0x4905(){var _0x2e004a=['547534dDWqQp','44ZfywVz','2201550UfbGbh','760mUVCXE','8KOHfWz','1955776IounDz','1112931oFBBXC','153102ZoUdJD','273DvVHFA','2191815GLtKMR','93627KueWLl'];a60_0x4905=function(){return _0x2e004a;};return a60_0x4905();}(function(_0x4977f6,_0x41afce){var _0x2646d0=a60_0x4ad0,_0x2f0f27=_0x4977f6();while(!![]){try{var _0x574879=-parseInt(_0x2646d0(0xab))/0x1+parseInt(_0x2646d0(0xaf))/0x2*(parseInt(_0x2646d0(0xb1))/0x3)+-parseInt(_0x2646d0(0xb0))/0x4+-parseInt(_0x2646d0(0xa9))/0x5+parseInt(_0x2646d0(0xb2))/0x6*(parseInt(_0x2646d0(0xa8))/0x7)+-parseInt(_0x2646d0(0xae))/0x8*(parseInt(_0x2646d0(0xaa))/0x9)+-parseInt(_0x2646d0(0xad))/0xa*(-parseInt(_0x2646d0(0xac))/0xb);if(_0x574879===_0x41afce)break;else _0x2f0f27['push'](_0x2f0f27['shift']());}catch(_0x1fa266){_0x2f0f27['push'](_0x2f0f27['shift']());}}}(a60_0x4905,0xdae35));import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';import{buildAllFlags as a60_0xdd7f1d}from'@lovrabet/cli-framework';export function buildAllFlags(_0x18c2a5){return a60_0xdd7f1d(_0x18c2a5,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});}
1
+ (function(_0x2fca36,_0x3421b2){var _0x465cd7=a60_0x5c0e,_0x1cc85f=_0x2fca36();while(!![]){try{var _0x5a27ed=parseInt(_0x465cd7(0x1b8))/0x1*(parseInt(_0x465cd7(0x1ba))/0x2)+-parseInt(_0x465cd7(0x1b6))/0x3+-parseInt(_0x465cd7(0x1b5))/0x4*(-parseInt(_0x465cd7(0x1b7))/0x5)+parseInt(_0x465cd7(0x1be))/0x6*(-parseInt(_0x465cd7(0x1bc))/0x7)+-parseInt(_0x465cd7(0x1b4))/0x8+parseInt(_0x465cd7(0x1bd))/0x9+parseInt(_0x465cd7(0x1b9))/0xa*(-parseInt(_0x465cd7(0x1bb))/0xb);if(_0x5a27ed===_0x3421b2)break;else _0x1cc85f['push'](_0x1cc85f['shift']());}catch(_0x4fe447){_0x1cc85f['push'](_0x1cc85f['shift']());}}}(a60_0x41ca,0x4402e));import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';import{buildAllFlags as a60_0x578274}from'@lovrabet/cli-framework';function a60_0x5c0e(_0x19b095,_0x4a5619){_0x19b095=_0x19b095-0x1b4;var _0x41ca0f=a60_0x41ca();var _0x5c0e7f=_0x41ca0f[_0x19b095];return _0x5c0e7f;}function a60_0x41ca(){var _0x52a128=['1MRqCpd','10lemAgP','1049798wFDLEp','8990509NweetR','616LUBSUV','3514527fcUFqs','13782EIVhqI','566264wMgZut','92qmyoSm','33846BavUEA','101020mqhazP'];a60_0x41ca=function(){return _0x52a128;};return a60_0x41ca();}export function buildAllFlags(_0x37b6af){return a60_0x578274(_0x37b6af,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});}
@@ -1 +1 @@
1
- function a61_0x17f7(_0x3d08b6,_0x31c723){_0x3d08b6=_0x3d08b6-0x181;const _0x1bb1b9=a61_0x1bb1();let _0x17f717=_0x1bb1b9[_0x3d08b6];return _0x17f717;}function a61_0x1bb1(){const _0x491ad9=['description','1247870WYjEiA','491890FNVdyJ','1408605BxKvEm','81495HvowWI','7LTVJtx','364794Fsnuol','20mFCvMD','376SgVhMf','476233ZtssFY','12795360UOOfAN'];a61_0x1bb1=function(){return _0x491ad9;};return a61_0x1bb1();}(function(_0x5d4004,_0x5b6185){const _0x5e64f0=a61_0x17f7,_0x52ef34=_0x5d4004();while(!![]){try{const _0x3db0a5=-parseInt(_0x5e64f0(0x185))/0x1+parseInt(_0x5e64f0(0x188))/0x2+parseInt(_0x5e64f0(0x18a))/0x3+-parseInt(_0x5e64f0(0x183))/0x4*(-parseInt(_0x5e64f0(0x189))/0x5)+parseInt(_0x5e64f0(0x182))/0x6*(parseInt(_0x5e64f0(0x181))/0x7)+-parseInt(_0x5e64f0(0x184))/0x8*(-parseInt(_0x5e64f0(0x18b))/0x9)+-parseInt(_0x5e64f0(0x186))/0xa;if(_0x3db0a5===_0x5b6185)break;else _0x52ef34['push'](_0x52ef34['shift']());}catch(_0x19b794){_0x52ef34['push'](_0x52ef34['shift']());}}}(a61_0x1bb1,0x4d247));export function dryRun(_0x248885,_0x2747ef){const _0x4339d5={'method':_0x248885,'url':_0x2747ef},_0x1795b4={'body'(_0x3e597c){return _0x4339d5['body']=_0x3e597c,_0x1795b4;},'description'(_0x40f827){const _0x56c63a=a61_0x17f7;return _0x4339d5[_0x56c63a(0x187)]=_0x40f827,_0x1795b4;},'build'(){return{..._0x4339d5};}};return _0x1795b4;}
1
+ function a61_0x44b1(_0x493891,_0x36b5c3){_0x493891=_0x493891-0x171;const _0x1a9291=a61_0x1a92();let _0x44b1e4=_0x1a9291[_0x493891];return _0x44b1e4;}(function(_0x5f4d6a,_0x5de39a){const _0x224808=a61_0x44b1,_0x5000bf=_0x5f4d6a();while(!![]){try{const _0x1a9e29=-parseInt(_0x224808(0x179))/0x1*(-parseInt(_0x224808(0x178))/0x2)+-parseInt(_0x224808(0x177))/0x3+parseInt(_0x224808(0x175))/0x4+-parseInt(_0x224808(0x171))/0x5+-parseInt(_0x224808(0x17a))/0x6+-parseInt(_0x224808(0x174))/0x7*(parseInt(_0x224808(0x173))/0x8)+parseInt(_0x224808(0x176))/0x9;if(_0x1a9e29===_0x5de39a)break;else _0x5000bf['push'](_0x5000bf['shift']());}catch(_0x59d6c7){_0x5000bf['push'](_0x5000bf['shift']());}}}(a61_0x1a92,0x9fbe9));export function dryRun(_0x25500f,_0x4f0865){const _0x6f2adf={'method':_0x25500f,'url':_0x4f0865},_0x29abbb={'body'(_0xce848c){return _0x6f2adf['body']=_0xce848c,_0x29abbb;},'description'(_0x470aa9){const _0x169405=a61_0x44b1;return _0x6f2adf[_0x169405(0x172)]=_0x470aa9,_0x29abbb;},'build'(){return{..._0x6f2adf};}};return _0x29abbb;}function a61_0x1a92(){const _0xc45f61=['9uIpLUc','6838530WWhAkF','4452870ylXbgk','description','1646984nkYOsl','14GrVgSL','500532TDoSVV','26529597vUwEiV','2122347dTOAXi','162438MyoNDw'];a61_0x1a92=function(){return _0xc45f61;};return a61_0x1a92();}
@@ -1 +1 @@
1
- const a62_0x2a5741=a62_0x1fd2;function a62_0x1fd2(_0x400195,_0x3768f6){_0x400195=_0x400195-0x134;const _0xbfc1c5=a62_0xbfc1();let _0x1fd214=_0xbfc1c5[_0x400195];return _0x1fd214;}(function(_0x784b11,_0x301536){const _0x5a25d7=a62_0x1fd2,_0x19ddad=_0x784b11();while(!![]){try{const _0x3f210a=-parseInt(_0x5a25d7(0x139))/0x1+-parseInt(_0x5a25d7(0x138))/0x2*(parseInt(_0x5a25d7(0x134))/0x3)+-parseInt(_0x5a25d7(0x136))/0x4*(-parseInt(_0x5a25d7(0x13e))/0x5)+parseInt(_0x5a25d7(0x13b))/0x6+-parseInt(_0x5a25d7(0x13f))/0x7+-parseInt(_0x5a25d7(0x135))/0x8*(parseInt(_0x5a25d7(0x137))/0x9)+parseInt(_0x5a25d7(0x13d))/0xa;if(_0x3f210a===_0x301536)break;else _0x19ddad['push'](_0x19ddad['shift']());}catch(_0x4c1251){_0x19ddad['push'](_0x19ddad['shift']());}}}(a62_0xbfc1,0x7b71a));import{createFlagHelpers}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';const helpers=createFlagHelpers(CliErrors);function a62_0xbfc1(){const _0x13ee4b=['919253GnvIcB','validateFlags','5920980tXqhlg','parseFlags','21573610MrbPHf','10syyHrz','3885609IpasjF','437217iLJXYf','152KYxzkz','195964DKtzXv','459819QdyQvy','4zXkLJz'];a62_0xbfc1=function(){return _0x13ee4b;};return a62_0xbfc1();}export const parseFlags=helpers[a62_0x2a5741(0x13c)];export const validateFlags=helpers[a62_0x2a5741(0x13a)];
1
+ const a62_0x5c1f6c=a62_0x3917;function a62_0x3802(){const _0x1d389b=['2574030GmFrBx','230BCIFQs','28wibqZb','parseFlags','5924wNgsWN','69489BnbGVo','2361369RJZhVk','755JsYIqw','4684928oVgJJf','83277lKvVoZ','46933XiJlyv'];a62_0x3802=function(){return _0x1d389b;};return a62_0x3802();}(function(_0xe011d7,_0x3a163e){const _0x20a734=a62_0x3917,_0x368254=_0xe011d7();while(!![]){try{const _0x20022d=parseInt(_0x20a734(0xb2))/0x1*(parseInt(_0x20a734(0xaa))/0x2)+parseInt(_0x20a734(0xae))/0x3+parseInt(_0x20a734(0xac))/0x4*(parseInt(_0x20a734(0xaf))/0x5)+-parseInt(_0x20a734(0xa8))/0x6+parseInt(_0x20a734(0xad))/0x7+-parseInt(_0x20a734(0xb0))/0x8+-parseInt(_0x20a734(0xb1))/0x9*(parseInt(_0x20a734(0xa9))/0xa);if(_0x20022d===_0x3a163e)break;else _0x368254['push'](_0x368254['shift']());}catch(_0x4ee3cb){_0x368254['push'](_0x368254['shift']());}}}(a62_0x3802,0x6deff));import{createFlagHelpers}from'@lovrabet/cli-framework';function a62_0x3917(_0x1b8b24,_0x4df325){_0x1b8b24=_0x1b8b24-0xa8;const _0x380293=a62_0x3802();let _0x3917e7=_0x380293[_0x1b8b24];return _0x3917e7;}import{CliErrors}from'../errors.js';const helpers=createFlagHelpers(CliErrors);export const parseFlags=helpers[a62_0x5c1f6c(0xab)];export const validateFlags=helpers['validateFlags'];
@@ -1 +1 @@
1
- (function(_0x130767,_0x35913a){const _0x415c9e=a63_0xa945,_0x3354a7=_0x130767();while(!![]){try{const _0x265654=-parseInt(_0x415c9e(0xb8))/0x1*(parseInt(_0x415c9e(0xb7))/0x2)+parseInt(_0x415c9e(0xb9))/0x3*(-parseInt(_0x415c9e(0xc5))/0x4)+parseInt(_0x415c9e(0xc3))/0x5*(parseInt(_0x415c9e(0xc8))/0x6)+parseInt(_0x415c9e(0xbc))/0x7+parseInt(_0x415c9e(0xc4))/0x8*(parseInt(_0x415c9e(0xc0))/0x9)+parseInt(_0x415c9e(0xba))/0xa+-parseInt(_0x415c9e(0xc7))/0xb;if(_0x265654===_0x35913a)break;else _0x3354a7['push'](_0x3354a7['shift']());}catch(_0x5e6680){_0x3354a7['push'](_0x3354a7['shift']());}}}(a63_0x5b34,0x2535b));import{createHelpGenerators}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';import{serviceRegistry,serviceGroups,getServiceEntry}from'../commands/registry.js';import{getDynamicServiceDefinitions,getDynamicServiceEntry,listDynamicServiceEntries}from'../commands/service/dynamic.js';function a63_0xa945(_0x220232,_0x54e1df){_0x220232=_0x220232-0xb7;const _0x5b347b=a63_0x5b34();let _0xa9455b=_0x5b347b[_0x220232];return _0xa9455b;}import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';import{PRODUCT_CONFIG}from'../constant/product.js';function createGenerators(){const _0x580045=a63_0xa945;return createHelpGenerators({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'globalFlags':GLOBAL_FLAGS,'serviceRegistry':[...serviceRegistry,...safeListDynamicServiceEntries()],'getServiceEntry':getAnyServiceEntry,'getServiceDefinitions':getAnyServiceDefinitions,'buildAllFlags':buildAllFlags,'appPrerequisiteText':'Requires\x20appcode\x20(set\x20via\x20'+PRODUCT_CONFIG['newConfigFileName']+_0x580045(0xbd)});}export function generateCommandHelp(_0x31ca3a){const _0x4990f1=a63_0xa945;return createGenerators()[_0x4990f1(0xbf)](_0x31ca3a);}export function generateServiceHelp(_0x22a285){return createGenerators()['generateServiceHelp'](_0x22a285);}export function generateFullHelp(){return createGenerators()['generateFullHelp']();}function getAnyServiceEntry(_0x4655dc){const _0x1d8635=getServiceEntry(_0x4655dc);if(_0x1d8635)return _0x1d8635;try{return getDynamicServiceEntry(_0x4655dc);}catch{return undefined;}}function a63_0x5b34(){const _0x62d2da=['571720tKHvvK','36440YfxBRq','service','3562999HFAdfX','66LZylrM','24874EEVwWT','15ZSjkyw','63mWgSWx','2877000nkJnZv','has','2046814gTeDFe','\x20or\x20--appcode).','map','generateCommandHelp','18avgoct','get','filter','59615aXhoVc'];a63_0x5b34=function(){return _0x62d2da;};return a63_0x5b34();}function getAnyServiceDefinitions(_0x5080e0){const _0x237e50=a63_0xa945,_0x409f8f=serviceGroups[_0x237e50(0xc1)](_0x5080e0);if(_0x409f8f)return _0x409f8f;try{return getDynamicServiceDefinitions(_0x5080e0);}catch{return undefined;}}function safeListDynamicServiceEntries(){const _0x43d69f=a63_0xa945,_0x14c983=new Set(serviceRegistry[_0x43d69f(0xbe)](_0x32d641=>_0x32d641[_0x43d69f(0xc6)]));try{return listDynamicServiceEntries()[_0x43d69f(0xc2)](_0x1cd086=>!_0x14c983[_0x43d69f(0xbb)](_0x1cd086[_0x43d69f(0xc6)]));}catch{return[];}}
1
+ (function(_0x27f80c,_0x1cc0bf){const _0x568988=a63_0x10b7,_0x5965fb=_0x27f80c();while(!![]){try{const _0x33b467=parseInt(_0x568988(0xaf))/0x1*(parseInt(_0x568988(0xa2))/0x2)+parseInt(_0x568988(0xac))/0x3+-parseInt(_0x568988(0xa3))/0x4+-parseInt(_0x568988(0xa6))/0x5*(-parseInt(_0x568988(0xa9))/0x6)+parseInt(_0x568988(0xae))/0x7*(-parseInt(_0x568988(0xab))/0x8)+parseInt(_0x568988(0xa7))/0x9+parseInt(_0x568988(0xa8))/0xa;if(_0x33b467===_0x1cc0bf)break;else _0x5965fb['push'](_0x5965fb['shift']());}catch(_0x206025){_0x5965fb['push'](_0x5965fb['shift']());}}}(a63_0x4e59,0xee71b));import{createHelpGenerators}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';import{serviceRegistry,serviceGroups,getServiceEntry}from'../commands/registry.js';function a63_0x10b7(_0xcd3244,_0x563509){_0xcd3244=_0xcd3244-0xa0;const _0x4e5957=a63_0x4e59();let _0x10b74d=_0x4e5957[_0xcd3244];return _0x10b74d;}import{getDynamicServiceDefinitions,getDynamicServiceEntry,listDynamicServiceEntries}from'../commands/service/dynamic.js';function a63_0x4e59(){const _0x217157=['903744iIhwtM','2870424cUXjlq','get','119PvnzjY','48YZMpbc','Requires\x20appcode\x20(set\x20via\x20','map','10676bzjFqY','7645984UrUPtA','has','service','159035idIDoj','5768820naZEKx','14596780fUuMVg','282zzAJfq','\x20or\x20--appcode).'];a63_0x4e59=function(){return _0x217157;};return a63_0x4e59();}import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';import{PRODUCT_CONFIG}from'../constant/product.js';function createGenerators(){const _0x1c0169=a63_0x10b7;return createHelpGenerators({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'globalFlags':GLOBAL_FLAGS,'serviceRegistry':[...serviceRegistry,...safeListDynamicServiceEntries()],'getServiceEntry':getAnyServiceEntry,'getServiceDefinitions':getAnyServiceDefinitions,'buildAllFlags':buildAllFlags,'appPrerequisiteText':_0x1c0169(0xa0)+PRODUCT_CONFIG['newConfigFileName']+_0x1c0169(0xaa)});}export function generateCommandHelp(_0x3123fb){return createGenerators()['generateCommandHelp'](_0x3123fb);}export function generateServiceHelp(_0x18516b){return createGenerators()['generateServiceHelp'](_0x18516b);}export function generateFullHelp(){return createGenerators()['generateFullHelp']();}function getAnyServiceEntry(_0x1c7711){const _0x1b5d8c=getServiceEntry(_0x1c7711);if(_0x1b5d8c)return _0x1b5d8c;try{return getDynamicServiceEntry(_0x1c7711);}catch{return undefined;}}function getAnyServiceDefinitions(_0x4cdfbb){const _0x192cd1=a63_0x10b7,_0x5e84a1=serviceGroups[_0x192cd1(0xad)](_0x4cdfbb);if(_0x5e84a1)return _0x5e84a1;try{return getDynamicServiceDefinitions(_0x4cdfbb);}catch{return undefined;}}function safeListDynamicServiceEntries(){const _0x4ac1bb=a63_0x10b7,_0x447b1c=new Set(serviceRegistry[_0x4ac1bb(0xa1)](_0x4066f4=>_0x4066f4[_0x4ac1bb(0xa5)]));try{return listDynamicServiceEntries()['filter'](_0x381940=>!_0x447b1c[_0x4ac1bb(0xa4)](_0x381940[_0x4ac1bb(0xa5)]));}catch{return[];}}
@@ -1 +1 @@
1
- (function(_0xc74d3d,_0x1d0a41){var _0x3f5440=a64_0x41f4,_0x10d1d8=_0xc74d3d();while(!![]){try{var _0x48f50e=-parseInt(_0x3f5440(0xdb))/0x1*(parseInt(_0x3f5440(0xd8))/0x2)+parseInt(_0x3f5440(0xda))/0x3+parseInt(_0x3f5440(0xd4))/0x4+parseInt(_0x3f5440(0xdd))/0x5+-parseInt(_0x3f5440(0xd6))/0x6*(parseInt(_0x3f5440(0xdc))/0x7)+-parseInt(_0x3f5440(0xd9))/0x8+parseInt(_0x3f5440(0xd7))/0x9*(parseInt(_0x3f5440(0xd5))/0xa);if(_0x48f50e===_0x1d0a41)break;else _0x10d1d8['push'](_0x10d1d8['shift']());}catch(_0x59c441){_0x10d1d8['push'](_0x10d1d8['shift']());}}}(a64_0x4a6b,0x1ae21));export{runCommand}from'../framework/runner.js';export{parseFlags,validateFlags}from'../framework/flags.js';function a64_0x41f4(_0x4c4fc5,_0x5b6105){_0x4c4fc5=_0x4c4fc5-0xd4;var _0x4a6bf4=a64_0x4a6b();var _0x41f446=_0x4a6bf4[_0x4c4fc5];return _0x41f446;}export{formatOutput}from'../framework/output.js';export{generateCommandHelp,generateServiceHelp,generateFullHelp}from'../framework/help.js';export{extractList,extractPaging}from'../framework/response.js';function a64_0x4a6b(){var _0x43cb35=['801dxXfzr','44418YhdOit','1020456QMDjXD','636330XSkSyj','8nfDKhJ','7NgQvHF','798020UcPRML','310600zXMPLp','4810SqEzKN','460986HifkdT'];a64_0x4a6b=function(){return _0x43cb35;};return a64_0x4a6b();}export{dryRun}from'../framework/dryrun.js';export{riskLevelOrder,isValidFormat}from'../framework/types.js';
1
+ (function(_0x402e98,_0x1d3bd0){var _0x444cd8=a64_0x4f25,_0x3f7ddd=_0x402e98();while(!![]){try{var _0x59c2b2=-parseInt(_0x444cd8(0x155))/0x1*(parseInt(_0x444cd8(0x153))/0x2)+parseInt(_0x444cd8(0x157))/0x3+-parseInt(_0x444cd8(0x152))/0x4+-parseInt(_0x444cd8(0x14f))/0x5*(-parseInt(_0x444cd8(0x151))/0x6)+-parseInt(_0x444cd8(0x150))/0x7+-parseInt(_0x444cd8(0x14e))/0x8+-parseInt(_0x444cd8(0x156))/0x9*(-parseInt(_0x444cd8(0x154))/0xa);if(_0x59c2b2===_0x1d3bd0)break;else _0x3f7ddd['push'](_0x3f7ddd['shift']());}catch(_0x20f58e){_0x3f7ddd['push'](_0x3f7ddd['shift']());}}}(a64_0x2995,0x68963));export{runCommand}from'../framework/runner.js';export{parseFlags,validateFlags}from'../framework/flags.js';function a64_0x4f25(_0x48ca80,_0x2a46d5){_0x48ca80=_0x48ca80-0x14e;var _0x299535=a64_0x2995();var _0x4f250a=_0x299535[_0x48ca80];return _0x4f250a;}export{formatOutput}from'../framework/output.js';export{generateCommandHelp,generateServiceHelp,generateFullHelp}from'../framework/help.js';export{extractList,extractPaging}from'../framework/response.js';export{dryRun}from'../framework/dryrun.js';export{riskLevelOrder,isValidFormat}from'../framework/types.js';function a64_0x2995(){var _0x45af4c=['8DFrkUo','9lKeNJY','1243083qoYDbZ','4527408qTnUXL','375YziHuU','563122GFOmOs','52974UfbvPc','602224GbzqwL','211340fOMJhG','9941390PtJzPE'];a64_0x2995=function(){return _0x45af4c;};return a64_0x2995();}
@@ -1 +1 @@
1
- (function(_0x5a621a,_0x6d9dfa){const _0x513ecf=a65_0x4954,_0x278d30=_0x5a621a();while(!![]){try{const _0x159fc8=-parseInt(_0x513ecf(0x1c7))/0x1*(parseInt(_0x513ecf(0x1d4))/0x2)+-parseInt(_0x513ecf(0x1d1))/0x3*(parseInt(_0x513ecf(0x1d0))/0x4)+parseInt(_0x513ecf(0x1c9))/0x5*(-parseInt(_0x513ecf(0x1c8))/0x6)+parseInt(_0x513ecf(0x1cb))/0x7+-parseInt(_0x513ecf(0x1ca))/0x8*(-parseInt(_0x513ecf(0x1d3))/0x9)+parseInt(_0x513ecf(0x1c5))/0xa+parseInt(_0x513ecf(0x1ce))/0xb;if(_0x159fc8===_0x6d9dfa)break;else _0x278d30['push'](_0x278d30['shift']());}catch(_0x4241fe){_0x278d30['push'](_0x278d30['shift']());}}}(a65_0x1d39,0xd5974));import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';function a65_0x1d39(){const _0x1f77ca=['20589712SPusGL','update','1173776OaVAvM','6eUuoFT','_notice','18SJKRwR','176478WEmGIP','4850790xIyogh','message','13uYejei','4049868vlmDtT','5KhJBUK','2728192aUKakn','1714454aPJezv','format','pretty'];a65_0x1d39=function(){return _0x1f77ca;};return a65_0x1d39();}function a65_0x4954(_0x59c605,_0x39b6c7){_0x59c605=_0x59c605-0x1c5;const _0x1d398f=a65_0x1d39();let _0x4954de=_0x1d398f[_0x59c605];return _0x4954de;}import{CliErrors}from'../errors.js';const baseFormatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});export function formatOutput(_0x388251,_0x3e3969){const _0x4a7111=a65_0x4954,_0x1342b1=_0x388251[_0x4a7111(0x1d2)],{_notice:_0x35f725,..._0x147991}=_0x388251;void _0x35f725,baseFormatOutput(_0x147991,_0x3e3969),_0x3e3969[_0x4a7111(0x1cc)]===_0x4a7111(0x1cd)&&printPrettyNotice(_0x1342b1);}function printPrettyNotice(_0x43835d){const _0x5f63e5=a65_0x4954;if(!_0x43835d?.[_0x5f63e5(0x1cf)])return;console['error'](_0x43835d[_0x5f63e5(0x1cf)][_0x5f63e5(0x1c6)]+'\x20('+_0x43835d[_0x5f63e5(0x1cf)]['url']+')');}
1
+ (function(_0xf53852,_0x8e2c36){const _0x2e3cee=a65_0x3e80,_0x2fa4f6=_0xf53852();while(!![]){try{const _0x425efb=-parseInt(_0x2e3cee(0x94))/0x1*(-parseInt(_0x2e3cee(0xa4))/0x2)+-parseInt(_0x2e3cee(0x98))/0x3+parseInt(_0x2e3cee(0x9c))/0x4*(parseInt(_0x2e3cee(0xa3))/0x5)+-parseInt(_0x2e3cee(0x9f))/0x6*(-parseInt(_0x2e3cee(0xa2))/0x7)+parseInt(_0x2e3cee(0xa0))/0x8+parseInt(_0x2e3cee(0x9b))/0x9*(parseInt(_0x2e3cee(0x96))/0xa)+parseInt(_0x2e3cee(0xa6))/0xb*(-parseInt(_0x2e3cee(0x9d))/0xc);if(_0x425efb===_0x8e2c36)break;else _0x2fa4f6['push'](_0x2fa4f6['shift']());}catch(_0x26aade){_0x2fa4f6['push'](_0x2fa4f6['shift']());}}}(a65_0x2ab2,0x58bae));import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';function a65_0x3e80(_0x3a8277,_0x393026){_0x3a8277=_0x3a8277-0x94;const _0x2ab2af=a65_0x2ab2();let _0x3e8042=_0x2ab2af[_0x3a8277];return _0x3e8042;}import{CliErrors}from'../errors.js';const baseFormatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});function a65_0x2ab2(){const _0x3e404e=['message','30gSkUre','error','1155708TgwdSF','_notice','format','1600803vGQmeQ','572jmXckC','12jEMoQK','pretty','462048gYSOwC','5566696pHtmUA','update','7lfIAlY','3500rWbgXN','12598FVraEH','url','12641134EAEqMp','78rtZRvP'];a65_0x2ab2=function(){return _0x3e404e;};return a65_0x2ab2();}export function formatOutput(_0x30cf4c,_0x1d4deb){const _0x19b956=a65_0x3e80,_0x194731=_0x30cf4c[_0x19b956(0x99)],{_notice:_0x31bc5e,..._0x5c47a4}=_0x30cf4c;void _0x31bc5e,baseFormatOutput(_0x5c47a4,_0x1d4deb),_0x1d4deb[_0x19b956(0x9a)]===_0x19b956(0x9e)&&printPrettyNotice(_0x194731);}function printPrettyNotice(_0x35f3dd){const _0x66491=a65_0x3e80;if(!_0x35f3dd?.[_0x66491(0xa1)])return;console[_0x66491(0x97)](_0x35f3dd[_0x66491(0xa1)][_0x66491(0x95)]+'\x20('+_0x35f3dd[_0x66491(0xa1)][_0x66491(0xa5)]+')');}
@@ -1 +1 @@
1
- function a66_0x2dd3(){const _0x3ae444=['global','original','110125uwgbVm','84VEigwb','type','string','slice','3210344YFtjTA','corrected','get','non-interactive','nonInteractive','help','410JrmyeW','app','487133XUIMTu','entries','push','length','1353654ruwFrP','add','alias','5103KxPXzx','sticky','set','8991590iqcHyK','version','appcode','name','number','replace','181254EdLqZX','env','has','toLowerCase','35VZaeKS'];a66_0x2dd3=function(){return _0x3ae444;};return a66_0x2dd3();}(function(_0x1fb0d1,_0x6ac676){const _0x8ee0a5=a66_0x8e60,_0x44da11=_0x1fb0d1();while(!![]){try{const _0x2beabf=parseInt(_0x8ee0a5(0xbf))/0x1+parseInt(_0x8ee0a5(0xbd))/0x2*(parseInt(_0x8ee0a5(0xa2))/0x3)+parseInt(_0x8ee0a5(0xb3))/0x4*(parseInt(_0x8ee0a5(0xb2))/0x5)+parseInt(_0x8ee0a5(0xab))/0x6*(parseInt(_0x8ee0a5(0xaf))/0x7)+-parseInt(_0x8ee0a5(0xb7))/0x8+parseInt(_0x8ee0a5(0xc3))/0x9+-parseInt(_0x8ee0a5(0xa5))/0xa;if(_0x2beabf===_0x6ac676)break;else _0x44da11['push'](_0x44da11['shift']());}catch(_0x20ce91){_0x44da11['push'](_0x44da11['shift']());}}}(a66_0x2dd3,0x49162));function toKebab(_0xd07e50){const _0x2fa8fc=a66_0x8e60;return _0xd07e50[_0x2fa8fc(0xaa)](/_/g,'-')[_0x2fa8fc(0xaa)](/-([A-Z]+)/g,(_0x299fc1,_0x408897)=>'-'+_0x408897[_0x2fa8fc(0xae)]())['replace'](/([a-z0-9])([A-Z])/g,(_0xee9ef2,_0x331e3a,_0x3ff2a6)=>_0x331e3a+'-'+_0x3ff2a6)['toLowerCase']();}function buildKnownFlags(_0x4d9491){const _0x2de8c5=a66_0x8e60,_0x26da4f=new Set();for(const _0x3e3143 of _0x4d9491){_0x26da4f[_0x2de8c5(0xc4)](_0x3e3143['name']),_0x26da4f[_0x2de8c5(0xc4)](toCamelCase(_0x3e3143[_0x2de8c5(0xa8)]));}for(const _0x5bbda7 of['dry-run','dryRun','yes','format']){_0x26da4f[_0x2de8c5(0xc4)](_0x5bbda7);}for(const _0x24d746 of[_0x2de8c5(0xbc),_0x2de8c5(0xac),_0x2de8c5(0xa7),_0x2de8c5(0xbe),_0x2de8c5(0xbb),_0x2de8c5(0xba),'ci',_0x2de8c5(0xb0),_0x2de8c5(0xa6)]){_0x26da4f['add'](_0x24d746);}return _0x26da4f;}function buildFlagTypeMap(_0x1b88e3){const _0x111f06=a66_0x8e60,_0x25fc16=new Map();for(const _0x5b7182 of _0x1b88e3){_0x25fc16[_0x111f06(0xa4)](_0x5b7182[_0x111f06(0xa8)],_0x5b7182[_0x111f06(0xb4)]),_0x25fc16[_0x111f06(0xa4)](toCamelCase(_0x5b7182[_0x111f06(0xa8)]),_0x5b7182[_0x111f06(0xb4)]);}return _0x25fc16;}function toCamelCase(_0x11fcaa){return _0x11fcaa['replace'](/-([a-z])/g,(_0x2a3bd2,_0x2a838e)=>_0x2a838e['toUpperCase']());}function a66_0x8e60(_0x8146c1,_0x36e328){_0x8146c1=_0x8146c1-0xa1;const _0x2dd3ee=a66_0x2dd3();let _0x8e607a=_0x2dd3ee[_0x8146c1];return _0x8e607a;}function aliasHandler(_0x4f9244,_0x414b52){const _0x288b2f=a66_0x8e60,_0x40017a=[];for(const _0x5f3509 of Object['keys'](_0x4f9244)){if(_0x414b52[_0x288b2f(0xad)](_0x5f3509))continue;const _0x49f086=toKebab(_0x5f3509);_0x49f086!==_0x5f3509&&_0x414b52[_0x288b2f(0xad)](_0x49f086)&&_0x40017a[_0x288b2f(0xc1)]({'original':_0x5f3509,'corrected':_0x49f086,'handler':_0x288b2f(0xa1)});}return _0x40017a;}function stickyHandler(_0x528c18,_0x360e51,_0x594941){const _0x1a0a5b=a66_0x8e60,_0xde625f=[];for(const [_0x1db6ed,_0xe213af]of Object[_0x1a0a5b(0xc0)](_0x528c18)){if(_0xe213af!==!![])continue;for(let _0x248f05=_0x1db6ed['length']-0x1;_0x248f05>0x0;_0x248f05--){const _0x2e2484=_0x1db6ed[_0x1a0a5b(0xb6)](0x0,_0x248f05),_0x49ef4f=_0x1db6ed[_0x1a0a5b(0xb6)](_0x248f05),_0x5e32a6=toKebab(_0x2e2484),_0x1ff01a=toCamelCase(_0x2e2484),_0x5efffa=_0x360e51['has'](_0x2e2484)?_0x2e2484:_0x360e51[_0x1a0a5b(0xad)](_0x5e32a6)?_0x5e32a6:_0x360e51[_0x1a0a5b(0xad)](_0x1ff01a)?_0x1ff01a:null;if(!_0x5efffa)continue;const _0x5bcde7=_0x594941[_0x1a0a5b(0xb9)](_0x5efffa)??_0x1a0a5b(0xb5);let _0x1bb99e;if(_0x5bcde7===_0x1a0a5b(0xa9)){const _0xd7aaa9=Number(_0x49ef4f);if(isNaN(_0xd7aaa9)||_0x49ef4f==='')continue;_0x1bb99e=_0xd7aaa9;}else{if(_0x5bcde7==='boolean')continue;else{if(_0x49ef4f==='')continue;_0x1bb99e=_0x49ef4f;}}_0xde625f[_0x1a0a5b(0xc1)]({'original':_0x1db6ed,'corrected':_0x5efffa+'='+_0x1bb99e,'handler':_0x1a0a5b(0xa3)});break;}}return _0xde625f;}export function correctFlags(_0xcbaeca,_0x581574){const _0x8b9886=a66_0x8e60,_0x1740d5=buildKnownFlags(_0x581574),_0x3f7890=buildFlagTypeMap(_0x581574),_0x56c312=aliasHandler(_0xcbaeca,_0x1740d5),_0x2f4480=stickyHandler(_0xcbaeca,_0x1740d5,_0x3f7890),_0x3f39d3=[..._0x56c312,..._0x2f4480];if(_0x3f39d3[_0x8b9886(0xc2)]===0x0)return{'flags':_0xcbaeca,'corrections':[]};const _0x2e5458={..._0xcbaeca},_0x33703b=new Set();for(const _0x2d8dcf of _0x56c312){_0x2e5458[_0x2d8dcf[_0x8b9886(0xb8)]]=_0xcbaeca[_0x2d8dcf[_0x8b9886(0xb1)]],_0x33703b['add'](_0x2d8dcf[_0x8b9886(0xb1)]);}for(const _0x385003 of _0x2f4480){const _0x131698=_0x385003[_0x8b9886(0xb8)]['indexOf']('='),_0x4940d8=_0x385003[_0x8b9886(0xb8)][_0x8b9886(0xb6)](0x0,_0x131698),_0x59a608=_0x385003[_0x8b9886(0xb8)][_0x8b9886(0xb6)](_0x131698+0x1),_0xc1583f=_0x3f7890[_0x8b9886(0xb9)](_0x4940d8)??'string';_0xc1583f===_0x8b9886(0xa9)?_0x2e5458[_0x4940d8]=Number(_0x59a608):_0x2e5458[_0x4940d8]=_0x59a608,_0x33703b[_0x8b9886(0xc4)](_0x385003[_0x8b9886(0xb1)]);}for(const _0x29ed43 of _0x33703b){delete _0x2e5458[_0x29ed43];}return{'flags':_0x2e5458,'corrections':_0x3f39d3};}
1
+ function a66_0x55a2(){const _0x52f16a=['292114YtrTxa','length','string','toLowerCase','972095yuePyg','nonInteractive','appcode','push','version','corrected','84YYHylH','dry-run','904rECfbx','sticky','slice','2177zkSFaP','has','non-interactive','number','indexOf','1649820fGjmgo','19017kOqJlf','entries','type','12392nToTWr','952589oRHBOD','name','set','add','get','20AtQMRh','global','13qsaBOw','replace','1oKkdPT','5004buaiRG','help','original','format','env','keys'];a66_0x55a2=function(){return _0x52f16a;};return a66_0x55a2();}(function(_0x30d111,_0x454bbd){const _0x58ccba=a66_0x44a2,_0x501ebb=_0x30d111();while(!![]){try{const _0x2e16f4=parseInt(_0x58ccba(0x190))/0x1*(-parseInt(_0x58ccba(0x197))/0x2)+parseInt(_0x58ccba(0x1a1))/0x3*(-parseInt(_0x58ccba(0x186))/0x4)+parseInt(_0x58ccba(0x19b))/0x5+-parseInt(_0x58ccba(0x191))/0x6*(-parseInt(_0x58ccba(0x1a6))/0x7)+parseInt(_0x58ccba(0x1a3))/0x8*(parseInt(_0x58ccba(0x183))/0x9)+-parseInt(_0x58ccba(0x18c))/0xa*(parseInt(_0x58ccba(0x187))/0xb)+-parseInt(_0x58ccba(0x182))/0xc*(parseInt(_0x58ccba(0x18e))/0xd);if(_0x2e16f4===_0x454bbd)break;else _0x501ebb['push'](_0x501ebb['shift']());}catch(_0x53bdc2){_0x501ebb['push'](_0x501ebb['shift']());}}}(a66_0x55a2,0x24656));function toKebab(_0x181f31){const _0x45a8a5=a66_0x44a2;return _0x181f31[_0x45a8a5(0x18f)](/_/g,'-')['replace'](/-([A-Z]+)/g,(_0x584e2e,_0x2212a7)=>'-'+_0x2212a7['toLowerCase']())[_0x45a8a5(0x18f)](/([a-z0-9])([A-Z])/g,(_0x2af3e7,_0x42450c,_0x5cd9cd)=>_0x42450c+'-'+_0x5cd9cd)[_0x45a8a5(0x19a)]();}function a66_0x44a2(_0x6f3fdd,_0x36aeaa){_0x6f3fdd=_0x6f3fdd-0x182;const _0x55a239=a66_0x55a2();let _0x44a253=_0x55a239[_0x6f3fdd];return _0x44a253;}function buildKnownFlags(_0x18739f){const _0x2084a6=a66_0x44a2,_0x1c9325=new Set();for(const _0x4d0bb8 of _0x18739f){_0x1c9325['add'](_0x4d0bb8[_0x2084a6(0x188)]),_0x1c9325[_0x2084a6(0x18a)](toCamelCase(_0x4d0bb8[_0x2084a6(0x188)]));}for(const _0x2c6c6e of[_0x2084a6(0x1a2),'dryRun','yes',_0x2084a6(0x194)]){_0x1c9325[_0x2084a6(0x18a)](_0x2c6c6e);}for(const _0x17ffcc of[_0x2084a6(0x192),_0x2084a6(0x195),_0x2084a6(0x19d),'app',_0x2084a6(0x19c),_0x2084a6(0x1a8),'ci',_0x2084a6(0x18d),_0x2084a6(0x19f)]){_0x1c9325[_0x2084a6(0x18a)](_0x17ffcc);}return _0x1c9325;}function buildFlagTypeMap(_0x419aa1){const _0xd631b3=a66_0x44a2,_0x1b76c5=new Map();for(const _0x5d4c53 of _0x419aa1){_0x1b76c5[_0xd631b3(0x189)](_0x5d4c53['name'],_0x5d4c53[_0xd631b3(0x185)]),_0x1b76c5[_0xd631b3(0x189)](toCamelCase(_0x5d4c53[_0xd631b3(0x188)]),_0x5d4c53['type']);}return _0x1b76c5;}function toCamelCase(_0x3f5f04){return _0x3f5f04['replace'](/-([a-z])/g,(_0x2df7fc,_0x11b4e8)=>_0x11b4e8['toUpperCase']());}function aliasHandler(_0x413fe1,_0x3e11a2){const _0x55d63a=a66_0x44a2,_0x81bed5=[];for(const _0x4534a8 of Object[_0x55d63a(0x196)](_0x413fe1)){if(_0x3e11a2['has'](_0x4534a8))continue;const _0x2d3553=toKebab(_0x4534a8);_0x2d3553!==_0x4534a8&&_0x3e11a2[_0x55d63a(0x1a7)](_0x2d3553)&&_0x81bed5[_0x55d63a(0x19e)]({'original':_0x4534a8,'corrected':_0x2d3553,'handler':'alias'});}return _0x81bed5;}function stickyHandler(_0x443f00,_0x45953f,_0x2b6ed6){const _0x3aa2ac=a66_0x44a2,_0x2df961=[];for(const [_0x25004a,_0x52dadf]of Object[_0x3aa2ac(0x184)](_0x443f00)){if(_0x52dadf!==!![])continue;for(let _0x322aa7=_0x25004a[_0x3aa2ac(0x198)]-0x1;_0x322aa7>0x0;_0x322aa7--){const _0x41812d=_0x25004a[_0x3aa2ac(0x1a5)](0x0,_0x322aa7),_0x5501f4=_0x25004a[_0x3aa2ac(0x1a5)](_0x322aa7),_0x8c13ef=toKebab(_0x41812d),_0x496a13=toCamelCase(_0x41812d),_0x2018df=_0x45953f[_0x3aa2ac(0x1a7)](_0x41812d)?_0x41812d:_0x45953f['has'](_0x8c13ef)?_0x8c13ef:_0x45953f[_0x3aa2ac(0x1a7)](_0x496a13)?_0x496a13:null;if(!_0x2018df)continue;const _0x23a462=_0x2b6ed6['get'](_0x2018df)??'string';let _0x3d4a5c;if(_0x23a462===_0x3aa2ac(0x1a9)){const _0xff6a07=Number(_0x5501f4);if(isNaN(_0xff6a07)||_0x5501f4==='')continue;_0x3d4a5c=_0xff6a07;}else{if(_0x23a462==='boolean')continue;else{if(_0x5501f4==='')continue;_0x3d4a5c=_0x5501f4;}}_0x2df961[_0x3aa2ac(0x19e)]({'original':_0x25004a,'corrected':_0x2018df+'='+_0x3d4a5c,'handler':_0x3aa2ac(0x1a4)});break;}}return _0x2df961;}export function correctFlags(_0xcf27a,_0x2c81ac){const _0x4cc9ac=a66_0x44a2,_0x1579ba=buildKnownFlags(_0x2c81ac),_0x4d48a6=buildFlagTypeMap(_0x2c81ac),_0x2112c5=aliasHandler(_0xcf27a,_0x1579ba),_0x3d2bae=stickyHandler(_0xcf27a,_0x1579ba,_0x4d48a6),_0x4a3ea1=[..._0x2112c5,..._0x3d2bae];if(_0x4a3ea1[_0x4cc9ac(0x198)]===0x0)return{'flags':_0xcf27a,'corrections':[]};const _0x4c56d1={..._0xcf27a},_0x4c1e45=new Set();for(const _0x590938 of _0x2112c5){_0x4c56d1[_0x590938[_0x4cc9ac(0x1a0)]]=_0xcf27a[_0x590938[_0x4cc9ac(0x193)]],_0x4c1e45[_0x4cc9ac(0x18a)](_0x590938[_0x4cc9ac(0x193)]);}for(const _0x599701 of _0x3d2bae){const _0x2a5144=_0x599701[_0x4cc9ac(0x1a0)][_0x4cc9ac(0x1aa)]('='),_0x3f9a3e=_0x599701[_0x4cc9ac(0x1a0)][_0x4cc9ac(0x1a5)](0x0,_0x2a5144),_0x337961=_0x599701[_0x4cc9ac(0x1a0)][_0x4cc9ac(0x1a5)](_0x2a5144+0x1),_0x1e0682=_0x4d48a6[_0x4cc9ac(0x18b)](_0x3f9a3e)??_0x4cc9ac(0x199);_0x1e0682===_0x4cc9ac(0x1a9)?_0x4c56d1[_0x3f9a3e]=Number(_0x337961):_0x4c56d1[_0x3f9a3e]=_0x337961,_0x4c1e45[_0x4cc9ac(0x18a)](_0x599701[_0x4cc9ac(0x193)]);}for(const _0x4738c5 of _0x4c1e45){delete _0x4c56d1[_0x4738c5];}return{'flags':_0x4c56d1,'corrections':_0x4a3ea1};}
@@ -1 +1 @@
1
- (function(_0x199636,_0x4a2c59){var _0x17c6e9=a67_0x20b0,_0x8b1840=_0x199636();while(!![]){try{var _0x29b51c=-parseInt(_0x17c6e9(0x156))/0x1+parseInt(_0x17c6e9(0x157))/0x2*(-parseInt(_0x17c6e9(0x159))/0x3)+parseInt(_0x17c6e9(0x158))/0x4*(parseInt(_0x17c6e9(0x155))/0x5)+parseInt(_0x17c6e9(0x15a))/0x6+-parseInt(_0x17c6e9(0x15b))/0x7+parseInt(_0x17c6e9(0x153))/0x8+parseInt(_0x17c6e9(0x154))/0x9;if(_0x29b51c===_0x4a2c59)break;else _0x8b1840['push'](_0x8b1840['shift']());}catch(_0x460fc3){_0x8b1840['push'](_0x8b1840['shift']());}}}(a67_0x2297,0x3d481));function a67_0x20b0(_0x29e4d5,_0x2222d3){_0x29e4d5=_0x29e4d5-0x153;var _0x2297f6=a67_0x2297();var _0x20b060=_0x2297f6[_0x29e4d5];return _0x20b060;}function a67_0x2297(){var _0x58cb62=['90196TSZjDb','3WXwQfT','168210HEgGsP','133616GAvOGQ','510880JyGKQX','5795406HvZwHd','55vdxsiy','299352gGdGiu','828838nPAKUV'];a67_0x2297=function(){return _0x58cb62;};return a67_0x2297();}export{extractList,extractPaging}from'@lovrabet/cli-framework';
1
+ (function(_0x38b00c,_0x5225fa){var _0x5f1a58=a67_0x5969,_0x49ff47=_0x38b00c();while(!![]){try{var _0x25bb74=-parseInt(_0x5f1a58(0x12e))/0x1+parseInt(_0x5f1a58(0x12f))/0x2+parseInt(_0x5f1a58(0x12d))/0x3+-parseInt(_0x5f1a58(0x126))/0x4*(parseInt(_0x5f1a58(0x12c))/0x5)+parseInt(_0x5f1a58(0x127))/0x6*(parseInt(_0x5f1a58(0x128))/0x7)+-parseInt(_0x5f1a58(0x129))/0x8*(-parseInt(_0x5f1a58(0x12b))/0x9)+-parseInt(_0x5f1a58(0x12a))/0xa;if(_0x25bb74===_0x5225fa)break;else _0x49ff47['push'](_0x49ff47['shift']());}catch(_0x5182e1){_0x49ff47['push'](_0x49ff47['shift']());}}}(a67_0x4ae3,0x738c7));export{extractList,extractPaging}from'@lovrabet/cli-framework';function a67_0x5969(_0x217f04,_0x130509){_0x217f04=_0x217f04-0x126;var _0x4ae36a=a67_0x4ae3();var _0x596934=_0x4ae36a[_0x217f04];return _0x596934;}function a67_0x4ae3(){var _0x28c6a1=['697158LYdIEi','1522824lzEuwx','48qqaJVE','2166UorcJz','16933THbNiA','83544jTTSYt','13018850XDAeXN','684ZLeeQF','347195SHkjWM','2631777Kzjvlr'];a67_0x4ae3=function(){return _0x28c6a1;};return a67_0x4ae3();}