@lovrabet/lovrabet-cli 2.1.18 → 2.1.19

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 (134) hide show
  1. package/README.md +7 -0
  2. package/lib/cli.js +1 -1
  3. package/lib/commands/api-doc/index.js +1 -1
  4. package/lib/commands/app/cache.js +1 -1
  5. package/lib/commands/app/definitions.js +1 -1
  6. package/lib/commands/app/eligibility.js +1 -1
  7. package/lib/commands/app/mock-loader.js +1 -1
  8. package/lib/commands/app/remote-source.js +1 -1
  9. package/lib/commands/app/shared.js +1 -1
  10. package/lib/commands/app-config/get.js +1 -1
  11. package/lib/commands/app-config/index.js +1 -1
  12. package/lib/commands/artifact/index.js +1 -1
  13. package/lib/commands/auth/device.js +1 -1
  14. package/lib/commands/auth/index.js +1 -1
  15. package/lib/commands/auth/prompt.js +1 -1
  16. package/lib/commands/bff/detail.js +1 -1
  17. package/lib/commands/bff/exec.js +1 -1
  18. package/lib/commands/bff/index.js +1 -1
  19. package/lib/commands/cli-skill/index.js +1 -1
  20. package/lib/commands/common/config-policy.js +1 -1
  21. package/lib/commands/common/constraints.js +1 -1
  22. package/lib/commands/common/flags.js +1 -1
  23. package/lib/commands/common/local-file.js +1 -1
  24. package/lib/commands/config/definitions.js +1 -1
  25. package/lib/commands/config/shared.js +1 -1
  26. package/lib/commands/data/index.js +1 -1
  27. package/lib/commands/dataset/detail.js +1 -1
  28. package/lib/commands/dataset/index.js +1 -1
  29. package/lib/commands/dataset/list.js +1 -1
  30. package/lib/commands/dataset/sdk-doc.js +1 -1
  31. package/lib/commands/doctor.js +1 -1
  32. package/lib/commands/file/index.js +1 -1
  33. package/lib/commands/init.js +1 -1
  34. package/lib/commands/kb/index.js +1 -1
  35. package/lib/commands/logs/index.js +1 -1
  36. package/lib/commands/ocr/index.js +1 -1
  37. package/lib/commands/personal-bff/index.js +1 -1
  38. package/lib/commands/registry.js +1 -1
  39. package/lib/commands/schedule/index.js +1 -1
  40. package/lib/commands/schema.js +1 -1
  41. package/lib/commands/service/dynamic.js +1 -1
  42. package/lib/commands/service/function-name-adapter.js +1 -1
  43. package/lib/commands/service/index.js +1 -1
  44. package/lib/commands/service/registry.js +1 -1
  45. package/lib/commands/skill/commands/create.js +1 -1
  46. package/lib/commands/skill/commands/install.js +1 -1
  47. package/lib/commands/skill/commands/list.js +1 -1
  48. package/lib/commands/skill/commands/push.js +1 -1
  49. package/lib/commands/skill/commands/validate.js +1 -1
  50. package/lib/commands/skill/flags.d.ts +1 -0
  51. package/lib/commands/skill/flags.js +1 -1
  52. package/lib/commands/skill/index.js +1 -1
  53. package/lib/commands/skill/manifest-helpers.js +1 -1
  54. package/lib/commands/skill/push-execute.js +1 -1
  55. package/lib/commands/skill/push-flow-helpers.js +1 -1
  56. package/lib/commands/skill/push-retarget.js +1 -1
  57. package/lib/commands/skill/scopes.js +1 -1
  58. package/lib/commands/skill/summary.js +1 -1
  59. package/lib/commands/skill/templates.js +1 -1
  60. package/lib/commands/skill/validate.js +1 -1
  61. package/lib/commands/sql/detail.js +1 -1
  62. package/lib/commands/sql/exec.js +1 -1
  63. package/lib/commands/sql/index.js +1 -1
  64. package/lib/commands/update.js +1 -1
  65. package/lib/commands/workspace/index.js +1 -1
  66. package/lib/config/schema.js +1 -1
  67. package/lib/constant/app.js +1 -1
  68. package/lib/constant/auth-mode.js +1 -1
  69. package/lib/constant/cli.js +1 -1
  70. package/lib/constant/defaults.js +1 -1
  71. package/lib/constant/distribution.js +1 -1
  72. package/lib/constant/domain.js +1 -1
  73. package/lib/constant/env.js +1 -1
  74. package/lib/constant/output.js +1 -1
  75. package/lib/constant/product.js +1 -1
  76. package/lib/constant/risk.js +1 -1
  77. package/lib/constant/url.js +1 -1
  78. package/lib/context.js +1 -1
  79. package/lib/core/api-client.js +1 -1
  80. package/lib/core/db-resolver.js +1 -1
  81. package/lib/core/sdk-client.js +1 -1
  82. package/lib/errors.js +1 -1
  83. package/lib/framework/build-all-flags.js +1 -1
  84. package/lib/framework/dryrun.js +1 -1
  85. package/lib/framework/flags.js +1 -1
  86. package/lib/framework/help.js +1 -1
  87. package/lib/framework/index.js +1 -1
  88. package/lib/framework/output.js +1 -1
  89. package/lib/framework/preparse.js +1 -1
  90. package/lib/framework/rate-limit.js +1 -1
  91. package/lib/framework/response.js +1 -1
  92. package/lib/framework/runner-confirmation.js +1 -1
  93. package/lib/framework/runner-error.js +1 -1
  94. package/lib/framework/runner.js +1 -1
  95. package/lib/framework/schema-export.js +1 -1
  96. package/lib/framework/service-order.js +1 -1
  97. package/lib/framework/types.js +1 -1
  98. package/lib/generated/build-info.d.ts +4 -4
  99. package/lib/generated/build-info.js +1 -1
  100. package/lib/help.js +1 -1
  101. package/lib/runtime/event.js +1 -1
  102. package/lib/runtime/index.js +1 -1
  103. package/lib/runtime/queue.js +1 -1
  104. package/lib/runtime/resolve.js +1 -1
  105. package/lib/skills/npx-skills-add.js +1 -1
  106. package/lib/skills/runtime-skill-sync/constants.js +1 -1
  107. package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
  108. package/lib/skills/runtime-skill-sync/hashing.js +1 -1
  109. package/lib/skills/runtime-skill-sync/install-target.d.ts +9 -0
  110. package/lib/skills/runtime-skill-sync/install-target.js +1 -0
  111. package/lib/skills/runtime-skill-sync/links.d.ts +5 -4
  112. package/lib/skills/runtime-skill-sync/links.js +1 -1
  113. package/lib/skills/runtime-skill-sync/list-local.d.ts +2 -2
  114. package/lib/skills/runtime-skill-sync/list-local.js +1 -1
  115. package/lib/skills/runtime-skill-sync/local-files.js +1 -1
  116. package/lib/skills/runtime-skill-sync/materialize.js +1 -1
  117. package/lib/skills/runtime-skill-sync/metadata.js +1 -1
  118. package/lib/skills/runtime-skill-sync/paths.js +1 -1
  119. package/lib/skills/runtime-skill-sync/push.js +1 -1
  120. package/lib/skills/runtime-skill-sync/scopes.js +1 -1
  121. package/lib/skills/runtime-skill-sync/types.d.ts +17 -0
  122. package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
  123. package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
  124. package/lib/skills/runtime-skill-sync.d.ts +2 -1
  125. package/lib/skills/runtime-skill-sync.js +1 -1
  126. package/lib/utils/apply-jq-filter.js +1 -1
  127. package/lib/utils/logger.js +1 -1
  128. package/lib/utils/lossless-json.js +1 -1
  129. package/lib/utils/params.js +1 -1
  130. package/lib/utils/platform.js +1 -1
  131. package/lib/utils/update-notice.js +1 -1
  132. package/lib/utils/version.js +1 -1
  133. package/lib/utils/write-cli-side-channel.js +1 -1
  134. package/package.json +1 -1
