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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (85) hide show
  1. package/lib/cli.js +1 -1
  2. package/lib/commands/api-doc/index.js +1 -1
  3. package/lib/commands/app/cache.js +1 -1
  4. package/lib/commands/app/definitions.js +1 -1
  5. package/lib/commands/app/eligibility.js +1 -1
  6. package/lib/commands/app/mock-loader.js +1 -1
  7. package/lib/commands/app/remote-source.js +1 -1
  8. package/lib/commands/app/shared.js +1 -1
  9. package/lib/commands/artifact/index.js +1 -1
  10. package/lib/commands/auth/index.js +1 -1
  11. package/lib/commands/auth/prompt.js +1 -1
  12. package/lib/commands/bff/detail.js +1 -1
  13. package/lib/commands/bff/exec.js +1 -1
  14. package/lib/commands/bff/index.js +1 -1
  15. package/lib/commands/cli-skill/index.js +1 -1
  16. package/lib/commands/common/config-policy.js +1 -1
  17. package/lib/commands/common/constraints.js +1 -1
  18. package/lib/commands/common/flags.js +1 -1
  19. package/lib/commands/config/definitions.js +1 -1
  20. package/lib/commands/config/shared.js +1 -1
  21. package/lib/commands/data/index.js +1 -1
  22. package/lib/commands/dataset/detail.js +1 -1
  23. package/lib/commands/dataset/index.js +1 -1
  24. package/lib/commands/dataset/list.js +1 -1
  25. package/lib/commands/dataset/sdk-doc.js +1 -1
  26. package/lib/commands/doctor.js +1 -1
  27. package/lib/commands/init.js +1 -1
  28. package/lib/commands/kb/index.js +1 -1
  29. package/lib/commands/logs/index.js +1 -1
  30. package/lib/commands/personal-bff/index.js +1 -1
  31. package/lib/commands/registry.js +1 -1
  32. package/lib/commands/schema.js +1 -1
  33. package/lib/commands/service/dynamic.js +1 -1
  34. package/lib/commands/service/index.js +1 -1
  35. package/lib/commands/service/registry.js +1 -1
  36. package/lib/commands/skill/index.js +1 -1
  37. package/lib/commands/skill/templates.js +1 -1
  38. package/lib/commands/skill/validate.js +1 -1
  39. package/lib/commands/sql/detail.js +1 -1
  40. package/lib/commands/sql/exec.js +1 -1
  41. package/lib/commands/sql/index.js +1 -1
  42. package/lib/commands/update.js +1 -1
  43. package/lib/commands/workspace/index.js +1 -1
  44. package/lib/config/schema.js +1 -1
  45. package/lib/constant/app.js +1 -1
  46. package/lib/constant/auth-mode.js +1 -1
  47. package/lib/constant/cli.js +1 -1
  48. package/lib/constant/defaults.js +1 -1
  49. package/lib/constant/distribution.js +1 -1
  50. package/lib/constant/domain.js +1 -1
  51. package/lib/constant/env.js +1 -1
  52. package/lib/constant/output.js +1 -1
  53. package/lib/constant/product.js +1 -1
  54. package/lib/constant/risk.js +1 -1
  55. package/lib/constant/url.js +1 -1
  56. package/lib/context.js +1 -1
  57. package/lib/core/api-client.js +1 -1
  58. package/lib/core/db-resolver.js +1 -1
  59. package/lib/core/sdk-client.js +1 -1
  60. package/lib/errors.js +1 -1
  61. package/lib/framework/build-all-flags.js +1 -1
  62. package/lib/framework/dryrun.js +1 -1
  63. package/lib/framework/flags.js +1 -1
  64. package/lib/framework/help.js +1 -1
  65. package/lib/framework/index.js +1 -1
  66. package/lib/framework/output.js +1 -1
  67. package/lib/framework/preparse.js +1 -1
  68. package/lib/framework/response.js +1 -1
  69. package/lib/framework/runner-confirmation.js +1 -1
  70. package/lib/framework/runner-error.js +1 -1
  71. package/lib/framework/runner.js +1 -1
  72. package/lib/framework/schema-export.js +1 -1
  73. package/lib/framework/types.js +1 -1
  74. package/lib/generated/build-info.js +1 -1
  75. package/lib/help.js +1 -1
  76. package/lib/skills/npx-skills-add.js +1 -1
  77. package/lib/skills/runtime-skill-sync.js +1 -1
  78. package/lib/utils/apply-jq-filter.js +1 -1
  79. package/lib/utils/logger.js +1 -1
  80. package/lib/utils/params.js +1 -1
  81. package/lib/utils/platform.js +1 -1
  82. package/lib/utils/update-notice.js +1 -1
  83. package/lib/utils/version.js +1 -1
  84. package/lib/utils/write-cli-side-channel.js +1 -1
  85. package/package.json +1 -1
