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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (128) hide show
  1. package/lib/cli.js +1 -1
  2. package/lib/commands/api-doc/index.js +1 -1
  3. package/lib/commands/app/cache.js +1 -1
  4. package/lib/commands/app/definitions.js +1 -1
  5. package/lib/commands/app/eligibility.js +1 -1
  6. package/lib/commands/app/mock-loader.js +1 -1
  7. package/lib/commands/app/remote-source.js +1 -1
  8. package/lib/commands/app/shared.js +1 -1
  9. package/lib/commands/app-config/get.js +1 -1
  10. package/lib/commands/app-config/index.js +1 -1
  11. package/lib/commands/artifact/index.js +1 -1
  12. package/lib/commands/auth/device.js +1 -1
  13. package/lib/commands/auth/index.js +1 -1
  14. package/lib/commands/auth/prompt.js +1 -1
  15. package/lib/commands/bff/detail.js +1 -1
  16. package/lib/commands/bff/exec.js +1 -1
  17. package/lib/commands/bff/index.js +1 -1
  18. package/lib/commands/cli-skill/index.js +1 -1
  19. package/lib/commands/common/config-policy.js +1 -1
  20. package/lib/commands/common/constraints.js +1 -1
  21. package/lib/commands/common/flags.js +1 -1
  22. package/lib/commands/common/local-file.js +1 -1
  23. package/lib/commands/config/definitions.js +1 -1
  24. package/lib/commands/config/shared.js +1 -1
  25. package/lib/commands/data/index.js +1 -1
  26. package/lib/commands/dataset/detail.js +1 -1
  27. package/lib/commands/dataset/index.js +1 -1
  28. package/lib/commands/dataset/list.js +1 -1
  29. package/lib/commands/dataset/sdk-doc.js +1 -1
  30. package/lib/commands/doctor.js +1 -1
  31. package/lib/commands/file/index.js +1 -1
  32. package/lib/commands/init.js +1 -1
  33. package/lib/commands/kb/index.js +1 -1
  34. package/lib/commands/logs/index.js +1 -1
  35. package/lib/commands/ocr/index.js +1 -1
  36. package/lib/commands/personal-bff/index.js +1 -1
  37. package/lib/commands/registry.js +1 -1
  38. package/lib/commands/schedule/index.js +1 -1
  39. package/lib/commands/schema.js +1 -1
  40. package/lib/commands/service/dynamic.js +1 -1
  41. package/lib/commands/service/function-name-adapter.js +1 -1
  42. package/lib/commands/service/index.js +1 -1
  43. package/lib/commands/service/registry.js +1 -1
  44. package/lib/commands/skill/commands/create.js +1 -1
  45. package/lib/commands/skill/commands/install.js +1 -1
  46. package/lib/commands/skill/commands/list.js +1 -1
  47. package/lib/commands/skill/commands/push.js +1 -1
  48. package/lib/commands/skill/commands/validate.js +1 -1
  49. package/lib/commands/skill/flags.js +1 -1
  50. package/lib/commands/skill/index.js +1 -1
  51. package/lib/commands/skill/manifest-helpers.js +1 -1
  52. package/lib/commands/skill/push-execute.js +1 -1
  53. package/lib/commands/skill/push-flow-helpers.js +1 -1
  54. package/lib/commands/skill/push-retarget.js +1 -1
  55. package/lib/commands/skill/scopes.js +1 -1
  56. package/lib/commands/skill/summary.js +1 -1
  57. package/lib/commands/skill/templates.js +1 -1
  58. package/lib/commands/skill/validate.js +1 -1
  59. package/lib/commands/sql/detail.js +1 -1
  60. package/lib/commands/sql/exec.js +1 -1
  61. package/lib/commands/sql/index.js +1 -1
  62. package/lib/commands/update.js +1 -1
  63. package/lib/commands/workspace/index.js +1 -1
  64. package/lib/config/schema.js +1 -1
  65. package/lib/constant/app.js +1 -1
  66. package/lib/constant/auth-mode.js +1 -1
  67. package/lib/constant/cli.js +1 -1
  68. package/lib/constant/defaults.js +1 -1
  69. package/lib/constant/distribution.js +1 -1
  70. package/lib/constant/domain.js +1 -1
  71. package/lib/constant/env.js +1 -1
  72. package/lib/constant/output.js +1 -1
  73. package/lib/constant/product.js +1 -1
  74. package/lib/constant/risk.js +1 -1
  75. package/lib/constant/url.js +1 -1
  76. package/lib/context.js +1 -1
  77. package/lib/core/api-client.js +1 -1
  78. package/lib/core/db-resolver.js +1 -1
  79. package/lib/core/sdk-client.js +1 -1
  80. package/lib/errors.js +1 -1
  81. package/lib/framework/build-all-flags.js +1 -1
  82. package/lib/framework/dryrun.js +1 -1
  83. package/lib/framework/flags.js +1 -1
  84. package/lib/framework/help.js +1 -1
  85. package/lib/framework/index.js +1 -1
  86. package/lib/framework/output.js +1 -1
  87. package/lib/framework/preparse.js +1 -1
  88. package/lib/framework/rate-limit.js +1 -1
  89. package/lib/framework/raw-flags.js +1 -1
  90. package/lib/framework/response.js +1 -1
  91. package/lib/framework/runner-confirmation.js +1 -1
  92. package/lib/framework/runner-error.js +1 -1
  93. package/lib/framework/runner.js +1 -1
  94. package/lib/framework/schema-export.js +1 -1
  95. package/lib/framework/service-order.js +1 -1
  96. package/lib/framework/types.js +1 -1
  97. package/lib/generated/build-info.d.ts +4 -4
  98. package/lib/generated/build-info.js +1 -1
  99. package/lib/help.js +1 -1
  100. package/lib/runtime/event.js +1 -1
  101. package/lib/runtime/index.js +1 -1
  102. package/lib/runtime/queue.js +1 -1
  103. package/lib/runtime/resolve.js +1 -1
  104. package/lib/skills/npx-skills-add.js +1 -1
  105. package/lib/skills/runtime-skill-sync/constants.js +1 -1
  106. package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
  107. package/lib/skills/runtime-skill-sync/hashing.js +1 -1
  108. package/lib/skills/runtime-skill-sync/install-target.js +1 -1
  109. package/lib/skills/runtime-skill-sync/links.js +1 -1
  110. package/lib/skills/runtime-skill-sync/list-local.js +1 -1
  111. package/lib/skills/runtime-skill-sync/local-files.js +1 -1
  112. package/lib/skills/runtime-skill-sync/materialize.js +1 -1
  113. package/lib/skills/runtime-skill-sync/metadata.js +1 -1
  114. package/lib/skills/runtime-skill-sync/paths.js +1 -1
  115. package/lib/skills/runtime-skill-sync/push.js +1 -1
  116. package/lib/skills/runtime-skill-sync/scopes.js +1 -1
  117. package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
  118. package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
  119. package/lib/skills/runtime-skill-sync.js +1 -1
  120. package/lib/utils/apply-jq-filter.js +1 -1
  121. package/lib/utils/logger.js +1 -1
  122. package/lib/utils/lossless-json.js +1 -1
  123. package/lib/utils/params.js +1 -1
  124. package/lib/utils/platform.js +1 -1
  125. package/lib/utils/update-notice.js +1 -1
  126. package/lib/utils/version.js +1 -1
  127. package/lib/utils/write-cli-side-channel.js +1 -1
  128. package/package.json +1 -1
