@lovrabet/lovrabet-cli 2.1.22-beta.1 → 2.1.22-beta.2

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 (136) hide show
  1. package/README.md +1 -1
  2. package/lib/cli.js +1 -1
  3. package/lib/commands/api-doc/index.js +1 -1
  4. package/lib/commands/app/cache.js +1 -1
  5. package/lib/commands/app/definitions.js +1 -1
  6. package/lib/commands/app/eligibility.js +1 -1
  7. package/lib/commands/app/mock-loader.js +1 -1
  8. package/lib/commands/app/remote-source.js +1 -1
  9. package/lib/commands/app/shared.js +1 -1
  10. package/lib/commands/app-config/get.js +1 -1
  11. package/lib/commands/app-config/index.js +1 -1
  12. package/lib/commands/artifact/index.js +1 -1
  13. package/lib/commands/auth/device.js +1 -1
  14. package/lib/commands/auth/index.js +1 -1
  15. package/lib/commands/auth/prompt.js +1 -1
  16. package/lib/commands/bff/detail.js +1 -1
  17. package/lib/commands/bff/exec.js +1 -1
  18. package/lib/commands/bff/index.js +1 -1
  19. package/lib/commands/cli-skill/index.js +1 -1
  20. package/lib/commands/common/config-policy.js +1 -1
  21. package/lib/commands/common/constraints.js +1 -1
  22. package/lib/commands/common/flags.js +1 -1
  23. package/lib/commands/common/local-file.js +1 -1
  24. package/lib/commands/config/definitions.js +1 -1
  25. package/lib/commands/config/shared.js +1 -1
  26. package/lib/commands/data/index.js +1 -1
  27. package/lib/commands/dataset/detail.js +1 -1
  28. package/lib/commands/dataset/index.js +1 -1
  29. package/lib/commands/dataset/list.js +1 -1
  30. package/lib/commands/dataset/sdk-doc.js +1 -1
  31. package/lib/commands/doctor.js +1 -1
  32. package/lib/commands/file/index.js +1 -1
  33. package/lib/commands/init.js +1 -1
  34. package/lib/commands/kb/index.js +1 -1
  35. package/lib/commands/logs/index.js +1 -1
  36. package/lib/commands/ocr/index.js +1 -1
  37. package/lib/commands/personal-bff/index.js +1 -1
  38. package/lib/commands/registry.js +1 -1
  39. package/lib/commands/schedule/index.js +1 -1
  40. package/lib/commands/schema.js +1 -1
  41. package/lib/commands/service/dynamic.js +1 -1
  42. package/lib/commands/service/function-name-adapter.js +1 -1
  43. package/lib/commands/service/index.js +1 -1
  44. package/lib/commands/service/registry.js +1 -1
  45. package/lib/commands/skill/commands/create.js +1 -1
  46. package/lib/commands/skill/commands/diagram.d.ts +4 -0
  47. package/lib/commands/skill/commands/diagram.js +1 -0
  48. package/lib/commands/skill/commands/install.js +1 -1
  49. package/lib/commands/skill/commands/list.js +1 -1
  50. package/lib/commands/skill/commands/push.js +1 -1
  51. package/lib/commands/skill/commands/validate.js +1 -1
  52. package/lib/commands/skill/diagram.d.ts +5 -0
  53. package/lib/commands/skill/diagram.js +1 -0
  54. package/lib/commands/skill/flags.d.ts +6 -0
  55. package/lib/commands/skill/flags.js +1 -1
  56. package/lib/commands/skill/index.js +1 -1
  57. package/lib/commands/skill/manifest-helpers.js +1 -1
  58. package/lib/commands/skill/push-execute.d.ts +4 -0
  59. package/lib/commands/skill/push-execute.js +1 -1
  60. package/lib/commands/skill/push-flow-helpers.js +1 -1
  61. package/lib/commands/skill/push-retarget.js +1 -1
  62. package/lib/commands/skill/scopes.js +1 -1
  63. package/lib/commands/skill/summary.js +1 -1
  64. package/lib/commands/skill/templates.js +1 -1
  65. package/lib/commands/skill/validate.js +1 -1
  66. package/lib/commands/sql/detail.js +1 -1
  67. package/lib/commands/sql/exec.js +1 -1
  68. package/lib/commands/sql/index.js +1 -1
  69. package/lib/commands/update.js +1 -1
  70. package/lib/commands/workspace/index.js +1 -1
  71. package/lib/config/schema.js +1 -1
  72. package/lib/constant/app.js +1 -1
  73. package/lib/constant/auth-mode.js +1 -1
  74. package/lib/constant/cli.js +1 -1
  75. package/lib/constant/defaults.js +1 -1
  76. package/lib/constant/distribution.js +1 -1
  77. package/lib/constant/domain.js +1 -1
  78. package/lib/constant/env.js +1 -1
  79. package/lib/constant/output.js +1 -1
  80. package/lib/constant/product.js +1 -1
  81. package/lib/constant/risk.js +1 -1
  82. package/lib/constant/url.js +1 -1
  83. package/lib/context.js +1 -1
  84. package/lib/core/api-client.d.ts +52 -0
  85. package/lib/core/api-client.js +1 -1
  86. package/lib/core/db-resolver.js +1 -1
  87. package/lib/core/sdk-client.js +1 -1
  88. package/lib/errors.js +1 -1
  89. package/lib/framework/build-all-flags.js +1 -1
  90. package/lib/framework/dryrun.js +1 -1
  91. package/lib/framework/flags.js +1 -1
  92. package/lib/framework/help.js +1 -1
  93. package/lib/framework/index.js +1 -1
  94. package/lib/framework/output.js +1 -1
  95. package/lib/framework/preparse.js +1 -1
  96. package/lib/framework/rate-limit.js +1 -1
  97. package/lib/framework/raw-flags.js +1 -1
  98. package/lib/framework/response.js +1 -1
  99. package/lib/framework/runner-confirmation.js +1 -1
  100. package/lib/framework/runner-error.js +1 -1
  101. package/lib/framework/runner.js +1 -1
  102. package/lib/framework/schema-export.js +1 -1
  103. package/lib/framework/service-order.js +1 -1
  104. package/lib/framework/types.js +1 -1
  105. package/lib/generated/build-info.d.ts +4 -4
  106. package/lib/generated/build-info.js +1 -1
  107. package/lib/help.js +1 -1
  108. package/lib/runtime/event.js +1 -1
  109. package/lib/runtime/index.js +1 -1
  110. package/lib/runtime/queue.js +1 -1
  111. package/lib/runtime/resolve.js +1 -1
  112. package/lib/skills/npx-skills-add.js +1 -1
  113. package/lib/skills/runtime-skill-sync/constants.js +1 -1
  114. package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
  115. package/lib/skills/runtime-skill-sync/hashing.js +1 -1
  116. package/lib/skills/runtime-skill-sync/install-target.js +1 -1
  117. package/lib/skills/runtime-skill-sync/links.js +1 -1
  118. package/lib/skills/runtime-skill-sync/list-local.js +1 -1
  119. package/lib/skills/runtime-skill-sync/local-files.js +1 -1
  120. package/lib/skills/runtime-skill-sync/materialize.js +1 -1
  121. package/lib/skills/runtime-skill-sync/metadata.js +1 -1
  122. package/lib/skills/runtime-skill-sync/paths.js +1 -1
  123. package/lib/skills/runtime-skill-sync/push.js +1 -1
  124. package/lib/skills/runtime-skill-sync/scopes.js +1 -1
  125. package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
  126. package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
  127. package/lib/skills/runtime-skill-sync.js +1 -1
  128. package/lib/utils/apply-jq-filter.js +1 -1
  129. package/lib/utils/logger.js +1 -1
  130. package/lib/utils/lossless-json.js +1 -1
  131. package/lib/utils/params.js +1 -1
  132. package/lib/utils/platform.js +1 -1
  133. package/lib/utils/update-notice.js +1 -1
  134. package/lib/utils/version.js +1 -1
  135. package/lib/utils/write-cli-side-channel.js +1 -1
  136. package/package.json +3 -1
