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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (85) hide show
  1. package/lib/cli.js +1 -1
  2. package/lib/commands/api-doc/index.js +1 -1
  3. package/lib/commands/app/cache.js +1 -1
  4. package/lib/commands/app/definitions.js +1 -1
  5. package/lib/commands/app/eligibility.js +1 -1
  6. package/lib/commands/app/mock-loader.js +1 -1
  7. package/lib/commands/app/remote-source.js +1 -1
  8. package/lib/commands/app/shared.js +1 -1
  9. package/lib/commands/artifact/index.js +1 -1
  10. package/lib/commands/auth/index.js +1 -1
  11. package/lib/commands/auth/prompt.js +1 -1
  12. package/lib/commands/bff/detail.js +1 -1
  13. package/lib/commands/bff/exec.js +1 -1
  14. package/lib/commands/bff/index.js +1 -1
  15. package/lib/commands/cli-skill/index.js +1 -1
  16. package/lib/commands/common/config-policy.js +1 -1
  17. package/lib/commands/common/constraints.js +1 -1
  18. package/lib/commands/common/flags.js +1 -1
  19. package/lib/commands/config/definitions.js +1 -1
  20. package/lib/commands/config/shared.js +1 -1
  21. package/lib/commands/data/index.js +1 -1
  22. package/lib/commands/dataset/detail.js +1 -1
  23. package/lib/commands/dataset/index.js +1 -1
  24. package/lib/commands/dataset/list.js +1 -1
  25. package/lib/commands/dataset/sdk-doc.js +1 -1
  26. package/lib/commands/doctor.js +1 -1
  27. package/lib/commands/init.js +1 -1
  28. package/lib/commands/kb/index.js +1 -1
  29. package/lib/commands/logs/index.js +1 -1
  30. package/lib/commands/personal-bff/index.js +1 -1
  31. package/lib/commands/registry.js +1 -1
  32. package/lib/commands/schema.js +1 -1
  33. package/lib/commands/service/dynamic.js +1 -1
  34. package/lib/commands/service/index.js +1 -1
  35. package/lib/commands/service/registry.js +1 -1
  36. package/lib/commands/skill/index.js +1 -1
  37. package/lib/commands/skill/templates.js +1 -1
  38. package/lib/commands/skill/validate.js +1 -1
  39. package/lib/commands/sql/detail.js +1 -1
  40. package/lib/commands/sql/exec.js +1 -1
  41. package/lib/commands/sql/index.js +1 -1
  42. package/lib/commands/update.js +1 -1
  43. package/lib/commands/workspace/index.js +1 -1
  44. package/lib/config/schema.js +1 -1
  45. package/lib/constant/app.js +1 -1
  46. package/lib/constant/auth-mode.js +1 -1
  47. package/lib/constant/cli.js +1 -1
  48. package/lib/constant/defaults.js +1 -1
  49. package/lib/constant/distribution.js +1 -1
  50. package/lib/constant/domain.js +1 -1
  51. package/lib/constant/env.js +1 -1
  52. package/lib/constant/output.js +1 -1
  53. package/lib/constant/product.js +1 -1
  54. package/lib/constant/risk.js +1 -1
  55. package/lib/constant/url.js +1 -1
  56. package/lib/context.js +1 -1
  57. package/lib/core/api-client.js +1 -1
  58. package/lib/core/db-resolver.js +1 -1
  59. package/lib/core/sdk-client.js +1 -1
  60. package/lib/errors.js +1 -1
  61. package/lib/framework/build-all-flags.js +1 -1
  62. package/lib/framework/dryrun.js +1 -1
  63. package/lib/framework/flags.js +1 -1
  64. package/lib/framework/help.js +1 -1
  65. package/lib/framework/index.js +1 -1
  66. package/lib/framework/output.js +1 -1
  67. package/lib/framework/preparse.js +1 -1
  68. package/lib/framework/response.js +1 -1
  69. package/lib/framework/runner-confirmation.js +1 -1
  70. package/lib/framework/runner-error.js +1 -1
  71. package/lib/framework/runner.js +1 -1
  72. package/lib/framework/schema-export.js +1 -1
  73. package/lib/framework/types.js +1 -1
  74. package/lib/generated/build-info.js +1 -1
  75. package/lib/help.js +1 -1
  76. package/lib/skills/npx-skills-add.js +1 -1
  77. package/lib/skills/runtime-skill-sync.js +1 -1
  78. package/lib/utils/apply-jq-filter.js +1 -1
  79. package/lib/utils/logger.js +1 -1
  80. package/lib/utils/params.js +1 -1
  81. package/lib/utils/platform.js +1 -1
  82. package/lib/utils/update-notice.js +1 -1
  83. package/lib/utils/version.js +1 -1
  84. package/lib/utils/write-cli-side-channel.js +1 -1
  85. package/package.json +1 -1
