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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (112) hide show
  1. package/lib/cli.js +1 -1
  2. package/lib/commands/api-doc/index.js +1 -1
  3. package/lib/commands/app/cache.js +1 -1
  4. package/lib/commands/app/definitions.js +1 -1
  5. package/lib/commands/app/eligibility.js +1 -1
  6. package/lib/commands/app/mock-loader.js +1 -1
  7. package/lib/commands/app/remote-source.js +1 -1
  8. package/lib/commands/app/shared.js +1 -1
  9. package/lib/commands/app-config/get.js +1 -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 -0
  87. package/lib/framework/types.js +1 -1
  88. package/lib/generated/build-info.js +1 -1
  89. package/lib/help.js +1 -1
  90. package/lib/skills/npx-skills-add.js +1 -1
  91. package/lib/skills/runtime-skill-sync/constants.js +1 -1
  92. package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
  93. package/lib/skills/runtime-skill-sync/hashing.js +1 -1
  94. package/lib/skills/runtime-skill-sync/links.js +1 -1
  95. package/lib/skills/runtime-skill-sync/list-local.js +1 -1
  96. package/lib/skills/runtime-skill-sync/local-files.js +1 -1
  97. package/lib/skills/runtime-skill-sync/materialize.js +1 -1
  98. package/lib/skills/runtime-skill-sync/metadata.js +1 -1
  99. package/lib/skills/runtime-skill-sync/paths.js +1 -1
  100. package/lib/skills/runtime-skill-sync/push.js +1 -1
  101. package/lib/skills/runtime-skill-sync/scopes.js +1 -1
  102. package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
  103. package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
  104. package/lib/skills/runtime-skill-sync.js +1 -1
  105. package/lib/utils/apply-jq-filter.js +1 -1
  106. package/lib/utils/logger.js +1 -1
  107. package/lib/utils/params.js +1 -1
  108. package/lib/utils/platform.js +1 -1
  109. package/lib/utils/update-notice.js +1 -1
  110. package/lib/utils/version.js +1 -1
  111. package/lib/utils/write-cli-side-channel.js +1 -1
  112. package/package.json +1 -1