@@ -1 +1 @@
1
- const a63_0x2a3978=a63_0xc376;function a63_0xc376(_0x12ac13,_0xc0f638){_0x12ac13=_0x12ac13-0x1e0;const _0x828f2b=a63_0x828f();let _0xc376e3=_0x828f2b[_0x12ac13];return _0xc376e3;}(function(_0x3aaf53,_0x538af3){const _0x588389=a63_0xc376,_0x39eecd=_0x3aaf53();while(!![]){try{const _0x5c7638=-parseInt(_0x588389(0x1f2))/0x1+parseInt(_0x588389(0x1f7))/0x2+-parseInt(_0x588389(0x1ff))/0x3*(-parseInt(_0x588389(0x1ea))/0x4)+-parseInt(_0x588389(0x1f1))/0x5*(-parseInt(_0x588389(0x1e9))/0x6)+-parseInt(_0x588389(0x1e0))/0x7+-parseInt(_0x588389(0x1ec))/0x8+-parseInt(_0x588389(0x1fe))/0x9*(-parseInt(_0x588389(0x1e2))/0xa);if(_0x5c7638===_0x538af3)break;else _0x39eecd['push'](_0x39eecd['shift']());}catch(_0x313cf9){_0x39eecd['push'](_0x39eecd['shift']());}}}(a63_0x828f,0x6bca2));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';function a63_0x828f(){const _0x2e1b56=['9KVpVFb','176679bBSVck','4841935gyDHDm',';\x20local\x20alias:\x20apps.<alias>.appcode','4831940RCzUhe','fromEntries','join','Access\x20key\x20(client-ak\x20auth)','cliSettableTopLevel','Locale','filter','6jdlDKw','20czSBnX','entries','3612240qxbSxQ','importable','env','has','enumValues','2769655UteGEr','133066uNsKUR','Default\x20page\x20size','Default\x20output\x20format','riskLevel','Override\x20user\x20domain','772434CNADlg','map','Override\x20API\x20domain','locale','Target\x20environment','Risk\x20level','defaultValue'];a63_0x828f=function(){return _0x2e1b56;};return a63_0x828f();}import{RUNTIME_ENV_VALUES}from'../constant/env.js';import{OUTPUT_FORMAT_VALUES}from'../constant/output.js';export const CONFIG_FIELD_SCHEMAS={'env':{'description':a63_0x2a3978(0x1fb),'topLevel':!![],'cliSettableTopLevel':!![],'enumValues':RUNTIME_ENV_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES[a63_0x2a3978(0x1ee)],'importable':!![]},'format':{'description':a63_0x2a3978(0x1f4),'topLevel':!![],'cliSettableTopLevel':!![],'enumValues':OUTPUT_FORMAT_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES['format'],'importable':!![]},'pageSize':{'description':a63_0x2a3978(0x1f3),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'apiDomain':{'description':a63_0x2a3978(0x1f9),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'userDomain':{'description':a63_0x2a3978(0x1f6),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'runtimeDomain':{'description':'Override\x20runtime\x20domain','topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'skillHubDomain':{'description':'Override\x20SkillHub\x20domain','topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'accessKey':{'description':a63_0x2a3978(0x1e5),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'riskLevel':{'description':a63_0x2a3978(0x1fc),'topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES[a63_0x2a3978(0x1f5)],'importable':!![]},'locale':{'description':a63_0x2a3978(0x1e7),'topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES[a63_0x2a3978(0x1fa)],'importable':!![],'legacyCompatOnly':!![]}};export const TOP_LEVEL_CONFIG_KEYS=new Set(Object[a63_0x2a3978(0x1eb)](CONFIG_FIELD_SCHEMAS)[a63_0x2a3978(0x1e8)](([,_0x49f520])=>_0x49f520[a63_0x2a3978(0x1e6)])[a63_0x2a3978(0x1f8)](([_0x403d27])=>_0x403d27));export const CONFIG_ENUM_VALUES=Object[a63_0x2a3978(0x1e3)](Object[a63_0x2a3978(0x1eb)](CONFIG_FIELD_SCHEMAS)[a63_0x2a3978(0x1e8)](([,_0x2bf8b6])=>_0x2bf8b6[a63_0x2a3978(0x1f0)])[a63_0x2a3978(0x1f8)](([_0x1879cc,_0x2c1dca])=>[_0x1879cc,[..._0x2c1dca[a63_0x2a3978(0x1f0)]||[]]]));export const IMPORTABLE_RUNTIME_CONFIG_KEYS=Object['entries'](CONFIG_FIELD_SCHEMAS)[a63_0x2a3978(0x1e8)](([,_0x2d7c68])=>_0x2d7c68[a63_0x2a3978(0x1ed)])[a63_0x2a3978(0x1f8)](([_0x1330b5])=>_0x1330b5);export function getConfigFieldSchema(_0x45502d){return CONFIG_FIELD_SCHEMAS[_0x45502d];}export function getConfigEnumValues(_0x176b6c){return getConfigFieldSchema(_0x176b6c)?.['enumValues'];}export function getConfigDefaultValue(_0x317113){const _0x524ea8=a63_0x2a3978;return getConfigFieldSchema(_0x317113)?.[_0x524ea8(0x1fd)];}export function isTopLevelConfigKey(_0x1cdf72){const _0x3b76a2=a63_0x2a3978;return TOP_LEVEL_CONFIG_KEYS[_0x3b76a2(0x1ef)](_0x1cdf72);}export function isLegacyCompatConfigKey(_0x483ef4){return getConfigFieldSchema(_0x483ef4)?.['legacyCompatOnly']===!![];}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function formatConfigKeyList(_0x52727d){const _0x38d8e1=a63_0x2a3978;return[..._0x52727d][_0x38d8e1(0x1e4)](',\x20');}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){const _0x44a7ba=a63_0x2a3978;return'Config\x20key.\x20Top-level:\x20'+getTopLevelConfigKeySummary()+_0x44a7ba(0x1e1);}export function buildAppProfileListFields(_0x41ba01){return{'env':_0x41ba01,'hasAccessKey':![],'format':null,'pageSize':null,'riskLevel':null,'locale':null};}
1
+ const a65_0xb800af=a65_0x26d9;(function(_0x3d1c1a,_0x1e6483){const _0x55697b=a65_0x26d9,_0x9d1f69=_0x3d1c1a();while(!![]){try{const _0x414dbe=parseInt(_0x55697b(0x9e))/0x1+-parseInt(_0x55697b(0x86))/0x2+-parseInt(_0x55697b(0x95))/0x3+-parseInt(_0x55697b(0x96))/0x4+-parseInt(_0x55697b(0x9d))/0x5+-parseInt(_0x55697b(0x97))/0x6*(parseInt(_0x55697b(0x8d))/0x7)+parseInt(_0x55697b(0x8b))/0x8;if(_0x414dbe===_0x1e6483)break;else _0x9d1f69['push'](_0x9d1f69['shift']());}catch(_0x553623){_0x9d1f69['push'](_0x9d1f69['shift']());}}}(a65_0x3246,0x51b03));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':a65_0xb800af(0x91),'topLevel':!![],'cliSettableTopLevel':!![],'enumValues':RUNTIME_ENV_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES['env'],'importable':!![]},'format':{'description':a65_0xb800af(0x9c),'topLevel':!![],'cliSettableTopLevel':!![],'enumValues':OUTPUT_FORMAT_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES[a65_0xb800af(0x92)],'importable':!![]},'pageSize':{'description':'Default\x20page\x20size','topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'apiDomain':{'description':a65_0xb800af(0x89),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'userDomain':{'description':a65_0xb800af(0x8e),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'runtimeDomain':{'description':a65_0xb800af(0xa1),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'skillHubDomain':{'description':a65_0xb800af(0x99),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'accessKey':{'description':'Access\x20key\x20(client-ak\x20auth)','topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'riskLevel':{'description':a65_0xb800af(0x87),'topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES[a65_0xb800af(0xa0)],'importable':!![]},'locale':{'description':a65_0xb800af(0x98),'topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES[a65_0xb800af(0x93)],'importable':!![],'legacyCompatOnly':!![]}};export const TOP_LEVEL_CONFIG_KEYS=new Set(Object[a65_0xb800af(0x90)](CONFIG_FIELD_SCHEMAS)['filter'](([,_0x506f9c])=>_0x506f9c[a65_0xb800af(0x9a)])['map'](([_0x19ece3])=>_0x19ece3));export const CONFIG_ENUM_VALUES=Object['fromEntries'](Object[a65_0xb800af(0x90)](CONFIG_FIELD_SCHEMAS)[a65_0xb800af(0x94)](([,_0x2563eb])=>_0x2563eb[a65_0xb800af(0x8a)])[a65_0xb800af(0x8f)](([_0x650763,_0x2902b8])=>[_0x650763,[..._0x2902b8[a65_0xb800af(0x8a)]||[]]]));export const IMPORTABLE_RUNTIME_CONFIG_KEYS=Object[a65_0xb800af(0x90)](CONFIG_FIELD_SCHEMAS)[a65_0xb800af(0x94)](([,_0x26c66f])=>_0x26c66f[a65_0xb800af(0x9b)])[a65_0xb800af(0x8f)](([_0x3faeac])=>_0x3faeac);export function getConfigFieldSchema(_0x5ebfc3){return CONFIG_FIELD_SCHEMAS[_0x5ebfc3];}export function getConfigEnumValues(_0x13fd21){return getConfigFieldSchema(_0x13fd21)?.['enumValues'];}function a65_0x26d9(_0x410b14,_0x127fe2){_0x410b14=_0x410b14-0x85;const _0x324612=a65_0x3246();let _0x26d984=_0x324612[_0x410b14];return _0x26d984;}export function getConfigDefaultValue(_0x3c82d4){const _0x307cd5=a65_0xb800af;return getConfigFieldSchema(_0x3c82d4)?.[_0x307cd5(0xa2)];}export function isTopLevelConfigKey(_0x400306){return TOP_LEVEL_CONFIG_KEYS['has'](_0x400306);}export function isLegacyCompatConfigKey(_0x4ce11b){const _0x4c9415=a65_0xb800af;return getConfigFieldSchema(_0x4ce11b)?.[_0x4c9415(0x8c)]===!![];}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function formatConfigKeyList(_0x2308a3){const _0x46fec1=a65_0xb800af;return[..._0x2308a3][_0x46fec1(0x9f)](',\x20');}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){const _0x171c73=a65_0xb800af;return _0x171c73(0x88)+getTopLevelConfigKeySummary()+_0x171c73(0x85);}function a65_0x3246(){const _0x118511=['Default\x20output\x20format','2857850yaEzAZ','542839BrKGGT','join','riskLevel','Override\x20runtime\x20domain','defaultValue',';\x20local\x20alias:\x20apps.<alias>.appcode','1092308gyXBPJ','Risk\x20level','Config\x20key.\x20Top-level:\x20','Override\x20API\x20domain','enumValues','10396712KlRLxT','legacyCompatOnly','56YfdnTg','Override\x20user\x20domain','map','entries','Target\x20environment','format','locale','filter','1023795WYHtMv','81904BMbIjd','21276dSQNXI','Locale','Override\x20SkillHub\x20domain','cliSettableTopLevel','importable'];a65_0x3246=function(){return _0x118511;};return a65_0x3246();}export function buildAppProfileListFields(_0x2fca78){return{'env':_0x2fca78,'hasAccessKey':![],'format':null,'pageSize':null,'riskLevel':null,'locale':null};}
@@ -1 +1 @@
1
- function a64_0x5c45(_0x39e1b4,_0x298a88){_0x39e1b4=_0x39e1b4-0x129;const _0x4b81f4=a64_0x4b81();let _0x5c459b=_0x4b81f4[_0x39e1b4];return _0x5c459b;}const a64_0x567971=a64_0x5c45;function a64_0x4b81(){const _0x778c0b=['236822ghgele','579864oQRbVc','27neAvFG','20JNwzlO','10776gahfCI','170PhgItb','6396936dxhroG','206428gtWTzj','35629hrHbjC','7aCuHuU','UNPUBLISH','PUBLISHED','3GfXJdw','143974AbRApv'];a64_0x4b81=function(){return _0x778c0b;};return a64_0x4b81();}(function(_0x3ea2b5,_0x592d1d){const _0x236f71=a64_0x5c45,_0x4d2215=_0x3ea2b5();while(!![]){try{const _0x515ef1=-parseInt(_0x236f71(0x12b))/0x1+-parseInt(_0x236f71(0x12c))/0x2*(-parseInt(_0x236f71(0x12a))/0x3)+parseInt(_0x236f71(0x133))/0x4*(-parseInt(_0x236f71(0x12f))/0x5)+-parseInt(_0x236f71(0x12d))/0x6*(parseInt(_0x236f71(0x135))/0x7)+parseInt(_0x236f71(0x130))/0x8*(parseInt(_0x236f71(0x12e))/0x9)+parseInt(_0x236f71(0x131))/0xa*(-parseInt(_0x236f71(0x134))/0xb)+parseInt(_0x236f71(0x132))/0xc;if(_0x515ef1===_0x592d1d)break;else _0x4d2215['push'](_0x4d2215['shift']());}catch(_0x14d35e){_0x4d2215['push'](_0x4d2215['shift']());}}}(a64_0x4b81,0x2574d));export const APP_PUBLISH_STATUS={'Published':a64_0x567971(0x129),'Unpublished':a64_0x567971(0x136)};export const RUNTIME_ACCESSIBLE_APP_STATUS=APP_PUBLISH_STATUS['Published'];
1
+ const a66_0x5bfef2=a66_0x5c0f;function a66_0x2426(){const _0x1b0c94=['PUBLISHED','1354362rmxiEw','23350668vyhZkv','3773112BfyrDI','10QDEDov','2115489DodCjl','5KJLDXA','2dOMaIS','3624dpWdrg','9833152cpKMEO','3618954PmXgFt','10503ZgkQPY'];a66_0x2426=function(){return _0x1b0c94;};return a66_0x2426();}function a66_0x5c0f(_0x36918b,_0x58f1cf){_0x36918b=_0x36918b-0x1cb;const _0x2426f7=a66_0x2426();let _0x5c0fd6=_0x2426f7[_0x36918b];return _0x5c0fd6;}(function(_0x5a215a,_0x5e4f0d){const _0x19b8f9=a66_0x5c0f,_0x4ac291=_0x5a215a();while(!![]){try{const _0x1ff7be=parseInt(_0x19b8f9(0x1cd))/0x1+parseInt(_0x19b8f9(0x1d3))/0x2*(parseInt(_0x19b8f9(0x1d1))/0x3)+-parseInt(_0x19b8f9(0x1cf))/0x4+-parseInt(_0x19b8f9(0x1d2))/0x5*(parseInt(_0x19b8f9(0x1d6))/0x6)+-parseInt(_0x19b8f9(0x1d5))/0x7+parseInt(_0x19b8f9(0x1d4))/0x8*(-parseInt(_0x19b8f9(0x1cb))/0x9)+-parseInt(_0x19b8f9(0x1d0))/0xa*(-parseInt(_0x19b8f9(0x1ce))/0xb);if(_0x1ff7be===_0x5e4f0d)break;else _0x4ac291['push'](_0x4ac291['shift']());}catch(_0x5938d5){_0x4ac291['push'](_0x4ac291['shift']());}}}(a66_0x2426,0xab819));export const APP_PUBLISH_STATUS={'Published':a66_0x5bfef2(0x1cc),'Unpublished':'UNPUBLISH'};export const RUNTIME_ACCESSIBLE_APP_STATUS=APP_PUBLISH_STATUS['Published'];
@@ -1 +1 @@
1
- (function(_0x546e9b,_0x108fd7){const _0x4e71f8=a65_0x23bb,_0x3aba39=_0x546e9b();while(!![]){try{const _0x324fc7=-parseInt(_0x4e71f8(0x182))/0x1*(parseInt(_0x4e71f8(0x183))/0x2)+parseInt(_0x4e71f8(0x18c))/0x3*(parseInt(_0x4e71f8(0x181))/0x4)+parseInt(_0x4e71f8(0x189))/0x5*(-parseInt(_0x4e71f8(0x18b))/0x6)+-parseInt(_0x4e71f8(0x187))/0x7*(parseInt(_0x4e71f8(0x180))/0x8)+-parseInt(_0x4e71f8(0x186))/0x9*(parseInt(_0x4e71f8(0x18a))/0xa)+parseInt(_0x4e71f8(0x188))/0xb+-parseInt(_0x4e71f8(0x185))/0xc*(-parseInt(_0x4e71f8(0x17f))/0xd);if(_0x324fc7===_0x108fd7)break;else _0x3aba39['push'](_0x3aba39['shift']());}catch(_0xa3bed9){_0x3aba39['push'](_0x3aba39['shift']());}}}(a65_0x14ac,0xd4cc9));function a65_0x14ac(){const _0xe1441f=['461799dCcEIC','2dtulpV','ClientAk','12qVUkta','206433cQbxPB','4738601GxMqoJ','3030137VveGJs','25RWdEDP','220WydSJO','1502622NUWizK','6EisvYd','37746761bndqBr','8UPxbsk','1176204txIiYI'];a65_0x14ac=function(){return _0xe1441f;};return a65_0x14ac();}export const AUTH_MODE={'ClientAk':'client-ak'};function a65_0x23bb(_0x4f28cb,_0x3bdffc){_0x4f28cb=_0x4f28cb-0x17f;const _0x14accb=a65_0x14ac();let _0x23bb35=_0x14accb[_0x4f28cb];return _0x23bb35;}export function isAuthMode(_0x3a08dc){const _0x17bf28=a65_0x23bb;return _0x3a08dc===AUTH_MODE[_0x17bf28(0x184)];}
1
+ function a67_0xd21b(_0x9a5539,_0x3fabe8){_0x9a5539=_0x9a5539-0xf1;const _0x86e20c=a67_0x86e2();let _0xd21b93=_0x86e20c[_0x9a5539];return _0xd21b93;}(function(_0xc42a73,_0x4fd8df){const _0x13eceb=a67_0xd21b,_0x41f533=_0xc42a73();while(!![]){try{const _0x24fa77=parseInt(_0x13eceb(0xf5))/0x1*(-parseInt(_0x13eceb(0xf2))/0x2)+parseInt(_0x13eceb(0xf8))/0x3*(parseInt(_0x13eceb(0xf6))/0x4)+parseInt(_0x13eceb(0xf4))/0x5+parseInt(_0x13eceb(0xf3))/0x6+parseInt(_0x13eceb(0xf1))/0x7+parseInt(_0x13eceb(0xf9))/0x8+-parseInt(_0x13eceb(0xf7))/0x9;if(_0x24fa77===_0x4fd8df)break;else _0x41f533['push'](_0x41f533['shift']());}catch(_0x3cae7f){_0x41f533['push'](_0x41f533['shift']());}}}(a67_0x86e2,0x21e31));export const AUTH_MODE={'ClientAk':'client-ak'};export function isAuthMode(_0x179462){return _0x179462===AUTH_MODE['ClientAk'];}function a67_0x86e2(){const _0x2c3394=['43630YhcMYS','7039yQIcYo','4SrgaJu','2169306mhHiXK','501801UYtocf','1165760UewPsD','955549dCdUdH','62WkSOlU','838944snsAth'];a67_0x86e2=function(){return _0x2c3394;};return a67_0x86e2();}
@@ -1 +1 @@
1
- const a66_0x571f4a=a66_0x43e8;(function(_0xd582f3,_0x15cc65){const _0x4801f6=a66_0x43e8,_0x3a6a5c=_0xd582f3();while(!![]){try{const _0x16426b=parseInt(_0x4801f6(0x175))/0x1+-parseInt(_0x4801f6(0x179))/0x2*(-parseInt(_0x4801f6(0x18b))/0x3)+-parseInt(_0x4801f6(0x181))/0x4*(-parseInt(_0x4801f6(0x184))/0x5)+-parseInt(_0x4801f6(0x183))/0x6*(parseInt(_0x4801f6(0x189))/0x7)+-parseInt(_0x4801f6(0x17f))/0x8+parseInt(_0x4801f6(0x180))/0x9*(parseInt(_0x4801f6(0x193))/0xa)+parseInt(_0x4801f6(0x18a))/0xb;if(_0x16426b===_0x15cc65)break;else _0x3a6a5c['push'](_0x3a6a5c['shift']());}catch(_0x3b28e0){_0x3a6a5c['push'](_0x3a6a5c['shift']());}}}(a66_0x4723,0x29f8d));import{PRODUCT_CONFIG}from'../constant/product.js';import{LOVRABET_NPM_PACKAGE_NAME}from'../constant/distribution.js';export const CLI_BIN_NAME=PRODUCT_CONFIG[a66_0x571f4a(0x187)];export const CLI_DISPLAY_NAME=PRODUCT_CONFIG[a66_0x571f4a(0x196)];function a66_0x4723(){const _0x26328d=['Name\x20filter','cliDisplayName','env','fromEntries','string','yes','Force\x20non-interactive\x20mode\x20(CI)','<expr>','nonInteractive','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20implies\x20--format\x20json\x20when\x20current\x20format\x20is\x20pretty)','appcode','Output\x20format','Environment','Skip\x20confirmation\x20for\x20high-risk\x20writes','77595VHKLpX','format','help','global','10958eGBlna','Verbose\x20output','non-interactive','app','sqlcode','Select\x20app\x20profile\x20by\x20name','1430000xujOAH','63NBDPYn','35296PkkltK','SQL\x20query\x20code','30ITLwNv','35vWrqxi','type','JSON\x20params\x20for\x20execute\x20commands','cliBinName','dry-run','201215WoUszt','1082081qVlEJk','27RrFlve','Show\x20help','clear','json\x20|\x20pretty\x20|\x20compress','Preview\x20operation\x20without\x20executing','Override\x20appcode','meowKey','boolean','296210CvBFlq','verbose'];a66_0x4723=function(){return _0x26328d;};return a66_0x4723();}export const NPM_PACKAGE_NAME=LOVRABET_NPM_PACKAGE_NAME;export const GLOBAL_FLAGS=[{'name':a66_0x571f4a(0x171),'meowKey':a66_0x571f4a(0x171),'type':a66_0x571f4a(0x199),'description':a66_0x571f4a(0x190),'hint':'<code>'},{'name':a66_0x571f4a(0x17c),'meowKey':a66_0x571f4a(0x17c),'type':a66_0x571f4a(0x199),'description':a66_0x571f4a(0x17e),'hint':'<name>'},{'name':a66_0x571f4a(0x197),'meowKey':a66_0x571f4a(0x197),'type':a66_0x571f4a(0x199),'description':a66_0x571f4a(0x173),'hint':'production\x20|\x20development\x20|\x20daily'},{'name':'format','meowKey':a66_0x571f4a(0x176),'type':a66_0x571f4a(0x199),'description':a66_0x571f4a(0x172),'hint':a66_0x571f4a(0x18e)},{'name':'jq','meowKey':'jq','type':a66_0x571f4a(0x199),'description':a66_0x571f4a(0x19e),'hint':a66_0x571f4a(0x19c)},{'name':'dry-run','meowKey':'dryRun','type':a66_0x571f4a(0x192),'description':a66_0x571f4a(0x18f)},{'name':'yes','meowKey':a66_0x571f4a(0x19a),'type':a66_0x571f4a(0x192),'description':a66_0x571f4a(0x174)},{'name':a66_0x571f4a(0x17b),'meowKey':a66_0x571f4a(0x19d),'type':'boolean','description':a66_0x571f4a(0x19b)},{'name':a66_0x571f4a(0x178),'meowKey':'global','type':a66_0x571f4a(0x192),'description':'Use\x20global\x20config\x20scope'},{'name':'ci','meowKey':'ci','type':'boolean','description':'Alias\x20for\x20--non-interactive','hidden':!![]},{'name':a66_0x571f4a(0x177),'meowKey':'help','type':a66_0x571f4a(0x192),'description':a66_0x571f4a(0x18c)},{'name':'id','meowKey':'id','type':a66_0x571f4a(0x199),'description':'Record\x20ID','hidden':!![]},{'name':'name','meowKey':'name','type':a66_0x571f4a(0x199),'description':a66_0x571f4a(0x195),'hidden':!![]},{'name':a66_0x571f4a(0x17d),'meowKey':a66_0x571f4a(0x17d),'type':a66_0x571f4a(0x199),'description':a66_0x571f4a(0x182),'hidden':!![]},{'name':'params','meowKey':'params','type':a66_0x571f4a(0x199),'description':a66_0x571f4a(0x186),'hidden':!![]},{'name':'verbose','meowKey':a66_0x571f4a(0x194),'type':a66_0x571f4a(0x192),'description':a66_0x571f4a(0x17a),'hidden':!![]},{'name':a66_0x571f4a(0x18d),'meowKey':a66_0x571f4a(0x18d),'type':a66_0x571f4a(0x192),'description':'Clear\x20output','hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set([a66_0x571f4a(0x171),'app',a66_0x571f4a(0x197),'format','jq',a66_0x571f4a(0x188),a66_0x571f4a(0x19a),a66_0x571f4a(0x17b),'ci']);function a66_0x43e8(_0x17e16d,_0x10a6d4){_0x17e16d=_0x17e16d-0x171;const _0x472380=a66_0x4723();let _0x43e84f=_0x472380[_0x17e16d];return _0x43e84f;}export function buildMeowFlags(){const _0x368dc1=a66_0x571f4a;return Object[_0x368dc1(0x198)](GLOBAL_FLAGS['map'](_0x512f08=>[_0x512f08[_0x368dc1(0x191)],{'type':_0x512f08[_0x368dc1(0x185)]}]));}
1
+ const a68_0x3c88f8=a68_0x35ab;(function(_0x3a67d3,_0x413f1c){const _0x1a0997=a68_0x35ab,_0x457ed3=_0x3a67d3();while(!![]){try{const _0x3aa4c1=-parseInt(_0x1a0997(0xb1))/0x1+parseInt(_0x1a0997(0xa5))/0x2+-parseInt(_0x1a0997(0xab))/0x3+parseInt(_0x1a0997(0xc5))/0x4*(parseInt(_0x1a0997(0x9f))/0x5)+-parseInt(_0x1a0997(0xc8))/0x6*(parseInt(_0x1a0997(0xba))/0x7)+parseInt(_0x1a0997(0xa8))/0x8+parseInt(_0x1a0997(0xb7))/0x9*(parseInt(_0x1a0997(0xae))/0xa);if(_0x3aa4c1===_0x413f1c)break;else _0x457ed3['push'](_0x457ed3['shift']());}catch(_0x1041dc){_0x457ed3['push'](_0x457ed3['shift']());}}}(a68_0x8a57,0x234db));import{PRODUCT_CONFIG}from'../constant/product.js';import{LOVRABET_NPM_PACKAGE_NAME}from'../constant/distribution.js';export const CLI_BIN_NAME=PRODUCT_CONFIG['cliBinName'];export const CLI_DISPLAY_NAME=PRODUCT_CONFIG[a68_0x3c88f8(0xa0)];function a68_0x35ab(_0x179f88,_0x12c628){_0x179f88=_0x179f88-0x9b;const _0x8a576b=a68_0x8a57();let _0x35ab92=_0x8a576b[_0x179f88];return _0x35ab92;}export const NPM_PACKAGE_NAME=LOVRABET_NPM_PACKAGE_NAME;export const GLOBAL_FLAGS=[{'name':a68_0x3c88f8(0xa9),'meowKey':a68_0x3c88f8(0xa9),'type':'string','description':a68_0x3c88f8(0xc2),'hint':a68_0x3c88f8(0xb8)},{'name':a68_0x3c88f8(0xa1),'meowKey':a68_0x3c88f8(0xa1),'type':a68_0x3c88f8(0xac),'description':a68_0x3c88f8(0xc4),'hint':a68_0x3c88f8(0x9d)},{'name':'env','meowKey':a68_0x3c88f8(0xb2),'type':a68_0x3c88f8(0xac),'description':a68_0x3c88f8(0xbe),'hint':'production\x20|\x20development\x20|\x20daily'},{'name':a68_0x3c88f8(0xa7),'meowKey':a68_0x3c88f8(0xa7),'type':a68_0x3c88f8(0xac),'description':a68_0x3c88f8(0xb6),'hint':'json\x20|\x20pretty\x20|\x20compress'},{'name':'jq','meowKey':'jq','type':a68_0x3c88f8(0xac),'description':'Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20implies\x20--format\x20json\x20when\x20current\x20format\x20is\x20pretty)','hint':a68_0x3c88f8(0xc1)},{'name':'dry-run','meowKey':a68_0x3c88f8(0xb3),'type':a68_0x3c88f8(0x9e),'description':a68_0x3c88f8(0xb9)},{'name':a68_0x3c88f8(0xa4),'meowKey':a68_0x3c88f8(0xa4),'type':a68_0x3c88f8(0x9e),'description':a68_0x3c88f8(0xa2)},{'name':a68_0x3c88f8(0xc3),'meowKey':a68_0x3c88f8(0xbd),'type':a68_0x3c88f8(0x9e),'description':a68_0x3c88f8(0xa3)},{'name':a68_0x3c88f8(0xad),'meowKey':a68_0x3c88f8(0xad),'type':a68_0x3c88f8(0x9e),'description':a68_0x3c88f8(0xaa)},{'name':'ci','meowKey':'ci','type':a68_0x3c88f8(0x9e),'description':a68_0x3c88f8(0xbc),'hidden':!![]},{'name':a68_0x3c88f8(0x9c),'meowKey':a68_0x3c88f8(0x9c),'type':a68_0x3c88f8(0x9e),'description':a68_0x3c88f8(0xc6)},{'name':'id','meowKey':'id','type':a68_0x3c88f8(0xac),'description':'Record\x20ID','hidden':!![]},{'name':a68_0x3c88f8(0xa6),'meowKey':a68_0x3c88f8(0xa6),'type':'string','description':a68_0x3c88f8(0xc7),'hidden':!![]},{'name':a68_0x3c88f8(0xc0),'meowKey':a68_0x3c88f8(0xc0),'type':'string','description':'SQL\x20query\x20code','hidden':!![]},{'name':a68_0x3c88f8(0xbb),'meowKey':a68_0x3c88f8(0xbb),'type':a68_0x3c88f8(0xac),'description':a68_0x3c88f8(0xc9),'hidden':!![]},{'name':a68_0x3c88f8(0x9b),'meowKey':a68_0x3c88f8(0x9b),'type':a68_0x3c88f8(0x9e),'description':a68_0x3c88f8(0xbf),'hidden':!![]},{'name':a68_0x3c88f8(0xb0),'meowKey':'clear','type':'boolean','description':'Clear\x20output','hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set([a68_0x3c88f8(0xa9),'app',a68_0x3c88f8(0xb2),a68_0x3c88f8(0xa7),'jq',a68_0x3c88f8(0xb5),'yes',a68_0x3c88f8(0xc3),'ci']);function a68_0x8a57(){const _0x23e472=['459254RVVNfw','name','format','2098176xGNYuY','appcode','Use\x20global\x20config\x20scope','412293crnnYj','string','global','10ocFLlS','fromEntries','clear','188615xtvpJu','env','dryRun','map','dry-run','Output\x20format','1761543PYjdbR','<code>','Preview\x20operation\x20without\x20executing','14bHIXWk','params','Alias\x20for\x20--non-interactive','nonInteractive','Environment','Verbose\x20output','sqlcode','<expr>','Override\x20appcode','non-interactive','Select\x20app\x20profile\x20by\x20name','580FyrvSf','Show\x20help','Name\x20filter','740106FZjtTq','JSON\x20params\x20for\x20execute\x20commands','meowKey','verbose','help','<name>','boolean','1025UEdnqc','cliDisplayName','app','Skip\x20confirmation\x20for\x20high-risk\x20writes','Force\x20non-interactive\x20mode\x20(CI)','yes'];a68_0x8a57=function(){return _0x23e472;};return a68_0x8a57();}export function buildMeowFlags(){const _0xc7b71d=a68_0x3c88f8;return Object[_0xc7b71d(0xaf)](GLOBAL_FLAGS[_0xc7b71d(0xb4)](_0x5c9c68=>[_0x5c9c68[_0xc7b71d(0xca)],{'type':_0x5c9c68['type']}]));}
@@ -1 +1 @@
1
- const a67_0x1c1d01=a67_0x38c1;function a67_0x35e5(){const _0x5acf1e=['452868hyBNUe','8njSBWe','main','6114630hIVSUQ','24865cnOpfe','en-US','19130ImKdXV','write','309604VyKDnp','9OtSnAQ','292673dhjyaY','76139rkrGBf','318kbbJUY'];a67_0x35e5=function(){return _0x5acf1e;};return a67_0x35e5();}function a67_0x38c1(_0x28ab5b,_0x66a172){_0x28ab5b=_0x28ab5b-0x153;const _0x35e542=a67_0x35e5();let _0x38c16c=_0x35e542[_0x28ab5b];return _0x38c16c;}(function(_0x48a445,_0x5a58b7){const _0x4e4bb7=a67_0x38c1,_0x10fe80=_0x48a445();while(!![]){try{const _0x28cfab=-parseInt(_0x4e4bb7(0x15d))/0x1+parseInt(_0x4e4bb7(0x159))/0x2+parseInt(_0x4e4bb7(0x153))/0x3+-parseInt(_0x4e4bb7(0x15b))/0x4+parseInt(_0x4e4bb7(0x157))/0x5*(-parseInt(_0x4e4bb7(0x15f))/0x6)+parseInt(_0x4e4bb7(0x15e))/0x7*(parseInt(_0x4e4bb7(0x154))/0x8)+-parseInt(_0x4e4bb7(0x15c))/0x9*(-parseInt(_0x4e4bb7(0x156))/0xa);if(_0x28cfab===_0x5a58b7)break;else _0x10fe80['push'](_0x10fe80['shift']());}catch(_0x1cdd09){_0x10fe80['push'](_0x10fe80['shift']());}}}(a67_0x35e5,0x246e2));export const DEFAULT_APP_PROFILE_NAME=a67_0x1c1d01(0x155);export const DEFAULT_CONFIG_VALUES={'env':'production','format':'compress','locale':a67_0x1c1d01(0x158),'riskLevel':a67_0x1c1d01(0x15a)};export const DEFAULT_COMMAND_OUTPUT_FORMAT='compress';
1
+ function a69_0x471a(){const _0xdb46f9=['3990690MlnhhK','16FMKkmT','1569522KsycNv','en-US','388pFKcSK','compress','main','production','139110EOnmJo','163827LJkRyl','875469HHiRpB','262339xRfTdV','858MugPSj','12mIIQEp','write'];a69_0x471a=function(){return _0xdb46f9;};return a69_0x471a();}const a69_0x451988=a69_0x9f02;(function(_0x39d576,_0x221aa2){const _0xf1e186=a69_0x9f02,_0x6dd380=_0x39d576();while(!![]){try{const _0x260365=-parseInt(_0xf1e186(0x17c))/0x1+parseInt(_0xf1e186(0x175))/0x2*(-parseInt(_0xf1e186(0x17d))/0x3)+parseInt(_0xf1e186(0x17e))/0x4*(parseInt(_0xf1e186(0x179))/0x5)+-parseInt(_0xf1e186(0x182))/0x6+parseInt(_0xf1e186(0x17b))/0x7*(parseInt(_0xf1e186(0x181))/0x8)+-parseInt(_0xf1e186(0x17a))/0x9+parseInt(_0xf1e186(0x180))/0xa;if(_0x260365===_0x221aa2)break;else _0x6dd380['push'](_0x6dd380['shift']());}catch(_0x54bd3a){_0x6dd380['push'](_0x6dd380['shift']());}}}(a69_0x471a,0x20f90));function a69_0x9f02(_0x1e083d,_0x35f133){_0x1e083d=_0x1e083d-0x175;const _0x471ac0=a69_0x471a();let _0x9f02a5=_0x471ac0[_0x1e083d];return _0x9f02a5;}export const DEFAULT_APP_PROFILE_NAME=a69_0x451988(0x177);export const DEFAULT_CONFIG_VALUES={'env':a69_0x451988(0x178),'format':a69_0x451988(0x176),'locale':a69_0x451988(0x183),'riskLevel':a69_0x451988(0x17f)};export const DEFAULT_COMMAND_OUTPUT_FORMAT='compress';
@@ -1 +1 @@
1
- const a68_0x2ffd0f=a68_0x41a1;(function(_0x5da480,_0x1f49b6){const _0x5b1df4=a68_0x41a1,_0x9fa1c5=_0x5da480();while(!![]){try{const _0x2dafef=parseInt(_0x5b1df4(0xa9))/0x1*(-parseInt(_0x5b1df4(0xa6))/0x2)+-parseInt(_0x5b1df4(0xa4))/0x3*(-parseInt(_0x5b1df4(0xad))/0x4)+parseInt(_0x5b1df4(0xae))/0x5+-parseInt(_0x5b1df4(0xa5))/0x6+-parseInt(_0x5b1df4(0xa8))/0x7+-parseInt(_0x5b1df4(0xaa))/0x8*(-parseInt(_0x5b1df4(0xa2))/0x9)+parseInt(_0x5b1df4(0xac))/0xa*(parseInt(_0x5b1df4(0xab))/0xb);if(_0x2dafef===_0x1f49b6)break;else _0x9fa1c5['push'](_0x9fa1c5['shift']());}catch(_0x22c9e6){_0x9fa1c5['push'](_0x9fa1c5['shift']());}}}(a68_0x1bc0,0x328b2));function a68_0x41a1(_0x5ab221,_0x510b9c){_0x5ab221=_0x5ab221-0xa2;const _0x1bc07b=a68_0x1bc0();let _0x41a1d7=_0x1bc07b[_0x5ab221];return _0x41a1d7;}import{PRODUCT_CONFIG}from'../constant/product.js';export const LOVRABET_NPM_PACKAGE_NAME=PRODUCT_CONFIG[a68_0x2ffd0f(0xa7)];export const LOVRABET_SKILL_SOURCE=PRODUCT_CONFIG['skillSource'];export const NPM_REGISTRY_BASE_URL=PRODUCT_CONFIG[a68_0x2ffd0f(0xa3)];function a68_0x1bc0(){const _0x5893c3=['1HSQdpY','408fWyYIT','5131544mUPKvU','10MFiyUR','1732RkRZIB','1412305tyPYjk','14661vMBOZs','npmRegistryBaseUrl','951zByauU','1734750UgyGcz','194316scLNpl','npmPackageName','2631972PwihZH'];a68_0x1bc0=function(){return _0x5893c3;};return a68_0x1bc0();}
1
+ const a70_0x4cbba1=a70_0x3b71;(function(_0x4ff909,_0x48a866){const _0x457016=a70_0x3b71,_0x4831d3=_0x4ff909();while(!![]){try{const _0x5d2555=-parseInt(_0x457016(0x9e))/0x1+parseInt(_0x457016(0xa4))/0x2+-parseInt(_0x457016(0xa1))/0x3*(parseInt(_0x457016(0xa5))/0x4)+-parseInt(_0x457016(0xa2))/0x5*(parseInt(_0x457016(0xa3))/0x6)+parseInt(_0x457016(0x9c))/0x7+parseInt(_0x457016(0xa7))/0x8+-parseInt(_0x457016(0x9d))/0x9*(-parseInt(_0x457016(0xa0))/0xa);if(_0x5d2555===_0x48a866)break;else _0x4831d3['push'](_0x4831d3['shift']());}catch(_0x4cbcbe){_0x4831d3['push'](_0x4831d3['shift']());}}}(a70_0x57f6,0x49bce));function a70_0x57f6(){const _0x330461=['skillSource','2424107aDRazE','349047sGIilF','241969VIpqOa','npmPackageName','20xqOQLX','195QaeeJD','1323015SkqtcE','6myQNJz','660496oXmviF','20480TtkdpZ','npmRegistryBaseUrl','3098296HBRqwV'];a70_0x57f6=function(){return _0x330461;};return a70_0x57f6();}import{PRODUCT_CONFIG}from'../constant/product.js';export const LOVRABET_NPM_PACKAGE_NAME=PRODUCT_CONFIG[a70_0x4cbba1(0x9f)];export const LOVRABET_SKILL_SOURCE=PRODUCT_CONFIG[a70_0x4cbba1(0x9b)];function a70_0x3b71(_0x1adf31,_0x52c662){_0x1adf31=_0x1adf31-0x9b;const _0x57f60c=a70_0x57f6();let _0x3b71c3=_0x57f60c[_0x1adf31];return _0x3b71c3;}export const NPM_REGISTRY_BASE_URL=PRODUCT_CONFIG[a70_0x4cbba1(0xa6)];
@@ -1 +1 @@
1
- function a69_0x3038(){const _0x5562af=['235828SWgTGJ','1008476XpQbum','273YKOSXz','userDomain','5786704EPSEhj','runtime','domains','nonProduction','user','runtimeDomain','skillhub','api','263805vVceyV','skillHubDomain','185715rRmPhq','2331845WvFGrp','124458EfmraZ','apiDomain','production','3oNnnHb'];a69_0x3038=function(){return _0x5562af;};return a69_0x3038();}const a69_0x43e0ab=a69_0x3f38;(function(_0x11c86b,_0x360cb5){const _0x301b4c=a69_0x3f38,_0x419043=_0x11c86b();while(!![]){try{const _0x2e0cf5=parseInt(_0x301b4c(0x161))/0x1+-parseInt(_0x301b4c(0x169))/0x2+-parseInt(_0x301b4c(0x168))/0x3*(parseInt(_0x301b4c(0x16a))/0x4)+parseInt(_0x301b4c(0x164))/0x5+parseInt(_0x301b4c(0x165))/0x6*(parseInt(_0x301b4c(0x16b))/0x7)+-parseInt(_0x301b4c(0x159))/0x8+parseInt(_0x301b4c(0x163))/0x9;if(_0x2e0cf5===_0x360cb5)break;else _0x419043['push'](_0x419043['shift']());}catch(_0x79e6e1){_0x419043['push'](_0x419043['shift']());}}}(a69_0x3038,0x71def));import{getEnv,isProduction}from'../constant/env.js';import{PRODUCT_CONFIG}from'../constant/product.js';let customApiDomain,customUserDomain,customRuntimeDomain,customSkillHubDomain;export function initDomains(_0xc5cf86){const _0x30f3e6=a69_0x3f38;customApiDomain=_0xc5cf86?.[_0x30f3e6(0x166)],customUserDomain=_0xc5cf86?.[_0x30f3e6(0x16c)],customRuntimeDomain=_0xc5cf86?.[_0x30f3e6(0x15e)],customSkillHubDomain=_0xc5cf86?.[_0x30f3e6(0x162)];}export const getUserDomain=()=>customUserDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a69_0x43e0ab(0x15b)]['production'][a69_0x43e0ab(0x15d)]:PRODUCT_CONFIG['domains']['nonProduction'][a69_0x43e0ab(0x15d)]);export const getApiDomain=()=>customApiDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a69_0x43e0ab(0x15b)]['production']['api']:PRODUCT_CONFIG['domains'][a69_0x43e0ab(0x15c)][a69_0x43e0ab(0x160)]);function a69_0x3f38(_0x41fffe,_0x4ef5ed){_0x41fffe=_0x41fffe-0x159;const _0x3038a2=a69_0x3038();let _0x3f38df=_0x3038a2[_0x41fffe];return _0x3f38df;}export const getRuntimeDomain=()=>customRuntimeDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a69_0x43e0ab(0x15b)][a69_0x43e0ab(0x167)][a69_0x43e0ab(0x15a)]:PRODUCT_CONFIG[a69_0x43e0ab(0x15b)][a69_0x43e0ab(0x15c)]['runtime']);export const getSkillHubDomain=()=>customSkillHubDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a69_0x43e0ab(0x15b)][a69_0x43e0ab(0x167)][a69_0x43e0ab(0x15f)]:PRODUCT_CONFIG['domains']['nonProduction'][a69_0x43e0ab(0x15f)]);
1
+ const a71_0x30cf14=a71_0x3d33;(function(_0x1586b7,_0x28c8eb){const _0xe2bd16=a71_0x3d33,_0x31852b=_0x1586b7();while(!![]){try{const _0x41a1e9=-parseInt(_0xe2bd16(0x10f))/0x1*(-parseInt(_0xe2bd16(0x103))/0x2)+-parseInt(_0xe2bd16(0x10c))/0x3+parseInt(_0xe2bd16(0xfd))/0x4+parseInt(_0xe2bd16(0x10e))/0x5+parseInt(_0xe2bd16(0x10a))/0x6+-parseInt(_0xe2bd16(0x108))/0x7+-parseInt(_0xe2bd16(0x106))/0x8*(parseInt(_0xe2bd16(0xff))/0x9);if(_0x41a1e9===_0x28c8eb)break;else _0x31852b['push'](_0x31852b['shift']());}catch(_0x489d65){_0x31852b['push'](_0x31852b['shift']());}}}(a71_0x5f27,0x8f687));import{getEnv,isProduction}from'../constant/env.js';function a71_0x5f27(){const _0x14e541=['166MsevKR','domains','api','8exdbqR','runtime','4431294fMsBzU','apiDomain','7024740lJopTW','skillHubDomain','293154BfIUUs','runtimeDomain','5224565ymsjbE','1309mPzZNb','nonProduction','3194920yVCZDw','skillhub','16244289qwhXHY','user','production','userDomain'];a71_0x5f27=function(){return _0x14e541;};return a71_0x5f27();}import{PRODUCT_CONFIG}from'../constant/product.js';let customApiDomain,customUserDomain,customRuntimeDomain,customSkillHubDomain;export function initDomains(_0x14f355){const _0x2a2f86=a71_0x3d33;customApiDomain=_0x14f355?.[_0x2a2f86(0x109)],customUserDomain=_0x14f355?.[_0x2a2f86(0x102)],customRuntimeDomain=_0x14f355?.[_0x2a2f86(0x10d)],customSkillHubDomain=_0x14f355?.[_0x2a2f86(0x10b)];}export const getUserDomain=()=>customUserDomain||(isProduction(getEnv())?PRODUCT_CONFIG['domains'][a71_0x30cf14(0x101)][a71_0x30cf14(0x100)]:PRODUCT_CONFIG[a71_0x30cf14(0x104)][a71_0x30cf14(0xfc)][a71_0x30cf14(0x100)]);function a71_0x3d33(_0x2e97ff,_0x3ee7f1){_0x2e97ff=_0x2e97ff-0xfc;const _0x5f278d=a71_0x5f27();let _0x3d3330=_0x5f278d[_0x2e97ff];return _0x3d3330;}export const getApiDomain=()=>customApiDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a71_0x30cf14(0x104)][a71_0x30cf14(0x101)][a71_0x30cf14(0x105)]:PRODUCT_CONFIG[a71_0x30cf14(0x104)][a71_0x30cf14(0xfc)][a71_0x30cf14(0x105)]);export const getRuntimeDomain=()=>customRuntimeDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a71_0x30cf14(0x104)][a71_0x30cf14(0x101)][a71_0x30cf14(0x107)]:PRODUCT_CONFIG[a71_0x30cf14(0x104)][a71_0x30cf14(0xfc)][a71_0x30cf14(0x107)]);export const getSkillHubDomain=()=>customSkillHubDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a71_0x30cf14(0x104)][a71_0x30cf14(0x101)][a71_0x30cf14(0xfe)]:PRODUCT_CONFIG['domains'][a71_0x30cf14(0xfc)][a71_0x30cf14(0xfe)]);
@@ -1 +1 @@
1
- const a70_0x16be71=a70_0x358d;(function(_0xe39338,_0x20568b){const _0xad9fa0=a70_0x358d,_0x3b7de4=_0xe39338();while(!![]){try{const _0x47e3ff=parseInt(_0xad9fa0(0x17c))/0x1+-parseInt(_0xad9fa0(0x174))/0x2*(parseInt(_0xad9fa0(0x172))/0x3)+-parseInt(_0xad9fa0(0x179))/0x4*(parseInt(_0xad9fa0(0x16f))/0x5)+-parseInt(_0xad9fa0(0x170))/0x6*(parseInt(_0xad9fa0(0x175))/0x7)+parseInt(_0xad9fa0(0x173))/0x8+-parseInt(_0xad9fa0(0x17f))/0x9*(-parseInt(_0xad9fa0(0x171))/0xa)+parseInt(_0xad9fa0(0x17a))/0xb*(parseInt(_0xad9fa0(0x178))/0xc);if(_0x47e3ff===_0x20568b)break;else _0x3b7de4['push'](_0x3b7de4['shift']());}catch(_0x281cf9){_0x3b7de4['push'](_0x3b7de4['shift']());}}}(a70_0x2d3c,0xd75da));import{productEnv}from'../constant/product.js';export const RUNTIME_ENV_VALUES=[a70_0x16be71(0x17b),a70_0x16be71(0x17d),a70_0x16be71(0x16e)];function a70_0x358d(_0x355db5,_0x341b74){_0x355db5=_0x355db5-0x16e;const _0x2d3c44=a70_0x2d3c();let _0x358de2=_0x2d3c44[_0x355db5];return _0x358de2;}export function normalizeEnv(_0x59562c){const _0x3a6a19=a70_0x16be71;return _0x59562c===_0x3a6a19(0x176)?_0x3a6a19(0x17b):_0x59562c;}export function isProduction(_0x39382c){const _0x1665eb=a70_0x16be71;return normalizeEnv(_0x39382c)===_0x1665eb(0x17b);}function a70_0x2d3c(){const _0x4383f9=['daily','620615iYisrv','18GtWoOK','20FZQaxl','36GtWnfH','3496056QbwAAh','159552UghnqB','1735573pKBGvA','online','dev','96MqjWqC','4AydKPZ','1671626Mnzdbv','production','1001753VtwSQb','development','ENV','238059JHQBhO'];a70_0x2d3c=function(){return _0x4383f9;};return a70_0x2d3c();}export function isDaily(_0x2ae137){const _0x2fbc9d=a70_0x16be71;return normalizeEnv(_0x2ae137)===_0x2fbc9d(0x16e);}export function isDev(_0x21e721){const _0x46bd02=a70_0x16be71,_0x4ecb74=normalizeEnv(_0x21e721);return _0x4ecb74==='development'||_0x4ecb74===_0x46bd02(0x177);}let env=normalizeEnv(productEnv(a70_0x16be71(0x17e))||a70_0x16be71(0x17b));export function getEnv(){return env;}export function initEnv(_0x5703a7){env=normalizeEnv(_0x5703a7);}
1
+ const a72_0x29c52b=a72_0x4257;(function(_0x4aba68,_0x59cc9e){const _0x2486f4=a72_0x4257,_0xb94031=_0x4aba68();while(!![]){try{const _0x109fd9=parseInt(_0x2486f4(0x19b))/0x1*(-parseInt(_0x2486f4(0x19e))/0x2)+parseInt(_0x2486f4(0x196))/0x3*(-parseInt(_0x2486f4(0x199))/0x4)+-parseInt(_0x2486f4(0x1a3))/0x5*(parseInt(_0x2486f4(0x1a2))/0x6)+-parseInt(_0x2486f4(0x19d))/0x7*(parseInt(_0x2486f4(0x195))/0x8)+parseInt(_0x2486f4(0x1a1))/0x9+-parseInt(_0x2486f4(0x197))/0xa+parseInt(_0x2486f4(0x19a))/0xb*(parseInt(_0x2486f4(0x198))/0xc);if(_0x109fd9===_0x59cc9e)break;else _0xb94031['push'](_0xb94031['shift']());}catch(_0x96248){_0xb94031['push'](_0xb94031['shift']());}}}(a72_0x4af6,0xad20b));import{productEnv}from'../constant/product.js';function a72_0x4257(_0x440ae4,_0x5e850f){_0x440ae4=_0x440ae4-0x194;const _0x4af659=a72_0x4af6();let _0x42576d=_0x4af659[_0x440ae4];return _0x42576d;}export const RUNTIME_ENV_VALUES=[a72_0x29c52b(0x1a0),'development',a72_0x29c52b(0x19f)];function a72_0x4af6(){const _0x28403a=['dev','257992lOCKVt','1831898wxTVlV','daily','production','6330294TwUpHm','4864170OdWdXx','5wHsXyM','online','304ubCxpa','1717197TXgHHg','1404480wvJyve','83604cnuHbI','4xPiXeb','6072YehTYM','1FLbZxq'];a72_0x4af6=function(){return _0x28403a;};return a72_0x4af6();}export function normalizeEnv(_0xc13f7b){const _0x3fd911=a72_0x29c52b;return _0xc13f7b===_0x3fd911(0x194)?_0x3fd911(0x1a0):_0xc13f7b;}export function isProduction(_0x3d95bc){const _0x58c484=a72_0x29c52b;return normalizeEnv(_0x3d95bc)===_0x58c484(0x1a0);}export function isDaily(_0x193735){return normalizeEnv(_0x193735)==='daily';}export function isDev(_0xb3d236){const _0x308f5a=a72_0x29c52b,_0x2f76fd=normalizeEnv(_0xb3d236);return _0x2f76fd==='development'||_0x2f76fd===_0x308f5a(0x19c);}let env=normalizeEnv(productEnv('ENV')||a72_0x29c52b(0x1a0));export function getEnv(){return env;}export function initEnv(_0x6f4a8b){env=normalizeEnv(_0x6f4a8b);}
@@ -1 +1 @@
1
- const a71_0x5afa80=a71_0x169f;(function(_0x51c2e1,_0x3951fe){const _0x22e928=a71_0x169f,_0x1e940b=_0x51c2e1();while(!![]){try{const _0x563360=-parseInt(_0x22e928(0x128))/0x1+parseInt(_0x22e928(0x12b))/0x2+-parseInt(_0x22e928(0x127))/0x3+-parseInt(_0x22e928(0x129))/0x4+parseInt(_0x22e928(0x12e))/0x5+-parseInt(_0x22e928(0x126))/0x6+-parseInt(_0x22e928(0x12c))/0x7*(-parseInt(_0x22e928(0x12d))/0x8);if(_0x563360===_0x3951fe)break;else _0x1e940b['push'](_0x1e940b['shift']());}catch(_0x20293b){_0x1e940b['push'](_0x1e940b['shift']());}}}(a71_0x4443,0x4a695));function a71_0x169f(_0xb6c97,_0x421b7a){_0xb6c97=_0xb6c97-0x126;const _0x4443ef=a71_0x4443();let _0x169fb0=_0x4443ef[_0xb6c97];return _0x169fb0;}function a71_0x4443(){const _0x41e341=['1876320ATInEG','pretty','582644Ykzjir','7efZOdb','11261872ondtWX','439910UczfRv','compress','json','3149100MEuhwB','1429362IcMPiN','11865AoDYAY'];a71_0x4443=function(){return _0x41e341;};return a71_0x4443();}export const OUTPUT_FORMAT_VALUES=[a71_0x5afa80(0x130),a71_0x5afa80(0x12a),a71_0x5afa80(0x12f)];
1
+ function a73_0x2045(_0x3f7baf,_0x54e1af){_0x3f7baf=_0x3f7baf-0x1ab;const _0x2ccdcd=a73_0x2ccd();let _0x20451b=_0x2ccdcd[_0x3f7baf];return _0x20451b;}function a73_0x2ccd(){const _0x1eabf1=['18wzQaCp','4usqLMt','209076qqeFNw','5471630mVgslx','368unVWpo','109377TDKaXh','json','40119830eupyYL','compress','7918602xSHrIe','439324MQAGjk','5962082GXQpVE'];a73_0x2ccd=function(){return _0x1eabf1;};return a73_0x2ccd();}const a73_0x1c4439=a73_0x2045;(function(_0x405fe0,_0x4bfa77){const _0x4e7836=a73_0x2045,_0x4b0470=_0x405fe0();while(!![]){try{const _0x1313dc=parseInt(_0x4e7836(0x1b2))/0x1+parseInt(_0x4e7836(0x1ae))/0x2*(-parseInt(_0x4e7836(0x1b0))/0x3)+-parseInt(_0x4e7836(0x1b1))/0x4*(parseInt(_0x4e7836(0x1b3))/0x5)+-parseInt(_0x4e7836(0x1ad))/0x6+parseInt(_0x4e7836(0x1af))/0x7+parseInt(_0x4e7836(0x1b4))/0x8*(-parseInt(_0x4e7836(0x1b5))/0x9)+parseInt(_0x4e7836(0x1ab))/0xa;if(_0x1313dc===_0x4bfa77)break;else _0x4b0470['push'](_0x4b0470['shift']());}catch(_0x3c66e7){_0x4b0470['push'](_0x4b0470['shift']());}}}(a73_0x2ccd,0xbed72));export const OUTPUT_FORMAT_VALUES=[a73_0x1c4439(0x1b6),'pretty',a73_0x1c4439(0x1ac)];
@@ -1 +1 @@
1
- const a72_0x4d39de=a72_0x35ab;(function(_0x40f287,_0x5a739a){const _0x4c5528=a72_0x35ab,_0x4e6cbc=_0x40f287();while(!![]){try{const _0x204a37=-parseInt(_0x4c5528(0x1a6))/0x1+-parseInt(_0x4c5528(0x1bb))/0x2*(-parseInt(_0x4c5528(0x1b7))/0x3)+parseInt(_0x4c5528(0x1b6))/0x4+-parseInt(_0x4c5528(0x1b2))/0x5+parseInt(_0x4c5528(0x1a8))/0x6+-parseInt(_0x4c5528(0x1a3))/0x7+parseInt(_0x4c5528(0x1af))/0x8*(parseInt(_0x4c5528(0x1ab))/0x9);if(_0x204a37===_0x5a739a)break;else _0x4e6cbc['push'](_0x4e6cbc['shift']());}catch(_0x192f27){_0x4e6cbc['push'](_0x4e6cbc['shift']());}}}(a72_0x4d83,0xe87d4));export const PRODUCT_CONFIG={'cliBinName':'lovrabet','cliDisplayName':'Lovrabet\x20Runtime\x20CLI','npmPackageName':a72_0x4d39de(0x1ac),'skillSource':a72_0x4d39de(0x1b3),'npmRegistryBaseUrl':a72_0x4d39de(0x1b5),'envPrefix':'LOVRABET','legacyEnvPrefixes':[a72_0x4d39de(0x1a7)],'configFileNames':[a72_0x4d39de(0x1b1),'.lovrabetrc'],'newConfigFileName':a72_0x4d39de(0x1b1),'homeDirName':a72_0x4d39de(0x1ae),'logFileName':a72_0x4d39de(0x1a4),'invokeSource':a72_0x4d39de(0x1a2),'userCenterDisplayName':a72_0x4d39de(0x1aa),'skipNpxSkillsEnvSuffix':a72_0x4d39de(0x1b8),'domains':{'production':{'user':'https://user.lovrabet.com','api':a72_0x4d39de(0x1a1),'runtime':a72_0x4d39de(0x1a0),'skillhub':a72_0x4d39de(0x1ba)},'nonProduction':{'user':a72_0x4d39de(0x1ad),'api':a72_0x4d39de(0x1a5),'runtime':a72_0x4d39de(0x1a9),'skillhub':a72_0x4d39de(0x1b0)}},'accessKeyCreatePath':a72_0x4d39de(0x1b4)};function a72_0x4d83(){const _0x1b088f=['https://user-daily.lovrabet.com','.lovrabet','6281192Ewavjs','https://skills-daily.lovrabet.com','.lovrabet.json','9188190oLZWAr','lovrabet/lovrabet-cli','/user/ak','https://registry.npmjs.org','5892804pRZkyd','159IlHarS','SKIP_NPX_SKILLS','envPrefix','https://skills.lovrabet.com','40010hcWqxC','https://runtime.lovrabet.com','https://api.lovrabet.com','cli:lovrabet-runtime','12236406ZTkhBP','.lovrabet-runtime.log','https://daily-api.lovrabet.com','1191020JtFjxm','RABETBASE','5040474tlXWaA','https://daily-runtime.lovrabet.com','Lovrabet\x20User\x20Center','27ckARno','@lovrabet/lovrabet-cli'];a72_0x4d83=function(){return _0x1b088f;};return a72_0x4d83();}export function productEnvName(_0x52e264){const _0x717d14=a72_0x4d39de;return PRODUCT_CONFIG[_0x717d14(0x1b9)]+'_'+_0x52e264;}function a72_0x35ab(_0x45ed91,_0x11b9e4){_0x45ed91=_0x45ed91-0x1a0;const _0x4d8347=a72_0x4d83();let _0x35abe8=_0x4d8347[_0x45ed91];return _0x35abe8;}export function productEnvNames(_0x374d02){return[productEnvName(_0x374d02),...PRODUCT_CONFIG['legacyEnvPrefixes']['map'](_0x4f2050=>_0x4f2050+'_'+_0x374d02)];}export function productEnv(_0x547127){for(const _0x5c7656 of productEnvNames(_0x547127)){const _0x56d2d9=process.env[_0x5c7656];if(_0x56d2d9!==undefined)return _0x56d2d9;}return undefined;}
1
+ function a74_0x1d31(_0x45093d,_0x2b1b60){_0x45093d=_0x45093d-0x73;const _0x3adac7=a74_0x3ada();let _0x1d3170=_0x3adac7[_0x45093d];return _0x1d3170;}const a74_0x41b05c=a74_0x1d31;(function(_0x24ecba,_0x8eb26f){const _0x458422=a74_0x1d31,_0x4a6ae3=_0x24ecba();while(!![]){try{const _0xce6605=parseInt(_0x458422(0x88))/0x1*(-parseInt(_0x458422(0x80))/0x2)+-parseInt(_0x458422(0x89))/0x3+parseInt(_0x458422(0x74))/0x4*(parseInt(_0x458422(0x7c))/0x5)+parseInt(_0x458422(0x78))/0x6+parseInt(_0x458422(0x85))/0x7+parseInt(_0x458422(0x79))/0x8+parseInt(_0x458422(0x82))/0x9*(-parseInt(_0x458422(0x8c))/0xa);if(_0xce6605===_0x8eb26f)break;else _0x4a6ae3['push'](_0x4a6ae3['shift']());}catch(_0xc8de26){_0x4a6ae3['push'](_0x4a6ae3['shift']());}}}(a74_0x3ada,0x9fceb));export const PRODUCT_CONFIG={'cliBinName':a74_0x41b05c(0x8a),'cliDisplayName':a74_0x41b05c(0x7f),'npmPackageName':'@lovrabet/lovrabet-cli','skillSource':a74_0x41b05c(0x7b),'npmRegistryBaseUrl':a74_0x41b05c(0x83),'envPrefix':'LOVRABET','legacyEnvPrefixes':['RABETBASE'],'configFileNames':[a74_0x41b05c(0x81),a74_0x41b05c(0x77)],'newConfigFileName':a74_0x41b05c(0x81),'homeDirName':'.lovrabet','logFileName':a74_0x41b05c(0x8b),'invokeSource':a74_0x41b05c(0x87),'userCenterDisplayName':a74_0x41b05c(0x8d),'skipNpxSkillsEnvSuffix':a74_0x41b05c(0x73),'domains':{'production':{'user':'https://user.lovrabet.com','api':a74_0x41b05c(0x7d),'runtime':a74_0x41b05c(0x7e),'skillhub':a74_0x41b05c(0x84)},'nonProduction':{'user':'https://user-daily.lovrabet.com','api':'https://daily-api.lovrabet.com','runtime':a74_0x41b05c(0x7a),'skillhub':a74_0x41b05c(0x86)}},'accessKeyCreatePath':'/user/ak'};export function productEnvName(_0x1d9012){const _0x3e377f=a74_0x41b05c;return PRODUCT_CONFIG[_0x3e377f(0x76)]+'_'+_0x1d9012;}export function productEnvNames(_0x3e3526){const _0x5a7754=a74_0x41b05c;return[productEnvName(_0x3e3526),...PRODUCT_CONFIG['legacyEnvPrefixes'][_0x5a7754(0x75)](_0x127e20=>_0x127e20+'_'+_0x3e3526)];}export function productEnv(_0x5cc736){for(const _0x2106c6 of productEnvNames(_0x5cc736)){const _0x1023c6=process.env[_0x2106c6];if(_0x1023c6!==undefined)return _0x1023c6;}return undefined;}function a74_0x3ada(){const _0x46eb45=['https://api.lovrabet.com','https://runtime.lovrabet.com','Lovrabet\x20Runtime\x20CLI','372qdxktK','.lovrabet.json','9XUWlwW','https://registry.npmjs.org','https://skills.lovrabet.com','6138748PKVaoq','https://skills-daily.lovrabet.com','cli:lovrabet-runtime','5651ToqTCq','2943603RthiDR','lovrabet','.lovrabet-runtime.log','1636620ZHERYE','Lovrabet\x20User\x20Center','SKIP_NPX_SKILLS','4JWBAmT','map','envPrefix','.lovrabetrc','3184488BVNpGw','9329912TkApdI','https://daily-runtime.lovrabet.com','lovrabet/lovrabet-cli','1382845rMIwvz'];a74_0x3ada=function(){return _0x46eb45;};return a74_0x3ada();}
@@ -1 +1 @@
1
- function a73_0x3c61(_0x232a9d,_0x1ddec6){_0x232a9d=_0x232a9d-0xd8;const _0xde5080=a73_0xde50();let _0x3c61b9=_0xde5080[_0x232a9d];return _0x3c61b9;}const a73_0x3d246e=a73_0x3c61;(function(_0x5c95b0,_0x4ab49f){const _0x258d9b=a73_0x3c61,_0x39933d=_0x5c95b0();while(!![]){try{const _0x55a9fe=-parseInt(_0x258d9b(0xe5))/0x1*(-parseInt(_0x258d9b(0xe3))/0x2)+parseInt(_0x258d9b(0xd8))/0x3*(-parseInt(_0x258d9b(0xd9))/0x4)+parseInt(_0x258d9b(0xe4))/0x5*(parseInt(_0x258d9b(0xde))/0x6)+parseInt(_0x258d9b(0xdb))/0x7+-parseInt(_0x258d9b(0xdd))/0x8*(parseInt(_0x258d9b(0xdc))/0x9)+parseInt(_0x258d9b(0xe2))/0xa+-parseInt(_0x258d9b(0xda))/0xb;if(_0x55a9fe===_0x4ab49f)break;else _0x39933d['push'](_0x39933d['shift']());}catch(_0x136fe2){_0x39933d['push'](_0x39933d['shift']());}}}(a73_0xde50,0xcb66f));function a73_0xde50(){const _0xa849cf=['4883286KGnTZJ','read','write','high-risk-write','4932000RjuJoR','460KSlAVM','5jWnrMi','7214BMZbbk','1715151KotyLo','4XQCuIC','21821008ASEyKT','3851330LBvEDM','9kfeSBY','1023288mwHeTU'];a73_0xde50=function(){return _0xa849cf;};return a73_0xde50();}export const RISK_LEVEL_VALUES=[a73_0x3d246e(0xdf),a73_0x3d246e(0xe0),a73_0x3d246e(0xe1)];
1
+ function a75_0x3dfc(_0xb433da,_0x310fc6){_0xb433da=_0xb433da-0x18d;const _0x1dacba=a75_0x1dac();let _0x3dfc49=_0x1dacba[_0xb433da];return _0x3dfc49;}const a75_0x5970a4=a75_0x3dfc;(function(_0xc57071,_0x59fcda){const _0x27aec7=a75_0x3dfc,_0x1c2c02=_0xc57071();while(!![]){try{const _0x292794=parseInt(_0x27aec7(0x18f))/0x1+-parseInt(_0x27aec7(0x190))/0x2+parseInt(_0x27aec7(0x193))/0x3*(-parseInt(_0x27aec7(0x195))/0x4)+-parseInt(_0x27aec7(0x192))/0x5*(-parseInt(_0x27aec7(0x18e))/0x6)+parseInt(_0x27aec7(0x194))/0x7+-parseInt(_0x27aec7(0x197))/0x8+parseInt(_0x27aec7(0x18d))/0x9;if(_0x292794===_0x59fcda)break;else _0x1c2c02['push'](_0x1c2c02['shift']());}catch(_0xb591c4){_0x1c2c02['push'](_0x1c2c02['shift']());}}}(a75_0x1dac,0xce079));export const RISK_LEVEL_VALUES=[a75_0x5970a4(0x191),a75_0x5970a4(0x196),'high-risk-write'];function a75_0x1dac(){const _0x46f937=['868dwcqnu','write','8574952LOrEDp','9918396vIlmYE','534NDBPNd','246035cmwvJs','1878630OTNezw','read','49805znnNwN','8913HlNwZd','8856260bdojpg'];a75_0x1dac=function(){return _0x46f937;};return a75_0x1dac();}
@@ -1 +1 @@
1
- const a74_0xf90b5f=a74_0x3fda;(function(_0x55761b,_0x52bddc){const _0x5402e9=a74_0x3fda,_0x3d5a9=_0x55761b();while(!![]){try{const _0x4ec538=parseInt(_0x5402e9(0x173))/0x1*(-parseInt(_0x5402e9(0x179))/0x2)+parseInt(_0x5402e9(0x174))/0x3+parseInt(_0x5402e9(0x177))/0x4*(parseInt(_0x5402e9(0x17d))/0x5)+parseInt(_0x5402e9(0x17a))/0x6+-parseInt(_0x5402e9(0x176))/0x7+-parseInt(_0x5402e9(0x17c))/0x8*(parseInt(_0x5402e9(0x175))/0x9)+parseInt(_0x5402e9(0x178))/0xa;if(_0x4ec538===_0x52bddc)break;else _0x3d5a9['push'](_0x3d5a9['shift']());}catch(_0x429006){_0x3d5a9['push'](_0x3d5a9['shift']());}}}(a74_0x4775,0xaaabc));import{PRODUCT_CONFIG}from'../constant/product.js';export const USER_ACCESS_KEY_CREATE_URL=''+PRODUCT_CONFIG[a74_0xf90b5f(0x17b)]['production'][a74_0xf90b5f(0x172)]+PRODUCT_CONFIG['accessKeyCreatePath'];function a74_0x3fda(_0x131d05,_0x26619e){_0x131d05=_0x131d05-0x172;const _0x4775ae=a74_0x4775();let _0x3fda5b=_0x4775ae[_0x131d05];return _0x3fda5b;}function a74_0x4775(){const _0x19e7a5=['5484195EPooRm','5780201fRYgxm','5744qAuLKL','5852780WOjxdw','5602omcNNF','7610280AjPWef','domains','16qlwrMP','10hHAfvP','user','173UCWpXa','4114692NHORqv'];a74_0x4775=function(){return _0x19e7a5;};return a74_0x4775();}
1
+ function a76_0x2ef2(_0x5a3cd6,_0x23ee8b){_0x5a3cd6=_0x5a3cd6-0xb0;const _0x23b92a=a76_0x23b9();let _0x2ef230=_0x23b92a[_0x5a3cd6];return _0x2ef230;}const a76_0x5753a6=a76_0x2ef2;(function(_0x2d80ab,_0x36bc5c){const _0x3d4976=a76_0x2ef2,_0x3c0dfe=_0x2d80ab();while(!![]){try{const _0x4116a0=parseInt(_0x3d4976(0xbd))/0x1*(-parseInt(_0x3d4976(0xb9))/0x2)+-parseInt(_0x3d4976(0xb3))/0x3*(parseInt(_0x3d4976(0xb5))/0x4)+parseInt(_0x3d4976(0xbc))/0x5+parseInt(_0x3d4976(0xb1))/0x6+-parseInt(_0x3d4976(0xb2))/0x7+parseInt(_0x3d4976(0xb8))/0x8+parseInt(_0x3d4976(0xb0))/0x9*(-parseInt(_0x3d4976(0xb7))/0xa);if(_0x4116a0===_0x36bc5c)break;else _0x3c0dfe['push'](_0x3c0dfe['shift']());}catch(_0x39c48d){_0x3c0dfe['push'](_0x3c0dfe['shift']());}}}(a76_0x23b9,0x18d60));function a76_0x23b9(){const _0x30a920=['accessKeyCreatePath','4zfyUmO','production','20oQTXas','1209264GUTmsL','2GYmHMv','domains','user','748605hOOxCP','37537VnnBEF','1114119EBxLan','1190406KAiQNk','235158jlPIPF','236517VivVTt'];a76_0x23b9=function(){return _0x30a920;};return a76_0x23b9();}import{PRODUCT_CONFIG}from'../constant/product.js';export const USER_ACCESS_KEY_CREATE_URL=''+PRODUCT_CONFIG[a76_0x5753a6(0xba)][a76_0x5753a6(0xb6)][a76_0x5753a6(0xbb)]+PRODUCT_CONFIG[a76_0x5753a6(0xb4)];
package/lib/context.js CHANGED
@@ -1 +1 @@
1
- const a75_0x3eb8cd=a75_0x3719;(function(_0x950bb8,_0x4ad434){const _0x43f3d5=a75_0x3719,_0x693055=_0x950bb8();while(!![]){try{const _0x3a0e24=-parseInt(_0x43f3d5(0x21c))/0x1+parseInt(_0x43f3d5(0x210))/0x2+parseInt(_0x43f3d5(0x1e4))/0x3+-parseInt(_0x43f3d5(0x1ee))/0x4*(parseInt(_0x43f3d5(0x1f9))/0x5)+parseInt(_0x43f3d5(0x20e))/0x6*(parseInt(_0x43f3d5(0x20f))/0x7)+-parseInt(_0x43f3d5(0x213))/0x8+-parseInt(_0x43f3d5(0x1f4))/0x9*(-parseInt(_0x43f3d5(0x202))/0xa);if(_0x3a0e24===_0x4ad434)break;else _0x693055['push'](_0x693055['shift']());}catch(_0x52c828){_0x693055['push'](_0x693055['shift']());}}}(a75_0x3bac,0x26d4b));import{readFileSync,existsSync,mkdirSync,renameSync,unlinkSync,writeFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{homedir}from'node:os';import{logger}from'./utils/logger.js';import{CliErrors}from'./errors.js';import{CLI_BIN_NAME}from'./constant/cli.js';import{PRODUCT_CONFIG,productEnv,productEnvNames}from'./constant/product.js';import{DEFAULT_CONFIG_VALUES}from'./constant/defaults.js';import{normalizeEnv,isDaily,isDev}from'./constant/env.js';import{normalizeLegacyOutputFormat}from'./framework/types.js';import{resolveCachedAppCode}from'./commands/app/cache.js';export{AUTH_MODE,isAuthMode}from'./constant/auth-mode.js';const CONFIG_NAMES=PRODUCT_CONFIG['configFileNames'];export const NEW_CONFIG_NAME=PRODUCT_CONFIG[a75_0x3eb8cd(0x1ec)];function resolveConfigPath(_0x5a6030){for(const _0x3569ee of CONFIG_NAMES){const _0x20c1e3=resolve(_0x5a6030,_0x3569ee);if(existsSync(_0x20c1e3))return _0x20c1e3;}return undefined;}export function resolveWriteConfigPath(_0x476f66){const _0x4d92c2=a75_0x3eb8cd,_0x293d69=_0x476f66===_0x4d92c2(0x203)?process[_0x4d92c2(0x1e9)]():homedir(),_0x5d48c0=resolveConfigPath(_0x293d69);return _0x5d48c0??resolve(_0x293d69,NEW_CONFIG_NAME);}export function readConfigFile(_0x44796e){const _0x453138=a75_0x3eb8cd;try{if(existsSync(_0x44796e)){const _0x440c77=readFileSync(_0x44796e,{'encoding':'utf8'});if(_0x440c77){const _0x33e64a=JSON[_0x453138(0x1f8)](_0x440c77);return migrateOnlineEnv(_0x44796e,_0x33e64a),_0x33e64a;}}}catch{}return{};}function migrateOnlineEnv(_0x2905af,_0x11a882){const _0x4f9d92=a75_0x3eb8cd;let _0x4686e3=![];_0x11a882[_0x4f9d92(0x200)]===_0x4f9d92(0x229)&&(_0x11a882[_0x4f9d92(0x200)]=_0x4f9d92(0x1e7),_0x4686e3=!![]);if(_0x11a882[_0x4f9d92(0x1f1)]&&typeof _0x11a882[_0x4f9d92(0x1f1)]===_0x4f9d92(0x209))for(const _0x424d1b of Object[_0x4f9d92(0x228)](_0x11a882['apps'])){_0x424d1b&&_0x424d1b[_0x4f9d92(0x200)]===_0x4f9d92(0x229)&&(_0x424d1b[_0x4f9d92(0x200)]=_0x4f9d92(0x1e7),_0x4686e3=!![]);}if(_0x4686e3)try{writeConfigFile(_0x2905af,_0x11a882);}catch{}}export function writeConfigFile(_0x59bafc,_0xb590cc){const _0x235ab9=a75_0x3eb8cd,_0x39486d=dirname(_0x59bafc);!existsSync(_0x39486d)&&mkdirSync(_0x39486d,{'recursive':!![]});const _0x883c88=_0x59bafc+_0x235ab9(0x208);try{writeFileSync(_0x883c88,JSON[_0x235ab9(0x21d)](_0xb590cc,null,0x2)+'\x0a',{'encoding':_0x235ab9(0x227),'mode':0x180});try{renameSync(_0x883c88,_0x59bafc);}catch(_0x571da1){if(_0x571da1[_0x235ab9(0x22b)]===_0x235ab9(0x207)||_0x571da1[_0x235ab9(0x22b)]===_0x235ab9(0x219)||_0x571da1[_0x235ab9(0x22b)]===_0x235ab9(0x211)){writeFileSync(_0x59bafc,JSON[_0x235ab9(0x21d)](_0xb590cc,null,0x2)+'\x0a',{'encoding':'utf8'});try{unlinkSync(_0x883c88);}catch{}}else throw _0x571da1;}}catch(_0x3df1ec){try{unlinkSync(_0x883c88);}catch{}throw _0x3df1ec;}}export function isNonInteractiveMode(_0x13fafc){const _0x540ed0=a75_0x3eb8cd;return!!(_0x13fafc['nonInteractive']||_0x13fafc['ci']||productEnvNames('CI')[_0x540ed0(0x21e)](_0x3244ad=>process.env[_0x3244ad]===_0x540ed0(0x204))||process.env.CI===_0x540ed0(0x204)||!process[_0x540ed0(0x221)]['isTTY']||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x187e53=a75_0x3eb8cd;if(!process['stdin'][_0x187e53(0x226)])return![];try{const _0xa52586=process['stdin'][_0x187e53(0x222)];return process[_0x187e53(0x224)]['setRawMode'](!![]),process[_0x187e53(0x224)][_0x187e53(0x1fe)](_0xa52586??![]),!![];}catch{return![];}}export async function createContext(_0x28ff4a){const _0x3aef46=a75_0x3eb8cd,_0x47c455=readRawConfig(),_0x1d459e=buildConfig(_0x47c455,_0x28ff4a);await initGlobalEnvironment(_0x1d459e);const {getUserDomain:_0x14959,getApiDomain:_0x47aeac}=await import(_0x3aef46(0x214)),_0x259c44={'apiDomain':_0x47aeac(),'userDomain':_0x14959()},_0x1de4d4=await buildAuth(_0x1d459e);logger[_0x3aef46(0x1ea)](process['cwd']());const _0x15c5e7=(CLI_BIN_NAME+'\x20'+process['argv'][_0x3aef46(0x20b)](0x2)['join']('\x20'))[_0x3aef46(0x1f6)]();logger[_0x3aef46(0x22c)](_0x15c5e7);const _0x11a419=isNonInteractiveMode(_0x28ff4a);return{'config':_0x1d459e,'auth':_0x1de4d4,'logger':logger,'env':_0x259c44,'nonInteractive':_0x11a419};}export function buildConfigFromFlags(_0x257826){return buildConfig(readRawConfig(),_0x257826);}function a75_0x3bac(){const _0x5e3d05=['./constant/env.js','96816wYsjIg','./constant/domain.js','error','development','raw','APPCODE','EXDEV','top-level','PAGE_SIZE','317946mxcYVe','stringify','some','write','daily','stdout','isRaw','runtimeDomain','stdin','read','isTTY','utf8','values','online','format','code','setRawCommand','apiDomain','explicit','accessKey','899724kuidXQ','string','global','production','riskLevel','cwd','setLogPath','ACCESS_KEY','newConfigFileName','maxRisk','76YNxYVK','app','high-risk-write','apps','APP','message','9JfQgBf','FORMAT','trim','locale','parse','70775CPlTVi','appcode','empty','ENV','inherit','setRawMode','missing','env','projectConfig','1843090MxzAUA','project','true','find','defaultApp','EPERM','.tmp','object','cache','slice','local-alias','pageSize','1338vCRPHu','427GedfbV','520448YkFFwL','EACCES'];a75_0x3bac=function(){return _0x5e3d05;};return a75_0x3bac();}export function getLocalAppAliases(_0x5eb3a0){const _0x45ea89=a75_0x3eb8cd;return _0x5eb3a0['apps']&&typeof _0x5eb3a0[_0x45ea89(0x1f1)]===_0x45ea89(0x209)?_0x5eb3a0[_0x45ea89(0x1f1)]:{};}export function resolveLocalAppAliasCode(_0x16f477,_0x1d7ab2){const _0x5c3e1c=a75_0x3eb8cd;if(!_0x1d7ab2)return undefined;const _0x260684=getLocalAppAliases(_0x16f477)[_0x1d7ab2],_0x1ab75f=_0x260684?.['appcode'];return typeof _0x1ab75f===_0x5c3e1c(0x1e5)&&_0x1ab75f[_0x5c3e1c(0x1f6)]()?_0x1ab75f['trim']():undefined;}export function readAppCodeFromConfig(){const _0x366c06=a75_0x3eb8cd,_0x2c4ba2=readRawConfig(),_0x22fa9f=_0x2c4ba2['appcode']??_0x2c4ba2[_0x366c06(0x1ef)];if(typeof _0x22fa9f===_0x366c06(0x1e5)&&_0x22fa9f[_0x366c06(0x1f6)]())return _0x22fa9f[_0x366c06(0x1f6)]();const _0x3e7bdd=resolveLocalAppAliasCode(_0x2c4ba2,typeof _0x2c4ba2[_0x366c06(0x206)]===_0x366c06(0x1e5)?_0x2c4ba2[_0x366c06(0x206)]:undefined);if(_0x3e7bdd)return _0x3e7bdd;const _0x5544a8=normalizeEnv(String(_0x2c4ba2[_0x366c06(0x200)]||_0x366c06(0x1e7))),_0x127429=isDaily(_0x5544a8)?_0x366c06(0x220):isDev(_0x5544a8)?'development':_0x366c06(0x1e7),_0x39cdeb=resolveCachedAppCode(typeof _0x2c4ba2['defaultApp']===_0x366c06(0x1e5)?_0x2c4ba2[_0x366c06(0x206)]:undefined,_0x127429,typeof _0x2c4ba2['accessKey']===_0x366c06(0x1e5)?_0x2c4ba2[_0x366c06(0x1e3)]:undefined);if(_0x39cdeb)return _0x39cdeb;const _0x4075c2=Object[_0x366c06(0x228)](getLocalAppAliases(_0x2c4ba2))[_0x366c06(0x205)](_0x2398bb=>_0x2398bb?.['appcode']);return typeof _0x4075c2?.[_0x366c06(0x1fa)]==='string'&&_0x4075c2[_0x366c06(0x1fa)][_0x366c06(0x1f6)]()?_0x4075c2[_0x366c06(0x1fa)]['trim']():undefined;}export function readScopedConfig(_0x200426){const _0x3efeb1=a75_0x3eb8cd,_0x24ff80=_0x200426[_0x3efeb1(0x1e6)]?_0x3efeb1(0x1e6):_0x3efeb1(0x203);return readConfigFile(resolveWriteConfigPath(_0x24ff80));}export function writeScopedConfig(_0x465d14,_0xfd192f){const _0x50f48e=a75_0x3eb8cd,_0x22dfc1=_0xfd192f[_0x50f48e(0x1e6)]?'global':'project';writeConfigFile(resolveWriteConfigPath(_0x22dfc1),_0x465d14);}export async function initGlobalEnvironment(_0x183b40){const _0x2664bd=a75_0x3eb8cd,{initEnv:_0x2a3e8a}=await import(_0x2664bd(0x212));_0x2a3e8a(_0x183b40['env']);const {initDomains:_0x57a39d}=await import(_0x2664bd(0x214));_0x57a39d({'apiDomain':_0x183b40['raw'][_0x2664bd(0x22d)]||_0x183b40['raw']['host']||undefined,'userDomain':_0x183b40[_0x2664bd(0x217)]['userDomain']||undefined,'runtimeDomain':_0x183b40['raw'][_0x2664bd(0x223)]||undefined,'skillHubDomain':_0x183b40[_0x2664bd(0x217)]['skillHubDomain']||undefined});}export function getProjectConfigPath(){return resolveConfigPath(process['cwd']());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function inspectCliConfigJsonFile(_0xb49e79){const _0x1b3835=a75_0x3eb8cd;if(!existsSync(_0xb49e79))return{'status':_0x1b3835(0x1ff)};try{const _0x58687b=readFileSync(_0xb49e79,{'encoding':_0x1b3835(0x227)});if(!_0x58687b?.['trim']())return{'status':_0x1b3835(0x1fb)};const _0x3522e3=JSON[_0x1b3835(0x1f8)](_0x58687b);return{'status':'ok','data':_0x3522e3};}catch(_0x3fa34f){return{'status':_0x1b3835(0x215),'message':_0x3fa34f instanceof Error?_0x3fa34f[_0x1b3835(0x1f3)]:String(_0x3fa34f)};}}export function loadRawConfigLayers(_0x360971){const _0x3ac7df=a75_0x3eb8cd;let _0x44639c={},_0x166fe5={},_0x2621f0,_0x5dbde5;try{_0x2621f0=resolveConfigPath(homedir());if(_0x2621f0){const _0x11e0a2=readFileSync(_0x2621f0,{'encoding':_0x3ac7df(0x227)});if(_0x11e0a2)_0x44639c=JSON[_0x3ac7df(0x1f8)](_0x11e0a2);}}catch{}try{const _0x2e7103=_0x360971||process[_0x3ac7df(0x1e9)]();_0x5dbde5=resolveConfigPath(_0x2e7103);if(_0x5dbde5){const _0x121dd1=readFileSync(_0x5dbde5,{'encoding':_0x3ac7df(0x227)});if(_0x121dd1)_0x166fe5=JSON[_0x3ac7df(0x1f8)](_0x121dd1);}}catch{}return{'globalPath':_0x2621f0,'projectPath':_0x5dbde5,'globalConfig':_0x44639c,'projectConfig':_0x166fe5};}function mergeRawConfigLayers(_0x33ff89){const _0x42936d=a75_0x3eb8cd,{globalConfig:_0x70685,projectConfig:_0x5ec127}=_0x33ff89;if(_0x5ec127['inherit']===![]){const _0x3d2b91={..._0x5ec127};return delete _0x3d2b91[_0x42936d(0x1fd)],_0x3d2b91;}const _0x588006={..._0x70685,..._0x5ec127};if(_0x42936d(0x206)in _0x5ec127)_0x588006[_0x42936d(0x206)]=_0x5ec127[_0x42936d(0x206)];else _0x70685[_0x42936d(0x206)]&&(_0x588006['defaultApp']=_0x70685[_0x42936d(0x206)]);return _0x588006;}export function isInProject(){return!!getProjectConfigPath();}export function readRawConfig(_0x486827){return mergeRawConfigLayers(loadRawConfigLayers(_0x486827));}export function readRawConfigWithLayers(_0x1a09fd){const _0x35ef63=loadRawConfigLayers(_0x1a09fd);return{'config':mergeRawConfigLayers(_0x35ef63),'layers':_0x35ef63};}export function resolveDefaultAppSource(_0x5c515c){const _0x3d512f=a75_0x3eb8cd;if('defaultApp'in _0x5c515c[_0x3d512f(0x201)])return'project';if(_0x5c515c['projectConfig'][_0x3d512f(0x1fd)]===![])return null;if(_0x5c515c['globalConfig'][_0x3d512f(0x206)])return _0x3d512f(0x1e6);return null;}function a75_0x3719(_0x12cc6b,_0x298687){_0x12cc6b=_0x12cc6b-0x1e3;const _0x3bac75=a75_0x3bac();let _0x3719ba=_0x3bac75[_0x12cc6b];return _0x3719ba;}function buildConfig(_0x590fa7,_0x2b181c){const _0xedf901=a75_0x3eb8cd,_0x208177=_0x590fa7['defaultApp']||undefined,_0x488ff1=_0x2b181c['app']||env(_0xedf901(0x1f2))||undefined,_0x9ed7=_0x488ff1||_0x208177||undefined,_0x24d40f=env(_0xedf901(0x1eb))||_0x590fa7[_0xedf901(0x1e3)]||undefined,_0xa25935=_0x2b181c[_0xedf901(0x200)]||env(_0xedf901(0x1fc))||_0x590fa7['env']||DEFAULT_CONFIG_VALUES[_0xedf901(0x200)],_0x239c35=normalizeEnv(String(_0xa25935)),_0x5ee4f3=isDaily(_0x239c35)?'daily':isDev(_0x239c35)?_0xedf901(0x216):_0xedf901(0x1e7),_0x497f40=typeof _0x2b181c[_0xedf901(0x1fa)]===_0xedf901(0x1e5)?_0x2b181c['appcode']:undefined,_0x3f5cac=env(_0xedf901(0x218)),_0x3f52b6=_0x488ff1?undefined:_0x590fa7[_0xedf901(0x1fa)]||_0x590fa7[_0xedf901(0x1ef)]||undefined,_0x42e799=_0x488ff1||(_0x3f52b6?undefined:_0x208177),_0x2e65fe=resolveLocalAppAliasCode(_0x590fa7,_0x42e799),_0x12e564=resolveCachedAppCode(_0x42e799,_0x5ee4f3,_0x24d40f),_0x4f9fef=_0x497f40||_0x3f5cac||_0x3f52b6||_0x2e65fe||_0x12e564||undefined,_0x336407=_0x497f40?_0xedf901(0x22e):_0x3f5cac?'env':_0x3f52b6?_0xedf901(0x21a):_0x2e65fe?_0xedf901(0x20c):_0x12e564?_0xedf901(0x20a):undefined,_0x26a36c=_0x590fa7[_0xedf901(0x1f7)]||DEFAULT_CONFIG_VALUES['locale'],_0x27d9bd=undefined,_0x349250=_0x2b181c['format']||env(_0xedf901(0x1f5))||_0x590fa7[_0xedf901(0x22a)],_0x5576f0=normalizeLegacyOutputFormat(_0x349250),_0x574ec6=env(_0xedf901(0x21b))||_0x590fa7[_0xedf901(0x20d)],_0x3fcd21=_0x574ec6?Number(_0x574ec6)||undefined:undefined,_0x4d7ba1=_0x590fa7['riskLevel']||_0x590fa7[_0xedf901(0x1ed)],_0x3dcb79=_0x4d7ba1===_0xedf901(0x225)||_0x4d7ba1===_0xedf901(0x21f)||_0x4d7ba1===_0xedf901(0x1f0)?_0x4d7ba1:DEFAULT_CONFIG_VALUES[_0xedf901(0x1e8)],_0xb3ad1a=env('VERBOSE'),_0x24ffc8=_0xb3ad1a==='1'||_0xb3ad1a===_0xedf901(0x204);return{'appCode':typeof _0x4f9fef==='string'&&_0x4f9fef['trim']()?_0x4f9fef[_0xedf901(0x1f6)]():undefined,'appCodeSource':_0x336407,'env':_0x5ee4f3,'locale':_0x26a36c,'cookie':_0x27d9bd,'accessKey':_0x24d40f,'format':_0x5576f0,'pageSize':_0x3fcd21,'riskLevel':_0x3dcb79,'verbose':_0x24ffc8,'defaultApp':_0x208177,'currentApp':typeof _0x9ed7===_0xedf901(0x1e5)?_0x9ed7:undefined,'raw':_0x590fa7};}function env(_0x50f061){return productEnv(_0x50f061);}async function buildAuth(_0xbbebe0){const _0x34130f=a75_0x3eb8cd,_0x4aedba='',_0x1172a4=!!_0xbbebe0[_0x34130f(0x1e3)];return{'cookie':_0x4aedba,'isLoggedIn':_0x1172a4,async 'getOrLogin'(){if(_0x1172a4)return _0x4aedba;throw CliErrors['authRequired']();}};}
1
+ const a77_0xa8dd1e=a77_0x2d4a;(function(_0x44cbf3,_0x80a5d5){const _0x3efbf0=a77_0x2d4a,_0x2a8386=_0x44cbf3();while(!![]){try{const _0x1a1a2f=-parseInt(_0x3efbf0(0x1cb))/0x1*(parseInt(_0x3efbf0(0x1d1))/0x2)+-parseInt(_0x3efbf0(0x1aa))/0x3*(-parseInt(_0x3efbf0(0x1b1))/0x4)+parseInt(_0x3efbf0(0x1e7))/0x5*(parseInt(_0x3efbf0(0x1e3))/0x6)+parseInt(_0x3efbf0(0x1ce))/0x7+-parseInt(_0x3efbf0(0x1c7))/0x8*(-parseInt(_0x3efbf0(0x1bf))/0x9)+parseInt(_0x3efbf0(0x1ea))/0xa*(parseInt(_0x3efbf0(0x1b3))/0xb)+-parseInt(_0x3efbf0(0x1d8))/0xc;if(_0x1a1a2f===_0x80a5d5)break;else _0x2a8386['push'](_0x2a8386['shift']());}catch(_0x293284){_0x2a8386['push'](_0x2a8386['shift']());}}}(a77_0x23ee,0x57c0f));import{readFileSync,existsSync,mkdirSync,renameSync,unlinkSync,writeFileSync}from'node:fs';function a77_0x23ee(){const _0x40fda1=['EPERM','stringify','4209037teoVuz','appcode','host','35254WokMMw','empty','slice','format','project','inherit','EXDEV','9409716yxZVRl','cache','some','cwd','apiDomain','authRequired','VERBOSE','env','top-level','riskLevel','true','36gnZRVM','global','utf8','app','144140mxaMNu','missing','userDomain','21190tNqUCz','isRaw','locale','APP','setLogPath','ENV','online','development','nonInteractive','stdin','ACCESS_KEY','values','read','12621BOpQBa','apps','high-risk-write','projectConfig','explicit','raw','setRawMode','92oVobiH','production','3421FfDFnP','accessKey','globalConfig','EACCES','write','trim','error','daily','isTTY','defaultApp','argv','newConfigFileName','329409cQGkNF','PAGE_SIZE','FORMAT','code','object','message','string','pageSize','8RdTPtJ','.tmp','./constant/domain.js','setRawCommand','24AglvIB'];a77_0x23ee=function(){return _0x40fda1;};return a77_0x23ee();}import{resolve,dirname}from'node:path';import{homedir}from'node:os';import{logger}from'./utils/logger.js';function a77_0x2d4a(_0x4ddab5,_0x22f993){_0x4ddab5=_0x4ddab5-0x19f;const _0x23eea3=a77_0x23ee();let _0x2d4ac2=_0x23eea3[_0x4ddab5];return _0x2d4ac2;}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['configFileNames'];export const NEW_CONFIG_NAME=PRODUCT_CONFIG[a77_0xa8dd1e(0x1be)];function resolveConfigPath(_0x16c63b){for(const _0x1d68ff of CONFIG_NAMES){const _0x29d62f=resolve(_0x16c63b,_0x1d68ff);if(existsSync(_0x29d62f))return _0x29d62f;}return undefined;}export function resolveWriteConfigPath(_0x3769d8){const _0x1ce755=a77_0xa8dd1e,_0x55df93=_0x3769d8==='project'?process[_0x1ce755(0x1db)]():homedir(),_0x5b9d96=resolveConfigPath(_0x55df93);return _0x5b9d96??resolve(_0x55df93,NEW_CONFIG_NAME);}export function readConfigFile(_0x4582bd){const _0xcca81a=a77_0xa8dd1e;try{if(existsSync(_0x4582bd)){const _0x141ab8=readFileSync(_0x4582bd,{'encoding':_0xcca81a(0x1e5)});if(_0x141ab8){const _0x253ef3=JSON['parse'](_0x141ab8);return migrateOnlineEnv(_0x4582bd,_0x253ef3),_0x253ef3;}}}catch{}return{};}function migrateOnlineEnv(_0xdbd6a8,_0x1d91b1){const _0x8752b2=a77_0xa8dd1e;let _0x47b177=![];_0x1d91b1['env']===_0x8752b2(0x1a3)&&(_0x1d91b1[_0x8752b2(0x1df)]='production',_0x47b177=!![]);if(_0x1d91b1['apps']&&typeof _0x1d91b1[_0x8752b2(0x1ab)]===_0x8752b2(0x1c3))for(const _0x3fcdf8 of Object[_0x8752b2(0x1a8)](_0x1d91b1[_0x8752b2(0x1ab)])){_0x3fcdf8&&_0x3fcdf8[_0x8752b2(0x1df)]===_0x8752b2(0x1a3)&&(_0x3fcdf8[_0x8752b2(0x1df)]=_0x8752b2(0x1b2),_0x47b177=!![]);}if(_0x47b177)try{writeConfigFile(_0xdbd6a8,_0x1d91b1);}catch{}}export function writeConfigFile(_0x15a781,_0x31956c){const _0x3219c3=a77_0xa8dd1e,_0x4f8733=dirname(_0x15a781);!existsSync(_0x4f8733)&&mkdirSync(_0x4f8733,{'recursive':!![]});const _0x533789=_0x15a781+_0x3219c3(0x1c8);try{writeFileSync(_0x533789,JSON[_0x3219c3(0x1cd)](_0x31956c,null,0x2)+'\x0a',{'encoding':'utf8','mode':0x180});try{renameSync(_0x533789,_0x15a781);}catch(_0x5e793c){if(_0x5e793c[_0x3219c3(0x1c2)]===_0x3219c3(0x1cc)||_0x5e793c[_0x3219c3(0x1c2)]===_0x3219c3(0x1d7)||_0x5e793c[_0x3219c3(0x1c2)]===_0x3219c3(0x1b6)){writeFileSync(_0x15a781,JSON['stringify'](_0x31956c,null,0x2)+'\x0a',{'encoding':_0x3219c3(0x1e5)});try{unlinkSync(_0x533789);}catch{}}else throw _0x5e793c;}}catch(_0x18e13e){try{unlinkSync(_0x533789);}catch{}throw _0x18e13e;}}export function isNonInteractiveMode(_0x4e56a){const _0x413409=a77_0xa8dd1e;return!!(_0x4e56a[_0x413409(0x1a5)]||_0x4e56a['ci']||productEnvNames('CI')[_0x413409(0x1da)](_0x120b7c=>process.env[_0x120b7c]===_0x413409(0x1e2))||process.env.CI==='true'||!process['stdout'][_0x413409(0x1bb)]||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x28bcf6=a77_0xa8dd1e;if(!process[_0x28bcf6(0x1a6)][_0x28bcf6(0x1bb)])return![];try{const _0xcb52c1=process['stdin'][_0x28bcf6(0x1eb)];return process['stdin'][_0x28bcf6(0x1b0)](!![]),process[_0x28bcf6(0x1a6)][_0x28bcf6(0x1b0)](_0xcb52c1??![]),!![];}catch{return![];}}export async function createContext(_0x4a15f0){const _0x140438=a77_0xa8dd1e,_0x1bd6c8=readRawConfig(),_0x365ab9=buildConfig(_0x1bd6c8,_0x4a15f0);await initGlobalEnvironment(_0x365ab9);const {getUserDomain:_0x240b9d,getApiDomain:_0x1d6c35}=await import('./constant/domain.js'),_0x14a9ec={'apiDomain':_0x1d6c35(),'userDomain':_0x240b9d()},_0xabb4ab=await buildAuth(_0x365ab9);logger[_0x140438(0x1a1)](process[_0x140438(0x1db)]());const _0x40d90d=(CLI_BIN_NAME+'\x20'+process[_0x140438(0x1bd)][_0x140438(0x1d3)](0x2)['join']('\x20'))[_0x140438(0x1b8)]();logger[_0x140438(0x1ca)](_0x40d90d);const _0x22a307=isNonInteractiveMode(_0x4a15f0);return{'config':_0x365ab9,'auth':_0xabb4ab,'logger':logger,'env':_0x14a9ec,'nonInteractive':_0x22a307};}export function buildConfigFromFlags(_0x547f67){return buildConfig(readRawConfig(),_0x547f67);}export function getLocalAppAliases(_0x43526f){const _0x743fc1=a77_0xa8dd1e;return _0x43526f['apps']&&typeof _0x43526f[_0x743fc1(0x1ab)]===_0x743fc1(0x1c3)?_0x43526f[_0x743fc1(0x1ab)]:{};}export function resolveLocalAppAliasCode(_0x16caba,_0x3194f5){const _0x2aa3d9=a77_0xa8dd1e;if(!_0x3194f5)return undefined;const _0xa858b1=getLocalAppAliases(_0x16caba)[_0x3194f5],_0x3dcf5f=_0xa858b1?.[_0x2aa3d9(0x1cf)];return typeof _0x3dcf5f===_0x2aa3d9(0x1c5)&&_0x3dcf5f[_0x2aa3d9(0x1b8)]()?_0x3dcf5f[_0x2aa3d9(0x1b8)]():undefined;}export function readAppCodeFromConfig(){const _0x5980b5=a77_0xa8dd1e,_0x292829=readRawConfig(),_0x1f9c84=_0x292829[_0x5980b5(0x1cf)]??_0x292829[_0x5980b5(0x1e6)];if(typeof _0x1f9c84===_0x5980b5(0x1c5)&&_0x1f9c84[_0x5980b5(0x1b8)]())return _0x1f9c84[_0x5980b5(0x1b8)]();const _0x3cac47=resolveLocalAppAliasCode(_0x292829,typeof _0x292829[_0x5980b5(0x1bc)]===_0x5980b5(0x1c5)?_0x292829[_0x5980b5(0x1bc)]:undefined);if(_0x3cac47)return _0x3cac47;const _0x36395c=normalizeEnv(String(_0x292829[_0x5980b5(0x1df)]||_0x5980b5(0x1b2))),_0xb83a00=isDaily(_0x36395c)?_0x5980b5(0x1ba):isDev(_0x36395c)?_0x5980b5(0x1a4):_0x5980b5(0x1b2),_0x479993=resolveCachedAppCode(typeof _0x292829[_0x5980b5(0x1bc)]===_0x5980b5(0x1c5)?_0x292829[_0x5980b5(0x1bc)]:undefined,_0xb83a00,typeof _0x292829['accessKey']===_0x5980b5(0x1c5)?_0x292829[_0x5980b5(0x1b4)]:undefined);if(_0x479993)return _0x479993;const _0x367265=Object[_0x5980b5(0x1a8)](getLocalAppAliases(_0x292829))['find'](_0x4bd8f0=>_0x4bd8f0?.[_0x5980b5(0x1cf)]);return typeof _0x367265?.[_0x5980b5(0x1cf)]===_0x5980b5(0x1c5)&&_0x367265[_0x5980b5(0x1cf)][_0x5980b5(0x1b8)]()?_0x367265[_0x5980b5(0x1cf)]['trim']():undefined;}export function readScopedConfig(_0x5282b5){const _0xda4243=a77_0xa8dd1e,_0x360b12=_0x5282b5[_0xda4243(0x1e4)]?_0xda4243(0x1e4):_0xda4243(0x1d5);return readConfigFile(resolveWriteConfigPath(_0x360b12));}export function writeScopedConfig(_0x1deaf1,_0x114fe9){const _0x41ec4d=a77_0xa8dd1e,_0x25fd92=_0x114fe9[_0x41ec4d(0x1e4)]?_0x41ec4d(0x1e4):'project';writeConfigFile(resolveWriteConfigPath(_0x25fd92),_0x1deaf1);}export async function initGlobalEnvironment(_0x1c8233){const _0x42fb1d=a77_0xa8dd1e,{initEnv:_0x83f69c}=await import('./constant/env.js');_0x83f69c(_0x1c8233[_0x42fb1d(0x1df)]);const {initDomains:_0x266289}=await import(_0x42fb1d(0x1c9));_0x266289({'apiDomain':_0x1c8233[_0x42fb1d(0x1af)][_0x42fb1d(0x1dc)]||_0x1c8233[_0x42fb1d(0x1af)][_0x42fb1d(0x1d0)]||undefined,'userDomain':_0x1c8233[_0x42fb1d(0x1af)][_0x42fb1d(0x1e9)]||undefined,'runtimeDomain':_0x1c8233['raw']['runtimeDomain']||undefined,'skillHubDomain':_0x1c8233[_0x42fb1d(0x1af)]['skillHubDomain']||undefined});}export function getProjectConfigPath(){const _0x1eb633=a77_0xa8dd1e;return resolveConfigPath(process[_0x1eb633(0x1db)]());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function inspectCliConfigJsonFile(_0x2cf509){const _0x1ec6ca=a77_0xa8dd1e;if(!existsSync(_0x2cf509))return{'status':_0x1ec6ca(0x1e8)};try{const _0x1d7cb5=readFileSync(_0x2cf509,{'encoding':'utf8'});if(!_0x1d7cb5?.[_0x1ec6ca(0x1b8)]())return{'status':_0x1ec6ca(0x1d2)};const _0x323329=JSON['parse'](_0x1d7cb5);return{'status':'ok','data':_0x323329};}catch(_0x573c00){return{'status':_0x1ec6ca(0x1b9),'message':_0x573c00 instanceof Error?_0x573c00[_0x1ec6ca(0x1c4)]:String(_0x573c00)};}}export function loadRawConfigLayers(_0x2a12ea){const _0x25d5a1=a77_0xa8dd1e;let _0x5e5358={},_0x536ebb={},_0x1a5a57,_0x2b8d74;try{_0x1a5a57=resolveConfigPath(homedir());if(_0x1a5a57){const _0x3fd38a=readFileSync(_0x1a5a57,{'encoding':_0x25d5a1(0x1e5)});if(_0x3fd38a)_0x5e5358=JSON['parse'](_0x3fd38a);}}catch{}try{const _0x178603=_0x2a12ea||process[_0x25d5a1(0x1db)]();_0x2b8d74=resolveConfigPath(_0x178603);if(_0x2b8d74){const _0x5656be=readFileSync(_0x2b8d74,{'encoding':'utf8'});if(_0x5656be)_0x536ebb=JSON['parse'](_0x5656be);}}catch{}return{'globalPath':_0x1a5a57,'projectPath':_0x2b8d74,'globalConfig':_0x5e5358,'projectConfig':_0x536ebb};}function mergeRawConfigLayers(_0x16c686){const _0x290159=a77_0xa8dd1e,{globalConfig:_0x29e080,projectConfig:_0x3a7858}=_0x16c686;if(_0x3a7858['inherit']===![]){const _0x298912={..._0x3a7858};return delete _0x298912[_0x290159(0x1d6)],_0x298912;}const _0x33cec4={..._0x29e080,..._0x3a7858};if(_0x290159(0x1bc)in _0x3a7858)_0x33cec4[_0x290159(0x1bc)]=_0x3a7858[_0x290159(0x1bc)];else _0x29e080[_0x290159(0x1bc)]&&(_0x33cec4[_0x290159(0x1bc)]=_0x29e080[_0x290159(0x1bc)]);return _0x33cec4;}export function isInProject(){return!!getProjectConfigPath();}export function readRawConfig(_0x5a4609){return mergeRawConfigLayers(loadRawConfigLayers(_0x5a4609));}export function readRawConfigWithLayers(_0x1cff28){const _0x5c47fc=loadRawConfigLayers(_0x1cff28);return{'config':mergeRawConfigLayers(_0x5c47fc),'layers':_0x5c47fc};}export function resolveDefaultAppSource(_0x265ad5){const _0x9decd6=a77_0xa8dd1e;if(_0x9decd6(0x1bc)in _0x265ad5[_0x9decd6(0x1ad)])return _0x9decd6(0x1d5);if(_0x265ad5[_0x9decd6(0x1ad)][_0x9decd6(0x1d6)]===![])return null;if(_0x265ad5[_0x9decd6(0x1b5)][_0x9decd6(0x1bc)])return _0x9decd6(0x1e4);return null;}function buildConfig(_0x7e2281,_0x5de7a0){const _0x474a4e=a77_0xa8dd1e,_0x5840ff=_0x7e2281[_0x474a4e(0x1bc)]||undefined,_0x160f3f=_0x5de7a0[_0x474a4e(0x1e6)]||env(_0x474a4e(0x1a0))||undefined,_0x55db6e=_0x160f3f||_0x5840ff||undefined,_0x4e94ff=env(_0x474a4e(0x1a7))||_0x7e2281[_0x474a4e(0x1b4)]||undefined,_0x535da1=_0x5de7a0[_0x474a4e(0x1df)]||env(_0x474a4e(0x1a2))||_0x7e2281[_0x474a4e(0x1df)]||DEFAULT_CONFIG_VALUES[_0x474a4e(0x1df)],_0x48116b=normalizeEnv(String(_0x535da1)),_0x9d0ae4=isDaily(_0x48116b)?_0x474a4e(0x1ba):isDev(_0x48116b)?'development':_0x474a4e(0x1b2),_0x57a2c6=typeof _0x5de7a0[_0x474a4e(0x1cf)]===_0x474a4e(0x1c5)?_0x5de7a0[_0x474a4e(0x1cf)]:undefined,_0x28fc33=env('APPCODE'),_0x796a96=_0x160f3f?undefined:_0x7e2281[_0x474a4e(0x1cf)]||_0x7e2281['app']||undefined,_0x44884e=_0x160f3f||(_0x796a96?undefined:_0x5840ff),_0x140956=resolveLocalAppAliasCode(_0x7e2281,_0x44884e),_0x978195=resolveCachedAppCode(_0x44884e,_0x9d0ae4,_0x4e94ff),_0x55eeb9=_0x57a2c6||_0x28fc33||_0x796a96||_0x140956||_0x978195||undefined,_0x3b924d=_0x57a2c6?_0x474a4e(0x1ae):_0x28fc33?_0x474a4e(0x1df):_0x796a96?_0x474a4e(0x1e0):_0x140956?'local-alias':_0x978195?_0x474a4e(0x1d9):undefined,_0x6c9bad=_0x7e2281[_0x474a4e(0x19f)]||DEFAULT_CONFIG_VALUES['locale'],_0x825ef0=undefined,_0xcd2ac7=_0x5de7a0[_0x474a4e(0x1d4)]||env(_0x474a4e(0x1c1))||_0x7e2281[_0x474a4e(0x1d4)],_0xea8bba=normalizeLegacyOutputFormat(_0xcd2ac7),_0x19b15a=env(_0x474a4e(0x1c0))||_0x7e2281[_0x474a4e(0x1c6)],_0x2c1aed=_0x19b15a?Number(_0x19b15a)||undefined:undefined,_0x4a3175=_0x7e2281[_0x474a4e(0x1e1)]||_0x7e2281['maxRisk'],_0x484f77=_0x4a3175===_0x474a4e(0x1a9)||_0x4a3175===_0x474a4e(0x1b7)||_0x4a3175===_0x474a4e(0x1ac)?_0x4a3175:DEFAULT_CONFIG_VALUES[_0x474a4e(0x1e1)],_0x5dfe70=env(_0x474a4e(0x1de)),_0x1458d5=_0x5dfe70==='1'||_0x5dfe70==='true';return{'appCode':typeof _0x55eeb9===_0x474a4e(0x1c5)&&_0x55eeb9[_0x474a4e(0x1b8)]()?_0x55eeb9[_0x474a4e(0x1b8)]():undefined,'appCodeSource':_0x3b924d,'env':_0x9d0ae4,'locale':_0x6c9bad,'cookie':_0x825ef0,'accessKey':_0x4e94ff,'format':_0xea8bba,'pageSize':_0x2c1aed,'riskLevel':_0x484f77,'verbose':_0x1458d5,'defaultApp':_0x5840ff,'currentApp':typeof _0x55db6e===_0x474a4e(0x1c5)?_0x55db6e:undefined,'raw':_0x7e2281};}function env(_0x49babf){return productEnv(_0x49babf);}async function buildAuth(_0x2e39e3){const _0x1e8972='',_0xd24c4=!!_0x2e39e3['accessKey'];return{'cookie':_0x1e8972,'isLoggedIn':_0xd24c4,async 'getOrLogin'(){const _0x205504=a77_0x2d4a;if(_0xd24c4)return _0x1e8972;throw CliErrors[_0x205504(0x1dd)]();}};}
@@ -248,6 +248,51 @@ export interface RuntimeSkillUpsertInput {
248
248
  sourceSessionId?: string;
249
249
  files?: RuntimeSkillFilesManifest;
250
250
  packageBase64?: string;
251
+ diagram?: RuntimeSkillDiagramSubmission;
252
+ }
253
+ export interface RuntimeSkillDiagramSubmission {
254
+ schemaVersion: 1;
255
+ mermaid: string;
256
+ }
257
+ export type RuntimeSkillDiagramScope = "personal" | "company";
258
+ export interface RuntimeSkillVersionDiagramWriteInput {
259
+ expectedDiagramRevision: number;
260
+ sourceFingerprint: string;
261
+ diagram: RuntimeSkillDiagramSubmission;
262
+ }
263
+ export interface RuntimeSkillVersionDiagramWriteResult {
264
+ action: "created" | "updated" | "unchanged";
265
+ wouldWrite: boolean;
266
+ namespace: string;
267
+ skillCode: string;
268
+ skillVersion: string;
269
+ sourceFingerprint: string;
270
+ payloadSha256: string;
271
+ currentDiagramRevision: number;
272
+ diagramRevision: number;
273
+ warnings: string[];
274
+ }
275
+ export interface RuntimeSkillVersionDiagramResult {
276
+ found: boolean;
277
+ namespace: string;
278
+ skillCode: string;
279
+ skillVersion: string;
280
+ sourceFingerprint: string;
281
+ schemaVersion?: number;
282
+ kind?: string;
283
+ title?: string;
284
+ summary?: string;
285
+ warnings: string[];
286
+ mermaid?: string;
287
+ provenance?: {
288
+ producer: string;
289
+ generatorRevision: string;
290
+ };
291
+ mermaidContentFingerprint?: string;
292
+ payloadSha256?: string;
293
+ diagramRevision: number | null;
294
+ expectedDiagramRevision: number;
295
+ updatedAt?: string;
251
296
  }
252
297
  export type RuntimeSkillPublishVisibility = "PRIVATE" | "NAMESPACE_ONLY";
253
298
  export interface RuntimeSkillPublishOptions {
@@ -263,6 +308,7 @@ export interface RuntimeSkillPublishValidationResult {
263
308
  warnings: string[];
264
309
  resolvedSlug?: string;
265
310
  resolvedVersion?: string;
311
+ diagramValidated?: boolean;
266
312
  }
267
313
  /** An app returned by the remote app list API. */
268
314
  export interface RemoteAppItem {
@@ -447,5 +493,11 @@ export declare function publishCompanyRuntimeSkill(appCode: string, input: Runti
447
493
  }): Promise<RuntimeSkillItem>;
448
494
  /** Validates a runtime Skill publish package through SkillHub without creating a version. */
449
495
  export declare function validateRuntimeSkillPublish(appCode: string, input: RuntimeSkillUpsertInput, validation: RuntimeSkillPublishValidationInput): Promise<RuntimeSkillPublishValidationResult>;
496
+ /** Validates a replacement diagram for one exact Skill version without writing it. */
497
+ export declare function validateRuntimeSkillVersionDiagram(appCode: string, skillCode: string, version: string, scope: RuntimeSkillDiagramScope, input: RuntimeSkillVersionDiagramWriteInput): Promise<RuntimeSkillVersionDiagramWriteResult>;
498
+ /** Creates or replaces the diagram for one exact Skill version. */
499
+ export declare function putRuntimeSkillVersionDiagram(appCode: string, skillCode: string, version: string, scope: RuntimeSkillDiagramScope, input: RuntimeSkillVersionDiagramWriteInput): Promise<RuntimeSkillVersionDiagramWriteResult>;
500
+ /** Reads the current diagram for one exact Skill version, including an explicit found flag. */
501
+ export declare function getRuntimeSkillVersionDiagram(appCode: string, skillCode: string, version: string, scope: RuntimeSkillDiagramScope): Promise<RuntimeSkillVersionDiagramResult>;
450
502
  /** Downloads a runtime Skill package through SkillHub. */
451
503
  export declare function downloadRuntimeSkillPackage(scope: "personal" | "company" | "builtin", skillCode: string, appCode: string, version?: string): Promise<Buffer>;
@@ -1 +1 @@
1
- (function(_0x5d04dc,_0x93b054){const _0x11d8a6=a76_0x17ce,_0x55bfed=_0x5d04dc();while(!![]){try{const _0x2a7cdb=parseInt(_0x11d8a6(0x107))/0x1*(parseInt(_0x11d8a6(0xba))/0x2)+-parseInt(_0x11d8a6(0x134))/0x3*(-parseInt(_0x11d8a6(0xdd))/0x4)+parseInt(_0x11d8a6(0x14d))/0x5*(-parseInt(_0x11d8a6(0x103))/0x6)+parseInt(_0x11d8a6(0x11c))/0x7+parseInt(_0x11d8a6(0x133))/0x8*(parseInt(_0x11d8a6(0xff))/0x9)+-parseInt(_0x11d8a6(0x123))/0xa+-parseInt(_0x11d8a6(0x12c))/0xb*(-parseInt(_0x11d8a6(0xe5))/0xc);if(_0x2a7cdb===_0x93b054)break;else _0x55bfed['push'](_0x55bfed['shift']());}catch(_0x4d2928){_0x55bfed['push'](_0x55bfed['shift']());}}}(a76_0x5746,0x365c0));import{readFile}from'node:fs/promises';import{basename}from'node:path';import{getApiDomain,getRuntimeDomain,getSkillHubDomain}from'../constant/domain.js';import{PRODUCT_CONFIG}from'../constant/product.js';import{CliErrors}from'../errors.js';import{createRateLimitError,readRetryAfter,readRetryAfterSeconds}from'../framework/rate-limit.js';import{extractList}from'../framework/response.js';import{parseLosslessJson}from'../utils/lossless-json.js';let _activeAK;export function setActiveAK(_0x58036c){_activeAK=_0x58036c||undefined;}export function clearActiveAK(){_activeAK=undefined;}function firstString(..._0x26d7d5){const _0x364588=a76_0x17ce;for(const _0x192fe0 of _0x26d7d5){if(typeof _0x192fe0===_0x364588(0x14a)&&_0x192fe0[_0x364588(0xb9)]())return _0x192fe0[_0x364588(0xb9)]();}return undefined;}async function decodeResponseBody(_0x24acc3){const _0x207c4d=a76_0x17ce;if(typeof _0x24acc3[_0x207c4d(0xd7)]===_0x207c4d(0xe2))try{const _0x161449=await _0x24acc3[_0x207c4d(0xd7)]();try{return{'isJson':!![],'data':parseLosslessJson(_0x161449),'text':_0x161449};}catch{return{'isJson':![],'text':_0x161449[_0x207c4d(0xb9)]()||undefined};}}catch{}try{return{'isJson':!![],'data':await _0x24acc3[_0x207c4d(0xc3)]()};}catch{return{'isJson':![]};}}function throwIfRateLimited(_0x348b3a,_0xf092b4,_0x39c5ef){const _0x4d215d=a76_0x17ce,_0xf18d61=_0xf092b4&&typeof _0xf092b4==='object'?_0xf092b4:{},_0x1173a6=[_0xf18d61[_0x4d215d(0xe9)],_0xf18d61['code']]['find'](_0x48fb40=>Number(_0x48fb40)===0x1ad),_0x404346=createRateLimitError({'status':_0x348b3a[_0x4d215d(0xe9)]===0x1ad?_0x348b3a['status']:_0x1173a6??_0x348b3a[_0x4d215d(0xe9)],'errorCode':firstString(_0xf18d61[_0x4d215d(0xc2)],typeof _0xf18d61[_0x4d215d(0x145)]==='string'?_0xf18d61[_0x4d215d(0x145)]:undefined),'message':firstString(_0xf18d61[_0x4d215d(0xcc)],_0xf18d61[_0x4d215d(0xd1)],_0xf18d61[_0x4d215d(0x135)],_0x39c5ef),'retryAfter':readRetryAfter(_0x348b3a[_0x4d215d(0xef)])??readRetryAfterSeconds(_0xf092b4)});if(_0x404346)throw _0x404346;}async function apiRequest(_0x375c50,_0x28689b={}){const _0x19244e=a76_0x17ce,{method:method=_0x19244e(0x154),body:_0xe864ec,headers:headers={},timeout:timeout=0x7530}=_0x28689b,_0x5802b7=_activeAK,_0x2898eb=getRuntimeDomain();if(!_0x5802b7)throw CliErrors[_0x19244e(0xe1)](_0x19244e(0xbd)+PRODUCT_CONFIG[_0x19244e(0xe7)]+'.');const _0x5de9b7=''+_0x2898eb+_0x375c50,_0x1609db={'X-User-AK':_0x5802b7},_0x16251d=new AbortController(),_0x54be6e=setTimeout(()=>_0x16251d[_0x19244e(0x122)](),timeout);try{const _0x489632=await fetch(_0x5de9b7,{'method':method,'headers':{'Content-Type':_0x19244e(0xca),'X-Invoke-Source':PRODUCT_CONFIG[_0x19244e(0xe3)],..._0x1609db,...headers},'body':_0xe864ec?JSON[_0x19244e(0x10e)](_0xe864ec):undefined,'signal':_0x16251d[_0x19244e(0x14b)]}),_0xa5f9dd=await decodeResponseBody(_0x489632);if(!_0xa5f9dd[_0x19244e(0xfd)]){throwIfRateLimited(_0x489632,undefined,_0xa5f9dd[_0x19244e(0xd7)]);throw CliErrors['apiError'](_0x19244e(0x132)+_0x489632[_0x19244e(0xe9)]+')',_0x489632[_0x19244e(0xe9)]>=0x190?_0x19244e(0xdc):undefined);}const _0x3abf42=_0xa5f9dd['data'];throwIfRateLimited(_0x489632,_0x3abf42);if(!_0x489632['ok']||_0x3abf42[_0x19244e(0xd9)]===![])throw CliErrors[_0x19244e(0x130)](_0x3abf42[_0x19244e(0xcc)]||_0x3abf42[_0x19244e(0xd1)]||_0x19244e(0x13b)+_0x489632[_0x19244e(0xe9)],_0x3abf42[_0x19244e(0xc2)]?_0x19244e(0xe0)+_0x3abf42[_0x19244e(0xc2)]:undefined);return _0x3abf42;}catch(_0x266f9c){if(_0x266f9c instanceof Error&&_0x266f9c['name']===_0x19244e(0xc8))throw CliErrors['apiError'](_0x19244e(0xdf)+_0x5de9b7);throw _0x266f9c;}finally{clearTimeout(_0x54be6e);}}async function apiBinaryRequest(_0x1affae,_0x16648d={}){const _0x5746e6=a76_0x17ce,{method:method=_0x5746e6(0x154),headers:headers={},timeout:timeout=0x7530}=_0x16648d,_0x44e1f2=_activeAK,_0xc181ee=getRuntimeDomain();if(!_0x44e1f2)throw CliErrors['authRequired'](_0x5746e6(0xbd)+PRODUCT_CONFIG['newConfigFileName']+'.');const _0x467607=''+_0xc181ee+_0x1affae,_0x4a58cb=new AbortController(),_0x6efdc5=setTimeout(()=>_0x4a58cb['abort'](),timeout);try{const _0x51ef3a=await fetch(_0x467607,{'method':method,'headers':{'X-Invoke-Source':PRODUCT_CONFIG[_0x5746e6(0xe3)],'X-User-AK':_0x44e1f2,...headers},'signal':_0x4a58cb[_0x5746e6(0x14b)]});if(!_0x51ef3a['ok']){const _0x35ccdc=await decodeResponseBody(_0x51ef3a),_0x258081=_0x35ccdc['data']&&typeof _0x35ccdc[_0x5746e6(0x151)]===_0x5746e6(0x108)?_0x35ccdc[_0x5746e6(0x151)]:{},_0xfa896a=firstString(_0x258081[_0x5746e6(0xcc)],_0x258081[_0x5746e6(0xd1)],_0x258081[_0x5746e6(0xc2)],_0x35ccdc['text']);throwIfRateLimited(_0x51ef3a,_0x35ccdc[_0x5746e6(0x151)],_0xfa896a);throw CliErrors[_0x5746e6(0x130)](_0xfa896a||_0x5746e6(0x13b)+_0x51ef3a['status'],_0x5746e6(0x106)+_0x467607);}return Buffer['from'](await _0x51ef3a[_0x5746e6(0x11d)]());}catch(_0x55da0b){if(_0x55da0b instanceof Error&&_0x55da0b[_0x5746e6(0x14e)]===_0x5746e6(0xc8))throw CliErrors[_0x5746e6(0x130)](_0x5746e6(0xdf)+_0x467607);throw _0x55da0b;}finally{clearTimeout(_0x6efdc5);}}async function apiFormRequest(_0x250dbf,_0x8213b0,_0x4cb730={}){const _0x3f2017=a76_0x17ce,{timeout:timeout=0x7530}=_0x4cb730,_0x3defec=_activeAK,_0x453377=getRuntimeDomain();if(!_0x3defec)throw CliErrors[_0x3f2017(0xe1)](_0x3f2017(0xbd)+PRODUCT_CONFIG[_0x3f2017(0xe7)]+'.');const _0x209b33=''+_0x453377+_0x250dbf,_0x471778=new AbortController(),_0x3d7a2e=setTimeout(()=>_0x471778[_0x3f2017(0x122)](),timeout);try{const _0x20433a=await fetch(_0x209b33,{'method':_0x3f2017(0x120),'headers':{'X-Invoke-Source':PRODUCT_CONFIG[_0x3f2017(0xe3)],'X-User-AK':_0x3defec},'body':_0x8213b0,'signal':_0x471778[_0x3f2017(0x14b)]}),_0x33c0ea=await decodeResponseBody(_0x20433a);if(!_0x33c0ea[_0x3f2017(0xfd)]){throwIfRateLimited(_0x20433a,undefined,_0x33c0ea[_0x3f2017(0xd7)]);throw CliErrors['apiError'](_0x3f2017(0x132)+_0x20433a[_0x3f2017(0xe9)]+')',_0x20433a[_0x3f2017(0xe9)]>=0x190?_0x3f2017(0xdc):undefined);}const _0x380ee2=_0x33c0ea['data'];throwIfRateLimited(_0x20433a,_0x380ee2);if(!_0x20433a['ok']||_0x380ee2[_0x3f2017(0xd9)]===![])throw CliErrors[_0x3f2017(0x130)](_0x380ee2['errorMsg']||_0x380ee2[_0x3f2017(0xd1)]||'API\x20error:\x20'+_0x20433a[_0x3f2017(0xe9)],_0x380ee2[_0x3f2017(0xc2)]?'API\x20error\x20code:\x20'+_0x380ee2[_0x3f2017(0xc2)]:undefined);return _0x380ee2;}catch(_0x86829e){if(_0x86829e instanceof Error&&_0x86829e[_0x3f2017(0x14e)]===_0x3f2017(0xc8))throw CliErrors[_0x3f2017(0x130)]('Request\x20timeout:\x20'+_0x209b33);throw _0x86829e;}finally{clearTimeout(_0x3d7a2e);}}async function toolboxRequest(_0x1f0e4a,_0x954d68,_0x8d649c={}){const _0x172953=a76_0x17ce,{method:method=_0x172953(0x154),headers:headers={},timeout:timeout=0x7530}=_0x8d649c,_0x43c1e1=_activeAK;if(!_0x43c1e1)throw CliErrors[_0x172953(0xe1)](_0x172953(0xbd)+PRODUCT_CONFIG[_0x172953(0xe7)]+'.');const _0x661507=getApiDomain()[_0x172953(0xf1)](/\/$/,''),_0x8f1957=new URL(_0x1f0e4a,_0x661507+_0x172953(0x114));if(_0x954d68)for(const [_0x4c344e,_0x1105ac]of Object[_0x172953(0xf5)](_0x954d68)){_0x1105ac!==undefined&&_0x1105ac!==null&&_0x8f1957[_0x172953(0xd8)][_0x172953(0x129)](_0x4c344e,String(_0x1105ac));}const _0x2aeb3d=new AbortController(),_0x504eb7=setTimeout(()=>_0x2aeb3d[_0x172953(0x122)](),timeout);try{const _0x51213d=await fetch(_0x8f1957,{'method':method,'headers':{'Content-Type':'application/json','X-Invoke-Source':PRODUCT_CONFIG[_0x172953(0xe3)],'X-User-AK':_0x43c1e1,...headers},'signal':_0x2aeb3d['signal']}),_0x5005a3=await decodeResponseBody(_0x51213d);if(!_0x5005a3['isJson']){throwIfRateLimited(_0x51213d,undefined,_0x5005a3[_0x172953(0xd7)]);throw CliErrors['apiError']('Toolbox\x20returned\x20non-JSON\x20response\x20(HTTP\x20'+_0x51213d[_0x172953(0xe9)]+')',_0x51213d[_0x172953(0xe9)]>=0x190?'Check\x20your\x20credentials\x20and\x20try\x20again.':undefined);}const _0x499475=_0x5005a3[_0x172953(0x151)];throwIfRateLimited(_0x51213d,_0x499475);if(!_0x51213d['ok']){const _0x262ccd=_0x499475&&typeof _0x499475===_0x172953(0x108)?_0x499475:{};throw CliErrors['apiError'](_0x262ccd[_0x172953(0xcc)]||_0x262ccd[_0x172953(0xd1)]||'Toolbox\x20API\x20error:\x20'+_0x51213d[_0x172953(0xe9)],_0x262ccd[_0x172953(0xc2)]?_0x172953(0xd6)+_0x262ccd[_0x172953(0xc2)]:undefined);}if(_0x499475&&typeof _0x499475==='object'&&_0x172953(0xd9)in _0x499475&&typeof _0x499475[_0x172953(0xd9)]===_0x172953(0x100)){const _0x382d4b=_0x499475;if(!_0x382d4b[_0x172953(0xd9)])throw CliErrors[_0x172953(0x130)](_0x382d4b[_0x172953(0xcc)]||_0x382d4b['message']||'Toolbox\x20API\x20error',_0x382d4b[_0x172953(0xc2)]?_0x172953(0xd6)+_0x382d4b[_0x172953(0xc2)]:undefined);return _0x382d4b['data'];}return _0x499475;}catch(_0x531ecb){if(_0x531ecb instanceof Error&&_0x531ecb[_0x172953(0x14e)]==='AbortError')throw CliErrors[_0x172953(0x130)](_0x172953(0xdf)+_0x8f1957[_0x172953(0xf4)]());throw _0x531ecb;}finally{clearTimeout(_0x504eb7);}}async function skillHubJsonRequest(_0x129a10,_0x7c5ff2={}){const _0x59ce77=a76_0x17ce,{method:method=_0x59ce77(0x154),query:_0x1871ab,body:_0x1aa6aa,headers:headers={},timeout:timeout=0x7530,allowNotFound:allowNotFound=![]}=_0x7c5ff2,_0x1da982=_activeAK;if(!_0x1da982)throw CliErrors[_0x59ce77(0xe1)](_0x59ce77(0xbd)+PRODUCT_CONFIG[_0x59ce77(0xe7)]+'.');const _0x4f31fc=getSkillHubDomain()[_0x59ce77(0xf1)](/\/$/,''),_0xf33110=new URL(_0x129a10,_0x4f31fc+'/');if(_0x1871ab)for(const [_0xe3433c,_0x4e9934]of Object[_0x59ce77(0xf5)](_0x1871ab)){_0x4e9934!==undefined&&_0x4e9934!==null&&_0xf33110[_0x59ce77(0xd8)][_0x59ce77(0x129)](_0xe3433c,String(_0x4e9934));}const _0x2bc4b2=new AbortController(),_0x35b901=setTimeout(()=>_0x2bc4b2[_0x59ce77(0x122)](),timeout);try{const _0x3c5d09=await fetch(_0xf33110['toString'](),{'method':method,'headers':{'Accept':_0x59ce77(0xca),'X-Invoke-Source':PRODUCT_CONFIG[_0x59ce77(0xe3)],'X-User-AK':_0x1da982,...headers},'body':_0x1aa6aa,'signal':_0x2bc4b2[_0x59ce77(0x14b)]}),_0x4ac6a7=await decodeResponseBody(_0x3c5d09);if(!_0x4ac6a7[_0x59ce77(0xfd)]){if(allowNotFound&&_0x3c5d09[_0x59ce77(0xe9)]===0x194)return undefined;throwIfRateLimited(_0x3c5d09,undefined,_0x4ac6a7['text']);throw CliErrors['apiError'](_0x59ce77(0xe8)+_0x3c5d09[_0x59ce77(0xe9)]+')',_0x3c5d09[_0x59ce77(0xe9)]>=0x190?_0x59ce77(0xdc):undefined);}const _0x2b4838=_0x4ac6a7['data'];throwIfRateLimited(_0x3c5d09,_0x2b4838);if(allowNotFound&&isSkillHubNotFoundResponse(_0x3c5d09[_0x59ce77(0xe9)],_0x2b4838))return undefined;const _0x24d29a=!_0x3c5d09['ok']||_0x2b4838?.[_0x59ce77(0xd9)]===![]||typeof _0x2b4838?.[_0x59ce77(0x145)]===_0x59ce77(0x146)&&_0x2b4838['code']>=0x190;if(_0x24d29a)throw CliErrors[_0x59ce77(0x130)](_0x2b4838?.[_0x59ce77(0xcc)]||_0x2b4838?.['message']||_0x2b4838?.[_0x59ce77(0x135)]||'SkillHub\x20API\x20error:\x20'+_0x3c5d09[_0x59ce77(0xe9)],_0x2b4838?.[_0x59ce77(0xc2)]?_0x59ce77(0xcd)+_0x2b4838[_0x59ce77(0xc2)]:undefined);return _0x2b4838?.[_0x59ce77(0x151)]??_0x2b4838;}catch(_0x22c74b){if(_0x22c74b instanceof Error&&_0x22c74b['name']===_0x59ce77(0xc8))throw CliErrors['apiError']('Request\x20timeout:\x20'+_0xf33110[_0x59ce77(0xf4)]());throw _0x22c74b;}finally{clearTimeout(_0x35b901);}}function isSkillHubNotFoundResponse(_0x41962a,_0x19b591){const _0x565a41=a76_0x17ce;if(_0x41962a===0x194||_0x19b591?.[_0x565a41(0x145)]===0x194)return!![];if(_0x41962a!==0x190&&_0x19b591?.[_0x565a41(0x145)]!==0x190)return![];const _0x246657=[_0x19b591?.[_0x565a41(0x135)],_0x19b591?.[_0x565a41(0xd1)],_0x19b591?.[_0x565a41(0xcc)],_0x19b591?.[_0x565a41(0x13e)]]['filter'](_0x46708a=>typeof _0x46708a===_0x565a41(0x14a))[_0x565a41(0xfe)]('\x20');return/skill not found\b/i[_0x565a41(0xda)](_0x246657);}async function skillHubBinaryRequest(_0x41566d,_0x3c140a={}){const _0x271c09=a76_0x17ce,{query:_0x2b76a1,headers:headers={},timeout:timeout=0x7530}=_0x3c140a,_0x1986c1=_activeAK;if(!_0x1986c1)throw CliErrors['authRequired'](_0x271c09(0xbd)+PRODUCT_CONFIG[_0x271c09(0xe7)]+'.');const _0x20a68b=getSkillHubDomain()[_0x271c09(0xf1)](/\/$/,''),_0x2e3783=new URL(_0x41566d,_0x20a68b+'/');if(_0x2b76a1)for(const [_0x1b5834,_0xcf47a3]of Object[_0x271c09(0xf5)](_0x2b76a1)){_0xcf47a3!==undefined&&_0xcf47a3!==null&&_0x2e3783[_0x271c09(0xd8)][_0x271c09(0x129)](_0x1b5834,String(_0xcf47a3));}const _0x2ce123=new AbortController(),_0x98d0e4=setTimeout(()=>_0x2ce123[_0x271c09(0x122)](),timeout);try{const _0x5aa61a=await fetch(_0x2e3783['toString'](),{'method':'GET','headers':{'Accept':'application/octet-stream','X-Invoke-Source':PRODUCT_CONFIG[_0x271c09(0xe3)],'X-User-AK':_0x1986c1,...headers},'signal':_0x2ce123[_0x271c09(0x14b)]});if(!_0x5aa61a['ok']){const _0xfe70a5=await decodeResponseBody(_0x5aa61a),_0x37164e=_0xfe70a5[_0x271c09(0x151)]&&typeof _0xfe70a5[_0x271c09(0x151)]===_0x271c09(0x108)?_0xfe70a5[_0x271c09(0x151)]:{},_0x31c16a=firstString(_0x37164e[_0x271c09(0xcc)],_0x37164e[_0x271c09(0xd1)],_0x37164e[_0x271c09(0x135)],_0x37164e['errorCode'],_0xfe70a5[_0x271c09(0xd7)]);throwIfRateLimited(_0x5aa61a,_0xfe70a5[_0x271c09(0x151)],_0x31c16a);throw CliErrors[_0x271c09(0x130)](_0x31c16a||_0x271c09(0xc9)+_0x5aa61a[_0x271c09(0xe9)],'Download\x20failed:\x20'+_0x2e3783['toString']());}return Buffer[_0x271c09(0xf6)](await _0x5aa61a[_0x271c09(0x11d)]());}catch(_0x40ab42){if(_0x40ab42 instanceof Error&&_0x40ab42['name']===_0x271c09(0xc8))throw CliErrors[_0x271c09(0x130)]('Request\x20timeout:\x20'+_0x2e3783['toString']());throw _0x40ab42;}finally{clearTimeout(_0x98d0e4);}}export async function getBffEndpointContract(_0x2529c0,_0x50135b){const _0xf8ecf7=a76_0x17ce;if(_0x50135b===_0xf8ecf7(0x12a))throw CliErrors[_0xf8ecf7(0xea)](_0xf8ecf7(0x12b)+_0x2529c0+_0xf8ecf7(0x12e)+_0x50135b);const _0x2fd8be=await apiRequest(_0xf8ecf7(0xdb)+encodeURIComponent(_0x2529c0)+'/'+encodeURIComponent(_0x50135b)),_0x19210f=_0x2fd8be[_0xf8ecf7(0x151)];if(!_0x19210f||typeof _0x19210f!==_0xf8ecf7(0x108)||Array['isArray'](_0x19210f)||_0x19210f[_0xf8ecf7(0x104)]!==_0x2529c0||_0x19210f[_0xf8ecf7(0xc6)]!==_0x50135b)throw CliErrors[_0xf8ecf7(0xea)](_0xf8ecf7(0x12b)+_0x2529c0+',\x20name='+_0x50135b);return{'appCode':_0x19210f[_0xf8ecf7(0x104)],'functionName':_0x19210f[_0xf8ecf7(0xc6)],'description':_0x19210f[_0xf8ecf7(0x112)],'version':_0x19210f['version'],'gmtModified':_0x19210f[_0xf8ecf7(0x153)]};}export async function getSqlQueryInfo(_0x279f04,_0x39c0d0){const _0x39ebca=a76_0x17ce,_0x484eaf=await apiRequest('/client/sql/query',{'method':'POST','body':{'appCode':_0x279f04,'currentPage':0x1,'pageSize':0x1,'sqlCode':_0x39c0d0}}),_0x335ef1=_0x484eaf['data'],_0x28ee85=_0x335ef1&&typeof _0x335ef1==='object'&&_0x39ebca(0x147)in _0x335ef1?_0x335ef1[_0x39ebca(0x147)]?.[0x0]:_0x335ef1&&typeof _0x335ef1===_0x39ebca(0x108)&&_0x39ebca(0x156)in _0x335ef1?_0x335ef1:undefined;if(!_0x28ee85)throw CliErrors[_0x39ebca(0xea)](_0x39ebca(0x11f)+_0x39c0d0);return _0x28ee85;}function isRemoteAppItem(_0x41f05f){const _0x3f9765=a76_0x17ce;return!!_0x41f05f&&typeof _0x41f05f==='object'&&typeof _0x41f05f[_0x3f9765(0x104)]===_0x3f9765(0x14a)&&typeof _0x41f05f[_0x3f9765(0x125)]==='string';}function extractRemoteAppItems(_0x56469c){const _0x587155=a76_0x17ce;if(Array[_0x587155(0x111)](_0x56469c))return _0x56469c[_0x587155(0x115)](isRemoteAppItem);if(!_0x56469c||typeof _0x56469c!=='object')throw CliErrors['apiError'](_0x587155(0xbb));const _0x3f3e01=_0x56469c;if(Array[_0x587155(0x111)](_0x3f3e01[_0x587155(0x147)]))return _0x3f3e01[_0x587155(0x147)][_0x587155(0x115)](isRemoteAppItem);if(_0x3f3e01[_0x587155(0x151)]&&typeof _0x3f3e01[_0x587155(0x151)]==='object'){const _0x5d0eaf=_0x3f3e01[_0x587155(0x151)];if(Array[_0x587155(0x111)](_0x5d0eaf['tableData']))return _0x5d0eaf[_0x587155(0x147)]['filter'](isRemoteAppItem);}throw CliErrors[_0x587155(0x130)](_0x587155(0x127));}function a76_0x5746(){const _0x48fcc5=['tags','errorMsg','SkillHub\x20error\x20code:\x20','DELETE','resolvedSlug','artifactType','message','/client/runtime-bff/personal/','skillName','PRIVATE','Personal\x20BFF\x20not\x20found:\x20id=','Toolbox\x20error\x20code:\x20','text','searchParams','success','test','/client/bff/endpoint/','Check\x20your\x20credentials\x20and\x20try\x20again.','108lDwoWv','append','Request\x20timeout:\x20','API\x20error\x20code:\x20','authRequired','function','invokeSource','/client/knowledge-base/personal/create','2472brIutb','/client/app-config/getByKey?','newConfigFileName','SkillHub\x20returned\x20non-JSON\x20response\x20(HTTP\x20','status','validation','/api/v1/skills/','warnings','/client/runtime-bff/personal/create','visibility','headers','cursor','replace','api-doc-generator','/skills','toString','entries','from','/update','Knowledge-base\x20entry\x20not\x20found:\x20id=','markdown','longTerm','/client/knowledge-base/personal/','/download','isJson','join','9UXaoAN','boolean','/client/uploadFile','/schedules','15774aAoIfJ','appCode','Invalid\x20login\x20user\x20info\x20response:\x20expected\x20object.','Download\x20failed:\x20','51649MeZlNl','object','version','topK','url','Artifact\x20not\x20found:\x20id=','/client/app/my-apps','stringify','toLowerCase','confirmWarnings','isArray','description','source','/api/node-toolbox/','filter','download','/execute?appCode=','resolvedVersion','/client/ocr','valid','all','1765456PhyepR','arrayBuffer','/api/harness/apps/','SQL\x20query\x20not\x20found:\x20','POST','file','abort','1650360ARWEDg','scope','appName','items','Invalid\x20app\x20list\x20response:\x20missing\x20data.tableData.','skill','set','functions','BFF\x20function\x20not\x20found\x20or\x20inaccessible:\x20appCode=','10153PvrKmU','namespace',',\x20name=','skillCode','apiError','packageBase64','API\x20returned\x20non-JSON\x20response\x20(HTTP\x20','272704FpbnSX','21207PyUJQy','msg','NAMESPACE_ONLY','example','company','Invalid\x20app\x20config\x20value:\x20key=','publishedVersion','API\x20error:\x20','.zip','/client/runtime-bff/personal/list?appCode=','error','/validate','/client/artifact/','/client/artifact/list?','/client/knowledge-base/search','favorite','/versions/','code','number','tableData','size','/client/artifact/create','string','signal','application/zip','630QQzvgG','name','?appCode=','limit','data','content','gmtModified','GET','Missing\x20Skill\x20package\x20payload.','sqlCode','trim','2qNgLzb','Invalid\x20app\x20list\x20response:\x20expected\x20object\x20or\x20array.','personal','Configure\x20accessKey\x20in\x20','displayName','/api/cli/v1/skills/','slug','errors','errorCode','json','type','base64','functionName','ownerPreviewVersion','AbortError','SkillHub\x20API\x20error:\x20','application/json'];a76_0x5746=function(){return _0x48fcc5;};return a76_0x5746();}export async function getMyApps(){const _0x4da15c=a76_0x17ce,_0x29b7c9=await apiRequest(_0x4da15c(0x10d));return extractRemoteAppItems(_0x29b7c9[_0x4da15c(0x151)]);}export async function getLoginUserInfo(){const _0x135bd2=a76_0x17ce,_0x17eb68=await apiRequest('/client/user/loginUserInfo');if(!_0x17eb68[_0x135bd2(0x151)]||typeof _0x17eb68[_0x135bd2(0x151)]!==_0x135bd2(0x108)||Array[_0x135bd2(0x111)](_0x17eb68[_0x135bd2(0x151)]))throw CliErrors[_0x135bd2(0x130)](_0x135bd2(0x105));return _0x17eb68[_0x135bd2(0x151)];}function runtimeSchedulePath(_0x16966e,_0x178d63=''){const _0x2a8458=a76_0x17ce;return _0x2a8458(0x11e)+encodeURIComponent(_0x16966e)+_0x2a8458(0x102)+_0x178d63;}export async function validateRuntimeSchedule(_0x397ac,_0x142892){const _0x37b7e1=a76_0x17ce,_0x5be7c3=await apiRequest(runtimeSchedulePath(_0x397ac,_0x37b7e1(0x13f)),{'method':_0x37b7e1(0x120),'body':_0x142892});return _0x5be7c3[_0x37b7e1(0x151)];}export async function createRuntimeSchedule(_0x6a4360,_0x569846){const _0xb6fdc1=await apiRequest(runtimeSchedulePath(_0x6a4360),{'method':'POST','body':_0x569846});return _0xb6fdc1['data'];}export async function listRuntimeSchedules(_0x2d1f21,_0x5269ba={}){const _0x225951=a76_0x17ce,_0x5ed71f=new URLSearchParams();if(_0x5269ba[_0x225951(0x150)]!==undefined)_0x5ed71f['set'](_0x225951(0x150),String(_0x5269ba[_0x225951(0x150)]));if(_0x5269ba[_0x225951(0xf0)])_0x5ed71f[_0x225951(0x129)](_0x225951(0xf0),_0x5269ba['cursor']);const _0x515451=_0x5ed71f[_0x225951(0x148)]>0x0?'?'+_0x5ed71f['toString']():'',_0x44648b=await apiRequest(''+runtimeSchedulePath(_0x2d1f21)+_0x515451);return _0x44648b['data'];}export async function getRuntimeSchedule(_0x4cc555,_0x291d22){const _0x586ce9=a76_0x17ce,_0x57eca6=await apiRequest(runtimeSchedulePath(_0x4cc555,'/'+encodeURIComponent(_0x291d22)));return _0x57eca6[_0x586ce9(0x151)];}export async function deleteRuntimeSchedule(_0x5b8933,_0x386b4d){const _0x164365=a76_0x17ce,_0xb3ae5f=await apiRequest(runtimeSchedulePath(_0x5b8933,'/'+encodeURIComponent(_0x386b4d)),{'method':_0x164365(0xce)});return _0xb3ae5f[_0x164365(0x151)];}export async function runRuntimeSchedule(_0x179166,_0xa3f1c1){const _0xbfbc4f=a76_0x17ce,_0x271c9c=await apiRequest(runtimeSchedulePath(_0x179166,'/'+encodeURIComponent(_0xa3f1c1)+'/run'),{'method':_0xbfbc4f(0x120)});return _0x271c9c[_0xbfbc4f(0x151)];}export async function listDatasets(_0x3e1cfb,_0x18e9ba){const _0x2ea257=a76_0x17ce,_0xe7f4ad=await apiRequest('/client/dataset/list',{'method':_0x2ea257(0x120),'body':{'appCode':_0x3e1cfb,..._0x18e9ba?.[_0x2ea257(0x145)]&&{'code':_0x18e9ba['code']},..._0x18e9ba?.[_0x2ea257(0x14e)]&&{'name':_0x18e9ba['name']}}});return extractList(_0xe7f4ad[_0x2ea257(0x151)]);}export async function getDatasetDetail(_0x1533e9){const _0x14b060=a76_0x17ce,_0x25ac64=await apiRequest('/client/dataset/get-driven-data?code='+encodeURIComponent(_0x1533e9));return _0x25ac64[_0x14b060(0x151)];}export async function getDatasetSdkUsageDoc(_0x5a93f5,_0x1d85e2){const _0x2da1f5=a76_0x17ce,_0x111790=await toolboxRequest(_0x2da1f5(0xf2),{'datasetCode':_0x5a93f5,'appCode':_0x1d85e2});return typeof _0x111790?.[_0x2da1f5(0xf9)]===_0x2da1f5(0x14a)?_0x111790[_0x2da1f5(0xf9)]:'';}export async function uploadRuntimeFile(_0x1efd28,_0x11ce8e){const _0x296121=a76_0x17ce,_0x20a4df=await readFile(_0x11ce8e),_0x4356ee=new FormData();_0x4356ee['append'](_0x296121(0x104),_0x1efd28),_0x4356ee[_0x296121(0xde)](_0x296121(0x121),new Blob([new Uint8Array(_0x20a4df)]),basename(_0x11ce8e));const _0x1fbeb3=await apiFormRequest(_0x296121(0x101),_0x4356ee);return _0x1fbeb3[_0x296121(0x151)];}export async function queryRuntimeFileUrl(_0x386171,_0x49d41f={}){const _0x3ade7e=a76_0x17ce,_0x393b20=await apiRequest('/client/queryFileUrl',{'method':_0x3ade7e(0x120),'body':{'filePath':_0x386171,'downloadFlag':_0x49d41f[_0x3ade7e(0x116)]??![],..._0x49d41f[_0x3ade7e(0xfa)]?{'longTerm':!![]}:{}}});return _0x393b20[_0x3ade7e(0x151)];}export async function recognizeRuntimeOcr(_0x2a2931,_0x23bb64){const _0x1a813d=a76_0x17ce,_0x13d958=await apiRequest(_0x1a813d(0x119),{'method':_0x1a813d(0x120),'body':{'appCode':_0x2a2931,'url':_0x23bb64[_0x1a813d(0x10b)],'type':_0x23bb64[_0x1a813d(0xc4)]}});return _0x13d958['data'];}export async function getRuntimeAppConfigByKey(_0x435380,_0x17a18b){const _0x3c92bc=a76_0x17ce,_0x11099a=new URLSearchParams({'appCode':_0x435380,'key':_0x17a18b}),_0x51f759=await apiRequest(_0x3c92bc(0xe6)+_0x11099a['toString']());if(typeof _0x51f759[_0x3c92bc(0x151)]!==_0x3c92bc(0x14a))throw CliErrors[_0x3c92bc(0xea)](_0x3c92bc(0x139)+_0x17a18b);return _0x51f759['data'];}export async function listRuntimeArtifacts(_0x67d122,_0x1e9585){const _0x25e9a9=a76_0x17ce,_0x5ce19c=new URLSearchParams({'appCode':_0x67d122});if(_0x1e9585?.[_0x25e9a9(0xd0)])_0x5ce19c[_0x25e9a9(0x129)](_0x25e9a9(0xd0),_0x1e9585['artifactType']);if(_0x1e9585?.[_0x25e9a9(0x113)])_0x5ce19c['set'](_0x25e9a9(0x113),_0x1e9585['source']);if(_0x1e9585?.[_0x25e9a9(0x143)]!==undefined)_0x5ce19c[_0x25e9a9(0x129)]('favorite',String(_0x1e9585[_0x25e9a9(0x143)]));const _0x3bc105=await apiRequest(_0x25e9a9(0x141)+_0x5ce19c['toString']());return Array[_0x25e9a9(0x111)](_0x3bc105['data'])?_0x3bc105[_0x25e9a9(0x151)]:[];}export async function getRuntimeArtifact(_0x196d11,_0x28e1bb){const _0x369e65=a76_0x17ce,_0x38012d=await apiRequest(_0x369e65(0x140)+_0x196d11+_0x369e65(0x14f)+encodeURIComponent(_0x28e1bb));if(!_0x38012d[_0x369e65(0x151)])throw CliErrors['validation'](_0x369e65(0x10c)+_0x196d11);return _0x38012d[_0x369e65(0x151)];}export async function createRuntimeArtifact(_0x39a425,_0x533537){const _0x2c28e6=a76_0x17ce,_0x3dcafd=await apiRequest(_0x2c28e6(0x149),{'method':_0x2c28e6(0x120),'body':{'appCode':_0x39a425,..._0x533537}});return _0x3dcafd[_0x2c28e6(0x151)];}export async function updateRuntimeArtifact(_0xd57cc7,_0x53df58,_0x1fd6a8){const _0x4474a5=a76_0x17ce,_0x8d132d=await apiRequest(_0x4474a5(0x140)+_0xd57cc7+_0x4474a5(0xf7),{'method':_0x4474a5(0x120),'body':{'appCode':_0x53df58,..._0x1fd6a8}});return _0x8d132d[_0x4474a5(0x151)];}export async function listPersonalBffs(_0x1715ff){const _0x43e4cb=a76_0x17ce,_0x277426=await apiRequest(_0x43e4cb(0x13d)+encodeURIComponent(_0x1715ff));return Array['isArray'](_0x277426[_0x43e4cb(0x151)])?_0x277426[_0x43e4cb(0x151)]:[];}export async function getPersonalBff(_0x2bc095,_0x33b567){const _0x409038=a76_0x17ce,_0x2d76ab=await apiRequest(_0x409038(0xd2)+_0x2bc095+_0x409038(0x14f)+encodeURIComponent(_0x33b567));if(!_0x2d76ab['data'])throw CliErrors[_0x409038(0xea)](_0x409038(0xd5)+_0x2bc095);return _0x2d76ab[_0x409038(0x151)];}export async function createPersonalBff(_0x37b742,_0x568652){const _0x587ef6=a76_0x17ce,_0x55afa3=await apiRequest(_0x587ef6(0xed),{'method':_0x587ef6(0x120),'body':{'appCode':_0x37b742,..._0x568652}});return _0x55afa3[_0x587ef6(0x151)];}export async function updatePersonalBff(_0x5d6c77,_0x5effb9,_0x33e8cb){const _0x30daf3=a76_0x17ce,_0x36a73c=await apiRequest(_0x30daf3(0xd2)+_0x5d6c77+_0x30daf3(0xf7),{'method':'POST','body':{'appCode':_0x5effb9,..._0x33e8cb}});return _0x36a73c[_0x30daf3(0x151)];}export async function executePersonalBff(_0x43bb46,_0x30f7ed,_0x628493){const _0x5ac230=a76_0x17ce,_0x3b6536=await apiRequest(_0x5ac230(0xd2)+_0x43bb46+_0x5ac230(0x117)+encodeURIComponent(_0x30f7ed),{'method':_0x5ac230(0x120),'body':_0x628493});return _0x3b6536[_0x5ac230(0x151)];}export async function listPersonalKnowledgeBaseItems(_0x52cafa){const _0x5cf409=a76_0x17ce,_0x485065=await apiRequest('/client/knowledge-base/personal/list?appCode='+encodeURIComponent(_0x52cafa));return Array[_0x5cf409(0x111)](_0x485065[_0x5cf409(0x151)])?_0x485065[_0x5cf409(0x151)]:[];}export async function getPersonalKnowledgeBaseItem(_0x5e8f0b,_0x3379f6){const _0x3b6f66=a76_0x17ce,_0x1caceb=await apiRequest(_0x3b6f66(0xfb)+_0x5e8f0b+_0x3b6f66(0x14f)+encodeURIComponent(_0x3379f6));if(!_0x1caceb[_0x3b6f66(0x151)])throw CliErrors[_0x3b6f66(0xea)](_0x3b6f66(0xf8)+_0x5e8f0b);return _0x1caceb[_0x3b6f66(0x151)];}export async function createPersonalKnowledgeBaseItem(_0x5e6b89,_0x2e5b4a){const _0x12b1db=a76_0x17ce,_0x38c59e=await apiRequest(_0x12b1db(0xe4),{'method':_0x12b1db(0x120),'body':{'appCode':_0x5e6b89,..._0x2e5b4a}});return _0x38c59e[_0x12b1db(0x151)];}export async function updatePersonalKnowledgeBaseItem(_0x4bc45a,_0x20b036,_0x4f2d09){const _0x508b06=a76_0x17ce,_0x771393=await apiRequest(_0x508b06(0xfb)+_0x4bc45a+_0x508b06(0xf7),{'method':_0x508b06(0x120),'body':{'appCode':_0x20b036,..._0x4f2d09}});return _0x771393['data'];}export async function searchKnowledgeBase(_0x22eee9,_0x2160b4){const _0x2d6376=a76_0x17ce,_0x5d0f05=await apiRequest(_0x2d6376(0x142),{'method':'POST','body':{'appCode':_0x22eee9,'query':_0x2160b4['query'],..._0x2160b4['topK']!==undefined?{'topK':_0x2160b4[_0x2d6376(0x10a)]}:{}}});return Array[_0x2d6376(0x111)](_0x5d0f05[_0x2d6376(0x151)])?_0x5d0f05[_0x2d6376(0x151)]:[];}export async function getRuntimeSkillByCode(_0x3904db,_0x2ddba9){const _0x3dc210=a76_0x17ce,_0x46b538=await skillHubJsonRequest(_0x3dc210(0xeb)+encodeURIComponent(_0x3904db)+'/'+encodeURIComponent(_0x2ddba9),{'allowNotFound':!![]});return _0x46b538?skillHubRuntimeDetailToRuntimeSkill(_0x46b538):undefined;}export async function listRuntimeSkills(_0x1708ba){const _0x541ae2=a76_0x17ce,_0x5c961f=await skillHubJsonRequest('/api/runtime/v1/namespaces/'+encodeURIComponent(_0x1708ba[_0x541ae2(0x104)])+_0x541ae2(0xf3),{'query':{'page':0x0,'size':0xc8}});return normalizeSkillHubRuntimeListResponse(_0x1708ba[_0x541ae2(0x104)],_0x5c961f,_0x1708ba[_0x541ae2(0x124)]??'all',_0x1708ba[_0x541ae2(0x145)]);}export async function listPersonalRuntimeSkills(_0x4cdd97){const _0x22531c=a76_0x17ce;return(await listRuntimeSkills({'appCode':_0x4cdd97,'scope':_0x22531c(0xbc)}))[_0x22531c(0xbc)];}export async function listCompanyRuntimeSkills(_0x912db3){const _0xadba2c=a76_0x17ce;return(await listRuntimeSkills({'appCode':_0x912db3,'scope':_0xadba2c(0x138)}))[_0xadba2c(0x138)];}export async function listVisibleRuntimeSkills(_0x568000){const _0xd1daf2=a76_0x17ce;return(await listRuntimeSkills({'appCode':_0x568000,'scope':_0xd1daf2(0x11b)}))['effective'];}export async function createPersonalRuntimeSkill(_0x54a3f3,_0x410571,_0x1cec7a={}){const _0x1baa71=a76_0x17ce;return publishRuntimeSkill(_0x54a3f3,_0x410571,{'visibility':_0x1baa71(0xd4),'confirmWarnings':_0x1cec7a[_0x1baa71(0x110)]});}export async function updatePersonalRuntimeSkill(_0x47a29e,_0x3a5d6b,_0x24e668,_0x373e01={}){const _0x76c5dc=a76_0x17ce;return publishRuntimeSkill(_0x3a5d6b,{..._0x24e668,'skillCode':_0x24e668[_0x76c5dc(0x12f)]??_0x47a29e},{'visibility':_0x76c5dc(0xd4),'confirmWarnings':_0x373e01[_0x76c5dc(0x110)]});}export async function publishCompanyRuntimeSkill(_0x2c9b2c,_0x387b9f,_0x2a5bb0={}){const _0x331c66=a76_0x17ce;return publishRuntimeSkill(_0x2c9b2c,_0x387b9f,{'visibility':_0x331c66(0x136),'confirmWarnings':_0x2a5bb0[_0x331c66(0x110)]});}export async function validateRuntimeSkillPublish(_0xa00aea,_0x730320,_0x27f697){const _0x52a283=a76_0x17ce,_0x42ff9d=buildRuntimeSkillPublishForm(_0x730320,_0x27f697[_0x52a283(0xee)]),_0x90db97=await skillHubJsonRequest(_0x52a283(0xbf)+encodeURIComponent(_0xa00aea)+'/publish/validate',{'method':_0x52a283(0x120),'body':_0x42ff9d});return{'valid':_0x90db97[_0x52a283(0x11a)]===!![],'errors':Array[_0x52a283(0x111)](_0x90db97[_0x52a283(0xc1)])?_0x90db97['errors']:[],'warnings':Array[_0x52a283(0x111)](_0x90db97[_0x52a283(0xec)])?_0x90db97[_0x52a283(0xec)]:[],'resolvedSlug':_0x90db97[_0x52a283(0xcf)],'resolvedVersion':_0x90db97[_0x52a283(0x118)]};}export async function downloadRuntimeSkillPackage(_0x11b1d2,_0x333f7b,_0x5ec99c,_0x598e2a){const _0x575f2b=a76_0x17ce;void _0x11b1d2;const _0x5a58f8=_0x598e2a?_0x575f2b(0xbf)+encodeURIComponent(_0x5ec99c)+'/'+encodeURIComponent(_0x333f7b)+_0x575f2b(0x144)+encodeURIComponent(_0x598e2a)+'/download':'/api/cli/v1/skills/'+encodeURIComponent(_0x5ec99c)+'/'+encodeURIComponent(_0x333f7b)+_0x575f2b(0xfc);return skillHubBinaryRequest(_0x5a58f8);}async function publishRuntimeSkill(_0xa319e0,_0x4a8a5d,_0x573865){const _0x14fa2f=a76_0x17ce,_0x14d083=buildRuntimeSkillPublishForm(_0x4a8a5d,_0x573865[_0x14fa2f(0xee)]),_0x1824bc=await skillHubJsonRequest('/api/cli/v1/skills/'+encodeURIComponent(_0xa319e0)+'/publish',{'method':_0x14fa2f(0x120),'query':{'confirmWarnings':_0x573865['confirmWarnings']===!![]?!![]:undefined},'body':_0x14d083});return{'appCode':_0x1824bc[_0x14fa2f(0x12d)]??_0xa319e0,'skillCode':_0x1824bc['slug']??_0x4a8a5d[_0x14fa2f(0x12f)]??'','skillName':_0x4a8a5d[_0x14fa2f(0xd3)]??_0x1824bc['slug']??_0x4a8a5d['skillCode'],'description':_0x4a8a5d[_0x14fa2f(0x112)],'scope':skillHubVisibilityToScope(_0x1824bc[_0x14fa2f(0xee)]??_0x573865[_0x14fa2f(0xee)])??_0x14fa2f(0xbc),'version':_0x1824bc[_0x14fa2f(0x109)]??_0x4a8a5d['version'],'tags':_0x4a8a5d[_0x14fa2f(0xcb)],'content':_0x4a8a5d[_0x14fa2f(0x152)]};}function buildRuntimeSkillPublishForm(_0x44a7b7,_0x17682d){const _0x345181=a76_0x17ce,_0x301f78=new FormData();return _0x301f78[_0x345181(0x129)](_0x345181(0x121),runtimeSkillPackageFile(_0x44a7b7)),_0x44a7b7['skillName']?.[_0x345181(0xb9)]()&&_0x301f78[_0x345181(0x129)]('displayName',_0x44a7b7[_0x345181(0xd3)][_0x345181(0xb9)]()),_0x301f78[_0x345181(0x129)](_0x345181(0xee),_0x17682d),_0x301f78;}function runtimeSkillPackageFile(_0xc0252c){const _0x37066d=a76_0x17ce;if(!_0xc0252c[_0x37066d(0x131)])throw CliErrors[_0x37066d(0xea)](_0x37066d(0x155));const _0x4c4c19=Buffer[_0x37066d(0xf6)](_0xc0252c[_0x37066d(0x131)],_0x37066d(0xc5)),_0x384d45=new Blob([_0x4c4c19],{'type':'application/zip'}),_0x3472e5=(_0xc0252c['skillCode']||_0x37066d(0x128))+_0x37066d(0x13c);if(typeof File!=='undefined')return new File([_0x384d45],_0x3472e5,{'type':_0x37066d(0x14c)});return _0x384d45;}function normalizeSkillHubRuntimeListResponse(_0x7d963f,_0x6284a6,_0x19aea1,_0x5ab9f6){const _0x354798=a76_0x17ce,_0x17ea6d=Array[_0x354798(0x111)](_0x6284a6)?_0x6284a6:Array[_0x354798(0x111)](_0x6284a6?.[_0x354798(0x126)])?_0x6284a6[_0x354798(0x126)]:[],_0x79a6c6=_0x5ab9f6?.['trim'](),_0x4a3497=_0x17ea6d[_0x354798(0x115)](_0x43b378=>!_0x79a6c6||_0x43b378[_0x354798(0xc0)]===_0x79a6c6)['map'](skillHubRuntimeItemToRuntimeSkill)['filter'](_0x4b50a6=>Boolean(_0x4b50a6)),_0x1e62c8=_0x4a3497[_0x354798(0x115)](_0x1dc079=>_0x1dc079[_0x354798(0x124)]==='personal'),_0x4fe00e=_0x4a3497[_0x354798(0x115)](_0x3f1589=>_0x3f1589[_0x354798(0x124)]===_0x354798(0x138));return{'appCode':_0x7d963f,'personal':_0x19aea1===_0x354798(0x138)?[]:_0x1e62c8,'company':_0x19aea1===_0x354798(0xbc)?[]:_0x4fe00e,'effective':buildEffectiveRuntimeSkills(_0x1e62c8,_0x4fe00e,_0x19aea1)};}function skillHubRuntimeItemToRuntimeSkill(_0x1d95fb){const _0x3dcb3c=a76_0x17ce,_0x337de8=_0x1d95fb[_0x3dcb3c(0xc0)]?.['trim'](),_0x2b1411=skillHubVisibilityToScope(_0x1d95fb[_0x3dcb3c(0xee)]);if(!_0x337de8||!_0x2b1411)return undefined;return{'id':_0x1d95fb['id'],'appCode':_0x1d95fb['namespace'],'skillCode':_0x337de8,'skillName':_0x1d95fb['displayName']??_0x337de8,'description':_0x1d95fb['summary'],'scope':_0x2b1411,'version':skillHubRuntimeItemVersion(_0x1d95fb),'status':_0x1d95fb[_0x3dcb3c(0xe9)]};}function skillHubRuntimeDetailToRuntimeSkill(_0x53110a){const _0x1d3058=a76_0x17ce,_0x5c6803=_0x53110a['slug']?.[_0x1d3058(0xb9)]();if(!_0x5c6803)return undefined;return{'id':_0x53110a['id'],'appCode':_0x53110a[_0x1d3058(0x12d)],'skillCode':_0x5c6803,'skillName':_0x53110a[_0x1d3058(0xbe)]??_0x5c6803,'description':_0x53110a['summary'],'example':_0x53110a[_0x1d3058(0x137)],'scope':skillHubVisibilityToScope(_0x53110a[_0x1d3058(0xee)])??_0x53110a[_0x1d3058(0xee)]?.[_0x1d3058(0x10f)](),'version':skillHubRuntimeItemVersion(_0x53110a),'status':_0x53110a[_0x1d3058(0xe9)]};}function a76_0x17ce(_0x1bb789,_0x1e87d1){_0x1bb789=_0x1bb789-0xb9;const _0x5746dd=a76_0x5746();let _0x17ce7c=_0x5746dd[_0x1bb789];return _0x17ce7c;}function skillHubVisibilityToScope(_0xd60ba7){const _0x41995f=a76_0x17ce;if(_0xd60ba7==='PRIVATE')return _0x41995f(0xbc);if(_0xd60ba7===_0x41995f(0x136))return _0x41995f(0x138);return undefined;}function skillHubRuntimeItemVersion(_0x3d7d4d){const _0x46f06f=a76_0x17ce;return _0x3d7d4d[_0x46f06f(0x13a)]?.[_0x46f06f(0x109)]??_0x3d7d4d['headlineVersion']?.[_0x46f06f(0x109)]??_0x3d7d4d[_0x46f06f(0xc7)]?.[_0x46f06f(0x109)];}function buildEffectiveRuntimeSkills(_0x283762,_0x3859f9,_0x1cde89){const _0x59a07e=a76_0x17ce;if(_0x1cde89===_0x59a07e(0xbc))return _0x283762;if(_0x1cde89===_0x59a07e(0x138))return _0x3859f9;const _0x273c47=new Map();for(const _0x3b9444 of _0x3859f9){_0x273c47[_0x59a07e(0x129)](_0x3b9444[_0x59a07e(0x12f)],_0x3b9444);}for(const _0x221a82 of _0x283762){_0x273c47['set'](_0x221a82['skillCode'],_0x221a82);}return Array[_0x59a07e(0xf6)](_0x273c47['values']());}function normalizeRuntimeSkillListResponse(_0xbe4a54,_0x62b01d){const _0x388435=a76_0x17ce;if(Array['isArray'](_0x62b01d)){const _0x135bef=_0x62b01d['filter'](_0x314c00=>_0x314c00['scope']===_0x388435(0xbc)),_0x535df8=_0x62b01d[_0x388435(0x115)](_0x35d06f=>_0x35d06f[_0x388435(0x124)]===_0x388435(0x138));return{'appCode':_0xbe4a54,'personal':_0x135bef,'company':_0x535df8,'effective':[..._0x535df8,..._0x135bef]};}return{'appCode':_0x62b01d?.[_0x388435(0x104)]??_0xbe4a54,'personal':Array[_0x388435(0x111)](_0x62b01d?.['personal'])?_0x62b01d[_0x388435(0xbc)]:[],'company':Array[_0x388435(0x111)](_0x62b01d?.[_0x388435(0x138)])?_0x62b01d[_0x388435(0x138)]:[],'effective':Array[_0x388435(0x111)](_0x62b01d?.['effective'])?_0x62b01d['effective']:[]};}
1
+ (function(_0x3a96aa,_0x3351aa){const _0x2a0fc7=a78_0x1a9b,_0xc1babd=_0x3a96aa();while(!![]){try{const _0x54a72d=-parseInt(_0x2a0fc7(0x12d))/0x1+-parseInt(_0x2a0fc7(0xad))/0x2*(-parseInt(_0x2a0fc7(0xbb))/0x3)+parseInt(_0x2a0fc7(0xc8))/0x4*(-parseInt(_0x2a0fc7(0xb0))/0x5)+-parseInt(_0x2a0fc7(0xa2))/0x6*(-parseInt(_0x2a0fc7(0x12a))/0x7)+parseInt(_0x2a0fc7(0xcf))/0x8*(parseInt(_0x2a0fc7(0xf8))/0x9)+-parseInt(_0x2a0fc7(0x129))/0xa+parseInt(_0x2a0fc7(0x125))/0xb*(parseInt(_0x2a0fc7(0xf7))/0xc);if(_0x54a72d===_0x3351aa)break;else _0xc1babd['push'](_0xc1babd['shift']());}catch(_0x8a7799){_0xc1babd['push'](_0xc1babd['shift']());}}}(a78_0x2dbb,0xc8ab4));function a78_0x2dbb(){const _0x5361ac=['Toolbox\x20returned\x20non-JSON\x20response\x20(HTTP\x20','name','/client/knowledge-base/search','errorCode','/skills','function','SkillHub\x20must\x20return\x20the\x20exact\x20SkillVersion\x20fingerprint\x20even\x20when\x20found=false.','string','Invalid\x20app\x20config\x20value:\x20key=','/update','/publish/validate','effective','2876292JhmEor','117pfMChh','download','errorMsg','PRIVATE','msg','description','Invalid\x20Skill\x20diagram\x20response:\x20found\x20diagram\x20has\x20no\x20positive\x20diagramRevision.','publish','Check\x20your\x20credentials\x20and\x20try\x20again.','diagram','items','valid','/client/runtime-bff/personal/create','authRequired','resolvedSlug','packageBase64','application/json','/api/cli/v1/skills/','/schedules','namespace','GET','/versions/','Invalid\x20app\x20list\x20response:\x20missing\x20data.tableData.','values','summary','/client/app/my-apps','/publish','searchParams','newConfigFileName','replace','/execute?appCode=','code','appName','find','API\x20returned\x20non-JSON\x20response\x20(HTTP\x20','text','/validate','type','/client/uploadFile','toLowerCase','Toolbox\x20error\x20code:\x20','arrayBuffer','headers','content','/download','11gVYpft','cursor','sqlCode','json','11266250OwReal','1818831BeLHHY','Invalid\x20login\x20user\x20info\x20response:\x20expected\x20object.','slug','290750uPwaOX','visibility','tags','api-doc-generator','/api/v1/skills/','validation','gmtModified','/client/artifact/','isArray','file','skillCode','trim','/api/harness/apps/','limit','/client/runtime-bff/personal/','isJson','success','functionName','headlineVersion','SkillHub\x20API\x20error:\x20','from','favorite','status','API\x20error:\x20','error','tableData','Invalid\x20Skill\x20diagram\x20response:\x20missing\x20found\x20state.','filter','Toolbox\x20API\x20error:\x20','/client/knowledge-base/personal/list?appCode=','Configure\x20accessKey\x20in\x20','displayName','skillName','Deploy\x20a\x20SkillHub\x20version\x20that\x20returns\x20diagramValidated/diagramBound\x20before\x20publishing\x20with\x20this\x20CLI.','object','30oUtZmh','artifactType','Invalid\x20Skill\x20diagram\x20response:\x20missing\x20canonical\x20sourceFingerprint.','PUT','join','personal','Invalid\x20app\x20list\x20response:\x20expected\x20object\x20or\x20array.','diagramBound','all','ownerPreviewVersion','set','38sYmbEF','stringify','Artifact\x20not\x20found:\x20id=','20YUcclo','scope','topK','abort','source','markdown','SkillHub\x20error\x20code:\x20','message','appCode','sourceFingerprint','/api/node-toolbox/','183261vAXEWm','diagramValidated','found','company','AbortError','signal','POST','/client/ocr','API\x20error\x20code:\x20','Request\x20timeout:\x20','errors','/client/knowledge-base/personal/create','invokeSource','1434856tTqbLy','data','entries','boolean','base64','/client/queryFileUrl','isInteger','599792cTpFAf','SkillHub\x20returned\x20non-JSON\x20response\x20(HTTP\x20','warnings','map','apiError','skill','/run','BFF\x20function\x20not\x20found\x20or\x20inaccessible:\x20appCode=','test','version','/client/knowledge-base/personal/','Download\x20failed:\x20','/diagram','number','SkillHub\x20does\x20not\x20support\x20atomic\x20Skill\x20diagram\x20','confirmWarnings','toString','publishedVersion','Knowledge-base\x20entry\x20not\x20found:\x20id=','undefined','NAMESPACE_ONLY','functions','/api/runtime/v1/namespaces/','DELETE','/client/bff/endpoint/','Personal\x20BFF\x20not\x20found:\x20id=','query',',\x20name='];a78_0x2dbb=function(){return _0x5361ac;};return a78_0x2dbb();}import{readFile}from'node:fs/promises';function a78_0x1a9b(_0x2b1815,_0x5bc8fc){_0x2b1815=_0x2b1815-0x9b;const _0x2dbb7f=a78_0x2dbb();let _0x1a9b1f=_0x2dbb7f[_0x2b1815];return _0x1a9b1f;}import{basename}from'node:path';import{getApiDomain,getRuntimeDomain,getSkillHubDomain}from'../constant/domain.js';import{PRODUCT_CONFIG}from'../constant/product.js';import{CliErrors}from'../errors.js';import{createRateLimitError,readRetryAfter,readRetryAfterSeconds}from'../framework/rate-limit.js';import{extractList}from'../framework/response.js';import{parseLosslessJson}from'../utils/lossless-json.js';let _activeAK;export function setActiveAK(_0x2719b7){_activeAK=_0x2719b7||undefined;}export function clearActiveAK(){_activeAK=undefined;}function firstString(..._0x46d402){const _0x47606f=a78_0x1a9b;for(const _0x175c87 of _0x46d402){if(typeof _0x175c87===_0x47606f(0xf2)&&_0x175c87[_0x47606f(0x138)]())return _0x175c87['trim']();}return undefined;}async function decodeResponseBody(_0x2efdb6){const _0x2c04ae=a78_0x1a9b;if(typeof _0x2efdb6[_0x2c04ae(0x11b)]===_0x2c04ae(0xf0))try{const _0x100048=await _0x2efdb6[_0x2c04ae(0x11b)]();try{return{'isJson':!![],'data':parseLosslessJson(_0x100048),'text':_0x100048};}catch{return{'isJson':![],'text':_0x100048['trim']()||undefined};}}catch{}try{return{'isJson':!![],'data':await _0x2efdb6[_0x2c04ae(0x128)]()};}catch{return{'isJson':![]};}}function throwIfRateLimited(_0x22d52a,_0x5dba5d,_0x38ae75){const _0x94de0=a78_0x1a9b,_0x3d7c09=_0x5dba5d&&typeof _0x5dba5d===_0x94de0(0xa1)?_0x5dba5d:{},_0x5f3819=[_0x3d7c09[_0x94de0(0x143)],_0x3d7c09[_0x94de0(0x117)]][_0x94de0(0x119)](_0x33e14a=>Number(_0x33e14a)===0x1ad),_0x179872=createRateLimitError({'status':_0x22d52a[_0x94de0(0x143)]===0x1ad?_0x22d52a[_0x94de0(0x143)]:_0x5f3819??_0x22d52a[_0x94de0(0x143)],'errorCode':firstString(_0x3d7c09['errorCode'],typeof _0x3d7c09[_0x94de0(0x117)]==='string'?_0x3d7c09['code']:undefined),'message':firstString(_0x3d7c09[_0x94de0(0xfa)],_0x3d7c09[_0x94de0(0xb7)],_0x3d7c09[_0x94de0(0xfc)],_0x38ae75),'retryAfter':readRetryAfter(_0x22d52a[_0x94de0(0x122)])??readRetryAfterSeconds(_0x5dba5d)});if(_0x179872)throw _0x179872;}async function apiRequest(_0x37b9a5,_0x4e3098={}){const _0x442e1b=a78_0x1a9b,{method:method=_0x442e1b(0x10c),body:_0x2c0156,headers:headers={},timeout:timeout=0x7530}=_0x4e3098,_0x53b751=_activeAK,_0x5da425=getRuntimeDomain();if(!_0x53b751)throw CliErrors[_0x442e1b(0x105)]('Configure\x20accessKey\x20in\x20'+PRODUCT_CONFIG['newConfigFileName']+'.');const _0x31cc6b=''+_0x5da425+_0x37b9a5,_0x599e69={'X-User-AK':_0x53b751},_0x19440e=new AbortController(),_0x2fe642=setTimeout(()=>_0x19440e[_0x442e1b(0xb3)](),timeout);try{const _0x58cb60=await fetch(_0x31cc6b,{'method':method,'headers':{'Content-Type':'application/json','X-Invoke-Source':PRODUCT_CONFIG[_0x442e1b(0xc7)],..._0x599e69,...headers},'body':_0x2c0156?JSON[_0x442e1b(0xae)](_0x2c0156):undefined,'signal':_0x19440e[_0x442e1b(0xc0)]}),_0x3e71c8=await decodeResponseBody(_0x58cb60);if(!_0x3e71c8['isJson']){throwIfRateLimited(_0x58cb60,undefined,_0x3e71c8[_0x442e1b(0x11b)]);throw CliErrors[_0x442e1b(0xd3)](_0x442e1b(0x11a)+_0x58cb60[_0x442e1b(0x143)]+')',_0x58cb60[_0x442e1b(0x143)]>=0x190?_0x442e1b(0x100):undefined);}const _0x34164f=_0x3e71c8[_0x442e1b(0xc9)];throwIfRateLimited(_0x58cb60,_0x34164f);if(!_0x58cb60['ok']||_0x34164f[_0x442e1b(0x13d)]===![])throw CliErrors[_0x442e1b(0xd3)](_0x34164f[_0x442e1b(0xfa)]||_0x34164f[_0x442e1b(0xb7)]||_0x442e1b(0x144)+_0x58cb60[_0x442e1b(0x143)],_0x34164f[_0x442e1b(0xee)]?_0x442e1b(0xc3)+_0x34164f[_0x442e1b(0xee)]:undefined);return _0x34164f;}catch(_0x19fc60){if(_0x19fc60 instanceof Error&&_0x19fc60[_0x442e1b(0xec)]==='AbortError')throw CliErrors[_0x442e1b(0xd3)](_0x442e1b(0xc4)+_0x31cc6b);throw _0x19fc60;}finally{clearTimeout(_0x2fe642);}}async function apiBinaryRequest(_0x25544b,_0x10c7c7={}){const _0x17fe8c=a78_0x1a9b,{method:method=_0x17fe8c(0x10c),headers:headers={},timeout:timeout=0x7530}=_0x10c7c7,_0x3e4210=_activeAK,_0x149363=getRuntimeDomain();if(!_0x3e4210)throw CliErrors[_0x17fe8c(0x105)]('Configure\x20accessKey\x20in\x20'+PRODUCT_CONFIG['newConfigFileName']+'.');const _0x384c48=''+_0x149363+_0x25544b,_0x42c649=new AbortController(),_0x87eb0c=setTimeout(()=>_0x42c649[_0x17fe8c(0xb3)](),timeout);try{const _0x2f0256=await fetch(_0x384c48,{'method':method,'headers':{'X-Invoke-Source':PRODUCT_CONFIG[_0x17fe8c(0xc7)],'X-User-AK':_0x3e4210,...headers},'signal':_0x42c649[_0x17fe8c(0xc0)]});if(!_0x2f0256['ok']){const _0x284905=await decodeResponseBody(_0x2f0256),_0x510764=_0x284905[_0x17fe8c(0xc9)]&&typeof _0x284905[_0x17fe8c(0xc9)]===_0x17fe8c(0xa1)?_0x284905[_0x17fe8c(0xc9)]:{},_0x380234=firstString(_0x510764[_0x17fe8c(0xfa)],_0x510764[_0x17fe8c(0xb7)],_0x510764['errorCode'],_0x284905[_0x17fe8c(0x11b)]);throwIfRateLimited(_0x2f0256,_0x284905[_0x17fe8c(0xc9)],_0x380234);throw CliErrors['apiError'](_0x380234||'API\x20error:\x20'+_0x2f0256['status'],_0x17fe8c(0xda)+_0x384c48);}return Buffer[_0x17fe8c(0x141)](await _0x2f0256['arrayBuffer']());}catch(_0x4d13d3){if(_0x4d13d3 instanceof Error&&_0x4d13d3['name']==='AbortError')throw CliErrors[_0x17fe8c(0xd3)](_0x17fe8c(0xc4)+_0x384c48);throw _0x4d13d3;}finally{clearTimeout(_0x87eb0c);}}async function apiFormRequest(_0x32c831,_0x533778,_0x2fe515={}){const _0x595c82=a78_0x1a9b,{timeout:timeout=0x7530}=_0x2fe515,_0x4eeba3=_activeAK,_0x2cac31=getRuntimeDomain();if(!_0x4eeba3)throw CliErrors['authRequired'](_0x595c82(0x9d)+PRODUCT_CONFIG[_0x595c82(0x114)]+'.');const _0x38d166=''+_0x2cac31+_0x32c831,_0x1404d1=new AbortController(),_0xbde8b0=setTimeout(()=>_0x1404d1['abort'](),timeout);try{const _0x57ed59=await fetch(_0x38d166,{'method':_0x595c82(0xc1),'headers':{'X-Invoke-Source':PRODUCT_CONFIG[_0x595c82(0xc7)],'X-User-AK':_0x4eeba3},'body':_0x533778,'signal':_0x1404d1['signal']}),_0x2c8933=await decodeResponseBody(_0x57ed59);if(!_0x2c8933[_0x595c82(0x13c)]){throwIfRateLimited(_0x57ed59,undefined,_0x2c8933['text']);throw CliErrors[_0x595c82(0xd3)](_0x595c82(0x11a)+_0x57ed59[_0x595c82(0x143)]+')',_0x57ed59[_0x595c82(0x143)]>=0x190?_0x595c82(0x100):undefined);}const _0x3ad5ed=_0x2c8933[_0x595c82(0xc9)];throwIfRateLimited(_0x57ed59,_0x3ad5ed);if(!_0x57ed59['ok']||_0x3ad5ed[_0x595c82(0x13d)]===![])throw CliErrors[_0x595c82(0xd3)](_0x3ad5ed['errorMsg']||_0x3ad5ed[_0x595c82(0xb7)]||_0x595c82(0x144)+_0x57ed59[_0x595c82(0x143)],_0x3ad5ed[_0x595c82(0xee)]?'API\x20error\x20code:\x20'+_0x3ad5ed[_0x595c82(0xee)]:undefined);return _0x3ad5ed;}catch(_0x5cd947){if(_0x5cd947 instanceof Error&&_0x5cd947[_0x595c82(0xec)]===_0x595c82(0xbf))throw CliErrors['apiError'](_0x595c82(0xc4)+_0x38d166);throw _0x5cd947;}finally{clearTimeout(_0xbde8b0);}}async function toolboxRequest(_0x56e14b,_0x38b8e1,_0x431ca3={}){const _0x189fb8=a78_0x1a9b,{method:method=_0x189fb8(0x10c),headers:headers={},timeout:timeout=0x7530}=_0x431ca3,_0x345e8b=_activeAK;if(!_0x345e8b)throw CliErrors[_0x189fb8(0x105)]('Configure\x20accessKey\x20in\x20'+PRODUCT_CONFIG['newConfigFileName']+'.');const _0x2cc86b=getApiDomain()[_0x189fb8(0x115)](/\/$/,''),_0x166b5c=new URL(_0x56e14b,_0x2cc86b+_0x189fb8(0xba));if(_0x38b8e1)for(const [_0x21b33f,_0xd68cad]of Object[_0x189fb8(0xca)](_0x38b8e1)){_0xd68cad!==undefined&&_0xd68cad!==null&&_0x166b5c[_0x189fb8(0x113)][_0x189fb8(0xac)](_0x21b33f,String(_0xd68cad));}const _0x54ce73=new AbortController(),_0x3ecd7f=setTimeout(()=>_0x54ce73[_0x189fb8(0xb3)](),timeout);try{const _0x3468cd=await fetch(_0x166b5c,{'method':method,'headers':{'Content-Type':_0x189fb8(0x108),'X-Invoke-Source':PRODUCT_CONFIG['invokeSource'],'X-User-AK':_0x345e8b,...headers},'signal':_0x54ce73['signal']}),_0x2b7371=await decodeResponseBody(_0x3468cd);if(!_0x2b7371['isJson']){throwIfRateLimited(_0x3468cd,undefined,_0x2b7371[_0x189fb8(0x11b)]);throw CliErrors[_0x189fb8(0xd3)](_0x189fb8(0xeb)+_0x3468cd[_0x189fb8(0x143)]+')',_0x3468cd[_0x189fb8(0x143)]>=0x190?_0x189fb8(0x100):undefined);}const _0xe2d664=_0x2b7371[_0x189fb8(0xc9)];throwIfRateLimited(_0x3468cd,_0xe2d664);if(!_0x3468cd['ok']){const _0xcf8765=_0xe2d664&&typeof _0xe2d664===_0x189fb8(0xa1)?_0xe2d664:{};throw CliErrors[_0x189fb8(0xd3)](_0xcf8765['errorMsg']||_0xcf8765[_0x189fb8(0xb7)]||_0x189fb8(0x9b)+_0x3468cd[_0x189fb8(0x143)],_0xcf8765[_0x189fb8(0xee)]?_0x189fb8(0x120)+_0xcf8765[_0x189fb8(0xee)]:undefined);}if(_0xe2d664&&typeof _0xe2d664===_0x189fb8(0xa1)&&_0x189fb8(0x13d)in _0xe2d664&&typeof _0xe2d664[_0x189fb8(0x13d)]===_0x189fb8(0xcb)){const _0x2b6768=_0xe2d664;if(!_0x2b6768[_0x189fb8(0x13d)])throw CliErrors['apiError'](_0x2b6768[_0x189fb8(0xfa)]||_0x2b6768[_0x189fb8(0xb7)]||'Toolbox\x20API\x20error',_0x2b6768['errorCode']?_0x189fb8(0x120)+_0x2b6768[_0x189fb8(0xee)]:undefined);return _0x2b6768['data'];}return _0xe2d664;}catch(_0xe90ccc){if(_0xe90ccc instanceof Error&&_0xe90ccc['name']===_0x189fb8(0xbf))throw CliErrors['apiError'](_0x189fb8(0xc4)+_0x166b5c['toString']());throw _0xe90ccc;}finally{clearTimeout(_0x3ecd7f);}}async function skillHubJsonRequest(_0x9224ad,_0x3aca51={}){const _0x446ccc=a78_0x1a9b,{method:method=_0x446ccc(0x10c),query:_0x36693f,body:_0x5e4559,headers:headers={},timeout:timeout=0x7530,allowNotFound:allowNotFound=![]}=_0x3aca51,_0x45560c=_activeAK;if(!_0x45560c)throw CliErrors[_0x446ccc(0x105)](_0x446ccc(0x9d)+PRODUCT_CONFIG[_0x446ccc(0x114)]+'.');const _0x168eda=getSkillHubDomain()[_0x446ccc(0x115)](/\/$/,''),_0x33f304=new URL(_0x9224ad,_0x168eda+'/');if(_0x36693f)for(const [_0x24ba20,_0x20ce66]of Object[_0x446ccc(0xca)](_0x36693f)){_0x20ce66!==undefined&&_0x20ce66!==null&&_0x33f304['searchParams'][_0x446ccc(0xac)](_0x24ba20,String(_0x20ce66));}const _0x4739e2=new AbortController(),_0x5dba6f=setTimeout(()=>_0x4739e2[_0x446ccc(0xb3)](),timeout);try{const _0x5a4c83=await fetch(_0x33f304[_0x446ccc(0xdf)](),{'method':method,'headers':{'Accept':_0x446ccc(0x108),'X-Invoke-Source':PRODUCT_CONFIG[_0x446ccc(0xc7)],'X-User-AK':_0x45560c,...headers},'body':_0x5e4559,'signal':_0x4739e2[_0x446ccc(0xc0)]}),_0x58b6e2=await decodeResponseBody(_0x5a4c83);if(!_0x58b6e2[_0x446ccc(0x13c)]){if(allowNotFound&&_0x5a4c83['status']===0x194)return undefined;throwIfRateLimited(_0x5a4c83,undefined,_0x58b6e2['text']);throw CliErrors[_0x446ccc(0xd3)](_0x446ccc(0xd0)+_0x5a4c83[_0x446ccc(0x143)]+')',_0x5a4c83[_0x446ccc(0x143)]>=0x190?_0x446ccc(0x100):undefined);}const _0x295a0b=_0x58b6e2[_0x446ccc(0xc9)];throwIfRateLimited(_0x5a4c83,_0x295a0b);if(allowNotFound&&isSkillHubNotFoundResponse(_0x5a4c83[_0x446ccc(0x143)],_0x295a0b))return undefined;const _0xdb1dcf=!_0x5a4c83['ok']||_0x295a0b?.[_0x446ccc(0x13d)]===![]||typeof _0x295a0b?.[_0x446ccc(0x117)]===_0x446ccc(0xdc)&&_0x295a0b[_0x446ccc(0x117)]>=0x190;if(_0xdb1dcf)throw CliErrors['apiError'](_0x295a0b?.[_0x446ccc(0xfa)]||_0x295a0b?.[_0x446ccc(0xb7)]||_0x295a0b?.[_0x446ccc(0xfc)]||_0x446ccc(0x140)+_0x5a4c83[_0x446ccc(0x143)],_0x295a0b?.['errorCode']?_0x446ccc(0xb6)+_0x295a0b[_0x446ccc(0xee)]:undefined);return _0x295a0b?.[_0x446ccc(0xc9)]??_0x295a0b;}catch(_0xe6461e){if(_0xe6461e instanceof Error&&_0xe6461e[_0x446ccc(0xec)]==='AbortError')throw CliErrors[_0x446ccc(0xd3)](_0x446ccc(0xc4)+_0x33f304[_0x446ccc(0xdf)]());throw _0xe6461e;}finally{clearTimeout(_0x5dba6f);}}function isSkillHubNotFoundResponse(_0x5378e9,_0x254fef){const _0x57fe90=a78_0x1a9b;if(_0x5378e9===0x194||_0x254fef?.['code']===0x194)return!![];if(_0x5378e9!==0x190&&_0x254fef?.['code']!==0x190)return![];const _0x49d4d9=[_0x254fef?.['msg'],_0x254fef?.[_0x57fe90(0xb7)],_0x254fef?.[_0x57fe90(0xfa)],_0x254fef?.[_0x57fe90(0x145)]][_0x57fe90(0x148)](_0x9b515f=>typeof _0x9b515f===_0x57fe90(0xf2))[_0x57fe90(0xa6)]('\x20');return/skill not found\b/i[_0x57fe90(0xd7)](_0x49d4d9);}async function skillHubBinaryRequest(_0xe208e2,_0x49bd1b={}){const _0xe3c5c3=a78_0x1a9b,{query:_0x4c630d,headers:headers={},timeout:timeout=0x7530}=_0x49bd1b,_0x1da6a8=_activeAK;if(!_0x1da6a8)throw CliErrors[_0xe3c5c3(0x105)](_0xe3c5c3(0x9d)+PRODUCT_CONFIG[_0xe3c5c3(0x114)]+'.');const _0x50e4af=getSkillHubDomain()[_0xe3c5c3(0x115)](/\/$/,''),_0x24f0b8=new URL(_0xe208e2,_0x50e4af+'/');if(_0x4c630d)for(const [_0x486564,_0x59c003]of Object['entries'](_0x4c630d)){_0x59c003!==undefined&&_0x59c003!==null&&_0x24f0b8[_0xe3c5c3(0x113)]['set'](_0x486564,String(_0x59c003));}const _0x1e79f9=new AbortController(),_0x41998b=setTimeout(()=>_0x1e79f9['abort'](),timeout);try{const _0x13a226=await fetch(_0x24f0b8['toString'](),{'method':_0xe3c5c3(0x10c),'headers':{'Accept':'application/octet-stream','X-Invoke-Source':PRODUCT_CONFIG['invokeSource'],'X-User-AK':_0x1da6a8,...headers},'signal':_0x1e79f9[_0xe3c5c3(0xc0)]});if(!_0x13a226['ok']){const _0x2ca2bf=await decodeResponseBody(_0x13a226),_0x21657c=_0x2ca2bf['data']&&typeof _0x2ca2bf['data']===_0xe3c5c3(0xa1)?_0x2ca2bf[_0xe3c5c3(0xc9)]:{},_0x158e61=firstString(_0x21657c['errorMsg'],_0x21657c['message'],_0x21657c['msg'],_0x21657c[_0xe3c5c3(0xee)],_0x2ca2bf[_0xe3c5c3(0x11b)]);throwIfRateLimited(_0x13a226,_0x2ca2bf[_0xe3c5c3(0xc9)],_0x158e61);throw CliErrors[_0xe3c5c3(0xd3)](_0x158e61||'SkillHub\x20API\x20error:\x20'+_0x13a226['status'],'Download\x20failed:\x20'+_0x24f0b8[_0xe3c5c3(0xdf)]());}return Buffer[_0xe3c5c3(0x141)](await _0x13a226[_0xe3c5c3(0x121)]());}catch(_0x405ede){if(_0x405ede instanceof Error&&_0x405ede['name']===_0xe3c5c3(0xbf))throw CliErrors[_0xe3c5c3(0xd3)](_0xe3c5c3(0xc4)+_0x24f0b8[_0xe3c5c3(0xdf)]());throw _0x405ede;}finally{clearTimeout(_0x41998b);}}export async function getBffEndpointContract(_0x30a3a0,_0x136108){const _0x8258dc=a78_0x1a9b;if(_0x136108===_0x8258dc(0xe4))throw CliErrors[_0x8258dc(0x132)](_0x8258dc(0xd6)+_0x30a3a0+_0x8258dc(0xea)+_0x136108);const _0x1e44cd=await apiRequest(_0x8258dc(0xe7)+encodeURIComponent(_0x30a3a0)+'/'+encodeURIComponent(_0x136108)),_0x3de547=_0x1e44cd[_0x8258dc(0xc9)];if(!_0x3de547||typeof _0x3de547!==_0x8258dc(0xa1)||Array[_0x8258dc(0x135)](_0x3de547)||_0x3de547[_0x8258dc(0xb8)]!==_0x30a3a0||_0x3de547[_0x8258dc(0x13e)]!==_0x136108)throw CliErrors[_0x8258dc(0x132)]('BFF\x20function\x20not\x20found\x20or\x20inaccessible:\x20appCode='+_0x30a3a0+',\x20name='+_0x136108);return{'appCode':_0x3de547[_0x8258dc(0xb8)],'functionName':_0x3de547[_0x8258dc(0x13e)],'description':_0x3de547[_0x8258dc(0xfd)],'version':_0x3de547[_0x8258dc(0xd8)],'gmtModified':_0x3de547[_0x8258dc(0x133)]};}export async function getSqlQueryInfo(_0x8b1ed4,_0x43e83e){const _0x44e731=a78_0x1a9b,_0x1b0bbd=await apiRequest('/client/sql/query',{'method':'POST','body':{'appCode':_0x8b1ed4,'currentPage':0x1,'pageSize':0x1,'sqlCode':_0x43e83e}}),_0x17eba0=_0x1b0bbd[_0x44e731(0xc9)],_0x34db44=_0x17eba0&&typeof _0x17eba0===_0x44e731(0xa1)&&_0x44e731(0x146)in _0x17eba0?_0x17eba0[_0x44e731(0x146)]?.[0x0]:_0x17eba0&&typeof _0x17eba0===_0x44e731(0xa1)&&_0x44e731(0x127)in _0x17eba0?_0x17eba0:undefined;if(!_0x34db44)throw CliErrors[_0x44e731(0x132)]('SQL\x20query\x20not\x20found:\x20'+_0x43e83e);return _0x34db44;}function isRemoteAppItem(_0x593e93){const _0x3a6105=a78_0x1a9b;return!!_0x593e93&&typeof _0x593e93==='object'&&typeof _0x593e93['appCode']==='string'&&typeof _0x593e93[_0x3a6105(0x118)]===_0x3a6105(0xf2);}function extractRemoteAppItems(_0x192fc6){const _0xf3cc6a=a78_0x1a9b;if(Array['isArray'](_0x192fc6))return _0x192fc6[_0xf3cc6a(0x148)](isRemoteAppItem);if(!_0x192fc6||typeof _0x192fc6!=='object')throw CliErrors[_0xf3cc6a(0xd3)](_0xf3cc6a(0xa8));const _0x3156f5=_0x192fc6;if(Array[_0xf3cc6a(0x135)](_0x3156f5[_0xf3cc6a(0x146)]))return _0x3156f5[_0xf3cc6a(0x146)][_0xf3cc6a(0x148)](isRemoteAppItem);if(_0x3156f5[_0xf3cc6a(0xc9)]&&typeof _0x3156f5[_0xf3cc6a(0xc9)]===_0xf3cc6a(0xa1)){const _0x37ed87=_0x3156f5['data'];if(Array[_0xf3cc6a(0x135)](_0x37ed87['tableData']))return _0x37ed87[_0xf3cc6a(0x146)][_0xf3cc6a(0x148)](isRemoteAppItem);}throw CliErrors[_0xf3cc6a(0xd3)](_0xf3cc6a(0x10e));}export async function getMyApps(){const _0x29fc54=a78_0x1a9b,_0x16b687=await apiRequest(_0x29fc54(0x111));return extractRemoteAppItems(_0x16b687[_0x29fc54(0xc9)]);}export async function getLoginUserInfo(){const _0x28e8a3=a78_0x1a9b,_0x564fa8=await apiRequest('/client/user/loginUserInfo');if(!_0x564fa8[_0x28e8a3(0xc9)]||typeof _0x564fa8['data']!==_0x28e8a3(0xa1)||Array['isArray'](_0x564fa8['data']))throw CliErrors[_0x28e8a3(0xd3)](_0x28e8a3(0x12b));return _0x564fa8[_0x28e8a3(0xc9)];}function runtimeSchedulePath(_0x436a7f,_0x131c99=''){const _0x2fa764=a78_0x1a9b;return _0x2fa764(0x139)+encodeURIComponent(_0x436a7f)+_0x2fa764(0x10a)+_0x131c99;}export async function validateRuntimeSchedule(_0x1034cc,_0x4dfcae){const _0xf0bd46=a78_0x1a9b,_0xb80d3d=await apiRequest(runtimeSchedulePath(_0x1034cc,_0xf0bd46(0x11c)),{'method':_0xf0bd46(0xc1),'body':_0x4dfcae});return _0xb80d3d[_0xf0bd46(0xc9)];}export async function createRuntimeSchedule(_0x2437a2,_0x369ef0){const _0x575034=a78_0x1a9b,_0x14228d=await apiRequest(runtimeSchedulePath(_0x2437a2),{'method':_0x575034(0xc1),'body':_0x369ef0});return _0x14228d[_0x575034(0xc9)];}export async function listRuntimeSchedules(_0x434733,_0x35d0b1={}){const _0x575fdc=a78_0x1a9b,_0x414860=new URLSearchParams();if(_0x35d0b1['limit']!==undefined)_0x414860[_0x575fdc(0xac)](_0x575fdc(0x13a),String(_0x35d0b1[_0x575fdc(0x13a)]));if(_0x35d0b1['cursor'])_0x414860[_0x575fdc(0xac)](_0x575fdc(0x126),_0x35d0b1[_0x575fdc(0x126)]);const _0x55c370=_0x414860['size']>0x0?'?'+_0x414860[_0x575fdc(0xdf)]():'',_0x5f3e29=await apiRequest(''+runtimeSchedulePath(_0x434733)+_0x55c370);return _0x5f3e29[_0x575fdc(0xc9)];}export async function getRuntimeSchedule(_0x127746,_0x418ded){const _0x3c0649=a78_0x1a9b,_0x2f30fb=await apiRequest(runtimeSchedulePath(_0x127746,'/'+encodeURIComponent(_0x418ded)));return _0x2f30fb[_0x3c0649(0xc9)];}export async function deleteRuntimeSchedule(_0x53109c,_0x15345a){const _0x41c11e=a78_0x1a9b,_0x2ebef7=await apiRequest(runtimeSchedulePath(_0x53109c,'/'+encodeURIComponent(_0x15345a)),{'method':_0x41c11e(0xe6)});return _0x2ebef7['data'];}export async function runRuntimeSchedule(_0x4a287e,_0x453c5f){const _0x2cbc88=a78_0x1a9b,_0x498328=await apiRequest(runtimeSchedulePath(_0x4a287e,'/'+encodeURIComponent(_0x453c5f)+_0x2cbc88(0xd5)),{'method':_0x2cbc88(0xc1)});return _0x498328[_0x2cbc88(0xc9)];}export async function listDatasets(_0x241dfe,_0x23dc41){const _0x1fd443=a78_0x1a9b,_0x24c957=await apiRequest('/client/dataset/list',{'method':_0x1fd443(0xc1),'body':{'appCode':_0x241dfe,..._0x23dc41?.[_0x1fd443(0x117)]&&{'code':_0x23dc41[_0x1fd443(0x117)]},..._0x23dc41?.[_0x1fd443(0xec)]&&{'name':_0x23dc41[_0x1fd443(0xec)]}}});return extractList(_0x24c957[_0x1fd443(0xc9)]);}export async function getDatasetDetail(_0x3534d8){const _0x10f4eb=a78_0x1a9b,_0xb1104e=await apiRequest('/client/dataset/get-driven-data?code='+encodeURIComponent(_0x3534d8));return _0xb1104e[_0x10f4eb(0xc9)];}export async function getDatasetSdkUsageDoc(_0x2abcdc,_0x4b00f0){const _0x6a0798=a78_0x1a9b,_0x5252d9=await toolboxRequest(_0x6a0798(0x130),{'datasetCode':_0x2abcdc,'appCode':_0x4b00f0});return typeof _0x5252d9?.[_0x6a0798(0xb5)]===_0x6a0798(0xf2)?_0x5252d9['markdown']:'';}export async function uploadRuntimeFile(_0x2a2a69,_0x2f054d){const _0x195622=a78_0x1a9b,_0x5b3323=await readFile(_0x2f054d),_0x51a12d=new FormData();_0x51a12d['append']('appCode',_0x2a2a69),_0x51a12d['append']('file',new Blob([new Uint8Array(_0x5b3323)]),basename(_0x2f054d));const _0x7c3e0a=await apiFormRequest(_0x195622(0x11e),_0x51a12d);return _0x7c3e0a['data'];}export async function queryRuntimeFileUrl(_0x2696d1,_0x4a125b={}){const _0x43893a=a78_0x1a9b,_0x22ad4e=await apiRequest(_0x43893a(0xcd),{'method':_0x43893a(0xc1),'body':{'filePath':_0x2696d1,'downloadFlag':_0x4a125b[_0x43893a(0xf9)]??![],..._0x4a125b['longTerm']?{'longTerm':!![]}:{}}});return _0x22ad4e[_0x43893a(0xc9)];}export async function recognizeRuntimeOcr(_0x29a586,_0x4fd288){const _0x577504=a78_0x1a9b,_0x17d4d3=await apiRequest(_0x577504(0xc2),{'method':_0x577504(0xc1),'body':{'appCode':_0x29a586,'url':_0x4fd288['url'],'type':_0x4fd288[_0x577504(0x11d)]}});return _0x17d4d3['data'];}export async function getRuntimeAppConfigByKey(_0x3c175c,_0x583672){const _0x1abeb9=a78_0x1a9b,_0x21861f=new URLSearchParams({'appCode':_0x3c175c,'key':_0x583672}),_0x356c52=await apiRequest('/client/app-config/getByKey?'+_0x21861f[_0x1abeb9(0xdf)]());if(typeof _0x356c52[_0x1abeb9(0xc9)]!==_0x1abeb9(0xf2))throw CliErrors[_0x1abeb9(0x132)](_0x1abeb9(0xf3)+_0x583672);return _0x356c52[_0x1abeb9(0xc9)];}export async function listRuntimeArtifacts(_0x556bc5,_0x535368){const _0x3de470=a78_0x1a9b,_0x31d284=new URLSearchParams({'appCode':_0x556bc5});if(_0x535368?.[_0x3de470(0xa3)])_0x31d284[_0x3de470(0xac)](_0x3de470(0xa3),_0x535368[_0x3de470(0xa3)]);if(_0x535368?.[_0x3de470(0xb4)])_0x31d284[_0x3de470(0xac)](_0x3de470(0xb4),_0x535368[_0x3de470(0xb4)]);if(_0x535368?.[_0x3de470(0x142)]!==undefined)_0x31d284[_0x3de470(0xac)](_0x3de470(0x142),String(_0x535368['favorite']));const _0x35903a=await apiRequest('/client/artifact/list?'+_0x31d284[_0x3de470(0xdf)]());return Array['isArray'](_0x35903a[_0x3de470(0xc9)])?_0x35903a[_0x3de470(0xc9)]:[];}export async function getRuntimeArtifact(_0x4bea10,_0x2fc20b){const _0x4f9c90=a78_0x1a9b,_0x1b6bd4=await apiRequest(_0x4f9c90(0x134)+_0x4bea10+'?appCode='+encodeURIComponent(_0x2fc20b));if(!_0x1b6bd4[_0x4f9c90(0xc9)])throw CliErrors['validation'](_0x4f9c90(0xaf)+_0x4bea10);return _0x1b6bd4[_0x4f9c90(0xc9)];}export async function createRuntimeArtifact(_0x5072dc,_0x16803d){const _0x25f671=a78_0x1a9b,_0x257c0f=await apiRequest('/client/artifact/create',{'method':_0x25f671(0xc1),'body':{'appCode':_0x5072dc,..._0x16803d}});return _0x257c0f[_0x25f671(0xc9)];}export async function updateRuntimeArtifact(_0x2ebb03,_0x1213ac,_0x13f215){const _0x5b4eba=a78_0x1a9b,_0x555ef2=await apiRequest(_0x5b4eba(0x134)+_0x2ebb03+'/update',{'method':_0x5b4eba(0xc1),'body':{'appCode':_0x1213ac,..._0x13f215}});return _0x555ef2[_0x5b4eba(0xc9)];}export async function listPersonalBffs(_0x45aa13){const _0x5c1eeb=a78_0x1a9b,_0x54f917=await apiRequest('/client/runtime-bff/personal/list?appCode='+encodeURIComponent(_0x45aa13));return Array[_0x5c1eeb(0x135)](_0x54f917['data'])?_0x54f917[_0x5c1eeb(0xc9)]:[];}export async function getPersonalBff(_0x516c8e,_0x30d265){const _0xc1470c=a78_0x1a9b,_0x5807e2=await apiRequest(_0xc1470c(0x13b)+_0x516c8e+'?appCode='+encodeURIComponent(_0x30d265));if(!_0x5807e2[_0xc1470c(0xc9)])throw CliErrors[_0xc1470c(0x132)](_0xc1470c(0xe8)+_0x516c8e);return _0x5807e2['data'];}export async function createPersonalBff(_0x412774,_0x101743){const _0x5ed473=a78_0x1a9b,_0x143b01=await apiRequest(_0x5ed473(0x104),{'method':_0x5ed473(0xc1),'body':{'appCode':_0x412774,..._0x101743}});return _0x143b01[_0x5ed473(0xc9)];}export async function updatePersonalBff(_0x365153,_0x603d53,_0xf5fcd4){const _0x39ad69=a78_0x1a9b,_0x3b6b3d=await apiRequest('/client/runtime-bff/personal/'+_0x365153+_0x39ad69(0xf4),{'method':_0x39ad69(0xc1),'body':{'appCode':_0x603d53,..._0xf5fcd4}});return _0x3b6b3d[_0x39ad69(0xc9)];}export async function executePersonalBff(_0x85301a,_0x3f926f,_0xf3a27a){const _0x211a6c=a78_0x1a9b,_0x39b36b=await apiRequest('/client/runtime-bff/personal/'+_0x85301a+_0x211a6c(0x116)+encodeURIComponent(_0x3f926f),{'method':_0x211a6c(0xc1),'body':_0xf3a27a});return _0x39b36b['data'];}export async function listPersonalKnowledgeBaseItems(_0x396dab){const _0x448d7b=a78_0x1a9b,_0x30bb2c=await apiRequest(_0x448d7b(0x9c)+encodeURIComponent(_0x396dab));return Array[_0x448d7b(0x135)](_0x30bb2c['data'])?_0x30bb2c[_0x448d7b(0xc9)]:[];}export async function getPersonalKnowledgeBaseItem(_0x560055,_0x5b1ac9){const _0x211c52=a78_0x1a9b,_0xc3cb6c=await apiRequest(_0x211c52(0xd9)+_0x560055+'?appCode='+encodeURIComponent(_0x5b1ac9));if(!_0xc3cb6c['data'])throw CliErrors[_0x211c52(0x132)](_0x211c52(0xe1)+_0x560055);return _0xc3cb6c[_0x211c52(0xc9)];}export async function createPersonalKnowledgeBaseItem(_0x21a98b,_0x1db8ea){const _0x229789=a78_0x1a9b,_0x1589b2=await apiRequest(_0x229789(0xc6),{'method':_0x229789(0xc1),'body':{'appCode':_0x21a98b,..._0x1db8ea}});return _0x1589b2[_0x229789(0xc9)];}export async function updatePersonalKnowledgeBaseItem(_0x1e6e00,_0x45bd16,_0x2eb1d9){const _0x3cb3c7=a78_0x1a9b,_0x522454=await apiRequest(_0x3cb3c7(0xd9)+_0x1e6e00+_0x3cb3c7(0xf4),{'method':'POST','body':{'appCode':_0x45bd16,..._0x2eb1d9}});return _0x522454[_0x3cb3c7(0xc9)];}export async function searchKnowledgeBase(_0x370199,_0x4e860b){const _0xe6b7c8=a78_0x1a9b,_0x2813be=await apiRequest(_0xe6b7c8(0xed),{'method':_0xe6b7c8(0xc1),'body':{'appCode':_0x370199,'query':_0x4e860b[_0xe6b7c8(0xe9)],..._0x4e860b[_0xe6b7c8(0xb2)]!==undefined?{'topK':_0x4e860b['topK']}:{}}});return Array[_0xe6b7c8(0x135)](_0x2813be['data'])?_0x2813be[_0xe6b7c8(0xc9)]:[];}export async function getRuntimeSkillByCode(_0x54e8cc,_0x5b74ee){const _0x1c4256=a78_0x1a9b,_0x2e1fbf=await skillHubJsonRequest(_0x1c4256(0x131)+encodeURIComponent(_0x54e8cc)+'/'+encodeURIComponent(_0x5b74ee),{'allowNotFound':!![]});return _0x2e1fbf?skillHubRuntimeDetailToRuntimeSkill(_0x2e1fbf):undefined;}export async function listRuntimeSkills(_0x4edc49){const _0x128c68=a78_0x1a9b,_0x57cf0e=await skillHubJsonRequest(_0x128c68(0xe5)+encodeURIComponent(_0x4edc49[_0x128c68(0xb8)])+_0x128c68(0xef),{'query':{'page':0x0,'size':0xc8}});return normalizeSkillHubRuntimeListResponse(_0x4edc49[_0x128c68(0xb8)],_0x57cf0e,_0x4edc49[_0x128c68(0xb1)]??_0x128c68(0xaa),_0x4edc49[_0x128c68(0x117)]);}export async function listPersonalRuntimeSkills(_0x3a8100){const _0x2ff81b=a78_0x1a9b;return(await listRuntimeSkills({'appCode':_0x3a8100,'scope':_0x2ff81b(0xa7)}))[_0x2ff81b(0xa7)];}export async function listCompanyRuntimeSkills(_0x22a430){const _0x49a455=a78_0x1a9b;return(await listRuntimeSkills({'appCode':_0x22a430,'scope':_0x49a455(0xbe)}))[_0x49a455(0xbe)];}export async function listVisibleRuntimeSkills(_0x388f95){const _0x588f42=a78_0x1a9b;return(await listRuntimeSkills({'appCode':_0x388f95,'scope':_0x588f42(0xaa)}))[_0x588f42(0xf6)];}export async function createPersonalRuntimeSkill(_0x3818ce,_0x44ef28,_0x5a9a4b={}){const _0x2d0070=a78_0x1a9b;return publishRuntimeSkill(_0x3818ce,_0x44ef28,{'visibility':'PRIVATE','confirmWarnings':_0x5a9a4b[_0x2d0070(0xde)]});}export async function updatePersonalRuntimeSkill(_0x1929cc,_0x9082cc,_0x4c9395,_0xad081c={}){const _0x24a273=a78_0x1a9b;return publishRuntimeSkill(_0x9082cc,{..._0x4c9395,'skillCode':_0x4c9395[_0x24a273(0x137)]??_0x1929cc},{'visibility':_0x24a273(0xfb),'confirmWarnings':_0xad081c[_0x24a273(0xde)]});}export async function publishCompanyRuntimeSkill(_0x363d0a,_0x176c7e,_0x4bf6d7={}){const _0x5eefa8=a78_0x1a9b;return publishRuntimeSkill(_0x363d0a,_0x176c7e,{'visibility':_0x5eefa8(0xe3),'confirmWarnings':_0x4bf6d7[_0x5eefa8(0xde)]});}export async function validateRuntimeSkillPublish(_0x479cd6,_0x289a6a,_0x5878e8){const _0x261294=a78_0x1a9b,_0x10ba57=buildRuntimeSkillPublishForm(_0x289a6a,_0x5878e8[_0x261294(0x12e)]),_0x28fc9b=await skillHubJsonRequest(_0x261294(0x109)+encodeURIComponent(_0x479cd6)+_0x261294(0xf5),{'method':_0x261294(0xc1),'body':_0x10ba57});return assertJointDiagramAcknowledged(_0x289a6a['diagram'],_0x28fc9b['diagramValidated'],'validation'),{'valid':_0x28fc9b[_0x261294(0x103)]===!![],'errors':Array[_0x261294(0x135)](_0x28fc9b['errors'])?_0x28fc9b[_0x261294(0xc5)]:[],'warnings':Array[_0x261294(0x135)](_0x28fc9b['warnings'])?_0x28fc9b[_0x261294(0xd1)]:[],'resolvedSlug':_0x28fc9b[_0x261294(0x106)],'resolvedVersion':_0x28fc9b['resolvedVersion'],'diagramValidated':_0x28fc9b[_0x261294(0xbc)]===!![]};}export async function validateRuntimeSkillVersionDiagram(_0x405678,_0x29e9d8,_0x5b42b2,_0x1040b3,_0x538804){const _0x5aab37=a78_0x1a9b;return skillHubJsonRequest(runtimeSkillVersionDiagramPath(_0x405678,_0x29e9d8,_0x5b42b2,_0x5aab37(0x11c)),{'method':_0x5aab37(0xc1),'query':{'scope':_0x1040b3},'headers':{'Content-Type':_0x5aab37(0x108)},'body':JSON[_0x5aab37(0xae)](_0x538804)});}export async function putRuntimeSkillVersionDiagram(_0xcebeba,_0xed811d,_0x4fa3b0,_0x28ca9a,_0x1fbfd6){const _0x4966fa=a78_0x1a9b;return skillHubJsonRequest(runtimeSkillVersionDiagramPath(_0xcebeba,_0xed811d,_0x4fa3b0),{'method':_0x4966fa(0xa5),'query':{'scope':_0x28ca9a},'headers':{'Content-Type':_0x4966fa(0x108)},'body':JSON[_0x4966fa(0xae)](_0x1fbfd6)});}export async function getRuntimeSkillVersionDiagram(_0x48d632,_0x5d61e4,_0x348e3a,_0x2e52f3){const _0x491f83=a78_0x1a9b,_0x2421dc=await skillHubJsonRequest(runtimeSkillVersionDiagramPath(_0x48d632,_0x5d61e4,_0x348e3a),{'query':{'scope':_0x2e52f3}});if(typeof _0x2421dc[_0x491f83(0xbd)]!==_0x491f83(0xcb))throw CliErrors[_0x491f83(0xd3)](_0x491f83(0x147));const _0x31f4c4=_0x2421dc[_0x491f83(0xb9)];if(typeof _0x31f4c4!==_0x491f83(0xf2)||!/^sha256:[0-9a-f]{64}$/[_0x491f83(0xd7)](_0x31f4c4))throw CliErrors[_0x491f83(0xd3)](_0x491f83(0xa4),_0x491f83(0xf1));const _0x3cc9ff=_0x2421dc['diagramRevision'];if(_0x2421dc['found']&&(!Number[_0x491f83(0xce)](_0x3cc9ff)||Number(_0x3cc9ff)<0x1))throw CliErrors[_0x491f83(0xd3)](_0x491f83(0xfe));if(!_0x2421dc[_0x491f83(0xbd)]&&_0x3cc9ff!==undefined&&_0x3cc9ff!==null)throw CliErrors[_0x491f83(0xd3)]('Invalid\x20Skill\x20diagram\x20response:\x20absent\x20diagram\x20must\x20have\x20a\x20null\x20diagramRevision.');const _0x27eb9b=_0x2421dc[_0x491f83(0xbd)]?Number(_0x3cc9ff):null;return{..._0x2421dc,'sourceFingerprint':_0x31f4c4,'diagramRevision':_0x27eb9b,'expectedDiagramRevision':_0x27eb9b??0x0};}export async function downloadRuntimeSkillPackage(_0x5acd36,_0x5cb197,_0x3d17cf,_0x8e70d2){const _0xef1701=a78_0x1a9b;void _0x5acd36;const _0x2c7e21=_0x8e70d2?_0xef1701(0x109)+encodeURIComponent(_0x3d17cf)+'/'+encodeURIComponent(_0x5cb197)+_0xef1701(0x10d)+encodeURIComponent(_0x8e70d2)+_0xef1701(0x124):_0xef1701(0x109)+encodeURIComponent(_0x3d17cf)+'/'+encodeURIComponent(_0x5cb197)+_0xef1701(0x124);return skillHubBinaryRequest(_0x2c7e21);}async function publishRuntimeSkill(_0x5392b4,_0x5e43cc,_0x3ca637){const _0x269cc9=a78_0x1a9b,_0x518091=buildRuntimeSkillPublishForm(_0x5e43cc,_0x3ca637[_0x269cc9(0x12e)]),_0x1ee7bf=await skillHubJsonRequest('/api/cli/v1/skills/'+encodeURIComponent(_0x5392b4)+_0x269cc9(0x112),{'method':_0x269cc9(0xc1),'query':{'confirmWarnings':_0x3ca637[_0x269cc9(0xde)]===!![]?!![]:undefined},'body':_0x518091});return assertJointDiagramAcknowledged(_0x5e43cc['diagram'],_0x1ee7bf[_0x269cc9(0xa9)],_0x269cc9(0xff)),{'appCode':_0x1ee7bf[_0x269cc9(0x10b)]??_0x5392b4,'skillCode':_0x1ee7bf[_0x269cc9(0x12c)]??_0x5e43cc[_0x269cc9(0x137)]??'','skillName':_0x5e43cc[_0x269cc9(0x9f)]??_0x1ee7bf[_0x269cc9(0x12c)]??_0x5e43cc[_0x269cc9(0x137)],'description':_0x5e43cc[_0x269cc9(0xfd)],'scope':skillHubVisibilityToScope(_0x1ee7bf[_0x269cc9(0x12e)]??_0x3ca637['visibility'])??'personal','version':_0x1ee7bf[_0x269cc9(0xd8)]??_0x5e43cc[_0x269cc9(0xd8)],'tags':_0x5e43cc[_0x269cc9(0x12f)],'content':_0x5e43cc[_0x269cc9(0x123)],'diagramBound':_0x1ee7bf[_0x269cc9(0xa9)]===!![]};}function assertJointDiagramAcknowledged(_0x40b5ee,_0x4001b3,_0x443fd2){const _0x26ce2b=a78_0x1a9b;if(!_0x40b5ee||_0x4001b3===!![])return;throw CliErrors[_0x26ce2b(0xd3)](_0x26ce2b(0xdd)+_0x443fd2+'.',_0x26ce2b(0xa0));}function buildRuntimeSkillPublishForm(_0x30d56f,_0x363b1c){const _0x341034=a78_0x1a9b,_0x2882b4=new FormData();return _0x2882b4[_0x341034(0xac)](_0x341034(0x136),runtimeSkillPackageFile(_0x30d56f)),_0x30d56f[_0x341034(0x9f)]?.[_0x341034(0x138)]()&&_0x2882b4[_0x341034(0xac)](_0x341034(0x9e),_0x30d56f[_0x341034(0x9f)]['trim']()),_0x2882b4[_0x341034(0xac)](_0x341034(0x12e),_0x363b1c),_0x30d56f[_0x341034(0x101)]&&_0x2882b4[_0x341034(0xac)]('diagram',new Blob([JSON[_0x341034(0xae)](_0x30d56f[_0x341034(0x101)])],{'type':'application/json'})),_0x2882b4;}function runtimeSkillVersionDiagramPath(_0x58e183,_0x1b293c,_0x46e940,_0x2ddfcf=''){const _0x9f3f08=a78_0x1a9b;return _0x9f3f08(0x109)+encodeURIComponent(_0x58e183)+'/'+encodeURIComponent(_0x1b293c)+_0x9f3f08(0x10d)+encodeURIComponent(_0x46e940)+_0x9f3f08(0xdb)+_0x2ddfcf;}function runtimeSkillPackageFile(_0x16d185){const _0x49ecd2=a78_0x1a9b;if(!_0x16d185[_0x49ecd2(0x107)])throw CliErrors[_0x49ecd2(0x132)]('Missing\x20Skill\x20package\x20payload.');const _0x1166f2=Buffer['from'](_0x16d185[_0x49ecd2(0x107)],_0x49ecd2(0xcc)),_0x2b76ab=new Blob([_0x1166f2],{'type':'application/zip'}),_0x508d99=(_0x16d185[_0x49ecd2(0x137)]||_0x49ecd2(0xd4))+'.zip';if(typeof File!==_0x49ecd2(0xe2))return new File([_0x2b76ab],_0x508d99,{'type':'application/zip'});return _0x2b76ab;}function normalizeSkillHubRuntimeListResponse(_0x1dde96,_0x31e9ce,_0x2bc5b4,_0x246df0){const _0x2f37f7=a78_0x1a9b,_0x18b649=Array[_0x2f37f7(0x135)](_0x31e9ce)?_0x31e9ce:Array[_0x2f37f7(0x135)](_0x31e9ce?.[_0x2f37f7(0x102)])?_0x31e9ce['items']:[],_0x389458=_0x246df0?.[_0x2f37f7(0x138)](),_0x56c6c7=_0x18b649[_0x2f37f7(0x148)](_0xd0db4d=>!_0x389458||_0xd0db4d[_0x2f37f7(0x12c)]===_0x389458)[_0x2f37f7(0xd2)](skillHubRuntimeItemToRuntimeSkill)[_0x2f37f7(0x148)](_0x3ac8fb=>Boolean(_0x3ac8fb)),_0x58d402=_0x56c6c7[_0x2f37f7(0x148)](_0x3df8c7=>_0x3df8c7[_0x2f37f7(0xb1)]==='personal'),_0x115df8=_0x56c6c7['filter'](_0x254bd6=>_0x254bd6[_0x2f37f7(0xb1)]===_0x2f37f7(0xbe));return{'appCode':_0x1dde96,'personal':_0x2bc5b4==='company'?[]:_0x58d402,'company':_0x2bc5b4===_0x2f37f7(0xa7)?[]:_0x115df8,'effective':buildEffectiveRuntimeSkills(_0x58d402,_0x115df8,_0x2bc5b4)};}function skillHubRuntimeItemToRuntimeSkill(_0x1a88d5){const _0xd15066=a78_0x1a9b,_0x215e6c=_0x1a88d5[_0xd15066(0x12c)]?.['trim'](),_0x2ed628=skillHubVisibilityToScope(_0x1a88d5[_0xd15066(0x12e)]);if(!_0x215e6c||!_0x2ed628)return undefined;return{'id':_0x1a88d5['id'],'appCode':_0x1a88d5['namespace'],'skillCode':_0x215e6c,'skillName':_0x1a88d5[_0xd15066(0x9e)]??_0x215e6c,'description':_0x1a88d5['summary'],'scope':_0x2ed628,'version':skillHubRuntimeItemVersion(_0x1a88d5),'status':_0x1a88d5['status']};}function skillHubRuntimeDetailToRuntimeSkill(_0x13245d){const _0x219ab4=a78_0x1a9b,_0x3cc00c=_0x13245d['slug']?.[_0x219ab4(0x138)]();if(!_0x3cc00c)return undefined;return{'id':_0x13245d['id'],'appCode':_0x13245d[_0x219ab4(0x10b)],'skillCode':_0x3cc00c,'skillName':_0x13245d[_0x219ab4(0x9e)]??_0x3cc00c,'description':_0x13245d[_0x219ab4(0x110)],'example':_0x13245d['example'],'scope':skillHubVisibilityToScope(_0x13245d[_0x219ab4(0x12e)])??_0x13245d[_0x219ab4(0x12e)]?.[_0x219ab4(0x11f)](),'version':skillHubRuntimeItemVersion(_0x13245d),'status':_0x13245d[_0x219ab4(0x143)]};}function skillHubVisibilityToScope(_0x20fdcc){const _0x47098a=a78_0x1a9b;if(_0x20fdcc==='PRIVATE')return _0x47098a(0xa7);if(_0x20fdcc===_0x47098a(0xe3))return _0x47098a(0xbe);return undefined;}function skillHubRuntimeItemVersion(_0x494cea){const _0x1fb7e3=a78_0x1a9b;return _0x494cea[_0x1fb7e3(0xe0)]?.[_0x1fb7e3(0xd8)]??_0x494cea[_0x1fb7e3(0x13f)]?.[_0x1fb7e3(0xd8)]??_0x494cea[_0x1fb7e3(0xab)]?.[_0x1fb7e3(0xd8)];}function buildEffectiveRuntimeSkills(_0x4916d8,_0x17cc00,_0x582d8f){const _0x499583=a78_0x1a9b;if(_0x582d8f===_0x499583(0xa7))return _0x4916d8;if(_0x582d8f===_0x499583(0xbe))return _0x17cc00;const _0x3496c6=new Map();for(const _0x15f6e9 of _0x17cc00){_0x3496c6[_0x499583(0xac)](_0x15f6e9[_0x499583(0x137)],_0x15f6e9);}for(const _0x308d6d of _0x4916d8){_0x3496c6[_0x499583(0xac)](_0x308d6d[_0x499583(0x137)],_0x308d6d);}return Array['from'](_0x3496c6[_0x499583(0x10f)]());}function normalizeRuntimeSkillListResponse(_0x1670c7,_0x4cb489){const _0x1b721f=a78_0x1a9b;if(Array[_0x1b721f(0x135)](_0x4cb489)){const _0x2593d4=_0x4cb489[_0x1b721f(0x148)](_0xb4d31e=>_0xb4d31e[_0x1b721f(0xb1)]===_0x1b721f(0xa7)),_0x2610d0=_0x4cb489[_0x1b721f(0x148)](_0x164a4a=>_0x164a4a[_0x1b721f(0xb1)]==='company');return{'appCode':_0x1670c7,'personal':_0x2593d4,'company':_0x2610d0,'effective':[..._0x2610d0,..._0x2593d4]};}return{'appCode':_0x4cb489?.[_0x1b721f(0xb8)]??_0x1670c7,'personal':Array[_0x1b721f(0x135)](_0x4cb489?.[_0x1b721f(0xa7)])?_0x4cb489[_0x1b721f(0xa7)]:[],'company':Array[_0x1b721f(0x135)](_0x4cb489?.[_0x1b721f(0xbe)])?_0x4cb489[_0x1b721f(0xbe)]:[],'effective':Array[_0x1b721f(0x135)](_0x4cb489?.['effective'])?_0x4cb489[_0x1b721f(0xf6)]:[]};}