@@ -1 +1 @@
1
- const a66_0x49097b=a66_0x5977;function a66_0x5977(_0x2887c1,_0x544497){_0x2887c1=_0x2887c1-0x97;const _0x594345=a66_0x5943();let _0x59775c=_0x594345[_0x2887c1];return _0x59775c;}(function(_0x2b6acd,_0x632d4a){const _0xd1f545=a66_0x5977,_0xb40fd0=_0x2b6acd();while(!![]){try{const _0x3a336a=-parseInt(_0xd1f545(0x9a))/0x1*(-parseInt(_0xd1f545(0x9d))/0x2)+parseInt(_0xd1f545(0xae))/0x3*(-parseInt(_0xd1f545(0xa8))/0x4)+parseInt(_0xd1f545(0xc6))/0x5*(parseInt(_0xd1f545(0xb2))/0x6)+parseInt(_0xd1f545(0xba))/0x7*(-parseInt(_0xd1f545(0xb3))/0x8)+parseInt(_0xd1f545(0xca))/0x9*(parseInt(_0xd1f545(0xaf))/0xa)+parseInt(_0xd1f545(0xa0))/0xb+parseInt(_0xd1f545(0xa9))/0xc*(-parseInt(_0xd1f545(0xb6))/0xd);if(_0x3a336a===_0x632d4a)break;else _0xb40fd0['push'](_0xb40fd0['shift']());}catch(_0xe68351){_0xb40fd0['push'](_0xb40fd0['shift']());}}}(a66_0x5943,0xa3a0c));import{PRODUCT_CONFIG}from'../constant/product.js';import{LOVRABET_NPM_PACKAGE_NAME}from'../constant/distribution.js';export const CLI_BIN_NAME=PRODUCT_CONFIG[a66_0x49097b(0xa5)];export const CLI_DISPLAY_NAME=PRODUCT_CONFIG['cliDisplayName'];export const NPM_PACKAGE_NAME=LOVRABET_NPM_PACKAGE_NAME;function a66_0x5943(){const _0x252a02=['verbose','<name>','3702RzygZv','48568pKGGyJ','name','params','494dckKKw','production\x20|\x20development\x20|\x20daily','boolean','Clear\x20output','1533zAmadW','Alias\x20for\x20--non-interactive','Output\x20format','meowKey','Use\x20global\x20config\x20scope','app','env','map','string','Verbose\x20output','dryRun','Select\x20app\x20profile\x20by\x20name','8150VOnggn','Record\x20ID','nonInteractive','<code>','9QKacjR','Force\x20non-interactive\x20mode\x20(CI)','Name\x20filter','help','sqlcode','SQL\x20query\x20code','2317fYZphg','Show\x20help','type','108HmZaLb','format','Skip\x20confirmation\x20for\x20high-risk\x20writes','4443769WKCzFt','Environment','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20implies\x20--format\x20json\x20when\x20current\x20format\x20is\x20pretty)','yes','appcode','cliBinName','JSON\x20params\x20for\x20execute\x20commands','Override\x20appcode','4bKqfXo','17736TZbMpY','clear','dry-run','non-interactive','global','1673961jYtNlD','10791130kqxODJ'];a66_0x5943=function(){return _0x252a02;};return a66_0x5943();}export const GLOBAL_FLAGS=[{'name':a66_0x49097b(0xa4),'meowKey':a66_0x49097b(0xa4),'type':a66_0x49097b(0xc2),'description':a66_0x49097b(0xa7),'hint':a66_0x49097b(0xc9)},{'name':a66_0x49097b(0xbf),'meowKey':a66_0x49097b(0xbf),'type':a66_0x49097b(0xc2),'description':a66_0x49097b(0xc5),'hint':a66_0x49097b(0xb1)},{'name':a66_0x49097b(0xc0),'meowKey':'env','type':a66_0x49097b(0xc2),'description':a66_0x49097b(0xa1),'hint':a66_0x49097b(0xb7)},{'name':a66_0x49097b(0x9e),'meowKey':a66_0x49097b(0x9e),'type':a66_0x49097b(0xc2),'description':a66_0x49097b(0xbc),'hint':'json\x20|\x20pretty\x20|\x20compress'},{'name':'jq','meowKey':'jq','type':a66_0x49097b(0xc2),'description':a66_0x49097b(0xa2),'hint':'<expr>'},{'name':a66_0x49097b(0xab),'meowKey':a66_0x49097b(0xc4),'type':a66_0x49097b(0xb8),'description':'Preview\x20operation\x20without\x20executing'},{'name':a66_0x49097b(0xa3),'meowKey':a66_0x49097b(0xa3),'type':a66_0x49097b(0xb8),'description':a66_0x49097b(0x9f)},{'name':'non-interactive','meowKey':a66_0x49097b(0xc8),'type':'boolean','description':a66_0x49097b(0xcb)},{'name':a66_0x49097b(0xad),'meowKey':a66_0x49097b(0xad),'type':a66_0x49097b(0xb8),'description':a66_0x49097b(0xbe)},{'name':'ci','meowKey':'ci','type':a66_0x49097b(0xb8),'description':a66_0x49097b(0xbb),'hidden':!![]},{'name':'help','meowKey':a66_0x49097b(0x97),'type':'boolean','description':a66_0x49097b(0x9b)},{'name':'id','meowKey':'id','type':a66_0x49097b(0xc2),'description':a66_0x49097b(0xc7),'hidden':!![]},{'name':a66_0x49097b(0xb4),'meowKey':'name','type':a66_0x49097b(0xc2),'description':a66_0x49097b(0xcc),'hidden':!![]},{'name':a66_0x49097b(0x98),'meowKey':a66_0x49097b(0x98),'type':a66_0x49097b(0xc2),'description':a66_0x49097b(0x99),'hidden':!![]},{'name':'params','meowKey':a66_0x49097b(0xb5),'type':'string','description':a66_0x49097b(0xa6),'hidden':!![]},{'name':a66_0x49097b(0xb0),'meowKey':a66_0x49097b(0xb0),'type':a66_0x49097b(0xb8),'description':a66_0x49097b(0xc3),'hidden':!![]},{'name':a66_0x49097b(0xaa),'meowKey':a66_0x49097b(0xaa),'type':a66_0x49097b(0xb8),'description':a66_0x49097b(0xb9),'hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set([a66_0x49097b(0xa4),'app',a66_0x49097b(0xc0),a66_0x49097b(0x9e),'jq','dry-run',a66_0x49097b(0xa3),a66_0x49097b(0xac),'ci']);export function buildMeowFlags(){const _0xb459ea=a66_0x49097b;return Object['fromEntries'](GLOBAL_FLAGS[_0xb459ea(0xc1)](_0x420d69=>[_0x420d69[_0xb459ea(0xbd)],{'type':_0x420d69[_0xb459ea(0x9c)]}]));}
1
+ const a66_0x571f4a=a66_0x43e8;(function(_0xd582f3,_0x15cc65){const _0x4801f6=a66_0x43e8,_0x3a6a5c=_0xd582f3();while(!![]){try{const _0x16426b=parseInt(_0x4801f6(0x175))/0x1+-parseInt(_0x4801f6(0x179))/0x2*(-parseInt(_0x4801f6(0x18b))/0x3)+-parseInt(_0x4801f6(0x181))/0x4*(-parseInt(_0x4801f6(0x184))/0x5)+-parseInt(_0x4801f6(0x183))/0x6*(parseInt(_0x4801f6(0x189))/0x7)+-parseInt(_0x4801f6(0x17f))/0x8+parseInt(_0x4801f6(0x180))/0x9*(parseInt(_0x4801f6(0x193))/0xa)+parseInt(_0x4801f6(0x18a))/0xb;if(_0x16426b===_0x15cc65)break;else _0x3a6a5c['push'](_0x3a6a5c['shift']());}catch(_0x3b28e0){_0x3a6a5c['push'](_0x3a6a5c['shift']());}}}(a66_0x4723,0x29f8d));import{PRODUCT_CONFIG}from'../constant/product.js';import{LOVRABET_NPM_PACKAGE_NAME}from'../constant/distribution.js';export const CLI_BIN_NAME=PRODUCT_CONFIG[a66_0x571f4a(0x187)];export const CLI_DISPLAY_NAME=PRODUCT_CONFIG[a66_0x571f4a(0x196)];function a66_0x4723(){const _0x26328d=['Name\x20filter','cliDisplayName','env','fromEntries','string','yes','Force\x20non-interactive\x20mode\x20(CI)','<expr>','nonInteractive','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20implies\x20--format\x20json\x20when\x20current\x20format\x20is\x20pretty)','appcode','Output\x20format','Environment','Skip\x20confirmation\x20for\x20high-risk\x20writes','77595VHKLpX','format','help','global','10958eGBlna','Verbose\x20output','non-interactive','app','sqlcode','Select\x20app\x20profile\x20by\x20name','1430000xujOAH','63NBDPYn','35296PkkltK','SQL\x20query\x20code','30ITLwNv','35vWrqxi','type','JSON\x20params\x20for\x20execute\x20commands','cliBinName','dry-run','201215WoUszt','1082081qVlEJk','27RrFlve','Show\x20help','clear','json\x20|\x20pretty\x20|\x20compress','Preview\x20operation\x20without\x20executing','Override\x20appcode','meowKey','boolean','296210CvBFlq','verbose'];a66_0x4723=function(){return _0x26328d;};return a66_0x4723();}export const NPM_PACKAGE_NAME=LOVRABET_NPM_PACKAGE_NAME;export const GLOBAL_FLAGS=[{'name':a66_0x571f4a(0x171),'meowKey':a66_0x571f4a(0x171),'type':a66_0x571f4a(0x199),'description':a66_0x571f4a(0x190),'hint':'<code>'},{'name':a66_0x571f4a(0x17c),'meowKey':a66_0x571f4a(0x17c),'type':a66_0x571f4a(0x199),'description':a66_0x571f4a(0x17e),'hint':'<name>'},{'name':a66_0x571f4a(0x197),'meowKey':a66_0x571f4a(0x197),'type':a66_0x571f4a(0x199),'description':a66_0x571f4a(0x173),'hint':'production\x20|\x20development\x20|\x20daily'},{'name':'format','meowKey':a66_0x571f4a(0x176),'type':a66_0x571f4a(0x199),'description':a66_0x571f4a(0x172),'hint':a66_0x571f4a(0x18e)},{'name':'jq','meowKey':'jq','type':a66_0x571f4a(0x199),'description':a66_0x571f4a(0x19e),'hint':a66_0x571f4a(0x19c)},{'name':'dry-run','meowKey':'dryRun','type':a66_0x571f4a(0x192),'description':a66_0x571f4a(0x18f)},{'name':'yes','meowKey':a66_0x571f4a(0x19a),'type':a66_0x571f4a(0x192),'description':a66_0x571f4a(0x174)},{'name':a66_0x571f4a(0x17b),'meowKey':a66_0x571f4a(0x19d),'type':'boolean','description':a66_0x571f4a(0x19b)},{'name':a66_0x571f4a(0x178),'meowKey':'global','type':a66_0x571f4a(0x192),'description':'Use\x20global\x20config\x20scope'},{'name':'ci','meowKey':'ci','type':'boolean','description':'Alias\x20for\x20--non-interactive','hidden':!![]},{'name':a66_0x571f4a(0x177),'meowKey':'help','type':a66_0x571f4a(0x192),'description':a66_0x571f4a(0x18c)},{'name':'id','meowKey':'id','type':a66_0x571f4a(0x199),'description':'Record\x20ID','hidden':!![]},{'name':'name','meowKey':'name','type':a66_0x571f4a(0x199),'description':a66_0x571f4a(0x195),'hidden':!![]},{'name':a66_0x571f4a(0x17d),'meowKey':a66_0x571f4a(0x17d),'type':a66_0x571f4a(0x199),'description':a66_0x571f4a(0x182),'hidden':!![]},{'name':'params','meowKey':'params','type':a66_0x571f4a(0x199),'description':a66_0x571f4a(0x186),'hidden':!![]},{'name':'verbose','meowKey':a66_0x571f4a(0x194),'type':a66_0x571f4a(0x192),'description':a66_0x571f4a(0x17a),'hidden':!![]},{'name':a66_0x571f4a(0x18d),'meowKey':a66_0x571f4a(0x18d),'type':a66_0x571f4a(0x192),'description':'Clear\x20output','hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set([a66_0x571f4a(0x171),'app',a66_0x571f4a(0x197),'format','jq',a66_0x571f4a(0x188),a66_0x571f4a(0x19a),a66_0x571f4a(0x17b),'ci']);function a66_0x43e8(_0x17e16d,_0x10a6d4){_0x17e16d=_0x17e16d-0x171;const _0x472380=a66_0x4723();let _0x43e84f=_0x472380[_0x17e16d];return _0x43e84f;}export function buildMeowFlags(){const _0x368dc1=a66_0x571f4a;return Object[_0x368dc1(0x198)](GLOBAL_FLAGS['map'](_0x512f08=>[_0x512f08[_0x368dc1(0x191)],{'type':_0x512f08[_0x368dc1(0x185)]}]));}
@@ -1 +1 @@
1
- const a67_0x2e522a=a67_0x326e;(function(_0x484c6a,_0x559105){const _0x45c6ee=a67_0x326e,_0x32804d=_0x484c6a();while(!![]){try{const _0x49c447=parseInt(_0x45c6ee(0x80))/0x1+-parseInt(_0x45c6ee(0x7d))/0x2+parseInt(_0x45c6ee(0x7a))/0x3*(parseInt(_0x45c6ee(0x7c))/0x4)+parseInt(_0x45c6ee(0x84))/0x5*(parseInt(_0x45c6ee(0x7b))/0x6)+parseInt(_0x45c6ee(0x7e))/0x7+-parseInt(_0x45c6ee(0x79))/0x8*(-parseInt(_0x45c6ee(0x82))/0x9)+parseInt(_0x45c6ee(0x7f))/0xa*(-parseInt(_0x45c6ee(0x83))/0xb);if(_0x49c447===_0x559105)break;else _0x32804d['push'](_0x32804d['shift']());}catch(_0x5d94ff){_0x32804d['push'](_0x32804d['shift']());}}}(a67_0x47f3,0xf1bcb));export const DEFAULT_APP_PROFILE_NAME='main';function a67_0x326e(_0x48ac12,_0xec88be){_0x48ac12=_0x48ac12-0x77;const _0x47f35f=a67_0x47f3();let _0x326e1a=_0x47f35f[_0x48ac12];return _0x326e1a;}function a67_0x47f3(){const _0x501bb1=['12986750OfdQDN','2030QmefjT','868989rzMeDM','compress','5298552EkaVer','318175SkbQeM','8626520rJHYKa','write','en-US','16XAuKTT','174fCMdbc','6kHZRng','111824UtMgqu','773034tzntjr'];a67_0x47f3=function(){return _0x501bb1;};return a67_0x47f3();}export const DEFAULT_CONFIG_VALUES={'env':'production','format':a67_0x2e522a(0x81),'locale':a67_0x2e522a(0x78),'riskLevel':a67_0x2e522a(0x77)};export const DEFAULT_COMMAND_OUTPUT_FORMAT='compress';
1
+ const a67_0x1c1d01=a67_0x38c1;function a67_0x35e5(){const _0x5acf1e=['452868hyBNUe','8njSBWe','main','6114630hIVSUQ','24865cnOpfe','en-US','19130ImKdXV','write','309604VyKDnp','9OtSnAQ','292673dhjyaY','76139rkrGBf','318kbbJUY'];a67_0x35e5=function(){return _0x5acf1e;};return a67_0x35e5();}function a67_0x38c1(_0x28ab5b,_0x66a172){_0x28ab5b=_0x28ab5b-0x153;const _0x35e542=a67_0x35e5();let _0x38c16c=_0x35e542[_0x28ab5b];return _0x38c16c;}(function(_0x48a445,_0x5a58b7){const _0x4e4bb7=a67_0x38c1,_0x10fe80=_0x48a445();while(!![]){try{const _0x28cfab=-parseInt(_0x4e4bb7(0x15d))/0x1+parseInt(_0x4e4bb7(0x159))/0x2+parseInt(_0x4e4bb7(0x153))/0x3+-parseInt(_0x4e4bb7(0x15b))/0x4+parseInt(_0x4e4bb7(0x157))/0x5*(-parseInt(_0x4e4bb7(0x15f))/0x6)+parseInt(_0x4e4bb7(0x15e))/0x7*(parseInt(_0x4e4bb7(0x154))/0x8)+-parseInt(_0x4e4bb7(0x15c))/0x9*(-parseInt(_0x4e4bb7(0x156))/0xa);if(_0x28cfab===_0x5a58b7)break;else _0x10fe80['push'](_0x10fe80['shift']());}catch(_0x1cdd09){_0x10fe80['push'](_0x10fe80['shift']());}}}(a67_0x35e5,0x246e2));export const DEFAULT_APP_PROFILE_NAME=a67_0x1c1d01(0x155);export const DEFAULT_CONFIG_VALUES={'env':'production','format':'compress','locale':a67_0x1c1d01(0x158),'riskLevel':a67_0x1c1d01(0x15a)};export const DEFAULT_COMMAND_OUTPUT_FORMAT='compress';
@@ -1 +1 @@
1
- function a68_0x42d6(_0x1a1e7a,_0x5db797){_0x1a1e7a=_0x1a1e7a-0x13e;const _0x599afd=a68_0x599a();let _0x42d68a=_0x599afd[_0x1a1e7a];return _0x42d68a;}const a68_0x41a1bb=a68_0x42d6;function a68_0x599a(){const _0x57b6a3=['3247040kOpoAC','2538942UVXNWv','5GHQUXR','36CzBsxL','2460198jFyEYq','3959802rYYgZS','skillSource','24Nvmanw','38141aoTxdM','9177296AyFoVc','npmRegistryBaseUrl','1806796FuQumQ'];a68_0x599a=function(){return _0x57b6a3;};return a68_0x599a();}(function(_0x5e4df9,_0x5a399c){const _0x206e27=a68_0x42d6,_0x48a523=_0x5e4df9();while(!![]){try{const _0x4da9cf=parseInt(_0x206e27(0x142))/0x1*(parseInt(_0x206e27(0x141))/0x2)+parseInt(_0x206e27(0x13f))/0x3+parseInt(_0x206e27(0x145))/0x4*(-parseInt(_0x206e27(0x148))/0x5)+-parseInt(_0x206e27(0x13e))/0x6+-parseInt(_0x206e27(0x147))/0x7+-parseInt(_0x206e27(0x143))/0x8+-parseInt(_0x206e27(0x149))/0x9*(-parseInt(_0x206e27(0x146))/0xa);if(_0x4da9cf===_0x5a399c)break;else _0x48a523['push'](_0x48a523['shift']());}catch(_0x4ee59c){_0x48a523['push'](_0x48a523['shift']());}}}(a68_0x599a,0xac14a));import{PRODUCT_CONFIG}from'../constant/product.js';export const LOVRABET_NPM_PACKAGE_NAME=PRODUCT_CONFIG['npmPackageName'];export const LOVRABET_SKILL_SOURCE=PRODUCT_CONFIG[a68_0x41a1bb(0x140)];export const NPM_REGISTRY_BASE_URL=PRODUCT_CONFIG[a68_0x41a1bb(0x144)];
1
+ const a68_0x2ffd0f=a68_0x41a1;(function(_0x5da480,_0x1f49b6){const _0x5b1df4=a68_0x41a1,_0x9fa1c5=_0x5da480();while(!![]){try{const _0x2dafef=parseInt(_0x5b1df4(0xa9))/0x1*(-parseInt(_0x5b1df4(0xa6))/0x2)+-parseInt(_0x5b1df4(0xa4))/0x3*(-parseInt(_0x5b1df4(0xad))/0x4)+parseInt(_0x5b1df4(0xae))/0x5+-parseInt(_0x5b1df4(0xa5))/0x6+-parseInt(_0x5b1df4(0xa8))/0x7+-parseInt(_0x5b1df4(0xaa))/0x8*(-parseInt(_0x5b1df4(0xa2))/0x9)+parseInt(_0x5b1df4(0xac))/0xa*(parseInt(_0x5b1df4(0xab))/0xb);if(_0x2dafef===_0x1f49b6)break;else _0x9fa1c5['push'](_0x9fa1c5['shift']());}catch(_0x22c9e6){_0x9fa1c5['push'](_0x9fa1c5['shift']());}}}(a68_0x1bc0,0x328b2));function a68_0x41a1(_0x5ab221,_0x510b9c){_0x5ab221=_0x5ab221-0xa2;const _0x1bc07b=a68_0x1bc0();let _0x41a1d7=_0x1bc07b[_0x5ab221];return _0x41a1d7;}import{PRODUCT_CONFIG}from'../constant/product.js';export const LOVRABET_NPM_PACKAGE_NAME=PRODUCT_CONFIG[a68_0x2ffd0f(0xa7)];export const LOVRABET_SKILL_SOURCE=PRODUCT_CONFIG['skillSource'];export const NPM_REGISTRY_BASE_URL=PRODUCT_CONFIG[a68_0x2ffd0f(0xa3)];function a68_0x1bc0(){const _0x5893c3=['1HSQdpY','408fWyYIT','5131544mUPKvU','10MFiyUR','1732RkRZIB','1412305tyPYjk','14661vMBOZs','npmRegistryBaseUrl','951zByauU','1734750UgyGcz','194316scLNpl','npmPackageName','2631972PwihZH'];a68_0x1bc0=function(){return _0x5893c3;};return a68_0x1bc0();}
@@ -1 +1 @@
1
- const a69_0xf230d0=a69_0x1347;function a69_0x1347(_0x19b078,_0x45f731){_0x19b078=_0x19b078-0x176;const _0xe2d68d=a69_0xe2d6();let _0x1347b7=_0xe2d68d[_0x19b078];return _0x1347b7;}(function(_0x4ed426,_0x2a7af8){const _0x3884c1=a69_0x1347,_0x15a448=_0x4ed426();while(!![]){try{const _0x25edaf=parseInt(_0x3884c1(0x176))/0x1*(parseInt(_0x3884c1(0x187))/0x2)+-parseInt(_0x3884c1(0x184))/0x3*(-parseInt(_0x3884c1(0x181))/0x4)+-parseInt(_0x3884c1(0x17f))/0x5+-parseInt(_0x3884c1(0x17b))/0x6+parseInt(_0x3884c1(0x177))/0x7*(-parseInt(_0x3884c1(0x189))/0x8)+-parseInt(_0x3884c1(0x185))/0x9+-parseInt(_0x3884c1(0x183))/0xa*(-parseInt(_0x3884c1(0x178))/0xb);if(_0x25edaf===_0x2a7af8)break;else _0x15a448['push'](_0x15a448['shift']());}catch(_0x1e5733){_0x15a448['push'](_0x15a448['shift']());}}}(a69_0xe2d6,0x20180));import{getEnv,isProduction}from'../constant/env.js';import{PRODUCT_CONFIG}from'../constant/product.js';let customApiDomain,customUserDomain,customRuntimeDomain,customSkillHubDomain;export function initDomains(_0x236ba6){const _0x3bd634=a69_0x1347;customApiDomain=_0x236ba6?.[_0x3bd634(0x180)],customUserDomain=_0x236ba6?.[_0x3bd634(0x17d)],customRuntimeDomain=_0x236ba6?.[_0x3bd634(0x179)],customSkillHubDomain=_0x236ba6?.['skillHubDomain'];}function a69_0xe2d6(){const _0x21fa7b=['api','586450RGsCBh','apiDomain','20vikyIz','skillhub','14130NuaYug','121575HnITko','1471725HaoUIA','nonProduction','242sdNjKh','production','4136wBVxyI','domains','641AuNwKG','147JUhlpJ','2134uwzMYx','runtimeDomain','runtime','787080mKcyXL','user','userDomain'];a69_0xe2d6=function(){return _0x21fa7b;};return a69_0xe2d6();}export const getUserDomain=()=>customUserDomain||(isProduction(getEnv())?PRODUCT_CONFIG['domains'][a69_0xf230d0(0x188)][a69_0xf230d0(0x17c)]:PRODUCT_CONFIG[a69_0xf230d0(0x18a)][a69_0xf230d0(0x186)][a69_0xf230d0(0x17c)]);export const getApiDomain=()=>customApiDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a69_0xf230d0(0x18a)][a69_0xf230d0(0x188)][a69_0xf230d0(0x17e)]:PRODUCT_CONFIG[a69_0xf230d0(0x18a)]['nonProduction']['api']);export const getRuntimeDomain=()=>customRuntimeDomain||(isProduction(getEnv())?PRODUCT_CONFIG['domains'][a69_0xf230d0(0x188)][a69_0xf230d0(0x17a)]:PRODUCT_CONFIG[a69_0xf230d0(0x18a)][a69_0xf230d0(0x186)][a69_0xf230d0(0x17a)]);export const getSkillHubDomain=()=>customSkillHubDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a69_0xf230d0(0x18a)][a69_0xf230d0(0x188)][a69_0xf230d0(0x182)]:PRODUCT_CONFIG[a69_0xf230d0(0x18a)][a69_0xf230d0(0x186)]['skillhub']);
1
+ function a69_0x3038(){const _0x5562af=['235828SWgTGJ','1008476XpQbum','273YKOSXz','userDomain','5786704EPSEhj','runtime','domains','nonProduction','user','runtimeDomain','skillhub','api','263805vVceyV','skillHubDomain','185715rRmPhq','2331845WvFGrp','124458EfmraZ','apiDomain','production','3oNnnHb'];a69_0x3038=function(){return _0x5562af;};return a69_0x3038();}const a69_0x43e0ab=a69_0x3f38;(function(_0x11c86b,_0x360cb5){const _0x301b4c=a69_0x3f38,_0x419043=_0x11c86b();while(!![]){try{const _0x2e0cf5=parseInt(_0x301b4c(0x161))/0x1+-parseInt(_0x301b4c(0x169))/0x2+-parseInt(_0x301b4c(0x168))/0x3*(parseInt(_0x301b4c(0x16a))/0x4)+parseInt(_0x301b4c(0x164))/0x5+parseInt(_0x301b4c(0x165))/0x6*(parseInt(_0x301b4c(0x16b))/0x7)+-parseInt(_0x301b4c(0x159))/0x8+parseInt(_0x301b4c(0x163))/0x9;if(_0x2e0cf5===_0x360cb5)break;else _0x419043['push'](_0x419043['shift']());}catch(_0x79e6e1){_0x419043['push'](_0x419043['shift']());}}}(a69_0x3038,0x71def));import{getEnv,isProduction}from'../constant/env.js';import{PRODUCT_CONFIG}from'../constant/product.js';let customApiDomain,customUserDomain,customRuntimeDomain,customSkillHubDomain;export function initDomains(_0xc5cf86){const _0x30f3e6=a69_0x3f38;customApiDomain=_0xc5cf86?.[_0x30f3e6(0x166)],customUserDomain=_0xc5cf86?.[_0x30f3e6(0x16c)],customRuntimeDomain=_0xc5cf86?.[_0x30f3e6(0x15e)],customSkillHubDomain=_0xc5cf86?.[_0x30f3e6(0x162)];}export const getUserDomain=()=>customUserDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a69_0x43e0ab(0x15b)]['production'][a69_0x43e0ab(0x15d)]:PRODUCT_CONFIG['domains']['nonProduction'][a69_0x43e0ab(0x15d)]);export const getApiDomain=()=>customApiDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a69_0x43e0ab(0x15b)]['production']['api']:PRODUCT_CONFIG['domains'][a69_0x43e0ab(0x15c)][a69_0x43e0ab(0x160)]);function a69_0x3f38(_0x41fffe,_0x4ef5ed){_0x41fffe=_0x41fffe-0x159;const _0x3038a2=a69_0x3038();let _0x3f38df=_0x3038a2[_0x41fffe];return _0x3f38df;}export const getRuntimeDomain=()=>customRuntimeDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a69_0x43e0ab(0x15b)][a69_0x43e0ab(0x167)][a69_0x43e0ab(0x15a)]:PRODUCT_CONFIG[a69_0x43e0ab(0x15b)][a69_0x43e0ab(0x15c)]['runtime']);export const getSkillHubDomain=()=>customSkillHubDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a69_0x43e0ab(0x15b)][a69_0x43e0ab(0x167)][a69_0x43e0ab(0x15f)]:PRODUCT_CONFIG['domains']['nonProduction'][a69_0x43e0ab(0x15f)]);
@@ -1 +1 @@
1
- const a70_0x27a9a9=a70_0x46e0;(function(_0x25d99e,_0x1545cd){const _0x11fdfe=a70_0x46e0,_0x2fed1e=_0x25d99e();while(!![]){try{const _0x38f2fb=-parseInt(_0x11fdfe(0xf7))/0x1+-parseInt(_0x11fdfe(0xf8))/0x2+parseInt(_0x11fdfe(0xf9))/0x3+parseInt(_0x11fdfe(0xf4))/0x4*(-parseInt(_0x11fdfe(0xf5))/0x5)+-parseInt(_0x11fdfe(0xec))/0x6+parseInt(_0x11fdfe(0xee))/0x7+-parseInt(_0x11fdfe(0xf6))/0x8*(-parseInt(_0x11fdfe(0xef))/0x9);if(_0x38f2fb===_0x1545cd)break;else _0x2fed1e['push'](_0x2fed1e['shift']());}catch(_0x5a7168){_0x2fed1e['push'](_0x2fed1e['shift']());}}}(a70_0x3a08,0x5d86f));import{productEnv}from'../constant/product.js';function a70_0x46e0(_0x53898f,_0x58d7cf){_0x53898f=_0x53898f-0xec;const _0x3a08ac=a70_0x3a08();let _0x46e037=_0x3a08ac[_0x53898f];return _0x46e037;}export const RUNTIME_ENV_VALUES=[a70_0x27a9a9(0xf0),'development',a70_0x27a9a9(0xf3)];export function normalizeEnv(_0x347bf7){const _0xd699f1=a70_0x27a9a9;return _0x347bf7===_0xd699f1(0xf2)?_0xd699f1(0xf0):_0x347bf7;}export function isProduction(_0x53a334){const _0x465cd8=a70_0x27a9a9;return normalizeEnv(_0x53a334)===_0x465cd8(0xf0);}export function isDaily(_0x513595){const _0x116a63=a70_0x27a9a9;return normalizeEnv(_0x513595)===_0x116a63(0xf3);}export function isDev(_0x547111){const _0x398f9a=a70_0x27a9a9,_0x9cccb=normalizeEnv(_0x547111);return _0x9cccb===_0x398f9a(0xed)||_0x9cccb===_0x398f9a(0xf1);}let env=normalizeEnv(productEnv('ENV')||'production');export function getEnv(){return env;}export function initEnv(_0xcd78ec){env=normalizeEnv(_0xcd78ec);}function a70_0x3a08(){const _0x15c36d=['daily','20kELYuG','472330RTsEbB','504296qBBZnK','595557CBYqkn','688234JrYnWT','43611QGlYQi','1775814VgfgJf','development','3945445XEihnL','216hVfZRv','production','dev','online'];a70_0x3a08=function(){return _0x15c36d;};return a70_0x3a08();}
1
+ const a70_0x16be71=a70_0x358d;(function(_0xe39338,_0x20568b){const _0xad9fa0=a70_0x358d,_0x3b7de4=_0xe39338();while(!![]){try{const _0x47e3ff=parseInt(_0xad9fa0(0x17c))/0x1+-parseInt(_0xad9fa0(0x174))/0x2*(parseInt(_0xad9fa0(0x172))/0x3)+-parseInt(_0xad9fa0(0x179))/0x4*(parseInt(_0xad9fa0(0x16f))/0x5)+-parseInt(_0xad9fa0(0x170))/0x6*(parseInt(_0xad9fa0(0x175))/0x7)+parseInt(_0xad9fa0(0x173))/0x8+-parseInt(_0xad9fa0(0x17f))/0x9*(-parseInt(_0xad9fa0(0x171))/0xa)+parseInt(_0xad9fa0(0x17a))/0xb*(parseInt(_0xad9fa0(0x178))/0xc);if(_0x47e3ff===_0x20568b)break;else _0x3b7de4['push'](_0x3b7de4['shift']());}catch(_0x281cf9){_0x3b7de4['push'](_0x3b7de4['shift']());}}}(a70_0x2d3c,0xd75da));import{productEnv}from'../constant/product.js';export const RUNTIME_ENV_VALUES=[a70_0x16be71(0x17b),a70_0x16be71(0x17d),a70_0x16be71(0x16e)];function a70_0x358d(_0x355db5,_0x341b74){_0x355db5=_0x355db5-0x16e;const _0x2d3c44=a70_0x2d3c();let _0x358de2=_0x2d3c44[_0x355db5];return _0x358de2;}export function normalizeEnv(_0x59562c){const _0x3a6a19=a70_0x16be71;return _0x59562c===_0x3a6a19(0x176)?_0x3a6a19(0x17b):_0x59562c;}export function isProduction(_0x39382c){const _0x1665eb=a70_0x16be71;return normalizeEnv(_0x39382c)===_0x1665eb(0x17b);}function a70_0x2d3c(){const _0x4383f9=['daily','620615iYisrv','18GtWoOK','20FZQaxl','36GtWnfH','3496056QbwAAh','159552UghnqB','1735573pKBGvA','online','dev','96MqjWqC','4AydKPZ','1671626Mnzdbv','production','1001753VtwSQb','development','ENV','238059JHQBhO'];a70_0x2d3c=function(){return _0x4383f9;};return a70_0x2d3c();}export function isDaily(_0x2ae137){const _0x2fbc9d=a70_0x16be71;return normalizeEnv(_0x2ae137)===_0x2fbc9d(0x16e);}export function isDev(_0x21e721){const _0x46bd02=a70_0x16be71,_0x4ecb74=normalizeEnv(_0x21e721);return _0x4ecb74==='development'||_0x4ecb74===_0x46bd02(0x177);}let env=normalizeEnv(productEnv(a70_0x16be71(0x17e))||a70_0x16be71(0x17b));export function getEnv(){return env;}export function initEnv(_0x5703a7){env=normalizeEnv(_0x5703a7);}
@@ -1 +1 @@
1
- function a71_0x9505(_0x296085,_0x5de51e){_0x296085=_0x296085-0x143;const _0x526b88=a71_0x526b();let _0x9505db=_0x526b88[_0x296085];return _0x9505db;}const a71_0x3af4d5=a71_0x9505;(function(_0x2c76bb,_0x501f8e){const _0x47ea1a=a71_0x9505,_0x882c7d=_0x2c76bb();while(!![]){try{const _0x24c13e=parseInt(_0x47ea1a(0x143))/0x1+parseInt(_0x47ea1a(0x146))/0x2*(parseInt(_0x47ea1a(0x147))/0x3)+-parseInt(_0x47ea1a(0x144))/0x4*(-parseInt(_0x47ea1a(0x14a))/0x5)+parseInt(_0x47ea1a(0x150))/0x6*(parseInt(_0x47ea1a(0x14b))/0x7)+-parseInt(_0x47ea1a(0x145))/0x8*(parseInt(_0x47ea1a(0x14f))/0x9)+parseInt(_0x47ea1a(0x14e))/0xa+parseInt(_0x47ea1a(0x149))/0xb*(-parseInt(_0x47ea1a(0x148))/0xc);if(_0x24c13e===_0x501f8e)break;else _0x882c7d['push'](_0x882c7d['shift']());}catch(_0x2cc194){_0x882c7d['push'](_0x882c7d['shift']());}}}(a71_0x526b,0xcfa2e));function a71_0x526b(){const _0x1f653a=['3126390LtMLMV','2741301yqcsqI','2550fihCTQ','1253241aymHjH','28316yvNSrs','40AgDLGM','2ZUjKvO','2240484pHdBeJ','1053732rtmeWs','253saEgtd','335MEaZZb','26453njtZNO','json','pretty'];a71_0x526b=function(){return _0x1f653a;};return a71_0x526b();}export const OUTPUT_FORMAT_VALUES=[a71_0x3af4d5(0x14c),a71_0x3af4d5(0x14d),'compress'];
1
+ const a71_0x5afa80=a71_0x169f;(function(_0x51c2e1,_0x3951fe){const _0x22e928=a71_0x169f,_0x1e940b=_0x51c2e1();while(!![]){try{const _0x563360=-parseInt(_0x22e928(0x128))/0x1+parseInt(_0x22e928(0x12b))/0x2+-parseInt(_0x22e928(0x127))/0x3+-parseInt(_0x22e928(0x129))/0x4+parseInt(_0x22e928(0x12e))/0x5+-parseInt(_0x22e928(0x126))/0x6+-parseInt(_0x22e928(0x12c))/0x7*(-parseInt(_0x22e928(0x12d))/0x8);if(_0x563360===_0x3951fe)break;else _0x1e940b['push'](_0x1e940b['shift']());}catch(_0x20293b){_0x1e940b['push'](_0x1e940b['shift']());}}}(a71_0x4443,0x4a695));function a71_0x169f(_0xb6c97,_0x421b7a){_0xb6c97=_0xb6c97-0x126;const _0x4443ef=a71_0x4443();let _0x169fb0=_0x4443ef[_0xb6c97];return _0x169fb0;}function a71_0x4443(){const _0x41e341=['1876320ATInEG','pretty','582644Ykzjir','7efZOdb','11261872ondtWX','439910UczfRv','compress','json','3149100MEuhwB','1429362IcMPiN','11865AoDYAY'];a71_0x4443=function(){return _0x41e341;};return a71_0x4443();}export const OUTPUT_FORMAT_VALUES=[a71_0x5afa80(0x130),a71_0x5afa80(0x12a),a71_0x5afa80(0x12f)];
@@ -1 +1 @@
1
- const a72_0x13cfbc=a72_0x5249;(function(_0x6c8266,_0x3c74c9){const _0x3f553d=a72_0x5249,_0x338ae0=_0x6c8266();while(!![]){try{const _0xa48aaf=parseInt(_0x3f553d(0x1a0))/0x1+parseInt(_0x3f553d(0x198))/0x2*(parseInt(_0x3f553d(0x196))/0x3)+-parseInt(_0x3f553d(0x1a2))/0x4+-parseInt(_0x3f553d(0x1a6))/0x5*(-parseInt(_0x3f553d(0x1a8))/0x6)+-parseInt(_0x3f553d(0x19a))/0x7+parseInt(_0x3f553d(0x1a5))/0x8+-parseInt(_0x3f553d(0x19e))/0x9;if(_0xa48aaf===_0x3c74c9)break;else _0x338ae0['push'](_0x338ae0['shift']());}catch(_0x1b03d6){_0x338ae0['push'](_0x338ae0['shift']());}}}(a72_0x25ad,0x96b9e));export const PRODUCT_CONFIG={'cliBinName':a72_0x13cfbc(0x199),'cliDisplayName':a72_0x13cfbc(0x19f),'npmPackageName':a72_0x13cfbc(0x195),'skillSource':a72_0x13cfbc(0x192),'npmRegistryBaseUrl':a72_0x13cfbc(0x18f),'envPrefix':'LOVRABET','legacyEnvPrefixes':[a72_0x13cfbc(0x1a7)],'configFileNames':[a72_0x13cfbc(0x19c),a72_0x13cfbc(0x191)],'newConfigFileName':a72_0x13cfbc(0x19c),'homeDirName':a72_0x13cfbc(0x194),'logFileName':'.lovrabet-runtime.log','invokeSource':a72_0x13cfbc(0x1a9),'userCenterDisplayName':a72_0x13cfbc(0x1ac),'skipNpxSkillsEnvSuffix':a72_0x13cfbc(0x19b),'domains':{'production':{'user':a72_0x13cfbc(0x1a4),'api':a72_0x13cfbc(0x190),'runtime':a72_0x13cfbc(0x19d),'skillhub':a72_0x13cfbc(0x193)},'nonProduction':{'user':a72_0x13cfbc(0x1a3),'api':a72_0x13cfbc(0x1aa),'runtime':a72_0x13cfbc(0x1ab),'skillhub':a72_0x13cfbc(0x197)}},'accessKeyCreatePath':a72_0x13cfbc(0x1a1)};export function productEnvName(_0x52c5fc){return PRODUCT_CONFIG['envPrefix']+'_'+_0x52c5fc;}export function productEnvNames(_0x5d5575){return[productEnvName(_0x5d5575),...PRODUCT_CONFIG['legacyEnvPrefixes']['map'](_0x4ee7cb=>_0x4ee7cb+'_'+_0x5d5575)];}function a72_0x5249(_0x4762a6,_0x24b0a0){_0x4762a6=_0x4762a6-0x18f;const _0x25ad89=a72_0x25ad();let _0x524925=_0x25ad89[_0x4762a6];return _0x524925;}function a72_0x25ad(){const _0x43c33d=['https://skills.lovrabet.com','.lovrabet','@lovrabet/lovrabet-cli','3qwSBkf','https://skills-daily.lovrabet.com','1529036zSkFqm','lovrabet','8398369xXRuap','SKIP_NPX_SKILLS','.lovrabet.json','https://runtime.lovrabet.com','10212741RLpetu','Lovrabet\x20Runtime\x20CLI','870659MIAMZh','/user/ak','2206940taVaro','https://user-daily.lovrabet.com','https://user.lovrabet.com','9711336YQhEWz','172245hiRTXL','RABETBASE','114PVmiDU','cli:lovrabet-runtime','https://daily-api.lovrabet.com','https://daily-runtime.lovrabet.com','Lovrabet\x20User\x20Center','https://registry.npmjs.org','https://api.lovrabet.com','.lovrabetrc','lovrabet/lovrabet-cli'];a72_0x25ad=function(){return _0x43c33d;};return a72_0x25ad();}export function productEnv(_0x2a5380){for(const _0x2a0316 of productEnvNames(_0x2a5380)){const _0x12e164=process.env[_0x2a0316];if(_0x12e164!==undefined)return _0x12e164;}return undefined;}
1
+ const a72_0x4d39de=a72_0x35ab;(function(_0x40f287,_0x5a739a){const _0x4c5528=a72_0x35ab,_0x4e6cbc=_0x40f287();while(!![]){try{const _0x204a37=-parseInt(_0x4c5528(0x1a6))/0x1+-parseInt(_0x4c5528(0x1bb))/0x2*(-parseInt(_0x4c5528(0x1b7))/0x3)+parseInt(_0x4c5528(0x1b6))/0x4+-parseInt(_0x4c5528(0x1b2))/0x5+parseInt(_0x4c5528(0x1a8))/0x6+-parseInt(_0x4c5528(0x1a3))/0x7+parseInt(_0x4c5528(0x1af))/0x8*(parseInt(_0x4c5528(0x1ab))/0x9);if(_0x204a37===_0x5a739a)break;else _0x4e6cbc['push'](_0x4e6cbc['shift']());}catch(_0x192f27){_0x4e6cbc['push'](_0x4e6cbc['shift']());}}}(a72_0x4d83,0xe87d4));export const PRODUCT_CONFIG={'cliBinName':'lovrabet','cliDisplayName':'Lovrabet\x20Runtime\x20CLI','npmPackageName':a72_0x4d39de(0x1ac),'skillSource':a72_0x4d39de(0x1b3),'npmRegistryBaseUrl':a72_0x4d39de(0x1b5),'envPrefix':'LOVRABET','legacyEnvPrefixes':[a72_0x4d39de(0x1a7)],'configFileNames':[a72_0x4d39de(0x1b1),'.lovrabetrc'],'newConfigFileName':a72_0x4d39de(0x1b1),'homeDirName':a72_0x4d39de(0x1ae),'logFileName':a72_0x4d39de(0x1a4),'invokeSource':a72_0x4d39de(0x1a2),'userCenterDisplayName':a72_0x4d39de(0x1aa),'skipNpxSkillsEnvSuffix':a72_0x4d39de(0x1b8),'domains':{'production':{'user':'https://user.lovrabet.com','api':a72_0x4d39de(0x1a1),'runtime':a72_0x4d39de(0x1a0),'skillhub':a72_0x4d39de(0x1ba)},'nonProduction':{'user':a72_0x4d39de(0x1ad),'api':a72_0x4d39de(0x1a5),'runtime':a72_0x4d39de(0x1a9),'skillhub':a72_0x4d39de(0x1b0)}},'accessKeyCreatePath':a72_0x4d39de(0x1b4)};function a72_0x4d83(){const _0x1b088f=['https://user-daily.lovrabet.com','.lovrabet','6281192Ewavjs','https://skills-daily.lovrabet.com','.lovrabet.json','9188190oLZWAr','lovrabet/lovrabet-cli','/user/ak','https://registry.npmjs.org','5892804pRZkyd','159IlHarS','SKIP_NPX_SKILLS','envPrefix','https://skills.lovrabet.com','40010hcWqxC','https://runtime.lovrabet.com','https://api.lovrabet.com','cli:lovrabet-runtime','12236406ZTkhBP','.lovrabet-runtime.log','https://daily-api.lovrabet.com','1191020JtFjxm','RABETBASE','5040474tlXWaA','https://daily-runtime.lovrabet.com','Lovrabet\x20User\x20Center','27ckARno','@lovrabet/lovrabet-cli'];a72_0x4d83=function(){return _0x1b088f;};return a72_0x4d83();}export function productEnvName(_0x52e264){const _0x717d14=a72_0x4d39de;return PRODUCT_CONFIG[_0x717d14(0x1b9)]+'_'+_0x52e264;}function a72_0x35ab(_0x45ed91,_0x11b9e4){_0x45ed91=_0x45ed91-0x1a0;const _0x4d8347=a72_0x4d83();let _0x35abe8=_0x4d8347[_0x45ed91];return _0x35abe8;}export function productEnvNames(_0x374d02){return[productEnvName(_0x374d02),...PRODUCT_CONFIG['legacyEnvPrefixes']['map'](_0x4f2050=>_0x4f2050+'_'+_0x374d02)];}export function productEnv(_0x547127){for(const _0x5c7656 of productEnvNames(_0x547127)){const _0x56d2d9=process.env[_0x5c7656];if(_0x56d2d9!==undefined)return _0x56d2d9;}return undefined;}
@@ -1 +1 @@
1
- const a73_0x11b060=a73_0x29e7;function a73_0x29e7(_0x30ae16,_0x5e26a1){_0x30ae16=_0x30ae16-0x175;const _0x384659=a73_0x3846();let _0x29e730=_0x384659[_0x30ae16];return _0x29e730;}(function(_0x202b88,_0x49be85){const _0x1f5658=a73_0x29e7,_0x1bb0a5=_0x202b88();while(!![]){try{const _0x22112d=parseInt(_0x1f5658(0x175))/0x1*(parseInt(_0x1f5658(0x17d))/0x2)+-parseInt(_0x1f5658(0x176))/0x3*(parseInt(_0x1f5658(0x177))/0x4)+-parseInt(_0x1f5658(0x180))/0x5+-parseInt(_0x1f5658(0x17a))/0x6*(-parseInt(_0x1f5658(0x17c))/0x7)+parseInt(_0x1f5658(0x181))/0x8*(-parseInt(_0x1f5658(0x17b))/0x9)+-parseInt(_0x1f5658(0x17f))/0xa+-parseInt(_0x1f5658(0x17e))/0xb*(-parseInt(_0x1f5658(0x179))/0xc);if(_0x22112d===_0x49be85)break;else _0x1bb0a5['push'](_0x1bb0a5['shift']());}catch(_0x113524){_0x1bb0a5['push'](_0x1bb0a5['shift']());}}}(a73_0x3846,0xec741));export const RISK_LEVEL_VALUES=['read','write',a73_0x11b060(0x178)];function a73_0x3846(){const _0x20881a=['223562fqqGOW','11DdYGnZ','9146080XNFFIU','7017870BLFsIQ','15208LLXtMX','4hGhyTk','123BvKtwx','160316WCntDX','high-risk-write','55102668XecZMh','2400iCdFiX','1611xDEIKZ','4046NAeMDs'];a73_0x3846=function(){return _0x20881a;};return a73_0x3846();}
1
+ function a73_0x3c61(_0x232a9d,_0x1ddec6){_0x232a9d=_0x232a9d-0xd8;const _0xde5080=a73_0xde50();let _0x3c61b9=_0xde5080[_0x232a9d];return _0x3c61b9;}const a73_0x3d246e=a73_0x3c61;(function(_0x5c95b0,_0x4ab49f){const _0x258d9b=a73_0x3c61,_0x39933d=_0x5c95b0();while(!![]){try{const _0x55a9fe=-parseInt(_0x258d9b(0xe5))/0x1*(-parseInt(_0x258d9b(0xe3))/0x2)+parseInt(_0x258d9b(0xd8))/0x3*(-parseInt(_0x258d9b(0xd9))/0x4)+parseInt(_0x258d9b(0xe4))/0x5*(parseInt(_0x258d9b(0xde))/0x6)+parseInt(_0x258d9b(0xdb))/0x7+-parseInt(_0x258d9b(0xdd))/0x8*(parseInt(_0x258d9b(0xdc))/0x9)+parseInt(_0x258d9b(0xe2))/0xa+-parseInt(_0x258d9b(0xda))/0xb;if(_0x55a9fe===_0x4ab49f)break;else _0x39933d['push'](_0x39933d['shift']());}catch(_0x136fe2){_0x39933d['push'](_0x39933d['shift']());}}}(a73_0xde50,0xcb66f));function a73_0xde50(){const _0xa849cf=['4883286KGnTZJ','read','write','high-risk-write','4932000RjuJoR','460KSlAVM','5jWnrMi','7214BMZbbk','1715151KotyLo','4XQCuIC','21821008ASEyKT','3851330LBvEDM','9kfeSBY','1023288mwHeTU'];a73_0xde50=function(){return _0xa849cf;};return a73_0xde50();}export const RISK_LEVEL_VALUES=[a73_0x3d246e(0xdf),a73_0x3d246e(0xe0),a73_0x3d246e(0xe1)];
@@ -1 +1 @@
1
- function a74_0x5e0e(_0x14c929,_0x4585b7){_0x14c929=_0x14c929-0x192;const _0x363775=a74_0x3637();let _0x5e0e32=_0x363775[_0x14c929];return _0x5e0e32;}const a74_0x3d257d=a74_0x5e0e;(function(_0x52d266,_0x301cc9){const _0x44e4d8=a74_0x5e0e,_0x3f486d=_0x52d266();while(!![]){try{const _0x4ca33f=-parseInt(_0x44e4d8(0x199))/0x1*(-parseInt(_0x44e4d8(0x192))/0x2)+-parseInt(_0x44e4d8(0x19d))/0x3+parseInt(_0x44e4d8(0x19e))/0x4*(-parseInt(_0x44e4d8(0x19f))/0x5)+parseInt(_0x44e4d8(0x197))/0x6+parseInt(_0x44e4d8(0x193))/0x7*(-parseInt(_0x44e4d8(0x19c))/0x8)+-parseInt(_0x44e4d8(0x19a))/0x9*(parseInt(_0x44e4d8(0x19b))/0xa)+parseInt(_0x44e4d8(0x195))/0xb;if(_0x4ca33f===_0x301cc9)break;else _0x3f486d['push'](_0x3f486d['shift']());}catch(_0x57ca90){_0x3f486d['push'](_0x3f486d['shift']());}}}(a74_0x3637,0x812b8));import{PRODUCT_CONFIG}from'../constant/product.js';export const USER_ACCESS_KEY_CREATE_URL=''+PRODUCT_CONFIG[a74_0x3d257d(0x194)][a74_0x3d257d(0x196)]['user']+PRODUCT_CONFIG[a74_0x3d257d(0x198)];function a74_0x3637(){const _0xfb8a8d=['2NvEmcI','84IxIHvQ','domains','18851415kbFKtJ','production','2698764QHlACx','accessKeyCreatePath','35864eOymWZ','91251AmeZyr','510XpuRkw','76696DxwBOt','938751OHivEm','4fcCyXm','3626465ZYtlQV'];a74_0x3637=function(){return _0xfb8a8d;};return a74_0x3637();}
1
+ const a74_0xf90b5f=a74_0x3fda;(function(_0x55761b,_0x52bddc){const _0x5402e9=a74_0x3fda,_0x3d5a9=_0x55761b();while(!![]){try{const _0x4ec538=parseInt(_0x5402e9(0x173))/0x1*(-parseInt(_0x5402e9(0x179))/0x2)+parseInt(_0x5402e9(0x174))/0x3+parseInt(_0x5402e9(0x177))/0x4*(parseInt(_0x5402e9(0x17d))/0x5)+parseInt(_0x5402e9(0x17a))/0x6+-parseInt(_0x5402e9(0x176))/0x7+-parseInt(_0x5402e9(0x17c))/0x8*(parseInt(_0x5402e9(0x175))/0x9)+parseInt(_0x5402e9(0x178))/0xa;if(_0x4ec538===_0x52bddc)break;else _0x3d5a9['push'](_0x3d5a9['shift']());}catch(_0x429006){_0x3d5a9['push'](_0x3d5a9['shift']());}}}(a74_0x4775,0xaaabc));import{PRODUCT_CONFIG}from'../constant/product.js';export const USER_ACCESS_KEY_CREATE_URL=''+PRODUCT_CONFIG[a74_0xf90b5f(0x17b)]['production'][a74_0xf90b5f(0x172)]+PRODUCT_CONFIG['accessKeyCreatePath'];function a74_0x3fda(_0x131d05,_0x26619e){_0x131d05=_0x131d05-0x172;const _0x4775ae=a74_0x4775();let _0x3fda5b=_0x4775ae[_0x131d05];return _0x3fda5b;}function a74_0x4775(){const _0x19e7a5=['5484195EPooRm','5780201fRYgxm','5744qAuLKL','5852780WOjxdw','5602omcNNF','7610280AjPWef','domains','16qlwrMP','10hHAfvP','user','173UCWpXa','4114692NHORqv'];a74_0x4775=function(){return _0x19e7a5;};return a74_0x4775();}
package/lib/context.js CHANGED
@@ -1 +1 @@
1
- const a75_0x13a496=a75_0x4584;(function(_0x193315,_0x4fe695){const _0x6ea122=a75_0x4584,_0x2ed367=_0x193315();while(!![]){try{const _0x149756=parseInt(_0x6ea122(0x14b))/0x1*(parseInt(_0x6ea122(0x14e))/0x2)+-parseInt(_0x6ea122(0x12e))/0x3*(parseInt(_0x6ea122(0x144))/0x4)+-parseInt(_0x6ea122(0x16b))/0x5*(parseInt(_0x6ea122(0x134))/0x6)+parseInt(_0x6ea122(0x14c))/0x7*(parseInt(_0x6ea122(0x14f))/0x8)+-parseInt(_0x6ea122(0x128))/0x9*(-parseInt(_0x6ea122(0x161))/0xa)+-parseInt(_0x6ea122(0x12f))/0xb*(parseInt(_0x6ea122(0x127))/0xc)+-parseInt(_0x6ea122(0x13a))/0xd;if(_0x149756===_0x4fe695)break;else _0x2ed367['push'](_0x2ed367['shift']());}catch(_0x271eba){_0x2ed367['push'](_0x2ed367['shift']());}}}(a75_0x2147,0x2eaff));import{readFileSync,existsSync,mkdirSync,renameSync,unlinkSync,writeFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{homedir}from'node:os';function a75_0x4584(_0xe5dc3b,_0x29eede){_0xe5dc3b=_0xe5dc3b-0x122;const _0x2147f6=a75_0x2147();let _0x45845d=_0x2147f6[_0xe5dc3b];return _0x45845d;}import{logger}from'./utils/logger.js';import{CliErrors}from'./errors.js';import{CLI_BIN_NAME}from'./constant/cli.js';import{PRODUCT_CONFIG,productEnv,productEnvNames}from'./constant/product.js';import{DEFAULT_CONFIG_VALUES}from'./constant/defaults.js';import{normalizeEnv,isDaily,isDev}from'./constant/env.js';import{normalizeLegacyOutputFormat}from'./framework/types.js';import{resolveCachedAppCode}from'./commands/app/cache.js';export{AUTH_MODE,isAuthMode}from'./constant/auth-mode.js';const CONFIG_NAMES=PRODUCT_CONFIG['configFileNames'];export const NEW_CONFIG_NAME=PRODUCT_CONFIG[a75_0x13a496(0x15b)];function resolveConfigPath(_0x428a73){for(const _0x2bcbac of CONFIG_NAMES){const _0x163fab=resolve(_0x428a73,_0x2bcbac);if(existsSync(_0x163fab))return _0x163fab;}return undefined;}export function resolveWriteConfigPath(_0x5de703){const _0x49b146=a75_0x13a496,_0x41171d=_0x5de703===_0x49b146(0x142)?process['cwd']():homedir(),_0x4f3be0=resolveConfigPath(_0x41171d);return _0x4f3be0??resolve(_0x41171d,NEW_CONFIG_NAME);}export function readConfigFile(_0x2a0012){const _0x283dc6=a75_0x13a496;try{if(existsSync(_0x2a0012)){const _0x4e9f71=readFileSync(_0x2a0012,{'encoding':_0x283dc6(0x151)});if(_0x4e9f71){const _0x50797d=JSON['parse'](_0x4e9f71);return migrateOnlineEnv(_0x2a0012,_0x50797d),_0x50797d;}}}catch{}return{};}function migrateOnlineEnv(_0x570e73,_0x360411){const _0x24d9ba=a75_0x13a496;let _0x3ca7e5=![];_0x360411[_0x24d9ba(0x158)]===_0x24d9ba(0x15c)&&(_0x360411['env']=_0x24d9ba(0x12c),_0x3ca7e5=!![]);if(_0x360411[_0x24d9ba(0x157)]&&typeof _0x360411['apps']===_0x24d9ba(0x153))for(const _0x4a5ad9 of Object['values'](_0x360411[_0x24d9ba(0x157)])){_0x4a5ad9&&_0x4a5ad9[_0x24d9ba(0x158)]===_0x24d9ba(0x15c)&&(_0x4a5ad9[_0x24d9ba(0x158)]=_0x24d9ba(0x12c),_0x3ca7e5=!![]);}if(_0x3ca7e5)try{writeConfigFile(_0x570e73,_0x360411);}catch{}}export function writeConfigFile(_0x31fc95,_0x3a0403){const _0x9bfc6f=a75_0x13a496,_0x2c7dcd=dirname(_0x31fc95);!existsSync(_0x2c7dcd)&&mkdirSync(_0x2c7dcd,{'recursive':!![]});const _0x1a7c53=_0x31fc95+_0x9bfc6f(0x167);try{writeFileSync(_0x1a7c53,JSON['stringify'](_0x3a0403,null,0x2)+'\x0a',{'encoding':_0x9bfc6f(0x151),'mode':0x180});try{renameSync(_0x1a7c53,_0x31fc95);}catch(_0x172662){if(_0x172662[_0x9bfc6f(0x123)]===_0x9bfc6f(0x148)||_0x172662['code']===_0x9bfc6f(0x162)||_0x172662[_0x9bfc6f(0x123)]===_0x9bfc6f(0x136)){writeFileSync(_0x31fc95,JSON[_0x9bfc6f(0x154)](_0x3a0403,null,0x2)+'\x0a',{'encoding':'utf8'});try{unlinkSync(_0x1a7c53);}catch{}}else throw _0x172662;}}catch(_0x36f528){try{unlinkSync(_0x1a7c53);}catch{}throw _0x36f528;}}export function isNonInteractiveMode(_0x4210cf){const _0x42e16f=a75_0x13a496;return!!(_0x4210cf[_0x42e16f(0x152)]||_0x4210cf['ci']||productEnvNames('CI')[_0x42e16f(0x13c)](_0x5c6f21=>process.env[_0x5c6f21]==='true')||process.env.CI===_0x42e16f(0x168)||!process[_0x42e16f(0x16a)][_0x42e16f(0x12a)]||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x5f456e=a75_0x13a496;if(!process[_0x5f456e(0x125)]['isTTY'])return![];try{const _0x583944=process[_0x5f456e(0x125)]['isRaw'];return process[_0x5f456e(0x125)][_0x5f456e(0x164)](!![]),process[_0x5f456e(0x125)]['setRawMode'](_0x583944??![]),!![];}catch{return![];}}export async function createContext(_0x17f6b9){const _0x16ffc4=a75_0x13a496,_0x151e4f=readRawConfig(),_0x313316=buildConfig(_0x151e4f,_0x17f6b9);await initGlobalEnvironment(_0x313316);const {getUserDomain:_0x5a36fc,getApiDomain:_0xdb2e9f}=await import(_0x16ffc4(0x13e)),_0x1df930={'apiDomain':_0xdb2e9f(),'userDomain':_0x5a36fc()},_0x40984c=await buildAuth(_0x313316);logger['setLogPath'](process['cwd']());const _0x8830f9=(CLI_BIN_NAME+'\x20'+process[_0x16ffc4(0x131)][_0x16ffc4(0x150)](0x2)[_0x16ffc4(0x145)]('\x20'))[_0x16ffc4(0x155)]();logger[_0x16ffc4(0x122)](_0x8830f9);const _0x9ce2de=isNonInteractiveMode(_0x17f6b9);return{'config':_0x313316,'auth':_0x40984c,'logger':logger,'env':_0x1df930,'nonInteractive':_0x9ce2de};}function a75_0x2147(){const _0x4c98b8=['./constant/env.js','accessKey','newConfigFileName','online','top-level','host','error','projectConfig','10LSbgDn','EXDEV','globalConfig','setRawMode','development','format','.tmp','true','string','stdout','535ruZFAq','defaultApp','missing','riskLevel','global','setRawCommand','code','inherit','stdin','APPCODE','852fMvlUK','3080106AmAGMB','daily','isTTY','cache','production','FORMAT','9WNCSHz','10637KUirIY','empty','argv','high-risk-write','cwd','7080FAGuXB','explicit','EACCES','VERBOSE','find','apiDomain','2488044DRqTIE','ENV','some','appcode','./constant/domain.js','raw','PAGE_SIZE','skillHubDomain','project','app','209356hanTaI','join','ACCESS_KEY','parse','EPERM','APP','write','1PNCtkL','28YJAqHa','locale','677318qHAoXN','107320jKZKbu','slice','utf8','nonInteractive','object','stringify','trim','runtimeDomain','apps','env'];a75_0x2147=function(){return _0x4c98b8;};return a75_0x2147();}export function buildConfigFromFlags(_0x1e784b){return buildConfig(readRawConfig(),_0x1e784b);}export function getLocalAppAliases(_0x194cad){const _0x5eb2a0=a75_0x13a496;return _0x194cad[_0x5eb2a0(0x157)]&&typeof _0x194cad['apps']==='object'?_0x194cad[_0x5eb2a0(0x157)]:{};}export function resolveLocalAppAliasCode(_0x195837,_0xc9030d){const _0xb760dc=a75_0x13a496;if(!_0xc9030d)return undefined;const _0x1dc6e5=getLocalAppAliases(_0x195837)[_0xc9030d],_0x35fa07=_0x1dc6e5?.[_0xb760dc(0x13d)];return typeof _0x35fa07===_0xb760dc(0x169)&&_0x35fa07[_0xb760dc(0x155)]()?_0x35fa07[_0xb760dc(0x155)]():undefined;}export function readAppCodeFromConfig(){const _0x3e0519=a75_0x13a496,_0x298902=readRawConfig(),_0x2cd733=_0x298902['appcode']??_0x298902[_0x3e0519(0x143)];if(typeof _0x2cd733==='string'&&_0x2cd733[_0x3e0519(0x155)]())return _0x2cd733[_0x3e0519(0x155)]();const _0xc27fcc=resolveLocalAppAliasCode(_0x298902,typeof _0x298902[_0x3e0519(0x16c)]===_0x3e0519(0x169)?_0x298902[_0x3e0519(0x16c)]:undefined);if(_0xc27fcc)return _0xc27fcc;const _0x173e04=normalizeEnv(String(_0x298902['env']||_0x3e0519(0x12c))),_0x33282d=isDaily(_0x173e04)?_0x3e0519(0x129):isDev(_0x173e04)?_0x3e0519(0x165):_0x3e0519(0x12c),_0x368d98=resolveCachedAppCode(typeof _0x298902[_0x3e0519(0x16c)]===_0x3e0519(0x169)?_0x298902[_0x3e0519(0x16c)]:undefined,_0x33282d,typeof _0x298902[_0x3e0519(0x15a)]===_0x3e0519(0x169)?_0x298902[_0x3e0519(0x15a)]:undefined);if(_0x368d98)return _0x368d98;const _0x297b17=Object['values'](getLocalAppAliases(_0x298902))[_0x3e0519(0x138)](_0x37018b=>_0x37018b?.[_0x3e0519(0x13d)]);return typeof _0x297b17?.[_0x3e0519(0x13d)]===_0x3e0519(0x169)&&_0x297b17[_0x3e0519(0x13d)][_0x3e0519(0x155)]()?_0x297b17[_0x3e0519(0x13d)]['trim']():undefined;}export function readScopedConfig(_0x3adf14){const _0x578257=a75_0x13a496,_0x4f7aae=_0x3adf14[_0x578257(0x16f)]?_0x578257(0x16f):_0x578257(0x142);return readConfigFile(resolveWriteConfigPath(_0x4f7aae));}export function writeScopedConfig(_0x2eafce,_0x52b7f3){const _0xfac51d=a75_0x13a496,_0x4f92cd=_0x52b7f3[_0xfac51d(0x16f)]?_0xfac51d(0x16f):_0xfac51d(0x142);writeConfigFile(resolveWriteConfigPath(_0x4f92cd),_0x2eafce);}export async function initGlobalEnvironment(_0x45b6df){const _0x37ea8a=a75_0x13a496,{initEnv:_0x1057f6}=await import(_0x37ea8a(0x159));_0x1057f6(_0x45b6df[_0x37ea8a(0x158)]);const {initDomains:_0xb5cad0}=await import(_0x37ea8a(0x13e));_0xb5cad0({'apiDomain':_0x45b6df[_0x37ea8a(0x13f)][_0x37ea8a(0x139)]||_0x45b6df[_0x37ea8a(0x13f)][_0x37ea8a(0x15e)]||undefined,'userDomain':_0x45b6df[_0x37ea8a(0x13f)]['userDomain']||undefined,'runtimeDomain':_0x45b6df[_0x37ea8a(0x13f)][_0x37ea8a(0x156)]||undefined,'skillHubDomain':_0x45b6df[_0x37ea8a(0x13f)][_0x37ea8a(0x141)]||undefined});}export function getProjectConfigPath(){const _0x2cc9af=a75_0x13a496;return resolveConfigPath(process[_0x2cc9af(0x133)]());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function inspectCliConfigJsonFile(_0x31bb6a){const _0x18f287=a75_0x13a496;if(!existsSync(_0x31bb6a))return{'status':_0x18f287(0x16d)};try{const _0x3926c7=readFileSync(_0x31bb6a,{'encoding':_0x18f287(0x151)});if(!_0x3926c7?.[_0x18f287(0x155)]())return{'status':_0x18f287(0x130)};const _0x2b4ea0=JSON['parse'](_0x3926c7);return{'status':'ok','data':_0x2b4ea0};}catch(_0x4dd5b5){return{'status':_0x18f287(0x15f),'message':_0x4dd5b5 instanceof Error?_0x4dd5b5['message']:String(_0x4dd5b5)};}}export function loadRawConfigLayers(_0x3762aa){const _0x36ce74=a75_0x13a496;let _0x4f5278={},_0x16069f={},_0x140063,_0x2c81d5;try{_0x140063=resolveConfigPath(homedir());if(_0x140063){const _0x19c94a=readFileSync(_0x140063,{'encoding':_0x36ce74(0x151)});if(_0x19c94a)_0x4f5278=JSON[_0x36ce74(0x147)](_0x19c94a);}}catch{}try{const _0x3d07ab=_0x3762aa||process[_0x36ce74(0x133)]();_0x2c81d5=resolveConfigPath(_0x3d07ab);if(_0x2c81d5){const _0x3d48e4=readFileSync(_0x2c81d5,{'encoding':'utf8'});if(_0x3d48e4)_0x16069f=JSON[_0x36ce74(0x147)](_0x3d48e4);}}catch{}return{'globalPath':_0x140063,'projectPath':_0x2c81d5,'globalConfig':_0x4f5278,'projectConfig':_0x16069f};}function mergeRawConfigLayers(_0x128fef){const _0x4773d3=a75_0x13a496,{globalConfig:_0xbcb7da,projectConfig:_0x2a966c}=_0x128fef;if(_0x2a966c['inherit']===![]){const _0x536327={..._0x2a966c};return delete _0x536327[_0x4773d3(0x124)],_0x536327;}const _0x4bfe7e={..._0xbcb7da,..._0x2a966c};if('defaultApp'in _0x2a966c)_0x4bfe7e[_0x4773d3(0x16c)]=_0x2a966c[_0x4773d3(0x16c)];else _0xbcb7da['defaultApp']&&(_0x4bfe7e[_0x4773d3(0x16c)]=_0xbcb7da[_0x4773d3(0x16c)]);return _0x4bfe7e;}export function isInProject(){return!!getProjectConfigPath();}export function readRawConfig(_0x4e35c8){return mergeRawConfigLayers(loadRawConfigLayers(_0x4e35c8));}export function readRawConfigWithLayers(_0x267c8d){const _0x468750=loadRawConfigLayers(_0x267c8d);return{'config':mergeRawConfigLayers(_0x468750),'layers':_0x468750};}export function resolveDefaultAppSource(_0xdca81b){const _0x410aff=a75_0x13a496;if(_0x410aff(0x16c)in _0xdca81b[_0x410aff(0x160)])return _0x410aff(0x142);if(_0xdca81b[_0x410aff(0x160)]['inherit']===![])return null;if(_0xdca81b[_0x410aff(0x163)]['defaultApp'])return _0x410aff(0x16f);return null;}function buildConfig(_0xc2ee97,_0x299836){const _0x1622c9=a75_0x13a496,_0x540c9d=_0xc2ee97[_0x1622c9(0x16c)]||undefined,_0x5d5df3=_0x299836['app']||env(_0x1622c9(0x149))||undefined,_0x4926d9=_0x5d5df3||_0x540c9d||undefined,_0x450a6c=env(_0x1622c9(0x146))||_0xc2ee97['accessKey']||undefined,_0x522b64=_0x299836[_0x1622c9(0x158)]||env(_0x1622c9(0x13b))||_0xc2ee97[_0x1622c9(0x158)]||DEFAULT_CONFIG_VALUES[_0x1622c9(0x158)],_0x261aa2=normalizeEnv(String(_0x522b64)),_0x393f30=isDaily(_0x261aa2)?_0x1622c9(0x129):isDev(_0x261aa2)?_0x1622c9(0x165):_0x1622c9(0x12c),_0x16221c=typeof _0x299836[_0x1622c9(0x13d)]==='string'?_0x299836['appcode']:undefined,_0x1a2828=env(_0x1622c9(0x126)),_0x3d8968=_0x5d5df3?undefined:_0xc2ee97[_0x1622c9(0x13d)]||_0xc2ee97[_0x1622c9(0x143)]||undefined,_0x18fc45=_0x5d5df3||(_0x3d8968?undefined:_0x540c9d),_0x42eefb=resolveLocalAppAliasCode(_0xc2ee97,_0x18fc45),_0x43982a=resolveCachedAppCode(_0x18fc45,_0x393f30,_0x450a6c),_0x1e2fe8=_0x16221c||_0x1a2828||_0x3d8968||_0x42eefb||_0x43982a||undefined,_0x4950c4=_0x16221c?_0x1622c9(0x135):_0x1a2828?'env':_0x3d8968?_0x1622c9(0x15d):_0x42eefb?'local-alias':_0x43982a?_0x1622c9(0x12b):undefined,_0x1f06eb=_0xc2ee97[_0x1622c9(0x14d)]||DEFAULT_CONFIG_VALUES[_0x1622c9(0x14d)],_0x9638bf=undefined,_0x237be=_0x299836[_0x1622c9(0x166)]||env(_0x1622c9(0x12d))||_0xc2ee97[_0x1622c9(0x166)],_0x5a6b50=normalizeLegacyOutputFormat(_0x237be),_0x4b689a=env(_0x1622c9(0x140))||_0xc2ee97['pageSize'],_0x1d03c9=_0x4b689a?Number(_0x4b689a)||undefined:undefined,_0x31c084=_0xc2ee97[_0x1622c9(0x16e)]||_0xc2ee97['maxRisk'],_0xbfe316=_0x31c084==='read'||_0x31c084===_0x1622c9(0x14a)||_0x31c084===_0x1622c9(0x132)?_0x31c084:DEFAULT_CONFIG_VALUES[_0x1622c9(0x16e)],_0x47f902=env(_0x1622c9(0x137)),_0x20dcf6=_0x47f902==='1'||_0x47f902===_0x1622c9(0x168);return{'appCode':typeof _0x1e2fe8==='string'&&_0x1e2fe8['trim']()?_0x1e2fe8[_0x1622c9(0x155)]():undefined,'appCodeSource':_0x4950c4,'env':_0x393f30,'locale':_0x1f06eb,'cookie':_0x9638bf,'accessKey':_0x450a6c,'format':_0x5a6b50,'pageSize':_0x1d03c9,'riskLevel':_0xbfe316,'verbose':_0x20dcf6,'defaultApp':_0x540c9d,'currentApp':typeof _0x4926d9===_0x1622c9(0x169)?_0x4926d9:undefined,'raw':_0xc2ee97};}function env(_0x5e9742){return productEnv(_0x5e9742);}async function buildAuth(_0x4a6cd6){const _0xaa866b='',_0x596b03=!!_0x4a6cd6['accessKey'];return{'cookie':_0xaa866b,'isLoggedIn':_0x596b03,async 'getOrLogin'(){if(_0x596b03)return _0xaa866b;throw CliErrors['authRequired']();}};}
1
+ const a75_0x3eb8cd=a75_0x3719;(function(_0x950bb8,_0x4ad434){const _0x43f3d5=a75_0x3719,_0x693055=_0x950bb8();while(!![]){try{const _0x3a0e24=-parseInt(_0x43f3d5(0x21c))/0x1+parseInt(_0x43f3d5(0x210))/0x2+parseInt(_0x43f3d5(0x1e4))/0x3+-parseInt(_0x43f3d5(0x1ee))/0x4*(parseInt(_0x43f3d5(0x1f9))/0x5)+parseInt(_0x43f3d5(0x20e))/0x6*(parseInt(_0x43f3d5(0x20f))/0x7)+-parseInt(_0x43f3d5(0x213))/0x8+-parseInt(_0x43f3d5(0x1f4))/0x9*(-parseInt(_0x43f3d5(0x202))/0xa);if(_0x3a0e24===_0x4ad434)break;else _0x693055['push'](_0x693055['shift']());}catch(_0x52c828){_0x693055['push'](_0x693055['shift']());}}}(a75_0x3bac,0x26d4b));import{readFileSync,existsSync,mkdirSync,renameSync,unlinkSync,writeFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{homedir}from'node:os';import{logger}from'./utils/logger.js';import{CliErrors}from'./errors.js';import{CLI_BIN_NAME}from'./constant/cli.js';import{PRODUCT_CONFIG,productEnv,productEnvNames}from'./constant/product.js';import{DEFAULT_CONFIG_VALUES}from'./constant/defaults.js';import{normalizeEnv,isDaily,isDev}from'./constant/env.js';import{normalizeLegacyOutputFormat}from'./framework/types.js';import{resolveCachedAppCode}from'./commands/app/cache.js';export{AUTH_MODE,isAuthMode}from'./constant/auth-mode.js';const CONFIG_NAMES=PRODUCT_CONFIG['configFileNames'];export const NEW_CONFIG_NAME=PRODUCT_CONFIG[a75_0x3eb8cd(0x1ec)];function resolveConfigPath(_0x5a6030){for(const _0x3569ee of CONFIG_NAMES){const _0x20c1e3=resolve(_0x5a6030,_0x3569ee);if(existsSync(_0x20c1e3))return _0x20c1e3;}return undefined;}export function resolveWriteConfigPath(_0x476f66){const _0x4d92c2=a75_0x3eb8cd,_0x293d69=_0x476f66===_0x4d92c2(0x203)?process[_0x4d92c2(0x1e9)]():homedir(),_0x5d48c0=resolveConfigPath(_0x293d69);return _0x5d48c0??resolve(_0x293d69,NEW_CONFIG_NAME);}export function readConfigFile(_0x44796e){const _0x453138=a75_0x3eb8cd;try{if(existsSync(_0x44796e)){const _0x440c77=readFileSync(_0x44796e,{'encoding':'utf8'});if(_0x440c77){const _0x33e64a=JSON[_0x453138(0x1f8)](_0x440c77);return migrateOnlineEnv(_0x44796e,_0x33e64a),_0x33e64a;}}}catch{}return{};}function migrateOnlineEnv(_0x2905af,_0x11a882){const _0x4f9d92=a75_0x3eb8cd;let _0x4686e3=![];_0x11a882[_0x4f9d92(0x200)]===_0x4f9d92(0x229)&&(_0x11a882[_0x4f9d92(0x200)]=_0x4f9d92(0x1e7),_0x4686e3=!![]);if(_0x11a882[_0x4f9d92(0x1f1)]&&typeof _0x11a882[_0x4f9d92(0x1f1)]===_0x4f9d92(0x209))for(const _0x424d1b of Object[_0x4f9d92(0x228)](_0x11a882['apps'])){_0x424d1b&&_0x424d1b[_0x4f9d92(0x200)]===_0x4f9d92(0x229)&&(_0x424d1b[_0x4f9d92(0x200)]=_0x4f9d92(0x1e7),_0x4686e3=!![]);}if(_0x4686e3)try{writeConfigFile(_0x2905af,_0x11a882);}catch{}}export function writeConfigFile(_0x59bafc,_0xb590cc){const _0x235ab9=a75_0x3eb8cd,_0x39486d=dirname(_0x59bafc);!existsSync(_0x39486d)&&mkdirSync(_0x39486d,{'recursive':!![]});const _0x883c88=_0x59bafc+_0x235ab9(0x208);try{writeFileSync(_0x883c88,JSON[_0x235ab9(0x21d)](_0xb590cc,null,0x2)+'\x0a',{'encoding':_0x235ab9(0x227),'mode':0x180});try{renameSync(_0x883c88,_0x59bafc);}catch(_0x571da1){if(_0x571da1[_0x235ab9(0x22b)]===_0x235ab9(0x207)||_0x571da1[_0x235ab9(0x22b)]===_0x235ab9(0x219)||_0x571da1[_0x235ab9(0x22b)]===_0x235ab9(0x211)){writeFileSync(_0x59bafc,JSON[_0x235ab9(0x21d)](_0xb590cc,null,0x2)+'\x0a',{'encoding':'utf8'});try{unlinkSync(_0x883c88);}catch{}}else throw _0x571da1;}}catch(_0x3df1ec){try{unlinkSync(_0x883c88);}catch{}throw _0x3df1ec;}}export function isNonInteractiveMode(_0x13fafc){const _0x540ed0=a75_0x3eb8cd;return!!(_0x13fafc['nonInteractive']||_0x13fafc['ci']||productEnvNames('CI')[_0x540ed0(0x21e)](_0x3244ad=>process.env[_0x3244ad]===_0x540ed0(0x204))||process.env.CI===_0x540ed0(0x204)||!process[_0x540ed0(0x221)]['isTTY']||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x187e53=a75_0x3eb8cd;if(!process['stdin'][_0x187e53(0x226)])return![];try{const _0xa52586=process['stdin'][_0x187e53(0x222)];return process[_0x187e53(0x224)]['setRawMode'](!![]),process[_0x187e53(0x224)][_0x187e53(0x1fe)](_0xa52586??![]),!![];}catch{return![];}}export async function createContext(_0x28ff4a){const _0x3aef46=a75_0x3eb8cd,_0x47c455=readRawConfig(),_0x1d459e=buildConfig(_0x47c455,_0x28ff4a);await initGlobalEnvironment(_0x1d459e);const {getUserDomain:_0x14959,getApiDomain:_0x47aeac}=await import(_0x3aef46(0x214)),_0x259c44={'apiDomain':_0x47aeac(),'userDomain':_0x14959()},_0x1de4d4=await buildAuth(_0x1d459e);logger[_0x3aef46(0x1ea)](process['cwd']());const _0x15c5e7=(CLI_BIN_NAME+'\x20'+process['argv'][_0x3aef46(0x20b)](0x2)['join']('\x20'))[_0x3aef46(0x1f6)]();logger[_0x3aef46(0x22c)](_0x15c5e7);const _0x11a419=isNonInteractiveMode(_0x28ff4a);return{'config':_0x1d459e,'auth':_0x1de4d4,'logger':logger,'env':_0x259c44,'nonInteractive':_0x11a419};}export function buildConfigFromFlags(_0x257826){return buildConfig(readRawConfig(),_0x257826);}function a75_0x3bac(){const _0x5e3d05=['./constant/env.js','96816wYsjIg','./constant/domain.js','error','development','raw','APPCODE','EXDEV','top-level','PAGE_SIZE','317946mxcYVe','stringify','some','write','daily','stdout','isRaw','runtimeDomain','stdin','read','isTTY','utf8','values','online','format','code','setRawCommand','apiDomain','explicit','accessKey','899724kuidXQ','string','global','production','riskLevel','cwd','setLogPath','ACCESS_KEY','newConfigFileName','maxRisk','76YNxYVK','app','high-risk-write','apps','APP','message','9JfQgBf','FORMAT','trim','locale','parse','70775CPlTVi','appcode','empty','ENV','inherit','setRawMode','missing','env','projectConfig','1843090MxzAUA','project','true','find','defaultApp','EPERM','.tmp','object','cache','slice','local-alias','pageSize','1338vCRPHu','427GedfbV','520448YkFFwL','EACCES'];a75_0x3bac=function(){return _0x5e3d05;};return a75_0x3bac();}export function getLocalAppAliases(_0x5eb3a0){const _0x45ea89=a75_0x3eb8cd;return _0x5eb3a0['apps']&&typeof _0x5eb3a0[_0x45ea89(0x1f1)]===_0x45ea89(0x209)?_0x5eb3a0[_0x45ea89(0x1f1)]:{};}export function resolveLocalAppAliasCode(_0x16f477,_0x1d7ab2){const _0x5c3e1c=a75_0x3eb8cd;if(!_0x1d7ab2)return undefined;const _0x260684=getLocalAppAliases(_0x16f477)[_0x1d7ab2],_0x1ab75f=_0x260684?.['appcode'];return typeof _0x1ab75f===_0x5c3e1c(0x1e5)&&_0x1ab75f[_0x5c3e1c(0x1f6)]()?_0x1ab75f['trim']():undefined;}export function readAppCodeFromConfig(){const _0x366c06=a75_0x3eb8cd,_0x2c4ba2=readRawConfig(),_0x22fa9f=_0x2c4ba2['appcode']??_0x2c4ba2[_0x366c06(0x1ef)];if(typeof _0x22fa9f===_0x366c06(0x1e5)&&_0x22fa9f[_0x366c06(0x1f6)]())return _0x22fa9f[_0x366c06(0x1f6)]();const _0x3e7bdd=resolveLocalAppAliasCode(_0x2c4ba2,typeof _0x2c4ba2[_0x366c06(0x206)]===_0x366c06(0x1e5)?_0x2c4ba2[_0x366c06(0x206)]:undefined);if(_0x3e7bdd)return _0x3e7bdd;const _0x5544a8=normalizeEnv(String(_0x2c4ba2[_0x366c06(0x200)]||_0x366c06(0x1e7))),_0x127429=isDaily(_0x5544a8)?_0x366c06(0x220):isDev(_0x5544a8)?'development':_0x366c06(0x1e7),_0x39cdeb=resolveCachedAppCode(typeof _0x2c4ba2['defaultApp']===_0x366c06(0x1e5)?_0x2c4ba2[_0x366c06(0x206)]:undefined,_0x127429,typeof _0x2c4ba2['accessKey']===_0x366c06(0x1e5)?_0x2c4ba2[_0x366c06(0x1e3)]:undefined);if(_0x39cdeb)return _0x39cdeb;const _0x4075c2=Object[_0x366c06(0x228)](getLocalAppAliases(_0x2c4ba2))[_0x366c06(0x205)](_0x2398bb=>_0x2398bb?.['appcode']);return typeof _0x4075c2?.[_0x366c06(0x1fa)]==='string'&&_0x4075c2[_0x366c06(0x1fa)][_0x366c06(0x1f6)]()?_0x4075c2[_0x366c06(0x1fa)]['trim']():undefined;}export function readScopedConfig(_0x200426){const _0x3efeb1=a75_0x3eb8cd,_0x24ff80=_0x200426[_0x3efeb1(0x1e6)]?_0x3efeb1(0x1e6):_0x3efeb1(0x203);return readConfigFile(resolveWriteConfigPath(_0x24ff80));}export function writeScopedConfig(_0x465d14,_0xfd192f){const _0x50f48e=a75_0x3eb8cd,_0x22dfc1=_0xfd192f[_0x50f48e(0x1e6)]?'global':'project';writeConfigFile(resolveWriteConfigPath(_0x22dfc1),_0x465d14);}export async function initGlobalEnvironment(_0x183b40){const _0x2664bd=a75_0x3eb8cd,{initEnv:_0x2a3e8a}=await import(_0x2664bd(0x212));_0x2a3e8a(_0x183b40['env']);const {initDomains:_0x57a39d}=await import(_0x2664bd(0x214));_0x57a39d({'apiDomain':_0x183b40['raw'][_0x2664bd(0x22d)]||_0x183b40['raw']['host']||undefined,'userDomain':_0x183b40[_0x2664bd(0x217)]['userDomain']||undefined,'runtimeDomain':_0x183b40['raw'][_0x2664bd(0x223)]||undefined,'skillHubDomain':_0x183b40[_0x2664bd(0x217)]['skillHubDomain']||undefined});}export function getProjectConfigPath(){return resolveConfigPath(process['cwd']());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function inspectCliConfigJsonFile(_0xb49e79){const _0x1b3835=a75_0x3eb8cd;if(!existsSync(_0xb49e79))return{'status':_0x1b3835(0x1ff)};try{const _0x58687b=readFileSync(_0xb49e79,{'encoding':_0x1b3835(0x227)});if(!_0x58687b?.['trim']())return{'status':_0x1b3835(0x1fb)};const _0x3522e3=JSON[_0x1b3835(0x1f8)](_0x58687b);return{'status':'ok','data':_0x3522e3};}catch(_0x3fa34f){return{'status':_0x1b3835(0x215),'message':_0x3fa34f instanceof Error?_0x3fa34f[_0x1b3835(0x1f3)]:String(_0x3fa34f)};}}export function loadRawConfigLayers(_0x360971){const _0x3ac7df=a75_0x3eb8cd;let _0x44639c={},_0x166fe5={},_0x2621f0,_0x5dbde5;try{_0x2621f0=resolveConfigPath(homedir());if(_0x2621f0){const _0x11e0a2=readFileSync(_0x2621f0,{'encoding':_0x3ac7df(0x227)});if(_0x11e0a2)_0x44639c=JSON[_0x3ac7df(0x1f8)](_0x11e0a2);}}catch{}try{const _0x2e7103=_0x360971||process[_0x3ac7df(0x1e9)]();_0x5dbde5=resolveConfigPath(_0x2e7103);if(_0x5dbde5){const _0x121dd1=readFileSync(_0x5dbde5,{'encoding':_0x3ac7df(0x227)});if(_0x121dd1)_0x166fe5=JSON[_0x3ac7df(0x1f8)](_0x121dd1);}}catch{}return{'globalPath':_0x2621f0,'projectPath':_0x5dbde5,'globalConfig':_0x44639c,'projectConfig':_0x166fe5};}function mergeRawConfigLayers(_0x33ff89){const _0x42936d=a75_0x3eb8cd,{globalConfig:_0x70685,projectConfig:_0x5ec127}=_0x33ff89;if(_0x5ec127['inherit']===![]){const _0x3d2b91={..._0x5ec127};return delete _0x3d2b91[_0x42936d(0x1fd)],_0x3d2b91;}const _0x588006={..._0x70685,..._0x5ec127};if(_0x42936d(0x206)in _0x5ec127)_0x588006[_0x42936d(0x206)]=_0x5ec127[_0x42936d(0x206)];else _0x70685[_0x42936d(0x206)]&&(_0x588006['defaultApp']=_0x70685[_0x42936d(0x206)]);return _0x588006;}export function isInProject(){return!!getProjectConfigPath();}export function readRawConfig(_0x486827){return mergeRawConfigLayers(loadRawConfigLayers(_0x486827));}export function readRawConfigWithLayers(_0x1a09fd){const _0x35ef63=loadRawConfigLayers(_0x1a09fd);return{'config':mergeRawConfigLayers(_0x35ef63),'layers':_0x35ef63};}export function resolveDefaultAppSource(_0x5c515c){const _0x3d512f=a75_0x3eb8cd;if('defaultApp'in _0x5c515c[_0x3d512f(0x201)])return'project';if(_0x5c515c['projectConfig'][_0x3d512f(0x1fd)]===![])return null;if(_0x5c515c['globalConfig'][_0x3d512f(0x206)])return _0x3d512f(0x1e6);return null;}function a75_0x3719(_0x12cc6b,_0x298687){_0x12cc6b=_0x12cc6b-0x1e3;const _0x3bac75=a75_0x3bac();let _0x3719ba=_0x3bac75[_0x12cc6b];return _0x3719ba;}function buildConfig(_0x590fa7,_0x2b181c){const _0xedf901=a75_0x3eb8cd,_0x208177=_0x590fa7['defaultApp']||undefined,_0x488ff1=_0x2b181c['app']||env(_0xedf901(0x1f2))||undefined,_0x9ed7=_0x488ff1||_0x208177||undefined,_0x24d40f=env(_0xedf901(0x1eb))||_0x590fa7[_0xedf901(0x1e3)]||undefined,_0xa25935=_0x2b181c[_0xedf901(0x200)]||env(_0xedf901(0x1fc))||_0x590fa7['env']||DEFAULT_CONFIG_VALUES[_0xedf901(0x200)],_0x239c35=normalizeEnv(String(_0xa25935)),_0x5ee4f3=isDaily(_0x239c35)?'daily':isDev(_0x239c35)?_0xedf901(0x216):_0xedf901(0x1e7),_0x497f40=typeof _0x2b181c[_0xedf901(0x1fa)]===_0xedf901(0x1e5)?_0x2b181c['appcode']:undefined,_0x3f5cac=env(_0xedf901(0x218)),_0x3f52b6=_0x488ff1?undefined:_0x590fa7[_0xedf901(0x1fa)]||_0x590fa7[_0xedf901(0x1ef)]||undefined,_0x42e799=_0x488ff1||(_0x3f52b6?undefined:_0x208177),_0x2e65fe=resolveLocalAppAliasCode(_0x590fa7,_0x42e799),_0x12e564=resolveCachedAppCode(_0x42e799,_0x5ee4f3,_0x24d40f),_0x4f9fef=_0x497f40||_0x3f5cac||_0x3f52b6||_0x2e65fe||_0x12e564||undefined,_0x336407=_0x497f40?_0xedf901(0x22e):_0x3f5cac?'env':_0x3f52b6?_0xedf901(0x21a):_0x2e65fe?_0xedf901(0x20c):_0x12e564?_0xedf901(0x20a):undefined,_0x26a36c=_0x590fa7[_0xedf901(0x1f7)]||DEFAULT_CONFIG_VALUES['locale'],_0x27d9bd=undefined,_0x349250=_0x2b181c['format']||env(_0xedf901(0x1f5))||_0x590fa7[_0xedf901(0x22a)],_0x5576f0=normalizeLegacyOutputFormat(_0x349250),_0x574ec6=env(_0xedf901(0x21b))||_0x590fa7[_0xedf901(0x20d)],_0x3fcd21=_0x574ec6?Number(_0x574ec6)||undefined:undefined,_0x4d7ba1=_0x590fa7['riskLevel']||_0x590fa7[_0xedf901(0x1ed)],_0x3dcb79=_0x4d7ba1===_0xedf901(0x225)||_0x4d7ba1===_0xedf901(0x21f)||_0x4d7ba1===_0xedf901(0x1f0)?_0x4d7ba1:DEFAULT_CONFIG_VALUES[_0xedf901(0x1e8)],_0xb3ad1a=env('VERBOSE'),_0x24ffc8=_0xb3ad1a==='1'||_0xb3ad1a===_0xedf901(0x204);return{'appCode':typeof _0x4f9fef==='string'&&_0x4f9fef['trim']()?_0x4f9fef[_0xedf901(0x1f6)]():undefined,'appCodeSource':_0x336407,'env':_0x5ee4f3,'locale':_0x26a36c,'cookie':_0x27d9bd,'accessKey':_0x24d40f,'format':_0x5576f0,'pageSize':_0x3fcd21,'riskLevel':_0x3dcb79,'verbose':_0x24ffc8,'defaultApp':_0x208177,'currentApp':typeof _0x9ed7===_0xedf901(0x1e5)?_0x9ed7:undefined,'raw':_0x590fa7};}function env(_0x50f061){return productEnv(_0x50f061);}async function buildAuth(_0xbbebe0){const _0x34130f=a75_0x3eb8cd,_0x4aedba='',_0x1172a4=!!_0xbbebe0[_0x34130f(0x1e3)];return{'cookie':_0x4aedba,'isLoggedIn':_0x1172a4,async 'getOrLogin'(){if(_0x1172a4)return _0x4aedba;throw CliErrors['authRequired']();}};}
@@ -1 +1 @@
1
- (function(_0x547fbb,_0x532d36){const _0x3ca6f9=a76_0x2466,_0x43cc17=_0x547fbb();while(!![]){try{const _0x246764=-parseInt(_0x3ca6f9(0xbf))/0x1*(-parseInt(_0x3ca6f9(0xf2))/0x2)+-parseInt(_0x3ca6f9(0xcc))/0x3*(parseInt(_0x3ca6f9(0x112))/0x4)+parseInt(_0x3ca6f9(0xe3))/0x5*(parseInt(_0x3ca6f9(0xb2))/0x6)+parseInt(_0x3ca6f9(0xfa))/0x7+parseInt(_0x3ca6f9(0x9e))/0x8*(parseInt(_0x3ca6f9(0x110))/0x9)+parseInt(_0x3ca6f9(0x9c))/0xa*(-parseInt(_0x3ca6f9(0xdc))/0xb)+-parseInt(_0x3ca6f9(0x124))/0xc*(parseInt(_0x3ca6f9(0xcb))/0xd);if(_0x246764===_0x532d36)break;else _0x43cc17['push'](_0x43cc17['shift']());}catch(_0x31ae0d){_0x43cc17['push'](_0x43cc17['shift']());}}}(a76_0xd2b1,0xadcbc));import{readFile}from'node:fs/promises';import{basename}from'node:path';import{getApiDomain,getRuntimeDomain,getSkillHubDomain}from'../constant/domain.js';import{PRODUCT_CONFIG}from'../constant/product.js';import{CliErrors}from'../errors.js';import{createRateLimitError,readRetryAfter,readRetryAfterSeconds}from'../framework/rate-limit.js';import{extractList}from'../framework/response.js';import{parseLosslessJson}from'../utils/lossless-json.js';let _activeAK;export function setActiveAK(_0x12e0f3){_activeAK=_0x12e0f3||undefined;}export function clearActiveAK(){_activeAK=undefined;}function firstString(..._0x1dd335){const _0x465deb=a76_0x2466;for(const _0xf7f9bf of _0x1dd335){if(typeof _0xf7f9bf===_0x465deb(0x10a)&&_0xf7f9bf[_0x465deb(0xc5)]())return _0xf7f9bf['trim']();}return undefined;}async function decodeResponseBody(_0x3b1e22){const _0x2db338=a76_0x2466;if(typeof _0x3b1e22[_0x2db338(0xa0)]===_0x2db338(0xf0))try{const _0x50836c=await _0x3b1e22[_0x2db338(0xa0)]();try{return{'isJson':!![],'data':parseLosslessJson(_0x50836c),'text':_0x50836c};}catch{return{'isJson':![],'text':_0x50836c[_0x2db338(0xc5)]()||undefined};}}catch{}try{return{'isJson':!![],'data':await _0x3b1e22[_0x2db338(0xa4)]()};}catch{return{'isJson':![]};}}function throwIfRateLimited(_0x99bd61,_0x181fd5,_0x208b41){const _0x4615f9=a76_0x2466,_0x41458c=_0x181fd5&&typeof _0x181fd5===_0x4615f9(0x111)?_0x181fd5:{},_0x264564=[_0x41458c['status'],_0x41458c[_0x4615f9(0x102)]][_0x4615f9(0xc9)](_0x4d25f5=>Number(_0x4d25f5)===0x1ad),_0x2b7204=createRateLimitError({'status':_0x99bd61[_0x4615f9(0x11d)]===0x1ad?_0x99bd61['status']:_0x264564??_0x99bd61[_0x4615f9(0x11d)],'errorCode':firstString(_0x41458c['errorCode'],typeof _0x41458c['code']===_0x4615f9(0x10a)?_0x41458c['code']:undefined),'message':firstString(_0x41458c[_0x4615f9(0x115)],_0x41458c[_0x4615f9(0xb1)],_0x41458c[_0x4615f9(0xb8)],_0x208b41),'retryAfter':readRetryAfter(_0x99bd61[_0x4615f9(0xde)])??readRetryAfterSeconds(_0x181fd5)});if(_0x2b7204)throw _0x2b7204;}async function apiRequest(_0x1c6798,_0x9ea0ac={}){const _0x193f1f=a76_0x2466,{method:method=_0x193f1f(0x96),body:_0x26d6ad,headers:headers={},timeout:timeout=0x7530}=_0x9ea0ac,_0x1ae2b5=_activeAK,_0x47b049=getRuntimeDomain();if(!_0x1ae2b5)throw CliErrors[_0x193f1f(0x9b)](_0x193f1f(0xe6)+PRODUCT_CONFIG[_0x193f1f(0xae)]+'.');const _0xa822af=''+_0x47b049+_0x1c6798,_0x506020={'X-User-AK':_0x1ae2b5},_0x34c5e9=new AbortController(),_0x5a130f=setTimeout(()=>_0x34c5e9[_0x193f1f(0xfe)](),timeout);try{const _0x9417b1=await fetch(_0xa822af,{'method':method,'headers':{'Content-Type':'application/json','X-Invoke-Source':PRODUCT_CONFIG[_0x193f1f(0x117)],..._0x506020,...headers},'body':_0x26d6ad?JSON['stringify'](_0x26d6ad):undefined,'signal':_0x34c5e9['signal']}),_0x3c2cfb=await decodeResponseBody(_0x9417b1);if(!_0x3c2cfb[_0x193f1f(0xa1)]){throwIfRateLimited(_0x9417b1,undefined,_0x3c2cfb[_0x193f1f(0xa0)]);throw CliErrors[_0x193f1f(0xa5)]('API\x20returned\x20non-JSON\x20response\x20(HTTP\x20'+_0x9417b1['status']+')',_0x9417b1[_0x193f1f(0x11d)]>=0x190?_0x193f1f(0xea):undefined);}const _0x11e306=_0x3c2cfb[_0x193f1f(0xb9)];throwIfRateLimited(_0x9417b1,_0x11e306);if(!_0x9417b1['ok']||_0x11e306[_0x193f1f(0x128)]===![])throw CliErrors[_0x193f1f(0xa5)](_0x11e306['errorMsg']||_0x11e306['message']||_0x193f1f(0xa2)+_0x9417b1[_0x193f1f(0x11d)],_0x11e306[_0x193f1f(0xb7)]?_0x193f1f(0xd5)+_0x11e306[_0x193f1f(0xb7)]:undefined);return _0x11e306;}catch(_0x2b9515){if(_0x2b9515 instanceof Error&&_0x2b9515[_0x193f1f(0xc1)]===_0x193f1f(0xd8))throw CliErrors[_0x193f1f(0xa5)]('Request\x20timeout:\x20'+_0xa822af);throw _0x2b9515;}finally{clearTimeout(_0x5a130f);}}async function apiBinaryRequest(_0x3bab0a,_0x41d06f={}){const _0x14ea95=a76_0x2466,{method:method=_0x14ea95(0x96),headers:headers={},timeout:timeout=0x7530}=_0x41d06f,_0x36f921=_activeAK,_0x42b55a=getRuntimeDomain();if(!_0x36f921)throw CliErrors[_0x14ea95(0x9b)](_0x14ea95(0xe6)+PRODUCT_CONFIG['newConfigFileName']+'.');const _0x3d7908=''+_0x42b55a+_0x3bab0a,_0x25f3bc=new AbortController(),_0x2e10ec=setTimeout(()=>_0x25f3bc[_0x14ea95(0xfe)](),timeout);try{const _0x2dfec0=await fetch(_0x3d7908,{'method':method,'headers':{'X-Invoke-Source':PRODUCT_CONFIG[_0x14ea95(0x117)],'X-User-AK':_0x36f921,...headers},'signal':_0x25f3bc['signal']});if(!_0x2dfec0['ok']){const _0x947328=await decodeResponseBody(_0x2dfec0),_0x4b2122=_0x947328[_0x14ea95(0xb9)]&&typeof _0x947328[_0x14ea95(0xb9)]===_0x14ea95(0x111)?_0x947328[_0x14ea95(0xb9)]:{},_0x4c11ba=firstString(_0x4b2122['errorMsg'],_0x4b2122[_0x14ea95(0xb1)],_0x4b2122[_0x14ea95(0xb7)],_0x947328[_0x14ea95(0xa0)]);throwIfRateLimited(_0x2dfec0,_0x947328['data'],_0x4c11ba);throw CliErrors[_0x14ea95(0xa5)](_0x4c11ba||_0x14ea95(0xa2)+_0x2dfec0[_0x14ea95(0x11d)],'Download\x20failed:\x20'+_0x3d7908);}return Buffer[_0x14ea95(0x10d)](await _0x2dfec0[_0x14ea95(0xf1)]());}catch(_0x485733){if(_0x485733 instanceof Error&&_0x485733[_0x14ea95(0xc1)]===_0x14ea95(0xd8))throw CliErrors['apiError'](_0x14ea95(0x11b)+_0x3d7908);throw _0x485733;}finally{clearTimeout(_0x2e10ec);}}async function apiFormRequest(_0x325af1,_0x130881,_0x29539e={}){const _0x1ddd4f=a76_0x2466,{timeout:timeout=0x7530}=_0x29539e,_0x56431c=_activeAK,_0x19e8f9=getRuntimeDomain();if(!_0x56431c)throw CliErrors[_0x1ddd4f(0x9b)](_0x1ddd4f(0xe6)+PRODUCT_CONFIG[_0x1ddd4f(0xae)]+'.');const _0x4b9463=''+_0x19e8f9+_0x325af1,_0x3654df=new AbortController(),_0x1e709a=setTimeout(()=>_0x3654df['abort'](),timeout);try{const _0x1d0d8c=await fetch(_0x4b9463,{'method':_0x1ddd4f(0xa3),'headers':{'X-Invoke-Source':PRODUCT_CONFIG[_0x1ddd4f(0x117)],'X-User-AK':_0x56431c},'body':_0x130881,'signal':_0x3654df[_0x1ddd4f(0xfb)]}),_0x29abe8=await decodeResponseBody(_0x1d0d8c);if(!_0x29abe8[_0x1ddd4f(0xa1)]){throwIfRateLimited(_0x1d0d8c,undefined,_0x29abe8[_0x1ddd4f(0xa0)]);throw CliErrors[_0x1ddd4f(0xa5)](_0x1ddd4f(0x11f)+_0x1d0d8c['status']+')',_0x1d0d8c[_0x1ddd4f(0x11d)]>=0x190?_0x1ddd4f(0xea):undefined);}const _0x2c5932=_0x29abe8[_0x1ddd4f(0xb9)];throwIfRateLimited(_0x1d0d8c,_0x2c5932);if(!_0x1d0d8c['ok']||_0x2c5932[_0x1ddd4f(0x128)]===![])throw CliErrors[_0x1ddd4f(0xa5)](_0x2c5932[_0x1ddd4f(0x115)]||_0x2c5932['message']||_0x1ddd4f(0xa2)+_0x1d0d8c['status'],_0x2c5932[_0x1ddd4f(0xb7)]?'API\x20error\x20code:\x20'+_0x2c5932[_0x1ddd4f(0xb7)]:undefined);return _0x2c5932;}catch(_0x1741ab){if(_0x1741ab instanceof Error&&_0x1741ab[_0x1ddd4f(0xc1)]===_0x1ddd4f(0xd8))throw CliErrors['apiError']('Request\x20timeout:\x20'+_0x4b9463);throw _0x1741ab;}finally{clearTimeout(_0x1e709a);}}async function toolboxRequest(_0x2f557a,_0x58e6ed,_0x145c49={}){const _0x4c8d25=a76_0x2466,{method:method=_0x4c8d25(0x96),headers:headers={},timeout:timeout=0x7530}=_0x145c49,_0x17dea0=_activeAK;if(!_0x17dea0)throw CliErrors['authRequired'](_0x4c8d25(0xe6)+PRODUCT_CONFIG[_0x4c8d25(0xae)]+'.');const _0xeb6756=getApiDomain()[_0x4c8d25(0xa8)](/\/$/,''),_0x118253=new URL(_0x2f557a,_0xeb6756+_0x4c8d25(0xf5));if(_0x58e6ed)for(const [_0x4557af,_0x2b78eb]of Object['entries'](_0x58e6ed)){_0x2b78eb!==undefined&&_0x2b78eb!==null&&_0x118253[_0x4c8d25(0x95)][_0x4c8d25(0xac)](_0x4557af,String(_0x2b78eb));}const _0x47c9a1=new AbortController(),_0x15adcb=setTimeout(()=>_0x47c9a1[_0x4c8d25(0xfe)](),timeout);try{const _0x2fbc76=await fetch(_0x118253,{'method':method,'headers':{'Content-Type':_0x4c8d25(0xa9),'X-Invoke-Source':PRODUCT_CONFIG[_0x4c8d25(0x117)],'X-User-AK':_0x17dea0,...headers},'signal':_0x47c9a1[_0x4c8d25(0xfb)]}),_0x14c964=await decodeResponseBody(_0x2fbc76);if(!_0x14c964[_0x4c8d25(0xa1)]){throwIfRateLimited(_0x2fbc76,undefined,_0x14c964[_0x4c8d25(0xa0)]);throw CliErrors[_0x4c8d25(0xa5)](_0x4c8d25(0x127)+_0x2fbc76[_0x4c8d25(0x11d)]+')',_0x2fbc76[_0x4c8d25(0x11d)]>=0x190?_0x4c8d25(0xea):undefined);}const _0x3617cb=_0x14c964[_0x4c8d25(0xb9)];throwIfRateLimited(_0x2fbc76,_0x3617cb);if(!_0x2fbc76['ok']){const _0x21bbc3=_0x3617cb&&typeof _0x3617cb==='object'?_0x3617cb:{};throw CliErrors[_0x4c8d25(0xa5)](_0x21bbc3[_0x4c8d25(0x115)]||_0x21bbc3[_0x4c8d25(0xb1)]||_0x4c8d25(0xc7)+_0x2fbc76[_0x4c8d25(0x11d)],_0x21bbc3[_0x4c8d25(0xb7)]?'Toolbox\x20error\x20code:\x20'+_0x21bbc3[_0x4c8d25(0xb7)]:undefined);}if(_0x3617cb&&typeof _0x3617cb===_0x4c8d25(0x111)&&_0x4c8d25(0x128)in _0x3617cb&&typeof _0x3617cb[_0x4c8d25(0x128)]===_0x4c8d25(0xb0)){const _0x446874=_0x3617cb;if(!_0x446874[_0x4c8d25(0x128)])throw CliErrors[_0x4c8d25(0xa5)](_0x446874['errorMsg']||_0x446874[_0x4c8d25(0xb1)]||_0x4c8d25(0x10c),_0x446874[_0x4c8d25(0xb7)]?_0x4c8d25(0x11a)+_0x446874['errorCode']:undefined);return _0x446874[_0x4c8d25(0xb9)];}return _0x3617cb;}catch(_0x57f379){if(_0x57f379 instanceof Error&&_0x57f379['name']===_0x4c8d25(0xd8))throw CliErrors[_0x4c8d25(0xa5)](_0x4c8d25(0x11b)+_0x118253[_0x4c8d25(0x101)]());throw _0x57f379;}finally{clearTimeout(_0x15adcb);}}async function skillHubJsonRequest(_0x453acc,_0x70dd8e={}){const _0xc64a78=a76_0x2466,{method:method=_0xc64a78(0x96),query:_0x4da413,body:_0x42f94d,headers:headers={},timeout:timeout=0x7530,allowNotFound:allowNotFound=![]}=_0x70dd8e,_0x3d8fc7=_activeAK;if(!_0x3d8fc7)throw CliErrors['authRequired'](_0xc64a78(0xe6)+PRODUCT_CONFIG[_0xc64a78(0xae)]+'.');const _0x1d568e=getSkillHubDomain()[_0xc64a78(0xa8)](/\/$/,''),_0x1b4253=new URL(_0x453acc,_0x1d568e+'/');if(_0x4da413)for(const [_0xaa9f5c,_0x40e07c]of Object[_0xc64a78(0xe8)](_0x4da413)){_0x40e07c!==undefined&&_0x40e07c!==null&&_0x1b4253[_0xc64a78(0x95)][_0xc64a78(0xac)](_0xaa9f5c,String(_0x40e07c));}const _0x4c5f63=new AbortController(),_0x450ca0=setTimeout(()=>_0x4c5f63[_0xc64a78(0xfe)](),timeout);try{const _0x25c44c=await fetch(_0x1b4253[_0xc64a78(0x101)](),{'method':method,'headers':{'Accept':_0xc64a78(0xa9),'X-Invoke-Source':PRODUCT_CONFIG['invokeSource'],'X-User-AK':_0x3d8fc7,...headers},'body':_0x42f94d,'signal':_0x4c5f63[_0xc64a78(0xfb)]}),_0x3f6644=await decodeResponseBody(_0x25c44c);if(!_0x3f6644['isJson']){if(allowNotFound&&_0x25c44c['status']===0x194)return undefined;throwIfRateLimited(_0x25c44c,undefined,_0x3f6644['text']);throw CliErrors[_0xc64a78(0xa5)]('SkillHub\x20returned\x20non-JSON\x20response\x20(HTTP\x20'+_0x25c44c[_0xc64a78(0x11d)]+')',_0x25c44c['status']>=0x190?_0xc64a78(0xea):undefined);}const _0x56cbd9=_0x3f6644['data'];throwIfRateLimited(_0x25c44c,_0x56cbd9);if(allowNotFound&&isSkillHubNotFoundResponse(_0x25c44c[_0xc64a78(0x11d)],_0x56cbd9))return undefined;const _0x2def2e=!_0x25c44c['ok']||_0x56cbd9?.[_0xc64a78(0x128)]===![]||typeof _0x56cbd9?.['code']===_0xc64a78(0xf3)&&_0x56cbd9['code']>=0x190;if(_0x2def2e)throw CliErrors[_0xc64a78(0xa5)](_0x56cbd9?.['errorMsg']||_0x56cbd9?.[_0xc64a78(0xb1)]||_0x56cbd9?.[_0xc64a78(0xb8)]||'SkillHub\x20API\x20error:\x20'+_0x25c44c['status'],_0x56cbd9?.[_0xc64a78(0xb7)]?_0xc64a78(0x118)+_0x56cbd9[_0xc64a78(0xb7)]:undefined);return _0x56cbd9?.[_0xc64a78(0xb9)]??_0x56cbd9;}catch(_0x3415b9){if(_0x3415b9 instanceof Error&&_0x3415b9[_0xc64a78(0xc1)]===_0xc64a78(0xd8))throw CliErrors[_0xc64a78(0xa5)](_0xc64a78(0x11b)+_0x1b4253[_0xc64a78(0x101)]());throw _0x3415b9;}finally{clearTimeout(_0x450ca0);}}function isSkillHubNotFoundResponse(_0x8a1e1d,_0x22230e){const _0x8c0687=a76_0x2466;if(_0x8a1e1d===0x194||_0x22230e?.[_0x8c0687(0x102)]===0x194)return!![];if(_0x8a1e1d!==0x190&&_0x22230e?.[_0x8c0687(0x102)]!==0x190)return![];const _0x1fbecb=[_0x22230e?.[_0x8c0687(0xb8)],_0x22230e?.['message'],_0x22230e?.[_0x8c0687(0x115)],_0x22230e?.['error']]['filter'](_0x3c3fe4=>typeof _0x3c3fe4===_0x8c0687(0x10a))[_0x8c0687(0xe5)]('\x20');return/skill not found\b/i['test'](_0x1fbecb);}async function skillHubBinaryRequest(_0x75a65d,_0x432f9e={}){const _0x65353d=a76_0x2466,{query:_0x3332e8,headers:headers={},timeout:timeout=0x7530}=_0x432f9e,_0x3d7a66=_activeAK;if(!_0x3d7a66)throw CliErrors[_0x65353d(0x9b)](_0x65353d(0xe6)+PRODUCT_CONFIG['newConfigFileName']+'.');const _0x5ac3e2=getSkillHubDomain()[_0x65353d(0xa8)](/\/$/,''),_0x123a5f=new URL(_0x75a65d,_0x5ac3e2+'/');if(_0x3332e8)for(const [_0x4955d6,_0x4fff64]of Object[_0x65353d(0xe8)](_0x3332e8)){_0x4fff64!==undefined&&_0x4fff64!==null&&_0x123a5f[_0x65353d(0x95)][_0x65353d(0xac)](_0x4955d6,String(_0x4fff64));}const _0x1c7d24=new AbortController(),_0x28ff0b=setTimeout(()=>_0x1c7d24[_0x65353d(0xfe)](),timeout);try{const _0x365e22=await fetch(_0x123a5f[_0x65353d(0x101)](),{'method':'GET','headers':{'Accept':'application/octet-stream','X-Invoke-Source':PRODUCT_CONFIG[_0x65353d(0x117)],'X-User-AK':_0x3d7a66,...headers},'signal':_0x1c7d24[_0x65353d(0xfb)]});if(!_0x365e22['ok']){const _0x2c9e30=await decodeResponseBody(_0x365e22),_0x54b4e7=_0x2c9e30[_0x65353d(0xb9)]&&typeof _0x2c9e30[_0x65353d(0xb9)]==='object'?_0x2c9e30[_0x65353d(0xb9)]:{},_0xd16e65=firstString(_0x54b4e7['errorMsg'],_0x54b4e7[_0x65353d(0xb1)],_0x54b4e7['msg'],_0x54b4e7['errorCode'],_0x2c9e30[_0x65353d(0xa0)]);throwIfRateLimited(_0x365e22,_0x2c9e30[_0x65353d(0xb9)],_0xd16e65);throw CliErrors[_0x65353d(0xa5)](_0xd16e65||'SkillHub\x20API\x20error:\x20'+_0x365e22[_0x65353d(0x11d)],_0x65353d(0xf6)+_0x123a5f['toString']());}return Buffer[_0x65353d(0x10d)](await _0x365e22[_0x65353d(0xf1)]());}catch(_0x619daa){if(_0x619daa instanceof Error&&_0x619daa['name']==='AbortError')throw CliErrors[_0x65353d(0xa5)]('Request\x20timeout:\x20'+_0x123a5f['toString']());throw _0x619daa;}finally{clearTimeout(_0x28ff0b);}}export async function getBffEndpointContract(_0x3bd9fa,_0x4d2daa){const _0x135e9e=a76_0x2466;if(_0x4d2daa===_0x135e9e(0xe2))throw CliErrors['validation']('BFF\x20function\x20not\x20found\x20or\x20inaccessible:\x20appCode='+_0x3bd9fa+_0x135e9e(0xcd)+_0x4d2daa);const _0x2536e9=await apiRequest(_0x135e9e(0x106)+encodeURIComponent(_0x3bd9fa)+'/'+encodeURIComponent(_0x4d2daa)),_0x143ac3=_0x2536e9[_0x135e9e(0xb9)];if(!_0x143ac3||typeof _0x143ac3!==_0x135e9e(0x111)||Array[_0x135e9e(0x119)](_0x143ac3)||_0x143ac3['appCode']!==_0x3bd9fa||_0x143ac3[_0x135e9e(0x12a)]!==_0x4d2daa)throw CliErrors['validation']('BFF\x20function\x20not\x20found\x20or\x20inaccessible:\x20appCode='+_0x3bd9fa+_0x135e9e(0xcd)+_0x4d2daa);return{'appCode':_0x143ac3[_0x135e9e(0xed)],'functionName':_0x143ac3['functionName'],'description':_0x143ac3['description'],'version':_0x143ac3[_0x135e9e(0xef)],'gmtModified':_0x143ac3[_0x135e9e(0xee)]};}export async function getSqlQueryInfo(_0x49caea,_0x394d7f){const _0x3be5d6=a76_0x2466,_0x44d1e5=await apiRequest('/client/sql/query',{'method':_0x3be5d6(0xa3),'body':{'appCode':_0x49caea,'currentPage':0x1,'pageSize':0x1,'sqlCode':_0x394d7f}}),_0x2e5fa6=_0x44d1e5[_0x3be5d6(0xb9)],_0x1192a7=_0x2e5fa6&&typeof _0x2e5fa6===_0x3be5d6(0x111)&&_0x3be5d6(0xf9)in _0x2e5fa6?_0x2e5fa6[_0x3be5d6(0xf9)]?.[0x0]:_0x2e5fa6&&typeof _0x2e5fa6===_0x3be5d6(0x111)&&_0x3be5d6(0xaf)in _0x2e5fa6?_0x2e5fa6:undefined;if(!_0x1192a7)throw CliErrors['validation']('SQL\x20query\x20not\x20found:\x20'+_0x394d7f);return _0x1192a7;}function a76_0x2466(_0x899b78,_0x13362d){_0x899b78=_0x899b78-0x94;const _0xd2b182=a76_0xd2b1();let _0x2466aa=_0xd2b182[_0x899b78];return _0x2466aa;}function isRemoteAppItem(_0x154e23){const _0x27638c=a76_0x2466;return!!_0x154e23&&typeof _0x154e23===_0x27638c(0x111)&&typeof _0x154e23['appCode']===_0x27638c(0x10a)&&typeof _0x154e23[_0x27638c(0xbc)]===_0x27638c(0x10a);}function extractRemoteAppItems(_0x231a03){const _0x44065c=a76_0x2466;if(Array[_0x44065c(0x119)](_0x231a03))return _0x231a03['filter'](isRemoteAppItem);if(!_0x231a03||typeof _0x231a03!=='object')throw CliErrors[_0x44065c(0xa5)](_0x44065c(0xdf));const _0x419c0c=_0x231a03;if(Array['isArray'](_0x419c0c[_0x44065c(0xf9)]))return _0x419c0c['tableData'][_0x44065c(0xe1)](isRemoteAppItem);if(_0x419c0c[_0x44065c(0xb9)]&&typeof _0x419c0c['data']==='object'){const _0x59aebf=_0x419c0c['data'];if(Array['isArray'](_0x59aebf[_0x44065c(0xf9)]))return _0x59aebf[_0x44065c(0xf9)][_0x44065c(0xe1)](isRemoteAppItem);}throw CliErrors[_0x44065c(0xa5)](_0x44065c(0xab));}export async function getMyApps(){const _0x12021d=await apiRequest('/client/app/my-apps');return extractRemoteAppItems(_0x12021d['data']);}export async function getLoginUserInfo(){const _0x88e587=a76_0x2466,_0x1b6ed9=await apiRequest(_0x88e587(0x10b));if(!_0x1b6ed9[_0x88e587(0xb9)]||typeof _0x1b6ed9[_0x88e587(0xb9)]!==_0x88e587(0x111)||Array['isArray'](_0x1b6ed9['data']))throw CliErrors[_0x88e587(0xa5)]('Invalid\x20login\x20user\x20info\x20response:\x20expected\x20object.');return _0x1b6ed9['data'];}function runtimeSchedulePath(_0x5578a9,_0x3b168a=''){const _0x1d5b52=a76_0x2466;return _0x1d5b52(0x10e)+encodeURIComponent(_0x5578a9)+_0x1d5b52(0xf8)+_0x3b168a;}export async function validateRuntimeSchedule(_0x358e6d,_0x5a62aa){const _0x31970e=a76_0x2466,_0x5c5964=await apiRequest(runtimeSchedulePath(_0x358e6d,_0x31970e(0x98)),{'method':_0x31970e(0xa3),'body':_0x5a62aa});return _0x5c5964[_0x31970e(0xb9)];}export async function createRuntimeSchedule(_0x278ca1,_0x3e5fde){const _0x26a88b=a76_0x2466,_0x1c07fb=await apiRequest(runtimeSchedulePath(_0x278ca1),{'method':_0x26a88b(0xa3),'body':_0x3e5fde});return _0x1c07fb[_0x26a88b(0xb9)];}export async function listRuntimeSchedules(_0x3677ff,_0x204a41={}){const _0x18f0a1=a76_0x2466,_0x56944b=new URLSearchParams();if(_0x204a41['limit']!==undefined)_0x56944b[_0x18f0a1(0xac)](_0x18f0a1(0x109),String(_0x204a41[_0x18f0a1(0x109)]));if(_0x204a41[_0x18f0a1(0x11c)])_0x56944b['set'](_0x18f0a1(0x11c),_0x204a41['cursor']);const _0x1888fc=_0x56944b[_0x18f0a1(0xb4)]>0x0?'?'+_0x56944b['toString']():'',_0x45a0fc=await apiRequest(''+runtimeSchedulePath(_0x3677ff)+_0x1888fc);return _0x45a0fc[_0x18f0a1(0xb9)];}export async function getRuntimeSchedule(_0x5d88f7,_0x5496ae){const _0x3172b0=a76_0x2466,_0x3b53d3=await apiRequest(runtimeSchedulePath(_0x5d88f7,'/'+encodeURIComponent(_0x5496ae)));return _0x3b53d3[_0x3172b0(0xb9)];}export async function deleteRuntimeSchedule(_0x2d52a9,_0x3f212b){const _0x57ef62=a76_0x2466,_0x3eb2fc=await apiRequest(runtimeSchedulePath(_0x2d52a9,'/'+encodeURIComponent(_0x3f212b)),{'method':'DELETE'});return _0x3eb2fc[_0x57ef62(0xb9)];}export async function runRuntimeSchedule(_0x1ea3e4,_0x3229de){const _0x1beeaf=a76_0x2466,_0x407db2=await apiRequest(runtimeSchedulePath(_0x1ea3e4,'/'+encodeURIComponent(_0x3229de)+_0x1beeaf(0xc2)),{'method':_0x1beeaf(0xa3)});return _0x407db2['data'];}export async function listDatasets(_0x256515,_0x5b137c){const _0x26498c=a76_0x2466,_0x352bd2=await apiRequest('/client/dataset/list',{'method':'POST','body':{'appCode':_0x256515,..._0x5b137c?.[_0x26498c(0x102)]&&{'code':_0x5b137c[_0x26498c(0x102)]},..._0x5b137c?.['name']&&{'name':_0x5b137c[_0x26498c(0xc1)]}}});return extractList(_0x352bd2['data']);}export async function getDatasetDetail(_0x4ed013){const _0x5ce75e=a76_0x2466,_0xafc0a5=await apiRequest(_0x5ce75e(0xf7)+encodeURIComponent(_0x4ed013));return _0xafc0a5[_0x5ce75e(0xb9)];}export async function getDatasetSdkUsageDoc(_0x3e144f,_0x3550d8){const _0x5d63ab=a76_0x2466,_0x5551ba=await toolboxRequest(_0x5d63ab(0xfc),{'datasetCode':_0x3e144f,'appCode':_0x3550d8});return typeof _0x5551ba?.[_0x5d63ab(0xd4)]===_0x5d63ab(0x10a)?_0x5551ba[_0x5d63ab(0xd4)]:'';}export async function uploadRuntimeFile(_0x25a347,_0x36b929){const _0x703498=a76_0x2466,_0x9fd480=await readFile(_0x36b929),_0x55f7bf=new FormData();_0x55f7bf[_0x703498(0xd7)](_0x703498(0xed),_0x25a347),_0x55f7bf['append']('file',new Blob([new Uint8Array(_0x9fd480)]),basename(_0x36b929));const _0x180769=await apiFormRequest('/client/uploadFile',_0x55f7bf);return _0x180769[_0x703498(0xb9)];}export async function queryRuntimeFileUrl(_0x1d4a89,_0x26714c={}){const _0x32d763=a76_0x2466,_0x2fadb5=await apiRequest('/client/queryFileUrl',{'method':_0x32d763(0xa3),'body':{'filePath':_0x1d4a89,'downloadFlag':_0x26714c[_0x32d763(0x121)]??![],..._0x26714c['longTerm']?{'longTerm':!![]}:{}}});return _0x2fadb5['data'];}export async function recognizeRuntimeOcr(_0x547f33,_0x2467d6){const _0x59042b=a76_0x2466,_0x4d70a3=await apiRequest(_0x59042b(0x10f),{'method':_0x59042b(0xa3),'body':{'appCode':_0x547f33,'url':_0x2467d6[_0x59042b(0x114)],'type':_0x2467d6['type']}});return _0x4d70a3[_0x59042b(0xb9)];}export async function getRuntimeAppConfigByKey(_0x13c1a3,_0x412038){const _0x2cf23d=a76_0x2466,_0x3dafc9=new URLSearchParams({'appCode':_0x13c1a3,'key':_0x412038}),_0x861ff3=await apiRequest(_0x2cf23d(0xc0)+_0x3dafc9[_0x2cf23d(0x101)]());if(typeof _0x861ff3[_0x2cf23d(0xb9)]!=='string')throw CliErrors[_0x2cf23d(0x123)](_0x2cf23d(0xd9)+_0x412038);return _0x861ff3['data'];}export async function listRuntimeArtifacts(_0x50a189,_0x34ce4f){const _0x5864c9=a76_0x2466,_0x110e66=new URLSearchParams({'appCode':_0x50a189});if(_0x34ce4f?.[_0x5864c9(0xd3)])_0x110e66[_0x5864c9(0xac)]('artifactType',_0x34ce4f[_0x5864c9(0xd3)]);if(_0x34ce4f?.[_0x5864c9(0xb3)])_0x110e66[_0x5864c9(0xac)](_0x5864c9(0xb3),_0x34ce4f[_0x5864c9(0xb3)]);if(_0x34ce4f?.[_0x5864c9(0xe9)]!==undefined)_0x110e66[_0x5864c9(0xac)](_0x5864c9(0xe9),String(_0x34ce4f[_0x5864c9(0xe9)]));const _0x4faa91=await apiRequest(_0x5864c9(0x129)+_0x110e66[_0x5864c9(0x101)]());return Array[_0x5864c9(0x119)](_0x4faa91[_0x5864c9(0xb9)])?_0x4faa91[_0x5864c9(0xb9)]:[];}export async function getRuntimeArtifact(_0x4f2c12,_0xfab5d2){const _0x19d4dc=a76_0x2466,_0x24a533=await apiRequest(_0x19d4dc(0x104)+_0x4f2c12+_0x19d4dc(0x9d)+encodeURIComponent(_0xfab5d2));if(!_0x24a533[_0x19d4dc(0xb9)])throw CliErrors[_0x19d4dc(0x123)](_0x19d4dc(0xce)+_0x4f2c12);return _0x24a533[_0x19d4dc(0xb9)];}export async function createRuntimeArtifact(_0x5acef6,_0x34723f){const _0x5971f4=a76_0x2466,_0x2479d3=await apiRequest(_0x5971f4(0x100),{'method':_0x5971f4(0xa3),'body':{'appCode':_0x5acef6,..._0x34723f}});return _0x2479d3[_0x5971f4(0xb9)];}export async function updateRuntimeArtifact(_0x3c9629,_0x231c48,_0x2046b7){const _0x577ec3=a76_0x2466,_0xe6a4e3=await apiRequest(_0x577ec3(0x104)+_0x3c9629+_0x577ec3(0x11e),{'method':'POST','body':{'appCode':_0x231c48,..._0x2046b7}});return _0xe6a4e3[_0x577ec3(0xb9)];}export async function listPersonalBffs(_0xe7844d){const _0x531801=a76_0x2466,_0x357f39=await apiRequest(_0x531801(0x99)+encodeURIComponent(_0xe7844d));return Array['isArray'](_0x357f39['data'])?_0x357f39[_0x531801(0xb9)]:[];}export async function getPersonalBff(_0x4f75b7,_0xd7779c){const _0x56c2cf=a76_0x2466,_0x4f9a22=await apiRequest(_0x56c2cf(0x103)+_0x4f75b7+_0x56c2cf(0x9d)+encodeURIComponent(_0xd7779c));if(!_0x4f9a22[_0x56c2cf(0xb9)])throw CliErrors[_0x56c2cf(0x123)]('Personal\x20BFF\x20not\x20found:\x20id='+_0x4f75b7);return _0x4f9a22['data'];}export async function createPersonalBff(_0x2d09b5,_0x38be85){const _0x118cb8=a76_0x2466,_0x5f11a1=await apiRequest('/client/runtime-bff/personal/create',{'method':_0x118cb8(0xa3),'body':{'appCode':_0x2d09b5,..._0x38be85}});return _0x5f11a1[_0x118cb8(0xb9)];}export async function updatePersonalBff(_0x7c9747,_0x3ec418,_0x2bc2f7){const _0x146872=a76_0x2466,_0x12ec0c=await apiRequest('/client/runtime-bff/personal/'+_0x7c9747+_0x146872(0x11e),{'method':_0x146872(0xa3),'body':{'appCode':_0x3ec418,..._0x2bc2f7}});return _0x12ec0c[_0x146872(0xb9)];}export async function executePersonalBff(_0x1e4c9f,_0x10c852,_0x4cc3a7){const _0x24e1ef=a76_0x2466,_0x342925=await apiRequest('/client/runtime-bff/personal/'+_0x1e4c9f+_0x24e1ef(0xc3)+encodeURIComponent(_0x10c852),{'method':_0x24e1ef(0xa3),'body':_0x4cc3a7});return _0x342925[_0x24e1ef(0xb9)];}export async function listPersonalKnowledgeBaseItems(_0x1d9973){const _0x4f9b23=a76_0x2466,_0x4190c3=await apiRequest(_0x4f9b23(0xad)+encodeURIComponent(_0x1d9973));return Array[_0x4f9b23(0x119)](_0x4190c3[_0x4f9b23(0xb9)])?_0x4190c3[_0x4f9b23(0xb9)]:[];}export async function getPersonalKnowledgeBaseItem(_0x3691b6,_0x1291e6){const _0x27f660=a76_0x2466,_0x11cfc3=await apiRequest('/client/knowledge-base/personal/'+_0x3691b6+_0x27f660(0x9d)+encodeURIComponent(_0x1291e6));if(!_0x11cfc3[_0x27f660(0xb9)])throw CliErrors[_0x27f660(0x123)](_0x27f660(0xec)+_0x3691b6);return _0x11cfc3['data'];}export async function createPersonalKnowledgeBaseItem(_0x3c9897,_0x27134a){const _0x2cf48e=a76_0x2466,_0x4d9f15=await apiRequest(_0x2cf48e(0xaa),{'method':_0x2cf48e(0xa3),'body':{'appCode':_0x3c9897,..._0x27134a}});return _0x4d9f15[_0x2cf48e(0xb9)];}export async function updatePersonalKnowledgeBaseItem(_0x57d125,_0x538a06,_0x294642){const _0x27ff6c=a76_0x2466,_0x34880d=await apiRequest(_0x27ff6c(0xc4)+_0x57d125+_0x27ff6c(0x11e),{'method':'POST','body':{'appCode':_0x538a06,..._0x294642}});return _0x34880d['data'];}export async function searchKnowledgeBase(_0x491ca8,_0x3ec014){const _0x74b028=a76_0x2466,_0x48eaf9=await apiRequest('/client/knowledge-base/search',{'method':'POST','body':{'appCode':_0x491ca8,'query':_0x3ec014['query'],..._0x3ec014[_0x74b028(0xda)]!==undefined?{'topK':_0x3ec014[_0x74b028(0xda)]}:{}}});return Array['isArray'](_0x48eaf9[_0x74b028(0xb9)])?_0x48eaf9[_0x74b028(0xb9)]:[];}export async function getRuntimeSkillByCode(_0x4e849c,_0x28cd6d){const _0x927a5d=a76_0x2466,_0x455a80=await skillHubJsonRequest(_0x927a5d(0xcf)+encodeURIComponent(_0x4e849c)+'/'+encodeURIComponent(_0x28cd6d),{'allowNotFound':!![]});return _0x455a80?skillHubRuntimeDetailToRuntimeSkill(_0x455a80):undefined;}export async function listRuntimeSkills(_0x217d58){const _0x2ad228=a76_0x2466,_0x7d1f2a=await skillHubJsonRequest(_0x2ad228(0xe4)+encodeURIComponent(_0x217d58[_0x2ad228(0xed)])+_0x2ad228(0x125),{'query':{'page':0x0,'size':0xc8}});return normalizeSkillHubRuntimeListResponse(_0x217d58['appCode'],_0x7d1f2a,_0x217d58[_0x2ad228(0xc6)]??_0x2ad228(0xd1),_0x217d58[_0x2ad228(0x102)]);}export async function listPersonalRuntimeSkills(_0x15635f){return(await listRuntimeSkills({'appCode':_0x15635f,'scope':'personal'}))['personal'];}export async function listCompanyRuntimeSkills(_0x13e16d){const _0x48b713=a76_0x2466;return(await listRuntimeSkills({'appCode':_0x13e16d,'scope':_0x48b713(0xdd)}))[_0x48b713(0xdd)];}export async function listVisibleRuntimeSkills(_0x32dbdb){const _0x231e3b=a76_0x2466;return(await listRuntimeSkills({'appCode':_0x32dbdb,'scope':_0x231e3b(0xd1)}))[_0x231e3b(0xd6)];}export async function createPersonalRuntimeSkill(_0x2b27be,_0x3dfb91,_0x581255={}){const _0x266f93=a76_0x2466;return publishRuntimeSkill(_0x2b27be,_0x3dfb91,{'visibility':_0x266f93(0x107),'confirmWarnings':_0x581255[_0x266f93(0xba)]});}export async function updatePersonalRuntimeSkill(_0xedcce5,_0x40c33f,_0xab6f06,_0x1e160a={}){const _0x552a48=a76_0x2466;return publishRuntimeSkill(_0x40c33f,{..._0xab6f06,'skillCode':_0xab6f06[_0x552a48(0x122)]??_0xedcce5},{'visibility':'PRIVATE','confirmWarnings':_0x1e160a[_0x552a48(0xba)]});}export async function publishCompanyRuntimeSkill(_0x5b2375,_0x1ab848,_0xf51f3d={}){const _0x5f594f=a76_0x2466;return publishRuntimeSkill(_0x5b2375,_0x1ab848,{'visibility':'NAMESPACE_ONLY','confirmWarnings':_0xf51f3d[_0x5f594f(0xba)]});}function a76_0xd2b1(){const _0x312c46=['invokeSource','SkillHub\x20error\x20code:\x20','isArray','Toolbox\x20error\x20code:\x20','Request\x20timeout:\x20','cursor','status','/update','API\x20returned\x20non-JSON\x20response\x20(HTTP\x20','slug','download','skillCode','validation','3900EwxOdp','/skills','base64','Toolbox\x20returned\x20non-JSON\x20response\x20(HTTP\x20','success','/client/artifact/list?','functionName','resolvedSlug','searchParams','GET','ownerPreviewVersion','/validate','/client/runtime-bff/personal/list?appCode=','NAMESPACE_ONLY','authRequired','20IBQjsu','?appCode=','5976616JQfDiq','/api/cli/v1/skills/','text','isJson','API\x20error:\x20','POST','json','apiError','map','visibility','replace','application/json','/client/knowledge-base/personal/create','Invalid\x20app\x20list\x20response:\x20missing\x20data.tableData.','set','/client/knowledge-base/personal/list?appCode=','newConfigFileName','sqlCode','boolean','message','17622ryqtcI','source','size','headlineVersion','personal','errorCode','msg','data','confirmWarnings','packageBase64','appName','application/zip','/download','119606CiLBsn','/client/app-config/getByKey?','name','/run','/execute?appCode=','/client/knowledge-base/personal/','trim','scope','Toolbox\x20API\x20error:\x20','summary','find','values','79989LpLljZ','96969PVaShZ',',\x20name=','Artifact\x20not\x20found:\x20id=','/api/v1/skills/','description','all','undefined','artifactType','markdown','API\x20error\x20code:\x20','effective','append','AbortError','Invalid\x20app\x20config\x20value:\x20key=','topK','example','1690161hmjcbh','company','headers','Invalid\x20app\x20list\x20response:\x20expected\x20object\x20or\x20array.','namespace','filter','functions','1515uYriVr','/api/runtime/v1/namespaces/','join','Configure\x20accessKey\x20in\x20','items','entries','favorite','Check\x20your\x20credentials\x20and\x20try\x20again.','skillName','Knowledge-base\x20entry\x20not\x20found:\x20id=','appCode','gmtModified','version','function','arrayBuffer','22SkKJWo','number','warnings','/api/node-toolbox/','Download\x20failed:\x20','/client/dataset/get-driven-data?code=','/schedules','tableData','2047514XxyINc','signal','api-doc-generator','errors','abort','displayName','/client/artifact/create','toString','code','/client/runtime-bff/personal/','/client/artifact/','resolvedVersion','/client/bff/endpoint/','PRIVATE','valid','limit','string','/client/user/loginUserInfo','Toolbox\x20API\x20error','from','/api/harness/apps/','/client/ocr','9snXlYn','object','28TzUeYI','tags','url','errorMsg','toLowerCase'];a76_0xd2b1=function(){return _0x312c46;};return a76_0xd2b1();}export async function validateRuntimeSkillPublish(_0x3fdea2,_0x22e9a1,_0x1017f1){const _0x2a6532=a76_0x2466,_0x255097=buildRuntimeSkillPublishForm(_0x22e9a1,_0x1017f1['visibility']),_0x2ebc38=await skillHubJsonRequest(_0x2a6532(0x9f)+encodeURIComponent(_0x3fdea2)+'/publish/validate',{'method':_0x2a6532(0xa3),'body':_0x255097});return{'valid':_0x2ebc38[_0x2a6532(0x108)]===!![],'errors':Array['isArray'](_0x2ebc38[_0x2a6532(0xfd)])?_0x2ebc38[_0x2a6532(0xfd)]:[],'warnings':Array[_0x2a6532(0x119)](_0x2ebc38[_0x2a6532(0xf4)])?_0x2ebc38[_0x2a6532(0xf4)]:[],'resolvedSlug':_0x2ebc38[_0x2a6532(0x94)],'resolvedVersion':_0x2ebc38[_0x2a6532(0x105)]};}export async function downloadRuntimeSkillPackage(_0x28c04b,_0x41ed6b,_0x4c379f,_0x5e3ab6){const _0x4da2b5=a76_0x2466;void _0x28c04b;const _0x5954fb=_0x5e3ab6?'/api/cli/v1/skills/'+encodeURIComponent(_0x4c379f)+'/'+encodeURIComponent(_0x41ed6b)+'/versions/'+encodeURIComponent(_0x5e3ab6)+_0x4da2b5(0xbe):'/api/cli/v1/skills/'+encodeURIComponent(_0x4c379f)+'/'+encodeURIComponent(_0x41ed6b)+'/download';return skillHubBinaryRequest(_0x5954fb);}async function publishRuntimeSkill(_0x4b09c1,_0x4670b9,_0x16875e){const _0x580b43=a76_0x2466,_0x502f77=buildRuntimeSkillPublishForm(_0x4670b9,_0x16875e[_0x580b43(0xa7)]),_0x97ac09=await skillHubJsonRequest(_0x580b43(0x9f)+encodeURIComponent(_0x4b09c1)+'/publish',{'method':_0x580b43(0xa3),'query':{'confirmWarnings':_0x16875e[_0x580b43(0xba)]===!![]?!![]:undefined},'body':_0x502f77});return{'appCode':_0x97ac09[_0x580b43(0xe0)]??_0x4b09c1,'skillCode':_0x97ac09[_0x580b43(0x120)]??_0x4670b9['skillCode']??'','skillName':_0x4670b9[_0x580b43(0xeb)]??_0x97ac09[_0x580b43(0x120)]??_0x4670b9[_0x580b43(0x122)],'description':_0x4670b9[_0x580b43(0xd0)],'scope':skillHubVisibilityToScope(_0x97ac09[_0x580b43(0xa7)]??_0x16875e[_0x580b43(0xa7)])??_0x580b43(0xb6),'version':_0x97ac09['version']??_0x4670b9[_0x580b43(0xef)],'tags':_0x4670b9[_0x580b43(0x113)],'content':_0x4670b9['content']};}function buildRuntimeSkillPublishForm(_0x59f55d,_0x3bf66b){const _0x3c65b4=a76_0x2466,_0x59ff52=new FormData();return _0x59ff52[_0x3c65b4(0xac)]('file',runtimeSkillPackageFile(_0x59f55d)),_0x59f55d[_0x3c65b4(0xeb)]?.['trim']()&&_0x59ff52[_0x3c65b4(0xac)](_0x3c65b4(0xff),_0x59f55d[_0x3c65b4(0xeb)]['trim']()),_0x59ff52[_0x3c65b4(0xac)](_0x3c65b4(0xa7),_0x3bf66b),_0x59ff52;}function runtimeSkillPackageFile(_0x315797){const _0x13e1fe=a76_0x2466;if(!_0x315797[_0x13e1fe(0xbb)])throw CliErrors[_0x13e1fe(0x123)]('Missing\x20Skill\x20package\x20payload.');const _0xbc3ca1=Buffer['from'](_0x315797['packageBase64'],_0x13e1fe(0x126)),_0x307ec1=new Blob([_0xbc3ca1],{'type':_0x13e1fe(0xbd)}),_0x137259=(_0x315797[_0x13e1fe(0x122)]||'skill')+'.zip';if(typeof File!==_0x13e1fe(0xd2))return new File([_0x307ec1],_0x137259,{'type':_0x13e1fe(0xbd)});return _0x307ec1;}function normalizeSkillHubRuntimeListResponse(_0x4948f2,_0x27a9c8,_0x12fd56,_0x28b1f6){const _0x23f5c5=a76_0x2466,_0x49af16=Array['isArray'](_0x27a9c8)?_0x27a9c8:Array['isArray'](_0x27a9c8?.[_0x23f5c5(0xe7)])?_0x27a9c8['items']:[],_0xf876f7=_0x28b1f6?.[_0x23f5c5(0xc5)](),_0x325425=_0x49af16[_0x23f5c5(0xe1)](_0xd2801d=>!_0xf876f7||_0xd2801d[_0x23f5c5(0x120)]===_0xf876f7)[_0x23f5c5(0xa6)](skillHubRuntimeItemToRuntimeSkill)['filter'](_0x285ab7=>Boolean(_0x285ab7)),_0x72870=_0x325425['filter'](_0x30db2f=>_0x30db2f[_0x23f5c5(0xc6)]===_0x23f5c5(0xb6)),_0x3dc81=_0x325425[_0x23f5c5(0xe1)](_0x4b4d50=>_0x4b4d50[_0x23f5c5(0xc6)]===_0x23f5c5(0xdd));return{'appCode':_0x4948f2,'personal':_0x12fd56===_0x23f5c5(0xdd)?[]:_0x72870,'company':_0x12fd56===_0x23f5c5(0xb6)?[]:_0x3dc81,'effective':buildEffectiveRuntimeSkills(_0x72870,_0x3dc81,_0x12fd56)};}function skillHubRuntimeItemToRuntimeSkill(_0x493e8b){const _0x7dfa90=a76_0x2466,_0x2f74ab=_0x493e8b[_0x7dfa90(0x120)]?.['trim'](),_0x32466a=skillHubVisibilityToScope(_0x493e8b[_0x7dfa90(0xa7)]);if(!_0x2f74ab||!_0x32466a)return undefined;return{'id':_0x493e8b['id'],'appCode':_0x493e8b[_0x7dfa90(0xe0)],'skillCode':_0x2f74ab,'skillName':_0x493e8b[_0x7dfa90(0xff)]??_0x2f74ab,'description':_0x493e8b[_0x7dfa90(0xc8)],'scope':_0x32466a,'version':skillHubRuntimeItemVersion(_0x493e8b),'status':_0x493e8b[_0x7dfa90(0x11d)]};}function skillHubRuntimeDetailToRuntimeSkill(_0x15ce75){const _0x22955a=a76_0x2466,_0x2a581c=_0x15ce75['slug']?.[_0x22955a(0xc5)]();if(!_0x2a581c)return undefined;return{'id':_0x15ce75['id'],'appCode':_0x15ce75[_0x22955a(0xe0)],'skillCode':_0x2a581c,'skillName':_0x15ce75[_0x22955a(0xff)]??_0x2a581c,'description':_0x15ce75[_0x22955a(0xc8)],'example':_0x15ce75[_0x22955a(0xdb)],'scope':skillHubVisibilityToScope(_0x15ce75[_0x22955a(0xa7)])??_0x15ce75[_0x22955a(0xa7)]?.[_0x22955a(0x116)](),'version':skillHubRuntimeItemVersion(_0x15ce75),'status':_0x15ce75['status']};}function skillHubVisibilityToScope(_0x479158){const _0x48bc46=a76_0x2466;if(_0x479158===_0x48bc46(0x107))return _0x48bc46(0xb6);if(_0x479158===_0x48bc46(0x9a))return _0x48bc46(0xdd);return undefined;}function skillHubRuntimeItemVersion(_0x3fcd1b){const _0x436bec=a76_0x2466;return _0x3fcd1b['publishedVersion']?.[_0x436bec(0xef)]??_0x3fcd1b[_0x436bec(0xb5)]?.['version']??_0x3fcd1b[_0x436bec(0x97)]?.[_0x436bec(0xef)];}function buildEffectiveRuntimeSkills(_0xc369e,_0x6e7651,_0x48096a){const _0x31c75b=a76_0x2466;if(_0x48096a===_0x31c75b(0xb6))return _0xc369e;if(_0x48096a===_0x31c75b(0xdd))return _0x6e7651;const _0x2061da=new Map();for(const _0x11b3fd of _0x6e7651){_0x2061da['set'](_0x11b3fd[_0x31c75b(0x122)],_0x11b3fd);}for(const _0x4f5b02 of _0xc369e){_0x2061da[_0x31c75b(0xac)](_0x4f5b02['skillCode'],_0x4f5b02);}return Array[_0x31c75b(0x10d)](_0x2061da[_0x31c75b(0xca)]());}function normalizeRuntimeSkillListResponse(_0x52e9ec,_0x1fb9f2){const _0x547e86=a76_0x2466;if(Array[_0x547e86(0x119)](_0x1fb9f2)){const _0x3cd28a=_0x1fb9f2[_0x547e86(0xe1)](_0x57ccef=>_0x57ccef[_0x547e86(0xc6)]===_0x547e86(0xb6)),_0x451798=_0x1fb9f2[_0x547e86(0xe1)](_0x919688=>_0x919688[_0x547e86(0xc6)]==='company');return{'appCode':_0x52e9ec,'personal':_0x3cd28a,'company':_0x451798,'effective':[..._0x451798,..._0x3cd28a]};}return{'appCode':_0x1fb9f2?.[_0x547e86(0xed)]??_0x52e9ec,'personal':Array[_0x547e86(0x119)](_0x1fb9f2?.[_0x547e86(0xb6)])?_0x1fb9f2[_0x547e86(0xb6)]:[],'company':Array['isArray'](_0x1fb9f2?.[_0x547e86(0xdd)])?_0x1fb9f2['company']:[],'effective':Array[_0x547e86(0x119)](_0x1fb9f2?.[_0x547e86(0xd6)])?_0x1fb9f2[_0x547e86(0xd6)]:[]};}
1
+ (function(_0x5d04dc,_0x93b054){const _0x11d8a6=a76_0x17ce,_0x55bfed=_0x5d04dc();while(!![]){try{const _0x2a7cdb=parseInt(_0x11d8a6(0x107))/0x1*(parseInt(_0x11d8a6(0xba))/0x2)+-parseInt(_0x11d8a6(0x134))/0x3*(-parseInt(_0x11d8a6(0xdd))/0x4)+parseInt(_0x11d8a6(0x14d))/0x5*(-parseInt(_0x11d8a6(0x103))/0x6)+parseInt(_0x11d8a6(0x11c))/0x7+parseInt(_0x11d8a6(0x133))/0x8*(parseInt(_0x11d8a6(0xff))/0x9)+-parseInt(_0x11d8a6(0x123))/0xa+-parseInt(_0x11d8a6(0x12c))/0xb*(-parseInt(_0x11d8a6(0xe5))/0xc);if(_0x2a7cdb===_0x93b054)break;else _0x55bfed['push'](_0x55bfed['shift']());}catch(_0x4d2928){_0x55bfed['push'](_0x55bfed['shift']());}}}(a76_0x5746,0x365c0));import{readFile}from'node:fs/promises';import{basename}from'node:path';import{getApiDomain,getRuntimeDomain,getSkillHubDomain}from'../constant/domain.js';import{PRODUCT_CONFIG}from'../constant/product.js';import{CliErrors}from'../errors.js';import{createRateLimitError,readRetryAfter,readRetryAfterSeconds}from'../framework/rate-limit.js';import{extractList}from'../framework/response.js';import{parseLosslessJson}from'../utils/lossless-json.js';let _activeAK;export function setActiveAK(_0x58036c){_activeAK=_0x58036c||undefined;}export function clearActiveAK(){_activeAK=undefined;}function firstString(..._0x26d7d5){const _0x364588=a76_0x17ce;for(const _0x192fe0 of _0x26d7d5){if(typeof _0x192fe0===_0x364588(0x14a)&&_0x192fe0[_0x364588(0xb9)]())return _0x192fe0[_0x364588(0xb9)]();}return undefined;}async function decodeResponseBody(_0x24acc3){const _0x207c4d=a76_0x17ce;if(typeof _0x24acc3[_0x207c4d(0xd7)]===_0x207c4d(0xe2))try{const _0x161449=await _0x24acc3[_0x207c4d(0xd7)]();try{return{'isJson':!![],'data':parseLosslessJson(_0x161449),'text':_0x161449};}catch{return{'isJson':![],'text':_0x161449[_0x207c4d(0xb9)]()||undefined};}}catch{}try{return{'isJson':!![],'data':await _0x24acc3[_0x207c4d(0xc3)]()};}catch{return{'isJson':![]};}}function throwIfRateLimited(_0x348b3a,_0xf092b4,_0x39c5ef){const _0x4d215d=a76_0x17ce,_0xf18d61=_0xf092b4&&typeof _0xf092b4==='object'?_0xf092b4:{},_0x1173a6=[_0xf18d61[_0x4d215d(0xe9)],_0xf18d61['code']]['find'](_0x48fb40=>Number(_0x48fb40)===0x1ad),_0x404346=createRateLimitError({'status':_0x348b3a[_0x4d215d(0xe9)]===0x1ad?_0x348b3a['status']:_0x1173a6??_0x348b3a[_0x4d215d(0xe9)],'errorCode':firstString(_0xf18d61[_0x4d215d(0xc2)],typeof _0xf18d61[_0x4d215d(0x145)]==='string'?_0xf18d61[_0x4d215d(0x145)]:undefined),'message':firstString(_0xf18d61[_0x4d215d(0xcc)],_0xf18d61[_0x4d215d(0xd1)],_0xf18d61[_0x4d215d(0x135)],_0x39c5ef),'retryAfter':readRetryAfter(_0x348b3a[_0x4d215d(0xef)])??readRetryAfterSeconds(_0xf092b4)});if(_0x404346)throw _0x404346;}async function apiRequest(_0x375c50,_0x28689b={}){const _0x19244e=a76_0x17ce,{method:method=_0x19244e(0x154),body:_0xe864ec,headers:headers={},timeout:timeout=0x7530}=_0x28689b,_0x5802b7=_activeAK,_0x2898eb=getRuntimeDomain();if(!_0x5802b7)throw CliErrors[_0x19244e(0xe1)](_0x19244e(0xbd)+PRODUCT_CONFIG[_0x19244e(0xe7)]+'.');const _0x5de9b7=''+_0x2898eb+_0x375c50,_0x1609db={'X-User-AK':_0x5802b7},_0x16251d=new AbortController(),_0x54be6e=setTimeout(()=>_0x16251d[_0x19244e(0x122)](),timeout);try{const _0x489632=await fetch(_0x5de9b7,{'method':method,'headers':{'Content-Type':_0x19244e(0xca),'X-Invoke-Source':PRODUCT_CONFIG[_0x19244e(0xe3)],..._0x1609db,...headers},'body':_0xe864ec?JSON[_0x19244e(0x10e)](_0xe864ec):undefined,'signal':_0x16251d[_0x19244e(0x14b)]}),_0xa5f9dd=await decodeResponseBody(_0x489632);if(!_0xa5f9dd[_0x19244e(0xfd)]){throwIfRateLimited(_0x489632,undefined,_0xa5f9dd[_0x19244e(0xd7)]);throw CliErrors['apiError'](_0x19244e(0x132)+_0x489632[_0x19244e(0xe9)]+')',_0x489632[_0x19244e(0xe9)]>=0x190?_0x19244e(0xdc):undefined);}const _0x3abf42=_0xa5f9dd['data'];throwIfRateLimited(_0x489632,_0x3abf42);if(!_0x489632['ok']||_0x3abf42[_0x19244e(0xd9)]===![])throw CliErrors[_0x19244e(0x130)](_0x3abf42[_0x19244e(0xcc)]||_0x3abf42[_0x19244e(0xd1)]||_0x19244e(0x13b)+_0x489632[_0x19244e(0xe9)],_0x3abf42[_0x19244e(0xc2)]?_0x19244e(0xe0)+_0x3abf42[_0x19244e(0xc2)]:undefined);return _0x3abf42;}catch(_0x266f9c){if(_0x266f9c instanceof Error&&_0x266f9c['name']===_0x19244e(0xc8))throw CliErrors['apiError'](_0x19244e(0xdf)+_0x5de9b7);throw _0x266f9c;}finally{clearTimeout(_0x54be6e);}}async function apiBinaryRequest(_0x1affae,_0x16648d={}){const _0x5746e6=a76_0x17ce,{method:method=_0x5746e6(0x154),headers:headers={},timeout:timeout=0x7530}=_0x16648d,_0x44e1f2=_activeAK,_0xc181ee=getRuntimeDomain();if(!_0x44e1f2)throw CliErrors['authRequired'](_0x5746e6(0xbd)+PRODUCT_CONFIG['newConfigFileName']+'.');const _0x467607=''+_0xc181ee+_0x1affae,_0x4a58cb=new AbortController(),_0x6efdc5=setTimeout(()=>_0x4a58cb['abort'](),timeout);try{const _0x51ef3a=await fetch(_0x467607,{'method':method,'headers':{'X-Invoke-Source':PRODUCT_CONFIG[_0x5746e6(0xe3)],'X-User-AK':_0x44e1f2,...headers},'signal':_0x4a58cb[_0x5746e6(0x14b)]});if(!_0x51ef3a['ok']){const _0x35ccdc=await decodeResponseBody(_0x51ef3a),_0x258081=_0x35ccdc['data']&&typeof _0x35ccdc[_0x5746e6(0x151)]===_0x5746e6(0x108)?_0x35ccdc[_0x5746e6(0x151)]:{},_0xfa896a=firstString(_0x258081[_0x5746e6(0xcc)],_0x258081[_0x5746e6(0xd1)],_0x258081[_0x5746e6(0xc2)],_0x35ccdc['text']);throwIfRateLimited(_0x51ef3a,_0x35ccdc[_0x5746e6(0x151)],_0xfa896a);throw CliErrors[_0x5746e6(0x130)](_0xfa896a||_0x5746e6(0x13b)+_0x51ef3a['status'],_0x5746e6(0x106)+_0x467607);}return Buffer['from'](await _0x51ef3a[_0x5746e6(0x11d)]());}catch(_0x55da0b){if(_0x55da0b instanceof Error&&_0x55da0b[_0x5746e6(0x14e)]===_0x5746e6(0xc8))throw CliErrors[_0x5746e6(0x130)](_0x5746e6(0xdf)+_0x467607);throw _0x55da0b;}finally{clearTimeout(_0x6efdc5);}}async function apiFormRequest(_0x250dbf,_0x8213b0,_0x4cb730={}){const _0x3f2017=a76_0x17ce,{timeout:timeout=0x7530}=_0x4cb730,_0x3defec=_activeAK,_0x453377=getRuntimeDomain();if(!_0x3defec)throw CliErrors[_0x3f2017(0xe1)](_0x3f2017(0xbd)+PRODUCT_CONFIG[_0x3f2017(0xe7)]+'.');const _0x209b33=''+_0x453377+_0x250dbf,_0x471778=new AbortController(),_0x3d7a2e=setTimeout(()=>_0x471778[_0x3f2017(0x122)](),timeout);try{const _0x20433a=await fetch(_0x209b33,{'method':_0x3f2017(0x120),'headers':{'X-Invoke-Source':PRODUCT_CONFIG[_0x3f2017(0xe3)],'X-User-AK':_0x3defec},'body':_0x8213b0,'signal':_0x471778[_0x3f2017(0x14b)]}),_0x33c0ea=await decodeResponseBody(_0x20433a);if(!_0x33c0ea[_0x3f2017(0xfd)]){throwIfRateLimited(_0x20433a,undefined,_0x33c0ea[_0x3f2017(0xd7)]);throw CliErrors['apiError'](_0x3f2017(0x132)+_0x20433a[_0x3f2017(0xe9)]+')',_0x20433a[_0x3f2017(0xe9)]>=0x190?_0x3f2017(0xdc):undefined);}const _0x380ee2=_0x33c0ea['data'];throwIfRateLimited(_0x20433a,_0x380ee2);if(!_0x20433a['ok']||_0x380ee2[_0x3f2017(0xd9)]===![])throw CliErrors[_0x3f2017(0x130)](_0x380ee2['errorMsg']||_0x380ee2[_0x3f2017(0xd1)]||'API\x20error:\x20'+_0x20433a[_0x3f2017(0xe9)],_0x380ee2[_0x3f2017(0xc2)]?'API\x20error\x20code:\x20'+_0x380ee2[_0x3f2017(0xc2)]:undefined);return _0x380ee2;}catch(_0x86829e){if(_0x86829e instanceof Error&&_0x86829e[_0x3f2017(0x14e)]===_0x3f2017(0xc8))throw CliErrors[_0x3f2017(0x130)]('Request\x20timeout:\x20'+_0x209b33);throw _0x86829e;}finally{clearTimeout(_0x3d7a2e);}}async function toolboxRequest(_0x1f0e4a,_0x954d68,_0x8d649c={}){const _0x172953=a76_0x17ce,{method:method=_0x172953(0x154),headers:headers={},timeout:timeout=0x7530}=_0x8d649c,_0x43c1e1=_activeAK;if(!_0x43c1e1)throw CliErrors[_0x172953(0xe1)](_0x172953(0xbd)+PRODUCT_CONFIG[_0x172953(0xe7)]+'.');const _0x661507=getApiDomain()[_0x172953(0xf1)](/\/$/,''),_0x8f1957=new URL(_0x1f0e4a,_0x661507+_0x172953(0x114));if(_0x954d68)for(const [_0x4c344e,_0x1105ac]of Object[_0x172953(0xf5)](_0x954d68)){_0x1105ac!==undefined&&_0x1105ac!==null&&_0x8f1957[_0x172953(0xd8)][_0x172953(0x129)](_0x4c344e,String(_0x1105ac));}const _0x2aeb3d=new AbortController(),_0x504eb7=setTimeout(()=>_0x2aeb3d[_0x172953(0x122)](),timeout);try{const _0x51213d=await fetch(_0x8f1957,{'method':method,'headers':{'Content-Type':'application/json','X-Invoke-Source':PRODUCT_CONFIG[_0x172953(0xe3)],'X-User-AK':_0x43c1e1,...headers},'signal':_0x2aeb3d['signal']}),_0x5005a3=await decodeResponseBody(_0x51213d);if(!_0x5005a3['isJson']){throwIfRateLimited(_0x51213d,undefined,_0x5005a3[_0x172953(0xd7)]);throw CliErrors['apiError']('Toolbox\x20returned\x20non-JSON\x20response\x20(HTTP\x20'+_0x51213d[_0x172953(0xe9)]+')',_0x51213d[_0x172953(0xe9)]>=0x190?'Check\x20your\x20credentials\x20and\x20try\x20again.':undefined);}const _0x499475=_0x5005a3[_0x172953(0x151)];throwIfRateLimited(_0x51213d,_0x499475);if(!_0x51213d['ok']){const _0x262ccd=_0x499475&&typeof _0x499475===_0x172953(0x108)?_0x499475:{};throw CliErrors['apiError'](_0x262ccd[_0x172953(0xcc)]||_0x262ccd[_0x172953(0xd1)]||'Toolbox\x20API\x20error:\x20'+_0x51213d[_0x172953(0xe9)],_0x262ccd[_0x172953(0xc2)]?_0x172953(0xd6)+_0x262ccd[_0x172953(0xc2)]:undefined);}if(_0x499475&&typeof _0x499475==='object'&&_0x172953(0xd9)in _0x499475&&typeof _0x499475[_0x172953(0xd9)]===_0x172953(0x100)){const _0x382d4b=_0x499475;if(!_0x382d4b[_0x172953(0xd9)])throw CliErrors[_0x172953(0x130)](_0x382d4b[_0x172953(0xcc)]||_0x382d4b['message']||'Toolbox\x20API\x20error',_0x382d4b[_0x172953(0xc2)]?_0x172953(0xd6)+_0x382d4b[_0x172953(0xc2)]:undefined);return _0x382d4b['data'];}return _0x499475;}catch(_0x531ecb){if(_0x531ecb instanceof Error&&_0x531ecb[_0x172953(0x14e)]==='AbortError')throw CliErrors[_0x172953(0x130)](_0x172953(0xdf)+_0x8f1957[_0x172953(0xf4)]());throw _0x531ecb;}finally{clearTimeout(_0x504eb7);}}async function skillHubJsonRequest(_0x129a10,_0x7c5ff2={}){const _0x59ce77=a76_0x17ce,{method:method=_0x59ce77(0x154),query:_0x1871ab,body:_0x1aa6aa,headers:headers={},timeout:timeout=0x7530,allowNotFound:allowNotFound=![]}=_0x7c5ff2,_0x1da982=_activeAK;if(!_0x1da982)throw CliErrors[_0x59ce77(0xe1)](_0x59ce77(0xbd)+PRODUCT_CONFIG[_0x59ce77(0xe7)]+'.');const _0x4f31fc=getSkillHubDomain()[_0x59ce77(0xf1)](/\/$/,''),_0xf33110=new URL(_0x129a10,_0x4f31fc+'/');if(_0x1871ab)for(const [_0xe3433c,_0x4e9934]of Object[_0x59ce77(0xf5)](_0x1871ab)){_0x4e9934!==undefined&&_0x4e9934!==null&&_0xf33110[_0x59ce77(0xd8)][_0x59ce77(0x129)](_0xe3433c,String(_0x4e9934));}const _0x2bc4b2=new AbortController(),_0x35b901=setTimeout(()=>_0x2bc4b2[_0x59ce77(0x122)](),timeout);try{const _0x3c5d09=await fetch(_0xf33110['toString'](),{'method':method,'headers':{'Accept':_0x59ce77(0xca),'X-Invoke-Source':PRODUCT_CONFIG[_0x59ce77(0xe3)],'X-User-AK':_0x1da982,...headers},'body':_0x1aa6aa,'signal':_0x2bc4b2[_0x59ce77(0x14b)]}),_0x4ac6a7=await decodeResponseBody(_0x3c5d09);if(!_0x4ac6a7[_0x59ce77(0xfd)]){if(allowNotFound&&_0x3c5d09[_0x59ce77(0xe9)]===0x194)return undefined;throwIfRateLimited(_0x3c5d09,undefined,_0x4ac6a7['text']);throw CliErrors['apiError'](_0x59ce77(0xe8)+_0x3c5d09[_0x59ce77(0xe9)]+')',_0x3c5d09[_0x59ce77(0xe9)]>=0x190?_0x59ce77(0xdc):undefined);}const _0x2b4838=_0x4ac6a7['data'];throwIfRateLimited(_0x3c5d09,_0x2b4838);if(allowNotFound&&isSkillHubNotFoundResponse(_0x3c5d09[_0x59ce77(0xe9)],_0x2b4838))return undefined;const _0x24d29a=!_0x3c5d09['ok']||_0x2b4838?.[_0x59ce77(0xd9)]===![]||typeof _0x2b4838?.[_0x59ce77(0x145)]===_0x59ce77(0x146)&&_0x2b4838['code']>=0x190;if(_0x24d29a)throw CliErrors[_0x59ce77(0x130)](_0x2b4838?.[_0x59ce77(0xcc)]||_0x2b4838?.['message']||_0x2b4838?.[_0x59ce77(0x135)]||'SkillHub\x20API\x20error:\x20'+_0x3c5d09[_0x59ce77(0xe9)],_0x2b4838?.[_0x59ce77(0xc2)]?_0x59ce77(0xcd)+_0x2b4838[_0x59ce77(0xc2)]:undefined);return _0x2b4838?.[_0x59ce77(0x151)]??_0x2b4838;}catch(_0x22c74b){if(_0x22c74b instanceof Error&&_0x22c74b['name']===_0x59ce77(0xc8))throw CliErrors['apiError']('Request\x20timeout:\x20'+_0xf33110[_0x59ce77(0xf4)]());throw _0x22c74b;}finally{clearTimeout(_0x35b901);}}function isSkillHubNotFoundResponse(_0x41962a,_0x19b591){const _0x565a41=a76_0x17ce;if(_0x41962a===0x194||_0x19b591?.[_0x565a41(0x145)]===0x194)return!![];if(_0x41962a!==0x190&&_0x19b591?.[_0x565a41(0x145)]!==0x190)return![];const _0x246657=[_0x19b591?.[_0x565a41(0x135)],_0x19b591?.[_0x565a41(0xd1)],_0x19b591?.[_0x565a41(0xcc)],_0x19b591?.[_0x565a41(0x13e)]]['filter'](_0x46708a=>typeof _0x46708a===_0x565a41(0x14a))[_0x565a41(0xfe)]('\x20');return/skill not found\b/i[_0x565a41(0xda)](_0x246657);}async function skillHubBinaryRequest(_0x41566d,_0x3c140a={}){const _0x271c09=a76_0x17ce,{query:_0x2b76a1,headers:headers={},timeout:timeout=0x7530}=_0x3c140a,_0x1986c1=_activeAK;if(!_0x1986c1)throw CliErrors['authRequired'](_0x271c09(0xbd)+PRODUCT_CONFIG[_0x271c09(0xe7)]+'.');const _0x20a68b=getSkillHubDomain()[_0x271c09(0xf1)](/\/$/,''),_0x2e3783=new URL(_0x41566d,_0x20a68b+'/');if(_0x2b76a1)for(const [_0x1b5834,_0xcf47a3]of Object[_0x271c09(0xf5)](_0x2b76a1)){_0xcf47a3!==undefined&&_0xcf47a3!==null&&_0x2e3783[_0x271c09(0xd8)][_0x271c09(0x129)](_0x1b5834,String(_0xcf47a3));}const _0x2ce123=new AbortController(),_0x98d0e4=setTimeout(()=>_0x2ce123[_0x271c09(0x122)](),timeout);try{const _0x5aa61a=await fetch(_0x2e3783['toString'](),{'method':'GET','headers':{'Accept':'application/octet-stream','X-Invoke-Source':PRODUCT_CONFIG[_0x271c09(0xe3)],'X-User-AK':_0x1986c1,...headers},'signal':_0x2ce123[_0x271c09(0x14b)]});if(!_0x5aa61a['ok']){const _0xfe70a5=await decodeResponseBody(_0x5aa61a),_0x37164e=_0xfe70a5[_0x271c09(0x151)]&&typeof _0xfe70a5[_0x271c09(0x151)]===_0x271c09(0x108)?_0xfe70a5[_0x271c09(0x151)]:{},_0x31c16a=firstString(_0x37164e[_0x271c09(0xcc)],_0x37164e[_0x271c09(0xd1)],_0x37164e[_0x271c09(0x135)],_0x37164e['errorCode'],_0xfe70a5[_0x271c09(0xd7)]);throwIfRateLimited(_0x5aa61a,_0xfe70a5[_0x271c09(0x151)],_0x31c16a);throw CliErrors[_0x271c09(0x130)](_0x31c16a||_0x271c09(0xc9)+_0x5aa61a[_0x271c09(0xe9)],'Download\x20failed:\x20'+_0x2e3783['toString']());}return Buffer[_0x271c09(0xf6)](await _0x5aa61a[_0x271c09(0x11d)]());}catch(_0x40ab42){if(_0x40ab42 instanceof Error&&_0x40ab42['name']===_0x271c09(0xc8))throw CliErrors[_0x271c09(0x130)]('Request\x20timeout:\x20'+_0x2e3783['toString']());throw _0x40ab42;}finally{clearTimeout(_0x98d0e4);}}export async function getBffEndpointContract(_0x2529c0,_0x50135b){const _0xf8ecf7=a76_0x17ce;if(_0x50135b===_0xf8ecf7(0x12a))throw CliErrors[_0xf8ecf7(0xea)](_0xf8ecf7(0x12b)+_0x2529c0+_0xf8ecf7(0x12e)+_0x50135b);const _0x2fd8be=await apiRequest(_0xf8ecf7(0xdb)+encodeURIComponent(_0x2529c0)+'/'+encodeURIComponent(_0x50135b)),_0x19210f=_0x2fd8be[_0xf8ecf7(0x151)];if(!_0x19210f||typeof _0x19210f!==_0xf8ecf7(0x108)||Array['isArray'](_0x19210f)||_0x19210f[_0xf8ecf7(0x104)]!==_0x2529c0||_0x19210f[_0xf8ecf7(0xc6)]!==_0x50135b)throw CliErrors[_0xf8ecf7(0xea)](_0xf8ecf7(0x12b)+_0x2529c0+',\x20name='+_0x50135b);return{'appCode':_0x19210f[_0xf8ecf7(0x104)],'functionName':_0x19210f[_0xf8ecf7(0xc6)],'description':_0x19210f[_0xf8ecf7(0x112)],'version':_0x19210f['version'],'gmtModified':_0x19210f[_0xf8ecf7(0x153)]};}export async function getSqlQueryInfo(_0x279f04,_0x39c0d0){const _0x39ebca=a76_0x17ce,_0x484eaf=await apiRequest('/client/sql/query',{'method':'POST','body':{'appCode':_0x279f04,'currentPage':0x1,'pageSize':0x1,'sqlCode':_0x39c0d0}}),_0x335ef1=_0x484eaf['data'],_0x28ee85=_0x335ef1&&typeof _0x335ef1==='object'&&_0x39ebca(0x147)in _0x335ef1?_0x335ef1[_0x39ebca(0x147)]?.[0x0]:_0x335ef1&&typeof _0x335ef1===_0x39ebca(0x108)&&_0x39ebca(0x156)in _0x335ef1?_0x335ef1:undefined;if(!_0x28ee85)throw CliErrors[_0x39ebca(0xea)](_0x39ebca(0x11f)+_0x39c0d0);return _0x28ee85;}function isRemoteAppItem(_0x41f05f){const _0x3f9765=a76_0x17ce;return!!_0x41f05f&&typeof _0x41f05f==='object'&&typeof _0x41f05f[_0x3f9765(0x104)]===_0x3f9765(0x14a)&&typeof _0x41f05f[_0x3f9765(0x125)]==='string';}function extractRemoteAppItems(_0x56469c){const _0x587155=a76_0x17ce;if(Array[_0x587155(0x111)](_0x56469c))return _0x56469c[_0x587155(0x115)](isRemoteAppItem);if(!_0x56469c||typeof _0x56469c!=='object')throw CliErrors['apiError'](_0x587155(0xbb));const _0x3f3e01=_0x56469c;if(Array[_0x587155(0x111)](_0x3f3e01[_0x587155(0x147)]))return _0x3f3e01[_0x587155(0x147)][_0x587155(0x115)](isRemoteAppItem);if(_0x3f3e01[_0x587155(0x151)]&&typeof _0x3f3e01[_0x587155(0x151)]==='object'){const _0x5d0eaf=_0x3f3e01[_0x587155(0x151)];if(Array[_0x587155(0x111)](_0x5d0eaf['tableData']))return _0x5d0eaf[_0x587155(0x147)]['filter'](isRemoteAppItem);}throw CliErrors[_0x587155(0x130)](_0x587155(0x127));}function a76_0x5746(){const _0x48fcc5=['tags','errorMsg','SkillHub\x20error\x20code:\x20','DELETE','resolvedSlug','artifactType','message','/client/runtime-bff/personal/','skillName','PRIVATE','Personal\x20BFF\x20not\x20found:\x20id=','Toolbox\x20error\x20code:\x20','text','searchParams','success','test','/client/bff/endpoint/','Check\x20your\x20credentials\x20and\x20try\x20again.','108lDwoWv','append','Request\x20timeout:\x20','API\x20error\x20code:\x20','authRequired','function','invokeSource','/client/knowledge-base/personal/create','2472brIutb','/client/app-config/getByKey?','newConfigFileName','SkillHub\x20returned\x20non-JSON\x20response\x20(HTTP\x20','status','validation','/api/v1/skills/','warnings','/client/runtime-bff/personal/create','visibility','headers','cursor','replace','api-doc-generator','/skills','toString','entries','from','/update','Knowledge-base\x20entry\x20not\x20found:\x20id=','markdown','longTerm','/client/knowledge-base/personal/','/download','isJson','join','9UXaoAN','boolean','/client/uploadFile','/schedules','15774aAoIfJ','appCode','Invalid\x20login\x20user\x20info\x20response:\x20expected\x20object.','Download\x20failed:\x20','51649MeZlNl','object','version','topK','url','Artifact\x20not\x20found:\x20id=','/client/app/my-apps','stringify','toLowerCase','confirmWarnings','isArray','description','source','/api/node-toolbox/','filter','download','/execute?appCode=','resolvedVersion','/client/ocr','valid','all','1765456PhyepR','arrayBuffer','/api/harness/apps/','SQL\x20query\x20not\x20found:\x20','POST','file','abort','1650360ARWEDg','scope','appName','items','Invalid\x20app\x20list\x20response:\x20missing\x20data.tableData.','skill','set','functions','BFF\x20function\x20not\x20found\x20or\x20inaccessible:\x20appCode=','10153PvrKmU','namespace',',\x20name=','skillCode','apiError','packageBase64','API\x20returned\x20non-JSON\x20response\x20(HTTP\x20','272704FpbnSX','21207PyUJQy','msg','NAMESPACE_ONLY','example','company','Invalid\x20app\x20config\x20value:\x20key=','publishedVersion','API\x20error:\x20','.zip','/client/runtime-bff/personal/list?appCode=','error','/validate','/client/artifact/','/client/artifact/list?','/client/knowledge-base/search','favorite','/versions/','code','number','tableData','size','/client/artifact/create','string','signal','application/zip','630QQzvgG','name','?appCode=','limit','data','content','gmtModified','GET','Missing\x20Skill\x20package\x20payload.','sqlCode','trim','2qNgLzb','Invalid\x20app\x20list\x20response:\x20expected\x20object\x20or\x20array.','personal','Configure\x20accessKey\x20in\x20','displayName','/api/cli/v1/skills/','slug','errors','errorCode','json','type','base64','functionName','ownerPreviewVersion','AbortError','SkillHub\x20API\x20error:\x20','application/json'];a76_0x5746=function(){return _0x48fcc5;};return a76_0x5746();}export async function getMyApps(){const _0x4da15c=a76_0x17ce,_0x29b7c9=await apiRequest(_0x4da15c(0x10d));return extractRemoteAppItems(_0x29b7c9[_0x4da15c(0x151)]);}export async function getLoginUserInfo(){const _0x135bd2=a76_0x17ce,_0x17eb68=await apiRequest('/client/user/loginUserInfo');if(!_0x17eb68[_0x135bd2(0x151)]||typeof _0x17eb68[_0x135bd2(0x151)]!==_0x135bd2(0x108)||Array[_0x135bd2(0x111)](_0x17eb68[_0x135bd2(0x151)]))throw CliErrors[_0x135bd2(0x130)](_0x135bd2(0x105));return _0x17eb68[_0x135bd2(0x151)];}function runtimeSchedulePath(_0x16966e,_0x178d63=''){const _0x2a8458=a76_0x17ce;return _0x2a8458(0x11e)+encodeURIComponent(_0x16966e)+_0x2a8458(0x102)+_0x178d63;}export async function validateRuntimeSchedule(_0x397ac,_0x142892){const _0x37b7e1=a76_0x17ce,_0x5be7c3=await apiRequest(runtimeSchedulePath(_0x397ac,_0x37b7e1(0x13f)),{'method':_0x37b7e1(0x120),'body':_0x142892});return _0x5be7c3[_0x37b7e1(0x151)];}export async function createRuntimeSchedule(_0x6a4360,_0x569846){const _0xb6fdc1=await apiRequest(runtimeSchedulePath(_0x6a4360),{'method':'POST','body':_0x569846});return _0xb6fdc1['data'];}export async function listRuntimeSchedules(_0x2d1f21,_0x5269ba={}){const _0x225951=a76_0x17ce,_0x5ed71f=new URLSearchParams();if(_0x5269ba[_0x225951(0x150)]!==undefined)_0x5ed71f['set'](_0x225951(0x150),String(_0x5269ba[_0x225951(0x150)]));if(_0x5269ba[_0x225951(0xf0)])_0x5ed71f[_0x225951(0x129)](_0x225951(0xf0),_0x5269ba['cursor']);const _0x515451=_0x5ed71f[_0x225951(0x148)]>0x0?'?'+_0x5ed71f['toString']():'',_0x44648b=await apiRequest(''+runtimeSchedulePath(_0x2d1f21)+_0x515451);return _0x44648b['data'];}export async function getRuntimeSchedule(_0x4cc555,_0x291d22){const _0x586ce9=a76_0x17ce,_0x57eca6=await apiRequest(runtimeSchedulePath(_0x4cc555,'/'+encodeURIComponent(_0x291d22)));return _0x57eca6[_0x586ce9(0x151)];}export async function deleteRuntimeSchedule(_0x5b8933,_0x386b4d){const _0x164365=a76_0x17ce,_0xb3ae5f=await apiRequest(runtimeSchedulePath(_0x5b8933,'/'+encodeURIComponent(_0x386b4d)),{'method':_0x164365(0xce)});return _0xb3ae5f[_0x164365(0x151)];}export async function runRuntimeSchedule(_0x179166,_0xa3f1c1){const _0xbfbc4f=a76_0x17ce,_0x271c9c=await apiRequest(runtimeSchedulePath(_0x179166,'/'+encodeURIComponent(_0xa3f1c1)+'/run'),{'method':_0xbfbc4f(0x120)});return _0x271c9c[_0xbfbc4f(0x151)];}export async function listDatasets(_0x3e1cfb,_0x18e9ba){const _0x2ea257=a76_0x17ce,_0xe7f4ad=await apiRequest('/client/dataset/list',{'method':_0x2ea257(0x120),'body':{'appCode':_0x3e1cfb,..._0x18e9ba?.[_0x2ea257(0x145)]&&{'code':_0x18e9ba['code']},..._0x18e9ba?.[_0x2ea257(0x14e)]&&{'name':_0x18e9ba['name']}}});return extractList(_0xe7f4ad[_0x2ea257(0x151)]);}export async function getDatasetDetail(_0x1533e9){const _0x14b060=a76_0x17ce,_0x25ac64=await apiRequest('/client/dataset/get-driven-data?code='+encodeURIComponent(_0x1533e9));return _0x25ac64[_0x14b060(0x151)];}export async function getDatasetSdkUsageDoc(_0x5a93f5,_0x1d85e2){const _0x2da1f5=a76_0x17ce,_0x111790=await toolboxRequest(_0x2da1f5(0xf2),{'datasetCode':_0x5a93f5,'appCode':_0x1d85e2});return typeof _0x111790?.[_0x2da1f5(0xf9)]===_0x2da1f5(0x14a)?_0x111790[_0x2da1f5(0xf9)]:'';}export async function uploadRuntimeFile(_0x1efd28,_0x11ce8e){const _0x296121=a76_0x17ce,_0x20a4df=await readFile(_0x11ce8e),_0x4356ee=new FormData();_0x4356ee['append'](_0x296121(0x104),_0x1efd28),_0x4356ee[_0x296121(0xde)](_0x296121(0x121),new Blob([new Uint8Array(_0x20a4df)]),basename(_0x11ce8e));const _0x1fbeb3=await apiFormRequest(_0x296121(0x101),_0x4356ee);return _0x1fbeb3[_0x296121(0x151)];}export async function queryRuntimeFileUrl(_0x386171,_0x49d41f={}){const _0x3ade7e=a76_0x17ce,_0x393b20=await apiRequest('/client/queryFileUrl',{'method':_0x3ade7e(0x120),'body':{'filePath':_0x386171,'downloadFlag':_0x49d41f[_0x3ade7e(0x116)]??![],..._0x49d41f[_0x3ade7e(0xfa)]?{'longTerm':!![]}:{}}});return _0x393b20[_0x3ade7e(0x151)];}export async function recognizeRuntimeOcr(_0x2a2931,_0x23bb64){const _0x1a813d=a76_0x17ce,_0x13d958=await apiRequest(_0x1a813d(0x119),{'method':_0x1a813d(0x120),'body':{'appCode':_0x2a2931,'url':_0x23bb64[_0x1a813d(0x10b)],'type':_0x23bb64[_0x1a813d(0xc4)]}});return _0x13d958['data'];}export async function getRuntimeAppConfigByKey(_0x435380,_0x17a18b){const _0x3c92bc=a76_0x17ce,_0x11099a=new URLSearchParams({'appCode':_0x435380,'key':_0x17a18b}),_0x51f759=await apiRequest(_0x3c92bc(0xe6)+_0x11099a['toString']());if(typeof _0x51f759[_0x3c92bc(0x151)]!==_0x3c92bc(0x14a))throw CliErrors[_0x3c92bc(0xea)](_0x3c92bc(0x139)+_0x17a18b);return _0x51f759['data'];}export async function listRuntimeArtifacts(_0x67d122,_0x1e9585){const _0x25e9a9=a76_0x17ce,_0x5ce19c=new URLSearchParams({'appCode':_0x67d122});if(_0x1e9585?.[_0x25e9a9(0xd0)])_0x5ce19c[_0x25e9a9(0x129)](_0x25e9a9(0xd0),_0x1e9585['artifactType']);if(_0x1e9585?.[_0x25e9a9(0x113)])_0x5ce19c['set'](_0x25e9a9(0x113),_0x1e9585['source']);if(_0x1e9585?.[_0x25e9a9(0x143)]!==undefined)_0x5ce19c[_0x25e9a9(0x129)]('favorite',String(_0x1e9585[_0x25e9a9(0x143)]));const _0x3bc105=await apiRequest(_0x25e9a9(0x141)+_0x5ce19c['toString']());return Array[_0x25e9a9(0x111)](_0x3bc105['data'])?_0x3bc105[_0x25e9a9(0x151)]:[];}export async function getRuntimeArtifact(_0x196d11,_0x28e1bb){const _0x369e65=a76_0x17ce,_0x38012d=await apiRequest(_0x369e65(0x140)+_0x196d11+_0x369e65(0x14f)+encodeURIComponent(_0x28e1bb));if(!_0x38012d[_0x369e65(0x151)])throw CliErrors['validation'](_0x369e65(0x10c)+_0x196d11);return _0x38012d[_0x369e65(0x151)];}export async function createRuntimeArtifact(_0x39a425,_0x533537){const _0x2c28e6=a76_0x17ce,_0x3dcafd=await apiRequest(_0x2c28e6(0x149),{'method':_0x2c28e6(0x120),'body':{'appCode':_0x39a425,..._0x533537}});return _0x3dcafd[_0x2c28e6(0x151)];}export async function updateRuntimeArtifact(_0xd57cc7,_0x53df58,_0x1fd6a8){const _0x4474a5=a76_0x17ce,_0x8d132d=await apiRequest(_0x4474a5(0x140)+_0xd57cc7+_0x4474a5(0xf7),{'method':_0x4474a5(0x120),'body':{'appCode':_0x53df58,..._0x1fd6a8}});return _0x8d132d[_0x4474a5(0x151)];}export async function listPersonalBffs(_0x1715ff){const _0x43e4cb=a76_0x17ce,_0x277426=await apiRequest(_0x43e4cb(0x13d)+encodeURIComponent(_0x1715ff));return Array['isArray'](_0x277426[_0x43e4cb(0x151)])?_0x277426[_0x43e4cb(0x151)]:[];}export async function getPersonalBff(_0x2bc095,_0x33b567){const _0x409038=a76_0x17ce,_0x2d76ab=await apiRequest(_0x409038(0xd2)+_0x2bc095+_0x409038(0x14f)+encodeURIComponent(_0x33b567));if(!_0x2d76ab['data'])throw CliErrors[_0x409038(0xea)](_0x409038(0xd5)+_0x2bc095);return _0x2d76ab[_0x409038(0x151)];}export async function createPersonalBff(_0x37b742,_0x568652){const _0x587ef6=a76_0x17ce,_0x55afa3=await apiRequest(_0x587ef6(0xed),{'method':_0x587ef6(0x120),'body':{'appCode':_0x37b742,..._0x568652}});return _0x55afa3[_0x587ef6(0x151)];}export async function updatePersonalBff(_0x5d6c77,_0x5effb9,_0x33e8cb){const _0x30daf3=a76_0x17ce,_0x36a73c=await apiRequest(_0x30daf3(0xd2)+_0x5d6c77+_0x30daf3(0xf7),{'method':'POST','body':{'appCode':_0x5effb9,..._0x33e8cb}});return _0x36a73c[_0x30daf3(0x151)];}export async function executePersonalBff(_0x43bb46,_0x30f7ed,_0x628493){const _0x5ac230=a76_0x17ce,_0x3b6536=await apiRequest(_0x5ac230(0xd2)+_0x43bb46+_0x5ac230(0x117)+encodeURIComponent(_0x30f7ed),{'method':_0x5ac230(0x120),'body':_0x628493});return _0x3b6536[_0x5ac230(0x151)];}export async function listPersonalKnowledgeBaseItems(_0x52cafa){const _0x5cf409=a76_0x17ce,_0x485065=await apiRequest('/client/knowledge-base/personal/list?appCode='+encodeURIComponent(_0x52cafa));return Array[_0x5cf409(0x111)](_0x485065[_0x5cf409(0x151)])?_0x485065[_0x5cf409(0x151)]:[];}export async function getPersonalKnowledgeBaseItem(_0x5e8f0b,_0x3379f6){const _0x3b6f66=a76_0x17ce,_0x1caceb=await apiRequest(_0x3b6f66(0xfb)+_0x5e8f0b+_0x3b6f66(0x14f)+encodeURIComponent(_0x3379f6));if(!_0x1caceb[_0x3b6f66(0x151)])throw CliErrors[_0x3b6f66(0xea)](_0x3b6f66(0xf8)+_0x5e8f0b);return _0x1caceb[_0x3b6f66(0x151)];}export async function createPersonalKnowledgeBaseItem(_0x5e6b89,_0x2e5b4a){const _0x12b1db=a76_0x17ce,_0x38c59e=await apiRequest(_0x12b1db(0xe4),{'method':_0x12b1db(0x120),'body':{'appCode':_0x5e6b89,..._0x2e5b4a}});return _0x38c59e[_0x12b1db(0x151)];}export async function updatePersonalKnowledgeBaseItem(_0x4bc45a,_0x20b036,_0x4f2d09){const _0x508b06=a76_0x17ce,_0x771393=await apiRequest(_0x508b06(0xfb)+_0x4bc45a+_0x508b06(0xf7),{'method':_0x508b06(0x120),'body':{'appCode':_0x20b036,..._0x4f2d09}});return _0x771393['data'];}export async function searchKnowledgeBase(_0x22eee9,_0x2160b4){const _0x2d6376=a76_0x17ce,_0x5d0f05=await apiRequest(_0x2d6376(0x142),{'method':'POST','body':{'appCode':_0x22eee9,'query':_0x2160b4['query'],..._0x2160b4['topK']!==undefined?{'topK':_0x2160b4[_0x2d6376(0x10a)]}:{}}});return Array[_0x2d6376(0x111)](_0x5d0f05[_0x2d6376(0x151)])?_0x5d0f05[_0x2d6376(0x151)]:[];}export async function getRuntimeSkillByCode(_0x3904db,_0x2ddba9){const _0x3dc210=a76_0x17ce,_0x46b538=await skillHubJsonRequest(_0x3dc210(0xeb)+encodeURIComponent(_0x3904db)+'/'+encodeURIComponent(_0x2ddba9),{'allowNotFound':!![]});return _0x46b538?skillHubRuntimeDetailToRuntimeSkill(_0x46b538):undefined;}export async function listRuntimeSkills(_0x1708ba){const _0x541ae2=a76_0x17ce,_0x5c961f=await skillHubJsonRequest('/api/runtime/v1/namespaces/'+encodeURIComponent(_0x1708ba[_0x541ae2(0x104)])+_0x541ae2(0xf3),{'query':{'page':0x0,'size':0xc8}});return normalizeSkillHubRuntimeListResponse(_0x1708ba[_0x541ae2(0x104)],_0x5c961f,_0x1708ba[_0x541ae2(0x124)]??'all',_0x1708ba[_0x541ae2(0x145)]);}export async function listPersonalRuntimeSkills(_0x4cdd97){const _0x22531c=a76_0x17ce;return(await listRuntimeSkills({'appCode':_0x4cdd97,'scope':_0x22531c(0xbc)}))[_0x22531c(0xbc)];}export async function listCompanyRuntimeSkills(_0x912db3){const _0xadba2c=a76_0x17ce;return(await listRuntimeSkills({'appCode':_0x912db3,'scope':_0xadba2c(0x138)}))[_0xadba2c(0x138)];}export async function listVisibleRuntimeSkills(_0x568000){const _0xd1daf2=a76_0x17ce;return(await listRuntimeSkills({'appCode':_0x568000,'scope':_0xd1daf2(0x11b)}))['effective'];}export async function createPersonalRuntimeSkill(_0x54a3f3,_0x410571,_0x1cec7a={}){const _0x1baa71=a76_0x17ce;return publishRuntimeSkill(_0x54a3f3,_0x410571,{'visibility':_0x1baa71(0xd4),'confirmWarnings':_0x1cec7a[_0x1baa71(0x110)]});}export async function updatePersonalRuntimeSkill(_0x47a29e,_0x3a5d6b,_0x24e668,_0x373e01={}){const _0x76c5dc=a76_0x17ce;return publishRuntimeSkill(_0x3a5d6b,{..._0x24e668,'skillCode':_0x24e668[_0x76c5dc(0x12f)]??_0x47a29e},{'visibility':_0x76c5dc(0xd4),'confirmWarnings':_0x373e01[_0x76c5dc(0x110)]});}export async function publishCompanyRuntimeSkill(_0x2c9b2c,_0x387b9f,_0x2a5bb0={}){const _0x331c66=a76_0x17ce;return publishRuntimeSkill(_0x2c9b2c,_0x387b9f,{'visibility':_0x331c66(0x136),'confirmWarnings':_0x2a5bb0[_0x331c66(0x110)]});}export async function validateRuntimeSkillPublish(_0xa00aea,_0x730320,_0x27f697){const _0x52a283=a76_0x17ce,_0x42ff9d=buildRuntimeSkillPublishForm(_0x730320,_0x27f697[_0x52a283(0xee)]),_0x90db97=await skillHubJsonRequest(_0x52a283(0xbf)+encodeURIComponent(_0xa00aea)+'/publish/validate',{'method':_0x52a283(0x120),'body':_0x42ff9d});return{'valid':_0x90db97[_0x52a283(0x11a)]===!![],'errors':Array[_0x52a283(0x111)](_0x90db97[_0x52a283(0xc1)])?_0x90db97['errors']:[],'warnings':Array[_0x52a283(0x111)](_0x90db97[_0x52a283(0xec)])?_0x90db97[_0x52a283(0xec)]:[],'resolvedSlug':_0x90db97[_0x52a283(0xcf)],'resolvedVersion':_0x90db97[_0x52a283(0x118)]};}export async function downloadRuntimeSkillPackage(_0x11b1d2,_0x333f7b,_0x5ec99c,_0x598e2a){const _0x575f2b=a76_0x17ce;void _0x11b1d2;const _0x5a58f8=_0x598e2a?_0x575f2b(0xbf)+encodeURIComponent(_0x5ec99c)+'/'+encodeURIComponent(_0x333f7b)+_0x575f2b(0x144)+encodeURIComponent(_0x598e2a)+'/download':'/api/cli/v1/skills/'+encodeURIComponent(_0x5ec99c)+'/'+encodeURIComponent(_0x333f7b)+_0x575f2b(0xfc);return skillHubBinaryRequest(_0x5a58f8);}async function publishRuntimeSkill(_0xa319e0,_0x4a8a5d,_0x573865){const _0x14fa2f=a76_0x17ce,_0x14d083=buildRuntimeSkillPublishForm(_0x4a8a5d,_0x573865[_0x14fa2f(0xee)]),_0x1824bc=await skillHubJsonRequest('/api/cli/v1/skills/'+encodeURIComponent(_0xa319e0)+'/publish',{'method':_0x14fa2f(0x120),'query':{'confirmWarnings':_0x573865['confirmWarnings']===!![]?!![]:undefined},'body':_0x14d083});return{'appCode':_0x1824bc[_0x14fa2f(0x12d)]??_0xa319e0,'skillCode':_0x1824bc['slug']??_0x4a8a5d[_0x14fa2f(0x12f)]??'','skillName':_0x4a8a5d[_0x14fa2f(0xd3)]??_0x1824bc['slug']??_0x4a8a5d['skillCode'],'description':_0x4a8a5d[_0x14fa2f(0x112)],'scope':skillHubVisibilityToScope(_0x1824bc[_0x14fa2f(0xee)]??_0x573865[_0x14fa2f(0xee)])??_0x14fa2f(0xbc),'version':_0x1824bc[_0x14fa2f(0x109)]??_0x4a8a5d['version'],'tags':_0x4a8a5d[_0x14fa2f(0xcb)],'content':_0x4a8a5d[_0x14fa2f(0x152)]};}function buildRuntimeSkillPublishForm(_0x44a7b7,_0x17682d){const _0x345181=a76_0x17ce,_0x301f78=new FormData();return _0x301f78[_0x345181(0x129)](_0x345181(0x121),runtimeSkillPackageFile(_0x44a7b7)),_0x44a7b7['skillName']?.[_0x345181(0xb9)]()&&_0x301f78[_0x345181(0x129)]('displayName',_0x44a7b7[_0x345181(0xd3)][_0x345181(0xb9)]()),_0x301f78[_0x345181(0x129)](_0x345181(0xee),_0x17682d),_0x301f78;}function runtimeSkillPackageFile(_0xc0252c){const _0x37066d=a76_0x17ce;if(!_0xc0252c[_0x37066d(0x131)])throw CliErrors[_0x37066d(0xea)](_0x37066d(0x155));const _0x4c4c19=Buffer[_0x37066d(0xf6)](_0xc0252c[_0x37066d(0x131)],_0x37066d(0xc5)),_0x384d45=new Blob([_0x4c4c19],{'type':'application/zip'}),_0x3472e5=(_0xc0252c['skillCode']||_0x37066d(0x128))+_0x37066d(0x13c);if(typeof File!=='undefined')return new File([_0x384d45],_0x3472e5,{'type':_0x37066d(0x14c)});return _0x384d45;}function normalizeSkillHubRuntimeListResponse(_0x7d963f,_0x6284a6,_0x19aea1,_0x5ab9f6){const _0x354798=a76_0x17ce,_0x17ea6d=Array[_0x354798(0x111)](_0x6284a6)?_0x6284a6:Array[_0x354798(0x111)](_0x6284a6?.[_0x354798(0x126)])?_0x6284a6[_0x354798(0x126)]:[],_0x79a6c6=_0x5ab9f6?.['trim'](),_0x4a3497=_0x17ea6d[_0x354798(0x115)](_0x43b378=>!_0x79a6c6||_0x43b378[_0x354798(0xc0)]===_0x79a6c6)['map'](skillHubRuntimeItemToRuntimeSkill)['filter'](_0x4b50a6=>Boolean(_0x4b50a6)),_0x1e62c8=_0x4a3497[_0x354798(0x115)](_0x1dc079=>_0x1dc079[_0x354798(0x124)]==='personal'),_0x4fe00e=_0x4a3497[_0x354798(0x115)](_0x3f1589=>_0x3f1589[_0x354798(0x124)]===_0x354798(0x138));return{'appCode':_0x7d963f,'personal':_0x19aea1===_0x354798(0x138)?[]:_0x1e62c8,'company':_0x19aea1===_0x354798(0xbc)?[]:_0x4fe00e,'effective':buildEffectiveRuntimeSkills(_0x1e62c8,_0x4fe00e,_0x19aea1)};}function skillHubRuntimeItemToRuntimeSkill(_0x1d95fb){const _0x3dcb3c=a76_0x17ce,_0x337de8=_0x1d95fb[_0x3dcb3c(0xc0)]?.['trim'](),_0x2b1411=skillHubVisibilityToScope(_0x1d95fb[_0x3dcb3c(0xee)]);if(!_0x337de8||!_0x2b1411)return undefined;return{'id':_0x1d95fb['id'],'appCode':_0x1d95fb['namespace'],'skillCode':_0x337de8,'skillName':_0x1d95fb['displayName']??_0x337de8,'description':_0x1d95fb['summary'],'scope':_0x2b1411,'version':skillHubRuntimeItemVersion(_0x1d95fb),'status':_0x1d95fb[_0x3dcb3c(0xe9)]};}function skillHubRuntimeDetailToRuntimeSkill(_0x53110a){const _0x1d3058=a76_0x17ce,_0x5c6803=_0x53110a['slug']?.[_0x1d3058(0xb9)]();if(!_0x5c6803)return undefined;return{'id':_0x53110a['id'],'appCode':_0x53110a[_0x1d3058(0x12d)],'skillCode':_0x5c6803,'skillName':_0x53110a[_0x1d3058(0xbe)]??_0x5c6803,'description':_0x53110a['summary'],'example':_0x53110a[_0x1d3058(0x137)],'scope':skillHubVisibilityToScope(_0x53110a[_0x1d3058(0xee)])??_0x53110a[_0x1d3058(0xee)]?.[_0x1d3058(0x10f)](),'version':skillHubRuntimeItemVersion(_0x53110a),'status':_0x53110a[_0x1d3058(0xe9)]};}function a76_0x17ce(_0x1bb789,_0x1e87d1){_0x1bb789=_0x1bb789-0xb9;const _0x5746dd=a76_0x5746();let _0x17ce7c=_0x5746dd[_0x1bb789];return _0x17ce7c;}function skillHubVisibilityToScope(_0xd60ba7){const _0x41995f=a76_0x17ce;if(_0xd60ba7==='PRIVATE')return _0x41995f(0xbc);if(_0xd60ba7===_0x41995f(0x136))return _0x41995f(0x138);return undefined;}function skillHubRuntimeItemVersion(_0x3d7d4d){const _0x46f06f=a76_0x17ce;return _0x3d7d4d[_0x46f06f(0x13a)]?.[_0x46f06f(0x109)]??_0x3d7d4d['headlineVersion']?.[_0x46f06f(0x109)]??_0x3d7d4d[_0x46f06f(0xc7)]?.[_0x46f06f(0x109)];}function buildEffectiveRuntimeSkills(_0x283762,_0x3859f9,_0x1cde89){const _0x59a07e=a76_0x17ce;if(_0x1cde89===_0x59a07e(0xbc))return _0x283762;if(_0x1cde89===_0x59a07e(0x138))return _0x3859f9;const _0x273c47=new Map();for(const _0x3b9444 of _0x3859f9){_0x273c47[_0x59a07e(0x129)](_0x3b9444[_0x59a07e(0x12f)],_0x3b9444);}for(const _0x221a82 of _0x283762){_0x273c47['set'](_0x221a82['skillCode'],_0x221a82);}return Array[_0x59a07e(0xf6)](_0x273c47['values']());}function normalizeRuntimeSkillListResponse(_0xbe4a54,_0x62b01d){const _0x388435=a76_0x17ce;if(Array['isArray'](_0x62b01d)){const _0x135bef=_0x62b01d['filter'](_0x314c00=>_0x314c00['scope']===_0x388435(0xbc)),_0x535df8=_0x62b01d[_0x388435(0x115)](_0x35d06f=>_0x35d06f[_0x388435(0x124)]===_0x388435(0x138));return{'appCode':_0xbe4a54,'personal':_0x135bef,'company':_0x535df8,'effective':[..._0x535df8,..._0x135bef]};}return{'appCode':_0x62b01d?.[_0x388435(0x104)]??_0xbe4a54,'personal':Array[_0x388435(0x111)](_0x62b01d?.['personal'])?_0x62b01d[_0x388435(0xbc)]:[],'company':Array[_0x388435(0x111)](_0x62b01d?.[_0x388435(0x138)])?_0x62b01d[_0x388435(0x138)]:[],'effective':Array[_0x388435(0x111)](_0x62b01d?.['effective'])?_0x62b01d['effective']:[]};}
@@ -1 +1 @@
1
- function a77_0x7ec5(){const _0x31e8ef=['860608ITOXwp','8XbYxtE','712336mBpPZF','get','dbtableConfig','947165jMbbmJ','4609Rpeokq','8270uDrVYk','424293LvanuX','dbId','dbName','3234728TIgzUf','586137phUNIS','set','map','9ahEBRV','6xddgsZ'];a77_0x7ec5=function(){return _0x31e8ef;};return a77_0x7ec5();}(function(_0x16cbb1,_0x5635c9){const _0x2b1528=a77_0x54e7,_0x5d7ea9=_0x16cbb1();while(!![]){try{const _0x5d16b8=parseInt(_0x2b1528(0x110))/0x1+parseInt(_0x2b1528(0x108))/0x2+-parseInt(_0x2b1528(0x103))/0x3*(parseInt(_0x2b1528(0x109))/0x4)+parseInt(_0x2b1528(0x10d))/0x5*(-parseInt(_0x2b1528(0x107))/0x6)+-parseInt(_0x2b1528(0x113))/0x7+-parseInt(_0x2b1528(0x10a))/0x8*(-parseInt(_0x2b1528(0x106))/0x9)+-parseInt(_0x2b1528(0x10f))/0xa*(-parseInt(_0x2b1528(0x10e))/0xb);if(_0x5d16b8===_0x5635c9)break;else _0x5d7ea9['push'](_0x5d7ea9['shift']());}catch(_0x1ef52e){_0x5d7ea9['push'](_0x5d7ea9['shift']());}}}(a77_0x7ec5,0x3c831));import{listDatasets}from'../core/api-client.js';const cache=new Map();function a77_0x54e7(_0x1e44b5,_0x78f100){_0x1e44b5=_0x1e44b5-0x103;const _0x7ec5fc=a77_0x7ec5();let _0x54e7d8=_0x7ec5fc[_0x1e44b5];return _0x54e7d8;}export async function listDatabases(_0x4edaec){const _0x52bb09=a77_0x54e7;if(cache['has'](_0x4edaec))return cache[_0x52bb09(0x10b)](_0x4edaec);const _0x327106=await listDatasets(_0x4edaec),_0x459328=new Map();for(const _0x302856 of _0x327106){const _0x391a8a=_0x302856[_0x52bb09(0x10c)];_0x391a8a?.['dbId']!=null&&_0x459328[_0x52bb09(0x104)](_0x391a8a[_0x52bb09(0x111)],_0x391a8a[_0x52bb09(0x112)]??'db-'+_0x391a8a['dbId']);}const _0x4cb2b5=[..._0x459328['entries']()][_0x52bb09(0x105)](([_0x272cde,_0x13686c])=>({'dbId':_0x272cde,'dbName':_0x13686c}));return cache[_0x52bb09(0x104)](_0x4edaec,_0x4cb2b5),_0x4cb2b5;}export async function getDbName(_0x2aa26b,_0x42c26e){const _0x5381ac=a77_0x54e7;try{const _0x801763=await listDatabases(_0x2aa26b);return _0x801763['find'](_0xc4e335=>_0xc4e335['dbId']===_0x42c26e)?.[_0x5381ac(0x112)];}catch{return undefined;}}
1
+ (function(_0x309333,_0x35662e){const _0x5f0a69=a77_0x5279,_0x1ff54d=_0x309333();while(!![]){try{const _0x60433b=parseInt(_0x5f0a69(0x19b))/0x1*(parseInt(_0x5f0a69(0x19e))/0x2)+-parseInt(_0x5f0a69(0x1a7))/0x3+parseInt(_0x5f0a69(0x1a9))/0x4+parseInt(_0x5f0a69(0x19c))/0x5*(-parseInt(_0x5f0a69(0x1a0))/0x6)+-parseInt(_0x5f0a69(0x19f))/0x7+parseInt(_0x5f0a69(0x1ab))/0x8+-parseInt(_0x5f0a69(0x1a5))/0x9*(-parseInt(_0x5f0a69(0x1a6))/0xa);if(_0x60433b===_0x35662e)break;else _0x1ff54d['push'](_0x1ff54d['shift']());}catch(_0x440ce6){_0x1ff54d['push'](_0x1ff54d['shift']());}}}(a77_0x38a5,0x6786b));import{listDatasets}from'../core/api-client.js';const cache=new Map();export async function listDatabases(_0x4e1fbb){const _0x341a0f=a77_0x5279;if(cache[_0x341a0f(0x1a8)](_0x4e1fbb))return cache['get'](_0x4e1fbb);const _0x1daaef=await listDatasets(_0x4e1fbb),_0x2b4521=new Map();for(const _0x23520b of _0x1daaef){const _0x69032b=_0x23520b[_0x341a0f(0x1aa)];_0x69032b?.[_0x341a0f(0x1ac)]!=null&&_0x2b4521[_0x341a0f(0x19d)](_0x69032b[_0x341a0f(0x1ac)],_0x69032b[_0x341a0f(0x1a2)]??'db-'+_0x69032b[_0x341a0f(0x1ac)]);}const _0x84cdf=[..._0x2b4521[_0x341a0f(0x1a1)]()][_0x341a0f(0x1a4)](([_0x16e3ae,_0x54007c])=>({'dbId':_0x16e3ae,'dbName':_0x54007c}));return cache['set'](_0x4e1fbb,_0x84cdf),_0x84cdf;}function a77_0x5279(_0x457180,_0x3a772d){_0x457180=_0x457180-0x19b;const _0x38a523=a77_0x38a5();let _0x52796c=_0x38a523[_0x457180];return _0x52796c;}export async function getDbName(_0xa04137,_0x529764){const _0x553aa8=a77_0x5279;try{const _0x22d982=await listDatabases(_0xa04137);return _0x22d982[_0x553aa8(0x1a3)](_0x1f8c32=>_0x1f8c32[_0x553aa8(0x1ac)]===_0x529764)?.[_0x553aa8(0x1a2)];}catch{return undefined;}}function a77_0x38a5(){const _0x12f8a0=['find','map','2282319tnCdst','30PVsDfb','1329909jqXeuV','has','2386948qNedZY','dbtableConfig','1067608QGYPVB','dbId','85ANlfNN','55DdHSNT','set','13874bvtJSy','4484739BzGFiR','312318JfenKD','entries','dbName'];a77_0x38a5=function(){return _0x12f8a0;};return a77_0x38a5();}
@@ -1 +1 @@
1
- (function(_0x7d880c,_0x15e0da){const _0x3a0e28=a78_0x59b7,_0x4b49c1=_0x7d880c();while(!![]){try{const _0x5ec2ea=parseInt(_0x3a0e28(0xc1))/0x1*(parseInt(_0x3a0e28(0xdd))/0x2)+parseInt(_0x3a0e28(0xbc))/0x3+-parseInt(_0x3a0e28(0xe2))/0x4*(parseInt(_0x3a0e28(0xb9))/0x5)+parseInt(_0x3a0e28(0xcb))/0x6+-parseInt(_0x3a0e28(0xe0))/0x7*(parseInt(_0x3a0e28(0xd8))/0x8)+-parseInt(_0x3a0e28(0xba))/0x9+parseInt(_0x3a0e28(0xc8))/0xa*(-parseInt(_0x3a0e28(0xc6))/0xb);if(_0x5ec2ea===_0x15e0da)break;else _0x4b49c1['push'](_0x4b49c1['shift']());}catch(_0x22ac01){_0x4b49c1['push'](_0x4b49c1['shift']());}}}(a78_0x4277,0x9e6dd));function a78_0x59b7(_0xb401e6,_0x3704c4){_0xb401e6=_0xb401e6-0xb9;const _0x427750=a78_0x4277();let _0x59b7a6=_0x427750[_0xb401e6];return _0x59b7a6;}import{createClient}from'@lovrabet/sdk';import{PRODUCT_CONFIG}from'../constant/product.js';import{CliErrors}from'../errors.js';import{parseBatchCreateItemsFromParams}from'../utils/params.js';import{installLosslessJsonResponseParser}from'../utils/lossless-json.js';function a78_0x4277(){const _0x474236=['data\x20aggregate\x20--params.aggregate[','3565356xRgDEc','SDK\x20model\x20does\x20not\x20support\x20operation\x20\x22','aggregate','sql','update\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123,\x22name\x22:\x22new\x22}\x27\x20or\x20\x27{\x22id\x22:[1,2,3],\x22name\x22:\x22new\x22}\x27','917873ejIQIe','function','bff','column',']\x20must\x20be\x20an\x20object.','708895gMKgDu','trim','110WrQlXD',']\x20requires\x20\x22column\x22;\x20\x22field\x22\x20is\x20accepted\x20only\x20as\x20a\x20deprecated\x20alias.','field','3201156KHTqdh','invokeSource','object','isArray','execute','authMode','appCode','delete\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123}\x27','accessKey','data\x20aggregate\x20--params.aggregate\x20must\x20be\x20an\x20array.','string','Available:\x20filter,\x20getOne,\x20create,\x20batchCreate,\x20update,\x20delete,\x20aggregate.','validation','1871224djFcOa','delete','batchCreate','env','\x22.\x20','2pvzOXP','getOne\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123}\x27','map','7qppbAG','dataset_','465236NXudLO','getOne','30bwBvqU','3152466jTmKCs'];a78_0x4277=function(){return _0x474236;};return a78_0x4277();}let _client,restoreResponseJsonParser;export function initSdkClient(_0xae90c7){const _0x2b3a71=a78_0x59b7;restoreResponseJsonParser??=installLosslessJsonResponseParser();try{_client=createClient({'appCode':_0xae90c7[_0x2b3a71(0xd1)],'env':_0xae90c7[_0x2b3a71(0xdb)],'authMode':_0xae90c7[_0x2b3a71(0xd0)],..._0xae90c7[_0x2b3a71(0xd3)]?{'accessKey':_0xae90c7['accessKey']}:{},'options':{'timeout':0x7530,'headers':{'X-Invoke-Source':PRODUCT_CONFIG[_0x2b3a71(0xcc)]}}});}catch(_0x489e43){clearSdkClient();throw _0x489e43;}}export function clearSdkClient(){_client=undefined,restoreResponseJsonParser?.(),restoreResponseJsonParser=undefined;}function ensureClient(){if(!_client)throw new Error('SDK\x20client\x20not\x20initialized.\x20Call\x20initSdkClient()\x20first.');return _client;}function normalizeAggregateParams(_0x5d4e7e){const _0x325d7e=a78_0x59b7,_0xc11c57=_0x5d4e7e[_0x325d7e(0xbe)];if(_0xc11c57===undefined)return _0x5d4e7e;if(!Array[_0x325d7e(0xce)](_0xc11c57))throw CliErrors['validation'](_0x325d7e(0xd4));return{..._0x5d4e7e,'aggregate':_0xc11c57[_0x325d7e(0xdf)]((_0x511530,_0x56a80f)=>{const _0x1bf853=_0x325d7e;if(!_0x511530||typeof _0x511530!==_0x1bf853(0xcd)||Array[_0x1bf853(0xce)](_0x511530))throw CliErrors[_0x1bf853(0xd7)](_0x1bf853(0xbb)+_0x56a80f+_0x1bf853(0xc5));const _0x330b9e=_0x511530[_0x1bf853(0xc4)]??_0x511530[_0x1bf853(0xca)];if(typeof _0x330b9e!==_0x1bf853(0xd5)||_0x330b9e[_0x1bf853(0xc7)]()==='')throw CliErrors[_0x1bf853(0xd7)](_0x1bf853(0xbb)+_0x56a80f+_0x1bf853(0xc9));const _0x4a6157={..._0x511530,'column':_0x330b9e};return delete _0x4a6157['field'],_0x4a6157;})};}export async function executeData(_0x4d5858,_0x475cd5,_0x444c65){const _0x21cc21=a78_0x59b7,_0x13f7b8=ensureClient(),_0x5cdc3c=_0x21cc21(0xe1)+_0x4d5858,_0x174569=_0x13f7b8['models'][_0x5cdc3c];if(!_0x174569||typeof _0x174569[_0x475cd5]!==_0x21cc21(0xc2))throw new Error(_0x21cc21(0xbd)+_0x475cd5+_0x21cc21(0xdc)+_0x21cc21(0xd6));if(_0x475cd5===_0x21cc21(0xda))return _0x174569[_0x21cc21(0xda)](parseBatchCreateItemsFromParams(_0x444c65));const _0x5242a6=_0x444c65!==undefined&&_0x444c65!==null&&!Array[_0x21cc21(0xce)](_0x444c65)?_0x444c65:{};switch(_0x475cd5){case _0x21cc21(0xe3):{const _0x4645d0=_0x5242a6['id'];if(_0x4645d0===undefined||_0x4645d0===null)throw new Error(_0x21cc21(0xde));return _0x174569[_0x21cc21(0xe3)](_0x4645d0);}case'update':{const {id:_0x142b55,..._0x178df7}=_0x5242a6;if(_0x142b55===undefined||_0x142b55===null)throw new Error(_0x21cc21(0xc0));return _0x174569['update'](_0x142b55,_0x178df7);}case'delete':{const _0x5e178e=_0x5242a6['id'];if(_0x5e178e===undefined||_0x5e178e===null)throw new Error(_0x21cc21(0xd2));return _0x174569[_0x21cc21(0xd9)](_0x5e178e);}case _0x21cc21(0xbe):return _0x174569[_0x21cc21(0xbe)](normalizeAggregateParams(_0x5242a6));default:return _0x174569[_0x475cd5](_0x5242a6);}}export async function executeSdkSql(_0x1c3f70,_0x5380ad){const _0x1d8598=a78_0x59b7,_0x2ba995=ensureClient();return _0x2ba995[_0x1d8598(0xbf)]['execute']({'sqlCode':_0x1c3f70,'params':_0x5380ad});}export async function executeSdkBff(_0x5d9c4f,_0x21686f){const _0x59b5c3=a78_0x59b7,_0x232193=ensureClient();return _0x232193[_0x59b5c3(0xc3)][_0x59b5c3(0xcf)]({'scriptName':_0x5d9c4f,'params':_0x21686f});}
1
+ (function(_0xd98b11,_0x5880dd){const _0x3bcf48=a78_0x4657,_0x21479f=_0xd98b11();while(!![]){try{const _0x2a4380=parseInt(_0x3bcf48(0xa1))/0x1+-parseInt(_0x3bcf48(0x86))/0x2*(-parseInt(_0x3bcf48(0x92))/0x3)+-parseInt(_0x3bcf48(0x91))/0x4+parseInt(_0x3bcf48(0x88))/0x5*(-parseInt(_0x3bcf48(0x9e))/0x6)+-parseInt(_0x3bcf48(0x83))/0x7+-parseInt(_0x3bcf48(0x8b))/0x8*(-parseInt(_0x3bcf48(0x87))/0x9)+-parseInt(_0x3bcf48(0x98))/0xa;if(_0x2a4380===_0x5880dd)break;else _0x21479f['push'](_0x21479f['shift']());}catch(_0x4249b6){_0x21479f['push'](_0x21479f['shift']());}}}(a78_0x4fea,0x1e334));import{createClient}from'@lovrabet/sdk';import{PRODUCT_CONFIG}from'../constant/product.js';import{CliErrors}from'../errors.js';import{parseBatchCreateItemsFromParams}from'../utils/params.js';import{installLosslessJsonResponseParser}from'../utils/lossless-json.js';function a78_0x4fea(){const _0x1d2685=['415624kLCwtL','649401HvnJUi','SDK\x20client\x20not\x20initialized.\x20Call\x20initSdkClient()\x20first.','isArray',']\x20must\x20be\x20an\x20object.','getOne','execute','566540wLurcR','models','validation','dataset_','batchCreate','aggregate','402Vlfieg','map','field','105727HUWbjs','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','string','Available:\x20filter,\x20getOne,\x20create,\x20batchCreate,\x20update,\x20delete,\x20aggregate.','sql','appCode','invokeSource',']\x20requires\x20\x22column\x22;\x20\x22field\x22\x20is\x20accepted\x20only\x20as\x20a\x20deprecated\x20alias.','function','bff','464163qoxxBF','accessKey','update','2QNpxqi','245925EmXleC','4000YVpghi','data\x20aggregate\x20--params.aggregate[','column','24pMbeGz','authMode','SDK\x20model\x20does\x20not\x20support\x20operation\x20\x22','delete\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123}\x27','\x22.\x20','data\x20aggregate\x20--params.aggregate\x20must\x20be\x20an\x20array.'];a78_0x4fea=function(){return _0x1d2685;};return a78_0x4fea();}let _client,restoreResponseJsonParser;export function initSdkClient(_0x29e694){const _0x5ddcb1=a78_0x4657;restoreResponseJsonParser??=installLosslessJsonResponseParser();try{_client=createClient({'appCode':_0x29e694[_0x5ddcb1(0x7e)],'env':_0x29e694['env'],'authMode':_0x29e694[_0x5ddcb1(0x8c)],..._0x29e694[_0x5ddcb1(0x84)]?{'accessKey':_0x29e694[_0x5ddcb1(0x84)]}:{},'options':{'timeout':0x7530,'headers':{'X-Invoke-Source':PRODUCT_CONFIG[_0x5ddcb1(0x7f)]}}});}catch(_0x412cae){clearSdkClient();throw _0x412cae;}}function a78_0x4657(_0x134147,_0x3d9cd7){_0x134147=_0x134147-0x7a;const _0x4fea44=a78_0x4fea();let _0x465770=_0x4fea44[_0x134147];return _0x465770;}export function clearSdkClient(){_client=undefined,restoreResponseJsonParser?.(),restoreResponseJsonParser=undefined;}function ensureClient(){const _0x24c3e7=a78_0x4657;if(!_client)throw new Error(_0x24c3e7(0x93));return _client;}function normalizeAggregateParams(_0x65c450){const _0x37f527=a78_0x4657,_0x2c876d=_0x65c450['aggregate'];if(_0x2c876d===undefined)return _0x65c450;if(!Array['isArray'](_0x2c876d))throw CliErrors[_0x37f527(0x9a)](_0x37f527(0x90));return{..._0x65c450,'aggregate':_0x2c876d[_0x37f527(0x9f)]((_0x57fbe2,_0x18df82)=>{const _0x36f71b=_0x37f527;if(!_0x57fbe2||typeof _0x57fbe2!=='object'||Array[_0x36f71b(0x94)](_0x57fbe2))throw CliErrors[_0x36f71b(0x9a)]('data\x20aggregate\x20--params.aggregate['+_0x18df82+_0x36f71b(0x95));const _0x2502c5=_0x57fbe2[_0x36f71b(0x8a)]??_0x57fbe2['field'];if(typeof _0x2502c5!==_0x36f71b(0x7b)||_0x2502c5['trim']()==='')throw CliErrors[_0x36f71b(0x9a)](_0x36f71b(0x89)+_0x18df82+_0x36f71b(0x80));const _0x53311d={..._0x57fbe2,'column':_0x2502c5};return delete _0x53311d[_0x36f71b(0xa0)],_0x53311d;})};}export async function executeData(_0x450cf5,_0x5d4ddc,_0x4007be){const _0x4c1fdc=a78_0x4657,_0x27760c=ensureClient(),_0x14c51e=_0x4c1fdc(0x9b)+_0x450cf5,_0x5217d2=_0x27760c[_0x4c1fdc(0x99)][_0x14c51e];if(!_0x5217d2||typeof _0x5217d2[_0x5d4ddc]!==_0x4c1fdc(0x81))throw new Error(_0x4c1fdc(0x8d)+_0x5d4ddc+_0x4c1fdc(0x8f)+_0x4c1fdc(0x7c));if(_0x5d4ddc==='batchCreate')return _0x5217d2[_0x4c1fdc(0x9c)](parseBatchCreateItemsFromParams(_0x4007be));const _0x132538=_0x4007be!==undefined&&_0x4007be!==null&&!Array[_0x4c1fdc(0x94)](_0x4007be)?_0x4007be:{};switch(_0x5d4ddc){case _0x4c1fdc(0x96):{const _0x2cbd2d=_0x132538['id'];if(_0x2cbd2d===undefined||_0x2cbd2d===null)throw new Error('getOne\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123}\x27');return _0x5217d2[_0x4c1fdc(0x96)](_0x2cbd2d);}case _0x4c1fdc(0x85):{const {id:_0x49c27b,..._0x2288b6}=_0x132538;if(_0x49c27b===undefined||_0x49c27b===null)throw new Error(_0x4c1fdc(0x7a));return _0x5217d2[_0x4c1fdc(0x85)](_0x49c27b,_0x2288b6);}case'delete':{const _0x42d4f9=_0x132538['id'];if(_0x42d4f9===undefined||_0x42d4f9===null)throw new Error(_0x4c1fdc(0x8e));return _0x5217d2['delete'](_0x42d4f9);}case _0x4c1fdc(0x9d):return _0x5217d2['aggregate'](normalizeAggregateParams(_0x132538));default:return _0x5217d2[_0x5d4ddc](_0x132538);}}export async function executeSdkSql(_0x26ad90,_0x21ac6d){const _0x14cea8=a78_0x4657,_0x28227d=ensureClient();return _0x28227d[_0x14cea8(0x7d)][_0x14cea8(0x97)]({'sqlCode':_0x26ad90,'params':_0x21ac6d});}export async function executeSdkBff(_0x5abac8,_0x5f01b8){const _0x46bd1c=a78_0x4657,_0x220a51=ensureClient();return _0x220a51[_0x46bd1c(0x82)]['execute']({'scriptName':_0x5abac8,'params':_0x5f01b8});}
package/lib/errors.js CHANGED
@@ -1 +1 @@
1
- const a79_0x5bdf53=a79_0x54b6;function a79_0x54b6(_0x2c1636,_0x50db33){_0x2c1636=_0x2c1636-0x1bc;const _0x3d4b77=a79_0x3d4b();let _0x54b653=_0x3d4b77[_0x2c1636];return _0x54b653;}(function(_0x322bd7,_0x562495){const _0x753159=a79_0x54b6,_0x4e5d76=_0x322bd7();while(!![]){try{const _0x2a4af=-parseInt(_0x753159(0x1c4))/0x1*(parseInt(_0x753159(0x1c0))/0x2)+parseInt(_0x753159(0x1c2))/0x3+parseInt(_0x753159(0x1c6))/0x4*(-parseInt(_0x753159(0x1cb))/0x5)+-parseInt(_0x753159(0x1c5))/0x6*(-parseInt(_0x753159(0x1c9))/0x7)+-parseInt(_0x753159(0x1ca))/0x8*(parseInt(_0x753159(0x1bf))/0x9)+parseInt(_0x753159(0x1c8))/0xa+-parseInt(_0x753159(0x1ce))/0xb*(parseInt(_0x753159(0x1bc))/0xc);if(_0x2a4af===_0x562495)break;else _0x4e5d76['push'](_0x4e5d76['shift']());}catch(_0x2d6f2b){_0x4e5d76['push'](_0x4e5d76['shift']());}}}(a79_0x3d4b,0x7fea5));function a79_0x3d4b(){const _0x1b2ff4=['242gAQawT','25884FxsGXR','Set\x20appcode\x20via\x20--appcode\x20or\x20','\x20auth\x20login`.','9sAhFOa','10SsXdLb','rate_limited','773091PdYmCx','newConfigFileName','111046nICRrb','6zjQSpz','231212MRsdQl','Run\x20this\x20command\x20inside\x20a\x20directory\x20with\x20a\x20','9844140lHvBZy','6632507hCAGsg','7579048RjirOd','10xQXfXE','Configure\x20accessKey\x20in\x20','\x20file.'];a79_0x3d4b=function(){return _0x1b2ff4;};return a79_0x3d4b();}import{CliError,createCliErrors}from'@lovrabet/cli-framework';import{CLI_BIN_NAME}from'./constant/cli.js';import{PRODUCT_CONFIG}from'./constant/product.js';export{CliError};const baseCliErrors=createCliErrors({'cliBinName':CLI_BIN_NAME,'authRequiredHint':a79_0x5bdf53(0x1cc)+PRODUCT_CONFIG[a79_0x5bdf53(0x1c3)]+'\x20or\x20run\x20`'+CLI_BIN_NAME+a79_0x5bdf53(0x1be),'configMissingHint':a79_0x5bdf53(0x1bd)+PRODUCT_CONFIG[a79_0x5bdf53(0x1c3)]+'.','notInProjectHint':a79_0x5bdf53(0x1c7)+PRODUCT_CONFIG[a79_0x5bdf53(0x1c3)]+a79_0x5bdf53(0x1cd)});export const CliErrors={...baseCliErrors,'rateLimited':(_0x146588,_0x3f775e)=>new CliError(a79_0x5bdf53(0x1c1),0x2,_0x146588,_0x3f775e)};
1
+ function a79_0x4379(_0x375782,_0x4cd612){_0x375782=_0x375782-0xb2;const _0x44f222=a79_0x44f2();let _0x437918=_0x44f222[_0x375782];return _0x437918;}const a79_0x14c1e7=a79_0x4379;(function(_0x3ce042,_0xfa49d2){const _0x12322b=a79_0x4379,_0x56cf65=_0x3ce042();while(!![]){try{const _0x35b6da=parseInt(_0x12322b(0xba))/0x1+parseInt(_0x12322b(0xc0))/0x2*(-parseInt(_0x12322b(0xb5))/0x3)+-parseInt(_0x12322b(0xbf))/0x4*(parseInt(_0x12322b(0xb3))/0x5)+-parseInt(_0x12322b(0xbb))/0x6*(-parseInt(_0x12322b(0xb8))/0x7)+-parseInt(_0x12322b(0xbd))/0x8*(-parseInt(_0x12322b(0xc1))/0x9)+-parseInt(_0x12322b(0xb6))/0xa+-parseInt(_0x12322b(0xb9))/0xb*(-parseInt(_0x12322b(0xbe))/0xc);if(_0x35b6da===_0xfa49d2)break;else _0x56cf65['push'](_0x56cf65['shift']());}catch(_0x4645e2){_0x56cf65['push'](_0x56cf65['shift']());}}}(a79_0x44f2,0xb5cfe));import{CliError,createCliErrors}from'@lovrabet/cli-framework';function a79_0x44f2(){const _0x54b2bc=['rate_limited','301128Umqxqp','2972316RnVslu','4wGBgyA','2634VuNzVL','9Krwuaa','\x20file.','Run\x20this\x20command\x20inside\x20a\x20directory\x20with\x20a\x20','6288145fQilwY','newConfigFileName','273QhXyPD','5691050NeyMLy','Configure\x20accessKey\x20in\x20','2162356JfNurE','77JxZElQ','610883kJFyUr','6tfkYTa'];a79_0x44f2=function(){return _0x54b2bc;};return a79_0x44f2();}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_0x14c1e7(0xb7)+PRODUCT_CONFIG[a79_0x14c1e7(0xb4)]+'\x20or\x20run\x20`'+CLI_BIN_NAME+'\x20auth\x20login`.','configMissingHint':'Set\x20appcode\x20via\x20--appcode\x20or\x20'+PRODUCT_CONFIG['newConfigFileName']+'.','notInProjectHint':a79_0x14c1e7(0xb2)+PRODUCT_CONFIG['newConfigFileName']+a79_0x14c1e7(0xc2)});export const CliErrors={...baseCliErrors,'rateLimited':(_0x39980c,_0x128d0a)=>new CliError(a79_0x14c1e7(0xbc),0x2,_0x39980c,_0x128d0a)};
@@ -1 +1 @@
1
- (function(_0xd3cc4d,_0x6e0230){var _0x3948d5=a80_0x49df,_0x3fa15a=_0xd3cc4d();while(!![]){try{var _0x3c9b5d=-parseInt(_0x3948d5(0x143))/0x1+parseInt(_0x3948d5(0x13f))/0x2+-parseInt(_0x3948d5(0x145))/0x3+-parseInt(_0x3948d5(0x142))/0x4*(-parseInt(_0x3948d5(0x147))/0x5)+parseInt(_0x3948d5(0x141))/0x6*(parseInt(_0x3948d5(0x144))/0x7)+-parseInt(_0x3948d5(0x146))/0x8+parseInt(_0x3948d5(0x140))/0x9;if(_0x3c9b5d===_0x6e0230)break;else _0x3fa15a['push'](_0x3fa15a['shift']());}catch(_0x2c2a61){_0x3fa15a['push'](_0x3fa15a['shift']());}}}(a80_0x13ff,0xdfe49));function a80_0x49df(_0x3119f1,_0x25f467){_0x3119f1=_0x3119f1-0x13f;var _0x13ff2c=a80_0x13ff();var _0x49dfeb=_0x13ff2c[_0x3119f1];return _0x49dfeb;}function a80_0x13ff(){var _0x55657b=['12538848EeXUDB','17230AZWWcU','2647198IJcDqZ','12953790wpVjaA','379938yGKRPn','1148KSYxQO','1639053gECGgI','133lLChVk','2494722vadzSU'];a80_0x13ff=function(){return _0x55657b;};return a80_0x13ff();}import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';import{buildAllFlags as a80_0x512b1a}from'@lovrabet/cli-framework';export function buildAllFlags(_0x2c707b){return a80_0x512b1a(_0x2c707b,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});}
1
+ (function(_0x1e9b69,_0xab38a8){var _0x8e0959=a80_0x163d,_0x30a70e=_0x1e9b69();while(!![]){try{var _0x5284b8=parseInt(_0x8e0959(0x153))/0x1+parseInt(_0x8e0959(0x14e))/0x2*(-parseInt(_0x8e0959(0x154))/0x3)+parseInt(_0x8e0959(0x157))/0x4+-parseInt(_0x8e0959(0x156))/0x5*(-parseInt(_0x8e0959(0x155))/0x6)+-parseInt(_0x8e0959(0x150))/0x7+parseInt(_0x8e0959(0x151))/0x8*(-parseInt(_0x8e0959(0x14f))/0x9)+-parseInt(_0x8e0959(0x152))/0xa;if(_0x5284b8===_0xab38a8)break;else _0x30a70e['push'](_0x30a70e['shift']());}catch(_0x55fbec){_0x30a70e['push'](_0x30a70e['shift']());}}}(a80_0x6f9b,0x83e54));function a80_0x163d(_0xcf571b,_0x5e4500){_0xcf571b=_0xcf571b-0x14e;var _0x6f9b55=a80_0x6f9b();var _0x163d16=_0x6f9b55[_0xcf571b];return _0x163d16;}import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';import{buildAllFlags as a80_0x51b676}from'@lovrabet/cli-framework';function a80_0x6f9b(){var _0x15ea84=['2806892WlQHgC','118924MuJguA','5796qcLlRt','7015162WfmsUS','1544HQdCyV','945420rBIUkf','896615ihcGIi','33xvhFZf','169032HKweIs','145LBHTZP'];a80_0x6f9b=function(){return _0x15ea84;};return a80_0x6f9b();}export function buildAllFlags(_0xcfbab0){return a80_0x51b676(_0xcfbab0,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});}
@@ -1 +1 @@
1
- (function(_0x51e9a8,_0x31a3be){const _0x87d6f0=a81_0x4ce3,_0x53773e=_0x51e9a8();while(!![]){try{const _0x7167de=parseInt(_0x87d6f0(0x13a))/0x1*(parseInt(_0x87d6f0(0x13d))/0x2)+-parseInt(_0x87d6f0(0x140))/0x3+-parseInt(_0x87d6f0(0x13c))/0x4+-parseInt(_0x87d6f0(0x141))/0x5+parseInt(_0x87d6f0(0x13b))/0x6+-parseInt(_0x87d6f0(0x13e))/0x7+parseInt(_0x87d6f0(0x142))/0x8;if(_0x7167de===_0x31a3be)break;else _0x53773e['push'](_0x53773e['shift']());}catch(_0x12bc3e){_0x53773e['push'](_0x53773e['shift']());}}}(a81_0x286d,0xc5321));function a81_0x286d(){const _0x1e8b38=['5565258IjpEkm','3358240RvMSuE','2DjsnIJ','10587983XVxidY','description','3471435xHvsLl','5943435tKysKf','24718000phjRZg','body','1488381QwqYrc'];a81_0x286d=function(){return _0x1e8b38;};return a81_0x286d();}function a81_0x4ce3(_0x1e9094,_0x5906dc){_0x1e9094=_0x1e9094-0x13a;const _0x286d62=a81_0x286d();let _0x4ce3a7=_0x286d62[_0x1e9094];return _0x4ce3a7;}export function dryRun(_0x7766d8,_0x18327c){const _0x3132e3={'method':_0x7766d8,'url':_0x18327c},_0x36fb28={'body'(_0x5b969a){const _0x53f1aa=a81_0x4ce3;return _0x3132e3[_0x53f1aa(0x143)]=_0x5b969a,_0x36fb28;},'description'(_0x3501dc){const _0x43770c=a81_0x4ce3;return _0x3132e3[_0x43770c(0x13f)]=_0x3501dc,_0x36fb28;},'build'(){return{..._0x3132e3};}};return _0x36fb28;}
1
+ (function(_0x1a4af0,_0x45295d){const _0x4c0f98=a81_0x4bdc,_0x1c0556=_0x1a4af0();while(!![]){try{const _0x2bbf30=parseInt(_0x4c0f98(0xd3))/0x1*(-parseInt(_0x4c0f98(0xcf))/0x2)+parseInt(_0x4c0f98(0xd0))/0x3+parseInt(_0x4c0f98(0xd1))/0x4+parseInt(_0x4c0f98(0xd5))/0x5*(parseInt(_0x4c0f98(0xd8))/0x6)+-parseInt(_0x4c0f98(0xce))/0x7*(parseInt(_0x4c0f98(0xd4))/0x8)+-parseInt(_0x4c0f98(0xd6))/0x9*(parseInt(_0x4c0f98(0xd7))/0xa)+parseInt(_0x4c0f98(0xd2))/0xb;if(_0x2bbf30===_0x45295d)break;else _0x1c0556['push'](_0x1c0556['shift']());}catch(_0x3d21f3){_0x1c0556['push'](_0x1c0556['shift']());}}}(a81_0x3f16,0x97345));function a81_0x4bdc(_0x1defef,_0x3276eb){_0x1defef=_0x1defef-0xce;const _0x3f16de=a81_0x3f16();let _0x4bdc90=_0x3f16de[_0x1defef];return _0x4bdc90;}function a81_0x3f16(){const _0x1024b0=['3250768hBBvHB','1860nTFuMb','9gFIMCj','7043130fPgSpR','7080TjwLEt','7GQFpfw','1926biCXuY','408351tCYnwt','2580496PJhmLW','16603235yyiQbg','1038AwWfMI'];a81_0x3f16=function(){return _0x1024b0;};return a81_0x3f16();}export function dryRun(_0x185bee,_0x2082d3){const _0xdd6954={'method':_0x185bee,'url':_0x2082d3},_0x1b0565={'body'(_0xbeb267){return _0xdd6954['body']=_0xbeb267,_0x1b0565;},'description'(_0x5647f1){return _0xdd6954['description']=_0x5647f1,_0x1b0565;},'build'(){return{..._0xdd6954};}};return _0x1b0565;}
@@ -1 +1 @@
1
- const a82_0x2327b2=a82_0x43f1;(function(_0x399f35,_0x377e5e){const _0x1325d2=a82_0x43f1,_0x19e3e2=_0x399f35();while(!![]){try{const _0x5bc1d0=parseInt(_0x1325d2(0x14b))/0x1*(parseInt(_0x1325d2(0x14e))/0x2)+-parseInt(_0x1325d2(0x145))/0x3+parseInt(_0x1325d2(0x146))/0x4*(parseInt(_0x1325d2(0x14a))/0x5)+-parseInt(_0x1325d2(0x14c))/0x6+parseInt(_0x1325d2(0x14d))/0x7+parseInt(_0x1325d2(0x149))/0x8*(-parseInt(_0x1325d2(0x148))/0x9)+parseInt(_0x1325d2(0x150))/0xa;if(_0x5bc1d0===_0x377e5e)break;else _0x19e3e2['push'](_0x19e3e2['shift']());}catch(_0x1557b1){_0x19e3e2['push'](_0x19e3e2['shift']());}}}(a82_0x1ddb,0x8d63e));import{createFlagHelpers}from'@lovrabet/cli-framework';function a82_0x1ddb(){const _0x49d82a=['170530zRxUoQ','482CLKbwA','4285638zkTDrZ','6443563zzPwZk','926ktexeA','validateFlags','7404320WqVluA','2194806BbgoaJ','52HublXm','parseFlags','36IQlhYx','604952MasELK'];a82_0x1ddb=function(){return _0x49d82a;};return a82_0x1ddb();}import{CliErrors}from'../errors.js';const helpers=createFlagHelpers(CliErrors);function a82_0x43f1(_0x24cf8f,_0x5733e1){_0x24cf8f=_0x24cf8f-0x145;const _0x1ddb89=a82_0x1ddb();let _0x43f195=_0x1ddb89[_0x24cf8f];return _0x43f195;}export const parseFlags=helpers[a82_0x2327b2(0x147)];export const validateFlags=helpers[a82_0x2327b2(0x14f)];
1
+ const a82_0x198d2b=a82_0x1302;(function(_0x59092f,_0x4fb098){const _0x426faf=a82_0x1302,_0x46a20a=_0x59092f();while(!![]){try{const _0x4ae01c=-parseInt(_0x426faf(0xe9))/0x1*(-parseInt(_0x426faf(0xea))/0x2)+-parseInt(_0x426faf(0xe4))/0x3*(-parseInt(_0x426faf(0xef))/0x4)+parseInt(_0x426faf(0xe5))/0x5+parseInt(_0x426faf(0xeb))/0x6+-parseInt(_0x426faf(0xe8))/0x7*(-parseInt(_0x426faf(0xe3))/0x8)+-parseInt(_0x426faf(0xed))/0x9*(-parseInt(_0x426faf(0xec))/0xa)+-parseInt(_0x426faf(0xe7))/0xb*(parseInt(_0x426faf(0xee))/0xc);if(_0x4ae01c===_0x4fb098)break;else _0x46a20a['push'](_0x46a20a['shift']());}catch(_0x4db4f2){_0x46a20a['push'](_0x46a20a['shift']());}}}(a82_0x340d,0xd1601));import{createFlagHelpers}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';const helpers=createFlagHelpers(CliErrors);export const parseFlags=helpers[a82_0x198d2b(0xe6)];function a82_0x340d(){const _0x3e7d70=['2GbVyhV','762308hyBYNe','7618674XGWzVc','380wcCdNd','182961EohgGe','2185476oRtAXh','1656196mnJeOb','226392WFazuj','6TrqQQL','3143265VzdAKV','parseFlags','209RgHqZk','14kRRoDF'];a82_0x340d=function(){return _0x3e7d70;};return a82_0x340d();}function a82_0x1302(_0x5b8828,_0x47211d){_0x5b8828=_0x5b8828-0xe3;const _0x340d9e=a82_0x340d();let _0x13025d=_0x340d9e[_0x5b8828];return _0x13025d;}export const validateFlags=helpers['validateFlags'];