@lovrabet/lovrabet-cli 2.3.10 → 2.3.11

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 (186) 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 +3 -3
  185. package/skills/lovrabet/references/lovrabet-schedule-workflow.md +50 -1
  186. package/skills/lovrabet.manifest.json +3 -3
@@ -1 +1 @@
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
+ function a96_0x2b72(_0x3afa9b,_0x5ed466){_0x3afa9b=_0x3afa9b-0xa6;const _0x475367=a96_0x4753();let _0x2b72b0=_0x475367[_0x3afa9b];return _0x2b72b0;}const a96_0x36fd78=a96_0x2b72;function a96_0x4753(){const _0x489f24=['2763eGHlvW','6688850aJxsKk','7243182yhdVbi','10611980aKaeUJ','1360155qFmAmH','5158551kzPaFk','2USrqFN','33872oBoJvZ','5111448BLwrvW','client-ak','7EoOTZa'];a96_0x4753=function(){return _0x489f24;};return a96_0x4753();}(function(_0x1130c7,_0x4adb88){const _0x3d74fc=a96_0x2b72,_0x498e33=_0x1130c7();while(!![]){try{const _0x401980=-parseInt(_0x3d74fc(0xae))/0x1+-parseInt(_0x3d74fc(0xb0))/0x2*(parseInt(_0x3d74fc(0xaf))/0x3)+parseInt(_0x3d74fc(0xa7))/0x4+parseInt(_0x3d74fc(0xab))/0x5+parseInt(_0x3d74fc(0xac))/0x6*(parseInt(_0x3d74fc(0xa9))/0x7)+parseInt(_0x3d74fc(0xa6))/0x8*(parseInt(_0x3d74fc(0xaa))/0x9)+-parseInt(_0x3d74fc(0xad))/0xa;if(_0x401980===_0x4adb88)break;else _0x498e33['push'](_0x498e33['shift']());}catch(_0x557f58){_0x498e33['push'](_0x498e33['shift']());}}}(a96_0x4753,0xefb25));export const AUTH_MODE={'ClientAk':a96_0x36fd78(0xa8)};export function isAuthMode(_0x206987){return _0x206987===AUTH_MODE['ClientAk'];}
@@ -1 +1 @@
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
+ function a97_0xd42f(_0x432726,_0x5ec0a9){_0x432726=_0x432726-0xfc;const _0x4c85e5=a97_0x4c85();let _0xd42f94=_0x4c85e5[_0x432726];return _0xd42f94;}function a97_0x4c85(){const _0x204249=['Skip\x20confirmation\x20for\x20high-risk\x20writes','JSON\x20params\x20for\x20execute\x20commands','Name\x20filter','40pHuVjr','appcode','params','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20implies\x20--format\x20json\x20when\x20current\x20format\x20is\x20pretty)','Show\x20help','Clear\x20output','help','<expr>','verbose','Verbose\x20output','format','map','global','env','dryRun','229ZRxalB','name','production\x20|\x20development\x20|\x20daily','clear','3596585hnFQHC','string','non-interactive','200403jdzsYf','7181784wqDhaB','meowKey','1605310pFlxxe','1000xBcADW','yes','SQL\x20query\x20code','<name>','cliBinName','Environment','3432648cvPRjq','nonInteractive','5462jSBfZl','Force\x20non-interactive\x20mode\x20(CI)','app','fromEntries','Alias\x20for\x20--non-interactive','boolean','json\x20|\x20pretty\x20|\x20compress','dry-run','Preview\x20operation\x20without\x20executing','cliDisplayName','10122xyvqrd'];a97_0x4c85=function(){return _0x204249;};return a97_0x4c85();}const a97_0x372a65=a97_0xd42f;(function(_0x3dd952,_0x40809d){const _0x4e073d=a97_0xd42f,_0x339403=_0x3dd952();while(!![]){try{const _0x44bd8d=-parseInt(_0x4e073d(0x10e))/0x1*(parseInt(_0x4e073d(0x121))/0x2)+parseInt(_0x4e073d(0x12b))/0x3*(parseInt(_0x4e073d(0x119))/0x4)+parseInt(_0x4e073d(0x112))/0x5+parseInt(_0x4e073d(0x11f))/0x6+-parseInt(_0x4e073d(0x118))/0x7+-parseInt(_0x4e073d(0x116))/0x8+-parseInt(_0x4e073d(0x115))/0x9*(-parseInt(_0x4e073d(0xff))/0xa);if(_0x44bd8d===_0x40809d)break;else _0x339403['push'](_0x339403['shift']());}catch(_0x5e03c4){_0x339403['push'](_0x339403['shift']());}}}(a97_0x4c85,0x731f5));import{PRODUCT_CONFIG}from'../constant/product.js';import{LOVRABET_NPM_PACKAGE_NAME}from'../constant/distribution.js';export const CLI_BIN_NAME=PRODUCT_CONFIG[a97_0x372a65(0x11d)];export const CLI_DISPLAY_NAME=PRODUCT_CONFIG[a97_0x372a65(0x12a)];export const NPM_PACKAGE_NAME=LOVRABET_NPM_PACKAGE_NAME;export const GLOBAL_FLAGS=[{'name':'appcode','meowKey':a97_0x372a65(0x100),'type':a97_0x372a65(0x113),'description':'Override\x20appcode','hint':'<code>'},{'name':a97_0x372a65(0x123),'meowKey':a97_0x372a65(0x123),'type':a97_0x372a65(0x113),'description':'Select\x20app\x20profile\x20by\x20name','hint':a97_0x372a65(0x11c)},{'name':a97_0x372a65(0x10c),'meowKey':a97_0x372a65(0x10c),'type':a97_0x372a65(0x113),'description':a97_0x372a65(0x11e),'hint':a97_0x372a65(0x110)},{'name':a97_0x372a65(0x109),'meowKey':a97_0x372a65(0x109),'type':'string','description':'Output\x20format','hint':a97_0x372a65(0x127)},{'name':'jq','meowKey':'jq','type':'string','description':a97_0x372a65(0x102),'hint':a97_0x372a65(0x106)},{'name':a97_0x372a65(0x128),'meowKey':a97_0x372a65(0x10d),'type':a97_0x372a65(0x126),'description':a97_0x372a65(0x129)},{'name':a97_0x372a65(0x11a),'meowKey':a97_0x372a65(0x11a),'type':a97_0x372a65(0x126),'description':a97_0x372a65(0xfc)},{'name':a97_0x372a65(0x114),'meowKey':a97_0x372a65(0x120),'type':'boolean','description':a97_0x372a65(0x122)},{'name':a97_0x372a65(0x10b),'meowKey':'global','type':a97_0x372a65(0x126),'description':'Use\x20global\x20config\x20scope'},{'name':'ci','meowKey':'ci','type':a97_0x372a65(0x126),'description':a97_0x372a65(0x125),'hidden':!![]},{'name':a97_0x372a65(0x105),'meowKey':a97_0x372a65(0x105),'type':a97_0x372a65(0x126),'description':a97_0x372a65(0x103)},{'name':'id','meowKey':'id','type':a97_0x372a65(0x113),'description':'Record\x20ID','hidden':!![]},{'name':'name','meowKey':a97_0x372a65(0x10f),'type':a97_0x372a65(0x113),'description':a97_0x372a65(0xfe),'hidden':!![]},{'name':'sqlcode','meowKey':'sqlcode','type':a97_0x372a65(0x113),'description':a97_0x372a65(0x11b),'hidden':!![]},{'name':a97_0x372a65(0x101),'meowKey':'params','type':a97_0x372a65(0x113),'description':a97_0x372a65(0xfd),'hidden':!![]},{'name':a97_0x372a65(0x107),'meowKey':'verbose','type':a97_0x372a65(0x126),'description':a97_0x372a65(0x108),'hidden':!![]},{'name':'clear','meowKey':a97_0x372a65(0x111),'type':a97_0x372a65(0x126),'description':a97_0x372a65(0x104),'hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set(['appcode',a97_0x372a65(0x123),a97_0x372a65(0x10c),a97_0x372a65(0x109),'jq','dry-run',a97_0x372a65(0x11a),a97_0x372a65(0x114),'ci']);export function buildMeowFlags(){const _0x93b910=a97_0x372a65;return Object[_0x93b910(0x124)](GLOBAL_FLAGS[_0x93b910(0x10a)](_0xd060a0=>[_0xd060a0[_0x93b910(0x117)],{'type':_0xd060a0['type']}]));}
@@ -1 +1 @@
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
+ function a98_0x58e6(_0xc34f87,_0x5bd745){_0xc34f87=_0xc34f87-0x1ba;const _0x1d98f8=a98_0x1d98();let _0x58e6ec=_0x1d98f8[_0xc34f87];return _0x58e6ec;}const a98_0x264c07=a98_0x58e6;(function(_0x17fe33,_0x50d6e2){const _0x29c6f0=a98_0x58e6,_0x11d29e=_0x17fe33();while(!![]){try{const _0x566775=-parseInt(_0x29c6f0(0x1c6))/0x1+-parseInt(_0x29c6f0(0x1c0))/0x2+-parseInt(_0x29c6f0(0x1bd))/0x3+-parseInt(_0x29c6f0(0x1bc))/0x4*(-parseInt(_0x29c6f0(0x1c3))/0x5)+-parseInt(_0x29c6f0(0x1c4))/0x6*(-parseInt(_0x29c6f0(0x1bb))/0x7)+-parseInt(_0x29c6f0(0x1c1))/0x8+parseInt(_0x29c6f0(0x1c7))/0x9;if(_0x566775===_0x50d6e2)break;else _0x11d29e['push'](_0x11d29e['shift']());}catch(_0x3cf480){_0x11d29e['push'](_0x11d29e['shift']());}}}(a98_0x1d98,0x62383));export const DEFAULT_APP_PROFILE_NAME=a98_0x264c07(0x1ba);export const DEFAULT_CONFIG_VALUES={'env':a98_0x264c07(0x1c5),'format':a98_0x264c07(0x1c2),'locale':a98_0x264c07(0x1be),'riskLevel':a98_0x264c07(0x1bf)};function a98_0x1d98(){const _0x1ec7d8=['36630CNaApD','production','117190CvZGwl','10638171HekOZe','main','917vjKNSM','92268HSxHdd','2198835YrJTZI','en-US','write','613348pvfFHV','3750336mCrrxJ','compress','10nTtLai'];a98_0x1d98=function(){return _0x1ec7d8;};return a98_0x1d98();}export const DEFAULT_COMMAND_OUTPUT_FORMAT=a98_0x264c07(0x1c2);
@@ -1 +1 @@
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
+ function a99_0x5a4e(){const _0x5f5588=['729hBAEDa','cliCdnBaseUrl','5511600WsFRLD','6769700hyLtdQ','skillSource','136TPUyYH','3956790lcuJIu','14DAeQXZ','npmPackageName','214QfXyNt','98650mWKsJF','/dist/lovrabet-cli/config/index.json','3776010dVOcmU','npmRegistryBaseUrl','2710088ORjyHd'];a99_0x5a4e=function(){return _0x5f5588;};return a99_0x5a4e();}const a99_0x1796b5=a99_0x57cd;(function(_0x3418ba,_0x480806){const _0x1580ac=a99_0x57cd,_0x3b9e58=_0x3418ba();while(!![]){try{const _0x333502=-parseInt(_0x1580ac(0x1b4))/0x1*(-parseInt(_0x1580ac(0x1b0))/0x2)+-parseInt(_0x1580ac(0x1b7))/0x3+-parseInt(_0x1580ac(0x1ad))/0x4+parseInt(_0x1580ac(0x1ae))/0x5+parseInt(_0x1580ac(0x1b1))/0x6+-parseInt(_0x1580ac(0x1b2))/0x7*(-parseInt(_0x1580ac(0x1aa))/0x8)+parseInt(_0x1580ac(0x1ab))/0x9*(parseInt(_0x1580ac(0x1b5))/0xa);if(_0x333502===_0x480806)break;else _0x3b9e58['push'](_0x3b9e58['shift']());}catch(_0x2fb3f4){_0x3b9e58['push'](_0x3b9e58['shift']());}}}(a99_0x5a4e,0xd3e86));import{PRODUCT_CONFIG}from'../constant/product.js';export const LOVRABET_NPM_PACKAGE_NAME=PRODUCT_CONFIG[a99_0x1796b5(0x1b3)];export const LOVRABET_SKILL_SOURCE=PRODUCT_CONFIG[a99_0x1796b5(0x1af)];function a99_0x57cd(_0xe8d02f,_0x1ce46c){_0xe8d02f=_0xe8d02f-0x1a9;const _0x5a4e51=a99_0x5a4e();let _0x57cde8=_0x5a4e51[_0xe8d02f];return _0x57cde8;}export const NPM_REGISTRY_BASE_URL=PRODUCT_CONFIG[a99_0x1796b5(0x1a9)];export const LOVRABET_CLI_CDN_BASE_URL=PRODUCT_CONFIG[a99_0x1796b5(0x1ac)];export const LOVRABET_CLI_VERSION_POLICY_URL=LOVRABET_CLI_CDN_BASE_URL+a99_0x1796b5(0x1b6);
@@ -1 +1 @@
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
+ const a100_0x9395b6=a100_0x2e8a;(function(_0x3b6419,_0x50c22b){const _0x2e5159=a100_0x2e8a,_0x146fce=_0x3b6419();while(!![]){try{const _0x10ee54=-parseInt(_0x2e5159(0x151))/0x1*(-parseInt(_0x2e5159(0x168))/0x2)+parseInt(_0x2e5159(0x157))/0x3*(parseInt(_0x2e5159(0x15f))/0x4)+-parseInt(_0x2e5159(0x163))/0x5+parseInt(_0x2e5159(0x159))/0x6+parseInt(_0x2e5159(0x164))/0x7*(-parseInt(_0x2e5159(0x15d))/0x8)+parseInt(_0x2e5159(0x15b))/0x9+parseInt(_0x2e5159(0x167))/0xa*(parseInt(_0x2e5159(0x158))/0xb);if(_0x10ee54===_0x50c22b)break;else _0x146fce['push'](_0x146fce['shift']());}catch(_0x368b1f){_0x146fce['push'](_0x146fce['shift']());}}}(a100_0x2416,0xc67a7));import{CliErrors}from'../errors.js';function a100_0x2416(){const _0x17a629=['12652qcrtqn','kbService','apiDomain','region','5213100yvGEAW','6542039LoiUWp','userDomain','daily','3430eFVyLn','2wGPlPn','22719HSdtLx','Harness\x20is\x20not\x20configured.','user','production','skillDomain','Configure\x20a\x20trusted\x20harnessDomain\x20HTTPS\x20origin\x20in\x20the\x20connection\x20settings.','915aHyptW','5885XYkuiB','3853056lSKtDT','validation','8793441PhxqUS','runtimeDomain','8vqJNlw','serviceDomains'];a100_0x2416=function(){return _0x17a629;};return a100_0x2416();}import{getEnv,isProduction}from'../constant/env.js';import{OFFICIAL_ROUTING_PROFILES}from'../generated/official-routing.js';import{DEFAULT_LOVRABET_REGION}from'../constant/region.js';let customApiDomain,customUserDomain,customRuntimeDomain,customSkillDomain,customKbServiceDomain,customHarnessDomain,activeRegion=DEFAULT_LOVRABET_REGION;export function initDomains(_0x4cb360){const _0xd22b00=a100_0x2e8a;customApiDomain=_0x4cb360?.[_0xd22b00(0x161)],customUserDomain=_0x4cb360?.[_0xd22b00(0x165)],customRuntimeDomain=_0x4cb360?.[_0xd22b00(0x15c)],customSkillDomain=_0x4cb360?.[_0xd22b00(0x155)],customKbServiceDomain=_0x4cb360?.['kbServiceDomain'],customHarnessDomain=_0x4cb360?.['harnessDomain'],activeRegion=_0x4cb360?.[_0xd22b00(0x162)]??DEFAULT_LOVRABET_REGION;}const getActiveRegionDomains=()=>{const _0x215074=a100_0x2e8a,_0x3d7079=OFFICIAL_ROUTING_PROFILES[activeRegion][_0x215074(0x15e)];return isProduction(getEnv())?_0x3d7079[_0x215074(0x154)]:_0x215074(0x166)in _0x3d7079?_0x3d7079['daily']:_0x3d7079[_0x215074(0x154)];};export const getUserDomain=()=>customUserDomain||getActiveRegionDomains()[a100_0x9395b6(0x153)];export const getApiDomain=()=>customApiDomain||getActiveRegionDomains()['api'];export const getRuntimeDomain=()=>customRuntimeDomain||getActiveRegionDomains()['runtime'];export const getSkillDomain=()=>customSkillDomain||getActiveRegionDomains()['skill'];export const getKbServiceDomain=()=>{const _0x451319=a100_0x9395b6;if(customKbServiceDomain)return customKbServiceDomain;const _0x38579d=getActiveRegionDomains();return _0x451319(0x160)in _0x38579d?_0x38579d['kbService']:undefined;};function a100_0x2e8a(_0x295e2d,_0x1d93ae){_0x295e2d=_0x295e2d-0x151;const _0x2416b2=a100_0x2416();let _0x2e8ab3=_0x2416b2[_0x295e2d];return _0x2e8ab3;}export const getHarnessDomain=()=>{if(customHarnessDomain)return customHarnessDomain;const _0x40cb57=getActiveRegionDomains();return'harness'in _0x40cb57?_0x40cb57['harness']:undefined;};export function requireHarnessDomain(){const _0x3557bd=a100_0x9395b6,_0x11e22f=getHarnessDomain();if(!_0x11e22f)throw CliErrors[_0x3557bd(0x15a)](_0x3557bd(0x152),_0x3557bd(0x156));return _0x11e22f;}
@@ -1 +1 @@
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
+ const a101_0x3a8ada=a101_0x3318;(function(_0x515298,_0x253d24){const _0x65314b=a101_0x3318,_0x35313d=_0x515298();while(!![]){try{const _0x46df35=parseInt(_0x65314b(0xf5))/0x1+-parseInt(_0x65314b(0xef))/0x2+parseInt(_0x65314b(0xf0))/0x3*(parseInt(_0x65314b(0xf2))/0x4)+-parseInt(_0x65314b(0xf1))/0x5+parseInt(_0x65314b(0xed))/0x6+parseInt(_0x65314b(0xf6))/0x7*(parseInt(_0x65314b(0xf3))/0x8)+parseInt(_0x65314b(0xf4))/0x9*(-parseInt(_0x65314b(0xf9))/0xa);if(_0x46df35===_0x253d24)break;else _0x35313d['push'](_0x35313d['shift']());}catch(_0x588bdf){_0x35313d['push'](_0x35313d['shift']());}}}(a101_0x27ac,0x3a628));import{productEnv}from'../constant/product.js';export const RUNTIME_ENV_VALUES=[a101_0x3a8ada(0xee),a101_0x3a8ada(0xf8),a101_0x3a8ada(0xf7)];function a101_0x3318(_0x25c81b,_0x52f4d0){_0x25c81b=_0x25c81b-0xeb;const _0x27acdf=a101_0x27ac();let _0x331848=_0x27acdf[_0x25c81b];return _0x331848;}export function normalizeEnv(_0x27f360){const _0x20ed08=a101_0x3a8ada;return _0x27f360==='online'||_0x27f360==='prod'?_0x20ed08(0xee):_0x27f360;}export function isProduction(_0x23d68b){const _0x357cc1=a101_0x3a8ada;return normalizeEnv(_0x23d68b)===_0x357cc1(0xee);}function a101_0x27ac(){const _0x49fae4=['production','943780gDqCQZ','2796hYLpzz','561955yDYoVK','644RJDFXU','585112cFngsk','261729yTCgBZ','241646IeBBfN','14OhwYhx','daily','development','50xyZDfH','ENV','dev','2585124cNLTkg'];a101_0x27ac=function(){return _0x49fae4;};return a101_0x27ac();}export function isDaily(_0x12add0){const _0x23beb9=a101_0x3a8ada;return normalizeEnv(_0x12add0)===_0x23beb9(0xf7);}export function isDev(_0x396398){const _0x1c2455=a101_0x3a8ada,_0x500641=normalizeEnv(_0x396398);return _0x500641===_0x1c2455(0xf8)||_0x500641===_0x1c2455(0xec);}let env=normalizeEnv(productEnv(a101_0x3a8ada(0xeb))||a101_0x3a8ada(0xee));export function getEnv(){return env;}export function initEnv(_0x4d7d0c){env=normalizeEnv(_0x4d7d0c);}
@@ -1 +1 @@
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
+ function a102_0x2456(){const _0xd9fc24=['875503WICPTT','19493507ntDoIA','36lThutu','compress','1075vFugrQ','25644dpccNa','8viJHIf','12fdfXkb','json','2568349xoDRDa','1283044GzDDWN','568930rQROEk','6tzLRAd','pretty','859146lwesQf'];a102_0x2456=function(){return _0xd9fc24;};return a102_0x2456();}function a102_0x3d9b(_0x136699,_0x1b2293){_0x136699=_0x136699-0x1ed;const _0x245694=a102_0x2456();let _0x3d9b3e=_0x245694[_0x136699];return _0x3d9b3e;}const a102_0x17eaeb=a102_0x3d9b;(function(_0x258006,_0x35e3d0){const _0x40acb3=a102_0x3d9b,_0x3ef199=_0x258006();while(!![]){try{const _0x384540=parseInt(_0x40acb3(0x1fa))/0x1+parseInt(_0x40acb3(0x1f9))/0x2+parseInt(_0x40acb3(0x1f7))/0x3*(parseInt(_0x40acb3(0x1f5))/0x4)+parseInt(_0x40acb3(0x1ef))/0x5*(parseInt(_0x40acb3(0x1f0))/0x6)+parseInt(_0x40acb3(0x1f4))/0x7*(-parseInt(_0x40acb3(0x1f1))/0x8)+parseInt(_0x40acb3(0x1ed))/0x9*(-parseInt(_0x40acb3(0x1f6))/0xa)+-parseInt(_0x40acb3(0x1fb))/0xb*(parseInt(_0x40acb3(0x1f2))/0xc);if(_0x384540===_0x35e3d0)break;else _0x3ef199['push'](_0x3ef199['shift']());}catch(_0x2de6e4){_0x3ef199['push'](_0x3ef199['shift']());}}}(a102_0x2456,0x79ccc));export const OUTPUT_FORMAT_VALUES=[a102_0x17eaeb(0x1f3),a102_0x17eaeb(0x1f8),a102_0x17eaeb(0x1ee)];
@@ -1 +1 @@
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
+ function a103_0x19f5(_0x2122fb,_0x4412c9){_0x2122fb=_0x2122fb-0xb6;const _0x57fd50=a103_0x57fd();let _0x19f5ee=_0x57fd50[_0x2122fb];return _0x19f5ee;}const a103_0x47ddaf=a103_0x19f5;(function(_0x260297,_0x9042ed){const _0x5cfdbb=a103_0x19f5,_0x28e9d1=_0x260297();while(!![]){try{const _0x37a56f=parseInt(_0x5cfdbb(0xc2))/0x1+parseInt(_0x5cfdbb(0xc5))/0x2+parseInt(_0x5cfdbb(0xd0))/0x3*(parseInt(_0x5cfdbb(0xc0))/0x4)+-parseInt(_0x5cfdbb(0xbd))/0x5+-parseInt(_0x5cfdbb(0xcf))/0x6*(-parseInt(_0x5cfdbb(0xb8))/0x7)+-parseInt(_0x5cfdbb(0xcc))/0x8*(parseInt(_0x5cfdbb(0xca))/0x9)+parseInt(_0x5cfdbb(0xcd))/0xa*(-parseInt(_0x5cfdbb(0xba))/0xb);if(_0x37a56f===_0x9042ed)break;else _0x28e9d1['push'](_0x28e9d1['shift']());}catch(_0x536d16){_0x28e9d1['push'](_0x28e9d1['shift']());}}}(a103_0x57fd,0xb5e16));export const PRODUCT_CONFIG={'cliBinName':'lovrabet','cliDisplayName':'Lovrabet\x20Runtime\x20CLI','npmPackageName':a103_0x47ddaf(0xc9),'skillSource':a103_0x47ddaf(0xcb),'internalSkillSource':a103_0x47ddaf(0xb6),'globalSkillName':a103_0x47ddaf(0xb9),'npmRegistryBaseUrl':a103_0x47ddaf(0xbf),'cliCdnBaseUrl':'https://g.lovrabet.com','envPrefix':a103_0x47ddaf(0xc7),'legacyEnvPrefixes':['RABETBASE'],'configFileNames':['.lovrabet.json'],'newConfigFileName':a103_0x47ddaf(0xbc),'homeDirName':a103_0x47ddaf(0xc3),'logFileName':a103_0x47ddaf(0xc1),'invokeSource':a103_0x47ddaf(0xb7),'userCenterDisplayName':a103_0x47ddaf(0xbb),'skipNpxSkillsEnvSuffix':a103_0x47ddaf(0xbe),'accessKeyCreatePath':a103_0x47ddaf(0xc6)};export function productEnvName(_0x58ec2a){const _0x5c42be=a103_0x47ddaf;return PRODUCT_CONFIG[_0x5c42be(0xce)]+'_'+_0x58ec2a;}function a103_0x57fd(){const _0x5274d5=['Lovrabet\x20User\x20Center','.lovrabet.json','7289655tOgsTZ','SKIP_NPX_SKILLS','https://registry.npmjs.org','1028828NBElNx','.lovrabet-runtime.log','1202310aRhkgQ','.lovrabet','map','2358648RdkPMH','/user/ak','LOVRABET','legacyEnvPrefixes','@lovrabet/lovrabet-cli','8820090zzEMHH','lovrabet/lovrabet-cli','8PLPnag','720sgkohA','envPrefix','6WIXVnM','12xHKDdy','git@codeup.aliyun.com:yuntoo/open/lovrabet-runtime-cli.git','cli:lovrabet-runtime','1074899PYDEKg','lovrabet','58223QxrdKL'];a103_0x57fd=function(){return _0x5274d5;};return a103_0x57fd();}export function productEnvNames(_0x21763d){const _0x21e03a=a103_0x47ddaf;return[productEnvName(_0x21763d),...PRODUCT_CONFIG[_0x21e03a(0xc8)][_0x21e03a(0xc4)](_0x48b8ee=>_0x48b8ee+'_'+_0x21763d)];}export function productEnv(_0x216c77){for(const _0x5d1452 of productEnvNames(_0x216c77)){const _0xfdb84e=process.env[_0x5d1452];if(_0xfdb84e!==undefined)return _0xfdb84e;}return undefined;}
@@ -1 +1 @@
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
+ (function(_0x147eef,_0x42b863){const _0x123319=a104_0x244d,_0x16dd15=_0x147eef();while(!![]){try{const _0x41b2bd=parseInt(_0x123319(0xa4))/0x1*(parseInt(_0x123319(0xad))/0x2)+parseInt(_0x123319(0xb0))/0x3*(-parseInt(_0x123319(0xb3))/0x4)+-parseInt(_0x123319(0xae))/0x5*(-parseInt(_0x123319(0xb1))/0x6)+parseInt(_0x123319(0xb2))/0x7+-parseInt(_0x123319(0xa2))/0x8*(-parseInt(_0x123319(0xab))/0x9)+-parseInt(_0x123319(0xaf))/0xa+parseInt(_0x123319(0xa3))/0xb*(parseInt(_0x123319(0xa7))/0xc);if(_0x41b2bd===_0x42b863)break;else _0x16dd15['push'](_0x16dd15['shift']());}catch(_0x92d85){_0x16dd15['push'](_0x16dd15['shift']());}}}(a104_0x2678,0x8e06b));import{DEFAULT_REGION,ENABLED_REGION_VALUES,REGION_ALIASES,REGION_VALUES}from'../generated/official-routing.js';function a104_0x2678(){const _0x269f08=['3pzYxkE','294jMKvWM','989548hbiGHT','4216412fnbJXS','Available\x20regions:\x20','156056ZTRrKa','220TxmiZw','14191zpKskY','\x22\x20is\x20not\x20currently\x20available.','validation','589116NCGCJS','.\x20Run\x20`lovrabet\x20config\x20init`\x20to\x20repair\x20the\x20global\x20configuration.','includes','string','9yxXiuu','Invalid\x20region\x20value:\x20expected\x20a\x20string,\x20received\x20','68ynBkbt','52885IwihRV','5076560zVruFa'];a104_0x2678=function(){return _0x269f08;};return a104_0x2678();}import{CliErrors}from'../errors.js';export const LOVRABET_REGION_VALUES=REGION_VALUES;export const ENABLED_LOVRABET_REGION_VALUES=ENABLED_REGION_VALUES;function a104_0x244d(_0x436c40,_0x32bb52){_0x436c40=_0x436c40-0xa1;const _0x26785b=a104_0x2678();let _0x244d17=_0x26785b[_0x436c40];return _0x244d17;}export const DEFAULT_LOVRABET_REGION=DEFAULT_REGION;export function isLovrabetRegion(_0x4d1069){const _0x203fb1=a104_0x244d;return typeof _0x4d1069===_0x203fb1(0xaa)&&LOVRABET_REGION_VALUES['includes'](_0x4d1069);}export function isEnabledLovrabetRegion(_0x573b9c){const _0x9be47e=a104_0x244d;return typeof _0x573b9c==='string'&&ENABLED_LOVRABET_REGION_VALUES[_0x9be47e(0xa9)](_0x573b9c);}export function normalizeLovrabetRegion(_0x168d8c){const _0x2f313e=a104_0x244d;if(_0x168d8c===undefined||_0x168d8c===null||_0x168d8c==='')return DEFAULT_LOVRABET_REGION;if(typeof _0x168d8c!==_0x2f313e(0xaa))throw CliErrors[_0x2f313e(0xa6)](_0x2f313e(0xac)+typeof _0x168d8c+'.','Run\x20`lovrabet\x20config\x20init`\x20to\x20restore\x20the\x20global\x20country/region\x20configuration.');const _0x21c3fd=REGION_ALIASES[_0x168d8c]??_0x168d8c;if(isEnabledLovrabetRegion(_0x21c3fd))return _0x21c3fd;throw CliErrors[_0x2f313e(0xa6)]('Region\x20\x22'+_0x168d8c+_0x2f313e(0xa5),_0x2f313e(0xa1)+ENABLED_LOVRABET_REGION_VALUES['join'](',\x20')+_0x2f313e(0xa8));}
@@ -1 +1 @@
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
+ function a105_0x3388(_0x59ff0e,_0x2ce507){_0x59ff0e=_0x59ff0e-0x1af;const _0x4bfb44=a105_0x4bfb();let _0x338876=_0x4bfb44[_0x59ff0e];return _0x338876;}const a105_0x266037=a105_0x3388;function a105_0x4bfb(){const _0x42e0ea=['188802FpJkQO','15NTFDBx','129603cPixou','1454052fzHQdN','12dCOSHl','write','high-risk-write','1720928Kcsgik','611123gtgeMq','read','3286325OXUtgH','17623197lwiaok'];a105_0x4bfb=function(){return _0x42e0ea;};return a105_0x4bfb();}(function(_0x469281,_0x3f4303){const _0x72aff9=a105_0x3388,_0x53da3b=_0x469281();while(!![]){try{const _0x4a2b39=-parseInt(_0x72aff9(0x1b7))/0x1+parseInt(_0x72aff9(0x1b3))/0x2*(-parseInt(_0x72aff9(0x1b1))/0x3)+-parseInt(_0x72aff9(0x1b2))/0x4+parseInt(_0x72aff9(0x1b0))/0x5*(-parseInt(_0x72aff9(0x1af))/0x6)+-parseInt(_0x72aff9(0x1b9))/0x7+parseInt(_0x72aff9(0x1b6))/0x8+parseInt(_0x72aff9(0x1ba))/0x9;if(_0x4a2b39===_0x3f4303)break;else _0x53da3b['push'](_0x53da3b['shift']());}catch(_0x2c5f86){_0x53da3b['push'](_0x53da3b['shift']());}}}(a105_0x4bfb,0x5baeb));export const RISK_LEVEL_VALUES=[a105_0x266037(0x1b8),a105_0x266037(0x1b4),a105_0x266037(0x1b5)];
@@ -1 +1 @@
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();}
1
+ (function(_0x59b182,_0x2f2403){const _0x4018c4=a106_0x4392,_0x272fb7=_0x59b182();while(!![]){try{const _0x1ebdcd=-parseInt(_0x4018c4(0x107))/0x1+parseInt(_0x4018c4(0x106))/0x2*(parseInt(_0x4018c4(0x108))/0x3)+-parseInt(_0x4018c4(0x109))/0x4*(-parseInt(_0x4018c4(0x110))/0x5)+-parseInt(_0x4018c4(0x10f))/0x6+parseInt(_0x4018c4(0x111))/0x7+parseInt(_0x4018c4(0x10d))/0x8+parseInt(_0x4018c4(0x112))/0x9;if(_0x1ebdcd===_0x2f2403)break;else _0x272fb7['push'](_0x272fb7['shift']());}catch(_0x384af8){_0x272fb7['push'](_0x272fb7['shift']());}}}(a106_0x4cdd,0x9d103));import{PRODUCT_CONFIG}from'../constant/product.js';import{OFFICIAL_ROUTING_PROFILES}from'../generated/official-routing.js';import{DEFAULT_LOVRABET_REGION}from'../constant/region.js';function a106_0x4392(_0x596e8b,_0x41b57c){_0x596e8b=_0x596e8b-0x106;const _0x4cdd1a=a106_0x4cdd();let _0x4392e3=_0x4cdd1a[_0x596e8b];return _0x4392e3;}export function getUserAccessKeyCreateUrl(_0x4a3ae0=DEFAULT_LOVRABET_REGION){const _0x4e6184=a106_0x4392,_0xbf5895=OFFICIAL_ROUTING_PROFILES[_0x4a3ae0][_0x4e6184(0x10b)][_0x4e6184(0x10a)][_0x4e6184(0x10c)];return''+_0xbf5895+PRODUCT_CONFIG[_0x4e6184(0x10e)];}export const USER_ACCESS_KEY_CREATE_URL=getUserAccessKeyCreateUrl();function a106_0x4cdd(){const _0x56c1fa=['307204aikimA','production','serviceDomains','user','413696ykKAna','accessKeyCreatePath','2924814siJItY','40aXBpFA','1862959gmAOpe','702981JwuBsn','585578cUCgtD','757933zZPAvF','9NNCAhx'];a106_0x4cdd=function(){return _0x56c1fa;};return a106_0x4cdd();}
package/lib/context.js CHANGED
@@ -1 +1 @@
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
+ (function(_0x3b21d2,_0x475cbf){const _0x93fc4e=a107_0x84ab,_0x2d631d=_0x3b21d2();while(!![]){try{const _0x34245b=-parseInt(_0x93fc4e(0x17b))/0x1+-parseInt(_0x93fc4e(0x163))/0x2+-parseInt(_0x93fc4e(0x162))/0x3*(parseInt(_0x93fc4e(0x192))/0x4)+-parseInt(_0x93fc4e(0x1b1))/0x5*(-parseInt(_0x93fc4e(0x196))/0x6)+-parseInt(_0x93fc4e(0x167))/0x7*(parseInt(_0x93fc4e(0x174))/0x8)+-parseInt(_0x93fc4e(0x1a5))/0x9*(parseInt(_0x93fc4e(0x1a0))/0xa)+parseInt(_0x93fc4e(0x1b5))/0xb*(parseInt(_0x93fc4e(0x1aa))/0xc);if(_0x34245b===_0x475cbf)break;else _0x2d631d['push'](_0x2d631d['shift']());}catch(_0x14e804){_0x2d631d['push'](_0x2d631d['shift']());}}}(a107_0x299f,0xec66a));function a107_0x299f(){const _0xfa1d13=['read','locale','ACCESS_KEY','39905nhyeuN','.tmp','missing','region','11qMUSGE','apiDomain','nativeToolAvailable','PAGE_SIZE','69sSJLQg','2302050jHJcfF','./constant/env.js','accessKey','find','1591156LGZthv','code','explicit','project','platformDomain','stdout','agentDomain','empty','top-level','EACCES','online','projectConfig','./constant/domain.js','40incEFI','object','stringify','setRawCommand','harnessDomain','defaultApp','skillDomain','112970wOFUZq','isRaw','stdin','high-risk-write','global','write','global\x20config','error','VERBOSE','apps','string','raw','skillHubDomain','development','globalConfig','app','routing','production','setLogPath','APP','env','join','appCode','315184lGAdfe','kbServiceDomain','message','trim','1002bSwHYN','authRequired','FORMAT','nonInteractive','runtimeDomain','cache','true','parse','setRawMode','cwd','13221810SMvLyZ','riskLevel','userDomain','format','local-alias','9lbecEq','EPERM','utf8','APPCODE','isTTY','62045940bQVKNX','values','slice','appcode'];a107_0x299f=function(){return _0xfa1d13;};return a107_0x299f();}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';function a107_0x84ab(_0x3d8564,_0x54d06b){_0x3d8564=_0x3d8564-0x161;const _0x299f21=a107_0x299f();let _0x84ab77=_0x299f21[_0x3d8564];return _0x84ab77;}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['configFileNames'];export const NEW_CONFIG_NAME=PRODUCT_CONFIG['newConfigFileName'];function resolveConfigPath(_0x3a4943){for(const _0x352696 of CONFIG_NAMES){const _0x30ee3a=resolve(_0x3a4943,_0x352696);if(existsSync(_0x30ee3a))return _0x30ee3a;}return undefined;}export function resolveWriteConfigPath(_0x17e863){const _0x365c34=a107_0x84ab,_0x55c7e9=_0x17e863===_0x365c34(0x16a)?process[_0x365c34(0x19f)]():homedir(),_0x3af103=resolveConfigPath(_0x55c7e9);return _0x3af103??resolve(_0x55c7e9,NEW_CONFIG_NAME);}export function readConfigFile(_0x4a616b){const _0xd9c31c=a107_0x84ab;try{if(existsSync(_0x4a616b)){const _0x5015a6=readFileSync(_0x4a616b,{'encoding':'utf8'});if(_0x5015a6){const _0x1371ae=JSON[_0xd9c31c(0x19d)](_0x5015a6);return migrateOnlineEnv(_0x4a616b,_0x1371ae),_0x1371ae;}}}catch{}return{};}function migrateOnlineEnv(_0x5ce39a,_0xcb17e6){const _0x211747=a107_0x84ab;let _0x572598=![];_0xcb17e6[_0x211747(0x18f)]===_0x211747(0x171)&&(_0xcb17e6[_0x211747(0x18f)]=_0x211747(0x18c),_0x572598=!![]);if(_0xcb17e6[_0x211747(0x184)]&&typeof _0xcb17e6['apps']===_0x211747(0x175))for(const _0x578301 of Object[_0x211747(0x1ab)](_0xcb17e6[_0x211747(0x184)])){_0x578301&&_0x578301['env']===_0x211747(0x171)&&(_0x578301[_0x211747(0x18f)]=_0x211747(0x18c),_0x572598=!![]);}if(_0x572598)try{writeConfigFile(_0x5ce39a,_0xcb17e6);}catch{}}export function writeConfigFile(_0x2694eb,_0x485ed1){const _0x5e69b5=a107_0x84ab,_0xb5028b=dirname(_0x2694eb);!existsSync(_0xb5028b)&&mkdirSync(_0xb5028b,{'recursive':!![]});const _0x331b95=_0x2694eb+_0x5e69b5(0x1b2);try{writeFileSync(_0x331b95,JSON['stringify'](_0x485ed1,null,0x2)+'\x0a',{'encoding':_0x5e69b5(0x1a7),'mode':0x180});try{renameSync(_0x331b95,_0x2694eb);}catch(_0xa3717a){if(_0xa3717a[_0x5e69b5(0x168)]===_0x5e69b5(0x1a6)||_0xa3717a[_0x5e69b5(0x168)]==='EXDEV'||_0xa3717a['code']===_0x5e69b5(0x170)){writeFileSync(_0x2694eb,JSON[_0x5e69b5(0x176)](_0x485ed1,null,0x2)+'\x0a',{'encoding':_0x5e69b5(0x1a7)});try{unlinkSync(_0x331b95);}catch{}}else throw _0xa3717a;}}catch(_0x3c3512){try{unlinkSync(_0x331b95);}catch{}throw _0x3c3512;}}export function isNonInteractiveMode(_0x510e4f){const _0x1fac3b=a107_0x84ab;return!!(_0x510e4f[_0x1fac3b(0x199)]||_0x510e4f['ci']||productEnvNames('CI')['some'](_0x592b3e=>process.env[_0x592b3e]===_0x1fac3b(0x19c))||process.env.CI===_0x1fac3b(0x19c)||!process[_0x1fac3b(0x16c)][_0x1fac3b(0x1a9)]||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x3e0937=a107_0x84ab;if(!process['stdin'][_0x3e0937(0x1a9)])return![];try{const _0x3046a2=process[_0x3e0937(0x17d)][_0x3e0937(0x17c)];return process[_0x3e0937(0x17d)]['setRawMode'](!![]),process[_0x3e0937(0x17d)][_0x3e0937(0x19e)](_0x3046a2??![]),!![];}catch{return![];}}export async function createContext(_0x32bf77){const _0x266b4c=a107_0x84ab,_0x1caea6=buildConfigFromFlags(_0x32bf77);await initGlobalEnvironment(_0x1caea6);const {getUserDomain:_0x5ac55b,getApiDomain:_0x3f2b01}=await import(_0x266b4c(0x173)),_0x57a701={'apiDomain':_0x3f2b01(),'userDomain':_0x5ac55b()},_0x43f9ae=await buildAuth(_0x1caea6);logger[_0x266b4c(0x18d)](process[_0x266b4c(0x19f)]());const _0x1d00af=(CLI_BIN_NAME+'\x20'+redactCommandArgv(process['argv'][_0x266b4c(0x1ac)](0x2))[_0x266b4c(0x190)]('\x20'))['trim']();logger[_0x266b4c(0x177)](_0x1d00af);const _0xcc4644=isNonInteractiveMode(_0x32bf77);return{'config':_0x1caea6,'auth':_0x43f9ae,'logger':logger,'env':_0x57a701,'nonInteractive':_0xcc4644};}export function buildConfigFromFlags(_0x5dc96e){return buildConfig(loadRawConfigLayers(),_0x5dc96e);}export function getLocalAppAliases(_0x1e1d66){const _0x27bd67=a107_0x84ab;return _0x1e1d66[_0x27bd67(0x184)]&&typeof _0x1e1d66[_0x27bd67(0x184)]==='object'?_0x1e1d66[_0x27bd67(0x184)]:{};}export function resolveLocalAppAliasCode(_0x225eba,_0x5100ce){const _0x23d4e3=a107_0x84ab;if(!_0x5100ce)return undefined;const _0xf2a062=getLocalAppAliases(_0x225eba)[_0x5100ce],_0x36e7c3=_0xf2a062?.['appcode'];return typeof _0x36e7c3===_0x23d4e3(0x185)&&_0x36e7c3['trim']()?_0x36e7c3[_0x23d4e3(0x195)]():undefined;}export function readAppCodeFromConfig(){const _0x42f7df=a107_0x84ab;return buildConfigFromFlags({})[_0x42f7df(0x191)];}export function readScopedConfig(_0x16e6ce){const _0x233b10=a107_0x84ab,_0x21c7b5=_0x16e6ce['global']?_0x233b10(0x17f):_0x233b10(0x16a);return readConfigFile(resolveWriteConfigPath(_0x21c7b5));}export function writeScopedConfig(_0x3c994d,_0x2d161e){const _0x14649c=a107_0x84ab,_0x40dc96=_0x2d161e['global']?_0x14649c(0x17f):_0x14649c(0x16a);writeConfigFile(resolveWriteConfigPath(_0x40dc96),_0x3c994d);}export async function initGlobalEnvironment(_0x2e3eef){const _0x4bcc4d=a107_0x84ab,{initEnv:_0x203087}=await import(_0x4bcc4d(0x164));_0x203087(_0x2e3eef[_0x4bcc4d(0x18f)]);const {initDomains:_0x1ca435}=await import(_0x4bcc4d(0x173)),_0x371454=resolveEnterpriseRoutingConfig(_0x2e3eef[_0x4bcc4d(0x186)][_0x4bcc4d(0x18b)]);_0x1ca435({'apiDomain':_0x371454?_0x371454[_0x4bcc4d(0x1b6)]:_0x2e3eef[_0x4bcc4d(0x186)][_0x4bcc4d(0x1b6)]||_0x2e3eef['raw']['host']||undefined,'userDomain':_0x371454?_0x371454[_0x4bcc4d(0x1a2)]:_0x2e3eef[_0x4bcc4d(0x186)][_0x4bcc4d(0x1a2)]||undefined,'runtimeDomain':_0x371454?_0x371454[_0x4bcc4d(0x19a)]:_0x2e3eef[_0x4bcc4d(0x186)][_0x4bcc4d(0x19a)]||undefined,'skillDomain':_0x371454?_0x371454['skillDomain']:_0x2e3eef[_0x4bcc4d(0x186)][_0x4bcc4d(0x17a)]||_0x2e3eef[_0x4bcc4d(0x186)][_0x4bcc4d(0x187)]||_0x2e3eef[_0x4bcc4d(0x186)][_0x4bcc4d(0x16d)]||_0x2e3eef['raw'][_0x4bcc4d(0x16b)]||undefined,'kbServiceDomain':_0x371454?_0x371454[_0x4bcc4d(0x193)]:typeof _0x2e3eef[_0x4bcc4d(0x186)][_0x4bcc4d(0x193)]==='string'&&_0x2e3eef[_0x4bcc4d(0x186)][_0x4bcc4d(0x193)][_0x4bcc4d(0x195)]()?_0x2e3eef[_0x4bcc4d(0x186)][_0x4bcc4d(0x193)]:undefined,'harnessDomain':_0x371454?_0x371454[_0x4bcc4d(0x178)]:_0x2e3eef['raw'][_0x4bcc4d(0x178)]===undefined?undefined:normalizeDomainOrigin(_0x4bcc4d(0x178),_0x2e3eef[_0x4bcc4d(0x186)][_0x4bcc4d(0x178)]),'region':normalizeLovrabetRegion(_0x2e3eef[_0x4bcc4d(0x186)][_0x4bcc4d(0x1b4)])});}export function getProjectConfigPath(){const _0x17eec6=a107_0x84ab;return resolveConfigPath(process[_0x17eec6(0x19f)]());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function inspectCliConfigJsonFile(_0x58c314){const _0x1803e4=a107_0x84ab;if(!existsSync(_0x58c314))return{'status':_0x1803e4(0x1b3)};try{const _0xbb1049=readFileSync(_0x58c314,{'encoding':'utf8'});if(!_0xbb1049?.[_0x1803e4(0x195)]())return{'status':_0x1803e4(0x16e)};const _0x570816=JSON[_0x1803e4(0x19d)](_0xbb1049);return{'status':'ok','data':_0x570816};}catch(_0x130074){return{'status':_0x1803e4(0x182),'message':_0x130074 instanceof Error?_0x130074[_0x1803e4(0x194)]:String(_0x130074)};}}export function loadRawConfigLayers(_0x294906){const _0x3b42dd=a107_0x84ab;let _0x5c0fef={},_0x5796c3={},_0x4f44a9,_0x337e3d;try{_0x4f44a9=resolveConfigPath(homedir());if(_0x4f44a9){const _0x1c1688=readFileSync(_0x4f44a9,{'encoding':_0x3b42dd(0x1a7)});if(_0x1c1688)_0x5c0fef=JSON[_0x3b42dd(0x19d)](_0x1c1688);}}catch{}try{const _0x5eb23f=_0x294906||process[_0x3b42dd(0x19f)]();_0x337e3d=resolveConfigPath(_0x5eb23f);if(_0x337e3d){const _0x2603a3=readFileSync(_0x337e3d,{'encoding':_0x3b42dd(0x1a7)});if(_0x2603a3)_0x5796c3=JSON['parse'](_0x2603a3);}}catch{}return{'globalPath':_0x4f44a9,'projectPath':_0x337e3d,'globalConfig':_0x5c0fef,'projectConfig':_0x5796c3};}function mergeRawConfigLayers(_0x52742d){const _0x337959=a107_0x84ab,{globalConfig:_0x402205,projectConfig:_0x5480e8}=_0x52742d,_0x57ce93={..._0x402205,..._0x5480e8};delete _0x57ce93['inherit'];if('defaultApp'in _0x5480e8)_0x57ce93[_0x337959(0x179)]=_0x5480e8[_0x337959(0x179)];else _0x402205[_0x337959(0x179)]&&(_0x57ce93['defaultApp']=_0x402205['defaultApp']);return _0x57ce93;}export function isInProject(){return!!getProjectConfigPath();}export function readRawConfig(_0x3e6c40){return mergeRawConfigLayers(loadRawConfigLayers(_0x3e6c40));}export function readRawConfigWithLayers(_0x1ccbd6){const _0x201061=loadRawConfigLayers(_0x1ccbd6);return{'config':mergeRawConfigLayers(_0x201061),'layers':_0x201061};}export function resolveDefaultAppSource(_0x1cfdc1){const _0x2030a2=a107_0x84ab;if(_0x2030a2(0x179)in _0x1cfdc1[_0x2030a2(0x172)])return'project';if(_0x1cfdc1[_0x2030a2(0x189)]['defaultApp'])return'global';return null;}function buildConfig(_0x4dd753,_0x5ad163){const _0x259b5e=a107_0x84ab,_0x2c7a6b=mergeRawConfigLayers(_0x4dd753),{projectConfig:_0x482b8d}=_0x4dd753,_0x4fe2c2=_0x2c7a6b[_0x259b5e(0x179)]||undefined,_0x2dfbe5=typeof _0x5ad163[_0x259b5e(0x1ad)]===_0x259b5e(0x185)?_0x5ad163[_0x259b5e(0x1ad)]:undefined,_0x5155eb=_0x482b8d[_0x259b5e(0x1ad)]||_0x482b8d[_0x259b5e(0x18a)],_0x28b94f=!_0x2dfbe5&&!_0x5ad163[_0x259b5e(0x18a)]&&!_0x5155eb&&!_0x482b8d['defaultApp'],_0x50f0fc=_0x28b94f?env(_0x259b5e(0x1a8)):undefined,_0x504180=_0x5ad163[_0x259b5e(0x18a)]||(_0x28b94f&&!_0x50f0fc?env(_0x259b5e(0x18e)):undefined),_0xb9d095=_0x504180||_0x4fe2c2||undefined,_0x53a23d=_0x504180||_0x50f0fc?undefined:_0x5155eb||(_0x482b8d[_0x259b5e(0x179)]?undefined:_0x2c7a6b[_0x259b5e(0x1ad)]||_0x2c7a6b[_0x259b5e(0x18a)]||undefined),_0x5af21e=_0x504180||(_0x53a23d?undefined:_0x4fe2c2),_0x2c14b5=resolveLocalAppAliasCode(_0x2c7a6b,_0x5af21e),_0x54353a=productEnvNames(_0x259b5e(0x1b0))[_0x259b5e(0x166)](_0x8cea7f=>process.env[_0x8cea7f]!==undefined),_0x431e98=_0x54353a?process.env[_0x54353a]:undefined,_0x202a41=_0x482b8d[_0x259b5e(0x165)]||_0x431e98||_0x2c7a6b[_0x259b5e(0x165)]||undefined,_0x368499=_0x482b8d[_0x259b5e(0x165)]?'project\x20config':_0x431e98?_0x54353a:_0x2c7a6b[_0x259b5e(0x165)]?_0x259b5e(0x181):undefined,_0x57f911=_0x5ad163[_0x259b5e(0x18f)]||_0x2c7a6b[_0x259b5e(0x18f)]||env('ENV')||DEFAULT_CONFIG_VALUES[_0x259b5e(0x18f)],_0x5c2b59=normalizeEnv(String(_0x57f911)),_0x3ea723=isDaily(_0x5c2b59)?'daily':isDev(_0x5c2b59)?_0x259b5e(0x188):_0x259b5e(0x18c),_0x16bade=_0x2dfbe5||_0x50f0fc||_0x53a23d||_0x2c14b5?undefined:resolveCachedAppCode(_0x5af21e,_0x3ea723,_0x202a41),_0x533eb4=_0x2dfbe5||_0x50f0fc||_0x53a23d||_0x2c14b5||_0x16bade||undefined,_0x44e921=_0x2dfbe5?_0x259b5e(0x169):_0x50f0fc?'env':_0x53a23d?_0x259b5e(0x16f):_0x2c14b5?_0x259b5e(0x1a4):_0x16bade?_0x259b5e(0x19b):undefined,_0x2f13d0=_0x2c7a6b[_0x259b5e(0x1af)]||DEFAULT_CONFIG_VALUES['locale'],_0x56fc4a=undefined,_0x3cd3dc=_0x5ad163[_0x259b5e(0x1a3)]||env(_0x259b5e(0x198))||_0x2c7a6b[_0x259b5e(0x1a3)],_0x172ede=normalizeLegacyOutputFormat(_0x3cd3dc),_0x114da9=env(_0x259b5e(0x161))||_0x2c7a6b['pageSize'],_0x5bc772=_0x114da9?Number(_0x114da9)||undefined:undefined,_0x3d3f49=_0x2c7a6b[_0x259b5e(0x1a1)],_0x1c3f49=_0x3d3f49===_0x259b5e(0x1ae)||_0x3d3f49===_0x259b5e(0x180)||_0x3d3f49===_0x259b5e(0x17e)?_0x3d3f49:DEFAULT_CONFIG_VALUES[_0x259b5e(0x1a1)],_0x574bb9=_0x2c7a6b[_0x259b5e(0x1b7)]===!![],_0x2b4cbb=env(_0x259b5e(0x183)),_0x3bdca0=_0x2b4cbb==='1'||_0x2b4cbb===_0x259b5e(0x19c);return{'appCode':typeof _0x533eb4===_0x259b5e(0x185)&&_0x533eb4[_0x259b5e(0x195)]()?_0x533eb4[_0x259b5e(0x195)]():undefined,'appCodeSource':_0x44e921,'env':_0x3ea723,'locale':_0x2f13d0,'cookie':_0x56fc4a,'accessKey':_0x202a41,'accessKeySource':_0x368499,'format':_0x172ede,'pageSize':_0x5bc772,'riskLevel':_0x1c3f49,'nativeToolAvailable':_0x574bb9,'verbose':_0x3bdca0,'defaultApp':_0x4fe2c2,'currentApp':typeof _0xb9d095==='string'?_0xb9d095:undefined,'raw':_0x2c7a6b};}function env(_0x181378){return productEnv(_0x181378);}async function buildAuth(_0x55c0aa){const _0x263b85=a107_0x84ab,_0x285f9b='',_0x4162b9=!!_0x55c0aa[_0x263b85(0x165)];return{'cookie':_0x285f9b,'isLoggedIn':_0x4162b9,async 'getOrLogin'(){const _0x2a2bc1=_0x263b85;if(_0x4162b9)return _0x285f9b;throw CliErrors[_0x2a2bc1(0x197)]();}};}
@@ -1 +1 @@
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}));}
1
+ const a108_0x54c627=a108_0x3489;(function(_0x150a98,_0x30736c){const _0x112c5a=a108_0x3489,_0x18b5d2=_0x150a98();while(!![]){try{const _0x58228e=-parseInt(_0x112c5a(0x22e))/0x1+-parseInt(_0x112c5a(0x1e8))/0x2*(-parseInt(_0x112c5a(0x1e4))/0x3)+-parseInt(_0x112c5a(0x1ff))/0x4*(-parseInt(_0x112c5a(0x244))/0x5)+-parseInt(_0x112c5a(0x26a))/0x6*(parseInt(_0x112c5a(0x1d7))/0x7)+-parseInt(_0x112c5a(0x1fe))/0x8*(parseInt(_0x112c5a(0x283))/0x9)+parseInt(_0x112c5a(0x23e))/0xa+parseInt(_0x112c5a(0x287))/0xb*(-parseInt(_0x112c5a(0x1f4))/0xc);if(_0x58228e===_0x30736c)break;else _0x18b5d2['push'](_0x18b5d2['shift']());}catch(_0xb7a16b){_0x18b5d2['push'](_0x18b5d2['shift']());}}}(a108_0x4949,0x8d094));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(_0x2cb147){if(_activeAK!==(_0x2cb147||undefined))clearSdkClient();_activeAK=_0x2cb147||undefined;}export function clearActiveAK(){_activeAK=undefined,clearSdkClient();}async function sdkRequest(_0x45bd60,_0x3b47bb){const _0x48fd67=a108_0x3489;if(!_activeAK)throw CliErrors[_0x48fd67(0x22d)](_0x48fd67(0x232)+PRODUCT_CONFIG[_0x48fd67(0x260)]+'.');const _0x247ce9=_0x45bd60?getSdkClient({'appCode':_0x45bd60,'env':getEnv(),'runtimeDomain':getRuntimeDomain(),'authMode':_0x48fd67(0x278),'accessKey':_activeAK}):getSdkClient();return withSdkErrors(()=>_0x3b47bb(_0x247ce9));}async function identitySdkRequest(_0x464e60){const _0x45c355=a108_0x3489,_0x3e4244=_activeAK;if(!_0x3e4244)throw CliErrors[_0x45c355(0x22d)](_0x45c355(0x232)+PRODUCT_CONFIG[_0x45c355(0x260)]+'.');return withSdkErrors(()=>_0x464e60(getIdentitySdkClient(_0x3e4244,getRuntimeDomain())));}async function withSdkErrors(_0xf63abb){const _0x3f1066=a108_0x3489;try{return await _0xf63abb();}catch(_0x5085cc){if(_0x5085cc instanceof CliError)throw _0x5085cc;if(!_0x5085cc||typeof _0x5085cc!==_0x3f1066(0x215))throw _0x5085cc;const _0xd9a72=_0x5085cc,_0x386913=_0xd9a72[_0x3f1066(0x1f6)]&&typeof _0xd9a72[_0x3f1066(0x1f6)]==='object'?_0xd9a72[_0x3f1066(0x1f6)]:{},_0x2b9a74=firstString(_0x386913[_0x3f1066(0x212)],_0x386913[_0x3f1066(0x1cc)],_0x386913[_0x3f1066(0x281)],_0xd9a72[_0x3f1066(0x1cc)]),_0x2c9387=createRateLimitError({'status':[_0xd9a72[_0x3f1066(0x279)],_0x386913[_0x3f1066(0x279)],_0x386913[_0x3f1066(0x227)]]['find'](_0x446f38=>Number(_0x446f38)===0x1ad)??_0xd9a72[_0x3f1066(0x279)],'errorCode':firstString(_0x386913[_0x3f1066(0x295)],typeof _0x386913[_0x3f1066(0x227)]==='string'?_0x386913[_0x3f1066(0x227)]:undefined,_0xd9a72[_0x3f1066(0x227)]),'message':_0x2b9a74,'retryAfter':_0xd9a72[_0x3f1066(0x231)]??readRetryAfterSeconds(_0xd9a72['response'])});if(_0x2c9387)throw _0x2c9387;const _0x3aadc6=createAccessError(_0xd9a72['response'],_0xd9a72[_0x3f1066(0x227)]);if(_0x3aadc6)throw _0x3aadc6;throw CliErrors[_0x3f1066(0x1fd)](_0x2b9a74||_0x3f1066(0x241),_0xd9a72[_0x3f1066(0x227)]?_0x3f1066(0x28b)+_0xd9a72[_0x3f1066(0x227)]:undefined);}}function firstString(..._0x41ba02){const _0x2385bc=a108_0x3489;for(const _0x3c193d of _0x41ba02){if(typeof _0x3c193d===_0x2385bc(0x269)&&_0x3c193d[_0x2385bc(0x22b)]())return _0x3c193d[_0x2385bc(0x22b)]();}return undefined;}async function decodeResponseBody(_0x42bb1f){const _0x3d0060=a108_0x3489;if(typeof _0x42bb1f[_0x3d0060(0x273)]===_0x3d0060(0x27d))try{const _0x3e3b84=await _0x42bb1f[_0x3d0060(0x273)]();try{return{'isJson':!![],'data':parseLosslessJson(_0x3e3b84),'text':_0x3e3b84};}catch{return{'isJson':![],'text':_0x3e3b84['trim']()||undefined};}}catch(_0x33f15b){if(_0x33f15b instanceof Error&&_0x33f15b[_0x3d0060(0x1f0)]===_0x3d0060(0x206))throw _0x33f15b;}try{return{'isJson':!![],'data':await _0x42bb1f['json']()};}catch(_0x16b410){if(_0x16b410 instanceof Error&&_0x16b410[_0x3d0060(0x1f0)]===_0x3d0060(0x206))throw _0x16b410;return{'isJson':![]};}}function throwIfRateLimited(_0x5e8a08,_0xe17f02,_0x546cc7){const _0x310ee1=a108_0x3489,_0x192855=_0xe17f02&&typeof _0xe17f02===_0x310ee1(0x215)?_0xe17f02:{},_0xafbe2f=[_0x192855['status'],_0x192855[_0x310ee1(0x227)]][_0x310ee1(0x1f8)](_0x56fcea=>Number(_0x56fcea)===0x1ad),_0x24bcd6=createRateLimitError({'status':_0x5e8a08['status']===0x1ad?_0x5e8a08[_0x310ee1(0x279)]:_0xafbe2f??_0x5e8a08[_0x310ee1(0x279)],'errorCode':firstString(_0x192855[_0x310ee1(0x295)],typeof _0x192855['code']===_0x310ee1(0x269)?_0x192855[_0x310ee1(0x227)]:undefined),'message':firstString(_0x192855['errorMsg'],_0x192855[_0x310ee1(0x1cc)],_0x192855['msg'],_0x546cc7),'retryAfter':readRetryAfter(_0x5e8a08['headers'])??readRetryAfterSeconds(_0xe17f02)});if(_0x24bcd6)throw _0x24bcd6;}async function apiRequest(_0x4deb48,_0x55023b={}){const _0x4b12ff=a108_0x3489,{method:method=_0x4b12ff(0x264),body:_0x466756,headers:headers={},timeout:timeout=0x7530,domain:domain='runtime',rejectRedirects:rejectRedirects=![]}=_0x55023b,_0x3d4f1b=_activeAK,_0x21764c=domain===_0x4b12ff(0x1f5)?requireHarnessDomain():domain===_0x4b12ff(0x280)?getApiDomain():getRuntimeDomain();if(!_0x3d4f1b)throw CliErrors['authRequired'](_0x4b12ff(0x232)+PRODUCT_CONFIG[_0x4b12ff(0x260)]+'.');const _0x2dc8ea=''+_0x21764c+_0x4deb48,_0x33f6de={'X-User-AK':_0x3d4f1b},_0x41ab74=new AbortController(),_0x3b7b20=setTimeout(()=>_0x41ab74[_0x4b12ff(0x1d0)](),timeout);try{const _0x4d98c2=await fetch(_0x2dc8ea,{'method':method,...rejectRedirects?{'redirect':_0x4b12ff(0x24c)}:{},'headers':{'Content-Type':'application/json','X-Invoke-Source':PRODUCT_CONFIG[_0x4b12ff(0x1d4)],..._0x33f6de,...headers},'body':_0x466756?JSON['stringify'](_0x466756):undefined,'signal':_0x41ab74[_0x4b12ff(0x2a9)]});return await readApiResponse(_0x4d98c2);}catch(_0x5b8ef6){if(_0x5b8ef6 instanceof Error&&_0x5b8ef6[_0x4b12ff(0x1f0)]===_0x4b12ff(0x206))throw CliErrors[_0x4b12ff(0x1fd)](_0x4b12ff(0x229)+_0x2dc8ea);throw _0x5b8ef6;}finally{clearTimeout(_0x3b7b20);}}async function readApiResponse(_0x59e658){const _0x2973ba=a108_0x3489,_0x457265=await decodeResponseBody(_0x59e658);if(!_0x457265[_0x2973ba(0x1f7)]){throwIfRateLimited(_0x59e658,undefined,_0x457265[_0x2973ba(0x273)]);throw CliErrors[_0x2973ba(0x1fd)](_0x2973ba(0x247)+_0x59e658[_0x2973ba(0x279)]+')',_0x59e658[_0x2973ba(0x279)]>=0x190?'Check\x20your\x20credentials\x20and\x20try\x20again.':undefined);}const _0xfd7d32=_0x457265['data'];throwIfRateLimited(_0x59e658,_0xfd7d32);if(!_0x59e658['ok']||_0xfd7d32[_0x2973ba(0x24b)]===![]){const _0xa8d094=createAccessError(_0xfd7d32);if(_0xa8d094)throw _0xa8d094;throw CliErrors[_0x2973ba(0x1fd)](_0xfd7d32[_0x2973ba(0x212)]||_0xfd7d32['message']||_0xfd7d32[_0x2973ba(0x281)]||'API\x20error:\x20'+_0x59e658['status'],readApiErrorCode(_0xfd7d32)?_0x2973ba(0x28b)+readApiErrorCode(_0xfd7d32):undefined);}return _0xfd7d32;}async function apiBinaryRequest(_0x43c1d1,_0x1f24ed={}){const _0x4920c7=a108_0x3489,{method:method=_0x4920c7(0x264),headers:headers={},timeout:timeout=0x7530}=_0x1f24ed,_0x3298aa=_activeAK,_0x435da8=getRuntimeDomain();if(!_0x3298aa)throw CliErrors[_0x4920c7(0x22d)]('Configure\x20accessKey\x20in\x20'+PRODUCT_CONFIG[_0x4920c7(0x260)]+'.');const _0xc62471=''+_0x435da8+_0x43c1d1,_0x4bdb9a=new AbortController(),_0x4c1320=setTimeout(()=>_0x4bdb9a[_0x4920c7(0x1d0)](),timeout);try{const _0x2d603b=await fetch(_0xc62471,{'method':method,'headers':{'X-Invoke-Source':PRODUCT_CONFIG[_0x4920c7(0x1d4)],'X-User-AK':_0x3298aa,...headers},'signal':_0x4bdb9a[_0x4920c7(0x2a9)]});if(!_0x2d603b['ok']){const _0x199a66=await decodeResponseBody(_0x2d603b),_0x2d81de=_0x199a66[_0x4920c7(0x265)]&&typeof _0x199a66[_0x4920c7(0x265)]===_0x4920c7(0x215)?_0x199a66[_0x4920c7(0x265)]:{},_0x27e312=firstString(_0x2d81de[_0x4920c7(0x212)],_0x2d81de[_0x4920c7(0x1cc)],_0x2d81de['errorCode'],_0x199a66[_0x4920c7(0x273)]);throwIfRateLimited(_0x2d603b,_0x199a66[_0x4920c7(0x265)],_0x27e312);const _0x5f1dbb=createAccessError(_0x199a66['data']);if(_0x5f1dbb)throw _0x5f1dbb;throw CliErrors[_0x4920c7(0x1fd)](_0x27e312||_0x4920c7(0x1c2)+_0x2d603b[_0x4920c7(0x279)],_0x4920c7(0x25f)+_0xc62471);}return Buffer['from'](await _0x2d603b[_0x4920c7(0x225)]());}catch(_0x2f57db){if(_0x2f57db instanceof Error&&_0x2f57db[_0x4920c7(0x1f0)]==='AbortError')throw CliErrors['apiError'](_0x4920c7(0x229)+_0xc62471);throw _0x2f57db;}finally{clearTimeout(_0x4c1320);}}async function toolboxRequest(_0x59c277,_0x4e37f4,_0x3b5b95={}){const _0x471ff5=a108_0x3489,{method:method=_0x471ff5(0x264),headers:headers={},timeout:timeout=0x7530}=_0x3b5b95,_0x2eb00f=_activeAK;if(!_0x2eb00f)throw CliErrors[_0x471ff5(0x22d)]('Configure\x20accessKey\x20in\x20'+PRODUCT_CONFIG[_0x471ff5(0x260)]+'.');const _0x1d1ff4=getApiDomain()['replace'](/\/$/,''),_0x3edcc8=new URL(_0x59c277,_0x1d1ff4+_0x471ff5(0x26b));if(_0x4e37f4)for(const [_0x586fe8,_0xecd3a6]of Object[_0x471ff5(0x20f)](_0x4e37f4)){_0xecd3a6!==undefined&&_0xecd3a6!==null&&_0x3edcc8['searchParams'][_0x471ff5(0x25d)](_0x586fe8,String(_0xecd3a6));}const _0x43917d=new AbortController(),_0x3d1a65=setTimeout(()=>_0x43917d[_0x471ff5(0x1d0)](),timeout);try{const _0x38f6b4=await fetch(_0x3edcc8,{'method':method,'headers':{'Content-Type':_0x471ff5(0x296),'X-Invoke-Source':PRODUCT_CONFIG[_0x471ff5(0x1d4)],'X-User-AK':_0x2eb00f,...headers},'signal':_0x43917d[_0x471ff5(0x2a9)]}),_0x47988c=await decodeResponseBody(_0x38f6b4);if(!_0x47988c[_0x471ff5(0x1f7)]){throwIfRateLimited(_0x38f6b4,undefined,_0x47988c[_0x471ff5(0x273)]);throw CliErrors[_0x471ff5(0x1fd)]('Toolbox\x20returned\x20non-JSON\x20response\x20(HTTP\x20'+_0x38f6b4[_0x471ff5(0x279)]+')',_0x38f6b4[_0x471ff5(0x279)]>=0x190?'Check\x20your\x20credentials\x20and\x20try\x20again.':undefined);}const _0x29c517=_0x47988c[_0x471ff5(0x265)];throwIfRateLimited(_0x38f6b4,_0x29c517);if(!_0x38f6b4['ok']){const _0x14c7e2=_0x29c517&&typeof _0x29c517===_0x471ff5(0x215)?_0x29c517:{};throw CliErrors['apiError'](_0x14c7e2[_0x471ff5(0x212)]||_0x14c7e2[_0x471ff5(0x1cc)]||_0x471ff5(0x245)+_0x38f6b4['status'],_0x14c7e2[_0x471ff5(0x295)]?_0x471ff5(0x255)+_0x14c7e2[_0x471ff5(0x295)]:undefined);}if(_0x29c517&&typeof _0x29c517===_0x471ff5(0x215)&&_0x471ff5(0x24b)in _0x29c517&&typeof _0x29c517[_0x471ff5(0x24b)]===_0x471ff5(0x27b)){const _0x222709=_0x29c517;if(!_0x222709[_0x471ff5(0x24b)])throw CliErrors[_0x471ff5(0x1fd)](_0x222709[_0x471ff5(0x212)]||_0x222709[_0x471ff5(0x1cc)]||_0x471ff5(0x1eb),_0x222709['errorCode']?_0x471ff5(0x255)+_0x222709['errorCode']:undefined);return _0x222709['data'];}return _0x29c517;}catch(_0x326e30){if(_0x326e30 instanceof Error&&_0x326e30[_0x471ff5(0x1f0)]===_0x471ff5(0x206))throw CliErrors[_0x471ff5(0x1fd)](_0x471ff5(0x229)+_0x3edcc8[_0x471ff5(0x261)]());throw _0x326e30;}finally{clearTimeout(_0x3d1a65);}}async function skillHubJsonRequest(_0x4f05da,_0x454b1a={}){const _0x298028=a108_0x3489,{method:method=_0x298028(0x264),query:_0x2fea0c,body:_0x3e6870,headers:headers={},timeout:timeout=0x7530,allowNotFound:allowNotFound=![]}=_0x454b1a,_0x14834d=_activeAK;if(!_0x14834d)throw CliErrors[_0x298028(0x22d)](_0x298028(0x232)+PRODUCT_CONFIG[_0x298028(0x260)]+'.');const _0x42999b=getSkillDomain()['replace'](/\/$/,''),_0x22b156=new URL(_0x4f05da,_0x42999b+'/');if(_0x2fea0c)for(const [_0x3db10d,_0x18a94c]of Object[_0x298028(0x20f)](_0x2fea0c)){_0x18a94c!==undefined&&_0x18a94c!==null&&_0x22b156[_0x298028(0x1d2)][_0x298028(0x25d)](_0x3db10d,String(_0x18a94c));}const _0x469c2b=new AbortController(),_0x58a78c=setTimeout(()=>_0x469c2b['abort'](),timeout);try{const _0x16c0b3=await fetch(_0x22b156[_0x298028(0x261)](),{'method':method,'headers':{'Accept':'application/json','X-Invoke-Source':PRODUCT_CONFIG['invokeSource'],'X-User-AK':_0x14834d,...headers},'body':_0x3e6870,'signal':_0x469c2b[_0x298028(0x2a9)]}),_0x57c9ff=await decodeResponseBody(_0x16c0b3);if(!_0x57c9ff[_0x298028(0x1f7)]){if(allowNotFound&&_0x16c0b3['status']===0x194)return undefined;throwIfRateLimited(_0x16c0b3,undefined,_0x57c9ff['text']);throw CliErrors[_0x298028(0x1fd)](_0x298028(0x1f9)+_0x16c0b3[_0x298028(0x279)]+')',_0x16c0b3[_0x298028(0x279)]>=0x190?'Check\x20your\x20credentials\x20and\x20try\x20again.':undefined);}const _0x38686a=_0x57c9ff[_0x298028(0x265)];throwIfRateLimited(_0x16c0b3,_0x38686a);if(allowNotFound&&isSkillHubNotFoundResponse(_0x16c0b3['status'],_0x38686a))return undefined;const _0x5a05f0=!_0x16c0b3['ok']||_0x38686a?.[_0x298028(0x24b)]===![]||typeof _0x38686a?.[_0x298028(0x227)]===_0x298028(0x292)&&_0x38686a['code']>=0x190;if(_0x5a05f0)throw CliErrors[_0x298028(0x1fd)](_0x38686a?.['errorMsg']||_0x38686a?.[_0x298028(0x1cc)]||_0x38686a?.[_0x298028(0x281)]||_0x298028(0x1fa)+_0x16c0b3['status'],_0x38686a?.[_0x298028(0x295)]?_0x298028(0x1c7)+_0x38686a[_0x298028(0x295)]:undefined);return _0x38686a?.[_0x298028(0x265)]??_0x38686a;}catch(_0x3f067f){if(_0x3f067f instanceof Error&&_0x3f067f[_0x298028(0x1f0)]===_0x298028(0x206))throw CliErrors[_0x298028(0x1fd)](_0x298028(0x229)+_0x22b156[_0x298028(0x261)]());throw _0x3f067f;}finally{clearTimeout(_0x58a78c);}}function isSkillHubNotFoundResponse(_0x543cbc,_0x288205){const _0x1da481=a108_0x3489;if(_0x543cbc===0x194||_0x288205?.[_0x1da481(0x227)]===0x194)return!![];if(_0x543cbc!==0x190&&_0x288205?.[_0x1da481(0x227)]!==0x190)return![];const _0x3b989d=[_0x288205?.[_0x1da481(0x281)],_0x288205?.[_0x1da481(0x1cc)],_0x288205?.[_0x1da481(0x212)],_0x288205?.[_0x1da481(0x24c)]]['filter'](_0x33d782=>typeof _0x33d782===_0x1da481(0x269))[_0x1da481(0x213)]('\x20');return/skill not found\b/i['test'](_0x3b989d);}async function skillHubBinaryRequest(_0x3cd2f8,_0x254e72={}){const _0x15ff3a=a108_0x3489,{query:_0x298fcd,headers:headers={},timeout:timeout=0x7530}=_0x254e72,_0x48baa2=_activeAK;if(!_0x48baa2)throw CliErrors[_0x15ff3a(0x22d)](_0x15ff3a(0x232)+PRODUCT_CONFIG['newConfigFileName']+'.');const _0x470e0a=getSkillDomain()[_0x15ff3a(0x29b)](/\/$/,''),_0xf156ea=new URL(_0x3cd2f8,_0x470e0a+'/');if(_0x298fcd)for(const [_0x37d6e8,_0x26cb56]of Object[_0x15ff3a(0x20f)](_0x298fcd)){_0x26cb56!==undefined&&_0x26cb56!==null&&_0xf156ea[_0x15ff3a(0x1d2)][_0x15ff3a(0x25d)](_0x37d6e8,String(_0x26cb56));}const _0x36bfbb=new AbortController(),_0x2867dd=setTimeout(()=>_0x36bfbb[_0x15ff3a(0x1d0)](),timeout);try{const _0x55c888=await fetch(_0xf156ea['toString'](),{'method':_0x15ff3a(0x264),'headers':{'Accept':_0x15ff3a(0x2a2),'X-Invoke-Source':PRODUCT_CONFIG['invokeSource'],'X-User-AK':_0x48baa2,...headers},'signal':_0x36bfbb['signal']});if(!_0x55c888['ok']){const _0x5de19d=await decodeResponseBody(_0x55c888),_0xb6b407=_0x5de19d['data']&&typeof _0x5de19d[_0x15ff3a(0x265)]===_0x15ff3a(0x215)?_0x5de19d[_0x15ff3a(0x265)]:{},_0x5a717e=firstString(_0xb6b407['errorMsg'],_0xb6b407[_0x15ff3a(0x1cc)],_0xb6b407[_0x15ff3a(0x281)],_0xb6b407[_0x15ff3a(0x295)],_0x5de19d[_0x15ff3a(0x273)]);throwIfRateLimited(_0x55c888,_0x5de19d['data'],_0x5a717e);throw CliErrors[_0x15ff3a(0x1fd)](_0x5a717e||_0x15ff3a(0x1fa)+_0x55c888[_0x15ff3a(0x279)],'Download\x20failed:\x20'+_0xf156ea[_0x15ff3a(0x261)]());}return Buffer[_0x15ff3a(0x1e5)](await _0x55c888[_0x15ff3a(0x225)]());}catch(_0x42e76a){if(_0x42e76a instanceof Error&&_0x42e76a[_0x15ff3a(0x1f0)]===_0x15ff3a(0x206))throw CliErrors[_0x15ff3a(0x1fd)](_0x15ff3a(0x229)+_0xf156ea[_0x15ff3a(0x261)]());throw _0x42e76a;}finally{clearTimeout(_0x2867dd);}}export async function getBffEndpointContract(_0x4241eb,_0x25937b){const _0x46fdde=a108_0x3489;if(encodeURIComponent(_0x4241eb)!==_0x4241eb||_0x4241eb==='.'||_0x4241eb==='..')throw CliErrors[_0x46fdde(0x234)](_0x46fdde(0x22c));if(_0x25937b===_0x46fdde(0x1dd))throw CliErrors['validation'](_0x46fdde(0x2a4)+_0x4241eb+_0x46fdde(0x1e9)+_0x25937b);const _0x983cf4=await sdkRequest(_0x4241eb,_0x3e8056=>{const _0x39f057=_0x46fdde;if(!(_0x39f057(0x1c6)in _0x3e8056['bff']))throw CliErrors[_0x39f057(0x234)](_0x39f057(0x1da));return _0x3e8056['bff']['getEndpoint'](_0x25937b);});if(!_0x983cf4||typeof _0x983cf4!==_0x46fdde(0x215)||Array['isArray'](_0x983cf4)||_0x983cf4[_0x46fdde(0x1e6)]!==_0x4241eb||_0x983cf4[_0x46fdde(0x24d)]!==_0x25937b)throw CliErrors[_0x46fdde(0x234)](_0x46fdde(0x2a4)+_0x4241eb+_0x46fdde(0x1e9)+_0x25937b);const _0x5a60b3=_0x983cf4[_0x46fdde(0x297)];if(_0x5a60b3!=null&&(typeof _0x5a60b3!==_0x46fdde(0x292)||!Number[_0x46fdde(0x230)](_0x5a60b3)))throw CliErrors[_0x46fdde(0x1fd)](_0x46fdde(0x20d));return{'appCode':_0x983cf4[_0x46fdde(0x1e6)],'functionName':_0x983cf4[_0x46fdde(0x24d)],'description':_0x983cf4[_0x46fdde(0x266)],'version':_0x983cf4[_0x46fdde(0x252)],'gmtModified':_0x5a60b3};}export async function getSqlQueryInfo(_0x250ebc,_0x5179d2){const _0x2fc876=a108_0x3489,_0x113741=await sdkRequest(_0x250ebc,_0x28e53c=>{const _0x58256b=a108_0x3489;if(!(_0x58256b(0x21e)in _0x28e53c[_0x58256b(0x262)]))throw CliErrors[_0x58256b(0x234)](_0x58256b(0x271));return _0x28e53c[_0x58256b(0x262)][_0x58256b(0x21e)]({'appCode':_0x250ebc,'currentPage':0x1,'pageSize':0x1,'sqlCode':_0x5179d2});}),_0x85dfaa=_0x113741&&typeof _0x113741===_0x2fc876(0x215)&&_0x2fc876(0x29e)in _0x113741?_0x113741['tableData']?.[0x0]:_0x113741&&typeof _0x113741===_0x2fc876(0x215)&&_0x2fc876(0x29c)in _0x113741?_0x113741:undefined;if(!_0x85dfaa)throw CliErrors['validation'](_0x2fc876(0x21d)+_0x5179d2);return _0x85dfaa;}export async function listApprovalTodo(_0x421ea3,_0x227b4c=0x1,_0x312bd1=0x14){const _0x222077=a108_0x3489,_0x58fa2c=await sdkRequest(_0x421ea3,_0x5aa7bd=>_0x5aa7bd['approval']['listTodo']({'currentPage':_0x227b4c,'pageSize':_0x312bd1}));if(!_0x58fa2c||typeof _0x58fa2c!==_0x222077(0x215)||!Array[_0x222077(0x220)](_0x58fa2c[_0x222077(0x270)]))throw CliErrors['apiError'](_0x222077(0x221));return _0x58fa2c;}export async function getApprovalTaskDetail(_0x579927,_0x418dfc){const _0x7a7a8c=a108_0x3489,_0x2633dd=await sdkRequest(_0x418dfc,_0x576069=>_0x576069['approval'][_0x7a7a8c(0x267)](_0x579927));if(!_0x2633dd||typeof _0x2633dd!=='object'||Array[_0x7a7a8c(0x220)](_0x2633dd))throw CliErrors['apiError'](_0x7a7a8c(0x1ce));return _0x2633dd;}export async function approveApprovalTask(_0x297ecd){const _0x1e2093=a108_0x3489;return await sdkRequest(_0x297ecd[_0x1e2093(0x1e6)],_0x12db93=>_0x12db93[_0x1e2093(0x205)]['approve'](_0x297ecd)),null;}export async function transferApprovalTask(_0x4ea0d8){const _0x318ed1=a108_0x3489;return await sdkRequest(_0x4ea0d8[_0x318ed1(0x1e6)],_0x4bdd4a=>_0x4bdd4a[_0x318ed1(0x205)][_0x318ed1(0x24e)](_0x4ea0d8)),null;}function isRemoteAppItem(_0x2db555){const _0x543e9d=a108_0x3489;return!!_0x2db555&&typeof _0x2db555===_0x543e9d(0x215)&&typeof _0x2db555[_0x543e9d(0x1e6)]===_0x543e9d(0x269)&&typeof _0x2db555[_0x543e9d(0x224)]==='string';}function extractRemoteAppItems(_0x5daf41){const _0x211b37=a108_0x3489;if(Array[_0x211b37(0x220)](_0x5daf41))return _0x5daf41[_0x211b37(0x1ea)](isRemoteAppItem);if(!_0x5daf41||typeof _0x5daf41!=='object')throw CliErrors[_0x211b37(0x1fd)](_0x211b37(0x249));const _0x4c820b=_0x5daf41;if(Array[_0x211b37(0x220)](_0x4c820b[_0x211b37(0x29e)]))return _0x4c820b['tableData']['filter'](isRemoteAppItem);if(_0x4c820b['data']&&typeof _0x4c820b[_0x211b37(0x265)]===_0x211b37(0x215)){const _0xe60e=_0x4c820b[_0x211b37(0x265)];if(Array[_0x211b37(0x220)](_0xe60e['tableData']))return _0xe60e[_0x211b37(0x29e)][_0x211b37(0x1ea)](isRemoteAppItem);}throw CliErrors[_0x211b37(0x1fd)](_0x211b37(0x28e));}export async function getMyApps(){const _0x377ef4=a108_0x3489;return extractRemoteAppItems(await identitySdkRequest(_0x1b008f=>_0x1b008f[_0x377ef4(0x25e)]()));}export async function getLoginUserInfo(){const _0x4f6ad6=a108_0x3489,_0x111c9c=await identitySdkRequest(_0x239295=>_0x239295[_0x4f6ad6(0x1c5)]());if(!_0x111c9c||typeof _0x111c9c!==_0x4f6ad6(0x215)||Array[_0x4f6ad6(0x220)](_0x111c9c))throw CliErrors[_0x4f6ad6(0x1fd)](_0x4f6ad6(0x27c));return _0x111c9c;}export const USER_ACCOUNT_BIND_PATH=a108_0x54c627(0x1ee);export async function bindExternalUserAccount(_0x21b451,_0x1fbeea){return identitySdkRequest(_0x5505bc=>_0x5505bc['bindAccount']({'provider':_0x21b451,'accountId':_0x1fbeea}));}function runtimeSchedulePath(_0x3a83dc,_0x3e8b37=''){const _0x34f6a4=a108_0x54c627;return'/api/harness/apps/'+encodeURIComponent(_0x3a83dc)+_0x34f6a4(0x29f)+_0x3e8b37;}export async function validateRuntimeSchedule(_0x32544a,_0x102c38){const _0x4497e5=a108_0x54c627,_0x30c7ad=await apiRequest(runtimeSchedulePath(_0x32544a,_0x4497e5(0x210)),{'domain':_0x4497e5(0x1f5),'method':_0x4497e5(0x275),'body':_0x102c38});return _0x30c7ad[_0x4497e5(0x265)];}export async function createRuntimeSchedule(_0x479fb3,_0x3cda17){const _0x1b8a7d=a108_0x54c627,_0x2352d4=await apiRequest(runtimeSchedulePath(_0x479fb3),{'domain':_0x1b8a7d(0x1f5),'method':_0x1b8a7d(0x275),'body':_0x3cda17});return _0x2352d4['data'];}export async function listRuntimeSchedules(_0x49fb39,_0x27c390){const _0x44a4ad=a108_0x54c627,_0x18c3fc=new URLSearchParams();_0x18c3fc['set']('kind',_0x27c390[_0x44a4ad(0x217)]);if(_0x27c390[_0x44a4ad(0x2aa)]!==undefined)_0x18c3fc[_0x44a4ad(0x25d)](_0x44a4ad(0x2aa),String(_0x27c390[_0x44a4ad(0x2aa)]));if(_0x27c390[_0x44a4ad(0x22f)])_0x18c3fc[_0x44a4ad(0x25d)]('cursor',_0x27c390[_0x44a4ad(0x22f)]);const _0x397c9f=_0x18c3fc[_0x44a4ad(0x1d5)]>0x0?'?'+_0x18c3fc[_0x44a4ad(0x261)]():'',_0x40f9d1=await apiRequest(''+runtimeSchedulePath(_0x49fb39)+_0x397c9f,{'domain':_0x44a4ad(0x1f5)});return _0x40f9d1[_0x44a4ad(0x265)];}export async function getRuntimeSchedule(_0x5973d0,_0x4dfd9c){const _0x4d86be=a108_0x54c627,_0x4d1bc7=await apiRequest(runtimeSchedulePath(_0x5973d0,'/'+encodeURIComponent(_0x4dfd9c)),{'domain':_0x4d86be(0x1f5)});return _0x4d1bc7['data'];}export async function deleteRuntimeSchedule(_0x52ffce,_0xacd260){const _0x199655=a108_0x54c627,_0x209da9=await apiRequest(runtimeSchedulePath(_0x52ffce,'/'+encodeURIComponent(_0xacd260)),{'domain':_0x199655(0x1f5),'method':_0x199655(0x1c3)});return _0x209da9[_0x199655(0x265)];}export async function runRuntimeSchedule(_0x54048d,_0x9a543f){const _0x105328=a108_0x54c627,_0x5958e1=await apiRequest(runtimeSchedulePath(_0x54048d,'/'+encodeURIComponent(_0x9a543f)+_0x105328(0x201)),{'domain':_0x105328(0x1f5),'method':'POST'});return _0x5958e1['data'];}export async function listDatasets(_0x41d7aa,_0x42eebe){const _0x3dc7c3=a108_0x54c627,_0x385963=await sdkRequest(_0x41d7aa,_0x86b341=>_0x86b341[_0x3dc7c3(0x26e)]['list']({..._0x42eebe?.[_0x3dc7c3(0x227)]&&{'code':_0x42eebe[_0x3dc7c3(0x227)]},..._0x42eebe?.[_0x3dc7c3(0x1f0)]&&{'name':_0x42eebe[_0x3dc7c3(0x1f0)]},..._0x42eebe?.[_0x3dc7c3(0x209)]&&{'tableName':_0x42eebe[_0x3dc7c3(0x209)]}}));return extractList(_0x385963);}export async function getDatasetDetail(_0x55194f){const _0x3d3e32=a108_0x54c627;return sdkRequest(undefined,_0x49ff54=>_0x49ff54[_0x3d3e32(0x26e)]['getDrivenData']({'code':_0x55194f}));}function importSdkRequest(_0xf0263,_0x27ded7,_0x260420){return sdkRequest(_0xf0263,_0x84ec28=>{const _0x40e7cc=a108_0x3489,_0x17f70b=_0x84ec28[_0x40e7cc(0x1de)]('dataset_'+_0x27ded7);if(!(_0x17f70b instanceof ClientAkModel))throw CliErrors[_0x40e7cc(0x234)](_0x40e7cc(0x2a3));return _0x260420(_0x17f70b);});}export async function getDatasetImportContract(_0x42e48b,_0x574950){const _0x94553d=a108_0x54c627;return importSdkRequest(_0x42e48b,_0x574950,_0x26f8e2=>_0x26f8e2[_0x94553d(0x1d3)]());}export async function createDatasetImportBatch(_0x26b38c,_0x230881,_0x2e6b39){const _0x479b90=a108_0x54c627;return importSdkRequest(_0x26b38c,_0x230881,_0x3d0ba5=>_0x3d0ba5[_0x479b90(0x298)](_0x2e6b39));}export async function readDatasetImportRows(_0x368632,_0x4315fa,_0x3be213){const _0x397b7c=a108_0x54c627,_0x16602a=await importSdkRequest(_0x368632,_0x4315fa,_0xa0515f=>_0xa0515f[_0x397b7c(0x2a7)]({'ids':_0x3be213}));if(!_0x16602a||!Array['isArray'](_0x16602a[_0x397b7c(0x1dc)]))throw CliErrors[_0x397b7c(0x1fd)]('Invalid\x20import\x20readback\x20response.');return _0x16602a[_0x397b7c(0x1dc)];}export async function readDatasetImportTaskRows(_0x17bece,_0x55b81c,_0x7252e7){const _0x3d3964=a108_0x54c627,_0x4b9844=await importSdkRequest(_0x17bece,_0x55b81c,_0x2f8cf9=>_0x2f8cf9[_0x3d3964(0x2a7)]({'taskId':_0x7252e7}));if(!_0x4b9844||!Array['isArray'](_0x4b9844[_0x3d3964(0x1dc)]))throw CliErrors[_0x3d3964(0x1fd)](_0x3d3964(0x24f));return _0x4b9844[_0x3d3964(0x1dc)];}export async function uploadDatasetImportImage(_0x5ac9f6,_0x53c4f9,_0x16b768,_0x45d5dd){const _0x1cd9a3=a108_0x54c627;return importSdkRequest(_0x5ac9f6,_0x53c4f9,_0x252f96=>_0x252f96[_0x1cd9a3(0x20a)]({'importId':_0x16b768,'contentHash':_0x45d5dd[_0x1cd9a3(0x2a0)],'file':new Blob([new Uint8Array(_0x45d5dd[_0x1cd9a3(0x211)])],{'type':_0x45d5dd['type']}),'fileName':_0x1cd9a3(0x1e0)}));}export async function readDatasetImportImage(_0x48eeaf,_0x1a16f0,_0x152181,_0x3b1393){const _0x46e53e=a108_0x54c627;return importSdkRequest(_0x48eeaf,_0x1a16f0,_0x195a20=>_0x195a20[_0x46e53e(0x1c9)]({'importId':_0x152181,'contentHash':_0x3b1393[_0x46e53e(0x2a0)],'type':_0x3b1393[_0x46e53e(0x248)],'size':_0x3b1393[_0x46e53e(0x1d5)]}));}export async function getDatasetSdkUsageDoc(_0x17810a,_0x40d2cd){const _0x4bb6eb=a108_0x54c627,_0x28a8e0=await toolboxRequest(_0x4bb6eb(0x1cb),{'datasetCode':_0x17810a,'appCode':_0x40d2cd});return typeof _0x28a8e0?.[_0x4bb6eb(0x233)]==='string'?_0x28a8e0[_0x4bb6eb(0x233)]:'';}export async function uploadRuntimeFile(_0x2e3e29,_0x1172d9){const _0x2dbfed=a108_0x54c627,_0xd90700=await readFile(_0x1172d9);return sdkRequest(_0x2e3e29,_0x116c9b=>_0x116c9b['services'][_0x2dbfed(0x28a)][_0x2dbfed(0x1c4)]({'file':new Blob([new Uint8Array(_0xd90700)]),'fileName':basename(_0x1172d9)}));}export async function queryRuntimeFileUrl(_0x405158,_0x50384c={}){const _0x6d210d=a108_0x54c627;return sdkRequest(undefined,_0x5bdfb3=>_0x5bdfb3[_0x6d210d(0x21a)]['file'][_0x6d210d(0x1df)]({'filePath':_0x405158,..._0x50384c}));}export async function recognizeRuntimeOcr(_0x30c7e2,_0x84e2ac){const _0x2d52a2=a108_0x54c627;return sdkRequest(_0x30c7e2,_0x3a627c=>_0x3a627c['services'][_0x2d52a2(0x276)][_0x2d52a2(0x216)](_0x84e2ac));}export async function getRuntimeAppConfigByKey(_0x51ec02,_0x5454c6){const _0x1f480b=a108_0x54c627,_0x3e00a8=await sdkRequest(_0x51ec02,_0x24f730=>_0x24f730[_0x1f480b(0x246)][_0x1f480b(0x293)](_0x5454c6));if(typeof _0x3e00a8!==_0x1f480b(0x269))throw CliErrors[_0x1f480b(0x234)]('Invalid\x20app\x20config\x20value:\x20key='+_0x5454c6);return _0x3e00a8;}function a108_0x3489(_0x2e4e38,_0x28fa15){_0x2e4e38=_0x2e4e38-0x1c1;const _0x49490e=a108_0x4949();let _0x3489ee=_0x49490e[_0x2e4e38];return _0x3489ee;}export async function listNotificationChannelConfigs(_0x5c75c9,_0x575ebe){const _0x3cadb1=a108_0x54c627,_0x5ed77f=await sdkRequest(_0x5c75c9,_0x4b6871=>_0x4b6871[_0x3cadb1(0x246)][_0x3cadb1(0x203)](_0x575ebe));if(!Array[_0x3cadb1(0x220)](_0x5ed77f))throw CliErrors[_0x3cadb1(0x1fd)](_0x3cadb1(0x219),_0x3cadb1(0x1f2));return _0x5ed77f;}export async function listRuntimeArtifacts(_0x3d4425,_0x55208a){const _0x135dad=a108_0x54c627,_0x2912e8=await sdkRequest(_0x3d4425,_0x196f0d=>_0x196f0d[_0x135dad(0x29a)][_0x135dad(0x1cd)](_0x55208a));return Array[_0x135dad(0x220)](_0x2912e8)?_0x2912e8:[];}export async function getRuntimeArtifact(_0x33bde3,_0x504fb2){const _0x39b531=a108_0x54c627,_0x3496ce=await sdkRequest(_0x504fb2,_0x1116c0=>_0x1116c0[_0x39b531(0x29a)][_0x39b531(0x1d8)](_0x33bde3));if(!_0x3496ce)throw CliErrors[_0x39b531(0x234)](_0x39b531(0x27f)+_0x33bde3);return _0x3496ce;}export async function createRuntimeArtifact(_0x2a3d1a,_0x5845a8){const _0x24acb7=a108_0x54c627;return sdkRequest(_0x2a3d1a,_0x57372a=>_0x57372a[_0x24acb7(0x29a)][_0x24acb7(0x1d9)](_0x5845a8));}export async function updateRuntimeArtifact(_0x53ee13,_0x15403f,_0x2593be){const _0x4172ec=a108_0x54c627;return sdkRequest(_0x15403f,_0x36f066=>_0x36f066[_0x4172ec(0x29a)][_0x4172ec(0x20b)](_0x53ee13,_0x2593be));}export async function listPersonalBffs(_0x7c78be){const _0x289f55=a108_0x54c627,_0x123696=await sdkRequest(_0x7c78be,_0x13dee6=>_0x13dee6['personal'][_0x289f55(0x1c1)][_0x289f55(0x1cd)]());return Array[_0x289f55(0x220)](_0x123696)?_0x123696:[];}export async function getPersonalBff(_0x1ff500,_0x36ada5){const _0xa369d4=a108_0x54c627,_0x39e815=await sdkRequest(_0x36ada5,_0x109f3b=>_0x109f3b['personal'][_0xa369d4(0x1c1)]['get'](_0x1ff500));if(!_0x39e815)throw CliErrors[_0xa369d4(0x234)](_0xa369d4(0x1e1)+_0x1ff500);return _0x39e815;}export async function createPersonalBff(_0xfaa3d4,_0x2c96be){const _0x2d077c=a108_0x54c627;return sdkRequest(_0xfaa3d4,_0x444af5=>_0x444af5[_0x2d077c(0x20e)][_0x2d077c(0x1c1)][_0x2d077c(0x1d9)](_0x2c96be));}export async function updatePersonalBff(_0x28d0e2,_0xc4071d,_0x174506){const _0x36749f=a108_0x54c627;return sdkRequest(_0xc4071d,_0x2c61e9=>_0x2c61e9[_0x36749f(0x20e)][_0x36749f(0x1c1)][_0x36749f(0x20b)](_0x28d0e2,_0x174506));}export async function executePersonalBff(_0x5ad701,_0xe2506d,_0x481953){const _0x433f8e=a108_0x54c627;return sdkRequest(_0xe2506d,_0x15d1f4=>_0x15d1f4['personal'][_0x433f8e(0x1c1)][_0x433f8e(0x1e7)]({'scriptId':_0x5ad701,'params':_0x481953}));}export async function listPersonalKnowledgeBaseItems(_0xfa5da1,_0x551cfd){return listPersonalKnowledge({'appCode':_0xfa5da1,'accessKey':_activeAK,'signal':_0x551cfd});}export async function getPersonalKnowledgeBaseItem(_0x15cf73,_0x4cfbdc,_0x498342){return getPersonalKnowledge({'appCode':_0x4cfbdc,'accessKey':_activeAK,'signal':_0x498342},_0x15cf73);}export async function createPersonalKnowledgeBaseItem(_0xb28d9,_0xd96013,_0x3311a4){return savePersonalKnowledge({'appCode':_0xb28d9,'accessKey':_activeAK,'signal':_0x3311a4},_0xd96013);}export async function updatePersonalKnowledgeBaseItem(_0x32ad26,_0x2b4394,_0x12d522,_0x5074a6){return savePersonalKnowledge({'appCode':_0x2b4394,'accessKey':_activeAK,'signal':_0x5074a6},_0x12d522,_0x32ad26);}export async function getRuntimeSkillByCode(_0x183dd9,_0x15f06e){const _0x557b73=a108_0x54c627,_0x57cd14=await skillHubJsonRequest(_0x557b73(0x23f)+encodeURIComponent(_0x183dd9)+'/'+encodeURIComponent(_0x15f06e),{'allowNotFound':!![]});return _0x57cd14?skillHubRuntimeDetailToRuntimeSkill(_0x57cd14):undefined;}export async function listRuntimeSkills(_0x3efdcd){const _0x5ca820=a108_0x54c627,_0x2a9ef1=await skillHubJsonRequest(_0x5ca820(0x2a8)+encodeURIComponent(_0x3efdcd['appCode'])+_0x5ca820(0x25c),{'query':{'page':0x0,'size':0xc8}});return normalizeSkillHubRuntimeListResponse(_0x3efdcd[_0x5ca820(0x1e6)],_0x2a9ef1,_0x3efdcd[_0x5ca820(0x24a)]??_0x5ca820(0x25a),_0x3efdcd[_0x5ca820(0x227)],_0x3efdcd['installableOnly']);}export async function listPersonalRuntimeSkills(_0x218b2f){const _0xcc2f20=a108_0x54c627;return(await listRuntimeSkills({'appCode':_0x218b2f,'scope':_0xcc2f20(0x20e)}))['personal'];}export async function listCompanyRuntimeSkills(_0x3639e9){const _0x55bf03=a108_0x54c627;return(await listRuntimeSkills({'appCode':_0x3639e9,'scope':_0x55bf03(0x250)}))[_0x55bf03(0x250)];}export async function listVisibleRuntimeSkills(_0x60f650){return(await listRuntimeSkills({'appCode':_0x60f650,'scope':'all'}))['effective'];}export async function createPersonalRuntimeSkill(_0x49c57a,_0x5f90a0,_0x43bf0f={}){const _0x3d9444=a108_0x54c627;return publishRuntimeSkill(_0x49c57a,_0x5f90a0,{'visibility':_0x3d9444(0x284),'confirmWarnings':_0x43bf0f[_0x3d9444(0x21b)]});}export async function updatePersonalRuntimeSkill(_0x122934,_0x4a3c02,_0x2978e8,_0x1a12c2={}){const _0x70b4a5=a108_0x54c627;return publishRuntimeSkill(_0x4a3c02,{..._0x2978e8,'skillCode':_0x2978e8[_0x70b4a5(0x214)]??_0x122934},{'visibility':_0x70b4a5(0x284),'confirmWarnings':_0x1a12c2[_0x70b4a5(0x21b)]});}export async function publishCompanyRuntimeSkill(_0x1a8d04,_0x23a374,_0x4e5f21={}){const _0x59e029=a108_0x54c627;return publishRuntimeSkill(_0x1a8d04,_0x23a374,{'visibility':'NAMESPACE_ONLY','confirmWarnings':_0x4e5f21[_0x59e029(0x21b)]});}export async function validateRuntimeSkillPublish(_0x32dae,_0x514f37,_0x2e055f){const _0x3cc16a=a108_0x54c627,_0x1019bf=buildRuntimeSkillPublishForm(_0x514f37,_0x2e055f[_0x3cc16a(0x254)]),_0x10cfa2=await skillHubJsonRequest('/api/cli/v1/skills/'+encodeURIComponent(_0x32dae)+_0x3cc16a(0x25b),{'method':_0x3cc16a(0x275),'body':_0x1019bf});return assertJointDiagramAcknowledged(_0x514f37[_0x3cc16a(0x23c)],_0x10cfa2['diagramValidated'],'validation'),{'valid':_0x10cfa2['valid']===!![],'errors':Array[_0x3cc16a(0x220)](_0x10cfa2[_0x3cc16a(0x257)])?_0x10cfa2[_0x3cc16a(0x257)]:[],'warnings':Array[_0x3cc16a(0x220)](_0x10cfa2[_0x3cc16a(0x277)])?_0x10cfa2['warnings']:[],'resolvedSlug':_0x10cfa2[_0x3cc16a(0x258)],'resolvedVersion':_0x10cfa2[_0x3cc16a(0x26d)],'diagramValidated':_0x10cfa2['diagramValidated']===!![]};}export async function validateRuntimeSkillVersionDiagram(_0x39e5a7,_0x350753,_0x4a6b05,_0x30e2f3,_0x5f8b96){const _0x5b2cff=a108_0x54c627;return skillHubJsonRequest(runtimeSkillVersionDiagramPath(_0x39e5a7,_0x350753,_0x4a6b05,'/validate'),{'method':_0x5b2cff(0x275),'query':{'scope':_0x30e2f3},'headers':{'Content-Type':_0x5b2cff(0x296)},'body':JSON['stringify'](_0x5f8b96)});}export async function putRuntimeSkillVersionDiagram(_0xcd210e,_0x244f4e,_0x19a6dc,_0x492ee1,_0x28cdeb){const _0x1c6b55=a108_0x54c627;return skillHubJsonRequest(runtimeSkillVersionDiagramPath(_0xcd210e,_0x244f4e,_0x19a6dc),{'method':_0x1c6b55(0x235),'query':{'scope':_0x492ee1},'headers':{'Content-Type':'application/json'},'body':JSON[_0x1c6b55(0x286)](_0x28cdeb)});}export async function getRuntimeSkillVersionDiagram(_0x44903b,_0x588015,_0x378622,_0x45ecb6){const _0x58dd25=a108_0x54c627,_0x7a5e1e=await skillHubJsonRequest(runtimeSkillVersionDiagramPath(_0x44903b,_0x588015,_0x378622),{'query':{'scope':_0x45ecb6}});if(typeof _0x7a5e1e[_0x58dd25(0x1ec)]!==_0x58dd25(0x27b))throw CliErrors[_0x58dd25(0x1fd)](_0x58dd25(0x272));const _0x4b0482=_0x7a5e1e[_0x58dd25(0x1d6)];if(typeof _0x4b0482!==_0x58dd25(0x269)||!/^sha256:[0-9a-f]{64}$/[_0x58dd25(0x1f3)](_0x4b0482))throw CliErrors[_0x58dd25(0x1fd)](_0x58dd25(0x1ed),'SkillHub\x20must\x20return\x20the\x20exact\x20SkillVersion\x20fingerprint\x20even\x20when\x20found=false.');const _0x365642=_0x7a5e1e['diagramRevision'];if(_0x7a5e1e['found']&&(!Number[_0x58dd25(0x20c)](_0x365642)||Number(_0x365642)<0x1))throw CliErrors[_0x58dd25(0x1fd)](_0x58dd25(0x21f));if(!_0x7a5e1e[_0x58dd25(0x1ec)]&&_0x365642!==undefined&&_0x365642!==null)throw CliErrors[_0x58dd25(0x1fd)](_0x58dd25(0x1e2));const _0x5444f7=_0x7a5e1e['found']?Number(_0x365642):null;return{..._0x7a5e1e,'sourceFingerprint':_0x4b0482,'diagramRevision':_0x5444f7,'expectedDiagramRevision':_0x5444f7??0x0};}export async function downloadRuntimeSkillPackage(_0xfacc2c,_0x31e676,_0x147400,_0x521141){const _0x31cb7=a108_0x54c627;void _0xfacc2c;const _0x302e65=_0x521141?'/api/cli/v1/skills/'+encodeURIComponent(_0x147400)+'/'+encodeURIComponent(_0x31e676)+_0x31cb7(0x2a6)+encodeURIComponent(_0x521141)+_0x31cb7(0x2a1):_0x31cb7(0x200)+encodeURIComponent(_0x147400)+'/'+encodeURIComponent(_0x31e676)+'/download';return skillHubBinaryRequest(_0x302e65);}async function publishRuntimeSkill(_0x4b431e,_0x1cb700,_0x129d84){const _0x188c3b=a108_0x54c627,_0x19bf09=buildRuntimeSkillPublishForm(_0x1cb700,_0x129d84[_0x188c3b(0x254)]),_0x28f6e2=await skillHubJsonRequest('/api/cli/v1/skills/'+encodeURIComponent(_0x4b431e)+_0x188c3b(0x1fb),{'method':_0x188c3b(0x275),'query':{'confirmWarnings':_0x129d84[_0x188c3b(0x21b)]===!![]?!![]:undefined},'body':_0x19bf09});return assertJointDiagramAcknowledged(_0x1cb700[_0x188c3b(0x23c)],_0x28f6e2[_0x188c3b(0x208)],_0x188c3b(0x285)),{'appCode':_0x28f6e2[_0x188c3b(0x274)]??_0x4b431e,'skillCode':_0x28f6e2[_0x188c3b(0x263)]??_0x1cb700[_0x188c3b(0x214)]??'','skillName':_0x1cb700['skillName']??_0x28f6e2[_0x188c3b(0x263)]??_0x1cb700[_0x188c3b(0x214)],'description':_0x1cb700['description'],'scope':skillHubVisibilityToScope(_0x28f6e2[_0x188c3b(0x254)]??_0x129d84[_0x188c3b(0x254)])??_0x188c3b(0x20e),'version':_0x28f6e2[_0x188c3b(0x252)]??_0x1cb700[_0x188c3b(0x252)],'tags':_0x1cb700[_0x188c3b(0x27a)],'content':_0x1cb700[_0x188c3b(0x228)],'diagramBound':_0x28f6e2[_0x188c3b(0x208)]===!![]};}function assertJointDiagramAcknowledged(_0x41143d,_0x27bf07,_0x48594f){const _0x22ccc7=a108_0x54c627;if(!_0x41143d||_0x27bf07===!![])return;throw CliErrors[_0x22ccc7(0x1fd)](_0x22ccc7(0x1ca)+_0x48594f+'.',_0x22ccc7(0x28c));}function buildRuntimeSkillPublishForm(_0x4dc470,_0x235853){const _0x40988c=a108_0x54c627,_0x599a48=new FormData();return _0x599a48[_0x40988c(0x25d)]('file',runtimeSkillPackageFile(_0x4dc470)),_0x4dc470[_0x40988c(0x1ef)]?.[_0x40988c(0x22b)]()&&_0x599a48['set']('displayName',_0x4dc470[_0x40988c(0x1ef)][_0x40988c(0x22b)]()),_0x599a48[_0x40988c(0x25d)](_0x40988c(0x254),_0x235853),_0x4dc470[_0x40988c(0x23c)]&&_0x599a48[_0x40988c(0x25d)](_0x40988c(0x23c),new Blob([JSON['stringify'](_0x4dc470[_0x40988c(0x23c)])],{'type':_0x40988c(0x296)})),_0x599a48;}function runtimeSkillVersionDiagramPath(_0x441cdd,_0x4ecbb4,_0x1ff2d9,_0x2a15a4=''){const _0x154f82=a108_0x54c627;return _0x154f82(0x200)+encodeURIComponent(_0x441cdd)+'/'+encodeURIComponent(_0x4ecbb4)+_0x154f82(0x2a6)+encodeURIComponent(_0x1ff2d9)+_0x154f82(0x238)+_0x2a15a4;}function runtimeSkillPackageFile(_0x59b5f7){const _0x150456=a108_0x54c627;if(!_0x59b5f7['packageBase64'])throw CliErrors[_0x150456(0x234)](_0x150456(0x290));const _0x27210d=Buffer[_0x150456(0x1e5)](_0x59b5f7['packageBase64'],_0x150456(0x1f1)),_0x2e8247=new Blob([_0x27210d],{'type':_0x150456(0x289)}),_0x3d878d=(_0x59b5f7[_0x150456(0x214)]||_0x150456(0x240))+_0x150456(0x23a);if(typeof File!==_0x150456(0x236))return new File([_0x2e8247],_0x3d878d,{'type':_0x150456(0x289)});return _0x2e8247;}function normalizeSkillHubRuntimeListResponse(_0x2d87cb,_0x2ce09f,_0x3643fa,_0x51c4f4,_0x2e5e22=![]){const _0x16ee03=a108_0x54c627,_0x40ecef=Array[_0x16ee03(0x220)](_0x2ce09f)?_0x2ce09f:Array['isArray'](_0x2ce09f?.[_0x16ee03(0x1dc)])?_0x2ce09f[_0x16ee03(0x1dc)]:[],_0x5b0b33=_0x51c4f4?.['trim'](),_0x563399=_0x40ecef[_0x16ee03(0x1ea)](_0x33de77=>!_0x5b0b33||_0x33de77['slug']===_0x5b0b33)[_0x16ee03(0x1ea)](_0x396b9c=>!_0x2e5e22||_0x396b9c['publishedVersion']?.[_0x16ee03(0x279)]==='PUBLISHED'&&Boolean(_0x396b9c['publishedVersion'][_0x16ee03(0x252)]?.[_0x16ee03(0x22b)]()))[_0x16ee03(0x218)](skillHubRuntimeItemToRuntimeSkill)[_0x16ee03(0x1ea)](_0x22e46f=>Boolean(_0x22e46f)),_0x2c8f1d=_0x563399[_0x16ee03(0x1ea)](_0x184704=>_0x184704[_0x16ee03(0x24a)]===_0x16ee03(0x20e)),_0x4aefdc=_0x563399[_0x16ee03(0x1ea)](_0x449271=>_0x449271[_0x16ee03(0x24a)]===_0x16ee03(0x250));return{'appCode':_0x2d87cb,'personal':_0x3643fa===_0x16ee03(0x250)?[]:_0x2c8f1d,'company':_0x3643fa===_0x16ee03(0x20e)?[]:_0x4aefdc,'effective':buildEffectiveRuntimeSkills(_0x2c8f1d,_0x4aefdc,_0x3643fa)};}function a108_0x4949(){const _0x1a4a62=['response','isJson','find','SkillHub\x20returned\x20non-JSON\x20response\x20(HTTP\x20','SkillHub\x20API\x20error:\x20','/publish','userList','apiError','2285136EXeykB','4124sQwQVJ','/api/cli/v1/skills/','/run','Invalid\x20runtime\x20role\x20members\x20response:\x20roleList[','listNotificationChannels','permitList','approval','AbortError','getDatasetPermitList','diagramBound','tableName','importImage','update','isInteger','Invalid\x20Backend\x20Function\x20response:\x20gmtModified\x20must\x20be\x20an\x20integer\x20timestamp\x20or\x20null.','personal','entries','/validate','bytes','errorMsg','join','skillCode','object','recognize','kind','map','Invalid\x20notification\x20config\x20list\x20response.','services','confirmWarnings','updateRoleUserList','SQL\x20query\x20not\x20found:\x20','query','Invalid\x20Skill\x20diagram\x20response:\x20found\x20diagram\x20has\x20no\x20positive\x20diagramRevision.','isArray','Invalid\x20approval\x20todo\x20response:\x20missing\x20records.','displayName','getResourceMenuList','appName','arrayBuffer','getRoleUserList','code','content','Request\x20timeout:\x20','example','trim','Application\x20code\x20contains\x20invalid\x20URL\x20path\x20characters.','authRequired','665754JpclLM','cursor','isSafeInteger','retryAfter','Configure\x20accessKey\x20in\x20','markdown','validation','PUT','undefined','getPagePermit','/diagram','getDatasetPermitMeta','.zip','effective','diagram','getMenuPermitList','3570470ftNQJR','/api/v1/skills/','skill','Runtime\x20SDK\x20request\x20failed.','].userList','applyUserList','4095iCEpZi','Toolbox\x20API\x20error:\x20','app','API\x20returned\x20non-JSON\x20response\x20(HTTP\x20','type','Invalid\x20app\x20list\x20response:\x20expected\x20object\x20or\x20array.','scope','success','error','functionName','transfer','Invalid\x20import\x20task\x20readback\x20response.','company','roleName','version','Invalid\x20runtime\x20role\x20members\x20response:\x20','visibility','Toolbox\x20error\x20code:\x20','saveMenuPermits','errors','resolvedSlug','headlineVersion','all','/publish/validate','/skills','set','myApps','Download\x20failed:\x20','newConfigFileName','toString','sql','slug','GET','data','description','getTask','permit','string','18nVCAFB','/api/node-toolbox/','ownerPreviewVersion','resolvedVersion','datasetMeta','max','records','SQL\x20metadata\x20requires\x20Client\x20AK.','Invalid\x20Skill\x20diagram\x20response:\x20missing\x20found\x20state.','text','namespace','POST','ocr','warnings','client-ak','status','tags','boolean','Invalid\x20login\x20user\x20info\x20response:\x20expected\x20object.','function',']\x20must\x20be\x20an\x20object.','Artifact\x20not\x20found:\x20id=','api','msg','].userId\x20is\x20invalid.','18UQtcPS','PRIVATE','publish','stringify','378631jsaqpT','createRole','application/zip','file','API\x20error\x20code:\x20','Deploy\x20a\x20SkillHub\x20version\x20that\x20returns\x20diagramValidated/diagramBound\x20before\x20publishing\x20with\x20this\x20CLI.','toLowerCase','Invalid\x20app\x20list\x20response:\x20missing\x20data.tableData.','getRoleList','Missing\x20Skill\x20package\x20payload.','savePagePermit','number','getConfigByKey','saveDatasetPermits','errorCode','application/json','gmtModified','importBatch','NAMESPACE_ONLY','artifact','replace','sqlCode','summary','tableData','/schedules','contentHash','/download','application/octet-stream','Dataset\x20import\x20requires\x20Client\x20AK.','Backend\x20Function\x20not\x20found\x20or\x20inaccessible:\x20appCode=','getRolePermitList','/versions/','importReadback','/api/runtime/v1/namespaces/','signal','limit','bff','API\x20error:\x20','DELETE','upload','loginUserInfo','getEndpoint','SkillHub\x20error\x20code:\x20','deleteRole','importImageReadback','SkillHub\x20does\x20not\x20support\x20atomic\x20Skill\x20diagram\x20','api-doc-generator','message','list','Invalid\x20approval\x20task\x20detail\x20response.','roleList[','abort','min','searchParams','importContract','invokeSource','size','sourceFingerprint','606921BhoIvW','get','create','Backend\x20Function\x20metadata\x20requires\x20Client\x20AK.','CUSTOM','items','functions','getModel','queryUrl','image','Personal\x20Backend\x20Function\x20not\x20found:\x20id=','Invalid\x20Skill\x20diagram\x20response:\x20absent\x20diagram\x20must\x20have\x20a\x20null\x20diagramRevision.','updateRole','14964JQnWGf','from','appCode','execute','364zsmuOD',',\x20name=','filter','Toolbox\x20API\x20error','found','Invalid\x20Skill\x20diagram\x20response:\x20missing\x20canonical\x20sourceFingerprint.','/client/user-accounts/bind','skillName','name','base64','Expected\x20the\x20server\x20data\x20field\x20to\x20be\x20an\x20array.','test','12wegtxm','harness'];a108_0x4949=function(){return _0x1a4a62;};return a108_0x4949();}function skillHubRuntimeItemToRuntimeSkill(_0x39810d){const _0x84a726=a108_0x54c627,_0xb39944=_0x39810d['slug']?.[_0x84a726(0x22b)](),_0x4170a1=skillHubVisibilityToScope(_0x39810d[_0x84a726(0x254)]);if(!_0xb39944||!_0x4170a1)return undefined;return{'id':_0x39810d['id'],'appCode':_0x39810d[_0x84a726(0x274)],'skillCode':_0xb39944,'skillName':_0x39810d[_0x84a726(0x222)]??_0xb39944,'description':_0x39810d[_0x84a726(0x29d)],'example':_0x39810d[_0x84a726(0x22a)],'scope':_0x4170a1,'version':skillHubRuntimeItemVersion(_0x39810d),'status':_0x39810d[_0x84a726(0x279)]};}function skillHubRuntimeDetailToRuntimeSkill(_0x2ce3f6){const _0x124fc9=a108_0x54c627,_0x26cd34=_0x2ce3f6[_0x124fc9(0x263)]?.['trim']();if(!_0x26cd34)return undefined;return{'id':_0x2ce3f6['id'],'appCode':_0x2ce3f6[_0x124fc9(0x274)],'skillCode':_0x26cd34,'skillName':_0x2ce3f6[_0x124fc9(0x222)]??_0x26cd34,'description':_0x2ce3f6['summary'],'example':_0x2ce3f6['example'],'scope':skillHubVisibilityToScope(_0x2ce3f6[_0x124fc9(0x254)])??_0x2ce3f6['visibility']?.[_0x124fc9(0x28d)](),'version':skillHubRuntimeItemVersion(_0x2ce3f6),'status':_0x2ce3f6['status']};}function skillHubVisibilityToScope(_0x33b6d2){const _0x3fe9e6=a108_0x54c627;if(_0x33b6d2==='PRIVATE')return _0x3fe9e6(0x20e);if(_0x33b6d2===_0x3fe9e6(0x299))return _0x3fe9e6(0x250);return undefined;}function skillHubRuntimeItemVersion(_0x59c41c){const _0x90b185=a108_0x54c627;return _0x59c41c['publishedVersion']?.[_0x90b185(0x252)]??_0x59c41c[_0x90b185(0x259)]?.['version']??_0x59c41c[_0x90b185(0x26c)]?.[_0x90b185(0x252)];}function buildEffectiveRuntimeSkills(_0x8c84f5,_0x490844,_0x279236){const _0x241ffd=a108_0x54c627;if(_0x279236===_0x241ffd(0x20e))return _0x8c84f5;if(_0x279236===_0x241ffd(0x250))return _0x490844;const _0x2d4a82=new Map();for(const _0x56fc1c of _0x490844){_0x2d4a82['set'](_0x56fc1c['skillCode'],_0x56fc1c);}for(const _0x575045 of _0x8c84f5){_0x2d4a82[_0x241ffd(0x25d)](_0x575045[_0x241ffd(0x214)],_0x575045);}return Array[_0x241ffd(0x1e5)](_0x2d4a82['values']());}function normalizeRuntimeSkillListResponse(_0x4f53d1,_0x28c56c){const _0x1deeb9=a108_0x54c627;if(Array[_0x1deeb9(0x220)](_0x28c56c)){const _0xc2fa61=_0x28c56c['filter'](_0x59b65b=>_0x59b65b[_0x1deeb9(0x24a)]===_0x1deeb9(0x20e)),_0x108a25=_0x28c56c[_0x1deeb9(0x1ea)](_0x285e19=>_0x285e19['scope']==='company');return{'appCode':_0x4f53d1,'personal':_0xc2fa61,'company':_0x108a25,'effective':[..._0x108a25,..._0xc2fa61]};}return{'appCode':_0x28c56c?.[_0x1deeb9(0x1e6)]??_0x4f53d1,'personal':Array['isArray'](_0x28c56c?.[_0x1deeb9(0x20e)])?_0x28c56c[_0x1deeb9(0x20e)]:[],'company':Array[_0x1deeb9(0x220)](_0x28c56c?.[_0x1deeb9(0x250)])?_0x28c56c['company']:[],'effective':Array['isArray'](_0x28c56c?.[_0x1deeb9(0x23b)])?_0x28c56c[_0x1deeb9(0x23b)]:[]};}function normalizeRuntimeRoleUserList(_0x4d76d8,_0x397a6f){const _0x108780=a108_0x54c627;if(!Array[_0x108780(0x220)](_0x4d76d8))throw CliErrors[_0x108780(0x1fd)](_0x108780(0x253)+_0x397a6f+'\x20must\x20be\x20an\x20array.');return _0x4d76d8[_0x108780(0x218)]((_0x1e4ac7,_0xd03c91)=>{const _0x278a72=_0x108780;if(!_0x1e4ac7||typeof _0x1e4ac7!==_0x278a72(0x215)||Array[_0x278a72(0x220)](_0x1e4ac7))throw CliErrors[_0x278a72(0x1fd)](_0x278a72(0x253)+_0x397a6f+'['+_0xd03c91+_0x278a72(0x27e));const _0x5dcba9=_0x1e4ac7,_0xcf6622=normalizeRuntimeUserId(_0x5dcba9['userId']);if(_0xcf6622===undefined)throw CliErrors[_0x278a72(0x1fd)]('Invalid\x20runtime\x20role\x20members\x20response:\x20'+_0x397a6f+'['+_0xd03c91+_0x278a72(0x282));return{..._0x5dcba9,'userId':_0xcf6622};});}function normalizeRuntimeRoleUsersResponse(_0xdd77b){return extractList(_0xdd77b)['map']((_0x5c17c5,_0x8bdf05)=>{const _0x4ccd18=a108_0x3489;if(!_0x5c17c5||typeof _0x5c17c5!==_0x4ccd18(0x215)||Array[_0x4ccd18(0x220)](_0x5c17c5))throw CliErrors[_0x4ccd18(0x1fd)](_0x4ccd18(0x202)+_0x8bdf05+_0x4ccd18(0x27e));const _0x4fcb5c=_0x5c17c5;return{..._0x4fcb5c,'userList':normalizeRuntimeRoleUserList(_0x4fcb5c[_0x4ccd18(0x1fc)],'roleList['+_0x8bdf05+_0x4ccd18(0x242)),..._0x4fcb5c['applyUserList']===undefined?{}:{'applyUserList':normalizeRuntimeRoleUserList(_0x4fcb5c[_0x4ccd18(0x243)],_0x4ccd18(0x1cf)+_0x8bdf05+'].applyUserList')}};});}export async function listRuntimeAppRoles(_0x3fb2fc,_0x1d9cb4={}){const _0x3b4eff=a108_0x54c627,_0x20f9fe=_0x1d9cb4['currentPage']??0x1,_0xccba77=Math[_0x3b4eff(0x1d1)](Math[_0x3b4eff(0x26f)](_0x1d9cb4['pageSize']??0x64,0x1),0x64),_0x3ea8d4=await sdkRequest(_0x3fb2fc,_0x5ac13f=>_0x5ac13f['permit'][_0x3b4eff(0x28f)]({..._0x1d9cb4[_0x3b4eff(0x251)]?{'roleName':_0x1d9cb4[_0x3b4eff(0x251)]}:{},'currentPage':_0x20f9fe,'pageSize':_0xccba77}));return{'items':extractList(_0x3ea8d4),'paging':extractPaging(_0x3ea8d4)};}export async function createRuntimeAppRole(_0x27a093){const _0x45fb46=a108_0x54c627;return sdkRequest(_0x27a093[_0x45fb46(0x1e6)],_0x7205c7=>_0x7205c7['permit'][_0x45fb46(0x288)]({'roleType':_0x45fb46(0x1db),..._0x27a093}));}export async function updateRuntimeAppRole(_0x1dc2bd){const _0x2ffb65=a108_0x54c627;return sdkRequest(_0x1dc2bd['appCode'],_0x5b2690=>_0x5b2690[_0x2ffb65(0x268)][_0x2ffb65(0x1e3)](_0x1dc2bd));}export async function deleteRuntimeAppRole(_0x321397){const _0x4fafbb=a108_0x54c627;return sdkRequest(undefined,_0x4d5119=>_0x4d5119['permit'][_0x4fafbb(0x1c8)](_0x321397));}export async function listRuntimeRoleUsers(_0x1559e4){const _0x1a967e=a108_0x54c627,_0x321859=await sdkRequest(_0x1559e4,_0x2884ff=>_0x2884ff[_0x1a967e(0x268)][_0x1a967e(0x226)]());return normalizeRuntimeRoleUsersResponse(_0x321859);}export async function updateRuntimeRoleUsers(_0x415d0b,_0x576fca){const _0xfc26f6=a108_0x54c627;return sdkRequest(_0x415d0b,_0x23ed25=>_0x23ed25['permit'][_0xfc26f6(0x21c)]({'roleList':_0x576fca}));}export async function listRuntimeAppUsers(_0x28d38c){const _0x47ee75=await sdkRequest(_0x28d38c,_0x14d364=>_0x14d364['permit']['queryAppUsers']());return extractList(_0x47ee75);}export async function listRuntimePermitRoles(_0x26d28d,_0x4c78a5={}){const _0x15ddc4=a108_0x54c627,_0x58ec1e=await sdkRequest(_0x26d28d,_0x4bebdb=>_0x4bebdb[_0x15ddc4(0x268)][_0x15ddc4(0x2a5)](_0x4c78a5));return extractList(_0x58ec1e);}export async function getRuntimePagePermit(_0x379f53){const _0x598fad=a108_0x54c627;return sdkRequest(undefined,_0x72ab37=>_0x72ab37[_0x598fad(0x268)][_0x598fad(0x237)](_0x379f53));}export async function saveRuntimePagePermit(_0x120907){const _0x1f4cd8=a108_0x54c627;return sdkRequest(_0x120907[_0x1f4cd8(0x1e6)],_0x546192=>_0x546192['permit'][_0x1f4cd8(0x291)](_0x120907));}export async function getRuntimeRoleMenuResources(_0x3f2931,_0x46f7ae){const _0x253998=a108_0x54c627,_0x54c693=await sdkRequest(_0x3f2931,_0x15095f=>_0x15095f[_0x253998(0x268)][_0x253998(0x223)]({'roleId':_0x46f7ae}));return extractList(_0x54c693);}export async function listRuntimeMenuRolePermits(_0x27f9f0){const _0x114a2c=a108_0x54c627,_0x2ac305=await sdkRequest(_0x27f9f0,_0x1f86ca=>_0x1f86ca[_0x114a2c(0x268)][_0x114a2c(0x23d)]());return Array['isArray'](_0x2ac305?.[_0x114a2c(0x204)])?_0x2ac305[_0x114a2c(0x204)]:[];}export async function saveRuntimeMenuRolePermits(_0x2d12a0,_0x547bfc){const _0x1dd18c=a108_0x54c627;return sdkRequest(_0x2d12a0,_0x5d3098=>_0x5d3098[_0x1dd18c(0x268)][_0x1dd18c(0x256)]({'permitList':_0x547bfc}));}export async function listRuntimeDatasetPermits(_0x37c0d9,_0xee1e2b){const _0x418cad=a108_0x54c627,_0x3fb707=await sdkRequest(_0x37c0d9,_0x207c5a=>_0x207c5a['permit'][_0x418cad(0x207)](_0xee1e2b));return Array[_0x418cad(0x220)](_0x3fb707?.[_0x418cad(0x204)])?_0x3fb707[_0x418cad(0x204)]:[];}export async function listRuntimeDatasetRolePermits(_0xa431c5){const _0x3c18e7=a108_0x54c627,_0x3f8783=await sdkRequest(_0xa431c5,_0x5aca9d=>_0x5aca9d[_0x3c18e7(0x268)][_0x3c18e7(0x239)]());return Array[_0x3c18e7(0x220)](_0x3f8783?.['permitList'])?_0x3f8783[_0x3c18e7(0x204)]:[];}export async function saveRuntimeDatasetRolePermits(_0x9993f2,_0x11c585){const _0x595948=a108_0x54c627;return sdkRequest(_0x9993f2,_0x22e1b9=>_0x22e1b9[_0x595948(0x268)][_0x595948(0x294)]({'permitList':_0x11c585}));}