@lovrabet/lovrabet-cli 2.1.7-beta.3 → 2.1.7-beta.5

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 (112) 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/app-config/get.js +1 -0
  10. package/lib/commands/app-config/index.js +1 -0
  11. package/lib/commands/app-config/shared.js +1 -0
  12. package/lib/commands/artifact/index.js +1 -1
  13. package/lib/commands/auth/index.js +1 -1
  14. package/lib/commands/auth/prompt.js +1 -1
  15. package/lib/commands/bff/detail.js +1 -1
  16. package/lib/commands/bff/exec.js +1 -1
  17. package/lib/commands/bff/index.js +1 -1
  18. package/lib/commands/cli-skill/index.js +1 -1
  19. package/lib/commands/common/config-policy.js +1 -1
  20. package/lib/commands/common/constraints.js +1 -1
  21. package/lib/commands/common/flags.js +1 -1
  22. package/lib/commands/config/definitions.js +1 -1
  23. package/lib/commands/config/shared.js +1 -1
  24. package/lib/commands/data/index.js +1 -1
  25. package/lib/commands/dataset/detail.js +1 -1
  26. package/lib/commands/dataset/index.js +1 -1
  27. package/lib/commands/dataset/list.js +1 -1
  28. package/lib/commands/dataset/sdk-doc.js +1 -1
  29. package/lib/commands/doctor.js +1 -1
  30. package/lib/commands/init.js +1 -1
  31. package/lib/commands/kb/index.js +1 -1
  32. package/lib/commands/logs/index.js +1 -1
  33. package/lib/commands/personal-bff/index.js +1 -1
  34. package/lib/commands/registry.js +1 -1
  35. package/lib/commands/schema.js +1 -1
  36. package/lib/commands/service/dynamic.js +1 -1
  37. package/lib/commands/service/index.js +1 -1
  38. package/lib/commands/service/registry.js +1 -1
  39. package/lib/commands/skill/commands/create.js +1 -1
  40. package/lib/commands/skill/commands/install.js +1 -1
  41. package/lib/commands/skill/commands/list.js +1 -1
  42. package/lib/commands/skill/commands/push.js +1 -1
  43. package/lib/commands/skill/commands/validate.js +1 -1
  44. package/lib/commands/skill/flags.js +1 -1
  45. package/lib/commands/skill/index.js +1 -1
  46. package/lib/commands/skill/manifest-helpers.js +1 -1
  47. package/lib/commands/skill/push-retarget.js +1 -1
  48. package/lib/commands/skill/scopes.js +1 -1
  49. package/lib/commands/skill/summary.js +1 -1
  50. package/lib/commands/skill/templates.js +1 -1
  51. package/lib/commands/skill/validate.js +1 -1
  52. package/lib/commands/sql/detail.js +1 -1
  53. package/lib/commands/sql/exec.js +1 -1
  54. package/lib/commands/sql/index.js +1 -1
  55. package/lib/commands/update.js +1 -1
  56. package/lib/commands/workspace/index.js +1 -1
  57. package/lib/config/schema.js +1 -1
  58. package/lib/constant/app.js +1 -1
  59. package/lib/constant/auth-mode.js +1 -1
  60. package/lib/constant/cli.js +1 -1
  61. package/lib/constant/defaults.js +1 -1
  62. package/lib/constant/distribution.js +1 -1
  63. package/lib/constant/domain.js +1 -1
  64. package/lib/constant/env.js +1 -1
  65. package/lib/constant/output.js +1 -1
  66. package/lib/constant/product.js +1 -1
  67. package/lib/constant/risk.js +1 -1
  68. package/lib/constant/url.js +1 -1
  69. package/lib/context.js +1 -1
  70. package/lib/core/api-client.js +1 -1
  71. package/lib/core/db-resolver.js +1 -1
  72. package/lib/core/sdk-client.js +1 -1
  73. package/lib/errors.js +1 -1
  74. package/lib/framework/build-all-flags.js +1 -1
  75. package/lib/framework/dryrun.js +1 -1
  76. package/lib/framework/flags.js +1 -1
  77. package/lib/framework/help.js +1 -1
  78. package/lib/framework/index.js +1 -1
  79. package/lib/framework/output.js +1 -1
  80. package/lib/framework/preparse.js +1 -1
  81. package/lib/framework/response.js +1 -1
  82. package/lib/framework/runner-confirmation.js +1 -1
  83. package/lib/framework/runner-error.js +1 -1
  84. package/lib/framework/runner.js +1 -1
  85. package/lib/framework/schema-export.js +1 -1
  86. package/lib/framework/service-order.js +1 -0
  87. package/lib/framework/types.js +1 -1
  88. package/lib/generated/build-info.js +1 -1
  89. package/lib/help.js +1 -1
  90. package/lib/skills/npx-skills-add.js +1 -1
  91. package/lib/skills/runtime-skill-sync/constants.js +1 -1
  92. package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
  93. package/lib/skills/runtime-skill-sync/hashing.js +1 -1
  94. package/lib/skills/runtime-skill-sync/links.js +1 -1
  95. package/lib/skills/runtime-skill-sync/list-local.js +1 -1
  96. package/lib/skills/runtime-skill-sync/local-files.js +1 -1
  97. package/lib/skills/runtime-skill-sync/materialize.js +1 -1
  98. package/lib/skills/runtime-skill-sync/metadata.js +1 -1
  99. package/lib/skills/runtime-skill-sync/paths.js +1 -1
  100. package/lib/skills/runtime-skill-sync/push.js +1 -1
  101. package/lib/skills/runtime-skill-sync/scopes.js +1 -1
  102. package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
  103. package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
  104. package/lib/skills/runtime-skill-sync.js +1 -1
  105. package/lib/utils/apply-jq-filter.js +1 -1
  106. package/lib/utils/logger.js +1 -1
  107. package/lib/utils/params.js +1 -1
  108. package/lib/utils/platform.js +1 -1
  109. package/lib/utils/update-notice.js +1 -1
  110. package/lib/utils/version.js +1 -1
  111. package/lib/utils/write-cli-side-channel.js +1 -1
  112. package/package.json +1 -1
