@lovrabet/lovrabet-cli 2.3.8-beta.6 → 2.3.8

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 (185) 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/approval/index.js +1 -1
  12. package/lib/commands/artifact/index.js +1 -1
  13. package/lib/commands/auth/device.js +1 -1
  14. package/lib/commands/auth/index.js +1 -1
  15. package/lib/commands/auth/prompt.js +1 -1
  16. package/lib/commands/bff/detail.js +1 -1
  17. package/lib/commands/bff/exec.js +1 -1
  18. package/lib/commands/bff/index.js +1 -1
  19. package/lib/commands/cli-skill/index.js +1 -1
  20. package/lib/commands/common/config-policy.js +1 -1
  21. package/lib/commands/common/constraints.js +1 -1
  22. package/lib/commands/common/flags.js +1 -1
  23. package/lib/commands/common/local-file.js +1 -1
  24. package/lib/commands/config/definitions.js +1 -1
  25. package/lib/commands/config/init.js +1 -1
  26. package/lib/commands/config/shared.js +1 -1
  27. package/lib/commands/data/import-excel.js +1 -1
  28. package/lib/commands/data/index.js +1 -1
  29. package/lib/commands/dataset/detail.js +1 -1
  30. package/lib/commands/dataset/index.js +1 -1
  31. package/lib/commands/dataset/list.js +1 -1
  32. package/lib/commands/dataset/sdk-doc.js +1 -1
  33. package/lib/commands/doctor.js +1 -1
  34. package/lib/commands/file/index.js +1 -1
  35. package/lib/commands/init.js +1 -1
  36. package/lib/commands/issue/context.js +1 -1
  37. package/lib/commands/issue/index.js +1 -1
  38. package/lib/commands/issue/report.js +1 -1
  39. package/lib/commands/kb/index.js +1 -1
  40. package/lib/commands/logs/index.js +1 -1
  41. package/lib/commands/notification/config-list.js +1 -1
  42. package/lib/commands/notification/index.js +1 -1
  43. package/lib/commands/notification/shared.js +1 -1
  44. package/lib/commands/ocr/index.js +1 -1
  45. package/lib/commands/permit/dataset-get.js +1 -1
  46. package/lib/commands/permit/dataset-set.js +1 -1
  47. package/lib/commands/permit/index.js +1 -1
  48. package/lib/commands/permit/page-get.js +1 -1
  49. package/lib/commands/permit/page-set.js +1 -1
  50. package/lib/commands/permit/role-menus-set.js +1 -1
  51. package/lib/commands/permit/role-menus.js +1 -1
  52. package/lib/commands/permit/shared.js +1 -1
  53. package/lib/commands/personal-bff/index.js +1 -1
  54. package/lib/commands/registry.js +1 -1
  55. package/lib/commands/role/create.js +1 -1
  56. package/lib/commands/role/delete.js +1 -1
  57. package/lib/commands/role/detail.js +1 -1
  58. package/lib/commands/role/index.js +1 -1
  59. package/lib/commands/role/list.js +1 -1
  60. package/lib/commands/role/shared.js +1 -1
  61. package/lib/commands/role/update.js +1 -1
  62. package/lib/commands/role/user-add.js +1 -1
  63. package/lib/commands/role/user-remove.js +1 -1
  64. package/lib/commands/schedule/index.js +1 -1
  65. package/lib/commands/schema.js +1 -1
  66. package/lib/commands/service/dynamic.js +1 -1
  67. package/lib/commands/service/function-name-adapter.js +1 -1
  68. package/lib/commands/service/index.js +1 -1
  69. package/lib/commands/service/registry.js +1 -1
  70. package/lib/commands/skill/commands/create.js +1 -1
  71. package/lib/commands/skill/commands/diagram.js +1 -1
  72. package/lib/commands/skill/commands/install.js +1 -1
  73. package/lib/commands/skill/commands/list.js +1 -1
  74. package/lib/commands/skill/commands/push.js +1 -1
  75. package/lib/commands/skill/commands/validate.js +1 -1
  76. package/lib/commands/skill/diagram.js +1 -1
  77. package/lib/commands/skill/flags.js +1 -1
  78. package/lib/commands/skill/index.js +1 -1
  79. package/lib/commands/skill/manifest-helpers.js +1 -1
  80. package/lib/commands/skill/push-execute.js +1 -1
  81. package/lib/commands/skill/push-flow-helpers.js +1 -1
  82. package/lib/commands/skill/push-retarget.js +1 -1
  83. package/lib/commands/skill/scopes.js +1 -1
  84. package/lib/commands/skill/summary.js +1 -1
  85. package/lib/commands/skill/templates.js +1 -1
  86. package/lib/commands/skill/validate.js +1 -1
  87. package/lib/commands/sql/detail.js +1 -1
  88. package/lib/commands/sql/exec.js +1 -1
  89. package/lib/commands/sql/index.js +1 -1
  90. package/lib/commands/update.js +1 -1
  91. package/lib/commands/user-account/bind.js +1 -1
  92. package/lib/commands/user-account/index.js +1 -1
  93. package/lib/commands/workspace/index.js +1 -1
  94. package/lib/config/domain-config.js +1 -1
  95. package/lib/config/schema.js +1 -1
  96. package/lib/constant/app.js +1 -1
  97. package/lib/constant/auth-mode.js +1 -1
  98. package/lib/constant/cli.js +1 -1
  99. package/lib/constant/defaults.js +1 -1
  100. package/lib/constant/distribution.js +1 -1
  101. package/lib/constant/domain.js +1 -1
  102. package/lib/constant/env.js +1 -1
  103. package/lib/constant/output.js +1 -1
  104. package/lib/constant/product.js +1 -1
  105. package/lib/constant/region.js +1 -1
  106. package/lib/constant/risk.js +1 -1
  107. package/lib/constant/url.js +1 -1
  108. package/lib/context.js +1 -1
  109. package/lib/core/api-client.js +1 -1
  110. package/lib/core/db-resolver.js +1 -1
  111. package/lib/core/kb-management-client.js +1 -1
  112. package/lib/core/kb-sdk-errors.js +1 -1
  113. package/lib/core/kb-search-client.js +1 -1
  114. package/lib/core/sdk-client.js +1 -1
  115. package/lib/errors.js +1 -1
  116. package/lib/framework/access-error.js +1 -1
  117. package/lib/framework/build-all-flags.js +1 -1
  118. package/lib/framework/dryrun.js +1 -1
  119. package/lib/framework/flags.js +1 -1
  120. package/lib/framework/help.js +1 -1
  121. package/lib/framework/index.js +1 -1
  122. package/lib/framework/output.js +1 -1
  123. package/lib/framework/preparse.js +1 -1
  124. package/lib/framework/rate-limit.js +1 -1
  125. package/lib/framework/raw-flags.js +1 -1
  126. package/lib/framework/response.js +1 -1
  127. package/lib/framework/runner-confirmation.js +1 -1
  128. package/lib/framework/runner-error.js +1 -1
  129. package/lib/framework/runner.js +1 -1
  130. package/lib/framework/schema-export.js +1 -1
  131. package/lib/framework/service-order.js +1 -1
  132. package/lib/framework/types.js +1 -1
  133. package/lib/generated/build-info.d.ts +4 -4
  134. package/lib/generated/build-info.js +1 -1
  135. package/lib/generated/official-routing.js +1 -1
  136. package/lib/generated/routing-contract.js +1 -1
  137. package/lib/help.js +1 -1
  138. package/lib/postinstall.js +1 -1
  139. package/lib/runtime/confirmation.js +1 -1
  140. package/lib/runtime/event.js +1 -1
  141. package/lib/runtime/index.js +1 -1
  142. package/lib/runtime/queue.js +1 -1
  143. package/lib/runtime/resolve.js +1 -1
  144. package/lib/services/dataset-import/auto-id-runner.js +1 -1
  145. package/lib/services/dataset-import/excel-reader.js +1 -1
  146. package/lib/services/dataset-import/image-bytes.js +1 -1
  147. package/lib/services/dataset-import/image-ooxml.js +1 -1
  148. package/lib/services/dataset-import/image-runner.js +1 -1
  149. package/lib/services/dataset-import/metadata.js +1 -1
  150. package/lib/services/dataset-import/preview.js +1 -1
  151. package/lib/services/dataset-import/runner.js +1 -1
  152. package/lib/skills/builtin-skill.js +1 -1
  153. package/lib/skills/npx-skills-add.js +1 -1
  154. package/lib/skills/runtime-skill-sync/constants.js +1 -1
  155. package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
  156. package/lib/skills/runtime-skill-sync/hashing.js +1 -1
  157. package/lib/skills/runtime-skill-sync/install-target.js +1 -1
  158. package/lib/skills/runtime-skill-sync/links.js +1 -1
  159. package/lib/skills/runtime-skill-sync/list-local.js +1 -1
  160. package/lib/skills/runtime-skill-sync/local-files.js +1 -1
  161. package/lib/skills/runtime-skill-sync/materialize.js +1 -1
  162. package/lib/skills/runtime-skill-sync/metadata.js +1 -1
  163. package/lib/skills/runtime-skill-sync/paths.js +1 -1
  164. package/lib/skills/runtime-skill-sync/push.js +1 -1
  165. package/lib/skills/runtime-skill-sync/scopes.js +1 -1
  166. package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
  167. package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
  168. package/lib/skills/runtime-skill-sync.js +1 -1
  169. package/lib/skills/skill-presence.js +1 -1
  170. package/lib/utils/access-key-redaction.js +1 -1
  171. package/lib/utils/apply-jq-filter.js +1 -1
  172. package/lib/utils/cli-version-check.js +1 -1
  173. package/lib/utils/cli-version-policy.js +1 -1
  174. package/lib/utils/logger.js +1 -1
  175. package/lib/utils/lossless-json.js +1 -1
  176. package/lib/utils/params.js +1 -1
  177. package/lib/utils/positive-safe-integer.js +1 -1
  178. package/lib/utils/redaction.js +1 -1
  179. package/lib/utils/runtime-user-id.js +1 -1
  180. package/lib/utils/update-notice.js +1 -1
  181. package/lib/utils/version.js +1 -1
  182. package/lib/utils/write-cli-side-channel.js +1 -1
  183. package/package.json +3 -3
  184. package/skills/lovrabet/SKILL.md +1 -1
  185. package/skills/lovrabet.manifest.json +3 -3