@@ -1 +1 @@
1
- const a49_0x399fba=a49_0x1584;(function(_0x3883dd,_0x3ca4a8){const _0x50ae42=a49_0x1584,_0x235125=_0x3883dd();while(!![]){try{const _0x40ea74=parseInt(_0x50ae42(0x160))/0x1*(-parseInt(_0x50ae42(0x15a))/0x2)+parseInt(_0x50ae42(0x16a))/0x3*(parseInt(_0x50ae42(0x157))/0x4)+-parseInt(_0x50ae42(0x16c))/0x5*(-parseInt(_0x50ae42(0x16b))/0x6)+parseInt(_0x50ae42(0x168))/0x7+parseInt(_0x50ae42(0x15e))/0x8+-parseInt(_0x50ae42(0x15b))/0x9*(-parseInt(_0x50ae42(0x15f))/0xa)+-parseInt(_0x50ae42(0x163))/0xb;if(_0x40ea74===_0x3ca4a8)break;else _0x235125['push'](_0x235125['shift']());}catch(_0x3a42a3){_0x235125['push'](_0x235125['shift']());}}}(a49_0xc55e,0x24e35));import{getEnv,isProduction}from'../constant/env.js';import{PRODUCT_CONFIG}from'../constant/product.js';function a49_0xc55e(){const _0xe1f2cd=['241720SPEYqe','1913ILFqLR','nonProduction','apiDomain','5622166LzmJjZ','production','userDomain','domains','api','1459402NWYCkF','runtimeDomain','3WhUlho','1351482lUBVJe','5uVMGsB','995308VgDrhH','runtime','user','284oyGBSx','81SxVEOf','skillHubDomain','skillhub','269896aFQnhp'];a49_0xc55e=function(){return _0xe1f2cd;};return a49_0xc55e();}let customApiDomain,customUserDomain,customRuntimeDomain,customSkillHubDomain;function a49_0x1584(_0x458dfc,_0x3ac63e){_0x458dfc=_0x458dfc-0x157;const _0xc55e08=a49_0xc55e();let _0x15841d=_0xc55e08[_0x458dfc];return _0x15841d;}export function initDomains(_0x5d5363){const _0x2f15ab=a49_0x1584;customApiDomain=_0x5d5363?.[_0x2f15ab(0x162)],customUserDomain=_0x5d5363?.[_0x2f15ab(0x165)],customRuntimeDomain=_0x5d5363?.[_0x2f15ab(0x169)],customSkillHubDomain=_0x5d5363?.[_0x2f15ab(0x15c)];}export const getUserDomain=()=>customUserDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a49_0x399fba(0x166)][a49_0x399fba(0x164)][a49_0x399fba(0x159)]:PRODUCT_CONFIG[a49_0x399fba(0x166)]['nonProduction']['user']);export const getApiDomain=()=>customApiDomain||(isProduction(getEnv())?PRODUCT_CONFIG['domains'][a49_0x399fba(0x164)][a49_0x399fba(0x167)]:PRODUCT_CONFIG[a49_0x399fba(0x166)][a49_0x399fba(0x161)]['api']);export const getRuntimeDomain=()=>customRuntimeDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a49_0x399fba(0x166)][a49_0x399fba(0x164)][a49_0x399fba(0x158)]:PRODUCT_CONFIG['domains'][a49_0x399fba(0x161)][a49_0x399fba(0x158)]);export const getSkillHubDomain=()=>customSkillHubDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a49_0x399fba(0x166)][a49_0x399fba(0x164)]['skillhub']:PRODUCT_CONFIG[a49_0x399fba(0x166)][a49_0x399fba(0x161)][a49_0x399fba(0x15d)]);
1
+ 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 +1 @@
1
- function a50_0xd216(){const _0x9cd64f=['online','75698akOmVW','production','1521138QgSPsW','daily','ENV','823077yUJLao','7974780nlNOIt','32zIFjOi','7AmPuXZ','dev','development','4YUfFmU','3408985JJOEYR','1959627MZBmZw','22ViKfHc','21750894fxfeqh'];a50_0xd216=function(){return _0x9cd64f;};return a50_0xd216();}const a50_0x4a2e27=a50_0xe7df;(function(_0x187b74,_0x26bf11){const _0x533d63=a50_0xe7df,_0x4e6098=_0x187b74();while(!![]){try{const _0xb68474=parseInt(_0x533d63(0x97))/0x1*(-parseInt(_0x533d63(0x94))/0x2)+parseInt(_0x533d63(0x93))/0x3*(-parseInt(_0x533d63(0x91))/0x4)+-parseInt(_0x533d63(0x92))/0x5+parseInt(_0x533d63(0x99))/0x6*(parseInt(_0x533d63(0x9f))/0x7)+parseInt(_0x533d63(0x9e))/0x8*(-parseInt(_0x533d63(0x9c))/0x9)+parseInt(_0x533d63(0x9d))/0xa+parseInt(_0x533d63(0x95))/0xb;if(_0xb68474===_0x26bf11)break;else _0x4e6098['push'](_0x4e6098['shift']());}catch(_0x419db2){_0x4e6098['push'](_0x4e6098['shift']());}}}(a50_0xd216,0x78d0b));import{productEnv}from'../constant/product.js';export const RUNTIME_ENV_VALUES=['production',a50_0x4a2e27(0x90),a50_0x4a2e27(0x9a)];function a50_0xe7df(_0x5bb019,_0x3021aa){_0x5bb019=_0x5bb019-0x8f;const _0xd216ee=a50_0xd216();let _0xe7dfa1=_0xd216ee[_0x5bb019];return _0xe7dfa1;}export function normalizeEnv(_0x23e9ec){const _0x25da18=a50_0x4a2e27;return _0x23e9ec===_0x25da18(0x96)?_0x25da18(0x98):_0x23e9ec;}export function isProduction(_0x396a4f){const _0x510313=a50_0x4a2e27;return normalizeEnv(_0x396a4f)===_0x510313(0x98);}export function isDaily(_0x5f02a6){const _0x2913f8=a50_0x4a2e27;return normalizeEnv(_0x5f02a6)===_0x2913f8(0x9a);}export function isDev(_0x4fe41b){const _0x292bda=a50_0x4a2e27,_0x538bdc=normalizeEnv(_0x4fe41b);return _0x538bdc===_0x292bda(0x90)||_0x538bdc===_0x292bda(0x8f);}let env=normalizeEnv(productEnv(a50_0x4a2e27(0x9b))||a50_0x4a2e27(0x98));export function getEnv(){return env;}export function initEnv(_0x42d196){env=normalizeEnv(_0x42d196);}
1
+ const a50_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 +1 @@
1
- const a51_0x4641f0=a51_0x1fa9;(function(_0x300b2c,_0x13faf6){const _0x16b7d2=a51_0x1fa9,_0x555189=_0x300b2c();while(!![]){try{const _0x3b79c4=-parseInt(_0x16b7d2(0xed))/0x1*(-parseInt(_0x16b7d2(0xf4))/0x2)+-parseInt(_0x16b7d2(0xf5))/0x3+parseInt(_0x16b7d2(0xee))/0x4+parseInt(_0x16b7d2(0xf0))/0x5+-parseInt(_0x16b7d2(0xf3))/0x6+-parseInt(_0x16b7d2(0xf2))/0x7*(parseInt(_0x16b7d2(0xf1))/0x8)+parseInt(_0x16b7d2(0xef))/0x9;if(_0x3b79c4===_0x13faf6)break;else _0x555189['push'](_0x555189['shift']());}catch(_0x1ef250){_0x555189['push'](_0x555189['shift']());}}}(a51_0x4d91,0xa289c));function a51_0x1fa9(_0x588483,_0x5d793e){_0x588483=_0x588483-0xec;const _0x4d911e=a51_0x4d91();let _0x1fa9e6=_0x4d911e[_0x588483];return _0x1fa9e6;}export const OUTPUT_FORMAT_VALUES=['json','pretty',a51_0x4641f0(0xec)];function a51_0x4d91(){const _0x257bcc=['14930739tcSzNm','2834045WwsVhn','40iYVsQe','1375507saaJGm','4631628boMrxj','2wcEoTK','3706869ffMzLd','compress','1011273wOUVwP','1675076ybZcEw'];a51_0x4d91=function(){return _0x257bcc;};return a51_0x4d91();}
1
+ function a51_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 +1 @@
1
- const a52_0x469b9f=a52_0x15f3;(function(_0x17e2af,_0x8bbc9c){const _0x2d9125=a52_0x15f3,_0x11352f=_0x17e2af();while(!![]){try{const _0x18ff3c=parseInt(_0x2d9125(0xfc))/0x1+parseInt(_0x2d9125(0x106))/0x2+parseInt(_0x2d9125(0x113))/0x3*(-parseInt(_0x2d9125(0x108))/0x4)+parseInt(_0x2d9125(0xff))/0x5*(-parseInt(_0x2d9125(0x100))/0x6)+-parseInt(_0x2d9125(0xfe))/0x7+parseInt(_0x2d9125(0x110))/0x8+parseInt(_0x2d9125(0xfb))/0x9*(parseInt(_0x2d9125(0x101))/0xa);if(_0x18ff3c===_0x8bbc9c)break;else _0x11352f['push'](_0x11352f['shift']());}catch(_0x281ec2){_0x11352f['push'](_0x11352f['shift']());}}}(a52_0x34d5,0xd2027));export const PRODUCT_CONFIG={'cliBinName':a52_0x469b9f(0x10e),'cliDisplayName':a52_0x469b9f(0x103),'npmPackageName':'@lovrabet/lovrabet-cli','skillSource':'lovrabet/lovrabet-cli','npmRegistryBaseUrl':'https://registry.npmjs.org','envPrefix':a52_0x469b9f(0x114),'legacyEnvPrefixes':['RABETBASE'],'configFileNames':['.lovrabet.json',a52_0x469b9f(0x111)],'newConfigFileName':a52_0x469b9f(0x10f),'homeDirName':a52_0x469b9f(0x105),'logFileName':'.lovrabet-runtime.log','invokeSource':a52_0x469b9f(0x10b),'userCenterDisplayName':a52_0x469b9f(0x109),'skipNpxSkillsEnvSuffix':a52_0x469b9f(0x10d),'domains':{'production':{'user':a52_0x469b9f(0x10a),'api':'https://api.lovrabet.com','runtime':a52_0x469b9f(0x10c),'skillhub':'https://skills.lovrabet.com'},'nonProduction':{'user':a52_0x469b9f(0x107),'api':'https://daily-api.lovrabet.com','runtime':a52_0x469b9f(0x104),'skillhub':'https://skills-daily.lovrabet.com'}},'accessKeyCreatePath':'/user/ak'};export function productEnvName(_0x3fe1a1){const _0x24f917=a52_0x469b9f;return PRODUCT_CONFIG[_0x24f917(0x112)]+'_'+_0x3fe1a1;}export function productEnvNames(_0x13c128){const _0x4c42cf=a52_0x469b9f;return[productEnvName(_0x13c128),...PRODUCT_CONFIG[_0x4c42cf(0xfd)][_0x4c42cf(0x102)](_0x109e28=>_0x109e28+'_'+_0x13c128)];}function a52_0x15f3(_0x152a8e,_0x352796){_0x152a8e=_0x152a8e-0xfb;const _0x34d5dd=a52_0x34d5();let _0x15f398=_0x34d5dd[_0x152a8e];return _0x15f398;}function a52_0x34d5(){const _0x34b00d=['754456KobZUF','.lovrabetrc','envPrefix','12UGZhCt','LOVRABET','33131313QwxhAV','1061372jxIbpm','legacyEnvPrefixes','12016466bNRWZr','257995rEiRdq','156HeWZPU','10nnVdEt','map','Lovrabet\x20Runtime\x20CLI','https://daily-runtime.lovrabet.com','.lovrabet','745606hVRzOs','https://user-daily.lovrabet.com','1291328jbVtyC','Lovrabet\x20User\x20Center','https://user.lovrabet.com','cli:lovrabet-runtime','https://runtime.lovrabet.com','SKIP_NPX_SKILLS','lovrabet','.lovrabet.json'];a52_0x34d5=function(){return _0x34b00d;};return a52_0x34d5();}export function productEnv(_0x6746d2){for(const _0x253a59 of productEnvNames(_0x6746d2)){const _0x1218e8=process.env[_0x253a59];if(_0x1218e8!==undefined)return _0x1218e8;}return undefined;}
1
+ const a52_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 +1 @@
1
- function a53_0x2cf3(_0x43a1f7,_0x58a81f){_0x43a1f7=_0x43a1f7-0xc0;const _0x55294a=a53_0x5529();let _0x2cf3f2=_0x55294a[_0x43a1f7];return _0x2cf3f2;}const a53_0x3eb186=a53_0x2cf3;(function(_0x1e818a,_0x45a20c){const _0x572763=a53_0x2cf3,_0x337889=_0x1e818a();while(!![]){try{const _0x23aa05=-parseInt(_0x572763(0xc8))/0x1*(parseInt(_0x572763(0xc3))/0x2)+-parseInt(_0x572763(0xc9))/0x3+-parseInt(_0x572763(0xca))/0x4*(-parseInt(_0x572763(0xc7))/0x5)+-parseInt(_0x572763(0xc1))/0x6+parseInt(_0x572763(0xc2))/0x7+parseInt(_0x572763(0xc5))/0x8+parseInt(_0x572763(0xc6))/0x9*(parseInt(_0x572763(0xc4))/0xa);if(_0x23aa05===_0x45a20c)break;else _0x337889['push'](_0x337889['shift']());}catch(_0x57179f){_0x337889['push'](_0x337889['shift']());}}}(a53_0x5529,0x81524));function a53_0x5529(){const _0x2b416e=['high-risk-write','read','3892518xHpUfa','6324192rNyydz','2ouVKCE','10UvdieC','2039464JMpzZM','5169519qrlBTF','15OyjewZ','689369yJGrOX','429363BOuMZU','370884MQyzcS'];a53_0x5529=function(){return _0x2b416e;};return a53_0x5529();}export const RISK_LEVEL_VALUES=[a53_0x3eb186(0xc0),'write',a53_0x3eb186(0xcb)];
1
+ 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 +1 @@
1
- function a54_0x2a88(){const _0x2c6511=['445484zRbaFU','4748412wizxva','4901491mydhpb','28RiqfCz','3078PmAFhj','5182600zNjtgc','66196BBXVOz','2470977Hlmsvu','domains','45536JsjduP'];a54_0x2a88=function(){return _0x2c6511;};return a54_0x2a88();}const a54_0x31f8dd=a54_0x1a30;function a54_0x1a30(_0x45bcd8,_0x16d443){_0x45bcd8=_0x45bcd8-0x189;const _0x2a880e=a54_0x2a88();let _0x1a30c0=_0x2a880e[_0x45bcd8];return _0x1a30c0;}(function(_0x5cea95,_0x4bd858){const _0x508257=a54_0x1a30,_0x628a5d=_0x5cea95();while(!![]){try{const _0x30f310=-parseInt(_0x508257(0x18c))/0x1*(parseInt(_0x508257(0x189))/0x2)+parseInt(_0x508257(0x18d))/0x3+parseInt(_0x508257(0x190))/0x4+parseInt(_0x508257(0x18b))/0x5+parseInt(_0x508257(0x191))/0x6+parseInt(_0x508257(0x192))/0x7+parseInt(_0x508257(0x18f))/0x8*(-parseInt(_0x508257(0x18a))/0x9);if(_0x30f310===_0x4bd858)break;else _0x628a5d['push'](_0x628a5d['shift']());}catch(_0x18c6ed){_0x628a5d['push'](_0x628a5d['shift']());}}}(a54_0x2a88,0x8ffbd));import{PRODUCT_CONFIG}from'../constant/product.js';export const USER_ACCESS_KEY_CREATE_URL=''+PRODUCT_CONFIG[a54_0x31f8dd(0x18e)]['production']['user']+PRODUCT_CONFIG['accessKeyCreatePath'];
1
+ 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)];
package/lib/context.js CHANGED
@@ -1 +1 @@
1
- const a55_0xa0676c=a55_0x5595;(function(_0x160c07,_0x1f7c5c){const _0x3b9276=a55_0x5595,_0x119ce0=_0x160c07();while(!![]){try{const _0x4b39d5=-parseInt(_0x3b9276(0x178))/0x1*(-parseInt(_0x3b9276(0x14f))/0x2)+-parseInt(_0x3b9276(0x14a))/0x3+parseInt(_0x3b9276(0x171))/0x4*(-parseInt(_0x3b9276(0x15b))/0x5)+parseInt(_0x3b9276(0x13f))/0x6*(-parseInt(_0x3b9276(0x162))/0x7)+-parseInt(_0x3b9276(0x13e))/0x8+-parseInt(_0x3b9276(0x155))/0x9+parseInt(_0x3b9276(0x172))/0xa*(parseInt(_0x3b9276(0x15d))/0xb);if(_0x4b39d5===_0x1f7c5c)break;else _0x119ce0['push'](_0x119ce0['shift']());}catch(_0x465ecb){_0x119ce0['push'](_0x119ce0['shift']());}}}(a55_0xebc4,0x499ea));import{readFileSync,existsSync,mkdirSync,renameSync,unlinkSync,writeFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{homedir}from'node:os';import{logger}from'./utils/logger.js';import{CliErrors}from'./errors.js';import{CLI_BIN_NAME}from'./constant/cli.js';import{PRODUCT_CONFIG,productEnv,productEnvNames}from'./constant/product.js';import{DEFAULT_CONFIG_VALUES}from'./constant/defaults.js';import{normalizeEnv,isDaily,isDev}from'./constant/env.js';function a55_0xebc4(){const _0x1882d0=['code','61071RWcECb','object','riskLevel','app','setRawMode','153276UgZMag','utf8','cache','EACCES','ACCESS_KEY','PAGE_SIZE','5164047hOxFaG','cwd','project','./constant/env.js','userDomain','stdin','5wdvpCr','apps','102113jcZfiU','values','string','write','FORMAT','7MvvCxn','parse','globalConfig','global','newConfigFileName','runtimeDomain','projectConfig','nonInteractive','daily','inherit','skillHubDomain','isTTY','configFileNames','EPERM','accessKey','1704692GeeFID','1670BeqDHZ','true','format','VERBOSE','EXDEV','find','5rRqVhz','some','setRawCommand','online','appcode','production','raw','env','argv','message','ENV','isRaw','1727872LJVeyy','2373648CrJJoo','host','./constant/domain.js','locale','authRequired','trim','error','stringify','defaultApp','.tmp'];a55_0xebc4=function(){return _0x1882d0;};return a55_0xebc4();}import{normalizeLegacyOutputFormat}from'./framework/types.js';import{resolveCachedAppCode}from'./commands/app/cache.js';export{AUTH_MODE,isAuthMode}from'./constant/auth-mode.js';const CONFIG_NAMES=PRODUCT_CONFIG[a55_0xa0676c(0x16e)];export const NEW_CONFIG_NAME=PRODUCT_CONFIG[a55_0xa0676c(0x166)];function resolveConfigPath(_0x51ba19){for(const _0x1bd411 of CONFIG_NAMES){const _0x41d53a=resolve(_0x51ba19,_0x1bd411);if(existsSync(_0x41d53a))return _0x41d53a;}return undefined;}export function resolveWriteConfigPath(_0x3b1451){const _0x4e96ff=a55_0xa0676c,_0x39c7eb=_0x3b1451===_0x4e96ff(0x157)?process[_0x4e96ff(0x156)]():homedir(),_0x2d05f7=resolveConfigPath(_0x39c7eb);return _0x2d05f7??resolve(_0x39c7eb,NEW_CONFIG_NAME);}export function readConfigFile(_0x4d1bab){const _0x89ac1=a55_0xa0676c;try{if(existsSync(_0x4d1bab)){const _0x410463=readFileSync(_0x4d1bab,{'encoding':_0x89ac1(0x150)});if(_0x410463){const _0x19f74c=JSON[_0x89ac1(0x163)](_0x410463);return migrateOnlineEnv(_0x4d1bab,_0x19f74c),_0x19f74c;}}}catch{}return{};}function migrateOnlineEnv(_0xdc9fd1,_0x2608b8){const _0x2d08ad=a55_0xa0676c;let _0x5c12f6=![];_0x2608b8['env']===_0x2d08ad(0x17b)&&(_0x2608b8[_0x2d08ad(0x139)]=_0x2d08ad(0x137),_0x5c12f6=!![]);if(_0x2608b8['apps']&&typeof _0x2608b8[_0x2d08ad(0x15c)]===_0x2d08ad(0x14b))for(const _0x5b9006 of Object[_0x2d08ad(0x15e)](_0x2608b8[_0x2d08ad(0x15c)])){_0x5b9006&&_0x5b9006['env']===_0x2d08ad(0x17b)&&(_0x5b9006[_0x2d08ad(0x139)]=_0x2d08ad(0x137),_0x5c12f6=!![]);}if(_0x5c12f6)try{writeConfigFile(_0xdc9fd1,_0x2608b8);}catch{}}export function writeConfigFile(_0x3dc19,_0x3a2db5){const _0x31e307=a55_0xa0676c,_0xced064=dirname(_0x3dc19);!existsSync(_0xced064)&&mkdirSync(_0xced064,{'recursive':!![]});const _0x47e4bb=_0x3dc19+_0x31e307(0x148);try{writeFileSync(_0x47e4bb,JSON[_0x31e307(0x146)](_0x3a2db5,null,0x2)+'\x0a',{'encoding':_0x31e307(0x150),'mode':0x180});try{renameSync(_0x47e4bb,_0x3dc19);}catch(_0x1ef2a5){if(_0x1ef2a5[_0x31e307(0x149)]===_0x31e307(0x16f)||_0x1ef2a5[_0x31e307(0x149)]===_0x31e307(0x176)||_0x1ef2a5[_0x31e307(0x149)]===_0x31e307(0x152)){writeFileSync(_0x3dc19,JSON['stringify'](_0x3a2db5,null,0x2)+'\x0a',{'encoding':'utf8'});try{unlinkSync(_0x47e4bb);}catch{}}else throw _0x1ef2a5;}}catch(_0x4046e1){try{unlinkSync(_0x47e4bb);}catch{}throw _0x4046e1;}}export function isNonInteractiveMode(_0xf061e4){const _0x275e9f=a55_0xa0676c;return!!(_0xf061e4[_0x275e9f(0x169)]||_0xf061e4['ci']||productEnvNames('CI')[_0x275e9f(0x179)](_0x5390e1=>process.env[_0x5390e1]===_0x275e9f(0x173))||process.env.CI===_0x275e9f(0x173)||!process['stdout'][_0x275e9f(0x16d)]||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x1d99af=a55_0xa0676c;if(!process[_0x1d99af(0x15a)]['isTTY'])return![];try{const _0x480704=process[_0x1d99af(0x15a)][_0x1d99af(0x13d)];return process[_0x1d99af(0x15a)][_0x1d99af(0x14e)](!![]),process[_0x1d99af(0x15a)][_0x1d99af(0x14e)](_0x480704??![]),!![];}catch{return![];}}export async function createContext(_0x3cd718){const _0x12c12e=a55_0xa0676c,_0x10d4c5=readRawConfig(),_0x7565f3=buildConfig(_0x10d4c5,_0x3cd718);await initGlobalEnvironment(_0x7565f3);const {getUserDomain:_0x1af230,getApiDomain:_0x11131c}=await import(_0x12c12e(0x141)),_0x52e651={'apiDomain':_0x11131c(),'userDomain':_0x1af230()},_0x136eec=await buildAuth(_0x7565f3);logger['setLogPath'](process[_0x12c12e(0x156)]());const _0x2bf9ce=(CLI_BIN_NAME+'\x20'+process[_0x12c12e(0x13a)]['slice'](0x2)['join']('\x20'))[_0x12c12e(0x144)]();logger[_0x12c12e(0x17a)](_0x2bf9ce);const _0x280e2b=isNonInteractiveMode(_0x3cd718);return{'config':_0x7565f3,'auth':_0x136eec,'logger':logger,'env':_0x52e651,'nonInteractive':_0x280e2b};}export function buildConfigFromFlags(_0x338285){return buildConfig(readRawConfig(),_0x338285);}export function getLocalAppAliases(_0x2652c5){const _0x26b316=a55_0xa0676c;return _0x2652c5[_0x26b316(0x15c)]&&typeof _0x2652c5['apps']===_0x26b316(0x14b)?_0x2652c5[_0x26b316(0x15c)]:{};}export function resolveLocalAppAliasCode(_0x4422b6,_0x324d10){const _0x99b99e=a55_0xa0676c;if(!_0x324d10)return undefined;const _0x534005=getLocalAppAliases(_0x4422b6)[_0x324d10],_0x2b812d=_0x534005?.[_0x99b99e(0x17c)];return typeof _0x2b812d===_0x99b99e(0x15f)&&_0x2b812d[_0x99b99e(0x144)]()?_0x2b812d[_0x99b99e(0x144)]():undefined;}export function readAppCodeFromConfig(){const _0x3451c4=a55_0xa0676c,_0x144685=readRawConfig(),_0x4ffa61=_0x144685[_0x3451c4(0x17c)]??_0x144685[_0x3451c4(0x14d)];if(typeof _0x4ffa61===_0x3451c4(0x15f)&&_0x4ffa61['trim']())return _0x4ffa61['trim']();const _0x5dffc2=resolveLocalAppAliasCode(_0x144685,typeof _0x144685[_0x3451c4(0x147)]==='string'?_0x144685[_0x3451c4(0x147)]:undefined);if(_0x5dffc2)return _0x5dffc2;const _0x9ec7f2=normalizeEnv(String(_0x144685['env']||_0x3451c4(0x137))),_0x5a2394=isDaily(_0x9ec7f2)?_0x3451c4(0x16a):isDev(_0x9ec7f2)?'development':_0x3451c4(0x137),_0x272b66=resolveCachedAppCode(typeof _0x144685[_0x3451c4(0x147)]===_0x3451c4(0x15f)?_0x144685['defaultApp']:undefined,_0x5a2394,typeof _0x144685['accessKey']===_0x3451c4(0x15f)?_0x144685[_0x3451c4(0x170)]:undefined);if(_0x272b66)return _0x272b66;const _0x5243d6=Object[_0x3451c4(0x15e)](getLocalAppAliases(_0x144685))[_0x3451c4(0x177)](_0x1ed7b4=>_0x1ed7b4?.[_0x3451c4(0x17c)]);return typeof _0x5243d6?.['appcode']===_0x3451c4(0x15f)&&_0x5243d6[_0x3451c4(0x17c)]['trim']()?_0x5243d6[_0x3451c4(0x17c)][_0x3451c4(0x144)]():undefined;}export function readScopedConfig(_0x2c6926){const _0x5bcb90=a55_0xa0676c,_0x495e52=_0x2c6926[_0x5bcb90(0x165)]?'global':_0x5bcb90(0x157);return readConfigFile(resolveWriteConfigPath(_0x495e52));}export function writeScopedConfig(_0x23d10f,_0x2c4a99){const _0xa7af84=a55_0xa0676c,_0x5effe5=_0x2c4a99[_0xa7af84(0x165)]?_0xa7af84(0x165):_0xa7af84(0x157);writeConfigFile(resolveWriteConfigPath(_0x5effe5),_0x23d10f);}export async function initGlobalEnvironment(_0x5e9ae5){const _0x211093=a55_0xa0676c,{initEnv:_0x5256b4}=await import(_0x211093(0x158));_0x5256b4(_0x5e9ae5[_0x211093(0x139)]);const {initDomains:_0x3b9f65}=await import(_0x211093(0x141));_0x3b9f65({'apiDomain':_0x5e9ae5[_0x211093(0x138)]['apiDomain']||_0x5e9ae5[_0x211093(0x138)][_0x211093(0x140)]||undefined,'userDomain':_0x5e9ae5[_0x211093(0x138)][_0x211093(0x159)]||undefined,'runtimeDomain':_0x5e9ae5[_0x211093(0x138)][_0x211093(0x167)]||undefined,'skillHubDomain':_0x5e9ae5[_0x211093(0x138)][_0x211093(0x16c)]||undefined});}export function getProjectConfigPath(){return resolveConfigPath(process['cwd']());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}function a55_0x5595(_0x35b3c0,_0x2d5ea0){_0x35b3c0=_0x35b3c0-0x137;const _0xebc4bf=a55_0xebc4();let _0x55959c=_0xebc4bf[_0x35b3c0];return _0x55959c;}export function inspectCliConfigJsonFile(_0x22170f){const _0x194d0b=a55_0xa0676c;if(!existsSync(_0x22170f))return{'status':'missing'};try{const _0x41e651=readFileSync(_0x22170f,{'encoding':_0x194d0b(0x150)});if(!_0x41e651?.[_0x194d0b(0x144)]())return{'status':'empty'};const _0x441249=JSON[_0x194d0b(0x163)](_0x41e651);return{'status':'ok','data':_0x441249};}catch(_0x58500e){return{'status':_0x194d0b(0x145),'message':_0x58500e instanceof Error?_0x58500e[_0x194d0b(0x13b)]:String(_0x58500e)};}}export function loadRawConfigLayers(_0x47fd0a){const _0x33d53a=a55_0xa0676c;let _0x203c76={},_0x270834={},_0x3a1842,_0x4ed0f4;try{_0x3a1842=resolveConfigPath(homedir());if(_0x3a1842){const _0x32f0ee=readFileSync(_0x3a1842,{'encoding':'utf8'});if(_0x32f0ee)_0x203c76=JSON[_0x33d53a(0x163)](_0x32f0ee);}}catch{}try{const _0x35da08=_0x47fd0a||process[_0x33d53a(0x156)]();_0x4ed0f4=resolveConfigPath(_0x35da08);if(_0x4ed0f4){const _0x568411=readFileSync(_0x4ed0f4,{'encoding':_0x33d53a(0x150)});if(_0x568411)_0x270834=JSON[_0x33d53a(0x163)](_0x568411);}}catch{}return{'globalPath':_0x3a1842,'projectPath':_0x4ed0f4,'globalConfig':_0x203c76,'projectConfig':_0x270834};}function mergeRawConfigLayers(_0x55fc04){const _0x51cef4=a55_0xa0676c,{globalConfig:_0x3d653b,projectConfig:_0x44d580}=_0x55fc04;if(_0x44d580[_0x51cef4(0x16b)]===![]){const _0x32addb={..._0x44d580};return delete _0x32addb[_0x51cef4(0x16b)],_0x32addb;}const _0x51a84d={..._0x3d653b,..._0x44d580};if(_0x51cef4(0x147)in _0x44d580)_0x51a84d[_0x51cef4(0x147)]=_0x44d580[_0x51cef4(0x147)];else _0x3d653b[_0x51cef4(0x147)]&&(_0x51a84d['defaultApp']=_0x3d653b['defaultApp']);return _0x51a84d;}export function isInProject(){return!!getProjectConfigPath();}export function readRawConfig(_0x5bb0b4){return mergeRawConfigLayers(loadRawConfigLayers(_0x5bb0b4));}export function readRawConfigWithLayers(_0x12acda){const _0x5a7b19=loadRawConfigLayers(_0x12acda);return{'config':mergeRawConfigLayers(_0x5a7b19),'layers':_0x5a7b19};}export function resolveDefaultAppSource(_0x2067da){const _0x254fe5=a55_0xa0676c;if('defaultApp'in _0x2067da[_0x254fe5(0x168)])return _0x254fe5(0x157);if(_0x2067da[_0x254fe5(0x168)]['inherit']===![])return null;if(_0x2067da[_0x254fe5(0x164)][_0x254fe5(0x147)])return _0x254fe5(0x165);return null;}function buildConfig(_0x1c96bb,_0x179419){const _0x54ec24=a55_0xa0676c,_0x239ee0=_0x1c96bb[_0x54ec24(0x147)]||undefined,_0x3eebe8=_0x179419['app']||env('APP')||undefined,_0x136014=_0x3eebe8||_0x239ee0||undefined,_0x3006eb=env(_0x54ec24(0x153))||_0x1c96bb['accessKey']||undefined,_0x55f8cf=_0x179419[_0x54ec24(0x139)]||env(_0x54ec24(0x13c))||_0x1c96bb['env']||DEFAULT_CONFIG_VALUES[_0x54ec24(0x139)],_0x4903a2=normalizeEnv(String(_0x55f8cf)),_0x3663d6=isDaily(_0x4903a2)?_0x54ec24(0x16a):isDev(_0x4903a2)?'development':_0x54ec24(0x137),_0xcbc988=resolveLocalAppAliasCode(_0x1c96bb,_0x136014),_0x408ed0=resolveCachedAppCode(_0x136014,_0x3663d6,_0x3006eb),_0x1e3d88=typeof _0x179419[_0x54ec24(0x17c)]===_0x54ec24(0x15f)?_0x179419['appcode']:undefined,_0x36a46e=env('APPCODE'),_0x46e542=_0x3eebe8?undefined:_0x1c96bb[_0x54ec24(0x17c)]||_0x1c96bb[_0x54ec24(0x14d)]||undefined,_0x2db4a3=_0x1e3d88||_0x36a46e||_0xcbc988||_0x408ed0||_0x46e542||undefined,_0xc0f57=_0x1e3d88?'explicit':_0x36a46e?'env':_0xcbc988?'local-alias':_0x408ed0?_0x54ec24(0x151):_0x46e542?'top-level':undefined,_0x3d4a69=_0x1c96bb[_0x54ec24(0x142)]||DEFAULT_CONFIG_VALUES[_0x54ec24(0x142)],_0x1957ce=undefined,_0x1c2717=_0x179419[_0x54ec24(0x174)]||env(_0x54ec24(0x161))||_0x1c96bb[_0x54ec24(0x174)],_0x41d25d=normalizeLegacyOutputFormat(_0x1c2717),_0x478461=env(_0x54ec24(0x154))||_0x1c96bb['pageSize'],_0x1dbb03=_0x478461?Number(_0x478461)||undefined:undefined,_0x1730fb=_0x1c96bb['riskLevel']||_0x1c96bb['maxRisk'],_0x2c8eab=_0x1730fb==='read'||_0x1730fb===_0x54ec24(0x160)||_0x1730fb==='high-risk-write'?_0x1730fb:DEFAULT_CONFIG_VALUES[_0x54ec24(0x14c)],_0x4b028b=env(_0x54ec24(0x175)),_0x5f46e9=_0x4b028b==='1'||_0x4b028b==='true';return{'appCode':typeof _0x2db4a3===_0x54ec24(0x15f)&&_0x2db4a3['trim']()?_0x2db4a3[_0x54ec24(0x144)]():undefined,'appCodeSource':_0xc0f57,'env':_0x3663d6,'locale':_0x3d4a69,'cookie':_0x1957ce,'accessKey':_0x3006eb,'format':_0x41d25d,'pageSize':_0x1dbb03,'riskLevel':_0x2c8eab,'verbose':_0x5f46e9,'defaultApp':_0x239ee0,'currentApp':typeof _0x136014===_0x54ec24(0x15f)?_0x136014:undefined,'raw':_0x1c96bb};}function env(_0x5055c7){return productEnv(_0x5055c7);}async function buildAuth(_0x14d3f2){const _0x322175=a55_0xa0676c,_0x1d1899='',_0x36dee3=!!_0x14d3f2[_0x322175(0x170)];return{'cookie':_0x1d1899,'isLoggedIn':_0x36dee3,async 'getOrLogin'(){const _0x140068=_0x322175;if(_0x36dee3)return _0x1d1899;throw CliErrors[_0x140068(0x143)]();}};}
1
+ 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 +1 @@
1
- function a56_0x455e(_0x4b9635,_0x3a7317){_0x4b9635=_0x4b9635-0x1d8;const _0x16f4c7=a56_0x16f4();let _0x455ee5=_0x16f4c7[_0x4b9635];return _0x455ee5;}(function(_0x3cdd25,_0x1a1f53){const _0x38bf38=a56_0x455e,_0x9ba676=_0x3cdd25();while(!![]){try{const _0x4f58a1=parseInt(_0x38bf38(0x220))/0x1+-parseInt(_0x38bf38(0x239))/0x2*(parseInt(_0x38bf38(0x231))/0x3)+-parseInt(_0x38bf38(0x1ed))/0x4*(-parseInt(_0x38bf38(0x1ff))/0x5)+parseInt(_0x38bf38(0x1e3))/0x6*(parseInt(_0x38bf38(0x23b))/0x7)+parseInt(_0x38bf38(0x210))/0x8*(-parseInt(_0x38bf38(0x1f5))/0x9)+-parseInt(_0x38bf38(0x1f3))/0xa+parseInt(_0x38bf38(0x23e))/0xb*(-parseInt(_0x38bf38(0x1e0))/0xc);if(_0x4f58a1===_0x1a1f53)break;else _0x9ba676['push'](_0x9ba676['shift']());}catch(_0x493280){_0x9ba676['push'](_0x9ba676['shift']());}}}(a56_0x16f4,0xa9339));import{getApiDomain,getRuntimeDomain,getSkillHubDomain}from'../constant/domain.js';import{PRODUCT_CONFIG}from'../constant/product.js';import{CliErrors}from'../errors.js';import{extractList}from'../framework/response.js';let _activeAK;export function setActiveAK(_0x3dea49){_activeAK=_0x3dea49||undefined;}export function clearActiveAK(){_activeAK=undefined;}async function apiRequest(_0x4aa608,_0x5c2f13={}){const _0x406f00=a56_0x455e,{method:method=_0x406f00(0x1de),body:_0x1da5a1,headers:headers={},timeout:timeout=0x7530}=_0x5c2f13,_0x2c3dfa=_activeAK,_0x435070=getRuntimeDomain();if(!_0x2c3dfa)throw CliErrors[_0x406f00(0x252)](_0x406f00(0x22d)+PRODUCT_CONFIG[_0x406f00(0x212)]+'.');const _0xcc09b3=''+_0x435070+_0x4aa608,_0x118c2c={'X-User-AK':_0x2c3dfa},_0x4d926e=new AbortController(),_0x22feda=setTimeout(()=>_0x4d926e[_0x406f00(0x249)](),timeout);try{const _0x36749b=await fetch(_0xcc09b3,{'method':method,'headers':{'Content-Type':_0x406f00(0x20a),'X-Invoke-Source':PRODUCT_CONFIG[_0x406f00(0x1e1)],..._0x118c2c,...headers},'body':_0x1da5a1?JSON['stringify'](_0x1da5a1):undefined,'signal':_0x4d926e[_0x406f00(0x208)]});let _0x598ef3;try{_0x598ef3=await _0x36749b[_0x406f00(0x246)]();}catch{throw CliErrors[_0x406f00(0x1e9)](_0x406f00(0x1d8)+_0x36749b[_0x406f00(0x253)]+')',_0x36749b[_0x406f00(0x253)]>=0x190?_0x406f00(0x238):undefined);}if(!_0x36749b['ok']||_0x598ef3[_0x406f00(0x1e8)]===![])throw CliErrors[_0x406f00(0x1e9)](_0x598ef3['errorMsg']||_0x598ef3[_0x406f00(0x23a)]||_0x406f00(0x216)+_0x36749b[_0x406f00(0x253)],_0x598ef3['errorCode']?'API\x20error\x20code:\x20'+_0x598ef3[_0x406f00(0x244)]:undefined);return _0x598ef3;}catch(_0x54be4c){if(_0x54be4c instanceof Error&&_0x54be4c['name']===_0x406f00(0x21d))throw CliErrors[_0x406f00(0x1e9)]('Request\x20timeout:\x20'+_0xcc09b3);throw _0x54be4c;}finally{clearTimeout(_0x22feda);}}async function apiBinaryRequest(_0x49c974,_0x16df15={}){const _0x45d74d=a56_0x455e,{method:method=_0x45d74d(0x1de),headers:headers={},timeout:timeout=0x7530}=_0x16df15,_0x1329ac=_activeAK,_0x1e70a0=getRuntimeDomain();if(!_0x1329ac)throw CliErrors[_0x45d74d(0x252)](_0x45d74d(0x22d)+PRODUCT_CONFIG[_0x45d74d(0x212)]+'.');const _0x3c738d=''+_0x1e70a0+_0x49c974,_0x4eecd9=new AbortController(),_0xbef1c9=setTimeout(()=>_0x4eecd9[_0x45d74d(0x249)](),timeout);try{const _0x2ab484=await fetch(_0x3c738d,{'method':method,'headers':{'X-Invoke-Source':PRODUCT_CONFIG[_0x45d74d(0x1e1)],'X-User-AK':_0x1329ac,...headers},'signal':_0x4eecd9[_0x45d74d(0x208)]});if(!_0x2ab484['ok']){let _0x8636e2;try{const _0x27c1b8=await _0x2ab484['json']();_0x8636e2=_0x27c1b8[_0x45d74d(0x1e2)]||_0x27c1b8[_0x45d74d(0x23a)]||_0x27c1b8['errorCode'];}catch{_0x8636e2=await _0x2ab484[_0x45d74d(0x223)]()[_0x45d74d(0x23c)](()=>undefined);}throw CliErrors[_0x45d74d(0x1e9)](_0x8636e2||_0x45d74d(0x216)+_0x2ab484[_0x45d74d(0x253)],'Download\x20failed:\x20'+_0x3c738d);}return Buffer[_0x45d74d(0x225)](await _0x2ab484[_0x45d74d(0x240)]());}catch(_0x2f5fad){if(_0x2f5fad instanceof Error&&_0x2f5fad['name']===_0x45d74d(0x21d))throw CliErrors[_0x45d74d(0x1e9)]('Request\x20timeout:\x20'+_0x3c738d);throw _0x2f5fad;}finally{clearTimeout(_0xbef1c9);}}async function toolboxRequest(_0x41fe3e,_0x59b123,_0x1bfcc2={}){const _0xe0c613=a56_0x455e,{method:method=_0xe0c613(0x1de),headers:headers={},timeout:timeout=0x7530}=_0x1bfcc2,_0xb2f561=_activeAK;if(!_0xb2f561)throw CliErrors['authRequired'](_0xe0c613(0x22d)+PRODUCT_CONFIG[_0xe0c613(0x212)]+'.');const _0x4dffdd=getApiDomain()[_0xe0c613(0x1ea)](/\/$/,''),_0x55d254=new URL(_0x41fe3e,_0x4dffdd+_0xe0c613(0x1f9));if(_0x59b123)for(const [_0x407931,_0x3d5e6a]of Object[_0xe0c613(0x236)](_0x59b123)){_0x3d5e6a!==undefined&&_0x3d5e6a!==null&&_0x55d254[_0xe0c613(0x234)][_0xe0c613(0x1fc)](_0x407931,String(_0x3d5e6a));}const _0x59d27=new AbortController(),_0x4716ff=setTimeout(()=>_0x59d27[_0xe0c613(0x249)](),timeout);try{const _0x426620=await fetch(_0x55d254,{'method':method,'headers':{'Content-Type':_0xe0c613(0x20a),'X-Invoke-Source':PRODUCT_CONFIG[_0xe0c613(0x1e1)],'X-User-AK':_0xb2f561,...headers},'signal':_0x59d27[_0xe0c613(0x208)]});let _0x3c2384;try{_0x3c2384=await _0x426620[_0xe0c613(0x246)]();}catch{throw CliErrors[_0xe0c613(0x1e9)](_0xe0c613(0x226)+_0x426620['status']+')',_0x426620[_0xe0c613(0x253)]>=0x190?_0xe0c613(0x238):undefined);}if(!_0x426620['ok']){const _0x400030=_0x3c2384&&typeof _0x3c2384===_0xe0c613(0x21c)?_0x3c2384:{};throw CliErrors[_0xe0c613(0x1e9)](_0x400030[_0xe0c613(0x1e2)]||_0x400030[_0xe0c613(0x23a)]||_0xe0c613(0x245)+_0x426620[_0xe0c613(0x253)],_0x400030[_0xe0c613(0x244)]?_0xe0c613(0x1ef)+_0x400030[_0xe0c613(0x244)]:undefined);}if(_0x3c2384&&typeof _0x3c2384==='object'&&_0xe0c613(0x1e8)in _0x3c2384&&typeof _0x3c2384[_0xe0c613(0x1e8)]===_0xe0c613(0x1fa)){const _0xc5e546=_0x3c2384;if(!_0xc5e546[_0xe0c613(0x1e8)])throw CliErrors['apiError'](_0xc5e546[_0xe0c613(0x1e2)]||_0xc5e546['message']||_0xe0c613(0x1f4),_0xc5e546[_0xe0c613(0x244)]?'Toolbox\x20error\x20code:\x20'+_0xc5e546[_0xe0c613(0x244)]:undefined);return _0xc5e546[_0xe0c613(0x22c)];}return _0x3c2384;}catch(_0x1dfd60){if(_0x1dfd60 instanceof Error&&_0x1dfd60[_0xe0c613(0x1e6)]==='AbortError')throw CliErrors[_0xe0c613(0x1e9)](_0xe0c613(0x21e)+_0x55d254[_0xe0c613(0x24f)]());throw _0x1dfd60;}finally{clearTimeout(_0x4716ff);}}async function skillHubJsonRequest(_0x98d51e,_0x20dd1c={}){const _0x331801=a56_0x455e,{method:method=_0x331801(0x1de),query:_0x19c330,body:_0x426431,headers:headers={},timeout:timeout=0x7530}=_0x20dd1c,_0x26ce11=_activeAK;if(!_0x26ce11)throw CliErrors[_0x331801(0x252)](_0x331801(0x22d)+PRODUCT_CONFIG[_0x331801(0x212)]+'.');const _0x32e577=getSkillHubDomain()[_0x331801(0x1ea)](/\/$/,''),_0x516a70=new URL(_0x98d51e,_0x32e577+'/');if(_0x19c330)for(const [_0x23d64f,_0x73f731]of Object[_0x331801(0x236)](_0x19c330)){_0x73f731!==undefined&&_0x73f731!==null&&_0x516a70['searchParams']['set'](_0x23d64f,String(_0x73f731));}const _0x353504=new AbortController(),_0x25c6b7=setTimeout(()=>_0x353504['abort'](),timeout);try{const _0x4646f1=await fetch(_0x516a70[_0x331801(0x24f)](),{'method':method,'headers':{'Accept':'application/json','X-Invoke-Source':PRODUCT_CONFIG[_0x331801(0x1e1)],'X-User-AK':_0x26ce11,...headers},'body':_0x426431,'signal':_0x353504[_0x331801(0x208)]});let _0x166024;try{_0x166024=await _0x4646f1[_0x331801(0x246)]();}catch{throw CliErrors['apiError']('SkillHub\x20returned\x20non-JSON\x20response\x20(HTTP\x20'+_0x4646f1['status']+')',_0x4646f1[_0x331801(0x253)]>=0x190?'Check\x20your\x20credentials\x20and\x20try\x20again.':undefined);}const _0x1ba478=!_0x4646f1['ok']||_0x166024?.[_0x331801(0x1e8)]===![]||typeof _0x166024?.[_0x331801(0x215)]===_0x331801(0x1ec)&&_0x166024[_0x331801(0x215)]>=0x190;if(_0x1ba478)throw CliErrors[_0x331801(0x1e9)](_0x166024?.[_0x331801(0x1e2)]||_0x166024?.[_0x331801(0x23a)]||_0x166024?.['msg']||_0x331801(0x1eb)+_0x4646f1[_0x331801(0x253)],_0x166024?.[_0x331801(0x244)]?'SkillHub\x20error\x20code:\x20'+_0x166024[_0x331801(0x244)]:undefined);return _0x166024?.['data']??_0x166024;}catch(_0x5bfba5){if(_0x5bfba5 instanceof Error&&_0x5bfba5[_0x331801(0x1e6)]===_0x331801(0x21d))throw CliErrors[_0x331801(0x1e9)]('Request\x20timeout:\x20'+_0x516a70[_0x331801(0x24f)]());throw _0x5bfba5;}finally{clearTimeout(_0x25c6b7);}}async function skillHubBinaryRequest(_0x5eeb46,_0x46c486={}){const _0x1e104f=a56_0x455e,{query:_0x4e0598,headers:headers={},timeout:timeout=0x7530}=_0x46c486,_0x3911ed=_activeAK;if(!_0x3911ed)throw CliErrors[_0x1e104f(0x252)](_0x1e104f(0x22d)+PRODUCT_CONFIG[_0x1e104f(0x212)]+'.');const _0x4f31a4=getSkillHubDomain()['replace'](/\/$/,''),_0x1bb553=new URL(_0x5eeb46,_0x4f31a4+'/');if(_0x4e0598)for(const [_0x5a7ae7,_0xf6b3f4]of Object[_0x1e104f(0x236)](_0x4e0598)){_0xf6b3f4!==undefined&&_0xf6b3f4!==null&&_0x1bb553[_0x1e104f(0x234)]['set'](_0x5a7ae7,String(_0xf6b3f4));}const _0x302984=new AbortController(),_0x24ad91=setTimeout(()=>_0x302984[_0x1e104f(0x249)](),timeout);try{const _0x1022db=await fetch(_0x1bb553[_0x1e104f(0x24f)](),{'method':'GET','headers':{'Accept':'application/octet-stream','X-Invoke-Source':PRODUCT_CONFIG[_0x1e104f(0x1e1)],'X-User-AK':_0x3911ed,...headers},'signal':_0x302984[_0x1e104f(0x208)]});if(!_0x1022db['ok']){let _0x17f8de;try{const _0x281140=await _0x1022db[_0x1e104f(0x246)]();_0x17f8de=_0x281140['errorMsg']||_0x281140[_0x1e104f(0x23a)]||_0x281140[_0x1e104f(0x21a)]||_0x281140[_0x1e104f(0x244)];}catch{_0x17f8de=await _0x1022db[_0x1e104f(0x223)]()[_0x1e104f(0x23c)](()=>undefined);}throw CliErrors['apiError'](_0x17f8de||_0x1e104f(0x1eb)+_0x1022db['status'],_0x1e104f(0x20d)+_0x1bb553[_0x1e104f(0x24f)]());}return Buffer[_0x1e104f(0x225)](await _0x1022db['arrayBuffer']());}catch(_0x1d07f7){if(_0x1d07f7 instanceof Error&&_0x1d07f7[_0x1e104f(0x1e6)]===_0x1e104f(0x21d))throw CliErrors['apiError'](_0x1e104f(0x21e)+_0x1bb553[_0x1e104f(0x24f)]());throw _0x1d07f7;}finally{clearTimeout(_0x24ad91);}}export async function getBffScriptInfo(_0x13b15f){const _0x2ecff1=a56_0x455e,_0x18008b=await apiRequest(_0x2ecff1(0x222)+_0x13b15f);if(!_0x18008b[_0x2ecff1(0x22c)])throw CliErrors[_0x2ecff1(0x250)](_0x2ecff1(0x219)+_0x13b15f);return _0x18008b[_0x2ecff1(0x22c)];}export async function getSqlQueryInfo(_0x1b570c,_0x250f64){const _0x318a09=a56_0x455e,_0x2edc4f=await apiRequest(_0x318a09(0x209),{'method':_0x318a09(0x22b),'body':{'appCode':_0x1b570c,'currentPage':0x1,'pageSize':0x1,'sqlCode':_0x250f64}}),_0x40987b=_0x2edc4f['data'],_0x3d869=_0x40987b&&typeof _0x40987b===_0x318a09(0x21c)&&_0x318a09(0x1fe)in _0x40987b?_0x40987b[_0x318a09(0x1fe)]?.[0x0]:_0x40987b&&typeof _0x40987b===_0x318a09(0x21c)&&_0x318a09(0x1e7)in _0x40987b?_0x40987b:undefined;if(!_0x3d869)throw CliErrors[_0x318a09(0x250)](_0x318a09(0x1f7)+_0x250f64);return _0x3d869;}function isRemoteAppItem(_0x2726c4){const _0x12ac76=a56_0x455e;return!!_0x2726c4&&typeof _0x2726c4===_0x12ac76(0x21c)&&typeof _0x2726c4[_0x12ac76(0x24a)]===_0x12ac76(0x241)&&typeof _0x2726c4[_0x12ac76(0x1f6)]==='string';}function extractRemoteAppItems(_0x40f237){const _0x5aea0f=a56_0x455e;if(Array[_0x5aea0f(0x23f)](_0x40f237))return _0x40f237[_0x5aea0f(0x227)](isRemoteAppItem);if(!_0x40f237||typeof _0x40f237!==_0x5aea0f(0x21c))throw CliErrors[_0x5aea0f(0x1e9)](_0x5aea0f(0x203));const _0x1caf49=_0x40f237;if(Array[_0x5aea0f(0x23f)](_0x1caf49['tableData']))return _0x1caf49['tableData']['filter'](isRemoteAppItem);if(_0x1caf49[_0x5aea0f(0x22c)]&&typeof _0x1caf49[_0x5aea0f(0x22c)]===_0x5aea0f(0x21c)){const _0x89012b=_0x1caf49[_0x5aea0f(0x22c)];if(Array[_0x5aea0f(0x23f)](_0x89012b['tableData']))return _0x89012b[_0x5aea0f(0x1fe)][_0x5aea0f(0x227)](isRemoteAppItem);}throw CliErrors[_0x5aea0f(0x1e9)](_0x5aea0f(0x23d));}export async function getMyApps(){const _0x3dabfc=a56_0x455e,_0x47cc9b=await apiRequest('/client/app/my-apps');return extractRemoteAppItems(_0x47cc9b[_0x3dabfc(0x22c)]);}export async function getLoginUserInfo(){const _0x157ab1=a56_0x455e,_0x3cfdb8=await apiRequest('/client/user/loginUserInfo');if(!_0x3cfdb8[_0x157ab1(0x22c)]||typeof _0x3cfdb8[_0x157ab1(0x22c)]!==_0x157ab1(0x21c)||Array['isArray'](_0x3cfdb8[_0x157ab1(0x22c)]))throw CliErrors[_0x157ab1(0x1e9)](_0x157ab1(0x232));return _0x3cfdb8['data'];}export async function listDatasets(_0xb6e92e,_0x3cadc8){const _0x3e35d8=a56_0x455e,_0x5e0047=await apiRequest(_0x3e35d8(0x204),{'method':_0x3e35d8(0x22b),'body':{'appCode':_0xb6e92e,..._0x3cadc8?.[_0x3e35d8(0x215)]&&{'code':_0x3cadc8[_0x3e35d8(0x215)]},..._0x3cadc8?.['name']&&{'name':_0x3cadc8[_0x3e35d8(0x1e6)]}}});return extractList(_0x5e0047['data']);}export async function getDatasetDetail(_0xe2f474){const _0x2aefd3=a56_0x455e,_0x192845=/^\d+$/[_0x2aefd3(0x24d)](_0xe2f474)?'id':'code',_0x3dcc7c=await apiRequest(_0x2aefd3(0x22f)+_0x192845+'='+_0xe2f474);return _0x3dcc7c['data'];}export async function getDatasetSdkUsageDoc(_0x4e0778,_0x36f5af){const _0x29c4e0=a56_0x455e,_0x48c72d=await toolboxRequest(_0x29c4e0(0x254),{'datasetCode':_0x4e0778,'appCode':_0x36f5af});return typeof _0x48c72d?.[_0x29c4e0(0x243)]===_0x29c4e0(0x241)?_0x48c72d[_0x29c4e0(0x243)]:'';}export async function listRuntimeArtifacts(_0x2a43ca,_0x5a5e9b){const _0x2cc934=a56_0x455e,_0x5924cb=new URLSearchParams({'appCode':_0x2a43ca});if(_0x5a5e9b?.[_0x2cc934(0x22e)])_0x5924cb[_0x2cc934(0x1fc)](_0x2cc934(0x22e),_0x5a5e9b['artifactType']);if(_0x5a5e9b?.[_0x2cc934(0x251)])_0x5924cb[_0x2cc934(0x1fc)]('source',_0x5a5e9b[_0x2cc934(0x251)]);if(_0x5a5e9b?.[_0x2cc934(0x22a)]!==undefined)_0x5924cb['set'](_0x2cc934(0x22a),String(_0x5a5e9b[_0x2cc934(0x22a)]));const _0x3b9ee6=await apiRequest(_0x2cc934(0x24b)+_0x5924cb[_0x2cc934(0x24f)]());return Array[_0x2cc934(0x23f)](_0x3b9ee6['data'])?_0x3b9ee6[_0x2cc934(0x22c)]:[];}export async function getRuntimeArtifact(_0x39970b,_0x47d6eb){const _0x13b3d8=a56_0x455e,_0x26feae=await apiRequest(_0x13b3d8(0x224)+_0x39970b+'?appCode='+encodeURIComponent(_0x47d6eb));if(!_0x26feae[_0x13b3d8(0x22c)])throw CliErrors[_0x13b3d8(0x250)](_0x13b3d8(0x1f2)+_0x39970b);return _0x26feae[_0x13b3d8(0x22c)];}export async function createRuntimeArtifact(_0x5a0561,_0x5c6238){const _0x4e75eb=a56_0x455e,_0x42095b=await apiRequest(_0x4e75eb(0x206),{'method':'POST','body':{'appCode':_0x5a0561,..._0x5c6238}});return _0x42095b['data'];}export async function updateRuntimeArtifact(_0x20ad22,_0x217d8a,_0x474018){const _0x246996=a56_0x455e,_0x37c8ac=await apiRequest('/client/artifact/'+_0x20ad22+_0x246996(0x1da),{'method':_0x246996(0x22b),'body':{'appCode':_0x217d8a,..._0x474018}});return _0x37c8ac['data'];}export async function listPersonalBffs(_0x2ebbef){const _0x5912d2=a56_0x455e,_0x477cc5=await apiRequest(_0x5912d2(0x221)+encodeURIComponent(_0x2ebbef));return Array[_0x5912d2(0x23f)](_0x477cc5['data'])?_0x477cc5[_0x5912d2(0x22c)]:[];}export async function getPersonalBff(_0x42fc07,_0x5648f8){const _0x195a5c=a56_0x455e,_0x1bf3d6=await apiRequest(_0x195a5c(0x235)+_0x42fc07+_0x195a5c(0x205)+encodeURIComponent(_0x5648f8));if(!_0x1bf3d6['data'])throw CliErrors[_0x195a5c(0x250)](_0x195a5c(0x20e)+_0x42fc07);return _0x1bf3d6[_0x195a5c(0x22c)];}export async function createPersonalBff(_0x739d90,_0xa7f70f){const _0x4c7695=await apiRequest('/client/runtime-bff/personal/create',{'method':'POST','body':{'appCode':_0x739d90,..._0xa7f70f}});return _0x4c7695['data'];}export async function updatePersonalBff(_0x6c8f1a,_0x40ecf5,_0x438dd8){const _0x54bcaf=a56_0x455e,_0x250462=await apiRequest('/client/runtime-bff/personal/'+_0x6c8f1a+_0x54bcaf(0x1da),{'method':_0x54bcaf(0x22b),'body':{'appCode':_0x40ecf5,..._0x438dd8}});return _0x250462[_0x54bcaf(0x22c)];}export async function executePersonalBff(_0x169f8e,_0x1ee6ad,_0x4b3252){const _0x522cca=a56_0x455e,_0x4f52e4=await apiRequest(_0x522cca(0x235)+_0x169f8e+_0x522cca(0x228)+encodeURIComponent(_0x1ee6ad),{'method':_0x522cca(0x22b),'body':_0x4b3252});return _0x4f52e4['data'];}export async function listPersonalKnowledgeBaseItems(_0x157cbe){const _0x2909ec=a56_0x455e,_0x16950d=await apiRequest(_0x2909ec(0x21f)+encodeURIComponent(_0x157cbe));return Array[_0x2909ec(0x23f)](_0x16950d[_0x2909ec(0x22c)])?_0x16950d[_0x2909ec(0x22c)]:[];}export async function getPersonalKnowledgeBaseItem(_0x501668,_0x4b8eb0){const _0x4792a1=a56_0x455e,_0xf641a5=await apiRequest(_0x4792a1(0x21b)+_0x501668+_0x4792a1(0x205)+encodeURIComponent(_0x4b8eb0));if(!_0xf641a5['data'])throw CliErrors[_0x4792a1(0x250)](_0x4792a1(0x1e4)+_0x501668);return _0xf641a5[_0x4792a1(0x22c)];}export async function createPersonalKnowledgeBaseItem(_0x11262a,_0x3d904e){const _0x5680bc=a56_0x455e,_0x107157=await apiRequest('/client/knowledge-base/personal/create',{'method':_0x5680bc(0x22b),'body':{'appCode':_0x11262a,..._0x3d904e}});return _0x107157[_0x5680bc(0x22c)];}export async function updatePersonalKnowledgeBaseItem(_0x4ec982,_0x589636,_0x2d3d2a){const _0x1aadd8=a56_0x455e,_0xabcbd5=await apiRequest(_0x1aadd8(0x21b)+_0x4ec982+'/update',{'method':_0x1aadd8(0x22b),'body':{'appCode':_0x589636,..._0x2d3d2a}});return _0xabcbd5[_0x1aadd8(0x22c)];}export async function searchKnowledgeBase(_0x1abdc3,_0x2de7f5){const _0x37d9e3=a56_0x455e,_0x4656da=await apiRequest(_0x37d9e3(0x24c),{'method':'POST','body':{'appCode':_0x1abdc3,'query':_0x2de7f5['query'],..._0x2de7f5[_0x37d9e3(0x218)]!==undefined?{'topK':_0x2de7f5[_0x37d9e3(0x218)]}:{}}});return Array[_0x37d9e3(0x23f)](_0x4656da[_0x37d9e3(0x22c)])?_0x4656da['data']:[];}export async function listRuntimeSkills(_0x2529fc){const _0x341293=a56_0x455e,_0x305313=await skillHubJsonRequest('/api/runtime/v1/namespaces/'+encodeURIComponent(_0x2529fc[_0x341293(0x24a)])+_0x341293(0x217),{'query':{'page':0x0,'size':0xc8}});return normalizeSkillHubRuntimeListResponse(_0x2529fc[_0x341293(0x24a)],_0x305313,_0x2529fc[_0x341293(0x248)]??_0x341293(0x1ee),_0x2529fc[_0x341293(0x215)]);}export async function listPersonalRuntimeSkills(_0x433c79){const _0x56ac37=a56_0x455e;return(await listRuntimeSkills({'appCode':_0x433c79,'scope':_0x56ac37(0x237)}))['personal'];}function a56_0x16f4(){const _0x5efcc1=['api-doc-generator','API\x20returned\x20non-JSON\x20response\x20(HTTP\x20','tags','/update','builtin','version','effective','GET','application/zip','11196Jmsgwf','invokeSource','errorMsg','5442KtpSdD','Knowledge-base\x20entry\x20not\x20found:\x20id=','files','name','sqlCode','success','apiError','replace','SkillHub\x20API\x20error:\x20','number','560012mmrqcW','user','Toolbox\x20error\x20code:\x20','PRIVATE','map','Artifact\x20not\x20found:\x20id=','3494920JAPqkj','Toolbox\x20API\x20error','936moWPkN','appName','SQL\x20query\x20not\x20found:\x20','/api/cli/v1/skills/','/api/node-toolbox/','boolean','description','set','public','tableData','40euCpQo','summary','namespace','trim','Invalid\x20app\x20list\x20response:\x20expected\x20object\x20or\x20array.','/client/dataset/list','?appCode=','/client/artifact/create','displayName','signal','/client/sql/query','application/json','undefined','items','Download\x20failed:\x20','Personal\x20BFF\x20not\x20found:\x20id=','company','46448DokFkU','Missing\x20Skill\x20package\x20payload.','newConfigFileName','.zip','visibility','code','API\x20error:\x20','/skills','topK','BFF\x20script\x20not\x20found:\x20id=','msg','/client/knowledge-base/personal/','object','AbortError','Request\x20timeout:\x20','/client/knowledge-base/personal/list?appCode=','1241907bJTyxL','/client/runtime-bff/personal/list?appCode=','/client/bff/query/','text','/client/artifact/','from','Toolbox\x20returned\x20non-JSON\x20response\x20(HTTP\x20','filter','/execute?appCode=','skillCode','favorite','POST','data','Configure\x20accessKey\x20in\x20','artifactType','/client/dataset/query?','slug','6FSciqP','Invalid\x20login\x20user\x20info\x20response:\x20expected\x20object.','/download','searchParams','/client/runtime-bff/personal/','entries','personal','Check\x20your\x20credentials\x20and\x20try\x20again.','502058lSDedC','message','9254Urumhx','catch','Invalid\x20app\x20list\x20response:\x20missing\x20data.tableData.','16654CfaPXA','isArray','arrayBuffer','string','packageBase64','markdown','errorCode','Toolbox\x20API\x20error:\x20','json','ownerPreviewVersion','scope','abort','appCode','/client/artifact/list?','/client/knowledge-base/search','test','headlineVersion','toString','validation','source','authRequired','status'];a56_0x16f4=function(){return _0x5efcc1;};return a56_0x16f4();}export async function listCompanyRuntimeSkills(_0x1b16c8){const _0x1ca74d=a56_0x455e;return(await listRuntimeSkills({'appCode':_0x1b16c8,'scope':_0x1ca74d(0x20f)}))[_0x1ca74d(0x20f)];}export async function listVisibleRuntimeSkills(_0x91af4){const _0x5c3169=a56_0x455e;return(await listRuntimeSkills({'appCode':_0x91af4,'scope':_0x5c3169(0x1ee)}))[_0x5c3169(0x1dd)];}export async function createPersonalRuntimeSkill(_0x657415,_0x3ceb4b){return publishRuntimeSkill(_0x657415,_0x3ceb4b);}export async function updatePersonalRuntimeSkill(_0x126ceb,_0x562958,_0x3d9f5d){return publishRuntimeSkill(_0x562958,{..._0x3d9f5d,'skillCode':_0x3d9f5d['skillCode']??_0x126ceb});}export async function downloadRuntimeSkillPackage(_0x2a2e3c,_0x44cfcc,_0x2abec5,_0x49f04a){const _0x5353c0=a56_0x455e;void _0x2a2e3c;const _0x3f120f=_0x49f04a?'/api/cli/v1/skills/'+encodeURIComponent(_0x2abec5)+'/'+encodeURIComponent(_0x44cfcc)+'/versions/'+encodeURIComponent(_0x49f04a)+'/download':_0x5353c0(0x1f8)+encodeURIComponent(_0x2abec5)+'/'+encodeURIComponent(_0x44cfcc)+_0x5353c0(0x233);return skillHubBinaryRequest(_0x3f120f);}async function publishRuntimeSkill(_0x547cad,_0x5066d8){const _0x52e408=a56_0x455e,_0x4b04e5=new FormData();_0x4b04e5[_0x52e408(0x1fc)]('file',runtimeSkillPackageFile(_0x5066d8)),_0x4b04e5[_0x52e408(0x1fc)](_0x52e408(0x214),_0x52e408(0x1f0));const _0x330d33=await skillHubJsonRequest(_0x52e408(0x1f8)+encodeURIComponent(_0x547cad)+'/publish',{'method':_0x52e408(0x22b),'body':_0x4b04e5});return{'appCode':_0x330d33['namespace']??_0x547cad,'skillCode':_0x330d33[_0x52e408(0x230)]??_0x5066d8['skillCode']??'','skillName':_0x5066d8['skillName']??_0x330d33[_0x52e408(0x230)]??_0x5066d8[_0x52e408(0x229)],'description':_0x5066d8[_0x52e408(0x1fb)],'scope':skillHubVisibilityToScope(_0x330d33[_0x52e408(0x214)])??_0x52e408(0x237),'version':_0x330d33[_0x52e408(0x1dc)]??_0x5066d8[_0x52e408(0x1dc)],'tags':_0x5066d8[_0x52e408(0x1d9)],'content':_0x5066d8['content'],'files':_0x5066d8[_0x52e408(0x1e5)]};}function runtimeSkillPackageFile(_0x89900){const _0x28d058=a56_0x455e;if(!_0x89900['packageBase64'])throw CliErrors[_0x28d058(0x250)](_0x28d058(0x211));const _0x2f772b=Buffer[_0x28d058(0x225)](_0x89900[_0x28d058(0x242)],'base64'),_0x3bcf8b=new Blob([_0x2f772b],{'type':_0x28d058(0x1df)}),_0x33efc6=(_0x89900['skillCode']||'skill')+_0x28d058(0x213);if(typeof File!==_0x28d058(0x20b))return new File([_0x3bcf8b],_0x33efc6,{'type':_0x28d058(0x1df)});return _0x3bcf8b;}function normalizeSkillHubRuntimeListResponse(_0x795def,_0x170054,_0x1d4ae9,_0x4ccc92){const _0x2c6c19=a56_0x455e,_0x22aaae=Array['isArray'](_0x170054)?_0x170054:Array[_0x2c6c19(0x23f)](_0x170054?.[_0x2c6c19(0x20c)])?_0x170054[_0x2c6c19(0x20c)]:[],_0x1640b5=_0x4ccc92?.['trim'](),_0x3fa6e0=_0x22aaae[_0x2c6c19(0x227)](_0x45310f=>!_0x1640b5||_0x45310f[_0x2c6c19(0x230)]===_0x1640b5)[_0x2c6c19(0x1f1)](skillHubRuntimeItemToRuntimeSkill)[_0x2c6c19(0x227)](_0x5c686c=>Boolean(_0x5c686c)),_0x4a1c0e=_0x3fa6e0['filter'](_0x144a50=>_0x144a50[_0x2c6c19(0x248)]===_0x2c6c19(0x237)),_0x54de31=_0x3fa6e0[_0x2c6c19(0x227)](_0x2f1248=>_0x2f1248[_0x2c6c19(0x248)]===_0x2c6c19(0x20f)),_0x9bd9cb=_0x3fa6e0[_0x2c6c19(0x227)](_0x3b8b82=>_0x3b8b82['scope']===_0x2c6c19(0x1fd));return{'appCode':_0x795def,'personal':_0x1d4ae9===_0x2c6c19(0x20f)||_0x1d4ae9===_0x2c6c19(0x1fd)?[]:_0x4a1c0e,'company':_0x1d4ae9===_0x2c6c19(0x237)||_0x1d4ae9===_0x2c6c19(0x1fd)?[]:_0x54de31,'public':_0x1d4ae9===_0x2c6c19(0x237)||_0x1d4ae9==='company'?[]:_0x9bd9cb,'effective':buildEffectiveRuntimeSkills(_0x4a1c0e,_0x54de31,_0x9bd9cb,_0x1d4ae9)};}function skillHubRuntimeItemToRuntimeSkill(_0xba6fba){const _0x4ca0d3=a56_0x455e,_0x5508a1=_0xba6fba[_0x4ca0d3(0x230)]?.[_0x4ca0d3(0x202)](),_0x1b6c9e=skillHubVisibilityToScope(_0xba6fba[_0x4ca0d3(0x214)]);if(!_0x5508a1||!_0x1b6c9e)return undefined;return{'id':_0xba6fba['id'],'appCode':_0xba6fba[_0x4ca0d3(0x201)],'skillCode':_0x5508a1,'skillName':_0xba6fba[_0x4ca0d3(0x207)]??_0x5508a1,'description':_0xba6fba[_0x4ca0d3(0x200)],'scope':_0x1b6c9e,'version':skillHubRuntimeItemVersion(_0xba6fba),'status':_0xba6fba['status']};}function skillHubVisibilityToScope(_0x2d1201){const _0x294571=a56_0x455e;if(_0x2d1201===_0x294571(0x1f0))return _0x294571(0x237);if(_0x2d1201==='NAMESPACE_ONLY')return _0x294571(0x20f);if(_0x2d1201==='PUBLIC')return _0x294571(0x1fd);return undefined;}function skillHubRuntimeItemVersion(_0x42b94c){const _0x5bd0b5=a56_0x455e;return _0x42b94c['publishedVersion']?.[_0x5bd0b5(0x1dc)]??_0x42b94c[_0x5bd0b5(0x24e)]?.[_0x5bd0b5(0x1dc)]??_0x42b94c[_0x5bd0b5(0x247)]?.[_0x5bd0b5(0x1dc)];}function buildEffectiveRuntimeSkills(_0x24c0dc,_0x13c83b,_0x14f175,_0x32f62b){const _0x3408c5=a56_0x455e;if(_0x32f62b===_0x3408c5(0x237))return _0x24c0dc;if(_0x32f62b===_0x3408c5(0x20f))return _0x13c83b;if(_0x32f62b===_0x3408c5(0x1fd))return _0x14f175;const _0x35f4b9=new Map();for(const _0x537e39 of _0x14f175){_0x35f4b9[_0x3408c5(0x1fc)](_0x537e39[_0x3408c5(0x229)],_0x537e39);}for(const _0x529775 of _0x13c83b){_0x35f4b9[_0x3408c5(0x1fc)](_0x529775[_0x3408c5(0x229)],_0x529775);}for(const _0x191438 of _0x24c0dc){_0x35f4b9[_0x3408c5(0x1fc)](_0x191438[_0x3408c5(0x229)],_0x191438);}return Array[_0x3408c5(0x225)](_0x35f4b9['values']());}function normalizeRuntimeSkillListResponse(_0x33353d,_0x11d968){const _0x465ae1=a56_0x455e;if(Array[_0x465ae1(0x23f)](_0x11d968)){const _0x51cb21=_0x11d968[_0x465ae1(0x227)](_0x34dfde=>_0x34dfde['scope']==='personal'),_0x4ef33b=_0x11d968[_0x465ae1(0x227)](_0x5da4b4=>_0x5da4b4[_0x465ae1(0x248)]===_0x465ae1(0x20f)),_0x1a3bce=_0x11d968[_0x465ae1(0x227)](_0x1e4eb5=>_0x1e4eb5[_0x465ae1(0x248)]===_0x465ae1(0x1fd));return{'appCode':_0x33353d,'personal':_0x51cb21,'company':_0x4ef33b,'public':_0x1a3bce,'effective':_0x11d968[_0x465ae1(0x227)](_0x8c6bbc=>_0x8c6bbc[_0x465ae1(0x248)]!==_0x465ae1(0x1db))};}return{'appCode':_0x11d968?.['appCode']??_0x33353d,'personal':Array[_0x465ae1(0x23f)](_0x11d968?.[_0x465ae1(0x237)])?_0x11d968[_0x465ae1(0x237)]:[],'company':Array[_0x465ae1(0x23f)](_0x11d968?.[_0x465ae1(0x20f)])?_0x11d968['company']:[],'public':Array['isArray'](_0x11d968?.[_0x465ae1(0x1fd)])?_0x11d968[_0x465ae1(0x1fd)]:[],'effective':Array[_0x465ae1(0x23f)](_0x11d968?.['effective'])?_0x11d968[_0x465ae1(0x1dd)]:[]};}
1
+ (function(_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 +1 @@
1
- (function(_0x12be22,_0x41b11c){const _0x2189eb=a57_0x1c05,_0x5ddeb0=_0x12be22();while(!![]){try{const _0x252c92=-parseInt(_0x2189eb(0x1c1))/0x1+-parseInt(_0x2189eb(0x1cd))/0x2+-parseInt(_0x2189eb(0x1c2))/0x3+-parseInt(_0x2189eb(0x1c3))/0x4+parseInt(_0x2189eb(0x1cb))/0x5*(parseInt(_0x2189eb(0x1c8))/0x6)+parseInt(_0x2189eb(0x1ca))/0x7+-parseInt(_0x2189eb(0x1c6))/0x8*(-parseInt(_0x2189eb(0x1cc))/0x9);if(_0x252c92===_0x41b11c)break;else _0x5ddeb0['push'](_0x5ddeb0['shift']());}catch(_0xcc42f9){_0x5ddeb0['push'](_0x5ddeb0['shift']());}}}(a57_0x2c88,0xbd2d3));import{listDatasets}from'../core/api-client.js';const cache=new Map();function a57_0x1c05(_0x31be79,_0x48f362){_0x31be79=_0x31be79-0x1c1;const _0x2c889a=a57_0x2c88();let _0x1c0557=_0x2c889a[_0x31be79];return _0x1c0557;}function a57_0x2c88(){const _0x2a8d23=['dbName','697698ZIcgZM','3162051AfKuNC','4909468IIbEVL','find','get','10096QGrTpc','dbtableConfig','99258HVqbyr','dbId','882742TOMZKf','145gJmYLE','30618qROEKD','2290456ZqjdUR','has','map','set','db-'];a57_0x2c88=function(){return _0x2a8d23;};return a57_0x2c88();}export async function listDatabases(_0x4d23e0){const _0x40ba28=a57_0x1c05;if(cache[_0x40ba28(0x1ce)](_0x4d23e0))return cache[_0x40ba28(0x1c5)](_0x4d23e0);const _0x567a8e=await listDatasets(_0x4d23e0),_0xa3ebd1=new Map();for(const _0x59f5ef of _0x567a8e){const _0x4b9a12=_0x59f5ef[_0x40ba28(0x1c7)];_0x4b9a12?.[_0x40ba28(0x1c9)]!=null&&_0xa3ebd1[_0x40ba28(0x1d0)](_0x4b9a12[_0x40ba28(0x1c9)],_0x4b9a12['dbName']??_0x40ba28(0x1d1)+_0x4b9a12[_0x40ba28(0x1c9)]);}const _0x1cc844=[..._0xa3ebd1['entries']()][_0x40ba28(0x1cf)](([_0x54d418,_0x3ba7a7])=>({'dbId':_0x54d418,'dbName':_0x3ba7a7}));return cache[_0x40ba28(0x1d0)](_0x4d23e0,_0x1cc844),_0x1cc844;}export async function getDbName(_0x473ed3,_0x1aac08){const _0x545e7d=a57_0x1c05;try{const _0x35e810=await listDatabases(_0x473ed3);return _0x35e810[_0x545e7d(0x1c4)](_0x220fb0=>_0x220fb0['dbId']===_0x1aac08)?.[_0x545e7d(0x1d2)];}catch{return undefined;}}
1
+ (function(_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 +1 @@
1
- (function(_0x1ee6ad,_0x1419a2){const _0x11283=a58_0x43b6,_0x400544=_0x1ee6ad();while(!![]){try{const _0x525a70=parseInt(_0x11283(0xb4))/0x1*(-parseInt(_0x11283(0xd4))/0x2)+-parseInt(_0x11283(0xc1))/0x3*(-parseInt(_0x11283(0xd2))/0x4)+-parseInt(_0x11283(0xc7))/0x5*(parseInt(_0x11283(0xbd))/0x6)+-parseInt(_0x11283(0xc9))/0x7+parseInt(_0x11283(0xb1))/0x8+-parseInt(_0x11283(0xb9))/0x9+parseInt(_0x11283(0xbc))/0xa;if(_0x525a70===_0x1419a2)break;else _0x400544['push'](_0x400544['shift']());}catch(_0x59be17){_0x400544['push'](_0x400544['shift']());}}}(a58_0x5c2e,0x6fef2));import{createClient}from'@lovrabet/sdk';import{PRODUCT_CONFIG}from'../constant/product.js';import{CliErrors}from'../errors.js';import{parseBatchCreateItemsFromParams}from'../utils/params.js';function a58_0x5c2e(){const _0x2cfc27=['execute','env','delete\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123}\x27',']\x20requires\x20\x22column\x22;\x20\x22field\x22\x20is\x20accepted\x20only\x20as\x20a\x20deprecated\x20alias.','bff','update\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123,\x22name\x22:\x22new\x22}\x27','28TaRuHl',']\x20must\x20be\x20an\x20object.','623190KnrYQh','isArray','2981896kfJgYt','dataset_','Available:\x20filter,\x20getOne,\x20create,\x20batchCreate,\x20update,\x20delete,\x20aggregate.','1eXfeJD','validation','batchCreate','SDK\x20client\x20not\x20initialized.\x20Call\x20initSdkClient()\x20first.','appCode','662994aEHvKj','delete','getOne','8921580lCnACk','264CdzjFk','update','object','getOne\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123}\x27','41433iWLRYP','column','sql','\x22.\x20','aggregate','data\x20aggregate\x20--params.aggregate[','4175WyjOtn','invokeSource','3367623UWmHkM','field','accessKey'];a58_0x5c2e=function(){return _0x2cfc27;};return a58_0x5c2e();}let _client;export function initSdkClient(_0x49564e){const _0x14fdb1=a58_0x43b6;_client=createClient({'appCode':_0x49564e[_0x14fdb1(0xb8)],'env':_0x49564e[_0x14fdb1(0xcd)],'authMode':_0x49564e['authMode'],..._0x49564e[_0x14fdb1(0xcb)]?{'accessKey':_0x49564e[_0x14fdb1(0xcb)]}:{},'options':{'timeout':0x7530,'headers':{'X-Invoke-Source':PRODUCT_CONFIG[_0x14fdb1(0xc8)]}}});}function ensureClient(){const _0x2f9fec=a58_0x43b6;if(!_client)throw new Error(_0x2f9fec(0xb7));return _client;}function normalizeAggregateParams(_0x59677a){const _0x409364=a58_0x43b6,_0x48014f=_0x59677a[_0x409364(0xc5)];if(_0x48014f===undefined)return _0x59677a;if(!Array[_0x409364(0xd5)](_0x48014f))throw CliErrors[_0x409364(0xb5)]('data\x20aggregate\x20--params.aggregate\x20must\x20be\x20an\x20array.');return{..._0x59677a,'aggregate':_0x48014f['map']((_0x5679b5,_0x1e7bf7)=>{const _0x2b94f6=_0x409364;if(!_0x5679b5||typeof _0x5679b5!==_0x2b94f6(0xbf)||Array[_0x2b94f6(0xd5)](_0x5679b5))throw CliErrors['validation']('data\x20aggregate\x20--params.aggregate['+_0x1e7bf7+_0x2b94f6(0xd3));const _0x180144=_0x5679b5[_0x2b94f6(0xc2)]??_0x5679b5['field'];if(typeof _0x180144!=='string'||_0x180144['trim']()==='')throw CliErrors['validation'](_0x2b94f6(0xc6)+_0x1e7bf7+_0x2b94f6(0xcf));const _0x315232={..._0x5679b5,'column':_0x180144};return delete _0x315232[_0x2b94f6(0xca)],_0x315232;})};}export async function executeData(_0x4f84f7,_0x32bfe9,_0x39940b){const _0x256d81=a58_0x43b6,_0x508534=ensureClient(),_0x5b04c0=_0x256d81(0xb2)+_0x4f84f7,_0x126f03=_0x508534['models'][_0x5b04c0];if(!_0x126f03||typeof _0x126f03[_0x32bfe9]!=='function')throw new Error('SDK\x20model\x20does\x20not\x20support\x20operation\x20\x22'+_0x32bfe9+_0x256d81(0xc4)+_0x256d81(0xb3));if(_0x32bfe9===_0x256d81(0xb6))return _0x126f03[_0x256d81(0xb6)](parseBatchCreateItemsFromParams(_0x39940b));const _0xcd9ad1=_0x39940b!==undefined&&_0x39940b!==null&&!Array[_0x256d81(0xd5)](_0x39940b)?_0x39940b:{};switch(_0x32bfe9){case'getOne':{const _0x202fde=_0xcd9ad1['id'];if(_0x202fde===undefined||_0x202fde===null)throw new Error(_0x256d81(0xc0));return _0x126f03[_0x256d81(0xbb)](_0x202fde);}case _0x256d81(0xbe):{const {id:_0x57d036,..._0x10ed02}=_0xcd9ad1;if(_0x57d036===undefined||_0x57d036===null)throw new Error(_0x256d81(0xd1));return _0x126f03['update'](_0x57d036,_0x10ed02);}case _0x256d81(0xba):{const _0x3e9c76=_0xcd9ad1['id'];if(_0x3e9c76===undefined||_0x3e9c76===null)throw new Error(_0x256d81(0xce));return _0x126f03[_0x256d81(0xba)](_0x3e9c76);}case _0x256d81(0xc5):return _0x126f03[_0x256d81(0xc5)](normalizeAggregateParams(_0xcd9ad1));default:return _0x126f03[_0x32bfe9](_0xcd9ad1);}}function a58_0x43b6(_0x3668b5,_0x4be282){_0x3668b5=_0x3668b5-0xb1;const _0x5c2e6c=a58_0x5c2e();let _0x43b6c0=_0x5c2e6c[_0x3668b5];return _0x43b6c0;}export async function executeSdkSql(_0x1e8993,_0x3d12ce){const _0x23cd07=a58_0x43b6,_0x4f71fc=ensureClient();return _0x4f71fc[_0x23cd07(0xc3)][_0x23cd07(0xcc)]({'sqlCode':_0x1e8993,'params':_0x3d12ce});}export async function executeSdkBff(_0x1b76e0,_0x281fee){const _0x40dc85=a58_0x43b6,_0x40bd8d=ensureClient();return _0x40bd8d[_0x40dc85(0xd0)][_0x40dc85(0xcc)]({'scriptName':_0x1b76e0,'params':_0x281fee});}
1
+ (function(_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();}
package/lib/errors.js CHANGED
@@ -1 +1 @@
1
- const a59_0x1195f0=a59_0x1a82;(function(_0x4571de,_0x19c295){const _0x33be63=a59_0x1a82,_0x5c2a63=_0x4571de();while(!![]){try{const _0x463bfa=parseInt(_0x33be63(0xc3))/0x1*(parseInt(_0x33be63(0xc1))/0x2)+-parseInt(_0x33be63(0xc9))/0x3+parseInt(_0x33be63(0xcd))/0x4*(-parseInt(_0x33be63(0xc5))/0x5)+-parseInt(_0x33be63(0xc7))/0x6+-parseInt(_0x33be63(0xc6))/0x7+parseInt(_0x33be63(0xc2))/0x8*(-parseInt(_0x33be63(0xcb))/0x9)+parseInt(_0x33be63(0xbe))/0xa*(parseInt(_0x33be63(0xc0))/0xb);if(_0x463bfa===_0x19c295)break;else _0x5c2a63['push'](_0x5c2a63['shift']());}catch(_0xfeba42){_0x5c2a63['push'](_0x5c2a63['shift']());}}}(a59_0x2e6f,0x5021c));function a59_0x2e6f(){const _0x5ef165=['308101AJURNY','\x20file.','55yGqrdE','2258522QKdHXC','2921766TnUhmZ','Run\x20this\x20command\x20inside\x20a\x20directory\x20with\x20a\x20','1707597IfPdud','Configure\x20accessKey\x20in\x20','153bVfRPA','Set\x20appcode\x20via\x20--appcode\x20or\x20','134308XpxkAa','\x20or\x20run\x20`','290vpNcPn','newConfigFileName','904519cNJKzG','2FbGnCy','290056nIJKvW'];a59_0x2e6f=function(){return _0x5ef165;};return a59_0x2e6f();}import{CliError,createCliErrors}from'@lovrabet/cli-framework';import{CLI_BIN_NAME}from'./constant/cli.js';import{PRODUCT_CONFIG}from'./constant/product.js';export{CliError};function a59_0x1a82(_0x58e4e5,_0x823c3e){_0x58e4e5=_0x58e4e5-0xbd;const _0x2e6ffa=a59_0x2e6f();let _0x1a8215=_0x2e6ffa[_0x58e4e5];return _0x1a8215;}export const CliErrors=createCliErrors({'cliBinName':CLI_BIN_NAME,'authRequiredHint':a59_0x1195f0(0xca)+PRODUCT_CONFIG[a59_0x1195f0(0xbf)]+a59_0x1195f0(0xbd)+CLI_BIN_NAME+'\x20auth\x20login`.','configMissingHint':a59_0x1195f0(0xcc)+PRODUCT_CONFIG[a59_0x1195f0(0xbf)]+'.','notInProjectHint':a59_0x1195f0(0xc8)+PRODUCT_CONFIG['newConfigFileName']+a59_0x1195f0(0xc4)});
1
+ const a59_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 +1 @@
1
- (function(_0x2fca36,_0x3421b2){var _0x465cd7=a60_0x5c0e,_0x1cc85f=_0x2fca36();while(!![]){try{var _0x5a27ed=parseInt(_0x465cd7(0x1b8))/0x1*(parseInt(_0x465cd7(0x1ba))/0x2)+-parseInt(_0x465cd7(0x1b6))/0x3+-parseInt(_0x465cd7(0x1b5))/0x4*(-parseInt(_0x465cd7(0x1b7))/0x5)+parseInt(_0x465cd7(0x1be))/0x6*(-parseInt(_0x465cd7(0x1bc))/0x7)+-parseInt(_0x465cd7(0x1b4))/0x8+parseInt(_0x465cd7(0x1bd))/0x9+parseInt(_0x465cd7(0x1b9))/0xa*(-parseInt(_0x465cd7(0x1bb))/0xb);if(_0x5a27ed===_0x3421b2)break;else _0x1cc85f['push'](_0x1cc85f['shift']());}catch(_0x4fe447){_0x1cc85f['push'](_0x1cc85f['shift']());}}}(a60_0x41ca,0x4402e));import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';import{buildAllFlags as a60_0x578274}from'@lovrabet/cli-framework';function a60_0x5c0e(_0x19b095,_0x4a5619){_0x19b095=_0x19b095-0x1b4;var _0x41ca0f=a60_0x41ca();var _0x5c0e7f=_0x41ca0f[_0x19b095];return _0x5c0e7f;}function a60_0x41ca(){var _0x52a128=['1MRqCpd','10lemAgP','1049798wFDLEp','8990509NweetR','616LUBSUV','3514527fcUFqs','13782EIVhqI','566264wMgZut','92qmyoSm','33846BavUEA','101020mqhazP'];a60_0x41ca=function(){return _0x52a128;};return a60_0x41ca();}export function buildAllFlags(_0x37b6af){return a60_0x578274(_0x37b6af,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});}
1
+ (function(_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 +1 @@
1
- function a61_0x44b1(_0x493891,_0x36b5c3){_0x493891=_0x493891-0x171;const _0x1a9291=a61_0x1a92();let _0x44b1e4=_0x1a9291[_0x493891];return _0x44b1e4;}(function(_0x5f4d6a,_0x5de39a){const _0x224808=a61_0x44b1,_0x5000bf=_0x5f4d6a();while(!![]){try{const _0x1a9e29=-parseInt(_0x224808(0x179))/0x1*(-parseInt(_0x224808(0x178))/0x2)+-parseInt(_0x224808(0x177))/0x3+parseInt(_0x224808(0x175))/0x4+-parseInt(_0x224808(0x171))/0x5+-parseInt(_0x224808(0x17a))/0x6+-parseInt(_0x224808(0x174))/0x7*(parseInt(_0x224808(0x173))/0x8)+parseInt(_0x224808(0x176))/0x9;if(_0x1a9e29===_0x5de39a)break;else _0x5000bf['push'](_0x5000bf['shift']());}catch(_0x59d6c7){_0x5000bf['push'](_0x5000bf['shift']());}}}(a61_0x1a92,0x9fbe9));export function dryRun(_0x25500f,_0x4f0865){const _0x6f2adf={'method':_0x25500f,'url':_0x4f0865},_0x29abbb={'body'(_0xce848c){return _0x6f2adf['body']=_0xce848c,_0x29abbb;},'description'(_0x470aa9){const _0x169405=a61_0x44b1;return _0x6f2adf[_0x169405(0x172)]=_0x470aa9,_0x29abbb;},'build'(){return{..._0x6f2adf};}};return _0x29abbb;}function a61_0x1a92(){const _0xc45f61=['9uIpLUc','6838530WWhAkF','4452870ylXbgk','description','1646984nkYOsl','14GrVgSL','500532TDoSVV','26529597vUwEiV','2122347dTOAXi','162438MyoNDw'];a61_0x1a92=function(){return _0xc45f61;};return a61_0x1a92();}
1
+ function a61_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 +1 @@
1
- const a62_0x5c1f6c=a62_0x3917;function a62_0x3802(){const _0x1d389b=['2574030GmFrBx','230BCIFQs','28wibqZb','parseFlags','5924wNgsWN','69489BnbGVo','2361369RJZhVk','755JsYIqw','4684928oVgJJf','83277lKvVoZ','46933XiJlyv'];a62_0x3802=function(){return _0x1d389b;};return a62_0x3802();}(function(_0xe011d7,_0x3a163e){const _0x20a734=a62_0x3917,_0x368254=_0xe011d7();while(!![]){try{const _0x20022d=parseInt(_0x20a734(0xb2))/0x1*(parseInt(_0x20a734(0xaa))/0x2)+parseInt(_0x20a734(0xae))/0x3+parseInt(_0x20a734(0xac))/0x4*(parseInt(_0x20a734(0xaf))/0x5)+-parseInt(_0x20a734(0xa8))/0x6+parseInt(_0x20a734(0xad))/0x7+-parseInt(_0x20a734(0xb0))/0x8+-parseInt(_0x20a734(0xb1))/0x9*(parseInt(_0x20a734(0xa9))/0xa);if(_0x20022d===_0x3a163e)break;else _0x368254['push'](_0x368254['shift']());}catch(_0x4ee3cb){_0x368254['push'](_0x368254['shift']());}}}(a62_0x3802,0x6deff));import{createFlagHelpers}from'@lovrabet/cli-framework';function a62_0x3917(_0x1b8b24,_0x4df325){_0x1b8b24=_0x1b8b24-0xa8;const _0x380293=a62_0x3802();let _0x3917e7=_0x380293[_0x1b8b24];return _0x3917e7;}import{CliErrors}from'../errors.js';const helpers=createFlagHelpers(CliErrors);export const parseFlags=helpers[a62_0x5c1f6c(0xab)];export const validateFlags=helpers['validateFlags'];
1
+ 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 +1 @@
1
- (function(_0x27f80c,_0x1cc0bf){const _0x568988=a63_0x10b7,_0x5965fb=_0x27f80c();while(!![]){try{const _0x33b467=parseInt(_0x568988(0xaf))/0x1*(parseInt(_0x568988(0xa2))/0x2)+parseInt(_0x568988(0xac))/0x3+-parseInt(_0x568988(0xa3))/0x4+-parseInt(_0x568988(0xa6))/0x5*(-parseInt(_0x568988(0xa9))/0x6)+parseInt(_0x568988(0xae))/0x7*(-parseInt(_0x568988(0xab))/0x8)+parseInt(_0x568988(0xa7))/0x9+parseInt(_0x568988(0xa8))/0xa;if(_0x33b467===_0x1cc0bf)break;else _0x5965fb['push'](_0x5965fb['shift']());}catch(_0x206025){_0x5965fb['push'](_0x5965fb['shift']());}}}(a63_0x4e59,0xee71b));import{createHelpGenerators}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';import{serviceRegistry,serviceGroups,getServiceEntry}from'../commands/registry.js';function a63_0x10b7(_0xcd3244,_0x563509){_0xcd3244=_0xcd3244-0xa0;const _0x4e5957=a63_0x4e59();let _0x10b74d=_0x4e5957[_0xcd3244];return _0x10b74d;}import{getDynamicServiceDefinitions,getDynamicServiceEntry,listDynamicServiceEntries}from'../commands/service/dynamic.js';function a63_0x4e59(){const _0x217157=['903744iIhwtM','2870424cUXjlq','get','119PvnzjY','48YZMpbc','Requires\x20appcode\x20(set\x20via\x20','map','10676bzjFqY','7645984UrUPtA','has','service','159035idIDoj','5768820naZEKx','14596780fUuMVg','282zzAJfq','\x20or\x20--appcode).'];a63_0x4e59=function(){return _0x217157;};return a63_0x4e59();}import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';import{PRODUCT_CONFIG}from'../constant/product.js';function createGenerators(){const _0x1c0169=a63_0x10b7;return createHelpGenerators({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'globalFlags':GLOBAL_FLAGS,'serviceRegistry':[...serviceRegistry,...safeListDynamicServiceEntries()],'getServiceEntry':getAnyServiceEntry,'getServiceDefinitions':getAnyServiceDefinitions,'buildAllFlags':buildAllFlags,'appPrerequisiteText':_0x1c0169(0xa0)+PRODUCT_CONFIG['newConfigFileName']+_0x1c0169(0xaa)});}export function generateCommandHelp(_0x3123fb){return createGenerators()['generateCommandHelp'](_0x3123fb);}export function generateServiceHelp(_0x18516b){return createGenerators()['generateServiceHelp'](_0x18516b);}export function generateFullHelp(){return createGenerators()['generateFullHelp']();}function getAnyServiceEntry(_0x1c7711){const _0x1b5d8c=getServiceEntry(_0x1c7711);if(_0x1b5d8c)return _0x1b5d8c;try{return getDynamicServiceEntry(_0x1c7711);}catch{return undefined;}}function getAnyServiceDefinitions(_0x4cdfbb){const _0x192cd1=a63_0x10b7,_0x5e84a1=serviceGroups[_0x192cd1(0xad)](_0x4cdfbb);if(_0x5e84a1)return _0x5e84a1;try{return getDynamicServiceDefinitions(_0x4cdfbb);}catch{return undefined;}}function safeListDynamicServiceEntries(){const _0x4ac1bb=a63_0x10b7,_0x447b1c=new Set(serviceRegistry[_0x4ac1bb(0xa1)](_0x4066f4=>_0x4066f4[_0x4ac1bb(0xa5)]));try{return listDynamicServiceEntries()['filter'](_0x381940=>!_0x447b1c[_0x4ac1bb(0xa4)](_0x381940[_0x4ac1bb(0xa5)]));}catch{return[];}}
1
+ (function(_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 +1 @@
1
- (function(_0x402e98,_0x1d3bd0){var _0x444cd8=a64_0x4f25,_0x3f7ddd=_0x402e98();while(!![]){try{var _0x59c2b2=-parseInt(_0x444cd8(0x155))/0x1*(parseInt(_0x444cd8(0x153))/0x2)+parseInt(_0x444cd8(0x157))/0x3+-parseInt(_0x444cd8(0x152))/0x4+-parseInt(_0x444cd8(0x14f))/0x5*(-parseInt(_0x444cd8(0x151))/0x6)+-parseInt(_0x444cd8(0x150))/0x7+-parseInt(_0x444cd8(0x14e))/0x8+-parseInt(_0x444cd8(0x156))/0x9*(-parseInt(_0x444cd8(0x154))/0xa);if(_0x59c2b2===_0x1d3bd0)break;else _0x3f7ddd['push'](_0x3f7ddd['shift']());}catch(_0x20f58e){_0x3f7ddd['push'](_0x3f7ddd['shift']());}}}(a64_0x2995,0x68963));export{runCommand}from'../framework/runner.js';export{parseFlags,validateFlags}from'../framework/flags.js';function a64_0x4f25(_0x48ca80,_0x2a46d5){_0x48ca80=_0x48ca80-0x14e;var _0x299535=a64_0x2995();var _0x4f250a=_0x299535[_0x48ca80];return _0x4f250a;}export{formatOutput}from'../framework/output.js';export{generateCommandHelp,generateServiceHelp,generateFullHelp}from'../framework/help.js';export{extractList,extractPaging}from'../framework/response.js';export{dryRun}from'../framework/dryrun.js';export{riskLevelOrder,isValidFormat}from'../framework/types.js';function a64_0x2995(){var _0x45af4c=['8DFrkUo','9lKeNJY','1243083qoYDbZ','4527408qTnUXL','375YziHuU','563122GFOmOs','52974UfbvPc','602224GbzqwL','211340fOMJhG','9941390PtJzPE'];a64_0x2995=function(){return _0x45af4c;};return a64_0x2995();}
1
+ (function(_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 +1 @@
1
- (function(_0xf53852,_0x8e2c36){const _0x2e3cee=a65_0x3e80,_0x2fa4f6=_0xf53852();while(!![]){try{const _0x425efb=-parseInt(_0x2e3cee(0x94))/0x1*(-parseInt(_0x2e3cee(0xa4))/0x2)+-parseInt(_0x2e3cee(0x98))/0x3+parseInt(_0x2e3cee(0x9c))/0x4*(parseInt(_0x2e3cee(0xa3))/0x5)+-parseInt(_0x2e3cee(0x9f))/0x6*(-parseInt(_0x2e3cee(0xa2))/0x7)+parseInt(_0x2e3cee(0xa0))/0x8+parseInt(_0x2e3cee(0x9b))/0x9*(parseInt(_0x2e3cee(0x96))/0xa)+parseInt(_0x2e3cee(0xa6))/0xb*(-parseInt(_0x2e3cee(0x9d))/0xc);if(_0x425efb===_0x8e2c36)break;else _0x2fa4f6['push'](_0x2fa4f6['shift']());}catch(_0x26aade){_0x2fa4f6['push'](_0x2fa4f6['shift']());}}}(a65_0x2ab2,0x58bae));import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';function a65_0x3e80(_0x3a8277,_0x393026){_0x3a8277=_0x3a8277-0x94;const _0x2ab2af=a65_0x2ab2();let _0x3e8042=_0x2ab2af[_0x3a8277];return _0x3e8042;}import{CliErrors}from'../errors.js';const baseFormatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});function a65_0x2ab2(){const _0x3e404e=['message','30gSkUre','error','1155708TgwdSF','_notice','format','1600803vGQmeQ','572jmXckC','12jEMoQK','pretty','462048gYSOwC','5566696pHtmUA','update','7lfIAlY','3500rWbgXN','12598FVraEH','url','12641134EAEqMp','78rtZRvP'];a65_0x2ab2=function(){return _0x3e404e;};return a65_0x2ab2();}export function formatOutput(_0x30cf4c,_0x1d4deb){const _0x19b956=a65_0x3e80,_0x194731=_0x30cf4c[_0x19b956(0x99)],{_notice:_0x31bc5e,..._0x5c47a4}=_0x30cf4c;void _0x31bc5e,baseFormatOutput(_0x5c47a4,_0x1d4deb),_0x1d4deb[_0x19b956(0x9a)]===_0x19b956(0x9e)&&printPrettyNotice(_0x194731);}function printPrettyNotice(_0x35f3dd){const _0x66491=a65_0x3e80;if(!_0x35f3dd?.[_0x66491(0xa1)])return;console[_0x66491(0x97)](_0x35f3dd[_0x66491(0xa1)][_0x66491(0x95)]+'\x20('+_0x35f3dd[_0x66491(0xa1)][_0x66491(0xa5)]+')');}
1
+ (function(_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 +1 @@
1
- function a66_0x55a2(){const _0x52f16a=['292114YtrTxa','length','string','toLowerCase','972095yuePyg','nonInteractive','appcode','push','version','corrected','84YYHylH','dry-run','904rECfbx','sticky','slice','2177zkSFaP','has','non-interactive','number','indexOf','1649820fGjmgo','19017kOqJlf','entries','type','12392nToTWr','952589oRHBOD','name','set','add','get','20AtQMRh','global','13qsaBOw','replace','1oKkdPT','5004buaiRG','help','original','format','env','keys'];a66_0x55a2=function(){return _0x52f16a;};return a66_0x55a2();}(function(_0x30d111,_0x454bbd){const _0x58ccba=a66_0x44a2,_0x501ebb=_0x30d111();while(!![]){try{const _0x2e16f4=parseInt(_0x58ccba(0x190))/0x1*(-parseInt(_0x58ccba(0x197))/0x2)+parseInt(_0x58ccba(0x1a1))/0x3*(-parseInt(_0x58ccba(0x186))/0x4)+parseInt(_0x58ccba(0x19b))/0x5+-parseInt(_0x58ccba(0x191))/0x6*(-parseInt(_0x58ccba(0x1a6))/0x7)+parseInt(_0x58ccba(0x1a3))/0x8*(parseInt(_0x58ccba(0x183))/0x9)+-parseInt(_0x58ccba(0x18c))/0xa*(parseInt(_0x58ccba(0x187))/0xb)+-parseInt(_0x58ccba(0x182))/0xc*(parseInt(_0x58ccba(0x18e))/0xd);if(_0x2e16f4===_0x454bbd)break;else _0x501ebb['push'](_0x501ebb['shift']());}catch(_0x53bdc2){_0x501ebb['push'](_0x501ebb['shift']());}}}(a66_0x55a2,0x24656));function toKebab(_0x181f31){const _0x45a8a5=a66_0x44a2;return _0x181f31[_0x45a8a5(0x18f)](/_/g,'-')['replace'](/-([A-Z]+)/g,(_0x584e2e,_0x2212a7)=>'-'+_0x2212a7['toLowerCase']())[_0x45a8a5(0x18f)](/([a-z0-9])([A-Z])/g,(_0x2af3e7,_0x42450c,_0x5cd9cd)=>_0x42450c+'-'+_0x5cd9cd)[_0x45a8a5(0x19a)]();}function a66_0x44a2(_0x6f3fdd,_0x36aeaa){_0x6f3fdd=_0x6f3fdd-0x182;const _0x55a239=a66_0x55a2();let _0x44a253=_0x55a239[_0x6f3fdd];return _0x44a253;}function buildKnownFlags(_0x18739f){const _0x2084a6=a66_0x44a2,_0x1c9325=new Set();for(const _0x4d0bb8 of _0x18739f){_0x1c9325['add'](_0x4d0bb8[_0x2084a6(0x188)]),_0x1c9325[_0x2084a6(0x18a)](toCamelCase(_0x4d0bb8[_0x2084a6(0x188)]));}for(const _0x2c6c6e of[_0x2084a6(0x1a2),'dryRun','yes',_0x2084a6(0x194)]){_0x1c9325[_0x2084a6(0x18a)](_0x2c6c6e);}for(const _0x17ffcc of[_0x2084a6(0x192),_0x2084a6(0x195),_0x2084a6(0x19d),'app',_0x2084a6(0x19c),_0x2084a6(0x1a8),'ci',_0x2084a6(0x18d),_0x2084a6(0x19f)]){_0x1c9325[_0x2084a6(0x18a)](_0x17ffcc);}return _0x1c9325;}function buildFlagTypeMap(_0x419aa1){const _0xd631b3=a66_0x44a2,_0x1b76c5=new Map();for(const _0x5d4c53 of _0x419aa1){_0x1b76c5[_0xd631b3(0x189)](_0x5d4c53['name'],_0x5d4c53[_0xd631b3(0x185)]),_0x1b76c5[_0xd631b3(0x189)](toCamelCase(_0x5d4c53[_0xd631b3(0x188)]),_0x5d4c53['type']);}return _0x1b76c5;}function toCamelCase(_0x3f5f04){return _0x3f5f04['replace'](/-([a-z])/g,(_0x2df7fc,_0x11b4e8)=>_0x11b4e8['toUpperCase']());}function aliasHandler(_0x413fe1,_0x3e11a2){const _0x55d63a=a66_0x44a2,_0x81bed5=[];for(const _0x4534a8 of Object[_0x55d63a(0x196)](_0x413fe1)){if(_0x3e11a2['has'](_0x4534a8))continue;const _0x2d3553=toKebab(_0x4534a8);_0x2d3553!==_0x4534a8&&_0x3e11a2[_0x55d63a(0x1a7)](_0x2d3553)&&_0x81bed5[_0x55d63a(0x19e)]({'original':_0x4534a8,'corrected':_0x2d3553,'handler':'alias'});}return _0x81bed5;}function stickyHandler(_0x443f00,_0x45953f,_0x2b6ed6){const _0x3aa2ac=a66_0x44a2,_0x2df961=[];for(const [_0x25004a,_0x52dadf]of Object[_0x3aa2ac(0x184)](_0x443f00)){if(_0x52dadf!==!![])continue;for(let _0x322aa7=_0x25004a[_0x3aa2ac(0x198)]-0x1;_0x322aa7>0x0;_0x322aa7--){const _0x41812d=_0x25004a[_0x3aa2ac(0x1a5)](0x0,_0x322aa7),_0x5501f4=_0x25004a[_0x3aa2ac(0x1a5)](_0x322aa7),_0x8c13ef=toKebab(_0x41812d),_0x496a13=toCamelCase(_0x41812d),_0x2018df=_0x45953f[_0x3aa2ac(0x1a7)](_0x41812d)?_0x41812d:_0x45953f['has'](_0x8c13ef)?_0x8c13ef:_0x45953f[_0x3aa2ac(0x1a7)](_0x496a13)?_0x496a13:null;if(!_0x2018df)continue;const _0x23a462=_0x2b6ed6['get'](_0x2018df)??'string';let _0x3d4a5c;if(_0x23a462===_0x3aa2ac(0x1a9)){const _0xff6a07=Number(_0x5501f4);if(isNaN(_0xff6a07)||_0x5501f4==='')continue;_0x3d4a5c=_0xff6a07;}else{if(_0x23a462==='boolean')continue;else{if(_0x5501f4==='')continue;_0x3d4a5c=_0x5501f4;}}_0x2df961[_0x3aa2ac(0x19e)]({'original':_0x25004a,'corrected':_0x2018df+'='+_0x3d4a5c,'handler':_0x3aa2ac(0x1a4)});break;}}return _0x2df961;}export function correctFlags(_0xcf27a,_0x2c81ac){const _0x4cc9ac=a66_0x44a2,_0x1579ba=buildKnownFlags(_0x2c81ac),_0x4d48a6=buildFlagTypeMap(_0x2c81ac),_0x2112c5=aliasHandler(_0xcf27a,_0x1579ba),_0x3d2bae=stickyHandler(_0xcf27a,_0x1579ba,_0x4d48a6),_0x4a3ea1=[..._0x2112c5,..._0x3d2bae];if(_0x4a3ea1[_0x4cc9ac(0x198)]===0x0)return{'flags':_0xcf27a,'corrections':[]};const _0x4c56d1={..._0xcf27a},_0x4c1e45=new Set();for(const _0x590938 of _0x2112c5){_0x4c56d1[_0x590938[_0x4cc9ac(0x1a0)]]=_0xcf27a[_0x590938[_0x4cc9ac(0x193)]],_0x4c1e45[_0x4cc9ac(0x18a)](_0x590938[_0x4cc9ac(0x193)]);}for(const _0x599701 of _0x3d2bae){const _0x2a5144=_0x599701[_0x4cc9ac(0x1a0)][_0x4cc9ac(0x1aa)]('='),_0x3f9a3e=_0x599701[_0x4cc9ac(0x1a0)][_0x4cc9ac(0x1a5)](0x0,_0x2a5144),_0x337961=_0x599701[_0x4cc9ac(0x1a0)][_0x4cc9ac(0x1a5)](_0x2a5144+0x1),_0x1e0682=_0x4d48a6[_0x4cc9ac(0x18b)](_0x3f9a3e)??_0x4cc9ac(0x199);_0x1e0682===_0x4cc9ac(0x1a9)?_0x4c56d1[_0x3f9a3e]=Number(_0x337961):_0x4c56d1[_0x3f9a3e]=_0x337961,_0x4c1e45[_0x4cc9ac(0x18a)](_0x599701[_0x4cc9ac(0x193)]);}for(const _0x4738c5 of _0x4c1e45){delete _0x4c56d1[_0x4738c5];}return{'flags':_0x4c56d1,'corrections':_0x4a3ea1};}
1
+ (function(_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 +1 @@
1
- (function(_0x38b00c,_0x5225fa){var _0x5f1a58=a67_0x5969,_0x49ff47=_0x38b00c();while(!![]){try{var _0x25bb74=-parseInt(_0x5f1a58(0x12e))/0x1+parseInt(_0x5f1a58(0x12f))/0x2+parseInt(_0x5f1a58(0x12d))/0x3+-parseInt(_0x5f1a58(0x126))/0x4*(parseInt(_0x5f1a58(0x12c))/0x5)+parseInt(_0x5f1a58(0x127))/0x6*(parseInt(_0x5f1a58(0x128))/0x7)+-parseInt(_0x5f1a58(0x129))/0x8*(-parseInt(_0x5f1a58(0x12b))/0x9)+-parseInt(_0x5f1a58(0x12a))/0xa;if(_0x25bb74===_0x5225fa)break;else _0x49ff47['push'](_0x49ff47['shift']());}catch(_0x5182e1){_0x49ff47['push'](_0x49ff47['shift']());}}}(a67_0x4ae3,0x738c7));export{extractList,extractPaging}from'@lovrabet/cli-framework';function a67_0x5969(_0x217f04,_0x130509){_0x217f04=_0x217f04-0x126;var _0x4ae36a=a67_0x4ae3();var _0x596934=_0x4ae36a[_0x217f04];return _0x596934;}function a67_0x4ae3(){var _0x28c6a1=['697158LYdIEi','1522824lzEuwx','48qqaJVE','2166UorcJz','16933THbNiA','83544jTTSYt','13018850XDAeXN','684ZLeeQF','347195SHkjWM','2631777Kzjvlr'];a67_0x4ae3=function(){return _0x28c6a1;};return a67_0x4ae3();}
1
+ (function(_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';