@@ -1 +1 @@
1
- const a53_0x59ca99=a53_0x2e22;function a53_0x26df(){const _0x2919fe=['Override\x20SkillHub\x20domain','3110868JydROr','21532qBDdJm','locale','Override\x20API\x20domain','Default\x20page\x20size','1802388hjYGCQ','1192tgDWPL','map','18277QUIzZh','format','Override\x20runtime\x20domain','Default\x20output\x20format',';\x20local\x20alias:\x20apps.<alias>.appcode','enumValues','importable','Override\x20user\x20domain','19lTVTRY','9046440igRQBS','854028lqWDvT','1534756ccqKyk','Config\x20key.\x20Top-level:\x20','Target\x20environment','defaultValue','join','Locale','entries','5FJgKqa','filter'];a53_0x26df=function(){return _0x2919fe;};return a53_0x26df();}(function(_0x1be7a4,_0x506412){const _0x1742dd=a53_0x2e22,_0xcc58e5=_0x1be7a4();while(!![]){try{const _0x47d9a5=parseInt(_0x1742dd(0x1b9))/0x1*(parseInt(_0x1742dd(0x1aa))/0x2)+parseInt(_0x1742dd(0x1bb))/0x3+parseInt(_0x1742dd(0x1bc))/0x4*(-parseInt(_0x1742dd(0x1a6))/0x5)+parseInt(_0x1742dd(0x1ae))/0x6+-parseInt(_0x1742dd(0x1b1))/0x7*(-parseInt(_0x1742dd(0x1af))/0x8)+parseInt(_0x1742dd(0x1a9))/0x9+-parseInt(_0x1742dd(0x1ba))/0xa;if(_0x47d9a5===_0x506412)break;else _0xcc58e5['push'](_0xcc58e5['shift']());}catch(_0x25725a){_0xcc58e5['push'](_0xcc58e5['shift']());}}}(a53_0x26df,0x399d2));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{RUNTIME_ENV_VALUES}from'../constant/env.js';import{OUTPUT_FORMAT_VALUES}from'../constant/output.js';export const CONFIG_FIELD_SCHEMAS={'env':{'description':a53_0x59ca99(0x1be),'topLevel':!![],'cliSettableTopLevel':!![],'enumValues':RUNTIME_ENV_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES['env'],'importable':!![]},'format':{'description':a53_0x59ca99(0x1b4),'topLevel':!![],'cliSettableTopLevel':!![],'enumValues':OUTPUT_FORMAT_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES[a53_0x59ca99(0x1b2)],'importable':!![]},'pageSize':{'description':a53_0x59ca99(0x1ad),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'apiDomain':{'description':a53_0x59ca99(0x1ac),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'userDomain':{'description':a53_0x59ca99(0x1b8),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'runtimeDomain':{'description':a53_0x59ca99(0x1b3),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'skillHubDomain':{'description':a53_0x59ca99(0x1a8),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'accessKey':{'description':'Access\x20key\x20(client-ak\x20auth)','topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'riskLevel':{'description':'Risk\x20level','topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES['riskLevel'],'importable':!![]},'locale':{'description':a53_0x59ca99(0x1a4),'topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES[a53_0x59ca99(0x1ab)],'importable':!![],'legacyCompatOnly':!![]}};export const TOP_LEVEL_CONFIG_KEYS=new Set(Object[a53_0x59ca99(0x1a5)](CONFIG_FIELD_SCHEMAS)[a53_0x59ca99(0x1a7)](([,_0x2e85f3])=>_0x2e85f3['cliSettableTopLevel'])[a53_0x59ca99(0x1b0)](([_0x4ba647])=>_0x4ba647));export const CONFIG_ENUM_VALUES=Object['fromEntries'](Object['entries'](CONFIG_FIELD_SCHEMAS)[a53_0x59ca99(0x1a7)](([,_0xa6c08f])=>_0xa6c08f['enumValues'])['map'](([_0x1bfd07,_0xeabd50])=>[_0x1bfd07,[..._0xeabd50['enumValues']||[]]]));export const IMPORTABLE_RUNTIME_CONFIG_KEYS=Object['entries'](CONFIG_FIELD_SCHEMAS)[a53_0x59ca99(0x1a7)](([,_0x569f58])=>_0x569f58[a53_0x59ca99(0x1b7)])['map'](([_0x10203d])=>_0x10203d);export function getConfigFieldSchema(_0xa06548){return CONFIG_FIELD_SCHEMAS[_0xa06548];}export function getConfigEnumValues(_0x5aee0f){const _0x21f419=a53_0x59ca99;return getConfigFieldSchema(_0x5aee0f)?.[_0x21f419(0x1b6)];}export function getConfigDefaultValue(_0x8983f6){const _0x5d61fd=a53_0x59ca99;return getConfigFieldSchema(_0x8983f6)?.[_0x5d61fd(0x1a2)];}export function isTopLevelConfigKey(_0x3991f1){return TOP_LEVEL_CONFIG_KEYS['has'](_0x3991f1);}export function isLegacyCompatConfigKey(_0x4d2da8){return getConfigFieldSchema(_0x4d2da8)?.['legacyCompatOnly']===!![];}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}function a53_0x2e22(_0x56eb06,_0x8ef832){_0x56eb06=_0x56eb06-0x1a2;const _0x26dfca=a53_0x26df();let _0x2e2262=_0x26dfca[_0x56eb06];return _0x2e2262;}export function formatConfigKeyList(_0x2bc4e5){const _0x7e7ab8=a53_0x59ca99;return[..._0x2bc4e5][_0x7e7ab8(0x1a3)](',\x20');}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){const _0x26bb7d=a53_0x59ca99;return _0x26bb7d(0x1bd)+getTopLevelConfigKeySummary()+_0x26bb7d(0x1b5);}export function buildAppProfileListFields(_0xdb4b31){return{'env':_0xdb4b31,'hasAccessKey':![],'format':null,'pageSize':null,'riskLevel':null,'locale':null};}
1
+ const a56_0x27f711=a56_0x416c;(function(_0x316c49,_0xb8de09){const _0x3aa08e=a56_0x416c,_0x544400=_0x316c49();while(!![]){try{const _0x2d2cc2=-parseInt(_0x3aa08e(0x18c))/0x1*(-parseInt(_0x3aa08e(0x17c))/0x2)+parseInt(_0x3aa08e(0x17e))/0x3+parseInt(_0x3aa08e(0x18a))/0x4+parseInt(_0x3aa08e(0x189))/0x5*(-parseInt(_0x3aa08e(0x183))/0x6)+parseInt(_0x3aa08e(0x192))/0x7*(parseInt(_0x3aa08e(0x184))/0x8)+parseInt(_0x3aa08e(0x18e))/0x9+-parseInt(_0x3aa08e(0x177))/0xa;if(_0x2d2cc2===_0xb8de09)break;else _0x544400['push'](_0x544400['shift']());}catch(_0x2a9615){_0x544400['push'](_0x544400['shift']());}}}(a56_0x273c,0x4663b));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{RUNTIME_ENV_VALUES}from'../constant/env.js';import{OUTPUT_FORMAT_VALUES}from'../constant/output.js';export const CONFIG_FIELD_SCHEMAS={'env':{'description':a56_0x27f711(0x17a),'topLevel':!![],'cliSettableTopLevel':!![],'enumValues':RUNTIME_ENV_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES[a56_0x27f711(0x194)],'importable':!![]},'format':{'description':a56_0x27f711(0x188),'topLevel':!![],'cliSettableTopLevel':!![],'enumValues':OUTPUT_FORMAT_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES[a56_0x27f711(0x178)],'importable':!![]},'pageSize':{'description':a56_0x27f711(0x17d),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'apiDomain':{'description':'Override\x20API\x20domain','topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'userDomain':{'description':a56_0x27f711(0x191),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'runtimeDomain':{'description':'Override\x20runtime\x20domain','topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'skillHubDomain':{'description':a56_0x27f711(0x190),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'accessKey':{'description':a56_0x27f711(0x17b),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'riskLevel':{'description':a56_0x27f711(0x180),'topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES[a56_0x27f711(0x176)],'importable':!![]},'locale':{'description':a56_0x27f711(0x182),'topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES[a56_0x27f711(0x18f)],'importable':!![],'legacyCompatOnly':!![]}};function a56_0x416c(_0x43b9a6,_0x311512){_0x43b9a6=_0x43b9a6-0x176;const _0x273c8e=a56_0x273c();let _0x416ce4=_0x273c8e[_0x43b9a6];return _0x416ce4;}export const TOP_LEVEL_CONFIG_KEYS=new Set(Object[a56_0x27f711(0x193)](CONFIG_FIELD_SCHEMAS)[a56_0x27f711(0x187)](([,_0x3074c7])=>_0x3074c7[a56_0x27f711(0x185)])[a56_0x27f711(0x181)](([_0x29f6c1])=>_0x29f6c1));export const CONFIG_ENUM_VALUES=Object[a56_0x27f711(0x17f)](Object[a56_0x27f711(0x193)](CONFIG_FIELD_SCHEMAS)[a56_0x27f711(0x187)](([,_0x374bb1])=>_0x374bb1[a56_0x27f711(0x179)])['map'](([_0x32e930,_0x47d849])=>[_0x32e930,[..._0x47d849[a56_0x27f711(0x179)]||[]]]));export const IMPORTABLE_RUNTIME_CONFIG_KEYS=Object['entries'](CONFIG_FIELD_SCHEMAS)['filter'](([,_0x52525a])=>_0x52525a['importable'])[a56_0x27f711(0x181)](([_0x5d009b])=>_0x5d009b);export function getConfigFieldSchema(_0x35d21a){return CONFIG_FIELD_SCHEMAS[_0x35d21a];}export function getConfigEnumValues(_0x201ec8){const _0x557412=a56_0x27f711;return getConfigFieldSchema(_0x201ec8)?.[_0x557412(0x179)];}export function getConfigDefaultValue(_0x447611){return getConfigFieldSchema(_0x447611)?.['defaultValue'];}export function isTopLevelConfigKey(_0x3e7e20){const _0x104568=a56_0x27f711;return TOP_LEVEL_CONFIG_KEYS[_0x104568(0x186)](_0x3e7e20);}function a56_0x273c(){const _0xe6ffb9=['568341RllXwu','locale','Override\x20SkillHub\x20domain','Override\x20user\x20domain','614572jwepBg','entries','env','riskLevel','9802530aZBdOC','format','enumValues','Target\x20environment','Access\x20key\x20(client-ak\x20auth)','142268eEHKEK','Default\x20page\x20size','1264107iDkQOe','fromEntries','Risk\x20level','map','Locale','702zrNyxd','24TKxqMG','cliSettableTopLevel','has','filter','Default\x20output\x20format','16975zwlxla','1395220zUSgaP','legacyCompatOnly','8fJOxVM','Config\x20key.\x20Top-level:\x20'];a56_0x273c=function(){return _0xe6ffb9;};return a56_0x273c();}export function isLegacyCompatConfigKey(_0x3171cc){const _0x32d831=a56_0x27f711;return getConfigFieldSchema(_0x3171cc)?.[_0x32d831(0x18b)]===!![];}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function formatConfigKeyList(_0x5107e2){return[..._0x5107e2]['join'](',\x20');}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){const _0x4d5dc5=a56_0x27f711;return _0x4d5dc5(0x18d)+getTopLevelConfigKeySummary()+';\x20local\x20alias:\x20apps.<alias>.appcode';}export function buildAppProfileListFields(_0xef4171){return{'env':_0xef4171,'hasAccessKey':![],'format':null,'pageSize':null,'riskLevel':null,'locale':null};}
@@ -1 +1 @@
1
- function a54_0x2e3c(){const _0xc326c2=['Published','3HKYSqQ','2062992nHzHXy','45eZuYYE','PUBLISHED','205vASNQM','511358OvQFuN','12vwtzAd','7264NdhsUa','182997hRrhPA','647059shuWLe','5224879hVoNhR','348070zMFnIK'];a54_0x2e3c=function(){return _0xc326c2;};return a54_0x2e3c();}const a54_0x17287b=a54_0x3b2e;(function(_0x471c6f,_0x2b9c80){const _0x18ab2f=a54_0x3b2e,_0x1b6a64=_0x471c6f();while(!![]){try{const _0x4193de=parseInt(_0x18ab2f(0xb4))/0x1+parseInt(_0x18ab2f(0xbe))/0x2*(parseInt(_0x18ab2f(0xb9))/0x3)+-parseInt(_0x18ab2f(0xb3))/0x4*(-parseInt(_0x18ab2f(0xbd))/0x5)+parseInt(_0x18ab2f(0xb2))/0x6*(parseInt(_0x18ab2f(0xb5))/0x7)+-parseInt(_0x18ab2f(0xba))/0x8+parseInt(_0x18ab2f(0xbb))/0x9*(parseInt(_0x18ab2f(0xb7))/0xa)+-parseInt(_0x18ab2f(0xb6))/0xb;if(_0x4193de===_0x2b9c80)break;else _0x1b6a64['push'](_0x1b6a64['shift']());}catch(_0x23c3e2){_0x1b6a64['push'](_0x1b6a64['shift']());}}}(a54_0x2e3c,0x21faa));export const APP_PUBLISH_STATUS={'Published':a54_0x17287b(0xbc),'Unpublished':'UNPUBLISH'};function a54_0x3b2e(_0x43169e,_0xa3666e){_0x43169e=_0x43169e-0xb2;const _0x2e3c0e=a54_0x2e3c();let _0x3b2e0f=_0x2e3c0e[_0x43169e];return _0x3b2e0f;}export const RUNTIME_ACCESSIBLE_APP_STATUS=APP_PUBLISH_STATUS[a54_0x17287b(0xb8)];
1
+ const a57_0x47d803=a57_0x51b3;(function(_0x47e77f,_0x14d8b2){const _0x45393e=a57_0x51b3,_0x416358=_0x47e77f();while(!![]){try{const _0x6bb77f=-parseInt(_0x45393e(0x11b))/0x1*(-parseInt(_0x45393e(0x120))/0x2)+-parseInt(_0x45393e(0x11f))/0x3*(-parseInt(_0x45393e(0x119))/0x4)+parseInt(_0x45393e(0x123))/0x5*(parseInt(_0x45393e(0x11a))/0x6)+parseInt(_0x45393e(0x127))/0x7+parseInt(_0x45393e(0x11d))/0x8*(-parseInt(_0x45393e(0x11c))/0x9)+-parseInt(_0x45393e(0x126))/0xa*(parseInt(_0x45393e(0x124))/0xb)+parseInt(_0x45393e(0x125))/0xc*(-parseInt(_0x45393e(0x11e))/0xd);if(_0x6bb77f===_0x14d8b2)break;else _0x416358['push'](_0x416358['shift']());}catch(_0x350fbb){_0x416358['push'](_0x416358['shift']());}}}(a57_0x3286,0x3e2ad));export const APP_PUBLISH_STATUS={'Published':a57_0x47d803(0x121),'Unpublished':a57_0x47d803(0x128)};function a57_0x3286(){const _0x512b38=['525050GTHVnI','1533644AZSVxT','UNPUBLISH','47412YYYXba','42ZWGeTX','71VhZpal','9thVtGJ','3332792zTeBev','13iMCiYw','105JJOlFu','12086LqSHfg','PUBLISHED','Published','85460TombzZ','11WOoNFu','5506836ocLeGM'];a57_0x3286=function(){return _0x512b38;};return a57_0x3286();}function a57_0x51b3(_0x436e03,_0x2a0e60){_0x436e03=_0x436e03-0x119;const _0x3286a1=a57_0x3286();let _0x51b3a7=_0x3286a1[_0x436e03];return _0x51b3a7;}export const RUNTIME_ACCESSIBLE_APP_STATUS=APP_PUBLISH_STATUS[a57_0x47d803(0x122)];
@@ -1 +1 @@
1
- const a55_0x19699e=a55_0x35b8;function a55_0x35b8(_0x1f4308,_0x1ccc27){_0x1f4308=_0x1f4308-0x119;const _0x62a46=a55_0x62a4();let _0x35b818=_0x62a46[_0x1f4308];return _0x35b818;}(function(_0xb5921b,_0x29d399){const _0x4ab11=a55_0x35b8,_0x508e4e=_0xb5921b();while(!![]){try{const _0x4afe77=-parseInt(_0x4ab11(0x11c))/0x1+-parseInt(_0x4ab11(0x121))/0x2*(parseInt(_0x4ab11(0x11b))/0x3)+parseInt(_0x4ab11(0x11f))/0x4*(parseInt(_0x4ab11(0x11d))/0x5)+-parseInt(_0x4ab11(0x127))/0x6*(-parseInt(_0x4ab11(0x122))/0x7)+parseInt(_0x4ab11(0x125))/0x8*(-parseInt(_0x4ab11(0x11a))/0x9)+parseInt(_0x4ab11(0x120))/0xa*(parseInt(_0x4ab11(0x124))/0xb)+parseInt(_0x4ab11(0x123))/0xc*(parseInt(_0x4ab11(0x126))/0xd);if(_0x4afe77===_0x29d399)break;else _0x508e4e['push'](_0x508e4e['shift']());}catch(_0x41df11){_0x508e4e['push'](_0x508e4e['shift']());}}}(a55_0x62a4,0x5be4f));export const AUTH_MODE={'ClientAk':a55_0x19699e(0x119)};function a55_0x62a4(){const _0x144e20=['3324yCWEQr','652157XVbXSc','1248728JxysMm','51662SBKXci','6TDJJfT','client-ak','9gSvvjo','4122druiTZ','405192irfxzL','26170rCLqNk','ClientAk','196WDcouK','20erILZa','898OHqwhE','551390mNGQUb'];a55_0x62a4=function(){return _0x144e20;};return a55_0x62a4();}export function isAuthMode(_0x216b64){const _0x1e40e1=a55_0x19699e;return _0x216b64===AUTH_MODE[_0x1e40e1(0x11e)];}
1
+ const a58_0x2b00cb=a58_0x3920;(function(_0x491df9,_0x515f5c){const _0x3eea51=a58_0x3920,_0x18e2a5=_0x491df9();while(!![]){try{const _0x404afe=parseInt(_0x3eea51(0x1c2))/0x1*(parseInt(_0x3eea51(0x1c1))/0x2)+parseInt(_0x3eea51(0x1c0))/0x3*(parseInt(_0x3eea51(0x1c5))/0x4)+-parseInt(_0x3eea51(0x1c7))/0x5*(-parseInt(_0x3eea51(0x1bf))/0x6)+-parseInt(_0x3eea51(0x1c8))/0x7+-parseInt(_0x3eea51(0x1c6))/0x8+parseInt(_0x3eea51(0x1be))/0x9+-parseInt(_0x3eea51(0x1bd))/0xa;if(_0x404afe===_0x515f5c)break;else _0x18e2a5['push'](_0x18e2a5['shift']());}catch(_0x44bec7){_0x18e2a5['push'](_0x18e2a5['shift']());}}}(a58_0x5049,0xb3acb));export const AUTH_MODE={'ClientAk':a58_0x2b00cb(0x1c4)};function a58_0x3920(_0x2848a4,_0x54fe1f){_0x2848a4=_0x2848a4-0x1bd;const _0x50498c=a58_0x5049();let _0x392021=_0x50498c[_0x2848a4];return _0x392021;}function a58_0x5049(){const _0x11deb6=['9297750rKiuQh','3904030cBphEA','7679187TGDknH','557646nfOiJh','1230927RKbzFy','544PyEJJk','1873zYSuEJ','ClientAk','client-ak','8hSrszK','3034432cjDipb','35QzuniY'];a58_0x5049=function(){return _0x11deb6;};return a58_0x5049();}export function isAuthMode(_0xf1aaaf){const _0x54b075=a58_0x2b00cb;return _0xf1aaaf===AUTH_MODE[_0x54b075(0x1c3)];}
@@ -1 +1 @@
1
- function a56_0x23bd(_0x5aecee,_0x2bdb25){_0x5aecee=_0x5aecee-0x12b;const _0x314c61=a56_0x314c();let _0x23bd72=_0x314c61[_0x5aecee];return _0x23bd72;}const a56_0x2f097a=a56_0x23bd;function a56_0x314c(){const _0x4f06e8=['boolean','96fhPvrs','Record\x20ID','help','string','110hCiMyU','map','Output\x20format','appcode','<code>','Force\x20non-interactive\x20mode\x20(CI)','Skip\x20confirmation\x20for\x20high-risk\x20writes','cliBinName','dry-run','8969328SQlkOs','Alias\x20for\x20--non-interactive','5MkNZjP','nonInteractive','cliDisplayName','<expr>','<name>','fromEntries','Name\x20filter','production\x20|\x20development\x20|\x20daily','clear','yes','non-interactive','name','Preview\x20operation\x20without\x20executing','sqlcode','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20implies\x20--format\x20json\x20when\x20current\x20format\x20is\x20pretty)','1235553QtmjNk','global','Use\x20global\x20config\x20scope','params','Override\x20appcode','5748USgDIT','1011020RQMBhk','format','141281eboZnp','env','192RDHeSa','verbose','app','type','1969962iGFyMI','680978rbFEOM','dryRun','Select\x20app\x20profile\x20by\x20name'];a56_0x314c=function(){return _0x4f06e8;};return a56_0x314c();}(function(_0x14dc45,_0x3a07db){const _0xb3d456=a56_0x23bd,_0x48d484=_0x14dc45();while(!![]){try{const _0xab2477=-parseInt(_0xb3d456(0x147))/0x1+parseInt(_0xb3d456(0x13e))/0x2+-parseInt(_0xb3d456(0x13d))/0x3*(-parseInt(_0xb3d456(0x142))/0x4)+parseInt(_0xb3d456(0x15a))/0x5*(parseInt(_0xb3d456(0x146))/0x6)+parseInt(_0xb3d456(0x140))/0x7*(parseInt(_0xb3d456(0x14b))/0x8)+-parseInt(_0xb3d456(0x158))/0x9+parseInt(_0xb3d456(0x14f))/0xa*(parseInt(_0xb3d456(0x138))/0xb);if(_0xab2477===_0x3a07db)break;else _0x48d484['push'](_0x48d484['shift']());}catch(_0x2c128f){_0x48d484['push'](_0x48d484['shift']());}}}(a56_0x314c,0xb13e0));import{PRODUCT_CONFIG}from'../constant/product.js';import{LOVRABET_NPM_PACKAGE_NAME}from'../constant/distribution.js';export const CLI_BIN_NAME=PRODUCT_CONFIG[a56_0x2f097a(0x156)];export const CLI_DISPLAY_NAME=PRODUCT_CONFIG[a56_0x2f097a(0x12b)];export const NPM_PACKAGE_NAME=LOVRABET_NPM_PACKAGE_NAME;export const GLOBAL_FLAGS=[{'name':a56_0x2f097a(0x152),'meowKey':a56_0x2f097a(0x152),'type':a56_0x2f097a(0x14e),'description':a56_0x2f097a(0x13c),'hint':a56_0x2f097a(0x153)},{'name':a56_0x2f097a(0x144),'meowKey':a56_0x2f097a(0x144),'type':'string','description':a56_0x2f097a(0x149),'hint':a56_0x2f097a(0x12d)},{'name':a56_0x2f097a(0x141),'meowKey':a56_0x2f097a(0x141),'type':a56_0x2f097a(0x14e),'description':'Environment','hint':a56_0x2f097a(0x130)},{'name':a56_0x2f097a(0x13f),'meowKey':a56_0x2f097a(0x13f),'type':a56_0x2f097a(0x14e),'description':a56_0x2f097a(0x151),'hint':'json\x20|\x20pretty\x20|\x20compress'},{'name':'jq','meowKey':'jq','type':a56_0x2f097a(0x14e),'description':a56_0x2f097a(0x137),'hint':a56_0x2f097a(0x12c)},{'name':a56_0x2f097a(0x157),'meowKey':a56_0x2f097a(0x148),'type':a56_0x2f097a(0x14a),'description':a56_0x2f097a(0x135)},{'name':a56_0x2f097a(0x132),'meowKey':'yes','type':a56_0x2f097a(0x14a),'description':a56_0x2f097a(0x155)},{'name':a56_0x2f097a(0x133),'meowKey':a56_0x2f097a(0x15b),'type':a56_0x2f097a(0x14a),'description':a56_0x2f097a(0x154)},{'name':a56_0x2f097a(0x139),'meowKey':'global','type':a56_0x2f097a(0x14a),'description':a56_0x2f097a(0x13a)},{'name':'ci','meowKey':'ci','type':a56_0x2f097a(0x14a),'description':a56_0x2f097a(0x159),'hidden':!![]},{'name':a56_0x2f097a(0x14d),'meowKey':a56_0x2f097a(0x14d),'type':'boolean','description':'Show\x20help'},{'name':'id','meowKey':'id','type':a56_0x2f097a(0x14e),'description':a56_0x2f097a(0x14c),'hidden':!![]},{'name':'name','meowKey':a56_0x2f097a(0x134),'type':a56_0x2f097a(0x14e),'description':a56_0x2f097a(0x12f),'hidden':!![]},{'name':a56_0x2f097a(0x136),'meowKey':a56_0x2f097a(0x136),'type':a56_0x2f097a(0x14e),'description':'SQL\x20query\x20code','hidden':!![]},{'name':a56_0x2f097a(0x13b),'meowKey':'params','type':'string','description':'JSON\x20params\x20for\x20execute\x20commands','hidden':!![]},{'name':a56_0x2f097a(0x143),'meowKey':a56_0x2f097a(0x143),'type':a56_0x2f097a(0x14a),'description':'Verbose\x20output','hidden':!![]},{'name':a56_0x2f097a(0x131),'meowKey':a56_0x2f097a(0x131),'type':a56_0x2f097a(0x14a),'description':'Clear\x20output','hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set([a56_0x2f097a(0x152),a56_0x2f097a(0x144),a56_0x2f097a(0x141),a56_0x2f097a(0x13f),'jq',a56_0x2f097a(0x157),a56_0x2f097a(0x132),a56_0x2f097a(0x133),'ci']);export function buildMeowFlags(){const _0x462d58=a56_0x2f097a;return Object[_0x462d58(0x12e)](GLOBAL_FLAGS[_0x462d58(0x150)](_0x299fa8=>[_0x299fa8['meowKey'],{'type':_0x299fa8[_0x462d58(0x145)]}]));}
1
+ const a59_0x28f7c7=a59_0x2265;(function(_0x1fd3cf,_0x486539){const _0x38a8af=a59_0x2265,_0x919c8d=_0x1fd3cf();while(!![]){try{const _0x4b5b00=-parseInt(_0x38a8af(0x1d0))/0x1+parseInt(_0x38a8af(0x1d1))/0x2+-parseInt(_0x38a8af(0x1cc))/0x3+parseInt(_0x38a8af(0x1e4))/0x4+parseInt(_0x38a8af(0x1e2))/0x5*(-parseInt(_0x38a8af(0x1ee))/0x6)+parseInt(_0x38a8af(0x1e0))/0x7*(-parseInt(_0x38a8af(0x1f4))/0x8)+parseInt(_0x38a8af(0x1f1))/0x9;if(_0x4b5b00===_0x486539)break;else _0x919c8d['push'](_0x919c8d['shift']());}catch(_0xf34396){_0x919c8d['push'](_0x919c8d['shift']());}}}(a59_0x4ad1,0x7a600));import{PRODUCT_CONFIG}from'../constant/product.js';function a59_0x2265(_0x43f98a,_0x598cd3){_0x43f98a=_0x43f98a-0x1cb;const _0x4ad1d6=a59_0x4ad1();let _0x2265f5=_0x4ad1d6[_0x43f98a];return _0x2265f5;}import{LOVRABET_NPM_PACKAGE_NAME}from'../constant/distribution.js';export const CLI_BIN_NAME=PRODUCT_CONFIG[a59_0x28f7c7(0x1f6)];export const CLI_DISPLAY_NAME=PRODUCT_CONFIG['cliDisplayName'];function a59_0x4ad1(){const _0x40c8fc=['Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20implies\x20--format\x20json\x20when\x20current\x20format\x20is\x20pretty)','cliBinName','format','type','nonInteractive','362220YIcyQF','appcode','string','Verbose\x20output','404145uvJmNY','1568348YFKTAE','<name>','Alias\x20for\x20--non-interactive','name','map','sqlcode','Name\x20filter','app','Output\x20format','clear','production\x20|\x20development\x20|\x20daily','<expr>','yes','<code>','dryRun','267827aLtDQg','fromEntries','4334095rMDRJy','boolean','1928872nGxtPz','Select\x20app\x20profile\x20by\x20name','Force\x20non-interactive\x20mode\x20(CI)','SQL\x20query\x20code','env','Show\x20help','global','Use\x20global\x20config\x20scope','Clear\x20output','dry-run','6FqbJIA','verbose','non-interactive','9426879FYRfRY','Environment','Override\x20appcode','88AVdwsy'];a59_0x4ad1=function(){return _0x40c8fc;};return a59_0x4ad1();}export const NPM_PACKAGE_NAME=LOVRABET_NPM_PACKAGE_NAME;export const GLOBAL_FLAGS=[{'name':'appcode','meowKey':a59_0x28f7c7(0x1cd),'type':a59_0x28f7c7(0x1ce),'description':a59_0x28f7c7(0x1f3),'hint':a59_0x28f7c7(0x1de)},{'name':'app','meowKey':a59_0x28f7c7(0x1d8),'type':a59_0x28f7c7(0x1ce),'description':a59_0x28f7c7(0x1e5),'hint':a59_0x28f7c7(0x1d2)},{'name':a59_0x28f7c7(0x1e8),'meowKey':a59_0x28f7c7(0x1e8),'type':a59_0x28f7c7(0x1ce),'description':a59_0x28f7c7(0x1f2),'hint':a59_0x28f7c7(0x1db)},{'name':a59_0x28f7c7(0x1f7),'meowKey':'format','type':a59_0x28f7c7(0x1ce),'description':a59_0x28f7c7(0x1d9),'hint':'json\x20|\x20pretty\x20|\x20compress'},{'name':'jq','meowKey':'jq','type':'string','description':a59_0x28f7c7(0x1f5),'hint':a59_0x28f7c7(0x1dc)},{'name':a59_0x28f7c7(0x1ed),'meowKey':a59_0x28f7c7(0x1df),'type':'boolean','description':'Preview\x20operation\x20without\x20executing'},{'name':a59_0x28f7c7(0x1dd),'meowKey':'yes','type':a59_0x28f7c7(0x1e3),'description':'Skip\x20confirmation\x20for\x20high-risk\x20writes'},{'name':a59_0x28f7c7(0x1f0),'meowKey':a59_0x28f7c7(0x1cb),'type':'boolean','description':a59_0x28f7c7(0x1e6)},{'name':a59_0x28f7c7(0x1ea),'meowKey':'global','type':'boolean','description':a59_0x28f7c7(0x1eb)},{'name':'ci','meowKey':'ci','type':'boolean','description':a59_0x28f7c7(0x1d3),'hidden':!![]},{'name':'help','meowKey':'help','type':a59_0x28f7c7(0x1e3),'description':a59_0x28f7c7(0x1e9)},{'name':'id','meowKey':'id','type':a59_0x28f7c7(0x1ce),'description':'Record\x20ID','hidden':!![]},{'name':'name','meowKey':a59_0x28f7c7(0x1d4),'type':a59_0x28f7c7(0x1ce),'description':a59_0x28f7c7(0x1d7),'hidden':!![]},{'name':a59_0x28f7c7(0x1d6),'meowKey':a59_0x28f7c7(0x1d6),'type':a59_0x28f7c7(0x1ce),'description':a59_0x28f7c7(0x1e7),'hidden':!![]},{'name':'params','meowKey':'params','type':a59_0x28f7c7(0x1ce),'description':'JSON\x20params\x20for\x20execute\x20commands','hidden':!![]},{'name':a59_0x28f7c7(0x1ef),'meowKey':'verbose','type':'boolean','description':a59_0x28f7c7(0x1cf),'hidden':!![]},{'name':a59_0x28f7c7(0x1da),'meowKey':a59_0x28f7c7(0x1da),'type':'boolean','description':a59_0x28f7c7(0x1ec),'hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set(['appcode',a59_0x28f7c7(0x1d8),'env',a59_0x28f7c7(0x1f7),'jq',a59_0x28f7c7(0x1ed),a59_0x28f7c7(0x1dd),a59_0x28f7c7(0x1f0),'ci']);export function buildMeowFlags(){const _0x13fd38=a59_0x28f7c7;return Object[_0x13fd38(0x1e1)](GLOBAL_FLAGS[_0x13fd38(0x1d5)](_0x7ac4dd=>[_0x7ac4dd['meowKey'],{'type':_0x7ac4dd[_0x13fd38(0x1f8)]}]));}
@@ -1 +1 @@
1
- const a57_0x3a754e=a57_0x2428;(function(_0x265e05,_0x27f741){const _0x489926=a57_0x2428,_0x1d0ea5=_0x265e05();while(!![]){try{const _0x539cb8=parseInt(_0x489926(0x10a))/0x1*(-parseInt(_0x489926(0x10d))/0x2)+parseInt(_0x489926(0x10c))/0x3+parseInt(_0x489926(0x110))/0x4+-parseInt(_0x489926(0x109))/0x5+parseInt(_0x489926(0x112))/0x6*(-parseInt(_0x489926(0x117))/0x7)+-parseInt(_0x489926(0x10b))/0x8*(-parseInt(_0x489926(0x116))/0x9)+parseInt(_0x489926(0x10e))/0xa*(-parseInt(_0x489926(0x115))/0xb);if(_0x539cb8===_0x27f741)break;else _0x1d0ea5['push'](_0x1d0ea5['shift']());}catch(_0x3086fc){_0x1d0ea5['push'](_0x1d0ea5['shift']());}}}(a57_0xecfa,0xa0ded));function a57_0x2428(_0x800365,_0x22f3f9){_0x800365=_0x800365-0x108;const _0xecfa34=a57_0xecfa();let _0x2428cd=_0xecfa34[_0x800365];return _0x2428cd;}function a57_0xecfa(){const _0x42e3a1=['41532IdBSze','production','compress','110ZDozzb','9EZUFSv','28QFePCy','write','2359585cedNAB','42802rPsMfn','6808936ukgpAi','2465118qwBZWJ','14MWylnf','1464710bsempD','main','5000124pkPOXn','en-US'];a57_0xecfa=function(){return _0x42e3a1;};return a57_0xecfa();}export const DEFAULT_APP_PROFILE_NAME=a57_0x3a754e(0x10f);export const DEFAULT_CONFIG_VALUES={'env':a57_0x3a754e(0x113),'format':'compress','locale':a57_0x3a754e(0x111),'riskLevel':a57_0x3a754e(0x108)};export const DEFAULT_COMMAND_OUTPUT_FORMAT=a57_0x3a754e(0x114);
1
+ function a60_0x3994(_0x5e0a79,_0x2c0fd5){_0x5e0a79=_0x5e0a79-0x9c;const _0x11c980=a60_0x11c9();let _0x3994ab=_0x11c980[_0x5e0a79];return _0x3994ab;}const a60_0x19a17e=a60_0x3994;function a60_0x11c9(){const _0x56d3f1=['en-US','15256xwDwYc','296ebtQpJ','3bfoicl','9dmzTCH','422698rsxYqs','production','933vKkfnV','1896400PNDVsg','446700vXDRjR','767592dEWTpD','compress','7707909mwYBnr','write','65037QSduMu','main'];a60_0x11c9=function(){return _0x56d3f1;};return a60_0x11c9();}(function(_0x57d47f,_0xfe1d09){const _0x209fbb=a60_0x3994,_0x5f2d1c=_0x57d47f();while(!![]){try{const _0x2e677e=parseInt(_0x209fbb(0xab))/0x1*(-parseInt(_0x209fbb(0x9d))/0x2)+parseInt(_0x209fbb(0x9f))/0x3*(parseInt(_0x209fbb(0xa9))/0x4)+parseInt(_0x209fbb(0xa1))/0x5+parseInt(_0x209fbb(0xa2))/0x6+-parseInt(_0x209fbb(0xa6))/0x7*(-parseInt(_0x209fbb(0xaa))/0x8)+parseInt(_0x209fbb(0x9c))/0x9*(parseInt(_0x209fbb(0xa0))/0xa)+-parseInt(_0x209fbb(0xa4))/0xb;if(_0x2e677e===_0xfe1d09)break;else _0x5f2d1c['push'](_0x5f2d1c['shift']());}catch(_0x4e89e9){_0x5f2d1c['push'](_0x5f2d1c['shift']());}}}(a60_0x11c9,0x92fd3));export const DEFAULT_APP_PROFILE_NAME=a60_0x19a17e(0xa7);export const DEFAULT_CONFIG_VALUES={'env':a60_0x19a17e(0x9e),'format':a60_0x19a17e(0xa3),'locale':a60_0x19a17e(0xa8),'riskLevel':a60_0x19a17e(0xa5)};export const DEFAULT_COMMAND_OUTPUT_FORMAT=a60_0x19a17e(0xa3);
@@ -1 +1 @@
1
- function a58_0x28d8(){const _0x349a51=['17624xwbjrY','64JxkeiI','260704AIJanL','116760hjqWbW','3627882YQAyLC','npmPackageName','365ZZbdSl','1662582gdQsnW','4052400YbjpOH','12iQfZWy','91534cxPjaj'];a58_0x28d8=function(){return _0x349a51;};return a58_0x28d8();}const a58_0x39bea4=a58_0x2297;(function(_0x14a1ed,_0xe67663){const _0x1741b7=a58_0x2297,_0x93807c=_0x14a1ed();while(!![]){try{const _0x52dd47=parseInt(_0x1741b7(0x193))/0x1+-parseInt(_0x1741b7(0x18b))/0x2*(parseInt(_0x1741b7(0x192))/0x3)+parseInt(_0x1741b7(0x194))/0x4*(parseInt(_0x1741b7(0x18f))/0x5)+-parseInt(_0x1741b7(0x190))/0x6+parseInt(_0x1741b7(0x18c))/0x7*(-parseInt(_0x1741b7(0x18a))/0x8)+parseInt(_0x1741b7(0x18d))/0x9+parseInt(_0x1741b7(0x191))/0xa;if(_0x52dd47===_0xe67663)break;else _0x93807c['push'](_0x93807c['shift']());}catch(_0xfe07b){_0x93807c['push'](_0x93807c['shift']());}}}(a58_0x28d8,0x46b1d));import{PRODUCT_CONFIG}from'../constant/product.js';function a58_0x2297(_0x3bd4a0,_0x3a8e49){_0x3bd4a0=_0x3bd4a0-0x18a;const _0x28d83e=a58_0x28d8();let _0x2297c2=_0x28d83e[_0x3bd4a0];return _0x2297c2;}export const LOVRABET_NPM_PACKAGE_NAME=PRODUCT_CONFIG[a58_0x39bea4(0x18e)];export const LOVRABET_SKILL_SOURCE=PRODUCT_CONFIG['skillSource'];export const NPM_REGISTRY_BASE_URL=PRODUCT_CONFIG['npmRegistryBaseUrl'];
1
+ const a61_0x4b4748=a61_0xa8a3;(function(_0x585a31,_0x2d25d4){const _0x1e252f=a61_0xa8a3,_0x5e6871=_0x585a31();while(!![]){try{const _0x2b3680=-parseInt(_0x1e252f(0x164))/0x1+parseInt(_0x1e252f(0x163))/0x2*(-parseInt(_0x1e252f(0x165))/0x3)+-parseInt(_0x1e252f(0x162))/0x4+parseInt(_0x1e252f(0x16c))/0x5*(parseInt(_0x1e252f(0x167))/0x6)+parseInt(_0x1e252f(0x16a))/0x7+-parseInt(_0x1e252f(0x168))/0x8*(parseInt(_0x1e252f(0x16d))/0x9)+parseInt(_0x1e252f(0x16b))/0xa;if(_0x2b3680===_0x2d25d4)break;else _0x5e6871['push'](_0x5e6871['shift']());}catch(_0x725e22){_0x5e6871['push'](_0x5e6871['shift']());}}}(a61_0x1683,0x282f5));import{PRODUCT_CONFIG}from'../constant/product.js';function a61_0xa8a3(_0x30b39e,_0x51843d){_0x30b39e=_0x30b39e-0x161;const _0x16837f=a61_0x1683();let _0xa8a364=_0x16837f[_0x30b39e];return _0xa8a364;}export const LOVRABET_NPM_PACKAGE_NAME=PRODUCT_CONFIG[a61_0x4b4748(0x166)];export const LOVRABET_SKILL_SOURCE=PRODUCT_CONFIG[a61_0x4b4748(0x169)];export const NPM_REGISTRY_BASE_URL=PRODUCT_CONFIG[a61_0x4b4748(0x161)];function a61_0x1683(){const _0xa76195=['npmRegistryBaseUrl','1211948UPFcCm','12WvRTTN','301893ZCyKHg','89715CVCNJo','npmPackageName','42JmStMa','8WkElyo','skillSource','1816220MWSrCd','7902880dKMPJQ','140945WsjbDc','2683476BCPdpA'];a61_0x1683=function(){return _0xa76195;};return a61_0x1683();}
@@ -1 +1 @@
1
- const a59_0x116064=a59_0x5a52;function a59_0x5a52(_0x1f749b,_0x163744){_0x1f749b=_0x1f749b-0xcf;const _0x55b6f9=a59_0x55b6();let _0x5a525f=_0x55b6f9[_0x1f749b];return _0x5a525f;}(function(_0x8ec477,_0x3875d9){const _0x19c860=a59_0x5a52,_0x7649d7=_0x8ec477();while(!![]){try{const _0x2d2f2a=-parseInt(_0x19c860(0xe3))/0x1*(parseInt(_0x19c860(0xde))/0x2)+-parseInt(_0x19c860(0xd3))/0x3+-parseInt(_0x19c860(0xd5))/0x4*(-parseInt(_0x19c860(0xd1))/0x5)+-parseInt(_0x19c860(0xdf))/0x6*(-parseInt(_0x19c860(0xd8))/0x7)+parseInt(_0x19c860(0xd0))/0x8+parseInt(_0x19c860(0xdb))/0x9*(-parseInt(_0x19c860(0xd9))/0xa)+-parseInt(_0x19c860(0xdd))/0xb;if(_0x2d2f2a===_0x3875d9)break;else _0x7649d7['push'](_0x7649d7['shift']());}catch(_0x269906){_0x7649d7['push'](_0x7649d7['shift']());}}}(a59_0x55b6,0xa9128));import{getEnv,isProduction}from'../constant/env.js';import{PRODUCT_CONFIG}from'../constant/product.js';let customApiDomain,customUserDomain,customRuntimeDomain,customSkillHubDomain;export function initDomains(_0x16ca78){const _0xc142b=a59_0x5a52;customApiDomain=_0x16ca78?.[_0xc142b(0xd4)],customUserDomain=_0x16ca78?.['userDomain'],customRuntimeDomain=_0x16ca78?.[_0xc142b(0xcf)],customSkillHubDomain=_0x16ca78?.[_0xc142b(0xdc)];}export const getUserDomain=()=>customUserDomain||(isProduction(getEnv())?PRODUCT_CONFIG['domains'][a59_0x116064(0xe1)][a59_0x116064(0xd6)]:PRODUCT_CONFIG[a59_0x116064(0xd7)][a59_0x116064(0xe2)][a59_0x116064(0xd6)]);export const getApiDomain=()=>customApiDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a59_0x116064(0xd7)]['production'][a59_0x116064(0xda)]:PRODUCT_CONFIG[a59_0x116064(0xd7)]['nonProduction'][a59_0x116064(0xda)]);export const getRuntimeDomain=()=>customRuntimeDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a59_0x116064(0xd7)][a59_0x116064(0xe1)][a59_0x116064(0xd2)]:PRODUCT_CONFIG[a59_0x116064(0xd7)][a59_0x116064(0xe2)][a59_0x116064(0xd2)]);function a59_0x55b6(){const _0x42bee3=['6669096NyfuFF','384950ALsqwk','runtime','91395AqJORc','apiDomain','60jOdspV','user','domains','581oFksRd','3985490LdiOEQ','api','18BsBDbf','skillHubDomain','7391879woygKh','134JPgoJv','73254RaKTKD','skillhub','production','nonProduction','12086ckKwBe','runtimeDomain'];a59_0x55b6=function(){return _0x42bee3;};return a59_0x55b6();}export const getSkillHubDomain=()=>customSkillHubDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a59_0x116064(0xd7)][a59_0x116064(0xe1)][a59_0x116064(0xe0)]:PRODUCT_CONFIG[a59_0x116064(0xd7)][a59_0x116064(0xe2)][a59_0x116064(0xe0)]);
1
+ const a62_0x32c252=a62_0x44b7;function a62_0x44b7(_0x33bd37,_0x41af3b){_0x33bd37=_0x33bd37-0x1e1;const _0x1401fb=a62_0x1401();let _0x44b783=_0x1401fb[_0x33bd37];return _0x44b783;}(function(_0x4c3f78,_0x1f304e){const _0x36ef90=a62_0x44b7,_0x1653c5=_0x4c3f78();while(!![]){try{const _0x3d2854=-parseInt(_0x36ef90(0x1ea))/0x1*(-parseInt(_0x36ef90(0x1e4))/0x2)+-parseInt(_0x36ef90(0x1e1))/0x3+parseInt(_0x36ef90(0x1eb))/0x4+parseInt(_0x36ef90(0x1e8))/0x5*(-parseInt(_0x36ef90(0x1e9))/0x6)+parseInt(_0x36ef90(0x1ec))/0x7+parseInt(_0x36ef90(0x1f0))/0x8*(-parseInt(_0x36ef90(0x1f3))/0x9)+-parseInt(_0x36ef90(0x1e6))/0xa;if(_0x3d2854===_0x1f304e)break;else _0x1653c5['push'](_0x1653c5['shift']());}catch(_0x47ada3){_0x1653c5['push'](_0x1653c5['shift']());}}}(a62_0x1401,0x8444b));import{getEnv,isProduction}from'../constant/env.js';import{PRODUCT_CONFIG}from'../constant/product.js';let customApiDomain,customUserDomain,customRuntimeDomain,customSkillHubDomain;export function initDomains(_0x4c80d7){const _0x220453=a62_0x44b7;customApiDomain=_0x4c80d7?.[_0x220453(0x1e2)],customUserDomain=_0x4c80d7?.['userDomain'],customRuntimeDomain=_0x4c80d7?.['runtimeDomain'],customSkillHubDomain=_0x4c80d7?.[_0x220453(0x1e7)];}function a62_0x1401(){const _0x336a0f=['6850837LmHlnP','api','skillhub','nonProduction','1325288pmjABr','runtime','production','54VHzZqx','125601ryCEiU','apiDomain','user','170050XRcALv','domains','1045250rGSlQt','skillHubDomain','5hmDpwm','2001378bXREum','7aVdQjA','1767304rKutpr'];a62_0x1401=function(){return _0x336a0f;};return a62_0x1401();}export const getUserDomain=()=>customUserDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a62_0x32c252(0x1e5)][a62_0x32c252(0x1f2)][a62_0x32c252(0x1e3)]:PRODUCT_CONFIG['domains']['nonProduction'][a62_0x32c252(0x1e3)]);export const getApiDomain=()=>customApiDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a62_0x32c252(0x1e5)][a62_0x32c252(0x1f2)][a62_0x32c252(0x1ed)]:PRODUCT_CONFIG[a62_0x32c252(0x1e5)]['nonProduction'][a62_0x32c252(0x1ed)]);export const getRuntimeDomain=()=>customRuntimeDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a62_0x32c252(0x1e5)]['production'][a62_0x32c252(0x1f1)]:PRODUCT_CONFIG[a62_0x32c252(0x1e5)][a62_0x32c252(0x1ef)][a62_0x32c252(0x1f1)]);export const getSkillHubDomain=()=>customSkillHubDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a62_0x32c252(0x1e5)]['production'][a62_0x32c252(0x1ee)]:PRODUCT_CONFIG[a62_0x32c252(0x1e5)][a62_0x32c252(0x1ef)][a62_0x32c252(0x1ee)]);
@@ -1 +1 @@
1
- const a60_0x4efa79=a60_0x523b;(function(_0xb3ea59,_0x8058d3){const _0x58569b=a60_0x523b,_0x557428=_0xb3ea59();while(!![]){try{const _0x540aff=-parseInt(_0x58569b(0x6b))/0x1*(-parseInt(_0x58569b(0x70))/0x2)+parseInt(_0x58569b(0x6e))/0x3+parseInt(_0x58569b(0x6d))/0x4*(parseInt(_0x58569b(0x6a))/0x5)+parseInt(_0x58569b(0x74))/0x6+parseInt(_0x58569b(0x73))/0x7+-parseInt(_0x58569b(0x67))/0x8+-parseInt(_0x58569b(0x69))/0x9*(parseInt(_0x58569b(0x71))/0xa);if(_0x540aff===_0x8058d3)break;else _0x557428['push'](_0x557428['shift']());}catch(_0x592fbb){_0x557428['push'](_0x557428['shift']());}}}(a60_0x3baa,0xd3fcb));import{productEnv}from'../constant/product.js';export const RUNTIME_ENV_VALUES=['production','development','daily'];export function normalizeEnv(_0x1a5bc9){const _0xa0e40f=a60_0x523b;return _0x1a5bc9===_0xa0e40f(0x68)?'production':_0x1a5bc9;}export function isProduction(_0x2ffc39){return normalizeEnv(_0x2ffc39)==='production';}export function isDaily(_0x38fb11){const _0x4bb1e4=a60_0x523b;return normalizeEnv(_0x38fb11)===_0x4bb1e4(0x72);}export function isDev(_0x5824db){const _0x6f97b2=a60_0x523b,_0x12fc74=normalizeEnv(_0x5824db);return _0x12fc74===_0x6f97b2(0x6f)||_0x12fc74===_0x6f97b2(0x66);}let env=normalizeEnv(productEnv(a60_0x4efa79(0x6c))||'production');function a60_0x523b(_0x34ad8a,_0x42ad92){_0x34ad8a=_0x34ad8a-0x66;const _0x3baa66=a60_0x3baa();let _0x523b95=_0x3baa66[_0x34ad8a];return _0x523b95;}export function getEnv(){return env;}function a60_0x3baa(){const _0x4b9c7f=['45eUrKax','315RzdfJC','47mNemWW','ENV','61616gUVfcD','465618McqGUG','development','39966hNqgjz','6041540zwQQPd','daily','11276279YOcVkh','1645896XKvgCX','dev','488024VgBmDD','online'];a60_0x3baa=function(){return _0x4b9c7f;};return a60_0x3baa();}export function initEnv(_0x2145a0){env=normalizeEnv(_0x2145a0);}
1
+ const a63_0x51927b=a63_0x47db;(function(_0x4ac3cc,_0x509272){const _0x1f80c9=a63_0x47db,_0x1d87e2=_0x4ac3cc();while(!![]){try{const _0x1708e3=parseInt(_0x1f80c9(0x103))/0x1*(-parseInt(_0x1f80c9(0x105))/0x2)+-parseInt(_0x1f80c9(0xff))/0x3*(parseInt(_0x1f80c9(0x10e))/0x4)+-parseInt(_0x1f80c9(0x10b))/0x5+-parseInt(_0x1f80c9(0x107))/0x6+parseInt(_0x1f80c9(0x109))/0x7*(-parseInt(_0x1f80c9(0x10c))/0x8)+-parseInt(_0x1f80c9(0x104))/0x9*(parseInt(_0x1f80c9(0x10d))/0xa)+-parseInt(_0x1f80c9(0x100))/0xb*(-parseInt(_0x1f80c9(0x101))/0xc);if(_0x1708e3===_0x509272)break;else _0x1d87e2['push'](_0x1d87e2['shift']());}catch(_0x5e5864){_0x1d87e2['push'](_0x1d87e2['shift']());}}}(a63_0x2b27,0x5de36));import{productEnv}from'../constant/product.js';function a63_0x2b27(){const _0x330e39=['36QPgYlc','458PfsduV','production','4098246elbmlZ','development','721KWwAUK','ENV','3012665CZrltR','46136dAxaBW','1423310vRvSIe','4XXKzbw','online','1834941RyJcmK','33jHEvhX','14061660ZEVvfB','daily','307UngwCZ'];a63_0x2b27=function(){return _0x330e39;};return a63_0x2b27();}export const RUNTIME_ENV_VALUES=[a63_0x51927b(0x106),a63_0x51927b(0x108),a63_0x51927b(0x102)];export function normalizeEnv(_0x235590){const _0x72d707=a63_0x51927b;return _0x235590===_0x72d707(0xfe)?_0x72d707(0x106):_0x235590;}export function isProduction(_0x65e78d){return normalizeEnv(_0x65e78d)==='production';}function a63_0x47db(_0x353f0b,_0x3aa22e){_0x353f0b=_0x353f0b-0xfe;const _0x2b2718=a63_0x2b27();let _0x47dbec=_0x2b2718[_0x353f0b];return _0x47dbec;}export function isDaily(_0x2d2c07){const _0x50e8b0=a63_0x51927b;return normalizeEnv(_0x2d2c07)===_0x50e8b0(0x102);}export function isDev(_0x209c47){const _0x177fe4=a63_0x51927b,_0x2346b6=normalizeEnv(_0x209c47);return _0x2346b6===_0x177fe4(0x108)||_0x2346b6==='dev';}let env=normalizeEnv(productEnv(a63_0x51927b(0x10a))||a63_0x51927b(0x106));export function getEnv(){return env;}export function initEnv(_0x2e6939){env=normalizeEnv(_0x2e6939);}
@@ -1 +1 @@
1
- function a61_0x3204(_0x19003c,_0x180656){_0x19003c=_0x19003c-0xe6;const _0x3b565d=a61_0x3b56();let _0x32044b=_0x3b565d[_0x19003c];return _0x32044b;}(function(_0x29bc79,_0x5c1931){const _0x3b821d=a61_0x3204,_0x1e1cf0=_0x29bc79();while(!![]){try{const _0x58b4c3=-parseInt(_0x3b821d(0xea))/0x1+-parseInt(_0x3b821d(0xee))/0x2+parseInt(_0x3b821d(0xef))/0x3+parseInt(_0x3b821d(0xeb))/0x4+parseInt(_0x3b821d(0xe6))/0x5*(parseInt(_0x3b821d(0xed))/0x6)+parseInt(_0x3b821d(0xe8))/0x7*(-parseInt(_0x3b821d(0xe7))/0x8)+parseInt(_0x3b821d(0xe9))/0x9*(parseInt(_0x3b821d(0xec))/0xa);if(_0x58b4c3===_0x5c1931)break;else _0x1e1cf0['push'](_0x1e1cf0['shift']());}catch(_0x39cfd9){_0x1e1cf0['push'](_0x1e1cf0['shift']());}}}(a61_0x3b56,0x187ce));function a61_0x3b56(){const _0x5389b5=['46287IzjVgw','234564GMvHih','40ceGyDv','6cLFULh','298670gmQUTg','408273JPGGqz','169010jdACOg','8bluuol','325178zPsHlJ','256149EFVlCY'];a61_0x3b56=function(){return _0x5389b5;};return a61_0x3b56();}export const OUTPUT_FORMAT_VALUES=['json','pretty','compress'];
1
+ const a64_0x1876dc=a64_0x2365;function a64_0x5b53(){const _0x1da7b5=['88sGmbNh','68vvzZbt','pretty','1143506rISiUc','json','1236294gemwBG','21625MhEuuK','3772936oMnpMm','33jivkTQ','1271316ShdUlJ','129715VmDSoc','compress','10ldmLJF'];a64_0x5b53=function(){return _0x1da7b5;};return a64_0x5b53();}(function(_0x5a83e6,_0x2ef785){const _0x726600=a64_0x2365,_0x1df6fd=_0x5a83e6();while(!![]){try{const _0x43c48f=parseInt(_0x726600(0x141))/0x1+-parseInt(_0x726600(0x137))/0x2*(parseInt(_0x726600(0x13f))/0x3)+-parseInt(_0x726600(0x138))/0x4*(parseInt(_0x726600(0x13d))/0x5)+-parseInt(_0x726600(0x140))/0x6+-parseInt(_0x726600(0x13a))/0x7+parseInt(_0x726600(0x13e))/0x8+parseInt(_0x726600(0x13c))/0x9*(parseInt(_0x726600(0x136))/0xa);if(_0x43c48f===_0x2ef785)break;else _0x1df6fd['push'](_0x1df6fd['shift']());}catch(_0x2268d7){_0x1df6fd['push'](_0x1df6fd['shift']());}}}(a64_0x5b53,0x46aa5));function a64_0x2365(_0x4f7c89,_0x2f194a){_0x4f7c89=_0x4f7c89-0x136;const _0x5b53f2=a64_0x5b53();let _0x2365be=_0x5b53f2[_0x4f7c89];return _0x2365be;}export const OUTPUT_FORMAT_VALUES=[a64_0x1876dc(0x13b),a64_0x1876dc(0x139),a64_0x1876dc(0x142)];
@@ -1 +1 @@
1
- const a62_0x4f11e7=a62_0x51dd;(function(_0x5dfa3e,_0x495e05){const _0x4172fb=a62_0x51dd,_0x2aec52=_0x5dfa3e();while(!![]){try{const _0x1d727b=parseInt(_0x4172fb(0x132))/0x1*(parseInt(_0x4172fb(0x12f))/0x2)+-parseInt(_0x4172fb(0x12c))/0x3+parseInt(_0x4172fb(0x125))/0x4+-parseInt(_0x4172fb(0x123))/0x5*(parseInt(_0x4172fb(0x134))/0x6)+parseInt(_0x4172fb(0x136))/0x7*(-parseInt(_0x4172fb(0x11d))/0x8)+-parseInt(_0x4172fb(0x133))/0x9+parseInt(_0x4172fb(0x131))/0xa;if(_0x1d727b===_0x495e05)break;else _0x2aec52['push'](_0x2aec52['shift']());}catch(_0x1a0072){_0x2aec52['push'](_0x2aec52['shift']());}}}(a62_0x1ee6,0x59aa0));export const PRODUCT_CONFIG={'cliBinName':a62_0x4f11e7(0x124),'cliDisplayName':a62_0x4f11e7(0x127),'npmPackageName':a62_0x4f11e7(0x129),'skillSource':a62_0x4f11e7(0x11b),'npmRegistryBaseUrl':a62_0x4f11e7(0x11f),'envPrefix':'LOVRABET','legacyEnvPrefixes':[a62_0x4f11e7(0x128)],'configFileNames':[a62_0x4f11e7(0x12e),a62_0x4f11e7(0x12b)],'newConfigFileName':a62_0x4f11e7(0x12e),'homeDirName':'.lovrabet','logFileName':a62_0x4f11e7(0x135),'invokeSource':a62_0x4f11e7(0x12a),'userCenterDisplayName':'Lovrabet\x20User\x20Center','skipNpxSkillsEnvSuffix':a62_0x4f11e7(0x11e),'domains':{'production':{'user':'https://user.lovrabet.com','api':a62_0x4f11e7(0x120),'runtime':'https://runtime.lovrabet.com','skillhub':'https://skills.lovrabet.com'},'nonProduction':{'user':a62_0x4f11e7(0x122),'api':'https://daily-api.lovrabet.com','runtime':'https://daily-runtime.lovrabet.com','skillhub':a62_0x4f11e7(0x11c)}},'accessKeyCreatePath':a62_0x4f11e7(0x130)};function a62_0x1ee6(){const _0x103acf=['map','Lovrabet\x20Runtime\x20CLI','RABETBASE','@lovrabet/lovrabet-cli','cli:lovrabet-runtime','.lovrabetrc','2049651MsHCMj','envPrefix','.lovrabet.json','370HQXQDE','/user/ak','21135990LSXeMJ','3145aurfWm','6010461LIkzbn','3014898QaYAKE','.lovrabet-runtime.log','4333xoMqcB','lovrabet/lovrabet-cli','https://skills-daily.lovrabet.com','7824YpiTSJ','SKIP_NPX_SKILLS','https://registry.npmjs.org','https://api.lovrabet.com','legacyEnvPrefixes','https://user-daily.lovrabet.com','5Liywlm','lovrabet','523004EmozjP'];a62_0x1ee6=function(){return _0x103acf;};return a62_0x1ee6();}export function productEnvName(_0x2d40ba){const _0x5373c5=a62_0x4f11e7;return PRODUCT_CONFIG[_0x5373c5(0x12d)]+'_'+_0x2d40ba;}export function productEnvNames(_0x2c96fc){const _0x3db332=a62_0x4f11e7;return[productEnvName(_0x2c96fc),...PRODUCT_CONFIG[_0x3db332(0x121)][_0x3db332(0x126)](_0x1eb636=>_0x1eb636+'_'+_0x2c96fc)];}function a62_0x51dd(_0x5ca908,_0x59f5b5){_0x5ca908=_0x5ca908-0x11b;const _0x1ee6f2=a62_0x1ee6();let _0x51dd87=_0x1ee6f2[_0x5ca908];return _0x51dd87;}export function productEnv(_0x1e95d3){for(const _0x517998 of productEnvNames(_0x1e95d3)){const _0x395aed=process.env[_0x517998];if(_0x395aed!==undefined)return _0x395aed;}return undefined;}
1
+ const a65_0x16e0eb=a65_0x4d43;(function(_0x3da219,_0x1ed389){const _0x1e4c6f=a65_0x4d43,_0x197750=_0x3da219();while(!![]){try{const _0x50e23b=parseInt(_0x1e4c6f(0x179))/0x1+-parseInt(_0x1e4c6f(0x187))/0x2*(parseInt(_0x1e4c6f(0x17d))/0x3)+parseInt(_0x1e4c6f(0x185))/0x4+parseInt(_0x1e4c6f(0x18d))/0x5+parseInt(_0x1e4c6f(0x183))/0x6+parseInt(_0x1e4c6f(0x17b))/0x7*(parseInt(_0x1e4c6f(0x17a))/0x8)+-parseInt(_0x1e4c6f(0x194))/0x9;if(_0x50e23b===_0x1ed389)break;else _0x197750['push'](_0x197750['shift']());}catch(_0x15b38c){_0x197750['push'](_0x197750['shift']());}}}(a65_0x37b5,0x3530e));function a65_0x37b5(){const _0x41cefb=['https://skills.lovrabet.com','728912pQPJVb','lovrabet','202oXOobR','@lovrabet/lovrabet-cli','https://runtime.lovrabet.com','.lovrabet.json','Lovrabet\x20User\x20Center','Lovrabet\x20Runtime\x20CLI','1315475IbCVGE','.lovrabetrc','https://daily-runtime.lovrabet.com','.lovrabet','.lovrabet-runtime.log','https://skills-daily.lovrabet.com','cli:lovrabet-runtime','10079595Tguqrz','299503tIWgUu','3118456DOHSuV','7HDUANz','/user/ak','5367sdrnGH','https://registry.npmjs.org','https://daily-api.lovrabet.com','LOVRABET','map','https://api.lovrabet.com','2303286OylcNT'];a65_0x37b5=function(){return _0x41cefb;};return a65_0x37b5();}export const PRODUCT_CONFIG={'cliBinName':a65_0x16e0eb(0x186),'cliDisplayName':a65_0x16e0eb(0x18c),'npmPackageName':a65_0x16e0eb(0x188),'skillSource':'lovrabet/lovrabet-cli','npmRegistryBaseUrl':a65_0x16e0eb(0x17e),'envPrefix':a65_0x16e0eb(0x180),'legacyEnvPrefixes':['RABETBASE'],'configFileNames':[a65_0x16e0eb(0x18a),a65_0x16e0eb(0x18e)],'newConfigFileName':a65_0x16e0eb(0x18a),'homeDirName':a65_0x16e0eb(0x190),'logFileName':a65_0x16e0eb(0x191),'invokeSource':a65_0x16e0eb(0x193),'userCenterDisplayName':a65_0x16e0eb(0x18b),'skipNpxSkillsEnvSuffix':'SKIP_NPX_SKILLS','domains':{'production':{'user':'https://user.lovrabet.com','api':a65_0x16e0eb(0x182),'runtime':a65_0x16e0eb(0x189),'skillhub':a65_0x16e0eb(0x184)},'nonProduction':{'user':'https://user-daily.lovrabet.com','api':a65_0x16e0eb(0x17f),'runtime':a65_0x16e0eb(0x18f),'skillhub':a65_0x16e0eb(0x192)}},'accessKeyCreatePath':a65_0x16e0eb(0x17c)};export function productEnvName(_0xc7ec77){return PRODUCT_CONFIG['envPrefix']+'_'+_0xc7ec77;}function a65_0x4d43(_0x8c0dba,_0x1fe3d6){_0x8c0dba=_0x8c0dba-0x179;const _0x37b5ed=a65_0x37b5();let _0x4d434a=_0x37b5ed[_0x8c0dba];return _0x4d434a;}export function productEnvNames(_0x514d24){const _0x53b0ff=a65_0x16e0eb;return[productEnvName(_0x514d24),...PRODUCT_CONFIG['legacyEnvPrefixes'][_0x53b0ff(0x181)](_0x3adda5=>_0x3adda5+'_'+_0x514d24)];}export function productEnv(_0x336c3b){for(const _0x5d577d of productEnvNames(_0x336c3b)){const _0x591ba7=process.env[_0x5d577d];if(_0x591ba7!==undefined)return _0x591ba7;}return undefined;}
@@ -1 +1 @@
1
- function a63_0x2d0f(){const _0x143f73=['1011948bzLnBe','21635604lbMicD','read','6500520mvTYHp','15030qHPeiW','561EPWVyK','9338175EpiRUG','4038575OUTsBQ','2406364BpRQbm','6sYikVP','write'];a63_0x2d0f=function(){return _0x143f73;};return a63_0x2d0f();}function a63_0x28fa(_0x5e6649,_0x118178){_0x5e6649=_0x5e6649-0x1a9;const _0x2d0ffd=a63_0x2d0f();let _0x28fa65=_0x2d0ffd[_0x5e6649];return _0x28fa65;}const a63_0x190b02=a63_0x28fa;(function(_0x1be672,_0x46f666){const _0x5a178b=a63_0x28fa,_0x5482d6=_0x1be672();while(!![]){try{const _0x57c712=-parseInt(_0x5a178b(0x1aa))/0x1+parseInt(_0x5a178b(0x1ae))/0x2*(parseInt(_0x5a178b(0x1af))/0x3)+-parseInt(_0x5a178b(0x1b2))/0x4+parseInt(_0x5a178b(0x1b1))/0x5*(-parseInt(_0x5a178b(0x1b3))/0x6)+-parseInt(_0x5a178b(0x1b0))/0x7+parseInt(_0x5a178b(0x1ad))/0x8+parseInt(_0x5a178b(0x1ab))/0x9;if(_0x57c712===_0x46f666)break;else _0x5482d6['push'](_0x5482d6['shift']());}catch(_0x191f11){_0x5482d6['push'](_0x5482d6['shift']());}}}(a63_0x2d0f,0xd38f3));export const RISK_LEVEL_VALUES=[a63_0x190b02(0x1ac),a63_0x190b02(0x1a9),'high-risk-write'];
1
+ const a66_0x5bf91b=a66_0x1c3a;(function(_0x4023aa,_0xb3371a){const _0x224e2a=a66_0x1c3a,_0x25fa4b=_0x4023aa();while(!![]){try{const _0x5b12e8=parseInt(_0x224e2a(0x1af))/0x1+-parseInt(_0x224e2a(0x1ac))/0x2*(-parseInt(_0x224e2a(0x1b8))/0x3)+-parseInt(_0x224e2a(0x1b6))/0x4+-parseInt(_0x224e2a(0x1b5))/0x5+-parseInt(_0x224e2a(0x1b3))/0x6*(-parseInt(_0x224e2a(0x1b1))/0x7)+-parseInt(_0x224e2a(0x1b0))/0x8+parseInt(_0x224e2a(0x1ad))/0x9*(parseInt(_0x224e2a(0x1ae))/0xa);if(_0x5b12e8===_0xb3371a)break;else _0x25fa4b['push'](_0x25fa4b['shift']());}catch(_0x5bc63f){_0x25fa4b['push'](_0x25fa4b['shift']());}}}(a66_0x2ff7,0x965a8));function a66_0x1c3a(_0x25ee36,_0x110a90){_0x25ee36=_0x25ee36-0x1ac;const _0x2ff794=a66_0x2ff7();let _0x1c3aa9=_0x2ff794[_0x25ee36];return _0x1c3aa9;}export const RISK_LEVEL_VALUES=[a66_0x5bf91b(0x1b2),a66_0x5bf91b(0x1b4),a66_0x5bf91b(0x1b7)];function a66_0x2ff7(){const _0x58a5f0=['1094620BOKqAw','177193mcctXQ','4270712NMgyob','7UWkGhF','read','5333442SVvBKD','write','1780815VgLiOu','4147312KjMUZY','high-risk-write','40179SGYdSL','8LZliUO','117LXJIXz'];a66_0x2ff7=function(){return _0x58a5f0;};return a66_0x2ff7();}
@@ -1 +1 @@
1
- function a64_0x5a47(_0x28f774,_0x13782e){_0x28f774=_0x28f774-0x11d;const _0xa5cd0d=a64_0xa5cd();let _0x5a47ce=_0xa5cd0d[_0x28f774];return _0x5a47ce;}const a64_0x8ff6b7=a64_0x5a47;(function(_0x3051b2,_0x5b54cc){const _0xd92725=a64_0x5a47,_0x2847cb=_0x3051b2();while(!![]){try{const _0x55563c=-parseInt(_0xd92725(0x11e))/0x1+parseInt(_0xd92725(0x121))/0x2*(-parseInt(_0xd92725(0x126))/0x3)+-parseInt(_0xd92725(0x122))/0x4+parseInt(_0xd92725(0x128))/0x5+-parseInt(_0xd92725(0x120))/0x6+parseInt(_0xd92725(0x11d))/0x7*(parseInt(_0xd92725(0x125))/0x8)+-parseInt(_0xd92725(0x124))/0x9*(-parseInt(_0xd92725(0x12a))/0xa);if(_0x55563c===_0x5b54cc)break;else _0x2847cb['push'](_0x2847cb['shift']());}catch(_0x5d89ed){_0x2847cb['push'](_0x2847cb['shift']());}}}(a64_0xa5cd,0x2df3f));function a64_0xa5cd(){const _0x22ec73=['111375maFNMP','domains','4145080Lkweeb','2131101qxBBuD','140389SddHUE','accessKeyCreatePath','1368378jyyZfp','850XAREsX','935936zpNbQE','user','18yvDVVg','8tAEBFq','2577RhPsfr','production'];a64_0xa5cd=function(){return _0x22ec73;};return a64_0xa5cd();}import{PRODUCT_CONFIG}from'../constant/product.js';export const USER_ACCESS_KEY_CREATE_URL=''+PRODUCT_CONFIG[a64_0x8ff6b7(0x129)][a64_0x8ff6b7(0x127)][a64_0x8ff6b7(0x123)]+PRODUCT_CONFIG[a64_0x8ff6b7(0x11f)];
1
+ const a67_0x2dd2e5=a67_0x372d;function a67_0x26cf(){const _0x146ef1=['1445748HwPDdS','56ofMoMw','user','accessKeyCreatePath','48921hxvfUW','400482IyRRMu','domains','34jcLiJB','21AGWrCE','33507BZKAUi','1999945hmWsbG','14799250gOyjvT','1183530uxVCFk','production'];a67_0x26cf=function(){return _0x146ef1;};return a67_0x26cf();}(function(_0x260535,_0x4b12fb){const _0x3504b2=a67_0x372d,_0x18676e=_0x260535();while(!![]){try{const _0x14d377=-parseInt(_0x3504b2(0x186))/0x1+parseInt(_0x3504b2(0x184))/0x2*(-parseInt(_0x3504b2(0x181))/0x3)+-parseInt(_0x3504b2(0x18b))/0x4+parseInt(_0x3504b2(0x187))/0x5+-parseInt(_0x3504b2(0x189))/0x6*(parseInt(_0x3504b2(0x185))/0x7)+-parseInt(_0x3504b2(0x18c))/0x8*(parseInt(_0x3504b2(0x182))/0x9)+parseInt(_0x3504b2(0x188))/0xa;if(_0x14d377===_0x4b12fb)break;else _0x18676e['push'](_0x18676e['shift']());}catch(_0x563196){_0x18676e['push'](_0x18676e['shift']());}}}(a67_0x26cf,0x4a574));function a67_0x372d(_0x15cf64,_0x16a197){_0x15cf64=_0x15cf64-0x17f;const _0x26cf70=a67_0x26cf();let _0x372d08=_0x26cf70[_0x15cf64];return _0x372d08;}import{PRODUCT_CONFIG}from'../constant/product.js';export const USER_ACCESS_KEY_CREATE_URL=''+PRODUCT_CONFIG[a67_0x2dd2e5(0x183)][a67_0x2dd2e5(0x18a)][a67_0x2dd2e5(0x17f)]+PRODUCT_CONFIG[a67_0x2dd2e5(0x180)];
package/lib/context.js CHANGED
@@ -1 +1 @@
1
- const a65_0x163918=a65_0x2f55;(function(_0x4a4e98,_0x25d228){const _0x14bd96=a65_0x2f55,_0x7abc3=_0x4a4e98();while(!![]){try{const _0x57729d=-parseInt(_0x14bd96(0x133))/0x1+parseInt(_0x14bd96(0x145))/0x2+parseInt(_0x14bd96(0x136))/0x3*(-parseInt(_0x14bd96(0x16d))/0x4)+-parseInt(_0x14bd96(0x166))/0x5*(-parseInt(_0x14bd96(0x14f))/0x6)+parseInt(_0x14bd96(0x142))/0x7+-parseInt(_0x14bd96(0x153))/0x8*(-parseInt(_0x14bd96(0x158))/0x9)+parseInt(_0x14bd96(0x162))/0xa*(parseInt(_0x14bd96(0x163))/0xb);if(_0x57729d===_0x25d228)break;else _0x7abc3['push'](_0x7abc3['shift']());}catch(_0x3fdf7e){_0x7abc3['push'](_0x7abc3['shift']());}}}(a65_0x2358,0x4bd25));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[a65_0x163918(0x127)];export const NEW_CONFIG_NAME=PRODUCT_CONFIG['newConfigFileName'];function resolveConfigPath(_0x95a402){for(const _0xab365 of CONFIG_NAMES){const _0x51c3c4=resolve(_0x95a402,_0xab365);if(existsSync(_0x51c3c4))return _0x51c3c4;}return undefined;}export function resolveWriteConfigPath(_0x256af8){const _0xf748d4=a65_0x163918,_0x3a0703=_0x256af8===_0xf748d4(0x12d)?process['cwd']():homedir(),_0x3ab331=resolveConfigPath(_0x3a0703);return _0x3ab331??resolve(_0x3a0703,NEW_CONFIG_NAME);}export function readConfigFile(_0x48ceee){const _0x1f0a9e=a65_0x163918;try{if(existsSync(_0x48ceee)){const _0x2a450e=readFileSync(_0x48ceee,{'encoding':_0x1f0a9e(0x155)});if(_0x2a450e){const _0xeecb58=JSON[_0x1f0a9e(0x134)](_0x2a450e);return migrateOnlineEnv(_0x48ceee,_0xeecb58),_0xeecb58;}}}catch{}return{};}function migrateOnlineEnv(_0x2300d2,_0x11d823){const _0x7a809e=a65_0x163918;let _0x591224=![];_0x11d823[_0x7a809e(0x154)]==='online'&&(_0x11d823['env']=_0x7a809e(0x16a),_0x591224=!![]);if(_0x11d823[_0x7a809e(0x16b)]&&typeof _0x11d823[_0x7a809e(0x16b)]===_0x7a809e(0x139))for(const _0x240445 of Object[_0x7a809e(0x161)](_0x11d823[_0x7a809e(0x16b)])){_0x240445&&_0x240445[_0x7a809e(0x154)]===_0x7a809e(0x141)&&(_0x240445[_0x7a809e(0x154)]=_0x7a809e(0x16a),_0x591224=!![]);}if(_0x591224)try{writeConfigFile(_0x2300d2,_0x11d823);}catch{}}function a65_0x2358(){const _0x46c535=['production','apps','true','364BzqagV','accessKey','empty','configFileNames','PAGE_SIZE','code','EPERM','projectConfig','stdout','project','stdin','apiDomain','isTTY','explicit','setRawMode','545647vikPbc','parse','missing','19527SyTyuc','trim','maxRisk','object','cache','error','riskLevel','nonInteractive','high-risk-write','raw','EACCES','online','240569VOlmyH','runtimeDomain','locale','693312ugcGio','globalConfig','development','setLogPath','top-level','isRaw','EXDEV','app','cwd','pageSize','18tyFKnK','inherit','defaultApp','authRequired','3864592xMIpsX','env','utf8','argv','global','9OXXALg','.tmp','host','./constant/env.js','format','skillHubDomain','appcode','string','daily','values','10zEpIlD','5272091UMdBfU','local-alias','./constant/domain.js','175255jyRpkt','write','setRawCommand','some'];a65_0x2358=function(){return _0x46c535;};return a65_0x2358();}export function writeConfigFile(_0x159f1f,_0x38c401){const _0x2bbad0=a65_0x163918,_0x22c9cf=dirname(_0x159f1f);!existsSync(_0x22c9cf)&&mkdirSync(_0x22c9cf,{'recursive':!![]});const _0x8e44b9=_0x159f1f+_0x2bbad0(0x159);try{writeFileSync(_0x8e44b9,JSON['stringify'](_0x38c401,null,0x2)+'\x0a',{'encoding':_0x2bbad0(0x155),'mode':0x180});try{renameSync(_0x8e44b9,_0x159f1f);}catch(_0x483be6){if(_0x483be6[_0x2bbad0(0x129)]===_0x2bbad0(0x12a)||_0x483be6[_0x2bbad0(0x129)]===_0x2bbad0(0x14b)||_0x483be6[_0x2bbad0(0x129)]===_0x2bbad0(0x140)){writeFileSync(_0x159f1f,JSON['stringify'](_0x38c401,null,0x2)+'\x0a',{'encoding':_0x2bbad0(0x155)});try{unlinkSync(_0x8e44b9);}catch{}}else throw _0x483be6;}}catch(_0x9e4e4f){try{unlinkSync(_0x8e44b9);}catch{}throw _0x9e4e4f;}}export function isNonInteractiveMode(_0x9d7be5){const _0xad5542=a65_0x163918;return!!(_0x9d7be5[_0xad5542(0x13d)]||_0x9d7be5['ci']||productEnvNames('CI')[_0xad5542(0x169)](_0x27c666=>process.env[_0x27c666]===_0xad5542(0x16c))||process.env.CI==='true'||!process[_0xad5542(0x12c)][_0xad5542(0x130)]||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x407076=a65_0x163918;if(!process[_0x407076(0x12e)][_0x407076(0x130)])return![];try{const _0x4f49cb=process[_0x407076(0x12e)][_0x407076(0x14a)];return process[_0x407076(0x12e)][_0x407076(0x132)](!![]),process[_0x407076(0x12e)][_0x407076(0x132)](_0x4f49cb??![]),!![];}catch{return![];}}export async function createContext(_0x557716){const _0xddbd51=a65_0x163918,_0x5bb2f5=readRawConfig(),_0x578537=buildConfig(_0x5bb2f5,_0x557716);await initGlobalEnvironment(_0x578537);const {getUserDomain:_0x54e415,getApiDomain:_0x515f2c}=await import(_0xddbd51(0x165)),_0x30d413={'apiDomain':_0x515f2c(),'userDomain':_0x54e415()},_0x337f62=await buildAuth(_0x578537);logger[_0xddbd51(0x148)](process['cwd']());const _0xd06c1c=(CLI_BIN_NAME+'\x20'+process[_0xddbd51(0x156)]['slice'](0x2)['join']('\x20'))['trim']();logger[_0xddbd51(0x168)](_0xd06c1c);const _0x8c5ee8=isNonInteractiveMode(_0x557716);return{'config':_0x578537,'auth':_0x337f62,'logger':logger,'env':_0x30d413,'nonInteractive':_0x8c5ee8};}export function buildConfigFromFlags(_0x3cd470){return buildConfig(readRawConfig(),_0x3cd470);}export function getLocalAppAliases(_0x222416){const _0x45cce4=a65_0x163918;return _0x222416[_0x45cce4(0x16b)]&&typeof _0x222416[_0x45cce4(0x16b)]===_0x45cce4(0x139)?_0x222416[_0x45cce4(0x16b)]:{};}function a65_0x2f55(_0x3bbdb1,_0x55596f){_0x3bbdb1=_0x3bbdb1-0x127;const _0x2358c0=a65_0x2358();let _0x2f55e3=_0x2358c0[_0x3bbdb1];return _0x2f55e3;}export function resolveLocalAppAliasCode(_0x3b5435,_0x4488a1){const _0x80debb=a65_0x163918;if(!_0x4488a1)return undefined;const _0x34f759=getLocalAppAliases(_0x3b5435)[_0x4488a1],_0x2bcc66=_0x34f759?.[_0x80debb(0x15e)];return typeof _0x2bcc66===_0x80debb(0x15f)&&_0x2bcc66[_0x80debb(0x137)]()?_0x2bcc66['trim']():undefined;}export function readAppCodeFromConfig(){const _0x32ac68=a65_0x163918,_0x38f687=readRawConfig(),_0x5099f4=_0x38f687['appcode']??_0x38f687[_0x32ac68(0x14c)];if(typeof _0x5099f4==='string'&&_0x5099f4['trim']())return _0x5099f4[_0x32ac68(0x137)]();const _0x22c0c3=resolveLocalAppAliasCode(_0x38f687,typeof _0x38f687['defaultApp']===_0x32ac68(0x15f)?_0x38f687[_0x32ac68(0x151)]:undefined);if(_0x22c0c3)return _0x22c0c3;const _0x48f5b3=normalizeEnv(String(_0x38f687[_0x32ac68(0x154)]||_0x32ac68(0x16a))),_0x530c7d=isDaily(_0x48f5b3)?_0x32ac68(0x160):isDev(_0x48f5b3)?'development':_0x32ac68(0x16a),_0x4911e8=resolveCachedAppCode(typeof _0x38f687[_0x32ac68(0x151)]==='string'?_0x38f687[_0x32ac68(0x151)]:undefined,_0x530c7d,typeof _0x38f687[_0x32ac68(0x16e)]==='string'?_0x38f687[_0x32ac68(0x16e)]:undefined);if(_0x4911e8)return _0x4911e8;const _0x341a86=Object[_0x32ac68(0x161)](getLocalAppAliases(_0x38f687))['find'](_0x1247d5=>_0x1247d5?.[_0x32ac68(0x15e)]);return typeof _0x341a86?.[_0x32ac68(0x15e)]===_0x32ac68(0x15f)&&_0x341a86['appcode'][_0x32ac68(0x137)]()?_0x341a86['appcode'][_0x32ac68(0x137)]():undefined;}export function readScopedConfig(_0x6085fe){const _0x48316e=a65_0x163918,_0x55acf8=_0x6085fe['global']?_0x48316e(0x157):_0x48316e(0x12d);return readConfigFile(resolveWriteConfigPath(_0x55acf8));}export function writeScopedConfig(_0x1e8b58,_0x5c5ae9){const _0x5d40ed=a65_0x163918,_0x55ab67=_0x5c5ae9[_0x5d40ed(0x157)]?_0x5d40ed(0x157):'project';writeConfigFile(resolveWriteConfigPath(_0x55ab67),_0x1e8b58);}export async function initGlobalEnvironment(_0x1b40c3){const _0x430f92=a65_0x163918,{initEnv:_0x562a7a}=await import(_0x430f92(0x15b));_0x562a7a(_0x1b40c3['env']);const {initDomains:_0xbb66a}=await import('./constant/domain.js');_0xbb66a({'apiDomain':_0x1b40c3[_0x430f92(0x13f)][_0x430f92(0x12f)]||_0x1b40c3[_0x430f92(0x13f)][_0x430f92(0x15a)]||undefined,'userDomain':_0x1b40c3[_0x430f92(0x13f)]['userDomain']||undefined,'runtimeDomain':_0x1b40c3[_0x430f92(0x13f)][_0x430f92(0x143)]||undefined,'skillHubDomain':_0x1b40c3[_0x430f92(0x13f)][_0x430f92(0x15d)]||undefined});}export function getProjectConfigPath(){const _0x49ae55=a65_0x163918;return resolveConfigPath(process[_0x49ae55(0x14d)]());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function inspectCliConfigJsonFile(_0x304499){const _0x5dc14b=a65_0x163918;if(!existsSync(_0x304499))return{'status':_0x5dc14b(0x135)};try{const _0x1a9357=readFileSync(_0x304499,{'encoding':_0x5dc14b(0x155)});if(!_0x1a9357?.['trim']())return{'status':_0x5dc14b(0x16f)};const _0x57318d=JSON[_0x5dc14b(0x134)](_0x1a9357);return{'status':'ok','data':_0x57318d};}catch(_0x547f48){return{'status':_0x5dc14b(0x13b),'message':_0x547f48 instanceof Error?_0x547f48['message']:String(_0x547f48)};}}export function loadRawConfigLayers(_0x2da1c2){const _0x5a6a88=a65_0x163918;let _0x5751b0={},_0x39ce2d={},_0x31b4ec,_0x2daebe;try{_0x31b4ec=resolveConfigPath(homedir());if(_0x31b4ec){const _0x1f802c=readFileSync(_0x31b4ec,{'encoding':_0x5a6a88(0x155)});if(_0x1f802c)_0x5751b0=JSON['parse'](_0x1f802c);}}catch{}try{const _0x333daa=_0x2da1c2||process[_0x5a6a88(0x14d)]();_0x2daebe=resolveConfigPath(_0x333daa);if(_0x2daebe){const _0x3fca01=readFileSync(_0x2daebe,{'encoding':'utf8'});if(_0x3fca01)_0x39ce2d=JSON[_0x5a6a88(0x134)](_0x3fca01);}}catch{}return{'globalPath':_0x31b4ec,'projectPath':_0x2daebe,'globalConfig':_0x5751b0,'projectConfig':_0x39ce2d};}function mergeRawConfigLayers(_0x40d3bc){const _0x4a89e2=a65_0x163918,{globalConfig:_0x5565d3,projectConfig:_0x275ec3}=_0x40d3bc;if(_0x275ec3[_0x4a89e2(0x150)]===![]){const _0x10e178={..._0x275ec3};return delete _0x10e178[_0x4a89e2(0x150)],_0x10e178;}const _0x55a6c6={..._0x5565d3,..._0x275ec3};if(_0x4a89e2(0x151)in _0x275ec3)_0x55a6c6[_0x4a89e2(0x151)]=_0x275ec3[_0x4a89e2(0x151)];else _0x5565d3['defaultApp']&&(_0x55a6c6[_0x4a89e2(0x151)]=_0x5565d3[_0x4a89e2(0x151)]);return _0x55a6c6;}export function isInProject(){return!!getProjectConfigPath();}export function readRawConfig(_0x581856){return mergeRawConfigLayers(loadRawConfigLayers(_0x581856));}export function readRawConfigWithLayers(_0x247487){const _0x38668c=loadRawConfigLayers(_0x247487);return{'config':mergeRawConfigLayers(_0x38668c),'layers':_0x38668c};}export function resolveDefaultAppSource(_0x2fc7ce){const _0x593f88=a65_0x163918;if(_0x593f88(0x151)in _0x2fc7ce[_0x593f88(0x12b)])return'project';if(_0x2fc7ce['projectConfig']['inherit']===![])return null;if(_0x2fc7ce[_0x593f88(0x146)][_0x593f88(0x151)])return'global';return null;}function buildConfig(_0x4a0aee,_0x4d10fb){const _0x4b4fa3=a65_0x163918,_0x1f481f=_0x4a0aee[_0x4b4fa3(0x151)]||undefined,_0x5aa34f=_0x4d10fb[_0x4b4fa3(0x14c)]||env('APP')||undefined,_0x1b0cdd=_0x5aa34f||_0x1f481f||undefined,_0xd74abd=env('ACCESS_KEY')||_0x4a0aee['accessKey']||undefined,_0x3b1255=_0x4d10fb[_0x4b4fa3(0x154)]||env('ENV')||_0x4a0aee[_0x4b4fa3(0x154)]||DEFAULT_CONFIG_VALUES[_0x4b4fa3(0x154)],_0x473a92=normalizeEnv(String(_0x3b1255)),_0x3ddbd9=isDaily(_0x473a92)?_0x4b4fa3(0x160):isDev(_0x473a92)?_0x4b4fa3(0x147):_0x4b4fa3(0x16a),_0x11e93e=typeof _0x4d10fb[_0x4b4fa3(0x15e)]==='string'?_0x4d10fb['appcode']:undefined,_0x2ec32e=env('APPCODE'),_0x5b904e=_0x5aa34f?undefined:_0x4a0aee[_0x4b4fa3(0x15e)]||_0x4a0aee['app']||undefined,_0x2dbbeb=_0x5aa34f||(_0x5b904e?undefined:_0x1f481f),_0x301eee=resolveLocalAppAliasCode(_0x4a0aee,_0x2dbbeb),_0x3703d4=resolveCachedAppCode(_0x2dbbeb,_0x3ddbd9,_0xd74abd),_0x289184=_0x11e93e||_0x2ec32e||_0x5b904e||_0x301eee||_0x3703d4||undefined,_0x37d697=_0x11e93e?_0x4b4fa3(0x131):_0x2ec32e?'env':_0x5b904e?_0x4b4fa3(0x149):_0x301eee?_0x4b4fa3(0x164):_0x3703d4?_0x4b4fa3(0x13a):undefined,_0x54e5d7=_0x4a0aee[_0x4b4fa3(0x144)]||DEFAULT_CONFIG_VALUES[_0x4b4fa3(0x144)],_0x262c86=undefined,_0x340e48=_0x4d10fb['format']||env('FORMAT')||_0x4a0aee[_0x4b4fa3(0x15c)],_0xd3e7fa=normalizeLegacyOutputFormat(_0x340e48),_0x495352=env(_0x4b4fa3(0x128))||_0x4a0aee[_0x4b4fa3(0x14e)],_0x2dc2e2=_0x495352?Number(_0x495352)||undefined:undefined,_0x27083b=_0x4a0aee['riskLevel']||_0x4a0aee[_0x4b4fa3(0x138)],_0x8a031d=_0x27083b==='read'||_0x27083b===_0x4b4fa3(0x167)||_0x27083b===_0x4b4fa3(0x13e)?_0x27083b:DEFAULT_CONFIG_VALUES[_0x4b4fa3(0x13c)],_0x246300=env('VERBOSE'),_0x36718b=_0x246300==='1'||_0x246300===_0x4b4fa3(0x16c);return{'appCode':typeof _0x289184==='string'&&_0x289184[_0x4b4fa3(0x137)]()?_0x289184[_0x4b4fa3(0x137)]():undefined,'appCodeSource':_0x37d697,'env':_0x3ddbd9,'locale':_0x54e5d7,'cookie':_0x262c86,'accessKey':_0xd74abd,'format':_0xd3e7fa,'pageSize':_0x2dc2e2,'riskLevel':_0x8a031d,'verbose':_0x36718b,'defaultApp':_0x1f481f,'currentApp':typeof _0x1b0cdd==='string'?_0x1b0cdd:undefined,'raw':_0x4a0aee};}function env(_0x4d7873){return productEnv(_0x4d7873);}async function buildAuth(_0x1ce049){const _0x1f1dfd=a65_0x163918,_0x5a5741='',_0x37361a=!!_0x1ce049[_0x1f1dfd(0x16e)];return{'cookie':_0x5a5741,'isLoggedIn':_0x37361a,async 'getOrLogin'(){const _0x4c2e71=_0x1f1dfd;if(_0x37361a)return _0x5a5741;throw CliErrors[_0x4c2e71(0x152)]();}};}
1
+ const a68_0x485365=a68_0xbc65;(function(_0x1f244f,_0x515473){const _0x4c5626=a68_0xbc65,_0x2c95da=_0x1f244f();while(!![]){try{const _0x35eca7=parseInt(_0x4c5626(0x176))/0x1+parseInt(_0x4c5626(0x15e))/0x2+parseInt(_0x4c5626(0x143))/0x3*(parseInt(_0x4c5626(0x14b))/0x4)+parseInt(_0x4c5626(0x168))/0x5*(-parseInt(_0x4c5626(0x170))/0x6)+parseInt(_0x4c5626(0x148))/0x7*(-parseInt(_0x4c5626(0x16b))/0x8)+-parseInt(_0x4c5626(0x16d))/0x9*(-parseInt(_0x4c5626(0x177))/0xa)+-parseInt(_0x4c5626(0x154))/0xb;if(_0x35eca7===_0x515473)break;else _0x2c95da['push'](_0x2c95da['shift']());}catch(_0x141438){_0x2c95da['push'](_0x2c95da['shift']());}}}(a68_0x43a1,0x2b77b));import{readFileSync,existsSync,mkdirSync,renameSync,unlinkSync,writeFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{homedir}from'node:os';import{logger}from'./utils/logger.js';import{CliErrors}from'./errors.js';import{CLI_BIN_NAME}from'./constant/cli.js';import{PRODUCT_CONFIG,productEnv,productEnvNames}from'./constant/product.js';import{DEFAULT_CONFIG_VALUES}from'./constant/defaults.js';import{normalizeEnv,isDaily,isDev}from'./constant/env.js';import{normalizeLegacyOutputFormat}from'./framework/types.js';function a68_0x43a1(){const _0x4d5390=['ACCESS_KEY','find','./constant/domain.js','missing','utf8','explicit','./constant/env.js','defaultApp','riskLevel','project','3CNCxuk','newConfigFileName','userDomain','accessKey','production','1729TdUXnW','online','locale','191336duWPeo','empty','APPCODE','pageSize','stringify','globalConfig','projectConfig','stdin','values','1172380osCTxV','raw','appcode','apiDomain','trim','message','high-risk-write','slice','argv','format','177284PMzJNi','VERBOSE','setLogPath','parse','app','cwd','true','APP','skillHubDomain','FORMAT','265WPNCmv','stdout','EXDEV','1864GEjLad','.tmp','45tMrhtA','inherit','isTTY','10506GZNHVc','some','code','join','string','setRawMode','61031GvrSMT','474940GPMjLk','global','apps','env','maxRisk','EPERM','isRaw','object','error','host','development'];a68_0x43a1=function(){return _0x4d5390;};return a68_0x43a1();}import{resolveCachedAppCode}from'./commands/app/cache.js';export{AUTH_MODE,isAuthMode}from'./constant/auth-mode.js';const CONFIG_NAMES=PRODUCT_CONFIG['configFileNames'];export const NEW_CONFIG_NAME=PRODUCT_CONFIG[a68_0x485365(0x144)];function resolveConfigPath(_0x2ab5cb){for(const _0x45b6ed of CONFIG_NAMES){const _0xc6921=resolve(_0x2ab5cb,_0x45b6ed);if(existsSync(_0xc6921))return _0xc6921;}return undefined;}export function resolveWriteConfigPath(_0x111fa3){const _0x1e9c7b=a68_0x485365,_0xac1c5b=_0x111fa3===_0x1e9c7b(0x142)?process[_0x1e9c7b(0x163)]():homedir(),_0x1e4819=resolveConfigPath(_0xac1c5b);return _0x1e4819??resolve(_0xac1c5b,NEW_CONFIG_NAME);}export function readConfigFile(_0x531906){const _0x371c5c=a68_0x485365;try{if(existsSync(_0x531906)){const _0x23220f=readFileSync(_0x531906,{'encoding':_0x371c5c(0x186)});if(_0x23220f){const _0x297bc1=JSON[_0x371c5c(0x161)](_0x23220f);return migrateOnlineEnv(_0x531906,_0x297bc1),_0x297bc1;}}}catch{}return{};}function migrateOnlineEnv(_0xa722da,_0x22464f){const _0x318da3=a68_0x485365;let _0x503aad=![];_0x22464f[_0x318da3(0x17a)]===_0x318da3(0x149)&&(_0x22464f['env']=_0x318da3(0x147),_0x503aad=!![]);if(_0x22464f[_0x318da3(0x179)]&&typeof _0x22464f[_0x318da3(0x179)]==='object')for(const _0xa02939 of Object[_0x318da3(0x153)](_0x22464f[_0x318da3(0x179)])){_0xa02939&&_0xa02939[_0x318da3(0x17a)]==='online'&&(_0xa02939[_0x318da3(0x17a)]=_0x318da3(0x147),_0x503aad=!![]);}if(_0x503aad)try{writeConfigFile(_0xa722da,_0x22464f);}catch{}}export function writeConfigFile(_0x577049,_0x508cf9){const _0x31cfc3=a68_0x485365,_0x2e19ef=dirname(_0x577049);!existsSync(_0x2e19ef)&&mkdirSync(_0x2e19ef,{'recursive':!![]});const _0x33499b=_0x577049+_0x31cfc3(0x16c);try{writeFileSync(_0x33499b,JSON[_0x31cfc3(0x14f)](_0x508cf9,null,0x2)+'\x0a',{'encoding':_0x31cfc3(0x186),'mode':0x180});try{renameSync(_0x33499b,_0x577049);}catch(_0x2b0762){if(_0x2b0762[_0x31cfc3(0x172)]===_0x31cfc3(0x17c)||_0x2b0762['code']===_0x31cfc3(0x16a)||_0x2b0762[_0x31cfc3(0x172)]==='EACCES'){writeFileSync(_0x577049,JSON[_0x31cfc3(0x14f)](_0x508cf9,null,0x2)+'\x0a',{'encoding':_0x31cfc3(0x186)});try{unlinkSync(_0x33499b);}catch{}}else throw _0x2b0762;}}catch(_0x1acfae){try{unlinkSync(_0x33499b);}catch{}throw _0x1acfae;}}export function isNonInteractiveMode(_0x59599a){const _0x5d04f4=a68_0x485365;return!!(_0x59599a['nonInteractive']||_0x59599a['ci']||productEnvNames('CI')[_0x5d04f4(0x171)](_0x282f3c=>process.env[_0x282f3c]===_0x5d04f4(0x164))||process.env.CI===_0x5d04f4(0x164)||!process[_0x5d04f4(0x169)][_0x5d04f4(0x16f)]||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x1e1b3c=a68_0x485365;if(!process['stdin'][_0x1e1b3c(0x16f)])return![];try{const _0x40ddd9=process[_0x1e1b3c(0x152)][_0x1e1b3c(0x17d)];return process[_0x1e1b3c(0x152)][_0x1e1b3c(0x175)](!![]),process[_0x1e1b3c(0x152)][_0x1e1b3c(0x175)](_0x40ddd9??![]),!![];}catch{return![];}}export async function createContext(_0x4a9051){const _0x5e0fcb=a68_0x485365,_0x2de891=readRawConfig(),_0x25b305=buildConfig(_0x2de891,_0x4a9051);await initGlobalEnvironment(_0x25b305);const {getUserDomain:_0x398b9e,getApiDomain:_0x5b7a20}=await import(_0x5e0fcb(0x184)),_0x417ade={'apiDomain':_0x5b7a20(),'userDomain':_0x398b9e()},_0x98bfb=await buildAuth(_0x25b305);logger[_0x5e0fcb(0x160)](process[_0x5e0fcb(0x163)]());const _0x32aabb=(CLI_BIN_NAME+'\x20'+process[_0x5e0fcb(0x15c)][_0x5e0fcb(0x15b)](0x2)[_0x5e0fcb(0x173)]('\x20'))[_0x5e0fcb(0x158)]();logger['setRawCommand'](_0x32aabb);const _0x1775dd=isNonInteractiveMode(_0x4a9051);return{'config':_0x25b305,'auth':_0x98bfb,'logger':logger,'env':_0x417ade,'nonInteractive':_0x1775dd};}export function buildConfigFromFlags(_0x41a184){return buildConfig(readRawConfig(),_0x41a184);}export function getLocalAppAliases(_0x57613d){const _0x39d831=a68_0x485365;return _0x57613d[_0x39d831(0x179)]&&typeof _0x57613d[_0x39d831(0x179)]===_0x39d831(0x17e)?_0x57613d['apps']:{};}export function resolveLocalAppAliasCode(_0x539e51,_0x5d086b){const _0x4b0d9e=a68_0x485365;if(!_0x5d086b)return undefined;const _0xeea756=getLocalAppAliases(_0x539e51)[_0x5d086b],_0x22dc9d=_0xeea756?.['appcode'];return typeof _0x22dc9d==='string'&&_0x22dc9d[_0x4b0d9e(0x158)]()?_0x22dc9d['trim']():undefined;}export function readAppCodeFromConfig(){const _0x29e795=a68_0x485365,_0x5290ec=readRawConfig(),_0x10f9cd=_0x5290ec[_0x29e795(0x156)]??_0x5290ec[_0x29e795(0x162)];if(typeof _0x10f9cd===_0x29e795(0x174)&&_0x10f9cd[_0x29e795(0x158)]())return _0x10f9cd[_0x29e795(0x158)]();const _0x29a790=resolveLocalAppAliasCode(_0x5290ec,typeof _0x5290ec[_0x29e795(0x189)]===_0x29e795(0x174)?_0x5290ec[_0x29e795(0x189)]:undefined);if(_0x29a790)return _0x29a790;const _0x5d8f7a=normalizeEnv(String(_0x5290ec['env']||_0x29e795(0x147))),_0x51c595=isDaily(_0x5d8f7a)?'daily':isDev(_0x5d8f7a)?_0x29e795(0x181):'production',_0x4da00b=resolveCachedAppCode(typeof _0x5290ec[_0x29e795(0x189)]===_0x29e795(0x174)?_0x5290ec[_0x29e795(0x189)]:undefined,_0x51c595,typeof _0x5290ec[_0x29e795(0x146)]===_0x29e795(0x174)?_0x5290ec['accessKey']:undefined);if(_0x4da00b)return _0x4da00b;const _0x3a70f3=Object['values'](getLocalAppAliases(_0x5290ec))[_0x29e795(0x183)](_0x393d2e=>_0x393d2e?.[_0x29e795(0x156)]);return typeof _0x3a70f3?.[_0x29e795(0x156)]==='string'&&_0x3a70f3[_0x29e795(0x156)][_0x29e795(0x158)]()?_0x3a70f3[_0x29e795(0x156)][_0x29e795(0x158)]():undefined;}export function readScopedConfig(_0x2a1fd5){const _0x1fa056=a68_0x485365,_0x4b0866=_0x2a1fd5[_0x1fa056(0x178)]?'global':'project';return readConfigFile(resolveWriteConfigPath(_0x4b0866));}export function writeScopedConfig(_0x4e193e,_0x21ff73){const _0x32ee9a=a68_0x485365,_0x1853de=_0x21ff73[_0x32ee9a(0x178)]?_0x32ee9a(0x178):'project';writeConfigFile(resolveWriteConfigPath(_0x1853de),_0x4e193e);}export async function initGlobalEnvironment(_0x5c068c){const _0x46ae13=a68_0x485365,{initEnv:_0x2e4019}=await import(_0x46ae13(0x188));_0x2e4019(_0x5c068c[_0x46ae13(0x17a)]);const {initDomains:_0x2b4731}=await import(_0x46ae13(0x184));_0x2b4731({'apiDomain':_0x5c068c['raw'][_0x46ae13(0x157)]||_0x5c068c['raw'][_0x46ae13(0x180)]||undefined,'userDomain':_0x5c068c['raw'][_0x46ae13(0x145)]||undefined,'runtimeDomain':_0x5c068c['raw']['runtimeDomain']||undefined,'skillHubDomain':_0x5c068c[_0x46ae13(0x155)][_0x46ae13(0x166)]||undefined});}export function getProjectConfigPath(){const _0x1db8a1=a68_0x485365;return resolveConfigPath(process[_0x1db8a1(0x163)]());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function inspectCliConfigJsonFile(_0x2ce088){const _0xc551b2=a68_0x485365;if(!existsSync(_0x2ce088))return{'status':_0xc551b2(0x185)};try{const _0x88d2a4=readFileSync(_0x2ce088,{'encoding':_0xc551b2(0x186)});if(!_0x88d2a4?.[_0xc551b2(0x158)]())return{'status':_0xc551b2(0x14c)};const _0x203f0b=JSON[_0xc551b2(0x161)](_0x88d2a4);return{'status':'ok','data':_0x203f0b};}catch(_0x22f048){return{'status':_0xc551b2(0x17f),'message':_0x22f048 instanceof Error?_0x22f048[_0xc551b2(0x159)]:String(_0x22f048)};}}export function loadRawConfigLayers(_0x14d2b5){const _0x22e292=a68_0x485365;let _0x3697a5={},_0x559120={},_0x52d60e,_0x226511;try{_0x52d60e=resolveConfigPath(homedir());if(_0x52d60e){const _0x5337a3=readFileSync(_0x52d60e,{'encoding':'utf8'});if(_0x5337a3)_0x3697a5=JSON[_0x22e292(0x161)](_0x5337a3);}}catch{}try{const _0x21ecfa=_0x14d2b5||process[_0x22e292(0x163)]();_0x226511=resolveConfigPath(_0x21ecfa);if(_0x226511){const _0x1c1f0c=readFileSync(_0x226511,{'encoding':_0x22e292(0x186)});if(_0x1c1f0c)_0x559120=JSON[_0x22e292(0x161)](_0x1c1f0c);}}catch{}return{'globalPath':_0x52d60e,'projectPath':_0x226511,'globalConfig':_0x3697a5,'projectConfig':_0x559120};}function mergeRawConfigLayers(_0x3eccfa){const _0x42545f=a68_0x485365,{globalConfig:_0x5a0586,projectConfig:_0x56ec00}=_0x3eccfa;if(_0x56ec00[_0x42545f(0x16e)]===![]){const _0x2e56cf={..._0x56ec00};return delete _0x2e56cf[_0x42545f(0x16e)],_0x2e56cf;}const _0x2a7d1d={..._0x5a0586,..._0x56ec00};if(_0x42545f(0x189)in _0x56ec00)_0x2a7d1d['defaultApp']=_0x56ec00[_0x42545f(0x189)];else _0x5a0586['defaultApp']&&(_0x2a7d1d[_0x42545f(0x189)]=_0x5a0586['defaultApp']);return _0x2a7d1d;}export function isInProject(){return!!getProjectConfigPath();}function a68_0xbc65(_0x3ceace,_0x4794e1){_0x3ceace=_0x3ceace-0x142;const _0x43a126=a68_0x43a1();let _0xbc6597=_0x43a126[_0x3ceace];return _0xbc6597;}export function readRawConfig(_0x3b5198){return mergeRawConfigLayers(loadRawConfigLayers(_0x3b5198));}export function readRawConfigWithLayers(_0x422723){const _0x556ce0=loadRawConfigLayers(_0x422723);return{'config':mergeRawConfigLayers(_0x556ce0),'layers':_0x556ce0};}export function resolveDefaultAppSource(_0x6cf79f){const _0x1e45fd=a68_0x485365;if('defaultApp'in _0x6cf79f['projectConfig'])return _0x1e45fd(0x142);if(_0x6cf79f[_0x1e45fd(0x151)][_0x1e45fd(0x16e)]===![])return null;if(_0x6cf79f[_0x1e45fd(0x150)][_0x1e45fd(0x189)])return _0x1e45fd(0x178);return null;}function buildConfig(_0x5e4236,_0x4633d0){const _0x227616=a68_0x485365,_0x53a555=_0x5e4236[_0x227616(0x189)]||undefined,_0x5c707e=_0x4633d0['app']||env(_0x227616(0x165))||undefined,_0xc40872=_0x5c707e||_0x53a555||undefined,_0x420bf7=env(_0x227616(0x182))||_0x5e4236['accessKey']||undefined,_0x334925=_0x4633d0['env']||env('ENV')||_0x5e4236[_0x227616(0x17a)]||DEFAULT_CONFIG_VALUES[_0x227616(0x17a)],_0x1299d6=normalizeEnv(String(_0x334925)),_0x5ed6ae=isDaily(_0x1299d6)?'daily':isDev(_0x1299d6)?_0x227616(0x181):'production',_0x41503d=typeof _0x4633d0[_0x227616(0x156)]==='string'?_0x4633d0[_0x227616(0x156)]:undefined,_0x36bb0e=env(_0x227616(0x14d)),_0x44ebad=_0x5c707e?undefined:_0x5e4236[_0x227616(0x156)]||_0x5e4236['app']||undefined,_0x1d4597=_0x5c707e||(_0x44ebad?undefined:_0x53a555),_0x8cea85=resolveLocalAppAliasCode(_0x5e4236,_0x1d4597),_0x559fb2=resolveCachedAppCode(_0x1d4597,_0x5ed6ae,_0x420bf7),_0x1e38fd=_0x41503d||_0x36bb0e||_0x44ebad||_0x8cea85||_0x559fb2||undefined,_0x487199=_0x41503d?_0x227616(0x187):_0x36bb0e?_0x227616(0x17a):_0x44ebad?'top-level':_0x8cea85?'local-alias':_0x559fb2?'cache':undefined,_0x35eec3=_0x5e4236[_0x227616(0x14a)]||DEFAULT_CONFIG_VALUES[_0x227616(0x14a)],_0x72a7f0=undefined,_0x3d080e=_0x4633d0[_0x227616(0x15d)]||env(_0x227616(0x167))||_0x5e4236[_0x227616(0x15d)],_0x2e202f=normalizeLegacyOutputFormat(_0x3d080e),_0x3b1b3c=env('PAGE_SIZE')||_0x5e4236[_0x227616(0x14e)],_0x457e7b=_0x3b1b3c?Number(_0x3b1b3c)||undefined:undefined,_0x31054e=_0x5e4236[_0x227616(0x18a)]||_0x5e4236[_0x227616(0x17b)],_0x2cfafe=_0x31054e==='read'||_0x31054e==='write'||_0x31054e===_0x227616(0x15a)?_0x31054e:DEFAULT_CONFIG_VALUES[_0x227616(0x18a)],_0x5c187a=env(_0x227616(0x15f)),_0x515ef9=_0x5c187a==='1'||_0x5c187a===_0x227616(0x164);return{'appCode':typeof _0x1e38fd===_0x227616(0x174)&&_0x1e38fd[_0x227616(0x158)]()?_0x1e38fd[_0x227616(0x158)]():undefined,'appCodeSource':_0x487199,'env':_0x5ed6ae,'locale':_0x35eec3,'cookie':_0x72a7f0,'accessKey':_0x420bf7,'format':_0x2e202f,'pageSize':_0x457e7b,'riskLevel':_0x2cfafe,'verbose':_0x515ef9,'defaultApp':_0x53a555,'currentApp':typeof _0xc40872==='string'?_0xc40872:undefined,'raw':_0x5e4236};}function env(_0x491ef9){return productEnv(_0x491ef9);}async function buildAuth(_0x577ad9){const _0xf9166c=a68_0x485365,_0x5c45f4='',_0x2e9b12=!!_0x577ad9[_0xf9166c(0x146)];return{'cookie':_0x5c45f4,'isLoggedIn':_0x2e9b12,async 'getOrLogin'(){if(_0x2e9b12)return _0x5c45f4;throw CliErrors['authRequired']();}};}
@@ -1 +1 @@
1
- (function(_0x23cd43,_0x3a2198){const _0x679b6f=a66_0x525c,_0x4b9fc9=_0x23cd43();while(!![]){try{const _0x20a2d3=parseInt(_0x679b6f(0x18a))/0x1+-parseInt(_0x679b6f(0x17a))/0x2*(-parseInt(_0x679b6f(0x1b8))/0x3)+-parseInt(_0x679b6f(0x171))/0x4+parseInt(_0x679b6f(0x1bc))/0x5+parseInt(_0x679b6f(0x166))/0x6+-parseInt(_0x679b6f(0x154))/0x7*(parseInt(_0x679b6f(0x199))/0x8)+-parseInt(_0x679b6f(0x1b1))/0x9;if(_0x20a2d3===_0x3a2198)break;else _0x4b9fc9['push'](_0x4b9fc9['shift']());}catch(_0x1aa291){_0x4b9fc9['push'](_0x4b9fc9['shift']());}}}(a66_0x4489,0xd0e1d));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(_0x4e5035){_activeAK=_0x4e5035||undefined;}export function clearActiveAK(){_activeAK=undefined;}async function apiRequest(_0x777274,_0x50b024={}){const _0x5d0b65=a66_0x525c,{method:method=_0x5d0b65(0x1b3),body:_0x306046,headers:headers={},timeout:timeout=0x7530}=_0x50b024,_0x4c7fc1=_activeAK,_0x190d01=getRuntimeDomain();if(!_0x4c7fc1)throw CliErrors[_0x5d0b65(0x185)](_0x5d0b65(0x165)+PRODUCT_CONFIG[_0x5d0b65(0x1a8)]+'.');const _0x2b3939=''+_0x190d01+_0x777274,_0x127b20={'X-User-AK':_0x4c7fc1},_0x4526f9=new AbortController(),_0x446a36=setTimeout(()=>_0x4526f9['abort'](),timeout);try{const _0x7bdfab=await fetch(_0x2b3939,{'method':method,'headers':{'Content-Type':_0x5d0b65(0x14c),'X-Invoke-Source':PRODUCT_CONFIG['invokeSource'],..._0x127b20,...headers},'body':_0x306046?JSON['stringify'](_0x306046):undefined,'signal':_0x4526f9[_0x5d0b65(0x178)]});let _0x2368a7;try{_0x2368a7=await _0x7bdfab['json']();}catch{throw CliErrors[_0x5d0b65(0x19e)](_0x5d0b65(0x17e)+_0x7bdfab[_0x5d0b65(0x1a9)]+')',_0x7bdfab[_0x5d0b65(0x1a9)]>=0x190?'Check\x20your\x20credentials\x20and\x20try\x20again.':undefined);}if(!_0x7bdfab['ok']||_0x2368a7[_0x5d0b65(0x1b2)]===![])throw CliErrors[_0x5d0b65(0x19e)](_0x2368a7[_0x5d0b65(0x15a)]||_0x2368a7[_0x5d0b65(0x1a5)]||_0x5d0b65(0x148)+_0x7bdfab[_0x5d0b65(0x1a9)],_0x2368a7['errorCode']?'API\x20error\x20code:\x20'+_0x2368a7[_0x5d0b65(0x1a3)]:undefined);return _0x2368a7;}catch(_0x232056){if(_0x232056 instanceof Error&&_0x232056[_0x5d0b65(0x1ad)]===_0x5d0b65(0x181))throw CliErrors[_0x5d0b65(0x19e)]('Request\x20timeout:\x20'+_0x2b3939);throw _0x232056;}finally{clearTimeout(_0x446a36);}}async function apiBinaryRequest(_0x34368d,_0x35f5bf={}){const _0xc8c906=a66_0x525c,{method:method=_0xc8c906(0x1b3),headers:headers={},timeout:timeout=0x7530}=_0x35f5bf,_0x5a7a61=_activeAK,_0x4241b6=getRuntimeDomain();if(!_0x5a7a61)throw CliErrors[_0xc8c906(0x185)](_0xc8c906(0x165)+PRODUCT_CONFIG[_0xc8c906(0x1a8)]+'.');const _0x4d801c=''+_0x4241b6+_0x34368d,_0x5f1ca5=new AbortController(),_0x3af75a=setTimeout(()=>_0x5f1ca5[_0xc8c906(0x1a6)](),timeout);try{const _0x3bc23f=await fetch(_0x4d801c,{'method':method,'headers':{'X-Invoke-Source':PRODUCT_CONFIG[_0xc8c906(0x161)],'X-User-AK':_0x5a7a61,...headers},'signal':_0x5f1ca5[_0xc8c906(0x178)]});if(!_0x3bc23f['ok']){let _0xacaea9;try{const _0x5a5719=await _0x3bc23f['json']();_0xacaea9=_0x5a5719['errorMsg']||_0x5a5719[_0xc8c906(0x1a5)]||_0x5a5719[_0xc8c906(0x1a3)];}catch{_0xacaea9=await _0x3bc23f[_0xc8c906(0x196)]()[_0xc8c906(0x151)](()=>undefined);}throw CliErrors[_0xc8c906(0x19e)](_0xacaea9||_0xc8c906(0x148)+_0x3bc23f['status'],_0xc8c906(0x1ab)+_0x4d801c);}return Buffer[_0xc8c906(0x15e)](await _0x3bc23f['arrayBuffer']());}catch(_0x1cbe6a){if(_0x1cbe6a instanceof Error&&_0x1cbe6a[_0xc8c906(0x1ad)]===_0xc8c906(0x181))throw CliErrors[_0xc8c906(0x19e)](_0xc8c906(0x19a)+_0x4d801c);throw _0x1cbe6a;}finally{clearTimeout(_0x3af75a);}}async function toolboxRequest(_0x23c632,_0x4027b8,_0x30e114={}){const _0x1ffd9e=a66_0x525c,{method:method=_0x1ffd9e(0x1b3),headers:headers={},timeout:timeout=0x7530}=_0x30e114,_0x28bdea=_activeAK;if(!_0x28bdea)throw CliErrors['authRequired']('Configure\x20accessKey\x20in\x20'+PRODUCT_CONFIG[_0x1ffd9e(0x1a8)]+'.');const _0x384665=getApiDomain()[_0x1ffd9e(0x191)](/\/$/,''),_0x5d26ea=new URL(_0x23c632,_0x384665+_0x1ffd9e(0x19f));if(_0x4027b8)for(const [_0xda9b9c,_0x1d9f82]of Object[_0x1ffd9e(0x18e)](_0x4027b8)){_0x1d9f82!==undefined&&_0x1d9f82!==null&&_0x5d26ea[_0x1ffd9e(0x1bb)][_0x1ffd9e(0x194)](_0xda9b9c,String(_0x1d9f82));}const _0x40a5b8=new AbortController(),_0x317c65=setTimeout(()=>_0x40a5b8['abort'](),timeout);try{const _0x51736e=await fetch(_0x5d26ea,{'method':method,'headers':{'Content-Type':_0x1ffd9e(0x14c),'X-Invoke-Source':PRODUCT_CONFIG[_0x1ffd9e(0x161)],'X-User-AK':_0x28bdea,...headers},'signal':_0x40a5b8[_0x1ffd9e(0x178)]});let _0x212379;try{_0x212379=await _0x51736e[_0x1ffd9e(0x18f)]();}catch{throw CliErrors['apiError'](_0x1ffd9e(0x174)+_0x51736e['status']+')',_0x51736e[_0x1ffd9e(0x1a9)]>=0x190?_0x1ffd9e(0x16b):undefined);}if(!_0x51736e['ok']){const _0x19e24d=_0x212379&&typeof _0x212379===_0x1ffd9e(0x193)?_0x212379:{};throw CliErrors[_0x1ffd9e(0x19e)](_0x19e24d[_0x1ffd9e(0x15a)]||_0x19e24d[_0x1ffd9e(0x1a5)]||_0x1ffd9e(0x16e)+_0x51736e[_0x1ffd9e(0x1a9)],_0x19e24d['errorCode']?_0x1ffd9e(0x1ae)+_0x19e24d['errorCode']:undefined);}if(_0x212379&&typeof _0x212379===_0x1ffd9e(0x193)&&_0x1ffd9e(0x1b2)in _0x212379&&typeof _0x212379[_0x1ffd9e(0x1b2)]===_0x1ffd9e(0x175)){const _0x2aff06=_0x212379;if(!_0x2aff06[_0x1ffd9e(0x1b2)])throw CliErrors[_0x1ffd9e(0x19e)](_0x2aff06[_0x1ffd9e(0x15a)]||_0x2aff06[_0x1ffd9e(0x1a5)]||_0x1ffd9e(0x1a1),_0x2aff06[_0x1ffd9e(0x1a3)]?_0x1ffd9e(0x1ae)+_0x2aff06[_0x1ffd9e(0x1a3)]:undefined);return _0x2aff06[_0x1ffd9e(0x1aa)];}return _0x212379;}catch(_0x5365da){if(_0x5365da instanceof Error&&_0x5365da[_0x1ffd9e(0x1ad)]===_0x1ffd9e(0x181))throw CliErrors[_0x1ffd9e(0x19e)](_0x1ffd9e(0x19a)+_0x5d26ea[_0x1ffd9e(0x183)]());throw _0x5365da;}finally{clearTimeout(_0x317c65);}}async function skillHubJsonRequest(_0x1c82aa,_0x5293d5={}){const _0x59d980=a66_0x525c,{method:method=_0x59d980(0x1b3),query:_0x1ad9c1,body:_0x177897,headers:headers={},timeout:timeout=0x7530,allowNotFound:allowNotFound=![]}=_0x5293d5,_0x19eecd=_activeAK;if(!_0x19eecd)throw CliErrors[_0x59d980(0x185)](_0x59d980(0x165)+PRODUCT_CONFIG['newConfigFileName']+'.');const _0x41ac83=getSkillHubDomain()[_0x59d980(0x191)](/\/$/,''),_0x32e37d=new URL(_0x1c82aa,_0x41ac83+'/');if(_0x1ad9c1)for(const [_0x4d119d,_0x562a5b]of Object[_0x59d980(0x18e)](_0x1ad9c1)){_0x562a5b!==undefined&&_0x562a5b!==null&&_0x32e37d[_0x59d980(0x1bb)][_0x59d980(0x194)](_0x4d119d,String(_0x562a5b));}const _0x41d41f=new AbortController(),_0x4ea4e8=setTimeout(()=>_0x41d41f['abort'](),timeout);try{const _0x14f405=await fetch(_0x32e37d[_0x59d980(0x183)](),{'method':method,'headers':{'Accept':_0x59d980(0x14c),'X-Invoke-Source':PRODUCT_CONFIG[_0x59d980(0x161)],'X-User-AK':_0x19eecd,...headers},'body':_0x177897,'signal':_0x41d41f['signal']});let _0x1332ff;try{_0x1332ff=await _0x14f405[_0x59d980(0x18f)]();}catch{if(allowNotFound&&_0x14f405['status']===0x194)return undefined;throw CliErrors['apiError'](_0x59d980(0x147)+_0x14f405['status']+')',_0x14f405['status']>=0x190?_0x59d980(0x16b):undefined);}if(allowNotFound&&(_0x14f405[_0x59d980(0x1a9)]===0x194||_0x1332ff?.[_0x59d980(0x168)]===0x194))return undefined;const _0x191e47=!_0x14f405['ok']||_0x1332ff?.['success']===![]||typeof _0x1332ff?.['code']==='number'&&_0x1332ff[_0x59d980(0x168)]>=0x190;if(_0x191e47)throw CliErrors[_0x59d980(0x19e)](_0x1332ff?.[_0x59d980(0x15a)]||_0x1332ff?.[_0x59d980(0x1a5)]||_0x1332ff?.['msg']||'SkillHub\x20API\x20error:\x20'+_0x14f405[_0x59d980(0x1a9)],_0x1332ff?.[_0x59d980(0x1a3)]?_0x59d980(0x153)+_0x1332ff['errorCode']:undefined);return _0x1332ff?.[_0x59d980(0x1aa)]??_0x1332ff;}catch(_0x1c567e){if(_0x1c567e instanceof Error&&_0x1c567e['name']==='AbortError')throw CliErrors[_0x59d980(0x19e)]('Request\x20timeout:\x20'+_0x32e37d[_0x59d980(0x183)]());throw _0x1c567e;}finally{clearTimeout(_0x4ea4e8);}}function a66_0x4489(){const _0xe3f2f0=['208196qIDTlw','/client/runtime-bff/personal/create','warnings','Toolbox\x20returned\x20non-JSON\x20response\x20(HTTP\x20','boolean','/client/bff/query/','Missing\x20Skill\x20package\x20payload.','signal','resolvedSlug','346634OUwUny','resolvedVersion','personal','skillCode','API\x20returned\x20non-JSON\x20response\x20(HTTP\x20','artifactType','skillName','AbortError','/api/cli/v1/skills/','toString','packageBase64','authRequired','scope','PRIVATE','string','/publish','875272KfbYkO','/execute?appCode=','/client/artifact/','/download','entries','json','source','replace','filter','object','set','tags','text','validation','slug','1264440yREzgz','Request\x20timeout:\x20','trim','isArray','/api/runtime/v1/namespaces/','apiError','/api/node-toolbox/','tableData','Toolbox\x20API\x20error','Knowledge-base\x20entry\x20not\x20found:\x20id=','errorCode','effective','message','abort','/client/runtime-bff/personal/','newConfigFileName','status','data','Download\x20failed:\x20','/client/sql/query','name','Toolbox\x20error\x20code:\x20','?appCode=','/client/user/loginUserInfo','16438239hbZAcd','success','GET','.zip','skill','errors','appCode','15EMyhKv','appName','Invalid\x20app\x20list\x20response:\x20missing\x20data.tableData.','searchParams','2767565SElMJB','headlineVersion','Invalid\x20login\x20user\x20info\x20response:\x20expected\x20object.','/client/knowledge-base/search','file','summary','Personal\x20BFF\x20not\x20found:\x20id=','SkillHub\x20returned\x20non-JSON\x20response\x20(HTTP\x20','API\x20error:\x20','/versions/','map','POST','application/json','valid','confirmWarnings','namespace','version','catch','BFF\x20script\x20not\x20found:\x20id=','SkillHub\x20error\x20code:\x20','35IyrLDL','items','/client/artifact/create','sqlCode','NAMESPACE_ONLY','markdown','errorMsg','/update','favorite','base64','from','/client/knowledge-base/personal/list?appCode=','/client/knowledge-base/personal/create','invokeSource','SQL\x20query\x20not\x20found:\x20','company','Invalid\x20app\x20list\x20response:\x20expected\x20object\x20or\x20array.','Configure\x20accessKey\x20in\x20','7374036wbGTVU','application/zip','code','topK','content','Check\x20your\x20credentials\x20and\x20try\x20again.','visibility','all','Toolbox\x20API\x20error:\x20','/client/knowledge-base/personal/','description'];a66_0x4489=function(){return _0xe3f2f0;};return a66_0x4489();}async function skillHubBinaryRequest(_0x385cbd,_0x1ed9b6={}){const _0x121046=a66_0x525c,{query:_0x1bef57,headers:headers={},timeout:timeout=0x7530}=_0x1ed9b6,_0x5a973d=_activeAK;if(!_0x5a973d)throw CliErrors[_0x121046(0x185)]('Configure\x20accessKey\x20in\x20'+PRODUCT_CONFIG[_0x121046(0x1a8)]+'.');const _0x33ff4b=getSkillHubDomain()[_0x121046(0x191)](/\/$/,''),_0x584d80=new URL(_0x385cbd,_0x33ff4b+'/');if(_0x1bef57)for(const [_0x4aba3c,_0x29a4bb]of Object[_0x121046(0x18e)](_0x1bef57)){_0x29a4bb!==undefined&&_0x29a4bb!==null&&_0x584d80[_0x121046(0x1bb)][_0x121046(0x194)](_0x4aba3c,String(_0x29a4bb));}const _0x508ec7=new AbortController(),_0x9fe702=setTimeout(()=>_0x508ec7['abort'](),timeout);try{const _0x1c6976=await fetch(_0x584d80[_0x121046(0x183)](),{'method':_0x121046(0x1b3),'headers':{'Accept':'application/octet-stream','X-Invoke-Source':PRODUCT_CONFIG[_0x121046(0x161)],'X-User-AK':_0x5a973d,...headers},'signal':_0x508ec7[_0x121046(0x178)]});if(!_0x1c6976['ok']){let _0x5d5355;try{const _0x2b18fd=await _0x1c6976[_0x121046(0x18f)]();_0x5d5355=_0x2b18fd[_0x121046(0x15a)]||_0x2b18fd[_0x121046(0x1a5)]||_0x2b18fd['msg']||_0x2b18fd[_0x121046(0x1a3)];}catch{_0x5d5355=await _0x1c6976[_0x121046(0x196)]()[_0x121046(0x151)](()=>undefined);}throw CliErrors[_0x121046(0x19e)](_0x5d5355||'SkillHub\x20API\x20error:\x20'+_0x1c6976[_0x121046(0x1a9)],_0x121046(0x1ab)+_0x584d80['toString']());}return Buffer[_0x121046(0x15e)](await _0x1c6976['arrayBuffer']());}catch(_0x50de40){if(_0x50de40 instanceof Error&&_0x50de40['name']===_0x121046(0x181))throw CliErrors['apiError'](_0x121046(0x19a)+_0x584d80['toString']());throw _0x50de40;}finally{clearTimeout(_0x9fe702);}}export async function getBffScriptInfo(_0x145b5b){const _0xce9965=a66_0x525c,_0x2dbb72=await apiRequest(_0xce9965(0x176)+_0x145b5b);if(!_0x2dbb72[_0xce9965(0x1aa)])throw CliErrors[_0xce9965(0x197)](_0xce9965(0x152)+_0x145b5b);return _0x2dbb72['data'];}export async function getSqlQueryInfo(_0xc53e43,_0x5c5e03){const _0x4f93a8=a66_0x525c,_0x803584=await apiRequest(_0x4f93a8(0x1ac),{'method':_0x4f93a8(0x14b),'body':{'appCode':_0xc53e43,'currentPage':0x1,'pageSize':0x1,'sqlCode':_0x5c5e03}}),_0x31ef02=_0x803584[_0x4f93a8(0x1aa)],_0x2252fa=_0x31ef02&&typeof _0x31ef02===_0x4f93a8(0x193)&&_0x4f93a8(0x1a0)in _0x31ef02?_0x31ef02['tableData']?.[0x0]:_0x31ef02&&typeof _0x31ef02==='object'&&_0x4f93a8(0x157)in _0x31ef02?_0x31ef02:undefined;if(!_0x2252fa)throw CliErrors[_0x4f93a8(0x197)](_0x4f93a8(0x162)+_0x5c5e03);return _0x2252fa;}function isRemoteAppItem(_0x5bda90){const _0x4f6c10=a66_0x525c;return!!_0x5bda90&&typeof _0x5bda90===_0x4f6c10(0x193)&&typeof _0x5bda90[_0x4f6c10(0x1b7)]==='string'&&typeof _0x5bda90[_0x4f6c10(0x1b9)]===_0x4f6c10(0x188);}function extractRemoteAppItems(_0x31c706){const _0x25eda2=a66_0x525c;if(Array[_0x25eda2(0x19c)](_0x31c706))return _0x31c706[_0x25eda2(0x192)](isRemoteAppItem);if(!_0x31c706||typeof _0x31c706!==_0x25eda2(0x193))throw CliErrors[_0x25eda2(0x19e)](_0x25eda2(0x164));const _0x58b7a6=_0x31c706;if(Array['isArray'](_0x58b7a6['tableData']))return _0x58b7a6['tableData'][_0x25eda2(0x192)](isRemoteAppItem);if(_0x58b7a6[_0x25eda2(0x1aa)]&&typeof _0x58b7a6[_0x25eda2(0x1aa)]==='object'){const _0x5ae630=_0x58b7a6['data'];if(Array[_0x25eda2(0x19c)](_0x5ae630[_0x25eda2(0x1a0)]))return _0x5ae630[_0x25eda2(0x1a0)][_0x25eda2(0x192)](isRemoteAppItem);}throw CliErrors['apiError'](_0x25eda2(0x1ba));}export async function getMyApps(){const _0x5a2e97=a66_0x525c,_0x2f6c28=await apiRequest('/client/app/my-apps');return extractRemoteAppItems(_0x2f6c28[_0x5a2e97(0x1aa)]);}export async function getLoginUserInfo(){const _0x3d4677=a66_0x525c,_0x4abc45=await apiRequest(_0x3d4677(0x1b0));if(!_0x4abc45['data']||typeof _0x4abc45['data']!=='object'||Array['isArray'](_0x4abc45[_0x3d4677(0x1aa)]))throw CliErrors[_0x3d4677(0x19e)](_0x3d4677(0x1be));return _0x4abc45[_0x3d4677(0x1aa)];}export async function listDatasets(_0x598188,_0x53d878){const _0x2d3dce=a66_0x525c,_0x3a8ab4=await apiRequest('/client/dataset/list',{'method':_0x2d3dce(0x14b),'body':{'appCode':_0x598188,..._0x53d878?.[_0x2d3dce(0x168)]&&{'code':_0x53d878[_0x2d3dce(0x168)]},..._0x53d878?.['name']&&{'name':_0x53d878[_0x2d3dce(0x1ad)]}}});return extractList(_0x3a8ab4[_0x2d3dce(0x1aa)]);}export async function getDatasetDetail(_0x926594){const _0x2b02ca=a66_0x525c,_0x3fef9e=await apiRequest('/client/dataset/get-driven-data?code='+encodeURIComponent(_0x926594));return _0x3fef9e[_0x2b02ca(0x1aa)];}export async function getDatasetSdkUsageDoc(_0x1f3e2a,_0x2ab8fc){const _0x383a71=a66_0x525c,_0x134ffa=await toolboxRequest('api-doc-generator',{'datasetCode':_0x1f3e2a,'appCode':_0x2ab8fc});return typeof _0x134ffa?.['markdown']===_0x383a71(0x188)?_0x134ffa[_0x383a71(0x159)]:'';}export async function listRuntimeArtifacts(_0x3be898,_0x424706){const _0x2365bc=a66_0x525c,_0x110f7b=new URLSearchParams({'appCode':_0x3be898});if(_0x424706?.[_0x2365bc(0x17f)])_0x110f7b[_0x2365bc(0x194)]('artifactType',_0x424706[_0x2365bc(0x17f)]);if(_0x424706?.[_0x2365bc(0x190)])_0x110f7b[_0x2365bc(0x194)]('source',_0x424706[_0x2365bc(0x190)]);if(_0x424706?.['favorite']!==undefined)_0x110f7b['set'](_0x2365bc(0x15c),String(_0x424706[_0x2365bc(0x15c)]));const _0x10c47a=await apiRequest('/client/artifact/list?'+_0x110f7b[_0x2365bc(0x183)]());return Array[_0x2365bc(0x19c)](_0x10c47a['data'])?_0x10c47a[_0x2365bc(0x1aa)]:[];}export async function getRuntimeArtifact(_0x5bdbe6,_0x239c75){const _0x13a363=a66_0x525c,_0x223eee=await apiRequest(_0x13a363(0x18c)+_0x5bdbe6+_0x13a363(0x1af)+encodeURIComponent(_0x239c75));if(!_0x223eee[_0x13a363(0x1aa)])throw CliErrors['validation']('Artifact\x20not\x20found:\x20id='+_0x5bdbe6);return _0x223eee[_0x13a363(0x1aa)];}export async function createRuntimeArtifact(_0x3fe24b,_0x5a8b8c){const _0x15199f=a66_0x525c,_0x7f40ea=await apiRequest(_0x15199f(0x156),{'method':_0x15199f(0x14b),'body':{'appCode':_0x3fe24b,..._0x5a8b8c}});return _0x7f40ea[_0x15199f(0x1aa)];}export async function updateRuntimeArtifact(_0x3fae55,_0x192aab,_0x353b70){const _0x3f5ff3=a66_0x525c,_0x233b34=await apiRequest(_0x3f5ff3(0x18c)+_0x3fae55+_0x3f5ff3(0x15b),{'method':'POST','body':{'appCode':_0x192aab,..._0x353b70}});return _0x233b34[_0x3f5ff3(0x1aa)];}export async function listPersonalBffs(_0x2b8d97){const _0x109eeb=a66_0x525c,_0x3519be=await apiRequest('/client/runtime-bff/personal/list?appCode='+encodeURIComponent(_0x2b8d97));return Array[_0x109eeb(0x19c)](_0x3519be[_0x109eeb(0x1aa)])?_0x3519be[_0x109eeb(0x1aa)]:[];}export async function getPersonalBff(_0xd68ff2,_0x155eb3){const _0x21e3cb=a66_0x525c,_0x28e34e=await apiRequest(_0x21e3cb(0x1a7)+_0xd68ff2+_0x21e3cb(0x1af)+encodeURIComponent(_0x155eb3));if(!_0x28e34e[_0x21e3cb(0x1aa)])throw CliErrors[_0x21e3cb(0x197)](_0x21e3cb(0x146)+_0xd68ff2);return _0x28e34e[_0x21e3cb(0x1aa)];}export async function createPersonalBff(_0x4bcb59,_0x2d74d1){const _0x5c558c=a66_0x525c,_0x5013ca=await apiRequest(_0x5c558c(0x172),{'method':_0x5c558c(0x14b),'body':{'appCode':_0x4bcb59,..._0x2d74d1}});return _0x5013ca[_0x5c558c(0x1aa)];}export async function updatePersonalBff(_0x244141,_0x3c0385,_0x3410b9){const _0x333024=a66_0x525c,_0x470a3f=await apiRequest(_0x333024(0x1a7)+_0x244141+_0x333024(0x15b),{'method':_0x333024(0x14b),'body':{'appCode':_0x3c0385,..._0x3410b9}});return _0x470a3f['data'];}export async function executePersonalBff(_0x4fbe98,_0x33609a,_0x4ca0ac){const _0x54f1fe=a66_0x525c,_0x3bd18b=await apiRequest(_0x54f1fe(0x1a7)+_0x4fbe98+_0x54f1fe(0x18b)+encodeURIComponent(_0x33609a),{'method':_0x54f1fe(0x14b),'body':_0x4ca0ac});return _0x3bd18b[_0x54f1fe(0x1aa)];}export async function listPersonalKnowledgeBaseItems(_0x373ce1){const _0x46f505=a66_0x525c,_0x3541fb=await apiRequest(_0x46f505(0x15f)+encodeURIComponent(_0x373ce1));return Array[_0x46f505(0x19c)](_0x3541fb[_0x46f505(0x1aa)])?_0x3541fb[_0x46f505(0x1aa)]:[];}export async function getPersonalKnowledgeBaseItem(_0x1f2f40,_0xfcace0){const _0x196402=a66_0x525c,_0x433a05=await apiRequest(_0x196402(0x16f)+_0x1f2f40+'?appCode='+encodeURIComponent(_0xfcace0));if(!_0x433a05[_0x196402(0x1aa)])throw CliErrors[_0x196402(0x197)](_0x196402(0x1a2)+_0x1f2f40);return _0x433a05[_0x196402(0x1aa)];}export async function createPersonalKnowledgeBaseItem(_0x4b7dbf,_0x5b8222){const _0x2d690d=a66_0x525c,_0x4ed2df=await apiRequest(_0x2d690d(0x160),{'method':'POST','body':{'appCode':_0x4b7dbf,..._0x5b8222}});return _0x4ed2df[_0x2d690d(0x1aa)];}export async function updatePersonalKnowledgeBaseItem(_0x56631d,_0x40728f,_0x55d854){const _0x59d4f5=a66_0x525c,_0x506c3e=await apiRequest(_0x59d4f5(0x16f)+_0x56631d+_0x59d4f5(0x15b),{'method':_0x59d4f5(0x14b),'body':{'appCode':_0x40728f,..._0x55d854}});return _0x506c3e['data'];}export async function searchKnowledgeBase(_0x56e597,_0x438a58){const _0x35898a=a66_0x525c,_0x18f620=await apiRequest(_0x35898a(0x1bf),{'method':_0x35898a(0x14b),'body':{'appCode':_0x56e597,'query':_0x438a58['query'],..._0x438a58[_0x35898a(0x169)]!==undefined?{'topK':_0x438a58[_0x35898a(0x169)]}:{}}});return Array[_0x35898a(0x19c)](_0x18f620[_0x35898a(0x1aa)])?_0x18f620[_0x35898a(0x1aa)]:[];}export async function getRuntimeSkillByCode(_0x195fed,_0x4f2d53){const _0x2585d3=await skillHubJsonRequest('/api/v1/skills/'+encodeURIComponent(_0x195fed)+'/'+encodeURIComponent(_0x4f2d53),{'allowNotFound':!![]});return _0x2585d3?skillHubRuntimeDetailToRuntimeSkill(_0x2585d3):undefined;}function a66_0x525c(_0x6ebb8b,_0x11687b){_0x6ebb8b=_0x6ebb8b-0x145;const _0x4489c6=a66_0x4489();let _0x525c18=_0x4489c6[_0x6ebb8b];return _0x525c18;}export async function listRuntimeSkills(_0x116d9c){const _0x304eca=a66_0x525c,_0x2b7b23=await skillHubJsonRequest(_0x304eca(0x19d)+encodeURIComponent(_0x116d9c['appCode'])+'/skills',{'query':{'page':0x0,'size':0xc8}});return normalizeSkillHubRuntimeListResponse(_0x116d9c[_0x304eca(0x1b7)],_0x2b7b23,_0x116d9c[_0x304eca(0x186)]??_0x304eca(0x16d),_0x116d9c[_0x304eca(0x168)]);}export async function listPersonalRuntimeSkills(_0x5326ec){const _0x2c75a5=a66_0x525c;return(await listRuntimeSkills({'appCode':_0x5326ec,'scope':_0x2c75a5(0x17c)}))[_0x2c75a5(0x17c)];}export async function listCompanyRuntimeSkills(_0x179d21){const _0x357ac1=a66_0x525c;return(await listRuntimeSkills({'appCode':_0x179d21,'scope':_0x357ac1(0x163)}))[_0x357ac1(0x163)];}export async function listVisibleRuntimeSkills(_0x4ae616){const _0x59fa03=a66_0x525c;return(await listRuntimeSkills({'appCode':_0x4ae616,'scope':_0x59fa03(0x16d)}))[_0x59fa03(0x1a4)];}export async function createPersonalRuntimeSkill(_0x253ac5,_0x14aec7){const _0x5befa9=a66_0x525c;return publishRuntimeSkill(_0x253ac5,_0x14aec7,{'visibility':_0x5befa9(0x187)});}export async function updatePersonalRuntimeSkill(_0x47052d,_0x46da36,_0x1b55d8){const _0x187279=a66_0x525c;return publishRuntimeSkill(_0x46da36,{..._0x1b55d8,'skillCode':_0x1b55d8[_0x187279(0x17d)]??_0x47052d},{'visibility':_0x187279(0x187)});}export async function publishCompanyRuntimeSkill(_0x2a30f0,_0x58c95e,_0x45bcc8={}){const _0x480564=a66_0x525c;return publishRuntimeSkill(_0x2a30f0,_0x58c95e,{'visibility':_0x480564(0x158),'confirmWarnings':_0x45bcc8[_0x480564(0x14e)]});}export async function validateRuntimeSkillPublish(_0x2bbe55,_0x5080bf,_0x4ac833){const _0x2f50d7=a66_0x525c,_0x330514=buildRuntimeSkillPublishForm(_0x5080bf,_0x4ac833[_0x2f50d7(0x16c)]),_0x2aca29=await skillHubJsonRequest(_0x2f50d7(0x182)+encodeURIComponent(_0x2bbe55)+'/publish/validate',{'method':'POST','body':_0x330514});return{'valid':_0x2aca29[_0x2f50d7(0x14d)]===!![],'errors':Array[_0x2f50d7(0x19c)](_0x2aca29[_0x2f50d7(0x1b6)])?_0x2aca29['errors']:[],'warnings':Array[_0x2f50d7(0x19c)](_0x2aca29['warnings'])?_0x2aca29[_0x2f50d7(0x173)]:[],'resolvedSlug':_0x2aca29[_0x2f50d7(0x179)],'resolvedVersion':_0x2aca29[_0x2f50d7(0x17b)]};}export async function downloadRuntimeSkillPackage(_0x2fec1a,_0x316b8b,_0x366717,_0x1f3567){const _0x141fe1=a66_0x525c;void _0x2fec1a;const _0xb32d38=_0x1f3567?_0x141fe1(0x182)+encodeURIComponent(_0x366717)+'/'+encodeURIComponent(_0x316b8b)+_0x141fe1(0x149)+encodeURIComponent(_0x1f3567)+_0x141fe1(0x18d):_0x141fe1(0x182)+encodeURIComponent(_0x366717)+'/'+encodeURIComponent(_0x316b8b)+_0x141fe1(0x18d);return skillHubBinaryRequest(_0xb32d38);}async function publishRuntimeSkill(_0x4d105b,_0x3bf0bb,_0x1e7ee9){const _0x2b6d91=a66_0x525c,_0x30b76f=buildRuntimeSkillPublishForm(_0x3bf0bb,_0x1e7ee9[_0x2b6d91(0x16c)]),_0x363681=await skillHubJsonRequest('/api/cli/v1/skills/'+encodeURIComponent(_0x4d105b)+_0x2b6d91(0x189),{'method':_0x2b6d91(0x14b),'query':{'confirmWarnings':_0x1e7ee9['confirmWarnings']===!![]?!![]:undefined},'body':_0x30b76f});return{'appCode':_0x363681['namespace']??_0x4d105b,'skillCode':_0x363681[_0x2b6d91(0x198)]??_0x3bf0bb[_0x2b6d91(0x17d)]??'','skillName':_0x3bf0bb[_0x2b6d91(0x180)]??_0x363681[_0x2b6d91(0x198)]??_0x3bf0bb[_0x2b6d91(0x17d)],'description':_0x3bf0bb[_0x2b6d91(0x170)],'scope':skillHubVisibilityToScope(_0x363681[_0x2b6d91(0x16c)]??_0x1e7ee9[_0x2b6d91(0x16c)])??_0x2b6d91(0x17c),'version':_0x363681[_0x2b6d91(0x150)]??_0x3bf0bb['version'],'tags':_0x3bf0bb[_0x2b6d91(0x195)],'content':_0x3bf0bb[_0x2b6d91(0x16a)]};}function buildRuntimeSkillPublishForm(_0x149146,_0x5ef34e){const _0xa81364=a66_0x525c,_0x415f7d=new FormData();return _0x415f7d[_0xa81364(0x194)](_0xa81364(0x1c0),runtimeSkillPackageFile(_0x149146)),_0x415f7d[_0xa81364(0x194)](_0xa81364(0x16c),_0x5ef34e),_0x415f7d;}function runtimeSkillPackageFile(_0x5c6648){const _0x5ecf42=a66_0x525c;if(!_0x5c6648['packageBase64'])throw CliErrors['validation'](_0x5ecf42(0x177));const _0x5c1ef3=Buffer[_0x5ecf42(0x15e)](_0x5c6648[_0x5ecf42(0x184)],_0x5ecf42(0x15d)),_0x55e06c=new Blob([_0x5c1ef3],{'type':_0x5ecf42(0x167)}),_0x5bdbf9=(_0x5c6648[_0x5ecf42(0x17d)]||_0x5ecf42(0x1b5))+_0x5ecf42(0x1b4);if(typeof File!=='undefined')return new File([_0x55e06c],_0x5bdbf9,{'type':_0x5ecf42(0x167)});return _0x55e06c;}function normalizeSkillHubRuntimeListResponse(_0x5e3b7d,_0x45aae0,_0x475c3d,_0x12a032){const _0x57aad4=a66_0x525c,_0x4f0af6=Array[_0x57aad4(0x19c)](_0x45aae0)?_0x45aae0:Array[_0x57aad4(0x19c)](_0x45aae0?.[_0x57aad4(0x155)])?_0x45aae0['items']:[],_0x508101=_0x12a032?.[_0x57aad4(0x19b)](),_0x55f137=_0x4f0af6[_0x57aad4(0x192)](_0x152bc5=>!_0x508101||_0x152bc5['slug']===_0x508101)[_0x57aad4(0x14a)](skillHubRuntimeItemToRuntimeSkill)[_0x57aad4(0x192)](_0x598520=>Boolean(_0x598520)),_0x38d282=_0x55f137[_0x57aad4(0x192)](_0x4c25c1=>_0x4c25c1[_0x57aad4(0x186)]==='personal'),_0x197538=_0x55f137['filter'](_0x174963=>_0x174963['scope']===_0x57aad4(0x163));return{'appCode':_0x5e3b7d,'personal':_0x475c3d===_0x57aad4(0x163)?[]:_0x38d282,'company':_0x475c3d===_0x57aad4(0x17c)?[]:_0x197538,'effective':buildEffectiveRuntimeSkills(_0x38d282,_0x197538,_0x475c3d)};}function skillHubRuntimeItemToRuntimeSkill(_0x1630cd){const _0x4079cd=a66_0x525c,_0x41f3b9=_0x1630cd[_0x4079cd(0x198)]?.[_0x4079cd(0x19b)](),_0x373bc8=skillHubVisibilityToScope(_0x1630cd[_0x4079cd(0x16c)]);if(!_0x41f3b9||!_0x373bc8)return undefined;return{'id':_0x1630cd['id'],'appCode':_0x1630cd[_0x4079cd(0x14f)],'skillCode':_0x41f3b9,'skillName':_0x1630cd['displayName']??_0x41f3b9,'description':_0x1630cd[_0x4079cd(0x145)],'scope':_0x373bc8,'version':skillHubRuntimeItemVersion(_0x1630cd),'status':_0x1630cd[_0x4079cd(0x1a9)]};}function skillHubRuntimeDetailToRuntimeSkill(_0x5872f2){const _0x19809d=a66_0x525c,_0x2bfefe=_0x5872f2[_0x19809d(0x198)]?.['trim']();if(!_0x2bfefe)return undefined;return{'id':_0x5872f2['id'],'appCode':_0x5872f2[_0x19809d(0x14f)],'skillCode':_0x2bfefe,'skillName':_0x5872f2['displayName']??_0x2bfefe,'description':_0x5872f2[_0x19809d(0x145)],'scope':skillHubVisibilityToScope(_0x5872f2[_0x19809d(0x16c)])??_0x5872f2[_0x19809d(0x16c)]?.['toLowerCase'](),'version':skillHubRuntimeItemVersion(_0x5872f2),'status':_0x5872f2[_0x19809d(0x1a9)]};}function skillHubVisibilityToScope(_0x5892fc){const _0x522c2c=a66_0x525c;if(_0x5892fc===_0x522c2c(0x187))return _0x522c2c(0x17c);if(_0x5892fc==='NAMESPACE_ONLY')return _0x522c2c(0x163);return undefined;}function skillHubRuntimeItemVersion(_0x492fc9){const _0x1d2593=a66_0x525c;return _0x492fc9['publishedVersion']?.['version']??_0x492fc9[_0x1d2593(0x1bd)]?.[_0x1d2593(0x150)]??_0x492fc9['ownerPreviewVersion']?.[_0x1d2593(0x150)];}function buildEffectiveRuntimeSkills(_0x2a2c3f,_0x73d428,_0x3f1d7e){const _0x5c2e52=a66_0x525c;if(_0x3f1d7e===_0x5c2e52(0x17c))return _0x2a2c3f;if(_0x3f1d7e===_0x5c2e52(0x163))return _0x73d428;const _0x3cd14a=new Map();for(const _0x137de9 of _0x73d428){_0x3cd14a[_0x5c2e52(0x194)](_0x137de9[_0x5c2e52(0x17d)],_0x137de9);}for(const _0x2fa2e1 of _0x2a2c3f){_0x3cd14a[_0x5c2e52(0x194)](_0x2fa2e1[_0x5c2e52(0x17d)],_0x2fa2e1);}return Array['from'](_0x3cd14a['values']());}function normalizeRuntimeSkillListResponse(_0x1d9aae,_0xa2f894){const _0x41d49c=a66_0x525c;if(Array[_0x41d49c(0x19c)](_0xa2f894)){const _0x414735=_0xa2f894['filter'](_0x510738=>_0x510738[_0x41d49c(0x186)]===_0x41d49c(0x17c)),_0x430ff3=_0xa2f894[_0x41d49c(0x192)](_0x25955e=>_0x25955e[_0x41d49c(0x186)]===_0x41d49c(0x163));return{'appCode':_0x1d9aae,'personal':_0x414735,'company':_0x430ff3,'effective':[..._0x430ff3,..._0x414735]};}return{'appCode':_0xa2f894?.['appCode']??_0x1d9aae,'personal':Array[_0x41d49c(0x19c)](_0xa2f894?.[_0x41d49c(0x17c)])?_0xa2f894[_0x41d49c(0x17c)]:[],'company':Array[_0x41d49c(0x19c)](_0xa2f894?.[_0x41d49c(0x163)])?_0xa2f894[_0x41d49c(0x163)]:[],'effective':Array[_0x41d49c(0x19c)](_0xa2f894?.[_0x41d49c(0x1a4)])?_0xa2f894[_0x41d49c(0x1a4)]:[]};}
1
+ (function(_0x1e1de0,_0xb4ceb9){const _0x544196=a69_0x5dd1,_0x151bb6=_0x1e1de0();while(!![]){try{const _0x462ab1=-parseInt(_0x544196(0x249))/0x1+-parseInt(_0x544196(0x234))/0x2+-parseInt(_0x544196(0x253))/0x3*(-parseInt(_0x544196(0x20a))/0x4)+-parseInt(_0x544196(0x25e))/0x5+parseInt(_0x544196(0x239))/0x6*(parseInt(_0x544196(0x242))/0x7)+parseInt(_0x544196(0x1f4))/0x8+-parseInt(_0x544196(0x202))/0x9*(-parseInt(_0x544196(0x219))/0xa);if(_0x462ab1===_0xb4ceb9)break;else _0x151bb6['push'](_0x151bb6['shift']());}catch(_0x5181e0){_0x151bb6['push'](_0x151bb6['shift']());}}}(a69_0x33e3,0x32d75));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(_0x561051){_activeAK=_0x561051||undefined;}export function clearActiveAK(){_activeAK=undefined;}async function apiRequest(_0x3d9b06,_0x13bc81={}){const _0x26879a=a69_0x5dd1,{method:method='GET',body:_0x2f0e39,headers:headers={},timeout:timeout=0x7530}=_0x13bc81,_0x27bda8=_activeAK,_0x33de6b=getRuntimeDomain();if(!_0x27bda8)throw CliErrors['authRequired'](_0x26879a(0x22c)+PRODUCT_CONFIG['newConfigFileName']+'.');const _0x12c1ac=''+_0x33de6b+_0x3d9b06,_0x1be6b2={'X-User-AK':_0x27bda8},_0x394b07=new AbortController(),_0x5248b1=setTimeout(()=>_0x394b07[_0x26879a(0x245)](),timeout);try{const _0x350776=await fetch(_0x12c1ac,{'method':method,'headers':{'Content-Type':'application/json','X-Invoke-Source':PRODUCT_CONFIG[_0x26879a(0x210)],..._0x1be6b2,...headers},'body':_0x2f0e39?JSON[_0x26879a(0x250)](_0x2f0e39):undefined,'signal':_0x394b07[_0x26879a(0x264)]});let _0x34ef5d;try{_0x34ef5d=await _0x350776['json']();}catch{throw CliErrors[_0x26879a(0x224)](_0x26879a(0x262)+_0x350776[_0x26879a(0x24d)]+')',_0x350776[_0x26879a(0x24d)]>=0x190?_0x26879a(0x1f5):undefined);}if(!_0x350776['ok']||_0x34ef5d[_0x26879a(0x213)]===![])throw CliErrors['apiError'](_0x34ef5d[_0x26879a(0x207)]||_0x34ef5d[_0x26879a(0x22a)]||_0x26879a(0x1e4)+_0x350776[_0x26879a(0x24d)],_0x34ef5d[_0x26879a(0x1ff)]?_0x26879a(0x21c)+_0x34ef5d['errorCode']:undefined);return _0x34ef5d;}catch(_0x19b205){if(_0x19b205 instanceof Error&&_0x19b205[_0x26879a(0x1f6)]===_0x26879a(0x1e7))throw CliErrors['apiError'](_0x26879a(0x255)+_0x12c1ac);throw _0x19b205;}finally{clearTimeout(_0x5248b1);}}async function apiBinaryRequest(_0x592276,_0x3ad0b8={}){const _0x3430f9=a69_0x5dd1,{method:method=_0x3430f9(0x244),headers:headers={},timeout:timeout=0x7530}=_0x3ad0b8,_0x4028c7=_activeAK,_0x11b1f3=getRuntimeDomain();if(!_0x4028c7)throw CliErrors['authRequired'](_0x3430f9(0x22c)+PRODUCT_CONFIG[_0x3430f9(0x21d)]+'.');const _0x1bf518=''+_0x11b1f3+_0x592276,_0x533bdb=new AbortController(),_0x470328=setTimeout(()=>_0x533bdb[_0x3430f9(0x245)](),timeout);try{const _0x56ecc8=await fetch(_0x1bf518,{'method':method,'headers':{'X-Invoke-Source':PRODUCT_CONFIG[_0x3430f9(0x210)],'X-User-AK':_0x4028c7,...headers},'signal':_0x533bdb[_0x3430f9(0x264)]});if(!_0x56ecc8['ok']){let _0xd4181;try{const _0x85b4bf=await _0x56ecc8[_0x3430f9(0x23e)]();_0xd4181=_0x85b4bf[_0x3430f9(0x207)]||_0x85b4bf[_0x3430f9(0x22a)]||_0x85b4bf[_0x3430f9(0x1ff)];}catch{_0xd4181=await _0x56ecc8[_0x3430f9(0x20e)]()[_0x3430f9(0x246)](()=>undefined);}throw CliErrors['apiError'](_0xd4181||_0x3430f9(0x1e4)+_0x56ecc8[_0x3430f9(0x24d)],_0x3430f9(0x1df)+_0x1bf518);}return Buffer[_0x3430f9(0x21f)](await _0x56ecc8['arrayBuffer']());}catch(_0x31ecfd){if(_0x31ecfd instanceof Error&&_0x31ecfd[_0x3430f9(0x1f6)]===_0x3430f9(0x1e7))throw CliErrors[_0x3430f9(0x224)](_0x3430f9(0x255)+_0x1bf518);throw _0x31ecfd;}finally{clearTimeout(_0x470328);}}async function toolboxRequest(_0x1cd093,_0x4e51d9,_0x36d4d5={}){const _0x5addfa=a69_0x5dd1,{method:method=_0x5addfa(0x244),headers:headers={},timeout:timeout=0x7530}=_0x36d4d5,_0x287348=_activeAK;if(!_0x287348)throw CliErrors['authRequired'](_0x5addfa(0x22c)+PRODUCT_CONFIG[_0x5addfa(0x21d)]+'.');const _0x2b06a9=getApiDomain()[_0x5addfa(0x259)](/\/$/,''),_0x5c8389=new URL(_0x1cd093,_0x2b06a9+_0x5addfa(0x22d));if(_0x4e51d9)for(const [_0x186c79,_0x5bbea6]of Object[_0x5addfa(0x208)](_0x4e51d9)){_0x5bbea6!==undefined&&_0x5bbea6!==null&&_0x5c8389[_0x5addfa(0x233)]['set'](_0x186c79,String(_0x5bbea6));}const _0xcd320=new AbortController(),_0x13df80=setTimeout(()=>_0xcd320['abort'](),timeout);try{const _0x1c4446=await fetch(_0x5c8389,{'method':method,'headers':{'Content-Type':_0x5addfa(0x1fc),'X-Invoke-Source':PRODUCT_CONFIG['invokeSource'],'X-User-AK':_0x287348,...headers},'signal':_0xcd320['signal']});let _0x5c80a1;try{_0x5c80a1=await _0x1c4446[_0x5addfa(0x23e)]();}catch{throw CliErrors['apiError'](_0x5addfa(0x237)+_0x1c4446[_0x5addfa(0x24d)]+')',_0x1c4446[_0x5addfa(0x24d)]>=0x190?_0x5addfa(0x1f5):undefined);}if(!_0x1c4446['ok']){const _0x3bd808=_0x5c80a1&&typeof _0x5c80a1==='object'?_0x5c80a1:{};throw CliErrors['apiError'](_0x3bd808['errorMsg']||_0x3bd808['message']||_0x5addfa(0x1e2)+_0x1c4446[_0x5addfa(0x24d)],_0x3bd808[_0x5addfa(0x1ff)]?_0x5addfa(0x25d)+_0x3bd808[_0x5addfa(0x1ff)]:undefined);}if(_0x5c80a1&&typeof _0x5c80a1===_0x5addfa(0x243)&&_0x5addfa(0x213)in _0x5c80a1&&typeof _0x5c80a1['success']===_0x5addfa(0x214)){const _0x5364aa=_0x5c80a1;if(!_0x5364aa[_0x5addfa(0x213)])throw CliErrors['apiError'](_0x5364aa['errorMsg']||_0x5364aa[_0x5addfa(0x22a)]||_0x5addfa(0x222),_0x5364aa['errorCode']?'Toolbox\x20error\x20code:\x20'+_0x5364aa[_0x5addfa(0x1ff)]:undefined);return _0x5364aa['data'];}return _0x5c80a1;}catch(_0xa8b2ca){if(_0xa8b2ca instanceof Error&&_0xa8b2ca[_0x5addfa(0x1f6)]==='AbortError')throw CliErrors[_0x5addfa(0x224)](_0x5addfa(0x255)+_0x5c8389[_0x5addfa(0x25b)]());throw _0xa8b2ca;}finally{clearTimeout(_0x13df80);}}async function skillHubJsonRequest(_0x1dc62b,_0x5611c6={}){const _0x388e32=a69_0x5dd1,{method:method=_0x388e32(0x244),query:_0x5cb114,body:_0x176850,headers:headers={},timeout:timeout=0x7530,allowNotFound:allowNotFound=![]}=_0x5611c6,_0x53918b=_activeAK;if(!_0x53918b)throw CliErrors[_0x388e32(0x220)]('Configure\x20accessKey\x20in\x20'+PRODUCT_CONFIG[_0x388e32(0x21d)]+'.');const _0x362af5=getSkillHubDomain()['replace'](/\/$/,''),_0x3287b0=new URL(_0x1dc62b,_0x362af5+'/');if(_0x5cb114)for(const [_0x4de3ea,_0x379aeb]of Object[_0x388e32(0x208)](_0x5cb114)){_0x379aeb!==undefined&&_0x379aeb!==null&&_0x3287b0['searchParams'][_0x388e32(0x1ea)](_0x4de3ea,String(_0x379aeb));}const _0x3d8b36=new AbortController(),_0x4e9776=setTimeout(()=>_0x3d8b36['abort'](),timeout);try{const _0x5e48aa=await fetch(_0x3287b0[_0x388e32(0x25b)](),{'method':method,'headers':{'Accept':_0x388e32(0x1fc),'X-Invoke-Source':PRODUCT_CONFIG[_0x388e32(0x210)],'X-User-AK':_0x53918b,...headers},'body':_0x176850,'signal':_0x3d8b36[_0x388e32(0x264)]});let _0x2e5feb;try{_0x2e5feb=await _0x5e48aa[_0x388e32(0x23e)]();}catch{if(allowNotFound&&_0x5e48aa['status']===0x194)return undefined;throw CliErrors['apiError']('SkillHub\x20returned\x20non-JSON\x20response\x20(HTTP\x20'+_0x5e48aa[_0x388e32(0x24d)]+')',_0x5e48aa[_0x388e32(0x24d)]>=0x190?_0x388e32(0x1f5):undefined);}if(allowNotFound&&(_0x5e48aa[_0x388e32(0x24d)]===0x194||_0x2e5feb?.[_0x388e32(0x263)]===0x194))return undefined;const _0x5f10a8=!_0x5e48aa['ok']||_0x2e5feb?.['success']===![]||typeof _0x2e5feb?.[_0x388e32(0x263)]===_0x388e32(0x217)&&_0x2e5feb['code']>=0x190;if(_0x5f10a8)throw CliErrors['apiError'](_0x2e5feb?.[_0x388e32(0x207)]||_0x2e5feb?.[_0x388e32(0x22a)]||_0x2e5feb?.[_0x388e32(0x23b)]||_0x388e32(0x1e9)+_0x5e48aa[_0x388e32(0x24d)],_0x2e5feb?.[_0x388e32(0x1ff)]?'SkillHub\x20error\x20code:\x20'+_0x2e5feb[_0x388e32(0x1ff)]:undefined);return _0x2e5feb?.['data']??_0x2e5feb;}catch(_0x166a1a){if(_0x166a1a instanceof Error&&_0x166a1a[_0x388e32(0x1f6)]===_0x388e32(0x1e7))throw CliErrors[_0x388e32(0x224)](_0x388e32(0x255)+_0x3287b0[_0x388e32(0x25b)]());throw _0x166a1a;}finally{clearTimeout(_0x4e9776);}}async function skillHubBinaryRequest(_0x2e7312,_0x396ec6={}){const _0x1dc185=a69_0x5dd1,{query:_0x26353b,headers:headers={},timeout:timeout=0x7530}=_0x396ec6,_0x12528f=_activeAK;if(!_0x12528f)throw CliErrors[_0x1dc185(0x220)](_0x1dc185(0x22c)+PRODUCT_CONFIG[_0x1dc185(0x21d)]+'.');const _0x4a06ae=getSkillHubDomain()[_0x1dc185(0x259)](/\/$/,''),_0x143e85=new URL(_0x2e7312,_0x4a06ae+'/');if(_0x26353b)for(const [_0x1c74be,_0x57259d]of Object[_0x1dc185(0x208)](_0x26353b)){_0x57259d!==undefined&&_0x57259d!==null&&_0x143e85[_0x1dc185(0x233)][_0x1dc185(0x1ea)](_0x1c74be,String(_0x57259d));}const _0x1fc2ca=new AbortController(),_0x2c2381=setTimeout(()=>_0x1fc2ca[_0x1dc185(0x245)](),timeout);try{const _0x2caa51=await fetch(_0x143e85[_0x1dc185(0x25b)](),{'method':'GET','headers':{'Accept':_0x1dc185(0x225),'X-Invoke-Source':PRODUCT_CONFIG[_0x1dc185(0x210)],'X-User-AK':_0x12528f,...headers},'signal':_0x1fc2ca['signal']});if(!_0x2caa51['ok']){let _0x531a84;try{const _0x483497=await _0x2caa51[_0x1dc185(0x23e)]();_0x531a84=_0x483497['errorMsg']||_0x483497['message']||_0x483497[_0x1dc185(0x23b)]||_0x483497[_0x1dc185(0x1ff)];}catch{_0x531a84=await _0x2caa51['text']()[_0x1dc185(0x246)](()=>undefined);}throw CliErrors[_0x1dc185(0x224)](_0x531a84||_0x1dc185(0x1e9)+_0x2caa51['status'],_0x1dc185(0x1df)+_0x143e85[_0x1dc185(0x25b)]());}return Buffer[_0x1dc185(0x21f)](await _0x2caa51[_0x1dc185(0x1f1)]());}catch(_0x5823a6){if(_0x5823a6 instanceof Error&&_0x5823a6[_0x1dc185(0x1f6)]===_0x1dc185(0x1e7))throw CliErrors[_0x1dc185(0x224)]('Request\x20timeout:\x20'+_0x143e85[_0x1dc185(0x25b)]());throw _0x5823a6;}finally{clearTimeout(_0x2c2381);}}export async function getBffScriptInfo(_0x5be98c){const _0x150bff=a69_0x5dd1,_0x51b86b=await apiRequest('/client/bff/query/'+_0x5be98c);if(!_0x51b86b[_0x150bff(0x1e0)])throw CliErrors[_0x150bff(0x241)](_0x150bff(0x201)+_0x5be98c);return _0x51b86b[_0x150bff(0x1e0)];}export async function getSqlQueryInfo(_0x1a3c80,_0x4d9f00){const _0x5074ce=a69_0x5dd1,_0x20ebef=await apiRequest(_0x5074ce(0x1e5),{'method':'POST','body':{'appCode':_0x1a3c80,'currentPage':0x1,'pageSize':0x1,'sqlCode':_0x4d9f00}}),_0x1ef391=_0x20ebef[_0x5074ce(0x1e0)],_0x553375=_0x1ef391&&typeof _0x1ef391===_0x5074ce(0x243)&&_0x5074ce(0x1f3)in _0x1ef391?_0x1ef391[_0x5074ce(0x1f3)]?.[0x0]:_0x1ef391&&typeof _0x1ef391===_0x5074ce(0x243)&&'sqlCode'in _0x1ef391?_0x1ef391:undefined;if(!_0x553375)throw CliErrors[_0x5074ce(0x241)](_0x5074ce(0x1fe)+_0x4d9f00);return _0x553375;}function isRemoteAppItem(_0x60d691){const _0x1adba5=a69_0x5dd1;return!!_0x60d691&&typeof _0x60d691===_0x1adba5(0x243)&&typeof _0x60d691[_0x1adba5(0x1fb)]==='string'&&typeof _0x60d691[_0x1adba5(0x226)]===_0x1adba5(0x211);}function extractRemoteAppItems(_0x3e1cff){const _0x299bca=a69_0x5dd1;if(Array[_0x299bca(0x1f0)](_0x3e1cff))return _0x3e1cff[_0x299bca(0x23a)](isRemoteAppItem);if(!_0x3e1cff||typeof _0x3e1cff!=='object')throw CliErrors[_0x299bca(0x224)](_0x299bca(0x20b));const _0x38af2c=_0x3e1cff;if(Array[_0x299bca(0x1f0)](_0x38af2c[_0x299bca(0x1f3)]))return _0x38af2c['tableData']['filter'](isRemoteAppItem);if(_0x38af2c['data']&&typeof _0x38af2c[_0x299bca(0x1e0)]===_0x299bca(0x243)){const _0x1b5b1f=_0x38af2c[_0x299bca(0x1e0)];if(Array[_0x299bca(0x1f0)](_0x1b5b1f['tableData']))return _0x1b5b1f[_0x299bca(0x1f3)][_0x299bca(0x23a)](isRemoteAppItem);}throw CliErrors[_0x299bca(0x224)](_0x299bca(0x212));}export async function getMyApps(){const _0x39298c=a69_0x5dd1,_0x3d73ec=await apiRequest('/client/app/my-apps');return extractRemoteAppItems(_0x3d73ec[_0x39298c(0x1e0)]);}export async function getLoginUserInfo(){const _0x1ed77c=a69_0x5dd1,_0x549558=await apiRequest(_0x1ed77c(0x23c));if(!_0x549558['data']||typeof _0x549558['data']!==_0x1ed77c(0x243)||Array[_0x1ed77c(0x1f0)](_0x549558[_0x1ed77c(0x1e0)]))throw CliErrors[_0x1ed77c(0x224)](_0x1ed77c(0x252));return _0x549558[_0x1ed77c(0x1e0)];}export async function listDatasets(_0x15fedd,_0x1156b5){const _0x2adbb3=a69_0x5dd1,_0x50d51d=await apiRequest(_0x2adbb3(0x216),{'method':'POST','body':{'appCode':_0x15fedd,..._0x1156b5?.[_0x2adbb3(0x263)]&&{'code':_0x1156b5[_0x2adbb3(0x263)]},..._0x1156b5?.[_0x2adbb3(0x1f6)]&&{'name':_0x1156b5['name']}}});return extractList(_0x50d51d[_0x2adbb3(0x1e0)]);}export async function getDatasetDetail(_0x37154c){const _0x4eb2b3=a69_0x5dd1,_0x550da0=await apiRequest(_0x4eb2b3(0x218)+encodeURIComponent(_0x37154c));return _0x550da0[_0x4eb2b3(0x1e0)];}export async function getDatasetSdkUsageDoc(_0x1a132f,_0x27a6b6){const _0x12829f=a69_0x5dd1,_0x12b5e4=await toolboxRequest(_0x12829f(0x1e6),{'datasetCode':_0x1a132f,'appCode':_0x27a6b6});return typeof _0x12b5e4?.[_0x12829f(0x20d)]==='string'?_0x12b5e4[_0x12829f(0x20d)]:'';}export async function getRuntimeAppConfigByKey(_0x1d75f4,_0xb4696b){const _0x1b3309=a69_0x5dd1,_0x5d047c=new URLSearchParams({'appCode':_0x1d75f4,'key':_0xb4696b}),_0xe6cf0=await apiRequest('/client/app-config/getByKey?'+_0x5d047c[_0x1b3309(0x25b)]());if(!_0xe6cf0[_0x1b3309(0x1e0)])throw CliErrors[_0x1b3309(0x241)](_0x1b3309(0x215)+_0xb4696b);return _0xe6cf0['data'];}export async function listRuntimeArtifacts(_0x30f64c,_0x2e1c6a){const _0x3a73b3=a69_0x5dd1,_0x5f1db1=new URLSearchParams({'appCode':_0x30f64c});if(_0x2e1c6a?.[_0x3a73b3(0x227)])_0x5f1db1['set'](_0x3a73b3(0x227),_0x2e1c6a[_0x3a73b3(0x227)]);if(_0x2e1c6a?.['source'])_0x5f1db1[_0x3a73b3(0x1ea)](_0x3a73b3(0x1e1),_0x2e1c6a['source']);if(_0x2e1c6a?.['favorite']!==undefined)_0x5f1db1[_0x3a73b3(0x1ea)](_0x3a73b3(0x254),String(_0x2e1c6a[_0x3a73b3(0x254)]));const _0x534516=await apiRequest(_0x3a73b3(0x1f9)+_0x5f1db1[_0x3a73b3(0x25b)]());return Array[_0x3a73b3(0x1f0)](_0x534516[_0x3a73b3(0x1e0)])?_0x534516[_0x3a73b3(0x1e0)]:[];}export async function getRuntimeArtifact(_0x10bc80,_0x5c8f1a){const _0x1b3c57=a69_0x5dd1,_0x1c9ab7=await apiRequest('/client/artifact/'+_0x10bc80+'?appCode='+encodeURIComponent(_0x5c8f1a));if(!_0x1c9ab7[_0x1b3c57(0x1e0)])throw CliErrors[_0x1b3c57(0x241)](_0x1b3c57(0x251)+_0x10bc80);return _0x1c9ab7[_0x1b3c57(0x1e0)];}export async function createRuntimeArtifact(_0x465914,_0x513a1b){const _0x4bee87=a69_0x5dd1,_0x1ccb33=await apiRequest(_0x4bee87(0x235),{'method':_0x4bee87(0x209),'body':{'appCode':_0x465914,..._0x513a1b}});return _0x1ccb33[_0x4bee87(0x1e0)];}export async function updateRuntimeArtifact(_0x46c5df,_0x531d06,_0x40ae50){const _0x22fe0a=a69_0x5dd1,_0x4a6cfd=await apiRequest(_0x22fe0a(0x258)+_0x46c5df+_0x22fe0a(0x24f),{'method':_0x22fe0a(0x209),'body':{'appCode':_0x531d06,..._0x40ae50}});return _0x4a6cfd[_0x22fe0a(0x1e0)];}export async function listPersonalBffs(_0x510614){const _0x9dc4f1=a69_0x5dd1,_0x56a639=await apiRequest(_0x9dc4f1(0x229)+encodeURIComponent(_0x510614));return Array[_0x9dc4f1(0x1f0)](_0x56a639['data'])?_0x56a639[_0x9dc4f1(0x1e0)]:[];}function a69_0x33e3(){const _0xd026fd=['skillCode','API\x20error\x20code:\x20','newConfigFileName','visibility','from','authRequired','PRIVATE','Toolbox\x20API\x20error','valid','apiError','application/octet-stream','appName','artifactType','skill','/client/runtime-bff/personal/list?appCode=','message','resolvedSlug','Configure\x20accessKey\x20in\x20','/api/node-toolbox/','toLowerCase','personal','summary','description','/publish','searchParams','752260kcpWMz','/client/artifact/create','?appCode=','Toolbox\x20returned\x20non-JSON\x20response\x20(HTTP\x20','namespace','63258SaLgjd','filter','msg','/client/user/loginUserInfo','warnings','json','/api/v1/skills/','errors','validation','259ZFmccg','object','GET','abort','catch','Knowledge-base\x20entry\x20not\x20found:\x20id=','slug','191927sfGYEP','/publish/validate','Missing\x20Skill\x20package\x20payload.','file','status','.zip','/update','stringify','Artifact\x20not\x20found:\x20id=','Invalid\x20login\x20user\x20info\x20response:\x20expected\x20object.','822pRdTto','favorite','Request\x20timeout:\x20','/client/knowledge-base/personal/','/versions/','/client/artifact/','replace','version','toString','/skills','Toolbox\x20error\x20code:\x20','374490BdzAxp','/client/runtime-bff/personal/','all','items','API\x20returned\x20non-JSON\x20response\x20(HTTP\x20','code','signal','effective','Download\x20failed:\x20','data','source','Toolbox\x20API\x20error:\x20','base64','API\x20error:\x20','/client/sql/query','api-doc-generator','AbortError','application/zip','SkillHub\x20API\x20error:\x20','set','map','trim','/download','scope','resolvedVersion','isArray','arrayBuffer','values','tableData','3303536NvvvuZ','Check\x20your\x20credentials\x20and\x20try\x20again.','name','/client/runtime-bff/personal/create','headlineVersion','/client/artifact/list?','displayName','appCode','application/json','undefined','SQL\x20query\x20not\x20found:\x20','errorCode','company','BFF\x20script\x20not\x20found:\x20id=','9lHCUlC','/api/cli/v1/skills/','/client/knowledge-base/search','publishedVersion','topK','errorMsg','entries','POST','584zSCpMK','Invalid\x20app\x20list\x20response:\x20expected\x20object\x20or\x20array.','content','markdown','text','/api/runtime/v1/namespaces/','invokeSource','string','Invalid\x20app\x20list\x20response:\x20missing\x20data.tableData.','success','boolean','App\x20config\x20not\x20found:\x20key=','/client/dataset/list','number','/client/dataset/get-driven-data?code=','81630xfQrDm','confirmWarnings'];a69_0x33e3=function(){return _0xd026fd;};return a69_0x33e3();}export async function getPersonalBff(_0x63d603,_0x4ea25c){const _0x3a093b=a69_0x5dd1,_0x3e7ba8=await apiRequest(_0x3a093b(0x25f)+_0x63d603+_0x3a093b(0x236)+encodeURIComponent(_0x4ea25c));if(!_0x3e7ba8[_0x3a093b(0x1e0)])throw CliErrors[_0x3a093b(0x241)]('Personal\x20BFF\x20not\x20found:\x20id='+_0x63d603);return _0x3e7ba8[_0x3a093b(0x1e0)];}export async function createPersonalBff(_0x19709c,_0x5181a5){const _0x285912=a69_0x5dd1,_0x9d224=await apiRequest(_0x285912(0x1f7),{'method':_0x285912(0x209),'body':{'appCode':_0x19709c,..._0x5181a5}});return _0x9d224[_0x285912(0x1e0)];}export async function updatePersonalBff(_0x204b5d,_0x2df8b9,_0x2a724e){const _0x1c0fe0=a69_0x5dd1,_0xd25859=await apiRequest(_0x1c0fe0(0x25f)+_0x204b5d+_0x1c0fe0(0x24f),{'method':_0x1c0fe0(0x209),'body':{'appCode':_0x2df8b9,..._0x2a724e}});return _0xd25859[_0x1c0fe0(0x1e0)];}export async function executePersonalBff(_0x51b2a1,_0x1d1ff1,_0x440685){const _0x2679a6=a69_0x5dd1,_0x35e246=await apiRequest(_0x2679a6(0x25f)+_0x51b2a1+'/execute?appCode='+encodeURIComponent(_0x1d1ff1),{'method':_0x2679a6(0x209),'body':_0x440685});return _0x35e246['data'];}export async function listPersonalKnowledgeBaseItems(_0x7e2dc3){const _0x5ecdb5=a69_0x5dd1,_0x500268=await apiRequest('/client/knowledge-base/personal/list?appCode='+encodeURIComponent(_0x7e2dc3));return Array[_0x5ecdb5(0x1f0)](_0x500268[_0x5ecdb5(0x1e0)])?_0x500268[_0x5ecdb5(0x1e0)]:[];}export async function getPersonalKnowledgeBaseItem(_0x2d04ca,_0x10a894){const _0x4d7206=a69_0x5dd1,_0x3f4c70=await apiRequest(_0x4d7206(0x256)+_0x2d04ca+_0x4d7206(0x236)+encodeURIComponent(_0x10a894));if(!_0x3f4c70[_0x4d7206(0x1e0)])throw CliErrors[_0x4d7206(0x241)](_0x4d7206(0x247)+_0x2d04ca);return _0x3f4c70[_0x4d7206(0x1e0)];}export async function createPersonalKnowledgeBaseItem(_0x4b7eca,_0x1cdb3e){const _0x32ad97=a69_0x5dd1,_0x96774d=await apiRequest('/client/knowledge-base/personal/create',{'method':_0x32ad97(0x209),'body':{'appCode':_0x4b7eca,..._0x1cdb3e}});return _0x96774d['data'];}export async function updatePersonalKnowledgeBaseItem(_0x15ccbf,_0x129cef,_0x55252e){const _0x53e79d=a69_0x5dd1,_0x480e79=await apiRequest(_0x53e79d(0x256)+_0x15ccbf+_0x53e79d(0x24f),{'method':'POST','body':{'appCode':_0x129cef,..._0x55252e}});return _0x480e79['data'];}export async function searchKnowledgeBase(_0x33c80d,_0x319f75){const _0x4ee446=a69_0x5dd1,_0xde5b72=await apiRequest(_0x4ee446(0x204),{'method':_0x4ee446(0x209),'body':{'appCode':_0x33c80d,'query':_0x319f75['query'],..._0x319f75[_0x4ee446(0x206)]!==undefined?{'topK':_0x319f75['topK']}:{}}});return Array['isArray'](_0xde5b72[_0x4ee446(0x1e0)])?_0xde5b72[_0x4ee446(0x1e0)]:[];}export async function getRuntimeSkillByCode(_0x47888b,_0x450b02){const _0x2f042d=a69_0x5dd1,_0x3201ac=await skillHubJsonRequest(_0x2f042d(0x23f)+encodeURIComponent(_0x47888b)+'/'+encodeURIComponent(_0x450b02),{'allowNotFound':!![]});return _0x3201ac?skillHubRuntimeDetailToRuntimeSkill(_0x3201ac):undefined;}export async function listRuntimeSkills(_0x20074a){const _0x19024e=a69_0x5dd1,_0x17d44a=await skillHubJsonRequest(_0x19024e(0x20f)+encodeURIComponent(_0x20074a[_0x19024e(0x1fb)])+_0x19024e(0x25c),{'query':{'page':0x0,'size':0xc8}});return normalizeSkillHubRuntimeListResponse(_0x20074a[_0x19024e(0x1fb)],_0x17d44a,_0x20074a[_0x19024e(0x1ee)]??_0x19024e(0x260),_0x20074a[_0x19024e(0x263)]);}export async function listPersonalRuntimeSkills(_0x77f4a0){const _0x2e06da=a69_0x5dd1;return(await listRuntimeSkills({'appCode':_0x77f4a0,'scope':_0x2e06da(0x22f)}))['personal'];}export async function listCompanyRuntimeSkills(_0x15f36e){const _0xb0ec53=a69_0x5dd1;return(await listRuntimeSkills({'appCode':_0x15f36e,'scope':_0xb0ec53(0x200)}))[_0xb0ec53(0x200)];}export async function listVisibleRuntimeSkills(_0x1e27ee){const _0x71ad22=a69_0x5dd1;return(await listRuntimeSkills({'appCode':_0x1e27ee,'scope':_0x71ad22(0x260)}))[_0x71ad22(0x1de)];}export async function createPersonalRuntimeSkill(_0x25973c,_0x3cedda){return publishRuntimeSkill(_0x25973c,_0x3cedda,{'visibility':'PRIVATE'});}export async function updatePersonalRuntimeSkill(_0x2cbe18,_0x1b95dc,_0x4a690e){return publishRuntimeSkill(_0x1b95dc,{..._0x4a690e,'skillCode':_0x4a690e['skillCode']??_0x2cbe18},{'visibility':'PRIVATE'});}function a69_0x5dd1(_0x18c684,_0x42cca3){_0x18c684=_0x18c684-0x1de;const _0x33e38c=a69_0x33e3();let _0x5dd1b1=_0x33e38c[_0x18c684];return _0x5dd1b1;}export async function publishCompanyRuntimeSkill(_0x3305a5,_0x1453c4,_0x2dda5c={}){const _0x4993b2=a69_0x5dd1;return publishRuntimeSkill(_0x3305a5,_0x1453c4,{'visibility':'NAMESPACE_ONLY','confirmWarnings':_0x2dda5c[_0x4993b2(0x21a)]});}export async function validateRuntimeSkillPublish(_0x1ed76b,_0x24110c,_0x359856){const _0x2fe731=a69_0x5dd1,_0x314797=buildRuntimeSkillPublishForm(_0x24110c,_0x359856[_0x2fe731(0x21e)]),_0x119ee4=await skillHubJsonRequest(_0x2fe731(0x203)+encodeURIComponent(_0x1ed76b)+_0x2fe731(0x24a),{'method':_0x2fe731(0x209),'body':_0x314797});return{'valid':_0x119ee4[_0x2fe731(0x223)]===!![],'errors':Array[_0x2fe731(0x1f0)](_0x119ee4[_0x2fe731(0x240)])?_0x119ee4[_0x2fe731(0x240)]:[],'warnings':Array[_0x2fe731(0x1f0)](_0x119ee4[_0x2fe731(0x23d)])?_0x119ee4[_0x2fe731(0x23d)]:[],'resolvedSlug':_0x119ee4[_0x2fe731(0x22b)],'resolvedVersion':_0x119ee4[_0x2fe731(0x1ef)]};}export async function downloadRuntimeSkillPackage(_0x23f702,_0x1706a1,_0x21bd56,_0x1d1539){const _0x2104bc=a69_0x5dd1;void _0x23f702;const _0x4c195f=_0x1d1539?_0x2104bc(0x203)+encodeURIComponent(_0x21bd56)+'/'+encodeURIComponent(_0x1706a1)+_0x2104bc(0x257)+encodeURIComponent(_0x1d1539)+_0x2104bc(0x1ed):_0x2104bc(0x203)+encodeURIComponent(_0x21bd56)+'/'+encodeURIComponent(_0x1706a1)+_0x2104bc(0x1ed);return skillHubBinaryRequest(_0x4c195f);}async function publishRuntimeSkill(_0x440cfc,_0x64d2a6,_0x8c903e){const _0x45b08f=a69_0x5dd1,_0x3da1b2=buildRuntimeSkillPublishForm(_0x64d2a6,_0x8c903e[_0x45b08f(0x21e)]),_0x579331=await skillHubJsonRequest('/api/cli/v1/skills/'+encodeURIComponent(_0x440cfc)+_0x45b08f(0x232),{'method':'POST','query':{'confirmWarnings':_0x8c903e[_0x45b08f(0x21a)]===!![]?!![]:undefined},'body':_0x3da1b2});return{'appCode':_0x579331[_0x45b08f(0x238)]??_0x440cfc,'skillCode':_0x579331['slug']??_0x64d2a6[_0x45b08f(0x21b)]??'','skillName':_0x64d2a6['skillName']??_0x579331[_0x45b08f(0x248)]??_0x64d2a6[_0x45b08f(0x21b)],'description':_0x64d2a6[_0x45b08f(0x231)],'scope':skillHubVisibilityToScope(_0x579331[_0x45b08f(0x21e)]??_0x8c903e[_0x45b08f(0x21e)])??_0x45b08f(0x22f),'version':_0x579331[_0x45b08f(0x25a)]??_0x64d2a6['version'],'tags':_0x64d2a6['tags'],'content':_0x64d2a6[_0x45b08f(0x20c)]};}function buildRuntimeSkillPublishForm(_0x41067c,_0x29e3fc){const _0x45eedd=a69_0x5dd1,_0x39218d=new FormData();return _0x39218d[_0x45eedd(0x1ea)](_0x45eedd(0x24c),runtimeSkillPackageFile(_0x41067c)),_0x39218d[_0x45eedd(0x1ea)](_0x45eedd(0x21e),_0x29e3fc),_0x39218d;}function runtimeSkillPackageFile(_0x35aed6){const _0x4b8d59=a69_0x5dd1;if(!_0x35aed6['packageBase64'])throw CliErrors[_0x4b8d59(0x241)](_0x4b8d59(0x24b));const _0x28e1b1=Buffer[_0x4b8d59(0x21f)](_0x35aed6['packageBase64'],_0x4b8d59(0x1e3)),_0x3677de=new Blob([_0x28e1b1],{'type':'application/zip'}),_0x1635ea=(_0x35aed6[_0x4b8d59(0x21b)]||_0x4b8d59(0x228))+_0x4b8d59(0x24e);if(typeof File!==_0x4b8d59(0x1fd))return new File([_0x3677de],_0x1635ea,{'type':_0x4b8d59(0x1e8)});return _0x3677de;}function normalizeSkillHubRuntimeListResponse(_0x4d7e77,_0x4f9952,_0x4b04b6,_0x337c3){const _0x384899=a69_0x5dd1,_0xee7dca=Array['isArray'](_0x4f9952)?_0x4f9952:Array[_0x384899(0x1f0)](_0x4f9952?.[_0x384899(0x261)])?_0x4f9952[_0x384899(0x261)]:[],_0x1aa7e8=_0x337c3?.[_0x384899(0x1ec)](),_0x46f2ac=_0xee7dca[_0x384899(0x23a)](_0xc427e7=>!_0x1aa7e8||_0xc427e7[_0x384899(0x248)]===_0x1aa7e8)[_0x384899(0x1eb)](skillHubRuntimeItemToRuntimeSkill)['filter'](_0x3b6ac3=>Boolean(_0x3b6ac3)),_0x4c7a74=_0x46f2ac[_0x384899(0x23a)](_0x2ac62e=>_0x2ac62e[_0x384899(0x1ee)]===_0x384899(0x22f)),_0x40a612=_0x46f2ac['filter'](_0x1e19c2=>_0x1e19c2[_0x384899(0x1ee)]===_0x384899(0x200));return{'appCode':_0x4d7e77,'personal':_0x4b04b6===_0x384899(0x200)?[]:_0x4c7a74,'company':_0x4b04b6===_0x384899(0x22f)?[]:_0x40a612,'effective':buildEffectiveRuntimeSkills(_0x4c7a74,_0x40a612,_0x4b04b6)};}function skillHubRuntimeItemToRuntimeSkill(_0xe0d620){const _0xbd2be3=a69_0x5dd1,_0x493f56=_0xe0d620[_0xbd2be3(0x248)]?.[_0xbd2be3(0x1ec)](),_0x3d31ff=skillHubVisibilityToScope(_0xe0d620[_0xbd2be3(0x21e)]);if(!_0x493f56||!_0x3d31ff)return undefined;return{'id':_0xe0d620['id'],'appCode':_0xe0d620[_0xbd2be3(0x238)],'skillCode':_0x493f56,'skillName':_0xe0d620[_0xbd2be3(0x1fa)]??_0x493f56,'description':_0xe0d620['summary'],'scope':_0x3d31ff,'version':skillHubRuntimeItemVersion(_0xe0d620),'status':_0xe0d620['status']};}function skillHubRuntimeDetailToRuntimeSkill(_0x2565b0){const _0x2ba923=a69_0x5dd1,_0x3cbcbc=_0x2565b0[_0x2ba923(0x248)]?.[_0x2ba923(0x1ec)]();if(!_0x3cbcbc)return undefined;return{'id':_0x2565b0['id'],'appCode':_0x2565b0[_0x2ba923(0x238)],'skillCode':_0x3cbcbc,'skillName':_0x2565b0['displayName']??_0x3cbcbc,'description':_0x2565b0[_0x2ba923(0x230)],'scope':skillHubVisibilityToScope(_0x2565b0[_0x2ba923(0x21e)])??_0x2565b0[_0x2ba923(0x21e)]?.[_0x2ba923(0x22e)](),'version':skillHubRuntimeItemVersion(_0x2565b0),'status':_0x2565b0[_0x2ba923(0x24d)]};}function skillHubVisibilityToScope(_0x3a95a6){const _0x5083ff=a69_0x5dd1;if(_0x3a95a6===_0x5083ff(0x221))return _0x5083ff(0x22f);if(_0x3a95a6==='NAMESPACE_ONLY')return'company';return undefined;}function skillHubRuntimeItemVersion(_0xaaf7ef){const _0xb5a2c4=a69_0x5dd1;return _0xaaf7ef[_0xb5a2c4(0x205)]?.[_0xb5a2c4(0x25a)]??_0xaaf7ef[_0xb5a2c4(0x1f8)]?.['version']??_0xaaf7ef['ownerPreviewVersion']?.['version'];}function buildEffectiveRuntimeSkills(_0x59b4ad,_0x56d901,_0x21bed9){const _0xc2ba4b=a69_0x5dd1;if(_0x21bed9===_0xc2ba4b(0x22f))return _0x59b4ad;if(_0x21bed9==='company')return _0x56d901;const _0x59ddd5=new Map();for(const _0x34f880 of _0x56d901){_0x59ddd5[_0xc2ba4b(0x1ea)](_0x34f880[_0xc2ba4b(0x21b)],_0x34f880);}for(const _0x24db09 of _0x59b4ad){_0x59ddd5['set'](_0x24db09[_0xc2ba4b(0x21b)],_0x24db09);}return Array[_0xc2ba4b(0x21f)](_0x59ddd5[_0xc2ba4b(0x1f2)]());}function normalizeRuntimeSkillListResponse(_0x125c3b,_0x421ea3){const _0x573899=a69_0x5dd1;if(Array[_0x573899(0x1f0)](_0x421ea3)){const _0x29a626=_0x421ea3[_0x573899(0x23a)](_0xc78224=>_0xc78224['scope']===_0x573899(0x22f)),_0xbf65f4=_0x421ea3[_0x573899(0x23a)](_0x5e4e93=>_0x5e4e93['scope']===_0x573899(0x200));return{'appCode':_0x125c3b,'personal':_0x29a626,'company':_0xbf65f4,'effective':[..._0xbf65f4,..._0x29a626]};}return{'appCode':_0x421ea3?.['appCode']??_0x125c3b,'personal':Array[_0x573899(0x1f0)](_0x421ea3?.[_0x573899(0x22f)])?_0x421ea3['personal']:[],'company':Array[_0x573899(0x1f0)](_0x421ea3?.[_0x573899(0x200)])?_0x421ea3['company']:[],'effective':Array[_0x573899(0x1f0)](_0x421ea3?.[_0x573899(0x1de)])?_0x421ea3[_0x573899(0x1de)]:[]};}
@@ -1 +1 @@
1
- function a67_0x30f2(_0x153601,_0x1a702e){_0x153601=_0x153601-0x101;const _0x3ebf19=a67_0x3ebf();let _0x30f23a=_0x3ebf19[_0x153601];return _0x30f23a;}(function(_0x193b84,_0x44d65b){const _0x5058c9=a67_0x30f2,_0x581a51=_0x193b84();while(!![]){try{const _0x469966=-parseInt(_0x5058c9(0x111))/0x1+-parseInt(_0x5058c9(0x10f))/0x2*(parseInt(_0x5058c9(0x102))/0x3)+-parseInt(_0x5058c9(0x112))/0x4*(parseInt(_0x5058c9(0x10d))/0x5)+-parseInt(_0x5058c9(0x110))/0x6*(-parseInt(_0x5058c9(0x103))/0x7)+-parseInt(_0x5058c9(0x10a))/0x8*(-parseInt(_0x5058c9(0x108))/0x9)+-parseInt(_0x5058c9(0x101))/0xa*(-parseInt(_0x5058c9(0x105))/0xb)+-parseInt(_0x5058c9(0x107))/0xc;if(_0x469966===_0x44d65b)break;else _0x581a51['push'](_0x581a51['shift']());}catch(_0x351b16){_0x581a51['push'](_0x581a51['shift']());}}}(a67_0x3ebf,0x6d5e2));function a67_0x3ebf(){const _0x476c8f=['has','dbId','580kDGWWv','set','321218yBhFih','988950mtPsIY','510770xlvTzK','7804lAWxKy','70OmlwJp','9iihLbB','35tUYHId','entries','1342462QQiwWO','db-','2322960crJtTc','11538qFtQFX','dbName','1136CwVbja'];a67_0x3ebf=function(){return _0x476c8f;};return a67_0x3ebf();}import{listDatasets}from'../core/api-client.js';const cache=new Map();export async function listDatabases(_0x4e2883){const _0x4d0764=a67_0x30f2;if(cache[_0x4d0764(0x10b)](_0x4e2883))return cache['get'](_0x4e2883);const _0x1a0ac7=await listDatasets(_0x4e2883),_0x5a0b9f=new Map();for(const _0x522c22 of _0x1a0ac7){const _0x1173ba=_0x522c22['dbtableConfig'];_0x1173ba?.[_0x4d0764(0x10c)]!=null&&_0x5a0b9f[_0x4d0764(0x10e)](_0x1173ba[_0x4d0764(0x10c)],_0x1173ba[_0x4d0764(0x109)]??_0x4d0764(0x106)+_0x1173ba[_0x4d0764(0x10c)]);}const _0x53007d=[..._0x5a0b9f[_0x4d0764(0x104)]()]['map'](([_0x1adee7,_0x1b2931])=>({'dbId':_0x1adee7,'dbName':_0x1b2931}));return cache['set'](_0x4e2883,_0x53007d),_0x53007d;}export async function getDbName(_0x51278c,_0x2a50be){try{const _0x462c1f=await listDatabases(_0x51278c);return _0x462c1f['find'](_0x3c27fb=>_0x3c27fb['dbId']===_0x2a50be)?.['dbName'];}catch{return undefined;}}
1
+ function a70_0x561d(){const _0x9feb63=['11985XdfrIl','5yfRPMU','dbId','has','set','get','47604SDxPZj','270594YRVZVO','271089ufxMZy','2184672QzHWHh','entries','1353GoNKFz','32sMejvt','556190jrhbEr','3ASSyUb','map','9nDNvwX','find','db-','dbName','559852nhgJse'];a70_0x561d=function(){return _0x9feb63;};return a70_0x561d();}function a70_0x40e4(_0x3d71ae,_0x4f6c62){_0x3d71ae=_0x3d71ae-0x1d2;const _0x561d4e=a70_0x561d();let _0x40e444=_0x561d4e[_0x3d71ae];return _0x40e444;}(function(_0x4283d8,_0x14fda9){const _0x2c6231=a70_0x40e4,_0x208f1c=_0x4283d8();while(!![]){try{const _0x20ddbb=-parseInt(_0x2c6231(0x1de))/0x1*(-parseInt(_0x2c6231(0x1d5))/0x2)+-parseInt(_0x2c6231(0x1d7))/0x3*(-parseInt(_0x2c6231(0x1dd))/0x4)+-parseInt(_0x2c6231(0x1df))/0x5*(-parseInt(_0x2c6231(0x1e5))/0x6)+parseInt(_0x2c6231(0x1e6))/0x7+parseInt(_0x2c6231(0x1d2))/0x8+parseInt(_0x2c6231(0x1d9))/0x9*(-parseInt(_0x2c6231(0x1d6))/0xa)+-parseInt(_0x2c6231(0x1d4))/0xb*(parseInt(_0x2c6231(0x1e4))/0xc);if(_0x20ddbb===_0x14fda9)break;else _0x208f1c['push'](_0x208f1c['shift']());}catch(_0x138e26){_0x208f1c['push'](_0x208f1c['shift']());}}}(a70_0x561d,0x236b1));import{listDatasets}from'../core/api-client.js';const cache=new Map();export async function listDatabases(_0x1b3725){const _0x42c833=a70_0x40e4;if(cache[_0x42c833(0x1e1)](_0x1b3725))return cache[_0x42c833(0x1e3)](_0x1b3725);const _0x3cc2cb=await listDatasets(_0x1b3725),_0x295b48=new Map();for(const _0xe46901 of _0x3cc2cb){const _0x50993c=_0xe46901['dbtableConfig'];_0x50993c?.[_0x42c833(0x1e0)]!=null&&_0x295b48[_0x42c833(0x1e2)](_0x50993c[_0x42c833(0x1e0)],_0x50993c[_0x42c833(0x1dc)]??_0x42c833(0x1db)+_0x50993c['dbId']);}const _0x1b7544=[..._0x295b48[_0x42c833(0x1d3)]()][_0x42c833(0x1d8)](([_0x2dc527,_0x2b4c50])=>({'dbId':_0x2dc527,'dbName':_0x2b4c50}));return cache['set'](_0x1b3725,_0x1b7544),_0x1b7544;}export async function getDbName(_0x6cf272,_0x5b6d05){const _0x3a2e92=a70_0x40e4;try{const _0x1a87ca=await listDatabases(_0x6cf272);return _0x1a87ca[_0x3a2e92(0x1da)](_0x5a0edb=>_0x5a0edb[_0x3a2e92(0x1e0)]===_0x5b6d05)?.[_0x3a2e92(0x1dc)];}catch{return undefined;}}
@@ -1 +1 @@
1
- (function(_0x1b3fd4,_0x5e99a1){const _0xcbe594=a68_0x3a05,_0x22b130=_0x1b3fd4();while(!![]){try{const _0x1082b3=parseInt(_0xcbe594(0x102))/0x1+-parseInt(_0xcbe594(0xf2))/0x2*(parseInt(_0xcbe594(0xf3))/0x3)+parseInt(_0xcbe594(0xfe))/0x4+parseInt(_0xcbe594(0xf6))/0x5*(parseInt(_0xcbe594(0xfd))/0x6)+parseInt(_0xcbe594(0x100))/0x7*(-parseInt(_0xcbe594(0x115))/0x8)+-parseInt(_0xcbe594(0x113))/0x9*(parseInt(_0xcbe594(0x116))/0xa)+parseInt(_0xcbe594(0x107))/0xb;if(_0x1082b3===_0x5e99a1)break;else _0x22b130['push'](_0x22b130['shift']());}catch(_0x5198cc){_0x22b130['push'](_0x22b130['shift']());}}}(a68_0xbf81,0x756bc));import{createClient}from'@lovrabet/sdk';import{PRODUCT_CONFIG}from'../constant/product.js';import{CliErrors}from'../errors.js';import{parseBatchCreateItemsFromParams}from'../utils/params.js';let _client;export function initSdkClient(_0x50d219){const _0x217fa9=a68_0x3a05;_client=createClient({'appCode':_0x50d219[_0x217fa9(0x109)],'env':_0x50d219['env'],'authMode':_0x50d219['authMode'],..._0x50d219['accessKey']?{'accessKey':_0x50d219[_0x217fa9(0x108)]}:{},'options':{'timeout':0x7530,'headers':{'X-Invoke-Source':PRODUCT_CONFIG[_0x217fa9(0x104)]}}});}function ensureClient(){const _0x4a080c=a68_0x3a05;if(!_client)throw new Error(_0x4a080c(0xff));return _client;}function normalizeAggregateParams(_0x421425){const _0x20642b=a68_0x3a05,_0xaee80e=_0x421425['aggregate'];if(_0xaee80e===undefined)return _0x421425;if(!Array[_0x20642b(0x103)](_0xaee80e))throw CliErrors[_0x20642b(0x101)](_0x20642b(0xf7));return{..._0x421425,'aggregate':_0xaee80e[_0x20642b(0x114)]((_0x52d2a5,_0xdf1020)=>{const _0x55a142=_0x20642b;if(!_0x52d2a5||typeof _0x52d2a5!=='object'||Array['isArray'](_0x52d2a5))throw CliErrors['validation'](_0x55a142(0x10c)+_0xdf1020+_0x55a142(0xf4));const _0x50e306=_0x52d2a5[_0x55a142(0xf8)]??_0x52d2a5['field'];if(typeof _0x50e306!=='string'||_0x50e306['trim']()==='')throw CliErrors[_0x55a142(0x101)](_0x55a142(0x10c)+_0xdf1020+']\x20requires\x20\x22column\x22;\x20\x22field\x22\x20is\x20accepted\x20only\x20as\x20a\x20deprecated\x20alias.');const _0x2f3636={..._0x52d2a5,'column':_0x50e306};return delete _0x2f3636[_0x55a142(0x106)],_0x2f3636;})};}export async function executeData(_0x387256,_0x47e9a5,_0x551273){const _0x23e0c1=a68_0x3a05,_0x4fb51c=ensureClient(),_0x4101c1='dataset_'+_0x387256,_0x10cef7=_0x4fb51c['models'][_0x4101c1];if(!_0x10cef7||typeof _0x10cef7[_0x47e9a5]!==_0x23e0c1(0x111))throw new Error(_0x23e0c1(0x105)+_0x47e9a5+_0x23e0c1(0x10a)+_0x23e0c1(0x10f));if(_0x47e9a5==='batchCreate')return _0x10cef7[_0x23e0c1(0xfc)](parseBatchCreateItemsFromParams(_0x551273));const _0x3b0c0f=_0x551273!==undefined&&_0x551273!==null&&!Array[_0x23e0c1(0x103)](_0x551273)?_0x551273:{};switch(_0x47e9a5){case _0x23e0c1(0x10b):{const _0x4ab908=_0x3b0c0f['id'];if(_0x4ab908===undefined||_0x4ab908===null)throw new Error(_0x23e0c1(0xfa));return _0x10cef7[_0x23e0c1(0x10b)](_0x4ab908);}case _0x23e0c1(0xf5):{const {id:_0x171d77,..._0x20cfce}=_0x3b0c0f;if(_0x171d77===undefined||_0x171d77===null)throw new Error('update\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123,\x22name\x22:\x22new\x22}\x27');return _0x10cef7[_0x23e0c1(0xf5)](_0x171d77,_0x20cfce);}case _0x23e0c1(0x112):{const _0x26bee5=_0x3b0c0f['id'];if(_0x26bee5===undefined||_0x26bee5===null)throw new Error(_0x23e0c1(0x10d));return _0x10cef7['delete'](_0x26bee5);}case'aggregate':return _0x10cef7[_0x23e0c1(0x10e)](normalizeAggregateParams(_0x3b0c0f));default:return _0x10cef7[_0x47e9a5](_0x3b0c0f);}}function a68_0xbf81(){const _0x508a99=['14ZCDeqv','validation','239645eURwDW','isArray','invokeSource','SDK\x20model\x20does\x20not\x20support\x20operation\x20\x22','field','16398635etLFIx','accessKey','appCode','\x22.\x20','getOne','data\x20aggregate\x20--params.aggregate[','delete\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123}\x27','aggregate','Available:\x20filter,\x20getOne,\x20create,\x20batchCreate,\x20update,\x20delete,\x20aggregate.','bff','function','delete','2269161YpySZM','map','3653784pqsWYo','30JYlCtC','1008836FbuhOq','3jvsyse',']\x20must\x20be\x20an\x20object.','update','21510zEzMbk','data\x20aggregate\x20--params.aggregate\x20must\x20be\x20an\x20array.','column','execute','getOne\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123}\x27','sql','batchCreate','1164rkQzAg','360756mMMBMl','SDK\x20client\x20not\x20initialized.\x20Call\x20initSdkClient()\x20first.'];a68_0xbf81=function(){return _0x508a99;};return a68_0xbf81();}function a68_0x3a05(_0x206798,_0x5173ab){_0x206798=_0x206798-0xf2;const _0xbf8144=a68_0xbf81();let _0x3a0552=_0xbf8144[_0x206798];return _0x3a0552;}export async function executeSdkSql(_0xe6abe9,_0x24a886){const _0x2115fe=a68_0x3a05,_0x38edc0=ensureClient();return _0x38edc0[_0x2115fe(0xfb)][_0x2115fe(0xf9)]({'sqlCode':_0xe6abe9,'params':_0x24a886});}export async function executeSdkBff(_0x1d7f9b,_0xc3c063){const _0x1dd410=a68_0x3a05,_0x480b63=ensureClient();return _0x480b63[_0x1dd410(0x110)]['execute']({'scriptName':_0x1d7f9b,'params':_0xc3c063});}
1
+ (function(_0xd1d595,_0x183ac1){const _0x1cd345=a71_0x1f61,_0x2a9fdb=_0xd1d595();while(!![]){try{const _0xd0c56e=parseInt(_0x1cd345(0x10a))/0x1+-parseInt(_0x1cd345(0x109))/0x2+-parseInt(_0x1cd345(0xfd))/0x3+-parseInt(_0x1cd345(0x114))/0x4*(parseInt(_0x1cd345(0x115))/0x5)+-parseInt(_0x1cd345(0xfc))/0x6+parseInt(_0x1cd345(0x107))/0x7*(parseInt(_0x1cd345(0x118))/0x8)+-parseInt(_0x1cd345(0x113))/0x9*(-parseInt(_0x1cd345(0x108))/0xa);if(_0xd0c56e===_0x183ac1)break;else _0x2a9fdb['push'](_0x2a9fdb['shift']());}catch(_0xbe0dd7){_0x2a9fdb['push'](_0x2a9fdb['shift']());}}}(a71_0x37df,0x7064d));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 a71_0x1f61(_0x5b1dd9,_0x45691f){_0x5b1dd9=_0x5b1dd9-0xf4;const _0x37df06=a71_0x37df();let _0x1f6158=_0x37df06[_0x5b1dd9];return _0x1f6158;}export function initSdkClient(_0x398812){const _0x2f7ee6=a71_0x1f61;_client=createClient({'appCode':_0x398812[_0x2f7ee6(0x119)],'env':_0x398812[_0x2f7ee6(0x102)],'authMode':_0x398812['authMode'],..._0x398812['accessKey']?{'accessKey':_0x398812[_0x2f7ee6(0xf4)]}:{},'options':{'timeout':0x7530,'headers':{'X-Invoke-Source':PRODUCT_CONFIG[_0x2f7ee6(0xf7)]}}});}function ensureClient(){if(!_client)throw new Error('SDK\x20client\x20not\x20initialized.\x20Call\x20initSdkClient()\x20first.');return _client;}function a71_0x37df(){const _0x46265a=['batchCreate','update','field','aggregate','3142746gzElIa','1575186HJAWfi','delete\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123}\x27','validation','delete','update\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123,\x22name\x22:\x22new\x22}\x27','env','sql','function','map','column','142576OBlZwA','20810pswsqj','1816566rhkxVX','35951RVmthR','SDK\x20model\x20does\x20not\x20support\x20operation\x20\x22','getOne\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123}\x27','dataset_',']\x20requires\x20\x22column\x22;\x20\x22field\x22\x20is\x20accepted\x20only\x20as\x20a\x20deprecated\x20alias.','data\x20aggregate\x20--params.aggregate[','object','Available:\x20filter,\x20getOne,\x20create,\x20batchCreate,\x20update,\x20delete,\x20aggregate.','execute','11619DiWrLI','4zoKCfP','3969265mdNCCK','bff','string','192UQRJWJ','appCode','data\x20aggregate\x20--params.aggregate\x20must\x20be\x20an\x20array.','accessKey',']\x20must\x20be\x20an\x20object.','getOne','invokeSource'];a71_0x37df=function(){return _0x46265a;};return a71_0x37df();}function normalizeAggregateParams(_0x18d58a){const _0x4f3587=a71_0x1f61,_0x2befdc=_0x18d58a[_0x4f3587(0xfb)];if(_0x2befdc===undefined)return _0x18d58a;if(!Array['isArray'](_0x2befdc))throw CliErrors[_0x4f3587(0xff)](_0x4f3587(0x11a));return{..._0x18d58a,'aggregate':_0x2befdc[_0x4f3587(0x105)]((_0x8707d3,_0x45b3ee)=>{const _0x293577=_0x4f3587;if(!_0x8707d3||typeof _0x8707d3!==_0x293577(0x110)||Array['isArray'](_0x8707d3))throw CliErrors['validation'](_0x293577(0x10f)+_0x45b3ee+_0x293577(0xf5));const _0xf85429=_0x8707d3[_0x293577(0x106)]??_0x8707d3[_0x293577(0xfa)];if(typeof _0xf85429!==_0x293577(0x117)||_0xf85429['trim']()==='')throw CliErrors[_0x293577(0xff)](_0x293577(0x10f)+_0x45b3ee+_0x293577(0x10e));const _0x436fda={..._0x8707d3,'column':_0xf85429};return delete _0x436fda['field'],_0x436fda;})};}export async function executeData(_0x294bf9,_0x1dda6b,_0x362e9d){const _0x1b165c=a71_0x1f61,_0x787f04=ensureClient(),_0x39e2bb=_0x1b165c(0x10d)+_0x294bf9,_0x3ac7a1=_0x787f04['models'][_0x39e2bb];if(!_0x3ac7a1||typeof _0x3ac7a1[_0x1dda6b]!==_0x1b165c(0x104))throw new Error(_0x1b165c(0x10b)+_0x1dda6b+'\x22.\x20'+_0x1b165c(0x111));if(_0x1dda6b===_0x1b165c(0xf8))return _0x3ac7a1[_0x1b165c(0xf8)](parseBatchCreateItemsFromParams(_0x362e9d));const _0x3c98ca=_0x362e9d!==undefined&&_0x362e9d!==null&&!Array['isArray'](_0x362e9d)?_0x362e9d:{};switch(_0x1dda6b){case _0x1b165c(0xf6):{const _0x56b5b9=_0x3c98ca['id'];if(_0x56b5b9===undefined||_0x56b5b9===null)throw new Error(_0x1b165c(0x10c));return _0x3ac7a1[_0x1b165c(0xf6)](_0x56b5b9);}case _0x1b165c(0xf9):{const {id:_0x129960,..._0x231d33}=_0x3c98ca;if(_0x129960===undefined||_0x129960===null)throw new Error(_0x1b165c(0x101));return _0x3ac7a1[_0x1b165c(0xf9)](_0x129960,_0x231d33);}case'delete':{const _0x4d153f=_0x3c98ca['id'];if(_0x4d153f===undefined||_0x4d153f===null)throw new Error(_0x1b165c(0xfe));return _0x3ac7a1[_0x1b165c(0x100)](_0x4d153f);}case'aggregate':return _0x3ac7a1[_0x1b165c(0xfb)](normalizeAggregateParams(_0x3c98ca));default:return _0x3ac7a1[_0x1dda6b](_0x3c98ca);}}export async function executeSdkSql(_0x760bf4,_0x35b275){const _0x186f73=a71_0x1f61,_0x20b96e=ensureClient();return _0x20b96e[_0x186f73(0x103)][_0x186f73(0x112)]({'sqlCode':_0x760bf4,'params':_0x35b275});}export async function executeSdkBff(_0x2c74be,_0x5abab4){const _0x5773f9=a71_0x1f61,_0x40fb9e=ensureClient();return _0x40fb9e[_0x5773f9(0x116)]['execute']({'scriptName':_0x2c74be,'params':_0x5abab4});}
package/lib/errors.js CHANGED
@@ -1 +1 @@
1
- const a69_0x3103de=a69_0x3c28;(function(_0x539613,_0x238e2b){const _0x5d30f0=a69_0x3c28,_0xa52e35=_0x539613();while(!![]){try{const _0x14d8a5=-parseInt(_0x5d30f0(0xf8))/0x1*(-parseInt(_0x5d30f0(0xfb))/0x2)+parseInt(_0x5d30f0(0x103))/0x3+-parseInt(_0x5d30f0(0xf5))/0x4*(parseInt(_0x5d30f0(0x102))/0x5)+parseInt(_0x5d30f0(0xfc))/0x6+-parseInt(_0x5d30f0(0xf3))/0x7+parseInt(_0x5d30f0(0x100))/0x8*(parseInt(_0x5d30f0(0x101))/0x9)+-parseInt(_0x5d30f0(0xfa))/0xa*(parseInt(_0x5d30f0(0xf6))/0xb);if(_0x14d8a5===_0x238e2b)break;else _0xa52e35['push'](_0xa52e35['shift']());}catch(_0x547405){_0xa52e35['push'](_0xa52e35['shift']());}}}(a69_0x4283,0x51684));import{CliError,createCliErrors}from'@lovrabet/cli-framework';import{CLI_BIN_NAME}from'./constant/cli.js';import{PRODUCT_CONFIG}from'./constant/product.js';function a69_0x4283(){const _0x7164a6=['1535661KuRqoF','3168291KTrZKj','\x20auth\x20login`.','16dWDeEH','2141359hdQVhO','newConfigFileName','325631VkdcgV','\x20or\x20run\x20`','50QFkhVx','4ODlCrb','2906670gLbObU','Set\x20appcode\x20via\x20--appcode\x20or\x20','\x20file.','Configure\x20accessKey\x20in\x20','8fQRGPS','3472416aTOTJz','342520NdsxRX'];a69_0x4283=function(){return _0x7164a6;};return a69_0x4283();}export{CliError};function a69_0x3c28(_0x50db6f,_0x15376d){_0x50db6f=_0x50db6f-0xf3;const _0x428331=a69_0x4283();let _0x3c28ba=_0x428331[_0x50db6f];return _0x3c28ba;}export const CliErrors=createCliErrors({'cliBinName':CLI_BIN_NAME,'authRequiredHint':a69_0x3103de(0xff)+PRODUCT_CONFIG[a69_0x3103de(0xf7)]+a69_0x3103de(0xf9)+CLI_BIN_NAME+a69_0x3103de(0xf4),'configMissingHint':a69_0x3103de(0xfd)+PRODUCT_CONFIG['newConfigFileName']+'.','notInProjectHint':'Run\x20this\x20command\x20inside\x20a\x20directory\x20with\x20a\x20'+PRODUCT_CONFIG[a69_0x3103de(0xf7)]+a69_0x3103de(0xfe)});
1
+ function a72_0x243f(_0x45256b,_0x51825d){_0x45256b=_0x45256b-0x1ef;const _0x1ef433=a72_0x1ef4();let _0x243f21=_0x1ef433[_0x45256b];return _0x243f21;}const a72_0x395e3c=a72_0x243f;(function(_0x52e4b5,_0x3b1064){const _0x7ae98c=a72_0x243f,_0x345359=_0x52e4b5();while(!![]){try{const _0x2673af=parseInt(_0x7ae98c(0x1f8))/0x1*(parseInt(_0x7ae98c(0x1f1))/0x2)+-parseInt(_0x7ae98c(0x1f6))/0x3+parseInt(_0x7ae98c(0x1fc))/0x4+-parseInt(_0x7ae98c(0x1f4))/0x5+-parseInt(_0x7ae98c(0x1fa))/0x6*(-parseInt(_0x7ae98c(0x1fd))/0x7)+-parseInt(_0x7ae98c(0x1ef))/0x8+parseInt(_0x7ae98c(0x1f2))/0x9*(parseInt(_0x7ae98c(0x1f9))/0xa);if(_0x2673af===_0x3b1064)break;else _0x345359['push'](_0x345359['shift']());}catch(_0x22bf3){_0x345359['push'](_0x345359['shift']());}}}(a72_0x1ef4,0x6c22b));function a72_0x1ef4(){const _0x14da70=['1125560lZGJhb','Run\x20this\x20command\x20inside\x20a\x20directory\x20with\x20a\x20','1490970PwqkvT','newConfigFileName','3DBCaAO','79140yFyqXB','4926858XOXjMj','Set\x20appcode\x20via\x20--appcode\x20or\x20','101864JpPFBz','7nwFSjO','3354560TDIiXP','\x20file.','32812xTwHjR','783gSBoDc','\x20auth\x20login`.'];a72_0x1ef4=function(){return _0x14da70;};return a72_0x1ef4();}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[a72_0x395e3c(0x1f7)]+'\x20or\x20run\x20`'+CLI_BIN_NAME+a72_0x395e3c(0x1f3),'configMissingHint':a72_0x395e3c(0x1fb)+PRODUCT_CONFIG[a72_0x395e3c(0x1f7)]+'.','notInProjectHint':a72_0x395e3c(0x1f5)+PRODUCT_CONFIG[a72_0x395e3c(0x1f7)]+a72_0x395e3c(0x1f0)});
@@ -1 +1 @@
1
- (function(_0x1be33d,_0x21389c){var _0x5113d6=a70_0x3339,_0x17fbb7=_0x1be33d();while(!![]){try{var _0x243588=parseInt(_0x5113d6(0x11f))/0x1*(parseInt(_0x5113d6(0x122))/0x2)+parseInt(_0x5113d6(0x11c))/0x3*(parseInt(_0x5113d6(0x123))/0x4)+-parseInt(_0x5113d6(0x127))/0x5+parseInt(_0x5113d6(0x125))/0x6*(parseInt(_0x5113d6(0x121))/0x7)+-parseInt(_0x5113d6(0x124))/0x8*(-parseInt(_0x5113d6(0x120))/0x9)+-parseInt(_0x5113d6(0x11d))/0xa+-parseInt(_0x5113d6(0x126))/0xb*(parseInt(_0x5113d6(0x11e))/0xc);if(_0x243588===_0x21389c)break;else _0x17fbb7['push'](_0x17fbb7['shift']());}catch(_0x1ef34e){_0x17fbb7['push'](_0x17fbb7['shift']());}}}(a70_0x22f0,0xef130));import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';function a70_0x3339(_0x459364,_0x47d8e1){_0x459364=_0x459364-0x11c;var _0x22f0a1=a70_0x22f0();var _0x33394e=_0x22f0a1[_0x459364];return _0x33394e;}import{buildAllFlags as a70_0x2025d7}from'@lovrabet/cli-framework';function a70_0x22f0(){var _0x358ad5=['3890700cfgCPN','2761000krfwuX','101844LMvlMY','1254109lIcfPv','36IsDuOS','21dtRzCh','2zkacPO','4gCPtnL','2839472hMNEEq','3047832OFkSaw','4565IPOifj','3586040aBxOYy'];a70_0x22f0=function(){return _0x358ad5;};return a70_0x22f0();}export function buildAllFlags(_0x19b698){return a70_0x2025d7(_0x19b698,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});}
1
+ function a73_0x3eac(){var _0x5bb957=['2436363vrWJDI','16280bEAWwC','38612KAOLiu','5VIUyyw','1vgwbEn','384WQvFgH','867116LqiniK','34894mVcKwN','810256snhWKu','404661JqzpLG','2540zjTBLy'];a73_0x3eac=function(){return _0x5bb957;};return a73_0x3eac();}(function(_0x43d2bb,_0x2f5b98){var _0x219de3=a73_0x201c,_0xbdc84c=_0x43d2bb();while(!![]){try{var _0x156896=parseInt(_0x219de3(0x9c))/0x1*(parseInt(_0x219de3(0x94))/0x2)+parseInt(_0x219de3(0x96))/0x3+parseInt(_0x219de3(0x9e))/0x4*(parseInt(_0x219de3(0x9b))/0x5)+parseInt(_0x219de3(0x9d))/0x6*(parseInt(_0x219de3(0x9a))/0x7)+parseInt(_0x219de3(0x95))/0x8+-parseInt(_0x219de3(0x98))/0x9+parseInt(_0x219de3(0x97))/0xa*(-parseInt(_0x219de3(0x99))/0xb);if(_0x156896===_0x2f5b98)break;else _0xbdc84c['push'](_0xbdc84c['shift']());}catch(_0x423337){_0xbdc84c['push'](_0xbdc84c['shift']());}}}(a73_0x3eac,0x2b298));function a73_0x201c(_0x2aaf90,_0x15b30a){_0x2aaf90=_0x2aaf90-0x94;var _0x3eac2e=a73_0x3eac();var _0x201c5c=_0x3eac2e[_0x2aaf90];return _0x201c5c;}import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';import{buildAllFlags as a73_0x36f97e}from'@lovrabet/cli-framework';export function buildAllFlags(_0x172690){return a73_0x36f97e(_0x172690,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});}
@@ -1 +1 @@
1
- function a71_0xfc05(){const _0x2d9cfa=['212409JDEDRy','48594vXFdwt','body','description','50BAucgY','154mUoVSL','61096etJhRW','1322008FbmcgP','1151535BiIJJH','239674ytaXkS','285879DegPsi','27fdhjit','8YODNKk'];a71_0xfc05=function(){return _0x2d9cfa;};return a71_0xfc05();}(function(_0x189f8e,_0x11c295){const _0x6266fe=a71_0x4bb0,_0x4eb218=_0x189f8e();while(!![]){try{const _0x5858d=-parseInt(_0x6266fe(0x171))/0x1+parseInt(_0x6266fe(0x16e))/0x2*(parseInt(_0x6266fe(0x173))/0x3)+-parseInt(_0x6266fe(0x16f))/0x4+parseInt(_0x6266fe(0x170))/0x5+parseInt(_0x6266fe(0x176))/0x6*(parseInt(_0x6266fe(0x16d))/0x7)+-parseInt(_0x6266fe(0x174))/0x8*(parseInt(_0x6266fe(0x175))/0x9)+-parseInt(_0x6266fe(0x16c))/0xa*(-parseInt(_0x6266fe(0x172))/0xb);if(_0x5858d===_0x11c295)break;else _0x4eb218['push'](_0x4eb218['shift']());}catch(_0x4a931e){_0x4eb218['push'](_0x4eb218['shift']());}}}(a71_0xfc05,0x359c1));function a71_0x4bb0(_0x27d99f,_0x497610){_0x27d99f=_0x27d99f-0x16b;const _0xfc05f3=a71_0xfc05();let _0x4bb0a2=_0xfc05f3[_0x27d99f];return _0x4bb0a2;}export function dryRun(_0x20cd4f,_0x509e69){const _0x8dcfa1={'method':_0x20cd4f,'url':_0x509e69},_0x43e9ba={'body'(_0x5b6320){const _0x4e86c4=a71_0x4bb0;return _0x8dcfa1[_0x4e86c4(0x177)]=_0x5b6320,_0x43e9ba;},'description'(_0x5bd85a){const _0x88c77c=a71_0x4bb0;return _0x8dcfa1[_0x88c77c(0x16b)]=_0x5bd85a,_0x43e9ba;},'build'(){return{..._0x8dcfa1};}};return _0x43e9ba;}
1
+ function a74_0x14ff(){const _0x4b41a1=['74160TxIcxJ','689hoknYj','4oOwGOZ','150MNTuGT','1020603LqEAby','body','97605vhWFIN','981016jpyWpB','291830uCjsxQ','description','30DwmAAb','54LSglWm','2322386KerKnQ','35UHXrwO','25227CURvQu'];a74_0x14ff=function(){return _0x4b41a1;};return a74_0x14ff();}function a74_0x1082(_0x3e9f17,_0x25e52d){_0x3e9f17=_0x3e9f17-0xa4;const _0x14ff9f=a74_0x14ff();let _0x108221=_0x14ff9f[_0x3e9f17];return _0x108221;}(function(_0x1067e9,_0x3d16b8){const _0xa721d2=a74_0x1082,_0x397cf1=_0x1067e9();while(!![]){try{const _0x10e5a5=-parseInt(_0xa721d2(0xae))/0x1*(-parseInt(_0xa721d2(0xab))/0x2)+-parseInt(_0xa721d2(0xa4))/0x3*(parseInt(_0xa721d2(0xb1))/0x4)+parseInt(_0xa721d2(0xa8))/0x5*(parseInt(_0xa721d2(0xaa))/0x6)+-parseInt(_0xa721d2(0xad))/0x7*(parseInt(_0xa721d2(0xa7))/0x8)+-parseInt(_0xa721d2(0xa6))/0x9*(parseInt(_0xa721d2(0xb2))/0xa)+parseInt(_0xa721d2(0xac))/0xb+parseInt(_0xa721d2(0xaf))/0xc*(parseInt(_0xa721d2(0xb0))/0xd);if(_0x10e5a5===_0x3d16b8)break;else _0x397cf1['push'](_0x397cf1['shift']());}catch(_0x16b54c){_0x397cf1['push'](_0x397cf1['shift']());}}}(a74_0x14ff,0x6095e));export function dryRun(_0x26ed12,_0x1cd80f){const _0xfaf353={'method':_0x26ed12,'url':_0x1cd80f},_0x5fc72f={'body'(_0x4ddc57){const _0x19a8ef=a74_0x1082;return _0xfaf353[_0x19a8ef(0xa5)]=_0x4ddc57,_0x5fc72f;},'description'(_0x22c8d0){const _0x1c32f7=a74_0x1082;return _0xfaf353[_0x1c32f7(0xa9)]=_0x22c8d0,_0x5fc72f;},'build'(){return{..._0xfaf353};}};return _0x5fc72f;}