@@ -1 +1 @@
1
- const a66_0xd56667=a66_0x50bf;(function(_0x23e9fb,_0x1b84fd){const _0x263376=a66_0x50bf,_0x57eb20=_0x23e9fb();while(!![]){try{const _0x3c2034=parseInt(_0x263376(0xdf))/0x1*(parseInt(_0x263376(0xee))/0x2)+-parseInt(_0x263376(0xe0))/0x3*(-parseInt(_0x263376(0xd0))/0x4)+parseInt(_0x263376(0xd9))/0x5+parseInt(_0x263376(0xd7))/0x6*(-parseInt(_0x263376(0xd6))/0x7)+parseInt(_0x263376(0xde))/0x8+parseInt(_0x263376(0xef))/0x9*(parseInt(_0x263376(0xf0))/0xa)+parseInt(_0x263376(0xf2))/0xb*(-parseInt(_0x263376(0xcb))/0xc);if(_0x3c2034===_0x1b84fd)break;else _0x57eb20['push'](_0x57eb20['shift']());}catch(_0x56d238){_0x57eb20['push'](_0x57eb20['shift']());}}}(a66_0xec36,0x8b2bc));function a66_0x50bf(_0x4c682d,_0xae9a6e){_0x4c682d=_0x4c682d-0xc3;const _0xec36cf=a66_0xec36();let _0x50bf07=_0xec36cf[_0x4c682d];return _0x50bf07;}import{PRODUCT_CONFIG}from'../constant/product.js';import{LOVRABET_NPM_PACKAGE_NAME}from'../constant/distribution.js';export const CLI_BIN_NAME=PRODUCT_CONFIG[a66_0xd56667(0xeb)];export const CLI_DISPLAY_NAME=PRODUCT_CONFIG[a66_0xd56667(0xdd)];export const NPM_PACKAGE_NAME=LOVRABET_NPM_PACKAGE_NAME;export const GLOBAL_FLAGS=[{'name':'appcode','meowKey':'appcode','type':a66_0xd56667(0xc6),'description':a66_0xd56667(0xcf),'hint':'<code>'},{'name':a66_0xd56667(0xc4),'meowKey':a66_0xd56667(0xc4),'type':'string','description':a66_0xd56667(0xc7),'hint':a66_0xd56667(0xea)},{'name':a66_0xd56667(0xd1),'meowKey':a66_0xd56667(0xd1),'type':a66_0xd56667(0xc6),'description':a66_0xd56667(0xdc),'hint':a66_0xd56667(0xd3)},{'name':a66_0xd56667(0xe5),'meowKey':a66_0xd56667(0xe5),'type':'string','description':a66_0xd56667(0xe8),'hint':'json\x20|\x20pretty\x20|\x20compress'},{'name':'jq','meowKey':'jq','type':a66_0xd56667(0xc6),'description':a66_0xd56667(0xd5),'hint':a66_0xd56667(0xcc)},{'name':'dry-run','meowKey':a66_0xd56667(0xcd),'type':a66_0xd56667(0xe7),'description':'Preview\x20operation\x20without\x20executing'},{'name':a66_0xd56667(0xdb),'meowKey':a66_0xd56667(0xdb),'type':a66_0xd56667(0xe7),'description':a66_0xd56667(0xc9)},{'name':a66_0xd56667(0xf1),'meowKey':a66_0xd56667(0xe1),'type':a66_0xd56667(0xe7),'description':a66_0xd56667(0xd2)},{'name':'global','meowKey':'global','type':a66_0xd56667(0xe7),'description':a66_0xd56667(0xc8)},{'name':'ci','meowKey':'ci','type':a66_0xd56667(0xe7),'description':'Alias\x20for\x20--non-interactive','hidden':!![]},{'name':a66_0xd56667(0xec),'meowKey':'help','type':a66_0xd56667(0xe7),'description':a66_0xd56667(0xf5)},{'name':'id','meowKey':'id','type':a66_0xd56667(0xc6),'description':a66_0xd56667(0xc3),'hidden':!![]},{'name':a66_0xd56667(0xf4),'meowKey':a66_0xd56667(0xf4),'type':a66_0xd56667(0xc6),'description':a66_0xd56667(0xd8),'hidden':!![]},{'name':'sqlcode','meowKey':a66_0xd56667(0xe9),'type':a66_0xd56667(0xc6),'description':'SQL\x20query\x20code','hidden':!![]},{'name':a66_0xd56667(0xc5),'meowKey':a66_0xd56667(0xc5),'type':a66_0xd56667(0xc6),'description':'JSON\x20params\x20for\x20execute\x20commands','hidden':!![]},{'name':a66_0xd56667(0xce),'meowKey':a66_0xd56667(0xce),'type':a66_0xd56667(0xe7),'description':a66_0xd56667(0xe2),'hidden':!![]},{'name':a66_0xd56667(0xd4),'meowKey':'clear','type':a66_0xd56667(0xe7),'description':a66_0xd56667(0xda),'hidden':!![]}];function a66_0xec36(){const _0x1ba76f=['production\x20|\x20development\x20|\x20daily','clear','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20implies\x20--format\x20json\x20when\x20current\x20format\x20is\x20pretty)','371hxdrgv','2694AYabOK','Name\x20filter','5395505NZoijp','Clear\x20output','yes','Environment','cliDisplayName','2936504cGWINC','61355OFnDIl','6234Nyjhmd','nonInteractive','Verbose\x20output','map','fromEntries','format','appcode','boolean','Output\x20format','sqlcode','<name>','cliBinName','help','type','26aFHsZk','63XpdIiq','559220RSuehd','non-interactive','1276wTCcwt','dry-run','name','Show\x20help','Record\x20ID','app','params','string','Select\x20app\x20profile\x20by\x20name','Use\x20global\x20config\x20scope','Skip\x20confirmation\x20for\x20high-risk\x20writes','meowKey','313932KupKmp','<expr>','dryRun','verbose','Override\x20appcode','1912FXXuNX','env','Force\x20non-interactive\x20mode\x20(CI)'];a66_0xec36=function(){return _0x1ba76f;};return a66_0xec36();}export const PIPELINE_FLAG_NAMES=new Set([a66_0xd56667(0xe6),'app',a66_0xd56667(0xd1),'format','jq',a66_0xd56667(0xf3),a66_0xd56667(0xdb),a66_0xd56667(0xf1),'ci']);export function buildMeowFlags(){const _0x4a6b4e=a66_0xd56667;return Object[_0x4a6b4e(0xe4)](GLOBAL_FLAGS[_0x4a6b4e(0xe3)](_0x4e0d01=>[_0x4e0d01[_0x4a6b4e(0xca)],{'type':_0x4e0d01[_0x4a6b4e(0xed)]}]));}
1
+ const a66_0x5a41e2=a66_0x23d1;(function(_0x24ff81,_0x3d455e){const _0x4e1670=a66_0x23d1,_0x4739fc=_0x24ff81();while(!![]){try{const _0x171eca=parseInt(_0x4e1670(0x15b))/0x1+-parseInt(_0x4e1670(0x176))/0x2+parseInt(_0x4e1670(0x165))/0x3*(parseInt(_0x4e1670(0x158))/0x4)+parseInt(_0x4e1670(0x177))/0x5+parseInt(_0x4e1670(0x179))/0x6+parseInt(_0x4e1670(0x15e))/0x7*(parseInt(_0x4e1670(0x16f))/0x8)+-parseInt(_0x4e1670(0x17a))/0x9*(parseInt(_0x4e1670(0x167))/0xa);if(_0x171eca===_0x3d455e)break;else _0x4739fc['push'](_0x4739fc['shift']());}catch(_0x50bb59){_0x4739fc['push'](_0x4739fc['shift']());}}}(a66_0x2892,0xae571));import{PRODUCT_CONFIG}from'../constant/product.js';function a66_0x23d1(_0x84cae5,_0x59479f){_0x84cae5=_0x84cae5-0x155;const _0x289218=a66_0x2892();let _0x23d16a=_0x289218[_0x84cae5];return _0x23d16a;}function a66_0x2892(){const _0x59ed0b=['Use\x20global\x20config\x20scope','JSON\x20params\x20for\x20execute\x20commands','json\x20|\x20pretty\x20|\x20compress','nonInteractive','40OBgnAF','non-interactive','appcode','Name\x20filter','boolean','meowKey','global','692874KLWVrY','102595TTHBNH','string','7676058DMSJNb','254088oiqBaY','fromEntries','clear','format','env','Select\x20app\x20profile\x20by\x20name','type','Override\x20appcode','<name>','4aLXEFg','production\x20|\x20development\x20|\x20daily','Alias\x20for\x20--non-interactive','408622YaCNkH','Output\x20format','name','120113KesEFC','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20implies\x20--format\x20json\x20when\x20current\x20format\x20is\x20pretty)','sqlcode','yes','app','Skip\x20confirmation\x20for\x20high-risk\x20writes','Verbose\x20output','1271301AxVjwK','dry-run','410MCSRUF','help','<expr>','verbose'];a66_0x2892=function(){return _0x59ed0b;};return a66_0x2892();}import{LOVRABET_NPM_PACKAGE_NAME}from'../constant/distribution.js';export const CLI_BIN_NAME=PRODUCT_CONFIG['cliBinName'];export const CLI_DISPLAY_NAME=PRODUCT_CONFIG['cliDisplayName'];export const NPM_PACKAGE_NAME=LOVRABET_NPM_PACKAGE_NAME;export const GLOBAL_FLAGS=[{'name':'appcode','meowKey':a66_0x5a41e2(0x171),'type':a66_0x5a41e2(0x178),'description':a66_0x5a41e2(0x156),'hint':'<code>'},{'name':a66_0x5a41e2(0x162),'meowKey':a66_0x5a41e2(0x162),'type':a66_0x5a41e2(0x178),'description':a66_0x5a41e2(0x17f),'hint':a66_0x5a41e2(0x157)},{'name':a66_0x5a41e2(0x17e),'meowKey':a66_0x5a41e2(0x17e),'type':a66_0x5a41e2(0x178),'description':'Environment','hint':a66_0x5a41e2(0x159)},{'name':a66_0x5a41e2(0x17d),'meowKey':a66_0x5a41e2(0x17d),'type':a66_0x5a41e2(0x178),'description':a66_0x5a41e2(0x15c),'hint':a66_0x5a41e2(0x16d)},{'name':'jq','meowKey':'jq','type':a66_0x5a41e2(0x178),'description':a66_0x5a41e2(0x15f),'hint':a66_0x5a41e2(0x169)},{'name':'dry-run','meowKey':'dryRun','type':'boolean','description':'Preview\x20operation\x20without\x20executing'},{'name':'yes','meowKey':a66_0x5a41e2(0x161),'type':a66_0x5a41e2(0x173),'description':a66_0x5a41e2(0x163)},{'name':a66_0x5a41e2(0x170),'meowKey':a66_0x5a41e2(0x16e),'type':'boolean','description':'Force\x20non-interactive\x20mode\x20(CI)'},{'name':a66_0x5a41e2(0x175),'meowKey':'global','type':a66_0x5a41e2(0x173),'description':a66_0x5a41e2(0x16b)},{'name':'ci','meowKey':'ci','type':a66_0x5a41e2(0x173),'description':a66_0x5a41e2(0x15a),'hidden':!![]},{'name':a66_0x5a41e2(0x168),'meowKey':a66_0x5a41e2(0x168),'type':a66_0x5a41e2(0x173),'description':'Show\x20help'},{'name':'id','meowKey':'id','type':a66_0x5a41e2(0x178),'description':'Record\x20ID','hidden':!![]},{'name':a66_0x5a41e2(0x15d),'meowKey':a66_0x5a41e2(0x15d),'type':a66_0x5a41e2(0x178),'description':a66_0x5a41e2(0x172),'hidden':!![]},{'name':a66_0x5a41e2(0x160),'meowKey':a66_0x5a41e2(0x160),'type':a66_0x5a41e2(0x178),'description':'SQL\x20query\x20code','hidden':!![]},{'name':'params','meowKey':'params','type':'string','description':a66_0x5a41e2(0x16c),'hidden':!![]},{'name':a66_0x5a41e2(0x16a),'meowKey':a66_0x5a41e2(0x16a),'type':a66_0x5a41e2(0x173),'description':a66_0x5a41e2(0x164),'hidden':!![]},{'name':'clear','meowKey':a66_0x5a41e2(0x17c),'type':a66_0x5a41e2(0x173),'description':'Clear\x20output','hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set([a66_0x5a41e2(0x171),a66_0x5a41e2(0x162),a66_0x5a41e2(0x17e),a66_0x5a41e2(0x17d),'jq',a66_0x5a41e2(0x166),a66_0x5a41e2(0x161),a66_0x5a41e2(0x170),'ci']);export function buildMeowFlags(){const _0x166501=a66_0x5a41e2;return Object[_0x166501(0x17b)](GLOBAL_FLAGS['map'](_0x1a3846=>[_0x1a3846[_0x166501(0x174)],{'type':_0x1a3846[_0x166501(0x155)]}]));}
@@ -1 +1 @@
1
- const a67_0x3cf717=a67_0x4343;(function(_0x2fa689,_0x4e01d0){const _0xe0abe3=a67_0x4343,_0x57454e=_0x2fa689();while(!![]){try{const _0xdb0970=-parseInt(_0xe0abe3(0x142))/0x1*(parseInt(_0xe0abe3(0x13f))/0x2)+parseInt(_0xe0abe3(0x143))/0x3*(-parseInt(_0xe0abe3(0x13b))/0x4)+parseInt(_0xe0abe3(0x144))/0x5+parseInt(_0xe0abe3(0x137))/0x6*(-parseInt(_0xe0abe3(0x13d))/0x7)+parseInt(_0xe0abe3(0x138))/0x8*(-parseInt(_0xe0abe3(0x139))/0x9)+parseInt(_0xe0abe3(0x13c))/0xa+parseInt(_0xe0abe3(0x13a))/0xb;if(_0xdb0970===_0x4e01d0)break;else _0x57454e['push'](_0x57454e['shift']());}catch(_0x5268fd){_0x57454e['push'](_0x57454e['shift']());}}}(a67_0x433d,0x44f2c));export const DEFAULT_APP_PROFILE_NAME='main';export const DEFAULT_CONFIG_VALUES={'env':'production','format':a67_0x3cf717(0x141),'locale':a67_0x3cf717(0x13e),'riskLevel':a67_0x3cf717(0x140)};function a67_0x433d(){const _0x3b620a=['603840gjUcBG','110305lgdyBv','1579758sAVAyQ','8MPyIcQ','1149129tthYrr','7395333TlyiNX','4mZJjUk','3377590AWqoat','7JzQRFZ','en-US','314914qqTBlc','write','compress','1sVJjXX'];a67_0x433d=function(){return _0x3b620a;};return a67_0x433d();}function a67_0x4343(_0x34f4ba,_0x21b644){_0x34f4ba=_0x34f4ba-0x137;const _0x433d9d=a67_0x433d();let _0x434357=_0x433d9d[_0x34f4ba];return _0x434357;}export const DEFAULT_COMMAND_OUTPUT_FORMAT=a67_0x3cf717(0x141);
1
+ const a67_0x4db123=a67_0x12ee;function a67_0x12ee(_0x4036bc,_0x5530e1){_0x4036bc=_0x4036bc-0xcc;const _0x358e35=a67_0x358e();let _0x12ee63=_0x358e35[_0x4036bc];return _0x12ee63;}function a67_0x358e(){const _0x32d863=['136BvifVy','en-US','10LkLSTy','292338tPhgxN','1257378kdwEAH','11511PEREkl','136367KOvdpy','main','11040796EoUTEW','compress','12WGzVuR','24452hLeGvf','14TvmHrf','60hSYQWb','150qjkEFq','write','184948xmPMxN'];a67_0x358e=function(){return _0x32d863;};return a67_0x358e();}(function(_0x5cf7a3,_0x1e9fd6){const _0x4f28e5=a67_0x12ee,_0x410935=_0x5cf7a3();while(!![]){try{const _0x39ba0b=parseInt(_0x4f28e5(0xd8))/0x1+-parseInt(_0x4f28e5(0xcf))/0x2*(-parseInt(_0x4f28e5(0xd1))/0x3)+parseInt(_0x4f28e5(0xd4))/0x4*(-parseInt(_0x4f28e5(0xd7))/0x5)+-parseInt(_0x4f28e5(0xd9))/0x6*(-parseInt(_0x4f28e5(0xd0))/0x7)+parseInt(_0x4f28e5(0xd5))/0x8*(parseInt(_0x4f28e5(0xda))/0x9)+parseInt(_0x4f28e5(0xd2))/0xa*(parseInt(_0x4f28e5(0xdb))/0xb)+parseInt(_0x4f28e5(0xce))/0xc*(-parseInt(_0x4f28e5(0xcc))/0xd);if(_0x39ba0b===_0x1e9fd6)break;else _0x410935['push'](_0x410935['shift']());}catch(_0x1967d0){_0x410935['push'](_0x410935['shift']());}}}(a67_0x358e,0x362dc));export const DEFAULT_APP_PROFILE_NAME=a67_0x4db123(0xdc);export const DEFAULT_CONFIG_VALUES={'env':'production','format':a67_0x4db123(0xcd),'locale':a67_0x4db123(0xd6),'riskLevel':a67_0x4db123(0xd3)};export const DEFAULT_COMMAND_OUTPUT_FORMAT='compress';
@@ -1 +1 @@
1
- function a68_0x5c02(_0x5a5cb0,_0x4dcb25){_0x5a5cb0=_0x5a5cb0-0x75;const _0xd15bd=a68_0xd15b();let _0x5c0298=_0xd15bd[_0x5a5cb0];return _0x5c0298;}const a68_0x1f86ad=a68_0x5c02;(function(_0x17ba5c,_0x177482){const _0x470c91=a68_0x5c02,_0x3a420d=_0x17ba5c();while(!![]){try{const _0x33ebc8=-parseInt(_0x470c91(0x75))/0x1+-parseInt(_0x470c91(0x7c))/0x2+parseInt(_0x470c91(0x7a))/0x3+-parseInt(_0x470c91(0x7e))/0x4*(parseInt(_0x470c91(0x79))/0x5)+parseInt(_0x470c91(0x78))/0x6+parseInt(_0x470c91(0x77))/0x7+parseInt(_0x470c91(0x7b))/0x8;if(_0x33ebc8===_0x177482)break;else _0x3a420d['push'](_0x3a420d['shift']());}catch(_0xed4c79){_0x3a420d['push'](_0x3a420d['shift']());}}}(a68_0xd15b,0xea544));import{PRODUCT_CONFIG}from'../constant/product.js';export const LOVRABET_NPM_PACKAGE_NAME=PRODUCT_CONFIG[a68_0x1f86ad(0x7d)];export const LOVRABET_SKILL_SOURCE=PRODUCT_CONFIG[a68_0x1f86ad(0x76)];export const NPM_REGISTRY_BASE_URL=PRODUCT_CONFIG['npmRegistryBaseUrl'];function a68_0xd15b(){const _0x268376=['615537KCzphn','skillSource','12173819PogioT','10106442lRpLeY','95ZCsQNI','771069NbXBNW','216296DYyRfb','549932goYsmY','npmPackageName','391004XcIGId'];a68_0xd15b=function(){return _0x268376;};return a68_0xd15b();}
1
+ const a68_0x48161d=a68_0x42a2;function a68_0x42a2(_0x225eb2,_0x1270a4){_0x225eb2=_0x225eb2-0xfd;const _0x497dcc=a68_0x497d();let _0x42a211=_0x497dcc[_0x225eb2];return _0x42a211;}(function(_0x161d67,_0x58cfda){const _0x14ba4d=a68_0x42a2,_0x129f68=_0x161d67();while(!![]){try{const _0x10e2c8=-parseInt(_0x14ba4d(0xff))/0x1+parseInt(_0x14ba4d(0x108))/0x2+parseInt(_0x14ba4d(0x106))/0x3+parseInt(_0x14ba4d(0x101))/0x4+parseInt(_0x14ba4d(0x104))/0x5*(-parseInt(_0x14ba4d(0x100))/0x6)+parseInt(_0x14ba4d(0x107))/0x7*(-parseInt(_0x14ba4d(0x105))/0x8)+parseInt(_0x14ba4d(0xfd))/0x9;if(_0x10e2c8===_0x58cfda)break;else _0x129f68['push'](_0x129f68['shift']());}catch(_0x1a9daf){_0x129f68['push'](_0x129f68['shift']());}}}(a68_0x497d,0xbb7d1));import{PRODUCT_CONFIG}from'../constant/product.js';function a68_0x497d(){const _0x288bd4=['skillSource','npmPackageName','4422760mMkKyL','4691240TsPRGH','4070484qXEdrA','7XkyzBs','294678uPTqci','11637171gamhex','npmRegistryBaseUrl','668943sYNYeK','6ymJqrx','442668nyibug'];a68_0x497d=function(){return _0x288bd4;};return a68_0x497d();}export const LOVRABET_NPM_PACKAGE_NAME=PRODUCT_CONFIG[a68_0x48161d(0x103)];export const LOVRABET_SKILL_SOURCE=PRODUCT_CONFIG[a68_0x48161d(0x102)];export const NPM_REGISTRY_BASE_URL=PRODUCT_CONFIG[a68_0x48161d(0xfe)];
@@ -1 +1 @@
1
- const a69_0x1f2485=a69_0xb95d;function a69_0xb95d(_0x14d1ef,_0x2e2a80){_0x14d1ef=_0x14d1ef-0x1d0;const _0x116753=a69_0x1167();let _0xb95d97=_0x116753[_0x14d1ef];return _0xb95d97;}(function(_0xd77760,_0x4574c4){const _0x274957=a69_0xb95d,_0x2b8da6=_0xd77760();while(!![]){try{const _0x25d931=parseInt(_0x274957(0x1dd))/0x1+parseInt(_0x274957(0x1e1))/0x2*(-parseInt(_0x274957(0x1d1))/0x3)+parseInt(_0x274957(0x1d6))/0x4+-parseInt(_0x274957(0x1db))/0x5*(parseInt(_0x274957(0x1e2))/0x6)+parseInt(_0x274957(0x1d8))/0x7*(parseInt(_0x274957(0x1df))/0x8)+-parseInt(_0x274957(0x1e4))/0x9*(parseInt(_0x274957(0x1d0))/0xa)+-parseInt(_0x274957(0x1e0))/0xb*(-parseInt(_0x274957(0x1d9))/0xc);if(_0x25d931===_0x4574c4)break;else _0x2b8da6['push'](_0x2b8da6['shift']());}catch(_0xfb3b97){_0x2b8da6['push'](_0x2b8da6['shift']());}}}(a69_0x1167,0xd76dd));import{getEnv,isProduction}from'../constant/env.js';import{PRODUCT_CONFIG}from'../constant/product.js';let customApiDomain,customUserDomain,customRuntimeDomain,customSkillHubDomain;export function initDomains(_0x9ed496){const _0x36eed7=a69_0xb95d;customApiDomain=_0x9ed496?.[_0x36eed7(0x1da)],customUserDomain=_0x9ed496?.[_0x36eed7(0x1dc)],customRuntimeDomain=_0x9ed496?.[_0x36eed7(0x1e3)],customSkillHubDomain=_0x9ed496?.['skillHubDomain'];}export const getUserDomain=()=>customUserDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a69_0x1f2485(0x1de)][a69_0x1f2485(0x1d2)]['user']:PRODUCT_CONFIG['domains']['nonProduction']['user']);export const getApiDomain=()=>customApiDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a69_0x1f2485(0x1de)]['production'][a69_0x1f2485(0x1d4)]:PRODUCT_CONFIG[a69_0x1f2485(0x1de)]['nonProduction']['api']);export const getRuntimeDomain=()=>customRuntimeDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a69_0x1f2485(0x1de)][a69_0x1f2485(0x1d2)]['runtime']:PRODUCT_CONFIG[a69_0x1f2485(0x1de)]['nonProduction'][a69_0x1f2485(0x1d5)]);export const getSkillHubDomain=()=>customSkillHubDomain||(isProduction(getEnv())?PRODUCT_CONFIG['domains'][a69_0x1f2485(0x1d2)][a69_0x1f2485(0x1d3)]:PRODUCT_CONFIG['domains'][a69_0x1f2485(0x1d7)][a69_0x1f2485(0x1d3)]);function a69_0x1167(){const _0x441947=['1960312xYfTfB','1397ePWjHP','1915054MsTSMQ','20994opwErb','runtimeDomain','99YJSSSb','367150crAOVt','3sdNHZU','production','skillhub','api','runtime','2260992VKwUZw','nonProduction','7KVOrfc','183864xlqsHP','apiDomain','1535nHDeQa','userDomain','561801WqOhjj','domains'];a69_0x1167=function(){return _0x441947;};return a69_0x1167();}
1
+ const a69_0x127b98=a69_0x2ce2;(function(_0x21f920,_0x20f166){const _0x1a1c70=a69_0x2ce2,_0x1d569e=_0x21f920();while(!![]){try{const _0x181437=-parseInt(_0x1a1c70(0x1f2))/0x1+parseInt(_0x1a1c70(0x1fd))/0x2+-parseInt(_0x1a1c70(0x1ee))/0x3*(-parseInt(_0x1a1c70(0x1f6))/0x4)+-parseInt(_0x1a1c70(0x1f4))/0x5+-parseInt(_0x1a1c70(0x1f1))/0x6+-parseInt(_0x1a1c70(0x1f3))/0x7*(parseInt(_0x1a1c70(0x1fa))/0x8)+-parseInt(_0x1a1c70(0x1fc))/0x9*(-parseInt(_0x1a1c70(0x1ef))/0xa);if(_0x181437===_0x20f166)break;else _0x1d569e['push'](_0x1d569e['shift']());}catch(_0x15882a){_0x1d569e['push'](_0x1d569e['shift']());}}}(a69_0x856c,0x50472));import{getEnv,isProduction}from'../constant/env.js';import{PRODUCT_CONFIG}from'../constant/product.js';let customApiDomain,customUserDomain,customRuntimeDomain,customSkillHubDomain;export function initDomains(_0x262401){const _0x5e8243=a69_0x2ce2;customApiDomain=_0x262401?.['apiDomain'],customUserDomain=_0x262401?.['userDomain'],customRuntimeDomain=_0x262401?.[_0x5e8243(0x1f7)],customSkillHubDomain=_0x262401?.[_0x5e8243(0x1f8)];}export const getUserDomain=()=>customUserDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a69_0x127b98(0x1f5)][a69_0x127b98(0x1ed)][a69_0x127b98(0x1fe)]:PRODUCT_CONFIG[a69_0x127b98(0x1f5)][a69_0x127b98(0x1f9)][a69_0x127b98(0x1fe)]);function a69_0x2ce2(_0x33b619,_0xb7c44f){_0x33b619=_0x33b619-0x1ec;const _0x856c1b=a69_0x856c();let _0x2ce26f=_0x856c1b[_0x33b619];return _0x2ce26f;}export const getApiDomain=()=>customApiDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a69_0x127b98(0x1f5)]['production'][a69_0x127b98(0x1f0)]:PRODUCT_CONFIG[a69_0x127b98(0x1f5)]['nonProduction'][a69_0x127b98(0x1f0)]);function a69_0x856c(){const _0x552e0b=['421454EmZKVJ','user','skillhub','production','24sKjlkR','20KdekxQ','api','3682188nsHBNq','133642PlcdFt','1393BHUbqt','2704870RTIatg','domains','128408gRlAEJ','runtimeDomain','skillHubDomain','nonProduction','15928CVaXAm','runtime','6956091Njpzih'];a69_0x856c=function(){return _0x552e0b;};return a69_0x856c();}export const getRuntimeDomain=()=>customRuntimeDomain||(isProduction(getEnv())?PRODUCT_CONFIG['domains'][a69_0x127b98(0x1ed)][a69_0x127b98(0x1fb)]:PRODUCT_CONFIG['domains'][a69_0x127b98(0x1f9)][a69_0x127b98(0x1fb)]);export const getSkillHubDomain=()=>customSkillHubDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a69_0x127b98(0x1f5)][a69_0x127b98(0x1ed)]['skillhub']:PRODUCT_CONFIG['domains'][a69_0x127b98(0x1f9)][a69_0x127b98(0x1ec)]);
@@ -1 +1 @@
1
- function a70_0x5c99(_0x301800,_0x36fce){_0x301800=_0x301800-0xaf;const _0x901017=a70_0x9010();let _0x5c99a5=_0x901017[_0x301800];return _0x5c99a5;}const a70_0x31661a=a70_0x5c99;(function(_0x1c8b62,_0x278942){const _0x54a72e=a70_0x5c99,_0x5f9183=_0x1c8b62();while(!![]){try{const _0x4cc0c4=-parseInt(_0x54a72e(0xbd))/0x1+-parseInt(_0x54a72e(0xba))/0x2+parseInt(_0x54a72e(0xbc))/0x3*(-parseInt(_0x54a72e(0xb9))/0x4)+parseInt(_0x54a72e(0xb1))/0x5*(parseInt(_0x54a72e(0xb0))/0x6)+-parseInt(_0x54a72e(0xb3))/0x7+-parseInt(_0x54a72e(0xb7))/0x8*(parseInt(_0x54a72e(0xaf))/0x9)+parseInt(_0x54a72e(0xb2))/0xa;if(_0x4cc0c4===_0x278942)break;else _0x5f9183['push'](_0x5f9183['shift']());}catch(_0x3d0716){_0x5f9183['push'](_0x5f9183['shift']());}}}(a70_0x9010,0x79d32));function a70_0x9010(){const _0x19f83a=['893780ZhNgcX','production','81IqxeEi','519092JYuHOg','ENV','1503gUAZAk','24KNanKi','462435JntvEz','30263630tzaPYR','4595486cFzsYy','daily','dev','online','39536QzlEpM','development','66596DlYZjz'];a70_0x9010=function(){return _0x19f83a;};return a70_0x9010();}import{productEnv}from'../constant/product.js';export const RUNTIME_ENV_VALUES=[a70_0x31661a(0xbb),a70_0x31661a(0xb8),a70_0x31661a(0xb4)];export function normalizeEnv(_0x2b3320){const _0x2a919b=a70_0x31661a;return _0x2b3320===_0x2a919b(0xb6)?_0x2a919b(0xbb):_0x2b3320;}export function isProduction(_0x2a1b53){const _0x7d9ab4=a70_0x31661a;return normalizeEnv(_0x2a1b53)===_0x7d9ab4(0xbb);}export function isDaily(_0x4d1cf0){const _0x2c3c53=a70_0x31661a;return normalizeEnv(_0x4d1cf0)===_0x2c3c53(0xb4);}export function isDev(_0xce738){const _0x1fe0de=a70_0x31661a,_0x3d3218=normalizeEnv(_0xce738);return _0x3d3218===_0x1fe0de(0xb8)||_0x3d3218===_0x1fe0de(0xb5);}let env=normalizeEnv(productEnv(a70_0x31661a(0xbe))||a70_0x31661a(0xbb));export function getEnv(){return env;}export function initEnv(_0x35a4f3){env=normalizeEnv(_0x35a4f3);}
1
+ const a70_0x20f7d6=a70_0x1797;(function(_0x3124b0,_0x209a4e){const _0x20daee=a70_0x1797,_0x358e8b=_0x3124b0();while(!![]){try{const _0x213b3a=parseInt(_0x20daee(0x109))/0x1+parseInt(_0x20daee(0xff))/0x2+parseInt(_0x20daee(0xfe))/0x3+parseInt(_0x20daee(0x106))/0x4*(-parseInt(_0x20daee(0x105))/0x5)+-parseInt(_0x20daee(0x104))/0x6*(-parseInt(_0x20daee(0xfc))/0x7)+parseInt(_0x20daee(0xfb))/0x8*(-parseInt(_0x20daee(0x101))/0x9)+-parseInt(_0x20daee(0x108))/0xa*(-parseInt(_0x20daee(0x100))/0xb);if(_0x213b3a===_0x209a4e)break;else _0x358e8b['push'](_0x358e8b['shift']());}catch(_0x5bda0b){_0x358e8b['push'](_0x358e8b['shift']());}}}(a70_0x19fb,0xa0b28));import{productEnv}from'../constant/product.js';export const RUNTIME_ENV_VALUES=[a70_0x20f7d6(0xfd),a70_0x20f7d6(0x103),a70_0x20f7d6(0x102)];export function normalizeEnv(_0x2df6e7){return _0x2df6e7==='online'?'production':_0x2df6e7;}export function isProduction(_0x58d8ae){return normalizeEnv(_0x58d8ae)==='production';}export function isDaily(_0x21d11e){return normalizeEnv(_0x21d11e)==='daily';}export function isDev(_0x13ad65){const _0xa87686=a70_0x20f7d6,_0xebdcee=normalizeEnv(_0x13ad65);return _0xebdcee===_0xa87686(0x103)||_0xebdcee===_0xa87686(0x107);}let env=normalizeEnv(productEnv(a70_0x20f7d6(0x10a))||a70_0x20f7d6(0xfd));export function getEnv(){return env;}function a70_0x19fb(){const _0x39bc0e=['499688ChbWEy','434IiEtPJ','production','900942PMUieO','43590TgEJrc','209913vhFohW','153WTezXM','daily','development','462jEOXcm','10gKMyYF','495716eDvTPx','dev','220siraIi','1221202SPfooO','ENV'];a70_0x19fb=function(){return _0x39bc0e;};return a70_0x19fb();}function a70_0x1797(_0x313dd1,_0x4eaa78){_0x313dd1=_0x313dd1-0xfb;const _0x19fb6e=a70_0x19fb();let _0x179708=_0x19fb6e[_0x313dd1];return _0x179708;}export function initEnv(_0x37c938){env=normalizeEnv(_0x37c938);}
@@ -1 +1 @@
1
- const a71_0x36183c=a71_0x1c79;function a71_0x1ac3(){const _0x2710c6=['json','compress','53RgZHkU','18646dVZsNB','180102OSFiAN','273490SIDIfG','4GSFkcA','600RAYwnJ','275EkXghK','5405220sfVzRD','114987BlKpof','5458312Lglnaa','pretty','66qSnAfA','7MJnhql','2380wkGGMW'];a71_0x1ac3=function(){return _0x2710c6;};return a71_0x1ac3();}function a71_0x1c79(_0x5bef9d,_0x3da9c4){_0x5bef9d=_0x5bef9d-0x16d;const _0x1ac390=a71_0x1ac3();let _0x1c7908=_0x1ac390[_0x5bef9d];return _0x1c7908;}(function(_0x4f1b50,_0x16b17e){const _0x49d179=a71_0x1c79,_0x1fdd39=_0x4f1b50();while(!![]){try{const _0x179561=parseInt(_0x49d179(0x17c))/0x1*(parseInt(_0x49d179(0x16d))/0x2)+-parseInt(_0x49d179(0x174))/0x3*(-parseInt(_0x49d179(0x170))/0x4)+-parseInt(_0x49d179(0x179))/0x5*(parseInt(_0x49d179(0x177))/0x6)+parseInt(_0x49d179(0x178))/0x7*(parseInt(_0x49d179(0x175))/0x8)+parseInt(_0x49d179(0x173))/0x9+-parseInt(_0x49d179(0x16f))/0xa*(parseInt(_0x49d179(0x172))/0xb)+-parseInt(_0x49d179(0x171))/0xc*(parseInt(_0x49d179(0x16e))/0xd);if(_0x179561===_0x16b17e)break;else _0x1fdd39['push'](_0x1fdd39['shift']());}catch(_0x268cff){_0x1fdd39['push'](_0x1fdd39['shift']());}}}(a71_0x1ac3,0x69df8));export const OUTPUT_FORMAT_VALUES=[a71_0x36183c(0x17a),a71_0x36183c(0x176),a71_0x36183c(0x17b)];
1
+ const a71_0x1fd23c=a71_0x53e4;(function(_0xf116b9,_0x429c2e){const _0x29799f=a71_0x53e4,_0x21238e=_0xf116b9();while(!![]){try{const _0x333627=parseInt(_0x29799f(0x19b))/0x1*(-parseInt(_0x29799f(0x19c))/0x2)+parseInt(_0x29799f(0x19f))/0x3*(parseInt(_0x29799f(0x1a4))/0x4)+parseInt(_0x29799f(0x199))/0x5+-parseInt(_0x29799f(0x1a5))/0x6+-parseInt(_0x29799f(0x1a0))/0x7*(-parseInt(_0x29799f(0x198))/0x8)+parseInt(_0x29799f(0x1a2))/0x9+-parseInt(_0x29799f(0x19d))/0xa*(parseInt(_0x29799f(0x1a1))/0xb);if(_0x333627===_0x429c2e)break;else _0x21238e['push'](_0x21238e['shift']());}catch(_0x275a44){_0x21238e['push'](_0x21238e['shift']());}}}(a71_0x457d,0xdb1fe));function a71_0x53e4(_0x154ae0,_0x1f71f1){_0x154ae0=_0x154ae0-0x198;const _0x457d17=a71_0x457d();let _0x53e437=_0x457d17[_0x154ae0];return _0x53e437;}export const OUTPUT_FORMAT_VALUES=[a71_0x1fd23c(0x19a),a71_0x1fd23c(0x19e),a71_0x1fd23c(0x1a3)];function a71_0x457d(){const _0x43cf7d=['6366035nRlDkA','json','493761hHmQOG','2fHrpQm','2324010ImrGvC','pretty','51SyFToh','3555937wTXDUH','77cYwpOV','15573231yJtYBX','compress','103652FtxxHt','8651802vGyuPi','16dxIFVG'];a71_0x457d=function(){return _0x43cf7d;};return a71_0x457d();}
@@ -1 +1 @@
1
- function a72_0xa136(_0x90c95e,_0x96c16f){_0x90c95e=_0x90c95e-0x146;const _0x5eed4a=a72_0x5eed();let _0xa13639=_0x5eed4a[_0x90c95e];return _0xa13639;}function a72_0x5eed(){const _0x36ca0f=['https://daily-api.lovrabet.com','legacyEnvPrefixes','Lovrabet\x20User\x20Center','15ZgcAzu','Lovrabet\x20Runtime\x20CLI','3235150mWKfzA','1519593JUwldw','https://runtime.lovrabet.com','205048JMJrid','LOVRABET','138hOudry','1048740aOuWsc','SKIP_NPX_SKILLS','1740484GmYtNx','.lovrabet-runtime.log','732318IqOfqZ','3865vFzZoZ','https://skills-daily.lovrabet.com','cli:lovrabet-runtime','https://daily-runtime.lovrabet.com','map','lovrabet/lovrabet-cli','https://api.lovrabet.com','.lovrabet','https://registry.npmjs.org','27wqVIcW','@lovrabet/lovrabet-cli'];a72_0x5eed=function(){return _0x36ca0f;};return a72_0x5eed();}const a72_0x3fefb1=a72_0xa136;(function(_0x1702ff,_0x299a4a){const _0x4be070=a72_0xa136,_0x554f17=_0x1702ff();while(!![]){try{const _0x5c98f8=-parseInt(_0x4be070(0x150))/0x1*(-parseInt(_0x4be070(0x14a))/0x2)+parseInt(_0x4be070(0x146))/0x3+parseInt(_0x4be070(0x14d))/0x4+parseInt(_0x4be070(0x15e))/0x5*(-parseInt(_0x4be070(0x14f))/0x6)+-parseInt(_0x4be070(0x14b))/0x7+parseInt(_0x4be070(0x148))/0x8*(-parseInt(_0x4be070(0x159))/0x9)+-parseInt(_0x4be070(0x160))/0xa;if(_0x5c98f8===_0x299a4a)break;else _0x554f17['push'](_0x554f17['shift']());}catch(_0xd5bb70){_0x554f17['push'](_0x554f17['shift']());}}}(a72_0x5eed,0x4746e));export const PRODUCT_CONFIG={'cliBinName':'lovrabet','cliDisplayName':a72_0x3fefb1(0x15f),'npmPackageName':a72_0x3fefb1(0x15a),'skillSource':a72_0x3fefb1(0x155),'npmRegistryBaseUrl':a72_0x3fefb1(0x158),'envPrefix':a72_0x3fefb1(0x149),'legacyEnvPrefixes':['RABETBASE'],'configFileNames':['.lovrabet.json','.lovrabetrc'],'newConfigFileName':'.lovrabet.json','homeDirName':a72_0x3fefb1(0x157),'logFileName':a72_0x3fefb1(0x14e),'invokeSource':a72_0x3fefb1(0x152),'userCenterDisplayName':a72_0x3fefb1(0x15d),'skipNpxSkillsEnvSuffix':a72_0x3fefb1(0x14c),'domains':{'production':{'user':'https://user.lovrabet.com','api':a72_0x3fefb1(0x156),'runtime':a72_0x3fefb1(0x147),'skillhub':'https://skills.lovrabet.com'},'nonProduction':{'user':'https://user-daily.lovrabet.com','api':a72_0x3fefb1(0x15b),'runtime':a72_0x3fefb1(0x153),'skillhub':a72_0x3fefb1(0x151)}},'accessKeyCreatePath':'/user/ak'};export function productEnvName(_0x5b8d7e){return PRODUCT_CONFIG['envPrefix']+'_'+_0x5b8d7e;}export function productEnvNames(_0x560719){const _0x5ccb29=a72_0x3fefb1;return[productEnvName(_0x560719),...PRODUCT_CONFIG[_0x5ccb29(0x15c)][_0x5ccb29(0x154)](_0x30ccab=>_0x30ccab+'_'+_0x560719)];}export function productEnv(_0x585106){for(const _0x56de00 of productEnvNames(_0x585106)){const _0x38fe40=process.env[_0x56de00];if(_0x38fe40!==undefined)return _0x38fe40;}return undefined;}
1
+ const a72_0x3c9c9d=a72_0xad35;(function(_0x44106e,_0x29e7dc){const _0x17e6ee=a72_0xad35,_0x5cbc26=_0x44106e();while(!![]){try{const _0x1abdca=parseInt(_0x17e6ee(0x91))/0x1*(-parseInt(_0x17e6ee(0x96))/0x2)+parseInt(_0x17e6ee(0x86))/0x3+parseInt(_0x17e6ee(0x94))/0x4+parseInt(_0x17e6ee(0x83))/0x5+-parseInt(_0x17e6ee(0x8b))/0x6+parseInt(_0x17e6ee(0x80))/0x7*(parseInt(_0x17e6ee(0x90))/0x8)+-parseInt(_0x17e6ee(0x82))/0x9;if(_0x1abdca===_0x29e7dc)break;else _0x5cbc26['push'](_0x5cbc26['shift']());}catch(_0x11101b){_0x5cbc26['push'](_0x5cbc26['shift']());}}}(a72_0xfce1,0x248e5));export const PRODUCT_CONFIG={'cliBinName':a72_0x3c9c9d(0x8e),'cliDisplayName':a72_0x3c9c9d(0x85),'npmPackageName':'@lovrabet/lovrabet-cli','skillSource':a72_0x3c9c9d(0x89),'npmRegistryBaseUrl':'https://registry.npmjs.org','envPrefix':'LOVRABET','legacyEnvPrefixes':['RABETBASE'],'configFileNames':[a72_0x3c9c9d(0x95),a72_0x3c9c9d(0x88)],'newConfigFileName':a72_0x3c9c9d(0x95),'homeDirName':'.lovrabet','logFileName':a72_0x3c9c9d(0x84),'invokeSource':a72_0x3c9c9d(0x93),'userCenterDisplayName':'Lovrabet\x20User\x20Center','skipNpxSkillsEnvSuffix':a72_0x3c9c9d(0x92),'domains':{'production':{'user':a72_0x3c9c9d(0x8c),'api':a72_0x3c9c9d(0x81),'runtime':a72_0x3c9c9d(0x8f),'skillhub':'https://skills.lovrabet.com'},'nonProduction':{'user':a72_0x3c9c9d(0x7f),'api':'https://daily-api.lovrabet.com','runtime':a72_0x3c9c9d(0x87),'skillhub':a72_0x3c9c9d(0x8d)}},'accessKeyCreatePath':'/user/ak'};function a72_0xfce1(){const _0xfaa077=['lovrabet/lovrabet-cli','envPrefix','559062TlSnGE','https://user.lovrabet.com','https://skills-daily.lovrabet.com','lovrabet','https://runtime.lovrabet.com','32VIslys','1zFFBZa','SKIP_NPX_SKILLS','cli:lovrabet-runtime','605040RYqqhG','.lovrabet.json','45104ZPVWlN','https://user-daily.lovrabet.com','148183mgoSgY','https://api.lovrabet.com','4104927RpcLSk','1494460yTzRAm','.lovrabet-runtime.log','Lovrabet\x20Runtime\x20CLI','560211yTsNfX','https://daily-runtime.lovrabet.com','.lovrabetrc'];a72_0xfce1=function(){return _0xfaa077;};return a72_0xfce1();}function a72_0xad35(_0x397905,_0x41b590){_0x397905=_0x397905-0x7f;const _0xfce11e=a72_0xfce1();let _0xad3552=_0xfce11e[_0x397905];return _0xad3552;}export function productEnvName(_0x18590e){const _0x38bcdc=a72_0x3c9c9d;return PRODUCT_CONFIG[_0x38bcdc(0x8a)]+'_'+_0x18590e;}export function productEnvNames(_0x598485){return[productEnvName(_0x598485),...PRODUCT_CONFIG['legacyEnvPrefixes']['map'](_0x585cc9=>_0x585cc9+'_'+_0x598485)];}export function productEnv(_0x1e37ab){for(const _0x32502c of productEnvNames(_0x1e37ab)){const _0x464950=process.env[_0x32502c];if(_0x464950!==undefined)return _0x464950;}return undefined;}
@@ -1 +1 @@
1
- const a73_0x353bb6=a73_0x5da3;(function(_0x27d8da,_0x32f19b){const _0xb43be5=a73_0x5da3,_0x1f59e5=_0x27d8da();while(!![]){try{const _0x409719=parseInt(_0xb43be5(0xc3))/0x1+parseInt(_0xb43be5(0xcc))/0x2+-parseInt(_0xb43be5(0xc7))/0x3+-parseInt(_0xb43be5(0xcb))/0x4*(-parseInt(_0xb43be5(0xcd))/0x5)+parseInt(_0xb43be5(0xca))/0x6+-parseInt(_0xb43be5(0xc8))/0x7*(parseInt(_0xb43be5(0xc6))/0x8)+-parseInt(_0xb43be5(0xc9))/0x9;if(_0x409719===_0x32f19b)break;else _0x1f59e5['push'](_0x1f59e5['shift']());}catch(_0x33d3c6){_0x1f59e5['push'](_0x1f59e5['shift']());}}}(a73_0x24e2,0x25089));function a73_0x5da3(_0x125135,_0x550b04){_0x125135=_0x125135-0xc3;const _0x24e271=a73_0x24e2();let _0x5da362=_0x24e271[_0x125135];return _0x5da362;}export const RISK_LEVEL_VALUES=[a73_0x353bb6(0xc5),a73_0x353bb6(0xc4),'high-risk-write'];function a73_0x24e2(){const _0x120c35=['227577tpIXEp','write','read','24ziJpXB','896430IhPutQ','248437SSEYPE','2086272maTnjw','1546218yxFqdo','189148VEpCcG','417852ENhUET','10QDddxP'];a73_0x24e2=function(){return _0x120c35;};return a73_0x24e2();}
1
+ const a73_0x1c483d=a73_0x22e7;(function(_0x5aaa6b,_0x3627fc){const _0x3e469e=a73_0x22e7,_0x41b3c7=_0x5aaa6b();while(!![]){try{const _0xe714c9=-parseInt(_0x3e469e(0x1ad))/0x1*(-parseInt(_0x3e469e(0x1a6))/0x2)+parseInt(_0x3e469e(0x1ab))/0x3+parseInt(_0x3e469e(0x1ae))/0x4*(-parseInt(_0x3e469e(0x1a5))/0x5)+parseInt(_0x3e469e(0x1b0))/0x6+parseInt(_0x3e469e(0x1a9))/0x7*(-parseInt(_0x3e469e(0x1a7))/0x8)+-parseInt(_0x3e469e(0x1ac))/0x9+-parseInt(_0x3e469e(0x1af))/0xa*(-parseInt(_0x3e469e(0x1a4))/0xb);if(_0xe714c9===_0x3627fc)break;else _0x41b3c7['push'](_0x41b3c7['shift']());}catch(_0x49118d){_0x41b3c7['push'](_0x41b3c7['shift']());}}}(a73_0x4e03,0x601ba));function a73_0x4e03(){const _0x259215=['176tKnzXD','high-risk-write','207382RDEcDX','read','471483WKmgCI','881217eDHben','89894NaLfqo','3356zfsAXE','846250sHDbEU','1862052huASoz','154BNqllQ','4640TAngPz','6YvwxGW'];a73_0x4e03=function(){return _0x259215;};return a73_0x4e03();}function a73_0x22e7(_0x2a9bee,_0x3ed1de){_0x2a9bee=_0x2a9bee-0x1a4;const _0x4e038e=a73_0x4e03();let _0x22e7fd=_0x4e038e[_0x2a9bee];return _0x22e7fd;}export const RISK_LEVEL_VALUES=[a73_0x1c483d(0x1aa),'write',a73_0x1c483d(0x1a8)];
@@ -1 +1 @@
1
- const a74_0x22e5bd=a74_0x24ea;function a74_0x24ea(_0x24d712,_0x374cc9){_0x24d712=_0x24d712-0x1ca;const _0x594ddc=a74_0x594d();let _0x24ea22=_0x594ddc[_0x24d712];return _0x24ea22;}(function(_0x3a0f14,_0x1ab482){const _0x188f06=a74_0x24ea,_0x5f4104=_0x3a0f14();while(!![]){try{const _0x4e5bcb=parseInt(_0x188f06(0x1d0))/0x1+-parseInt(_0x188f06(0x1cb))/0x2*(parseInt(_0x188f06(0x1d1))/0x3)+parseInt(_0x188f06(0x1d9))/0x4*(-parseInt(_0x188f06(0x1d8))/0x5)+parseInt(_0x188f06(0x1d5))/0x6*(parseInt(_0x188f06(0x1ce))/0x7)+-parseInt(_0x188f06(0x1cf))/0x8*(parseInt(_0x188f06(0x1ca))/0x9)+parseInt(_0x188f06(0x1d2))/0xa+-parseInt(_0x188f06(0x1d3))/0xb*(-parseInt(_0x188f06(0x1cc))/0xc);if(_0x4e5bcb===_0x1ab482)break;else _0x5f4104['push'](_0x5f4104['shift']());}catch(_0x380c69){_0x5f4104['push'](_0x5f4104['shift']());}}}(a74_0x594d,0x351f9));function a74_0x594d(){const _0x3697bc=['accessKeyCreatePath','domains','173785rxyJKl','8aTIUvF','1989WqOMrL','554514sqzuAv','12EBumPm','user','105GbPTbk','6808GnGexr','216510LtzWwY','3OAgfRL','3805560CKASuX','1316689BxnVKE','production','14268EfEagR'];a74_0x594d=function(){return _0x3697bc;};return a74_0x594d();}import{PRODUCT_CONFIG}from'../constant/product.js';export const USER_ACCESS_KEY_CREATE_URL=''+PRODUCT_CONFIG[a74_0x22e5bd(0x1d7)][a74_0x22e5bd(0x1d4)][a74_0x22e5bd(0x1cd)]+PRODUCT_CONFIG[a74_0x22e5bd(0x1d6)];
1
+ function a74_0x24a2(_0x115471,_0x540f47){_0x115471=_0x115471-0x180;const _0x12a96e=a74_0x12a9();let _0x24a25d=_0x12a96e[_0x115471];return _0x24a25d;}const a74_0x59e6a5=a74_0x24a2;(function(_0x24b50c,_0x552a08){const _0x4acb33=a74_0x24a2,_0x2db1fd=_0x24b50c();while(!![]){try{const _0x2c9d33=-parseInt(_0x4acb33(0x186))/0x1+parseInt(_0x4acb33(0x189))/0x2+parseInt(_0x4acb33(0x180))/0x3*(-parseInt(_0x4acb33(0x184))/0x4)+parseInt(_0x4acb33(0x183))/0x5+parseInt(_0x4acb33(0x18a))/0x6*(parseInt(_0x4acb33(0x18b))/0x7)+-parseInt(_0x4acb33(0x187))/0x8+parseInt(_0x4acb33(0x182))/0x9;if(_0x2c9d33===_0x552a08)break;else _0x2db1fd['push'](_0x2db1fd['shift']());}catch(_0x1bebbb){_0x2db1fd['push'](_0x2db1fd['shift']());}}}(a74_0x12a9,0x37bc5));import{PRODUCT_CONFIG}from'../constant/product.js';function a74_0x12a9(){const _0x2e0c64=['production','120796YnPbEa','1809952XRNsBu','domains','269336VTYOXe','6UaFvxz','1299046TMCKJb','6xSYcnN','accessKeyCreatePath','1712313TUjlTA','1548180AChTKN','489612SPufEU'];a74_0x12a9=function(){return _0x2e0c64;};return a74_0x12a9();}export const USER_ACCESS_KEY_CREATE_URL=''+PRODUCT_CONFIG[a74_0x59e6a5(0x188)][a74_0x59e6a5(0x185)]['user']+PRODUCT_CONFIG[a74_0x59e6a5(0x181)];
package/lib/context.js CHANGED
@@ -1 +1 @@
1
- const a75_0x511901=a75_0x3d0e;(function(_0x4dfaf2,_0x152fa6){const _0x40f836=a75_0x3d0e,_0x5bbbbc=_0x4dfaf2();while(!![]){try{const _0x217907=parseInt(_0x40f836(0x11b))/0x1*(parseInt(_0x40f836(0x11c))/0x2)+-parseInt(_0x40f836(0x131))/0x3*(-parseInt(_0x40f836(0xf6))/0x4)+parseInt(_0x40f836(0x132))/0x5+parseInt(_0x40f836(0x134))/0x6*(-parseInt(_0x40f836(0x112))/0x7)+-parseInt(_0x40f836(0x106))/0x8*(parseInt(_0x40f836(0x11f))/0x9)+parseInt(_0x40f836(0x123))/0xa+parseInt(_0x40f836(0xfa))/0xb;if(_0x217907===_0x152fa6)break;else _0x5bbbbc['push'](_0x5bbbbc['shift']());}catch(_0x151bd3){_0x5bbbbc['push'](_0x5bbbbc['shift']());}}}(a75_0x4ad1,0x9840b));import{readFileSync,existsSync,mkdirSync,renameSync,unlinkSync,writeFileSync}from'node:fs';function a75_0x4ad1(){const _0xeb282a=['cwd','values','405823qllCyf','global','write','apps','join','userDomain','authRequired','configFileNames','EXDEV','online','development','production','282592yIkkhd','trim','inherit','appcode','code','riskLevel','./constant/domain.js','project','some','missing','nonInteractive','./constant/env.js','7kNspAe','empty','error','daily','maxRisk','object','newConfigFileName','defaultApp','EPERM','123437UZzFyf','8ftiNfa','pageSize','message','279mTNHow','globalConfig','locale','string','4977660DLaMDF','raw','ENV','runtimeDomain','setRawCommand','projectConfig','host','stringify','EACCES','.tmp','cache','env','format','setLogPath','2637WetRuz','1135750JQeIIn','explicit','1936272VUKvPw','parse','APP','isTTY','skillHubDomain','setRawMode','FORMAT','slice','true','high-risk-write','VERBOSE','accessKey','stdin','3576LcJQje','utf8'];a75_0x4ad1=function(){return _0xeb282a;};return a75_0x4ad1();}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_0x511901(0x101)];export const NEW_CONFIG_NAME=PRODUCT_CONFIG[a75_0x511901(0x118)];function resolveConfigPath(_0x4fd447){for(const _0x580ea9 of CONFIG_NAMES){const _0x3e1722=resolve(_0x4fd447,_0x580ea9);if(existsSync(_0x3e1722))return _0x3e1722;}return undefined;}export function resolveWriteConfigPath(_0x77ef91){const _0x313859=a75_0x511901,_0x264d64=_0x77ef91===_0x313859(0x10d)?process[_0x313859(0xf8)]():homedir(),_0x41e1cc=resolveConfigPath(_0x264d64);return _0x41e1cc??resolve(_0x264d64,NEW_CONFIG_NAME);}export function readConfigFile(_0xe95620){const _0x2ea12e=a75_0x511901;try{if(existsSync(_0xe95620)){const _0x9d234e=readFileSync(_0xe95620,{'encoding':_0x2ea12e(0xf7)});if(_0x9d234e){const _0x1e08a5=JSON[_0x2ea12e(0x135)](_0x9d234e);return migrateOnlineEnv(_0xe95620,_0x1e08a5),_0x1e08a5;}}}catch{}return{};}function migrateOnlineEnv(_0x1e467b,_0x1f065d){const _0xe0eb55=a75_0x511901;let _0xba649d=![];_0x1f065d[_0xe0eb55(0x12e)]===_0xe0eb55(0x103)&&(_0x1f065d['env']=_0xe0eb55(0x105),_0xba649d=!![]);if(_0x1f065d[_0xe0eb55(0xfd)]&&typeof _0x1f065d[_0xe0eb55(0xfd)]==='object')for(const _0x299395 of Object[_0xe0eb55(0xf9)](_0x1f065d[_0xe0eb55(0xfd)])){_0x299395&&_0x299395[_0xe0eb55(0x12e)]===_0xe0eb55(0x103)&&(_0x299395[_0xe0eb55(0x12e)]='production',_0xba649d=!![]);}if(_0xba649d)try{writeConfigFile(_0x1e467b,_0x1f065d);}catch{}}export function writeConfigFile(_0x34504b,_0x137ed2){const _0x4e6ab6=a75_0x511901,_0x384bfe=dirname(_0x34504b);!existsSync(_0x384bfe)&&mkdirSync(_0x384bfe,{'recursive':!![]});const _0x5d2f14=_0x34504b+_0x4e6ab6(0x12c);try{writeFileSync(_0x5d2f14,JSON['stringify'](_0x137ed2,null,0x2)+'\x0a',{'encoding':_0x4e6ab6(0xf7),'mode':0x180});try{renameSync(_0x5d2f14,_0x34504b);}catch(_0x434d16){if(_0x434d16[_0x4e6ab6(0x10a)]===_0x4e6ab6(0x11a)||_0x434d16[_0x4e6ab6(0x10a)]===_0x4e6ab6(0x102)||_0x434d16['code']===_0x4e6ab6(0x12b)){writeFileSync(_0x34504b,JSON[_0x4e6ab6(0x12a)](_0x137ed2,null,0x2)+'\x0a',{'encoding':_0x4e6ab6(0xf7)});try{unlinkSync(_0x5d2f14);}catch{}}else throw _0x434d16;}}catch(_0x162684){try{unlinkSync(_0x5d2f14);}catch{}throw _0x162684;}}export function isNonInteractiveMode(_0x5737b6){const _0x547e57=a75_0x511901;return!!(_0x5737b6[_0x547e57(0x110)]||_0x5737b6['ci']||productEnvNames('CI')[_0x547e57(0x10e)](_0x2c587d=>process.env[_0x2c587d]==='true')||process.env.CI==='true'||!process['stdout']['isTTY']||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x382fd4=a75_0x511901;if(!process['stdin'][_0x382fd4(0x137)])return![];try{const _0xd4de49=process['stdin']['isRaw'];return process[_0x382fd4(0x140)][_0x382fd4(0x139)](!![]),process['stdin'][_0x382fd4(0x139)](_0xd4de49??![]),!![];}catch{return![];}}export async function createContext(_0x1ea2b2){const _0x4dd06e=a75_0x511901,_0x1875d1=readRawConfig(),_0x537d7e=buildConfig(_0x1875d1,_0x1ea2b2);await initGlobalEnvironment(_0x537d7e);const {getUserDomain:_0x103b14,getApiDomain:_0x3cf62a}=await import(_0x4dd06e(0x10c)),_0x353934={'apiDomain':_0x3cf62a(),'userDomain':_0x103b14()},_0x4ff20d=await buildAuth(_0x537d7e);logger[_0x4dd06e(0x130)](process[_0x4dd06e(0xf8)]());const _0x268851=(CLI_BIN_NAME+'\x20'+process['argv'][_0x4dd06e(0x13b)](0x2)[_0x4dd06e(0xfe)]('\x20'))['trim']();logger[_0x4dd06e(0x127)](_0x268851);const _0x52b00f=isNonInteractiveMode(_0x1ea2b2);return{'config':_0x537d7e,'auth':_0x4ff20d,'logger':logger,'env':_0x353934,'nonInteractive':_0x52b00f};}export function buildConfigFromFlags(_0x2bc1b3){return buildConfig(readRawConfig(),_0x2bc1b3);}export function getLocalAppAliases(_0x1ac461){const _0x230cb6=a75_0x511901;return _0x1ac461[_0x230cb6(0xfd)]&&typeof _0x1ac461[_0x230cb6(0xfd)]===_0x230cb6(0x117)?_0x1ac461[_0x230cb6(0xfd)]:{};}export function resolveLocalAppAliasCode(_0x221550,_0x1fa3cb){const _0xbfa3e4=a75_0x511901;if(!_0x1fa3cb)return undefined;const _0x19f83e=getLocalAppAliases(_0x221550)[_0x1fa3cb],_0x5279f1=_0x19f83e?.[_0xbfa3e4(0x109)];return typeof _0x5279f1===_0xbfa3e4(0x122)&&_0x5279f1[_0xbfa3e4(0x107)]()?_0x5279f1['trim']():undefined;}export function readAppCodeFromConfig(){const _0x55cb1b=a75_0x511901,_0x1aa679=readRawConfig(),_0x3f901d=_0x1aa679[_0x55cb1b(0x109)]??_0x1aa679['app'];if(typeof _0x3f901d===_0x55cb1b(0x122)&&_0x3f901d[_0x55cb1b(0x107)]())return _0x3f901d[_0x55cb1b(0x107)]();const _0x44aebc=resolveLocalAppAliasCode(_0x1aa679,typeof _0x1aa679[_0x55cb1b(0x119)]===_0x55cb1b(0x122)?_0x1aa679[_0x55cb1b(0x119)]:undefined);if(_0x44aebc)return _0x44aebc;const _0x6c2312=normalizeEnv(String(_0x1aa679[_0x55cb1b(0x12e)]||_0x55cb1b(0x105))),_0x2dd8a8=isDaily(_0x6c2312)?_0x55cb1b(0x115):isDev(_0x6c2312)?_0x55cb1b(0x104):'production',_0x59c53f=resolveCachedAppCode(typeof _0x1aa679[_0x55cb1b(0x119)]===_0x55cb1b(0x122)?_0x1aa679[_0x55cb1b(0x119)]:undefined,_0x2dd8a8,typeof _0x1aa679[_0x55cb1b(0x13f)]===_0x55cb1b(0x122)?_0x1aa679[_0x55cb1b(0x13f)]:undefined);if(_0x59c53f)return _0x59c53f;const _0x5d99bc=Object[_0x55cb1b(0xf9)](getLocalAppAliases(_0x1aa679))['find'](_0x5e7254=>_0x5e7254?.['appcode']);return typeof _0x5d99bc?.[_0x55cb1b(0x109)]===_0x55cb1b(0x122)&&_0x5d99bc[_0x55cb1b(0x109)]['trim']()?_0x5d99bc['appcode'][_0x55cb1b(0x107)]():undefined;}export function readScopedConfig(_0x594b4b){const _0x11848b=a75_0x511901,_0x71c253=_0x594b4b[_0x11848b(0xfb)]?_0x11848b(0xfb):'project';return readConfigFile(resolveWriteConfigPath(_0x71c253));}export function writeScopedConfig(_0x1782fe,_0x5c66ef){const _0x1be120=a75_0x511901,_0x3343e5=_0x5c66ef[_0x1be120(0xfb)]?_0x1be120(0xfb):_0x1be120(0x10d);writeConfigFile(resolveWriteConfigPath(_0x3343e5),_0x1782fe);}export async function initGlobalEnvironment(_0x192215){const _0x4c484c=a75_0x511901,{initEnv:_0x15fa1c}=await import(_0x4c484c(0x111));_0x15fa1c(_0x192215[_0x4c484c(0x12e)]);const {initDomains:_0x3b2b96}=await import(_0x4c484c(0x10c));_0x3b2b96({'apiDomain':_0x192215[_0x4c484c(0x124)]['apiDomain']||_0x192215[_0x4c484c(0x124)][_0x4c484c(0x129)]||undefined,'userDomain':_0x192215[_0x4c484c(0x124)][_0x4c484c(0xff)]||undefined,'runtimeDomain':_0x192215[_0x4c484c(0x124)][_0x4c484c(0x126)]||undefined,'skillHubDomain':_0x192215[_0x4c484c(0x124)][_0x4c484c(0x138)]||undefined});}export function getProjectConfigPath(){const _0x46edd3=a75_0x511901;return resolveConfigPath(process[_0x46edd3(0xf8)]());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function inspectCliConfigJsonFile(_0x185d07){const _0x422969=a75_0x511901;if(!existsSync(_0x185d07))return{'status':_0x422969(0x10f)};try{const _0x2e5f11=readFileSync(_0x185d07,{'encoding':'utf8'});if(!_0x2e5f11?.[_0x422969(0x107)]())return{'status':_0x422969(0x113)};const _0x2d3c1b=JSON['parse'](_0x2e5f11);return{'status':'ok','data':_0x2d3c1b};}catch(_0x1a52be){return{'status':_0x422969(0x114),'message':_0x1a52be instanceof Error?_0x1a52be[_0x422969(0x11e)]:String(_0x1a52be)};}}export function loadRawConfigLayers(_0x38db83){const _0x2c5cea=a75_0x511901;let _0x994076={},_0xbe12d8={},_0x3dab45,_0x244d82;try{_0x3dab45=resolveConfigPath(homedir());if(_0x3dab45){const _0x7e78e4=readFileSync(_0x3dab45,{'encoding':_0x2c5cea(0xf7)});if(_0x7e78e4)_0x994076=JSON[_0x2c5cea(0x135)](_0x7e78e4);}}catch{}try{const _0x4a6e2a=_0x38db83||process[_0x2c5cea(0xf8)]();_0x244d82=resolveConfigPath(_0x4a6e2a);if(_0x244d82){const _0x24567d=readFileSync(_0x244d82,{'encoding':_0x2c5cea(0xf7)});if(_0x24567d)_0xbe12d8=JSON[_0x2c5cea(0x135)](_0x24567d);}}catch{}return{'globalPath':_0x3dab45,'projectPath':_0x244d82,'globalConfig':_0x994076,'projectConfig':_0xbe12d8};}function mergeRawConfigLayers(_0x361c64){const _0x1fbecd=a75_0x511901,{globalConfig:_0x913769,projectConfig:_0xe2f24f}=_0x361c64;if(_0xe2f24f['inherit']===![]){const _0x3c450d={..._0xe2f24f};return delete _0x3c450d['inherit'],_0x3c450d;}const _0x3fa92e={..._0x913769,..._0xe2f24f};if('defaultApp'in _0xe2f24f)_0x3fa92e[_0x1fbecd(0x119)]=_0xe2f24f[_0x1fbecd(0x119)];else _0x913769[_0x1fbecd(0x119)]&&(_0x3fa92e[_0x1fbecd(0x119)]=_0x913769[_0x1fbecd(0x119)]);return _0x3fa92e;}export function isInProject(){return!!getProjectConfigPath();}export function readRawConfig(_0x45c7f5){return mergeRawConfigLayers(loadRawConfigLayers(_0x45c7f5));}function a75_0x3d0e(_0x37be1f,_0x4012f6){_0x37be1f=_0x37be1f-0xf6;const _0x4ad11b=a75_0x4ad1();let _0x3d0ec5=_0x4ad11b[_0x37be1f];return _0x3d0ec5;}export function readRawConfigWithLayers(_0x1cb19e){const _0x1104ee=loadRawConfigLayers(_0x1cb19e);return{'config':mergeRawConfigLayers(_0x1104ee),'layers':_0x1104ee};}export function resolveDefaultAppSource(_0x1e7a03){const _0x529ac6=a75_0x511901;if(_0x529ac6(0x119)in _0x1e7a03['projectConfig'])return'project';if(_0x1e7a03[_0x529ac6(0x128)][_0x529ac6(0x108)]===![])return null;if(_0x1e7a03[_0x529ac6(0x120)]['defaultApp'])return _0x529ac6(0xfb);return null;}function buildConfig(_0x2e0c34,_0x1821e1){const _0x3f6227=a75_0x511901,_0x4ad1fc=_0x2e0c34['defaultApp']||undefined,_0x32987d=_0x1821e1['app']||env(_0x3f6227(0x136))||undefined,_0x22ce93=_0x32987d||_0x4ad1fc||undefined,_0x1760d6=env('ACCESS_KEY')||_0x2e0c34[_0x3f6227(0x13f)]||undefined,_0x222762=_0x1821e1[_0x3f6227(0x12e)]||env(_0x3f6227(0x125))||_0x2e0c34[_0x3f6227(0x12e)]||DEFAULT_CONFIG_VALUES[_0x3f6227(0x12e)],_0x3bcd93=normalizeEnv(String(_0x222762)),_0x59f767=isDaily(_0x3bcd93)?_0x3f6227(0x115):isDev(_0x3bcd93)?_0x3f6227(0x104):'production',_0x3e0840=typeof _0x1821e1[_0x3f6227(0x109)]===_0x3f6227(0x122)?_0x1821e1[_0x3f6227(0x109)]:undefined,_0x37fe10=env('APPCODE'),_0x5e318=_0x32987d?undefined:_0x2e0c34[_0x3f6227(0x109)]||_0x2e0c34['app']||undefined,_0x51e1ec=_0x32987d||(_0x5e318?undefined:_0x4ad1fc),_0x1b72e3=resolveLocalAppAliasCode(_0x2e0c34,_0x51e1ec),_0x18162b=resolveCachedAppCode(_0x51e1ec,_0x59f767,_0x1760d6),_0x3a02c0=_0x3e0840||_0x37fe10||_0x5e318||_0x1b72e3||_0x18162b||undefined,_0x531a5c=_0x3e0840?_0x3f6227(0x133):_0x37fe10?_0x3f6227(0x12e):_0x5e318?'top-level':_0x1b72e3?'local-alias':_0x18162b?_0x3f6227(0x12d):undefined,_0x89fedc=_0x2e0c34['locale']||DEFAULT_CONFIG_VALUES[_0x3f6227(0x121)],_0x4799de=undefined,_0x1f72e1=_0x1821e1['format']||env(_0x3f6227(0x13a))||_0x2e0c34[_0x3f6227(0x12f)],_0x2bb789=normalizeLegacyOutputFormat(_0x1f72e1),_0x50b5c2=env('PAGE_SIZE')||_0x2e0c34[_0x3f6227(0x11d)],_0x13527a=_0x50b5c2?Number(_0x50b5c2)||undefined:undefined,_0x2dc3c9=_0x2e0c34[_0x3f6227(0x10b)]||_0x2e0c34[_0x3f6227(0x116)],_0x1d94de=_0x2dc3c9==='read'||_0x2dc3c9===_0x3f6227(0xfc)||_0x2dc3c9===_0x3f6227(0x13d)?_0x2dc3c9:DEFAULT_CONFIG_VALUES[_0x3f6227(0x10b)],_0x4101c4=env(_0x3f6227(0x13e)),_0x4f072d=_0x4101c4==='1'||_0x4101c4===_0x3f6227(0x13c);return{'appCode':typeof _0x3a02c0===_0x3f6227(0x122)&&_0x3a02c0[_0x3f6227(0x107)]()?_0x3a02c0['trim']():undefined,'appCodeSource':_0x531a5c,'env':_0x59f767,'locale':_0x89fedc,'cookie':_0x4799de,'accessKey':_0x1760d6,'format':_0x2bb789,'pageSize':_0x13527a,'riskLevel':_0x1d94de,'verbose':_0x4f072d,'defaultApp':_0x4ad1fc,'currentApp':typeof _0x22ce93===_0x3f6227(0x122)?_0x22ce93:undefined,'raw':_0x2e0c34};}function env(_0x10111d){return productEnv(_0x10111d);}async function buildAuth(_0x978234){const _0xb280e='',_0x553129=!!_0x978234['accessKey'];return{'cookie':_0xb280e,'isLoggedIn':_0x553129,async 'getOrLogin'(){const _0x2ec1a6=a75_0x3d0e;if(_0x553129)return _0xb280e;throw CliErrors[_0x2ec1a6(0x100)]();}};}
1
+ const a75_0x4c5faa=a75_0x1f2e;(function(_0x3f039e,_0x38d72e){const _0x36482b=a75_0x1f2e,_0x4620f0=_0x3f039e();while(!![]){try{const _0x141d98=parseInt(_0x36482b(0x17e))/0x1*(-parseInt(_0x36482b(0x160))/0x2)+-parseInt(_0x36482b(0x14f))/0x3+parseInt(_0x36482b(0x13d))/0x4*(-parseInt(_0x36482b(0x135))/0x5)+-parseInt(_0x36482b(0x178))/0x6*(parseInt(_0x36482b(0x162))/0x7)+-parseInt(_0x36482b(0x158))/0x8+parseInt(_0x36482b(0x132))/0x9*(-parseInt(_0x36482b(0x168))/0xa)+parseInt(_0x36482b(0x16f))/0xb*(parseInt(_0x36482b(0x17d))/0xc);if(_0x141d98===_0x38d72e)break;else _0x4620f0['push'](_0x4620f0['shift']());}catch(_0x497db1){_0x4620f0['push'](_0x4620f0['shift']());}}}(a75_0x16a1,0x328ff));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_0x4c5faa(0x138)];function a75_0x1f2e(_0x4835d6,_0x458870){_0x4835d6=_0x4835d6-0x132;const _0x16a1d8=a75_0x16a1();let _0x1f2e93=_0x16a1d8[_0x4835d6];return _0x1f2e93;}export const NEW_CONFIG_NAME=PRODUCT_CONFIG[a75_0x4c5faa(0x170)];function resolveConfigPath(_0x551e4c){for(const _0x569e73 of CONFIG_NAMES){const _0x550ab6=resolve(_0x551e4c,_0x569e73);if(existsSync(_0x550ab6))return _0x550ab6;}return undefined;}export function resolveWriteConfigPath(_0x15c4a6){const _0x440697=a75_0x4c5faa,_0x9fefbb=_0x15c4a6===_0x440697(0x141)?process['cwd']():homedir(),_0x5f3422=resolveConfigPath(_0x9fefbb);return _0x5f3422??resolve(_0x9fefbb,NEW_CONFIG_NAME);}export function readConfigFile(_0x427c8d){const _0x46aea9=a75_0x4c5faa;try{if(existsSync(_0x427c8d)){const _0x7a9f11=readFileSync(_0x427c8d,{'encoding':_0x46aea9(0x15f)});if(_0x7a9f11){const _0x10cca9=JSON['parse'](_0x7a9f11);return migrateOnlineEnv(_0x427c8d,_0x10cca9),_0x10cca9;}}}catch{}return{};}function migrateOnlineEnv(_0xe510ab,_0x366a1d){const _0x6b3542=a75_0x4c5faa;let _0xc8a6e3=![];_0x366a1d[_0x6b3542(0x16b)]==='online'&&(_0x366a1d['env']=_0x6b3542(0x14e),_0xc8a6e3=!![]);if(_0x366a1d['apps']&&typeof _0x366a1d['apps']===_0x6b3542(0x16e))for(const _0x494c0d of Object[_0x6b3542(0x145)](_0x366a1d[_0x6b3542(0x16a)])){_0x494c0d&&_0x494c0d[_0x6b3542(0x16b)]===_0x6b3542(0x15a)&&(_0x494c0d[_0x6b3542(0x16b)]=_0x6b3542(0x14e),_0xc8a6e3=!![]);}if(_0xc8a6e3)try{writeConfigFile(_0xe510ab,_0x366a1d);}catch{}}export function writeConfigFile(_0x120b74,_0x5afd66){const _0x4411c2=a75_0x4c5faa,_0x18500a=dirname(_0x120b74);!existsSync(_0x18500a)&&mkdirSync(_0x18500a,{'recursive':!![]});const _0x3cedf5=_0x120b74+'.tmp';try{writeFileSync(_0x3cedf5,JSON['stringify'](_0x5afd66,null,0x2)+'\x0a',{'encoding':'utf8','mode':0x180});try{renameSync(_0x3cedf5,_0x120b74);}catch(_0xc90843){if(_0xc90843[_0x4411c2(0x133)]===_0x4411c2(0x153)||_0xc90843['code']===_0x4411c2(0x172)||_0xc90843[_0x4411c2(0x133)]==='EACCES'){writeFileSync(_0x120b74,JSON[_0x4411c2(0x14d)](_0x5afd66,null,0x2)+'\x0a',{'encoding':_0x4411c2(0x15f)});try{unlinkSync(_0x3cedf5);}catch{}}else throw _0xc90843;}}catch(_0xbb1691){try{unlinkSync(_0x3cedf5);}catch{}throw _0xbb1691;}}export function isNonInteractiveMode(_0x329bc9){const _0x4ef3f3=a75_0x4c5faa;return!!(_0x329bc9[_0x4ef3f3(0x156)]||_0x329bc9['ci']||productEnvNames('CI')[_0x4ef3f3(0x174)](_0x4f5651=>process.env[_0x4f5651]===_0x4ef3f3(0x137))||process.env.CI===_0x4ef3f3(0x137)||!process[_0x4ef3f3(0x159)]['isTTY']||!isStdinRawModeSupported());}function a75_0x16a1(){const _0x4c5e90=['find','values','appcode','PAGE_SIZE','isRaw','high-risk-write','missing','maxRisk','riskLevel','stringify','production','471402azvFzv','string','ENV','message','EPERM','argv','apiDomain','nonInteractive','app','1173984IQQFNT','stdout','online','FORMAT','defaultApp','development','explicit','utf8','4klPtHP','isTTY','252KOijpq','setLogPath','setRawMode','local-alias','setRawCommand','APPCODE','435170nxWGOa','empty','apps','env','join','cwd','object','22CevtmN','newConfigFileName','./constant/domain.js','EXDEV','accessKey','some','daily','parse','globalConfig','24018jzddYc','global','trim','read','VERBOSE','7562196XdaMPX','104729knRHkf','runtimeDomain','projectConfig','45GBkIRQ','code','stdin','6855dwnTGP','format','true','configFileNames','error','inherit','top-level','host','520UcPyMI','cache','write','ACCESS_KEY','project','./constant/env.js','raw'];a75_0x16a1=function(){return _0x4c5e90;};return a75_0x16a1();}function isStdinRawModeSupported(){const _0x3a5047=a75_0x4c5faa;if(!process[_0x3a5047(0x134)][_0x3a5047(0x161)])return![];try{const _0x287572=process['stdin'][_0x3a5047(0x148)];return process[_0x3a5047(0x134)][_0x3a5047(0x164)](!![]),process[_0x3a5047(0x134)][_0x3a5047(0x164)](_0x287572??![]),!![];}catch{return![];}}export async function createContext(_0x285173){const _0x1e040c=a75_0x4c5faa,_0x2773d2=readRawConfig(),_0x34f513=buildConfig(_0x2773d2,_0x285173);await initGlobalEnvironment(_0x34f513);const {getUserDomain:_0x2ea83a,getApiDomain:_0x59d74d}=await import('./constant/domain.js'),_0x1601f0={'apiDomain':_0x59d74d(),'userDomain':_0x2ea83a()},_0x51dfc3=await buildAuth(_0x34f513);logger[_0x1e040c(0x163)](process['cwd']());const _0x381634=(CLI_BIN_NAME+'\x20'+process[_0x1e040c(0x154)]['slice'](0x2)[_0x1e040c(0x16c)]('\x20'))[_0x1e040c(0x17a)]();logger[_0x1e040c(0x166)](_0x381634);const _0x16d8ac=isNonInteractiveMode(_0x285173);return{'config':_0x34f513,'auth':_0x51dfc3,'logger':logger,'env':_0x1601f0,'nonInteractive':_0x16d8ac};}export function buildConfigFromFlags(_0x4909bf){return buildConfig(readRawConfig(),_0x4909bf);}export function getLocalAppAliases(_0x322e99){const _0x232630=a75_0x4c5faa;return _0x322e99['apps']&&typeof _0x322e99[_0x232630(0x16a)]===_0x232630(0x16e)?_0x322e99[_0x232630(0x16a)]:{};}export function resolveLocalAppAliasCode(_0xf79516,_0x20d0c9){const _0x195039=a75_0x4c5faa;if(!_0x20d0c9)return undefined;const _0x3b42c9=getLocalAppAliases(_0xf79516)[_0x20d0c9],_0x532ddb=_0x3b42c9?.[_0x195039(0x146)];return typeof _0x532ddb==='string'&&_0x532ddb[_0x195039(0x17a)]()?_0x532ddb[_0x195039(0x17a)]():undefined;}export function readAppCodeFromConfig(){const _0x377ca4=a75_0x4c5faa,_0x1538a1=readRawConfig(),_0x5bff94=_0x1538a1[_0x377ca4(0x146)]??_0x1538a1[_0x377ca4(0x157)];if(typeof _0x5bff94===_0x377ca4(0x150)&&_0x5bff94[_0x377ca4(0x17a)]())return _0x5bff94[_0x377ca4(0x17a)]();const _0x150af4=resolveLocalAppAliasCode(_0x1538a1,typeof _0x1538a1[_0x377ca4(0x15c)]===_0x377ca4(0x150)?_0x1538a1[_0x377ca4(0x15c)]:undefined);if(_0x150af4)return _0x150af4;const _0x40add3=normalizeEnv(String(_0x1538a1[_0x377ca4(0x16b)]||_0x377ca4(0x14e))),_0x3288ef=isDaily(_0x40add3)?_0x377ca4(0x175):isDev(_0x40add3)?_0x377ca4(0x15d):_0x377ca4(0x14e),_0x2d5d0b=resolveCachedAppCode(typeof _0x1538a1[_0x377ca4(0x15c)]===_0x377ca4(0x150)?_0x1538a1[_0x377ca4(0x15c)]:undefined,_0x3288ef,typeof _0x1538a1[_0x377ca4(0x173)]===_0x377ca4(0x150)?_0x1538a1['accessKey']:undefined);if(_0x2d5d0b)return _0x2d5d0b;const _0x35f54f=Object[_0x377ca4(0x145)](getLocalAppAliases(_0x1538a1))[_0x377ca4(0x144)](_0x129f3e=>_0x129f3e?.[_0x377ca4(0x146)]);return typeof _0x35f54f?.[_0x377ca4(0x146)]===_0x377ca4(0x150)&&_0x35f54f['appcode'][_0x377ca4(0x17a)]()?_0x35f54f[_0x377ca4(0x146)][_0x377ca4(0x17a)]():undefined;}export function readScopedConfig(_0x522b0c){const _0x251948=a75_0x4c5faa,_0x3b5c10=_0x522b0c['global']?_0x251948(0x179):_0x251948(0x141);return readConfigFile(resolveWriteConfigPath(_0x3b5c10));}export function writeScopedConfig(_0x18ee65,_0x1d6874){const _0x2a371c=a75_0x4c5faa,_0x370bdb=_0x1d6874[_0x2a371c(0x179)]?_0x2a371c(0x179):_0x2a371c(0x141);writeConfigFile(resolveWriteConfigPath(_0x370bdb),_0x18ee65);}export async function initGlobalEnvironment(_0x293626){const _0x40f19c=a75_0x4c5faa,{initEnv:_0x226552}=await import(_0x40f19c(0x142));_0x226552(_0x293626[_0x40f19c(0x16b)]);const {initDomains:_0x4d4d4d}=await import(_0x40f19c(0x171));_0x4d4d4d({'apiDomain':_0x293626[_0x40f19c(0x143)][_0x40f19c(0x155)]||_0x293626[_0x40f19c(0x143)][_0x40f19c(0x13c)]||undefined,'userDomain':_0x293626[_0x40f19c(0x143)]['userDomain']||undefined,'runtimeDomain':_0x293626[_0x40f19c(0x143)][_0x40f19c(0x17f)]||undefined,'skillHubDomain':_0x293626[_0x40f19c(0x143)]['skillHubDomain']||undefined});}export function getProjectConfigPath(){const _0x17390e=a75_0x4c5faa;return resolveConfigPath(process[_0x17390e(0x16d)]());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function inspectCliConfigJsonFile(_0x3eaaec){const _0x1e63c7=a75_0x4c5faa;if(!existsSync(_0x3eaaec))return{'status':_0x1e63c7(0x14a)};try{const _0x2f90a7=readFileSync(_0x3eaaec,{'encoding':_0x1e63c7(0x15f)});if(!_0x2f90a7?.[_0x1e63c7(0x17a)]())return{'status':_0x1e63c7(0x169)};const _0x596af8=JSON[_0x1e63c7(0x176)](_0x2f90a7);return{'status':'ok','data':_0x596af8};}catch(_0x3043f3){return{'status':_0x1e63c7(0x139),'message':_0x3043f3 instanceof Error?_0x3043f3[_0x1e63c7(0x152)]:String(_0x3043f3)};}}export function loadRawConfigLayers(_0x21b64e){const _0x59a286=a75_0x4c5faa;let _0x149156={},_0x2eed6d={},_0x2ca446,_0x58052e;try{_0x2ca446=resolveConfigPath(homedir());if(_0x2ca446){const _0x3bbbc8=readFileSync(_0x2ca446,{'encoding':'utf8'});if(_0x3bbbc8)_0x149156=JSON['parse'](_0x3bbbc8);}}catch{}try{const _0x5b5c68=_0x21b64e||process[_0x59a286(0x16d)]();_0x58052e=resolveConfigPath(_0x5b5c68);if(_0x58052e){const _0x5974fa=readFileSync(_0x58052e,{'encoding':_0x59a286(0x15f)});if(_0x5974fa)_0x2eed6d=JSON[_0x59a286(0x176)](_0x5974fa);}}catch{}return{'globalPath':_0x2ca446,'projectPath':_0x58052e,'globalConfig':_0x149156,'projectConfig':_0x2eed6d};}function mergeRawConfigLayers(_0x21174c){const _0x6dc57d=a75_0x4c5faa,{globalConfig:_0x5a21a4,projectConfig:_0x39fb1b}=_0x21174c;if(_0x39fb1b[_0x6dc57d(0x13a)]===![]){const _0x38bd91={..._0x39fb1b};return delete _0x38bd91[_0x6dc57d(0x13a)],_0x38bd91;}const _0x51e679={..._0x5a21a4,..._0x39fb1b};if('defaultApp'in _0x39fb1b)_0x51e679['defaultApp']=_0x39fb1b[_0x6dc57d(0x15c)];else _0x5a21a4[_0x6dc57d(0x15c)]&&(_0x51e679[_0x6dc57d(0x15c)]=_0x5a21a4[_0x6dc57d(0x15c)]);return _0x51e679;}export function isInProject(){return!!getProjectConfigPath();}export function readRawConfig(_0x17d282){return mergeRawConfigLayers(loadRawConfigLayers(_0x17d282));}export function readRawConfigWithLayers(_0x5b8369){const _0x3347f1=loadRawConfigLayers(_0x5b8369);return{'config':mergeRawConfigLayers(_0x3347f1),'layers':_0x3347f1};}export function resolveDefaultAppSource(_0x39fb87){const _0x43a9c5=a75_0x4c5faa;if(_0x43a9c5(0x15c)in _0x39fb87[_0x43a9c5(0x180)])return'project';if(_0x39fb87['projectConfig'][_0x43a9c5(0x13a)]===![])return null;if(_0x39fb87[_0x43a9c5(0x177)][_0x43a9c5(0x15c)])return _0x43a9c5(0x179);return null;}function buildConfig(_0x377e9d,_0x3b4fb0){const _0x80601a=a75_0x4c5faa,_0x3ffab8=_0x377e9d[_0x80601a(0x15c)]||undefined,_0x1342f9=_0x3b4fb0[_0x80601a(0x157)]||env('APP')||undefined,_0x35a1c8=_0x1342f9||_0x3ffab8||undefined,_0x38ea11=env(_0x80601a(0x140))||_0x377e9d[_0x80601a(0x173)]||undefined,_0x6287a8=_0x3b4fb0[_0x80601a(0x16b)]||env(_0x80601a(0x151))||_0x377e9d['env']||DEFAULT_CONFIG_VALUES[_0x80601a(0x16b)],_0x100a9d=normalizeEnv(String(_0x6287a8)),_0x530fce=isDaily(_0x100a9d)?_0x80601a(0x175):isDev(_0x100a9d)?'development':_0x80601a(0x14e),_0xaca557=typeof _0x3b4fb0[_0x80601a(0x146)]===_0x80601a(0x150)?_0x3b4fb0[_0x80601a(0x146)]:undefined,_0x9616e2=env(_0x80601a(0x167)),_0xa23a6=_0x1342f9?undefined:_0x377e9d[_0x80601a(0x146)]||_0x377e9d[_0x80601a(0x157)]||undefined,_0x1aabf1=_0x1342f9||(_0xa23a6?undefined:_0x3ffab8),_0x168e91=resolveLocalAppAliasCode(_0x377e9d,_0x1aabf1),_0x35d9e3=resolveCachedAppCode(_0x1aabf1,_0x530fce,_0x38ea11),_0x3d01d2=_0xaca557||_0x9616e2||_0xa23a6||_0x168e91||_0x35d9e3||undefined,_0x3231a9=_0xaca557?_0x80601a(0x15e):_0x9616e2?_0x80601a(0x16b):_0xa23a6?_0x80601a(0x13b):_0x168e91?_0x80601a(0x165):_0x35d9e3?_0x80601a(0x13e):undefined,_0x7a7aaf=_0x377e9d['locale']||DEFAULT_CONFIG_VALUES['locale'],_0x178b9f=undefined,_0x57d1bc=_0x3b4fb0[_0x80601a(0x136)]||env(_0x80601a(0x15b))||_0x377e9d[_0x80601a(0x136)],_0x4f06f4=normalizeLegacyOutputFormat(_0x57d1bc),_0x65f1ce=env(_0x80601a(0x147))||_0x377e9d['pageSize'],_0x166e61=_0x65f1ce?Number(_0x65f1ce)||undefined:undefined,_0x565769=_0x377e9d[_0x80601a(0x14c)]||_0x377e9d[_0x80601a(0x14b)],_0x3b964f=_0x565769===_0x80601a(0x17b)||_0x565769===_0x80601a(0x13f)||_0x565769===_0x80601a(0x149)?_0x565769:DEFAULT_CONFIG_VALUES[_0x80601a(0x14c)],_0x3e97a1=env(_0x80601a(0x17c)),_0x497e97=_0x3e97a1==='1'||_0x3e97a1===_0x80601a(0x137);return{'appCode':typeof _0x3d01d2===_0x80601a(0x150)&&_0x3d01d2[_0x80601a(0x17a)]()?_0x3d01d2[_0x80601a(0x17a)]():undefined,'appCodeSource':_0x3231a9,'env':_0x530fce,'locale':_0x7a7aaf,'cookie':_0x178b9f,'accessKey':_0x38ea11,'format':_0x4f06f4,'pageSize':_0x166e61,'riskLevel':_0x3b964f,'verbose':_0x497e97,'defaultApp':_0x3ffab8,'currentApp':typeof _0x35a1c8===_0x80601a(0x150)?_0x35a1c8:undefined,'raw':_0x377e9d};}function env(_0x366f6a){return productEnv(_0x366f6a);}async function buildAuth(_0x15f496){const _0x47276e='',_0x17ed3c=!!_0x15f496['accessKey'];return{'cookie':_0x47276e,'isLoggedIn':_0x17ed3c,async 'getOrLogin'(){if(_0x17ed3c)return _0x47276e;throw CliErrors['authRequired']();}};}
@@ -1 +1 @@
1
- (function(_0x584e39,_0x1ce9b1){const _0x48cb88=a76_0x4b54,_0x33fbe6=_0x584e39();while(!![]){try{const _0x45fa09=-parseInt(_0x48cb88(0xe8))/0x1*(parseInt(_0x48cb88(0xfd))/0x2)+-parseInt(_0x48cb88(0x9e))/0x3*(-parseInt(_0x48cb88(0xb3))/0x4)+-parseInt(_0x48cb88(0x103))/0x5*(-parseInt(_0x48cb88(0xe7))/0x6)+parseInt(_0x48cb88(0x107))/0x7+parseInt(_0x48cb88(0x8e))/0x8+-parseInt(_0x48cb88(0x9f))/0x9*(-parseInt(_0x48cb88(0xa1))/0xa)+-parseInt(_0x48cb88(0xc2))/0xb*(parseInt(_0x48cb88(0xca))/0xc);if(_0x45fa09===_0x1ce9b1)break;else _0x33fbe6['push'](_0x33fbe6['shift']());}catch(_0x10f786){_0x33fbe6['push'](_0x33fbe6['shift']());}}}(a76_0x5809,0x45449));import{readFile}from'node:fs/promises';function a76_0x5809(){const _0x57d813=['url','SkillHub\x20returned\x20non-JSON\x20response\x20(HTTP\x20','headlineVersion','Request\x20timeout:\x20','isJson','/client/sql/query','searchParams','set','newConfigFileName','description','/api/node-toolbox/','/client/runtime-bff/personal/create','/client/knowledge-base/search','string','replace','application/json','appName','confirmWarnings','/client/knowledge-base/personal/create','Check\x20your\x20credentials\x20and\x20try\x20again.','scope','name','toString','Knowledge-base\x20entry\x20not\x20found:\x20id=','3542616ddNzOb','/publish','invokeSource','errorCode','isArray','object','/update','version','items','API\x20returned\x20non-JSON\x20response\x20(HTTP\x20','SkillHub\x20API\x20error:\x20','functions','/execute?appCode=','download','Invalid\x20login\x20user\x20info\x20response:\x20expected\x20object.','API\x20error\x20code:\x20','1627491tfdlvZ','747THcPhL','trim','52090AkHAgK','undefined','SkillHub\x20error\x20code:\x20','/client/uploadFile','Configure\x20accessKey\x20in\x20','file','slug','skillName','apiError','artifactType','visibility','functionName','text','personal','Toolbox\x20returned\x20non-JSON\x20response\x20(HTTP\x20','?appCode=','/client/user/loginUserInfo','Personal\x20BFF\x20not\x20found:\x20id=','4gDtiHW','favorite',',\x20name=','gmtModified','Download\x20failed:\x20','Invalid\x20app\x20config\x20value:\x20key=','/download','/api/cli/v1/skills/','from','skillCode','GET','validation','/client/app-config/getByKey?','/client/knowledge-base/personal/list?appCode=','topK','4277240hBURbz','toLowerCase','displayName','/client/queryFileUrl','Toolbox\x20error\x20code:\x20','effective','code','size','36KoTegY','resolvedVersion','NAMESPACE_ONLY','Toolbox\x20API\x20error','tags','/api/v1/skills/','signal','entries','/api/runtime/v1/namespaces/','cursor','PRIVATE','errorMsg','values','filter','/skills','namespace','message','packageBase64','/client/runtime-bff/personal/list?appCode=','/client/artifact/create','DELETE','headers','limit','msg','SQL\x20query\x20not\x20found:\x20','arrayBuffer','data','success','errors','41304AUiiRt','14mWShtV','sqlCode','all','publishedVersion','stringify','/client/knowledge-base/personal/','resolvedSlug','application/zip','/run','api-doc-generator','status','map','authRequired','json','company','AbortError','test','tableData','summary','content','appCode','78178QAgeoO','API\x20error:\x20','abort','source','skill','/client/runtime-bff/personal/','25TYDhwb','/client/artifact/','BFF\x20function\x20not\x20found\x20or\x20inaccessible:\x20appCode=','find','3817772IJLgGl','Artifact\x20not\x20found:\x20id=','POST','Toolbox\x20API\x20error:\x20','function','/versions/','/client/dataset/list','/validate','Invalid\x20app\x20list\x20response:\x20expected\x20object\x20or\x20array.','type'];a76_0x5809=function(){return _0x57d813;};return a76_0x5809();}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(_0xd1d06f){_activeAK=_0xd1d06f||undefined;}export function clearActiveAK(){_activeAK=undefined;}function firstString(..._0x19c4f8){const _0x29db6d=a76_0x4b54;for(const _0x59015b of _0x19c4f8){if(typeof _0x59015b===_0x29db6d(0x11e)&&_0x59015b[_0x29db6d(0xa0)]())return _0x59015b[_0x29db6d(0xa0)]();}return undefined;}async function decodeResponseBody(_0x286338){const _0x2cb8af=a76_0x4b54;if(typeof _0x286338['text']===_0x2cb8af(0x10b))try{const _0x3bf63d=await _0x286338[_0x2cb8af(0xad)]();try{return{'isJson':!![],'data':parseLosslessJson(_0x3bf63d),'text':_0x3bf63d};}catch{return{'isJson':![],'text':_0x3bf63d[_0x2cb8af(0xa0)]()||undefined};}}catch{}try{return{'isJson':!![],'data':await _0x286338[_0x2cb8af(0xf5)]()};}catch{return{'isJson':![]};}}function throwIfRateLimited(_0x285e88,_0x5cc8ef,_0x4baf96){const _0x4d9952=a76_0x4b54,_0x4be09b=_0x5cc8ef&&typeof _0x5cc8ef===_0x4d9952(0x93)?_0x5cc8ef:{},_0x109523=[_0x4be09b[_0x4d9952(0xf2)],_0x4be09b['code']][_0x4d9952(0x106)](_0x2d0a82=>Number(_0x2d0a82)===0x1ad),_0x5127e2=createRateLimitError({'status':_0x285e88[_0x4d9952(0xf2)]===0x1ad?_0x285e88[_0x4d9952(0xf2)]:_0x109523??_0x285e88[_0x4d9952(0xf2)],'errorCode':firstString(_0x4be09b['errorCode'],typeof _0x4be09b[_0x4d9952(0xc8)]===_0x4d9952(0x11e)?_0x4be09b[_0x4d9952(0xc8)]:undefined),'message':firstString(_0x4be09b[_0x4d9952(0xd5)],_0x4be09b['message'],_0x4be09b['msg'],_0x4baf96),'retryAfter':readRetryAfter(_0x285e88[_0x4d9952(0xdf)])??readRetryAfterSeconds(_0x5cc8ef)});if(_0x5127e2)throw _0x5127e2;}async function apiRequest(_0x3564ac,_0x51c8b9={}){const _0x431ddc=a76_0x4b54,{method:method='GET',body:_0x3021b1,headers:headers={},timeout:timeout=0x7530}=_0x51c8b9,_0x6c1d74=_activeAK,_0x4f486f=getRuntimeDomain();if(!_0x6c1d74)throw CliErrors['authRequired']('Configure\x20accessKey\x20in\x20'+PRODUCT_CONFIG['newConfigFileName']+'.');const _0x7242a1=''+_0x4f486f+_0x3564ac,_0x84d370={'X-User-AK':_0x6c1d74},_0x40b2d1=new AbortController(),_0x12a839=setTimeout(()=>_0x40b2d1[_0x431ddc(0xff)](),timeout);try{const _0x509910=await fetch(_0x7242a1,{'method':method,'headers':{'Content-Type':_0x431ddc(0x120),'X-Invoke-Source':PRODUCT_CONFIG['invokeSource'],..._0x84d370,...headers},'body':_0x3021b1?JSON[_0x431ddc(0xec)](_0x3021b1):undefined,'signal':_0x40b2d1[_0x431ddc(0xd0)]}),_0x5e9abf=await decodeResponseBody(_0x509910);if(!_0x5e9abf[_0x431ddc(0x115)]){throwIfRateLimited(_0x509910,undefined,_0x5e9abf[_0x431ddc(0xad)]);throw CliErrors['apiError'](_0x431ddc(0x97)+_0x509910[_0x431ddc(0xf2)]+')',_0x509910['status']>=0x190?'Check\x20your\x20credentials\x20and\x20try\x20again.':undefined);}const _0x1cb353=_0x5e9abf[_0x431ddc(0xe4)];throwIfRateLimited(_0x509910,_0x1cb353);if(!_0x509910['ok']||_0x1cb353[_0x431ddc(0xe5)]===![])throw CliErrors[_0x431ddc(0xa9)](_0x1cb353[_0x431ddc(0xd5)]||_0x1cb353[_0x431ddc(0xda)]||'API\x20error:\x20'+_0x509910[_0x431ddc(0xf2)],_0x1cb353[_0x431ddc(0x91)]?_0x431ddc(0x9d)+_0x1cb353[_0x431ddc(0x91)]:undefined);return _0x1cb353;}catch(_0x232ad3){if(_0x232ad3 instanceof Error&&_0x232ad3[_0x431ddc(0x126)]===_0x431ddc(0xf7))throw CliErrors[_0x431ddc(0xa9)](_0x431ddc(0x114)+_0x7242a1);throw _0x232ad3;}finally{clearTimeout(_0x12a839);}}async function apiBinaryRequest(_0x5b5fda,_0x318698={}){const _0x169975=a76_0x4b54,{method:method=_0x169975(0xbd),headers:headers={},timeout:timeout=0x7530}=_0x318698,_0x26f775=_activeAK,_0x275efa=getRuntimeDomain();if(!_0x26f775)throw CliErrors[_0x169975(0xf4)](_0x169975(0xa5)+PRODUCT_CONFIG[_0x169975(0x119)]+'.');const _0x4a5578=''+_0x275efa+_0x5b5fda,_0x43c979=new AbortController(),_0x4b2d98=setTimeout(()=>_0x43c979[_0x169975(0xff)](),timeout);try{const _0xc8658=await fetch(_0x4a5578,{'method':method,'headers':{'X-Invoke-Source':PRODUCT_CONFIG['invokeSource'],'X-User-AK':_0x26f775,...headers},'signal':_0x43c979[_0x169975(0xd0)]});if(!_0xc8658['ok']){const _0x5d6098=await decodeResponseBody(_0xc8658),_0x35ef36=_0x5d6098['data']&&typeof _0x5d6098[_0x169975(0xe4)]===_0x169975(0x93)?_0x5d6098['data']:{},_0x30a845=firstString(_0x35ef36['errorMsg'],_0x35ef36[_0x169975(0xda)],_0x35ef36[_0x169975(0x91)],_0x5d6098[_0x169975(0xad)]);throwIfRateLimited(_0xc8658,_0x5d6098[_0x169975(0xe4)],_0x30a845);throw CliErrors[_0x169975(0xa9)](_0x30a845||'API\x20error:\x20'+_0xc8658[_0x169975(0xf2)],_0x169975(0xb7)+_0x4a5578);}return Buffer[_0x169975(0xbb)](await _0xc8658['arrayBuffer']());}catch(_0x433b9e){if(_0x433b9e instanceof Error&&_0x433b9e['name']===_0x169975(0xf7))throw CliErrors[_0x169975(0xa9)](_0x169975(0x114)+_0x4a5578);throw _0x433b9e;}finally{clearTimeout(_0x4b2d98);}}async function apiFormRequest(_0x1b291f,_0x1b8753,_0x42240f={}){const _0x260783=a76_0x4b54,{timeout:timeout=0x7530}=_0x42240f,_0x4fe77d=_activeAK,_0x282b32=getRuntimeDomain();if(!_0x4fe77d)throw CliErrors[_0x260783(0xf4)](_0x260783(0xa5)+PRODUCT_CONFIG['newConfigFileName']+'.');const _0x28a32b=''+_0x282b32+_0x1b291f,_0x2566d4=new AbortController(),_0x2db28b=setTimeout(()=>_0x2566d4[_0x260783(0xff)](),timeout);try{const _0xcc9b17=await fetch(_0x28a32b,{'method':_0x260783(0x109),'headers':{'X-Invoke-Source':PRODUCT_CONFIG['invokeSource'],'X-User-AK':_0x4fe77d},'body':_0x1b8753,'signal':_0x2566d4[_0x260783(0xd0)]}),_0x4ab855=await decodeResponseBody(_0xcc9b17);if(!_0x4ab855[_0x260783(0x115)]){throwIfRateLimited(_0xcc9b17,undefined,_0x4ab855['text']);throw CliErrors[_0x260783(0xa9)](_0x260783(0x97)+_0xcc9b17[_0x260783(0xf2)]+')',_0xcc9b17['status']>=0x190?'Check\x20your\x20credentials\x20and\x20try\x20again.':undefined);}const _0x43dd79=_0x4ab855[_0x260783(0xe4)];throwIfRateLimited(_0xcc9b17,_0x43dd79);if(!_0xcc9b17['ok']||_0x43dd79[_0x260783(0xe5)]===![])throw CliErrors[_0x260783(0xa9)](_0x43dd79[_0x260783(0xd5)]||_0x43dd79['message']||_0x260783(0xfe)+_0xcc9b17[_0x260783(0xf2)],_0x43dd79['errorCode']?'API\x20error\x20code:\x20'+_0x43dd79[_0x260783(0x91)]:undefined);return _0x43dd79;}catch(_0x4c98a4){if(_0x4c98a4 instanceof Error&&_0x4c98a4[_0x260783(0x126)]===_0x260783(0xf7))throw CliErrors[_0x260783(0xa9)](_0x260783(0x114)+_0x28a32b);throw _0x4c98a4;}finally{clearTimeout(_0x2db28b);}}async function toolboxRequest(_0x3d85a5,_0x4afd4b,_0x6090f6={}){const _0x818248=a76_0x4b54,{method:method='GET',headers:headers={},timeout:timeout=0x7530}=_0x6090f6,_0x103b23=_activeAK;if(!_0x103b23)throw CliErrors[_0x818248(0xf4)](_0x818248(0xa5)+PRODUCT_CONFIG['newConfigFileName']+'.');const _0x4970ca=getApiDomain()[_0x818248(0x11f)](/\/$/,''),_0x343e07=new URL(_0x3d85a5,_0x4970ca+_0x818248(0x11b));if(_0x4afd4b)for(const [_0x12ec1c,_0x2a9cfa]of Object[_0x818248(0xd1)](_0x4afd4b)){_0x2a9cfa!==undefined&&_0x2a9cfa!==null&&_0x343e07[_0x818248(0x117)][_0x818248(0x118)](_0x12ec1c,String(_0x2a9cfa));}const _0x376486=new AbortController(),_0x41b86a=setTimeout(()=>_0x376486[_0x818248(0xff)](),timeout);try{const _0x969315=await fetch(_0x343e07,{'method':method,'headers':{'Content-Type':_0x818248(0x120),'X-Invoke-Source':PRODUCT_CONFIG[_0x818248(0x90)],'X-User-AK':_0x103b23,...headers},'signal':_0x376486['signal']}),_0x32fa7b=await decodeResponseBody(_0x969315);if(!_0x32fa7b['isJson']){throwIfRateLimited(_0x969315,undefined,_0x32fa7b['text']);throw CliErrors[_0x818248(0xa9)](_0x818248(0xaf)+_0x969315[_0x818248(0xf2)]+')',_0x969315['status']>=0x190?_0x818248(0x124):undefined);}const _0x120594=_0x32fa7b[_0x818248(0xe4)];throwIfRateLimited(_0x969315,_0x120594);if(!_0x969315['ok']){const _0x2fbc19=_0x120594&&typeof _0x120594===_0x818248(0x93)?_0x120594:{};throw CliErrors[_0x818248(0xa9)](_0x2fbc19[_0x818248(0xd5)]||_0x2fbc19[_0x818248(0xda)]||_0x818248(0x10a)+_0x969315[_0x818248(0xf2)],_0x2fbc19['errorCode']?'Toolbox\x20error\x20code:\x20'+_0x2fbc19[_0x818248(0x91)]:undefined);}if(_0x120594&&typeof _0x120594===_0x818248(0x93)&&_0x818248(0xe5)in _0x120594&&typeof _0x120594[_0x818248(0xe5)]==='boolean'){const _0x1a796e=_0x120594;if(!_0x1a796e[_0x818248(0xe5)])throw CliErrors[_0x818248(0xa9)](_0x1a796e[_0x818248(0xd5)]||_0x1a796e[_0x818248(0xda)]||_0x818248(0xcd),_0x1a796e[_0x818248(0x91)]?_0x818248(0xc6)+_0x1a796e[_0x818248(0x91)]:undefined);return _0x1a796e[_0x818248(0xe4)];}return _0x120594;}catch(_0x2fc7c3){if(_0x2fc7c3 instanceof Error&&_0x2fc7c3[_0x818248(0x126)]===_0x818248(0xf7))throw CliErrors[_0x818248(0xa9)](_0x818248(0x114)+_0x343e07[_0x818248(0x127)]());throw _0x2fc7c3;}finally{clearTimeout(_0x41b86a);}}async function skillHubJsonRequest(_0x1a5251,_0xc9fc31={}){const _0x39e40b=a76_0x4b54,{method:method=_0x39e40b(0xbd),query:_0x5cc7f8,body:_0x5e7ba,headers:headers={},timeout:timeout=0x7530,allowNotFound:allowNotFound=![]}=_0xc9fc31,_0x5f37df=_activeAK;if(!_0x5f37df)throw CliErrors[_0x39e40b(0xf4)](_0x39e40b(0xa5)+PRODUCT_CONFIG['newConfigFileName']+'.');const _0xec8e24=getSkillHubDomain()[_0x39e40b(0x11f)](/\/$/,''),_0x492d31=new URL(_0x1a5251,_0xec8e24+'/');if(_0x5cc7f8)for(const [_0x4d9cec,_0x3329b4]of Object[_0x39e40b(0xd1)](_0x5cc7f8)){_0x3329b4!==undefined&&_0x3329b4!==null&&_0x492d31[_0x39e40b(0x117)]['set'](_0x4d9cec,String(_0x3329b4));}const _0x52757e=new AbortController(),_0x54e05a=setTimeout(()=>_0x52757e[_0x39e40b(0xff)](),timeout);try{const _0x1affed=await fetch(_0x492d31[_0x39e40b(0x127)](),{'method':method,'headers':{'Accept':_0x39e40b(0x120),'X-Invoke-Source':PRODUCT_CONFIG[_0x39e40b(0x90)],'X-User-AK':_0x5f37df,...headers},'body':_0x5e7ba,'signal':_0x52757e[_0x39e40b(0xd0)]}),_0x393d57=await decodeResponseBody(_0x1affed);if(!_0x393d57['isJson']){if(allowNotFound&&_0x1affed['status']===0x194)return undefined;throwIfRateLimited(_0x1affed,undefined,_0x393d57[_0x39e40b(0xad)]);throw CliErrors['apiError'](_0x39e40b(0x112)+_0x1affed[_0x39e40b(0xf2)]+')',_0x1affed[_0x39e40b(0xf2)]>=0x190?_0x39e40b(0x124):undefined);}const _0x55e246=_0x393d57[_0x39e40b(0xe4)];throwIfRateLimited(_0x1affed,_0x55e246);if(allowNotFound&&isSkillHubNotFoundResponse(_0x1affed[_0x39e40b(0xf2)],_0x55e246))return undefined;const _0x1b1b1f=!_0x1affed['ok']||_0x55e246?.[_0x39e40b(0xe5)]===![]||typeof _0x55e246?.['code']==='number'&&_0x55e246[_0x39e40b(0xc8)]>=0x190;if(_0x1b1b1f)throw CliErrors[_0x39e40b(0xa9)](_0x55e246?.[_0x39e40b(0xd5)]||_0x55e246?.[_0x39e40b(0xda)]||_0x55e246?.[_0x39e40b(0xe1)]||_0x39e40b(0x98)+_0x1affed[_0x39e40b(0xf2)],_0x55e246?.[_0x39e40b(0x91)]?_0x39e40b(0xa3)+_0x55e246['errorCode']:undefined);return _0x55e246?.[_0x39e40b(0xe4)]??_0x55e246;}catch(_0x11402c){if(_0x11402c instanceof Error&&_0x11402c[_0x39e40b(0x126)]===_0x39e40b(0xf7))throw CliErrors[_0x39e40b(0xa9)]('Request\x20timeout:\x20'+_0x492d31[_0x39e40b(0x127)]());throw _0x11402c;}finally{clearTimeout(_0x54e05a);}}function isSkillHubNotFoundResponse(_0x3d2236,_0x105a3b){const _0x57d24b=a76_0x4b54;if(_0x3d2236===0x194||_0x105a3b?.[_0x57d24b(0xc8)]===0x194)return!![];if(_0x3d2236!==0x190&&_0x105a3b?.['code']!==0x190)return![];const _0x46fb57=[_0x105a3b?.[_0x57d24b(0xe1)],_0x105a3b?.[_0x57d24b(0xda)],_0x105a3b?.[_0x57d24b(0xd5)],_0x105a3b?.['error']][_0x57d24b(0xd7)](_0xc083b5=>typeof _0xc083b5===_0x57d24b(0x11e))['join']('\x20');return/skill not found\b/i[_0x57d24b(0xf8)](_0x46fb57);}async function skillHubBinaryRequest(_0xed632,_0x5eaaa8={}){const _0x140112=a76_0x4b54,{query:_0x557c27,headers:headers={},timeout:timeout=0x7530}=_0x5eaaa8,_0x141226=_activeAK;if(!_0x141226)throw CliErrors[_0x140112(0xf4)](_0x140112(0xa5)+PRODUCT_CONFIG[_0x140112(0x119)]+'.');const _0xe49655=getSkillHubDomain()[_0x140112(0x11f)](/\/$/,''),_0x1187a6=new URL(_0xed632,_0xe49655+'/');if(_0x557c27)for(const [_0x2ded1b,_0x24b064]of Object[_0x140112(0xd1)](_0x557c27)){_0x24b064!==undefined&&_0x24b064!==null&&_0x1187a6[_0x140112(0x117)][_0x140112(0x118)](_0x2ded1b,String(_0x24b064));}const _0x24610f=new AbortController(),_0x411655=setTimeout(()=>_0x24610f[_0x140112(0xff)](),timeout);try{const _0x2d01aa=await fetch(_0x1187a6[_0x140112(0x127)](),{'method':_0x140112(0xbd),'headers':{'Accept':'application/octet-stream','X-Invoke-Source':PRODUCT_CONFIG[_0x140112(0x90)],'X-User-AK':_0x141226,...headers},'signal':_0x24610f[_0x140112(0xd0)]});if(!_0x2d01aa['ok']){const _0x33493e=await decodeResponseBody(_0x2d01aa),_0x5ad73b=_0x33493e['data']&&typeof _0x33493e[_0x140112(0xe4)]===_0x140112(0x93)?_0x33493e[_0x140112(0xe4)]:{},_0x2c7a1d=firstString(_0x5ad73b[_0x140112(0xd5)],_0x5ad73b['message'],_0x5ad73b[_0x140112(0xe1)],_0x5ad73b[_0x140112(0x91)],_0x33493e[_0x140112(0xad)]);throwIfRateLimited(_0x2d01aa,_0x33493e['data'],_0x2c7a1d);throw CliErrors[_0x140112(0xa9)](_0x2c7a1d||'SkillHub\x20API\x20error:\x20'+_0x2d01aa[_0x140112(0xf2)],_0x140112(0xb7)+_0x1187a6[_0x140112(0x127)]());}return Buffer['from'](await _0x2d01aa[_0x140112(0xe3)]());}catch(_0x4a337c){if(_0x4a337c instanceof Error&&_0x4a337c['name']===_0x140112(0xf7))throw CliErrors[_0x140112(0xa9)]('Request\x20timeout:\x20'+_0x1187a6[_0x140112(0x127)]());throw _0x4a337c;}finally{clearTimeout(_0x411655);}}export async function getBffEndpointContract(_0x2778f7,_0x4ac713){const _0x24dbae=a76_0x4b54;if(_0x4ac713===_0x24dbae(0x99))throw CliErrors[_0x24dbae(0xbe)]('BFF\x20function\x20not\x20found\x20or\x20inaccessible:\x20appCode='+_0x2778f7+',\x20name='+_0x4ac713);const _0x35139e=await apiRequest('/client/bff/endpoint/'+encodeURIComponent(_0x2778f7)+'/'+encodeURIComponent(_0x4ac713)),_0x2c8168=_0x35139e[_0x24dbae(0xe4)];if(!_0x2c8168||typeof _0x2c8168!==_0x24dbae(0x93)||Array[_0x24dbae(0x92)](_0x2c8168)||_0x2c8168[_0x24dbae(0xfc)]!==_0x2778f7||_0x2c8168[_0x24dbae(0xac)]!==_0x4ac713)throw CliErrors[_0x24dbae(0xbe)](_0x24dbae(0x105)+_0x2778f7+_0x24dbae(0xb5)+_0x4ac713);return{'appCode':_0x2c8168['appCode'],'functionName':_0x2c8168[_0x24dbae(0xac)],'description':_0x2c8168[_0x24dbae(0x11a)],'version':_0x2c8168[_0x24dbae(0x95)],'gmtModified':_0x2c8168[_0x24dbae(0xb6)]};}export async function getSqlQueryInfo(_0x3bdb98,_0x20e6b3){const _0x5e130f=a76_0x4b54,_0x7c0601=await apiRequest(_0x5e130f(0x116),{'method':'POST','body':{'appCode':_0x3bdb98,'currentPage':0x1,'pageSize':0x1,'sqlCode':_0x20e6b3}}),_0x196129=_0x7c0601[_0x5e130f(0xe4)],_0x2db836=_0x196129&&typeof _0x196129==='object'&&_0x5e130f(0xf9)in _0x196129?_0x196129[_0x5e130f(0xf9)]?.[0x0]:_0x196129&&typeof _0x196129==='object'&&_0x5e130f(0xe9)in _0x196129?_0x196129:undefined;if(!_0x2db836)throw CliErrors[_0x5e130f(0xbe)](_0x5e130f(0xe2)+_0x20e6b3);return _0x2db836;}function isRemoteAppItem(_0x562aaa){const _0x16d556=a76_0x4b54;return!!_0x562aaa&&typeof _0x562aaa===_0x16d556(0x93)&&typeof _0x562aaa[_0x16d556(0xfc)]===_0x16d556(0x11e)&&typeof _0x562aaa[_0x16d556(0x121)]==='string';}function extractRemoteAppItems(_0xd772d4){const _0x1c49b8=a76_0x4b54;if(Array[_0x1c49b8(0x92)](_0xd772d4))return _0xd772d4[_0x1c49b8(0xd7)](isRemoteAppItem);if(!_0xd772d4||typeof _0xd772d4!==_0x1c49b8(0x93))throw CliErrors['apiError'](_0x1c49b8(0x10f));const _0x42e9d2=_0xd772d4;if(Array[_0x1c49b8(0x92)](_0x42e9d2['tableData']))return _0x42e9d2['tableData'][_0x1c49b8(0xd7)](isRemoteAppItem);if(_0x42e9d2[_0x1c49b8(0xe4)]&&typeof _0x42e9d2['data']===_0x1c49b8(0x93)){const _0x3fa418=_0x42e9d2[_0x1c49b8(0xe4)];if(Array[_0x1c49b8(0x92)](_0x3fa418[_0x1c49b8(0xf9)]))return _0x3fa418[_0x1c49b8(0xf9)][_0x1c49b8(0xd7)](isRemoteAppItem);}throw CliErrors[_0x1c49b8(0xa9)]('Invalid\x20app\x20list\x20response:\x20missing\x20data.tableData.');}export async function getMyApps(){const _0x324573=await apiRequest('/client/app/my-apps');return extractRemoteAppItems(_0x324573['data']);}export async function getLoginUserInfo(){const _0x23d0c3=a76_0x4b54,_0x4192f0=await apiRequest(_0x23d0c3(0xb1));if(!_0x4192f0[_0x23d0c3(0xe4)]||typeof _0x4192f0[_0x23d0c3(0xe4)]!==_0x23d0c3(0x93)||Array['isArray'](_0x4192f0['data']))throw CliErrors[_0x23d0c3(0xa9)](_0x23d0c3(0x9c));return _0x4192f0[_0x23d0c3(0xe4)];}function runtimeSchedulePath(_0x169ca8,_0x3eb6da=''){return'/api/harness/apps/'+encodeURIComponent(_0x169ca8)+'/schedules'+_0x3eb6da;}export async function validateRuntimeSchedule(_0x22414e,_0xe4a150){const _0x1ae956=a76_0x4b54,_0x303ff7=await apiRequest(runtimeSchedulePath(_0x22414e,_0x1ae956(0x10e)),{'method':_0x1ae956(0x109),'body':_0xe4a150});return _0x303ff7[_0x1ae956(0xe4)];}export async function createRuntimeSchedule(_0x2a4535,_0x373cd6){const _0xec75ca=a76_0x4b54,_0x1beacc=await apiRequest(runtimeSchedulePath(_0x2a4535),{'method':_0xec75ca(0x109),'body':_0x373cd6});return _0x1beacc['data'];}export async function listRuntimeSchedules(_0x589aed,_0x545e7c={}){const _0x641015=a76_0x4b54,_0xc488fd=new URLSearchParams();if(_0x545e7c[_0x641015(0xe0)]!==undefined)_0xc488fd[_0x641015(0x118)](_0x641015(0xe0),String(_0x545e7c['limit']));if(_0x545e7c['cursor'])_0xc488fd[_0x641015(0x118)](_0x641015(0xd3),_0x545e7c['cursor']);const _0x191d7c=_0xc488fd[_0x641015(0xc9)]>0x0?'?'+_0xc488fd[_0x641015(0x127)]():'',_0x1b9adc=await apiRequest(''+runtimeSchedulePath(_0x589aed)+_0x191d7c);return _0x1b9adc[_0x641015(0xe4)];}export async function getRuntimeSchedule(_0x9b214d,_0x4828ce){const _0x1e591c=a76_0x4b54,_0x303917=await apiRequest(runtimeSchedulePath(_0x9b214d,'/'+encodeURIComponent(_0x4828ce)));return _0x303917[_0x1e591c(0xe4)];}export async function deleteRuntimeSchedule(_0xe4164b,_0x432d0f){const _0x278be8=a76_0x4b54,_0x332d9b=await apiRequest(runtimeSchedulePath(_0xe4164b,'/'+encodeURIComponent(_0x432d0f)),{'method':_0x278be8(0xde)});return _0x332d9b[_0x278be8(0xe4)];}export async function runRuntimeSchedule(_0xf4b679,_0x40de88){const _0x2c215f=a76_0x4b54,_0x4d42e1=await apiRequest(runtimeSchedulePath(_0xf4b679,'/'+encodeURIComponent(_0x40de88)+_0x2c215f(0xf0)),{'method':_0x2c215f(0x109)});return _0x4d42e1['data'];}export async function listDatasets(_0x55acc0,_0x4f71a6){const _0x129277=a76_0x4b54,_0x582088=await apiRequest(_0x129277(0x10d),{'method':_0x129277(0x109),'body':{'appCode':_0x55acc0,..._0x4f71a6?.['code']&&{'code':_0x4f71a6[_0x129277(0xc8)]},..._0x4f71a6?.['name']&&{'name':_0x4f71a6[_0x129277(0x126)]}}});return extractList(_0x582088[_0x129277(0xe4)]);}function a76_0x4b54(_0x5e145c,_0x5bd3db){_0x5e145c=_0x5e145c-0x8d;const _0x580997=a76_0x5809();let _0x4b545c=_0x580997[_0x5e145c];return _0x4b545c;}export async function getDatasetDetail(_0x109f52){const _0x4458fe=a76_0x4b54,_0xd6340=await apiRequest('/client/dataset/get-driven-data?code='+encodeURIComponent(_0x109f52));return _0xd6340[_0x4458fe(0xe4)];}export async function getDatasetSdkUsageDoc(_0x3eae8c,_0x3e020f){const _0xa3e3b0=a76_0x4b54,_0x1e9509=await toolboxRequest(_0xa3e3b0(0xf1),{'datasetCode':_0x3eae8c,'appCode':_0x3e020f});return typeof _0x1e9509?.['markdown']===_0xa3e3b0(0x11e)?_0x1e9509['markdown']:'';}export async function uploadRuntimeFile(_0x3fbb5e,_0x8e104c){const _0x506c99=a76_0x4b54,_0x38438b=await readFile(_0x8e104c),_0x14f255=new FormData();_0x14f255['append'](_0x506c99(0xfc),_0x3fbb5e),_0x14f255['append'](_0x506c99(0xa6),new Blob([new Uint8Array(_0x38438b)]),basename(_0x8e104c));const _0x372326=await apiFormRequest(_0x506c99(0xa4),_0x14f255);return _0x372326[_0x506c99(0xe4)];}export async function queryRuntimeFileUrl(_0x4bbcda,_0x410fd8={}){const _0x5651d0=a76_0x4b54,_0x1c7851=await apiRequest(_0x5651d0(0xc5),{'method':_0x5651d0(0x109),'body':{'filePath':_0x4bbcda,'downloadFlag':_0x410fd8[_0x5651d0(0x9b)]??![],..._0x410fd8['longTerm']?{'longTerm':!![]}:{}}});return _0x1c7851[_0x5651d0(0xe4)];}export async function recognizeRuntimeOcr(_0x38697c,_0x42ba04){const _0x4e0f13=a76_0x4b54,_0x5985c6=await apiRequest('/client/ocr',{'method':_0x4e0f13(0x109),'body':{'appCode':_0x38697c,'url':_0x42ba04[_0x4e0f13(0x111)],'type':_0x42ba04[_0x4e0f13(0x110)]}});return _0x5985c6[_0x4e0f13(0xe4)];}export async function getRuntimeAppConfigByKey(_0xba17db,_0x31dcca){const _0xcd0eec=a76_0x4b54,_0xd82c07=new URLSearchParams({'appCode':_0xba17db,'key':_0x31dcca}),_0xb0c23a=await apiRequest(_0xcd0eec(0xbf)+_0xd82c07[_0xcd0eec(0x127)]());if(typeof _0xb0c23a[_0xcd0eec(0xe4)]!=='string')throw CliErrors[_0xcd0eec(0xbe)](_0xcd0eec(0xb8)+_0x31dcca);return _0xb0c23a[_0xcd0eec(0xe4)];}export async function listRuntimeArtifacts(_0xdf7182,_0x263407){const _0x41b7f1=a76_0x4b54,_0x3fb996=new URLSearchParams({'appCode':_0xdf7182});if(_0x263407?.[_0x41b7f1(0xaa)])_0x3fb996[_0x41b7f1(0x118)](_0x41b7f1(0xaa),_0x263407['artifactType']);if(_0x263407?.[_0x41b7f1(0x100)])_0x3fb996['set'](_0x41b7f1(0x100),_0x263407[_0x41b7f1(0x100)]);if(_0x263407?.[_0x41b7f1(0xb4)]!==undefined)_0x3fb996['set'](_0x41b7f1(0xb4),String(_0x263407['favorite']));const _0x5c03de=await apiRequest('/client/artifact/list?'+_0x3fb996['toString']());return Array[_0x41b7f1(0x92)](_0x5c03de['data'])?_0x5c03de[_0x41b7f1(0xe4)]:[];}export async function getRuntimeArtifact(_0x7292b,_0x47aa37){const _0x3673f9=a76_0x4b54,_0xf5b40e=await apiRequest('/client/artifact/'+_0x7292b+'?appCode='+encodeURIComponent(_0x47aa37));if(!_0xf5b40e['data'])throw CliErrors[_0x3673f9(0xbe)](_0x3673f9(0x108)+_0x7292b);return _0xf5b40e[_0x3673f9(0xe4)];}export async function createRuntimeArtifact(_0x44fb1c,_0x21e571){const _0x427c6a=a76_0x4b54,_0x5af240=await apiRequest(_0x427c6a(0xdd),{'method':_0x427c6a(0x109),'body':{'appCode':_0x44fb1c,..._0x21e571}});return _0x5af240[_0x427c6a(0xe4)];}export async function updateRuntimeArtifact(_0x58d3b0,_0x3eb75b,_0xc38a16){const _0x5b1376=a76_0x4b54,_0x302d27=await apiRequest(_0x5b1376(0x104)+_0x58d3b0+_0x5b1376(0x94),{'method':'POST','body':{'appCode':_0x3eb75b,..._0xc38a16}});return _0x302d27[_0x5b1376(0xe4)];}export async function listPersonalBffs(_0xa80f66){const _0x3afe8c=a76_0x4b54,_0x1d9ac8=await apiRequest(_0x3afe8c(0xdc)+encodeURIComponent(_0xa80f66));return Array[_0x3afe8c(0x92)](_0x1d9ac8[_0x3afe8c(0xe4)])?_0x1d9ac8[_0x3afe8c(0xe4)]:[];}export async function getPersonalBff(_0x128e5d,_0x1ef4e7){const _0x5bd147=a76_0x4b54,_0x54b5a6=await apiRequest(_0x5bd147(0x102)+_0x128e5d+_0x5bd147(0xb0)+encodeURIComponent(_0x1ef4e7));if(!_0x54b5a6[_0x5bd147(0xe4)])throw CliErrors[_0x5bd147(0xbe)](_0x5bd147(0xb2)+_0x128e5d);return _0x54b5a6['data'];}export async function createPersonalBff(_0x33eeee,_0x236fa3){const _0x34899b=a76_0x4b54,_0x2042a8=await apiRequest(_0x34899b(0x11c),{'method':_0x34899b(0x109),'body':{'appCode':_0x33eeee,..._0x236fa3}});return _0x2042a8[_0x34899b(0xe4)];}export async function updatePersonalBff(_0x59adef,_0x2487a5,_0x6690e0){const _0x4d6f03=a76_0x4b54,_0x22dbe7=await apiRequest(_0x4d6f03(0x102)+_0x59adef+'/update',{'method':_0x4d6f03(0x109),'body':{'appCode':_0x2487a5,..._0x6690e0}});return _0x22dbe7[_0x4d6f03(0xe4)];}export async function executePersonalBff(_0x274c9b,_0x4d627f,_0x58d1e6){const _0x34a4d4=a76_0x4b54,_0x462694=await apiRequest(_0x34a4d4(0x102)+_0x274c9b+_0x34a4d4(0x9a)+encodeURIComponent(_0x4d627f),{'method':_0x34a4d4(0x109),'body':_0x58d1e6});return _0x462694['data'];}export async function listPersonalKnowledgeBaseItems(_0x4c8451){const _0x26a9db=a76_0x4b54,_0x1bfba7=await apiRequest(_0x26a9db(0xc0)+encodeURIComponent(_0x4c8451));return Array[_0x26a9db(0x92)](_0x1bfba7['data'])?_0x1bfba7['data']:[];}export async function getPersonalKnowledgeBaseItem(_0x57cb98,_0x5e2612){const _0x3f745c=a76_0x4b54,_0x5d3ba9=await apiRequest(_0x3f745c(0xed)+_0x57cb98+_0x3f745c(0xb0)+encodeURIComponent(_0x5e2612));if(!_0x5d3ba9[_0x3f745c(0xe4)])throw CliErrors['validation'](_0x3f745c(0x8d)+_0x57cb98);return _0x5d3ba9[_0x3f745c(0xe4)];}export async function createPersonalKnowledgeBaseItem(_0x486269,_0x1e7864){const _0x5ec3a6=a76_0x4b54,_0x487e36=await apiRequest(_0x5ec3a6(0x123),{'method':_0x5ec3a6(0x109),'body':{'appCode':_0x486269,..._0x1e7864}});return _0x487e36[_0x5ec3a6(0xe4)];}export async function updatePersonalKnowledgeBaseItem(_0x4a3eac,_0x43e530,_0x5617a8){const _0x3a79f6=a76_0x4b54,_0x4c6723=await apiRequest(_0x3a79f6(0xed)+_0x4a3eac+_0x3a79f6(0x94),{'method':'POST','body':{'appCode':_0x43e530,..._0x5617a8}});return _0x4c6723['data'];}export async function searchKnowledgeBase(_0xff27cd,_0x549c0f){const _0x29dbaf=a76_0x4b54,_0x43b25e=await apiRequest(_0x29dbaf(0x11d),{'method':'POST','body':{'appCode':_0xff27cd,'query':_0x549c0f['query'],..._0x549c0f['topK']!==undefined?{'topK':_0x549c0f[_0x29dbaf(0xc1)]}:{}}});return Array[_0x29dbaf(0x92)](_0x43b25e['data'])?_0x43b25e[_0x29dbaf(0xe4)]:[];}export async function getRuntimeSkillByCode(_0x3fda2b,_0x50123b){const _0x12951=a76_0x4b54,_0xf8819c=await skillHubJsonRequest(_0x12951(0xcf)+encodeURIComponent(_0x3fda2b)+'/'+encodeURIComponent(_0x50123b),{'allowNotFound':!![]});return _0xf8819c?skillHubRuntimeDetailToRuntimeSkill(_0xf8819c):undefined;}export async function listRuntimeSkills(_0x1da2c5){const _0x2c0233=a76_0x4b54,_0x59705d=await skillHubJsonRequest(_0x2c0233(0xd2)+encodeURIComponent(_0x1da2c5[_0x2c0233(0xfc)])+_0x2c0233(0xd8),{'query':{'page':0x0,'size':0xc8}});return normalizeSkillHubRuntimeListResponse(_0x1da2c5[_0x2c0233(0xfc)],_0x59705d,_0x1da2c5[_0x2c0233(0x125)]??_0x2c0233(0xea),_0x1da2c5[_0x2c0233(0xc8)]);}export async function listPersonalRuntimeSkills(_0x5d3a6c){const _0x371347=a76_0x4b54;return(await listRuntimeSkills({'appCode':_0x5d3a6c,'scope':_0x371347(0xae)}))[_0x371347(0xae)];}export async function listCompanyRuntimeSkills(_0x42e4fc){const _0x5513ff=a76_0x4b54;return(await listRuntimeSkills({'appCode':_0x42e4fc,'scope':'company'}))[_0x5513ff(0xf6)];}export async function listVisibleRuntimeSkills(_0x505852){const _0x23e885=a76_0x4b54;return(await listRuntimeSkills({'appCode':_0x505852,'scope':_0x23e885(0xea)}))[_0x23e885(0xc7)];}export async function createPersonalRuntimeSkill(_0x3583b8,_0x428911,_0x52ab73={}){return publishRuntimeSkill(_0x3583b8,_0x428911,{'visibility':'PRIVATE','confirmWarnings':_0x52ab73['confirmWarnings']});}export async function updatePersonalRuntimeSkill(_0xb2ddb0,_0x288a3f,_0x3330b8,_0x13fc28={}){const _0x4a4b51=a76_0x4b54;return publishRuntimeSkill(_0x288a3f,{..._0x3330b8,'skillCode':_0x3330b8[_0x4a4b51(0xbc)]??_0xb2ddb0},{'visibility':_0x4a4b51(0xd4),'confirmWarnings':_0x13fc28[_0x4a4b51(0x122)]});}export async function publishCompanyRuntimeSkill(_0x3b4763,_0x1b5d65,_0xe727d2={}){const _0x4b297b=a76_0x4b54;return publishRuntimeSkill(_0x3b4763,_0x1b5d65,{'visibility':_0x4b297b(0xcc),'confirmWarnings':_0xe727d2[_0x4b297b(0x122)]});}export async function validateRuntimeSkillPublish(_0x2cb3ba,_0xe4270b,_0x152fc0){const _0xb8060c=a76_0x4b54,_0x17d73a=buildRuntimeSkillPublishForm(_0xe4270b,_0x152fc0[_0xb8060c(0xab)]),_0x1c2696=await skillHubJsonRequest(_0xb8060c(0xba)+encodeURIComponent(_0x2cb3ba)+'/publish/validate',{'method':'POST','body':_0x17d73a});return{'valid':_0x1c2696['valid']===!![],'errors':Array['isArray'](_0x1c2696['errors'])?_0x1c2696[_0xb8060c(0xe6)]:[],'warnings':Array[_0xb8060c(0x92)](_0x1c2696['warnings'])?_0x1c2696['warnings']:[],'resolvedSlug':_0x1c2696[_0xb8060c(0xee)],'resolvedVersion':_0x1c2696[_0xb8060c(0xcb)]};}export async function downloadRuntimeSkillPackage(_0x3f5a86,_0xde9e78,_0x1ebc6e,_0xef28c3){const _0x5d6b5a=a76_0x4b54;void _0x3f5a86;const _0x3776f6=_0xef28c3?_0x5d6b5a(0xba)+encodeURIComponent(_0x1ebc6e)+'/'+encodeURIComponent(_0xde9e78)+_0x5d6b5a(0x10c)+encodeURIComponent(_0xef28c3)+_0x5d6b5a(0xb9):_0x5d6b5a(0xba)+encodeURIComponent(_0x1ebc6e)+'/'+encodeURIComponent(_0xde9e78)+_0x5d6b5a(0xb9);return skillHubBinaryRequest(_0x3776f6);}async function publishRuntimeSkill(_0x9f2ba,_0x5cd841,_0x162287){const _0x52fddc=a76_0x4b54,_0x2e3648=buildRuntimeSkillPublishForm(_0x5cd841,_0x162287['visibility']),_0x87cc32=await skillHubJsonRequest(_0x52fddc(0xba)+encodeURIComponent(_0x9f2ba)+_0x52fddc(0x8f),{'method':_0x52fddc(0x109),'query':{'confirmWarnings':_0x162287[_0x52fddc(0x122)]===!![]?!![]:undefined},'body':_0x2e3648});return{'appCode':_0x87cc32[_0x52fddc(0xd9)]??_0x9f2ba,'skillCode':_0x87cc32[_0x52fddc(0xa7)]??_0x5cd841['skillCode']??'','skillName':_0x5cd841[_0x52fddc(0xa8)]??_0x87cc32[_0x52fddc(0xa7)]??_0x5cd841['skillCode'],'description':_0x5cd841['description'],'scope':skillHubVisibilityToScope(_0x87cc32[_0x52fddc(0xab)]??_0x162287[_0x52fddc(0xab)])??_0x52fddc(0xae),'version':_0x87cc32['version']??_0x5cd841[_0x52fddc(0x95)],'tags':_0x5cd841[_0x52fddc(0xce)],'content':_0x5cd841[_0x52fddc(0xfb)]};}function buildRuntimeSkillPublishForm(_0x36a796,_0x4d1967){const _0x8c6fee=a76_0x4b54,_0x554c09=new FormData();return _0x554c09[_0x8c6fee(0x118)](_0x8c6fee(0xa6),runtimeSkillPackageFile(_0x36a796)),_0x36a796['skillName']?.[_0x8c6fee(0xa0)]()&&_0x554c09['set'](_0x8c6fee(0xc4),_0x36a796[_0x8c6fee(0xa8)][_0x8c6fee(0xa0)]()),_0x554c09[_0x8c6fee(0x118)]('visibility',_0x4d1967),_0x554c09;}function runtimeSkillPackageFile(_0x4c42fa){const _0x137235=a76_0x4b54;if(!_0x4c42fa[_0x137235(0xdb)])throw CliErrors[_0x137235(0xbe)]('Missing\x20Skill\x20package\x20payload.');const _0x36b819=Buffer[_0x137235(0xbb)](_0x4c42fa[_0x137235(0xdb)],'base64'),_0x149180=new Blob([_0x36b819],{'type':_0x137235(0xef)}),_0x390eb5=(_0x4c42fa['skillCode']||_0x137235(0x101))+'.zip';if(typeof File!==_0x137235(0xa2))return new File([_0x149180],_0x390eb5,{'type':_0x137235(0xef)});return _0x149180;}function normalizeSkillHubRuntimeListResponse(_0x211cf5,_0x49cc10,_0xb271b6,_0x24079a){const _0xc23975=a76_0x4b54,_0x41be7b=Array[_0xc23975(0x92)](_0x49cc10)?_0x49cc10:Array[_0xc23975(0x92)](_0x49cc10?.['items'])?_0x49cc10[_0xc23975(0x96)]:[],_0x37d767=_0x24079a?.['trim'](),_0x2cb8f6=_0x41be7b['filter'](_0x38790d=>!_0x37d767||_0x38790d[_0xc23975(0xa7)]===_0x37d767)[_0xc23975(0xf3)](skillHubRuntimeItemToRuntimeSkill)[_0xc23975(0xd7)](_0x598818=>Boolean(_0x598818)),_0x40ea07=_0x2cb8f6[_0xc23975(0xd7)](_0x39980f=>_0x39980f[_0xc23975(0x125)]==='personal'),_0x2a4ab9=_0x2cb8f6[_0xc23975(0xd7)](_0x315587=>_0x315587[_0xc23975(0x125)]===_0xc23975(0xf6));return{'appCode':_0x211cf5,'personal':_0xb271b6===_0xc23975(0xf6)?[]:_0x40ea07,'company':_0xb271b6==='personal'?[]:_0x2a4ab9,'effective':buildEffectiveRuntimeSkills(_0x40ea07,_0x2a4ab9,_0xb271b6)};}function skillHubRuntimeItemToRuntimeSkill(_0x426bbd){const _0x547e50=a76_0x4b54,_0x11b746=_0x426bbd[_0x547e50(0xa7)]?.['trim'](),_0x7ad631=skillHubVisibilityToScope(_0x426bbd[_0x547e50(0xab)]);if(!_0x11b746||!_0x7ad631)return undefined;return{'id':_0x426bbd['id'],'appCode':_0x426bbd[_0x547e50(0xd9)],'skillCode':_0x11b746,'skillName':_0x426bbd[_0x547e50(0xc4)]??_0x11b746,'description':_0x426bbd[_0x547e50(0xfa)],'scope':_0x7ad631,'version':skillHubRuntimeItemVersion(_0x426bbd),'status':_0x426bbd['status']};}function skillHubRuntimeDetailToRuntimeSkill(_0xdac3d2){const _0x2a5b96=a76_0x4b54,_0x56c68b=_0xdac3d2['slug']?.['trim']();if(!_0x56c68b)return undefined;return{'id':_0xdac3d2['id'],'appCode':_0xdac3d2['namespace'],'skillCode':_0x56c68b,'skillName':_0xdac3d2[_0x2a5b96(0xc4)]??_0x56c68b,'description':_0xdac3d2[_0x2a5b96(0xfa)],'example':_0xdac3d2['example'],'scope':skillHubVisibilityToScope(_0xdac3d2[_0x2a5b96(0xab)])??_0xdac3d2[_0x2a5b96(0xab)]?.[_0x2a5b96(0xc3)](),'version':skillHubRuntimeItemVersion(_0xdac3d2),'status':_0xdac3d2['status']};}function skillHubVisibilityToScope(_0xb07b70){const _0x53f88e=a76_0x4b54;if(_0xb07b70===_0x53f88e(0xd4))return _0x53f88e(0xae);if(_0xb07b70===_0x53f88e(0xcc))return _0x53f88e(0xf6);return undefined;}function skillHubRuntimeItemVersion(_0xfb0af0){const _0x2e4f4b=a76_0x4b54;return _0xfb0af0[_0x2e4f4b(0xeb)]?.['version']??_0xfb0af0[_0x2e4f4b(0x113)]?.['version']??_0xfb0af0['ownerPreviewVersion']?.[_0x2e4f4b(0x95)];}function buildEffectiveRuntimeSkills(_0x2533f3,_0x34bc59,_0x503c4c){const _0x540459=a76_0x4b54;if(_0x503c4c===_0x540459(0xae))return _0x2533f3;if(_0x503c4c===_0x540459(0xf6))return _0x34bc59;const _0x1afe94=new Map();for(const _0x493791 of _0x34bc59){_0x1afe94[_0x540459(0x118)](_0x493791[_0x540459(0xbc)],_0x493791);}for(const _0x560d45 of _0x2533f3){_0x1afe94[_0x540459(0x118)](_0x560d45['skillCode'],_0x560d45);}return Array[_0x540459(0xbb)](_0x1afe94[_0x540459(0xd6)]());}function normalizeRuntimeSkillListResponse(_0x4938ee,_0x3a303f){const _0xf25109=a76_0x4b54;if(Array[_0xf25109(0x92)](_0x3a303f)){const _0x40acc=_0x3a303f[_0xf25109(0xd7)](_0x567339=>_0x567339[_0xf25109(0x125)]==='personal'),_0x2125d4=_0x3a303f[_0xf25109(0xd7)](_0x43e6f2=>_0x43e6f2[_0xf25109(0x125)]===_0xf25109(0xf6));return{'appCode':_0x4938ee,'personal':_0x40acc,'company':_0x2125d4,'effective':[..._0x2125d4,..._0x40acc]};}return{'appCode':_0x3a303f?.['appCode']??_0x4938ee,'personal':Array[_0xf25109(0x92)](_0x3a303f?.[_0xf25109(0xae)])?_0x3a303f[_0xf25109(0xae)]:[],'company':Array[_0xf25109(0x92)](_0x3a303f?.['company'])?_0x3a303f[_0xf25109(0xf6)]:[],'effective':Array['isArray'](_0x3a303f?.['effective'])?_0x3a303f['effective']:[]};}
1
+ (function(_0x4e7e3b,_0x41016c){const _0x39d45e=a76_0x348a,_0x5e25aa=_0x4e7e3b();while(!![]){try{const _0x946e99=parseInt(_0x39d45e(0xb3))/0x1+parseInt(_0x39d45e(0xf2))/0x2+-parseInt(_0x39d45e(0x127))/0x3*(parseInt(_0x39d45e(0xcc))/0x4)+-parseInt(_0x39d45e(0x118))/0x5*(-parseInt(_0x39d45e(0x14b))/0x6)+parseInt(_0x39d45e(0xcf))/0x7+-parseInt(_0x39d45e(0x101))/0x8*(parseInt(_0x39d45e(0x12d))/0x9)+parseInt(_0x39d45e(0x125))/0xa*(parseInt(_0x39d45e(0xcb))/0xb);if(_0x946e99===_0x41016c)break;else _0x5e25aa['push'](_0x5e25aa['shift']());}catch(_0x164b8f){_0x5e25aa['push'](_0x5e25aa['shift']());}}}(a76_0x1c5e,0xf3cfa));import{readFile}from'node:fs/promises';import{basename}from'node:path';function a76_0x1c5e(){const _0x21a97c=['?appCode=','url','scope','/api/cli/v1/skills/',',\x20name=','Request\x20timeout:\x20','6orSMMc','download','gmtModified','abort','status','805356qMgBBx','Configure\x20accessKey\x20in\x20','json','/run','topK','API\x20returned\x20non-JSON\x20response\x20(HTTP\x20','application/octet-stream','/client/sql/query','example','authRequired','isJson','NAMESPACE_ONLY','description','toString','Toolbox\x20returned\x20non-JSON\x20response\x20(HTTP\x20','skillName','Personal\x20BFF\x20not\x20found:\x20id=','warnings','/schedules','API\x20error\x20code:\x20','all','apiError','packageBase64','test','22ihggcP','4DwlLJW','/client/runtime-bff/personal/create','favorite','12031922caRYsw','PRIVATE','file','Toolbox\x20API\x20error','/versions/','trim','stringify','searchParams','/client/app/my-apps','string','resolvedSlug','tags','/client/queryFileUrl','/publish','summary','/client/artifact/','content','GET','Knowledge-base\x20entry\x20not\x20found:\x20id=','/update','valid','query','personal','visibility','appName','object','Invalid\x20app\x20list\x20response:\x20expected\x20object\x20or\x20array.','data','invokeSource','effective','BFF\x20function\x20not\x20found\x20or\x20inaccessible:\x20appCode=','ownerPreviewVersion','text','skillCode','values','1648742ablQCb','success','/validate','/client/dataset/list','longTerm','type','Toolbox\x20API\x20error:\x20','/download','markdown','application/json','function','signal','Toolbox\x20error\x20code:\x20','/client/ocr','cursor','14529320OQMteQ','replace','arrayBuffer','/client/runtime-bff/personal/list?appCode=','set','boolean','/api/runtime/v1/namespaces/','company','/client/knowledge-base/personal/','skill','Check\x20your\x20credentials\x20and\x20try\x20again.','/client/dataset/get-driven-data?code=','AbortError','/client/artifact/list?','artifactType','isArray','Invalid\x20app\x20config\x20value:\x20key=','SkillHub\x20error\x20code:\x20','version','/client/knowledge-base/personal/create','API\x20error:\x20','/client/bff/endpoint/','/api/v1/skills/','1615430LUcZtD','/execute?appCode=','tableData','SkillHub\x20API\x20error:\x20','displayName','confirmWarnings','name','/client/uploadFile','SQL\x20query\x20not\x20found:\x20','errors','msg','POST','validation','911110VvJujs','/client/user/loginUserInfo','3117198rdKyZN','/api/node-toolbox/','errorMsg','Invalid\x20app\x20list\x20response:\x20missing\x20data.tableData.','Artifact\x20not\x20found:\x20id=','resolvedVersion','9OiPmJm','limit','SkillHub\x20returned\x20non-JSON\x20response\x20(HTTP\x20','/client/runtime-bff/personal/','application/zip','source','code','errorCode','from','entries','slug','error','items','base64','append','filter','message','namespace','size','appCode','Download\x20failed:\x20','find','newConfigFileName','functionName'];a76_0x1c5e=function(){return _0x21a97c;};return a76_0x1c5e();}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(_0x32f37e){_activeAK=_0x32f37e||undefined;}export function clearActiveAK(){_activeAK=undefined;}function firstString(..._0x34b914){const _0x2ea6a7=a76_0x348a;for(const _0x215902 of _0x34b914){if(typeof _0x215902==='string'&&_0x215902[_0x2ea6a7(0xd4)]())return _0x215902['trim']();}return undefined;}async function decodeResponseBody(_0x45ea53){const _0x543c50=a76_0x348a;if(typeof _0x45ea53[_0x543c50(0xef)]===_0x543c50(0xfc))try{const _0x12c8f4=await _0x45ea53[_0x543c50(0xef)]();try{return{'isJson':!![],'data':parseLosslessJson(_0x12c8f4),'text':_0x12c8f4};}catch{return{'isJson':![],'text':_0x12c8f4[_0x543c50(0xd4)]()||undefined};}}catch{}try{return{'isJson':!![],'data':await _0x45ea53[_0x543c50(0xb5)]()};}catch{return{'isJson':![]};}}function throwIfRateLimited(_0x3a60f3,_0x18d813,_0x54514a){const _0x31146c=a76_0x348a,_0x495360=_0x18d813&&typeof _0x18d813==='object'?_0x18d813:{},_0x2903d7=[_0x495360[_0x31146c(0x14f)],_0x495360[_0x31146c(0x133)]][_0x31146c(0x142)](_0x264514=>Number(_0x264514)===0x1ad),_0x174cef=createRateLimitError({'status':_0x3a60f3[_0x31146c(0x14f)]===0x1ad?_0x3a60f3[_0x31146c(0x14f)]:_0x2903d7??_0x3a60f3['status'],'errorCode':firstString(_0x495360['errorCode'],typeof _0x495360['code']===_0x31146c(0xd8)?_0x495360['code']:undefined),'message':firstString(_0x495360[_0x31146c(0x129)],_0x495360[_0x31146c(0x13d)],_0x495360[_0x31146c(0x122)],_0x54514a),'retryAfter':readRetryAfter(_0x3a60f3['headers'])??readRetryAfterSeconds(_0x18d813)});if(_0x174cef)throw _0x174cef;}async function apiRequest(_0x192f21,_0x3bd26f={}){const _0x167c3d=a76_0x348a,{method:method=_0x167c3d(0xe0),body:_0x1203de,headers:headers={},timeout:timeout=0x7530}=_0x3bd26f,_0x427208=_activeAK,_0x127530=getRuntimeDomain();if(!_0x427208)throw CliErrors[_0x167c3d(0xbc)](_0x167c3d(0xb4)+PRODUCT_CONFIG['newConfigFileName']+'.');const _0x16cbb4=''+_0x127530+_0x192f21,_0x9b50d1={'X-User-AK':_0x427208},_0xd43ac6=new AbortController(),_0x3c5296=setTimeout(()=>_0xd43ac6[_0x167c3d(0x14e)](),timeout);try{const _0x2e6797=await fetch(_0x16cbb4,{'method':method,'headers':{'Content-Type':'application/json','X-Invoke-Source':PRODUCT_CONFIG['invokeSource'],..._0x9b50d1,...headers},'body':_0x1203de?JSON[_0x167c3d(0xd5)](_0x1203de):undefined,'signal':_0xd43ac6[_0x167c3d(0xfd)]}),_0x5b5200=await decodeResponseBody(_0x2e6797);if(!_0x5b5200['isJson']){throwIfRateLimited(_0x2e6797,undefined,_0x5b5200[_0x167c3d(0xef)]);throw CliErrors[_0x167c3d(0xc8)]('API\x20returned\x20non-JSON\x20response\x20(HTTP\x20'+_0x2e6797[_0x167c3d(0x14f)]+')',_0x2e6797[_0x167c3d(0x14f)]>=0x190?'Check\x20your\x20credentials\x20and\x20try\x20again.':undefined);}const _0x34870d=_0x5b5200['data'];throwIfRateLimited(_0x2e6797,_0x34870d);if(!_0x2e6797['ok']||_0x34870d[_0x167c3d(0xf3)]===![])throw CliErrors['apiError'](_0x34870d[_0x167c3d(0x129)]||_0x34870d[_0x167c3d(0x13d)]||_0x167c3d(0x115)+_0x2e6797['status'],_0x34870d[_0x167c3d(0x134)]?_0x167c3d(0xc6)+_0x34870d[_0x167c3d(0x134)]:undefined);return _0x34870d;}catch(_0x44005d){if(_0x44005d instanceof Error&&_0x44005d[_0x167c3d(0x11e)]==='AbortError')throw CliErrors[_0x167c3d(0xc8)]('Request\x20timeout:\x20'+_0x16cbb4);throw _0x44005d;}finally{clearTimeout(_0x3c5296);}}async function apiBinaryRequest(_0x4bcb9d,_0x312268={}){const _0x1ac044=a76_0x348a,{method:method=_0x1ac044(0xe0),headers:headers={},timeout:timeout=0x7530}=_0x312268,_0x3235e3=_activeAK,_0x2cc7dd=getRuntimeDomain();if(!_0x3235e3)throw CliErrors[_0x1ac044(0xbc)](_0x1ac044(0xb4)+PRODUCT_CONFIG[_0x1ac044(0x143)]+'.');const _0x531028=''+_0x2cc7dd+_0x4bcb9d,_0x38003d=new AbortController(),_0x1cec00=setTimeout(()=>_0x38003d[_0x1ac044(0x14e)](),timeout);try{const _0x265be6=await fetch(_0x531028,{'method':method,'headers':{'X-Invoke-Source':PRODUCT_CONFIG[_0x1ac044(0xeb)],'X-User-AK':_0x3235e3,...headers},'signal':_0x38003d[_0x1ac044(0xfd)]});if(!_0x265be6['ok']){const _0x2aa605=await decodeResponseBody(_0x265be6),_0x3ec31c=_0x2aa605[_0x1ac044(0xea)]&&typeof _0x2aa605[_0x1ac044(0xea)]===_0x1ac044(0xe8)?_0x2aa605[_0x1ac044(0xea)]:{},_0x4bb853=firstString(_0x3ec31c['errorMsg'],_0x3ec31c[_0x1ac044(0x13d)],_0x3ec31c[_0x1ac044(0x134)],_0x2aa605[_0x1ac044(0xef)]);throwIfRateLimited(_0x265be6,_0x2aa605['data'],_0x4bb853);throw CliErrors['apiError'](_0x4bb853||_0x1ac044(0x115)+_0x265be6['status'],_0x1ac044(0x141)+_0x531028);}return Buffer[_0x1ac044(0x135)](await _0x265be6[_0x1ac044(0x103)]());}catch(_0x3d96fb){if(_0x3d96fb instanceof Error&&_0x3d96fb[_0x1ac044(0x11e)]===_0x1ac044(0x10d))throw CliErrors[_0x1ac044(0xc8)]('Request\x20timeout:\x20'+_0x531028);throw _0x3d96fb;}finally{clearTimeout(_0x1cec00);}}async function apiFormRequest(_0x12c646,_0x15997e,_0xbdbb7a={}){const _0x23f683=a76_0x348a,{timeout:timeout=0x7530}=_0xbdbb7a,_0x3b0d23=_activeAK,_0x2779c3=getRuntimeDomain();if(!_0x3b0d23)throw CliErrors['authRequired'](_0x23f683(0xb4)+PRODUCT_CONFIG[_0x23f683(0x143)]+'.');const _0x405c96=''+_0x2779c3+_0x12c646,_0x3aab82=new AbortController(),_0x270057=setTimeout(()=>_0x3aab82[_0x23f683(0x14e)](),timeout);try{const _0x42547f=await fetch(_0x405c96,{'method':_0x23f683(0x123),'headers':{'X-Invoke-Source':PRODUCT_CONFIG['invokeSource'],'X-User-AK':_0x3b0d23},'body':_0x15997e,'signal':_0x3aab82['signal']}),_0x580e98=await decodeResponseBody(_0x42547f);if(!_0x580e98['isJson']){throwIfRateLimited(_0x42547f,undefined,_0x580e98['text']);throw CliErrors['apiError'](_0x23f683(0xb8)+_0x42547f['status']+')',_0x42547f['status']>=0x190?_0x23f683(0x10b):undefined);}const _0x598a32=_0x580e98['data'];throwIfRateLimited(_0x42547f,_0x598a32);if(!_0x42547f['ok']||_0x598a32[_0x23f683(0xf3)]===![])throw CliErrors[_0x23f683(0xc8)](_0x598a32[_0x23f683(0x129)]||_0x598a32[_0x23f683(0x13d)]||_0x23f683(0x115)+_0x42547f[_0x23f683(0x14f)],_0x598a32[_0x23f683(0x134)]?_0x23f683(0xc6)+_0x598a32[_0x23f683(0x134)]:undefined);return _0x598a32;}catch(_0x5bb074){if(_0x5bb074 instanceof Error&&_0x5bb074[_0x23f683(0x11e)]===_0x23f683(0x10d))throw CliErrors[_0x23f683(0xc8)](_0x23f683(0x14a)+_0x405c96);throw _0x5bb074;}finally{clearTimeout(_0x270057);}}async function toolboxRequest(_0x4a899e,_0x376f8e,_0x6028f3={}){const _0x562b13=a76_0x348a,{method:method=_0x562b13(0xe0),headers:headers={},timeout:timeout=0x7530}=_0x6028f3,_0x29c462=_activeAK;if(!_0x29c462)throw CliErrors[_0x562b13(0xbc)](_0x562b13(0xb4)+PRODUCT_CONFIG[_0x562b13(0x143)]+'.');const _0x23dc21=getApiDomain()[_0x562b13(0x102)](/\/$/,''),_0x20670a=new URL(_0x4a899e,_0x23dc21+_0x562b13(0x128));if(_0x376f8e)for(const [_0x5047f6,_0xf7a627]of Object[_0x562b13(0x136)](_0x376f8e)){_0xf7a627!==undefined&&_0xf7a627!==null&&_0x20670a[_0x562b13(0xd6)][_0x562b13(0x105)](_0x5047f6,String(_0xf7a627));}const _0x33b4de=new AbortController(),_0x24bdb8=setTimeout(()=>_0x33b4de[_0x562b13(0x14e)](),timeout);try{const _0x122bf4=await fetch(_0x20670a,{'method':method,'headers':{'Content-Type':'application/json','X-Invoke-Source':PRODUCT_CONFIG[_0x562b13(0xeb)],'X-User-AK':_0x29c462,...headers},'signal':_0x33b4de[_0x562b13(0xfd)]}),_0x77299f=await decodeResponseBody(_0x122bf4);if(!_0x77299f['isJson']){throwIfRateLimited(_0x122bf4,undefined,_0x77299f[_0x562b13(0xef)]);throw CliErrors[_0x562b13(0xc8)](_0x562b13(0xc1)+_0x122bf4['status']+')',_0x122bf4['status']>=0x190?_0x562b13(0x10b):undefined);}const _0x4360ea=_0x77299f[_0x562b13(0xea)];throwIfRateLimited(_0x122bf4,_0x4360ea);if(!_0x122bf4['ok']){const _0x15f90f=_0x4360ea&&typeof _0x4360ea==='object'?_0x4360ea:{};throw CliErrors[_0x562b13(0xc8)](_0x15f90f[_0x562b13(0x129)]||_0x15f90f[_0x562b13(0x13d)]||_0x562b13(0xf8)+_0x122bf4[_0x562b13(0x14f)],_0x15f90f[_0x562b13(0x134)]?_0x562b13(0xfe)+_0x15f90f[_0x562b13(0x134)]:undefined);}if(_0x4360ea&&typeof _0x4360ea===_0x562b13(0xe8)&&_0x562b13(0xf3)in _0x4360ea&&typeof _0x4360ea[_0x562b13(0xf3)]===_0x562b13(0x106)){const _0x46b946=_0x4360ea;if(!_0x46b946['success'])throw CliErrors[_0x562b13(0xc8)](_0x46b946['errorMsg']||_0x46b946[_0x562b13(0x13d)]||_0x562b13(0xd2),_0x46b946['errorCode']?'Toolbox\x20error\x20code:\x20'+_0x46b946['errorCode']:undefined);return _0x46b946['data'];}return _0x4360ea;}catch(_0x139e35){if(_0x139e35 instanceof Error&&_0x139e35[_0x562b13(0x11e)]==='AbortError')throw CliErrors[_0x562b13(0xc8)](_0x562b13(0x14a)+_0x20670a[_0x562b13(0xc0)]());throw _0x139e35;}finally{clearTimeout(_0x24bdb8);}}async function skillHubJsonRequest(_0x95f971,_0x16318e={}){const _0x332bb6=a76_0x348a,{method:method=_0x332bb6(0xe0),query:_0xaa663e,body:_0x3f89a6,headers:headers={},timeout:timeout=0x7530,allowNotFound:allowNotFound=![]}=_0x16318e,_0x267754=_activeAK;if(!_0x267754)throw CliErrors['authRequired'](_0x332bb6(0xb4)+PRODUCT_CONFIG[_0x332bb6(0x143)]+'.');const _0x5d7c77=getSkillHubDomain()[_0x332bb6(0x102)](/\/$/,''),_0x340d0d=new URL(_0x95f971,_0x5d7c77+'/');if(_0xaa663e)for(const [_0xc28e17,_0x108b64]of Object[_0x332bb6(0x136)](_0xaa663e)){_0x108b64!==undefined&&_0x108b64!==null&&_0x340d0d[_0x332bb6(0xd6)][_0x332bb6(0x105)](_0xc28e17,String(_0x108b64));}const _0x2c3989=new AbortController(),_0x38f53a=setTimeout(()=>_0x2c3989[_0x332bb6(0x14e)](),timeout);try{const _0x5ab75b=await fetch(_0x340d0d[_0x332bb6(0xc0)](),{'method':method,'headers':{'Accept':_0x332bb6(0xfb),'X-Invoke-Source':PRODUCT_CONFIG[_0x332bb6(0xeb)],'X-User-AK':_0x267754,...headers},'body':_0x3f89a6,'signal':_0x2c3989[_0x332bb6(0xfd)]}),_0x1a462f=await decodeResponseBody(_0x5ab75b);if(!_0x1a462f[_0x332bb6(0xbd)]){if(allowNotFound&&_0x5ab75b['status']===0x194)return undefined;throwIfRateLimited(_0x5ab75b,undefined,_0x1a462f['text']);throw CliErrors[_0x332bb6(0xc8)](_0x332bb6(0x12f)+_0x5ab75b[_0x332bb6(0x14f)]+')',_0x5ab75b[_0x332bb6(0x14f)]>=0x190?_0x332bb6(0x10b):undefined);}const _0xe6ebfd=_0x1a462f['data'];throwIfRateLimited(_0x5ab75b,_0xe6ebfd);if(allowNotFound&&isSkillHubNotFoundResponse(_0x5ab75b['status'],_0xe6ebfd))return undefined;const _0x98d461=!_0x5ab75b['ok']||_0xe6ebfd?.[_0x332bb6(0xf3)]===![]||typeof _0xe6ebfd?.[_0x332bb6(0x133)]==='number'&&_0xe6ebfd['code']>=0x190;if(_0x98d461)throw CliErrors[_0x332bb6(0xc8)](_0xe6ebfd?.['errorMsg']||_0xe6ebfd?.[_0x332bb6(0x13d)]||_0xe6ebfd?.[_0x332bb6(0x122)]||_0x332bb6(0x11b)+_0x5ab75b[_0x332bb6(0x14f)],_0xe6ebfd?.[_0x332bb6(0x134)]?_0x332bb6(0x112)+_0xe6ebfd[_0x332bb6(0x134)]:undefined);return _0xe6ebfd?.[_0x332bb6(0xea)]??_0xe6ebfd;}catch(_0x10333c){if(_0x10333c instanceof Error&&_0x10333c[_0x332bb6(0x11e)]===_0x332bb6(0x10d))throw CliErrors[_0x332bb6(0xc8)](_0x332bb6(0x14a)+_0x340d0d[_0x332bb6(0xc0)]());throw _0x10333c;}finally{clearTimeout(_0x38f53a);}}function isSkillHubNotFoundResponse(_0x2c1d56,_0x286ab0){const _0xe6fe21=a76_0x348a;if(_0x2c1d56===0x194||_0x286ab0?.['code']===0x194)return!![];if(_0x2c1d56!==0x190&&_0x286ab0?.['code']!==0x190)return![];const _0x3a45ae=[_0x286ab0?.[_0xe6fe21(0x122)],_0x286ab0?.[_0xe6fe21(0x13d)],_0x286ab0?.[_0xe6fe21(0x129)],_0x286ab0?.[_0xe6fe21(0x138)]][_0xe6fe21(0x13c)](_0x5803b0=>typeof _0x5803b0===_0xe6fe21(0xd8))['join']('\x20');return/skill not found\b/i[_0xe6fe21(0xca)](_0x3a45ae);}async function skillHubBinaryRequest(_0x2160e4,_0x297e63={}){const _0x4f6d5e=a76_0x348a,{query:_0x5abef6,headers:headers={},timeout:timeout=0x7530}=_0x297e63,_0x5ae00d=_activeAK;if(!_0x5ae00d)throw CliErrors[_0x4f6d5e(0xbc)](_0x4f6d5e(0xb4)+PRODUCT_CONFIG['newConfigFileName']+'.');const _0x57eb01=getSkillHubDomain()[_0x4f6d5e(0x102)](/\/$/,''),_0x14cdd5=new URL(_0x2160e4,_0x57eb01+'/');if(_0x5abef6)for(const [_0x11f3a1,_0x5e6638]of Object[_0x4f6d5e(0x136)](_0x5abef6)){_0x5e6638!==undefined&&_0x5e6638!==null&&_0x14cdd5[_0x4f6d5e(0xd6)][_0x4f6d5e(0x105)](_0x11f3a1,String(_0x5e6638));}const _0x13b758=new AbortController(),_0xa3559d=setTimeout(()=>_0x13b758['abort'](),timeout);try{const _0x4c9d3d=await fetch(_0x14cdd5[_0x4f6d5e(0xc0)](),{'method':'GET','headers':{'Accept':_0x4f6d5e(0xb9),'X-Invoke-Source':PRODUCT_CONFIG['invokeSource'],'X-User-AK':_0x5ae00d,...headers},'signal':_0x13b758['signal']});if(!_0x4c9d3d['ok']){const _0x2ef289=await decodeResponseBody(_0x4c9d3d),_0x3483b1=_0x2ef289[_0x4f6d5e(0xea)]&&typeof _0x2ef289[_0x4f6d5e(0xea)]===_0x4f6d5e(0xe8)?_0x2ef289[_0x4f6d5e(0xea)]:{},_0x5af3bf=firstString(_0x3483b1[_0x4f6d5e(0x129)],_0x3483b1[_0x4f6d5e(0x13d)],_0x3483b1['msg'],_0x3483b1[_0x4f6d5e(0x134)],_0x2ef289[_0x4f6d5e(0xef)]);throwIfRateLimited(_0x4c9d3d,_0x2ef289['data'],_0x5af3bf);throw CliErrors[_0x4f6d5e(0xc8)](_0x5af3bf||'SkillHub\x20API\x20error:\x20'+_0x4c9d3d[_0x4f6d5e(0x14f)],'Download\x20failed:\x20'+_0x14cdd5['toString']());}return Buffer['from'](await _0x4c9d3d['arrayBuffer']());}catch(_0x1a9194){if(_0x1a9194 instanceof Error&&_0x1a9194[_0x4f6d5e(0x11e)]===_0x4f6d5e(0x10d))throw CliErrors[_0x4f6d5e(0xc8)](_0x4f6d5e(0x14a)+_0x14cdd5[_0x4f6d5e(0xc0)]());throw _0x1a9194;}finally{clearTimeout(_0xa3559d);}}export async function getBffEndpointContract(_0x5b5d8c,_0x4a6b69){const _0x39a13b=a76_0x348a;if(_0x4a6b69==='functions')throw CliErrors[_0x39a13b(0x124)](_0x39a13b(0xed)+_0x5b5d8c+',\x20name='+_0x4a6b69);const _0x1f81c2=await apiRequest(_0x39a13b(0x116)+encodeURIComponent(_0x5b5d8c)+'/'+encodeURIComponent(_0x4a6b69)),_0x17c2ab=_0x1f81c2[_0x39a13b(0xea)];if(!_0x17c2ab||typeof _0x17c2ab!==_0x39a13b(0xe8)||Array[_0x39a13b(0x110)](_0x17c2ab)||_0x17c2ab[_0x39a13b(0x140)]!==_0x5b5d8c||_0x17c2ab[_0x39a13b(0x144)]!==_0x4a6b69)throw CliErrors[_0x39a13b(0x124)]('BFF\x20function\x20not\x20found\x20or\x20inaccessible:\x20appCode='+_0x5b5d8c+_0x39a13b(0x149)+_0x4a6b69);return{'appCode':_0x17c2ab[_0x39a13b(0x140)],'functionName':_0x17c2ab[_0x39a13b(0x144)],'description':_0x17c2ab[_0x39a13b(0xbf)],'version':_0x17c2ab[_0x39a13b(0x113)],'gmtModified':_0x17c2ab[_0x39a13b(0x14d)]};}export async function getSqlQueryInfo(_0x1ac951,_0x515cb8){const _0x4934d8=a76_0x348a,_0x4f889b=await apiRequest(_0x4934d8(0xba),{'method':'POST','body':{'appCode':_0x1ac951,'currentPage':0x1,'pageSize':0x1,'sqlCode':_0x515cb8}}),_0x68dc8=_0x4f889b[_0x4934d8(0xea)],_0x1032b6=_0x68dc8&&typeof _0x68dc8===_0x4934d8(0xe8)&&_0x4934d8(0x11a)in _0x68dc8?_0x68dc8[_0x4934d8(0x11a)]?.[0x0]:_0x68dc8&&typeof _0x68dc8===_0x4934d8(0xe8)&&'sqlCode'in _0x68dc8?_0x68dc8:undefined;if(!_0x1032b6)throw CliErrors[_0x4934d8(0x124)](_0x4934d8(0x120)+_0x515cb8);return _0x1032b6;}function isRemoteAppItem(_0x16cf66){const _0xcf7fcf=a76_0x348a;return!!_0x16cf66&&typeof _0x16cf66===_0xcf7fcf(0xe8)&&typeof _0x16cf66[_0xcf7fcf(0x140)]===_0xcf7fcf(0xd8)&&typeof _0x16cf66[_0xcf7fcf(0xe7)]===_0xcf7fcf(0xd8);}function extractRemoteAppItems(_0x2d5598){const _0x287582=a76_0x348a;if(Array[_0x287582(0x110)](_0x2d5598))return _0x2d5598['filter'](isRemoteAppItem);if(!_0x2d5598||typeof _0x2d5598!==_0x287582(0xe8))throw CliErrors[_0x287582(0xc8)](_0x287582(0xe9));const _0x358307=_0x2d5598;if(Array[_0x287582(0x110)](_0x358307[_0x287582(0x11a)]))return _0x358307[_0x287582(0x11a)][_0x287582(0x13c)](isRemoteAppItem);if(_0x358307['data']&&typeof _0x358307[_0x287582(0xea)]===_0x287582(0xe8)){const _0x281e2f=_0x358307[_0x287582(0xea)];if(Array['isArray'](_0x281e2f[_0x287582(0x11a)]))return _0x281e2f[_0x287582(0x11a)][_0x287582(0x13c)](isRemoteAppItem);}throw CliErrors[_0x287582(0xc8)](_0x287582(0x12a));}export async function getMyApps(){const _0x48533b=a76_0x348a,_0x3975e8=await apiRequest(_0x48533b(0xd7));return extractRemoteAppItems(_0x3975e8[_0x48533b(0xea)]);}export async function getLoginUserInfo(){const _0x575bdd=a76_0x348a,_0x437100=await apiRequest(_0x575bdd(0x126));if(!_0x437100['data']||typeof _0x437100['data']!=='object'||Array[_0x575bdd(0x110)](_0x437100[_0x575bdd(0xea)]))throw CliErrors[_0x575bdd(0xc8)]('Invalid\x20login\x20user\x20info\x20response:\x20expected\x20object.');return _0x437100[_0x575bdd(0xea)];}function runtimeSchedulePath(_0x3de173,_0x1b57a1=''){const _0x2a0b5e=a76_0x348a;return'/api/harness/apps/'+encodeURIComponent(_0x3de173)+_0x2a0b5e(0xc5)+_0x1b57a1;}export async function validateRuntimeSchedule(_0x1b1a08,_0x1ae5e1){const _0x54700a=a76_0x348a,_0x46377b=await apiRequest(runtimeSchedulePath(_0x1b1a08,_0x54700a(0xf4)),{'method':'POST','body':_0x1ae5e1});return _0x46377b['data'];}export async function createRuntimeSchedule(_0x8f60f0,_0x99a3c3){const _0x6e4434=a76_0x348a,_0x2f522c=await apiRequest(runtimeSchedulePath(_0x8f60f0),{'method':_0x6e4434(0x123),'body':_0x99a3c3});return _0x2f522c['data'];}export async function listRuntimeSchedules(_0x556617,_0x251345={}){const _0x26bde4=a76_0x348a,_0x33d762=new URLSearchParams();if(_0x251345[_0x26bde4(0x12e)]!==undefined)_0x33d762[_0x26bde4(0x105)](_0x26bde4(0x12e),String(_0x251345[_0x26bde4(0x12e)]));if(_0x251345[_0x26bde4(0x100)])_0x33d762[_0x26bde4(0x105)](_0x26bde4(0x100),_0x251345[_0x26bde4(0x100)]);const _0x25c55d=_0x33d762[_0x26bde4(0x13f)]>0x0?'?'+_0x33d762[_0x26bde4(0xc0)]():'',_0x2c26c2=await apiRequest(''+runtimeSchedulePath(_0x556617)+_0x25c55d);return _0x2c26c2['data'];}export async function getRuntimeSchedule(_0x1bfea1,_0x503df9){const _0x1440c8=a76_0x348a,_0xba976f=await apiRequest(runtimeSchedulePath(_0x1bfea1,'/'+encodeURIComponent(_0x503df9)));return _0xba976f[_0x1440c8(0xea)];}export async function deleteRuntimeSchedule(_0x51aa55,_0x2772bc){const _0x3d6ead=a76_0x348a,_0x4d4d8b=await apiRequest(runtimeSchedulePath(_0x51aa55,'/'+encodeURIComponent(_0x2772bc)),{'method':'DELETE'});return _0x4d4d8b[_0x3d6ead(0xea)];}export async function runRuntimeSchedule(_0x29ff6b,_0x594ae5){const _0x32f233=a76_0x348a,_0x26e8d7=await apiRequest(runtimeSchedulePath(_0x29ff6b,'/'+encodeURIComponent(_0x594ae5)+_0x32f233(0xb6)),{'method':_0x32f233(0x123)});return _0x26e8d7[_0x32f233(0xea)];}export async function listDatasets(_0xc89535,_0x48a978){const _0x4c45c9=a76_0x348a,_0x3854c8=await apiRequest(_0x4c45c9(0xf5),{'method':_0x4c45c9(0x123),'body':{'appCode':_0xc89535,..._0x48a978?.[_0x4c45c9(0x133)]&&{'code':_0x48a978['code']},..._0x48a978?.[_0x4c45c9(0x11e)]&&{'name':_0x48a978[_0x4c45c9(0x11e)]}}});return extractList(_0x3854c8[_0x4c45c9(0xea)]);}export async function getDatasetDetail(_0x1a0e1e){const _0x3b79bc=a76_0x348a,_0x324c76=await apiRequest(_0x3b79bc(0x10c)+encodeURIComponent(_0x1a0e1e));return _0x324c76[_0x3b79bc(0xea)];}export async function getDatasetSdkUsageDoc(_0x428edc,_0x22e08f){const _0x17a54a=a76_0x348a,_0x1240fd=await toolboxRequest('api-doc-generator',{'datasetCode':_0x428edc,'appCode':_0x22e08f});return typeof _0x1240fd?.[_0x17a54a(0xfa)]===_0x17a54a(0xd8)?_0x1240fd[_0x17a54a(0xfa)]:'';}export async function uploadRuntimeFile(_0x45f202,_0x22740d){const _0x17a372=a76_0x348a,_0x4c8ba7=await readFile(_0x22740d),_0x3b848b=new FormData();_0x3b848b[_0x17a372(0x13b)]('appCode',_0x45f202),_0x3b848b[_0x17a372(0x13b)]('file',new Blob([new Uint8Array(_0x4c8ba7)]),basename(_0x22740d));const _0x1b7a20=await apiFormRequest(_0x17a372(0x11f),_0x3b848b);return _0x1b7a20[_0x17a372(0xea)];}export async function queryRuntimeFileUrl(_0x271978,_0x16a838={}){const _0x534a1c=a76_0x348a,_0x3bac6d=await apiRequest(_0x534a1c(0xdb),{'method':'POST','body':{'filePath':_0x271978,'downloadFlag':_0x16a838[_0x534a1c(0x14c)]??![],..._0x16a838[_0x534a1c(0xf6)]?{'longTerm':!![]}:{}}});return _0x3bac6d[_0x534a1c(0xea)];}export async function recognizeRuntimeOcr(_0x38e077,_0x734268){const _0x8bf6d6=a76_0x348a,_0x584d0c=await apiRequest(_0x8bf6d6(0xff),{'method':_0x8bf6d6(0x123),'body':{'appCode':_0x38e077,'url':_0x734268[_0x8bf6d6(0x146)],'type':_0x734268[_0x8bf6d6(0xf7)]}});return _0x584d0c[_0x8bf6d6(0xea)];}export async function getRuntimeAppConfigByKey(_0x2ccbd4,_0x2a1bb0){const _0x16e522=a76_0x348a,_0x5d1b63=new URLSearchParams({'appCode':_0x2ccbd4,'key':_0x2a1bb0}),_0x3759fc=await apiRequest('/client/app-config/getByKey?'+_0x5d1b63[_0x16e522(0xc0)]());if(typeof _0x3759fc[_0x16e522(0xea)]!==_0x16e522(0xd8))throw CliErrors[_0x16e522(0x124)](_0x16e522(0x111)+_0x2a1bb0);return _0x3759fc[_0x16e522(0xea)];}export async function listRuntimeArtifacts(_0x4ff1ec,_0xd11178){const _0xc539f6=a76_0x348a,_0x4cad2d=new URLSearchParams({'appCode':_0x4ff1ec});if(_0xd11178?.[_0xc539f6(0x10f)])_0x4cad2d[_0xc539f6(0x105)]('artifactType',_0xd11178['artifactType']);if(_0xd11178?.['source'])_0x4cad2d[_0xc539f6(0x105)](_0xc539f6(0x132),_0xd11178[_0xc539f6(0x132)]);if(_0xd11178?.[_0xc539f6(0xce)]!==undefined)_0x4cad2d['set'](_0xc539f6(0xce),String(_0xd11178['favorite']));const _0x20f9e0=await apiRequest(_0xc539f6(0x10e)+_0x4cad2d[_0xc539f6(0xc0)]());return Array['isArray'](_0x20f9e0[_0xc539f6(0xea)])?_0x20f9e0[_0xc539f6(0xea)]:[];}export async function getRuntimeArtifact(_0x2e020b,_0x1f1670){const _0x3e939d=a76_0x348a,_0x300610=await apiRequest(_0x3e939d(0xde)+_0x2e020b+_0x3e939d(0x145)+encodeURIComponent(_0x1f1670));if(!_0x300610['data'])throw CliErrors['validation'](_0x3e939d(0x12b)+_0x2e020b);return _0x300610['data'];}export async function createRuntimeArtifact(_0x11ae8c,_0x2cb669){const _0x546758=a76_0x348a,_0x4ad341=await apiRequest('/client/artifact/create',{'method':'POST','body':{'appCode':_0x11ae8c,..._0x2cb669}});return _0x4ad341[_0x546758(0xea)];}export async function updateRuntimeArtifact(_0x5cb3a9,_0xd95cd9,_0x499bad){const _0x2ffb7f=a76_0x348a,_0xe4499=await apiRequest(_0x2ffb7f(0xde)+_0x5cb3a9+_0x2ffb7f(0xe2),{'method':'POST','body':{'appCode':_0xd95cd9,..._0x499bad}});return _0xe4499[_0x2ffb7f(0xea)];}export async function listPersonalBffs(_0x2cd13e){const _0x580096=a76_0x348a,_0x58408b=await apiRequest(_0x580096(0x104)+encodeURIComponent(_0x2cd13e));return Array[_0x580096(0x110)](_0x58408b[_0x580096(0xea)])?_0x58408b[_0x580096(0xea)]:[];}export async function getPersonalBff(_0x59edce,_0x17e909){const _0x1b85b9=a76_0x348a,_0x4e543a=await apiRequest(_0x1b85b9(0x130)+_0x59edce+_0x1b85b9(0x145)+encodeURIComponent(_0x17e909));if(!_0x4e543a[_0x1b85b9(0xea)])throw CliErrors[_0x1b85b9(0x124)](_0x1b85b9(0xc3)+_0x59edce);return _0x4e543a['data'];}export async function createPersonalBff(_0x2725d1,_0x12dabf){const _0x4791fd=a76_0x348a,_0xc29333=await apiRequest(_0x4791fd(0xcd),{'method':'POST','body':{'appCode':_0x2725d1,..._0x12dabf}});return _0xc29333[_0x4791fd(0xea)];}export async function updatePersonalBff(_0x463cf2,_0x35dfdd,_0x411fc5){const _0x58a638=a76_0x348a,_0x17a05a=await apiRequest(_0x58a638(0x130)+_0x463cf2+_0x58a638(0xe2),{'method':_0x58a638(0x123),'body':{'appCode':_0x35dfdd,..._0x411fc5}});return _0x17a05a[_0x58a638(0xea)];}export async function executePersonalBff(_0x54ba65,_0x1dfd76,_0x1f4180){const _0x495743=a76_0x348a,_0x40073a=await apiRequest(_0x495743(0x130)+_0x54ba65+_0x495743(0x119)+encodeURIComponent(_0x1dfd76),{'method':_0x495743(0x123),'body':_0x1f4180});return _0x40073a['data'];}export async function listPersonalKnowledgeBaseItems(_0x445a77){const _0x149c8a=a76_0x348a,_0x837a51=await apiRequest('/client/knowledge-base/personal/list?appCode='+encodeURIComponent(_0x445a77));return Array[_0x149c8a(0x110)](_0x837a51[_0x149c8a(0xea)])?_0x837a51['data']:[];}export async function getPersonalKnowledgeBaseItem(_0x34c7cb,_0x51f589){const _0x489c46=a76_0x348a,_0xaaf16=await apiRequest('/client/knowledge-base/personal/'+_0x34c7cb+'?appCode='+encodeURIComponent(_0x51f589));if(!_0xaaf16['data'])throw CliErrors[_0x489c46(0x124)](_0x489c46(0xe1)+_0x34c7cb);return _0xaaf16['data'];}export async function createPersonalKnowledgeBaseItem(_0x24a505,_0x42fe71){const _0x15aab6=a76_0x348a,_0xa1d67a=await apiRequest(_0x15aab6(0x114),{'method':_0x15aab6(0x123),'body':{'appCode':_0x24a505,..._0x42fe71}});return _0xa1d67a[_0x15aab6(0xea)];}export async function updatePersonalKnowledgeBaseItem(_0x37aa51,_0x41c9a5,_0x14153e){const _0x5a8d9d=a76_0x348a,_0x305e9d=await apiRequest(_0x5a8d9d(0x109)+_0x37aa51+_0x5a8d9d(0xe2),{'method':_0x5a8d9d(0x123),'body':{'appCode':_0x41c9a5,..._0x14153e}});return _0x305e9d['data'];}export async function searchKnowledgeBase(_0xd1351c,_0x842e48){const _0x112a90=a76_0x348a,_0x108aaa=await apiRequest('/client/knowledge-base/search',{'method':_0x112a90(0x123),'body':{'appCode':_0xd1351c,'query':_0x842e48[_0x112a90(0xe4)],..._0x842e48[_0x112a90(0xb7)]!==undefined?{'topK':_0x842e48['topK']}:{}}});return Array['isArray'](_0x108aaa['data'])?_0x108aaa[_0x112a90(0xea)]:[];}export async function getRuntimeSkillByCode(_0x3a1f82,_0x376894){const _0x17b8e4=a76_0x348a,_0x1ee45e=await skillHubJsonRequest(_0x17b8e4(0x117)+encodeURIComponent(_0x3a1f82)+'/'+encodeURIComponent(_0x376894),{'allowNotFound':!![]});return _0x1ee45e?skillHubRuntimeDetailToRuntimeSkill(_0x1ee45e):undefined;}export async function listRuntimeSkills(_0x18fa91){const _0x541833=a76_0x348a,_0x25ac76=await skillHubJsonRequest(_0x541833(0x107)+encodeURIComponent(_0x18fa91[_0x541833(0x140)])+'/skills',{'query':{'page':0x0,'size':0xc8}});return normalizeSkillHubRuntimeListResponse(_0x18fa91['appCode'],_0x25ac76,_0x18fa91[_0x541833(0x147)]??'all',_0x18fa91[_0x541833(0x133)]);}export async function listPersonalRuntimeSkills(_0x221d52){const _0x1759da=a76_0x348a;return(await listRuntimeSkills({'appCode':_0x221d52,'scope':_0x1759da(0xe5)}))[_0x1759da(0xe5)];}export async function listCompanyRuntimeSkills(_0x2afa31){const _0x4ddc7e=a76_0x348a;return(await listRuntimeSkills({'appCode':_0x2afa31,'scope':_0x4ddc7e(0x108)}))[_0x4ddc7e(0x108)];}export async function listVisibleRuntimeSkills(_0x10e74d){const _0x452c08=a76_0x348a;return(await listRuntimeSkills({'appCode':_0x10e74d,'scope':_0x452c08(0xc7)}))['effective'];}export async function createPersonalRuntimeSkill(_0xc9026d,_0x2a4f21,_0x23d2fa={}){const _0x37f570=a76_0x348a;return publishRuntimeSkill(_0xc9026d,_0x2a4f21,{'visibility':_0x37f570(0xd0),'confirmWarnings':_0x23d2fa[_0x37f570(0x11d)]});}export async function updatePersonalRuntimeSkill(_0x2c186e,_0xd958a2,_0x4d6ec4,_0x2fb8e2={}){const _0x2cffb7=a76_0x348a;return publishRuntimeSkill(_0xd958a2,{..._0x4d6ec4,'skillCode':_0x4d6ec4['skillCode']??_0x2c186e},{'visibility':_0x2cffb7(0xd0),'confirmWarnings':_0x2fb8e2[_0x2cffb7(0x11d)]});}export async function publishCompanyRuntimeSkill(_0x1d88f7,_0x173a38,_0x7b5eb9={}){const _0x5507af=a76_0x348a;return publishRuntimeSkill(_0x1d88f7,_0x173a38,{'visibility':_0x5507af(0xbe),'confirmWarnings':_0x7b5eb9['confirmWarnings']});}export async function validateRuntimeSkillPublish(_0x6ad483,_0x313ccc,_0x27d9c6){const _0x270886=a76_0x348a,_0x105d73=buildRuntimeSkillPublishForm(_0x313ccc,_0x27d9c6[_0x270886(0xe6)]),_0x14b663=await skillHubJsonRequest(_0x270886(0x148)+encodeURIComponent(_0x6ad483)+'/publish/validate',{'method':_0x270886(0x123),'body':_0x105d73});return{'valid':_0x14b663[_0x270886(0xe3)]===!![],'errors':Array[_0x270886(0x110)](_0x14b663[_0x270886(0x121)])?_0x14b663['errors']:[],'warnings':Array[_0x270886(0x110)](_0x14b663[_0x270886(0xc4)])?_0x14b663['warnings']:[],'resolvedSlug':_0x14b663[_0x270886(0xd9)],'resolvedVersion':_0x14b663[_0x270886(0x12c)]};}export async function downloadRuntimeSkillPackage(_0x5f5573,_0x241e96,_0x3ed19c,_0x284a79){const _0x2c95ee=a76_0x348a;void _0x5f5573;const _0x44f6fa=_0x284a79?_0x2c95ee(0x148)+encodeURIComponent(_0x3ed19c)+'/'+encodeURIComponent(_0x241e96)+_0x2c95ee(0xd3)+encodeURIComponent(_0x284a79)+'/download':'/api/cli/v1/skills/'+encodeURIComponent(_0x3ed19c)+'/'+encodeURIComponent(_0x241e96)+_0x2c95ee(0xf9);return skillHubBinaryRequest(_0x44f6fa);}async function publishRuntimeSkill(_0x318463,_0x5e9f48,_0x15a785){const _0x1a023b=a76_0x348a,_0x50b635=buildRuntimeSkillPublishForm(_0x5e9f48,_0x15a785[_0x1a023b(0xe6)]),_0x454fc2=await skillHubJsonRequest(_0x1a023b(0x148)+encodeURIComponent(_0x318463)+_0x1a023b(0xdc),{'method':_0x1a023b(0x123),'query':{'confirmWarnings':_0x15a785[_0x1a023b(0x11d)]===!![]?!![]:undefined},'body':_0x50b635});return{'appCode':_0x454fc2[_0x1a023b(0x13e)]??_0x318463,'skillCode':_0x454fc2[_0x1a023b(0x137)]??_0x5e9f48[_0x1a023b(0xf0)]??'','skillName':_0x5e9f48[_0x1a023b(0xc2)]??_0x454fc2[_0x1a023b(0x137)]??_0x5e9f48[_0x1a023b(0xf0)],'description':_0x5e9f48[_0x1a023b(0xbf)],'scope':skillHubVisibilityToScope(_0x454fc2[_0x1a023b(0xe6)]??_0x15a785[_0x1a023b(0xe6)])??_0x1a023b(0xe5),'version':_0x454fc2['version']??_0x5e9f48[_0x1a023b(0x113)],'tags':_0x5e9f48[_0x1a023b(0xda)],'content':_0x5e9f48[_0x1a023b(0xdf)]};}function buildRuntimeSkillPublishForm(_0x453c2c,_0x2512d9){const _0x4f7d93=a76_0x348a,_0x50ab86=new FormData();return _0x50ab86[_0x4f7d93(0x105)](_0x4f7d93(0xd1),runtimeSkillPackageFile(_0x453c2c)),_0x453c2c[_0x4f7d93(0xc2)]?.[_0x4f7d93(0xd4)]()&&_0x50ab86['set'](_0x4f7d93(0x11c),_0x453c2c[_0x4f7d93(0xc2)][_0x4f7d93(0xd4)]()),_0x50ab86[_0x4f7d93(0x105)](_0x4f7d93(0xe6),_0x2512d9),_0x50ab86;}function a76_0x348a(_0x23f2cc,_0xb3bd53){_0x23f2cc=_0x23f2cc-0xb3;const _0x1c5e11=a76_0x1c5e();let _0x348ab8=_0x1c5e11[_0x23f2cc];return _0x348ab8;}function runtimeSkillPackageFile(_0x58b117){const _0x207db5=a76_0x348a;if(!_0x58b117[_0x207db5(0xc9)])throw CliErrors[_0x207db5(0x124)]('Missing\x20Skill\x20package\x20payload.');const _0x4fb919=Buffer[_0x207db5(0x135)](_0x58b117[_0x207db5(0xc9)],_0x207db5(0x13a)),_0x18fa26=new Blob([_0x4fb919],{'type':_0x207db5(0x131)}),_0x50c7ce=(_0x58b117[_0x207db5(0xf0)]||_0x207db5(0x10a))+'.zip';if(typeof File!=='undefined')return new File([_0x18fa26],_0x50c7ce,{'type':_0x207db5(0x131)});return _0x18fa26;}function normalizeSkillHubRuntimeListResponse(_0x4e9168,_0x5b8196,_0x31b135,_0x31f7a1){const _0xf20d33=a76_0x348a,_0x5769d1=Array[_0xf20d33(0x110)](_0x5b8196)?_0x5b8196:Array[_0xf20d33(0x110)](_0x5b8196?.[_0xf20d33(0x139)])?_0x5b8196[_0xf20d33(0x139)]:[],_0x427192=_0x31f7a1?.['trim'](),_0x32dd05=_0x5769d1[_0xf20d33(0x13c)](_0x2229ee=>!_0x427192||_0x2229ee[_0xf20d33(0x137)]===_0x427192)['map'](skillHubRuntimeItemToRuntimeSkill)[_0xf20d33(0x13c)](_0x1336fb=>Boolean(_0x1336fb)),_0x53b4e0=_0x32dd05[_0xf20d33(0x13c)](_0x39bb32=>_0x39bb32[_0xf20d33(0x147)]==='personal'),_0x2da9b1=_0x32dd05['filter'](_0x25bfe4=>_0x25bfe4[_0xf20d33(0x147)]===_0xf20d33(0x108));return{'appCode':_0x4e9168,'personal':_0x31b135===_0xf20d33(0x108)?[]:_0x53b4e0,'company':_0x31b135===_0xf20d33(0xe5)?[]:_0x2da9b1,'effective':buildEffectiveRuntimeSkills(_0x53b4e0,_0x2da9b1,_0x31b135)};}function skillHubRuntimeItemToRuntimeSkill(_0x181374){const _0x17dce6=a76_0x348a,_0x597f5d=_0x181374[_0x17dce6(0x137)]?.['trim'](),_0x4ede1e=skillHubVisibilityToScope(_0x181374['visibility']);if(!_0x597f5d||!_0x4ede1e)return undefined;return{'id':_0x181374['id'],'appCode':_0x181374[_0x17dce6(0x13e)],'skillCode':_0x597f5d,'skillName':_0x181374[_0x17dce6(0x11c)]??_0x597f5d,'description':_0x181374[_0x17dce6(0xdd)],'scope':_0x4ede1e,'version':skillHubRuntimeItemVersion(_0x181374),'status':_0x181374[_0x17dce6(0x14f)]};}function skillHubRuntimeDetailToRuntimeSkill(_0x2f6235){const _0x404ca8=a76_0x348a,_0x44dd0a=_0x2f6235[_0x404ca8(0x137)]?.['trim']();if(!_0x44dd0a)return undefined;return{'id':_0x2f6235['id'],'appCode':_0x2f6235[_0x404ca8(0x13e)],'skillCode':_0x44dd0a,'skillName':_0x2f6235[_0x404ca8(0x11c)]??_0x44dd0a,'description':_0x2f6235[_0x404ca8(0xdd)],'example':_0x2f6235[_0x404ca8(0xbb)],'scope':skillHubVisibilityToScope(_0x2f6235[_0x404ca8(0xe6)])??_0x2f6235[_0x404ca8(0xe6)]?.['toLowerCase'](),'version':skillHubRuntimeItemVersion(_0x2f6235),'status':_0x2f6235[_0x404ca8(0x14f)]};}function skillHubVisibilityToScope(_0x3d61af){const _0x18c131=a76_0x348a;if(_0x3d61af==='PRIVATE')return _0x18c131(0xe5);if(_0x3d61af==='NAMESPACE_ONLY')return'company';return undefined;}function skillHubRuntimeItemVersion(_0x53923d){const _0x4f82d0=a76_0x348a;return _0x53923d['publishedVersion']?.['version']??_0x53923d['headlineVersion']?.['version']??_0x53923d[_0x4f82d0(0xee)]?.[_0x4f82d0(0x113)];}function buildEffectiveRuntimeSkills(_0x3478ff,_0x5d42cc,_0x5c1051){const _0x59a8fd=a76_0x348a;if(_0x5c1051===_0x59a8fd(0xe5))return _0x3478ff;if(_0x5c1051===_0x59a8fd(0x108))return _0x5d42cc;const _0x564678=new Map();for(const _0x5d0cf0 of _0x5d42cc){_0x564678[_0x59a8fd(0x105)](_0x5d0cf0[_0x59a8fd(0xf0)],_0x5d0cf0);}for(const _0x1e63a7 of _0x3478ff){_0x564678[_0x59a8fd(0x105)](_0x1e63a7[_0x59a8fd(0xf0)],_0x1e63a7);}return Array['from'](_0x564678[_0x59a8fd(0xf1)]());}function normalizeRuntimeSkillListResponse(_0x48a737,_0x20aac1){const _0x2f4485=a76_0x348a;if(Array[_0x2f4485(0x110)](_0x20aac1)){const _0xed7b18=_0x20aac1[_0x2f4485(0x13c)](_0x210a4d=>_0x210a4d[_0x2f4485(0x147)]===_0x2f4485(0xe5)),_0x56fe78=_0x20aac1[_0x2f4485(0x13c)](_0xa61f2=>_0xa61f2[_0x2f4485(0x147)]==='company');return{'appCode':_0x48a737,'personal':_0xed7b18,'company':_0x56fe78,'effective':[..._0x56fe78,..._0xed7b18]};}return{'appCode':_0x20aac1?.[_0x2f4485(0x140)]??_0x48a737,'personal':Array[_0x2f4485(0x110)](_0x20aac1?.[_0x2f4485(0xe5)])?_0x20aac1['personal']:[],'company':Array[_0x2f4485(0x110)](_0x20aac1?.[_0x2f4485(0x108)])?_0x20aac1[_0x2f4485(0x108)]:[],'effective':Array[_0x2f4485(0x110)](_0x20aac1?.['effective'])?_0x20aac1[_0x2f4485(0xec)]:[]};}
@@ -1 +1 @@
1
- function a77_0x5683(){const _0x5253fc=['dbId','2921256pQHjEe','153522ocDRHt','20azMjUY','db-','125952ntEzJX','set','147MmLblq','get','245288QDGAGC','has','229085gSIvCk','dbName','68770oRBXOO','613400QckwhA','find','640SSzfog','map'];a77_0x5683=function(){return _0x5253fc;};return a77_0x5683();}function a77_0x3909(_0x46ac8a,_0x302606){_0x46ac8a=_0x46ac8a-0x9f;const _0x568376=a77_0x5683();let _0x390934=_0x568376[_0x46ac8a];return _0x390934;}(function(_0x392905,_0x4869ba){const _0x501214=a77_0x3909,_0x3e1bc4=_0x392905();while(!![]){try{const _0x4c37a1=parseInt(_0x501214(0xaf))/0x1+parseInt(_0x501214(0xae))/0x2+-parseInt(_0x501214(0xa6))/0x3+parseInt(_0x501214(0xa4))/0x4*(-parseInt(_0x501214(0xac))/0x5)+-parseInt(_0x501214(0xa2))/0x6+-parseInt(_0x501214(0xa8))/0x7*(parseInt(_0x501214(0xaa))/0x8)+parseInt(_0x501214(0xa3))/0x9*(parseInt(_0x501214(0x9f))/0xa);if(_0x4c37a1===_0x4869ba)break;else _0x3e1bc4['push'](_0x3e1bc4['shift']());}catch(_0x33f747){_0x3e1bc4['push'](_0x3e1bc4['shift']());}}}(a77_0x5683,0x52707));import{listDatasets}from'../core/api-client.js';const cache=new Map();export async function listDatabases(_0x43168e){const _0x1669ad=a77_0x3909;if(cache[_0x1669ad(0xab)](_0x43168e))return cache[_0x1669ad(0xa9)](_0x43168e);const _0x15707a=await listDatasets(_0x43168e),_0x3437a3=new Map();for(const _0x4ef3a3 of _0x15707a){const _0x212eb0=_0x4ef3a3['dbtableConfig'];_0x212eb0?.[_0x1669ad(0xa1)]!=null&&_0x3437a3[_0x1669ad(0xa7)](_0x212eb0['dbId'],_0x212eb0[_0x1669ad(0xad)]??_0x1669ad(0xa5)+_0x212eb0['dbId']);}const _0x13bf26=[..._0x3437a3['entries']()][_0x1669ad(0xa0)](([_0x3a1ba1,_0x5875e4])=>({'dbId':_0x3a1ba1,'dbName':_0x5875e4}));return cache[_0x1669ad(0xa7)](_0x43168e,_0x13bf26),_0x13bf26;}export async function getDbName(_0x3e8c1f,_0x7227cf){const _0x593906=a77_0x3909;try{const _0x420659=await listDatabases(_0x3e8c1f);return _0x420659[_0x593906(0xb0)](_0x14f306=>_0x14f306[_0x593906(0xa1)]===_0x7227cf)?.[_0x593906(0xad)];}catch{return undefined;}}
1
+ (function(_0x55a170,_0x237200){const _0x2b7356=a77_0x218d,_0x441dd1=_0x55a170();while(!![]){try{const _0x58b8f9=-parseInt(_0x2b7356(0xff))/0x1+-parseInt(_0x2b7356(0xf5))/0x2+-parseInt(_0x2b7356(0xfe))/0x3*(-parseInt(_0x2b7356(0xf1))/0x4)+-parseInt(_0x2b7356(0xf8))/0x5*(parseInt(_0x2b7356(0xfc))/0x6)+parseInt(_0x2b7356(0xf0))/0x7*(parseInt(_0x2b7356(0xf6))/0x8)+parseInt(_0x2b7356(0xfa))/0x9*(parseInt(_0x2b7356(0xf9))/0xa)+parseInt(_0x2b7356(0xf2))/0xb*(parseInt(_0x2b7356(0x103))/0xc);if(_0x58b8f9===_0x237200)break;else _0x441dd1['push'](_0x441dd1['shift']());}catch(_0x47a3ea){_0x441dd1['push'](_0x441dd1['shift']());}}}(a77_0x3caf,0x7ae1d));import{listDatasets}from'../core/api-client.js';const cache=new Map();export async function listDatabases(_0x51b7df){const _0x123f0a=a77_0x218d;if(cache['has'](_0x51b7df))return cache[_0x123f0a(0xf3)](_0x51b7df);const _0x896260=await listDatasets(_0x51b7df),_0x47ca9c=new Map();for(const _0x165593 of _0x896260){const _0x5630e3=_0x165593[_0x123f0a(0x100)];_0x5630e3?.[_0x123f0a(0x102)]!=null&&_0x47ca9c[_0x123f0a(0xf7)](_0x5630e3[_0x123f0a(0x102)],_0x5630e3[_0x123f0a(0x104)]??_0x123f0a(0xf4)+_0x5630e3[_0x123f0a(0x102)]);}const _0x504124=[..._0x47ca9c[_0x123f0a(0xfb)]()][_0x123f0a(0x101)](([_0x2595b8,_0x3868e7])=>({'dbId':_0x2595b8,'dbName':_0x3868e7}));return cache[_0x123f0a(0xf7)](_0x51b7df,_0x504124),_0x504124;}function a77_0x3caf(){const _0x82840d=['set','3401590jpzQLd','230kISGxc','115389VvyHsz','entries','6ZiKYPh','find','1029RRoust','211570CdSBGo','dbtableConfig','map','dbId','264QqrOnX','dbName','40124NvdUFw','6568LllsdJ','445544zaPNVx','get','db-','1510408xYRagQ','560PVDpjs'];a77_0x3caf=function(){return _0x82840d;};return a77_0x3caf();}function a77_0x218d(_0x49f124,_0x195cfc){_0x49f124=_0x49f124-0xf0;const _0x3caf1e=a77_0x3caf();let _0x218d73=_0x3caf1e[_0x49f124];return _0x218d73;}export async function getDbName(_0x40da2f,_0x36c9b3){const _0x12f03e=a77_0x218d;try{const _0x43ea9b=await listDatabases(_0x40da2f);return _0x43ea9b[_0x12f03e(0xfd)](_0x5c9b40=>_0x5c9b40[_0x12f03e(0x102)]===_0x36c9b3)?.[_0x12f03e(0x104)];}catch{return undefined;}}
@@ -1 +1 @@
1
- (function(_0x3687c7,_0x1f2c36){const _0x1004eb=a78_0x41ef,_0x23578c=_0x3687c7();while(!![]){try{const _0x5a7cfc=parseInt(_0x1004eb(0x99))/0x1*(-parseInt(_0x1004eb(0xae))/0x2)+parseInt(_0x1004eb(0x97))/0x3*(-parseInt(_0x1004eb(0x8f))/0x4)+-parseInt(_0x1004eb(0x9d))/0x5*(parseInt(_0x1004eb(0x9a))/0x6)+parseInt(_0x1004eb(0x90))/0x7*(parseInt(_0x1004eb(0x8d))/0x8)+parseInt(_0x1004eb(0xa3))/0x9+-parseInt(_0x1004eb(0x8c))/0xa*(parseInt(_0x1004eb(0xaa))/0xb)+parseInt(_0x1004eb(0xa7))/0xc*(parseInt(_0x1004eb(0x86))/0xd);if(_0x5a7cfc===_0x1f2c36)break;else _0x23578c['push'](_0x23578c['shift']());}catch(_0x154ccb){_0x23578c['push'](_0x23578c['shift']());}}}(a78_0x4c4f,0x5676d));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';let _client,restoreResponseJsonParser;export function initSdkClient(_0x5bb276){const _0x361957=a78_0x41ef;restoreResponseJsonParser??=installLosslessJsonResponseParser();try{_client=createClient({'appCode':_0x5bb276[_0x361957(0x93)],'env':_0x5bb276[_0x361957(0xa2)],'authMode':_0x5bb276[_0x361957(0x8b)],..._0x5bb276['accessKey']?{'accessKey':_0x5bb276[_0x361957(0xab)]}:{},'options':{'timeout':0x7530,'headers':{'X-Invoke-Source':PRODUCT_CONFIG[_0x361957(0x96)]}}});}catch(_0x23208b){clearSdkClient();throw _0x23208b;}}export function clearSdkClient(){_client=undefined,restoreResponseJsonParser?.(),restoreResponseJsonParser=undefined;}function ensureClient(){const _0x40cc70=a78_0x41ef;if(!_client)throw new Error(_0x40cc70(0xad));return _client;}function normalizeAggregateParams(_0x55b082){const _0x24aff=a78_0x41ef,_0x5b7885=_0x55b082[_0x24aff(0xac)];if(_0x5b7885===undefined)return _0x55b082;if(!Array[_0x24aff(0xa4)](_0x5b7885))throw CliErrors['validation'](_0x24aff(0x8a));return{..._0x55b082,'aggregate':_0x5b7885['map']((_0x5207bc,_0x56d05d)=>{const _0x23a424=_0x24aff;if(!_0x5207bc||typeof _0x5207bc!==_0x23a424(0x9b)||Array[_0x23a424(0xa4)](_0x5207bc))throw CliErrors[_0x23a424(0x87)](_0x23a424(0x9f)+_0x56d05d+']\x20must\x20be\x20an\x20object.');const _0x4fbe84=_0x5207bc[_0x23a424(0x91)]??_0x5207bc[_0x23a424(0xa8)];if(typeof _0x4fbe84!==_0x23a424(0xa0)||_0x4fbe84['trim']()==='')throw CliErrors[_0x23a424(0x87)](_0x23a424(0x9f)+_0x56d05d+']\x20requires\x20\x22column\x22;\x20\x22field\x22\x20is\x20accepted\x20only\x20as\x20a\x20deprecated\x20alias.');const _0x1820b9={..._0x5207bc,'column':_0x4fbe84};return delete _0x1820b9[_0x23a424(0xa8)],_0x1820b9;})};}export async function executeData(_0x4f2fa9,_0x4c4dc6,_0x451e05){const _0x57b9d6=a78_0x41ef,_0x3e9971=ensureClient(),_0x4fd22a=_0x57b9d6(0x9e)+_0x4f2fa9,_0x30d24b=_0x3e9971[_0x57b9d6(0x8e)][_0x4fd22a];if(!_0x30d24b||typeof _0x30d24b[_0x4c4dc6]!==_0x57b9d6(0x94))throw new Error('SDK\x20model\x20does\x20not\x20support\x20operation\x20\x22'+_0x4c4dc6+_0x57b9d6(0xa1)+_0x57b9d6(0xa9));if(_0x4c4dc6===_0x57b9d6(0x89))return _0x30d24b['batchCreate'](parseBatchCreateItemsFromParams(_0x451e05));const _0x2c065f=_0x451e05!==undefined&&_0x451e05!==null&&!Array['isArray'](_0x451e05)?_0x451e05:{};switch(_0x4c4dc6){case _0x57b9d6(0x9c):{const _0xd0e2d3=_0x2c065f['id'];if(_0xd0e2d3===undefined||_0xd0e2d3===null)throw new Error(_0x57b9d6(0x88));return _0x30d24b[_0x57b9d6(0x9c)](_0xd0e2d3);}case _0x57b9d6(0xa5):{const {id:_0x4f346b,..._0x374bb5}=_0x2c065f;if(_0x4f346b===undefined||_0x4f346b===null)throw new Error(_0x57b9d6(0x98));return _0x30d24b[_0x57b9d6(0xa5)](_0x4f346b,_0x374bb5);}case'delete':{const _0x7802cb=_0x2c065f['id'];if(_0x7802cb===undefined||_0x7802cb===null)throw new Error(_0x57b9d6(0x92));return _0x30d24b['delete'](_0x7802cb);}case _0x57b9d6(0xac):return _0x30d24b[_0x57b9d6(0xac)](normalizeAggregateParams(_0x2c065f));default:return _0x30d24b[_0x4c4dc6](_0x2c065f);}}function a78_0x41ef(_0x3a5cca,_0x12965a){_0x3a5cca=_0x3a5cca-0x86;const _0x4c4fdb=a78_0x4c4f();let _0x41efc9=_0x4c4fdb[_0x3a5cca];return _0x41efc9;}function a78_0x4c4f(){const _0x425e37=['173826ebNdih','object','getOne','20POJHDJ','dataset_','data\x20aggregate\x20--params.aggregate[','string','\x22.\x20','env','1090935yJjMXj','isArray','update','bff','553176wcxiWK','field','Available:\x20filter,\x20getOne,\x20create,\x20batchCreate,\x20update,\x20delete,\x20aggregate.','6523AkKYkg','accessKey','aggregate','SDK\x20client\x20not\x20initialized.\x20Call\x20initSdkClient()\x20first.','4516bvCKzX','390olzqfd','validation','getOne\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123}\x27','batchCreate','data\x20aggregate\x20--params.aggregate\x20must\x20be\x20an\x20array.','authMode','2950sUWVoW','8ETKaWK','models','26968wDhgoS','1950081ytPCjn','column','delete\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123}\x27','appCode','function','execute','invokeSource','237MucxXm','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','268pJrkgE'];a78_0x4c4f=function(){return _0x425e37;};return a78_0x4c4f();}export async function executeSdkSql(_0x1abfd9,_0x1ed9b4){const _0xbe72ec=ensureClient();return _0xbe72ec['sql']['execute']({'sqlCode':_0x1abfd9,'params':_0x1ed9b4});}export async function executeSdkBff(_0x47c966,_0x3a9703){const _0x14c99d=a78_0x41ef,_0x468698=ensureClient();return _0x468698[_0x14c99d(0xa6)][_0x14c99d(0x95)]({'scriptName':_0x47c966,'params':_0x3a9703});}
1
+ (function(_0x369bee,_0x40c748){const _0x2c4ced=a78_0x2552,_0x3fc911=_0x369bee();while(!![]){try{const _0x297883=-parseInt(_0x2c4ced(0x18e))/0x1*(-parseInt(_0x2c4ced(0x197))/0x2)+-parseInt(_0x2c4ced(0x19f))/0x3+-parseInt(_0x2c4ced(0x1b0))/0x4*(parseInt(_0x2c4ced(0x196))/0x5)+parseInt(_0x2c4ced(0x19d))/0x6+parseInt(_0x2c4ced(0x193))/0x7+-parseInt(_0x2c4ced(0x1b1))/0x8*(parseInt(_0x2c4ced(0x19a))/0x9)+-parseInt(_0x2c4ced(0x1ac))/0xa*(-parseInt(_0x2c4ced(0x19e))/0xb);if(_0x297883===_0x40c748)break;else _0x3fc911['push'](_0x3fc911['shift']());}catch(_0x3b7be2){_0x3fc911['push'](_0x3fc911['shift']());}}}(a78_0x2aa9,0xa8727));function a78_0x2aa9(){const _0x4c9272=['accessKey','SDK\x20model\x20does\x20not\x20support\x20operation\x20\x22','dataset_','10234880nDrEJW','aggregate','\x22.\x20','column','785548HgfhHt','2699568mkTeVZ','validation','appCode','18ETbiYw','trim','models','Available:\x20filter,\x20getOne,\x20create,\x20batchCreate,\x20update,\x20delete,\x20aggregate.','update','8778763HVVIuh','string','batchCreate','35ZdGJWe','7516mKsnkY','isArray','field','27tqrjBe','SDK\x20client\x20not\x20initialized.\x20Call\x20initSdkClient()\x20first.','map','1329294SFeAOT','22rumVWv','1539816xrbXxc','data\x20aggregate\x20--params.aggregate[','env','delete','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','delete\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123}\x27','invokeSource','object','getOne\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123}\x27','getOne'];a78_0x2aa9=function(){return _0x4c9272;};return a78_0x2aa9();}import{createClient}from'@lovrabet/sdk';import{PRODUCT_CONFIG}from'../constant/product.js';import{CliErrors}from'../errors.js';function a78_0x2552(_0x2c579a,_0x2e8b3a){_0x2c579a=_0x2c579a-0x18e;const _0x2aa90f=a78_0x2aa9();let _0x255256=_0x2aa90f[_0x2c579a];return _0x255256;}import{parseBatchCreateItemsFromParams}from'../utils/params.js';import{installLosslessJsonResponseParser}from'../utils/lossless-json.js';let _client,restoreResponseJsonParser;export function initSdkClient(_0x379c0c){const _0x3698e9=a78_0x2552;restoreResponseJsonParser??=installLosslessJsonResponseParser();try{_client=createClient({'appCode':_0x379c0c[_0x3698e9(0x1b3)],'env':_0x379c0c[_0x3698e9(0x1a1)],'authMode':_0x379c0c['authMode'],..._0x379c0c['accessKey']?{'accessKey':_0x379c0c[_0x3698e9(0x1a9)]}:{},'options':{'timeout':0x7530,'headers':{'X-Invoke-Source':PRODUCT_CONFIG[_0x3698e9(0x1a5)]}}});}catch(_0xfed32d){clearSdkClient();throw _0xfed32d;}}export function clearSdkClient(){_client=undefined,restoreResponseJsonParser?.(),restoreResponseJsonParser=undefined;}function ensureClient(){const _0x3469f5=a78_0x2552;if(!_client)throw new Error(_0x3469f5(0x19b));return _client;}function normalizeAggregateParams(_0x5c3b52){const _0x4a94ca=a78_0x2552,_0x177802=_0x5c3b52['aggregate'];if(_0x177802===undefined)return _0x5c3b52;if(!Array[_0x4a94ca(0x198)](_0x177802))throw CliErrors[_0x4a94ca(0x1b2)]('data\x20aggregate\x20--params.aggregate\x20must\x20be\x20an\x20array.');return{..._0x5c3b52,'aggregate':_0x177802[_0x4a94ca(0x19c)]((_0xec478a,_0x1835ae)=>{const _0x25bdda=_0x4a94ca;if(!_0xec478a||typeof _0xec478a!==_0x25bdda(0x1a6)||Array[_0x25bdda(0x198)](_0xec478a))throw CliErrors['validation'](_0x25bdda(0x1a0)+_0x1835ae+']\x20must\x20be\x20an\x20object.');const _0x4c25f7=_0xec478a[_0x25bdda(0x1af)]??_0xec478a[_0x25bdda(0x199)];if(typeof _0x4c25f7!==_0x25bdda(0x194)||_0x4c25f7[_0x25bdda(0x18f)]()==='')throw CliErrors[_0x25bdda(0x1b2)](_0x25bdda(0x1a0)+_0x1835ae+']\x20requires\x20\x22column\x22;\x20\x22field\x22\x20is\x20accepted\x20only\x20as\x20a\x20deprecated\x20alias.');const _0x1237dc={..._0xec478a,'column':_0x4c25f7};return delete _0x1237dc['field'],_0x1237dc;})};}export async function executeData(_0x402959,_0x183a4d,_0x50d1d5){const _0x325647=a78_0x2552,_0x18072a=ensureClient(),_0x1c5b03=_0x325647(0x1ab)+_0x402959,_0x559646=_0x18072a[_0x325647(0x190)][_0x1c5b03];if(!_0x559646||typeof _0x559646[_0x183a4d]!=='function')throw new Error(_0x325647(0x1aa)+_0x183a4d+_0x325647(0x1ae)+_0x325647(0x191));if(_0x183a4d===_0x325647(0x195))return _0x559646[_0x325647(0x195)](parseBatchCreateItemsFromParams(_0x50d1d5));const _0x3a80cb=_0x50d1d5!==undefined&&_0x50d1d5!==null&&!Array['isArray'](_0x50d1d5)?_0x50d1d5:{};switch(_0x183a4d){case _0x325647(0x1a8):{const _0x228269=_0x3a80cb['id'];if(_0x228269===undefined||_0x228269===null)throw new Error(_0x325647(0x1a7));return _0x559646[_0x325647(0x1a8)](_0x228269);}case _0x325647(0x192):{const {id:_0x18d118,..._0xd0b147}=_0x3a80cb;if(_0x18d118===undefined||_0x18d118===null)throw new Error(_0x325647(0x1a3));return _0x559646[_0x325647(0x192)](_0x18d118,_0xd0b147);}case _0x325647(0x1a2):{const _0x4044da=_0x3a80cb['id'];if(_0x4044da===undefined||_0x4044da===null)throw new Error(_0x325647(0x1a4));return _0x559646[_0x325647(0x1a2)](_0x4044da);}case'aggregate':return _0x559646[_0x325647(0x1ad)](normalizeAggregateParams(_0x3a80cb));default:return _0x559646[_0x183a4d](_0x3a80cb);}}export async function executeSdkSql(_0x41273d,_0xfc9c85){const _0xbe4d9a=ensureClient();return _0xbe4d9a['sql']['execute']({'sqlCode':_0x41273d,'params':_0xfc9c85});}export async function executeSdkBff(_0x47c2fd,_0x393a90){const _0x3408ce=ensureClient();return _0x3408ce['bff']['execute']({'scriptName':_0x47c2fd,'params':_0x393a90});}
package/lib/errors.js CHANGED
@@ -1 +1 @@
1
- const a79_0x38ee43=a79_0x1263;(function(_0x245808,_0x5be826){const _0x403fe3=a79_0x1263,_0x3b5d83=_0x245808();while(!![]){try{const _0xa4e09=-parseInt(_0x403fe3(0x1b2))/0x1+parseInt(_0x403fe3(0x1a9))/0x2+parseInt(_0x403fe3(0x1ae))/0x3*(parseInt(_0x403fe3(0x1af))/0x4)+-parseInt(_0x403fe3(0x1ab))/0x5+parseInt(_0x403fe3(0x1ad))/0x6*(-parseInt(_0x403fe3(0x1b0))/0x7)+-parseInt(_0x403fe3(0x1b5))/0x8*(-parseInt(_0x403fe3(0x1b4))/0x9)+-parseInt(_0x403fe3(0x1b6))/0xa;if(_0xa4e09===_0x5be826)break;else _0x3b5d83['push'](_0x3b5d83['shift']());}catch(_0x3fa2eb){_0x3b5d83['push'](_0x3b5d83['shift']());}}}(a79_0x31d3,0x54915));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':'Configure\x20accessKey\x20in\x20'+PRODUCT_CONFIG[a79_0x38ee43(0x1ac)]+'\x20or\x20run\x20`'+CLI_BIN_NAME+a79_0x38ee43(0x1aa),'configMissingHint':'Set\x20appcode\x20via\x20--appcode\x20or\x20'+PRODUCT_CONFIG['newConfigFileName']+'.','notInProjectHint':'Run\x20this\x20command\x20inside\x20a\x20directory\x20with\x20a\x20'+PRODUCT_CONFIG[a79_0x38ee43(0x1ac)]+a79_0x38ee43(0x1b3)});export const CliErrors={...baseCliErrors,'rateLimited':(_0x3ecc09,_0x18a0c4)=>new CliError(a79_0x38ee43(0x1b1),0x2,_0x3ecc09,_0x18a0c4)};function a79_0x1263(_0x378bee,_0x59c2a5){_0x378bee=_0x378bee-0x1a9;const _0x31d37d=a79_0x31d3();let _0x126350=_0x31d37d[_0x378bee];return _0x126350;}function a79_0x31d3(){const _0x4d4829=['\x20file.','18KfsuzR','2513240IejptV','592520BLcvYC','656546vLWvab','\x20auth\x20login`.','1966350XdeJeq','newConfigFileName','438IdlLsQ','2415qRPLyx','3056jsbRSZ','13895Hqmxoe','rate_limited','627787lbKpjg'];a79_0x31d3=function(){return _0x4d4829;};return a79_0x31d3();}
1
+ const a79_0x552a3b=a79_0x53c1;(function(_0x57616d,_0x451776){const _0x501ae6=a79_0x53c1,_0x2e0782=_0x57616d();while(!![]){try{const _0x4d4e4c=parseInt(_0x501ae6(0xf1))/0x1*(-parseInt(_0x501ae6(0xe4))/0x2)+parseInt(_0x501ae6(0xe3))/0x3+-parseInt(_0x501ae6(0xf0))/0x4*(-parseInt(_0x501ae6(0xee))/0x5)+parseInt(_0x501ae6(0xf4))/0x6+-parseInt(_0x501ae6(0xe7))/0x7+parseInt(_0x501ae6(0xf2))/0x8*(-parseInt(_0x501ae6(0xed))/0x9)+-parseInt(_0x501ae6(0xe6))/0xa*(-parseInt(_0x501ae6(0xe5))/0xb);if(_0x4d4e4c===_0x451776)break;else _0x2e0782['push'](_0x2e0782['shift']());}catch(_0x5f5cbc){_0x2e0782['push'](_0x2e0782['shift']());}}}(a79_0x3807,0xdac25));import{CliError,createCliErrors}from'@lovrabet/cli-framework';function a79_0x53c1(_0x198b6f,_0x5ecede){_0x198b6f=_0x198b6f-0xe3;const _0x380790=a79_0x3807();let _0x53c147=_0x380790[_0x198b6f];return _0x53c147;}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_0x552a3b(0xeb)+PRODUCT_CONFIG[a79_0x552a3b(0xec)]+a79_0x552a3b(0xe8)+CLI_BIN_NAME+a79_0x552a3b(0xf3),'configMissingHint':a79_0x552a3b(0xe9)+PRODUCT_CONFIG[a79_0x552a3b(0xec)]+'.','notInProjectHint':a79_0x552a3b(0xea)+PRODUCT_CONFIG[a79_0x552a3b(0xec)]+a79_0x552a3b(0xef)});export const CliErrors={...baseCliErrors,'rateLimited':(_0x3ebcd3,_0x21637d)=>new CliError('rate_limited',0x2,_0x3ebcd3,_0x21637d)};function a79_0x3807(){const _0xc68097=['38579sxQknV','104UvvrcS','\x20auth\x20login`.','1880130StrRsn','1566795qrQcpp','2sQFYmZ','55RjYOpd','3360550gGPhaC','4427185GoYkVb','\x20or\x20run\x20`','Set\x20appcode\x20via\x20--appcode\x20or\x20','Run\x20this\x20command\x20inside\x20a\x20directory\x20with\x20a\x20','Configure\x20accessKey\x20in\x20','newConfigFileName','761517snzfcE','151145dGEowq','\x20file.','20MRPyJj'];a79_0x3807=function(){return _0xc68097;};return a79_0x3807();}
@@ -1 +1 @@
1
- (function(_0x267cbc,_0x59b5df){var _0x1f21c4=a80_0xf463,_0x2be1f7=_0x267cbc();while(!![]){try{var _0x128516=parseInt(_0x1f21c4(0x1cf))/0x1+parseInt(_0x1f21c4(0x1d1))/0x2+-parseInt(_0x1f21c4(0x1cd))/0x3*(parseInt(_0x1f21c4(0x1ca))/0x4)+parseInt(_0x1f21c4(0x1d3))/0x5*(parseInt(_0x1f21c4(0x1d2))/0x6)+parseInt(_0x1f21c4(0x1ce))/0x7*(-parseInt(_0x1f21c4(0x1cb))/0x8)+parseInt(_0x1f21c4(0x1d0))/0x9+-parseInt(_0x1f21c4(0x1cc))/0xa;if(_0x128516===_0x59b5df)break;else _0x2be1f7['push'](_0x2be1f7['shift']());}catch(_0x3c6646){_0x2be1f7['push'](_0x2be1f7['shift']());}}}(a80_0x25e5,0x4fdd5));function a80_0xf463(_0x2022c5,_0x115270){_0x2022c5=_0x2022c5-0x1ca;var _0x25e5b3=a80_0x25e5();var _0xf463ca=_0x25e5b3[_0x2022c5];return _0xf463ca;}import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';import{buildAllFlags as a80_0x2e3a4b}from'@lovrabet/cli-framework';export function buildAllFlags(_0x4f9bd6){return a80_0x2e3a4b(_0x4f9bd6,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});}function a80_0x25e5(){var _0x5eca69=['66laJujj','66745khteyy','99972FqrcPx','680erGxwT','8820290UbsrkZ','9GDSJpH','21189XcYkJb','567410CWXrNN','2421747hjpNAh','1116192unUeCK'];a80_0x25e5=function(){return _0x5eca69;};return a80_0x25e5();}
1
+ (function(_0x17dc58,_0x4f86a3){var _0x4fcc0d=a80_0x13e3,_0x48b066=_0x17dc58();while(!![]){try{var _0x68f36=-parseInt(_0x4fcc0d(0x111))/0x1+parseInt(_0x4fcc0d(0x110))/0x2*(-parseInt(_0x4fcc0d(0x10f))/0x3)+-parseInt(_0x4fcc0d(0x109))/0x4+parseInt(_0x4fcc0d(0x10c))/0x5*(parseInt(_0x4fcc0d(0x10b))/0x6)+parseInt(_0x4fcc0d(0x10e))/0x7+parseInt(_0x4fcc0d(0x10a))/0x8+-parseInt(_0x4fcc0d(0x10d))/0x9;if(_0x68f36===_0x4f86a3)break;else _0x48b066['push'](_0x48b066['shift']());}catch(_0x5baa49){_0x48b066['push'](_0x48b066['shift']());}}}(a80_0x5164,0x3d165));function a80_0x13e3(_0x5a11f1,_0x2e4f7f){_0x5a11f1=_0x5a11f1-0x109;var _0x516424=a80_0x5164();var _0x13e3e7=_0x516424[_0x5a11f1];return _0x13e3e7;}function a80_0x5164(){var _0x4813e6=['20XKkIjn','67860PdZOEh','3157140CGPPdo','906JYfaKd','1902kOZyBL','104345HVSRIL','1277804kqGsdA','3300184BuKJYy','157812urDCMB'];a80_0x5164=function(){return _0x4813e6;};return a80_0x5164();}import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';import{buildAllFlags as a80_0x3d28a0}from'@lovrabet/cli-framework';export function buildAllFlags(_0x452b81){return a80_0x3d28a0(_0x452b81,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});}
@@ -1 +1 @@
1
- (function(_0x3d23bc,_0xfa29c5){const _0x85d4a2=a81_0x264b,_0x48f140=_0x3d23bc();while(!![]){try{const _0x9243af=parseInt(_0x85d4a2(0x1ac))/0x1*(parseInt(_0x85d4a2(0x1b6))/0x2)+-parseInt(_0x85d4a2(0x1b1))/0x3*(parseInt(_0x85d4a2(0x1b8))/0x4)+parseInt(_0x85d4a2(0x1b0))/0x5+-parseInt(_0x85d4a2(0x1b4))/0x6*(-parseInt(_0x85d4a2(0x1b3))/0x7)+-parseInt(_0x85d4a2(0x1af))/0x8*(parseInt(_0x85d4a2(0x1b7))/0x9)+parseInt(_0x85d4a2(0x1ad))/0xa*(-parseInt(_0x85d4a2(0x1ab))/0xb)+parseInt(_0x85d4a2(0x1ae))/0xc;if(_0x9243af===_0xfa29c5)break;else _0x48f140['push'](_0x48f140['shift']());}catch(_0x53decc){_0x48f140['push'](_0x48f140['shift']());}}}(a81_0x15d7,0x297ad));function a81_0x264b(_0x24305b,_0x3bd466){_0x24305b=_0x24305b-0x1ab;const _0x15d709=a81_0x15d7();let _0x264b91=_0x15d709[_0x24305b];return _0x264b91;}function a81_0x15d7(){const _0x413291=['5937612HwxWXV','472520iguVLd','210195sMUFxA','756879KQgXxB','body','169960bMmhAz','78zbbsyL','description','4794GqymeS','45BMeWJk','4SCdWMj','99IslqeT','34cvitPP','240510GqDevc'];a81_0x15d7=function(){return _0x413291;};return a81_0x15d7();}export function dryRun(_0x1fd3f8,_0x2723a1){const _0x2ff591={'method':_0x1fd3f8,'url':_0x2723a1},_0x3b1150={'body'(_0x280807){const _0x1b2ade=a81_0x264b;return _0x2ff591[_0x1b2ade(0x1b2)]=_0x280807,_0x3b1150;},'description'(_0x44a8a9){const _0x3214d8=a81_0x264b;return _0x2ff591[_0x3214d8(0x1b5)]=_0x44a8a9,_0x3b1150;},'build'(){return{..._0x2ff591};}};return _0x3b1150;}
1
+ function a81_0x1a79(){const _0x7e75df=['258FqaSmp','1841cTTzLb','6528zUDiCZ','1285446muNSpk','968ntGbUq','body','1964mSWSbb','description','4137195lOxicG','12490090AIpwrH','5757YBZojT','7203492vbYgBS'];a81_0x1a79=function(){return _0x7e75df;};return a81_0x1a79();}function a81_0x341b(_0x208240,_0x2f602c){_0x208240=_0x208240-0xff;const _0x1a79ae=a81_0x1a79();let _0x341b01=_0x1a79ae[_0x208240];return _0x341b01;}(function(_0x1ff17b,_0x4d9ae8){const _0x103e5e=a81_0x341b,_0x317597=_0x1ff17b();while(!![]){try{const _0x45b364=parseInt(_0x103e5e(0x105))/0x1*(parseInt(_0x103e5e(0x103))/0x2)+-parseInt(_0x103e5e(0x101))/0x3*(parseInt(_0x103e5e(0x109))/0x4)+parseInt(_0x103e5e(0xff))/0x5+parseInt(_0x103e5e(0x106))/0x6+-parseInt(_0x103e5e(0x104))/0x7*(-parseInt(_0x103e5e(0x107))/0x8)+parseInt(_0x103e5e(0x102))/0x9+-parseInt(_0x103e5e(0x100))/0xa;if(_0x45b364===_0x4d9ae8)break;else _0x317597['push'](_0x317597['shift']());}catch(_0x291237){_0x317597['push'](_0x317597['shift']());}}}(a81_0x1a79,0x801dd));export function dryRun(_0x47f2ff,_0x4e7ec8){const _0x263e7e={'method':_0x47f2ff,'url':_0x4e7ec8},_0x54b97d={'body'(_0x4f4519){const _0x43490c=a81_0x341b;return _0x263e7e[_0x43490c(0x108)]=_0x4f4519,_0x54b97d;},'description'(_0x13128e){const _0x173304=a81_0x341b;return _0x263e7e[_0x173304(0x10a)]=_0x13128e,_0x54b97d;},'build'(){return{..._0x263e7e};}};return _0x54b97d;}
@@ -1 +1 @@
1
- const a82_0x3f4440=a82_0x2780;function a82_0x2780(_0x3b6f3a,_0x406d10){_0x3b6f3a=_0x3b6f3a-0x1bd;const _0x29b4c5=a82_0x29b4();let _0x278026=_0x29b4c5[_0x3b6f3a];return _0x278026;}(function(_0x3084a0,_0x57c29a){const _0x13da74=a82_0x2780,_0x54b587=_0x3084a0();while(!![]){try{const _0x582d45=parseInt(_0x13da74(0x1c4))/0x1+-parseInt(_0x13da74(0x1c3))/0x2*(parseInt(_0x13da74(0x1c1))/0x3)+-parseInt(_0x13da74(0x1c5))/0x4+-parseInt(_0x13da74(0x1be))/0x5+parseInt(_0x13da74(0x1bd))/0x6*(parseInt(_0x13da74(0x1c2))/0x7)+-parseInt(_0x13da74(0x1c0))/0x8+parseInt(_0x13da74(0x1c6))/0x9;if(_0x582d45===_0x57c29a)break;else _0x54b587['push'](_0x54b587['shift']());}catch(_0xeaeabe){_0x54b587['push'](_0x54b587['shift']());}}}(a82_0x29b4,0x6bbda));import{createFlagHelpers}from'@lovrabet/cli-framework';function a82_0x29b4(){const _0x422eed=['2294155KCpnRz','parseFlags','4104752tJqOND','12AOvPCY','161LYGPSM','177884iGjSyN','72008PgnLRg','630876tPgtsV','12234852tOaCpJ','validateFlags','129204DCeSZu'];a82_0x29b4=function(){return _0x422eed;};return a82_0x29b4();}import{CliErrors}from'../errors.js';const helpers=createFlagHelpers(CliErrors);export const parseFlags=helpers[a82_0x3f4440(0x1bf)];export const validateFlags=helpers[a82_0x3f4440(0x1c7)];
1
+ function a82_0x21fa(_0x2b1a09,_0x39725d){_0x2b1a09=_0x2b1a09-0x74;const _0x238c73=a82_0x238c();let _0x21fab7=_0x238c73[_0x2b1a09];return _0x21fab7;}const a82_0x3eeb88=a82_0x21fa;(function(_0x4fb458,_0x21285e){const _0x569347=a82_0x21fa,_0xdbb4d1=_0x4fb458();while(!![]){try{const _0x3a067f=-parseInt(_0x569347(0x7c))/0x1+parseInt(_0x569347(0x74))/0x2*(parseInt(_0x569347(0x7e))/0x3)+parseInt(_0x569347(0x77))/0x4+-parseInt(_0x569347(0x7a))/0x5*(parseInt(_0x569347(0x7b))/0x6)+-parseInt(_0x569347(0x7f))/0x7+parseInt(_0x569347(0x7d))/0x8*(parseInt(_0x569347(0x78))/0x9)+-parseInt(_0x569347(0x76))/0xa*(-parseInt(_0x569347(0x75))/0xb);if(_0x3a067f===_0x21285e)break;else _0xdbb4d1['push'](_0xdbb4d1['shift']());}catch(_0x58b2fb){_0xdbb4d1['push'](_0xdbb4d1['shift']());}}}(a82_0x238c,0x95d14));import{createFlagHelpers}from'@lovrabet/cli-framework';function a82_0x238c(){const _0x1ece9f=['743034rXlUeV','8xHgYpR','3454419WXxLRU','864381Jgmmot','parseFlags','2SJQBrS','9889aoPyJL','530VqLcQU','701964vLzXpp','1807596tXqbZJ','validateFlags','10yJiEPx','285858hjKOld'];a82_0x238c=function(){return _0x1ece9f;};return a82_0x238c();}import{CliErrors}from'../errors.js';const helpers=createFlagHelpers(CliErrors);export const parseFlags=helpers[a82_0x3eeb88(0x80)];export const validateFlags=helpers[a82_0x3eeb88(0x79)];