@lovrabet/lovrabet-cli 2.1.3 → 2.1.4

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 (107) 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/commands/create.js +1 -1
  37. package/lib/commands/skill/commands/install.js +1 -1
  38. package/lib/commands/skill/commands/list.js +1 -1
  39. package/lib/commands/skill/commands/push.js +1 -1
  40. package/lib/commands/skill/commands/validate.js +1 -1
  41. package/lib/commands/skill/flags.js +1 -1
  42. package/lib/commands/skill/index.js +1 -1
  43. package/lib/commands/skill/manifest-helpers.js +1 -1
  44. package/lib/commands/skill/scopes.js +1 -1
  45. package/lib/commands/skill/summary.js +1 -1
  46. package/lib/commands/skill/templates.js +1 -1
  47. package/lib/commands/skill/validate.js +1 -1
  48. package/lib/commands/sql/detail.js +1 -1
  49. package/lib/commands/sql/exec.js +1 -1
  50. package/lib/commands/sql/index.js +1 -1
  51. package/lib/commands/update.js +1 -1
  52. package/lib/commands/workspace/index.js +1 -1
  53. package/lib/config/schema.js +1 -1
  54. package/lib/constant/app.js +1 -1
  55. package/lib/constant/auth-mode.js +1 -1
  56. package/lib/constant/cli.js +1 -1
  57. package/lib/constant/defaults.js +1 -1
  58. package/lib/constant/distribution.js +1 -1
  59. package/lib/constant/domain.js +1 -1
  60. package/lib/constant/env.js +1 -1
  61. package/lib/constant/output.js +1 -1
  62. package/lib/constant/product.js +1 -1
  63. package/lib/constant/risk.js +1 -1
  64. package/lib/constant/url.js +1 -1
  65. package/lib/context.js +1 -1
  66. package/lib/core/api-client.js +1 -1
  67. package/lib/core/db-resolver.js +1 -1
  68. package/lib/core/sdk-client.js +1 -1
  69. package/lib/errors.js +1 -1
  70. package/lib/framework/build-all-flags.js +1 -1
  71. package/lib/framework/dryrun.js +1 -1
  72. package/lib/framework/flags.js +1 -1
  73. package/lib/framework/help.js +1 -1
  74. package/lib/framework/index.js +1 -1
  75. package/lib/framework/output.js +1 -1
  76. package/lib/framework/preparse.js +1 -1
  77. package/lib/framework/response.js +1 -1
  78. package/lib/framework/runner-confirmation.js +1 -1
  79. package/lib/framework/runner-error.js +1 -1
  80. package/lib/framework/runner.js +1 -1
  81. package/lib/framework/schema-export.js +1 -1
  82. package/lib/framework/types.js +1 -1
  83. package/lib/generated/build-info.js +1 -1
  84. package/lib/help.js +1 -1
  85. package/lib/skills/npx-skills-add.js +1 -1
  86. package/lib/skills/runtime-skill-sync/constants.js +1 -1
  87. package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
  88. package/lib/skills/runtime-skill-sync/hashing.js +1 -1
  89. package/lib/skills/runtime-skill-sync/links.js +1 -1
  90. package/lib/skills/runtime-skill-sync/list-local.js +1 -1
  91. package/lib/skills/runtime-skill-sync/local-files.js +1 -1
  92. package/lib/skills/runtime-skill-sync/materialize.js +1 -1
  93. package/lib/skills/runtime-skill-sync/metadata.js +1 -1
  94. package/lib/skills/runtime-skill-sync/paths.js +1 -1
  95. package/lib/skills/runtime-skill-sync/push.js +1 -1
  96. package/lib/skills/runtime-skill-sync/scopes.js +1 -1
  97. package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
  98. package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
  99. package/lib/skills/runtime-skill-sync.js +1 -1
  100. package/lib/utils/apply-jq-filter.js +1 -1
  101. package/lib/utils/logger.js +1 -1
  102. package/lib/utils/params.js +1 -1
  103. package/lib/utils/platform.js +1 -1
  104. package/lib/utils/update-notice.js +1 -1
  105. package/lib/utils/version.js +1 -1
  106. package/lib/utils/write-cli-side-channel.js +1 -1
  107. package/package.json +1 -1