@@ -1 +1 @@
1
- const a56_0x31326f=a56_0x53d7;(function(_0x9e5e42,_0x475956){const _0x359cd4=a56_0x53d7,_0x73e8e6=_0x9e5e42();while(!![]){try{const _0x3c3723=-parseInt(_0x359cd4(0x1e0))/0x1*(-parseInt(_0x359cd4(0x1e4))/0x2)+-parseInt(_0x359cd4(0x1df))/0x3+-parseInt(_0x359cd4(0x1d4))/0x4+-parseInt(_0x359cd4(0x1d8))/0x5+-parseInt(_0x359cd4(0x1f2))/0x6*(parseInt(_0x359cd4(0x1ea))/0x7)+-parseInt(_0x359cd4(0x1ed))/0x8+parseInt(_0x359cd4(0x1dc))/0x9*(parseInt(_0x359cd4(0x1d5))/0xa);if(_0x3c3723===_0x475956)break;else _0x73e8e6['push'](_0x73e8e6['shift']());}catch(_0x148200){_0x73e8e6['push'](_0x73e8e6['shift']());}}}(a56_0x290a,0x50b55));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{RUNTIME_ENV_VALUES}from'../constant/env.js';function a56_0x53d7(_0x31785f,_0x2d13d4){_0x31785f=_0x31785f-0x1d4;const _0x290a04=a56_0x290a();let _0x53d71b=_0x290a04[_0x31785f];return _0x53d71b;}import{OUTPUT_FORMAT_VALUES}from'../constant/output.js';export const CONFIG_FIELD_SCHEMAS={'env':{'description':a56_0x31326f(0x1e2),'topLevel':!![],'cliSettableTopLevel':!![],'enumValues':RUNTIME_ENV_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES[a56_0x31326f(0x1d6)],'importable':!![]},'format':{'description':'Default\x20output\x20format','topLevel':!![],'cliSettableTopLevel':!![],'enumValues':OUTPUT_FORMAT_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES[a56_0x31326f(0x1da)],'importable':!![]},'pageSize':{'description':a56_0x31326f(0x1e5),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'apiDomain':{'description':'Override\x20API\x20domain','topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'userDomain':{'description':a56_0x31326f(0x1ef),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'runtimeDomain':{'description':'Override\x20runtime\x20domain','topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'skillHubDomain':{'description':a56_0x31326f(0x1d9),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'accessKey':{'description':a56_0x31326f(0x1e3),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'riskLevel':{'description':'Risk\x20level','topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES['riskLevel'],'importable':!![]},'locale':{'description':a56_0x31326f(0x1d7),'topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES[a56_0x31326f(0x1e8)],'importable':!![],'legacyCompatOnly':!![]}};export const TOP_LEVEL_CONFIG_KEYS=new Set(Object['entries'](CONFIG_FIELD_SCHEMAS)['filter'](([,_0x407499])=>_0x407499[a56_0x31326f(0x1db)])[a56_0x31326f(0x1dd)](([_0x48bc2e])=>_0x48bc2e));export const CONFIG_ENUM_VALUES=Object[a56_0x31326f(0x1e9)](Object[a56_0x31326f(0x1de)](CONFIG_FIELD_SCHEMAS)[a56_0x31326f(0x1e6)](([,_0x41d1f1])=>_0x41d1f1[a56_0x31326f(0x1f1)])[a56_0x31326f(0x1dd)](([_0x3f6cdf,_0x2df5cf])=>[_0x3f6cdf,[..._0x2df5cf[a56_0x31326f(0x1f1)]||[]]]));export const IMPORTABLE_RUNTIME_CONFIG_KEYS=Object[a56_0x31326f(0x1de)](CONFIG_FIELD_SCHEMAS)[a56_0x31326f(0x1e6)](([,_0x3944dd])=>_0x3944dd[a56_0x31326f(0x1e7)])['map'](([_0x344e3b])=>_0x344e3b);export function getConfigFieldSchema(_0x1280f2){return CONFIG_FIELD_SCHEMAS[_0x1280f2];}export function getConfigEnumValues(_0x177f58){const _0x4abd5f=a56_0x31326f;return getConfigFieldSchema(_0x177f58)?.[_0x4abd5f(0x1f1)];}export function getConfigDefaultValue(_0x53e0be){const _0xaf3f3e=a56_0x31326f;return getConfigFieldSchema(_0x53e0be)?.[_0xaf3f3e(0x1e1)];}function a56_0x290a(){const _0x868bba=['defaultValue','Target\x20environment','Access\x20key\x20(client-ak\x20auth)','2UzSJHY','Default\x20page\x20size','filter','importable','locale','fromEntries','35qKlNuS','legacyCompatOnly','join','4728664OYAzmc','Config\x20key.\x20Top-level:\x20','Override\x20user\x20domain','has','enumValues','451650CKVpAq','1629760NcEQOQ','190HnxQGz','env','Locale','3053485NBwdUf','Override\x20SkillHub\x20domain','format','cliSettableTopLevel','1006659jWnkMa','map','entries','1402968kfQfKb','658663OMNybM'];a56_0x290a=function(){return _0x868bba;};return a56_0x290a();}export function isTopLevelConfigKey(_0x509b5a){const _0x39750c=a56_0x31326f;return TOP_LEVEL_CONFIG_KEYS[_0x39750c(0x1f0)](_0x509b5a);}export function isLegacyCompatConfigKey(_0x73e844){const _0x14ac82=a56_0x31326f;return getConfigFieldSchema(_0x73e844)?.[_0x14ac82(0x1eb)]===!![];}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function formatConfigKeyList(_0x4c2a94){const _0x286a82=a56_0x31326f;return[..._0x4c2a94][_0x286a82(0x1ec)](',\x20');}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){const _0x3bcaef=a56_0x31326f;return _0x3bcaef(0x1ee)+getTopLevelConfigKeySummary()+';\x20local\x20alias:\x20apps.<alias>.appcode';}export function buildAppProfileListFields(_0xf300ac){return{'env':_0xf300ac,'hasAccessKey':![],'format':null,'pageSize':null,'riskLevel':null,'locale':null};}
1
+ const a56_0x27f711=a56_0x416c;(function(_0x316c49,_0xb8de09){const _0x3aa08e=a56_0x416c,_0x544400=_0x316c49();while(!![]){try{const _0x2d2cc2=-parseInt(_0x3aa08e(0x18c))/0x1*(-parseInt(_0x3aa08e(0x17c))/0x2)+parseInt(_0x3aa08e(0x17e))/0x3+parseInt(_0x3aa08e(0x18a))/0x4+parseInt(_0x3aa08e(0x189))/0x5*(-parseInt(_0x3aa08e(0x183))/0x6)+parseInt(_0x3aa08e(0x192))/0x7*(parseInt(_0x3aa08e(0x184))/0x8)+parseInt(_0x3aa08e(0x18e))/0x9+-parseInt(_0x3aa08e(0x177))/0xa;if(_0x2d2cc2===_0xb8de09)break;else _0x544400['push'](_0x544400['shift']());}catch(_0x2a9615){_0x544400['push'](_0x544400['shift']());}}}(a56_0x273c,0x4663b));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{RUNTIME_ENV_VALUES}from'../constant/env.js';import{OUTPUT_FORMAT_VALUES}from'../constant/output.js';export const CONFIG_FIELD_SCHEMAS={'env':{'description':a56_0x27f711(0x17a),'topLevel':!![],'cliSettableTopLevel':!![],'enumValues':RUNTIME_ENV_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES[a56_0x27f711(0x194)],'importable':!![]},'format':{'description':a56_0x27f711(0x188),'topLevel':!![],'cliSettableTopLevel':!![],'enumValues':OUTPUT_FORMAT_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES[a56_0x27f711(0x178)],'importable':!![]},'pageSize':{'description':a56_0x27f711(0x17d),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'apiDomain':{'description':'Override\x20API\x20domain','topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'userDomain':{'description':a56_0x27f711(0x191),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'runtimeDomain':{'description':'Override\x20runtime\x20domain','topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'skillHubDomain':{'description':a56_0x27f711(0x190),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'accessKey':{'description':a56_0x27f711(0x17b),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'riskLevel':{'description':a56_0x27f711(0x180),'topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES[a56_0x27f711(0x176)],'importable':!![]},'locale':{'description':a56_0x27f711(0x182),'topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES[a56_0x27f711(0x18f)],'importable':!![],'legacyCompatOnly':!![]}};function a56_0x416c(_0x43b9a6,_0x311512){_0x43b9a6=_0x43b9a6-0x176;const _0x273c8e=a56_0x273c();let _0x416ce4=_0x273c8e[_0x43b9a6];return _0x416ce4;}export const TOP_LEVEL_CONFIG_KEYS=new Set(Object[a56_0x27f711(0x193)](CONFIG_FIELD_SCHEMAS)[a56_0x27f711(0x187)](([,_0x3074c7])=>_0x3074c7[a56_0x27f711(0x185)])[a56_0x27f711(0x181)](([_0x29f6c1])=>_0x29f6c1));export const CONFIG_ENUM_VALUES=Object[a56_0x27f711(0x17f)](Object[a56_0x27f711(0x193)](CONFIG_FIELD_SCHEMAS)[a56_0x27f711(0x187)](([,_0x374bb1])=>_0x374bb1[a56_0x27f711(0x179)])['map'](([_0x32e930,_0x47d849])=>[_0x32e930,[..._0x47d849[a56_0x27f711(0x179)]||[]]]));export const IMPORTABLE_RUNTIME_CONFIG_KEYS=Object['entries'](CONFIG_FIELD_SCHEMAS)['filter'](([,_0x52525a])=>_0x52525a['importable'])[a56_0x27f711(0x181)](([_0x5d009b])=>_0x5d009b);export function getConfigFieldSchema(_0x35d21a){return CONFIG_FIELD_SCHEMAS[_0x35d21a];}export function getConfigEnumValues(_0x201ec8){const _0x557412=a56_0x27f711;return getConfigFieldSchema(_0x201ec8)?.[_0x557412(0x179)];}export function getConfigDefaultValue(_0x447611){return getConfigFieldSchema(_0x447611)?.['defaultValue'];}export function isTopLevelConfigKey(_0x3e7e20){const _0x104568=a56_0x27f711;return TOP_LEVEL_CONFIG_KEYS[_0x104568(0x186)](_0x3e7e20);}function a56_0x273c(){const _0xe6ffb9=['568341RllXwu','locale','Override\x20SkillHub\x20domain','Override\x20user\x20domain','614572jwepBg','entries','env','riskLevel','9802530aZBdOC','format','enumValues','Target\x20environment','Access\x20key\x20(client-ak\x20auth)','142268eEHKEK','Default\x20page\x20size','1264107iDkQOe','fromEntries','Risk\x20level','map','Locale','702zrNyxd','24TKxqMG','cliSettableTopLevel','has','filter','Default\x20output\x20format','16975zwlxla','1395220zUSgaP','legacyCompatOnly','8fJOxVM','Config\x20key.\x20Top-level:\x20'];a56_0x273c=function(){return _0xe6ffb9;};return a56_0x273c();}export function isLegacyCompatConfigKey(_0x3171cc){const _0x32d831=a56_0x27f711;return getConfigFieldSchema(_0x3171cc)?.[_0x32d831(0x18b)]===!![];}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function formatConfigKeyList(_0x5107e2){return[..._0x5107e2]['join'](',\x20');}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){const _0x4d5dc5=a56_0x27f711;return _0x4d5dc5(0x18d)+getTopLevelConfigKeySummary()+';\x20local\x20alias:\x20apps.<alias>.appcode';}export function buildAppProfileListFields(_0xef4171){return{'env':_0xef4171,'hasAccessKey':![],'format':null,'pageSize':null,'riskLevel':null,'locale':null};}
@@ -1 +1 @@
1
- function a57_0x3019(_0x132957,_0x22b075){_0x132957=_0x132957-0x1de;const _0x5c84c2=a57_0x5c84();let _0x301914=_0x5c84c2[_0x132957];return _0x301914;}const a57_0x2dc5bb=a57_0x3019;(function(_0x19228c,_0x5ce063){const _0x335564=a57_0x3019,_0x7f845b=_0x19228c();while(!![]){try{const _0x368070=-parseInt(_0x335564(0x1df))/0x1+parseInt(_0x335564(0x1e1))/0x2+-parseInt(_0x335564(0x1e6))/0x3+parseInt(_0x335564(0x1e5))/0x4+-parseInt(_0x335564(0x1e8))/0x5+parseInt(_0x335564(0x1de))/0x6+-parseInt(_0x335564(0x1e2))/0x7*(-parseInt(_0x335564(0x1e3))/0x8);if(_0x368070===_0x5ce063)break;else _0x7f845b['push'](_0x7f845b['shift']());}catch(_0x28e3f9){_0x7f845b['push'](_0x7f845b['shift']());}}}(a57_0x5c84,0xf24fa));export const APP_PUBLISH_STATUS={'Published':a57_0x2dc5bb(0x1e4),'Unpublished':a57_0x2dc5bb(0x1e0)};export const RUNTIME_ACCESSIBLE_APP_STATUS=APP_PUBLISH_STATUS[a57_0x2dc5bb(0x1e7)];function a57_0x5c84(){const _0x19ce85=['1972962rkqMTH','1845599pzCPnP','UNPUBLISH','1462198kCMPss','161bLzShj','997720yTyBuV','PUBLISHED','3644296SdlLxt','356196kiBNTR','Published','9413040hMymen'];a57_0x5c84=function(){return _0x19ce85;};return a57_0x5c84();}
1
+ const a57_0x47d803=a57_0x51b3;(function(_0x47e77f,_0x14d8b2){const _0x45393e=a57_0x51b3,_0x416358=_0x47e77f();while(!![]){try{const _0x6bb77f=-parseInt(_0x45393e(0x11b))/0x1*(-parseInt(_0x45393e(0x120))/0x2)+-parseInt(_0x45393e(0x11f))/0x3*(-parseInt(_0x45393e(0x119))/0x4)+parseInt(_0x45393e(0x123))/0x5*(parseInt(_0x45393e(0x11a))/0x6)+parseInt(_0x45393e(0x127))/0x7+parseInt(_0x45393e(0x11d))/0x8*(-parseInt(_0x45393e(0x11c))/0x9)+-parseInt(_0x45393e(0x126))/0xa*(parseInt(_0x45393e(0x124))/0xb)+parseInt(_0x45393e(0x125))/0xc*(-parseInt(_0x45393e(0x11e))/0xd);if(_0x6bb77f===_0x14d8b2)break;else _0x416358['push'](_0x416358['shift']());}catch(_0x350fbb){_0x416358['push'](_0x416358['shift']());}}}(a57_0x3286,0x3e2ad));export const APP_PUBLISH_STATUS={'Published':a57_0x47d803(0x121),'Unpublished':a57_0x47d803(0x128)};function a57_0x3286(){const _0x512b38=['525050GTHVnI','1533644AZSVxT','UNPUBLISH','47412YYYXba','42ZWGeTX','71VhZpal','9thVtGJ','3332792zTeBev','13iMCiYw','105JJOlFu','12086LqSHfg','PUBLISHED','Published','85460TombzZ','11WOoNFu','5506836ocLeGM'];a57_0x3286=function(){return _0x512b38;};return a57_0x3286();}function a57_0x51b3(_0x436e03,_0x2a0e60){_0x436e03=_0x436e03-0x119;const _0x3286a1=a57_0x3286();let _0x51b3a7=_0x3286a1[_0x436e03];return _0x51b3a7;}export const RUNTIME_ACCESSIBLE_APP_STATUS=APP_PUBLISH_STATUS[a57_0x47d803(0x122)];
@@ -1 +1 @@
1
- function a58_0x4852(){const _0x4b84f6=['4965585XRGrlW','1603StvNlP','44LyPPwR','2CEuEkK','27066MtqCCT','30UuJTTi','949907KudCUZ','3511899MvakTm','client-ak','ClientAk','26812698EPOewD','680135ruKyAH','3447664voxdpC'];a58_0x4852=function(){return _0x4b84f6;};return a58_0x4852();}const a58_0x1174f8=a58_0x428f;function a58_0x428f(_0x2f8114,_0x1d04b2){_0x2f8114=_0x2f8114-0x149;const _0x4852ca=a58_0x4852();let _0x428fa2=_0x4852ca[_0x2f8114];return _0x428fa2;}(function(_0x54a56b,_0x8a1455){const _0x4a1a0b=a58_0x428f,_0x4a17fe=_0x54a56b();while(!![]){try{const _0x5ea8f1=-parseInt(_0x4a1a0b(0x14c))/0x1*(parseInt(_0x4a1a0b(0x149))/0x2)+-parseInt(_0x4a1a0b(0x153))/0x3+-parseInt(_0x4a1a0b(0x155))/0x4*(parseInt(_0x4a1a0b(0x151))/0x5)+-parseInt(_0x4a1a0b(0x14a))/0x6*(-parseInt(_0x4a1a0b(0x154))/0x7)+parseInt(_0x4a1a0b(0x152))/0x8+-parseInt(_0x4a1a0b(0x14d))/0x9*(-parseInt(_0x4a1a0b(0x14b))/0xa)+parseInt(_0x4a1a0b(0x150))/0xb;if(_0x5ea8f1===_0x8a1455)break;else _0x4a17fe['push'](_0x4a17fe['shift']());}catch(_0x42302c){_0x4a17fe['push'](_0x4a17fe['shift']());}}}(a58_0x4852,0xecfe9));export const AUTH_MODE={'ClientAk':a58_0x1174f8(0x14e)};export function isAuthMode(_0x5a48b8){const _0x59948c=a58_0x1174f8;return _0x5a48b8===AUTH_MODE[_0x59948c(0x14f)];}
1
+ const a58_0x2b00cb=a58_0x3920;(function(_0x491df9,_0x515f5c){const _0x3eea51=a58_0x3920,_0x18e2a5=_0x491df9();while(!![]){try{const _0x404afe=parseInt(_0x3eea51(0x1c2))/0x1*(parseInt(_0x3eea51(0x1c1))/0x2)+parseInt(_0x3eea51(0x1c0))/0x3*(parseInt(_0x3eea51(0x1c5))/0x4)+-parseInt(_0x3eea51(0x1c7))/0x5*(-parseInt(_0x3eea51(0x1bf))/0x6)+-parseInt(_0x3eea51(0x1c8))/0x7+-parseInt(_0x3eea51(0x1c6))/0x8+parseInt(_0x3eea51(0x1be))/0x9+-parseInt(_0x3eea51(0x1bd))/0xa;if(_0x404afe===_0x515f5c)break;else _0x18e2a5['push'](_0x18e2a5['shift']());}catch(_0x44bec7){_0x18e2a5['push'](_0x18e2a5['shift']());}}}(a58_0x5049,0xb3acb));export const AUTH_MODE={'ClientAk':a58_0x2b00cb(0x1c4)};function a58_0x3920(_0x2848a4,_0x54fe1f){_0x2848a4=_0x2848a4-0x1bd;const _0x50498c=a58_0x5049();let _0x392021=_0x50498c[_0x2848a4];return _0x392021;}function a58_0x5049(){const _0x11deb6=['9297750rKiuQh','3904030cBphEA','7679187TGDknH','557646nfOiJh','1230927RKbzFy','544PyEJJk','1873zYSuEJ','ClientAk','client-ak','8hSrszK','3034432cjDipb','35QzuniY'];a58_0x5049=function(){return _0x11deb6;};return a58_0x5049();}export function isAuthMode(_0xf1aaaf){const _0x54b075=a58_0x2b00cb;return _0xf1aaaf===AUTH_MODE[_0x54b075(0x1c3)];}
@@ -1 +1 @@
1
- const a59_0xbce616=a59_0x1815;(function(_0xa1a021,_0xc417cd){const _0x171bca=a59_0x1815,_0x28b7d9=_0xa1a021();while(!![]){try{const _0xd96f97=parseInt(_0x171bca(0x12d))/0x1*(-parseInt(_0x171bca(0x13f))/0x2)+parseInt(_0x171bca(0x138))/0x3*(-parseInt(_0x171bca(0x141))/0x4)+-parseInt(_0x171bca(0x12c))/0x5+-parseInt(_0x171bca(0x12b))/0x6+parseInt(_0x171bca(0x125))/0x7*(-parseInt(_0x171bca(0x131))/0x8)+-parseInt(_0x171bca(0x13a))/0x9+parseInt(_0x171bca(0x142))/0xa;if(_0xd96f97===_0xc417cd)break;else _0x28b7d9['push'](_0x28b7d9['shift']());}catch(_0x483116){_0x28b7d9['push'](_0x28b7d9['shift']());}}}(a59_0x1103,0x5f96b));import{PRODUCT_CONFIG}from'../constant/product.js';import{LOVRABET_NPM_PACKAGE_NAME}from'../constant/distribution.js';export const CLI_BIN_NAME=PRODUCT_CONFIG[a59_0xbce616(0x130)];export const CLI_DISPLAY_NAME=PRODUCT_CONFIG[a59_0xbce616(0x129)];export const NPM_PACKAGE_NAME=LOVRABET_NPM_PACKAGE_NAME;function a59_0x1103(){const _0x1bd69b=['213608teTXXJ','map','name','verbose','app','nonInteractive','json\x20|\x20pretty\x20|\x20compress','2084949HKNeDk','string','4128777iwrAMR','params','Override\x20appcode','boolean','<expr>','2OleIBK','env','4pNZJlQ','32120970Wexutf','yes','help','Show\x20help','global','fromEntries','format','Select\x20app\x20profile\x20by\x20name','<code>','dry-run','appcode','Output\x20format','non-interactive','SQL\x20query\x20code','type','Alias\x20for\x20--non-interactive','126xRhfVJ','JSON\x20params\x20for\x20execute\x20commands','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20implies\x20--format\x20json\x20when\x20current\x20format\x20is\x20pretty)','sqlcode','cliDisplayName','Name\x20filter','2625384tsZGqY','943110yAYUVv','560026xincQZ','<name>','production\x20|\x20development\x20|\x20daily','cliBinName'];a59_0x1103=function(){return _0x1bd69b;};return a59_0x1103();}export const GLOBAL_FLAGS=[{'name':a59_0xbce616(0x14c),'meowKey':a59_0xbce616(0x14c),'type':a59_0xbce616(0x139),'description':a59_0xbce616(0x13c),'hint':a59_0xbce616(0x14a)},{'name':a59_0xbce616(0x135),'meowKey':a59_0xbce616(0x135),'type':a59_0xbce616(0x139),'description':a59_0xbce616(0x149),'hint':a59_0xbce616(0x12e)},{'name':'env','meowKey':a59_0xbce616(0x140),'type':a59_0xbce616(0x139),'description':'Environment','hint':a59_0xbce616(0x12f)},{'name':a59_0xbce616(0x148),'meowKey':a59_0xbce616(0x148),'type':'string','description':a59_0xbce616(0x14d),'hint':a59_0xbce616(0x137)},{'name':'jq','meowKey':'jq','type':a59_0xbce616(0x139),'description':a59_0xbce616(0x127),'hint':a59_0xbce616(0x13e)},{'name':a59_0xbce616(0x14b),'meowKey':'dryRun','type':a59_0xbce616(0x13d),'description':'Preview\x20operation\x20without\x20executing'},{'name':a59_0xbce616(0x143),'meowKey':a59_0xbce616(0x143),'type':a59_0xbce616(0x13d),'description':'Skip\x20confirmation\x20for\x20high-risk\x20writes'},{'name':'non-interactive','meowKey':a59_0xbce616(0x136),'type':a59_0xbce616(0x13d),'description':'Force\x20non-interactive\x20mode\x20(CI)'},{'name':a59_0xbce616(0x146),'meowKey':a59_0xbce616(0x146),'type':a59_0xbce616(0x13d),'description':'Use\x20global\x20config\x20scope'},{'name':'ci','meowKey':'ci','type':a59_0xbce616(0x13d),'description':a59_0xbce616(0x151),'hidden':!![]},{'name':'help','meowKey':a59_0xbce616(0x144),'type':a59_0xbce616(0x13d),'description':a59_0xbce616(0x145)},{'name':'id','meowKey':'id','type':a59_0xbce616(0x139),'description':'Record\x20ID','hidden':!![]},{'name':'name','meowKey':a59_0xbce616(0x133),'type':'string','description':a59_0xbce616(0x12a),'hidden':!![]},{'name':'sqlcode','meowKey':a59_0xbce616(0x128),'type':a59_0xbce616(0x139),'description':a59_0xbce616(0x14f),'hidden':!![]},{'name':a59_0xbce616(0x13b),'meowKey':'params','type':a59_0xbce616(0x139),'description':a59_0xbce616(0x126),'hidden':!![]},{'name':a59_0xbce616(0x134),'meowKey':a59_0xbce616(0x134),'type':a59_0xbce616(0x13d),'description':'Verbose\x20output','hidden':!![]},{'name':'clear','meowKey':'clear','type':'boolean','description':'Clear\x20output','hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set([a59_0xbce616(0x14c),'app',a59_0xbce616(0x140),a59_0xbce616(0x148),'jq',a59_0xbce616(0x14b),a59_0xbce616(0x143),a59_0xbce616(0x14e),'ci']);function a59_0x1815(_0x52c681,_0x3ae7d3){_0x52c681=_0x52c681-0x125;const _0x1103b3=a59_0x1103();let _0x18158f=_0x1103b3[_0x52c681];return _0x18158f;}export function buildMeowFlags(){const _0x344689=a59_0xbce616;return Object[_0x344689(0x147)](GLOBAL_FLAGS[_0x344689(0x132)](_0x2c0d4f=>[_0x2c0d4f['meowKey'],{'type':_0x2c0d4f[_0x344689(0x150)]}]));}
1
+ const a59_0x28f7c7=a59_0x2265;(function(_0x1fd3cf,_0x486539){const _0x38a8af=a59_0x2265,_0x919c8d=_0x1fd3cf();while(!![]){try{const _0x4b5b00=-parseInt(_0x38a8af(0x1d0))/0x1+parseInt(_0x38a8af(0x1d1))/0x2+-parseInt(_0x38a8af(0x1cc))/0x3+parseInt(_0x38a8af(0x1e4))/0x4+parseInt(_0x38a8af(0x1e2))/0x5*(-parseInt(_0x38a8af(0x1ee))/0x6)+parseInt(_0x38a8af(0x1e0))/0x7*(-parseInt(_0x38a8af(0x1f4))/0x8)+parseInt(_0x38a8af(0x1f1))/0x9;if(_0x4b5b00===_0x486539)break;else _0x919c8d['push'](_0x919c8d['shift']());}catch(_0xf34396){_0x919c8d['push'](_0x919c8d['shift']());}}}(a59_0x4ad1,0x7a600));import{PRODUCT_CONFIG}from'../constant/product.js';function a59_0x2265(_0x43f98a,_0x598cd3){_0x43f98a=_0x43f98a-0x1cb;const _0x4ad1d6=a59_0x4ad1();let _0x2265f5=_0x4ad1d6[_0x43f98a];return _0x2265f5;}import{LOVRABET_NPM_PACKAGE_NAME}from'../constant/distribution.js';export const CLI_BIN_NAME=PRODUCT_CONFIG[a59_0x28f7c7(0x1f6)];export const CLI_DISPLAY_NAME=PRODUCT_CONFIG['cliDisplayName'];function a59_0x4ad1(){const _0x40c8fc=['Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20implies\x20--format\x20json\x20when\x20current\x20format\x20is\x20pretty)','cliBinName','format','type','nonInteractive','362220YIcyQF','appcode','string','Verbose\x20output','404145uvJmNY','1568348YFKTAE','<name>','Alias\x20for\x20--non-interactive','name','map','sqlcode','Name\x20filter','app','Output\x20format','clear','production\x20|\x20development\x20|\x20daily','<expr>','yes','<code>','dryRun','267827aLtDQg','fromEntries','4334095rMDRJy','boolean','1928872nGxtPz','Select\x20app\x20profile\x20by\x20name','Force\x20non-interactive\x20mode\x20(CI)','SQL\x20query\x20code','env','Show\x20help','global','Use\x20global\x20config\x20scope','Clear\x20output','dry-run','6FqbJIA','verbose','non-interactive','9426879FYRfRY','Environment','Override\x20appcode','88AVdwsy'];a59_0x4ad1=function(){return _0x40c8fc;};return a59_0x4ad1();}export const NPM_PACKAGE_NAME=LOVRABET_NPM_PACKAGE_NAME;export const GLOBAL_FLAGS=[{'name':'appcode','meowKey':a59_0x28f7c7(0x1cd),'type':a59_0x28f7c7(0x1ce),'description':a59_0x28f7c7(0x1f3),'hint':a59_0x28f7c7(0x1de)},{'name':'app','meowKey':a59_0x28f7c7(0x1d8),'type':a59_0x28f7c7(0x1ce),'description':a59_0x28f7c7(0x1e5),'hint':a59_0x28f7c7(0x1d2)},{'name':a59_0x28f7c7(0x1e8),'meowKey':a59_0x28f7c7(0x1e8),'type':a59_0x28f7c7(0x1ce),'description':a59_0x28f7c7(0x1f2),'hint':a59_0x28f7c7(0x1db)},{'name':a59_0x28f7c7(0x1f7),'meowKey':'format','type':a59_0x28f7c7(0x1ce),'description':a59_0x28f7c7(0x1d9),'hint':'json\x20|\x20pretty\x20|\x20compress'},{'name':'jq','meowKey':'jq','type':'string','description':a59_0x28f7c7(0x1f5),'hint':a59_0x28f7c7(0x1dc)},{'name':a59_0x28f7c7(0x1ed),'meowKey':a59_0x28f7c7(0x1df),'type':'boolean','description':'Preview\x20operation\x20without\x20executing'},{'name':a59_0x28f7c7(0x1dd),'meowKey':'yes','type':a59_0x28f7c7(0x1e3),'description':'Skip\x20confirmation\x20for\x20high-risk\x20writes'},{'name':a59_0x28f7c7(0x1f0),'meowKey':a59_0x28f7c7(0x1cb),'type':'boolean','description':a59_0x28f7c7(0x1e6)},{'name':a59_0x28f7c7(0x1ea),'meowKey':'global','type':'boolean','description':a59_0x28f7c7(0x1eb)},{'name':'ci','meowKey':'ci','type':'boolean','description':a59_0x28f7c7(0x1d3),'hidden':!![]},{'name':'help','meowKey':'help','type':a59_0x28f7c7(0x1e3),'description':a59_0x28f7c7(0x1e9)},{'name':'id','meowKey':'id','type':a59_0x28f7c7(0x1ce),'description':'Record\x20ID','hidden':!![]},{'name':'name','meowKey':a59_0x28f7c7(0x1d4),'type':a59_0x28f7c7(0x1ce),'description':a59_0x28f7c7(0x1d7),'hidden':!![]},{'name':a59_0x28f7c7(0x1d6),'meowKey':a59_0x28f7c7(0x1d6),'type':a59_0x28f7c7(0x1ce),'description':a59_0x28f7c7(0x1e7),'hidden':!![]},{'name':'params','meowKey':'params','type':a59_0x28f7c7(0x1ce),'description':'JSON\x20params\x20for\x20execute\x20commands','hidden':!![]},{'name':a59_0x28f7c7(0x1ef),'meowKey':'verbose','type':'boolean','description':a59_0x28f7c7(0x1cf),'hidden':!![]},{'name':a59_0x28f7c7(0x1da),'meowKey':a59_0x28f7c7(0x1da),'type':'boolean','description':a59_0x28f7c7(0x1ec),'hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set(['appcode',a59_0x28f7c7(0x1d8),'env',a59_0x28f7c7(0x1f7),'jq',a59_0x28f7c7(0x1ed),a59_0x28f7c7(0x1dd),a59_0x28f7c7(0x1f0),'ci']);export function buildMeowFlags(){const _0x13fd38=a59_0x28f7c7;return Object[_0x13fd38(0x1e1)](GLOBAL_FLAGS[_0x13fd38(0x1d5)](_0x7ac4dd=>[_0x7ac4dd['meowKey'],{'type':_0x7ac4dd[_0x13fd38(0x1f8)]}]));}
@@ -1 +1 @@
1
- const a60_0x3c5836=a60_0x1ad6;(function(_0x35b789,_0x3ec876){const _0x17cdc0=a60_0x1ad6,_0x12f3db=_0x35b789();while(!![]){try{const _0x1ca368=parseInt(_0x17cdc0(0x170))/0x1+parseInt(_0x17cdc0(0x167))/0x2*(parseInt(_0x17cdc0(0x162))/0x3)+-parseInt(_0x17cdc0(0x16e))/0x4+-parseInt(_0x17cdc0(0x16a))/0x5*(parseInt(_0x17cdc0(0x16c))/0x6)+parseInt(_0x17cdc0(0x163))/0x7*(parseInt(_0x17cdc0(0x161))/0x8)+-parseInt(_0x17cdc0(0x169))/0x9+-parseInt(_0x17cdc0(0x164))/0xa*(-parseInt(_0x17cdc0(0x16b))/0xb);if(_0x1ca368===_0x3ec876)break;else _0x12f3db['push'](_0x12f3db['shift']());}catch(_0x19654d){_0x12f3db['push'](_0x12f3db['shift']());}}}(a60_0x1185,0x3c456));function a60_0x1185(){const _0x1718e4=['production','3796524hGZQvL','95qYRJZp','5625554JFIsFj','66510fmBsgk','compress','1422336abfOAr','write','156951ZSKrby','21176kqsqCM','426249dWAyBn','371cVutgt','10aXLzsa','en-US','main','6ojeram'];a60_0x1185=function(){return _0x1718e4;};return a60_0x1185();}export const DEFAULT_APP_PROFILE_NAME=a60_0x3c5836(0x166);function a60_0x1ad6(_0x355eb3,_0x3aaae4){_0x355eb3=_0x355eb3-0x161;const _0x1185b9=a60_0x1185();let _0x1ad640=_0x1185b9[_0x355eb3];return _0x1ad640;}export const DEFAULT_CONFIG_VALUES={'env':a60_0x3c5836(0x168),'format':a60_0x3c5836(0x16d),'locale':a60_0x3c5836(0x165),'riskLevel':a60_0x3c5836(0x16f)};export const DEFAULT_COMMAND_OUTPUT_FORMAT=a60_0x3c5836(0x16d);
1
+ function a60_0x3994(_0x5e0a79,_0x2c0fd5){_0x5e0a79=_0x5e0a79-0x9c;const _0x11c980=a60_0x11c9();let _0x3994ab=_0x11c980[_0x5e0a79];return _0x3994ab;}const a60_0x19a17e=a60_0x3994;function a60_0x11c9(){const _0x56d3f1=['en-US','15256xwDwYc','296ebtQpJ','3bfoicl','9dmzTCH','422698rsxYqs','production','933vKkfnV','1896400PNDVsg','446700vXDRjR','767592dEWTpD','compress','7707909mwYBnr','write','65037QSduMu','main'];a60_0x11c9=function(){return _0x56d3f1;};return a60_0x11c9();}(function(_0x57d47f,_0xfe1d09){const _0x209fbb=a60_0x3994,_0x5f2d1c=_0x57d47f();while(!![]){try{const _0x2e677e=parseInt(_0x209fbb(0xab))/0x1*(-parseInt(_0x209fbb(0x9d))/0x2)+parseInt(_0x209fbb(0x9f))/0x3*(parseInt(_0x209fbb(0xa9))/0x4)+parseInt(_0x209fbb(0xa1))/0x5+parseInt(_0x209fbb(0xa2))/0x6+-parseInt(_0x209fbb(0xa6))/0x7*(-parseInt(_0x209fbb(0xaa))/0x8)+parseInt(_0x209fbb(0x9c))/0x9*(parseInt(_0x209fbb(0xa0))/0xa)+-parseInt(_0x209fbb(0xa4))/0xb;if(_0x2e677e===_0xfe1d09)break;else _0x5f2d1c['push'](_0x5f2d1c['shift']());}catch(_0x4e89e9){_0x5f2d1c['push'](_0x5f2d1c['shift']());}}}(a60_0x11c9,0x92fd3));export const DEFAULT_APP_PROFILE_NAME=a60_0x19a17e(0xa7);export const DEFAULT_CONFIG_VALUES={'env':a60_0x19a17e(0x9e),'format':a60_0x19a17e(0xa3),'locale':a60_0x19a17e(0xa8),'riskLevel':a60_0x19a17e(0xa5)};export const DEFAULT_COMMAND_OUTPUT_FORMAT=a60_0x19a17e(0xa3);
@@ -1 +1 @@
1
- (function(_0x1d3d3d,_0xd82cfe){const _0x2d0aca=a61_0x2261,_0x125038=_0x1d3d3d();while(!![]){try{const _0x58526c=-parseInt(_0x2d0aca(0x1b2))/0x1+parseInt(_0x2d0aca(0x1ab))/0x2*(-parseInt(_0x2d0aca(0x1ae))/0x3)+parseInt(_0x2d0aca(0x1ad))/0x4*(parseInt(_0x2d0aca(0x1b0))/0x5)+-parseInt(_0x2d0aca(0x1aa))/0x6+-parseInt(_0x2d0aca(0x1af))/0x7*(parseInt(_0x2d0aca(0x1ac))/0x8)+-parseInt(_0x2d0aca(0x1b1))/0x9+parseInt(_0x2d0aca(0x1a9))/0xa;if(_0x58526c===_0xd82cfe)break;else _0x125038['push'](_0x125038['shift']());}catch(_0x56d8c6){_0x125038['push'](_0x125038['shift']());}}}(a61_0xbf62,0x69364));import{PRODUCT_CONFIG}from'../constant/product.js';export const LOVRABET_NPM_PACKAGE_NAME=PRODUCT_CONFIG['npmPackageName'];export const LOVRABET_SKILL_SOURCE=PRODUCT_CONFIG['skillSource'];export const NPM_REGISTRY_BASE_URL=PRODUCT_CONFIG['npmRegistryBaseUrl'];function a61_0x2261(_0x21048d,_0x90cb6a){_0x21048d=_0x21048d-0x1a9;const _0xbf62b8=a61_0xbf62();let _0x22615b=_0xbf62b8[_0x21048d];return _0x22615b;}function a61_0xbf62(){const _0x9673da=['4781490uamADC','784370EVHdHJ','2095288zhWZTy','8sVoYOH','3yrHOvr','7oSTjsc','961280tSPDdD','7162353VbzxBW','545524odkTuo','28387880CTRTfC'];a61_0xbf62=function(){return _0x9673da;};return a61_0xbf62();}
1
+ const a61_0x4b4748=a61_0xa8a3;(function(_0x585a31,_0x2d25d4){const _0x1e252f=a61_0xa8a3,_0x5e6871=_0x585a31();while(!![]){try{const _0x2b3680=-parseInt(_0x1e252f(0x164))/0x1+parseInt(_0x1e252f(0x163))/0x2*(-parseInt(_0x1e252f(0x165))/0x3)+-parseInt(_0x1e252f(0x162))/0x4+parseInt(_0x1e252f(0x16c))/0x5*(parseInt(_0x1e252f(0x167))/0x6)+parseInt(_0x1e252f(0x16a))/0x7+-parseInt(_0x1e252f(0x168))/0x8*(parseInt(_0x1e252f(0x16d))/0x9)+parseInt(_0x1e252f(0x16b))/0xa;if(_0x2b3680===_0x2d25d4)break;else _0x5e6871['push'](_0x5e6871['shift']());}catch(_0x725e22){_0x5e6871['push'](_0x5e6871['shift']());}}}(a61_0x1683,0x282f5));import{PRODUCT_CONFIG}from'../constant/product.js';function a61_0xa8a3(_0x30b39e,_0x51843d){_0x30b39e=_0x30b39e-0x161;const _0x16837f=a61_0x1683();let _0xa8a364=_0x16837f[_0x30b39e];return _0xa8a364;}export const LOVRABET_NPM_PACKAGE_NAME=PRODUCT_CONFIG[a61_0x4b4748(0x166)];export const LOVRABET_SKILL_SOURCE=PRODUCT_CONFIG[a61_0x4b4748(0x169)];export const NPM_REGISTRY_BASE_URL=PRODUCT_CONFIG[a61_0x4b4748(0x161)];function a61_0x1683(){const _0xa76195=['npmRegistryBaseUrl','1211948UPFcCm','12WvRTTN','301893ZCyKHg','89715CVCNJo','npmPackageName','42JmStMa','8WkElyo','skillSource','1816220MWSrCd','7902880dKMPJQ','140945WsjbDc','2683476BCPdpA'];a61_0x1683=function(){return _0xa76195;};return a61_0x1683();}
@@ -1 +1 @@
1
- function a62_0x5900(_0x453685,_0x295a5b){_0x453685=_0x453685-0x7e;const _0x2586c1=a62_0x2586();let _0x590048=_0x2586c1[_0x453685];return _0x590048;}const a62_0x131868=a62_0x5900;(function(_0x33bd60,_0x5995ef){const _0x50434e=a62_0x5900,_0x3eba7f=_0x33bd60();while(!![]){try{const _0x3a8ad3=parseInt(_0x50434e(0x89))/0x1+parseInt(_0x50434e(0x85))/0x2+-parseInt(_0x50434e(0x8a))/0x3*(-parseInt(_0x50434e(0x8d))/0x4)+-parseInt(_0x50434e(0x80))/0x5*(-parseInt(_0x50434e(0x7f))/0x6)+parseInt(_0x50434e(0x8c))/0x7*(parseInt(_0x50434e(0x81))/0x8)+-parseInt(_0x50434e(0x91))/0x9*(parseInt(_0x50434e(0x88))/0xa)+parseInt(_0x50434e(0x87))/0xb*(-parseInt(_0x50434e(0x82))/0xc);if(_0x3a8ad3===_0x5995ef)break;else _0x3eba7f['push'](_0x3eba7f['shift']());}catch(_0x4ebea6){_0x3eba7f['push'](_0x3eba7f['shift']());}}}(a62_0x2586,0x8d406));import{getEnv,isProduction}from'../constant/env.js';import{PRODUCT_CONFIG}from'../constant/product.js';let customApiDomain,customUserDomain,customRuntimeDomain,customSkillHubDomain;function a62_0x2586(){const _0x503147=['runtime','9635607yaLtaK','userDomain','6QYMHea','3723280toAQCx','184eHuYUa','24WWZcuM','nonProduction','production','1503084egZmGR','apiDomain','11689634rBKCtB','10OJDLSq','901637hBvEJA','1689891mtwMba','skillhub','76132nwCgGm','8UPuLes','domains','api'];a62_0x2586=function(){return _0x503147;};return a62_0x2586();}export function initDomains(_0x26b657){const _0x36a8c7=a62_0x5900;customApiDomain=_0x26b657?.[_0x36a8c7(0x86)],customUserDomain=_0x26b657?.[_0x36a8c7(0x7e)],customRuntimeDomain=_0x26b657?.['runtimeDomain'],customSkillHubDomain=_0x26b657?.['skillHubDomain'];}export const getUserDomain=()=>customUserDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a62_0x131868(0x8e)][a62_0x131868(0x84)]['user']:PRODUCT_CONFIG[a62_0x131868(0x8e)][a62_0x131868(0x83)]['user']);export const getApiDomain=()=>customApiDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a62_0x131868(0x8e)][a62_0x131868(0x84)][a62_0x131868(0x8f)]:PRODUCT_CONFIG[a62_0x131868(0x8e)]['nonProduction'][a62_0x131868(0x8f)]);export const getRuntimeDomain=()=>customRuntimeDomain||(isProduction(getEnv())?PRODUCT_CONFIG['domains'][a62_0x131868(0x84)][a62_0x131868(0x90)]:PRODUCT_CONFIG['domains'][a62_0x131868(0x83)]['runtime']);export const getSkillHubDomain=()=>customSkillHubDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a62_0x131868(0x8e)][a62_0x131868(0x84)][a62_0x131868(0x8b)]:PRODUCT_CONFIG['domains'][a62_0x131868(0x83)]['skillhub']);
1
+ const a62_0x32c252=a62_0x44b7;function a62_0x44b7(_0x33bd37,_0x41af3b){_0x33bd37=_0x33bd37-0x1e1;const _0x1401fb=a62_0x1401();let _0x44b783=_0x1401fb[_0x33bd37];return _0x44b783;}(function(_0x4c3f78,_0x1f304e){const _0x36ef90=a62_0x44b7,_0x1653c5=_0x4c3f78();while(!![]){try{const _0x3d2854=-parseInt(_0x36ef90(0x1ea))/0x1*(-parseInt(_0x36ef90(0x1e4))/0x2)+-parseInt(_0x36ef90(0x1e1))/0x3+parseInt(_0x36ef90(0x1eb))/0x4+parseInt(_0x36ef90(0x1e8))/0x5*(-parseInt(_0x36ef90(0x1e9))/0x6)+parseInt(_0x36ef90(0x1ec))/0x7+parseInt(_0x36ef90(0x1f0))/0x8*(-parseInt(_0x36ef90(0x1f3))/0x9)+-parseInt(_0x36ef90(0x1e6))/0xa;if(_0x3d2854===_0x1f304e)break;else _0x1653c5['push'](_0x1653c5['shift']());}catch(_0x47ada3){_0x1653c5['push'](_0x1653c5['shift']());}}}(a62_0x1401,0x8444b));import{getEnv,isProduction}from'../constant/env.js';import{PRODUCT_CONFIG}from'../constant/product.js';let customApiDomain,customUserDomain,customRuntimeDomain,customSkillHubDomain;export function initDomains(_0x4c80d7){const _0x220453=a62_0x44b7;customApiDomain=_0x4c80d7?.[_0x220453(0x1e2)],customUserDomain=_0x4c80d7?.['userDomain'],customRuntimeDomain=_0x4c80d7?.['runtimeDomain'],customSkillHubDomain=_0x4c80d7?.[_0x220453(0x1e7)];}function a62_0x1401(){const _0x336a0f=['6850837LmHlnP','api','skillhub','nonProduction','1325288pmjABr','runtime','production','54VHzZqx','125601ryCEiU','apiDomain','user','170050XRcALv','domains','1045250rGSlQt','skillHubDomain','5hmDpwm','2001378bXREum','7aVdQjA','1767304rKutpr'];a62_0x1401=function(){return _0x336a0f;};return a62_0x1401();}export const getUserDomain=()=>customUserDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a62_0x32c252(0x1e5)][a62_0x32c252(0x1f2)][a62_0x32c252(0x1e3)]:PRODUCT_CONFIG['domains']['nonProduction'][a62_0x32c252(0x1e3)]);export const getApiDomain=()=>customApiDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a62_0x32c252(0x1e5)][a62_0x32c252(0x1f2)][a62_0x32c252(0x1ed)]:PRODUCT_CONFIG[a62_0x32c252(0x1e5)]['nonProduction'][a62_0x32c252(0x1ed)]);export const getRuntimeDomain=()=>customRuntimeDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a62_0x32c252(0x1e5)]['production'][a62_0x32c252(0x1f1)]:PRODUCT_CONFIG[a62_0x32c252(0x1e5)][a62_0x32c252(0x1ef)][a62_0x32c252(0x1f1)]);export const getSkillHubDomain=()=>customSkillHubDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a62_0x32c252(0x1e5)]['production'][a62_0x32c252(0x1ee)]:PRODUCT_CONFIG[a62_0x32c252(0x1e5)][a62_0x32c252(0x1ef)][a62_0x32c252(0x1ee)]);
@@ -1 +1 @@
1
- const a63_0x470ef4=a63_0x287a;(function(_0xbcda3c,_0x261fa2){const _0x5aa24a=a63_0x287a,_0x24d994=_0xbcda3c();while(!![]){try{const _0x11ac05=-parseInt(_0x5aa24a(0x16d))/0x1+parseInt(_0x5aa24a(0x178))/0x2*(-parseInt(_0x5aa24a(0x174))/0x3)+parseInt(_0x5aa24a(0x16f))/0x4*(-parseInt(_0x5aa24a(0x173))/0x5)+-parseInt(_0x5aa24a(0x177))/0x6*(parseInt(_0x5aa24a(0x179))/0x7)+parseInt(_0x5aa24a(0x176))/0x8*(parseInt(_0x5aa24a(0x17d))/0x9)+-parseInt(_0x5aa24a(0x17b))/0xa+parseInt(_0x5aa24a(0x16e))/0xb*(parseInt(_0x5aa24a(0x16c))/0xc);if(_0x11ac05===_0x261fa2)break;else _0x24d994['push'](_0x24d994['shift']());}catch(_0x2e2462){_0x24d994['push'](_0x24d994['shift']());}}}(a63_0x4c44,0xe8c4e));import{productEnv}from'../constant/product.js';function a63_0x4c44(){const _0x105772=['18938450PEEKzY','dev','13020291ElyhGL','24aJXBqn','1096178BTuHlW','25577057QdtHLG','4494676FrFeYp','daily','development','ENV','5rpuZjj','1411761jzQxyy','production','8cQoxbS','839058VSnnvU','2AqOWgK','28xwQOmF','online'];a63_0x4c44=function(){return _0x105772;};return a63_0x4c44();}export const RUNTIME_ENV_VALUES=[a63_0x470ef4(0x175),'development',a63_0x470ef4(0x170)];export function normalizeEnv(_0x2cd085){const _0x442275=a63_0x470ef4;return _0x2cd085===_0x442275(0x17a)?_0x442275(0x175):_0x2cd085;}export function isProduction(_0x33bdc0){const _0x570bbd=a63_0x470ef4;return normalizeEnv(_0x33bdc0)===_0x570bbd(0x175);}export function isDaily(_0x407c55){const _0x4e1bbc=a63_0x470ef4;return normalizeEnv(_0x407c55)===_0x4e1bbc(0x170);}export function isDev(_0x1f1083){const _0x113e47=a63_0x470ef4,_0xa31808=normalizeEnv(_0x1f1083);return _0xa31808===_0x113e47(0x171)||_0xa31808===_0x113e47(0x17c);}function a63_0x287a(_0x3e66e8,_0x2c28f2){_0x3e66e8=_0x3e66e8-0x16c;const _0x4c44e5=a63_0x4c44();let _0x287a22=_0x4c44e5[_0x3e66e8];return _0x287a22;}let env=normalizeEnv(productEnv(a63_0x470ef4(0x172))||a63_0x470ef4(0x175));export function getEnv(){return env;}export function initEnv(_0x5adaf9){env=normalizeEnv(_0x5adaf9);}
1
+ const a63_0x51927b=a63_0x47db;(function(_0x4ac3cc,_0x509272){const _0x1f80c9=a63_0x47db,_0x1d87e2=_0x4ac3cc();while(!![]){try{const _0x1708e3=parseInt(_0x1f80c9(0x103))/0x1*(-parseInt(_0x1f80c9(0x105))/0x2)+-parseInt(_0x1f80c9(0xff))/0x3*(parseInt(_0x1f80c9(0x10e))/0x4)+-parseInt(_0x1f80c9(0x10b))/0x5+-parseInt(_0x1f80c9(0x107))/0x6+parseInt(_0x1f80c9(0x109))/0x7*(-parseInt(_0x1f80c9(0x10c))/0x8)+-parseInt(_0x1f80c9(0x104))/0x9*(parseInt(_0x1f80c9(0x10d))/0xa)+-parseInt(_0x1f80c9(0x100))/0xb*(-parseInt(_0x1f80c9(0x101))/0xc);if(_0x1708e3===_0x509272)break;else _0x1d87e2['push'](_0x1d87e2['shift']());}catch(_0x5e5864){_0x1d87e2['push'](_0x1d87e2['shift']());}}}(a63_0x2b27,0x5de36));import{productEnv}from'../constant/product.js';function a63_0x2b27(){const _0x330e39=['36QPgYlc','458PfsduV','production','4098246elbmlZ','development','721KWwAUK','ENV','3012665CZrltR','46136dAxaBW','1423310vRvSIe','4XXKzbw','online','1834941RyJcmK','33jHEvhX','14061660ZEVvfB','daily','307UngwCZ'];a63_0x2b27=function(){return _0x330e39;};return a63_0x2b27();}export const RUNTIME_ENV_VALUES=[a63_0x51927b(0x106),a63_0x51927b(0x108),a63_0x51927b(0x102)];export function normalizeEnv(_0x235590){const _0x72d707=a63_0x51927b;return _0x235590===_0x72d707(0xfe)?_0x72d707(0x106):_0x235590;}export function isProduction(_0x65e78d){return normalizeEnv(_0x65e78d)==='production';}function a63_0x47db(_0x353f0b,_0x3aa22e){_0x353f0b=_0x353f0b-0xfe;const _0x2b2718=a63_0x2b27();let _0x47dbec=_0x2b2718[_0x353f0b];return _0x47dbec;}export function isDaily(_0x2d2c07){const _0x50e8b0=a63_0x51927b;return normalizeEnv(_0x2d2c07)===_0x50e8b0(0x102);}export function isDev(_0x209c47){const _0x177fe4=a63_0x51927b,_0x2346b6=normalizeEnv(_0x209c47);return _0x2346b6===_0x177fe4(0x108)||_0x2346b6==='dev';}let env=normalizeEnv(productEnv(a63_0x51927b(0x10a))||a63_0x51927b(0x106));export function getEnv(){return env;}export function initEnv(_0x2e6939){env=normalizeEnv(_0x2e6939);}
@@ -1 +1 @@
1
- const a64_0x4467fa=a64_0x5565;(function(_0x1c1511,_0x601fc0){const _0x1fef0d=a64_0x5565,_0xce2d69=_0x1c1511();while(!![]){try{const _0x1a9a8e=parseInt(_0x1fef0d(0x170))/0x1+-parseInt(_0x1fef0d(0x16b))/0x2*(-parseInt(_0x1fef0d(0x167))/0x3)+parseInt(_0x1fef0d(0x168))/0x4+-parseInt(_0x1fef0d(0x16d))/0x5*(parseInt(_0x1fef0d(0x16e))/0x6)+parseInt(_0x1fef0d(0x165))/0x7+-parseInt(_0x1fef0d(0x16c))/0x8*(-parseInt(_0x1fef0d(0x164))/0x9)+-parseInt(_0x1fef0d(0x171))/0xa*(parseInt(_0x1fef0d(0x166))/0xb);if(_0x1a9a8e===_0x601fc0)break;else _0xce2d69['push'](_0xce2d69['shift']());}catch(_0x392ac0){_0xce2d69['push'](_0xce2d69['shift']());}}}(a64_0xdd71,0x267a9));export const OUTPUT_FORMAT_VALUES=[a64_0x4467fa(0x16a),a64_0x4467fa(0x16f),a64_0x4467fa(0x169)];function a64_0x5565(_0x20110e,_0x4e9ae0){_0x20110e=_0x20110e-0x164;const _0xdd71f5=a64_0xdd71();let _0x556554=_0xdd71f5[_0x20110e];return _0x556554;}function a64_0xdd71(){const _0x988a0c=['451bwauyF','700647IcwvoT','166776ZVtwBX','compress','json','2OtDdNv','465208SToCIV','5fAHFil','1599018hljPoT','pretty','177546sxPMbr','49540mgnUYB','18oXzVZQ','406945AxIIIv'];a64_0xdd71=function(){return _0x988a0c;};return a64_0xdd71();}
1
+ const a64_0x1876dc=a64_0x2365;function a64_0x5b53(){const _0x1da7b5=['88sGmbNh','68vvzZbt','pretty','1143506rISiUc','json','1236294gemwBG','21625MhEuuK','3772936oMnpMm','33jivkTQ','1271316ShdUlJ','129715VmDSoc','compress','10ldmLJF'];a64_0x5b53=function(){return _0x1da7b5;};return a64_0x5b53();}(function(_0x5a83e6,_0x2ef785){const _0x726600=a64_0x2365,_0x1df6fd=_0x5a83e6();while(!![]){try{const _0x43c48f=parseInt(_0x726600(0x141))/0x1+-parseInt(_0x726600(0x137))/0x2*(parseInt(_0x726600(0x13f))/0x3)+-parseInt(_0x726600(0x138))/0x4*(parseInt(_0x726600(0x13d))/0x5)+-parseInt(_0x726600(0x140))/0x6+-parseInt(_0x726600(0x13a))/0x7+parseInt(_0x726600(0x13e))/0x8+parseInt(_0x726600(0x13c))/0x9*(parseInt(_0x726600(0x136))/0xa);if(_0x43c48f===_0x2ef785)break;else _0x1df6fd['push'](_0x1df6fd['shift']());}catch(_0x2268d7){_0x1df6fd['push'](_0x1df6fd['shift']());}}}(a64_0x5b53,0x46aa5));function a64_0x2365(_0x4f7c89,_0x2f194a){_0x4f7c89=_0x4f7c89-0x136;const _0x5b53f2=a64_0x5b53();let _0x2365be=_0x5b53f2[_0x4f7c89];return _0x2365be;}export const OUTPUT_FORMAT_VALUES=[a64_0x1876dc(0x13b),a64_0x1876dc(0x139),a64_0x1876dc(0x142)];
@@ -1 +1 @@
1
- const a65_0x41c581=a65_0x350c;(function(_0x13af33,_0x4c4603){const _0x107d6c=a65_0x350c,_0x21b1d5=_0x13af33();while(!![]){try{const _0x1d32fa=parseInt(_0x107d6c(0x10a))/0x1*(-parseInt(_0x107d6c(0xf8))/0x2)+-parseInt(_0x107d6c(0xf6))/0x3+parseInt(_0x107d6c(0xfb))/0x4+-parseInt(_0x107d6c(0xf5))/0x5*(parseInt(_0x107d6c(0xff))/0x6)+parseInt(_0x107d6c(0xf4))/0x7+-parseInt(_0x107d6c(0x109))/0x8*(-parseInt(_0x107d6c(0xed))/0x9)+parseInt(_0x107d6c(0x108))/0xa*(-parseInt(_0x107d6c(0xf3))/0xb);if(_0x1d32fa===_0x4c4603)break;else _0x21b1d5['push'](_0x21b1d5['shift']());}catch(_0x29a68f){_0x21b1d5['push'](_0x21b1d5['shift']());}}}(a65_0x2d69,0xb82fd));function a65_0x350c(_0x14dc57,_0x48628d){_0x14dc57=_0x14dc57-0xeb;const _0x2d6958=a65_0x2d69();let _0x350c47=_0x2d6958[_0x14dc57];return _0x350c47;}export const PRODUCT_CONFIG={'cliBinName':a65_0x41c581(0xfa),'cliDisplayName':a65_0x41c581(0xf1),'npmPackageName':a65_0x41c581(0x106),'skillSource':a65_0x41c581(0x100),'npmRegistryBaseUrl':a65_0x41c581(0x101),'envPrefix':a65_0x41c581(0xfc),'legacyEnvPrefixes':[a65_0x41c581(0xec)],'configFileNames':[a65_0x41c581(0x103),a65_0x41c581(0xf9)],'newConfigFileName':a65_0x41c581(0x103),'homeDirName':'.lovrabet','logFileName':a65_0x41c581(0xef),'invokeSource':a65_0x41c581(0xf0),'userCenterDisplayName':a65_0x41c581(0xf7),'skipNpxSkillsEnvSuffix':'SKIP_NPX_SKILLS','domains':{'production':{'user':'https://user.lovrabet.com','api':a65_0x41c581(0xee),'runtime':'https://runtime.lovrabet.com','skillhub':a65_0x41c581(0x102)},'nonProduction':{'user':a65_0x41c581(0xf2),'api':a65_0x41c581(0xfe),'runtime':a65_0x41c581(0x107),'skillhub':a65_0x41c581(0xfd)}},'accessKeyCreatePath':a65_0x41c581(0xeb)};export function productEnvName(_0x3e013c){const _0x184683=a65_0x41c581;return PRODUCT_CONFIG[_0x184683(0x104)]+'_'+_0x3e013c;}function a65_0x2d69(){const _0x5c8aa3=['@lovrabet/lovrabet-cli','https://daily-runtime.lovrabet.com','2365210fewWWH','88NbdcpS','1AnPeCj','/user/ak','RABETBASE','1233342xKJAHm','https://api.lovrabet.com','.lovrabet-runtime.log','cli:lovrabet-runtime','Lovrabet\x20Runtime\x20CLI','https://user-daily.lovrabet.com','11usyrFf','4794209yqCQCU','138495lcYWJM','4134738vUDnBp','Lovrabet\x20User\x20Center','366322QBIMXk','.lovrabetrc','lovrabet','2880556QDSSqt','LOVRABET','https://skills-daily.lovrabet.com','https://daily-api.lovrabet.com','78BMeyGk','lovrabet/lovrabet-cli','https://registry.npmjs.org','https://skills.lovrabet.com','.lovrabet.json','envPrefix','map'];a65_0x2d69=function(){return _0x5c8aa3;};return a65_0x2d69();}export function productEnvNames(_0x56507e){const _0x28ab22=a65_0x41c581;return[productEnvName(_0x56507e),...PRODUCT_CONFIG['legacyEnvPrefixes'][_0x28ab22(0x105)](_0x51d542=>_0x51d542+'_'+_0x56507e)];}export function productEnv(_0x5f0f12){for(const _0x2e2001 of productEnvNames(_0x5f0f12)){const _0x395c8a=process.env[_0x2e2001];if(_0x395c8a!==undefined)return _0x395c8a;}return undefined;}
1
+ const a65_0x16e0eb=a65_0x4d43;(function(_0x3da219,_0x1ed389){const _0x1e4c6f=a65_0x4d43,_0x197750=_0x3da219();while(!![]){try{const _0x50e23b=parseInt(_0x1e4c6f(0x179))/0x1+-parseInt(_0x1e4c6f(0x187))/0x2*(parseInt(_0x1e4c6f(0x17d))/0x3)+parseInt(_0x1e4c6f(0x185))/0x4+parseInt(_0x1e4c6f(0x18d))/0x5+parseInt(_0x1e4c6f(0x183))/0x6+parseInt(_0x1e4c6f(0x17b))/0x7*(parseInt(_0x1e4c6f(0x17a))/0x8)+-parseInt(_0x1e4c6f(0x194))/0x9;if(_0x50e23b===_0x1ed389)break;else _0x197750['push'](_0x197750['shift']());}catch(_0x15b38c){_0x197750['push'](_0x197750['shift']());}}}(a65_0x37b5,0x3530e));function a65_0x37b5(){const _0x41cefb=['https://skills.lovrabet.com','728912pQPJVb','lovrabet','202oXOobR','@lovrabet/lovrabet-cli','https://runtime.lovrabet.com','.lovrabet.json','Lovrabet\x20User\x20Center','Lovrabet\x20Runtime\x20CLI','1315475IbCVGE','.lovrabetrc','https://daily-runtime.lovrabet.com','.lovrabet','.lovrabet-runtime.log','https://skills-daily.lovrabet.com','cli:lovrabet-runtime','10079595Tguqrz','299503tIWgUu','3118456DOHSuV','7HDUANz','/user/ak','5367sdrnGH','https://registry.npmjs.org','https://daily-api.lovrabet.com','LOVRABET','map','https://api.lovrabet.com','2303286OylcNT'];a65_0x37b5=function(){return _0x41cefb;};return a65_0x37b5();}export const PRODUCT_CONFIG={'cliBinName':a65_0x16e0eb(0x186),'cliDisplayName':a65_0x16e0eb(0x18c),'npmPackageName':a65_0x16e0eb(0x188),'skillSource':'lovrabet/lovrabet-cli','npmRegistryBaseUrl':a65_0x16e0eb(0x17e),'envPrefix':a65_0x16e0eb(0x180),'legacyEnvPrefixes':['RABETBASE'],'configFileNames':[a65_0x16e0eb(0x18a),a65_0x16e0eb(0x18e)],'newConfigFileName':a65_0x16e0eb(0x18a),'homeDirName':a65_0x16e0eb(0x190),'logFileName':a65_0x16e0eb(0x191),'invokeSource':a65_0x16e0eb(0x193),'userCenterDisplayName':a65_0x16e0eb(0x18b),'skipNpxSkillsEnvSuffix':'SKIP_NPX_SKILLS','domains':{'production':{'user':'https://user.lovrabet.com','api':a65_0x16e0eb(0x182),'runtime':a65_0x16e0eb(0x189),'skillhub':a65_0x16e0eb(0x184)},'nonProduction':{'user':'https://user-daily.lovrabet.com','api':a65_0x16e0eb(0x17f),'runtime':a65_0x16e0eb(0x18f),'skillhub':a65_0x16e0eb(0x192)}},'accessKeyCreatePath':a65_0x16e0eb(0x17c)};export function productEnvName(_0xc7ec77){return PRODUCT_CONFIG['envPrefix']+'_'+_0xc7ec77;}function a65_0x4d43(_0x8c0dba,_0x1fe3d6){_0x8c0dba=_0x8c0dba-0x179;const _0x37b5ed=a65_0x37b5();let _0x4d434a=_0x37b5ed[_0x8c0dba];return _0x4d434a;}export function productEnvNames(_0x514d24){const _0x53b0ff=a65_0x16e0eb;return[productEnvName(_0x514d24),...PRODUCT_CONFIG['legacyEnvPrefixes'][_0x53b0ff(0x181)](_0x3adda5=>_0x3adda5+'_'+_0x514d24)];}export function productEnv(_0x336c3b){for(const _0x5d577d of productEnvNames(_0x336c3b)){const _0x591ba7=process.env[_0x5d577d];if(_0x591ba7!==undefined)return _0x591ba7;}return undefined;}
@@ -1 +1 @@
1
- const a66_0x45c620=a66_0x5e4c;function a66_0x5e4c(_0x558b64,_0x1d1242){_0x558b64=_0x558b64-0xc7;const _0x5bec18=a66_0x5bec();let _0x5e4c06=_0x5bec18[_0x558b64];return _0x5e4c06;}(function(_0x1a99f2,_0x3eafe2){const _0x76c573=a66_0x5e4c,_0x5d88c9=_0x1a99f2();while(!![]){try{const _0x35fa91=-parseInt(_0x76c573(0xce))/0x1*(parseInt(_0x76c573(0xd4))/0x2)+-parseInt(_0x76c573(0xd0))/0x3*(parseInt(_0x76c573(0xc8))/0x4)+-parseInt(_0x76c573(0xcc))/0x5*(-parseInt(_0x76c573(0xca))/0x6)+-parseInt(_0x76c573(0xd2))/0x7+parseInt(_0x76c573(0xc9))/0x8*(parseInt(_0x76c573(0xc7))/0x9)+parseInt(_0x76c573(0xd3))/0xa+-parseInt(_0x76c573(0xd1))/0xb*(parseInt(_0x76c573(0xcb))/0xc);if(_0x35fa91===_0x3eafe2)break;else _0x5d88c9['push'](_0x5d88c9['shift']());}catch(_0xcd93e5){_0x5d88c9['push'](_0x5d88c9['shift']());}}}(a66_0x5bec,0xe0b8e));function a66_0x5bec(){const _0x2691a4=['9031192xXkrWc','42WFZkUA','3724428wGNsbA','568975icezDG','write','2OCfPhM','read','249WGQNzk','22vBhQQA','4197501tbMBvP','12309280hVEbIq','866066TCpJrc','9pczjeh','7204nQAPQD'];a66_0x5bec=function(){return _0x2691a4;};return a66_0x5bec();}export const RISK_LEVEL_VALUES=[a66_0x45c620(0xcf),a66_0x45c620(0xcd),'high-risk-write'];
1
+ const a66_0x5bf91b=a66_0x1c3a;(function(_0x4023aa,_0xb3371a){const _0x224e2a=a66_0x1c3a,_0x25fa4b=_0x4023aa();while(!![]){try{const _0x5b12e8=parseInt(_0x224e2a(0x1af))/0x1+-parseInt(_0x224e2a(0x1ac))/0x2*(-parseInt(_0x224e2a(0x1b8))/0x3)+-parseInt(_0x224e2a(0x1b6))/0x4+-parseInt(_0x224e2a(0x1b5))/0x5+-parseInt(_0x224e2a(0x1b3))/0x6*(-parseInt(_0x224e2a(0x1b1))/0x7)+-parseInt(_0x224e2a(0x1b0))/0x8+parseInt(_0x224e2a(0x1ad))/0x9*(parseInt(_0x224e2a(0x1ae))/0xa);if(_0x5b12e8===_0xb3371a)break;else _0x25fa4b['push'](_0x25fa4b['shift']());}catch(_0x5bc63f){_0x25fa4b['push'](_0x25fa4b['shift']());}}}(a66_0x2ff7,0x965a8));function a66_0x1c3a(_0x25ee36,_0x110a90){_0x25ee36=_0x25ee36-0x1ac;const _0x2ff794=a66_0x2ff7();let _0x1c3aa9=_0x2ff794[_0x25ee36];return _0x1c3aa9;}export const RISK_LEVEL_VALUES=[a66_0x5bf91b(0x1b2),a66_0x5bf91b(0x1b4),a66_0x5bf91b(0x1b7)];function a66_0x2ff7(){const _0x58a5f0=['1094620BOKqAw','177193mcctXQ','4270712NMgyob','7UWkGhF','read','5333442SVvBKD','write','1780815VgLiOu','4147312KjMUZY','high-risk-write','40179SGYdSL','8LZliUO','117LXJIXz'];a66_0x2ff7=function(){return _0x58a5f0;};return a66_0x2ff7();}
@@ -1 +1 @@
1
- function a67_0x5893(_0x46f402,_0x408b64){_0x46f402=_0x46f402-0xef;const _0x75f5d7=a67_0x75f5();let _0x589372=_0x75f5d7[_0x46f402];return _0x589372;}function a67_0x75f5(){const _0x504b96=['2093046GQtayk','14191128OwCuKy','12DfdYel','21eSLagD','domains','user','3114680hzESqG','6tdDMSe','89699bmKTYn','1421169tjRZBI','8489035fzNijI','79800570HTIwai','accessKeyCreatePath','production'];a67_0x75f5=function(){return _0x504b96;};return a67_0x75f5();}const a67_0x22c70b=a67_0x5893;(function(_0x5a3c2f,_0x40d5b6){const _0x50a0a2=a67_0x5893,_0x1b869d=_0x5a3c2f();while(!![]){try{const _0x4397fa=-parseInt(_0x50a0a2(0xf5))/0x1+-parseInt(_0x50a0a2(0xfb))/0x2+-parseInt(_0x50a0a2(0xf6))/0x3*(parseInt(_0x50a0a2(0xef))/0x4)+parseInt(_0x50a0a2(0xf7))/0x5*(-parseInt(_0x50a0a2(0xf4))/0x6)+parseInt(_0x50a0a2(0xf0))/0x7*(-parseInt(_0x50a0a2(0xf3))/0x8)+-parseInt(_0x50a0a2(0xfc))/0x9+parseInt(_0x50a0a2(0xf8))/0xa;if(_0x4397fa===_0x40d5b6)break;else _0x1b869d['push'](_0x1b869d['shift']());}catch(_0x1862cd){_0x1b869d['push'](_0x1b869d['shift']());}}}(a67_0x75f5,0xef45e));import{PRODUCT_CONFIG}from'../constant/product.js';export const USER_ACCESS_KEY_CREATE_URL=''+PRODUCT_CONFIG[a67_0x22c70b(0xf1)][a67_0x22c70b(0xfa)][a67_0x22c70b(0xf2)]+PRODUCT_CONFIG[a67_0x22c70b(0xf9)];
1
+ const a67_0x2dd2e5=a67_0x372d;function a67_0x26cf(){const _0x146ef1=['1445748HwPDdS','56ofMoMw','user','accessKeyCreatePath','48921hxvfUW','400482IyRRMu','domains','34jcLiJB','21AGWrCE','33507BZKAUi','1999945hmWsbG','14799250gOyjvT','1183530uxVCFk','production'];a67_0x26cf=function(){return _0x146ef1;};return a67_0x26cf();}(function(_0x260535,_0x4b12fb){const _0x3504b2=a67_0x372d,_0x18676e=_0x260535();while(!![]){try{const _0x14d377=-parseInt(_0x3504b2(0x186))/0x1+parseInt(_0x3504b2(0x184))/0x2*(-parseInt(_0x3504b2(0x181))/0x3)+-parseInt(_0x3504b2(0x18b))/0x4+parseInt(_0x3504b2(0x187))/0x5+-parseInt(_0x3504b2(0x189))/0x6*(parseInt(_0x3504b2(0x185))/0x7)+-parseInt(_0x3504b2(0x18c))/0x8*(parseInt(_0x3504b2(0x182))/0x9)+parseInt(_0x3504b2(0x188))/0xa;if(_0x14d377===_0x4b12fb)break;else _0x18676e['push'](_0x18676e['shift']());}catch(_0x563196){_0x18676e['push'](_0x18676e['shift']());}}}(a67_0x26cf,0x4a574));function a67_0x372d(_0x15cf64,_0x16a197){_0x15cf64=_0x15cf64-0x17f;const _0x26cf70=a67_0x26cf();let _0x372d08=_0x26cf70[_0x15cf64];return _0x372d08;}import{PRODUCT_CONFIG}from'../constant/product.js';export const USER_ACCESS_KEY_CREATE_URL=''+PRODUCT_CONFIG[a67_0x2dd2e5(0x183)][a67_0x2dd2e5(0x18a)][a67_0x2dd2e5(0x17f)]+PRODUCT_CONFIG[a67_0x2dd2e5(0x180)];
package/lib/context.js CHANGED
@@ -1 +1 @@
1
- const a68_0x4994ff=a68_0xd677;(function(_0x765204,_0x944dee){const _0x4f2273=a68_0xd677,_0x3824ed=_0x765204();while(!![]){try{const _0x2c45f1=-parseInt(_0x4f2273(0x1df))/0x1*(parseInt(_0x4f2273(0x197))/0x2)+parseInt(_0x4f2273(0x1ad))/0x3*(parseInt(_0x4f2273(0x196))/0x4)+-parseInt(_0x4f2273(0x1d3))/0x5*(parseInt(_0x4f2273(0x1c5))/0x6)+parseInt(_0x4f2273(0x1c1))/0x7*(parseInt(_0x4f2273(0x1e1))/0x8)+parseInt(_0x4f2273(0x1a6))/0x9+-parseInt(_0x4f2273(0x19c))/0xa+parseInt(_0x4f2273(0x1c3))/0xb*(parseInt(_0x4f2273(0x1a1))/0xc);if(_0x2c45f1===_0x944dee)break;else _0x3824ed['push'](_0x3824ed['shift']());}catch(_0x2022dd){_0x3824ed['push'](_0x3824ed['shift']());}}}(a68_0x7a35,0xa36b8));import{readFileSync,existsSync,mkdirSync,renameSync,unlinkSync,writeFileSync}from'node:fs';function a68_0x7a35(){const _0x5ca82d=['app','daily','object','skillHubDomain','accessKey','./constant/domain.js','463902KsuCRY','authRequired','string','EPERM','raw','riskLevel','explicit','configFileNames','defaultApp','online','find','message','trim','.tmp','true','join','local-alias','production','error','./constant/env.js','903742GhHPwK','userDomain','11BMjbun','missing','6mVipAs','host','values','top-level','format','locale','APPCODE','slice','argv','stringify','PAGE_SIZE','development','EXDEV','env','1694505vyXSCU','nonInteractive','inherit','empty','runtimeDomain','newConfigFileName','projectConfig','EACCES','maxRisk','code','parse','isTTY','6jfuTLV','pageSize','32DAFmCX','stdin','setRawMode','ACCESS_KEY','global','apps','appcode','8rbfiOQ','105804ezAkzl','project','utf8','APP','write','10678440uzleIT','globalConfig','apiDomain','setRawCommand','stdout','9089196UsiIQc','VERBOSE','cwd','read','cache','7293600KwrjEX'];a68_0x7a35=function(){return _0x5ca82d;};return a68_0x7a35();}import{resolve,dirname}from'node:path';import{homedir}from'node:os';import{logger}from'./utils/logger.js';import{CliErrors}from'./errors.js';import{CLI_BIN_NAME}from'./constant/cli.js';import{PRODUCT_CONFIG,productEnv,productEnvNames}from'./constant/product.js';import{DEFAULT_CONFIG_VALUES}from'./constant/defaults.js';import{normalizeEnv,isDaily,isDev}from'./constant/env.js';import{normalizeLegacyOutputFormat}from'./framework/types.js';import{resolveCachedAppCode}from'./commands/app/cache.js';export{AUTH_MODE,isAuthMode}from'./constant/auth-mode.js';const CONFIG_NAMES=PRODUCT_CONFIG[a68_0x4994ff(0x1b4)];export const NEW_CONFIG_NAME=PRODUCT_CONFIG[a68_0x4994ff(0x1d8)];function a68_0xd677(_0x50fbea,_0x5c73fa){_0x50fbea=_0x50fbea-0x193;const _0x7a359d=a68_0x7a35();let _0xd677d9=_0x7a359d[_0x50fbea];return _0xd677d9;}function resolveConfigPath(_0x34e3d6){for(const _0x59a31e of CONFIG_NAMES){const _0xd0d698=resolve(_0x34e3d6,_0x59a31e);if(existsSync(_0xd0d698))return _0xd0d698;}return undefined;}export function resolveWriteConfigPath(_0x5449b0){const _0x14d6f9=a68_0x4994ff,_0x588238=_0x5449b0===_0x14d6f9(0x198)?process[_0x14d6f9(0x1a3)]():homedir(),_0x44ee5d=resolveConfigPath(_0x588238);return _0x44ee5d??resolve(_0x588238,NEW_CONFIG_NAME);}export function readConfigFile(_0xc6b05a){const _0x4ca0df=a68_0x4994ff;try{if(existsSync(_0xc6b05a)){const _0x3ec5c4=readFileSync(_0xc6b05a,{'encoding':_0x4ca0df(0x199)});if(_0x3ec5c4){const _0x37e8a8=JSON[_0x4ca0df(0x1dd)](_0x3ec5c4);return migrateOnlineEnv(_0xc6b05a,_0x37e8a8),_0x37e8a8;}}}catch{}return{};}function migrateOnlineEnv(_0x418d5b,_0x503475){const _0x18d5b0=a68_0x4994ff;let _0x566c22=![];_0x503475[_0x18d5b0(0x1d2)]===_0x18d5b0(0x1b6)&&(_0x503475[_0x18d5b0(0x1d2)]=_0x18d5b0(0x1be),_0x566c22=!![]);if(_0x503475[_0x18d5b0(0x194)]&&typeof _0x503475[_0x18d5b0(0x194)]===_0x18d5b0(0x1a9))for(const _0xd8bd11 of Object[_0x18d5b0(0x1c7)](_0x503475[_0x18d5b0(0x194)])){_0xd8bd11&&_0xd8bd11[_0x18d5b0(0x1d2)]===_0x18d5b0(0x1b6)&&(_0xd8bd11[_0x18d5b0(0x1d2)]=_0x18d5b0(0x1be),_0x566c22=!![]);}if(_0x566c22)try{writeConfigFile(_0x418d5b,_0x503475);}catch{}}export function writeConfigFile(_0x314987,_0x69e2a3){const _0x2b6d94=a68_0x4994ff,_0x382f1a=dirname(_0x314987);!existsSync(_0x382f1a)&&mkdirSync(_0x382f1a,{'recursive':!![]});const _0xd35eb9=_0x314987+_0x2b6d94(0x1ba);try{writeFileSync(_0xd35eb9,JSON[_0x2b6d94(0x1ce)](_0x69e2a3,null,0x2)+'\x0a',{'encoding':_0x2b6d94(0x199),'mode':0x180});try{renameSync(_0xd35eb9,_0x314987);}catch(_0x3ad236){if(_0x3ad236[_0x2b6d94(0x1dc)]===_0x2b6d94(0x1b0)||_0x3ad236[_0x2b6d94(0x1dc)]===_0x2b6d94(0x1d1)||_0x3ad236[_0x2b6d94(0x1dc)]===_0x2b6d94(0x1da)){writeFileSync(_0x314987,JSON[_0x2b6d94(0x1ce)](_0x69e2a3,null,0x2)+'\x0a',{'encoding':'utf8'});try{unlinkSync(_0xd35eb9);}catch{}}else throw _0x3ad236;}}catch(_0x22f304){try{unlinkSync(_0xd35eb9);}catch{}throw _0x22f304;}}export function isNonInteractiveMode(_0x5eb666){const _0x45b2e1=a68_0x4994ff;return!!(_0x5eb666[_0x45b2e1(0x1d4)]||_0x5eb666['ci']||productEnvNames('CI')['some'](_0x22b2d2=>process.env[_0x22b2d2]===_0x45b2e1(0x1bb))||process.env.CI==='true'||!process[_0x45b2e1(0x1a0)][_0x45b2e1(0x1de)]||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x417d51=a68_0x4994ff;if(!process[_0x417d51(0x1e2)][_0x417d51(0x1de)])return![];try{const _0x13459d=process[_0x417d51(0x1e2)]['isRaw'];return process[_0x417d51(0x1e2)][_0x417d51(0x1e3)](!![]),process[_0x417d51(0x1e2)]['setRawMode'](_0x13459d??![]),!![];}catch{return![];}}export async function createContext(_0x29290b){const _0x3aa74b=a68_0x4994ff,_0x2c1896=readRawConfig(),_0x206315=buildConfig(_0x2c1896,_0x29290b);await initGlobalEnvironment(_0x206315);const {getUserDomain:_0x464e37,getApiDomain:_0x5ba37d}=await import('./constant/domain.js'),_0x1280f6={'apiDomain':_0x5ba37d(),'userDomain':_0x464e37()},_0x2f9016=await buildAuth(_0x206315);logger['setLogPath'](process[_0x3aa74b(0x1a3)]());const _0x3b83d4=(CLI_BIN_NAME+'\x20'+process[_0x3aa74b(0x1cd)][_0x3aa74b(0x1cc)](0x2)[_0x3aa74b(0x1bc)]('\x20'))[_0x3aa74b(0x1b9)]();logger[_0x3aa74b(0x19f)](_0x3b83d4);const _0x554b05=isNonInteractiveMode(_0x29290b);return{'config':_0x206315,'auth':_0x2f9016,'logger':logger,'env':_0x1280f6,'nonInteractive':_0x554b05};}export function buildConfigFromFlags(_0x989105){return buildConfig(readRawConfig(),_0x989105);}export function getLocalAppAliases(_0x479bc9){const _0x5e20f4=a68_0x4994ff;return _0x479bc9[_0x5e20f4(0x194)]&&typeof _0x479bc9['apps']==='object'?_0x479bc9[_0x5e20f4(0x194)]:{};}export function resolveLocalAppAliasCode(_0x3a3dc9,_0x25b897){const _0x4a11b4=a68_0x4994ff;if(!_0x25b897)return undefined;const _0x5f340e=getLocalAppAliases(_0x3a3dc9)[_0x25b897],_0x22cc6c=_0x5f340e?.['appcode'];return typeof _0x22cc6c==='string'&&_0x22cc6c[_0x4a11b4(0x1b9)]()?_0x22cc6c[_0x4a11b4(0x1b9)]():undefined;}export function readAppCodeFromConfig(){const _0x1d4ef4=a68_0x4994ff,_0x3f9f42=readRawConfig(),_0xd37e9d=_0x3f9f42[_0x1d4ef4(0x195)]??_0x3f9f42[_0x1d4ef4(0x1a7)];if(typeof _0xd37e9d===_0x1d4ef4(0x1af)&&_0xd37e9d['trim']())return _0xd37e9d[_0x1d4ef4(0x1b9)]();const _0x5ad931=resolveLocalAppAliasCode(_0x3f9f42,typeof _0x3f9f42[_0x1d4ef4(0x1b5)]===_0x1d4ef4(0x1af)?_0x3f9f42['defaultApp']:undefined);if(_0x5ad931)return _0x5ad931;const _0x1f93e4=normalizeEnv(String(_0x3f9f42['env']||_0x1d4ef4(0x1be))),_0x15fde8=isDaily(_0x1f93e4)?_0x1d4ef4(0x1a8):isDev(_0x1f93e4)?'development':'production',_0x27808b=resolveCachedAppCode(typeof _0x3f9f42['defaultApp']===_0x1d4ef4(0x1af)?_0x3f9f42['defaultApp']:undefined,_0x15fde8,typeof _0x3f9f42[_0x1d4ef4(0x1ab)]===_0x1d4ef4(0x1af)?_0x3f9f42[_0x1d4ef4(0x1ab)]:undefined);if(_0x27808b)return _0x27808b;const _0x2a77ee=Object['values'](getLocalAppAliases(_0x3f9f42))[_0x1d4ef4(0x1b7)](_0x2152fe=>_0x2152fe?.['appcode']);return typeof _0x2a77ee?.[_0x1d4ef4(0x195)]==='string'&&_0x2a77ee['appcode']['trim']()?_0x2a77ee['appcode']['trim']():undefined;}export function readScopedConfig(_0x2a10ab){const _0x577016=a68_0x4994ff,_0x492b86=_0x2a10ab[_0x577016(0x193)]?_0x577016(0x193):_0x577016(0x198);return readConfigFile(resolveWriteConfigPath(_0x492b86));}export function writeScopedConfig(_0x206d7a,_0x4adc79){const _0x2a6fcf=a68_0x4994ff,_0x12c468=_0x4adc79[_0x2a6fcf(0x193)]?'global':_0x2a6fcf(0x198);writeConfigFile(resolveWriteConfigPath(_0x12c468),_0x206d7a);}export async function initGlobalEnvironment(_0x3d393f){const _0x469b1e=a68_0x4994ff,{initEnv:_0x285ec0}=await import(_0x469b1e(0x1c0));_0x285ec0(_0x3d393f[_0x469b1e(0x1d2)]);const {initDomains:_0x510453}=await import(_0x469b1e(0x1ac));_0x510453({'apiDomain':_0x3d393f[_0x469b1e(0x1b1)][_0x469b1e(0x19e)]||_0x3d393f[_0x469b1e(0x1b1)][_0x469b1e(0x1c6)]||undefined,'userDomain':_0x3d393f[_0x469b1e(0x1b1)][_0x469b1e(0x1c2)]||undefined,'runtimeDomain':_0x3d393f['raw'][_0x469b1e(0x1d7)]||undefined,'skillHubDomain':_0x3d393f['raw'][_0x469b1e(0x1aa)]||undefined});}export function getProjectConfigPath(){const _0x1ae431=a68_0x4994ff;return resolveConfigPath(process[_0x1ae431(0x1a3)]());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function inspectCliConfigJsonFile(_0x2f1657){const _0x57b6cd=a68_0x4994ff;if(!existsSync(_0x2f1657))return{'status':_0x57b6cd(0x1c4)};try{const _0x41949d=readFileSync(_0x2f1657,{'encoding':_0x57b6cd(0x199)});if(!_0x41949d?.[_0x57b6cd(0x1b9)]())return{'status':_0x57b6cd(0x1d6)};const _0x354a5b=JSON['parse'](_0x41949d);return{'status':'ok','data':_0x354a5b};}catch(_0x1fbff0){return{'status':_0x57b6cd(0x1bf),'message':_0x1fbff0 instanceof Error?_0x1fbff0[_0x57b6cd(0x1b8)]:String(_0x1fbff0)};}}export function loadRawConfigLayers(_0x3f7d6a){const _0x3849be=a68_0x4994ff;let _0x566559={},_0x17f135={},_0x475113,_0xaa0eb5;try{_0x475113=resolveConfigPath(homedir());if(_0x475113){const _0x456306=readFileSync(_0x475113,{'encoding':_0x3849be(0x199)});if(_0x456306)_0x566559=JSON['parse'](_0x456306);}}catch{}try{const _0x3f2163=_0x3f7d6a||process[_0x3849be(0x1a3)]();_0xaa0eb5=resolveConfigPath(_0x3f2163);if(_0xaa0eb5){const _0x411ead=readFileSync(_0xaa0eb5,{'encoding':'utf8'});if(_0x411ead)_0x17f135=JSON[_0x3849be(0x1dd)](_0x411ead);}}catch{}return{'globalPath':_0x475113,'projectPath':_0xaa0eb5,'globalConfig':_0x566559,'projectConfig':_0x17f135};}function mergeRawConfigLayers(_0x3bede1){const _0x34d6cd=a68_0x4994ff,{globalConfig:_0x21052,projectConfig:_0x5eeade}=_0x3bede1;if(_0x5eeade[_0x34d6cd(0x1d5)]===![]){const _0x7dfe9={..._0x5eeade};return delete _0x7dfe9[_0x34d6cd(0x1d5)],_0x7dfe9;}const _0x18c58a={..._0x21052,..._0x5eeade};if(_0x34d6cd(0x1b5)in _0x5eeade)_0x18c58a['defaultApp']=_0x5eeade[_0x34d6cd(0x1b5)];else _0x21052[_0x34d6cd(0x1b5)]&&(_0x18c58a[_0x34d6cd(0x1b5)]=_0x21052[_0x34d6cd(0x1b5)]);return _0x18c58a;}export function isInProject(){return!!getProjectConfigPath();}export function readRawConfig(_0x1854f7){return mergeRawConfigLayers(loadRawConfigLayers(_0x1854f7));}export function readRawConfigWithLayers(_0x1fa455){const _0x332099=loadRawConfigLayers(_0x1fa455);return{'config':mergeRawConfigLayers(_0x332099),'layers':_0x332099};}export function resolveDefaultAppSource(_0x2286be){const _0x170ec3=a68_0x4994ff;if(_0x170ec3(0x1b5)in _0x2286be['projectConfig'])return'project';if(_0x2286be[_0x170ec3(0x1d9)][_0x170ec3(0x1d5)]===![])return null;if(_0x2286be[_0x170ec3(0x19d)][_0x170ec3(0x1b5)])return'global';return null;}function buildConfig(_0x5bc8cf,_0x4f9256){const _0x2f1c88=a68_0x4994ff,_0x17c4ee=_0x5bc8cf[_0x2f1c88(0x1b5)]||undefined,_0x32b34a=_0x4f9256['app']||env(_0x2f1c88(0x19a))||undefined,_0x3f36f8=_0x32b34a||_0x17c4ee||undefined,_0x453342=env(_0x2f1c88(0x1e4))||_0x5bc8cf[_0x2f1c88(0x1ab)]||undefined,_0x1acc32=_0x4f9256['env']||env('ENV')||_0x5bc8cf[_0x2f1c88(0x1d2)]||DEFAULT_CONFIG_VALUES[_0x2f1c88(0x1d2)],_0x105e0c=normalizeEnv(String(_0x1acc32)),_0x43d9a9=isDaily(_0x105e0c)?_0x2f1c88(0x1a8):isDev(_0x105e0c)?_0x2f1c88(0x1d0):_0x2f1c88(0x1be),_0xb37197=typeof _0x4f9256[_0x2f1c88(0x195)]===_0x2f1c88(0x1af)?_0x4f9256[_0x2f1c88(0x195)]:undefined,_0x335f2c=env(_0x2f1c88(0x1cb)),_0x32affa=_0x32b34a?undefined:_0x5bc8cf[_0x2f1c88(0x195)]||_0x5bc8cf['app']||undefined,_0x15c52a=_0x32b34a||(_0x32affa?undefined:_0x17c4ee),_0x46a643=resolveLocalAppAliasCode(_0x5bc8cf,_0x15c52a),_0x16fd8d=resolveCachedAppCode(_0x15c52a,_0x43d9a9,_0x453342),_0x11591d=_0xb37197||_0x335f2c||_0x32affa||_0x46a643||_0x16fd8d||undefined,_0x1f9745=_0xb37197?_0x2f1c88(0x1b3):_0x335f2c?_0x2f1c88(0x1d2):_0x32affa?_0x2f1c88(0x1c8):_0x46a643?_0x2f1c88(0x1bd):_0x16fd8d?_0x2f1c88(0x1a5):undefined,_0x249eb5=_0x5bc8cf[_0x2f1c88(0x1ca)]||DEFAULT_CONFIG_VALUES[_0x2f1c88(0x1ca)],_0x210ae0=undefined,_0x3e0907=_0x4f9256[_0x2f1c88(0x1c9)]||env('FORMAT')||_0x5bc8cf[_0x2f1c88(0x1c9)],_0x8d75bb=normalizeLegacyOutputFormat(_0x3e0907),_0x11e997=env(_0x2f1c88(0x1cf))||_0x5bc8cf[_0x2f1c88(0x1e0)],_0x394194=_0x11e997?Number(_0x11e997)||undefined:undefined,_0x276a6f=_0x5bc8cf[_0x2f1c88(0x1b2)]||_0x5bc8cf[_0x2f1c88(0x1db)],_0x427cd1=_0x276a6f===_0x2f1c88(0x1a4)||_0x276a6f===_0x2f1c88(0x19b)||_0x276a6f==='high-risk-write'?_0x276a6f:DEFAULT_CONFIG_VALUES[_0x2f1c88(0x1b2)],_0xb1e45=env(_0x2f1c88(0x1a2)),_0x2f4590=_0xb1e45==='1'||_0xb1e45===_0x2f1c88(0x1bb);return{'appCode':typeof _0x11591d===_0x2f1c88(0x1af)&&_0x11591d[_0x2f1c88(0x1b9)]()?_0x11591d[_0x2f1c88(0x1b9)]():undefined,'appCodeSource':_0x1f9745,'env':_0x43d9a9,'locale':_0x249eb5,'cookie':_0x210ae0,'accessKey':_0x453342,'format':_0x8d75bb,'pageSize':_0x394194,'riskLevel':_0x427cd1,'verbose':_0x2f4590,'defaultApp':_0x17c4ee,'currentApp':typeof _0x3f36f8===_0x2f1c88(0x1af)?_0x3f36f8:undefined,'raw':_0x5bc8cf};}function env(_0x7bbba4){return productEnv(_0x7bbba4);}async function buildAuth(_0x2c3c67){const _0x2b8e30='',_0x3215e3=!!_0x2c3c67['accessKey'];return{'cookie':_0x2b8e30,'isLoggedIn':_0x3215e3,async 'getOrLogin'(){const _0x546ec2=a68_0xd677;if(_0x3215e3)return _0x2b8e30;throw CliErrors[_0x546ec2(0x1ae)]();}};}
1
+ const a68_0x485365=a68_0xbc65;(function(_0x1f244f,_0x515473){const _0x4c5626=a68_0xbc65,_0x2c95da=_0x1f244f();while(!![]){try{const _0x35eca7=parseInt(_0x4c5626(0x176))/0x1+parseInt(_0x4c5626(0x15e))/0x2+parseInt(_0x4c5626(0x143))/0x3*(parseInt(_0x4c5626(0x14b))/0x4)+parseInt(_0x4c5626(0x168))/0x5*(-parseInt(_0x4c5626(0x170))/0x6)+parseInt(_0x4c5626(0x148))/0x7*(-parseInt(_0x4c5626(0x16b))/0x8)+-parseInt(_0x4c5626(0x16d))/0x9*(-parseInt(_0x4c5626(0x177))/0xa)+-parseInt(_0x4c5626(0x154))/0xb;if(_0x35eca7===_0x515473)break;else _0x2c95da['push'](_0x2c95da['shift']());}catch(_0x141438){_0x2c95da['push'](_0x2c95da['shift']());}}}(a68_0x43a1,0x2b77b));import{readFileSync,existsSync,mkdirSync,renameSync,unlinkSync,writeFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{homedir}from'node:os';import{logger}from'./utils/logger.js';import{CliErrors}from'./errors.js';import{CLI_BIN_NAME}from'./constant/cli.js';import{PRODUCT_CONFIG,productEnv,productEnvNames}from'./constant/product.js';import{DEFAULT_CONFIG_VALUES}from'./constant/defaults.js';import{normalizeEnv,isDaily,isDev}from'./constant/env.js';import{normalizeLegacyOutputFormat}from'./framework/types.js';function a68_0x43a1(){const _0x4d5390=['ACCESS_KEY','find','./constant/domain.js','missing','utf8','explicit','./constant/env.js','defaultApp','riskLevel','project','3CNCxuk','newConfigFileName','userDomain','accessKey','production','1729TdUXnW','online','locale','191336duWPeo','empty','APPCODE','pageSize','stringify','globalConfig','projectConfig','stdin','values','1172380osCTxV','raw','appcode','apiDomain','trim','message','high-risk-write','slice','argv','format','177284PMzJNi','VERBOSE','setLogPath','parse','app','cwd','true','APP','skillHubDomain','FORMAT','265WPNCmv','stdout','EXDEV','1864GEjLad','.tmp','45tMrhtA','inherit','isTTY','10506GZNHVc','some','code','join','string','setRawMode','61031GvrSMT','474940GPMjLk','global','apps','env','maxRisk','EPERM','isRaw','object','error','host','development'];a68_0x43a1=function(){return _0x4d5390;};return a68_0x43a1();}import{resolveCachedAppCode}from'./commands/app/cache.js';export{AUTH_MODE,isAuthMode}from'./constant/auth-mode.js';const CONFIG_NAMES=PRODUCT_CONFIG['configFileNames'];export const NEW_CONFIG_NAME=PRODUCT_CONFIG[a68_0x485365(0x144)];function resolveConfigPath(_0x2ab5cb){for(const _0x45b6ed of CONFIG_NAMES){const _0xc6921=resolve(_0x2ab5cb,_0x45b6ed);if(existsSync(_0xc6921))return _0xc6921;}return undefined;}export function resolveWriteConfigPath(_0x111fa3){const _0x1e9c7b=a68_0x485365,_0xac1c5b=_0x111fa3===_0x1e9c7b(0x142)?process[_0x1e9c7b(0x163)]():homedir(),_0x1e4819=resolveConfigPath(_0xac1c5b);return _0x1e4819??resolve(_0xac1c5b,NEW_CONFIG_NAME);}export function readConfigFile(_0x531906){const _0x371c5c=a68_0x485365;try{if(existsSync(_0x531906)){const _0x23220f=readFileSync(_0x531906,{'encoding':_0x371c5c(0x186)});if(_0x23220f){const _0x297bc1=JSON[_0x371c5c(0x161)](_0x23220f);return migrateOnlineEnv(_0x531906,_0x297bc1),_0x297bc1;}}}catch{}return{};}function migrateOnlineEnv(_0xa722da,_0x22464f){const _0x318da3=a68_0x485365;let _0x503aad=![];_0x22464f[_0x318da3(0x17a)]===_0x318da3(0x149)&&(_0x22464f['env']=_0x318da3(0x147),_0x503aad=!![]);if(_0x22464f[_0x318da3(0x179)]&&typeof _0x22464f[_0x318da3(0x179)]==='object')for(const _0xa02939 of Object[_0x318da3(0x153)](_0x22464f[_0x318da3(0x179)])){_0xa02939&&_0xa02939[_0x318da3(0x17a)]==='online'&&(_0xa02939[_0x318da3(0x17a)]=_0x318da3(0x147),_0x503aad=!![]);}if(_0x503aad)try{writeConfigFile(_0xa722da,_0x22464f);}catch{}}export function writeConfigFile(_0x577049,_0x508cf9){const _0x31cfc3=a68_0x485365,_0x2e19ef=dirname(_0x577049);!existsSync(_0x2e19ef)&&mkdirSync(_0x2e19ef,{'recursive':!![]});const _0x33499b=_0x577049+_0x31cfc3(0x16c);try{writeFileSync(_0x33499b,JSON[_0x31cfc3(0x14f)](_0x508cf9,null,0x2)+'\x0a',{'encoding':_0x31cfc3(0x186),'mode':0x180});try{renameSync(_0x33499b,_0x577049);}catch(_0x2b0762){if(_0x2b0762[_0x31cfc3(0x172)]===_0x31cfc3(0x17c)||_0x2b0762['code']===_0x31cfc3(0x16a)||_0x2b0762[_0x31cfc3(0x172)]==='EACCES'){writeFileSync(_0x577049,JSON[_0x31cfc3(0x14f)](_0x508cf9,null,0x2)+'\x0a',{'encoding':_0x31cfc3(0x186)});try{unlinkSync(_0x33499b);}catch{}}else throw _0x2b0762;}}catch(_0x1acfae){try{unlinkSync(_0x33499b);}catch{}throw _0x1acfae;}}export function isNonInteractiveMode(_0x59599a){const _0x5d04f4=a68_0x485365;return!!(_0x59599a['nonInteractive']||_0x59599a['ci']||productEnvNames('CI')[_0x5d04f4(0x171)](_0x282f3c=>process.env[_0x282f3c]===_0x5d04f4(0x164))||process.env.CI===_0x5d04f4(0x164)||!process[_0x5d04f4(0x169)][_0x5d04f4(0x16f)]||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x1e1b3c=a68_0x485365;if(!process['stdin'][_0x1e1b3c(0x16f)])return![];try{const _0x40ddd9=process[_0x1e1b3c(0x152)][_0x1e1b3c(0x17d)];return process[_0x1e1b3c(0x152)][_0x1e1b3c(0x175)](!![]),process[_0x1e1b3c(0x152)][_0x1e1b3c(0x175)](_0x40ddd9??![]),!![];}catch{return![];}}export async function createContext(_0x4a9051){const _0x5e0fcb=a68_0x485365,_0x2de891=readRawConfig(),_0x25b305=buildConfig(_0x2de891,_0x4a9051);await initGlobalEnvironment(_0x25b305);const {getUserDomain:_0x398b9e,getApiDomain:_0x5b7a20}=await import(_0x5e0fcb(0x184)),_0x417ade={'apiDomain':_0x5b7a20(),'userDomain':_0x398b9e()},_0x98bfb=await buildAuth(_0x25b305);logger[_0x5e0fcb(0x160)](process[_0x5e0fcb(0x163)]());const _0x32aabb=(CLI_BIN_NAME+'\x20'+process[_0x5e0fcb(0x15c)][_0x5e0fcb(0x15b)](0x2)[_0x5e0fcb(0x173)]('\x20'))[_0x5e0fcb(0x158)]();logger['setRawCommand'](_0x32aabb);const _0x1775dd=isNonInteractiveMode(_0x4a9051);return{'config':_0x25b305,'auth':_0x98bfb,'logger':logger,'env':_0x417ade,'nonInteractive':_0x1775dd};}export function buildConfigFromFlags(_0x41a184){return buildConfig(readRawConfig(),_0x41a184);}export function getLocalAppAliases(_0x57613d){const _0x39d831=a68_0x485365;return _0x57613d[_0x39d831(0x179)]&&typeof _0x57613d[_0x39d831(0x179)]===_0x39d831(0x17e)?_0x57613d['apps']:{};}export function resolveLocalAppAliasCode(_0x539e51,_0x5d086b){const _0x4b0d9e=a68_0x485365;if(!_0x5d086b)return undefined;const _0xeea756=getLocalAppAliases(_0x539e51)[_0x5d086b],_0x22dc9d=_0xeea756?.['appcode'];return typeof _0x22dc9d==='string'&&_0x22dc9d[_0x4b0d9e(0x158)]()?_0x22dc9d['trim']():undefined;}export function readAppCodeFromConfig(){const _0x29e795=a68_0x485365,_0x5290ec=readRawConfig(),_0x10f9cd=_0x5290ec[_0x29e795(0x156)]??_0x5290ec[_0x29e795(0x162)];if(typeof _0x10f9cd===_0x29e795(0x174)&&_0x10f9cd[_0x29e795(0x158)]())return _0x10f9cd[_0x29e795(0x158)]();const _0x29a790=resolveLocalAppAliasCode(_0x5290ec,typeof _0x5290ec[_0x29e795(0x189)]===_0x29e795(0x174)?_0x5290ec[_0x29e795(0x189)]:undefined);if(_0x29a790)return _0x29a790;const _0x5d8f7a=normalizeEnv(String(_0x5290ec['env']||_0x29e795(0x147))),_0x51c595=isDaily(_0x5d8f7a)?'daily':isDev(_0x5d8f7a)?_0x29e795(0x181):'production',_0x4da00b=resolveCachedAppCode(typeof _0x5290ec[_0x29e795(0x189)]===_0x29e795(0x174)?_0x5290ec[_0x29e795(0x189)]:undefined,_0x51c595,typeof _0x5290ec[_0x29e795(0x146)]===_0x29e795(0x174)?_0x5290ec['accessKey']:undefined);if(_0x4da00b)return _0x4da00b;const _0x3a70f3=Object['values'](getLocalAppAliases(_0x5290ec))[_0x29e795(0x183)](_0x393d2e=>_0x393d2e?.[_0x29e795(0x156)]);return typeof _0x3a70f3?.[_0x29e795(0x156)]==='string'&&_0x3a70f3[_0x29e795(0x156)][_0x29e795(0x158)]()?_0x3a70f3[_0x29e795(0x156)][_0x29e795(0x158)]():undefined;}export function readScopedConfig(_0x2a1fd5){const _0x1fa056=a68_0x485365,_0x4b0866=_0x2a1fd5[_0x1fa056(0x178)]?'global':'project';return readConfigFile(resolveWriteConfigPath(_0x4b0866));}export function writeScopedConfig(_0x4e193e,_0x21ff73){const _0x32ee9a=a68_0x485365,_0x1853de=_0x21ff73[_0x32ee9a(0x178)]?_0x32ee9a(0x178):'project';writeConfigFile(resolveWriteConfigPath(_0x1853de),_0x4e193e);}export async function initGlobalEnvironment(_0x5c068c){const _0x46ae13=a68_0x485365,{initEnv:_0x2e4019}=await import(_0x46ae13(0x188));_0x2e4019(_0x5c068c[_0x46ae13(0x17a)]);const {initDomains:_0x2b4731}=await import(_0x46ae13(0x184));_0x2b4731({'apiDomain':_0x5c068c['raw'][_0x46ae13(0x157)]||_0x5c068c['raw'][_0x46ae13(0x180)]||undefined,'userDomain':_0x5c068c['raw'][_0x46ae13(0x145)]||undefined,'runtimeDomain':_0x5c068c['raw']['runtimeDomain']||undefined,'skillHubDomain':_0x5c068c[_0x46ae13(0x155)][_0x46ae13(0x166)]||undefined});}export function getProjectConfigPath(){const _0x1db8a1=a68_0x485365;return resolveConfigPath(process[_0x1db8a1(0x163)]());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function inspectCliConfigJsonFile(_0x2ce088){const _0xc551b2=a68_0x485365;if(!existsSync(_0x2ce088))return{'status':_0xc551b2(0x185)};try{const _0x88d2a4=readFileSync(_0x2ce088,{'encoding':_0xc551b2(0x186)});if(!_0x88d2a4?.[_0xc551b2(0x158)]())return{'status':_0xc551b2(0x14c)};const _0x203f0b=JSON[_0xc551b2(0x161)](_0x88d2a4);return{'status':'ok','data':_0x203f0b};}catch(_0x22f048){return{'status':_0xc551b2(0x17f),'message':_0x22f048 instanceof Error?_0x22f048[_0xc551b2(0x159)]:String(_0x22f048)};}}export function loadRawConfigLayers(_0x14d2b5){const _0x22e292=a68_0x485365;let _0x3697a5={},_0x559120={},_0x52d60e,_0x226511;try{_0x52d60e=resolveConfigPath(homedir());if(_0x52d60e){const _0x5337a3=readFileSync(_0x52d60e,{'encoding':'utf8'});if(_0x5337a3)_0x3697a5=JSON[_0x22e292(0x161)](_0x5337a3);}}catch{}try{const _0x21ecfa=_0x14d2b5||process[_0x22e292(0x163)]();_0x226511=resolveConfigPath(_0x21ecfa);if(_0x226511){const _0x1c1f0c=readFileSync(_0x226511,{'encoding':_0x22e292(0x186)});if(_0x1c1f0c)_0x559120=JSON[_0x22e292(0x161)](_0x1c1f0c);}}catch{}return{'globalPath':_0x52d60e,'projectPath':_0x226511,'globalConfig':_0x3697a5,'projectConfig':_0x559120};}function mergeRawConfigLayers(_0x3eccfa){const _0x42545f=a68_0x485365,{globalConfig:_0x5a0586,projectConfig:_0x56ec00}=_0x3eccfa;if(_0x56ec00[_0x42545f(0x16e)]===![]){const _0x2e56cf={..._0x56ec00};return delete _0x2e56cf[_0x42545f(0x16e)],_0x2e56cf;}const _0x2a7d1d={..._0x5a0586,..._0x56ec00};if(_0x42545f(0x189)in _0x56ec00)_0x2a7d1d['defaultApp']=_0x56ec00[_0x42545f(0x189)];else _0x5a0586['defaultApp']&&(_0x2a7d1d[_0x42545f(0x189)]=_0x5a0586['defaultApp']);return _0x2a7d1d;}export function isInProject(){return!!getProjectConfigPath();}function a68_0xbc65(_0x3ceace,_0x4794e1){_0x3ceace=_0x3ceace-0x142;const _0x43a126=a68_0x43a1();let _0xbc6597=_0x43a126[_0x3ceace];return _0xbc6597;}export function readRawConfig(_0x3b5198){return mergeRawConfigLayers(loadRawConfigLayers(_0x3b5198));}export function readRawConfigWithLayers(_0x422723){const _0x556ce0=loadRawConfigLayers(_0x422723);return{'config':mergeRawConfigLayers(_0x556ce0),'layers':_0x556ce0};}export function resolveDefaultAppSource(_0x6cf79f){const _0x1e45fd=a68_0x485365;if('defaultApp'in _0x6cf79f['projectConfig'])return _0x1e45fd(0x142);if(_0x6cf79f[_0x1e45fd(0x151)][_0x1e45fd(0x16e)]===![])return null;if(_0x6cf79f[_0x1e45fd(0x150)][_0x1e45fd(0x189)])return _0x1e45fd(0x178);return null;}function buildConfig(_0x5e4236,_0x4633d0){const _0x227616=a68_0x485365,_0x53a555=_0x5e4236[_0x227616(0x189)]||undefined,_0x5c707e=_0x4633d0['app']||env(_0x227616(0x165))||undefined,_0xc40872=_0x5c707e||_0x53a555||undefined,_0x420bf7=env(_0x227616(0x182))||_0x5e4236['accessKey']||undefined,_0x334925=_0x4633d0['env']||env('ENV')||_0x5e4236[_0x227616(0x17a)]||DEFAULT_CONFIG_VALUES[_0x227616(0x17a)],_0x1299d6=normalizeEnv(String(_0x334925)),_0x5ed6ae=isDaily(_0x1299d6)?'daily':isDev(_0x1299d6)?_0x227616(0x181):'production',_0x41503d=typeof _0x4633d0[_0x227616(0x156)]==='string'?_0x4633d0[_0x227616(0x156)]:undefined,_0x36bb0e=env(_0x227616(0x14d)),_0x44ebad=_0x5c707e?undefined:_0x5e4236[_0x227616(0x156)]||_0x5e4236['app']||undefined,_0x1d4597=_0x5c707e||(_0x44ebad?undefined:_0x53a555),_0x8cea85=resolveLocalAppAliasCode(_0x5e4236,_0x1d4597),_0x559fb2=resolveCachedAppCode(_0x1d4597,_0x5ed6ae,_0x420bf7),_0x1e38fd=_0x41503d||_0x36bb0e||_0x44ebad||_0x8cea85||_0x559fb2||undefined,_0x487199=_0x41503d?_0x227616(0x187):_0x36bb0e?_0x227616(0x17a):_0x44ebad?'top-level':_0x8cea85?'local-alias':_0x559fb2?'cache':undefined,_0x35eec3=_0x5e4236[_0x227616(0x14a)]||DEFAULT_CONFIG_VALUES[_0x227616(0x14a)],_0x72a7f0=undefined,_0x3d080e=_0x4633d0[_0x227616(0x15d)]||env(_0x227616(0x167))||_0x5e4236[_0x227616(0x15d)],_0x2e202f=normalizeLegacyOutputFormat(_0x3d080e),_0x3b1b3c=env('PAGE_SIZE')||_0x5e4236[_0x227616(0x14e)],_0x457e7b=_0x3b1b3c?Number(_0x3b1b3c)||undefined:undefined,_0x31054e=_0x5e4236[_0x227616(0x18a)]||_0x5e4236[_0x227616(0x17b)],_0x2cfafe=_0x31054e==='read'||_0x31054e==='write'||_0x31054e===_0x227616(0x15a)?_0x31054e:DEFAULT_CONFIG_VALUES[_0x227616(0x18a)],_0x5c187a=env(_0x227616(0x15f)),_0x515ef9=_0x5c187a==='1'||_0x5c187a===_0x227616(0x164);return{'appCode':typeof _0x1e38fd===_0x227616(0x174)&&_0x1e38fd[_0x227616(0x158)]()?_0x1e38fd[_0x227616(0x158)]():undefined,'appCodeSource':_0x487199,'env':_0x5ed6ae,'locale':_0x35eec3,'cookie':_0x72a7f0,'accessKey':_0x420bf7,'format':_0x2e202f,'pageSize':_0x457e7b,'riskLevel':_0x2cfafe,'verbose':_0x515ef9,'defaultApp':_0x53a555,'currentApp':typeof _0xc40872==='string'?_0xc40872:undefined,'raw':_0x5e4236};}function env(_0x491ef9){return productEnv(_0x491ef9);}async function buildAuth(_0x577ad9){const _0xf9166c=a68_0x485365,_0x5c45f4='',_0x2e9b12=!!_0x577ad9[_0xf9166c(0x146)];return{'cookie':_0x5c45f4,'isLoggedIn':_0x2e9b12,async 'getOrLogin'(){if(_0x2e9b12)return _0x5c45f4;throw CliErrors['authRequired']();}};}
@@ -1 +1 @@
1
- (function(_0x55c826,_0x30396e){const _0x4ee068=a69_0x52b7,_0x1362f5=_0x55c826();while(!![]){try{const _0x2a5cb6=-parseInt(_0x4ee068(0x15a))/0x1*(parseInt(_0x4ee068(0x174))/0x2)+parseInt(_0x4ee068(0x17b))/0x3+-parseInt(_0x4ee068(0x175))/0x4*(parseInt(_0x4ee068(0x195))/0x5)+parseInt(_0x4ee068(0x144))/0x6+-parseInt(_0x4ee068(0x198))/0x7+-parseInt(_0x4ee068(0x14f))/0x8+parseInt(_0x4ee068(0x167))/0x9;if(_0x2a5cb6===_0x30396e)break;else _0x1362f5['push'](_0x1362f5['shift']());}catch(_0x255c30){_0x1362f5['push'](_0x1362f5['shift']());}}}(a69_0x3013,0x3c128));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(_0x50a0f9){_activeAK=_0x50a0f9||undefined;}export function clearActiveAK(){_activeAK=undefined;}async function apiRequest(_0x397252,_0x2c5bf9={}){const _0x4e2959=a69_0x52b7,{method:method='GET',body:_0x124f15,headers:headers={},timeout:timeout=0x7530}=_0x2c5bf9,_0x5f31ee=_activeAK,_0xc48ef0=getRuntimeDomain();if(!_0x5f31ee)throw CliErrors['authRequired']('Configure\x20accessKey\x20in\x20'+PRODUCT_CONFIG['newConfigFileName']+'.');const _0x3bcfd8=''+_0xc48ef0+_0x397252,_0x3cd73a={'X-User-AK':_0x5f31ee},_0x1fbab7=new AbortController(),_0x2e6303=setTimeout(()=>_0x1fbab7[_0x4e2959(0x12c)](),timeout);try{const _0x142b29=await fetch(_0x3bcfd8,{'method':method,'headers':{'Content-Type':_0x4e2959(0x145),'X-Invoke-Source':PRODUCT_CONFIG[_0x4e2959(0x164)],..._0x3cd73a,...headers},'body':_0x124f15?JSON[_0x4e2959(0x15f)](_0x124f15):undefined,'signal':_0x1fbab7[_0x4e2959(0x125)]});let _0x2db105;try{_0x2db105=await _0x142b29[_0x4e2959(0x17c)]();}catch{throw CliErrors[_0x4e2959(0x135)](_0x4e2959(0x177)+_0x142b29[_0x4e2959(0x163)]+')',_0x142b29['status']>=0x190?_0x4e2959(0x124):undefined);}if(!_0x142b29['ok']||_0x2db105[_0x4e2959(0x191)]===![])throw CliErrors[_0x4e2959(0x135)](_0x2db105[_0x4e2959(0x127)]||_0x2db105['message']||_0x4e2959(0x190)+_0x142b29[_0x4e2959(0x163)],_0x2db105[_0x4e2959(0x121)]?'API\x20error\x20code:\x20'+_0x2db105[_0x4e2959(0x121)]:undefined);return _0x2db105;}catch(_0x298625){if(_0x298625 instanceof Error&&_0x298625[_0x4e2959(0x13b)]===_0x4e2959(0x13d))throw CliErrors[_0x4e2959(0x135)](_0x4e2959(0x131)+_0x3bcfd8);throw _0x298625;}finally{clearTimeout(_0x2e6303);}}async function apiBinaryRequest(_0x253763,_0x2ce2e2={}){const _0x3eb223=a69_0x52b7,{method:method=_0x3eb223(0x178),headers:headers={},timeout:timeout=0x7530}=_0x2ce2e2,_0x1e45d8=_activeAK,_0x411ad8=getRuntimeDomain();if(!_0x1e45d8)throw CliErrors[_0x3eb223(0x16b)](_0x3eb223(0x16f)+PRODUCT_CONFIG['newConfigFileName']+'.');const _0x192236=''+_0x411ad8+_0x253763,_0x4264ca=new AbortController(),_0x4bcb2b=setTimeout(()=>_0x4264ca[_0x3eb223(0x12c)](),timeout);try{const _0xd94bd1=await fetch(_0x192236,{'method':method,'headers':{'X-Invoke-Source':PRODUCT_CONFIG[_0x3eb223(0x164)],'X-User-AK':_0x1e45d8,...headers},'signal':_0x4264ca[_0x3eb223(0x125)]});if(!_0xd94bd1['ok']){let _0x30882e;try{const _0x23cb5c=await _0xd94bd1[_0x3eb223(0x17c)]();_0x30882e=_0x23cb5c[_0x3eb223(0x127)]||_0x23cb5c[_0x3eb223(0x16d)]||_0x23cb5c['errorCode'];}catch{_0x30882e=await _0xd94bd1['text']()['catch'](()=>undefined);}throw CliErrors['apiError'](_0x30882e||'API\x20error:\x20'+_0xd94bd1['status'],'Download\x20failed:\x20'+_0x192236);}return Buffer[_0x3eb223(0x186)](await _0xd94bd1[_0x3eb223(0x117)]());}catch(_0x317c6b){if(_0x317c6b instanceof Error&&_0x317c6b['name']===_0x3eb223(0x13d))throw CliErrors[_0x3eb223(0x135)]('Request\x20timeout:\x20'+_0x192236);throw _0x317c6b;}finally{clearTimeout(_0x4bcb2b);}}async function toolboxRequest(_0x135bc4,_0x2b4a27,_0x5a7b9d={}){const _0x476fda=a69_0x52b7,{method:method=_0x476fda(0x178),headers:headers={},timeout:timeout=0x7530}=_0x5a7b9d,_0x2bb0f6=_activeAK;if(!_0x2bb0f6)throw CliErrors['authRequired'](_0x476fda(0x16f)+PRODUCT_CONFIG['newConfigFileName']+'.');const _0x53094b=getApiDomain()[_0x476fda(0x16a)](/\/$/,''),_0x5017a0=new URL(_0x135bc4,_0x53094b+_0x476fda(0x166));if(_0x2b4a27)for(const [_0x6d09be,_0x204df5]of Object[_0x476fda(0x176)](_0x2b4a27)){_0x204df5!==undefined&&_0x204df5!==null&&_0x5017a0[_0x476fda(0x18a)][_0x476fda(0x153)](_0x6d09be,String(_0x204df5));}const _0x4f331f=new AbortController(),_0x542d79=setTimeout(()=>_0x4f331f[_0x476fda(0x12c)](),timeout);try{const _0x143b2c=await fetch(_0x5017a0,{'method':method,'headers':{'Content-Type':_0x476fda(0x145),'X-Invoke-Source':PRODUCT_CONFIG[_0x476fda(0x164)],'X-User-AK':_0x2bb0f6,...headers},'signal':_0x4f331f[_0x476fda(0x125)]});let _0x6152bf;try{_0x6152bf=await _0x143b2c['json']();}catch{throw CliErrors['apiError']('Toolbox\x20returned\x20non-JSON\x20response\x20(HTTP\x20'+_0x143b2c[_0x476fda(0x163)]+')',_0x143b2c[_0x476fda(0x163)]>=0x190?_0x476fda(0x124):undefined);}if(!_0x143b2c['ok']){const _0x35b983=_0x6152bf&&typeof _0x6152bf===_0x476fda(0x171)?_0x6152bf:{};throw CliErrors[_0x476fda(0x135)](_0x35b983[_0x476fda(0x127)]||_0x35b983[_0x476fda(0x16d)]||_0x476fda(0x12e)+_0x143b2c['status'],_0x35b983[_0x476fda(0x121)]?_0x476fda(0x120)+_0x35b983[_0x476fda(0x121)]:undefined);}if(_0x6152bf&&typeof _0x6152bf===_0x476fda(0x171)&&_0x476fda(0x191)in _0x6152bf&&typeof _0x6152bf[_0x476fda(0x191)]===_0x476fda(0x17f)){const _0x28144f=_0x6152bf;if(!_0x28144f[_0x476fda(0x191)])throw CliErrors[_0x476fda(0x135)](_0x28144f['errorMsg']||_0x28144f[_0x476fda(0x16d)]||'Toolbox\x20API\x20error',_0x28144f['errorCode']?_0x476fda(0x120)+_0x28144f[_0x476fda(0x121)]:undefined);return _0x28144f[_0x476fda(0x143)];}return _0x6152bf;}catch(_0x467c72){if(_0x467c72 instanceof Error&&_0x467c72[_0x476fda(0x13b)]===_0x476fda(0x13d))throw CliErrors['apiError'](_0x476fda(0x131)+_0x5017a0['toString']());throw _0x467c72;}finally{clearTimeout(_0x542d79);}}async function skillHubJsonRequest(_0x2c2543,_0x411d04={}){const _0xcd2a87=a69_0x52b7,{method:method=_0xcd2a87(0x178),query:_0x26c766,body:_0x13d794,headers:headers={},timeout:timeout=0x7530,allowNotFound:allowNotFound=![]}=_0x411d04,_0x4a4822=_activeAK;if(!_0x4a4822)throw CliErrors[_0xcd2a87(0x16b)](_0xcd2a87(0x16f)+PRODUCT_CONFIG[_0xcd2a87(0x184)]+'.');const _0x26c2fd=getSkillHubDomain()[_0xcd2a87(0x16a)](/\/$/,''),_0x2432c2=new URL(_0x2c2543,_0x26c2fd+'/');if(_0x26c766)for(const [_0x3fd890,_0x299d6d]of Object['entries'](_0x26c766)){_0x299d6d!==undefined&&_0x299d6d!==null&&_0x2432c2['searchParams']['set'](_0x3fd890,String(_0x299d6d));}const _0x478357=new AbortController(),_0xefa45f=setTimeout(()=>_0x478357[_0xcd2a87(0x12c)](),timeout);try{const _0x394041=await fetch(_0x2432c2[_0xcd2a87(0x151)](),{'method':method,'headers':{'Accept':_0xcd2a87(0x145),'X-Invoke-Source':PRODUCT_CONFIG[_0xcd2a87(0x164)],'X-User-AK':_0x4a4822,...headers},'body':_0x13d794,'signal':_0x478357[_0xcd2a87(0x125)]});let _0x5775eb;try{_0x5775eb=await _0x394041['json']();}catch{if(allowNotFound&&_0x394041['status']===0x194)return undefined;throw CliErrors[_0xcd2a87(0x135)](_0xcd2a87(0x17e)+_0x394041[_0xcd2a87(0x163)]+')',_0x394041[_0xcd2a87(0x163)]>=0x190?_0xcd2a87(0x124):undefined);}if(allowNotFound&&(_0x394041[_0xcd2a87(0x163)]===0x194||_0x5775eb?.[_0xcd2a87(0x173)]===0x194))return undefined;const _0x4ed99f=!_0x394041['ok']||_0x5775eb?.['success']===![]||typeof _0x5775eb?.[_0xcd2a87(0x173)]==='number'&&_0x5775eb[_0xcd2a87(0x173)]>=0x190;if(_0x4ed99f)throw CliErrors[_0xcd2a87(0x135)](_0x5775eb?.['errorMsg']||_0x5775eb?.[_0xcd2a87(0x16d)]||_0x5775eb?.[_0xcd2a87(0x183)]||_0xcd2a87(0x181)+_0x394041[_0xcd2a87(0x163)],_0x5775eb?.[_0xcd2a87(0x121)]?_0xcd2a87(0x122)+_0x5775eb[_0xcd2a87(0x121)]:undefined);return _0x5775eb?.[_0xcd2a87(0x143)]??_0x5775eb;}catch(_0xfdbc94){if(_0xfdbc94 instanceof Error&&_0xfdbc94[_0xcd2a87(0x13b)]===_0xcd2a87(0x13d))throw CliErrors[_0xcd2a87(0x135)](_0xcd2a87(0x131)+_0x2432c2[_0xcd2a87(0x151)]());throw _0xfdbc94;}finally{clearTimeout(_0xefa45f);}}async function skillHubBinaryRequest(_0x59182a,_0x1e6baa={}){const _0x1e1176=a69_0x52b7,{query:_0x29c1ac,headers:headers={},timeout:timeout=0x7530}=_0x1e6baa,_0x47d750=_activeAK;if(!_0x47d750)throw CliErrors['authRequired'](_0x1e1176(0x16f)+PRODUCT_CONFIG[_0x1e1176(0x184)]+'.');const _0x124b63=getSkillHubDomain()[_0x1e1176(0x16a)](/\/$/,''),_0x12a1bf=new URL(_0x59182a,_0x124b63+'/');if(_0x29c1ac)for(const [_0xc7d45f,_0x552ca8]of Object[_0x1e1176(0x176)](_0x29c1ac)){_0x552ca8!==undefined&&_0x552ca8!==null&&_0x12a1bf[_0x1e1176(0x18a)][_0x1e1176(0x153)](_0xc7d45f,String(_0x552ca8));}const _0x16d982=new AbortController(),_0xf9d2f=setTimeout(()=>_0x16d982['abort'](),timeout);try{const _0x23051b=await fetch(_0x12a1bf[_0x1e1176(0x151)](),{'method':_0x1e1176(0x178),'headers':{'Accept':_0x1e1176(0x146),'X-Invoke-Source':PRODUCT_CONFIG['invokeSource'],'X-User-AK':_0x47d750,...headers},'signal':_0x16d982['signal']});if(!_0x23051b['ok']){let _0x1d4fad;try{const _0x127808=await _0x23051b[_0x1e1176(0x17c)]();_0x1d4fad=_0x127808[_0x1e1176(0x127)]||_0x127808['message']||_0x127808[_0x1e1176(0x183)]||_0x127808[_0x1e1176(0x121)];}catch{_0x1d4fad=await _0x23051b['text']()[_0x1e1176(0x179)](()=>undefined);}throw CliErrors[_0x1e1176(0x135)](_0x1d4fad||'SkillHub\x20API\x20error:\x20'+_0x23051b[_0x1e1176(0x163)],_0x1e1176(0x152)+_0x12a1bf[_0x1e1176(0x151)]());}return Buffer[_0x1e1176(0x186)](await _0x23051b[_0x1e1176(0x117)]());}catch(_0x555668){if(_0x555668 instanceof Error&&_0x555668[_0x1e1176(0x13b)]===_0x1e1176(0x13d))throw CliErrors['apiError'](_0x1e1176(0x131)+_0x12a1bf[_0x1e1176(0x151)]());throw _0x555668;}finally{clearTimeout(_0xf9d2f);}}export async function getBffScriptInfo(_0x579638){const _0x4d4ca0=a69_0x52b7,_0x3fcf03=await apiRequest(_0x4d4ca0(0x188)+_0x579638);if(!_0x3fcf03[_0x4d4ca0(0x143)])throw CliErrors[_0x4d4ca0(0x170)]('BFF\x20script\x20not\x20found:\x20id='+_0x579638);return _0x3fcf03['data'];}export async function getSqlQueryInfo(_0x549fce,_0x21d4d9){const _0x48ecfd=a69_0x52b7,_0x1eaf5f=await apiRequest(_0x48ecfd(0x13c),{'method':_0x48ecfd(0x12b),'body':{'appCode':_0x549fce,'currentPage':0x1,'pageSize':0x1,'sqlCode':_0x21d4d9}}),_0x291905=_0x1eaf5f[_0x48ecfd(0x143)],_0x3a49ba=_0x291905&&typeof _0x291905===_0x48ecfd(0x171)&&_0x48ecfd(0x160)in _0x291905?_0x291905['tableData']?.[0x0]:_0x291905&&typeof _0x291905===_0x48ecfd(0x171)&&_0x48ecfd(0x11f)in _0x291905?_0x291905:undefined;if(!_0x3a49ba)throw CliErrors['validation'](_0x48ecfd(0x194)+_0x21d4d9);return _0x3a49ba;}function isRemoteAppItem(_0x1b8f7e){const _0x4b5b37=a69_0x52b7;return!!_0x1b8f7e&&typeof _0x1b8f7e==='object'&&typeof _0x1b8f7e['appCode']===_0x4b5b37(0x18b)&&typeof _0x1b8f7e[_0x4b5b37(0x189)]===_0x4b5b37(0x18b);}function extractRemoteAppItems(_0x5c0745){const _0x14cd70=a69_0x52b7;if(Array[_0x14cd70(0x17d)](_0x5c0745))return _0x5c0745[_0x14cd70(0x15b)](isRemoteAppItem);if(!_0x5c0745||typeof _0x5c0745!==_0x14cd70(0x171))throw CliErrors['apiError']('Invalid\x20app\x20list\x20response:\x20expected\x20object\x20or\x20array.');const _0x169352=_0x5c0745;if(Array[_0x14cd70(0x17d)](_0x169352['tableData']))return _0x169352[_0x14cd70(0x160)][_0x14cd70(0x15b)](isRemoteAppItem);if(_0x169352[_0x14cd70(0x143)]&&typeof _0x169352['data']===_0x14cd70(0x171)){const _0x3a2c25=_0x169352[_0x14cd70(0x143)];if(Array[_0x14cd70(0x17d)](_0x3a2c25['tableData']))return _0x3a2c25['tableData'][_0x14cd70(0x15b)](isRemoteAppItem);}throw CliErrors['apiError'](_0x14cd70(0x157));}function a69_0x3013(){const _0x1ce84f=['toString','Download\x20failed:\x20','set','all','ownerPreviewVersion','/client/dataset/list','Invalid\x20app\x20list\x20response:\x20missing\x20data.tableData.','tags','summary','62642EdlXxo','filter','artifactType','.zip','namespace','stringify','tableData','/client/artifact/create','topK','status','invokeSource','items','/api/node-toolbox/','1248309oTMrax','toLowerCase','/client/runtime-bff/personal/create','replace','authRequired','/execute?appCode=','message','/download','Configure\x20accessKey\x20in\x20','validation','object','Personal\x20BFF\x20not\x20found:\x20id=','code','4aECPVg','926284rAdOwp','entries','API\x20returned\x20non-JSON\x20response\x20(HTTP\x20','GET','catch','valid','813636LoBwJo','json','isArray','SkillHub\x20returned\x20non-JSON\x20response\x20(HTTP\x20','boolean','/versions/','SkillHub\x20API\x20error:\x20','confirmWarnings','msg','newConfigFileName','base64','from','/client/knowledge-base/personal/','/client/bff/query/','appName','searchParams','string','skillCode','/publish/validate','/client/dataset/get-driven-data?code=','values','API\x20error:\x20','success','description','slug','SQL\x20query\x20not\x20found:\x20','5LmkonT','/client/user/loginUserInfo','Artifact\x20not\x20found:\x20id=','1330595REgWhw','arrayBuffer','version','/client/knowledge-base/personal/list?appCode=','App\x20config\x20not\x20found:\x20key=','content','/skills','/client/artifact/','/api/v1/skills/','sqlCode','Toolbox\x20error\x20code:\x20','errorCode','SkillHub\x20error\x20code:\x20','/api/cli/v1/skills/','Check\x20your\x20credentials\x20and\x20try\x20again.','signal','/publish','errorMsg','Invalid\x20login\x20user\x20info\x20response:\x20expected\x20object.','personal','PRIVATE','POST','abort','resolvedVersion','Toolbox\x20API\x20error:\x20','trim','Missing\x20Skill\x20package\x20payload.','Request\x20timeout:\x20','favorite','Knowledge-base\x20entry\x20not\x20found:\x20id=','headlineVersion','apiError','?appCode=','NAMESPACE_ONLY','displayName','visibility','application/zip','name','/client/sql/query','AbortError','skillName','/client/knowledge-base/personal/create','resolvedSlug','appCode','packageBase64','data','2336364JWPFFx','application/json','application/octet-stream','/update','/client/artifact/list?','/client/runtime-bff/personal/','errors','scope','source','api-doc-generator','company','50488PhytLq','warnings'];a69_0x3013=function(){return _0x1ce84f;};return a69_0x3013();}export async function getMyApps(){const _0x376412=a69_0x52b7,_0x56a04e=await apiRequest('/client/app/my-apps');return extractRemoteAppItems(_0x56a04e[_0x376412(0x143)]);}export async function getLoginUserInfo(){const _0x237049=a69_0x52b7,_0xd9da8b=await apiRequest(_0x237049(0x196));if(!_0xd9da8b[_0x237049(0x143)]||typeof _0xd9da8b[_0x237049(0x143)]!=='object'||Array[_0x237049(0x17d)](_0xd9da8b['data']))throw CliErrors[_0x237049(0x135)](_0x237049(0x128));return _0xd9da8b['data'];}export async function listDatasets(_0x31533a,_0x131ca8){const _0x210eb1=a69_0x52b7,_0x358657=await apiRequest(_0x210eb1(0x156),{'method':'POST','body':{'appCode':_0x31533a,..._0x131ca8?.[_0x210eb1(0x173)]&&{'code':_0x131ca8[_0x210eb1(0x173)]},..._0x131ca8?.[_0x210eb1(0x13b)]&&{'name':_0x131ca8[_0x210eb1(0x13b)]}}});return extractList(_0x358657[_0x210eb1(0x143)]);}export async function getDatasetDetail(_0x31302c){const _0x31e037=a69_0x52b7,_0x8490c7=await apiRequest(_0x31e037(0x18e)+encodeURIComponent(_0x31302c));return _0x8490c7[_0x31e037(0x143)];}export async function getDatasetSdkUsageDoc(_0x3efbae,_0x16ef7c){const _0x6f3f3d=a69_0x52b7,_0x5babdc=await toolboxRequest(_0x6f3f3d(0x14d),{'datasetCode':_0x3efbae,'appCode':_0x16ef7c});return typeof _0x5babdc?.['markdown']===_0x6f3f3d(0x18b)?_0x5babdc['markdown']:'';}export async function getRuntimeAppConfigByKey(_0x2b1a1c,_0x373ee7){const _0x543879=a69_0x52b7,_0x3e8b83=new URLSearchParams({'appCode':_0x2b1a1c,'key':_0x373ee7}),_0x258a35=await apiRequest('/client/app-config/getByKey?'+_0x3e8b83[_0x543879(0x151)]());if(!_0x258a35[_0x543879(0x143)])throw CliErrors[_0x543879(0x170)](_0x543879(0x11a)+_0x373ee7);return _0x258a35[_0x543879(0x143)];}export async function listRuntimeArtifacts(_0x4daa5a,_0x3383fe){const _0x35a78c=a69_0x52b7,_0x319d8a=new URLSearchParams({'appCode':_0x4daa5a});if(_0x3383fe?.[_0x35a78c(0x15c)])_0x319d8a['set']('artifactType',_0x3383fe[_0x35a78c(0x15c)]);if(_0x3383fe?.['source'])_0x319d8a[_0x35a78c(0x153)](_0x35a78c(0x14c),_0x3383fe[_0x35a78c(0x14c)]);if(_0x3383fe?.[_0x35a78c(0x132)]!==undefined)_0x319d8a[_0x35a78c(0x153)]('favorite',String(_0x3383fe[_0x35a78c(0x132)]));const _0x550522=await apiRequest(_0x35a78c(0x148)+_0x319d8a[_0x35a78c(0x151)]());return Array[_0x35a78c(0x17d)](_0x550522['data'])?_0x550522[_0x35a78c(0x143)]:[];}export async function getRuntimeArtifact(_0x101543,_0x3669fb){const _0x1f93a6=a69_0x52b7,_0x5008e5=await apiRequest(_0x1f93a6(0x11d)+_0x101543+_0x1f93a6(0x136)+encodeURIComponent(_0x3669fb));if(!_0x5008e5['data'])throw CliErrors['validation'](_0x1f93a6(0x197)+_0x101543);return _0x5008e5[_0x1f93a6(0x143)];}export async function createRuntimeArtifact(_0x35c567,_0xdb1af5){const _0x5abb4c=a69_0x52b7,_0x4e45c3=await apiRequest(_0x5abb4c(0x161),{'method':'POST','body':{'appCode':_0x35c567,..._0xdb1af5}});return _0x4e45c3[_0x5abb4c(0x143)];}export async function updateRuntimeArtifact(_0xcc9ed7,_0x18e008,_0x344e0a){const _0x1a1553=a69_0x52b7,_0x75948d=await apiRequest('/client/artifact/'+_0xcc9ed7+'/update',{'method':_0x1a1553(0x12b),'body':{'appCode':_0x18e008,..._0x344e0a}});return _0x75948d[_0x1a1553(0x143)];}export async function listPersonalBffs(_0x3851a3){const _0x2e35d2=a69_0x52b7,_0x472728=await apiRequest('/client/runtime-bff/personal/list?appCode='+encodeURIComponent(_0x3851a3));return Array[_0x2e35d2(0x17d)](_0x472728[_0x2e35d2(0x143)])?_0x472728[_0x2e35d2(0x143)]:[];}export async function getPersonalBff(_0xd30289,_0x3af178){const _0x19565e=a69_0x52b7,_0x1d85e0=await apiRequest(_0x19565e(0x149)+_0xd30289+_0x19565e(0x136)+encodeURIComponent(_0x3af178));if(!_0x1d85e0['data'])throw CliErrors[_0x19565e(0x170)](_0x19565e(0x172)+_0xd30289);return _0x1d85e0['data'];}export async function createPersonalBff(_0x3bcbae,_0x1633b1){const _0x1eadb0=a69_0x52b7,_0xfdf9e1=await apiRequest(_0x1eadb0(0x169),{'method':'POST','body':{'appCode':_0x3bcbae,..._0x1633b1}});return _0xfdf9e1[_0x1eadb0(0x143)];}export async function updatePersonalBff(_0x2b8d3f,_0x189dd7,_0x2d3f03){const _0x162406=a69_0x52b7,_0x14af64=await apiRequest(_0x162406(0x149)+_0x2b8d3f+'/update',{'method':_0x162406(0x12b),'body':{'appCode':_0x189dd7,..._0x2d3f03}});return _0x14af64['data'];}export async function executePersonalBff(_0x1ece85,_0x29b547,_0x4875a2){const _0x29961d=a69_0x52b7,_0x5f23fa=await apiRequest(_0x29961d(0x149)+_0x1ece85+_0x29961d(0x16c)+encodeURIComponent(_0x29b547),{'method':_0x29961d(0x12b),'body':_0x4875a2});return _0x5f23fa[_0x29961d(0x143)];}export async function listPersonalKnowledgeBaseItems(_0x33aa96){const _0x49f9a3=a69_0x52b7,_0x248fb7=await apiRequest(_0x49f9a3(0x119)+encodeURIComponent(_0x33aa96));return Array[_0x49f9a3(0x17d)](_0x248fb7['data'])?_0x248fb7['data']:[];}export async function getPersonalKnowledgeBaseItem(_0x3b890a,_0x426e1c){const _0x5e378f=a69_0x52b7,_0x2f4027=await apiRequest(_0x5e378f(0x187)+_0x3b890a+'?appCode='+encodeURIComponent(_0x426e1c));if(!_0x2f4027[_0x5e378f(0x143)])throw CliErrors['validation'](_0x5e378f(0x133)+_0x3b890a);return _0x2f4027['data'];}export async function createPersonalKnowledgeBaseItem(_0x1bf0e4,_0x10378a){const _0x3d9b61=a69_0x52b7,_0x3a247e=await apiRequest(_0x3d9b61(0x13f),{'method':_0x3d9b61(0x12b),'body':{'appCode':_0x1bf0e4,..._0x10378a}});return _0x3a247e[_0x3d9b61(0x143)];}export async function updatePersonalKnowledgeBaseItem(_0x24165,_0x371fda,_0x43d3a1){const _0x525acf=a69_0x52b7,_0x45b69a=await apiRequest('/client/knowledge-base/personal/'+_0x24165+_0x525acf(0x147),{'method':_0x525acf(0x12b),'body':{'appCode':_0x371fda,..._0x43d3a1}});return _0x45b69a[_0x525acf(0x143)];}export async function searchKnowledgeBase(_0x3ec2cd,_0x483d6a){const _0x2b4d22=a69_0x52b7,_0x51bed8=await apiRequest('/client/knowledge-base/search',{'method':_0x2b4d22(0x12b),'body':{'appCode':_0x3ec2cd,'query':_0x483d6a['query'],..._0x483d6a[_0x2b4d22(0x162)]!==undefined?{'topK':_0x483d6a[_0x2b4d22(0x162)]}:{}}});return Array[_0x2b4d22(0x17d)](_0x51bed8[_0x2b4d22(0x143)])?_0x51bed8[_0x2b4d22(0x143)]:[];}export async function getRuntimeSkillByCode(_0x14a02c,_0x2e1013){const _0x47ce9f=a69_0x52b7,_0x46596a=await skillHubJsonRequest(_0x47ce9f(0x11e)+encodeURIComponent(_0x14a02c)+'/'+encodeURIComponent(_0x2e1013),{'allowNotFound':!![]});return _0x46596a?skillHubRuntimeDetailToRuntimeSkill(_0x46596a):undefined;}export async function listRuntimeSkills(_0x6c5a1b){const _0x4c9c58=a69_0x52b7,_0x127413=await skillHubJsonRequest('/api/runtime/v1/namespaces/'+encodeURIComponent(_0x6c5a1b['appCode'])+_0x4c9c58(0x11c),{'query':{'page':0x0,'size':0xc8}});return normalizeSkillHubRuntimeListResponse(_0x6c5a1b[_0x4c9c58(0x141)],_0x127413,_0x6c5a1b['scope']??_0x4c9c58(0x154),_0x6c5a1b[_0x4c9c58(0x173)]);}export async function listPersonalRuntimeSkills(_0x58d396){const _0x1939f2=a69_0x52b7;return(await listRuntimeSkills({'appCode':_0x58d396,'scope':_0x1939f2(0x129)}))['personal'];}export async function listCompanyRuntimeSkills(_0x226ac7){const _0x505dcf=a69_0x52b7;return(await listRuntimeSkills({'appCode':_0x226ac7,'scope':_0x505dcf(0x14e)}))['company'];}export async function listVisibleRuntimeSkills(_0x5b217a){const _0x25e414=a69_0x52b7;return(await listRuntimeSkills({'appCode':_0x5b217a,'scope':_0x25e414(0x154)}))['effective'];}export async function createPersonalRuntimeSkill(_0xef5b79,_0xedf81b){const _0x43b7a4=a69_0x52b7;return publishRuntimeSkill(_0xef5b79,_0xedf81b,{'visibility':_0x43b7a4(0x12a)});}export async function updatePersonalRuntimeSkill(_0x563713,_0x6f6a3f,_0x4e0c6f){const _0x4655af=a69_0x52b7;return publishRuntimeSkill(_0x6f6a3f,{..._0x4e0c6f,'skillCode':_0x4e0c6f[_0x4655af(0x18c)]??_0x563713},{'visibility':_0x4655af(0x12a)});}export async function publishCompanyRuntimeSkill(_0x389b50,_0x3b9068,_0x5af6e4={}){const _0x26bc1d=a69_0x52b7;return publishRuntimeSkill(_0x389b50,_0x3b9068,{'visibility':_0x26bc1d(0x137),'confirmWarnings':_0x5af6e4[_0x26bc1d(0x182)]});}function a69_0x52b7(_0x5ac027,_0x1e4314){_0x5ac027=_0x5ac027-0x117;const _0x3013c1=a69_0x3013();let _0x52b709=_0x3013c1[_0x5ac027];return _0x52b709;}export async function validateRuntimeSkillPublish(_0x2cb050,_0xd408f,_0x266c11){const _0x2daf36=a69_0x52b7,_0x139d74=buildRuntimeSkillPublishForm(_0xd408f,_0x266c11[_0x2daf36(0x139)]),_0x4407f1=await skillHubJsonRequest('/api/cli/v1/skills/'+encodeURIComponent(_0x2cb050)+_0x2daf36(0x18d),{'method':_0x2daf36(0x12b),'body':_0x139d74});return{'valid':_0x4407f1[_0x2daf36(0x17a)]===!![],'errors':Array[_0x2daf36(0x17d)](_0x4407f1[_0x2daf36(0x14a)])?_0x4407f1['errors']:[],'warnings':Array[_0x2daf36(0x17d)](_0x4407f1['warnings'])?_0x4407f1[_0x2daf36(0x150)]:[],'resolvedSlug':_0x4407f1[_0x2daf36(0x140)],'resolvedVersion':_0x4407f1[_0x2daf36(0x12d)]};}export async function downloadRuntimeSkillPackage(_0x3c27af,_0x48d60b,_0x3e5b23,_0x4ccfb6){const _0xa20ead=a69_0x52b7;void _0x3c27af;const _0x54cc29=_0x4ccfb6?_0xa20ead(0x123)+encodeURIComponent(_0x3e5b23)+'/'+encodeURIComponent(_0x48d60b)+_0xa20ead(0x180)+encodeURIComponent(_0x4ccfb6)+_0xa20ead(0x16e):_0xa20ead(0x123)+encodeURIComponent(_0x3e5b23)+'/'+encodeURIComponent(_0x48d60b)+_0xa20ead(0x16e);return skillHubBinaryRequest(_0x54cc29);}async function publishRuntimeSkill(_0x3b2c52,_0x20b635,_0x1e0eee){const _0x2e7a3e=a69_0x52b7,_0x167947=buildRuntimeSkillPublishForm(_0x20b635,_0x1e0eee[_0x2e7a3e(0x139)]),_0xf3d88c=await skillHubJsonRequest(_0x2e7a3e(0x123)+encodeURIComponent(_0x3b2c52)+_0x2e7a3e(0x126),{'method':_0x2e7a3e(0x12b),'query':{'confirmWarnings':_0x1e0eee['confirmWarnings']===!![]?!![]:undefined},'body':_0x167947});return{'appCode':_0xf3d88c[_0x2e7a3e(0x15e)]??_0x3b2c52,'skillCode':_0xf3d88c[_0x2e7a3e(0x193)]??_0x20b635[_0x2e7a3e(0x18c)]??'','skillName':_0x20b635[_0x2e7a3e(0x13e)]??_0xf3d88c[_0x2e7a3e(0x193)]??_0x20b635[_0x2e7a3e(0x18c)],'description':_0x20b635[_0x2e7a3e(0x192)],'scope':skillHubVisibilityToScope(_0xf3d88c[_0x2e7a3e(0x139)]??_0x1e0eee[_0x2e7a3e(0x139)])??_0x2e7a3e(0x129),'version':_0xf3d88c[_0x2e7a3e(0x118)]??_0x20b635[_0x2e7a3e(0x118)],'tags':_0x20b635[_0x2e7a3e(0x158)],'content':_0x20b635[_0x2e7a3e(0x11b)]};}function buildRuntimeSkillPublishForm(_0xece5e9,_0xf734f5){const _0x1847cc=a69_0x52b7,_0x4e7b5f=new FormData();return _0x4e7b5f[_0x1847cc(0x153)]('file',runtimeSkillPackageFile(_0xece5e9)),_0x4e7b5f['set'](_0x1847cc(0x139),_0xf734f5),_0x4e7b5f;}function runtimeSkillPackageFile(_0x3d12c8){const _0x29d588=a69_0x52b7;if(!_0x3d12c8[_0x29d588(0x142)])throw CliErrors[_0x29d588(0x170)](_0x29d588(0x130));const _0x48dfa7=Buffer[_0x29d588(0x186)](_0x3d12c8['packageBase64'],_0x29d588(0x185)),_0x2b6c82=new Blob([_0x48dfa7],{'type':_0x29d588(0x13a)}),_0x46d268=(_0x3d12c8[_0x29d588(0x18c)]||'skill')+_0x29d588(0x15d);if(typeof File!=='undefined')return new File([_0x2b6c82],_0x46d268,{'type':_0x29d588(0x13a)});return _0x2b6c82;}function normalizeSkillHubRuntimeListResponse(_0x502220,_0x571b29,_0x223438,_0x13ee33){const _0x18873b=a69_0x52b7,_0x8b5dfc=Array['isArray'](_0x571b29)?_0x571b29:Array['isArray'](_0x571b29?.[_0x18873b(0x165)])?_0x571b29[_0x18873b(0x165)]:[],_0x11b149=_0x13ee33?.[_0x18873b(0x12f)](),_0x31f63f=_0x8b5dfc[_0x18873b(0x15b)](_0x167884=>!_0x11b149||_0x167884[_0x18873b(0x193)]===_0x11b149)['map'](skillHubRuntimeItemToRuntimeSkill)[_0x18873b(0x15b)](_0x22b0d0=>Boolean(_0x22b0d0)),_0x372120=_0x31f63f[_0x18873b(0x15b)](_0x522074=>_0x522074['scope']===_0x18873b(0x129)),_0x58bf6c=_0x31f63f[_0x18873b(0x15b)](_0x5da5cf=>_0x5da5cf['scope']==='company');return{'appCode':_0x502220,'personal':_0x223438===_0x18873b(0x14e)?[]:_0x372120,'company':_0x223438===_0x18873b(0x129)?[]:_0x58bf6c,'effective':buildEffectiveRuntimeSkills(_0x372120,_0x58bf6c,_0x223438)};}function skillHubRuntimeItemToRuntimeSkill(_0x52002f){const _0x1afaac=a69_0x52b7,_0x3ffab5=_0x52002f['slug']?.[_0x1afaac(0x12f)](),_0x328805=skillHubVisibilityToScope(_0x52002f['visibility']);if(!_0x3ffab5||!_0x328805)return undefined;return{'id':_0x52002f['id'],'appCode':_0x52002f[_0x1afaac(0x15e)],'skillCode':_0x3ffab5,'skillName':_0x52002f['displayName']??_0x3ffab5,'description':_0x52002f['summary'],'scope':_0x328805,'version':skillHubRuntimeItemVersion(_0x52002f),'status':_0x52002f[_0x1afaac(0x163)]};}function skillHubRuntimeDetailToRuntimeSkill(_0x41cf05){const _0x3c30af=a69_0x52b7,_0x9308d2=_0x41cf05['slug']?.[_0x3c30af(0x12f)]();if(!_0x9308d2)return undefined;return{'id':_0x41cf05['id'],'appCode':_0x41cf05[_0x3c30af(0x15e)],'skillCode':_0x9308d2,'skillName':_0x41cf05[_0x3c30af(0x138)]??_0x9308d2,'description':_0x41cf05[_0x3c30af(0x159)],'scope':skillHubVisibilityToScope(_0x41cf05[_0x3c30af(0x139)])??_0x41cf05[_0x3c30af(0x139)]?.[_0x3c30af(0x168)](),'version':skillHubRuntimeItemVersion(_0x41cf05),'status':_0x41cf05[_0x3c30af(0x163)]};}function skillHubVisibilityToScope(_0x12b27b){const _0x34f7b3=a69_0x52b7;if(_0x12b27b===_0x34f7b3(0x12a))return _0x34f7b3(0x129);if(_0x12b27b==='NAMESPACE_ONLY')return _0x34f7b3(0x14e);return undefined;}function skillHubRuntimeItemVersion(_0x60a6eb){const _0xcea598=a69_0x52b7;return _0x60a6eb['publishedVersion']?.[_0xcea598(0x118)]??_0x60a6eb[_0xcea598(0x134)]?.[_0xcea598(0x118)]??_0x60a6eb[_0xcea598(0x155)]?.[_0xcea598(0x118)];}function buildEffectiveRuntimeSkills(_0x3e7032,_0x478f3a,_0x42be8a){const _0x3050ba=a69_0x52b7;if(_0x42be8a===_0x3050ba(0x129))return _0x3e7032;if(_0x42be8a===_0x3050ba(0x14e))return _0x478f3a;const _0x102cf7=new Map();for(const _0x41929f of _0x478f3a){_0x102cf7[_0x3050ba(0x153)](_0x41929f[_0x3050ba(0x18c)],_0x41929f);}for(const _0x115f26 of _0x3e7032){_0x102cf7['set'](_0x115f26['skillCode'],_0x115f26);}return Array[_0x3050ba(0x186)](_0x102cf7[_0x3050ba(0x18f)]());}function normalizeRuntimeSkillListResponse(_0x5e3885,_0x33a9a0){const _0x4a8607=a69_0x52b7;if(Array[_0x4a8607(0x17d)](_0x33a9a0)){const _0x18b3bf=_0x33a9a0[_0x4a8607(0x15b)](_0x365612=>_0x365612[_0x4a8607(0x14b)]===_0x4a8607(0x129)),_0x5a57aa=_0x33a9a0[_0x4a8607(0x15b)](_0x33ef7d=>_0x33ef7d[_0x4a8607(0x14b)]==='company');return{'appCode':_0x5e3885,'personal':_0x18b3bf,'company':_0x5a57aa,'effective':[..._0x5a57aa,..._0x18b3bf]};}return{'appCode':_0x33a9a0?.[_0x4a8607(0x141)]??_0x5e3885,'personal':Array[_0x4a8607(0x17d)](_0x33a9a0?.[_0x4a8607(0x129)])?_0x33a9a0['personal']:[],'company':Array[_0x4a8607(0x17d)](_0x33a9a0?.[_0x4a8607(0x14e)])?_0x33a9a0[_0x4a8607(0x14e)]:[],'effective':Array['isArray'](_0x33a9a0?.['effective'])?_0x33a9a0['effective']:[]};}
1
+ (function(_0x1e1de0,_0xb4ceb9){const _0x544196=a69_0x5dd1,_0x151bb6=_0x1e1de0();while(!![]){try{const _0x462ab1=-parseInt(_0x544196(0x249))/0x1+-parseInt(_0x544196(0x234))/0x2+-parseInt(_0x544196(0x253))/0x3*(-parseInt(_0x544196(0x20a))/0x4)+-parseInt(_0x544196(0x25e))/0x5+parseInt(_0x544196(0x239))/0x6*(parseInt(_0x544196(0x242))/0x7)+parseInt(_0x544196(0x1f4))/0x8+-parseInt(_0x544196(0x202))/0x9*(-parseInt(_0x544196(0x219))/0xa);if(_0x462ab1===_0xb4ceb9)break;else _0x151bb6['push'](_0x151bb6['shift']());}catch(_0x5181e0){_0x151bb6['push'](_0x151bb6['shift']());}}}(a69_0x33e3,0x32d75));import{getApiDomain,getRuntimeDomain,getSkillHubDomain}from'../constant/domain.js';import{PRODUCT_CONFIG}from'../constant/product.js';import{CliErrors}from'../errors.js';import{extractList}from'../framework/response.js';let _activeAK;export function setActiveAK(_0x561051){_activeAK=_0x561051||undefined;}export function clearActiveAK(){_activeAK=undefined;}async function apiRequest(_0x3d9b06,_0x13bc81={}){const _0x26879a=a69_0x5dd1,{method:method='GET',body:_0x2f0e39,headers:headers={},timeout:timeout=0x7530}=_0x13bc81,_0x27bda8=_activeAK,_0x33de6b=getRuntimeDomain();if(!_0x27bda8)throw CliErrors['authRequired'](_0x26879a(0x22c)+PRODUCT_CONFIG['newConfigFileName']+'.');const _0x12c1ac=''+_0x33de6b+_0x3d9b06,_0x1be6b2={'X-User-AK':_0x27bda8},_0x394b07=new AbortController(),_0x5248b1=setTimeout(()=>_0x394b07[_0x26879a(0x245)](),timeout);try{const _0x350776=await fetch(_0x12c1ac,{'method':method,'headers':{'Content-Type':'application/json','X-Invoke-Source':PRODUCT_CONFIG[_0x26879a(0x210)],..._0x1be6b2,...headers},'body':_0x2f0e39?JSON[_0x26879a(0x250)](_0x2f0e39):undefined,'signal':_0x394b07[_0x26879a(0x264)]});let _0x34ef5d;try{_0x34ef5d=await _0x350776['json']();}catch{throw CliErrors[_0x26879a(0x224)](_0x26879a(0x262)+_0x350776[_0x26879a(0x24d)]+')',_0x350776[_0x26879a(0x24d)]>=0x190?_0x26879a(0x1f5):undefined);}if(!_0x350776['ok']||_0x34ef5d[_0x26879a(0x213)]===![])throw CliErrors['apiError'](_0x34ef5d[_0x26879a(0x207)]||_0x34ef5d[_0x26879a(0x22a)]||_0x26879a(0x1e4)+_0x350776[_0x26879a(0x24d)],_0x34ef5d[_0x26879a(0x1ff)]?_0x26879a(0x21c)+_0x34ef5d['errorCode']:undefined);return _0x34ef5d;}catch(_0x19b205){if(_0x19b205 instanceof Error&&_0x19b205[_0x26879a(0x1f6)]===_0x26879a(0x1e7))throw CliErrors['apiError'](_0x26879a(0x255)+_0x12c1ac);throw _0x19b205;}finally{clearTimeout(_0x5248b1);}}async function apiBinaryRequest(_0x592276,_0x3ad0b8={}){const _0x3430f9=a69_0x5dd1,{method:method=_0x3430f9(0x244),headers:headers={},timeout:timeout=0x7530}=_0x3ad0b8,_0x4028c7=_activeAK,_0x11b1f3=getRuntimeDomain();if(!_0x4028c7)throw CliErrors['authRequired'](_0x3430f9(0x22c)+PRODUCT_CONFIG[_0x3430f9(0x21d)]+'.');const _0x1bf518=''+_0x11b1f3+_0x592276,_0x533bdb=new AbortController(),_0x470328=setTimeout(()=>_0x533bdb[_0x3430f9(0x245)](),timeout);try{const _0x56ecc8=await fetch(_0x1bf518,{'method':method,'headers':{'X-Invoke-Source':PRODUCT_CONFIG[_0x3430f9(0x210)],'X-User-AK':_0x4028c7,...headers},'signal':_0x533bdb[_0x3430f9(0x264)]});if(!_0x56ecc8['ok']){let _0xd4181;try{const _0x85b4bf=await _0x56ecc8[_0x3430f9(0x23e)]();_0xd4181=_0x85b4bf[_0x3430f9(0x207)]||_0x85b4bf[_0x3430f9(0x22a)]||_0x85b4bf[_0x3430f9(0x1ff)];}catch{_0xd4181=await _0x56ecc8[_0x3430f9(0x20e)]()[_0x3430f9(0x246)](()=>undefined);}throw CliErrors['apiError'](_0xd4181||_0x3430f9(0x1e4)+_0x56ecc8[_0x3430f9(0x24d)],_0x3430f9(0x1df)+_0x1bf518);}return Buffer[_0x3430f9(0x21f)](await _0x56ecc8['arrayBuffer']());}catch(_0x31ecfd){if(_0x31ecfd instanceof Error&&_0x31ecfd[_0x3430f9(0x1f6)]===_0x3430f9(0x1e7))throw CliErrors[_0x3430f9(0x224)](_0x3430f9(0x255)+_0x1bf518);throw _0x31ecfd;}finally{clearTimeout(_0x470328);}}async function toolboxRequest(_0x1cd093,_0x4e51d9,_0x36d4d5={}){const _0x5addfa=a69_0x5dd1,{method:method=_0x5addfa(0x244),headers:headers={},timeout:timeout=0x7530}=_0x36d4d5,_0x287348=_activeAK;if(!_0x287348)throw CliErrors['authRequired'](_0x5addfa(0x22c)+PRODUCT_CONFIG[_0x5addfa(0x21d)]+'.');const _0x2b06a9=getApiDomain()[_0x5addfa(0x259)](/\/$/,''),_0x5c8389=new URL(_0x1cd093,_0x2b06a9+_0x5addfa(0x22d));if(_0x4e51d9)for(const [_0x186c79,_0x5bbea6]of Object[_0x5addfa(0x208)](_0x4e51d9)){_0x5bbea6!==undefined&&_0x5bbea6!==null&&_0x5c8389[_0x5addfa(0x233)]['set'](_0x186c79,String(_0x5bbea6));}const _0xcd320=new AbortController(),_0x13df80=setTimeout(()=>_0xcd320['abort'](),timeout);try{const _0x1c4446=await fetch(_0x5c8389,{'method':method,'headers':{'Content-Type':_0x5addfa(0x1fc),'X-Invoke-Source':PRODUCT_CONFIG['invokeSource'],'X-User-AK':_0x287348,...headers},'signal':_0xcd320['signal']});let _0x5c80a1;try{_0x5c80a1=await _0x1c4446[_0x5addfa(0x23e)]();}catch{throw CliErrors['apiError'](_0x5addfa(0x237)+_0x1c4446[_0x5addfa(0x24d)]+')',_0x1c4446[_0x5addfa(0x24d)]>=0x190?_0x5addfa(0x1f5):undefined);}if(!_0x1c4446['ok']){const _0x3bd808=_0x5c80a1&&typeof _0x5c80a1==='object'?_0x5c80a1:{};throw CliErrors['apiError'](_0x3bd808['errorMsg']||_0x3bd808['message']||_0x5addfa(0x1e2)+_0x1c4446[_0x5addfa(0x24d)],_0x3bd808[_0x5addfa(0x1ff)]?_0x5addfa(0x25d)+_0x3bd808[_0x5addfa(0x1ff)]:undefined);}if(_0x5c80a1&&typeof _0x5c80a1===_0x5addfa(0x243)&&_0x5addfa(0x213)in _0x5c80a1&&typeof _0x5c80a1['success']===_0x5addfa(0x214)){const _0x5364aa=_0x5c80a1;if(!_0x5364aa[_0x5addfa(0x213)])throw CliErrors['apiError'](_0x5364aa['errorMsg']||_0x5364aa[_0x5addfa(0x22a)]||_0x5addfa(0x222),_0x5364aa['errorCode']?'Toolbox\x20error\x20code:\x20'+_0x5364aa[_0x5addfa(0x1ff)]:undefined);return _0x5364aa['data'];}return _0x5c80a1;}catch(_0xa8b2ca){if(_0xa8b2ca instanceof Error&&_0xa8b2ca[_0x5addfa(0x1f6)]==='AbortError')throw CliErrors[_0x5addfa(0x224)](_0x5addfa(0x255)+_0x5c8389[_0x5addfa(0x25b)]());throw _0xa8b2ca;}finally{clearTimeout(_0x13df80);}}async function skillHubJsonRequest(_0x1dc62b,_0x5611c6={}){const _0x388e32=a69_0x5dd1,{method:method=_0x388e32(0x244),query:_0x5cb114,body:_0x176850,headers:headers={},timeout:timeout=0x7530,allowNotFound:allowNotFound=![]}=_0x5611c6,_0x53918b=_activeAK;if(!_0x53918b)throw CliErrors[_0x388e32(0x220)]('Configure\x20accessKey\x20in\x20'+PRODUCT_CONFIG[_0x388e32(0x21d)]+'.');const _0x362af5=getSkillHubDomain()['replace'](/\/$/,''),_0x3287b0=new URL(_0x1dc62b,_0x362af5+'/');if(_0x5cb114)for(const [_0x4de3ea,_0x379aeb]of Object[_0x388e32(0x208)](_0x5cb114)){_0x379aeb!==undefined&&_0x379aeb!==null&&_0x3287b0['searchParams'][_0x388e32(0x1ea)](_0x4de3ea,String(_0x379aeb));}const _0x3d8b36=new AbortController(),_0x4e9776=setTimeout(()=>_0x3d8b36['abort'](),timeout);try{const _0x5e48aa=await fetch(_0x3287b0[_0x388e32(0x25b)](),{'method':method,'headers':{'Accept':_0x388e32(0x1fc),'X-Invoke-Source':PRODUCT_CONFIG[_0x388e32(0x210)],'X-User-AK':_0x53918b,...headers},'body':_0x176850,'signal':_0x3d8b36[_0x388e32(0x264)]});let _0x2e5feb;try{_0x2e5feb=await _0x5e48aa[_0x388e32(0x23e)]();}catch{if(allowNotFound&&_0x5e48aa['status']===0x194)return undefined;throw CliErrors['apiError']('SkillHub\x20returned\x20non-JSON\x20response\x20(HTTP\x20'+_0x5e48aa[_0x388e32(0x24d)]+')',_0x5e48aa[_0x388e32(0x24d)]>=0x190?_0x388e32(0x1f5):undefined);}if(allowNotFound&&(_0x5e48aa[_0x388e32(0x24d)]===0x194||_0x2e5feb?.[_0x388e32(0x263)]===0x194))return undefined;const _0x5f10a8=!_0x5e48aa['ok']||_0x2e5feb?.['success']===![]||typeof _0x2e5feb?.[_0x388e32(0x263)]===_0x388e32(0x217)&&_0x2e5feb['code']>=0x190;if(_0x5f10a8)throw CliErrors['apiError'](_0x2e5feb?.[_0x388e32(0x207)]||_0x2e5feb?.[_0x388e32(0x22a)]||_0x2e5feb?.[_0x388e32(0x23b)]||_0x388e32(0x1e9)+_0x5e48aa[_0x388e32(0x24d)],_0x2e5feb?.[_0x388e32(0x1ff)]?'SkillHub\x20error\x20code:\x20'+_0x2e5feb[_0x388e32(0x1ff)]:undefined);return _0x2e5feb?.['data']??_0x2e5feb;}catch(_0x166a1a){if(_0x166a1a instanceof Error&&_0x166a1a[_0x388e32(0x1f6)]===_0x388e32(0x1e7))throw CliErrors[_0x388e32(0x224)](_0x388e32(0x255)+_0x3287b0[_0x388e32(0x25b)]());throw _0x166a1a;}finally{clearTimeout(_0x4e9776);}}async function skillHubBinaryRequest(_0x2e7312,_0x396ec6={}){const _0x1dc185=a69_0x5dd1,{query:_0x26353b,headers:headers={},timeout:timeout=0x7530}=_0x396ec6,_0x12528f=_activeAK;if(!_0x12528f)throw CliErrors[_0x1dc185(0x220)](_0x1dc185(0x22c)+PRODUCT_CONFIG[_0x1dc185(0x21d)]+'.');const _0x4a06ae=getSkillHubDomain()[_0x1dc185(0x259)](/\/$/,''),_0x143e85=new URL(_0x2e7312,_0x4a06ae+'/');if(_0x26353b)for(const [_0x1c74be,_0x57259d]of Object[_0x1dc185(0x208)](_0x26353b)){_0x57259d!==undefined&&_0x57259d!==null&&_0x143e85[_0x1dc185(0x233)][_0x1dc185(0x1ea)](_0x1c74be,String(_0x57259d));}const _0x1fc2ca=new AbortController(),_0x2c2381=setTimeout(()=>_0x1fc2ca[_0x1dc185(0x245)](),timeout);try{const _0x2caa51=await fetch(_0x143e85[_0x1dc185(0x25b)](),{'method':'GET','headers':{'Accept':_0x1dc185(0x225),'X-Invoke-Source':PRODUCT_CONFIG[_0x1dc185(0x210)],'X-User-AK':_0x12528f,...headers},'signal':_0x1fc2ca['signal']});if(!_0x2caa51['ok']){let _0x531a84;try{const _0x483497=await _0x2caa51[_0x1dc185(0x23e)]();_0x531a84=_0x483497['errorMsg']||_0x483497['message']||_0x483497[_0x1dc185(0x23b)]||_0x483497[_0x1dc185(0x1ff)];}catch{_0x531a84=await _0x2caa51['text']()[_0x1dc185(0x246)](()=>undefined);}throw CliErrors[_0x1dc185(0x224)](_0x531a84||_0x1dc185(0x1e9)+_0x2caa51['status'],_0x1dc185(0x1df)+_0x143e85[_0x1dc185(0x25b)]());}return Buffer[_0x1dc185(0x21f)](await _0x2caa51[_0x1dc185(0x1f1)]());}catch(_0x5823a6){if(_0x5823a6 instanceof Error&&_0x5823a6[_0x1dc185(0x1f6)]===_0x1dc185(0x1e7))throw CliErrors[_0x1dc185(0x224)]('Request\x20timeout:\x20'+_0x143e85[_0x1dc185(0x25b)]());throw _0x5823a6;}finally{clearTimeout(_0x2c2381);}}export async function getBffScriptInfo(_0x5be98c){const _0x150bff=a69_0x5dd1,_0x51b86b=await apiRequest('/client/bff/query/'+_0x5be98c);if(!_0x51b86b[_0x150bff(0x1e0)])throw CliErrors[_0x150bff(0x241)](_0x150bff(0x201)+_0x5be98c);return _0x51b86b[_0x150bff(0x1e0)];}export async function getSqlQueryInfo(_0x1a3c80,_0x4d9f00){const _0x5074ce=a69_0x5dd1,_0x20ebef=await apiRequest(_0x5074ce(0x1e5),{'method':'POST','body':{'appCode':_0x1a3c80,'currentPage':0x1,'pageSize':0x1,'sqlCode':_0x4d9f00}}),_0x1ef391=_0x20ebef[_0x5074ce(0x1e0)],_0x553375=_0x1ef391&&typeof _0x1ef391===_0x5074ce(0x243)&&_0x5074ce(0x1f3)in _0x1ef391?_0x1ef391[_0x5074ce(0x1f3)]?.[0x0]:_0x1ef391&&typeof _0x1ef391===_0x5074ce(0x243)&&'sqlCode'in _0x1ef391?_0x1ef391:undefined;if(!_0x553375)throw CliErrors[_0x5074ce(0x241)](_0x5074ce(0x1fe)+_0x4d9f00);return _0x553375;}function isRemoteAppItem(_0x60d691){const _0x1adba5=a69_0x5dd1;return!!_0x60d691&&typeof _0x60d691===_0x1adba5(0x243)&&typeof _0x60d691[_0x1adba5(0x1fb)]==='string'&&typeof _0x60d691[_0x1adba5(0x226)]===_0x1adba5(0x211);}function extractRemoteAppItems(_0x3e1cff){const _0x299bca=a69_0x5dd1;if(Array[_0x299bca(0x1f0)](_0x3e1cff))return _0x3e1cff[_0x299bca(0x23a)](isRemoteAppItem);if(!_0x3e1cff||typeof _0x3e1cff!=='object')throw CliErrors[_0x299bca(0x224)](_0x299bca(0x20b));const _0x38af2c=_0x3e1cff;if(Array[_0x299bca(0x1f0)](_0x38af2c[_0x299bca(0x1f3)]))return _0x38af2c['tableData']['filter'](isRemoteAppItem);if(_0x38af2c['data']&&typeof _0x38af2c[_0x299bca(0x1e0)]===_0x299bca(0x243)){const _0x1b5b1f=_0x38af2c[_0x299bca(0x1e0)];if(Array[_0x299bca(0x1f0)](_0x1b5b1f['tableData']))return _0x1b5b1f[_0x299bca(0x1f3)][_0x299bca(0x23a)](isRemoteAppItem);}throw CliErrors[_0x299bca(0x224)](_0x299bca(0x212));}export async function getMyApps(){const _0x39298c=a69_0x5dd1,_0x3d73ec=await apiRequest('/client/app/my-apps');return extractRemoteAppItems(_0x3d73ec[_0x39298c(0x1e0)]);}export async function getLoginUserInfo(){const _0x1ed77c=a69_0x5dd1,_0x549558=await apiRequest(_0x1ed77c(0x23c));if(!_0x549558['data']||typeof _0x549558['data']!==_0x1ed77c(0x243)||Array[_0x1ed77c(0x1f0)](_0x549558[_0x1ed77c(0x1e0)]))throw CliErrors[_0x1ed77c(0x224)](_0x1ed77c(0x252));return _0x549558[_0x1ed77c(0x1e0)];}export async function listDatasets(_0x15fedd,_0x1156b5){const _0x2adbb3=a69_0x5dd1,_0x50d51d=await apiRequest(_0x2adbb3(0x216),{'method':'POST','body':{'appCode':_0x15fedd,..._0x1156b5?.[_0x2adbb3(0x263)]&&{'code':_0x1156b5[_0x2adbb3(0x263)]},..._0x1156b5?.[_0x2adbb3(0x1f6)]&&{'name':_0x1156b5['name']}}});return extractList(_0x50d51d[_0x2adbb3(0x1e0)]);}export async function getDatasetDetail(_0x37154c){const _0x4eb2b3=a69_0x5dd1,_0x550da0=await apiRequest(_0x4eb2b3(0x218)+encodeURIComponent(_0x37154c));return _0x550da0[_0x4eb2b3(0x1e0)];}export async function getDatasetSdkUsageDoc(_0x1a132f,_0x27a6b6){const _0x12829f=a69_0x5dd1,_0x12b5e4=await toolboxRequest(_0x12829f(0x1e6),{'datasetCode':_0x1a132f,'appCode':_0x27a6b6});return typeof _0x12b5e4?.[_0x12829f(0x20d)]==='string'?_0x12b5e4[_0x12829f(0x20d)]:'';}export async function getRuntimeAppConfigByKey(_0x1d75f4,_0xb4696b){const _0x1b3309=a69_0x5dd1,_0x5d047c=new URLSearchParams({'appCode':_0x1d75f4,'key':_0xb4696b}),_0xe6cf0=await apiRequest('/client/app-config/getByKey?'+_0x5d047c[_0x1b3309(0x25b)]());if(!_0xe6cf0[_0x1b3309(0x1e0)])throw CliErrors[_0x1b3309(0x241)](_0x1b3309(0x215)+_0xb4696b);return _0xe6cf0['data'];}export async function listRuntimeArtifacts(_0x30f64c,_0x2e1c6a){const _0x3a73b3=a69_0x5dd1,_0x5f1db1=new URLSearchParams({'appCode':_0x30f64c});if(_0x2e1c6a?.[_0x3a73b3(0x227)])_0x5f1db1['set'](_0x3a73b3(0x227),_0x2e1c6a[_0x3a73b3(0x227)]);if(_0x2e1c6a?.['source'])_0x5f1db1[_0x3a73b3(0x1ea)](_0x3a73b3(0x1e1),_0x2e1c6a['source']);if(_0x2e1c6a?.['favorite']!==undefined)_0x5f1db1[_0x3a73b3(0x1ea)](_0x3a73b3(0x254),String(_0x2e1c6a[_0x3a73b3(0x254)]));const _0x534516=await apiRequest(_0x3a73b3(0x1f9)+_0x5f1db1[_0x3a73b3(0x25b)]());return Array[_0x3a73b3(0x1f0)](_0x534516[_0x3a73b3(0x1e0)])?_0x534516[_0x3a73b3(0x1e0)]:[];}export async function getRuntimeArtifact(_0x10bc80,_0x5c8f1a){const _0x1b3c57=a69_0x5dd1,_0x1c9ab7=await apiRequest('/client/artifact/'+_0x10bc80+'?appCode='+encodeURIComponent(_0x5c8f1a));if(!_0x1c9ab7[_0x1b3c57(0x1e0)])throw CliErrors[_0x1b3c57(0x241)](_0x1b3c57(0x251)+_0x10bc80);return _0x1c9ab7[_0x1b3c57(0x1e0)];}export async function createRuntimeArtifact(_0x465914,_0x513a1b){const _0x4bee87=a69_0x5dd1,_0x1ccb33=await apiRequest(_0x4bee87(0x235),{'method':_0x4bee87(0x209),'body':{'appCode':_0x465914,..._0x513a1b}});return _0x1ccb33[_0x4bee87(0x1e0)];}export async function updateRuntimeArtifact(_0x46c5df,_0x531d06,_0x40ae50){const _0x22fe0a=a69_0x5dd1,_0x4a6cfd=await apiRequest(_0x22fe0a(0x258)+_0x46c5df+_0x22fe0a(0x24f),{'method':_0x22fe0a(0x209),'body':{'appCode':_0x531d06,..._0x40ae50}});return _0x4a6cfd[_0x22fe0a(0x1e0)];}export async function listPersonalBffs(_0x510614){const _0x9dc4f1=a69_0x5dd1,_0x56a639=await apiRequest(_0x9dc4f1(0x229)+encodeURIComponent(_0x510614));return Array[_0x9dc4f1(0x1f0)](_0x56a639['data'])?_0x56a639[_0x9dc4f1(0x1e0)]:[];}function a69_0x33e3(){const _0xd026fd=['skillCode','API\x20error\x20code:\x20','newConfigFileName','visibility','from','authRequired','PRIVATE','Toolbox\x20API\x20error','valid','apiError','application/octet-stream','appName','artifactType','skill','/client/runtime-bff/personal/list?appCode=','message','resolvedSlug','Configure\x20accessKey\x20in\x20','/api/node-toolbox/','toLowerCase','personal','summary','description','/publish','searchParams','752260kcpWMz','/client/artifact/create','?appCode=','Toolbox\x20returned\x20non-JSON\x20response\x20(HTTP\x20','namespace','63258SaLgjd','filter','msg','/client/user/loginUserInfo','warnings','json','/api/v1/skills/','errors','validation','259ZFmccg','object','GET','abort','catch','Knowledge-base\x20entry\x20not\x20found:\x20id=','slug','191927sfGYEP','/publish/validate','Missing\x20Skill\x20package\x20payload.','file','status','.zip','/update','stringify','Artifact\x20not\x20found:\x20id=','Invalid\x20login\x20user\x20info\x20response:\x20expected\x20object.','822pRdTto','favorite','Request\x20timeout:\x20','/client/knowledge-base/personal/','/versions/','/client/artifact/','replace','version','toString','/skills','Toolbox\x20error\x20code:\x20','374490BdzAxp','/client/runtime-bff/personal/','all','items','API\x20returned\x20non-JSON\x20response\x20(HTTP\x20','code','signal','effective','Download\x20failed:\x20','data','source','Toolbox\x20API\x20error:\x20','base64','API\x20error:\x20','/client/sql/query','api-doc-generator','AbortError','application/zip','SkillHub\x20API\x20error:\x20','set','map','trim','/download','scope','resolvedVersion','isArray','arrayBuffer','values','tableData','3303536NvvvuZ','Check\x20your\x20credentials\x20and\x20try\x20again.','name','/client/runtime-bff/personal/create','headlineVersion','/client/artifact/list?','displayName','appCode','application/json','undefined','SQL\x20query\x20not\x20found:\x20','errorCode','company','BFF\x20script\x20not\x20found:\x20id=','9lHCUlC','/api/cli/v1/skills/','/client/knowledge-base/search','publishedVersion','topK','errorMsg','entries','POST','584zSCpMK','Invalid\x20app\x20list\x20response:\x20expected\x20object\x20or\x20array.','content','markdown','text','/api/runtime/v1/namespaces/','invokeSource','string','Invalid\x20app\x20list\x20response:\x20missing\x20data.tableData.','success','boolean','App\x20config\x20not\x20found:\x20key=','/client/dataset/list','number','/client/dataset/get-driven-data?code=','81630xfQrDm','confirmWarnings'];a69_0x33e3=function(){return _0xd026fd;};return a69_0x33e3();}export async function getPersonalBff(_0x63d603,_0x4ea25c){const _0x3a093b=a69_0x5dd1,_0x3e7ba8=await apiRequest(_0x3a093b(0x25f)+_0x63d603+_0x3a093b(0x236)+encodeURIComponent(_0x4ea25c));if(!_0x3e7ba8[_0x3a093b(0x1e0)])throw CliErrors[_0x3a093b(0x241)]('Personal\x20BFF\x20not\x20found:\x20id='+_0x63d603);return _0x3e7ba8[_0x3a093b(0x1e0)];}export async function createPersonalBff(_0x19709c,_0x5181a5){const _0x285912=a69_0x5dd1,_0x9d224=await apiRequest(_0x285912(0x1f7),{'method':_0x285912(0x209),'body':{'appCode':_0x19709c,..._0x5181a5}});return _0x9d224[_0x285912(0x1e0)];}export async function updatePersonalBff(_0x204b5d,_0x2df8b9,_0x2a724e){const _0x1c0fe0=a69_0x5dd1,_0xd25859=await apiRequest(_0x1c0fe0(0x25f)+_0x204b5d+_0x1c0fe0(0x24f),{'method':_0x1c0fe0(0x209),'body':{'appCode':_0x2df8b9,..._0x2a724e}});return _0xd25859[_0x1c0fe0(0x1e0)];}export async function executePersonalBff(_0x51b2a1,_0x1d1ff1,_0x440685){const _0x2679a6=a69_0x5dd1,_0x35e246=await apiRequest(_0x2679a6(0x25f)+_0x51b2a1+'/execute?appCode='+encodeURIComponent(_0x1d1ff1),{'method':_0x2679a6(0x209),'body':_0x440685});return _0x35e246['data'];}export async function listPersonalKnowledgeBaseItems(_0x7e2dc3){const _0x5ecdb5=a69_0x5dd1,_0x500268=await apiRequest('/client/knowledge-base/personal/list?appCode='+encodeURIComponent(_0x7e2dc3));return Array[_0x5ecdb5(0x1f0)](_0x500268[_0x5ecdb5(0x1e0)])?_0x500268[_0x5ecdb5(0x1e0)]:[];}export async function getPersonalKnowledgeBaseItem(_0x2d04ca,_0x10a894){const _0x4d7206=a69_0x5dd1,_0x3f4c70=await apiRequest(_0x4d7206(0x256)+_0x2d04ca+_0x4d7206(0x236)+encodeURIComponent(_0x10a894));if(!_0x3f4c70[_0x4d7206(0x1e0)])throw CliErrors[_0x4d7206(0x241)](_0x4d7206(0x247)+_0x2d04ca);return _0x3f4c70[_0x4d7206(0x1e0)];}export async function createPersonalKnowledgeBaseItem(_0x4b7eca,_0x1cdb3e){const _0x32ad97=a69_0x5dd1,_0x96774d=await apiRequest('/client/knowledge-base/personal/create',{'method':_0x32ad97(0x209),'body':{'appCode':_0x4b7eca,..._0x1cdb3e}});return _0x96774d['data'];}export async function updatePersonalKnowledgeBaseItem(_0x15ccbf,_0x129cef,_0x55252e){const _0x53e79d=a69_0x5dd1,_0x480e79=await apiRequest(_0x53e79d(0x256)+_0x15ccbf+_0x53e79d(0x24f),{'method':'POST','body':{'appCode':_0x129cef,..._0x55252e}});return _0x480e79['data'];}export async function searchKnowledgeBase(_0x33c80d,_0x319f75){const _0x4ee446=a69_0x5dd1,_0xde5b72=await apiRequest(_0x4ee446(0x204),{'method':_0x4ee446(0x209),'body':{'appCode':_0x33c80d,'query':_0x319f75['query'],..._0x319f75[_0x4ee446(0x206)]!==undefined?{'topK':_0x319f75['topK']}:{}}});return Array['isArray'](_0xde5b72[_0x4ee446(0x1e0)])?_0xde5b72[_0x4ee446(0x1e0)]:[];}export async function getRuntimeSkillByCode(_0x47888b,_0x450b02){const _0x2f042d=a69_0x5dd1,_0x3201ac=await skillHubJsonRequest(_0x2f042d(0x23f)+encodeURIComponent(_0x47888b)+'/'+encodeURIComponent(_0x450b02),{'allowNotFound':!![]});return _0x3201ac?skillHubRuntimeDetailToRuntimeSkill(_0x3201ac):undefined;}export async function listRuntimeSkills(_0x20074a){const _0x19024e=a69_0x5dd1,_0x17d44a=await skillHubJsonRequest(_0x19024e(0x20f)+encodeURIComponent(_0x20074a[_0x19024e(0x1fb)])+_0x19024e(0x25c),{'query':{'page':0x0,'size':0xc8}});return normalizeSkillHubRuntimeListResponse(_0x20074a[_0x19024e(0x1fb)],_0x17d44a,_0x20074a[_0x19024e(0x1ee)]??_0x19024e(0x260),_0x20074a[_0x19024e(0x263)]);}export async function listPersonalRuntimeSkills(_0x77f4a0){const _0x2e06da=a69_0x5dd1;return(await listRuntimeSkills({'appCode':_0x77f4a0,'scope':_0x2e06da(0x22f)}))['personal'];}export async function listCompanyRuntimeSkills(_0x15f36e){const _0xb0ec53=a69_0x5dd1;return(await listRuntimeSkills({'appCode':_0x15f36e,'scope':_0xb0ec53(0x200)}))[_0xb0ec53(0x200)];}export async function listVisibleRuntimeSkills(_0x1e27ee){const _0x71ad22=a69_0x5dd1;return(await listRuntimeSkills({'appCode':_0x1e27ee,'scope':_0x71ad22(0x260)}))[_0x71ad22(0x1de)];}export async function createPersonalRuntimeSkill(_0x25973c,_0x3cedda){return publishRuntimeSkill(_0x25973c,_0x3cedda,{'visibility':'PRIVATE'});}export async function updatePersonalRuntimeSkill(_0x2cbe18,_0x1b95dc,_0x4a690e){return publishRuntimeSkill(_0x1b95dc,{..._0x4a690e,'skillCode':_0x4a690e['skillCode']??_0x2cbe18},{'visibility':'PRIVATE'});}function a69_0x5dd1(_0x18c684,_0x42cca3){_0x18c684=_0x18c684-0x1de;const _0x33e38c=a69_0x33e3();let _0x5dd1b1=_0x33e38c[_0x18c684];return _0x5dd1b1;}export async function publishCompanyRuntimeSkill(_0x3305a5,_0x1453c4,_0x2dda5c={}){const _0x4993b2=a69_0x5dd1;return publishRuntimeSkill(_0x3305a5,_0x1453c4,{'visibility':'NAMESPACE_ONLY','confirmWarnings':_0x2dda5c[_0x4993b2(0x21a)]});}export async function validateRuntimeSkillPublish(_0x1ed76b,_0x24110c,_0x359856){const _0x2fe731=a69_0x5dd1,_0x314797=buildRuntimeSkillPublishForm(_0x24110c,_0x359856[_0x2fe731(0x21e)]),_0x119ee4=await skillHubJsonRequest(_0x2fe731(0x203)+encodeURIComponent(_0x1ed76b)+_0x2fe731(0x24a),{'method':_0x2fe731(0x209),'body':_0x314797});return{'valid':_0x119ee4[_0x2fe731(0x223)]===!![],'errors':Array[_0x2fe731(0x1f0)](_0x119ee4[_0x2fe731(0x240)])?_0x119ee4[_0x2fe731(0x240)]:[],'warnings':Array[_0x2fe731(0x1f0)](_0x119ee4[_0x2fe731(0x23d)])?_0x119ee4[_0x2fe731(0x23d)]:[],'resolvedSlug':_0x119ee4[_0x2fe731(0x22b)],'resolvedVersion':_0x119ee4[_0x2fe731(0x1ef)]};}export async function downloadRuntimeSkillPackage(_0x23f702,_0x1706a1,_0x21bd56,_0x1d1539){const _0x2104bc=a69_0x5dd1;void _0x23f702;const _0x4c195f=_0x1d1539?_0x2104bc(0x203)+encodeURIComponent(_0x21bd56)+'/'+encodeURIComponent(_0x1706a1)+_0x2104bc(0x257)+encodeURIComponent(_0x1d1539)+_0x2104bc(0x1ed):_0x2104bc(0x203)+encodeURIComponent(_0x21bd56)+'/'+encodeURIComponent(_0x1706a1)+_0x2104bc(0x1ed);return skillHubBinaryRequest(_0x4c195f);}async function publishRuntimeSkill(_0x440cfc,_0x64d2a6,_0x8c903e){const _0x45b08f=a69_0x5dd1,_0x3da1b2=buildRuntimeSkillPublishForm(_0x64d2a6,_0x8c903e[_0x45b08f(0x21e)]),_0x579331=await skillHubJsonRequest('/api/cli/v1/skills/'+encodeURIComponent(_0x440cfc)+_0x45b08f(0x232),{'method':'POST','query':{'confirmWarnings':_0x8c903e[_0x45b08f(0x21a)]===!![]?!![]:undefined},'body':_0x3da1b2});return{'appCode':_0x579331[_0x45b08f(0x238)]??_0x440cfc,'skillCode':_0x579331['slug']??_0x64d2a6[_0x45b08f(0x21b)]??'','skillName':_0x64d2a6['skillName']??_0x579331[_0x45b08f(0x248)]??_0x64d2a6[_0x45b08f(0x21b)],'description':_0x64d2a6[_0x45b08f(0x231)],'scope':skillHubVisibilityToScope(_0x579331[_0x45b08f(0x21e)]??_0x8c903e[_0x45b08f(0x21e)])??_0x45b08f(0x22f),'version':_0x579331[_0x45b08f(0x25a)]??_0x64d2a6['version'],'tags':_0x64d2a6['tags'],'content':_0x64d2a6[_0x45b08f(0x20c)]};}function buildRuntimeSkillPublishForm(_0x41067c,_0x29e3fc){const _0x45eedd=a69_0x5dd1,_0x39218d=new FormData();return _0x39218d[_0x45eedd(0x1ea)](_0x45eedd(0x24c),runtimeSkillPackageFile(_0x41067c)),_0x39218d[_0x45eedd(0x1ea)](_0x45eedd(0x21e),_0x29e3fc),_0x39218d;}function runtimeSkillPackageFile(_0x35aed6){const _0x4b8d59=a69_0x5dd1;if(!_0x35aed6['packageBase64'])throw CliErrors[_0x4b8d59(0x241)](_0x4b8d59(0x24b));const _0x28e1b1=Buffer[_0x4b8d59(0x21f)](_0x35aed6['packageBase64'],_0x4b8d59(0x1e3)),_0x3677de=new Blob([_0x28e1b1],{'type':'application/zip'}),_0x1635ea=(_0x35aed6[_0x4b8d59(0x21b)]||_0x4b8d59(0x228))+_0x4b8d59(0x24e);if(typeof File!==_0x4b8d59(0x1fd))return new File([_0x3677de],_0x1635ea,{'type':_0x4b8d59(0x1e8)});return _0x3677de;}function normalizeSkillHubRuntimeListResponse(_0x4d7e77,_0x4f9952,_0x4b04b6,_0x337c3){const _0x384899=a69_0x5dd1,_0xee7dca=Array['isArray'](_0x4f9952)?_0x4f9952:Array[_0x384899(0x1f0)](_0x4f9952?.[_0x384899(0x261)])?_0x4f9952[_0x384899(0x261)]:[],_0x1aa7e8=_0x337c3?.[_0x384899(0x1ec)](),_0x46f2ac=_0xee7dca[_0x384899(0x23a)](_0xc427e7=>!_0x1aa7e8||_0xc427e7[_0x384899(0x248)]===_0x1aa7e8)[_0x384899(0x1eb)](skillHubRuntimeItemToRuntimeSkill)['filter'](_0x3b6ac3=>Boolean(_0x3b6ac3)),_0x4c7a74=_0x46f2ac[_0x384899(0x23a)](_0x2ac62e=>_0x2ac62e[_0x384899(0x1ee)]===_0x384899(0x22f)),_0x40a612=_0x46f2ac['filter'](_0x1e19c2=>_0x1e19c2[_0x384899(0x1ee)]===_0x384899(0x200));return{'appCode':_0x4d7e77,'personal':_0x4b04b6===_0x384899(0x200)?[]:_0x4c7a74,'company':_0x4b04b6===_0x384899(0x22f)?[]:_0x40a612,'effective':buildEffectiveRuntimeSkills(_0x4c7a74,_0x40a612,_0x4b04b6)};}function skillHubRuntimeItemToRuntimeSkill(_0xe0d620){const _0xbd2be3=a69_0x5dd1,_0x493f56=_0xe0d620[_0xbd2be3(0x248)]?.[_0xbd2be3(0x1ec)](),_0x3d31ff=skillHubVisibilityToScope(_0xe0d620[_0xbd2be3(0x21e)]);if(!_0x493f56||!_0x3d31ff)return undefined;return{'id':_0xe0d620['id'],'appCode':_0xe0d620[_0xbd2be3(0x238)],'skillCode':_0x493f56,'skillName':_0xe0d620[_0xbd2be3(0x1fa)]??_0x493f56,'description':_0xe0d620['summary'],'scope':_0x3d31ff,'version':skillHubRuntimeItemVersion(_0xe0d620),'status':_0xe0d620['status']};}function skillHubRuntimeDetailToRuntimeSkill(_0x2565b0){const _0x2ba923=a69_0x5dd1,_0x3cbcbc=_0x2565b0[_0x2ba923(0x248)]?.[_0x2ba923(0x1ec)]();if(!_0x3cbcbc)return undefined;return{'id':_0x2565b0['id'],'appCode':_0x2565b0[_0x2ba923(0x238)],'skillCode':_0x3cbcbc,'skillName':_0x2565b0['displayName']??_0x3cbcbc,'description':_0x2565b0[_0x2ba923(0x230)],'scope':skillHubVisibilityToScope(_0x2565b0[_0x2ba923(0x21e)])??_0x2565b0[_0x2ba923(0x21e)]?.[_0x2ba923(0x22e)](),'version':skillHubRuntimeItemVersion(_0x2565b0),'status':_0x2565b0[_0x2ba923(0x24d)]};}function skillHubVisibilityToScope(_0x3a95a6){const _0x5083ff=a69_0x5dd1;if(_0x3a95a6===_0x5083ff(0x221))return _0x5083ff(0x22f);if(_0x3a95a6==='NAMESPACE_ONLY')return'company';return undefined;}function skillHubRuntimeItemVersion(_0xaaf7ef){const _0xb5a2c4=a69_0x5dd1;return _0xaaf7ef[_0xb5a2c4(0x205)]?.[_0xb5a2c4(0x25a)]??_0xaaf7ef[_0xb5a2c4(0x1f8)]?.['version']??_0xaaf7ef['ownerPreviewVersion']?.['version'];}function buildEffectiveRuntimeSkills(_0x59b4ad,_0x56d901,_0x21bed9){const _0xc2ba4b=a69_0x5dd1;if(_0x21bed9===_0xc2ba4b(0x22f))return _0x59b4ad;if(_0x21bed9==='company')return _0x56d901;const _0x59ddd5=new Map();for(const _0x34f880 of _0x56d901){_0x59ddd5[_0xc2ba4b(0x1ea)](_0x34f880[_0xc2ba4b(0x21b)],_0x34f880);}for(const _0x24db09 of _0x59b4ad){_0x59ddd5['set'](_0x24db09[_0xc2ba4b(0x21b)],_0x24db09);}return Array[_0xc2ba4b(0x21f)](_0x59ddd5[_0xc2ba4b(0x1f2)]());}function normalizeRuntimeSkillListResponse(_0x125c3b,_0x421ea3){const _0x573899=a69_0x5dd1;if(Array[_0x573899(0x1f0)](_0x421ea3)){const _0x29a626=_0x421ea3[_0x573899(0x23a)](_0xc78224=>_0xc78224['scope']===_0x573899(0x22f)),_0xbf65f4=_0x421ea3[_0x573899(0x23a)](_0x5e4e93=>_0x5e4e93['scope']===_0x573899(0x200));return{'appCode':_0x125c3b,'personal':_0x29a626,'company':_0xbf65f4,'effective':[..._0xbf65f4,..._0x29a626]};}return{'appCode':_0x421ea3?.['appCode']??_0x125c3b,'personal':Array[_0x573899(0x1f0)](_0x421ea3?.[_0x573899(0x22f)])?_0x421ea3['personal']:[],'company':Array[_0x573899(0x1f0)](_0x421ea3?.[_0x573899(0x200)])?_0x421ea3['company']:[],'effective':Array[_0x573899(0x1f0)](_0x421ea3?.[_0x573899(0x1de)])?_0x421ea3[_0x573899(0x1de)]:[]};}
@@ -1 +1 @@
1
- (function(_0x2f0615,_0x3c2bfa){const _0x1f0ea7=a70_0x2250,_0x49f4ea=_0x2f0615();while(!![]){try{const _0x2ed57a=parseInt(_0x1f0ea7(0x7f))/0x1*(-parseInt(_0x1f0ea7(0x79))/0x2)+parseInt(_0x1f0ea7(0x72))/0x3*(parseInt(_0x1f0ea7(0x73))/0x4)+-parseInt(_0x1f0ea7(0x75))/0x5*(parseInt(_0x1f0ea7(0x7a))/0x6)+-parseInt(_0x1f0ea7(0x80))/0x7+parseInt(_0x1f0ea7(0x7b))/0x8+parseInt(_0x1f0ea7(0x7d))/0x9*(parseInt(_0x1f0ea7(0x7e))/0xa)+parseInt(_0x1f0ea7(0x82))/0xb;if(_0x2ed57a===_0x3c2bfa)break;else _0x49f4ea['push'](_0x49f4ea['shift']());}catch(_0x97d7ff){_0x49f4ea['push'](_0x49f4ea['shift']());}}}(a70_0x4fdc,0x731c3));function a70_0x4fdc(){const _0x24fc55=['1130847aIhNQJ','8hFeCIq','dbName','603755FQyokg','set','map','find','2402ZoUhyY','18KMlGwf','5671088eaSkiQ','dbId','231327oWZBwK','70mRMKcQ','469BsMZVO','2178428MLeMyt','entries','720632FHCEKe','get','db-'];a70_0x4fdc=function(){return _0x24fc55;};return a70_0x4fdc();}import{listDatasets}from'../core/api-client.js';const cache=new Map();export async function listDatabases(_0x440ee7){const _0x127317=a70_0x2250;if(cache['has'](_0x440ee7))return cache[_0x127317(0x70)](_0x440ee7);const _0x5b8eaf=await listDatasets(_0x440ee7),_0xda0595=new Map();for(const _0x2ba642 of _0x5b8eaf){const _0x3acd60=_0x2ba642['dbtableConfig'];_0x3acd60?.[_0x127317(0x7c)]!=null&&_0xda0595[_0x127317(0x76)](_0x3acd60[_0x127317(0x7c)],_0x3acd60['dbName']??_0x127317(0x71)+_0x3acd60['dbId']);}const _0xd2d84a=[..._0xda0595[_0x127317(0x81)]()][_0x127317(0x77)](([_0x102e47,_0x2148f5])=>({'dbId':_0x102e47,'dbName':_0x2148f5}));return cache[_0x127317(0x76)](_0x440ee7,_0xd2d84a),_0xd2d84a;}function a70_0x2250(_0x245baa,_0x2fda6d){_0x245baa=_0x245baa-0x70;const _0x4fdc8c=a70_0x4fdc();let _0x22509f=_0x4fdc8c[_0x245baa];return _0x22509f;}export async function getDbName(_0x169ed5,_0x58f024){const _0x4f1a07=a70_0x2250;try{const _0xcdc522=await listDatabases(_0x169ed5);return _0xcdc522[_0x4f1a07(0x78)](_0x59bf0a=>_0x59bf0a['dbId']===_0x58f024)?.[_0x4f1a07(0x74)];}catch{return undefined;}}
1
+ function a70_0x561d(){const _0x9feb63=['11985XdfrIl','5yfRPMU','dbId','has','set','get','47604SDxPZj','270594YRVZVO','271089ufxMZy','2184672QzHWHh','entries','1353GoNKFz','32sMejvt','556190jrhbEr','3ASSyUb','map','9nDNvwX','find','db-','dbName','559852nhgJse'];a70_0x561d=function(){return _0x9feb63;};return a70_0x561d();}function a70_0x40e4(_0x3d71ae,_0x4f6c62){_0x3d71ae=_0x3d71ae-0x1d2;const _0x561d4e=a70_0x561d();let _0x40e444=_0x561d4e[_0x3d71ae];return _0x40e444;}(function(_0x4283d8,_0x14fda9){const _0x2c6231=a70_0x40e4,_0x208f1c=_0x4283d8();while(!![]){try{const _0x20ddbb=-parseInt(_0x2c6231(0x1de))/0x1*(-parseInt(_0x2c6231(0x1d5))/0x2)+-parseInt(_0x2c6231(0x1d7))/0x3*(-parseInt(_0x2c6231(0x1dd))/0x4)+-parseInt(_0x2c6231(0x1df))/0x5*(-parseInt(_0x2c6231(0x1e5))/0x6)+parseInt(_0x2c6231(0x1e6))/0x7+parseInt(_0x2c6231(0x1d2))/0x8+parseInt(_0x2c6231(0x1d9))/0x9*(-parseInt(_0x2c6231(0x1d6))/0xa)+-parseInt(_0x2c6231(0x1d4))/0xb*(parseInt(_0x2c6231(0x1e4))/0xc);if(_0x20ddbb===_0x14fda9)break;else _0x208f1c['push'](_0x208f1c['shift']());}catch(_0x138e26){_0x208f1c['push'](_0x208f1c['shift']());}}}(a70_0x561d,0x236b1));import{listDatasets}from'../core/api-client.js';const cache=new Map();export async function listDatabases(_0x1b3725){const _0x42c833=a70_0x40e4;if(cache[_0x42c833(0x1e1)](_0x1b3725))return cache[_0x42c833(0x1e3)](_0x1b3725);const _0x3cc2cb=await listDatasets(_0x1b3725),_0x295b48=new Map();for(const _0xe46901 of _0x3cc2cb){const _0x50993c=_0xe46901['dbtableConfig'];_0x50993c?.[_0x42c833(0x1e0)]!=null&&_0x295b48[_0x42c833(0x1e2)](_0x50993c[_0x42c833(0x1e0)],_0x50993c[_0x42c833(0x1dc)]??_0x42c833(0x1db)+_0x50993c['dbId']);}const _0x1b7544=[..._0x295b48[_0x42c833(0x1d3)]()][_0x42c833(0x1d8)](([_0x2dc527,_0x2b4c50])=>({'dbId':_0x2dc527,'dbName':_0x2b4c50}));return cache['set'](_0x1b3725,_0x1b7544),_0x1b7544;}export async function getDbName(_0x6cf272,_0x5b6d05){const _0x3a2e92=a70_0x40e4;try{const _0x1a87ca=await listDatabases(_0x6cf272);return _0x1a87ca[_0x3a2e92(0x1da)](_0x5a0edb=>_0x5a0edb[_0x3a2e92(0x1e0)]===_0x5b6d05)?.[_0x3a2e92(0x1dc)];}catch{return undefined;}}
@@ -1 +1 @@
1
- (function(_0xf0c20c,_0x192e7a){const _0x524244=a71_0x3d7a,_0x3f5656=_0xf0c20c();while(!![]){try{const _0x2df6ac=-parseInt(_0x524244(0x150))/0x1*(-parseInt(_0x524244(0x14d))/0x2)+-parseInt(_0x524244(0x146))/0x3*(parseInt(_0x524244(0x158))/0x4)+parseInt(_0x524244(0x15b))/0x5+parseInt(_0x524244(0x15f))/0x6+-parseInt(_0x524244(0x152))/0x7*(-parseInt(_0x524244(0x163))/0x8)+parseInt(_0x524244(0x157))/0x9*(parseInt(_0x524244(0x14c))/0xa)+parseInt(_0x524244(0x142))/0xb*(-parseInt(_0x524244(0x165))/0xc);if(_0x2df6ac===_0x192e7a)break;else _0x3f5656['push'](_0x3f5656['shift']());}catch(_0x1b4b90){_0x3f5656['push'](_0x3f5656['shift']());}}}(a71_0x975b,0x8aec5));import{createClient}from'@lovrabet/sdk';import{PRODUCT_CONFIG}from'../constant/product.js';import{CliErrors}from'../errors.js';function a71_0x975b(){const _0x4d69d3=['map','isArray','5023925uXLRyN','Available:\x20filter,\x20getOne,\x20create,\x20batchCreate,\x20update,\x20delete,\x20aggregate.','getOne',']\x20requires\x20\x22column\x22;\x20\x22field\x22\x20is\x20accepted\x20only\x20as\x20a\x20deprecated\x20alias.','3452814DVizQl','execute','SDK\x20model\x20does\x20not\x20support\x20operation\x20\x22','sql','441648fXyaaf','column','6222252gbfPQZ','env','accessKey','delete','44bOscay','dataset_','appCode','authMode','3395559gnoCxC','trim','aggregate','models','field','function','208450CsHyaJ','78tJRXXa','SDK\x20client\x20not\x20initialized.\x20Call\x20initSdkClient()\x20first.','\x22.\x20','14919YjuqsO','bff','112JomMqi','invokeSource','delete\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123}\x27','validation','batchCreate','315amvWOp','4TWIIRH'];a71_0x975b=function(){return _0x4d69d3;};return a71_0x975b();}import{parseBatchCreateItemsFromParams}from'../utils/params.js';let _client;export function initSdkClient(_0x2a3a17){const _0x508225=a71_0x3d7a;_client=createClient({'appCode':_0x2a3a17[_0x508225(0x144)],'env':_0x2a3a17[_0x508225(0x166)],'authMode':_0x2a3a17[_0x508225(0x145)],..._0x2a3a17[_0x508225(0x167)]?{'accessKey':_0x2a3a17[_0x508225(0x167)]}:{},'options':{'timeout':0x7530,'headers':{'X-Invoke-Source':PRODUCT_CONFIG[_0x508225(0x153)]}}});}function ensureClient(){const _0x260701=a71_0x3d7a;if(!_client)throw new Error(_0x260701(0x14e));return _client;}function normalizeAggregateParams(_0x3eabe7){const _0x1bf6f6=a71_0x3d7a,_0x5e0c20=_0x3eabe7['aggregate'];if(_0x5e0c20===undefined)return _0x3eabe7;if(!Array[_0x1bf6f6(0x15a)](_0x5e0c20))throw CliErrors[_0x1bf6f6(0x155)]('data\x20aggregate\x20--params.aggregate\x20must\x20be\x20an\x20array.');return{..._0x3eabe7,'aggregate':_0x5e0c20[_0x1bf6f6(0x159)]((_0x2d1184,_0x55783c)=>{const _0x9aad23=_0x1bf6f6;if(!_0x2d1184||typeof _0x2d1184!=='object'||Array[_0x9aad23(0x15a)](_0x2d1184))throw CliErrors[_0x9aad23(0x155)]('data\x20aggregate\x20--params.aggregate['+_0x55783c+']\x20must\x20be\x20an\x20object.');const _0x341229=_0x2d1184[_0x9aad23(0x164)]??_0x2d1184[_0x9aad23(0x14a)];if(typeof _0x341229!=='string'||_0x341229[_0x9aad23(0x147)]()==='')throw CliErrors['validation']('data\x20aggregate\x20--params.aggregate['+_0x55783c+_0x9aad23(0x15e));const _0x23dedf={..._0x2d1184,'column':_0x341229};return delete _0x23dedf['field'],_0x23dedf;})};}export async function executeData(_0x2b6396,_0x1f226d,_0x1d08d8){const _0x596c56=a71_0x3d7a,_0x161165=ensureClient(),_0x44bced=_0x596c56(0x143)+_0x2b6396,_0x2bcead=_0x161165[_0x596c56(0x149)][_0x44bced];if(!_0x2bcead||typeof _0x2bcead[_0x1f226d]!==_0x596c56(0x14b))throw new Error(_0x596c56(0x161)+_0x1f226d+_0x596c56(0x14f)+_0x596c56(0x15c));if(_0x1f226d===_0x596c56(0x156))return _0x2bcead[_0x596c56(0x156)](parseBatchCreateItemsFromParams(_0x1d08d8));const _0x26ca73=_0x1d08d8!==undefined&&_0x1d08d8!==null&&!Array[_0x596c56(0x15a)](_0x1d08d8)?_0x1d08d8:{};switch(_0x1f226d){case _0x596c56(0x15d):{const _0x3afe62=_0x26ca73['id'];if(_0x3afe62===undefined||_0x3afe62===null)throw new Error('getOne\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123}\x27');return _0x2bcead['getOne'](_0x3afe62);}case'update':{const {id:_0x2627d5,..._0x143f1f}=_0x26ca73;if(_0x2627d5===undefined||_0x2627d5===null)throw new Error('update\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123,\x22name\x22:\x22new\x22}\x27');return _0x2bcead['update'](_0x2627d5,_0x143f1f);}case _0x596c56(0x141):{const _0x5f16a2=_0x26ca73['id'];if(_0x5f16a2===undefined||_0x5f16a2===null)throw new Error(_0x596c56(0x154));return _0x2bcead[_0x596c56(0x141)](_0x5f16a2);}case'aggregate':return _0x2bcead[_0x596c56(0x148)](normalizeAggregateParams(_0x26ca73));default:return _0x2bcead[_0x1f226d](_0x26ca73);}}function a71_0x3d7a(_0x665b0e,_0x148585){_0x665b0e=_0x665b0e-0x141;const _0x975b8e=a71_0x975b();let _0x3d7ac7=_0x975b8e[_0x665b0e];return _0x3d7ac7;}export async function executeSdkSql(_0x56b753,_0x43dd02){const _0x967573=a71_0x3d7a,_0x36bfed=ensureClient();return _0x36bfed[_0x967573(0x162)][_0x967573(0x160)]({'sqlCode':_0x56b753,'params':_0x43dd02});}export async function executeSdkBff(_0x397c72,_0xee945d){const _0x49b226=a71_0x3d7a,_0x50e7a0=ensureClient();return _0x50e7a0[_0x49b226(0x151)]['execute']({'scriptName':_0x397c72,'params':_0xee945d});}
1
+ (function(_0xd1d595,_0x183ac1){const _0x1cd345=a71_0x1f61,_0x2a9fdb=_0xd1d595();while(!![]){try{const _0xd0c56e=parseInt(_0x1cd345(0x10a))/0x1+-parseInt(_0x1cd345(0x109))/0x2+-parseInt(_0x1cd345(0xfd))/0x3+-parseInt(_0x1cd345(0x114))/0x4*(parseInt(_0x1cd345(0x115))/0x5)+-parseInt(_0x1cd345(0xfc))/0x6+parseInt(_0x1cd345(0x107))/0x7*(parseInt(_0x1cd345(0x118))/0x8)+-parseInt(_0x1cd345(0x113))/0x9*(-parseInt(_0x1cd345(0x108))/0xa);if(_0xd0c56e===_0x183ac1)break;else _0x2a9fdb['push'](_0x2a9fdb['shift']());}catch(_0xbe0dd7){_0x2a9fdb['push'](_0x2a9fdb['shift']());}}}(a71_0x37df,0x7064d));import{createClient}from'@lovrabet/sdk';import{PRODUCT_CONFIG}from'../constant/product.js';import{CliErrors}from'../errors.js';import{parseBatchCreateItemsFromParams}from'../utils/params.js';let _client;function a71_0x1f61(_0x5b1dd9,_0x45691f){_0x5b1dd9=_0x5b1dd9-0xf4;const _0x37df06=a71_0x37df();let _0x1f6158=_0x37df06[_0x5b1dd9];return _0x1f6158;}export function initSdkClient(_0x398812){const _0x2f7ee6=a71_0x1f61;_client=createClient({'appCode':_0x398812[_0x2f7ee6(0x119)],'env':_0x398812[_0x2f7ee6(0x102)],'authMode':_0x398812['authMode'],..._0x398812['accessKey']?{'accessKey':_0x398812[_0x2f7ee6(0xf4)]}:{},'options':{'timeout':0x7530,'headers':{'X-Invoke-Source':PRODUCT_CONFIG[_0x2f7ee6(0xf7)]}}});}function ensureClient(){if(!_client)throw new Error('SDK\x20client\x20not\x20initialized.\x20Call\x20initSdkClient()\x20first.');return _client;}function a71_0x37df(){const _0x46265a=['batchCreate','update','field','aggregate','3142746gzElIa','1575186HJAWfi','delete\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123}\x27','validation','delete','update\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123,\x22name\x22:\x22new\x22}\x27','env','sql','function','map','column','142576OBlZwA','20810pswsqj','1816566rhkxVX','35951RVmthR','SDK\x20model\x20does\x20not\x20support\x20operation\x20\x22','getOne\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123}\x27','dataset_',']\x20requires\x20\x22column\x22;\x20\x22field\x22\x20is\x20accepted\x20only\x20as\x20a\x20deprecated\x20alias.','data\x20aggregate\x20--params.aggregate[','object','Available:\x20filter,\x20getOne,\x20create,\x20batchCreate,\x20update,\x20delete,\x20aggregate.','execute','11619DiWrLI','4zoKCfP','3969265mdNCCK','bff','string','192UQRJWJ','appCode','data\x20aggregate\x20--params.aggregate\x20must\x20be\x20an\x20array.','accessKey',']\x20must\x20be\x20an\x20object.','getOne','invokeSource'];a71_0x37df=function(){return _0x46265a;};return a71_0x37df();}function normalizeAggregateParams(_0x18d58a){const _0x4f3587=a71_0x1f61,_0x2befdc=_0x18d58a[_0x4f3587(0xfb)];if(_0x2befdc===undefined)return _0x18d58a;if(!Array['isArray'](_0x2befdc))throw CliErrors[_0x4f3587(0xff)](_0x4f3587(0x11a));return{..._0x18d58a,'aggregate':_0x2befdc[_0x4f3587(0x105)]((_0x8707d3,_0x45b3ee)=>{const _0x293577=_0x4f3587;if(!_0x8707d3||typeof _0x8707d3!==_0x293577(0x110)||Array['isArray'](_0x8707d3))throw CliErrors['validation'](_0x293577(0x10f)+_0x45b3ee+_0x293577(0xf5));const _0xf85429=_0x8707d3[_0x293577(0x106)]??_0x8707d3[_0x293577(0xfa)];if(typeof _0xf85429!==_0x293577(0x117)||_0xf85429['trim']()==='')throw CliErrors[_0x293577(0xff)](_0x293577(0x10f)+_0x45b3ee+_0x293577(0x10e));const _0x436fda={..._0x8707d3,'column':_0xf85429};return delete _0x436fda['field'],_0x436fda;})};}export async function executeData(_0x294bf9,_0x1dda6b,_0x362e9d){const _0x1b165c=a71_0x1f61,_0x787f04=ensureClient(),_0x39e2bb=_0x1b165c(0x10d)+_0x294bf9,_0x3ac7a1=_0x787f04['models'][_0x39e2bb];if(!_0x3ac7a1||typeof _0x3ac7a1[_0x1dda6b]!==_0x1b165c(0x104))throw new Error(_0x1b165c(0x10b)+_0x1dda6b+'\x22.\x20'+_0x1b165c(0x111));if(_0x1dda6b===_0x1b165c(0xf8))return _0x3ac7a1[_0x1b165c(0xf8)](parseBatchCreateItemsFromParams(_0x362e9d));const _0x3c98ca=_0x362e9d!==undefined&&_0x362e9d!==null&&!Array['isArray'](_0x362e9d)?_0x362e9d:{};switch(_0x1dda6b){case _0x1b165c(0xf6):{const _0x56b5b9=_0x3c98ca['id'];if(_0x56b5b9===undefined||_0x56b5b9===null)throw new Error(_0x1b165c(0x10c));return _0x3ac7a1[_0x1b165c(0xf6)](_0x56b5b9);}case _0x1b165c(0xf9):{const {id:_0x129960,..._0x231d33}=_0x3c98ca;if(_0x129960===undefined||_0x129960===null)throw new Error(_0x1b165c(0x101));return _0x3ac7a1[_0x1b165c(0xf9)](_0x129960,_0x231d33);}case'delete':{const _0x4d153f=_0x3c98ca['id'];if(_0x4d153f===undefined||_0x4d153f===null)throw new Error(_0x1b165c(0xfe));return _0x3ac7a1[_0x1b165c(0x100)](_0x4d153f);}case'aggregate':return _0x3ac7a1[_0x1b165c(0xfb)](normalizeAggregateParams(_0x3c98ca));default:return _0x3ac7a1[_0x1dda6b](_0x3c98ca);}}export async function executeSdkSql(_0x760bf4,_0x35b275){const _0x186f73=a71_0x1f61,_0x20b96e=ensureClient();return _0x20b96e[_0x186f73(0x103)][_0x186f73(0x112)]({'sqlCode':_0x760bf4,'params':_0x35b275});}export async function executeSdkBff(_0x2c74be,_0x5abab4){const _0x5773f9=a71_0x1f61,_0x40fb9e=ensureClient();return _0x40fb9e[_0x5773f9(0x116)]['execute']({'scriptName':_0x2c74be,'params':_0x5abab4});}
package/lib/errors.js CHANGED
@@ -1 +1 @@
1
- const a72_0x34ee55=a72_0x5827;(function(_0x2056ac,_0x40e5f3){const _0x4c0a01=a72_0x5827,_0x2ff543=_0x2056ac();while(!![]){try{const _0x9bb6bf=parseInt(_0x4c0a01(0xb0))/0x1*(parseInt(_0x4c0a01(0xad))/0x2)+parseInt(_0x4c0a01(0xb2))/0x3+parseInt(_0x4c0a01(0xac))/0x4*(parseInt(_0x4c0a01(0xba))/0x5)+-parseInt(_0x4c0a01(0xb3))/0x6*(parseInt(_0x4c0a01(0xb4))/0x7)+parseInt(_0x4c0a01(0xb7))/0x8+parseInt(_0x4c0a01(0xb9))/0x9+-parseInt(_0x4c0a01(0xb5))/0xa;if(_0x9bb6bf===_0x40e5f3)break;else _0x2ff543['push'](_0x2ff543['shift']());}catch(_0x38702a){_0x2ff543['push'](_0x2ff543['shift']());}}}(a72_0x31ca,0xd2f2e));function a72_0x5827(_0x415982,_0x2260ed){_0x415982=_0x415982-0xac;const _0x31cae5=a72_0x31ca();let _0x5827ad=_0x31cae5[_0x415982];return _0x5827ad;}import{CliError,createCliErrors}from'@lovrabet/cli-framework';import{CLI_BIN_NAME}from'./constant/cli.js';import{PRODUCT_CONFIG}from'./constant/product.js';function a72_0x31ca(){const _0x1e8ded=['2XGcgsh','\x20or\x20run\x20`','Configure\x20accessKey\x20in\x20','1718050vAcEpe','Run\x20this\x20command\x20inside\x20a\x20directory\x20with\x20a\x20','4161585jGEKhb','6ZslHFm','789187ijmwmz','58886640XFeCeB','newConfigFileName','9843160VuVylj','\x20auth\x20login`.','7391133BPzkjZ','610205dIOqHK','56hbZXGs'];a72_0x31ca=function(){return _0x1e8ded;};return a72_0x31ca();}export{CliError};export const CliErrors=createCliErrors({'cliBinName':CLI_BIN_NAME,'authRequiredHint':a72_0x34ee55(0xaf)+PRODUCT_CONFIG[a72_0x34ee55(0xb6)]+a72_0x34ee55(0xae)+CLI_BIN_NAME+a72_0x34ee55(0xb8),'configMissingHint':'Set\x20appcode\x20via\x20--appcode\x20or\x20'+PRODUCT_CONFIG[a72_0x34ee55(0xb6)]+'.','notInProjectHint':a72_0x34ee55(0xb1)+PRODUCT_CONFIG[a72_0x34ee55(0xb6)]+'\x20file.'});
1
+ function a72_0x243f(_0x45256b,_0x51825d){_0x45256b=_0x45256b-0x1ef;const _0x1ef433=a72_0x1ef4();let _0x243f21=_0x1ef433[_0x45256b];return _0x243f21;}const a72_0x395e3c=a72_0x243f;(function(_0x52e4b5,_0x3b1064){const _0x7ae98c=a72_0x243f,_0x345359=_0x52e4b5();while(!![]){try{const _0x2673af=parseInt(_0x7ae98c(0x1f8))/0x1*(parseInt(_0x7ae98c(0x1f1))/0x2)+-parseInt(_0x7ae98c(0x1f6))/0x3+parseInt(_0x7ae98c(0x1fc))/0x4+-parseInt(_0x7ae98c(0x1f4))/0x5+-parseInt(_0x7ae98c(0x1fa))/0x6*(-parseInt(_0x7ae98c(0x1fd))/0x7)+-parseInt(_0x7ae98c(0x1ef))/0x8+parseInt(_0x7ae98c(0x1f2))/0x9*(parseInt(_0x7ae98c(0x1f9))/0xa);if(_0x2673af===_0x3b1064)break;else _0x345359['push'](_0x345359['shift']());}catch(_0x22bf3){_0x345359['push'](_0x345359['shift']());}}}(a72_0x1ef4,0x6c22b));function a72_0x1ef4(){const _0x14da70=['1125560lZGJhb','Run\x20this\x20command\x20inside\x20a\x20directory\x20with\x20a\x20','1490970PwqkvT','newConfigFileName','3DBCaAO','79140yFyqXB','4926858XOXjMj','Set\x20appcode\x20via\x20--appcode\x20or\x20','101864JpPFBz','7nwFSjO','3354560TDIiXP','\x20file.','32812xTwHjR','783gSBoDc','\x20auth\x20login`.'];a72_0x1ef4=function(){return _0x14da70;};return a72_0x1ef4();}import{CliError,createCliErrors}from'@lovrabet/cli-framework';import{CLI_BIN_NAME}from'./constant/cli.js';import{PRODUCT_CONFIG}from'./constant/product.js';export{CliError};export const CliErrors=createCliErrors({'cliBinName':CLI_BIN_NAME,'authRequiredHint':'Configure\x20accessKey\x20in\x20'+PRODUCT_CONFIG[a72_0x395e3c(0x1f7)]+'\x20or\x20run\x20`'+CLI_BIN_NAME+a72_0x395e3c(0x1f3),'configMissingHint':a72_0x395e3c(0x1fb)+PRODUCT_CONFIG[a72_0x395e3c(0x1f7)]+'.','notInProjectHint':a72_0x395e3c(0x1f5)+PRODUCT_CONFIG[a72_0x395e3c(0x1f7)]+a72_0x395e3c(0x1f0)});
@@ -1 +1 @@
1
- (function(_0x4d6aa7,_0x3d4b3a){var _0x48db0e=a73_0x45ee,_0x1ba670=_0x4d6aa7();while(!![]){try{var _0x5496c7=-parseInt(_0x48db0e(0x14d))/0x1*(parseInt(_0x48db0e(0x14b))/0x2)+parseInt(_0x48db0e(0x150))/0x3*(-parseInt(_0x48db0e(0x14a))/0x4)+-parseInt(_0x48db0e(0x14f))/0x5*(-parseInt(_0x48db0e(0x152))/0x6)+-parseInt(_0x48db0e(0x14e))/0x7+parseInt(_0x48db0e(0x148))/0x8+parseInt(_0x48db0e(0x151))/0x9*(parseInt(_0x48db0e(0x149))/0xa)+parseInt(_0x48db0e(0x14c))/0xb;if(_0x5496c7===_0x3d4b3a)break;else _0x1ba670['push'](_0x1ba670['shift']());}catch(_0x22e787){_0x1ba670['push'](_0x1ba670['shift']());}}}(a73_0x9253,0xe5b41));function a73_0x45ee(_0x526297,_0x924fa0){_0x526297=_0x526297-0x148;var _0x92532d=a73_0x9253();var _0x45ee64=_0x92532d[_0x526297];return _0x45ee64;}import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';import{buildAllFlags as a73_0xf9bec0}from'@lovrabet/cli-framework';function a73_0x9253(){var _0x5bdafe=['34454046hsmCUQ','686363HhFFgp','9275511vrNwNF','3970NILGVl','29031FjsIUA','258453TcRScM','1578lzNNeB','8569960uuhYsp','290SPhVEC','664ylKZqW','4hutSze'];a73_0x9253=function(){return _0x5bdafe;};return a73_0x9253();}export function buildAllFlags(_0x338bb6){return a73_0xf9bec0(_0x338bb6,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});}
1
+ function a73_0x3eac(){var _0x5bb957=['2436363vrWJDI','16280bEAWwC','38612KAOLiu','5VIUyyw','1vgwbEn','384WQvFgH','867116LqiniK','34894mVcKwN','810256snhWKu','404661JqzpLG','2540zjTBLy'];a73_0x3eac=function(){return _0x5bb957;};return a73_0x3eac();}(function(_0x43d2bb,_0x2f5b98){var _0x219de3=a73_0x201c,_0xbdc84c=_0x43d2bb();while(!![]){try{var _0x156896=parseInt(_0x219de3(0x9c))/0x1*(parseInt(_0x219de3(0x94))/0x2)+parseInt(_0x219de3(0x96))/0x3+parseInt(_0x219de3(0x9e))/0x4*(parseInt(_0x219de3(0x9b))/0x5)+parseInt(_0x219de3(0x9d))/0x6*(parseInt(_0x219de3(0x9a))/0x7)+parseInt(_0x219de3(0x95))/0x8+-parseInt(_0x219de3(0x98))/0x9+parseInt(_0x219de3(0x97))/0xa*(-parseInt(_0x219de3(0x99))/0xb);if(_0x156896===_0x2f5b98)break;else _0xbdc84c['push'](_0xbdc84c['shift']());}catch(_0x423337){_0xbdc84c['push'](_0xbdc84c['shift']());}}}(a73_0x3eac,0x2b298));function a73_0x201c(_0x2aaf90,_0x15b30a){_0x2aaf90=_0x2aaf90-0x94;var _0x3eac2e=a73_0x3eac();var _0x201c5c=_0x3eac2e[_0x2aaf90];return _0x201c5c;}import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';import{buildAllFlags as a73_0x36f97e}from'@lovrabet/cli-framework';export function buildAllFlags(_0x172690){return a73_0x36f97e(_0x172690,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});}