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

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 -1
  10. package/lib/commands/app-config/index.js +1 -1
  11. package/lib/commands/app-config/shared.js +1 -1
  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 -1
  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 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
+ function a56_0x53f0(){const _0x50498d=['entries','10duNkwG','importable','200uMhUQO','Config\x20key.\x20Top-level:\x20','162636KNBscB','enumValues','4848420OsOcQL','fromEntries','map','Default\x20page\x20size','Override\x20SkillHub\x20domain','locale','12SfLwlg','8620XHkcML','has','format','Risk\x20level','legacyCompatOnly','60mJOPxZ','join','60669zMTGNg','cliSettableTopLevel','Target\x20environment','980370nSHHeE','Override\x20runtime\x20domain','885132qiOubz','Access\x20key\x20(client-ak\x20auth)','88iWoVUd','filter','170797GGFFMY'];a56_0x53f0=function(){return _0x50498d;};return a56_0x53f0();}const a56_0x4ac230=a56_0x1c60;(function(_0x240b89,_0x1a214e){const _0x2969ac=a56_0x1c60,_0x20eed6=_0x240b89();while(!![]){try{const _0x9cc6dd=parseInt(_0x2969ac(0x1e4))/0x1*(parseInt(_0x2969ac(0x1df))/0x2)+-parseInt(_0x2969ac(0x1de))/0x3*(-parseInt(_0x2969ac(0x1f5))/0x4)+-parseInt(_0x2969ac(0x1f1))/0x5*(parseInt(_0x2969ac(0x1e9))/0x6)+parseInt(_0x2969ac(0x1e6))/0x7*(parseInt(_0x2969ac(0x1ed))/0x8)+parseInt(_0x2969ac(0x1eb))/0x9+parseInt(_0x2969ac(0x1f3))/0xa*(parseInt(_0x2969ac(0x1ef))/0xb)+-parseInt(_0x2969ac(0x1f7))/0xc;if(_0x9cc6dd===_0x1a214e)break;else _0x20eed6['push'](_0x20eed6['shift']());}catch(_0x1b93e5){_0x20eed6['push'](_0x20eed6['shift']());}}}(a56_0x53f0,0x2f84c));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_0x4ac230(0x1e8),'topLevel':!![],'cliSettableTopLevel':!![],'enumValues':RUNTIME_ENV_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES['env'],'importable':!![]},'format':{'description':'Default\x20output\x20format','topLevel':!![],'cliSettableTopLevel':!![],'enumValues':OUTPUT_FORMAT_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES[a56_0x4ac230(0x1e1)],'importable':!![]},'pageSize':{'description':a56_0x4ac230(0x1fa),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'apiDomain':{'description':'Override\x20API\x20domain','topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'userDomain':{'description':'Override\x20user\x20domain','topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'runtimeDomain':{'description':a56_0x4ac230(0x1ea),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'skillHubDomain':{'description':a56_0x4ac230(0x1fb),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'accessKey':{'description':a56_0x4ac230(0x1ec),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'riskLevel':{'description':a56_0x4ac230(0x1e2),'topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES['riskLevel'],'importable':!![]},'locale':{'description':'Locale','topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES[a56_0x4ac230(0x1fc)],'importable':!![],'legacyCompatOnly':!![]}};export const TOP_LEVEL_CONFIG_KEYS=new Set(Object[a56_0x4ac230(0x1f0)](CONFIG_FIELD_SCHEMAS)[a56_0x4ac230(0x1ee)](([,_0x4c8664])=>_0x4c8664[a56_0x4ac230(0x1e7)])[a56_0x4ac230(0x1f9)](([_0x22a619])=>_0x22a619));export const CONFIG_ENUM_VALUES=Object[a56_0x4ac230(0x1f8)](Object[a56_0x4ac230(0x1f0)](CONFIG_FIELD_SCHEMAS)['filter'](([,_0x86c2a6])=>_0x86c2a6[a56_0x4ac230(0x1f6)])[a56_0x4ac230(0x1f9)](([_0x51a90b,_0x22ff17])=>[_0x51a90b,[..._0x22ff17[a56_0x4ac230(0x1f6)]||[]]]));export const IMPORTABLE_RUNTIME_CONFIG_KEYS=Object[a56_0x4ac230(0x1f0)](CONFIG_FIELD_SCHEMAS)[a56_0x4ac230(0x1ee)](([,_0x1a2170])=>_0x1a2170[a56_0x4ac230(0x1f2)])[a56_0x4ac230(0x1f9)](([_0x309915])=>_0x309915);export function getConfigFieldSchema(_0x44edc3){return CONFIG_FIELD_SCHEMAS[_0x44edc3];}export function getConfigEnumValues(_0x1eaac9){const _0x243a24=a56_0x4ac230;return getConfigFieldSchema(_0x1eaac9)?.[_0x243a24(0x1f6)];}export function getConfigDefaultValue(_0x116767){return getConfigFieldSchema(_0x116767)?.['defaultValue'];}export function isTopLevelConfigKey(_0x269ae0){const _0x47f50e=a56_0x4ac230;return TOP_LEVEL_CONFIG_KEYS[_0x47f50e(0x1e0)](_0x269ae0);}function a56_0x1c60(_0xc5f6ab,_0x5b9147){_0xc5f6ab=_0xc5f6ab-0x1de;const _0x53f02e=a56_0x53f0();let _0x1c600e=_0x53f02e[_0xc5f6ab];return _0x1c600e;}export function isLegacyCompatConfigKey(_0x458776){const _0x358d6e=a56_0x4ac230;return getConfigFieldSchema(_0x458776)?.[_0x358d6e(0x1e3)]===!![];}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function formatConfigKeyList(_0x19af59){const _0x42a7fb=a56_0x4ac230;return[..._0x19af59][_0x42a7fb(0x1e5)](',\x20');}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){const _0x335060=a56_0x4ac230;return _0x335060(0x1f4)+getTopLevelConfigKeySummary()+';\x20local\x20alias:\x20apps.<alias>.appcode';}export function buildAppProfileListFields(_0x1f07d8){return{'env':_0x1f07d8,'hasAccessKey':![],'format':null,'pageSize':null,'riskLevel':null,'locale':null};}
@@ -1 +1 @@
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
+ const a57_0x50790e=a57_0x3b35;function a57_0x3b35(_0x20ced6,_0x511797){_0x20ced6=_0x20ced6-0x1a8;const _0x2782b8=a57_0x2782();let _0x3b3573=_0x2782b8[_0x20ced6];return _0x3b3573;}(function(_0x5993e9,_0x40bc3f){const _0x53dfb2=a57_0x3b35,_0x2d933a=_0x5993e9();while(!![]){try{const _0x1b89ff=parseInt(_0x53dfb2(0x1b0))/0x1*(parseInt(_0x53dfb2(0x1b4))/0x2)+-parseInt(_0x53dfb2(0x1ad))/0x3*(parseInt(_0x53dfb2(0x1aa))/0x4)+-parseInt(_0x53dfb2(0x1af))/0x5*(-parseInt(_0x53dfb2(0x1a9))/0x6)+parseInt(_0x53dfb2(0x1b3))/0x7*(parseInt(_0x53dfb2(0x1ae))/0x8)+-parseInt(_0x53dfb2(0x1b6))/0x9*(-parseInt(_0x53dfb2(0x1a8))/0xa)+-parseInt(_0x53dfb2(0x1b1))/0xb*(-parseInt(_0x53dfb2(0x1ab))/0xc)+-parseInt(_0x53dfb2(0x1b2))/0xd;if(_0x1b89ff===_0x40bc3f)break;else _0x2d933a['push'](_0x2d933a['shift']());}catch(_0x4e9937){_0x2d933a['push'](_0x2d933a['shift']());}}}(a57_0x2782,0xc7cc2));export const APP_PUBLISH_STATUS={'Published':'PUBLISHED','Unpublished':a57_0x50790e(0x1b5)};export const RUNTIME_ACCESSIBLE_APP_STATUS=APP_PUBLISH_STATUS[a57_0x50790e(0x1ac)];function a57_0x2782(){const _0x4349a2=['11273913MzoKvY','10OKiSMC','384528pcTMDI','234964DVhSRQ','33612RlATcG','Published','6YnZCmH','4562776dhaWUK','45ruORdN','634UCDxiF','3663OFQsWG','42387358FUheEB','14tqSHzP','926yXJAwb','UNPUBLISH'];a57_0x2782=function(){return _0x4349a2;};return a57_0x2782();}
@@ -1 +1 @@
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
+ (function(_0x288907,_0x5373ae){const _0x143ae8=a58_0xe817,_0x53ef8b=_0x288907();while(!![]){try{const _0xe9cfd1=-parseInt(_0x143ae8(0x16d))/0x1*(-parseInt(_0x143ae8(0x166))/0x2)+-parseInt(_0x143ae8(0x164))/0x3+-parseInt(_0x143ae8(0x16c))/0x4*(parseInt(_0x143ae8(0x16a))/0x5)+-parseInt(_0x143ae8(0x165))/0x6+-parseInt(_0x143ae8(0x167))/0x7*(-parseInt(_0x143ae8(0x169))/0x8)+-parseInt(_0x143ae8(0x16e))/0x9*(-parseInt(_0x143ae8(0x16b))/0xa)+parseInt(_0x143ae8(0x16f))/0xb;if(_0xe9cfd1===_0x5373ae)break;else _0x53ef8b['push'](_0x53ef8b['shift']());}catch(_0x42b550){_0x53ef8b['push'](_0x53ef8b['shift']());}}}(a58_0x2e99,0xbaf86));function a58_0x2e99(){const _0xd48c9=['21181919NnYZXW','4444746ovtpGB','3412374TBEaWg','248KPNVPq','433678PDiViU','ClientAk','16GvTXsV','1312880jvDBRA','388600NBNWou','12OHNCNb','1253hZTLww','324LyuNmC'];a58_0x2e99=function(){return _0xd48c9;};return a58_0x2e99();}export const AUTH_MODE={'ClientAk':'client-ak'};function a58_0xe817(_0x22ad4d,_0x1dca06){_0x22ad4d=_0x22ad4d-0x164;const _0x2e9924=a58_0x2e99();let _0xe8177a=_0x2e9924[_0x22ad4d];return _0xe8177a;}export function isAuthMode(_0x334bcc){const _0x197fe9=a58_0xe817;return _0x334bcc===AUTH_MODE[_0x197fe9(0x168)];}
@@ -1 +1 @@
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
+ const a59_0x56d8d5=a59_0x5d67;(function(_0x4c9658,_0x35014a){const _0x329485=a59_0x5d67,_0x3d6d42=_0x4c9658();while(!![]){try{const _0x169af9=parseInt(_0x329485(0x194))/0x1*(parseInt(_0x329485(0x185))/0x2)+parseInt(_0x329485(0x192))/0x3*(-parseInt(_0x329485(0x19b))/0x4)+parseInt(_0x329485(0x1a7))/0x5*(parseInt(_0x329485(0x17b))/0x6)+-parseInt(_0x329485(0x1a4))/0x7*(-parseInt(_0x329485(0x1a3))/0x8)+-parseInt(_0x329485(0x17d))/0x9*(-parseInt(_0x329485(0x17e))/0xa)+parseInt(_0x329485(0x1a8))/0xb*(-parseInt(_0x329485(0x1a2))/0xc)+parseInt(_0x329485(0x186))/0xd*(parseInt(_0x329485(0x180))/0xe);if(_0x169af9===_0x35014a)break;else _0x3d6d42['push'](_0x3d6d42['shift']());}catch(_0x5ac4cf){_0x3d6d42['push'](_0x3d6d42['shift']());}}}(a59_0x578b,0xe8da8));import{PRODUCT_CONFIG}from'../constant/product.js';import{LOVRABET_NPM_PACKAGE_NAME}from'../constant/distribution.js';export const CLI_BIN_NAME=PRODUCT_CONFIG[a59_0x56d8d5(0x1a9)];function a59_0x5d67(_0x41debe,_0x4c6bc6){_0x41debe=_0x41debe-0x17b;const _0x578b82=a59_0x578b();let _0x5d67f8=_0x578b82[_0x41debe];return _0x5d67f8;}function a59_0x578b(){const _0x3aea8f=['75pVDKHw','88zVmcmQ','cliBinName','JSON\x20params\x20for\x20execute\x20commands','env','Preview\x20operation\x20without\x20executing','type','clear','meowKey','74166OwiVeT','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20implies\x20--format\x20json\x20when\x20current\x20format\x20is\x20pretty)','117324aEdPYQ','220kptvpO','sqlcode','6657406Rrdimk','Name\x20filter','<expr>','dry-run','map','2pqRIvI','26XtQzZu','params','Force\x20non-interactive\x20mode\x20(CI)','dryRun','Select\x20app\x20profile\x20by\x20name','Environment','appcode','format','global','Verbose\x20output','Alias\x20for\x20--non-interactive','cliDisplayName','915495vHQWnS','help','548161EgHujK','fromEntries','Skip\x20confirmation\x20for\x20high-risk\x20writes','verbose','app','non-interactive','yes','16aRCGRu','production\x20|\x20development\x20|\x20daily','string','Override\x20appcode','Show\x20help','name','<name>','985836LqSpBq','14928SFqZKK','3227mYYGqG','Clear\x20output','boolean'];a59_0x578b=function(){return _0x3aea8f;};return a59_0x578b();}export const CLI_DISPLAY_NAME=PRODUCT_CONFIG[a59_0x56d8d5(0x191)];export const NPM_PACKAGE_NAME=LOVRABET_NPM_PACKAGE_NAME;export const GLOBAL_FLAGS=[{'name':'appcode','meowKey':a59_0x56d8d5(0x18c),'type':a59_0x56d8d5(0x19d),'description':a59_0x56d8d5(0x19e),'hint':'<code>'},{'name':a59_0x56d8d5(0x198),'meowKey':'app','type':'string','description':a59_0x56d8d5(0x18a),'hint':a59_0x56d8d5(0x1a1)},{'name':a59_0x56d8d5(0x1ab),'meowKey':a59_0x56d8d5(0x1ab),'type':'string','description':a59_0x56d8d5(0x18b),'hint':a59_0x56d8d5(0x19c)},{'name':'format','meowKey':a59_0x56d8d5(0x18d),'type':a59_0x56d8d5(0x19d),'description':'Output\x20format','hint':'json\x20|\x20pretty\x20|\x20compress'},{'name':'jq','meowKey':'jq','type':a59_0x56d8d5(0x19d),'description':a59_0x56d8d5(0x17c),'hint':a59_0x56d8d5(0x182)},{'name':a59_0x56d8d5(0x183),'meowKey':a59_0x56d8d5(0x189),'type':a59_0x56d8d5(0x1a6),'description':a59_0x56d8d5(0x1ac)},{'name':a59_0x56d8d5(0x19a),'meowKey':a59_0x56d8d5(0x19a),'type':'boolean','description':a59_0x56d8d5(0x196)},{'name':a59_0x56d8d5(0x199),'meowKey':'nonInteractive','type':a59_0x56d8d5(0x1a6),'description':a59_0x56d8d5(0x188)},{'name':a59_0x56d8d5(0x18e),'meowKey':a59_0x56d8d5(0x18e),'type':'boolean','description':'Use\x20global\x20config\x20scope'},{'name':'ci','meowKey':'ci','type':a59_0x56d8d5(0x1a6),'description':a59_0x56d8d5(0x190),'hidden':!![]},{'name':'help','meowKey':a59_0x56d8d5(0x193),'type':'boolean','description':a59_0x56d8d5(0x19f)},{'name':'id','meowKey':'id','type':a59_0x56d8d5(0x19d),'description':'Record\x20ID','hidden':!![]},{'name':a59_0x56d8d5(0x1a0),'meowKey':a59_0x56d8d5(0x1a0),'type':a59_0x56d8d5(0x19d),'description':a59_0x56d8d5(0x181),'hidden':!![]},{'name':a59_0x56d8d5(0x17f),'meowKey':'sqlcode','type':'string','description':'SQL\x20query\x20code','hidden':!![]},{'name':a59_0x56d8d5(0x187),'meowKey':a59_0x56d8d5(0x187),'type':a59_0x56d8d5(0x19d),'description':a59_0x56d8d5(0x1aa),'hidden':!![]},{'name':a59_0x56d8d5(0x197),'meowKey':'verbose','type':a59_0x56d8d5(0x1a6),'description':a59_0x56d8d5(0x18f),'hidden':!![]},{'name':a59_0x56d8d5(0x1ae),'meowKey':a59_0x56d8d5(0x1ae),'type':a59_0x56d8d5(0x1a6),'description':a59_0x56d8d5(0x1a5),'hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set([a59_0x56d8d5(0x18c),a59_0x56d8d5(0x198),a59_0x56d8d5(0x1ab),'format','jq',a59_0x56d8d5(0x183),'yes',a59_0x56d8d5(0x199),'ci']);export function buildMeowFlags(){const _0x1ff9b5=a59_0x56d8d5;return Object[_0x1ff9b5(0x195)](GLOBAL_FLAGS[_0x1ff9b5(0x184)](_0x384ece=>[_0x384ece[_0x1ff9b5(0x1af)],{'type':_0x384ece[_0x1ff9b5(0x1ad)]}]));}
@@ -1 +1 @@
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
+ const a60_0xe947bf=a60_0x10c4;(function(_0x1009f5,_0x3b7b68){const _0x77ad44=a60_0x10c4,_0x3e5f0d=_0x1009f5();while(!![]){try{const _0x5584fc=parseInt(_0x77ad44(0x1be))/0x1+parseInt(_0x77ad44(0x1bb))/0x2*(parseInt(_0x77ad44(0x1ba))/0x3)+parseInt(_0x77ad44(0x1bc))/0x4+parseInt(_0x77ad44(0x1c0))/0x5+parseInt(_0x77ad44(0x1bd))/0x6+-parseInt(_0x77ad44(0x1b7))/0x7+-parseInt(_0x77ad44(0x1c3))/0x8*(parseInt(_0x77ad44(0x1b8))/0x9);if(_0x5584fc===_0x3b7b68)break;else _0x3e5f0d['push'](_0x3e5f0d['shift']());}catch(_0x556a87){_0x3e5f0d['push'](_0x3e5f0d['shift']());}}}(a60_0x1636,0x90d69));export const DEFAULT_APP_PROFILE_NAME=a60_0xe947bf(0x1b9);function a60_0x10c4(_0x4fb7a6,_0x1696a4){_0x4fb7a6=_0x4fb7a6-0x1b7;const _0x163629=a60_0x1636();let _0x10c48e=_0x163629[_0x4fb7a6];return _0x10c48e;}export const DEFAULT_CONFIG_VALUES={'env':a60_0xe947bf(0x1c1),'format':a60_0xe947bf(0x1c2),'locale':a60_0xe947bf(0x1bf),'riskLevel':'write'};export const DEFAULT_COMMAND_OUTPUT_FORMAT=a60_0xe947bf(0x1c2);function a60_0x1636(){const _0x1bb999=['509154KgmQDo','3896020rWcnVi','6791580fKLUAi','1009911QUnlZA','en-US','1825425iXjtrA','production','compress','384UpitdM','8086701pdyySJ','372564OEzbkn','main','3dRaPgH'];a60_0x1636=function(){return _0x1bb999;};return a60_0x1636();}
@@ -1 +1 @@
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
+ const a61_0x26ba1d=a61_0x18d1;function a61_0x18d1(_0x25223a,_0x127f00){_0x25223a=_0x25223a-0x16e;const _0x3508be=a61_0x3508();let _0x18d175=_0x3508be[_0x25223a];return _0x18d175;}(function(_0x5576a4,_0x11232a){const _0x5f4cf5=a61_0x18d1,_0xd3f23f=_0x5576a4();while(!![]){try{const _0x277771=parseInt(_0x5f4cf5(0x171))/0x1+-parseInt(_0x5f4cf5(0x179))/0x2+parseInt(_0x5f4cf5(0x170))/0x3+-parseInt(_0x5f4cf5(0x178))/0x4*(-parseInt(_0x5f4cf5(0x16f))/0x5)+-parseInt(_0x5f4cf5(0x172))/0x6+parseInt(_0x5f4cf5(0x176))/0x7+-parseInt(_0x5f4cf5(0x175))/0x8*(parseInt(_0x5f4cf5(0x16e))/0x9);if(_0x277771===_0x11232a)break;else _0xd3f23f['push'](_0xd3f23f['shift']());}catch(_0x4ff568){_0xd3f23f['push'](_0xd3f23f['shift']());}}}(a61_0x3508,0xd1caf));import{PRODUCT_CONFIG}from'../constant/product.js';function a61_0x3508(){const _0x20a276=['2876160IRHdqY','1070937HBGBJQ','6484692HDicNs','skillSource','npmPackageName','40aNaqKE','7395248SsjhPw','npmRegistryBaseUrl','8472dPiLBB','2877078zrjOOd','14841iRfTQo','710cDPGGk'];a61_0x3508=function(){return _0x20a276;};return a61_0x3508();}export const LOVRABET_NPM_PACKAGE_NAME=PRODUCT_CONFIG[a61_0x26ba1d(0x174)];export const LOVRABET_SKILL_SOURCE=PRODUCT_CONFIG[a61_0x26ba1d(0x173)];export const NPM_REGISTRY_BASE_URL=PRODUCT_CONFIG[a61_0x26ba1d(0x177)];
@@ -1 +1 @@
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
+ function a62_0x50f9(_0x242400,_0x1bf136){_0x242400=_0x242400-0x103;const _0x12567d=a62_0x1256();let _0x50f96d=_0x12567d[_0x242400];return _0x50f96d;}const a62_0x4ae361=a62_0x50f9;(function(_0x390d4d,_0x4d02c9){const _0x2ffba4=a62_0x50f9,_0x4f5725=_0x390d4d();while(!![]){try{const _0x74ebe2=-parseInt(_0x2ffba4(0x10e))/0x1*(-parseInt(_0x2ffba4(0x106))/0x2)+-parseInt(_0x2ffba4(0x111))/0x3+-parseInt(_0x2ffba4(0x10a))/0x4*(-parseInt(_0x2ffba4(0x10b))/0x5)+parseInt(_0x2ffba4(0x10f))/0x6+parseInt(_0x2ffba4(0x104))/0x7+-parseInt(_0x2ffba4(0x117))/0x8+parseInt(_0x2ffba4(0x113))/0x9*(-parseInt(_0x2ffba4(0x10c))/0xa);if(_0x74ebe2===_0x4d02c9)break;else _0x4f5725['push'](_0x4f5725['shift']());}catch(_0x46dae1){_0x4f5725['push'](_0x4f5725['shift']());}}}(a62_0x1256,0x65cee));import{getEnv,isProduction}from'../constant/env.js';import{PRODUCT_CONFIG}from'../constant/product.js';let customApiDomain,customUserDomain,customRuntimeDomain,customSkillHubDomain;export function initDomains(_0x254df6){const _0x2ec567=a62_0x50f9;customApiDomain=_0x254df6?.[_0x2ec567(0x109)],customUserDomain=_0x254df6?.[_0x2ec567(0x105)],customRuntimeDomain=_0x254df6?.[_0x2ec567(0x10d)],customSkillHubDomain=_0x254df6?.[_0x2ec567(0x108)];}export const getUserDomain=()=>customUserDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a62_0x4ae361(0x114)]['production'][a62_0x4ae361(0x116)]:PRODUCT_CONFIG['domains'][a62_0x4ae361(0x107)][a62_0x4ae361(0x116)]);export const getApiDomain=()=>customApiDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a62_0x4ae361(0x114)][a62_0x4ae361(0x110)][a62_0x4ae361(0x112)]:PRODUCT_CONFIG['domains'][a62_0x4ae361(0x107)]['api']);export const getRuntimeDomain=()=>customRuntimeDomain||(isProduction(getEnv())?PRODUCT_CONFIG['domains']['production'][a62_0x4ae361(0x115)]:PRODUCT_CONFIG['domains'][a62_0x4ae361(0x107)][a62_0x4ae361(0x115)]);export const getSkillHubDomain=()=>customSkillHubDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a62_0x4ae361(0x114)][a62_0x4ae361(0x110)][a62_0x4ae361(0x103)]:PRODUCT_CONFIG[a62_0x4ae361(0x114)]['nonProduction'][a62_0x4ae361(0x103)]);function a62_0x1256(){const _0x48a8d8=['domains','runtime','user','2692152hDtRtQ','skillhub','3773161xqWFGT','userDomain','18NlDcDp','nonProduction','skillHubDomain','apiDomain','188SfsGDx','73835mnkkfy','42810rWkUNz','runtimeDomain','57543kpzZGU','644574CPQhoh','production','1786272fMSGdi','api','1071pFmxvy'];a62_0x1256=function(){return _0x48a8d8;};return a62_0x1256();}
@@ -1 +1 @@
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
+ const a63_0x52f710=a63_0x52c8;(function(_0x7756b6,_0x236c79){const _0x17a963=a63_0x52c8,_0x4d9fa3=_0x7756b6();while(!![]){try{const _0x3eb03f=-parseInt(_0x17a963(0xe5))/0x1*(-parseInt(_0x17a963(0xf0))/0x2)+-parseInt(_0x17a963(0xe9))/0x3*(-parseInt(_0x17a963(0xef))/0x4)+-parseInt(_0x17a963(0xed))/0x5*(-parseInt(_0x17a963(0xe7))/0x6)+-parseInt(_0x17a963(0xee))/0x7+-parseInt(_0x17a963(0xec))/0x8*(-parseInt(_0x17a963(0xe8))/0x9)+parseInt(_0x17a963(0xf2))/0xa+-parseInt(_0x17a963(0xea))/0xb*(parseInt(_0x17a963(0xe6))/0xc);if(_0x3eb03f===_0x236c79)break;else _0x4d9fa3['push'](_0x4d9fa3['shift']());}catch(_0x25ff3a){_0x4d9fa3['push'](_0x4d9fa3['shift']());}}}(a63_0x2675,0x39b40));import{productEnv}from'../constant/product.js';export const RUNTIME_ENV_VALUES=['production',a63_0x52f710(0xf1),'daily'];export function normalizeEnv(_0x387916){const _0x3ece8d=a63_0x52f710;return _0x387916===_0x3ece8d(0xeb)?_0x3ece8d(0xe4):_0x387916;}function a63_0x2675(){const _0x1030ab=['12148741nTcWTQ','online','2446424dAmlLm','5zWBWGF','385819mqgXnw','4cSsYLj','821726LAbhkR','development','33180hgZspw','production','1NXFWTE','12lJbnJq','2359758cCCamu','9NvwOqr','847869ZQIgDY'];a63_0x2675=function(){return _0x1030ab;};return a63_0x2675();}export function isProduction(_0x1f991c){const _0x33d6cf=a63_0x52f710;return normalizeEnv(_0x1f991c)===_0x33d6cf(0xe4);}export function isDaily(_0x1ce93d){return normalizeEnv(_0x1ce93d)==='daily';}function a63_0x52c8(_0x2cb077,_0x37f69b){_0x2cb077=_0x2cb077-0xe4;const _0x267514=a63_0x2675();let _0x52c85a=_0x267514[_0x2cb077];return _0x52c85a;}export function isDev(_0x583e7c){const _0x5a106d=a63_0x52f710,_0x7a4c61=normalizeEnv(_0x583e7c);return _0x7a4c61===_0x5a106d(0xf1)||_0x7a4c61==='dev';}let env=normalizeEnv(productEnv('ENV')||'production');export function getEnv(){return env;}export function initEnv(_0x424146){env=normalizeEnv(_0x424146);}
@@ -1 +1 @@
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
+ const a64_0x159f05=a64_0x5649;function a64_0x109e(){const _0x1ba329=['compress','5599dhMJqi','72iRxlAv','2847593oozQIt','970xRFgRO','184939hPYDNE','pretty','42831vgtUAB','30mZYAoK','725616OJFEWF','80973VJrvim','json','366522sttRug','8cEzESz'];a64_0x109e=function(){return _0x1ba329;};return a64_0x109e();}function a64_0x5649(_0x378f91,_0x3509a4){_0x378f91=_0x378f91-0x1b6;const _0x109ec3=a64_0x109e();let _0x5649cc=_0x109ec3[_0x378f91];return _0x5649cc;}(function(_0x43cd26,_0x3cb5b3){const _0x3624db=a64_0x5649,_0x3e3a01=_0x43cd26();while(!![]){try{const _0x324ccd=parseInt(_0x3624db(0x1b7))/0x1+parseInt(_0x3624db(0x1bf))/0x2*(-parseInt(_0x3624db(0x1bc))/0x3)+parseInt(_0x3624db(0x1bb))/0x4+parseInt(_0x3624db(0x1ba))/0x5*(parseInt(_0x3624db(0x1be))/0x6)+-parseInt(_0x3624db(0x1c3))/0x7+-parseInt(_0x3624db(0x1c2))/0x8*(-parseInt(_0x3624db(0x1b9))/0x9)+parseInt(_0x3624db(0x1b6))/0xa*(-parseInt(_0x3624db(0x1c1))/0xb);if(_0x324ccd===_0x3cb5b3)break;else _0x3e3a01['push'](_0x3e3a01['shift']());}catch(_0x1d30de){_0x3e3a01['push'](_0x3e3a01['shift']());}}}(a64_0x109e,0x33a68));export const OUTPUT_FORMAT_VALUES=[a64_0x159f05(0x1bd),a64_0x159f05(0x1b8),a64_0x159f05(0x1c0)];
@@ -1 +1 @@
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
+ const a65_0x356b22=a65_0x2e8e;(function(_0x2121ae,_0x5caa4b){const _0x59b16a=a65_0x2e8e,_0x3e1f74=_0x2121ae();while(!![]){try{const _0x4590d3=parseInt(_0x59b16a(0x1f1))/0x1+-parseInt(_0x59b16a(0x1fc))/0x2*(-parseInt(_0x59b16a(0x1eb))/0x3)+parseInt(_0x59b16a(0x208))/0x4*(-parseInt(_0x59b16a(0x1f7))/0x5)+-parseInt(_0x59b16a(0x201))/0x6*(parseInt(_0x59b16a(0x1f6))/0x7)+parseInt(_0x59b16a(0x207))/0x8+-parseInt(_0x59b16a(0x202))/0x9*(-parseInt(_0x59b16a(0x205))/0xa)+parseInt(_0x59b16a(0x1f0))/0xb;if(_0x4590d3===_0x5caa4b)break;else _0x3e1f74['push'](_0x3e1f74['shift']());}catch(_0x2d5279){_0x3e1f74['push'](_0x3e1f74['shift']());}}}(a65_0x5b41,0xb6dab));export const PRODUCT_CONFIG={'cliBinName':'lovrabet','cliDisplayName':a65_0x356b22(0x1f5),'npmPackageName':a65_0x356b22(0x204),'skillSource':a65_0x356b22(0x1ec),'npmRegistryBaseUrl':a65_0x356b22(0x1e9),'envPrefix':a65_0x356b22(0x1f3),'legacyEnvPrefixes':[a65_0x356b22(0x1fa)],'configFileNames':[a65_0x356b22(0x1f9),a65_0x356b22(0x1ff)],'newConfigFileName':'.lovrabet.json','homeDirName':a65_0x356b22(0x1fe),'logFileName':a65_0x356b22(0x1ea),'invokeSource':a65_0x356b22(0x1f2),'userCenterDisplayName':a65_0x356b22(0x200),'skipNpxSkillsEnvSuffix':a65_0x356b22(0x1f4),'domains':{'production':{'user':'https://user.lovrabet.com','api':a65_0x356b22(0x1fd),'runtime':a65_0x356b22(0x206),'skillhub':a65_0x356b22(0x1f8)},'nonProduction':{'user':'https://user-daily.lovrabet.com','api':'https://daily-api.lovrabet.com','runtime':a65_0x356b22(0x1fb),'skillhub':a65_0x356b22(0x203)}},'accessKeyCreatePath':a65_0x356b22(0x1ef)};export function productEnvName(_0x2f7f7b){const _0x4d95d3=a65_0x356b22;return PRODUCT_CONFIG[_0x4d95d3(0x1ee)]+'_'+_0x2f7f7b;}function a65_0x2e8e(_0x1d80e8,_0x3c3251){_0x1d80e8=_0x1d80e8-0x1e9;const _0x5b4157=a65_0x5b41();let _0x2e8e47=_0x5b4157[_0x1d80e8];return _0x2e8e47;}export function productEnvNames(_0x2b14ad){const _0x3c67ef=a65_0x356b22;return[productEnvName(_0x2b14ad),...PRODUCT_CONFIG['legacyEnvPrefixes'][_0x3c67ef(0x1ed)](_0x30279d=>_0x30279d+'_'+_0x2b14ad)];}export function productEnv(_0x55fdcf){for(const _0x19ab62 of productEnvNames(_0x55fdcf)){const _0x1af130=process.env[_0x19ab62];if(_0x1af130!==undefined)return _0x1af130;}return undefined;}function a65_0x5b41(){const _0x556a9d=['414465VRFNAx','lovrabet/lovrabet-cli','map','envPrefix','/user/ak','3304301IPZuke','971157VWLMjW','cli:lovrabet-runtime','LOVRABET','SKIP_NPX_SKILLS','Lovrabet\x20Runtime\x20CLI','105baLRUz','20semSpf','https://skills.lovrabet.com','.lovrabet.json','RABETBASE','https://daily-runtime.lovrabet.com','2PQptFd','https://api.lovrabet.com','.lovrabet','.lovrabetrc','Lovrabet\x20User\x20Center','212808ZxLwuc','225kwdRde','https://skills-daily.lovrabet.com','@lovrabet/lovrabet-cli','180650XVUUQW','https://runtime.lovrabet.com','5389048hojTNK','1253968FYXymg','https://registry.npmjs.org','.lovrabet-runtime.log'];a65_0x5b41=function(){return _0x556a9d;};return a65_0x5b41();}
@@ -1 +1 @@
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
+ function a66_0x33fe(_0x5a8ccf,_0x44ac5a){_0x5a8ccf=_0x5a8ccf-0x1a8;const _0x323278=a66_0x3232();let _0x33fe94=_0x323278[_0x5a8ccf];return _0x33fe94;}const a66_0x146ee5=a66_0x33fe;(function(_0x5596ff,_0x193f9f){const _0xaf2390=a66_0x33fe,_0x162ca1=_0x5596ff();while(!![]){try{const _0x2ce415=parseInt(_0xaf2390(0x1ab))/0x1*(-parseInt(_0xaf2390(0x1ae))/0x2)+parseInt(_0xaf2390(0x1a8))/0x3+-parseInt(_0xaf2390(0x1a9))/0x4+-parseInt(_0xaf2390(0x1b1))/0x5+-parseInt(_0xaf2390(0x1b2))/0x6+parseInt(_0xaf2390(0x1af))/0x7+-parseInt(_0xaf2390(0x1ad))/0x8*(-parseInt(_0xaf2390(0x1b0))/0x9);if(_0x2ce415===_0x193f9f)break;else _0x162ca1['push'](_0x162ca1['shift']());}catch(_0x54f9c5){_0x162ca1['push'](_0x162ca1['shift']());}}}(a66_0x3232,0x7a442));export const RISK_LEVEL_VALUES=[a66_0x146ee5(0x1aa),a66_0x146ee5(0x1ac),'high-risk-write'];function a66_0x3232(){const _0x1c0fc7=['read','501167TbmLgN','write','24hBbwdH','2GKPOAH','6533303iOojDl','1266228dPuTKq','2250665AneORa','1883310dKOOqr','2529966hnwLCo','1730960EVDzKo'];a66_0x3232=function(){return _0x1c0fc7;};return a66_0x3232();}
@@ -1 +1 @@
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)];
1
+ const a67_0x5cea89=a67_0x34a0;function a67_0x34a0(_0x8e2a52,_0x4c884d){_0x8e2a52=_0x8e2a52-0x1db;const _0x4a8d0e=a67_0x4a8d();let _0x34a053=_0x4a8d0e[_0x8e2a52];return _0x34a053;}(function(_0x50d254,_0x5e973d){const _0x5a8743=a67_0x34a0,_0x576caa=_0x50d254();while(!![]){try{const _0xca8eb1=-parseInt(_0x5a8743(0x1de))/0x1+parseInt(_0x5a8743(0x1db))/0x2*(-parseInt(_0x5a8743(0x1e6))/0x3)+-parseInt(_0x5a8743(0x1e3))/0x4*(-parseInt(_0x5a8743(0x1e7))/0x5)+parseInt(_0x5a8743(0x1e2))/0x6*(parseInt(_0x5a8743(0x1e5))/0x7)+parseInt(_0x5a8743(0x1e8))/0x8*(-parseInt(_0x5a8743(0x1e1))/0x9)+-parseInt(_0x5a8743(0x1dd))/0xa+parseInt(_0x5a8743(0x1dc))/0xb*(parseInt(_0x5a8743(0x1e0))/0xc);if(_0xca8eb1===_0x5e973d)break;else _0x576caa['push'](_0x576caa['shift']());}catch(_0x409bd5){_0x576caa['push'](_0x576caa['shift']());}}}(a67_0x4a8d,0xf2bfe));import{PRODUCT_CONFIG}from'../constant/product.js';function a67_0x4a8d(){const _0x543145=['136960qrEXcQ','12ZJoEvL','121RSsMlP','17107680gxwnkD','1572140CUTLLL','user','5222724rPBjWw','774GbYKmI','1614EBFycE','3551188dxjppk','domains','30674fDpHOo','552261WnhfTa','5LaIiXV'];a67_0x4a8d=function(){return _0x543145;};return a67_0x4a8d();}export const USER_ACCESS_KEY_CREATE_URL=''+PRODUCT_CONFIG[a67_0x5cea89(0x1e4)]['production'][a67_0x5cea89(0x1df)]+PRODUCT_CONFIG['accessKeyCreatePath'];
package/lib/context.js CHANGED
@@ -1 +1 @@
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
+ const a68_0x4a00b3=a68_0xb49c;(function(_0x2e9aa0,_0x45ffc2){const _0x495eb1=a68_0xb49c,_0x4852b9=_0x2e9aa0();while(!![]){try{const _0x2e6135=parseInt(_0x495eb1(0x15e))/0x1*(-parseInt(_0x495eb1(0x123))/0x2)+parseInt(_0x495eb1(0x155))/0x3+-parseInt(_0x495eb1(0x147))/0x4+-parseInt(_0x495eb1(0x14c))/0x5+parseInt(_0x495eb1(0x159))/0x6*(-parseInt(_0x495eb1(0x133))/0x7)+parseInt(_0x495eb1(0x145))/0x8+parseInt(_0x495eb1(0x14b))/0x9*(parseInt(_0x495eb1(0x161))/0xa);if(_0x2e6135===_0x45ffc2)break;else _0x4852b9['push'](_0x4852b9['shift']());}catch(_0x4bc3b6){_0x4852b9['push'](_0x4852b9['shift']());}}}(a68_0x3225,0x8d984));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';function a68_0xb49c(_0x4a086a,_0x421717){_0x4a086a=_0x4a086a-0x117;const _0x3225e9=a68_0x3225();let _0xb49c83=_0x3225e9[_0x4a086a];return _0xb49c83;}const CONFIG_NAMES=PRODUCT_CONFIG[a68_0x4a00b3(0x12f)];export const NEW_CONFIG_NAME=PRODUCT_CONFIG[a68_0x4a00b3(0x134)];function resolveConfigPath(_0x3ae364){for(const _0x4ec64a of CONFIG_NAMES){const _0xbf3c79=resolve(_0x3ae364,_0x4ec64a);if(existsSync(_0xbf3c79))return _0xbf3c79;}return undefined;}export function resolveWriteConfigPath(_0x28604a){const _0x39732f=a68_0x4a00b3,_0x901b4d=_0x28604a===_0x39732f(0x11b)?process[_0x39732f(0x142)]():homedir(),_0xef0285=resolveConfigPath(_0x901b4d);return _0xef0285??resolve(_0x901b4d,NEW_CONFIG_NAME);}export function readConfigFile(_0x1fca5f){const _0x315ea1=a68_0x4a00b3;try{if(existsSync(_0x1fca5f)){const _0x2f47bd=readFileSync(_0x1fca5f,{'encoding':_0x315ea1(0x13a)});if(_0x2f47bd){const _0x7b3a5c=JSON[_0x315ea1(0x148)](_0x2f47bd);return migrateOnlineEnv(_0x1fca5f,_0x7b3a5c),_0x7b3a5c;}}}catch{}return{};}function migrateOnlineEnv(_0x2c31f7,_0x3fd7dd){const _0x8334de=a68_0x4a00b3;let _0x3e49f2=![];_0x3fd7dd[_0x8334de(0x118)]===_0x8334de(0x117)&&(_0x3fd7dd[_0x8334de(0x118)]='production',_0x3e49f2=!![]);if(_0x3fd7dd[_0x8334de(0x12d)]&&typeof _0x3fd7dd[_0x8334de(0x12d)]===_0x8334de(0x13d))for(const _0x5d9ff9 of Object[_0x8334de(0x151)](_0x3fd7dd[_0x8334de(0x12d)])){_0x5d9ff9&&_0x5d9ff9[_0x8334de(0x118)]===_0x8334de(0x117)&&(_0x5d9ff9['env']=_0x8334de(0x11d),_0x3e49f2=!![]);}if(_0x3e49f2)try{writeConfigFile(_0x2c31f7,_0x3fd7dd);}catch{}}export function writeConfigFile(_0xf3fa3d,_0x14c3a2){const _0x5dac34=a68_0x4a00b3,_0xb401a7=dirname(_0xf3fa3d);!existsSync(_0xb401a7)&&mkdirSync(_0xb401a7,{'recursive':!![]});const _0x48f5a=_0xf3fa3d+_0x5dac34(0x141);try{writeFileSync(_0x48f5a,JSON[_0x5dac34(0x13f)](_0x14c3a2,null,0x2)+'\x0a',{'encoding':_0x5dac34(0x13a),'mode':0x180});try{renameSync(_0x48f5a,_0xf3fa3d);}catch(_0x4a2f83){if(_0x4a2f83[_0x5dac34(0x13c)]===_0x5dac34(0x152)||_0x4a2f83[_0x5dac34(0x13c)]===_0x5dac34(0x13b)||_0x4a2f83[_0x5dac34(0x13c)]===_0x5dac34(0x156)){writeFileSync(_0xf3fa3d,JSON[_0x5dac34(0x13f)](_0x14c3a2,null,0x2)+'\x0a',{'encoding':_0x5dac34(0x13a)});try{unlinkSync(_0x48f5a);}catch{}}else throw _0x4a2f83;}}catch(_0x15e05){try{unlinkSync(_0x48f5a);}catch{}throw _0x15e05;}}export function isNonInteractiveMode(_0x2c983d){const _0x257b4e=a68_0x4a00b3;return!!(_0x2c983d[_0x257b4e(0x130)]||_0x2c983d['ci']||productEnvNames('CI')[_0x257b4e(0x11e)](_0x210575=>process.env[_0x210575]==='true')||process.env.CI===_0x257b4e(0x15c)||!process[_0x257b4e(0x164)]['isTTY']||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x1a205f=a68_0x4a00b3;if(!process[_0x1a205f(0x165)][_0x1a205f(0x11a)])return![];try{const _0xa2ad33=process[_0x1a205f(0x165)]['isRaw'];return process['stdin']['setRawMode'](!![]),process[_0x1a205f(0x165)][_0x1a205f(0x129)](_0xa2ad33??![]),!![];}catch{return![];}}export async function createContext(_0x4ca769){const _0x471580=a68_0x4a00b3,_0xcebd33=readRawConfig(),_0x51164d=buildConfig(_0xcebd33,_0x4ca769);await initGlobalEnvironment(_0x51164d);const {getUserDomain:_0x47c0c5,getApiDomain:_0xef8734}=await import(_0x471580(0x140)),_0xf0408={'apiDomain':_0xef8734(),'userDomain':_0x47c0c5()},_0x866b40=await buildAuth(_0x51164d);logger[_0x471580(0x125)](process[_0x471580(0x142)]());const _0x31ef28=(CLI_BIN_NAME+'\x20'+process[_0x471580(0x12e)][_0x471580(0x154)](0x2)[_0x471580(0x15f)]('\x20'))[_0x471580(0x162)]();logger['setRawCommand'](_0x31ef28);const _0xce420=isNonInteractiveMode(_0x4ca769);return{'config':_0x51164d,'auth':_0x866b40,'logger':logger,'env':_0xf0408,'nonInteractive':_0xce420};}export function buildConfigFromFlags(_0x552493){return buildConfig(readRawConfig(),_0x552493);}export function getLocalAppAliases(_0x195532){const _0x545e12=a68_0x4a00b3;return _0x195532[_0x545e12(0x12d)]&&typeof _0x195532[_0x545e12(0x12d)]===_0x545e12(0x13d)?_0x195532[_0x545e12(0x12d)]:{};}export function resolveLocalAppAliasCode(_0x45847a,_0x1b9a9e){const _0xe3f0ba=a68_0x4a00b3;if(!_0x1b9a9e)return undefined;const _0x97db1d=getLocalAppAliases(_0x45847a)[_0x1b9a9e],_0x3247a7=_0x97db1d?.[_0xe3f0ba(0x14e)];return typeof _0x3247a7===_0xe3f0ba(0x153)&&_0x3247a7[_0xe3f0ba(0x162)]()?_0x3247a7['trim']():undefined;}export function readAppCodeFromConfig(){const _0x5274bf=a68_0x4a00b3,_0x257bc7=readRawConfig(),_0x1ffe09=_0x257bc7[_0x5274bf(0x14e)]??_0x257bc7[_0x5274bf(0x160)];if(typeof _0x1ffe09===_0x5274bf(0x153)&&_0x1ffe09['trim']())return _0x1ffe09['trim']();const _0x40a1a4=resolveLocalAppAliasCode(_0x257bc7,typeof _0x257bc7[_0x5274bf(0x163)]===_0x5274bf(0x153)?_0x257bc7[_0x5274bf(0x163)]:undefined);if(_0x40a1a4)return _0x40a1a4;const _0x71e257=normalizeEnv(String(_0x257bc7[_0x5274bf(0x118)]||_0x5274bf(0x11d))),_0x1907ca=isDaily(_0x71e257)?_0x5274bf(0x12c):isDev(_0x71e257)?'development':'production',_0x53739f=resolveCachedAppCode(typeof _0x257bc7[_0x5274bf(0x163)]===_0x5274bf(0x153)?_0x257bc7['defaultApp']:undefined,_0x1907ca,typeof _0x257bc7[_0x5274bf(0x157)]===_0x5274bf(0x153)?_0x257bc7['accessKey']:undefined);if(_0x53739f)return _0x53739f;const _0x1bd731=Object[_0x5274bf(0x151)](getLocalAppAliases(_0x257bc7))[_0x5274bf(0x124)](_0x16ad04=>_0x16ad04?.[_0x5274bf(0x14e)]);return typeof _0x1bd731?.['appcode']==='string'&&_0x1bd731['appcode'][_0x5274bf(0x162)]()?_0x1bd731['appcode'][_0x5274bf(0x162)]():undefined;}export function readScopedConfig(_0x39e555){const _0x133895=a68_0x4a00b3,_0x37a4f9=_0x39e555[_0x133895(0x150)]?'global':'project';return readConfigFile(resolveWriteConfigPath(_0x37a4f9));}export function writeScopedConfig(_0x1566b7,_0x28f309){const _0xbf15b4=a68_0x4a00b3,_0x58766a=_0x28f309['global']?_0xbf15b4(0x150):_0xbf15b4(0x11b);writeConfigFile(resolveWriteConfigPath(_0x58766a),_0x1566b7);}export async function initGlobalEnvironment(_0x4c32d8){const _0x1058f6=a68_0x4a00b3,{initEnv:_0x3f919c}=await import(_0x1058f6(0x139));_0x3f919c(_0x4c32d8['env']);const {initDomains:_0x176a83}=await import(_0x1058f6(0x140));_0x176a83({'apiDomain':_0x4c32d8[_0x1058f6(0x149)][_0x1058f6(0x146)]||_0x4c32d8[_0x1058f6(0x149)][_0x1058f6(0x14f)]||undefined,'userDomain':_0x4c32d8[_0x1058f6(0x149)][_0x1058f6(0x128)]||undefined,'runtimeDomain':_0x4c32d8[_0x1058f6(0x149)][_0x1058f6(0x122)]||undefined,'skillHubDomain':_0x4c32d8[_0x1058f6(0x149)][_0x1058f6(0x135)]||undefined});}export function getProjectConfigPath(){return resolveConfigPath(process['cwd']());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function inspectCliConfigJsonFile(_0x1944e7){const _0x3d6bff=a68_0x4a00b3;if(!existsSync(_0x1944e7))return{'status':'missing'};try{const _0x3c9912=readFileSync(_0x1944e7,{'encoding':_0x3d6bff(0x13a)});if(!_0x3c9912?.[_0x3d6bff(0x162)]())return{'status':_0x3d6bff(0x11c)};const _0x15146d=JSON[_0x3d6bff(0x148)](_0x3c9912);return{'status':'ok','data':_0x15146d};}catch(_0x5e198d){return{'status':'error','message':_0x5e198d instanceof Error?_0x5e198d[_0x3d6bff(0x158)]:String(_0x5e198d)};}}export function loadRawConfigLayers(_0x3297b2){const _0x1bf169=a68_0x4a00b3;let _0x38c4ef={},_0x341149={},_0xa69671,_0x3715d1;try{_0xa69671=resolveConfigPath(homedir());if(_0xa69671){const _0xdf27cd=readFileSync(_0xa69671,{'encoding':_0x1bf169(0x13a)});if(_0xdf27cd)_0x38c4ef=JSON['parse'](_0xdf27cd);}}catch{}try{const _0x8e5978=_0x3297b2||process[_0x1bf169(0x142)]();_0x3715d1=resolveConfigPath(_0x8e5978);if(_0x3715d1){const _0x47fafa=readFileSync(_0x3715d1,{'encoding':'utf8'});if(_0x47fafa)_0x341149=JSON[_0x1bf169(0x148)](_0x47fafa);}}catch{}return{'globalPath':_0xa69671,'projectPath':_0x3715d1,'globalConfig':_0x38c4ef,'projectConfig':_0x341149};}function mergeRawConfigLayers(_0x1ad7ac){const _0xa1b8f1=a68_0x4a00b3,{globalConfig:_0xd9d3ee,projectConfig:_0x3e7dc7}=_0x1ad7ac;if(_0x3e7dc7[_0xa1b8f1(0x138)]===![]){const _0x21899e={..._0x3e7dc7};return delete _0x21899e['inherit'],_0x21899e;}const _0x5af52e={..._0xd9d3ee,..._0x3e7dc7};if(_0xa1b8f1(0x163)in _0x3e7dc7)_0x5af52e[_0xa1b8f1(0x163)]=_0x3e7dc7[_0xa1b8f1(0x163)];else _0xd9d3ee[_0xa1b8f1(0x163)]&&(_0x5af52e[_0xa1b8f1(0x163)]=_0xd9d3ee[_0xa1b8f1(0x163)]);return _0x5af52e;}export function isInProject(){return!!getProjectConfigPath();}export function readRawConfig(_0x46de16){return mergeRawConfigLayers(loadRawConfigLayers(_0x46de16));}export function readRawConfigWithLayers(_0x45dd54){const _0x3f8a9a=loadRawConfigLayers(_0x45dd54);return{'config':mergeRawConfigLayers(_0x3f8a9a),'layers':_0x3f8a9a};}export function resolveDefaultAppSource(_0x45757f){const _0x2491f5=a68_0x4a00b3;if(_0x2491f5(0x163)in _0x45757f[_0x2491f5(0x14a)])return'project';if(_0x45757f['projectConfig'][_0x2491f5(0x138)]===![])return null;if(_0x45757f[_0x2491f5(0x15b)][_0x2491f5(0x163)])return _0x2491f5(0x150);return null;}function buildConfig(_0x39ca1d,_0x5e1b27){const _0x26413d=a68_0x4a00b3,_0x3312d2=_0x39ca1d[_0x26413d(0x163)]||undefined,_0x2e6589=_0x5e1b27[_0x26413d(0x160)]||env(_0x26413d(0x136))||undefined,_0x51c3b0=_0x2e6589||_0x3312d2||undefined,_0x43ba64=env(_0x26413d(0x14d))||_0x39ca1d[_0x26413d(0x157)]||undefined,_0x274705=_0x5e1b27['env']||env(_0x26413d(0x13e))||_0x39ca1d['env']||DEFAULT_CONFIG_VALUES[_0x26413d(0x118)],_0x4cf034=normalizeEnv(String(_0x274705)),_0x4cf965=isDaily(_0x4cf034)?_0x26413d(0x12c):isDev(_0x4cf034)?_0x26413d(0x131):_0x26413d(0x11d),_0x1356b5=typeof _0x5e1b27[_0x26413d(0x14e)]==='string'?_0x5e1b27[_0x26413d(0x14e)]:undefined,_0x3427ff=env(_0x26413d(0x12b)),_0x477f10=_0x2e6589?undefined:_0x39ca1d[_0x26413d(0x14e)]||_0x39ca1d['app']||undefined,_0x6a7eca=_0x2e6589||(_0x477f10?undefined:_0x3312d2),_0x5143b1=resolveLocalAppAliasCode(_0x39ca1d,_0x6a7eca),_0x57c59f=resolveCachedAppCode(_0x6a7eca,_0x4cf965,_0x43ba64),_0x4d64d3=_0x1356b5||_0x3427ff||_0x477f10||_0x5143b1||_0x57c59f||undefined,_0x1ed5cd=_0x1356b5?_0x26413d(0x132):_0x3427ff?'env':_0x477f10?_0x26413d(0x137):_0x5143b1?_0x26413d(0x144):_0x57c59f?_0x26413d(0x11f):undefined,_0x3e09a6=_0x39ca1d[_0x26413d(0x119)]||DEFAULT_CONFIG_VALUES[_0x26413d(0x119)],_0x10c8c8=undefined,_0x2b9fab=_0x5e1b27[_0x26413d(0x15a)]||env(_0x26413d(0x126))||_0x39ca1d[_0x26413d(0x15a)],_0x5c7cdf=normalizeLegacyOutputFormat(_0x2b9fab),_0x1c3126=env(_0x26413d(0x120))||_0x39ca1d['pageSize'],_0x4e35e6=_0x1c3126?Number(_0x1c3126)||undefined:undefined,_0x153935=_0x39ca1d[_0x26413d(0x143)]||_0x39ca1d[_0x26413d(0x15d)],_0x498b6c=_0x153935==='read'||_0x153935==='write'||_0x153935===_0x26413d(0x121)?_0x153935:DEFAULT_CONFIG_VALUES[_0x26413d(0x143)],_0x5644c8=env(_0x26413d(0x12a)),_0x4c1ced=_0x5644c8==='1'||_0x5644c8===_0x26413d(0x15c);return{'appCode':typeof _0x4d64d3===_0x26413d(0x153)&&_0x4d64d3[_0x26413d(0x162)]()?_0x4d64d3['trim']():undefined,'appCodeSource':_0x1ed5cd,'env':_0x4cf965,'locale':_0x3e09a6,'cookie':_0x10c8c8,'accessKey':_0x43ba64,'format':_0x5c7cdf,'pageSize':_0x4e35e6,'riskLevel':_0x498b6c,'verbose':_0x4c1ced,'defaultApp':_0x3312d2,'currentApp':typeof _0x51c3b0===_0x26413d(0x153)?_0x51c3b0:undefined,'raw':_0x39ca1d};}function a68_0x3225(){const _0x3decac=['apiDomain','653180EOzsQs','parse','raw','projectConfig','90ncFdlv','4100475sPdNEY','ACCESS_KEY','appcode','host','global','values','EPERM','string','slice','1788819BcICnE','EACCES','accessKey','message','6062226ZdLxmX','format','globalConfig','true','maxRisk','1125807vYGHIF','join','app','2121960waAUOv','trim','defaultApp','stdout','stdin','online','env','locale','isTTY','project','empty','production','some','cache','PAGE_SIZE','high-risk-write','runtimeDomain','2pOKCLX','find','setLogPath','FORMAT','authRequired','userDomain','setRawMode','VERBOSE','APPCODE','daily','apps','argv','configFileNames','nonInteractive','development','explicit','7JedhhA','newConfigFileName','skillHubDomain','APP','top-level','inherit','./constant/env.js','utf8','EXDEV','code','object','ENV','stringify','./constant/domain.js','.tmp','cwd','riskLevel','local-alias','7850456aHOnBX'];a68_0x3225=function(){return _0x3decac;};return a68_0x3225();}function env(_0x312658){return productEnv(_0x312658);}async function buildAuth(_0x2edc2c){const _0x20b917=a68_0x4a00b3,_0xb98e53='',_0x3a553e=!!_0x2edc2c[_0x20b917(0x157)];return{'cookie':_0xb98e53,'isLoggedIn':_0x3a553e,async 'getOrLogin'(){const _0x38be0e=_0x20b917;if(_0x3a553e)return _0xb98e53;throw CliErrors[_0x38be0e(0x127)]();}};}
@@ -1 +1 @@
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
+ (function(_0x452d8c,_0x506995){const _0x5accf5=a69_0x1967,_0x4e9c0e=_0x452d8c();while(!![]){try{const _0x5bed0d=-parseInt(_0x5accf5(0x250))/0x1*(parseInt(_0x5accf5(0x1fd))/0x2)+-parseInt(_0x5accf5(0x223))/0x3*(-parseInt(_0x5accf5(0x238))/0x4)+-parseInt(_0x5accf5(0x233))/0x5*(-parseInt(_0x5accf5(0x205))/0x6)+parseInt(_0x5accf5(0x270))/0x7+parseInt(_0x5accf5(0x26a))/0x8*(parseInt(_0x5accf5(0x225))/0x9)+parseInt(_0x5accf5(0x1f6))/0xa+parseInt(_0x5accf5(0x269))/0xb*(-parseInt(_0x5accf5(0x1ed))/0xc);if(_0x5bed0d===_0x506995)break;else _0x4e9c0e['push'](_0x4e9c0e['shift']());}catch(_0x22ef2e){_0x4e9c0e['push'](_0x4e9c0e['shift']());}}}(a69_0x28eb,0xbf06a));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(_0x43a3c7){_activeAK=_0x43a3c7||undefined;}export function clearActiveAK(){_activeAK=undefined;}async function apiRequest(_0x2f6a4a,_0xb1cce0={}){const _0x5b44c7=a69_0x1967,{method:method=_0x5b44c7(0x213),body:_0x5d70c3,headers:headers={},timeout:timeout=0x7530}=_0xb1cce0,_0x29479d=_activeAK,_0x1cbb18=getRuntimeDomain();if(!_0x29479d)throw CliErrors['authRequired'](_0x5b44c7(0x1fc)+PRODUCT_CONFIG[_0x5b44c7(0x251)]+'.');const _0x120480=''+_0x1cbb18+_0x2f6a4a,_0x5107f8={'X-User-AK':_0x29479d},_0x4c1f60=new AbortController(),_0x227f08=setTimeout(()=>_0x4c1f60[_0x5b44c7(0x230)](),timeout);try{const _0x42db02=await fetch(_0x120480,{'method':method,'headers':{'Content-Type':_0x5b44c7(0x20c),'X-Invoke-Source':PRODUCT_CONFIG[_0x5b44c7(0x207)],..._0x5107f8,...headers},'body':_0x5d70c3?JSON[_0x5b44c7(0x235)](_0x5d70c3):undefined,'signal':_0x4c1f60[_0x5b44c7(0x215)]});let _0x17762e;try{_0x17762e=await _0x42db02[_0x5b44c7(0x244)]();}catch{throw CliErrors[_0x5b44c7(0x273)](_0x5b44c7(0x220)+_0x42db02[_0x5b44c7(0x22d)]+')',_0x42db02[_0x5b44c7(0x22d)]>=0x190?_0x5b44c7(0x21b):undefined);}if(!_0x42db02['ok']||_0x17762e[_0x5b44c7(0x206)]===![])throw CliErrors[_0x5b44c7(0x273)](_0x17762e[_0x5b44c7(0x1fa)]||_0x17762e['message']||_0x5b44c7(0x1f8)+_0x42db02[_0x5b44c7(0x22d)],_0x17762e[_0x5b44c7(0x259)]?'API\x20error\x20code:\x20'+_0x17762e['errorCode']:undefined);return _0x17762e;}catch(_0x49d956){if(_0x49d956 instanceof Error&&_0x49d956['name']==='AbortError')throw CliErrors[_0x5b44c7(0x273)](_0x5b44c7(0x252)+_0x120480);throw _0x49d956;}finally{clearTimeout(_0x227f08);}}async function apiBinaryRequest(_0x1ae52f,_0x3277ff={}){const _0xd64149=a69_0x1967,{method:method=_0xd64149(0x213),headers:headers={},timeout:timeout=0x7530}=_0x3277ff,_0x297227=_activeAK,_0x38234c=getRuntimeDomain();if(!_0x297227)throw CliErrors[_0xd64149(0x1f3)](_0xd64149(0x1fc)+PRODUCT_CONFIG[_0xd64149(0x251)]+'.');const _0x388dcd=''+_0x38234c+_0x1ae52f,_0x5af62d=new AbortController(),_0x22dd29=setTimeout(()=>_0x5af62d['abort'](),timeout);try{const _0x30164a=await fetch(_0x388dcd,{'method':method,'headers':{'X-Invoke-Source':PRODUCT_CONFIG[_0xd64149(0x207)],'X-User-AK':_0x297227,...headers},'signal':_0x5af62d[_0xd64149(0x215)]});if(!_0x30164a['ok']){let _0x5ed97c;try{const _0x164490=await _0x30164a[_0xd64149(0x244)]();_0x5ed97c=_0x164490[_0xd64149(0x1fa)]||_0x164490[_0xd64149(0x1ef)]||_0x164490['errorCode'];}catch{_0x5ed97c=await _0x30164a[_0xd64149(0x234)]()[_0xd64149(0x231)](()=>undefined);}throw CliErrors[_0xd64149(0x273)](_0x5ed97c||_0xd64149(0x1f8)+_0x30164a[_0xd64149(0x22d)],_0xd64149(0x211)+_0x388dcd);}return Buffer[_0xd64149(0x255)](await _0x30164a['arrayBuffer']());}catch(_0x249ca5){if(_0x249ca5 instanceof Error&&_0x249ca5[_0xd64149(0x265)]===_0xd64149(0x258))throw CliErrors[_0xd64149(0x273)](_0xd64149(0x252)+_0x388dcd);throw _0x249ca5;}finally{clearTimeout(_0x22dd29);}}async function toolboxRequest(_0x362ace,_0x3406ee,_0xe20fa2={}){const _0x94f418=a69_0x1967,{method:method=_0x94f418(0x213),headers:headers={},timeout:timeout=0x7530}=_0xe20fa2,_0x3762f7=_activeAK;if(!_0x3762f7)throw CliErrors['authRequired']('Configure\x20accessKey\x20in\x20'+PRODUCT_CONFIG[_0x94f418(0x251)]+'.');const _0x5e4039=getApiDomain()[_0x94f418(0x274)](/\/$/,''),_0x5c94fc=new URL(_0x362ace,_0x5e4039+_0x94f418(0x254));if(_0x3406ee)for(const [_0x1c8d9e,_0x28e84c]of Object['entries'](_0x3406ee)){_0x28e84c!==undefined&&_0x28e84c!==null&&_0x5c94fc['searchParams'][_0x94f418(0x208)](_0x1c8d9e,String(_0x28e84c));}const _0x48da55=new AbortController(),_0x2f3507=setTimeout(()=>_0x48da55[_0x94f418(0x230)](),timeout);try{const _0x5d431b=await fetch(_0x5c94fc,{'method':method,'headers':{'Content-Type':_0x94f418(0x20c),'X-Invoke-Source':PRODUCT_CONFIG[_0x94f418(0x207)],'X-User-AK':_0x3762f7,...headers},'signal':_0x48da55[_0x94f418(0x215)]});let _0x24c0a8;try{_0x24c0a8=await _0x5d431b[_0x94f418(0x244)]();}catch{throw CliErrors[_0x94f418(0x273)]('Toolbox\x20returned\x20non-JSON\x20response\x20(HTTP\x20'+_0x5d431b[_0x94f418(0x22d)]+')',_0x5d431b['status']>=0x190?_0x94f418(0x21b):undefined);}if(!_0x5d431b['ok']){const _0x33b69f=_0x24c0a8&&typeof _0x24c0a8===_0x94f418(0x271)?_0x24c0a8:{};throw CliErrors[_0x94f418(0x273)](_0x33b69f[_0x94f418(0x1fa)]||_0x33b69f[_0x94f418(0x1ef)]||_0x94f418(0x237)+_0x5d431b[_0x94f418(0x22d)],_0x33b69f[_0x94f418(0x259)]?_0x94f418(0x263)+_0x33b69f['errorCode']:undefined);}if(_0x24c0a8&&typeof _0x24c0a8===_0x94f418(0x271)&&_0x94f418(0x206)in _0x24c0a8&&typeof _0x24c0a8[_0x94f418(0x206)]==='boolean'){const _0xe3433f=_0x24c0a8;if(!_0xe3433f[_0x94f418(0x206)])throw CliErrors['apiError'](_0xe3433f['errorMsg']||_0xe3433f[_0x94f418(0x1ef)]||_0x94f418(0x239),_0xe3433f['errorCode']?_0x94f418(0x263)+_0xe3433f['errorCode']:undefined);return _0xe3433f[_0x94f418(0x240)];}return _0x24c0a8;}catch(_0x59a4f5){if(_0x59a4f5 instanceof Error&&_0x59a4f5[_0x94f418(0x265)]===_0x94f418(0x258))throw CliErrors[_0x94f418(0x273)](_0x94f418(0x252)+_0x5c94fc[_0x94f418(0x253)]());throw _0x59a4f5;}finally{clearTimeout(_0x2f3507);}}async function skillHubJsonRequest(_0x245d98,_0x30dd18={}){const _0x5712ea=a69_0x1967,{method:method=_0x5712ea(0x213),query:_0xa8b8a5,body:_0x38ef0a,headers:headers={},timeout:timeout=0x7530,allowNotFound:allowNotFound=![]}=_0x30dd18,_0x1665c5=_activeAK;if(!_0x1665c5)throw CliErrors['authRequired']('Configure\x20accessKey\x20in\x20'+PRODUCT_CONFIG['newConfigFileName']+'.');const _0x8547ea=getSkillHubDomain()[_0x5712ea(0x274)](/\/$/,''),_0x39f4b7=new URL(_0x245d98,_0x8547ea+'/');if(_0xa8b8a5)for(const [_0x3100e5,_0x568fcd]of Object[_0x5712ea(0x1ee)](_0xa8b8a5)){_0x568fcd!==undefined&&_0x568fcd!==null&&_0x39f4b7[_0x5712ea(0x24a)]['set'](_0x3100e5,String(_0x568fcd));}const _0x565f4d=new AbortController(),_0x475326=setTimeout(()=>_0x565f4d[_0x5712ea(0x230)](),timeout);try{const _0x1ca66c=await fetch(_0x39f4b7[_0x5712ea(0x253)](),{'method':method,'headers':{'Accept':'application/json','X-Invoke-Source':PRODUCT_CONFIG[_0x5712ea(0x207)],'X-User-AK':_0x1665c5,...headers},'body':_0x38ef0a,'signal':_0x565f4d['signal']});let _0x31c7ce;try{_0x31c7ce=await _0x1ca66c[_0x5712ea(0x244)]();}catch{if(allowNotFound&&_0x1ca66c[_0x5712ea(0x22d)]===0x194)return undefined;throw CliErrors['apiError'](_0x5712ea(0x229)+_0x1ca66c['status']+')',_0x1ca66c[_0x5712ea(0x22d)]>=0x190?_0x5712ea(0x21b):undefined);}if(allowNotFound&&(_0x1ca66c[_0x5712ea(0x22d)]===0x194||_0x31c7ce?.[_0x5712ea(0x262)]===0x194))return undefined;const _0x27d9e3=!_0x1ca66c['ok']||_0x31c7ce?.[_0x5712ea(0x206)]===![]||typeof _0x31c7ce?.[_0x5712ea(0x262)]==='number'&&_0x31c7ce['code']>=0x190;if(_0x27d9e3)throw CliErrors['apiError'](_0x31c7ce?.[_0x5712ea(0x1fa)]||_0x31c7ce?.[_0x5712ea(0x1ef)]||_0x31c7ce?.[_0x5712ea(0x227)]||_0x5712ea(0x247)+_0x1ca66c[_0x5712ea(0x22d)],_0x31c7ce?.[_0x5712ea(0x259)]?_0x5712ea(0x23d)+_0x31c7ce['errorCode']:undefined);return _0x31c7ce?.[_0x5712ea(0x240)]??_0x31c7ce;}catch(_0x155718){if(_0x155718 instanceof Error&&_0x155718[_0x5712ea(0x265)]===_0x5712ea(0x258))throw CliErrors['apiError']('Request\x20timeout:\x20'+_0x39f4b7[_0x5712ea(0x253)]());throw _0x155718;}finally{clearTimeout(_0x475326);}}function a69_0x1967(_0x2ea9b9,_0x3fc3ae){_0x2ea9b9=_0x2ea9b9-0x1ed;const _0x28eb85=a69_0x28eb();let _0x1967c0=_0x28eb85[_0x2ea9b9];return _0x1967c0;}async function skillHubBinaryRequest(_0x8419f5,_0x3c001b={}){const _0x4d04c6=a69_0x1967,{query:_0x281614,headers:headers={},timeout:timeout=0x7530}=_0x3c001b,_0x4a0d6f=_activeAK;if(!_0x4a0d6f)throw CliErrors[_0x4d04c6(0x1f3)](_0x4d04c6(0x1fc)+PRODUCT_CONFIG[_0x4d04c6(0x251)]+'.');const _0x1cb6e9=getSkillHubDomain()['replace'](/\/$/,''),_0x4096e6=new URL(_0x8419f5,_0x1cb6e9+'/');if(_0x281614)for(const [_0x3668a5,_0x2757f0]of Object[_0x4d04c6(0x1ee)](_0x281614)){_0x2757f0!==undefined&&_0x2757f0!==null&&_0x4096e6[_0x4d04c6(0x24a)][_0x4d04c6(0x208)](_0x3668a5,String(_0x2757f0));}const _0x59bcb2=new AbortController(),_0x29ac8b=setTimeout(()=>_0x59bcb2[_0x4d04c6(0x230)](),timeout);try{const _0x50a191=await fetch(_0x4096e6[_0x4d04c6(0x253)](),{'method':'GET','headers':{'Accept':_0x4d04c6(0x21e),'X-Invoke-Source':PRODUCT_CONFIG[_0x4d04c6(0x207)],'X-User-AK':_0x4a0d6f,...headers},'signal':_0x59bcb2[_0x4d04c6(0x215)]});if(!_0x50a191['ok']){let _0x49f0af;try{const _0x4a23c8=await _0x50a191[_0x4d04c6(0x244)]();_0x49f0af=_0x4a23c8['errorMsg']||_0x4a23c8[_0x4d04c6(0x1ef)]||_0x4a23c8[_0x4d04c6(0x227)]||_0x4a23c8['errorCode'];}catch{_0x49f0af=await _0x50a191['text']()[_0x4d04c6(0x231)](()=>undefined);}throw CliErrors['apiError'](_0x49f0af||'SkillHub\x20API\x20error:\x20'+_0x50a191[_0x4d04c6(0x22d)],_0x4d04c6(0x211)+_0x4096e6[_0x4d04c6(0x253)]());}return Buffer[_0x4d04c6(0x255)](await _0x50a191[_0x4d04c6(0x249)]());}catch(_0x15a336){if(_0x15a336 instanceof Error&&_0x15a336[_0x4d04c6(0x265)]==='AbortError')throw CliErrors[_0x4d04c6(0x273)](_0x4d04c6(0x252)+_0x4096e6[_0x4d04c6(0x253)]());throw _0x15a336;}finally{clearTimeout(_0x29ac8b);}}export async function getBffScriptInfo(_0x39f38b){const _0xf24b02=a69_0x1967,_0x45ed1a=await apiRequest(_0xf24b02(0x25c)+_0x39f38b);if(!_0x45ed1a[_0xf24b02(0x240)])throw CliErrors['validation'](_0xf24b02(0x228)+_0x39f38b);return _0x45ed1a['data'];}export async function getSqlQueryInfo(_0x95123b,_0x5c66f0){const _0x461d01=a69_0x1967,_0x563e4f=await apiRequest('/client/sql/query',{'method':_0x461d01(0x20e),'body':{'appCode':_0x95123b,'currentPage':0x1,'pageSize':0x1,'sqlCode':_0x5c66f0}}),_0x466106=_0x563e4f['data'],_0x5b4439=_0x466106&&typeof _0x466106==='object'&&_0x461d01(0x21d)in _0x466106?_0x466106[_0x461d01(0x21d)]?.[0x0]:_0x466106&&typeof _0x466106==='object'&&_0x461d01(0x272)in _0x466106?_0x466106:undefined;if(!_0x5b4439)throw CliErrors['validation'](_0x461d01(0x21f)+_0x5c66f0);return _0x5b4439;}function isRemoteAppItem(_0x1c9a72){const _0x3f96b0=a69_0x1967;return!!_0x1c9a72&&typeof _0x1c9a72===_0x3f96b0(0x271)&&typeof _0x1c9a72[_0x3f96b0(0x209)]===_0x3f96b0(0x25f)&&typeof _0x1c9a72['appName']===_0x3f96b0(0x25f);}function extractRemoteAppItems(_0x4c2a98){const _0x187d4a=a69_0x1967;if(Array[_0x187d4a(0x219)](_0x4c2a98))return _0x4c2a98[_0x187d4a(0x241)](isRemoteAppItem);if(!_0x4c2a98||typeof _0x4c2a98!==_0x187d4a(0x271))throw CliErrors[_0x187d4a(0x273)](_0x187d4a(0x26b));const _0x35027b=_0x4c2a98;if(Array[_0x187d4a(0x219)](_0x35027b[_0x187d4a(0x21d)]))return _0x35027b[_0x187d4a(0x21d)][_0x187d4a(0x241)](isRemoteAppItem);if(_0x35027b[_0x187d4a(0x240)]&&typeof _0x35027b[_0x187d4a(0x240)]===_0x187d4a(0x271)){const _0x38dff7=_0x35027b[_0x187d4a(0x240)];if(Array[_0x187d4a(0x219)](_0x38dff7[_0x187d4a(0x21d)]))return _0x38dff7[_0x187d4a(0x21d)][_0x187d4a(0x241)](isRemoteAppItem);}throw CliErrors[_0x187d4a(0x273)](_0x187d4a(0x25a));}export async function getMyApps(){const _0x2eb065=await apiRequest('/client/app/my-apps');return extractRemoteAppItems(_0x2eb065['data']);}export async function getLoginUserInfo(){const _0x53f3b3=a69_0x1967,_0x63a843=await apiRequest(_0x53f3b3(0x21a));if(!_0x63a843[_0x53f3b3(0x240)]||typeof _0x63a843[_0x53f3b3(0x240)]!==_0x53f3b3(0x271)||Array[_0x53f3b3(0x219)](_0x63a843[_0x53f3b3(0x240)]))throw CliErrors['apiError'](_0x53f3b3(0x1f4));return _0x63a843[_0x53f3b3(0x240)];}export async function listDatasets(_0x42fda9,_0x3092f7){const _0x13ad15=a69_0x1967,_0x427cae=await apiRequest(_0x13ad15(0x214),{'method':_0x13ad15(0x20e),'body':{'appCode':_0x42fda9,..._0x3092f7?.[_0x13ad15(0x262)]&&{'code':_0x3092f7['code']},..._0x3092f7?.[_0x13ad15(0x265)]&&{'name':_0x3092f7[_0x13ad15(0x265)]}}});return extractList(_0x427cae[_0x13ad15(0x240)]);}export async function getDatasetDetail(_0x3db52e){const _0x5a5521=a69_0x1967,_0x150ced=await apiRequest(_0x5a5521(0x24d)+encodeURIComponent(_0x3db52e));return _0x150ced[_0x5a5521(0x240)];}export async function getDatasetSdkUsageDoc(_0x36c187,_0x20d94a){const _0x4fe8c4=a69_0x1967,_0x3c0365=await toolboxRequest(_0x4fe8c4(0x1f0),{'datasetCode':_0x36c187,'appCode':_0x20d94a});return typeof _0x3c0365?.[_0x4fe8c4(0x20f)]===_0x4fe8c4(0x25f)?_0x3c0365[_0x4fe8c4(0x20f)]:'';}export async function getRuntimeAppConfigByKey(_0x503018,_0x312493){const _0x529972=a69_0x1967,_0x15c5d6=new URLSearchParams({'appCode':_0x503018,'key':_0x312493}),_0x58cc0e=await apiRequest(_0x529972(0x23f)+_0x15c5d6['toString']());if(!_0x58cc0e[_0x529972(0x240)])throw CliErrors['validation'](_0x529972(0x222)+_0x312493);return _0x58cc0e[_0x529972(0x240)];}export async function listRuntimeArtifacts(_0x36276a,_0x42967e){const _0x166112=a69_0x1967,_0x5b3482=new URLSearchParams({'appCode':_0x36276a});if(_0x42967e?.[_0x166112(0x201)])_0x5b3482[_0x166112(0x208)]('artifactType',_0x42967e['artifactType']);if(_0x42967e?.['source'])_0x5b3482[_0x166112(0x208)](_0x166112(0x267),_0x42967e[_0x166112(0x267)]);if(_0x42967e?.[_0x166112(0x22a)]!==undefined)_0x5b3482[_0x166112(0x208)]('favorite',String(_0x42967e[_0x166112(0x22a)]));const _0x52fe56=await apiRequest(_0x166112(0x257)+_0x5b3482[_0x166112(0x253)]());return Array[_0x166112(0x219)](_0x52fe56[_0x166112(0x240)])?_0x52fe56[_0x166112(0x240)]:[];}export async function getRuntimeArtifact(_0x5a01f8,_0x214d0d){const _0x5cc359=a69_0x1967,_0xa88960=await apiRequest(_0x5cc359(0x268)+_0x5a01f8+_0x5cc359(0x26c)+encodeURIComponent(_0x214d0d));if(!_0xa88960[_0x5cc359(0x240)])throw CliErrors[_0x5cc359(0x221)]('Artifact\x20not\x20found:\x20id='+_0x5a01f8);return _0xa88960[_0x5cc359(0x240)];}export async function createRuntimeArtifact(_0x2ec980,_0x4e4de3){const _0x42eb52=a69_0x1967,_0x4593ed=await apiRequest('/client/artifact/create',{'method':_0x42eb52(0x20e),'body':{'appCode':_0x2ec980,..._0x4e4de3}});return _0x4593ed[_0x42eb52(0x240)];}export async function updateRuntimeArtifact(_0x34688b,_0x5ab4d3,_0x2c417c){const _0xf24006=a69_0x1967,_0x1c4189=await apiRequest(_0xf24006(0x268)+_0x34688b+_0xf24006(0x226),{'method':_0xf24006(0x20e),'body':{'appCode':_0x5ab4d3,..._0x2c417c}});return _0x1c4189[_0xf24006(0x240)];}function a69_0x28eb(){const _0x48d81c=['scope','SkillHub\x20API\x20error:\x20','confirmWarnings','arrayBuffer','searchParams','warnings','/versions/','/client/dataset/get-driven-data?code=','tags','/client/runtime-bff/personal/','11TrHpRl','newConfigFileName','Request\x20timeout:\x20','toString','/api/node-toolbox/','from','skillCode','/client/artifact/list?','AbortError','errorCode','Invalid\x20app\x20list\x20response:\x20missing\x20data.tableData.','/client/knowledge-base/personal/','/client/bff/query/','topK','Knowledge-base\x20entry\x20not\x20found:\x20id=','string','base64','file','code','Toolbox\x20error\x20code:\x20','summary','name','effective','source','/client/artifact/','1992001LHBRxR','1449096eGoiLd','Invalid\x20app\x20list\x20response:\x20expected\x20object\x20or\x20array.','?appCode=','skillName','/client/knowledge-base/personal/list?appCode=','all','8229039SIhnqA','object','sqlCode','apiError','replace','240XLIVof','entries','message','api-doc-generator','/client/knowledge-base/search','PRIVATE','authRequired','Invalid\x20login\x20user\x20info\x20response:\x20expected\x20object.','valid','13861330POfvJn','description','API\x20error:\x20','/execute?appCode=','errorMsg','/skills','Configure\x20accessKey\x20in\x20','5606ZMGwez','ownerPreviewVersion','errors','displayName','artifactType','company','items','trim','221640cEoHzy','success','invokeSource','set','appCode','application/zip','content','application/json','personal','POST','markdown','values','Download\x20failed:\x20','/client/runtime-bff/personal/create','GET','/client/dataset/list','signal','slug','Personal\x20BFF\x20not\x20found:\x20id=','packageBase64','isArray','/client/user/loginUserInfo','Check\x20your\x20credentials\x20and\x20try\x20again.','visibility','tableData','application/octet-stream','SQL\x20query\x20not\x20found:\x20','API\x20returned\x20non-JSON\x20response\x20(HTTP\x20','validation','App\x20config\x20not\x20found:\x20key=','798201BrtPgN','query','9LwqmMt','/update','msg','BFF\x20script\x20not\x20found:\x20id=','SkillHub\x20returned\x20non-JSON\x20response\x20(HTTP\x20','favorite','version','publishedVersion','status','resolvedSlug','NAMESPACE_ONLY','abort','catch','/api/v1/skills/','85qiCcUn','text','stringify','skill','Toolbox\x20API\x20error:\x20','16zVHAas','Toolbox\x20API\x20error','/client/runtime-bff/personal/list?appCode=','resolvedVersion','/client/knowledge-base/personal/create','SkillHub\x20error\x20code:\x20','/download','/client/app-config/getByKey?','data','filter','namespace','/api/cli/v1/skills/','json','.zip'];a69_0x28eb=function(){return _0x48d81c;};return a69_0x28eb();}export async function listPersonalBffs(_0xc6a62a){const _0x1e8012=a69_0x1967,_0x3a2fb5=await apiRequest(_0x1e8012(0x23a)+encodeURIComponent(_0xc6a62a));return Array['isArray'](_0x3a2fb5[_0x1e8012(0x240)])?_0x3a2fb5[_0x1e8012(0x240)]:[];}export async function getPersonalBff(_0x1fd934,_0x4736e8){const _0x4378ad=a69_0x1967,_0xd5719f=await apiRequest(_0x4378ad(0x24f)+_0x1fd934+_0x4378ad(0x26c)+encodeURIComponent(_0x4736e8));if(!_0xd5719f[_0x4378ad(0x240)])throw CliErrors[_0x4378ad(0x221)](_0x4378ad(0x217)+_0x1fd934);return _0xd5719f['data'];}export async function createPersonalBff(_0x15b100,_0x27c425){const _0x1f6a75=a69_0x1967,_0x55443f=await apiRequest(_0x1f6a75(0x212),{'method':_0x1f6a75(0x20e),'body':{'appCode':_0x15b100,..._0x27c425}});return _0x55443f[_0x1f6a75(0x240)];}export async function updatePersonalBff(_0x14e12c,_0x30a61c,_0x579cb7){const _0x5801a1=a69_0x1967,_0x2bb8c5=await apiRequest(_0x5801a1(0x24f)+_0x14e12c+_0x5801a1(0x226),{'method':_0x5801a1(0x20e),'body':{'appCode':_0x30a61c,..._0x579cb7}});return _0x2bb8c5[_0x5801a1(0x240)];}export async function executePersonalBff(_0x20b51c,_0x107c6b,_0x3b2604){const _0x55e8f0=a69_0x1967,_0x97c62c=await apiRequest(_0x55e8f0(0x24f)+_0x20b51c+_0x55e8f0(0x1f9)+encodeURIComponent(_0x107c6b),{'method':_0x55e8f0(0x20e),'body':_0x3b2604});return _0x97c62c['data'];}export async function listPersonalKnowledgeBaseItems(_0x4de5f5){const _0x38cb8a=a69_0x1967,_0x2dd5f3=await apiRequest(_0x38cb8a(0x26e)+encodeURIComponent(_0x4de5f5));return Array['isArray'](_0x2dd5f3[_0x38cb8a(0x240)])?_0x2dd5f3['data']:[];}export async function getPersonalKnowledgeBaseItem(_0x3c1ae5,_0xd2c7ab){const _0x24b94f=a69_0x1967,_0x53d042=await apiRequest(_0x24b94f(0x25b)+_0x3c1ae5+'?appCode='+encodeURIComponent(_0xd2c7ab));if(!_0x53d042[_0x24b94f(0x240)])throw CliErrors[_0x24b94f(0x221)](_0x24b94f(0x25e)+_0x3c1ae5);return _0x53d042['data'];}export async function createPersonalKnowledgeBaseItem(_0x421d5c,_0x270d23){const _0x270e2e=a69_0x1967,_0x174854=await apiRequest(_0x270e2e(0x23c),{'method':'POST','body':{'appCode':_0x421d5c,..._0x270d23}});return _0x174854[_0x270e2e(0x240)];}export async function updatePersonalKnowledgeBaseItem(_0x885611,_0x3578d8,_0x47449f){const _0xed498=a69_0x1967,_0x13e374=await apiRequest(_0xed498(0x25b)+_0x885611+'/update',{'method':_0xed498(0x20e),'body':{'appCode':_0x3578d8,..._0x47449f}});return _0x13e374[_0xed498(0x240)];}export async function searchKnowledgeBase(_0x123a28,_0x54d2cc){const _0xd82729=a69_0x1967,_0x3bb76a=await apiRequest(_0xd82729(0x1f1),{'method':_0xd82729(0x20e),'body':{'appCode':_0x123a28,'query':_0x54d2cc[_0xd82729(0x224)],..._0x54d2cc[_0xd82729(0x25d)]!==undefined?{'topK':_0x54d2cc[_0xd82729(0x25d)]}:{}}});return Array[_0xd82729(0x219)](_0x3bb76a[_0xd82729(0x240)])?_0x3bb76a['data']:[];}export async function getRuntimeSkillByCode(_0x52386a,_0x2a1e28){const _0x2ad6a0=a69_0x1967,_0x4a8f40=await skillHubJsonRequest(_0x2ad6a0(0x232)+encodeURIComponent(_0x52386a)+'/'+encodeURIComponent(_0x2a1e28),{'allowNotFound':!![]});return _0x4a8f40?skillHubRuntimeDetailToRuntimeSkill(_0x4a8f40):undefined;}export async function listRuntimeSkills(_0x2d8dd1){const _0x53bfe6=a69_0x1967,_0x355301=await skillHubJsonRequest('/api/runtime/v1/namespaces/'+encodeURIComponent(_0x2d8dd1['appCode'])+_0x53bfe6(0x1fb),{'query':{'page':0x0,'size':0xc8}});return normalizeSkillHubRuntimeListResponse(_0x2d8dd1['appCode'],_0x355301,_0x2d8dd1[_0x53bfe6(0x246)]??_0x53bfe6(0x26f),_0x2d8dd1[_0x53bfe6(0x262)]);}export async function listPersonalRuntimeSkills(_0x9e4919){const _0x2ffef3=a69_0x1967;return(await listRuntimeSkills({'appCode':_0x9e4919,'scope':_0x2ffef3(0x20d)}))[_0x2ffef3(0x20d)];}export async function listCompanyRuntimeSkills(_0x2b86ca){const _0x38ffa3=a69_0x1967;return(await listRuntimeSkills({'appCode':_0x2b86ca,'scope':_0x38ffa3(0x202)}))[_0x38ffa3(0x202)];}export async function listVisibleRuntimeSkills(_0x3612ae){const _0x572885=a69_0x1967;return(await listRuntimeSkills({'appCode':_0x3612ae,'scope':_0x572885(0x26f)}))[_0x572885(0x266)];}export async function createPersonalRuntimeSkill(_0x151032,_0x51c5cb){const _0x41c7a8=a69_0x1967;return publishRuntimeSkill(_0x151032,_0x51c5cb,{'visibility':_0x41c7a8(0x1f2)});}export async function updatePersonalRuntimeSkill(_0x48563a,_0x7ef8c2,_0x1f2a6c){return publishRuntimeSkill(_0x7ef8c2,{..._0x1f2a6c,'skillCode':_0x1f2a6c['skillCode']??_0x48563a},{'visibility':'PRIVATE'});}export async function publishCompanyRuntimeSkill(_0x1242fa,_0x374075,_0x217a75={}){const _0x5d53a5=a69_0x1967;return publishRuntimeSkill(_0x1242fa,_0x374075,{'visibility':'NAMESPACE_ONLY','confirmWarnings':_0x217a75[_0x5d53a5(0x248)]});}export async function validateRuntimeSkillPublish(_0x114a0f,_0x2662d3,_0x3b142c){const _0x1bc913=a69_0x1967,_0x3e75d7=buildRuntimeSkillPublishForm(_0x2662d3,_0x3b142c[_0x1bc913(0x21c)]),_0x4aaeb1=await skillHubJsonRequest(_0x1bc913(0x243)+encodeURIComponent(_0x114a0f)+'/publish/validate',{'method':_0x1bc913(0x20e),'body':_0x3e75d7});return{'valid':_0x4aaeb1[_0x1bc913(0x1f5)]===!![],'errors':Array[_0x1bc913(0x219)](_0x4aaeb1[_0x1bc913(0x1ff)])?_0x4aaeb1[_0x1bc913(0x1ff)]:[],'warnings':Array[_0x1bc913(0x219)](_0x4aaeb1[_0x1bc913(0x24b)])?_0x4aaeb1['warnings']:[],'resolvedSlug':_0x4aaeb1[_0x1bc913(0x22e)],'resolvedVersion':_0x4aaeb1[_0x1bc913(0x23b)]};}export async function downloadRuntimeSkillPackage(_0x377617,_0xcbb84a,_0x39fd10,_0x320c51){const _0x495b6d=a69_0x1967;void _0x377617;const _0x3f666c=_0x320c51?_0x495b6d(0x243)+encodeURIComponent(_0x39fd10)+'/'+encodeURIComponent(_0xcbb84a)+_0x495b6d(0x24c)+encodeURIComponent(_0x320c51)+_0x495b6d(0x23e):_0x495b6d(0x243)+encodeURIComponent(_0x39fd10)+'/'+encodeURIComponent(_0xcbb84a)+_0x495b6d(0x23e);return skillHubBinaryRequest(_0x3f666c);}async function publishRuntimeSkill(_0x1e7965,_0x1338db,_0x349067){const _0x3da325=a69_0x1967,_0x52d7af=buildRuntimeSkillPublishForm(_0x1338db,_0x349067[_0x3da325(0x21c)]),_0x282a09=await skillHubJsonRequest(_0x3da325(0x243)+encodeURIComponent(_0x1e7965)+'/publish',{'method':_0x3da325(0x20e),'query':{'confirmWarnings':_0x349067[_0x3da325(0x248)]===!![]?!![]:undefined},'body':_0x52d7af});return{'appCode':_0x282a09[_0x3da325(0x242)]??_0x1e7965,'skillCode':_0x282a09[_0x3da325(0x216)]??_0x1338db['skillCode']??'','skillName':_0x1338db[_0x3da325(0x26d)]??_0x282a09['slug']??_0x1338db[_0x3da325(0x256)],'description':_0x1338db[_0x3da325(0x1f7)],'scope':skillHubVisibilityToScope(_0x282a09[_0x3da325(0x21c)]??_0x349067[_0x3da325(0x21c)])??'personal','version':_0x282a09[_0x3da325(0x22b)]??_0x1338db[_0x3da325(0x22b)],'tags':_0x1338db[_0x3da325(0x24e)],'content':_0x1338db[_0x3da325(0x20b)]};}function buildRuntimeSkillPublishForm(_0x2bfe18,_0x736b8){const _0x1284b9=a69_0x1967,_0x59231d=new FormData();return _0x59231d[_0x1284b9(0x208)](_0x1284b9(0x261),runtimeSkillPackageFile(_0x2bfe18)),_0x59231d[_0x1284b9(0x208)](_0x1284b9(0x21c),_0x736b8),_0x59231d;}function runtimeSkillPackageFile(_0x2e0eb0){const _0x5b8ca5=a69_0x1967;if(!_0x2e0eb0['packageBase64'])throw CliErrors['validation']('Missing\x20Skill\x20package\x20payload.');const _0x53e86a=Buffer[_0x5b8ca5(0x255)](_0x2e0eb0[_0x5b8ca5(0x218)],_0x5b8ca5(0x260)),_0x488b6c=new Blob([_0x53e86a],{'type':_0x5b8ca5(0x20a)}),_0x2864e4=(_0x2e0eb0['skillCode']||_0x5b8ca5(0x236))+_0x5b8ca5(0x245);if(typeof File!=='undefined')return new File([_0x488b6c],_0x2864e4,{'type':_0x5b8ca5(0x20a)});return _0x488b6c;}function normalizeSkillHubRuntimeListResponse(_0x560d33,_0x2f1701,_0xb94ee5,_0xb26808){const _0x5ef528=a69_0x1967,_0x3b6c2b=Array['isArray'](_0x2f1701)?_0x2f1701:Array[_0x5ef528(0x219)](_0x2f1701?.[_0x5ef528(0x203)])?_0x2f1701[_0x5ef528(0x203)]:[],_0x419665=_0xb26808?.[_0x5ef528(0x204)](),_0x2f4dbb=_0x3b6c2b['filter'](_0x5abdcf=>!_0x419665||_0x5abdcf['slug']===_0x419665)['map'](skillHubRuntimeItemToRuntimeSkill)[_0x5ef528(0x241)](_0x35fe32=>Boolean(_0x35fe32)),_0x1654ac=_0x2f4dbb[_0x5ef528(0x241)](_0x5eddcb=>_0x5eddcb['scope']==='personal'),_0x4de973=_0x2f4dbb[_0x5ef528(0x241)](_0x429ca7=>_0x429ca7[_0x5ef528(0x246)]===_0x5ef528(0x202));return{'appCode':_0x560d33,'personal':_0xb94ee5===_0x5ef528(0x202)?[]:_0x1654ac,'company':_0xb94ee5===_0x5ef528(0x20d)?[]:_0x4de973,'effective':buildEffectiveRuntimeSkills(_0x1654ac,_0x4de973,_0xb94ee5)};}function skillHubRuntimeItemToRuntimeSkill(_0x334573){const _0x43ed38=a69_0x1967,_0x1fe15f=_0x334573[_0x43ed38(0x216)]?.[_0x43ed38(0x204)](),_0x4fb1da=skillHubVisibilityToScope(_0x334573[_0x43ed38(0x21c)]);if(!_0x1fe15f||!_0x4fb1da)return undefined;return{'id':_0x334573['id'],'appCode':_0x334573[_0x43ed38(0x242)],'skillCode':_0x1fe15f,'skillName':_0x334573['displayName']??_0x1fe15f,'description':_0x334573[_0x43ed38(0x264)],'scope':_0x4fb1da,'version':skillHubRuntimeItemVersion(_0x334573),'status':_0x334573[_0x43ed38(0x22d)]};}function skillHubRuntimeDetailToRuntimeSkill(_0x3d9423){const _0x4954bb=a69_0x1967,_0x596c95=_0x3d9423[_0x4954bb(0x216)]?.[_0x4954bb(0x204)]();if(!_0x596c95)return undefined;return{'id':_0x3d9423['id'],'appCode':_0x3d9423[_0x4954bb(0x242)],'skillCode':_0x596c95,'skillName':_0x3d9423[_0x4954bb(0x200)]??_0x596c95,'description':_0x3d9423[_0x4954bb(0x264)],'scope':skillHubVisibilityToScope(_0x3d9423[_0x4954bb(0x21c)])??_0x3d9423[_0x4954bb(0x21c)]?.['toLowerCase'](),'version':skillHubRuntimeItemVersion(_0x3d9423),'status':_0x3d9423[_0x4954bb(0x22d)]};}function skillHubVisibilityToScope(_0xf2d3fe){const _0x2a9d12=a69_0x1967;if(_0xf2d3fe===_0x2a9d12(0x1f2))return'personal';if(_0xf2d3fe===_0x2a9d12(0x22f))return _0x2a9d12(0x202);return undefined;}function skillHubRuntimeItemVersion(_0x10f466){const _0x43c243=a69_0x1967;return _0x10f466[_0x43c243(0x22c)]?.[_0x43c243(0x22b)]??_0x10f466['headlineVersion']?.[_0x43c243(0x22b)]??_0x10f466[_0x43c243(0x1fe)]?.[_0x43c243(0x22b)];}function buildEffectiveRuntimeSkills(_0x29c28d,_0x5059eb,_0x4f46b8){const _0x3dca61=a69_0x1967;if(_0x4f46b8==='personal')return _0x29c28d;if(_0x4f46b8===_0x3dca61(0x202))return _0x5059eb;const _0x46d9ee=new Map();for(const _0x24051a of _0x5059eb){_0x46d9ee[_0x3dca61(0x208)](_0x24051a['skillCode'],_0x24051a);}for(const _0x4a685e of _0x29c28d){_0x46d9ee[_0x3dca61(0x208)](_0x4a685e['skillCode'],_0x4a685e);}return Array['from'](_0x46d9ee[_0x3dca61(0x210)]());}function normalizeRuntimeSkillListResponse(_0xcf12b7,_0xe93932){const _0x16fae1=a69_0x1967;if(Array[_0x16fae1(0x219)](_0xe93932)){const _0x5c3c53=_0xe93932[_0x16fae1(0x241)](_0x6b39b4=>_0x6b39b4[_0x16fae1(0x246)]===_0x16fae1(0x20d)),_0x4d9163=_0xe93932[_0x16fae1(0x241)](_0x5cbfb2=>_0x5cbfb2[_0x16fae1(0x246)]===_0x16fae1(0x202));return{'appCode':_0xcf12b7,'personal':_0x5c3c53,'company':_0x4d9163,'effective':[..._0x4d9163,..._0x5c3c53]};}return{'appCode':_0xe93932?.[_0x16fae1(0x209)]??_0xcf12b7,'personal':Array[_0x16fae1(0x219)](_0xe93932?.[_0x16fae1(0x20d)])?_0xe93932[_0x16fae1(0x20d)]:[],'company':Array[_0x16fae1(0x219)](_0xe93932?.[_0x16fae1(0x202)])?_0xe93932[_0x16fae1(0x202)]:[],'effective':Array[_0x16fae1(0x219)](_0xe93932?.['effective'])?_0xe93932[_0x16fae1(0x266)]:[]};}
@@ -1 +1 @@
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
+ (function(_0x49d463,_0x287fbe){const _0x30c6c1=a70_0x3c0f,_0x15edcc=_0x49d463();while(!![]){try{const _0x230b1d=parseInt(_0x30c6c1(0xb0))/0x1+-parseInt(_0x30c6c1(0xae))/0x2*(-parseInt(_0x30c6c1(0xb1))/0x3)+parseInt(_0x30c6c1(0xaf))/0x4+-parseInt(_0x30c6c1(0xb8))/0x5*(parseInt(_0x30c6c1(0xb6))/0x6)+-parseInt(_0x30c6c1(0xba))/0x7*(-parseInt(_0x30c6c1(0xbd))/0x8)+parseInt(_0x30c6c1(0xb9))/0x9+-parseInt(_0x30c6c1(0xbc))/0xa*(parseInt(_0x30c6c1(0xb5))/0xb);if(_0x230b1d===_0x287fbe)break;else _0x15edcc['push'](_0x15edcc['shift']());}catch(_0x474caa){_0x15edcc['push'](_0x15edcc['shift']());}}}(a70_0x4c1a,0x6ba52));import{listDatasets}from'../core/api-client.js';function a70_0x3c0f(_0x4a5802,_0x551a9b){_0x4a5802=_0x4a5802-0xac;const _0x4c1a41=a70_0x4c1a();let _0x3c0f70=_0x4c1a41[_0x4a5802];return _0x3c0f70;}function a70_0x4c1a(){const _0x45ab80=['dbtableConfig','2ukjLdP','773304BNNKss','607906rPPpgM','825243nFwnQs','set','dbName','db-','2800006pGlOwv','4011432GYSDqy','dbId','5mtynSf','5720742qZkluK','1128211kIAteZ','get','30dpbqkf','8hqKveO','map'];a70_0x4c1a=function(){return _0x45ab80;};return a70_0x4c1a();}const cache=new Map();export async function listDatabases(_0x288491){const _0x15815b=a70_0x3c0f;if(cache['has'](_0x288491))return cache[_0x15815b(0xbb)](_0x288491);const _0x1804b3=await listDatasets(_0x288491),_0x49bd2e=new Map();for(const _0x443c6b of _0x1804b3){const _0x57d419=_0x443c6b[_0x15815b(0xad)];_0x57d419?.['dbId']!=null&&_0x49bd2e[_0x15815b(0xb2)](_0x57d419[_0x15815b(0xb7)],_0x57d419[_0x15815b(0xb3)]??_0x15815b(0xb4)+_0x57d419[_0x15815b(0xb7)]);}const _0x764331=[..._0x49bd2e['entries']()][_0x15815b(0xac)](([_0x2e75dd,_0xb4245a])=>({'dbId':_0x2e75dd,'dbName':_0xb4245a}));return cache[_0x15815b(0xb2)](_0x288491,_0x764331),_0x764331;}export async function getDbName(_0x392e23,_0x59a6e3){try{const _0x5880bb=await listDatabases(_0x392e23);return _0x5880bb['find'](_0x38be4e=>_0x38be4e['dbId']===_0x59a6e3)?.['dbName'];}catch{return undefined;}}
@@ -1 +1 @@
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});}
1
+ (function(_0x284954,_0x1c2ea2){const _0x8e06c2=a71_0x5526,_0x265264=_0x284954();while(!![]){try{const _0x2578d2=-parseInt(_0x8e06c2(0x157))/0x1+parseInt(_0x8e06c2(0x171))/0x2*(-parseInt(_0x8e06c2(0x153))/0x3)+-parseInt(_0x8e06c2(0x16a))/0x4*(-parseInt(_0x8e06c2(0x17c))/0x5)+-parseInt(_0x8e06c2(0x178))/0x6*(parseInt(_0x8e06c2(0x16c))/0x7)+-parseInt(_0x8e06c2(0x179))/0x8*(-parseInt(_0x8e06c2(0x166))/0x9)+-parseInt(_0x8e06c2(0x151))/0xa+parseInt(_0x8e06c2(0x168))/0xb*(parseInt(_0x8e06c2(0x156))/0xc);if(_0x2578d2===_0x1c2ea2)break;else _0x265264['push'](_0x265264['shift']());}catch(_0x418b2e){_0x265264['push'](_0x265264['shift']());}}}(a71_0x4c97,0x24aa4));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(_0x2193b2){const _0x55270a=a71_0x5526;_client=createClient({'appCode':_0x2193b2[_0x55270a(0x159)],'env':_0x2193b2[_0x55270a(0x177)],'authMode':_0x2193b2[_0x55270a(0x155)],..._0x2193b2['accessKey']?{'accessKey':_0x2193b2[_0x55270a(0x15c)]}:{},'options':{'timeout':0x7530,'headers':{'X-Invoke-Source':PRODUCT_CONFIG['invokeSource']}}});}function ensureClient(){const _0xabae1f=a71_0x5526;if(!_client)throw new Error(_0xabae1f(0x164));return _client;}function a71_0x4c97(){const _0xac7d21=['field','1844591gyGMFa','validation','\x22.\x20','models','update','40RcalLZ','getOne\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123}\x27','isArray','getOne','execute','SDK\x20model\x20does\x20not\x20support\x20operation\x20\x22','env','6dIehPL','8ScljEy','string','dataset_','1360WpudTL','694060CazucC','Available:\x20filter,\x20getOne,\x20create,\x20batchCreate,\x20update,\x20delete,\x20aggregate.','11967nfdYMC','update\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123,\x22name\x22:\x22new\x22}\x27','authMode','81948nZErGd','93949hPqSjj','delete','appCode','data\x20aggregate\x20--params.aggregate[','sql','accessKey',']\x20must\x20be\x20an\x20object.',']\x20requires\x20\x22column\x22;\x20\x22field\x22\x20is\x20accepted\x20only\x20as\x20a\x20deprecated\x20alias.','map','function','trim','data\x20aggregate\x20--params.aggregate\x20must\x20be\x20an\x20array.','batchCreate','SDK\x20client\x20not\x20initialized.\x20Call\x20initSdkClient()\x20first.','object','2511Pbyhxs','aggregate','803HDoKeQ','column','2324COrRWv'];a71_0x4c97=function(){return _0xac7d21;};return a71_0x4c97();}function a71_0x5526(_0x4d91a3,_0x410eb2){_0x4d91a3=_0x4d91a3-0x151;const _0x4c97b2=a71_0x4c97();let _0x55262b=_0x4c97b2[_0x4d91a3];return _0x55262b;}function normalizeAggregateParams(_0x482e7c){const _0x17a496=a71_0x5526,_0x37655f=_0x482e7c[_0x17a496(0x167)];if(_0x37655f===undefined)return _0x482e7c;if(!Array[_0x17a496(0x173)](_0x37655f))throw CliErrors[_0x17a496(0x16d)](_0x17a496(0x162));return{..._0x482e7c,'aggregate':_0x37655f[_0x17a496(0x15f)]((_0x3a2097,_0x3d78c6)=>{const _0x2ef858=_0x17a496;if(!_0x3a2097||typeof _0x3a2097!==_0x2ef858(0x165)||Array[_0x2ef858(0x173)](_0x3a2097))throw CliErrors[_0x2ef858(0x16d)]('data\x20aggregate\x20--params.aggregate['+_0x3d78c6+_0x2ef858(0x15d));const _0x315b48=_0x3a2097[_0x2ef858(0x169)]??_0x3a2097[_0x2ef858(0x16b)];if(typeof _0x315b48!==_0x2ef858(0x17a)||_0x315b48[_0x2ef858(0x161)]()==='')throw CliErrors[_0x2ef858(0x16d)](_0x2ef858(0x15a)+_0x3d78c6+_0x2ef858(0x15e));const _0x6e4339={..._0x3a2097,'column':_0x315b48};return delete _0x6e4339['field'],_0x6e4339;})};}export async function executeData(_0x240957,_0x53606e,_0x5c31d6){const _0x45854a=a71_0x5526,_0x3729ef=ensureClient(),_0xf9c3d4=_0x45854a(0x17b)+_0x240957,_0x26c642=_0x3729ef[_0x45854a(0x16f)][_0xf9c3d4];if(!_0x26c642||typeof _0x26c642[_0x53606e]!==_0x45854a(0x160))throw new Error(_0x45854a(0x176)+_0x53606e+_0x45854a(0x16e)+_0x45854a(0x152));if(_0x53606e===_0x45854a(0x163))return _0x26c642[_0x45854a(0x163)](parseBatchCreateItemsFromParams(_0x5c31d6));const _0x2e6d14=_0x5c31d6!==undefined&&_0x5c31d6!==null&&!Array['isArray'](_0x5c31d6)?_0x5c31d6:{};switch(_0x53606e){case _0x45854a(0x174):{const _0x215879=_0x2e6d14['id'];if(_0x215879===undefined||_0x215879===null)throw new Error(_0x45854a(0x172));return _0x26c642[_0x45854a(0x174)](_0x215879);}case'update':{const {id:_0x8214c5,..._0x1cfb95}=_0x2e6d14;if(_0x8214c5===undefined||_0x8214c5===null)throw new Error(_0x45854a(0x154));return _0x26c642[_0x45854a(0x170)](_0x8214c5,_0x1cfb95);}case _0x45854a(0x158):{const _0x3756b0=_0x2e6d14['id'];if(_0x3756b0===undefined||_0x3756b0===null)throw new Error('delete\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123}\x27');return _0x26c642[_0x45854a(0x158)](_0x3756b0);}case'aggregate':return _0x26c642[_0x45854a(0x167)](normalizeAggregateParams(_0x2e6d14));default:return _0x26c642[_0x53606e](_0x2e6d14);}}export async function executeSdkSql(_0xd33bd5,_0x56acda){const _0x4423e1=a71_0x5526,_0x3b6bee=ensureClient();return _0x3b6bee[_0x4423e1(0x15b)][_0x4423e1(0x175)]({'sqlCode':_0xd33bd5,'params':_0x56acda});}export async function executeSdkBff(_0xf3dd0,_0x19f4a8){const _0x43b601=a71_0x5526,_0x2b4d08=ensureClient();return _0x2b4d08['bff'][_0x43b601(0x175)]({'scriptName':_0xf3dd0,'params':_0x19f4a8});}
package/lib/errors.js CHANGED
@@ -1 +1 @@
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
+ const a72_0x99975a=a72_0x3228;(function(_0x591c9e,_0x38df6a){const _0x809538=a72_0x3228,_0x445be3=_0x591c9e();while(!![]){try{const _0x2d8944=-parseInt(_0x809538(0x76))/0x1+-parseInt(_0x809538(0x73))/0x2+-parseInt(_0x809538(0x79))/0x3*(parseInt(_0x809538(0x6f))/0x4)+-parseInt(_0x809538(0x78))/0x5*(parseInt(_0x809538(0x77))/0x6)+parseInt(_0x809538(0x75))/0x7+-parseInt(_0x809538(0x7a))/0x8+parseInt(_0x809538(0x71))/0x9;if(_0x2d8944===_0x38df6a)break;else _0x445be3['push'](_0x445be3['shift']());}catch(_0x214b5b){_0x445be3['push'](_0x445be3['shift']());}}}(a72_0x40bd,0xc425b));import{CliError,createCliErrors}from'@lovrabet/cli-framework';import{CLI_BIN_NAME}from'./constant/cli.js';function a72_0x3228(_0x19922b,_0x8892e7){_0x19922b=_0x19922b-0x6e;const _0x40bd02=a72_0x40bd();let _0x32284a=_0x40bd02[_0x19922b];return _0x32284a;}import{PRODUCT_CONFIG}from'./constant/product.js';function a72_0x40bd(){const _0x4c55e1=['Configure\x20accessKey\x20in\x20','59236NxQQHO','\x20or\x20run\x20`','48232746MsDGKi','newConfigFileName','2738286lgAMyV','\x20auth\x20login`.','3775261WQDCet','1444965fCWQCI','389106kTJXZU','40xScVTr','309Wrskha','1894840Nntamc','Run\x20this\x20command\x20inside\x20a\x20directory\x20with\x20a\x20'];a72_0x40bd=function(){return _0x4c55e1;};return a72_0x40bd();}export{CliError};export const CliErrors=createCliErrors({'cliBinName':CLI_BIN_NAME,'authRequiredHint':a72_0x99975a(0x6e)+PRODUCT_CONFIG[a72_0x99975a(0x72)]+a72_0x99975a(0x70)+CLI_BIN_NAME+a72_0x99975a(0x74),'configMissingHint':'Set\x20appcode\x20via\x20--appcode\x20or\x20'+PRODUCT_CONFIG[a72_0x99975a(0x72)]+'.','notInProjectHint':a72_0x99975a(0x7b)+PRODUCT_CONFIG[a72_0x99975a(0x72)]+'\x20file.'});
@@ -1 +1 @@
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
+ function a73_0x1bfe(){var _0x46b0fd=['2611326ZLpdSN','1676CQKHjb','1824690gBuOKe','3970MaNMgI','8719264cMoyBQ','1667zFyqqJ','468okYLgu','9vMliPT','22961190pphReC','5825520YwMIvy'];a73_0x1bfe=function(){return _0x46b0fd;};return a73_0x1bfe();}(function(_0x1a5ae1,_0x460db2){var _0x1997f7=a73_0x5807,_0x1cc174=_0x1a5ae1();while(!![]){try{var _0x4b6e2f=-parseInt(_0x1997f7(0x1a7))/0x1*(-parseInt(_0x1997f7(0x1a3))/0x2)+-parseInt(_0x1997f7(0x1a2))/0x3+parseInt(_0x1997f7(0x1a8))/0x4*(-parseInt(_0x1997f7(0x1a5))/0x5)+-parseInt(_0x1997f7(0x1a1))/0x6+parseInt(_0x1997f7(0x1a4))/0x7+-parseInt(_0x1997f7(0x1a6))/0x8+parseInt(_0x1997f7(0x1a9))/0x9*(parseInt(_0x1997f7(0x1aa))/0xa);if(_0x4b6e2f===_0x460db2)break;else _0x1cc174['push'](_0x1cc174['shift']());}catch(_0x503888){_0x1cc174['push'](_0x1cc174['shift']());}}}(a73_0x1bfe,0xe2f1f));import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';function a73_0x5807(_0x196c3e,_0x5374d4){_0x196c3e=_0x196c3e-0x1a1;var _0x1bfef9=a73_0x1bfe();var _0x58079f=_0x1bfef9[_0x196c3e];return _0x58079f;}import{buildAllFlags as a73_0xd43879}from'@lovrabet/cli-framework';export function buildAllFlags(_0x5db935){return a73_0xd43879(_0x5db935,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});}