@lovrabet/lovrabet-cli 2.1.20 → 2.1.21

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 (128) hide show
  1. package/lib/cli.js +1 -1
  2. package/lib/commands/api-doc/index.js +1 -1
  3. package/lib/commands/app/cache.js +1 -1
  4. package/lib/commands/app/definitions.js +1 -1
  5. package/lib/commands/app/eligibility.js +1 -1
  6. package/lib/commands/app/mock-loader.js +1 -1
  7. package/lib/commands/app/remote-source.js +1 -1
  8. package/lib/commands/app/shared.js +1 -1
  9. package/lib/commands/app-config/get.js +1 -1
  10. package/lib/commands/app-config/index.js +1 -1
  11. package/lib/commands/artifact/index.js +1 -1
  12. package/lib/commands/auth/device.js +1 -1
  13. package/lib/commands/auth/index.js +1 -1
  14. package/lib/commands/auth/prompt.js +1 -1
  15. package/lib/commands/bff/detail.js +1 -1
  16. package/lib/commands/bff/exec.js +1 -1
  17. package/lib/commands/bff/index.js +1 -1
  18. package/lib/commands/cli-skill/index.js +1 -1
  19. package/lib/commands/common/config-policy.js +1 -1
  20. package/lib/commands/common/constraints.js +1 -1
  21. package/lib/commands/common/flags.js +1 -1
  22. package/lib/commands/common/local-file.js +1 -1
  23. package/lib/commands/config/definitions.js +1 -1
  24. package/lib/commands/config/shared.js +1 -1
  25. package/lib/commands/data/index.js +1 -1
  26. package/lib/commands/dataset/detail.js +1 -1
  27. package/lib/commands/dataset/index.js +1 -1
  28. package/lib/commands/dataset/list.js +1 -1
  29. package/lib/commands/dataset/sdk-doc.js +1 -1
  30. package/lib/commands/doctor.js +1 -1
  31. package/lib/commands/file/index.js +1 -1
  32. package/lib/commands/init.js +1 -1
  33. package/lib/commands/kb/index.js +1 -1
  34. package/lib/commands/logs/index.js +1 -1
  35. package/lib/commands/ocr/index.js +1 -1
  36. package/lib/commands/personal-bff/index.js +1 -1
  37. package/lib/commands/registry.js +1 -1
  38. package/lib/commands/schedule/index.js +1 -1
  39. package/lib/commands/schema.js +1 -1
  40. package/lib/commands/service/dynamic.js +1 -1
  41. package/lib/commands/service/function-name-adapter.js +1 -1
  42. package/lib/commands/service/index.js +1 -1
  43. package/lib/commands/service/registry.js +1 -1
  44. package/lib/commands/skill/commands/create.js +1 -1
  45. package/lib/commands/skill/commands/install.js +1 -1
  46. package/lib/commands/skill/commands/list.js +1 -1
  47. package/lib/commands/skill/commands/push.js +1 -1
  48. package/lib/commands/skill/commands/validate.js +1 -1
  49. package/lib/commands/skill/flags.js +1 -1
  50. package/lib/commands/skill/index.js +1 -1
  51. package/lib/commands/skill/manifest-helpers.js +1 -1
  52. package/lib/commands/skill/push-execute.js +1 -1
  53. package/lib/commands/skill/push-flow-helpers.js +1 -1
  54. package/lib/commands/skill/push-retarget.js +1 -1
  55. package/lib/commands/skill/scopes.js +1 -1
  56. package/lib/commands/skill/summary.js +1 -1
  57. package/lib/commands/skill/templates.js +1 -1
  58. package/lib/commands/skill/validate.js +1 -1
  59. package/lib/commands/sql/detail.js +1 -1
  60. package/lib/commands/sql/exec.js +1 -1
  61. package/lib/commands/sql/index.js +1 -1
  62. package/lib/commands/update.js +1 -1
  63. package/lib/commands/workspace/index.js +1 -1
  64. package/lib/config/schema.js +1 -1
  65. package/lib/constant/app.js +1 -1
  66. package/lib/constant/auth-mode.js +1 -1
  67. package/lib/constant/cli.js +1 -1
  68. package/lib/constant/defaults.js +1 -1
  69. package/lib/constant/distribution.js +1 -1
  70. package/lib/constant/domain.js +1 -1
  71. package/lib/constant/env.js +1 -1
  72. package/lib/constant/output.js +1 -1
  73. package/lib/constant/product.js +1 -1
  74. package/lib/constant/risk.js +1 -1
  75. package/lib/constant/url.js +1 -1
  76. package/lib/context.js +1 -1
  77. package/lib/core/api-client.js +1 -1
  78. package/lib/core/db-resolver.js +1 -1
  79. package/lib/core/sdk-client.js +1 -1
  80. package/lib/errors.js +1 -1
  81. package/lib/framework/build-all-flags.js +1 -1
  82. package/lib/framework/dryrun.js +1 -1
  83. package/lib/framework/flags.js +1 -1
  84. package/lib/framework/help.js +1 -1
  85. package/lib/framework/index.js +1 -1
  86. package/lib/framework/output.js +1 -1
  87. package/lib/framework/preparse.js +1 -1
  88. package/lib/framework/rate-limit.js +1 -1
  89. package/lib/framework/raw-flags.js +1 -1
  90. package/lib/framework/response.js +1 -1
  91. package/lib/framework/runner-confirmation.js +1 -1
  92. package/lib/framework/runner-error.js +1 -1
  93. package/lib/framework/runner.js +1 -1
  94. package/lib/framework/schema-export.js +1 -1
  95. package/lib/framework/service-order.js +1 -1
  96. package/lib/framework/types.js +1 -1
  97. package/lib/generated/build-info.d.ts +4 -4
  98. package/lib/generated/build-info.js +1 -1
  99. package/lib/help.js +1 -1
  100. package/lib/runtime/event.js +1 -1
  101. package/lib/runtime/index.js +1 -1
  102. package/lib/runtime/queue.js +1 -1
  103. package/lib/runtime/resolve.js +1 -1
  104. package/lib/skills/npx-skills-add.js +1 -1
  105. package/lib/skills/runtime-skill-sync/constants.js +1 -1
  106. package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
  107. package/lib/skills/runtime-skill-sync/hashing.js +1 -1
  108. package/lib/skills/runtime-skill-sync/install-target.js +1 -1
  109. package/lib/skills/runtime-skill-sync/links.js +1 -1
  110. package/lib/skills/runtime-skill-sync/list-local.js +1 -1
  111. package/lib/skills/runtime-skill-sync/local-files.js +1 -1
  112. package/lib/skills/runtime-skill-sync/materialize.js +1 -1
  113. package/lib/skills/runtime-skill-sync/metadata.js +1 -1
  114. package/lib/skills/runtime-skill-sync/paths.js +1 -1
  115. package/lib/skills/runtime-skill-sync/push.js +1 -1
  116. package/lib/skills/runtime-skill-sync/scopes.js +1 -1
  117. package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
  118. package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
  119. package/lib/skills/runtime-skill-sync.js +1 -1
  120. package/lib/utils/apply-jq-filter.js +1 -1
  121. package/lib/utils/logger.js +1 -1
  122. package/lib/utils/lossless-json.js +1 -1
  123. package/lib/utils/params.js +1 -1
  124. package/lib/utils/platform.js +1 -1
  125. package/lib/utils/update-notice.js +1 -1
  126. package/lib/utils/version.js +1 -1
  127. package/lib/utils/write-cli-side-channel.js +1 -1
  128. package/package.json +1 -1
