@lovrabet/lovrabet-cli 2.3.10-beta.3 → 2.3.10

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 +1 -1
  184. package/skills/lovrabet/SKILL.md +1 -1
  185. package/skills/lovrabet.manifest.json +3 -3
@@ -1 +1 @@
1
- function a96_0x2ddc(){const _0x34a293=['279654kkacub','6bVykyb','8462041pVZDeP','1648RpVLdz','ClientAk','45nIqwJs','client-ak','21325760ReSvBQ','163160qcNlOv','127427RXLDrR','2338824XKxkik','20187ksSrSH'];a96_0x2ddc=function(){return _0x34a293;};return a96_0x2ddc();}const a96_0x11bbbb=a96_0x47c6;function a96_0x47c6(_0x45c742,_0x55236e){_0x45c742=_0x45c742-0x6d;const _0x2ddc50=a96_0x2ddc();let _0x47c6a6=_0x2ddc50[_0x45c742];return _0x47c6a6;}(function(_0x743e85,_0x3ba09e){const _0x3d6c9b=a96_0x47c6,_0x2135b7=_0x743e85();while(!![]){try{const _0x13d7af=-parseInt(_0x3d6c9b(0x75))/0x1+parseInt(_0x3d6c9b(0x74))/0x2*(parseInt(_0x3d6c9b(0x6d))/0x3)+parseInt(_0x3d6c9b(0x76))/0x4+parseInt(_0x3d6c9b(0x71))/0x5*(-parseInt(_0x3d6c9b(0x78))/0x6)+-parseInt(_0x3d6c9b(0x6e))/0x7+parseInt(_0x3d6c9b(0x6f))/0x8*(-parseInt(_0x3d6c9b(0x77))/0x9)+parseInt(_0x3d6c9b(0x73))/0xa;if(_0x13d7af===_0x3ba09e)break;else _0x2135b7['push'](_0x2135b7['shift']());}catch(_0x6c8a57){_0x2135b7['push'](_0x2135b7['shift']());}}}(a96_0x2ddc,0xa1c55));export const AUTH_MODE={'ClientAk':a96_0x11bbbb(0x72)};export function isAuthMode(_0x5062fa){const _0x187294=a96_0x11bbbb;return _0x5062fa===AUTH_MODE[_0x187294(0x70)];}
1
+ const a96_0x4052f7=a96_0x3dc8;(function(_0x6f3173,_0x5a46a1){const _0x1675b2=a96_0x3dc8,_0x58c4f0=_0x6f3173();while(!![]){try{const _0x32b182=parseInt(_0x1675b2(0x191))/0x1*(-parseInt(_0x1675b2(0x197))/0x2)+-parseInt(_0x1675b2(0x196))/0x3+-parseInt(_0x1675b2(0x18d))/0x4*(-parseInt(_0x1675b2(0x18c))/0x5)+parseInt(_0x1675b2(0x193))/0x6+-parseInt(_0x1675b2(0x192))/0x7+-parseInt(_0x1675b2(0x18f))/0x8*(parseInt(_0x1675b2(0x190))/0x9)+parseInt(_0x1675b2(0x195))/0xa;if(_0x32b182===_0x5a46a1)break;else _0x58c4f0['push'](_0x58c4f0['shift']());}catch(_0x58c638){_0x58c4f0['push'](_0x58c4f0['shift']());}}}(a96_0x18d1,0x449bd));function a96_0x3dc8(_0x45f0b0,_0x4cd8f0){_0x45f0b0=_0x45f0b0-0x18c;const _0x18d186=a96_0x18d1();let _0x3dc860=_0x18d186[_0x45f0b0];return _0x3dc860;}function a96_0x18d1(){const _0x5f2f17=['ClientAk','8wdvQRb','4656933nJKTjZ','566jpvdpa','1399167HUOcBn','314082jQKRKM','client-ak','16620870CjLaiB','1127229tffsLg','1486rbZKkJ','5jQfKzw','320744NgyciA'];a96_0x18d1=function(){return _0x5f2f17;};return a96_0x18d1();}export const AUTH_MODE={'ClientAk':a96_0x4052f7(0x194)};export function isAuthMode(_0x3cc598){const _0x1bfe87=a96_0x4052f7;return _0x3cc598===AUTH_MODE[_0x1bfe87(0x18e)];}
@@ -1 +1 @@
1
- function a97_0x1e18(_0x43b517,_0x1233c5){_0x43b517=_0x43b517-0xf4;const _0x46e286=a97_0x46e2();let _0x1e1875=_0x46e286[_0x43b517];return _0x1e1875;}const a97_0x4a891b=a97_0x1e18;(function(_0x11109e,_0x1a5d79){const _0x363b4d=a97_0x1e18,_0x115640=_0x11109e();while(!![]){try{const _0x43549c=-parseInt(_0x363b4d(0xfc))/0x1+-parseInt(_0x363b4d(0x11f))/0x2+-parseInt(_0x363b4d(0x102))/0x3*(-parseInt(_0x363b4d(0xfd))/0x4)+parseInt(_0x363b4d(0x118))/0x5+parseInt(_0x363b4d(0x11a))/0x6+-parseInt(_0x363b4d(0xfb))/0x7*(parseInt(_0x363b4d(0x111))/0x8)+parseInt(_0x363b4d(0x116))/0x9;if(_0x43549c===_0x1a5d79)break;else _0x115640['push'](_0x115640['shift']());}catch(_0x1f450a){_0x115640['push'](_0x115640['shift']());}}}(a97_0x46e2,0x67147));import{PRODUCT_CONFIG}from'../constant/product.js';function a97_0x46e2(){const _0x5543a2=['SQL\x20query\x20code','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20implies\x20--format\x20json\x20when\x20current\x20format\x20is\x20pretty)','dryRun','app','appcode','string','5537apEAdJ','405999LODjXS','33832eIJkcT','Verbose\x20output','yes','Select\x20app\x20profile\x20by\x20name','help','108WyfTIF','global','non-interactive','JSON\x20params\x20for\x20execute\x20commands','sqlcode','Alias\x20for\x20--non-interactive','verbose','boolean','cliBinName','<name>','env','dry-run','cliDisplayName','production\x20|\x20development\x20|\x20daily','Preview\x20operation\x20without\x20executing','5896ZxBRTB','<expr>','Skip\x20confirmation\x20for\x20high-risk\x20writes','nonInteractive','Name\x20filter','9972243tGorbc','<code>','1938040QCKQEE','clear','866034salqep','Record\x20ID','Show\x20help','fromEntries','format','1066562phCVne','name','json\x20|\x20pretty\x20|\x20compress'];a97_0x46e2=function(){return _0x5543a2;};return a97_0x46e2();}import{LOVRABET_NPM_PACKAGE_NAME}from'../constant/distribution.js';export const CLI_BIN_NAME=PRODUCT_CONFIG[a97_0x4a891b(0x10a)];export const CLI_DISPLAY_NAME=PRODUCT_CONFIG[a97_0x4a891b(0x10e)];export const NPM_PACKAGE_NAME=LOVRABET_NPM_PACKAGE_NAME;export const GLOBAL_FLAGS=[{'name':a97_0x4a891b(0xf9),'meowKey':'appcode','type':a97_0x4a891b(0xfa),'description':'Override\x20appcode','hint':a97_0x4a891b(0x117)},{'name':a97_0x4a891b(0xf8),'meowKey':a97_0x4a891b(0xf8),'type':'string','description':a97_0x4a891b(0x100),'hint':a97_0x4a891b(0x10b)},{'name':a97_0x4a891b(0x10c),'meowKey':'env','type':a97_0x4a891b(0xfa),'description':'Environment','hint':a97_0x4a891b(0x10f)},{'name':a97_0x4a891b(0x11e),'meowKey':a97_0x4a891b(0x11e),'type':a97_0x4a891b(0xfa),'description':'Output\x20format','hint':a97_0x4a891b(0xf4)},{'name':'jq','meowKey':'jq','type':a97_0x4a891b(0xfa),'description':a97_0x4a891b(0xf6),'hint':a97_0x4a891b(0x112)},{'name':'dry-run','meowKey':a97_0x4a891b(0xf7),'type':a97_0x4a891b(0x109),'description':a97_0x4a891b(0x110)},{'name':'yes','meowKey':a97_0x4a891b(0xff),'type':a97_0x4a891b(0x109),'description':a97_0x4a891b(0x113)},{'name':a97_0x4a891b(0x104),'meowKey':a97_0x4a891b(0x114),'type':a97_0x4a891b(0x109),'description':'Force\x20non-interactive\x20mode\x20(CI)'},{'name':'global','meowKey':a97_0x4a891b(0x103),'type':a97_0x4a891b(0x109),'description':'Use\x20global\x20config\x20scope'},{'name':'ci','meowKey':'ci','type':a97_0x4a891b(0x109),'description':a97_0x4a891b(0x107),'hidden':!![]},{'name':'help','meowKey':a97_0x4a891b(0x101),'type':a97_0x4a891b(0x109),'description':a97_0x4a891b(0x11c)},{'name':'id','meowKey':'id','type':a97_0x4a891b(0xfa),'description':a97_0x4a891b(0x11b),'hidden':!![]},{'name':a97_0x4a891b(0x120),'meowKey':a97_0x4a891b(0x120),'type':a97_0x4a891b(0xfa),'description':a97_0x4a891b(0x115),'hidden':!![]},{'name':a97_0x4a891b(0x106),'meowKey':'sqlcode','type':a97_0x4a891b(0xfa),'description':a97_0x4a891b(0xf5),'hidden':!![]},{'name':'params','meowKey':'params','type':a97_0x4a891b(0xfa),'description':a97_0x4a891b(0x105),'hidden':!![]},{'name':a97_0x4a891b(0x108),'meowKey':a97_0x4a891b(0x108),'type':a97_0x4a891b(0x109),'description':a97_0x4a891b(0xfe),'hidden':!![]},{'name':'clear','meowKey':a97_0x4a891b(0x119),'type':'boolean','description':'Clear\x20output','hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set([a97_0x4a891b(0xf9),a97_0x4a891b(0xf8),a97_0x4a891b(0x10c),a97_0x4a891b(0x11e),'jq',a97_0x4a891b(0x10d),'yes',a97_0x4a891b(0x104),'ci']);export function buildMeowFlags(){const _0x163dd8=a97_0x4a891b;return Object[_0x163dd8(0x11d)](GLOBAL_FLAGS['map'](_0x4a4f6c=>[_0x4a4f6c['meowKey'],{'type':_0x4a4f6c['type']}]));}
1
+ const a97_0x70c0ee=a97_0x2c87;(function(_0x17f081,_0x4f2199){const _0x4a1683=a97_0x2c87,_0x26f003=_0x17f081();while(!![]){try{const _0x1f9202=-parseInt(_0x4a1683(0x1ad))/0x1+-parseInt(_0x4a1683(0x1a1))/0x2+-parseInt(_0x4a1683(0x197))/0x3*(-parseInt(_0x4a1683(0x1bb))/0x4)+parseInt(_0x4a1683(0x1a0))/0x5*(parseInt(_0x4a1683(0x1be))/0x6)+parseInt(_0x4a1683(0x1c0))/0x7+-parseInt(_0x4a1683(0x1a3))/0x8*(parseInt(_0x4a1683(0x1b0))/0x9)+parseInt(_0x4a1683(0x1bf))/0xa;if(_0x1f9202===_0x4f2199)break;else _0x26f003['push'](_0x26f003['shift']());}catch(_0x1a4957){_0x26f003['push'](_0x26f003['shift']());}}}(a97_0x4840,0xa7158));function a97_0x4840(){const _0x34a66d=['<code>','yes','Alias\x20for\x20--non-interactive','map','boolean','appcode','verbose','Select\x20app\x20profile\x20by\x20name','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20implies\x20--format\x20json\x20when\x20current\x20format\x20is\x20pretty)','548572ZDsdmA','params','Clear\x20output','1068idgeCQ','1399570gsNolh','5810805HbqrTQ','sqlcode','cliBinName','format','Verbose\x20output','15TSOKqA','Output\x20format','JSON\x20params\x20for\x20execute\x20commands','non-interactive','Force\x20non-interactive\x20mode\x20(CI)','SQL\x20query\x20code','string','Name\x20filter','Skip\x20confirmation\x20for\x20high-risk\x20writes','28465PwgPeC','1039636JLpBEx','Record\x20ID','160712mGGLpB','cliDisplayName','meowKey','help','Environment','fromEntries','<expr>','clear','env','Preview\x20operation\x20without\x20executing','621209lFyAPH','dry-run','<name>','378FmpkXx','app'];a97_0x4840=function(){return _0x34a66d;};return a97_0x4840();}import{PRODUCT_CONFIG}from'../constant/product.js';function a97_0x2c87(_0xfb767,_0x15613e){_0xfb767=_0xfb767-0x193;const _0x48409e=a97_0x4840();let _0x2c8772=_0x48409e[_0xfb767];return _0x2c8772;}import{LOVRABET_NPM_PACKAGE_NAME}from'../constant/distribution.js';export const CLI_BIN_NAME=PRODUCT_CONFIG[a97_0x70c0ee(0x194)];export const CLI_DISPLAY_NAME=PRODUCT_CONFIG[a97_0x70c0ee(0x1a4)];export const NPM_PACKAGE_NAME=LOVRABET_NPM_PACKAGE_NAME;export const GLOBAL_FLAGS=[{'name':a97_0x70c0ee(0x1b7),'meowKey':a97_0x70c0ee(0x1b7),'type':'string','description':'Override\x20appcode','hint':a97_0x70c0ee(0x1b2)},{'name':a97_0x70c0ee(0x1b1),'meowKey':a97_0x70c0ee(0x1b1),'type':a97_0x70c0ee(0x19d),'description':a97_0x70c0ee(0x1b9),'hint':a97_0x70c0ee(0x1af)},{'name':a97_0x70c0ee(0x1ab),'meowKey':a97_0x70c0ee(0x1ab),'type':a97_0x70c0ee(0x19d),'description':a97_0x70c0ee(0x1a7),'hint':'production\x20|\x20development\x20|\x20daily'},{'name':a97_0x70c0ee(0x195),'meowKey':'format','type':'string','description':a97_0x70c0ee(0x198),'hint':'json\x20|\x20pretty\x20|\x20compress'},{'name':'jq','meowKey':'jq','type':'string','description':a97_0x70c0ee(0x1ba),'hint':a97_0x70c0ee(0x1a9)},{'name':'dry-run','meowKey':'dryRun','type':a97_0x70c0ee(0x1b6),'description':a97_0x70c0ee(0x1ac)},{'name':a97_0x70c0ee(0x1b3),'meowKey':a97_0x70c0ee(0x1b3),'type':a97_0x70c0ee(0x1b6),'description':a97_0x70c0ee(0x19f)},{'name':a97_0x70c0ee(0x19a),'meowKey':'nonInteractive','type':a97_0x70c0ee(0x1b6),'description':a97_0x70c0ee(0x19b)},{'name':'global','meowKey':'global','type':a97_0x70c0ee(0x1b6),'description':'Use\x20global\x20config\x20scope'},{'name':'ci','meowKey':'ci','type':a97_0x70c0ee(0x1b6),'description':a97_0x70c0ee(0x1b4),'hidden':!![]},{'name':a97_0x70c0ee(0x1a6),'meowKey':a97_0x70c0ee(0x1a6),'type':a97_0x70c0ee(0x1b6),'description':'Show\x20help'},{'name':'id','meowKey':'id','type':'string','description':a97_0x70c0ee(0x1a2),'hidden':!![]},{'name':'name','meowKey':'name','type':a97_0x70c0ee(0x19d),'description':a97_0x70c0ee(0x19e),'hidden':!![]},{'name':a97_0x70c0ee(0x193),'meowKey':'sqlcode','type':a97_0x70c0ee(0x19d),'description':a97_0x70c0ee(0x19c),'hidden':!![]},{'name':'params','meowKey':a97_0x70c0ee(0x1bc),'type':a97_0x70c0ee(0x19d),'description':a97_0x70c0ee(0x199),'hidden':!![]},{'name':a97_0x70c0ee(0x1b8),'meowKey':a97_0x70c0ee(0x1b8),'type':'boolean','description':a97_0x70c0ee(0x196),'hidden':!![]},{'name':a97_0x70c0ee(0x1aa),'meowKey':'clear','type':a97_0x70c0ee(0x1b6),'description':a97_0x70c0ee(0x1bd),'hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set(['appcode',a97_0x70c0ee(0x1b1),a97_0x70c0ee(0x1ab),a97_0x70c0ee(0x195),'jq',a97_0x70c0ee(0x1ae),'yes',a97_0x70c0ee(0x19a),'ci']);export function buildMeowFlags(){const _0x5b744=a97_0x70c0ee;return Object[_0x5b744(0x1a8)](GLOBAL_FLAGS[_0x5b744(0x1b5)](_0x1ef381=>[_0x1ef381[_0x5b744(0x1a5)],{'type':_0x1ef381['type']}]));}
@@ -1 +1 @@
1
- const a98_0x46d585=a98_0x2d14;function a98_0x2d14(_0x4645e0,_0x3ecdb0){_0x4645e0=_0x4645e0-0x87;const _0x27f302=a98_0x27f3();let _0x2d1475=_0x27f302[_0x4645e0];return _0x2d1475;}(function(_0x3f6209,_0x4930e4){const _0x57953b=a98_0x2d14,_0x1caef6=_0x3f6209();while(!![]){try{const _0x2e3eda=-parseInt(_0x57953b(0x88))/0x1*(-parseInt(_0x57953b(0x8b))/0x2)+parseInt(_0x57953b(0x8d))/0x3*(parseInt(_0x57953b(0x8a))/0x4)+-parseInt(_0x57953b(0x92))/0x5*(-parseInt(_0x57953b(0x8c))/0x6)+parseInt(_0x57953b(0x87))/0x7*(parseInt(_0x57953b(0x8e))/0x8)+-parseInt(_0x57953b(0x94))/0x9+parseInt(_0x57953b(0x90))/0xa*(-parseInt(_0x57953b(0x95))/0xb)+parseInt(_0x57953b(0x89))/0xc;if(_0x2e3eda===_0x4930e4)break;else _0x1caef6['push'](_0x1caef6['shift']());}catch(_0x4e2ce8){_0x1caef6['push'](_0x1caef6['shift']());}}}(a98_0x27f3,0x7128f));function a98_0x27f3(){const _0x2fdc6b=['166mbnfmQ','2730ZPcMxR','1011LhnjII','224qMXoAT','compress','10pdtFXf','main','6590rksVEy','production','6963381FsfVED','9404527rFNqEy','28973vqnOBw','7716GbjPMJ','5182176LJpPVA','3612NCzLhg'];a98_0x27f3=function(){return _0x2fdc6b;};return a98_0x27f3();}export const DEFAULT_APP_PROFILE_NAME=a98_0x46d585(0x91);export const DEFAULT_CONFIG_VALUES={'env':a98_0x46d585(0x93),'format':a98_0x46d585(0x8f),'locale':'en-US','riskLevel':'write'};export const DEFAULT_COMMAND_OUTPUT_FORMAT=a98_0x46d585(0x8f);
1
+ const a98_0x54e069=a98_0x240f;(function(_0x354021,_0x29ee53){const _0x57d46b=a98_0x240f,_0x4679e1=_0x354021();while(!![]){try{const _0x278bcc=-parseInt(_0x57d46b(0x163))/0x1*(-parseInt(_0x57d46b(0x168))/0x2)+-parseInt(_0x57d46b(0x16a))/0x3+parseInt(_0x57d46b(0x167))/0x4+parseInt(_0x57d46b(0x15e))/0x5+parseInt(_0x57d46b(0x15f))/0x6*(parseInt(_0x57d46b(0x16b))/0x7)+parseInt(_0x57d46b(0x161))/0x8*(-parseInt(_0x57d46b(0x16c))/0x9)+-parseInt(_0x57d46b(0x164))/0xa*(parseInt(_0x57d46b(0x160))/0xb);if(_0x278bcc===_0x29ee53)break;else _0x4679e1['push'](_0x4679e1['shift']());}catch(_0x2afbb0){_0x4679e1['push'](_0x4679e1['shift']());}}}(a98_0x2207,0x8aaf9));function a98_0x240f(_0x3a92b5,_0x15c3e0){_0x3a92b5=_0x3a92b5-0x15d;const _0x2207cf=a98_0x2207();let _0x240f1a=_0x2207cf[_0x3a92b5];return _0x240f1a;}function a98_0x2207(){const _0x320db3=['4720600XppZyA','30696ncyfzO','13673154DIGQeh','8GVxZaj','write','389309PhKtJh','10tSBsJG','en-US','main','2900348tmwkUF','2uCWfde','production','1693770MAmxRj','1253pKionp','5387571wjZStF','compress'];a98_0x2207=function(){return _0x320db3;};return a98_0x2207();}export const DEFAULT_APP_PROFILE_NAME=a98_0x54e069(0x166);export const DEFAULT_CONFIG_VALUES={'env':a98_0x54e069(0x169),'format':a98_0x54e069(0x15d),'locale':a98_0x54e069(0x165),'riskLevel':a98_0x54e069(0x162)};export const DEFAULT_COMMAND_OUTPUT_FORMAT='compress';
@@ -1 +1 @@
1
- const a99_0x41ed5c=a99_0x54f1;(function(_0xd32e29,_0x101b64){const _0x5b39b3=a99_0x54f1,_0xd48c2a=_0xd32e29();while(!![]){try{const _0x293ab4=parseInt(_0x5b39b3(0x16c))/0x1*(-parseInt(_0x5b39b3(0x174))/0x2)+parseInt(_0x5b39b3(0x16a))/0x3*(parseInt(_0x5b39b3(0x16e))/0x4)+parseInt(_0x5b39b3(0x16b))/0x5*(-parseInt(_0x5b39b3(0x171))/0x6)+-parseInt(_0x5b39b3(0x169))/0x7*(-parseInt(_0x5b39b3(0x167))/0x8)+-parseInt(_0x5b39b3(0x175))/0x9+-parseInt(_0x5b39b3(0x16f))/0xa+parseInt(_0x5b39b3(0x16d))/0xb;if(_0x293ab4===_0x101b64)break;else _0xd48c2a['push'](_0xd48c2a['shift']());}catch(_0x32b056){_0xd48c2a['push'](_0xd48c2a['shift']());}}}(a99_0x23ae,0xb989f));function a99_0x23ae(){const _0x44f1b1=['npmRegistryBaseUrl','9840GrFrEL','cliCdnBaseUrl','7175bsoQxF','3EzlFnc','1056145BdDFGx','417194kdgzQb','15719814BGecwl','757524TlKrfS','7929590xGVzWb','/dist/lovrabet-cli/config/index.json','12dhnyxv','skillSource','npmPackageName','4SYbtqf','624897bIsJQH'];a99_0x23ae=function(){return _0x44f1b1;};return a99_0x23ae();}import{PRODUCT_CONFIG}from'../constant/product.js';export const LOVRABET_NPM_PACKAGE_NAME=PRODUCT_CONFIG[a99_0x41ed5c(0x173)];export const LOVRABET_SKILL_SOURCE=PRODUCT_CONFIG[a99_0x41ed5c(0x172)];export const NPM_REGISTRY_BASE_URL=PRODUCT_CONFIG[a99_0x41ed5c(0x176)];export const LOVRABET_CLI_CDN_BASE_URL=PRODUCT_CONFIG[a99_0x41ed5c(0x168)];function a99_0x54f1(_0x51793b,_0x3694a7){_0x51793b=_0x51793b-0x167;const _0x23ae33=a99_0x23ae();let _0x54f1e6=_0x23ae33[_0x51793b];return _0x54f1e6;}export const LOVRABET_CLI_VERSION_POLICY_URL=LOVRABET_CLI_CDN_BASE_URL+a99_0x41ed5c(0x170);
1
+ const a99_0x54f35a=a99_0x459a;function a99_0x5e50(){const _0x15e0c9=['npmPackageName','1242728Omimez','109974EflZFB','skillSource','7XeqnYA','124832VKDmMq','445dcUIHO','50238uqsSaz','730998bAsmOV','505050igZNbD','8084tteKvJ'];a99_0x5e50=function(){return _0x15e0c9;};return a99_0x5e50();}(function(_0x7a1328,_0x15ec2e){const _0x3ef046=a99_0x459a,_0x286a6d=_0x7a1328();while(!![]){try{const _0x702190=parseInt(_0x3ef046(0x1a8))/0x1+-parseInt(_0x3ef046(0x1a5))/0x2+parseInt(_0x3ef046(0x1aa))/0x3+-parseInt(_0x3ef046(0x1ad))/0x4*(-parseInt(_0x3ef046(0x1a9))/0x5)+parseInt(_0x3ef046(0x1ac))/0x6+-parseInt(_0x3ef046(0x1a7))/0x7*(parseInt(_0x3ef046(0x1a4))/0x8)+-parseInt(_0x3ef046(0x1ab))/0x9;if(_0x702190===_0x15ec2e)break;else _0x286a6d['push'](_0x286a6d['shift']());}catch(_0x1af454){_0x286a6d['push'](_0x286a6d['shift']());}}}(a99_0x5e50,0x1bd98));function a99_0x459a(_0x3017c6,_0x491fa8){_0x3017c6=_0x3017c6-0x1a4;const _0x5e50d9=a99_0x5e50();let _0x459a0b=_0x5e50d9[_0x3017c6];return _0x459a0b;}import{PRODUCT_CONFIG}from'../constant/product.js';export const LOVRABET_NPM_PACKAGE_NAME=PRODUCT_CONFIG[a99_0x54f35a(0x1ae)];export const LOVRABET_SKILL_SOURCE=PRODUCT_CONFIG[a99_0x54f35a(0x1a6)];export const NPM_REGISTRY_BASE_URL=PRODUCT_CONFIG['npmRegistryBaseUrl'];export const LOVRABET_CLI_CDN_BASE_URL=PRODUCT_CONFIG['cliCdnBaseUrl'];export const LOVRABET_CLI_VERSION_POLICY_URL=LOVRABET_CLI_CDN_BASE_URL+'/dist/lovrabet-cli/config/index.json';
@@ -1 +1 @@
1
- const a100_0x47232c=a100_0x533a;(function(_0x579a40,_0x27a3d6){const _0x1186c6=a100_0x533a,_0xce21d5=_0x579a40();while(!![]){try{const _0x47e7a3=parseInt(_0x1186c6(0x9b))/0x1*(parseInt(_0x1186c6(0x93))/0x2)+parseInt(_0x1186c6(0x95))/0x3+parseInt(_0x1186c6(0x8b))/0x4+-parseInt(_0x1186c6(0x99))/0x5+parseInt(_0x1186c6(0x8d))/0x6+parseInt(_0x1186c6(0x8e))/0x7*(parseInt(_0x1186c6(0xa0))/0x8)+-parseInt(_0x1186c6(0x9c))/0x9;if(_0x47e7a3===_0x27a3d6)break;else _0xce21d5['push'](_0xce21d5['shift']());}catch(_0x371723){_0xce21d5['push'](_0xce21d5['shift']());}}}(a100_0x268a,0xecd95));import{CliErrors}from'../errors.js';import{getEnv,isProduction}from'../constant/env.js';function a100_0x268a(){const _0x5151de=['harness','999969HJGJpV','skillDomain','kbServiceDomain','harnessDomain','1491405FCcDNO','Harness\x20is\x20not\x20configured.','1168133cPZWXq','37305126PqOOnK','validation','userDomain','user','1244048QINUsB','kbService','6714216EQAYuY','daily','2204076DvNbtE','84AhHAMw','apiDomain','serviceDomains','production','api','2jMrnzx'];a100_0x268a=function(){return _0x5151de;};return a100_0x268a();}import{OFFICIAL_ROUTING_PROFILES}from'../generated/official-routing.js';import{DEFAULT_LOVRABET_REGION}from'../constant/region.js';let customApiDomain,customUserDomain,customRuntimeDomain,customSkillDomain,customKbServiceDomain,customHarnessDomain,activeRegion=DEFAULT_LOVRABET_REGION;function a100_0x533a(_0x268961,_0x389d54){_0x268961=_0x268961-0x8b;const _0x268aac=a100_0x268a();let _0x533a20=_0x268aac[_0x268961];return _0x533a20;}export function initDomains(_0x5b632f){const _0x48d019=a100_0x533a;customApiDomain=_0x5b632f?.[_0x48d019(0x8f)],customUserDomain=_0x5b632f?.[_0x48d019(0x9e)],customRuntimeDomain=_0x5b632f?.['runtimeDomain'],customSkillDomain=_0x5b632f?.[_0x48d019(0x96)],customKbServiceDomain=_0x5b632f?.[_0x48d019(0x97)],customHarnessDomain=_0x5b632f?.[_0x48d019(0x98)],activeRegion=_0x5b632f?.['region']??DEFAULT_LOVRABET_REGION;}const getActiveRegionDomains=()=>{const _0x45896e=a100_0x533a,_0x2a542f=OFFICIAL_ROUTING_PROFILES[activeRegion][_0x45896e(0x90)];return isProduction(getEnv())?_0x2a542f[_0x45896e(0x91)]:'daily'in _0x2a542f?_0x2a542f[_0x45896e(0x8c)]:_0x2a542f['production'];};export const getUserDomain=()=>customUserDomain||getActiveRegionDomains()[a100_0x47232c(0x9f)];export const getApiDomain=()=>customApiDomain||getActiveRegionDomains()[a100_0x47232c(0x92)];export const getRuntimeDomain=()=>customRuntimeDomain||getActiveRegionDomains()['runtime'];export const getSkillDomain=()=>customSkillDomain||getActiveRegionDomains()['skill'];export const getKbServiceDomain=()=>{const _0x53822e=a100_0x47232c;if(customKbServiceDomain)return customKbServiceDomain;const _0x4dcbc1=getActiveRegionDomains();return _0x53822e(0xa1)in _0x4dcbc1?_0x4dcbc1[_0x53822e(0xa1)]:undefined;};export const getHarnessDomain=()=>{const _0x1ed406=a100_0x47232c;if(customHarnessDomain)return customHarnessDomain;const _0x24aa38=getActiveRegionDomains();return _0x1ed406(0x94)in _0x24aa38?_0x24aa38[_0x1ed406(0x94)]:undefined;};export function requireHarnessDomain(){const _0x199456=a100_0x47232c,_0x526b70=getHarnessDomain();if(!_0x526b70)throw CliErrors[_0x199456(0x9d)](_0x199456(0x9a),'Configure\x20a\x20trusted\x20harnessDomain\x20HTTPS\x20origin\x20in\x20the\x20connection\x20settings.');return _0x526b70;}
1
+ const a100_0x19fc8f=a100_0x32fd;(function(_0x3cfc38,_0x2e58f8){const _0xba829f=a100_0x32fd,_0x214ad1=_0x3cfc38();while(!![]){try{const _0x3e07bd=-parseInt(_0xba829f(0x1d8))/0x1+parseInt(_0xba829f(0x1e7))/0x2+-parseInt(_0xba829f(0x1dc))/0x3+-parseInt(_0xba829f(0x1e9))/0x4+parseInt(_0xba829f(0x1e8))/0x5*(-parseInt(_0xba829f(0x1e2))/0x6)+-parseInt(_0xba829f(0x1df))/0x7+parseInt(_0xba829f(0x1e0))/0x8*(parseInt(_0xba829f(0x1e3))/0x9);if(_0x3e07bd===_0x2e58f8)break;else _0x214ad1['push'](_0x214ad1['shift']());}catch(_0x1270f0){_0x214ad1['push'](_0x214ad1['shift']());}}}(a100_0x4c35,0x356d9));import{CliErrors}from'../errors.js';import{getEnv,isProduction}from'../constant/env.js';import{OFFICIAL_ROUTING_PROFILES}from'../generated/official-routing.js';import{DEFAULT_LOVRABET_REGION}from'../constant/region.js';function a100_0x32fd(_0x3f66ed,_0x4734ef){_0x3f66ed=_0x3f66ed-0x1d4;const _0x4c35e4=a100_0x4c35();let _0x32fde1=_0x4c35e4[_0x3f66ed];return _0x32fde1;}let customApiDomain,customUserDomain,customRuntimeDomain,customSkillDomain,customKbServiceDomain,customHarnessDomain,activeRegion=DEFAULT_LOVRABET_REGION;export function initDomains(_0x3d5039){const _0x3dc794=a100_0x32fd;customApiDomain=_0x3d5039?.[_0x3dc794(0x1d6)],customUserDomain=_0x3d5039?.[_0x3dc794(0x1ea)],customRuntimeDomain=_0x3d5039?.[_0x3dc794(0x1e6)],customSkillDomain=_0x3d5039?.[_0x3dc794(0x1eb)],customKbServiceDomain=_0x3d5039?.[_0x3dc794(0x1db)],customHarnessDomain=_0x3d5039?.[_0x3dc794(0x1e5)],activeRegion=_0x3d5039?.[_0x3dc794(0x1d9)]??DEFAULT_LOVRABET_REGION;}const getActiveRegionDomains=()=>{const _0x19a7ed=a100_0x32fd,_0x4cbd4=OFFICIAL_ROUTING_PROFILES[activeRegion][_0x19a7ed(0x1d5)];return isProduction(getEnv())?_0x4cbd4[_0x19a7ed(0x1de)]:_0x19a7ed(0x1da)in _0x4cbd4?_0x4cbd4[_0x19a7ed(0x1da)]:_0x4cbd4[_0x19a7ed(0x1de)];};export const getUserDomain=()=>customUserDomain||getActiveRegionDomains()[a100_0x19fc8f(0x1e4)];export const getApiDomain=()=>customApiDomain||getActiveRegionDomains()['api'];export const getRuntimeDomain=()=>customRuntimeDomain||getActiveRegionDomains()['runtime'];export const getSkillDomain=()=>customSkillDomain||getActiveRegionDomains()[a100_0x19fc8f(0x1e1)];export const getKbServiceDomain=()=>{const _0xa520b4=a100_0x19fc8f;if(customKbServiceDomain)return customKbServiceDomain;const _0x1e3fcc=getActiveRegionDomains();return _0xa520b4(0x1d4)in _0x1e3fcc?_0x1e3fcc[_0xa520b4(0x1d4)]:undefined;};function a100_0x4c35(){const _0x3f7bda=['219088rbqIZc','region','daily','kbServiceDomain','297294XIRatE','harness','production','1555064rBjQAb','648HQuKfJ','skill','27612xnHAWF','112833JpSQZS','user','harnessDomain','runtimeDomain','510452ZAYwOa','395esFXqF','591944tsiAUj','userDomain','skillDomain','kbService','serviceDomains','apiDomain','validation'];a100_0x4c35=function(){return _0x3f7bda;};return a100_0x4c35();}export const getHarnessDomain=()=>{const _0x1da18c=a100_0x19fc8f;if(customHarnessDomain)return customHarnessDomain;const _0x263342=getActiveRegionDomains();return _0x1da18c(0x1dd)in _0x263342?_0x263342[_0x1da18c(0x1dd)]:undefined;};export function requireHarnessDomain(){const _0x39d6b6=a100_0x19fc8f,_0x4a6186=getHarnessDomain();if(!_0x4a6186)throw CliErrors[_0x39d6b6(0x1d7)]('Harness\x20is\x20not\x20configured.','Configure\x20a\x20trusted\x20harnessDomain\x20HTTPS\x20origin\x20in\x20the\x20connection\x20settings.');return _0x4a6186;}
@@ -1 +1 @@
1
- const a101_0x84bca6=a101_0x3065;(function(_0x360003,_0x20715a){const _0x485270=a101_0x3065,_0x5c14ad=_0x360003();while(!![]){try{const _0x46bc29=parseInt(_0x485270(0x1f3))/0x1+-parseInt(_0x485270(0x1f6))/0x2+parseInt(_0x485270(0x1f0))/0x3*(parseInt(_0x485270(0x1f1))/0x4)+-parseInt(_0x485270(0x1fb))/0x5*(-parseInt(_0x485270(0x1fd))/0x6)+-parseInt(_0x485270(0x1f9))/0x7*(-parseInt(_0x485270(0x1f5))/0x8)+-parseInt(_0x485270(0x1f8))/0x9+parseInt(_0x485270(0x1f2))/0xa;if(_0x46bc29===_0x20715a)break;else _0x5c14ad['push'](_0x5c14ad['shift']());}catch(_0x48b6b4){_0x5c14ad['push'](_0x5c14ad['shift']());}}}(a101_0x1f1f,0x25b4e));import{productEnv}from'../constant/product.js';export const RUNTIME_ENV_VALUES=[a101_0x84bca6(0x1f7),a101_0x84bca6(0x1fc),a101_0x84bca6(0x1fa)];export function normalizeEnv(_0x5b25c7){const _0x70d5c8=a101_0x84bca6;return _0x5b25c7==='online'||_0x5b25c7==='prod'?_0x70d5c8(0x1f7):_0x5b25c7;}function a101_0x3065(_0x3f6a82,_0xa6d221){_0x3f6a82=_0x3f6a82-0x1f0;const _0x1f1f6a=a101_0x1f1f();let _0x306550=_0x1f1f6a[_0x3f6a82];return _0x306550;}export function isProduction(_0x29d34e){const _0x3aaf7a=a101_0x84bca6;return normalizeEnv(_0x29d34e)===_0x3aaf7a(0x1f7);}export function isDaily(_0x37c990){return normalizeEnv(_0x37c990)==='daily';}export function isDev(_0x582953){const _0x106068=a101_0x84bca6,_0x2bb10a=normalizeEnv(_0x582953);return _0x2bb10a==='development'||_0x2bb10a===_0x106068(0x1f4);}let env=normalizeEnv(productEnv('ENV')||a101_0x84bca6(0x1f7));function a101_0x1f1f(){const _0x22f339=['76484Qppxgi','dev','268168ujzZdQ','584908qikwAK','production','1269738fnCDKV','21lWhaGN','daily','146290SrwWAW','development','54Rukspk','1251QrcNGM','820GLXOAq','621280qYdUwW'];a101_0x1f1f=function(){return _0x22f339;};return a101_0x1f1f();}export function getEnv(){return env;}export function initEnv(_0x104a58){env=normalizeEnv(_0x104a58);}
1
+ function a101_0x538f(){const _0x97eeff=['ENV','1041672gHbEbw','1745024IpVFRa','3519789LEThma','production','development','daily','35094bpZoMo','1673704wQzDCZ','11579274vPvROE','58309SINmtc','2GJlwID','online','55BOpMhE'];a101_0x538f=function(){return _0x97eeff;};return a101_0x538f();}const a101_0x2252d4=a101_0x3b4a;(function(_0x37f261,_0x4ba1d0){const _0x5c3fb1=a101_0x3b4a,_0x3604db=_0x37f261();while(!![]){try{const _0x81c664=parseInt(_0x5c3fb1(0xe0))/0x1*(parseInt(_0x5c3fb1(0xd3))/0x2)+parseInt(_0x5c3fb1(0xd7))/0x3+parseInt(_0x5c3fb1(0xd8))/0x4+-parseInt(_0x5c3fb1(0xd5))/0x5*(-parseInt(_0x5c3fb1(0xdd))/0x6)+parseInt(_0x5c3fb1(0xd9))/0x7+parseInt(_0x5c3fb1(0xde))/0x8+-parseInt(_0x5c3fb1(0xdf))/0x9;if(_0x81c664===_0x4ba1d0)break;else _0x3604db['push'](_0x3604db['shift']());}catch(_0x3ef5c2){_0x3604db['push'](_0x3604db['shift']());}}}(a101_0x538f,0x50f3e));import{productEnv}from'../constant/product.js';export const RUNTIME_ENV_VALUES=[a101_0x2252d4(0xda),a101_0x2252d4(0xdb),a101_0x2252d4(0xdc)];export function normalizeEnv(_0x42db13){const _0x14d41c=a101_0x2252d4;return _0x42db13===_0x14d41c(0xd4)||_0x42db13==='prod'?_0x14d41c(0xda):_0x42db13;}export function isProduction(_0x4fbcb7){const _0x52d364=a101_0x2252d4;return normalizeEnv(_0x4fbcb7)===_0x52d364(0xda);}export function isDaily(_0x39d200){const _0x512e09=a101_0x2252d4;return normalizeEnv(_0x39d200)===_0x512e09(0xdc);}export function isDev(_0x596152){const _0x103f51=a101_0x2252d4,_0x4af04c=normalizeEnv(_0x596152);return _0x4af04c===_0x103f51(0xdb)||_0x4af04c==='dev';}let env=normalizeEnv(productEnv(a101_0x2252d4(0xd6))||a101_0x2252d4(0xda));function a101_0x3b4a(_0x333af4,_0x341708){_0x333af4=_0x333af4-0xd3;const _0x538f8c=a101_0x538f();let _0x3b4ac0=_0x538f8c[_0x333af4];return _0x3b4ac0;}export function getEnv(){return env;}export function initEnv(_0x498da6){env=normalizeEnv(_0x498da6);}
@@ -1 +1 @@
1
- function a102_0x1f2b(_0xc6c7b,_0x3c5b7e){_0xc6c7b=_0xc6c7b-0x9c;const _0x4a1784=a102_0x4a17();let _0x1f2be0=_0x4a1784[_0xc6c7b];return _0x1f2be0;}const a102_0x1f4e9f=a102_0x1f2b;(function(_0x5e9247,_0x236088){const _0x322929=a102_0x1f2b,_0x32aed3=_0x5e9247();while(!![]){try{const _0x4b2566=parseInt(_0x322929(0xa3))/0x1*(-parseInt(_0x322929(0x9d))/0x2)+parseInt(_0x322929(0xa2))/0x3+parseInt(_0x322929(0x9f))/0x4+parseInt(_0x322929(0xa4))/0x5+parseInt(_0x322929(0xa8))/0x6*(-parseInt(_0x322929(0xa1))/0x7)+parseInt(_0x322929(0xa7))/0x8*(-parseInt(_0x322929(0xa0))/0x9)+-parseInt(_0x322929(0x9c))/0xa*(-parseInt(_0x322929(0x9e))/0xb);if(_0x4b2566===_0x236088)break;else _0x32aed3['push'](_0x32aed3['shift']());}catch(_0x1c478e){_0x32aed3['push'](_0x32aed3['shift']());}}}(a102_0x4a17,0x2117a));export const OUTPUT_FORMAT_VALUES=['json',a102_0x1f4e9f(0xa5),a102_0x1f4e9f(0xa6)];function a102_0x4a17(){const _0x2ec34e=['385623UjQZDn','56tZhncs','256989NWGnXR','237118GGjdij','68010eXrdpv','pretty','compress','40bShwzv','99852zeioLY','290rmbgBY','2EfTnWQ','163471WkgJHI','759204YOOOMY'];a102_0x4a17=function(){return _0x2ec34e;};return a102_0x4a17();}
1
+ const a102_0xdf718b=a102_0x502b;(function(_0x1416f4,_0x51657f){const _0x2bdba6=a102_0x502b,_0x331733=_0x1416f4();while(!![]){try{const _0x193561=-parseInt(_0x2bdba6(0x1e9))/0x1+parseInt(_0x2bdba6(0x1f2))/0x2+-parseInt(_0x2bdba6(0x1ef))/0x3*(-parseInt(_0x2bdba6(0x1f3))/0x4)+parseInt(_0x2bdba6(0x1eb))/0x5+-parseInt(_0x2bdba6(0x1ec))/0x6+-parseInt(_0x2bdba6(0x1ea))/0x7+parseInt(_0x2bdba6(0x1ed))/0x8*(parseInt(_0x2bdba6(0x1f1))/0x9);if(_0x193561===_0x51657f)break;else _0x331733['push'](_0x331733['shift']());}catch(_0x3d3f8c){_0x331733['push'](_0x331733['shift']());}}}(a102_0x49f1,0xef58a));function a102_0x502b(_0x273894,_0x3e17ee){_0x273894=_0x273894-0x1e8;const _0x49f112=a102_0x49f1();let _0x502b79=_0x49f112[_0x273894];return _0x502b79;}export const OUTPUT_FORMAT_VALUES=[a102_0xdf718b(0x1e8),a102_0xdf718b(0x1ee),a102_0xdf718b(0x1f0)];function a102_0x49f1(){const _0x55885e=['403947haCczO','1619430OqbhDb','4VrArFW','json','1286150oCdByu','1330392LvZZEM','8099900kCfqlc','10099722BbWCqs','48JsybjI','pretty','4322586pVjaez','compress'];a102_0x49f1=function(){return _0x55885e;};return a102_0x49f1();}
@@ -1 +1 @@
1
- const a103_0x4e0c60=a103_0x5005;(function(_0x45b50c,_0x1826f0){const _0x34ddaf=a103_0x5005,_0x583dab=_0x45b50c();while(!![]){try{const _0x1b0cfd=-parseInt(_0x34ddaf(0x143))/0x1*(-parseInt(_0x34ddaf(0x145))/0x2)+parseInt(_0x34ddaf(0x13b))/0x3+-parseInt(_0x34ddaf(0x134))/0x4*(parseInt(_0x34ddaf(0x146))/0x5)+-parseInt(_0x34ddaf(0x14f))/0x6*(parseInt(_0x34ddaf(0x14d))/0x7)+-parseInt(_0x34ddaf(0x149))/0x8*(parseInt(_0x34ddaf(0x13a))/0x9)+parseInt(_0x34ddaf(0x14e))/0xa+parseInt(_0x34ddaf(0x138))/0xb*(parseInt(_0x34ddaf(0x13e))/0xc);if(_0x1b0cfd===_0x1826f0)break;else _0x583dab['push'](_0x583dab['shift']());}catch(_0x215b59){_0x583dab['push'](_0x583dab['shift']());}}}(a103_0x40f1,0xb8903));export const PRODUCT_CONFIG={'cliBinName':a103_0x4e0c60(0x14c),'cliDisplayName':'Lovrabet\x20Runtime\x20CLI','npmPackageName':a103_0x4e0c60(0x142),'skillSource':a103_0x4e0c60(0x13f),'internalSkillSource':a103_0x4e0c60(0x144),'globalSkillName':a103_0x4e0c60(0x14c),'npmRegistryBaseUrl':a103_0x4e0c60(0x147),'cliCdnBaseUrl':a103_0x4e0c60(0x14a),'envPrefix':'LOVRABET','legacyEnvPrefixes':[a103_0x4e0c60(0x13d)],'configFileNames':[a103_0x4e0c60(0x140)],'newConfigFileName':'.lovrabet.json','homeDirName':'.lovrabet','logFileName':a103_0x4e0c60(0x14b),'invokeSource':a103_0x4e0c60(0x13c),'userCenterDisplayName':a103_0x4e0c60(0x139),'skipNpxSkillsEnvSuffix':a103_0x4e0c60(0x141),'accessKeyCreatePath':a103_0x4e0c60(0x136)};function a103_0x5005(_0x21dcfa,_0x27d408){_0x21dcfa=_0x21dcfa-0x134;const _0x40f15e=a103_0x40f1();let _0x50054e=_0x40f15e[_0x21dcfa];return _0x50054e;}export function productEnvName(_0x3df344){const _0x724418=a103_0x4e0c60;return PRODUCT_CONFIG[_0x724418(0x135)]+'_'+_0x3df344;}function a103_0x40f1(){const _0x1ba77c=['RABETBASE','12gzleeE','lovrabet/lovrabet-cli','.lovrabet.json','SKIP_NPX_SKILLS','@lovrabet/lovrabet-cli','92WTkOxf','git@codeup.aliyun.com:yuntoo/open/lovrabet-runtime-cli.git','17590JUyHfJ','316570pzcjok','https://registry.npmjs.org','map','8BlLieS','https://g.lovrabet.com','.lovrabet-runtime.log','lovrabet','56Dnxbvd','1449170PNJDCJ','1106688nyKMyp','4cbYEiN','envPrefix','/user/ak','legacyEnvPrefixes','26557828DZNwkh','Lovrabet\x20User\x20Center','9908226tkySKV','82134lTzNib','cli:lovrabet-runtime'];a103_0x40f1=function(){return _0x1ba77c;};return a103_0x40f1();}export function productEnvNames(_0x1190e2){const _0x3d0fa6=a103_0x4e0c60;return[productEnvName(_0x1190e2),...PRODUCT_CONFIG[_0x3d0fa6(0x137)][_0x3d0fa6(0x148)](_0x4b16f8=>_0x4b16f8+'_'+_0x1190e2)];}export function productEnv(_0x14f0e0){for(const _0x33e9c7 of productEnvNames(_0x14f0e0)){const _0x43ff48=process.env[_0x33e9c7];if(_0x43ff48!==undefined)return _0x43ff48;}return undefined;}
1
+ const a103_0x1e0820=a103_0xf470;(function(_0x4dbbcd,_0x240d14){const _0x2590f2=a103_0xf470,_0x5e2428=_0x4dbbcd();while(!![]){try{const _0x163490=-parseInt(_0x2590f2(0xff))/0x1+parseInt(_0x2590f2(0xfb))/0x2*(parseInt(_0x2590f2(0xf9))/0x3)+parseInt(_0x2590f2(0x104))/0x4*(-parseInt(_0x2590f2(0x106))/0x5)+parseInt(_0x2590f2(0xf7))/0x6+parseInt(_0x2590f2(0xfe))/0x7*(-parseInt(_0x2590f2(0x102))/0x8)+parseInt(_0x2590f2(0xfc))/0x9*(-parseInt(_0x2590f2(0x105))/0xa)+parseInt(_0x2590f2(0x10c))/0xb*(parseInt(_0x2590f2(0xfa))/0xc);if(_0x163490===_0x240d14)break;else _0x5e2428['push'](_0x5e2428['shift']());}catch(_0x3ec29d){_0x5e2428['push'](_0x5e2428['shift']());}}}(a103_0x11ad,0x78d2e));export const PRODUCT_CONFIG={'cliBinName':a103_0x1e0820(0x109),'cliDisplayName':'Lovrabet\x20Runtime\x20CLI','npmPackageName':a103_0x1e0820(0x10a),'skillSource':'lovrabet/lovrabet-cli','internalSkillSource':a103_0x1e0820(0x10d),'globalSkillName':a103_0x1e0820(0x109),'npmRegistryBaseUrl':'https://registry.npmjs.org','cliCdnBaseUrl':a103_0x1e0820(0x10b),'envPrefix':a103_0x1e0820(0xf5),'legacyEnvPrefixes':[a103_0x1e0820(0x107)],'configFileNames':[a103_0x1e0820(0x100)],'newConfigFileName':a103_0x1e0820(0x100),'homeDirName':'.lovrabet','logFileName':'.lovrabet-runtime.log','invokeSource':a103_0x1e0820(0xfd),'userCenterDisplayName':a103_0x1e0820(0x108),'skipNpxSkillsEnvSuffix':'SKIP_NPX_SKILLS','accessKeyCreatePath':a103_0x1e0820(0xf6)};function a103_0x11ad(){const _0x2b291c=['4211260fiIXlp','RABETBASE','Lovrabet\x20User\x20Center','lovrabet','@lovrabet/lovrabet-cli','https://g.lovrabet.com','26323rsGroj','git@codeup.aliyun.com:yuntoo/open/lovrabet-runtime-cli.git','LOVRABET','/user/ak','1589844SWbjAd','legacyEnvPrefixes','25494MRIbGy','11952RcOZjy','46ElXaOj','9DvSgJe','cli:lovrabet-runtime','7jcmaPj','396900ocMrqU','.lovrabet.json','envPrefix','5520232wWUtYF','map','4fUTFJy','4197810rTqYPu'];a103_0x11ad=function(){return _0x2b291c;};return a103_0x11ad();}export function productEnvName(_0xf34510){const _0x1cc2de=a103_0x1e0820;return PRODUCT_CONFIG[_0x1cc2de(0x101)]+'_'+_0xf34510;}export function productEnvNames(_0x21a7a5){const _0x35a98a=a103_0x1e0820;return[productEnvName(_0x21a7a5),...PRODUCT_CONFIG[_0x35a98a(0xf8)][_0x35a98a(0x103)](_0x11b656=>_0x11b656+'_'+_0x21a7a5)];}function a103_0xf470(_0x49448c,_0xc8624d){_0x49448c=_0x49448c-0xf5;const _0x11ad3c=a103_0x11ad();let _0xf470c4=_0x11ad3c[_0x49448c];return _0xf470c4;}export function productEnv(_0x5bba01){for(const _0x359c55 of productEnvNames(_0x5bba01)){const _0x47ee05=process.env[_0x359c55];if(_0x47ee05!==undefined)return _0x47ee05;}return undefined;}
@@ -1 +1 @@
1
- (function(_0xf84b45,_0x514617){const _0x937769=a104_0xcb16,_0x46056f=_0xf84b45();while(!![]){try{const _0x191d8b=parseInt(_0x937769(0x15b))/0x1+-parseInt(_0x937769(0x15c))/0x2*(parseInt(_0x937769(0x15f))/0x3)+-parseInt(_0x937769(0x166))/0x4+parseInt(_0x937769(0x15e))/0x5*(-parseInt(_0x937769(0x158))/0x6)+parseInt(_0x937769(0x16a))/0x7*(-parseInt(_0x937769(0x15d))/0x8)+-parseInt(_0x937769(0x162))/0x9*(parseInt(_0x937769(0x165))/0xa)+parseInt(_0x937769(0x168))/0xb;if(_0x191d8b===_0x514617)break;else _0x46056f['push'](_0x46056f['shift']());}catch(_0x28d00f){_0x46056f['push'](_0x46056f['shift']());}}}(a104_0x1998,0x4470a));import{DEFAULT_REGION,ENABLED_REGION_VALUES,REGION_ALIASES,REGION_VALUES}from'../generated/official-routing.js';import{CliErrors}from'../errors.js';function a104_0xcb16(_0x481d35,_0x361651){_0x481d35=_0x481d35-0x158;const _0x199835=a104_0x1998();let _0xcb16b5=_0x199835[_0x481d35];return _0xcb16b5;}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(_0x4b1b7e){const _0x5d4890=a104_0xcb16;return typeof _0x4b1b7e===_0x5d4890(0x159)&&LOVRABET_REGION_VALUES[_0x5d4890(0x169)](_0x4b1b7e);}function a104_0x1998(){const _0x5908aa=['192544vLSqYd','\x22\x20is\x20not\x20currently\x20available.','14953708MhvqqZ','includes','1064672zgZQuH','667686GWXTOU','string','join','296917lqTUOT','2kdwFtk','24QMCJoo','15DhaJEk','1284693zKLCZD','Region\x20\x22','Available\x20regions:\x20','9thZJBL','Run\x20`lovrabet\x20config\x20init`\x20to\x20restore\x20the\x20global\x20country/region\x20configuration.','validation','1095170JIrgMZ'];a104_0x1998=function(){return _0x5908aa;};return a104_0x1998();}export function isEnabledLovrabetRegion(_0x4bba24){const _0x100861=a104_0xcb16;return typeof _0x4bba24===_0x100861(0x159)&&ENABLED_LOVRABET_REGION_VALUES[_0x100861(0x169)](_0x4bba24);}export function normalizeLovrabetRegion(_0x26a658){const _0xb45ebb=a104_0xcb16;if(_0x26a658===undefined||_0x26a658===null||_0x26a658==='')return DEFAULT_LOVRABET_REGION;if(typeof _0x26a658!==_0xb45ebb(0x159))throw CliErrors[_0xb45ebb(0x164)]('Invalid\x20region\x20value:\x20expected\x20a\x20string,\x20received\x20'+typeof _0x26a658+'.',_0xb45ebb(0x163));const _0x3fbf60=REGION_ALIASES[_0x26a658]??_0x26a658;if(isEnabledLovrabetRegion(_0x3fbf60))return _0x3fbf60;throw CliErrors[_0xb45ebb(0x164)](_0xb45ebb(0x160)+_0x26a658+_0xb45ebb(0x167),_0xb45ebb(0x161)+ENABLED_LOVRABET_REGION_VALUES[_0xb45ebb(0x15a)](',\x20')+'.\x20Run\x20`lovrabet\x20config\x20init`\x20to\x20repair\x20the\x20global\x20configuration.');}
1
+ function a104_0x34cf(){const _0x3132b9=['Available\x20regions:\x20','386007Tdmenq','2939986ripKRP','3838464QQyEiR','Run\x20`lovrabet\x20config\x20init`\x20to\x20restore\x20the\x20global\x20country/region\x20configuration.','\x22\x20is\x20not\x20currently\x20available.','Invalid\x20region\x20value:\x20expected\x20a\x20string,\x20received\x20','.\x20Run\x20`lovrabet\x20config\x20init`\x20to\x20repair\x20the\x20global\x20configuration.','41843813MohUdb','Region\x20\x22','1117505WFisMQ','join','4mBeTPv','10wXxbjz','381PsBwYy','string','includes','11309850objCLT','validation','24qxVKoJ','1644uWMFhD'];a104_0x34cf=function(){return _0x3132b9;};return a104_0x34cf();}(function(_0xac10e6,_0x490e21){const _0x5a7fc3=a104_0x2a07,_0x2212e8=_0xac10e6();while(!![]){try{const _0x546f02=parseInt(_0x5a7fc3(0x17a))/0x1+parseInt(_0x5a7fc3(0x178))/0x2*(-parseInt(_0x5a7fc3(0x172))/0x3)+parseInt(_0x5a7fc3(0x170))/0x4*(-parseInt(_0x5a7fc3(0x16e))/0x5)+-parseInt(_0x5a7fc3(0x17c))/0x6+parseInt(_0x5a7fc3(0x17b))/0x7*(-parseInt(_0x5a7fc3(0x177))/0x8)+-parseInt(_0x5a7fc3(0x175))/0x9*(parseInt(_0x5a7fc3(0x171))/0xa)+parseInt(_0x5a7fc3(0x16c))/0xb;if(_0x546f02===_0x490e21)break;else _0x2212e8['push'](_0x2212e8['shift']());}catch(_0x15fff5){_0x2212e8['push'](_0x2212e8['shift']());}}}(a104_0x34cf,0xac4ab));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(_0x202314){const _0x3cc0b1=a104_0x2a07;return typeof _0x202314===_0x3cc0b1(0x173)&&LOVRABET_REGION_VALUES[_0x3cc0b1(0x174)](_0x202314);}export function isEnabledLovrabetRegion(_0x27bb3e){const _0x55f508=a104_0x2a07;return typeof _0x27bb3e===_0x55f508(0x173)&&ENABLED_LOVRABET_REGION_VALUES['includes'](_0x27bb3e);}function a104_0x2a07(_0x5dae05,_0xc0504b){_0x5dae05=_0x5dae05-0x16c;const _0x34cf4a=a104_0x34cf();let _0x2a078a=_0x34cf4a[_0x5dae05];return _0x2a078a;}export function normalizeLovrabetRegion(_0x933111){const _0x4e700e=a104_0x2a07;if(_0x933111===undefined||_0x933111===null||_0x933111==='')return DEFAULT_LOVRABET_REGION;if(typeof _0x933111!==_0x4e700e(0x173))throw CliErrors['validation'](_0x4e700e(0x17f)+typeof _0x933111+'.',_0x4e700e(0x17d));const _0x13ffc5=REGION_ALIASES[_0x933111]??_0x933111;if(isEnabledLovrabetRegion(_0x13ffc5))return _0x13ffc5;throw CliErrors[_0x4e700e(0x176)](_0x4e700e(0x16d)+_0x933111+_0x4e700e(0x17e),_0x4e700e(0x179)+ENABLED_LOVRABET_REGION_VALUES[_0x4e700e(0x16f)](',\x20')+_0x4e700e(0x180));}
@@ -1 +1 @@
1
- function a105_0x4c3f(){const _0x4c802f=['12BtDdSe','2582482TxLlUp','read','279585IzRqHI','1110615VtTcMT','39874vqtSUs','506730kVEHlB','102ypdCJQ','5301YdHpGJ','22jdXqHv','5176VHXWiQ','204XHhTgG','4YedXRI','28938fOWvdx'];a105_0x4c3f=function(){return _0x4c802f;};return a105_0x4c3f();}const a105_0x61426=a105_0x3a6f;function a105_0x3a6f(_0xbbd9a0,_0xeb9fd4){_0xbbd9a0=_0xbbd9a0-0x1d6;const _0x4c3f81=a105_0x4c3f();let _0x3a6f72=_0x4c3f81[_0xbbd9a0];return _0x3a6f72;}(function(_0x43ce12,_0xdd315c){const _0x35b788=a105_0x3a6f,_0x1f698d=_0x43ce12();while(!![]){try{const _0x59fe49=-parseInt(_0x35b788(0x1da))/0x1+-parseInt(_0x35b788(0x1dc))/0x2*(-parseInt(_0x35b788(0x1de))/0x3)+parseInt(_0x35b788(0x1e3))/0x4*(-parseInt(_0x35b788(0x1db))/0x5)+-parseInt(_0x35b788(0x1d7))/0x6*(-parseInt(_0x35b788(0x1d8))/0x7)+parseInt(_0x35b788(0x1e1))/0x8*(-parseInt(_0x35b788(0x1df))/0x9)+-parseInt(_0x35b788(0x1dd))/0xa*(parseInt(_0x35b788(0x1e0))/0xb)+-parseInt(_0x35b788(0x1e2))/0xc*(parseInt(_0x35b788(0x1d6))/0xd);if(_0x59fe49===_0xdd315c)break;else _0x1f698d['push'](_0x1f698d['shift']());}catch(_0x544fb2){_0x1f698d['push'](_0x1f698d['shift']());}}}(a105_0x4c3f,0x60203));export const RISK_LEVEL_VALUES=[a105_0x61426(0x1d9),'write','high-risk-write'];
1
+ (function(_0x4a2899,_0x4b3f9c){const _0x274a63=a105_0x5cd6,_0x4dfca4=_0x4a2899();while(!![]){try{const _0x197545=-parseInt(_0x274a63(0xab))/0x1+-parseInt(_0x274a63(0xac))/0x2+-parseInt(_0x274a63(0xb1))/0x3+parseInt(_0x274a63(0xb0))/0x4*(parseInt(_0x274a63(0xa9))/0x5)+parseInt(_0x274a63(0xaf))/0x6+parseInt(_0x274a63(0xaa))/0x7+-parseInt(_0x274a63(0xad))/0x8*(parseInt(_0x274a63(0xae))/0x9);if(_0x197545===_0x4b3f9c)break;else _0x4dfca4['push'](_0x4dfca4['shift']());}catch(_0xfd6354){_0x4dfca4['push'](_0x4dfca4['shift']());}}}(a105_0x60a0,0x2f999));function a105_0x5cd6(_0x17a4a7,_0x444b7f){_0x17a4a7=_0x17a4a7-0xa9;const _0x60a0af=a105_0x60a0();let _0x5cd657=_0x60a0af[_0x17a4a7];return _0x5cd657;}function a105_0x60a0(){const _0x3f3edf=['741181heXlBd','11127FAjwYO','431884koyfGR','1152488htZDuu','9MHktnB','1009074OFDVUS','52vdyxwK','155010YPYpBO','132195WWyJeC'];a105_0x60a0=function(){return _0x3f3edf;};return a105_0x60a0();}export const RISK_LEVEL_VALUES=['read','write','high-risk-write'];
@@ -1 +1 @@
1
- (function(_0x463871,_0x1e1a1a){const _0x4a4586=a106_0x1936,_0x46c41b=_0x463871();while(!![]){try{const _0x2a28c7=-parseInt(_0x4a4586(0x80))/0x1+-parseInt(_0x4a4586(0x85))/0x2*(parseInt(_0x4a4586(0x83))/0x3)+-parseInt(_0x4a4586(0x87))/0x4*(-parseInt(_0x4a4586(0x86))/0x5)+parseInt(_0x4a4586(0x7e))/0x6+parseInt(_0x4a4586(0x8a))/0x7+parseInt(_0x4a4586(0x89))/0x8+-parseInt(_0x4a4586(0x84))/0x9*(parseInt(_0x4a4586(0x8b))/0xa);if(_0x2a28c7===_0x1e1a1a)break;else _0x46c41b['push'](_0x46c41b['shift']());}catch(_0x19e9e1){_0x46c41b['push'](_0x46c41b['shift']());}}}(a106_0x4359,0x57156));import{PRODUCT_CONFIG}from'../constant/product.js';import{OFFICIAL_ROUTING_PROFILES}from'../generated/official-routing.js';function a106_0x4359(){const _0x4af293=['52ZpJVoc','263020oozsap','12aPYZmq','serviceDomains','3921768xCdPbv','2961196giYokN','39390NCHJKb','3174396OgeStT','user','106336BfOUXv','accessKeyCreatePath','production','68937lWwKYn','1233EQoSDo'];a106_0x4359=function(){return _0x4af293;};return a106_0x4359();}import{DEFAULT_LOVRABET_REGION}from'../constant/region.js';export function getUserAccessKeyCreateUrl(_0x714bee=DEFAULT_LOVRABET_REGION){const _0xf2f8=a106_0x1936,_0x2cabbe=OFFICIAL_ROUTING_PROFILES[_0x714bee][_0xf2f8(0x88)][_0xf2f8(0x82)][_0xf2f8(0x7f)];return''+_0x2cabbe+PRODUCT_CONFIG[_0xf2f8(0x81)];}function a106_0x1936(_0xb71d3c,_0x2f3be3){_0xb71d3c=_0xb71d3c-0x7e;const _0x43592a=a106_0x4359();let _0x1936ae=_0x43592a[_0xb71d3c];return _0x1936ae;}export const USER_ACCESS_KEY_CREATE_URL=getUserAccessKeyCreateUrl();
1
+ (function(_0x14a463,_0x487fd8){const _0x237d3b=a106_0x5360,_0x2dfebe=_0x14a463();while(!![]){try{const _0x36643e=-parseInt(_0x237d3b(0x168))/0x1+parseInt(_0x237d3b(0x165))/0x2*(parseInt(_0x237d3b(0x166))/0x3)+parseInt(_0x237d3b(0x160))/0x4+-parseInt(_0x237d3b(0x162))/0x5+-parseInt(_0x237d3b(0x16a))/0x6+-parseInt(_0x237d3b(0x163))/0x7+-parseInt(_0x237d3b(0x167))/0x8*(-parseInt(_0x237d3b(0x169))/0x9);if(_0x36643e===_0x487fd8)break;else _0x2dfebe['push'](_0x2dfebe['shift']());}catch(_0xf90ef9){_0x2dfebe['push'](_0x2dfebe['shift']());}}}(a106_0x277a,0xcc564));function a106_0x5360(_0x3a1242,_0x12b45c){_0x3a1242=_0x3a1242-0x15e;const _0x277a25=a106_0x277a();let _0x536013=_0x277a25[_0x3a1242];return _0x536013;}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(_0x481cb9=DEFAULT_LOVRABET_REGION){const _0x9ae270=a106_0x5360,_0x5b7e99=OFFICIAL_ROUTING_PROFILES[_0x481cb9][_0x9ae270(0x15e)][_0x9ae270(0x164)][_0x9ae270(0x15f)];return''+_0x5b7e99+PRODUCT_CONFIG[_0x9ae270(0x161)];}export const USER_ACCESS_KEY_CREATE_URL=getUserAccessKeyCreateUrl();function a106_0x277a(){const _0xa26416=['10836651RGvlHu','production','12oHjhYd','250053XYJnkD','346312eTGWEN','1511578erRywA','981FWRsdm','7905870UBkLqo','serviceDomains','user','4460604cmHGQN','accessKeyCreatePath','5597390xxwjVm'];a106_0x277a=function(){return _0xa26416;};return a106_0x277a();}
package/lib/context.js CHANGED
@@ -1 +1 @@
1
- const a107_0x5e3852=a107_0x1bc2;(function(_0x1427aa,_0x746b3f){const _0x18a2a2=a107_0x1bc2,_0x40e133=_0x1427aa();while(!![]){try{const _0x19b06b=-parseInt(_0x18a2a2(0xad))/0x1+parseInt(_0x18a2a2(0xb2))/0x2*(-parseInt(_0x18a2a2(0x8b))/0x3)+-parseInt(_0x18a2a2(0xae))/0x4*(-parseInt(_0x18a2a2(0x7c))/0x5)+-parseInt(_0x18a2a2(0x75))/0x6+parseInt(_0x18a2a2(0x88))/0x7+parseInt(_0x18a2a2(0x80))/0x8*(parseInt(_0x18a2a2(0xbb))/0x9)+parseInt(_0x18a2a2(0x96))/0xa;if(_0x19b06b===_0x746b3f)break;else _0x40e133['push'](_0x40e133['shift']());}catch(_0x523631){_0x40e133['push'](_0x40e133['shift']());}}}(a107_0x37f2,0x7e80a));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';function a107_0x37f2(){const _0x36558d=['pageSize','stdin','string','setRawCommand','production','10772090quqJTn','write','inherit','APPCODE','setRawMode','daily','setLogPath','utf8','global','kbServiceDomain','values','agentDomain','missing','projectConfig','object','app','top-level','locale','isRaw','empty','raw','argv','EPERM','915825IWfMci','28WQyWAk','message','appcode','configFileNames','323462Ksbhes','PAGE_SIZE','routing','true','harnessDomain','parse','format','online','ACCESS_KEY','1017KCItdG','nonInteractive','EXDEV','appCode','platformDomain','globalConfig','development','cache','explicit','read','slice','isTTY','defaultApp','trim','skillDomain','apiDomain','env','userDomain','5695146iQAnWO','code','skillHubDomain','cwd','region','join','APP','570835OlXaPf','project','./constant/domain.js','EACCES','9656xeDMTK','runtimeDomain','global\x20config','stdout','VERBOSE','authRequired','stringify','apps','3724924qOOTvy','accessKey','local-alias','3aHZGBM','nativeToolAvailable','high-risk-write','project\x20config','riskLevel','newConfigFileName'];a107_0x37f2=function(){return _0x36558d;};return a107_0x37f2();}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{normalizeDomainOrigin,resolveEnterpriseRoutingConfig}from'./config/domain-config.js';export{AUTH_MODE,isAuthMode}from'./constant/auth-mode.js';const CONFIG_NAMES=PRODUCT_CONFIG[a107_0x5e3852(0xb1)];export const NEW_CONFIG_NAME=PRODUCT_CONFIG[a107_0x5e3852(0x90)];function resolveConfigPath(_0x32ff46){for(const _0x38cb2d of CONFIG_NAMES){const _0x57145b=resolve(_0x32ff46,_0x38cb2d);if(existsSync(_0x57145b))return _0x57145b;}return undefined;}export function resolveWriteConfigPath(_0x175b70){const _0x5063e4=a107_0x5e3852,_0x20ba52=_0x175b70==='project'?process[_0x5063e4(0x78)]():homedir(),_0xb4e1e4=resolveConfigPath(_0x20ba52);return _0xb4e1e4??resolve(_0x20ba52,NEW_CONFIG_NAME);}export function readConfigFile(_0x38f4fe){const _0x2d7ed7=a107_0x5e3852;try{if(existsSync(_0x38f4fe)){const _0x1a435c=readFileSync(_0x38f4fe,{'encoding':_0x2d7ed7(0x9d)});if(_0x1a435c){const _0x1718e5=JSON[_0x2d7ed7(0xb7)](_0x1a435c);return migrateOnlineEnv(_0x38f4fe,_0x1718e5),_0x1718e5;}}}catch{}return{};}function migrateOnlineEnv(_0x11898a,_0x5c6638){const _0x4adbd0=a107_0x5e3852;let _0x446810=![];_0x5c6638['env']===_0x4adbd0(0xb9)&&(_0x5c6638['env']=_0x4adbd0(0x95),_0x446810=!![]);if(_0x5c6638[_0x4adbd0(0x87)]&&typeof _0x5c6638[_0x4adbd0(0x87)]===_0x4adbd0(0xa4))for(const _0x4c2ae6 of Object[_0x4adbd0(0xa0)](_0x5c6638[_0x4adbd0(0x87)])){_0x4c2ae6&&_0x4c2ae6[_0x4adbd0(0x73)]==='online'&&(_0x4c2ae6['env']='production',_0x446810=!![]);}if(_0x446810)try{writeConfigFile(_0x11898a,_0x5c6638);}catch{}}export function writeConfigFile(_0x125562,_0x43a284){const _0x1821bf=a107_0x5e3852,_0x355aeb=dirname(_0x125562);!existsSync(_0x355aeb)&&mkdirSync(_0x355aeb,{'recursive':!![]});const _0x101dbc=_0x125562+'.tmp';try{writeFileSync(_0x101dbc,JSON[_0x1821bf(0x86)](_0x43a284,null,0x2)+'\x0a',{'encoding':_0x1821bf(0x9d),'mode':0x180});try{renameSync(_0x101dbc,_0x125562);}catch(_0x4cb6a9){if(_0x4cb6a9[_0x1821bf(0x76)]===_0x1821bf(0xac)||_0x4cb6a9['code']===_0x1821bf(0xbd)||_0x4cb6a9[_0x1821bf(0x76)]===_0x1821bf(0x7f)){writeFileSync(_0x125562,JSON[_0x1821bf(0x86)](_0x43a284,null,0x2)+'\x0a',{'encoding':_0x1821bf(0x9d)});try{unlinkSync(_0x101dbc);}catch{}}else throw _0x4cb6a9;}}catch(_0x1773c4){try{unlinkSync(_0x101dbc);}catch{}throw _0x1773c4;}}export function isNonInteractiveMode(_0x2d3778){const _0x29d9b1=a107_0x5e3852;return!!(_0x2d3778[_0x29d9b1(0xbc)]||_0x2d3778['ci']||productEnvNames('CI')['some'](_0x3ee10f=>process.env[_0x3ee10f]===_0x29d9b1(0xb5))||process.env.CI===_0x29d9b1(0xb5)||!process[_0x29d9b1(0x83)][_0x29d9b1(0xc6)]||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x9e5a9f=a107_0x5e3852;if(!process[_0x9e5a9f(0x92)][_0x9e5a9f(0xc6)])return![];try{const _0x162e35=process[_0x9e5a9f(0x92)][_0x9e5a9f(0xa8)];return process['stdin'][_0x9e5a9f(0x9a)](!![]),process[_0x9e5a9f(0x92)]['setRawMode'](_0x162e35??![]),!![];}catch{return![];}}export async function createContext(_0x491461){const _0x3dd713=a107_0x5e3852,_0x27c975=buildConfigFromFlags(_0x491461);await initGlobalEnvironment(_0x27c975);const {getUserDomain:_0x24b476,getApiDomain:_0x5ce411}=await import(_0x3dd713(0x7e)),_0x33b2b3={'apiDomain':_0x5ce411(),'userDomain':_0x24b476()},_0x69be7b=await buildAuth(_0x27c975);logger[_0x3dd713(0x9c)](process[_0x3dd713(0x78)]());const _0x5da480=(CLI_BIN_NAME+'\x20'+redactCommandArgv(process[_0x3dd713(0xab)][_0x3dd713(0xc5)](0x2))[_0x3dd713(0x7a)]('\x20'))[_0x3dd713(0x70)]();logger[_0x3dd713(0x94)](_0x5da480);const _0x2e9ccb=isNonInteractiveMode(_0x491461);return{'config':_0x27c975,'auth':_0x69be7b,'logger':logger,'env':_0x33b2b3,'nonInteractive':_0x2e9ccb};}export function buildConfigFromFlags(_0x10f4ae){return buildConfig(loadRawConfigLayers(),_0x10f4ae);}export function getLocalAppAliases(_0x2f7c7a){const _0x579d2d=a107_0x5e3852;return _0x2f7c7a['apps']&&typeof _0x2f7c7a[_0x579d2d(0x87)]===_0x579d2d(0xa4)?_0x2f7c7a[_0x579d2d(0x87)]:{};}export function resolveLocalAppAliasCode(_0x1464c7,_0x4ee18c){const _0x2cea8b=a107_0x5e3852;if(!_0x4ee18c)return undefined;const _0x294b66=getLocalAppAliases(_0x1464c7)[_0x4ee18c],_0x2c8302=_0x294b66?.[_0x2cea8b(0xb0)];return typeof _0x2c8302==='string'&&_0x2c8302[_0x2cea8b(0x70)]()?_0x2c8302[_0x2cea8b(0x70)]():undefined;}export function readAppCodeFromConfig(){const _0x3dbcbb=a107_0x5e3852;return buildConfigFromFlags({})[_0x3dbcbb(0xbe)];}export function readScopedConfig(_0x146593){const _0x36d51c=a107_0x5e3852,_0x505618=_0x146593[_0x36d51c(0x9e)]?_0x36d51c(0x9e):_0x36d51c(0x7d);return readConfigFile(resolveWriteConfigPath(_0x505618));}export function writeScopedConfig(_0x2bed68,_0xace569){const _0x593673=a107_0x5e3852,_0x252abc=_0xace569[_0x593673(0x9e)]?_0x593673(0x9e):_0x593673(0x7d);writeConfigFile(resolveWriteConfigPath(_0x252abc),_0x2bed68);}export async function initGlobalEnvironment(_0x11dfb9){const _0x16526e=a107_0x5e3852,{initEnv:_0x54347d}=await import('./constant/env.js');_0x54347d(_0x11dfb9[_0x16526e(0x73)]);const {initDomains:_0x4dfda1}=await import(_0x16526e(0x7e)),_0xb2a94e=resolveEnterpriseRoutingConfig(_0x11dfb9['raw'][_0x16526e(0xb4)]);_0x4dfda1({'apiDomain':_0xb2a94e?_0xb2a94e['apiDomain']:_0x11dfb9[_0x16526e(0xaa)][_0x16526e(0x72)]||_0x11dfb9[_0x16526e(0xaa)]['host']||undefined,'userDomain':_0xb2a94e?_0xb2a94e[_0x16526e(0x74)]:_0x11dfb9['raw']['userDomain']||undefined,'runtimeDomain':_0xb2a94e?_0xb2a94e[_0x16526e(0x81)]:_0x11dfb9[_0x16526e(0xaa)]['runtimeDomain']||undefined,'skillDomain':_0xb2a94e?_0xb2a94e[_0x16526e(0x71)]:_0x11dfb9[_0x16526e(0xaa)][_0x16526e(0x71)]||_0x11dfb9[_0x16526e(0xaa)][_0x16526e(0x77)]||_0x11dfb9['raw'][_0x16526e(0xa1)]||_0x11dfb9[_0x16526e(0xaa)][_0x16526e(0xbf)]||undefined,'kbServiceDomain':_0xb2a94e?_0xb2a94e[_0x16526e(0x9f)]:typeof _0x11dfb9[_0x16526e(0xaa)][_0x16526e(0x9f)]===_0x16526e(0x93)&&_0x11dfb9['raw'][_0x16526e(0x9f)]['trim']()?_0x11dfb9[_0x16526e(0xaa)][_0x16526e(0x9f)]:undefined,'harnessDomain':_0xb2a94e?_0xb2a94e[_0x16526e(0xb6)]:_0x11dfb9[_0x16526e(0xaa)][_0x16526e(0xb6)]===undefined?undefined:normalizeDomainOrigin(_0x16526e(0xb6),_0x11dfb9[_0x16526e(0xaa)][_0x16526e(0xb6)]),'region':normalizeLovrabetRegion(_0x11dfb9['raw'][_0x16526e(0x79)])});}export function getProjectConfigPath(){const _0x3118cc=a107_0x5e3852;return resolveConfigPath(process[_0x3118cc(0x78)]());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}function a107_0x1bc2(_0x267430,_0x24ec71){_0x267430=_0x267430-0x70;const _0x37f296=a107_0x37f2();let _0x1bc2c2=_0x37f296[_0x267430];return _0x1bc2c2;}export function inspectCliConfigJsonFile(_0x96c440){const _0x29174e=a107_0x5e3852;if(!existsSync(_0x96c440))return{'status':_0x29174e(0xa2)};try{const _0x4dfaf9=readFileSync(_0x96c440,{'encoding':'utf8'});if(!_0x4dfaf9?.[_0x29174e(0x70)]())return{'status':_0x29174e(0xa9)};const _0x13623f=JSON[_0x29174e(0xb7)](_0x4dfaf9);return{'status':'ok','data':_0x13623f};}catch(_0x4cc20e){return{'status':'error','message':_0x4cc20e instanceof Error?_0x4cc20e[_0x29174e(0xaf)]:String(_0x4cc20e)};}}export function loadRawConfigLayers(_0x6ad925){const _0x4cb58c=a107_0x5e3852;let _0x2c016d={},_0x921f5a={},_0x365d04,_0x51a147;try{_0x365d04=resolveConfigPath(homedir());if(_0x365d04){const _0x994bf3=readFileSync(_0x365d04,{'encoding':_0x4cb58c(0x9d)});if(_0x994bf3)_0x2c016d=JSON[_0x4cb58c(0xb7)](_0x994bf3);}}catch{}try{const _0x5846da=_0x6ad925||process[_0x4cb58c(0x78)]();_0x51a147=resolveConfigPath(_0x5846da);if(_0x51a147){const _0x92ff4c=readFileSync(_0x51a147,{'encoding':_0x4cb58c(0x9d)});if(_0x92ff4c)_0x921f5a=JSON[_0x4cb58c(0xb7)](_0x92ff4c);}}catch{}return{'globalPath':_0x365d04,'projectPath':_0x51a147,'globalConfig':_0x2c016d,'projectConfig':_0x921f5a};}function mergeRawConfigLayers(_0x38282f){const _0x5c71e8=a107_0x5e3852,{globalConfig:_0x124ffb,projectConfig:_0x4ca86d}=_0x38282f,_0x263771={..._0x124ffb,..._0x4ca86d};delete _0x263771[_0x5c71e8(0x98)];if(_0x5c71e8(0xc7)in _0x4ca86d)_0x263771[_0x5c71e8(0xc7)]=_0x4ca86d[_0x5c71e8(0xc7)];else _0x124ffb[_0x5c71e8(0xc7)]&&(_0x263771[_0x5c71e8(0xc7)]=_0x124ffb[_0x5c71e8(0xc7)]);return _0x263771;}export function isInProject(){return!!getProjectConfigPath();}export function readRawConfig(_0x1bdd8f){return mergeRawConfigLayers(loadRawConfigLayers(_0x1bdd8f));}export function readRawConfigWithLayers(_0x870e2e){const _0x44ce4=loadRawConfigLayers(_0x870e2e);return{'config':mergeRawConfigLayers(_0x44ce4),'layers':_0x44ce4};}export function resolveDefaultAppSource(_0x109a76){const _0x445c8a=a107_0x5e3852;if(_0x445c8a(0xc7)in _0x109a76[_0x445c8a(0xa3)])return _0x445c8a(0x7d);if(_0x109a76[_0x445c8a(0xc0)]['defaultApp'])return _0x445c8a(0x9e);return null;}function buildConfig(_0x4d1cde,_0x33bd28){const _0x5f3595=a107_0x5e3852,_0x4aea39=mergeRawConfigLayers(_0x4d1cde),{projectConfig:_0x35de23}=_0x4d1cde,_0x297e1c=_0x4aea39['defaultApp']||undefined,_0x391e6a=typeof _0x33bd28[_0x5f3595(0xb0)]===_0x5f3595(0x93)?_0x33bd28['appcode']:undefined,_0x22898b=_0x35de23[_0x5f3595(0xb0)]||_0x35de23['app'],_0x514f7b=!_0x391e6a&&!_0x33bd28[_0x5f3595(0xa5)]&&!_0x22898b&&!_0x35de23[_0x5f3595(0xc7)],_0x585e0e=_0x514f7b?env(_0x5f3595(0x99)):undefined,_0xf1a1ef=_0x33bd28[_0x5f3595(0xa5)]||(_0x514f7b&&!_0x585e0e?env(_0x5f3595(0x7b)):undefined),_0x472cc5=_0xf1a1ef||_0x297e1c||undefined,_0x502d6c=_0xf1a1ef||_0x585e0e?undefined:_0x22898b||(_0x35de23[_0x5f3595(0xc7)]?undefined:_0x4aea39[_0x5f3595(0xb0)]||_0x4aea39[_0x5f3595(0xa5)]||undefined),_0x14c45a=_0xf1a1ef||(_0x502d6c?undefined:_0x297e1c),_0x1afaeb=resolveLocalAppAliasCode(_0x4aea39,_0x14c45a),_0xcb4d9f=productEnvNames(_0x5f3595(0xba))['find'](_0x411aa2=>process.env[_0x411aa2]!==undefined),_0x22f81d=_0xcb4d9f?process.env[_0xcb4d9f]:undefined,_0x34e7bb=_0x35de23['accessKey']||_0x22f81d||_0x4aea39[_0x5f3595(0x89)]||undefined,_0x9191d=_0x35de23['accessKey']?_0x5f3595(0x8e):_0x22f81d?_0xcb4d9f:_0x4aea39[_0x5f3595(0x89)]?_0x5f3595(0x82):undefined,_0x4fef08=_0x33bd28[_0x5f3595(0x73)]||_0x4aea39[_0x5f3595(0x73)]||env('ENV')||DEFAULT_CONFIG_VALUES[_0x5f3595(0x73)],_0xed6a03=normalizeEnv(String(_0x4fef08)),_0x5e1190=isDaily(_0xed6a03)?_0x5f3595(0x9b):isDev(_0xed6a03)?_0x5f3595(0xc1):_0x5f3595(0x95),_0x44ff6c=_0x391e6a||_0x585e0e||_0x502d6c||_0x1afaeb?undefined:resolveCachedAppCode(_0x14c45a,_0x5e1190,_0x34e7bb),_0x43ce96=_0x391e6a||_0x585e0e||_0x502d6c||_0x1afaeb||_0x44ff6c||undefined,_0x23bda3=_0x391e6a?_0x5f3595(0xc3):_0x585e0e?_0x5f3595(0x73):_0x502d6c?_0x5f3595(0xa6):_0x1afaeb?_0x5f3595(0x8a):_0x44ff6c?_0x5f3595(0xc2):undefined,_0x4bca7c=_0x4aea39[_0x5f3595(0xa7)]||DEFAULT_CONFIG_VALUES[_0x5f3595(0xa7)],_0x13ca08=undefined,_0x4d10d9=_0x33bd28[_0x5f3595(0xb8)]||env('FORMAT')||_0x4aea39[_0x5f3595(0xb8)],_0x225775=normalizeLegacyOutputFormat(_0x4d10d9),_0x32c156=env(_0x5f3595(0xb3))||_0x4aea39[_0x5f3595(0x91)],_0x173880=_0x32c156?Number(_0x32c156)||undefined:undefined,_0x31b5fb=_0x4aea39[_0x5f3595(0x8f)],_0x506cae=_0x31b5fb===_0x5f3595(0xc4)||_0x31b5fb===_0x5f3595(0x97)||_0x31b5fb===_0x5f3595(0x8d)?_0x31b5fb:DEFAULT_CONFIG_VALUES['riskLevel'],_0x28b777=_0x4aea39[_0x5f3595(0x8c)]===!![],_0x21bbb2=env(_0x5f3595(0x84)),_0x33c57d=_0x21bbb2==='1'||_0x21bbb2===_0x5f3595(0xb5);return{'appCode':typeof _0x43ce96==='string'&&_0x43ce96[_0x5f3595(0x70)]()?_0x43ce96[_0x5f3595(0x70)]():undefined,'appCodeSource':_0x23bda3,'env':_0x5e1190,'locale':_0x4bca7c,'cookie':_0x13ca08,'accessKey':_0x34e7bb,'accessKeySource':_0x9191d,'format':_0x225775,'pageSize':_0x173880,'riskLevel':_0x506cae,'nativeToolAvailable':_0x28b777,'verbose':_0x33c57d,'defaultApp':_0x297e1c,'currentApp':typeof _0x472cc5==='string'?_0x472cc5:undefined,'raw':_0x4aea39};}function env(_0x37661b){return productEnv(_0x37661b);}async function buildAuth(_0x29af03){const _0x2501d8=a107_0x5e3852,_0x66f72e='',_0x16780d=!!_0x29af03[_0x2501d8(0x89)];return{'cookie':_0x66f72e,'isLoggedIn':_0x16780d,async 'getOrLogin'(){const _0x533209=_0x2501d8;if(_0x16780d)return _0x66f72e;throw CliErrors[_0x533209(0x85)]();}};}
1
+ const a107_0x39fe48=a107_0x26fc;(function(_0x39a5b0,_0x17ff9a){const _0x36f00f=a107_0x26fc,_0x4863df=_0x39a5b0();while(!![]){try{const _0x154f87=-parseInt(_0x36f00f(0x1df))/0x1+-parseInt(_0x36f00f(0x1ec))/0x2*(-parseInt(_0x36f00f(0x200))/0x3)+-parseInt(_0x36f00f(0x1e3))/0x4*(-parseInt(_0x36f00f(0x1af))/0x5)+parseInt(_0x36f00f(0x1e9))/0x6*(parseInt(_0x36f00f(0x1e2))/0x7)+parseInt(_0x36f00f(0x1f6))/0x8+-parseInt(_0x36f00f(0x1ba))/0x9*(-parseInt(_0x36f00f(0x1c8))/0xa)+-parseInt(_0x36f00f(0x205))/0xb;if(_0x154f87===_0x17ff9a)break;else _0x4863df['push'](_0x4863df['shift']());}catch(_0x3da8b2){_0x4863df['push'](_0x4863df['shift']());}}}(a107_0x1d88,0x891f7));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{normalizeDomainOrigin,resolveEnterpriseRoutingConfig}from'./config/domain-config.js';export{AUTH_MODE,isAuthMode}from'./constant/auth-mode.js';const CONFIG_NAMES=PRODUCT_CONFIG[a107_0x39fe48(0x1f2)];export const NEW_CONFIG_NAME=PRODUCT_CONFIG[a107_0x39fe48(0x1b3)];function resolveConfigPath(_0x59f885){for(const _0x1c2fe7 of CONFIG_NAMES){const _0x509210=resolve(_0x59f885,_0x1c2fe7);if(existsSync(_0x509210))return _0x509210;}return undefined;}export function resolveWriteConfigPath(_0x39aa2a){const _0x37fd21=a107_0x39fe48,_0x2adeb3=_0x39aa2a===_0x37fd21(0x1e6)?process[_0x37fd21(0x1d3)]():homedir(),_0x309221=resolveConfigPath(_0x2adeb3);return _0x309221??resolve(_0x2adeb3,NEW_CONFIG_NAME);}export function readConfigFile(_0x1b3f8c){const _0x2000af=a107_0x39fe48;try{if(existsSync(_0x1b3f8c)){const _0x2da954=readFileSync(_0x1b3f8c,{'encoding':_0x2000af(0x1da)});if(_0x2da954){const _0x399746=JSON[_0x2000af(0x1cb)](_0x2da954);return migrateOnlineEnv(_0x1b3f8c,_0x399746),_0x399746;}}}catch{}return{};}function migrateOnlineEnv(_0x557585,_0x5a5297){const _0x347d45=a107_0x39fe48;let _0x49ff57=![];_0x5a5297['env']===_0x347d45(0x1e8)&&(_0x5a5297[_0x347d45(0x1c4)]=_0x347d45(0x1c0),_0x49ff57=!![]);if(_0x5a5297[_0x347d45(0x1ea)]&&typeof _0x5a5297[_0x347d45(0x1ea)]==='object')for(const _0x5f10b5 of Object[_0x347d45(0x1fc)](_0x5a5297[_0x347d45(0x1ea)])){_0x5f10b5&&_0x5f10b5[_0x347d45(0x1c4)]===_0x347d45(0x1e8)&&(_0x5f10b5[_0x347d45(0x1c4)]='production',_0x49ff57=!![]);}if(_0x49ff57)try{writeConfigFile(_0x557585,_0x5a5297);}catch{}}export function writeConfigFile(_0x33849b,_0x27aab4){const _0x205c3a=a107_0x39fe48,_0x298d1a=dirname(_0x33849b);!existsSync(_0x298d1a)&&mkdirSync(_0x298d1a,{'recursive':!![]});const _0x22e738=_0x33849b+_0x205c3a(0x1fb);try{writeFileSync(_0x22e738,JSON['stringify'](_0x27aab4,null,0x2)+'\x0a',{'encoding':'utf8','mode':0x180});try{renameSync(_0x22e738,_0x33849b);}catch(_0x4de958){if(_0x4de958[_0x205c3a(0x1ce)]===_0x205c3a(0x1c6)||_0x4de958[_0x205c3a(0x1ce)]===_0x205c3a(0x1b2)||_0x4de958[_0x205c3a(0x1ce)]===_0x205c3a(0x1ef)){writeFileSync(_0x33849b,JSON[_0x205c3a(0x1fd)](_0x27aab4,null,0x2)+'\x0a',{'encoding':_0x205c3a(0x1da)});try{unlinkSync(_0x22e738);}catch{}}else throw _0x4de958;}}catch(_0x5d6eda){try{unlinkSync(_0x22e738);}catch{}throw _0x5d6eda;}}export function isNonInteractiveMode(_0x9396c6){const _0x4a877f=a107_0x39fe48;return!!(_0x9396c6['nonInteractive']||_0x9396c6['ci']||productEnvNames('CI')[_0x4a877f(0x1ed)](_0x5d89cb=>process.env[_0x5d89cb]===_0x4a877f(0x201))||process.env.CI===_0x4a877f(0x201)||!process['stdout'][_0x4a877f(0x1eb)]||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x1c4b78=a107_0x39fe48;if(!process[_0x1c4b78(0x1ca)][_0x1c4b78(0x1eb)])return![];try{const _0x2ac28d=process[_0x1c4b78(0x1ca)][_0x1c4b78(0x1c7)];return process[_0x1c4b78(0x1ca)][_0x1c4b78(0x1b1)](!![]),process[_0x1c4b78(0x1ca)]['setRawMode'](_0x2ac28d??![]),!![];}catch{return![];}}export async function createContext(_0xfd5f30){const _0x30f2c3=a107_0x39fe48,_0x17086e=buildConfigFromFlags(_0xfd5f30);await initGlobalEnvironment(_0x17086e);const {getUserDomain:_0xf1b789,getApiDomain:_0x54322c}=await import(_0x30f2c3(0x1f8)),_0x284192={'apiDomain':_0x54322c(),'userDomain':_0xf1b789()},_0x53930b=await buildAuth(_0x17086e);logger[_0x30f2c3(0x1bd)](process[_0x30f2c3(0x1d3)]());const _0x19d809=(CLI_BIN_NAME+'\x20'+redactCommandArgv(process[_0x30f2c3(0x1cf)][_0x30f2c3(0x204)](0x2))[_0x30f2c3(0x1e7)]('\x20'))[_0x30f2c3(0x1d6)]();logger[_0x30f2c3(0x1f7)](_0x19d809);const _0x324582=isNonInteractiveMode(_0xfd5f30);return{'config':_0x17086e,'auth':_0x53930b,'logger':logger,'env':_0x284192,'nonInteractive':_0x324582};}export function buildConfigFromFlags(_0x2a0faa){return buildConfig(loadRawConfigLayers(),_0x2a0faa);}export function getLocalAppAliases(_0x5b166f){const _0x1e5578=a107_0x39fe48;return _0x5b166f[_0x1e5578(0x1ea)]&&typeof _0x5b166f[_0x1e5578(0x1ea)]==='object'?_0x5b166f[_0x1e5578(0x1ea)]:{};}export function resolveLocalAppAliasCode(_0x3a6655,_0x3ee8fb){const _0x311136=a107_0x39fe48;if(!_0x3ee8fb)return undefined;const _0x6d3990=getLocalAppAliases(_0x3a6655)[_0x3ee8fb],_0x5b1038=_0x6d3990?.[_0x311136(0x1db)];return typeof _0x5b1038===_0x311136(0x1de)&&_0x5b1038['trim']()?_0x5b1038['trim']():undefined;}export function readAppCodeFromConfig(){const _0x55a3cb=a107_0x39fe48;return buildConfigFromFlags({})[_0x55a3cb(0x1b4)];}export function readScopedConfig(_0x18742c){const _0x5d734c=a107_0x39fe48,_0x143081=_0x18742c[_0x5d734c(0x1b7)]?_0x5d734c(0x1b7):_0x5d734c(0x1e6);return readConfigFile(resolveWriteConfigPath(_0x143081));}export function writeScopedConfig(_0x54b1ab,_0x350168){const _0x24c5ce=a107_0x39fe48,_0xb09286=_0x350168['global']?_0x24c5ce(0x1b7):_0x24c5ce(0x1e6);writeConfigFile(resolveWriteConfigPath(_0xb09286),_0x54b1ab);}export async function initGlobalEnvironment(_0xa09992){const _0x1f3ade=a107_0x39fe48,{initEnv:_0xf0a157}=await import(_0x1f3ade(0x1d4));_0xf0a157(_0xa09992[_0x1f3ade(0x1c4)]);const {initDomains:_0x3d16f7}=await import(_0x1f3ade(0x1f8)),_0x122c1b=resolveEnterpriseRoutingConfig(_0xa09992[_0x1f3ade(0x1b5)][_0x1f3ade(0x1b8)]);_0x3d16f7({'apiDomain':_0x122c1b?_0x122c1b[_0x1f3ade(0x1c9)]:_0xa09992[_0x1f3ade(0x1b5)]['apiDomain']||_0xa09992['raw'][_0x1f3ade(0x1c2)]||undefined,'userDomain':_0x122c1b?_0x122c1b[_0x1f3ade(0x1d2)]:_0xa09992[_0x1f3ade(0x1b5)][_0x1f3ade(0x1d2)]||undefined,'runtimeDomain':_0x122c1b?_0x122c1b[_0x1f3ade(0x1c3)]:_0xa09992[_0x1f3ade(0x1b5)][_0x1f3ade(0x1c3)]||undefined,'skillDomain':_0x122c1b?_0x122c1b[_0x1f3ade(0x1c1)]:_0xa09992[_0x1f3ade(0x1b5)][_0x1f3ade(0x1c1)]||_0xa09992[_0x1f3ade(0x1b5)][_0x1f3ade(0x1f3)]||_0xa09992['raw'][_0x1f3ade(0x1f5)]||_0xa09992[_0x1f3ade(0x1b5)][_0x1f3ade(0x1c5)]||undefined,'kbServiceDomain':_0x122c1b?_0x122c1b[_0x1f3ade(0x1fa)]:typeof _0xa09992[_0x1f3ade(0x1b5)][_0x1f3ade(0x1fa)]==='string'&&_0xa09992[_0x1f3ade(0x1b5)][_0x1f3ade(0x1fa)][_0x1f3ade(0x1d6)]()?_0xa09992['raw'][_0x1f3ade(0x1fa)]:undefined,'harnessDomain':_0x122c1b?_0x122c1b[_0x1f3ade(0x1e5)]:_0xa09992[_0x1f3ade(0x1b5)]['harnessDomain']===undefined?undefined:normalizeDomainOrigin('harnessDomain',_0xa09992['raw'][_0x1f3ade(0x1e5)]),'region':normalizeLovrabetRegion(_0xa09992[_0x1f3ade(0x1b5)][_0x1f3ade(0x202)])});}export function getProjectConfigPath(){const _0x5303e7=a107_0x39fe48;return resolveConfigPath(process[_0x5303e7(0x1d3)]());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function inspectCliConfigJsonFile(_0x340bb7){const _0x51d025=a107_0x39fe48;if(!existsSync(_0x340bb7))return{'status':_0x51d025(0x1ff)};try{const _0x7f72ec=readFileSync(_0x340bb7,{'encoding':_0x51d025(0x1da)});if(!_0x7f72ec?.[_0x51d025(0x1d6)]())return{'status':_0x51d025(0x1d9)};const _0xb8fbd1=JSON['parse'](_0x7f72ec);return{'status':'ok','data':_0xb8fbd1};}catch(_0x15b8b4){return{'status':_0x51d025(0x1b6),'message':_0x15b8b4 instanceof Error?_0x15b8b4['message']:String(_0x15b8b4)};}}export function loadRawConfigLayers(_0x1923b9){const _0x252a6e=a107_0x39fe48;let _0x457194={},_0x429fa0={},_0x3359ce,_0x331d17;try{_0x3359ce=resolveConfigPath(homedir());if(_0x3359ce){const _0x5480d6=readFileSync(_0x3359ce,{'encoding':_0x252a6e(0x1da)});if(_0x5480d6)_0x457194=JSON[_0x252a6e(0x1cb)](_0x5480d6);}}catch{}try{const _0x394de5=_0x1923b9||process['cwd']();_0x331d17=resolveConfigPath(_0x394de5);if(_0x331d17){const _0x4ee4a8=readFileSync(_0x331d17,{'encoding':_0x252a6e(0x1da)});if(_0x4ee4a8)_0x429fa0=JSON[_0x252a6e(0x1cb)](_0x4ee4a8);}}catch{}return{'globalPath':_0x3359ce,'projectPath':_0x331d17,'globalConfig':_0x457194,'projectConfig':_0x429fa0};}function mergeRawConfigLayers(_0x4a8a5b){const _0x16a88c=a107_0x39fe48,{globalConfig:_0x5960c8,projectConfig:_0x2eff95}=_0x4a8a5b,_0x4fd9fa={..._0x5960c8,..._0x2eff95};delete _0x4fd9fa[_0x16a88c(0x203)];if('defaultApp'in _0x2eff95)_0x4fd9fa['defaultApp']=_0x2eff95['defaultApp'];else _0x5960c8[_0x16a88c(0x1d8)]&&(_0x4fd9fa[_0x16a88c(0x1d8)]=_0x5960c8[_0x16a88c(0x1d8)]);return _0x4fd9fa;}export function isInProject(){return!!getProjectConfigPath();}function a107_0x1d88(){const _0x29bc30=['appcode','development','APP','string','1056814yALmFM','globalConfig','riskLevel','728203ByRADK','64hGtMif','accessKey','harnessDomain','project','join','online','48kuWGsk','apps','isTTY','2241366KSoCzM','some','ENV','EACCES','high-risk-write','format','configFileNames','skillHubDomain','locale','agentDomain','6884808QLBDYZ','setRawCommand','./constant/domain.js','nativeToolAvailable','kbServiceDomain','.tmp','values','stringify','APPCODE','missing','3biSGjl','true','region','inherit','slice','18433393udvles','explicit','86015IsLpxE','global\x20config','setRawMode','EXDEV','newConfigFileName','appCode','raw','error','global','routing','find','1849212dJDHHS','cache','local-alias','setLogPath','VERBOSE','authRequired','production','skillDomain','host','runtimeDomain','env','platformDomain','EPERM','isRaw','10ljPMVX','apiDomain','stdin','parse','FORMAT','top-level','code','argv','write','daily','userDomain','cwd','./constant/env.js','projectConfig','trim','app','defaultApp','empty','utf8'];a107_0x1d88=function(){return _0x29bc30;};return a107_0x1d88();}function a107_0x26fc(_0x523e70,_0x33394b){_0x523e70=_0x523e70-0x1ae;const _0x1d88b0=a107_0x1d88();let _0x26fcac=_0x1d88b0[_0x523e70];return _0x26fcac;}export function readRawConfig(_0xe524b4){return mergeRawConfigLayers(loadRawConfigLayers(_0xe524b4));}export function readRawConfigWithLayers(_0x58e95f){const _0x1bcad4=loadRawConfigLayers(_0x58e95f);return{'config':mergeRawConfigLayers(_0x1bcad4),'layers':_0x1bcad4};}export function resolveDefaultAppSource(_0x3f249e){const _0x3c355d=a107_0x39fe48;if(_0x3c355d(0x1d8)in _0x3f249e[_0x3c355d(0x1d5)])return _0x3c355d(0x1e6);if(_0x3f249e[_0x3c355d(0x1e0)][_0x3c355d(0x1d8)])return _0x3c355d(0x1b7);return null;}function buildConfig(_0x9654c1,_0x1a77b0){const _0x364f0a=a107_0x39fe48,_0x3a78bf=mergeRawConfigLayers(_0x9654c1),{projectConfig:_0x22f054}=_0x9654c1,_0x12aadb=_0x3a78bf['defaultApp']||undefined,_0x57571a=typeof _0x1a77b0[_0x364f0a(0x1db)]===_0x364f0a(0x1de)?_0x1a77b0[_0x364f0a(0x1db)]:undefined,_0x48acb8=_0x22f054['appcode']||_0x22f054[_0x364f0a(0x1d7)],_0x578b15=!_0x57571a&&!_0x1a77b0[_0x364f0a(0x1d7)]&&!_0x48acb8&&!_0x22f054[_0x364f0a(0x1d8)],_0x5c9095=_0x578b15?env(_0x364f0a(0x1fe)):undefined,_0x54970d=_0x1a77b0[_0x364f0a(0x1d7)]||(_0x578b15&&!_0x5c9095?env(_0x364f0a(0x1dd)):undefined),_0x38685f=_0x54970d||_0x12aadb||undefined,_0x1e170c=_0x54970d||_0x5c9095?undefined:_0x48acb8||(_0x22f054[_0x364f0a(0x1d8)]?undefined:_0x3a78bf[_0x364f0a(0x1db)]||_0x3a78bf['app']||undefined),_0x24d749=_0x54970d||(_0x1e170c?undefined:_0x12aadb),_0xe77858=resolveLocalAppAliasCode(_0x3a78bf,_0x24d749),_0x24dcec=productEnvNames('ACCESS_KEY')[_0x364f0a(0x1b9)](_0xac940b=>process.env[_0xac940b]!==undefined),_0xf2e94f=_0x24dcec?process.env[_0x24dcec]:undefined,_0x200610=_0x22f054['accessKey']||_0xf2e94f||_0x3a78bf[_0x364f0a(0x1e4)]||undefined,_0x34c6db=_0x22f054['accessKey']?'project\x20config':_0xf2e94f?_0x24dcec:_0x3a78bf[_0x364f0a(0x1e4)]?_0x364f0a(0x1b0):undefined,_0x332f51=_0x1a77b0[_0x364f0a(0x1c4)]||_0x3a78bf[_0x364f0a(0x1c4)]||env(_0x364f0a(0x1ee))||DEFAULT_CONFIG_VALUES[_0x364f0a(0x1c4)],_0x52c4d7=normalizeEnv(String(_0x332f51)),_0x4333c2=isDaily(_0x52c4d7)?_0x364f0a(0x1d1):isDev(_0x52c4d7)?_0x364f0a(0x1dc):_0x364f0a(0x1c0),_0x151548=_0x57571a||_0x5c9095||_0x1e170c||_0xe77858?undefined:resolveCachedAppCode(_0x24d749,_0x4333c2,_0x200610),_0x1ffb90=_0x57571a||_0x5c9095||_0x1e170c||_0xe77858||_0x151548||undefined,_0x28b59f=_0x57571a?_0x364f0a(0x1ae):_0x5c9095?_0x364f0a(0x1c4):_0x1e170c?_0x364f0a(0x1cd):_0xe77858?_0x364f0a(0x1bc):_0x151548?_0x364f0a(0x1bb):undefined,_0x400352=_0x3a78bf[_0x364f0a(0x1f4)]||DEFAULT_CONFIG_VALUES[_0x364f0a(0x1f4)],_0x19dd4c=undefined,_0x1177d4=_0x1a77b0[_0x364f0a(0x1f1)]||env(_0x364f0a(0x1cc))||_0x3a78bf['format'],_0x4873e2=normalizeLegacyOutputFormat(_0x1177d4),_0x704304=env('PAGE_SIZE')||_0x3a78bf['pageSize'],_0x351a71=_0x704304?Number(_0x704304)||undefined:undefined,_0x19fb2b=_0x3a78bf[_0x364f0a(0x1e1)],_0xc88d2c=_0x19fb2b==='read'||_0x19fb2b===_0x364f0a(0x1d0)||_0x19fb2b===_0x364f0a(0x1f0)?_0x19fb2b:DEFAULT_CONFIG_VALUES[_0x364f0a(0x1e1)],_0x5f2df3=_0x3a78bf[_0x364f0a(0x1f9)]===!![],_0x21f152=env(_0x364f0a(0x1be)),_0x1bb8a7=_0x21f152==='1'||_0x21f152===_0x364f0a(0x201);return{'appCode':typeof _0x1ffb90===_0x364f0a(0x1de)&&_0x1ffb90['trim']()?_0x1ffb90['trim']():undefined,'appCodeSource':_0x28b59f,'env':_0x4333c2,'locale':_0x400352,'cookie':_0x19dd4c,'accessKey':_0x200610,'accessKeySource':_0x34c6db,'format':_0x4873e2,'pageSize':_0x351a71,'riskLevel':_0xc88d2c,'nativeToolAvailable':_0x5f2df3,'verbose':_0x1bb8a7,'defaultApp':_0x12aadb,'currentApp':typeof _0x38685f===_0x364f0a(0x1de)?_0x38685f:undefined,'raw':_0x3a78bf};}function env(_0x305657){return productEnv(_0x305657);}async function buildAuth(_0x52425d){const _0x5a1d8c=a107_0x39fe48,_0x5157ce='',_0x2a3e64=!!_0x52425d[_0x5a1d8c(0x1e4)];return{'cookie':_0x5157ce,'isLoggedIn':_0x2a3e64,async 'getOrLogin'(){const _0x55ed05=_0x5a1d8c;if(_0x2a3e64)return _0x5157ce;throw CliErrors[_0x55ed05(0x1bf)]();}};}
@@ -1 +1 @@
1
- const a108_0x2f2f95=a108_0x104d;(function(_0x20e003,_0x4c894c){const _0x118c83=a108_0x104d,_0x5442de=_0x20e003();while(!![]){try{const _0x5e335d=parseInt(_0x118c83(0x185))/0x1*(-parseInt(_0x118c83(0x144))/0x2)+-parseInt(_0x118c83(0x180))/0x3*(parseInt(_0x118c83(0x157))/0x4)+-parseInt(_0x118c83(0x171))/0x5+-parseInt(_0x118c83(0x16b))/0x6*(parseInt(_0x118c83(0x137))/0x7)+parseInt(_0x118c83(0x199))/0x8*(-parseInt(_0x118c83(0x128))/0x9)+parseInt(_0x118c83(0x1ad))/0xa*(parseInt(_0x118c83(0x148))/0xb)+parseInt(_0x118c83(0x1d6))/0xc;if(_0x5e335d===_0x4c894c)break;else _0x5442de['push'](_0x5442de['shift']());}catch(_0x3d07dc){_0x5442de['push'](_0x5442de['shift']());}}}(a108_0x3689,0xd359f));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,requireHarnessDomain}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(_0x1f20bf){if(_activeAK!==(_0x1f20bf||undefined))clearSdkClient();_activeAK=_0x1f20bf||undefined;}export function clearActiveAK(){_activeAK=undefined,clearSdkClient();}async function sdkRequest(_0x1e6614,_0x4a967c){const _0x521082=a108_0x104d;if(!_activeAK)throw CliErrors[_0x521082(0x1c4)](_0x521082(0x1a7)+PRODUCT_CONFIG[_0x521082(0x13c)]+'.');const _0xff37e7=_0x1e6614?getSdkClient({'appCode':_0x1e6614,'env':getEnv(),'runtimeDomain':getRuntimeDomain(),'authMode':'client-ak','accessKey':_activeAK}):getSdkClient();return withSdkErrors(()=>_0x4a967c(_0xff37e7));}async function identitySdkRequest(_0x5d7f5e){const _0x4bd114=a108_0x104d,_0x2b9b38=_activeAK;if(!_0x2b9b38)throw CliErrors[_0x4bd114(0x1c4)]('Configure\x20accessKey\x20in\x20'+PRODUCT_CONFIG[_0x4bd114(0x13c)]+'.');return withSdkErrors(()=>_0x5d7f5e(getIdentitySdkClient(_0x2b9b38,getRuntimeDomain())));}async function withSdkErrors(_0xf8b4b2){const _0x347fd4=a108_0x104d;try{return await _0xf8b4b2();}catch(_0x2e3a6c){if(_0x2e3a6c instanceof CliError)throw _0x2e3a6c;if(!_0x2e3a6c||typeof _0x2e3a6c!=='object')throw _0x2e3a6c;const _0x34ec3f=_0x2e3a6c,_0x4458df=_0x34ec3f[_0x347fd4(0x159)]&&typeof _0x34ec3f[_0x347fd4(0x159)]===_0x347fd4(0x17b)?_0x34ec3f['response']:{},_0x5bc7c0=firstString(_0x4458df[_0x347fd4(0x1a3)],_0x4458df[_0x347fd4(0x1ed)],_0x4458df[_0x347fd4(0x161)],_0x34ec3f[_0x347fd4(0x1ed)]),_0x5ec32b=createRateLimitError({'status':[_0x34ec3f['status'],_0x4458df['status'],_0x4458df['code']][_0x347fd4(0x202)](_0x42a09f=>Number(_0x42a09f)===0x1ad)??_0x34ec3f[_0x347fd4(0x1f1)],'errorCode':firstString(_0x4458df[_0x347fd4(0x177)],typeof _0x4458df[_0x347fd4(0x1f8)]==='string'?_0x4458df[_0x347fd4(0x1f8)]:undefined,_0x34ec3f[_0x347fd4(0x1f8)]),'message':_0x5bc7c0,'retryAfter':_0x34ec3f[_0x347fd4(0x16d)]??readRetryAfterSeconds(_0x34ec3f['response'])});if(_0x5ec32b)throw _0x5ec32b;const _0x28a655=createAccessError(_0x34ec3f[_0x347fd4(0x159)],_0x34ec3f[_0x347fd4(0x1f8)]);if(_0x28a655)throw _0x28a655;throw CliErrors[_0x347fd4(0x1a2)](_0x5bc7c0||_0x347fd4(0x1d3),_0x34ec3f[_0x347fd4(0x1f8)]?'API\x20error\x20code:\x20'+_0x34ec3f[_0x347fd4(0x1f8)]:undefined);}}function firstString(..._0x488326){const _0x413a0c=a108_0x104d;for(const _0x3032cc of _0x488326){if(typeof _0x3032cc===_0x413a0c(0x186)&&_0x3032cc[_0x413a0c(0x16c)]())return _0x3032cc['trim']();}return undefined;}async function decodeResponseBody(_0x2ebe54){const _0x6287e=a108_0x104d;if(typeof _0x2ebe54[_0x6287e(0x19e)]===_0x6287e(0x12a))try{const _0x23396d=await _0x2ebe54[_0x6287e(0x19e)]();try{return{'isJson':!![],'data':parseLosslessJson(_0x23396d),'text':_0x23396d};}catch{return{'isJson':![],'text':_0x23396d[_0x6287e(0x16c)]()||undefined};}}catch(_0x422633){if(_0x422633 instanceof Error&&_0x422633['name']===_0x6287e(0x167))throw _0x422633;}try{return{'isJson':!![],'data':await _0x2ebe54[_0x6287e(0x15c)]()};}catch(_0x224240){if(_0x224240 instanceof Error&&_0x224240[_0x6287e(0x1ce)]===_0x6287e(0x167))throw _0x224240;return{'isJson':![]};}}function throwIfRateLimited(_0x310b71,_0x1af03a,_0x226dff){const _0x44130a=a108_0x104d,_0x16e2ca=_0x1af03a&&typeof _0x1af03a===_0x44130a(0x17b)?_0x1af03a:{},_0x4ab36e=[_0x16e2ca[_0x44130a(0x1f1)],_0x16e2ca[_0x44130a(0x1f8)]][_0x44130a(0x202)](_0xd34ded=>Number(_0xd34ded)===0x1ad),_0x1305ca=createRateLimitError({'status':_0x310b71[_0x44130a(0x1f1)]===0x1ad?_0x310b71[_0x44130a(0x1f1)]:_0x4ab36e??_0x310b71[_0x44130a(0x1f1)],'errorCode':firstString(_0x16e2ca[_0x44130a(0x177)],typeof _0x16e2ca[_0x44130a(0x1f8)]===_0x44130a(0x186)?_0x16e2ca['code']:undefined),'message':firstString(_0x16e2ca[_0x44130a(0x1a3)],_0x16e2ca['message'],_0x16e2ca['msg'],_0x226dff),'retryAfter':readRetryAfter(_0x310b71[_0x44130a(0x19f)])??readRetryAfterSeconds(_0x1af03a)});if(_0x1305ca)throw _0x1305ca;}async function apiRequest(_0x33a95e,_0x3469dd={}){const _0x410a62=a108_0x104d,{method:method=_0x410a62(0x1b0),body:_0x36b47c,headers:headers={},timeout:timeout=0x7530,domain:domain='runtime',rejectRedirects:rejectRedirects=![]}=_0x3469dd,_0x10356c=_activeAK,_0x4da42c=domain==='harness'?requireHarnessDomain():domain==='api'?getApiDomain():getRuntimeDomain();if(!_0x10356c)throw CliErrors[_0x410a62(0x1c4)](_0x410a62(0x1a7)+PRODUCT_CONFIG[_0x410a62(0x13c)]+'.');const _0x4b9467=''+_0x4da42c+_0x33a95e,_0x48da6a={'X-User-AK':_0x10356c},_0x1dcd34=new AbortController(),_0x12b9ba=setTimeout(()=>_0x1dcd34['abort'](),timeout);try{const _0x1162b4=await fetch(_0x4b9467,{'method':method,...rejectRedirects?{'redirect':_0x410a62(0x15d)}:{},'headers':{'Content-Type':_0x410a62(0x124),'X-Invoke-Source':PRODUCT_CONFIG[_0x410a62(0x1c5)],..._0x48da6a,...headers},'body':_0x36b47c?JSON[_0x410a62(0x134)](_0x36b47c):undefined,'signal':_0x1dcd34['signal']});return await readApiResponse(_0x1162b4);}catch(_0x6e7bd6){if(_0x6e7bd6 instanceof Error&&_0x6e7bd6[_0x410a62(0x1ce)]===_0x410a62(0x167))throw CliErrors[_0x410a62(0x1a2)]('Request\x20timeout:\x20'+_0x4b9467);throw _0x6e7bd6;}finally{clearTimeout(_0x12b9ba);}}async function readApiResponse(_0x10d06f){const _0x2d8404=a108_0x104d,_0x3cf1ce=await decodeResponseBody(_0x10d06f);if(!_0x3cf1ce[_0x2d8404(0x169)]){throwIfRateLimited(_0x10d06f,undefined,_0x3cf1ce[_0x2d8404(0x19e)]);throw CliErrors[_0x2d8404(0x1a2)]('API\x20returned\x20non-JSON\x20response\x20(HTTP\x20'+_0x10d06f[_0x2d8404(0x1f1)]+')',_0x10d06f['status']>=0x190?_0x2d8404(0x16f):undefined);}const _0x2c1a75=_0x3cf1ce[_0x2d8404(0x164)];throwIfRateLimited(_0x10d06f,_0x2c1a75);if(!_0x10d06f['ok']||_0x2c1a75[_0x2d8404(0x136)]===![]){const _0x4388ef=createAccessError(_0x2c1a75);if(_0x4388ef)throw _0x4388ef;throw CliErrors[_0x2d8404(0x1a2)](_0x2c1a75[_0x2d8404(0x1a3)]||_0x2c1a75[_0x2d8404(0x1ed)]||_0x2c1a75['msg']||_0x2d8404(0x1f7)+_0x10d06f[_0x2d8404(0x1f1)],readApiErrorCode(_0x2c1a75)?_0x2d8404(0x1db)+readApiErrorCode(_0x2c1a75):undefined);}return _0x2c1a75;}async function apiBinaryRequest(_0x38623d,_0x3e31b0={}){const _0x1dc475=a108_0x104d,{method:method=_0x1dc475(0x1b0),headers:headers={},timeout:timeout=0x7530}=_0x3e31b0,_0x3ce843=_activeAK,_0x58b476=getRuntimeDomain();if(!_0x3ce843)throw CliErrors[_0x1dc475(0x1c4)](_0x1dc475(0x1a7)+PRODUCT_CONFIG['newConfigFileName']+'.');const _0x384538=''+_0x58b476+_0x38623d,_0x56cf18=new AbortController(),_0x4b1fdb=setTimeout(()=>_0x56cf18[_0x1dc475(0x138)](),timeout);try{const _0x589b55=await fetch(_0x384538,{'method':method,'headers':{'X-Invoke-Source':PRODUCT_CONFIG[_0x1dc475(0x1c5)],'X-User-AK':_0x3ce843,...headers},'signal':_0x56cf18[_0x1dc475(0x1d7)]});if(!_0x589b55['ok']){const _0x1e2efa=await decodeResponseBody(_0x589b55),_0x2be593=_0x1e2efa[_0x1dc475(0x164)]&&typeof _0x1e2efa[_0x1dc475(0x164)]==='object'?_0x1e2efa[_0x1dc475(0x164)]:{},_0x3111ee=firstString(_0x2be593['errorMsg'],_0x2be593[_0x1dc475(0x1ed)],_0x2be593[_0x1dc475(0x177)],_0x1e2efa[_0x1dc475(0x19e)]);throwIfRateLimited(_0x589b55,_0x1e2efa[_0x1dc475(0x164)],_0x3111ee);const _0x168f04=createAccessError(_0x1e2efa[_0x1dc475(0x164)]);if(_0x168f04)throw _0x168f04;throw CliErrors[_0x1dc475(0x1a2)](_0x3111ee||_0x1dc475(0x1f7)+_0x589b55[_0x1dc475(0x1f1)],_0x1dc475(0x1fb)+_0x384538);}return Buffer['from'](await _0x589b55['arrayBuffer']());}catch(_0x2b2b9c){if(_0x2b2b9c instanceof Error&&_0x2b2b9c[_0x1dc475(0x1ce)]===_0x1dc475(0x167))throw CliErrors[_0x1dc475(0x1a2)]('Request\x20timeout:\x20'+_0x384538);throw _0x2b2b9c;}finally{clearTimeout(_0x4b1fdb);}}async function toolboxRequest(_0x38acba,_0x54b973,_0x5ad678={}){const _0x3927c4=a108_0x104d,{method:method=_0x3927c4(0x1b0),headers:headers={},timeout:timeout=0x7530}=_0x5ad678,_0x566cbb=_activeAK;if(!_0x566cbb)throw CliErrors[_0x3927c4(0x1c4)](_0x3927c4(0x1a7)+PRODUCT_CONFIG[_0x3927c4(0x13c)]+'.');const _0x2ec438=getApiDomain()['replace'](/\/$/,''),_0x2326c8=new URL(_0x38acba,_0x2ec438+_0x3927c4(0x170));if(_0x54b973)for(const [_0x2814b9,_0x16f940]of Object['entries'](_0x54b973)){_0x16f940!==undefined&&_0x16f940!==null&&_0x2326c8[_0x3927c4(0x14d)]['set'](_0x2814b9,String(_0x16f940));}const _0x36d68f=new AbortController(),_0x38d022=setTimeout(()=>_0x36d68f[_0x3927c4(0x138)](),timeout);try{const _0x790435=await fetch(_0x2326c8,{'method':method,'headers':{'Content-Type':_0x3927c4(0x124),'X-Invoke-Source':PRODUCT_CONFIG[_0x3927c4(0x1c5)],'X-User-AK':_0x566cbb,...headers},'signal':_0x36d68f[_0x3927c4(0x1d7)]}),_0x1b7932=await decodeResponseBody(_0x790435);if(!_0x1b7932[_0x3927c4(0x169)]){throwIfRateLimited(_0x790435,undefined,_0x1b7932[_0x3927c4(0x19e)]);throw CliErrors[_0x3927c4(0x1a2)](_0x3927c4(0x1da)+_0x790435[_0x3927c4(0x1f1)]+')',_0x790435['status']>=0x190?_0x3927c4(0x16f):undefined);}const _0x3e9319=_0x1b7932[_0x3927c4(0x164)];throwIfRateLimited(_0x790435,_0x3e9319);if(!_0x790435['ok']){const _0x42a30b=_0x3e9319&&typeof _0x3e9319===_0x3927c4(0x17b)?_0x3e9319:{};throw CliErrors['apiError'](_0x42a30b[_0x3927c4(0x1a3)]||_0x42a30b[_0x3927c4(0x1ed)]||_0x3927c4(0x166)+_0x790435['status'],_0x42a30b[_0x3927c4(0x177)]?_0x3927c4(0x1f0)+_0x42a30b[_0x3927c4(0x177)]:undefined);}if(_0x3e9319&&typeof _0x3e9319===_0x3927c4(0x17b)&&_0x3927c4(0x136)in _0x3e9319&&typeof _0x3e9319['success']===_0x3927c4(0x15e)){const _0x2092a5=_0x3e9319;if(!_0x2092a5[_0x3927c4(0x136)])throw CliErrors[_0x3927c4(0x1a2)](_0x2092a5[_0x3927c4(0x1a3)]||_0x2092a5['message']||_0x3927c4(0x1fe),_0x2092a5[_0x3927c4(0x177)]?'Toolbox\x20error\x20code:\x20'+_0x2092a5[_0x3927c4(0x177)]:undefined);return _0x2092a5[_0x3927c4(0x164)];}return _0x3e9319;}catch(_0x3b559a){if(_0x3b559a instanceof Error&&_0x3b559a[_0x3927c4(0x1ce)]===_0x3927c4(0x167))throw CliErrors[_0x3927c4(0x1a2)](_0x3927c4(0x1ca)+_0x2326c8['toString']());throw _0x3b559a;}finally{clearTimeout(_0x38d022);}}async function skillHubJsonRequest(_0x223e4f,_0x3980cb={}){const _0x510ca5=a108_0x104d,{method:method=_0x510ca5(0x1b0),query:_0x4e28f0,body:_0x1595db,headers:headers={},timeout:timeout=0x7530,allowNotFound:allowNotFound=![]}=_0x3980cb,_0x350cd1=_activeAK;if(!_0x350cd1)throw CliErrors[_0x510ca5(0x1c4)](_0x510ca5(0x1a7)+PRODUCT_CONFIG['newConfigFileName']+'.');const _0x394990=getSkillDomain()['replace'](/\/$/,''),_0x58b668=new URL(_0x223e4f,_0x394990+'/');if(_0x4e28f0)for(const [_0x3b6927,_0x510c8f]of Object[_0x510ca5(0x1a9)](_0x4e28f0)){_0x510c8f!==undefined&&_0x510c8f!==null&&_0x58b668['searchParams'][_0x510ca5(0x14b)](_0x3b6927,String(_0x510c8f));}const _0x574046=new AbortController(),_0x19dcb5=setTimeout(()=>_0x574046[_0x510ca5(0x138)](),timeout);try{const _0x43c3e9=await fetch(_0x58b668['toString'](),{'method':method,'headers':{'Accept':_0x510ca5(0x124),'X-Invoke-Source':PRODUCT_CONFIG[_0x510ca5(0x1c5)],'X-User-AK':_0x350cd1,...headers},'body':_0x1595db,'signal':_0x574046[_0x510ca5(0x1d7)]}),_0x4865d3=await decodeResponseBody(_0x43c3e9);if(!_0x4865d3[_0x510ca5(0x169)]){if(allowNotFound&&_0x43c3e9['status']===0x194)return undefined;throwIfRateLimited(_0x43c3e9,undefined,_0x4865d3['text']);throw CliErrors[_0x510ca5(0x1a2)](_0x510ca5(0x1b5)+_0x43c3e9['status']+')',_0x43c3e9[_0x510ca5(0x1f1)]>=0x190?_0x510ca5(0x16f):undefined);}const _0x15f934=_0x4865d3[_0x510ca5(0x164)];throwIfRateLimited(_0x43c3e9,_0x15f934);if(allowNotFound&&isSkillHubNotFoundResponse(_0x43c3e9['status'],_0x15f934))return undefined;const _0x5fa0=!_0x43c3e9['ok']||_0x15f934?.[_0x510ca5(0x136)]===![]||typeof _0x15f934?.[_0x510ca5(0x1f8)]==='number'&&_0x15f934[_0x510ca5(0x1f8)]>=0x190;if(_0x5fa0)throw CliErrors['apiError'](_0x15f934?.[_0x510ca5(0x1a3)]||_0x15f934?.[_0x510ca5(0x1ed)]||_0x15f934?.[_0x510ca5(0x161)]||_0x510ca5(0x122)+_0x43c3e9[_0x510ca5(0x1f1)],_0x15f934?.[_0x510ca5(0x177)]?_0x510ca5(0x1e8)+_0x15f934[_0x510ca5(0x177)]:undefined);return _0x15f934?.[_0x510ca5(0x164)]??_0x15f934;}catch(_0x139dc8){if(_0x139dc8 instanceof Error&&_0x139dc8[_0x510ca5(0x1ce)]==='AbortError')throw CliErrors[_0x510ca5(0x1a2)](_0x510ca5(0x1ca)+_0x58b668[_0x510ca5(0x1d8)]());throw _0x139dc8;}finally{clearTimeout(_0x19dcb5);}}function isSkillHubNotFoundResponse(_0x532725,_0x3f4480){const _0x2d4606=a108_0x104d;if(_0x532725===0x194||_0x3f4480?.['code']===0x194)return!![];if(_0x532725!==0x190&&_0x3f4480?.['code']!==0x190)return![];const _0x5ddcc7=[_0x3f4480?.[_0x2d4606(0x161)],_0x3f4480?.['message'],_0x3f4480?.[_0x2d4606(0x1a3)],_0x3f4480?.[_0x2d4606(0x15d)]]['filter'](_0x2a366d=>typeof _0x2a366d===_0x2d4606(0x186))['join']('\x20');return/skill not found\b/i['test'](_0x5ddcc7);}async function skillHubBinaryRequest(_0x1615d5,_0x962558={}){const _0x309d67=a108_0x104d,{query:_0x2925a6,headers:headers={},timeout:timeout=0x7530}=_0x962558,_0x4034f9=_activeAK;if(!_0x4034f9)throw CliErrors[_0x309d67(0x1c4)](_0x309d67(0x1a7)+PRODUCT_CONFIG[_0x309d67(0x13c)]+'.');const _0x10a54b=getSkillDomain()[_0x309d67(0x1fc)](/\/$/,''),_0x2e8c71=new URL(_0x1615d5,_0x10a54b+'/');if(_0x2925a6)for(const [_0x2ffb03,_0x237fe8]of Object[_0x309d67(0x1a9)](_0x2925a6)){_0x237fe8!==undefined&&_0x237fe8!==null&&_0x2e8c71['searchParams'][_0x309d67(0x14b)](_0x2ffb03,String(_0x237fe8));}const _0x35f18e=new AbortController(),_0x152241=setTimeout(()=>_0x35f18e[_0x309d67(0x138)](),timeout);try{const _0x2209af=await fetch(_0x2e8c71[_0x309d67(0x1d8)](),{'method':_0x309d67(0x1b0),'headers':{'Accept':_0x309d67(0x1bd),'X-Invoke-Source':PRODUCT_CONFIG[_0x309d67(0x1c5)],'X-User-AK':_0x4034f9,...headers},'signal':_0x35f18e['signal']});if(!_0x2209af['ok']){const _0x5fef51=await decodeResponseBody(_0x2209af),_0x1f05c4=_0x5fef51['data']&&typeof _0x5fef51[_0x309d67(0x164)]==='object'?_0x5fef51[_0x309d67(0x164)]:{},_0x2eb823=firstString(_0x1f05c4['errorMsg'],_0x1f05c4[_0x309d67(0x1ed)],_0x1f05c4[_0x309d67(0x161)],_0x1f05c4[_0x309d67(0x177)],_0x5fef51['text']);throwIfRateLimited(_0x2209af,_0x5fef51[_0x309d67(0x164)],_0x2eb823);throw CliErrors['apiError'](_0x2eb823||'SkillHub\x20API\x20error:\x20'+_0x2209af['status'],'Download\x20failed:\x20'+_0x2e8c71[_0x309d67(0x1d8)]());}return Buffer[_0x309d67(0x12c)](await _0x2209af['arrayBuffer']());}catch(_0x28edef){if(_0x28edef instanceof Error&&_0x28edef[_0x309d67(0x1ce)]===_0x309d67(0x167))throw CliErrors[_0x309d67(0x1a2)]('Request\x20timeout:\x20'+_0x2e8c71[_0x309d67(0x1d8)]());throw _0x28edef;}finally{clearTimeout(_0x152241);}}export async function getBffEndpointContract(_0x1f46c1,_0x3c60ee){const _0x543090=a108_0x104d;if(encodeURIComponent(_0x1f46c1)!==_0x1f46c1||_0x1f46c1==='.'||_0x1f46c1==='..')throw CliErrors[_0x543090(0x20a)]('Application\x20code\x20contains\x20invalid\x20URL\x20path\x20characters.');if(_0x3c60ee===_0x543090(0x187))throw CliErrors[_0x543090(0x20a)](_0x543090(0x188)+_0x1f46c1+',\x20name='+_0x3c60ee);const _0x4e16af=await sdkRequest(_0x1f46c1,_0xd52da4=>{const _0x42cf21=_0x543090;if(!(_0x42cf21(0x1b8)in _0xd52da4['bff']))throw CliErrors[_0x42cf21(0x20a)](_0x42cf21(0x1ae));return _0xd52da4[_0x42cf21(0x200)]['getEndpoint'](_0x3c60ee);});if(!_0x4e16af||typeof _0x4e16af!==_0x543090(0x17b)||Array[_0x543090(0x15f)](_0x4e16af)||_0x4e16af['appCode']!==_0x1f46c1||_0x4e16af[_0x543090(0x14c)]!==_0x3c60ee)throw CliErrors[_0x543090(0x20a)](_0x543090(0x188)+_0x1f46c1+_0x543090(0x14f)+_0x3c60ee);const _0xdc88f7=_0x4e16af[_0x543090(0x176)];if(_0xdc88f7!=null&&(typeof _0xdc88f7!==_0x543090(0x1a5)||!Number[_0x543090(0x1b3)](_0xdc88f7)))throw CliErrors[_0x543090(0x1a2)]('Invalid\x20Backend\x20Function\x20response:\x20gmtModified\x20must\x20be\x20an\x20integer\x20timestamp\x20or\x20null.');return{'appCode':_0x4e16af[_0x543090(0x1b7)],'functionName':_0x4e16af[_0x543090(0x14c)],'description':_0x4e16af['description'],'version':_0x4e16af['version'],'gmtModified':_0xdc88f7};}export async function getSqlQueryInfo(_0x179ac9,_0x3e929b){const _0x1b9eea=a108_0x104d,_0x3fd573=await sdkRequest(_0x179ac9,_0x36c48e=>{const _0x426fd3=a108_0x104d;if(!(_0x426fd3(0x193)in _0x36c48e[_0x426fd3(0x1ef)]))throw CliErrors[_0x426fd3(0x20a)](_0x426fd3(0x179));return _0x36c48e['sql']['query']({'appCode':_0x179ac9,'currentPage':0x1,'pageSize':0x1,'sqlCode':_0x3e929b});}),_0x506572=_0x3fd573&&typeof _0x3fd573===_0x1b9eea(0x17b)&&_0x1b9eea(0x173)in _0x3fd573?_0x3fd573[_0x1b9eea(0x173)]?.[0x0]:_0x3fd573&&typeof _0x3fd573===_0x1b9eea(0x17b)&&_0x1b9eea(0x17e)in _0x3fd573?_0x3fd573:undefined;if(!_0x506572)throw CliErrors[_0x1b9eea(0x20a)]('SQL\x20query\x20not\x20found:\x20'+_0x3e929b);return _0x506572;}export async function listApprovalTodo(_0x266d4c,_0x447543=0x1,_0x6b83ad=0x14){const _0x45d62e=a108_0x104d,_0x17195d=await sdkRequest(_0x266d4c,_0xf11c4a=>_0xf11c4a[_0x45d62e(0x1b9)][_0x45d62e(0x203)]({'currentPage':_0x447543,'pageSize':_0x6b83ad}));if(!_0x17195d||typeof _0x17195d!==_0x45d62e(0x17b)||!Array[_0x45d62e(0x15f)](_0x17195d[_0x45d62e(0x1c2)]))throw CliErrors[_0x45d62e(0x1a2)](_0x45d62e(0x1c0));return _0x17195d;}export async function getApprovalTaskDetail(_0x466be4,_0x104296){const _0x813087=a108_0x104d,_0x1105c4=await sdkRequest(_0x104296,_0x3c011a=>_0x3c011a['approval'][_0x813087(0x141)](_0x466be4));if(!_0x1105c4||typeof _0x1105c4!==_0x813087(0x17b)||Array[_0x813087(0x15f)](_0x1105c4))throw CliErrors['apiError'](_0x813087(0x18d));return _0x1105c4;}export async function approveApprovalTask(_0x42c082){const _0x3dae43=a108_0x104d;return await sdkRequest(_0x42c082[_0x3dae43(0x1b7)],_0x7f1a31=>_0x7f1a31['approval'][_0x3dae43(0x1f2)](_0x42c082)),null;}export async function transferApprovalTask(_0x27b3e2){const _0x29078d=a108_0x104d;return await sdkRequest(_0x27b3e2[_0x29078d(0x1b7)],_0x546724=>_0x546724[_0x29078d(0x1b9)]['transfer'](_0x27b3e2)),null;}function isRemoteAppItem(_0xc97787){const _0x46c8a8=a108_0x104d;return!!_0xc97787&&typeof _0xc97787===_0x46c8a8(0x17b)&&typeof _0xc97787[_0x46c8a8(0x1b7)]===_0x46c8a8(0x186)&&typeof _0xc97787['appName']===_0x46c8a8(0x186);}function extractRemoteAppItems(_0x54e90e){const _0x5c9b54=a108_0x104d;if(Array['isArray'](_0x54e90e))return _0x54e90e['filter'](isRemoteAppItem);if(!_0x54e90e||typeof _0x54e90e!==_0x5c9b54(0x17b))throw CliErrors['apiError'](_0x5c9b54(0x1c6));const _0x3619b4=_0x54e90e;if(Array[_0x5c9b54(0x15f)](_0x3619b4[_0x5c9b54(0x173)]))return _0x3619b4[_0x5c9b54(0x173)][_0x5c9b54(0x18c)](isRemoteAppItem);if(_0x3619b4[_0x5c9b54(0x164)]&&typeof _0x3619b4[_0x5c9b54(0x164)]===_0x5c9b54(0x17b)){const _0x36f582=_0x3619b4[_0x5c9b54(0x164)];if(Array[_0x5c9b54(0x15f)](_0x36f582[_0x5c9b54(0x173)]))return _0x36f582[_0x5c9b54(0x173)]['filter'](isRemoteAppItem);}throw CliErrors[_0x5c9b54(0x1a2)](_0x5c9b54(0x125));}export async function getMyApps(){const _0x4a2373=a108_0x104d;return extractRemoteAppItems(await identitySdkRequest(_0x2ea09c=>_0x2ea09c[_0x4a2373(0x1ab)]()));}export async function getLoginUserInfo(){const _0x53de57=a108_0x104d,_0x87b83b=await identitySdkRequest(_0x93299f=>_0x93299f['loginUserInfo']());if(!_0x87b83b||typeof _0x87b83b!==_0x53de57(0x17b)||Array['isArray'](_0x87b83b))throw CliErrors[_0x53de57(0x1a2)](_0x53de57(0x1e0));return _0x87b83b;}export const USER_ACCOUNT_BIND_PATH=a108_0x2f2f95(0x152);export async function bindExternalUserAccount(_0x1ea785,_0x1f8704){const _0x538ef7=a108_0x2f2f95;return identitySdkRequest(_0x115475=>_0x115475[_0x538ef7(0x162)]({'provider':_0x1ea785,'accountId':_0x1f8704}));}function runtimeSchedulePath(_0x2ca00a,_0x3a1b9c=''){const _0x5b1a90=a108_0x2f2f95;return _0x5b1a90(0x1ba)+encodeURIComponent(_0x2ca00a)+_0x5b1a90(0x1f9)+_0x3a1b9c;}export async function validateRuntimeSchedule(_0x348072,_0x197e1f){const _0x26a80f=a108_0x2f2f95,_0x196178=await apiRequest(runtimeSchedulePath(_0x348072,_0x26a80f(0x145)),{'domain':'harness','method':_0x26a80f(0x206),'body':_0x197e1f});return _0x196178[_0x26a80f(0x164)];}export async function createRuntimeSchedule(_0x4f44d6,_0x4d3237){const _0x11d0b5=a108_0x2f2f95,_0x2c38f9=await apiRequest(runtimeSchedulePath(_0x4f44d6),{'domain':_0x11d0b5(0x1e5),'method':_0x11d0b5(0x206),'body':_0x4d3237});return _0x2c38f9[_0x11d0b5(0x164)];}export async function listRuntimeSchedules(_0x162b70,_0x495e59){const _0x2c388f=a108_0x2f2f95,_0x737cd3=new URLSearchParams();_0x737cd3[_0x2c388f(0x14b)](_0x2c388f(0x12d),_0x495e59['kind']);if(_0x495e59['limit']!==undefined)_0x737cd3[_0x2c388f(0x14b)](_0x2c388f(0x13d),String(_0x495e59[_0x2c388f(0x13d)]));if(_0x495e59[_0x2c388f(0x183)])_0x737cd3[_0x2c388f(0x14b)](_0x2c388f(0x183),_0x495e59[_0x2c388f(0x183)]);const _0x18863e=_0x737cd3['size']>0x0?'?'+_0x737cd3['toString']():'',_0xc169d4=await apiRequest(''+runtimeSchedulePath(_0x162b70)+_0x18863e,{'domain':'harness'});return _0xc169d4[_0x2c388f(0x164)];}export async function getRuntimeSchedule(_0xf3017c,_0x2b71ca){const _0x5395b5=a108_0x2f2f95,_0x290ea3=await apiRequest(runtimeSchedulePath(_0xf3017c,'/'+encodeURIComponent(_0x2b71ca)),{'domain':_0x5395b5(0x1e5)});return _0x290ea3[_0x5395b5(0x164)];}export async function deleteRuntimeSchedule(_0x3e5d42,_0x4d516d){const _0x2597dd=a108_0x2f2f95,_0x398368=await apiRequest(runtimeSchedulePath(_0x3e5d42,'/'+encodeURIComponent(_0x4d516d)),{'domain':'harness','method':_0x2597dd(0x1eb)});return _0x398368[_0x2597dd(0x164)];}export async function runRuntimeSchedule(_0x49041d,_0x3044a1){const _0xcaaa59=a108_0x2f2f95,_0x825d1b=await apiRequest(runtimeSchedulePath(_0x49041d,'/'+encodeURIComponent(_0x3044a1)+_0xcaaa59(0x1d0)),{'domain':_0xcaaa59(0x1e5),'method':'POST'});return _0x825d1b['data'];}export async function listDatasets(_0x15d95e,_0xacb6c1){const _0x31310d=a108_0x2f2f95,_0x339d20=await sdkRequest(_0x15d95e,_0x573fb9=>_0x573fb9[_0x31310d(0x178)][_0x31310d(0x12f)]({..._0xacb6c1?.[_0x31310d(0x1f8)]&&{'code':_0xacb6c1[_0x31310d(0x1f8)]},..._0xacb6c1?.[_0x31310d(0x1ce)]&&{'name':_0xacb6c1[_0x31310d(0x1ce)]},..._0xacb6c1?.[_0x31310d(0x1a8)]&&{'tableName':_0xacb6c1[_0x31310d(0x1a8)]}}));return extractList(_0x339d20);}export async function getDatasetDetail(_0x3b2428){const _0x342338=a108_0x2f2f95;return sdkRequest(undefined,_0x53f6ca=>_0x53f6ca[_0x342338(0x178)][_0x342338(0x1dd)]({'code':_0x3b2428}));}function importSdkRequest(_0x5a59d5,_0x5705ac,_0x7a7942){return sdkRequest(_0x5a59d5,_0x510713=>{const _0x412c53=a108_0x104d,_0x4ba47b=_0x510713[_0x412c53(0x142)](_0x412c53(0x127)+_0x5705ac);if(!(_0x4ba47b instanceof ClientAkModel))throw CliErrors[_0x412c53(0x20a)]('Dataset\x20import\x20requires\x20Client\x20AK.');return _0x7a7942(_0x4ba47b);});}export async function getDatasetImportContract(_0xb8e11,_0x31862c){const _0x317f7d=a108_0x2f2f95;return importSdkRequest(_0xb8e11,_0x31862c,_0x32af8d=>_0x32af8d[_0x317f7d(0x12e)]());}export async function createDatasetImportBatch(_0x461df0,_0x498098,_0x3c514b){const _0x22be46=a108_0x2f2f95;return importSdkRequest(_0x461df0,_0x498098,_0x3c2bdd=>_0x3c2bdd[_0x22be46(0x12b)](_0x3c514b));}export async function readDatasetImportRows(_0x5930fe,_0x4a8a72,_0x9a8b30){const _0x405492=a108_0x2f2f95,_0x29b1d2=await importSdkRequest(_0x5930fe,_0x4a8a72,_0x47bc5a=>_0x47bc5a['importReadback']({'ids':_0x9a8b30}));if(!_0x29b1d2||!Array[_0x405492(0x15f)](_0x29b1d2[_0x405492(0x1e2)]))throw CliErrors['apiError'](_0x405492(0x13f));return _0x29b1d2[_0x405492(0x1e2)];}export async function readDatasetImportTaskRows(_0x28eb58,_0x26a84c,_0x1cf30e){const _0x5b2805=a108_0x2f2f95,_0x4d6a31=await importSdkRequest(_0x28eb58,_0x26a84c,_0x18c090=>_0x18c090[_0x5b2805(0x1b1)]({'taskId':_0x1cf30e}));if(!_0x4d6a31||!Array['isArray'](_0x4d6a31[_0x5b2805(0x1e2)]))throw CliErrors[_0x5b2805(0x1a2)](_0x5b2805(0x1c3));return _0x4d6a31[_0x5b2805(0x1e2)];}export async function uploadDatasetImportImage(_0x41128e,_0x2fb237,_0x576e5c,_0x539d3f){const _0x228516=a108_0x2f2f95;return importSdkRequest(_0x41128e,_0x2fb237,_0x21d92e=>_0x21d92e[_0x228516(0x1d2)]({'importId':_0x576e5c,'contentHash':_0x539d3f[_0x228516(0x1e3)],'file':new Blob([new Uint8Array(_0x539d3f[_0x228516(0x1b6)])],{'type':_0x539d3f[_0x228516(0x17d)]}),'fileName':_0x228516(0x19d)}));}export async function readDatasetImportImage(_0x4e5b2c,_0x2f2318,_0x2d078b,_0x32346d){const _0x2c8aad=a108_0x2f2f95;return importSdkRequest(_0x4e5b2c,_0x2f2318,_0x1708fa=>_0x1708fa[_0x2c8aad(0x130)]({'importId':_0x2d078b,'contentHash':_0x32346d[_0x2c8aad(0x1e3)],'type':_0x32346d[_0x2c8aad(0x17d)],'size':_0x32346d[_0x2c8aad(0x155)]}));}export async function getDatasetSdkUsageDoc(_0x3d8ae5,_0x5abb7c){const _0x4faaf2=a108_0x2f2f95,_0x74f3ee=await toolboxRequest(_0x4faaf2(0x123),{'datasetCode':_0x3d8ae5,'appCode':_0x5abb7c});return typeof _0x74f3ee?.[_0x4faaf2(0x19c)]===_0x4faaf2(0x186)?_0x74f3ee[_0x4faaf2(0x19c)]:'';}export async function uploadRuntimeFile(_0x395c49,_0x3c11c2){const _0x1d1a6f=a108_0x2f2f95,_0x1cf6a3=await readFile(_0x3c11c2);return sdkRequest(_0x395c49,_0x708e74=>_0x708e74['services']['file'][_0x1d1a6f(0x1b4)]({'file':new Blob([new Uint8Array(_0x1cf6a3)]),'fileName':basename(_0x3c11c2)}));}export async function queryRuntimeFileUrl(_0x452806,_0x19d53c={}){const _0x116763=a108_0x2f2f95;return sdkRequest(undefined,_0x2b7503=>_0x2b7503[_0x116763(0x1cd)][_0x116763(0x1d9)]['queryUrl']({'filePath':_0x452806,..._0x19d53c}));}export async function recognizeRuntimeOcr(_0x58ddf8,_0x830b92){const _0x2d5857=a108_0x2f2f95;return sdkRequest(_0x58ddf8,_0x42bda5=>_0x42bda5['services'][_0x2d5857(0x18b)]['recognize'](_0x830b92));}export async function getRuntimeAppConfigByKey(_0x4c6dbb,_0x3786a5){const _0x2a49e4=a108_0x2f2f95,_0x556088=await sdkRequest(_0x4c6dbb,_0x2e96dc=>_0x2e96dc[_0x2a49e4(0x192)][_0x2a49e4(0x129)](_0x3786a5));if(typeof _0x556088!=='string')throw CliErrors[_0x2a49e4(0x20a)](_0x2a49e4(0x143)+_0x3786a5);return _0x556088;}export async function listNotificationChannelConfigs(_0x274de5,_0x5084c0){const _0x2499a6=a108_0x2f2f95,_0xc09b39=await sdkRequest(_0x274de5,_0x79885a=>_0x79885a[_0x2499a6(0x192)][_0x2499a6(0x1fd)](_0x5084c0));if(!Array[_0x2499a6(0x15f)](_0xc09b39))throw CliErrors['apiError'](_0x2499a6(0x205),_0x2499a6(0x151));return _0xc09b39;}export async function listRuntimeArtifacts(_0xf87735,_0x23c512){const _0x82bd5=a108_0x2f2f95,_0x509489=await sdkRequest(_0xf87735,_0x23ab52=>_0x23ab52['artifact'][_0x82bd5(0x12f)](_0x23c512));return Array[_0x82bd5(0x15f)](_0x509489)?_0x509489:[];}export async function getRuntimeArtifact(_0x25246f,_0x43a44d){const _0x29c1b0=a108_0x2f2f95,_0x118ef9=await sdkRequest(_0x43a44d,_0xf85486=>_0xf85486[_0x29c1b0(0x1bf)]['get'](_0x25246f));if(!_0x118ef9)throw CliErrors['validation'](_0x29c1b0(0x1f3)+_0x25246f);return _0x118ef9;}export async function createRuntimeArtifact(_0x32603a,_0x1a7236){const _0x3f4651=a108_0x2f2f95;return sdkRequest(_0x32603a,_0x1e73da=>_0x1e73da[_0x3f4651(0x1bf)][_0x3f4651(0x132)](_0x1a7236));}export async function updateRuntimeArtifact(_0x243cd7,_0x2488df,_0x593939){const _0x14e588=a108_0x2f2f95;return sdkRequest(_0x2488df,_0xba614b=>_0xba614b[_0x14e588(0x1bf)][_0x14e588(0x1e9)](_0x243cd7,_0x593939));}export async function listPersonalBffs(_0x1cb425){const _0x33de08=a108_0x2f2f95,_0x30456a=await sdkRequest(_0x1cb425,_0x1f866c=>_0x1f866c[_0x33de08(0x208)][_0x33de08(0x200)]['list']());return Array[_0x33de08(0x15f)](_0x30456a)?_0x30456a:[];}function a108_0x104d(_0x345d72,_0x4fe8e8){_0x345d72=_0x345d72-0x122;const _0x36895f=a108_0x3689();let _0x104db0=_0x36895f[_0x345d72];return _0x104db0;}export async function getPersonalBff(_0x45021b,_0x2004ca){const _0x251496=a108_0x2f2f95,_0x6bdd7a=await sdkRequest(_0x2004ca,_0x50d2d9=>_0x50d2d9['personal'][_0x251496(0x200)][_0x251496(0x1de)](_0x45021b));if(!_0x6bdd7a)throw CliErrors['validation'](_0x251496(0x150)+_0x45021b);return _0x6bdd7a;}export async function createPersonalBff(_0x1614dc,_0x438e1b){const _0x286463=a108_0x2f2f95;return sdkRequest(_0x1614dc,_0xd64cec=>_0xd64cec[_0x286463(0x208)][_0x286463(0x200)][_0x286463(0x132)](_0x438e1b));}export async function updatePersonalBff(_0xcd7f8d,_0xe9c062,_0x4bd845){const _0x1e5a2f=a108_0x2f2f95;return sdkRequest(_0xe9c062,_0x3becc2=>_0x3becc2[_0x1e5a2f(0x208)][_0x1e5a2f(0x200)]['update'](_0xcd7f8d,_0x4bd845));}export async function executePersonalBff(_0x23c33b,_0x293430,_0xd3e9b5){const _0x163e34=a108_0x2f2f95;return sdkRequest(_0x293430,_0x3147fc=>_0x3147fc['personal'][_0x163e34(0x200)][_0x163e34(0x154)]({'scriptId':_0x23c33b,'params':_0xd3e9b5}));}export async function listPersonalKnowledgeBaseItems(_0x67a150,_0x5d5b56){return listPersonalKnowledge({'appCode':_0x67a150,'accessKey':_activeAK,'signal':_0x5d5b56});}export async function getPersonalKnowledgeBaseItem(_0x3b90a0,_0x48e6e0,_0x4403e2){return getPersonalKnowledge({'appCode':_0x48e6e0,'accessKey':_activeAK,'signal':_0x4403e2},_0x3b90a0);}export async function createPersonalKnowledgeBaseItem(_0x2675d0,_0x100796,_0x38f388){return savePersonalKnowledge({'appCode':_0x2675d0,'accessKey':_activeAK,'signal':_0x38f388},_0x100796);}export async function updatePersonalKnowledgeBaseItem(_0x1e7f6e,_0x26af91,_0x2e86ea,_0x3aad0f){return savePersonalKnowledge({'appCode':_0x26af91,'accessKey':_activeAK,'signal':_0x3aad0f},_0x2e86ea,_0x1e7f6e);}export async function getRuntimeSkillByCode(_0x32a536,_0x598935){const _0x574831=a108_0x2f2f95,_0x2e8996=await skillHubJsonRequest(_0x574831(0x172)+encodeURIComponent(_0x32a536)+'/'+encodeURIComponent(_0x598935),{'allowNotFound':!![]});return _0x2e8996?skillHubRuntimeDetailToRuntimeSkill(_0x2e8996):undefined;}export async function listRuntimeSkills(_0x20c6cc){const _0x144dac=a108_0x2f2f95,_0x50bc18=await skillHubJsonRequest(_0x144dac(0x1cc)+encodeURIComponent(_0x20c6cc['appCode'])+_0x144dac(0x1f4),{'query':{'page':0x0,'size':0xc8}});return normalizeSkillHubRuntimeListResponse(_0x20c6cc[_0x144dac(0x1b7)],_0x50bc18,_0x20c6cc['scope']??'all',_0x20c6cc[_0x144dac(0x1f8)],_0x20c6cc[_0x144dac(0x190)]);}function a108_0x3689(){const _0x16e9e7=['isArray','/diagram','msg','bindAccount','applyUserList','data','found','Toolbox\x20API\x20error:\x20','AbortError','updateRoleUserList','isJson','NAMESPACE_ONLY','2190222jARAdF','trim','retryAfter','getPagePermit','Check\x20your\x20credentials\x20and\x20try\x20again.','/api/node-toolbox/','4141070mzVzNx','/api/v1/skills/','tableData','summary','getRoleList','gmtModified','errorCode','datasetMeta','SQL\x20metadata\x20requires\x20Client\x20AK.','skill','object','skillCode','type','sqlCode','packageBase64','1174479azcgPn','slug','description','cursor','Invalid\x20runtime\x20role\x20members\x20response:\x20roleList[','382667HTUSUq','string','functions','Backend\x20Function\x20not\x20found\x20or\x20inaccessible:\x20appCode=','company','min','ocr','filter','Invalid\x20approval\x20task\x20detail\x20response.','deleteRole','Invalid\x20Skill\x20diagram\x20response:\x20absent\x20diagram\x20must\x20have\x20a\x20null\x20diagramRevision.','installableOnly','application/zip','app','query','resolvedVersion','diagramValidated','ownerPreviewVersion','errors','test','8cUJUQA','base64','].applyUserList','markdown','image','text','headers','PUT','sourceFingerprint','apiError','errorMsg','getResourceMenuList','number','publishedVersion','Configure\x20accessKey\x20in\x20','tableName','entries','CUSTOM','myApps','visibility','742970BjBHri','Backend\x20Function\x20metadata\x20requires\x20Client\x20AK.','].userList','GET','importReadback','warnings','isSafeInteger','upload','SkillHub\x20returned\x20non-JSON\x20response\x20(HTTP\x20','bytes','appCode','getEndpoint','approval','/api/harness/apps/','map','tags','application/octet-stream','getRoleUserList','artifact','Invalid\x20approval\x20todo\x20response:\x20missing\x20records.','diagram','records','Invalid\x20import\x20task\x20readback\x20response.','authRequired','invokeSource','Invalid\x20app\x20list\x20response:\x20expected\x20object\x20or\x20array.','diagramBound','version','getDatasetPermitList','Request\x20timeout:\x20','saveMenuPermits','/api/runtime/v1/namespaces/','services','name','isInteger','/run','confirmWarnings','importImage','Runtime\x20SDK\x20request\x20failed.','/publish','max','28852548VGvJly','signal','toString','file','Toolbox\x20returned\x20non-JSON\x20response\x20(HTTP\x20','API\x20error\x20code:\x20','/api/cli/v1/skills/','getDrivenData','get','savePagePermit','Invalid\x20login\x20user\x20info\x20response:\x20expected\x20object.','all','items','contentHash','Invalid\x20Skill\x20diagram\x20response:\x20missing\x20canonical\x20sourceFingerprint.','harness','namespace','SkillHub\x20must\x20return\x20the\x20exact\x20SkillVersion\x20fingerprint\x20even\x20when\x20found=false.','SkillHub\x20error\x20code:\x20','update','scope','DELETE','Deploy\x20a\x20SkillHub\x20version\x20that\x20returns\x20diagramValidated/diagramBound\x20before\x20publishing\x20with\x20this\x20CLI.','message','permitList','sql','Toolbox\x20error\x20code:\x20','status','approve','Artifact\x20not\x20found:\x20id=','/skills','/publish/validate','displayName','API\x20error:\x20','code','/schedules','userId','Download\x20failed:\x20','replace','listNotificationChannels','Toolbox\x20API\x20error','permit','bff','PRIVATE','find','listTodo','Invalid\x20Skill\x20diagram\x20response:\x20missing\x20found\x20state.','Invalid\x20notification\x20config\x20list\x20response.','POST','getMenuPermitList','personal','skillName','validation','SkillHub\x20API\x20error:\x20','api-doc-generator','application/json','Invalid\x20app\x20list\x20response:\x20missing\x20data.tableData.','undefined','dataset_','5502879vYTIZg','getConfigByKey','function','importBatch','from','kind','importContract','list','importImageReadback','example','create','currentPage','stringify','\x20must\x20be\x20an\x20array.','success','7gcMPRa','abort','createRole','valid','userList','newConfigFileName','limit','toLowerCase','Invalid\x20import\x20readback\x20response.','effective','getTask','getModel','Invalid\x20app\x20config\x20value:\x20key=','2BbZEqR','/validate','values',']\x20must\x20be\x20an\x20object.','154qiCCKZ','roleList[','getDatasetPermitMeta','set','functionName','searchParams','/download',',\x20name=','Personal\x20Backend\x20Function\x20not\x20found:\x20id=','Expected\x20the\x20server\x20data\x20field\x20to\x20be\x20an\x20array.','/client/user-accounts/bind','roleName','execute','size','/versions/','4oaYnov','PUBLISHED','response','].userId\x20is\x20invalid.','Invalid\x20Skill\x20diagram\x20response:\x20found\x20diagram\x20has\x20no\x20positive\x20diagramRevision.','json','error','boolean'];a108_0x3689=function(){return _0x16e9e7;};return a108_0x3689();}export async function listPersonalRuntimeSkills(_0x2ae937){const _0x260607=a108_0x2f2f95;return(await listRuntimeSkills({'appCode':_0x2ae937,'scope':'personal'}))[_0x260607(0x208)];}export async function listCompanyRuntimeSkills(_0x11f788){const _0x489e34=a108_0x2f2f95;return(await listRuntimeSkills({'appCode':_0x11f788,'scope':'company'}))[_0x489e34(0x189)];}export async function listVisibleRuntimeSkills(_0x120e49){const _0x2a85d8=a108_0x2f2f95;return(await listRuntimeSkills({'appCode':_0x120e49,'scope':_0x2a85d8(0x1e1)}))[_0x2a85d8(0x140)];}export async function createPersonalRuntimeSkill(_0x50b940,_0x1d8b07,_0x2ba4d2={}){const _0x91f176=a108_0x2f2f95;return publishRuntimeSkill(_0x50b940,_0x1d8b07,{'visibility':_0x91f176(0x201),'confirmWarnings':_0x2ba4d2[_0x91f176(0x1d1)]});}export async function updatePersonalRuntimeSkill(_0x2340f3,_0x5cbb41,_0x4249b9,_0x202c5c={}){const _0x4c6a6f=a108_0x2f2f95;return publishRuntimeSkill(_0x5cbb41,{..._0x4249b9,'skillCode':_0x4249b9[_0x4c6a6f(0x17c)]??_0x2340f3},{'visibility':_0x4c6a6f(0x201),'confirmWarnings':_0x202c5c[_0x4c6a6f(0x1d1)]});}export async function publishCompanyRuntimeSkill(_0x3a5f63,_0x554bdb,_0x4b52f6={}){const _0x4625a9=a108_0x2f2f95;return publishRuntimeSkill(_0x3a5f63,_0x554bdb,{'visibility':_0x4625a9(0x16a),'confirmWarnings':_0x4b52f6['confirmWarnings']});}export async function validateRuntimeSkillPublish(_0x3aeab6,_0x70c002,_0xfcc648){const _0x114791=a108_0x2f2f95,_0x2a3392=buildRuntimeSkillPublishForm(_0x70c002,_0xfcc648[_0x114791(0x1ac)]),_0x45be78=await skillHubJsonRequest('/api/cli/v1/skills/'+encodeURIComponent(_0x3aeab6)+_0x114791(0x1f5),{'method':_0x114791(0x206),'body':_0x2a3392});return assertJointDiagramAcknowledged(_0x70c002['diagram'],_0x45be78[_0x114791(0x195)],_0x114791(0x20a)),{'valid':_0x45be78[_0x114791(0x13a)]===!![],'errors':Array[_0x114791(0x15f)](_0x45be78[_0x114791(0x197)])?_0x45be78[_0x114791(0x197)]:[],'warnings':Array[_0x114791(0x15f)](_0x45be78[_0x114791(0x1b2)])?_0x45be78[_0x114791(0x1b2)]:[],'resolvedSlug':_0x45be78['resolvedSlug'],'resolvedVersion':_0x45be78[_0x114791(0x194)],'diagramValidated':_0x45be78[_0x114791(0x195)]===!![]};}export async function validateRuntimeSkillVersionDiagram(_0x42b258,_0x396a3a,_0x30ff0a,_0x3c96ab,_0x3a43ab){const _0x1cc122=a108_0x2f2f95;return skillHubJsonRequest(runtimeSkillVersionDiagramPath(_0x42b258,_0x396a3a,_0x30ff0a,'/validate'),{'method':_0x1cc122(0x206),'query':{'scope':_0x3c96ab},'headers':{'Content-Type':_0x1cc122(0x124)},'body':JSON[_0x1cc122(0x134)](_0x3a43ab)});}export async function putRuntimeSkillVersionDiagram(_0x57eb95,_0x3e2627,_0x4ca5a0,_0x5eb078,_0x366d1f){const _0x17d62a=a108_0x2f2f95;return skillHubJsonRequest(runtimeSkillVersionDiagramPath(_0x57eb95,_0x3e2627,_0x4ca5a0),{'method':_0x17d62a(0x1a0),'query':{'scope':_0x5eb078},'headers':{'Content-Type':_0x17d62a(0x124)},'body':JSON[_0x17d62a(0x134)](_0x366d1f)});}export async function getRuntimeSkillVersionDiagram(_0x6772f1,_0x428fdf,_0x851601,_0xc2e576){const _0x4125a4=a108_0x2f2f95,_0x481f3a=await skillHubJsonRequest(runtimeSkillVersionDiagramPath(_0x6772f1,_0x428fdf,_0x851601),{'query':{'scope':_0xc2e576}});if(typeof _0x481f3a[_0x4125a4(0x165)]!=='boolean')throw CliErrors[_0x4125a4(0x1a2)](_0x4125a4(0x204));const _0x168c94=_0x481f3a[_0x4125a4(0x1a1)];if(typeof _0x168c94!==_0x4125a4(0x186)||!/^sha256:[0-9a-f]{64}$/[_0x4125a4(0x198)](_0x168c94))throw CliErrors[_0x4125a4(0x1a2)](_0x4125a4(0x1e4),_0x4125a4(0x1e7));const _0x1321a9=_0x481f3a['diagramRevision'];if(_0x481f3a[_0x4125a4(0x165)]&&(!Number[_0x4125a4(0x1cf)](_0x1321a9)||Number(_0x1321a9)<0x1))throw CliErrors[_0x4125a4(0x1a2)](_0x4125a4(0x15b));if(!_0x481f3a[_0x4125a4(0x165)]&&_0x1321a9!==undefined&&_0x1321a9!==null)throw CliErrors[_0x4125a4(0x1a2)](_0x4125a4(0x18f));const _0x29f1da=_0x481f3a[_0x4125a4(0x165)]?Number(_0x1321a9):null;return{..._0x481f3a,'sourceFingerprint':_0x168c94,'diagramRevision':_0x29f1da,'expectedDiagramRevision':_0x29f1da??0x0};}export async function downloadRuntimeSkillPackage(_0x3872a,_0x2449c4,_0x24367b,_0x1d8448){const _0x21e81b=a108_0x2f2f95;void _0x3872a;const _0x2faa17=_0x1d8448?_0x21e81b(0x1dc)+encodeURIComponent(_0x24367b)+'/'+encodeURIComponent(_0x2449c4)+_0x21e81b(0x156)+encodeURIComponent(_0x1d8448)+_0x21e81b(0x14e):_0x21e81b(0x1dc)+encodeURIComponent(_0x24367b)+'/'+encodeURIComponent(_0x2449c4)+_0x21e81b(0x14e);return skillHubBinaryRequest(_0x2faa17);}async function publishRuntimeSkill(_0x102ead,_0x3eefbc,_0x25432e){const _0x7f956d=a108_0x2f2f95,_0xac908a=buildRuntimeSkillPublishForm(_0x3eefbc,_0x25432e['visibility']),_0x507c13=await skillHubJsonRequest(_0x7f956d(0x1dc)+encodeURIComponent(_0x102ead)+_0x7f956d(0x1d4),{'method':_0x7f956d(0x206),'query':{'confirmWarnings':_0x25432e[_0x7f956d(0x1d1)]===!![]?!![]:undefined},'body':_0xac908a});return assertJointDiagramAcknowledged(_0x3eefbc[_0x7f956d(0x1c1)],_0x507c13[_0x7f956d(0x1c7)],'publish'),{'appCode':_0x507c13[_0x7f956d(0x1e6)]??_0x102ead,'skillCode':_0x507c13[_0x7f956d(0x181)]??_0x3eefbc[_0x7f956d(0x17c)]??'','skillName':_0x3eefbc['skillName']??_0x507c13['slug']??_0x3eefbc[_0x7f956d(0x17c)],'description':_0x3eefbc[_0x7f956d(0x182)],'scope':skillHubVisibilityToScope(_0x507c13['visibility']??_0x25432e[_0x7f956d(0x1ac)])??_0x7f956d(0x208),'version':_0x507c13[_0x7f956d(0x1c8)]??_0x3eefbc['version'],'tags':_0x3eefbc[_0x7f956d(0x1bc)],'content':_0x3eefbc['content'],'diagramBound':_0x507c13[_0x7f956d(0x1c7)]===!![]};}function assertJointDiagramAcknowledged(_0x434b1a,_0x23ac5c,_0x21c019){const _0x1e5580=a108_0x2f2f95;if(!_0x434b1a||_0x23ac5c===!![])return;throw CliErrors[_0x1e5580(0x1a2)]('SkillHub\x20does\x20not\x20support\x20atomic\x20Skill\x20diagram\x20'+_0x21c019+'.',_0x1e5580(0x1ec));}function buildRuntimeSkillPublishForm(_0x4a4fb1,_0x2868e8){const _0x21ffa9=a108_0x2f2f95,_0x25e85f=new FormData();return _0x25e85f[_0x21ffa9(0x14b)](_0x21ffa9(0x1d9),runtimeSkillPackageFile(_0x4a4fb1)),_0x4a4fb1[_0x21ffa9(0x209)]?.[_0x21ffa9(0x16c)]()&&_0x25e85f[_0x21ffa9(0x14b)](_0x21ffa9(0x1f6),_0x4a4fb1[_0x21ffa9(0x209)]['trim']()),_0x25e85f[_0x21ffa9(0x14b)](_0x21ffa9(0x1ac),_0x2868e8),_0x4a4fb1[_0x21ffa9(0x1c1)]&&_0x25e85f['set']('diagram',new Blob([JSON[_0x21ffa9(0x134)](_0x4a4fb1[_0x21ffa9(0x1c1)])],{'type':_0x21ffa9(0x124)})),_0x25e85f;}function runtimeSkillVersionDiagramPath(_0x13e051,_0x2f84e1,_0xadb5b8,_0x4f5eb7=''){const _0x7d4282=a108_0x2f2f95;return _0x7d4282(0x1dc)+encodeURIComponent(_0x13e051)+'/'+encodeURIComponent(_0x2f84e1)+_0x7d4282(0x156)+encodeURIComponent(_0xadb5b8)+_0x7d4282(0x160)+_0x4f5eb7;}function runtimeSkillPackageFile(_0x39b625){const _0x3e839b=a108_0x2f2f95;if(!_0x39b625[_0x3e839b(0x17f)])throw CliErrors['validation']('Missing\x20Skill\x20package\x20payload.');const _0x50e285=Buffer[_0x3e839b(0x12c)](_0x39b625[_0x3e839b(0x17f)],_0x3e839b(0x19a)),_0x3790e8=new Blob([_0x50e285],{'type':_0x3e839b(0x191)}),_0x308f11=(_0x39b625['skillCode']||_0x3e839b(0x17a))+'.zip';if(typeof File!==_0x3e839b(0x126))return new File([_0x3790e8],_0x308f11,{'type':_0x3e839b(0x191)});return _0x3790e8;}function normalizeSkillHubRuntimeListResponse(_0x4ede49,_0x16bcdf,_0x3c142b,_0x1637e5,_0x373f1f=![]){const _0x1c7949=a108_0x2f2f95,_0x34734b=Array[_0x1c7949(0x15f)](_0x16bcdf)?_0x16bcdf:Array['isArray'](_0x16bcdf?.[_0x1c7949(0x1e2)])?_0x16bcdf[_0x1c7949(0x1e2)]:[],_0x375dd6=_0x1637e5?.['trim'](),_0x14d75d=_0x34734b['filter'](_0x102df2=>!_0x375dd6||_0x102df2[_0x1c7949(0x181)]===_0x375dd6)[_0x1c7949(0x18c)](_0x34e654=>!_0x373f1f||_0x34e654[_0x1c7949(0x1a6)]?.[_0x1c7949(0x1f1)]===_0x1c7949(0x158)&&Boolean(_0x34e654['publishedVersion']['version']?.[_0x1c7949(0x16c)]()))['map'](skillHubRuntimeItemToRuntimeSkill)[_0x1c7949(0x18c)](_0x4200c5=>Boolean(_0x4200c5)),_0xcc2455=_0x14d75d[_0x1c7949(0x18c)](_0x138b61=>_0x138b61['scope']===_0x1c7949(0x208)),_0xc25c88=_0x14d75d['filter'](_0x5d0694=>_0x5d0694['scope']==='company');return{'appCode':_0x4ede49,'personal':_0x3c142b===_0x1c7949(0x189)?[]:_0xcc2455,'company':_0x3c142b===_0x1c7949(0x208)?[]:_0xc25c88,'effective':buildEffectiveRuntimeSkills(_0xcc2455,_0xc25c88,_0x3c142b)};}function skillHubRuntimeItemToRuntimeSkill(_0x340a42){const _0x4e2722=a108_0x2f2f95,_0x39e5f6=_0x340a42[_0x4e2722(0x181)]?.['trim'](),_0x5eac70=skillHubVisibilityToScope(_0x340a42[_0x4e2722(0x1ac)]);if(!_0x39e5f6||!_0x5eac70)return undefined;return{'id':_0x340a42['id'],'appCode':_0x340a42[_0x4e2722(0x1e6)],'skillCode':_0x39e5f6,'skillName':_0x340a42[_0x4e2722(0x1f6)]??_0x39e5f6,'description':_0x340a42[_0x4e2722(0x174)],'example':_0x340a42['example'],'scope':_0x5eac70,'version':skillHubRuntimeItemVersion(_0x340a42),'status':_0x340a42['status']};}function skillHubRuntimeDetailToRuntimeSkill(_0x159a1a){const _0x46c8e4=a108_0x2f2f95,_0x319c21=_0x159a1a[_0x46c8e4(0x181)]?.[_0x46c8e4(0x16c)]();if(!_0x319c21)return undefined;return{'id':_0x159a1a['id'],'appCode':_0x159a1a[_0x46c8e4(0x1e6)],'skillCode':_0x319c21,'skillName':_0x159a1a[_0x46c8e4(0x1f6)]??_0x319c21,'description':_0x159a1a[_0x46c8e4(0x174)],'example':_0x159a1a[_0x46c8e4(0x131)],'scope':skillHubVisibilityToScope(_0x159a1a[_0x46c8e4(0x1ac)])??_0x159a1a[_0x46c8e4(0x1ac)]?.[_0x46c8e4(0x13e)](),'version':skillHubRuntimeItemVersion(_0x159a1a),'status':_0x159a1a[_0x46c8e4(0x1f1)]};}function skillHubVisibilityToScope(_0x35aecb){const _0x3c7957=a108_0x2f2f95;if(_0x35aecb==='PRIVATE')return _0x3c7957(0x208);if(_0x35aecb==='NAMESPACE_ONLY')return _0x3c7957(0x189);return undefined;}function skillHubRuntimeItemVersion(_0x4684bd){const _0x5207d4=a108_0x2f2f95;return _0x4684bd[_0x5207d4(0x1a6)]?.[_0x5207d4(0x1c8)]??_0x4684bd['headlineVersion']?.['version']??_0x4684bd[_0x5207d4(0x196)]?.['version'];}function buildEffectiveRuntimeSkills(_0x122efc,_0x58f794,_0x16978d){const _0x503390=a108_0x2f2f95;if(_0x16978d===_0x503390(0x208))return _0x122efc;if(_0x16978d===_0x503390(0x189))return _0x58f794;const _0x2f3f52=new Map();for(const _0x47829e of _0x58f794){_0x2f3f52[_0x503390(0x14b)](_0x47829e[_0x503390(0x17c)],_0x47829e);}for(const _0xf65d6c of _0x122efc){_0x2f3f52[_0x503390(0x14b)](_0xf65d6c[_0x503390(0x17c)],_0xf65d6c);}return Array[_0x503390(0x12c)](_0x2f3f52[_0x503390(0x146)]());}function normalizeRuntimeSkillListResponse(_0x1ed984,_0x3725b1){const _0x184ecc=a108_0x2f2f95;if(Array[_0x184ecc(0x15f)](_0x3725b1)){const _0x5be40b=_0x3725b1[_0x184ecc(0x18c)](_0x5e4376=>_0x5e4376[_0x184ecc(0x1ea)]===_0x184ecc(0x208)),_0x1255ce=_0x3725b1['filter'](_0x5bc930=>_0x5bc930[_0x184ecc(0x1ea)]===_0x184ecc(0x189));return{'appCode':_0x1ed984,'personal':_0x5be40b,'company':_0x1255ce,'effective':[..._0x1255ce,..._0x5be40b]};}return{'appCode':_0x3725b1?.['appCode']??_0x1ed984,'personal':Array[_0x184ecc(0x15f)](_0x3725b1?.[_0x184ecc(0x208)])?_0x3725b1[_0x184ecc(0x208)]:[],'company':Array[_0x184ecc(0x15f)](_0x3725b1?.[_0x184ecc(0x189)])?_0x3725b1[_0x184ecc(0x189)]:[],'effective':Array[_0x184ecc(0x15f)](_0x3725b1?.[_0x184ecc(0x140)])?_0x3725b1[_0x184ecc(0x140)]:[]};}function normalizeRuntimeRoleUserList(_0xe6b388,_0x536f60){const _0x5bbd53=a108_0x2f2f95;if(!Array[_0x5bbd53(0x15f)](_0xe6b388))throw CliErrors['apiError']('Invalid\x20runtime\x20role\x20members\x20response:\x20'+_0x536f60+_0x5bbd53(0x135));return _0xe6b388[_0x5bbd53(0x1bb)]((_0x1915f9,_0x20a790)=>{const _0x4f3f0a=_0x5bbd53;if(!_0x1915f9||typeof _0x1915f9!=='object'||Array[_0x4f3f0a(0x15f)](_0x1915f9))throw CliErrors[_0x4f3f0a(0x1a2)]('Invalid\x20runtime\x20role\x20members\x20response:\x20'+_0x536f60+'['+_0x20a790+_0x4f3f0a(0x147));const _0x599cac=_0x1915f9,_0x579f4b=normalizeRuntimeUserId(_0x599cac[_0x4f3f0a(0x1fa)]);if(_0x579f4b===undefined)throw CliErrors[_0x4f3f0a(0x1a2)]('Invalid\x20runtime\x20role\x20members\x20response:\x20'+_0x536f60+'['+_0x20a790+_0x4f3f0a(0x15a));return{..._0x599cac,'userId':_0x579f4b};});}function normalizeRuntimeRoleUsersResponse(_0x4ecaa5){const _0x54ee16=a108_0x2f2f95;return extractList(_0x4ecaa5)[_0x54ee16(0x1bb)]((_0x33f6ce,_0x59238b)=>{const _0x19328a=_0x54ee16;if(!_0x33f6ce||typeof _0x33f6ce!=='object'||Array['isArray'](_0x33f6ce))throw CliErrors['apiError'](_0x19328a(0x184)+_0x59238b+_0x19328a(0x147));const _0x4ac6f5=_0x33f6ce;return{..._0x4ac6f5,'userList':normalizeRuntimeRoleUserList(_0x4ac6f5[_0x19328a(0x13b)],_0x19328a(0x149)+_0x59238b+_0x19328a(0x1af)),..._0x4ac6f5[_0x19328a(0x163)]===undefined?{}:{'applyUserList':normalizeRuntimeRoleUserList(_0x4ac6f5[_0x19328a(0x163)],_0x19328a(0x149)+_0x59238b+_0x19328a(0x19b))}};});}export async function listRuntimeAppRoles(_0x3a07aa,_0x33081a={}){const _0x330caa=a108_0x2f2f95,_0x17b38d=_0x33081a[_0x330caa(0x133)]??0x1,_0x339972=Math[_0x330caa(0x18a)](Math[_0x330caa(0x1d5)](_0x33081a['pageSize']??0x64,0x1),0x64),_0x106301=await sdkRequest(_0x3a07aa,_0x6ff1ab=>_0x6ff1ab[_0x330caa(0x1ff)][_0x330caa(0x175)]({..._0x33081a[_0x330caa(0x153)]?{'roleName':_0x33081a[_0x330caa(0x153)]}:{},'currentPage':_0x17b38d,'pageSize':_0x339972}));return{'items':extractList(_0x106301),'paging':extractPaging(_0x106301)};}export async function createRuntimeAppRole(_0x405f14){const _0x5d01d6=a108_0x2f2f95;return sdkRequest(_0x405f14[_0x5d01d6(0x1b7)],_0x56d08b=>_0x56d08b[_0x5d01d6(0x1ff)][_0x5d01d6(0x139)]({'roleType':_0x5d01d6(0x1aa),..._0x405f14}));}export async function updateRuntimeAppRole(_0x5d2722){const _0x14c878=a108_0x2f2f95;return sdkRequest(_0x5d2722[_0x14c878(0x1b7)],_0x2765c4=>_0x2765c4['permit']['updateRole'](_0x5d2722));}export async function deleteRuntimeAppRole(_0x33e586){const _0x4b9b00=a108_0x2f2f95;return sdkRequest(undefined,_0x48e035=>_0x48e035[_0x4b9b00(0x1ff)][_0x4b9b00(0x18e)](_0x33e586));}export async function listRuntimeRoleUsers(_0x3a70dc){const _0x54b157=a108_0x2f2f95,_0x4845d2=await sdkRequest(_0x3a70dc,_0x5d6967=>_0x5d6967['permit'][_0x54b157(0x1be)]());return normalizeRuntimeRoleUsersResponse(_0x4845d2);}export async function updateRuntimeRoleUsers(_0x2dafd8,_0x3e26e1){const _0x4aa9fd=a108_0x2f2f95;return sdkRequest(_0x2dafd8,_0x17509a=>_0x17509a[_0x4aa9fd(0x1ff)][_0x4aa9fd(0x168)]({'roleList':_0x3e26e1}));}export async function listRuntimeAppUsers(_0x129c68){const _0x5a48c3=a108_0x2f2f95,_0x20c053=await sdkRequest(_0x129c68,_0x1b38f2=>_0x1b38f2[_0x5a48c3(0x1ff)]['queryAppUsers']());return extractList(_0x20c053);}export async function listRuntimePermitRoles(_0x1a7c34,_0xf5cad0={}){const _0x5c854d=await sdkRequest(_0x1a7c34,_0x3f1ceb=>_0x3f1ceb['permit']['getRolePermitList'](_0xf5cad0));return extractList(_0x5c854d);}export async function getRuntimePagePermit(_0x5f4e45){const _0x9c41f8=a108_0x2f2f95;return sdkRequest(undefined,_0x183b49=>_0x183b49[_0x9c41f8(0x1ff)][_0x9c41f8(0x16e)](_0x5f4e45));}export async function saveRuntimePagePermit(_0x39e85e){const _0x1a9b18=a108_0x2f2f95;return sdkRequest(_0x39e85e[_0x1a9b18(0x1b7)],_0x50812e=>_0x50812e[_0x1a9b18(0x1ff)][_0x1a9b18(0x1df)](_0x39e85e));}export async function getRuntimeRoleMenuResources(_0x38b2d2,_0x57d207){const _0x519017=a108_0x2f2f95,_0x4722ae=await sdkRequest(_0x38b2d2,_0x346aa7=>_0x346aa7[_0x519017(0x1ff)][_0x519017(0x1a4)]({'roleId':_0x57d207}));return extractList(_0x4722ae);}export async function listRuntimeMenuRolePermits(_0x479e64){const _0x3b7360=a108_0x2f2f95,_0x4b52b5=await sdkRequest(_0x479e64,_0x14cb2b=>_0x14cb2b['permit'][_0x3b7360(0x207)]());return Array[_0x3b7360(0x15f)](_0x4b52b5?.[_0x3b7360(0x1ee)])?_0x4b52b5[_0x3b7360(0x1ee)]:[];}export async function saveRuntimeMenuRolePermits(_0xf66ea0,_0x3888b5){const _0x7c2356=a108_0x2f2f95;return sdkRequest(_0xf66ea0,_0x5e4563=>_0x5e4563[_0x7c2356(0x1ff)][_0x7c2356(0x1cb)]({'permitList':_0x3888b5}));}export async function listRuntimeDatasetPermits(_0x5e1b34,_0x20cef2){const _0x1f1cf3=a108_0x2f2f95,_0x3c4910=await sdkRequest(_0x5e1b34,_0x4a6007=>_0x4a6007[_0x1f1cf3(0x1ff)][_0x1f1cf3(0x1c9)](_0x20cef2));return Array[_0x1f1cf3(0x15f)](_0x3c4910?.[_0x1f1cf3(0x1ee)])?_0x3c4910[_0x1f1cf3(0x1ee)]:[];}export async function listRuntimeDatasetRolePermits(_0x1d56be){const _0x1d51d0=a108_0x2f2f95,_0x2fa2fb=await sdkRequest(_0x1d56be,_0x1fe619=>_0x1fe619['permit'][_0x1d51d0(0x14a)]());return Array['isArray'](_0x2fa2fb?.[_0x1d51d0(0x1ee)])?_0x2fa2fb[_0x1d51d0(0x1ee)]:[];}export async function saveRuntimeDatasetRolePermits(_0x4f5922,_0x165d66){const _0x39cf0a=a108_0x2f2f95;return sdkRequest(_0x4f5922,_0x2c59b0=>_0x2c59b0[_0x39cf0a(0x1ff)]['saveDatasetPermits']({'permitList':_0x165d66}));}
1
+ const a108_0x1016fe=a108_0x45a2;(function(_0x65578b,_0x5edd95){const _0xf4c899=a108_0x45a2,_0x28443a=_0x65578b();while(!![]){try{const _0x1b0002=parseInt(_0xf4c899(0xce))/0x1*(parseInt(_0xf4c899(0x104))/0x2)+-parseInt(_0xf4c899(0x12c))/0x3+-parseInt(_0xf4c899(0x114))/0x4*(parseInt(_0xf4c899(0xfa))/0x5)+-parseInt(_0xf4c899(0x93))/0x6+parseInt(_0xf4c899(0xd7))/0x7+-parseInt(_0xf4c899(0x136))/0x8*(parseInt(_0xf4c899(0xdb))/0x9)+-parseInt(_0xf4c899(0xfe))/0xa*(-parseInt(_0xf4c899(0x111))/0xb);if(_0x1b0002===_0x5edd95)break;else _0x28443a['push'](_0x28443a['shift']());}catch(_0x5b71e0){_0x28443a['push'](_0x28443a['shift']());}}}(a108_0x3bf4,0x213bf));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,requireHarnessDomain}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(_0x52bea7){if(_activeAK!==(_0x52bea7||undefined))clearSdkClient();_activeAK=_0x52bea7||undefined;}export function clearActiveAK(){_activeAK=undefined,clearSdkClient();}async function sdkRequest(_0x587203,_0x3ceafd){const _0x25088b=a108_0x45a2;if(!_activeAK)throw CliErrors[_0x25088b(0x84)]('Configure\x20accessKey\x20in\x20'+PRODUCT_CONFIG[_0x25088b(0x132)]+'.');const _0x2f8ec1=_0x587203?getSdkClient({'appCode':_0x587203,'env':getEnv(),'runtimeDomain':getRuntimeDomain(),'authMode':'client-ak','accessKey':_activeAK}):getSdkClient();return withSdkErrors(()=>_0x3ceafd(_0x2f8ec1));}async function identitySdkRequest(_0x12cc03){const _0x2de88d=a108_0x45a2,_0x215da6=_activeAK;if(!_0x215da6)throw CliErrors['authRequired'](_0x2de88d(0x11c)+PRODUCT_CONFIG['newConfigFileName']+'.');return withSdkErrors(()=>_0x12cc03(getIdentitySdkClient(_0x215da6,getRuntimeDomain())));}async function withSdkErrors(_0x118780){const _0x2bc5a5=a108_0x45a2;try{return await _0x118780();}catch(_0x33f84e){if(_0x33f84e instanceof CliError)throw _0x33f84e;if(!_0x33f84e||typeof _0x33f84e!=='object')throw _0x33f84e;const _0x54ba25=_0x33f84e,_0x4f47e8=_0x54ba25[_0x2bc5a5(0x8d)]&&typeof _0x54ba25['response']===_0x2bc5a5(0x13d)?_0x54ba25[_0x2bc5a5(0x8d)]:{},_0x1b0b64=firstString(_0x4f47e8[_0x2bc5a5(0x8a)],_0x4f47e8[_0x2bc5a5(0x13f)],_0x4f47e8[_0x2bc5a5(0x100)],_0x54ba25[_0x2bc5a5(0x13f)]),_0x59d6e6=createRateLimitError({'status':[_0x54ba25[_0x2bc5a5(0xc8)],_0x4f47e8[_0x2bc5a5(0xc8)],_0x4f47e8[_0x2bc5a5(0x112)]][_0x2bc5a5(0x129)](_0xfa42a=>Number(_0xfa42a)===0x1ad)??_0x54ba25[_0x2bc5a5(0xc8)],'errorCode':firstString(_0x4f47e8[_0x2bc5a5(0x9d)],typeof _0x4f47e8[_0x2bc5a5(0x112)]===_0x2bc5a5(0xe6)?_0x4f47e8[_0x2bc5a5(0x112)]:undefined,_0x54ba25['code']),'message':_0x1b0b64,'retryAfter':_0x54ba25[_0x2bc5a5(0xe4)]??readRetryAfterSeconds(_0x54ba25[_0x2bc5a5(0x8d)])});if(_0x59d6e6)throw _0x59d6e6;const _0x25b027=createAccessError(_0x54ba25[_0x2bc5a5(0x8d)],_0x54ba25[_0x2bc5a5(0x112)]);if(_0x25b027)throw _0x25b027;throw CliErrors['apiError'](_0x1b0b64||_0x2bc5a5(0x11d),_0x54ba25[_0x2bc5a5(0x112)]?_0x2bc5a5(0x8c)+_0x54ba25[_0x2bc5a5(0x112)]:undefined);}}function firstString(..._0x1f7f63){const _0x487ca3=a108_0x45a2;for(const _0x303c4b of _0x1f7f63){if(typeof _0x303c4b===_0x487ca3(0xe6)&&_0x303c4b[_0x487ca3(0x142)]())return _0x303c4b['trim']();}return undefined;}async function decodeResponseBody(_0x1aa0a5){const _0x4ecba1=a108_0x45a2;if(typeof _0x1aa0a5[_0x4ecba1(0x105)]==='function')try{const _0x551f4b=await _0x1aa0a5[_0x4ecba1(0x105)]();try{return{'isJson':!![],'data':parseLosslessJson(_0x551f4b),'text':_0x551f4b};}catch{return{'isJson':![],'text':_0x551f4b['trim']()||undefined};}}catch(_0x427064){if(_0x427064 instanceof Error&&_0x427064['name']===_0x4ecba1(0xbd))throw _0x427064;}try{return{'isJson':!![],'data':await _0x1aa0a5['json']()};}catch(_0x3032d8){if(_0x3032d8 instanceof Error&&_0x3032d8[_0x4ecba1(0x14a)]===_0x4ecba1(0xbd))throw _0x3032d8;return{'isJson':![]};}}function throwIfRateLimited(_0x553ab8,_0x4e9c29,_0x2b9d59){const _0x449dc9=a108_0x45a2,_0xecd171=_0x4e9c29&&typeof _0x4e9c29===_0x449dc9(0x13d)?_0x4e9c29:{},_0x2473f6=[_0xecd171[_0x449dc9(0xc8)],_0xecd171['code']]['find'](_0x414303=>Number(_0x414303)===0x1ad),_0x48ebb7=createRateLimitError({'status':_0x553ab8[_0x449dc9(0xc8)]===0x1ad?_0x553ab8[_0x449dc9(0xc8)]:_0x2473f6??_0x553ab8[_0x449dc9(0xc8)],'errorCode':firstString(_0xecd171[_0x449dc9(0x9d)],typeof _0xecd171[_0x449dc9(0x112)]===_0x449dc9(0xe6)?_0xecd171[_0x449dc9(0x112)]:undefined),'message':firstString(_0xecd171[_0x449dc9(0x8a)],_0xecd171[_0x449dc9(0x13f)],_0xecd171[_0x449dc9(0x100)],_0x2b9d59),'retryAfter':readRetryAfter(_0x553ab8['headers'])??readRetryAfterSeconds(_0x4e9c29)});if(_0x48ebb7)throw _0x48ebb7;}async function apiRequest(_0x468023,_0x1996ef={}){const _0x41b071=a108_0x45a2,{method:method=_0x41b071(0xe2),body:_0x50c9c0,headers:headers={},timeout:timeout=0x7530,domain:domain=_0x41b071(0xba),rejectRedirects:rejectRedirects=![]}=_0x1996ef,_0xc1fffd=_activeAK,_0x23d21f=domain==='harness'?requireHarnessDomain():domain==='api'?getApiDomain():getRuntimeDomain();if(!_0xc1fffd)throw CliErrors[_0x41b071(0x84)](_0x41b071(0x11c)+PRODUCT_CONFIG[_0x41b071(0x132)]+'.');const _0x41df76=''+_0x23d21f+_0x468023,_0x1fdb97={'X-User-AK':_0xc1fffd},_0x3a47e3=new AbortController(),_0x80861e=setTimeout(()=>_0x3a47e3['abort'](),timeout);try{const _0x4039db=await fetch(_0x41df76,{'method':method,...rejectRedirects?{'redirect':_0x41b071(0xc6)}:{},'headers':{'Content-Type':'application/json','X-Invoke-Source':PRODUCT_CONFIG[_0x41b071(0xfd)],..._0x1fdb97,...headers},'body':_0x50c9c0?JSON['stringify'](_0x50c9c0):undefined,'signal':_0x3a47e3[_0x41b071(0xde)]});return await readApiResponse(_0x4039db);}catch(_0x329c20){if(_0x329c20 instanceof Error&&_0x329c20['name']===_0x41b071(0xbd))throw CliErrors[_0x41b071(0xad)](_0x41b071(0x122)+_0x41df76);throw _0x329c20;}finally{clearTimeout(_0x80861e);}}async function readApiResponse(_0x1d9981){const _0x2a763d=a108_0x45a2,_0xc36b20=await decodeResponseBody(_0x1d9981);if(!_0xc36b20[_0x2a763d(0xa0)]){throwIfRateLimited(_0x1d9981,undefined,_0xc36b20['text']);throw CliErrors[_0x2a763d(0xad)](_0x2a763d(0x14e)+_0x1d9981[_0x2a763d(0xc8)]+')',_0x1d9981[_0x2a763d(0xc8)]>=0x190?_0x2a763d(0xb1):undefined);}const _0x3bdf9d=_0xc36b20['data'];throwIfRateLimited(_0x1d9981,_0x3bdf9d);if(!_0x1d9981['ok']||_0x3bdf9d[_0x2a763d(0x131)]===![]){const _0x148088=createAccessError(_0x3bdf9d);if(_0x148088)throw _0x148088;throw CliErrors[_0x2a763d(0xad)](_0x3bdf9d[_0x2a763d(0x8a)]||_0x3bdf9d[_0x2a763d(0x13f)]||_0x3bdf9d[_0x2a763d(0x100)]||_0x2a763d(0x95)+_0x1d9981['status'],readApiErrorCode(_0x3bdf9d)?_0x2a763d(0x8c)+readApiErrorCode(_0x3bdf9d):undefined);}return _0x3bdf9d;}async function apiBinaryRequest(_0x173f21,_0x1e80a0={}){const _0x1f2e1=a108_0x45a2,{method:method=_0x1f2e1(0xe2),headers:headers={},timeout:timeout=0x7530}=_0x1e80a0,_0x569323=_activeAK,_0x44345f=getRuntimeDomain();if(!_0x569323)throw CliErrors['authRequired'](_0x1f2e1(0x11c)+PRODUCT_CONFIG[_0x1f2e1(0x132)]+'.');const _0x414a41=''+_0x44345f+_0x173f21,_0x802274=new AbortController(),_0x4ddd07=setTimeout(()=>_0x802274[_0x1f2e1(0xf1)](),timeout);try{const _0x169092=await fetch(_0x414a41,{'method':method,'headers':{'X-Invoke-Source':PRODUCT_CONFIG[_0x1f2e1(0xfd)],'X-User-AK':_0x569323,...headers},'signal':_0x802274[_0x1f2e1(0xde)]});if(!_0x169092['ok']){const _0x2a3794=await decodeResponseBody(_0x169092),_0x5baff3=_0x2a3794['data']&&typeof _0x2a3794['data']==='object'?_0x2a3794['data']:{},_0x4a876e=firstString(_0x5baff3[_0x1f2e1(0x8a)],_0x5baff3[_0x1f2e1(0x13f)],_0x5baff3[_0x1f2e1(0x9d)],_0x2a3794[_0x1f2e1(0x105)]);throwIfRateLimited(_0x169092,_0x2a3794[_0x1f2e1(0x9f)],_0x4a876e);const _0x2a69ed=createAccessError(_0x2a3794['data']);if(_0x2a69ed)throw _0x2a69ed;throw CliErrors[_0x1f2e1(0xad)](_0x4a876e||_0x1f2e1(0x95)+_0x169092[_0x1f2e1(0xc8)],_0x1f2e1(0x141)+_0x414a41);}return Buffer[_0x1f2e1(0x98)](await _0x169092[_0x1f2e1(0xc9)]());}catch(_0x5e5528){if(_0x5e5528 instanceof Error&&_0x5e5528[_0x1f2e1(0x14a)]==='AbortError')throw CliErrors[_0x1f2e1(0xad)]('Request\x20timeout:\x20'+_0x414a41);throw _0x5e5528;}finally{clearTimeout(_0x4ddd07);}}async function toolboxRequest(_0x1d4113,_0x583f0a,_0x50d100={}){const _0x3946df=a108_0x45a2,{method:method=_0x3946df(0xe2),headers:headers={},timeout:timeout=0x7530}=_0x50d100,_0x223d22=_activeAK;if(!_0x223d22)throw CliErrors[_0x3946df(0x84)]('Configure\x20accessKey\x20in\x20'+PRODUCT_CONFIG['newConfigFileName']+'.');const _0x130fda=getApiDomain()['replace'](/\/$/,''),_0x5bc9a6=new URL(_0x1d4113,_0x130fda+_0x3946df(0xda));if(_0x583f0a)for(const [_0x201091,_0x1ee9e0]of Object[_0x3946df(0xaa)](_0x583f0a)){_0x1ee9e0!==undefined&&_0x1ee9e0!==null&&_0x5bc9a6['searchParams'][_0x3946df(0xbf)](_0x201091,String(_0x1ee9e0));}const _0x849119=new AbortController(),_0x5c0ed0=setTimeout(()=>_0x849119[_0x3946df(0xf1)](),timeout);try{const _0x1c1282=await fetch(_0x5bc9a6,{'method':method,'headers':{'Content-Type':_0x3946df(0xb8),'X-Invoke-Source':PRODUCT_CONFIG[_0x3946df(0xfd)],'X-User-AK':_0x223d22,...headers},'signal':_0x849119['signal']}),_0x1bdedd=await decodeResponseBody(_0x1c1282);if(!_0x1bdedd['isJson']){throwIfRateLimited(_0x1c1282,undefined,_0x1bdedd[_0x3946df(0x105)]);throw CliErrors[_0x3946df(0xad)]('Toolbox\x20returned\x20non-JSON\x20response\x20(HTTP\x20'+_0x1c1282['status']+')',_0x1c1282[_0x3946df(0xc8)]>=0x190?'Check\x20your\x20credentials\x20and\x20try\x20again.':undefined);}const _0x5e7c19=_0x1bdedd['data'];throwIfRateLimited(_0x1c1282,_0x5e7c19);if(!_0x1c1282['ok']){const _0x804ddf=_0x5e7c19&&typeof _0x5e7c19===_0x3946df(0x13d)?_0x5e7c19:{};throw CliErrors[_0x3946df(0xad)](_0x804ddf[_0x3946df(0x8a)]||_0x804ddf['message']||_0x3946df(0x135)+_0x1c1282['status'],_0x804ddf['errorCode']?_0x3946df(0xc2)+_0x804ddf[_0x3946df(0x9d)]:undefined);}if(_0x5e7c19&&typeof _0x5e7c19===_0x3946df(0x13d)&&_0x3946df(0x131)in _0x5e7c19&&typeof _0x5e7c19['success']===_0x3946df(0x13c)){const _0x2a33ec=_0x5e7c19;if(!_0x2a33ec[_0x3946df(0x131)])throw CliErrors[_0x3946df(0xad)](_0x2a33ec[_0x3946df(0x8a)]||_0x2a33ec['message']||'Toolbox\x20API\x20error',_0x2a33ec['errorCode']?'Toolbox\x20error\x20code:\x20'+_0x2a33ec[_0x3946df(0x9d)]:undefined);return _0x2a33ec['data'];}return _0x5e7c19;}catch(_0x17bbde){if(_0x17bbde instanceof Error&&_0x17bbde[_0x3946df(0x14a)]===_0x3946df(0xbd))throw CliErrors['apiError'](_0x3946df(0x122)+_0x5bc9a6[_0x3946df(0xf4)]());throw _0x17bbde;}finally{clearTimeout(_0x5c0ed0);}}async function skillHubJsonRequest(_0x73cf1f,_0x5001ff={}){const _0x545b52=a108_0x45a2,{method:method=_0x545b52(0xe2),query:_0x5004e8,body:_0x211ca3,headers:headers={},timeout:timeout=0x7530,allowNotFound:allowNotFound=![]}=_0x5001ff,_0x3d5804=_activeAK;if(!_0x3d5804)throw CliErrors[_0x545b52(0x84)](_0x545b52(0x11c)+PRODUCT_CONFIG[_0x545b52(0x132)]+'.');const _0x2b0638=getSkillDomain()[_0x545b52(0xdf)](/\/$/,''),_0xa8ccd7=new URL(_0x73cf1f,_0x2b0638+'/');if(_0x5004e8)for(const [_0x3d7341,_0x19fe79]of Object[_0x545b52(0xaa)](_0x5004e8)){_0x19fe79!==undefined&&_0x19fe79!==null&&_0xa8ccd7['searchParams'][_0x545b52(0xbf)](_0x3d7341,String(_0x19fe79));}const _0x4aa4e8=new AbortController(),_0x331f89=setTimeout(()=>_0x4aa4e8[_0x545b52(0xf1)](),timeout);try{const _0x14e663=await fetch(_0xa8ccd7['toString'](),{'method':method,'headers':{'Accept':_0x545b52(0xb8),'X-Invoke-Source':PRODUCT_CONFIG[_0x545b52(0xfd)],'X-User-AK':_0x3d5804,...headers},'body':_0x211ca3,'signal':_0x4aa4e8['signal']}),_0x3e4281=await decodeResponseBody(_0x14e663);if(!_0x3e4281[_0x545b52(0xa0)]){if(allowNotFound&&_0x14e663[_0x545b52(0xc8)]===0x194)return undefined;throwIfRateLimited(_0x14e663,undefined,_0x3e4281[_0x545b52(0x105)]);throw CliErrors[_0x545b52(0xad)](_0x545b52(0xa8)+_0x14e663[_0x545b52(0xc8)]+')',_0x14e663[_0x545b52(0xc8)]>=0x190?'Check\x20your\x20credentials\x20and\x20try\x20again.':undefined);}const _0x3a3a11=_0x3e4281[_0x545b52(0x9f)];throwIfRateLimited(_0x14e663,_0x3a3a11);if(allowNotFound&&isSkillHubNotFoundResponse(_0x14e663[_0x545b52(0xc8)],_0x3a3a11))return undefined;const _0x2d884d=!_0x14e663['ok']||_0x3a3a11?.[_0x545b52(0x131)]===![]||typeof _0x3a3a11?.[_0x545b52(0x112)]===_0x545b52(0x137)&&_0x3a3a11[_0x545b52(0x112)]>=0x190;if(_0x2d884d)throw CliErrors[_0x545b52(0xad)](_0x3a3a11?.['errorMsg']||_0x3a3a11?.[_0x545b52(0x13f)]||_0x3a3a11?.[_0x545b52(0x100)]||_0x545b52(0x110)+_0x14e663[_0x545b52(0xc8)],_0x3a3a11?.[_0x545b52(0x9d)]?_0x545b52(0x14b)+_0x3a3a11[_0x545b52(0x9d)]:undefined);return _0x3a3a11?.[_0x545b52(0x9f)]??_0x3a3a11;}catch(_0x498d22){if(_0x498d22 instanceof Error&&_0x498d22[_0x545b52(0x14a)]==='AbortError')throw CliErrors[_0x545b52(0xad)]('Request\x20timeout:\x20'+_0xa8ccd7[_0x545b52(0xf4)]());throw _0x498d22;}finally{clearTimeout(_0x331f89);}}function a108_0x45a2(_0x128e88,_0x5c2d71){_0x128e88=_0x128e88-0x7a;const _0x3bf4bd=a108_0x3bf4();let _0x45a29e=_0x3bf4bd[_0x128e88];return _0x45a29e;}function isSkillHubNotFoundResponse(_0x192ba7,_0x20c45){const _0xb291e8=a108_0x45a2;if(_0x192ba7===0x194||_0x20c45?.[_0xb291e8(0x112)]===0x194)return!![];if(_0x192ba7!==0x190&&_0x20c45?.[_0xb291e8(0x112)]!==0x190)return![];const _0x2a8e9c=[_0x20c45?.['msg'],_0x20c45?.['message'],_0x20c45?.['errorMsg'],_0x20c45?.[_0xb291e8(0xc6)]][_0xb291e8(0x12a)](_0x15ba00=>typeof _0x15ba00===_0xb291e8(0xe6))[_0xb291e8(0x12e)]('\x20');return/skill not found\b/i[_0xb291e8(0x147)](_0x2a8e9c);}async function skillHubBinaryRequest(_0x7de0a7,_0x40e66a={}){const _0x54c7f0=a108_0x45a2,{query:_0xe5c75e,headers:headers={},timeout:timeout=0x7530}=_0x40e66a,_0x5d9f79=_activeAK;if(!_0x5d9f79)throw CliErrors['authRequired'](_0x54c7f0(0x11c)+PRODUCT_CONFIG[_0x54c7f0(0x132)]+'.');const _0x3763e8=getSkillDomain()['replace'](/\/$/,''),_0x5d33eb=new URL(_0x7de0a7,_0x3763e8+'/');if(_0xe5c75e)for(const [_0x191ec4,_0x6a3464]of Object[_0x54c7f0(0xaa)](_0xe5c75e)){_0x6a3464!==undefined&&_0x6a3464!==null&&_0x5d33eb[_0x54c7f0(0x10b)][_0x54c7f0(0xbf)](_0x191ec4,String(_0x6a3464));}const _0x3221e8=new AbortController(),_0xa76da2=setTimeout(()=>_0x3221e8['abort'](),timeout);try{const _0x32e062=await fetch(_0x5d33eb[_0x54c7f0(0xf4)](),{'method':_0x54c7f0(0xe2),'headers':{'Accept':'application/octet-stream','X-Invoke-Source':PRODUCT_CONFIG[_0x54c7f0(0xfd)],'X-User-AK':_0x5d9f79,...headers},'signal':_0x3221e8[_0x54c7f0(0xde)]});if(!_0x32e062['ok']){const _0x35e414=await decodeResponseBody(_0x32e062),_0x488dec=_0x35e414[_0x54c7f0(0x9f)]&&typeof _0x35e414[_0x54c7f0(0x9f)]===_0x54c7f0(0x13d)?_0x35e414['data']:{},_0x261cc4=firstString(_0x488dec[_0x54c7f0(0x8a)],_0x488dec[_0x54c7f0(0x13f)],_0x488dec['msg'],_0x488dec[_0x54c7f0(0x9d)],_0x35e414['text']);throwIfRateLimited(_0x32e062,_0x35e414['data'],_0x261cc4);throw CliErrors[_0x54c7f0(0xad)](_0x261cc4||_0x54c7f0(0x110)+_0x32e062['status'],_0x54c7f0(0x141)+_0x5d33eb[_0x54c7f0(0xf4)]());}return Buffer[_0x54c7f0(0x98)](await _0x32e062[_0x54c7f0(0xc9)]());}catch(_0x44347a){if(_0x44347a instanceof Error&&_0x44347a[_0x54c7f0(0x14a)]===_0x54c7f0(0xbd))throw CliErrors[_0x54c7f0(0xad)](_0x54c7f0(0x122)+_0x5d33eb[_0x54c7f0(0xf4)]());throw _0x44347a;}finally{clearTimeout(_0xa76da2);}}export async function getBffEndpointContract(_0xf88834,_0xd91c05){const _0x2d1351=a108_0x45a2;if(encodeURIComponent(_0xf88834)!==_0xf88834||_0xf88834==='.'||_0xf88834==='..')throw CliErrors[_0x2d1351(0x108)]('Application\x20code\x20contains\x20invalid\x20URL\x20path\x20characters.');if(_0xd91c05==='functions')throw CliErrors['validation'](_0x2d1351(0xb9)+_0xf88834+',\x20name='+_0xd91c05);const _0x456229=await sdkRequest(_0xf88834,_0x3b8a7f=>{const _0x2d85e3=_0x2d1351;if(!('getEndpoint'in _0x3b8a7f[_0x2d85e3(0x12f)]))throw CliErrors['validation']('Backend\x20Function\x20metadata\x20requires\x20Client\x20AK.');return _0x3b8a7f[_0x2d85e3(0x12f)]['getEndpoint'](_0xd91c05);});if(!_0x456229||typeof _0x456229!==_0x2d1351(0x13d)||Array[_0x2d1351(0xd9)](_0x456229)||_0x456229[_0x2d1351(0xcb)]!==_0xf88834||_0x456229[_0x2d1351(0xb0)]!==_0xd91c05)throw CliErrors['validation']('Backend\x20Function\x20not\x20found\x20or\x20inaccessible:\x20appCode='+_0xf88834+_0x2d1351(0x8e)+_0xd91c05);const _0x2f1726=_0x456229[_0x2d1351(0x146)];if(_0x2f1726!=null&&(typeof _0x2f1726!==_0x2d1351(0x137)||!Number['isSafeInteger'](_0x2f1726)))throw CliErrors[_0x2d1351(0xad)](_0x2d1351(0x11f));return{'appCode':_0x456229[_0x2d1351(0xcb)],'functionName':_0x456229[_0x2d1351(0xb0)],'description':_0x456229['description'],'version':_0x456229[_0x2d1351(0x9a)],'gmtModified':_0x2f1726};}export async function getSqlQueryInfo(_0x40299f,_0x169da7){const _0x4a3ea3=a108_0x45a2,_0x17375b=await sdkRequest(_0x40299f,_0xa6eafc=>{const _0x24dcc7=a108_0x45a2;if(!(_0x24dcc7(0xd8)in _0xa6eafc[_0x24dcc7(0x148)]))throw CliErrors[_0x24dcc7(0x108)]('SQL\x20metadata\x20requires\x20Client\x20AK.');return _0xa6eafc[_0x24dcc7(0x148)][_0x24dcc7(0xd8)]({'appCode':_0x40299f,'currentPage':0x1,'pageSize':0x1,'sqlCode':_0x169da7});}),_0x265ceb=_0x17375b&&typeof _0x17375b===_0x4a3ea3(0x13d)&&_0x4a3ea3(0x134)in _0x17375b?_0x17375b[_0x4a3ea3(0x134)]?.[0x0]:_0x17375b&&typeof _0x17375b==='object'&&_0x4a3ea3(0xf6)in _0x17375b?_0x17375b:undefined;if(!_0x265ceb)throw CliErrors[_0x4a3ea3(0x108)]('SQL\x20query\x20not\x20found:\x20'+_0x169da7);return _0x265ceb;}export async function listApprovalTodo(_0x4457a0,_0x3c1211=0x1,_0xc7c8ca=0x14){const _0x56c9b9=a108_0x45a2,_0x295904=await sdkRequest(_0x4457a0,_0x3479c8=>_0x3479c8[_0x56c9b9(0xa4)][_0x56c9b9(0x13e)]({'currentPage':_0x3c1211,'pageSize':_0xc7c8ca}));if(!_0x295904||typeof _0x295904!=='object'||!Array[_0x56c9b9(0xd9)](_0x295904[_0x56c9b9(0xd3)]))throw CliErrors[_0x56c9b9(0xad)]('Invalid\x20approval\x20todo\x20response:\x20missing\x20records.');return _0x295904;}export async function getApprovalTaskDetail(_0x1f1761,_0x519e3b){const _0x1436ad=a108_0x45a2,_0x4c022a=await sdkRequest(_0x519e3b,_0x37d4b1=>_0x37d4b1[_0x1436ad(0xa4)]['getTask'](_0x1f1761));if(!_0x4c022a||typeof _0x4c022a!==_0x1436ad(0x13d)||Array[_0x1436ad(0xd9)](_0x4c022a))throw CliErrors['apiError']('Invalid\x20approval\x20task\x20detail\x20response.');return _0x4c022a;}export async function approveApprovalTask(_0x27c297){const _0x451c1d=a108_0x45a2;return await sdkRequest(_0x27c297[_0x451c1d(0xcb)],_0x34d0d5=>_0x34d0d5['approval'][_0x451c1d(0xae)](_0x27c297)),null;}export async function transferApprovalTask(_0xd4c074){const _0x30c7ca=a108_0x45a2;return await sdkRequest(_0xd4c074[_0x30c7ca(0xcb)],_0x472c47=>_0x472c47[_0x30c7ca(0xa4)][_0x30c7ca(0xca)](_0xd4c074)),null;}function isRemoteAppItem(_0x2d2dbe){const _0x54bf37=a108_0x45a2;return!!_0x2d2dbe&&typeof _0x2d2dbe==='object'&&typeof _0x2d2dbe[_0x54bf37(0xcb)]===_0x54bf37(0xe6)&&typeof _0x2d2dbe[_0x54bf37(0x83)]===_0x54bf37(0xe6);}function extractRemoteAppItems(_0x2afda6){const _0x2eef7a=a108_0x45a2;if(Array[_0x2eef7a(0xd9)](_0x2afda6))return _0x2afda6[_0x2eef7a(0x12a)](isRemoteAppItem);if(!_0x2afda6||typeof _0x2afda6!=='object')throw CliErrors[_0x2eef7a(0xad)]('Invalid\x20app\x20list\x20response:\x20expected\x20object\x20or\x20array.');const _0x52dd2c=_0x2afda6;if(Array[_0x2eef7a(0xd9)](_0x52dd2c[_0x2eef7a(0x134)]))return _0x52dd2c['tableData'][_0x2eef7a(0x12a)](isRemoteAppItem);if(_0x52dd2c[_0x2eef7a(0x9f)]&&typeof _0x52dd2c[_0x2eef7a(0x9f)]===_0x2eef7a(0x13d)){const _0x48babd=_0x52dd2c[_0x2eef7a(0x9f)];if(Array['isArray'](_0x48babd[_0x2eef7a(0x134)]))return _0x48babd[_0x2eef7a(0x134)][_0x2eef7a(0x12a)](isRemoteAppItem);}throw CliErrors['apiError'](_0x2eef7a(0xec));}export async function getMyApps(){const _0xf3de3a=a108_0x45a2;return extractRemoteAppItems(await identitySdkRequest(_0x159e82=>_0x159e82[_0xf3de3a(0xf5)]()));}export async function getLoginUserInfo(){const _0xcedab6=a108_0x45a2,_0x2da924=await identitySdkRequest(_0xe77627=>_0xe77627['loginUserInfo']());if(!_0x2da924||typeof _0x2da924!=='object'||Array[_0xcedab6(0xd9)](_0x2da924))throw CliErrors['apiError'](_0xcedab6(0x10f));return _0x2da924;}export const USER_ACCOUNT_BIND_PATH=a108_0x1016fe(0xdd);export async function bindExternalUserAccount(_0x5112a4,_0x752bad){const _0x369037=a108_0x1016fe;return identitySdkRequest(_0x4af70a=>_0x4af70a[_0x369037(0x143)]({'provider':_0x5112a4,'accountId':_0x752bad}));}function runtimeSchedulePath(_0x34c9ba,_0x549987=''){const _0x121af3=a108_0x1016fe;return _0x121af3(0x7f)+encodeURIComponent(_0x34c9ba)+'/schedules'+_0x549987;}export async function validateRuntimeSchedule(_0x43028d,_0x3f5ee4){const _0x4045c2=a108_0x1016fe,_0x10abb0=await apiRequest(runtimeSchedulePath(_0x43028d,_0x4045c2(0x10d)),{'domain':_0x4045c2(0xb4),'method':_0x4045c2(0xe1),'body':_0x3f5ee4});return _0x10abb0[_0x4045c2(0x9f)];}export async function createRuntimeSchedule(_0x748b31,_0x1e09fd){const _0x2ab706=a108_0x1016fe,_0x447a56=await apiRequest(runtimeSchedulePath(_0x748b31),{'domain':'harness','method':_0x2ab706(0xe1),'body':_0x1e09fd});return _0x447a56[_0x2ab706(0x9f)];}export async function listRuntimeSchedules(_0x2e3578,_0x283d8c){const _0xa17473=a108_0x1016fe,_0x4a0346=new URLSearchParams();_0x4a0346[_0xa17473(0xbf)]('kind',_0x283d8c['kind']);if(_0x283d8c[_0xa17473(0xeb)]!==undefined)_0x4a0346[_0xa17473(0xbf)](_0xa17473(0xeb),String(_0x283d8c['limit']));if(_0x283d8c[_0xa17473(0x9e)])_0x4a0346['set'](_0xa17473(0x9e),_0x283d8c['cursor']);const _0x53f821=_0x4a0346[_0xa17473(0x9c)]>0x0?'?'+_0x4a0346[_0xa17473(0xf4)]():'',_0x40015a=await apiRequest(''+runtimeSchedulePath(_0x2e3578)+_0x53f821,{'domain':_0xa17473(0xb4)});return _0x40015a[_0xa17473(0x9f)];}export async function getRuntimeSchedule(_0x2e9140,_0x568da0){const _0x3f7110=a108_0x1016fe,_0x348265=await apiRequest(runtimeSchedulePath(_0x2e9140,'/'+encodeURIComponent(_0x568da0)),{'domain':_0x3f7110(0xb4)});return _0x348265['data'];}export async function deleteRuntimeSchedule(_0x5b8664,_0x5cef6f){const _0x1057ec=a108_0x1016fe,_0xbb0a3e=await apiRequest(runtimeSchedulePath(_0x5b8664,'/'+encodeURIComponent(_0x5cef6f)),{'domain':'harness','method':_0x1057ec(0xea)});return _0xbb0a3e[_0x1057ec(0x9f)];}export async function runRuntimeSchedule(_0x3f2cc8,_0x49a3ef){const _0x6f5016=a108_0x1016fe,_0x9251d0=await apiRequest(runtimeSchedulePath(_0x3f2cc8,'/'+encodeURIComponent(_0x49a3ef)+'/run'),{'domain':_0x6f5016(0xb4),'method':_0x6f5016(0xe1)});return _0x9251d0[_0x6f5016(0x9f)];}export async function listDatasets(_0x559d70,_0x457807){const _0x57239a=a108_0x1016fe,_0x592d88=await sdkRequest(_0x559d70,_0x3e4138=>_0x3e4138['datasetMeta']['list']({..._0x457807?.[_0x57239a(0x112)]&&{'code':_0x457807[_0x57239a(0x112)]},..._0x457807?.[_0x57239a(0x14a)]&&{'name':_0x457807[_0x57239a(0x14a)]},..._0x457807?.[_0x57239a(0xd6)]&&{'tableName':_0x457807[_0x57239a(0xd6)]}}));return extractList(_0x592d88);}export async function getDatasetDetail(_0x172585){const _0x55a719=a108_0x1016fe;return sdkRequest(undefined,_0x3dbaa9=>_0x3dbaa9[_0x55a719(0xe0)]['getDrivenData']({'code':_0x172585}));}function importSdkRequest(_0x2b4128,_0x2d3415,_0x37c440){return sdkRequest(_0x2b4128,_0x470d9e=>{const _0x58e69f=a108_0x45a2,_0x3ba1cf=_0x470d9e[_0x58e69f(0x138)](_0x58e69f(0x13b)+_0x2d3415);if(!(_0x3ba1cf instanceof ClientAkModel))throw CliErrors[_0x58e69f(0x108)](_0x58e69f(0x12b));return _0x37c440(_0x3ba1cf);});}export async function getDatasetImportContract(_0x55f047,_0xce66c1){return importSdkRequest(_0x55f047,_0xce66c1,_0x554e0f=>_0x554e0f['importContract']());}export async function createDatasetImportBatch(_0xbcdc9e,_0x497b52,_0x553abd){const _0x320e28=a108_0x1016fe;return importSdkRequest(_0xbcdc9e,_0x497b52,_0xb6a034=>_0xb6a034[_0x320e28(0xd5)](_0x553abd));}export async function readDatasetImportRows(_0x959171,_0x4c43ad,_0x44f906){const _0x2fe471=a108_0x1016fe,_0x9819dd=await importSdkRequest(_0x959171,_0x4c43ad,_0x3a307e=>_0x3a307e['importReadback']({'ids':_0x44f906}));if(!_0x9819dd||!Array['isArray'](_0x9819dd[_0x2fe471(0xbe)]))throw CliErrors['apiError'](_0x2fe471(0xcc));return _0x9819dd['items'];}export async function readDatasetImportTaskRows(_0x1ff914,_0x24cffa,_0x418839){const _0x162d23=a108_0x1016fe,_0x256e44=await importSdkRequest(_0x1ff914,_0x24cffa,_0x22853d=>_0x22853d[_0x162d23(0xa5)]({'taskId':_0x418839}));if(!_0x256e44||!Array[_0x162d23(0xd9)](_0x256e44[_0x162d23(0xbe)]))throw CliErrors['apiError'](_0x162d23(0x9b));return _0x256e44[_0x162d23(0xbe)];}export async function uploadDatasetImportImage(_0x1e435e,_0x470ec7,_0x1fb675,_0x16264b){const _0x23e2b9=a108_0x1016fe;return importSdkRequest(_0x1e435e,_0x470ec7,_0x5e077c=>_0x5e077c[_0x23e2b9(0x12d)]({'importId':_0x1fb675,'contentHash':_0x16264b[_0x23e2b9(0x7d)],'file':new Blob([new Uint8Array(_0x16264b[_0x23e2b9(0xcd)])],{'type':_0x16264b['type']}),'fileName':'image'}));}export async function readDatasetImportImage(_0x5aef2e,_0x2fa74c,_0x18d22b,_0x1389cc){const _0x38fb23=a108_0x1016fe;return importSdkRequest(_0x5aef2e,_0x2fa74c,_0x37c81a=>_0x37c81a[_0x38fb23(0x133)]({'importId':_0x18d22b,'contentHash':_0x1389cc[_0x38fb23(0x7d)],'type':_0x1389cc[_0x38fb23(0x7a)],'size':_0x1389cc[_0x38fb23(0x9c)]}));}export async function getDatasetSdkUsageDoc(_0x552000,_0xf54d53){const _0x5010f2=a108_0x1016fe,_0x3fbb37=await toolboxRequest(_0x5010f2(0x118),{'datasetCode':_0x552000,'appCode':_0xf54d53});return typeof _0x3fbb37?.[_0x5010f2(0x89)]===_0x5010f2(0xe6)?_0x3fbb37[_0x5010f2(0x89)]:'';}export async function uploadRuntimeFile(_0x3473d1,_0x1640e0){const _0x126dc9=a108_0x1016fe,_0x599ea4=await readFile(_0x1640e0);return sdkRequest(_0x3473d1,_0x254efe=>_0x254efe['services'][_0x126dc9(0xc4)][_0x126dc9(0x103)]({'file':new Blob([new Uint8Array(_0x599ea4)]),'fileName':basename(_0x1640e0)}));}export async function queryRuntimeFileUrl(_0x44d011,_0x67b0f8={}){const _0x15d7e2=a108_0x1016fe;return sdkRequest(undefined,_0x5d59f3=>_0x5d59f3[_0x15d7e2(0xe7)][_0x15d7e2(0xc4)][_0x15d7e2(0x124)]({'filePath':_0x44d011,..._0x67b0f8}));}export async function recognizeRuntimeOcr(_0x2f7ffa,_0x27d18b){const _0x312e99=a108_0x1016fe;return sdkRequest(_0x2f7ffa,_0x16d1b3=>_0x16d1b3[_0x312e99(0xe7)][_0x312e99(0xb5)]['recognize'](_0x27d18b));}export async function getRuntimeAppConfigByKey(_0x37166c,_0x38e324){const _0x1103b3=a108_0x1016fe,_0x27ad19=await sdkRequest(_0x37166c,_0x1de955=>_0x1de955['app']['getConfigByKey'](_0x38e324));if(typeof _0x27ad19!==_0x1103b3(0xe6))throw CliErrors[_0x1103b3(0x108)](_0x1103b3(0xe8)+_0x38e324);return _0x27ad19;}export async function listNotificationChannelConfigs(_0x4d221b,_0x38b931){const _0x3545db=a108_0x1016fe,_0x4255ec=await sdkRequest(_0x4d221b,_0x21ffc4=>_0x21ffc4[_0x3545db(0xbb)][_0x3545db(0x10a)](_0x38b931));if(!Array[_0x3545db(0xd9)](_0x4255ec))throw CliErrors[_0x3545db(0xad)](_0x3545db(0x85),'Expected\x20the\x20server\x20data\x20field\x20to\x20be\x20an\x20array.');return _0x4255ec;}export async function listRuntimeArtifacts(_0x401947,_0x40b8bf){const _0x5eb303=a108_0x1016fe,_0xc3d449=await sdkRequest(_0x401947,_0x12178d=>_0x12178d['artifact']['list'](_0x40b8bf));return Array[_0x5eb303(0xd9)](_0xc3d449)?_0xc3d449:[];}export async function getRuntimeArtifact(_0x53660a,_0x575ea6){const _0x19cb26=a108_0x1016fe,_0x29cde7=await sdkRequest(_0x575ea6,_0x21557f=>_0x21557f[_0x19cb26(0x92)]['get'](_0x53660a));if(!_0x29cde7)throw CliErrors[_0x19cb26(0x108)]('Artifact\x20not\x20found:\x20id='+_0x53660a);return _0x29cde7;}export async function createRuntimeArtifact(_0x9b5047,_0x52c25d){const _0x3e6b58=a108_0x1016fe;return sdkRequest(_0x9b5047,_0xb00bc7=>_0xb00bc7[_0x3e6b58(0x92)][_0x3e6b58(0xed)](_0x52c25d));}export async function updateRuntimeArtifact(_0x1bd53a,_0x27198c,_0x407c50){return sdkRequest(_0x27198c,_0x19d25b=>_0x19d25b['artifact']['update'](_0x1bd53a,_0x407c50));}export async function listPersonalBffs(_0x165e6b){const _0x57ef69=a108_0x1016fe,_0x3dc360=await sdkRequest(_0x165e6b,_0x3848ca=>_0x3848ca[_0x57ef69(0x127)]['bff']['list']());return Array[_0x57ef69(0xd9)](_0x3dc360)?_0x3dc360:[];}export async function getPersonalBff(_0x4afe54,_0x3652e1){const _0x2f5ce9=a108_0x1016fe,_0x1e5280=await sdkRequest(_0x3652e1,_0x5f011f=>_0x5f011f[_0x2f5ce9(0x127)][_0x2f5ce9(0x12f)][_0x2f5ce9(0xee)](_0x4afe54));if(!_0x1e5280)throw CliErrors[_0x2f5ce9(0x108)](_0x2f5ce9(0xd1)+_0x4afe54);return _0x1e5280;}export async function createPersonalBff(_0x68773,_0x379cc4){const _0x2d739c=a108_0x1016fe;return sdkRequest(_0x68773,_0x46c49a=>_0x46c49a[_0x2d739c(0x127)][_0x2d739c(0x12f)][_0x2d739c(0xed)](_0x379cc4));}export async function updatePersonalBff(_0x3cae62,_0x3bb52e,_0x10d903){const _0x764894=a108_0x1016fe;return sdkRequest(_0x3bb52e,_0x2f84be=>_0x2f84be[_0x764894(0x127)][_0x764894(0x12f)][_0x764894(0x81)](_0x3cae62,_0x10d903));}export async function executePersonalBff(_0x151cdf,_0x10d15d,_0x4f433d){const _0x44d90b=a108_0x1016fe;return sdkRequest(_0x10d15d,_0x1841b9=>_0x1841b9['personal'][_0x44d90b(0x12f)][_0x44d90b(0x88)]({'scriptId':_0x151cdf,'params':_0x4f433d}));}export async function listPersonalKnowledgeBaseItems(_0x10e9ef,_0x5d2dae){return listPersonalKnowledge({'appCode':_0x10e9ef,'accessKey':_activeAK,'signal':_0x5d2dae});}export async function getPersonalKnowledgeBaseItem(_0x38f6d6,_0x127ec4,_0x3d8e53){return getPersonalKnowledge({'appCode':_0x127ec4,'accessKey':_activeAK,'signal':_0x3d8e53},_0x38f6d6);}export async function createPersonalKnowledgeBaseItem(_0x305141,_0x43843a,_0x1d6430){return savePersonalKnowledge({'appCode':_0x305141,'accessKey':_activeAK,'signal':_0x1d6430},_0x43843a);}export async function updatePersonalKnowledgeBaseItem(_0x16ba59,_0x2c7462,_0x4d3e03,_0x346650){return savePersonalKnowledge({'appCode':_0x2c7462,'accessKey':_activeAK,'signal':_0x346650},_0x4d3e03,_0x16ba59);}export async function getRuntimeSkillByCode(_0x56eb9c,_0x4a0bf6){const _0x364604=a108_0x1016fe,_0x5caf4b=await skillHubJsonRequest(_0x364604(0x109)+encodeURIComponent(_0x56eb9c)+'/'+encodeURIComponent(_0x4a0bf6),{'allowNotFound':!![]});return _0x5caf4b?skillHubRuntimeDetailToRuntimeSkill(_0x5caf4b):undefined;}export async function listRuntimeSkills(_0x16c117){const _0x2803a4=a108_0x1016fe,_0x3a2646=await skillHubJsonRequest(_0x2803a4(0xdc)+encodeURIComponent(_0x16c117[_0x2803a4(0xcb)])+_0x2803a4(0x91),{'query':{'page':0x0,'size':0xc8}});return normalizeSkillHubRuntimeListResponse(_0x16c117[_0x2803a4(0xcb)],_0x3a2646,_0x16c117[_0x2803a4(0xd4)]??_0x2803a4(0x113),_0x16c117[_0x2803a4(0x112)],_0x16c117[_0x2803a4(0x121)]);}export async function listPersonalRuntimeSkills(_0x3fb63b){const _0x21c697=a108_0x1016fe;return(await listRuntimeSkills({'appCode':_0x3fb63b,'scope':_0x21c697(0x127)}))[_0x21c697(0x127)];}export async function listCompanyRuntimeSkills(_0x260e9c){const _0x441e0b=a108_0x1016fe;return(await listRuntimeSkills({'appCode':_0x260e9c,'scope':_0x441e0b(0x8b)}))[_0x441e0b(0x8b)];}export async function listVisibleRuntimeSkills(_0x5ef344){const _0x33abd8=a108_0x1016fe;return(await listRuntimeSkills({'appCode':_0x5ef344,'scope':'all'}))[_0x33abd8(0x140)];}export async function createPersonalRuntimeSkill(_0x23208b,_0x3814b0,_0x4c9f91={}){const _0x18997e=a108_0x1016fe;return publishRuntimeSkill(_0x23208b,_0x3814b0,{'visibility':_0x18997e(0xef),'confirmWarnings':_0x4c9f91[_0x18997e(0xaf)]});}export async function updatePersonalRuntimeSkill(_0x597a92,_0x1ca0d8,_0x40abb9,_0x4ecf9c={}){const _0x216235=a108_0x1016fe;return publishRuntimeSkill(_0x1ca0d8,{..._0x40abb9,'skillCode':_0x40abb9[_0x216235(0xa6)]??_0x597a92},{'visibility':_0x216235(0xef),'confirmWarnings':_0x4ecf9c[_0x216235(0xaf)]});}export async function publishCompanyRuntimeSkill(_0x3e0d2f,_0x210c98,_0x5525a5={}){return publishRuntimeSkill(_0x3e0d2f,_0x210c98,{'visibility':'NAMESPACE_ONLY','confirmWarnings':_0x5525a5['confirmWarnings']});}export async function validateRuntimeSkillPublish(_0x4978d9,_0x1f6878,_0x4ca8b7){const _0x4a3b23=a108_0x1016fe,_0x547177=buildRuntimeSkillPublishForm(_0x1f6878,_0x4ca8b7[_0x4a3b23(0x14f)]),_0x2f016f=await skillHubJsonRequest(_0x4a3b23(0x130)+encodeURIComponent(_0x4978d9)+_0x4a3b23(0xa2),{'method':_0x4a3b23(0xe1),'body':_0x547177});return assertJointDiagramAcknowledged(_0x1f6878['diagram'],_0x2f016f[_0x4a3b23(0xf9)],'validation'),{'valid':_0x2f016f['valid']===!![],'errors':Array[_0x4a3b23(0xd9)](_0x2f016f[_0x4a3b23(0xc1)])?_0x2f016f[_0x4a3b23(0xc1)]:[],'warnings':Array['isArray'](_0x2f016f[_0x4a3b23(0x11b)])?_0x2f016f['warnings']:[],'resolvedSlug':_0x2f016f[_0x4a3b23(0xb7)],'resolvedVersion':_0x2f016f[_0x4a3b23(0x107)],'diagramValidated':_0x2f016f[_0x4a3b23(0xf9)]===!![]};}export async function validateRuntimeSkillVersionDiagram(_0x1f0c33,_0x57a21d,_0xf07f7b,_0x4c74f7,_0x469911){const _0x5d0210=a108_0x1016fe;return skillHubJsonRequest(runtimeSkillVersionDiagramPath(_0x1f0c33,_0x57a21d,_0xf07f7b,_0x5d0210(0x10d)),{'method':_0x5d0210(0xe1),'query':{'scope':_0x4c74f7},'headers':{'Content-Type':'application/json'},'body':JSON[_0x5d0210(0x96)](_0x469911)});}export async function putRuntimeSkillVersionDiagram(_0x3dc98f,_0x49033f,_0x14c123,_0x2ee1e9,_0x58ef60){const _0x73901a=a108_0x1016fe;return skillHubJsonRequest(runtimeSkillVersionDiagramPath(_0x3dc98f,_0x49033f,_0x14c123),{'method':_0x73901a(0x120),'query':{'scope':_0x2ee1e9},'headers':{'Content-Type':_0x73901a(0xb8)},'body':JSON[_0x73901a(0x96)](_0x58ef60)});}export async function getRuntimeSkillVersionDiagram(_0x58e673,_0x210533,_0x29cdb7,_0x10aee6){const _0x26d06e=a108_0x1016fe,_0x203cb8=await skillHubJsonRequest(runtimeSkillVersionDiagramPath(_0x58e673,_0x210533,_0x29cdb7),{'query':{'scope':_0x10aee6}});if(typeof _0x203cb8[_0x26d06e(0x82)]!=='boolean')throw CliErrors['apiError'](_0x26d06e(0xbc));const _0xebaff7=_0x203cb8['sourceFingerprint'];if(typeof _0xebaff7!=='string'||!/^sha256:[0-9a-f]{64}$/[_0x26d06e(0x147)](_0xebaff7))throw CliErrors[_0x26d06e(0xad)]('Invalid\x20Skill\x20diagram\x20response:\x20missing\x20canonical\x20sourceFingerprint.','SkillHub\x20must\x20return\x20the\x20exact\x20SkillVersion\x20fingerprint\x20even\x20when\x20found=false.');const _0x52cbe5=_0x203cb8[_0x26d06e(0xe5)];if(_0x203cb8['found']&&(!Number['isInteger'](_0x52cbe5)||Number(_0x52cbe5)<0x1))throw CliErrors['apiError'](_0x26d06e(0xb2));if(!_0x203cb8['found']&&_0x52cbe5!==undefined&&_0x52cbe5!==null)throw CliErrors[_0x26d06e(0xad)](_0x26d06e(0xc3));const _0x1668fa=_0x203cb8[_0x26d06e(0x82)]?Number(_0x52cbe5):null;return{..._0x203cb8,'sourceFingerprint':_0xebaff7,'diagramRevision':_0x1668fa,'expectedDiagramRevision':_0x1668fa??0x0};}export async function downloadRuntimeSkillPackage(_0x1528c1,_0x413dcd,_0x198191,_0x56cbd4){const _0x212fa9=a108_0x1016fe;void _0x1528c1;const _0x3d6554=_0x56cbd4?_0x212fa9(0x130)+encodeURIComponent(_0x198191)+'/'+encodeURIComponent(_0x413dcd)+_0x212fa9(0x99)+encodeURIComponent(_0x56cbd4)+_0x212fa9(0x119):'/api/cli/v1/skills/'+encodeURIComponent(_0x198191)+'/'+encodeURIComponent(_0x413dcd)+'/download';return skillHubBinaryRequest(_0x3d6554);}async function publishRuntimeSkill(_0x4b236b,_0x34de3e,_0xb23683){const _0x59bfe1=a108_0x1016fe,_0x9e1c88=buildRuntimeSkillPublishForm(_0x34de3e,_0xb23683['visibility']),_0x58facc=await skillHubJsonRequest(_0x59bfe1(0x130)+encodeURIComponent(_0x4b236b)+_0x59bfe1(0xb6),{'method':'POST','query':{'confirmWarnings':_0xb23683['confirmWarnings']===!![]?!![]:undefined},'body':_0x9e1c88});return assertJointDiagramAcknowledged(_0x34de3e['diagram'],_0x58facc[_0x59bfe1(0x126)],_0x59bfe1(0x115)),{'appCode':_0x58facc[_0x59bfe1(0xb3)]??_0x4b236b,'skillCode':_0x58facc[_0x59bfe1(0x10c)]??_0x34de3e[_0x59bfe1(0xa6)]??'','skillName':_0x34de3e[_0x59bfe1(0x90)]??_0x58facc[_0x59bfe1(0x10c)]??_0x34de3e['skillCode'],'description':_0x34de3e[_0x59bfe1(0x11a)],'scope':skillHubVisibilityToScope(_0x58facc[_0x59bfe1(0x14f)]??_0xb23683[_0x59bfe1(0x14f)])??'personal','version':_0x58facc[_0x59bfe1(0x9a)]??_0x34de3e[_0x59bfe1(0x9a)],'tags':_0x34de3e[_0x59bfe1(0x123)],'content':_0x34de3e[_0x59bfe1(0xff)],'diagramBound':_0x58facc[_0x59bfe1(0x126)]===!![]};}function assertJointDiagramAcknowledged(_0x3dda98,_0x1a9b45,_0x18c029){const _0x1849af=a108_0x1016fe;if(!_0x3dda98||_0x1a9b45===!![])return;throw CliErrors[_0x1849af(0xad)](_0x1849af(0xa3)+_0x18c029+'.',_0x1849af(0xfc));}function buildRuntimeSkillPublishForm(_0x3d9e6b,_0x19feec){const _0x5cfba3=a108_0x1016fe,_0x4438f0=new FormData();return _0x4438f0[_0x5cfba3(0xbf)](_0x5cfba3(0xc4),runtimeSkillPackageFile(_0x3d9e6b)),_0x3d9e6b['skillName']?.[_0x5cfba3(0x142)]()&&_0x4438f0[_0x5cfba3(0xbf)](_0x5cfba3(0x13a),_0x3d9e6b[_0x5cfba3(0x90)][_0x5cfba3(0x142)]()),_0x4438f0['set'](_0x5cfba3(0x14f),_0x19feec),_0x3d9e6b[_0x5cfba3(0xf7)]&&_0x4438f0['set']('diagram',new Blob([JSON['stringify'](_0x3d9e6b[_0x5cfba3(0xf7)])],{'type':_0x5cfba3(0xb8)})),_0x4438f0;}function runtimeSkillVersionDiagramPath(_0x30f578,_0x151fc5,_0x4c4df8,_0x271d98=''){const _0x3c0c=a108_0x1016fe;return _0x3c0c(0x130)+encodeURIComponent(_0x30f578)+'/'+encodeURIComponent(_0x151fc5)+'/versions/'+encodeURIComponent(_0x4c4df8)+'/diagram'+_0x271d98;}function runtimeSkillPackageFile(_0x52ef97){const _0x567c5c=a108_0x1016fe;if(!_0x52ef97[_0x567c5c(0x144)])throw CliErrors[_0x567c5c(0x108)]('Missing\x20Skill\x20package\x20payload.');const _0x9fd765=Buffer[_0x567c5c(0x98)](_0x52ef97[_0x567c5c(0x144)],_0x567c5c(0xac)),_0x2937b1=new Blob([_0x9fd765],{'type':_0x567c5c(0xab)}),_0x3a173d=(_0x52ef97[_0x567c5c(0xa6)]||_0x567c5c(0x11e))+_0x567c5c(0x149);if(typeof File!==_0x567c5c(0x116))return new File([_0x2937b1],_0x3a173d,{'type':_0x567c5c(0xab)});return _0x2937b1;}function normalizeSkillHubRuntimeListResponse(_0x520948,_0x5aa87a,_0x3d10a9,_0x26a0d6,_0x54abb6=![]){const _0xf80833=a108_0x1016fe,_0x568cf8=Array[_0xf80833(0xd9)](_0x5aa87a)?_0x5aa87a:Array['isArray'](_0x5aa87a?.[_0xf80833(0xbe)])?_0x5aa87a[_0xf80833(0xbe)]:[],_0x42706d=_0x26a0d6?.[_0xf80833(0x142)](),_0x6c0192=_0x568cf8[_0xf80833(0x12a)](_0x23f051=>!_0x42706d||_0x23f051['slug']===_0x42706d)[_0xf80833(0x12a)](_0x54832c=>!_0x54abb6||_0x54832c[_0xf80833(0xfb)]?.[_0xf80833(0xc8)]===_0xf80833(0xf2)&&Boolean(_0x54832c[_0xf80833(0xfb)][_0xf80833(0x9a)]?.['trim']()))[_0xf80833(0x14c)](skillHubRuntimeItemToRuntimeSkill)[_0xf80833(0x12a)](_0x125bcc=>Boolean(_0x125bcc)),_0x13199e=_0x6c0192[_0xf80833(0x12a)](_0x125f56=>_0x125f56[_0xf80833(0xd4)]===_0xf80833(0x127)),_0x3d2932=_0x6c0192[_0xf80833(0x12a)](_0x2daf77=>_0x2daf77[_0xf80833(0xd4)]==='company');return{'appCode':_0x520948,'personal':_0x3d10a9===_0xf80833(0x8b)?[]:_0x13199e,'company':_0x3d10a9==='personal'?[]:_0x3d2932,'effective':buildEffectiveRuntimeSkills(_0x13199e,_0x3d2932,_0x3d10a9)};}function skillHubRuntimeItemToRuntimeSkill(_0xe2cf5b){const _0x37d3fb=a108_0x1016fe,_0x706ad4=_0xe2cf5b['slug']?.[_0x37d3fb(0x142)](),_0x29d8a1=skillHubVisibilityToScope(_0xe2cf5b[_0x37d3fb(0x14f)]);if(!_0x706ad4||!_0x29d8a1)return undefined;return{'id':_0xe2cf5b['id'],'appCode':_0xe2cf5b[_0x37d3fb(0xb3)],'skillCode':_0x706ad4,'skillName':_0xe2cf5b[_0x37d3fb(0x13a)]??_0x706ad4,'description':_0xe2cf5b[_0x37d3fb(0x87)],'example':_0xe2cf5b['example'],'scope':_0x29d8a1,'version':skillHubRuntimeItemVersion(_0xe2cf5b),'status':_0xe2cf5b[_0x37d3fb(0xc8)]};}function skillHubRuntimeDetailToRuntimeSkill(_0x2dd392){const _0x2b7493=a108_0x1016fe,_0x32a257=_0x2dd392[_0x2b7493(0x10c)]?.[_0x2b7493(0x142)]();if(!_0x32a257)return undefined;return{'id':_0x2dd392['id'],'appCode':_0x2dd392[_0x2b7493(0xb3)],'skillCode':_0x32a257,'skillName':_0x2dd392['displayName']??_0x32a257,'description':_0x2dd392[_0x2b7493(0x87)],'example':_0x2dd392['example'],'scope':skillHubVisibilityToScope(_0x2dd392['visibility'])??_0x2dd392['visibility']?.['toLowerCase'](),'version':skillHubRuntimeItemVersion(_0x2dd392),'status':_0x2dd392['status']};}function skillHubVisibilityToScope(_0x4b53d2){const _0x1efa10=a108_0x1016fe;if(_0x4b53d2==='PRIVATE')return _0x1efa10(0x127);if(_0x4b53d2===_0x1efa10(0x7b))return'company';return undefined;}function skillHubRuntimeItemVersion(_0x393c53){const _0x16d575=a108_0x1016fe;return _0x393c53[_0x16d575(0xfb)]?.['version']??_0x393c53[_0x16d575(0x101)]?.[_0x16d575(0x9a)]??_0x393c53[_0x16d575(0x14d)]?.['version'];}function buildEffectiveRuntimeSkills(_0x148616,_0x2a9b68,_0x5ecaf9){const _0x1ba579=a108_0x1016fe;if(_0x5ecaf9===_0x1ba579(0x127))return _0x148616;if(_0x5ecaf9===_0x1ba579(0x8b))return _0x2a9b68;const _0x145141=new Map();for(const _0x483b8b of _0x2a9b68){_0x145141[_0x1ba579(0xbf)](_0x483b8b['skillCode'],_0x483b8b);}for(const _0x279628 of _0x148616){_0x145141['set'](_0x279628[_0x1ba579(0xa6)],_0x279628);}return Array[_0x1ba579(0x98)](_0x145141['values']());}function normalizeRuntimeSkillListResponse(_0x4ba770,_0x5074de){const _0x1f067a=a108_0x1016fe;if(Array[_0x1f067a(0xd9)](_0x5074de)){const _0x2f8960=_0x5074de[_0x1f067a(0x12a)](_0x177ddb=>_0x177ddb[_0x1f067a(0xd4)]==='personal'),_0x59601=_0x5074de['filter'](_0x4a7765=>_0x4a7765[_0x1f067a(0xd4)]==='company');return{'appCode':_0x4ba770,'personal':_0x2f8960,'company':_0x59601,'effective':[..._0x59601,..._0x2f8960]};}return{'appCode':_0x5074de?.['appCode']??_0x4ba770,'personal':Array[_0x1f067a(0xd9)](_0x5074de?.[_0x1f067a(0x127)])?_0x5074de[_0x1f067a(0x127)]:[],'company':Array[_0x1f067a(0xd9)](_0x5074de?.[_0x1f067a(0x8b)])?_0x5074de['company']:[],'effective':Array[_0x1f067a(0xd9)](_0x5074de?.[_0x1f067a(0x140)])?_0x5074de[_0x1f067a(0x140)]:[]};}function normalizeRuntimeRoleUserList(_0x48bd92,_0x4551f1){const _0x549b61=a108_0x1016fe;if(!Array[_0x549b61(0xd9)](_0x48bd92))throw CliErrors[_0x549b61(0xad)](_0x549b61(0x106)+_0x4551f1+_0x549b61(0xf8));return _0x48bd92[_0x549b61(0x14c)]((_0x2ca5eb,_0x33d324)=>{const _0x29f8ff=_0x549b61;if(!_0x2ca5eb||typeof _0x2ca5eb!==_0x29f8ff(0x13d)||Array['isArray'](_0x2ca5eb))throw CliErrors[_0x29f8ff(0xad)](_0x29f8ff(0x106)+_0x4551f1+'['+_0x33d324+']\x20must\x20be\x20an\x20object.');const _0x4ecc3e=_0x2ca5eb,_0xb79817=normalizeRuntimeUserId(_0x4ecc3e['userId']);if(_0xb79817===undefined)throw CliErrors[_0x29f8ff(0xad)](_0x29f8ff(0x106)+_0x4551f1+'['+_0x33d324+'].userId\x20is\x20invalid.');return{..._0x4ecc3e,'userId':_0xb79817};});}function normalizeRuntimeRoleUsersResponse(_0x52073a){const _0x56dcd1=a108_0x1016fe;return extractList(_0x52073a)[_0x56dcd1(0x14c)]((_0x4bbdef,_0x3f0c22)=>{const _0x594857=_0x56dcd1;if(!_0x4bbdef||typeof _0x4bbdef!==_0x594857(0x13d)||Array[_0x594857(0xd9)](_0x4bbdef))throw CliErrors[_0x594857(0xad)]('Invalid\x20runtime\x20role\x20members\x20response:\x20roleList['+_0x3f0c22+_0x594857(0x102));const _0x29de7e=_0x4bbdef;return{..._0x29de7e,'userList':normalizeRuntimeRoleUserList(_0x29de7e[_0x594857(0x128)],_0x594857(0x80)+_0x3f0c22+_0x594857(0xe3)),..._0x29de7e['applyUserList']===undefined?{}:{'applyUserList':normalizeRuntimeRoleUserList(_0x29de7e[_0x594857(0x7e)],_0x594857(0x80)+_0x3f0c22+_0x594857(0x139))}};});}export async function listRuntimeAppRoles(_0x492e4e,_0x59fd36={}){const _0x53c8ff=a108_0x1016fe,_0x35051b=_0x59fd36[_0x53c8ff(0xe9)]??0x1,_0x19b188=Math[_0x53c8ff(0x7c)](Math[_0x53c8ff(0xcf)](_0x59fd36[_0x53c8ff(0x10e)]??0x64,0x1),0x64),_0xded121=await sdkRequest(_0x492e4e,_0x214959=>_0x214959[_0x53c8ff(0x145)][_0x53c8ff(0xc0)]({..._0x59fd36['roleName']?{'roleName':_0x59fd36[_0x53c8ff(0xa1)]}:{},'currentPage':_0x35051b,'pageSize':_0x19b188}));return{'items':extractList(_0xded121),'paging':extractPaging(_0xded121)};}export async function createRuntimeAppRole(_0x5c27b4){const _0x3ea6e3=a108_0x1016fe;return sdkRequest(_0x5c27b4[_0x3ea6e3(0xcb)],_0x36a79b=>_0x36a79b['permit'][_0x3ea6e3(0x8f)]({'roleType':'CUSTOM',..._0x5c27b4}));}function a108_0x3bf4(){const _0x5dd820=['getDatasetPermitMeta','API\x20error:\x20','stringify','getMenuPermitList','from','/versions/','version','Invalid\x20import\x20task\x20readback\x20response.','size','errorCode','cursor','data','isJson','roleName','/publish/validate','SkillHub\x20does\x20not\x20support\x20atomic\x20Skill\x20diagram\x20','approval','importReadback','skillCode','saveMenuPermits','SkillHub\x20returned\x20non-JSON\x20response\x20(HTTP\x20','permitList','entries','application/zip','base64','apiError','approve','confirmWarnings','functionName','Check\x20your\x20credentials\x20and\x20try\x20again.','Invalid\x20Skill\x20diagram\x20response:\x20found\x20diagram\x20has\x20no\x20positive\x20diagramRevision.','namespace','harness','ocr','/publish','resolvedSlug','application/json','Backend\x20Function\x20not\x20found\x20or\x20inaccessible:\x20appCode=','runtime','app','Invalid\x20Skill\x20diagram\x20response:\x20missing\x20found\x20state.','AbortError','items','set','getRoleList','errors','Toolbox\x20error\x20code:\x20','Invalid\x20Skill\x20diagram\x20response:\x20absent\x20diagram\x20must\x20have\x20a\x20null\x20diagramRevision.','file','savePagePermit','error','queryAppUsers','status','arrayBuffer','transfer','appCode','Invalid\x20import\x20readback\x20response.','bytes','61AlUhMK','max','getDatasetPermitList','Personal\x20Backend\x20Function\x20not\x20found:\x20id=','getPagePermit','records','scope','importBatch','tableName','349034OOXvfT','query','isArray','/api/node-toolbox/','99jCgxSe','/api/runtime/v1/namespaces/','/client/user-accounts/bind','signal','replace','datasetMeta','POST','GET','].userList','retryAfter','diagramRevision','string','services','Invalid\x20app\x20config\x20value:\x20key=','currentPage','DELETE','limit','Invalid\x20app\x20list\x20response:\x20missing\x20data.tableData.','create','get','PRIVATE','updateRole','abort','PUBLISHED','getRolePermitList','toString','myApps','sqlCode','diagram','\x20must\x20be\x20an\x20array.','diagramValidated','25ANfwwI','publishedVersion','Deploy\x20a\x20SkillHub\x20version\x20that\x20returns\x20diagramValidated/diagramBound\x20before\x20publishing\x20with\x20this\x20CLI.','invokeSource','20mnlTut','content','msg','headlineVersion',']\x20must\x20be\x20an\x20object.','upload','8194SOQqzK','text','Invalid\x20runtime\x20role\x20members\x20response:\x20','resolvedVersion','validation','/api/v1/skills/','listNotificationChannels','searchParams','slug','/validate','pageSize','Invalid\x20login\x20user\x20info\x20response:\x20expected\x20object.','SkillHub\x20API\x20error:\x20','2900766dnMKCc','code','all','145900qxMjeE','publish','undefined','getRoleUserList','api-doc-generator','/download','description','warnings','Configure\x20accessKey\x20in\x20','Runtime\x20SDK\x20request\x20failed.','skill','Invalid\x20Backend\x20Function\x20response:\x20gmtModified\x20must\x20be\x20an\x20integer\x20timestamp\x20or\x20null.','PUT','installableOnly','Request\x20timeout:\x20','tags','queryUrl','getResourceMenuList','diagramBound','personal','userList','find','filter','Dataset\x20import\x20requires\x20Client\x20AK.','561438myqWNa','importImage','join','bff','/api/cli/v1/skills/','success','newConfigFileName','importImageReadback','tableData','Toolbox\x20API\x20error:\x20','61384aCtrNj','number','getModel','].applyUserList','displayName','dataset_','boolean','object','listTodo','message','effective','Download\x20failed:\x20','trim','bindAccount','packageBase64','permit','gmtModified','test','sql','.zip','name','SkillHub\x20error\x20code:\x20','map','ownerPreviewVersion','API\x20returned\x20non-JSON\x20response\x20(HTTP\x20','visibility','type','NAMESPACE_ONLY','min','contentHash','applyUserList','/api/harness/apps/','roleList[','update','found','appName','authRequired','Invalid\x20notification\x20config\x20list\x20response.','deleteRole','summary','execute','markdown','errorMsg','company','API\x20error\x20code:\x20','response',',\x20name=','createRole','skillName','/skills','artifact','1422840hpIImR'];a108_0x3bf4=function(){return _0x5dd820;};return a108_0x3bf4();}export async function updateRuntimeAppRole(_0x3f11f1){const _0x2363d2=a108_0x1016fe;return sdkRequest(_0x3f11f1[_0x2363d2(0xcb)],_0x29d529=>_0x29d529[_0x2363d2(0x145)][_0x2363d2(0xf0)](_0x3f11f1));}export async function deleteRuntimeAppRole(_0x1330bc){const _0xe45f68=a108_0x1016fe;return sdkRequest(undefined,_0x4090aa=>_0x4090aa[_0xe45f68(0x145)][_0xe45f68(0x86)](_0x1330bc));}export async function listRuntimeRoleUsers(_0xea2650){const _0x3b1d17=a108_0x1016fe,_0x4d3205=await sdkRequest(_0xea2650,_0x4d9b63=>_0x4d9b63[_0x3b1d17(0x145)][_0x3b1d17(0x117)]());return normalizeRuntimeRoleUsersResponse(_0x4d3205);}export async function updateRuntimeRoleUsers(_0x3ffb18,_0x3f90df){const _0x160170=a108_0x1016fe;return sdkRequest(_0x3ffb18,_0x416ace=>_0x416ace[_0x160170(0x145)]['updateRoleUserList']({'roleList':_0x3f90df}));}export async function listRuntimeAppUsers(_0x5397ad){const _0x14e167=a108_0x1016fe,_0x5a23db=await sdkRequest(_0x5397ad,_0x4eb942=>_0x4eb942[_0x14e167(0x145)][_0x14e167(0xc7)]());return extractList(_0x5a23db);}export async function listRuntimePermitRoles(_0x2cc073,_0x51039d={}){const _0xa8a8b2=a108_0x1016fe,_0x32713a=await sdkRequest(_0x2cc073,_0x56dd3e=>_0x56dd3e['permit'][_0xa8a8b2(0xf3)](_0x51039d));return extractList(_0x32713a);}export async function getRuntimePagePermit(_0x5063a7){const _0x5a5716=a108_0x1016fe;return sdkRequest(undefined,_0x4db130=>_0x4db130[_0x5a5716(0x145)][_0x5a5716(0xd2)](_0x5063a7));}export async function saveRuntimePagePermit(_0x469f19){const _0x35de28=a108_0x1016fe;return sdkRequest(_0x469f19[_0x35de28(0xcb)],_0x2ff1c2=>_0x2ff1c2[_0x35de28(0x145)][_0x35de28(0xc5)](_0x469f19));}export async function getRuntimeRoleMenuResources(_0x1c2844,_0x19a76c){const _0x20c2a1=a108_0x1016fe,_0x356f80=await sdkRequest(_0x1c2844,_0x3ab6d3=>_0x3ab6d3['permit'][_0x20c2a1(0x125)]({'roleId':_0x19a76c}));return extractList(_0x356f80);}export async function listRuntimeMenuRolePermits(_0x2c00bc){const _0x9372f9=a108_0x1016fe,_0x56b17b=await sdkRequest(_0x2c00bc,_0xfb21f9=>_0xfb21f9[_0x9372f9(0x145)][_0x9372f9(0x97)]());return Array[_0x9372f9(0xd9)](_0x56b17b?.['permitList'])?_0x56b17b[_0x9372f9(0xa9)]:[];}export async function saveRuntimeMenuRolePermits(_0x16ca24,_0x148e64){const _0x2e3597=a108_0x1016fe;return sdkRequest(_0x16ca24,_0x50314a=>_0x50314a[_0x2e3597(0x145)][_0x2e3597(0xa7)]({'permitList':_0x148e64}));}export async function listRuntimeDatasetPermits(_0x393ec6,_0x2216a5){const _0x2e5a39=a108_0x1016fe,_0x50541a=await sdkRequest(_0x393ec6,_0xcead2d=>_0xcead2d[_0x2e5a39(0x145)][_0x2e5a39(0xd0)](_0x2216a5));return Array[_0x2e5a39(0xd9)](_0x50541a?.[_0x2e5a39(0xa9)])?_0x50541a['permitList']:[];}export async function listRuntimeDatasetRolePermits(_0x3bb18b){const _0x5b8f12=a108_0x1016fe,_0x57ca09=await sdkRequest(_0x3bb18b,_0x90d0d3=>_0x90d0d3[_0x5b8f12(0x145)][_0x5b8f12(0x94)]());return Array['isArray'](_0x57ca09?.[_0x5b8f12(0xa9)])?_0x57ca09[_0x5b8f12(0xa9)]:[];}export async function saveRuntimeDatasetRolePermits(_0x460119,_0x5f5ce8){const _0x52ecc8=a108_0x1016fe;return sdkRequest(_0x460119,_0xc01115=>_0xc01115[_0x52ecc8(0x145)]['saveDatasetPermits']({'permitList':_0x5f5ce8}));}