@@ -1 +1 @@
1
- function a96_0x3042(_0x4a692b,_0x39d7c6){_0x4a692b=_0x4a692b-0x1c7;const _0x36e2b0=a96_0x36e2();let _0x304223=_0x36e2b0[_0x4a692b];return _0x304223;}const a96_0x5edce9=a96_0x3042;(function(_0x1a5a71,_0x54e4e9){const _0x498cd6=a96_0x3042,_0x4a6524=_0x1a5a71();while(!![]){try{const _0x13995f=-parseInt(_0x498cd6(0x1d1))/0x1*(parseInt(_0x498cd6(0x1d2))/0x2)+parseInt(_0x498cd6(0x1d0))/0x3*(-parseInt(_0x498cd6(0x1cf))/0x4)+-parseInt(_0x498cd6(0x1cd))/0x5*(-parseInt(_0x498cd6(0x1c7))/0x6)+-parseInt(_0x498cd6(0x1ca))/0x7+parseInt(_0x498cd6(0x1ce))/0x8+-parseInt(_0x498cd6(0x1d3))/0x9+parseInt(_0x498cd6(0x1cc))/0xa*(parseInt(_0x498cd6(0x1c9))/0xb);if(_0x13995f===_0x54e4e9)break;else _0x4a6524['push'](_0x4a6524['shift']());}catch(_0x4f9861){_0x4a6524['push'](_0x4a6524['shift']());}}}(a96_0x36e2,0x49191));export const AUTH_MODE={'ClientAk':a96_0x5edce9(0x1cb)};function a96_0x36e2(){const _0x1b4c9e=['350vaXzZK','15wYSCQU','1284600chpANE','4eCypgl','1036677JdjtUU','63883GOasAB','6TmyYKJ','4922541PdTYqX','90438idwLXE','ClientAk','523468pSaDMs','3414656eOYzid','client-ak'];a96_0x36e2=function(){return _0x1b4c9e;};return a96_0x36e2();}export function isAuthMode(_0x232549){const _0x32ffb1=a96_0x5edce9;return _0x232549===AUTH_MODE[_0x32ffb1(0x1c8)];}
1
+ const a96_0x554369=a96_0x3b4c;function a96_0x55d4(){const _0xab8564=['1587618MnecTr','161465fiZdOR','11295wDaCKR','48mcINNl','7bYjPFL','14CRZMda','30992484pWmoil','3828945KRtBmU','11apBIBC','12530530vQurvw','1064tBmSaK','ClientAk','client-ak','213054vhfMid'];a96_0x55d4=function(){return _0xab8564;};return a96_0x55d4();}(function(_0xbc458d,_0x56ce3c){const _0x45bf0a=a96_0x3b4c,_0x2261f5=_0xbc458d();while(!![]){try{const _0x41fbe6=-parseInt(_0x45bf0a(0x98))/0x1*(parseInt(_0x45bf0a(0x9c))/0x2)+parseInt(_0x45bf0a(0x96))/0x3*(-parseInt(_0x45bf0a(0x9a))/0x4)+-parseInt(_0x45bf0a(0x9e))/0x5+-parseInt(_0x45bf0a(0x97))/0x6*(parseInt(_0x45bf0a(0x9b))/0x7)+-parseInt(_0x45bf0a(0xa1))/0x8*(parseInt(_0x45bf0a(0x99))/0x9)+parseInt(_0x45bf0a(0xa0))/0xa+parseInt(_0x45bf0a(0x9f))/0xb*(parseInt(_0x45bf0a(0x9d))/0xc);if(_0x41fbe6===_0x56ce3c)break;else _0x2261f5['push'](_0x2261f5['shift']());}catch(_0xf69876){_0x2261f5['push'](_0x2261f5['shift']());}}}(a96_0x55d4,0xa026e));function a96_0x3b4c(_0x17357e,_0x1c266b){_0x17357e=_0x17357e-0x94;const _0x55d421=a96_0x55d4();let _0x3b4c7e=_0x55d421[_0x17357e];return _0x3b4c7e;}export const AUTH_MODE={'ClientAk':a96_0x554369(0x95)};export function isAuthMode(_0x4cde11){const _0x10963e=a96_0x554369;return _0x4cde11===AUTH_MODE[_0x10963e(0x94)];}
@@ -1 +1 @@
1
- const a97_0x6e444=a97_0xd3f6;(function(_0x3e8615,_0x437527){const _0x3caa55=a97_0xd3f6,_0x293f17=_0x3e8615();while(!![]){try{const _0x443225=parseInt(_0x3caa55(0xb6))/0x1+parseInt(_0x3caa55(0xd9))/0x2+parseInt(_0x3caa55(0xd4))/0x3*(parseInt(_0x3caa55(0xde))/0x4)+parseInt(_0x3caa55(0xcd))/0x5*(parseInt(_0x3caa55(0xcb))/0x6)+parseInt(_0x3caa55(0xc8))/0x7*(parseInt(_0x3caa55(0xb8))/0x8)+-parseInt(_0x3caa55(0xd5))/0x9*(parseInt(_0x3caa55(0xcf))/0xa)+-parseInt(_0x3caa55(0xc4))/0xb;if(_0x443225===_0x437527)break;else _0x293f17['push'](_0x293f17['shift']());}catch(_0x2f1300){_0x293f17['push'](_0x293f17['shift']());}}}(a97_0x5901,0xb14c0));function a97_0xd3f6(_0x8f3081,_0x22c187){_0x8f3081=_0x8f3081-0xb2;const _0x59014e=a97_0x5901();let _0xd3f6ec=_0x59014e[_0x8f3081];return _0xd3f6ec;}import{PRODUCT_CONFIG}from'../constant/product.js';import{LOVRABET_NPM_PACKAGE_NAME}from'../constant/distribution.js';export const CLI_BIN_NAME=PRODUCT_CONFIG['cliBinName'];export const CLI_DISPLAY_NAME=PRODUCT_CONFIG[a97_0x6e444(0xba)];function a97_0x5901(){const _0x258298=['Record\x20ID','47848ThWruZ','boolean','cliDisplayName','name','type','Alias\x20for\x20--non-interactive','json\x20|\x20pretty\x20|\x20compress','<code>','params','JSON\x20params\x20for\x20execute\x20commands','map','SQL\x20query\x20code','40331390Immjuk','Show\x20help','sqlcode','Use\x20global\x20config\x20scope','945TPjZyf','dryRun','Select\x20app\x20profile\x20by\x20name','1943724NFhsVW','app','10LkATGh','non-interactive','10pTsLIM','Skip\x20confirmation\x20for\x20high-risk\x20writes','help','meowKey','format','1545243cWeUcu','663948HUfwOK','yes','fromEntries','dry-run','2617518xnoINV','env','Clear\x20output','verbose','nonInteractive','4eohfGN','Environment','production\x20|\x20development\x20|\x20daily','<expr>','Override\x20appcode','Name\x20filter','Verbose\x20output','appcode','global','string','Force\x20non-interactive\x20mode\x20(CI)','clear','Preview\x20operation\x20without\x20executing','1187287ZXklks'];a97_0x5901=function(){return _0x258298;};return a97_0x5901();}export const NPM_PACKAGE_NAME=LOVRABET_NPM_PACKAGE_NAME;export const GLOBAL_FLAGS=[{'name':a97_0x6e444(0xe5),'meowKey':'appcode','type':a97_0x6e444(0xb2),'description':a97_0x6e444(0xe2),'hint':a97_0x6e444(0xbf)},{'name':a97_0x6e444(0xcc),'meowKey':a97_0x6e444(0xcc),'type':a97_0x6e444(0xb2),'description':a97_0x6e444(0xca),'hint':'<name>'},{'name':'env','meowKey':a97_0x6e444(0xda),'type':a97_0x6e444(0xb2),'description':a97_0x6e444(0xdf),'hint':a97_0x6e444(0xe0)},{'name':a97_0x6e444(0xd3),'meowKey':a97_0x6e444(0xd3),'type':a97_0x6e444(0xb2),'description':'Output\x20format','hint':a97_0x6e444(0xbe)},{'name':'jq','meowKey':'jq','type':'string','description':'Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20implies\x20--format\x20json\x20when\x20current\x20format\x20is\x20pretty)','hint':a97_0x6e444(0xe1)},{'name':'dry-run','meowKey':a97_0x6e444(0xc9),'type':'boolean','description':a97_0x6e444(0xb5)},{'name':'yes','meowKey':a97_0x6e444(0xd6),'type':a97_0x6e444(0xb9),'description':a97_0x6e444(0xd0)},{'name':a97_0x6e444(0xce),'meowKey':a97_0x6e444(0xdd),'type':a97_0x6e444(0xb9),'description':a97_0x6e444(0xb3)},{'name':a97_0x6e444(0xe6),'meowKey':a97_0x6e444(0xe6),'type':'boolean','description':a97_0x6e444(0xc7)},{'name':'ci','meowKey':'ci','type':a97_0x6e444(0xb9),'description':a97_0x6e444(0xbd),'hidden':!![]},{'name':a97_0x6e444(0xd1),'meowKey':a97_0x6e444(0xd1),'type':a97_0x6e444(0xb9),'description':a97_0x6e444(0xc5)},{'name':'id','meowKey':'id','type':a97_0x6e444(0xb2),'description':a97_0x6e444(0xb7),'hidden':!![]},{'name':'name','meowKey':a97_0x6e444(0xbb),'type':a97_0x6e444(0xb2),'description':a97_0x6e444(0xe3),'hidden':!![]},{'name':a97_0x6e444(0xc6),'meowKey':a97_0x6e444(0xc6),'type':a97_0x6e444(0xb2),'description':a97_0x6e444(0xc3),'hidden':!![]},{'name':a97_0x6e444(0xc0),'meowKey':a97_0x6e444(0xc0),'type':'string','description':a97_0x6e444(0xc1),'hidden':!![]},{'name':'verbose','meowKey':a97_0x6e444(0xdc),'type':a97_0x6e444(0xb9),'description':a97_0x6e444(0xe4),'hidden':!![]},{'name':a97_0x6e444(0xb4),'meowKey':'clear','type':a97_0x6e444(0xb9),'description':a97_0x6e444(0xdb),'hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set([a97_0x6e444(0xe5),a97_0x6e444(0xcc),a97_0x6e444(0xda),a97_0x6e444(0xd3),'jq',a97_0x6e444(0xd8),'yes',a97_0x6e444(0xce),'ci']);export function buildMeowFlags(){const _0x3f14ce=a97_0x6e444;return Object[_0x3f14ce(0xd7)](GLOBAL_FLAGS[_0x3f14ce(0xc2)](_0x13712d=>[_0x13712d[_0x3f14ce(0xd2)],{'type':_0x13712d[_0x3f14ce(0xbc)]}]));}
1
+ function a97_0x2f19(_0x56179d,_0x15c8d9){_0x56179d=_0x56179d-0x12d;const _0x1a25a4=a97_0x1a25();let _0x2f19f7=_0x1a25a4[_0x56179d];return _0x2f19f7;}const a97_0x1b6c9c=a97_0x2f19;(function(_0x499b8c,_0x37ada3){const _0x1a3116=a97_0x2f19,_0x36db65=_0x499b8c();while(!![]){try{const _0x1259c8=parseInt(_0x1a3116(0x13d))/0x1+parseInt(_0x1a3116(0x14a))/0x2*(-parseInt(_0x1a3116(0x149))/0x3)+parseInt(_0x1a3116(0x159))/0x4*(-parseInt(_0x1a3116(0x136))/0x5)+parseInt(_0x1a3116(0x13a))/0x6+parseInt(_0x1a3116(0x138))/0x7*(-parseInt(_0x1a3116(0x15c))/0x8)+parseInt(_0x1a3116(0x134))/0x9*(parseInt(_0x1a3116(0x13f))/0xa)+-parseInt(_0x1a3116(0x15a))/0xb;if(_0x1259c8===_0x37ada3)break;else _0x36db65['push'](_0x36db65['shift']());}catch(_0x456f84){_0x36db65['push'](_0x36db65['shift']());}}}(a97_0x1a25,0xa2248));function a97_0x1a25(){const _0xb67f34=['Select\x20app\x20profile\x20by\x20name','Preview\x20operation\x20without\x20executing','7704NaEATJ','params','60DhEmfw','yes','1246aSOMQy','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20implies\x20--format\x20json\x20when\x20current\x20format\x20is\x20pretty)','5120184eHLeRj','cliBinName','Environment','1258603UCyjyg','verbose','13820WWWXXs','type','env','<name>','map','SQL\x20query\x20code','<expr>','string','appcode','JSON\x20params\x20for\x20execute\x20commands','3TsAiqr','1650504FqMEPg','json\x20|\x20pretty\x20|\x20compress','Use\x20global\x20config\x20scope','Override\x20appcode','format','cliDisplayName','app','boolean','global','clear','sqlcode','dryRun','<code>','production\x20|\x20development\x20|\x20daily','help','207884uzlGMc','8777703gucHkb','dry-run','17256FzPFIM','Record\x20ID','Skip\x20confirmation\x20for\x20high-risk\x20writes','Alias\x20for\x20--non-interactive','Verbose\x20output','Show\x20help','name'];a97_0x1a25=function(){return _0xb67f34;};return a97_0x1a25();}import{PRODUCT_CONFIG}from'../constant/product.js';import{LOVRABET_NPM_PACKAGE_NAME}from'../constant/distribution.js';export const CLI_BIN_NAME=PRODUCT_CONFIG[a97_0x1b6c9c(0x13b)];export const CLI_DISPLAY_NAME=PRODUCT_CONFIG[a97_0x1b6c9c(0x14f)];export const NPM_PACKAGE_NAME=LOVRABET_NPM_PACKAGE_NAME;export const GLOBAL_FLAGS=[{'name':a97_0x1b6c9c(0x147),'meowKey':a97_0x1b6c9c(0x147),'type':a97_0x1b6c9c(0x146),'description':a97_0x1b6c9c(0x14d),'hint':a97_0x1b6c9c(0x156)},{'name':a97_0x1b6c9c(0x150),'meowKey':a97_0x1b6c9c(0x150),'type':a97_0x1b6c9c(0x146),'description':a97_0x1b6c9c(0x132),'hint':a97_0x1b6c9c(0x142)},{'name':a97_0x1b6c9c(0x141),'meowKey':a97_0x1b6c9c(0x141),'type':'string','description':a97_0x1b6c9c(0x13c),'hint':a97_0x1b6c9c(0x157)},{'name':a97_0x1b6c9c(0x14e),'meowKey':a97_0x1b6c9c(0x14e),'type':'string','description':'Output\x20format','hint':a97_0x1b6c9c(0x14b)},{'name':'jq','meowKey':'jq','type':'string','description':a97_0x1b6c9c(0x139),'hint':a97_0x1b6c9c(0x145)},{'name':a97_0x1b6c9c(0x15b),'meowKey':a97_0x1b6c9c(0x155),'type':a97_0x1b6c9c(0x151),'description':a97_0x1b6c9c(0x133)},{'name':'yes','meowKey':a97_0x1b6c9c(0x137),'type':a97_0x1b6c9c(0x151),'description':a97_0x1b6c9c(0x12d)},{'name':'non-interactive','meowKey':'nonInteractive','type':a97_0x1b6c9c(0x151),'description':'Force\x20non-interactive\x20mode\x20(CI)'},{'name':a97_0x1b6c9c(0x152),'meowKey':'global','type':a97_0x1b6c9c(0x151),'description':a97_0x1b6c9c(0x14c)},{'name':'ci','meowKey':'ci','type':a97_0x1b6c9c(0x151),'description':a97_0x1b6c9c(0x12e),'hidden':!![]},{'name':a97_0x1b6c9c(0x158),'meowKey':'help','type':'boolean','description':a97_0x1b6c9c(0x130)},{'name':'id','meowKey':'id','type':a97_0x1b6c9c(0x146),'description':a97_0x1b6c9c(0x15d),'hidden':!![]},{'name':a97_0x1b6c9c(0x131),'meowKey':a97_0x1b6c9c(0x131),'type':a97_0x1b6c9c(0x146),'description':'Name\x20filter','hidden':!![]},{'name':a97_0x1b6c9c(0x154),'meowKey':a97_0x1b6c9c(0x154),'type':a97_0x1b6c9c(0x146),'description':a97_0x1b6c9c(0x144),'hidden':!![]},{'name':a97_0x1b6c9c(0x135),'meowKey':a97_0x1b6c9c(0x135),'type':a97_0x1b6c9c(0x146),'description':a97_0x1b6c9c(0x148),'hidden':!![]},{'name':'verbose','meowKey':a97_0x1b6c9c(0x13e),'type':'boolean','description':a97_0x1b6c9c(0x12f),'hidden':!![]},{'name':a97_0x1b6c9c(0x153),'meowKey':'clear','type':a97_0x1b6c9c(0x151),'description':'Clear\x20output','hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set([a97_0x1b6c9c(0x147),a97_0x1b6c9c(0x150),a97_0x1b6c9c(0x141),'format','jq',a97_0x1b6c9c(0x15b),a97_0x1b6c9c(0x137),'non-interactive','ci']);export function buildMeowFlags(){const _0x221cbe=a97_0x1b6c9c;return Object['fromEntries'](GLOBAL_FLAGS[_0x221cbe(0x143)](_0x75a9fc=>[_0x75a9fc['meowKey'],{'type':_0x75a9fc[_0x221cbe(0x140)]}]));}
@@ -1 +1 @@
1
- const a98_0x52f3e4=a98_0x28e9;(function(_0x16949e,_0x49620e){const _0x3fe407=a98_0x28e9,_0x16eb95=_0x16949e();while(!![]){try{const _0x36fc8a=parseInt(_0x3fe407(0x1ec))/0x1+-parseInt(_0x3fe407(0x1ee))/0x2+-parseInt(_0x3fe407(0x1f8))/0x3*(-parseInt(_0x3fe407(0x1f2))/0x4)+-parseInt(_0x3fe407(0x1fa))/0x5+-parseInt(_0x3fe407(0x1ef))/0x6*(parseInt(_0x3fe407(0x1f0))/0x7)+-parseInt(_0x3fe407(0x1f9))/0x8+-parseInt(_0x3fe407(0x1f1))/0x9*(-parseInt(_0x3fe407(0x1f3))/0xa);if(_0x36fc8a===_0x49620e)break;else _0x16eb95['push'](_0x16eb95['shift']());}catch(_0x360530){_0x16eb95['push'](_0x16eb95['shift']());}}}(a98_0xefb8,0x55f7c));function a98_0xefb8(){const _0x4c3704=['main','1177152RlSRwh','234cHXJkS','101738npwQjX','677601SaIkLd','1455276gcwBTX','220BmiuIC','write','en-US','production','compress','3TxDRjs','3816424WoDohh','3215325nnOiKU','607467vRKKXW'];a98_0xefb8=function(){return _0x4c3704;};return a98_0xefb8();}export const DEFAULT_APP_PROFILE_NAME=a98_0x52f3e4(0x1ed);export const DEFAULT_CONFIG_VALUES={'env':a98_0x52f3e4(0x1f6),'format':a98_0x52f3e4(0x1f7),'locale':a98_0x52f3e4(0x1f5),'riskLevel':a98_0x52f3e4(0x1f4)};function a98_0x28e9(_0x28b446,_0xb4e530){_0x28b446=_0x28b446-0x1ec;const _0xefb815=a98_0xefb8();let _0x28e9f0=_0xefb815[_0x28b446];return _0x28e9f0;}export const DEFAULT_COMMAND_OUTPUT_FORMAT=a98_0x52f3e4(0x1f7);
1
+ function a98_0x4e86(_0x167298,_0x5a6d12){_0x167298=_0x167298-0xb5;const _0x2e86ee=a98_0x2e86();let _0x4e8680=_0x2e86ee[_0x167298];return _0x4e8680;}const a98_0x2f0d0f=a98_0x4e86;(function(_0x49357c,_0x2ebcdc){const _0x49940d=a98_0x4e86,_0x11570c=_0x49357c();while(!![]){try{const _0x317b1d=parseInt(_0x49940d(0xb6))/0x1+-parseInt(_0x49940d(0xb7))/0x2*(parseInt(_0x49940d(0xbd))/0x3)+-parseInt(_0x49940d(0xc0))/0x4+-parseInt(_0x49940d(0xb5))/0x5*(parseInt(_0x49940d(0xbf))/0x6)+-parseInt(_0x49940d(0xb9))/0x7+parseInt(_0x49940d(0xbe))/0x8+parseInt(_0x49940d(0xc1))/0x9;if(_0x317b1d===_0x2ebcdc)break;else _0x11570c['push'](_0x11570c['shift']());}catch(_0x882ec0){_0x11570c['push'](_0x11570c['shift']());}}}(a98_0x2e86,0x8c976));export const DEFAULT_APP_PROFILE_NAME=a98_0x2f0d0f(0xbb);export const DEFAULT_CONFIG_VALUES={'env':a98_0x2f0d0f(0xb8),'format':a98_0x2f0d0f(0xba),'locale':a98_0x2f0d0f(0xbc),'riskLevel':'write'};function a98_0x2e86(){const _0x5d8140=['25641nibSeA','compress','main','en-US','2662263Psggdl','4310864WVctDW','13842xXvbXx','4070412SrwJlX','14654565uzKAvn','1290nHnUYA','912612vGDHpW','2ROjAch','production'];a98_0x2e86=function(){return _0x5d8140;};return a98_0x2e86();}export const DEFAULT_COMMAND_OUTPUT_FORMAT='compress';
@@ -1 +1 @@
1
- const a99_0x5cf323=a99_0x4cea;function a99_0x4aa7(){const _0x19c2ed=['2424lByrsJ','394386zGSeLY','2dtZBGS','/dist/lovrabet-cli/config/index.json','13479djhMIV','npmRegistryBaseUrl','10UwSYiR','cliCdnBaseUrl','480FkKQRi','2602472zIlZmZ','npmPackageName','1865780VSouhP','skillSource','5122233SWZYUv','60093ogMtWH','188854aqFOgI','5ZMUQIW'];a99_0x4aa7=function(){return _0x19c2ed;};return a99_0x4aa7();}(function(_0x1126f2,_0x539070){const _0x3b6188=a99_0x4cea,_0x34ee1d=_0x1126f2();while(!![]){try{const _0x567081=parseInt(_0x3b6188(0xa7))/0x1*(-parseInt(_0x3b6188(0xa3))/0x2)+-parseInt(_0x3b6188(0xa9))/0x3*(-parseInt(_0x3b6188(0xad))/0x4)+-parseInt(_0x3b6188(0xa4))/0x5*(parseInt(_0x3b6188(0xa6))/0x6)+parseInt(_0x3b6188(0xb0))/0x7+parseInt(_0x3b6188(0xae))/0x8+parseInt(_0x3b6188(0xb2))/0x9*(parseInt(_0x3b6188(0xab))/0xa)+parseInt(_0x3b6188(0xa2))/0xb*(-parseInt(_0x3b6188(0xa5))/0xc);if(_0x567081===_0x539070)break;else _0x34ee1d['push'](_0x34ee1d['shift']());}catch(_0x430e37){_0x34ee1d['push'](_0x34ee1d['shift']());}}}(a99_0x4aa7,0x53813));import{PRODUCT_CONFIG}from'../constant/product.js';export const LOVRABET_NPM_PACKAGE_NAME=PRODUCT_CONFIG[a99_0x5cf323(0xaf)];export const LOVRABET_SKILL_SOURCE=PRODUCT_CONFIG[a99_0x5cf323(0xb1)];export const NPM_REGISTRY_BASE_URL=PRODUCT_CONFIG[a99_0x5cf323(0xaa)];export const LOVRABET_CLI_CDN_BASE_URL=PRODUCT_CONFIG[a99_0x5cf323(0xac)];function a99_0x4cea(_0x38754d,_0x1e306d){_0x38754d=_0x38754d-0xa2;const _0x4aa741=a99_0x4aa7();let _0x4ceaad=_0x4aa741[_0x38754d];return _0x4ceaad;}export const LOVRABET_CLI_VERSION_POLICY_URL=LOVRABET_CLI_CDN_BASE_URL+a99_0x5cf323(0xa8);
1
+ const a99_0x4c2040=a99_0x46b9;(function(_0x4d1039,_0x3c9e7a){const _0x194252=a99_0x46b9,_0x3c68a7=_0x4d1039();while(!![]){try{const _0x435e0d=parseInt(_0x194252(0xb1))/0x1+-parseInt(_0x194252(0xad))/0x2+parseInt(_0x194252(0xb9))/0x3+parseInt(_0x194252(0xae))/0x4+parseInt(_0x194252(0xb2))/0x5+-parseInt(_0x194252(0xba))/0x6*(-parseInt(_0x194252(0xaf))/0x7)+-parseInt(_0x194252(0xb0))/0x8*(parseInt(_0x194252(0xb4))/0x9);if(_0x435e0d===_0x3c9e7a)break;else _0x3c68a7['push'](_0x3c68a7['shift']());}catch(_0x1cfde0){_0x3c68a7['push'](_0x3c68a7['shift']());}}}(a99_0xea18,0x38b6c));import{PRODUCT_CONFIG}from'../constant/product.js';export const LOVRABET_NPM_PACKAGE_NAME=PRODUCT_CONFIG[a99_0x4c2040(0xb3)];export const LOVRABET_SKILL_SOURCE=PRODUCT_CONFIG[a99_0x4c2040(0xb5)];export const NPM_REGISTRY_BASE_URL=PRODUCT_CONFIG[a99_0x4c2040(0xb7)];export const LOVRABET_CLI_CDN_BASE_URL=PRODUCT_CONFIG[a99_0x4c2040(0xb6)];function a99_0xea18(){const _0x2612b2=['cliCdnBaseUrl','npmRegistryBaseUrl','/dist/lovrabet-cli/config/index.json','1166466nYAKmg','647412aycHuV','260136CvGafY','774528jjaaju','7QIdKhZ','111432gOumRH','328494zBsamg','826645gKWwUs','npmPackageName','531APqaWp','skillSource'];a99_0xea18=function(){return _0x2612b2;};return a99_0xea18();}function a99_0x46b9(_0x2e1bc1,_0x4402f6){_0x2e1bc1=_0x2e1bc1-0xad;const _0xea18c7=a99_0xea18();let _0x46b983=_0xea18c7[_0x2e1bc1];return _0x46b983;}export const LOVRABET_CLI_VERSION_POLICY_URL=LOVRABET_CLI_CDN_BASE_URL+a99_0x4c2040(0xb8);
@@ -1 +1 @@
1
- function a100_0x8ef8(){const _0x4772b2=['production','serviceDomains','19736ytBZBf','6MBBwLh','262RpBJxA','1971558qPgRsZ','3351vPdVGv','skillDomain','kbService','runtime','1350vUmmtV','skill','allowOfficialKbServiceDefault','4665705imlXxn','api','9616IsVPTx','daily','12620030nwWUet','6896771xHDDXr','userDomain','kbServiceDomain','runtimeDomain','1370hZpAzm'];a100_0x8ef8=function(){return _0x4772b2;};return a100_0x8ef8();}const a100_0x4a3580=a100_0x5151;(function(_0x35d789,_0x16c95a){const _0x17f84f=a100_0x5151,_0xd2591=_0x35d789();while(!![]){try{const _0x2b4d9b=parseInt(_0x17f84f(0x10b))/0x1*(parseInt(_0x17f84f(0x109))/0x2)+-parseInt(_0x17f84f(0x10a))/0x3+parseInt(_0x17f84f(0xfd))/0x4*(parseInt(_0x17f84f(0x104))/0x5)+-parseInt(_0x17f84f(0x108))/0x6*(parseInt(_0x17f84f(0x100))/0x7)+-parseInt(_0x17f84f(0x107))/0x8*(-parseInt(_0x17f84f(0x10f))/0x9)+parseInt(_0x17f84f(0xff))/0xa+-parseInt(_0x17f84f(0xfb))/0xb;if(_0x2b4d9b===_0x16c95a)break;else _0xd2591['push'](_0xd2591['shift']());}catch(_0x484e79){_0xd2591['push'](_0xd2591['shift']());}}}(a100_0x8ef8,0xa1e60));import{getEnv,isProduction}from'../constant/env.js';import{OFFICIAL_ROUTING_PROFILES}from'../generated/official-routing.js';import{DEFAULT_LOVRABET_REGION}from'../constant/region.js';let customApiDomain,customUserDomain,customRuntimeDomain,customSkillDomain,customKbServiceDomain,allowOfficialKbServiceDefault=!![],activeRegion=DEFAULT_LOVRABET_REGION;export function initDomains(_0x3d17dc){const _0x2e7150=a100_0x5151;customApiDomain=_0x3d17dc?.['apiDomain'],customUserDomain=_0x3d17dc?.[_0x2e7150(0x101)],customRuntimeDomain=_0x3d17dc?.[_0x2e7150(0x103)],customSkillDomain=_0x3d17dc?.[_0x2e7150(0x10c)],customKbServiceDomain=_0x3d17dc?.[_0x2e7150(0x102)],allowOfficialKbServiceDefault=_0x3d17dc?.[_0x2e7150(0xfa)]??!![],activeRegion=_0x3d17dc?.['region']??DEFAULT_LOVRABET_REGION;}const getActiveRegionDomains=()=>{const _0x447bcb=a100_0x5151,_0x4ae502=OFFICIAL_ROUTING_PROFILES[activeRegion][_0x447bcb(0x106)];return isProduction(getEnv())?_0x4ae502[_0x447bcb(0x105)]:_0x447bcb(0xfe)in _0x4ae502?_0x4ae502[_0x447bcb(0xfe)]:_0x4ae502[_0x447bcb(0x105)];};export const getUserDomain=()=>customUserDomain||getActiveRegionDomains()['user'];export const getApiDomain=()=>customApiDomain||getActiveRegionDomains()[a100_0x4a3580(0xfc)];export const getRuntimeDomain=()=>customRuntimeDomain||getActiveRegionDomains()[a100_0x4a3580(0x10e)];export const getSkillDomain=()=>customSkillDomain||getActiveRegionDomains()[a100_0x4a3580(0x110)];function a100_0x5151(_0x33242c,_0x21eaa0){_0x33242c=_0x33242c-0xfa;const _0x8ef877=a100_0x8ef8();let _0x515161=_0x8ef877[_0x33242c];return _0x515161;}export const getKbServiceDomain=()=>{const _0x1afe2d=a100_0x4a3580;if(customKbServiceDomain)return customKbServiceDomain;if(!allowOfficialKbServiceDefault)return undefined;const _0x108561=getActiveRegionDomains();return _0x1afe2d(0x10d)in _0x108561?_0x108561[_0x1afe2d(0x10d)]:undefined;};
1
+ const a100_0x4a8e2a=a100_0x4b68;(function(_0x408ece,_0x1e5437){const _0x2c3029=a100_0x4b68,_0x17d1d3=_0x408ece();while(!![]){try{const _0x63f060=-parseInt(_0x2c3029(0xc8))/0x1+parseInt(_0x2c3029(0xc6))/0x2+parseInt(_0x2c3029(0xc7))/0x3+parseInt(_0x2c3029(0xc3))/0x4*(parseInt(_0x2c3029(0xcd))/0x5)+parseInt(_0x2c3029(0xca))/0x6+parseInt(_0x2c3029(0xcc))/0x7*(parseInt(_0x2c3029(0xbd))/0x8)+parseInt(_0x2c3029(0xce))/0x9*(-parseInt(_0x2c3029(0xc2))/0xa);if(_0x63f060===_0x1e5437)break;else _0x17d1d3['push'](_0x17d1d3['shift']());}catch(_0x4f60e3){_0x17d1d3['push'](_0x17d1d3['shift']());}}}(a100_0x35f2,0x464f8));function a100_0x4b68(_0x1b2720,_0x239e31){_0x1b2720=_0x1b2720-0xbc;const _0x35f288=a100_0x35f2();let _0x4b68c1=_0x35f288[_0x1b2720];return _0x4b68c1;}import{getEnv,isProduction}from'../constant/env.js';import{OFFICIAL_ROUTING_PROFILES}from'../generated/official-routing.js';import{DEFAULT_LOVRABET_REGION}from'../constant/region.js';let customApiDomain,customUserDomain,customRuntimeDomain,customSkillDomain,customKbServiceDomain,allowOfficialKbServiceDefault=!![],activeRegion=DEFAULT_LOVRABET_REGION;export function initDomains(_0x3e85e0){const _0x44b3ae=a100_0x4b68;customApiDomain=_0x3e85e0?.[_0x44b3ae(0xd0)],customUserDomain=_0x3e85e0?.[_0x44b3ae(0xc9)],customRuntimeDomain=_0x3e85e0?.['runtimeDomain'],customSkillDomain=_0x3e85e0?.['skillDomain'],customKbServiceDomain=_0x3e85e0?.['kbServiceDomain'],allowOfficialKbServiceDefault=_0x3e85e0?.[_0x44b3ae(0xc4)]??!![],activeRegion=_0x3e85e0?.[_0x44b3ae(0xd1)]??DEFAULT_LOVRABET_REGION;}const getActiveRegionDomains=()=>{const _0x11e0ee=a100_0x4b68,_0x270ddf=OFFICIAL_ROUTING_PROFILES[activeRegion][_0x11e0ee(0xbc)];return isProduction(getEnv())?_0x270ddf[_0x11e0ee(0xcb)]:_0x11e0ee(0xbe)in _0x270ddf?_0x270ddf[_0x11e0ee(0xbe)]:_0x270ddf[_0x11e0ee(0xcb)];};export const getUserDomain=()=>customUserDomain||getActiveRegionDomains()[a100_0x4a8e2a(0xcf)];export const getApiDomain=()=>customApiDomain||getActiveRegionDomains()[a100_0x4a8e2a(0xc1)];function a100_0x35f2(){const _0x335839=['skill','runtime','api','50xNXeet','566576zXjLnS','allowOfficialKbServiceDefault','kbService','877190lqQCxU','1479570ewOLMf','148660VSYdbc','userDomain','949080xOylhD','production','7oWGRuV','20ZgYLzN','3035583UOOjIL','user','apiDomain','region','serviceDomains','3732368vfwCzb','daily'];a100_0x35f2=function(){return _0x335839;};return a100_0x35f2();}export const getRuntimeDomain=()=>customRuntimeDomain||getActiveRegionDomains()[a100_0x4a8e2a(0xc0)];export const getSkillDomain=()=>customSkillDomain||getActiveRegionDomains()[a100_0x4a8e2a(0xbf)];export const getKbServiceDomain=()=>{const _0x421a99=a100_0x4a8e2a;if(customKbServiceDomain)return customKbServiceDomain;if(!allowOfficialKbServiceDefault)return undefined;const _0x5735f2=getActiveRegionDomains();return _0x421a99(0xc5)in _0x5735f2?_0x5735f2[_0x421a99(0xc5)]:undefined;};
@@ -1 +1 @@
1
- const a101_0x3581d1=a101_0x328f;function a101_0x328f(_0x391219,_0x3ad891){_0x391219=_0x391219-0x1e9;const _0xb0dadf=a101_0xb0da();let _0x328fac=_0xb0dadf[_0x391219];return _0x328fac;}(function(_0x557734,_0x4ed8e3){const _0x18ada8=a101_0x328f,_0xfa0a7=_0x557734();while(!![]){try{const _0x22cdb6=-parseInt(_0x18ada8(0x1ed))/0x1+-parseInt(_0x18ada8(0x1f4))/0x2+-parseInt(_0x18ada8(0x1f2))/0x3*(parseInt(_0x18ada8(0x1ef))/0x4)+-parseInt(_0x18ada8(0x1eb))/0x5+parseInt(_0x18ada8(0x1f5))/0x6+parseInt(_0x18ada8(0x1f3))/0x7+parseInt(_0x18ada8(0x1f6))/0x8*(parseInt(_0x18ada8(0x1ee))/0x9);if(_0x22cdb6===_0x4ed8e3)break;else _0xfa0a7['push'](_0xfa0a7['shift']());}catch(_0x31f8e7){_0xfa0a7['push'](_0xfa0a7['shift']());}}}(a101_0xb0da,0x58bc7));import{productEnv}from'../constant/product.js';export const RUNTIME_ENV_VALUES=[a101_0x3581d1(0x1ec),a101_0x3581d1(0x1f1),a101_0x3581d1(0x1ea)];export function normalizeEnv(_0x5622ec){const _0x595026=a101_0x3581d1;return _0x5622ec===_0x595026(0x1e9)?_0x595026(0x1ec):_0x5622ec;}export function isProduction(_0x4af2e8){const _0x5d7000=a101_0x3581d1;return normalizeEnv(_0x4af2e8)===_0x5d7000(0x1ec);}export function isDaily(_0x5d0041){const _0x5b771c=a101_0x3581d1;return normalizeEnv(_0x5d0041)===_0x5b771c(0x1ea);}export function isDev(_0x262f24){const _0x48d25d=a101_0x3581d1,_0xa6c6e7=normalizeEnv(_0x262f24);return _0xa6c6e7==='development'||_0xa6c6e7===_0x48d25d(0x1f0);}let env=normalizeEnv(productEnv('ENV')||'production');export function getEnv(){return env;}function a101_0xb0da(){const _0x8ed5d=['605685iAFTus','production','585291WbvvDv','32517PSljWH','4MoQHCQ','dev','development','336072peqvEc','239582DWAtMh','293738utSGEE','3063222veGXDr','1736ehtZwB','online','daily'];a101_0xb0da=function(){return _0x8ed5d;};return a101_0xb0da();}export function initEnv(_0x2918a9){env=normalizeEnv(_0x2918a9);}
1
+ const a101_0x1a90cd=a101_0x1b0f;(function(_0x227e84,_0x2fafd2){const _0x6da0ed=a101_0x1b0f,_0x575256=_0x227e84();while(!![]){try{const _0x3cf7cb=-parseInt(_0x6da0ed(0x116))/0x1+parseInt(_0x6da0ed(0x115))/0x2+parseInt(_0x6da0ed(0x111))/0x3+parseInt(_0x6da0ed(0x10f))/0x4+parseInt(_0x6da0ed(0x10d))/0x5+-parseInt(_0x6da0ed(0x10c))/0x6+-parseInt(_0x6da0ed(0x117))/0x7;if(_0x3cf7cb===_0x2fafd2)break;else _0x575256['push'](_0x575256['shift']());}catch(_0x3a2349){_0x575256['push'](_0x575256['shift']());}}}(a101_0x25a5,0x23440));import{productEnv}from'../constant/product.js';export const RUNTIME_ENV_VALUES=[a101_0x1a90cd(0x10e),a101_0x1a90cd(0x110),'daily'];function a101_0x25a5(){const _0x345547=['813945obzvaz','production','503828kbPROR','development','676881KEJxnB','online','ENV','daily','481036xwWDfG','91546zkDZRe','2703876gPMKPz','795774BAfHbV'];a101_0x25a5=function(){return _0x345547;};return a101_0x25a5();}export function normalizeEnv(_0x3ebab9){const _0x44afac=a101_0x1a90cd;return _0x3ebab9===_0x44afac(0x112)?_0x44afac(0x10e):_0x3ebab9;}export function isProduction(_0x55a24f){const _0x2f06f1=a101_0x1a90cd;return normalizeEnv(_0x55a24f)===_0x2f06f1(0x10e);}export function isDaily(_0x59d30b){const _0x3b6bcf=a101_0x1a90cd;return normalizeEnv(_0x59d30b)===_0x3b6bcf(0x114);}function a101_0x1b0f(_0x4854b,_0x50c9bb){_0x4854b=_0x4854b-0x10c;const _0x25a575=a101_0x25a5();let _0x1b0f3e=_0x25a575[_0x4854b];return _0x1b0f3e;}export function isDev(_0x99389d){const _0x123304=normalizeEnv(_0x99389d);return _0x123304==='development'||_0x123304==='dev';}let env=normalizeEnv(productEnv(a101_0x1a90cd(0x113))||'production');export function getEnv(){return env;}export function initEnv(_0x20958d){env=normalizeEnv(_0x20958d);}
@@ -1 +1 @@
1
- function a102_0x5e9c(){const _0x4927a8=['21MTEMZH','990081vHrqtp','298148UHCJhX','2370LQhJDB','809979sbsuSA','pretty','1670400Kpokzk','compress','792264ZNWuzV','306125rmlmNr','1500RcJbwG'];a102_0x5e9c=function(){return _0x4927a8;};return a102_0x5e9c();}const a102_0x4e548b=a102_0x50df;function a102_0x50df(_0x331ab8,_0x22fb9c){_0x331ab8=_0x331ab8-0x102;const _0x5e9c4e=a102_0x5e9c();let _0x50df2c=_0x5e9c4e[_0x331ab8];return _0x50df2c;}(function(_0xadaf45,_0x46e63c){const _0x3c9e87=a102_0x50df,_0x580c5a=_0xadaf45();while(!![]){try{const _0x122ebc=parseInt(_0x3c9e87(0x102))/0x1+-parseInt(_0x3c9e87(0x106))/0x2+-parseInt(_0x3c9e87(0x108))/0x3+-parseInt(_0x3c9e87(0x103))/0x4*(parseInt(_0x3c9e87(0x107))/0x5)+parseInt(_0x3c9e87(0x10a))/0x6+parseInt(_0x3c9e87(0x104))/0x7*(parseInt(_0x3c9e87(0x10c))/0x8)+-parseInt(_0x3c9e87(0x105))/0x9;if(_0x122ebc===_0x46e63c)break;else _0x580c5a['push'](_0x580c5a['shift']());}catch(_0x530f52){_0x580c5a['push'](_0x580c5a['shift']());}}}(a102_0x5e9c,0x2aace));export const OUTPUT_FORMAT_VALUES=['json',a102_0x4e548b(0x109),a102_0x4e548b(0x10b)];
1
+ const a102_0x136e9d=a102_0x37cc;function a102_0x37cc(_0x268228,_0x3bd10d){_0x268228=_0x268228-0x75;const _0x1c8be9=a102_0x1c8b();let _0x37cc5d=_0x1c8be9[_0x268228];return _0x37cc5d;}(function(_0x5534f3,_0x24a404){const _0x25ef94=a102_0x37cc,_0x56cded=_0x5534f3();while(!![]){try{const _0x14763f=-parseInt(_0x25ef94(0x7e))/0x1+parseInt(_0x25ef94(0x75))/0x2*(parseInt(_0x25ef94(0x79))/0x3)+-parseInt(_0x25ef94(0x76))/0x4*(-parseInt(_0x25ef94(0x7c))/0x5)+-parseInt(_0x25ef94(0x77))/0x6+-parseInt(_0x25ef94(0x7b))/0x7+-parseInt(_0x25ef94(0x7a))/0x8+parseInt(_0x25ef94(0x78))/0x9;if(_0x14763f===_0x24a404)break;else _0x56cded['push'](_0x56cded['shift']());}catch(_0x3a2d83){_0x56cded['push'](_0x56cded['shift']());}}}(a102_0x1c8b,0xb786f));export const OUTPUT_FORMAT_VALUES=[a102_0x136e9d(0x80),a102_0x136e9d(0x7d),a102_0x136e9d(0x7f)];function a102_0x1c8b(){const _0x5028b3=['7375uobaRg','pretty','353387OYJDmr','compress','json','31300RzLkuQ','1480MZmWlL','6447324YBPEBf','26881749WiWkZJ','9aoeday','1476200xjFdnW','8507576ApjAdi'];a102_0x1c8b=function(){return _0x5028b3;};return a102_0x1c8b();}
@@ -1 +1 @@
1
- function a103_0x597f(_0x348b0a,_0xd7c862){_0x348b0a=_0x348b0a-0xc0;const _0x3aec2b=a103_0x3aec();let _0x597f54=_0x3aec2b[_0x348b0a];return _0x597f54;}const a103_0x2d6b19=a103_0x597f;function a103_0x3aec(){const _0x32bc34=['5825vuZObn','.lovrabet','git@codeup.aliyun.com:yuntoo/open/lovrabet-runtime-cli.git','LOVRABET','1172400vQioFh','26815920oQtLnG','lovrabet','Lovrabet\x20Runtime\x20CLI','487550rAxSKN','5736SEAlWk','https://registry.npmjs.org','Lovrabet\x20User\x20Center','.lovrabet.json','https://g.lovrabet.com','map','8IIhkpA','/user/ak','186oHAVdm','425113lcCvbO','8464779pxBWzX','SKIP_NPX_SKILLS','507EjgseJ','@lovrabet/lovrabet-cli','.lovrabet-runtime.log','envPrefix','legacyEnvPrefixes','lovrabet/lovrabet-cli'];a103_0x3aec=function(){return _0x32bc34;};return a103_0x3aec();}(function(_0x184e73,_0x52972d){const _0x507377=a103_0x597f,_0x2d9bbc=_0x184e73();while(!![]){try{const _0x4ab6d7=parseInt(_0x507377(0xca))/0x1+parseInt(_0x507377(0xc9))/0x2*(-parseInt(_0x507377(0xcd))/0x3)+-parseInt(_0x507377(0xd7))/0x4+parseInt(_0x507377(0xd3))/0x5*(-parseInt(_0x507377(0xc1))/0x6)+-parseInt(_0x507377(0xc0))/0x7+-parseInt(_0x507377(0xc7))/0x8*(parseInt(_0x507377(0xcb))/0x9)+parseInt(_0x507377(0xd8))/0xa;if(_0x4ab6d7===_0x52972d)break;else _0x2d9bbc['push'](_0x2d9bbc['shift']());}catch(_0x46ab5e){_0x2d9bbc['push'](_0x2d9bbc['shift']());}}}(a103_0x3aec,0xa48af));export const PRODUCT_CONFIG={'cliBinName':a103_0x2d6b19(0xd9),'cliDisplayName':a103_0x2d6b19(0xda),'npmPackageName':a103_0x2d6b19(0xce),'skillSource':a103_0x2d6b19(0xd2),'internalSkillSource':a103_0x2d6b19(0xd5),'globalSkillName':a103_0x2d6b19(0xd9),'npmRegistryBaseUrl':a103_0x2d6b19(0xc2),'cliCdnBaseUrl':a103_0x2d6b19(0xc5),'envPrefix':a103_0x2d6b19(0xd6),'legacyEnvPrefixes':['RABETBASE'],'configFileNames':[a103_0x2d6b19(0xc4)],'newConfigFileName':'.lovrabet.json','homeDirName':a103_0x2d6b19(0xd4),'logFileName':a103_0x2d6b19(0xcf),'invokeSource':'cli:lovrabet-runtime','userCenterDisplayName':a103_0x2d6b19(0xc3),'skipNpxSkillsEnvSuffix':a103_0x2d6b19(0xcc),'accessKeyCreatePath':a103_0x2d6b19(0xc8)};export function productEnvName(_0x3584ed){const _0x12d328=a103_0x2d6b19;return PRODUCT_CONFIG[_0x12d328(0xd0)]+'_'+_0x3584ed;}export function productEnvNames(_0x20f145){const _0x504d8c=a103_0x2d6b19;return[productEnvName(_0x20f145),...PRODUCT_CONFIG[_0x504d8c(0xd1)][_0x504d8c(0xc6)](_0x355c33=>_0x355c33+'_'+_0x20f145)];}export function productEnv(_0x35ded2){for(const _0xe6c777 of productEnvNames(_0x35ded2)){const _0x4746bd=process.env[_0xe6c777];if(_0x4746bd!==undefined)return _0x4746bd;}return undefined;}
1
+ const a103_0x440fc9=a103_0x24f5;(function(_0x5ae220,_0x1c3e22){const _0x1f9a79=a103_0x24f5,_0x5b966b=_0x5ae220();while(!![]){try{const _0x428b57=parseInt(_0x1f9a79(0x145))/0x1*(-parseInt(_0x1f9a79(0x143))/0x2)+parseInt(_0x1f9a79(0x14e))/0x3*(-parseInt(_0x1f9a79(0x147))/0x4)+-parseInt(_0x1f9a79(0x14c))/0x5+-parseInt(_0x1f9a79(0x153))/0x6+parseInt(_0x1f9a79(0x151))/0x7+-parseInt(_0x1f9a79(0x154))/0x8+parseInt(_0x1f9a79(0x149))/0x9;if(_0x428b57===_0x1c3e22)break;else _0x5b966b['push'](_0x5b966b['shift']());}catch(_0x4ccaea){_0x5b966b['push'](_0x5b966b['shift']());}}}(a103_0x5d3c,0x76587));export const PRODUCT_CONFIG={'cliBinName':a103_0x440fc9(0x158),'cliDisplayName':a103_0x440fc9(0x157),'npmPackageName':a103_0x440fc9(0x14f),'skillSource':a103_0x440fc9(0x156),'internalSkillSource':a103_0x440fc9(0x159),'globalSkillName':a103_0x440fc9(0x158),'npmRegistryBaseUrl':a103_0x440fc9(0x146),'cliCdnBaseUrl':a103_0x440fc9(0x14b),'envPrefix':'LOVRABET','legacyEnvPrefixes':[a103_0x440fc9(0x155)],'configFileNames':[a103_0x440fc9(0x14d)],'newConfigFileName':a103_0x440fc9(0x14d),'homeDirName':a103_0x440fc9(0x148),'logFileName':'.lovrabet-runtime.log','invokeSource':'cli:lovrabet-runtime','userCenterDisplayName':a103_0x440fc9(0x144),'skipNpxSkillsEnvSuffix':a103_0x440fc9(0x14a),'accessKeyCreatePath':a103_0x440fc9(0x152)};export function productEnvName(_0x46ceda){return PRODUCT_CONFIG['envPrefix']+'_'+_0x46ceda;}export function productEnvNames(_0x3d2fde){const _0x1ff3da=a103_0x440fc9;return[productEnvName(_0x3d2fde),...PRODUCT_CONFIG['legacyEnvPrefixes'][_0x1ff3da(0x150)](_0x17fb25=>_0x17fb25+'_'+_0x3d2fde)];}function a103_0x24f5(_0x44b017,_0x5b7344){_0x44b017=_0x44b017-0x143;const _0x5d3c7b=a103_0x5d3c();let _0x24f515=_0x5d3c7b[_0x44b017];return _0x24f515;}export function productEnv(_0x597cca){for(const _0x266c90 of productEnvNames(_0x597cca)){const _0x464f6b=process.env[_0x266c90];if(_0x464f6b!==undefined)return _0x464f6b;}return undefined;}function a103_0x5d3c(){const _0xfe6b48=['19rFWOPP','https://registry.npmjs.org','3724lmNyTH','.lovrabet','19399716TxIzqo','SKIP_NPX_SKILLS','https://g.lovrabet.com','3739090zKKnrP','.lovrabet.json','804VGXoQW','@lovrabet/lovrabet-cli','map','4411624jbBAke','/user/ak','22284qUBHzo','5823064iiAlbP','RABETBASE','lovrabet/lovrabet-cli','Lovrabet\x20Runtime\x20CLI','lovrabet','git@codeup.aliyun.com:yuntoo/open/lovrabet-runtime-cli.git','60220wnCbbB','Lovrabet\x20User\x20Center'];a103_0x5d3c=function(){return _0xfe6b48;};return a103_0x5d3c();}
@@ -1 +1 @@
1
- (function(_0x2543d4,_0x423ce9){const _0x4d804=a104_0x4993,_0x2651fd=_0x2543d4();while(!![]){try{const _0x180c4f=-parseInt(_0x4d804(0x174))/0x1+parseInt(_0x4d804(0x164))/0x2*(-parseInt(_0x4d804(0x16a))/0x3)+parseInt(_0x4d804(0x16d))/0x4+parseInt(_0x4d804(0x167))/0x5+-parseInt(_0x4d804(0x16e))/0x6*(parseInt(_0x4d804(0x173))/0x7)+parseInt(_0x4d804(0x172))/0x8+parseInt(_0x4d804(0x166))/0x9*(parseInt(_0x4d804(0x171))/0xa);if(_0x180c4f===_0x423ce9)break;else _0x2651fd['push'](_0x2651fd['shift']());}catch(_0x2738a5){_0x2651fd['push'](_0x2651fd['shift']());}}}(a104_0x34ea,0x357ef));function a104_0x34ea(){const _0x30e95c=['2238zzALxv','includes','validation','1395748ELSbRA','33522FkUTLO','.\x20Run\x20`lovrabet\x20config\x20init`\x20to\x20repair\x20the\x20global\x20configuration.','Region\x20\x22','15740XlNjVZ','3231288xGQKVV','315IGpOpo','324561uOPPOK','740BYxyZG','\x22\x20is\x20not\x20currently\x20available.','333lHOaBo','1300145FmXlwW','string','Invalid\x20region\x20value:\x20expected\x20a\x20string,\x20received\x20'];a104_0x34ea=function(){return _0x30e95c;};return a104_0x34ea();}function a104_0x4993(_0xe94643,_0x1281e3){_0xe94643=_0xe94643-0x164;const _0x34ea57=a104_0x34ea();let _0x4993b6=_0x34ea57[_0xe94643];return _0x4993b6;}import{DEFAULT_REGION,ENABLED_REGION_VALUES,REGION_ALIASES,REGION_VALUES}from'../generated/official-routing.js';import{CliErrors}from'../errors.js';export const LOVRABET_REGION_VALUES=REGION_VALUES;export const ENABLED_LOVRABET_REGION_VALUES=ENABLED_REGION_VALUES;export const DEFAULT_LOVRABET_REGION=DEFAULT_REGION;export function isLovrabetRegion(_0x295f11){const _0x479c13=a104_0x4993;return typeof _0x295f11===_0x479c13(0x168)&&LOVRABET_REGION_VALUES[_0x479c13(0x16b)](_0x295f11);}export function isEnabledLovrabetRegion(_0x196363){const _0x21f639=a104_0x4993;return typeof _0x196363===_0x21f639(0x168)&&ENABLED_LOVRABET_REGION_VALUES[_0x21f639(0x16b)](_0x196363);}export function normalizeLovrabetRegion(_0x21ef55){const _0x1b4935=a104_0x4993;if(_0x21ef55===undefined||_0x21ef55===null||_0x21ef55==='')return DEFAULT_LOVRABET_REGION;if(typeof _0x21ef55!==_0x1b4935(0x168))throw CliErrors['validation'](_0x1b4935(0x169)+typeof _0x21ef55+'.','Run\x20`lovrabet\x20config\x20init`\x20to\x20restore\x20the\x20global\x20country/region\x20configuration.');const _0x3111df=REGION_ALIASES[_0x21ef55]??_0x21ef55;if(isEnabledLovrabetRegion(_0x3111df))return _0x3111df;throw CliErrors[_0x1b4935(0x16c)](_0x1b4935(0x170)+_0x21ef55+_0x1b4935(0x165),'Available\x20regions:\x20'+ENABLED_LOVRABET_REGION_VALUES['join'](',\x20')+_0x1b4935(0x16f));}
1
+ (function(_0x1cdb59,_0xaa0896){const _0x46d563=a104_0x15fa,_0x286791=_0x1cdb59();while(!![]){try{const _0x4f449c=-parseInt(_0x46d563(0x187))/0x1*(-parseInt(_0x46d563(0x179))/0x2)+-parseInt(_0x46d563(0x17a))/0x3+parseInt(_0x46d563(0x182))/0x4+parseInt(_0x46d563(0x184))/0x5*(parseInt(_0x46d563(0x17c))/0x6)+parseInt(_0x46d563(0x17d))/0x7+-parseInt(_0x46d563(0x17b))/0x8*(parseInt(_0x46d563(0x180))/0x9)+parseInt(_0x46d563(0x176))/0xa;if(_0x4f449c===_0xaa0896)break;else _0x286791['push'](_0x286791['shift']());}catch(_0x448117){_0x286791['push'](_0x286791['shift']());}}}(a104_0x147f,0xaae30));import{DEFAULT_REGION,ENABLED_REGION_VALUES,REGION_ALIASES,REGION_VALUES}from'../generated/official-routing.js';import{CliErrors}from'../errors.js';export const LOVRABET_REGION_VALUES=REGION_VALUES;function a104_0x15fa(_0x33c75f,_0x2d4e11){_0x33c75f=_0x33c75f-0x176;const _0x147f49=a104_0x147f();let _0x15fa06=_0x147f49[_0x33c75f];return _0x15fa06;}export const ENABLED_LOVRABET_REGION_VALUES=ENABLED_REGION_VALUES;export const DEFAULT_LOVRABET_REGION=DEFAULT_REGION;export function isLovrabetRegion(_0x4f8b62){const _0x5530a1=a104_0x15fa;return typeof _0x4f8b62==='string'&&LOVRABET_REGION_VALUES[_0x5530a1(0x17f)](_0x4f8b62);}export function isEnabledLovrabetRegion(_0x19b016){const _0x1d7ab5=a104_0x15fa;return typeof _0x19b016===_0x1d7ab5(0x177)&&ENABLED_LOVRABET_REGION_VALUES[_0x1d7ab5(0x17f)](_0x19b016);}export function normalizeLovrabetRegion(_0x5587b2){const _0x509f17=a104_0x15fa;if(_0x5587b2===undefined||_0x5587b2===null||_0x5587b2==='')return DEFAULT_LOVRABET_REGION;if(typeof _0x5587b2!==_0x509f17(0x177))throw CliErrors[_0x509f17(0x17e)]('Invalid\x20region\x20value:\x20expected\x20a\x20string,\x20received\x20'+typeof _0x5587b2+'.',_0x509f17(0x185));const _0x2b11ac=REGION_ALIASES[_0x5587b2]??_0x5587b2;if(isEnabledLovrabetRegion(_0x2b11ac))return _0x2b11ac;throw CliErrors[_0x509f17(0x17e)](_0x509f17(0x181)+_0x5587b2+'\x22\x20is\x20not\x20currently\x20available.',_0x509f17(0x186)+ENABLED_LOVRABET_REGION_VALUES[_0x509f17(0x178)](',\x20')+_0x509f17(0x183));}function a104_0x147f(){const _0x3cbf8d=['.\x20Run\x20`lovrabet\x20config\x20init`\x20to\x20repair\x20the\x20global\x20configuration.','10bERvCK','Run\x20`lovrabet\x20config\x20init`\x20to\x20restore\x20the\x20global\x20country/region\x20configuration.','Available\x20regions:\x20','1fznlXf','2532040ygmDZf','string','join','1756784cgEsAq','3445107luKhCi','10904vsCYth','1591296AUiayt','3185224BeSEQw','validation','includes','7038xlBKEO','Region\x20\x22','3188508AgvJzs'];a104_0x147f=function(){return _0x3cbf8d;};return a104_0x147f();}
@@ -1 +1 @@
1
- function a105_0x18a0(_0x3d8eca,_0xebcf9e){_0x3d8eca=_0x3d8eca-0xcc;const _0x57895f=a105_0x5789();let _0x18a035=_0x57895f[_0x3d8eca];return _0x18a035;}function a105_0x5789(){const _0xdf5900=['162jeMOUR','4019455dioXCG','2599374jTvWYx','3533xuofcu','high-risk-write','14oYlMPf','3548yVOVti','write','1862632KhkbrC','7PNbJOd','439975XfvXcE','1263bFbcFL','101350qIBNwx'];a105_0x5789=function(){return _0xdf5900;};return a105_0x5789();}const a105_0x582e47=a105_0x18a0;(function(_0x5014f4,_0x4bc2bd){const _0x43bcfe=a105_0x18a0,_0x4fadc4=_0x5014f4();while(!![]){try{const _0x102457=-parseInt(_0x43bcfe(0xd2))/0x1*(-parseInt(_0x43bcfe(0xd4))/0x2)+parseInt(_0x43bcfe(0xcd))/0x3*(-parseInt(_0x43bcfe(0xd5))/0x4)+parseInt(_0x43bcfe(0xcc))/0x5+parseInt(_0x43bcfe(0xd1))/0x6*(parseInt(_0x43bcfe(0xd8))/0x7)+parseInt(_0x43bcfe(0xd7))/0x8+parseInt(_0x43bcfe(0xcf))/0x9*(parseInt(_0x43bcfe(0xce))/0xa)+-parseInt(_0x43bcfe(0xd0))/0xb;if(_0x102457===_0x4bc2bd)break;else _0x4fadc4['push'](_0x4fadc4['shift']());}catch(_0x3f9563){_0x4fadc4['push'](_0x4fadc4['shift']());}}}(a105_0x5789,0x364ae));export const RISK_LEVEL_VALUES=['read',a105_0x582e47(0xd6),a105_0x582e47(0xd3)];
1
+ function a105_0x3f41(_0x1a64fc,_0x51d7a5){_0x1a64fc=_0x1a64fc-0x192;const _0x19a564=a105_0x19a5();let _0x3f41ff=_0x19a564[_0x1a64fc];return _0x3f41ff;}const a105_0x3c15ca=a105_0x3f41;(function(_0x202a4b,_0xf5421f){const _0x4eae53=a105_0x3f41,_0x1be542=_0x202a4b();while(!![]){try{const _0x43cac0=-parseInt(_0x4eae53(0x194))/0x1*(parseInt(_0x4eae53(0x192))/0x2)+-parseInt(_0x4eae53(0x19b))/0x3*(parseInt(_0x4eae53(0x19e))/0x4)+-parseInt(_0x4eae53(0x19c))/0x5+-parseInt(_0x4eae53(0x199))/0x6+parseInt(_0x4eae53(0x19a))/0x7*(parseInt(_0x4eae53(0x196))/0x8)+-parseInt(_0x4eae53(0x197))/0x9+parseInt(_0x4eae53(0x193))/0xa;if(_0x43cac0===_0xf5421f)break;else _0x1be542['push'](_0x1be542['shift']());}catch(_0x3b7629){_0x1be542['push'](_0x1be542['shift']());}}}(a105_0x19a5,0x1c2ca));function a105_0x19a5(){const _0x1455a5=['34376YLjshm','639540OQfIVz','write','548856TBCXPI','322dZJWQv','64914RAkPUs','537860KWRmXj','read','4QhilEX','124uivzYC','3365860YMRDaq','2050ndvloy','high-risk-write'];a105_0x19a5=function(){return _0x1455a5;};return a105_0x19a5();}export const RISK_LEVEL_VALUES=[a105_0x3c15ca(0x19d),a105_0x3c15ca(0x198),a105_0x3c15ca(0x195)];
@@ -1 +1 @@
1
- (function(_0x24da3f,_0x272268){const _0x39f3cf=a106_0x1afa,_0x383db1=_0x24da3f();while(!![]){try{const _0x2ee4b8=parseInt(_0x39f3cf(0xeb))/0x1*(-parseInt(_0x39f3cf(0xe5))/0x2)+-parseInt(_0x39f3cf(0xe9))/0x3+parseInt(_0x39f3cf(0xee))/0x4*(-parseInt(_0x39f3cf(0xef))/0x5)+parseInt(_0x39f3cf(0xe1))/0x6*(parseInt(_0x39f3cf(0xe4))/0x7)+parseInt(_0x39f3cf(0xe3))/0x8*(-parseInt(_0x39f3cf(0xe2))/0x9)+parseInt(_0x39f3cf(0xe7))/0xa*(parseInt(_0x39f3cf(0xe8))/0xb)+parseInt(_0x39f3cf(0xed))/0xc;if(_0x2ee4b8===_0x272268)break;else _0x383db1['push'](_0x383db1['shift']());}catch(_0x5cdd95){_0x383db1['push'](_0x383db1['shift']());}}}(a106_0x2d4d,0xb8644));import{PRODUCT_CONFIG}from'../constant/product.js';function a106_0x1afa(_0x65f61e,_0x3ced90){_0x65f61e=_0x65f61e-0xe1;const _0x2d4d9c=a106_0x2d4d();let _0x1afa78=_0x2d4d9c[_0x65f61e];return _0x1afa78;}import{OFFICIAL_ROUTING_PROFILES}from'../generated/official-routing.js';function a106_0x2d4d(){const _0x1f50e2=['5751535coBxqZ','1252962DuYfcD','9RHjFfC','1103752ptaKOY','7PztyMU','2LiIYfe','accessKeyCreatePath','78700YjpcWd','649CwWhju','1475061HHRPqF','user','1089351iwJCBF','production','35417100ySoeSt','4JcWzGM'];a106_0x2d4d=function(){return _0x1f50e2;};return a106_0x2d4d();}import{DEFAULT_LOVRABET_REGION}from'../constant/region.js';export function getUserAccessKeyCreateUrl(_0x54923a=DEFAULT_LOVRABET_REGION){const _0x25920=a106_0x1afa,_0x79b12d=OFFICIAL_ROUTING_PROFILES[_0x54923a]['serviceDomains'][_0x25920(0xec)][_0x25920(0xea)];return''+_0x79b12d+PRODUCT_CONFIG[_0x25920(0xe6)];}export const USER_ACCESS_KEY_CREATE_URL=getUserAccessKeyCreateUrl();
1
+ function a106_0x1634(){const _0x4e2265=['2316396uuBolb','2279522oUzjAO','661528VGiwYr','1875864QFWivo','9104RHpUHZ','production','82DidoEy','10imlUpL','5ihtKRw','accessKeyCreatePath','10519029CIVSdK','1436130YSquqw','user'];a106_0x1634=function(){return _0x4e2265;};return a106_0x1634();}function a106_0x5549(_0x233bb8,_0x2a7f4f){_0x233bb8=_0x233bb8-0xae;const _0x1634d8=a106_0x1634();let _0x55494b=_0x1634d8[_0x233bb8];return _0x55494b;}(function(_0x3499ce,_0x3cf9c2){const _0x1b3ce5=a106_0x5549,_0x246d63=_0x3499ce();while(!![]){try{const _0x240193=-parseInt(_0x1b3ce5(0xb7))/0x1*(parseInt(_0x1b3ce5(0xb5))/0x2)+-parseInt(_0x1b3ce5(0xaf))/0x3+-parseInt(_0x1b3ce5(0xb3))/0x4+-parseInt(_0x1b3ce5(0xb9))/0x5*(-parseInt(_0x1b3ce5(0xb1))/0x6)+-parseInt(_0x1b3ce5(0xb2))/0x7+parseInt(_0x1b3ce5(0xb4))/0x8+parseInt(_0x1b3ce5(0xae))/0x9*(parseInt(_0x1b3ce5(0xb8))/0xa);if(_0x240193===_0x3cf9c2)break;else _0x246d63['push'](_0x246d63['shift']());}catch(_0x2efa58){_0x246d63['push'](_0x246d63['shift']());}}}(a106_0x1634,0x6cf78));import{PRODUCT_CONFIG}from'../constant/product.js';import{OFFICIAL_ROUTING_PROFILES}from'../generated/official-routing.js';import{DEFAULT_LOVRABET_REGION}from'../constant/region.js';export function getUserAccessKeyCreateUrl(_0x3833c3=DEFAULT_LOVRABET_REGION){const _0x5b3103=a106_0x5549,_0x145730=OFFICIAL_ROUTING_PROFILES[_0x3833c3]['serviceDomains'][_0x5b3103(0xb6)][_0x5b3103(0xb0)];return''+_0x145730+PRODUCT_CONFIG[_0x5b3103(0xba)];}export const USER_ACCESS_KEY_CREATE_URL=getUserAccessKeyCreateUrl();
package/lib/context.js CHANGED
@@ -1 +1 @@
1
- function a107_0x36f6(_0x2e153c,_0x40c848){_0x2e153c=_0x2e153c-0x11e;const _0x17b1ac=a107_0x17b1();let _0x36f6e3=_0x17b1ac[_0x2e153c];return _0x36f6e3;}const a107_0x4bd6e5=a107_0x36f6;(function(_0x375627,_0x1d0c3c){const _0xbd3bdc=a107_0x36f6,_0x24202c=_0x375627();while(!![]){try{const _0x28361c=-parseInt(_0xbd3bdc(0x126))/0x1*(parseInt(_0xbd3bdc(0x11f))/0x2)+-parseInt(_0xbd3bdc(0x142))/0x3*(-parseInt(_0xbd3bdc(0x163))/0x4)+parseInt(_0xbd3bdc(0x132))/0x5+-parseInt(_0xbd3bdc(0x158))/0x6+parseInt(_0xbd3bdc(0x122))/0x7*(parseInt(_0xbd3bdc(0x159))/0x8)+parseInt(_0xbd3bdc(0x13a))/0x9*(-parseInt(_0xbd3bdc(0x12d))/0xa)+parseInt(_0xbd3bdc(0x139))/0xb*(parseInt(_0xbd3bdc(0x153))/0xc);if(_0x28361c===_0x1d0c3c)break;else _0x24202c['push'](_0x24202c['shift']());}catch(_0x473024){_0x24202c['push'](_0x24202c['shift']());}}}(a107_0x17b1,0x576d1));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{redactCommandArgv}from'./utils/redaction.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';import{normalizeLovrabetRegion}from'./constant/region.js';import{resolveEnterpriseRoutingConfig}from'./config/domain-config.js';export{AUTH_MODE,isAuthMode}from'./constant/auth-mode.js';const CONFIG_NAMES=PRODUCT_CONFIG['configFileNames'];export const NEW_CONFIG_NAME=PRODUCT_CONFIG[a107_0x4bd6e5(0x14a)];function resolveConfigPath(_0x33a563){for(const _0x2c524a of CONFIG_NAMES){const _0x2aa29f=resolve(_0x33a563,_0x2c524a);if(existsSync(_0x2aa29f))return _0x2aa29f;}return undefined;}export function resolveWriteConfigPath(_0x46ef5f){const _0x3e057e=a107_0x4bd6e5,_0x3f91e0=_0x46ef5f===_0x3e057e(0x170)?process['cwd']():homedir(),_0x115519=resolveConfigPath(_0x3f91e0);return _0x115519??resolve(_0x3f91e0,NEW_CONFIG_NAME);}function a107_0x17b1(){const _0x4fe553=['trim','defaultApp','development','165FuBoZP','333KIkRGU','global','platformDomain','skillDomain','format','call','slice','true','1011963GELtAn','isTTY','object','kbServiceDomain','stringify','top-level','runtimeDomain','EPERM','newConfigFileName','stdin','kbDomain','region','app','.tmp','appcode','riskLevel','inherit','283524tlXuFp','online','PAGE_SIZE','EACCES','ACCESS_KEY','2274276wekArP','3324592ShkdIq','parse','locale','routing','nativeToolAvailable','raw','setRawCommand','utf8','host','VERBOSE','8PDUjFU','./constant/env.js','join','accessKey','nonInteractive','missing','FORMAT','projectConfig','setRawMode','stdout','setLogPath','daily','production','project','cache','high-risk-write','46oQzCiU','cwd','globalConfig','7dowQcB','argv','hasOwnProperty','authRequired','24205YlCxLW','./constant/domain.js','skillHubDomain','message','string','agentDomain','values','150970OnciPA','apps','isRaw','userDomain','some','2039130eaLtTv','explicit','env','code'];a107_0x17b1=function(){return _0x4fe553;};return a107_0x17b1();}export function readConfigFile(_0x58d71f){const _0xe234de=a107_0x4bd6e5;try{if(existsSync(_0x58d71f)){const _0x42de0e=readFileSync(_0x58d71f,{'encoding':_0xe234de(0x160)});if(_0x42de0e){const _0x187f8e=JSON[_0xe234de(0x15a)](_0x42de0e);return migrateOnlineEnv(_0x58d71f,_0x187f8e),_0x187f8e;}}}catch{}return{};}function migrateOnlineEnv(_0x174448,_0x1eca95){const _0x39198c=a107_0x4bd6e5;let _0x1f3b52=![];_0x1eca95['env']===_0x39198c(0x154)&&(_0x1eca95[_0x39198c(0x134)]=_0x39198c(0x16f),_0x1f3b52=!![]);if(_0x1eca95[_0x39198c(0x12e)]&&typeof _0x1eca95[_0x39198c(0x12e)]===_0x39198c(0x144))for(const _0x164fe2 of Object[_0x39198c(0x12c)](_0x1eca95[_0x39198c(0x12e)])){_0x164fe2&&_0x164fe2[_0x39198c(0x134)]==='online'&&(_0x164fe2['env']=_0x39198c(0x16f),_0x1f3b52=!![]);}if(_0x1f3b52)try{writeConfigFile(_0x174448,_0x1eca95);}catch{}}export function writeConfigFile(_0x3d94fc,_0xbd6bad){const _0x2845e0=a107_0x4bd6e5,_0x45b1b6=dirname(_0x3d94fc);!existsSync(_0x45b1b6)&&mkdirSync(_0x45b1b6,{'recursive':!![]});const _0x2f8abc=_0x3d94fc+_0x2845e0(0x14f);try{writeFileSync(_0x2f8abc,JSON[_0x2845e0(0x146)](_0xbd6bad,null,0x2)+'\x0a',{'encoding':'utf8','mode':0x180});try{renameSync(_0x2f8abc,_0x3d94fc);}catch(_0x2eace1){if(_0x2eace1['code']===_0x2845e0(0x149)||_0x2eace1[_0x2845e0(0x135)]==='EXDEV'||_0x2eace1['code']===_0x2845e0(0x156)){writeFileSync(_0x3d94fc,JSON['stringify'](_0xbd6bad,null,0x2)+'\x0a',{'encoding':_0x2845e0(0x160)});try{unlinkSync(_0x2f8abc);}catch{}}else throw _0x2eace1;}}catch(_0x51370f){try{unlinkSync(_0x2f8abc);}catch{}throw _0x51370f;}}export function isNonInteractiveMode(_0x9e0608){const _0x86bd79=a107_0x4bd6e5;return!!(_0x9e0608[_0x86bd79(0x167)]||_0x9e0608['ci']||productEnvNames('CI')[_0x86bd79(0x131)](_0x591bff=>process.env[_0x591bff]===_0x86bd79(0x141))||process.env.CI===_0x86bd79(0x141)||!process[_0x86bd79(0x16c)][_0x86bd79(0x143)]||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x32e4b6=a107_0x4bd6e5;if(!process['stdin'][_0x32e4b6(0x143)])return![];try{const _0x3b28f4=process['stdin'][_0x32e4b6(0x12f)];return process['stdin'][_0x32e4b6(0x16b)](!![]),process[_0x32e4b6(0x14b)]['setRawMode'](_0x3b28f4??![]),!![];}catch{return![];}}export async function createContext(_0x3192e7){const _0x31a003=a107_0x4bd6e5,_0x374acf=readRawConfig(),_0x107fbb=buildConfig(_0x374acf,_0x3192e7);await initGlobalEnvironment(_0x107fbb);const {getUserDomain:_0x5cd64d,getApiDomain:_0x1f3822}=await import('./constant/domain.js'),_0x226c86={'apiDomain':_0x1f3822(),'userDomain':_0x5cd64d()},_0x5b0f28=await buildAuth(_0x107fbb);logger[_0x31a003(0x16d)](process[_0x31a003(0x120)]());const _0x2394d7=(CLI_BIN_NAME+'\x20'+redactCommandArgv(process[_0x31a003(0x123)][_0x31a003(0x140)](0x2))[_0x31a003(0x165)]('\x20'))[_0x31a003(0x136)]();logger[_0x31a003(0x15f)](_0x2394d7);const _0x505b63=isNonInteractiveMode(_0x3192e7);return{'config':_0x107fbb,'auth':_0x5b0f28,'logger':logger,'env':_0x226c86,'nonInteractive':_0x505b63};}export function buildConfigFromFlags(_0x3ff333){return buildConfig(readRawConfig(),_0x3ff333);}export function getLocalAppAliases(_0x3dad71){const _0x8395f6=a107_0x4bd6e5;return _0x3dad71[_0x8395f6(0x12e)]&&typeof _0x3dad71['apps']==='object'?_0x3dad71['apps']:{};}export function resolveLocalAppAliasCode(_0x56fcd0,_0xdfd409){const _0x2ea414=a107_0x4bd6e5;if(!_0xdfd409)return undefined;const _0x4ed1da=getLocalAppAliases(_0x56fcd0)[_0xdfd409],_0x421fe5=_0x4ed1da?.[_0x2ea414(0x150)];return typeof _0x421fe5==='string'&&_0x421fe5[_0x2ea414(0x136)]()?_0x421fe5[_0x2ea414(0x136)]():undefined;}export function readAppCodeFromConfig(){const _0x5c4109=a107_0x4bd6e5,_0x3da7df=readRawConfig(),_0x2edd62=_0x3da7df['appcode']??_0x3da7df[_0x5c4109(0x14e)];if(typeof _0x2edd62==='string'&&_0x2edd62['trim']())return _0x2edd62[_0x5c4109(0x136)]();const _0x8fde26=resolveLocalAppAliasCode(_0x3da7df,typeof _0x3da7df[_0x5c4109(0x137)]===_0x5c4109(0x12a)?_0x3da7df[_0x5c4109(0x137)]:undefined);if(_0x8fde26)return _0x8fde26;const _0x4bfba1=normalizeEnv(String(_0x3da7df['env']||_0x5c4109(0x16f))),_0x515269=isDaily(_0x4bfba1)?'daily':isDev(_0x4bfba1)?_0x5c4109(0x138):_0x5c4109(0x16f),_0x5a4843=resolveCachedAppCode(typeof _0x3da7df['defaultApp']===_0x5c4109(0x12a)?_0x3da7df[_0x5c4109(0x137)]:undefined,_0x515269,typeof _0x3da7df[_0x5c4109(0x166)]==='string'?_0x3da7df['accessKey']:undefined);if(_0x5a4843)return _0x5a4843;const _0x4bb755=Object[_0x5c4109(0x12c)](getLocalAppAliases(_0x3da7df))['find'](_0x2c8b55=>_0x2c8b55?.['appcode']);return typeof _0x4bb755?.['appcode']===_0x5c4109(0x12a)&&_0x4bb755[_0x5c4109(0x150)][_0x5c4109(0x136)]()?_0x4bb755['appcode'][_0x5c4109(0x136)]():undefined;}export function readScopedConfig(_0x495f38){const _0x1ae01d=a107_0x4bd6e5,_0x2fde61=_0x495f38[_0x1ae01d(0x13b)]?_0x1ae01d(0x13b):_0x1ae01d(0x170);return readConfigFile(resolveWriteConfigPath(_0x2fde61));}export function writeScopedConfig(_0x5c65f0,_0xb4c5c7){const _0x1af4da=a107_0x4bd6e5,_0x3fe3da=_0xb4c5c7['global']?_0x1af4da(0x13b):_0x1af4da(0x170);writeConfigFile(resolveWriteConfigPath(_0x3fe3da),_0x5c65f0);}export async function initGlobalEnvironment(_0x1c386b){const _0x26ce29=a107_0x4bd6e5,{initEnv:_0x4c1537}=await import(_0x26ce29(0x164));_0x4c1537(_0x1c386b['env']);const {initDomains:_0x376fb5}=await import(_0x26ce29(0x127)),_0x77fc20=resolveEnterpriseRoutingConfig(_0x1c386b['raw'][_0x26ce29(0x15c)]),_0x240708=['apiDomain',_0x26ce29(0x161),_0x26ce29(0x130),_0x26ce29(0x148),_0x26ce29(0x13d),_0x26ce29(0x128),'agentDomain',_0x26ce29(0x13c),_0x26ce29(0x14c),'kbServiceDomain'],_0x463c10=_0x77fc20!==undefined||_0x240708['some'](_0x19a8cc=>Object['prototype'][_0x26ce29(0x124)][_0x26ce29(0x13f)](_0x1c386b['raw'],_0x19a8cc));_0x376fb5({'apiDomain':_0x77fc20?_0x77fc20['apiDomain']:_0x1c386b[_0x26ce29(0x15e)]['apiDomain']||_0x1c386b[_0x26ce29(0x15e)][_0x26ce29(0x161)]||undefined,'userDomain':_0x77fc20?_0x77fc20[_0x26ce29(0x130)]:_0x1c386b['raw'][_0x26ce29(0x130)]||undefined,'runtimeDomain':_0x77fc20?_0x77fc20[_0x26ce29(0x148)]:_0x1c386b['raw'][_0x26ce29(0x148)]||undefined,'skillDomain':_0x77fc20?_0x77fc20[_0x26ce29(0x13d)]:_0x1c386b[_0x26ce29(0x15e)]['skillDomain']||_0x1c386b[_0x26ce29(0x15e)][_0x26ce29(0x128)]||_0x1c386b[_0x26ce29(0x15e)][_0x26ce29(0x12b)]||_0x1c386b[_0x26ce29(0x15e)][_0x26ce29(0x13c)]||undefined,'kbServiceDomain':_0x77fc20?_0x77fc20['kbServiceDomain']:typeof _0x1c386b[_0x26ce29(0x15e)][_0x26ce29(0x145)]===_0x26ce29(0x12a)&&_0x1c386b[_0x26ce29(0x15e)][_0x26ce29(0x145)][_0x26ce29(0x136)]()?_0x1c386b[_0x26ce29(0x15e)][_0x26ce29(0x145)]:undefined,'allowOfficialKbServiceDefault':!_0x463c10,'region':normalizeLovrabetRegion(_0x1c386b[_0x26ce29(0x15e)][_0x26ce29(0x14d)])});}export function getProjectConfigPath(){const _0x58c950=a107_0x4bd6e5;return resolveConfigPath(process[_0x58c950(0x120)]());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function inspectCliConfigJsonFile(_0x3f9644){const _0x1df530=a107_0x4bd6e5;if(!existsSync(_0x3f9644))return{'status':_0x1df530(0x168)};try{const _0x168408=readFileSync(_0x3f9644,{'encoding':'utf8'});if(!_0x168408?.[_0x1df530(0x136)]())return{'status':'empty'};const _0x1a0d0c=JSON[_0x1df530(0x15a)](_0x168408);return{'status':'ok','data':_0x1a0d0c};}catch(_0x521259){return{'status':'error','message':_0x521259 instanceof Error?_0x521259[_0x1df530(0x129)]:String(_0x521259)};}}export function loadRawConfigLayers(_0x2a4d90){const _0xecbe9f=a107_0x4bd6e5;let _0x382376={},_0x48afe9={},_0x908979,_0x97dcfa;try{_0x908979=resolveConfigPath(homedir());if(_0x908979){const _0x5ea3b4=readFileSync(_0x908979,{'encoding':'utf8'});if(_0x5ea3b4)_0x382376=JSON['parse'](_0x5ea3b4);}}catch{}try{const _0x1fd752=_0x2a4d90||process[_0xecbe9f(0x120)]();_0x97dcfa=resolveConfigPath(_0x1fd752);if(_0x97dcfa){const _0x33ef51=readFileSync(_0x97dcfa,{'encoding':_0xecbe9f(0x160)});if(_0x33ef51)_0x48afe9=JSON['parse'](_0x33ef51);}}catch{}return{'globalPath':_0x908979,'projectPath':_0x97dcfa,'globalConfig':_0x382376,'projectConfig':_0x48afe9};}function mergeRawConfigLayers(_0x80a8df){const _0x214556=a107_0x4bd6e5,{globalConfig:_0x439440,projectConfig:_0x5d3b44}=_0x80a8df,_0x5b6265={..._0x439440,..._0x5d3b44};delete _0x5b6265[_0x214556(0x152)];if(_0x214556(0x137)in _0x5d3b44)_0x5b6265[_0x214556(0x137)]=_0x5d3b44['defaultApp'];else _0x439440[_0x214556(0x137)]&&(_0x5b6265[_0x214556(0x137)]=_0x439440[_0x214556(0x137)]);return _0x5b6265;}export function isInProject(){return!!getProjectConfigPath();}export function readRawConfig(_0x22ac0b){return mergeRawConfigLayers(loadRawConfigLayers(_0x22ac0b));}export function readRawConfigWithLayers(_0x12a6f4){const _0x6fe0b1=loadRawConfigLayers(_0x12a6f4);return{'config':mergeRawConfigLayers(_0x6fe0b1),'layers':_0x6fe0b1};}export function resolveDefaultAppSource(_0x1aa793){const _0x641e0a=a107_0x4bd6e5;if(_0x641e0a(0x137)in _0x1aa793[_0x641e0a(0x16a)])return _0x641e0a(0x170);if(_0x1aa793[_0x641e0a(0x121)][_0x641e0a(0x137)])return _0x641e0a(0x13b);return null;}function buildConfig(_0x118800,_0x53db02){const _0x5749d6=a107_0x4bd6e5,_0x53dbe2=_0x118800[_0x5749d6(0x137)]||undefined,_0x41f487=_0x53db02[_0x5749d6(0x14e)]||env('APP')||undefined,_0x12df3b=_0x41f487||_0x53dbe2||undefined,_0x3a7da4=env(_0x5749d6(0x157))||_0x118800[_0x5749d6(0x166)]||undefined,_0x2d8c22=_0x53db02[_0x5749d6(0x134)]||env('ENV')||_0x118800['env']||DEFAULT_CONFIG_VALUES[_0x5749d6(0x134)],_0x20aab0=normalizeEnv(String(_0x2d8c22)),_0x466f63=isDaily(_0x20aab0)?_0x5749d6(0x16e):isDev(_0x20aab0)?'development':'production',_0x346911=typeof _0x53db02[_0x5749d6(0x150)]===_0x5749d6(0x12a)?_0x53db02[_0x5749d6(0x150)]:undefined,_0xbcdc76=env('APPCODE'),_0xee4c8=_0x41f487?undefined:_0x118800[_0x5749d6(0x150)]||_0x118800[_0x5749d6(0x14e)]||undefined,_0x6c2fd9=_0x41f487||(_0xee4c8?undefined:_0x53dbe2),_0x44adfa=resolveLocalAppAliasCode(_0x118800,_0x6c2fd9),_0xd1b02d=resolveCachedAppCode(_0x6c2fd9,_0x466f63,_0x3a7da4),_0x40c686=_0x346911||_0xbcdc76||_0xee4c8||_0x44adfa||_0xd1b02d||undefined,_0x38bcf7=_0x346911?_0x5749d6(0x133):_0xbcdc76?_0x5749d6(0x134):_0xee4c8?_0x5749d6(0x147):_0x44adfa?'local-alias':_0xd1b02d?_0x5749d6(0x171):undefined,_0xf83e0b=_0x118800[_0x5749d6(0x15b)]||DEFAULT_CONFIG_VALUES['locale'],_0x3564e9=undefined,_0x2e549b=_0x53db02['format']||env(_0x5749d6(0x169))||_0x118800[_0x5749d6(0x13e)],_0x39797d=normalizeLegacyOutputFormat(_0x2e549b),_0x208116=env(_0x5749d6(0x155))||_0x118800['pageSize'],_0x334886=_0x208116?Number(_0x208116)||undefined:undefined,_0x45da6f=_0x118800[_0x5749d6(0x151)],_0x6bb5a9=_0x45da6f==='read'||_0x45da6f==='write'||_0x45da6f===_0x5749d6(0x11e)?_0x45da6f:DEFAULT_CONFIG_VALUES[_0x5749d6(0x151)],_0x20d20a=_0x118800[_0x5749d6(0x15d)]===!![],_0x59cb08=env(_0x5749d6(0x162)),_0x76bd55=_0x59cb08==='1'||_0x59cb08==='true';return{'appCode':typeof _0x40c686==='string'&&_0x40c686['trim']()?_0x40c686[_0x5749d6(0x136)]():undefined,'appCodeSource':_0x38bcf7,'env':_0x466f63,'locale':_0xf83e0b,'cookie':_0x3564e9,'accessKey':_0x3a7da4,'format':_0x39797d,'pageSize':_0x334886,'riskLevel':_0x6bb5a9,'nativeToolAvailable':_0x20d20a,'verbose':_0x76bd55,'defaultApp':_0x53dbe2,'currentApp':typeof _0x12df3b===_0x5749d6(0x12a)?_0x12df3b:undefined,'raw':_0x118800};}function env(_0x82c0fc){return productEnv(_0x82c0fc);}async function buildAuth(_0x2fb353){const _0x102fcb=a107_0x4bd6e5,_0x41cada='',_0x5c2b00=!!_0x2fb353[_0x102fcb(0x166)];return{'cookie':_0x41cada,'isLoggedIn':_0x5c2b00,async 'getOrLogin'(){const _0x4d6bf6=_0x102fcb;if(_0x5c2b00)return _0x41cada;throw CliErrors[_0x4d6bf6(0x125)]();}};}
1
+ const a107_0x385198=a107_0x2f8b;(function(_0x1ecc8c,_0x898851){const _0x1f7d9a=a107_0x2f8b,_0x4e4d9c=_0x1ecc8c();while(!![]){try{const _0x553749=parseInt(_0x1f7d9a(0x149))/0x1*(parseInt(_0x1f7d9a(0x188))/0x2)+parseInt(_0x1f7d9a(0x157))/0x3+parseInt(_0x1f7d9a(0x174))/0x4+-parseInt(_0x1f7d9a(0x138))/0x5+parseInt(_0x1f7d9a(0x162))/0x6*(-parseInt(_0x1f7d9a(0x151))/0x7)+-parseInt(_0x1f7d9a(0x154))/0x8+parseInt(_0x1f7d9a(0x17b))/0x9*(parseInt(_0x1f7d9a(0x175))/0xa);if(_0x553749===_0x898851)break;else _0x4e4d9c['push'](_0x4e4d9c['shift']());}catch(_0x58c904){_0x4e4d9c['push'](_0x4e4d9c['shift']());}}}(a107_0x1127,0x291ce));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{redactCommandArgv}from'./utils/redaction.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';import{normalizeLovrabetRegion}from'./constant/region.js';function a107_0x2f8b(_0xbde1b6,_0x32f287){_0xbde1b6=_0xbde1b6-0x133;const _0x1127ad=a107_0x1127();let _0x2f8bce=_0x1127ad[_0xbde1b6];return _0x2f8bce;}import{resolveEnterpriseRoutingConfig}from'./config/domain-config.js';function a107_0x1127(){const _0xa7f008=['empty','setLogPath','globalConfig','skillDomain','values','online','28NFwtHC','some','explicit','cache','setRawMode','accessKey','123310zpTLtp','APP','parse','EPERM','env','prototype','code','projectConfig','utf8','ENV','agentDomain','EXDEV','kbServiceDomain','routing','userDomain','runtimeDomain','EACCES','1425EgnLQP','slice','high-risk-write','true','nonInteractive','./constant/env.js','read','ACCESS_KEY','7quMXeF','apps','platformDomain','2208920xltBdF','riskLevel','join','441204HvsxOV','authRequired','APPCODE','missing','argv','error','pageSize','raw','skillHubDomain','inherit','stdin','1439388dPbiVp','isTTY','nativeToolAvailable','defaultApp','format','cwd','trim','production','.tmp','VERBOSE','string','project','global','apiDomain','appcode','setRawCommand','daily','call','188552MfUIJs','4949170gXYMTu','object','newConfigFileName','hasOwnProperty','write','development','9oOLdfZ','local-alias','./constant/domain.js','app','kbDomain','find','stringify'];a107_0x1127=function(){return _0xa7f008;};return a107_0x1127();}export{AUTH_MODE,isAuthMode}from'./constant/auth-mode.js';const CONFIG_NAMES=PRODUCT_CONFIG['configFileNames'];export const NEW_CONFIG_NAME=PRODUCT_CONFIG[a107_0x385198(0x177)];function resolveConfigPath(_0x3306cf){for(const _0x4cc3fe of CONFIG_NAMES){const _0x3ee539=resolve(_0x3306cf,_0x4cc3fe);if(existsSync(_0x3ee539))return _0x3ee539;}return undefined;}export function resolveWriteConfigPath(_0x4b2ae5){const _0x5f505d=a107_0x385198,_0x1ad03e=_0x4b2ae5===_0x5f505d(0x16d)?process[_0x5f505d(0x167)]():homedir(),_0x4e7596=resolveConfigPath(_0x1ad03e);return _0x4e7596??resolve(_0x1ad03e,NEW_CONFIG_NAME);}export function readConfigFile(_0x5df4df){const _0x40ed0b=a107_0x385198;try{if(existsSync(_0x5df4df)){const _0x336431=readFileSync(_0x5df4df,{'encoding':_0x40ed0b(0x140)});if(_0x336431){const _0x1a9d19=JSON[_0x40ed0b(0x13a)](_0x336431);return migrateOnlineEnv(_0x5df4df,_0x1a9d19),_0x1a9d19;}}}catch{}return{};}function migrateOnlineEnv(_0x38cc0c,_0x2e3936){const _0x274ba3=a107_0x385198;let _0x17ee8d=![];_0x2e3936[_0x274ba3(0x13c)]===_0x274ba3(0x187)&&(_0x2e3936[_0x274ba3(0x13c)]='production',_0x17ee8d=!![]);if(_0x2e3936['apps']&&typeof _0x2e3936['apps']===_0x274ba3(0x176))for(const _0x15b58e of Object[_0x274ba3(0x186)](_0x2e3936[_0x274ba3(0x152)])){_0x15b58e&&_0x15b58e[_0x274ba3(0x13c)]===_0x274ba3(0x187)&&(_0x15b58e[_0x274ba3(0x13c)]='production',_0x17ee8d=!![]);}if(_0x17ee8d)try{writeConfigFile(_0x38cc0c,_0x2e3936);}catch{}}export function writeConfigFile(_0x1a49d3,_0x45dc0b){const _0x36c3a2=a107_0x385198,_0x57beb1=dirname(_0x1a49d3);!existsSync(_0x57beb1)&&mkdirSync(_0x57beb1,{'recursive':!![]});const _0x18c0ea=_0x1a49d3+_0x36c3a2(0x16a);try{writeFileSync(_0x18c0ea,JSON[_0x36c3a2(0x181)](_0x45dc0b,null,0x2)+'\x0a',{'encoding':_0x36c3a2(0x140),'mode':0x180});try{renameSync(_0x18c0ea,_0x1a49d3);}catch(_0x47f643){if(_0x47f643['code']===_0x36c3a2(0x13b)||_0x47f643[_0x36c3a2(0x13e)]===_0x36c3a2(0x143)||_0x47f643[_0x36c3a2(0x13e)]===_0x36c3a2(0x148)){writeFileSync(_0x1a49d3,JSON[_0x36c3a2(0x181)](_0x45dc0b,null,0x2)+'\x0a',{'encoding':_0x36c3a2(0x140)});try{unlinkSync(_0x18c0ea);}catch{}}else throw _0x47f643;}}catch(_0x50d1f1){try{unlinkSync(_0x18c0ea);}catch{}throw _0x50d1f1;}}export function isNonInteractiveMode(_0x585966){const _0xe300cc=a107_0x385198;return!!(_0x585966[_0xe300cc(0x14d)]||_0x585966['ci']||productEnvNames('CI')['some'](_0x17405a=>process.env[_0x17405a]===_0xe300cc(0x14c))||process.env.CI===_0xe300cc(0x14c)||!process['stdout']['isTTY']||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x1147a9=a107_0x385198;if(!process[_0x1147a9(0x161)][_0x1147a9(0x163)])return![];try{const _0x5a9f16=process[_0x1147a9(0x161)]['isRaw'];return process[_0x1147a9(0x161)]['setRawMode'](!![]),process[_0x1147a9(0x161)][_0x1147a9(0x136)](_0x5a9f16??![]),!![];}catch{return![];}}export async function createContext(_0x44c197){const _0x3ace87=a107_0x385198,_0x3d0b8c=readRawConfig(),_0x371719=buildConfig(_0x3d0b8c,_0x44c197);await initGlobalEnvironment(_0x371719);const {getUserDomain:_0x1684c5,getApiDomain:_0x545208}=await import(_0x3ace87(0x17d)),_0x52ddc7={'apiDomain':_0x545208(),'userDomain':_0x1684c5()},_0x53c8e9=await buildAuth(_0x371719);logger[_0x3ace87(0x183)](process['cwd']());const _0x50ee20=(CLI_BIN_NAME+'\x20'+redactCommandArgv(process[_0x3ace87(0x15b)][_0x3ace87(0x14a)](0x2))[_0x3ace87(0x156)]('\x20'))[_0x3ace87(0x168)]();logger[_0x3ace87(0x171)](_0x50ee20);const _0x8fe419=isNonInteractiveMode(_0x44c197);return{'config':_0x371719,'auth':_0x53c8e9,'logger':logger,'env':_0x52ddc7,'nonInteractive':_0x8fe419};}export function buildConfigFromFlags(_0x33755e){return buildConfig(readRawConfig(),_0x33755e);}export function getLocalAppAliases(_0x367362){const _0x52d721=a107_0x385198;return _0x367362[_0x52d721(0x152)]&&typeof _0x367362[_0x52d721(0x152)]===_0x52d721(0x176)?_0x367362[_0x52d721(0x152)]:{};}export function resolveLocalAppAliasCode(_0x45652e,_0x5a77fe){const _0x45d754=a107_0x385198;if(!_0x5a77fe)return undefined;const _0x1c154b=getLocalAppAliases(_0x45652e)[_0x5a77fe],_0x1d94df=_0x1c154b?.[_0x45d754(0x170)];return typeof _0x1d94df===_0x45d754(0x16c)&&_0x1d94df['trim']()?_0x1d94df[_0x45d754(0x168)]():undefined;}export function readAppCodeFromConfig(){const _0x3ee460=a107_0x385198,_0x52f80e=readRawConfig(),_0x3fac17=_0x52f80e[_0x3ee460(0x170)]??_0x52f80e[_0x3ee460(0x17e)];if(typeof _0x3fac17===_0x3ee460(0x16c)&&_0x3fac17[_0x3ee460(0x168)]())return _0x3fac17[_0x3ee460(0x168)]();const _0x5afa16=resolveLocalAppAliasCode(_0x52f80e,typeof _0x52f80e[_0x3ee460(0x165)]==='string'?_0x52f80e[_0x3ee460(0x165)]:undefined);if(_0x5afa16)return _0x5afa16;const _0x4884c8=normalizeEnv(String(_0x52f80e[_0x3ee460(0x13c)]||_0x3ee460(0x169))),_0x24baf9=isDaily(_0x4884c8)?'daily':isDev(_0x4884c8)?_0x3ee460(0x17a):'production',_0x369faa=resolveCachedAppCode(typeof _0x52f80e[_0x3ee460(0x165)]===_0x3ee460(0x16c)?_0x52f80e[_0x3ee460(0x165)]:undefined,_0x24baf9,typeof _0x52f80e[_0x3ee460(0x137)]===_0x3ee460(0x16c)?_0x52f80e[_0x3ee460(0x137)]:undefined);if(_0x369faa)return _0x369faa;const _0x4f2c85=Object[_0x3ee460(0x186)](getLocalAppAliases(_0x52f80e))[_0x3ee460(0x180)](_0x4c03b0=>_0x4c03b0?.[_0x3ee460(0x170)]);return typeof _0x4f2c85?.['appcode']==='string'&&_0x4f2c85['appcode'][_0x3ee460(0x168)]()?_0x4f2c85['appcode'][_0x3ee460(0x168)]():undefined;}export function readScopedConfig(_0x512dc5){const _0x278c93=a107_0x385198,_0xca0cee=_0x512dc5['global']?_0x278c93(0x16e):_0x278c93(0x16d);return readConfigFile(resolveWriteConfigPath(_0xca0cee));}export function writeScopedConfig(_0x110805,_0xc8b233){const _0x1f37e3=a107_0x385198,_0x2e3128=_0xc8b233[_0x1f37e3(0x16e)]?_0x1f37e3(0x16e):_0x1f37e3(0x16d);writeConfigFile(resolveWriteConfigPath(_0x2e3128),_0x110805);}export async function initGlobalEnvironment(_0x3c1190){const _0x397d87=a107_0x385198,{initEnv:_0x4669fe}=await import(_0x397d87(0x14e));_0x4669fe(_0x3c1190[_0x397d87(0x13c)]);const {initDomains:_0x200f7a}=await import(_0x397d87(0x17d)),_0x3d8853=resolveEnterpriseRoutingConfig(_0x3c1190[_0x397d87(0x15e)][_0x397d87(0x145)]),_0x38319e=[_0x397d87(0x16f),'host',_0x397d87(0x146),_0x397d87(0x147),'skillDomain',_0x397d87(0x15f),_0x397d87(0x142),_0x397d87(0x153),_0x397d87(0x17f),'kbServiceDomain'],_0x3d57b2=_0x3d8853!==undefined||_0x38319e[_0x397d87(0x133)](_0x5d9fa9=>Object[_0x397d87(0x13d)][_0x397d87(0x178)][_0x397d87(0x173)](_0x3c1190[_0x397d87(0x15e)],_0x5d9fa9));_0x200f7a({'apiDomain':_0x3d8853?_0x3d8853['apiDomain']:_0x3c1190['raw'][_0x397d87(0x16f)]||_0x3c1190[_0x397d87(0x15e)]['host']||undefined,'userDomain':_0x3d8853?_0x3d8853[_0x397d87(0x146)]:_0x3c1190[_0x397d87(0x15e)][_0x397d87(0x146)]||undefined,'runtimeDomain':_0x3d8853?_0x3d8853['runtimeDomain']:_0x3c1190[_0x397d87(0x15e)][_0x397d87(0x147)]||undefined,'skillDomain':_0x3d8853?_0x3d8853[_0x397d87(0x185)]:_0x3c1190[_0x397d87(0x15e)][_0x397d87(0x185)]||_0x3c1190[_0x397d87(0x15e)][_0x397d87(0x15f)]||_0x3c1190[_0x397d87(0x15e)][_0x397d87(0x142)]||_0x3c1190[_0x397d87(0x15e)][_0x397d87(0x153)]||undefined,'kbServiceDomain':_0x3d8853?_0x3d8853[_0x397d87(0x144)]:typeof _0x3c1190[_0x397d87(0x15e)]['kbServiceDomain']===_0x397d87(0x16c)&&_0x3c1190[_0x397d87(0x15e)][_0x397d87(0x144)]['trim']()?_0x3c1190['raw'][_0x397d87(0x144)]:undefined,'allowOfficialKbServiceDefault':!_0x3d57b2,'region':normalizeLovrabetRegion(_0x3c1190[_0x397d87(0x15e)]['region'])});}export function getProjectConfigPath(){const _0x310996=a107_0x385198;return resolveConfigPath(process[_0x310996(0x167)]());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function inspectCliConfigJsonFile(_0x589522){const _0x38d930=a107_0x385198;if(!existsSync(_0x589522))return{'status':_0x38d930(0x15a)};try{const _0xc27868=readFileSync(_0x589522,{'encoding':'utf8'});if(!_0xc27868?.[_0x38d930(0x168)]())return{'status':_0x38d930(0x182)};const _0x55d208=JSON[_0x38d930(0x13a)](_0xc27868);return{'status':'ok','data':_0x55d208};}catch(_0x2529aa){return{'status':_0x38d930(0x15c),'message':_0x2529aa instanceof Error?_0x2529aa['message']:String(_0x2529aa)};}}export function loadRawConfigLayers(_0xa562f0){const _0x37294d=a107_0x385198;let _0x1ea915={},_0x5bb715={},_0x52a765,_0x27f024;try{_0x52a765=resolveConfigPath(homedir());if(_0x52a765){const _0x3eb3b2=readFileSync(_0x52a765,{'encoding':_0x37294d(0x140)});if(_0x3eb3b2)_0x1ea915=JSON[_0x37294d(0x13a)](_0x3eb3b2);}}catch{}try{const _0x2839d6=_0xa562f0||process[_0x37294d(0x167)]();_0x27f024=resolveConfigPath(_0x2839d6);if(_0x27f024){const _0x553b90=readFileSync(_0x27f024,{'encoding':_0x37294d(0x140)});if(_0x553b90)_0x5bb715=JSON['parse'](_0x553b90);}}catch{}return{'globalPath':_0x52a765,'projectPath':_0x27f024,'globalConfig':_0x1ea915,'projectConfig':_0x5bb715};}function mergeRawConfigLayers(_0x55c67e){const _0x51124f=a107_0x385198,{globalConfig:_0x49dff7,projectConfig:_0x2ea6e4}=_0x55c67e,_0xc52bd4={..._0x49dff7,..._0x2ea6e4};delete _0xc52bd4[_0x51124f(0x160)];if(_0x51124f(0x165)in _0x2ea6e4)_0xc52bd4[_0x51124f(0x165)]=_0x2ea6e4['defaultApp'];else _0x49dff7[_0x51124f(0x165)]&&(_0xc52bd4[_0x51124f(0x165)]=_0x49dff7[_0x51124f(0x165)]);return _0xc52bd4;}export function isInProject(){return!!getProjectConfigPath();}export function readRawConfig(_0x453dab){return mergeRawConfigLayers(loadRawConfigLayers(_0x453dab));}export function readRawConfigWithLayers(_0x23493e){const _0x592043=loadRawConfigLayers(_0x23493e);return{'config':mergeRawConfigLayers(_0x592043),'layers':_0x592043};}export function resolveDefaultAppSource(_0x4e6475){const _0x5358f9=a107_0x385198;if(_0x5358f9(0x165)in _0x4e6475[_0x5358f9(0x13f)])return'project';if(_0x4e6475[_0x5358f9(0x184)][_0x5358f9(0x165)])return _0x5358f9(0x16e);return null;}function buildConfig(_0x5dcda7,_0x1697a0){const _0x151869=a107_0x385198,_0x55dc58=_0x5dcda7[_0x151869(0x165)]||undefined,_0x679039=_0x1697a0[_0x151869(0x17e)]||env(_0x151869(0x139))||undefined,_0x14756a=_0x679039||_0x55dc58||undefined,_0xcabc84=env(_0x151869(0x150))||_0x5dcda7[_0x151869(0x137)]||undefined,_0x16afbc=_0x1697a0[_0x151869(0x13c)]||env(_0x151869(0x141))||_0x5dcda7[_0x151869(0x13c)]||DEFAULT_CONFIG_VALUES[_0x151869(0x13c)],_0x3a5fdd=normalizeEnv(String(_0x16afbc)),_0x15d5b2=isDaily(_0x3a5fdd)?_0x151869(0x172):isDev(_0x3a5fdd)?_0x151869(0x17a):_0x151869(0x169),_0x3c081e=typeof _0x1697a0[_0x151869(0x170)]===_0x151869(0x16c)?_0x1697a0[_0x151869(0x170)]:undefined,_0x217757=env(_0x151869(0x159)),_0x15b9cb=_0x679039?undefined:_0x5dcda7['appcode']||_0x5dcda7[_0x151869(0x17e)]||undefined,_0x486b46=_0x679039||(_0x15b9cb?undefined:_0x55dc58),_0x449e19=resolveLocalAppAliasCode(_0x5dcda7,_0x486b46),_0x5930f3=resolveCachedAppCode(_0x486b46,_0x15d5b2,_0xcabc84),_0x1ff5a9=_0x3c081e||_0x217757||_0x15b9cb||_0x449e19||_0x5930f3||undefined,_0x4baf78=_0x3c081e?_0x151869(0x134):_0x217757?'env':_0x15b9cb?'top-level':_0x449e19?_0x151869(0x17c):_0x5930f3?_0x151869(0x135):undefined,_0x1b2777=_0x5dcda7['locale']||DEFAULT_CONFIG_VALUES['locale'],_0x188a3d=undefined,_0x409f0f=_0x1697a0['format']||env('FORMAT')||_0x5dcda7[_0x151869(0x166)],_0x15fab5=normalizeLegacyOutputFormat(_0x409f0f),_0x3586bd=env('PAGE_SIZE')||_0x5dcda7[_0x151869(0x15d)],_0x47dc2d=_0x3586bd?Number(_0x3586bd)||undefined:undefined,_0x30d4ef=_0x5dcda7[_0x151869(0x155)],_0xf2edf0=_0x30d4ef===_0x151869(0x14f)||_0x30d4ef===_0x151869(0x179)||_0x30d4ef===_0x151869(0x14b)?_0x30d4ef:DEFAULT_CONFIG_VALUES['riskLevel'],_0x3b6c99=_0x5dcda7[_0x151869(0x164)]===!![],_0x1f055d=env(_0x151869(0x16b)),_0xd16135=_0x1f055d==='1'||_0x1f055d==='true';return{'appCode':typeof _0x1ff5a9===_0x151869(0x16c)&&_0x1ff5a9['trim']()?_0x1ff5a9['trim']():undefined,'appCodeSource':_0x4baf78,'env':_0x15d5b2,'locale':_0x1b2777,'cookie':_0x188a3d,'accessKey':_0xcabc84,'format':_0x15fab5,'pageSize':_0x47dc2d,'riskLevel':_0xf2edf0,'nativeToolAvailable':_0x3b6c99,'verbose':_0xd16135,'defaultApp':_0x55dc58,'currentApp':typeof _0x14756a===_0x151869(0x16c)?_0x14756a:undefined,'raw':_0x5dcda7};}function env(_0x4b35fa){return productEnv(_0x4b35fa);}async function buildAuth(_0x94f10b){const _0x471fdb=a107_0x385198,_0x210183='',_0x568486=!!_0x94f10b[_0x471fdb(0x137)];return{'cookie':_0x210183,'isLoggedIn':_0x568486,async 'getOrLogin'(){const _0x2117e5=_0x471fdb;if(_0x568486)return _0x210183;throw CliErrors[_0x2117e5(0x158)]();}};}
@@ -1 +1 @@
1
- (function(_0xb8b777,_0x29ad8c){const _0x1bd9b9=a108_0x3b16,_0x4c3e4e=_0xb8b777();while(!![]){try{const _0x2a36f5=parseInt(_0x1bd9b9(0x140))/0x1*(parseInt(_0x1bd9b9(0xf8))/0x2)+-parseInt(_0x1bd9b9(0xe8))/0x3+-parseInt(_0x1bd9b9(0xa5))/0x4*(parseInt(_0x1bd9b9(0xba))/0x5)+-parseInt(_0x1bd9b9(0xe7))/0x6*(parseInt(_0x1bd9b9(0xb7))/0x7)+-parseInt(_0x1bd9b9(0xcb))/0x8+-parseInt(_0x1bd9b9(0xed))/0x9+-parseInt(_0x1bd9b9(0xeb))/0xa*(-parseInt(_0x1bd9b9(0xb0))/0xb);if(_0x2a36f5===_0x29ad8c)break;else _0x4c3e4e['push'](_0x4c3e4e['shift']());}catch(_0x5a9c41){_0x4c3e4e['push'](_0x4c3e4e['shift']());}}}(a108_0x3a31,0x5456b));import{ClientAkModel}from'@lovrabet/sdk';import{getSdkClient,getIdentitySdkClient,clearSdkClient}from'../core/sdk-client.js';import{getEnv}from'../constant/env.js';import{readFile}from'node:fs/promises';import{getPersonalKnowledge,listPersonalKnowledge,savePersonalKnowledge}from'../core/kb-management-client.js';import{basename}from'node:path';import{getApiDomain,getRuntimeDomain,getSkillDomain}from'../constant/domain.js';import{PRODUCT_CONFIG}from'../constant/product.js';import{CliError,CliErrors}from'../errors.js';import{createAccessError,readApiErrorCode}from'../framework/access-error.js';import{createRateLimitError,readRetryAfter,readRetryAfterSeconds}from'../framework/rate-limit.js';import{extractList,extractPaging}from'../framework/response.js';import{parseLosslessJson}from'../utils/lossless-json.js';import{normalizeRuntimeUserId}from'../utils/runtime-user-id.js';let _activeAK;export function setActiveAK(_0x1a8b98){if(_activeAK!==(_0x1a8b98||undefined))clearSdkClient();_activeAK=_0x1a8b98||undefined;}export function clearActiveAK(){_activeAK=undefined,clearSdkClient();}async function sdkRequest(_0x59a0c2,_0x1a5aa9){const _0xd9843d=a108_0x3b16;if(!_activeAK)throw CliErrors[_0xd9843d(0xc8)](_0xd9843d(0xe4)+PRODUCT_CONFIG[_0xd9843d(0x16d)]+'.');const _0x50bc97=_0x59a0c2?getSdkClient({'appCode':_0x59a0c2,'env':getEnv(),'runtimeDomain':getRuntimeDomain(),'authMode':_0xd9843d(0xaa),'accessKey':_activeAK}):getSdkClient();return withSdkErrors(()=>_0x1a5aa9(_0x50bc97));}async function identitySdkRequest(_0x14e894){const _0x13e27c=a108_0x3b16,_0x475b17=_activeAK;if(!_0x475b17)throw CliErrors[_0x13e27c(0xc8)]('Configure\x20accessKey\x20in\x20'+PRODUCT_CONFIG[_0x13e27c(0x16d)]+'.');return withSdkErrors(()=>_0x14e894(getIdentitySdkClient(_0x475b17,getRuntimeDomain())));}async function withSdkErrors(_0x45556b){const _0x3901ea=a108_0x3b16;try{return await _0x45556b();}catch(_0x265fe3){if(_0x265fe3 instanceof CliError)throw _0x265fe3;if(!_0x265fe3||typeof _0x265fe3!=='object')throw _0x265fe3;const _0x44d91b=_0x265fe3,_0x4a97b=_0x44d91b[_0x3901ea(0x13e)]&&typeof _0x44d91b[_0x3901ea(0x13e)]==='object'?_0x44d91b[_0x3901ea(0x13e)]:{},_0x333ea5=firstString(_0x4a97b[_0x3901ea(0x11c)],_0x4a97b[_0x3901ea(0x10c)],_0x4a97b['msg'],_0x44d91b['message']),_0x2ed503=createRateLimitError({'status':[_0x44d91b['status'],_0x4a97b['status'],_0x4a97b['code']][_0x3901ea(0xfc)](_0x45bc5a=>Number(_0x45bc5a)===0x1ad)??_0x44d91b['status'],'errorCode':firstString(_0x4a97b[_0x3901ea(0x156)],typeof _0x4a97b[_0x3901ea(0x122)]==='string'?_0x4a97b['code']:undefined,_0x44d91b[_0x3901ea(0x122)]),'message':_0x333ea5,'retryAfter':_0x44d91b[_0x3901ea(0x131)]??readRetryAfterSeconds(_0x44d91b['response'])});if(_0x2ed503)throw _0x2ed503;const _0x2ce7c8=createAccessError(_0x44d91b[_0x3901ea(0x13e)],_0x44d91b[_0x3901ea(0x122)]);if(_0x2ce7c8)throw _0x2ce7c8;throw CliErrors['apiError'](_0x333ea5||_0x3901ea(0xef),_0x44d91b[_0x3901ea(0x122)]?_0x3901ea(0xe5)+_0x44d91b[_0x3901ea(0x122)]:undefined);}}function firstString(..._0x5a7b59){const _0x1885bb=a108_0x3b16;for(const _0x233233 of _0x5a7b59){if(typeof _0x233233===_0x1885bb(0xd7)&&_0x233233[_0x1885bb(0xd4)]())return _0x233233[_0x1885bb(0xd4)]();}return undefined;}async function decodeResponseBody(_0x16d272){const _0x165aa5=a108_0x3b16;if(typeof _0x16d272['text']===_0x165aa5(0xb1))try{const _0x23816a=await _0x16d272[_0x165aa5(0x123)]();try{return{'isJson':!![],'data':parseLosslessJson(_0x23816a),'text':_0x23816a};}catch{return{'isJson':![],'text':_0x23816a[_0x165aa5(0xd4)]()||undefined};}}catch(_0x4c59dc){if(_0x4c59dc instanceof Error&&_0x4c59dc['name']===_0x165aa5(0x13b))throw _0x4c59dc;}try{return{'isJson':!![],'data':await _0x16d272['json']()};}catch(_0x4fb24d){if(_0x4fb24d instanceof Error&&_0x4fb24d[_0x165aa5(0xa2)]===_0x165aa5(0x13b))throw _0x4fb24d;return{'isJson':![]};}}function a108_0x3b16(_0x19128b,_0x5a2690){_0x19128b=_0x19128b-0x93;const _0x3a3139=a108_0x3a31();let _0x3b1687=_0x3a3139[_0x19128b];return _0x3b1687;}function throwIfRateLimited(_0x26df50,_0x4265ef,_0x4db89b){const _0x46b8ca=a108_0x3b16,_0x3d91fc=_0x4265ef&&typeof _0x4265ef===_0x46b8ca(0x12d)?_0x4265ef:{},_0x3a3a25=[_0x3d91fc[_0x46b8ca(0x101)],_0x3d91fc[_0x46b8ca(0x122)]][_0x46b8ca(0xfc)](_0x978cec=>Number(_0x978cec)===0x1ad),_0x157fb3=createRateLimitError({'status':_0x26df50[_0x46b8ca(0x101)]===0x1ad?_0x26df50[_0x46b8ca(0x101)]:_0x3a3a25??_0x26df50[_0x46b8ca(0x101)],'errorCode':firstString(_0x3d91fc[_0x46b8ca(0x156)],typeof _0x3d91fc['code']===_0x46b8ca(0xd7)?_0x3d91fc[_0x46b8ca(0x122)]:undefined),'message':firstString(_0x3d91fc[_0x46b8ca(0x11c)],_0x3d91fc[_0x46b8ca(0x10c)],_0x3d91fc[_0x46b8ca(0xa1)],_0x4db89b),'retryAfter':readRetryAfter(_0x26df50[_0x46b8ca(0x12a)])??readRetryAfterSeconds(_0x4265ef)});if(_0x157fb3)throw _0x157fb3;}async function apiRequest(_0x4616bf,_0x2f55c1={}){const _0x5602=a108_0x3b16,{method:method=_0x5602(0x106),body:_0x33e811,headers:headers={},timeout:timeout=0x7530,domain:domain=_0x5602(0x143),rejectRedirects:rejectRedirects=![]}=_0x2f55c1,_0x44c483=_activeAK,_0x5d6ae2=domain===_0x5602(0x165)?getApiDomain():getRuntimeDomain();if(!_0x44c483)throw CliErrors['authRequired'](_0x5602(0xe4)+PRODUCT_CONFIG[_0x5602(0x16d)]+'.');const _0x59c93c=''+_0x5d6ae2+_0x4616bf,_0x281d51={'X-User-AK':_0x44c483},_0x562302=new AbortController(),_0x40b294=setTimeout(()=>_0x562302[_0x5602(0x159)](),timeout);try{const _0x56892d=await fetch(_0x59c93c,{'method':method,...rejectRedirects?{'redirect':_0x5602(0x12c)}:{},'headers':{'Content-Type':_0x5602(0xd6),'X-Invoke-Source':PRODUCT_CONFIG[_0x5602(0x163)],..._0x281d51,...headers},'body':_0x33e811?JSON[_0x5602(0x161)](_0x33e811):undefined,'signal':_0x562302['signal']});return await readApiResponse(_0x56892d);}catch(_0x1161ff){if(_0x1161ff instanceof Error&&_0x1161ff[_0x5602(0xa2)]==='AbortError')throw CliErrors['apiError'](_0x5602(0x167)+_0x59c93c);throw _0x1161ff;}finally{clearTimeout(_0x40b294);}}async function readApiResponse(_0x4baa29){const _0x497fe0=a108_0x3b16,_0x8d16e1=await decodeResponseBody(_0x4baa29);if(!_0x8d16e1[_0x497fe0(0xe1)]){throwIfRateLimited(_0x4baa29,undefined,_0x8d16e1[_0x497fe0(0x123)]);throw CliErrors['apiError']('API\x20returned\x20non-JSON\x20response\x20(HTTP\x20'+_0x4baa29[_0x497fe0(0x101)]+')',_0x4baa29['status']>=0x190?_0x497fe0(0xd2):undefined);}const _0x1483ae=_0x8d16e1[_0x497fe0(0x113)];throwIfRateLimited(_0x4baa29,_0x1483ae);if(!_0x4baa29['ok']||_0x1483ae['success']===![]){const _0x104b8=createAccessError(_0x1483ae);if(_0x104b8)throw _0x104b8;throw CliErrors[_0x497fe0(0xaf)](_0x1483ae[_0x497fe0(0x11c)]||_0x1483ae[_0x497fe0(0x10c)]||_0x1483ae[_0x497fe0(0xa1)]||'API\x20error:\x20'+_0x4baa29['status'],readApiErrorCode(_0x1483ae)?_0x497fe0(0xe5)+readApiErrorCode(_0x1483ae):undefined);}return _0x1483ae;}async function apiBinaryRequest(_0x3ac42a,_0x26e348={}){const _0x521101=a108_0x3b16,{method:method=_0x521101(0x106),headers:headers={},timeout:timeout=0x7530}=_0x26e348,_0x453c4c=_activeAK,_0x4fcd45=getRuntimeDomain();if(!_0x453c4c)throw CliErrors[_0x521101(0xc8)](_0x521101(0xe4)+PRODUCT_CONFIG[_0x521101(0x16d)]+'.');const _0x13dd1a=''+_0x4fcd45+_0x3ac42a,_0x385133=new AbortController(),_0x7f35ac=setTimeout(()=>_0x385133[_0x521101(0x159)](),timeout);try{const _0xcd57d7=await fetch(_0x13dd1a,{'method':method,'headers':{'X-Invoke-Source':PRODUCT_CONFIG[_0x521101(0x163)],'X-User-AK':_0x453c4c,...headers},'signal':_0x385133[_0x521101(0xf7)]});if(!_0xcd57d7['ok']){const _0x4540d1=await decodeResponseBody(_0xcd57d7),_0x14c5d1=_0x4540d1['data']&&typeof _0x4540d1['data']===_0x521101(0x12d)?_0x4540d1[_0x521101(0x113)]:{},_0x5ed165=firstString(_0x14c5d1[_0x521101(0x11c)],_0x14c5d1[_0x521101(0x10c)],_0x14c5d1[_0x521101(0x156)],_0x4540d1[_0x521101(0x123)]);throwIfRateLimited(_0xcd57d7,_0x4540d1[_0x521101(0x113)],_0x5ed165);const _0x1ea6d0=createAccessError(_0x4540d1[_0x521101(0x113)]);if(_0x1ea6d0)throw _0x1ea6d0;throw CliErrors[_0x521101(0xaf)](_0x5ed165||_0x521101(0xb4)+_0xcd57d7[_0x521101(0x101)],_0x521101(0xa8)+_0x13dd1a);}return Buffer['from'](await _0xcd57d7['arrayBuffer']());}catch(_0x2157d6){if(_0x2157d6 instanceof Error&&_0x2157d6[_0x521101(0xa2)]==='AbortError')throw CliErrors[_0x521101(0xaf)](_0x521101(0x167)+_0x13dd1a);throw _0x2157d6;}finally{clearTimeout(_0x7f35ac);}}async function toolboxRequest(_0x1c3f4a,_0x204f35,_0x1deaf7={}){const _0x293da3=a108_0x3b16,{method:method=_0x293da3(0x106),headers:headers={},timeout:timeout=0x7530}=_0x1deaf7,_0x5ce383=_activeAK;if(!_0x5ce383)throw CliErrors[_0x293da3(0xc8)](_0x293da3(0xe4)+PRODUCT_CONFIG[_0x293da3(0x16d)]+'.');const _0x3ef496=getApiDomain()[_0x293da3(0xd1)](/\/$/,''),_0x279f81=new URL(_0x1c3f4a,_0x3ef496+'/api/node-toolbox/');if(_0x204f35)for(const [_0x202cdb,_0x3dfd0b]of Object[_0x293da3(0x107)](_0x204f35)){_0x3dfd0b!==undefined&&_0x3dfd0b!==null&&_0x279f81[_0x293da3(0xae)][_0x293da3(0xce)](_0x202cdb,String(_0x3dfd0b));}const _0x3df2f0=new AbortController(),_0x3d7b66=setTimeout(()=>_0x3df2f0[_0x293da3(0x159)](),timeout);try{const _0x270d89=await fetch(_0x279f81,{'method':method,'headers':{'Content-Type':_0x293da3(0xd6),'X-Invoke-Source':PRODUCT_CONFIG[_0x293da3(0x163)],'X-User-AK':_0x5ce383,...headers},'signal':_0x3df2f0[_0x293da3(0xf7)]}),_0xff3ec8=await decodeResponseBody(_0x270d89);if(!_0xff3ec8[_0x293da3(0xe1)]){throwIfRateLimited(_0x270d89,undefined,_0xff3ec8['text']);throw CliErrors['apiError'](_0x293da3(0xc7)+_0x270d89[_0x293da3(0x101)]+')',_0x270d89[_0x293da3(0x101)]>=0x190?_0x293da3(0xd2):undefined);}const _0x2de910=_0xff3ec8[_0x293da3(0x113)];throwIfRateLimited(_0x270d89,_0x2de910);if(!_0x270d89['ok']){const _0xb49441=_0x2de910&&typeof _0x2de910===_0x293da3(0x12d)?_0x2de910:{};throw CliErrors['apiError'](_0xb49441[_0x293da3(0x11c)]||_0xb49441[_0x293da3(0x10c)]||_0x293da3(0xe3)+_0x270d89['status'],_0xb49441[_0x293da3(0x156)]?_0x293da3(0xec)+_0xb49441['errorCode']:undefined);}if(_0x2de910&&typeof _0x2de910===_0x293da3(0x12d)&&'success'in _0x2de910&&typeof _0x2de910[_0x293da3(0x160)]===_0x293da3(0xfb)){const _0x3160f4=_0x2de910;if(!_0x3160f4[_0x293da3(0x160)])throw CliErrors['apiError'](_0x3160f4[_0x293da3(0x11c)]||_0x3160f4['message']||_0x293da3(0x95),_0x3160f4[_0x293da3(0x156)]?_0x293da3(0xec)+_0x3160f4[_0x293da3(0x156)]:undefined);return _0x3160f4[_0x293da3(0x113)];}return _0x2de910;}catch(_0x11b3e3){if(_0x11b3e3 instanceof Error&&_0x11b3e3[_0x293da3(0xa2)]===_0x293da3(0x13b))throw CliErrors[_0x293da3(0xaf)](_0x293da3(0x167)+_0x279f81[_0x293da3(0xc9)]());throw _0x11b3e3;}finally{clearTimeout(_0x3d7b66);}}async function skillHubJsonRequest(_0x4c9cd3,_0x5a37da={}){const _0x4be5aa=a108_0x3b16,{method:method=_0x4be5aa(0x106),query:_0x218dae,body:_0xe5100,headers:headers={},timeout:timeout=0x7530,allowNotFound:allowNotFound=![]}=_0x5a37da,_0x504bf6=_activeAK;if(!_0x504bf6)throw CliErrors['authRequired'](_0x4be5aa(0xe4)+PRODUCT_CONFIG['newConfigFileName']+'.');const _0x4ee38b=getSkillDomain()['replace'](/\/$/,''),_0x26ad4f=new URL(_0x4c9cd3,_0x4ee38b+'/');if(_0x218dae)for(const [_0xa69eec,_0x32a6b6]of Object[_0x4be5aa(0x107)](_0x218dae)){_0x32a6b6!==undefined&&_0x32a6b6!==null&&_0x26ad4f['searchParams']['set'](_0xa69eec,String(_0x32a6b6));}const _0x3218fe=new AbortController(),_0x15ab08=setTimeout(()=>_0x3218fe[_0x4be5aa(0x159)](),timeout);try{const _0x5173b6=await fetch(_0x26ad4f[_0x4be5aa(0xc9)](),{'method':method,'headers':{'Accept':_0x4be5aa(0xd6),'X-Invoke-Source':PRODUCT_CONFIG[_0x4be5aa(0x163)],'X-User-AK':_0x504bf6,...headers},'body':_0xe5100,'signal':_0x3218fe[_0x4be5aa(0xf7)]}),_0x5d082b=await decodeResponseBody(_0x5173b6);if(!_0x5d082b[_0x4be5aa(0xe1)]){if(allowNotFound&&_0x5173b6[_0x4be5aa(0x101)]===0x194)return undefined;throwIfRateLimited(_0x5173b6,undefined,_0x5d082b[_0x4be5aa(0x123)]);throw CliErrors[_0x4be5aa(0xaf)](_0x4be5aa(0xc6)+_0x5173b6['status']+')',_0x5173b6[_0x4be5aa(0x101)]>=0x190?_0x4be5aa(0xd2):undefined);}const _0x2f048b=_0x5d082b[_0x4be5aa(0x113)];throwIfRateLimited(_0x5173b6,_0x2f048b);if(allowNotFound&&isSkillHubNotFoundResponse(_0x5173b6[_0x4be5aa(0x101)],_0x2f048b))return undefined;const _0x3fcbaa=!_0x5173b6['ok']||_0x2f048b?.[_0x4be5aa(0x160)]===![]||typeof _0x2f048b?.[_0x4be5aa(0x122)]===_0x4be5aa(0x118)&&_0x2f048b[_0x4be5aa(0x122)]>=0x190;if(_0x3fcbaa)throw CliErrors[_0x4be5aa(0xaf)](_0x2f048b?.[_0x4be5aa(0x11c)]||_0x2f048b?.['message']||_0x2f048b?.['msg']||'SkillHub\x20API\x20error:\x20'+_0x5173b6[_0x4be5aa(0x101)],_0x2f048b?.[_0x4be5aa(0x156)]?_0x4be5aa(0x96)+_0x2f048b[_0x4be5aa(0x156)]:undefined);return _0x2f048b?.[_0x4be5aa(0x113)]??_0x2f048b;}catch(_0x1924fa){if(_0x1924fa instanceof Error&&_0x1924fa['name']==='AbortError')throw CliErrors[_0x4be5aa(0xaf)](_0x4be5aa(0x167)+_0x26ad4f['toString']());throw _0x1924fa;}finally{clearTimeout(_0x15ab08);}}function isSkillHubNotFoundResponse(_0x436aab,_0x1d2f6c){const _0x279081=a108_0x3b16;if(_0x436aab===0x194||_0x1d2f6c?.[_0x279081(0x122)]===0x194)return!![];if(_0x436aab!==0x190&&_0x1d2f6c?.[_0x279081(0x122)]!==0x190)return![];const _0x390c7e=[_0x1d2f6c?.[_0x279081(0xa1)],_0x1d2f6c?.[_0x279081(0x10c)],_0x1d2f6c?.[_0x279081(0x11c)],_0x1d2f6c?.[_0x279081(0x12c)]]['filter'](_0x31fba8=>typeof _0x31fba8===_0x279081(0xd7))['join']('\x20');return/skill not found\b/i['test'](_0x390c7e);}async function skillHubBinaryRequest(_0x30996e,_0x57c814={}){const _0x19a178=a108_0x3b16,{query:_0x3e2d41,headers:headers={},timeout:timeout=0x7530}=_0x57c814,_0x1239f1=_activeAK;if(!_0x1239f1)throw CliErrors['authRequired'](_0x19a178(0xe4)+PRODUCT_CONFIG[_0x19a178(0x16d)]+'.');const _0x1769cb=getSkillDomain()[_0x19a178(0xd1)](/\/$/,''),_0x390509=new URL(_0x30996e,_0x1769cb+'/');if(_0x3e2d41)for(const [_0x13e5f7,_0xaaa2a9]of Object[_0x19a178(0x107)](_0x3e2d41)){_0xaaa2a9!==undefined&&_0xaaa2a9!==null&&_0x390509[_0x19a178(0xae)]['set'](_0x13e5f7,String(_0xaaa2a9));}const _0x4c08e3=new AbortController(),_0x76ffea=setTimeout(()=>_0x4c08e3[_0x19a178(0x159)](),timeout);try{const _0x250871=await fetch(_0x390509[_0x19a178(0xc9)](),{'method':_0x19a178(0x106),'headers':{'Accept':_0x19a178(0xda),'X-Invoke-Source':PRODUCT_CONFIG[_0x19a178(0x163)],'X-User-AK':_0x1239f1,...headers},'signal':_0x4c08e3[_0x19a178(0xf7)]});if(!_0x250871['ok']){const _0x435b25=await decodeResponseBody(_0x250871),_0x2e9bc8=_0x435b25[_0x19a178(0x113)]&&typeof _0x435b25['data']===_0x19a178(0x12d)?_0x435b25['data']:{},_0x2560f4=firstString(_0x2e9bc8[_0x19a178(0x11c)],_0x2e9bc8[_0x19a178(0x10c)],_0x2e9bc8[_0x19a178(0xa1)],_0x2e9bc8[_0x19a178(0x156)],_0x435b25[_0x19a178(0x123)]);throwIfRateLimited(_0x250871,_0x435b25[_0x19a178(0x113)],_0x2560f4);throw CliErrors[_0x19a178(0xaf)](_0x2560f4||_0x19a178(0x124)+_0x250871['status'],_0x19a178(0xa8)+_0x390509[_0x19a178(0xc9)]());}return Buffer['from'](await _0x250871[_0x19a178(0x134)]());}catch(_0xd6ead1){if(_0xd6ead1 instanceof Error&&_0xd6ead1[_0x19a178(0xa2)]===_0x19a178(0x13b))throw CliErrors['apiError'](_0x19a178(0x167)+_0x390509[_0x19a178(0xc9)]());throw _0xd6ead1;}finally{clearTimeout(_0x76ffea);}}export async function getBffEndpointContract(_0x431e33,_0x39973d){const _0x53d21d=a108_0x3b16;if(encodeURIComponent(_0x431e33)!==_0x431e33||_0x431e33==='.'||_0x431e33==='..')throw CliErrors['validation'](_0x53d21d(0xcc));if(_0x39973d===_0x53d21d(0xcd))throw CliErrors[_0x53d21d(0x127)](_0x53d21d(0x125)+_0x431e33+_0x53d21d(0xb6)+_0x39973d);const _0x133def=await sdkRequest(_0x431e33,_0x14e4e0=>{const _0x3d9147=_0x53d21d;if(!('getEndpoint'in _0x14e4e0[_0x3d9147(0xb3)]))throw CliErrors['validation'](_0x3d9147(0x10e));return _0x14e4e0['bff'][_0x3d9147(0xee)](_0x39973d);});if(!_0x133def||typeof _0x133def!==_0x53d21d(0x12d)||Array[_0x53d21d(0xa3)](_0x133def)||_0x133def[_0x53d21d(0x168)]!==_0x431e33||_0x133def['functionName']!==_0x39973d)throw CliErrors['validation']('Backend\x20Function\x20not\x20found\x20or\x20inaccessible:\x20appCode='+_0x431e33+_0x53d21d(0xb6)+_0x39973d);const _0x15b603=_0x133def[_0x53d21d(0x119)];if(_0x15b603!=null&&(typeof _0x15b603!==_0x53d21d(0x118)||!Number[_0x53d21d(0x12f)](_0x15b603)))throw CliErrors[_0x53d21d(0xaf)](_0x53d21d(0x149));return{'appCode':_0x133def[_0x53d21d(0x168)],'functionName':_0x133def['functionName'],'description':_0x133def[_0x53d21d(0x115)],'version':_0x133def[_0x53d21d(0xd9)],'gmtModified':_0x15b603};}export async function getSqlQueryInfo(_0xe3f404,_0x15a279){const _0x5cb383=a108_0x3b16,_0x4afc8f=await sdkRequest(_0xe3f404,_0xc1d2c2=>{const _0x8d43d9=a108_0x3b16;if(!('query'in _0xc1d2c2['sql']))throw CliErrors[_0x8d43d9(0x127)](_0x8d43d9(0x135));return _0xc1d2c2['sql'][_0x8d43d9(0x15b)]({'appCode':_0xe3f404,'currentPage':0x1,'pageSize':0x1,'sqlCode':_0x15a279});}),_0x101c2f=_0x4afc8f&&typeof _0x4afc8f===_0x5cb383(0x12d)&&_0x5cb383(0x111)in _0x4afc8f?_0x4afc8f['tableData']?.[0x0]:_0x4afc8f&&typeof _0x4afc8f===_0x5cb383(0x12d)&&_0x5cb383(0x98)in _0x4afc8f?_0x4afc8f:undefined;if(!_0x101c2f)throw CliErrors['validation']('SQL\x20query\x20not\x20found:\x20'+_0x15a279);return _0x101c2f;}export async function listApprovalTodo(_0x3ed382,_0x1e623b=0x1,_0x3caccc=0x14){const _0x4df94d=a108_0x3b16,_0x5c46f7=await sdkRequest(_0x3ed382,_0x52419d=>_0x52419d[_0x4df94d(0xc2)][_0x4df94d(0x13c)]({'currentPage':_0x1e623b,'pageSize':_0x3caccc}));if(!_0x5c46f7||typeof _0x5c46f7!==_0x4df94d(0x12d)||!Array[_0x4df94d(0xa3)](_0x5c46f7[_0x4df94d(0x108)]))throw CliErrors['apiError'](_0x4df94d(0xbc));return _0x5c46f7;}export async function getApprovalTaskDetail(_0x47a5b5,_0x389cbc){const _0x18d426=a108_0x3b16,_0x3877cc=await sdkRequest(_0x389cbc,_0x2e9bcb=>_0x2e9bcb['approval']['getTask'](_0x47a5b5));if(!_0x3877cc||typeof _0x3877cc!==_0x18d426(0x12d)||Array[_0x18d426(0xa3)](_0x3877cc))throw CliErrors[_0x18d426(0xaf)]('Invalid\x20approval\x20task\x20detail\x20response.');return _0x3877cc;}export async function approveApprovalTask(_0x1b82e8){const _0x2497f8=a108_0x3b16;return await sdkRequest(_0x1b82e8[_0x2497f8(0x168)],_0x3f48b4=>_0x3f48b4[_0x2497f8(0xc2)][_0x2497f8(0xa0)](_0x1b82e8)),null;}export async function transferApprovalTask(_0x10393e){const _0x13d884=a108_0x3b16;return await sdkRequest(_0x10393e[_0x13d884(0x168)],_0x46dd8b=>_0x46dd8b[_0x13d884(0xc2)][_0x13d884(0xdc)](_0x10393e)),null;}function isRemoteAppItem(_0x1db8fd){const _0x3983a3=a108_0x3b16;return!!_0x1db8fd&&typeof _0x1db8fd===_0x3983a3(0x12d)&&typeof _0x1db8fd[_0x3983a3(0x168)]===_0x3983a3(0xd7)&&typeof _0x1db8fd[_0x3983a3(0xe6)]===_0x3983a3(0xd7);}function extractRemoteAppItems(_0x5d2736){const _0x128904=a108_0x3b16;if(Array['isArray'](_0x5d2736))return _0x5d2736[_0x128904(0x133)](isRemoteAppItem);if(!_0x5d2736||typeof _0x5d2736!=='object')throw CliErrors[_0x128904(0xaf)]('Invalid\x20app\x20list\x20response:\x20expected\x20object\x20or\x20array.');const _0x1d4fc3=_0x5d2736;if(Array[_0x128904(0xa3)](_0x1d4fc3['tableData']))return _0x1d4fc3[_0x128904(0x111)][_0x128904(0x133)](isRemoteAppItem);if(_0x1d4fc3['data']&&typeof _0x1d4fc3[_0x128904(0x113)]===_0x128904(0x12d)){const _0x4924fb=_0x1d4fc3[_0x128904(0x113)];if(Array[_0x128904(0xa3)](_0x4924fb[_0x128904(0x111)]))return _0x4924fb[_0x128904(0x111)][_0x128904(0x133)](isRemoteAppItem);}throw CliErrors[_0x128904(0xaf)](_0x128904(0xdb));}export async function getMyApps(){const _0x1d5e0f=a108_0x3b16;return extractRemoteAppItems(await identitySdkRequest(_0x427182=>_0x427182[_0x1d5e0f(0xc4)]()));}export async function getLoginUserInfo(){const _0x35e4e1=a108_0x3b16,_0x5b8807=await identitySdkRequest(_0x27df6c=>_0x27df6c[_0x35e4e1(0xbe)]());if(!_0x5b8807||typeof _0x5b8807!=='object'||Array[_0x35e4e1(0xa3)](_0x5b8807))throw CliErrors[_0x35e4e1(0xaf)](_0x35e4e1(0xfd));return _0x5b8807;}export const USER_ACCOUNT_BIND_PATH='/client/user-accounts/bind';export async function bindExternalUserAccount(_0x532d62,_0x1e35fc){return identitySdkRequest(_0x573b30=>_0x573b30['bindAccount']({'provider':_0x532d62,'accountId':_0x1e35fc}));}function runtimeSchedulePath(_0x1e2685,_0x59a2be=''){const _0x2b4a23=a108_0x3b16;return _0x2b4a23(0x104)+encodeURIComponent(_0x1e2685)+_0x2b4a23(0x14d)+_0x59a2be;}export async function validateRuntimeSchedule(_0x2b5eeb,_0x4cbc0b){const _0x124f42=a108_0x3b16,_0x579b5e=await apiRequest(runtimeSchedulePath(_0x2b5eeb,'/validate'),{'method':_0x124f42(0x14e),'body':_0x4cbc0b});return _0x579b5e[_0x124f42(0x113)];}export async function createRuntimeSchedule(_0x10a347,_0x88e1ac){const _0x4ab9c0=a108_0x3b16,_0x4a2d77=await apiRequest(runtimeSchedulePath(_0x10a347),{'method':_0x4ab9c0(0x14e),'body':_0x88e1ac});return _0x4a2d77[_0x4ab9c0(0x113)];}export async function listRuntimeSchedules(_0x5e7898,_0x393cc3){const _0x25df34=a108_0x3b16,_0x246af1=new URLSearchParams();_0x246af1[_0x25df34(0xce)](_0x25df34(0xa7),_0x393cc3[_0x25df34(0xa7)]);if(_0x393cc3['limit']!==undefined)_0x246af1['set'](_0x25df34(0x93),String(_0x393cc3[_0x25df34(0x93)]));if(_0x393cc3[_0x25df34(0xb5)])_0x246af1[_0x25df34(0xce)](_0x25df34(0xb5),_0x393cc3[_0x25df34(0xb5)]);const _0x1257ad=_0x246af1['size']>0x0?'?'+_0x246af1[_0x25df34(0xc9)]():'',_0x21ffbc=await apiRequest(''+runtimeSchedulePath(_0x5e7898)+_0x1257ad);return _0x21ffbc[_0x25df34(0x113)];}export async function getRuntimeSchedule(_0x24164a,_0x1b8c6d){const _0x3227af=a108_0x3b16,_0x3af4d4=await apiRequest(runtimeSchedulePath(_0x24164a,'/'+encodeURIComponent(_0x1b8c6d)));return _0x3af4d4[_0x3227af(0x113)];}export async function deleteRuntimeSchedule(_0x260e8d,_0x542229){const _0x3af54b=a108_0x3b16,_0x301ffe=await apiRequest(runtimeSchedulePath(_0x260e8d,'/'+encodeURIComponent(_0x542229)),{'method':'DELETE'});return _0x301ffe[_0x3af54b(0x113)];}export async function runRuntimeSchedule(_0x52ba84,_0x52fc19){const _0x4cb9cf=a108_0x3b16,_0x4c5987=await apiRequest(runtimeSchedulePath(_0x52ba84,'/'+encodeURIComponent(_0x52fc19)+'/run'),{'method':'POST'});return _0x4c5987[_0x4cb9cf(0x113)];}export async function listDatasets(_0x28a44f,_0x264680){const _0x5af8e9=a108_0x3b16,_0x5dc469=await sdkRequest(_0x28a44f,_0x5e79c1=>_0x5e79c1['datasetMeta'][_0x5af8e9(0xa4)]({..._0x264680?.['code']&&{'code':_0x264680[_0x5af8e9(0x122)]},..._0x264680?.['name']&&{'name':_0x264680['name']},..._0x264680?.[_0x5af8e9(0x136)]&&{'tableName':_0x264680[_0x5af8e9(0x136)]}}));return extractList(_0x5dc469);}export async function getDatasetDetail(_0x430483){const _0x1571ae=a108_0x3b16;return sdkRequest(undefined,_0x162ba5=>_0x162ba5[_0x1571ae(0xc5)][_0x1571ae(0x128)]({'code':_0x430483}));}function importSdkRequest(_0x450da7,_0x4a0682,_0x4fe608){return sdkRequest(_0x450da7,_0x3d591b=>{const _0x4e5497=a108_0x3b16,_0x3e761c=_0x3d591b['getModel'](_0x4e5497(0xb8)+_0x4a0682);if(!(_0x3e761c instanceof ClientAkModel))throw CliErrors[_0x4e5497(0x127)](_0x4e5497(0x157));return _0x4fe608(_0x3e761c);});}export async function getDatasetImportContract(_0x3fd0e6,_0x425602){return importSdkRequest(_0x3fd0e6,_0x425602,_0x4d9709=>_0x4d9709['importContract']());}export async function createDatasetImportBatch(_0x29d655,_0x284efd,_0x2fee0a){const _0x444cbd=a108_0x3b16;return importSdkRequest(_0x29d655,_0x284efd,_0x575f9f=>_0x575f9f[_0x444cbd(0xcf)](_0x2fee0a));}export async function readDatasetImportRows(_0x26d804,_0x1620fb,_0x236c28){const _0x502e93=a108_0x3b16,_0x25249d=await importSdkRequest(_0x26d804,_0x1620fb,_0x3d97d1=>_0x3d97d1['importReadback']({'ids':_0x236c28}));if(!_0x25249d||!Array['isArray'](_0x25249d[_0x502e93(0xab)]))throw CliErrors[_0x502e93(0xaf)]('Invalid\x20import\x20readback\x20response.');return _0x25249d[_0x502e93(0xab)];}export async function readDatasetImportTaskRows(_0x29cedc,_0x5749d7,_0x4b3ee7){const _0x47d66f=a108_0x3b16,_0x46ab9c=await importSdkRequest(_0x29cedc,_0x5749d7,_0x431749=>_0x431749[_0x47d66f(0x169)]({'taskId':_0x4b3ee7}));if(!_0x46ab9c||!Array[_0x47d66f(0xa3)](_0x46ab9c[_0x47d66f(0xab)]))throw CliErrors['apiError'](_0x47d66f(0x105));return _0x46ab9c['items'];}export async function uploadDatasetImportImage(_0x34f227,_0x2c0eec,_0x1dcf96,_0x5d23ec){const _0x9eedde=a108_0x3b16;return importSdkRequest(_0x34f227,_0x2c0eec,_0x2272a7=>_0x2272a7[_0x9eedde(0x15f)]({'importId':_0x1dcf96,'contentHash':_0x5d23ec[_0x9eedde(0x11a)],'file':new Blob([new Uint8Array(_0x5d23ec[_0x9eedde(0x9c)])],{'type':_0x5d23ec['type']}),'fileName':_0x9eedde(0x158)}));}export async function readDatasetImportImage(_0x1e28ac,_0x224c4c,_0x50097c,_0x4fbd50){const _0x4e090f=a108_0x3b16;return importSdkRequest(_0x1e28ac,_0x224c4c,_0x4ca37d=>_0x4ca37d['importImageReadback']({'importId':_0x50097c,'contentHash':_0x4fbd50[_0x4e090f(0x11a)],'type':_0x4fbd50[_0x4e090f(0x12b)],'size':_0x4fbd50[_0x4e090f(0x162)]}));}export async function getDatasetSdkUsageDoc(_0x46c914,_0x2df7ba){const _0xe24794=a108_0x3b16,_0x2fcced=await toolboxRequest(_0xe24794(0x154),{'datasetCode':_0x46c914,'appCode':_0x2df7ba});return typeof _0x2fcced?.[_0xe24794(0xb2)]===_0xe24794(0xd7)?_0x2fcced[_0xe24794(0xb2)]:'';}export async function uploadRuntimeFile(_0x13ff9f,_0xddd258){const _0x26c15d=a108_0x3b16,_0x3e96d7=await readFile(_0xddd258);return sdkRequest(_0x13ff9f,_0x32ff5c=>_0x32ff5c[_0x26c15d(0x14b)][_0x26c15d(0x150)][_0x26c15d(0x142)]({'file':new Blob([new Uint8Array(_0x3e96d7)]),'fileName':basename(_0xddd258)}));}export async function queryRuntimeFileUrl(_0x438259,_0x5db512={}){const _0x55a298=a108_0x3b16;return sdkRequest(undefined,_0x5b4f91=>_0x5b4f91[_0x55a298(0x14b)][_0x55a298(0x150)][_0x55a298(0x116)]({'filePath':_0x438259,..._0x5db512}));}export async function recognizeRuntimeOcr(_0x353954,_0x54fe10){const _0x28190e=a108_0x3b16;return sdkRequest(_0x353954,_0x54ef8b=>_0x54ef8b[_0x28190e(0x14b)][_0x28190e(0x97)][_0x28190e(0x16f)](_0x54fe10));}export async function getRuntimeAppConfigByKey(_0x36a559,_0x6e9fcf){const _0x1afcee=a108_0x3b16,_0x36a8ab=await sdkRequest(_0x36a559,_0x2be889=>_0x2be889['app'][_0x1afcee(0x16b)](_0x6e9fcf));if(typeof _0x36a8ab!==_0x1afcee(0xd7))throw CliErrors[_0x1afcee(0x127)](_0x1afcee(0x10b)+_0x6e9fcf);return _0x36a8ab;}export async function listNotificationChannelConfigs(_0x28ccbe,_0x1d3531){const _0x507b78=a108_0x3b16,_0x291418=await sdkRequest(_0x28ccbe,_0x178be1=>_0x178be1[_0x507b78(0x15c)][_0x507b78(0x112)](_0x1d3531));if(!Array[_0x507b78(0xa3)](_0x291418))throw CliErrors[_0x507b78(0xaf)](_0x507b78(0x11e),_0x507b78(0x13a));return _0x291418;}export async function listRuntimeArtifacts(_0x40a958,_0x33ef0c){const _0xc02c50=a108_0x3b16,_0xa39a26=await sdkRequest(_0x40a958,_0x244d33=>_0x244d33[_0xc02c50(0x121)][_0xc02c50(0xa4)](_0x33ef0c));return Array['isArray'](_0xa39a26)?_0xa39a26:[];}export async function getRuntimeArtifact(_0x279338,_0x5d8300){const _0x4cbbf2=a108_0x3b16,_0x5bb234=await sdkRequest(_0x5d8300,_0x28fa24=>_0x28fa24[_0x4cbbf2(0x121)]['get'](_0x279338));if(!_0x5bb234)throw CliErrors[_0x4cbbf2(0x127)]('Artifact\x20not\x20found:\x20id='+_0x279338);return _0x5bb234;}export async function createRuntimeArtifact(_0x2a7553,_0x2a3fbe){const _0x3412bb=a108_0x3b16;return sdkRequest(_0x2a7553,_0x3e22ef=>_0x3e22ef[_0x3412bb(0x121)][_0x3412bb(0x145)](_0x2a3fbe));}export async function updateRuntimeArtifact(_0x41429e,_0x37817c,_0x4cf44c){const _0x11c032=a108_0x3b16;return sdkRequest(_0x37817c,_0x5923d0=>_0x5923d0[_0x11c032(0x121)]['update'](_0x41429e,_0x4cf44c));}export async function listPersonalBffs(_0x57f41e){const _0x27e3de=a108_0x3b16,_0x16c0dd=await sdkRequest(_0x57f41e,_0xa049eb=>_0xa049eb[_0x27e3de(0x117)][_0x27e3de(0xb3)][_0x27e3de(0xa4)]());return Array['isArray'](_0x16c0dd)?_0x16c0dd:[];}export async function getPersonalBff(_0xf32b5e,_0x3a945d){const _0x2706c5=a108_0x3b16,_0x21d8de=await sdkRequest(_0x3a945d,_0xd8f3b3=>_0xd8f3b3[_0x2706c5(0x117)][_0x2706c5(0xb3)][_0x2706c5(0x10d)](_0xf32b5e));if(!_0x21d8de)throw CliErrors[_0x2706c5(0x127)](_0x2706c5(0x16a)+_0xf32b5e);return _0x21d8de;}export async function createPersonalBff(_0x4df575,_0x2e8092){const _0x11c5f0=a108_0x3b16;return sdkRequest(_0x4df575,_0x96f00c=>_0x96f00c['personal'][_0x11c5f0(0xb3)][_0x11c5f0(0x145)](_0x2e8092));}export async function updatePersonalBff(_0x5478df,_0x51fb0b,_0x5159cd){const _0xbfd0ee=a108_0x3b16;return sdkRequest(_0x51fb0b,_0x2eb24b=>_0x2eb24b[_0xbfd0ee(0x117)][_0xbfd0ee(0xb3)][_0xbfd0ee(0xf6)](_0x5478df,_0x5159cd));}export async function executePersonalBff(_0x5566d2,_0x2da3fa,_0x3fc5d4){const _0x3767b1=a108_0x3b16;return sdkRequest(_0x2da3fa,_0x145055=>_0x145055[_0x3767b1(0x117)][_0x3767b1(0xb3)][_0x3767b1(0x164)]({'scriptId':_0x5566d2,'params':_0x3fc5d4}));}export async function listPersonalKnowledgeBaseItems(_0x13dc0a,_0xc6e3bc){return listPersonalKnowledge({'appCode':_0x13dc0a,'accessKey':_activeAK,'signal':_0xc6e3bc});}export async function getPersonalKnowledgeBaseItem(_0x170aa5,_0x55fd6e,_0x1bedd0){return getPersonalKnowledge({'appCode':_0x55fd6e,'accessKey':_activeAK,'signal':_0x1bedd0},_0x170aa5);}export async function createPersonalKnowledgeBaseItem(_0x5ca075,_0x2478fb,_0x412b92){return savePersonalKnowledge({'appCode':_0x5ca075,'accessKey':_activeAK,'signal':_0x412b92},_0x2478fb);}export async function updatePersonalKnowledgeBaseItem(_0x1d7a23,_0x2a6110,_0x591c69,_0x16554e){return savePersonalKnowledge({'appCode':_0x2a6110,'accessKey':_activeAK,'signal':_0x16554e},_0x591c69,_0x1d7a23);}export async function getRuntimeSkillByCode(_0x412ad4,_0x2117a6){const _0x44f53a=a108_0x3b16,_0x272a9f=await skillHubJsonRequest(_0x44f53a(0x147)+encodeURIComponent(_0x412ad4)+'/'+encodeURIComponent(_0x2117a6),{'allowNotFound':!![]});return _0x272a9f?skillHubRuntimeDetailToRuntimeSkill(_0x272a9f):undefined;}export async function listRuntimeSkills(_0x57577b){const _0x17d832=a108_0x3b16,_0xb94bc2=await skillHubJsonRequest(_0x17d832(0x9f)+encodeURIComponent(_0x57577b[_0x17d832(0x168)])+_0x17d832(0xf0),{'query':{'page':0x0,'size':0xc8}});return normalizeSkillHubRuntimeListResponse(_0x57577b['appCode'],_0xb94bc2,_0x57577b[_0x17d832(0x109)]??_0x17d832(0x148),_0x57577b[_0x17d832(0x122)],_0x57577b['installableOnly']);}export async function listPersonalRuntimeSkills(_0x88acfa){const _0x18f5a3=a108_0x3b16;return(await listRuntimeSkills({'appCode':_0x88acfa,'scope':_0x18f5a3(0x117)}))[_0x18f5a3(0x117)];}export async function listCompanyRuntimeSkills(_0x5c84f0){const _0x3598b3=a108_0x3b16;return(await listRuntimeSkills({'appCode':_0x5c84f0,'scope':_0x3598b3(0x152)}))['company'];}export async function listVisibleRuntimeSkills(_0xdd8eb2){const _0x3da7c6=a108_0x3b16;return(await listRuntimeSkills({'appCode':_0xdd8eb2,'scope':'all'}))[_0x3da7c6(0x155)];}export async function createPersonalRuntimeSkill(_0x53c322,_0xc6dc4c,_0xa95515={}){const _0x4d6dba=a108_0x3b16;return publishRuntimeSkill(_0x53c322,_0xc6dc4c,{'visibility':_0x4d6dba(0x114),'confirmWarnings':_0xa95515[_0x4d6dba(0xe0)]});}export async function updatePersonalRuntimeSkill(_0x3f424e,_0x1cd62c,_0x4cd20b,_0x3f5fa9={}){const _0x569e3d=a108_0x3b16;return publishRuntimeSkill(_0x1cd62c,{..._0x4cd20b,'skillCode':_0x4cd20b['skillCode']??_0x3f424e},{'visibility':_0x569e3d(0x114),'confirmWarnings':_0x3f5fa9[_0x569e3d(0xe0)]});}export async function publishCompanyRuntimeSkill(_0x11da7c,_0x3946c9,_0x1a77be={}){const _0x1b9810=a108_0x3b16;return publishRuntimeSkill(_0x11da7c,_0x3946c9,{'visibility':_0x1b9810(0x9a),'confirmWarnings':_0x1a77be[_0x1b9810(0xe0)]});}export async function validateRuntimeSkillPublish(_0x110bd8,_0x1184c3,_0x276568){const _0x2a4080=a108_0x3b16,_0xdfd939=buildRuntimeSkillPublishForm(_0x1184c3,_0x276568['visibility']),_0x6ca45d=await skillHubJsonRequest(_0x2a4080(0x126)+encodeURIComponent(_0x110bd8)+'/publish/validate',{'method':'POST','body':_0xdfd939});return assertJointDiagramAcknowledged(_0x1184c3['diagram'],_0x6ca45d[_0x2a4080(0xdd)],_0x2a4080(0x127)),{'valid':_0x6ca45d[_0x2a4080(0xc3)]===!![],'errors':Array[_0x2a4080(0xa3)](_0x6ca45d['errors'])?_0x6ca45d['errors']:[],'warnings':Array['isArray'](_0x6ca45d['warnings'])?_0x6ca45d[_0x2a4080(0x11b)]:[],'resolvedSlug':_0x6ca45d[_0x2a4080(0x153)],'resolvedVersion':_0x6ca45d['resolvedVersion'],'diagramValidated':_0x6ca45d[_0x2a4080(0xdd)]===!![]};}export async function validateRuntimeSkillVersionDiagram(_0x759dcc,_0x2728fe,_0x427832,_0x41a7c2,_0x178115){const _0x4495d8=a108_0x3b16;return skillHubJsonRequest(runtimeSkillVersionDiagramPath(_0x759dcc,_0x2728fe,_0x427832,_0x4495d8(0x13f)),{'method':_0x4495d8(0x14e),'query':{'scope':_0x41a7c2},'headers':{'Content-Type':_0x4495d8(0xd6)},'body':JSON[_0x4495d8(0x161)](_0x178115)});}export async function putRuntimeSkillVersionDiagram(_0x25488e,_0x51f497,_0x3b1b4c,_0x1ff9e5,_0x36c4d1){const _0x1199c2=a108_0x3b16;return skillHubJsonRequest(runtimeSkillVersionDiagramPath(_0x25488e,_0x51f497,_0x3b1b4c),{'method':'PUT','query':{'scope':_0x1ff9e5},'headers':{'Content-Type':'application/json'},'body':JSON[_0x1199c2(0x161)](_0x36c4d1)});}export async function getRuntimeSkillVersionDiagram(_0xd3951f,_0x365cfd,_0x4ec8d7,_0xb070aa){const _0x57981a=a108_0x3b16,_0x42a68f=await skillHubJsonRequest(runtimeSkillVersionDiagramPath(_0xd3951f,_0x365cfd,_0x4ec8d7),{'query':{'scope':_0xb070aa}});if(typeof _0x42a68f[_0x57981a(0x166)]!==_0x57981a(0xfb))throw CliErrors[_0x57981a(0xaf)]('Invalid\x20Skill\x20diagram\x20response:\x20missing\x20found\x20state.');const _0x52f70e=_0x42a68f[_0x57981a(0x9d)];if(typeof _0x52f70e!=='string'||!/^sha256:[0-9a-f]{64}$/[_0x57981a(0x15e)](_0x52f70e))throw CliErrors[_0x57981a(0xaf)]('Invalid\x20Skill\x20diagram\x20response:\x20missing\x20canonical\x20sourceFingerprint.',_0x57981a(0xd5));const _0x35f5ce=_0x42a68f[_0x57981a(0x110)];if(_0x42a68f[_0x57981a(0x166)]&&(!Number[_0x57981a(0xc0)](_0x35f5ce)||Number(_0x35f5ce)<0x1))throw CliErrors[_0x57981a(0xaf)](_0x57981a(0x11d));if(!_0x42a68f['found']&&_0x35f5ce!==undefined&&_0x35f5ce!==null)throw CliErrors[_0x57981a(0xaf)](_0x57981a(0x102));const _0x3f9d9c=_0x42a68f[_0x57981a(0x166)]?Number(_0x35f5ce):null;return{..._0x42a68f,'sourceFingerprint':_0x52f70e,'diagramRevision':_0x3f9d9c,'expectedDiagramRevision':_0x3f9d9c??0x0};}export async function downloadRuntimeSkillPackage(_0x5ac0d4,_0x394dcc,_0x181ac8,_0x11d4a3){const _0x1edd16=a108_0x3b16;void _0x5ac0d4;const _0x5db463=_0x11d4a3?'/api/cli/v1/skills/'+encodeURIComponent(_0x181ac8)+'/'+encodeURIComponent(_0x394dcc)+_0x1edd16(0x10a)+encodeURIComponent(_0x11d4a3)+'/download':_0x1edd16(0x126)+encodeURIComponent(_0x181ac8)+'/'+encodeURIComponent(_0x394dcc)+_0x1edd16(0xc1);return skillHubBinaryRequest(_0x5db463);}async function publishRuntimeSkill(_0x15634a,_0x3debc6,_0x1f4554){const _0x13f07=a108_0x3b16,_0x2ffe64=buildRuntimeSkillPublishForm(_0x3debc6,_0x1f4554[_0x13f07(0x14a)]),_0x6b0041=await skillHubJsonRequest(_0x13f07(0x126)+encodeURIComponent(_0x15634a)+_0x13f07(0xde),{'method':_0x13f07(0x14e),'query':{'confirmWarnings':_0x1f4554[_0x13f07(0xe0)]===!![]?!![]:undefined},'body':_0x2ffe64});return assertJointDiagramAcknowledged(_0x3debc6['diagram'],_0x6b0041[_0x13f07(0xf3)],_0x13f07(0x11f)),{'appCode':_0x6b0041['namespace']??_0x15634a,'skillCode':_0x6b0041[_0x13f07(0x100)]??_0x3debc6[_0x13f07(0x144)]??'','skillName':_0x3debc6[_0x13f07(0xf2)]??_0x6b0041['slug']??_0x3debc6['skillCode'],'description':_0x3debc6['description'],'scope':skillHubVisibilityToScope(_0x6b0041['visibility']??_0x1f4554[_0x13f07(0x14a)])??_0x13f07(0x117),'version':_0x6b0041[_0x13f07(0xd9)]??_0x3debc6[_0x13f07(0xd9)],'tags':_0x3debc6['tags'],'content':_0x3debc6['content'],'diagramBound':_0x6b0041[_0x13f07(0xf3)]===!![]};}function assertJointDiagramAcknowledged(_0x25a70e,_0x1d61ca,_0x333f6f){const _0x3021d5=a108_0x3b16;if(!_0x25a70e||_0x1d61ca===!![])return;throw CliErrors[_0x3021d5(0xaf)](_0x3021d5(0x151)+_0x333f6f+'.','Deploy\x20a\x20SkillHub\x20version\x20that\x20returns\x20diagramValidated/diagramBound\x20before\x20publishing\x20with\x20this\x20CLI.');}function buildRuntimeSkillPublishForm(_0x52b378,_0x3845a6){const _0x283726=a108_0x3b16,_0x4403cd=new FormData();return _0x4403cd[_0x283726(0xce)](_0x283726(0x150),runtimeSkillPackageFile(_0x52b378)),_0x52b378[_0x283726(0xf2)]?.[_0x283726(0xd4)]()&&_0x4403cd[_0x283726(0xce)](_0x283726(0xd0),_0x52b378[_0x283726(0xf2)]['trim']()),_0x4403cd[_0x283726(0xce)](_0x283726(0x14a),_0x3845a6),_0x52b378[_0x283726(0x99)]&&_0x4403cd[_0x283726(0xce)](_0x283726(0x99),new Blob([JSON[_0x283726(0x161)](_0x52b378[_0x283726(0x99)])],{'type':'application/json'})),_0x4403cd;}function runtimeSkillVersionDiagramPath(_0x191c82,_0x5a679a,_0x386be6,_0x223d95=''){const _0x321098=a108_0x3b16;return _0x321098(0x126)+encodeURIComponent(_0x191c82)+'/'+encodeURIComponent(_0x5a679a)+_0x321098(0x10a)+encodeURIComponent(_0x386be6)+_0x321098(0x16c)+_0x223d95;}function runtimeSkillPackageFile(_0x5bccfd){const _0xdf9434=a108_0x3b16;if(!_0x5bccfd[_0xdf9434(0x141)])throw CliErrors['validation'](_0xdf9434(0x139));const _0x1ea20c=Buffer[_0xdf9434(0x12e)](_0x5bccfd['packageBase64'],_0xdf9434(0xe2)),_0x390111=new Blob([_0x1ea20c],{'type':_0xdf9434(0xf1)}),_0x2cfeab=(_0x5bccfd['skillCode']||_0xdf9434(0x132))+_0xdf9434(0x170);if(typeof File!==_0xdf9434(0x9e))return new File([_0x390111],_0x2cfeab,{'type':_0xdf9434(0xf1)});return _0x390111;}function normalizeSkillHubRuntimeListResponse(_0x323a37,_0x10ae82,_0x487255,_0x566395,_0x55df39=![]){const _0x5b7151=a108_0x3b16,_0x372cbb=Array['isArray'](_0x10ae82)?_0x10ae82:Array[_0x5b7151(0xa3)](_0x10ae82?.[_0x5b7151(0xab)])?_0x10ae82[_0x5b7151(0xab)]:[],_0x56ff04=_0x566395?.['trim'](),_0x2bc2ab=_0x372cbb['filter'](_0x3a20b6=>!_0x56ff04||_0x3a20b6[_0x5b7151(0x100)]===_0x56ff04)[_0x5b7151(0x133)](_0x456ae0=>!_0x55df39||_0x456ae0[_0x5b7151(0xa6)]?.['status']===_0x5b7151(0x146)&&Boolean(_0x456ae0[_0x5b7151(0xa6)][_0x5b7151(0xd9)]?.[_0x5b7151(0xd4)]()))['map'](skillHubRuntimeItemToRuntimeSkill)['filter'](_0x14d4da=>Boolean(_0x14d4da)),_0x2344f5=_0x2bc2ab[_0x5b7151(0x133)](_0x468261=>_0x468261[_0x5b7151(0x109)]===_0x5b7151(0x117)),_0x104294=_0x2bc2ab[_0x5b7151(0x133)](_0x173439=>_0x173439[_0x5b7151(0x109)]==='company');return{'appCode':_0x323a37,'personal':_0x487255===_0x5b7151(0x152)?[]:_0x2344f5,'company':_0x487255===_0x5b7151(0x117)?[]:_0x104294,'effective':buildEffectiveRuntimeSkills(_0x2344f5,_0x104294,_0x487255)};}function skillHubRuntimeItemToRuntimeSkill(_0x23709e){const _0x4f1640=a108_0x3b16,_0x8a2473=_0x23709e[_0x4f1640(0x100)]?.[_0x4f1640(0xd4)](),_0x1da68e=skillHubVisibilityToScope(_0x23709e[_0x4f1640(0x14a)]);if(!_0x8a2473||!_0x1da68e)return undefined;return{'id':_0x23709e['id'],'appCode':_0x23709e[_0x4f1640(0xbb)],'skillCode':_0x8a2473,'skillName':_0x23709e['displayName']??_0x8a2473,'description':_0x23709e[_0x4f1640(0xdf)],'example':_0x23709e['example'],'scope':_0x1da68e,'version':skillHubRuntimeItemVersion(_0x23709e),'status':_0x23709e[_0x4f1640(0x101)]};}function skillHubRuntimeDetailToRuntimeSkill(_0x39332e){const _0x5c1883=a108_0x3b16,_0xb7a140=_0x39332e[_0x5c1883(0x100)]?.[_0x5c1883(0xd4)]();if(!_0xb7a140)return undefined;return{'id':_0x39332e['id'],'appCode':_0x39332e[_0x5c1883(0xbb)],'skillCode':_0xb7a140,'skillName':_0x39332e[_0x5c1883(0xd0)]??_0xb7a140,'description':_0x39332e[_0x5c1883(0xdf)],'example':_0x39332e[_0x5c1883(0xca)],'scope':skillHubVisibilityToScope(_0x39332e[_0x5c1883(0x14a)])??_0x39332e[_0x5c1883(0x14a)]?.['toLowerCase'](),'version':skillHubRuntimeItemVersion(_0x39332e),'status':_0x39332e[_0x5c1883(0x101)]};}function skillHubVisibilityToScope(_0x35ed0a){const _0x454af5=a108_0x3b16;if(_0x35ed0a===_0x454af5(0x114))return _0x454af5(0x117);if(_0x35ed0a==='NAMESPACE_ONLY')return _0x454af5(0x152);return undefined;}function skillHubRuntimeItemVersion(_0x46b349){const _0x25ab5f=a108_0x3b16;return _0x46b349[_0x25ab5f(0xa6)]?.['version']??_0x46b349['headlineVersion']?.[_0x25ab5f(0xd9)]??_0x46b349[_0x25ab5f(0x14c)]?.[_0x25ab5f(0xd9)];}function buildEffectiveRuntimeSkills(_0x58b29f,_0xe569ea,_0x14608d){const _0x1835bb=a108_0x3b16;if(_0x14608d===_0x1835bb(0x117))return _0x58b29f;if(_0x14608d===_0x1835bb(0x152))return _0xe569ea;const _0x1ffb82=new Map();for(const _0x437797 of _0xe569ea){_0x1ffb82[_0x1835bb(0xce)](_0x437797[_0x1835bb(0x144)],_0x437797);}for(const _0x51bb66 of _0x58b29f){_0x1ffb82[_0x1835bb(0xce)](_0x51bb66[_0x1835bb(0x144)],_0x51bb66);}return Array[_0x1835bb(0x12e)](_0x1ffb82[_0x1835bb(0xf5)]());}function normalizeRuntimeSkillListResponse(_0xae9207,_0x2462a9){const _0x80fc68=a108_0x3b16;if(Array['isArray'](_0x2462a9)){const _0x30e3b4=_0x2462a9['filter'](_0x3230e5=>_0x3230e5['scope']===_0x80fc68(0x117)),_0x59a50d=_0x2462a9['filter'](_0x220d5c=>_0x220d5c[_0x80fc68(0x109)]===_0x80fc68(0x152));return{'appCode':_0xae9207,'personal':_0x30e3b4,'company':_0x59a50d,'effective':[..._0x59a50d,..._0x30e3b4]};}return{'appCode':_0x2462a9?.[_0x80fc68(0x168)]??_0xae9207,'personal':Array['isArray'](_0x2462a9?.['personal'])?_0x2462a9['personal']:[],'company':Array[_0x80fc68(0xa3)](_0x2462a9?.[_0x80fc68(0x152)])?_0x2462a9[_0x80fc68(0x152)]:[],'effective':Array[_0x80fc68(0xa3)](_0x2462a9?.[_0x80fc68(0x155)])?_0x2462a9[_0x80fc68(0x155)]:[]};}function normalizeRuntimeRoleUserList(_0x4e62a1,_0x28e151){const _0x4a41e2=a108_0x3b16;if(!Array['isArray'](_0x4e62a1))throw CliErrors[_0x4a41e2(0xaf)](_0x4a41e2(0xe9)+_0x28e151+'\x20must\x20be\x20an\x20array.');return _0x4e62a1[_0x4a41e2(0x94)]((_0x52d7ea,_0x57d46f)=>{const _0x30d74a=_0x4a41e2;if(!_0x52d7ea||typeof _0x52d7ea!=='object'||Array[_0x30d74a(0xa3)](_0x52d7ea))throw CliErrors[_0x30d74a(0xaf)](_0x30d74a(0xe9)+_0x28e151+'['+_0x57d46f+_0x30d74a(0xd3));const _0x5d1707=_0x52d7ea,_0x3bbfa5=normalizeRuntimeUserId(_0x5d1707[_0x30d74a(0x15d)]);if(_0x3bbfa5===undefined)throw CliErrors['apiError']('Invalid\x20runtime\x20role\x20members\x20response:\x20'+_0x28e151+'['+_0x57d46f+_0x30d74a(0x10f));return{..._0x5d1707,'userId':_0x3bbfa5};});}function normalizeRuntimeRoleUsersResponse(_0x59825b){const _0xffb652=a108_0x3b16;return extractList(_0x59825b)[_0xffb652(0x94)]((_0x23e979,_0xee8f98)=>{const _0x206251=_0xffb652;if(!_0x23e979||typeof _0x23e979!==_0x206251(0x12d)||Array[_0x206251(0xa3)](_0x23e979))throw CliErrors[_0x206251(0xaf)](_0x206251(0x103)+_0xee8f98+']\x20must\x20be\x20an\x20object.');const _0x33c3a8=_0x23e979;return{..._0x33c3a8,'userList':normalizeRuntimeRoleUserList(_0x33c3a8[_0x206251(0xfe)],_0x206251(0x137)+_0xee8f98+_0x206251(0x13d)),..._0x33c3a8[_0x206251(0x130)]===undefined?{}:{'applyUserList':normalizeRuntimeRoleUserList(_0x33c3a8['applyUserList'],_0x206251(0x137)+_0xee8f98+_0x206251(0xfa))}};});}export async function listRuntimeAppRoles(_0x398019,_0x59041c={}){const _0x15c6c8=a108_0x3b16,_0x443e72=_0x59041c[_0x15c6c8(0xd8)]??0x1,_0x193d56=Math[_0x15c6c8(0xea)](Math[_0x15c6c8(0xff)](_0x59041c[_0x15c6c8(0xad)]??0x64,0x1),0x64),_0xcb1c27=await sdkRequest(_0x398019,_0x2c2293=>_0x2c2293[_0x15c6c8(0xf9)]['getRoleList']({..._0x59041c[_0x15c6c8(0xbf)]?{'roleName':_0x59041c[_0x15c6c8(0xbf)]}:{},'currentPage':_0x443e72,'pageSize':_0x193d56}));return{'items':extractList(_0xcb1c27),'paging':extractPaging(_0xcb1c27)};}export async function createRuntimeAppRole(_0x54e507){const _0x29a4e3=a108_0x3b16;return sdkRequest(_0x54e507[_0x29a4e3(0x168)],_0x1eb55a=>_0x1eb55a[_0x29a4e3(0xf9)][_0x29a4e3(0xbd)]({'roleType':_0x29a4e3(0x16e),..._0x54e507}));}export async function updateRuntimeAppRole(_0x27c2fd){const _0x512fad=a108_0x3b16;return sdkRequest(_0x27c2fd[_0x512fad(0x168)],_0x59ca0f=>_0x59ca0f[_0x512fad(0xf9)][_0x512fad(0xf4)](_0x27c2fd));}export async function deleteRuntimeAppRole(_0x1a32ed){const _0x376806=a108_0x3b16;return sdkRequest(undefined,_0x202bc1=>_0x202bc1[_0x376806(0xf9)]['deleteRole'](_0x1a32ed));}export async function listRuntimeRoleUsers(_0x171880){const _0x361993=a108_0x3b16,_0x3ff047=await sdkRequest(_0x171880,_0x32b80d=>_0x32b80d['permit'][_0x361993(0xa9)]());return normalizeRuntimeRoleUsersResponse(_0x3ff047);}export async function updateRuntimeRoleUsers(_0x4e0095,_0x138441){const _0x3d5c36=a108_0x3b16;return sdkRequest(_0x4e0095,_0x45d250=>_0x45d250[_0x3d5c36(0xf9)][_0x3d5c36(0x15a)]({'roleList':_0x138441}));}export async function listRuntimeAppUsers(_0x28f5b9){const _0x2f4ce6=a108_0x3b16,_0x4e99d5=await sdkRequest(_0x28f5b9,_0x3254b0=>_0x3254b0['permit'][_0x2f4ce6(0x129)]());return extractList(_0x4e99d5);}export async function listRuntimePermitRoles(_0x164f57,_0x518005={}){const _0x41f18a=a108_0x3b16,_0x5b5a1c=await sdkRequest(_0x164f57,_0x4598ca=>_0x4598ca[_0x41f18a(0xf9)]['getRolePermitList'](_0x518005));return extractList(_0x5b5a1c);}export async function getRuntimePagePermit(_0x4b394e){const _0x506c10=a108_0x3b16;return sdkRequest(undefined,_0x3c0664=>_0x3c0664[_0x506c10(0xf9)][_0x506c10(0x120)](_0x4b394e));}export async function saveRuntimePagePermit(_0x20d5e3){const _0x475327=a108_0x3b16;return sdkRequest(_0x20d5e3[_0x475327(0x168)],_0x1a62c7=>_0x1a62c7[_0x475327(0xf9)]['savePagePermit'](_0x20d5e3));}export async function getRuntimeRoleMenuResources(_0x518d77,_0x31931e){const _0x5dc325=a108_0x3b16,_0x2e6d3c=await sdkRequest(_0x518d77,_0x178df5=>_0x178df5[_0x5dc325(0xf9)]['getResourceMenuList']({'roleId':_0x31931e}));return extractList(_0x2e6d3c);}export async function listRuntimeMenuRolePermits(_0x2824e9){const _0x4abc13=a108_0x3b16,_0x3d7ca0=await sdkRequest(_0x2824e9,_0x44b5a5=>_0x44b5a5[_0x4abc13(0xf9)][_0x4abc13(0x138)]());return Array[_0x4abc13(0xa3)](_0x3d7ca0?.[_0x4abc13(0xb9)])?_0x3d7ca0['permitList']:[];}export async function saveRuntimeMenuRolePermits(_0x5b2eca,_0x560531){const _0x363abc=a108_0x3b16;return sdkRequest(_0x5b2eca,_0x5f2d8a=>_0x5f2d8a[_0x363abc(0xf9)]['saveMenuPermits']({'permitList':_0x560531}));}function a108_0x3a31(){const _0x28cfc8=['loginUserInfo','roleName','isInteger','/download','approval','valid','myApps','datasetMeta','SkillHub\x20returned\x20non-JSON\x20response\x20(HTTP\x20','Toolbox\x20returned\x20non-JSON\x20response\x20(HTTP\x20','authRequired','toString','example','4874032WZxezx','Application\x20code\x20contains\x20invalid\x20URL\x20path\x20characters.','functions','set','importBatch','displayName','replace','Check\x20your\x20credentials\x20and\x20try\x20again.',']\x20must\x20be\x20an\x20object.','trim','SkillHub\x20must\x20return\x20the\x20exact\x20SkillVersion\x20fingerprint\x20even\x20when\x20found=false.','application/json','string','currentPage','version','application/octet-stream','Invalid\x20app\x20list\x20response:\x20missing\x20data.tableData.','transfer','diagramValidated','/publish','summary','confirmWarnings','isJson','base64','Toolbox\x20API\x20error:\x20','Configure\x20accessKey\x20in\x20','API\x20error\x20code:\x20','appName','6aDYQku','1148457lmKdNh','Invalid\x20runtime\x20role\x20members\x20response:\x20','min','10RHURlz','Toolbox\x20error\x20code:\x20','1861218zbfsjj','getEndpoint','Runtime\x20SDK\x20request\x20failed.','/skills','application/zip','skillName','diagramBound','updateRole','values','update','signal','201884etFlvx','permit','].applyUserList','boolean','find','Invalid\x20login\x20user\x20info\x20response:\x20expected\x20object.','userList','max','slug','status','Invalid\x20Skill\x20diagram\x20response:\x20absent\x20diagram\x20must\x20have\x20a\x20null\x20diagramRevision.','Invalid\x20runtime\x20role\x20members\x20response:\x20roleList[','/api/harness/apps/','Invalid\x20import\x20task\x20readback\x20response.','GET','entries','records','scope','/versions/','Invalid\x20app\x20config\x20value:\x20key=','message','get','Backend\x20Function\x20metadata\x20requires\x20Client\x20AK.','].userId\x20is\x20invalid.','diagramRevision','tableData','listNotificationChannels','data','PRIVATE','description','queryUrl','personal','number','gmtModified','contentHash','warnings','errorMsg','Invalid\x20Skill\x20diagram\x20response:\x20found\x20diagram\x20has\x20no\x20positive\x20diagramRevision.','Invalid\x20notification\x20config\x20list\x20response.','publish','getPagePermit','artifact','code','text','SkillHub\x20API\x20error:\x20','Backend\x20Function\x20not\x20found\x20or\x20inaccessible:\x20appCode=','/api/cli/v1/skills/','validation','getDrivenData','queryAppUsers','headers','type','error','object','from','isSafeInteger','applyUserList','retryAfter','skill','filter','arrayBuffer','SQL\x20metadata\x20requires\x20Client\x20AK.','tableName','roleList[','getMenuPermitList','Missing\x20Skill\x20package\x20payload.','Expected\x20the\x20server\x20data\x20field\x20to\x20be\x20an\x20array.','AbortError','listTodo','].userList','response','/validate','1AGWTCV','packageBase64','upload','runtime','skillCode','create','PUBLISHED','/api/v1/skills/','all','Invalid\x20Backend\x20Function\x20response:\x20gmtModified\x20must\x20be\x20an\x20integer\x20timestamp\x20or\x20null.','visibility','services','ownerPreviewVersion','/schedules','POST','getDatasetPermitMeta','file','SkillHub\x20does\x20not\x20support\x20atomic\x20Skill\x20diagram\x20','company','resolvedSlug','api-doc-generator','effective','errorCode','Dataset\x20import\x20requires\x20Client\x20AK.','image','abort','updateRoleUserList','query','app','userId','test','importImage','success','stringify','size','invokeSource','execute','api','found','Request\x20timeout:\x20','appCode','importReadback','Personal\x20Backend\x20Function\x20not\x20found:\x20id=','getConfigByKey','/diagram','newConfigFileName','CUSTOM','recognize','.zip','limit','map','Toolbox\x20API\x20error','SkillHub\x20error\x20code:\x20','ocr','sqlCode','diagram','NAMESPACE_ONLY','saveDatasetPermits','bytes','sourceFingerprint','undefined','/api/runtime/v1/namespaces/','approve','msg','name','isArray','list','421240BpLIYu','publishedVersion','kind','Download\x20failed:\x20','getRoleUserList','client-ak','items','getDatasetPermitList','pageSize','searchParams','apiError','17780873SpijTy','function','markdown','bff','API\x20error:\x20','cursor',',\x20name=','474243nxAayv','dataset_','permitList','5HjqTcq','namespace','Invalid\x20approval\x20todo\x20response:\x20missing\x20records.','createRole'];a108_0x3a31=function(){return _0x28cfc8;};return a108_0x3a31();}export async function listRuntimeDatasetPermits(_0x1bed81,_0x46186d){const _0xb2be41=a108_0x3b16,_0x487169=await sdkRequest(_0x1bed81,_0x274435=>_0x274435[_0xb2be41(0xf9)][_0xb2be41(0xac)](_0x46186d));return Array[_0xb2be41(0xa3)](_0x487169?.[_0xb2be41(0xb9)])?_0x487169['permitList']:[];}export async function listRuntimeDatasetRolePermits(_0x75ae68){const _0x59dc8b=a108_0x3b16,_0x1952d1=await sdkRequest(_0x75ae68,_0x2b3798=>_0x2b3798[_0x59dc8b(0xf9)][_0x59dc8b(0x14f)]());return Array['isArray'](_0x1952d1?.[_0x59dc8b(0xb9)])?_0x1952d1[_0x59dc8b(0xb9)]:[];}export async function saveRuntimeDatasetRolePermits(_0x5e436d,_0x2a1363){const _0x185e08=a108_0x3b16;return sdkRequest(_0x5e436d,_0x521d37=>_0x521d37[_0x185e08(0xf9)][_0x185e08(0x9b)]({'permitList':_0x2a1363}));}
1
+ const a108_0x57c787=a108_0x57fd;(function(_0x4393a9,_0x2e15f9){const _0x2175aa=a108_0x57fd,_0x43ad3a=_0x4393a9();while(!![]){try{const _0x28fcb9=-parseInt(_0x2175aa(0xb2))/0x1+parseInt(_0x2175aa(0x13e))/0x2*(-parseInt(_0x2175aa(0x11d))/0x3)+parseInt(_0x2175aa(0xa6))/0x4*(-parseInt(_0x2175aa(0x133))/0x5)+-parseInt(_0x2175aa(0xbf))/0x6+parseInt(_0x2175aa(0x14d))/0x7+parseInt(_0x2175aa(0x100))/0x8*(parseInt(_0x2175aa(0x14e))/0x9)+parseInt(_0x2175aa(0x132))/0xa*(parseInt(_0x2175aa(0x139))/0xb);if(_0x28fcb9===_0x2e15f9)break;else _0x43ad3a['push'](_0x43ad3a['shift']());}catch(_0x1973c4){_0x43ad3a['push'](_0x43ad3a['shift']());}}}(a108_0x2276,0xf2b66));import{ClientAkModel}from'@lovrabet/sdk';import{getSdkClient,getIdentitySdkClient,clearSdkClient}from'../core/sdk-client.js';import{getEnv}from'../constant/env.js';import{readFile}from'node:fs/promises';import{getPersonalKnowledge,listPersonalKnowledge,savePersonalKnowledge}from'../core/kb-management-client.js';import{basename}from'node:path';import{getApiDomain,getRuntimeDomain,getSkillDomain}from'../constant/domain.js';import{PRODUCT_CONFIG}from'../constant/product.js';import{CliError,CliErrors}from'../errors.js';import{createAccessError,readApiErrorCode}from'../framework/access-error.js';import{createRateLimitError,readRetryAfter,readRetryAfterSeconds}from'../framework/rate-limit.js';import{extractList,extractPaging}from'../framework/response.js';import{parseLosslessJson}from'../utils/lossless-json.js';import{normalizeRuntimeUserId}from'../utils/runtime-user-id.js';let _activeAK;export function setActiveAK(_0x254095){if(_activeAK!==(_0x254095||undefined))clearSdkClient();_activeAK=_0x254095||undefined;}export function clearActiveAK(){_activeAK=undefined,clearSdkClient();}async function sdkRequest(_0x5b9c17,_0x522819){const _0x50efe0=a108_0x57fd;if(!_activeAK)throw CliErrors[_0x50efe0(0x145)]('Configure\x20accessKey\x20in\x20'+PRODUCT_CONFIG[_0x50efe0(0x10e)]+'.');const _0x27ab48=_0x5b9c17?getSdkClient({'appCode':_0x5b9c17,'env':getEnv(),'runtimeDomain':getRuntimeDomain(),'authMode':'client-ak','accessKey':_activeAK}):getSdkClient();return withSdkErrors(()=>_0x522819(_0x27ab48));}async function identitySdkRequest(_0x3b11bd){const _0x502b31=a108_0x57fd,_0x1a9f60=_activeAK;if(!_0x1a9f60)throw CliErrors[_0x502b31(0x145)]('Configure\x20accessKey\x20in\x20'+PRODUCT_CONFIG[_0x502b31(0x10e)]+'.');return withSdkErrors(()=>_0x3b11bd(getIdentitySdkClient(_0x1a9f60,getRuntimeDomain())));}async function withSdkErrors(_0x7d317a){const _0x47e0b1=a108_0x57fd;try{return await _0x7d317a();}catch(_0x2cb153){if(_0x2cb153 instanceof CliError)throw _0x2cb153;if(!_0x2cb153||typeof _0x2cb153!==_0x47e0b1(0x147))throw _0x2cb153;const _0x51199e=_0x2cb153,_0x13fdda=_0x51199e[_0x47e0b1(0x16a)]&&typeof _0x51199e['response']===_0x47e0b1(0x147)?_0x51199e[_0x47e0b1(0x16a)]:{},_0x22abae=firstString(_0x13fdda['errorMsg'],_0x13fdda['message'],_0x13fdda[_0x47e0b1(0xce)],_0x51199e[_0x47e0b1(0x156)]),_0x32ac54=createRateLimitError({'status':[_0x51199e[_0x47e0b1(0x97)],_0x13fdda[_0x47e0b1(0x97)],_0x13fdda[_0x47e0b1(0xc5)]][_0x47e0b1(0xf0)](_0x2836a5=>Number(_0x2836a5)===0x1ad)??_0x51199e[_0x47e0b1(0x97)],'errorCode':firstString(_0x13fdda[_0x47e0b1(0xd3)],typeof _0x13fdda[_0x47e0b1(0xc5)]==='string'?_0x13fdda['code']:undefined,_0x51199e[_0x47e0b1(0xc5)]),'message':_0x22abae,'retryAfter':_0x51199e[_0x47e0b1(0xcb)]??readRetryAfterSeconds(_0x51199e[_0x47e0b1(0x16a)])});if(_0x32ac54)throw _0x32ac54;const _0x25335b=createAccessError(_0x51199e[_0x47e0b1(0x16a)],_0x51199e[_0x47e0b1(0xc5)]);if(_0x25335b)throw _0x25335b;throw CliErrors['apiError'](_0x22abae||'Runtime\x20SDK\x20request\x20failed.',_0x51199e[_0x47e0b1(0xc5)]?_0x47e0b1(0xaf)+_0x51199e[_0x47e0b1(0xc5)]:undefined);}}function firstString(..._0x2614fa){for(const _0x17e873 of _0x2614fa){if(typeof _0x17e873==='string'&&_0x17e873['trim']())return _0x17e873['trim']();}return undefined;}async function decodeResponseBody(_0x3e93c3){const _0x199ee1=a108_0x57fd;if(typeof _0x3e93c3[_0x199ee1(0x10a)]==='function')try{const _0x5a11f0=await _0x3e93c3[_0x199ee1(0x10a)]();try{return{'isJson':!![],'data':parseLosslessJson(_0x5a11f0),'text':_0x5a11f0};}catch{return{'isJson':![],'text':_0x5a11f0[_0x199ee1(0x167)]()||undefined};}}catch(_0x2424c9){if(_0x2424c9 instanceof Error&&_0x2424c9['name']===_0x199ee1(0x14b))throw _0x2424c9;}try{return{'isJson':!![],'data':await _0x3e93c3[_0x199ee1(0x160)]()};}catch(_0x3b0371){if(_0x3b0371 instanceof Error&&_0x3b0371[_0x199ee1(0x129)]===_0x199ee1(0x14b))throw _0x3b0371;return{'isJson':![]};}}function throwIfRateLimited(_0x54d5b3,_0x3f767b,_0x371346){const _0x13d7ab=a108_0x57fd,_0x4edf72=_0x3f767b&&typeof _0x3f767b===_0x13d7ab(0x147)?_0x3f767b:{},_0x2791d9=[_0x4edf72['status'],_0x4edf72[_0x13d7ab(0xc5)]][_0x13d7ab(0xf0)](_0x90989f=>Number(_0x90989f)===0x1ad),_0x1238b3=createRateLimitError({'status':_0x54d5b3['status']===0x1ad?_0x54d5b3['status']:_0x2791d9??_0x54d5b3[_0x13d7ab(0x97)],'errorCode':firstString(_0x4edf72[_0x13d7ab(0xd3)],typeof _0x4edf72['code']===_0x13d7ab(0x93)?_0x4edf72[_0x13d7ab(0xc5)]:undefined),'message':firstString(_0x4edf72[_0x13d7ab(0xde)],_0x4edf72[_0x13d7ab(0x156)],_0x4edf72[_0x13d7ab(0xce)],_0x371346),'retryAfter':readRetryAfter(_0x54d5b3[_0x13d7ab(0x12e)])??readRetryAfterSeconds(_0x3f767b)});if(_0x1238b3)throw _0x1238b3;}async function apiRequest(_0x2eb8c4,_0x58c237={}){const _0x264125=a108_0x57fd,{method:method=_0x264125(0x115),body:_0x388ee4,headers:headers={},timeout:timeout=0x7530,domain:domain=_0x264125(0xca),rejectRedirects:rejectRedirects=![]}=_0x58c237,_0x2f9547=_activeAK,_0x136c34=domain===_0x264125(0x8b)?getApiDomain():getRuntimeDomain();if(!_0x2f9547)throw CliErrors['authRequired'](_0x264125(0xd0)+PRODUCT_CONFIG[_0x264125(0x10e)]+'.');const _0x187abe=''+_0x136c34+_0x2eb8c4,_0x5b6ae4={'X-User-AK':_0x2f9547},_0x351446=new AbortController(),_0x8f253e=setTimeout(()=>_0x351446['abort'](),timeout);try{const _0x33e51e=await fetch(_0x187abe,{'method':method,...rejectRedirects?{'redirect':_0x264125(0x9c)}:{},'headers':{'Content-Type':_0x264125(0xdc),'X-Invoke-Source':PRODUCT_CONFIG[_0x264125(0xee)],..._0x5b6ae4,...headers},'body':_0x388ee4?JSON[_0x264125(0x11e)](_0x388ee4):undefined,'signal':_0x351446['signal']});return await readApiResponse(_0x33e51e);}catch(_0x4b66d8){if(_0x4b66d8 instanceof Error&&_0x4b66d8[_0x264125(0x129)]==='AbortError')throw CliErrors[_0x264125(0xf2)](_0x264125(0xec)+_0x187abe);throw _0x4b66d8;}finally{clearTimeout(_0x8f253e);}}async function readApiResponse(_0x454dec){const _0x27f529=a108_0x57fd,_0x5ecb5e=await decodeResponseBody(_0x454dec);if(!_0x5ecb5e[_0x27f529(0x105)]){throwIfRateLimited(_0x454dec,undefined,_0x5ecb5e['text']);throw CliErrors[_0x27f529(0xf2)](_0x27f529(0x12b)+_0x454dec[_0x27f529(0x97)]+')',_0x454dec[_0x27f529(0x97)]>=0x190?'Check\x20your\x20credentials\x20and\x20try\x20again.':undefined);}const _0x3952b0=_0x5ecb5e[_0x27f529(0x16d)];throwIfRateLimited(_0x454dec,_0x3952b0);if(!_0x454dec['ok']||_0x3952b0[_0x27f529(0x163)]===![]){const _0x27c640=createAccessError(_0x3952b0);if(_0x27c640)throw _0x27c640;throw CliErrors[_0x27f529(0xf2)](_0x3952b0[_0x27f529(0xde)]||_0x3952b0[_0x27f529(0x156)]||_0x3952b0['msg']||_0x27f529(0x9b)+_0x454dec[_0x27f529(0x97)],readApiErrorCode(_0x3952b0)?_0x27f529(0xaf)+readApiErrorCode(_0x3952b0):undefined);}return _0x3952b0;}async function apiBinaryRequest(_0x1e0612,_0x126169={}){const _0x16fbb8=a108_0x57fd,{method:method=_0x16fbb8(0x115),headers:headers={},timeout:timeout=0x7530}=_0x126169,_0x1ae5c3=_activeAK,_0x5120fa=getRuntimeDomain();if(!_0x1ae5c3)throw CliErrors['authRequired']('Configure\x20accessKey\x20in\x20'+PRODUCT_CONFIG[_0x16fbb8(0x10e)]+'.');const _0x487318=''+_0x5120fa+_0x1e0612,_0x2a8ba5=new AbortController(),_0xf560c6=setTimeout(()=>_0x2a8ba5[_0x16fbb8(0xd5)](),timeout);try{const _0x247c79=await fetch(_0x487318,{'method':method,'headers':{'X-Invoke-Source':PRODUCT_CONFIG[_0x16fbb8(0xee)],'X-User-AK':_0x1ae5c3,...headers},'signal':_0x2a8ba5[_0x16fbb8(0x99)]});if(!_0x247c79['ok']){const _0x5b97b6=await decodeResponseBody(_0x247c79),_0x53f24a=_0x5b97b6[_0x16fbb8(0x16d)]&&typeof _0x5b97b6[_0x16fbb8(0x16d)]===_0x16fbb8(0x147)?_0x5b97b6[_0x16fbb8(0x16d)]:{},_0x3da95d=firstString(_0x53f24a['errorMsg'],_0x53f24a[_0x16fbb8(0x156)],_0x53f24a[_0x16fbb8(0xd3)],_0x5b97b6[_0x16fbb8(0x10a)]);throwIfRateLimited(_0x247c79,_0x5b97b6[_0x16fbb8(0x16d)],_0x3da95d);const _0x51f002=createAccessError(_0x5b97b6[_0x16fbb8(0x16d)]);if(_0x51f002)throw _0x51f002;throw CliErrors[_0x16fbb8(0xf2)](_0x3da95d||_0x16fbb8(0x9b)+_0x247c79[_0x16fbb8(0x97)],_0x16fbb8(0x92)+_0x487318);}return Buffer[_0x16fbb8(0x130)](await _0x247c79[_0x16fbb8(0x164)]());}catch(_0x387c0e){if(_0x387c0e instanceof Error&&_0x387c0e[_0x16fbb8(0x129)]===_0x16fbb8(0x14b))throw CliErrors['apiError'](_0x16fbb8(0xec)+_0x487318);throw _0x387c0e;}finally{clearTimeout(_0xf560c6);}}async function toolboxRequest(_0x557e7d,_0x57440c,_0x290e9b={}){const _0x5e59e1=a108_0x57fd,{method:method=_0x5e59e1(0x115),headers:headers={},timeout:timeout=0x7530}=_0x290e9b,_0x59ca12=_activeAK;if(!_0x59ca12)throw CliErrors[_0x5e59e1(0x145)](_0x5e59e1(0xd0)+PRODUCT_CONFIG[_0x5e59e1(0x10e)]+'.');const _0x4f15cb=getApiDomain()[_0x5e59e1(0x122)](/\/$/,''),_0x42f2ad=new URL(_0x557e7d,_0x4f15cb+'/api/node-toolbox/');if(_0x57440c)for(const [_0x82a4f,_0x36ea43]of Object[_0x5e59e1(0x8c)](_0x57440c)){_0x36ea43!==undefined&&_0x36ea43!==null&&_0x42f2ad['searchParams'][_0x5e59e1(0x14a)](_0x82a4f,String(_0x36ea43));}const _0x42a8c6=new AbortController(),_0x38e64e=setTimeout(()=>_0x42a8c6[_0x5e59e1(0xd5)](),timeout);try{const _0x2f2fcd=await fetch(_0x42f2ad,{'method':method,'headers':{'Content-Type':_0x5e59e1(0xdc),'X-Invoke-Source':PRODUCT_CONFIG[_0x5e59e1(0xee)],'X-User-AK':_0x59ca12,...headers},'signal':_0x42a8c6['signal']}),_0x165156=await decodeResponseBody(_0x2f2fcd);if(!_0x165156['isJson']){throwIfRateLimited(_0x2f2fcd,undefined,_0x165156[_0x5e59e1(0x10a)]);throw CliErrors[_0x5e59e1(0xf2)](_0x5e59e1(0x117)+_0x2f2fcd[_0x5e59e1(0x97)]+')',_0x2f2fcd['status']>=0x190?_0x5e59e1(0x13a):undefined);}const _0x3050fa=_0x165156[_0x5e59e1(0x16d)];throwIfRateLimited(_0x2f2fcd,_0x3050fa);if(!_0x2f2fcd['ok']){const _0x1e6dbd=_0x3050fa&&typeof _0x3050fa===_0x5e59e1(0x147)?_0x3050fa:{};throw CliErrors[_0x5e59e1(0xf2)](_0x1e6dbd[_0x5e59e1(0xde)]||_0x1e6dbd['message']||_0x5e59e1(0xf5)+_0x2f2fcd['status'],_0x1e6dbd[_0x5e59e1(0xd3)]?_0x5e59e1(0xfc)+_0x1e6dbd[_0x5e59e1(0xd3)]:undefined);}if(_0x3050fa&&typeof _0x3050fa===_0x5e59e1(0x147)&&'success'in _0x3050fa&&typeof _0x3050fa['success']===_0x5e59e1(0x15d)){const _0x46f6ed=_0x3050fa;if(!_0x46f6ed[_0x5e59e1(0x163)])throw CliErrors[_0x5e59e1(0xf2)](_0x46f6ed[_0x5e59e1(0xde)]||_0x46f6ed['message']||_0x5e59e1(0x153),_0x46f6ed[_0x5e59e1(0xd3)]?'Toolbox\x20error\x20code:\x20'+_0x46f6ed[_0x5e59e1(0xd3)]:undefined);return _0x46f6ed[_0x5e59e1(0x16d)];}return _0x3050fa;}catch(_0x1a694f){if(_0x1a694f instanceof Error&&_0x1a694f[_0x5e59e1(0x129)]===_0x5e59e1(0x14b))throw CliErrors[_0x5e59e1(0xf2)](_0x5e59e1(0xec)+_0x42f2ad[_0x5e59e1(0x146)]());throw _0x1a694f;}finally{clearTimeout(_0x38e64e);}}async function skillHubJsonRequest(_0x103be1,_0x33cea0={}){const _0x4aeb63=a108_0x57fd,{method:method=_0x4aeb63(0x115),query:_0x2fafb5,body:_0x1f840b,headers:headers={},timeout:timeout=0x7530,allowNotFound:allowNotFound=![]}=_0x33cea0,_0x39a867=_activeAK;if(!_0x39a867)throw CliErrors[_0x4aeb63(0x145)](_0x4aeb63(0xd0)+PRODUCT_CONFIG[_0x4aeb63(0x10e)]+'.');const _0x14bf02=getSkillDomain()[_0x4aeb63(0x122)](/\/$/,''),_0x4c2aa5=new URL(_0x103be1,_0x14bf02+'/');if(_0x2fafb5)for(const [_0x475048,_0x2253c5]of Object[_0x4aeb63(0x8c)](_0x2fafb5)){_0x2253c5!==undefined&&_0x2253c5!==null&&_0x4c2aa5['searchParams']['set'](_0x475048,String(_0x2253c5));}const _0x4b0c6e=new AbortController(),_0xd01a21=setTimeout(()=>_0x4b0c6e[_0x4aeb63(0xd5)](),timeout);try{const _0x232f33=await fetch(_0x4c2aa5['toString'](),{'method':method,'headers':{'Accept':'application/json','X-Invoke-Source':PRODUCT_CONFIG[_0x4aeb63(0xee)],'X-User-AK':_0x39a867,...headers},'body':_0x1f840b,'signal':_0x4b0c6e[_0x4aeb63(0x99)]}),_0xd89a2c=await decodeResponseBody(_0x232f33);if(!_0xd89a2c[_0x4aeb63(0x105)]){if(allowNotFound&&_0x232f33[_0x4aeb63(0x97)]===0x194)return undefined;throwIfRateLimited(_0x232f33,undefined,_0xd89a2c[_0x4aeb63(0x10a)]);throw CliErrors[_0x4aeb63(0xf2)](_0x4aeb63(0xc3)+_0x232f33[_0x4aeb63(0x97)]+')',_0x232f33[_0x4aeb63(0x97)]>=0x190?_0x4aeb63(0x13a):undefined);}const _0x1204a1=_0xd89a2c['data'];throwIfRateLimited(_0x232f33,_0x1204a1);if(allowNotFound&&isSkillHubNotFoundResponse(_0x232f33[_0x4aeb63(0x97)],_0x1204a1))return undefined;const _0x299b21=!_0x232f33['ok']||_0x1204a1?.['success']===![]||typeof _0x1204a1?.[_0x4aeb63(0xc5)]===_0x4aeb63(0x14f)&&_0x1204a1[_0x4aeb63(0xc5)]>=0x190;if(_0x299b21)throw CliErrors[_0x4aeb63(0xf2)](_0x1204a1?.[_0x4aeb63(0xde)]||_0x1204a1?.[_0x4aeb63(0x156)]||_0x1204a1?.[_0x4aeb63(0xce)]||_0x4aeb63(0x88)+_0x232f33[_0x4aeb63(0x97)],_0x1204a1?.[_0x4aeb63(0xd3)]?_0x4aeb63(0xc1)+_0x1204a1['errorCode']:undefined);return _0x1204a1?.[_0x4aeb63(0x16d)]??_0x1204a1;}catch(_0x59d2a5){if(_0x59d2a5 instanceof Error&&_0x59d2a5[_0x4aeb63(0x129)]===_0x4aeb63(0x14b))throw CliErrors['apiError']('Request\x20timeout:\x20'+_0x4c2aa5[_0x4aeb63(0x146)]());throw _0x59d2a5;}finally{clearTimeout(_0xd01a21);}}function isSkillHubNotFoundResponse(_0x23f94f,_0x4b60e6){const _0x2349dc=a108_0x57fd;if(_0x23f94f===0x194||_0x4b60e6?.['code']===0x194)return!![];if(_0x23f94f!==0x190&&_0x4b60e6?.['code']!==0x190)return![];const _0x1e1a31=[_0x4b60e6?.[_0x2349dc(0xce)],_0x4b60e6?.[_0x2349dc(0x156)],_0x4b60e6?.[_0x2349dc(0xde)],_0x4b60e6?.[_0x2349dc(0x9c)]][_0x2349dc(0xc6)](_0x2f33a5=>typeof _0x2f33a5==='string')[_0x2349dc(0x116)]('\x20');return/skill not found\b/i[_0x2349dc(0xb8)](_0x1e1a31);}async function skillHubBinaryRequest(_0x44f811,_0x43f518={}){const _0x3179f2=a108_0x57fd,{query:_0x13ef2d,headers:headers={},timeout:timeout=0x7530}=_0x43f518,_0x1296a9=_activeAK;if(!_0x1296a9)throw CliErrors['authRequired'](_0x3179f2(0xd0)+PRODUCT_CONFIG[_0x3179f2(0x10e)]+'.');const _0x1c280a=getSkillDomain()['replace'](/\/$/,''),_0x154709=new URL(_0x44f811,_0x1c280a+'/');if(_0x13ef2d)for(const [_0x29bccc,_0x3dc6b6]of Object['entries'](_0x13ef2d)){_0x3dc6b6!==undefined&&_0x3dc6b6!==null&&_0x154709['searchParams'][_0x3179f2(0x14a)](_0x29bccc,String(_0x3dc6b6));}const _0x2d5102=new AbortController(),_0x47f8d2=setTimeout(()=>_0x2d5102[_0x3179f2(0xd5)](),timeout);try{const _0x26c427=await fetch(_0x154709[_0x3179f2(0x146)](),{'method':'GET','headers':{'Accept':'application/octet-stream','X-Invoke-Source':PRODUCT_CONFIG[_0x3179f2(0xee)],'X-User-AK':_0x1296a9,...headers},'signal':_0x2d5102[_0x3179f2(0x99)]});if(!_0x26c427['ok']){const _0x168824=await decodeResponseBody(_0x26c427),_0x2622a7=_0x168824[_0x3179f2(0x16d)]&&typeof _0x168824[_0x3179f2(0x16d)]===_0x3179f2(0x147)?_0x168824['data']:{},_0x16ce44=firstString(_0x2622a7[_0x3179f2(0xde)],_0x2622a7[_0x3179f2(0x156)],_0x2622a7[_0x3179f2(0xce)],_0x2622a7[_0x3179f2(0xd3)],_0x168824['text']);throwIfRateLimited(_0x26c427,_0x168824[_0x3179f2(0x16d)],_0x16ce44);throw CliErrors[_0x3179f2(0xf2)](_0x16ce44||_0x3179f2(0x88)+_0x26c427[_0x3179f2(0x97)],_0x3179f2(0x92)+_0x154709[_0x3179f2(0x146)]());}return Buffer['from'](await _0x26c427[_0x3179f2(0x164)]());}catch(_0x54d585){if(_0x54d585 instanceof Error&&_0x54d585[_0x3179f2(0x129)]==='AbortError')throw CliErrors[_0x3179f2(0xf2)](_0x3179f2(0xec)+_0x154709[_0x3179f2(0x146)]());throw _0x54d585;}finally{clearTimeout(_0x47f8d2);}}export async function getBffEndpointContract(_0x32dfe0,_0x402139){const _0x3af8a8=a108_0x57fd;if(encodeURIComponent(_0x32dfe0)!==_0x32dfe0||_0x32dfe0==='.'||_0x32dfe0==='..')throw CliErrors[_0x3af8a8(0xa5)](_0x3af8a8(0x111));if(_0x402139===_0x3af8a8(0x12a))throw CliErrors[_0x3af8a8(0xa5)](_0x3af8a8(0x11a)+_0x32dfe0+',\x20name='+_0x402139);const _0x276f04=await sdkRequest(_0x32dfe0,_0xe7e71=>{const _0x4c725a=_0x3af8a8;if(!(_0x4c725a(0x11c)in _0xe7e71[_0x4c725a(0x149)]))throw CliErrors['validation'](_0x4c725a(0xed));return _0xe7e71[_0x4c725a(0x149)][_0x4c725a(0x11c)](_0x402139);});if(!_0x276f04||typeof _0x276f04!==_0x3af8a8(0x147)||Array[_0x3af8a8(0x104)](_0x276f04)||_0x276f04[_0x3af8a8(0xeb)]!==_0x32dfe0||_0x276f04[_0x3af8a8(0x10f)]!==_0x402139)throw CliErrors['validation'](_0x3af8a8(0x11a)+_0x32dfe0+',\x20name='+_0x402139);const _0x30e173=_0x276f04[_0x3af8a8(0x138)];if(_0x30e173!=null&&(typeof _0x30e173!=='number'||!Number[_0x3af8a8(0xdf)](_0x30e173)))throw CliErrors[_0x3af8a8(0xf2)](_0x3af8a8(0xa3));return{'appCode':_0x276f04[_0x3af8a8(0xeb)],'functionName':_0x276f04[_0x3af8a8(0x10f)],'description':_0x276f04['description'],'version':_0x276f04['version'],'gmtModified':_0x30e173};}export async function getSqlQueryInfo(_0x484132,_0x312170){const _0x4ce1d2=a108_0x57fd,_0xf3bab1=await sdkRequest(_0x484132,_0x461102=>{const _0x5143a4=a108_0x57fd;if(!(_0x5143a4(0xbc)in _0x461102['sql']))throw CliErrors['validation'](_0x5143a4(0xf3));return _0x461102[_0x5143a4(0x15c)]['query']({'appCode':_0x484132,'currentPage':0x1,'pageSize':0x1,'sqlCode':_0x312170});}),_0x1837a7=_0xf3bab1&&typeof _0xf3bab1===_0x4ce1d2(0x147)&&_0x4ce1d2(0x128)in _0xf3bab1?_0xf3bab1['tableData']?.[0x0]:_0xf3bab1&&typeof _0xf3bab1===_0x4ce1d2(0x147)&&_0x4ce1d2(0xef)in _0xf3bab1?_0xf3bab1:undefined;if(!_0x1837a7)throw CliErrors[_0x4ce1d2(0xa5)](_0x4ce1d2(0x8f)+_0x312170);return _0x1837a7;}export async function listApprovalTodo(_0xfb83f8,_0x151875=0x1,_0x3e5d6f=0x14){const _0x2903af=a108_0x57fd,_0x32e0e8=await sdkRequest(_0xfb83f8,_0x21960e=>_0x21960e['approval'][_0x2903af(0x137)]({'currentPage':_0x151875,'pageSize':_0x3e5d6f}));if(!_0x32e0e8||typeof _0x32e0e8!=='object'||!Array[_0x2903af(0x104)](_0x32e0e8[_0x2903af(0xb6)]))throw CliErrors[_0x2903af(0xf2)](_0x2903af(0xd6));return _0x32e0e8;}export async function getApprovalTaskDetail(_0x392047,_0x200187){const _0x134037=a108_0x57fd,_0x33c83b=await sdkRequest(_0x200187,_0x3121dd=>_0x3121dd[_0x134037(0x126)][_0x134037(0xc8)](_0x392047));if(!_0x33c83b||typeof _0x33c83b!=='object'||Array['isArray'](_0x33c83b))throw CliErrors['apiError'](_0x134037(0xb7));return _0x33c83b;}export async function approveApprovalTask(_0x906886){const _0x5c5644=a108_0x57fd;return await sdkRequest(_0x906886[_0x5c5644(0xeb)],_0xbe8c78=>_0xbe8c78[_0x5c5644(0x126)][_0x5c5644(0x8d)](_0x906886)),null;}export async function transferApprovalTask(_0x5f12d1){const _0x32cb0a=a108_0x57fd;return await sdkRequest(_0x5f12d1['appCode'],_0x148c67=>_0x148c67[_0x32cb0a(0x126)][_0x32cb0a(0xe1)](_0x5f12d1)),null;}function isRemoteAppItem(_0x1e73cc){const _0x4f6325=a108_0x57fd;return!!_0x1e73cc&&typeof _0x1e73cc===_0x4f6325(0x147)&&typeof _0x1e73cc[_0x4f6325(0xeb)]===_0x4f6325(0x93)&&typeof _0x1e73cc[_0x4f6325(0xcc)]==='string';}function extractRemoteAppItems(_0x552c32){const _0x1c4e5c=a108_0x57fd;if(Array[_0x1c4e5c(0x104)](_0x552c32))return _0x552c32[_0x1c4e5c(0xc6)](isRemoteAppItem);if(!_0x552c32||typeof _0x552c32!==_0x1c4e5c(0x147))throw CliErrors[_0x1c4e5c(0xf2)](_0x1c4e5c(0x15e));const _0x2cd61e=_0x552c32;if(Array[_0x1c4e5c(0x104)](_0x2cd61e['tableData']))return _0x2cd61e[_0x1c4e5c(0x128)]['filter'](isRemoteAppItem);if(_0x2cd61e[_0x1c4e5c(0x16d)]&&typeof _0x2cd61e[_0x1c4e5c(0x16d)]===_0x1c4e5c(0x147)){const _0x918655=_0x2cd61e[_0x1c4e5c(0x16d)];if(Array['isArray'](_0x918655[_0x1c4e5c(0x128)]))return _0x918655[_0x1c4e5c(0x128)]['filter'](isRemoteAppItem);}throw CliErrors[_0x1c4e5c(0xf2)](_0x1c4e5c(0x155));}export async function getMyApps(){return extractRemoteAppItems(await identitySdkRequest(_0x2a7646=>_0x2a7646['myApps']()));}export async function getLoginUserInfo(){const _0x5041b5=a108_0x57fd,_0x8b4335=await identitySdkRequest(_0x1aeda4=>_0x1aeda4[_0x5041b5(0x157)]());if(!_0x8b4335||typeof _0x8b4335!==_0x5041b5(0x147)||Array[_0x5041b5(0x104)](_0x8b4335))throw CliErrors[_0x5041b5(0xf2)](_0x5041b5(0x10c));return _0x8b4335;}export const USER_ACCOUNT_BIND_PATH=a108_0x57c787(0xfe);export async function bindExternalUserAccount(_0x53081d,_0xeff96f){const _0x3b541f=a108_0x57c787;return identitySdkRequest(_0x4f42d6=>_0x4f42d6[_0x3b541f(0x169)]({'provider':_0x53081d,'accountId':_0xeff96f}));}function runtimeSchedulePath(_0x3bedbf,_0x3fad3f=''){const _0x4aeede=a108_0x57c787;return _0x4aeede(0x121)+encodeURIComponent(_0x3bedbf)+_0x4aeede(0x106)+_0x3fad3f;}export async function validateRuntimeSchedule(_0x31d674,_0x4c3a79){const _0x528f7e=a108_0x57c787,_0x1ceba5=await apiRequest(runtimeSchedulePath(_0x31d674,'/validate'),{'method':_0x528f7e(0xf6),'body':_0x4c3a79});return _0x1ceba5[_0x528f7e(0x16d)];}export async function createRuntimeSchedule(_0x56b41e,_0x31e0b4){const _0x2b04cb=a108_0x57c787,_0x1534ca=await apiRequest(runtimeSchedulePath(_0x56b41e),{'method':_0x2b04cb(0xf6),'body':_0x31e0b4});return _0x1534ca[_0x2b04cb(0x16d)];}export async function listRuntimeSchedules(_0x3884d4,_0x5506f9){const _0x5548a8=a108_0x57c787,_0x55a8e7=new URLSearchParams();_0x55a8e7[_0x5548a8(0x14a)]('kind',_0x5506f9[_0x5548a8(0xa7)]);if(_0x5506f9[_0x5548a8(0x131)]!==undefined)_0x55a8e7['set'](_0x5548a8(0x131),String(_0x5506f9['limit']));if(_0x5506f9[_0x5548a8(0x102)])_0x55a8e7[_0x5548a8(0x14a)](_0x5548a8(0x102),_0x5506f9[_0x5548a8(0x102)]);const _0x3de45b=_0x55a8e7[_0x5548a8(0xa1)]>0x0?'?'+_0x55a8e7[_0x5548a8(0x146)]():'',_0x427d68=await apiRequest(''+runtimeSchedulePath(_0x3884d4)+_0x3de45b);return _0x427d68['data'];}export async function getRuntimeSchedule(_0x9c9b,_0x5b3445){const _0x5b0486=a108_0x57c787,_0x16e74a=await apiRequest(runtimeSchedulePath(_0x9c9b,'/'+encodeURIComponent(_0x5b3445)));return _0x16e74a[_0x5b0486(0x16d)];}export async function deleteRuntimeSchedule(_0x426769,_0x54028b){const _0x21fc0e=a108_0x57c787,_0x3a5ee0=await apiRequest(runtimeSchedulePath(_0x426769,'/'+encodeURIComponent(_0x54028b)),{'method':_0x21fc0e(0xf4)});return _0x3a5ee0[_0x21fc0e(0x16d)];}export async function runRuntimeSchedule(_0xc4f895,_0xa1a77a){const _0x55547e=a108_0x57c787,_0xc34650=await apiRequest(runtimeSchedulePath(_0xc4f895,'/'+encodeURIComponent(_0xa1a77a)+_0x55547e(0x12c)),{'method':_0x55547e(0xf6)});return _0xc34650[_0x55547e(0x16d)];}export async function listDatasets(_0x8e6638,_0x4c817e){const _0x44da85=a108_0x57c787,_0x55e50b=await sdkRequest(_0x8e6638,_0x2719e3=>_0x2719e3[_0x44da85(0xe7)][_0x44da85(0xe4)]({..._0x4c817e?.[_0x44da85(0xc5)]&&{'code':_0x4c817e[_0x44da85(0xc5)]},..._0x4c817e?.[_0x44da85(0x129)]&&{'name':_0x4c817e[_0x44da85(0x129)]},..._0x4c817e?.[_0x44da85(0x159)]&&{'tableName':_0x4c817e['tableName']}}));return extractList(_0x55e50b);}export async function getDatasetDetail(_0x54c8c1){const _0x3f2baa=a108_0x57c787;return sdkRequest(undefined,_0x13a65b=>_0x13a65b['datasetMeta'][_0x3f2baa(0xba)]({'code':_0x54c8c1}));}function importSdkRequest(_0x4c5f63,_0x100e15,_0x298d80){return sdkRequest(_0x4c5f63,_0x2bf6b3=>{const _0x3f368a=a108_0x57fd,_0x57dc3c=_0x2bf6b3['getModel'](_0x3f368a(0x162)+_0x100e15);if(!(_0x57dc3c instanceof ClientAkModel))throw CliErrors[_0x3f368a(0xa5)](_0x3f368a(0xc0));return _0x298d80(_0x57dc3c);});}export async function getDatasetImportContract(_0x4ddac8,_0x35dded){return importSdkRequest(_0x4ddac8,_0x35dded,_0x474d08=>_0x474d08['importContract']());}export async function createDatasetImportBatch(_0x308025,_0x20df1b,_0x555aa2){const _0x877721=a108_0x57c787;return importSdkRequest(_0x308025,_0x20df1b,_0x1d2fc0=>_0x1d2fc0[_0x877721(0x151)](_0x555aa2));}export async function readDatasetImportRows(_0x31f832,_0x2ef3e9,_0x43c915){const _0xc5db30=a108_0x57c787,_0x32e0f9=await importSdkRequest(_0x31f832,_0x2ef3e9,_0x28a970=>_0x28a970[_0xc5db30(0x15f)]({'ids':_0x43c915}));if(!_0x32e0f9||!Array['isArray'](_0x32e0f9[_0xc5db30(0xc4)]))throw CliErrors[_0xc5db30(0xf2)](_0xc5db30(0x152));return _0x32e0f9[_0xc5db30(0xc4)];}function a108_0x2276(){const _0x4ee764=['application/zip','/api/v1/skills/','applyUserList','/publish','/api/cli/v1/skills/','Toolbox\x20error\x20code:\x20','publishedVersion','/client/user-accounts/bind','tags','352UYgpaq','summary','cursor','recognize','isArray','isJson','/schedules','Invalid\x20Skill\x20diagram\x20response:\x20missing\x20found\x20state.','savePagePermit','skillCode','text',']\x20must\x20be\x20an\x20object.','Invalid\x20login\x20user\x20info\x20response:\x20expected\x20object.','Personal\x20Backend\x20Function\x20not\x20found:\x20id=','newConfigFileName','functionName','PUBLISHED','Application\x20code\x20contains\x20invalid\x20URL\x20path\x20characters.','deleteRole','ocr','found','GET','join','Toolbox\x20returned\x20non-JSON\x20response\x20(HTTP\x20','Missing\x20Skill\x20package\x20payload.','saveMenuPermits','Backend\x20Function\x20not\x20found\x20or\x20inaccessible:\x20appCode=','skill','getEndpoint','270867LckbSO','stringify','importImageReadback','userId','/api/harness/apps/','replace','get','description','create','approval','api-doc-generator','tableData','name','functions','API\x20returned\x20non-JSON\x20response\x20(HTTP\x20','/run','warnings','headers','.zip','from','limit','12964710zcDIkf','30320jgmaEu','packageBase64','importImage','min','listTodo','gmtModified','22BafeyX','Check\x20your\x20credentials\x20and\x20try\x20again.','getRoleUserList','content','effective','38vrOGnT','Invalid\x20Skill\x20diagram\x20response:\x20absent\x20diagram\x20must\x20have\x20a\x20null\x20diagramRevision.','roleName','getRoleList','execute','visibility','pageSize','authRequired','toString','object','Deploy\x20a\x20SkillHub\x20version\x20that\x20returns\x20diagramValidated/diagramBound\x20before\x20publishing\x20with\x20this\x20CLI.','bff','set','AbortError','scope','4982222LnVCyG','120069FwuzLS','number','userList','importBatch','Invalid\x20import\x20readback\x20response.','Toolbox\x20API\x20error','headlineVersion','Invalid\x20app\x20list\x20response:\x20missing\x20data.tableData.','message','loginUserInfo','/download','tableName','contentHash','company','sql','boolean','Invalid\x20app\x20list\x20response:\x20expected\x20object\x20or\x20array.','importReadback','json','diagramValidated','dataset_','success','arrayBuffer','].applyUserList','getRolePermitList','trim','bytes','bindAccount','response','getConfigByKey','namespace','data','services','undefined','SkillHub\x20API\x20error:\x20','permitList','Invalid\x20app\x20config\x20value:\x20key=','api','entries','approve','ownerPreviewVersion','SQL\x20query\x20not\x20found:\x20','sourceFingerprint','updateRole','Download\x20failed:\x20','string','getMenuPermitList','queryUrl','/validate','status','isInteger','signal','toLowerCase','API\x20error:\x20','error','saveDatasetPermits','diagramBound','Invalid\x20Skill\x20diagram\x20response:\x20missing\x20canonical\x20sourceFingerprint.','type','size','permit','Invalid\x20Backend\x20Function\x20response:\x20gmtModified\x20must\x20be\x20an\x20integer\x20timestamp\x20or\x20null.','example','validation','68WgpDur','kind','version','CUSTOM','all','\x20must\x20be\x20an\x20array.','queryAppUsers','currentPage','getDatasetPermitMeta','API\x20error\x20code:\x20','artifact','/versions/','55676yhuuWi','getDatasetPermitList','diagramRevision','map','records','Invalid\x20approval\x20task\x20detail\x20response.','test','NAMESPACE_ONLY','getDrivenData','Invalid\x20runtime\x20role\x20members\x20response:\x20','query','resolvedVersion','].userId\x20is\x20invalid.','6139722yOgaRE','Dataset\x20import\x20requires\x20Client\x20AK.','SkillHub\x20error\x20code:\x20','base64','SkillHub\x20returned\x20non-JSON\x20response\x20(HTTP\x20','items','code','filter','slug','getTask','].userList','runtime','retryAfter','appName','file','msg','Invalid\x20Skill\x20diagram\x20response:\x20found\x20diagram\x20has\x20no\x20positive\x20diagramRevision.','Configure\x20accessKey\x20in\x20','upload','roleList[','errorCode','/publish/validate','abort','Invalid\x20approval\x20todo\x20response:\x20missing\x20records.','errors','/diagram','confirmWarnings','diagram','Invalid\x20notification\x20config\x20list\x20response.','application/json','personal','errorMsg','isSafeInteger','displayName','transfer','SkillHub\x20does\x20not\x20support\x20atomic\x20Skill\x20diagram\x20','Expected\x20the\x20server\x20data\x20field\x20to\x20be\x20an\x20array.','list','publish','valid','datasetMeta','PRIVATE','resolvedSlug','/skills','appCode','Request\x20timeout:\x20','Backend\x20Function\x20metadata\x20requires\x20Client\x20AK.','invokeSource','sqlCode','find','app','apiError','SQL\x20metadata\x20requires\x20Client\x20AK.','DELETE','Toolbox\x20API\x20error:\x20','POST'];a108_0x2276=function(){return _0x4ee764;};return a108_0x2276();}export async function readDatasetImportTaskRows(_0x1411b6,_0x231f8a,_0xf97ed9){const _0x3dde3e=a108_0x57c787,_0x3f449a=await importSdkRequest(_0x1411b6,_0x231f8a,_0x4eefd8=>_0x4eefd8[_0x3dde3e(0x15f)]({'taskId':_0xf97ed9}));if(!_0x3f449a||!Array[_0x3dde3e(0x104)](_0x3f449a[_0x3dde3e(0xc4)]))throw CliErrors[_0x3dde3e(0xf2)]('Invalid\x20import\x20task\x20readback\x20response.');return _0x3f449a[_0x3dde3e(0xc4)];}export async function uploadDatasetImportImage(_0xb7129c,_0x232abf,_0x5a89ae,_0x4d4193){const _0x5ac209=a108_0x57c787;return importSdkRequest(_0xb7129c,_0x232abf,_0x5a3f64=>_0x5a3f64[_0x5ac209(0x135)]({'importId':_0x5a89ae,'contentHash':_0x4d4193[_0x5ac209(0x15a)],'file':new Blob([new Uint8Array(_0x4d4193[_0x5ac209(0x168)])],{'type':_0x4d4193[_0x5ac209(0xa0)]}),'fileName':'image'}));}export async function readDatasetImportImage(_0xa37e8a,_0x2ed45b,_0x5f4127,_0x168c8a){const _0x18eedb=a108_0x57c787;return importSdkRequest(_0xa37e8a,_0x2ed45b,_0x4a6c98=>_0x4a6c98[_0x18eedb(0x11f)]({'importId':_0x5f4127,'contentHash':_0x168c8a[_0x18eedb(0x15a)],'type':_0x168c8a[_0x18eedb(0xa0)],'size':_0x168c8a['size']}));}export async function getDatasetSdkUsageDoc(_0x197763,_0x53058e){const _0x2c04ed=a108_0x57c787,_0xdddaeb=await toolboxRequest(_0x2c04ed(0x127),{'datasetCode':_0x197763,'appCode':_0x53058e});return typeof _0xdddaeb?.['markdown']==='string'?_0xdddaeb['markdown']:'';}export async function uploadRuntimeFile(_0x1ae56a,_0x2924f7){const _0x1c745c=a108_0x57c787,_0x49bcfd=await readFile(_0x2924f7);return sdkRequest(_0x1ae56a,_0x96edc8=>_0x96edc8[_0x1c745c(0x16e)][_0x1c745c(0xcd)][_0x1c745c(0xd1)]({'file':new Blob([new Uint8Array(_0x49bcfd)]),'fileName':basename(_0x2924f7)}));}export async function queryRuntimeFileUrl(_0x2f50a3,_0xf7669a={}){const _0x5d86e3=a108_0x57c787;return sdkRequest(undefined,_0x150521=>_0x150521[_0x5d86e3(0x16e)][_0x5d86e3(0xcd)][_0x5d86e3(0x95)]({'filePath':_0x2f50a3,..._0xf7669a}));}export async function recognizeRuntimeOcr(_0x2cc6d2,_0x53bba2){const _0x4983d1=a108_0x57c787;return sdkRequest(_0x2cc6d2,_0x4777bf=>_0x4777bf[_0x4983d1(0x16e)][_0x4983d1(0x113)][_0x4983d1(0x103)](_0x53bba2));}export async function getRuntimeAppConfigByKey(_0x16bd5d,_0xce68ca){const _0x3bf23a=a108_0x57c787,_0x498cdd=await sdkRequest(_0x16bd5d,_0x3599d5=>_0x3599d5[_0x3bf23a(0xf1)][_0x3bf23a(0x16b)](_0xce68ca));if(typeof _0x498cdd!==_0x3bf23a(0x93))throw CliErrors[_0x3bf23a(0xa5)](_0x3bf23a(0x8a)+_0xce68ca);return _0x498cdd;}export async function listNotificationChannelConfigs(_0x51d569,_0x1f4770){const _0x55154c=a108_0x57c787,_0x267f12=await sdkRequest(_0x51d569,_0x129f55=>_0x129f55[_0x55154c(0xf1)]['listNotificationChannels'](_0x1f4770));if(!Array[_0x55154c(0x104)](_0x267f12))throw CliErrors[_0x55154c(0xf2)](_0x55154c(0xdb),_0x55154c(0xe3));return _0x267f12;}export async function listRuntimeArtifacts(_0x4afaba,_0x17da26){const _0x4c955d=a108_0x57c787,_0x3ff707=await sdkRequest(_0x4afaba,_0x2d5c53=>_0x2d5c53[_0x4c955d(0xb0)]['list'](_0x17da26));return Array['isArray'](_0x3ff707)?_0x3ff707:[];}export async function getRuntimeArtifact(_0x5c4930,_0x57960e){const _0x8f4bf0=a108_0x57c787,_0x2a9b6a=await sdkRequest(_0x57960e,_0x43bbf0=>_0x43bbf0[_0x8f4bf0(0xb0)][_0x8f4bf0(0x123)](_0x5c4930));if(!_0x2a9b6a)throw CliErrors[_0x8f4bf0(0xa5)]('Artifact\x20not\x20found:\x20id='+_0x5c4930);return _0x2a9b6a;}export async function createRuntimeArtifact(_0xea6595,_0x51cab6){const _0x1cd322=a108_0x57c787;return sdkRequest(_0xea6595,_0x1b8804=>_0x1b8804[_0x1cd322(0xb0)]['create'](_0x51cab6));}export async function updateRuntimeArtifact(_0x29dea5,_0x2a621c,_0x1bcae7){return sdkRequest(_0x2a621c,_0x55dc2b=>_0x55dc2b['artifact']['update'](_0x29dea5,_0x1bcae7));}export async function listPersonalBffs(_0x497eb6){const _0x4c700c=a108_0x57c787,_0x50dd67=await sdkRequest(_0x497eb6,_0x296ea0=>_0x296ea0['personal'][_0x4c700c(0x149)][_0x4c700c(0xe4)]());return Array[_0x4c700c(0x104)](_0x50dd67)?_0x50dd67:[];}export async function getPersonalBff(_0x158f20,_0x168c75){const _0x23f30b=a108_0x57c787,_0x6c3d3e=await sdkRequest(_0x168c75,_0x248a8d=>_0x248a8d[_0x23f30b(0xdd)][_0x23f30b(0x149)][_0x23f30b(0x123)](_0x158f20));if(!_0x6c3d3e)throw CliErrors[_0x23f30b(0xa5)](_0x23f30b(0x10d)+_0x158f20);return _0x6c3d3e;}export async function createPersonalBff(_0x5024ba,_0x234c5a){const _0x3b09c7=a108_0x57c787;return sdkRequest(_0x5024ba,_0x402125=>_0x402125[_0x3b09c7(0xdd)][_0x3b09c7(0x149)][_0x3b09c7(0x125)](_0x234c5a));}export async function updatePersonalBff(_0x1368dc,_0x1242d5,_0x39192e){const _0xdf41c4=a108_0x57c787;return sdkRequest(_0x1242d5,_0x271a74=>_0x271a74[_0xdf41c4(0xdd)][_0xdf41c4(0x149)]['update'](_0x1368dc,_0x39192e));}export async function executePersonalBff(_0x5d848f,_0x3d7576,_0x84e71b){const _0xaf6ee1=a108_0x57c787;return sdkRequest(_0x3d7576,_0x25cb2d=>_0x25cb2d['personal'][_0xaf6ee1(0x149)][_0xaf6ee1(0x142)]({'scriptId':_0x5d848f,'params':_0x84e71b}));}export async function listPersonalKnowledgeBaseItems(_0x488348,_0x51d91e){return listPersonalKnowledge({'appCode':_0x488348,'accessKey':_activeAK,'signal':_0x51d91e});}export async function getPersonalKnowledgeBaseItem(_0x4c5cd9,_0x135bd5,_0x287667){return getPersonalKnowledge({'appCode':_0x135bd5,'accessKey':_activeAK,'signal':_0x287667},_0x4c5cd9);}export async function createPersonalKnowledgeBaseItem(_0x14a32d,_0x17dff8,_0x27ef80){return savePersonalKnowledge({'appCode':_0x14a32d,'accessKey':_activeAK,'signal':_0x27ef80},_0x17dff8);}export async function updatePersonalKnowledgeBaseItem(_0x205464,_0x1a678d,_0x56d863,_0xce95c4){return savePersonalKnowledge({'appCode':_0x1a678d,'accessKey':_activeAK,'signal':_0xce95c4},_0x56d863,_0x205464);}export async function getRuntimeSkillByCode(_0x1579be,_0x1fd0c0){const _0x9144e9=a108_0x57c787,_0x1878cf=await skillHubJsonRequest(_0x9144e9(0xf8)+encodeURIComponent(_0x1579be)+'/'+encodeURIComponent(_0x1fd0c0),{'allowNotFound':!![]});return _0x1878cf?skillHubRuntimeDetailToRuntimeSkill(_0x1878cf):undefined;}export async function listRuntimeSkills(_0x195e27){const _0x4937ae=a108_0x57c787,_0x3bdc73=await skillHubJsonRequest('/api/runtime/v1/namespaces/'+encodeURIComponent(_0x195e27['appCode'])+_0x4937ae(0xea),{'query':{'page':0x0,'size':0xc8}});return normalizeSkillHubRuntimeListResponse(_0x195e27[_0x4937ae(0xeb)],_0x3bdc73,_0x195e27['scope']??_0x4937ae(0xaa),_0x195e27['code'],_0x195e27['installableOnly']);}export async function listPersonalRuntimeSkills(_0x190083){const _0x1e6dae=a108_0x57c787;return(await listRuntimeSkills({'appCode':_0x190083,'scope':_0x1e6dae(0xdd)}))[_0x1e6dae(0xdd)];}export async function listCompanyRuntimeSkills(_0x152509){const _0x2e0f05=a108_0x57c787;return(await listRuntimeSkills({'appCode':_0x152509,'scope':'company'}))[_0x2e0f05(0x15b)];}export async function listVisibleRuntimeSkills(_0x3e1db3){const _0x1a83b9=a108_0x57c787;return(await listRuntimeSkills({'appCode':_0x3e1db3,'scope':_0x1a83b9(0xaa)}))['effective'];}export async function createPersonalRuntimeSkill(_0x4cd0d2,_0x7bd29f,_0x4e56e6={}){const _0x5c82ef=a108_0x57c787;return publishRuntimeSkill(_0x4cd0d2,_0x7bd29f,{'visibility':_0x5c82ef(0xe8),'confirmWarnings':_0x4e56e6[_0x5c82ef(0xd9)]});}export async function updatePersonalRuntimeSkill(_0x3f16a9,_0x3b7d8e,_0x19afa3,_0x5a785e={}){const _0x17778f=a108_0x57c787;return publishRuntimeSkill(_0x3b7d8e,{..._0x19afa3,'skillCode':_0x19afa3[_0x17778f(0x109)]??_0x3f16a9},{'visibility':_0x17778f(0xe8),'confirmWarnings':_0x5a785e[_0x17778f(0xd9)]});}export async function publishCompanyRuntimeSkill(_0x2a76f8,_0x53d5aa,_0x44ac10={}){const _0x2d1be1=a108_0x57c787;return publishRuntimeSkill(_0x2a76f8,_0x53d5aa,{'visibility':_0x2d1be1(0xb9),'confirmWarnings':_0x44ac10[_0x2d1be1(0xd9)]});}export async function validateRuntimeSkillPublish(_0x1df9e8,_0x1cbe79,_0xd67d5c){const _0x3b5d56=a108_0x57c787,_0x515ef2=buildRuntimeSkillPublishForm(_0x1cbe79,_0xd67d5c['visibility']),_0x1661b9=await skillHubJsonRequest('/api/cli/v1/skills/'+encodeURIComponent(_0x1df9e8)+_0x3b5d56(0xd4),{'method':_0x3b5d56(0xf6),'body':_0x515ef2});return assertJointDiagramAcknowledged(_0x1cbe79[_0x3b5d56(0xda)],_0x1661b9['diagramValidated'],_0x3b5d56(0xa5)),{'valid':_0x1661b9[_0x3b5d56(0xe6)]===!![],'errors':Array[_0x3b5d56(0x104)](_0x1661b9[_0x3b5d56(0xd7)])?_0x1661b9[_0x3b5d56(0xd7)]:[],'warnings':Array[_0x3b5d56(0x104)](_0x1661b9[_0x3b5d56(0x12d)])?_0x1661b9[_0x3b5d56(0x12d)]:[],'resolvedSlug':_0x1661b9[_0x3b5d56(0xe9)],'resolvedVersion':_0x1661b9[_0x3b5d56(0xbd)],'diagramValidated':_0x1661b9[_0x3b5d56(0x161)]===!![]};}export async function validateRuntimeSkillVersionDiagram(_0x2c3578,_0x12b718,_0x293fe5,_0x8dd3a4,_0x2dda9f){const _0x1d4ba3=a108_0x57c787;return skillHubJsonRequest(runtimeSkillVersionDiagramPath(_0x2c3578,_0x12b718,_0x293fe5,_0x1d4ba3(0x96)),{'method':_0x1d4ba3(0xf6),'query':{'scope':_0x8dd3a4},'headers':{'Content-Type':'application/json'},'body':JSON[_0x1d4ba3(0x11e)](_0x2dda9f)});}export async function putRuntimeSkillVersionDiagram(_0x4d4591,_0x11581e,_0x268a9e,_0x57149d,_0x33f432){const _0x2fb9d9=a108_0x57c787;return skillHubJsonRequest(runtimeSkillVersionDiagramPath(_0x4d4591,_0x11581e,_0x268a9e),{'method':'PUT','query':{'scope':_0x57149d},'headers':{'Content-Type':'application/json'},'body':JSON[_0x2fb9d9(0x11e)](_0x33f432)});}export async function getRuntimeSkillVersionDiagram(_0x39b9cd,_0x5cda72,_0x533f78,_0xeb2e22){const _0x39b551=a108_0x57c787,_0x283a89=await skillHubJsonRequest(runtimeSkillVersionDiagramPath(_0x39b9cd,_0x5cda72,_0x533f78),{'query':{'scope':_0xeb2e22}});if(typeof _0x283a89[_0x39b551(0x114)]!==_0x39b551(0x15d))throw CliErrors[_0x39b551(0xf2)](_0x39b551(0x107));const _0x2a15ae=_0x283a89[_0x39b551(0x90)];if(typeof _0x2a15ae!=='string'||!/^sha256:[0-9a-f]{64}$/[_0x39b551(0xb8)](_0x2a15ae))throw CliErrors[_0x39b551(0xf2)](_0x39b551(0x9f),'SkillHub\x20must\x20return\x20the\x20exact\x20SkillVersion\x20fingerprint\x20even\x20when\x20found=false.');const _0x309c8e=_0x283a89[_0x39b551(0xb4)];if(_0x283a89[_0x39b551(0x114)]&&(!Number[_0x39b551(0x98)](_0x309c8e)||Number(_0x309c8e)<0x1))throw CliErrors[_0x39b551(0xf2)](_0x39b551(0xcf));if(!_0x283a89[_0x39b551(0x114)]&&_0x309c8e!==undefined&&_0x309c8e!==null)throw CliErrors[_0x39b551(0xf2)](_0x39b551(0x13f));const _0x2088a8=_0x283a89[_0x39b551(0x114)]?Number(_0x309c8e):null;return{..._0x283a89,'sourceFingerprint':_0x2a15ae,'diagramRevision':_0x2088a8,'expectedDiagramRevision':_0x2088a8??0x0};}export async function downloadRuntimeSkillPackage(_0xf4456e,_0x207f48,_0x21a0cb,_0x3d9e80){const _0x5085e3=a108_0x57c787;void _0xf4456e;const _0x1cb53a=_0x3d9e80?_0x5085e3(0xfb)+encodeURIComponent(_0x21a0cb)+'/'+encodeURIComponent(_0x207f48)+'/versions/'+encodeURIComponent(_0x3d9e80)+_0x5085e3(0x158):'/api/cli/v1/skills/'+encodeURIComponent(_0x21a0cb)+'/'+encodeURIComponent(_0x207f48)+_0x5085e3(0x158);return skillHubBinaryRequest(_0x1cb53a);}async function publishRuntimeSkill(_0x1ea0ee,_0x3e31c4,_0x470db4){const _0x1203a6=a108_0x57c787,_0x3b6554=buildRuntimeSkillPublishForm(_0x3e31c4,_0x470db4[_0x1203a6(0x143)]),_0x42819f=await skillHubJsonRequest('/api/cli/v1/skills/'+encodeURIComponent(_0x1ea0ee)+_0x1203a6(0xfa),{'method':_0x1203a6(0xf6),'query':{'confirmWarnings':_0x470db4[_0x1203a6(0xd9)]===!![]?!![]:undefined},'body':_0x3b6554});return assertJointDiagramAcknowledged(_0x3e31c4[_0x1203a6(0xda)],_0x42819f[_0x1203a6(0x9e)],_0x1203a6(0xe5)),{'appCode':_0x42819f[_0x1203a6(0x16c)]??_0x1ea0ee,'skillCode':_0x42819f['slug']??_0x3e31c4[_0x1203a6(0x109)]??'','skillName':_0x3e31c4['skillName']??_0x42819f['slug']??_0x3e31c4[_0x1203a6(0x109)],'description':_0x3e31c4[_0x1203a6(0x124)],'scope':skillHubVisibilityToScope(_0x42819f[_0x1203a6(0x143)]??_0x470db4['visibility'])??'personal','version':_0x42819f[_0x1203a6(0xa8)]??_0x3e31c4[_0x1203a6(0xa8)],'tags':_0x3e31c4[_0x1203a6(0xff)],'content':_0x3e31c4[_0x1203a6(0x13c)],'diagramBound':_0x42819f[_0x1203a6(0x9e)]===!![]};}function assertJointDiagramAcknowledged(_0x2bd701,_0x1e0a2d,_0x172f44){const _0x3b8014=a108_0x57c787;if(!_0x2bd701||_0x1e0a2d===!![])return;throw CliErrors[_0x3b8014(0xf2)](_0x3b8014(0xe2)+_0x172f44+'.',_0x3b8014(0x148));}function buildRuntimeSkillPublishForm(_0x4ec4f9,_0x311ee1){const _0x1ba16e=a108_0x57c787,_0x3aafe9=new FormData();return _0x3aafe9[_0x1ba16e(0x14a)](_0x1ba16e(0xcd),runtimeSkillPackageFile(_0x4ec4f9)),_0x4ec4f9['skillName']?.[_0x1ba16e(0x167)]()&&_0x3aafe9['set']('displayName',_0x4ec4f9['skillName'][_0x1ba16e(0x167)]()),_0x3aafe9[_0x1ba16e(0x14a)](_0x1ba16e(0x143),_0x311ee1),_0x4ec4f9[_0x1ba16e(0xda)]&&_0x3aafe9[_0x1ba16e(0x14a)](_0x1ba16e(0xda),new Blob([JSON[_0x1ba16e(0x11e)](_0x4ec4f9[_0x1ba16e(0xda)])],{'type':_0x1ba16e(0xdc)})),_0x3aafe9;}function runtimeSkillVersionDiagramPath(_0x54551c,_0x30ed1d,_0xadb722,_0x2557b8=''){const _0x51f7cc=a108_0x57c787;return _0x51f7cc(0xfb)+encodeURIComponent(_0x54551c)+'/'+encodeURIComponent(_0x30ed1d)+_0x51f7cc(0xb1)+encodeURIComponent(_0xadb722)+_0x51f7cc(0xd8)+_0x2557b8;}function a108_0x57fd(_0x48585e,_0x111845){_0x48585e=_0x48585e-0x87;const _0x22767a=a108_0x2276();let _0x57fd27=_0x22767a[_0x48585e];return _0x57fd27;}function runtimeSkillPackageFile(_0x22fef9){const _0x190a42=a108_0x57c787;if(!_0x22fef9[_0x190a42(0x134)])throw CliErrors[_0x190a42(0xa5)](_0x190a42(0x118));const _0x3df876=Buffer[_0x190a42(0x130)](_0x22fef9[_0x190a42(0x134)],_0x190a42(0xc2)),_0x1973a4=new Blob([_0x3df876],{'type':_0x190a42(0xf7)}),_0x1f0e34=(_0x22fef9[_0x190a42(0x109)]||_0x190a42(0x11b))+_0x190a42(0x12f);if(typeof File!==_0x190a42(0x87))return new File([_0x1973a4],_0x1f0e34,{'type':_0x190a42(0xf7)});return _0x1973a4;}function normalizeSkillHubRuntimeListResponse(_0x8c97ea,_0x2a1dff,_0x2e2036,_0x41777d,_0x35a085=![]){const _0x2f645e=a108_0x57c787,_0x9dcf1a=Array[_0x2f645e(0x104)](_0x2a1dff)?_0x2a1dff:Array[_0x2f645e(0x104)](_0x2a1dff?.[_0x2f645e(0xc4)])?_0x2a1dff[_0x2f645e(0xc4)]:[],_0x52e49b=_0x41777d?.[_0x2f645e(0x167)](),_0x19ea76=_0x9dcf1a['filter'](_0x34d978=>!_0x52e49b||_0x34d978[_0x2f645e(0xc7)]===_0x52e49b)['filter'](_0x5e3003=>!_0x35a085||_0x5e3003['publishedVersion']?.[_0x2f645e(0x97)]===_0x2f645e(0x110)&&Boolean(_0x5e3003[_0x2f645e(0xfd)][_0x2f645e(0xa8)]?.[_0x2f645e(0x167)]()))['map'](skillHubRuntimeItemToRuntimeSkill)[_0x2f645e(0xc6)](_0x26b54a=>Boolean(_0x26b54a)),_0x785394=_0x19ea76['filter'](_0x389d1a=>_0x389d1a['scope']===_0x2f645e(0xdd)),_0x3bce4f=_0x19ea76['filter'](_0x39f236=>_0x39f236[_0x2f645e(0x14c)]===_0x2f645e(0x15b));return{'appCode':_0x8c97ea,'personal':_0x2e2036==='company'?[]:_0x785394,'company':_0x2e2036===_0x2f645e(0xdd)?[]:_0x3bce4f,'effective':buildEffectiveRuntimeSkills(_0x785394,_0x3bce4f,_0x2e2036)};}function skillHubRuntimeItemToRuntimeSkill(_0x5c36a0){const _0x4184f5=a108_0x57c787,_0x30bd71=_0x5c36a0[_0x4184f5(0xc7)]?.[_0x4184f5(0x167)](),_0x933832=skillHubVisibilityToScope(_0x5c36a0[_0x4184f5(0x143)]);if(!_0x30bd71||!_0x933832)return undefined;return{'id':_0x5c36a0['id'],'appCode':_0x5c36a0[_0x4184f5(0x16c)],'skillCode':_0x30bd71,'skillName':_0x5c36a0['displayName']??_0x30bd71,'description':_0x5c36a0['summary'],'example':_0x5c36a0[_0x4184f5(0xa4)],'scope':_0x933832,'version':skillHubRuntimeItemVersion(_0x5c36a0),'status':_0x5c36a0['status']};}function skillHubRuntimeDetailToRuntimeSkill(_0x5f1156){const _0x369b6d=a108_0x57c787,_0x4ce7be=_0x5f1156[_0x369b6d(0xc7)]?.[_0x369b6d(0x167)]();if(!_0x4ce7be)return undefined;return{'id':_0x5f1156['id'],'appCode':_0x5f1156[_0x369b6d(0x16c)],'skillCode':_0x4ce7be,'skillName':_0x5f1156[_0x369b6d(0xe0)]??_0x4ce7be,'description':_0x5f1156[_0x369b6d(0x101)],'example':_0x5f1156['example'],'scope':skillHubVisibilityToScope(_0x5f1156['visibility'])??_0x5f1156['visibility']?.[_0x369b6d(0x9a)](),'version':skillHubRuntimeItemVersion(_0x5f1156),'status':_0x5f1156['status']};}function skillHubVisibilityToScope(_0x59fd63){const _0x48cb08=a108_0x57c787;if(_0x59fd63===_0x48cb08(0xe8))return _0x48cb08(0xdd);if(_0x59fd63===_0x48cb08(0xb9))return'company';return undefined;}function skillHubRuntimeItemVersion(_0x5a527e){const _0x332455=a108_0x57c787;return _0x5a527e[_0x332455(0xfd)]?.[_0x332455(0xa8)]??_0x5a527e[_0x332455(0x154)]?.['version']??_0x5a527e[_0x332455(0x8e)]?.['version'];}function buildEffectiveRuntimeSkills(_0x16f9ba,_0xfe9826,_0x139c40){const _0x50924b=a108_0x57c787;if(_0x139c40==='personal')return _0x16f9ba;if(_0x139c40===_0x50924b(0x15b))return _0xfe9826;const _0x23fffd=new Map();for(const _0x53dc0b of _0xfe9826){_0x23fffd[_0x50924b(0x14a)](_0x53dc0b['skillCode'],_0x53dc0b);}for(const _0x5ea815 of _0x16f9ba){_0x23fffd[_0x50924b(0x14a)](_0x5ea815['skillCode'],_0x5ea815);}return Array['from'](_0x23fffd['values']());}function normalizeRuntimeSkillListResponse(_0x28722a,_0x23ebac){const _0x13d1f8=a108_0x57c787;if(Array[_0x13d1f8(0x104)](_0x23ebac)){const _0x2844c8=_0x23ebac[_0x13d1f8(0xc6)](_0x53a235=>_0x53a235['scope']===_0x13d1f8(0xdd)),_0x472a28=_0x23ebac['filter'](_0x3be8e4=>_0x3be8e4[_0x13d1f8(0x14c)]==='company');return{'appCode':_0x28722a,'personal':_0x2844c8,'company':_0x472a28,'effective':[..._0x472a28,..._0x2844c8]};}return{'appCode':_0x23ebac?.['appCode']??_0x28722a,'personal':Array[_0x13d1f8(0x104)](_0x23ebac?.['personal'])?_0x23ebac['personal']:[],'company':Array[_0x13d1f8(0x104)](_0x23ebac?.[_0x13d1f8(0x15b)])?_0x23ebac[_0x13d1f8(0x15b)]:[],'effective':Array[_0x13d1f8(0x104)](_0x23ebac?.[_0x13d1f8(0x13d)])?_0x23ebac[_0x13d1f8(0x13d)]:[]};}function normalizeRuntimeRoleUserList(_0x11af4c,_0x20f2eb){const _0x197a64=a108_0x57c787;if(!Array[_0x197a64(0x104)](_0x11af4c))throw CliErrors[_0x197a64(0xf2)](_0x197a64(0xbb)+_0x20f2eb+_0x197a64(0xab));return _0x11af4c[_0x197a64(0xb5)]((_0x110c21,_0x4e99da)=>{const _0x3bd0a1=_0x197a64;if(!_0x110c21||typeof _0x110c21!=='object'||Array[_0x3bd0a1(0x104)](_0x110c21))throw CliErrors[_0x3bd0a1(0xf2)](_0x3bd0a1(0xbb)+_0x20f2eb+'['+_0x4e99da+_0x3bd0a1(0x10b));const _0x3d1cf9=_0x110c21,_0xe1a4b7=normalizeRuntimeUserId(_0x3d1cf9[_0x3bd0a1(0x120)]);if(_0xe1a4b7===undefined)throw CliErrors[_0x3bd0a1(0xf2)](_0x3bd0a1(0xbb)+_0x20f2eb+'['+_0x4e99da+_0x3bd0a1(0xbe));return{..._0x3d1cf9,'userId':_0xe1a4b7};});}function normalizeRuntimeRoleUsersResponse(_0x47754a){const _0x3dbe4d=a108_0x57c787;return extractList(_0x47754a)[_0x3dbe4d(0xb5)]((_0xed3dc3,_0x1df019)=>{const _0x3bbda7=_0x3dbe4d;if(!_0xed3dc3||typeof _0xed3dc3!==_0x3bbda7(0x147)||Array[_0x3bbda7(0x104)](_0xed3dc3))throw CliErrors[_0x3bbda7(0xf2)]('Invalid\x20runtime\x20role\x20members\x20response:\x20roleList['+_0x1df019+_0x3bbda7(0x10b));const _0x8b0502=_0xed3dc3;return{..._0x8b0502,'userList':normalizeRuntimeRoleUserList(_0x8b0502[_0x3bbda7(0x150)],_0x3bbda7(0xd2)+_0x1df019+_0x3bbda7(0xc9)),..._0x8b0502[_0x3bbda7(0xf9)]===undefined?{}:{'applyUserList':normalizeRuntimeRoleUserList(_0x8b0502['applyUserList'],_0x3bbda7(0xd2)+_0x1df019+_0x3bbda7(0x165))}};});}export async function listRuntimeAppRoles(_0xb8089f,_0x561fb3={}){const _0xe5f10b=a108_0x57c787,_0x4a4708=_0x561fb3[_0xe5f10b(0xad)]??0x1,_0x17aece=Math[_0xe5f10b(0x136)](Math['max'](_0x561fb3[_0xe5f10b(0x144)]??0x64,0x1),0x64),_0x199133=await sdkRequest(_0xb8089f,_0xdaeed1=>_0xdaeed1['permit'][_0xe5f10b(0x141)]({..._0x561fb3[_0xe5f10b(0x140)]?{'roleName':_0x561fb3[_0xe5f10b(0x140)]}:{},'currentPage':_0x4a4708,'pageSize':_0x17aece}));return{'items':extractList(_0x199133),'paging':extractPaging(_0x199133)};}export async function createRuntimeAppRole(_0x20f17f){const _0x4b207f=a108_0x57c787;return sdkRequest(_0x20f17f['appCode'],_0x574eb0=>_0x574eb0['permit']['createRole']({'roleType':_0x4b207f(0xa9),..._0x20f17f}));}export async function updateRuntimeAppRole(_0x8755fc){const _0x25dfed=a108_0x57c787;return sdkRequest(_0x8755fc['appCode'],_0x11eea6=>_0x11eea6[_0x25dfed(0xa2)][_0x25dfed(0x91)](_0x8755fc));}export async function deleteRuntimeAppRole(_0x495dcc){const _0x117ba5=a108_0x57c787;return sdkRequest(undefined,_0x598109=>_0x598109[_0x117ba5(0xa2)][_0x117ba5(0x112)](_0x495dcc));}export async function listRuntimeRoleUsers(_0x58d6ad){const _0x4b422a=a108_0x57c787,_0x921c6b=await sdkRequest(_0x58d6ad,_0x337518=>_0x337518['permit'][_0x4b422a(0x13b)]());return normalizeRuntimeRoleUsersResponse(_0x921c6b);}export async function updateRuntimeRoleUsers(_0x26ee7b,_0x588e3b){const _0x3bd6d6=a108_0x57c787;return sdkRequest(_0x26ee7b,_0x43f254=>_0x43f254[_0x3bd6d6(0xa2)]['updateRoleUserList']({'roleList':_0x588e3b}));}export async function listRuntimeAppUsers(_0x4f0356){const _0x17ffe1=a108_0x57c787,_0x2a080c=await sdkRequest(_0x4f0356,_0x3888ef=>_0x3888ef[_0x17ffe1(0xa2)][_0x17ffe1(0xac)]());return extractList(_0x2a080c);}export async function listRuntimePermitRoles(_0x5ce105,_0x14b717={}){const _0x7577a4=a108_0x57c787,_0x5caae8=await sdkRequest(_0x5ce105,_0x825274=>_0x825274['permit'][_0x7577a4(0x166)](_0x14b717));return extractList(_0x5caae8);}export async function getRuntimePagePermit(_0x3649e9){return sdkRequest(undefined,_0x5c961f=>_0x5c961f['permit']['getPagePermit'](_0x3649e9));}export async function saveRuntimePagePermit(_0x44590f){const _0x2e1943=a108_0x57c787;return sdkRequest(_0x44590f['appCode'],_0x4fb121=>_0x4fb121[_0x2e1943(0xa2)][_0x2e1943(0x108)](_0x44590f));}export async function getRuntimeRoleMenuResources(_0x40092d,_0x3ae777){const _0x16de69=a108_0x57c787,_0x2fe710=await sdkRequest(_0x40092d,_0x27fc12=>_0x27fc12[_0x16de69(0xa2)]['getResourceMenuList']({'roleId':_0x3ae777}));return extractList(_0x2fe710);}export async function listRuntimeMenuRolePermits(_0x4edc3d){const _0x5a3dc7=a108_0x57c787,_0x3ced5e=await sdkRequest(_0x4edc3d,_0x150de4=>_0x150de4[_0x5a3dc7(0xa2)][_0x5a3dc7(0x94)]());return Array['isArray'](_0x3ced5e?.[_0x5a3dc7(0x89)])?_0x3ced5e[_0x5a3dc7(0x89)]:[];}export async function saveRuntimeMenuRolePermits(_0x145f25,_0x635db7){const _0x38cc83=a108_0x57c787;return sdkRequest(_0x145f25,_0x25baa7=>_0x25baa7[_0x38cc83(0xa2)][_0x38cc83(0x119)]({'permitList':_0x635db7}));}export async function listRuntimeDatasetPermits(_0x20fbee,_0x45ecdf){const _0x190520=a108_0x57c787,_0x5e42e7=await sdkRequest(_0x20fbee,_0x510f5e=>_0x510f5e[_0x190520(0xa2)][_0x190520(0xb3)](_0x45ecdf));return Array[_0x190520(0x104)](_0x5e42e7?.[_0x190520(0x89)])?_0x5e42e7[_0x190520(0x89)]:[];}export async function listRuntimeDatasetRolePermits(_0x3544dd){const _0x4f4911=a108_0x57c787,_0x2c271a=await sdkRequest(_0x3544dd,_0x44a9d6=>_0x44a9d6['permit'][_0x4f4911(0xae)]());return Array[_0x4f4911(0x104)](_0x2c271a?.[_0x4f4911(0x89)])?_0x2c271a[_0x4f4911(0x89)]:[];}export async function saveRuntimeDatasetRolePermits(_0x4fb21d,_0x1888c4){const _0x29beb1=a108_0x57c787;return sdkRequest(_0x4fb21d,_0x32a9a4=>_0x32a9a4['permit'][_0x29beb1(0x9d)]({'permitList':_0x1888c4}));}