@@ -1 +1 @@
1
- const a57_0x597723=a57_0x4173;function a57_0x4173(_0x21e80f,_0x3771b4){_0x21e80f=_0x21e80f-0xb6;const _0x5271fe=a57_0x5271();let _0x4173bf=_0x5271fe[_0x21e80f];return _0x4173bf;}(function(_0x5a354c,_0x47c324){const _0x58a280=a57_0x4173,_0x59fd77=_0x5a354c();while(!![]){try{const _0x3119aa=-parseInt(_0x58a280(0xba))/0x1*(parseInt(_0x58a280(0xb9))/0x2)+parseInt(_0x58a280(0xb7))/0x3+parseInt(_0x58a280(0xb6))/0x4*(-parseInt(_0x58a280(0xc0))/0x5)+parseInt(_0x58a280(0xbf))/0x6*(parseInt(_0x58a280(0xc1))/0x7)+-parseInt(_0x58a280(0xbb))/0x8+parseInt(_0x58a280(0xc2))/0x9*(-parseInt(_0x58a280(0xbd))/0xa)+-parseInt(_0x58a280(0xbe))/0xb*(-parseInt(_0x58a280(0xc3))/0xc);if(_0x3119aa===_0x47c324)break;else _0x59fd77['push'](_0x59fd77['shift']());}catch(_0x532c8f){_0x59fd77['push'](_0x59fd77['shift']());}}}(a57_0x5271,0x76e65));function a57_0x5271(){const _0x2bd70d=['1736182mCkPXH','45jvkLLy','12dwcAZF','4aSSBLx','2661756vgsSEi','npmRegistryBaseUrl','2oAHLrP','919447TjuxKu','6121256pLVpSl','skillSource','1463810PapAvy','21195009yMXxkg','12FqbtQL','2033005MtHQVi'];a57_0x5271=function(){return _0x2bd70d;};return a57_0x5271();}import{PRODUCT_CONFIG}from'../constant/product.js';export const LOVRABET_NPM_PACKAGE_NAME=PRODUCT_CONFIG['npmPackageName'];export const LOVRABET_SKILL_SOURCE=PRODUCT_CONFIG[a57_0x597723(0xbc)];export const NPM_REGISTRY_BASE_URL=PRODUCT_CONFIG[a57_0x597723(0xb8)];
1
+ const a57_0x4fc835=a57_0x4fb5;(function(_0x12eec9,_0x1d0afe){const _0x5aa236=a57_0x4fb5,_0x2fb395=_0x12eec9();while(!![]){try{const _0x484078=-parseInt(_0x5aa236(0x175))/0x1*(-parseInt(_0x5aa236(0x176))/0x2)+-parseInt(_0x5aa236(0x17c))/0x3*(parseInt(_0x5aa236(0x177))/0x4)+parseInt(_0x5aa236(0x179))/0x5*(parseInt(_0x5aa236(0x17f))/0x6)+-parseInt(_0x5aa236(0x17d))/0x7+parseInt(_0x5aa236(0x181))/0x8*(parseInt(_0x5aa236(0x17b))/0x9)+parseInt(_0x5aa236(0x178))/0xa+-parseInt(_0x5aa236(0x17a))/0xb;if(_0x484078===_0x1d0afe)break;else _0x2fb395['push'](_0x2fb395['shift']());}catch(_0x4e2eaf){_0x2fb395['push'](_0x2fb395['shift']());}}}(a57_0x3335,0xe4bea));import{PRODUCT_CONFIG}from'../constant/product.js';export const LOVRABET_NPM_PACKAGE_NAME=PRODUCT_CONFIG[a57_0x4fc835(0x180)];function a57_0x3335(){const _0x3eeac3=['198TyrDda','33ezZaqG','2830219TWsyKj','npmRegistryBaseUrl','4197630ndqdkH','npmPackageName','548672SJIPzs','6502JRUfSM','96NGvWaJ','6580gfXVbC','10842440NZwzRf','10cUmZiZ','32395528iKyBBm'];a57_0x3335=function(){return _0x3eeac3;};return a57_0x3335();}export const LOVRABET_SKILL_SOURCE=PRODUCT_CONFIG['skillSource'];function a57_0x4fb5(_0x1f136e,_0x12be69){_0x1f136e=_0x1f136e-0x175;const _0x333514=a57_0x3335();let _0x4fb59e=_0x333514[_0x1f136e];return _0x4fb59e;}export const NPM_REGISTRY_BASE_URL=PRODUCT_CONFIG[a57_0x4fc835(0x17e)];
@@ -1 +1 @@
1
- function a58_0x556c(_0x25e967,_0x30f010){_0x25e967=_0x25e967-0x12e;const _0x464bc0=a58_0x464b();let _0x556c26=_0x464bc0[_0x25e967];return _0x556c26;}const a58_0x353e13=a58_0x556c;(function(_0x2d7a01,_0x11dddb){const _0x2fdbdb=a58_0x556c,_0x30f1ca=_0x2d7a01();while(!![]){try{const _0x5d4cdd=-parseInt(_0x2fdbdb(0x140))/0x1*(parseInt(_0x2fdbdb(0x13c))/0x2)+parseInt(_0x2fdbdb(0x143))/0x3*(parseInt(_0x2fdbdb(0x13a))/0x4)+-parseInt(_0x2fdbdb(0x136))/0x5+-parseInt(_0x2fdbdb(0x138))/0x6*(parseInt(_0x2fdbdb(0x13d))/0x7)+-parseInt(_0x2fdbdb(0x130))/0x8*(-parseInt(_0x2fdbdb(0x141))/0x9)+-parseInt(_0x2fdbdb(0x12e))/0xa*(parseInt(_0x2fdbdb(0x134))/0xb)+parseInt(_0x2fdbdb(0x142))/0xc;if(_0x5d4cdd===_0x11dddb)break;else _0x30f1ca['push'](_0x30f1ca['shift']());}catch(_0x5ee9ca){_0x30f1ca['push'](_0x30f1ca['shift']());}}}(a58_0x464b,0xcd232));import{getEnv,isProduction}from'../constant/env.js';import{PRODUCT_CONFIG}from'../constant/product.js';let customApiDomain,customUserDomain,customRuntimeDomain,customSkillHubDomain;export function initDomains(_0x40e3f6){const _0x185e92=a58_0x556c;customApiDomain=_0x40e3f6?.['apiDomain'],customUserDomain=_0x40e3f6?.[_0x185e92(0x13f)],customRuntimeDomain=_0x40e3f6?.[_0x185e92(0x137)],customSkillHubDomain=_0x40e3f6?.[_0x185e92(0x139)];}export const getUserDomain=()=>customUserDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a58_0x353e13(0x133)][a58_0x353e13(0x13e)]['user']:PRODUCT_CONFIG[a58_0x353e13(0x133)][a58_0x353e13(0x135)][a58_0x353e13(0x131)]);export const getApiDomain=()=>customApiDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a58_0x353e13(0x133)][a58_0x353e13(0x13e)][a58_0x353e13(0x132)]:PRODUCT_CONFIG[a58_0x353e13(0x133)][a58_0x353e13(0x135)]['api']);function a58_0x464b(){const _0x503148=['skillHubDomain','1631332fdiWtj','skillhub','332476lfMCKa','1675996BRyJMs','production','userDomain','2mifJSx','4125897pquzSF','6543648zoqjYd','6EvNMmf','20ogETUX','runtime','16DIVwlU','user','api','domains','1709510hiJhzG','nonProduction','2774350anINzn','runtimeDomain','6kFmRKZ'];a58_0x464b=function(){return _0x503148;};return a58_0x464b();}export const getRuntimeDomain=()=>customRuntimeDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a58_0x353e13(0x133)][a58_0x353e13(0x13e)][a58_0x353e13(0x12f)]:PRODUCT_CONFIG[a58_0x353e13(0x133)][a58_0x353e13(0x135)][a58_0x353e13(0x12f)]);export const getSkillHubDomain=()=>customSkillHubDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a58_0x353e13(0x133)][a58_0x353e13(0x13e)][a58_0x353e13(0x13b)]:PRODUCT_CONFIG['domains']['nonProduction'][a58_0x353e13(0x13b)]);
1
+ const a58_0x50f648=a58_0x267a;function a58_0x267a(_0x445f79,_0x3ec232){_0x445f79=_0x445f79-0x8f;const _0x5f2a69=a58_0x5f2a();let _0x267abf=_0x5f2a69[_0x445f79];return _0x267abf;}(function(_0x5eec66,_0x25f8f7){const _0x272de8=a58_0x267a,_0xa185d7=_0x5eec66();while(!![]){try{const _0x270350=parseInt(_0x272de8(0x95))/0x1*(parseInt(_0x272de8(0x92))/0x2)+parseInt(_0x272de8(0x94))/0x3+-parseInt(_0x272de8(0x9f))/0x4+-parseInt(_0x272de8(0x9e))/0x5+-parseInt(_0x272de8(0x91))/0x6*(-parseInt(_0x272de8(0x98))/0x7)+parseInt(_0x272de8(0x93))/0x8*(-parseInt(_0x272de8(0x9c))/0x9)+parseInt(_0x272de8(0x99))/0xa;if(_0x270350===_0x25f8f7)break;else _0xa185d7['push'](_0xa185d7['shift']());}catch(_0x278391){_0xa185d7['push'](_0xa185d7['shift']());}}}(a58_0x5f2a,0x9dcba));import{getEnv,isProduction}from'../constant/env.js';import{PRODUCT_CONFIG}from'../constant/product.js';let customApiDomain,customUserDomain,customRuntimeDomain,customSkillHubDomain;export function initDomains(_0x11372b){const _0x47cbf=a58_0x267a;customApiDomain=_0x11372b?.[_0x47cbf(0x9a)],customUserDomain=_0x11372b?.['userDomain'],customRuntimeDomain=_0x11372b?.['runtimeDomain'],customSkillHubDomain=_0x11372b?.[_0x47cbf(0xa0)];}export const getUserDomain=()=>customUserDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a58_0x50f648(0x96)]['production'][a58_0x50f648(0xa1)]:PRODUCT_CONFIG[a58_0x50f648(0x96)][a58_0x50f648(0x90)][a58_0x50f648(0xa1)]);function a58_0x5f2a(){const _0x578609=['30XrxkLj','domains','production','1981YEQKaG','15429950RCGrcf','apiDomain','runtime','619713JGaNpB','api','5163715gZCZZS','585420PtSVwY','skillHubDomain','user','skillhub','nonProduction','3282VNPaQQ','10484EgsahQ','104NVSWnV','2596539kPfdjv'];a58_0x5f2a=function(){return _0x578609;};return a58_0x5f2a();}export const getApiDomain=()=>customApiDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a58_0x50f648(0x96)][a58_0x50f648(0x97)][a58_0x50f648(0x9d)]:PRODUCT_CONFIG[a58_0x50f648(0x96)][a58_0x50f648(0x90)][a58_0x50f648(0x9d)]);export const getRuntimeDomain=()=>customRuntimeDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a58_0x50f648(0x96)][a58_0x50f648(0x97)][a58_0x50f648(0x9b)]:PRODUCT_CONFIG['domains'][a58_0x50f648(0x90)]['runtime']);export const getSkillHubDomain=()=>customSkillHubDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a58_0x50f648(0x96)][a58_0x50f648(0x97)][a58_0x50f648(0x8f)]:PRODUCT_CONFIG[a58_0x50f648(0x96)]['nonProduction']['skillhub']);
@@ -1 +1 @@
1
- const a59_0xb3ea73=a59_0x9f62;(function(_0x51f0f0,_0x3bd463){const _0x1cb212=a59_0x9f62,_0x7dd91d=_0x51f0f0();while(!![]){try{const _0x20c0f9=-parseInt(_0x1cb212(0x8a))/0x1+-parseInt(_0x1cb212(0x8c))/0x2+-parseInt(_0x1cb212(0x88))/0x3+parseInt(_0x1cb212(0x8d))/0x4+-parseInt(_0x1cb212(0x8e))/0x5+parseInt(_0x1cb212(0x87))/0x6+-parseInt(_0x1cb212(0x8b))/0x7*(parseInt(_0x1cb212(0x83))/0x8);if(_0x20c0f9===_0x3bd463)break;else _0x7dd91d['push'](_0x7dd91d['shift']());}catch(_0x1667c8){_0x7dd91d['push'](_0x7dd91d['shift']());}}}(a59_0x3a5e,0x7c5f7));function a59_0x3a5e(){const _0x2c1632=['4053456dlNCyG','44328yuVItK','development','300464dPeNmU','7mUbMfp','219742LbFbBf','2041492tdFpWZ','10200pIgFiK','1994936NLpWTV','production','dev','daily'];a59_0x3a5e=function(){return _0x2c1632;};return a59_0x3a5e();}function a59_0x9f62(_0xd1c0ba,_0x29c79f){_0xd1c0ba=_0xd1c0ba-0x83;const _0x3a5e91=a59_0x3a5e();let _0x9f6291=_0x3a5e91[_0xd1c0ba];return _0x9f6291;}import{productEnv}from'../constant/product.js';export const RUNTIME_ENV_VALUES=[a59_0xb3ea73(0x84),'development',a59_0xb3ea73(0x86)];export function normalizeEnv(_0x338fc4){const _0x271147=a59_0xb3ea73;return _0x338fc4==='online'?_0x271147(0x84):_0x338fc4;}export function isProduction(_0x1fd286){const _0x1c9602=a59_0xb3ea73;return normalizeEnv(_0x1fd286)===_0x1c9602(0x84);}export function isDaily(_0x41d71b){const _0x214c7e=a59_0xb3ea73;return normalizeEnv(_0x41d71b)===_0x214c7e(0x86);}export function isDev(_0x2ef27e){const _0xff92c=a59_0xb3ea73,_0x1dd6da=normalizeEnv(_0x2ef27e);return _0x1dd6da===_0xff92c(0x89)||_0x1dd6da===_0xff92c(0x85);}let env=normalizeEnv(productEnv('ENV')||'production');export function getEnv(){return env;}export function initEnv(_0x549798){env=normalizeEnv(_0x549798);}
1
+ const a59_0x4ffaf4=a59_0x3009;(function(_0x5b3db9,_0x524c63){const _0x3de27d=a59_0x3009,_0x3fc5e0=_0x5b3db9();while(!![]){try{const _0x55efc0=-parseInt(_0x3de27d(0xd0))/0x1*(-parseInt(_0x3de27d(0xce))/0x2)+parseInt(_0x3de27d(0xc8))/0x3+parseInt(_0x3de27d(0xcf))/0x4*(-parseInt(_0x3de27d(0xcd))/0x5)+-parseInt(_0x3de27d(0xc5))/0x6*(parseInt(_0x3de27d(0xd3))/0x7)+-parseInt(_0x3de27d(0xc6))/0x8*(-parseInt(_0x3de27d(0xc3))/0x9)+parseInt(_0x3de27d(0xc9))/0xa*(-parseInt(_0x3de27d(0xcc))/0xb)+-parseInt(_0x3de27d(0xcb))/0xc*(-parseInt(_0x3de27d(0xca))/0xd);if(_0x55efc0===_0x524c63)break;else _0x3fc5e0['push'](_0x3fc5e0['shift']());}catch(_0x2afede){_0x3fc5e0['push'](_0x3fc5e0['shift']());}}}(a59_0x3f91,0xd6cde));import{productEnv}from'../constant/product.js';function a59_0x3f91(){const _0x1a41f4=['1020NQtcSG','19925347uxuawb','12RQmWPi','160996qkTMLW','5cxHXQA','3836iEeFTV','1611892JyMukp','157oxMrMg','development','daily','531804EDassV','online','155313BrEpil','ENV','114aMXdCv','568FQJyDV','production','3480177PlPCZk'];a59_0x3f91=function(){return _0x1a41f4;};return a59_0x3f91();}export const RUNTIME_ENV_VALUES=[a59_0x4ffaf4(0xc7),a59_0x4ffaf4(0xd1),a59_0x4ffaf4(0xd2)];export function normalizeEnv(_0x706010){const _0x579d7e=a59_0x4ffaf4;return _0x706010===_0x579d7e(0xd4)?'production':_0x706010;}export function isProduction(_0x3554be){const _0x4aed08=a59_0x4ffaf4;return normalizeEnv(_0x3554be)===_0x4aed08(0xc7);}export function isDaily(_0x22bf1f){const _0x5a1e2e=a59_0x4ffaf4;return normalizeEnv(_0x22bf1f)===_0x5a1e2e(0xd2);}function a59_0x3009(_0x49c164,_0x43343f){_0x49c164=_0x49c164-0xc3;const _0x3f91ae=a59_0x3f91();let _0x300979=_0x3f91ae[_0x49c164];return _0x300979;}export function isDev(_0x12298a){const _0x2b4d55=a59_0x4ffaf4,_0xe8c8b=normalizeEnv(_0x12298a);return _0xe8c8b===_0x2b4d55(0xd1)||_0xe8c8b==='dev';}let env=normalizeEnv(productEnv(a59_0x4ffaf4(0xc4))||a59_0x4ffaf4(0xc7));export function getEnv(){return env;}export function initEnv(_0x2c8353){env=normalizeEnv(_0x2c8353);}
@@ -1 +1 @@
1
- function a60_0x2924(){const _0x1a9d29=['80igKQpf','json','2595726ewIblb','pretty','7798450yFXfji','2899986kzMwfD','2dsdRYV','7384023XbkrMf','1201782YQCzId','3662328xqSfvf','214612uZuSuM','14XCAOmT'];a60_0x2924=function(){return _0x1a9d29;};return a60_0x2924();}const a60_0x38f856=a60_0x1add;(function(_0x21fbf3,_0x4768ff){const _0x41e1aa=a60_0x1add,_0x2f72c0=_0x21fbf3();while(!![]){try{const _0x74b927=-parseInt(_0x41e1aa(0x1e1))/0x1*(-parseInt(_0x41e1aa(0x1df))/0x2)+-parseInt(_0x41e1aa(0x1de))/0x3+parseInt(_0x41e1aa(0x1e3))/0x4*(parseInt(_0x41e1aa(0x1e5))/0x5)+parseInt(_0x41e1aa(0x1db))/0x6+-parseInt(_0x41e1aa(0x1e4))/0x7*(parseInt(_0x41e1aa(0x1e2))/0x8)+parseInt(_0x41e1aa(0x1e0))/0x9+-parseInt(_0x41e1aa(0x1dd))/0xa;if(_0x74b927===_0x4768ff)break;else _0x2f72c0['push'](_0x2f72c0['shift']());}catch(_0x58554f){_0x2f72c0['push'](_0x2f72c0['shift']());}}}(a60_0x2924,0x9efc9));function a60_0x1add(_0x4961a4,_0x490c8d){_0x4961a4=_0x4961a4-0x1db;const _0x292426=a60_0x2924();let _0x1addff=_0x292426[_0x4961a4];return _0x1addff;}export const OUTPUT_FORMAT_VALUES=[a60_0x38f856(0x1e6),a60_0x38f856(0x1dc),'compress'];
1
+ const a60_0x2f622b=a60_0x26a7;(function(_0x14cf02,_0x98f446){const _0x2ee42a=a60_0x26a7,_0x297b72=_0x14cf02();while(!![]){try{const _0x2bc91e=parseInt(_0x2ee42a(0x165))/0x1*(parseInt(_0x2ee42a(0x163))/0x2)+parseInt(_0x2ee42a(0x15e))/0x3*(parseInt(_0x2ee42a(0x15b))/0x4)+parseInt(_0x2ee42a(0x15d))/0x5*(parseInt(_0x2ee42a(0x15c))/0x6)+parseInt(_0x2ee42a(0x160))/0x7+parseInt(_0x2ee42a(0x161))/0x8+-parseInt(_0x2ee42a(0x164))/0x9+-parseInt(_0x2ee42a(0x162))/0xa;if(_0x2bc91e===_0x98f446)break;else _0x297b72['push'](_0x297b72['shift']());}catch(_0x4d4e5f){_0x297b72['push'](_0x297b72['shift']());}}}(a60_0x51ff,0x86949));export const OUTPUT_FORMAT_VALUES=[a60_0x2f622b(0x15f),'pretty',a60_0x2f622b(0x15a)];function a60_0x26a7(_0x15a85c,_0x1e9348){_0x15a85c=_0x15a85c-0x15a;const _0x51ffe3=a60_0x51ff();let _0x26a774=_0x51ffe3[_0x15a85c];return _0x26a774;}function a60_0x51ff(){const _0x31fcf1=['8976006nnkpwy','31GQdpLB','compress','8hrjhzq','1945266oAPouN','15hrGics','492123sTxwTE','json','4980388rdZVcM','6821488VvVuGh','17302840ConLFW','26708CMoMNK'];a60_0x51ff=function(){return _0x31fcf1;};return a60_0x51ff();}
@@ -1 +1 @@
1
- const a61_0x3f6ffd=a61_0x6bb4;function a61_0x40ba(){const _0x4fe1d5=['7640nQEGaT','cli:lovrabet-runtime','4WXBhIR','2008030tvTQhH','1827148nCKFMA','LOVRABET','https://registry.npmjs.org','.lovrabet','https://user.lovrabet.com','.lovrabetrc','https://skills.lovrabet.com','2646AaSpMp','legacyEnvPrefixes','/user/ak','84969pzrSwk','386631UAvGQc','.lovrabet.json','SKIP_NPX_SKILLS','.lovrabet-runtime.log','3166776obOBet','RABETBASE','Lovrabet\x20User\x20Center','9hLbwKC','@lovrabet/lovrabet-cli','https://daily-api.lovrabet.com','https://runtime.lovrabet.com','https://user-daily.lovrabet.com','lovrabet','lovrabet/lovrabet-cli','https://api.lovrabet.com','Lovrabet\x20Runtime\x20CLI','2289295lmEqVd','envPrefix'];a61_0x40ba=function(){return _0x4fe1d5;};return a61_0x40ba();}(function(_0x4a9887,_0x375648){const _0x3cc70b=a61_0x6bb4,_0xb259c2=_0x4a9887();while(!![]){try{const _0x41bc66=parseInt(_0x3cc70b(0xef))/0x1*(-parseInt(_0x3cc70b(0x104))/0x2)+-parseInt(_0x3cc70b(0xf0))/0x3+-parseInt(_0x3cc70b(0xe5))/0x4+parseInt(_0x3cc70b(0x100))/0x5+parseInt(_0x3cc70b(0xf4))/0x6+parseInt(_0x3cc70b(0xec))/0x7*(parseInt(_0x3cc70b(0x102))/0x8)+-parseInt(_0x3cc70b(0xf7))/0x9*(parseInt(_0x3cc70b(0x105))/0xa);if(_0x41bc66===_0x375648)break;else _0xb259c2['push'](_0xb259c2['shift']());}catch(_0x43d6b6){_0xb259c2['push'](_0xb259c2['shift']());}}}(a61_0x40ba,0x5f460));export const PRODUCT_CONFIG={'cliBinName':a61_0x3f6ffd(0xfc),'cliDisplayName':a61_0x3f6ffd(0xff),'npmPackageName':a61_0x3f6ffd(0xf8),'skillSource':a61_0x3f6ffd(0xfd),'npmRegistryBaseUrl':a61_0x3f6ffd(0xe7),'envPrefix':a61_0x3f6ffd(0xe6),'legacyEnvPrefixes':[a61_0x3f6ffd(0xf5)],'configFileNames':[a61_0x3f6ffd(0xf1),a61_0x3f6ffd(0xea)],'newConfigFileName':a61_0x3f6ffd(0xf1),'homeDirName':a61_0x3f6ffd(0xe8),'logFileName':a61_0x3f6ffd(0xf3),'invokeSource':a61_0x3f6ffd(0x103),'userCenterDisplayName':a61_0x3f6ffd(0xf6),'skipNpxSkillsEnvSuffix':a61_0x3f6ffd(0xf2),'domains':{'production':{'user':a61_0x3f6ffd(0xe9),'api':a61_0x3f6ffd(0xfe),'runtime':a61_0x3f6ffd(0xfa),'skillhub':a61_0x3f6ffd(0xeb)},'nonProduction':{'user':a61_0x3f6ffd(0xfb),'api':a61_0x3f6ffd(0xf9),'runtime':'https://daily-runtime.lovrabet.com','skillhub':'https://skills-daily.lovrabet.com'}},'accessKeyCreatePath':a61_0x3f6ffd(0xee)};export function productEnvName(_0x25446b){const _0x531238=a61_0x3f6ffd;return PRODUCT_CONFIG[_0x531238(0x101)]+'_'+_0x25446b;}export function productEnvNames(_0x349048){const _0x1fb4a7=a61_0x3f6ffd;return[productEnvName(_0x349048),...PRODUCT_CONFIG[_0x1fb4a7(0xed)]['map'](_0x4cb4da=>_0x4cb4da+'_'+_0x349048)];}function a61_0x6bb4(_0x618800,_0x28033f){_0x618800=_0x618800-0xe5;const _0x40ba15=a61_0x40ba();let _0x6bb490=_0x40ba15[_0x618800];return _0x6bb490;}export function productEnv(_0x21c700){for(const _0x3cfd5b of productEnvNames(_0x21c700)){const _0x515040=process.env[_0x3cfd5b];if(_0x515040!==undefined)return _0x515040;}return undefined;}
1
+ const a61_0x51a6d2=a61_0x5a61;(function(_0x374d57,_0x3d8610){const _0x5751e1=a61_0x5a61,_0x22c868=_0x374d57();while(!![]){try{const _0x475f18=-parseInt(_0x5751e1(0x17e))/0x1+-parseInt(_0x5751e1(0x179))/0x2*(parseInt(_0x5751e1(0x169))/0x3)+-parseInt(_0x5751e1(0x172))/0x4+parseInt(_0x5751e1(0x175))/0x5*(-parseInt(_0x5751e1(0x17d))/0x6)+parseInt(_0x5751e1(0x180))/0x7+parseInt(_0x5751e1(0x17a))/0x8*(-parseInt(_0x5751e1(0x171))/0x9)+parseInt(_0x5751e1(0x178))/0xa*(parseInt(_0x5751e1(0x16b))/0xb);if(_0x475f18===_0x3d8610)break;else _0x22c868['push'](_0x22c868['shift']());}catch(_0x474bc8){_0x22c868['push'](_0x22c868['shift']());}}}(a61_0x14bb,0xbc7ea));function a61_0x5a61(_0x28bef5,_0x4b77d1){_0x28bef5=_0x28bef5-0x162;const _0x14bb6a=a61_0x14bb();let _0x5a61f2=_0x14bb6a[_0x28bef5];return _0x5a61f2;}export const PRODUCT_CONFIG={'cliBinName':'lovrabet','cliDisplayName':a61_0x51a6d2(0x173),'npmPackageName':a61_0x51a6d2(0x17b),'skillSource':'lovrabet/lovrabet-cli','npmRegistryBaseUrl':a61_0x51a6d2(0x16e),'envPrefix':a61_0x51a6d2(0x174),'legacyEnvPrefixes':[a61_0x51a6d2(0x162)],'configFileNames':[a61_0x51a6d2(0x164),a61_0x51a6d2(0x17f)],'newConfigFileName':'.lovrabet.json','homeDirName':a61_0x51a6d2(0x177),'logFileName':'.lovrabet-runtime.log','invokeSource':'cli:lovrabet-runtime','userCenterDisplayName':a61_0x51a6d2(0x163),'skipNpxSkillsEnvSuffix':a61_0x51a6d2(0x176),'domains':{'production':{'user':a61_0x51a6d2(0x16d),'api':a61_0x51a6d2(0x16a),'runtime':a61_0x51a6d2(0x165),'skillhub':a61_0x51a6d2(0x168)},'nonProduction':{'user':a61_0x51a6d2(0x16c),'api':'https://daily-api.lovrabet.com','runtime':a61_0x51a6d2(0x167),'skillhub':'https://skills-daily.lovrabet.com'}},'accessKeyCreatePath':a61_0x51a6d2(0x170)};export function productEnvName(_0x3abd9b){const _0x100998=a61_0x51a6d2;return PRODUCT_CONFIG[_0x100998(0x166)]+'_'+_0x3abd9b;}export function productEnvNames(_0x32d965){const _0x2c3433=a61_0x51a6d2;return[productEnvName(_0x32d965),...PRODUCT_CONFIG[_0x2c3433(0x16f)][_0x2c3433(0x17c)](_0x19d66f=>_0x19d66f+'_'+_0x32d965)];}function a61_0x14bb(){const _0x468dc1=['55847bdKscK','https://user-daily.lovrabet.com','https://user.lovrabet.com','https://registry.npmjs.org','legacyEnvPrefixes','/user/ak','1694997xXMsYQ','5278216yIlDJv','Lovrabet\x20Runtime\x20CLI','LOVRABET','2914745JFbhjv','SKIP_NPX_SKILLS','.lovrabet','7230AzuYOo','2rkxRrD','8yfSKHv','@lovrabet/lovrabet-cli','map','6bscEtw','1119096GkCMHt','.lovrabetrc','3307612OzDxUD','RABETBASE','Lovrabet\x20User\x20Center','.lovrabet.json','https://runtime.lovrabet.com','envPrefix','https://daily-runtime.lovrabet.com','https://skills.lovrabet.com','483543PamRsS','https://api.lovrabet.com'];a61_0x14bb=function(){return _0x468dc1;};return a61_0x14bb();}export function productEnv(_0x4b16b9){for(const _0x9bb19 of productEnvNames(_0x4b16b9)){const _0x3c987b=process.env[_0x9bb19];if(_0x3c987b!==undefined)return _0x3c987b;}return undefined;}
@@ -1 +1 @@
1
- function a62_0xd0d5(_0x1f0e9c,_0x2f70d3){_0x1f0e9c=_0x1f0e9c-0x6d;const _0x40df3e=a62_0x40df();let _0xd0d57e=_0x40df3e[_0x1f0e9c];return _0xd0d57e;}function a62_0x40df(){const _0x3691a8=['142164HNqXpo','8qNyYwp','209568iioTjM','189ORpZvJ','18Sfeikj','115182BERXYi','45801AdJJBT','write','50520LgfIqs','high-risk-write','3653150AGTquE','886525mtWonI'];a62_0x40df=function(){return _0x3691a8;};return a62_0x40df();}const a62_0x27e095=a62_0xd0d5;(function(_0x3cd4bf,_0x445d49){const _0x3990e9=a62_0xd0d5,_0x1c9b8f=_0x3cd4bf();while(!![]){try{const _0xffb321=-parseInt(_0x3990e9(0x6f))/0x1+parseInt(_0x3990e9(0x78))/0x2+-parseInt(_0x3990e9(0x70))/0x3+-parseInt(_0x3990e9(0x77))/0x4*(parseInt(_0x3990e9(0x75))/0x5)+parseInt(_0x3990e9(0x76))/0x6+parseInt(_0x3990e9(0x6d))/0x7*(-parseInt(_0x3990e9(0x72))/0x8)+parseInt(_0x3990e9(0x6e))/0x9*(parseInt(_0x3990e9(0x74))/0xa);if(_0xffb321===_0x445d49)break;else _0x1c9b8f['push'](_0x1c9b8f['shift']());}catch(_0x25bf4d){_0x1c9b8f['push'](_0x1c9b8f['shift']());}}}(a62_0x40df,0x31b18));export const RISK_LEVEL_VALUES=['read',a62_0x27e095(0x71),a62_0x27e095(0x73)];
1
+ const a62_0x4d3244=a62_0x4eeb;(function(_0x15159d,_0xf431aa){const _0x25f407=a62_0x4eeb,_0x193aec=_0x15159d();while(!![]){try{const _0x344d17=-parseInt(_0x25f407(0xa7))/0x1*(parseInt(_0x25f407(0xa1))/0x2)+parseInt(_0x25f407(0xa6))/0x3*(-parseInt(_0x25f407(0xa5))/0x4)+-parseInt(_0x25f407(0xa3))/0x5*(parseInt(_0x25f407(0xa0))/0x6)+parseInt(_0x25f407(0xa4))/0x7+-parseInt(_0x25f407(0xab))/0x8*(parseInt(_0x25f407(0xac))/0x9)+parseInt(_0x25f407(0x9f))/0xa*(parseInt(_0x25f407(0xa8))/0xb)+parseInt(_0x25f407(0xaa))/0xc;if(_0x344d17===_0xf431aa)break;else _0x193aec['push'](_0x193aec['shift']());}catch(_0x43f51e){_0x193aec['push'](_0x193aec['shift']());}}}(a62_0x5364,0x831d6));function a62_0x4eeb(_0x32d669,_0x211d7a){_0x32d669=_0x32d669-0x9f;const _0x53643d=a62_0x5364();let _0x4eeb43=_0x53643d[_0x32d669];return _0x4eeb43;}export const RISK_LEVEL_VALUES=[a62_0x4d3244(0xa2),'write',a62_0x4d3244(0xa9)];function a62_0x5364(){const _0x4f3f81=['31460988FZkfBI','16EySidL','1443114TPLPVo','19450cApzsp','366HdPukY','13978OLFmYg','read','67630QBIpwo','5611410iEAsAu','604tWyPuh','17079vGZELL','133cvfYSP','275zmNPvI','high-risk-write'];a62_0x5364=function(){return _0x4f3f81;};return a62_0x5364();}
@@ -1 +1 @@
1
- function a63_0x5340(){const _0x55c968=['2009FtqZar','6060738JGvnTM','3278418HlWtgL','1224526YsKEFZ','6729140gnzSGh','user','41112vERSbN','6149495pqQiJC','3555484XOqFTK'];a63_0x5340=function(){return _0x55c968;};return a63_0x5340();}const a63_0x2564f7=a63_0x2369;function a63_0x2369(_0x5048a5,_0x7f9de3){_0x5048a5=_0x5048a5-0x6f;const _0x534052=a63_0x5340();let _0x23692e=_0x534052[_0x5048a5];return _0x23692e;}(function(_0x47d51f,_0x2593e0){const _0x2c00bc=a63_0x2369,_0x323feb=_0x47d51f();while(!![]){try{const _0x20d336=parseInt(_0x2c00bc(0x71))/0x1+-parseInt(_0x2c00bc(0x76))/0x2+parseInt(_0x2c00bc(0x70))/0x3+parseInt(_0x2c00bc(0x72))/0x4+parseInt(_0x2c00bc(0x75))/0x5+-parseInt(_0x2c00bc(0x6f))/0x6+-parseInt(_0x2c00bc(0x77))/0x7*(parseInt(_0x2c00bc(0x74))/0x8);if(_0x20d336===_0x2593e0)break;else _0x323feb['push'](_0x323feb['shift']());}catch(_0x53fda5){_0x323feb['push'](_0x323feb['shift']());}}}(a63_0x5340,0xec066));import{PRODUCT_CONFIG}from'../constant/product.js';export const USER_ACCESS_KEY_CREATE_URL=''+PRODUCT_CONFIG['domains']['production'][a63_0x2564f7(0x73)]+PRODUCT_CONFIG['accessKeyCreatePath'];
1
+ const a63_0x749e03=a63_0x75d6;(function(_0x3b0a66,_0xcbd2f){const _0x40c294=a63_0x75d6,_0x5b851f=_0x3b0a66();while(!![]){try{const _0x4e2ccd=parseInt(_0x40c294(0x169))/0x1*(parseInt(_0x40c294(0x166))/0x2)+-parseInt(_0x40c294(0x170))/0x3+-parseInt(_0x40c294(0x165))/0x4*(-parseInt(_0x40c294(0x16f))/0x5)+-parseInt(_0x40c294(0x172))/0x6*(-parseInt(_0x40c294(0x16d))/0x7)+parseInt(_0x40c294(0x16e))/0x8+-parseInt(_0x40c294(0x167))/0x9*(-parseInt(_0x40c294(0x16c))/0xa)+parseInt(_0x40c294(0x168))/0xb*(-parseInt(_0x40c294(0x16b))/0xc);if(_0x4e2ccd===_0xcbd2f)break;else _0x5b851f['push'](_0x5b851f['shift']());}catch(_0x448da4){_0x5b851f['push'](_0x5b851f['shift']());}}}(a63_0x162a,0x7d0fa));import{PRODUCT_CONFIG}from'../constant/product.js';function a63_0x162a(){const _0x5e66a6=['754272eVixVt','10ePnlIm','314823KOCwub','accessKeyCreatePath','366504MDVCjC','5804XUPaYn','344782fQqdvF','9gUVqxI','258841ggSgJY','1Tctzsu','domains','708fZwZiE','7585990myrMBI','112fmqgAX'];a63_0x162a=function(){return _0x5e66a6;};return a63_0x162a();}function a63_0x75d6(_0x9b079e,_0xe0abf3){_0x9b079e=_0x9b079e-0x165;const _0x162aae=a63_0x162a();let _0x75d61f=_0x162aae[_0x9b079e];return _0x75d61f;}export const USER_ACCESS_KEY_CREATE_URL=''+PRODUCT_CONFIG[a63_0x749e03(0x16a)]['production']['user']+PRODUCT_CONFIG[a63_0x749e03(0x171)];
package/lib/context.js CHANGED
@@ -1 +1 @@
1
- const a64_0x26ce9a=a64_0xd050;(function(_0x35012c,_0x295499){const _0x383f39=a64_0xd050,_0x32e642=_0x35012c();while(!![]){try{const _0x34acfe=parseInt(_0x383f39(0xcd))/0x1*(parseInt(_0x383f39(0xce))/0x2)+-parseInt(_0x383f39(0xde))/0x3+-parseInt(_0x383f39(0xe3))/0x4+-parseInt(_0x383f39(0xee))/0x5*(parseInt(_0x383f39(0xf5))/0x6)+-parseInt(_0x383f39(0xdf))/0x7+parseInt(_0x383f39(0x101))/0x8+parseInt(_0x383f39(0xca))/0x9;if(_0x34acfe===_0x295499)break;else _0x32e642['push'](_0x32e642['shift']());}catch(_0x34697d){_0x32e642['push'](_0x32e642['shift']());}}}(a64_0xcf37,0x868d2));function a64_0xcf37(){const _0x20f86a=['utf8','18cKtcIl','EPERM','global','authRequired','APP','userDomain','slice','accessKey','env','project','cache','projectConfig','2586952KUjJWU','newConfigFileName','./constant/env.js','object','FORMAT','find','inherit','raw','code','globalConfig','riskLevel','VERBOSE','configFileNames','14981985PGdoPt','nonInteractive','isRaw','1xhkXhx','404940huPNKH','join','parse','daily','apiDomain','locale','host','isTTY','write','string','appcode','high-risk-write','production','maxRisk','defaultApp','APPCODE','1387356ESjAIL','4480392bsYPHz','development','missing','cwd','1419792OHqYmv','setLogPath','.tmp','setRawMode','explicit','error','stringify','apps','online','trim','values','303210dIWitg','format','some','app','stdin','skillHubDomain'];a64_0xcf37=function(){return _0x20f86a;};return a64_0xcf37();}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[a64_0x26ce9a(0x10d)];export const NEW_CONFIG_NAME=PRODUCT_CONFIG[a64_0x26ce9a(0x102)];function resolveConfigPath(_0x2e897d){for(const _0x4303f1 of CONFIG_NAMES){const _0x3346a5=resolve(_0x2e897d,_0x4303f1);if(existsSync(_0x3346a5))return _0x3346a5;}return undefined;}export function resolveWriteConfigPath(_0x47aad3){const _0x6ec644=a64_0x26ce9a,_0x4a6136=_0x47aad3===_0x6ec644(0xfe)?process[_0x6ec644(0xe2)]():homedir(),_0x5a6af0=resolveConfigPath(_0x4a6136);return _0x5a6af0??resolve(_0x4a6136,NEW_CONFIG_NAME);}export function readConfigFile(_0x512420){const _0x5dc17b=a64_0x26ce9a;try{if(existsSync(_0x512420)){const _0x5e5e45=readFileSync(_0x512420,{'encoding':_0x5dc17b(0xf4)});if(_0x5e5e45){const _0x4eb2c5=JSON[_0x5dc17b(0xd0)](_0x5e5e45);return migrateOnlineEnv(_0x512420,_0x4eb2c5),_0x4eb2c5;}}}catch{}return{};}function migrateOnlineEnv(_0x19d5e2,_0xd80897){const _0x3f5a7d=a64_0x26ce9a;let _0x56646b=![];_0xd80897[_0x3f5a7d(0xfd)]===_0x3f5a7d(0xeb)&&(_0xd80897['env']='production',_0x56646b=!![]);if(_0xd80897[_0x3f5a7d(0xea)]&&typeof _0xd80897[_0x3f5a7d(0xea)]==='object')for(const _0x319610 of Object[_0x3f5a7d(0xed)](_0xd80897[_0x3f5a7d(0xea)])){_0x319610&&_0x319610['env']==='online'&&(_0x319610[_0x3f5a7d(0xfd)]=_0x3f5a7d(0xda),_0x56646b=!![]);}if(_0x56646b)try{writeConfigFile(_0x19d5e2,_0xd80897);}catch{}}export function writeConfigFile(_0x2398e2,_0x264b11){const _0x933d6a=a64_0x26ce9a,_0x194f59=dirname(_0x2398e2);!existsSync(_0x194f59)&&mkdirSync(_0x194f59,{'recursive':!![]});const _0x31c915=_0x2398e2+_0x933d6a(0xe5);try{writeFileSync(_0x31c915,JSON[_0x933d6a(0xe9)](_0x264b11,null,0x2)+'\x0a',{'encoding':_0x933d6a(0xf4),'mode':0x180});try{renameSync(_0x31c915,_0x2398e2);}catch(_0x185a86){if(_0x185a86[_0x933d6a(0x109)]===_0x933d6a(0xf6)||_0x185a86['code']==='EXDEV'||_0x185a86[_0x933d6a(0x109)]==='EACCES'){writeFileSync(_0x2398e2,JSON['stringify'](_0x264b11,null,0x2)+'\x0a',{'encoding':_0x933d6a(0xf4)});try{unlinkSync(_0x31c915);}catch{}}else throw _0x185a86;}}catch(_0x4aaf06){try{unlinkSync(_0x31c915);}catch{}throw _0x4aaf06;}}export function isNonInteractiveMode(_0x3a339e){const _0x9979c2=a64_0x26ce9a;return!!(_0x3a339e[_0x9979c2(0xcb)]||_0x3a339e['ci']||productEnvNames('CI')[_0x9979c2(0xf0)](_0x59d7a4=>process.env[_0x59d7a4]==='true')||process.env.CI==='true'||!process['stdout']['isTTY']||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x1a95d1=a64_0x26ce9a;if(!process[_0x1a95d1(0xf2)][_0x1a95d1(0xd5)])return![];try{const _0x19a9a5=process[_0x1a95d1(0xf2)][_0x1a95d1(0xcc)];return process[_0x1a95d1(0xf2)]['setRawMode'](!![]),process[_0x1a95d1(0xf2)][_0x1a95d1(0xe6)](_0x19a9a5??![]),!![];}catch{return![];}}function a64_0xd050(_0x3f919b,_0x5a3175){_0x3f919b=_0x3f919b-0xca;const _0xcf37e5=a64_0xcf37();let _0xd0508a=_0xcf37e5[_0x3f919b];return _0xd0508a;}export async function createContext(_0x3ed049){const _0x2efc66=a64_0x26ce9a,_0x3f5b91=readRawConfig(),_0x2c4148=buildConfig(_0x3f5b91,_0x3ed049);await initGlobalEnvironment(_0x2c4148);const {getUserDomain:_0x23ddcc,getApiDomain:_0x38fa31}=await import('./constant/domain.js'),_0x5c7a92={'apiDomain':_0x38fa31(),'userDomain':_0x23ddcc()},_0x5d281d=await buildAuth(_0x2c4148);logger[_0x2efc66(0xe4)](process['cwd']());const _0x30cf76=(CLI_BIN_NAME+'\x20'+process['argv'][_0x2efc66(0xfb)](0x2)[_0x2efc66(0xcf)]('\x20'))[_0x2efc66(0xec)]();logger['setRawCommand'](_0x30cf76);const _0xb9195b=isNonInteractiveMode(_0x3ed049);return{'config':_0x2c4148,'auth':_0x5d281d,'logger':logger,'env':_0x5c7a92,'nonInteractive':_0xb9195b};}export function buildConfigFromFlags(_0x3820fe){return buildConfig(readRawConfig(),_0x3820fe);}export function getLocalAppAliases(_0x271fbd){const _0x458b26=a64_0x26ce9a;return _0x271fbd[_0x458b26(0xea)]&&typeof _0x271fbd[_0x458b26(0xea)]===_0x458b26(0x104)?_0x271fbd['apps']:{};}export function resolveLocalAppAliasCode(_0x2649c3,_0x4dcdd0){const _0x392365=a64_0x26ce9a;if(!_0x4dcdd0)return undefined;const _0x3af41e=getLocalAppAliases(_0x2649c3)[_0x4dcdd0],_0x386c2c=_0x3af41e?.[_0x392365(0xd8)];return typeof _0x386c2c===_0x392365(0xd7)&&_0x386c2c['trim']()?_0x386c2c['trim']():undefined;}export function readAppCodeFromConfig(){const _0xbe19be=a64_0x26ce9a,_0x4df65e=readRawConfig(),_0x326f3f=_0x4df65e[_0xbe19be(0xd8)]??_0x4df65e[_0xbe19be(0xf1)];if(typeof _0x326f3f===_0xbe19be(0xd7)&&_0x326f3f[_0xbe19be(0xec)]())return _0x326f3f[_0xbe19be(0xec)]();const _0x1d05df=resolveLocalAppAliasCode(_0x4df65e,typeof _0x4df65e[_0xbe19be(0xdc)]===_0xbe19be(0xd7)?_0x4df65e['defaultApp']:undefined);if(_0x1d05df)return _0x1d05df;const _0x36c816=normalizeEnv(String(_0x4df65e['env']||_0xbe19be(0xda))),_0x57ccbf=isDaily(_0x36c816)?_0xbe19be(0xd1):isDev(_0x36c816)?'development':'production',_0x120167=resolveCachedAppCode(typeof _0x4df65e['defaultApp']===_0xbe19be(0xd7)?_0x4df65e[_0xbe19be(0xdc)]:undefined,_0x57ccbf,typeof _0x4df65e[_0xbe19be(0xfc)]===_0xbe19be(0xd7)?_0x4df65e['accessKey']:undefined);if(_0x120167)return _0x120167;const _0x574229=Object[_0xbe19be(0xed)](getLocalAppAliases(_0x4df65e))[_0xbe19be(0x106)](_0x3c3457=>_0x3c3457?.[_0xbe19be(0xd8)]);return typeof _0x574229?.[_0xbe19be(0xd8)]==='string'&&_0x574229[_0xbe19be(0xd8)][_0xbe19be(0xec)]()?_0x574229[_0xbe19be(0xd8)][_0xbe19be(0xec)]():undefined;}export function readScopedConfig(_0x52fb07){const _0x4c7896=a64_0x26ce9a,_0x12f962=_0x52fb07[_0x4c7896(0xf7)]?_0x4c7896(0xf7):'project';return readConfigFile(resolveWriteConfigPath(_0x12f962));}export function writeScopedConfig(_0x4493f8,_0x477d45){const _0x2f917d=_0x477d45['global']?'global':'project';writeConfigFile(resolveWriteConfigPath(_0x2f917d),_0x4493f8);}export async function initGlobalEnvironment(_0x14bcb9){const _0x13c59f=a64_0x26ce9a,{initEnv:_0x10a7ca}=await import(_0x13c59f(0x103));_0x10a7ca(_0x14bcb9[_0x13c59f(0xfd)]);const {initDomains:_0x2718d3}=await import('./constant/domain.js');_0x2718d3({'apiDomain':_0x14bcb9[_0x13c59f(0x108)][_0x13c59f(0xd2)]||_0x14bcb9[_0x13c59f(0x108)][_0x13c59f(0xd4)]||undefined,'userDomain':_0x14bcb9[_0x13c59f(0x108)][_0x13c59f(0xfa)]||undefined,'runtimeDomain':_0x14bcb9[_0x13c59f(0x108)]['runtimeDomain']||undefined,'skillHubDomain':_0x14bcb9[_0x13c59f(0x108)][_0x13c59f(0xf3)]||undefined});}export function getProjectConfigPath(){const _0x61083f=a64_0x26ce9a;return resolveConfigPath(process[_0x61083f(0xe2)]());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function inspectCliConfigJsonFile(_0x4f2aa4){const _0x407282=a64_0x26ce9a;if(!existsSync(_0x4f2aa4))return{'status':_0x407282(0xe1)};try{const _0x4bc8ea=readFileSync(_0x4f2aa4,{'encoding':'utf8'});if(!_0x4bc8ea?.['trim']())return{'status':'empty'};const _0x45dec9=JSON[_0x407282(0xd0)](_0x4bc8ea);return{'status':'ok','data':_0x45dec9};}catch(_0x12f7bc){return{'status':_0x407282(0xe8),'message':_0x12f7bc instanceof Error?_0x12f7bc['message']:String(_0x12f7bc)};}}export function loadRawConfigLayers(_0x363300){const _0x430017=a64_0x26ce9a;let _0x33a1b5={},_0x44077a={},_0x58f286,_0x47b2da;try{_0x58f286=resolveConfigPath(homedir());if(_0x58f286){const _0x549408=readFileSync(_0x58f286,{'encoding':_0x430017(0xf4)});if(_0x549408)_0x33a1b5=JSON[_0x430017(0xd0)](_0x549408);}}catch{}try{const _0x4038f0=_0x363300||process[_0x430017(0xe2)]();_0x47b2da=resolveConfigPath(_0x4038f0);if(_0x47b2da){const _0x15447b=readFileSync(_0x47b2da,{'encoding':_0x430017(0xf4)});if(_0x15447b)_0x44077a=JSON[_0x430017(0xd0)](_0x15447b);}}catch{}return{'globalPath':_0x58f286,'projectPath':_0x47b2da,'globalConfig':_0x33a1b5,'projectConfig':_0x44077a};}function mergeRawConfigLayers(_0x5c0858){const _0x69c47c=a64_0x26ce9a,{globalConfig:_0x3b4938,projectConfig:_0x317e95}=_0x5c0858;if(_0x317e95['inherit']===![]){const _0x4e36aa={..._0x317e95};return delete _0x4e36aa[_0x69c47c(0x107)],_0x4e36aa;}const _0x3b9b16={..._0x3b4938,..._0x317e95};if(_0x69c47c(0xdc)in _0x317e95)_0x3b9b16[_0x69c47c(0xdc)]=_0x317e95[_0x69c47c(0xdc)];else _0x3b4938[_0x69c47c(0xdc)]&&(_0x3b9b16[_0x69c47c(0xdc)]=_0x3b4938[_0x69c47c(0xdc)]);return _0x3b9b16;}export function isInProject(){return!!getProjectConfigPath();}export function readRawConfig(_0x4e0b8e){return mergeRawConfigLayers(loadRawConfigLayers(_0x4e0b8e));}export function readRawConfigWithLayers(_0x209395){const _0x414193=loadRawConfigLayers(_0x209395);return{'config':mergeRawConfigLayers(_0x414193),'layers':_0x414193};}export function resolveDefaultAppSource(_0x160d5c){const _0x48467a=a64_0x26ce9a;if(_0x48467a(0xdc)in _0x160d5c[_0x48467a(0x100)])return'project';if(_0x160d5c[_0x48467a(0x100)][_0x48467a(0x107)]===![])return null;if(_0x160d5c[_0x48467a(0x10a)][_0x48467a(0xdc)])return _0x48467a(0xf7);return null;}function buildConfig(_0x42e9c9,_0x3fcfa4){const _0x174d79=a64_0x26ce9a,_0x1b541b=_0x42e9c9[_0x174d79(0xdc)]||undefined,_0x36ea24=_0x3fcfa4['app']||env(_0x174d79(0xf9))||undefined,_0x50a5bf=_0x36ea24||_0x1b541b||undefined,_0x29cb61=env('ACCESS_KEY')||_0x42e9c9[_0x174d79(0xfc)]||undefined,_0x4a95c1=_0x3fcfa4[_0x174d79(0xfd)]||env('ENV')||_0x42e9c9[_0x174d79(0xfd)]||DEFAULT_CONFIG_VALUES[_0x174d79(0xfd)],_0x460dc3=normalizeEnv(String(_0x4a95c1)),_0x28cb49=isDaily(_0x460dc3)?_0x174d79(0xd1):isDev(_0x460dc3)?_0x174d79(0xe0):_0x174d79(0xda),_0x48a74a=resolveLocalAppAliasCode(_0x42e9c9,_0x50a5bf),_0x259485=resolveCachedAppCode(_0x50a5bf,_0x28cb49,_0x29cb61),_0x5a57a5=typeof _0x3fcfa4[_0x174d79(0xd8)]===_0x174d79(0xd7)?_0x3fcfa4[_0x174d79(0xd8)]:undefined,_0xdd4966=env(_0x174d79(0xdd)),_0x2052aa=_0x36ea24?undefined:_0x42e9c9[_0x174d79(0xd8)]||_0x42e9c9[_0x174d79(0xf1)]||undefined,_0x460861=_0x5a57a5||_0xdd4966||_0x48a74a||_0x259485||_0x2052aa||undefined,_0xdc0b5f=_0x5a57a5?_0x174d79(0xe7):_0xdd4966?_0x174d79(0xfd):_0x48a74a?'local-alias':_0x259485?_0x174d79(0xff):_0x2052aa?'top-level':undefined,_0x17d1fd=_0x42e9c9[_0x174d79(0xd3)]||DEFAULT_CONFIG_VALUES[_0x174d79(0xd3)],_0x316395=undefined,_0x248340=_0x3fcfa4[_0x174d79(0xef)]||env(_0x174d79(0x105))||_0x42e9c9[_0x174d79(0xef)],_0x1c8657=normalizeLegacyOutputFormat(_0x248340),_0x627df6=env('PAGE_SIZE')||_0x42e9c9['pageSize'],_0x5d17b2=_0x627df6?Number(_0x627df6)||undefined:undefined,_0x50ffa7=_0x42e9c9[_0x174d79(0x10b)]||_0x42e9c9[_0x174d79(0xdb)],_0x3af269=_0x50ffa7==='read'||_0x50ffa7===_0x174d79(0xd6)||_0x50ffa7===_0x174d79(0xd9)?_0x50ffa7:DEFAULT_CONFIG_VALUES['riskLevel'],_0x995cc4=env(_0x174d79(0x10c)),_0x5d5edc=_0x995cc4==='1'||_0x995cc4==='true';return{'appCode':typeof _0x460861===_0x174d79(0xd7)&&_0x460861[_0x174d79(0xec)]()?_0x460861[_0x174d79(0xec)]():undefined,'appCodeSource':_0xdc0b5f,'env':_0x28cb49,'locale':_0x17d1fd,'cookie':_0x316395,'accessKey':_0x29cb61,'format':_0x1c8657,'pageSize':_0x5d17b2,'riskLevel':_0x3af269,'verbose':_0x5d5edc,'defaultApp':_0x1b541b,'currentApp':typeof _0x50a5bf===_0x174d79(0xd7)?_0x50a5bf:undefined,'raw':_0x42e9c9};}function env(_0x4f7ed5){return productEnv(_0x4f7ed5);}async function buildAuth(_0x5caef5){const _0x2e2c39=a64_0x26ce9a,_0x15c4a5='',_0x37542d=!!_0x5caef5[_0x2e2c39(0xfc)];return{'cookie':_0x15c4a5,'isLoggedIn':_0x37542d,async 'getOrLogin'(){const _0x561ce9=_0x2e2c39;if(_0x37542d)return _0x15c4a5;throw CliErrors[_0x561ce9(0xf8)]();}};}
1
+ const a64_0x2adc54=a64_0x4b17;(function(_0x28d1e3,_0x4985fe){const _0x4e6fac=a64_0x4b17,_0x45cec5=_0x28d1e3();while(!![]){try{const _0x4c6cda=-parseInt(_0x4e6fac(0x178))/0x1+parseInt(_0x4e6fac(0x197))/0x2+-parseInt(_0x4e6fac(0x179))/0x3+-parseInt(_0x4e6fac(0x162))/0x4+-parseInt(_0x4e6fac(0x186))/0x5+parseInt(_0x4e6fac(0x188))/0x6*(-parseInt(_0x4e6fac(0x174))/0x7)+parseInt(_0x4e6fac(0x161))/0x8;if(_0x4c6cda===_0x4985fe)break;else _0x45cec5['push'](_0x45cec5['shift']());}catch(_0x2b151f){_0x45cec5['push'](_0x45cec5['shift']());}}}(a64_0x3ea4,0xb13e9));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[a64_0x2adc54(0x198)];function a64_0x4b17(_0x22d4bc,_0x479a3e){_0x22d4bc=_0x22d4bc-0x159;const _0x3ea486=a64_0x3ea4();let _0x4b1704=_0x3ea486[_0x22d4bc];return _0x4b1704;}export const NEW_CONFIG_NAME=PRODUCT_CONFIG[a64_0x2adc54(0x184)];function resolveConfigPath(_0x452195){for(const _0xa8cff0 of CONFIG_NAMES){const _0xd2b6b0=resolve(_0x452195,_0xa8cff0);if(existsSync(_0xd2b6b0))return _0xd2b6b0;}return undefined;}export function resolveWriteConfigPath(_0x27f80b){const _0x380dce=a64_0x2adc54,_0x221b43=_0x27f80b===_0x380dce(0x171)?process['cwd']():homedir(),_0x5ee4c2=resolveConfigPath(_0x221b43);return _0x5ee4c2??resolve(_0x221b43,NEW_CONFIG_NAME);}export function readConfigFile(_0x5ee71d){const _0x427601=a64_0x2adc54;try{if(existsSync(_0x5ee71d)){const _0x445bdb=readFileSync(_0x5ee71d,{'encoding':_0x427601(0x193)});if(_0x445bdb){const _0x564203=JSON[_0x427601(0x182)](_0x445bdb);return migrateOnlineEnv(_0x5ee71d,_0x564203),_0x564203;}}}catch{}return{};}function migrateOnlineEnv(_0x5a3177,_0x331a66){const _0x10fc95=a64_0x2adc54;let _0x52444f=![];_0x331a66[_0x10fc95(0x17d)]==='online'&&(_0x331a66[_0x10fc95(0x17d)]=_0x10fc95(0x175),_0x52444f=!![]);if(_0x331a66[_0x10fc95(0x18d)]&&typeof _0x331a66[_0x10fc95(0x18d)]===_0x10fc95(0x18b))for(const _0x24a6d7 of Object[_0x10fc95(0x19a)](_0x331a66['apps'])){_0x24a6d7&&_0x24a6d7[_0x10fc95(0x17d)]===_0x10fc95(0x167)&&(_0x24a6d7[_0x10fc95(0x17d)]=_0x10fc95(0x175),_0x52444f=!![]);}if(_0x52444f)try{writeConfigFile(_0x5a3177,_0x331a66);}catch{}}export function writeConfigFile(_0x14e8b1,_0x64ffcb){const _0x409989=a64_0x2adc54,_0x5944e9=dirname(_0x14e8b1);!existsSync(_0x5944e9)&&mkdirSync(_0x5944e9,{'recursive':!![]});const _0x847465=_0x14e8b1+_0x409989(0x195);try{writeFileSync(_0x847465,JSON['stringify'](_0x64ffcb,null,0x2)+'\x0a',{'encoding':_0x409989(0x193),'mode':0x180});try{renameSync(_0x847465,_0x14e8b1);}catch(_0x24ef79){if(_0x24ef79[_0x409989(0x159)]===_0x409989(0x187)||_0x24ef79[_0x409989(0x159)]===_0x409989(0x18f)||_0x24ef79[_0x409989(0x159)]===_0x409989(0x176)){writeFileSync(_0x14e8b1,JSON[_0x409989(0x16a)](_0x64ffcb,null,0x2)+'\x0a',{'encoding':_0x409989(0x193)});try{unlinkSync(_0x847465);}catch{}}else throw _0x24ef79;}}catch(_0x230027){try{unlinkSync(_0x847465);}catch{}throw _0x230027;}}export function isNonInteractiveMode(_0x59c065){const _0x354cb3=a64_0x2adc54;return!!(_0x59c065['nonInteractive']||_0x59c065['ci']||productEnvNames('CI')[_0x354cb3(0x19e)](_0x6510dd=>process.env[_0x6510dd]===_0x354cb3(0x19b))||process.env.CI===_0x354cb3(0x19b)||!process[_0x354cb3(0x192)]['isTTY']||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x511ea4=a64_0x2adc54;if(!process['stdin'][_0x511ea4(0x199)])return![];try{const _0x99d898=process[_0x511ea4(0x15a)][_0x511ea4(0x18a)];return process[_0x511ea4(0x15a)]['setRawMode'](!![]),process['stdin'][_0x511ea4(0x1a2)](_0x99d898??![]),!![];}catch{return![];}}export async function createContext(_0xb387fd){const _0x2d5692=a64_0x2adc54,_0x4d8258=readRawConfig(),_0x45a947=buildConfig(_0x4d8258,_0xb387fd);await initGlobalEnvironment(_0x45a947);const {getUserDomain:_0x50f3e8,getApiDomain:_0x14dcb1}=await import(_0x2d5692(0x185)),_0x9e8966={'apiDomain':_0x14dcb1(),'userDomain':_0x50f3e8()},_0x2f1035=await buildAuth(_0x45a947);logger[_0x2d5692(0x15d)](process[_0x2d5692(0x173)]());const _0x2484f0=(CLI_BIN_NAME+'\x20'+process['argv']['slice'](0x2)[_0x2d5692(0x163)]('\x20'))['trim']();logger[_0x2d5692(0x183)](_0x2484f0);const _0x342b05=isNonInteractiveMode(_0xb387fd);return{'config':_0x45a947,'auth':_0x2f1035,'logger':logger,'env':_0x9e8966,'nonInteractive':_0x342b05};}export function buildConfigFromFlags(_0x1c006c){return buildConfig(readRawConfig(),_0x1c006c);}export function getLocalAppAliases(_0x3d322b){const _0x4bd94a=a64_0x2adc54;return _0x3d322b[_0x4bd94a(0x18d)]&&typeof _0x3d322b[_0x4bd94a(0x18d)]==='object'?_0x3d322b[_0x4bd94a(0x18d)]:{};}export function resolveLocalAppAliasCode(_0x36e950,_0x40a51b){const _0x2a131f=a64_0x2adc54;if(!_0x40a51b)return undefined;const _0x4ae021=getLocalAppAliases(_0x36e950)[_0x40a51b],_0xf57279=_0x4ae021?.['appcode'];return typeof _0xf57279===_0x2a131f(0x160)&&_0xf57279['trim']()?_0xf57279[_0x2a131f(0x16c)]():undefined;}export function readAppCodeFromConfig(){const _0x13fe99=a64_0x2adc54,_0x2b0474=readRawConfig(),_0x5711ea=_0x2b0474['appcode']??_0x2b0474['app'];if(typeof _0x5711ea==='string'&&_0x5711ea[_0x13fe99(0x16c)]())return _0x5711ea[_0x13fe99(0x16c)]();const _0x2c7eef=resolveLocalAppAliasCode(_0x2b0474,typeof _0x2b0474[_0x13fe99(0x1a0)]===_0x13fe99(0x160)?_0x2b0474[_0x13fe99(0x1a0)]:undefined);if(_0x2c7eef)return _0x2c7eef;const _0x41277b=normalizeEnv(String(_0x2b0474[_0x13fe99(0x17d)]||'production')),_0x3e670a=isDaily(_0x41277b)?_0x13fe99(0x194):isDev(_0x41277b)?_0x13fe99(0x1a1):_0x13fe99(0x175),_0x467b6a=resolveCachedAppCode(typeof _0x2b0474[_0x13fe99(0x1a0)]===_0x13fe99(0x160)?_0x2b0474[_0x13fe99(0x1a0)]:undefined,_0x3e670a,typeof _0x2b0474[_0x13fe99(0x17c)]===_0x13fe99(0x160)?_0x2b0474['accessKey']:undefined);if(_0x467b6a)return _0x467b6a;const _0x38454f=Object['values'](getLocalAppAliases(_0x2b0474))[_0x13fe99(0x1a3)](_0x4b4bf7=>_0x4b4bf7?.['appcode']);return typeof _0x38454f?.['appcode']===_0x13fe99(0x160)&&_0x38454f[_0x13fe99(0x196)][_0x13fe99(0x16c)]()?_0x38454f[_0x13fe99(0x196)][_0x13fe99(0x16c)]():undefined;}export function readScopedConfig(_0x305877){const _0xb76a74=a64_0x2adc54,_0x11578b=_0x305877[_0xb76a74(0x18c)]?_0xb76a74(0x18c):_0xb76a74(0x171);return readConfigFile(resolveWriteConfigPath(_0x11578b));}export function writeScopedConfig(_0x1c44d3,_0x35c1cb){const _0x1b850e=a64_0x2adc54,_0x3582b7=_0x35c1cb[_0x1b850e(0x18c)]?_0x1b850e(0x18c):'project';writeConfigFile(resolveWriteConfigPath(_0x3582b7),_0x1c44d3);}function a64_0x3ea4(){const _0x9b9397=['setRawMode','find','code','stdin','userDomain','raw','setLogPath','read','ACCESS_KEY','string','16582288DAZHyK','494664ZkmwkJ','join','write','runtimeDomain','APPCODE','online','explicit','high-risk-write','stringify','maxRisk','trim','host','projectConfig','APP','error','project','pageSize','cwd','98161rfRPMm','production','EACCES','empty','618303MPeNtb','57375TltxoG','apiDomain','riskLevel','accessKey','env','PAGE_SIZE','inherit','FORMAT','format','parse','setRawCommand','newConfigFileName','./constant/domain.js','4953095PKfnTu','EPERM','60aRbMEj','top-level','isRaw','object','global','apps','local-alias','EXDEV','cache','authRequired','stdout','utf8','daily','.tmp','appcode','1090300IYJjpK','configFileNames','isTTY','values','true','locale','app','some','globalConfig','defaultApp','development'];a64_0x3ea4=function(){return _0x9b9397;};return a64_0x3ea4();}export async function initGlobalEnvironment(_0x26cbae){const _0x175e6a=a64_0x2adc54,{initEnv:_0x1a043b}=await import('./constant/env.js');_0x1a043b(_0x26cbae[_0x175e6a(0x17d)]);const {initDomains:_0x53be53}=await import(_0x175e6a(0x185));_0x53be53({'apiDomain':_0x26cbae[_0x175e6a(0x15c)][_0x175e6a(0x17a)]||_0x26cbae[_0x175e6a(0x15c)][_0x175e6a(0x16d)]||undefined,'userDomain':_0x26cbae[_0x175e6a(0x15c)][_0x175e6a(0x15b)]||undefined,'runtimeDomain':_0x26cbae['raw'][_0x175e6a(0x165)]||undefined,'skillHubDomain':_0x26cbae[_0x175e6a(0x15c)]['skillHubDomain']||undefined});}export function getProjectConfigPath(){return resolveConfigPath(process['cwd']());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function inspectCliConfigJsonFile(_0x311625){const _0x2e9a8a=a64_0x2adc54;if(!existsSync(_0x311625))return{'status':'missing'};try{const _0x58ec04=readFileSync(_0x311625,{'encoding':'utf8'});if(!_0x58ec04?.['trim']())return{'status':_0x2e9a8a(0x177)};const _0x5ae210=JSON[_0x2e9a8a(0x182)](_0x58ec04);return{'status':'ok','data':_0x5ae210};}catch(_0x18878a){return{'status':_0x2e9a8a(0x170),'message':_0x18878a instanceof Error?_0x18878a['message']:String(_0x18878a)};}}export function loadRawConfigLayers(_0x1b27c1){const _0x143ab6=a64_0x2adc54;let _0x123a9a={},_0x5670cc={},_0x2a47cd,_0x326d9b;try{_0x2a47cd=resolveConfigPath(homedir());if(_0x2a47cd){const _0x544c6e=readFileSync(_0x2a47cd,{'encoding':'utf8'});if(_0x544c6e)_0x123a9a=JSON[_0x143ab6(0x182)](_0x544c6e);}}catch{}try{const _0x3be241=_0x1b27c1||process[_0x143ab6(0x173)]();_0x326d9b=resolveConfigPath(_0x3be241);if(_0x326d9b){const _0x28f500=readFileSync(_0x326d9b,{'encoding':_0x143ab6(0x193)});if(_0x28f500)_0x5670cc=JSON['parse'](_0x28f500);}}catch{}return{'globalPath':_0x2a47cd,'projectPath':_0x326d9b,'globalConfig':_0x123a9a,'projectConfig':_0x5670cc};}function mergeRawConfigLayers(_0x575463){const _0x44a0ce=a64_0x2adc54,{globalConfig:_0xa5f3ad,projectConfig:_0x4ffa92}=_0x575463;if(_0x4ffa92['inherit']===![]){const _0x181d81={..._0x4ffa92};return delete _0x181d81[_0x44a0ce(0x17f)],_0x181d81;}const _0xc7344e={..._0xa5f3ad,..._0x4ffa92};if(_0x44a0ce(0x1a0)in _0x4ffa92)_0xc7344e[_0x44a0ce(0x1a0)]=_0x4ffa92['defaultApp'];else _0xa5f3ad[_0x44a0ce(0x1a0)]&&(_0xc7344e[_0x44a0ce(0x1a0)]=_0xa5f3ad[_0x44a0ce(0x1a0)]);return _0xc7344e;}export function isInProject(){return!!getProjectConfigPath();}export function readRawConfig(_0x58074d){return mergeRawConfigLayers(loadRawConfigLayers(_0x58074d));}export function readRawConfigWithLayers(_0x176ebd){const _0xe6a2e=loadRawConfigLayers(_0x176ebd);return{'config':mergeRawConfigLayers(_0xe6a2e),'layers':_0xe6a2e};}export function resolveDefaultAppSource(_0x54a549){const _0x2021aa=a64_0x2adc54;if(_0x2021aa(0x1a0)in _0x54a549[_0x2021aa(0x16e)])return _0x2021aa(0x171);if(_0x54a549[_0x2021aa(0x16e)][_0x2021aa(0x17f)]===![])return null;if(_0x54a549[_0x2021aa(0x19f)][_0x2021aa(0x1a0)])return _0x2021aa(0x18c);return null;}function buildConfig(_0x3f3079,_0x14b8cb){const _0x4eb6e9=a64_0x2adc54,_0x4513f1=_0x3f3079[_0x4eb6e9(0x1a0)]||undefined,_0x18f4c1=_0x14b8cb[_0x4eb6e9(0x19d)]||env(_0x4eb6e9(0x16f))||undefined,_0x965a33=_0x18f4c1||_0x4513f1||undefined,_0x484563=env(_0x4eb6e9(0x15f))||_0x3f3079[_0x4eb6e9(0x17c)]||undefined,_0x2566fe=_0x14b8cb[_0x4eb6e9(0x17d)]||env('ENV')||_0x3f3079[_0x4eb6e9(0x17d)]||DEFAULT_CONFIG_VALUES[_0x4eb6e9(0x17d)],_0x4084ce=normalizeEnv(String(_0x2566fe)),_0x48d566=isDaily(_0x4084ce)?_0x4eb6e9(0x194):isDev(_0x4084ce)?'development':_0x4eb6e9(0x175),_0x20edcb=resolveLocalAppAliasCode(_0x3f3079,_0x965a33),_0x3f0c6b=resolveCachedAppCode(_0x965a33,_0x48d566,_0x484563),_0x21671d=typeof _0x14b8cb[_0x4eb6e9(0x196)]==='string'?_0x14b8cb[_0x4eb6e9(0x196)]:undefined,_0x53d40a=env(_0x4eb6e9(0x166)),_0x7c5da3=_0x18f4c1?undefined:_0x3f3079[_0x4eb6e9(0x196)]||_0x3f3079[_0x4eb6e9(0x19d)]||undefined,_0x1e7d80=_0x21671d||_0x53d40a||_0x20edcb||_0x3f0c6b||_0x7c5da3||undefined,_0x1428a1=_0x21671d?_0x4eb6e9(0x168):_0x53d40a?_0x4eb6e9(0x17d):_0x20edcb?_0x4eb6e9(0x18e):_0x3f0c6b?_0x4eb6e9(0x190):_0x7c5da3?_0x4eb6e9(0x189):undefined,_0x5cc972=_0x3f3079[_0x4eb6e9(0x19c)]||DEFAULT_CONFIG_VALUES['locale'],_0x16b774=undefined,_0x692eb0=_0x14b8cb[_0x4eb6e9(0x181)]||env(_0x4eb6e9(0x180))||_0x3f3079[_0x4eb6e9(0x181)],_0x3a670c=normalizeLegacyOutputFormat(_0x692eb0),_0x371f99=env(_0x4eb6e9(0x17e))||_0x3f3079[_0x4eb6e9(0x172)],_0x5e0149=_0x371f99?Number(_0x371f99)||undefined:undefined,_0x9ce466=_0x3f3079[_0x4eb6e9(0x17b)]||_0x3f3079[_0x4eb6e9(0x16b)],_0x3ddb7c=_0x9ce466===_0x4eb6e9(0x15e)||_0x9ce466===_0x4eb6e9(0x164)||_0x9ce466===_0x4eb6e9(0x169)?_0x9ce466:DEFAULT_CONFIG_VALUES[_0x4eb6e9(0x17b)],_0x5915c8=env('VERBOSE'),_0x1e5998=_0x5915c8==='1'||_0x5915c8===_0x4eb6e9(0x19b);return{'appCode':typeof _0x1e7d80===_0x4eb6e9(0x160)&&_0x1e7d80[_0x4eb6e9(0x16c)]()?_0x1e7d80[_0x4eb6e9(0x16c)]():undefined,'appCodeSource':_0x1428a1,'env':_0x48d566,'locale':_0x5cc972,'cookie':_0x16b774,'accessKey':_0x484563,'format':_0x3a670c,'pageSize':_0x5e0149,'riskLevel':_0x3ddb7c,'verbose':_0x1e5998,'defaultApp':_0x4513f1,'currentApp':typeof _0x965a33===_0x4eb6e9(0x160)?_0x965a33:undefined,'raw':_0x3f3079};}function env(_0xcd549){return productEnv(_0xcd549);}async function buildAuth(_0x478895){const _0x5c133d=a64_0x2adc54,_0x21a522='',_0x4f8db0=!!_0x478895[_0x5c133d(0x17c)];return{'cookie':_0x21a522,'isLoggedIn':_0x4f8db0,async 'getOrLogin'(){const _0x5249ed=_0x5c133d;if(_0x4f8db0)return _0x21a522;throw CliErrors[_0x5249ed(0x191)]();}};}
@@ -1 +1 @@
1
- (function(_0x1762b6,_0x127f97){const _0xdba764=a65_0x3700,_0x303126=_0x1762b6();while(!![]){try{const _0x275cc5=parseInt(_0xdba764(0xe1))/0x1+parseInt(_0xdba764(0x128))/0x2*(-parseInt(_0xdba764(0xbf))/0x3)+parseInt(_0xdba764(0xb5))/0x4*(-parseInt(_0xdba764(0x102))/0x5)+-parseInt(_0xdba764(0xe2))/0x6*(-parseInt(_0xdba764(0x11f))/0x7)+parseInt(_0xdba764(0xdb))/0x8*(parseInt(_0xdba764(0x11d))/0x9)+-parseInt(_0xdba764(0xd6))/0xa*(-parseInt(_0xdba764(0xc7))/0xb)+-parseInt(_0xdba764(0x132))/0xc;if(_0x275cc5===_0x127f97)break;else _0x303126['push'](_0x303126['shift']());}catch(_0x57e756){_0x303126['push'](_0x303126['shift']());}}}(a65_0x25ec,0x47dfa));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(_0x39ad02){_activeAK=_0x39ad02||undefined;}export function clearActiveAK(){_activeAK=undefined;}async function apiRequest(_0x2d038e,_0x1740cd={}){const _0x40e3ce=a65_0x3700,{method:method='GET',body:_0x594f0d,headers:headers={},timeout:timeout=0x7530}=_0x1740cd,_0x3ede2a=_activeAK,_0x588f52=getRuntimeDomain();if(!_0x3ede2a)throw CliErrors[_0x40e3ce(0x10a)]('Configure\x20accessKey\x20in\x20'+PRODUCT_CONFIG[_0x40e3ce(0x11a)]+'.');const _0x5f577f=''+_0x588f52+_0x2d038e,_0x19a0fe={'X-User-AK':_0x3ede2a},_0x40f370=new AbortController(),_0x59dde9=setTimeout(()=>_0x40f370[_0x40e3ce(0x12d)](),timeout);try{const _0x46b9dc=await fetch(_0x5f577f,{'method':method,'headers':{'Content-Type':'application/json','X-Invoke-Source':PRODUCT_CONFIG[_0x40e3ce(0x114)],..._0x19a0fe,...headers},'body':_0x594f0d?JSON[_0x40e3ce(0xfe)](_0x594f0d):undefined,'signal':_0x40f370[_0x40e3ce(0x10f)]});let _0x296863;try{_0x296863=await _0x46b9dc[_0x40e3ce(0x130)]();}catch{throw CliErrors[_0x40e3ce(0x12a)](_0x40e3ce(0x119)+_0x46b9dc[_0x40e3ce(0x11b)]+')',_0x46b9dc[_0x40e3ce(0x11b)]>=0x190?_0x40e3ce(0xb8):undefined);}if(!_0x46b9dc['ok']||_0x296863[_0x40e3ce(0xce)]===![])throw CliErrors['apiError'](_0x296863['errorMsg']||_0x296863[_0x40e3ce(0xeb)]||_0x40e3ce(0x109)+_0x46b9dc[_0x40e3ce(0x11b)],_0x296863[_0x40e3ce(0xc0)]?_0x40e3ce(0x107)+_0x296863[_0x40e3ce(0xc0)]:undefined);return _0x296863;}catch(_0x2a40f8){if(_0x2a40f8 instanceof Error&&_0x2a40f8['name']===_0x40e3ce(0x126))throw CliErrors['apiError'](_0x40e3ce(0xd2)+_0x5f577f);throw _0x2a40f8;}finally{clearTimeout(_0x59dde9);}}async function apiBinaryRequest(_0xb418e2,_0x2959a8={}){const _0x34782c=a65_0x3700,{method:method=_0x34782c(0x122),headers:headers={},timeout:timeout=0x7530}=_0x2959a8,_0x1756b6=_activeAK,_0x5e2c07=getRuntimeDomain();if(!_0x1756b6)throw CliErrors[_0x34782c(0x10a)]('Configure\x20accessKey\x20in\x20'+PRODUCT_CONFIG[_0x34782c(0x11a)]+'.');const _0x5a4232=''+_0x5e2c07+_0xb418e2,_0x1afba8=new AbortController(),_0x2721e5=setTimeout(()=>_0x1afba8['abort'](),timeout);try{const _0x255614=await fetch(_0x5a4232,{'method':method,'headers':{'X-Invoke-Source':PRODUCT_CONFIG['invokeSource'],'X-User-AK':_0x1756b6,...headers},'signal':_0x1afba8[_0x34782c(0x10f)]});if(!_0x255614['ok']){let _0x55c130;try{const _0x41a4fc=await _0x255614[_0x34782c(0x130)]();_0x55c130=_0x41a4fc[_0x34782c(0x121)]||_0x41a4fc['message']||_0x41a4fc[_0x34782c(0xc0)];}catch{_0x55c130=await _0x255614[_0x34782c(0xdf)]()[_0x34782c(0xd8)](()=>undefined);}throw CliErrors[_0x34782c(0x12a)](_0x55c130||'API\x20error:\x20'+_0x255614[_0x34782c(0x11b)],'Download\x20failed:\x20'+_0x5a4232);}return Buffer[_0x34782c(0xff)](await _0x255614['arrayBuffer']());}catch(_0x4a204f){if(_0x4a204f instanceof Error&&_0x4a204f[_0x34782c(0xd0)]===_0x34782c(0x126))throw CliErrors['apiError'](_0x34782c(0xd2)+_0x5a4232);throw _0x4a204f;}finally{clearTimeout(_0x2721e5);}}async function toolboxRequest(_0x4548e5,_0x757982,_0x38fc1f={}){const _0x57a8eb=a65_0x3700,{method:method='GET',headers:headers={},timeout:timeout=0x7530}=_0x38fc1f,_0x3eec15=_activeAK;if(!_0x3eec15)throw CliErrors['authRequired'](_0x57a8eb(0x134)+PRODUCT_CONFIG['newConfigFileName']+'.');const _0x41ee96=getApiDomain()['replace'](/\/$/,''),_0x347ed1=new URL(_0x4548e5,_0x41ee96+_0x57a8eb(0xba));if(_0x757982)for(const [_0x2d189b,_0x2f41b4]of Object[_0x57a8eb(0xf7)](_0x757982)){_0x2f41b4!==undefined&&_0x2f41b4!==null&&_0x347ed1[_0x57a8eb(0x12e)][_0x57a8eb(0xc3)](_0x2d189b,String(_0x2f41b4));}const _0x227af6=new AbortController(),_0x20444e=setTimeout(()=>_0x227af6[_0x57a8eb(0x12d)](),timeout);try{const _0x147f34=await fetch(_0x347ed1,{'method':method,'headers':{'Content-Type':_0x57a8eb(0xf1),'X-Invoke-Source':PRODUCT_CONFIG[_0x57a8eb(0x114)],'X-User-AK':_0x3eec15,...headers},'signal':_0x227af6[_0x57a8eb(0x10f)]});let _0x451a1a;try{_0x451a1a=await _0x147f34[_0x57a8eb(0x130)]();}catch{throw CliErrors[_0x57a8eb(0x12a)]('Toolbox\x20returned\x20non-JSON\x20response\x20(HTTP\x20'+_0x147f34['status']+')',_0x147f34[_0x57a8eb(0x11b)]>=0x190?_0x57a8eb(0xb8):undefined);}if(!_0x147f34['ok']){const _0x423127=_0x451a1a&&typeof _0x451a1a==='object'?_0x451a1a:{};throw CliErrors[_0x57a8eb(0x12a)](_0x423127[_0x57a8eb(0x121)]||_0x423127[_0x57a8eb(0xeb)]||_0x57a8eb(0x108)+_0x147f34[_0x57a8eb(0x11b)],_0x423127[_0x57a8eb(0xc0)]?_0x57a8eb(0xc5)+_0x423127[_0x57a8eb(0xc0)]:undefined);}if(_0x451a1a&&typeof _0x451a1a==='object'&&'success'in _0x451a1a&&typeof _0x451a1a[_0x57a8eb(0xce)]===_0x57a8eb(0x12c)){const _0x5a4708=_0x451a1a;if(!_0x5a4708[_0x57a8eb(0xce)])throw CliErrors[_0x57a8eb(0x12a)](_0x5a4708[_0x57a8eb(0x121)]||_0x5a4708[_0x57a8eb(0xeb)]||_0x57a8eb(0x10c),_0x5a4708[_0x57a8eb(0xc0)]?_0x57a8eb(0xc5)+_0x5a4708['errorCode']:undefined);return _0x5a4708[_0x57a8eb(0xbe)];}return _0x451a1a;}catch(_0x51c1d1){if(_0x51c1d1 instanceof Error&&_0x51c1d1['name']===_0x57a8eb(0x126))throw CliErrors['apiError'](_0x57a8eb(0xd2)+_0x347ed1['toString']());throw _0x51c1d1;}finally{clearTimeout(_0x20444e);}}async function skillHubJsonRequest(_0x15dc41,_0xbb0750={}){const _0x44f80e=a65_0x3700,{method:method=_0x44f80e(0x122),query:_0xd05117,body:_0x1bbe3e,headers:headers={},timeout:timeout=0x7530}=_0xbb0750,_0x2f42fe=_activeAK;if(!_0x2f42fe)throw CliErrors[_0x44f80e(0x10a)](_0x44f80e(0x134)+PRODUCT_CONFIG[_0x44f80e(0x11a)]+'.');const _0xe53b0b=getSkillHubDomain()[_0x44f80e(0x111)](/\/$/,''),_0x3c9b4f=new URL(_0x15dc41,_0xe53b0b+'/');if(_0xd05117)for(const [_0x212cfc,_0x473c9d]of Object[_0x44f80e(0xf7)](_0xd05117)){_0x473c9d!==undefined&&_0x473c9d!==null&&_0x3c9b4f['searchParams'][_0x44f80e(0xc3)](_0x212cfc,String(_0x473c9d));}const _0x6fdee0=new AbortController(),_0x442a28=setTimeout(()=>_0x6fdee0[_0x44f80e(0x12d)](),timeout);try{const _0x5b790c=await fetch(_0x3c9b4f[_0x44f80e(0xb9)](),{'method':method,'headers':{'Accept':_0x44f80e(0xf1),'X-Invoke-Source':PRODUCT_CONFIG[_0x44f80e(0x114)],'X-User-AK':_0x2f42fe,...headers},'body':_0x1bbe3e,'signal':_0x6fdee0[_0x44f80e(0x10f)]});let _0x1515ce;try{_0x1515ce=await _0x5b790c[_0x44f80e(0x130)]();}catch{throw CliErrors[_0x44f80e(0x12a)](_0x44f80e(0xfd)+_0x5b790c['status']+')',_0x5b790c[_0x44f80e(0x11b)]>=0x190?_0x44f80e(0xb8):undefined);}const _0x5a4771=!_0x5b790c['ok']||_0x1515ce?.[_0x44f80e(0xce)]===![]||typeof _0x1515ce?.[_0x44f80e(0xe8)]==='number'&&_0x1515ce[_0x44f80e(0xe8)]>=0x190;if(_0x5a4771)throw CliErrors['apiError'](_0x1515ce?.['errorMsg']||_0x1515ce?.['message']||_0x1515ce?.[_0x44f80e(0xb2)]||_0x44f80e(0xed)+_0x5b790c[_0x44f80e(0x11b)],_0x1515ce?.[_0x44f80e(0xc0)]?_0x44f80e(0xf2)+_0x1515ce[_0x44f80e(0xc0)]:undefined);return _0x1515ce?.[_0x44f80e(0xbe)]??_0x1515ce;}catch(_0x1e1011){if(_0x1e1011 instanceof Error&&_0x1e1011[_0x44f80e(0xd0)]===_0x44f80e(0x126))throw CliErrors[_0x44f80e(0x12a)](_0x44f80e(0xd2)+_0x3c9b4f[_0x44f80e(0xb9)]());throw _0x1e1011;}finally{clearTimeout(_0x442a28);}}async function skillHubBinaryRequest(_0x139a72,_0x165d16={}){const _0x4f6b7f=a65_0x3700,{query:_0x22c2d0,headers:headers={},timeout:timeout=0x7530}=_0x165d16,_0x558b9d=_activeAK;if(!_0x558b9d)throw CliErrors['authRequired'](_0x4f6b7f(0x134)+PRODUCT_CONFIG[_0x4f6b7f(0x11a)]+'.');const _0x10dc99=getSkillHubDomain()[_0x4f6b7f(0x111)](/\/$/,''),_0x39b4b4=new URL(_0x139a72,_0x10dc99+'/');if(_0x22c2d0)for(const [_0xacef47,_0x5a7afa]of Object[_0x4f6b7f(0xf7)](_0x22c2d0)){_0x5a7afa!==undefined&&_0x5a7afa!==null&&_0x39b4b4[_0x4f6b7f(0x12e)]['set'](_0xacef47,String(_0x5a7afa));}const _0x5672c8=new AbortController(),_0x54dc9f=setTimeout(()=>_0x5672c8[_0x4f6b7f(0x12d)](),timeout);try{const _0x44af36=await fetch(_0x39b4b4[_0x4f6b7f(0xb9)](),{'method':_0x4f6b7f(0x122),'headers':{'Accept':_0x4f6b7f(0xf5),'X-Invoke-Source':PRODUCT_CONFIG['invokeSource'],'X-User-AK':_0x558b9d,...headers},'signal':_0x5672c8[_0x4f6b7f(0x10f)]});if(!_0x44af36['ok']){let _0x5820e3;try{const _0x15407f=await _0x44af36['json']();_0x5820e3=_0x15407f['errorMsg']||_0x15407f['message']||_0x15407f[_0x4f6b7f(0xb2)]||_0x15407f[_0x4f6b7f(0xc0)];}catch{_0x5820e3=await _0x44af36[_0x4f6b7f(0xdf)]()[_0x4f6b7f(0xd8)](()=>undefined);}throw CliErrors[_0x4f6b7f(0x12a)](_0x5820e3||'SkillHub\x20API\x20error:\x20'+_0x44af36[_0x4f6b7f(0x11b)],_0x4f6b7f(0x11e)+_0x39b4b4[_0x4f6b7f(0xb9)]());}return Buffer['from'](await _0x44af36['arrayBuffer']());}catch(_0x575723){if(_0x575723 instanceof Error&&_0x575723[_0x4f6b7f(0xd0)]===_0x4f6b7f(0x126))throw CliErrors['apiError'](_0x4f6b7f(0xd2)+_0x39b4b4['toString']());throw _0x575723;}finally{clearTimeout(_0x54dc9f);}}export async function getBffScriptInfo(_0x40bf4d){const _0x302aa2=a65_0x3700,_0x4a4fba=await apiRequest(_0x302aa2(0xbd)+_0x40bf4d);if(!_0x4a4fba[_0x302aa2(0xbe)])throw CliErrors[_0x302aa2(0xf8)](_0x302aa2(0xcc)+_0x40bf4d);return _0x4a4fba['data'];}export async function getSqlQueryInfo(_0x2115d8,_0x516d24){const _0x475e7e=a65_0x3700,_0x26bb13=await apiRequest(_0x475e7e(0xc1),{'method':'POST','body':{'appCode':_0x2115d8,'currentPage':0x1,'pageSize':0x1,'sqlCode':_0x516d24}}),_0x100ab9=_0x26bb13['data'],_0x32e7ca=_0x100ab9&&typeof _0x100ab9===_0x475e7e(0x113)&&_0x475e7e(0x131)in _0x100ab9?_0x100ab9[_0x475e7e(0x131)]?.[0x0]:_0x100ab9&&typeof _0x100ab9===_0x475e7e(0x113)&&_0x475e7e(0xf0)in _0x100ab9?_0x100ab9:undefined;if(!_0x32e7ca)throw CliErrors['validation'](_0x475e7e(0xd7)+_0x516d24);return _0x32e7ca;}function isRemoteAppItem(_0x339b93){const _0x5611dd=a65_0x3700;return!!_0x339b93&&typeof _0x339b93===_0x5611dd(0x113)&&typeof _0x339b93[_0x5611dd(0x127)]===_0x5611dd(0x100)&&typeof _0x339b93[_0x5611dd(0x11c)]===_0x5611dd(0x100);}function extractRemoteAppItems(_0x542ff2){const _0x2c5b39=a65_0x3700;if(Array[_0x2c5b39(0x125)](_0x542ff2))return _0x542ff2[_0x2c5b39(0xc6)](isRemoteAppItem);if(!_0x542ff2||typeof _0x542ff2!==_0x2c5b39(0x113))throw CliErrors['apiError'](_0x2c5b39(0xf9));const _0x1f259a=_0x542ff2;if(Array[_0x2c5b39(0x125)](_0x1f259a['tableData']))return _0x1f259a[_0x2c5b39(0x131)]['filter'](isRemoteAppItem);if(_0x1f259a[_0x2c5b39(0xbe)]&&typeof _0x1f259a[_0x2c5b39(0xbe)]==='object'){const _0x25b9c8=_0x1f259a[_0x2c5b39(0xbe)];if(Array['isArray'](_0x25b9c8[_0x2c5b39(0x131)]))return _0x25b9c8[_0x2c5b39(0x131)][_0x2c5b39(0xc6)](isRemoteAppItem);}throw CliErrors[_0x2c5b39(0x12a)](_0x2c5b39(0xca));}export async function getMyApps(){const _0x414713=a65_0x3700,_0x423389=await apiRequest(_0x414713(0xe4));return extractRemoteAppItems(_0x423389[_0x414713(0xbe)]);}export async function getLoginUserInfo(){const _0x5c6c16=a65_0x3700,_0x1a4e6d=await apiRequest('/client/user/loginUserInfo');if(!_0x1a4e6d[_0x5c6c16(0xbe)]||typeof _0x1a4e6d[_0x5c6c16(0xbe)]!==_0x5c6c16(0x113)||Array['isArray'](_0x1a4e6d['data']))throw CliErrors[_0x5c6c16(0x12a)](_0x5c6c16(0xd9));return _0x1a4e6d[_0x5c6c16(0xbe)];}export async function listDatasets(_0x3d3688,_0x460e1c){const _0xad68e1=a65_0x3700,_0x3a87df=await apiRequest(_0xad68e1(0xc4),{'method':_0xad68e1(0x10d),'body':{'appCode':_0x3d3688,..._0x460e1c?.['code']&&{'code':_0x460e1c[_0xad68e1(0xe8)]},..._0x460e1c?.[_0xad68e1(0xd0)]&&{'name':_0x460e1c[_0xad68e1(0xd0)]}}});return extractList(_0x3a87df[_0xad68e1(0xbe)]);}export async function getDatasetDetail(_0x2ed9f5){const _0x132135=a65_0x3700,_0xd5b1c7=/^\d+$/[_0x132135(0x10b)](_0x2ed9f5)?'id':'code',_0x10de28=await apiRequest('/client/dataset/query?'+_0xd5b1c7+'='+_0x2ed9f5);return _0x10de28[_0x132135(0xbe)];}export async function getDatasetSdkUsageDoc(_0x4d131c,_0xe3fc0a){const _0x48b234=a65_0x3700,_0x10ad74=await toolboxRequest(_0x48b234(0x129),{'datasetCode':_0x4d131c,'appCode':_0xe3fc0a});return typeof _0x10ad74?.[_0x48b234(0xe6)]===_0x48b234(0x100)?_0x10ad74[_0x48b234(0xe6)]:'';}export async function listRuntimeArtifacts(_0x2f7f96,_0x9c65d0){const _0x3e8ea2=a65_0x3700,_0x7af649=new URLSearchParams({'appCode':_0x2f7f96});if(_0x9c65d0?.[_0x3e8ea2(0xe3)])_0x7af649[_0x3e8ea2(0xc3)](_0x3e8ea2(0xe3),_0x9c65d0[_0x3e8ea2(0xe3)]);if(_0x9c65d0?.['source'])_0x7af649[_0x3e8ea2(0xc3)](_0x3e8ea2(0xb6),_0x9c65d0[_0x3e8ea2(0xb6)]);if(_0x9c65d0?.[_0x3e8ea2(0xe0)]!==undefined)_0x7af649['set'](_0x3e8ea2(0xe0),String(_0x9c65d0[_0x3e8ea2(0xe0)]));const _0x250503=await apiRequest(_0x3e8ea2(0x116)+_0x7af649[_0x3e8ea2(0xb9)]());return Array['isArray'](_0x250503[_0x3e8ea2(0xbe)])?_0x250503[_0x3e8ea2(0xbe)]:[];}export async function getRuntimeArtifact(_0x579ce6,_0xb15de0){const _0x50c706=a65_0x3700,_0x8c08c4=await apiRequest(_0x50c706(0x103)+_0x579ce6+_0x50c706(0x115)+encodeURIComponent(_0xb15de0));if(!_0x8c08c4[_0x50c706(0xbe)])throw CliErrors['validation'](_0x50c706(0x105)+_0x579ce6);return _0x8c08c4['data'];}export async function createRuntimeArtifact(_0x28166b,_0x36d0d8){const _0x48b126=a65_0x3700,_0x27371d=await apiRequest('/client/artifact/create',{'method':_0x48b126(0x10d),'body':{'appCode':_0x28166b,..._0x36d0d8}});return _0x27371d[_0x48b126(0xbe)];}export async function updateRuntimeArtifact(_0x544340,_0x4a5374,_0x3e7679){const _0x2901c0=a65_0x3700,_0x1f02fb=await apiRequest(_0x2901c0(0x103)+_0x544340+_0x2901c0(0xe7),{'method':_0x2901c0(0x10d),'body':{'appCode':_0x4a5374,..._0x3e7679}});return _0x1f02fb[_0x2901c0(0xbe)];}function a65_0x25ec(){const _0x356c0d=['stringify','from','string','namespace','10cnpEFT','/client/artifact/','displayName','Artifact\x20not\x20found:\x20id=','/client/knowledge-base/personal/create','API\x20error\x20code:\x20','Toolbox\x20API\x20error:\x20','API\x20error:\x20','authRequired','test','Toolbox\x20API\x20error','POST','base64','signal','description','replace','trim','object','invokeSource','?appCode=','/client/artifact/list?','tags','file','API\x20returned\x20non-JSON\x20response\x20(HTTP\x20','newConfigFileName','status','appName','9uyFmDL','Download\x20failed:\x20','701449dDPSHr','.zip','errorMsg','GET','/client/runtime-bff/personal/','PRIVATE','isArray','AbortError','appCode','878JrmHqX','api-doc-generator','apiError','topK','boolean','abort','searchParams','headlineVersion','json','tableData','5425428EZhoGj','slug','Configure\x20accessKey\x20in\x20','personal','msg','items','visibility','353796MSQQrS','source','application/zip','Check\x20your\x20credentials\x20and\x20try\x20again.','toString','/api/node-toolbox/','effective','scope','/client/bff/query/','data','1767aTXHyc','errorCode','/client/sql/query','/client/knowledge-base/search','set','/client/dataset/list','Toolbox\x20error\x20code:\x20','filter','11yuLfLc','company','content','Invalid\x20app\x20list\x20response:\x20missing\x20data.tableData.','ownerPreviewVersion','BFF\x20script\x20not\x20found:\x20id=','skillName','success','query','name','skill','Request\x20timeout:\x20','map','/execute?appCode=','/skills','1365370ChqJkc','SQL\x20query\x20not\x20found:\x20','catch','Invalid\x20login\x20user\x20info\x20response:\x20expected\x20object.','skillCode','4397336OhQNxt','/client/knowledge-base/personal/list?appCode=','summary','all','text','favorite','395571osIbAL','6fgMyXc','artifactType','/client/app/my-apps','Knowledge-base\x20entry\x20not\x20found:\x20id=','markdown','/update','code','NAMESPACE_ONLY','values','message','packageBase64','SkillHub\x20API\x20error:\x20','undefined','/client/knowledge-base/personal/','sqlCode','application/json','SkillHub\x20error\x20code:\x20','publishedVersion','/api/cli/v1/skills/','application/octet-stream','version','entries','validation','Invalid\x20app\x20list\x20response:\x20expected\x20object\x20or\x20array.','/download','Missing\x20Skill\x20package\x20payload.','Personal\x20BFF\x20not\x20found:\x20id=','SkillHub\x20returned\x20non-JSON\x20response\x20(HTTP\x20'];a65_0x25ec=function(){return _0x356c0d;};return a65_0x25ec();}export async function listPersonalBffs(_0x474653){const _0x3b6995=a65_0x3700,_0x35b670=await apiRequest('/client/runtime-bff/personal/list?appCode='+encodeURIComponent(_0x474653));return Array['isArray'](_0x35b670[_0x3b6995(0xbe)])?_0x35b670[_0x3b6995(0xbe)]:[];}export async function getPersonalBff(_0x44cbac,_0x4d91ac){const _0x4c2035=a65_0x3700,_0x7c458=await apiRequest(_0x4c2035(0x123)+_0x44cbac+_0x4c2035(0x115)+encodeURIComponent(_0x4d91ac));if(!_0x7c458[_0x4c2035(0xbe)])throw CliErrors[_0x4c2035(0xf8)](_0x4c2035(0xfc)+_0x44cbac);return _0x7c458[_0x4c2035(0xbe)];}export async function createPersonalBff(_0x28915c,_0x4c344a){const _0x339778=a65_0x3700,_0x550f8f=await apiRequest('/client/runtime-bff/personal/create',{'method':_0x339778(0x10d),'body':{'appCode':_0x28915c,..._0x4c344a}});return _0x550f8f['data'];}export async function updatePersonalBff(_0x338c83,_0x29db30,_0x3d2325){const _0x4a34dc=a65_0x3700,_0x57053b=await apiRequest('/client/runtime-bff/personal/'+_0x338c83+_0x4a34dc(0xe7),{'method':_0x4a34dc(0x10d),'body':{'appCode':_0x29db30,..._0x3d2325}});return _0x57053b[_0x4a34dc(0xbe)];}export async function executePersonalBff(_0x5aafc1,_0x2970e0,_0x258697){const _0x464aa=a65_0x3700,_0x43cf62=await apiRequest('/client/runtime-bff/personal/'+_0x5aafc1+_0x464aa(0xd4)+encodeURIComponent(_0x2970e0),{'method':'POST','body':_0x258697});return _0x43cf62['data'];}export async function listPersonalKnowledgeBaseItems(_0x1e6ca8){const _0x462f47=a65_0x3700,_0xca7d97=await apiRequest(_0x462f47(0xdc)+encodeURIComponent(_0x1e6ca8));return Array[_0x462f47(0x125)](_0xca7d97['data'])?_0xca7d97[_0x462f47(0xbe)]:[];}export async function getPersonalKnowledgeBaseItem(_0x1d309e,_0x82cbb6){const _0x1eb946=a65_0x3700,_0x355ab8=await apiRequest(_0x1eb946(0xef)+_0x1d309e+'?appCode='+encodeURIComponent(_0x82cbb6));if(!_0x355ab8[_0x1eb946(0xbe)])throw CliErrors['validation'](_0x1eb946(0xe5)+_0x1d309e);return _0x355ab8['data'];}export async function createPersonalKnowledgeBaseItem(_0x3af25a,_0x3566f6){const _0x23a585=a65_0x3700,_0x37d6ba=await apiRequest(_0x23a585(0x106),{'method':_0x23a585(0x10d),'body':{'appCode':_0x3af25a,..._0x3566f6}});return _0x37d6ba[_0x23a585(0xbe)];}export async function updatePersonalKnowledgeBaseItem(_0x49bea3,_0xb0c79e,_0x854650){const _0x3a84e7=a65_0x3700,_0x1f4afd=await apiRequest(_0x3a84e7(0xef)+_0x49bea3+_0x3a84e7(0xe7),{'method':_0x3a84e7(0x10d),'body':{'appCode':_0xb0c79e,..._0x854650}});return _0x1f4afd[_0x3a84e7(0xbe)];}export async function searchKnowledgeBase(_0xf4c16f,_0x36bc82){const _0x41931b=a65_0x3700,_0x343fc5=await apiRequest(_0x41931b(0xc2),{'method':_0x41931b(0x10d),'body':{'appCode':_0xf4c16f,'query':_0x36bc82[_0x41931b(0xcf)],..._0x36bc82['topK']!==undefined?{'topK':_0x36bc82[_0x41931b(0x12b)]}:{}}});return Array['isArray'](_0x343fc5[_0x41931b(0xbe)])?_0x343fc5['data']:[];}export async function listRuntimeSkills(_0x5df392){const _0x3264e8=a65_0x3700,_0x4552f5=await skillHubJsonRequest('/api/runtime/v1/namespaces/'+encodeURIComponent(_0x5df392[_0x3264e8(0x127)])+_0x3264e8(0xd5),{'query':{'page':0x0,'size':0xc8}});return normalizeSkillHubRuntimeListResponse(_0x5df392[_0x3264e8(0x127)],_0x4552f5,_0x5df392[_0x3264e8(0xbc)]??_0x3264e8(0xde),_0x5df392[_0x3264e8(0xe8)]);}export async function listPersonalRuntimeSkills(_0x1acbd){const _0x1d3723=a65_0x3700;return(await listRuntimeSkills({'appCode':_0x1acbd,'scope':'personal'}))[_0x1d3723(0xb1)];}export async function listCompanyRuntimeSkills(_0x5bebf3){return(await listRuntimeSkills({'appCode':_0x5bebf3,'scope':'company'}))['company'];}export async function listVisibleRuntimeSkills(_0x358a41){const _0x1ba150=a65_0x3700;return(await listRuntimeSkills({'appCode':_0x358a41,'scope':'all'}))[_0x1ba150(0xbb)];}export async function createPersonalRuntimeSkill(_0xba757e,_0x57fd70){return publishRuntimeSkill(_0xba757e,_0x57fd70);}function a65_0x3700(_0xd18229,_0x241ddd){_0xd18229=_0xd18229-0xb1;const _0x25ecc1=a65_0x25ec();let _0x370034=_0x25ecc1[_0xd18229];return _0x370034;}export async function updatePersonalRuntimeSkill(_0x527661,_0x17bbd9,_0x100f5c){const _0x550e9e=a65_0x3700;return publishRuntimeSkill(_0x17bbd9,{..._0x100f5c,'skillCode':_0x100f5c[_0x550e9e(0xda)]??_0x527661});}export async function downloadRuntimeSkillPackage(_0x1fc8af,_0x516d62,_0x5ce657,_0x733136){const _0x5b0276=a65_0x3700;void _0x1fc8af;const _0x4ab33e=_0x733136?_0x5b0276(0xf4)+encodeURIComponent(_0x5ce657)+'/'+encodeURIComponent(_0x516d62)+'/versions/'+encodeURIComponent(_0x733136)+'/download':'/api/cli/v1/skills/'+encodeURIComponent(_0x5ce657)+'/'+encodeURIComponent(_0x516d62)+_0x5b0276(0xfa);return skillHubBinaryRequest(_0x4ab33e);}async function publishRuntimeSkill(_0x2d0aee,_0x19a167){const _0x190c61=a65_0x3700,_0x1947a8=new FormData();_0x1947a8['set'](_0x190c61(0x118),runtimeSkillPackageFile(_0x19a167)),_0x1947a8[_0x190c61(0xc3)](_0x190c61(0xb4),_0x190c61(0x124));const _0x19ac95=await skillHubJsonRequest(_0x190c61(0xf4)+encodeURIComponent(_0x2d0aee)+'/publish',{'method':_0x190c61(0x10d),'body':_0x1947a8});return{'appCode':_0x19ac95[_0x190c61(0x101)]??_0x2d0aee,'skillCode':_0x19ac95[_0x190c61(0x133)]??_0x19a167[_0x190c61(0xda)]??'','skillName':_0x19a167[_0x190c61(0xcd)]??_0x19ac95['slug']??_0x19a167[_0x190c61(0xda)],'description':_0x19a167[_0x190c61(0x110)],'scope':skillHubVisibilityToScope(_0x19ac95[_0x190c61(0xb4)])??'personal','version':_0x19ac95[_0x190c61(0xf6)]??_0x19a167[_0x190c61(0xf6)],'tags':_0x19a167[_0x190c61(0x117)],'content':_0x19a167[_0x190c61(0xc9)]};}function runtimeSkillPackageFile(_0x1f78b7){const _0x45c06b=a65_0x3700;if(!_0x1f78b7['packageBase64'])throw CliErrors[_0x45c06b(0xf8)](_0x45c06b(0xfb));const _0x2a33a7=Buffer[_0x45c06b(0xff)](_0x1f78b7[_0x45c06b(0xec)],_0x45c06b(0x10e)),_0x5f3919=new Blob([_0x2a33a7],{'type':'application/zip'}),_0x19238c=(_0x1f78b7[_0x45c06b(0xda)]||_0x45c06b(0xd1))+_0x45c06b(0x120);if(typeof File!==_0x45c06b(0xee))return new File([_0x5f3919],_0x19238c,{'type':_0x45c06b(0xb7)});return _0x5f3919;}function normalizeSkillHubRuntimeListResponse(_0x4d235e,_0x3aa3f8,_0x440a20,_0x5599cd){const _0x168c4c=a65_0x3700,_0x49f8d4=Array['isArray'](_0x3aa3f8)?_0x3aa3f8:Array[_0x168c4c(0x125)](_0x3aa3f8?.[_0x168c4c(0xb3)])?_0x3aa3f8[_0x168c4c(0xb3)]:[],_0x4be92c=_0x5599cd?.[_0x168c4c(0x112)](),_0x836b8=_0x49f8d4[_0x168c4c(0xc6)](_0x556129=>!_0x4be92c||_0x556129[_0x168c4c(0x133)]===_0x4be92c)[_0x168c4c(0xd3)](skillHubRuntimeItemToRuntimeSkill)[_0x168c4c(0xc6)](_0x2e7709=>Boolean(_0x2e7709)),_0xd5b70e=_0x836b8[_0x168c4c(0xc6)](_0x3fec4f=>_0x3fec4f[_0x168c4c(0xbc)]===_0x168c4c(0xb1)),_0x1e24be=_0x836b8[_0x168c4c(0xc6)](_0x540c49=>_0x540c49[_0x168c4c(0xbc)]===_0x168c4c(0xc8));return{'appCode':_0x4d235e,'personal':_0x440a20==='company'?[]:_0xd5b70e,'company':_0x440a20===_0x168c4c(0xb1)?[]:_0x1e24be,'effective':buildEffectiveRuntimeSkills(_0xd5b70e,_0x1e24be,_0x440a20)};}function skillHubRuntimeItemToRuntimeSkill(_0x35b100){const _0x62c0f9=a65_0x3700,_0x143f11=_0x35b100[_0x62c0f9(0x133)]?.[_0x62c0f9(0x112)](),_0x16548c=skillHubVisibilityToScope(_0x35b100[_0x62c0f9(0xb4)]);if(!_0x143f11||!_0x16548c)return undefined;return{'id':_0x35b100['id'],'appCode':_0x35b100[_0x62c0f9(0x101)],'skillCode':_0x143f11,'skillName':_0x35b100[_0x62c0f9(0x104)]??_0x143f11,'description':_0x35b100[_0x62c0f9(0xdd)],'scope':_0x16548c,'version':skillHubRuntimeItemVersion(_0x35b100),'status':_0x35b100[_0x62c0f9(0x11b)]};}function skillHubVisibilityToScope(_0x251f0c){const _0xc87b40=a65_0x3700;if(_0x251f0c===_0xc87b40(0x124))return _0xc87b40(0xb1);if(_0x251f0c===_0xc87b40(0xe9))return _0xc87b40(0xc8);return undefined;}function skillHubRuntimeItemVersion(_0x1262fd){const _0x35382e=a65_0x3700;return _0x1262fd[_0x35382e(0xf3)]?.[_0x35382e(0xf6)]??_0x1262fd[_0x35382e(0x12f)]?.[_0x35382e(0xf6)]??_0x1262fd[_0x35382e(0xcb)]?.['version'];}function buildEffectiveRuntimeSkills(_0x3788c3,_0x70800a,_0x578f54){const _0xad216d=a65_0x3700;if(_0x578f54==='personal')return _0x3788c3;if(_0x578f54===_0xad216d(0xc8))return _0x70800a;const _0x17d77d=new Map();for(const _0x23514a of _0x70800a){_0x17d77d['set'](_0x23514a[_0xad216d(0xda)],_0x23514a);}for(const _0x2aa6c8 of _0x3788c3){_0x17d77d[_0xad216d(0xc3)](_0x2aa6c8['skillCode'],_0x2aa6c8);}return Array['from'](_0x17d77d[_0xad216d(0xea)]());}function normalizeRuntimeSkillListResponse(_0x25b779,_0x108040){const _0x6c0b8c=a65_0x3700;if(Array[_0x6c0b8c(0x125)](_0x108040)){const _0xd221aa=_0x108040['filter'](_0xb63471=>_0xb63471['scope']===_0x6c0b8c(0xb1)),_0x310232=_0x108040[_0x6c0b8c(0xc6)](_0xc8b107=>_0xc8b107['scope']===_0x6c0b8c(0xc8));return{'appCode':_0x25b779,'personal':_0xd221aa,'company':_0x310232,'effective':[..._0x310232,..._0xd221aa]};}return{'appCode':_0x108040?.[_0x6c0b8c(0x127)]??_0x25b779,'personal':Array[_0x6c0b8c(0x125)](_0x108040?.[_0x6c0b8c(0xb1)])?_0x108040['personal']:[],'company':Array['isArray'](_0x108040?.[_0x6c0b8c(0xc8)])?_0x108040[_0x6c0b8c(0xc8)]:[],'effective':Array[_0x6c0b8c(0x125)](_0x108040?.[_0x6c0b8c(0xbb)])?_0x108040[_0x6c0b8c(0xbb)]:[]};}
1
+ (function(_0x20cca2,_0x552caa){const _0x22ec98=a65_0x4266,_0x8db34c=_0x20cca2();while(!![]){try{const _0x2f89e6=-parseInt(_0x22ec98(0x1a5))/0x1+parseInt(_0x22ec98(0x17b))/0x2*(parseInt(_0x22ec98(0x166))/0x3)+-parseInt(_0x22ec98(0x16c))/0x4*(-parseInt(_0x22ec98(0x1b9))/0x5)+parseInt(_0x22ec98(0x161))/0x6*(-parseInt(_0x22ec98(0x188))/0x7)+parseInt(_0x22ec98(0x186))/0x8+parseInt(_0x22ec98(0x1ae))/0x9+-parseInt(_0x22ec98(0x18a))/0xa;if(_0x2f89e6===_0x552caa)break;else _0x8db34c['push'](_0x8db34c['shift']());}catch(_0x410ed3){_0x8db34c['push'](_0x8db34c['shift']());}}}(a65_0x2856,0x734f4));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(_0x4acc26){_activeAK=_0x4acc26||undefined;}export function clearActiveAK(){_activeAK=undefined;}async function apiRequest(_0x2b05a2,_0x50e136={}){const _0x16d15e=a65_0x4266,{method:method=_0x16d15e(0x1ab),body:_0x3ff897,headers:headers={},timeout:timeout=0x7530}=_0x50e136,_0x15c513=_activeAK,_0x183878=getRuntimeDomain();if(!_0x15c513)throw CliErrors[_0x16d15e(0x1d9)](_0x16d15e(0x15e)+PRODUCT_CONFIG['newConfigFileName']+'.');const _0xdee677=''+_0x183878+_0x2b05a2,_0x3d425c={'X-User-AK':_0x15c513},_0x3b6ae8=new AbortController(),_0x193316=setTimeout(()=>_0x3b6ae8[_0x16d15e(0x187)](),timeout);try{const _0x55d99d=await fetch(_0xdee677,{'method':method,'headers':{'Content-Type':_0x16d15e(0x160),'X-Invoke-Source':PRODUCT_CONFIG[_0x16d15e(0x1aa)],..._0x3d425c,...headers},'body':_0x3ff897?JSON[_0x16d15e(0x174)](_0x3ff897):undefined,'signal':_0x3b6ae8[_0x16d15e(0x176)]});let _0xafc45e;try{_0xafc45e=await _0x55d99d[_0x16d15e(0x1a6)]();}catch{throw CliErrors['apiError'](_0x16d15e(0x19c)+_0x55d99d[_0x16d15e(0x18c)]+')',_0x55d99d[_0x16d15e(0x18c)]>=0x190?_0x16d15e(0x1b8):undefined);}if(!_0x55d99d['ok']||_0xafc45e[_0x16d15e(0x17f)]===![])throw CliErrors['apiError'](_0xafc45e[_0x16d15e(0x191)]||_0xafc45e[_0x16d15e(0x19a)]||'API\x20error:\x20'+_0x55d99d[_0x16d15e(0x18c)],_0xafc45e[_0x16d15e(0x16f)]?_0x16d15e(0x1c4)+_0xafc45e[_0x16d15e(0x16f)]:undefined);return _0xafc45e;}catch(_0x514ee3){if(_0x514ee3 instanceof Error&&_0x514ee3[_0x16d15e(0x1b0)]===_0x16d15e(0x196))throw CliErrors[_0x16d15e(0x1be)](_0x16d15e(0x197)+_0xdee677);throw _0x514ee3;}finally{clearTimeout(_0x193316);}}async function apiBinaryRequest(_0xe06ab1,_0x28a9bb={}){const _0x4fd1f5=a65_0x4266,{method:method=_0x4fd1f5(0x1ab),headers:headers={},timeout:timeout=0x7530}=_0x28a9bb,_0x4fef7c=_activeAK,_0x557178=getRuntimeDomain();if(!_0x4fef7c)throw CliErrors[_0x4fd1f5(0x1d9)]('Configure\x20accessKey\x20in\x20'+PRODUCT_CONFIG[_0x4fd1f5(0x1c1)]+'.');const _0x2c5b42=''+_0x557178+_0xe06ab1,_0xc31282=new AbortController(),_0x2e7d06=setTimeout(()=>_0xc31282[_0x4fd1f5(0x187)](),timeout);try{const _0xacd8ca=await fetch(_0x2c5b42,{'method':method,'headers':{'X-Invoke-Source':PRODUCT_CONFIG['invokeSource'],'X-User-AK':_0x4fef7c,...headers},'signal':_0xc31282[_0x4fd1f5(0x176)]});if(!_0xacd8ca['ok']){let _0x4e39e5;try{const _0x1aff65=await _0xacd8ca[_0x4fd1f5(0x1a6)]();_0x4e39e5=_0x1aff65[_0x4fd1f5(0x191)]||_0x1aff65[_0x4fd1f5(0x19a)]||_0x1aff65[_0x4fd1f5(0x16f)];}catch{_0x4e39e5=await _0xacd8ca[_0x4fd1f5(0x1cb)]()['catch'](()=>undefined);}throw CliErrors['apiError'](_0x4e39e5||_0x4fd1f5(0x172)+_0xacd8ca['status'],_0x4fd1f5(0x1cd)+_0x2c5b42);}return Buffer[_0x4fd1f5(0x199)](await _0xacd8ca[_0x4fd1f5(0x1a1)]());}catch(_0x156091){if(_0x156091 instanceof Error&&_0x156091['name']===_0x4fd1f5(0x196))throw CliErrors[_0x4fd1f5(0x1be)](_0x4fd1f5(0x197)+_0x2c5b42);throw _0x156091;}finally{clearTimeout(_0x2e7d06);}}async function toolboxRequest(_0x18cf24,_0xc3870c,_0x4af46b={}){const _0x24c762=a65_0x4266,{method:method=_0x24c762(0x1ab),headers:headers={},timeout:timeout=0x7530}=_0x4af46b,_0x42f2e9=_activeAK;if(!_0x42f2e9)throw CliErrors[_0x24c762(0x1d9)](_0x24c762(0x15e)+PRODUCT_CONFIG[_0x24c762(0x1c1)]+'.');const _0x402d37=getApiDomain()[_0x24c762(0x1cc)](/\/$/,''),_0x29582d=new URL(_0x18cf24,_0x402d37+_0x24c762(0x1b6));if(_0xc3870c)for(const [_0x3b8260,_0x38be29]of Object[_0x24c762(0x198)](_0xc3870c)){_0x38be29!==undefined&&_0x38be29!==null&&_0x29582d[_0x24c762(0x16d)]['set'](_0x3b8260,String(_0x38be29));}const _0xfe2267=new AbortController(),_0x22c876=setTimeout(()=>_0xfe2267[_0x24c762(0x187)](),timeout);try{const _0x2faa27=await fetch(_0x29582d,{'method':method,'headers':{'Content-Type':_0x24c762(0x160),'X-Invoke-Source':PRODUCT_CONFIG['invokeSource'],'X-User-AK':_0x42f2e9,...headers},'signal':_0xfe2267[_0x24c762(0x176)]});let _0x56fb55;try{_0x56fb55=await _0x2faa27[_0x24c762(0x1a6)]();}catch{throw CliErrors[_0x24c762(0x1be)]('Toolbox\x20returned\x20non-JSON\x20response\x20(HTTP\x20'+_0x2faa27['status']+')',_0x2faa27[_0x24c762(0x18c)]>=0x190?_0x24c762(0x1b8):undefined);}if(!_0x2faa27['ok']){const _0x18eb28=_0x56fb55&&typeof _0x56fb55===_0x24c762(0x18d)?_0x56fb55:{};throw CliErrors['apiError'](_0x18eb28[_0x24c762(0x191)]||_0x18eb28[_0x24c762(0x19a)]||_0x24c762(0x19e)+_0x2faa27[_0x24c762(0x18c)],_0x18eb28['errorCode']?_0x24c762(0x162)+_0x18eb28[_0x24c762(0x16f)]:undefined);}if(_0x56fb55&&typeof _0x56fb55==='object'&&_0x24c762(0x17f)in _0x56fb55&&typeof _0x56fb55['success']===_0x24c762(0x1c7)){const _0x170a2a=_0x56fb55;if(!_0x170a2a['success'])throw CliErrors['apiError'](_0x170a2a[_0x24c762(0x191)]||_0x170a2a[_0x24c762(0x19a)]||_0x24c762(0x1d7),_0x170a2a[_0x24c762(0x16f)]?_0x24c762(0x162)+_0x170a2a[_0x24c762(0x16f)]:undefined);return _0x170a2a[_0x24c762(0x17e)];}return _0x56fb55;}catch(_0x3d2df0){if(_0x3d2df0 instanceof Error&&_0x3d2df0[_0x24c762(0x1b0)]===_0x24c762(0x196))throw CliErrors['apiError'](_0x24c762(0x197)+_0x29582d[_0x24c762(0x178)]());throw _0x3d2df0;}finally{clearTimeout(_0x22c876);}}async function skillHubJsonRequest(_0x30d0ef,_0x3f848a={}){const _0x3a9ea9=a65_0x4266,{method:method='GET',query:_0x218053,body:_0x2e1e98,headers:headers={},timeout:timeout=0x7530}=_0x3f848a,_0x3b559d=_activeAK;if(!_0x3b559d)throw CliErrors[_0x3a9ea9(0x1d9)](_0x3a9ea9(0x15e)+PRODUCT_CONFIG[_0x3a9ea9(0x1c1)]+'.');const _0x1f575a=getSkillHubDomain()[_0x3a9ea9(0x1cc)](/\/$/,''),_0x3b2896=new URL(_0x30d0ef,_0x1f575a+'/');if(_0x218053)for(const [_0x563ae2,_0x377ce2]of Object[_0x3a9ea9(0x198)](_0x218053)){_0x377ce2!==undefined&&_0x377ce2!==null&&_0x3b2896[_0x3a9ea9(0x16d)][_0x3a9ea9(0x189)](_0x563ae2,String(_0x377ce2));}const _0xf623b4=new AbortController(),_0x3087a1=setTimeout(()=>_0xf623b4['abort'](),timeout);try{const _0x1dfdc9=await fetch(_0x3b2896[_0x3a9ea9(0x178)](),{'method':method,'headers':{'Accept':_0x3a9ea9(0x160),'X-Invoke-Source':PRODUCT_CONFIG[_0x3a9ea9(0x1aa)],'X-User-AK':_0x3b559d,...headers},'body':_0x2e1e98,'signal':_0xf623b4[_0x3a9ea9(0x176)]});let _0x4cbf60;try{_0x4cbf60=await _0x1dfdc9[_0x3a9ea9(0x1a6)]();}catch{throw CliErrors[_0x3a9ea9(0x1be)](_0x3a9ea9(0x1c9)+_0x1dfdc9[_0x3a9ea9(0x18c)]+')',_0x1dfdc9['status']>=0x190?_0x3a9ea9(0x1b8):undefined);}const _0x2138d1=!_0x1dfdc9['ok']||_0x4cbf60?.[_0x3a9ea9(0x17f)]===![]||typeof _0x4cbf60?.['code']===_0x3a9ea9(0x170)&&_0x4cbf60[_0x3a9ea9(0x164)]>=0x190;if(_0x2138d1)throw CliErrors[_0x3a9ea9(0x1be)](_0x4cbf60?.[_0x3a9ea9(0x191)]||_0x4cbf60?.[_0x3a9ea9(0x19a)]||_0x4cbf60?.[_0x3a9ea9(0x1b1)]||_0x3a9ea9(0x192)+_0x1dfdc9['status'],_0x4cbf60?.[_0x3a9ea9(0x16f)]?_0x3a9ea9(0x1c3)+_0x4cbf60[_0x3a9ea9(0x16f)]:undefined);return _0x4cbf60?.[_0x3a9ea9(0x17e)]??_0x4cbf60;}catch(_0x2ae064){if(_0x2ae064 instanceof Error&&_0x2ae064['name']===_0x3a9ea9(0x196))throw CliErrors[_0x3a9ea9(0x1be)](_0x3a9ea9(0x197)+_0x3b2896[_0x3a9ea9(0x178)]());throw _0x2ae064;}finally{clearTimeout(_0x3087a1);}}function a65_0x2856(){const _0x177dc1=['effective','isArray','publishedVersion','Artifact\x20not\x20found:\x20id=','company','4dyjmsh','searchParams','NAMESPACE_ONLY','errorCode','number','skillCode','API\x20error:\x20','appCode','stringify','filter','signal','/download','toString','POST','Invalid\x20app\x20list\x20response:\x20missing\x20data.tableData.','2LxWSuc','/client/knowledge-base/personal/','query','data','success','catch','/publish','undefined','description','PRIVATE','topK','5018352yuuECw','abort','7rfWLiu','set','11076690RwdxJz','artifactType','status','object','validation','/client/dataset/query?','packageBase64','errorMsg','SkillHub\x20API\x20error:\x20','/versions/','favorite','/client/sql/query','AbortError','Request\x20timeout:\x20','entries','from','message','?appCode=','API\x20returned\x20non-JSON\x20response\x20(HTTP\x20','/api/cli/v1/skills/','Toolbox\x20API\x20error:\x20','namespace','visibility','arrayBuffer','/skills','Invalid\x20login\x20user\x20info\x20response:\x20expected\x20object.','slug','114203LINqXS','json','tableData','skill','source','invokeSource','GET','Knowledge-base\x20entry\x20not\x20found:\x20id=','markdown','6634485tmCyKJ','string','name','msg','BFF\x20script\x20not\x20found:\x20id=','values','version','Missing\x20Skill\x20package\x20payload.','/api/node-toolbox/','/client/dataset/list','Check\x20your\x20credentials\x20and\x20try\x20again.','3803585DWgbvf','/client/artifact/','/client/artifact/list?','/client/runtime-bff/personal/','/client/knowledge-base/search','apiError','appName','trim','newConfigFileName','/client/app/my-apps','SkillHub\x20error\x20code:\x20','API\x20error\x20code:\x20','file','/update','boolean','api-doc-generator','SkillHub\x20returned\x20non-JSON\x20response\x20(HTTP\x20','application/octet-stream','text','replace','Download\x20failed:\x20','content','/client/runtime-bff/personal/list?appCode=','application/zip','scope','tags','items','displayName','map','summary','Toolbox\x20API\x20error','SQL\x20query\x20not\x20found:\x20','authRequired','all','base64','/client/artifact/create','personal','Configure\x20accessKey\x20in\x20','test','application/json','5475198fRuqJn','Toolbox\x20error\x20code:\x20','/client/bff/query/','code','/client/user/loginUserInfo','1444611oxbROU'];a65_0x2856=function(){return _0x177dc1;};return a65_0x2856();}async function skillHubBinaryRequest(_0x20feba,_0x147b27={}){const _0x833cb4=a65_0x4266,{query:_0x5f5605,headers:headers={},timeout:timeout=0x7530}=_0x147b27,_0x11c738=_activeAK;if(!_0x11c738)throw CliErrors[_0x833cb4(0x1d9)]('Configure\x20accessKey\x20in\x20'+PRODUCT_CONFIG[_0x833cb4(0x1c1)]+'.');const _0x36ad37=getSkillHubDomain()[_0x833cb4(0x1cc)](/\/$/,''),_0x4889e4=new URL(_0x20feba,_0x36ad37+'/');if(_0x5f5605)for(const [_0x300db9,_0x59587f]of Object[_0x833cb4(0x198)](_0x5f5605)){_0x59587f!==undefined&&_0x59587f!==null&&_0x4889e4[_0x833cb4(0x16d)][_0x833cb4(0x189)](_0x300db9,String(_0x59587f));}const _0x1adf80=new AbortController(),_0x12b59b=setTimeout(()=>_0x1adf80[_0x833cb4(0x187)](),timeout);try{const _0x3c2b36=await fetch(_0x4889e4[_0x833cb4(0x178)](),{'method':_0x833cb4(0x1ab),'headers':{'Accept':_0x833cb4(0x1ca),'X-Invoke-Source':PRODUCT_CONFIG[_0x833cb4(0x1aa)],'X-User-AK':_0x11c738,...headers},'signal':_0x1adf80['signal']});if(!_0x3c2b36['ok']){let _0x5bcbc4;try{const _0x5aee5d=await _0x3c2b36[_0x833cb4(0x1a6)]();_0x5bcbc4=_0x5aee5d[_0x833cb4(0x191)]||_0x5aee5d['message']||_0x5aee5d[_0x833cb4(0x1b1)]||_0x5aee5d[_0x833cb4(0x16f)];}catch{_0x5bcbc4=await _0x3c2b36[_0x833cb4(0x1cb)]()[_0x833cb4(0x180)](()=>undefined);}throw CliErrors['apiError'](_0x5bcbc4||'SkillHub\x20API\x20error:\x20'+_0x3c2b36[_0x833cb4(0x18c)],_0x833cb4(0x1cd)+_0x4889e4['toString']());}return Buffer[_0x833cb4(0x199)](await _0x3c2b36[_0x833cb4(0x1a1)]());}catch(_0x14892e){if(_0x14892e instanceof Error&&_0x14892e[_0x833cb4(0x1b0)]===_0x833cb4(0x196))throw CliErrors['apiError']('Request\x20timeout:\x20'+_0x4889e4[_0x833cb4(0x178)]());throw _0x14892e;}finally{clearTimeout(_0x12b59b);}}export async function getBffScriptInfo(_0x48c49e){const _0x282cd=a65_0x4266,_0x2d8fee=await apiRequest(_0x282cd(0x163)+_0x48c49e);if(!_0x2d8fee[_0x282cd(0x17e)])throw CliErrors[_0x282cd(0x18e)](_0x282cd(0x1b2)+_0x48c49e);return _0x2d8fee[_0x282cd(0x17e)];}function a65_0x4266(_0x55b353,_0x3b74ec){_0x55b353=_0x55b353-0x15a;const _0x2856f7=a65_0x2856();let _0x426639=_0x2856f7[_0x55b353];return _0x426639;}export async function getSqlQueryInfo(_0xa266ea,_0x50af1e){const _0x48e5cf=a65_0x4266,_0x15d3cd=await apiRequest(_0x48e5cf(0x195),{'method':'POST','body':{'appCode':_0xa266ea,'currentPage':0x1,'pageSize':0x1,'sqlCode':_0x50af1e}}),_0x35c524=_0x15d3cd['data'],_0x1b9212=_0x35c524&&typeof _0x35c524===_0x48e5cf(0x18d)&&_0x48e5cf(0x1a7)in _0x35c524?_0x35c524[_0x48e5cf(0x1a7)]?.[0x0]:_0x35c524&&typeof _0x35c524==='object'&&'sqlCode'in _0x35c524?_0x35c524:undefined;if(!_0x1b9212)throw CliErrors[_0x48e5cf(0x18e)](_0x48e5cf(0x1d8)+_0x50af1e);return _0x1b9212;}function isRemoteAppItem(_0x2bf9e9){const _0x3c2f72=a65_0x4266;return!!_0x2bf9e9&&typeof _0x2bf9e9==='object'&&typeof _0x2bf9e9['appCode']===_0x3c2f72(0x1af)&&typeof _0x2bf9e9[_0x3c2f72(0x1bf)]==='string';}function extractRemoteAppItems(_0x1af9e7){const _0x165e2c=a65_0x4266;if(Array[_0x165e2c(0x168)](_0x1af9e7))return _0x1af9e7[_0x165e2c(0x175)](isRemoteAppItem);if(!_0x1af9e7||typeof _0x1af9e7!==_0x165e2c(0x18d))throw CliErrors[_0x165e2c(0x1be)]('Invalid\x20app\x20list\x20response:\x20expected\x20object\x20or\x20array.');const _0x5ba001=_0x1af9e7;if(Array[_0x165e2c(0x168)](_0x5ba001[_0x165e2c(0x1a7)]))return _0x5ba001[_0x165e2c(0x1a7)][_0x165e2c(0x175)](isRemoteAppItem);if(_0x5ba001[_0x165e2c(0x17e)]&&typeof _0x5ba001[_0x165e2c(0x17e)]===_0x165e2c(0x18d)){const _0x58a5c1=_0x5ba001[_0x165e2c(0x17e)];if(Array[_0x165e2c(0x168)](_0x58a5c1[_0x165e2c(0x1a7)]))return _0x58a5c1[_0x165e2c(0x1a7)][_0x165e2c(0x175)](isRemoteAppItem);}throw CliErrors[_0x165e2c(0x1be)](_0x165e2c(0x17a));}export async function getMyApps(){const _0x1a67b4=a65_0x4266,_0xceddf0=await apiRequest(_0x1a67b4(0x1c2));return extractRemoteAppItems(_0xceddf0[_0x1a67b4(0x17e)]);}export async function getLoginUserInfo(){const _0x35146a=a65_0x4266,_0x28975c=await apiRequest(_0x35146a(0x165));if(!_0x28975c[_0x35146a(0x17e)]||typeof _0x28975c[_0x35146a(0x17e)]!==_0x35146a(0x18d)||Array[_0x35146a(0x168)](_0x28975c[_0x35146a(0x17e)]))throw CliErrors[_0x35146a(0x1be)](_0x35146a(0x1a3));return _0x28975c[_0x35146a(0x17e)];}export async function listDatasets(_0x404ef8,_0x4c94ea){const _0x23a2c4=a65_0x4266,_0x15f61c=await apiRequest(_0x23a2c4(0x1b7),{'method':_0x23a2c4(0x179),'body':{'appCode':_0x404ef8,..._0x4c94ea?.[_0x23a2c4(0x164)]&&{'code':_0x4c94ea[_0x23a2c4(0x164)]},..._0x4c94ea?.[_0x23a2c4(0x1b0)]&&{'name':_0x4c94ea[_0x23a2c4(0x1b0)]}}});return extractList(_0x15f61c[_0x23a2c4(0x17e)]);}export async function getDatasetDetail(_0x14ab12){const _0x19243e=a65_0x4266,_0x3b5dd3=/^\d+$/[_0x19243e(0x15f)](_0x14ab12)?'id':_0x19243e(0x164),_0x33240e=await apiRequest(_0x19243e(0x18f)+_0x3b5dd3+'='+_0x14ab12);return _0x33240e['data'];}export async function getDatasetSdkUsageDoc(_0xbd298b,_0x50e313){const _0x8716f2=a65_0x4266,_0x570144=await toolboxRequest(_0x8716f2(0x1c8),{'datasetCode':_0xbd298b,'appCode':_0x50e313});return typeof _0x570144?.[_0x8716f2(0x1ad)]===_0x8716f2(0x1af)?_0x570144[_0x8716f2(0x1ad)]:'';}export async function listRuntimeArtifacts(_0x40a271,_0x4c0cbf){const _0x100c07=a65_0x4266,_0x15224d=new URLSearchParams({'appCode':_0x40a271});if(_0x4c0cbf?.['artifactType'])_0x15224d['set'](_0x100c07(0x18b),_0x4c0cbf[_0x100c07(0x18b)]);if(_0x4c0cbf?.[_0x100c07(0x1a9)])_0x15224d[_0x100c07(0x189)](_0x100c07(0x1a9),_0x4c0cbf['source']);if(_0x4c0cbf?.[_0x100c07(0x194)]!==undefined)_0x15224d[_0x100c07(0x189)]('favorite',String(_0x4c0cbf[_0x100c07(0x194)]));const _0x1b7416=await apiRequest(_0x100c07(0x1bb)+_0x15224d['toString']());return Array['isArray'](_0x1b7416[_0x100c07(0x17e)])?_0x1b7416[_0x100c07(0x17e)]:[];}export async function getRuntimeArtifact(_0x504971,_0x352cd2){const _0x3862cc=a65_0x4266,_0x2291eb=await apiRequest('/client/artifact/'+_0x504971+_0x3862cc(0x19b)+encodeURIComponent(_0x352cd2));if(!_0x2291eb[_0x3862cc(0x17e)])throw CliErrors[_0x3862cc(0x18e)](_0x3862cc(0x16a)+_0x504971);return _0x2291eb[_0x3862cc(0x17e)];}export async function createRuntimeArtifact(_0x490e5f,_0x21b767){const _0x492b51=a65_0x4266,_0x1b5a7c=await apiRequest(_0x492b51(0x15c),{'method':_0x492b51(0x179),'body':{'appCode':_0x490e5f,..._0x21b767}});return _0x1b5a7c[_0x492b51(0x17e)];}export async function updateRuntimeArtifact(_0x2d3c54,_0x185c4f,_0x48074b){const _0x389f93=a65_0x4266,_0x3b556a=await apiRequest(_0x389f93(0x1ba)+_0x2d3c54+_0x389f93(0x1c6),{'method':_0x389f93(0x179),'body':{'appCode':_0x185c4f,..._0x48074b}});return _0x3b556a['data'];}export async function listPersonalBffs(_0x2b0031){const _0x59c0a7=a65_0x4266,_0x328e43=await apiRequest(_0x59c0a7(0x1cf)+encodeURIComponent(_0x2b0031));return Array[_0x59c0a7(0x168)](_0x328e43['data'])?_0x328e43['data']:[];}export async function getPersonalBff(_0x123912,_0x254a0c){const _0x3f15e7=a65_0x4266,_0x10a67f=await apiRequest('/client/runtime-bff/personal/'+_0x123912+_0x3f15e7(0x19b)+encodeURIComponent(_0x254a0c));if(!_0x10a67f[_0x3f15e7(0x17e)])throw CliErrors[_0x3f15e7(0x18e)]('Personal\x20BFF\x20not\x20found:\x20id='+_0x123912);return _0x10a67f[_0x3f15e7(0x17e)];}export async function createPersonalBff(_0x290909,_0x38fc34){const _0x50eb6d=a65_0x4266,_0x58c6ea=await apiRequest('/client/runtime-bff/personal/create',{'method':'POST','body':{'appCode':_0x290909,..._0x38fc34}});return _0x58c6ea[_0x50eb6d(0x17e)];}export async function updatePersonalBff(_0x1607be,_0x48bcbf,_0xfce112){const _0x5d6b40=a65_0x4266,_0x277af6=await apiRequest(_0x5d6b40(0x1bc)+_0x1607be+'/update',{'method':_0x5d6b40(0x179),'body':{'appCode':_0x48bcbf,..._0xfce112}});return _0x277af6[_0x5d6b40(0x17e)];}export async function executePersonalBff(_0x3512cd,_0x1c2683,_0x3f2d8e){const _0x5010a1=a65_0x4266,_0x1ca430=await apiRequest(_0x5010a1(0x1bc)+_0x3512cd+'/execute?appCode='+encodeURIComponent(_0x1c2683),{'method':'POST','body':_0x3f2d8e});return _0x1ca430[_0x5010a1(0x17e)];}export async function listPersonalKnowledgeBaseItems(_0x40a3ce){const _0x3cd924=a65_0x4266,_0x583b9d=await apiRequest('/client/knowledge-base/personal/list?appCode='+encodeURIComponent(_0x40a3ce));return Array[_0x3cd924(0x168)](_0x583b9d['data'])?_0x583b9d['data']:[];}export async function getPersonalKnowledgeBaseItem(_0x1a4091,_0x43e4dd){const _0x31243b=a65_0x4266,_0xa4bf15=await apiRequest(_0x31243b(0x17c)+_0x1a4091+_0x31243b(0x19b)+encodeURIComponent(_0x43e4dd));if(!_0xa4bf15[_0x31243b(0x17e)])throw CliErrors[_0x31243b(0x18e)](_0x31243b(0x1ac)+_0x1a4091);return _0xa4bf15[_0x31243b(0x17e)];}export async function createPersonalKnowledgeBaseItem(_0x112b8a,_0xc922d2){const _0x382ce3=a65_0x4266,_0x4e298a=await apiRequest('/client/knowledge-base/personal/create',{'method':_0x382ce3(0x179),'body':{'appCode':_0x112b8a,..._0xc922d2}});return _0x4e298a[_0x382ce3(0x17e)];}export async function updatePersonalKnowledgeBaseItem(_0x4617a9,_0x4d37a3,_0x2baf84){const _0x3153e3=a65_0x4266,_0x286415=await apiRequest(_0x3153e3(0x17c)+_0x4617a9+'/update',{'method':_0x3153e3(0x179),'body':{'appCode':_0x4d37a3,..._0x2baf84}});return _0x286415[_0x3153e3(0x17e)];}export async function searchKnowledgeBase(_0x4a90cf,_0x1a2218){const _0x584441=a65_0x4266,_0x5eb2df=await apiRequest(_0x584441(0x1bd),{'method':_0x584441(0x179),'body':{'appCode':_0x4a90cf,'query':_0x1a2218[_0x584441(0x17d)],..._0x1a2218[_0x584441(0x185)]!==undefined?{'topK':_0x1a2218[_0x584441(0x185)]}:{}}});return Array[_0x584441(0x168)](_0x5eb2df['data'])?_0x5eb2df['data']:[];}export async function listRuntimeSkills(_0x44d471){const _0x589823=a65_0x4266,_0x585853=await skillHubJsonRequest('/api/runtime/v1/namespaces/'+encodeURIComponent(_0x44d471['appCode'])+_0x589823(0x1a2),{'query':{'page':0x0,'size':0xc8}});return normalizeSkillHubRuntimeListResponse(_0x44d471['appCode'],_0x585853,_0x44d471[_0x589823(0x1d1)]??_0x589823(0x15a),_0x44d471[_0x589823(0x164)]);}export async function listPersonalRuntimeSkills(_0x280239){const _0x25441c=a65_0x4266;return(await listRuntimeSkills({'appCode':_0x280239,'scope':_0x25441c(0x15d)}))[_0x25441c(0x15d)];}export async function listCompanyRuntimeSkills(_0x4f160e){const _0x5980b7=a65_0x4266;return(await listRuntimeSkills({'appCode':_0x4f160e,'scope':_0x5980b7(0x16b)}))[_0x5980b7(0x16b)];}export async function listVisibleRuntimeSkills(_0x299e6a){const _0xfa5cc8=a65_0x4266;return(await listRuntimeSkills({'appCode':_0x299e6a,'scope':_0xfa5cc8(0x15a)}))[_0xfa5cc8(0x167)];}export async function createPersonalRuntimeSkill(_0x203d29,_0x2fdfa3){return publishRuntimeSkill(_0x203d29,_0x2fdfa3);}export async function updatePersonalRuntimeSkill(_0x1f5305,_0x3559ff,_0x512f19){const _0x1a5983=a65_0x4266;return publishRuntimeSkill(_0x3559ff,{..._0x512f19,'skillCode':_0x512f19[_0x1a5983(0x171)]??_0x1f5305});}export async function downloadRuntimeSkillPackage(_0x230618,_0x4960e4,_0x2989c0,_0x4f87f1){const _0x143e38=a65_0x4266;void _0x230618;const _0x3bea61=_0x4f87f1?_0x143e38(0x19d)+encodeURIComponent(_0x2989c0)+'/'+encodeURIComponent(_0x4960e4)+_0x143e38(0x193)+encodeURIComponent(_0x4f87f1)+_0x143e38(0x177):_0x143e38(0x19d)+encodeURIComponent(_0x2989c0)+'/'+encodeURIComponent(_0x4960e4)+_0x143e38(0x177);return skillHubBinaryRequest(_0x3bea61);}async function publishRuntimeSkill(_0x20f8f3,_0xf30913){const _0x590c25=a65_0x4266,_0x1d42e7=new FormData();_0x1d42e7['set'](_0x590c25(0x1c5),runtimeSkillPackageFile(_0xf30913)),_0x1d42e7['set'](_0x590c25(0x1a0),_0x590c25(0x184));const _0x570e5a=await skillHubJsonRequest(_0x590c25(0x19d)+encodeURIComponent(_0x20f8f3)+_0x590c25(0x181),{'method':_0x590c25(0x179),'body':_0x1d42e7});return{'appCode':_0x570e5a['namespace']??_0x20f8f3,'skillCode':_0x570e5a[_0x590c25(0x1a4)]??_0xf30913['skillCode']??'','skillName':_0xf30913['skillName']??_0x570e5a[_0x590c25(0x1a4)]??_0xf30913[_0x590c25(0x171)],'description':_0xf30913[_0x590c25(0x183)],'scope':skillHubVisibilityToScope(_0x570e5a[_0x590c25(0x1a0)])??_0x590c25(0x15d),'version':_0x570e5a['version']??_0xf30913['version'],'tags':_0xf30913[_0x590c25(0x1d2)],'content':_0xf30913[_0x590c25(0x1ce)]};}function runtimeSkillPackageFile(_0x38e8c2){const _0x4b5991=a65_0x4266;if(!_0x38e8c2[_0x4b5991(0x190)])throw CliErrors['validation'](_0x4b5991(0x1b5));const _0x71f607=Buffer[_0x4b5991(0x199)](_0x38e8c2['packageBase64'],_0x4b5991(0x15b)),_0x15d86a=new Blob([_0x71f607],{'type':_0x4b5991(0x1d0)}),_0x50767d=(_0x38e8c2[_0x4b5991(0x171)]||_0x4b5991(0x1a8))+'.zip';if(typeof File!==_0x4b5991(0x182))return new File([_0x15d86a],_0x50767d,{'type':_0x4b5991(0x1d0)});return _0x15d86a;}function normalizeSkillHubRuntimeListResponse(_0x392d1e,_0x5bfb59,_0x5db9f3,_0x9d88c){const _0x1da1b2=a65_0x4266,_0x25765a=Array[_0x1da1b2(0x168)](_0x5bfb59)?_0x5bfb59:Array[_0x1da1b2(0x168)](_0x5bfb59?.[_0x1da1b2(0x1d3)])?_0x5bfb59['items']:[],_0x31cb5d=_0x9d88c?.[_0x1da1b2(0x1c0)](),_0x17ba7d=_0x25765a['filter'](_0xc08117=>!_0x31cb5d||_0xc08117['slug']===_0x31cb5d)[_0x1da1b2(0x1d5)](skillHubRuntimeItemToRuntimeSkill)['filter'](_0x2c1740=>Boolean(_0x2c1740)),_0x2aed80=_0x17ba7d[_0x1da1b2(0x175)](_0x1782e8=>_0x1782e8['scope']===_0x1da1b2(0x15d)),_0x14407c=_0x17ba7d['filter'](_0x183eea=>_0x183eea['scope']===_0x1da1b2(0x16b));return{'appCode':_0x392d1e,'personal':_0x5db9f3===_0x1da1b2(0x16b)?[]:_0x2aed80,'company':_0x5db9f3===_0x1da1b2(0x15d)?[]:_0x14407c,'effective':buildEffectiveRuntimeSkills(_0x2aed80,_0x14407c,_0x5db9f3)};}function skillHubRuntimeItemToRuntimeSkill(_0x3f7eec){const _0x5f03cf=a65_0x4266,_0x4983be=_0x3f7eec['slug']?.['trim'](),_0x226da1=skillHubVisibilityToScope(_0x3f7eec['visibility']);if(!_0x4983be||!_0x226da1)return undefined;return{'id':_0x3f7eec['id'],'appCode':_0x3f7eec[_0x5f03cf(0x19f)],'skillCode':_0x4983be,'skillName':_0x3f7eec[_0x5f03cf(0x1d4)]??_0x4983be,'description':_0x3f7eec[_0x5f03cf(0x1d6)],'scope':_0x226da1,'version':skillHubRuntimeItemVersion(_0x3f7eec),'status':_0x3f7eec[_0x5f03cf(0x18c)]};}function skillHubVisibilityToScope(_0x3b38a4){const _0x3317fc=a65_0x4266;if(_0x3b38a4===_0x3317fc(0x184))return'personal';if(_0x3b38a4===_0x3317fc(0x16e))return _0x3317fc(0x16b);return undefined;}function skillHubRuntimeItemVersion(_0x4b0360){const _0x47905a=a65_0x4266;return _0x4b0360[_0x47905a(0x169)]?.[_0x47905a(0x1b4)]??_0x4b0360['headlineVersion']?.[_0x47905a(0x1b4)]??_0x4b0360['ownerPreviewVersion']?.[_0x47905a(0x1b4)];}function buildEffectiveRuntimeSkills(_0x130ef4,_0x4ec40a,_0x41e014){const _0xd25755=a65_0x4266;if(_0x41e014==='personal')return _0x130ef4;if(_0x41e014===_0xd25755(0x16b))return _0x4ec40a;const _0x47a7d4=new Map();for(const _0xfa824f of _0x4ec40a){_0x47a7d4[_0xd25755(0x189)](_0xfa824f[_0xd25755(0x171)],_0xfa824f);}for(const _0x15cf26 of _0x130ef4){_0x47a7d4['set'](_0x15cf26[_0xd25755(0x171)],_0x15cf26);}return Array[_0xd25755(0x199)](_0x47a7d4[_0xd25755(0x1b3)]());}function normalizeRuntimeSkillListResponse(_0x15367d,_0x8e5f78){const _0x3d26a2=a65_0x4266;if(Array[_0x3d26a2(0x168)](_0x8e5f78)){const _0x40aae4=_0x8e5f78[_0x3d26a2(0x175)](_0x49ddbf=>_0x49ddbf[_0x3d26a2(0x1d1)]===_0x3d26a2(0x15d)),_0x31f306=_0x8e5f78[_0x3d26a2(0x175)](_0xaa0fc1=>_0xaa0fc1[_0x3d26a2(0x1d1)]===_0x3d26a2(0x16b));return{'appCode':_0x15367d,'personal':_0x40aae4,'company':_0x31f306,'effective':[..._0x31f306,..._0x40aae4]};}return{'appCode':_0x8e5f78?.[_0x3d26a2(0x173)]??_0x15367d,'personal':Array['isArray'](_0x8e5f78?.['personal'])?_0x8e5f78[_0x3d26a2(0x15d)]:[],'company':Array[_0x3d26a2(0x168)](_0x8e5f78?.[_0x3d26a2(0x16b)])?_0x8e5f78[_0x3d26a2(0x16b)]:[],'effective':Array[_0x3d26a2(0x168)](_0x8e5f78?.[_0x3d26a2(0x167)])?_0x8e5f78[_0x3d26a2(0x167)]:[]};}
@@ -1 +1 @@
1
- (function(_0x40d4af,_0x21fc6a){const _0x1a5c1a=a66_0x1f35,_0x79facb=_0x40d4af();while(!![]){try{const _0x59260a=parseInt(_0x1a5c1a(0x94))/0x1+parseInt(_0x1a5c1a(0x8b))/0x2*(parseInt(_0x1a5c1a(0x9a))/0x3)+parseInt(_0x1a5c1a(0x9b))/0x4+-parseInt(_0x1a5c1a(0x89))/0x5*(-parseInt(_0x1a5c1a(0x96))/0x6)+parseInt(_0x1a5c1a(0x9c))/0x7+-parseInt(_0x1a5c1a(0x95))/0x8*(-parseInt(_0x1a5c1a(0x8d))/0x9)+parseInt(_0x1a5c1a(0x90))/0xa*(-parseInt(_0x1a5c1a(0x8a))/0xb);if(_0x59260a===_0x21fc6a)break;else _0x79facb['push'](_0x79facb['shift']());}catch(_0x581feb){_0x79facb['push'](_0x79facb['shift']());}}}(a66_0x5c36,0x9a632));import{listDatasets}from'../core/api-client.js';function a66_0x5c36(){const _0x558526=['956979CjUvyB','get','dbtableConfig','10eFCVov','map','find','dbName','371120hzLuQp','88TVisdu','6HoQSmZ','entries','dbId','db-','10266ZVUcDZ','1246264ccCdOQ','1811243yLPylh','set','5484335aZJDoa','31041527ZnxMhR','144SBURQC','has'];a66_0x5c36=function(){return _0x558526;};return a66_0x5c36();}const cache=new Map();export async function listDatabases(_0x2dc9c0){const _0x2d6447=a66_0x1f35;if(cache[_0x2d6447(0x8c)](_0x2dc9c0))return cache[_0x2d6447(0x8e)](_0x2dc9c0);const _0x1c6987=await listDatasets(_0x2dc9c0),_0x2491a2=new Map();for(const _0x2cc7f of _0x1c6987){const _0x2ff3e1=_0x2cc7f[_0x2d6447(0x8f)];_0x2ff3e1?.['dbId']!=null&&_0x2491a2['set'](_0x2ff3e1[_0x2d6447(0x98)],_0x2ff3e1[_0x2d6447(0x93)]??_0x2d6447(0x99)+_0x2ff3e1['dbId']);}const _0x2ef432=[..._0x2491a2[_0x2d6447(0x97)]()][_0x2d6447(0x91)](([_0x16faca,_0x3b3693])=>({'dbId':_0x16faca,'dbName':_0x3b3693}));return cache[_0x2d6447(0x9d)](_0x2dc9c0,_0x2ef432),_0x2ef432;}function a66_0x1f35(_0x32613e,_0x936ef8){_0x32613e=_0x32613e-0x89;const _0x5c368a=a66_0x5c36();let _0x1f35bb=_0x5c368a[_0x32613e];return _0x1f35bb;}export async function getDbName(_0x3c1c8b,_0x54fc32){const _0x44b0f5=a66_0x1f35;try{const _0x498181=await listDatabases(_0x3c1c8b);return _0x498181[_0x44b0f5(0x92)](_0x33bb4d=>_0x33bb4d[_0x44b0f5(0x98)]===_0x54fc32)?.[_0x44b0f5(0x93)];}catch{return undefined;}}
1
+ (function(_0x481778,_0x7c0e45){const _0x1b6ae2=a66_0x4a38,_0x37aab6=_0x481778();while(!![]){try{const _0x4852f5=parseInt(_0x1b6ae2(0x115))/0x1*(-parseInt(_0x1b6ae2(0x11b))/0x2)+-parseInt(_0x1b6ae2(0x118))/0x3+parseInt(_0x1b6ae2(0x11a))/0x4+-parseInt(_0x1b6ae2(0x114))/0x5*(-parseInt(_0x1b6ae2(0x112))/0x6)+parseInt(_0x1b6ae2(0x11f))/0x7*(parseInt(_0x1b6ae2(0x11d))/0x8)+-parseInt(_0x1b6ae2(0x116))/0x9*(parseInt(_0x1b6ae2(0x124))/0xa)+-parseInt(_0x1b6ae2(0x11c))/0xb*(-parseInt(_0x1b6ae2(0x11e))/0xc);if(_0x4852f5===_0x7c0e45)break;else _0x37aab6['push'](_0x37aab6['shift']());}catch(_0x5adb2d){_0x37aab6['push'](_0x37aab6['shift']());}}}(a66_0x5e1e,0x75d98));import{listDatasets}from'../core/api-client.js';const cache=new Map();export async function listDatabases(_0x1a141b){const _0x5a79e5=a66_0x4a38;if(cache[_0x5a79e5(0x121)](_0x1a141b))return cache[_0x5a79e5(0x125)](_0x1a141b);const _0x22abc8=await listDatasets(_0x1a141b),_0x2e9e59=new Map();for(const _0x4345b4 of _0x22abc8){const _0x4f1302=_0x4345b4[_0x5a79e5(0x123)];_0x4f1302?.['dbId']!=null&&_0x2e9e59['set'](_0x4f1302[_0x5a79e5(0x119)],_0x4f1302[_0x5a79e5(0x122)]??_0x5a79e5(0x126)+_0x4f1302[_0x5a79e5(0x119)]);}const _0x2d3988=[..._0x2e9e59[_0x5a79e5(0x117)]()][_0x5a79e5(0x113)](([_0x32fc9a,_0x21e3e6])=>({'dbId':_0x32fc9a,'dbName':_0x21e3e6}));return cache[_0x5a79e5(0x111)](_0x1a141b,_0x2d3988),_0x2d3988;}function a66_0x4a38(_0x109dff,_0x4ff517){_0x109dff=_0x109dff-0x111;const _0x5e1ef3=a66_0x5e1e();let _0x4a3858=_0x5e1ef3[_0x109dff];return _0x4a3858;}function a66_0x5e1e(){const _0x45adbe=['has','dbName','dbtableConfig','40LHFofq','get','db-','set','24qAkOru','map','268505zCMmil','774JjtjOt','1915209gmLjWf','entries','2089509tJJnEK','dbId','3611008zkjflu','1692yYIxQL','264zepmmD','2172568OTZttf','648048ulSMXI','7MHimUS','find'];a66_0x5e1e=function(){return _0x45adbe;};return a66_0x5e1e();}export async function getDbName(_0x153c72,_0x301b4e){const _0x550ce2=a66_0x4a38;try{const _0x34ce59=await listDatabases(_0x153c72);return _0x34ce59[_0x550ce2(0x120)](_0xba28cb=>_0xba28cb[_0x550ce2(0x119)]===_0x301b4e)?.[_0x550ce2(0x122)];}catch{return undefined;}}
@@ -1 +1 @@
1
- (function(_0x3ecf50,_0x44f4f1){const _0xd1dd94=a67_0x32d8,_0x489bbe=_0x3ecf50();while(!![]){try{const _0x26060a=-parseInt(_0xd1dd94(0x1c0))/0x1*(parseInt(_0xd1dd94(0x1b2))/0x2)+-parseInt(_0xd1dd94(0x1bf))/0x3*(parseInt(_0xd1dd94(0x1c5))/0x4)+-parseInt(_0xd1dd94(0x1c1))/0x5+-parseInt(_0xd1dd94(0x1a9))/0x6+-parseInt(_0xd1dd94(0x1ba))/0x7+-parseInt(_0xd1dd94(0x1af))/0x8*(-parseInt(_0xd1dd94(0x1a4))/0x9)+parseInt(_0xd1dd94(0x1a3))/0xa;if(_0x26060a===_0x44f4f1)break;else _0x489bbe['push'](_0x489bbe['shift']());}catch(_0xa34535){_0x489bbe['push'](_0x489bbe['shift']());}}}(a67_0x1ff6,0xbb7f7));import{createClient}from'@lovrabet/sdk';import{PRODUCT_CONFIG}from'../constant/product.js';import{CliErrors}from'../errors.js';import{parseBatchCreateItemsFromParams}from'../utils/params.js';let _client;function a67_0x32d8(_0xf79a72,_0x1d8421){_0xf79a72=_0xf79a72-0x19d;const _0x1ff68b=a67_0x1ff6();let _0x32d85e=_0x1ff68b[_0xf79a72];return _0x32d85e;}export function initSdkClient(_0x4c201c){const _0x3b88b1=a67_0x32d8;_client=createClient({'appCode':_0x4c201c[_0x3b88b1(0x19f)],'env':_0x4c201c[_0x3b88b1(0x1bd)],'authMode':_0x4c201c[_0x3b88b1(0x1a6)],..._0x4c201c[_0x3b88b1(0x19d)]?{'accessKey':_0x4c201c['accessKey']}:{},'options':{'timeout':0x7530,'headers':{'X-Invoke-Source':PRODUCT_CONFIG[_0x3b88b1(0x1b3)]}}});}function ensureClient(){if(!_client)throw new Error('SDK\x20client\x20not\x20initialized.\x20Call\x20initSdkClient()\x20first.');return _client;}function a67_0x1ff6(){const _0x3c65e0=['env','isArray','24324mlAmpo','665YuabsZ','7576245XYreRH','aggregate','batchCreate','update\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123,\x22name\x22:\x22new\x22}\x27','460xGrbAr','validation','accessKey','data\x20aggregate\x20--params.aggregate\x20must\x20be\x20an\x20array.','appCode','sql','string','models','44195740jeYvPs','39213bVxglw','Available:\x20filter,\x20getOne,\x20create,\x20batchCreate,\x20update,\x20delete,\x20aggregate.','authMode',']\x20requires\x20\x22column\x22;\x20\x22field\x22\x20is\x20accepted\x20only\x20as\x20a\x20deprecated\x20alias.',']\x20must\x20be\x20an\x20object.','2990736NwQLqE','delete','object','execute','dataset_','getOne','1408ijJQXW','SDK\x20model\x20does\x20not\x20support\x20operation\x20\x22','delete\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123}\x27','3668voPGzl','invokeSource','function','field','bff','data\x20aggregate\x20--params.aggregate[','trim','update','1768760JmeuGp','getOne\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123}\x27','map'];a67_0x1ff6=function(){return _0x3c65e0;};return a67_0x1ff6();}function normalizeAggregateParams(_0x6e66f4){const _0x25bafa=a67_0x32d8,_0x6f9cc8=_0x6e66f4['aggregate'];if(_0x6f9cc8===undefined)return _0x6e66f4;if(!Array[_0x25bafa(0x1be)](_0x6f9cc8))throw CliErrors[_0x25bafa(0x1c6)](_0x25bafa(0x19e));return{..._0x6e66f4,'aggregate':_0x6f9cc8[_0x25bafa(0x1bc)]((_0x4ca450,_0x5974cf)=>{const _0x46f6ca=_0x25bafa;if(!_0x4ca450||typeof _0x4ca450!==_0x46f6ca(0x1ab)||Array[_0x46f6ca(0x1be)](_0x4ca450))throw CliErrors[_0x46f6ca(0x1c6)]('data\x20aggregate\x20--params.aggregate['+_0x5974cf+_0x46f6ca(0x1a8));const _0x4eccb5=_0x4ca450['column']??_0x4ca450[_0x46f6ca(0x1b5)];if(typeof _0x4eccb5!==_0x46f6ca(0x1a1)||_0x4eccb5[_0x46f6ca(0x1b8)]()==='')throw CliErrors['validation'](_0x46f6ca(0x1b7)+_0x5974cf+_0x46f6ca(0x1a7));const _0x8b7c={..._0x4ca450,'column':_0x4eccb5};return delete _0x8b7c['field'],_0x8b7c;})};}export async function executeData(_0x9397ba,_0x1e8b20,_0x11a85b){const _0x36b813=a67_0x32d8,_0xd5a9e9=ensureClient(),_0x21de6e=_0x36b813(0x1ad)+_0x9397ba,_0x203ee8=_0xd5a9e9[_0x36b813(0x1a2)][_0x21de6e];if(!_0x203ee8||typeof _0x203ee8[_0x1e8b20]!==_0x36b813(0x1b4))throw new Error(_0x36b813(0x1b0)+_0x1e8b20+'\x22.\x20'+_0x36b813(0x1a5));if(_0x1e8b20==='batchCreate')return _0x203ee8[_0x36b813(0x1c3)](parseBatchCreateItemsFromParams(_0x11a85b));const _0x393ad3=_0x11a85b!==undefined&&_0x11a85b!==null&&!Array[_0x36b813(0x1be)](_0x11a85b)?_0x11a85b:{};switch(_0x1e8b20){case _0x36b813(0x1ae):{const _0x51adb9=_0x393ad3['id'];if(_0x51adb9===undefined||_0x51adb9===null)throw new Error(_0x36b813(0x1bb));return _0x203ee8[_0x36b813(0x1ae)](_0x51adb9);}case _0x36b813(0x1b9):{const {id:_0x485422,..._0x21db56}=_0x393ad3;if(_0x485422===undefined||_0x485422===null)throw new Error(_0x36b813(0x1c4));return _0x203ee8[_0x36b813(0x1b9)](_0x485422,_0x21db56);}case _0x36b813(0x1aa):{const _0x53ca30=_0x393ad3['id'];if(_0x53ca30===undefined||_0x53ca30===null)throw new Error(_0x36b813(0x1b1));return _0x203ee8['delete'](_0x53ca30);}case _0x36b813(0x1c2):return _0x203ee8['aggregate'](normalizeAggregateParams(_0x393ad3));default:return _0x203ee8[_0x1e8b20](_0x393ad3);}}export async function executeSdkSql(_0xe8bc3b,_0x54f1be){const _0x2a4c68=a67_0x32d8,_0x563390=ensureClient();return _0x563390[_0x2a4c68(0x1a0)][_0x2a4c68(0x1ac)]({'sqlCode':_0xe8bc3b,'params':_0x54f1be});}export async function executeSdkBff(_0x1d5638,_0x4f37ae){const _0xcda791=a67_0x32d8,_0x5c7101=ensureClient();return _0x5c7101[_0xcda791(0x1b6)]['execute']({'scriptName':_0x1d5638,'params':_0x4f37ae});}
1
+ (function(_0x11e161,_0x1dd758){const _0x5834d7=a67_0x2d90,_0x59f4dc=_0x11e161();while(!![]){try{const _0x380fee=parseInt(_0x5834d7(0x1ce))/0x1*(-parseInt(_0x5834d7(0x1b9))/0x2)+-parseInt(_0x5834d7(0x1b7))/0x3+parseInt(_0x5834d7(0x1b4))/0x4*(-parseInt(_0x5834d7(0x1af))/0x5)+parseInt(_0x5834d7(0x1b3))/0x6+-parseInt(_0x5834d7(0x1c6))/0x7*(-parseInt(_0x5834d7(0x1cd))/0x8)+parseInt(_0x5834d7(0x1d6))/0x9*(-parseInt(_0x5834d7(0x1c0))/0xa)+parseInt(_0x5834d7(0x1d5))/0xb*(parseInt(_0x5834d7(0x1d3))/0xc);if(_0x380fee===_0x1dd758)break;else _0x59f4dc['push'](_0x59f4dc['shift']());}catch(_0x22c6c0){_0x59f4dc['push'](_0x59f4dc['shift']());}}}(a67_0x57bd,0x1b863));import{createClient}from'@lovrabet/sdk';import{PRODUCT_CONFIG}from'../constant/product.js';import{CliErrors}from'../errors.js';function a67_0x57bd(){const _0x29a7af=['batchCreate','object','validation','12VVhawJ','bff','3535697rdJCpb','1269YaNbpC','5155zsBaZx','field','getOne\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123}\x27','delete\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123}\x27','30018yveUto','68XvluKQ','Available:\x20filter,\x20getOne,\x20create,\x20batchCreate,\x20update,\x20delete,\x20aggregate.','string','448971GIHcIB','sql','2kAaFoE','execute','delete','data\x20aggregate\x20--params.aggregate[','SDK\x20client\x20not\x20initialized.\x20Call\x20initSdkClient()\x20first.','getOne','isArray','6010VLIxnL','accessKey',']\x20requires\x20\x22column\x22;\x20\x22field\x22\x20is\x20accepted\x20only\x20as\x20a\x20deprecated\x20alias.','update\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123,\x22name\x22:\x22new\x22}\x27','SDK\x20model\x20does\x20not\x20support\x20operation\x20\x22',']\x20must\x20be\x20an\x20object.','91acfXAC','aggregate','models','map','env','\x22.\x20','update','125192LpKBRM','165203ficKjr','dataset_'];a67_0x57bd=function(){return _0x29a7af;};return a67_0x57bd();}import{parseBatchCreateItemsFromParams}from'../utils/params.js';let _client;function a67_0x2d90(_0x2080da,_0xf4e853){_0x2080da=_0x2080da-0x1af;const _0x57bd2b=a67_0x57bd();let _0x2d9036=_0x57bd2b[_0x2080da];return _0x2d9036;}export function initSdkClient(_0x47deb4){const _0xe96213=a67_0x2d90;_client=createClient({'appCode':_0x47deb4['appCode'],'env':_0x47deb4[_0xe96213(0x1ca)],'authMode':_0x47deb4['authMode'],..._0x47deb4['accessKey']?{'accessKey':_0x47deb4[_0xe96213(0x1c1)]}:{},'options':{'timeout':0x7530,'headers':{'X-Invoke-Source':PRODUCT_CONFIG['invokeSource']}}});}function ensureClient(){const _0x473228=a67_0x2d90;if(!_client)throw new Error(_0x473228(0x1bd));return _client;}function normalizeAggregateParams(_0x1a653a){const _0x1ef570=a67_0x2d90,_0x2c16c5=_0x1a653a['aggregate'];if(_0x2c16c5===undefined)return _0x1a653a;if(!Array['isArray'](_0x2c16c5))throw CliErrors[_0x1ef570(0x1d2)]('data\x20aggregate\x20--params.aggregate\x20must\x20be\x20an\x20array.');return{..._0x1a653a,'aggregate':_0x2c16c5[_0x1ef570(0x1c9)]((_0x25e1f4,_0x41dfa7)=>{const _0x58b7e4=_0x1ef570;if(!_0x25e1f4||typeof _0x25e1f4!==_0x58b7e4(0x1d1)||Array[_0x58b7e4(0x1bf)](_0x25e1f4))throw CliErrors[_0x58b7e4(0x1d2)](_0x58b7e4(0x1bc)+_0x41dfa7+_0x58b7e4(0x1c5));const _0x46c216=_0x25e1f4['column']??_0x25e1f4[_0x58b7e4(0x1b0)];if(typeof _0x46c216!==_0x58b7e4(0x1b6)||_0x46c216['trim']()==='')throw CliErrors[_0x58b7e4(0x1d2)]('data\x20aggregate\x20--params.aggregate['+_0x41dfa7+_0x58b7e4(0x1c2));const _0x26f27d={..._0x25e1f4,'column':_0x46c216};return delete _0x26f27d['field'],_0x26f27d;})};}export async function executeData(_0x176abc,_0x148055,_0x460006){const _0xf0929a=a67_0x2d90,_0x359341=ensureClient(),_0x71e515=_0xf0929a(0x1cf)+_0x176abc,_0x103035=_0x359341[_0xf0929a(0x1c8)][_0x71e515];if(!_0x103035||typeof _0x103035[_0x148055]!=='function')throw new Error(_0xf0929a(0x1c4)+_0x148055+_0xf0929a(0x1cb)+_0xf0929a(0x1b5));if(_0x148055==='batchCreate')return _0x103035[_0xf0929a(0x1d0)](parseBatchCreateItemsFromParams(_0x460006));const _0x598d0f=_0x460006!==undefined&&_0x460006!==null&&!Array[_0xf0929a(0x1bf)](_0x460006)?_0x460006:{};switch(_0x148055){case'getOne':{const _0x22d62b=_0x598d0f['id'];if(_0x22d62b===undefined||_0x22d62b===null)throw new Error(_0xf0929a(0x1b1));return _0x103035[_0xf0929a(0x1be)](_0x22d62b);}case _0xf0929a(0x1cc):{const {id:_0x1b1d1d,..._0x344949}=_0x598d0f;if(_0x1b1d1d===undefined||_0x1b1d1d===null)throw new Error(_0xf0929a(0x1c3));return _0x103035[_0xf0929a(0x1cc)](_0x1b1d1d,_0x344949);}case _0xf0929a(0x1bb):{const _0x43d02b=_0x598d0f['id'];if(_0x43d02b===undefined||_0x43d02b===null)throw new Error(_0xf0929a(0x1b2));return _0x103035[_0xf0929a(0x1bb)](_0x43d02b);}case'aggregate':return _0x103035[_0xf0929a(0x1c7)](normalizeAggregateParams(_0x598d0f));default:return _0x103035[_0x148055](_0x598d0f);}}export async function executeSdkSql(_0x3be84e,_0x4f74a8){const _0x3651ef=a67_0x2d90,_0x130549=ensureClient();return _0x130549[_0x3651ef(0x1b8)][_0x3651ef(0x1ba)]({'sqlCode':_0x3be84e,'params':_0x4f74a8});}export async function executeSdkBff(_0x24287c,_0x5055a9){const _0x2fd3fa=a67_0x2d90,_0x55e21e=ensureClient();return _0x55e21e[_0x2fd3fa(0x1d4)][_0x2fd3fa(0x1ba)]({'scriptName':_0x24287c,'params':_0x5055a9});}
package/lib/errors.js CHANGED
@@ -1 +1 @@
1
- const a68_0x1370bf=a68_0x16c4;(function(_0x1b1c21,_0x588738){const _0x1b8116=a68_0x16c4,_0x18b05c=_0x1b1c21();while(!![]){try{const _0x36e678=-parseInt(_0x1b8116(0x1d5))/0x1+-parseInt(_0x1b8116(0x1d4))/0x2*(-parseInt(_0x1b8116(0x1d6))/0x3)+-parseInt(_0x1b8116(0x1cb))/0x4+-parseInt(_0x1b8116(0x1cf))/0x5*(-parseInt(_0x1b8116(0x1d1))/0x6)+-parseInt(_0x1b8116(0x1ce))/0x7*(-parseInt(_0x1b8116(0x1c8))/0x8)+parseInt(_0x1b8116(0x1d2))/0x9*(parseInt(_0x1b8116(0x1d0))/0xa)+-parseInt(_0x1b8116(0x1d3))/0xb;if(_0x36e678===_0x588738)break;else _0x18b05c['push'](_0x18b05c['shift']());}catch(_0x287651){_0x18b05c['push'](_0x18b05c['shift']());}}}(a68_0x4e17,0x823c2));function a68_0x4e17(){const _0x4b70ac=['1142205mGgLCv','9360370WWdGpI','18HlslUB','9YtIPGL','7662633BLHObI','2NSGjxR','524491ptQbhd','2087478kWYwdR','\x20file.','5512ofVYMu','\x20auth\x20login`.','Set\x20appcode\x20via\x20--appcode\x20or\x20','3047084XYTjtN','newConfigFileName','Run\x20this\x20command\x20inside\x20a\x20directory\x20with\x20a\x20','2023FNeSay'];a68_0x4e17=function(){return _0x4b70ac;};return a68_0x4e17();}import{CliError,createCliErrors}from'@lovrabet/cli-framework';import{CLI_BIN_NAME}from'./constant/cli.js';function a68_0x16c4(_0x16c04a,_0x2fc76f){_0x16c04a=_0x16c04a-0x1c7;const _0x4e17d7=a68_0x4e17();let _0x16c4e1=_0x4e17d7[_0x16c04a];return _0x16c4e1;}import{PRODUCT_CONFIG}from'./constant/product.js';export{CliError};export const CliErrors=createCliErrors({'cliBinName':CLI_BIN_NAME,'authRequiredHint':'Configure\x20accessKey\x20in\x20'+PRODUCT_CONFIG['newConfigFileName']+'\x20or\x20run\x20`'+CLI_BIN_NAME+a68_0x1370bf(0x1c9),'configMissingHint':a68_0x1370bf(0x1ca)+PRODUCT_CONFIG['newConfigFileName']+'.','notInProjectHint':a68_0x1370bf(0x1cd)+PRODUCT_CONFIG[a68_0x1370bf(0x1cc)]+a68_0x1370bf(0x1c7)});
1
+ const a68_0x52315d=a68_0x172b;function a68_0x29cb(){const _0x2c4ed5=['119457hRYAah','\x20auth\x20login`.','Set\x20appcode\x20via\x20--appcode\x20or\x20','6qAEoMA','1176380EDvRkT','205144xlzGqL','175RHjAMX','newConfigFileName','11zRFPzQ','1772352QnwwFF','658vjdJXg','590SjannD','926945qoeDIi','3620988MDjbDj','\x20or\x20run\x20`','4067PvEKwo'];a68_0x29cb=function(){return _0x2c4ed5;};return a68_0x29cb();}(function(_0x37725e,_0x27dcaf){const _0x2fe087=a68_0x172b,_0x464c04=_0x37725e();while(!![]){try{const _0x2a3b1e=-parseInt(_0x2fe087(0x160))/0x1*(-parseInt(_0x2fe087(0x16b))/0x2)+-parseInt(_0x2fe087(0x16a))/0x3+-parseInt(_0x2fe087(0x165))/0x4+-parseInt(_0x2fe087(0x16d))/0x5*(parseInt(_0x2fe087(0x164))/0x6)+parseInt(_0x2fe087(0x167))/0x7*(-parseInt(_0x2fe087(0x166))/0x8)+-parseInt(_0x2fe087(0x161))/0x9*(-parseInt(_0x2fe087(0x16c))/0xa)+parseInt(_0x2fe087(0x169))/0xb*(parseInt(_0x2fe087(0x16e))/0xc);if(_0x2a3b1e===_0x27dcaf)break;else _0x464c04['push'](_0x464c04['shift']());}catch(_0x1e8bfd){_0x464c04['push'](_0x464c04['shift']());}}}(a68_0x29cb,0xadb84));function a68_0x172b(_0x201628,_0x13c486){_0x201628=_0x201628-0x15f;const _0x29cb64=a68_0x29cb();let _0x172b3e=_0x29cb64[_0x201628];return _0x172b3e;}import{CliError,createCliErrors}from'@lovrabet/cli-framework';import{CLI_BIN_NAME}from'./constant/cli.js';import{PRODUCT_CONFIG}from'./constant/product.js';export{CliError};export const CliErrors=createCliErrors({'cliBinName':CLI_BIN_NAME,'authRequiredHint':'Configure\x20accessKey\x20in\x20'+PRODUCT_CONFIG[a68_0x52315d(0x168)]+a68_0x52315d(0x15f)+CLI_BIN_NAME+a68_0x52315d(0x162),'configMissingHint':a68_0x52315d(0x163)+PRODUCT_CONFIG['newConfigFileName']+'.','notInProjectHint':'Run\x20this\x20command\x20inside\x20a\x20directory\x20with\x20a\x20'+PRODUCT_CONFIG[a68_0x52315d(0x168)]+'\x20file.'});
@@ -1 +1 @@
1
- (function(_0x1004c4,_0x18cad6){var _0x73bbf2=a69_0x2992,_0x1f0e0f=_0x1004c4();while(!![]){try{var _0x1d45ec=-parseInt(_0x73bbf2(0x1ba))/0x1*(-parseInt(_0x73bbf2(0x1bd))/0x2)+parseInt(_0x73bbf2(0x1b8))/0x3+parseInt(_0x73bbf2(0x1b6))/0x4+parseInt(_0x73bbf2(0x1bb))/0x5+parseInt(_0x73bbf2(0x1b7))/0x6+-parseInt(_0x73bbf2(0x1bc))/0x7*(-parseInt(_0x73bbf2(0x1b9))/0x8)+-parseInt(_0x73bbf2(0x1be))/0x9;if(_0x1d45ec===_0x18cad6)break;else _0x1f0e0f['push'](_0x1f0e0f['shift']());}catch(_0x88df67){_0x1f0e0f['push'](_0x1f0e0f['shift']());}}}(a69_0x22f9,0x92fcd));import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';import{buildAllFlags as a69_0x215f91}from'@lovrabet/cli-framework';function a69_0x2992(_0x112bae,_0x4f9f80){_0x112bae=_0x112bae-0x1b6;var _0x22f918=a69_0x22f9();var _0x2992b5=_0x22f918[_0x112bae];return _0x2992b5;}export function buildAllFlags(_0xcdb7f4){return a69_0x215f91(_0xcdb7f4,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});}function a69_0x22f9(){var _0x5acbdb=['1861fFaRrd','3924235udcdNy','7lkHFEg','902HYbrUe','32539572gEurkc','4666644tcTjft','3345414UuwzcR','357000XOnAbJ','6001448tpLygp'];a69_0x22f9=function(){return _0x5acbdb;};return a69_0x22f9();}
1
+ function a69_0x17e2(){var _0x5fc084=['399588MIfTRx','3198728rNhNgr','24Qatzpl','10JnNZGD','4636192Bmsmfs','638919SlZBwZ','21lmitve','31190aOGGIH','65BxbPaU','94SiJZAA','253122OzNeHp','4275056AzqGNb'];a69_0x17e2=function(){return _0x5fc084;};return a69_0x17e2();}function a69_0x5bda(_0x27d955,_0x40a67c){_0x27d955=_0x27d955-0x151;var _0x17e26c=a69_0x17e2();var _0x5bdab9=_0x17e26c[_0x27d955];return _0x5bdab9;}(function(_0x5bf8d4,_0x1a5832){var _0x14aeb0=a69_0x5bda,_0x8fbe9e=_0x5bf8d4();while(!![]){try{var _0x37fdb7=-parseInt(_0x14aeb0(0x153))/0x1*(parseInt(_0x14aeb0(0x155))/0x2)+parseInt(_0x14aeb0(0x158))/0x3+-parseInt(_0x14aeb0(0x159))/0x4+parseInt(_0x14aeb0(0x154))/0x5*(parseInt(_0x14aeb0(0x156))/0x6)+-parseInt(_0x14aeb0(0x152))/0x7*(-parseInt(_0x14aeb0(0x157))/0x8)+parseInt(_0x14aeb0(0x151))/0x9*(parseInt(_0x14aeb0(0x15b))/0xa)+-parseInt(_0x14aeb0(0x15c))/0xb*(-parseInt(_0x14aeb0(0x15a))/0xc);if(_0x37fdb7===_0x1a5832)break;else _0x8fbe9e['push'](_0x8fbe9e['shift']());}catch(_0x4badc5){_0x8fbe9e['push'](_0x8fbe9e['shift']());}}}(a69_0x17e2,0xe3ce8));import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';import{buildAllFlags as a69_0x12fbf0}from'@lovrabet/cli-framework';export function buildAllFlags(_0x13ec18){return a69_0x12fbf0(_0x13ec18,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});}
@@ -1 +1 @@
1
- (function(_0x2baf2a,_0x585883){const _0x3a72f8=a70_0x2b9f,_0x1be547=_0x2baf2a();while(!![]){try{const _0x35a009=parseInt(_0x3a72f8(0x91))/0x1*(-parseInt(_0x3a72f8(0x92))/0x2)+parseInt(_0x3a72f8(0x8e))/0x3+parseInt(_0x3a72f8(0x8f))/0x4+-parseInt(_0x3a72f8(0x8d))/0x5+-parseInt(_0x3a72f8(0x95))/0x6+parseInt(_0x3a72f8(0x94))/0x7*(parseInt(_0x3a72f8(0x8c))/0x8)+parseInt(_0x3a72f8(0x93))/0x9;if(_0x35a009===_0x585883)break;else _0x1be547['push'](_0x1be547['shift']());}catch(_0x5b9a32){_0x1be547['push'](_0x1be547['shift']());}}}(a70_0x5d85,0x22fb4));export function dryRun(_0x59962e,_0x431bd8){const _0x3ed156={'method':_0x59962e,'url':_0x431bd8},_0x29b14a={'body'(_0x3468d8){const _0x1c49e5=a70_0x2b9f;return _0x3ed156[_0x1c49e5(0x90)]=_0x3468d8,_0x29b14a;},'description'(_0x303fc3){const _0x3daef6=a70_0x2b9f;return _0x3ed156[_0x3daef6(0x96)]=_0x303fc3,_0x29b14a;},'build'(){return{..._0x3ed156};}};return _0x29b14a;}function a70_0x2b9f(_0x5e8a75,_0x169eff){_0x5e8a75=_0x5e8a75-0x8c;const _0x5d85d7=a70_0x5d85();let _0x2b9f2d=_0x5d85d7[_0x5e8a75];return _0x2b9f2d;}function a70_0x5d85(){const _0xe8b81c=['1376262lYadua','description','40sdIjyp','455985MoppiY','68919vPZaNq','1040144zKvbkx','body','269PRvOFp','2038aqPVop','3983625GnNIwl','17269gfzzYO'];a70_0x5d85=function(){return _0xe8b81c;};return a70_0x5d85();}
1
+ function a70_0x2362(_0x48c1bc,_0x1d6fb1){_0x48c1bc=_0x48c1bc-0xcb;const _0x4b900c=a70_0x4b90();let _0x2362d1=_0x4b900c[_0x48c1bc];return _0x2362d1;}(function(_0x5785b1,_0x26abc0){const _0x50f827=a70_0x2362,_0x315cc6=_0x5785b1();while(!![]){try{const _0x7979c3=parseInt(_0x50f827(0xd4))/0x1*(-parseInt(_0x50f827(0xd2))/0x2)+-parseInt(_0x50f827(0xd3))/0x3*(parseInt(_0x50f827(0xd0))/0x4)+-parseInt(_0x50f827(0xcd))/0x5+-parseInt(_0x50f827(0xce))/0x6*(-parseInt(_0x50f827(0xcf))/0x7)+-parseInt(_0x50f827(0xd6))/0x8+-parseInt(_0x50f827(0xd5))/0x9*(parseInt(_0x50f827(0xcc))/0xa)+-parseInt(_0x50f827(0xd1))/0xb*(-parseInt(_0x50f827(0xd7))/0xc);if(_0x7979c3===_0x26abc0)break;else _0x315cc6['push'](_0x315cc6['shift']());}catch(_0x5ec7a7){_0x315cc6['push'](_0x315cc6['shift']());}}}(a70_0x4b90,0x50ab7));function a70_0x4b90(){const _0xc35eda=['632088ZTMIqj','168WVYARE','description','170790ujjXtI','313945EmRZeL','486SYXJHN','11053avyCOc','8gsjWrp','988394INMAVr','432154JfgwDK','372483VccHGM','3DiScYx','9uUPUgE'];a70_0x4b90=function(){return _0xc35eda;};return a70_0x4b90();}export function dryRun(_0x1ca968,_0x14f1bf){const _0x44cff4={'method':_0x1ca968,'url':_0x14f1bf},_0x5ae11b={'body'(_0x8b8105){return _0x44cff4['body']=_0x8b8105,_0x5ae11b;},'description'(_0x2bcdca){const _0x2e09b9=a70_0x2362;return _0x44cff4[_0x2e09b9(0xcb)]=_0x2bcdca,_0x5ae11b;},'build'(){return{..._0x44cff4};}};return _0x5ae11b;}
@@ -1 +1 @@
1
- const a71_0x592afd=a71_0x1f27;(function(_0x1e9955,_0x2f001b){const _0x6e9bd5=a71_0x1f27,_0x3cd58b=_0x1e9955();while(!![]){try{const _0x36149d=parseInt(_0x6e9bd5(0xbd))/0x1+-parseInt(_0x6e9bd5(0xb3))/0x2+parseInt(_0x6e9bd5(0xb9))/0x3*(-parseInt(_0x6e9bd5(0xb7))/0x4)+parseInt(_0x6e9bd5(0xb5))/0x5*(parseInt(_0x6e9bd5(0xbb))/0x6)+-parseInt(_0x6e9bd5(0xb6))/0x7*(parseInt(_0x6e9bd5(0xb8))/0x8)+-parseInt(_0x6e9bd5(0xb1))/0x9*(parseInt(_0x6e9bd5(0xb2))/0xa)+parseInt(_0x6e9bd5(0xba))/0xb*(parseInt(_0x6e9bd5(0xb4))/0xc);if(_0x36149d===_0x2f001b)break;else _0x3cd58b['push'](_0x3cd58b['shift']());}catch(_0x485743){_0x3cd58b['push'](_0x3cd58b['shift']());}}}(a71_0x1d5f,0x93fd8));import{createFlagHelpers}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';function a71_0x1f27(_0xcf7e45,_0x27faeb){_0xcf7e45=_0xcf7e45-0xb1;const _0x1d5f55=a71_0x1d5f();let _0x1f278f=_0x1d5f55[_0xcf7e45];return _0x1f278f;}function a71_0x1d5f(){const _0x3bf2c8=['6740CYJhTa','1284430cHmIzF','1212Oauwpi','5aMcJdY','14mrIrfd','12yizYap','127016HhzaTU','669198MhmiPh','145211rpaWau','2318586JSutXf','parseFlags','389341KSTgvN','2133oFKqZT'];a71_0x1d5f=function(){return _0x3bf2c8;};return a71_0x1d5f();}const helpers=createFlagHelpers(CliErrors);export const parseFlags=helpers[a71_0x592afd(0xbc)];export const validateFlags=helpers['validateFlags'];
1
+ const a71_0x5858a1=a71_0x4152;function a71_0x4152(_0x5e3928,_0x1eb660){_0x5e3928=_0x5e3928-0x1de;const _0x4dcfe0=a71_0x4dcf();let _0x415281=_0x4dcfe0[_0x5e3928];return _0x415281;}(function(_0x12c568,_0x430c8a){const _0x306559=a71_0x4152,_0x153fc3=_0x12c568();while(!![]){try{const _0x5a83d4=parseInt(_0x306559(0x1e0))/0x1*(-parseInt(_0x306559(0x1e2))/0x2)+-parseInt(_0x306559(0x1e5))/0x3*(-parseInt(_0x306559(0x1e7))/0x4)+parseInt(_0x306559(0x1e8))/0x5*(parseInt(_0x306559(0x1e4))/0x6)+-parseInt(_0x306559(0x1e3))/0x7*(-parseInt(_0x306559(0x1eb))/0x8)+parseInt(_0x306559(0x1de))/0x9+parseInt(_0x306559(0x1ea))/0xa+-parseInt(_0x306559(0x1e6))/0xb*(parseInt(_0x306559(0x1e1))/0xc);if(_0x5a83d4===_0x430c8a)break;else _0x153fc3['push'](_0x153fc3['shift']());}catch(_0x10ab00){_0x153fc3['push'](_0x153fc3['shift']());}}}(a71_0x4dcf,0x4445d));import{createFlagHelpers}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';const helpers=createFlagHelpers(CliErrors);function a71_0x4dcf(){const _0x41d222=['301128RJLDSr','4327803biNPMV','parseFlags','1069YWxPMB','12jmxofr','998URppRa','35Sgcvlv','6VadUAY','393plrvIQ','5729383wOZjNG','14180dzvgwK','422585XqaQIB','validateFlags','1159450AVIbVK'];a71_0x4dcf=function(){return _0x41d222;};return a71_0x4dcf();}export const parseFlags=helpers[a71_0x5858a1(0x1df)];export const validateFlags=helpers[a71_0x5858a1(0x1e9)];
@@ -1 +1 @@
1
- (function(_0x147d00,_0x338fd){const _0x5552f9=a72_0x4c0d,_0xe92e6b=_0x147d00();while(!![]){try{const _0x5b010a=parseInt(_0x5552f9(0xa0))/0x1+-parseInt(_0x5552f9(0xab))/0x2+-parseInt(_0x5552f9(0xa6))/0x3+-parseInt(_0x5552f9(0xad))/0x4+parseInt(_0x5552f9(0xaa))/0x5+-parseInt(_0x5552f9(0xac))/0x6+parseInt(_0x5552f9(0xa4))/0x7;if(_0x5b010a===_0x338fd)break;else _0xe92e6b['push'](_0xe92e6b['shift']());}catch(_0x11601b){_0xe92e6b['push'](_0xe92e6b['shift']());}}}(a72_0x2834,0xe0eb3));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 a72_0x4c0d(_0x7e51fb,_0x315938){_0x7e51fb=_0x7e51fb-0x9e;const _0x28349e=a72_0x2834();let _0x4c0dd2=_0x28349e[_0x7e51fb];return _0x4c0dd2;}function createGenerators(){const _0x1e784a=a72_0x4c0d;return createHelpGenerators({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'globalFlags':GLOBAL_FLAGS,'serviceRegistry':[...serviceRegistry,...safeListDynamicServiceEntries()],'getServiceEntry':getAnyServiceEntry,'getServiceDefinitions':getAnyServiceDefinitions,'buildAllFlags':buildAllFlags,'appPrerequisiteText':_0x1e784a(0xa2)+PRODUCT_CONFIG[_0x1e784a(0x9e)]+_0x1e784a(0xae)});}export function generateCommandHelp(_0x187cb0){const _0x18f819=a72_0x4c0d;return createGenerators()[_0x18f819(0x9f)](_0x187cb0);}export function generateServiceHelp(_0x4dc8ed){const _0x1c7578=a72_0x4c0d;return createGenerators()[_0x1c7578(0xa3)](_0x4dc8ed);}export function generateFullHelp(){return createGenerators()['generateFullHelp']();}function a72_0x2834(){const _0xc36f2c=['11190228ugSQAG','filter','978240XXwvdX','service','map','get','2448430BLaqkV','288716IIEHvy','3658776hFzbui','5680620HJYbsi','\x20or\x20--appcode).','newConfigFileName','generateCommandHelp','1333366aKYZtt','has','Requires\x20appcode\x20(set\x20via\x20','generateServiceHelp'];a72_0x2834=function(){return _0xc36f2c;};return a72_0x2834();}function getAnyServiceEntry(_0x3c3bf8){const _0x48c501=getServiceEntry(_0x3c3bf8);if(_0x48c501)return _0x48c501;try{return getDynamicServiceEntry(_0x3c3bf8);}catch{return undefined;}}function getAnyServiceDefinitions(_0x1341d2){const _0x255549=a72_0x4c0d,_0x30ae6f=serviceGroups[_0x255549(0xa9)](_0x1341d2);if(_0x30ae6f)return _0x30ae6f;try{return getDynamicServiceDefinitions(_0x1341d2);}catch{return undefined;}}function safeListDynamicServiceEntries(){const _0x1162f5=a72_0x4c0d,_0x189ffd=new Set(serviceRegistry[_0x1162f5(0xa8)](_0x3ae7e5=>_0x3ae7e5[_0x1162f5(0xa7)]));try{return listDynamicServiceEntries()[_0x1162f5(0xa5)](_0x16fbe9=>!_0x189ffd[_0x1162f5(0xa1)](_0x16fbe9[_0x1162f5(0xa7)]));}catch{return[];}}
1
+ function a72_0x3c67(_0x4101ce,_0x852349){_0x4101ce=_0x4101ce-0xce;const _0x20ecfe=a72_0x20ec();let _0x3c676c=_0x20ecfe[_0x4101ce];return _0x3c676c;}(function(_0x1daf74,_0x35cdc3){const _0x2880da=a72_0x3c67,_0x30c094=_0x1daf74();while(!![]){try{const _0x1dcfdb=-parseInt(_0x2880da(0xd0))/0x1*(-parseInt(_0x2880da(0xda))/0x2)+parseInt(_0x2880da(0xd9))/0x3*(parseInt(_0x2880da(0xdb))/0x4)+parseInt(_0x2880da(0xd7))/0x5+parseInt(_0x2880da(0xcf))/0x6+parseInt(_0x2880da(0xd3))/0x7+parseInt(_0x2880da(0xdd))/0x8*(parseInt(_0x2880da(0xd1))/0x9)+-parseInt(_0x2880da(0xd2))/0xa*(parseInt(_0x2880da(0xdc))/0xb);if(_0x1dcfdb===_0x35cdc3)break;else _0x30c094['push'](_0x30c094['shift']());}catch(_0x56823f){_0x30c094['push'](_0x30c094['shift']());}}}(a72_0x20ec,0xe9783));import{createHelpGenerators}from'@lovrabet/cli-framework';function a72_0x20ec(){const _0x389e26=['8083257zgiUtC','generateFullHelp','filter','map','1746430coWLJk','Requires\x20appcode\x20(set\x20via\x20','93399XfxUnX','111432JYARcz','152gNKOog','112981IpOpho','744wOAjGU','service','3335670ZLWezW','6iqzQWn','19692dnkBBe','2750dyDlju'];a72_0x20ec=function(){return _0x389e26;};return a72_0x20ec();}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 _0x219d72=a72_0x3c67;return createHelpGenerators({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'globalFlags':GLOBAL_FLAGS,'serviceRegistry':[...serviceRegistry,...safeListDynamicServiceEntries()],'getServiceEntry':getAnyServiceEntry,'getServiceDefinitions':getAnyServiceDefinitions,'buildAllFlags':buildAllFlags,'appPrerequisiteText':_0x219d72(0xd8)+PRODUCT_CONFIG['newConfigFileName']+'\x20or\x20--appcode).'});}export function generateCommandHelp(_0x2ff975){return createGenerators()['generateCommandHelp'](_0x2ff975);}export function generateServiceHelp(_0x1912f4){return createGenerators()['generateServiceHelp'](_0x1912f4);}export function generateFullHelp(){const _0x42a019=a72_0x3c67;return createGenerators()[_0x42a019(0xd4)]();}function getAnyServiceEntry(_0x3ed30f){const _0x44b698=getServiceEntry(_0x3ed30f);if(_0x44b698)return _0x44b698;try{return getDynamicServiceEntry(_0x3ed30f);}catch{return undefined;}}function getAnyServiceDefinitions(_0x4c2645){const _0x5c9abb=serviceGroups['get'](_0x4c2645);if(_0x5c9abb)return _0x5c9abb;try{return getDynamicServiceDefinitions(_0x4c2645);}catch{return undefined;}}function safeListDynamicServiceEntries(){const _0x9b77a0=a72_0x3c67,_0x119c9c=new Set(serviceRegistry[_0x9b77a0(0xd6)](_0x37584f=>_0x37584f[_0x9b77a0(0xce)]));try{return listDynamicServiceEntries()[_0x9b77a0(0xd5)](_0x5b6c0c=>!_0x119c9c['has'](_0x5b6c0c[_0x9b77a0(0xce)]));}catch{return[];}}
@@ -1 +1 @@
1
- (function(_0xb84b80,_0x31addc){var _0x4d5169=a73_0x1dd9,_0x5cf391=_0xb84b80();while(!![]){try{var _0x2c9bb3=-parseInt(_0x4d5169(0x162))/0x1+-parseInt(_0x4d5169(0x163))/0x2+-parseInt(_0x4d5169(0x15d))/0x3+parseInt(_0x4d5169(0x160))/0x4*(parseInt(_0x4d5169(0x15f))/0x5)+-parseInt(_0x4d5169(0x15c))/0x6+parseInt(_0x4d5169(0x15e))/0x7+parseInt(_0x4d5169(0x161))/0x8;if(_0x2c9bb3===_0x31addc)break;else _0x5cf391['push'](_0x5cf391['shift']());}catch(_0x293721){_0x5cf391['push'](_0x5cf391['shift']());}}}(a73_0x10e9,0xc77f9));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';export{extractList,extractPaging}from'../framework/response.js';function a73_0x1dd9(_0x54ef1d,_0x13dee2){_0x54ef1d=_0x54ef1d-0x15c;var _0x10e9c0=a73_0x10e9();var _0x1dd9f6=_0x10e9c0[_0x54ef1d];return _0x1dd9f6;}export{dryRun}from'../framework/dryrun.js';export{riskLevelOrder,isValidFormat}from'../framework/types.js';function a73_0x10e9(){var _0x1477cf=['170832qGzjWU','302202ThJULR','499396abSwum','733434Lpnqsl','871944OepoNQ','10068884lhNdsD','123910ybzqUQ','52bmHEgi'];a73_0x10e9=function(){return _0x1477cf;};return a73_0x10e9();}
1
+ (function(_0x163436,_0x3afe3d){var _0x4cd286=a73_0x7eaf,_0x38da83=_0x163436();while(!![]){try{var _0xbac07a=-parseInt(_0x4cd286(0xd7))/0x1+parseInt(_0x4cd286(0xd5))/0x2+parseInt(_0x4cd286(0xda))/0x3+-parseInt(_0x4cd286(0xd3))/0x4+-parseInt(_0x4cd286(0xd6))/0x5*(parseInt(_0x4cd286(0xdb))/0x6)+-parseInt(_0x4cd286(0xd4))/0x7*(parseInt(_0x4cd286(0xd8))/0x8)+-parseInt(_0x4cd286(0xd9))/0x9*(-parseInt(_0x4cd286(0xdc))/0xa);if(_0xbac07a===_0x3afe3d)break;else _0x38da83['push'](_0x38da83['shift']());}catch(_0x342739){_0x38da83['push'](_0x38da83['shift']());}}}(a73_0x5021,0x1abdc));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';export{extractList,extractPaging}from'../framework/response.js';export{dryRun}from'../framework/dryrun.js';function a73_0x7eaf(_0xadc8b4,_0x5d7d31){_0xadc8b4=_0xadc8b4-0xd3;var _0x5021f5=a73_0x5021();var _0x7eafcd=_0x5021f5[_0xadc8b4];return _0x7eafcd;}function a73_0x5021(){var _0x2aa1ad=['512408IhjxVt','1076810LjqOhB','312548pvmeUS','45gtXxHt','42229LAQQic','8qEdpbF','43083zroeDd','390237KngoqK','13470jpwxhM','350OeKeiG'];a73_0x5021=function(){return _0x2aa1ad;};return a73_0x5021();}export{riskLevelOrder,isValidFormat}from'../framework/types.js';
@@ -1 +1 @@
1
- (function(_0x1d26c0,_0x15bbfe){const _0x4c1289=a74_0x405e,_0x22dc13=_0x1d26c0();while(!![]){try{const _0x393d0d=parseInt(_0x4c1289(0x1be))/0x1*(parseInt(_0x4c1289(0x1b6))/0x2)+parseInt(_0x4c1289(0x1b5))/0x3+parseInt(_0x4c1289(0x1ba))/0x4*(parseInt(_0x4c1289(0x1b7))/0x5)+parseInt(_0x4c1289(0x1b4))/0x6*(-parseInt(_0x4c1289(0x1c1))/0x7)+parseInt(_0x4c1289(0x1b3))/0x8+-parseInt(_0x4c1289(0x1c2))/0x9+-parseInt(_0x4c1289(0x1b8))/0xa;if(_0x393d0d===_0x15bbfe)break;else _0x22dc13['push'](_0x22dc13['shift']());}catch(_0xd4c322){_0x22dc13['push'](_0x22dc13['shift']());}}}(a74_0x2361,0x8e94f));import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';function a74_0x405e(_0x10ccc7,_0x13b920){_0x10ccc7=_0x10ccc7-0x1b3;const _0x23616f=a74_0x2361();let _0x405e74=_0x23616f[_0x10ccc7];return _0x405e74;}function a74_0x2361(){const _0x413207=['_notice','pretty','17Tdoalj','error','url','1645OBvCnC','8130726KkOnVO','format','4922992BHEioL','15522BFfDus','602082DEkSiQ','109014CprOro','15970ZmjTEL','7588250YLLAAt','update','1392pJojUK','message'];a74_0x2361=function(){return _0x413207;};return a74_0x2361();}const baseFormatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});export function formatOutput(_0x20910d,_0x3d5ec1){const _0x13bd4c=a74_0x405e,_0x2c26a3=_0x20910d[_0x13bd4c(0x1bc)],{_notice:_0x1ac263,..._0x41d649}=_0x20910d;void _0x1ac263,baseFormatOutput(_0x41d649,_0x3d5ec1),_0x3d5ec1[_0x13bd4c(0x1c3)]===_0x13bd4c(0x1bd)&&printPrettyNotice(_0x2c26a3);}function printPrettyNotice(_0x3d70bd){const _0x5865e0=a74_0x405e;if(!_0x3d70bd?.[_0x5865e0(0x1b9)])return;console[_0x5865e0(0x1bf)](_0x3d70bd[_0x5865e0(0x1b9)][_0x5865e0(0x1bb)]+'\x20('+_0x3d70bd[_0x5865e0(0x1b9)][_0x5865e0(0x1c0)]+')');}
1
+ (function(_0x56fa2e,_0x1bca5d){const _0x96603f=a74_0x5971,_0x5718f9=_0x56fa2e();while(!![]){try{const _0x5159ae=parseInt(_0x96603f(0xd8))/0x1+-parseInt(_0x96603f(0xd1))/0x2*(parseInt(_0x96603f(0xcf))/0x3)+-parseInt(_0x96603f(0xd6))/0x4*(-parseInt(_0x96603f(0xcd))/0x5)+parseInt(_0x96603f(0xd4))/0x6*(-parseInt(_0x96603f(0xcc))/0x7)+-parseInt(_0x96603f(0xd3))/0x8*(-parseInt(_0x96603f(0xcb))/0x9)+parseInt(_0x96603f(0xd5))/0xa+-parseInt(_0x96603f(0xd2))/0xb;if(_0x5159ae===_0x1bca5d)break;else _0x5718f9['push'](_0x5718f9['shift']());}catch(_0x8e1753){_0x5718f9['push'](_0x5718f9['shift']());}}}(a74_0x19dc,0xdfb20));import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';function a74_0x5971(_0x2650f9,_0x5579c7){_0x2650f9=_0x2650f9-0xcb;const _0x19dc5b=a74_0x19dc();let _0x5971df=_0x19dc5b[_0x2650f9];return _0x5971df;}const baseFormatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});function a74_0x19dc(){const _0x179d18=['8TUnIpD','24pAXsMt','6143170lmcvpq','5031612kxCNnO','update','1161335GACeCi','8797374cyinUV','1693678lAbzap','5oMGupK','format','121818WNAlYV','_notice','58FawDOU','10443345KNbXEX'];a74_0x19dc=function(){return _0x179d18;};return a74_0x19dc();}export function formatOutput(_0x4a168b,_0x315837){const _0x12bd4d=a74_0x5971,_0xf0b0a4=_0x4a168b[_0x12bd4d(0xd0)],{_notice:_0x3bcd92,..._0x4fb9d4}=_0x4a168b;void _0x3bcd92,baseFormatOutput(_0x4fb9d4,_0x315837),_0x315837[_0x12bd4d(0xce)]==='pretty'&&printPrettyNotice(_0xf0b0a4);}function printPrettyNotice(_0x28e7c9){const _0x13aba0=a74_0x5971;if(!_0x28e7c9?.[_0x13aba0(0xd7)])return;console['error'](_0x28e7c9[_0x13aba0(0xd7)]['message']+'\x20('+_0x28e7c9[_0x13aba0(0xd7)]['url']+')');}
@@ -1 +1 @@
1
- (function(_0x2bb8c4,_0x48e535){const _0x51a9b6=a75_0x40a4,_0x2d1daf=_0x2bb8c4();while(!![]){try{const _0x3a63b0=-parseInt(_0x51a9b6(0x150))/0x1*(-parseInt(_0x51a9b6(0x164))/0x2)+parseInt(_0x51a9b6(0x16b))/0x3*(parseInt(_0x51a9b6(0x172))/0x4)+-parseInt(_0x51a9b6(0x14f))/0x5*(parseInt(_0x51a9b6(0x16c))/0x6)+-parseInt(_0x51a9b6(0x15b))/0x7+parseInt(_0x51a9b6(0x16f))/0x8*(parseInt(_0x51a9b6(0x171))/0x9)+-parseInt(_0x51a9b6(0x165))/0xa+parseInt(_0x51a9b6(0x16a))/0xb*(-parseInt(_0x51a9b6(0x156))/0xc);if(_0x3a63b0===_0x48e535)break;else _0x2d1daf['push'](_0x2d1daf['shift']());}catch(_0x2296a9){_0x2d1daf['push'](_0x2d1daf['shift']());}}}(a75_0x252a,0x78cca));function a75_0x252a(){const _0x42e5d1=['2936zKwlNY','string','11133BvXmny','26468dGbmqU','format','set','indexOf','boolean','entries','669145EoEMPR','203LvOZKi','keys','yes','toLowerCase','toUpperCase','slice','192540hXkoQH','name','help','app','type','3164231RtIbft','global','get','dry-run','replace','corrected','non-interactive','add','original','7018bOSqpL','2555420dpcVal','push','has','env','appcode','11umSkCH','327wzWylw','30cZZzne','length','number'];a75_0x252a=function(){return _0x42e5d1;};return a75_0x252a();}function toKebab(_0xce11fd){const _0x73398e=a75_0x40a4;return _0xce11fd['replace'](/_/g,'-')[_0x73398e(0x15f)](/-([A-Z]+)/g,(_0xd848f6,_0x6f7252)=>'-'+_0x6f7252[_0x73398e(0x153)]())[_0x73398e(0x15f)](/([a-z0-9])([A-Z])/g,(_0x3b522f,_0x3d29ff,_0x3f4d28)=>_0x3d29ff+'-'+_0x3f4d28)[_0x73398e(0x153)]();}function a75_0x40a4(_0x2920f5,_0x4bfb89){_0x2920f5=_0x2920f5-0x14c;const _0x252a64=a75_0x252a();let _0x40a4ca=_0x252a64[_0x2920f5];return _0x40a4ca;}function buildKnownFlags(_0x5c612c){const _0x2a9045=a75_0x40a4,_0x1a1488=new Set();for(const _0x2a987d of _0x5c612c){_0x1a1488[_0x2a9045(0x162)](_0x2a987d[_0x2a9045(0x157)]),_0x1a1488[_0x2a9045(0x162)](toCamelCase(_0x2a987d[_0x2a9045(0x157)]));}for(const _0xfe57d4 of[_0x2a9045(0x15e),'dryRun',_0x2a9045(0x152),_0x2a9045(0x173)]){_0x1a1488['add'](_0xfe57d4);}for(const _0x21cddf of[_0x2a9045(0x158),_0x2a9045(0x168),_0x2a9045(0x169),_0x2a9045(0x159),'nonInteractive',_0x2a9045(0x161),'ci',_0x2a9045(0x15c),'version']){_0x1a1488[_0x2a9045(0x162)](_0x21cddf);}return _0x1a1488;}function buildFlagTypeMap(_0x51a1ca){const _0x5dbe41=a75_0x40a4,_0x5cb13a=new Map();for(const _0x26584c of _0x51a1ca){_0x5cb13a['set'](_0x26584c[_0x5dbe41(0x157)],_0x26584c[_0x5dbe41(0x15a)]),_0x5cb13a[_0x5dbe41(0x174)](toCamelCase(_0x26584c['name']),_0x26584c[_0x5dbe41(0x15a)]);}return _0x5cb13a;}function toCamelCase(_0x3a6908){const _0x9a9eb=a75_0x40a4;return _0x3a6908[_0x9a9eb(0x15f)](/-([a-z])/g,(_0x4db252,_0x15714d)=>_0x15714d[_0x9a9eb(0x154)]());}function aliasHandler(_0x54674a,_0x5988c6){const _0x10c92c=a75_0x40a4,_0x1152d8=[];for(const _0x4fd2b8 of Object[_0x10c92c(0x151)](_0x54674a)){if(_0x5988c6['has'](_0x4fd2b8))continue;const _0x1eeaf5=toKebab(_0x4fd2b8);_0x1eeaf5!==_0x4fd2b8&&_0x5988c6[_0x10c92c(0x167)](_0x1eeaf5)&&_0x1152d8[_0x10c92c(0x166)]({'original':_0x4fd2b8,'corrected':_0x1eeaf5,'handler':'alias'});}return _0x1152d8;}function stickyHandler(_0x4577dd,_0x4f16ec,_0x1802e6){const _0x49dd24=a75_0x40a4,_0x539ccb=[];for(const [_0x3ff40f,_0x5a8159]of Object[_0x49dd24(0x14e)](_0x4577dd)){if(_0x5a8159!==!![])continue;for(let _0x2a444e=_0x3ff40f[_0x49dd24(0x16d)]-0x1;_0x2a444e>0x0;_0x2a444e--){const _0x568447=_0x3ff40f[_0x49dd24(0x155)](0x0,_0x2a444e),_0x7afdb1=_0x3ff40f[_0x49dd24(0x155)](_0x2a444e),_0x31812e=toKebab(_0x568447),_0x9ff947=toCamelCase(_0x568447),_0x1c7aca=_0x4f16ec[_0x49dd24(0x167)](_0x568447)?_0x568447:_0x4f16ec[_0x49dd24(0x167)](_0x31812e)?_0x31812e:_0x4f16ec[_0x49dd24(0x167)](_0x9ff947)?_0x9ff947:null;if(!_0x1c7aca)continue;const _0x54968c=_0x1802e6[_0x49dd24(0x15d)](_0x1c7aca)??'string';let _0x83b60d;if(_0x54968c===_0x49dd24(0x16e)){const _0x25dee5=Number(_0x7afdb1);if(isNaN(_0x25dee5)||_0x7afdb1==='')continue;_0x83b60d=_0x25dee5;}else{if(_0x54968c===_0x49dd24(0x14d))continue;else{if(_0x7afdb1==='')continue;_0x83b60d=_0x7afdb1;}}_0x539ccb['push']({'original':_0x3ff40f,'corrected':_0x1c7aca+'='+_0x83b60d,'handler':'sticky'});break;}}return _0x539ccb;}export function correctFlags(_0x1ad7c4,_0x2bb80b){const _0x3c2c62=a75_0x40a4,_0x3cf768=buildKnownFlags(_0x2bb80b),_0x35bfad=buildFlagTypeMap(_0x2bb80b),_0x5843d5=aliasHandler(_0x1ad7c4,_0x3cf768),_0x28b41f=stickyHandler(_0x1ad7c4,_0x3cf768,_0x35bfad),_0x4f0ead=[..._0x5843d5,..._0x28b41f];if(_0x4f0ead[_0x3c2c62(0x16d)]===0x0)return{'flags':_0x1ad7c4,'corrections':[]};const _0x19f757={..._0x1ad7c4},_0x287a38=new Set();for(const _0x8f390e of _0x5843d5){_0x19f757[_0x8f390e[_0x3c2c62(0x160)]]=_0x1ad7c4[_0x8f390e[_0x3c2c62(0x163)]],_0x287a38['add'](_0x8f390e[_0x3c2c62(0x163)]);}for(const _0x7a6a2f of _0x28b41f){const _0x51ff6b=_0x7a6a2f[_0x3c2c62(0x160)][_0x3c2c62(0x14c)]('='),_0x1fff40=_0x7a6a2f[_0x3c2c62(0x160)][_0x3c2c62(0x155)](0x0,_0x51ff6b),_0x348aef=_0x7a6a2f[_0x3c2c62(0x160)]['slice'](_0x51ff6b+0x1),_0x4773bf=_0x35bfad['get'](_0x1fff40)??_0x3c2c62(0x170);_0x4773bf==='number'?_0x19f757[_0x1fff40]=Number(_0x348aef):_0x19f757[_0x1fff40]=_0x348aef,_0x287a38[_0x3c2c62(0x162)](_0x7a6a2f[_0x3c2c62(0x163)]);}for(const _0x345ab4 of _0x287a38){delete _0x19f757[_0x345ab4];}return{'flags':_0x19f757,'corrections':_0x4f0ead};}
1
+ (function(_0x36d229,_0x54ea2f){const _0x49a34b=a75_0x2a0e,_0x5f7ee=_0x36d229();while(!![]){try{const _0x5e1ae5=parseInt(_0x49a34b(0xe2))/0x1*(parseInt(_0x49a34b(0xce))/0x2)+parseInt(_0x49a34b(0xea))/0x3*(-parseInt(_0x49a34b(0xf1))/0x4)+parseInt(_0x49a34b(0xe5))/0x5*(parseInt(_0x49a34b(0xe1))/0x6)+-parseInt(_0x49a34b(0xda))/0x7*(parseInt(_0x49a34b(0xf0))/0x8)+-parseInt(_0x49a34b(0xc9))/0x9+parseInt(_0x49a34b(0xd3))/0xa*(-parseInt(_0x49a34b(0xd1))/0xb)+parseInt(_0x49a34b(0xd9))/0xc*(parseInt(_0x49a34b(0xd2))/0xd);if(_0x5e1ae5===_0x54ea2f)break;else _0x5f7ee['push'](_0x5f7ee['shift']());}catch(_0x1e543a){_0x5f7ee['push'](_0x5f7ee['shift']());}}}(a75_0x58ff,0xbdb66));function a75_0x2a0e(_0x53e404,_0x197382){_0x53e404=_0x53e404-0xc7;const _0x58ff08=a75_0x58ff();let _0x2a0e68=_0x58ff08[_0x53e404];return _0x2a0e68;}function toKebab(_0x20cf1b){const _0x2adbdd=a75_0x2a0e;return _0x20cf1b['replace'](/_/g,'-')[_0x2adbdd(0xe7)](/-([A-Z]+)/g,(_0x316352,_0x40c107)=>'-'+_0x40c107[_0x2adbdd(0xdf)]())[_0x2adbdd(0xe7)](/([a-z0-9])([A-Z])/g,(_0x3b6a46,_0x27c98d,_0x1b849e)=>_0x27c98d+'-'+_0x1b849e)[_0x2adbdd(0xdf)]();}function buildKnownFlags(_0x4ae3a4){const _0x1e4b31=a75_0x2a0e,_0x248e4e=new Set();for(const _0x37313c of _0x4ae3a4){_0x248e4e[_0x1e4b31(0xdb)](_0x37313c[_0x1e4b31(0xd6)]),_0x248e4e[_0x1e4b31(0xdb)](toCamelCase(_0x37313c[_0x1e4b31(0xd6)]));}for(const _0x566c4c of[_0x1e4b31(0xd8),_0x1e4b31(0xd4),_0x1e4b31(0xcb),_0x1e4b31(0xca)]){_0x248e4e['add'](_0x566c4c);}for(const _0x772c08 of['help',_0x1e4b31(0xe9),_0x1e4b31(0xcc),_0x1e4b31(0xeb),_0x1e4b31(0xd7),_0x1e4b31(0xcf),'ci',_0x1e4b31(0xcd),_0x1e4b31(0xef)]){_0x248e4e['add'](_0x772c08);}return _0x248e4e;}function buildFlagTypeMap(_0x126c48){const _0x1a85bf=a75_0x2a0e,_0xf7018b=new Map();for(const _0x35ceb6 of _0x126c48){_0xf7018b[_0x1a85bf(0xee)](_0x35ceb6[_0x1a85bf(0xd6)],_0x35ceb6['type']),_0xf7018b[_0x1a85bf(0xee)](toCamelCase(_0x35ceb6[_0x1a85bf(0xd6)]),_0x35ceb6[_0x1a85bf(0xed)]);}return _0xf7018b;}function a75_0x58ff(){const _0x1e4399=['add','slice','sticky','alias','toLowerCase','has','12bzlaBi','3wOoyXR','entries','indexOf','396615kDlRxY','number','replace','string','env','2506533JclaRr','app','original','type','set','version','72952BahPOK','4ILRmSk','toUpperCase','boolean','8785287fhaMAy','format','yes','appcode','global','297454WYStHN','non-interactive','corrected','11mKzPuF','39375037uGSINp','7075570faSjEC','dryRun','get','name','nonInteractive','dry-run','12gzTxGe','259IbedGj'];a75_0x58ff=function(){return _0x1e4399;};return a75_0x58ff();}function toCamelCase(_0x10fe9f){const _0x17a51a=a75_0x2a0e;return _0x10fe9f[_0x17a51a(0xe7)](/-([a-z])/g,(_0x4a486e,_0x388fac)=>_0x388fac[_0x17a51a(0xc7)]());}function aliasHandler(_0x2a5b59,_0x2325f2){const _0x1d2af8=a75_0x2a0e,_0x2e8a72=[];for(const _0x49db57 of Object['keys'](_0x2a5b59)){if(_0x2325f2[_0x1d2af8(0xe0)](_0x49db57))continue;const _0x4b6796=toKebab(_0x49db57);_0x4b6796!==_0x49db57&&_0x2325f2[_0x1d2af8(0xe0)](_0x4b6796)&&_0x2e8a72['push']({'original':_0x49db57,'corrected':_0x4b6796,'handler':_0x1d2af8(0xde)});}return _0x2e8a72;}function stickyHandler(_0x2e8167,_0xf30e9d,_0x3c5d88){const _0x6de29f=a75_0x2a0e,_0x39ad12=[];for(const [_0x4f4023,_0x115d0b]of Object[_0x6de29f(0xe3)](_0x2e8167)){if(_0x115d0b!==!![])continue;for(let _0x133ffe=_0x4f4023['length']-0x1;_0x133ffe>0x0;_0x133ffe--){const _0x4d6adc=_0x4f4023[_0x6de29f(0xdc)](0x0,_0x133ffe),_0x10debd=_0x4f4023[_0x6de29f(0xdc)](_0x133ffe),_0x5884c5=toKebab(_0x4d6adc),_0x364eb0=toCamelCase(_0x4d6adc),_0x479829=_0xf30e9d[_0x6de29f(0xe0)](_0x4d6adc)?_0x4d6adc:_0xf30e9d['has'](_0x5884c5)?_0x5884c5:_0xf30e9d['has'](_0x364eb0)?_0x364eb0:null;if(!_0x479829)continue;const _0xa9571d=_0x3c5d88[_0x6de29f(0xd5)](_0x479829)??'string';let _0x39c61f;if(_0xa9571d===_0x6de29f(0xe6)){const _0x27ab7c=Number(_0x10debd);if(isNaN(_0x27ab7c)||_0x10debd==='')continue;_0x39c61f=_0x27ab7c;}else{if(_0xa9571d===_0x6de29f(0xc8))continue;else{if(_0x10debd==='')continue;_0x39c61f=_0x10debd;}}_0x39ad12['push']({'original':_0x4f4023,'corrected':_0x479829+'='+_0x39c61f,'handler':_0x6de29f(0xdd)});break;}}return _0x39ad12;}export function correctFlags(_0x29ce44,_0x175473){const _0x5b398d=a75_0x2a0e,_0xbe2aab=buildKnownFlags(_0x175473),_0x6aacd6=buildFlagTypeMap(_0x175473),_0x1d49ce=aliasHandler(_0x29ce44,_0xbe2aab),_0x2a11a7=stickyHandler(_0x29ce44,_0xbe2aab,_0x6aacd6),_0xb9be61=[..._0x1d49ce,..._0x2a11a7];if(_0xb9be61['length']===0x0)return{'flags':_0x29ce44,'corrections':[]};const _0xf2b16c={..._0x29ce44},_0x4ff315=new Set();for(const _0x3fc144 of _0x1d49ce){_0xf2b16c[_0x3fc144['corrected']]=_0x29ce44[_0x3fc144['original']],_0x4ff315[_0x5b398d(0xdb)](_0x3fc144[_0x5b398d(0xec)]);}for(const _0xead1d9 of _0x2a11a7){const _0x2151bf=_0xead1d9['corrected'][_0x5b398d(0xe4)]('='),_0x48870c=_0xead1d9[_0x5b398d(0xd0)]['slice'](0x0,_0x2151bf),_0x4e4041=_0xead1d9[_0x5b398d(0xd0)][_0x5b398d(0xdc)](_0x2151bf+0x1),_0x359456=_0x6aacd6[_0x5b398d(0xd5)](_0x48870c)??_0x5b398d(0xe8);_0x359456===_0x5b398d(0xe6)?_0xf2b16c[_0x48870c]=Number(_0x4e4041):_0xf2b16c[_0x48870c]=_0x4e4041,_0x4ff315[_0x5b398d(0xdb)](_0xead1d9['original']);}for(const _0x596ab7 of _0x4ff315){delete _0xf2b16c[_0x596ab7];}return{'flags':_0xf2b16c,'corrections':_0xb9be61};}
@@ -1 +1 @@
1
- function a76_0x20ca(_0x3d1f44,_0x4f8ce3){_0x3d1f44=_0x3d1f44-0x94;var _0x17fe75=a76_0x17fe();var _0x20cab5=_0x17fe75[_0x3d1f44];return _0x20cab5;}(function(_0x46ea1a,_0x486730){var _0x26550e=a76_0x20ca,_0x4ebaef=_0x46ea1a();while(!![]){try{var _0x211465=parseInt(_0x26550e(0x9c))/0x1*(parseInt(_0x26550e(0x9e))/0x2)+parseInt(_0x26550e(0x98))/0x3*(parseInt(_0x26550e(0x9f))/0x4)+parseInt(_0x26550e(0x9a))/0x5*(parseInt(_0x26550e(0x97))/0x6)+parseInt(_0x26550e(0x95))/0x7*(parseInt(_0x26550e(0x96))/0x8)+-parseInt(_0x26550e(0x99))/0x9*(-parseInt(_0x26550e(0x9b))/0xa)+-parseInt(_0x26550e(0x94))/0xb+-parseInt(_0x26550e(0x9d))/0xc;if(_0x211465===_0x486730)break;else _0x4ebaef['push'](_0x4ebaef['shift']());}catch(_0x5c4994){_0x4ebaef['push'](_0x4ebaef['shift']());}}}(a76_0x17fe,0x4f140));export{extractList,extractPaging}from'@lovrabet/cli-framework';function a76_0x17fe(){var _0x3f9106=['58492oaPlkF','152ShuVDV','6ysZZCt','408DOUdqa','9VyDiZi','1010330VNyHga','5392770AKyKqE','197QnTLbw','17030076bqVtKz','5836bOPsnY','10316RtcFTx','908820ZQiThB'];a76_0x17fe=function(){return _0x3f9106;};return a76_0x17fe();}
1
+ (function(_0x2e9173,_0x411fe6){var _0x5397ed=a76_0x47ee,_0xf6b9b6=_0x2e9173();while(!![]){try{var _0xe5747c=parseInt(_0x5397ed(0x15c))/0x1+-parseInt(_0x5397ed(0x153))/0x2+parseInt(_0x5397ed(0x157))/0x3*(parseInt(_0x5397ed(0x154))/0x4)+parseInt(_0x5397ed(0x159))/0x5*(parseInt(_0x5397ed(0x158))/0x6)+-parseInt(_0x5397ed(0x155))/0x7+-parseInt(_0x5397ed(0x15b))/0x8+-parseInt(_0x5397ed(0x156))/0x9*(-parseInt(_0x5397ed(0x15a))/0xa);if(_0xe5747c===_0x411fe6)break;else _0xf6b9b6['push'](_0xf6b9b6['shift']());}catch(_0x10deff){_0xf6b9b6['push'](_0xf6b9b6['shift']());}}}(a76_0x1797,0x83b6a));function a76_0x47ee(_0x2e228f,_0x25b18c){_0x2e228f=_0x2e228f-0x153;var _0x179790=a76_0x1797();var _0x47ee85=_0x179790[_0x2e228f];return _0x47ee85;}export{extractList,extractPaging}from'@lovrabet/cli-framework';function a76_0x1797(){var _0x30ef06=['483938pExUKY','1265918LXANtW','154664LzeODO','3081428AiRhHf','4638861rAShZS','78IUnkab','108EtWDsf','23465nOfEOb','10BnVYnX','3811968ziVVvR'];a76_0x1797=function(){return _0x30ef06;};return a76_0x1797();}