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

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_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
+ const a49_0x398922=a49_0x208a;function a49_0x208a(_0xf829b,_0xc69735){_0xf829b=_0xf829b-0xa1;const _0x32cdf2=a49_0x32cd();let _0x208a49=_0x32cdf2[_0xf829b];return _0x208a49;}(function(_0x4ed92c,_0x3407b1){const _0x32f3c6=a49_0x208a,_0x5b28bc=_0x4ed92c();while(!![]){try{const _0x46fccc=parseInt(_0x32f3c6(0xaf))/0x1+-parseInt(_0x32f3c6(0xb2))/0x2*(-parseInt(_0x32f3c6(0xa3))/0x3)+-parseInt(_0x32f3c6(0xb6))/0x4*(parseInt(_0x32f3c6(0xaa))/0x5)+parseInt(_0x32f3c6(0xa9))/0x6+-parseInt(_0x32f3c6(0xae))/0x7*(parseInt(_0x32f3c6(0xa8))/0x8)+parseInt(_0x32f3c6(0xad))/0x9+-parseInt(_0x32f3c6(0xb0))/0xa*(parseInt(_0x32f3c6(0xb1))/0xb);if(_0x46fccc===_0x3407b1)break;else _0x5b28bc['push'](_0x5b28bc['shift']());}catch(_0x288f21){_0x5b28bc['push'](_0x5b28bc['shift']());}}}(a49_0x32cd,0xd57e7));import{getEnv,isProduction}from'../constant/env.js';import{PRODUCT_CONFIG}from'../constant/product.js';let customApiDomain,customUserDomain,customRuntimeDomain,customSkillHubDomain;export function initDomains(_0x50307a){const _0x3d78c4=a49_0x208a;customApiDomain=_0x50307a?.[_0x3d78c4(0xa4)],customUserDomain=_0x50307a?.[_0x3d78c4(0xa6)],customRuntimeDomain=_0x50307a?.[_0x3d78c4(0xa5)],customSkillHubDomain=_0x50307a?.[_0x3d78c4(0xb4)];}export const getUserDomain=()=>customUserDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a49_0x398922(0xac)][a49_0x398922(0xa1)]['user']:PRODUCT_CONFIG[a49_0x398922(0xac)][a49_0x398922(0xb3)][a49_0x398922(0xb5)]);export const getApiDomain=()=>customApiDomain||(isProduction(getEnv())?PRODUCT_CONFIG['domains'][a49_0x398922(0xa1)][a49_0x398922(0xa2)]:PRODUCT_CONFIG[a49_0x398922(0xac)]['nonProduction'][a49_0x398922(0xa2)]);export const getRuntimeDomain=()=>customRuntimeDomain||(isProduction(getEnv())?PRODUCT_CONFIG['domains'][a49_0x398922(0xa1)][a49_0x398922(0xa7)]:PRODUCT_CONFIG[a49_0x398922(0xac)]['nonProduction'][a49_0x398922(0xa7)]);function a49_0x32cd(){const _0x84511f=['skillHubDomain','user','6441324pookoB','production','api','9BJgagr','apiDomain','runtimeDomain','userDomain','runtime','16ozyNhr','8821326NEJtQf','5wSDjWa','skillhub','domains','6043356VEIrvQ','3467429hdTdSc','1697721pNCjLz','25710gLkPxo','7337tGUKDt','900618epDLhJ','nonProduction'];a49_0x32cd=function(){return _0x84511f;};return a49_0x32cd();}export const getSkillHubDomain=()=>customSkillHubDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a49_0x398922(0xac)][a49_0x398922(0xa1)][a49_0x398922(0xab)]:PRODUCT_CONFIG[a49_0x398922(0xac)][a49_0x398922(0xb3)][a49_0x398922(0xab)]);
@@ -1 +1 @@
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
+ const a50_0x143df=a50_0x7526;function a50_0x448d(){const _0x322e40=['554917kLiywa','ENV','dev','1043622UBmkrD','785884ZWIgZE','12tniVfE','online','72pkdMgE','125756EqBEYz','development','1741578SdCpmN','1752580vWxEhQ','856632fUPGmq','daily','production'];a50_0x448d=function(){return _0x322e40;};return a50_0x448d();}(function(_0x47610a,_0x328691){const _0x3df624=a50_0x7526,_0x4325f8=_0x47610a();while(!![]){try{const _0x35c942=-parseInt(_0x3df624(0xde))/0x1+-parseInt(_0x3df624(0xe6))/0x2+-parseInt(_0x3df624(0xe3))/0x3*(parseInt(_0x3df624(0xe2))/0x4)+parseInt(_0x3df624(0xe9))/0x5+parseInt(_0x3df624(0xe8))/0x6+parseInt(_0x3df624(0xea))/0x7+parseInt(_0x3df624(0xe5))/0x8*(parseInt(_0x3df624(0xe1))/0x9);if(_0x35c942===_0x328691)break;else _0x4325f8['push'](_0x4325f8['shift']());}catch(_0x28a2cf){_0x4325f8['push'](_0x4325f8['shift']());}}}(a50_0x448d,0x6269a));import{productEnv}from'../constant/product.js';function a50_0x7526(_0x14e8bf,_0x492f4e){_0x14e8bf=_0x14e8bf-0xdc;const _0x448dfa=a50_0x448d();let _0x7526db=_0x448dfa[_0x14e8bf];return _0x7526db;}export const RUNTIME_ENV_VALUES=[a50_0x143df(0xdd),a50_0x143df(0xe7),a50_0x143df(0xdc)];export function normalizeEnv(_0x15c5a3){const _0x31f0ea=a50_0x143df;return _0x15c5a3===_0x31f0ea(0xe4)?_0x31f0ea(0xdd):_0x15c5a3;}export function isProduction(_0x572d64){const _0x2ef41b=a50_0x143df;return normalizeEnv(_0x572d64)===_0x2ef41b(0xdd);}export function isDaily(_0x50f148){const _0x4d01e1=a50_0x143df;return normalizeEnv(_0x50f148)===_0x4d01e1(0xdc);}export function isDev(_0x138354){const _0x466b04=a50_0x143df,_0x47e373=normalizeEnv(_0x138354);return _0x47e373==='development'||_0x47e373===_0x466b04(0xe0);}let env=normalizeEnv(productEnv(a50_0x143df(0xdf))||'production');export function getEnv(){return env;}export function initEnv(_0x23fc6b){env=normalizeEnv(_0x23fc6b);}
@@ -1 +1 @@
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
+ function a51_0x1582(_0xe23c3c,_0x5579bf){_0xe23c3c=_0xe23c3c-0x19a;const _0x129545=a51_0x1295();let _0x158202=_0x129545[_0xe23c3c];return _0x158202;}function a51_0x1295(){const _0x1248d9=['2730465FAdaiN','4941448fPgrPg','1339568hHtKPZ','3TDHLFa','2082452ikgVEr','pretty','306622rhqvbG','15268500fMfSog','276087jmdpMd','12GvjaZc','json'];a51_0x1295=function(){return _0x1248d9;};return a51_0x1295();}const a51_0x171496=a51_0x1582;(function(_0x45837f,_0xe1294c){const _0x27f74f=a51_0x1582,_0x5a5b36=_0x45837f();while(!![]){try{const _0xbdc86f=-parseInt(_0x27f74f(0x1a3))/0x1+parseInt(_0x27f74f(0x19f))/0x2+-parseInt(_0x27f74f(0x1a0))/0x3*(-parseInt(_0x27f74f(0x1a1))/0x4)+parseInt(_0x27f74f(0x19d))/0x5+parseInt(_0x27f74f(0x19b))/0x6*(parseInt(_0x27f74f(0x19a))/0x7)+parseInt(_0x27f74f(0x19e))/0x8+-parseInt(_0x27f74f(0x1a4))/0x9;if(_0xbdc86f===_0xe1294c)break;else _0x5a5b36['push'](_0x5a5b36['shift']());}catch(_0x167114){_0x5a5b36['push'](_0x5a5b36['shift']());}}}(a51_0x1295,0x68f6b));export const OUTPUT_FORMAT_VALUES=[a51_0x171496(0x19c),a51_0x171496(0x1a2),'compress'];
@@ -1 +1 @@
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
+ const a52_0x5bc8a6=a52_0x16ee;(function(_0x586f50,_0x3cbea5){const _0x3097a8=a52_0x16ee,_0x4d4d5e=_0x586f50();while(!![]){try{const _0x575693=parseInt(_0x3097a8(0x92))/0x1+parseInt(_0x3097a8(0x9b))/0x2+-parseInt(_0x3097a8(0xae))/0x3*(-parseInt(_0x3097a8(0xa0))/0x4)+-parseInt(_0x3097a8(0xa2))/0x5*(parseInt(_0x3097a8(0xa3))/0x6)+-parseInt(_0x3097a8(0x9a))/0x7+-parseInt(_0x3097a8(0x97))/0x8+parseInt(_0x3097a8(0xa7))/0x9*(parseInt(_0x3097a8(0xa1))/0xa);if(_0x575693===_0x3cbea5)break;else _0x4d4d5e['push'](_0x4d4d5e['shift']());}catch(_0xf2f214){_0x4d4d5e['push'](_0x4d4d5e['shift']());}}}(a52_0x26ca,0xa871d));export const PRODUCT_CONFIG={'cliBinName':a52_0x5bc8a6(0x98),'cliDisplayName':'Lovrabet\x20Runtime\x20CLI','npmPackageName':a52_0x5bc8a6(0x9e),'skillSource':a52_0x5bc8a6(0x96),'npmRegistryBaseUrl':a52_0x5bc8a6(0x91),'envPrefix':a52_0x5bc8a6(0x95),'legacyEnvPrefixes':[a52_0x5bc8a6(0xa9)],'configFileNames':[a52_0x5bc8a6(0xab),'.lovrabetrc'],'newConfigFileName':a52_0x5bc8a6(0xab),'homeDirName':a52_0x5bc8a6(0x94),'logFileName':a52_0x5bc8a6(0xac),'invokeSource':a52_0x5bc8a6(0xa8),'userCenterDisplayName':a52_0x5bc8a6(0x9f),'skipNpxSkillsEnvSuffix':a52_0x5bc8a6(0x93),'domains':{'production':{'user':'https://user.lovrabet.com','api':a52_0x5bc8a6(0xaa),'runtime':a52_0x5bc8a6(0x99),'skillhub':a52_0x5bc8a6(0xa4)},'nonProduction':{'user':a52_0x5bc8a6(0x9d),'api':'https://daily-api.lovrabet.com','runtime':a52_0x5bc8a6(0x9c),'skillhub':a52_0x5bc8a6(0xa6)}},'accessKeyCreatePath':'/user/ak'};function a52_0x16ee(_0x1eb810,_0x48e3c3){_0x1eb810=_0x1eb810-0x91;const _0x26ca93=a52_0x26ca();let _0x16ee88=_0x26ca93[_0x1eb810];return _0x16ee88;}export function productEnvName(_0x4ce498){const _0xef6fb5=a52_0x5bc8a6;return PRODUCT_CONFIG[_0xef6fb5(0xad)]+'_'+_0x4ce498;}export function productEnvNames(_0x4ecaf7){const _0x200f1e=a52_0x5bc8a6;return[productEnvName(_0x4ecaf7),...PRODUCT_CONFIG[_0x200f1e(0xa5)]['map'](_0xd90ab=>_0xd90ab+'_'+_0x4ecaf7)];}function a52_0x26ca(){const _0x5d388c=['https://registry.npmjs.org','414277vXPiRY','SKIP_NPX_SKILLS','.lovrabet','LOVRABET','lovrabet/lovrabet-cli','4512440lMRimr','lovrabet','https://runtime.lovrabet.com','2804319flwsfV','2601144DItzlx','https://daily-runtime.lovrabet.com','https://user-daily.lovrabet.com','@lovrabet/lovrabet-cli','Lovrabet\x20User\x20Center','12PgGrIL','10BQHzGu','292505CGXaEc','120bxftth','https://skills.lovrabet.com','legacyEnvPrefixes','https://skills-daily.lovrabet.com','1821249gzyADm','cli:lovrabet-runtime','RABETBASE','https://api.lovrabet.com','.lovrabet.json','.lovrabet-runtime.log','envPrefix','907431ppSGHF'];a52_0x26ca=function(){return _0x5d388c;};return a52_0x26ca();}export function productEnv(_0x52db7d){for(const _0x75deee of productEnvNames(_0x52db7d)){const _0x5d63d9=process.env[_0x75deee];if(_0x5d63d9!==undefined)return _0x5d63d9;}return undefined;}
@@ -1 +1 @@
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
+ function a53_0x5698(){const _0x3bed3a=['971316AisAfS','1120246pYjFnZ','write','45ldySol','26498200XYcfQN','591htMCLG','639312LhIpJP','read','high-risk-write','1079729glNupR','6196oxekre','24xXTpXr','414956cJkHQe'];a53_0x5698=function(){return _0x3bed3a;};return a53_0x5698();}const a53_0x4eb438=a53_0x14ff;function a53_0x14ff(_0x126c08,_0x3cf84e){_0x126c08=_0x126c08-0x1e3;const _0x569816=a53_0x5698();let _0x14ffb1=_0x569816[_0x126c08];return _0x14ffb1;}(function(_0x1accd9,_0x1da48f){const _0xfff4ec=a53_0x14ff,_0x531cba=_0x1accd9();while(!![]){try{const _0x42c158=-parseInt(_0xfff4ec(0x1e9))/0x1+parseInt(_0xfff4ec(0x1e5))/0x2*(-parseInt(_0xfff4ec(0x1ed))/0x3)+-parseInt(_0xfff4ec(0x1e7))/0x4*(parseInt(_0xfff4ec(0x1eb))/0x5)+parseInt(_0xfff4ec(0x1e6))/0x6*(parseInt(_0xfff4ec(0x1e4))/0x7)+-parseInt(_0xfff4ec(0x1ee))/0x8+parseInt(_0xfff4ec(0x1e8))/0x9+parseInt(_0xfff4ec(0x1ec))/0xa;if(_0x42c158===_0x1da48f)break;else _0x531cba['push'](_0x531cba['shift']());}catch(_0x21e389){_0x531cba['push'](_0x531cba['shift']());}}}(a53_0x5698,0x99f57));export const RISK_LEVEL_VALUES=[a53_0x4eb438(0x1ef),a53_0x4eb438(0x1ea),a53_0x4eb438(0x1e3)];
@@ -1 +1 @@
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'];
1
+ function a54_0x4d83(_0x34a793,_0x48134c){_0x34a793=_0x34a793-0x1bf;const _0x4eb5c6=a54_0x4eb5();let _0x4d832e=_0x4eb5c6[_0x34a793];return _0x4d832e;}const a54_0x472fdd=a54_0x4d83;function a54_0x4eb5(){const _0x1eb73b=['1304480xMWWmt','accessKeyCreatePath','232096thmZsa','2854797nvOFRQ','10xSeaCQ','user','1396038RqDbwD','2HzIRcl','2536155bhohBu','252372xdhQRD','306803SPmKQt','5uTrryQ','domains','16qDSGLR'];a54_0x4eb5=function(){return _0x1eb73b;};return a54_0x4eb5();}(function(_0xb07852,_0x4a61b7){const _0x489ab9=a54_0x4d83,_0xeed861=_0xb07852();while(!![]){try{const _0x21c5f2=-parseInt(_0x489ab9(0x1c4))/0x1*(-parseInt(_0x489ab9(0x1bf))/0x2)+parseInt(_0x489ab9(0x1c6))/0x3*(parseInt(_0x489ab9(0x1ca))/0x4)+-parseInt(_0x489ab9(0x1c8))/0x5*(parseInt(_0x489ab9(0x1c3))/0x6)+parseInt(_0x489ab9(0x1c7))/0x7+-parseInt(_0x489ab9(0x1cb))/0x8+-parseInt(_0x489ab9(0x1c5))/0x9+parseInt(_0x489ab9(0x1c1))/0xa*(parseInt(_0x489ab9(0x1c0))/0xb);if(_0x21c5f2===_0x4a61b7)break;else _0xeed861['push'](_0xeed861['shift']());}catch(_0x7bfbec){_0xeed861['push'](_0xeed861['shift']());}}}(a54_0x4eb5,0x2f774));import{PRODUCT_CONFIG}from'../constant/product.js';export const USER_ACCESS_KEY_CREATE_URL=''+PRODUCT_CONFIG[a54_0x472fdd(0x1c9)]['production'][a54_0x472fdd(0x1c2)]+PRODUCT_CONFIG[a54_0x472fdd(0x1cc)];
package/lib/context.js CHANGED
@@ -1 +1 @@
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
+ (function(_0x2a1ad3,_0x280922){const _0x177b23=a55_0x219f,_0x39575b=_0x2a1ad3();while(!![]){try{const _0x33a109=-parseInt(_0x177b23(0x1f6))/0x1+-parseInt(_0x177b23(0x1e2))/0x2+-parseInt(_0x177b23(0x1e4))/0x3*(parseInt(_0x177b23(0x1f4))/0x4)+parseInt(_0x177b23(0x1ea))/0x5*(-parseInt(_0x177b23(0x209))/0x6)+parseInt(_0x177b23(0x203))/0x7+parseInt(_0x177b23(0x20c))/0x8+parseInt(_0x177b23(0x216))/0x9*(parseInt(_0x177b23(0x208))/0xa);if(_0x33a109===_0x280922)break;else _0x39575b['push'](_0x39575b['shift']());}catch(_0x23c1a5){_0x39575b['push'](_0x39575b['shift']());}}}(a55_0x2a3d,0xc2465));import{readFileSync,existsSync,mkdirSync,renameSync,unlinkSync,writeFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{homedir}from'node:os';import{logger}from'./utils/logger.js';import{CliErrors}from'./errors.js';import{CLI_BIN_NAME}from'./constant/cli.js';import{PRODUCT_CONFIG,productEnv,productEnvNames}from'./constant/product.js';import{DEFAULT_CONFIG_VALUES}from'./constant/defaults.js';import{normalizeEnv,isDaily,isDev}from'./constant/env.js';import{normalizeLegacyOutputFormat}from'./framework/types.js';import{resolveCachedAppCode}from'./commands/app/cache.js';export{AUTH_MODE,isAuthMode}from'./constant/auth-mode.js';const CONFIG_NAMES=PRODUCT_CONFIG['configFileNames'];export const NEW_CONFIG_NAME=PRODUCT_CONFIG['newConfigFileName'];function resolveConfigPath(_0x1fbf26){for(const _0x462679 of CONFIG_NAMES){const _0x1f3401=resolve(_0x1fbf26,_0x462679);if(existsSync(_0x1f3401))return _0x1f3401;}return undefined;}export function resolveWriteConfigPath(_0x4fcb02){const _0x40ffca=a55_0x219f,_0x3d08a1=_0x4fcb02===_0x40ffca(0x204)?process['cwd']():homedir(),_0x409629=resolveConfigPath(_0x3d08a1);return _0x409629??resolve(_0x3d08a1,NEW_CONFIG_NAME);}export function readConfigFile(_0x4e6bee){const _0x1da8a5=a55_0x219f;try{if(existsSync(_0x4e6bee)){const _0x10d77d=readFileSync(_0x4e6bee,{'encoding':_0x1da8a5(0x1ff)});if(_0x10d77d){const _0x30da76=JSON['parse'](_0x10d77d);return migrateOnlineEnv(_0x4e6bee,_0x30da76),_0x30da76;}}}catch{}return{};}function migrateOnlineEnv(_0x46f2b4,_0x3b38e0){const _0x3af5e6=a55_0x219f;let _0xc37bd5=![];_0x3b38e0[_0x3af5e6(0x211)]===_0x3af5e6(0x206)&&(_0x3b38e0[_0x3af5e6(0x211)]=_0x3af5e6(0x1e8),_0xc37bd5=!![]);if(_0x3b38e0[_0x3af5e6(0x213)]&&typeof _0x3b38e0[_0x3af5e6(0x213)]===_0x3af5e6(0x220))for(const _0x4677c9 of Object[_0x3af5e6(0x1fc)](_0x3b38e0['apps'])){_0x4677c9&&_0x4677c9[_0x3af5e6(0x211)]===_0x3af5e6(0x206)&&(_0x4677c9['env']=_0x3af5e6(0x1e8),_0xc37bd5=!![]);}if(_0xc37bd5)try{writeConfigFile(_0x46f2b4,_0x3b38e0);}catch{}}export function writeConfigFile(_0x2f3547,_0x251125){const _0x5ba592=a55_0x219f,_0x3c49d3=dirname(_0x2f3547);!existsSync(_0x3c49d3)&&mkdirSync(_0x3c49d3,{'recursive':!![]});const _0x49af36=_0x2f3547+_0x5ba592(0x219);try{writeFileSync(_0x49af36,JSON[_0x5ba592(0x1ec)](_0x251125,null,0x2)+'\x0a',{'encoding':'utf8','mode':0x180});try{renameSync(_0x49af36,_0x2f3547);}catch(_0x5d0cba){if(_0x5d0cba[_0x5ba592(0x1f9)]===_0x5ba592(0x1e6)||_0x5d0cba['code']===_0x5ba592(0x1df)||_0x5d0cba[_0x5ba592(0x1f9)]==='EACCES'){writeFileSync(_0x2f3547,JSON['stringify'](_0x251125,null,0x2)+'\x0a',{'encoding':_0x5ba592(0x1ff)});try{unlinkSync(_0x49af36);}catch{}}else throw _0x5d0cba;}}catch(_0x15f8cf){try{unlinkSync(_0x49af36);}catch{}throw _0x15f8cf;}}export function isNonInteractiveMode(_0x3883ab){const _0x213d42=a55_0x219f;return!!(_0x3883ab[_0x213d42(0x222)]||_0x3883ab['ci']||productEnvNames('CI')[_0x213d42(0x215)](_0x39acf6=>process.env[_0x39acf6]===_0x213d42(0x1f2))||process.env.CI==='true'||!process['stdout'][_0x213d42(0x1e3)]||!isStdinRawModeSupported());}function a55_0x2a3d(){const _0x3729d4=['true','ENV','4cYPVXg','write','363619JkAsWx','defaultApp','daily','code','parse','appcode','values','userDomain','projectConfig','utf8','explicit','globalConfig','VERBOSE','3693914JHgGNj','project','string','online','global','10kfotFh','12zPyUri','setRawMode','find','1846752uBELEI','accessKey','cwd','FORMAT','PAGE_SIZE','env','stdin','apps','slice','some','25467651VBtEfV','authRequired','skillHubDomain','.tmp','error','pageSize','isRaw','trim','empty','./constant/env.js','object','local-alias','nonInteractive','APP','app','ACCESS_KEY','APPCODE','riskLevel','EXDEV','setLogPath','missing','1432716bUiFlV','isTTY','3447963RXVFrQ','top-level','EPERM','development','production','message','1408095tYMFtS','./constant/domain.js','stringify','format','high-risk-write','raw','runtimeDomain','inherit'];a55_0x2a3d=function(){return _0x3729d4;};return a55_0x2a3d();}function isStdinRawModeSupported(){const _0x5b3267=a55_0x219f;if(!process[_0x5b3267(0x212)][_0x5b3267(0x1e3)])return![];try{const _0x44e23e=process[_0x5b3267(0x212)][_0x5b3267(0x21c)];return process[_0x5b3267(0x212)][_0x5b3267(0x20a)](!![]),process[_0x5b3267(0x212)][_0x5b3267(0x20a)](_0x44e23e??![]),!![];}catch{return![];}}export async function createContext(_0x4483b2){const _0xd5ce1d=a55_0x219f,_0x549319=readRawConfig(),_0x2fbc4a=buildConfig(_0x549319,_0x4483b2);await initGlobalEnvironment(_0x2fbc4a);const {getUserDomain:_0x25cda4,getApiDomain:_0x3826ff}=await import(_0xd5ce1d(0x1eb)),_0x2cbd83={'apiDomain':_0x3826ff(),'userDomain':_0x25cda4()},_0x285e1e=await buildAuth(_0x2fbc4a);logger[_0xd5ce1d(0x1e0)](process[_0xd5ce1d(0x20e)]());const _0x373c89=(CLI_BIN_NAME+'\x20'+process['argv'][_0xd5ce1d(0x214)](0x2)['join']('\x20'))[_0xd5ce1d(0x21d)]();logger['setRawCommand'](_0x373c89);const _0x3efa54=isNonInteractiveMode(_0x4483b2);return{'config':_0x2fbc4a,'auth':_0x285e1e,'logger':logger,'env':_0x2cbd83,'nonInteractive':_0x3efa54};}export function buildConfigFromFlags(_0x4909ce){return buildConfig(readRawConfig(),_0x4909ce);}export function getLocalAppAliases(_0x1f79c9){const _0x35c8f6=a55_0x219f;return _0x1f79c9[_0x35c8f6(0x213)]&&typeof _0x1f79c9[_0x35c8f6(0x213)]===_0x35c8f6(0x220)?_0x1f79c9[_0x35c8f6(0x213)]:{};}export function resolveLocalAppAliasCode(_0x3e607d,_0x4f88cb){const _0x52890e=a55_0x219f;if(!_0x4f88cb)return undefined;const _0x4bc312=getLocalAppAliases(_0x3e607d)[_0x4f88cb],_0x195e2e=_0x4bc312?.[_0x52890e(0x1fb)];return typeof _0x195e2e===_0x52890e(0x205)&&_0x195e2e[_0x52890e(0x21d)]()?_0x195e2e[_0x52890e(0x21d)]():undefined;}export function readAppCodeFromConfig(){const _0xbacf29=a55_0x219f,_0x5cfcb0=readRawConfig(),_0x349e08=_0x5cfcb0[_0xbacf29(0x1fb)]??_0x5cfcb0[_0xbacf29(0x224)];if(typeof _0x349e08==='string'&&_0x349e08[_0xbacf29(0x21d)]())return _0x349e08[_0xbacf29(0x21d)]();const _0x34353a=resolveLocalAppAliasCode(_0x5cfcb0,typeof _0x5cfcb0[_0xbacf29(0x1f7)]==='string'?_0x5cfcb0[_0xbacf29(0x1f7)]:undefined);if(_0x34353a)return _0x34353a;const _0x5573fb=normalizeEnv(String(_0x5cfcb0[_0xbacf29(0x211)]||_0xbacf29(0x1e8))),_0x315605=isDaily(_0x5573fb)?_0xbacf29(0x1f8):isDev(_0x5573fb)?_0xbacf29(0x1e7):_0xbacf29(0x1e8),_0x40ae94=resolveCachedAppCode(typeof _0x5cfcb0['defaultApp']==='string'?_0x5cfcb0[_0xbacf29(0x1f7)]:undefined,_0x315605,typeof _0x5cfcb0[_0xbacf29(0x20d)]===_0xbacf29(0x205)?_0x5cfcb0[_0xbacf29(0x20d)]:undefined);if(_0x40ae94)return _0x40ae94;const _0x4ea55b=Object[_0xbacf29(0x1fc)](getLocalAppAliases(_0x5cfcb0))[_0xbacf29(0x20b)](_0x4f3cbd=>_0x4f3cbd?.[_0xbacf29(0x1fb)]);return typeof _0x4ea55b?.[_0xbacf29(0x1fb)]==='string'&&_0x4ea55b[_0xbacf29(0x1fb)][_0xbacf29(0x21d)]()?_0x4ea55b[_0xbacf29(0x1fb)][_0xbacf29(0x21d)]():undefined;}export function readScopedConfig(_0x2df219){const _0x1a8b8b=a55_0x219f,_0x3a0b1a=_0x2df219[_0x1a8b8b(0x207)]?_0x1a8b8b(0x207):_0x1a8b8b(0x204);return readConfigFile(resolveWriteConfigPath(_0x3a0b1a));}export function writeScopedConfig(_0x1f2e8f,_0x3b2610){const _0x41fdf6=a55_0x219f,_0x1ddd24=_0x3b2610['global']?_0x41fdf6(0x207):'project';writeConfigFile(resolveWriteConfigPath(_0x1ddd24),_0x1f2e8f);}export async function initGlobalEnvironment(_0x72f138){const _0x2be5d4=a55_0x219f,{initEnv:_0x467a3a}=await import(_0x2be5d4(0x21f));_0x467a3a(_0x72f138[_0x2be5d4(0x211)]);const {initDomains:_0x1a16eb}=await import(_0x2be5d4(0x1eb));_0x1a16eb({'apiDomain':_0x72f138[_0x2be5d4(0x1ef)]['apiDomain']||_0x72f138[_0x2be5d4(0x1ef)]['host']||undefined,'userDomain':_0x72f138[_0x2be5d4(0x1ef)][_0x2be5d4(0x1fd)]||undefined,'runtimeDomain':_0x72f138[_0x2be5d4(0x1ef)][_0x2be5d4(0x1f0)]||undefined,'skillHubDomain':_0x72f138[_0x2be5d4(0x1ef)][_0x2be5d4(0x218)]||undefined});}export function getProjectConfigPath(){const _0x3b9972=a55_0x219f;return resolveConfigPath(process[_0x3b9972(0x20e)]());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function inspectCliConfigJsonFile(_0x5a045b){const _0x55be21=a55_0x219f;if(!existsSync(_0x5a045b))return{'status':_0x55be21(0x1e1)};try{const _0xb682e9=readFileSync(_0x5a045b,{'encoding':'utf8'});if(!_0xb682e9?.[_0x55be21(0x21d)]())return{'status':_0x55be21(0x21e)};const _0x530db8=JSON['parse'](_0xb682e9);return{'status':'ok','data':_0x530db8};}catch(_0x30df2f){return{'status':_0x55be21(0x21a),'message':_0x30df2f instanceof Error?_0x30df2f[_0x55be21(0x1e9)]:String(_0x30df2f)};}}export function loadRawConfigLayers(_0x44404a){const _0x4f9385=a55_0x219f;let _0x12daca={},_0x46ead3={},_0x50b9a7,_0x232b00;try{_0x50b9a7=resolveConfigPath(homedir());if(_0x50b9a7){const _0x1a717f=readFileSync(_0x50b9a7,{'encoding':_0x4f9385(0x1ff)});if(_0x1a717f)_0x12daca=JSON[_0x4f9385(0x1fa)](_0x1a717f);}}catch{}try{const _0x23a71c=_0x44404a||process[_0x4f9385(0x20e)]();_0x232b00=resolveConfigPath(_0x23a71c);if(_0x232b00){const _0x2ea28f=readFileSync(_0x232b00,{'encoding':_0x4f9385(0x1ff)});if(_0x2ea28f)_0x46ead3=JSON['parse'](_0x2ea28f);}}catch{}return{'globalPath':_0x50b9a7,'projectPath':_0x232b00,'globalConfig':_0x12daca,'projectConfig':_0x46ead3};}function mergeRawConfigLayers(_0x59762c){const _0x4d7b9c=a55_0x219f,{globalConfig:_0x4a0578,projectConfig:_0xc13ae4}=_0x59762c;if(_0xc13ae4[_0x4d7b9c(0x1f1)]===![]){const _0xcc5d5={..._0xc13ae4};return delete _0xcc5d5['inherit'],_0xcc5d5;}const _0x164ac7={..._0x4a0578,..._0xc13ae4};if(_0x4d7b9c(0x1f7)in _0xc13ae4)_0x164ac7[_0x4d7b9c(0x1f7)]=_0xc13ae4[_0x4d7b9c(0x1f7)];else _0x4a0578[_0x4d7b9c(0x1f7)]&&(_0x164ac7[_0x4d7b9c(0x1f7)]=_0x4a0578[_0x4d7b9c(0x1f7)]);return _0x164ac7;}export function isInProject(){return!!getProjectConfigPath();}function a55_0x219f(_0x55562e,_0x11952d){_0x55562e=_0x55562e-0x1dd;const _0x2a3d8f=a55_0x2a3d();let _0x219fd1=_0x2a3d8f[_0x55562e];return _0x219fd1;}export function readRawConfig(_0x5b05c1){return mergeRawConfigLayers(loadRawConfigLayers(_0x5b05c1));}export function readRawConfigWithLayers(_0x930f0){const _0x367c45=loadRawConfigLayers(_0x930f0);return{'config':mergeRawConfigLayers(_0x367c45),'layers':_0x367c45};}export function resolveDefaultAppSource(_0xf72805){const _0x1613eb=a55_0x219f;if(_0x1613eb(0x1f7)in _0xf72805[_0x1613eb(0x1fe)])return'project';if(_0xf72805[_0x1613eb(0x1fe)][_0x1613eb(0x1f1)]===![])return null;if(_0xf72805[_0x1613eb(0x201)][_0x1613eb(0x1f7)])return _0x1613eb(0x207);return null;}function buildConfig(_0x5a17b7,_0x13982c){const _0x4cffc4=a55_0x219f,_0x4cbc10=_0x5a17b7[_0x4cffc4(0x1f7)]||undefined,_0x29c6d2=_0x13982c['app']||env(_0x4cffc4(0x223))||undefined,_0x461bea=_0x29c6d2||_0x4cbc10||undefined,_0x214b1b=env(_0x4cffc4(0x225))||_0x5a17b7[_0x4cffc4(0x20d)]||undefined,_0x4ab7e6=_0x13982c['env']||env(_0x4cffc4(0x1f3))||_0x5a17b7[_0x4cffc4(0x211)]||DEFAULT_CONFIG_VALUES[_0x4cffc4(0x211)],_0x11a68c=normalizeEnv(String(_0x4ab7e6)),_0x506987=isDaily(_0x11a68c)?_0x4cffc4(0x1f8):isDev(_0x11a68c)?'development':_0x4cffc4(0x1e8),_0x5b555c=resolveLocalAppAliasCode(_0x5a17b7,_0x461bea),_0x296ff1=resolveCachedAppCode(_0x461bea,_0x506987,_0x214b1b),_0x631827=typeof _0x13982c[_0x4cffc4(0x1fb)]==='string'?_0x13982c[_0x4cffc4(0x1fb)]:undefined,_0x180c82=env(_0x4cffc4(0x1dd)),_0x22999a=_0x29c6d2?undefined:_0x5a17b7[_0x4cffc4(0x1fb)]||_0x5a17b7['app']||undefined,_0x441bcd=_0x631827||_0x180c82||_0x5b555c||_0x296ff1||_0x22999a||undefined,_0x730f7c=_0x631827?_0x4cffc4(0x200):_0x180c82?_0x4cffc4(0x211):_0x5b555c?_0x4cffc4(0x221):_0x296ff1?'cache':_0x22999a?_0x4cffc4(0x1e5):undefined,_0x532a2d=_0x5a17b7['locale']||DEFAULT_CONFIG_VALUES['locale'],_0x44901b=undefined,_0x19d755=_0x13982c[_0x4cffc4(0x1ed)]||env(_0x4cffc4(0x20f))||_0x5a17b7[_0x4cffc4(0x1ed)],_0x5f1076=normalizeLegacyOutputFormat(_0x19d755),_0x2ce978=env(_0x4cffc4(0x210))||_0x5a17b7[_0x4cffc4(0x21b)],_0x4cb43=_0x2ce978?Number(_0x2ce978)||undefined:undefined,_0x5da79c=_0x5a17b7[_0x4cffc4(0x1de)]||_0x5a17b7['maxRisk'],_0x30c609=_0x5da79c==='read'||_0x5da79c===_0x4cffc4(0x1f5)||_0x5da79c===_0x4cffc4(0x1ee)?_0x5da79c:DEFAULT_CONFIG_VALUES[_0x4cffc4(0x1de)],_0x2fa808=env(_0x4cffc4(0x202)),_0xcb1a7a=_0x2fa808==='1'||_0x2fa808===_0x4cffc4(0x1f2);return{'appCode':typeof _0x441bcd==='string'&&_0x441bcd['trim']()?_0x441bcd[_0x4cffc4(0x21d)]():undefined,'appCodeSource':_0x730f7c,'env':_0x506987,'locale':_0x532a2d,'cookie':_0x44901b,'accessKey':_0x214b1b,'format':_0x5f1076,'pageSize':_0x4cb43,'riskLevel':_0x30c609,'verbose':_0xcb1a7a,'defaultApp':_0x4cbc10,'currentApp':typeof _0x461bea===_0x4cffc4(0x205)?_0x461bea:undefined,'raw':_0x5a17b7};}function env(_0x131a6f){return productEnv(_0x131a6f);}async function buildAuth(_0x1fbd0a){const _0x27694c=a55_0x219f,_0x3a4d70='',_0x2e7f6c=!!_0x1fbd0a[_0x27694c(0x20d)];return{'cookie':_0x3a4d70,'isLoggedIn':_0x2e7f6c,async 'getOrLogin'(){const _0x3c1e82=_0x27694c;if(_0x2e7f6c)return _0x3a4d70;throw CliErrors[_0x3c1e82(0x217)]();}};}
@@ -1 +1 @@
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
+ (function(_0x5238b1,_0x25c51f){const _0x158ca7=a56_0x523d,_0x5940ef=_0x5238b1();while(!![]){try{const _0x9f3aa6=parseInt(_0x158ca7(0x183))/0x1*(parseInt(_0x158ca7(0x17b))/0x2)+parseInt(_0x158ca7(0x1b1))/0x3+parseInt(_0x158ca7(0x1c9))/0x4*(-parseInt(_0x158ca7(0x160))/0x5)+parseInt(_0x158ca7(0x1a1))/0x6+parseInt(_0x158ca7(0x190))/0x7*(parseInt(_0x158ca7(0x1a3))/0x8)+-parseInt(_0x158ca7(0x1ca))/0x9*(parseInt(_0x158ca7(0x188))/0xa)+-parseInt(_0x158ca7(0x1da))/0xb*(parseInt(_0x158ca7(0x166))/0xc);if(_0x9f3aa6===_0x25c51f)break;else _0x5940ef['push'](_0x5940ef['shift']());}catch(_0x44d86e){_0x5940ef['push'](_0x5940ef['shift']());}}}(a56_0x2ef6,0x2589b));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(_0x304526){_activeAK=_0x304526||undefined;}export function clearActiveAK(){_activeAK=undefined;}async function apiRequest(_0x40a1a6,_0x40b748={}){const _0x3347d9=a56_0x523d,{method:method=_0x3347d9(0x16d),body:_0x2c749b,headers:headers={},timeout:timeout=0x7530}=_0x40b748,_0x71347a=_activeAK,_0x211658=getRuntimeDomain();if(!_0x71347a)throw CliErrors[_0x3347d9(0x1dc)](_0x3347d9(0x1ac)+PRODUCT_CONFIG[_0x3347d9(0x19b)]+'.');const _0x485c5f=''+_0x211658+_0x40a1a6,_0x1d50dc={'X-User-AK':_0x71347a},_0x50ff60=new AbortController(),_0x52c8c0=setTimeout(()=>_0x50ff60[_0x3347d9(0x1b9)](),timeout);try{const _0x3786ef=await fetch(_0x485c5f,{'method':method,'headers':{'Content-Type':_0x3347d9(0x194),'X-Invoke-Source':PRODUCT_CONFIG['invokeSource'],..._0x1d50dc,...headers},'body':_0x2c749b?JSON[_0x3347d9(0x195)](_0x2c749b):undefined,'signal':_0x50ff60[_0x3347d9(0x1a5)]});let _0x5909d8;try{_0x5909d8=await _0x3786ef[_0x3347d9(0x182)]();}catch{throw CliErrors[_0x3347d9(0x169)](_0x3347d9(0x1cd)+_0x3786ef[_0x3347d9(0x196)]+')',_0x3786ef[_0x3347d9(0x196)]>=0x190?_0x3347d9(0x1db):undefined);}if(!_0x3786ef['ok']||_0x5909d8[_0x3347d9(0x1b8)]===![])throw CliErrors[_0x3347d9(0x169)](_0x5909d8[_0x3347d9(0x1d7)]||_0x5909d8[_0x3347d9(0x1bd)]||'API\x20error:\x20'+_0x3786ef[_0x3347d9(0x196)],_0x5909d8[_0x3347d9(0x1a2)]?_0x3347d9(0x1a8)+_0x5909d8[_0x3347d9(0x1a2)]:undefined);return _0x5909d8;}catch(_0x4375ab){if(_0x4375ab instanceof Error&&_0x4375ab[_0x3347d9(0x1b3)]===_0x3347d9(0x161))throw CliErrors[_0x3347d9(0x169)](_0x3347d9(0x1d6)+_0x485c5f);throw _0x4375ab;}finally{clearTimeout(_0x52c8c0);}}async function apiBinaryRequest(_0x35f87f,_0x2648d7={}){const _0x16bc6b=a56_0x523d,{method:method=_0x16bc6b(0x16d),headers:headers={},timeout:timeout=0x7530}=_0x2648d7,_0x5e7c13=_activeAK,_0x15ebf9=getRuntimeDomain();if(!_0x5e7c13)throw CliErrors[_0x16bc6b(0x1dc)](_0x16bc6b(0x1ac)+PRODUCT_CONFIG[_0x16bc6b(0x19b)]+'.');const _0x1e20e4=''+_0x15ebf9+_0x35f87f,_0x22d3c7=new AbortController(),_0x326c37=setTimeout(()=>_0x22d3c7[_0x16bc6b(0x1b9)](),timeout);try{const _0x45bf5f=await fetch(_0x1e20e4,{'method':method,'headers':{'X-Invoke-Source':PRODUCT_CONFIG['invokeSource'],'X-User-AK':_0x5e7c13,...headers},'signal':_0x22d3c7['signal']});if(!_0x45bf5f['ok']){let _0x2b112a;try{const _0x233289=await _0x45bf5f[_0x16bc6b(0x182)]();_0x2b112a=_0x233289[_0x16bc6b(0x1d7)]||_0x233289[_0x16bc6b(0x1bd)]||_0x233289['errorCode'];}catch{_0x2b112a=await _0x45bf5f['text']()[_0x16bc6b(0x1a4)](()=>undefined);}throw CliErrors['apiError'](_0x2b112a||_0x16bc6b(0x1cf)+_0x45bf5f['status'],_0x16bc6b(0x197)+_0x1e20e4);}return Buffer[_0x16bc6b(0x170)](await _0x45bf5f['arrayBuffer']());}catch(_0x5b0b35){if(_0x5b0b35 instanceof Error&&_0x5b0b35['name']===_0x16bc6b(0x161))throw CliErrors[_0x16bc6b(0x169)](_0x16bc6b(0x1d6)+_0x1e20e4);throw _0x5b0b35;}finally{clearTimeout(_0x326c37);}}async function toolboxRequest(_0x1de9fa,_0x424cce,_0x1b8e8a={}){const _0x1e0a20=a56_0x523d,{method:method='GET',headers:headers={},timeout:timeout=0x7530}=_0x1b8e8a,_0x277ee4=_activeAK;if(!_0x277ee4)throw CliErrors['authRequired']('Configure\x20accessKey\x20in\x20'+PRODUCT_CONFIG[_0x1e0a20(0x19b)]+'.');const _0x4522fe=getApiDomain()['replace'](/\/$/,''),_0x35f641=new URL(_0x1de9fa,_0x4522fe+_0x1e0a20(0x17c));if(_0x424cce)for(const [_0x1bb5e0,_0xba5018]of Object[_0x1e0a20(0x1a9)](_0x424cce)){_0xba5018!==undefined&&_0xba5018!==null&&_0x35f641['searchParams'][_0x1e0a20(0x17a)](_0x1bb5e0,String(_0xba5018));}const _0x445481=new AbortController(),_0x19cc50=setTimeout(()=>_0x445481[_0x1e0a20(0x1b9)](),timeout);try{const _0x87d23f=await fetch(_0x35f641,{'method':method,'headers':{'Content-Type':_0x1e0a20(0x194),'X-Invoke-Source':PRODUCT_CONFIG[_0x1e0a20(0x16b)],'X-User-AK':_0x277ee4,...headers},'signal':_0x445481[_0x1e0a20(0x1a5)]});let _0x4a93f2;try{_0x4a93f2=await _0x87d23f[_0x1e0a20(0x182)]();}catch{throw CliErrors[_0x1e0a20(0x169)](_0x1e0a20(0x179)+_0x87d23f['status']+')',_0x87d23f['status']>=0x190?_0x1e0a20(0x1db):undefined);}if(!_0x87d23f['ok']){const _0x582bb7=_0x4a93f2&&typeof _0x4a93f2===_0x1e0a20(0x180)?_0x4a93f2:{};throw CliErrors[_0x1e0a20(0x169)](_0x582bb7[_0x1e0a20(0x1d7)]||_0x582bb7[_0x1e0a20(0x1bd)]||_0x1e0a20(0x165)+_0x87d23f[_0x1e0a20(0x196)],_0x582bb7[_0x1e0a20(0x1a2)]?_0x1e0a20(0x185)+_0x582bb7[_0x1e0a20(0x1a2)]:undefined);}if(_0x4a93f2&&typeof _0x4a93f2===_0x1e0a20(0x180)&&_0x1e0a20(0x1b8)in _0x4a93f2&&typeof _0x4a93f2['success']==='boolean'){const _0x30a48a=_0x4a93f2;if(!_0x30a48a[_0x1e0a20(0x1b8)])throw CliErrors['apiError'](_0x30a48a['errorMsg']||_0x30a48a['message']||_0x1e0a20(0x1c5),_0x30a48a['errorCode']?_0x1e0a20(0x185)+_0x30a48a[_0x1e0a20(0x1a2)]:undefined);return _0x30a48a[_0x1e0a20(0x1b5)];}return _0x4a93f2;}catch(_0x2c1a50){if(_0x2c1a50 instanceof Error&&_0x2c1a50[_0x1e0a20(0x1b3)]==='AbortError')throw CliErrors[_0x1e0a20(0x169)]('Request\x20timeout:\x20'+_0x35f641[_0x1e0a20(0x1d3)]());throw _0x2c1a50;}finally{clearTimeout(_0x19cc50);}}async function skillHubJsonRequest(_0x5b60f7,_0x1563fc={}){const _0x1c86c6=a56_0x523d,{method:method=_0x1c86c6(0x16d),query:_0x247002,body:_0x22154a,headers:headers={},timeout:timeout=0x7530}=_0x1563fc,_0x23a690=_activeAK;if(!_0x23a690)throw CliErrors[_0x1c86c6(0x1dc)](_0x1c86c6(0x1ac)+PRODUCT_CONFIG['newConfigFileName']+'.');const _0x4c2f06=getSkillHubDomain()['replace'](/\/$/,''),_0x35feb1=new URL(_0x5b60f7,_0x4c2f06+'/');if(_0x247002)for(const [_0x4a2ea5,_0x45b6a4]of Object[_0x1c86c6(0x1a9)](_0x247002)){_0x45b6a4!==undefined&&_0x45b6a4!==null&&_0x35feb1[_0x1c86c6(0x18b)][_0x1c86c6(0x17a)](_0x4a2ea5,String(_0x45b6a4));}const _0x5d29f0=new AbortController(),_0x44cd84=setTimeout(()=>_0x5d29f0[_0x1c86c6(0x1b9)](),timeout);try{const _0x1144b6=await fetch(_0x35feb1['toString'](),{'method':method,'headers':{'Accept':_0x1c86c6(0x194),'X-Invoke-Source':PRODUCT_CONFIG['invokeSource'],'X-User-AK':_0x23a690,...headers},'body':_0x22154a,'signal':_0x5d29f0[_0x1c86c6(0x1a5)]});let _0x480751;try{_0x480751=await _0x1144b6[_0x1c86c6(0x182)]();}catch{throw CliErrors[_0x1c86c6(0x169)](_0x1c86c6(0x18d)+_0x1144b6[_0x1c86c6(0x196)]+')',_0x1144b6[_0x1c86c6(0x196)]>=0x190?'Check\x20your\x20credentials\x20and\x20try\x20again.':undefined);}const _0x4350b0=!_0x1144b6['ok']||_0x480751?.['success']===![]||typeof _0x480751?.[_0x1c86c6(0x1a0)]===_0x1c86c6(0x1c8)&&_0x480751[_0x1c86c6(0x1a0)]>=0x190;if(_0x4350b0)throw CliErrors[_0x1c86c6(0x169)](_0x480751?.['errorMsg']||_0x480751?.[_0x1c86c6(0x1bd)]||_0x480751?.['msg']||'SkillHub\x20API\x20error:\x20'+_0x1144b6[_0x1c86c6(0x196)],_0x480751?.[_0x1c86c6(0x1a2)]?_0x1c86c6(0x16f)+_0x480751[_0x1c86c6(0x1a2)]:undefined);return _0x480751?.['data']??_0x480751;}catch(_0x49d282){if(_0x49d282 instanceof Error&&_0x49d282[_0x1c86c6(0x1b3)]===_0x1c86c6(0x161))throw CliErrors['apiError'](_0x1c86c6(0x1d6)+_0x35feb1['toString']());throw _0x49d282;}finally{clearTimeout(_0x44cd84);}}async function skillHubBinaryRequest(_0x422223,_0x588b5e={}){const _0x2d548d=a56_0x523d,{query:_0x220bf3,headers:headers={},timeout:timeout=0x7530}=_0x588b5e,_0x34b58b=_activeAK;if(!_0x34b58b)throw CliErrors[_0x2d548d(0x1dc)]('Configure\x20accessKey\x20in\x20'+PRODUCT_CONFIG[_0x2d548d(0x19b)]+'.');const _0x97d20=getSkillHubDomain()[_0x2d548d(0x192)](/\/$/,''),_0x52f572=new URL(_0x422223,_0x97d20+'/');if(_0x220bf3)for(const [_0x4d88d4,_0x563857]of Object[_0x2d548d(0x1a9)](_0x220bf3)){_0x563857!==undefined&&_0x563857!==null&&_0x52f572[_0x2d548d(0x18b)][_0x2d548d(0x17a)](_0x4d88d4,String(_0x563857));}const _0x1fb9b5=new AbortController(),_0x3f7e3d=setTimeout(()=>_0x1fb9b5[_0x2d548d(0x1b9)](),timeout);try{const _0x4052ab=await fetch(_0x52f572[_0x2d548d(0x1d3)](),{'method':_0x2d548d(0x16d),'headers':{'Accept':_0x2d548d(0x1ae),'X-Invoke-Source':PRODUCT_CONFIG[_0x2d548d(0x16b)],'X-User-AK':_0x34b58b,...headers},'signal':_0x1fb9b5[_0x2d548d(0x1a5)]});if(!_0x4052ab['ok']){let _0x46c9f9;try{const _0xe233ba=await _0x4052ab['json']();_0x46c9f9=_0xe233ba[_0x2d548d(0x1d7)]||_0xe233ba[_0x2d548d(0x1bd)]||_0xe233ba[_0x2d548d(0x1af)]||_0xe233ba[_0x2d548d(0x1a2)];}catch{_0x46c9f9=await _0x4052ab[_0x2d548d(0x1b6)]()[_0x2d548d(0x1a4)](()=>undefined);}throw CliErrors[_0x2d548d(0x169)](_0x46c9f9||'SkillHub\x20API\x20error:\x20'+_0x4052ab[_0x2d548d(0x196)],_0x2d548d(0x197)+_0x52f572[_0x2d548d(0x1d3)]());}return Buffer[_0x2d548d(0x170)](await _0x4052ab[_0x2d548d(0x191)]());}catch(_0x5de997){if(_0x5de997 instanceof Error&&_0x5de997[_0x2d548d(0x1b3)]===_0x2d548d(0x161))throw CliErrors[_0x2d548d(0x169)](_0x2d548d(0x1d6)+_0x52f572[_0x2d548d(0x1d3)]());throw _0x5de997;}finally{clearTimeout(_0x3f7e3d);}}export async function getBffScriptInfo(_0x4af92a){const _0x15b0ea=a56_0x523d,_0x505248=await apiRequest(_0x15b0ea(0x172)+_0x4af92a);if(!_0x505248[_0x15b0ea(0x1b5)])throw CliErrors[_0x15b0ea(0x168)](_0x15b0ea(0x1c4)+_0x4af92a);return _0x505248[_0x15b0ea(0x1b5)];}export async function getSqlQueryInfo(_0x4d9f59,_0x3885a1){const _0x5e99f8=a56_0x523d,_0x4fde8c=await apiRequest(_0x5e99f8(0x18e),{'method':_0x5e99f8(0x189),'body':{'appCode':_0x4d9f59,'currentPage':0x1,'pageSize':0x1,'sqlCode':_0x3885a1}}),_0x469347=_0x4fde8c['data'],_0x16fb4d=_0x469347&&typeof _0x469347===_0x5e99f8(0x180)&&_0x5e99f8(0x177)in _0x469347?_0x469347[_0x5e99f8(0x177)]?.[0x0]:_0x469347&&typeof _0x469347===_0x5e99f8(0x180)&&_0x5e99f8(0x1ce)in _0x469347?_0x469347:undefined;if(!_0x16fb4d)throw CliErrors[_0x5e99f8(0x168)](_0x5e99f8(0x1c6)+_0x3885a1);return _0x16fb4d;}function isRemoteAppItem(_0x488fac){const _0x3b6844=a56_0x523d;return!!_0x488fac&&typeof _0x488fac==='object'&&typeof _0x488fac['appCode']===_0x3b6844(0x1cc)&&typeof _0x488fac[_0x3b6844(0x1ba)]===_0x3b6844(0x1cc);}function extractRemoteAppItems(_0x3f6935){const _0x24a599=a56_0x523d;if(Array['isArray'](_0x3f6935))return _0x3f6935[_0x24a599(0x173)](isRemoteAppItem);if(!_0x3f6935||typeof _0x3f6935!==_0x24a599(0x180))throw CliErrors[_0x24a599(0x169)]('Invalid\x20app\x20list\x20response:\x20expected\x20object\x20or\x20array.');const _0x5dee81=_0x3f6935;if(Array[_0x24a599(0x1de)](_0x5dee81[_0x24a599(0x177)]))return _0x5dee81[_0x24a599(0x177)][_0x24a599(0x173)](isRemoteAppItem);if(_0x5dee81['data']&&typeof _0x5dee81['data']==='object'){const _0x3d4784=_0x5dee81[_0x24a599(0x1b5)];if(Array[_0x24a599(0x1de)](_0x3d4784[_0x24a599(0x177)]))return _0x3d4784['tableData'][_0x24a599(0x173)](isRemoteAppItem);}throw CliErrors[_0x24a599(0x169)]('Invalid\x20app\x20list\x20response:\x20missing\x20data.tableData.');}export async function getMyApps(){const _0x2bf204=a56_0x523d,_0x6c6770=await apiRequest(_0x2bf204(0x1d5));return extractRemoteAppItems(_0x6c6770['data']);}export async function getLoginUserInfo(){const _0x5484d4=a56_0x523d,_0x5a15fe=await apiRequest(_0x5484d4(0x175));if(!_0x5a15fe[_0x5484d4(0x1b5)]||typeof _0x5a15fe[_0x5484d4(0x1b5)]!==_0x5484d4(0x180)||Array['isArray'](_0x5a15fe['data']))throw CliErrors['apiError']('Invalid\x20login\x20user\x20info\x20response:\x20expected\x20object.');return _0x5a15fe['data'];}export async function listDatasets(_0x165c8f,_0xefb627){const _0x3d6f56=a56_0x523d,_0x1e045a=await apiRequest('/client/dataset/list',{'method':_0x3d6f56(0x189),'body':{'appCode':_0x165c8f,..._0xefb627?.[_0x3d6f56(0x1a0)]&&{'code':_0xefb627['code']},..._0xefb627?.['name']&&{'name':_0xefb627[_0x3d6f56(0x1b3)]}}});return extractList(_0x1e045a[_0x3d6f56(0x1b5)]);}export async function getDatasetDetail(_0x3c709d){const _0x474e1b=a56_0x523d,_0x4f3d0c=/^\d+$/[_0x474e1b(0x17d)](_0x3c709d)?'id':'code',_0x33d608=await apiRequest(_0x474e1b(0x19a)+_0x4f3d0c+'='+_0x3c709d);return _0x33d608[_0x474e1b(0x1b5)];}export async function getDatasetSdkUsageDoc(_0x47240a,_0x49f5e6){const _0x3f4a85=a56_0x523d,_0x55f676=await toolboxRequest(_0x3f4a85(0x19c),{'datasetCode':_0x47240a,'appCode':_0x49f5e6});return typeof _0x55f676?.[_0x3f4a85(0x187)]===_0x3f4a85(0x1cc)?_0x55f676[_0x3f4a85(0x187)]:'';}export async function listRuntimeArtifacts(_0x850124,_0x2ae488){const _0x300bf2=a56_0x523d,_0x2cf386=new URLSearchParams({'appCode':_0x850124});if(_0x2ae488?.['artifactType'])_0x2cf386[_0x300bf2(0x17a)](_0x300bf2(0x17e),_0x2ae488['artifactType']);if(_0x2ae488?.[_0x300bf2(0x1bf)])_0x2cf386[_0x300bf2(0x17a)](_0x300bf2(0x1bf),_0x2ae488['source']);if(_0x2ae488?.[_0x300bf2(0x1a6)]!==undefined)_0x2cf386['set']('favorite',String(_0x2ae488[_0x300bf2(0x1a6)]));const _0x4ada8f=await apiRequest('/client/artifact/list?'+_0x2cf386[_0x300bf2(0x1d3)]());return Array[_0x300bf2(0x1de)](_0x4ada8f[_0x300bf2(0x1b5)])?_0x4ada8f[_0x300bf2(0x1b5)]:[];}export async function getRuntimeArtifact(_0x3e5e6d,_0x6f9768){const _0xec941a=a56_0x523d,_0x3e3fee=await apiRequest('/client/artifact/'+_0x3e5e6d+_0xec941a(0x19f)+encodeURIComponent(_0x6f9768));if(!_0x3e3fee['data'])throw CliErrors['validation']('Artifact\x20not\x20found:\x20id='+_0x3e5e6d);return _0x3e3fee[_0xec941a(0x1b5)];}export async function createRuntimeArtifact(_0x32a27f,_0x38565c){const _0x52cad6=a56_0x523d,_0x1cdb21=await apiRequest(_0x52cad6(0x162),{'method':_0x52cad6(0x189),'body':{'appCode':_0x32a27f,..._0x38565c}});return _0x1cdb21[_0x52cad6(0x1b5)];}export async function updateRuntimeArtifact(_0xe153bb,_0x4567e0,_0x41b5be){const _0x981254=a56_0x523d,_0x3c3119=await apiRequest(_0x981254(0x18c)+_0xe153bb+_0x981254(0x193),{'method':_0x981254(0x189),'body':{'appCode':_0x4567e0,..._0x41b5be}});return _0x3c3119[_0x981254(0x1b5)];}export async function listPersonalBffs(_0x58542d){const _0x5a01e0=a56_0x523d,_0x2f6273=await apiRequest(_0x5a01e0(0x1c3)+encodeURIComponent(_0x58542d));return Array[_0x5a01e0(0x1de)](_0x2f6273[_0x5a01e0(0x1b5)])?_0x2f6273['data']:[];}function a56_0x523d(_0x121f6f,_0x534c8f){_0x121f6f=_0x121f6f-0x160;const _0x2ef679=a56_0x2ef6();let _0x523d19=_0x2ef679[_0x121f6f];return _0x523d19;}export async function getPersonalBff(_0x5a7eec,_0x13d8bc){const _0x18ddb8=a56_0x523d,_0x55c4eb=await apiRequest('/client/runtime-bff/personal/'+_0x5a7eec+'?appCode='+encodeURIComponent(_0x13d8bc));if(!_0x55c4eb[_0x18ddb8(0x1b5)])throw CliErrors[_0x18ddb8(0x168)](_0x18ddb8(0x1c0)+_0x5a7eec);return _0x55c4eb[_0x18ddb8(0x1b5)];}export async function createPersonalBff(_0x338280,_0x66f3be){const _0x45d5f9=a56_0x523d,_0x467ee4=await apiRequest(_0x45d5f9(0x1c7),{'method':_0x45d5f9(0x189),'body':{'appCode':_0x338280,..._0x66f3be}});return _0x467ee4[_0x45d5f9(0x1b5)];}export async function updatePersonalBff(_0x1efe63,_0x9eac4b,_0x1148dc){const _0x5055dc=a56_0x523d,_0x274dcf=await apiRequest(_0x5055dc(0x1d4)+_0x1efe63+_0x5055dc(0x193),{'method':_0x5055dc(0x189),'body':{'appCode':_0x9eac4b,..._0x1148dc}});return _0x274dcf[_0x5055dc(0x1b5)];}export async function executePersonalBff(_0x1fb6ab,_0x3d44ce,_0x37f155){const _0x38555c=a56_0x523d,_0xaae3f8=await apiRequest(_0x38555c(0x1d4)+_0x1fb6ab+_0x38555c(0x171)+encodeURIComponent(_0x3d44ce),{'method':_0x38555c(0x189),'body':_0x37f155});return _0xaae3f8[_0x38555c(0x1b5)];}export async function listPersonalKnowledgeBaseItems(_0x335b49){const _0x1b18e1=a56_0x523d,_0x2e7b14=await apiRequest(_0x1b18e1(0x164)+encodeURIComponent(_0x335b49));return Array[_0x1b18e1(0x1de)](_0x2e7b14['data'])?_0x2e7b14[_0x1b18e1(0x1b5)]:[];}export async function getPersonalKnowledgeBaseItem(_0x4a853b,_0x4b3a62){const _0x4ca94a=a56_0x523d,_0x52e374=await apiRequest('/client/knowledge-base/personal/'+_0x4a853b+_0x4ca94a(0x19f)+encodeURIComponent(_0x4b3a62));if(!_0x52e374[_0x4ca94a(0x1b5)])throw CliErrors[_0x4ca94a(0x168)](_0x4ca94a(0x1ab)+_0x4a853b);return _0x52e374[_0x4ca94a(0x1b5)];}export async function createPersonalKnowledgeBaseItem(_0x1d3a22,_0x417807){const _0x40b966=a56_0x523d,_0x293697=await apiRequest(_0x40b966(0x19e),{'method':'POST','body':{'appCode':_0x1d3a22,..._0x417807}});return _0x293697[_0x40b966(0x1b5)];}export async function updatePersonalKnowledgeBaseItem(_0x106031,_0x1ca656,_0xabd9f8){const _0x52f6ca=a56_0x523d,_0x3f8f6d=await apiRequest(_0x52f6ca(0x1aa)+_0x106031+_0x52f6ca(0x193),{'method':_0x52f6ca(0x189),'body':{'appCode':_0x1ca656,..._0xabd9f8}});return _0x3f8f6d[_0x52f6ca(0x1b5)];}export async function searchKnowledgeBase(_0x29ec7a,_0x3d8d9c){const _0x3b2747=a56_0x523d,_0x6274ab=await apiRequest('/client/knowledge-base/search',{'method':_0x3b2747(0x189),'body':{'appCode':_0x29ec7a,'query':_0x3d8d9c['query'],..._0x3d8d9c[_0x3b2747(0x1d8)]!==undefined?{'topK':_0x3d8d9c[_0x3b2747(0x1d8)]}:{}}});return Array[_0x3b2747(0x1de)](_0x6274ab[_0x3b2747(0x1b5)])?_0x6274ab[_0x3b2747(0x1b5)]:[];}export async function listRuntimeSkills(_0x3ec081){const _0x358585=a56_0x523d,_0x3f94ea=await skillHubJsonRequest('/api/runtime/v1/namespaces/'+encodeURIComponent(_0x3ec081[_0x358585(0x1b7)])+_0x358585(0x184),{'query':{'page':0x0,'size':0xc8}});return normalizeSkillHubRuntimeListResponse(_0x3ec081[_0x358585(0x1b7)],_0x3f94ea,_0x3ec081[_0x358585(0x17f)]??_0x358585(0x16e),_0x3ec081['code']);}export async function listPersonalRuntimeSkills(_0x7d9175){const _0x50b98f=a56_0x523d;return(await listRuntimeSkills({'appCode':_0x7d9175,'scope':_0x50b98f(0x1b4)}))[_0x50b98f(0x1b4)];}function a56_0x2ef6(){const _0x48f844=['abort','appName','visibility','/download','message','application/zip','source','Personal\x20BFF\x20not\x20found:\x20id=','skillName','company','/client/runtime-bff/personal/list?appCode=','BFF\x20script\x20not\x20found:\x20id=','Toolbox\x20API\x20error','SQL\x20query\x20not\x20found:\x20','/client/runtime-bff/personal/create','number','186860oHNyKc','171fohICv','packageBase64','string','API\x20returned\x20non-JSON\x20response\x20(HTTP\x20','sqlCode','API\x20error:\x20','PRIVATE','Missing\x20Skill\x20package\x20payload.','undefined','toString','/client/runtime-bff/personal/','/client/app/my-apps','Request\x20timeout:\x20','errorMsg','topK','skillCode','11zZaCpw','Check\x20your\x20credentials\x20and\x20try\x20again.','authRequired','items','isArray','description','10EqFBbs','AbortError','/client/artifact/create','version','/client/knowledge-base/personal/list?appCode=','Toolbox\x20API\x20error:\x20','1194672qktFZc','/publish','validation','apiError','tags','invokeSource','skill','GET','user','SkillHub\x20error\x20code:\x20','from','/execute?appCode=','/client/bff/query/','filter','effective','/client/user/loginUserInfo','namespace','tableData','slug','Toolbox\x20returned\x20non-JSON\x20response\x20(HTTP\x20','set','4GAecHi','/api/node-toolbox/','test','artifactType','scope','object','files','json','37283tSXKiW','/skills','Toolbox\x20error\x20code:\x20','file','markdown','131680NOYYWA','POST','NAMESPACE_ONLY','searchParams','/client/artifact/','SkillHub\x20returned\x20non-JSON\x20response\x20(HTTP\x20','/client/sql/query','public','14WILuNv','arrayBuffer','replace','/update','application/json','stringify','status','Download\x20failed:\x20','/api/cli/v1/skills/','displayName','/client/dataset/query?','newConfigFileName','api-doc-generator','PUBLIC','/client/knowledge-base/personal/create','?appCode=','code','1453818lfluqt','errorCode','640040wlVkFr','catch','signal','favorite','trim','API\x20error\x20code:\x20','entries','/client/knowledge-base/personal/','Knowledge-base\x20entry\x20not\x20found:\x20id=','Configure\x20accessKey\x20in\x20','publishedVersion','application/octet-stream','msg','content','360162EwTDkG','values','name','personal','data','text','appCode','success'];a56_0x2ef6=function(){return _0x48f844;};return a56_0x2ef6();}export async function listCompanyRuntimeSkills(_0x412f86){const _0xa5c7f7=a56_0x523d;return(await listRuntimeSkills({'appCode':_0x412f86,'scope':_0xa5c7f7(0x1c2)}))['company'];}export async function listVisibleRuntimeSkills(_0x36031d){const _0x5a0447=a56_0x523d;return(await listRuntimeSkills({'appCode':_0x36031d,'scope':_0x5a0447(0x16e)}))[_0x5a0447(0x174)];}export async function createPersonalRuntimeSkill(_0x54e1c6,_0x10b4e2){return publishRuntimeSkill(_0x54e1c6,_0x10b4e2);}export async function updatePersonalRuntimeSkill(_0x4745d2,_0x2ebdec,_0x2f0202){const _0x478658=a56_0x523d;return publishRuntimeSkill(_0x2ebdec,{..._0x2f0202,'skillCode':_0x2f0202[_0x478658(0x1d9)]??_0x4745d2});}export async function downloadRuntimeSkillPackage(_0x2fb578,_0x10ed19,_0xd89df0,_0x2ab9eb){const _0x1d80e8=a56_0x523d;void _0x2fb578;const _0x37e070=_0x2ab9eb?_0x1d80e8(0x198)+encodeURIComponent(_0xd89df0)+'/'+encodeURIComponent(_0x10ed19)+'/versions/'+encodeURIComponent(_0x2ab9eb)+_0x1d80e8(0x1bc):_0x1d80e8(0x198)+encodeURIComponent(_0xd89df0)+'/'+encodeURIComponent(_0x10ed19)+'/download';return skillHubBinaryRequest(_0x37e070);}async function publishRuntimeSkill(_0xad72e3,_0x5d6fda){const _0x1d903a=a56_0x523d,_0x4e74ba=new FormData();_0x4e74ba[_0x1d903a(0x17a)](_0x1d903a(0x186),runtimeSkillPackageFile(_0x5d6fda)),_0x4e74ba[_0x1d903a(0x17a)]('visibility',_0x1d903a(0x1d0));const _0x28c463=await skillHubJsonRequest(_0x1d903a(0x198)+encodeURIComponent(_0xad72e3)+_0x1d903a(0x167),{'method':_0x1d903a(0x189),'body':_0x4e74ba});return{'appCode':_0x28c463[_0x1d903a(0x176)]??_0xad72e3,'skillCode':_0x28c463['slug']??_0x5d6fda['skillCode']??'','skillName':_0x5d6fda[_0x1d903a(0x1c1)]??_0x28c463[_0x1d903a(0x178)]??_0x5d6fda[_0x1d903a(0x1d9)],'description':_0x5d6fda[_0x1d903a(0x1df)],'scope':skillHubVisibilityToScope(_0x28c463[_0x1d903a(0x1bb)])??_0x1d903a(0x1b4),'version':_0x28c463['version']??_0x5d6fda[_0x1d903a(0x163)],'tags':_0x5d6fda[_0x1d903a(0x16a)],'content':_0x5d6fda[_0x1d903a(0x1b0)],'files':_0x5d6fda[_0x1d903a(0x181)]};}function runtimeSkillPackageFile(_0xbf98bf){const _0x4d3b96=a56_0x523d;if(!_0xbf98bf[_0x4d3b96(0x1cb)])throw CliErrors[_0x4d3b96(0x168)](_0x4d3b96(0x1d1));const _0x4e492a=Buffer['from'](_0xbf98bf[_0x4d3b96(0x1cb)],'base64'),_0x3e4d87=new Blob([_0x4e492a],{'type':_0x4d3b96(0x1be)}),_0x5bc5bb=(_0xbf98bf[_0x4d3b96(0x1d9)]||_0x4d3b96(0x16c))+'.zip';if(typeof File!==_0x4d3b96(0x1d2))return new File([_0x3e4d87],_0x5bc5bb,{'type':_0x4d3b96(0x1be)});return _0x3e4d87;}function normalizeSkillHubRuntimeListResponse(_0x41038b,_0x1231d1,_0x59d268,_0x5c3264){const _0x3a0960=a56_0x523d,_0xabd4e=Array[_0x3a0960(0x1de)](_0x1231d1)?_0x1231d1:Array['isArray'](_0x1231d1?.[_0x3a0960(0x1dd)])?_0x1231d1[_0x3a0960(0x1dd)]:[],_0x2f5c58=_0x5c3264?.[_0x3a0960(0x1a7)](),_0x5ad68a=_0xabd4e['filter'](_0x16dc80=>!_0x2f5c58||_0x16dc80[_0x3a0960(0x178)]===_0x2f5c58)['map'](skillHubRuntimeItemToRuntimeSkill)[_0x3a0960(0x173)](_0x2e8aff=>Boolean(_0x2e8aff)),_0x542065=_0x5ad68a[_0x3a0960(0x173)](_0x58cb34=>_0x58cb34[_0x3a0960(0x17f)]===_0x3a0960(0x1b4)),_0x43b8da=_0x5ad68a[_0x3a0960(0x173)](_0x3d35dc=>_0x3d35dc[_0x3a0960(0x17f)]==='company'),_0x5eb1c1=_0x5ad68a[_0x3a0960(0x173)](_0x7fa963=>_0x7fa963['scope']===_0x3a0960(0x18f));return{'appCode':_0x41038b,'personal':_0x59d268===_0x3a0960(0x1c2)||_0x59d268===_0x3a0960(0x18f)?[]:_0x542065,'company':_0x59d268===_0x3a0960(0x1b4)||_0x59d268===_0x3a0960(0x18f)?[]:_0x43b8da,'public':_0x59d268==='personal'||_0x59d268==='company'?[]:_0x5eb1c1,'effective':buildEffectiveRuntimeSkills(_0x542065,_0x43b8da,_0x5eb1c1,_0x59d268)};}function skillHubRuntimeItemToRuntimeSkill(_0x1f4e26){const _0x11d263=a56_0x523d,_0x5d9ae1=_0x1f4e26[_0x11d263(0x178)]?.[_0x11d263(0x1a7)](),_0x17d1ec=skillHubVisibilityToScope(_0x1f4e26[_0x11d263(0x1bb)]);if(!_0x5d9ae1||!_0x17d1ec)return undefined;return{'id':_0x1f4e26['id'],'appCode':_0x1f4e26['namespace'],'skillCode':_0x5d9ae1,'skillName':_0x1f4e26[_0x11d263(0x199)]??_0x5d9ae1,'description':_0x1f4e26['summary'],'scope':_0x17d1ec,'version':skillHubRuntimeItemVersion(_0x1f4e26),'status':_0x1f4e26[_0x11d263(0x196)]};}function skillHubVisibilityToScope(_0x565fe0){const _0x360eac=a56_0x523d;if(_0x565fe0===_0x360eac(0x1d0))return'personal';if(_0x565fe0===_0x360eac(0x18a))return _0x360eac(0x1c2);if(_0x565fe0===_0x360eac(0x19d))return _0x360eac(0x18f);return undefined;}function skillHubRuntimeItemVersion(_0x4fa415){const _0x11ca84=a56_0x523d;return _0x4fa415[_0x11ca84(0x1ad)]?.[_0x11ca84(0x163)]??_0x4fa415['headlineVersion']?.[_0x11ca84(0x163)]??_0x4fa415['ownerPreviewVersion']?.[_0x11ca84(0x163)];}function buildEffectiveRuntimeSkills(_0x1e103f,_0x307811,_0x47ce5a,_0x16072d){const _0x1e49eb=a56_0x523d;if(_0x16072d===_0x1e49eb(0x1b4))return _0x1e103f;if(_0x16072d===_0x1e49eb(0x1c2))return _0x307811;if(_0x16072d===_0x1e49eb(0x18f))return _0x47ce5a;const _0x5b2840=new Map();for(const _0x3dee7c of _0x47ce5a){_0x5b2840['set'](_0x3dee7c[_0x1e49eb(0x1d9)],_0x3dee7c);}for(const _0x43944f of _0x307811){_0x5b2840['set'](_0x43944f[_0x1e49eb(0x1d9)],_0x43944f);}for(const _0x3fc6d5 of _0x1e103f){_0x5b2840[_0x1e49eb(0x17a)](_0x3fc6d5[_0x1e49eb(0x1d9)],_0x3fc6d5);}return Array['from'](_0x5b2840[_0x1e49eb(0x1b2)]());}function normalizeRuntimeSkillListResponse(_0x5eb04d,_0x2c9dcc){const _0x10a93c=a56_0x523d;if(Array[_0x10a93c(0x1de)](_0x2c9dcc)){const _0x2544a3=_0x2c9dcc[_0x10a93c(0x173)](_0x1c406e=>_0x1c406e['scope']===_0x10a93c(0x1b4)),_0x3ccd38=_0x2c9dcc[_0x10a93c(0x173)](_0x7b7eea=>_0x7b7eea['scope']===_0x10a93c(0x1c2)),_0x4a2e60=_0x2c9dcc['filter'](_0x1b9f6f=>_0x1b9f6f[_0x10a93c(0x17f)]===_0x10a93c(0x18f));return{'appCode':_0x5eb04d,'personal':_0x2544a3,'company':_0x3ccd38,'public':_0x4a2e60,'effective':_0x2c9dcc['filter'](_0x27bd04=>_0x27bd04[_0x10a93c(0x17f)]!=='builtin')};}return{'appCode':_0x2c9dcc?.[_0x10a93c(0x1b7)]??_0x5eb04d,'personal':Array[_0x10a93c(0x1de)](_0x2c9dcc?.[_0x10a93c(0x1b4)])?_0x2c9dcc[_0x10a93c(0x1b4)]:[],'company':Array[_0x10a93c(0x1de)](_0x2c9dcc?.[_0x10a93c(0x1c2)])?_0x2c9dcc[_0x10a93c(0x1c2)]:[],'public':Array[_0x10a93c(0x1de)](_0x2c9dcc?.[_0x10a93c(0x18f)])?_0x2c9dcc[_0x10a93c(0x18f)]:[],'effective':Array[_0x10a93c(0x1de)](_0x2c9dcc?.[_0x10a93c(0x174)])?_0x2c9dcc['effective']:[]};}
@@ -1 +1 @@
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
+ (function(_0x35015c,_0x3e4619){const _0x494108=a57_0x38e3,_0x162fee=_0x35015c();while(!![]){try{const _0x2bb00d=-parseInt(_0x494108(0x1d6))/0x1*(-parseInt(_0x494108(0x1e3))/0x2)+-parseInt(_0x494108(0x1da))/0x3+-parseInt(_0x494108(0x1e0))/0x4*(-parseInt(_0x494108(0x1e2))/0x5)+parseInt(_0x494108(0x1dd))/0x6*(-parseInt(_0x494108(0x1d7))/0x7)+-parseInt(_0x494108(0x1e1))/0x8+parseInt(_0x494108(0x1db))/0x9*(-parseInt(_0x494108(0x1dc))/0xa)+parseInt(_0x494108(0x1d2))/0xb*(parseInt(_0x494108(0x1d1))/0xc);if(_0x2bb00d===_0x3e4619)break;else _0x162fee['push'](_0x162fee['shift']());}catch(_0x34073b){_0x162fee['push'](_0x162fee['shift']());}}}(a57_0xe452,0xb9e50));function a57_0x38e3(_0x492754,_0x17ddda){_0x492754=_0x492754-0x1d0;const _0xe452e8=a57_0xe452();let _0x38e3f2=_0xe452e8[_0x492754];return _0x38e3f2;}import{listDatasets}from'../core/api-client.js';const cache=new Map();function a57_0xe452(){const _0x38fab7=['132ULHlNz','195371IxCTOa','set','find','get','699991kIToPu','799407rbqIZS','dbtableConfig','dbId','1326441YRmklf','342jZyVnp','277010MUuDaY','6UkbqUe','db-','entries','8NcitWH','5413816ZkZNQJ','3629460tTuSpT','4SmQsMf','dbName'];a57_0xe452=function(){return _0x38fab7;};return a57_0xe452();}export async function listDatabases(_0x303cc8){const _0x128d26=a57_0x38e3;if(cache['has'](_0x303cc8))return cache[_0x128d26(0x1d5)](_0x303cc8);const _0x399332=await listDatasets(_0x303cc8),_0x11e2dc=new Map();for(const _0x490e14 of _0x399332){const _0x1b64e4=_0x490e14[_0x128d26(0x1d8)];_0x1b64e4?.[_0x128d26(0x1d9)]!=null&&_0x11e2dc['set'](_0x1b64e4[_0x128d26(0x1d9)],_0x1b64e4[_0x128d26(0x1d0)]??_0x128d26(0x1de)+_0x1b64e4[_0x128d26(0x1d9)]);}const _0xfc1d76=[..._0x11e2dc[_0x128d26(0x1df)]()]['map'](([_0xd5eb4,_0x39d0ec])=>({'dbId':_0xd5eb4,'dbName':_0x39d0ec}));return cache[_0x128d26(0x1d3)](_0x303cc8,_0xfc1d76),_0xfc1d76;}export async function getDbName(_0x5dc7a4,_0x52fb42){const _0x1c1154=a57_0x38e3;try{const _0xa5a38d=await listDatabases(_0x5dc7a4);return _0xa5a38d[_0x1c1154(0x1d4)](_0x19381c=>_0x19381c['dbId']===_0x52fb42)?.[_0x1c1154(0x1d0)];}catch{return undefined;}}
@@ -1 +1 @@
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});}
1
+ (function(_0x4b6410,_0x28741a){const _0x49c383=a58_0x6381,_0x36234a=_0x4b6410();while(!![]){try{const _0x518039=-parseInt(_0x49c383(0x18f))/0x1*(parseInt(_0x49c383(0x19f))/0x2)+-parseInt(_0x49c383(0x1a4))/0x3+parseInt(_0x49c383(0x196))/0x4*(-parseInt(_0x49c383(0x1b4))/0x5)+parseInt(_0x49c383(0x1a6))/0x6+parseInt(_0x49c383(0x1a5))/0x7*(parseInt(_0x49c383(0x192))/0x8)+-parseInt(_0x49c383(0x19b))/0x9*(parseInt(_0x49c383(0x1b6))/0xa)+-parseInt(_0x49c383(0x199))/0xb;if(_0x518039===_0x28741a)break;else _0x36234a['push'](_0x36234a['shift']());}catch(_0x583044){_0x36234a['push'](_0x36234a['shift']());}}}(a58_0x3730,0xbf5e7));import{createClient}from'@lovrabet/sdk';import{PRODUCT_CONFIG}from'../constant/product.js';function a58_0x6381(_0x27aa4,_0x3081ab){_0x27aa4=_0x27aa4-0x18e;const _0x3730a1=a58_0x3730();let _0x638169=_0x3730a1[_0x27aa4];return _0x638169;}import{CliErrors}from'../errors.js';import{parseBatchCreateItemsFromParams}from'../utils/params.js';let _client;export function initSdkClient(_0x3bc10f){const _0x3b2024=a58_0x6381;_client=createClient({'appCode':_0x3bc10f[_0x3b2024(0x1a1)],'env':_0x3bc10f['env'],'authMode':_0x3bc10f['authMode'],..._0x3bc10f[_0x3b2024(0x1b1)]?{'accessKey':_0x3bc10f[_0x3b2024(0x1b1)]}:{},'options':{'timeout':0x7530,'headers':{'X-Invoke-Source':PRODUCT_CONFIG[_0x3b2024(0x1a3)]}}});}function ensureClient(){const _0xd803d4=a58_0x6381;if(!_client)throw new Error(_0xd803d4(0x190));return _client;}function a58_0x3730(){const _0x137935=['\x22.\x20','object','batchCreate','delete\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123}\x27','execute','bff',']\x20must\x20be\x20an\x20object.','models','accessKey','trim','validation','10dJOhQO','column','330ezLQDn','SDK\x20model\x20does\x20not\x20support\x20operation\x20\x22','33415GVlrsj','SDK\x20client\x20not\x20initialized.\x20Call\x20initSdkClient()\x20first.','function','120056vECmUR','getOne\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123}\x27','data\x20aggregate\x20--params.aggregate[','sql','1596164fLqfXA','dataset_','getOne','3233307ifPyJU','update\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123,\x22name\x22:\x22new\x22}\x27','150291tmNUwa','isArray','update','map','26GGpmfI',']\x20requires\x20\x22column\x22;\x20\x22field\x22\x20is\x20accepted\x20only\x20as\x20a\x20deprecated\x20alias.','appCode','aggregate','invokeSource','254217sxeJuW','679RItSDo','8942328AkPTEx','delete','field'];a58_0x3730=function(){return _0x137935;};return a58_0x3730();}function normalizeAggregateParams(_0x5acc44){const _0x2a7cf9=a58_0x6381,_0x38edbb=_0x5acc44[_0x2a7cf9(0x1a2)];if(_0x38edbb===undefined)return _0x5acc44;if(!Array[_0x2a7cf9(0x19c)](_0x38edbb))throw CliErrors[_0x2a7cf9(0x1b3)]('data\x20aggregate\x20--params.aggregate\x20must\x20be\x20an\x20array.');return{..._0x5acc44,'aggregate':_0x38edbb[_0x2a7cf9(0x19e)]((_0x43d399,_0xb8f5e5)=>{const _0x37becc=_0x2a7cf9;if(!_0x43d399||typeof _0x43d399!==_0x37becc(0x1aa)||Array[_0x37becc(0x19c)](_0x43d399))throw CliErrors[_0x37becc(0x1b3)](_0x37becc(0x194)+_0xb8f5e5+_0x37becc(0x1af));const _0x4904b2=_0x43d399[_0x37becc(0x1b5)]??_0x43d399[_0x37becc(0x1a8)];if(typeof _0x4904b2!=='string'||_0x4904b2[_0x37becc(0x1b2)]()==='')throw CliErrors[_0x37becc(0x1b3)](_0x37becc(0x194)+_0xb8f5e5+_0x37becc(0x1a0));const _0x470c0b={..._0x43d399,'column':_0x4904b2};return delete _0x470c0b['field'],_0x470c0b;})};}export async function executeData(_0x3f261b,_0x57ebe2,_0x37ad46){const _0x5efd55=a58_0x6381,_0x4122cc=ensureClient(),_0xd03a0d=_0x5efd55(0x197)+_0x3f261b,_0x2df529=_0x4122cc[_0x5efd55(0x1b0)][_0xd03a0d];if(!_0x2df529||typeof _0x2df529[_0x57ebe2]!==_0x5efd55(0x191))throw new Error(_0x5efd55(0x18e)+_0x57ebe2+_0x5efd55(0x1a9)+'Available:\x20filter,\x20getOne,\x20create,\x20batchCreate,\x20update,\x20delete,\x20aggregate.');if(_0x57ebe2===_0x5efd55(0x1ab))return _0x2df529[_0x5efd55(0x1ab)](parseBatchCreateItemsFromParams(_0x37ad46));const _0x2fb3f0=_0x37ad46!==undefined&&_0x37ad46!==null&&!Array[_0x5efd55(0x19c)](_0x37ad46)?_0x37ad46:{};switch(_0x57ebe2){case _0x5efd55(0x198):{const _0x5de0ed=_0x2fb3f0['id'];if(_0x5de0ed===undefined||_0x5de0ed===null)throw new Error(_0x5efd55(0x193));return _0x2df529[_0x5efd55(0x198)](_0x5de0ed);}case _0x5efd55(0x19d):{const {id:_0xdbe942,..._0x19b90f}=_0x2fb3f0;if(_0xdbe942===undefined||_0xdbe942===null)throw new Error(_0x5efd55(0x19a));return _0x2df529[_0x5efd55(0x19d)](_0xdbe942,_0x19b90f);}case _0x5efd55(0x1a7):{const _0xe9e869=_0x2fb3f0['id'];if(_0xe9e869===undefined||_0xe9e869===null)throw new Error(_0x5efd55(0x1ac));return _0x2df529['delete'](_0xe9e869);}case'aggregate':return _0x2df529['aggregate'](normalizeAggregateParams(_0x2fb3f0));default:return _0x2df529[_0x57ebe2](_0x2fb3f0);}}export async function executeSdkSql(_0x5514ae,_0x164840){const _0x2c8230=a58_0x6381,_0x5199c6=ensureClient();return _0x5199c6[_0x2c8230(0x195)][_0x2c8230(0x1ad)]({'sqlCode':_0x5514ae,'params':_0x164840});}export async function executeSdkBff(_0x21605d,_0xc58252){const _0x49f3ca=a58_0x6381,_0x27b85f=ensureClient();return _0x27b85f[_0x49f3ca(0x1ae)]['execute']({'scriptName':_0x21605d,'params':_0xc58252});}
package/lib/errors.js CHANGED
@@ -1 +1 @@
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
+ const a59_0x42ed3b=a59_0x375d;(function(_0x4413ae,_0x367cb2){const _0x2756c0=a59_0x375d,_0x422a3b=_0x4413ae();while(!![]){try{const _0x4a99d8=parseInt(_0x2756c0(0x136))/0x1+-parseInt(_0x2756c0(0x144))/0x2*(parseInt(_0x2756c0(0x139))/0x3)+-parseInt(_0x2756c0(0x141))/0x4*(parseInt(_0x2756c0(0x13a))/0x5)+parseInt(_0x2756c0(0x137))/0x6*(-parseInt(_0x2756c0(0x13d))/0x7)+-parseInt(_0x2756c0(0x142))/0x8+parseInt(_0x2756c0(0x140))/0x9*(parseInt(_0x2756c0(0x13f))/0xa)+parseInt(_0x2756c0(0x13c))/0xb;if(_0x4a99d8===_0x367cb2)break;else _0x422a3b['push'](_0x422a3b['shift']());}catch(_0x444d60){_0x422a3b['push'](_0x422a3b['shift']());}}}(a59_0x5ca8,0x50dd6));function a59_0x5ca8(){const _0x3a8bc2=['\x20auth\x20login`.','411VjCqKU','195nHhMgN','newConfigFileName','16927207MDAUes','7cQyHIt','Run\x20this\x20command\x20inside\x20a\x20directory\x20with\x20a\x20','10njPOwN','33543zPQrNS','7520GLzfFi','4335856qPFzpS','Set\x20appcode\x20via\x20--appcode\x20or\x20','3942GIhrEj','173453qRFIDJ','2996796abTyTK'];a59_0x5ca8=function(){return _0x3a8bc2;};return a59_0x5ca8();}function a59_0x375d(_0x3c10b6,_0x3efe80){_0x3c10b6=_0x3c10b6-0x136;const _0x5ca82c=a59_0x5ca8();let _0x375dab=_0x5ca82c[_0x3c10b6];return _0x375dab;}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':'Configure\x20accessKey\x20in\x20'+PRODUCT_CONFIG[a59_0x42ed3b(0x13b)]+'\x20or\x20run\x20`'+CLI_BIN_NAME+a59_0x42ed3b(0x138),'configMissingHint':a59_0x42ed3b(0x143)+PRODUCT_CONFIG['newConfigFileName']+'.','notInProjectHint':a59_0x42ed3b(0x13e)+PRODUCT_CONFIG[a59_0x42ed3b(0x13b)]+'\x20file.'});
@@ -1 +1 @@
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
+ function a60_0x9aec(){var _0x208042=['12knfZyf','4419268Vqgpcs','10755AljBft','1430138AHVecH','3054480PMMsMI','4146VyhWLe','11539768WCUUoh','3932685aNQveM','1160601qBZWao'];a60_0x9aec=function(){return _0x208042;};return a60_0x9aec();}(function(_0x11e2a8,_0x3910da){var _0x4ced1a=a60_0x6b52,_0x313140=_0x11e2a8();while(!![]){try{var _0x443a9c=-parseInt(_0x4ced1a(0xcb))/0x1+-parseInt(_0x4ced1a(0xcc))/0x2+-parseInt(_0x4ced1a(0xc7))/0x3*(-parseInt(_0x4ced1a(0xc8))/0x4)+parseInt(_0x4ced1a(0xca))/0x5*(parseInt(_0x4ced1a(0xcd))/0x6)+-parseInt(_0x4ced1a(0xc9))/0x7+parseInt(_0x4ced1a(0xce))/0x8+parseInt(_0x4ced1a(0xc6))/0x9;if(_0x443a9c===_0x3910da)break;else _0x313140['push'](_0x313140['shift']());}catch(_0x1a8e20){_0x313140['push'](_0x313140['shift']());}}}(a60_0x9aec,0xe4ecc));import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';function a60_0x6b52(_0x9ef32d,_0x40b234){_0x9ef32d=_0x9ef32d-0xc6;var _0x9aec8d=a60_0x9aec();var _0x6b5259=_0x9aec8d[_0x9ef32d];return _0x6b5259;}import{buildAllFlags as a60_0x37ed59}from'@lovrabet/cli-framework';export function buildAllFlags(_0x4d1d59){return a60_0x37ed59(_0x4d1d59,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});}
@@ -1 +1 @@
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
+ function a61_0x3df3(){const _0x3290b0=['15851907HtFweZ','236194KXBTzW','387060IaKhrc','3449976ulOAmd','180578aFQsLH','1122680jSfgQG','10WrKMBN','76072OaVxCC','714lXSDag','body','15RnUoqR'];a61_0x3df3=function(){return _0x3290b0;};return a61_0x3df3();}function a61_0x2972(_0x36f53e,_0x5dbc90){_0x36f53e=_0x36f53e-0xa0;const _0x3df357=a61_0x3df3();let _0x2972d7=_0x3df357[_0x36f53e];return _0x2972d7;}(function(_0x549003,_0x5c598){const _0x2b7aa7=a61_0x2972,_0x1452cc=_0x549003();while(!![]){try{const _0x1c9fc8=parseInt(_0x2b7aa7(0xa5))/0x1+parseInt(_0x2b7aa7(0xa2))/0x2*(-parseInt(_0x2b7aa7(0xa0))/0x3)+-parseInt(_0x2b7aa7(0xa6))/0x4+-parseInt(_0x2b7aa7(0xa3))/0x5+parseInt(_0x2b7aa7(0xa4))/0x6+parseInt(_0x2b7aa7(0xa9))/0x7*(-parseInt(_0x2b7aa7(0xa8))/0x8)+-parseInt(_0x2b7aa7(0xa1))/0x9*(-parseInt(_0x2b7aa7(0xa7))/0xa);if(_0x1c9fc8===_0x5c598)break;else _0x1452cc['push'](_0x1452cc['shift']());}catch(_0x200086){_0x1452cc['push'](_0x1452cc['shift']());}}}(a61_0x3df3,0x9218c));export function dryRun(_0x295d13,_0x23b2e8){const _0x4f7662={'method':_0x295d13,'url':_0x23b2e8},_0x3c6800={'body'(_0x4176a3){const _0x46efc8=a61_0x2972;return _0x4f7662[_0x46efc8(0xaa)]=_0x4176a3,_0x3c6800;},'description'(_0x5dc3f3){return _0x4f7662['description']=_0x5dc3f3,_0x3c6800;},'build'(){return{..._0x4f7662};}};return _0x3c6800;}
@@ -1 +1 @@
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
+ const a62_0x440166=a62_0x2379;(function(_0x92f429,_0x44ac0e){const _0x53505e=a62_0x2379,_0x3122f7=_0x92f429();while(!![]){try{const _0x3b41b8=parseInt(_0x53505e(0x99))/0x1+-parseInt(_0x53505e(0x9b))/0x2*(parseInt(_0x53505e(0x9a))/0x3)+-parseInt(_0x53505e(0x98))/0x4*(-parseInt(_0x53505e(0x95))/0x5)+parseInt(_0x53505e(0x9e))/0x6*(-parseInt(_0x53505e(0x94))/0x7)+parseInt(_0x53505e(0x97))/0x8+parseInt(_0x53505e(0x9d))/0x9+-parseInt(_0x53505e(0x9c))/0xa*(-parseInt(_0x53505e(0x93))/0xb);if(_0x3b41b8===_0x44ac0e)break;else _0x3122f7['push'](_0x3122f7['shift']());}catch(_0x4417d2){_0x3122f7['push'](_0x3122f7['shift']());}}}(a62_0x54b3,0x80cfb));import{createFlagHelpers}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';function a62_0x2379(_0x5d74b4,_0x51a588){_0x5d74b4=_0x5d74b4-0x93;const _0x54b363=a62_0x54b3();let _0x23791e=_0x54b363[_0x5d74b4];return _0x23791e;}const helpers=createFlagHelpers(CliErrors);function a62_0x54b3(){const _0x301aa8=['1521tFkZCs','254ZivSlA','55940GLgvSk','926892xnXeyX','3222dIhzQo','parseFlags','1166NrqQRY','12747TciQNO','10RPpLDj','validateFlags','1421376fvIKkx','40364bWkVjU','676071HOffcj'];a62_0x54b3=function(){return _0x301aa8;};return a62_0x54b3();}export const parseFlags=helpers[a62_0x440166(0x9f)];export const validateFlags=helpers[a62_0x440166(0x96)];
@@ -1 +1 @@
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
+ function a63_0x3126(){const _0x594664=['map','generateServiceHelp','newConfigFileName','2739112sJvAih','Requires\x20appcode\x20(set\x20via\x20','215589TVPJfI','filter','18eRryQS','has','2815160vsKIKc','2sPXADH','generateFullHelp','6IbOIbu','494963mTVCWw','generateCommandHelp','70rOqYdb','service','120300nBQBKd','4255811cgiaeX','143264RtXbpq','\x20or\x20--appcode).'];a63_0x3126=function(){return _0x594664;};return a63_0x3126();}function a63_0x259c(_0xf24fa5,_0x209c0b){_0xf24fa5=_0xf24fa5-0x12f;const _0x312684=a63_0x3126();let _0x259c7a=_0x312684[_0xf24fa5];return _0x259c7a;}(function(_0x4525eb,_0x1fc62e){const _0x153c00=a63_0x259c,_0x4b93b3=_0x4525eb();while(!![]){try{const _0x317f79=-parseInt(_0x153c00(0x139))/0x1*(-parseInt(_0x153c00(0x136))/0x2)+parseInt(_0x153c00(0x138))/0x3*(parseInt(_0x153c00(0x13f))/0x4)+parseInt(_0x153c00(0x13b))/0x5*(-parseInt(_0x153c00(0x13d))/0x6)+parseInt(_0x153c00(0x13e))/0x7+parseInt(_0x153c00(0x12f))/0x8*(-parseInt(_0x153c00(0x133))/0x9)+parseInt(_0x153c00(0x135))/0xa+-parseInt(_0x153c00(0x131))/0xb;if(_0x317f79===_0x1fc62e)break;else _0x4b93b3['push'](_0x4b93b3['shift']());}catch(_0x87c97){_0x4b93b3['push'](_0x4b93b3['shift']());}}}(a63_0x3126,0x72fdf));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';import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';import{PRODUCT_CONFIG}from'../constant/product.js';function createGenerators(){const _0x3bf7f0=a63_0x259c;return createHelpGenerators({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'globalFlags':GLOBAL_FLAGS,'serviceRegistry':[...serviceRegistry,...safeListDynamicServiceEntries()],'getServiceEntry':getAnyServiceEntry,'getServiceDefinitions':getAnyServiceDefinitions,'buildAllFlags':buildAllFlags,'appPrerequisiteText':_0x3bf7f0(0x130)+PRODUCT_CONFIG[_0x3bf7f0(0x143)]+_0x3bf7f0(0x140)});}export function generateCommandHelp(_0x82d551){const _0x56c7a1=a63_0x259c;return createGenerators()[_0x56c7a1(0x13a)](_0x82d551);}export function generateServiceHelp(_0x57f8f3){const _0x5946bf=a63_0x259c;return createGenerators()[_0x5946bf(0x142)](_0x57f8f3);}export function generateFullHelp(){const _0x37f181=a63_0x259c;return createGenerators()[_0x37f181(0x137)]();}function getAnyServiceEntry(_0x37f06b){const _0x4b7c51=getServiceEntry(_0x37f06b);if(_0x4b7c51)return _0x4b7c51;try{return getDynamicServiceEntry(_0x37f06b);}catch{return undefined;}}function getAnyServiceDefinitions(_0x62b354){const _0x5d9084=serviceGroups['get'](_0x62b354);if(_0x5d9084)return _0x5d9084;try{return getDynamicServiceDefinitions(_0x62b354);}catch{return undefined;}}function safeListDynamicServiceEntries(){const _0x29f7a3=a63_0x259c,_0xd8d0bc=new Set(serviceRegistry[_0x29f7a3(0x141)](_0x27f8f6=>_0x27f8f6[_0x29f7a3(0x13c)]));try{return listDynamicServiceEntries()[_0x29f7a3(0x132)](_0x9f8b59=>!_0xd8d0bc[_0x29f7a3(0x134)](_0x9f8b59[_0x29f7a3(0x13c)]));}catch{return[];}}
@@ -1 +1 @@
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
+ (function(_0x599888,_0x46a98c){var _0x79d70a=a64_0x1f5b,_0x2fc829=_0x599888();while(!![]){try{var _0x3ae2fc=parseInt(_0x79d70a(0x70))/0x1+parseInt(_0x79d70a(0x75))/0x2+parseInt(_0x79d70a(0x72))/0x3*(parseInt(_0x79d70a(0x6f))/0x4)+-parseInt(_0x79d70a(0x71))/0x5+parseInt(_0x79d70a(0x77))/0x6+parseInt(_0x79d70a(0x74))/0x7*(parseInt(_0x79d70a(0x73))/0x8)+-parseInt(_0x79d70a(0x76))/0x9;if(_0x3ae2fc===_0x46a98c)break;else _0x2fc829['push'](_0x2fc829['shift']());}catch(_0x538890){_0x2fc829['push'](_0x2fc829['shift']());}}}(a64_0x154b,0x5bffc));export{runCommand}from'../framework/runner.js';export{parseFlags,validateFlags}from'../framework/flags.js';export{formatOutput}from'../framework/output.js';function a64_0x1f5b(_0x523676,_0xfc2fb6){_0x523676=_0x523676-0x6f;var _0x154b50=a64_0x154b();var _0x1f5b85=_0x154b50[_0x523676];return _0x1f5b85;}export{generateCommandHelp,generateServiceHelp,generateFullHelp}from'../framework/help.js';function a64_0x154b(){var _0x430e99=['3395292AVolRu','315088FuAyDT','699414UGyntl','1867245fZdVGm','3OqdUnl','199208YYVfyP','91BwfTvc','1414772lehxnY','14624010QQqumH'];a64_0x154b=function(){return _0x430e99;};return a64_0x154b();}export{extractList,extractPaging}from'../framework/response.js';export{dryRun}from'../framework/dryrun.js';export{riskLevelOrder,isValidFormat}from'../framework/types.js';
@@ -1 +1 @@
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
+ function a65_0x2e10(){const _0x2b2261=['url','210NmrNKD','3544002USPqGQ','message','error','598GHjCGT','1752jnjmjG','36243rGCMFg','2189REsgda','1079jVjEOF','3833862ulnHua','4973880PeeiVW','115210uVwhAW','update','42528bFeEli','format'];a65_0x2e10=function(){return _0x2b2261;};return a65_0x2e10();}(function(_0x5af1c6,_0x96ee5e){const _0x2f1dbe=a65_0xb2cf,_0xcfecec=_0x5af1c6();while(!![]){try{const _0x53e374=parseInt(_0x2f1dbe(0x1a2))/0x1*(parseInt(_0x2f1dbe(0x1ae))/0x2)+-parseInt(_0x2f1dbe(0x1aa))/0x3*(-parseInt(_0x2f1dbe(0x1a7))/0x4)+parseInt(_0x2f1dbe(0x1a4))/0x5+-parseInt(_0x2f1dbe(0x1a3))/0x6+parseInt(_0x2f1dbe(0x1ab))/0x7+-parseInt(_0x2f1dbe(0x1af))/0x8*(-parseInt(_0x2f1dbe(0x1b0))/0x9)+parseInt(_0x2f1dbe(0x1a5))/0xa*(-parseInt(_0x2f1dbe(0x1b1))/0xb);if(_0x53e374===_0x96ee5e)break;else _0xcfecec['push'](_0xcfecec['shift']());}catch(_0xd63877){_0xcfecec['push'](_0xcfecec['shift']());}}}(a65_0x2e10,0x7e824));import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';function a65_0xb2cf(_0xf9ccd0,_0xbb91ff){_0xf9ccd0=_0xf9ccd0-0x1a2;const _0x2e1071=a65_0x2e10();let _0xb2cf41=_0x2e1071[_0xf9ccd0];return _0xb2cf41;}import{CliErrors}from'../errors.js';const baseFormatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});export function formatOutput(_0x44b388,_0x28280e){const _0x302add=a65_0xb2cf,_0x1d83a4=_0x44b388['_notice'],{_notice:_0x460250,..._0x32bb19}=_0x44b388;void _0x460250,baseFormatOutput(_0x32bb19,_0x28280e),_0x28280e[_0x302add(0x1a8)]==='pretty'&&printPrettyNotice(_0x1d83a4);}function printPrettyNotice(_0x3c74fe){const _0x130e15=a65_0xb2cf;if(!_0x3c74fe?.[_0x130e15(0x1a6)])return;console[_0x130e15(0x1ad)](_0x3c74fe['update'][_0x130e15(0x1ac)]+'\x20('+_0x3c74fe['update'][_0x130e15(0x1a9)]+')');}
@@ -1 +1 @@
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
+ function a66_0x2b15(_0x5a871e,_0x3f83df){_0x5a871e=_0x5a871e-0x161;const _0x4f402f=a66_0x4f40();let _0x2b15c7=_0x4f402f[_0x5a871e];return _0x2b15c7;}(function(_0x4c0385,_0x1ff2b2){const _0x1fa9d4=a66_0x2b15,_0x51ad51=_0x4c0385();while(!![]){try{const _0x4f7cbe=-parseInt(_0x1fa9d4(0x182))/0x1+-parseInt(_0x1fa9d4(0x167))/0x2*(parseInt(_0x1fa9d4(0x16f))/0x3)+parseInt(_0x1fa9d4(0x172))/0x4+-parseInt(_0x1fa9d4(0x169))/0x5+-parseInt(_0x1fa9d4(0x179))/0x6+parseInt(_0x1fa9d4(0x17d))/0x7+parseInt(_0x1fa9d4(0x17a))/0x8;if(_0x4f7cbe===_0x1ff2b2)break;else _0x51ad51['push'](_0x51ad51['shift']());}catch(_0x3ba38a){_0x51ad51['push'](_0x51ad51['shift']());}}}(a66_0x4f40,0xdf9df));function toKebab(_0x2da1ff){const _0x19d447=a66_0x2b15;return _0x2da1ff[_0x19d447(0x171)](/_/g,'-')['replace'](/-([A-Z]+)/g,(_0x1c4b0d,_0x616db8)=>'-'+_0x616db8['toLowerCase']())[_0x19d447(0x171)](/([a-z0-9])([A-Z])/g,(_0x394790,_0x3329db,_0x408354)=>_0x3329db+'-'+_0x408354)['toLowerCase']();}function buildKnownFlags(_0x126ac4){const _0xf06bb3=a66_0x2b15,_0x33b45a=new Set();for(const _0x3a6e1d of _0x126ac4){_0x33b45a['add'](_0x3a6e1d[_0xf06bb3(0x184)]),_0x33b45a[_0xf06bb3(0x162)](toCamelCase(_0x3a6e1d[_0xf06bb3(0x184)]));}for(const _0x514e70 of[_0xf06bb3(0x16b),'dryRun',_0xf06bb3(0x181),_0xf06bb3(0x180)]){_0x33b45a['add'](_0x514e70);}for(const _0x3fcee7 of[_0xf06bb3(0x161),_0xf06bb3(0x176),_0xf06bb3(0x164),_0xf06bb3(0x166),_0xf06bb3(0x187),_0xf06bb3(0x17b),'ci',_0xf06bb3(0x17c),_0xf06bb3(0x178)]){_0x33b45a[_0xf06bb3(0x162)](_0x3fcee7);}return _0x33b45a;}function buildFlagTypeMap(_0x4c9e7b){const _0x5dd35a=a66_0x2b15,_0x9fc0a3=new Map();for(const _0x555126 of _0x4c9e7b){_0x9fc0a3['set'](_0x555126[_0x5dd35a(0x184)],_0x555126[_0x5dd35a(0x165)]),_0x9fc0a3[_0x5dd35a(0x163)](toCamelCase(_0x555126[_0x5dd35a(0x184)]),_0x555126[_0x5dd35a(0x165)]);}return _0x9fc0a3;}function toCamelCase(_0x59361c){const _0x562a8c=a66_0x2b15;return _0x59361c[_0x562a8c(0x171)](/-([a-z])/g,(_0x155b3f,_0xea4c59)=>_0xea4c59[_0x562a8c(0x177)]());}function aliasHandler(_0x322055,_0x2a4af1){const _0x1167f5=a66_0x2b15,_0x250c54=[];for(const _0x175637 of Object[_0x1167f5(0x183)](_0x322055)){if(_0x2a4af1[_0x1167f5(0x173)](_0x175637))continue;const _0x4c6ae7=toKebab(_0x175637);_0x4c6ae7!==_0x175637&&_0x2a4af1['has'](_0x4c6ae7)&&_0x250c54['push']({'original':_0x175637,'corrected':_0x4c6ae7,'handler':_0x1167f5(0x16e)});}return _0x250c54;}function stickyHandler(_0x51014f,_0x527481,_0x415d5e){const _0x4a2517=a66_0x2b15,_0x2f7544=[];for(const [_0x2bb312,_0xf2d2c5]of Object[_0x4a2517(0x16c)](_0x51014f)){if(_0xf2d2c5!==!![])continue;for(let _0x517e5b=_0x2bb312[_0x4a2517(0x17f)]-0x1;_0x517e5b>0x0;_0x517e5b--){const _0x1bf011=_0x2bb312[_0x4a2517(0x170)](0x0,_0x517e5b),_0x4bb95b=_0x2bb312[_0x4a2517(0x170)](_0x517e5b),_0x1a9060=toKebab(_0x1bf011),_0x24dcc1=toCamelCase(_0x1bf011),_0xdb347=_0x527481[_0x4a2517(0x173)](_0x1bf011)?_0x1bf011:_0x527481[_0x4a2517(0x173)](_0x1a9060)?_0x1a9060:_0x527481['has'](_0x24dcc1)?_0x24dcc1:null;if(!_0xdb347)continue;const _0x1da830=_0x415d5e[_0x4a2517(0x175)](_0xdb347)??'string';let _0x46f8d5;if(_0x1da830==='number'){const _0xda3d82=Number(_0x4bb95b);if(isNaN(_0xda3d82)||_0x4bb95b==='')continue;_0x46f8d5=_0xda3d82;}else{if(_0x1da830===_0x4a2517(0x17e))continue;else{if(_0x4bb95b==='')continue;_0x46f8d5=_0x4bb95b;}}_0x2f7544[_0x4a2517(0x168)]({'original':_0x2bb312,'corrected':_0xdb347+'='+_0x46f8d5,'handler':_0x4a2517(0x185)});break;}}return _0x2f7544;}export function correctFlags(_0x497161,_0x49b1ac){const _0x26ebd9=a66_0x2b15,_0x50d036=buildKnownFlags(_0x49b1ac),_0x55ec2a=buildFlagTypeMap(_0x49b1ac),_0x45c136=aliasHandler(_0x497161,_0x50d036),_0x2e539f=stickyHandler(_0x497161,_0x50d036,_0x55ec2a),_0x157857=[..._0x45c136,..._0x2e539f];if(_0x157857[_0x26ebd9(0x17f)]===0x0)return{'flags':_0x497161,'corrections':[]};const _0x13d4ec={..._0x497161},_0x12e1de=new Set();for(const _0x2d3189 of _0x45c136){_0x13d4ec[_0x2d3189[_0x26ebd9(0x16d)]]=_0x497161[_0x2d3189[_0x26ebd9(0x16a)]],_0x12e1de['add'](_0x2d3189[_0x26ebd9(0x16a)]);}for(const _0x58fb4a of _0x2e539f){const _0x4f05e7=_0x58fb4a[_0x26ebd9(0x16d)][_0x26ebd9(0x174)]('='),_0x583749=_0x58fb4a[_0x26ebd9(0x16d)][_0x26ebd9(0x170)](0x0,_0x4f05e7),_0xd24127=_0x58fb4a[_0x26ebd9(0x16d)][_0x26ebd9(0x170)](_0x4f05e7+0x1),_0x28ef09=_0x55ec2a['get'](_0x583749)??_0x26ebd9(0x186);_0x28ef09==='number'?_0x13d4ec[_0x583749]=Number(_0xd24127):_0x13d4ec[_0x583749]=_0xd24127,_0x12e1de[_0x26ebd9(0x162)](_0x58fb4a[_0x26ebd9(0x16a)]);}for(const _0x98f0b1 of _0x12e1de){delete _0x13d4ec[_0x98f0b1];}return{'flags':_0x13d4ec,'corrections':_0x157857};}function a66_0x4f40(){const _0x144e52=['replace','2853872ZNiRfA','has','indexOf','get','env','toUpperCase','version','400452WPAXyY','18280144rhZCtb','non-interactive','global','1124872XvqKGM','boolean','length','format','yes','1577129wxcRFI','keys','name','sticky','string','nonInteractive','help','add','set','appcode','type','app','58574yvyvJu','push','68180ULaOMl','original','dry-run','entries','corrected','alias','60cVMjPb','slice'];a66_0x4f40=function(){return _0x144e52;};return a66_0x4f40();}
@@ -1 +1 @@
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();}
1
+ function a67_0x2226(_0x4af0f1,_0x3f0b9f){_0x4af0f1=_0x4af0f1-0x1c8;var _0x2fe615=a67_0x2fe6();var _0x222661=_0x2fe615[_0x4af0f1];return _0x222661;}function a67_0x2fe6(){var _0x1ef5cb=['323557ZyoBtT','1209278sgZfLt','5523sLOReW','147275jZuCbx','1001144PGnEfU','5532nnDTgy','76Qrknjj','4983102BoVyVm','2334705QXDuEJ'];a67_0x2fe6=function(){return _0x1ef5cb;};return a67_0x2fe6();}(function(_0x1a8379,_0xd9343b){var _0x39e037=a67_0x2226,_0x221ea2=_0x1a8379();while(!![]){try{var _0x41a717=-parseInt(_0x39e037(0x1cc))/0x1+-parseInt(_0x39e037(0x1cd))/0x2+parseInt(_0x39e037(0x1cb))/0x3+-parseInt(_0x39e037(0x1c9))/0x4*(parseInt(_0x39e037(0x1cf))/0x5)+parseInt(_0x39e037(0x1c8))/0x6*(parseInt(_0x39e037(0x1ce))/0x7)+-parseInt(_0x39e037(0x1d0))/0x8+parseInt(_0x39e037(0x1ca))/0x9;if(_0x41a717===_0xd9343b)break;else _0x221ea2['push'](_0x221ea2['shift']());}catch(_0x46b547){_0x221ea2['push'](_0x221ea2['shift']());}}}(a67_0x2fe6,0x6cfb3));export{extractList,extractPaging}from'@lovrabet/cli-framework';