@@ -1 +1 @@
1
- const a66_0x4b44bc=a66_0x3642;(function(_0x458edb,_0x8d213d){const _0x562d8d=a66_0x3642,_0xf2388f=_0x458edb();while(!![]){try{const _0x53000e=parseInt(_0x562d8d(0xb6))/0x1*(-parseInt(_0x562d8d(0xba))/0x2)+-parseInt(_0x562d8d(0xd7))/0x3+parseInt(_0x562d8d(0xb4))/0x4+-parseInt(_0x562d8d(0xda))/0x5*(parseInt(_0x562d8d(0xc0))/0x6)+parseInt(_0x562d8d(0xcc))/0x7+-parseInt(_0x562d8d(0xad))/0x8*(-parseInt(_0x562d8d(0xcd))/0x9)+parseInt(_0x562d8d(0xc3))/0xa;if(_0x53000e===_0x8d213d)break;else _0xf2388f['push'](_0xf2388f['shift']());}catch(_0x52f748){_0xf2388f['push'](_0xf2388f['shift']());}}}(a66_0x3a03,0x48224));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[a66_0x4b44bc(0xce)];export const NPM_PACKAGE_NAME=LOVRABET_NPM_PACKAGE_NAME;export const GLOBAL_FLAGS=[{'name':'appcode','meowKey':a66_0x4b44bc(0xc8),'type':a66_0x4b44bc(0xc4),'description':a66_0x4b44bc(0xc7),'hint':a66_0x4b44bc(0xb0)},{'name':'app','meowKey':a66_0x4b44bc(0xbc),'type':a66_0x4b44bc(0xc4),'description':a66_0x4b44bc(0xc5),'hint':a66_0x4b44bc(0xc6)},{'name':a66_0x4b44bc(0xcb),'meowKey':a66_0x4b44bc(0xcb),'type':a66_0x4b44bc(0xc4),'description':a66_0x4b44bc(0xb2),'hint':a66_0x4b44bc(0xb3)},{'name':a66_0x4b44bc(0xd5),'meowKey':'format','type':a66_0x4b44bc(0xc4),'description':'Output\x20format','hint':'json\x20|\x20pretty\x20|\x20compress'},{'name':'jq','meowKey':'jq','type':a66_0x4b44bc(0xc4),'description':a66_0x4b44bc(0xd6),'hint':'<expr>'},{'name':a66_0x4b44bc(0xb1),'meowKey':a66_0x4b44bc(0xca),'type':a66_0x4b44bc(0xd4),'description':a66_0x4b44bc(0xd8)},{'name':a66_0x4b44bc(0xd9),'meowKey':a66_0x4b44bc(0xd9),'type':a66_0x4b44bc(0xd4),'description':a66_0x4b44bc(0xd1)},{'name':'non-interactive','meowKey':a66_0x4b44bc(0xc2),'type':a66_0x4b44bc(0xd4),'description':a66_0x4b44bc(0xb5)},{'name':a66_0x4b44bc(0xc9),'meowKey':a66_0x4b44bc(0xc9),'type':a66_0x4b44bc(0xd4),'description':'Use\x20global\x20config\x20scope'},{'name':'ci','meowKey':'ci','type':a66_0x4b44bc(0xd4),'description':'Alias\x20for\x20--non-interactive','hidden':!![]},{'name':a66_0x4b44bc(0xae),'meowKey':'help','type':a66_0x4b44bc(0xd4),'description':a66_0x4b44bc(0xac)},{'name':'id','meowKey':'id','type':a66_0x4b44bc(0xc4),'description':a66_0x4b44bc(0xd3),'hidden':!![]},{'name':'name','meowKey':'name','type':a66_0x4b44bc(0xc4),'description':a66_0x4b44bc(0xb8),'hidden':!![]},{'name':a66_0x4b44bc(0xcf),'meowKey':'sqlcode','type':a66_0x4b44bc(0xc4),'description':a66_0x4b44bc(0xbd),'hidden':!![]},{'name':a66_0x4b44bc(0xbf),'meowKey':a66_0x4b44bc(0xbf),'type':a66_0x4b44bc(0xc4),'description':a66_0x4b44bc(0xbb),'hidden':!![]},{'name':a66_0x4b44bc(0xaf),'meowKey':a66_0x4b44bc(0xaf),'type':a66_0x4b44bc(0xd4),'description':a66_0x4b44bc(0xbe),'hidden':!![]},{'name':a66_0x4b44bc(0xd2),'meowKey':a66_0x4b44bc(0xd2),'type':a66_0x4b44bc(0xd4),'description':a66_0x4b44bc(0xb9),'hidden':!![]}];function a66_0x3a03(){const _0x14b9f4=['761538VtUvOD','JSON\x20params\x20for\x20execute\x20commands','app','SQL\x20query\x20code','Verbose\x20output','params','164508qUaMGF','type','nonInteractive','1092110PNSZks','string','Select\x20app\x20profile\x20by\x20name','<name>','Override\x20appcode','appcode','global','dryRun','env','1144542RRoNXu','405ShmAxf','cliDisplayName','sqlcode','non-interactive','Skip\x20confirmation\x20for\x20high-risk\x20writes','clear','Record\x20ID','boolean','format','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20implies\x20--format\x20json\x20when\x20current\x20format\x20is\x20pretty)','288528dxzNgJ','Preview\x20operation\x20without\x20executing','yes','40mpaFXE','Show\x20help','61112wQKyql','help','verbose','<code>','dry-run','Environment','production\x20|\x20development\x20|\x20daily','1501108eTkWfq','Force\x20non-interactive\x20mode\x20(CI)','1HreCjC','fromEntries','Name\x20filter','Clear\x20output'];a66_0x3a03=function(){return _0x14b9f4;};return a66_0x3a03();}function a66_0x3642(_0x550101,_0x519d11){_0x550101=_0x550101-0xac;const _0x3a0328=a66_0x3a03();let _0x364240=_0x3a0328[_0x550101];return _0x364240;}export const PIPELINE_FLAG_NAMES=new Set([a66_0x4b44bc(0xc8),'app',a66_0x4b44bc(0xcb),a66_0x4b44bc(0xd5),'jq',a66_0x4b44bc(0xb1),'yes',a66_0x4b44bc(0xd0),'ci']);export function buildMeowFlags(){const _0x44a89a=a66_0x4b44bc;return Object[_0x44a89a(0xb7)](GLOBAL_FLAGS['map'](_0x1c8e2d=>[_0x1c8e2d['meowKey'],{'type':_0x1c8e2d[_0x44a89a(0xc1)]}]));}
1
+ const a66_0x49097b=a66_0x5977;function a66_0x5977(_0x2887c1,_0x544497){_0x2887c1=_0x2887c1-0x97;const _0x594345=a66_0x5943();let _0x59775c=_0x594345[_0x2887c1];return _0x59775c;}(function(_0x2b6acd,_0x632d4a){const _0xd1f545=a66_0x5977,_0xb40fd0=_0x2b6acd();while(!![]){try{const _0x3a336a=-parseInt(_0xd1f545(0x9a))/0x1*(-parseInt(_0xd1f545(0x9d))/0x2)+parseInt(_0xd1f545(0xae))/0x3*(-parseInt(_0xd1f545(0xa8))/0x4)+parseInt(_0xd1f545(0xc6))/0x5*(parseInt(_0xd1f545(0xb2))/0x6)+parseInt(_0xd1f545(0xba))/0x7*(-parseInt(_0xd1f545(0xb3))/0x8)+parseInt(_0xd1f545(0xca))/0x9*(parseInt(_0xd1f545(0xaf))/0xa)+parseInt(_0xd1f545(0xa0))/0xb+parseInt(_0xd1f545(0xa9))/0xc*(-parseInt(_0xd1f545(0xb6))/0xd);if(_0x3a336a===_0x632d4a)break;else _0xb40fd0['push'](_0xb40fd0['shift']());}catch(_0xe68351){_0xb40fd0['push'](_0xb40fd0['shift']());}}}(a66_0x5943,0xa3a0c));import{PRODUCT_CONFIG}from'../constant/product.js';import{LOVRABET_NPM_PACKAGE_NAME}from'../constant/distribution.js';export const CLI_BIN_NAME=PRODUCT_CONFIG[a66_0x49097b(0xa5)];export const CLI_DISPLAY_NAME=PRODUCT_CONFIG['cliDisplayName'];export const NPM_PACKAGE_NAME=LOVRABET_NPM_PACKAGE_NAME;function a66_0x5943(){const _0x252a02=['verbose','<name>','3702RzygZv','48568pKGGyJ','name','params','494dckKKw','production\x20|\x20development\x20|\x20daily','boolean','Clear\x20output','1533zAmadW','Alias\x20for\x20--non-interactive','Output\x20format','meowKey','Use\x20global\x20config\x20scope','app','env','map','string','Verbose\x20output','dryRun','Select\x20app\x20profile\x20by\x20name','8150VOnggn','Record\x20ID','nonInteractive','<code>','9QKacjR','Force\x20non-interactive\x20mode\x20(CI)','Name\x20filter','help','sqlcode','SQL\x20query\x20code','2317fYZphg','Show\x20help','type','108HmZaLb','format','Skip\x20confirmation\x20for\x20high-risk\x20writes','4443769WKCzFt','Environment','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20implies\x20--format\x20json\x20when\x20current\x20format\x20is\x20pretty)','yes','appcode','cliBinName','JSON\x20params\x20for\x20execute\x20commands','Override\x20appcode','4bKqfXo','17736TZbMpY','clear','dry-run','non-interactive','global','1673961jYtNlD','10791130kqxODJ'];a66_0x5943=function(){return _0x252a02;};return a66_0x5943();}export const GLOBAL_FLAGS=[{'name':a66_0x49097b(0xa4),'meowKey':a66_0x49097b(0xa4),'type':a66_0x49097b(0xc2),'description':a66_0x49097b(0xa7),'hint':a66_0x49097b(0xc9)},{'name':a66_0x49097b(0xbf),'meowKey':a66_0x49097b(0xbf),'type':a66_0x49097b(0xc2),'description':a66_0x49097b(0xc5),'hint':a66_0x49097b(0xb1)},{'name':a66_0x49097b(0xc0),'meowKey':'env','type':a66_0x49097b(0xc2),'description':a66_0x49097b(0xa1),'hint':a66_0x49097b(0xb7)},{'name':a66_0x49097b(0x9e),'meowKey':a66_0x49097b(0x9e),'type':a66_0x49097b(0xc2),'description':a66_0x49097b(0xbc),'hint':'json\x20|\x20pretty\x20|\x20compress'},{'name':'jq','meowKey':'jq','type':a66_0x49097b(0xc2),'description':a66_0x49097b(0xa2),'hint':'<expr>'},{'name':a66_0x49097b(0xab),'meowKey':a66_0x49097b(0xc4),'type':a66_0x49097b(0xb8),'description':'Preview\x20operation\x20without\x20executing'},{'name':a66_0x49097b(0xa3),'meowKey':a66_0x49097b(0xa3),'type':a66_0x49097b(0xb8),'description':a66_0x49097b(0x9f)},{'name':'non-interactive','meowKey':a66_0x49097b(0xc8),'type':'boolean','description':a66_0x49097b(0xcb)},{'name':a66_0x49097b(0xad),'meowKey':a66_0x49097b(0xad),'type':a66_0x49097b(0xb8),'description':a66_0x49097b(0xbe)},{'name':'ci','meowKey':'ci','type':a66_0x49097b(0xb8),'description':a66_0x49097b(0xbb),'hidden':!![]},{'name':'help','meowKey':a66_0x49097b(0x97),'type':'boolean','description':a66_0x49097b(0x9b)},{'name':'id','meowKey':'id','type':a66_0x49097b(0xc2),'description':a66_0x49097b(0xc7),'hidden':!![]},{'name':a66_0x49097b(0xb4),'meowKey':'name','type':a66_0x49097b(0xc2),'description':a66_0x49097b(0xcc),'hidden':!![]},{'name':a66_0x49097b(0x98),'meowKey':a66_0x49097b(0x98),'type':a66_0x49097b(0xc2),'description':a66_0x49097b(0x99),'hidden':!![]},{'name':'params','meowKey':a66_0x49097b(0xb5),'type':'string','description':a66_0x49097b(0xa6),'hidden':!![]},{'name':a66_0x49097b(0xb0),'meowKey':a66_0x49097b(0xb0),'type':a66_0x49097b(0xb8),'description':a66_0x49097b(0xc3),'hidden':!![]},{'name':a66_0x49097b(0xaa),'meowKey':a66_0x49097b(0xaa),'type':a66_0x49097b(0xb8),'description':a66_0x49097b(0xb9),'hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set([a66_0x49097b(0xa4),'app',a66_0x49097b(0xc0),a66_0x49097b(0x9e),'jq','dry-run',a66_0x49097b(0xa3),a66_0x49097b(0xac),'ci']);export function buildMeowFlags(){const _0xb459ea=a66_0x49097b;return Object['fromEntries'](GLOBAL_FLAGS[_0xb459ea(0xc1)](_0x420d69=>[_0x420d69[_0xb459ea(0xbd)],{'type':_0x420d69[_0xb459ea(0x9c)]}]));}
@@ -1 +1 @@
1
- const a67_0x250607=a67_0x5640;function a67_0x13bd(){const _0x7cdcdb=['718039PcDdWY','907332PnPcNo','compress','155Wukcdn','30036SxfbKh','5773710GdWNpH','write','en-US','11qbdsVk','production','869964GjuMIl','207YZWrpM','138584unDyxA','243762CBcFgQ','49JceZXP','4MAGPgo'];a67_0x13bd=function(){return _0x7cdcdb;};return a67_0x13bd();}function a67_0x5640(_0x44e021,_0x5ea5d7){_0x44e021=_0x44e021-0x135;const _0x13bdcd=a67_0x13bd();let _0x5640d7=_0x13bdcd[_0x44e021];return _0x5640d7;}(function(_0x403cb7,_0x4bb839){const _0xaf7dc=a67_0x5640,_0x4876b4=_0x403cb7();while(!![]){try{const _0x212cf9=parseInt(_0xaf7dc(0x139))/0x1+parseInt(_0xaf7dc(0x138))/0x2*(-parseInt(_0xaf7dc(0x143))/0x3)+parseInt(_0xaf7dc(0x13d))/0x4*(parseInt(_0xaf7dc(0x13c))/0x5)+-parseInt(_0xaf7dc(0x136))/0x6*(-parseInt(_0xaf7dc(0x137))/0x7)+-parseInt(_0xaf7dc(0x135))/0x8*(-parseInt(_0xaf7dc(0x144))/0x9)+-parseInt(_0xaf7dc(0x13e))/0xa+parseInt(_0xaf7dc(0x141))/0xb*(-parseInt(_0xaf7dc(0x13a))/0xc);if(_0x212cf9===_0x4bb839)break;else _0x4876b4['push'](_0x4876b4['shift']());}catch(_0x6efa29){_0x4876b4['push'](_0x4876b4['shift']());}}}(a67_0x13bd,0x61d26));export const DEFAULT_APP_PROFILE_NAME='main';export const DEFAULT_CONFIG_VALUES={'env':a67_0x250607(0x142),'format':a67_0x250607(0x13b),'locale':a67_0x250607(0x140),'riskLevel':a67_0x250607(0x13f)};export const DEFAULT_COMMAND_OUTPUT_FORMAT='compress';
1
+ const a67_0x2e522a=a67_0x326e;(function(_0x484c6a,_0x559105){const _0x45c6ee=a67_0x326e,_0x32804d=_0x484c6a();while(!![]){try{const _0x49c447=parseInt(_0x45c6ee(0x80))/0x1+-parseInt(_0x45c6ee(0x7d))/0x2+parseInt(_0x45c6ee(0x7a))/0x3*(parseInt(_0x45c6ee(0x7c))/0x4)+parseInt(_0x45c6ee(0x84))/0x5*(parseInt(_0x45c6ee(0x7b))/0x6)+parseInt(_0x45c6ee(0x7e))/0x7+-parseInt(_0x45c6ee(0x79))/0x8*(-parseInt(_0x45c6ee(0x82))/0x9)+parseInt(_0x45c6ee(0x7f))/0xa*(-parseInt(_0x45c6ee(0x83))/0xb);if(_0x49c447===_0x559105)break;else _0x32804d['push'](_0x32804d['shift']());}catch(_0x5d94ff){_0x32804d['push'](_0x32804d['shift']());}}}(a67_0x47f3,0xf1bcb));export const DEFAULT_APP_PROFILE_NAME='main';function a67_0x326e(_0x48ac12,_0xec88be){_0x48ac12=_0x48ac12-0x77;const _0x47f35f=a67_0x47f3();let _0x326e1a=_0x47f35f[_0x48ac12];return _0x326e1a;}function a67_0x47f3(){const _0x501bb1=['12986750OfdQDN','2030QmefjT','868989rzMeDM','compress','5298552EkaVer','318175SkbQeM','8626520rJHYKa','write','en-US','16XAuKTT','174fCMdbc','6kHZRng','111824UtMgqu','773034tzntjr'];a67_0x47f3=function(){return _0x501bb1;};return a67_0x47f3();}export const DEFAULT_CONFIG_VALUES={'env':'production','format':a67_0x2e522a(0x81),'locale':a67_0x2e522a(0x78),'riskLevel':a67_0x2e522a(0x77)};export const DEFAULT_COMMAND_OUTPUT_FORMAT='compress';
@@ -1 +1 @@
1
- const a68_0x30cc2d=a68_0x4110;(function(_0x2c8e77,_0x496a65){const _0x42d538=a68_0x4110,_0x5e14f5=_0x2c8e77();while(!![]){try{const _0x10614b=parseInt(_0x42d538(0x116))/0x1+parseInt(_0x42d538(0x115))/0x2*(parseInt(_0x42d538(0x117))/0x3)+-parseInt(_0x42d538(0x114))/0x4+parseInt(_0x42d538(0x113))/0x5*(parseInt(_0x42d538(0x118))/0x6)+parseInt(_0x42d538(0x10e))/0x7*(-parseInt(_0x42d538(0x119))/0x8)+-parseInt(_0x42d538(0x110))/0x9*(parseInt(_0x42d538(0x11b))/0xa)+parseInt(_0x42d538(0x10f))/0xb*(parseInt(_0x42d538(0x112))/0xc);if(_0x10614b===_0x496a65)break;else _0x5e14f5['push'](_0x5e14f5['shift']());}catch(_0x57fc0a){_0x5e14f5['push'](_0x5e14f5['shift']());}}}(a68_0x30b0,0x42a8a));function a68_0x30b0(){const _0x412955=['760650CRghqG','414uITCix','712UJCQxV','npmRegistryBaseUrl','7600ZwkpaT','skillSource','36869VxxHMu','759SCaWYE','90UuqPwb','npmPackageName','46536GjONYI','2745IHEtuB','678200iErwlD','4yPwfVa','106384ZPOhzt'];a68_0x30b0=function(){return _0x412955;};return a68_0x30b0();}function a68_0x4110(_0x3ded92,_0x542b0d){_0x3ded92=_0x3ded92-0x10d;const _0x30b01d=a68_0x30b0();let _0x41108d=_0x30b01d[_0x3ded92];return _0x41108d;}import{PRODUCT_CONFIG}from'../constant/product.js';export const LOVRABET_NPM_PACKAGE_NAME=PRODUCT_CONFIG[a68_0x30cc2d(0x111)];export const LOVRABET_SKILL_SOURCE=PRODUCT_CONFIG[a68_0x30cc2d(0x10d)];export const NPM_REGISTRY_BASE_URL=PRODUCT_CONFIG[a68_0x30cc2d(0x11a)];
1
+ function a68_0x42d6(_0x1a1e7a,_0x5db797){_0x1a1e7a=_0x1a1e7a-0x13e;const _0x599afd=a68_0x599a();let _0x42d68a=_0x599afd[_0x1a1e7a];return _0x42d68a;}const a68_0x41a1bb=a68_0x42d6;function a68_0x599a(){const _0x57b6a3=['3247040kOpoAC','2538942UVXNWv','5GHQUXR','36CzBsxL','2460198jFyEYq','3959802rYYgZS','skillSource','24Nvmanw','38141aoTxdM','9177296AyFoVc','npmRegistryBaseUrl','1806796FuQumQ'];a68_0x599a=function(){return _0x57b6a3;};return a68_0x599a();}(function(_0x5e4df9,_0x5a399c){const _0x206e27=a68_0x42d6,_0x48a523=_0x5e4df9();while(!![]){try{const _0x4da9cf=parseInt(_0x206e27(0x142))/0x1*(parseInt(_0x206e27(0x141))/0x2)+parseInt(_0x206e27(0x13f))/0x3+parseInt(_0x206e27(0x145))/0x4*(-parseInt(_0x206e27(0x148))/0x5)+-parseInt(_0x206e27(0x13e))/0x6+-parseInt(_0x206e27(0x147))/0x7+-parseInt(_0x206e27(0x143))/0x8+-parseInt(_0x206e27(0x149))/0x9*(-parseInt(_0x206e27(0x146))/0xa);if(_0x4da9cf===_0x5a399c)break;else _0x48a523['push'](_0x48a523['shift']());}catch(_0x4ee59c){_0x48a523['push'](_0x48a523['shift']());}}}(a68_0x599a,0xac14a));import{PRODUCT_CONFIG}from'../constant/product.js';export const LOVRABET_NPM_PACKAGE_NAME=PRODUCT_CONFIG['npmPackageName'];export const LOVRABET_SKILL_SOURCE=PRODUCT_CONFIG[a68_0x41a1bb(0x140)];export const NPM_REGISTRY_BASE_URL=PRODUCT_CONFIG[a68_0x41a1bb(0x144)];
@@ -1 +1 @@
1
- const a69_0x64b5a8=a69_0x319f;(function(_0x23def2,_0x13d2b6){const _0x1ee66d=a69_0x319f,_0x1f7a8c=_0x23def2();while(!![]){try{const _0x231818=parseInt(_0x1ee66d(0xca))/0x1+parseInt(_0x1ee66d(0xbe))/0x2+-parseInt(_0x1ee66d(0xbc))/0x3+-parseInt(_0x1ee66d(0xc7))/0x4*(-parseInt(_0x1ee66d(0xc8))/0x5)+parseInt(_0x1ee66d(0xc5))/0x6*(-parseInt(_0x1ee66d(0xc3))/0x7)+-parseInt(_0x1ee66d(0xc2))/0x8+-parseInt(_0x1ee66d(0xc1))/0x9*(-parseInt(_0x1ee66d(0xc0))/0xa);if(_0x231818===_0x13d2b6)break;else _0x1f7a8c['push'](_0x1f7a8c['shift']());}catch(_0x4978c0){_0x1f7a8c['push'](_0x1f7a8c['shift']());}}}(a69_0x2324,0x527ff));import{getEnv,isProduction}from'../constant/env.js';import{PRODUCT_CONFIG}from'../constant/product.js';let customApiDomain,customUserDomain,customRuntimeDomain,customSkillHubDomain;function a69_0x319f(_0x24b120,_0x27d661){_0x24b120=_0x24b120-0xba;const _0x23246c=a69_0x2324();let _0x319fc8=_0x23246c[_0x24b120];return _0x319fc8;}export function initDomains(_0x38e847){const _0x707e5c=a69_0x319f;customApiDomain=_0x38e847?.[_0x707e5c(0xc9)],customUserDomain=_0x38e847?.[_0x707e5c(0xbf)],customRuntimeDomain=_0x38e847?.[_0x707e5c(0xba)],customSkillHubDomain=_0x38e847?.['skillHubDomain'];}export const getUserDomain=()=>customUserDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a69_0x64b5a8(0xbb)][a69_0x64b5a8(0xc6)][a69_0x64b5a8(0xcd)]:PRODUCT_CONFIG['domains']['nonProduction']['user']);export const getApiDomain=()=>customApiDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a69_0x64b5a8(0xbb)]['production'][a69_0x64b5a8(0xbd)]:PRODUCT_CONFIG[a69_0x64b5a8(0xbb)][a69_0x64b5a8(0xcb)][a69_0x64b5a8(0xbd)]);export const getRuntimeDomain=()=>customRuntimeDomain||(isProduction(getEnv())?PRODUCT_CONFIG['domains'][a69_0x64b5a8(0xc6)][a69_0x64b5a8(0xc4)]:PRODUCT_CONFIG[a69_0x64b5a8(0xbb)]['nonProduction']['runtime']);function a69_0x2324(){const _0x25df76=['runtimeDomain','domains','290469zYCvVL','api','224140uXTOOJ','userDomain','348430BWhSDB','18JydZCG','539056zfLgPE','10227fqARqO','runtime','60RhxEHq','production','365188JQHjLe','5jqfFKz','apiDomain','243681zbTxHK','nonProduction','skillhub','user'];a69_0x2324=function(){return _0x25df76;};return a69_0x2324();}export const getSkillHubDomain=()=>customSkillHubDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a69_0x64b5a8(0xbb)]['production']['skillhub']:PRODUCT_CONFIG[a69_0x64b5a8(0xbb)][a69_0x64b5a8(0xcb)][a69_0x64b5a8(0xcc)]);
1
+ const a69_0xf230d0=a69_0x1347;function a69_0x1347(_0x19b078,_0x45f731){_0x19b078=_0x19b078-0x176;const _0xe2d68d=a69_0xe2d6();let _0x1347b7=_0xe2d68d[_0x19b078];return _0x1347b7;}(function(_0x4ed426,_0x2a7af8){const _0x3884c1=a69_0x1347,_0x15a448=_0x4ed426();while(!![]){try{const _0x25edaf=parseInt(_0x3884c1(0x176))/0x1*(parseInt(_0x3884c1(0x187))/0x2)+-parseInt(_0x3884c1(0x184))/0x3*(-parseInt(_0x3884c1(0x181))/0x4)+-parseInt(_0x3884c1(0x17f))/0x5+-parseInt(_0x3884c1(0x17b))/0x6+parseInt(_0x3884c1(0x177))/0x7*(-parseInt(_0x3884c1(0x189))/0x8)+-parseInt(_0x3884c1(0x185))/0x9+-parseInt(_0x3884c1(0x183))/0xa*(-parseInt(_0x3884c1(0x178))/0xb);if(_0x25edaf===_0x2a7af8)break;else _0x15a448['push'](_0x15a448['shift']());}catch(_0x1e5733){_0x15a448['push'](_0x15a448['shift']());}}}(a69_0xe2d6,0x20180));import{getEnv,isProduction}from'../constant/env.js';import{PRODUCT_CONFIG}from'../constant/product.js';let customApiDomain,customUserDomain,customRuntimeDomain,customSkillHubDomain;export function initDomains(_0x236ba6){const _0x3bd634=a69_0x1347;customApiDomain=_0x236ba6?.[_0x3bd634(0x180)],customUserDomain=_0x236ba6?.[_0x3bd634(0x17d)],customRuntimeDomain=_0x236ba6?.[_0x3bd634(0x179)],customSkillHubDomain=_0x236ba6?.['skillHubDomain'];}function a69_0xe2d6(){const _0x21fa7b=['api','586450RGsCBh','apiDomain','20vikyIz','skillhub','14130NuaYug','121575HnITko','1471725HaoUIA','nonProduction','242sdNjKh','production','4136wBVxyI','domains','641AuNwKG','147JUhlpJ','2134uwzMYx','runtimeDomain','runtime','787080mKcyXL','user','userDomain'];a69_0xe2d6=function(){return _0x21fa7b;};return a69_0xe2d6();}export const getUserDomain=()=>customUserDomain||(isProduction(getEnv())?PRODUCT_CONFIG['domains'][a69_0xf230d0(0x188)][a69_0xf230d0(0x17c)]:PRODUCT_CONFIG[a69_0xf230d0(0x18a)][a69_0xf230d0(0x186)][a69_0xf230d0(0x17c)]);export const getApiDomain=()=>customApiDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a69_0xf230d0(0x18a)][a69_0xf230d0(0x188)][a69_0xf230d0(0x17e)]:PRODUCT_CONFIG[a69_0xf230d0(0x18a)]['nonProduction']['api']);export const getRuntimeDomain=()=>customRuntimeDomain||(isProduction(getEnv())?PRODUCT_CONFIG['domains'][a69_0xf230d0(0x188)][a69_0xf230d0(0x17a)]:PRODUCT_CONFIG[a69_0xf230d0(0x18a)][a69_0xf230d0(0x186)][a69_0xf230d0(0x17a)]);export const getSkillHubDomain=()=>customSkillHubDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a69_0xf230d0(0x18a)][a69_0xf230d0(0x188)][a69_0xf230d0(0x182)]:PRODUCT_CONFIG[a69_0xf230d0(0x18a)][a69_0xf230d0(0x186)]['skillhub']);
@@ -1 +1 @@
1
- const a70_0x42b1c0=a70_0x58e5;(function(_0x1c3fa5,_0x4264ae){const _0x29a065=a70_0x58e5,_0x2cb507=_0x1c3fa5();while(!![]){try{const _0x143d80=-parseInt(_0x29a065(0x14d))/0x1*(parseInt(_0x29a065(0x155))/0x2)+-parseInt(_0x29a065(0x153))/0x3*(parseInt(_0x29a065(0x152))/0x4)+parseInt(_0x29a065(0x14c))/0x5+parseInt(_0x29a065(0x158))/0x6*(parseInt(_0x29a065(0x154))/0x7)+-parseInt(_0x29a065(0x14e))/0x8+-parseInt(_0x29a065(0x157))/0x9+parseInt(_0x29a065(0x151))/0xa;if(_0x143d80===_0x4264ae)break;else _0x2cb507['push'](_0x2cb507['shift']());}catch(_0x5176b9){_0x2cb507['push'](_0x2cb507['shift']());}}}(a70_0x63ad,0x1a565));import{productEnv}from'../constant/product.js';function a70_0x58e5(_0x11bf72,_0x55abc0){_0x11bf72=_0x11bf72-0x14c;const _0x63ad8f=a70_0x63ad();let _0x58e54f=_0x63ad8f[_0x11bf72];return _0x58e54f;}export const RUNTIME_ENV_VALUES=['production',a70_0x42b1c0(0x159),a70_0x42b1c0(0x150)];export function normalizeEnv(_0x2fc8e4){return _0x2fc8e4==='online'?'production':_0x2fc8e4;}export function isProduction(_0x58bef1){const _0x364405=a70_0x42b1c0;return normalizeEnv(_0x58bef1)===_0x364405(0x14f);}export function isDaily(_0x30a9fd){const _0x3c50c1=a70_0x42b1c0;return normalizeEnv(_0x30a9fd)===_0x3c50c1(0x150);}function a70_0x63ad(){const _0x38b6fd=['374hIxMQy','dev','1932084sLMSPK','822216fqpbfr','development','1025935SFaFUy','45YqYKXd','1114280bGNqGk','production','daily','2581590XTHqCm','148AgUDUH','10551YLCtvW','7ogURRL'];a70_0x63ad=function(){return _0x38b6fd;};return a70_0x63ad();}export function isDev(_0x5a1563){const _0x51fb76=a70_0x42b1c0,_0x31c409=normalizeEnv(_0x5a1563);return _0x31c409===_0x51fb76(0x159)||_0x31c409===_0x51fb76(0x156);}let env=normalizeEnv(productEnv('ENV')||a70_0x42b1c0(0x14f));export function getEnv(){return env;}export function initEnv(_0x2a7d28){env=normalizeEnv(_0x2a7d28);}
1
+ const a70_0x27a9a9=a70_0x46e0;(function(_0x25d99e,_0x1545cd){const _0x11fdfe=a70_0x46e0,_0x2fed1e=_0x25d99e();while(!![]){try{const _0x38f2fb=-parseInt(_0x11fdfe(0xf7))/0x1+-parseInt(_0x11fdfe(0xf8))/0x2+parseInt(_0x11fdfe(0xf9))/0x3+parseInt(_0x11fdfe(0xf4))/0x4*(-parseInt(_0x11fdfe(0xf5))/0x5)+-parseInt(_0x11fdfe(0xec))/0x6+parseInt(_0x11fdfe(0xee))/0x7+-parseInt(_0x11fdfe(0xf6))/0x8*(-parseInt(_0x11fdfe(0xef))/0x9);if(_0x38f2fb===_0x1545cd)break;else _0x2fed1e['push'](_0x2fed1e['shift']());}catch(_0x5a7168){_0x2fed1e['push'](_0x2fed1e['shift']());}}}(a70_0x3a08,0x5d86f));import{productEnv}from'../constant/product.js';function a70_0x46e0(_0x53898f,_0x58d7cf){_0x53898f=_0x53898f-0xec;const _0x3a08ac=a70_0x3a08();let _0x46e037=_0x3a08ac[_0x53898f];return _0x46e037;}export const RUNTIME_ENV_VALUES=[a70_0x27a9a9(0xf0),'development',a70_0x27a9a9(0xf3)];export function normalizeEnv(_0x347bf7){const _0xd699f1=a70_0x27a9a9;return _0x347bf7===_0xd699f1(0xf2)?_0xd699f1(0xf0):_0x347bf7;}export function isProduction(_0x53a334){const _0x465cd8=a70_0x27a9a9;return normalizeEnv(_0x53a334)===_0x465cd8(0xf0);}export function isDaily(_0x513595){const _0x116a63=a70_0x27a9a9;return normalizeEnv(_0x513595)===_0x116a63(0xf3);}export function isDev(_0x547111){const _0x398f9a=a70_0x27a9a9,_0x9cccb=normalizeEnv(_0x547111);return _0x9cccb===_0x398f9a(0xed)||_0x9cccb===_0x398f9a(0xf1);}let env=normalizeEnv(productEnv('ENV')||'production');export function getEnv(){return env;}export function initEnv(_0xcd78ec){env=normalizeEnv(_0xcd78ec);}function a70_0x3a08(){const _0x15c36d=['daily','20kELYuG','472330RTsEbB','504296qBBZnK','595557CBYqkn','688234JrYnWT','43611QGlYQi','1775814VgfgJf','development','3945445XEihnL','216hVfZRv','production','dev','online'];a70_0x3a08=function(){return _0x15c36d;};return a70_0x3a08();}
@@ -1 +1 @@
1
- const a71_0x408205=a71_0x3cdc;function a71_0x3cdc(_0x9895e1,_0x13d8bb){_0x9895e1=_0x9895e1-0x16e;const _0x11face=a71_0x11fa();let _0x3cdc00=_0x11face[_0x9895e1];return _0x3cdc00;}(function(_0x1e3ac7,_0x44c93b){const _0x27b358=a71_0x3cdc,_0x515b49=_0x1e3ac7();while(!![]){try{const _0x510d14=-parseInt(_0x27b358(0x177))/0x1+parseInt(_0x27b358(0x170))/0x2+-parseInt(_0x27b358(0x173))/0x3*(parseInt(_0x27b358(0x172))/0x4)+-parseInt(_0x27b358(0x16f))/0x5+parseInt(_0x27b358(0x174))/0x6*(parseInt(_0x27b358(0x16e))/0x7)+parseInt(_0x27b358(0x178))/0x8+-parseInt(_0x27b358(0x171))/0x9*(-parseInt(_0x27b358(0x175))/0xa);if(_0x510d14===_0x44c93b)break;else _0x515b49['push'](_0x515b49['shift']());}catch(_0x19a50a){_0x515b49['push'](_0x515b49['shift']());}}}(a71_0x11fa,0x565a3));function a71_0x11fa(){const _0xdc502=['2459630tzwclt','json','553040psCPzz','2576736eQobTC','2750279ECYXDZ','1965200Ggavpw','549532CsWniu','18oDQTds','103944QGONpj','21NlmWFt','6KOuGjm'];a71_0x11fa=function(){return _0xdc502;};return a71_0x11fa();}export const OUTPUT_FORMAT_VALUES=[a71_0x408205(0x176),'pretty','compress'];
1
+ function a71_0x9505(_0x296085,_0x5de51e){_0x296085=_0x296085-0x143;const _0x526b88=a71_0x526b();let _0x9505db=_0x526b88[_0x296085];return _0x9505db;}const a71_0x3af4d5=a71_0x9505;(function(_0x2c76bb,_0x501f8e){const _0x47ea1a=a71_0x9505,_0x882c7d=_0x2c76bb();while(!![]){try{const _0x24c13e=parseInt(_0x47ea1a(0x143))/0x1+parseInt(_0x47ea1a(0x146))/0x2*(parseInt(_0x47ea1a(0x147))/0x3)+-parseInt(_0x47ea1a(0x144))/0x4*(-parseInt(_0x47ea1a(0x14a))/0x5)+parseInt(_0x47ea1a(0x150))/0x6*(parseInt(_0x47ea1a(0x14b))/0x7)+-parseInt(_0x47ea1a(0x145))/0x8*(parseInt(_0x47ea1a(0x14f))/0x9)+parseInt(_0x47ea1a(0x14e))/0xa+parseInt(_0x47ea1a(0x149))/0xb*(-parseInt(_0x47ea1a(0x148))/0xc);if(_0x24c13e===_0x501f8e)break;else _0x882c7d['push'](_0x882c7d['shift']());}catch(_0x2cc194){_0x882c7d['push'](_0x882c7d['shift']());}}}(a71_0x526b,0xcfa2e));function a71_0x526b(){const _0x1f653a=['3126390LtMLMV','2741301yqcsqI','2550fihCTQ','1253241aymHjH','28316yvNSrs','40AgDLGM','2ZUjKvO','2240484pHdBeJ','1053732rtmeWs','253saEgtd','335MEaZZb','26453njtZNO','json','pretty'];a71_0x526b=function(){return _0x1f653a;};return a71_0x526b();}export const OUTPUT_FORMAT_VALUES=[a71_0x3af4d5(0x14c),a71_0x3af4d5(0x14d),'compress'];
@@ -1 +1 @@
1
- function a72_0x2d7d(_0x5703c2,_0x9954a9){_0x5703c2=_0x5703c2-0x8e;const _0x2a4c37=a72_0x2a4c();let _0x2d7dd2=_0x2a4c37[_0x5703c2];return _0x2d7dd2;}const a72_0xd58be8=a72_0x2d7d;(function(_0x2aa672,_0x1480d9){const _0x6f136f=a72_0x2d7d,_0x5d8f33=_0x2aa672();while(!![]){try{const _0x5306d1=-parseInt(_0x6f136f(0x8e))/0x1+-parseInt(_0x6f136f(0xa6))/0x2*(-parseInt(_0x6f136f(0x9f))/0x3)+-parseInt(_0x6f136f(0xa5))/0x4*(parseInt(_0x6f136f(0xa9))/0x5)+parseInt(_0x6f136f(0x95))/0x6*(parseInt(_0x6f136f(0x92))/0x7)+-parseInt(_0x6f136f(0xa3))/0x8+-parseInt(_0x6f136f(0xa0))/0x9+parseInt(_0x6f136f(0x90))/0xa*(parseInt(_0x6f136f(0x91))/0xb);if(_0x5306d1===_0x1480d9)break;else _0x5d8f33['push'](_0x5d8f33['shift']());}catch(_0x37f94e){_0x5d8f33['push'](_0x5d8f33['shift']());}}}(a72_0x2a4c,0x61808));export const PRODUCT_CONFIG={'cliBinName':'lovrabet','cliDisplayName':a72_0xd58be8(0x9d),'npmPackageName':a72_0xd58be8(0x9c),'skillSource':a72_0xd58be8(0xab),'npmRegistryBaseUrl':a72_0xd58be8(0xa4),'envPrefix':a72_0xd58be8(0x98),'legacyEnvPrefixes':[a72_0xd58be8(0x9e)],'configFileNames':[a72_0xd58be8(0x9b),a72_0xd58be8(0xa1)],'newConfigFileName':a72_0xd58be8(0x9b),'homeDirName':a72_0xd58be8(0x93),'logFileName':a72_0xd58be8(0x97),'invokeSource':a72_0xd58be8(0xa7),'userCenterDisplayName':a72_0xd58be8(0x8f),'skipNpxSkillsEnvSuffix':'SKIP_NPX_SKILLS','domains':{'production':{'user':'https://user.lovrabet.com','api':'https://api.lovrabet.com','runtime':a72_0xd58be8(0xa2),'skillhub':a72_0xd58be8(0x94)},'nonProduction':{'user':a72_0xd58be8(0x99),'api':a72_0xd58be8(0x96),'runtime':a72_0xd58be8(0xa8),'skillhub':'https://skills-daily.lovrabet.com'}},'accessKeyCreatePath':'/user/ak'};export function productEnvName(_0x5af5db){return PRODUCT_CONFIG['envPrefix']+'_'+_0x5af5db;}function a72_0x2a4c(){const _0x45d497=['Lovrabet\x20Runtime\x20CLI','RABETBASE','3OrYvdM','1818612FHdBLx','.lovrabetrc','https://runtime.lovrabet.com','2046976gPMqGV','https://registry.npmjs.org','12332zyoemJ','389542KjDcJz','cli:lovrabet-runtime','https://daily-runtime.lovrabet.com','1180AlpjpR','map','lovrabet/lovrabet-cli','435931OGZaes','Lovrabet\x20User\x20Center','9008410vsaXga','22wsPZmY','170618BqvwMj','.lovrabet','https://skills.lovrabet.com','6WWsPba','https://daily-api.lovrabet.com','.lovrabet-runtime.log','LOVRABET','https://user-daily.lovrabet.com','legacyEnvPrefixes','.lovrabet.json','@lovrabet/lovrabet-cli'];a72_0x2a4c=function(){return _0x45d497;};return a72_0x2a4c();}export function productEnvNames(_0x4a4d27){const _0x331b50=a72_0xd58be8;return[productEnvName(_0x4a4d27),...PRODUCT_CONFIG[_0x331b50(0x9a)][_0x331b50(0xaa)](_0x368945=>_0x368945+'_'+_0x4a4d27)];}export function productEnv(_0x16b527){for(const _0x212318 of productEnvNames(_0x16b527)){const _0x4a65cf=process.env[_0x212318];if(_0x4a65cf!==undefined)return _0x4a65cf;}return undefined;}
1
+ const a72_0x13cfbc=a72_0x5249;(function(_0x6c8266,_0x3c74c9){const _0x3f553d=a72_0x5249,_0x338ae0=_0x6c8266();while(!![]){try{const _0xa48aaf=parseInt(_0x3f553d(0x1a0))/0x1+parseInt(_0x3f553d(0x198))/0x2*(parseInt(_0x3f553d(0x196))/0x3)+-parseInt(_0x3f553d(0x1a2))/0x4+-parseInt(_0x3f553d(0x1a6))/0x5*(-parseInt(_0x3f553d(0x1a8))/0x6)+-parseInt(_0x3f553d(0x19a))/0x7+parseInt(_0x3f553d(0x1a5))/0x8+-parseInt(_0x3f553d(0x19e))/0x9;if(_0xa48aaf===_0x3c74c9)break;else _0x338ae0['push'](_0x338ae0['shift']());}catch(_0x1b03d6){_0x338ae0['push'](_0x338ae0['shift']());}}}(a72_0x25ad,0x96b9e));export const PRODUCT_CONFIG={'cliBinName':a72_0x13cfbc(0x199),'cliDisplayName':a72_0x13cfbc(0x19f),'npmPackageName':a72_0x13cfbc(0x195),'skillSource':a72_0x13cfbc(0x192),'npmRegistryBaseUrl':a72_0x13cfbc(0x18f),'envPrefix':'LOVRABET','legacyEnvPrefixes':[a72_0x13cfbc(0x1a7)],'configFileNames':[a72_0x13cfbc(0x19c),a72_0x13cfbc(0x191)],'newConfigFileName':a72_0x13cfbc(0x19c),'homeDirName':a72_0x13cfbc(0x194),'logFileName':'.lovrabet-runtime.log','invokeSource':a72_0x13cfbc(0x1a9),'userCenterDisplayName':a72_0x13cfbc(0x1ac),'skipNpxSkillsEnvSuffix':a72_0x13cfbc(0x19b),'domains':{'production':{'user':a72_0x13cfbc(0x1a4),'api':a72_0x13cfbc(0x190),'runtime':a72_0x13cfbc(0x19d),'skillhub':a72_0x13cfbc(0x193)},'nonProduction':{'user':a72_0x13cfbc(0x1a3),'api':a72_0x13cfbc(0x1aa),'runtime':a72_0x13cfbc(0x1ab),'skillhub':a72_0x13cfbc(0x197)}},'accessKeyCreatePath':a72_0x13cfbc(0x1a1)};export function productEnvName(_0x52c5fc){return PRODUCT_CONFIG['envPrefix']+'_'+_0x52c5fc;}export function productEnvNames(_0x5d5575){return[productEnvName(_0x5d5575),...PRODUCT_CONFIG['legacyEnvPrefixes']['map'](_0x4ee7cb=>_0x4ee7cb+'_'+_0x5d5575)];}function a72_0x5249(_0x4762a6,_0x24b0a0){_0x4762a6=_0x4762a6-0x18f;const _0x25ad89=a72_0x25ad();let _0x524925=_0x25ad89[_0x4762a6];return _0x524925;}function a72_0x25ad(){const _0x43c33d=['https://skills.lovrabet.com','.lovrabet','@lovrabet/lovrabet-cli','3qwSBkf','https://skills-daily.lovrabet.com','1529036zSkFqm','lovrabet','8398369xXRuap','SKIP_NPX_SKILLS','.lovrabet.json','https://runtime.lovrabet.com','10212741RLpetu','Lovrabet\x20Runtime\x20CLI','870659MIAMZh','/user/ak','2206940taVaro','https://user-daily.lovrabet.com','https://user.lovrabet.com','9711336YQhEWz','172245hiRTXL','RABETBASE','114PVmiDU','cli:lovrabet-runtime','https://daily-api.lovrabet.com','https://daily-runtime.lovrabet.com','Lovrabet\x20User\x20Center','https://registry.npmjs.org','https://api.lovrabet.com','.lovrabetrc','lovrabet/lovrabet-cli'];a72_0x25ad=function(){return _0x43c33d;};return a72_0x25ad();}export function productEnv(_0x2a5380){for(const _0x2a0316 of productEnvNames(_0x2a5380)){const _0x12e164=process.env[_0x2a0316];if(_0x12e164!==undefined)return _0x12e164;}return undefined;}
@@ -1 +1 @@
1
- const a73_0x228bb5=a73_0x8184;(function(_0x19927f,_0x43a43b){const _0x38fc71=a73_0x8184,_0x4c4fa0=_0x19927f();while(!![]){try{const _0x4e2ded=parseInt(_0x38fc71(0x1cc))/0x1+parseInt(_0x38fc71(0x1c9))/0x2*(-parseInt(_0x38fc71(0x1c6))/0x3)+-parseInt(_0x38fc71(0x1c5))/0x4*(-parseInt(_0x38fc71(0x1ce))/0x5)+parseInt(_0x38fc71(0x1c8))/0x6+-parseInt(_0x38fc71(0x1c7))/0x7*(-parseInt(_0x38fc71(0x1d0))/0x8)+-parseInt(_0x38fc71(0x1cf))/0x9*(-parseInt(_0x38fc71(0x1cb))/0xa)+-parseInt(_0x38fc71(0x1cd))/0xb;if(_0x4e2ded===_0x43a43b)break;else _0x4c4fa0['push'](_0x4c4fa0['shift']());}catch(_0x3e92e1){_0x4c4fa0['push'](_0x4c4fa0['shift']());}}}(a73_0xc8f7,0x4c301));export const RISK_LEVEL_VALUES=['read',a73_0x228bb5(0x1ca),'high-risk-write'];function a73_0x8184(_0x52da45,_0x527489){_0x52da45=_0x52da45-0x1c5;const _0xc8f71d=a73_0xc8f7();let _0x8184ab=_0xc8f71d[_0x52da45];return _0x8184ab;}function a73_0xc8f7(){const _0x281e7c=['27632MEmXXI','557616LxfWEa','678986VJxBBO','2626506YKXXEq','2meHNGA','write','1725910OtLouF','534553zivilb','14415280IzKyXb','90QTHNmp','27raOToW','16XfSbiU'];a73_0xc8f7=function(){return _0x281e7c;};return a73_0xc8f7();}
1
+ const a73_0x11b060=a73_0x29e7;function a73_0x29e7(_0x30ae16,_0x5e26a1){_0x30ae16=_0x30ae16-0x175;const _0x384659=a73_0x3846();let _0x29e730=_0x384659[_0x30ae16];return _0x29e730;}(function(_0x202b88,_0x49be85){const _0x1f5658=a73_0x29e7,_0x1bb0a5=_0x202b88();while(!![]){try{const _0x22112d=parseInt(_0x1f5658(0x175))/0x1*(parseInt(_0x1f5658(0x17d))/0x2)+-parseInt(_0x1f5658(0x176))/0x3*(parseInt(_0x1f5658(0x177))/0x4)+-parseInt(_0x1f5658(0x180))/0x5+-parseInt(_0x1f5658(0x17a))/0x6*(-parseInt(_0x1f5658(0x17c))/0x7)+parseInt(_0x1f5658(0x181))/0x8*(-parseInt(_0x1f5658(0x17b))/0x9)+-parseInt(_0x1f5658(0x17f))/0xa+-parseInt(_0x1f5658(0x17e))/0xb*(-parseInt(_0x1f5658(0x179))/0xc);if(_0x22112d===_0x49be85)break;else _0x1bb0a5['push'](_0x1bb0a5['shift']());}catch(_0x113524){_0x1bb0a5['push'](_0x1bb0a5['shift']());}}}(a73_0x3846,0xec741));export const RISK_LEVEL_VALUES=['read','write',a73_0x11b060(0x178)];function a73_0x3846(){const _0x20881a=['223562fqqGOW','11DdYGnZ','9146080XNFFIU','7017870BLFsIQ','15208LLXtMX','4hGhyTk','123BvKtwx','160316WCntDX','high-risk-write','55102668XecZMh','2400iCdFiX','1611xDEIKZ','4046NAeMDs'];a73_0x3846=function(){return _0x20881a;};return a73_0x3846();}
@@ -1 +1 @@
1
- function a74_0x47fc(){const _0x5634f8=['32862faLCmP','71703BDcGfO','430122hyGzsy','production','1500095NvPGdv','76JbPAgb','112ojQsxy','1956788ZIOMOw','21BFpOnQ','3981YAgjeV','accessKeyCreatePath','15919930fRaoja'];a74_0x47fc=function(){return _0x5634f8;};return a74_0x47fc();}const a74_0x453a01=a74_0x32b4;(function(_0x134e68,_0x5aad2f){const _0x102e1d=a74_0x32b4,_0xbd8ca5=_0x134e68();while(!![]){try{const _0x1330c6=-parseInt(_0x102e1d(0x1d5))/0x1+parseInt(_0x102e1d(0x1cc))/0x2*(parseInt(_0x102e1d(0x1d0))/0x3)+-parseInt(_0x102e1d(0x1ce))/0x4+-parseInt(_0x102e1d(0x1cb))/0x5+-parseInt(_0x102e1d(0x1d3))/0x6*(-parseInt(_0x102e1d(0x1cf))/0x7)+parseInt(_0x102e1d(0x1cd))/0x8*(-parseInt(_0x102e1d(0x1d4))/0x9)+parseInt(_0x102e1d(0x1d2))/0xa;if(_0x1330c6===_0x5aad2f)break;else _0xbd8ca5['push'](_0xbd8ca5['shift']());}catch(_0x4d6058){_0xbd8ca5['push'](_0xbd8ca5['shift']());}}}(a74_0x47fc,0x50126));function a74_0x32b4(_0x406514,_0x2f828b){_0x406514=_0x406514-0x1cb;const _0x47fc44=a74_0x47fc();let _0x32b46c=_0x47fc44[_0x406514];return _0x32b46c;}import{PRODUCT_CONFIG}from'../constant/product.js';export const USER_ACCESS_KEY_CREATE_URL=''+PRODUCT_CONFIG['domains'][a74_0x453a01(0x1d6)]['user']+PRODUCT_CONFIG[a74_0x453a01(0x1d1)];
1
+ function a74_0x5e0e(_0x14c929,_0x4585b7){_0x14c929=_0x14c929-0x192;const _0x363775=a74_0x3637();let _0x5e0e32=_0x363775[_0x14c929];return _0x5e0e32;}const a74_0x3d257d=a74_0x5e0e;(function(_0x52d266,_0x301cc9){const _0x44e4d8=a74_0x5e0e,_0x3f486d=_0x52d266();while(!![]){try{const _0x4ca33f=-parseInt(_0x44e4d8(0x199))/0x1*(-parseInt(_0x44e4d8(0x192))/0x2)+-parseInt(_0x44e4d8(0x19d))/0x3+parseInt(_0x44e4d8(0x19e))/0x4*(-parseInt(_0x44e4d8(0x19f))/0x5)+parseInt(_0x44e4d8(0x197))/0x6+parseInt(_0x44e4d8(0x193))/0x7*(-parseInt(_0x44e4d8(0x19c))/0x8)+-parseInt(_0x44e4d8(0x19a))/0x9*(parseInt(_0x44e4d8(0x19b))/0xa)+parseInt(_0x44e4d8(0x195))/0xb;if(_0x4ca33f===_0x301cc9)break;else _0x3f486d['push'](_0x3f486d['shift']());}catch(_0x57ca90){_0x3f486d['push'](_0x3f486d['shift']());}}}(a74_0x3637,0x812b8));import{PRODUCT_CONFIG}from'../constant/product.js';export const USER_ACCESS_KEY_CREATE_URL=''+PRODUCT_CONFIG[a74_0x3d257d(0x194)][a74_0x3d257d(0x196)]['user']+PRODUCT_CONFIG[a74_0x3d257d(0x198)];function a74_0x3637(){const _0xfb8a8d=['2NvEmcI','84IxIHvQ','domains','18851415kbFKtJ','production','2698764QHlACx','accessKeyCreatePath','35864eOymWZ','91251AmeZyr','510XpuRkw','76696DxwBOt','938751OHivEm','4fcCyXm','3626465ZYtlQV'];a74_0x3637=function(){return _0xfb8a8d;};return a74_0x3637();}
package/lib/context.js CHANGED
@@ -1 +1 @@
1
- const a75_0x30f786=a75_0x259c;(function(_0x182d6a,_0xdd303e){const _0x32f9d8=a75_0x259c,_0x4b1e1b=_0x182d6a();while(!![]){try{const _0x480c7c=-parseInt(_0x32f9d8(0x20c))/0x1*(-parseInt(_0x32f9d8(0x1f1))/0x2)+parseInt(_0x32f9d8(0x222))/0x3+-parseInt(_0x32f9d8(0x1f4))/0x4*(-parseInt(_0x32f9d8(0x200))/0x5)+-parseInt(_0x32f9d8(0x212))/0x6*(parseInt(_0x32f9d8(0x218))/0x7)+-parseInt(_0x32f9d8(0x20e))/0x8*(parseInt(_0x32f9d8(0x202))/0x9)+-parseInt(_0x32f9d8(0x21a))/0xa+parseInt(_0x32f9d8(0x210))/0xb*(parseInt(_0x32f9d8(0x1ea))/0xc);if(_0x480c7c===_0xdd303e)break;else _0x4b1e1b['push'](_0x4b1e1b['shift']());}catch(_0x2d4d3e){_0x4b1e1b['push'](_0x4b1e1b['shift']());}}}(a75_0x1530,0x5e552));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[a75_0x30f786(0x203)];export const NEW_CONFIG_NAME=PRODUCT_CONFIG[a75_0x30f786(0x1e7)];function resolveConfigPath(_0x54150d){for(const _0x5c55fb of CONFIG_NAMES){const _0x4f3505=resolve(_0x54150d,_0x5c55fb);if(existsSync(_0x4f3505))return _0x4f3505;}return undefined;}export function resolveWriteConfigPath(_0x1757f8){const _0x439e4d=a75_0x30f786,_0x46491f=_0x1757f8===_0x439e4d(0x216)?process[_0x439e4d(0x1ff)]():homedir(),_0x203134=resolveConfigPath(_0x46491f);return _0x203134??resolve(_0x46491f,NEW_CONFIG_NAME);}export function readConfigFile(_0x3b0004){const _0x16c9ca=a75_0x30f786;try{if(existsSync(_0x3b0004)){const _0x189181=readFileSync(_0x3b0004,{'encoding':_0x16c9ca(0x21c)});if(_0x189181){const _0x56534b=JSON['parse'](_0x189181);return migrateOnlineEnv(_0x3b0004,_0x56534b),_0x56534b;}}}catch{}return{};}function a75_0x1530(){const _0x2c02f7=['some','APPCODE','stdin','346734XkjlMA','join','APP','4PRSDlI','missing','production','online','apiDomain','app','env','accessKey','error','isRaw','setLogPath','cwd','1552645POAKfl','high-risk-write','301203IBBirf','configFileNames','values','daily','parse','./constant/domain.js','projectConfig','setRawMode','defaultApp','apps','2qPcGwP','find','136WuEUxl','cache','154MvMmrU','object','4734NASqSg','EACCES','message','inherit','project','locale','301HpYfvC','maxRisk','7150720WQzDDH','skillHubDomain','utf8','format','string','PAGE_SIZE','EPERM','runtimeDomain','513201WtFOdj','global','globalConfig','trim','code','riskLevel','./constant/env.js','.tmp','local-alias','stringify','isTTY','raw','newConfigFileName','stdout','true','750852IMAZwM','slice','ENV','appcode'];a75_0x1530=function(){return _0x2c02f7;};return a75_0x1530();}function migrateOnlineEnv(_0x34d5f7,_0x188a59){const _0x5f2042=a75_0x30f786;let _0x120d6d=![];_0x188a59[_0x5f2042(0x1fa)]===_0x5f2042(0x1f7)&&(_0x188a59[_0x5f2042(0x1fa)]=_0x5f2042(0x1f6),_0x120d6d=!![]);if(_0x188a59[_0x5f2042(0x20b)]&&typeof _0x188a59['apps']==='object')for(const _0x593ecd of Object[_0x5f2042(0x204)](_0x188a59[_0x5f2042(0x20b)])){_0x593ecd&&_0x593ecd[_0x5f2042(0x1fa)]===_0x5f2042(0x1f7)&&(_0x593ecd[_0x5f2042(0x1fa)]=_0x5f2042(0x1f6),_0x120d6d=!![]);}if(_0x120d6d)try{writeConfigFile(_0x34d5f7,_0x188a59);}catch{}}export function writeConfigFile(_0x1264b1,_0x4e9833){const _0x4633ae=a75_0x30f786,_0x2be2eb=dirname(_0x1264b1);!existsSync(_0x2be2eb)&&mkdirSync(_0x2be2eb,{'recursive':!![]});const _0x154373=_0x1264b1+_0x4633ae(0x1e2);try{writeFileSync(_0x154373,JSON[_0x4633ae(0x1e4)](_0x4e9833,null,0x2)+'\x0a',{'encoding':_0x4633ae(0x21c),'mode':0x180});try{renameSync(_0x154373,_0x1264b1);}catch(_0x5d59ff){if(_0x5d59ff['code']===_0x4633ae(0x220)||_0x5d59ff[_0x4633ae(0x1df)]==='EXDEV'||_0x5d59ff['code']===_0x4633ae(0x213)){writeFileSync(_0x1264b1,JSON[_0x4633ae(0x1e4)](_0x4e9833,null,0x2)+'\x0a',{'encoding':_0x4633ae(0x21c)});try{unlinkSync(_0x154373);}catch{}}else throw _0x5d59ff;}}catch(_0x4d6aa0){try{unlinkSync(_0x154373);}catch{}throw _0x4d6aa0;}}export function isNonInteractiveMode(_0x56d42e){const _0x513265=a75_0x30f786;return!!(_0x56d42e['nonInteractive']||_0x56d42e['ci']||productEnvNames('CI')[_0x513265(0x1ee)](_0xf4ff88=>process.env[_0xf4ff88]===_0x513265(0x1e9))||process.env.CI==='true'||!process[_0x513265(0x1e8)]['isTTY']||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x4f688f=a75_0x30f786;if(!process['stdin'][_0x4f688f(0x1e5)])return![];try{const _0x187631=process[_0x4f688f(0x1f0)][_0x4f688f(0x1fd)];return process['stdin'][_0x4f688f(0x209)](!![]),process[_0x4f688f(0x1f0)]['setRawMode'](_0x187631??![]),!![];}catch{return![];}}export async function createContext(_0x5055ba){const _0x37de20=a75_0x30f786,_0x6a1a69=readRawConfig(),_0x49154e=buildConfig(_0x6a1a69,_0x5055ba);await initGlobalEnvironment(_0x49154e);const {getUserDomain:_0xd98ca2,getApiDomain:_0x4ea014}=await import(_0x37de20(0x207)),_0x399c55={'apiDomain':_0x4ea014(),'userDomain':_0xd98ca2()},_0x446ee6=await buildAuth(_0x49154e);logger[_0x37de20(0x1fe)](process[_0x37de20(0x1ff)]());const _0x331829=(CLI_BIN_NAME+'\x20'+process['argv'][_0x37de20(0x1eb)](0x2)[_0x37de20(0x1f2)]('\x20'))[_0x37de20(0x1de)]();logger['setRawCommand'](_0x331829);const _0x5212d8=isNonInteractiveMode(_0x5055ba);return{'config':_0x49154e,'auth':_0x446ee6,'logger':logger,'env':_0x399c55,'nonInteractive':_0x5212d8};}export function buildConfigFromFlags(_0x200ce5){return buildConfig(readRawConfig(),_0x200ce5);}export function getLocalAppAliases(_0x427e23){const _0x17b16b=a75_0x30f786;return _0x427e23[_0x17b16b(0x20b)]&&typeof _0x427e23['apps']===_0x17b16b(0x211)?_0x427e23[_0x17b16b(0x20b)]:{};}export function resolveLocalAppAliasCode(_0x3536b5,_0x2cb754){const _0xb082d=a75_0x30f786;if(!_0x2cb754)return undefined;const _0x260a2f=getLocalAppAliases(_0x3536b5)[_0x2cb754],_0x146549=_0x260a2f?.[_0xb082d(0x1ed)];return typeof _0x146549===_0xb082d(0x21e)&&_0x146549[_0xb082d(0x1de)]()?_0x146549['trim']():undefined;}export function readAppCodeFromConfig(){const _0x2b681d=a75_0x30f786,_0x53f3fb=readRawConfig(),_0x52adf3=_0x53f3fb['appcode']??_0x53f3fb[_0x2b681d(0x1f9)];if(typeof _0x52adf3===_0x2b681d(0x21e)&&_0x52adf3[_0x2b681d(0x1de)]())return _0x52adf3[_0x2b681d(0x1de)]();const _0x506514=resolveLocalAppAliasCode(_0x53f3fb,typeof _0x53f3fb['defaultApp']==='string'?_0x53f3fb['defaultApp']:undefined);if(_0x506514)return _0x506514;const _0x2f0cb4=normalizeEnv(String(_0x53f3fb[_0x2b681d(0x1fa)]||_0x2b681d(0x1f6))),_0xacabb3=isDaily(_0x2f0cb4)?_0x2b681d(0x205):isDev(_0x2f0cb4)?'development':_0x2b681d(0x1f6),_0x46f55e=resolveCachedAppCode(typeof _0x53f3fb[_0x2b681d(0x20a)]===_0x2b681d(0x21e)?_0x53f3fb[_0x2b681d(0x20a)]:undefined,_0xacabb3,typeof _0x53f3fb['accessKey']===_0x2b681d(0x21e)?_0x53f3fb[_0x2b681d(0x1fb)]:undefined);if(_0x46f55e)return _0x46f55e;const _0x54c001=Object[_0x2b681d(0x204)](getLocalAppAliases(_0x53f3fb))[_0x2b681d(0x20d)](_0x3ac520=>_0x3ac520?.['appcode']);return typeof _0x54c001?.[_0x2b681d(0x1ed)]===_0x2b681d(0x21e)&&_0x54c001[_0x2b681d(0x1ed)][_0x2b681d(0x1de)]()?_0x54c001['appcode']['trim']():undefined;}export function readScopedConfig(_0x26ac12){const _0x1854c2=a75_0x30f786,_0x194a77=_0x26ac12['global']?_0x1854c2(0x223):'project';return readConfigFile(resolveWriteConfigPath(_0x194a77));}export function writeScopedConfig(_0x558681,_0x459eff){const _0x249379=a75_0x30f786,_0x43fb09=_0x459eff[_0x249379(0x223)]?_0x249379(0x223):'project';writeConfigFile(resolveWriteConfigPath(_0x43fb09),_0x558681);}export async function initGlobalEnvironment(_0x565da1){const _0x378b11=a75_0x30f786,{initEnv:_0x3b8a04}=await import(_0x378b11(0x1e1));_0x3b8a04(_0x565da1[_0x378b11(0x1fa)]);const {initDomains:_0x111381}=await import(_0x378b11(0x207));_0x111381({'apiDomain':_0x565da1[_0x378b11(0x1e6)][_0x378b11(0x1f8)]||_0x565da1[_0x378b11(0x1e6)]['host']||undefined,'userDomain':_0x565da1[_0x378b11(0x1e6)]['userDomain']||undefined,'runtimeDomain':_0x565da1[_0x378b11(0x1e6)][_0x378b11(0x221)]||undefined,'skillHubDomain':_0x565da1[_0x378b11(0x1e6)][_0x378b11(0x21b)]||undefined});}function a75_0x259c(_0xbd4f05,_0x5ec939){_0xbd4f05=_0xbd4f05-0x1dd;const _0x1530e8=a75_0x1530();let _0x259cd0=_0x1530e8[_0xbd4f05];return _0x259cd0;}export function getProjectConfigPath(){const _0x3e730d=a75_0x30f786;return resolveConfigPath(process[_0x3e730d(0x1ff)]());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function inspectCliConfigJsonFile(_0x423aa8){const _0x26fab2=a75_0x30f786;if(!existsSync(_0x423aa8))return{'status':_0x26fab2(0x1f5)};try{const _0x353ce2=readFileSync(_0x423aa8,{'encoding':_0x26fab2(0x21c)});if(!_0x353ce2?.[_0x26fab2(0x1de)]())return{'status':'empty'};const _0x3ba53e=JSON['parse'](_0x353ce2);return{'status':'ok','data':_0x3ba53e};}catch(_0x5363c9){return{'status':_0x26fab2(0x1fc),'message':_0x5363c9 instanceof Error?_0x5363c9[_0x26fab2(0x214)]:String(_0x5363c9)};}}export function loadRawConfigLayers(_0x3d786c){const _0x5155a0=a75_0x30f786;let _0xdcadc5={},_0x2c0fe3={},_0x1790e3,_0x898943;try{_0x1790e3=resolveConfigPath(homedir());if(_0x1790e3){const _0x7107b=readFileSync(_0x1790e3,{'encoding':_0x5155a0(0x21c)});if(_0x7107b)_0xdcadc5=JSON[_0x5155a0(0x206)](_0x7107b);}}catch{}try{const _0x20095f=_0x3d786c||process['cwd']();_0x898943=resolveConfigPath(_0x20095f);if(_0x898943){const _0x63f1e3=readFileSync(_0x898943,{'encoding':'utf8'});if(_0x63f1e3)_0x2c0fe3=JSON[_0x5155a0(0x206)](_0x63f1e3);}}catch{}return{'globalPath':_0x1790e3,'projectPath':_0x898943,'globalConfig':_0xdcadc5,'projectConfig':_0x2c0fe3};}function mergeRawConfigLayers(_0x415700){const _0x1c4d21=a75_0x30f786,{globalConfig:_0x45e792,projectConfig:_0x590555}=_0x415700;if(_0x590555['inherit']===![]){const _0x10914d={..._0x590555};return delete _0x10914d[_0x1c4d21(0x215)],_0x10914d;}const _0x53a8ed={..._0x45e792,..._0x590555};if(_0x1c4d21(0x20a)in _0x590555)_0x53a8ed[_0x1c4d21(0x20a)]=_0x590555['defaultApp'];else _0x45e792[_0x1c4d21(0x20a)]&&(_0x53a8ed[_0x1c4d21(0x20a)]=_0x45e792[_0x1c4d21(0x20a)]);return _0x53a8ed;}export function isInProject(){return!!getProjectConfigPath();}export function readRawConfig(_0x290279){return mergeRawConfigLayers(loadRawConfigLayers(_0x290279));}export function readRawConfigWithLayers(_0x37962e){const _0x55d023=loadRawConfigLayers(_0x37962e);return{'config':mergeRawConfigLayers(_0x55d023),'layers':_0x55d023};}export function resolveDefaultAppSource(_0x3afcb5){const _0x2e8602=a75_0x30f786;if(_0x2e8602(0x20a)in _0x3afcb5['projectConfig'])return _0x2e8602(0x216);if(_0x3afcb5[_0x2e8602(0x208)]['inherit']===![])return null;if(_0x3afcb5[_0x2e8602(0x1dd)]['defaultApp'])return _0x2e8602(0x223);return null;}function buildConfig(_0x41b9df,_0x2889b3){const _0x48c90a=a75_0x30f786,_0x2548d2=_0x41b9df[_0x48c90a(0x20a)]||undefined,_0x10965e=_0x2889b3[_0x48c90a(0x1f9)]||env(_0x48c90a(0x1f3))||undefined,_0x541caa=_0x10965e||_0x2548d2||undefined,_0x16306d=env('ACCESS_KEY')||_0x41b9df['accessKey']||undefined,_0x148006=_0x2889b3[_0x48c90a(0x1fa)]||env(_0x48c90a(0x1ec))||_0x41b9df[_0x48c90a(0x1fa)]||DEFAULT_CONFIG_VALUES[_0x48c90a(0x1fa)],_0x3ce95c=normalizeEnv(String(_0x148006)),_0x3492b5=isDaily(_0x3ce95c)?_0x48c90a(0x205):isDev(_0x3ce95c)?'development':_0x48c90a(0x1f6),_0x38e2ec=typeof _0x2889b3[_0x48c90a(0x1ed)]==='string'?_0x2889b3[_0x48c90a(0x1ed)]:undefined,_0x29479a=env(_0x48c90a(0x1ef)),_0x537f5b=_0x10965e?undefined:_0x41b9df[_0x48c90a(0x1ed)]||_0x41b9df['app']||undefined,_0x5ab8bb=_0x10965e||(_0x537f5b?undefined:_0x2548d2),_0xe0135b=resolveLocalAppAliasCode(_0x41b9df,_0x5ab8bb),_0x32341b=resolveCachedAppCode(_0x5ab8bb,_0x3492b5,_0x16306d),_0x5d9450=_0x38e2ec||_0x29479a||_0x537f5b||_0xe0135b||_0x32341b||undefined,_0x131843=_0x38e2ec?'explicit':_0x29479a?_0x48c90a(0x1fa):_0x537f5b?'top-level':_0xe0135b?_0x48c90a(0x1e3):_0x32341b?_0x48c90a(0x20f):undefined,_0x312bf8=_0x41b9df[_0x48c90a(0x217)]||DEFAULT_CONFIG_VALUES[_0x48c90a(0x217)],_0x3f9aea=undefined,_0xf5c677=_0x2889b3[_0x48c90a(0x21d)]||env('FORMAT')||_0x41b9df['format'],_0x4f7d57=normalizeLegacyOutputFormat(_0xf5c677),_0x513cd0=env(_0x48c90a(0x21f))||_0x41b9df['pageSize'],_0x25aefe=_0x513cd0?Number(_0x513cd0)||undefined:undefined,_0x238cd0=_0x41b9df[_0x48c90a(0x1e0)]||_0x41b9df[_0x48c90a(0x219)],_0x23c9c4=_0x238cd0==='read'||_0x238cd0==='write'||_0x238cd0===_0x48c90a(0x201)?_0x238cd0:DEFAULT_CONFIG_VALUES['riskLevel'],_0x453340=env('VERBOSE'),_0x3564b5=_0x453340==='1'||_0x453340==='true';return{'appCode':typeof _0x5d9450===_0x48c90a(0x21e)&&_0x5d9450[_0x48c90a(0x1de)]()?_0x5d9450['trim']():undefined,'appCodeSource':_0x131843,'env':_0x3492b5,'locale':_0x312bf8,'cookie':_0x3f9aea,'accessKey':_0x16306d,'format':_0x4f7d57,'pageSize':_0x25aefe,'riskLevel':_0x23c9c4,'verbose':_0x3564b5,'defaultApp':_0x2548d2,'currentApp':typeof _0x541caa===_0x48c90a(0x21e)?_0x541caa:undefined,'raw':_0x41b9df};}function env(_0xa6d405){return productEnv(_0xa6d405);}async function buildAuth(_0x29e38d){const _0x5e637f='',_0x2ac7e4=!!_0x29e38d['accessKey'];return{'cookie':_0x5e637f,'isLoggedIn':_0x2ac7e4,async 'getOrLogin'(){if(_0x2ac7e4)return _0x5e637f;throw CliErrors['authRequired']();}};}
1
+ const a75_0x13a496=a75_0x4584;(function(_0x193315,_0x4fe695){const _0x6ea122=a75_0x4584,_0x2ed367=_0x193315();while(!![]){try{const _0x149756=parseInt(_0x6ea122(0x14b))/0x1*(parseInt(_0x6ea122(0x14e))/0x2)+-parseInt(_0x6ea122(0x12e))/0x3*(parseInt(_0x6ea122(0x144))/0x4)+-parseInt(_0x6ea122(0x16b))/0x5*(parseInt(_0x6ea122(0x134))/0x6)+parseInt(_0x6ea122(0x14c))/0x7*(parseInt(_0x6ea122(0x14f))/0x8)+-parseInt(_0x6ea122(0x128))/0x9*(-parseInt(_0x6ea122(0x161))/0xa)+-parseInt(_0x6ea122(0x12f))/0xb*(parseInt(_0x6ea122(0x127))/0xc)+-parseInt(_0x6ea122(0x13a))/0xd;if(_0x149756===_0x4fe695)break;else _0x2ed367['push'](_0x2ed367['shift']());}catch(_0x271eba){_0x2ed367['push'](_0x2ed367['shift']());}}}(a75_0x2147,0x2eaff));import{readFileSync,existsSync,mkdirSync,renameSync,unlinkSync,writeFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{homedir}from'node:os';function a75_0x4584(_0xe5dc3b,_0x29eede){_0xe5dc3b=_0xe5dc3b-0x122;const _0x2147f6=a75_0x2147();let _0x45845d=_0x2147f6[_0xe5dc3b];return _0x45845d;}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_0x13a496(0x15b)];function resolveConfigPath(_0x428a73){for(const _0x2bcbac of CONFIG_NAMES){const _0x163fab=resolve(_0x428a73,_0x2bcbac);if(existsSync(_0x163fab))return _0x163fab;}return undefined;}export function resolveWriteConfigPath(_0x5de703){const _0x49b146=a75_0x13a496,_0x41171d=_0x5de703===_0x49b146(0x142)?process['cwd']():homedir(),_0x4f3be0=resolveConfigPath(_0x41171d);return _0x4f3be0??resolve(_0x41171d,NEW_CONFIG_NAME);}export function readConfigFile(_0x2a0012){const _0x283dc6=a75_0x13a496;try{if(existsSync(_0x2a0012)){const _0x4e9f71=readFileSync(_0x2a0012,{'encoding':_0x283dc6(0x151)});if(_0x4e9f71){const _0x50797d=JSON['parse'](_0x4e9f71);return migrateOnlineEnv(_0x2a0012,_0x50797d),_0x50797d;}}}catch{}return{};}function migrateOnlineEnv(_0x570e73,_0x360411){const _0x24d9ba=a75_0x13a496;let _0x3ca7e5=![];_0x360411[_0x24d9ba(0x158)]===_0x24d9ba(0x15c)&&(_0x360411['env']=_0x24d9ba(0x12c),_0x3ca7e5=!![]);if(_0x360411[_0x24d9ba(0x157)]&&typeof _0x360411['apps']===_0x24d9ba(0x153))for(const _0x4a5ad9 of Object['values'](_0x360411[_0x24d9ba(0x157)])){_0x4a5ad9&&_0x4a5ad9[_0x24d9ba(0x158)]===_0x24d9ba(0x15c)&&(_0x4a5ad9[_0x24d9ba(0x158)]=_0x24d9ba(0x12c),_0x3ca7e5=!![]);}if(_0x3ca7e5)try{writeConfigFile(_0x570e73,_0x360411);}catch{}}export function writeConfigFile(_0x31fc95,_0x3a0403){const _0x9bfc6f=a75_0x13a496,_0x2c7dcd=dirname(_0x31fc95);!existsSync(_0x2c7dcd)&&mkdirSync(_0x2c7dcd,{'recursive':!![]});const _0x1a7c53=_0x31fc95+_0x9bfc6f(0x167);try{writeFileSync(_0x1a7c53,JSON['stringify'](_0x3a0403,null,0x2)+'\x0a',{'encoding':_0x9bfc6f(0x151),'mode':0x180});try{renameSync(_0x1a7c53,_0x31fc95);}catch(_0x172662){if(_0x172662[_0x9bfc6f(0x123)]===_0x9bfc6f(0x148)||_0x172662['code']===_0x9bfc6f(0x162)||_0x172662[_0x9bfc6f(0x123)]===_0x9bfc6f(0x136)){writeFileSync(_0x31fc95,JSON[_0x9bfc6f(0x154)](_0x3a0403,null,0x2)+'\x0a',{'encoding':'utf8'});try{unlinkSync(_0x1a7c53);}catch{}}else throw _0x172662;}}catch(_0x36f528){try{unlinkSync(_0x1a7c53);}catch{}throw _0x36f528;}}export function isNonInteractiveMode(_0x4210cf){const _0x42e16f=a75_0x13a496;return!!(_0x4210cf[_0x42e16f(0x152)]||_0x4210cf['ci']||productEnvNames('CI')[_0x42e16f(0x13c)](_0x5c6f21=>process.env[_0x5c6f21]==='true')||process.env.CI===_0x42e16f(0x168)||!process[_0x42e16f(0x16a)][_0x42e16f(0x12a)]||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x5f456e=a75_0x13a496;if(!process[_0x5f456e(0x125)]['isTTY'])return![];try{const _0x583944=process[_0x5f456e(0x125)]['isRaw'];return process[_0x5f456e(0x125)][_0x5f456e(0x164)](!![]),process[_0x5f456e(0x125)]['setRawMode'](_0x583944??![]),!![];}catch{return![];}}export async function createContext(_0x17f6b9){const _0x16ffc4=a75_0x13a496,_0x151e4f=readRawConfig(),_0x313316=buildConfig(_0x151e4f,_0x17f6b9);await initGlobalEnvironment(_0x313316);const {getUserDomain:_0x5a36fc,getApiDomain:_0xdb2e9f}=await import(_0x16ffc4(0x13e)),_0x1df930={'apiDomain':_0xdb2e9f(),'userDomain':_0x5a36fc()},_0x40984c=await buildAuth(_0x313316);logger['setLogPath'](process['cwd']());const _0x8830f9=(CLI_BIN_NAME+'\x20'+process[_0x16ffc4(0x131)][_0x16ffc4(0x150)](0x2)[_0x16ffc4(0x145)]('\x20'))[_0x16ffc4(0x155)]();logger[_0x16ffc4(0x122)](_0x8830f9);const _0x9ce2de=isNonInteractiveMode(_0x17f6b9);return{'config':_0x313316,'auth':_0x40984c,'logger':logger,'env':_0x1df930,'nonInteractive':_0x9ce2de};}function a75_0x2147(){const _0x4c98b8=['./constant/env.js','accessKey','newConfigFileName','online','top-level','host','error','projectConfig','10LSbgDn','EXDEV','globalConfig','setRawMode','development','format','.tmp','true','string','stdout','535ruZFAq','defaultApp','missing','riskLevel','global','setRawCommand','code','inherit','stdin','APPCODE','852fMvlUK','3080106AmAGMB','daily','isTTY','cache','production','FORMAT','9WNCSHz','10637KUirIY','empty','argv','high-risk-write','cwd','7080FAGuXB','explicit','EACCES','VERBOSE','find','apiDomain','2488044DRqTIE','ENV','some','appcode','./constant/domain.js','raw','PAGE_SIZE','skillHubDomain','project','app','209356hanTaI','join','ACCESS_KEY','parse','EPERM','APP','write','1PNCtkL','28YJAqHa','locale','677318qHAoXN','107320jKZKbu','slice','utf8','nonInteractive','object','stringify','trim','runtimeDomain','apps','env'];a75_0x2147=function(){return _0x4c98b8;};return a75_0x2147();}export function buildConfigFromFlags(_0x1e784b){return buildConfig(readRawConfig(),_0x1e784b);}export function getLocalAppAliases(_0x194cad){const _0x5eb2a0=a75_0x13a496;return _0x194cad[_0x5eb2a0(0x157)]&&typeof _0x194cad['apps']==='object'?_0x194cad[_0x5eb2a0(0x157)]:{};}export function resolveLocalAppAliasCode(_0x195837,_0xc9030d){const _0xb760dc=a75_0x13a496;if(!_0xc9030d)return undefined;const _0x1dc6e5=getLocalAppAliases(_0x195837)[_0xc9030d],_0x35fa07=_0x1dc6e5?.[_0xb760dc(0x13d)];return typeof _0x35fa07===_0xb760dc(0x169)&&_0x35fa07[_0xb760dc(0x155)]()?_0x35fa07[_0xb760dc(0x155)]():undefined;}export function readAppCodeFromConfig(){const _0x3e0519=a75_0x13a496,_0x298902=readRawConfig(),_0x2cd733=_0x298902['appcode']??_0x298902[_0x3e0519(0x143)];if(typeof _0x2cd733==='string'&&_0x2cd733[_0x3e0519(0x155)]())return _0x2cd733[_0x3e0519(0x155)]();const _0xc27fcc=resolveLocalAppAliasCode(_0x298902,typeof _0x298902[_0x3e0519(0x16c)]===_0x3e0519(0x169)?_0x298902[_0x3e0519(0x16c)]:undefined);if(_0xc27fcc)return _0xc27fcc;const _0x173e04=normalizeEnv(String(_0x298902['env']||_0x3e0519(0x12c))),_0x33282d=isDaily(_0x173e04)?_0x3e0519(0x129):isDev(_0x173e04)?_0x3e0519(0x165):_0x3e0519(0x12c),_0x368d98=resolveCachedAppCode(typeof _0x298902[_0x3e0519(0x16c)]===_0x3e0519(0x169)?_0x298902[_0x3e0519(0x16c)]:undefined,_0x33282d,typeof _0x298902[_0x3e0519(0x15a)]===_0x3e0519(0x169)?_0x298902[_0x3e0519(0x15a)]:undefined);if(_0x368d98)return _0x368d98;const _0x297b17=Object['values'](getLocalAppAliases(_0x298902))[_0x3e0519(0x138)](_0x37018b=>_0x37018b?.[_0x3e0519(0x13d)]);return typeof _0x297b17?.[_0x3e0519(0x13d)]===_0x3e0519(0x169)&&_0x297b17[_0x3e0519(0x13d)][_0x3e0519(0x155)]()?_0x297b17[_0x3e0519(0x13d)]['trim']():undefined;}export function readScopedConfig(_0x3adf14){const _0x578257=a75_0x13a496,_0x4f7aae=_0x3adf14[_0x578257(0x16f)]?_0x578257(0x16f):_0x578257(0x142);return readConfigFile(resolveWriteConfigPath(_0x4f7aae));}export function writeScopedConfig(_0x2eafce,_0x52b7f3){const _0xfac51d=a75_0x13a496,_0x4f92cd=_0x52b7f3[_0xfac51d(0x16f)]?_0xfac51d(0x16f):_0xfac51d(0x142);writeConfigFile(resolveWriteConfigPath(_0x4f92cd),_0x2eafce);}export async function initGlobalEnvironment(_0x45b6df){const _0x37ea8a=a75_0x13a496,{initEnv:_0x1057f6}=await import(_0x37ea8a(0x159));_0x1057f6(_0x45b6df[_0x37ea8a(0x158)]);const {initDomains:_0xb5cad0}=await import(_0x37ea8a(0x13e));_0xb5cad0({'apiDomain':_0x45b6df[_0x37ea8a(0x13f)][_0x37ea8a(0x139)]||_0x45b6df[_0x37ea8a(0x13f)][_0x37ea8a(0x15e)]||undefined,'userDomain':_0x45b6df[_0x37ea8a(0x13f)]['userDomain']||undefined,'runtimeDomain':_0x45b6df[_0x37ea8a(0x13f)][_0x37ea8a(0x156)]||undefined,'skillHubDomain':_0x45b6df[_0x37ea8a(0x13f)][_0x37ea8a(0x141)]||undefined});}export function getProjectConfigPath(){const _0x2cc9af=a75_0x13a496;return resolveConfigPath(process[_0x2cc9af(0x133)]());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function inspectCliConfigJsonFile(_0x31bb6a){const _0x18f287=a75_0x13a496;if(!existsSync(_0x31bb6a))return{'status':_0x18f287(0x16d)};try{const _0x3926c7=readFileSync(_0x31bb6a,{'encoding':_0x18f287(0x151)});if(!_0x3926c7?.[_0x18f287(0x155)]())return{'status':_0x18f287(0x130)};const _0x2b4ea0=JSON['parse'](_0x3926c7);return{'status':'ok','data':_0x2b4ea0};}catch(_0x4dd5b5){return{'status':_0x18f287(0x15f),'message':_0x4dd5b5 instanceof Error?_0x4dd5b5['message']:String(_0x4dd5b5)};}}export function loadRawConfigLayers(_0x3762aa){const _0x36ce74=a75_0x13a496;let _0x4f5278={},_0x16069f={},_0x140063,_0x2c81d5;try{_0x140063=resolveConfigPath(homedir());if(_0x140063){const _0x19c94a=readFileSync(_0x140063,{'encoding':_0x36ce74(0x151)});if(_0x19c94a)_0x4f5278=JSON[_0x36ce74(0x147)](_0x19c94a);}}catch{}try{const _0x3d07ab=_0x3762aa||process[_0x36ce74(0x133)]();_0x2c81d5=resolveConfigPath(_0x3d07ab);if(_0x2c81d5){const _0x3d48e4=readFileSync(_0x2c81d5,{'encoding':'utf8'});if(_0x3d48e4)_0x16069f=JSON[_0x36ce74(0x147)](_0x3d48e4);}}catch{}return{'globalPath':_0x140063,'projectPath':_0x2c81d5,'globalConfig':_0x4f5278,'projectConfig':_0x16069f};}function mergeRawConfigLayers(_0x128fef){const _0x4773d3=a75_0x13a496,{globalConfig:_0xbcb7da,projectConfig:_0x2a966c}=_0x128fef;if(_0x2a966c['inherit']===![]){const _0x536327={..._0x2a966c};return delete _0x536327[_0x4773d3(0x124)],_0x536327;}const _0x4bfe7e={..._0xbcb7da,..._0x2a966c};if('defaultApp'in _0x2a966c)_0x4bfe7e[_0x4773d3(0x16c)]=_0x2a966c[_0x4773d3(0x16c)];else _0xbcb7da['defaultApp']&&(_0x4bfe7e[_0x4773d3(0x16c)]=_0xbcb7da[_0x4773d3(0x16c)]);return _0x4bfe7e;}export function isInProject(){return!!getProjectConfigPath();}export function readRawConfig(_0x4e35c8){return mergeRawConfigLayers(loadRawConfigLayers(_0x4e35c8));}export function readRawConfigWithLayers(_0x267c8d){const _0x468750=loadRawConfigLayers(_0x267c8d);return{'config':mergeRawConfigLayers(_0x468750),'layers':_0x468750};}export function resolveDefaultAppSource(_0xdca81b){const _0x410aff=a75_0x13a496;if(_0x410aff(0x16c)in _0xdca81b[_0x410aff(0x160)])return _0x410aff(0x142);if(_0xdca81b[_0x410aff(0x160)]['inherit']===![])return null;if(_0xdca81b[_0x410aff(0x163)]['defaultApp'])return _0x410aff(0x16f);return null;}function buildConfig(_0xc2ee97,_0x299836){const _0x1622c9=a75_0x13a496,_0x540c9d=_0xc2ee97[_0x1622c9(0x16c)]||undefined,_0x5d5df3=_0x299836['app']||env(_0x1622c9(0x149))||undefined,_0x4926d9=_0x5d5df3||_0x540c9d||undefined,_0x450a6c=env(_0x1622c9(0x146))||_0xc2ee97['accessKey']||undefined,_0x522b64=_0x299836[_0x1622c9(0x158)]||env(_0x1622c9(0x13b))||_0xc2ee97[_0x1622c9(0x158)]||DEFAULT_CONFIG_VALUES[_0x1622c9(0x158)],_0x261aa2=normalizeEnv(String(_0x522b64)),_0x393f30=isDaily(_0x261aa2)?_0x1622c9(0x129):isDev(_0x261aa2)?_0x1622c9(0x165):_0x1622c9(0x12c),_0x16221c=typeof _0x299836[_0x1622c9(0x13d)]==='string'?_0x299836['appcode']:undefined,_0x1a2828=env(_0x1622c9(0x126)),_0x3d8968=_0x5d5df3?undefined:_0xc2ee97[_0x1622c9(0x13d)]||_0xc2ee97[_0x1622c9(0x143)]||undefined,_0x18fc45=_0x5d5df3||(_0x3d8968?undefined:_0x540c9d),_0x42eefb=resolveLocalAppAliasCode(_0xc2ee97,_0x18fc45),_0x43982a=resolveCachedAppCode(_0x18fc45,_0x393f30,_0x450a6c),_0x1e2fe8=_0x16221c||_0x1a2828||_0x3d8968||_0x42eefb||_0x43982a||undefined,_0x4950c4=_0x16221c?_0x1622c9(0x135):_0x1a2828?'env':_0x3d8968?_0x1622c9(0x15d):_0x42eefb?'local-alias':_0x43982a?_0x1622c9(0x12b):undefined,_0x1f06eb=_0xc2ee97[_0x1622c9(0x14d)]||DEFAULT_CONFIG_VALUES[_0x1622c9(0x14d)],_0x9638bf=undefined,_0x237be=_0x299836[_0x1622c9(0x166)]||env(_0x1622c9(0x12d))||_0xc2ee97[_0x1622c9(0x166)],_0x5a6b50=normalizeLegacyOutputFormat(_0x237be),_0x4b689a=env(_0x1622c9(0x140))||_0xc2ee97['pageSize'],_0x1d03c9=_0x4b689a?Number(_0x4b689a)||undefined:undefined,_0x31c084=_0xc2ee97[_0x1622c9(0x16e)]||_0xc2ee97['maxRisk'],_0xbfe316=_0x31c084==='read'||_0x31c084===_0x1622c9(0x14a)||_0x31c084===_0x1622c9(0x132)?_0x31c084:DEFAULT_CONFIG_VALUES[_0x1622c9(0x16e)],_0x47f902=env(_0x1622c9(0x137)),_0x20dcf6=_0x47f902==='1'||_0x47f902===_0x1622c9(0x168);return{'appCode':typeof _0x1e2fe8==='string'&&_0x1e2fe8['trim']()?_0x1e2fe8[_0x1622c9(0x155)]():undefined,'appCodeSource':_0x4950c4,'env':_0x393f30,'locale':_0x1f06eb,'cookie':_0x9638bf,'accessKey':_0x450a6c,'format':_0x5a6b50,'pageSize':_0x1d03c9,'riskLevel':_0xbfe316,'verbose':_0x20dcf6,'defaultApp':_0x540c9d,'currentApp':typeof _0x4926d9===_0x1622c9(0x169)?_0x4926d9:undefined,'raw':_0xc2ee97};}function env(_0x5e9742){return productEnv(_0x5e9742);}async function buildAuth(_0x4a6cd6){const _0xaa866b='',_0x596b03=!!_0x4a6cd6['accessKey'];return{'cookie':_0xaa866b,'isLoggedIn':_0x596b03,async 'getOrLogin'(){if(_0x596b03)return _0xaa866b;throw CliErrors['authRequired']();}};}
@@ -1 +1 @@
1
- (function(_0x4ad3f3,_0x27ac54){const _0x2a3fa2=a76_0x2b79,_0x3d60bc=_0x4ad3f3();while(!![]){try{const _0x366ab7=parseInt(_0x2a3fa2(0x14b))/0x1*(-parseInt(_0x2a3fa2(0x133))/0x2)+parseInt(_0x2a3fa2(0x184))/0x3+-parseInt(_0x2a3fa2(0x175))/0x4+parseInt(_0x2a3fa2(0x1b4))/0x5+-parseInt(_0x2a3fa2(0x135))/0x6+-parseInt(_0x2a3fa2(0x179))/0x7*(parseInt(_0x2a3fa2(0x195))/0x8)+parseInt(_0x2a3fa2(0x134))/0x9;if(_0x366ab7===_0x27ac54)break;else _0x3d60bc['push'](_0x3d60bc['shift']());}catch(_0x2112dc){_0x3d60bc['push'](_0x3d60bc['shift']());}}}(a76_0x3c2d,0x83421));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(_0x318276){_activeAK=_0x318276||undefined;}export function clearActiveAK(){_activeAK=undefined;}function firstString(..._0x2ed822){const _0x140f84=a76_0x2b79;for(const _0x14ee28 of _0x2ed822){if(typeof _0x14ee28===_0x140f84(0x183)&&_0x14ee28['trim']())return _0x14ee28[_0x140f84(0x15b)]();}return undefined;}async function decodeResponseBody(_0x3e9662){const _0x155013=a76_0x2b79;if(typeof _0x3e9662[_0x155013(0x14c)]===_0x155013(0x19a))try{const _0x38445e=await _0x3e9662[_0x155013(0x14c)]();try{return{'isJson':!![],'data':parseLosslessJson(_0x38445e),'text':_0x38445e};}catch{return{'isJson':![],'text':_0x38445e[_0x155013(0x15b)]()||undefined};}}catch{}try{return{'isJson':!![],'data':await _0x3e9662[_0x155013(0x19f)]()};}catch{return{'isJson':![]};}}function throwIfRateLimited(_0x1df0e4,_0x4a2d10,_0x37593c){const _0xd00d51=a76_0x2b79,_0x2a1b30=_0x4a2d10&&typeof _0x4a2d10===_0xd00d51(0x13c)?_0x4a2d10:{},_0x3f1c92=[_0x2a1b30['status'],_0x2a1b30[_0xd00d51(0x14a)]][_0xd00d51(0x1af)](_0x5884c4=>Number(_0x5884c4)===0x1ad),_0x53e717=createRateLimitError({'status':_0x1df0e4['status']===0x1ad?_0x1df0e4[_0xd00d51(0x143)]:_0x3f1c92??_0x1df0e4[_0xd00d51(0x143)],'errorCode':firstString(_0x2a1b30[_0xd00d51(0x138)],typeof _0x2a1b30[_0xd00d51(0x14a)]===_0xd00d51(0x183)?_0x2a1b30[_0xd00d51(0x14a)]:undefined),'message':firstString(_0x2a1b30[_0xd00d51(0x190)],_0x2a1b30['message'],_0x2a1b30['msg'],_0x37593c),'retryAfter':readRetryAfter(_0x1df0e4[_0xd00d51(0x189)])??readRetryAfterSeconds(_0x4a2d10)});if(_0x53e717)throw _0x53e717;}async function apiRequest(_0xaada99,_0x357dd2={}){const _0x3f938c=a76_0x2b79,{method:method='GET',body:_0xea5be,headers:headers={},timeout:timeout=0x7530}=_0x357dd2,_0x1a0141=_activeAK,_0x492ad2=getRuntimeDomain();if(!_0x1a0141)throw CliErrors[_0x3f938c(0x150)]('Configure\x20accessKey\x20in\x20'+PRODUCT_CONFIG[_0x3f938c(0x185)]+'.');const _0x2342ca=''+_0x492ad2+_0xaada99,_0x1cc3ef={'X-User-AK':_0x1a0141},_0x3501e9=new AbortController(),_0xa6079c=setTimeout(()=>_0x3501e9[_0x3f938c(0x142)](),timeout);try{const _0x869f5d=await fetch(_0x2342ca,{'method':method,'headers':{'Content-Type':_0x3f938c(0x163),'X-Invoke-Source':PRODUCT_CONFIG[_0x3f938c(0x1ad)],..._0x1cc3ef,...headers},'body':_0xea5be?JSON[_0x3f938c(0x12f)](_0xea5be):undefined,'signal':_0x3501e9[_0x3f938c(0x15f)]}),_0x266da8=await decodeResponseBody(_0x869f5d);if(!_0x266da8['isJson']){throwIfRateLimited(_0x869f5d,undefined,_0x266da8[_0x3f938c(0x14c)]);throw CliErrors[_0x3f938c(0x15d)](_0x3f938c(0x122)+_0x869f5d[_0x3f938c(0x143)]+')',_0x869f5d[_0x3f938c(0x143)]>=0x190?_0x3f938c(0x1a6):undefined);}const _0x416035=_0x266da8[_0x3f938c(0x1a3)];throwIfRateLimited(_0x869f5d,_0x416035);if(!_0x869f5d['ok']||_0x416035['success']===![])throw CliErrors['apiError'](_0x416035['errorMsg']||_0x416035[_0x3f938c(0x1b5)]||_0x3f938c(0x182)+_0x869f5d[_0x3f938c(0x143)],_0x416035[_0x3f938c(0x138)]?_0x3f938c(0x186)+_0x416035[_0x3f938c(0x138)]:undefined);return _0x416035;}catch(_0x83dcce){if(_0x83dcce instanceof Error&&_0x83dcce[_0x3f938c(0x156)]==='AbortError')throw CliErrors[_0x3f938c(0x15d)](_0x3f938c(0x128)+_0x2342ca);throw _0x83dcce;}finally{clearTimeout(_0xa6079c);}}async function apiBinaryRequest(_0x4b6590,_0x2459fe={}){const _0x2d45fa=a76_0x2b79,{method:method=_0x2d45fa(0x13e),headers:headers={},timeout:timeout=0x7530}=_0x2459fe,_0x6b9f42=_activeAK,_0x30c284=getRuntimeDomain();if(!_0x6b9f42)throw CliErrors[_0x2d45fa(0x150)](_0x2d45fa(0x1b1)+PRODUCT_CONFIG[_0x2d45fa(0x185)]+'.');const _0x3f7fec=''+_0x30c284+_0x4b6590,_0x5b8ee4=new AbortController(),_0x22ac06=setTimeout(()=>_0x5b8ee4[_0x2d45fa(0x142)](),timeout);try{const _0x527a5d=await fetch(_0x3f7fec,{'method':method,'headers':{'X-Invoke-Source':PRODUCT_CONFIG[_0x2d45fa(0x1ad)],'X-User-AK':_0x6b9f42,...headers},'signal':_0x5b8ee4['signal']});if(!_0x527a5d['ok']){const _0x55c41d=await decodeResponseBody(_0x527a5d),_0x3973bd=_0x55c41d[_0x2d45fa(0x1a3)]&&typeof _0x55c41d[_0x2d45fa(0x1a3)]===_0x2d45fa(0x13c)?_0x55c41d['data']:{},_0x3764c1=firstString(_0x3973bd[_0x2d45fa(0x190)],_0x3973bd[_0x2d45fa(0x1b5)],_0x3973bd['errorCode'],_0x55c41d[_0x2d45fa(0x14c)]);throwIfRateLimited(_0x527a5d,_0x55c41d[_0x2d45fa(0x1a3)],_0x3764c1);throw CliErrors['apiError'](_0x3764c1||_0x2d45fa(0x182)+_0x527a5d[_0x2d45fa(0x143)],_0x2d45fa(0x13d)+_0x3f7fec);}return Buffer[_0x2d45fa(0x18b)](await _0x527a5d[_0x2d45fa(0x144)]());}catch(_0x261dad){if(_0x261dad instanceof Error&&_0x261dad[_0x2d45fa(0x156)]==='AbortError')throw CliErrors[_0x2d45fa(0x15d)](_0x2d45fa(0x128)+_0x3f7fec);throw _0x261dad;}finally{clearTimeout(_0x22ac06);}}async function apiFormRequest(_0xd2d84d,_0x51c2e7,_0x4866c6={}){const _0x4fb5a1=a76_0x2b79,{timeout:timeout=0x7530}=_0x4866c6,_0x161f72=_activeAK,_0x3b3fa1=getRuntimeDomain();if(!_0x161f72)throw CliErrors[_0x4fb5a1(0x150)]('Configure\x20accessKey\x20in\x20'+PRODUCT_CONFIG[_0x4fb5a1(0x185)]+'.');const _0x4a2d15=''+_0x3b3fa1+_0xd2d84d,_0x2964db=new AbortController(),_0xf93f27=setTimeout(()=>_0x2964db[_0x4fb5a1(0x142)](),timeout);try{const _0xfd7078=await fetch(_0x4a2d15,{'method':_0x4fb5a1(0x123),'headers':{'X-Invoke-Source':PRODUCT_CONFIG[_0x4fb5a1(0x1ad)],'X-User-AK':_0x161f72},'body':_0x51c2e7,'signal':_0x2964db['signal']}),_0x5f09e6=await decodeResponseBody(_0xfd7078);if(!_0x5f09e6[_0x4fb5a1(0x14f)]){throwIfRateLimited(_0xfd7078,undefined,_0x5f09e6[_0x4fb5a1(0x14c)]);throw CliErrors['apiError']('API\x20returned\x20non-JSON\x20response\x20(HTTP\x20'+_0xfd7078[_0x4fb5a1(0x143)]+')',_0xfd7078['status']>=0x190?'Check\x20your\x20credentials\x20and\x20try\x20again.':undefined);}const _0x12a38f=_0x5f09e6[_0x4fb5a1(0x1a3)];throwIfRateLimited(_0xfd7078,_0x12a38f);if(!_0xfd7078['ok']||_0x12a38f['success']===![])throw CliErrors['apiError'](_0x12a38f[_0x4fb5a1(0x190)]||_0x12a38f[_0x4fb5a1(0x1b5)]||_0x4fb5a1(0x182)+_0xfd7078[_0x4fb5a1(0x143)],_0x12a38f[_0x4fb5a1(0x138)]?'API\x20error\x20code:\x20'+_0x12a38f['errorCode']:undefined);return _0x12a38f;}catch(_0x3b746e){if(_0x3b746e instanceof Error&&_0x3b746e[_0x4fb5a1(0x156)]===_0x4fb5a1(0x19d))throw CliErrors['apiError'](_0x4fb5a1(0x128)+_0x4a2d15);throw _0x3b746e;}finally{clearTimeout(_0xf93f27);}}async function toolboxRequest(_0x593770,_0x293ab1,_0x59e3ce={}){const _0x416f6e=a76_0x2b79,{method:method='GET',headers:headers={},timeout:timeout=0x7530}=_0x59e3ce,_0x12119d=_activeAK;if(!_0x12119d)throw CliErrors[_0x416f6e(0x150)](_0x416f6e(0x1b1)+PRODUCT_CONFIG[_0x416f6e(0x185)]+'.');const _0x2e39a6=getApiDomain()[_0x416f6e(0x16d)](/\/$/,''),_0xddd75d=new URL(_0x593770,_0x2e39a6+_0x416f6e(0x13a));if(_0x293ab1)for(const [_0x1f7b3a,_0x114d5e]of Object['entries'](_0x293ab1)){_0x114d5e!==undefined&&_0x114d5e!==null&&_0xddd75d[_0x416f6e(0x1b2)][_0x416f6e(0x12b)](_0x1f7b3a,String(_0x114d5e));}const _0x22c4b2=new AbortController(),_0x77afa7=setTimeout(()=>_0x22c4b2[_0x416f6e(0x142)](),timeout);try{const _0x18d2a8=await fetch(_0xddd75d,{'method':method,'headers':{'Content-Type':'application/json','X-Invoke-Source':PRODUCT_CONFIG[_0x416f6e(0x1ad)],'X-User-AK':_0x12119d,...headers},'signal':_0x22c4b2[_0x416f6e(0x15f)]}),_0x3548d2=await decodeResponseBody(_0x18d2a8);if(!_0x3548d2[_0x416f6e(0x14f)]){throwIfRateLimited(_0x18d2a8,undefined,_0x3548d2[_0x416f6e(0x14c)]);throw CliErrors['apiError'](_0x416f6e(0x18c)+_0x18d2a8[_0x416f6e(0x143)]+')',_0x18d2a8[_0x416f6e(0x143)]>=0x190?'Check\x20your\x20credentials\x20and\x20try\x20again.':undefined);}const _0x363574=_0x3548d2['data'];throwIfRateLimited(_0x18d2a8,_0x363574);if(!_0x18d2a8['ok']){const _0x4cf803=_0x363574&&typeof _0x363574===_0x416f6e(0x13c)?_0x363574:{};throw CliErrors[_0x416f6e(0x15d)](_0x4cf803[_0x416f6e(0x190)]||_0x4cf803[_0x416f6e(0x1b5)]||_0x416f6e(0x16b)+_0x18d2a8[_0x416f6e(0x143)],_0x4cf803[_0x416f6e(0x138)]?_0x416f6e(0x148)+_0x4cf803['errorCode']:undefined);}if(_0x363574&&typeof _0x363574===_0x416f6e(0x13c)&&'success'in _0x363574&&typeof _0x363574[_0x416f6e(0x132)]==='boolean'){const _0x327bc2=_0x363574;if(!_0x327bc2[_0x416f6e(0x132)])throw CliErrors[_0x416f6e(0x15d)](_0x327bc2[_0x416f6e(0x190)]||_0x327bc2[_0x416f6e(0x1b5)]||'Toolbox\x20API\x20error',_0x327bc2[_0x416f6e(0x138)]?_0x416f6e(0x148)+_0x327bc2[_0x416f6e(0x138)]:undefined);return _0x327bc2[_0x416f6e(0x1a3)];}return _0x363574;}catch(_0x4501be){if(_0x4501be instanceof Error&&_0x4501be['name']===_0x416f6e(0x19d))throw CliErrors[_0x416f6e(0x15d)](_0x416f6e(0x128)+_0xddd75d[_0x416f6e(0x125)]());throw _0x4501be;}finally{clearTimeout(_0x77afa7);}}async function skillHubJsonRequest(_0x177c55,_0x34b644={}){const _0x11e777=a76_0x2b79,{method:method='GET',query:_0x12ff55,body:_0x5ac385,headers:headers={},timeout:timeout=0x7530,allowNotFound:allowNotFound=![]}=_0x34b644,_0x49b333=_activeAK;if(!_0x49b333)throw CliErrors[_0x11e777(0x150)](_0x11e777(0x1b1)+PRODUCT_CONFIG[_0x11e777(0x185)]+'.');const _0x3a5912=getSkillHubDomain()[_0x11e777(0x16d)](/\/$/,''),_0x173c72=new URL(_0x177c55,_0x3a5912+'/');if(_0x12ff55)for(const [_0x2e5803,_0x4245a5]of Object[_0x11e777(0x174)](_0x12ff55)){_0x4245a5!==undefined&&_0x4245a5!==null&&_0x173c72[_0x11e777(0x1b2)]['set'](_0x2e5803,String(_0x4245a5));}const _0x88c1e=new AbortController(),_0x266ac7=setTimeout(()=>_0x88c1e[_0x11e777(0x142)](),timeout);try{const _0x55035e=await fetch(_0x173c72['toString'](),{'method':method,'headers':{'Accept':_0x11e777(0x163),'X-Invoke-Source':PRODUCT_CONFIG[_0x11e777(0x1ad)],'X-User-AK':_0x49b333,...headers},'body':_0x5ac385,'signal':_0x88c1e[_0x11e777(0x15f)]}),_0x4e77e9=await decodeResponseBody(_0x55035e);if(!_0x4e77e9[_0x11e777(0x14f)]){if(allowNotFound&&_0x55035e[_0x11e777(0x143)]===0x194)return undefined;throwIfRateLimited(_0x55035e,undefined,_0x4e77e9['text']);throw CliErrors['apiError'](_0x11e777(0x1ac)+_0x55035e[_0x11e777(0x143)]+')',_0x55035e[_0x11e777(0x143)]>=0x190?_0x11e777(0x1a6):undefined);}const _0x1e39b1=_0x4e77e9['data'];throwIfRateLimited(_0x55035e,_0x1e39b1);if(allowNotFound&&isSkillHubNotFoundResponse(_0x55035e['status'],_0x1e39b1))return undefined;const _0x5dd619=!_0x55035e['ok']||_0x1e39b1?.['success']===![]||typeof _0x1e39b1?.[_0x11e777(0x14a)]===_0x11e777(0x13f)&&_0x1e39b1[_0x11e777(0x14a)]>=0x190;if(_0x5dd619)throw CliErrors[_0x11e777(0x15d)](_0x1e39b1?.[_0x11e777(0x190)]||_0x1e39b1?.[_0x11e777(0x1b5)]||_0x1e39b1?.['msg']||_0x11e777(0x1ba)+_0x55035e[_0x11e777(0x143)],_0x1e39b1?.[_0x11e777(0x138)]?'SkillHub\x20error\x20code:\x20'+_0x1e39b1['errorCode']:undefined);return _0x1e39b1?.[_0x11e777(0x1a3)]??_0x1e39b1;}catch(_0x19f271){if(_0x19f271 instanceof Error&&_0x19f271[_0x11e777(0x156)]===_0x11e777(0x19d))throw CliErrors[_0x11e777(0x15d)]('Request\x20timeout:\x20'+_0x173c72[_0x11e777(0x125)]());throw _0x19f271;}finally{clearTimeout(_0x266ac7);}}function isSkillHubNotFoundResponse(_0x11f040,_0x33c4f3){const _0x4cb7fc=a76_0x2b79;if(_0x11f040===0x194||_0x33c4f3?.[_0x4cb7fc(0x14a)]===0x194)return!![];if(_0x11f040!==0x190&&_0x33c4f3?.['code']!==0x190)return![];const _0x57d523=[_0x33c4f3?.[_0x4cb7fc(0x1b8)],_0x33c4f3?.['message'],_0x33c4f3?.[_0x4cb7fc(0x190)],_0x33c4f3?.['error']][_0x4cb7fc(0x149)](_0x9e9e9c=>typeof _0x9e9e9c===_0x4cb7fc(0x183))[_0x4cb7fc(0x127)]('\x20');return/skill not found\b/i[_0x4cb7fc(0x162)](_0x57d523);}async function skillHubBinaryRequest(_0x4e3111,_0x3265a5={}){const _0x481b52=a76_0x2b79,{query:_0x19c10d,headers:headers={},timeout:timeout=0x7530}=_0x3265a5,_0x852288=_activeAK;if(!_0x852288)throw CliErrors[_0x481b52(0x150)](_0x481b52(0x1b1)+PRODUCT_CONFIG[_0x481b52(0x185)]+'.');const _0x4a5940=getSkillHubDomain()['replace'](/\/$/,''),_0x50ace1=new URL(_0x4e3111,_0x4a5940+'/');if(_0x19c10d)for(const [_0x586f9b,_0x1d843b]of Object['entries'](_0x19c10d)){_0x1d843b!==undefined&&_0x1d843b!==null&&_0x50ace1[_0x481b52(0x1b2)][_0x481b52(0x12b)](_0x586f9b,String(_0x1d843b));}const _0x4069f0=new AbortController(),_0x27dfb4=setTimeout(()=>_0x4069f0['abort'](),timeout);try{const _0x13344f=await fetch(_0x50ace1[_0x481b52(0x125)](),{'method':_0x481b52(0x13e),'headers':{'Accept':_0x481b52(0x17f),'X-Invoke-Source':PRODUCT_CONFIG[_0x481b52(0x1ad)],'X-User-AK':_0x852288,...headers},'signal':_0x4069f0[_0x481b52(0x15f)]});if(!_0x13344f['ok']){const _0x2a06ec=await decodeResponseBody(_0x13344f),_0x4a71f6=_0x2a06ec[_0x481b52(0x1a3)]&&typeof _0x2a06ec['data']===_0x481b52(0x13c)?_0x2a06ec[_0x481b52(0x1a3)]:{},_0x5dc99e=firstString(_0x4a71f6[_0x481b52(0x190)],_0x4a71f6[_0x481b52(0x1b5)],_0x4a71f6[_0x481b52(0x1b8)],_0x4a71f6[_0x481b52(0x138)],_0x2a06ec['text']);throwIfRateLimited(_0x13344f,_0x2a06ec[_0x481b52(0x1a3)],_0x5dc99e);throw CliErrors[_0x481b52(0x15d)](_0x5dc99e||'SkillHub\x20API\x20error:\x20'+_0x13344f['status'],_0x481b52(0x13d)+_0x50ace1[_0x481b52(0x125)]());}return Buffer[_0x481b52(0x18b)](await _0x13344f[_0x481b52(0x144)]());}catch(_0x4475d5){if(_0x4475d5 instanceof Error&&_0x4475d5['name']===_0x481b52(0x19d))throw CliErrors[_0x481b52(0x15d)](_0x481b52(0x128)+_0x50ace1[_0x481b52(0x125)]());throw _0x4475d5;}finally{clearTimeout(_0x27dfb4);}}export async function getBffEndpointContract(_0x6c57ee,_0x34dd55){const _0x533834=a76_0x2b79;if(_0x34dd55===_0x533834(0x180))throw CliErrors['validation'](_0x533834(0x136)+_0x6c57ee+_0x533834(0x12a)+_0x34dd55);const _0x326bfb=await apiRequest(_0x533834(0x1a5)+encodeURIComponent(_0x6c57ee)+'/'+encodeURIComponent(_0x34dd55)),_0x324ec5=_0x326bfb['data'];if(!_0x324ec5||typeof _0x324ec5!=='object'||Array[_0x533834(0x164)](_0x324ec5)||_0x324ec5[_0x533834(0x172)]!==_0x6c57ee||_0x324ec5[_0x533834(0x16f)]!==_0x34dd55)throw CliErrors[_0x533834(0x16a)](_0x533834(0x136)+_0x6c57ee+_0x533834(0x12a)+_0x34dd55);return{'appCode':_0x324ec5['appCode'],'functionName':_0x324ec5[_0x533834(0x16f)],'description':_0x324ec5[_0x533834(0x12e)],'version':_0x324ec5['version'],'gmtModified':_0x324ec5['gmtModified']};}export async function getSqlQueryInfo(_0x1496e4,_0x24e3db){const _0x2ab2a1=a76_0x2b79,_0x22841f=await apiRequest(_0x2ab2a1(0x1b7),{'method':_0x2ab2a1(0x123),'body':{'appCode':_0x1496e4,'currentPage':0x1,'pageSize':0x1,'sqlCode':_0x24e3db}}),_0x241ed4=_0x22841f[_0x2ab2a1(0x1a3)],_0x57539d=_0x241ed4&&typeof _0x241ed4===_0x2ab2a1(0x13c)&&_0x2ab2a1(0x169)in _0x241ed4?_0x241ed4[_0x2ab2a1(0x169)]?.[0x0]:_0x241ed4&&typeof _0x241ed4===_0x2ab2a1(0x13c)&&_0x2ab2a1(0x155)in _0x241ed4?_0x241ed4:undefined;if(!_0x57539d)throw CliErrors[_0x2ab2a1(0x16a)](_0x2ab2a1(0x159)+_0x24e3db);return _0x57539d;}function isRemoteAppItem(_0x302e0e){const _0x1ef911=a76_0x2b79;return!!_0x302e0e&&typeof _0x302e0e===_0x1ef911(0x13c)&&typeof _0x302e0e['appCode']===_0x1ef911(0x183)&&typeof _0x302e0e[_0x1ef911(0x124)]===_0x1ef911(0x183);}function extractRemoteAppItems(_0xbe218e){const _0xc22ea2=a76_0x2b79;if(Array[_0xc22ea2(0x164)](_0xbe218e))return _0xbe218e[_0xc22ea2(0x149)](isRemoteAppItem);if(!_0xbe218e||typeof _0xbe218e!==_0xc22ea2(0x13c))throw CliErrors[_0xc22ea2(0x15d)](_0xc22ea2(0x188));const _0xd49d43=_0xbe218e;if(Array[_0xc22ea2(0x164)](_0xd49d43['tableData']))return _0xd49d43[_0xc22ea2(0x169)][_0xc22ea2(0x149)](isRemoteAppItem);if(_0xd49d43['data']&&typeof _0xd49d43[_0xc22ea2(0x1a3)]===_0xc22ea2(0x13c)){const _0x164cf9=_0xd49d43[_0xc22ea2(0x1a3)];if(Array[_0xc22ea2(0x164)](_0x164cf9[_0xc22ea2(0x169)]))return _0x164cf9[_0xc22ea2(0x169)][_0xc22ea2(0x149)](isRemoteAppItem);}throw CliErrors[_0xc22ea2(0x15d)](_0xc22ea2(0x16e));}export async function getMyApps(){const _0x8e1ecf=a76_0x2b79,_0x3db63d=await apiRequest(_0x8e1ecf(0x15c));return extractRemoteAppItems(_0x3db63d[_0x8e1ecf(0x1a3)]);}export async function getLoginUserInfo(){const _0x2c120f=a76_0x2b79,_0xa49d3c=await apiRequest('/client/user/loginUserInfo');if(!_0xa49d3c[_0x2c120f(0x1a3)]||typeof _0xa49d3c[_0x2c120f(0x1a3)]!=='object'||Array[_0x2c120f(0x164)](_0xa49d3c[_0x2c120f(0x1a3)]))throw CliErrors['apiError']('Invalid\x20login\x20user\x20info\x20response:\x20expected\x20object.');return _0xa49d3c[_0x2c120f(0x1a3)];}function runtimeSchedulePath(_0x219715,_0x2d9baa=''){const _0x45431f=a76_0x2b79;return _0x45431f(0x160)+encodeURIComponent(_0x219715)+_0x45431f(0x191)+_0x2d9baa;}export async function validateRuntimeSchedule(_0x5f1501,_0x1c5268){const _0x27b6ad=a76_0x2b79,_0x81fa29=await apiRequest(runtimeSchedulePath(_0x5f1501,_0x27b6ad(0x17b)),{'method':_0x27b6ad(0x123),'body':_0x1c5268});return _0x81fa29['data'];}export async function createRuntimeSchedule(_0x222da0,_0x5f3cce){const _0x4031dc=a76_0x2b79,_0x4c33ce=await apiRequest(runtimeSchedulePath(_0x222da0),{'method':'POST','body':_0x5f3cce});return _0x4c33ce[_0x4031dc(0x1a3)];}export async function listRuntimeSchedules(_0x2a9ad8,_0x229c38={}){const _0x185059=a76_0x2b79,_0x3c5076=new URLSearchParams();if(_0x229c38['limit']!==undefined)_0x3c5076['set']('limit',String(_0x229c38[_0x185059(0x178)]));if(_0x229c38[_0x185059(0x1a0)])_0x3c5076[_0x185059(0x12b)]('cursor',_0x229c38[_0x185059(0x1a0)]);const _0x3d796e=_0x3c5076[_0x185059(0x1a8)]>0x0?'?'+_0x3c5076[_0x185059(0x125)]():'',_0x161a71=await apiRequest(''+runtimeSchedulePath(_0x2a9ad8)+_0x3d796e);return _0x161a71[_0x185059(0x1a3)];}export async function getRuntimeSchedule(_0x17c659,_0x3d5889){const _0x4f6288=await apiRequest(runtimeSchedulePath(_0x17c659,'/'+encodeURIComponent(_0x3d5889)));return _0x4f6288['data'];}export async function deleteRuntimeSchedule(_0x23cd20,_0x3709e9){const _0x33c3d4=a76_0x2b79,_0x26db6d=await apiRequest(runtimeSchedulePath(_0x23cd20,'/'+encodeURIComponent(_0x3709e9)),{'method':'DELETE'});return _0x26db6d[_0x33c3d4(0x1a3)];}export async function runRuntimeSchedule(_0x30982d,_0x506e9f){const _0x6bb853=a76_0x2b79,_0x3f6a7a=await apiRequest(runtimeSchedulePath(_0x30982d,'/'+encodeURIComponent(_0x506e9f)+_0x6bb853(0x18a)),{'method':'POST'});return _0x3f6a7a[_0x6bb853(0x1a3)];}export async function listDatasets(_0x9810eb,_0x4e97ab){const _0x2f54f9=a76_0x2b79,_0x1dd5aa=await apiRequest(_0x2f54f9(0x161),{'method':'POST','body':{'appCode':_0x9810eb,..._0x4e97ab?.[_0x2f54f9(0x14a)]&&{'code':_0x4e97ab[_0x2f54f9(0x14a)]},..._0x4e97ab?.['name']&&{'name':_0x4e97ab[_0x2f54f9(0x156)]}}});return extractList(_0x1dd5aa['data']);}export async function getDatasetDetail(_0x31d523){const _0x4a0e1f=a76_0x2b79,_0x5da1b8=await apiRequest('/client/dataset/get-driven-data?code='+encodeURIComponent(_0x31d523));return _0x5da1b8[_0x4a0e1f(0x1a3)];}export async function getDatasetSdkUsageDoc(_0x26f81e,_0x5b7ecd){const _0x376f42=a76_0x2b79,_0x2d24f8=await toolboxRequest(_0x376f42(0x131),{'datasetCode':_0x26f81e,'appCode':_0x5b7ecd});return typeof _0x2d24f8?.[_0x376f42(0x197)]===_0x376f42(0x183)?_0x2d24f8['markdown']:'';}export async function uploadRuntimeFile(_0x5d62cc,_0x174606){const _0x3a6c37=a76_0x2b79,_0xf9966c=await readFile(_0x174606),_0x8268a9=new FormData();_0x8268a9[_0x3a6c37(0x19c)](_0x3a6c37(0x172),_0x5d62cc),_0x8268a9[_0x3a6c37(0x19c)](_0x3a6c37(0x187),new Blob([new Uint8Array(_0xf9966c)]),basename(_0x174606));const _0x1b1c72=await apiFormRequest(_0x3a6c37(0x1a4),_0x8268a9);return _0x1b1c72[_0x3a6c37(0x1a3)];}export async function queryRuntimeFileUrl(_0x400349,_0x4408d2={}){const _0x294958=a76_0x2b79,_0x5836e2=await apiRequest(_0x294958(0x17e),{'method':_0x294958(0x123),'body':{'filePath':_0x400349,'downloadFlag':_0x4408d2['download']??![],..._0x4408d2[_0x294958(0x151)]?{'longTerm':!![]}:{}}});return _0x5836e2[_0x294958(0x1a3)];}export async function recognizeRuntimeOcr(_0x382fb1,_0x264d68){const _0x51568f=a76_0x2b79,_0x9234c2=await apiRequest(_0x51568f(0x1a1),{'method':_0x51568f(0x123),'body':{'appCode':_0x382fb1,'url':_0x264d68[_0x51568f(0x146)],'type':_0x264d68[_0x51568f(0x18f)]}});return _0x9234c2['data'];}export async function getRuntimeAppConfigByKey(_0x267af9,_0x5915b6){const _0x1de2cb=a76_0x2b79,_0x2d4ab4=new URLSearchParams({'appCode':_0x267af9,'key':_0x5915b6}),_0x31a296=await apiRequest(_0x1de2cb(0x1b0)+_0x2d4ab4['toString']());if(typeof _0x31a296[_0x1de2cb(0x1a3)]!=='string')throw CliErrors[_0x1de2cb(0x16a)](_0x1de2cb(0x141)+_0x5915b6);return _0x31a296[_0x1de2cb(0x1a3)];}export async function listRuntimeArtifacts(_0x520370,_0xaeee84){const _0x481627=a76_0x2b79,_0x3e2cb1=new URLSearchParams({'appCode':_0x520370});if(_0xaeee84?.[_0x481627(0x170)])_0x3e2cb1[_0x481627(0x12b)](_0x481627(0x170),_0xaeee84['artifactType']);if(_0xaeee84?.['source'])_0x3e2cb1[_0x481627(0x12b)](_0x481627(0x1a2),_0xaeee84[_0x481627(0x1a2)]);if(_0xaeee84?.[_0x481627(0x158)]!==undefined)_0x3e2cb1[_0x481627(0x12b)](_0x481627(0x158),String(_0xaeee84[_0x481627(0x158)]));const _0x596976=await apiRequest(_0x481627(0x176)+_0x3e2cb1[_0x481627(0x125)]());return Array[_0x481627(0x164)](_0x596976[_0x481627(0x1a3)])?_0x596976['data']:[];}export async function getRuntimeArtifact(_0x50e954,_0x542aa3){const _0x1286d3=a76_0x2b79,_0x403b33=await apiRequest(_0x1286d3(0x173)+_0x50e954+_0x1286d3(0x168)+encodeURIComponent(_0x542aa3));if(!_0x403b33['data'])throw CliErrors[_0x1286d3(0x16a)](_0x1286d3(0x12d)+_0x50e954);return _0x403b33[_0x1286d3(0x1a3)];}export async function createRuntimeArtifact(_0x4e28ac,_0x3f9017){const _0x47195e=a76_0x2b79,_0x1d1c99=await apiRequest('/client/artifact/create',{'method':'POST','body':{'appCode':_0x4e28ac,..._0x3f9017}});return _0x1d1c99[_0x47195e(0x1a3)];}function a76_0x2b79(_0x21aab1,_0xf55e4b){_0x21aab1=_0x21aab1-0x120;const _0x3c2dcc=a76_0x3c2d();let _0x2b79df=_0x3c2dcc[_0x21aab1];return _0x2b79df;}export async function updateRuntimeArtifact(_0x18d0f2,_0x5a4c79,_0x1fb0e9){const _0x39ecce=a76_0x2b79,_0x2aa8f1=await apiRequest(_0x39ecce(0x173)+_0x18d0f2+'/update',{'method':'POST','body':{'appCode':_0x5a4c79,..._0x1fb0e9}});return _0x2aa8f1[_0x39ecce(0x1a3)];}function a76_0x3c2d(){const _0x1ce44f=['isArray','packageBase64','values','/client/knowledge-base/search','?appCode=','tableData','validation','Toolbox\x20API\x20error:\x20','/client/knowledge-base/personal/list?appCode=','replace','Invalid\x20app\x20list\x20response:\x20missing\x20data.tableData.','functionName','artifactType','undefined','appCode','/client/artifact/','entries','3305972yrxIsJ','/client/artifact/list?','.zip','limit','11326eLxRBD','displayName','/validate','/publish/validate','skillCode','/client/queryFileUrl','application/octet-stream','functions','tags','API\x20error:\x20','string','2062968Qypvsu','newConfigFileName','API\x20error\x20code:\x20','file','Invalid\x20app\x20list\x20response:\x20expected\x20object\x20or\x20array.','headers','/run','from','Toolbox\x20returned\x20non-JSON\x20response\x20(HTTP\x20','/client/runtime-bff/personal/','/api/cli/v1/skills/','type','errorMsg','/schedules','map','headlineVersion','warnings','776dKvZEt','/download','markdown','topK','/client/knowledge-base/personal/create','function','company','append','AbortError','effective','json','cursor','/client/ocr','source','data','/client/uploadFile','/client/bff/endpoint/','Check\x20your\x20credentials\x20and\x20try\x20again.','base64','size','summary','scope','/api/runtime/v1/namespaces/','SkillHub\x20returned\x20non-JSON\x20response\x20(HTTP\x20','invokeSource','/api/v1/skills/','find','/client/app-config/getByKey?','Configure\x20accessKey\x20in\x20','searchParams','skillName','853015HdBKYJ','message','/publish','/client/sql/query','msg','example','SkillHub\x20API\x20error:\x20','Knowledge-base\x20entry\x20not\x20found:\x20id=','toLowerCase','API\x20returned\x20non-JSON\x20response\x20(HTTP\x20','POST','appName','toString','slug','join','Request\x20timeout:\x20','/client/knowledge-base/personal/',',\x20name=','set','valid','Artifact\x20not\x20found:\x20id=','description','stringify','confirmWarnings','api-doc-generator','success','2cAQKuJ','8175375FdBufP','69774ufqqkC','BFF\x20function\x20not\x20found\x20or\x20inaccessible:\x20appCode=','PRIVATE','errorCode','items','/api/node-toolbox/','visibility','object','Download\x20failed:\x20','GET','number','all','Invalid\x20app\x20config\x20value:\x20key=','abort','status','arrayBuffer','/client/runtime-bff/personal/list?appCode=','url','errors','Toolbox\x20error\x20code:\x20','filter','code','233933fDWYRA','text','/update','version','isJson','authRequired','longTerm','application/zip','namespace','NAMESPACE_ONLY','sqlCode','name','personal','favorite','SQL\x20query\x20not\x20found:\x20','resolvedSlug','trim','/client/app/my-apps','apiError','Personal\x20BFF\x20not\x20found:\x20id=','signal','/api/harness/apps/','/client/dataset/list','test','application/json'];a76_0x3c2d=function(){return _0x1ce44f;};return a76_0x3c2d();}export async function listPersonalBffs(_0x7ea4bb){const _0x41c620=a76_0x2b79,_0x478af9=await apiRequest(_0x41c620(0x145)+encodeURIComponent(_0x7ea4bb));return Array['isArray'](_0x478af9[_0x41c620(0x1a3)])?_0x478af9[_0x41c620(0x1a3)]:[];}export async function getPersonalBff(_0xa82291,_0x1c3a91){const _0x2866b7=a76_0x2b79,_0x578ff9=await apiRequest(_0x2866b7(0x18d)+_0xa82291+'?appCode='+encodeURIComponent(_0x1c3a91));if(!_0x578ff9[_0x2866b7(0x1a3)])throw CliErrors[_0x2866b7(0x16a)](_0x2866b7(0x15e)+_0xa82291);return _0x578ff9[_0x2866b7(0x1a3)];}export async function createPersonalBff(_0x104dc5,_0x330ada){const _0x36e66f=a76_0x2b79,_0x32d475=await apiRequest('/client/runtime-bff/personal/create',{'method':_0x36e66f(0x123),'body':{'appCode':_0x104dc5,..._0x330ada}});return _0x32d475['data'];}export async function updatePersonalBff(_0x23226f,_0x330118,_0x1a5f3d){const _0x3a6cc1=a76_0x2b79,_0xf9d386=await apiRequest(_0x3a6cc1(0x18d)+_0x23226f+_0x3a6cc1(0x14d),{'method':_0x3a6cc1(0x123),'body':{'appCode':_0x330118,..._0x1a5f3d}});return _0xf9d386['data'];}export async function executePersonalBff(_0x562190,_0x407293,_0x20a6d0){const _0x243af2=a76_0x2b79,_0x4896a2=await apiRequest(_0x243af2(0x18d)+_0x562190+'/execute?appCode='+encodeURIComponent(_0x407293),{'method':_0x243af2(0x123),'body':_0x20a6d0});return _0x4896a2[_0x243af2(0x1a3)];}export async function listPersonalKnowledgeBaseItems(_0x46d4a5){const _0xdb84d7=a76_0x2b79,_0x57fcaf=await apiRequest(_0xdb84d7(0x16c)+encodeURIComponent(_0x46d4a5));return Array[_0xdb84d7(0x164)](_0x57fcaf[_0xdb84d7(0x1a3)])?_0x57fcaf[_0xdb84d7(0x1a3)]:[];}export async function getPersonalKnowledgeBaseItem(_0x2b650a,_0x41f697){const _0x30862a=a76_0x2b79,_0x2d1c5e=await apiRequest(_0x30862a(0x129)+_0x2b650a+_0x30862a(0x168)+encodeURIComponent(_0x41f697));if(!_0x2d1c5e[_0x30862a(0x1a3)])throw CliErrors['validation'](_0x30862a(0x120)+_0x2b650a);return _0x2d1c5e[_0x30862a(0x1a3)];}export async function createPersonalKnowledgeBaseItem(_0x35c396,_0x3d10cc){const _0x2a8a43=a76_0x2b79,_0x370498=await apiRequest(_0x2a8a43(0x199),{'method':_0x2a8a43(0x123),'body':{'appCode':_0x35c396,..._0x3d10cc}});return _0x370498[_0x2a8a43(0x1a3)];}export async function updatePersonalKnowledgeBaseItem(_0x3387c5,_0x50cbca,_0x13bbef){const _0x2067b0=a76_0x2b79,_0x1076b6=await apiRequest('/client/knowledge-base/personal/'+_0x3387c5+_0x2067b0(0x14d),{'method':_0x2067b0(0x123),'body':{'appCode':_0x50cbca,..._0x13bbef}});return _0x1076b6[_0x2067b0(0x1a3)];}export async function searchKnowledgeBase(_0x4eb3cc,_0x1ba104){const _0x4ff532=a76_0x2b79,_0x1b248f=await apiRequest(_0x4ff532(0x167),{'method':_0x4ff532(0x123),'body':{'appCode':_0x4eb3cc,'query':_0x1ba104['query'],..._0x1ba104[_0x4ff532(0x198)]!==undefined?{'topK':_0x1ba104[_0x4ff532(0x198)]}:{}}});return Array[_0x4ff532(0x164)](_0x1b248f[_0x4ff532(0x1a3)])?_0x1b248f[_0x4ff532(0x1a3)]:[];}export async function getRuntimeSkillByCode(_0x5b9f2e,_0x33dd76){const _0x4dfcfa=a76_0x2b79,_0x1de253=await skillHubJsonRequest(_0x4dfcfa(0x1ae)+encodeURIComponent(_0x5b9f2e)+'/'+encodeURIComponent(_0x33dd76),{'allowNotFound':!![]});return _0x1de253?skillHubRuntimeDetailToRuntimeSkill(_0x1de253):undefined;}export async function listRuntimeSkills(_0x5eec74){const _0x27fef0=a76_0x2b79,_0x5723fc=await skillHubJsonRequest(_0x27fef0(0x1ab)+encodeURIComponent(_0x5eec74[_0x27fef0(0x172)])+'/skills',{'query':{'page':0x0,'size':0xc8}});return normalizeSkillHubRuntimeListResponse(_0x5eec74[_0x27fef0(0x172)],_0x5723fc,_0x5eec74[_0x27fef0(0x1aa)]??_0x27fef0(0x140),_0x5eec74['code']);}export async function listPersonalRuntimeSkills(_0x111ff2){const _0x362678=a76_0x2b79;return(await listRuntimeSkills({'appCode':_0x111ff2,'scope':_0x362678(0x157)}))['personal'];}export async function listCompanyRuntimeSkills(_0x4a4bf2){const _0x235f57=a76_0x2b79;return(await listRuntimeSkills({'appCode':_0x4a4bf2,'scope':_0x235f57(0x19b)}))[_0x235f57(0x19b)];}export async function listVisibleRuntimeSkills(_0x394a63){const _0x2a1b28=a76_0x2b79;return(await listRuntimeSkills({'appCode':_0x394a63,'scope':_0x2a1b28(0x140)}))[_0x2a1b28(0x19e)];}export async function createPersonalRuntimeSkill(_0x12fefe,_0x693902,_0x45985c={}){const _0x3314c1=a76_0x2b79;return publishRuntimeSkill(_0x12fefe,_0x693902,{'visibility':_0x3314c1(0x137),'confirmWarnings':_0x45985c[_0x3314c1(0x130)]});}export async function updatePersonalRuntimeSkill(_0x12d588,_0x32d691,_0x15d6f1,_0x164bcb={}){const _0x3435ce=a76_0x2b79;return publishRuntimeSkill(_0x32d691,{..._0x15d6f1,'skillCode':_0x15d6f1['skillCode']??_0x12d588},{'visibility':_0x3435ce(0x137),'confirmWarnings':_0x164bcb[_0x3435ce(0x130)]});}export async function publishCompanyRuntimeSkill(_0x5b1562,_0x36e84d,_0x566d5f={}){return publishRuntimeSkill(_0x5b1562,_0x36e84d,{'visibility':'NAMESPACE_ONLY','confirmWarnings':_0x566d5f['confirmWarnings']});}export async function validateRuntimeSkillPublish(_0x23585f,_0x30244f,_0x25559b){const _0xd6ef06=a76_0x2b79,_0x220a4a=buildRuntimeSkillPublishForm(_0x30244f,_0x25559b[_0xd6ef06(0x13b)]),_0x405579=await skillHubJsonRequest(_0xd6ef06(0x18e)+encodeURIComponent(_0x23585f)+_0xd6ef06(0x17c),{'method':'POST','body':_0x220a4a});return{'valid':_0x405579[_0xd6ef06(0x12c)]===!![],'errors':Array[_0xd6ef06(0x164)](_0x405579[_0xd6ef06(0x147)])?_0x405579['errors']:[],'warnings':Array[_0xd6ef06(0x164)](_0x405579[_0xd6ef06(0x194)])?_0x405579['warnings']:[],'resolvedSlug':_0x405579[_0xd6ef06(0x15a)],'resolvedVersion':_0x405579['resolvedVersion']};}export async function downloadRuntimeSkillPackage(_0x5e4ffc,_0x263a62,_0x17234b,_0x32c451){const _0x57b08c=a76_0x2b79;void _0x5e4ffc;const _0x49d66f=_0x32c451?'/api/cli/v1/skills/'+encodeURIComponent(_0x17234b)+'/'+encodeURIComponent(_0x263a62)+'/versions/'+encodeURIComponent(_0x32c451)+_0x57b08c(0x196):_0x57b08c(0x18e)+encodeURIComponent(_0x17234b)+'/'+encodeURIComponent(_0x263a62)+_0x57b08c(0x196);return skillHubBinaryRequest(_0x49d66f);}async function publishRuntimeSkill(_0x4b4e31,_0x128c03,_0x4cf004){const _0x5054bf=a76_0x2b79,_0x52cf70=buildRuntimeSkillPublishForm(_0x128c03,_0x4cf004['visibility']),_0x5ec933=await skillHubJsonRequest(_0x5054bf(0x18e)+encodeURIComponent(_0x4b4e31)+_0x5054bf(0x1b6),{'method':'POST','query':{'confirmWarnings':_0x4cf004['confirmWarnings']===!![]?!![]:undefined},'body':_0x52cf70});return{'appCode':_0x5ec933[_0x5054bf(0x153)]??_0x4b4e31,'skillCode':_0x5ec933[_0x5054bf(0x126)]??_0x128c03[_0x5054bf(0x17d)]??'','skillName':_0x128c03[_0x5054bf(0x1b3)]??_0x5ec933[_0x5054bf(0x126)]??_0x128c03['skillCode'],'description':_0x128c03[_0x5054bf(0x12e)],'scope':skillHubVisibilityToScope(_0x5ec933[_0x5054bf(0x13b)]??_0x4cf004[_0x5054bf(0x13b)])??_0x5054bf(0x157),'version':_0x5ec933['version']??_0x128c03['version'],'tags':_0x128c03[_0x5054bf(0x181)],'content':_0x128c03['content']};}function buildRuntimeSkillPublishForm(_0xd085a5,_0x304b3a){const _0x294b60=a76_0x2b79,_0x6a1bda=new FormData();return _0x6a1bda[_0x294b60(0x12b)]('file',runtimeSkillPackageFile(_0xd085a5)),_0xd085a5[_0x294b60(0x1b3)]?.[_0x294b60(0x15b)]()&&_0x6a1bda[_0x294b60(0x12b)](_0x294b60(0x17a),_0xd085a5['skillName'][_0x294b60(0x15b)]()),_0x6a1bda['set'](_0x294b60(0x13b),_0x304b3a),_0x6a1bda;}function runtimeSkillPackageFile(_0x227ae0){const _0x253b9a=a76_0x2b79;if(!_0x227ae0[_0x253b9a(0x165)])throw CliErrors['validation']('Missing\x20Skill\x20package\x20payload.');const _0x164bb9=Buffer['from'](_0x227ae0['packageBase64'],_0x253b9a(0x1a7)),_0x51aad6=new Blob([_0x164bb9],{'type':_0x253b9a(0x152)}),_0x4683d6=(_0x227ae0['skillCode']||'skill')+_0x253b9a(0x177);if(typeof File!==_0x253b9a(0x171))return new File([_0x51aad6],_0x4683d6,{'type':_0x253b9a(0x152)});return _0x51aad6;}function normalizeSkillHubRuntimeListResponse(_0x37c12c,_0x934b52,_0x5ef511,_0x3edbd0){const _0xcdc414=a76_0x2b79,_0xa33dda=Array['isArray'](_0x934b52)?_0x934b52:Array[_0xcdc414(0x164)](_0x934b52?.[_0xcdc414(0x139)])?_0x934b52[_0xcdc414(0x139)]:[],_0x4b0c8=_0x3edbd0?.[_0xcdc414(0x15b)](),_0x5004f6=_0xa33dda[_0xcdc414(0x149)](_0x32dfb6=>!_0x4b0c8||_0x32dfb6[_0xcdc414(0x126)]===_0x4b0c8)[_0xcdc414(0x192)](skillHubRuntimeItemToRuntimeSkill)[_0xcdc414(0x149)](_0x46217d=>Boolean(_0x46217d)),_0x34e4b7=_0x5004f6[_0xcdc414(0x149)](_0x4abb07=>_0x4abb07['scope']===_0xcdc414(0x157)),_0x5d3222=_0x5004f6[_0xcdc414(0x149)](_0x2251e6=>_0x2251e6[_0xcdc414(0x1aa)]===_0xcdc414(0x19b));return{'appCode':_0x37c12c,'personal':_0x5ef511===_0xcdc414(0x19b)?[]:_0x34e4b7,'company':_0x5ef511==='personal'?[]:_0x5d3222,'effective':buildEffectiveRuntimeSkills(_0x34e4b7,_0x5d3222,_0x5ef511)};}function skillHubRuntimeItemToRuntimeSkill(_0x39466f){const _0x3036ac=a76_0x2b79,_0x16e3c0=_0x39466f['slug']?.[_0x3036ac(0x15b)](),_0x213947=skillHubVisibilityToScope(_0x39466f[_0x3036ac(0x13b)]);if(!_0x16e3c0||!_0x213947)return undefined;return{'id':_0x39466f['id'],'appCode':_0x39466f['namespace'],'skillCode':_0x16e3c0,'skillName':_0x39466f[_0x3036ac(0x17a)]??_0x16e3c0,'description':_0x39466f[_0x3036ac(0x1a9)],'scope':_0x213947,'version':skillHubRuntimeItemVersion(_0x39466f),'status':_0x39466f[_0x3036ac(0x143)]};}function skillHubRuntimeDetailToRuntimeSkill(_0x2fab50){const _0x1ac44b=a76_0x2b79,_0x1a53c2=_0x2fab50[_0x1ac44b(0x126)]?.[_0x1ac44b(0x15b)]();if(!_0x1a53c2)return undefined;return{'id':_0x2fab50['id'],'appCode':_0x2fab50[_0x1ac44b(0x153)],'skillCode':_0x1a53c2,'skillName':_0x2fab50['displayName']??_0x1a53c2,'description':_0x2fab50[_0x1ac44b(0x1a9)],'example':_0x2fab50[_0x1ac44b(0x1b9)],'scope':skillHubVisibilityToScope(_0x2fab50[_0x1ac44b(0x13b)])??_0x2fab50[_0x1ac44b(0x13b)]?.[_0x1ac44b(0x121)](),'version':skillHubRuntimeItemVersion(_0x2fab50),'status':_0x2fab50[_0x1ac44b(0x143)]};}function skillHubVisibilityToScope(_0x2c5553){const _0x4fbbf8=a76_0x2b79;if(_0x2c5553==='PRIVATE')return _0x4fbbf8(0x157);if(_0x2c5553===_0x4fbbf8(0x154))return _0x4fbbf8(0x19b);return undefined;}function skillHubRuntimeItemVersion(_0x306ad1){const _0x5eedbd=a76_0x2b79;return _0x306ad1['publishedVersion']?.[_0x5eedbd(0x14e)]??_0x306ad1[_0x5eedbd(0x193)]?.[_0x5eedbd(0x14e)]??_0x306ad1['ownerPreviewVersion']?.['version'];}function buildEffectiveRuntimeSkills(_0xf9ec49,_0x1c452a,_0x5cb34b){const _0x346c9a=a76_0x2b79;if(_0x5cb34b===_0x346c9a(0x157))return _0xf9ec49;if(_0x5cb34b===_0x346c9a(0x19b))return _0x1c452a;const _0x47d495=new Map();for(const _0x397258 of _0x1c452a){_0x47d495[_0x346c9a(0x12b)](_0x397258[_0x346c9a(0x17d)],_0x397258);}for(const _0x12bd44 of _0xf9ec49){_0x47d495[_0x346c9a(0x12b)](_0x12bd44['skillCode'],_0x12bd44);}return Array[_0x346c9a(0x18b)](_0x47d495[_0x346c9a(0x166)]());}function normalizeRuntimeSkillListResponse(_0x1bce3e,_0x5ea3d5){const _0x5ea993=a76_0x2b79;if(Array[_0x5ea993(0x164)](_0x5ea3d5)){const _0x3f76f6=_0x5ea3d5[_0x5ea993(0x149)](_0x42fb8d=>_0x42fb8d[_0x5ea993(0x1aa)]===_0x5ea993(0x157)),_0x1969e9=_0x5ea3d5['filter'](_0x264c6f=>_0x264c6f[_0x5ea993(0x1aa)]==='company');return{'appCode':_0x1bce3e,'personal':_0x3f76f6,'company':_0x1969e9,'effective':[..._0x1969e9,..._0x3f76f6]};}return{'appCode':_0x5ea3d5?.[_0x5ea993(0x172)]??_0x1bce3e,'personal':Array['isArray'](_0x5ea3d5?.[_0x5ea993(0x157)])?_0x5ea3d5[_0x5ea993(0x157)]:[],'company':Array[_0x5ea993(0x164)](_0x5ea3d5?.[_0x5ea993(0x19b)])?_0x5ea3d5[_0x5ea993(0x19b)]:[],'effective':Array[_0x5ea993(0x164)](_0x5ea3d5?.['effective'])?_0x5ea3d5[_0x5ea993(0x19e)]:[]};}
1
+ (function(_0x547fbb,_0x532d36){const _0x3ca6f9=a76_0x2466,_0x43cc17=_0x547fbb();while(!![]){try{const _0x246764=-parseInt(_0x3ca6f9(0xbf))/0x1*(-parseInt(_0x3ca6f9(0xf2))/0x2)+-parseInt(_0x3ca6f9(0xcc))/0x3*(parseInt(_0x3ca6f9(0x112))/0x4)+parseInt(_0x3ca6f9(0xe3))/0x5*(parseInt(_0x3ca6f9(0xb2))/0x6)+parseInt(_0x3ca6f9(0xfa))/0x7+parseInt(_0x3ca6f9(0x9e))/0x8*(parseInt(_0x3ca6f9(0x110))/0x9)+parseInt(_0x3ca6f9(0x9c))/0xa*(-parseInt(_0x3ca6f9(0xdc))/0xb)+-parseInt(_0x3ca6f9(0x124))/0xc*(parseInt(_0x3ca6f9(0xcb))/0xd);if(_0x246764===_0x532d36)break;else _0x43cc17['push'](_0x43cc17['shift']());}catch(_0x31ae0d){_0x43cc17['push'](_0x43cc17['shift']());}}}(a76_0xd2b1,0xadcbc));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(_0x12e0f3){_activeAK=_0x12e0f3||undefined;}export function clearActiveAK(){_activeAK=undefined;}function firstString(..._0x1dd335){const _0x465deb=a76_0x2466;for(const _0xf7f9bf of _0x1dd335){if(typeof _0xf7f9bf===_0x465deb(0x10a)&&_0xf7f9bf[_0x465deb(0xc5)]())return _0xf7f9bf['trim']();}return undefined;}async function decodeResponseBody(_0x3b1e22){const _0x2db338=a76_0x2466;if(typeof _0x3b1e22[_0x2db338(0xa0)]===_0x2db338(0xf0))try{const _0x50836c=await _0x3b1e22[_0x2db338(0xa0)]();try{return{'isJson':!![],'data':parseLosslessJson(_0x50836c),'text':_0x50836c};}catch{return{'isJson':![],'text':_0x50836c[_0x2db338(0xc5)]()||undefined};}}catch{}try{return{'isJson':!![],'data':await _0x3b1e22[_0x2db338(0xa4)]()};}catch{return{'isJson':![]};}}function throwIfRateLimited(_0x99bd61,_0x181fd5,_0x208b41){const _0x4615f9=a76_0x2466,_0x41458c=_0x181fd5&&typeof _0x181fd5===_0x4615f9(0x111)?_0x181fd5:{},_0x264564=[_0x41458c['status'],_0x41458c[_0x4615f9(0x102)]][_0x4615f9(0xc9)](_0x4d25f5=>Number(_0x4d25f5)===0x1ad),_0x2b7204=createRateLimitError({'status':_0x99bd61[_0x4615f9(0x11d)]===0x1ad?_0x99bd61['status']:_0x264564??_0x99bd61[_0x4615f9(0x11d)],'errorCode':firstString(_0x41458c['errorCode'],typeof _0x41458c['code']===_0x4615f9(0x10a)?_0x41458c['code']:undefined),'message':firstString(_0x41458c[_0x4615f9(0x115)],_0x41458c[_0x4615f9(0xb1)],_0x41458c[_0x4615f9(0xb8)],_0x208b41),'retryAfter':readRetryAfter(_0x99bd61[_0x4615f9(0xde)])??readRetryAfterSeconds(_0x181fd5)});if(_0x2b7204)throw _0x2b7204;}async function apiRequest(_0x1c6798,_0x9ea0ac={}){const _0x193f1f=a76_0x2466,{method:method=_0x193f1f(0x96),body:_0x26d6ad,headers:headers={},timeout:timeout=0x7530}=_0x9ea0ac,_0x1ae2b5=_activeAK,_0x47b049=getRuntimeDomain();if(!_0x1ae2b5)throw CliErrors[_0x193f1f(0x9b)](_0x193f1f(0xe6)+PRODUCT_CONFIG[_0x193f1f(0xae)]+'.');const _0xa822af=''+_0x47b049+_0x1c6798,_0x506020={'X-User-AK':_0x1ae2b5},_0x34c5e9=new AbortController(),_0x5a130f=setTimeout(()=>_0x34c5e9[_0x193f1f(0xfe)](),timeout);try{const _0x9417b1=await fetch(_0xa822af,{'method':method,'headers':{'Content-Type':'application/json','X-Invoke-Source':PRODUCT_CONFIG[_0x193f1f(0x117)],..._0x506020,...headers},'body':_0x26d6ad?JSON['stringify'](_0x26d6ad):undefined,'signal':_0x34c5e9['signal']}),_0x3c2cfb=await decodeResponseBody(_0x9417b1);if(!_0x3c2cfb[_0x193f1f(0xa1)]){throwIfRateLimited(_0x9417b1,undefined,_0x3c2cfb[_0x193f1f(0xa0)]);throw CliErrors[_0x193f1f(0xa5)]('API\x20returned\x20non-JSON\x20response\x20(HTTP\x20'+_0x9417b1['status']+')',_0x9417b1[_0x193f1f(0x11d)]>=0x190?_0x193f1f(0xea):undefined);}const _0x11e306=_0x3c2cfb[_0x193f1f(0xb9)];throwIfRateLimited(_0x9417b1,_0x11e306);if(!_0x9417b1['ok']||_0x11e306[_0x193f1f(0x128)]===![])throw CliErrors[_0x193f1f(0xa5)](_0x11e306['errorMsg']||_0x11e306['message']||_0x193f1f(0xa2)+_0x9417b1[_0x193f1f(0x11d)],_0x11e306[_0x193f1f(0xb7)]?_0x193f1f(0xd5)+_0x11e306[_0x193f1f(0xb7)]:undefined);return _0x11e306;}catch(_0x2b9515){if(_0x2b9515 instanceof Error&&_0x2b9515[_0x193f1f(0xc1)]===_0x193f1f(0xd8))throw CliErrors[_0x193f1f(0xa5)]('Request\x20timeout:\x20'+_0xa822af);throw _0x2b9515;}finally{clearTimeout(_0x5a130f);}}async function apiBinaryRequest(_0x3bab0a,_0x41d06f={}){const _0x14ea95=a76_0x2466,{method:method=_0x14ea95(0x96),headers:headers={},timeout:timeout=0x7530}=_0x41d06f,_0x36f921=_activeAK,_0x42b55a=getRuntimeDomain();if(!_0x36f921)throw CliErrors[_0x14ea95(0x9b)](_0x14ea95(0xe6)+PRODUCT_CONFIG['newConfigFileName']+'.');const _0x3d7908=''+_0x42b55a+_0x3bab0a,_0x25f3bc=new AbortController(),_0x2e10ec=setTimeout(()=>_0x25f3bc[_0x14ea95(0xfe)](),timeout);try{const _0x2dfec0=await fetch(_0x3d7908,{'method':method,'headers':{'X-Invoke-Source':PRODUCT_CONFIG[_0x14ea95(0x117)],'X-User-AK':_0x36f921,...headers},'signal':_0x25f3bc['signal']});if(!_0x2dfec0['ok']){const _0x947328=await decodeResponseBody(_0x2dfec0),_0x4b2122=_0x947328[_0x14ea95(0xb9)]&&typeof _0x947328[_0x14ea95(0xb9)]===_0x14ea95(0x111)?_0x947328[_0x14ea95(0xb9)]:{},_0x4c11ba=firstString(_0x4b2122['errorMsg'],_0x4b2122[_0x14ea95(0xb1)],_0x4b2122[_0x14ea95(0xb7)],_0x947328[_0x14ea95(0xa0)]);throwIfRateLimited(_0x2dfec0,_0x947328['data'],_0x4c11ba);throw CliErrors[_0x14ea95(0xa5)](_0x4c11ba||_0x14ea95(0xa2)+_0x2dfec0[_0x14ea95(0x11d)],'Download\x20failed:\x20'+_0x3d7908);}return Buffer[_0x14ea95(0x10d)](await _0x2dfec0[_0x14ea95(0xf1)]());}catch(_0x485733){if(_0x485733 instanceof Error&&_0x485733[_0x14ea95(0xc1)]===_0x14ea95(0xd8))throw CliErrors['apiError'](_0x14ea95(0x11b)+_0x3d7908);throw _0x485733;}finally{clearTimeout(_0x2e10ec);}}async function apiFormRequest(_0x325af1,_0x130881,_0x29539e={}){const _0x1ddd4f=a76_0x2466,{timeout:timeout=0x7530}=_0x29539e,_0x56431c=_activeAK,_0x19e8f9=getRuntimeDomain();if(!_0x56431c)throw CliErrors[_0x1ddd4f(0x9b)](_0x1ddd4f(0xe6)+PRODUCT_CONFIG[_0x1ddd4f(0xae)]+'.');const _0x4b9463=''+_0x19e8f9+_0x325af1,_0x3654df=new AbortController(),_0x1e709a=setTimeout(()=>_0x3654df['abort'](),timeout);try{const _0x1d0d8c=await fetch(_0x4b9463,{'method':_0x1ddd4f(0xa3),'headers':{'X-Invoke-Source':PRODUCT_CONFIG[_0x1ddd4f(0x117)],'X-User-AK':_0x56431c},'body':_0x130881,'signal':_0x3654df[_0x1ddd4f(0xfb)]}),_0x29abe8=await decodeResponseBody(_0x1d0d8c);if(!_0x29abe8[_0x1ddd4f(0xa1)]){throwIfRateLimited(_0x1d0d8c,undefined,_0x29abe8[_0x1ddd4f(0xa0)]);throw CliErrors[_0x1ddd4f(0xa5)](_0x1ddd4f(0x11f)+_0x1d0d8c['status']+')',_0x1d0d8c[_0x1ddd4f(0x11d)]>=0x190?_0x1ddd4f(0xea):undefined);}const _0x2c5932=_0x29abe8[_0x1ddd4f(0xb9)];throwIfRateLimited(_0x1d0d8c,_0x2c5932);if(!_0x1d0d8c['ok']||_0x2c5932[_0x1ddd4f(0x128)]===![])throw CliErrors[_0x1ddd4f(0xa5)](_0x2c5932[_0x1ddd4f(0x115)]||_0x2c5932['message']||_0x1ddd4f(0xa2)+_0x1d0d8c['status'],_0x2c5932[_0x1ddd4f(0xb7)]?'API\x20error\x20code:\x20'+_0x2c5932[_0x1ddd4f(0xb7)]:undefined);return _0x2c5932;}catch(_0x1741ab){if(_0x1741ab instanceof Error&&_0x1741ab[_0x1ddd4f(0xc1)]===_0x1ddd4f(0xd8))throw CliErrors['apiError']('Request\x20timeout:\x20'+_0x4b9463);throw _0x1741ab;}finally{clearTimeout(_0x1e709a);}}async function toolboxRequest(_0x2f557a,_0x58e6ed,_0x145c49={}){const _0x4c8d25=a76_0x2466,{method:method=_0x4c8d25(0x96),headers:headers={},timeout:timeout=0x7530}=_0x145c49,_0x17dea0=_activeAK;if(!_0x17dea0)throw CliErrors['authRequired'](_0x4c8d25(0xe6)+PRODUCT_CONFIG[_0x4c8d25(0xae)]+'.');const _0xeb6756=getApiDomain()[_0x4c8d25(0xa8)](/\/$/,''),_0x118253=new URL(_0x2f557a,_0xeb6756+_0x4c8d25(0xf5));if(_0x58e6ed)for(const [_0x4557af,_0x2b78eb]of Object['entries'](_0x58e6ed)){_0x2b78eb!==undefined&&_0x2b78eb!==null&&_0x118253[_0x4c8d25(0x95)][_0x4c8d25(0xac)](_0x4557af,String(_0x2b78eb));}const _0x47c9a1=new AbortController(),_0x15adcb=setTimeout(()=>_0x47c9a1[_0x4c8d25(0xfe)](),timeout);try{const _0x2fbc76=await fetch(_0x118253,{'method':method,'headers':{'Content-Type':_0x4c8d25(0xa9),'X-Invoke-Source':PRODUCT_CONFIG[_0x4c8d25(0x117)],'X-User-AK':_0x17dea0,...headers},'signal':_0x47c9a1[_0x4c8d25(0xfb)]}),_0x14c964=await decodeResponseBody(_0x2fbc76);if(!_0x14c964[_0x4c8d25(0xa1)]){throwIfRateLimited(_0x2fbc76,undefined,_0x14c964[_0x4c8d25(0xa0)]);throw CliErrors[_0x4c8d25(0xa5)](_0x4c8d25(0x127)+_0x2fbc76[_0x4c8d25(0x11d)]+')',_0x2fbc76[_0x4c8d25(0x11d)]>=0x190?_0x4c8d25(0xea):undefined);}const _0x3617cb=_0x14c964[_0x4c8d25(0xb9)];throwIfRateLimited(_0x2fbc76,_0x3617cb);if(!_0x2fbc76['ok']){const _0x21bbc3=_0x3617cb&&typeof _0x3617cb==='object'?_0x3617cb:{};throw CliErrors[_0x4c8d25(0xa5)](_0x21bbc3[_0x4c8d25(0x115)]||_0x21bbc3[_0x4c8d25(0xb1)]||_0x4c8d25(0xc7)+_0x2fbc76[_0x4c8d25(0x11d)],_0x21bbc3[_0x4c8d25(0xb7)]?'Toolbox\x20error\x20code:\x20'+_0x21bbc3[_0x4c8d25(0xb7)]:undefined);}if(_0x3617cb&&typeof _0x3617cb===_0x4c8d25(0x111)&&_0x4c8d25(0x128)in _0x3617cb&&typeof _0x3617cb[_0x4c8d25(0x128)]===_0x4c8d25(0xb0)){const _0x446874=_0x3617cb;if(!_0x446874[_0x4c8d25(0x128)])throw CliErrors[_0x4c8d25(0xa5)](_0x446874['errorMsg']||_0x446874[_0x4c8d25(0xb1)]||_0x4c8d25(0x10c),_0x446874[_0x4c8d25(0xb7)]?_0x4c8d25(0x11a)+_0x446874['errorCode']:undefined);return _0x446874[_0x4c8d25(0xb9)];}return _0x3617cb;}catch(_0x57f379){if(_0x57f379 instanceof Error&&_0x57f379['name']===_0x4c8d25(0xd8))throw CliErrors[_0x4c8d25(0xa5)](_0x4c8d25(0x11b)+_0x118253[_0x4c8d25(0x101)]());throw _0x57f379;}finally{clearTimeout(_0x15adcb);}}async function skillHubJsonRequest(_0x453acc,_0x70dd8e={}){const _0xc64a78=a76_0x2466,{method:method=_0xc64a78(0x96),query:_0x4da413,body:_0x42f94d,headers:headers={},timeout:timeout=0x7530,allowNotFound:allowNotFound=![]}=_0x70dd8e,_0x3d8fc7=_activeAK;if(!_0x3d8fc7)throw CliErrors['authRequired'](_0xc64a78(0xe6)+PRODUCT_CONFIG[_0xc64a78(0xae)]+'.');const _0x1d568e=getSkillHubDomain()[_0xc64a78(0xa8)](/\/$/,''),_0x1b4253=new URL(_0x453acc,_0x1d568e+'/');if(_0x4da413)for(const [_0xaa9f5c,_0x40e07c]of Object[_0xc64a78(0xe8)](_0x4da413)){_0x40e07c!==undefined&&_0x40e07c!==null&&_0x1b4253[_0xc64a78(0x95)][_0xc64a78(0xac)](_0xaa9f5c,String(_0x40e07c));}const _0x4c5f63=new AbortController(),_0x450ca0=setTimeout(()=>_0x4c5f63[_0xc64a78(0xfe)](),timeout);try{const _0x25c44c=await fetch(_0x1b4253[_0xc64a78(0x101)](),{'method':method,'headers':{'Accept':_0xc64a78(0xa9),'X-Invoke-Source':PRODUCT_CONFIG['invokeSource'],'X-User-AK':_0x3d8fc7,...headers},'body':_0x42f94d,'signal':_0x4c5f63[_0xc64a78(0xfb)]}),_0x3f6644=await decodeResponseBody(_0x25c44c);if(!_0x3f6644['isJson']){if(allowNotFound&&_0x25c44c['status']===0x194)return undefined;throwIfRateLimited(_0x25c44c,undefined,_0x3f6644['text']);throw CliErrors[_0xc64a78(0xa5)]('SkillHub\x20returned\x20non-JSON\x20response\x20(HTTP\x20'+_0x25c44c[_0xc64a78(0x11d)]+')',_0x25c44c['status']>=0x190?_0xc64a78(0xea):undefined);}const _0x56cbd9=_0x3f6644['data'];throwIfRateLimited(_0x25c44c,_0x56cbd9);if(allowNotFound&&isSkillHubNotFoundResponse(_0x25c44c[_0xc64a78(0x11d)],_0x56cbd9))return undefined;const _0x2def2e=!_0x25c44c['ok']||_0x56cbd9?.[_0xc64a78(0x128)]===![]||typeof _0x56cbd9?.['code']===_0xc64a78(0xf3)&&_0x56cbd9['code']>=0x190;if(_0x2def2e)throw CliErrors[_0xc64a78(0xa5)](_0x56cbd9?.['errorMsg']||_0x56cbd9?.[_0xc64a78(0xb1)]||_0x56cbd9?.[_0xc64a78(0xb8)]||'SkillHub\x20API\x20error:\x20'+_0x25c44c['status'],_0x56cbd9?.[_0xc64a78(0xb7)]?_0xc64a78(0x118)+_0x56cbd9[_0xc64a78(0xb7)]:undefined);return _0x56cbd9?.[_0xc64a78(0xb9)]??_0x56cbd9;}catch(_0x3415b9){if(_0x3415b9 instanceof Error&&_0x3415b9[_0xc64a78(0xc1)]===_0xc64a78(0xd8))throw CliErrors[_0xc64a78(0xa5)](_0xc64a78(0x11b)+_0x1b4253[_0xc64a78(0x101)]());throw _0x3415b9;}finally{clearTimeout(_0x450ca0);}}function isSkillHubNotFoundResponse(_0x8a1e1d,_0x22230e){const _0x8c0687=a76_0x2466;if(_0x8a1e1d===0x194||_0x22230e?.[_0x8c0687(0x102)]===0x194)return!![];if(_0x8a1e1d!==0x190&&_0x22230e?.[_0x8c0687(0x102)]!==0x190)return![];const _0x1fbecb=[_0x22230e?.[_0x8c0687(0xb8)],_0x22230e?.['message'],_0x22230e?.[_0x8c0687(0x115)],_0x22230e?.['error']]['filter'](_0x3c3fe4=>typeof _0x3c3fe4===_0x8c0687(0x10a))[_0x8c0687(0xe5)]('\x20');return/skill not found\b/i['test'](_0x1fbecb);}async function skillHubBinaryRequest(_0x75a65d,_0x432f9e={}){const _0x65353d=a76_0x2466,{query:_0x3332e8,headers:headers={},timeout:timeout=0x7530}=_0x432f9e,_0x3d7a66=_activeAK;if(!_0x3d7a66)throw CliErrors[_0x65353d(0x9b)](_0x65353d(0xe6)+PRODUCT_CONFIG['newConfigFileName']+'.');const _0x5ac3e2=getSkillHubDomain()[_0x65353d(0xa8)](/\/$/,''),_0x123a5f=new URL(_0x75a65d,_0x5ac3e2+'/');if(_0x3332e8)for(const [_0x4955d6,_0x4fff64]of Object[_0x65353d(0xe8)](_0x3332e8)){_0x4fff64!==undefined&&_0x4fff64!==null&&_0x123a5f[_0x65353d(0x95)][_0x65353d(0xac)](_0x4955d6,String(_0x4fff64));}const _0x1c7d24=new AbortController(),_0x28ff0b=setTimeout(()=>_0x1c7d24[_0x65353d(0xfe)](),timeout);try{const _0x365e22=await fetch(_0x123a5f[_0x65353d(0x101)](),{'method':'GET','headers':{'Accept':'application/octet-stream','X-Invoke-Source':PRODUCT_CONFIG[_0x65353d(0x117)],'X-User-AK':_0x3d7a66,...headers},'signal':_0x1c7d24[_0x65353d(0xfb)]});if(!_0x365e22['ok']){const _0x2c9e30=await decodeResponseBody(_0x365e22),_0x54b4e7=_0x2c9e30[_0x65353d(0xb9)]&&typeof _0x2c9e30[_0x65353d(0xb9)]==='object'?_0x2c9e30[_0x65353d(0xb9)]:{},_0xd16e65=firstString(_0x54b4e7['errorMsg'],_0x54b4e7[_0x65353d(0xb1)],_0x54b4e7['msg'],_0x54b4e7['errorCode'],_0x2c9e30[_0x65353d(0xa0)]);throwIfRateLimited(_0x365e22,_0x2c9e30[_0x65353d(0xb9)],_0xd16e65);throw CliErrors[_0x65353d(0xa5)](_0xd16e65||'SkillHub\x20API\x20error:\x20'+_0x365e22[_0x65353d(0x11d)],_0x65353d(0xf6)+_0x123a5f['toString']());}return Buffer[_0x65353d(0x10d)](await _0x365e22[_0x65353d(0xf1)]());}catch(_0x619daa){if(_0x619daa instanceof Error&&_0x619daa['name']==='AbortError')throw CliErrors[_0x65353d(0xa5)]('Request\x20timeout:\x20'+_0x123a5f['toString']());throw _0x619daa;}finally{clearTimeout(_0x28ff0b);}}export async function getBffEndpointContract(_0x3bd9fa,_0x4d2daa){const _0x135e9e=a76_0x2466;if(_0x4d2daa===_0x135e9e(0xe2))throw CliErrors['validation']('BFF\x20function\x20not\x20found\x20or\x20inaccessible:\x20appCode='+_0x3bd9fa+_0x135e9e(0xcd)+_0x4d2daa);const _0x2536e9=await apiRequest(_0x135e9e(0x106)+encodeURIComponent(_0x3bd9fa)+'/'+encodeURIComponent(_0x4d2daa)),_0x143ac3=_0x2536e9[_0x135e9e(0xb9)];if(!_0x143ac3||typeof _0x143ac3!==_0x135e9e(0x111)||Array[_0x135e9e(0x119)](_0x143ac3)||_0x143ac3['appCode']!==_0x3bd9fa||_0x143ac3[_0x135e9e(0x12a)]!==_0x4d2daa)throw CliErrors['validation']('BFF\x20function\x20not\x20found\x20or\x20inaccessible:\x20appCode='+_0x3bd9fa+_0x135e9e(0xcd)+_0x4d2daa);return{'appCode':_0x143ac3[_0x135e9e(0xed)],'functionName':_0x143ac3['functionName'],'description':_0x143ac3['description'],'version':_0x143ac3[_0x135e9e(0xef)],'gmtModified':_0x143ac3[_0x135e9e(0xee)]};}export async function getSqlQueryInfo(_0x49caea,_0x394d7f){const _0x3be5d6=a76_0x2466,_0x44d1e5=await apiRequest('/client/sql/query',{'method':_0x3be5d6(0xa3),'body':{'appCode':_0x49caea,'currentPage':0x1,'pageSize':0x1,'sqlCode':_0x394d7f}}),_0x2e5fa6=_0x44d1e5[_0x3be5d6(0xb9)],_0x1192a7=_0x2e5fa6&&typeof _0x2e5fa6===_0x3be5d6(0x111)&&_0x3be5d6(0xf9)in _0x2e5fa6?_0x2e5fa6[_0x3be5d6(0xf9)]?.[0x0]:_0x2e5fa6&&typeof _0x2e5fa6===_0x3be5d6(0x111)&&_0x3be5d6(0xaf)in _0x2e5fa6?_0x2e5fa6:undefined;if(!_0x1192a7)throw CliErrors['validation']('SQL\x20query\x20not\x20found:\x20'+_0x394d7f);return _0x1192a7;}function a76_0x2466(_0x899b78,_0x13362d){_0x899b78=_0x899b78-0x94;const _0xd2b182=a76_0xd2b1();let _0x2466aa=_0xd2b182[_0x899b78];return _0x2466aa;}function isRemoteAppItem(_0x154e23){const _0x27638c=a76_0x2466;return!!_0x154e23&&typeof _0x154e23===_0x27638c(0x111)&&typeof _0x154e23['appCode']===_0x27638c(0x10a)&&typeof _0x154e23[_0x27638c(0xbc)]===_0x27638c(0x10a);}function extractRemoteAppItems(_0x231a03){const _0x44065c=a76_0x2466;if(Array[_0x44065c(0x119)](_0x231a03))return _0x231a03['filter'](isRemoteAppItem);if(!_0x231a03||typeof _0x231a03!=='object')throw CliErrors[_0x44065c(0xa5)](_0x44065c(0xdf));const _0x419c0c=_0x231a03;if(Array['isArray'](_0x419c0c[_0x44065c(0xf9)]))return _0x419c0c['tableData'][_0x44065c(0xe1)](isRemoteAppItem);if(_0x419c0c[_0x44065c(0xb9)]&&typeof _0x419c0c['data']==='object'){const _0x59aebf=_0x419c0c['data'];if(Array['isArray'](_0x59aebf[_0x44065c(0xf9)]))return _0x59aebf[_0x44065c(0xf9)][_0x44065c(0xe1)](isRemoteAppItem);}throw CliErrors[_0x44065c(0xa5)](_0x44065c(0xab));}export async function getMyApps(){const _0x12021d=await apiRequest('/client/app/my-apps');return extractRemoteAppItems(_0x12021d['data']);}export async function getLoginUserInfo(){const _0x88e587=a76_0x2466,_0x1b6ed9=await apiRequest(_0x88e587(0x10b));if(!_0x1b6ed9[_0x88e587(0xb9)]||typeof _0x1b6ed9[_0x88e587(0xb9)]!==_0x88e587(0x111)||Array['isArray'](_0x1b6ed9['data']))throw CliErrors[_0x88e587(0xa5)]('Invalid\x20login\x20user\x20info\x20response:\x20expected\x20object.');return _0x1b6ed9['data'];}function runtimeSchedulePath(_0x5578a9,_0x3b168a=''){const _0x1d5b52=a76_0x2466;return _0x1d5b52(0x10e)+encodeURIComponent(_0x5578a9)+_0x1d5b52(0xf8)+_0x3b168a;}export async function validateRuntimeSchedule(_0x358e6d,_0x5a62aa){const _0x31970e=a76_0x2466,_0x5c5964=await apiRequest(runtimeSchedulePath(_0x358e6d,_0x31970e(0x98)),{'method':_0x31970e(0xa3),'body':_0x5a62aa});return _0x5c5964[_0x31970e(0xb9)];}export async function createRuntimeSchedule(_0x278ca1,_0x3e5fde){const _0x26a88b=a76_0x2466,_0x1c07fb=await apiRequest(runtimeSchedulePath(_0x278ca1),{'method':_0x26a88b(0xa3),'body':_0x3e5fde});return _0x1c07fb[_0x26a88b(0xb9)];}export async function listRuntimeSchedules(_0x3677ff,_0x204a41={}){const _0x18f0a1=a76_0x2466,_0x56944b=new URLSearchParams();if(_0x204a41['limit']!==undefined)_0x56944b[_0x18f0a1(0xac)](_0x18f0a1(0x109),String(_0x204a41[_0x18f0a1(0x109)]));if(_0x204a41[_0x18f0a1(0x11c)])_0x56944b['set'](_0x18f0a1(0x11c),_0x204a41['cursor']);const _0x1888fc=_0x56944b[_0x18f0a1(0xb4)]>0x0?'?'+_0x56944b['toString']():'',_0x45a0fc=await apiRequest(''+runtimeSchedulePath(_0x3677ff)+_0x1888fc);return _0x45a0fc[_0x18f0a1(0xb9)];}export async function getRuntimeSchedule(_0x5d88f7,_0x5496ae){const _0x3172b0=a76_0x2466,_0x3b53d3=await apiRequest(runtimeSchedulePath(_0x5d88f7,'/'+encodeURIComponent(_0x5496ae)));return _0x3b53d3[_0x3172b0(0xb9)];}export async function deleteRuntimeSchedule(_0x2d52a9,_0x3f212b){const _0x57ef62=a76_0x2466,_0x3eb2fc=await apiRequest(runtimeSchedulePath(_0x2d52a9,'/'+encodeURIComponent(_0x3f212b)),{'method':'DELETE'});return _0x3eb2fc[_0x57ef62(0xb9)];}export async function runRuntimeSchedule(_0x1ea3e4,_0x3229de){const _0x1beeaf=a76_0x2466,_0x407db2=await apiRequest(runtimeSchedulePath(_0x1ea3e4,'/'+encodeURIComponent(_0x3229de)+_0x1beeaf(0xc2)),{'method':_0x1beeaf(0xa3)});return _0x407db2['data'];}export async function listDatasets(_0x256515,_0x5b137c){const _0x26498c=a76_0x2466,_0x352bd2=await apiRequest('/client/dataset/list',{'method':'POST','body':{'appCode':_0x256515,..._0x5b137c?.[_0x26498c(0x102)]&&{'code':_0x5b137c[_0x26498c(0x102)]},..._0x5b137c?.['name']&&{'name':_0x5b137c[_0x26498c(0xc1)]}}});return extractList(_0x352bd2['data']);}export async function getDatasetDetail(_0x4ed013){const _0x5ce75e=a76_0x2466,_0xafc0a5=await apiRequest(_0x5ce75e(0xf7)+encodeURIComponent(_0x4ed013));return _0xafc0a5[_0x5ce75e(0xb9)];}export async function getDatasetSdkUsageDoc(_0x3e144f,_0x3550d8){const _0x5d63ab=a76_0x2466,_0x5551ba=await toolboxRequest(_0x5d63ab(0xfc),{'datasetCode':_0x3e144f,'appCode':_0x3550d8});return typeof _0x5551ba?.[_0x5d63ab(0xd4)]===_0x5d63ab(0x10a)?_0x5551ba[_0x5d63ab(0xd4)]:'';}export async function uploadRuntimeFile(_0x25a347,_0x36b929){const _0x703498=a76_0x2466,_0x9fd480=await readFile(_0x36b929),_0x55f7bf=new FormData();_0x55f7bf[_0x703498(0xd7)](_0x703498(0xed),_0x25a347),_0x55f7bf['append']('file',new Blob([new Uint8Array(_0x9fd480)]),basename(_0x36b929));const _0x180769=await apiFormRequest('/client/uploadFile',_0x55f7bf);return _0x180769[_0x703498(0xb9)];}export async function queryRuntimeFileUrl(_0x1d4a89,_0x26714c={}){const _0x32d763=a76_0x2466,_0x2fadb5=await apiRequest('/client/queryFileUrl',{'method':_0x32d763(0xa3),'body':{'filePath':_0x1d4a89,'downloadFlag':_0x26714c[_0x32d763(0x121)]??![],..._0x26714c['longTerm']?{'longTerm':!![]}:{}}});return _0x2fadb5['data'];}export async function recognizeRuntimeOcr(_0x547f33,_0x2467d6){const _0x59042b=a76_0x2466,_0x4d70a3=await apiRequest(_0x59042b(0x10f),{'method':_0x59042b(0xa3),'body':{'appCode':_0x547f33,'url':_0x2467d6[_0x59042b(0x114)],'type':_0x2467d6['type']}});return _0x4d70a3[_0x59042b(0xb9)];}export async function getRuntimeAppConfigByKey(_0x13c1a3,_0x412038){const _0x2cf23d=a76_0x2466,_0x3dafc9=new URLSearchParams({'appCode':_0x13c1a3,'key':_0x412038}),_0x861ff3=await apiRequest(_0x2cf23d(0xc0)+_0x3dafc9[_0x2cf23d(0x101)]());if(typeof _0x861ff3[_0x2cf23d(0xb9)]!=='string')throw CliErrors[_0x2cf23d(0x123)](_0x2cf23d(0xd9)+_0x412038);return _0x861ff3['data'];}export async function listRuntimeArtifacts(_0x50a189,_0x34ce4f){const _0x5864c9=a76_0x2466,_0x110e66=new URLSearchParams({'appCode':_0x50a189});if(_0x34ce4f?.[_0x5864c9(0xd3)])_0x110e66[_0x5864c9(0xac)]('artifactType',_0x34ce4f[_0x5864c9(0xd3)]);if(_0x34ce4f?.[_0x5864c9(0xb3)])_0x110e66[_0x5864c9(0xac)](_0x5864c9(0xb3),_0x34ce4f[_0x5864c9(0xb3)]);if(_0x34ce4f?.[_0x5864c9(0xe9)]!==undefined)_0x110e66[_0x5864c9(0xac)](_0x5864c9(0xe9),String(_0x34ce4f[_0x5864c9(0xe9)]));const _0x4faa91=await apiRequest(_0x5864c9(0x129)+_0x110e66[_0x5864c9(0x101)]());return Array[_0x5864c9(0x119)](_0x4faa91[_0x5864c9(0xb9)])?_0x4faa91[_0x5864c9(0xb9)]:[];}export async function getRuntimeArtifact(_0x4f2c12,_0xfab5d2){const _0x19d4dc=a76_0x2466,_0x24a533=await apiRequest(_0x19d4dc(0x104)+_0x4f2c12+_0x19d4dc(0x9d)+encodeURIComponent(_0xfab5d2));if(!_0x24a533[_0x19d4dc(0xb9)])throw CliErrors[_0x19d4dc(0x123)](_0x19d4dc(0xce)+_0x4f2c12);return _0x24a533[_0x19d4dc(0xb9)];}export async function createRuntimeArtifact(_0x5acef6,_0x34723f){const _0x5971f4=a76_0x2466,_0x2479d3=await apiRequest(_0x5971f4(0x100),{'method':_0x5971f4(0xa3),'body':{'appCode':_0x5acef6,..._0x34723f}});return _0x2479d3[_0x5971f4(0xb9)];}export async function updateRuntimeArtifact(_0x3c9629,_0x231c48,_0x2046b7){const _0x577ec3=a76_0x2466,_0xe6a4e3=await apiRequest(_0x577ec3(0x104)+_0x3c9629+_0x577ec3(0x11e),{'method':'POST','body':{'appCode':_0x231c48,..._0x2046b7}});return _0xe6a4e3[_0x577ec3(0xb9)];}export async function listPersonalBffs(_0xe7844d){const _0x531801=a76_0x2466,_0x357f39=await apiRequest(_0x531801(0x99)+encodeURIComponent(_0xe7844d));return Array['isArray'](_0x357f39['data'])?_0x357f39[_0x531801(0xb9)]:[];}export async function getPersonalBff(_0x4f75b7,_0xd7779c){const _0x56c2cf=a76_0x2466,_0x4f9a22=await apiRequest(_0x56c2cf(0x103)+_0x4f75b7+_0x56c2cf(0x9d)+encodeURIComponent(_0xd7779c));if(!_0x4f9a22[_0x56c2cf(0xb9)])throw CliErrors[_0x56c2cf(0x123)]('Personal\x20BFF\x20not\x20found:\x20id='+_0x4f75b7);return _0x4f9a22['data'];}export async function createPersonalBff(_0x2d09b5,_0x38be85){const _0x118cb8=a76_0x2466,_0x5f11a1=await apiRequest('/client/runtime-bff/personal/create',{'method':_0x118cb8(0xa3),'body':{'appCode':_0x2d09b5,..._0x38be85}});return _0x5f11a1[_0x118cb8(0xb9)];}export async function updatePersonalBff(_0x7c9747,_0x3ec418,_0x2bc2f7){const _0x146872=a76_0x2466,_0x12ec0c=await apiRequest('/client/runtime-bff/personal/'+_0x7c9747+_0x146872(0x11e),{'method':_0x146872(0xa3),'body':{'appCode':_0x3ec418,..._0x2bc2f7}});return _0x12ec0c[_0x146872(0xb9)];}export async function executePersonalBff(_0x1e4c9f,_0x10c852,_0x4cc3a7){const _0x24e1ef=a76_0x2466,_0x342925=await apiRequest('/client/runtime-bff/personal/'+_0x1e4c9f+_0x24e1ef(0xc3)+encodeURIComponent(_0x10c852),{'method':_0x24e1ef(0xa3),'body':_0x4cc3a7});return _0x342925[_0x24e1ef(0xb9)];}export async function listPersonalKnowledgeBaseItems(_0x1d9973){const _0x4f9b23=a76_0x2466,_0x4190c3=await apiRequest(_0x4f9b23(0xad)+encodeURIComponent(_0x1d9973));return Array[_0x4f9b23(0x119)](_0x4190c3[_0x4f9b23(0xb9)])?_0x4190c3[_0x4f9b23(0xb9)]:[];}export async function getPersonalKnowledgeBaseItem(_0x3691b6,_0x1291e6){const _0x27f660=a76_0x2466,_0x11cfc3=await apiRequest('/client/knowledge-base/personal/'+_0x3691b6+_0x27f660(0x9d)+encodeURIComponent(_0x1291e6));if(!_0x11cfc3[_0x27f660(0xb9)])throw CliErrors[_0x27f660(0x123)](_0x27f660(0xec)+_0x3691b6);return _0x11cfc3['data'];}export async function createPersonalKnowledgeBaseItem(_0x3c9897,_0x27134a){const _0x2cf48e=a76_0x2466,_0x4d9f15=await apiRequest(_0x2cf48e(0xaa),{'method':_0x2cf48e(0xa3),'body':{'appCode':_0x3c9897,..._0x27134a}});return _0x4d9f15[_0x2cf48e(0xb9)];}export async function updatePersonalKnowledgeBaseItem(_0x57d125,_0x538a06,_0x294642){const _0x27ff6c=a76_0x2466,_0x34880d=await apiRequest(_0x27ff6c(0xc4)+_0x57d125+_0x27ff6c(0x11e),{'method':'POST','body':{'appCode':_0x538a06,..._0x294642}});return _0x34880d['data'];}export async function searchKnowledgeBase(_0x491ca8,_0x3ec014){const _0x74b028=a76_0x2466,_0x48eaf9=await apiRequest('/client/knowledge-base/search',{'method':'POST','body':{'appCode':_0x491ca8,'query':_0x3ec014['query'],..._0x3ec014[_0x74b028(0xda)]!==undefined?{'topK':_0x3ec014[_0x74b028(0xda)]}:{}}});return Array['isArray'](_0x48eaf9[_0x74b028(0xb9)])?_0x48eaf9[_0x74b028(0xb9)]:[];}export async function getRuntimeSkillByCode(_0x4e849c,_0x28cd6d){const _0x927a5d=a76_0x2466,_0x455a80=await skillHubJsonRequest(_0x927a5d(0xcf)+encodeURIComponent(_0x4e849c)+'/'+encodeURIComponent(_0x28cd6d),{'allowNotFound':!![]});return _0x455a80?skillHubRuntimeDetailToRuntimeSkill(_0x455a80):undefined;}export async function listRuntimeSkills(_0x217d58){const _0x2ad228=a76_0x2466,_0x7d1f2a=await skillHubJsonRequest(_0x2ad228(0xe4)+encodeURIComponent(_0x217d58[_0x2ad228(0xed)])+_0x2ad228(0x125),{'query':{'page':0x0,'size':0xc8}});return normalizeSkillHubRuntimeListResponse(_0x217d58['appCode'],_0x7d1f2a,_0x217d58[_0x2ad228(0xc6)]??_0x2ad228(0xd1),_0x217d58[_0x2ad228(0x102)]);}export async function listPersonalRuntimeSkills(_0x15635f){return(await listRuntimeSkills({'appCode':_0x15635f,'scope':'personal'}))['personal'];}export async function listCompanyRuntimeSkills(_0x13e16d){const _0x48b713=a76_0x2466;return(await listRuntimeSkills({'appCode':_0x13e16d,'scope':_0x48b713(0xdd)}))[_0x48b713(0xdd)];}export async function listVisibleRuntimeSkills(_0x32dbdb){const _0x231e3b=a76_0x2466;return(await listRuntimeSkills({'appCode':_0x32dbdb,'scope':_0x231e3b(0xd1)}))[_0x231e3b(0xd6)];}export async function createPersonalRuntimeSkill(_0x2b27be,_0x3dfb91,_0x581255={}){const _0x266f93=a76_0x2466;return publishRuntimeSkill(_0x2b27be,_0x3dfb91,{'visibility':_0x266f93(0x107),'confirmWarnings':_0x581255[_0x266f93(0xba)]});}export async function updatePersonalRuntimeSkill(_0xedcce5,_0x40c33f,_0xab6f06,_0x1e160a={}){const _0x552a48=a76_0x2466;return publishRuntimeSkill(_0x40c33f,{..._0xab6f06,'skillCode':_0xab6f06[_0x552a48(0x122)]??_0xedcce5},{'visibility':'PRIVATE','confirmWarnings':_0x1e160a[_0x552a48(0xba)]});}export async function publishCompanyRuntimeSkill(_0x5b2375,_0x1ab848,_0xf51f3d={}){const _0x5f594f=a76_0x2466;return publishRuntimeSkill(_0x5b2375,_0x1ab848,{'visibility':'NAMESPACE_ONLY','confirmWarnings':_0xf51f3d[_0x5f594f(0xba)]});}function a76_0xd2b1(){const _0x312c46=['invokeSource','SkillHub\x20error\x20code:\x20','isArray','Toolbox\x20error\x20code:\x20','Request\x20timeout:\x20','cursor','status','/update','API\x20returned\x20non-JSON\x20response\x20(HTTP\x20','slug','download','skillCode','validation','3900EwxOdp','/skills','base64','Toolbox\x20returned\x20non-JSON\x20response\x20(HTTP\x20','success','/client/artifact/list?','functionName','resolvedSlug','searchParams','GET','ownerPreviewVersion','/validate','/client/runtime-bff/personal/list?appCode=','NAMESPACE_ONLY','authRequired','20IBQjsu','?appCode=','5976616JQfDiq','/api/cli/v1/skills/','text','isJson','API\x20error:\x20','POST','json','apiError','map','visibility','replace','application/json','/client/knowledge-base/personal/create','Invalid\x20app\x20list\x20response:\x20missing\x20data.tableData.','set','/client/knowledge-base/personal/list?appCode=','newConfigFileName','sqlCode','boolean','message','17622ryqtcI','source','size','headlineVersion','personal','errorCode','msg','data','confirmWarnings','packageBase64','appName','application/zip','/download','119606CiLBsn','/client/app-config/getByKey?','name','/run','/execute?appCode=','/client/knowledge-base/personal/','trim','scope','Toolbox\x20API\x20error:\x20','summary','find','values','79989LpLljZ','96969PVaShZ',',\x20name=','Artifact\x20not\x20found:\x20id=','/api/v1/skills/','description','all','undefined','artifactType','markdown','API\x20error\x20code:\x20','effective','append','AbortError','Invalid\x20app\x20config\x20value:\x20key=','topK','example','1690161hmjcbh','company','headers','Invalid\x20app\x20list\x20response:\x20expected\x20object\x20or\x20array.','namespace','filter','functions','1515uYriVr','/api/runtime/v1/namespaces/','join','Configure\x20accessKey\x20in\x20','items','entries','favorite','Check\x20your\x20credentials\x20and\x20try\x20again.','skillName','Knowledge-base\x20entry\x20not\x20found:\x20id=','appCode','gmtModified','version','function','arrayBuffer','22SkKJWo','number','warnings','/api/node-toolbox/','Download\x20failed:\x20','/client/dataset/get-driven-data?code=','/schedules','tableData','2047514XxyINc','signal','api-doc-generator','errors','abort','displayName','/client/artifact/create','toString','code','/client/runtime-bff/personal/','/client/artifact/','resolvedVersion','/client/bff/endpoint/','PRIVATE','valid','limit','string','/client/user/loginUserInfo','Toolbox\x20API\x20error','from','/api/harness/apps/','/client/ocr','9snXlYn','object','28TzUeYI','tags','url','errorMsg','toLowerCase'];a76_0xd2b1=function(){return _0x312c46;};return a76_0xd2b1();}export async function validateRuntimeSkillPublish(_0x3fdea2,_0x22e9a1,_0x1017f1){const _0x2a6532=a76_0x2466,_0x255097=buildRuntimeSkillPublishForm(_0x22e9a1,_0x1017f1['visibility']),_0x2ebc38=await skillHubJsonRequest(_0x2a6532(0x9f)+encodeURIComponent(_0x3fdea2)+'/publish/validate',{'method':_0x2a6532(0xa3),'body':_0x255097});return{'valid':_0x2ebc38[_0x2a6532(0x108)]===!![],'errors':Array['isArray'](_0x2ebc38[_0x2a6532(0xfd)])?_0x2ebc38[_0x2a6532(0xfd)]:[],'warnings':Array[_0x2a6532(0x119)](_0x2ebc38[_0x2a6532(0xf4)])?_0x2ebc38[_0x2a6532(0xf4)]:[],'resolvedSlug':_0x2ebc38[_0x2a6532(0x94)],'resolvedVersion':_0x2ebc38[_0x2a6532(0x105)]};}export async function downloadRuntimeSkillPackage(_0x28c04b,_0x41ed6b,_0x4c379f,_0x5e3ab6){const _0x4da2b5=a76_0x2466;void _0x28c04b;const _0x5954fb=_0x5e3ab6?'/api/cli/v1/skills/'+encodeURIComponent(_0x4c379f)+'/'+encodeURIComponent(_0x41ed6b)+'/versions/'+encodeURIComponent(_0x5e3ab6)+_0x4da2b5(0xbe):'/api/cli/v1/skills/'+encodeURIComponent(_0x4c379f)+'/'+encodeURIComponent(_0x41ed6b)+'/download';return skillHubBinaryRequest(_0x5954fb);}async function publishRuntimeSkill(_0x4b09c1,_0x4670b9,_0x16875e){const _0x580b43=a76_0x2466,_0x502f77=buildRuntimeSkillPublishForm(_0x4670b9,_0x16875e[_0x580b43(0xa7)]),_0x97ac09=await skillHubJsonRequest(_0x580b43(0x9f)+encodeURIComponent(_0x4b09c1)+'/publish',{'method':_0x580b43(0xa3),'query':{'confirmWarnings':_0x16875e[_0x580b43(0xba)]===!![]?!![]:undefined},'body':_0x502f77});return{'appCode':_0x97ac09[_0x580b43(0xe0)]??_0x4b09c1,'skillCode':_0x97ac09[_0x580b43(0x120)]??_0x4670b9['skillCode']??'','skillName':_0x4670b9[_0x580b43(0xeb)]??_0x97ac09[_0x580b43(0x120)]??_0x4670b9[_0x580b43(0x122)],'description':_0x4670b9[_0x580b43(0xd0)],'scope':skillHubVisibilityToScope(_0x97ac09[_0x580b43(0xa7)]??_0x16875e[_0x580b43(0xa7)])??_0x580b43(0xb6),'version':_0x97ac09['version']??_0x4670b9[_0x580b43(0xef)],'tags':_0x4670b9[_0x580b43(0x113)],'content':_0x4670b9['content']};}function buildRuntimeSkillPublishForm(_0x59f55d,_0x3bf66b){const _0x3c65b4=a76_0x2466,_0x59ff52=new FormData();return _0x59ff52[_0x3c65b4(0xac)]('file',runtimeSkillPackageFile(_0x59f55d)),_0x59f55d[_0x3c65b4(0xeb)]?.['trim']()&&_0x59ff52[_0x3c65b4(0xac)](_0x3c65b4(0xff),_0x59f55d[_0x3c65b4(0xeb)]['trim']()),_0x59ff52[_0x3c65b4(0xac)](_0x3c65b4(0xa7),_0x3bf66b),_0x59ff52;}function runtimeSkillPackageFile(_0x315797){const _0x13e1fe=a76_0x2466;if(!_0x315797[_0x13e1fe(0xbb)])throw CliErrors[_0x13e1fe(0x123)]('Missing\x20Skill\x20package\x20payload.');const _0xbc3ca1=Buffer['from'](_0x315797['packageBase64'],_0x13e1fe(0x126)),_0x307ec1=new Blob([_0xbc3ca1],{'type':_0x13e1fe(0xbd)}),_0x137259=(_0x315797[_0x13e1fe(0x122)]||'skill')+'.zip';if(typeof File!==_0x13e1fe(0xd2))return new File([_0x307ec1],_0x137259,{'type':_0x13e1fe(0xbd)});return _0x307ec1;}function normalizeSkillHubRuntimeListResponse(_0x4948f2,_0x27a9c8,_0x12fd56,_0x28b1f6){const _0x23f5c5=a76_0x2466,_0x49af16=Array['isArray'](_0x27a9c8)?_0x27a9c8:Array['isArray'](_0x27a9c8?.[_0x23f5c5(0xe7)])?_0x27a9c8['items']:[],_0xf876f7=_0x28b1f6?.[_0x23f5c5(0xc5)](),_0x325425=_0x49af16[_0x23f5c5(0xe1)](_0xd2801d=>!_0xf876f7||_0xd2801d[_0x23f5c5(0x120)]===_0xf876f7)[_0x23f5c5(0xa6)](skillHubRuntimeItemToRuntimeSkill)['filter'](_0x285ab7=>Boolean(_0x285ab7)),_0x72870=_0x325425['filter'](_0x30db2f=>_0x30db2f[_0x23f5c5(0xc6)]===_0x23f5c5(0xb6)),_0x3dc81=_0x325425[_0x23f5c5(0xe1)](_0x4b4d50=>_0x4b4d50[_0x23f5c5(0xc6)]===_0x23f5c5(0xdd));return{'appCode':_0x4948f2,'personal':_0x12fd56===_0x23f5c5(0xdd)?[]:_0x72870,'company':_0x12fd56===_0x23f5c5(0xb6)?[]:_0x3dc81,'effective':buildEffectiveRuntimeSkills(_0x72870,_0x3dc81,_0x12fd56)};}function skillHubRuntimeItemToRuntimeSkill(_0x493e8b){const _0x7dfa90=a76_0x2466,_0x2f74ab=_0x493e8b[_0x7dfa90(0x120)]?.['trim'](),_0x32466a=skillHubVisibilityToScope(_0x493e8b[_0x7dfa90(0xa7)]);if(!_0x2f74ab||!_0x32466a)return undefined;return{'id':_0x493e8b['id'],'appCode':_0x493e8b[_0x7dfa90(0xe0)],'skillCode':_0x2f74ab,'skillName':_0x493e8b[_0x7dfa90(0xff)]??_0x2f74ab,'description':_0x493e8b[_0x7dfa90(0xc8)],'scope':_0x32466a,'version':skillHubRuntimeItemVersion(_0x493e8b),'status':_0x493e8b[_0x7dfa90(0x11d)]};}function skillHubRuntimeDetailToRuntimeSkill(_0x15ce75){const _0x22955a=a76_0x2466,_0x2a581c=_0x15ce75['slug']?.[_0x22955a(0xc5)]();if(!_0x2a581c)return undefined;return{'id':_0x15ce75['id'],'appCode':_0x15ce75[_0x22955a(0xe0)],'skillCode':_0x2a581c,'skillName':_0x15ce75[_0x22955a(0xff)]??_0x2a581c,'description':_0x15ce75[_0x22955a(0xc8)],'example':_0x15ce75[_0x22955a(0xdb)],'scope':skillHubVisibilityToScope(_0x15ce75[_0x22955a(0xa7)])??_0x15ce75[_0x22955a(0xa7)]?.[_0x22955a(0x116)](),'version':skillHubRuntimeItemVersion(_0x15ce75),'status':_0x15ce75['status']};}function skillHubVisibilityToScope(_0x479158){const _0x48bc46=a76_0x2466;if(_0x479158===_0x48bc46(0x107))return _0x48bc46(0xb6);if(_0x479158===_0x48bc46(0x9a))return _0x48bc46(0xdd);return undefined;}function skillHubRuntimeItemVersion(_0x3fcd1b){const _0x436bec=a76_0x2466;return _0x3fcd1b['publishedVersion']?.[_0x436bec(0xef)]??_0x3fcd1b[_0x436bec(0xb5)]?.['version']??_0x3fcd1b[_0x436bec(0x97)]?.[_0x436bec(0xef)];}function buildEffectiveRuntimeSkills(_0xc369e,_0x6e7651,_0x48096a){const _0x31c75b=a76_0x2466;if(_0x48096a===_0x31c75b(0xb6))return _0xc369e;if(_0x48096a===_0x31c75b(0xdd))return _0x6e7651;const _0x2061da=new Map();for(const _0x11b3fd of _0x6e7651){_0x2061da['set'](_0x11b3fd[_0x31c75b(0x122)],_0x11b3fd);}for(const _0x4f5b02 of _0xc369e){_0x2061da[_0x31c75b(0xac)](_0x4f5b02['skillCode'],_0x4f5b02);}return Array[_0x31c75b(0x10d)](_0x2061da[_0x31c75b(0xca)]());}function normalizeRuntimeSkillListResponse(_0x52e9ec,_0x1fb9f2){const _0x547e86=a76_0x2466;if(Array[_0x547e86(0x119)](_0x1fb9f2)){const _0x3cd28a=_0x1fb9f2[_0x547e86(0xe1)](_0x57ccef=>_0x57ccef[_0x547e86(0xc6)]===_0x547e86(0xb6)),_0x451798=_0x1fb9f2[_0x547e86(0xe1)](_0x919688=>_0x919688[_0x547e86(0xc6)]==='company');return{'appCode':_0x52e9ec,'personal':_0x3cd28a,'company':_0x451798,'effective':[..._0x451798,..._0x3cd28a]};}return{'appCode':_0x1fb9f2?.[_0x547e86(0xed)]??_0x52e9ec,'personal':Array[_0x547e86(0x119)](_0x1fb9f2?.[_0x547e86(0xb6)])?_0x1fb9f2[_0x547e86(0xb6)]:[],'company':Array['isArray'](_0x1fb9f2?.[_0x547e86(0xdd)])?_0x1fb9f2['company']:[],'effective':Array[_0x547e86(0x119)](_0x1fb9f2?.[_0x547e86(0xd6)])?_0x1fb9f2[_0x547e86(0xd6)]:[]};}
@@ -1 +1 @@
1
- (function(_0x42f680,_0x35e931){const _0x2fc55a=a77_0x5a5c,_0x562ec0=_0x42f680();while(!![]){try{const _0x4b8fb0=parseInt(_0x2fc55a(0x164))/0x1+-parseInt(_0x2fc55a(0x162))/0x2+parseInt(_0x2fc55a(0x160))/0x3*(parseInt(_0x2fc55a(0x165))/0x4)+parseInt(_0x2fc55a(0x161))/0x5*(parseInt(_0x2fc55a(0x16a))/0x6)+parseInt(_0x2fc55a(0x166))/0x7+parseInt(_0x2fc55a(0x169))/0x8*(-parseInt(_0x2fc55a(0x15c))/0x9)+parseInt(_0x2fc55a(0x15d))/0xa*(-parseInt(_0x2fc55a(0x163))/0xb);if(_0x4b8fb0===_0x35e931)break;else _0x562ec0['push'](_0x562ec0['shift']());}catch(_0x3ab2da){_0x562ec0['push'](_0x562ec0['shift']());}}}(a77_0x4564,0xc9cfb));import{listDatasets}from'../core/api-client.js';function a77_0x4564(){const _0x2cff37=['19050QmtAZy','dbId','dbName','3znbURj','2355UrojSu','1944118BGfeAp','3806aQfKRa','624504uXkdFy','5266936IbHZlw','563773jhZQdw','get','set','8MlVqCP','9252uCYMhV','dbtableConfig','2612259loLLKS'];a77_0x4564=function(){return _0x2cff37;};return a77_0x4564();}const cache=new Map();export async function listDatabases(_0x2bea28){const _0x4b0dae=a77_0x5a5c;if(cache['has'](_0x2bea28))return cache[_0x4b0dae(0x167)](_0x2bea28);const _0x2e3999=await listDatasets(_0x2bea28),_0x3c9390=new Map();for(const _0x5c5317 of _0x2e3999){const _0x1a2c67=_0x5c5317[_0x4b0dae(0x15b)];_0x1a2c67?.[_0x4b0dae(0x15e)]!=null&&_0x3c9390[_0x4b0dae(0x168)](_0x1a2c67[_0x4b0dae(0x15e)],_0x1a2c67['dbName']??'db-'+_0x1a2c67[_0x4b0dae(0x15e)]);}const _0x33a42d=[..._0x3c9390['entries']()]['map'](([_0x38364e,_0x38bad8])=>({'dbId':_0x38364e,'dbName':_0x38bad8}));return cache[_0x4b0dae(0x168)](_0x2bea28,_0x33a42d),_0x33a42d;}function a77_0x5a5c(_0x13509c,_0x40474f){_0x13509c=_0x13509c-0x15b;const _0x4564d3=a77_0x4564();let _0x5a5c48=_0x4564d3[_0x13509c];return _0x5a5c48;}export async function getDbName(_0x4db0d0,_0x4f6d2d){const _0x35ec7e=a77_0x5a5c;try{const _0xcc4164=await listDatabases(_0x4db0d0);return _0xcc4164['find'](_0x1f5c55=>_0x1f5c55['dbId']===_0x4f6d2d)?.[_0x35ec7e(0x15f)];}catch{return undefined;}}
1
+ function a77_0x7ec5(){const _0x31e8ef=['860608ITOXwp','8XbYxtE','712336mBpPZF','get','dbtableConfig','947165jMbbmJ','4609Rpeokq','8270uDrVYk','424293LvanuX','dbId','dbName','3234728TIgzUf','586137phUNIS','set','map','9ahEBRV','6xddgsZ'];a77_0x7ec5=function(){return _0x31e8ef;};return a77_0x7ec5();}(function(_0x16cbb1,_0x5635c9){const _0x2b1528=a77_0x54e7,_0x5d7ea9=_0x16cbb1();while(!![]){try{const _0x5d16b8=parseInt(_0x2b1528(0x110))/0x1+parseInt(_0x2b1528(0x108))/0x2+-parseInt(_0x2b1528(0x103))/0x3*(parseInt(_0x2b1528(0x109))/0x4)+parseInt(_0x2b1528(0x10d))/0x5*(-parseInt(_0x2b1528(0x107))/0x6)+-parseInt(_0x2b1528(0x113))/0x7+-parseInt(_0x2b1528(0x10a))/0x8*(-parseInt(_0x2b1528(0x106))/0x9)+-parseInt(_0x2b1528(0x10f))/0xa*(-parseInt(_0x2b1528(0x10e))/0xb);if(_0x5d16b8===_0x5635c9)break;else _0x5d7ea9['push'](_0x5d7ea9['shift']());}catch(_0x1ef52e){_0x5d7ea9['push'](_0x5d7ea9['shift']());}}}(a77_0x7ec5,0x3c831));import{listDatasets}from'../core/api-client.js';const cache=new Map();function a77_0x54e7(_0x1e44b5,_0x78f100){_0x1e44b5=_0x1e44b5-0x103;const _0x7ec5fc=a77_0x7ec5();let _0x54e7d8=_0x7ec5fc[_0x1e44b5];return _0x54e7d8;}export async function listDatabases(_0x4edaec){const _0x52bb09=a77_0x54e7;if(cache['has'](_0x4edaec))return cache[_0x52bb09(0x10b)](_0x4edaec);const _0x327106=await listDatasets(_0x4edaec),_0x459328=new Map();for(const _0x302856 of _0x327106){const _0x391a8a=_0x302856[_0x52bb09(0x10c)];_0x391a8a?.['dbId']!=null&&_0x459328[_0x52bb09(0x104)](_0x391a8a[_0x52bb09(0x111)],_0x391a8a[_0x52bb09(0x112)]??'db-'+_0x391a8a['dbId']);}const _0x4cb2b5=[..._0x459328['entries']()][_0x52bb09(0x105)](([_0x272cde,_0x13686c])=>({'dbId':_0x272cde,'dbName':_0x13686c}));return cache[_0x52bb09(0x104)](_0x4edaec,_0x4cb2b5),_0x4cb2b5;}export async function getDbName(_0x2aa26b,_0x42c26e){const _0x5381ac=a77_0x54e7;try{const _0x801763=await listDatabases(_0x2aa26b);return _0x801763['find'](_0xc4e335=>_0xc4e335['dbId']===_0x42c26e)?.[_0x5381ac(0x112)];}catch{return undefined;}}
@@ -1 +1 @@
1
- (function(_0x26e2d0,_0x246d08){const _0x275c15=a78_0x43c3,_0x194fa6=_0x26e2d0();while(!![]){try{const _0x112ca3=-parseInt(_0x275c15(0x132))/0x1+parseInt(_0x275c15(0x142))/0x2*(-parseInt(_0x275c15(0x13f))/0x3)+parseInt(_0x275c15(0x14a))/0x4+parseInt(_0x275c15(0x134))/0x5*(parseInt(_0x275c15(0x13b))/0x6)+parseInt(_0x275c15(0x14f))/0x7+-parseInt(_0x275c15(0x12a))/0x8+parseInt(_0x275c15(0x12f))/0x9;if(_0x112ca3===_0x246d08)break;else _0x194fa6['push'](_0x194fa6['shift']());}catch(_0x439f01){_0x194fa6['push'](_0x194fa6['shift']());}}}(a78_0x79e0,0xb4436));import{createClient}from'@lovrabet/sdk';import{PRODUCT_CONFIG}from'../constant/product.js';function a78_0x79e0(){const _0x512630=['delete','models','8643483PLDGVY','update','SDK\x20client\x20not\x20initialized.\x20Call\x20initSdkClient()\x20first.','1471748eljjqk','getOne','609005zXoGZz','execute','invokeSource','SDK\x20model\x20does\x20not\x20support\x20operation\x20\x22','update\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123,\x22name\x22:\x22new\x22}\x27\x20or\x20\x27{\x22id\x22:[1,2,3],\x22name\x22:\x22new\x22}\x27','trim','map','30jwAiJE','data\x20aggregate\x20--params.aggregate\x20must\x20be\x20an\x20array.',']\x20requires\x20\x22column\x22;\x20\x22field\x22\x20is\x20accepted\x20only\x20as\x20a\x20deprecated\x20alias.','validation','3eTWdNp','column','batchCreate','1129790mXYXyU','appCode','aggregate','sql','accessKey','getOne\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123}\x27','field','object','4753648YkPApB','env','bff','string','Available:\x20filter,\x20getOne,\x20create,\x20batchCreate,\x20update,\x20delete,\x20aggregate.','5015234uqFDZj','isArray','dataset_','5594120PeXsIb','function','data\x20aggregate\x20--params.aggregate['];a78_0x79e0=function(){return _0x512630;};return a78_0x79e0();}import{CliErrors}from'../errors.js';import{parseBatchCreateItemsFromParams}from'../utils/params.js';import{installLosslessJsonResponseParser}from'../utils/lossless-json.js';let _client,restoreResponseJsonParser;function a78_0x43c3(_0x5755d7,_0x14b32c){_0x5755d7=_0x5755d7-0x12a;const _0x79e088=a78_0x79e0();let _0x43c3be=_0x79e088[_0x5755d7];return _0x43c3be;}export function initSdkClient(_0x2c3a54){const _0x5e1f5c=a78_0x43c3;restoreResponseJsonParser??=installLosslessJsonResponseParser();try{_client=createClient({'appCode':_0x2c3a54[_0x5e1f5c(0x143)],'env':_0x2c3a54[_0x5e1f5c(0x14b)],'authMode':_0x2c3a54['authMode'],..._0x2c3a54['accessKey']?{'accessKey':_0x2c3a54[_0x5e1f5c(0x146)]}:{},'options':{'timeout':0x7530,'headers':{'X-Invoke-Source':PRODUCT_CONFIG[_0x5e1f5c(0x136)]}}});}catch(_0x291da0){clearSdkClient();throw _0x291da0;}}export function clearSdkClient(){_client=undefined,restoreResponseJsonParser?.(),restoreResponseJsonParser=undefined;}function ensureClient(){const _0x3d12f5=a78_0x43c3;if(!_client)throw new Error(_0x3d12f5(0x131));return _client;}function normalizeAggregateParams(_0x52357d){const _0x3c1081=a78_0x43c3,_0x545724=_0x52357d[_0x3c1081(0x144)];if(_0x545724===undefined)return _0x52357d;if(!Array['isArray'](_0x545724))throw CliErrors[_0x3c1081(0x13e)](_0x3c1081(0x13c));return{..._0x52357d,'aggregate':_0x545724[_0x3c1081(0x13a)]((_0x5dd656,_0x1a9cca)=>{const _0x12d82a=_0x3c1081;if(!_0x5dd656||typeof _0x5dd656!==_0x12d82a(0x149)||Array[_0x12d82a(0x150)](_0x5dd656))throw CliErrors[_0x12d82a(0x13e)](_0x12d82a(0x12c)+_0x1a9cca+']\x20must\x20be\x20an\x20object.');const _0x5b6e1d=_0x5dd656[_0x12d82a(0x140)]??_0x5dd656[_0x12d82a(0x148)];if(typeof _0x5b6e1d!==_0x12d82a(0x14d)||_0x5b6e1d[_0x12d82a(0x139)]()==='')throw CliErrors[_0x12d82a(0x13e)](_0x12d82a(0x12c)+_0x1a9cca+_0x12d82a(0x13d));const _0xa3cc0d={..._0x5dd656,'column':_0x5b6e1d};return delete _0xa3cc0d[_0x12d82a(0x148)],_0xa3cc0d;})};}export async function executeData(_0x2472b7,_0x3f91fa,_0x29a1ed){const _0x3096ee=a78_0x43c3,_0x1e7ea0=ensureClient(),_0x10276d=_0x3096ee(0x151)+_0x2472b7,_0x457780=_0x1e7ea0[_0x3096ee(0x12e)][_0x10276d];if(!_0x457780||typeof _0x457780[_0x3f91fa]!==_0x3096ee(0x12b))throw new Error(_0x3096ee(0x137)+_0x3f91fa+'\x22.\x20'+_0x3096ee(0x14e));if(_0x3f91fa===_0x3096ee(0x141))return _0x457780[_0x3096ee(0x141)](parseBatchCreateItemsFromParams(_0x29a1ed));const _0x1faf17=_0x29a1ed!==undefined&&_0x29a1ed!==null&&!Array[_0x3096ee(0x150)](_0x29a1ed)?_0x29a1ed:{};switch(_0x3f91fa){case'getOne':{const _0x15b9d9=_0x1faf17['id'];if(_0x15b9d9===undefined||_0x15b9d9===null)throw new Error(_0x3096ee(0x147));return _0x457780[_0x3096ee(0x133)](_0x15b9d9);}case _0x3096ee(0x130):{const {id:_0x167a80,..._0x29093b}=_0x1faf17;if(_0x167a80===undefined||_0x167a80===null)throw new Error(_0x3096ee(0x138));return _0x457780['update'](_0x167a80,_0x29093b);}case _0x3096ee(0x12d):{const _0x3f0984=_0x1faf17['id'];if(_0x3f0984===undefined||_0x3f0984===null)throw new Error('delete\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123}\x27');return _0x457780[_0x3096ee(0x12d)](_0x3f0984);}case _0x3096ee(0x144):return _0x457780[_0x3096ee(0x144)](normalizeAggregateParams(_0x1faf17));default:return _0x457780[_0x3f91fa](_0x1faf17);}}export async function executeSdkSql(_0x404204,_0x5b48c6){const _0x259f10=a78_0x43c3,_0x531162=ensureClient();return _0x531162[_0x259f10(0x145)][_0x259f10(0x135)]({'sqlCode':_0x404204,'params':_0x5b48c6});}export async function executeSdkBff(_0x1750a3,_0x461bab){const _0xee3aa7=a78_0x43c3,_0x213250=ensureClient();return _0x213250[_0xee3aa7(0x14c)][_0xee3aa7(0x135)]({'scriptName':_0x1750a3,'params':_0x461bab});}
1
+ (function(_0x7d880c,_0x15e0da){const _0x3a0e28=a78_0x59b7,_0x4b49c1=_0x7d880c();while(!![]){try{const _0x5ec2ea=parseInt(_0x3a0e28(0xc1))/0x1*(parseInt(_0x3a0e28(0xdd))/0x2)+parseInt(_0x3a0e28(0xbc))/0x3+-parseInt(_0x3a0e28(0xe2))/0x4*(parseInt(_0x3a0e28(0xb9))/0x5)+parseInt(_0x3a0e28(0xcb))/0x6+-parseInt(_0x3a0e28(0xe0))/0x7*(parseInt(_0x3a0e28(0xd8))/0x8)+-parseInt(_0x3a0e28(0xba))/0x9+parseInt(_0x3a0e28(0xc8))/0xa*(-parseInt(_0x3a0e28(0xc6))/0xb);if(_0x5ec2ea===_0x15e0da)break;else _0x4b49c1['push'](_0x4b49c1['shift']());}catch(_0x22ac01){_0x4b49c1['push'](_0x4b49c1['shift']());}}}(a78_0x4277,0x9e6dd));function a78_0x59b7(_0xb401e6,_0x3704c4){_0xb401e6=_0xb401e6-0xb9;const _0x427750=a78_0x4277();let _0x59b7a6=_0x427750[_0xb401e6];return _0x59b7a6;}import{createClient}from'@lovrabet/sdk';import{PRODUCT_CONFIG}from'../constant/product.js';import{CliErrors}from'../errors.js';import{parseBatchCreateItemsFromParams}from'../utils/params.js';import{installLosslessJsonResponseParser}from'../utils/lossless-json.js';function a78_0x4277(){const _0x474236=['data\x20aggregate\x20--params.aggregate[','3565356xRgDEc','SDK\x20model\x20does\x20not\x20support\x20operation\x20\x22','aggregate','sql','update\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123,\x22name\x22:\x22new\x22}\x27\x20or\x20\x27{\x22id\x22:[1,2,3],\x22name\x22:\x22new\x22}\x27','917873ejIQIe','function','bff','column',']\x20must\x20be\x20an\x20object.','708895gMKgDu','trim','110WrQlXD',']\x20requires\x20\x22column\x22;\x20\x22field\x22\x20is\x20accepted\x20only\x20as\x20a\x20deprecated\x20alias.','field','3201156KHTqdh','invokeSource','object','isArray','execute','authMode','appCode','delete\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123}\x27','accessKey','data\x20aggregate\x20--params.aggregate\x20must\x20be\x20an\x20array.','string','Available:\x20filter,\x20getOne,\x20create,\x20batchCreate,\x20update,\x20delete,\x20aggregate.','validation','1871224djFcOa','delete','batchCreate','env','\x22.\x20','2pvzOXP','getOne\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123}\x27','map','7qppbAG','dataset_','465236NXudLO','getOne','30bwBvqU','3152466jTmKCs'];a78_0x4277=function(){return _0x474236;};return a78_0x4277();}let _client,restoreResponseJsonParser;export function initSdkClient(_0xae90c7){const _0x2b3a71=a78_0x59b7;restoreResponseJsonParser??=installLosslessJsonResponseParser();try{_client=createClient({'appCode':_0xae90c7[_0x2b3a71(0xd1)],'env':_0xae90c7[_0x2b3a71(0xdb)],'authMode':_0xae90c7[_0x2b3a71(0xd0)],..._0xae90c7[_0x2b3a71(0xd3)]?{'accessKey':_0xae90c7['accessKey']}:{},'options':{'timeout':0x7530,'headers':{'X-Invoke-Source':PRODUCT_CONFIG[_0x2b3a71(0xcc)]}}});}catch(_0x489e43){clearSdkClient();throw _0x489e43;}}export function clearSdkClient(){_client=undefined,restoreResponseJsonParser?.(),restoreResponseJsonParser=undefined;}function ensureClient(){if(!_client)throw new Error('SDK\x20client\x20not\x20initialized.\x20Call\x20initSdkClient()\x20first.');return _client;}function normalizeAggregateParams(_0x5d4e7e){const _0x325d7e=a78_0x59b7,_0xc11c57=_0x5d4e7e[_0x325d7e(0xbe)];if(_0xc11c57===undefined)return _0x5d4e7e;if(!Array[_0x325d7e(0xce)](_0xc11c57))throw CliErrors['validation'](_0x325d7e(0xd4));return{..._0x5d4e7e,'aggregate':_0xc11c57[_0x325d7e(0xdf)]((_0x511530,_0x56a80f)=>{const _0x1bf853=_0x325d7e;if(!_0x511530||typeof _0x511530!==_0x1bf853(0xcd)||Array[_0x1bf853(0xce)](_0x511530))throw CliErrors[_0x1bf853(0xd7)](_0x1bf853(0xbb)+_0x56a80f+_0x1bf853(0xc5));const _0x330b9e=_0x511530[_0x1bf853(0xc4)]??_0x511530[_0x1bf853(0xca)];if(typeof _0x330b9e!==_0x1bf853(0xd5)||_0x330b9e[_0x1bf853(0xc7)]()==='')throw CliErrors[_0x1bf853(0xd7)](_0x1bf853(0xbb)+_0x56a80f+_0x1bf853(0xc9));const _0x4a6157={..._0x511530,'column':_0x330b9e};return delete _0x4a6157['field'],_0x4a6157;})};}export async function executeData(_0x4d5858,_0x475cd5,_0x444c65){const _0x21cc21=a78_0x59b7,_0x13f7b8=ensureClient(),_0x5cdc3c=_0x21cc21(0xe1)+_0x4d5858,_0x174569=_0x13f7b8['models'][_0x5cdc3c];if(!_0x174569||typeof _0x174569[_0x475cd5]!==_0x21cc21(0xc2))throw new Error(_0x21cc21(0xbd)+_0x475cd5+_0x21cc21(0xdc)+_0x21cc21(0xd6));if(_0x475cd5===_0x21cc21(0xda))return _0x174569[_0x21cc21(0xda)](parseBatchCreateItemsFromParams(_0x444c65));const _0x5242a6=_0x444c65!==undefined&&_0x444c65!==null&&!Array[_0x21cc21(0xce)](_0x444c65)?_0x444c65:{};switch(_0x475cd5){case _0x21cc21(0xe3):{const _0x4645d0=_0x5242a6['id'];if(_0x4645d0===undefined||_0x4645d0===null)throw new Error(_0x21cc21(0xde));return _0x174569[_0x21cc21(0xe3)](_0x4645d0);}case'update':{const {id:_0x142b55,..._0x178df7}=_0x5242a6;if(_0x142b55===undefined||_0x142b55===null)throw new Error(_0x21cc21(0xc0));return _0x174569['update'](_0x142b55,_0x178df7);}case'delete':{const _0x5e178e=_0x5242a6['id'];if(_0x5e178e===undefined||_0x5e178e===null)throw new Error(_0x21cc21(0xd2));return _0x174569[_0x21cc21(0xd9)](_0x5e178e);}case _0x21cc21(0xbe):return _0x174569[_0x21cc21(0xbe)](normalizeAggregateParams(_0x5242a6));default:return _0x174569[_0x475cd5](_0x5242a6);}}export async function executeSdkSql(_0x1c3f70,_0x5380ad){const _0x1d8598=a78_0x59b7,_0x2ba995=ensureClient();return _0x2ba995[_0x1d8598(0xbf)]['execute']({'sqlCode':_0x1c3f70,'params':_0x5380ad});}export async function executeSdkBff(_0x5d9c4f,_0x21686f){const _0x59b5c3=a78_0x59b7,_0x232193=ensureClient();return _0x232193[_0x59b5c3(0xc3)][_0x59b5c3(0xcf)]({'scriptName':_0x5d9c4f,'params':_0x21686f});}
package/lib/errors.js CHANGED
@@ -1 +1 @@
1
- const a79_0x47a6df=a79_0x5188;function a79_0x5a1a(){const _0x489739=['3381367RsOLUg','796QyTDbi','18DZimey','1472733rBquPG','Set\x20appcode\x20via\x20--appcode\x20or\x20','15RGeDFg','2208540AuusDX','Run\x20this\x20command\x20inside\x20a\x20directory\x20with\x20a\x20','95036RDvpds','746PcxznP','245441LDniIg','Configure\x20accessKey\x20in\x20','498615QGIMYc','newConfigFileName','8UgJAJL','rate_limited','\x20file.','\x20or\x20run\x20`'];a79_0x5a1a=function(){return _0x489739;};return a79_0x5a1a();}(function(_0x344a79,_0x30ceaa){const _0x507531=a79_0x5188,_0x347698=_0x344a79();while(!![]){try{const _0x5c12d8=parseInt(_0x507531(0x1b0))/0x1*(parseInt(_0x507531(0x1a6))/0x2)+parseInt(_0x507531(0x1b4))/0x3*(parseInt(_0x507531(0x1a5))/0x4)+-parseInt(_0x507531(0x1a9))/0x5*(parseInt(_0x507531(0x1b1))/0x6)+-parseInt(_0x507531(0x1a7))/0x7+-parseInt(_0x507531(0x1ab))/0x8*(-parseInt(_0x507531(0x1b2))/0x9)+parseInt(_0x507531(0x1a3))/0xa+-parseInt(_0x507531(0x1af))/0xb;if(_0x5c12d8===_0x30ceaa)break;else _0x347698['push'](_0x347698['shift']());}catch(_0x5a2e60){_0x347698['push'](_0x347698['shift']());}}}(a79_0x5a1a,0x26b65));function a79_0x5188(_0xdd399d,_0x5dbd97){_0xdd399d=_0xdd399d-0x1a3;const _0x5a1a20=a79_0x5a1a();let _0x518818=_0x5a1a20[_0xdd399d];return _0x518818;}import{CliError,createCliErrors}from'@lovrabet/cli-framework';import{CLI_BIN_NAME}from'./constant/cli.js';import{PRODUCT_CONFIG}from'./constant/product.js';export{CliError};const baseCliErrors=createCliErrors({'cliBinName':CLI_BIN_NAME,'authRequiredHint':a79_0x47a6df(0x1a8)+PRODUCT_CONFIG[a79_0x47a6df(0x1aa)]+a79_0x47a6df(0x1ae)+CLI_BIN_NAME+'\x20auth\x20login`.','configMissingHint':a79_0x47a6df(0x1b3)+PRODUCT_CONFIG[a79_0x47a6df(0x1aa)]+'.','notInProjectHint':a79_0x47a6df(0x1a4)+PRODUCT_CONFIG[a79_0x47a6df(0x1aa)]+a79_0x47a6df(0x1ad)});export const CliErrors={...baseCliErrors,'rateLimited':(_0x44d50e,_0x5b2805)=>new CliError(a79_0x47a6df(0x1ac),0x2,_0x44d50e,_0x5b2805)};
1
+ const a79_0x5bdf53=a79_0x54b6;function a79_0x54b6(_0x2c1636,_0x50db33){_0x2c1636=_0x2c1636-0x1bc;const _0x3d4b77=a79_0x3d4b();let _0x54b653=_0x3d4b77[_0x2c1636];return _0x54b653;}(function(_0x322bd7,_0x562495){const _0x753159=a79_0x54b6,_0x4e5d76=_0x322bd7();while(!![]){try{const _0x2a4af=-parseInt(_0x753159(0x1c4))/0x1*(parseInt(_0x753159(0x1c0))/0x2)+parseInt(_0x753159(0x1c2))/0x3+parseInt(_0x753159(0x1c6))/0x4*(-parseInt(_0x753159(0x1cb))/0x5)+-parseInt(_0x753159(0x1c5))/0x6*(-parseInt(_0x753159(0x1c9))/0x7)+-parseInt(_0x753159(0x1ca))/0x8*(parseInt(_0x753159(0x1bf))/0x9)+parseInt(_0x753159(0x1c8))/0xa+-parseInt(_0x753159(0x1ce))/0xb*(parseInt(_0x753159(0x1bc))/0xc);if(_0x2a4af===_0x562495)break;else _0x4e5d76['push'](_0x4e5d76['shift']());}catch(_0x2d6f2b){_0x4e5d76['push'](_0x4e5d76['shift']());}}}(a79_0x3d4b,0x7fea5));function a79_0x3d4b(){const _0x1b2ff4=['242gAQawT','25884FxsGXR','Set\x20appcode\x20via\x20--appcode\x20or\x20','\x20auth\x20login`.','9sAhFOa','10SsXdLb','rate_limited','773091PdYmCx','newConfigFileName','111046nICRrb','6zjQSpz','231212MRsdQl','Run\x20this\x20command\x20inside\x20a\x20directory\x20with\x20a\x20','9844140lHvBZy','6632507hCAGsg','7579048RjirOd','10xQXfXE','Configure\x20accessKey\x20in\x20','\x20file.'];a79_0x3d4b=function(){return _0x1b2ff4;};return a79_0x3d4b();}import{CliError,createCliErrors}from'@lovrabet/cli-framework';import{CLI_BIN_NAME}from'./constant/cli.js';import{PRODUCT_CONFIG}from'./constant/product.js';export{CliError};const baseCliErrors=createCliErrors({'cliBinName':CLI_BIN_NAME,'authRequiredHint':a79_0x5bdf53(0x1cc)+PRODUCT_CONFIG[a79_0x5bdf53(0x1c3)]+'\x20or\x20run\x20`'+CLI_BIN_NAME+a79_0x5bdf53(0x1be),'configMissingHint':a79_0x5bdf53(0x1bd)+PRODUCT_CONFIG[a79_0x5bdf53(0x1c3)]+'.','notInProjectHint':a79_0x5bdf53(0x1c7)+PRODUCT_CONFIG[a79_0x5bdf53(0x1c3)]+a79_0x5bdf53(0x1cd)});export const CliErrors={...baseCliErrors,'rateLimited':(_0x146588,_0x3f775e)=>new CliError(a79_0x5bdf53(0x1c1),0x2,_0x146588,_0x3f775e)};
@@ -1 +1 @@
1
- function a80_0xab19(){var _0x24eb28=['4702719KzdnuQ','6bfAuEX','3179610kEqhIy','7158ltNpVM','4078144xviyaL','79947Ftxqah','2813515HuoDny','67ZQHjlj','4JWegzT','42663ahbCgh'];a80_0xab19=function(){return _0x24eb28;};return a80_0xab19();}(function(_0x4a2545,_0x2a72b3){var _0xd32b50=a80_0x7c57,_0x2d6952=_0x4a2545();while(!![]){try{var _0x4c0dc1=-parseInt(_0xd32b50(0x1f4))/0x1*(-parseInt(_0xd32b50(0x1f0))/0x2)+parseInt(_0xd32b50(0x1f6))/0x3*(parseInt(_0xd32b50(0x1f5))/0x4)+parseInt(_0xd32b50(0x1f3))/0x5+-parseInt(_0xd32b50(0x1ee))/0x6*(parseInt(_0xd32b50(0x1ed))/0x7)+parseInt(_0xd32b50(0x1f1))/0x8+parseInt(_0xd32b50(0x1f2))/0x9+-parseInt(_0xd32b50(0x1ef))/0xa;if(_0x4c0dc1===_0x2a72b3)break;else _0x2d6952['push'](_0x2d6952['shift']());}catch(_0x2ab71c){_0x2d6952['push'](_0x2d6952['shift']());}}}(a80_0xab19,0x545f6));import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';import{buildAllFlags as a80_0x4b1f5f}from'@lovrabet/cli-framework';function a80_0x7c57(_0x356ea8,_0x33a71c){_0x356ea8=_0x356ea8-0x1ed;var _0xab19cd=a80_0xab19();var _0x7c574d=_0xab19cd[_0x356ea8];return _0x7c574d;}export function buildAllFlags(_0x3fada8){return a80_0x4b1f5f(_0x3fada8,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});}
1
+ (function(_0xd3cc4d,_0x6e0230){var _0x3948d5=a80_0x49df,_0x3fa15a=_0xd3cc4d();while(!![]){try{var _0x3c9b5d=-parseInt(_0x3948d5(0x143))/0x1+parseInt(_0x3948d5(0x13f))/0x2+-parseInt(_0x3948d5(0x145))/0x3+-parseInt(_0x3948d5(0x142))/0x4*(-parseInt(_0x3948d5(0x147))/0x5)+parseInt(_0x3948d5(0x141))/0x6*(parseInt(_0x3948d5(0x144))/0x7)+-parseInt(_0x3948d5(0x146))/0x8+parseInt(_0x3948d5(0x140))/0x9;if(_0x3c9b5d===_0x6e0230)break;else _0x3fa15a['push'](_0x3fa15a['shift']());}catch(_0x2c2a61){_0x3fa15a['push'](_0x3fa15a['shift']());}}}(a80_0x13ff,0xdfe49));function a80_0x49df(_0x3119f1,_0x25f467){_0x3119f1=_0x3119f1-0x13f;var _0x13ff2c=a80_0x13ff();var _0x49dfeb=_0x13ff2c[_0x3119f1];return _0x49dfeb;}function a80_0x13ff(){var _0x55657b=['12538848EeXUDB','17230AZWWcU','2647198IJcDqZ','12953790wpVjaA','379938yGKRPn','1148KSYxQO','1639053gECGgI','133lLChVk','2494722vadzSU'];a80_0x13ff=function(){return _0x55657b;};return a80_0x13ff();}import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';import{buildAllFlags as a80_0x512b1a}from'@lovrabet/cli-framework';export function buildAllFlags(_0x2c707b){return a80_0x512b1a(_0x2c707b,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});}
@@ -1 +1 @@
1
- (function(_0x554ef7,_0x26988f){const _0x4c120e=a81_0x1917,_0x3e1cdb=_0x554ef7();while(!![]){try{const _0x3b95e2=parseInt(_0x4c120e(0x1f3))/0x1*(-parseInt(_0x4c120e(0x1f6))/0x2)+parseInt(_0x4c120e(0x1f1))/0x3*(parseInt(_0x4c120e(0x1ee))/0x4)+-parseInt(_0x4c120e(0x1f4))/0x5*(parseInt(_0x4c120e(0x1ef))/0x6)+parseInt(_0x4c120e(0x1ec))/0x7*(-parseInt(_0x4c120e(0x1f8))/0x8)+parseInt(_0x4c120e(0x1ed))/0x9+parseInt(_0x4c120e(0x1f0))/0xa*(parseInt(_0x4c120e(0x1f7))/0xb)+-parseInt(_0x4c120e(0x1f2))/0xc;if(_0x3b95e2===_0x26988f)break;else _0x3e1cdb['push'](_0x3e1cdb['shift']());}catch(_0x500e92){_0x3e1cdb['push'](_0x3e1cdb['shift']());}}}(a81_0x43a7,0x26fc1));export function dryRun(_0x473253,_0x30582b){const _0xac40e1={'method':_0x473253,'url':_0x30582b},_0x18adec={'body'(_0x441ffc){return _0xac40e1['body']=_0x441ffc,_0x18adec;},'description'(_0x306ef1){const _0x3ebddc=a81_0x1917;return _0xac40e1[_0x3ebddc(0x1f5)]=_0x306ef1,_0x18adec;},'build'(){return{..._0xac40e1};}};return _0x18adec;}function a81_0x1917(_0x2d0231,_0x569504){_0x2d0231=_0x2d0231-0x1ec;const _0x43a752=a81_0x43a7();let _0x191789=_0x43a752[_0x2d0231];return _0x191789;}function a81_0x43a7(){const _0x10fbf4=['851532AgvUGC','755850YrTslB','4390VYbhNA','3kIxYlJ','814356BIyGEE','1217kzWBps','5WpTxfN','description','236LYWqQM','7667jZSlJk','2039288AcklhS','7OjHkyw','2098530nyYeeJ'];a81_0x43a7=function(){return _0x10fbf4;};return a81_0x43a7();}
1
+ (function(_0x51e9a8,_0x31a3be){const _0x87d6f0=a81_0x4ce3,_0x53773e=_0x51e9a8();while(!![]){try{const _0x7167de=parseInt(_0x87d6f0(0x13a))/0x1*(parseInt(_0x87d6f0(0x13d))/0x2)+-parseInt(_0x87d6f0(0x140))/0x3+-parseInt(_0x87d6f0(0x13c))/0x4+-parseInt(_0x87d6f0(0x141))/0x5+parseInt(_0x87d6f0(0x13b))/0x6+-parseInt(_0x87d6f0(0x13e))/0x7+parseInt(_0x87d6f0(0x142))/0x8;if(_0x7167de===_0x31a3be)break;else _0x53773e['push'](_0x53773e['shift']());}catch(_0x12bc3e){_0x53773e['push'](_0x53773e['shift']());}}}(a81_0x286d,0xc5321));function a81_0x286d(){const _0x1e8b38=['5565258IjpEkm','3358240RvMSuE','2DjsnIJ','10587983XVxidY','description','3471435xHvsLl','5943435tKysKf','24718000phjRZg','body','1488381QwqYrc'];a81_0x286d=function(){return _0x1e8b38;};return a81_0x286d();}function a81_0x4ce3(_0x1e9094,_0x5906dc){_0x1e9094=_0x1e9094-0x13a;const _0x286d62=a81_0x286d();let _0x4ce3a7=_0x286d62[_0x1e9094];return _0x4ce3a7;}export function dryRun(_0x7766d8,_0x18327c){const _0x3132e3={'method':_0x7766d8,'url':_0x18327c},_0x36fb28={'body'(_0x5b969a){const _0x53f1aa=a81_0x4ce3;return _0x3132e3[_0x53f1aa(0x143)]=_0x5b969a,_0x36fb28;},'description'(_0x3501dc){const _0x43770c=a81_0x4ce3;return _0x3132e3[_0x43770c(0x13f)]=_0x3501dc,_0x36fb28;},'build'(){return{..._0x3132e3};}};return _0x36fb28;}
@@ -1 +1 @@
1
- function a82_0x110b(_0x8edc9c,_0x5828cf){_0x8edc9c=_0x8edc9c-0x82;const _0x140b86=a82_0x140b();let _0x110bf1=_0x140b86[_0x8edc9c];return _0x110bf1;}(function(_0x1ba273,_0x5e86a8){const _0x55b7e7=a82_0x110b,_0x3d3dba=_0x1ba273();while(!![]){try{const _0x147b88=parseInt(_0x55b7e7(0x86))/0x1+-parseInt(_0x55b7e7(0x87))/0x2*(-parseInt(_0x55b7e7(0x8b))/0x3)+parseInt(_0x55b7e7(0x88))/0x4+-parseInt(_0x55b7e7(0x82))/0x5*(parseInt(_0x55b7e7(0x85))/0x6)+-parseInt(_0x55b7e7(0x89))/0x7+-parseInt(_0x55b7e7(0x8a))/0x8*(-parseInt(_0x55b7e7(0x8c))/0x9)+-parseInt(_0x55b7e7(0x83))/0xa*(parseInt(_0x55b7e7(0x84))/0xb);if(_0x147b88===_0x5e86a8)break;else _0x3d3dba['push'](_0x3d3dba['shift']());}catch(_0x129111){_0x3d3dba['push'](_0x3d3dba['shift']());}}}(a82_0x140b,0xe5bbd));import{createFlagHelpers}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';const helpers=createFlagHelpers(CliErrors);export const parseFlags=helpers['parseFlags'];export const validateFlags=helpers['validateFlags'];function a82_0x140b(){const _0x1934cb=['9enLVpI','99GWrmLL','10VeFnIE','6710YPcwbR','11561DYARgb','1701306kOggrg','151523YpVwVc','619262pQMyjU','3656232XDVJYg','5486761VfjUJs','729208YcEgFJ'];a82_0x140b=function(){return _0x1934cb;};return a82_0x140b();}
1
+ const a82_0x2327b2=a82_0x43f1;(function(_0x399f35,_0x377e5e){const _0x1325d2=a82_0x43f1,_0x19e3e2=_0x399f35();while(!![]){try{const _0x5bc1d0=parseInt(_0x1325d2(0x14b))/0x1*(parseInt(_0x1325d2(0x14e))/0x2)+-parseInt(_0x1325d2(0x145))/0x3+parseInt(_0x1325d2(0x146))/0x4*(parseInt(_0x1325d2(0x14a))/0x5)+-parseInt(_0x1325d2(0x14c))/0x6+parseInt(_0x1325d2(0x14d))/0x7+parseInt(_0x1325d2(0x149))/0x8*(-parseInt(_0x1325d2(0x148))/0x9)+parseInt(_0x1325d2(0x150))/0xa;if(_0x5bc1d0===_0x377e5e)break;else _0x19e3e2['push'](_0x19e3e2['shift']());}catch(_0x1557b1){_0x19e3e2['push'](_0x19e3e2['shift']());}}}(a82_0x1ddb,0x8d63e));import{createFlagHelpers}from'@lovrabet/cli-framework';function a82_0x1ddb(){const _0x49d82a=['170530zRxUoQ','482CLKbwA','4285638zkTDrZ','6443563zzPwZk','926ktexeA','validateFlags','7404320WqVluA','2194806BbgoaJ','52HublXm','parseFlags','36IQlhYx','604952MasELK'];a82_0x1ddb=function(){return _0x49d82a;};return a82_0x1ddb();}import{CliErrors}from'../errors.js';const helpers=createFlagHelpers(CliErrors);function a82_0x43f1(_0x24cf8f,_0x5733e1){_0x24cf8f=_0x24cf8f-0x145;const _0x1ddb89=a82_0x1ddb();let _0x43f195=_0x1ddb89[_0x24cf8f];return _0x43f195;}export const parseFlags=helpers[a82_0x2327b2(0x147)];export const validateFlags=helpers[a82_0x2327b2(0x14f)];