@@ -1 +1 @@
1
- function a49_0x5867(_0x25eaed,_0x3003fc){_0x25eaed=_0x25eaed-0x186;const _0x1e3667=a49_0x1e36();let _0x58670d=_0x1e3667[_0x25eaed];return _0x58670d;}const a49_0x2ede9a=a49_0x5867;(function(_0x5abed7,_0x3d111d){const _0x41a98a=a49_0x5867,_0x337543=_0x5abed7();while(!![]){try{const _0x222646=parseInt(_0x41a98a(0x19b))/0x1*(-parseInt(_0x41a98a(0x196))/0x2)+parseInt(_0x41a98a(0x190))/0x3*(parseInt(_0x41a98a(0x186))/0x4)+-parseInt(_0x41a98a(0x188))/0x5*(parseInt(_0x41a98a(0x19a))/0x6)+parseInt(_0x41a98a(0x193))/0x7*(parseInt(_0x41a98a(0x195))/0x8)+-parseInt(_0x41a98a(0x194))/0x9*(parseInt(_0x41a98a(0x192))/0xa)+-parseInt(_0x41a98a(0x18d))/0xb*(parseInt(_0x41a98a(0x19c))/0xc)+parseInt(_0x41a98a(0x18e))/0xd;if(_0x222646===_0x3d111d)break;else _0x337543['push'](_0x337543['shift']());}catch(_0x294036){_0x337543['push'](_0x337543['shift']());}}}(a49_0x1e36,0x73cce));import{getEnv,isProduction}from'../constant/env.js';import{PRODUCT_CONFIG}from'../constant/product.js';let customApiDomain,customUserDomain,customRuntimeDomain,customSkillHubDomain;export function initDomains(_0x1e06ef){const _0xb8716d=a49_0x5867;customApiDomain=_0x1e06ef?.[_0xb8716d(0x18c)],customUserDomain=_0x1e06ef?.[_0xb8716d(0x197)],customRuntimeDomain=_0x1e06ef?.['runtimeDomain'],customSkillHubDomain=_0x1e06ef?.[_0xb8716d(0x189)];}export const getUserDomain=()=>customUserDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a49_0x2ede9a(0x18f)][a49_0x2ede9a(0x198)][a49_0x2ede9a(0x199)]:PRODUCT_CONFIG[a49_0x2ede9a(0x18f)]['nonProduction'][a49_0x2ede9a(0x199)]);export const getApiDomain=()=>customApiDomain||(isProduction(getEnv())?PRODUCT_CONFIG['domains']['production'][a49_0x2ede9a(0x191)]:PRODUCT_CONFIG[a49_0x2ede9a(0x18f)][a49_0x2ede9a(0x18b)][a49_0x2ede9a(0x191)]);export const getRuntimeDomain=()=>customRuntimeDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a49_0x2ede9a(0x18f)][a49_0x2ede9a(0x198)]['runtime']:PRODUCT_CONFIG['domains'][a49_0x2ede9a(0x18b)][a49_0x2ede9a(0x18a)]);function a49_0x1e36(){const _0x55c37e=['195PczOFH','skillHubDomain','runtime','nonProduction','apiDomain','1155tOqSiz','18319873QMyJtL','domains','93189tnGIXJ','api','90ndolVv','5999kPOAyp','339381pTGiEa','8072QdVmBi','87358oTaIgp','userDomain','production','user','16374briPOY','12HLmxoV','105468QKeBsH','12pBuzRo','skillhub'];a49_0x1e36=function(){return _0x55c37e;};return a49_0x1e36();}export const getSkillHubDomain=()=>customSkillHubDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a49_0x2ede9a(0x18f)][a49_0x2ede9a(0x198)][a49_0x2ede9a(0x187)]:PRODUCT_CONFIG[a49_0x2ede9a(0x18f)][a49_0x2ede9a(0x18b)][a49_0x2ede9a(0x187)]);
1
+ const a49_0xc76e72=a49_0x52db;(function(_0x47f7b1,_0x4fab3a){const _0x232ea4=a49_0x52db,_0x251e70=_0x47f7b1();while(!![]){try{const _0xc1554c=-parseInt(_0x232ea4(0x9c))/0x1+-parseInt(_0x232ea4(0xa5))/0x2*(parseInt(_0x232ea4(0xa9))/0x3)+-parseInt(_0x232ea4(0xa0))/0x4+parseInt(_0x232ea4(0xa3))/0x5+-parseInt(_0x232ea4(0x9e))/0x6*(-parseInt(_0x232ea4(0xa2))/0x7)+-parseInt(_0x232ea4(0xa4))/0x8*(parseInt(_0x232ea4(0x9b))/0x9)+parseInt(_0x232ea4(0xa7))/0xa;if(_0xc1554c===_0x4fab3a)break;else _0x251e70['push'](_0x251e70['shift']());}catch(_0x3dee1e){_0x251e70['push'](_0x251e70['shift']());}}}(a49_0x2d20,0x3a022));import{getEnv,isProduction}from'../constant/env.js';import{PRODUCT_CONFIG}from'../constant/product.js';let customApiDomain,customUserDomain,customRuntimeDomain,customSkillHubDomain;export function initDomains(_0x2efaff){const _0x5f4046=a49_0x52db;customApiDomain=_0x2efaff?.[_0x5f4046(0x96)],customUserDomain=_0x2efaff?.['userDomain'],customRuntimeDomain=_0x2efaff?.[_0x5f4046(0x9d)],customSkillHubDomain=_0x2efaff?.[_0x5f4046(0x98)];}function a49_0x52db(_0x1c33f8,_0x182b01){_0x1c33f8=_0x1c33f8-0x96;const _0x2d20b1=a49_0x2d20();let _0x52db26=_0x2d20b1[_0x1c33f8];return _0x52db26;}export const getUserDomain=()=>customUserDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a49_0xc76e72(0x9f)][a49_0xc76e72(0x97)][a49_0xc76e72(0xa1)]:PRODUCT_CONFIG[a49_0xc76e72(0x9f)][a49_0xc76e72(0xa6)]['user']);export const getApiDomain=()=>customApiDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a49_0xc76e72(0x9f)][a49_0xc76e72(0x97)][a49_0xc76e72(0x9a)]:PRODUCT_CONFIG[a49_0xc76e72(0x9f)][a49_0xc76e72(0xa6)][a49_0xc76e72(0x9a)]);export const getRuntimeDomain=()=>customRuntimeDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a49_0xc76e72(0x9f)][a49_0xc76e72(0x97)]['runtime']:PRODUCT_CONFIG[a49_0xc76e72(0x9f)]['nonProduction'][a49_0xc76e72(0xa8)]);export const getSkillHubDomain=()=>customSkillHubDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a49_0xc76e72(0x9f)]['production'][a49_0xc76e72(0x99)]:PRODUCT_CONFIG[a49_0xc76e72(0x9f)][a49_0xc76e72(0xa6)][a49_0xc76e72(0x99)]);function a49_0x2d20(){const _0x154cd4=['skillhub','api','9iXatLN','86158IsqSec','runtimeDomain','12yaxfrD','domains','1812248fprIjd','user','1482047WratJM','141535jWsSMG','302984PXPrji','365992qItbme','nonProduction','7289380rDwSTS','runtime','6SxULJE','apiDomain','production','skillHubDomain'];a49_0x2d20=function(){return _0x154cd4;};return a49_0x2d20();}
@@ -1 +1 @@
1
- const a50_0x5975a6=a50_0x15b1;(function(_0x278a6e,_0x45201e){const _0x4c35c2=a50_0x15b1,_0x586e6f=_0x278a6e();while(!![]){try{const _0x4f2ace=parseInt(_0x4c35c2(0x9f))/0x1*(-parseInt(_0x4c35c2(0x90))/0x2)+-parseInt(_0x4c35c2(0x95))/0x3*(parseInt(_0x4c35c2(0x92))/0x4)+-parseInt(_0x4c35c2(0x93))/0x5*(parseInt(_0x4c35c2(0x9a))/0x6)+-parseInt(_0x4c35c2(0x99))/0x7*(parseInt(_0x4c35c2(0x96))/0x8)+parseInt(_0x4c35c2(0xa1))/0x9*(-parseInt(_0x4c35c2(0x97))/0xa)+-parseInt(_0x4c35c2(0x98))/0xb*(-parseInt(_0x4c35c2(0x9b))/0xc)+parseInt(_0x4c35c2(0x9d))/0xd*(parseInt(_0x4c35c2(0x8f))/0xe);if(_0x4f2ace===_0x45201e)break;else _0x586e6f['push'](_0x586e6f['shift']());}catch(_0x284f9d){_0x586e6f['push'](_0x586e6f['shift']());}}}(a50_0x453f,0xd9eb3));import{productEnv}from'../constant/product.js';export const RUNTIME_ENV_VALUES=[a50_0x5975a6(0x91),a50_0x5975a6(0xa0),a50_0x5975a6(0x9e)];function a50_0x453f(){const _0x32aa3a=['ENV','123BBxqYS','141424Hbgyka','30aCZAAX','15517799GxZZlT','651ivNTij','319998CWCNWg','12OaVEoM','dev','65XzsWjA','daily','13268mGEFfk','development','2600298lxupVG','online','11629786JgZkBb','52PaVggJ','production','52276eGfwIJ','120tLQKSX'];a50_0x453f=function(){return _0x32aa3a;};return a50_0x453f();}export function normalizeEnv(_0x2825b){const _0x4125ed=a50_0x5975a6;return _0x2825b===_0x4125ed(0xa2)?'production':_0x2825b;}export function isProduction(_0x2981d8){const _0x2e119a=a50_0x5975a6;return normalizeEnv(_0x2981d8)===_0x2e119a(0x91);}export function isDaily(_0x4dc17b){return normalizeEnv(_0x4dc17b)==='daily';}export function isDev(_0x472700){const _0x286d9f=a50_0x5975a6,_0x5b479c=normalizeEnv(_0x472700);return _0x5b479c===_0x286d9f(0xa0)||_0x5b479c===_0x286d9f(0x9c);}function a50_0x15b1(_0x266c2f,_0x4549f7){_0x266c2f=_0x266c2f-0x8f;const _0x453f21=a50_0x453f();let _0x15b199=_0x453f21[_0x266c2f];return _0x15b199;}let env=normalizeEnv(productEnv(a50_0x5975a6(0x94))||a50_0x5975a6(0x91));export function getEnv(){return env;}export function initEnv(_0x96ed1a){env=normalizeEnv(_0x96ed1a);}
1
+ const a50_0x1c04e3=a50_0x4ee3;(function(_0x637d07,_0x683043){const _0x16f67f=a50_0x4ee3,_0x5f01f9=_0x637d07();while(!![]){try{const _0x3c942d=-parseInt(_0x16f67f(0x1ed))/0x1+parseInt(_0x16f67f(0x1ec))/0x2+parseInt(_0x16f67f(0x1e9))/0x3*(-parseInt(_0x16f67f(0x1ea))/0x4)+parseInt(_0x16f67f(0x1ee))/0x5+-parseInt(_0x16f67f(0x1f5))/0x6+parseInt(_0x16f67f(0x1eb))/0x7*(-parseInt(_0x16f67f(0x1f1))/0x8)+parseInt(_0x16f67f(0x1f4))/0x9*(parseInt(_0x16f67f(0x1f3))/0xa);if(_0x3c942d===_0x683043)break;else _0x5f01f9['push'](_0x5f01f9['shift']());}catch(_0x24abc4){_0x5f01f9['push'](_0x5f01f9['shift']());}}}(a50_0x17a5,0x727f1));import{productEnv}from'../constant/product.js';export const RUNTIME_ENV_VALUES=[a50_0x1c04e3(0x1f2),'development',a50_0x1c04e3(0x1ef)];export function normalizeEnv(_0x1e919){const _0x49af2b=a50_0x1c04e3;return _0x1e919===_0x49af2b(0x1f0)?_0x49af2b(0x1f2):_0x1e919;}export function isProduction(_0x14ce34){const _0x5c553d=a50_0x1c04e3;return normalizeEnv(_0x14ce34)===_0x5c553d(0x1f2);}export function isDaily(_0x2940c5){const _0x21c4cc=a50_0x1c04e3;return normalizeEnv(_0x2940c5)===_0x21c4cc(0x1ef);}export function isDev(_0x3e8289){const _0x33f19d=a50_0x1c04e3,_0x4aaa90=normalizeEnv(_0x3e8289);return _0x4aaa90==='development'||_0x4aaa90===_0x33f19d(0x1e8);}function a50_0x17a5(){const _0x1d097c=['75114ZOloDf','740298yfForH','dev','345epledl','18356kaahoc','286286kvAjUc','1370340enxOgj','1654JiTDya','3080285jciDNh','daily','online','120iWzHgj','production','520IKwJam'];a50_0x17a5=function(){return _0x1d097c;};return a50_0x17a5();}function a50_0x4ee3(_0x1520f6,_0x4175c7){_0x1520f6=_0x1520f6-0x1e8;const _0x17a5ef=a50_0x17a5();let _0x4ee36d=_0x17a5ef[_0x1520f6];return _0x4ee36d;}let env=normalizeEnv(productEnv('ENV')||a50_0x1c04e3(0x1f2));export function getEnv(){return env;}export function initEnv(_0x54e486){env=normalizeEnv(_0x54e486);}
@@ -1 +1 @@
1
- function a51_0x46f9(_0x1880dc,_0x522142){_0x1880dc=_0x1880dc-0x15e;const _0x2f5940=a51_0x2f59();let _0x46f906=_0x2f5940[_0x1880dc];return _0x46f906;}function a51_0x2f59(){const _0x274f9d=['238wgTaWQ','5848tOGiXN','16248vvFXTV','342CsMcOr','35FbnsrB','12856LuDpml','714lwsaMK','pretty','377465mMruew','11690KXaUxW','json','4149Nwobdn','184559mpXLRv','4485OufBJh','40vqwgtP'];a51_0x2f59=function(){return _0x274f9d;};return a51_0x2f59();}const a51_0x334411=a51_0x46f9;(function(_0x5bf82a,_0x490570){const _0x1bc67a=a51_0x46f9,_0x3e302e=_0x5bf82a();while(!![]){try{const _0x3c438a=parseInt(_0x1bc67a(0x16b))/0x1+-parseInt(_0x1bc67a(0x15f))/0x2*(parseInt(_0x1bc67a(0x16a))/0x3)+-parseInt(_0x1bc67a(0x164))/0x4*(parseInt(_0x1bc67a(0x163))/0x5)+parseInt(_0x1bc67a(0x165))/0x6*(-parseInt(_0x1bc67a(0x168))/0x7)+-parseInt(_0x1bc67a(0x160))/0x8*(-parseInt(_0x1bc67a(0x162))/0x9)+-parseInt(_0x1bc67a(0x15e))/0xa*(parseInt(_0x1bc67a(0x167))/0xb)+parseInt(_0x1bc67a(0x161))/0xc*(parseInt(_0x1bc67a(0x16c))/0xd);if(_0x3c438a===_0x490570)break;else _0x3e302e['push'](_0x3e302e['shift']());}catch(_0x4d10c0){_0x3e302e['push'](_0x3e302e['shift']());}}}(a51_0x2f59,0x262f2));export const OUTPUT_FORMAT_VALUES=[a51_0x334411(0x169),a51_0x334411(0x166),'compress'];
1
+ const a51_0x789a1d=a51_0x12ef;function a51_0x1a28(){const _0x25226c=['117RbgTSm','291440wSQulU','40YgGFQX','35223wajdee','38648NVMWJr','compress','json','18463jZkdaS','4306GqnlWW','262488HFwmwQ','1485939hTTklc','pretty'];a51_0x1a28=function(){return _0x25226c;};return a51_0x1a28();}function a51_0x12ef(_0x5bf855,_0x4c954e){_0x5bf855=_0x5bf855-0x167;const _0x1a28fe=a51_0x1a28();let _0x12eff0=_0x1a28fe[_0x5bf855];return _0x12eff0;}(function(_0x139834,_0x153091){const _0x509e86=a51_0x12ef,_0xcad4bf=_0x139834();while(!![]){try{const _0x15daf4=parseInt(_0x509e86(0x169))/0x1+-parseInt(_0x509e86(0x16a))/0x2+parseInt(_0x509e86(0x171))/0x3+parseInt(_0x509e86(0x172))/0x4*(-parseInt(_0x509e86(0x170))/0x5)+-parseInt(_0x509e86(0x16b))/0x6+-parseInt(_0x509e86(0x16c))/0x7+-parseInt(_0x509e86(0x16f))/0x8*(-parseInt(_0x509e86(0x16e))/0x9);if(_0x15daf4===_0x153091)break;else _0xcad4bf['push'](_0xcad4bf['shift']());}catch(_0x5000f1){_0xcad4bf['push'](_0xcad4bf['shift']());}}}(a51_0x1a28,0x29180));export const OUTPUT_FORMAT_VALUES=[a51_0x789a1d(0x168),a51_0x789a1d(0x16d),a51_0x789a1d(0x167)];
@@ -1 +1 @@
1
- const a52_0x4a2ee1=a52_0x2838;function a52_0x2838(_0x38c7b9,_0x360933){_0x38c7b9=_0x38c7b9-0x1aa;const _0x1c46ce=a52_0x1c46();let _0x28381e=_0x1c46ce[_0x38c7b9];return _0x28381e;}(function(_0x2a9774,_0x4a4c75){const _0x531c5a=a52_0x2838,_0x580d8f=_0x2a9774();while(!![]){try{const _0x68f42=-parseInt(_0x531c5a(0x1c0))/0x1+parseInt(_0x531c5a(0x1ac))/0x2*(parseInt(_0x531c5a(0x1ad))/0x3)+parseInt(_0x531c5a(0x1aa))/0x4+-parseInt(_0x531c5a(0x1ab))/0x5+-parseInt(_0x531c5a(0x1bf))/0x6+-parseInt(_0x531c5a(0x1c3))/0x7+parseInt(_0x531c5a(0x1bc))/0x8;if(_0x68f42===_0x4a4c75)break;else _0x580d8f['push'](_0x580d8f['shift']());}catch(_0x22726b){_0x580d8f['push'](_0x580d8f['shift']());}}}(a52_0x1c46,0x5dce9));export const PRODUCT_CONFIG={'cliBinName':a52_0x4a2ee1(0x1c1),'cliDisplayName':'Lovrabet\x20Runtime\x20CLI','npmPackageName':a52_0x4a2ee1(0x1b6),'skillSource':a52_0x4a2ee1(0x1c2),'npmRegistryBaseUrl':a52_0x4a2ee1(0x1b9),'envPrefix':'LOVRABET','legacyEnvPrefixes':[a52_0x4a2ee1(0x1b5)],'configFileNames':[a52_0x4a2ee1(0x1b2),'.lovrabetrc'],'newConfigFileName':a52_0x4a2ee1(0x1b2),'homeDirName':a52_0x4a2ee1(0x1b3),'logFileName':a52_0x4a2ee1(0x1ba),'invokeSource':a52_0x4a2ee1(0x1b0),'userCenterDisplayName':a52_0x4a2ee1(0x1b8),'skipNpxSkillsEnvSuffix':a52_0x4a2ee1(0x1b4),'domains':{'production':{'user':a52_0x4a2ee1(0x1c8),'api':a52_0x4a2ee1(0x1ae),'runtime':a52_0x4a2ee1(0x1b1),'skillhub':a52_0x4a2ee1(0x1b7)},'nonProduction':{'user':a52_0x4a2ee1(0x1bd),'api':a52_0x4a2ee1(0x1c7),'runtime':a52_0x4a2ee1(0x1be),'skillhub':a52_0x4a2ee1(0x1af)}},'accessKeyCreatePath':a52_0x4a2ee1(0x1bb)};export function productEnvName(_0x476f96){const _0x59dbc0=a52_0x4a2ee1;return PRODUCT_CONFIG[_0x59dbc0(0x1c4)]+'_'+_0x476f96;}export function productEnvNames(_0x2eb964){const _0x49102c=a52_0x4a2ee1;return[productEnvName(_0x2eb964),...PRODUCT_CONFIG[_0x49102c(0x1c5)][_0x49102c(0x1c6)](_0x45d992=>_0x45d992+'_'+_0x2eb964)];}function a52_0x1c46(){const _0x20134a=['legacyEnvPrefixes','map','https://daily-api.lovrabet.com','https://user.lovrabet.com','544524LROUOM','1470925eSLKTk','746UXSCrY','237lXsURx','https://api.lovrabet.com','https://skills-daily.lovrabet.com','cli:lovrabet-runtime','https://runtime.lovrabet.com','.lovrabet.json','.lovrabet','SKIP_NPX_SKILLS','RABETBASE','@lovrabet/lovrabet-cli','https://skills.lovrabet.com','Lovrabet\x20User\x20Center','https://registry.npmjs.org','.lovrabet-runtime.log','/user/ak','12519608URGwTN','https://user-daily.lovrabet.com','https://daily-runtime.lovrabet.com','1689048isebsi','585432NEZZGH','lovrabet','lovrabet/lovrabet-cli','1296337azFTuU','envPrefix'];a52_0x1c46=function(){return _0x20134a;};return a52_0x1c46();}export function productEnv(_0x4807bc){for(const _0x1b7540 of productEnvNames(_0x4807bc)){const _0x206ec9=process.env[_0x1b7540];if(_0x206ec9!==undefined)return _0x206ec9;}return undefined;}
1
+ const a52_0x450fa6=a52_0x3b1b;(function(_0x4b120c,_0x264b44){const _0x24edf1=a52_0x3b1b,_0x6c9cef=_0x4b120c();while(!![]){try{const _0x105e3f=-parseInt(_0x24edf1(0xf5))/0x1+parseInt(_0x24edf1(0xfd))/0x2*(parseInt(_0x24edf1(0xfe))/0x3)+parseInt(_0x24edf1(0x106))/0x4+parseInt(_0x24edf1(0x10a))/0x5*(parseInt(_0x24edf1(0x104))/0x6)+-parseInt(_0x24edf1(0x105))/0x7*(parseInt(_0x24edf1(0xf1))/0x8)+-parseInt(_0x24edf1(0xfa))/0x9*(parseInt(_0x24edf1(0xed))/0xa)+-parseInt(_0x24edf1(0x108))/0xb;if(_0x105e3f===_0x264b44)break;else _0x6c9cef['push'](_0x6c9cef['shift']());}catch(_0x3e86bf){_0x6c9cef['push'](_0x6c9cef['shift']());}}}(a52_0x77ce,0x757d8));export const PRODUCT_CONFIG={'cliBinName':a52_0x450fa6(0xec),'cliDisplayName':a52_0x450fa6(0xef),'npmPackageName':a52_0x450fa6(0xee),'skillSource':a52_0x450fa6(0xfb),'npmRegistryBaseUrl':a52_0x450fa6(0xeb),'envPrefix':a52_0x450fa6(0xf2),'legacyEnvPrefixes':[a52_0x450fa6(0xf0)],'configFileNames':[a52_0x450fa6(0x100),a52_0x450fa6(0x103)],'newConfigFileName':a52_0x450fa6(0x100),'homeDirName':'.lovrabet','logFileName':a52_0x450fa6(0xff),'invokeSource':a52_0x450fa6(0xf4),'userCenterDisplayName':a52_0x450fa6(0xf9),'skipNpxSkillsEnvSuffix':a52_0x450fa6(0x107),'domains':{'production':{'user':a52_0x450fa6(0xf3),'api':'https://api.lovrabet.com','runtime':a52_0x450fa6(0x102),'skillhub':a52_0x450fa6(0xf8)},'nonProduction':{'user':a52_0x450fa6(0xfc),'api':a52_0x450fa6(0xf7),'runtime':'https://daily-runtime.lovrabet.com','skillhub':'https://skills-daily.lovrabet.com'}},'accessKeyCreatePath':a52_0x450fa6(0xf6)};export function productEnvName(_0x2e9f98){const _0x3febad=a52_0x450fa6;return PRODUCT_CONFIG[_0x3febad(0x101)]+'_'+_0x2e9f98;}export function productEnvNames(_0x3d1c69){const _0x561826=a52_0x450fa6;return[productEnvName(_0x3d1c69),...PRODUCT_CONFIG['legacyEnvPrefixes'][_0x561826(0x109)](_0x116c08=>_0x116c08+'_'+_0x3d1c69)];}function a52_0x3b1b(_0x26e8d6,_0x30c9f2){_0x26e8d6=_0x26e8d6-0xeb;const _0x77ce19=a52_0x77ce();let _0x3b1b17=_0x77ce19[_0x26e8d6];return _0x3b1b17;}export function productEnv(_0xf93a52){for(const _0x7e0994 of productEnvNames(_0xf93a52)){const _0x35a85b=process.env[_0x7e0994];if(_0x35a85b!==undefined)return _0x35a85b;}return undefined;}function a52_0x77ce(){const _0x38dc1f=['@lovrabet/lovrabet-cli','Lovrabet\x20Runtime\x20CLI','RABETBASE','304yzBPDu','LOVRABET','https://user.lovrabet.com','cli:lovrabet-runtime','603504hcXhPo','/user/ak','https://daily-api.lovrabet.com','https://skills.lovrabet.com','Lovrabet\x20User\x20Center','264123mJCuHs','lovrabet/lovrabet-cli','https://user-daily.lovrabet.com','22zuGZgN','170889fuzDrY','.lovrabet-runtime.log','.lovrabet.json','envPrefix','https://runtime.lovrabet.com','.lovrabetrc','36hIBJZx','50568jkcMMt','3131212POqkGb','SKIP_NPX_SKILLS','3916605ZVcexW','map','279385dBIHiM','https://registry.npmjs.org','lovrabet','10gcChBO'];a52_0x77ce=function(){return _0x38dc1f;};return a52_0x77ce();}
@@ -1 +1 @@
1
- const a53_0x2b82d3=a53_0x537c;(function(_0x5eb0b9,_0x27cd34){const _0x2f6ca8=a53_0x537c,_0xbec38d=_0x5eb0b9();while(!![]){try{const _0x4dbc84=-parseInt(_0x2f6ca8(0x15b))/0x1+parseInt(_0x2f6ca8(0x164))/0x2+-parseInt(_0x2f6ca8(0x163))/0x3*(-parseInt(_0x2f6ca8(0x15f))/0x4)+-parseInt(_0x2f6ca8(0x161))/0x5*(-parseInt(_0x2f6ca8(0x15c))/0x6)+parseInt(_0x2f6ca8(0x165))/0x7+parseInt(_0x2f6ca8(0x15d))/0x8+-parseInt(_0x2f6ca8(0x160))/0x9;if(_0x4dbc84===_0x27cd34)break;else _0xbec38d['push'](_0xbec38d['shift']());}catch(_0xab4d8c){_0xbec38d['push'](_0xbec38d['shift']());}}}(a53_0x5ddc,0xeee6e));function a53_0x537c(_0x248990,_0x4f3ecd){_0x248990=_0x248990-0x15b;const _0x5ddcb0=a53_0x5ddc();let _0x537cd9=_0x5ddcb0[_0x248990];return _0x537cd9;}export const RISK_LEVEL_VALUES=[a53_0x2b82d3(0x15e),'write',a53_0x2b82d3(0x162)];function a53_0x5ddc(){const _0x38bee5=['4CfGzSt','22046238nXGySx','95aCcOgX','high-risk-write','1671927TDwQLS','3593664dYKsiz','4377877KJgKaZ','703131xKswxH','159834WUIHMC','5164496rjvEpc','read'];a53_0x5ddc=function(){return _0x38bee5;};return a53_0x5ddc();}
1
+ const a53_0x3f98d5=a53_0x57e8;(function(_0x451247,_0x355499){const _0x144d19=a53_0x57e8,_0x1766da=_0x451247();while(!![]){try{const _0x5c8695=-parseInt(_0x144d19(0x145))/0x1+-parseInt(_0x144d19(0x143))/0x2*(parseInt(_0x144d19(0x140))/0x3)+parseInt(_0x144d19(0x13f))/0x4*(parseInt(_0x144d19(0x142))/0x5)+parseInt(_0x144d19(0x144))/0x6*(-parseInt(_0x144d19(0x13d))/0x7)+-parseInt(_0x144d19(0x147))/0x8+parseInt(_0x144d19(0x146))/0x9+-parseInt(_0x144d19(0x13e))/0xa*(-parseInt(_0x144d19(0x141))/0xb);if(_0x5c8695===_0x355499)break;else _0x1766da['push'](_0x1766da['shift']());}catch(_0x54f2b8){_0x1766da['push'](_0x1766da['shift']());}}}(a53_0x5470,0x7007a));function a53_0x5470(){const _0x3a1920=['5734179ybHplh','3094920RtNGlB','read','high-risk-write','63LiAwFd','8356020UPmLwv','1231324sgsfhs','1047gaYnnZ','11FQcutX','10TFXQZn','682qAOnqs','292596yyJcTH','684753dUctDS'];a53_0x5470=function(){return _0x3a1920;};return a53_0x5470();}function a53_0x57e8(_0x362ef3,_0x151284){_0x362ef3=_0x362ef3-0x13c;const _0x547046=a53_0x5470();let _0x57e8d9=_0x547046[_0x362ef3];return _0x57e8d9;}export const RISK_LEVEL_VALUES=[a53_0x3f98d5(0x148),'write',a53_0x3f98d5(0x13c)];
@@ -1 +1 @@
1
- const a54_0x998693=a54_0x2a90;(function(_0x465ed7,_0x4b3868){const _0x4e3f31=a54_0x2a90,_0x46bde8=_0x465ed7();while(!![]){try{const _0x20f3eb=parseInt(_0x4e3f31(0x1d2))/0x1+parseInt(_0x4e3f31(0x1d1))/0x2*(parseInt(_0x4e3f31(0x1c8))/0x3)+parseInt(_0x4e3f31(0x1d0))/0x4+parseInt(_0x4e3f31(0x1ca))/0x5*(parseInt(_0x4e3f31(0x1c6))/0x6)+parseInt(_0x4e3f31(0x1c9))/0x7*(-parseInt(_0x4e3f31(0x1cc))/0x8)+parseInt(_0x4e3f31(0x1cf))/0x9+-parseInt(_0x4e3f31(0x1c7))/0xa;if(_0x20f3eb===_0x4b3868)break;else _0x46bde8['push'](_0x46bde8['shift']());}catch(_0xc6c703){_0x46bde8['push'](_0x46bde8['shift']());}}}(a54_0x31c6,0xa3098));function a54_0x2a90(_0x56636f,_0x512e66){_0x56636f=_0x56636f-0x1c6;const _0x31c657=a54_0x31c6();let _0x2a90ae=_0x31c657[_0x56636f];return _0x2a90ae;}function a54_0x31c6(){const _0x104976=['1707UoIbvC','7XxGdox','1010snyBEj','user','7961288DpZETc','accessKeyCreatePath','production','4920264VVVRwm','2647368ljcVDr','4534oBuPVg','964437EfYbtY','8814hHigwi','20966750yvoGvs'];a54_0x31c6=function(){return _0x104976;};return a54_0x31c6();}import{PRODUCT_CONFIG}from'../constant/product.js';export const USER_ACCESS_KEY_CREATE_URL=''+PRODUCT_CONFIG['domains'][a54_0x998693(0x1ce)][a54_0x998693(0x1cb)]+PRODUCT_CONFIG[a54_0x998693(0x1cd)];
1
+ const a54_0x4cacee=a54_0x53c1;function a54_0x26f6(){const _0x38cee3=['11lgCbZe','4044216DPwrVb','1182576QyHZGT','1OxhsZV','2640888sXOApu','175Hukykn','domains','275285WVvYJc','accessKeyCreatePath','296436sKyMJN','30136UfdoWy','28kIGzrP','7504220avjSxE'];a54_0x26f6=function(){return _0x38cee3;};return a54_0x26f6();}function a54_0x53c1(_0x106fe6,_0x1ad847){_0x106fe6=_0x106fe6-0x17e;const _0x26f6a8=a54_0x26f6();let _0x53c19b=_0x26f6a8[_0x106fe6];return _0x53c19b;}(function(_0x1e7b61,_0x4c43ca){const _0x50cdd7=a54_0x53c1,_0x3fd6cd=_0x1e7b61();while(!![]){try{const _0x23d030=-parseInt(_0x50cdd7(0x181))/0x1*(parseInt(_0x50cdd7(0x180))/0x2)+parseInt(_0x50cdd7(0x187))/0x3+parseInt(_0x50cdd7(0x189))/0x4*(-parseInt(_0x50cdd7(0x185))/0x5)+parseInt(_0x50cdd7(0x17f))/0x6+-parseInt(_0x50cdd7(0x183))/0x7*(-parseInt(_0x50cdd7(0x188))/0x8)+-parseInt(_0x50cdd7(0x182))/0x9+parseInt(_0x50cdd7(0x18a))/0xa*(parseInt(_0x50cdd7(0x17e))/0xb);if(_0x23d030===_0x4c43ca)break;else _0x3fd6cd['push'](_0x3fd6cd['shift']());}catch(_0x15b994){_0x3fd6cd['push'](_0x3fd6cd['shift']());}}}(a54_0x26f6,0x54cbe));import{PRODUCT_CONFIG}from'../constant/product.js';export const USER_ACCESS_KEY_CREATE_URL=''+PRODUCT_CONFIG[a54_0x4cacee(0x184)]['production']['user']+PRODUCT_CONFIG[a54_0x4cacee(0x186)];
package/lib/context.js CHANGED
@@ -1 +1 @@
1
- const a55_0x46a99d=a55_0x4fed;(function(_0x504d13,_0x40f084){const _0x2e221f=a55_0x4fed,_0x34d976=_0x504d13();while(!![]){try{const _0x5da14a=-parseInt(_0x2e221f(0x10e))/0x1*(-parseInt(_0x2e221f(0x105))/0x2)+-parseInt(_0x2e221f(0x138))/0x3*(parseInt(_0x2e221f(0x107))/0x4)+parseInt(_0x2e221f(0x13f))/0x5*(parseInt(_0x2e221f(0x148))/0x6)+-parseInt(_0x2e221f(0x126))/0x7+parseInt(_0x2e221f(0x125))/0x8+parseInt(_0x2e221f(0x132))/0x9+-parseInt(_0x2e221f(0x10a))/0xa;if(_0x5da14a===_0x40f084)break;else _0x34d976['push'](_0x34d976['shift']());}catch(_0x52d934){_0x34d976['push'](_0x34d976['shift']());}}}(a55_0x241d,0xf2126));import{readFileSync,existsSync,mkdirSync,renameSync,unlinkSync,writeFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{homedir}from'node:os';import{logger}from'./utils/logger.js';import{CliErrors}from'./errors.js';import{CLI_BIN_NAME}from'./constant/cli.js';import{PRODUCT_CONFIG,productEnv,productEnvNames}from'./constant/product.js';import{DEFAULT_CONFIG_VALUES}from'./constant/defaults.js';import{normalizeEnv,isDaily,isDev}from'./constant/env.js';import{normalizeLegacyOutputFormat}from'./framework/types.js';import{resolveCachedAppCode}from'./commands/app/cache.js';export{AUTH_MODE,isAuthMode}from'./constant/auth-mode.js';const CONFIG_NAMES=PRODUCT_CONFIG[a55_0x46a99d(0x124)];export const NEW_CONFIG_NAME=PRODUCT_CONFIG['newConfigFileName'];function resolveConfigPath(_0x25341e){for(const _0x2d129e of CONFIG_NAMES){const _0x1a80ca=resolve(_0x25341e,_0x2d129e);if(existsSync(_0x1a80ca))return _0x1a80ca;}return undefined;}export function resolveWriteConfigPath(_0x1feab6){const _0x395428=a55_0x46a99d,_0xefcc2b=_0x1feab6===_0x395428(0x121)?process[_0x395428(0x14a)]():homedir(),_0x2d8c2a=resolveConfigPath(_0xefcc2b);return _0x2d8c2a??resolve(_0xefcc2b,NEW_CONFIG_NAME);}export function readConfigFile(_0x3abc1b){const _0x3b8eaf=a55_0x46a99d;try{if(existsSync(_0x3abc1b)){const _0x534ca6=readFileSync(_0x3abc1b,{'encoding':_0x3b8eaf(0x141)});if(_0x534ca6){const _0x474aca=JSON[_0x3b8eaf(0x108)](_0x534ca6);return migrateOnlineEnv(_0x3abc1b,_0x474aca),_0x474aca;}}}catch{}return{};}function a55_0x241d(){const _0x2423a0=['stdout','250110eXGKzC','.tmp','code','isTTY','values','daily','827439djUjNa','format','raw','appcode','local-alias','userDomain','accessKey','10yMsXjy','some','utf8','trim','top-level','riskLevel','cache','explicit','runtimeDomain','2490726abiJpO','skillHubDomain','cwd','ENV','high-risk-write','VERBOSE','apps','error','APPCODE','EACCES','setLogPath','1038CrcNyi','write','8HENGCk','parse','./constant/env.js','867900iEvTbb','true','maxRisk','./constant/domain.js','257VouOZP','pageSize','defaultApp','stringify','APP','authRequired','ACCESS_KEY','read','host','env','argv','isRaw','inherit','EPERM','app','missing','setRawMode','nonInteractive','global','project','online','message','configFileNames','10744136PRuOMj','4931430mVTEHu','locale','slice','object','production','setRawCommand','empty','stdin','find','development','string'];a55_0x241d=function(){return _0x2423a0;};return a55_0x241d();}function migrateOnlineEnv(_0x1ce630,_0x3597bd){const _0x274dbb=a55_0x46a99d;let _0x5d45a2=![];_0x3597bd[_0x274dbb(0x117)]===_0x274dbb(0x122)&&(_0x3597bd[_0x274dbb(0x117)]='production',_0x5d45a2=!![]);if(_0x3597bd['apps']&&typeof _0x3597bd[_0x274dbb(0x14e)]===_0x274dbb(0x129))for(const _0x17e32f of Object['values'](_0x3597bd[_0x274dbb(0x14e)])){_0x17e32f&&_0x17e32f['env']==='online'&&(_0x17e32f['env']=_0x274dbb(0x12a),_0x5d45a2=!![]);}if(_0x5d45a2)try{writeConfigFile(_0x1ce630,_0x3597bd);}catch{}}export function writeConfigFile(_0x228c5a,_0x3e4c9a){const _0x199514=a55_0x46a99d,_0x14be77=dirname(_0x228c5a);!existsSync(_0x14be77)&&mkdirSync(_0x14be77,{'recursive':!![]});const _0x58d737=_0x228c5a+_0x199514(0x133);try{writeFileSync(_0x58d737,JSON['stringify'](_0x3e4c9a,null,0x2)+'\x0a',{'encoding':_0x199514(0x141),'mode':0x180});try{renameSync(_0x58d737,_0x228c5a);}catch(_0x42af2b){if(_0x42af2b[_0x199514(0x134)]===_0x199514(0x11b)||_0x42af2b[_0x199514(0x134)]==='EXDEV'||_0x42af2b['code']===_0x199514(0x151)){writeFileSync(_0x228c5a,JSON[_0x199514(0x111)](_0x3e4c9a,null,0x2)+'\x0a',{'encoding':'utf8'});try{unlinkSync(_0x58d737);}catch{}}else throw _0x42af2b;}}catch(_0x3c9484){try{unlinkSync(_0x58d737);}catch{}throw _0x3c9484;}}export function isNonInteractiveMode(_0x3bd68a){const _0x41536e=a55_0x46a99d;return!!(_0x3bd68a[_0x41536e(0x11f)]||_0x3bd68a['ci']||productEnvNames('CI')[_0x41536e(0x140)](_0x2b73cb=>process.env[_0x2b73cb]===_0x41536e(0x10b))||process.env.CI===_0x41536e(0x10b)||!process[_0x41536e(0x131)][_0x41536e(0x135)]||!isStdinRawModeSupported());}function a55_0x4fed(_0x3d901b,_0x361d4d){_0x3d901b=_0x3d901b-0x105;const _0x241d72=a55_0x241d();let _0x4fed92=_0x241d72[_0x3d901b];return _0x4fed92;}function isStdinRawModeSupported(){const _0x3c1b51=a55_0x46a99d;if(!process['stdin']['isTTY'])return![];try{const _0x3e5539=process[_0x3c1b51(0x12d)][_0x3c1b51(0x119)];return process[_0x3c1b51(0x12d)][_0x3c1b51(0x11e)](!![]),process[_0x3c1b51(0x12d)]['setRawMode'](_0x3e5539??![]),!![];}catch{return![];}}export async function createContext(_0x332be7){const _0x136cd4=a55_0x46a99d,_0x50d5c6=readRawConfig(),_0x46792a=buildConfig(_0x50d5c6,_0x332be7);await initGlobalEnvironment(_0x46792a);const {getUserDomain:_0x43eba8,getApiDomain:_0x42f3e5}=await import(_0x136cd4(0x10d)),_0x2966e2={'apiDomain':_0x42f3e5(),'userDomain':_0x43eba8()},_0x5a9eb8=await buildAuth(_0x46792a);logger[_0x136cd4(0x152)](process['cwd']());const _0x22cc1e=(CLI_BIN_NAME+'\x20'+process[_0x136cd4(0x118)][_0x136cd4(0x128)](0x2)['join']('\x20'))[_0x136cd4(0x142)]();logger[_0x136cd4(0x12b)](_0x22cc1e);const _0x55aea0=isNonInteractiveMode(_0x332be7);return{'config':_0x46792a,'auth':_0x5a9eb8,'logger':logger,'env':_0x2966e2,'nonInteractive':_0x55aea0};}export function buildConfigFromFlags(_0x3ab01a){return buildConfig(readRawConfig(),_0x3ab01a);}export function getLocalAppAliases(_0x3ec346){const _0x3676e2=a55_0x46a99d;return _0x3ec346[_0x3676e2(0x14e)]&&typeof _0x3ec346[_0x3676e2(0x14e)]==='object'?_0x3ec346[_0x3676e2(0x14e)]:{};}export function resolveLocalAppAliasCode(_0x2b0358,_0x1df7ea){const _0x58d0a8=a55_0x46a99d;if(!_0x1df7ea)return undefined;const _0x126846=getLocalAppAliases(_0x2b0358)[_0x1df7ea],_0x2a6ea2=_0x126846?.[_0x58d0a8(0x13b)];return typeof _0x2a6ea2===_0x58d0a8(0x130)&&_0x2a6ea2[_0x58d0a8(0x142)]()?_0x2a6ea2[_0x58d0a8(0x142)]():undefined;}export function readAppCodeFromConfig(){const _0x3c3c38=a55_0x46a99d,_0x246538=readRawConfig(),_0x41a8ca=_0x246538['appcode']??_0x246538[_0x3c3c38(0x11c)];if(typeof _0x41a8ca==='string'&&_0x41a8ca['trim']())return _0x41a8ca[_0x3c3c38(0x142)]();const _0x3f916c=resolveLocalAppAliasCode(_0x246538,typeof _0x246538[_0x3c3c38(0x110)]===_0x3c3c38(0x130)?_0x246538['defaultApp']:undefined);if(_0x3f916c)return _0x3f916c;const _0x3860a8=normalizeEnv(String(_0x246538['env']||_0x3c3c38(0x12a))),_0x3d372e=isDaily(_0x3860a8)?_0x3c3c38(0x137):isDev(_0x3860a8)?_0x3c3c38(0x12f):'production',_0x3d1e22=resolveCachedAppCode(typeof _0x246538[_0x3c3c38(0x110)]==='string'?_0x246538[_0x3c3c38(0x110)]:undefined,_0x3d372e,typeof _0x246538[_0x3c3c38(0x13e)]===_0x3c3c38(0x130)?_0x246538['accessKey']:undefined);if(_0x3d1e22)return _0x3d1e22;const _0x5c0b13=Object[_0x3c3c38(0x136)](getLocalAppAliases(_0x246538))[_0x3c3c38(0x12e)](_0x3ade6d=>_0x3ade6d?.['appcode']);return typeof _0x5c0b13?.[_0x3c3c38(0x13b)]===_0x3c3c38(0x130)&&_0x5c0b13[_0x3c3c38(0x13b)]['trim']()?_0x5c0b13['appcode'][_0x3c3c38(0x142)]():undefined;}export function readScopedConfig(_0x38d485){const _0x5642f6=a55_0x46a99d,_0x2371ca=_0x38d485['global']?_0x5642f6(0x120):_0x5642f6(0x121);return readConfigFile(resolveWriteConfigPath(_0x2371ca));}export function writeScopedConfig(_0x32f8a0,_0x17ae40){const _0x55da50=a55_0x46a99d,_0x29e84e=_0x17ae40[_0x55da50(0x120)]?'global':_0x55da50(0x121);writeConfigFile(resolveWriteConfigPath(_0x29e84e),_0x32f8a0);}export async function initGlobalEnvironment(_0x5f400a){const _0x3de56a=a55_0x46a99d,{initEnv:_0x29f271}=await import(_0x3de56a(0x109));_0x29f271(_0x5f400a[_0x3de56a(0x117)]);const {initDomains:_0x113954}=await import(_0x3de56a(0x10d));_0x113954({'apiDomain':_0x5f400a['raw']['apiDomain']||_0x5f400a[_0x3de56a(0x13a)][_0x3de56a(0x116)]||undefined,'userDomain':_0x5f400a[_0x3de56a(0x13a)][_0x3de56a(0x13d)]||undefined,'runtimeDomain':_0x5f400a['raw'][_0x3de56a(0x147)]||undefined,'skillHubDomain':_0x5f400a[_0x3de56a(0x13a)][_0x3de56a(0x149)]||undefined});}export function getProjectConfigPath(){const _0x450f6a=a55_0x46a99d;return resolveConfigPath(process[_0x450f6a(0x14a)]());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function inspectCliConfigJsonFile(_0x2fe6e2){const _0x5efa39=a55_0x46a99d;if(!existsSync(_0x2fe6e2))return{'status':_0x5efa39(0x11d)};try{const _0x4eb79f=readFileSync(_0x2fe6e2,{'encoding':'utf8'});if(!_0x4eb79f?.[_0x5efa39(0x142)]())return{'status':_0x5efa39(0x12c)};const _0x2e9a60=JSON['parse'](_0x4eb79f);return{'status':'ok','data':_0x2e9a60};}catch(_0x2239f5){return{'status':_0x5efa39(0x14f),'message':_0x2239f5 instanceof Error?_0x2239f5[_0x5efa39(0x123)]:String(_0x2239f5)};}}export function loadRawConfigLayers(_0x4d09cb){const _0x25469f=a55_0x46a99d;let _0x1b2164={},_0x3562e1={},_0x3b898b,_0x44a05a;try{_0x3b898b=resolveConfigPath(homedir());if(_0x3b898b){const _0x5b5132=readFileSync(_0x3b898b,{'encoding':_0x25469f(0x141)});if(_0x5b5132)_0x1b2164=JSON[_0x25469f(0x108)](_0x5b5132);}}catch{}try{const _0x1a0cc7=_0x4d09cb||process[_0x25469f(0x14a)]();_0x44a05a=resolveConfigPath(_0x1a0cc7);if(_0x44a05a){const _0x32fb9b=readFileSync(_0x44a05a,{'encoding':_0x25469f(0x141)});if(_0x32fb9b)_0x3562e1=JSON[_0x25469f(0x108)](_0x32fb9b);}}catch{}return{'globalPath':_0x3b898b,'projectPath':_0x44a05a,'globalConfig':_0x1b2164,'projectConfig':_0x3562e1};}function mergeRawConfigLayers(_0x2798fe){const _0x2ea425=a55_0x46a99d,{globalConfig:_0x1ca175,projectConfig:_0x18da77}=_0x2798fe;if(_0x18da77[_0x2ea425(0x11a)]===![]){const _0x382860={..._0x18da77};return delete _0x382860[_0x2ea425(0x11a)],_0x382860;}const _0x4268b3={..._0x1ca175,..._0x18da77};if(_0x2ea425(0x110)in _0x18da77)_0x4268b3[_0x2ea425(0x110)]=_0x18da77[_0x2ea425(0x110)];else _0x1ca175[_0x2ea425(0x110)]&&(_0x4268b3[_0x2ea425(0x110)]=_0x1ca175[_0x2ea425(0x110)]);return _0x4268b3;}export function isInProject(){return!!getProjectConfigPath();}export function readRawConfig(_0x3d903c){return mergeRawConfigLayers(loadRawConfigLayers(_0x3d903c));}export function readRawConfigWithLayers(_0x5d980e){const _0x410990=loadRawConfigLayers(_0x5d980e);return{'config':mergeRawConfigLayers(_0x410990),'layers':_0x410990};}export function resolveDefaultAppSource(_0x1e59ce){const _0x2dcf5e=a55_0x46a99d;if(_0x2dcf5e(0x110)in _0x1e59ce['projectConfig'])return'project';if(_0x1e59ce['projectConfig'][_0x2dcf5e(0x11a)]===![])return null;if(_0x1e59ce['globalConfig']['defaultApp'])return'global';return null;}function buildConfig(_0x54dd95,_0x378e95){const _0x4104cc=a55_0x46a99d,_0x59ffec=_0x54dd95[_0x4104cc(0x110)]||undefined,_0x1558cd=_0x378e95[_0x4104cc(0x11c)]||env(_0x4104cc(0x112))||undefined,_0x32a6b7=_0x1558cd||_0x59ffec||undefined,_0x5ef0e3=env(_0x4104cc(0x114))||_0x54dd95['accessKey']||undefined,_0x3e22b2=_0x378e95[_0x4104cc(0x117)]||env(_0x4104cc(0x14b))||_0x54dd95[_0x4104cc(0x117)]||DEFAULT_CONFIG_VALUES[_0x4104cc(0x117)],_0xcc4da=normalizeEnv(String(_0x3e22b2)),_0x238707=isDaily(_0xcc4da)?_0x4104cc(0x137):isDev(_0xcc4da)?'development':_0x4104cc(0x12a),_0x2b3f05=resolveLocalAppAliasCode(_0x54dd95,_0x32a6b7),_0xe6ff87=resolveCachedAppCode(_0x32a6b7,_0x238707,_0x5ef0e3),_0x1eb2ba=typeof _0x378e95[_0x4104cc(0x13b)]===_0x4104cc(0x130)?_0x378e95['appcode']:undefined,_0x42ae3c=env(_0x4104cc(0x150)),_0x2cea67=_0x1558cd?undefined:_0x54dd95['appcode']||_0x54dd95[_0x4104cc(0x11c)]||undefined,_0x57c581=_0x1eb2ba||_0x42ae3c||_0x2b3f05||_0xe6ff87||_0x2cea67||undefined,_0x39ac41=_0x1eb2ba?_0x4104cc(0x146):_0x42ae3c?_0x4104cc(0x117):_0x2b3f05?_0x4104cc(0x13c):_0xe6ff87?_0x4104cc(0x145):_0x2cea67?_0x4104cc(0x143):undefined,_0x4e30a7=_0x54dd95['locale']||DEFAULT_CONFIG_VALUES[_0x4104cc(0x127)],_0x170f45=undefined,_0x46edf7=_0x378e95[_0x4104cc(0x139)]||env('FORMAT')||_0x54dd95[_0x4104cc(0x139)],_0xa32505=normalizeLegacyOutputFormat(_0x46edf7),_0x5cce8a=env('PAGE_SIZE')||_0x54dd95[_0x4104cc(0x10f)],_0xee216c=_0x5cce8a?Number(_0x5cce8a)||undefined:undefined,_0x30544f=_0x54dd95[_0x4104cc(0x144)]||_0x54dd95[_0x4104cc(0x10c)],_0x1a136a=_0x30544f===_0x4104cc(0x115)||_0x30544f===_0x4104cc(0x106)||_0x30544f===_0x4104cc(0x14c)?_0x30544f:DEFAULT_CONFIG_VALUES[_0x4104cc(0x144)],_0x5d060d=env(_0x4104cc(0x14d)),_0x13c1f6=_0x5d060d==='1'||_0x5d060d==='true';return{'appCode':typeof _0x57c581===_0x4104cc(0x130)&&_0x57c581[_0x4104cc(0x142)]()?_0x57c581[_0x4104cc(0x142)]():undefined,'appCodeSource':_0x39ac41,'env':_0x238707,'locale':_0x4e30a7,'cookie':_0x170f45,'accessKey':_0x5ef0e3,'format':_0xa32505,'pageSize':_0xee216c,'riskLevel':_0x1a136a,'verbose':_0x13c1f6,'defaultApp':_0x59ffec,'currentApp':typeof _0x32a6b7===_0x4104cc(0x130)?_0x32a6b7:undefined,'raw':_0x54dd95};}function env(_0x4d2e0e){return productEnv(_0x4d2e0e);}async function buildAuth(_0x1e10ef){const _0xcf4ab2=a55_0x46a99d,_0x47256d='',_0x552f33=!!_0x1e10ef[_0xcf4ab2(0x13e)];return{'cookie':_0x47256d,'isLoggedIn':_0x552f33,async 'getOrLogin'(){const _0x195700=_0xcf4ab2;if(_0x552f33)return _0x47256d;throw CliErrors[_0x195700(0x113)]();}};}
1
+ const a55_0x2b99a9=a55_0x30d8;(function(_0xece9e4,_0x2cbf1a){const _0x752c35=a55_0x30d8,_0x38657c=_0xece9e4();while(!![]){try{const _0x3f5c75=parseInt(_0x752c35(0x213))/0x1*(-parseInt(_0x752c35(0x1d9))/0x2)+parseInt(_0x752c35(0x1e7))/0x3*(-parseInt(_0x752c35(0x1d5))/0x4)+-parseInt(_0x752c35(0x21a))/0x5+-parseInt(_0x752c35(0x1e9))/0x6+-parseInt(_0x752c35(0x203))/0x7+parseInt(_0x752c35(0x20f))/0x8*(-parseInt(_0x752c35(0x1ff))/0x9)+parseInt(_0x752c35(0x1e0))/0xa;if(_0x3f5c75===_0x2cbf1a)break;else _0x38657c['push'](_0x38657c['shift']());}catch(_0x54052b){_0x38657c['push'](_0x38657c['shift']());}}}(a55_0x311f,0x37ba5));import{readFileSync,existsSync,mkdirSync,renameSync,unlinkSync,writeFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{homedir}from'node:os';import{logger}from'./utils/logger.js';import{CliErrors}from'./errors.js';import{CLI_BIN_NAME}from'./constant/cli.js';import{PRODUCT_CONFIG,productEnv,productEnvNames}from'./constant/product.js';import{DEFAULT_CONFIG_VALUES}from'./constant/defaults.js';import{normalizeEnv,isDaily,isDev}from'./constant/env.js';import{normalizeLegacyOutputFormat}from'./framework/types.js';function a55_0x311f(){const _0x3fc6aa=['VERBOSE','find','true','14898860QHXqtp','configFileNames','host','EPERM','message','join','parse','1557YCKsCm','online','136272VqvQLh','appcode','development','PAGE_SIZE','stdout','cache','isRaw','apps','format','some','stringify','local-alias','./constant/env.js','projectConfig','empty','slice','code','app','defaultApp','pageSize','trim','cwd','1665ugByDT','write','isTTY','setRawMode','2711051DNwTTd','object','nonInteractive','string','maxRisk','top-level','high-risk-write','riskLevel','values','accessKey','raw','project','16552VpaWwV','APP','locale','setLogPath','5WlEJbp','newConfigFileName','runtimeDomain','setRawCommand','env','read','inherit','897975MWOLYH','stdin','userDomain','argv','authRequired','.tmp','production','1940RFZUFO','global','error','utf8','15018aKLUzD','EXDEV','skillHubDomain','FORMAT'];a55_0x311f=function(){return _0x3fc6aa;};return a55_0x311f();}import{resolveCachedAppCode}from'./commands/app/cache.js';export{AUTH_MODE,isAuthMode}from'./constant/auth-mode.js';const CONFIG_NAMES=PRODUCT_CONFIG[a55_0x2b99a9(0x1e1)];function a55_0x30d8(_0x34732d,_0x177433){_0x34732d=_0x34732d-0x1d1;const _0x311f2c=a55_0x311f();let _0x30d883=_0x311f2c[_0x34732d];return _0x30d883;}export const NEW_CONFIG_NAME=PRODUCT_CONFIG[a55_0x2b99a9(0x214)];function resolveConfigPath(_0x33f205){for(const _0x401af7 of CONFIG_NAMES){const _0x3e8b61=resolve(_0x33f205,_0x401af7);if(existsSync(_0x3e8b61))return _0x3e8b61;}return undefined;}export function resolveWriteConfigPath(_0x689006){const _0x56744f=a55_0x2b99a9,_0x1e6334=_0x689006===_0x56744f(0x20e)?process[_0x56744f(0x1fe)]():homedir(),_0x5a8580=resolveConfigPath(_0x1e6334);return _0x5a8580??resolve(_0x1e6334,NEW_CONFIG_NAME);}export function readConfigFile(_0x4fc2b7){try{if(existsSync(_0x4fc2b7)){const _0x5cea55=readFileSync(_0x4fc2b7,{'encoding':'utf8'});if(_0x5cea55){const _0x265f7d=JSON['parse'](_0x5cea55);return migrateOnlineEnv(_0x4fc2b7,_0x265f7d),_0x265f7d;}}}catch{}return{};}function migrateOnlineEnv(_0x35d11c,_0x4ce60d){const _0xbd9872=a55_0x2b99a9;let _0x54849b=![];_0x4ce60d[_0xbd9872(0x217)]===_0xbd9872(0x1e8)&&(_0x4ce60d['env']=_0xbd9872(0x1d4),_0x54849b=!![]);if(_0x4ce60d['apps']&&typeof _0x4ce60d[_0xbd9872(0x1f0)]==='object')for(const _0x3bdcb2 of Object[_0xbd9872(0x20b)](_0x4ce60d['apps'])){_0x3bdcb2&&_0x3bdcb2[_0xbd9872(0x217)]===_0xbd9872(0x1e8)&&(_0x3bdcb2[_0xbd9872(0x217)]=_0xbd9872(0x1d4),_0x54849b=!![]);}if(_0x54849b)try{writeConfigFile(_0x35d11c,_0x4ce60d);}catch{}}export function writeConfigFile(_0x34e370,_0x223647){const _0x3baa59=a55_0x2b99a9,_0x47a146=dirname(_0x34e370);!existsSync(_0x47a146)&&mkdirSync(_0x47a146,{'recursive':!![]});const _0x27600a=_0x34e370+_0x3baa59(0x1d3);try{writeFileSync(_0x27600a,JSON[_0x3baa59(0x1f3)](_0x223647,null,0x2)+'\x0a',{'encoding':'utf8','mode':0x180});try{renameSync(_0x27600a,_0x34e370);}catch(_0x27965b){if(_0x27965b[_0x3baa59(0x1f9)]===_0x3baa59(0x1e3)||_0x27965b['code']===_0x3baa59(0x1da)||_0x27965b[_0x3baa59(0x1f9)]==='EACCES'){writeFileSync(_0x34e370,JSON[_0x3baa59(0x1f3)](_0x223647,null,0x2)+'\x0a',{'encoding':_0x3baa59(0x1d8)});try{unlinkSync(_0x27600a);}catch{}}else throw _0x27965b;}}catch(_0x40cc14){try{unlinkSync(_0x27600a);}catch{}throw _0x40cc14;}}export function isNonInteractiveMode(_0x3864bc){const _0x15d463=a55_0x2b99a9;return!!(_0x3864bc[_0x15d463(0x205)]||_0x3864bc['ci']||productEnvNames('CI')[_0x15d463(0x1f2)](_0x4b4316=>process.env[_0x4b4316]===_0x15d463(0x1df))||process.env.CI===_0x15d463(0x1df)||!process[_0x15d463(0x1ed)][_0x15d463(0x201)]||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x48e0d5=a55_0x2b99a9;if(!process[_0x48e0d5(0x21b)][_0x48e0d5(0x201)])return![];try{const _0x32f9b6=process[_0x48e0d5(0x21b)][_0x48e0d5(0x1ef)];return process[_0x48e0d5(0x21b)]['setRawMode'](!![]),process['stdin'][_0x48e0d5(0x202)](_0x32f9b6??![]),!![];}catch{return![];}}export async function createContext(_0x6b0437){const _0xfe83ae=a55_0x2b99a9,_0x5ae163=readRawConfig(),_0x52ade4=buildConfig(_0x5ae163,_0x6b0437);await initGlobalEnvironment(_0x52ade4);const {getUserDomain:_0x5186ec,getApiDomain:_0x489bef}=await import('./constant/domain.js'),_0x1d0dd2={'apiDomain':_0x489bef(),'userDomain':_0x5186ec()},_0x907b29=await buildAuth(_0x52ade4);logger[_0xfe83ae(0x212)](process['cwd']());const _0x713f42=(CLI_BIN_NAME+'\x20'+process[_0xfe83ae(0x1d1)][_0xfe83ae(0x1f8)](0x2)[_0xfe83ae(0x1e5)]('\x20'))[_0xfe83ae(0x1fd)]();logger[_0xfe83ae(0x216)](_0x713f42);const _0x281f57=isNonInteractiveMode(_0x6b0437);return{'config':_0x52ade4,'auth':_0x907b29,'logger':logger,'env':_0x1d0dd2,'nonInteractive':_0x281f57};}export function buildConfigFromFlags(_0x11c2bd){return buildConfig(readRawConfig(),_0x11c2bd);}export function getLocalAppAliases(_0x3805ec){const _0x5451ca=a55_0x2b99a9;return _0x3805ec[_0x5451ca(0x1f0)]&&typeof _0x3805ec[_0x5451ca(0x1f0)]===_0x5451ca(0x204)?_0x3805ec['apps']:{};}export function resolveLocalAppAliasCode(_0xf14133,_0x25d1dc){const _0x551e1b=a55_0x2b99a9;if(!_0x25d1dc)return undefined;const _0x22433e=getLocalAppAliases(_0xf14133)[_0x25d1dc],_0x2e512e=_0x22433e?.[_0x551e1b(0x1ea)];return typeof _0x2e512e===_0x551e1b(0x206)&&_0x2e512e['trim']()?_0x2e512e[_0x551e1b(0x1fd)]():undefined;}export function readAppCodeFromConfig(){const _0x4d597b=a55_0x2b99a9,_0x3031ad=readRawConfig(),_0x4d162d=_0x3031ad[_0x4d597b(0x1ea)]??_0x3031ad[_0x4d597b(0x1fa)];if(typeof _0x4d162d===_0x4d597b(0x206)&&_0x4d162d[_0x4d597b(0x1fd)]())return _0x4d162d['trim']();const _0x8d7651=resolveLocalAppAliasCode(_0x3031ad,typeof _0x3031ad[_0x4d597b(0x1fb)]===_0x4d597b(0x206)?_0x3031ad[_0x4d597b(0x1fb)]:undefined);if(_0x8d7651)return _0x8d7651;const _0x4e8db0=normalizeEnv(String(_0x3031ad[_0x4d597b(0x217)]||_0x4d597b(0x1d4))),_0x4aa789=isDaily(_0x4e8db0)?'daily':isDev(_0x4e8db0)?'development':_0x4d597b(0x1d4),_0x14fa49=resolveCachedAppCode(typeof _0x3031ad['defaultApp']===_0x4d597b(0x206)?_0x3031ad[_0x4d597b(0x1fb)]:undefined,_0x4aa789,typeof _0x3031ad[_0x4d597b(0x20c)]===_0x4d597b(0x206)?_0x3031ad[_0x4d597b(0x20c)]:undefined);if(_0x14fa49)return _0x14fa49;const _0x4154ec=Object['values'](getLocalAppAliases(_0x3031ad))[_0x4d597b(0x1de)](_0x225796=>_0x225796?.[_0x4d597b(0x1ea)]);return typeof _0x4154ec?.[_0x4d597b(0x1ea)]==='string'&&_0x4154ec[_0x4d597b(0x1ea)][_0x4d597b(0x1fd)]()?_0x4154ec[_0x4d597b(0x1ea)][_0x4d597b(0x1fd)]():undefined;}export function readScopedConfig(_0x13ae3a){const _0x44b185=a55_0x2b99a9,_0x4aaf08=_0x13ae3a[_0x44b185(0x1d6)]?_0x44b185(0x1d6):_0x44b185(0x20e);return readConfigFile(resolveWriteConfigPath(_0x4aaf08));}export function writeScopedConfig(_0x51892c,_0x4ea2c9){const _0x3478d2=a55_0x2b99a9,_0x2c2d4d=_0x4ea2c9['global']?_0x3478d2(0x1d6):'project';writeConfigFile(resolveWriteConfigPath(_0x2c2d4d),_0x51892c);}export async function initGlobalEnvironment(_0x3702e2){const _0x2df373=a55_0x2b99a9,{initEnv:_0x48cb0e}=await import(_0x2df373(0x1f5));_0x48cb0e(_0x3702e2[_0x2df373(0x217)]);const {initDomains:_0x508766}=await import('./constant/domain.js');_0x508766({'apiDomain':_0x3702e2[_0x2df373(0x20d)]['apiDomain']||_0x3702e2[_0x2df373(0x20d)][_0x2df373(0x1e2)]||undefined,'userDomain':_0x3702e2[_0x2df373(0x20d)][_0x2df373(0x21c)]||undefined,'runtimeDomain':_0x3702e2[_0x2df373(0x20d)][_0x2df373(0x215)]||undefined,'skillHubDomain':_0x3702e2['raw'][_0x2df373(0x1db)]||undefined});}export function getProjectConfigPath(){const _0x2a72e2=a55_0x2b99a9;return resolveConfigPath(process[_0x2a72e2(0x1fe)]());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function inspectCliConfigJsonFile(_0xf8a136){const _0x44ab02=a55_0x2b99a9;if(!existsSync(_0xf8a136))return{'status':'missing'};try{const _0x564ebf=readFileSync(_0xf8a136,{'encoding':'utf8'});if(!_0x564ebf?.[_0x44ab02(0x1fd)]())return{'status':_0x44ab02(0x1f7)};const _0x369d79=JSON[_0x44ab02(0x1e6)](_0x564ebf);return{'status':'ok','data':_0x369d79};}catch(_0x56c90c){return{'status':_0x44ab02(0x1d7),'message':_0x56c90c instanceof Error?_0x56c90c[_0x44ab02(0x1e4)]:String(_0x56c90c)};}}export function loadRawConfigLayers(_0x4b30b1){const _0x5078a7=a55_0x2b99a9;let _0x1464bb={},_0x4cfdd3={},_0x38b961,_0x5e1ca8;try{_0x38b961=resolveConfigPath(homedir());if(_0x38b961){const _0x422434=readFileSync(_0x38b961,{'encoding':_0x5078a7(0x1d8)});if(_0x422434)_0x1464bb=JSON['parse'](_0x422434);}}catch{}try{const _0x45b66b=_0x4b30b1||process[_0x5078a7(0x1fe)]();_0x5e1ca8=resolveConfigPath(_0x45b66b);if(_0x5e1ca8){const _0x3d4f8a=readFileSync(_0x5e1ca8,{'encoding':_0x5078a7(0x1d8)});if(_0x3d4f8a)_0x4cfdd3=JSON[_0x5078a7(0x1e6)](_0x3d4f8a);}}catch{}return{'globalPath':_0x38b961,'projectPath':_0x5e1ca8,'globalConfig':_0x1464bb,'projectConfig':_0x4cfdd3};}function mergeRawConfigLayers(_0x25f169){const _0x4d982a=a55_0x2b99a9,{globalConfig:_0x5936c5,projectConfig:_0x5b544c}=_0x25f169;if(_0x5b544c[_0x4d982a(0x219)]===![]){const _0x10f2d6={..._0x5b544c};return delete _0x10f2d6[_0x4d982a(0x219)],_0x10f2d6;}const _0x1c3647={..._0x5936c5,..._0x5b544c};if('defaultApp'in _0x5b544c)_0x1c3647[_0x4d982a(0x1fb)]=_0x5b544c[_0x4d982a(0x1fb)];else _0x5936c5[_0x4d982a(0x1fb)]&&(_0x1c3647['defaultApp']=_0x5936c5[_0x4d982a(0x1fb)]);return _0x1c3647;}export function isInProject(){return!!getProjectConfigPath();}export function readRawConfig(_0x59588c){return mergeRawConfigLayers(loadRawConfigLayers(_0x59588c));}export function readRawConfigWithLayers(_0x130693){const _0x958a95=loadRawConfigLayers(_0x130693);return{'config':mergeRawConfigLayers(_0x958a95),'layers':_0x958a95};}export function resolveDefaultAppSource(_0x297ffa){const _0x58d7aa=a55_0x2b99a9;if('defaultApp'in _0x297ffa[_0x58d7aa(0x1f6)])return _0x58d7aa(0x20e);if(_0x297ffa['projectConfig']['inherit']===![])return null;if(_0x297ffa['globalConfig'][_0x58d7aa(0x1fb)])return _0x58d7aa(0x1d6);return null;}function buildConfig(_0x14b5f3,_0x32b92d){const _0x12d0a3=a55_0x2b99a9,_0x36c631=_0x14b5f3[_0x12d0a3(0x1fb)]||undefined,_0x953074=_0x32b92d[_0x12d0a3(0x1fa)]||env(_0x12d0a3(0x210))||undefined,_0x42408a=_0x953074||_0x36c631||undefined,_0x4d6192=env('ACCESS_KEY')||_0x14b5f3[_0x12d0a3(0x20c)]||undefined,_0x49e07e=_0x32b92d[_0x12d0a3(0x217)]||env('ENV')||_0x14b5f3[_0x12d0a3(0x217)]||DEFAULT_CONFIG_VALUES[_0x12d0a3(0x217)],_0x3f5f21=normalizeEnv(String(_0x49e07e)),_0x59b5c9=isDaily(_0x3f5f21)?'daily':isDev(_0x3f5f21)?_0x12d0a3(0x1eb):'production',_0x74643c=resolveLocalAppAliasCode(_0x14b5f3,_0x42408a),_0x1de28c=resolveCachedAppCode(_0x42408a,_0x59b5c9,_0x4d6192),_0x193116=typeof _0x32b92d[_0x12d0a3(0x1ea)]===_0x12d0a3(0x206)?_0x32b92d['appcode']:undefined,_0x22168c=env('APPCODE'),_0x18f78d=_0x953074?undefined:_0x14b5f3['appcode']||_0x14b5f3[_0x12d0a3(0x1fa)]||undefined,_0x17cecc=_0x193116||_0x22168c||_0x74643c||_0x1de28c||_0x18f78d||undefined,_0x2c4367=_0x193116?'explicit':_0x22168c?'env':_0x74643c?_0x12d0a3(0x1f4):_0x1de28c?_0x12d0a3(0x1ee):_0x18f78d?_0x12d0a3(0x208):undefined,_0x96e066=_0x14b5f3[_0x12d0a3(0x211)]||DEFAULT_CONFIG_VALUES[_0x12d0a3(0x211)],_0x28fb8c=undefined,_0x4bfaa2=_0x32b92d[_0x12d0a3(0x1f1)]||env(_0x12d0a3(0x1dc))||_0x14b5f3[_0x12d0a3(0x1f1)],_0x45668f=normalizeLegacyOutputFormat(_0x4bfaa2),_0x4d3371=env(_0x12d0a3(0x1ec))||_0x14b5f3[_0x12d0a3(0x1fc)],_0x507148=_0x4d3371?Number(_0x4d3371)||undefined:undefined,_0x22cf94=_0x14b5f3[_0x12d0a3(0x20a)]||_0x14b5f3[_0x12d0a3(0x207)],_0x489932=_0x22cf94===_0x12d0a3(0x218)||_0x22cf94===_0x12d0a3(0x200)||_0x22cf94===_0x12d0a3(0x209)?_0x22cf94:DEFAULT_CONFIG_VALUES['riskLevel'],_0x4c1575=env(_0x12d0a3(0x1dd)),_0x374b72=_0x4c1575==='1'||_0x4c1575==='true';return{'appCode':typeof _0x17cecc===_0x12d0a3(0x206)&&_0x17cecc[_0x12d0a3(0x1fd)]()?_0x17cecc[_0x12d0a3(0x1fd)]():undefined,'appCodeSource':_0x2c4367,'env':_0x59b5c9,'locale':_0x96e066,'cookie':_0x28fb8c,'accessKey':_0x4d6192,'format':_0x45668f,'pageSize':_0x507148,'riskLevel':_0x489932,'verbose':_0x374b72,'defaultApp':_0x36c631,'currentApp':typeof _0x42408a===_0x12d0a3(0x206)?_0x42408a:undefined,'raw':_0x14b5f3};}function env(_0x1c318f){return productEnv(_0x1c318f);}async function buildAuth(_0x5b207b){const _0x41687d=a55_0x2b99a9,_0x68ac9b='',_0x7cd789=!!_0x5b207b[_0x41687d(0x20c)];return{'cookie':_0x68ac9b,'isLoggedIn':_0x7cd789,async 'getOrLogin'(){const _0x122702=_0x41687d;if(_0x7cd789)return _0x68ac9b;throw CliErrors[_0x122702(0x1d2)]();}};}
@@ -1 +1 @@
1
- (function(_0x4edcef,_0x2fc47e){const _0x5e3fea=a56_0x28b3,_0xb0a104=_0x4edcef();while(!![]){try{const _0x306fa2=-parseInt(_0x5e3fea(0x202))/0x1*(-parseInt(_0x5e3fea(0x22f))/0x2)+-parseInt(_0x5e3fea(0x231))/0x3+parseInt(_0x5e3fea(0x1ca))/0x4*(parseInt(_0x5e3fea(0x1f9))/0x5)+parseInt(_0x5e3fea(0x1cd))/0x6*(-parseInt(_0x5e3fea(0x23f))/0x7)+parseInt(_0x5e3fea(0x220))/0x8*(-parseInt(_0x5e3fea(0x232))/0x9)+parseInt(_0x5e3fea(0x238))/0xa*(-parseInt(_0x5e3fea(0x1c4))/0xb)+parseInt(_0x5e3fea(0x1e8))/0xc*(parseInt(_0x5e3fea(0x20c))/0xd);if(_0x306fa2===_0x2fc47e)break;else _0xb0a104['push'](_0xb0a104['shift']());}catch(_0x3f9b8e){_0xb0a104['push'](_0xb0a104['shift']());}}}(a56_0x3f25,0x918b1));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(_0x13cdba){_activeAK=_0x13cdba||undefined;}export function clearActiveAK(){_activeAK=undefined;}async function apiRequest(_0x2b0ded,_0xe242ed={}){const _0x5512ee=a56_0x28b3,{method:method=_0x5512ee(0x1ed),body:_0x13e203,headers:headers={},timeout:timeout=0x7530}=_0xe242ed,_0x1f9b92=_activeAK,_0xe9a902=getRuntimeDomain();if(!_0x1f9b92)throw CliErrors[_0x5512ee(0x1fe)](_0x5512ee(0x1d8)+PRODUCT_CONFIG[_0x5512ee(0x223)]+'.');const _0x4c71b2=''+_0xe9a902+_0x2b0ded,_0x89ec7d={'X-User-AK':_0x1f9b92},_0x310f44=new AbortController(),_0x545741=setTimeout(()=>_0x310f44[_0x5512ee(0x1e3)](),timeout);try{const _0x46f7d4=await fetch(_0x4c71b2,{'method':method,'headers':{'Content-Type':_0x5512ee(0x1e2),'X-Invoke-Source':PRODUCT_CONFIG[_0x5512ee(0x214)],..._0x89ec7d,...headers},'body':_0x13e203?JSON[_0x5512ee(0x213)](_0x13e203):undefined,'signal':_0x310f44['signal']});let _0x54f6ea;try{_0x54f6ea=await _0x46f7d4['json']();}catch{throw CliErrors[_0x5512ee(0x1c8)]('API\x20returned\x20non-JSON\x20response\x20(HTTP\x20'+_0x46f7d4['status']+')',_0x46f7d4[_0x5512ee(0x1d5)]>=0x190?_0x5512ee(0x226):undefined);}if(!_0x46f7d4['ok']||_0x54f6ea['success']===![])throw CliErrors[_0x5512ee(0x1c8)](_0x54f6ea['errorMsg']||_0x54f6ea[_0x5512ee(0x1e1)]||'API\x20error:\x20'+_0x46f7d4[_0x5512ee(0x1d5)],_0x54f6ea[_0x5512ee(0x1de)]?_0x5512ee(0x1dc)+_0x54f6ea[_0x5512ee(0x1de)]:undefined);return _0x54f6ea;}catch(_0x39ea61){if(_0x39ea61 instanceof Error&&_0x39ea61[_0x5512ee(0x22d)]==='AbortError')throw CliErrors[_0x5512ee(0x1c8)](_0x5512ee(0x212)+_0x4c71b2);throw _0x39ea61;}finally{clearTimeout(_0x545741);}}async function apiBinaryRequest(_0x184a56,_0x56232d={}){const _0x203b95=a56_0x28b3,{method:method=_0x203b95(0x1ed),headers:headers={},timeout:timeout=0x7530}=_0x56232d,_0x5e4e40=_activeAK,_0x234f68=getRuntimeDomain();if(!_0x5e4e40)throw CliErrors[_0x203b95(0x1fe)](_0x203b95(0x1d8)+PRODUCT_CONFIG['newConfigFileName']+'.');const _0x4ea2bc=''+_0x234f68+_0x184a56,_0x3f849b=new AbortController(),_0x54af70=setTimeout(()=>_0x3f849b[_0x203b95(0x1e3)](),timeout);try{const _0x318f41=await fetch(_0x4ea2bc,{'method':method,'headers':{'X-Invoke-Source':PRODUCT_CONFIG['invokeSource'],'X-User-AK':_0x5e4e40,...headers},'signal':_0x3f849b[_0x203b95(0x22a)]});if(!_0x318f41['ok']){let _0x4a2dce;try{const _0x449d93=await _0x318f41[_0x203b95(0x235)]();_0x4a2dce=_0x449d93[_0x203b95(0x1d4)]||_0x449d93[_0x203b95(0x1e1)]||_0x449d93[_0x203b95(0x1de)];}catch{_0x4a2dce=await _0x318f41[_0x203b95(0x1f7)]()['catch'](()=>undefined);}throw CliErrors[_0x203b95(0x1c8)](_0x4a2dce||_0x203b95(0x20f)+_0x318f41[_0x203b95(0x1d5)],_0x203b95(0x23a)+_0x4ea2bc);}return Buffer['from'](await _0x318f41[_0x203b95(0x243)]());}catch(_0x5826ce){if(_0x5826ce instanceof Error&&_0x5826ce['name']==='AbortError')throw CliErrors[_0x203b95(0x1c8)](_0x203b95(0x212)+_0x4ea2bc);throw _0x5826ce;}finally{clearTimeout(_0x54af70);}}async function toolboxRequest(_0x1cb5ae,_0x5ad9ca,_0x32fd05={}){const _0x4c7c4c=a56_0x28b3,{method:method=_0x4c7c4c(0x1ed),headers:headers={},timeout:timeout=0x7530}=_0x32fd05,_0x3c4b04=_activeAK;if(!_0x3c4b04)throw CliErrors[_0x4c7c4c(0x1fe)](_0x4c7c4c(0x1d8)+PRODUCT_CONFIG[_0x4c7c4c(0x223)]+'.');const _0x4109eb=getApiDomain()[_0x4c7c4c(0x1f0)](/\/$/,''),_0x26f80c=new URL(_0x1cb5ae,_0x4109eb+_0x4c7c4c(0x1f4));if(_0x5ad9ca)for(const [_0x57e009,_0x448ac6]of Object[_0x4c7c4c(0x1ee)](_0x5ad9ca)){_0x448ac6!==undefined&&_0x448ac6!==null&&_0x26f80c['searchParams']['set'](_0x57e009,String(_0x448ac6));}const _0x469f71=new AbortController(),_0xc24ebf=setTimeout(()=>_0x469f71['abort'](),timeout);try{const _0x524944=await fetch(_0x26f80c,{'method':method,'headers':{'Content-Type':_0x4c7c4c(0x1e2),'X-Invoke-Source':PRODUCT_CONFIG[_0x4c7c4c(0x214)],'X-User-AK':_0x3c4b04,...headers},'signal':_0x469f71[_0x4c7c4c(0x22a)]});let _0x53c063;try{_0x53c063=await _0x524944['json']();}catch{throw CliErrors[_0x4c7c4c(0x1c8)](_0x4c7c4c(0x1d7)+_0x524944[_0x4c7c4c(0x1d5)]+')',_0x524944['status']>=0x190?_0x4c7c4c(0x226):undefined);}if(!_0x524944['ok']){const _0x172ec2=_0x53c063&&typeof _0x53c063==='object'?_0x53c063:{};throw CliErrors[_0x4c7c4c(0x1c8)](_0x172ec2[_0x4c7c4c(0x1d4)]||_0x172ec2[_0x4c7c4c(0x1e1)]||_0x4c7c4c(0x237)+_0x524944[_0x4c7c4c(0x1d5)],_0x172ec2[_0x4c7c4c(0x1de)]?_0x4c7c4c(0x205)+_0x172ec2[_0x4c7c4c(0x1de)]:undefined);}if(_0x53c063&&typeof _0x53c063===_0x4c7c4c(0x227)&&_0x4c7c4c(0x1ea)in _0x53c063&&typeof _0x53c063['success']===_0x4c7c4c(0x207)){const _0x2fc595=_0x53c063;if(!_0x2fc595[_0x4c7c4c(0x1ea)])throw CliErrors['apiError'](_0x2fc595[_0x4c7c4c(0x1d4)]||_0x2fc595['message']||'Toolbox\x20API\x20error',_0x2fc595[_0x4c7c4c(0x1de)]?'Toolbox\x20error\x20code:\x20'+_0x2fc595[_0x4c7c4c(0x1de)]:undefined);return _0x2fc595['data'];}return _0x53c063;}catch(_0x29fe7c){if(_0x29fe7c instanceof Error&&_0x29fe7c[_0x4c7c4c(0x22d)]===_0x4c7c4c(0x20e))throw CliErrors[_0x4c7c4c(0x1c8)](_0x4c7c4c(0x212)+_0x26f80c[_0x4c7c4c(0x1c6)]());throw _0x29fe7c;}finally{clearTimeout(_0xc24ebf);}}async function skillHubJsonRequest(_0x2117f9,_0x3601c6={}){const _0x28b401=a56_0x28b3,{method:method=_0x28b401(0x1ed),query:_0x357b3c,body:_0x1f0594,headers:headers={},timeout:timeout=0x7530}=_0x3601c6,_0x43d8c7=_activeAK;if(!_0x43d8c7)throw CliErrors['authRequired'](_0x28b401(0x1d8)+PRODUCT_CONFIG[_0x28b401(0x223)]+'.');const _0x20a6cf=getSkillHubDomain()[_0x28b401(0x1f0)](/\/$/,''),_0x3a390e=new URL(_0x2117f9,_0x20a6cf+'/');if(_0x357b3c)for(const [_0x11ecb9,_0xa0b5c4]of Object[_0x28b401(0x1ee)](_0x357b3c)){_0xa0b5c4!==undefined&&_0xa0b5c4!==null&&_0x3a390e[_0x28b401(0x1fb)][_0x28b401(0x21e)](_0x11ecb9,String(_0xa0b5c4));}const _0xb36439=new AbortController(),_0x9708eb=setTimeout(()=>_0xb36439[_0x28b401(0x1e3)](),timeout);try{const _0xfdde91=await fetch(_0x3a390e[_0x28b401(0x1c6)](),{'method':method,'headers':{'Accept':_0x28b401(0x1e2),'X-Invoke-Source':PRODUCT_CONFIG[_0x28b401(0x214)],'X-User-AK':_0x43d8c7,...headers},'body':_0x1f0594,'signal':_0xb36439[_0x28b401(0x22a)]});let _0x3d58d;try{_0x3d58d=await _0xfdde91[_0x28b401(0x235)]();}catch{throw CliErrors[_0x28b401(0x1c8)](_0x28b401(0x1c2)+_0xfdde91[_0x28b401(0x1d5)]+')',_0xfdde91[_0x28b401(0x1d5)]>=0x190?'Check\x20your\x20credentials\x20and\x20try\x20again.':undefined);}const _0x557fe9=!_0xfdde91['ok']||_0x3d58d?.[_0x28b401(0x1ea)]===![]||typeof _0x3d58d?.[_0x28b401(0x225)]===_0x28b401(0x201)&&_0x3d58d['code']>=0x190;if(_0x557fe9)throw CliErrors[_0x28b401(0x1c8)](_0x3d58d?.[_0x28b401(0x1d4)]||_0x3d58d?.[_0x28b401(0x1e1)]||_0x3d58d?.[_0x28b401(0x206)]||_0x28b401(0x1be)+_0xfdde91['status'],_0x3d58d?.[_0x28b401(0x1de)]?_0x28b401(0x210)+_0x3d58d[_0x28b401(0x1de)]:undefined);return _0x3d58d?.[_0x28b401(0x1fc)]??_0x3d58d;}catch(_0xe20cbe){if(_0xe20cbe instanceof Error&&_0xe20cbe[_0x28b401(0x22d)]===_0x28b401(0x20e))throw CliErrors[_0x28b401(0x1c8)](_0x28b401(0x212)+_0x3a390e['toString']());throw _0xe20cbe;}finally{clearTimeout(_0x9708eb);}}async function skillHubBinaryRequest(_0x2760de,_0xe080a0={}){const _0x5497ed=a56_0x28b3,{query:_0x3d9c83,headers:headers={},timeout:timeout=0x7530}=_0xe080a0,_0x5e4b77=_activeAK;if(!_0x5e4b77)throw CliErrors['authRequired'](_0x5497ed(0x1d8)+PRODUCT_CONFIG[_0x5497ed(0x223)]+'.');const _0xf08494=getSkillHubDomain()['replace'](/\/$/,''),_0xbaa262=new URL(_0x2760de,_0xf08494+'/');if(_0x3d9c83)for(const [_0x487de9,_0x38c2da]of Object['entries'](_0x3d9c83)){_0x38c2da!==undefined&&_0x38c2da!==null&&_0xbaa262[_0x5497ed(0x1fb)][_0x5497ed(0x21e)](_0x487de9,String(_0x38c2da));}const _0x3315f2=new AbortController(),_0x36c247=setTimeout(()=>_0x3315f2[_0x5497ed(0x1e3)](),timeout);try{const _0x127f05=await fetch(_0xbaa262[_0x5497ed(0x1c6)](),{'method':_0x5497ed(0x1ed),'headers':{'Accept':_0x5497ed(0x1da),'X-Invoke-Source':PRODUCT_CONFIG[_0x5497ed(0x214)],'X-User-AK':_0x5e4b77,...headers},'signal':_0x3315f2[_0x5497ed(0x22a)]});if(!_0x127f05['ok']){let _0x555dfd;try{const _0x54cd1d=await _0x127f05[_0x5497ed(0x235)]();_0x555dfd=_0x54cd1d[_0x5497ed(0x1d4)]||_0x54cd1d[_0x5497ed(0x1e1)]||_0x54cd1d[_0x5497ed(0x206)]||_0x54cd1d[_0x5497ed(0x1de)];}catch{_0x555dfd=await _0x127f05[_0x5497ed(0x1f7)]()['catch'](()=>undefined);}throw CliErrors['apiError'](_0x555dfd||_0x5497ed(0x1be)+_0x127f05[_0x5497ed(0x1d5)],_0x5497ed(0x23a)+_0xbaa262['toString']());}return Buffer['from'](await _0x127f05[_0x5497ed(0x243)]());}catch(_0x21475b){if(_0x21475b instanceof Error&&_0x21475b[_0x5497ed(0x22d)]==='AbortError')throw CliErrors[_0x5497ed(0x1c8)](_0x5497ed(0x212)+_0xbaa262[_0x5497ed(0x1c6)]());throw _0x21475b;}finally{clearTimeout(_0x36c247);}}export async function getBffScriptInfo(_0xbf6b42){const _0x13c71a=a56_0x28b3,_0x324fa2=await apiRequest(_0x13c71a(0x1f6)+_0xbf6b42);if(!_0x324fa2[_0x13c71a(0x1fc)])throw CliErrors[_0x13c71a(0x203)](_0x13c71a(0x209)+_0xbf6b42);return _0x324fa2[_0x13c71a(0x1fc)];}export async function getSqlQueryInfo(_0x1106ac,_0x2168b8){const _0x15b015=a56_0x28b3,_0x371b27=await apiRequest(_0x15b015(0x1ce),{'method':_0x15b015(0x1eb),'body':{'appCode':_0x1106ac,'currentPage':0x1,'pageSize':0x1,'sqlCode':_0x2168b8}}),_0x1f8ac4=_0x371b27[_0x15b015(0x1fc)],_0x2c1d8d=_0x1f8ac4&&typeof _0x1f8ac4===_0x15b015(0x227)&&_0x15b015(0x21b)in _0x1f8ac4?_0x1f8ac4[_0x15b015(0x21b)]?.[0x0]:_0x1f8ac4&&typeof _0x1f8ac4===_0x15b015(0x227)&&_0x15b015(0x22e)in _0x1f8ac4?_0x1f8ac4:undefined;if(!_0x2c1d8d)throw CliErrors[_0x15b015(0x203)](_0x15b015(0x1d9)+_0x2168b8);return _0x2c1d8d;}function isRemoteAppItem(_0x140879){const _0x201294=a56_0x28b3;return!!_0x140879&&typeof _0x140879===_0x201294(0x227)&&typeof _0x140879[_0x201294(0x1f1)]===_0x201294(0x1d6)&&typeof _0x140879[_0x201294(0x1fd)]===_0x201294(0x1d6);}function a56_0x3f25(){const _0xb0fead=['SQL\x20query\x20not\x20found:\x20','application/octet-stream','markdown','API\x20error\x20code:\x20','favorite','errorCode','Invalid\x20app\x20list\x20response:\x20expected\x20object\x20or\x20array.','ownerPreviewVersion','message','application/json','abort','from','Missing\x20Skill\x20package\x20payload.','/client/knowledge-base/personal/list?appCode=','description','3641076lfGkjH','skillName','success','POST','NAMESPACE_ONLY','GET','entries','/client/user/loginUserInfo','replace','appCode','public','undefined','/api/node-toolbox/','values','/client/bff/query/','text','version','175SmwYzC','test','searchParams','data','appName','authRequired','visibility','/api/cli/v1/skills/','number','1HgrIaO','validation','slug','Toolbox\x20error\x20code:\x20','msg','boolean','displayName','BFF\x20script\x20not\x20found:\x20id=','?appCode=','items','78HzuUmw','Invalid\x20app\x20list\x20response:\x20missing\x20data.tableData.','AbortError','API\x20error:\x20','SkillHub\x20error\x20code:\x20','topK','Request\x20timeout:\x20','stringify','invokeSource','application/zip','PUBLIC','filter','personal','files','skillCode','tableData','.zip','Invalid\x20login\x20user\x20info\x20response:\x20expected\x20object.','set','trim','5144504NcGajb','/client/artifact/list?','/client/dataset/list','newConfigFileName','/skills','code','Check\x20your\x20credentials\x20and\x20try\x20again.','object','packageBase64','/client/app/my-apps','signal','source','/client/artifact/create','name','sqlCode','1985762RXFGIR','scope','1535805BbcDEn','9zvgjwu','artifactType','/client/runtime-bff/personal/','json','Artifact\x20not\x20found:\x20id=','Toolbox\x20API\x20error:\x20','20PDnTqw','Personal\x20BFF\x20not\x20found:\x20id=','Download\x20failed:\x20','builtin','/client/knowledge-base/search','/update','content','1701PAWeCD','/client/knowledge-base/personal/create','publishedVersion','user','arrayBuffer','/client/knowledge-base/personal/','company','SkillHub\x20API\x20error:\x20','/client/artifact/','api-doc-generator','/download','SkillHub\x20returned\x20non-JSON\x20response\x20(HTTP\x20','summary','2238434UNwiIv','/client/runtime-bff/personal/list?appCode=','toString','isArray','apiError','/versions/','33724tFFalV','namespace','PRIVATE','23466MeFYoz','/client/sql/query','query','map','Knowledge-base\x20entry\x20not\x20found:\x20id=','effective','/execute?appCode=','errorMsg','status','string','Toolbox\x20returned\x20non-JSON\x20response\x20(HTTP\x20','Configure\x20accessKey\x20in\x20'];a56_0x3f25=function(){return _0xb0fead;};return a56_0x3f25();}function extractRemoteAppItems(_0x634a59){const _0x23b106=a56_0x28b3;if(Array[_0x23b106(0x1c7)](_0x634a59))return _0x634a59[_0x23b106(0x217)](isRemoteAppItem);if(!_0x634a59||typeof _0x634a59!==_0x23b106(0x227))throw CliErrors[_0x23b106(0x1c8)](_0x23b106(0x1df));const _0x1734a6=_0x634a59;if(Array['isArray'](_0x1734a6[_0x23b106(0x21b)]))return _0x1734a6['tableData'][_0x23b106(0x217)](isRemoteAppItem);if(_0x1734a6[_0x23b106(0x1fc)]&&typeof _0x1734a6[_0x23b106(0x1fc)]==='object'){const _0x2c743e=_0x1734a6[_0x23b106(0x1fc)];if(Array[_0x23b106(0x1c7)](_0x2c743e[_0x23b106(0x21b)]))return _0x2c743e[_0x23b106(0x21b)][_0x23b106(0x217)](isRemoteAppItem);}throw CliErrors['apiError'](_0x23b106(0x20d));}export async function getMyApps(){const _0xb15e87=a56_0x28b3,_0x2d25ed=await apiRequest(_0xb15e87(0x229));return extractRemoteAppItems(_0x2d25ed[_0xb15e87(0x1fc)]);}export async function getLoginUserInfo(){const _0x2784c0=a56_0x28b3,_0x1026a7=await apiRequest(_0x2784c0(0x1ef));if(!_0x1026a7[_0x2784c0(0x1fc)]||typeof _0x1026a7[_0x2784c0(0x1fc)]!==_0x2784c0(0x227)||Array['isArray'](_0x1026a7['data']))throw CliErrors[_0x2784c0(0x1c8)](_0x2784c0(0x21d));return _0x1026a7['data'];}export async function listDatasets(_0x5b0dad,_0x314659){const _0x5a8086=a56_0x28b3,_0x198637=await apiRequest(_0x5a8086(0x222),{'method':_0x5a8086(0x1eb),'body':{'appCode':_0x5b0dad,..._0x314659?.[_0x5a8086(0x225)]&&{'code':_0x314659[_0x5a8086(0x225)]},..._0x314659?.[_0x5a8086(0x22d)]&&{'name':_0x314659[_0x5a8086(0x22d)]}}});return extractList(_0x198637[_0x5a8086(0x1fc)]);}export async function getDatasetDetail(_0x2d9713){const _0x4e2bdd=a56_0x28b3,_0x50b70d=/^\d+$/[_0x4e2bdd(0x1fa)](_0x2d9713)?'id':_0x4e2bdd(0x225),_0x4151ed=await apiRequest('/client/dataset/query?'+_0x50b70d+'='+_0x2d9713);return _0x4151ed[_0x4e2bdd(0x1fc)];}export async function getDatasetSdkUsageDoc(_0x82529e,_0x53e84){const _0xfe5c9a=a56_0x28b3,_0x3f175f=await toolboxRequest(_0xfe5c9a(0x1c0),{'datasetCode':_0x82529e,'appCode':_0x53e84});return typeof _0x3f175f?.[_0xfe5c9a(0x1db)]===_0xfe5c9a(0x1d6)?_0x3f175f[_0xfe5c9a(0x1db)]:'';}export async function listRuntimeArtifacts(_0xdf58b6,_0x311d82){const _0x3b77df=a56_0x28b3,_0x2eafbe=new URLSearchParams({'appCode':_0xdf58b6});if(_0x311d82?.['artifactType'])_0x2eafbe[_0x3b77df(0x21e)](_0x3b77df(0x233),_0x311d82['artifactType']);if(_0x311d82?.[_0x3b77df(0x22b)])_0x2eafbe['set'](_0x3b77df(0x22b),_0x311d82[_0x3b77df(0x22b)]);if(_0x311d82?.[_0x3b77df(0x1dd)]!==undefined)_0x2eafbe['set'](_0x3b77df(0x1dd),String(_0x311d82['favorite']));const _0x20af86=await apiRequest(_0x3b77df(0x221)+_0x2eafbe['toString']());return Array[_0x3b77df(0x1c7)](_0x20af86['data'])?_0x20af86[_0x3b77df(0x1fc)]:[];}export async function getRuntimeArtifact(_0x3cc4bf,_0x548068){const _0x4eb46c=a56_0x28b3,_0x2f9a39=await apiRequest(_0x4eb46c(0x1bf)+_0x3cc4bf+_0x4eb46c(0x20a)+encodeURIComponent(_0x548068));if(!_0x2f9a39[_0x4eb46c(0x1fc)])throw CliErrors[_0x4eb46c(0x203)](_0x4eb46c(0x236)+_0x3cc4bf);return _0x2f9a39['data'];}export async function createRuntimeArtifact(_0x50bd79,_0x5be092){const _0xa750d=a56_0x28b3,_0x5e94ca=await apiRequest(_0xa750d(0x22c),{'method':_0xa750d(0x1eb),'body':{'appCode':_0x50bd79,..._0x5be092}});return _0x5e94ca[_0xa750d(0x1fc)];}export async function updateRuntimeArtifact(_0x590e67,_0x104eef,_0x46dfa0){const _0x1a38be=a56_0x28b3,_0x17431a=await apiRequest(_0x1a38be(0x1bf)+_0x590e67+'/update',{'method':_0x1a38be(0x1eb),'body':{'appCode':_0x104eef,..._0x46dfa0}});return _0x17431a['data'];}export async function listPersonalBffs(_0x1936ba){const _0x2351bc=a56_0x28b3,_0x216a79=await apiRequest(_0x2351bc(0x1c5)+encodeURIComponent(_0x1936ba));return Array[_0x2351bc(0x1c7)](_0x216a79[_0x2351bc(0x1fc)])?_0x216a79[_0x2351bc(0x1fc)]:[];}export async function getPersonalBff(_0xce1a7a,_0x5d6160){const _0x59a493=a56_0x28b3,_0x2ef245=await apiRequest(_0x59a493(0x234)+_0xce1a7a+_0x59a493(0x20a)+encodeURIComponent(_0x5d6160));if(!_0x2ef245[_0x59a493(0x1fc)])throw CliErrors['validation'](_0x59a493(0x239)+_0xce1a7a);return _0x2ef245['data'];}export async function createPersonalBff(_0x254ce1,_0x458a28){const _0x73d482=a56_0x28b3,_0xb874f5=await apiRequest('/client/runtime-bff/personal/create',{'method':_0x73d482(0x1eb),'body':{'appCode':_0x254ce1,..._0x458a28}});return _0xb874f5[_0x73d482(0x1fc)];}export async function updatePersonalBff(_0x1e2416,_0x218a7d,_0x29ea78){const _0x3f5f65=a56_0x28b3,_0x29c613=await apiRequest(_0x3f5f65(0x234)+_0x1e2416+_0x3f5f65(0x23d),{'method':_0x3f5f65(0x1eb),'body':{'appCode':_0x218a7d,..._0x29ea78}});return _0x29c613[_0x3f5f65(0x1fc)];}export async function executePersonalBff(_0x175d73,_0x157777,_0x324f46){const _0x178d0e=a56_0x28b3,_0x7e20cf=await apiRequest(_0x178d0e(0x234)+_0x175d73+_0x178d0e(0x1d3)+encodeURIComponent(_0x157777),{'method':'POST','body':_0x324f46});return _0x7e20cf[_0x178d0e(0x1fc)];}export async function listPersonalKnowledgeBaseItems(_0x190cbb){const _0x28e1c9=a56_0x28b3,_0x5f1086=await apiRequest(_0x28e1c9(0x1e6)+encodeURIComponent(_0x190cbb));return Array['isArray'](_0x5f1086[_0x28e1c9(0x1fc)])?_0x5f1086[_0x28e1c9(0x1fc)]:[];}export async function getPersonalKnowledgeBaseItem(_0x4150bd,_0x589147){const _0x3fda68=a56_0x28b3,_0x3abd01=await apiRequest('/client/knowledge-base/personal/'+_0x4150bd+_0x3fda68(0x20a)+encodeURIComponent(_0x589147));if(!_0x3abd01[_0x3fda68(0x1fc)])throw CliErrors[_0x3fda68(0x203)](_0x3fda68(0x1d1)+_0x4150bd);return _0x3abd01['data'];}export async function createPersonalKnowledgeBaseItem(_0x2081d0,_0x21a85c){const _0x49fc42=a56_0x28b3,_0x16d7dd=await apiRequest(_0x49fc42(0x240),{'method':_0x49fc42(0x1eb),'body':{'appCode':_0x2081d0,..._0x21a85c}});return _0x16d7dd[_0x49fc42(0x1fc)];}export async function updatePersonalKnowledgeBaseItem(_0x27deb8,_0x2a9ceb,_0x130837){const _0xc57717=a56_0x28b3,_0x3a1e92=await apiRequest(_0xc57717(0x1bc)+_0x27deb8+_0xc57717(0x23d),{'method':'POST','body':{'appCode':_0x2a9ceb,..._0x130837}});return _0x3a1e92[_0xc57717(0x1fc)];}export async function searchKnowledgeBase(_0x575662,_0xc137f0){const _0x218fa8=a56_0x28b3,_0x4754a1=await apiRequest(_0x218fa8(0x23c),{'method':'POST','body':{'appCode':_0x575662,'query':_0xc137f0[_0x218fa8(0x1cf)],..._0xc137f0['topK']!==undefined?{'topK':_0xc137f0[_0x218fa8(0x211)]}:{}}});return Array[_0x218fa8(0x1c7)](_0x4754a1['data'])?_0x4754a1[_0x218fa8(0x1fc)]:[];}export async function listRuntimeSkills(_0xbaf7ef){const _0x1e0e1d=a56_0x28b3,_0x55e446=await skillHubJsonRequest('/api/runtime/v1/namespaces/'+encodeURIComponent(_0xbaf7ef[_0x1e0e1d(0x1f1)])+_0x1e0e1d(0x224),{'query':{'page':0x0,'size':0xc8}});return normalizeSkillHubRuntimeListResponse(_0xbaf7ef[_0x1e0e1d(0x1f1)],_0x55e446,_0xbaf7ef['scope']??_0x1e0e1d(0x242),_0xbaf7ef[_0x1e0e1d(0x225)]);}export async function listPersonalRuntimeSkills(_0x10abb7){const _0x39b120=a56_0x28b3;return(await listRuntimeSkills({'appCode':_0x10abb7,'scope':_0x39b120(0x218)}))[_0x39b120(0x218)];}export async function listCompanyRuntimeSkills(_0x343511){const _0x3796ab=a56_0x28b3;return(await listRuntimeSkills({'appCode':_0x343511,'scope':_0x3796ab(0x1bd)}))[_0x3796ab(0x1bd)];}export async function listVisibleRuntimeSkills(_0x81552f){const _0x2a826b=a56_0x28b3;return(await listRuntimeSkills({'appCode':_0x81552f,'scope':_0x2a826b(0x242)}))[_0x2a826b(0x1d2)];}export async function createPersonalRuntimeSkill(_0x545e3f,_0x36c088){return publishRuntimeSkill(_0x545e3f,_0x36c088);}export async function updatePersonalRuntimeSkill(_0x32ce6b,_0x40a228,_0x23c75a){const _0x58c546=a56_0x28b3;return publishRuntimeSkill(_0x40a228,{..._0x23c75a,'skillCode':_0x23c75a[_0x58c546(0x21a)]??_0x32ce6b});}export async function downloadRuntimeSkillPackage(_0x512410,_0x1e830d,_0x362ca7,_0x2563c9){const _0x4a5f6b=a56_0x28b3;void _0x512410;const _0x51d56c=_0x2563c9?_0x4a5f6b(0x200)+encodeURIComponent(_0x362ca7)+'/'+encodeURIComponent(_0x1e830d)+_0x4a5f6b(0x1c9)+encodeURIComponent(_0x2563c9)+_0x4a5f6b(0x1c1):'/api/cli/v1/skills/'+encodeURIComponent(_0x362ca7)+'/'+encodeURIComponent(_0x1e830d)+_0x4a5f6b(0x1c1);return skillHubBinaryRequest(_0x51d56c);}async function publishRuntimeSkill(_0x4c476e,_0x43949a){const _0x4e48d6=a56_0x28b3,_0x380fc1=new FormData();_0x380fc1[_0x4e48d6(0x21e)]('file',runtimeSkillPackageFile(_0x43949a)),_0x380fc1[_0x4e48d6(0x21e)](_0x4e48d6(0x1ff),_0x4e48d6(0x1cc));const _0x16b4bf=await skillHubJsonRequest(_0x4e48d6(0x200)+encodeURIComponent(_0x4c476e)+'/publish',{'method':_0x4e48d6(0x1eb),'body':_0x380fc1});return{'appCode':_0x16b4bf[_0x4e48d6(0x1cb)]??_0x4c476e,'skillCode':_0x16b4bf[_0x4e48d6(0x204)]??_0x43949a[_0x4e48d6(0x21a)]??'','skillName':_0x43949a[_0x4e48d6(0x1e9)]??_0x16b4bf[_0x4e48d6(0x204)]??_0x43949a[_0x4e48d6(0x21a)],'description':_0x43949a[_0x4e48d6(0x1e7)],'scope':skillHubVisibilityToScope(_0x16b4bf[_0x4e48d6(0x1ff)])??_0x4e48d6(0x218),'version':_0x16b4bf[_0x4e48d6(0x1f8)]??_0x43949a[_0x4e48d6(0x1f8)],'tags':_0x43949a['tags'],'content':_0x43949a[_0x4e48d6(0x23e)],'files':_0x43949a[_0x4e48d6(0x219)]};}function a56_0x28b3(_0x59e6b7,_0x2ec0fd){_0x59e6b7=_0x59e6b7-0x1bc;const _0x3f25e4=a56_0x3f25();let _0x28b35f=_0x3f25e4[_0x59e6b7];return _0x28b35f;}function runtimeSkillPackageFile(_0x17f0b7){const _0x22b3dc=a56_0x28b3;if(!_0x17f0b7[_0x22b3dc(0x228)])throw CliErrors[_0x22b3dc(0x203)](_0x22b3dc(0x1e5));const _0x48ead3=Buffer[_0x22b3dc(0x1e4)](_0x17f0b7['packageBase64'],'base64'),_0x44018=new Blob([_0x48ead3],{'type':_0x22b3dc(0x215)}),_0x42d970=(_0x17f0b7['skillCode']||'skill')+_0x22b3dc(0x21c);if(typeof File!==_0x22b3dc(0x1f3))return new File([_0x44018],_0x42d970,{'type':'application/zip'});return _0x44018;}function normalizeSkillHubRuntimeListResponse(_0x1e8fe7,_0x114e45,_0x22acad,_0x2f4ff2){const _0x2846be=a56_0x28b3,_0x359735=Array['isArray'](_0x114e45)?_0x114e45:Array[_0x2846be(0x1c7)](_0x114e45?.[_0x2846be(0x20b)])?_0x114e45[_0x2846be(0x20b)]:[],_0x4dabc3=_0x2f4ff2?.[_0x2846be(0x21f)](),_0x1a6352=_0x359735[_0x2846be(0x217)](_0x3eb3b5=>!_0x4dabc3||_0x3eb3b5[_0x2846be(0x204)]===_0x4dabc3)[_0x2846be(0x1d0)](skillHubRuntimeItemToRuntimeSkill)[_0x2846be(0x217)](_0x37dd55=>Boolean(_0x37dd55)),_0x43bc87=_0x1a6352[_0x2846be(0x217)](_0x3bedee=>_0x3bedee['scope']===_0x2846be(0x218)),_0x238cef=_0x1a6352[_0x2846be(0x217)](_0x108510=>_0x108510['scope']===_0x2846be(0x1bd)),_0x3cb7b3=_0x1a6352[_0x2846be(0x217)](_0x3d570b=>_0x3d570b[_0x2846be(0x230)]==='public');return{'appCode':_0x1e8fe7,'personal':_0x22acad===_0x2846be(0x1bd)||_0x22acad==='public'?[]:_0x43bc87,'company':_0x22acad===_0x2846be(0x218)||_0x22acad===_0x2846be(0x1f2)?[]:_0x238cef,'public':_0x22acad===_0x2846be(0x218)||_0x22acad==='company'?[]:_0x3cb7b3,'effective':buildEffectiveRuntimeSkills(_0x43bc87,_0x238cef,_0x3cb7b3,_0x22acad)};}function skillHubRuntimeItemToRuntimeSkill(_0xb78fd4){const _0x573bcf=a56_0x28b3,_0x9367ec=_0xb78fd4['slug']?.[_0x573bcf(0x21f)](),_0x543a0e=skillHubVisibilityToScope(_0xb78fd4[_0x573bcf(0x1ff)]);if(!_0x9367ec||!_0x543a0e)return undefined;return{'id':_0xb78fd4['id'],'appCode':_0xb78fd4['namespace'],'skillCode':_0x9367ec,'skillName':_0xb78fd4[_0x573bcf(0x208)]??_0x9367ec,'description':_0xb78fd4[_0x573bcf(0x1c3)],'scope':_0x543a0e,'version':skillHubRuntimeItemVersion(_0xb78fd4),'status':_0xb78fd4[_0x573bcf(0x1d5)]};}function skillHubVisibilityToScope(_0x26ed0f){const _0x11185d=a56_0x28b3;if(_0x26ed0f===_0x11185d(0x1cc))return _0x11185d(0x218);if(_0x26ed0f===_0x11185d(0x1ec))return _0x11185d(0x1bd);if(_0x26ed0f===_0x11185d(0x216))return _0x11185d(0x1f2);return undefined;}function skillHubRuntimeItemVersion(_0x11ff50){const _0x962eb9=a56_0x28b3;return _0x11ff50[_0x962eb9(0x241)]?.[_0x962eb9(0x1f8)]??_0x11ff50['headlineVersion']?.['version']??_0x11ff50[_0x962eb9(0x1e0)]?.['version'];}function buildEffectiveRuntimeSkills(_0x4e9e46,_0x52df63,_0x55b472,_0x241654){const _0x30e271=a56_0x28b3;if(_0x241654===_0x30e271(0x218))return _0x4e9e46;if(_0x241654===_0x30e271(0x1bd))return _0x52df63;if(_0x241654===_0x30e271(0x1f2))return _0x55b472;const _0x524814=new Map();for(const _0x41f400 of _0x55b472){_0x524814[_0x30e271(0x21e)](_0x41f400[_0x30e271(0x21a)],_0x41f400);}for(const _0x596f8b of _0x52df63){_0x524814[_0x30e271(0x21e)](_0x596f8b['skillCode'],_0x596f8b);}for(const _0x519b70 of _0x4e9e46){_0x524814['set'](_0x519b70[_0x30e271(0x21a)],_0x519b70);}return Array['from'](_0x524814[_0x30e271(0x1f5)]());}function normalizeRuntimeSkillListResponse(_0x5c4fae,_0x2646a){const _0x3f6f44=a56_0x28b3;if(Array[_0x3f6f44(0x1c7)](_0x2646a)){const _0x5ac4de=_0x2646a[_0x3f6f44(0x217)](_0x31ccc7=>_0x31ccc7['scope']===_0x3f6f44(0x218)),_0x4140b5=_0x2646a[_0x3f6f44(0x217)](_0x5989d3=>_0x5989d3[_0x3f6f44(0x230)]==='company'),_0x25a836=_0x2646a['filter'](_0x3fb97b=>_0x3fb97b[_0x3f6f44(0x230)]==='public');return{'appCode':_0x5c4fae,'personal':_0x5ac4de,'company':_0x4140b5,'public':_0x25a836,'effective':_0x2646a[_0x3f6f44(0x217)](_0x5d40ef=>_0x5d40ef[_0x3f6f44(0x230)]!==_0x3f6f44(0x23b))};}return{'appCode':_0x2646a?.[_0x3f6f44(0x1f1)]??_0x5c4fae,'personal':Array[_0x3f6f44(0x1c7)](_0x2646a?.[_0x3f6f44(0x218)])?_0x2646a[_0x3f6f44(0x218)]:[],'company':Array[_0x3f6f44(0x1c7)](_0x2646a?.[_0x3f6f44(0x1bd)])?_0x2646a[_0x3f6f44(0x1bd)]:[],'public':Array[_0x3f6f44(0x1c7)](_0x2646a?.[_0x3f6f44(0x1f2)])?_0x2646a[_0x3f6f44(0x1f2)]:[],'effective':Array[_0x3f6f44(0x1c7)](_0x2646a?.['effective'])?_0x2646a[_0x3f6f44(0x1d2)]:[]};}
1
+ (function(_0x2f63ca,_0x4232b8){const _0x219dc7=a56_0x85bc,_0x68ae23=_0x2f63ca();while(!![]){try{const _0x2df9a9=-parseInt(_0x219dc7(0x12a))/0x1+-parseInt(_0x219dc7(0x112))/0x2*(parseInt(_0x219dc7(0x173))/0x3)+-parseInt(_0x219dc7(0x152))/0x4*(parseInt(_0x219dc7(0x164))/0x5)+parseInt(_0x219dc7(0x16d))/0x6+parseInt(_0x219dc7(0x11b))/0x7+parseInt(_0x219dc7(0x154))/0x8+-parseInt(_0x219dc7(0x13d))/0x9*(-parseInt(_0x219dc7(0x177))/0xa);if(_0x2df9a9===_0x4232b8)break;else _0x68ae23['push'](_0x68ae23['shift']());}catch(_0x5edce8){_0x68ae23['push'](_0x68ae23['shift']());}}}(a56_0x5c5a,0x859da));import{getApiDomain,getRuntimeDomain,getSkillHubDomain}from'../constant/domain.js';import{PRODUCT_CONFIG}from'../constant/product.js';import{CliErrors}from'../errors.js';function a56_0x5c5a(){const _0xeaa723=['SkillHub\x20API\x20error:\x20','number','status','/update','?appCode=','base64','appCode','apiError','738grlSft','/client/knowledge-base/personal/','source','BFF\x20script\x20not\x20found:\x20id=','undefined','text','/client/artifact/','items','errorCode','Toolbox\x20API\x20error','API\x20error:\x20','success','namespace','authRequired','signal','headlineVersion','effective','Configure\x20accessKey\x20in\x20','isArray','json','summary','144DHrBbF','sqlCode','3849136OtBOFW','errorMsg','visibility','Request\x20timeout:\x20','topK','/client/artifact/list?','PUBLIC','tableData','Personal\x20BFF\x20not\x20found:\x20id=','/client/dataset/query?','favorite','Invalid\x20login\x20user\x20info\x20response:\x20expected\x20object.','/api/runtime/v1/namespaces/','invokeSource','newConfigFileName','application/json','80790URbnAd','toString','message','Invalid\x20app\x20list\x20response:\x20expected\x20object\x20or\x20array.','replace','AbortError','data','builtin','file','3979962JzEAat','slug','ownerPreviewVersion','Check\x20your\x20credentials\x20and\x20try\x20again.','personal','/client/sql/query','3utgtQw','Toolbox\x20error\x20code:\x20','scope','Toolbox\x20API\x20error:\x20','82930jLnpwL','set','Toolbox\x20returned\x20non-JSON\x20response\x20(HTTP\x20','user','entries','/client/artifact/create','version','searchParams','code','name','packageBase64','content','skillCode','/publish','SkillHub\x20returned\x20non-JSON\x20response\x20(HTTP\x20','/api/cli/v1/skills/','string','/client/runtime-bff/personal/create','displayName','filter','SQL\x20query\x20not\x20found:\x20','test','Missing\x20Skill\x20package\x20payload.','abort','/client/user/loginUserInfo','arrayBuffer','/client/bff/query/','GET','1060914McFQhD','markdown','artifactType','/client/knowledge-base/personal/list?appCode=','public','NAMESPACE_ONLY','msg','skillName','/client/runtime-bff/personal/list?appCode=','5682201lGgTrW','description','object','/client/runtime-bff/personal/','from','validation','/versions/','/api/node-toolbox/','API\x20returned\x20non-JSON\x20response\x20(HTTP\x20','company','/client/dataset/list','POST','/execute?appCode=','/download','map','976803FJLjnm','Invalid\x20app\x20list\x20response:\x20missing\x20data.tableData.','tags','Download\x20failed:\x20','/skills','/client/app/my-apps','application/octet-stream','trim','appName','PRIVATE','query'];a56_0x5c5a=function(){return _0xeaa723;};return a56_0x5c5a();}import{extractList}from'../framework/response.js';let _activeAK;export function setActiveAK(_0x27d347){_activeAK=_0x27d347||undefined;}export function clearActiveAK(){_activeAK=undefined;}async function apiRequest(_0x25ed50,_0x572f6c={}){const _0x35b687=a56_0x85bc,{method:method=_0x35b687(0x111),body:_0x1aeffc,headers:headers={},timeout:timeout=0x7530}=_0x572f6c,_0x33c841=_activeAK,_0x1ef138=getRuntimeDomain();if(!_0x33c841)throw CliErrors['authRequired'](_0x35b687(0x14e)+PRODUCT_CONFIG['newConfigFileName']+'.');const _0x50809c=''+_0x1ef138+_0x25ed50,_0x335ba6={'X-User-AK':_0x33c841},_0x2d1579=new AbortController(),_0x4311d1=setTimeout(()=>_0x2d1579['abort'](),timeout);try{const _0x448200=await fetch(_0x50809c,{'method':method,'headers':{'Content-Type':'application/json','X-Invoke-Source':PRODUCT_CONFIG[_0x35b687(0x161)],..._0x335ba6,...headers},'body':_0x1aeffc?JSON['stringify'](_0x1aeffc):undefined,'signal':_0x2d1579[_0x35b687(0x14b)]});let _0x3d0a80;try{_0x3d0a80=await _0x448200[_0x35b687(0x150)]();}catch{throw CliErrors['apiError'](_0x35b687(0x123)+_0x448200[_0x35b687(0x137)]+')',_0x448200[_0x35b687(0x137)]>=0x190?'Check\x20your\x20credentials\x20and\x20try\x20again.':undefined);}if(!_0x448200['ok']||_0x3d0a80[_0x35b687(0x148)]===![])throw CliErrors[_0x35b687(0x13c)](_0x3d0a80[_0x35b687(0x155)]||_0x3d0a80['message']||_0x35b687(0x147)+_0x448200[_0x35b687(0x137)],_0x3d0a80[_0x35b687(0x145)]?'API\x20error\x20code:\x20'+_0x3d0a80[_0x35b687(0x145)]:undefined);return _0x3d0a80;}catch(_0x22d033){if(_0x22d033 instanceof Error&&_0x22d033[_0x35b687(0xff)]===_0x35b687(0x169))throw CliErrors[_0x35b687(0x13c)]('Request\x20timeout:\x20'+_0x50809c);throw _0x22d033;}finally{clearTimeout(_0x4311d1);}}async function apiBinaryRequest(_0x1f345d,_0x47b293={}){const _0x4d29fe=a56_0x85bc,{method:method='GET',headers:headers={},timeout:timeout=0x7530}=_0x47b293,_0x3d5fd8=_activeAK,_0x132e05=getRuntimeDomain();if(!_0x3d5fd8)throw CliErrors['authRequired'](_0x4d29fe(0x14e)+PRODUCT_CONFIG[_0x4d29fe(0x162)]+'.');const _0x40f423=''+_0x132e05+_0x1f345d,_0x239c1e=new AbortController(),_0x5e3182=setTimeout(()=>_0x239c1e[_0x4d29fe(0x10d)](),timeout);try{const _0xa9a7ab=await fetch(_0x40f423,{'method':method,'headers':{'X-Invoke-Source':PRODUCT_CONFIG['invokeSource'],'X-User-AK':_0x3d5fd8,...headers},'signal':_0x239c1e[_0x4d29fe(0x14b)]});if(!_0xa9a7ab['ok']){let _0x242a8b;try{const _0x1ae234=await _0xa9a7ab[_0x4d29fe(0x150)]();_0x242a8b=_0x1ae234[_0x4d29fe(0x155)]||_0x1ae234['message']||_0x1ae234['errorCode'];}catch{_0x242a8b=await _0xa9a7ab['text']()['catch'](()=>undefined);}throw CliErrors['apiError'](_0x242a8b||'API\x20error:\x20'+_0xa9a7ab[_0x4d29fe(0x137)],'Download\x20failed:\x20'+_0x40f423);}return Buffer[_0x4d29fe(0x11f)](await _0xa9a7ab[_0x4d29fe(0x10f)]());}catch(_0x42d790){if(_0x42d790 instanceof Error&&_0x42d790[_0x4d29fe(0xff)]===_0x4d29fe(0x169))throw CliErrors[_0x4d29fe(0x13c)](_0x4d29fe(0x157)+_0x40f423);throw _0x42d790;}finally{clearTimeout(_0x5e3182);}}async function toolboxRequest(_0x58bf78,_0x40a4ca,_0x45bc4a={}){const _0x466dfe=a56_0x85bc,{method:method=_0x466dfe(0x111),headers:headers={},timeout:timeout=0x7530}=_0x45bc4a,_0x306529=_activeAK;if(!_0x306529)throw CliErrors['authRequired'](_0x466dfe(0x14e)+PRODUCT_CONFIG[_0x466dfe(0x162)]+'.');const _0x56749c=getApiDomain()[_0x466dfe(0x168)](/\/$/,''),_0x275363=new URL(_0x58bf78,_0x56749c+_0x466dfe(0x122));if(_0x40a4ca)for(const [_0xc0f9d1,_0x2c4aa2]of Object[_0x466dfe(0xfa)](_0x40a4ca)){_0x2c4aa2!==undefined&&_0x2c4aa2!==null&&_0x275363[_0x466dfe(0xfd)]['set'](_0xc0f9d1,String(_0x2c4aa2));}const _0x5eb7b8=new AbortController(),_0x72c8ea=setTimeout(()=>_0x5eb7b8[_0x466dfe(0x10d)](),timeout);try{const _0x5c69d8=await fetch(_0x275363,{'method':method,'headers':{'Content-Type':'application/json','X-Invoke-Source':PRODUCT_CONFIG[_0x466dfe(0x161)],'X-User-AK':_0x306529,...headers},'signal':_0x5eb7b8[_0x466dfe(0x14b)]});let _0x2c3527;try{_0x2c3527=await _0x5c69d8[_0x466dfe(0x150)]();}catch{throw CliErrors[_0x466dfe(0x13c)](_0x466dfe(0x179)+_0x5c69d8[_0x466dfe(0x137)]+')',_0x5c69d8[_0x466dfe(0x137)]>=0x190?_0x466dfe(0x170):undefined);}if(!_0x5c69d8['ok']){const _0x5d5c50=_0x2c3527&&typeof _0x2c3527===_0x466dfe(0x11d)?_0x2c3527:{};throw CliErrors[_0x466dfe(0x13c)](_0x5d5c50['errorMsg']||_0x5d5c50[_0x466dfe(0x166)]||_0x466dfe(0x176)+_0x5c69d8['status'],_0x5d5c50['errorCode']?_0x466dfe(0x174)+_0x5d5c50[_0x466dfe(0x145)]:undefined);}if(_0x2c3527&&typeof _0x2c3527===_0x466dfe(0x11d)&&_0x466dfe(0x148)in _0x2c3527&&typeof _0x2c3527[_0x466dfe(0x148)]==='boolean'){const _0x3e7ae3=_0x2c3527;if(!_0x3e7ae3['success'])throw CliErrors[_0x466dfe(0x13c)](_0x3e7ae3[_0x466dfe(0x155)]||_0x3e7ae3['message']||_0x466dfe(0x146),_0x3e7ae3[_0x466dfe(0x145)]?_0x466dfe(0x174)+_0x3e7ae3['errorCode']:undefined);return _0x3e7ae3['data'];}return _0x2c3527;}catch(_0x3cc77b){if(_0x3cc77b instanceof Error&&_0x3cc77b[_0x466dfe(0xff)]===_0x466dfe(0x169))throw CliErrors[_0x466dfe(0x13c)](_0x466dfe(0x157)+_0x275363[_0x466dfe(0x165)]());throw _0x3cc77b;}finally{clearTimeout(_0x72c8ea);}}async function skillHubJsonRequest(_0x31bd28,_0x647000={}){const _0x57cb34=a56_0x85bc,{method:method='GET',query:_0x98c6ec,body:_0x2c7b38,headers:headers={},timeout:timeout=0x7530}=_0x647000,_0x396109=_activeAK;if(!_0x396109)throw CliErrors[_0x57cb34(0x14a)](_0x57cb34(0x14e)+PRODUCT_CONFIG[_0x57cb34(0x162)]+'.');const _0x2cc12f=getSkillHubDomain()[_0x57cb34(0x168)](/\/$/,''),_0x548570=new URL(_0x31bd28,_0x2cc12f+'/');if(_0x98c6ec)for(const [_0x7d5617,_0x17e50a]of Object[_0x57cb34(0xfa)](_0x98c6ec)){_0x17e50a!==undefined&&_0x17e50a!==null&&_0x548570[_0x57cb34(0xfd)][_0x57cb34(0x178)](_0x7d5617,String(_0x17e50a));}const _0x564526=new AbortController(),_0x34b88d=setTimeout(()=>_0x564526[_0x57cb34(0x10d)](),timeout);try{const _0xe3f64b=await fetch(_0x548570[_0x57cb34(0x165)](),{'method':method,'headers':{'Accept':_0x57cb34(0x163),'X-Invoke-Source':PRODUCT_CONFIG['invokeSource'],'X-User-AK':_0x396109,...headers},'body':_0x2c7b38,'signal':_0x564526[_0x57cb34(0x14b)]});let _0x24e2e0;try{_0x24e2e0=await _0xe3f64b[_0x57cb34(0x150)]();}catch{throw CliErrors[_0x57cb34(0x13c)](_0x57cb34(0x104)+_0xe3f64b[_0x57cb34(0x137)]+')',_0xe3f64b['status']>=0x190?_0x57cb34(0x170):undefined);}const _0x16c86c=!_0xe3f64b['ok']||_0x24e2e0?.['success']===![]||typeof _0x24e2e0?.[_0x57cb34(0xfe)]===_0x57cb34(0x136)&&_0x24e2e0[_0x57cb34(0xfe)]>=0x190;if(_0x16c86c)throw CliErrors[_0x57cb34(0x13c)](_0x24e2e0?.[_0x57cb34(0x155)]||_0x24e2e0?.[_0x57cb34(0x166)]||_0x24e2e0?.[_0x57cb34(0x118)]||'SkillHub\x20API\x20error:\x20'+_0xe3f64b['status'],_0x24e2e0?.[_0x57cb34(0x145)]?'SkillHub\x20error\x20code:\x20'+_0x24e2e0['errorCode']:undefined);return _0x24e2e0?.[_0x57cb34(0x16a)]??_0x24e2e0;}catch(_0x277e31){if(_0x277e31 instanceof Error&&_0x277e31['name']===_0x57cb34(0x169))throw CliErrors[_0x57cb34(0x13c)]('Request\x20timeout:\x20'+_0x548570['toString']());throw _0x277e31;}finally{clearTimeout(_0x34b88d);}}async function skillHubBinaryRequest(_0xda70f,_0x5b3d19={}){const _0x479a4c=a56_0x85bc,{query:_0x35a667,headers:headers={},timeout:timeout=0x7530}=_0x5b3d19,_0x395bf0=_activeAK;if(!_0x395bf0)throw CliErrors['authRequired'](_0x479a4c(0x14e)+PRODUCT_CONFIG[_0x479a4c(0x162)]+'.');const _0x307bfd=getSkillHubDomain()['replace'](/\/$/,''),_0x584aab=new URL(_0xda70f,_0x307bfd+'/');if(_0x35a667)for(const [_0x43f7a4,_0xebec0f]of Object[_0x479a4c(0xfa)](_0x35a667)){_0xebec0f!==undefined&&_0xebec0f!==null&&_0x584aab[_0x479a4c(0xfd)][_0x479a4c(0x178)](_0x43f7a4,String(_0xebec0f));}const _0x4b0c18=new AbortController(),_0x54d441=setTimeout(()=>_0x4b0c18[_0x479a4c(0x10d)](),timeout);try{const _0x835d9b=await fetch(_0x584aab[_0x479a4c(0x165)](),{'method':'GET','headers':{'Accept':_0x479a4c(0x130),'X-Invoke-Source':PRODUCT_CONFIG[_0x479a4c(0x161)],'X-User-AK':_0x395bf0,...headers},'signal':_0x4b0c18[_0x479a4c(0x14b)]});if(!_0x835d9b['ok']){let _0x299f8d;try{const _0x1c7667=await _0x835d9b[_0x479a4c(0x150)]();_0x299f8d=_0x1c7667[_0x479a4c(0x155)]||_0x1c7667[_0x479a4c(0x166)]||_0x1c7667['msg']||_0x1c7667['errorCode'];}catch{_0x299f8d=await _0x835d9b[_0x479a4c(0x142)]()['catch'](()=>undefined);}throw CliErrors['apiError'](_0x299f8d||_0x479a4c(0x135)+_0x835d9b[_0x479a4c(0x137)],_0x479a4c(0x12d)+_0x584aab[_0x479a4c(0x165)]());}return Buffer['from'](await _0x835d9b[_0x479a4c(0x10f)]());}catch(_0x2118e3){if(_0x2118e3 instanceof Error&&_0x2118e3[_0x479a4c(0xff)]==='AbortError')throw CliErrors[_0x479a4c(0x13c)](_0x479a4c(0x157)+_0x584aab[_0x479a4c(0x165)]());throw _0x2118e3;}finally{clearTimeout(_0x54d441);}}export async function getBffScriptInfo(_0xb95915){const _0xf283b6=a56_0x85bc,_0x5ebf5d=await apiRequest(_0xf283b6(0x110)+_0xb95915);if(!_0x5ebf5d[_0xf283b6(0x16a)])throw CliErrors[_0xf283b6(0x120)](_0xf283b6(0x140)+_0xb95915);return _0x5ebf5d[_0xf283b6(0x16a)];}export async function getSqlQueryInfo(_0xbcfbac,_0x39ab6c){const _0x398282=a56_0x85bc,_0x5674dc=await apiRequest(_0x398282(0x172),{'method':_0x398282(0x126),'body':{'appCode':_0xbcfbac,'currentPage':0x1,'pageSize':0x1,'sqlCode':_0x39ab6c}}),_0x337bbe=_0x5674dc[_0x398282(0x16a)],_0x13ce02=_0x337bbe&&typeof _0x337bbe==='object'&&_0x398282(0x15b)in _0x337bbe?_0x337bbe[_0x398282(0x15b)]?.[0x0]:_0x337bbe&&typeof _0x337bbe===_0x398282(0x11d)&&_0x398282(0x153)in _0x337bbe?_0x337bbe:undefined;if(!_0x13ce02)throw CliErrors[_0x398282(0x120)](_0x398282(0x10a)+_0x39ab6c);return _0x13ce02;}function isRemoteAppItem(_0x3851d4){const _0x1a044c=a56_0x85bc;return!!_0x3851d4&&typeof _0x3851d4===_0x1a044c(0x11d)&&typeof _0x3851d4[_0x1a044c(0x13b)]===_0x1a044c(0x106)&&typeof _0x3851d4[_0x1a044c(0x132)]===_0x1a044c(0x106);}function extractRemoteAppItems(_0x2bdeca){const _0x26af2b=a56_0x85bc;if(Array['isArray'](_0x2bdeca))return _0x2bdeca[_0x26af2b(0x109)](isRemoteAppItem);if(!_0x2bdeca||typeof _0x2bdeca!==_0x26af2b(0x11d))throw CliErrors[_0x26af2b(0x13c)](_0x26af2b(0x167));const _0x42573b=_0x2bdeca;if(Array[_0x26af2b(0x14f)](_0x42573b[_0x26af2b(0x15b)]))return _0x42573b[_0x26af2b(0x15b)][_0x26af2b(0x109)](isRemoteAppItem);if(_0x42573b[_0x26af2b(0x16a)]&&typeof _0x42573b['data']===_0x26af2b(0x11d)){const _0x25737b=_0x42573b[_0x26af2b(0x16a)];if(Array['isArray'](_0x25737b['tableData']))return _0x25737b['tableData'][_0x26af2b(0x109)](isRemoteAppItem);}throw CliErrors[_0x26af2b(0x13c)](_0x26af2b(0x12b));}export async function getMyApps(){const _0x5656cb=a56_0x85bc,_0x8a5176=await apiRequest(_0x5656cb(0x12f));return extractRemoteAppItems(_0x8a5176[_0x5656cb(0x16a)]);}export async function getLoginUserInfo(){const _0x2e045f=a56_0x85bc,_0xdc605d=await apiRequest(_0x2e045f(0x10e));if(!_0xdc605d[_0x2e045f(0x16a)]||typeof _0xdc605d[_0x2e045f(0x16a)]!==_0x2e045f(0x11d)||Array['isArray'](_0xdc605d['data']))throw CliErrors[_0x2e045f(0x13c)](_0x2e045f(0x15f));return _0xdc605d['data'];}export async function listDatasets(_0xbba1eb,_0x2a4d7c){const _0x337e8b=a56_0x85bc,_0x5472a4=await apiRequest(_0x337e8b(0x125),{'method':_0x337e8b(0x126),'body':{'appCode':_0xbba1eb,..._0x2a4d7c?.[_0x337e8b(0xfe)]&&{'code':_0x2a4d7c[_0x337e8b(0xfe)]},..._0x2a4d7c?.[_0x337e8b(0xff)]&&{'name':_0x2a4d7c[_0x337e8b(0xff)]}}});return extractList(_0x5472a4['data']);}export async function getDatasetDetail(_0x48d53b){const _0x75b7a6=a56_0x85bc,_0x52c53c=/^\d+$/[_0x75b7a6(0x10b)](_0x48d53b)?'id':_0x75b7a6(0xfe),_0x50adc3=await apiRequest(_0x75b7a6(0x15d)+_0x52c53c+'='+_0x48d53b);return _0x50adc3[_0x75b7a6(0x16a)];}export async function getDatasetSdkUsageDoc(_0x2b2b15,_0x4aeec0){const _0x2ff533=a56_0x85bc,_0x1c957b=await toolboxRequest('api-doc-generator',{'datasetCode':_0x2b2b15,'appCode':_0x4aeec0});return typeof _0x1c957b?.[_0x2ff533(0x113)]===_0x2ff533(0x106)?_0x1c957b['markdown']:'';}export async function listRuntimeArtifacts(_0x313504,_0x310b1c){const _0x3b2cdb=a56_0x85bc,_0x58be80=new URLSearchParams({'appCode':_0x313504});if(_0x310b1c?.[_0x3b2cdb(0x114)])_0x58be80[_0x3b2cdb(0x178)](_0x3b2cdb(0x114),_0x310b1c[_0x3b2cdb(0x114)]);if(_0x310b1c?.[_0x3b2cdb(0x13f)])_0x58be80[_0x3b2cdb(0x178)](_0x3b2cdb(0x13f),_0x310b1c['source']);if(_0x310b1c?.[_0x3b2cdb(0x15e)]!==undefined)_0x58be80[_0x3b2cdb(0x178)]('favorite',String(_0x310b1c['favorite']));const _0x48bc23=await apiRequest(_0x3b2cdb(0x159)+_0x58be80['toString']());return Array[_0x3b2cdb(0x14f)](_0x48bc23[_0x3b2cdb(0x16a)])?_0x48bc23['data']:[];}export async function getRuntimeArtifact(_0x162ee2,_0x3d3619){const _0x258ef8=a56_0x85bc,_0x56a4aa=await apiRequest(_0x258ef8(0x143)+_0x162ee2+_0x258ef8(0x139)+encodeURIComponent(_0x3d3619));if(!_0x56a4aa[_0x258ef8(0x16a)])throw CliErrors[_0x258ef8(0x120)]('Artifact\x20not\x20found:\x20id='+_0x162ee2);return _0x56a4aa['data'];}export async function createRuntimeArtifact(_0x418014,_0x502453){const _0x56aa6e=a56_0x85bc,_0x123f17=await apiRequest(_0x56aa6e(0xfb),{'method':_0x56aa6e(0x126),'body':{'appCode':_0x418014,..._0x502453}});return _0x123f17[_0x56aa6e(0x16a)];}export async function updateRuntimeArtifact(_0x3bb53a,_0x19f10b,_0xa4a445){const _0x50b99e=a56_0x85bc,_0x3e9d3b=await apiRequest('/client/artifact/'+_0x3bb53a+_0x50b99e(0x138),{'method':_0x50b99e(0x126),'body':{'appCode':_0x19f10b,..._0xa4a445}});return _0x3e9d3b['data'];}function a56_0x85bc(_0x25dfc4,_0x392839){_0x25dfc4=_0x25dfc4-0xf9;const _0x5c5ab6=a56_0x5c5a();let _0x85bcf7=_0x5c5ab6[_0x25dfc4];return _0x85bcf7;}export async function listPersonalBffs(_0x49d315){const _0x483216=a56_0x85bc,_0x3c0456=await apiRequest(_0x483216(0x11a)+encodeURIComponent(_0x49d315));return Array[_0x483216(0x14f)](_0x3c0456['data'])?_0x3c0456[_0x483216(0x16a)]:[];}export async function getPersonalBff(_0x5397a6,_0x25530b){const _0x2784a0=a56_0x85bc,_0x1d7eae=await apiRequest(_0x2784a0(0x11e)+_0x5397a6+_0x2784a0(0x139)+encodeURIComponent(_0x25530b));if(!_0x1d7eae['data'])throw CliErrors[_0x2784a0(0x120)](_0x2784a0(0x15c)+_0x5397a6);return _0x1d7eae[_0x2784a0(0x16a)];}export async function createPersonalBff(_0x293a89,_0x409e35){const _0x18ba67=a56_0x85bc,_0x582eed=await apiRequest(_0x18ba67(0x107),{'method':_0x18ba67(0x126),'body':{'appCode':_0x293a89,..._0x409e35}});return _0x582eed[_0x18ba67(0x16a)];}export async function updatePersonalBff(_0x51f122,_0x5b34af,_0x435e68){const _0x24935b=a56_0x85bc,_0x4fee46=await apiRequest(_0x24935b(0x11e)+_0x51f122+_0x24935b(0x138),{'method':_0x24935b(0x126),'body':{'appCode':_0x5b34af,..._0x435e68}});return _0x4fee46[_0x24935b(0x16a)];}export async function executePersonalBff(_0x5bdfee,_0x2e3f11,_0x269562){const _0x29e0d4=a56_0x85bc,_0x1e7a03=await apiRequest(_0x29e0d4(0x11e)+_0x5bdfee+_0x29e0d4(0x127)+encodeURIComponent(_0x2e3f11),{'method':_0x29e0d4(0x126),'body':_0x269562});return _0x1e7a03['data'];}export async function listPersonalKnowledgeBaseItems(_0x2e145c){const _0x10c8d3=a56_0x85bc,_0x1188ed=await apiRequest(_0x10c8d3(0x115)+encodeURIComponent(_0x2e145c));return Array[_0x10c8d3(0x14f)](_0x1188ed[_0x10c8d3(0x16a)])?_0x1188ed[_0x10c8d3(0x16a)]:[];}export async function getPersonalKnowledgeBaseItem(_0x5dfd42,_0x368ed9){const _0x330257=a56_0x85bc,_0xeff97e=await apiRequest('/client/knowledge-base/personal/'+_0x5dfd42+_0x330257(0x139)+encodeURIComponent(_0x368ed9));if(!_0xeff97e['data'])throw CliErrors['validation']('Knowledge-base\x20entry\x20not\x20found:\x20id='+_0x5dfd42);return _0xeff97e[_0x330257(0x16a)];}export async function createPersonalKnowledgeBaseItem(_0x52bb4b,_0x3893a9){const _0x4ba89f=a56_0x85bc,_0x218f7b=await apiRequest('/client/knowledge-base/personal/create',{'method':_0x4ba89f(0x126),'body':{'appCode':_0x52bb4b,..._0x3893a9}});return _0x218f7b[_0x4ba89f(0x16a)];}export async function updatePersonalKnowledgeBaseItem(_0x581a3a,_0x4c80e0,_0x316443){const _0x1ac381=a56_0x85bc,_0x4cf432=await apiRequest(_0x1ac381(0x13e)+_0x581a3a+'/update',{'method':_0x1ac381(0x126),'body':{'appCode':_0x4c80e0,..._0x316443}});return _0x4cf432[_0x1ac381(0x16a)];}export async function searchKnowledgeBase(_0x580fdb,_0xb14f85){const _0x5f5d64=a56_0x85bc,_0xce26a6=await apiRequest('/client/knowledge-base/search',{'method':_0x5f5d64(0x126),'body':{'appCode':_0x580fdb,'query':_0xb14f85[_0x5f5d64(0x134)],..._0xb14f85[_0x5f5d64(0x158)]!==undefined?{'topK':_0xb14f85[_0x5f5d64(0x158)]}:{}}});return Array[_0x5f5d64(0x14f)](_0xce26a6[_0x5f5d64(0x16a)])?_0xce26a6['data']:[];}export async function listRuntimeSkills(_0x176cd2){const _0x6138c3=a56_0x85bc,_0x6abd0d=await skillHubJsonRequest(_0x6138c3(0x160)+encodeURIComponent(_0x176cd2[_0x6138c3(0x13b)])+_0x6138c3(0x12e),{'query':{'page':0x0,'size':0xc8}});return normalizeSkillHubRuntimeListResponse(_0x176cd2[_0x6138c3(0x13b)],_0x6abd0d,_0x176cd2[_0x6138c3(0x175)]??_0x6138c3(0xf9),_0x176cd2[_0x6138c3(0xfe)]);}export async function listPersonalRuntimeSkills(_0x494247){const _0x2cba11=a56_0x85bc;return(await listRuntimeSkills({'appCode':_0x494247,'scope':'personal'}))[_0x2cba11(0x171)];}export async function listCompanyRuntimeSkills(_0x1e0297){const _0xa42aaf=a56_0x85bc;return(await listRuntimeSkills({'appCode':_0x1e0297,'scope':_0xa42aaf(0x124)}))['company'];}export async function listVisibleRuntimeSkills(_0x3a18e3){const _0x2527a4=a56_0x85bc;return(await listRuntimeSkills({'appCode':_0x3a18e3,'scope':_0x2527a4(0xf9)}))[_0x2527a4(0x14d)];}export async function createPersonalRuntimeSkill(_0x550030,_0x92ac1e){return publishRuntimeSkill(_0x550030,_0x92ac1e);}export async function updatePersonalRuntimeSkill(_0x58003,_0x369cc8,_0x11623c){const _0x5c8b92=a56_0x85bc;return publishRuntimeSkill(_0x369cc8,{..._0x11623c,'skillCode':_0x11623c[_0x5c8b92(0x102)]??_0x58003});}export async function downloadRuntimeSkillPackage(_0x33c346,_0x15bfb5,_0xa0774f,_0x5583b4){const _0x3c7af6=a56_0x85bc;void _0x33c346;const _0x1e8579=_0x5583b4?_0x3c7af6(0x105)+encodeURIComponent(_0xa0774f)+'/'+encodeURIComponent(_0x15bfb5)+_0x3c7af6(0x121)+encodeURIComponent(_0x5583b4)+_0x3c7af6(0x128):_0x3c7af6(0x105)+encodeURIComponent(_0xa0774f)+'/'+encodeURIComponent(_0x15bfb5)+_0x3c7af6(0x128);return skillHubBinaryRequest(_0x1e8579);}async function publishRuntimeSkill(_0x21ef01,_0x50e3d5){const _0x5caedd=a56_0x85bc,_0x1acfd6=new FormData();_0x1acfd6[_0x5caedd(0x178)](_0x5caedd(0x16c),runtimeSkillPackageFile(_0x50e3d5)),_0x1acfd6[_0x5caedd(0x178)]('visibility','PRIVATE');const _0x58acf6=await skillHubJsonRequest('/api/cli/v1/skills/'+encodeURIComponent(_0x21ef01)+_0x5caedd(0x103),{'method':_0x5caedd(0x126),'body':_0x1acfd6});return{'appCode':_0x58acf6[_0x5caedd(0x149)]??_0x21ef01,'skillCode':_0x58acf6[_0x5caedd(0x16e)]??_0x50e3d5[_0x5caedd(0x102)]??'','skillName':_0x50e3d5[_0x5caedd(0x119)]??_0x58acf6['slug']??_0x50e3d5['skillCode'],'description':_0x50e3d5[_0x5caedd(0x11c)],'scope':skillHubVisibilityToScope(_0x58acf6['visibility'])??'personal','version':_0x58acf6['version']??_0x50e3d5[_0x5caedd(0xfc)],'tags':_0x50e3d5[_0x5caedd(0x12c)],'content':_0x50e3d5[_0x5caedd(0x101)]};}function runtimeSkillPackageFile(_0x751518){const _0x2f0fea=a56_0x85bc;if(!_0x751518[_0x2f0fea(0x100)])throw CliErrors[_0x2f0fea(0x120)](_0x2f0fea(0x10c));const _0x2c86e8=Buffer[_0x2f0fea(0x11f)](_0x751518['packageBase64'],_0x2f0fea(0x13a)),_0x4061f5=new Blob([_0x2c86e8],{'type':'application/zip'}),_0x1014f3=(_0x751518[_0x2f0fea(0x102)]||'skill')+'.zip';if(typeof File!==_0x2f0fea(0x141))return new File([_0x4061f5],_0x1014f3,{'type':'application/zip'});return _0x4061f5;}function normalizeSkillHubRuntimeListResponse(_0x305a02,_0x5a6080,_0x674c65,_0x3b810b){const _0x3bede6=a56_0x85bc,_0x34393d=Array[_0x3bede6(0x14f)](_0x5a6080)?_0x5a6080:Array['isArray'](_0x5a6080?.[_0x3bede6(0x144)])?_0x5a6080[_0x3bede6(0x144)]:[],_0x9a7eae=_0x3b810b?.['trim'](),_0x5b01c4=_0x34393d['filter'](_0x547a0c=>!_0x9a7eae||_0x547a0c['slug']===_0x9a7eae)[_0x3bede6(0x129)](skillHubRuntimeItemToRuntimeSkill)[_0x3bede6(0x109)](_0x12bfb1=>Boolean(_0x12bfb1)),_0x5c0c1a=_0x5b01c4[_0x3bede6(0x109)](_0x90c867=>_0x90c867[_0x3bede6(0x175)]===_0x3bede6(0x171)),_0x2a1c5d=_0x5b01c4[_0x3bede6(0x109)](_0x26e977=>_0x26e977[_0x3bede6(0x175)]===_0x3bede6(0x124)),_0x281eb0=_0x5b01c4[_0x3bede6(0x109)](_0x1ab286=>_0x1ab286[_0x3bede6(0x175)]===_0x3bede6(0x116));return{'appCode':_0x305a02,'personal':_0x674c65===_0x3bede6(0x124)||_0x674c65===_0x3bede6(0x116)?[]:_0x5c0c1a,'company':_0x674c65===_0x3bede6(0x171)||_0x674c65==='public'?[]:_0x2a1c5d,'public':_0x674c65===_0x3bede6(0x171)||_0x674c65===_0x3bede6(0x124)?[]:_0x281eb0,'effective':buildEffectiveRuntimeSkills(_0x5c0c1a,_0x2a1c5d,_0x281eb0,_0x674c65)};}function skillHubRuntimeItemToRuntimeSkill(_0x3b112b){const _0x26a9cd=a56_0x85bc,_0x4171f9=_0x3b112b[_0x26a9cd(0x16e)]?.[_0x26a9cd(0x131)](),_0xcc1a3b=skillHubVisibilityToScope(_0x3b112b[_0x26a9cd(0x156)]);if(!_0x4171f9||!_0xcc1a3b)return undefined;return{'id':_0x3b112b['id'],'appCode':_0x3b112b[_0x26a9cd(0x149)],'skillCode':_0x4171f9,'skillName':_0x3b112b[_0x26a9cd(0x108)]??_0x4171f9,'description':_0x3b112b[_0x26a9cd(0x151)],'scope':_0xcc1a3b,'version':skillHubRuntimeItemVersion(_0x3b112b),'status':_0x3b112b[_0x26a9cd(0x137)]};}function skillHubVisibilityToScope(_0x274e08){const _0x1491d8=a56_0x85bc;if(_0x274e08===_0x1491d8(0x133))return _0x1491d8(0x171);if(_0x274e08===_0x1491d8(0x117))return _0x1491d8(0x124);if(_0x274e08===_0x1491d8(0x15a))return'public';return undefined;}function skillHubRuntimeItemVersion(_0x569e3e){const _0x3f8d4d=a56_0x85bc;return _0x569e3e['publishedVersion']?.[_0x3f8d4d(0xfc)]??_0x569e3e[_0x3f8d4d(0x14c)]?.[_0x3f8d4d(0xfc)]??_0x569e3e[_0x3f8d4d(0x16f)]?.[_0x3f8d4d(0xfc)];}function buildEffectiveRuntimeSkills(_0x1d11e4,_0x358521,_0x2fc553,_0x2287ac){const _0x2cadc2=a56_0x85bc;if(_0x2287ac===_0x2cadc2(0x171))return _0x1d11e4;if(_0x2287ac===_0x2cadc2(0x124))return _0x358521;if(_0x2287ac===_0x2cadc2(0x116))return _0x2fc553;const _0x430425=new Map();for(const _0xb7c895 of _0x2fc553){_0x430425['set'](_0xb7c895[_0x2cadc2(0x102)],_0xb7c895);}for(const _0xa0d880 of _0x358521){_0x430425[_0x2cadc2(0x178)](_0xa0d880[_0x2cadc2(0x102)],_0xa0d880);}for(const _0x19a17b of _0x1d11e4){_0x430425[_0x2cadc2(0x178)](_0x19a17b[_0x2cadc2(0x102)],_0x19a17b);}return Array[_0x2cadc2(0x11f)](_0x430425['values']());}function normalizeRuntimeSkillListResponse(_0x425b5a,_0x492545){const _0x45ad8c=a56_0x85bc;if(Array[_0x45ad8c(0x14f)](_0x492545)){const _0x16556f=_0x492545['filter'](_0x5c80a3=>_0x5c80a3[_0x45ad8c(0x175)]===_0x45ad8c(0x171)),_0x59f892=_0x492545[_0x45ad8c(0x109)](_0x5bfce3=>_0x5bfce3[_0x45ad8c(0x175)]===_0x45ad8c(0x124)),_0x38bb92=_0x492545[_0x45ad8c(0x109)](_0x41fcf5=>_0x41fcf5[_0x45ad8c(0x175)]===_0x45ad8c(0x116));return{'appCode':_0x425b5a,'personal':_0x16556f,'company':_0x59f892,'public':_0x38bb92,'effective':_0x492545[_0x45ad8c(0x109)](_0x2b177e=>_0x2b177e['scope']!==_0x45ad8c(0x16b))};}return{'appCode':_0x492545?.[_0x45ad8c(0x13b)]??_0x425b5a,'personal':Array['isArray'](_0x492545?.[_0x45ad8c(0x171)])?_0x492545[_0x45ad8c(0x171)]:[],'company':Array[_0x45ad8c(0x14f)](_0x492545?.[_0x45ad8c(0x124)])?_0x492545[_0x45ad8c(0x124)]:[],'public':Array['isArray'](_0x492545?.[_0x45ad8c(0x116)])?_0x492545[_0x45ad8c(0x116)]:[],'effective':Array[_0x45ad8c(0x14f)](_0x492545?.['effective'])?_0x492545[_0x45ad8c(0x14d)]:[]};}
@@ -1 +1 @@
1
- (function(_0x8a0ab,_0x319ba9){const _0x510855=a57_0x7444,_0x34c271=_0x8a0ab();while(!![]){try{const _0x451951=parseInt(_0x510855(0x1a1))/0x1*(parseInt(_0x510855(0x19b))/0x2)+parseInt(_0x510855(0x196))/0x3*(-parseInt(_0x510855(0x19d))/0x4)+parseInt(_0x510855(0x1a2))/0x5+parseInt(_0x510855(0x19e))/0x6*(-parseInt(_0x510855(0x199))/0x7)+-parseInt(_0x510855(0x19f))/0x8+-parseInt(_0x510855(0x195))/0x9+parseInt(_0x510855(0x19c))/0xa;if(_0x451951===_0x319ba9)break;else _0x34c271['push'](_0x34c271['shift']());}catch(_0x1f4c2d){_0x34c271['push'](_0x34c271['shift']());}}}(a57_0x21a9,0x5e74a));import{listDatasets}from'../core/api-client.js';function a57_0x7444(_0x46e586,_0x504fbf){_0x46e586=_0x46e586-0x192;const _0x21a9d6=a57_0x21a9();let _0x744455=_0x21a9d6[_0x46e586];return _0x744455;}const cache=new Map();export async function listDatabases(_0x312381){const _0x2af697=a57_0x7444;if(cache[_0x2af697(0x197)](_0x312381))return cache['get'](_0x312381);const _0x490477=await listDatasets(_0x312381),_0x5dbd67=new Map();for(const _0x3f5b94 of _0x490477){const _0x10c5ca=_0x3f5b94['dbtableConfig'];_0x10c5ca?.[_0x2af697(0x19a)]!=null&&_0x5dbd67['set'](_0x10c5ca[_0x2af697(0x19a)],_0x10c5ca[_0x2af697(0x193)]??_0x2af697(0x192)+_0x10c5ca['dbId']);}const _0x279753=[..._0x5dbd67['entries']()][_0x2af697(0x194)](([_0x40add9,_0x4878fc])=>({'dbId':_0x40add9,'dbName':_0x4878fc}));return cache[_0x2af697(0x198)](_0x312381,_0x279753),_0x279753;}function a57_0x21a9(){const _0x24de39=['41154tIqQwD','3521500XjGvkl','db-','dbName','map','2793087CEvlnf','2201034fZHRBd','has','set','7GoRbRa','dbId','22AxAgpx','13515970QRayfF','4bcTOvU','2054118gbuqpX','5882616snuXTg','find'];a57_0x21a9=function(){return _0x24de39;};return a57_0x21a9();}export async function getDbName(_0x4fe57e,_0x2ed4d3){const _0x20f261=a57_0x7444;try{const _0x536208=await listDatabases(_0x4fe57e);return _0x536208[_0x20f261(0x1a0)](_0x5b8b15=>_0x5b8b15[_0x20f261(0x19a)]===_0x2ed4d3)?.[_0x20f261(0x193)];}catch{return undefined;}}
1
+ (function(_0x15a413,_0x541b47){const _0x24e689=a57_0x33ef,_0xf36ab6=_0x15a413();while(!![]){try{const _0x1fdfb3=parseInt(_0x24e689(0x81))/0x1*(parseInt(_0x24e689(0x7a))/0x2)+-parseInt(_0x24e689(0x7d))/0x3*(-parseInt(_0x24e689(0x77))/0x4)+-parseInt(_0x24e689(0x80))/0x5*(-parseInt(_0x24e689(0x71))/0x6)+parseInt(_0x24e689(0x82))/0x7+parseInt(_0x24e689(0x76))/0x8+parseInt(_0x24e689(0x7b))/0x9+-parseInt(_0x24e689(0x74))/0xa*(parseInt(_0x24e689(0x7f))/0xb);if(_0x1fdfb3===_0x541b47)break;else _0xf36ab6['push'](_0xf36ab6['shift']());}catch(_0x4e912e){_0xf36ab6['push'](_0xf36ab6['shift']());}}}(a57_0x1b74,0xa135d));import{listDatasets}from'../core/api-client.js';const cache=new Map();export async function listDatabases(_0x32c0e7){const _0x90c951=a57_0x33ef;if(cache[_0x90c951(0x79)](_0x32c0e7))return cache[_0x90c951(0x72)](_0x32c0e7);const _0x2ff2e3=await listDatasets(_0x32c0e7),_0x3ee3f4=new Map();for(const _0x28d02c of _0x2ff2e3){const _0x8f9dab=_0x28d02c['dbtableConfig'];_0x8f9dab?.[_0x90c951(0x7e)]!=null&&_0x3ee3f4[_0x90c951(0x75)](_0x8f9dab[_0x90c951(0x7e)],_0x8f9dab[_0x90c951(0x7c)]??_0x90c951(0x73)+_0x8f9dab[_0x90c951(0x7e)]);}const _0x597690=[..._0x3ee3f4[_0x90c951(0x70)]()]['map'](([_0x1cbe63,_0x1ad321])=>({'dbId':_0x1cbe63,'dbName':_0x1ad321}));return cache['set'](_0x32c0e7,_0x597690),_0x597690;}export async function getDbName(_0x53f3f0,_0x44b07b){const _0x332102=a57_0x33ef;try{const _0x4ef26d=await listDatabases(_0x53f3f0);return _0x4ef26d[_0x332102(0x78)](_0x4256a8=>_0x4256a8[_0x332102(0x7e)]===_0x44b07b)?.[_0x332102(0x7c)];}catch{return undefined;}}function a57_0x33ef(_0x4c83c7,_0x2e0470){_0x4c83c7=_0x4c83c7-0x70;const _0x1b7463=a57_0x1b74();let _0x33ef4c=_0x1b7463[_0x4c83c7];return _0x33ef4c;}function a57_0x1b74(){const _0xb86ea8=['120UbXpJt','get','db-','94280omNcfj','set','6564104oHRpnk','4GmymCC','find','has','1081148SMAhvh','7618779JPUDCS','dbName','243234CitKco','dbId','3322FARXvE','81635cBrmlP','1RaIMxX','6246359QFPWvm','entries'];a57_0x1b74=function(){return _0xb86ea8;};return a57_0x1b74();}
@@ -1 +1 @@
1
- (function(_0x5aa9c3,_0x12e422){const _0x525b47=a58_0x13b0,_0x5bc32f=_0x5aa9c3();while(!![]){try{const _0x371ccb=-parseInt(_0x525b47(0xc5))/0x1+-parseInt(_0x525b47(0xd1))/0x2*(-parseInt(_0x525b47(0xb8))/0x3)+-parseInt(_0x525b47(0xb3))/0x4+-parseInt(_0x525b47(0xd4))/0x5*(parseInt(_0x525b47(0xbb))/0x6)+-parseInt(_0x525b47(0xcf))/0x7*(-parseInt(_0x525b47(0xca))/0x8)+-parseInt(_0x525b47(0xb2))/0x9+parseInt(_0x525b47(0xc2))/0xa*(parseInt(_0x525b47(0xd0))/0xb);if(_0x371ccb===_0x12e422)break;else _0x5bc32f['push'](_0x5bc32f['shift']());}catch(_0x46d56f){_0x5bc32f['push'](_0x5bc32f['shift']());}}}(a58_0x5174,0x5f27c));import{createClient}from'@lovrabet/sdk';import{PRODUCT_CONFIG}from'../constant/product.js';import{CliErrors}from'../errors.js';function a58_0x13b0(_0x50d2dd,_0x5bc9e0){_0x50d2dd=_0x50d2dd-0xae;const _0x5174d2=a58_0x5174();let _0x13b0d9=_0x5174d2[_0x50d2dd];return _0x13b0d9;}import{parseBatchCreateItemsFromParams}from'../utils/params.js';let _client;export function initSdkClient(_0x26d2d2){const _0x4741a6=a58_0x13b0;_client=createClient({'appCode':_0x26d2d2[_0x4741a6(0xbe)],'env':_0x26d2d2[_0x4741a6(0xaf)],'authMode':_0x26d2d2['authMode'],..._0x26d2d2['accessKey']?{'accessKey':_0x26d2d2[_0x4741a6(0xc8)]}:{},'options':{'timeout':0x7530,'headers':{'X-Invoke-Source':PRODUCT_CONFIG[_0x4741a6(0xc6)]}}});}function ensureClient(){const _0x7da635=a58_0x13b0;if(!_client)throw new Error(_0x7da635(0xc7));return _client;}function normalizeAggregateParams(_0x32cbee){const _0x1f5a72=a58_0x13b0,_0x14ee83=_0x32cbee[_0x1f5a72(0xb7)];if(_0x14ee83===undefined)return _0x32cbee;if(!Array['isArray'](_0x14ee83))throw CliErrors[_0x1f5a72(0xce)](_0x1f5a72(0xb1));return{..._0x32cbee,'aggregate':_0x14ee83[_0x1f5a72(0xc0)]((_0x558b80,_0x4d6c6c)=>{const _0x158591=_0x1f5a72;if(!_0x558b80||typeof _0x558b80!==_0x158591(0xcc)||Array[_0x158591(0xd2)](_0x558b80))throw CliErrors[_0x158591(0xce)](_0x158591(0xcd)+_0x4d6c6c+_0x158591(0xcb));const _0x2316e5=_0x558b80[_0x158591(0xb9)]??_0x558b80['field'];if(typeof _0x2316e5!==_0x158591(0xd6)||_0x2316e5[_0x158591(0xbd)]()==='')throw CliErrors['validation'](_0x158591(0xcd)+_0x4d6c6c+_0x158591(0xba));const _0x465c2b={..._0x558b80,'column':_0x2316e5};return delete _0x465c2b[_0x158591(0xbf)],_0x465c2b;})};}export async function executeData(_0x46a90d,_0xa187c2,_0x421678){const _0x4f0bcf=a58_0x13b0,_0x409ac6=ensureClient(),_0x3d2915=_0x4f0bcf(0xc1)+_0x46a90d,_0x5b78a4=_0x409ac6[_0x4f0bcf(0xd7)][_0x3d2915];if(!_0x5b78a4||typeof _0x5b78a4[_0xa187c2]!==_0x4f0bcf(0xb4))throw new Error(_0x4f0bcf(0xc3)+_0xa187c2+'\x22.\x20'+_0x4f0bcf(0xbc));if(_0xa187c2===_0x4f0bcf(0xc4))return _0x5b78a4[_0x4f0bcf(0xc4)](parseBatchCreateItemsFromParams(_0x421678));const _0x1124bb=_0x421678!==undefined&&_0x421678!==null&&!Array['isArray'](_0x421678)?_0x421678:{};switch(_0xa187c2){case _0x4f0bcf(0xb5):{const _0x386834=_0x1124bb['id'];if(_0x386834===undefined||_0x386834===null)throw new Error('getOne\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123}\x27');return _0x5b78a4['getOne'](_0x386834);}case _0x4f0bcf(0xc9):{const {id:_0x54dcad,..._0x51488e}=_0x1124bb;if(_0x54dcad===undefined||_0x54dcad===null)throw new Error('update\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123,\x22name\x22:\x22new\x22}\x27');return _0x5b78a4[_0x4f0bcf(0xc9)](_0x54dcad,_0x51488e);}case'delete':{const _0x2ed5fa=_0x1124bb['id'];if(_0x2ed5fa===undefined||_0x2ed5fa===null)throw new Error(_0x4f0bcf(0xb6));return _0x5b78a4[_0x4f0bcf(0xb0)](_0x2ed5fa);}case _0x4f0bcf(0xb7):return _0x5b78a4[_0x4f0bcf(0xb7)](normalizeAggregateParams(_0x1124bb));default:return _0x5b78a4[_0xa187c2](_0x1124bb);}}export async function executeSdkSql(_0x5301a3,_0x490b98){const _0x43d8eb=a58_0x13b0,_0x5f51d7=ensureClient();return _0x5f51d7[_0x43d8eb(0xae)][_0x43d8eb(0xd3)]({'sqlCode':_0x5301a3,'params':_0x490b98});}export async function executeSdkBff(_0x23b0ed,_0x1f8f2a){const _0x44c213=a58_0x13b0,_0x2eaf24=ensureClient();return _0x2eaf24[_0x44c213(0xd5)]['execute']({'scriptName':_0x23b0ed,'params':_0x1f8f2a});}function a58_0x5174(){const _0x257c33=['3695usNCQn','bff','string','models','sql','env','delete','data\x20aggregate\x20--params.aggregate\x20must\x20be\x20an\x20array.','4035006JrcpeB','996172hkyesh','function','getOne','delete\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123}\x27','aggregate','15kTDHOA','column',']\x20requires\x20\x22column\x22;\x20\x22field\x22\x20is\x20accepted\x20only\x20as\x20a\x20deprecated\x20alias.','3114JzSTqY','Available:\x20filter,\x20getOne,\x20create,\x20batchCreate,\x20update,\x20delete,\x20aggregate.','trim','appCode','field','map','dataset_','70aVaBGM','SDK\x20model\x20does\x20not\x20support\x20operation\x20\x22','batchCreate','424961fzwFCe','invokeSource','SDK\x20client\x20not\x20initialized.\x20Call\x20initSdkClient()\x20first.','accessKey','update','15736PTZmnK',']\x20must\x20be\x20an\x20object.','object','data\x20aggregate\x20--params.aggregate[','validation','1001ybsjiD','2304632uEBSsm','59108iCRvoI','isArray','execute'];a58_0x5174=function(){return _0x257c33;};return a58_0x5174();}
1
+ (function(_0x5623ed,_0x38fc47){const _0x5ee709=a58_0x1542,_0x57f0d8=_0x5623ed();while(!![]){try{const _0x229764=parseInt(_0x5ee709(0x1b5))/0x1*(parseInt(_0x5ee709(0x1b2))/0x2)+-parseInt(_0x5ee709(0x19c))/0x3+-parseInt(_0x5ee709(0x1a8))/0x4+parseInt(_0x5ee709(0x1b4))/0x5*(-parseInt(_0x5ee709(0x1a2))/0x6)+parseInt(_0x5ee709(0x19e))/0x7*(-parseInt(_0x5ee709(0x1a9))/0x8)+-parseInt(_0x5ee709(0x194))/0x9+parseInt(_0x5ee709(0x1ab))/0xa;if(_0x229764===_0x38fc47)break;else _0x57f0d8['push'](_0x57f0d8['shift']());}catch(_0x439b38){_0x57f0d8['push'](_0x57f0d8['shift']());}}}(a58_0x3ea2,0xc61db));function a58_0x3ea2(){const _0x5b4f62=[']\x20requires\x20\x22column\x22;\x20\x22field\x22\x20is\x20accepted\x20only\x20as\x20a\x20deprecated\x20alias.','execute','getOne','delete','91230CcuZJB','invokeSource','7txDDKn','update','models','data\x20aggregate\x20--params.aggregate\x20must\x20be\x20an\x20array.','6RvDgIb','accessKey','update\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123,\x22name\x22:\x22new\x22}\x27','string','batchCreate','SDK\x20model\x20does\x20not\x20support\x20operation\x20\x22','5407232nwXSru','10824144wYzzVm','data\x20aggregate\x20--params.aggregate[','42656580haqZZB','sql','validation',']\x20must\x20be\x20an\x20object.','map','isArray','getOne\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123}\x27','364hvxtgN','field','3630630yhDWSE','3603dQFKWP','aggregate','5837031aSnyCD','\x22.\x20','trim','appCode'];a58_0x3ea2=function(){return _0x5b4f62;};return a58_0x3ea2();}import{createClient}from'@lovrabet/sdk';import{PRODUCT_CONFIG}from'../constant/product.js';import{CliErrors}from'../errors.js';import{parseBatchCreateItemsFromParams}from'../utils/params.js';function a58_0x1542(_0x419616,_0x48d746){_0x419616=_0x419616-0x194;const _0x3ea210=a58_0x3ea2();let _0x1542fa=_0x3ea210[_0x419616];return _0x1542fa;}let _client;export function initSdkClient(_0x564663){const _0xad9a7c=a58_0x1542;_client=createClient({'appCode':_0x564663[_0xad9a7c(0x197)],'env':_0x564663['env'],'authMode':_0x564663['authMode'],..._0x564663['accessKey']?{'accessKey':_0x564663[_0xad9a7c(0x1a3)]}:{},'options':{'timeout':0x7530,'headers':{'X-Invoke-Source':PRODUCT_CONFIG[_0xad9a7c(0x19d)]}}});}function ensureClient(){if(!_client)throw new Error('SDK\x20client\x20not\x20initialized.\x20Call\x20initSdkClient()\x20first.');return _client;}function normalizeAggregateParams(_0x4cda3f){const _0x4fc639=a58_0x1542,_0x40311d=_0x4cda3f[_0x4fc639(0x1b6)];if(_0x40311d===undefined)return _0x4cda3f;if(!Array['isArray'](_0x40311d))throw CliErrors[_0x4fc639(0x1ad)](_0x4fc639(0x1a1));return{..._0x4cda3f,'aggregate':_0x40311d[_0x4fc639(0x1af)]((_0x11d2ca,_0x3f0b31)=>{const _0x5364bf=_0x4fc639;if(!_0x11d2ca||typeof _0x11d2ca!=='object'||Array[_0x5364bf(0x1b0)](_0x11d2ca))throw CliErrors[_0x5364bf(0x1ad)]('data\x20aggregate\x20--params.aggregate['+_0x3f0b31+_0x5364bf(0x1ae));const _0x510754=_0x11d2ca['column']??_0x11d2ca[_0x5364bf(0x1b3)];if(typeof _0x510754!==_0x5364bf(0x1a5)||_0x510754[_0x5364bf(0x196)]()==='')throw CliErrors['validation'](_0x5364bf(0x1aa)+_0x3f0b31+_0x5364bf(0x198));const _0x3edca7={..._0x11d2ca,'column':_0x510754};return delete _0x3edca7[_0x5364bf(0x1b3)],_0x3edca7;})};}export async function executeData(_0x1cc83b,_0xbe0e28,_0x14ca4d){const _0x47c630=a58_0x1542,_0x37b45b=ensureClient(),_0x35645b='dataset_'+_0x1cc83b,_0x3f480e=_0x37b45b[_0x47c630(0x1a0)][_0x35645b];if(!_0x3f480e||typeof _0x3f480e[_0xbe0e28]!=='function')throw new Error(_0x47c630(0x1a7)+_0xbe0e28+_0x47c630(0x195)+'Available:\x20filter,\x20getOne,\x20create,\x20batchCreate,\x20update,\x20delete,\x20aggregate.');if(_0xbe0e28===_0x47c630(0x1a6))return _0x3f480e[_0x47c630(0x1a6)](parseBatchCreateItemsFromParams(_0x14ca4d));const _0x41b271=_0x14ca4d!==undefined&&_0x14ca4d!==null&&!Array[_0x47c630(0x1b0)](_0x14ca4d)?_0x14ca4d:{};switch(_0xbe0e28){case _0x47c630(0x19a):{const _0x20ff92=_0x41b271['id'];if(_0x20ff92===undefined||_0x20ff92===null)throw new Error(_0x47c630(0x1b1));return _0x3f480e[_0x47c630(0x19a)](_0x20ff92);}case _0x47c630(0x19f):{const {id:_0x338291,..._0x431c6d}=_0x41b271;if(_0x338291===undefined||_0x338291===null)throw new Error(_0x47c630(0x1a4));return _0x3f480e[_0x47c630(0x19f)](_0x338291,_0x431c6d);}case _0x47c630(0x19b):{const _0x33f5b9=_0x41b271['id'];if(_0x33f5b9===undefined||_0x33f5b9===null)throw new Error('delete\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123}\x27');return _0x3f480e[_0x47c630(0x19b)](_0x33f5b9);}case _0x47c630(0x1b6):return _0x3f480e[_0x47c630(0x1b6)](normalizeAggregateParams(_0x41b271));default:return _0x3f480e[_0xbe0e28](_0x41b271);}}export async function executeSdkSql(_0x24b647,_0x37f5d0){const _0x3e381c=a58_0x1542,_0x12a4d0=ensureClient();return _0x12a4d0[_0x3e381c(0x1ac)][_0x3e381c(0x199)]({'sqlCode':_0x24b647,'params':_0x37f5d0});}export async function executeSdkBff(_0x46ea5a,_0x4f4ce1){const _0x258d3f=a58_0x1542,_0x17e272=ensureClient();return _0x17e272['bff'][_0x258d3f(0x199)]({'scriptName':_0x46ea5a,'params':_0x4f4ce1});}
package/lib/errors.js CHANGED
@@ -1 +1 @@
1
- const a59_0x5e8c93=a59_0x67b4;(function(_0x3ac736,_0x1562a1){const _0x3350e7=a59_0x67b4,_0x97c5d=_0x3ac736();while(!![]){try{const _0x3dc075=parseInt(_0x3350e7(0x1df))/0x1+parseInt(_0x3350e7(0x1d8))/0x2+-parseInt(_0x3350e7(0x1de))/0x3*(parseInt(_0x3350e7(0x1db))/0x4)+parseInt(_0x3350e7(0x1d6))/0x5*(-parseInt(_0x3350e7(0x1dc))/0x6)+-parseInt(_0x3350e7(0x1dd))/0x7+-parseInt(_0x3350e7(0x1e1))/0x8+parseInt(_0x3350e7(0x1e3))/0x9;if(_0x3dc075===_0x1562a1)break;else _0x97c5d['push'](_0x97c5d['shift']());}catch(_0x296ca2){_0x97c5d['push'](_0x97c5d['shift']());}}}(a59_0x2a06,0xac015));import{CliError,createCliErrors}from'@lovrabet/cli-framework';import{CLI_BIN_NAME}from'./constant/cli.js';function a59_0x2a06(){const _0x48d43f=['1192844GzzYcc','Run\x20this\x20command\x20inside\x20a\x20directory\x20with\x20a\x20','newConfigFileName','20KYEbuc','6YFNOvj','6492745Xzkehx','337083jNTTRI','14225eWOPIF','Set\x20appcode\x20via\x20--appcode\x20or\x20','1313936MiJLOW','\x20auth\x20login`.','24771879LEJMrk','5024815htSpAe','Configure\x20accessKey\x20in\x20'];a59_0x2a06=function(){return _0x48d43f;};return a59_0x2a06();}import{PRODUCT_CONFIG}from'./constant/product.js';export{CliError};function a59_0x67b4(_0x587d8f,_0xdfd21a){_0x587d8f=_0x587d8f-0x1d6;const _0x2a06ed=a59_0x2a06();let _0x67b4a3=_0x2a06ed[_0x587d8f];return _0x67b4a3;}export const CliErrors=createCliErrors({'cliBinName':CLI_BIN_NAME,'authRequiredHint':a59_0x5e8c93(0x1d7)+PRODUCT_CONFIG[a59_0x5e8c93(0x1da)]+'\x20or\x20run\x20`'+CLI_BIN_NAME+a59_0x5e8c93(0x1e2),'configMissingHint':a59_0x5e8c93(0x1e0)+PRODUCT_CONFIG[a59_0x5e8c93(0x1da)]+'.','notInProjectHint':a59_0x5e8c93(0x1d9)+PRODUCT_CONFIG[a59_0x5e8c93(0x1da)]+'\x20file.'});
1
+ const a59_0x565e5e=a59_0x22d7;function a59_0x111a(){const _0x5c371a=['894393JScYZo','newConfigFileName','82086pOFmaK','4338834AjDyba','\x20auth\x20login`.','Set\x20appcode\x20via\x20--appcode\x20or\x20','Configure\x20accessKey\x20in\x20','165752KnmMxO','\x20or\x20run\x20`','8090712dLmDiT','62bEkFGC','2785NgoeYs','1436uFejry','112YIUvFt','\x20file.','Run\x20this\x20command\x20inside\x20a\x20directory\x20with\x20a\x20','1018170sZEwjG'];a59_0x111a=function(){return _0x5c371a;};return a59_0x111a();}(function(_0x21d45b,_0x4e4aeb){const _0x735d45=a59_0x22d7,_0x37daa5=_0x21d45b();while(!![]){try{const _0x2418ea=-parseInt(_0x735d45(0x112))/0x1+-parseInt(_0x735d45(0x115))/0x2*(parseInt(_0x735d45(0x11e))/0x3)+-parseInt(_0x735d45(0x117))/0x4*(-parseInt(_0x735d45(0x116))/0x5)+-parseInt(_0x735d45(0x10e))/0x6+parseInt(_0x735d45(0x114))/0x7+parseInt(_0x735d45(0x118))/0x8*(parseInt(_0x735d45(0x11c))/0x9)+-parseInt(_0x735d45(0x11b))/0xa;if(_0x2418ea===_0x4e4aeb)break;else _0x37daa5['push'](_0x37daa5['shift']());}catch(_0x149358){_0x37daa5['push'](_0x37daa5['shift']());}}}(a59_0x111a,0xddb5f));import{CliError,createCliErrors}from'@lovrabet/cli-framework';import{CLI_BIN_NAME}from'./constant/cli.js';import{PRODUCT_CONFIG}from'./constant/product.js';export{CliError};function a59_0x22d7(_0x8b3677,_0x485d0f){_0x8b3677=_0x8b3677-0x10e;const _0x111a6c=a59_0x111a();let _0x22d7c4=_0x111a6c[_0x8b3677];return _0x22d7c4;}export const CliErrors=createCliErrors({'cliBinName':CLI_BIN_NAME,'authRequiredHint':a59_0x565e5e(0x111)+PRODUCT_CONFIG[a59_0x565e5e(0x11d)]+a59_0x565e5e(0x113)+CLI_BIN_NAME+a59_0x565e5e(0x10f),'configMissingHint':a59_0x565e5e(0x110)+PRODUCT_CONFIG['newConfigFileName']+'.','notInProjectHint':a59_0x565e5e(0x11a)+PRODUCT_CONFIG['newConfigFileName']+a59_0x565e5e(0x119)});
@@ -1 +1 @@
1
- (function(_0x3b7e7f,_0x41166b){var _0x59b9ff=a60_0x4149,_0x56e0a8=_0x3b7e7f();while(!![]){try{var _0x11f12a=-parseInt(_0x59b9ff(0xb2))/0x1*(-parseInt(_0x59b9ff(0xb3))/0x2)+-parseInt(_0x59b9ff(0xb4))/0x3+-parseInt(_0x59b9ff(0xb8))/0x4*(parseInt(_0x59b9ff(0xb9))/0x5)+parseInt(_0x59b9ff(0xb1))/0x6*(parseInt(_0x59b9ff(0xb5))/0x7)+-parseInt(_0x59b9ff(0xb0))/0x8+parseInt(_0x59b9ff(0xb7))/0x9*(parseInt(_0x59b9ff(0xaf))/0xa)+-parseInt(_0x59b9ff(0xae))/0xb*(-parseInt(_0x59b9ff(0xb6))/0xc);if(_0x11f12a===_0x41166b)break;else _0x56e0a8['push'](_0x56e0a8['shift']());}catch(_0x3060fd){_0x56e0a8['push'](_0x56e0a8['shift']());}}}(a60_0x287d,0x20fe3));import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';function a60_0x287d(){var _0x8b5181=['716112PXrNsX','8UFdrrW','479985pGZvsv','11zPpQtD','20QqHeUg','222200MNtNcg','6sHtmAl','1qnmbZk','110584wAuZyU','620625XBgtii','288274SXjcHy','3674076YfruQy'];a60_0x287d=function(){return _0x8b5181;};return a60_0x287d();}import{buildAllFlags as a60_0x21ba12}from'@lovrabet/cli-framework';function a60_0x4149(_0x777e55,_0x261dae){_0x777e55=_0x777e55-0xae;var _0x287d9a=a60_0x287d();var _0x4149b1=_0x287d9a[_0x777e55];return _0x4149b1;}export function buildAllFlags(_0x4db968){return a60_0x21ba12(_0x4db968,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});}
1
+ (function(_0xe3690b,_0xcb103c){var _0x413788=a60_0x3d53,_0x2c503f=_0xe3690b();while(!![]){try{var _0x59c604=-parseInt(_0x413788(0xa2))/0x1*(parseInt(_0x413788(0xa1))/0x2)+-parseInt(_0x413788(0xa4))/0x3+-parseInt(_0x413788(0xa5))/0x4+parseInt(_0x413788(0x9f))/0x5+parseInt(_0x413788(0xa0))/0x6+parseInt(_0x413788(0xa3))/0x7+parseInt(_0x413788(0xa6))/0x8;if(_0x59c604===_0xcb103c)break;else _0x2c503f['push'](_0x2c503f['shift']());}catch(_0x521d1a){_0x2c503f['push'](_0x2c503f['shift']());}}}(a60_0x3458,0x56b95));import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';import{buildAllFlags as a60_0x53dccf}from'@lovrabet/cli-framework';export function buildAllFlags(_0x4036b2){return a60_0x53dccf(_0x4036b2,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});}function a60_0x3d53(_0x40e310,_0xde258d){_0x40e310=_0x40e310-0x9f;var _0x34580f=a60_0x3458();var _0x3d53e1=_0x34580f[_0x40e310];return _0x3d53e1;}function a60_0x3458(){var _0x3eeed3=['3272240zcfvza','975678qEJjLS','517658ocArtO','2sTaQdc','327313nMToxZ','279660gQtZpH','482200FuelUJ','1782632uHhBht'];a60_0x3458=function(){return _0x3eeed3;};return a60_0x3458();}
@@ -1 +1 @@
1
- function a61_0x15f9(_0x24bcd9,_0x2af29d){_0x24bcd9=_0x24bcd9-0xfc;const _0x5e01d9=a61_0x5e01();let _0x15f9e1=_0x5e01d9[_0x24bcd9];return _0x15f9e1;}(function(_0xebf541,_0x52f246){const _0x5b7919=a61_0x15f9,_0x560748=_0xebf541();while(!![]){try{const _0x4caead=parseInt(_0x5b7919(0x100))/0x1*(parseInt(_0x5b7919(0x105))/0x2)+parseInt(_0x5b7919(0xff))/0x3*(-parseInt(_0x5b7919(0x107))/0x4)+-parseInt(_0x5b7919(0xfe))/0x5+-parseInt(_0x5b7919(0x103))/0x6+parseInt(_0x5b7919(0xfd))/0x7*(-parseInt(_0x5b7919(0xfc))/0x8)+-parseInt(_0x5b7919(0x102))/0x9*(-parseInt(_0x5b7919(0x104))/0xa)+parseInt(_0x5b7919(0x101))/0xb;if(_0x4caead===_0x52f246)break;else _0x560748['push'](_0x560748['shift']());}catch(_0xec31fd){_0x560748['push'](_0x560748['shift']());}}}(a61_0x5e01,0xbca2b));function a61_0x5e01(){const _0x69a484=['948646RNUzvz','description','88QbmiHF','72xvlRzv','491246AjFiNy','4590425ZgWwwC','143121BicCLt','1xAhaxJ','36055074slQOIB','9318933bRtIna','8493612tvEcSI','10UHPCLC'];a61_0x5e01=function(){return _0x69a484;};return a61_0x5e01();}export function dryRun(_0x19556a,_0x234a2d){const _0x10e30b={'method':_0x19556a,'url':_0x234a2d},_0x5d4a91={'body'(_0x2d7d38){return _0x10e30b['body']=_0x2d7d38,_0x5d4a91;},'description'(_0x25629d){const _0x1868a3=a61_0x15f9;return _0x10e30b[_0x1868a3(0x106)]=_0x25629d,_0x5d4a91;},'build'(){return{..._0x10e30b};}};return _0x5d4a91;}
1
+ function a61_0x56e5(_0x543d1e,_0x5d8746){_0x543d1e=_0x543d1e-0xf8;const _0x1cdfc1=a61_0x1cdf();let _0x56e57a=_0x1cdfc1[_0x543d1e];return _0x56e57a;}(function(_0x3ad36a,_0x3cf325){const _0xf6c704=a61_0x56e5,_0x55e045=_0x3ad36a();while(!![]){try{const _0x49c924=-parseInt(_0xf6c704(0xfa))/0x1*(-parseInt(_0xf6c704(0xff))/0x2)+-parseInt(_0xf6c704(0x103))/0x3+-parseInt(_0xf6c704(0xf8))/0x4*(parseInt(_0xf6c704(0xfb))/0x5)+parseInt(_0xf6c704(0x105))/0x6*(-parseInt(_0xf6c704(0x100))/0x7)+parseInt(_0xf6c704(0xfd))/0x8*(parseInt(_0xf6c704(0xfc))/0x9)+parseInt(_0xf6c704(0x101))/0xa+-parseInt(_0xf6c704(0xfe))/0xb*(parseInt(_0xf6c704(0x102))/0xc);if(_0x49c924===_0x3cf325)break;else _0x55e045['push'](_0x55e045['shift']());}catch(_0x3b3dc7){_0x55e045['push'](_0x55e045['shift']());}}}(a61_0x1cdf,0xee787));export function dryRun(_0x4a76f5,_0xdecd08){const _0x3ba66b={'method':_0x4a76f5,'url':_0xdecd08},_0x1e3a8c={'body'(_0xbdb76b){const _0x2725bb=a61_0x56e5;return _0x3ba66b[_0x2725bb(0x104)]=_0xbdb76b,_0x1e3a8c;},'description'(_0x20e513){const _0x51f8c5=a61_0x56e5;return _0x3ba66b[_0x51f8c5(0xf9)]=_0x20e513,_0x1e3a8c;},'build'(){return{..._0x3ba66b};}};return _0x1e3a8c;}function a61_0x1cdf(){const _0x39647e=['25sYuiYU','30483scOvuC','3832biWeri','16028309qfUEUd','2MwuvjR','7JvyEbT','4276830YJeIvr','12ssIqIu','1080330fOkBUu','body','1440948QfukkE','604188GcfpLf','description','1739341CExXIe'];a61_0x1cdf=function(){return _0x39647e;};return a61_0x1cdf();}
@@ -1 +1 @@
1
- function a62_0x1f43(){const _0x12b8b4=['1331750IBjmpf','4354196DBPIEW','5780007cbbzaB','60hVbIva','16eNcdqZ','parseFlags','77144xFqjRi','1092138vmgZlr','validateFlags','361752gWnRdM','6520638jPtkLn'];a62_0x1f43=function(){return _0x12b8b4;};return a62_0x1f43();}const a62_0xc87e4d=a62_0x3d1e;(function(_0x452715,_0xdfd5fc){const _0x24a86c=a62_0x3d1e,_0x17c14e=_0x452715();while(!![]){try{const _0x313e6d=parseInt(_0x24a86c(0x173))/0x1+-parseInt(_0x24a86c(0x178))/0x2+-parseInt(_0x24a86c(0x174))/0x3+parseInt(_0x24a86c(0x176))/0x4*(parseInt(_0x24a86c(0x17b))/0x5)+parseInt(_0x24a86c(0x177))/0x6+parseInt(_0x24a86c(0x179))/0x7+-parseInt(_0x24a86c(0x17c))/0x8*(parseInt(_0x24a86c(0x17a))/0x9);if(_0x313e6d===_0xdfd5fc)break;else _0x17c14e['push'](_0x17c14e['shift']());}catch(_0x1b9759){_0x17c14e['push'](_0x17c14e['shift']());}}}(a62_0x1f43,0x87f22));function a62_0x3d1e(_0xd29bbf,_0x27bf2f){_0xd29bbf=_0xd29bbf-0x172;const _0x1f4359=a62_0x1f43();let _0x3d1e67=_0x1f4359[_0xd29bbf];return _0x3d1e67;}import{createFlagHelpers}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';const helpers=createFlagHelpers(CliErrors);export const parseFlags=helpers[a62_0xc87e4d(0x172)];export const validateFlags=helpers[a62_0xc87e4d(0x175)];
1
+ const a62_0x29ff3c=a62_0x18e3;(function(_0x4343c4,_0x257d84){const _0xa9dd85=a62_0x18e3,_0x15c7f0=_0x4343c4();while(!![]){try{const _0x4565e3=parseInt(_0xa9dd85(0x170))/0x1+-parseInt(_0xa9dd85(0x172))/0x2*(-parseInt(_0xa9dd85(0x177))/0x3)+-parseInt(_0xa9dd85(0x179))/0x4*(-parseInt(_0xa9dd85(0x176))/0x5)+parseInt(_0xa9dd85(0x173))/0x6+-parseInt(_0xa9dd85(0x175))/0x7+-parseInt(_0xa9dd85(0x178))/0x8+parseInt(_0xa9dd85(0x171))/0x9;if(_0x4565e3===_0x257d84)break;else _0x15c7f0['push'](_0x15c7f0['shift']());}catch(_0x309b2e){_0x15c7f0['push'](_0x15c7f0['shift']());}}}(a62_0xea05,0xf1462));import{createFlagHelpers}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';const helpers=createFlagHelpers(CliErrors);function a62_0xea05(){const _0x10d608=['88jwpQXj','validateFlags','355378tHUqvE','4661829UnSrHY','2504686MMzZAF','3394620OZxMot','parseFlags','5638570TDXSNo','226045gIIbyK','3AwILvk','15138416gXzIfg'];a62_0xea05=function(){return _0x10d608;};return a62_0xea05();}export const parseFlags=helpers[a62_0x29ff3c(0x174)];function a62_0x18e3(_0x5597f5,_0x1e5dd9){_0x5597f5=_0x5597f5-0x16f;const _0xea05fe=a62_0xea05();let _0x18e34e=_0xea05fe[_0x5597f5];return _0x18e34e;}export const validateFlags=helpers[a62_0x29ff3c(0x16f)];
@@ -1 +1 @@
1
- (function(_0x247c8c,_0x14a6fb){const _0x3d98ee=a63_0x411d,_0x5392a9=_0x247c8c();while(!![]){try{const _0x100c75=parseInt(_0x3d98ee(0x11f))/0x1+-parseInt(_0x3d98ee(0x12b))/0x2+-parseInt(_0x3d98ee(0x11b))/0x3+-parseInt(_0x3d98ee(0x122))/0x4+parseInt(_0x3d98ee(0x11c))/0x5+parseInt(_0x3d98ee(0x12a))/0x6+-parseInt(_0x3d98ee(0x125))/0x7*(parseInt(_0x3d98ee(0x11d))/0x8);if(_0x100c75===_0x14a6fb)break;else _0x5392a9['push'](_0x5392a9['shift']());}catch(_0x54d72f){_0x5392a9['push'](_0x5392a9['shift']());}}}(a63_0x1132,0xd4902));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 _0x47114b=a63_0x411d;return createHelpGenerators({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'globalFlags':GLOBAL_FLAGS,'serviceRegistry':[...serviceRegistry,...safeListDynamicServiceEntries()],'getServiceEntry':getAnyServiceEntry,'getServiceDefinitions':getAnyServiceDefinitions,'buildAllFlags':buildAllFlags,'appPrerequisiteText':_0x47114b(0x11e)+PRODUCT_CONFIG[_0x47114b(0x120)]+_0x47114b(0x124)});}function a63_0x1132(){const _0x314ca6=['1539241ZkpDdk','newConfigFileName','generateServiceHelp','1804536QBcYcU','map','\x20or\x20--appcode).','2053114pqCwvB','generateCommandHelp','service','get','has','6769650DgSmOy','1921548ppmIvX','generateFullHelp','3133044gNVOmc','4763500EezYyh','8iBeumN','Requires\x20appcode\x20(set\x20via\x20'];a63_0x1132=function(){return _0x314ca6;};return a63_0x1132();}function a63_0x411d(_0x1caf33,_0x1a94ad){_0x1caf33=_0x1caf33-0x11a;const _0x113280=a63_0x1132();let _0x411da9=_0x113280[_0x1caf33];return _0x411da9;}export function generateCommandHelp(_0x53cfb8){const _0x37daf7=a63_0x411d;return createGenerators()[_0x37daf7(0x126)](_0x53cfb8);}export function generateServiceHelp(_0x120638){const _0x5c5ce0=a63_0x411d;return createGenerators()[_0x5c5ce0(0x121)](_0x120638);}export function generateFullHelp(){const _0x5805ed=a63_0x411d;return createGenerators()[_0x5805ed(0x11a)]();}function getAnyServiceEntry(_0x474035){const _0x3a6ef6=getServiceEntry(_0x474035);if(_0x3a6ef6)return _0x3a6ef6;try{return getDynamicServiceEntry(_0x474035);}catch{return undefined;}}function getAnyServiceDefinitions(_0x47a081){const _0x117383=a63_0x411d,_0x2bb42f=serviceGroups[_0x117383(0x128)](_0x47a081);if(_0x2bb42f)return _0x2bb42f;try{return getDynamicServiceDefinitions(_0x47a081);}catch{return undefined;}}function safeListDynamicServiceEntries(){const _0x5d8f57=a63_0x411d,_0x51ed43=new Set(serviceRegistry[_0x5d8f57(0x123)](_0x3f5f16=>_0x3f5f16[_0x5d8f57(0x127)]));try{return listDynamicServiceEntries()['filter'](_0x380720=>!_0x51ed43[_0x5d8f57(0x129)](_0x380720[_0x5d8f57(0x127)]));}catch{return[];}}
1
+ (function(_0x3702f8,_0x144abe){const _0x14df53=a63_0x4fa9,_0xf31f4f=_0x3702f8();while(!![]){try{const _0x40d7cb=parseInt(_0x14df53(0x19c))/0x1*(parseInt(_0x14df53(0x19e))/0x2)+-parseInt(_0x14df53(0x1a0))/0x3*(parseInt(_0x14df53(0x19d))/0x4)+-parseInt(_0x14df53(0x19b))/0x5*(-parseInt(_0x14df53(0x192))/0x6)+parseInt(_0x14df53(0x1a5))/0x7+-parseInt(_0x14df53(0x198))/0x8+-parseInt(_0x14df53(0x199))/0x9+-parseInt(_0x14df53(0x19a))/0xa*(-parseInt(_0x14df53(0x1a4))/0xb);if(_0x40d7cb===_0x144abe)break;else _0xf31f4f['push'](_0xf31f4f['shift']());}catch(_0x545814){_0xf31f4f['push'](_0xf31f4f['shift']());}}}(a63_0xd379,0x85891));import{createHelpGenerators}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';import{serviceRegistry,serviceGroups,getServiceEntry}from'../commands/registry.js';import{getDynamicServiceDefinitions,getDynamicServiceEntry,listDynamicServiceEntries}from'../commands/service/dynamic.js';function a63_0x4fa9(_0x34e25a,_0x1d1f6a){_0x34e25a=_0x34e25a-0x192;const _0xd379c5=a63_0xd379();let _0x4fa9a7=_0xd379c5[_0x34e25a];return _0x4fa9a7;}import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';import{PRODUCT_CONFIG}from'../constant/product.js';function createGenerators(){const _0x56635a=a63_0x4fa9;return createHelpGenerators({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'globalFlags':GLOBAL_FLAGS,'serviceRegistry':[...serviceRegistry,...safeListDynamicServiceEntries()],'getServiceEntry':getAnyServiceEntry,'getServiceDefinitions':getAnyServiceDefinitions,'buildAllFlags':buildAllFlags,'appPrerequisiteText':_0x56635a(0x1a1)+PRODUCT_CONFIG[_0x56635a(0x194)]+'\x20or\x20--appcode).'});}export function generateCommandHelp(_0x4b9d72){return createGenerators()['generateCommandHelp'](_0x4b9d72);}export function generateServiceHelp(_0x499990){const _0x346b3c=a63_0x4fa9;return createGenerators()[_0x346b3c(0x195)](_0x499990);}export function generateFullHelp(){const _0x14eba0=a63_0x4fa9;return createGenerators()[_0x14eba0(0x197)]();}function getAnyServiceEntry(_0x47bc62){const _0x269916=getServiceEntry(_0x47bc62);if(_0x269916)return _0x269916;try{return getDynamicServiceEntry(_0x47bc62);}catch{return undefined;}}function getAnyServiceDefinitions(_0x25f6f4){const _0x541342=a63_0x4fa9,_0x497e4b=serviceGroups[_0x541342(0x196)](_0x25f6f4);if(_0x497e4b)return _0x497e4b;try{return getDynamicServiceDefinitions(_0x25f6f4);}catch{return undefined;}}function safeListDynamicServiceEntries(){const _0x2877fc=a63_0x4fa9,_0x4c96f0=new Set(serviceRegistry[_0x2877fc(0x1a2)](_0x551d2a=>_0x551d2a[_0x2877fc(0x193)]));try{return listDynamicServiceEntries()[_0x2877fc(0x1a3)](_0xa02ea3=>!_0x4c96f0[_0x2877fc(0x19f)](_0xa02ea3['service']));}catch{return[];}}function a63_0xd379(){const _0x79e2ed=['generateFullHelp','4102576XvJRZm','8396109juIKrB','9270BWPhed','236705wCtzwy','4195lZRpbM','264NFzCaY','244yrMtBj','has','9531ybHdrN','Requires\x20appcode\x20(set\x20via\x20','map','filter','4741LMFKez','3403694FdJOZj','102ijGRIN','service','newConfigFileName','generateServiceHelp','get'];a63_0xd379=function(){return _0x79e2ed;};return a63_0xd379();}
@@ -1 +1 @@
1
- (function(_0x200006,_0x154a82){var _0xd4ac02=a64_0x39be,_0x17039e=_0x200006();while(!![]){try{var _0x56b23f=-parseInt(_0xd4ac02(0x6d))/0x1+parseInt(_0xd4ac02(0x71))/0x2+-parseInt(_0xd4ac02(0x6a))/0x3+-parseInt(_0xd4ac02(0x67))/0x4*(parseInt(_0xd4ac02(0x6b))/0x5)+-parseInt(_0xd4ac02(0x69))/0x6*(-parseInt(_0xd4ac02(0x70))/0x7)+parseInt(_0xd4ac02(0x6e))/0x8*(parseInt(_0xd4ac02(0x6f))/0x9)+parseInt(_0xd4ac02(0x68))/0xa*(-parseInt(_0xd4ac02(0x6c))/0xb);if(_0x56b23f===_0x154a82)break;else _0x17039e['push'](_0x17039e['shift']());}catch(_0x10116e){_0x17039e['push'](_0x17039e['shift']());}}}(a64_0x4b2c,0xdd54a));export{runCommand}from'../framework/runner.js';export{parseFlags,validateFlags}from'../framework/flags.js';export{formatOutput}from'../framework/output.js';export{generateCommandHelp,generateServiceHelp,generateFullHelp}from'../framework/help.js';function a64_0x4b2c(){var _0x33145d=['872505BfeukY','394040xDpMJR','144KQKfyR','259wwSWiB','1524372QHDHrP','792CQWOTF','79410DvuDpP','268662dUuXnK','2285739miHlik','7795UuHPeB','495KUqscK'];a64_0x4b2c=function(){return _0x33145d;};return a64_0x4b2c();}function a64_0x39be(_0x171a8e,_0x5f020b){_0x171a8e=_0x171a8e-0x67;var _0x4b2cee=a64_0x4b2c();var _0x39beee=_0x4b2cee[_0x171a8e];return _0x39beee;}export{extractList,extractPaging}from'../framework/response.js';export{dryRun}from'../framework/dryrun.js';export{riskLevelOrder,isValidFormat}from'../framework/types.js';
1
+ (function(_0x49e17c,_0x4c4183){var _0x85e99c=a64_0x3cd7,_0x441d60=_0x49e17c();while(!![]){try{var _0x2ac31d=parseInt(_0x85e99c(0x1e2))/0x1*(parseInt(_0x85e99c(0x1e9))/0x2)+-parseInt(_0x85e99c(0x1e4))/0x3*(parseInt(_0x85e99c(0x1e8))/0x4)+parseInt(_0x85e99c(0x1e3))/0x5+parseInt(_0x85e99c(0x1e7))/0x6+-parseInt(_0x85e99c(0x1ea))/0x7*(-parseInt(_0x85e99c(0x1e6))/0x8)+-parseInt(_0x85e99c(0x1e1))/0x9+-parseInt(_0x85e99c(0x1e5))/0xa*(-parseInt(_0x85e99c(0x1eb))/0xb);if(_0x2ac31d===_0x4c4183)break;else _0x441d60['push'](_0x441d60['shift']());}catch(_0x32a92f){_0x441d60['push'](_0x441d60['shift']());}}}(a64_0x20a0,0x8575a));export{runCommand}from'../framework/runner.js';export{parseFlags,validateFlags}from'../framework/flags.js';export{formatOutput}from'../framework/output.js';export{generateCommandHelp,generateServiceHelp,generateFullHelp}from'../framework/help.js';function a64_0x20a0(){var _0x23c27a=['280175myJXjm','3229689jBQkIb','5524540fBCyId','184woSsFQ','516714GxToyJ','4VNUvMf','698QUDXbK','189693hZjTQg','33lhgHWf','9423189qWpOEC','709zcvmZS'];a64_0x20a0=function(){return _0x23c27a;};return a64_0x20a0();}export{extractList,extractPaging}from'../framework/response.js';export{dryRun}from'../framework/dryrun.js';function a64_0x3cd7(_0x2497d4,_0x20d94d){_0x2497d4=_0x2497d4-0x1e1;var _0x20a011=a64_0x20a0();var _0x3cd7f0=_0x20a011[_0x2497d4];return _0x3cd7f0;}export{riskLevelOrder,isValidFormat}from'../framework/types.js';
@@ -1 +1 @@
1
- (function(_0x5919c1,_0x3903da){const _0x522961=a65_0x664a,_0x4544b6=_0x5919c1();while(!![]){try{const _0x45847f=-parseInt(_0x522961(0x14c))/0x1+-parseInt(_0x522961(0x148))/0x2+parseInt(_0x522961(0x14a))/0x3+-parseInt(_0x522961(0x143))/0x4+parseInt(_0x522961(0x13e))/0x5+-parseInt(_0x522961(0x14b))/0x6+-parseInt(_0x522961(0x145))/0x7*(-parseInt(_0x522961(0x144))/0x8);if(_0x45847f===_0x3903da)break;else _0x4544b6['push'](_0x4544b6['shift']());}catch(_0x55797f){_0x4544b6['push'](_0x4544b6['shift']());}}}(a65_0x1233,0xec6db));function a65_0x664a(_0x13b65e,_0x5b34e2){_0x13b65e=_0x13b65e-0x13e;const _0x123381=a65_0x1233();let _0x664a67=_0x123381[_0x13b65e];return _0x664a67;}import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';function a65_0x1233(){const _0x4c4e57=['4916430IMQusY','5434464gwEoNx','1771868hIbDgJ','8253965pvZrzW','error','message','pretty','url','5708284guXRux','3666888sWTEpu','49LLKSbf','update','_notice','2850072zkpbYh','format'];a65_0x1233=function(){return _0x4c4e57;};return a65_0x1233();}import{CliErrors}from'../errors.js';const baseFormatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});export function formatOutput(_0x2b87a4,_0x4db17d){const _0x167df6=a65_0x664a,_0x1568a5=_0x2b87a4[_0x167df6(0x147)],{_notice:_0x2d1815,..._0x3f00a9}=_0x2b87a4;void _0x2d1815,baseFormatOutput(_0x3f00a9,_0x4db17d),_0x4db17d[_0x167df6(0x149)]===_0x167df6(0x141)&&printPrettyNotice(_0x1568a5);}function printPrettyNotice(_0x52ea6d){const _0x29a363=a65_0x664a;if(!_0x52ea6d?.[_0x29a363(0x146)])return;console[_0x29a363(0x13f)](_0x52ea6d[_0x29a363(0x146)][_0x29a363(0x140)]+'\x20('+_0x52ea6d[_0x29a363(0x146)][_0x29a363(0x142)]+')');}
1
+ function a65_0x4cfd(){const _0x5ec6b1=['4oWKpgu','1739815FJZpum','url','35086051CXAvCA','32MqraGh','10cNmmMZ','error','3488118KUhnhN','18kPuhgg','129798YeSMVz','format','1425601ZcvuBO','message','4516470DiALDH','update','2747970MedPEL'];a65_0x4cfd=function(){return _0x5ec6b1;};return a65_0x4cfd();}(function(_0x94072e,_0x24fc91){const _0x6db089=a65_0x48a8,_0x573efe=_0x94072e();while(!![]){try{const _0x206b5f=parseInt(_0x6db089(0x1c1))/0x1+-parseInt(_0x6db089(0x1bf))/0x2*(-parseInt(_0x6db089(0x1be))/0x3)+parseInt(_0x6db089(0x1c6))/0x4*(-parseInt(_0x6db089(0x1c7))/0x5)+parseInt(_0x6db089(0x1bd))/0x6+parseInt(_0x6db089(0x1c3))/0x7+parseInt(_0x6db089(0x1ba))/0x8*(parseInt(_0x6db089(0x1c5))/0x9)+parseInt(_0x6db089(0x1bb))/0xa*(-parseInt(_0x6db089(0x1c9))/0xb);if(_0x206b5f===_0x24fc91)break;else _0x573efe['push'](_0x573efe['shift']());}catch(_0x1b4256){_0x573efe['push'](_0x573efe['shift']());}}}(a65_0x4cfd,0xb111a));import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';const baseFormatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});export function formatOutput(_0x2af490,_0x690c33){const _0x5f1723=a65_0x48a8,_0x351932=_0x2af490['_notice'],{_notice:_0x11d357,..._0x27922c}=_0x2af490;void _0x11d357,baseFormatOutput(_0x27922c,_0x690c33),_0x690c33[_0x5f1723(0x1c0)]==='pretty'&&printPrettyNotice(_0x351932);}function a65_0x48a8(_0x1b164d,_0x35fc3b){_0x1b164d=_0x1b164d-0x1ba;const _0x4cfdac=a65_0x4cfd();let _0x48a83c=_0x4cfdac[_0x1b164d];return _0x48a83c;}function printPrettyNotice(_0x3a4afa){const _0x1d81cf=a65_0x48a8;if(!_0x3a4afa?.[_0x1d81cf(0x1c4)])return;console[_0x1d81cf(0x1bc)](_0x3a4afa['update'][_0x1d81cf(0x1c2)]+'\x20('+_0x3a4afa[_0x1d81cf(0x1c4)][_0x1d81cf(0x1c8)]+')');}
@@ -1 +1 @@
1
- (function(_0x1dfd26,_0x397df7){const _0x14e199=a66_0x2177,_0x149bbd=_0x1dfd26();while(!![]){try{const _0x43af10=parseInt(_0x14e199(0x8b))/0x1+-parseInt(_0x14e199(0x7d))/0x2+-parseInt(_0x14e199(0x85))/0x3+parseInt(_0x14e199(0x9a))/0x4*(-parseInt(_0x14e199(0x9c))/0x5)+-parseInt(_0x14e199(0x89))/0x6+parseInt(_0x14e199(0x7e))/0x7*(-parseInt(_0x14e199(0x9b))/0x8)+parseInt(_0x14e199(0x7c))/0x9*(parseInt(_0x14e199(0x95))/0xa);if(_0x43af10===_0x397df7)break;else _0x149bbd['push'](_0x149bbd['shift']());}catch(_0xe02b65){_0x149bbd['push'](_0x149bbd['shift']());}}}(a66_0x64f5,0x4a0da));function toKebab(_0x1b1376){const _0xeaefe7=a66_0x2177;return _0x1b1376[_0xeaefe7(0x94)](/_/g,'-')[_0xeaefe7(0x94)](/-([A-Z]+)/g,(_0x5af89f,_0x5a3258)=>'-'+_0x5a3258['toLowerCase']())[_0xeaefe7(0x94)](/([a-z0-9])([A-Z])/g,(_0x106fa2,_0x5ce39f,_0x561212)=>_0x5ce39f+'-'+_0x561212)[_0xeaefe7(0x7f)]();}function buildKnownFlags(_0x3ba7a9){const _0x216776=a66_0x2177,_0x3dcf45=new Set();for(const _0x1ef428 of _0x3ba7a9){_0x3dcf45[_0x216776(0x8d)](_0x1ef428[_0x216776(0x9d)]),_0x3dcf45[_0x216776(0x8d)](toCamelCase(_0x1ef428[_0x216776(0x9d)]));}for(const _0x5e8b30 of['dry-run',_0x216776(0x93),_0x216776(0x8e),_0x216776(0x8a)]){_0x3dcf45['add'](_0x5e8b30);}for(const _0x4947c1 of[_0x216776(0x8f),_0x216776(0x7b),_0x216776(0x98),'app',_0x216776(0x81),'non-interactive','ci','global','version']){_0x3dcf45['add'](_0x4947c1);}return _0x3dcf45;}function buildFlagTypeMap(_0x1ee418){const _0x3a6bd6=a66_0x2177,_0x117d03=new Map();for(const _0x759a93 of _0x1ee418){_0x117d03[_0x3a6bd6(0x83)](_0x759a93['name'],_0x759a93[_0x3a6bd6(0x90)]),_0x117d03[_0x3a6bd6(0x83)](toCamelCase(_0x759a93['name']),_0x759a93[_0x3a6bd6(0x90)]);}return _0x117d03;}function toCamelCase(_0x50c473){const _0x4ddf86=a66_0x2177;return _0x50c473[_0x4ddf86(0x94)](/-([a-z])/g,(_0x4b368b,_0x473a97)=>_0x473a97['toUpperCase']());}function aliasHandler(_0x371d90,_0x13cd26){const _0x317d5a=a66_0x2177,_0x5027ff=[];for(const _0x43625a of Object[_0x317d5a(0x87)](_0x371d90)){if(_0x13cd26[_0x317d5a(0x99)](_0x43625a))continue;const _0x35b34a=toKebab(_0x43625a);_0x35b34a!==_0x43625a&&_0x13cd26[_0x317d5a(0x99)](_0x35b34a)&&_0x5027ff['push']({'original':_0x43625a,'corrected':_0x35b34a,'handler':_0x317d5a(0x96)});}return _0x5027ff;}function stickyHandler(_0x2b03c4,_0x21193c,_0xc8a816){const _0x496619=a66_0x2177,_0x35d60d=[];for(const [_0x5b0617,_0x4d8304]of Object[_0x496619(0x80)](_0x2b03c4)){if(_0x4d8304!==!![])continue;for(let _0x31b53c=_0x5b0617[_0x496619(0x84)]-0x1;_0x31b53c>0x0;_0x31b53c--){const _0x10b1c9=_0x5b0617[_0x496619(0x92)](0x0,_0x31b53c),_0x5b3d2f=_0x5b0617['slice'](_0x31b53c),_0x16d5de=toKebab(_0x10b1c9),_0x1d6494=toCamelCase(_0x10b1c9),_0xa74d29=_0x21193c[_0x496619(0x99)](_0x10b1c9)?_0x10b1c9:_0x21193c['has'](_0x16d5de)?_0x16d5de:_0x21193c[_0x496619(0x99)](_0x1d6494)?_0x1d6494:null;if(!_0xa74d29)continue;const _0x2ad3da=_0xc8a816[_0x496619(0x82)](_0xa74d29)??'string';let _0x2447a8;if(_0x2ad3da===_0x496619(0x86)){const _0x6efd5c=Number(_0x5b3d2f);if(isNaN(_0x6efd5c)||_0x5b3d2f==='')continue;_0x2447a8=_0x6efd5c;}else{if(_0x2ad3da==='boolean')continue;else{if(_0x5b3d2f==='')continue;_0x2447a8=_0x5b3d2f;}}_0x35d60d[_0x496619(0x91)]({'original':_0x5b0617,'corrected':_0xa74d29+'='+_0x2447a8,'handler':_0x496619(0x97)});break;}}return _0x35d60d;}function a66_0x2177(_0x454dac,_0x186857){_0x454dac=_0x454dac-0x7b;const _0x64f52d=a66_0x64f5();let _0x217714=_0x64f52d[_0x454dac];return _0x217714;}function a66_0x64f5(){const _0x1c6851=['appcode','has','257352wxjueT','8mmdDAg','40nOsoxR','name','corrected','env','27qNHaUV','603648tJLRAB','1925518sYYBwi','toLowerCase','entries','nonInteractive','get','set','length','1154034ANfwBL','number','keys','indexOf','2314320uHQCXu','format','144738GkNTFV','string','add','yes','help','type','push','slice','dryRun','replace','6735280TMzxuN','alias','sticky'];a66_0x64f5=function(){return _0x1c6851;};return a66_0x64f5();}export function correctFlags(_0x29206c,_0x4165e6){const _0x22e353=a66_0x2177,_0x1840f1=buildKnownFlags(_0x4165e6),_0x54d79c=buildFlagTypeMap(_0x4165e6),_0x30cbde=aliasHandler(_0x29206c,_0x1840f1),_0x579065=stickyHandler(_0x29206c,_0x1840f1,_0x54d79c),_0x256b2b=[..._0x30cbde,..._0x579065];if(_0x256b2b[_0x22e353(0x84)]===0x0)return{'flags':_0x29206c,'corrections':[]};const _0x1005e5={..._0x29206c},_0x2e2675=new Set();for(const _0x341d98 of _0x30cbde){_0x1005e5[_0x341d98['corrected']]=_0x29206c[_0x341d98['original']],_0x2e2675[_0x22e353(0x8d)](_0x341d98['original']);}for(const _0x1f7d04 of _0x579065){const _0x119d96=_0x1f7d04[_0x22e353(0x9e)][_0x22e353(0x88)]('='),_0x3e63da=_0x1f7d04[_0x22e353(0x9e)]['slice'](0x0,_0x119d96),_0x58d495=_0x1f7d04['corrected'][_0x22e353(0x92)](_0x119d96+0x1),_0x26242a=_0x54d79c[_0x22e353(0x82)](_0x3e63da)??_0x22e353(0x8c);_0x26242a===_0x22e353(0x86)?_0x1005e5[_0x3e63da]=Number(_0x58d495):_0x1005e5[_0x3e63da]=_0x58d495,_0x2e2675[_0x22e353(0x8d)](_0x1f7d04['original']);}for(const _0x28f5e5 of _0x2e2675){delete _0x1005e5[_0x28f5e5];}return{'flags':_0x1005e5,'corrections':_0x256b2b};}
1
+ function a66_0x242d(){const _0x1027af=['version','help','has','name','add','164746EAlhCK','toLowerCase','appcode','slice','number','dry-run','386149rRODio','length','alias','string','original','1930UoQqGb','284uEtWyD','sticky','toUpperCase','keys','global','corrected','11337SNLjiJ','type','16569hbxEHn','format','boolean','2165520nkQPTF','non-interactive','indexOf','set','entries','replace','get','10986NsUxWN','2628936hjxFAi','app','nonInteractive','yes','push','785nSNwwY'];a66_0x242d=function(){return _0x1027af;};return a66_0x242d();}(function(_0x4a300a,_0x39f739){const _0x34f13e=a66_0x1e77,_0x8a5082=_0x4a300a();while(!![]){try{const _0x4370e6=parseInt(_0x34f13e(0x15b))/0x1+parseInt(_0x34f13e(0x155))/0x2+-parseInt(_0x34f13e(0x167))/0x3*(parseInt(_0x34f13e(0x161))/0x4)+parseInt(_0x34f13e(0x14f))/0x5*(-parseInt(_0x34f13e(0x149))/0x6)+parseInt(_0x34f13e(0x142))/0x7+-parseInt(_0x34f13e(0x14a))/0x8+-parseInt(_0x34f13e(0x169))/0x9*(-parseInt(_0x34f13e(0x160))/0xa);if(_0x4370e6===_0x39f739)break;else _0x8a5082['push'](_0x8a5082['shift']());}catch(_0xbc0c3a){_0x8a5082['push'](_0x8a5082['shift']());}}}(a66_0x242d,0x3cbe2));function toKebab(_0x52026d){const _0x37d013=a66_0x1e77;return _0x52026d['replace'](/_/g,'-')[_0x37d013(0x147)](/-([A-Z]+)/g,(_0x279de9,_0x1e1b15)=>'-'+_0x1e1b15[_0x37d013(0x156)]())['replace'](/([a-z0-9])([A-Z])/g,(_0x3a6a2e,_0x11afde,_0x275561)=>_0x11afde+'-'+_0x275561)[_0x37d013(0x156)]();}function buildKnownFlags(_0x36fb4d){const _0x3d6a1a=a66_0x1e77,_0x5d4469=new Set();for(const _0x5b0531 of _0x36fb4d){_0x5d4469['add'](_0x5b0531['name']),_0x5d4469[_0x3d6a1a(0x154)](toCamelCase(_0x5b0531[_0x3d6a1a(0x153)]));}for(const _0x306a69 of[_0x3d6a1a(0x15a),'dryRun',_0x3d6a1a(0x14d),_0x3d6a1a(0x16a)]){_0x5d4469[_0x3d6a1a(0x154)](_0x306a69);}for(const _0x5e2396 of[_0x3d6a1a(0x151),'env',_0x3d6a1a(0x157),_0x3d6a1a(0x14b),_0x3d6a1a(0x14c),_0x3d6a1a(0x143),'ci',_0x3d6a1a(0x165),_0x3d6a1a(0x150)]){_0x5d4469['add'](_0x5e2396);}return _0x5d4469;}function buildFlagTypeMap(_0x49d243){const _0xc867a3=a66_0x1e77,_0x2c0902=new Map();for(const _0x32556f of _0x49d243){_0x2c0902[_0xc867a3(0x145)](_0x32556f['name'],_0x32556f[_0xc867a3(0x168)]),_0x2c0902[_0xc867a3(0x145)](toCamelCase(_0x32556f[_0xc867a3(0x153)]),_0x32556f[_0xc867a3(0x168)]);}return _0x2c0902;}function toCamelCase(_0xd54773){const _0x21f6cc=a66_0x1e77;return _0xd54773['replace'](/-([a-z])/g,(_0x50f6cd,_0x4867ff)=>_0x4867ff[_0x21f6cc(0x163)]());}function a66_0x1e77(_0x14277d,_0x3ff0fe){_0x14277d=_0x14277d-0x142;const _0x242db2=a66_0x242d();let _0x1e77d8=_0x242db2[_0x14277d];return _0x1e77d8;}function aliasHandler(_0x11e301,_0x3f4ac0){const _0x4cad43=a66_0x1e77,_0x25d6b4=[];for(const _0x19eccf of Object[_0x4cad43(0x164)](_0x11e301)){if(_0x3f4ac0['has'](_0x19eccf))continue;const _0x95bba5=toKebab(_0x19eccf);_0x95bba5!==_0x19eccf&&_0x3f4ac0[_0x4cad43(0x152)](_0x95bba5)&&_0x25d6b4['push']({'original':_0x19eccf,'corrected':_0x95bba5,'handler':_0x4cad43(0x15d)});}return _0x25d6b4;}function stickyHandler(_0x5e1979,_0x2b85da,_0x5dfee5){const _0x5afccf=a66_0x1e77,_0x5bad25=[];for(const [_0x2cf4d5,_0x2bef96]of Object[_0x5afccf(0x146)](_0x5e1979)){if(_0x2bef96!==!![])continue;for(let _0x181782=_0x2cf4d5[_0x5afccf(0x15c)]-0x1;_0x181782>0x0;_0x181782--){const _0x5b0255=_0x2cf4d5[_0x5afccf(0x158)](0x0,_0x181782),_0x2ff90a=_0x2cf4d5[_0x5afccf(0x158)](_0x181782),_0x2d3910=toKebab(_0x5b0255),_0x33fedd=toCamelCase(_0x5b0255),_0x55fcae=_0x2b85da[_0x5afccf(0x152)](_0x5b0255)?_0x5b0255:_0x2b85da[_0x5afccf(0x152)](_0x2d3910)?_0x2d3910:_0x2b85da[_0x5afccf(0x152)](_0x33fedd)?_0x33fedd:null;if(!_0x55fcae)continue;const _0x5df68a=_0x5dfee5[_0x5afccf(0x148)](_0x55fcae)??_0x5afccf(0x15e);let _0x524f84;if(_0x5df68a===_0x5afccf(0x159)){const _0x5342f1=Number(_0x2ff90a);if(isNaN(_0x5342f1)||_0x2ff90a==='')continue;_0x524f84=_0x5342f1;}else{if(_0x5df68a===_0x5afccf(0x16b))continue;else{if(_0x2ff90a==='')continue;_0x524f84=_0x2ff90a;}}_0x5bad25[_0x5afccf(0x14e)]({'original':_0x2cf4d5,'corrected':_0x55fcae+'='+_0x524f84,'handler':_0x5afccf(0x162)});break;}}return _0x5bad25;}export function correctFlags(_0x18a09e,_0x2f960e){const _0x4159be=a66_0x1e77,_0x4ec1c9=buildKnownFlags(_0x2f960e),_0x13f75c=buildFlagTypeMap(_0x2f960e),_0x11a4b8=aliasHandler(_0x18a09e,_0x4ec1c9),_0x1cf942=stickyHandler(_0x18a09e,_0x4ec1c9,_0x13f75c),_0x573dac=[..._0x11a4b8,..._0x1cf942];if(_0x573dac[_0x4159be(0x15c)]===0x0)return{'flags':_0x18a09e,'corrections':[]};const _0x7275e8={..._0x18a09e},_0x577f3f=new Set();for(const _0x48a5a5 of _0x11a4b8){_0x7275e8[_0x48a5a5[_0x4159be(0x166)]]=_0x18a09e[_0x48a5a5[_0x4159be(0x15f)]],_0x577f3f[_0x4159be(0x154)](_0x48a5a5[_0x4159be(0x15f)]);}for(const _0x379e19 of _0x1cf942){const _0x2b84b0=_0x379e19[_0x4159be(0x166)][_0x4159be(0x144)]('='),_0x451321=_0x379e19['corrected'][_0x4159be(0x158)](0x0,_0x2b84b0),_0x1f37fe=_0x379e19[_0x4159be(0x166)]['slice'](_0x2b84b0+0x1),_0x2e090a=_0x13f75c[_0x4159be(0x148)](_0x451321)??'string';_0x2e090a===_0x4159be(0x159)?_0x7275e8[_0x451321]=Number(_0x1f37fe):_0x7275e8[_0x451321]=_0x1f37fe,_0x577f3f[_0x4159be(0x154)](_0x379e19['original']);}for(const _0x460ab9 of _0x577f3f){delete _0x7275e8[_0x460ab9];}return{'flags':_0x7275e8,'corrections':_0x573dac};}
@@ -1 +1 @@
1
- (function(_0x5e7efe,_0x137bd0){var _0x3c5326=a67_0x9eac,_0x5bb9d1=_0x5e7efe();while(!![]){try{var _0x4bacc5=-parseInt(_0x3c5326(0x6d))/0x1+-parseInt(_0x3c5326(0x72))/0x2+parseInt(_0x3c5326(0x74))/0x3+-parseInt(_0x3c5326(0x70))/0x4*(-parseInt(_0x3c5326(0x6e))/0x5)+parseInt(_0x3c5326(0x75))/0x6+parseInt(_0x3c5326(0x6f))/0x7+-parseInt(_0x3c5326(0x71))/0x8*(parseInt(_0x3c5326(0x73))/0x9);if(_0x4bacc5===_0x137bd0)break;else _0x5bb9d1['push'](_0x5bb9d1['shift']());}catch(_0x1a21af){_0x5bb9d1['push'](_0x5bb9d1['shift']());}}}(a67_0x3933,0x820dc));function a67_0x3933(){var _0x80bc7b=['3380499HHqXGQ','248952TxaSJK','5107554OzfKvM','265242RMZsDN','22095Mkrotl','5604312jvcJtN','456gOMlOE','8FPowdU','2130144MOpkUp'];a67_0x3933=function(){return _0x80bc7b;};return a67_0x3933();}function a67_0x9eac(_0x2eeb5c,_0xbaf42d){_0x2eeb5c=_0x2eeb5c-0x6d;var _0x3933f0=a67_0x3933();var _0x9eac4e=_0x3933f0[_0x2eeb5c];return _0x9eac4e;}export{extractList,extractPaging}from'@lovrabet/cli-framework';
1
+ function a67_0x28f5(_0x397c52,_0x56c42b){_0x397c52=_0x397c52-0xbd;var _0x4b93ad=a67_0x4b93();var _0x28f51b=_0x4b93ad[_0x397c52];return _0x28f51b;}(function(_0x4c3f74,_0x1b760c){var _0x3cc600=a67_0x28f5,_0x24191e=_0x4c3f74();while(!![]){try{var _0x33349e=parseInt(_0x3cc600(0xc2))/0x1+-parseInt(_0x3cc600(0xc6))/0x2+parseInt(_0x3cc600(0xc0))/0x3*(parseInt(_0x3cc600(0xc5))/0x4)+parseInt(_0x3cc600(0xbd))/0x5*(-parseInt(_0x3cc600(0xc4))/0x6)+-parseInt(_0x3cc600(0xc1))/0x7*(parseInt(_0x3cc600(0xbf))/0x8)+parseInt(_0x3cc600(0xbe))/0x9+parseInt(_0x3cc600(0xc3))/0xa;if(_0x33349e===_0x1b760c)break;else _0x24191e['push'](_0x24191e['shift']());}catch(_0x55a609){_0x24191e['push'](_0x24191e['shift']());}}}(a67_0x4b93,0xe1e42));function a67_0x4b93(){var _0x332efb=['300QIDnoT','2372vrNYBT','2015660dRdvSw','83095UPqRAQ','5937534lUejow','1431512vtlQFm','309pnAUcl','28RPRhDo','1032172ziHpET','17268090iTypCG'];a67_0x4b93=function(){return _0x332efb;};return a67_0x4b93();}export{extractList,extractPaging}from'@lovrabet/cli-framework';