@lovrabet/lovrabet-cli 2.3.10 → 2.3.11-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (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(_0x1d44a9,_0x410ed0){const _0x3dc29d=a96_0x22a5,_0x1884c1=_0x1d44a9();while(!![]){try{const _0x1dc600=-parseInt(_0x3dc29d(0x132))/0x1+parseInt(_0x3dc29d(0x131))/0x2+-parseInt(_0x3dc29d(0x130))/0x3+-parseInt(_0x3dc29d(0x12f))/0x4+-parseInt(_0x3dc29d(0x12c))/0x5*(-parseInt(_0x3dc29d(0x12e))/0x6)+-parseInt(_0x3dc29d(0x12d))/0x7*(-parseInt(_0x3dc29d(0x12b))/0x8)+parseInt(_0x3dc29d(0x12a))/0x9;if(_0x1dc600===_0x410ed0)break;else _0x1884c1['push'](_0x1884c1['shift']());}catch(_0x45db2c){_0x1884c1['push'](_0x1884c1['shift']());}}}(a96_0x41e9,0xc3721));function a96_0x41e9(){const _0x1eb611=['4906105ECRRnW','77rhfNQl','6Tmyyls','2003924UMIUkj','2708049eUrRod','73062mMgGYg','1549671lWNKcU','19270143CJtLBZ','432728icixuQ'];a96_0x41e9=function(){return _0x1eb611;};return a96_0x41e9();}export const AUTH_MODE={'ClientAk':'client-ak'};function a96_0x22a5(_0x54b9ff,_0xc832b3){_0x54b9ff=_0x54b9ff-0x12a;const _0x41e9fc=a96_0x41e9();let _0x22a54a=_0x41e9fc[_0x54b9ff];return _0x22a54a;}export function isAuthMode(_0x475a5c){return _0x475a5c===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
+ const a97_0x55301a=a97_0x3836;(function(_0x12ea11,_0x22d793){const _0x4ab908=a97_0x3836,_0x543346=_0x12ea11();while(!![]){try{const _0x3cc159=-parseInt(_0x4ab908(0x1b4))/0x1*(-parseInt(_0x4ab908(0x185))/0x2)+parseInt(_0x4ab908(0x1b7))/0x3*(parseInt(_0x4ab908(0x18c))/0x4)+-parseInt(_0x4ab908(0x18b))/0x5*(parseInt(_0x4ab908(0x1b0))/0x6)+parseInt(_0x4ab908(0x1ac))/0x7+parseInt(_0x4ab908(0x18a))/0x8*(parseInt(_0x4ab908(0x19d))/0x9)+-parseInt(_0x4ab908(0x1a2))/0xa+parseInt(_0x4ab908(0x1b5))/0xb*(parseInt(_0x4ab908(0x19c))/0xc);if(_0x3cc159===_0x22d793)break;else _0x543346['push'](_0x543346['shift']());}catch(_0x37b560){_0x543346['push'](_0x543346['shift']());}}}(a97_0x2bec,0x58857));import{PRODUCT_CONFIG}from'../constant/product.js';import{LOVRABET_NPM_PACKAGE_NAME}from'../constant/distribution.js';export const CLI_BIN_NAME=PRODUCT_CONFIG[a97_0x55301a(0x19f)];export const CLI_DISPLAY_NAME=PRODUCT_CONFIG[a97_0x55301a(0x194)];export const NPM_PACKAGE_NAME=LOVRABET_NPM_PACKAGE_NAME;function a97_0x2bec(){const _0x19b15e=['Clear\x20output','Environment','appcode','dry-run','params','cliDisplayName','meowKey','name','clear','Alias\x20for\x20--non-interactive','Select\x20app\x20profile\x20by\x20name','type','Force\x20non-interactive\x20mode\x20(CI)','59604psKTUV','78381SJRWtp','format','cliBinName','<expr>','yes','1778870eSEnNU','sqlcode','Use\x20global\x20config\x20scope','non-interactive','json\x20|\x20pretty\x20|\x20compress','string','Skip\x20confirmation\x20for\x20high-risk\x20writes','Name\x20filter','SQL\x20query\x20code','nonInteractive','1615005MAgvuR','fromEntries','Show\x20help','global','48SmoWRl','<code>','app','JSON\x20params\x20for\x20execute\x20commands','92UTAMeg','319dHxGYO','boolean','42uNmMFr','Output\x20format','verbose','2946NEGhAr','Preview\x20operation\x20without\x20executing','help','production\x20|\x20development\x20|\x20daily','env','16UIaqbb','304870MscYDn','143020hMVbOF','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20implies\x20--format\x20json\x20when\x20current\x20format\x20is\x20pretty)','Override\x20appcode'];a97_0x2bec=function(){return _0x19b15e;};return a97_0x2bec();}export const GLOBAL_FLAGS=[{'name':a97_0x55301a(0x191),'meowKey':a97_0x55301a(0x191),'type':a97_0x55301a(0x1a7),'description':a97_0x55301a(0x18e),'hint':a97_0x55301a(0x1b1)},{'name':a97_0x55301a(0x1b2),'meowKey':a97_0x55301a(0x1b2),'type':a97_0x55301a(0x1a7),'description':a97_0x55301a(0x199),'hint':'<name>'},{'name':a97_0x55301a(0x189),'meowKey':a97_0x55301a(0x189),'type':a97_0x55301a(0x1a7),'description':a97_0x55301a(0x190),'hint':a97_0x55301a(0x188)},{'name':a97_0x55301a(0x19e),'meowKey':a97_0x55301a(0x19e),'type':a97_0x55301a(0x1a7),'description':a97_0x55301a(0x183),'hint':a97_0x55301a(0x1a6)},{'name':'jq','meowKey':'jq','type':a97_0x55301a(0x1a7),'description':a97_0x55301a(0x18d),'hint':a97_0x55301a(0x1a0)},{'name':'dry-run','meowKey':'dryRun','type':'boolean','description':a97_0x55301a(0x186)},{'name':a97_0x55301a(0x1a1),'meowKey':a97_0x55301a(0x1a1),'type':a97_0x55301a(0x1b6),'description':a97_0x55301a(0x1a8)},{'name':a97_0x55301a(0x1a5),'meowKey':a97_0x55301a(0x1ab),'type':'boolean','description':a97_0x55301a(0x19b)},{'name':a97_0x55301a(0x1af),'meowKey':a97_0x55301a(0x1af),'type':'boolean','description':a97_0x55301a(0x1a4)},{'name':'ci','meowKey':'ci','type':'boolean','description':a97_0x55301a(0x198),'hidden':!![]},{'name':a97_0x55301a(0x187),'meowKey':a97_0x55301a(0x187),'type':'boolean','description':a97_0x55301a(0x1ae)},{'name':'id','meowKey':'id','type':a97_0x55301a(0x1a7),'description':'Record\x20ID','hidden':!![]},{'name':a97_0x55301a(0x196),'meowKey':'name','type':a97_0x55301a(0x1a7),'description':a97_0x55301a(0x1a9),'hidden':!![]},{'name':a97_0x55301a(0x1a3),'meowKey':a97_0x55301a(0x1a3),'type':'string','description':a97_0x55301a(0x1aa),'hidden':!![]},{'name':a97_0x55301a(0x193),'meowKey':a97_0x55301a(0x193),'type':'string','description':a97_0x55301a(0x1b3),'hidden':!![]},{'name':'verbose','meowKey':a97_0x55301a(0x184),'type':a97_0x55301a(0x1b6),'description':'Verbose\x20output','hidden':!![]},{'name':a97_0x55301a(0x197),'meowKey':a97_0x55301a(0x197),'type':a97_0x55301a(0x1b6),'description':a97_0x55301a(0x18f),'hidden':!![]}];function a97_0x3836(_0x56245b,_0x5f2831){_0x56245b=_0x56245b-0x183;const _0x2bec0d=a97_0x2bec();let _0x383662=_0x2bec0d[_0x56245b];return _0x383662;}export const PIPELINE_FLAG_NAMES=new Set([a97_0x55301a(0x191),a97_0x55301a(0x1b2),a97_0x55301a(0x189),a97_0x55301a(0x19e),'jq',a97_0x55301a(0x192),a97_0x55301a(0x1a1),a97_0x55301a(0x1a5),'ci']);export function buildMeowFlags(){const _0xac3747=a97_0x55301a;return Object[_0xac3747(0x1ad)](GLOBAL_FLAGS['map'](_0x531100=>[_0x531100[_0xac3747(0x195)],{'type':_0x531100[_0xac3747(0x19a)]}]));}
@@ -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
+ const a98_0x73ca7a=a98_0x5e88;(function(_0x4fd9d4,_0x5d1485){const _0x122954=a98_0x5e88,_0x1ce511=_0x4fd9d4();while(!![]){try{const _0x2ab617=parseInt(_0x122954(0x10f))/0x1*(parseInt(_0x122954(0x109))/0x2)+-parseInt(_0x122954(0x10d))/0x3*(parseInt(_0x122954(0x10a))/0x4)+-parseInt(_0x122954(0x102))/0x5+parseInt(_0x122954(0x10b))/0x6*(parseInt(_0x122954(0x10e))/0x7)+-parseInt(_0x122954(0x104))/0x8+-parseInt(_0x122954(0x106))/0x9*(parseInt(_0x122954(0x103))/0xa)+parseInt(_0x122954(0x101))/0xb*(parseInt(_0x122954(0x107))/0xc);if(_0x2ab617===_0x5d1485)break;else _0x1ce511['push'](_0x1ce511['shift']());}catch(_0x5213b1){_0x1ce511['push'](_0x1ce511['shift']());}}}(a98_0x409e,0x31218));function a98_0x5e88(_0x2492f6,_0x565eaf){_0x2492f6=_0x2492f6-0x101;const _0x409e30=a98_0x409e();let _0x5e8850=_0x409e30[_0x2492f6];return _0x5e8850;}function a98_0x409e(){const _0x35b114=['3OwACLc','8834XsBBGb','4DPdbBt','en-US','6435473ZknadS','1903485MIFyXm','10HBDhth','1750584cQsema','production','492795ElVGkN','24DZuWni','write','20626jOaLZQ','1534348AIkXiJ','132RfkHwv','compress'];a98_0x409e=function(){return _0x35b114;};return a98_0x409e();}export const DEFAULT_APP_PROFILE_NAME='main';export const DEFAULT_CONFIG_VALUES={'env':a98_0x73ca7a(0x105),'format':a98_0x73ca7a(0x10c),'locale':a98_0x73ca7a(0x110),'riskLevel':a98_0x73ca7a(0x108)};export const DEFAULT_COMMAND_OUTPUT_FORMAT=a98_0x73ca7a(0x10c);
@@ -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
+ const a99_0x3b714e=a99_0x5820;(function(_0x4ef2ca,_0x27c00e){const _0x4b6b85=a99_0x5820,_0x1adc3e=_0x4ef2ca();while(!![]){try{const _0x3c136e=parseInt(_0x4b6b85(0xd6))/0x1*(parseInt(_0x4b6b85(0xd7))/0x2)+parseInt(_0x4b6b85(0xdd))/0x3*(parseInt(_0x4b6b85(0xd5))/0x4)+parseInt(_0x4b6b85(0xdc))/0x5+-parseInt(_0x4b6b85(0xdb))/0x6+-parseInt(_0x4b6b85(0xd3))/0x7*(parseInt(_0x4b6b85(0xd1))/0x8)+parseInt(_0x4b6b85(0xd9))/0x9*(parseInt(_0x4b6b85(0xd2))/0xa)+-parseInt(_0x4b6b85(0xd4))/0xb;if(_0x3c136e===_0x27c00e)break;else _0x1adc3e['push'](_0x1adc3e['shift']());}catch(_0x1aed39){_0x1adc3e['push'](_0x1adc3e['shift']());}}}(a99_0x4966,0x4461b));function a99_0x4966(){const _0x8df3be=['703978nAQniR','112mFljgV','2DsNZfP','192278rMfHsJ','/dist/lovrabet-cli/config/index.json','27sysmfM','cliCdnBaseUrl','2238504dmsTjK','1191415dkXmNu','34428yYTRFh','npmRegistryBaseUrl','npmPackageName','435576JfMmDZ','610240VFuOCN','28edguth'];a99_0x4966=function(){return _0x8df3be;};return a99_0x4966();}import{PRODUCT_CONFIG}from'../constant/product.js';export const LOVRABET_NPM_PACKAGE_NAME=PRODUCT_CONFIG[a99_0x3b714e(0xd0)];export const LOVRABET_SKILL_SOURCE=PRODUCT_CONFIG['skillSource'];export const NPM_REGISTRY_BASE_URL=PRODUCT_CONFIG[a99_0x3b714e(0xcf)];function a99_0x5820(_0x2af210,_0xd31eb6){_0x2af210=_0x2af210-0xcf;const _0x4966e2=a99_0x4966();let _0x5820b6=_0x4966e2[_0x2af210];return _0x5820b6;}export const LOVRABET_CLI_CDN_BASE_URL=PRODUCT_CONFIG[a99_0x3b714e(0xda)];export const LOVRABET_CLI_VERSION_POLICY_URL=LOVRABET_CLI_CDN_BASE_URL+a99_0x3b714e(0xd8);
@@ -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_0x2d8fe7=a100_0x92dc;function a100_0x3c26(){const _0x335e55=['5581440zfYPsT','region','4DGboMu','kbService','Configure\x20a\x20trusted\x20harnessDomain\x20HTTPS\x20origin\x20in\x20the\x20connection\x20settings.','38615RghKen','2xyKFOt','user','validation','Harness\x20is\x20not\x20configured.','3830388kYWucl','harnessDomain','runtimeDomain','1110BUvfyI','2397516mxVMwf','16ReyCBm','126266oUXdce','serviceDomains','apiDomain','6204582cRtRcp','2431541oiUQCE','runtime','skillDomain','36RoAcGq'];a100_0x3c26=function(){return _0x335e55;};return a100_0x3c26();}(function(_0x266d97,_0xa3f685){const _0x4bf9d1=a100_0x92dc,_0x1d9de5=_0x266d97();while(!![]){try{const _0x8448c2=parseInt(_0x4bf9d1(0x19d))/0x1*(-parseInt(_0x4bf9d1(0x1a7))/0x2)+parseInt(_0x4bf9d1(0x1a1))/0x3*(parseInt(_0x4bf9d1(0x199))/0x4)+-parseInt(_0x4bf9d1(0x19c))/0x5*(-parseInt(_0x4bf9d1(0x1a4))/0x6)+-parseInt(_0x4bf9d1(0x1ab))/0x7+-parseInt(_0x4bf9d1(0x1a6))/0x8*(parseInt(_0x4bf9d1(0x1aa))/0x9)+parseInt(_0x4bf9d1(0x197))/0xa+-parseInt(_0x4bf9d1(0x1a5))/0xb*(parseInt(_0x4bf9d1(0x1ae))/0xc);if(_0x8448c2===_0xa3f685)break;else _0x1d9de5['push'](_0x1d9de5['shift']());}catch(_0xc091c0){_0x1d9de5['push'](_0x1d9de5['shift']());}}}(a100_0x3c26,0xb8e9a));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';let customApiDomain,customUserDomain,customRuntimeDomain,customSkillDomain,customKbServiceDomain,customHarnessDomain,activeRegion=DEFAULT_LOVRABET_REGION;function a100_0x92dc(_0x19ded8,_0xb3f19a){_0x19ded8=_0x19ded8-0x197;const _0x3c26f0=a100_0x3c26();let _0x92dced=_0x3c26f0[_0x19ded8];return _0x92dced;}export function initDomains(_0x36c5d1){const _0x19e6e3=a100_0x92dc;customApiDomain=_0x36c5d1?.[_0x19e6e3(0x1a9)],customUserDomain=_0x36c5d1?.['userDomain'],customRuntimeDomain=_0x36c5d1?.[_0x19e6e3(0x1a3)],customSkillDomain=_0x36c5d1?.[_0x19e6e3(0x1ad)],customKbServiceDomain=_0x36c5d1?.['kbServiceDomain'],customHarnessDomain=_0x36c5d1?.[_0x19e6e3(0x1a2)],activeRegion=_0x36c5d1?.[_0x19e6e3(0x198)]??DEFAULT_LOVRABET_REGION;}const getActiveRegionDomains=()=>{const _0x5dd1da=a100_0x92dc,_0x32bb05=OFFICIAL_ROUTING_PROFILES[activeRegion][_0x5dd1da(0x1a8)];return isProduction(getEnv())?_0x32bb05['production']:'daily'in _0x32bb05?_0x32bb05['daily']:_0x32bb05['production'];};export const getUserDomain=()=>customUserDomain||getActiveRegionDomains()[a100_0x2d8fe7(0x19e)];export const getApiDomain=()=>customApiDomain||getActiveRegionDomains()['api'];export const getRuntimeDomain=()=>customRuntimeDomain||getActiveRegionDomains()[a100_0x2d8fe7(0x1ac)];export const getSkillDomain=()=>customSkillDomain||getActiveRegionDomains()['skill'];export const getKbServiceDomain=()=>{const _0x241b25=a100_0x2d8fe7;if(customKbServiceDomain)return customKbServiceDomain;const _0x548ef6=getActiveRegionDomains();return _0x241b25(0x19a)in _0x548ef6?_0x548ef6[_0x241b25(0x19a)]:undefined;};export const getHarnessDomain=()=>{if(customHarnessDomain)return customHarnessDomain;const _0x800dbb=getActiveRegionDomains();return'harness'in _0x800dbb?_0x800dbb['harness']:undefined;};export function requireHarnessDomain(){const _0xbc9700=a100_0x2d8fe7,_0x2f284c=getHarnessDomain();if(!_0x2f284c)throw CliErrors[_0xbc9700(0x19f)](_0xbc9700(0x1a0),_0xbc9700(0x19b));return _0x2f284c;}
@@ -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_0x4014ee=a101_0x35a8;(function(_0x3b355c,_0x2594c2){const _0x14c55c=a101_0x35a8,_0xfff089=_0x3b355c();while(!![]){try{const _0x67af35=parseInt(_0x14c55c(0xdf))/0x1+-parseInt(_0x14c55c(0xe0))/0x2*(-parseInt(_0x14c55c(0xd6))/0x3)+parseInt(_0x14c55c(0xd2))/0x4*(-parseInt(_0x14c55c(0xd8))/0x5)+-parseInt(_0x14c55c(0xd4))/0x6*(parseInt(_0x14c55c(0xda))/0x7)+parseInt(_0x14c55c(0xdb))/0x8+-parseInt(_0x14c55c(0xde))/0x9+parseInt(_0x14c55c(0xdd))/0xa;if(_0x67af35===_0x2594c2)break;else _0xfff089['push'](_0xfff089['shift']());}catch(_0xc4d084){_0xfff089['push'](_0xfff089['shift']());}}}(a101_0x3d57,0x1b9e4));import{productEnv}from'../constant/product.js';function a101_0x35a8(_0x3c9ad5,_0x3e7918){_0x3c9ad5=_0x3c9ad5-0xd2;const _0x3d57ee=a101_0x3d57();let _0x35a8c7=_0x3d57ee[_0x3c9ad5];return _0x35a8c7;}export const RUNTIME_ENV_VALUES=[a101_0x4014ee(0xd5),a101_0x4014ee(0xd7),a101_0x4014ee(0xd3)];function a101_0x3d57(){const _0x115845=['14cBircM','946648BhjeND','dev','3730150KIXkDS','1710657FrdBsy','44745WfWeka','2qXMiIF','4aEIAuF','daily','673194VuLEcn','production','371121hljZir','development','661015HzsFpA','online'];a101_0x3d57=function(){return _0x115845;};return a101_0x3d57();}export function normalizeEnv(_0x2d32d9){const _0x4df85f=a101_0x4014ee;return _0x2d32d9===_0x4df85f(0xd9)||_0x2d32d9==='prod'?_0x4df85f(0xd5):_0x2d32d9;}export function isProduction(_0x1991d4){const _0x5f195d=a101_0x4014ee;return normalizeEnv(_0x1991d4)===_0x5f195d(0xd5);}export function isDaily(_0x3c8a4a){return normalizeEnv(_0x3c8a4a)==='daily';}export function isDev(_0x18e542){const _0x309aee=a101_0x4014ee,_0x155de9=normalizeEnv(_0x18e542);return _0x155de9===_0x309aee(0xd7)||_0x155de9===_0x309aee(0xdc);}let env=normalizeEnv(productEnv('ENV')||a101_0x4014ee(0xd5));export function getEnv(){return env;}export function initEnv(_0x484c2d){env=normalizeEnv(_0x484c2d);}
@@ -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
+ const a102_0x4cbaf6=a102_0x59e9;(function(_0x441ff8,_0x487c1a){const _0x138c35=a102_0x59e9,_0x4ccc95=_0x441ff8();while(!![]){try{const _0x30b6f6=parseInt(_0x138c35(0x166))/0x1+parseInt(_0x138c35(0x162))/0x2*(parseInt(_0x138c35(0x15f))/0x3)+-parseInt(_0x138c35(0x160))/0x4+-parseInt(_0x138c35(0x161))/0x5*(parseInt(_0x138c35(0x165))/0x6)+-parseInt(_0x138c35(0x169))/0x7*(-parseInt(_0x138c35(0x163))/0x8)+parseInt(_0x138c35(0x168))/0x9*(parseInt(_0x138c35(0x164))/0xa)+-parseInt(_0x138c35(0x16c))/0xb;if(_0x30b6f6===_0x487c1a)break;else _0x4ccc95['push'](_0x4ccc95['shift']());}catch(_0x29e3e0){_0x4ccc95['push'](_0x4ccc95['shift']());}}}(a102_0x321b,0x7d255));function a102_0x59e9(_0x4b4e0f,_0x5504ba){_0x4b4e0f=_0x4b4e0f-0x15f;const _0x321bd2=a102_0x321b();let _0x59e9fc=_0x321bd2[_0x4b4e0f];return _0x59e9fc;}function a102_0x321b(){const _0x519c2f=['6tHHEFk','1013183WuUxUb','compress','86013TdnzlB','1134pCsIQr','json','pretty','14414466hkoOtE','173091OVTLQP','1493644qtxzQR','1076645ovIais','6QRnUdw','31728VtTrSn','610SCHrCz'];a102_0x321b=function(){return _0x519c2f;};return a102_0x321b();}export const OUTPUT_FORMAT_VALUES=[a102_0x4cbaf6(0x16a),a102_0x4cbaf6(0x16b),a102_0x4cbaf6(0x167)];
@@ -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
+ const a103_0x134c85=a103_0x1d36;(function(_0x2daa0b,_0x5bff06){const _0x18e392=a103_0x1d36,_0x4082e0=_0x2daa0b();while(!![]){try{const _0x503b0e=-parseInt(_0x18e392(0x186))/0x1*(-parseInt(_0x18e392(0x196))/0x2)+-parseInt(_0x18e392(0x194))/0x3+parseInt(_0x18e392(0x18d))/0x4+parseInt(_0x18e392(0x197))/0x5*(-parseInt(_0x18e392(0x18a))/0x6)+-parseInt(_0x18e392(0x198))/0x7*(-parseInt(_0x18e392(0x191))/0x8)+parseInt(_0x18e392(0x181))/0x9+parseInt(_0x18e392(0x18e))/0xa*(-parseInt(_0x18e392(0x189))/0xb);if(_0x503b0e===_0x5bff06)break;else _0x4082e0['push'](_0x4082e0['shift']());}catch(_0x4a41aa){_0x4082e0['push'](_0x4082e0['shift']());}}}(a103_0x24c1,0x38bd1));export const PRODUCT_CONFIG={'cliBinName':'lovrabet','cliDisplayName':a103_0x134c85(0x193),'npmPackageName':a103_0x134c85(0x199),'skillSource':a103_0x134c85(0x192),'internalSkillSource':a103_0x134c85(0x19b),'globalSkillName':a103_0x134c85(0x183),'npmRegistryBaseUrl':'https://registry.npmjs.org','cliCdnBaseUrl':'https://g.lovrabet.com','envPrefix':a103_0x134c85(0x185),'legacyEnvPrefixes':[a103_0x134c85(0x182)],'configFileNames':[a103_0x134c85(0x190)],'newConfigFileName':a103_0x134c85(0x190),'homeDirName':a103_0x134c85(0x184),'logFileName':a103_0x134c85(0x18f),'invokeSource':a103_0x134c85(0x195),'userCenterDisplayName':a103_0x134c85(0x187),'skipNpxSkillsEnvSuffix':'SKIP_NPX_SKILLS','accessKeyCreatePath':a103_0x134c85(0x18b)};function a103_0x1d36(_0x1810bd,_0x1987cd){_0x1810bd=_0x1810bd-0x181;const _0x24c148=a103_0x24c1();let _0x1d3661=_0x24c148[_0x1810bd];return _0x1d3661;}export function productEnvName(_0x13a57c){const _0x1a6a7c=a103_0x134c85;return PRODUCT_CONFIG[_0x1a6a7c(0x19a)]+'_'+_0x13a57c;}function a103_0x24c1(){const _0x5f355e=['envPrefix','git@codeup.aliyun.com:yuntoo/open/lovrabet-runtime-cli.git','1366659NSrmGB','RABETBASE','lovrabet','.lovrabet','LOVRABET','18193lgLvrJ','Lovrabet\x20User\x20Center','map','10835LhsShm','193848rwmGZm','/user/ak','legacyEnvPrefixes','101168oiIlit','1450SRrfVU','.lovrabet-runtime.log','.lovrabet.json','18504VUdmNW','lovrabet/lovrabet-cli','Lovrabet\x20Runtime\x20CLI','841926NqSooV','cli:lovrabet-runtime','46aAgwyn','10UqBUCa','378xigcrX','@lovrabet/lovrabet-cli'];a103_0x24c1=function(){return _0x5f355e;};return a103_0x24c1();}export function productEnvNames(_0xe64301){const _0x4352fd=a103_0x134c85;return[productEnvName(_0xe64301),...PRODUCT_CONFIG[_0x4352fd(0x18c)][_0x4352fd(0x188)](_0x2575f9=>_0x2575f9+'_'+_0xe64301)];}export function productEnv(_0x13b566){for(const _0x5141c2 of productEnvNames(_0x13b566)){const _0x11d742=process.env[_0x5141c2];if(_0x11d742!==undefined)return _0x11d742;}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(_0x448378,_0xf09dbb){const _0x22efef=a104_0x471c,_0xbc3b0f=_0x448378();while(!![]){try{const _0x21c9ac=-parseInt(_0x22efef(0x1d5))/0x1*(-parseInt(_0x22efef(0x1db))/0x2)+parseInt(_0x22efef(0x1cf))/0x3+-parseInt(_0x22efef(0x1ce))/0x4+-parseInt(_0x22efef(0x1d6))/0x5*(parseInt(_0x22efef(0x1d1))/0x6)+parseInt(_0x22efef(0x1de))/0x7+parseInt(_0x22efef(0x1dc))/0x8+parseInt(_0x22efef(0x1d2))/0x9*(-parseInt(_0x22efef(0x1da))/0xa);if(_0x21c9ac===_0xf09dbb)break;else _0xbc3b0f['push'](_0xbc3b0f['shift']());}catch(_0x108f2f){_0xbc3b0f['push'](_0xbc3b0f['shift']());}}}(a104_0x3450,0x9309c));import{DEFAULT_REGION,ENABLED_REGION_VALUES,REGION_ALIASES,REGION_VALUES}from'../generated/official-routing.js';function a104_0x471c(_0x51a683,_0x48b9d4){_0x51a683=_0x51a683-0x1ce;const _0x345063=a104_0x3450();let _0x471c4d=_0x345063[_0x51a683];return _0x471c4d;}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;function a104_0x3450(){const _0x2f36f6=['117eKgjRP','Region\x20\x22','join','16afAWfC','5htCNUI','includes','validation','Run\x20`lovrabet\x20config\x20init`\x20to\x20restore\x20the\x20global\x20country/region\x20configuration.','1167450mIoern','99174dQJzat','8516584wevRDA','string','5678302zgIeNX','Available\x20regions:\x20','\x22\x20is\x20not\x20currently\x20available.','.\x20Run\x20`lovrabet\x20config\x20init`\x20to\x20repair\x20the\x20global\x20configuration.','836256cauJue','479535gdOhgS','Invalid\x20region\x20value:\x20expected\x20a\x20string,\x20received\x20','2999874VLQhkm'];a104_0x3450=function(){return _0x2f36f6;};return a104_0x3450();}export function isLovrabetRegion(_0x4d85be){const _0x480b9e=a104_0x471c;return typeof _0x4d85be===_0x480b9e(0x1dd)&&LOVRABET_REGION_VALUES[_0x480b9e(0x1d7)](_0x4d85be);}export function isEnabledLovrabetRegion(_0x5d5cd4){const _0x2735c8=a104_0x471c;return typeof _0x5d5cd4===_0x2735c8(0x1dd)&&ENABLED_LOVRABET_REGION_VALUES[_0x2735c8(0x1d7)](_0x5d5cd4);}export function normalizeLovrabetRegion(_0x143d2){const _0x518e9f=a104_0x471c;if(_0x143d2===undefined||_0x143d2===null||_0x143d2==='')return DEFAULT_LOVRABET_REGION;if(typeof _0x143d2!==_0x518e9f(0x1dd))throw CliErrors[_0x518e9f(0x1d8)](_0x518e9f(0x1d0)+typeof _0x143d2+'.',_0x518e9f(0x1d9));const _0x20c8e9=REGION_ALIASES[_0x143d2]??_0x143d2;if(isEnabledLovrabetRegion(_0x20c8e9))return _0x20c8e9;throw CliErrors[_0x518e9f(0x1d8)](_0x518e9f(0x1d3)+_0x143d2+_0x518e9f(0x1e0),_0x518e9f(0x1df)+ENABLED_LOVRABET_REGION_VALUES[_0x518e9f(0x1d4)](',\x20')+_0x518e9f(0x1e1));}
@@ -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
+ const a105_0x6494e2=a105_0x5a40;(function(_0x458908,_0x341312){const _0x22090f=a105_0x5a40,_0x462865=_0x458908();while(!![]){try{const _0x204e89=parseInt(_0x22090f(0x6f))/0x1+parseInt(_0x22090f(0x69))/0x2*(parseInt(_0x22090f(0x68))/0x3)+-parseInt(_0x22090f(0x64))/0x4+-parseInt(_0x22090f(0x6b))/0x5*(parseInt(_0x22090f(0x65))/0x6)+-parseInt(_0x22090f(0x6d))/0x7*(-parseInt(_0x22090f(0x6a))/0x8)+parseInt(_0x22090f(0x6e))/0x9+parseInt(_0x22090f(0x6c))/0xa*(-parseInt(_0x22090f(0x66))/0xb);if(_0x204e89===_0x341312)break;else _0x462865['push'](_0x462865['shift']());}catch(_0x590a55){_0x462865['push'](_0x462865['shift']());}}}(a105_0x1bc9,0x1b7b7));function a105_0x5a40(_0x129b6a,_0x13142a){_0x129b6a=_0x129b6a-0x64;const _0x1bc975=a105_0x1bc9();let _0x5a4023=_0x1bc975[_0x129b6a];return _0x5a4023;}export const RISK_LEVEL_VALUES=[a105_0x6494e2(0x67),a105_0x6494e2(0x70),'high-risk-write'];function a105_0x1bc9(){const _0x56e042=['220deowOb','45464YmbtNI','65AlieKu','2480xxyKaa','245ZOAhPd','1506474hnhhRy','174347grwHdY','write','819384MeJewM','76470OBfeoI','11110HPslqS','read','5262yYceLw'];a105_0x1bc9=function(){return _0x56e042;};return a105_0x1bc9();}
@@ -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 a106_0x2d90(_0x197214,_0x323dfe){_0x197214=_0x197214-0x77;const _0x2980a1=a106_0x2980();let _0x2d90c0=_0x2980a1[_0x197214];return _0x2d90c0;}(function(_0x47dba7,_0x49d7a7){const _0x5078bf=a106_0x2d90,_0x5cf4ae=_0x47dba7();while(!![]){try{const _0x69f85f=parseInt(_0x5078bf(0x81))/0x1*(parseInt(_0x5078bf(0x7b))/0x2)+parseInt(_0x5078bf(0x7f))/0x3*(parseInt(_0x5078bf(0x78))/0x4)+parseInt(_0x5078bf(0x7d))/0x5*(-parseInt(_0x5078bf(0x7c))/0x6)+parseInt(_0x5078bf(0x80))/0x7+-parseInt(_0x5078bf(0x79))/0x8+parseInt(_0x5078bf(0x7a))/0x9+-parseInt(_0x5078bf(0x7e))/0xa;if(_0x69f85f===_0x49d7a7)break;else _0x5cf4ae['push'](_0x5cf4ae['shift']());}catch(_0xe13e3e){_0x5cf4ae['push'](_0x5cf4ae['shift']());}}}(a106_0x2980,0xc96c8));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_0x2980(){const _0xd61096=['1614dLQwaV','14265tvlkDn','12179610nRjxWx','362352SdmVXj','8297513zQcLEj','102359TZqDmO','user','28UnuCkS','4358112DKaFQw','9155610iPGazI','6ZliYWP'];a106_0x2980=function(){return _0xd61096;};return a106_0x2980();}export function getUserAccessKeyCreateUrl(_0x53fc6b=DEFAULT_LOVRABET_REGION){const _0x3a2ea3=a106_0x2d90,_0x45a3e3=OFFICIAL_ROUTING_PROFILES[_0x53fc6b]['serviceDomains']['production'][_0x3a2ea3(0x77)];return''+_0x45a3e3+PRODUCT_CONFIG['accessKeyCreatePath'];}export const USER_ACCESS_KEY_CREATE_URL=getUserAccessKeyCreateUrl();
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
+ const a107_0x4c9b4b=a107_0x121d;(function(_0x345b00,_0x5ba453){const _0x4d59cd=a107_0x121d,_0x263c3c=_0x345b00();while(!![]){try{const _0x2de604=parseInt(_0x4d59cd(0x15b))/0x1*(parseInt(_0x4d59cd(0x13d))/0x2)+-parseInt(_0x4d59cd(0x14e))/0x3*(parseInt(_0x4d59cd(0x13b))/0x4)+parseInt(_0x4d59cd(0x160))/0x5*(-parseInt(_0x4d59cd(0x17c))/0x6)+-parseInt(_0x4d59cd(0x13a))/0x7+parseInt(_0x4d59cd(0x177))/0x8+-parseInt(_0x4d59cd(0x173))/0x9+-parseInt(_0x4d59cd(0x169))/0xa*(-parseInt(_0x4d59cd(0x15e))/0xb);if(_0x2de604===_0x5ba453)break;else _0x263c3c['push'](_0x263c3c['shift']());}catch(_0x4b7aa9){_0x263c3c['push'](_0x263c3c['shift']());}}}(a107_0x2de3,0xd58e0));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['configFileNames'];export const NEW_CONFIG_NAME=PRODUCT_CONFIG[a107_0x4c9b4b(0x138)];function resolveConfigPath(_0x838c9c){for(const _0x5e2e90 of CONFIG_NAMES){const _0x199a7=resolve(_0x838c9c,_0x5e2e90);if(existsSync(_0x199a7))return _0x199a7;}return undefined;}function a107_0x121d(_0x4d7934,_0x12690a){_0x4d7934=_0x4d7934-0x12a;const _0x2de34f=a107_0x2de3();let _0x121d0a=_0x2de34f[_0x4d7934];return _0x121d0a;}export function resolveWriteConfigPath(_0x25f87e){const _0x22ed64=a107_0x4c9b4b,_0x4ed8ff=_0x25f87e==='project'?process[_0x22ed64(0x12e)]():homedir(),_0x91f152=resolveConfigPath(_0x4ed8ff);return _0x91f152??resolve(_0x4ed8ff,NEW_CONFIG_NAME);}export function readConfigFile(_0x133e8d){const _0x12220c=a107_0x4c9b4b;try{if(existsSync(_0x133e8d)){const _0x413600=readFileSync(_0x133e8d,{'encoding':_0x12220c(0x157)});if(_0x413600){const _0x482d3c=JSON[_0x12220c(0x145)](_0x413600);return migrateOnlineEnv(_0x133e8d,_0x482d3c),_0x482d3c;}}}catch{}return{};}function migrateOnlineEnv(_0x39c64c,_0x2cf8e1){const _0x399aa9=a107_0x4c9b4b;let _0x5e887e=![];_0x2cf8e1[_0x399aa9(0x151)]==='online'&&(_0x2cf8e1[_0x399aa9(0x151)]=_0x399aa9(0x172),_0x5e887e=!![]);if(_0x2cf8e1[_0x399aa9(0x156)]&&typeof _0x2cf8e1[_0x399aa9(0x156)]===_0x399aa9(0x163))for(const _0x285a6c of Object[_0x399aa9(0x14f)](_0x2cf8e1[_0x399aa9(0x156)])){_0x285a6c&&_0x285a6c['env']===_0x399aa9(0x171)&&(_0x285a6c[_0x399aa9(0x151)]='production',_0x5e887e=!![]);}if(_0x5e887e)try{writeConfigFile(_0x39c64c,_0x2cf8e1);}catch{}}export function writeConfigFile(_0x32b33,_0x371a12){const _0x443b31=a107_0x4c9b4b,_0x29ccf5=dirname(_0x32b33);!existsSync(_0x29ccf5)&&mkdirSync(_0x29ccf5,{'recursive':!![]});const _0x5ade3e=_0x32b33+_0x443b31(0x150);try{writeFileSync(_0x5ade3e,JSON[_0x443b31(0x175)](_0x371a12,null,0x2)+'\x0a',{'encoding':_0x443b31(0x157),'mode':0x180});try{renameSync(_0x5ade3e,_0x32b33);}catch(_0x740b2c){if(_0x740b2c['code']===_0x443b31(0x135)||_0x740b2c[_0x443b31(0x161)]===_0x443b31(0x14b)||_0x740b2c[_0x443b31(0x161)]===_0x443b31(0x130)){writeFileSync(_0x32b33,JSON['stringify'](_0x371a12,null,0x2)+'\x0a',{'encoding':_0x443b31(0x157)});try{unlinkSync(_0x5ade3e);}catch{}}else throw _0x740b2c;}}catch(_0x4e24d4){try{unlinkSync(_0x5ade3e);}catch{}throw _0x4e24d4;}}export function isNonInteractiveMode(_0x251290){const _0x135b76=a107_0x4c9b4b;return!!(_0x251290['nonInteractive']||_0x251290['ci']||productEnvNames('CI')[_0x135b76(0x12d)](_0x1b98c9=>process.env[_0x1b98c9]===_0x135b76(0x154))||process.env.CI==='true'||!process[_0x135b76(0x17f)][_0x135b76(0x17b)]||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x51db29=a107_0x4c9b4b;if(!process['stdin'][_0x51db29(0x17b)])return![];try{const _0x6cde2a=process['stdin'][_0x51db29(0x16a)];return process['stdin'][_0x51db29(0x16b)](!![]),process[_0x51db29(0x149)][_0x51db29(0x16b)](_0x6cde2a??![]),!![];}catch{return![];}}function a107_0x2de3(){const _0xa0ee63=['platformDomain','apps','utf8','nativeToolAvailable','runtimeDomain','authRequired','7fpByEg','string','explicit','44tgMXjm','local-alias','7690BUrRZY','code','app','object','./constant/domain.js','global','projectConfig','appcode','read','5155370yQWyCo','isRaw','setRawMode','project','skillDomain','skillHubDomain','format','argv','online','production','11242008zDdJkt','daily','stringify','harnessDomain','7700984UknShH','globalConfig','message','PAGE_SIZE','isTTY','1164abnlqX','FORMAT','trim','stdout','kbServiceDomain','global\x20config','development','some','cwd','write','EACCES','host','inherit','locale','ACCESS_KEY','EPERM','error','accessKey','newConfigFileName','slice','6914110xtDMQb','24vkbmYg','find','458386wVEyZk','./constant/env.js','join','riskLevel','raw','high-risk-write','missing','ENV','parse','agentDomain','apiDomain','setRawCommand','stdin','appCode','EXDEV','userDomain','empty','609594yvRqHp','values','.tmp','env','pageSize','defaultApp','true'];a107_0x2de3=function(){return _0xa0ee63;};return a107_0x2de3();}export async function createContext(_0x2bc6dc){const _0xf9996=a107_0x4c9b4b,_0x368035=buildConfigFromFlags(_0x2bc6dc);await initGlobalEnvironment(_0x368035);const {getUserDomain:_0x2bbd5d,getApiDomain:_0x2d4f0d}=await import('./constant/domain.js'),_0x145166={'apiDomain':_0x2d4f0d(),'userDomain':_0x2bbd5d()},_0x5e4d9f=await buildAuth(_0x368035);logger['setLogPath'](process[_0xf9996(0x12e)]());const _0x1f0bdd=(CLI_BIN_NAME+'\x20'+redactCommandArgv(process[_0xf9996(0x170)][_0xf9996(0x139)](0x2))[_0xf9996(0x13f)]('\x20'))[_0xf9996(0x17e)]();logger[_0xf9996(0x148)](_0x1f0bdd);const _0x1799bf=isNonInteractiveMode(_0x2bc6dc);return{'config':_0x368035,'auth':_0x5e4d9f,'logger':logger,'env':_0x145166,'nonInteractive':_0x1799bf};}export function buildConfigFromFlags(_0x456095){return buildConfig(loadRawConfigLayers(),_0x456095);}export function getLocalAppAliases(_0x4521df){const _0x334ea5=a107_0x4c9b4b;return _0x4521df['apps']&&typeof _0x4521df[_0x334ea5(0x156)]===_0x334ea5(0x163)?_0x4521df[_0x334ea5(0x156)]:{};}export function resolveLocalAppAliasCode(_0x2d4196,_0x192896){const _0x4ab857=a107_0x4c9b4b;if(!_0x192896)return undefined;const _0x586021=getLocalAppAliases(_0x2d4196)[_0x192896],_0x1f283a=_0x586021?.['appcode'];return typeof _0x1f283a===_0x4ab857(0x15c)&&_0x1f283a['trim']()?_0x1f283a[_0x4ab857(0x17e)]():undefined;}export function readAppCodeFromConfig(){const _0x3aa246=a107_0x4c9b4b;return buildConfigFromFlags({})[_0x3aa246(0x14a)];}export function readScopedConfig(_0x1c9405){const _0x3582b9=a107_0x4c9b4b,_0x5dd328=_0x1c9405['global']?_0x3582b9(0x165):_0x3582b9(0x16c);return readConfigFile(resolveWriteConfigPath(_0x5dd328));}export function writeScopedConfig(_0x104c59,_0x31b16a){const _0x3b85aa=a107_0x4c9b4b,_0x7f0b3=_0x31b16a[_0x3b85aa(0x165)]?'global':_0x3b85aa(0x16c);writeConfigFile(resolveWriteConfigPath(_0x7f0b3),_0x104c59);}export async function initGlobalEnvironment(_0x1a1095){const _0x2f283f=a107_0x4c9b4b,{initEnv:_0x35bcea}=await import(_0x2f283f(0x13e));_0x35bcea(_0x1a1095[_0x2f283f(0x151)]);const {initDomains:_0x42e741}=await import(_0x2f283f(0x164)),_0x34c54d=resolveEnterpriseRoutingConfig(_0x1a1095[_0x2f283f(0x141)]['routing']);_0x42e741({'apiDomain':_0x34c54d?_0x34c54d[_0x2f283f(0x147)]:_0x1a1095['raw'][_0x2f283f(0x147)]||_0x1a1095[_0x2f283f(0x141)][_0x2f283f(0x131)]||undefined,'userDomain':_0x34c54d?_0x34c54d['userDomain']:_0x1a1095[_0x2f283f(0x141)][_0x2f283f(0x14c)]||undefined,'runtimeDomain':_0x34c54d?_0x34c54d[_0x2f283f(0x159)]:_0x1a1095[_0x2f283f(0x141)][_0x2f283f(0x159)]||undefined,'skillDomain':_0x34c54d?_0x34c54d[_0x2f283f(0x16d)]:_0x1a1095['raw'][_0x2f283f(0x16d)]||_0x1a1095[_0x2f283f(0x141)][_0x2f283f(0x16e)]||_0x1a1095['raw'][_0x2f283f(0x146)]||_0x1a1095['raw'][_0x2f283f(0x155)]||undefined,'kbServiceDomain':_0x34c54d?_0x34c54d[_0x2f283f(0x12a)]:typeof _0x1a1095[_0x2f283f(0x141)]['kbServiceDomain']===_0x2f283f(0x15c)&&_0x1a1095['raw']['kbServiceDomain'][_0x2f283f(0x17e)]()?_0x1a1095[_0x2f283f(0x141)][_0x2f283f(0x12a)]:undefined,'harnessDomain':_0x34c54d?_0x34c54d[_0x2f283f(0x176)]:_0x1a1095[_0x2f283f(0x141)]['harnessDomain']===undefined?undefined:normalizeDomainOrigin(_0x2f283f(0x176),_0x1a1095[_0x2f283f(0x141)]['harnessDomain']),'region':normalizeLovrabetRegion(_0x1a1095[_0x2f283f(0x141)]['region'])});}export function getProjectConfigPath(){const _0x4045ec=a107_0x4c9b4b;return resolveConfigPath(process[_0x4045ec(0x12e)]());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function inspectCliConfigJsonFile(_0x977236){const _0x3bbb7b=a107_0x4c9b4b;if(!existsSync(_0x977236))return{'status':_0x3bbb7b(0x143)};try{const _0x4f64dd=readFileSync(_0x977236,{'encoding':_0x3bbb7b(0x157)});if(!_0x4f64dd?.['trim']())return{'status':_0x3bbb7b(0x14d)};const _0x1fe4d0=JSON['parse'](_0x4f64dd);return{'status':'ok','data':_0x1fe4d0};}catch(_0x54389e){return{'status':_0x3bbb7b(0x136),'message':_0x54389e instanceof Error?_0x54389e[_0x3bbb7b(0x179)]:String(_0x54389e)};}}export function loadRawConfigLayers(_0x18a155){const _0x223278=a107_0x4c9b4b;let _0xc50894={},_0x24830a={},_0x1e8749,_0x4df00c;try{_0x1e8749=resolveConfigPath(homedir());if(_0x1e8749){const _0x47a18d=readFileSync(_0x1e8749,{'encoding':_0x223278(0x157)});if(_0x47a18d)_0xc50894=JSON[_0x223278(0x145)](_0x47a18d);}}catch{}try{const _0x48fc9d=_0x18a155||process[_0x223278(0x12e)]();_0x4df00c=resolveConfigPath(_0x48fc9d);if(_0x4df00c){const _0x2c138c=readFileSync(_0x4df00c,{'encoding':_0x223278(0x157)});if(_0x2c138c)_0x24830a=JSON['parse'](_0x2c138c);}}catch{}return{'globalPath':_0x1e8749,'projectPath':_0x4df00c,'globalConfig':_0xc50894,'projectConfig':_0x24830a};}function mergeRawConfigLayers(_0x327e38){const _0x27b169=a107_0x4c9b4b,{globalConfig:_0x7b0682,projectConfig:_0x268ccd}=_0x327e38,_0x419f5b={..._0x7b0682,..._0x268ccd};delete _0x419f5b[_0x27b169(0x132)];if(_0x27b169(0x153)in _0x268ccd)_0x419f5b[_0x27b169(0x153)]=_0x268ccd[_0x27b169(0x153)];else _0x7b0682[_0x27b169(0x153)]&&(_0x419f5b[_0x27b169(0x153)]=_0x7b0682[_0x27b169(0x153)]);return _0x419f5b;}export function isInProject(){return!!getProjectConfigPath();}export function readRawConfig(_0x1964ce){return mergeRawConfigLayers(loadRawConfigLayers(_0x1964ce));}export function readRawConfigWithLayers(_0x2a583a){const _0x50318e=loadRawConfigLayers(_0x2a583a);return{'config':mergeRawConfigLayers(_0x50318e),'layers':_0x50318e};}export function resolveDefaultAppSource(_0x14f031){const _0x1b37b9=a107_0x4c9b4b;if(_0x1b37b9(0x153)in _0x14f031[_0x1b37b9(0x166)])return _0x1b37b9(0x16c);if(_0x14f031[_0x1b37b9(0x178)][_0x1b37b9(0x153)])return _0x1b37b9(0x165);return null;}function buildConfig(_0x1e6d76,_0x5ad926){const _0xbaab59=a107_0x4c9b4b,_0x3e04e6=mergeRawConfigLayers(_0x1e6d76),{projectConfig:_0x57e879}=_0x1e6d76,_0x115253=_0x3e04e6[_0xbaab59(0x153)]||undefined,_0x2fa1b2=typeof _0x5ad926[_0xbaab59(0x167)]===_0xbaab59(0x15c)?_0x5ad926[_0xbaab59(0x167)]:undefined,_0x1832a9=_0x57e879[_0xbaab59(0x167)]||_0x57e879['app'],_0x39a867=!_0x2fa1b2&&!_0x5ad926[_0xbaab59(0x162)]&&!_0x1832a9&&!_0x57e879[_0xbaab59(0x153)],_0x4e36bc=_0x39a867?env('APPCODE'):undefined,_0x5f19c9=_0x5ad926['app']||(_0x39a867&&!_0x4e36bc?env('APP'):undefined),_0x53abb8=_0x5f19c9||_0x115253||undefined,_0x3820c3=_0x5f19c9||_0x4e36bc?undefined:_0x1832a9||(_0x57e879[_0xbaab59(0x153)]?undefined:_0x3e04e6[_0xbaab59(0x167)]||_0x3e04e6[_0xbaab59(0x162)]||undefined),_0x203348=_0x5f19c9||(_0x3820c3?undefined:_0x115253),_0x22bc58=resolveLocalAppAliasCode(_0x3e04e6,_0x203348),_0x4a3186=productEnvNames(_0xbaab59(0x134))[_0xbaab59(0x13c)](_0x50d376=>process.env[_0x50d376]!==undefined),_0x52d75d=_0x4a3186?process.env[_0x4a3186]:undefined,_0x188588=_0x57e879[_0xbaab59(0x137)]||_0x52d75d||_0x3e04e6['accessKey']||undefined,_0x3eda11=_0x57e879[_0xbaab59(0x137)]?'project\x20config':_0x52d75d?_0x4a3186:_0x3e04e6[_0xbaab59(0x137)]?_0xbaab59(0x12b):undefined,_0x46abd6=_0x5ad926[_0xbaab59(0x151)]||_0x3e04e6[_0xbaab59(0x151)]||env(_0xbaab59(0x144))||DEFAULT_CONFIG_VALUES[_0xbaab59(0x151)],_0x4fff45=normalizeEnv(String(_0x46abd6)),_0x188d8d=isDaily(_0x4fff45)?_0xbaab59(0x174):isDev(_0x4fff45)?_0xbaab59(0x12c):_0xbaab59(0x172),_0x839f55=_0x2fa1b2||_0x4e36bc||_0x3820c3||_0x22bc58?undefined:resolveCachedAppCode(_0x203348,_0x188d8d,_0x188588),_0x4f0354=_0x2fa1b2||_0x4e36bc||_0x3820c3||_0x22bc58||_0x839f55||undefined,_0x300e39=_0x2fa1b2?_0xbaab59(0x15d):_0x4e36bc?_0xbaab59(0x151):_0x3820c3?'top-level':_0x22bc58?_0xbaab59(0x15f):_0x839f55?'cache':undefined,_0x5d6df3=_0x3e04e6[_0xbaab59(0x133)]||DEFAULT_CONFIG_VALUES[_0xbaab59(0x133)],_0x35ef3d=undefined,_0x156b15=_0x5ad926['format']||env(_0xbaab59(0x17d))||_0x3e04e6[_0xbaab59(0x16f)],_0x1ca997=normalizeLegacyOutputFormat(_0x156b15),_0x5bb8e9=env(_0xbaab59(0x17a))||_0x3e04e6[_0xbaab59(0x152)],_0x41c742=_0x5bb8e9?Number(_0x5bb8e9)||undefined:undefined,_0xd898f4=_0x3e04e6[_0xbaab59(0x140)],_0x65b11=_0xd898f4===_0xbaab59(0x168)||_0xd898f4===_0xbaab59(0x12f)||_0xd898f4===_0xbaab59(0x142)?_0xd898f4:DEFAULT_CONFIG_VALUES[_0xbaab59(0x140)],_0x42c0d6=_0x3e04e6[_0xbaab59(0x158)]===!![],_0x5dd010=env('VERBOSE'),_0x1c24ac=_0x5dd010==='1'||_0x5dd010===_0xbaab59(0x154);return{'appCode':typeof _0x4f0354===_0xbaab59(0x15c)&&_0x4f0354['trim']()?_0x4f0354['trim']():undefined,'appCodeSource':_0x300e39,'env':_0x188d8d,'locale':_0x5d6df3,'cookie':_0x35ef3d,'accessKey':_0x188588,'accessKeySource':_0x3eda11,'format':_0x1ca997,'pageSize':_0x41c742,'riskLevel':_0x65b11,'nativeToolAvailable':_0x42c0d6,'verbose':_0x1c24ac,'defaultApp':_0x115253,'currentApp':typeof _0x53abb8===_0xbaab59(0x15c)?_0x53abb8:undefined,'raw':_0x3e04e6};}function env(_0x287993){return productEnv(_0x287993);}async function buildAuth(_0x2c3330){const _0x2e14d5=a107_0x4c9b4b,_0x3709d7='',_0x7b6867=!!_0x2c3330[_0x2e14d5(0x137)];return{'cookie':_0x3709d7,'isLoggedIn':_0x7b6867,async 'getOrLogin'(){const _0x936368=_0x2e14d5;if(_0x7b6867)return _0x3709d7;throw CliErrors[_0x936368(0x15a)]();}};}
@@ -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_0x74666c=a108_0x137d;(function(_0x34469c,_0x14ddf2){const _0x2bd493=a108_0x137d,_0x5ad790=_0x34469c();while(!![]){try{const _0x16bd6c=parseInt(_0x2bd493(0x243))/0x1*(parseInt(_0x2bd493(0x1b3))/0x2)+-parseInt(_0x2bd493(0x23f))/0x3+parseInt(_0x2bd493(0x228))/0x4*(-parseInt(_0x2bd493(0x1ea))/0x5)+parseInt(_0x2bd493(0x209))/0x6*(parseInt(_0x2bd493(0x1aa))/0x7)+-parseInt(_0x2bd493(0x211))/0x8*(-parseInt(_0x2bd493(0x1df))/0x9)+-parseInt(_0x2bd493(0x182))/0xa*(-parseInt(_0x2bd493(0x1b7))/0xb)+-parseInt(_0x2bd493(0x200))/0xc;if(_0x16bd6c===_0x14ddf2)break;else _0x5ad790['push'](_0x5ad790['shift']());}catch(_0xbcefd6){_0x5ad790['push'](_0x5ad790['shift']());}}}(a108_0x2265,0xafb6c));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(_0x2b74f9){if(_activeAK!==(_0x2b74f9||undefined))clearSdkClient();_activeAK=_0x2b74f9||undefined;}export function clearActiveAK(){_activeAK=undefined,clearSdkClient();}async function sdkRequest(_0x5d5f50,_0x539353){const _0x5d755b=a108_0x137d;if(!_activeAK)throw CliErrors[_0x5d755b(0x16f)](_0x5d755b(0x1b0)+PRODUCT_CONFIG['newConfigFileName']+'.');const _0x4ccf1d=_0x5d5f50?getSdkClient({'appCode':_0x5d5f50,'env':getEnv(),'runtimeDomain':getRuntimeDomain(),'authMode':_0x5d755b(0x20b),'accessKey':_activeAK}):getSdkClient();return withSdkErrors(()=>_0x539353(_0x4ccf1d));}async function identitySdkRequest(_0x39f86d){const _0x189bee=a108_0x137d,_0x49b601=_activeAK;if(!_0x49b601)throw CliErrors[_0x189bee(0x16f)](_0x189bee(0x1b0)+PRODUCT_CONFIG[_0x189bee(0x1f4)]+'.');return withSdkErrors(()=>_0x39f86d(getIdentitySdkClient(_0x49b601,getRuntimeDomain())));}function a108_0x2265(){const _0x43a076=['1949151mFfJKl','artifact','slug','publish','1471vczcPb','diagramBound','undefined','signal','/api/runtime/v1/namespaces/','error','toString','transfer','invokeSource','version','importContract','authRequired','status','skill','personal','application/json','Check\x20your\x20credentials\x20and\x20try\x20again.','join','skillName','userId','list','confirmWarnings','Toolbox\x20error\x20code:\x20','].userId\x20is\x20invalid.','scope','queryAppUsers','PUBLISHED','getTask','getRoleList','skillCode','1960nUbvPB','roleList[','currentPage','bindAccount','data','limit','loginUserInfo','warnings','file','DELETE','SQL\x20metadata\x20requires\x20Client\x20AK.','items','displayName','application/zip','Invalid\x20Skill\x20diagram\x20response:\x20missing\x20canonical\x20sourceFingerprint.','approve','runtime','appCode','/publish','NAMESPACE_ONLY','markdown','errorMsg','Invalid\x20runtime\x20role\x20members\x20response:\x20','tags','/diagram','updateRole','bytes','queryUrl','searchParams','Backend\x20Function\x20not\x20found\x20or\x20inaccessible:\x20appCode=','functions','sqlCode','size','Dataset\x20import\x20requires\x20Client\x20AK.','packageBase64','update','Toolbox\x20API\x20error:\x20','valid','contentHash','savePagePermit','604009kTtkwY','Invalid\x20import\x20task\x20readback\x20response.','importBatch','trim','getResourceMenuList','text','Configure\x20accessKey\x20in\x20','roleName','message','1790jLRUFc','/versions/','execute','functionName','43516axpmVu','values','toLowerCase','applyUserList','apiError','headers','isInteger','Invalid\x20login\x20user\x20info\x20response:\x20expected\x20object.','listNotificationChannels','tableName','Toolbox\x20API\x20error','abort','upload','resolvedSlug','found','type','json','validation','/validate','visibility','Invalid\x20Skill\x20diagram\x20response:\x20absent\x20diagram\x20must\x20have\x20a\x20null\x20diagramRevision.','retryAfter','/client/user-accounts/bind','find','headlineVersion','success','myApps','SkillHub\x20does\x20not\x20support\x20atomic\x20Skill\x20diagram\x20','errorCode','sourceFingerprint','effective','updateRoleUserList','isJson','errors','getRolePermitList','function','entries','replace','set','isArray','9TjtZxW','getConfigByKey','Invalid\x20approval\x20task\x20detail\x20response.','company','getDatasetPermitMeta','Backend\x20Function\x20metadata\x20requires\x20Client\x20AK.','namespace','app','/run','].applyUserList','all','2207180bQHzgi','example','Download\x20failed:\x20','msg','Invalid\x20import\x20readback\x20response.','code','/api/cli/v1/skills/','pageSize','bff','/api/harness/apps/','newConfigFileName','Invalid\x20runtime\x20role\x20members\x20response:\x20roleList[','/api/v1/skills/',']\x20must\x20be\x20an\x20object.','PRIVATE','approval','name','publishedVersion','summary','filter','\x20must\x20be\x20an\x20array.','api-doc-generator','9736812gSUSjb','response','SkillHub\x20error\x20code:\x20','Request\x20timeout:\x20','POST','diagramValidated','stringify','sql','Expected\x20the\x20server\x20data\x20field\x20to\x20be\x20an\x20array.','12XzneAA','from','client-ak','permit','object','Runtime\x20SDK\x20request\x20failed.','kind','installableOnly','6393752eqoPkc','dataset_','getEndpoint','PUT','Invalid\x20notification\x20config\x20list\x20response.','API\x20error\x20code:\x20','map','content','test','SkillHub\x20API\x20error:\x20','cursor','appName','AbortError','SkillHub\x20returned\x20non-JSON\x20response\x20(HTTP\x20','/schedules','query','listTodo','importImageReadback','services',',\x20name=','isSafeInteger','gmtModified','harness','8AKylNP','string','GET','datasetMeta','/download','image','resolvedVersion','saveMenuPermits','deleteRole','tableData','permitList','/skills','description','base64','diagram','Application\x20code\x20contains\x20invalid\x20URL\x20path\x20characters.','arrayBuffer','SQL\x20query\x20not\x20found:\x20','Invalid\x20Skill\x20diagram\x20response:\x20found\x20diagram\x20has\x20no\x20positive\x20diagramRevision.','application/octet-stream','Deploy\x20a\x20SkillHub\x20version\x20that\x20returns\x20diagramValidated/diagramBound\x20before\x20publishing\x20with\x20this\x20CLI.','].userList','importReadback'];a108_0x2265=function(){return _0x43a076;};return a108_0x2265();}async function withSdkErrors(_0x32240b){const _0x35448e=a108_0x137d;try{return await _0x32240b();}catch(_0x55848b){if(_0x55848b instanceof CliError)throw _0x55848b;if(!_0x55848b||typeof _0x55848b!==_0x35448e(0x20d))throw _0x55848b;const _0x243dbb=_0x55848b,_0x5ea90c=_0x243dbb[_0x35448e(0x201)]&&typeof _0x243dbb[_0x35448e(0x201)]===_0x35448e(0x20d)?_0x243dbb['response']:{},_0x3977d4=firstString(_0x5ea90c[_0x35448e(0x197)],_0x5ea90c[_0x35448e(0x1b2)],_0x5ea90c[_0x35448e(0x1ed)],_0x243dbb[_0x35448e(0x1b2)]),_0x1f42be=createRateLimitError({'status':[_0x243dbb[_0x35448e(0x170)],_0x5ea90c[_0x35448e(0x170)],_0x5ea90c['code']][_0x35448e(0x1ce)](_0x5e49eb=>Number(_0x5e49eb)===0x1ad)??_0x243dbb[_0x35448e(0x170)],'errorCode':firstString(_0x5ea90c[_0x35448e(0x1d3)],typeof _0x5ea90c[_0x35448e(0x1ef)]===_0x35448e(0x229)?_0x5ea90c['code']:undefined,_0x243dbb[_0x35448e(0x1ef)]),'message':_0x3977d4,'retryAfter':_0x243dbb[_0x35448e(0x1cc)]??readRetryAfterSeconds(_0x243dbb[_0x35448e(0x201)])});if(_0x1f42be)throw _0x1f42be;const _0x1a832a=createAccessError(_0x243dbb[_0x35448e(0x201)],_0x243dbb[_0x35448e(0x1ef)]);if(_0x1a832a)throw _0x1a832a;throw CliErrors[_0x35448e(0x1bb)](_0x3977d4||_0x35448e(0x20e),_0x243dbb[_0x35448e(0x1ef)]?_0x35448e(0x216)+_0x243dbb[_0x35448e(0x1ef)]:undefined);}}function a108_0x137d(_0x128aac,_0x114d4b){_0x128aac=_0x128aac-0x168;const _0x22657d=a108_0x2265();let _0x137dab=_0x22657d[_0x128aac];return _0x137dab;}function firstString(..._0x3d8137){const _0x289ea0=a108_0x137d;for(const _0x19d020 of _0x3d8137){if(typeof _0x19d020===_0x289ea0(0x229)&&_0x19d020[_0x289ea0(0x1ad)]())return _0x19d020[_0x289ea0(0x1ad)]();}return undefined;}async function decodeResponseBody(_0x4a7ba9){const _0x385b9f=a108_0x137d;if(typeof _0x4a7ba9['text']===_0x385b9f(0x1da))try{const _0x5a5085=await _0x4a7ba9[_0x385b9f(0x1af)]();try{return{'isJson':!![],'data':parseLosslessJson(_0x5a5085),'text':_0x5a5085};}catch{return{'isJson':![],'text':_0x5a5085[_0x385b9f(0x1ad)]()||undefined};}}catch(_0x5fc592){if(_0x5fc592 instanceof Error&&_0x5fc592['name']===_0x385b9f(0x21d))throw _0x5fc592;}try{return{'isJson':!![],'data':await _0x4a7ba9[_0x385b9f(0x1c7)]()};}catch(_0x5c5c25){if(_0x5c5c25 instanceof Error&&_0x5c5c25[_0x385b9f(0x1fa)]===_0x385b9f(0x21d))throw _0x5c5c25;return{'isJson':![]};}}function throwIfRateLimited(_0x4595de,_0x2d38b7,_0x57479f){const _0x3e76da=a108_0x137d,_0x25cf38=_0x2d38b7&&typeof _0x2d38b7==='object'?_0x2d38b7:{},_0x4766de=[_0x25cf38['status'],_0x25cf38[_0x3e76da(0x1ef)]]['find'](_0x4f544b=>Number(_0x4f544b)===0x1ad),_0x35d86e=createRateLimitError({'status':_0x4595de['status']===0x1ad?_0x4595de[_0x3e76da(0x170)]:_0x4766de??_0x4595de[_0x3e76da(0x170)],'errorCode':firstString(_0x25cf38['errorCode'],typeof _0x25cf38[_0x3e76da(0x1ef)]===_0x3e76da(0x229)?_0x25cf38['code']:undefined),'message':firstString(_0x25cf38[_0x3e76da(0x197)],_0x25cf38[_0x3e76da(0x1b2)],_0x25cf38[_0x3e76da(0x1ed)],_0x57479f),'retryAfter':readRetryAfter(_0x4595de[_0x3e76da(0x1bc)])??readRetryAfterSeconds(_0x2d38b7)});if(_0x35d86e)throw _0x35d86e;}async function apiRequest(_0x24a6f4,_0x590a0f={}){const _0x442026=a108_0x137d,{method:method='GET',body:_0xee683f,headers:headers={},timeout:timeout=0x7530,domain:domain=_0x442026(0x192),rejectRedirects:rejectRedirects=![]}=_0x590a0f,_0x33de8e=_activeAK,_0x18c100=domain===_0x442026(0x227)?requireHarnessDomain():domain==='api'?getApiDomain():getRuntimeDomain();if(!_0x33de8e)throw CliErrors[_0x442026(0x16f)](_0x442026(0x1b0)+PRODUCT_CONFIG[_0x442026(0x1f4)]+'.');const _0x2fd7bd=''+_0x18c100+_0x24a6f4,_0x2a8b59={'X-User-AK':_0x33de8e},_0x3d5d31=new AbortController(),_0x5d3748=setTimeout(()=>_0x3d5d31['abort'](),timeout);try{const _0x3213b0=await fetch(_0x2fd7bd,{'method':method,...rejectRedirects?{'redirect':'error'}:{},'headers':{'Content-Type':_0x442026(0x173),'X-Invoke-Source':PRODUCT_CONFIG[_0x442026(0x16c)],..._0x2a8b59,...headers},'body':_0xee683f?JSON[_0x442026(0x206)](_0xee683f):undefined,'signal':_0x3d5d31['signal']});return await readApiResponse(_0x3213b0);}catch(_0x4c5892){if(_0x4c5892 instanceof Error&&_0x4c5892['name']===_0x442026(0x21d))throw CliErrors[_0x442026(0x1bb)](_0x442026(0x203)+_0x2fd7bd);throw _0x4c5892;}finally{clearTimeout(_0x5d3748);}}async function readApiResponse(_0x54becd){const _0x23803f=a108_0x137d,_0x3d793c=await decodeResponseBody(_0x54becd);if(!_0x3d793c[_0x23803f(0x1d7)]){throwIfRateLimited(_0x54becd,undefined,_0x3d793c[_0x23803f(0x1af)]);throw CliErrors['apiError']('API\x20returned\x20non-JSON\x20response\x20(HTTP\x20'+_0x54becd[_0x23803f(0x170)]+')',_0x54becd['status']>=0x190?_0x23803f(0x174):undefined);}const _0xf9db55=_0x3d793c[_0x23803f(0x186)];throwIfRateLimited(_0x54becd,_0xf9db55);if(!_0x54becd['ok']||_0xf9db55[_0x23803f(0x1d0)]===![]){const _0x4babed=createAccessError(_0xf9db55);if(_0x4babed)throw _0x4babed;throw CliErrors[_0x23803f(0x1bb)](_0xf9db55['errorMsg']||_0xf9db55[_0x23803f(0x1b2)]||_0xf9db55[_0x23803f(0x1ed)]||'API\x20error:\x20'+_0x54becd['status'],readApiErrorCode(_0xf9db55)?_0x23803f(0x216)+readApiErrorCode(_0xf9db55):undefined);}return _0xf9db55;}async function apiBinaryRequest(_0x37b133,_0xf5bd6b={}){const _0x26a0d8=a108_0x137d,{method:method=_0x26a0d8(0x22a),headers:headers={},timeout:timeout=0x7530}=_0xf5bd6b,_0x432212=_activeAK,_0x2cd7f4=getRuntimeDomain();if(!_0x432212)throw CliErrors[_0x26a0d8(0x16f)](_0x26a0d8(0x1b0)+PRODUCT_CONFIG[_0x26a0d8(0x1f4)]+'.');const _0xed2415=''+_0x2cd7f4+_0x37b133,_0x5ef3fa=new AbortController(),_0x392723=setTimeout(()=>_0x5ef3fa[_0x26a0d8(0x1c2)](),timeout);try{const _0x574608=await fetch(_0xed2415,{'method':method,'headers':{'X-Invoke-Source':PRODUCT_CONFIG[_0x26a0d8(0x16c)],'X-User-AK':_0x432212,...headers},'signal':_0x5ef3fa[_0x26a0d8(0x246)]});if(!_0x574608['ok']){const _0x4ef865=await decodeResponseBody(_0x574608),_0xb75a25=_0x4ef865[_0x26a0d8(0x186)]&&typeof _0x4ef865['data']==='object'?_0x4ef865[_0x26a0d8(0x186)]:{},_0x3cf1e0=firstString(_0xb75a25[_0x26a0d8(0x197)],_0xb75a25['message'],_0xb75a25[_0x26a0d8(0x1d3)],_0x4ef865[_0x26a0d8(0x1af)]);throwIfRateLimited(_0x574608,_0x4ef865[_0x26a0d8(0x186)],_0x3cf1e0);const _0x8a80b8=createAccessError(_0x4ef865[_0x26a0d8(0x186)]);if(_0x8a80b8)throw _0x8a80b8;throw CliErrors[_0x26a0d8(0x1bb)](_0x3cf1e0||'API\x20error:\x20'+_0x574608[_0x26a0d8(0x170)],_0x26a0d8(0x1ec)+_0xed2415);}return Buffer['from'](await _0x574608['arrayBuffer']());}catch(_0x28f8e8){if(_0x28f8e8 instanceof Error&&_0x28f8e8[_0x26a0d8(0x1fa)]===_0x26a0d8(0x21d))throw CliErrors[_0x26a0d8(0x1bb)](_0x26a0d8(0x203)+_0xed2415);throw _0x28f8e8;}finally{clearTimeout(_0x392723);}}async function toolboxRequest(_0xa4148b,_0x34f6f0,_0x121dde={}){const _0x4bd77d=a108_0x137d,{method:method='GET',headers:headers={},timeout:timeout=0x7530}=_0x121dde,_0x1e181b=_activeAK;if(!_0x1e181b)throw CliErrors[_0x4bd77d(0x16f)](_0x4bd77d(0x1b0)+PRODUCT_CONFIG[_0x4bd77d(0x1f4)]+'.');const _0x19b9ee=getApiDomain()[_0x4bd77d(0x1dc)](/\/$/,''),_0x1c6494=new URL(_0xa4148b,_0x19b9ee+'/api/node-toolbox/');if(_0x34f6f0)for(const [_0x4470ad,_0x5d2ad0]of Object[_0x4bd77d(0x1db)](_0x34f6f0)){_0x5d2ad0!==undefined&&_0x5d2ad0!==null&&_0x1c6494['searchParams']['set'](_0x4470ad,String(_0x5d2ad0));}const _0x1db36f=new AbortController(),_0x1e7686=setTimeout(()=>_0x1db36f['abort'](),timeout);try{const _0x5c1eb8=await fetch(_0x1c6494,{'method':method,'headers':{'Content-Type':_0x4bd77d(0x173),'X-Invoke-Source':PRODUCT_CONFIG[_0x4bd77d(0x16c)],'X-User-AK':_0x1e181b,...headers},'signal':_0x1db36f['signal']}),_0x1b840a=await decodeResponseBody(_0x5c1eb8);if(!_0x1b840a[_0x4bd77d(0x1d7)]){throwIfRateLimited(_0x5c1eb8,undefined,_0x1b840a[_0x4bd77d(0x1af)]);throw CliErrors[_0x4bd77d(0x1bb)]('Toolbox\x20returned\x20non-JSON\x20response\x20(HTTP\x20'+_0x5c1eb8[_0x4bd77d(0x170)]+')',_0x5c1eb8[_0x4bd77d(0x170)]>=0x190?_0x4bd77d(0x174):undefined);}const _0x353093=_0x1b840a['data'];throwIfRateLimited(_0x5c1eb8,_0x353093);if(!_0x5c1eb8['ok']){const _0x39a285=_0x353093&&typeof _0x353093==='object'?_0x353093:{};throw CliErrors[_0x4bd77d(0x1bb)](_0x39a285[_0x4bd77d(0x197)]||_0x39a285[_0x4bd77d(0x1b2)]||_0x4bd77d(0x1a6)+_0x5c1eb8[_0x4bd77d(0x170)],_0x39a285[_0x4bd77d(0x1d3)]?'Toolbox\x20error\x20code:\x20'+_0x39a285['errorCode']:undefined);}if(_0x353093&&typeof _0x353093===_0x4bd77d(0x20d)&&_0x4bd77d(0x1d0)in _0x353093&&typeof _0x353093['success']==='boolean'){const _0x3a0a20=_0x353093;if(!_0x3a0a20['success'])throw CliErrors[_0x4bd77d(0x1bb)](_0x3a0a20[_0x4bd77d(0x197)]||_0x3a0a20[_0x4bd77d(0x1b2)]||_0x4bd77d(0x1c1),_0x3a0a20[_0x4bd77d(0x1d3)]?_0x4bd77d(0x17a)+_0x3a0a20[_0x4bd77d(0x1d3)]:undefined);return _0x3a0a20[_0x4bd77d(0x186)];}return _0x353093;}catch(_0x542c69){if(_0x542c69 instanceof Error&&_0x542c69[_0x4bd77d(0x1fa)]==='AbortError')throw CliErrors['apiError'](_0x4bd77d(0x203)+_0x1c6494[_0x4bd77d(0x16a)]());throw _0x542c69;}finally{clearTimeout(_0x1e7686);}}async function skillHubJsonRequest(_0x18b5b8,_0x18bb73={}){const _0x169ab3=a108_0x137d,{method:method='GET',query:_0x3d9678,body:_0x12238a,headers:headers={},timeout:timeout=0x7530,allowNotFound:allowNotFound=![]}=_0x18bb73,_0x47323a=_activeAK;if(!_0x47323a)throw CliErrors['authRequired']('Configure\x20accessKey\x20in\x20'+PRODUCT_CONFIG[_0x169ab3(0x1f4)]+'.');const _0x514f19=getSkillDomain()[_0x169ab3(0x1dc)](/\/$/,''),_0x415fa8=new URL(_0x18b5b8,_0x514f19+'/');if(_0x3d9678)for(const [_0xb84dd4,_0x11b533]of Object[_0x169ab3(0x1db)](_0x3d9678)){_0x11b533!==undefined&&_0x11b533!==null&&_0x415fa8[_0x169ab3(0x19e)][_0x169ab3(0x1dd)](_0xb84dd4,String(_0x11b533));}const _0xa38c=new AbortController(),_0x2e1e24=setTimeout(()=>_0xa38c[_0x169ab3(0x1c2)](),timeout);try{const _0x10ef43=await fetch(_0x415fa8[_0x169ab3(0x16a)](),{'method':method,'headers':{'Accept':_0x169ab3(0x173),'X-Invoke-Source':PRODUCT_CONFIG['invokeSource'],'X-User-AK':_0x47323a,...headers},'body':_0x12238a,'signal':_0xa38c[_0x169ab3(0x246)]}),_0x4caae6=await decodeResponseBody(_0x10ef43);if(!_0x4caae6['isJson']){if(allowNotFound&&_0x10ef43[_0x169ab3(0x170)]===0x194)return undefined;throwIfRateLimited(_0x10ef43,undefined,_0x4caae6[_0x169ab3(0x1af)]);throw CliErrors[_0x169ab3(0x1bb)](_0x169ab3(0x21e)+_0x10ef43[_0x169ab3(0x170)]+')',_0x10ef43[_0x169ab3(0x170)]>=0x190?_0x169ab3(0x174):undefined);}const _0x2e9662=_0x4caae6[_0x169ab3(0x186)];throwIfRateLimited(_0x10ef43,_0x2e9662);if(allowNotFound&&isSkillHubNotFoundResponse(_0x10ef43[_0x169ab3(0x170)],_0x2e9662))return undefined;const _0x304ce4=!_0x10ef43['ok']||_0x2e9662?.[_0x169ab3(0x1d0)]===![]||typeof _0x2e9662?.[_0x169ab3(0x1ef)]==='number'&&_0x2e9662['code']>=0x190;if(_0x304ce4)throw CliErrors['apiError'](_0x2e9662?.['errorMsg']||_0x2e9662?.[_0x169ab3(0x1b2)]||_0x2e9662?.[_0x169ab3(0x1ed)]||_0x169ab3(0x21a)+_0x10ef43['status'],_0x2e9662?.['errorCode']?_0x169ab3(0x202)+_0x2e9662['errorCode']:undefined);return _0x2e9662?.[_0x169ab3(0x186)]??_0x2e9662;}catch(_0x2ce34b){if(_0x2ce34b instanceof Error&&_0x2ce34b[_0x169ab3(0x1fa)]===_0x169ab3(0x21d))throw CliErrors[_0x169ab3(0x1bb)]('Request\x20timeout:\x20'+_0x415fa8[_0x169ab3(0x16a)]());throw _0x2ce34b;}finally{clearTimeout(_0x2e1e24);}}function isSkillHubNotFoundResponse(_0x4455e6,_0x122fee){const _0x468e8e=a108_0x137d;if(_0x4455e6===0x194||_0x122fee?.[_0x468e8e(0x1ef)]===0x194)return!![];if(_0x4455e6!==0x190&&_0x122fee?.[_0x468e8e(0x1ef)]!==0x190)return![];const _0x8d4e9b=[_0x122fee?.['msg'],_0x122fee?.['message'],_0x122fee?.[_0x468e8e(0x197)],_0x122fee?.[_0x468e8e(0x169)]][_0x468e8e(0x1fd)](_0x17ef42=>typeof _0x17ef42===_0x468e8e(0x229))[_0x468e8e(0x175)]('\x20');return/skill not found\b/i[_0x468e8e(0x219)](_0x8d4e9b);}async function skillHubBinaryRequest(_0x11828b,_0x4c75a3={}){const _0x2828ac=a108_0x137d,{query:_0x13ecc0,headers:headers={},timeout:timeout=0x7530}=_0x4c75a3,_0x5642ea=_activeAK;if(!_0x5642ea)throw CliErrors[_0x2828ac(0x16f)](_0x2828ac(0x1b0)+PRODUCT_CONFIG[_0x2828ac(0x1f4)]+'.');const _0x56f5cb=getSkillDomain()[_0x2828ac(0x1dc)](/\/$/,''),_0x556a69=new URL(_0x11828b,_0x56f5cb+'/');if(_0x13ecc0)for(const [_0x5487a2,_0x4ebf42]of Object['entries'](_0x13ecc0)){_0x4ebf42!==undefined&&_0x4ebf42!==null&&_0x556a69[_0x2828ac(0x19e)]['set'](_0x5487a2,String(_0x4ebf42));}const _0x1dd5ee=new AbortController(),_0x4e59fd=setTimeout(()=>_0x1dd5ee['abort'](),timeout);try{const _0x36c28e=await fetch(_0x556a69['toString'](),{'method':'GET','headers':{'Accept':_0x2828ac(0x23b),'X-Invoke-Source':PRODUCT_CONFIG['invokeSource'],'X-User-AK':_0x5642ea,...headers},'signal':_0x1dd5ee[_0x2828ac(0x246)]});if(!_0x36c28e['ok']){const _0xf1b9f4=await decodeResponseBody(_0x36c28e),_0x468463=_0xf1b9f4[_0x2828ac(0x186)]&&typeof _0xf1b9f4[_0x2828ac(0x186)]===_0x2828ac(0x20d)?_0xf1b9f4[_0x2828ac(0x186)]:{},_0x7bfb29=firstString(_0x468463[_0x2828ac(0x197)],_0x468463['message'],_0x468463[_0x2828ac(0x1ed)],_0x468463['errorCode'],_0xf1b9f4[_0x2828ac(0x1af)]);throwIfRateLimited(_0x36c28e,_0xf1b9f4['data'],_0x7bfb29);throw CliErrors[_0x2828ac(0x1bb)](_0x7bfb29||_0x2828ac(0x21a)+_0x36c28e[_0x2828ac(0x170)],'Download\x20failed:\x20'+_0x556a69['toString']());}return Buffer[_0x2828ac(0x20a)](await _0x36c28e[_0x2828ac(0x238)]());}catch(_0x29b1b9){if(_0x29b1b9 instanceof Error&&_0x29b1b9[_0x2828ac(0x1fa)]===_0x2828ac(0x21d))throw CliErrors[_0x2828ac(0x1bb)](_0x2828ac(0x203)+_0x556a69[_0x2828ac(0x16a)]());throw _0x29b1b9;}finally{clearTimeout(_0x4e59fd);}}export async function getBffEndpointContract(_0x2d4107,_0x9be07b){const _0x18f673=a108_0x137d;if(encodeURIComponent(_0x2d4107)!==_0x2d4107||_0x2d4107==='.'||_0x2d4107==='..')throw CliErrors[_0x18f673(0x1c8)](_0x18f673(0x237));if(_0x9be07b===_0x18f673(0x1a0))throw CliErrors[_0x18f673(0x1c8)]('Backend\x20Function\x20not\x20found\x20or\x20inaccessible:\x20appCode='+_0x2d4107+_0x18f673(0x224)+_0x9be07b);const _0x446b6f=await sdkRequest(_0x2d4107,_0x3356fc=>{const _0x7778db=_0x18f673;if(!('getEndpoint'in _0x3356fc['bff']))throw CliErrors[_0x7778db(0x1c8)](_0x7778db(0x1e4));return _0x3356fc[_0x7778db(0x1f2)][_0x7778db(0x213)](_0x9be07b);});if(!_0x446b6f||typeof _0x446b6f!==_0x18f673(0x20d)||Array[_0x18f673(0x1de)](_0x446b6f)||_0x446b6f[_0x18f673(0x193)]!==_0x2d4107||_0x446b6f[_0x18f673(0x1b6)]!==_0x9be07b)throw CliErrors[_0x18f673(0x1c8)](_0x18f673(0x19f)+_0x2d4107+',\x20name='+_0x9be07b);const _0x382d4d=_0x446b6f[_0x18f673(0x226)];if(_0x382d4d!=null&&(typeof _0x382d4d!=='number'||!Number[_0x18f673(0x225)](_0x382d4d)))throw CliErrors[_0x18f673(0x1bb)]('Invalid\x20Backend\x20Function\x20response:\x20gmtModified\x20must\x20be\x20an\x20integer\x20timestamp\x20or\x20null.');return{'appCode':_0x446b6f[_0x18f673(0x193)],'functionName':_0x446b6f[_0x18f673(0x1b6)],'description':_0x446b6f[_0x18f673(0x234)],'version':_0x446b6f[_0x18f673(0x16d)],'gmtModified':_0x382d4d};}export async function getSqlQueryInfo(_0x20197b,_0x682b72){const _0x413b11=a108_0x137d,_0x3230c1=await sdkRequest(_0x20197b,_0x5b0ecf=>{const _0x562c1c=a108_0x137d;if(!(_0x562c1c(0x220)in _0x5b0ecf['sql']))throw CliErrors['validation'](_0x562c1c(0x18c));return _0x5b0ecf[_0x562c1c(0x207)][_0x562c1c(0x220)]({'appCode':_0x20197b,'currentPage':0x1,'pageSize':0x1,'sqlCode':_0x682b72});}),_0x371689=_0x3230c1&&typeof _0x3230c1===_0x413b11(0x20d)&&_0x413b11(0x231)in _0x3230c1?_0x3230c1['tableData']?.[0x0]:_0x3230c1&&typeof _0x3230c1===_0x413b11(0x20d)&&_0x413b11(0x1a1)in _0x3230c1?_0x3230c1:undefined;if(!_0x371689)throw CliErrors[_0x413b11(0x1c8)](_0x413b11(0x239)+_0x682b72);return _0x371689;}export async function listApprovalTodo(_0xf45b1d,_0x12aa3b=0x1,_0x19f55d=0x14){const _0x4ce4dc=a108_0x137d,_0x33e371=await sdkRequest(_0xf45b1d,_0x84a082=>_0x84a082[_0x4ce4dc(0x1f9)][_0x4ce4dc(0x221)]({'currentPage':_0x12aa3b,'pageSize':_0x19f55d}));if(!_0x33e371||typeof _0x33e371!==_0x4ce4dc(0x20d)||!Array[_0x4ce4dc(0x1de)](_0x33e371['records']))throw CliErrors[_0x4ce4dc(0x1bb)]('Invalid\x20approval\x20todo\x20response:\x20missing\x20records.');return _0x33e371;}export async function getApprovalTaskDetail(_0x47c0bc,_0xaaf721){const _0x3a2e65=a108_0x137d,_0x156a9b=await sdkRequest(_0xaaf721,_0x8c6a47=>_0x8c6a47[_0x3a2e65(0x1f9)][_0x3a2e65(0x17f)](_0x47c0bc));if(!_0x156a9b||typeof _0x156a9b!=='object'||Array['isArray'](_0x156a9b))throw CliErrors[_0x3a2e65(0x1bb)](_0x3a2e65(0x1e1));return _0x156a9b;}export async function approveApprovalTask(_0x2cf193){const _0x161153=a108_0x137d;return await sdkRequest(_0x2cf193[_0x161153(0x193)],_0x1034e6=>_0x1034e6[_0x161153(0x1f9)][_0x161153(0x191)](_0x2cf193)),null;}export async function transferApprovalTask(_0x130ba4){const _0x43b565=a108_0x137d;return await sdkRequest(_0x130ba4[_0x43b565(0x193)],_0x29e96b=>_0x29e96b['approval'][_0x43b565(0x16b)](_0x130ba4)),null;}function isRemoteAppItem(_0x248b28){const _0x214eec=a108_0x137d;return!!_0x248b28&&typeof _0x248b28===_0x214eec(0x20d)&&typeof _0x248b28['appCode']===_0x214eec(0x229)&&typeof _0x248b28[_0x214eec(0x21c)]===_0x214eec(0x229);}function extractRemoteAppItems(_0x24c948){const _0x57a204=a108_0x137d;if(Array[_0x57a204(0x1de)](_0x24c948))return _0x24c948[_0x57a204(0x1fd)](isRemoteAppItem);if(!_0x24c948||typeof _0x24c948!==_0x57a204(0x20d))throw CliErrors[_0x57a204(0x1bb)]('Invalid\x20app\x20list\x20response:\x20expected\x20object\x20or\x20array.');const _0x50fad5=_0x24c948;if(Array[_0x57a204(0x1de)](_0x50fad5['tableData']))return _0x50fad5[_0x57a204(0x231)][_0x57a204(0x1fd)](isRemoteAppItem);if(_0x50fad5['data']&&typeof _0x50fad5[_0x57a204(0x186)]===_0x57a204(0x20d)){const _0x2b26ad=_0x50fad5[_0x57a204(0x186)];if(Array[_0x57a204(0x1de)](_0x2b26ad[_0x57a204(0x231)]))return _0x2b26ad[_0x57a204(0x231)][_0x57a204(0x1fd)](isRemoteAppItem);}throw CliErrors[_0x57a204(0x1bb)]('Invalid\x20app\x20list\x20response:\x20missing\x20data.tableData.');}export async function getMyApps(){const _0x47ca15=a108_0x137d;return extractRemoteAppItems(await identitySdkRequest(_0x3df178=>_0x3df178[_0x47ca15(0x1d1)]()));}export async function getLoginUserInfo(){const _0xd1c4d5=a108_0x137d,_0x9ff49b=await identitySdkRequest(_0x3c4e03=>_0x3c4e03[_0xd1c4d5(0x188)]());if(!_0x9ff49b||typeof _0x9ff49b!==_0xd1c4d5(0x20d)||Array[_0xd1c4d5(0x1de)](_0x9ff49b))throw CliErrors[_0xd1c4d5(0x1bb)](_0xd1c4d5(0x1be));return _0x9ff49b;}export const USER_ACCOUNT_BIND_PATH=a108_0x74666c(0x1cd);export async function bindExternalUserAccount(_0x55ac9c,_0x3d7661){const _0x1b76e9=a108_0x74666c;return identitySdkRequest(_0x5d3fb1=>_0x5d3fb1[_0x1b76e9(0x185)]({'provider':_0x55ac9c,'accountId':_0x3d7661}));}function runtimeSchedulePath(_0x597d75,_0x49afd4=''){const _0xbf178c=a108_0x74666c;return _0xbf178c(0x1f3)+encodeURIComponent(_0x597d75)+_0xbf178c(0x21f)+_0x49afd4;}export async function validateRuntimeSchedule(_0x127299,_0x593e09){const _0x3c2d98=a108_0x74666c,_0x33517a=await apiRequest(runtimeSchedulePath(_0x127299,_0x3c2d98(0x1c9)),{'domain':_0x3c2d98(0x227),'method':_0x3c2d98(0x204),'body':_0x593e09});return _0x33517a[_0x3c2d98(0x186)];}export async function createRuntimeSchedule(_0x10faca,_0x552f19){const _0x14909f=a108_0x74666c,_0x86701=await apiRequest(runtimeSchedulePath(_0x10faca),{'domain':_0x14909f(0x227),'method':'POST','body':_0x552f19});return _0x86701[_0x14909f(0x186)];}export async function listRuntimeSchedules(_0x1ed0fd,_0x50d9b7){const _0x48acb1=a108_0x74666c,_0x596680=new URLSearchParams();_0x596680['set'](_0x48acb1(0x20f),_0x50d9b7[_0x48acb1(0x20f)]);if(_0x50d9b7[_0x48acb1(0x187)]!==undefined)_0x596680[_0x48acb1(0x1dd)]('limit',String(_0x50d9b7[_0x48acb1(0x187)]));if(_0x50d9b7[_0x48acb1(0x21b)])_0x596680[_0x48acb1(0x1dd)](_0x48acb1(0x21b),_0x50d9b7['cursor']);const _0x4ab55d=_0x596680[_0x48acb1(0x1a2)]>0x0?'?'+_0x596680['toString']():'',_0x242e22=await apiRequest(''+runtimeSchedulePath(_0x1ed0fd)+_0x4ab55d,{'domain':_0x48acb1(0x227)});return _0x242e22[_0x48acb1(0x186)];}export async function getRuntimeSchedule(_0x242cf7,_0x2f74b0){const _0x1b97f6=a108_0x74666c,_0x302d81=await apiRequest(runtimeSchedulePath(_0x242cf7,'/'+encodeURIComponent(_0x2f74b0)),{'domain':_0x1b97f6(0x227)});return _0x302d81[_0x1b97f6(0x186)];}export async function deleteRuntimeSchedule(_0x880ac3,_0x4ac978){const _0x222b7d=a108_0x74666c,_0x3a6ed6=await apiRequest(runtimeSchedulePath(_0x880ac3,'/'+encodeURIComponent(_0x4ac978)),{'domain':_0x222b7d(0x227),'method':_0x222b7d(0x18b)});return _0x3a6ed6[_0x222b7d(0x186)];}export async function runRuntimeSchedule(_0x489083,_0x28214a){const _0x537da4=a108_0x74666c,_0x1d5a24=await apiRequest(runtimeSchedulePath(_0x489083,'/'+encodeURIComponent(_0x28214a)+_0x537da4(0x1e7)),{'domain':_0x537da4(0x227),'method':_0x537da4(0x204)});return _0x1d5a24[_0x537da4(0x186)];}export async function listDatasets(_0x486abe,_0x2030f6){const _0x17e65c=a108_0x74666c,_0x13c412=await sdkRequest(_0x486abe,_0x24eb97=>_0x24eb97[_0x17e65c(0x22b)][_0x17e65c(0x178)]({..._0x2030f6?.[_0x17e65c(0x1ef)]&&{'code':_0x2030f6['code']},..._0x2030f6?.[_0x17e65c(0x1fa)]&&{'name':_0x2030f6[_0x17e65c(0x1fa)]},..._0x2030f6?.[_0x17e65c(0x1c0)]&&{'tableName':_0x2030f6[_0x17e65c(0x1c0)]}}));return extractList(_0x13c412);}export async function getDatasetDetail(_0x5de566){const _0x181479=a108_0x74666c;return sdkRequest(undefined,_0x46be52=>_0x46be52[_0x181479(0x22b)]['getDrivenData']({'code':_0x5de566}));}function importSdkRequest(_0x265c5b,_0x38fa60,_0xdb7af){return sdkRequest(_0x265c5b,_0x14e6e9=>{const _0x4eff0a=a108_0x137d,_0x3a97a1=_0x14e6e9['getModel'](_0x4eff0a(0x212)+_0x38fa60);if(!(_0x3a97a1 instanceof ClientAkModel))throw CliErrors[_0x4eff0a(0x1c8)](_0x4eff0a(0x1a3));return _0xdb7af(_0x3a97a1);});}export async function getDatasetImportContract(_0x39eba2,_0x4774ae){const _0xfedf2c=a108_0x74666c;return importSdkRequest(_0x39eba2,_0x4774ae,_0xb0980d=>_0xb0980d[_0xfedf2c(0x16e)]());}export async function createDatasetImportBatch(_0x3ce0f5,_0x793b65,_0x32fbdb){const _0x523db3=a108_0x74666c;return importSdkRequest(_0x3ce0f5,_0x793b65,_0xcd633c=>_0xcd633c[_0x523db3(0x1ac)](_0x32fbdb));}export async function readDatasetImportRows(_0x1c959d,_0x23b2da,_0xf0a175){const _0x189252=a108_0x74666c,_0x13b812=await importSdkRequest(_0x1c959d,_0x23b2da,_0x468977=>_0x468977[_0x189252(0x23e)]({'ids':_0xf0a175}));if(!_0x13b812||!Array[_0x189252(0x1de)](_0x13b812['items']))throw CliErrors[_0x189252(0x1bb)](_0x189252(0x1ee));return _0x13b812['items'];}export async function readDatasetImportTaskRows(_0x5ab382,_0x15113c,_0x26ae2a){const _0x41e077=a108_0x74666c,_0x3dc30d=await importSdkRequest(_0x5ab382,_0x15113c,_0x418e59=>_0x418e59[_0x41e077(0x23e)]({'taskId':_0x26ae2a}));if(!_0x3dc30d||!Array[_0x41e077(0x1de)](_0x3dc30d[_0x41e077(0x18d)]))throw CliErrors[_0x41e077(0x1bb)](_0x41e077(0x1ab));return _0x3dc30d[_0x41e077(0x18d)];}export async function uploadDatasetImportImage(_0x13094c,_0x25724a,_0x1471b7,_0x2ae574){const _0x2b6926=a108_0x74666c;return importSdkRequest(_0x13094c,_0x25724a,_0x16ba68=>_0x16ba68['importImage']({'importId':_0x1471b7,'contentHash':_0x2ae574[_0x2b6926(0x1a8)],'file':new Blob([new Uint8Array(_0x2ae574[_0x2b6926(0x19c)])],{'type':_0x2ae574[_0x2b6926(0x1c6)]}),'fileName':_0x2b6926(0x22d)}));}export async function readDatasetImportImage(_0x325847,_0x52421e,_0x2844e7,_0x5d995c){const _0x266d71=a108_0x74666c;return importSdkRequest(_0x325847,_0x52421e,_0x4050f3=>_0x4050f3[_0x266d71(0x222)]({'importId':_0x2844e7,'contentHash':_0x5d995c[_0x266d71(0x1a8)],'type':_0x5d995c['type'],'size':_0x5d995c[_0x266d71(0x1a2)]}));}export async function getDatasetSdkUsageDoc(_0x2abf7c,_0x83c4d4){const _0x899d3=a108_0x74666c,_0x47c094=await toolboxRequest(_0x899d3(0x1ff),{'datasetCode':_0x2abf7c,'appCode':_0x83c4d4});return typeof _0x47c094?.[_0x899d3(0x196)]===_0x899d3(0x229)?_0x47c094[_0x899d3(0x196)]:'';}export async function uploadRuntimeFile(_0x4b5559,_0x2c430a){const _0xe4314e=a108_0x74666c,_0x581c4e=await readFile(_0x2c430a);return sdkRequest(_0x4b5559,_0x29cdbf=>_0x29cdbf['services'][_0xe4314e(0x18a)][_0xe4314e(0x1c3)]({'file':new Blob([new Uint8Array(_0x581c4e)]),'fileName':basename(_0x2c430a)}));}export async function queryRuntimeFileUrl(_0x3491de,_0x16d18b={}){const _0x2087ea=a108_0x74666c;return sdkRequest(undefined,_0x37c5ad=>_0x37c5ad[_0x2087ea(0x223)]['file'][_0x2087ea(0x19d)]({'filePath':_0x3491de,..._0x16d18b}));}export async function recognizeRuntimeOcr(_0x375f9,_0x50f3f0){const _0x2659e6=a108_0x74666c;return sdkRequest(_0x375f9,_0x3a105a=>_0x3a105a[_0x2659e6(0x223)]['ocr']['recognize'](_0x50f3f0));}export async function getRuntimeAppConfigByKey(_0x36d6cd,_0x2a1335){const _0x244af8=a108_0x74666c,_0x3db8ff=await sdkRequest(_0x36d6cd,_0x559075=>_0x559075[_0x244af8(0x1e6)][_0x244af8(0x1e0)](_0x2a1335));if(typeof _0x3db8ff!==_0x244af8(0x229))throw CliErrors[_0x244af8(0x1c8)]('Invalid\x20app\x20config\x20value:\x20key='+_0x2a1335);return _0x3db8ff;}export async function listNotificationChannelConfigs(_0x582ab1,_0xb3e72b){const _0x1159fd=a108_0x74666c,_0x1e8d92=await sdkRequest(_0x582ab1,_0x2bd74a=>_0x2bd74a['app'][_0x1159fd(0x1bf)](_0xb3e72b));if(!Array[_0x1159fd(0x1de)](_0x1e8d92))throw CliErrors['apiError'](_0x1159fd(0x215),_0x1159fd(0x208));return _0x1e8d92;}export async function listRuntimeArtifacts(_0x38926d,_0x61fb97){const _0x49d0e2=a108_0x74666c,_0x1c0517=await sdkRequest(_0x38926d,_0x56fd56=>_0x56fd56[_0x49d0e2(0x240)]['list'](_0x61fb97));return Array[_0x49d0e2(0x1de)](_0x1c0517)?_0x1c0517:[];}export async function getRuntimeArtifact(_0x8fc04c,_0x5d856d){const _0x489699=a108_0x74666c,_0x51605d=await sdkRequest(_0x5d856d,_0xe480e9=>_0xe480e9[_0x489699(0x240)]['get'](_0x8fc04c));if(!_0x51605d)throw CliErrors[_0x489699(0x1c8)]('Artifact\x20not\x20found:\x20id='+_0x8fc04c);return _0x51605d;}export async function createRuntimeArtifact(_0x14e78a,_0x1fcc1b){return sdkRequest(_0x14e78a,_0x567b83=>_0x567b83['artifact']['create'](_0x1fcc1b));}export async function updateRuntimeArtifact(_0xf140c2,_0x125bf9,_0x386cd5){const _0x4413b3=a108_0x74666c;return sdkRequest(_0x125bf9,_0x54b990=>_0x54b990[_0x4413b3(0x240)]['update'](_0xf140c2,_0x386cd5));}export async function listPersonalBffs(_0x63549){const _0x5a8aa6=a108_0x74666c,_0x224eb5=await sdkRequest(_0x63549,_0x2f1206=>_0x2f1206[_0x5a8aa6(0x172)][_0x5a8aa6(0x1f2)][_0x5a8aa6(0x178)]());return Array['isArray'](_0x224eb5)?_0x224eb5:[];}export async function getPersonalBff(_0x56961d,_0x353e08){const _0x7e540e=a108_0x74666c,_0x793fcb=await sdkRequest(_0x353e08,_0x1f3310=>_0x1f3310[_0x7e540e(0x172)]['bff']['get'](_0x56961d));if(!_0x793fcb)throw CliErrors[_0x7e540e(0x1c8)]('Personal\x20Backend\x20Function\x20not\x20found:\x20id='+_0x56961d);return _0x793fcb;}export async function createPersonalBff(_0x13def0,_0x505c9f){const _0x213b98=a108_0x74666c;return sdkRequest(_0x13def0,_0x230b01=>_0x230b01[_0x213b98(0x172)][_0x213b98(0x1f2)]['create'](_0x505c9f));}export async function updatePersonalBff(_0x3aff32,_0x496568,_0x18bb62){const _0x226019=a108_0x74666c;return sdkRequest(_0x496568,_0x5a2ae3=>_0x5a2ae3[_0x226019(0x172)][_0x226019(0x1f2)][_0x226019(0x1a5)](_0x3aff32,_0x18bb62));}export async function executePersonalBff(_0x21e772,_0x56aed0,_0x544ceb){const _0x51045a=a108_0x74666c;return sdkRequest(_0x56aed0,_0x4a88b4=>_0x4a88b4[_0x51045a(0x172)]['bff'][_0x51045a(0x1b5)]({'scriptId':_0x21e772,'params':_0x544ceb}));}export async function listPersonalKnowledgeBaseItems(_0x574905,_0x2044b3){return listPersonalKnowledge({'appCode':_0x574905,'accessKey':_activeAK,'signal':_0x2044b3});}export async function getPersonalKnowledgeBaseItem(_0x492dbd,_0x239ac2,_0x16d603){return getPersonalKnowledge({'appCode':_0x239ac2,'accessKey':_activeAK,'signal':_0x16d603},_0x492dbd);}export async function createPersonalKnowledgeBaseItem(_0x3f0eb4,_0x138eff,_0x5a88d0){return savePersonalKnowledge({'appCode':_0x3f0eb4,'accessKey':_activeAK,'signal':_0x5a88d0},_0x138eff);}export async function updatePersonalKnowledgeBaseItem(_0x59d165,_0x4c622c,_0x26e124,_0x105e1a){return savePersonalKnowledge({'appCode':_0x4c622c,'accessKey':_activeAK,'signal':_0x105e1a},_0x26e124,_0x59d165);}export async function getRuntimeSkillByCode(_0x223640,_0xd3aa4c){const _0x49c32b=a108_0x74666c,_0x7ce057=await skillHubJsonRequest(_0x49c32b(0x1f6)+encodeURIComponent(_0x223640)+'/'+encodeURIComponent(_0xd3aa4c),{'allowNotFound':!![]});return _0x7ce057?skillHubRuntimeDetailToRuntimeSkill(_0x7ce057):undefined;}export async function listRuntimeSkills(_0x2de1a6){const _0x2a4fdf=a108_0x74666c,_0x1861d9=await skillHubJsonRequest(_0x2a4fdf(0x168)+encodeURIComponent(_0x2de1a6['appCode'])+_0x2a4fdf(0x233),{'query':{'page':0x0,'size':0xc8}});return normalizeSkillHubRuntimeListResponse(_0x2de1a6['appCode'],_0x1861d9,_0x2de1a6['scope']??_0x2a4fdf(0x1e9),_0x2de1a6[_0x2a4fdf(0x1ef)],_0x2de1a6[_0x2a4fdf(0x210)]);}export async function listPersonalRuntimeSkills(_0x242923){const _0x194610=a108_0x74666c;return(await listRuntimeSkills({'appCode':_0x242923,'scope':_0x194610(0x172)}))[_0x194610(0x172)];}export async function listCompanyRuntimeSkills(_0x15386d){const _0x1050b7=a108_0x74666c;return(await listRuntimeSkills({'appCode':_0x15386d,'scope':_0x1050b7(0x1e2)}))['company'];}export async function listVisibleRuntimeSkills(_0x48c504){const _0x530bd9=a108_0x74666c;return(await listRuntimeSkills({'appCode':_0x48c504,'scope':_0x530bd9(0x1e9)}))[_0x530bd9(0x1d5)];}export async function createPersonalRuntimeSkill(_0x4edcd3,_0x232208,_0x382998={}){const _0x5a2dee=a108_0x74666c;return publishRuntimeSkill(_0x4edcd3,_0x232208,{'visibility':_0x5a2dee(0x1f8),'confirmWarnings':_0x382998[_0x5a2dee(0x179)]});}export async function updatePersonalRuntimeSkill(_0xa219ad,_0x36e8ed,_0xced484,_0xabaf6d={}){const _0x58d7e5=a108_0x74666c;return publishRuntimeSkill(_0x36e8ed,{..._0xced484,'skillCode':_0xced484[_0x58d7e5(0x181)]??_0xa219ad},{'visibility':_0x58d7e5(0x1f8),'confirmWarnings':_0xabaf6d[_0x58d7e5(0x179)]});}export async function publishCompanyRuntimeSkill(_0x5e386b,_0x2e186e,_0xb4ade9={}){const _0x486620=a108_0x74666c;return publishRuntimeSkill(_0x5e386b,_0x2e186e,{'visibility':_0x486620(0x195),'confirmWarnings':_0xb4ade9[_0x486620(0x179)]});}export async function validateRuntimeSkillPublish(_0x5c82cd,_0x5b2e44,_0x5c4409){const _0x765969=a108_0x74666c,_0x2eb12b=buildRuntimeSkillPublishForm(_0x5b2e44,_0x5c4409[_0x765969(0x1ca)]),_0x11c2e3=await skillHubJsonRequest('/api/cli/v1/skills/'+encodeURIComponent(_0x5c82cd)+'/publish/validate',{'method':_0x765969(0x204),'body':_0x2eb12b});return assertJointDiagramAcknowledged(_0x5b2e44[_0x765969(0x236)],_0x11c2e3[_0x765969(0x205)],_0x765969(0x1c8)),{'valid':_0x11c2e3[_0x765969(0x1a7)]===!![],'errors':Array['isArray'](_0x11c2e3[_0x765969(0x1d8)])?_0x11c2e3[_0x765969(0x1d8)]:[],'warnings':Array[_0x765969(0x1de)](_0x11c2e3[_0x765969(0x189)])?_0x11c2e3['warnings']:[],'resolvedSlug':_0x11c2e3[_0x765969(0x1c4)],'resolvedVersion':_0x11c2e3[_0x765969(0x22e)],'diagramValidated':_0x11c2e3[_0x765969(0x205)]===!![]};}export async function validateRuntimeSkillVersionDiagram(_0x48243d,_0x5d3b13,_0x289b98,_0x4bc260,_0x4bdb27){const _0x31aedd=a108_0x74666c;return skillHubJsonRequest(runtimeSkillVersionDiagramPath(_0x48243d,_0x5d3b13,_0x289b98,'/validate'),{'method':_0x31aedd(0x204),'query':{'scope':_0x4bc260},'headers':{'Content-Type':_0x31aedd(0x173)},'body':JSON[_0x31aedd(0x206)](_0x4bdb27)});}export async function putRuntimeSkillVersionDiagram(_0x1f7993,_0x29aaa0,_0x5da022,_0x20bbd4,_0x2c5b78){const _0x449c1e=a108_0x74666c;return skillHubJsonRequest(runtimeSkillVersionDiagramPath(_0x1f7993,_0x29aaa0,_0x5da022),{'method':_0x449c1e(0x214),'query':{'scope':_0x20bbd4},'headers':{'Content-Type':_0x449c1e(0x173)},'body':JSON[_0x449c1e(0x206)](_0x2c5b78)});}export async function getRuntimeSkillVersionDiagram(_0x166ef4,_0x18a41f,_0x49127d,_0x28ab8e){const _0x2d4ff9=a108_0x74666c,_0x5c8771=await skillHubJsonRequest(runtimeSkillVersionDiagramPath(_0x166ef4,_0x18a41f,_0x49127d),{'query':{'scope':_0x28ab8e}});if(typeof _0x5c8771[_0x2d4ff9(0x1c5)]!=='boolean')throw CliErrors[_0x2d4ff9(0x1bb)]('Invalid\x20Skill\x20diagram\x20response:\x20missing\x20found\x20state.');const _0x39bf63=_0x5c8771[_0x2d4ff9(0x1d4)];if(typeof _0x39bf63!==_0x2d4ff9(0x229)||!/^sha256:[0-9a-f]{64}$/[_0x2d4ff9(0x219)](_0x39bf63))throw CliErrors['apiError'](_0x2d4ff9(0x190),'SkillHub\x20must\x20return\x20the\x20exact\x20SkillVersion\x20fingerprint\x20even\x20when\x20found=false.');const _0x4de16e=_0x5c8771['diagramRevision'];if(_0x5c8771[_0x2d4ff9(0x1c5)]&&(!Number[_0x2d4ff9(0x1bd)](_0x4de16e)||Number(_0x4de16e)<0x1))throw CliErrors[_0x2d4ff9(0x1bb)](_0x2d4ff9(0x23a));if(!_0x5c8771[_0x2d4ff9(0x1c5)]&&_0x4de16e!==undefined&&_0x4de16e!==null)throw CliErrors[_0x2d4ff9(0x1bb)](_0x2d4ff9(0x1cb));const _0xff0373=_0x5c8771['found']?Number(_0x4de16e):null;return{..._0x5c8771,'sourceFingerprint':_0x39bf63,'diagramRevision':_0xff0373,'expectedDiagramRevision':_0xff0373??0x0};}export async function downloadRuntimeSkillPackage(_0x48663a,_0x24d0be,_0x28a5e2,_0xd9d21c){const _0x18ef3b=a108_0x74666c;void _0x48663a;const _0x54d316=_0xd9d21c?_0x18ef3b(0x1f0)+encodeURIComponent(_0x28a5e2)+'/'+encodeURIComponent(_0x24d0be)+'/versions/'+encodeURIComponent(_0xd9d21c)+'/download':_0x18ef3b(0x1f0)+encodeURIComponent(_0x28a5e2)+'/'+encodeURIComponent(_0x24d0be)+_0x18ef3b(0x22c);return skillHubBinaryRequest(_0x54d316);}async function publishRuntimeSkill(_0x15db62,_0xc21404,_0x4fd906){const _0x26beb6=a108_0x74666c,_0x69613d=buildRuntimeSkillPublishForm(_0xc21404,_0x4fd906[_0x26beb6(0x1ca)]),_0x21b8ba=await skillHubJsonRequest(_0x26beb6(0x1f0)+encodeURIComponent(_0x15db62)+_0x26beb6(0x194),{'method':_0x26beb6(0x204),'query':{'confirmWarnings':_0x4fd906[_0x26beb6(0x179)]===!![]?!![]:undefined},'body':_0x69613d});return assertJointDiagramAcknowledged(_0xc21404[_0x26beb6(0x236)],_0x21b8ba[_0x26beb6(0x244)],_0x26beb6(0x242)),{'appCode':_0x21b8ba[_0x26beb6(0x1e5)]??_0x15db62,'skillCode':_0x21b8ba['slug']??_0xc21404[_0x26beb6(0x181)]??'','skillName':_0xc21404['skillName']??_0x21b8ba[_0x26beb6(0x241)]??_0xc21404['skillCode'],'description':_0xc21404['description'],'scope':skillHubVisibilityToScope(_0x21b8ba[_0x26beb6(0x1ca)]??_0x4fd906['visibility'])??'personal','version':_0x21b8ba[_0x26beb6(0x16d)]??_0xc21404['version'],'tags':_0xc21404[_0x26beb6(0x199)],'content':_0xc21404[_0x26beb6(0x218)],'diagramBound':_0x21b8ba[_0x26beb6(0x244)]===!![]};}function assertJointDiagramAcknowledged(_0x1ec209,_0x96c13d,_0x310b73){const _0x2083ec=a108_0x74666c;if(!_0x1ec209||_0x96c13d===!![])return;throw CliErrors[_0x2083ec(0x1bb)](_0x2083ec(0x1d2)+_0x310b73+'.',_0x2083ec(0x23c));}function buildRuntimeSkillPublishForm(_0x2fa407,_0x442dde){const _0x2af8dc=a108_0x74666c,_0x84bdba=new FormData();return _0x84bdba[_0x2af8dc(0x1dd)](_0x2af8dc(0x18a),runtimeSkillPackageFile(_0x2fa407)),_0x2fa407[_0x2af8dc(0x176)]?.[_0x2af8dc(0x1ad)]()&&_0x84bdba[_0x2af8dc(0x1dd)]('displayName',_0x2fa407['skillName'][_0x2af8dc(0x1ad)]()),_0x84bdba[_0x2af8dc(0x1dd)](_0x2af8dc(0x1ca),_0x442dde),_0x2fa407[_0x2af8dc(0x236)]&&_0x84bdba[_0x2af8dc(0x1dd)]('diagram',new Blob([JSON['stringify'](_0x2fa407[_0x2af8dc(0x236)])],{'type':_0x2af8dc(0x173)})),_0x84bdba;}function runtimeSkillVersionDiagramPath(_0x27ed96,_0x6d1a2f,_0x176c73,_0x59d93c=''){const _0x277d01=a108_0x74666c;return _0x277d01(0x1f0)+encodeURIComponent(_0x27ed96)+'/'+encodeURIComponent(_0x6d1a2f)+_0x277d01(0x1b4)+encodeURIComponent(_0x176c73)+_0x277d01(0x19a)+_0x59d93c;}function runtimeSkillPackageFile(_0xea4b02){const _0x1a6c3e=a108_0x74666c;if(!_0xea4b02[_0x1a6c3e(0x1a4)])throw CliErrors[_0x1a6c3e(0x1c8)]('Missing\x20Skill\x20package\x20payload.');const _0x497e99=Buffer['from'](_0xea4b02[_0x1a6c3e(0x1a4)],_0x1a6c3e(0x235)),_0x3560d0=new Blob([_0x497e99],{'type':_0x1a6c3e(0x18f)}),_0xb8eb8d=(_0xea4b02[_0x1a6c3e(0x181)]||_0x1a6c3e(0x171))+'.zip';if(typeof File!==_0x1a6c3e(0x245))return new File([_0x3560d0],_0xb8eb8d,{'type':_0x1a6c3e(0x18f)});return _0x3560d0;}function normalizeSkillHubRuntimeListResponse(_0x34d0d5,_0x529066,_0x15703f,_0x6dbe32,_0x171465=![]){const _0x51b85d=a108_0x74666c,_0x2f08a5=Array[_0x51b85d(0x1de)](_0x529066)?_0x529066:Array[_0x51b85d(0x1de)](_0x529066?.[_0x51b85d(0x18d)])?_0x529066[_0x51b85d(0x18d)]:[],_0x20dd16=_0x6dbe32?.[_0x51b85d(0x1ad)](),_0x290247=_0x2f08a5[_0x51b85d(0x1fd)](_0x5450ea=>!_0x20dd16||_0x5450ea[_0x51b85d(0x241)]===_0x20dd16)[_0x51b85d(0x1fd)](_0x2a7367=>!_0x171465||_0x2a7367[_0x51b85d(0x1fb)]?.[_0x51b85d(0x170)]===_0x51b85d(0x17e)&&Boolean(_0x2a7367[_0x51b85d(0x1fb)]['version']?.[_0x51b85d(0x1ad)]()))[_0x51b85d(0x217)](skillHubRuntimeItemToRuntimeSkill)['filter'](_0x257288=>Boolean(_0x257288)),_0x545800=_0x290247[_0x51b85d(0x1fd)](_0x55b179=>_0x55b179[_0x51b85d(0x17c)]===_0x51b85d(0x172)),_0xb37e58=_0x290247[_0x51b85d(0x1fd)](_0x2b3dc6=>_0x2b3dc6[_0x51b85d(0x17c)]===_0x51b85d(0x1e2));return{'appCode':_0x34d0d5,'personal':_0x15703f==='company'?[]:_0x545800,'company':_0x15703f===_0x51b85d(0x172)?[]:_0xb37e58,'effective':buildEffectiveRuntimeSkills(_0x545800,_0xb37e58,_0x15703f)};}function skillHubRuntimeItemToRuntimeSkill(_0x48f1e5){const _0x304050=a108_0x74666c,_0x48f254=_0x48f1e5[_0x304050(0x241)]?.[_0x304050(0x1ad)](),_0x2ecc40=skillHubVisibilityToScope(_0x48f1e5[_0x304050(0x1ca)]);if(!_0x48f254||!_0x2ecc40)return undefined;return{'id':_0x48f1e5['id'],'appCode':_0x48f1e5[_0x304050(0x1e5)],'skillCode':_0x48f254,'skillName':_0x48f1e5['displayName']??_0x48f254,'description':_0x48f1e5['summary'],'example':_0x48f1e5[_0x304050(0x1eb)],'scope':_0x2ecc40,'version':skillHubRuntimeItemVersion(_0x48f1e5),'status':_0x48f1e5['status']};}function skillHubRuntimeDetailToRuntimeSkill(_0x275e64){const _0x15a8fa=a108_0x74666c,_0x219bde=_0x275e64[_0x15a8fa(0x241)]?.[_0x15a8fa(0x1ad)]();if(!_0x219bde)return undefined;return{'id':_0x275e64['id'],'appCode':_0x275e64[_0x15a8fa(0x1e5)],'skillCode':_0x219bde,'skillName':_0x275e64[_0x15a8fa(0x18e)]??_0x219bde,'description':_0x275e64[_0x15a8fa(0x1fc)],'example':_0x275e64[_0x15a8fa(0x1eb)],'scope':skillHubVisibilityToScope(_0x275e64[_0x15a8fa(0x1ca)])??_0x275e64[_0x15a8fa(0x1ca)]?.[_0x15a8fa(0x1b9)](),'version':skillHubRuntimeItemVersion(_0x275e64),'status':_0x275e64[_0x15a8fa(0x170)]};}function skillHubVisibilityToScope(_0x224c82){const _0x1e3db1=a108_0x74666c;if(_0x224c82===_0x1e3db1(0x1f8))return'personal';if(_0x224c82===_0x1e3db1(0x195))return _0x1e3db1(0x1e2);return undefined;}function skillHubRuntimeItemVersion(_0x1ac8d7){const _0x3e6fe7=a108_0x74666c;return _0x1ac8d7['publishedVersion']?.[_0x3e6fe7(0x16d)]??_0x1ac8d7[_0x3e6fe7(0x1cf)]?.['version']??_0x1ac8d7['ownerPreviewVersion']?.[_0x3e6fe7(0x16d)];}function buildEffectiveRuntimeSkills(_0x1c5325,_0x74537c,_0x32e893){const _0x19cba6=a108_0x74666c;if(_0x32e893===_0x19cba6(0x172))return _0x1c5325;if(_0x32e893===_0x19cba6(0x1e2))return _0x74537c;const _0x528f45=new Map();for(const _0x4e389f of _0x74537c){_0x528f45[_0x19cba6(0x1dd)](_0x4e389f['skillCode'],_0x4e389f);}for(const _0x1cfd5d of _0x1c5325){_0x528f45['set'](_0x1cfd5d['skillCode'],_0x1cfd5d);}return Array['from'](_0x528f45[_0x19cba6(0x1b8)]());}function normalizeRuntimeSkillListResponse(_0x5a3883,_0x5afcd7){const _0x3a1875=a108_0x74666c;if(Array[_0x3a1875(0x1de)](_0x5afcd7)){const _0x353305=_0x5afcd7[_0x3a1875(0x1fd)](_0x271730=>_0x271730[_0x3a1875(0x17c)]==='personal'),_0x5ed86e=_0x5afcd7[_0x3a1875(0x1fd)](_0x305967=>_0x305967[_0x3a1875(0x17c)]==='company');return{'appCode':_0x5a3883,'personal':_0x353305,'company':_0x5ed86e,'effective':[..._0x5ed86e,..._0x353305]};}return{'appCode':_0x5afcd7?.['appCode']??_0x5a3883,'personal':Array['isArray'](_0x5afcd7?.[_0x3a1875(0x172)])?_0x5afcd7[_0x3a1875(0x172)]:[],'company':Array['isArray'](_0x5afcd7?.['company'])?_0x5afcd7[_0x3a1875(0x1e2)]:[],'effective':Array[_0x3a1875(0x1de)](_0x5afcd7?.[_0x3a1875(0x1d5)])?_0x5afcd7[_0x3a1875(0x1d5)]:[]};}function normalizeRuntimeRoleUserList(_0xdd70f2,_0x4313fc){const _0x2fd6cf=a108_0x74666c;if(!Array[_0x2fd6cf(0x1de)](_0xdd70f2))throw CliErrors[_0x2fd6cf(0x1bb)](_0x2fd6cf(0x198)+_0x4313fc+_0x2fd6cf(0x1fe));return _0xdd70f2['map']((_0x37ef5f,_0x1a1123)=>{const _0x24f48d=_0x2fd6cf;if(!_0x37ef5f||typeof _0x37ef5f!=='object'||Array[_0x24f48d(0x1de)](_0x37ef5f))throw CliErrors[_0x24f48d(0x1bb)]('Invalid\x20runtime\x20role\x20members\x20response:\x20'+_0x4313fc+'['+_0x1a1123+_0x24f48d(0x1f7));const _0x3b35a2=_0x37ef5f,_0x502aba=normalizeRuntimeUserId(_0x3b35a2[_0x24f48d(0x177)]);if(_0x502aba===undefined)throw CliErrors[_0x24f48d(0x1bb)](_0x24f48d(0x198)+_0x4313fc+'['+_0x1a1123+_0x24f48d(0x17b));return{..._0x3b35a2,'userId':_0x502aba};});}function normalizeRuntimeRoleUsersResponse(_0x29d7cc){return extractList(_0x29d7cc)['map']((_0x26f239,_0x4057aa)=>{const _0x41cb66=a108_0x137d;if(!_0x26f239||typeof _0x26f239!==_0x41cb66(0x20d)||Array[_0x41cb66(0x1de)](_0x26f239))throw CliErrors[_0x41cb66(0x1bb)](_0x41cb66(0x1f5)+_0x4057aa+']\x20must\x20be\x20an\x20object.');const _0x14991=_0x26f239;return{..._0x14991,'userList':normalizeRuntimeRoleUserList(_0x14991['userList'],_0x41cb66(0x183)+_0x4057aa+_0x41cb66(0x23d)),..._0x14991[_0x41cb66(0x1ba)]===undefined?{}:{'applyUserList':normalizeRuntimeRoleUserList(_0x14991[_0x41cb66(0x1ba)],_0x41cb66(0x183)+_0x4057aa+_0x41cb66(0x1e8))}};});}export async function listRuntimeAppRoles(_0x2af56e,_0x9b1505={}){const _0x5f4820=a108_0x74666c,_0x551805=_0x9b1505[_0x5f4820(0x184)]??0x1,_0x2e4534=Math['min'](Math['max'](_0x9b1505[_0x5f4820(0x1f1)]??0x64,0x1),0x64),_0x458a0c=await sdkRequest(_0x2af56e,_0x300421=>_0x300421[_0x5f4820(0x20c)][_0x5f4820(0x180)]({..._0x9b1505['roleName']?{'roleName':_0x9b1505[_0x5f4820(0x1b1)]}:{},'currentPage':_0x551805,'pageSize':_0x2e4534}));return{'items':extractList(_0x458a0c),'paging':extractPaging(_0x458a0c)};}export async function createRuntimeAppRole(_0x38b275){const _0x4471d3=a108_0x74666c;return sdkRequest(_0x38b275[_0x4471d3(0x193)],_0x4693c7=>_0x4693c7[_0x4471d3(0x20c)]['createRole']({'roleType':'CUSTOM',..._0x38b275}));}export async function updateRuntimeAppRole(_0x26274d){const _0x1b8757=a108_0x74666c;return sdkRequest(_0x26274d['appCode'],_0x4df901=>_0x4df901[_0x1b8757(0x20c)][_0x1b8757(0x19b)](_0x26274d));}export async function deleteRuntimeAppRole(_0x58f1b2){const _0x2b5968=a108_0x74666c;return sdkRequest(undefined,_0x42a247=>_0x42a247[_0x2b5968(0x20c)][_0x2b5968(0x230)](_0x58f1b2));}export async function listRuntimeRoleUsers(_0x539453){const _0x38eafc=await sdkRequest(_0x539453,_0x487aae=>_0x487aae['permit']['getRoleUserList']());return normalizeRuntimeRoleUsersResponse(_0x38eafc);}export async function updateRuntimeRoleUsers(_0x305634,_0x4a6bdc){const _0x49d3d7=a108_0x74666c;return sdkRequest(_0x305634,_0x1d97c1=>_0x1d97c1[_0x49d3d7(0x20c)][_0x49d3d7(0x1d6)]({'roleList':_0x4a6bdc}));}export async function listRuntimeAppUsers(_0xb4a87b){const _0x1eb81b=a108_0x74666c,_0x22576d=await sdkRequest(_0xb4a87b,_0xef7614=>_0xef7614['permit'][_0x1eb81b(0x17d)]());return extractList(_0x22576d);}export async function listRuntimePermitRoles(_0x362eb2,_0x52daa6={}){const _0xc78fcb=a108_0x74666c,_0x108939=await sdkRequest(_0x362eb2,_0x1b640b=>_0x1b640b[_0xc78fcb(0x20c)][_0xc78fcb(0x1d9)](_0x52daa6));return extractList(_0x108939);}export async function getRuntimePagePermit(_0x18a6ff){const _0x26301e=a108_0x74666c;return sdkRequest(undefined,_0x351be5=>_0x351be5[_0x26301e(0x20c)]['getPagePermit'](_0x18a6ff));}export async function saveRuntimePagePermit(_0x10e376){const _0x561fdd=a108_0x74666c;return sdkRequest(_0x10e376[_0x561fdd(0x193)],_0x50cf04=>_0x50cf04['permit'][_0x561fdd(0x1a9)](_0x10e376));}export async function getRuntimeRoleMenuResources(_0x3ad781,_0x2b3028){const _0x34ab5b=a108_0x74666c,_0x2cab5e=await sdkRequest(_0x3ad781,_0x38218b=>_0x38218b[_0x34ab5b(0x20c)][_0x34ab5b(0x1ae)]({'roleId':_0x2b3028}));return extractList(_0x2cab5e);}export async function listRuntimeMenuRolePermits(_0x33b1c8){const _0x558c06=a108_0x74666c,_0x62927c=await sdkRequest(_0x33b1c8,_0x52cf91=>_0x52cf91[_0x558c06(0x20c)]['getMenuPermitList']());return Array[_0x558c06(0x1de)](_0x62927c?.[_0x558c06(0x232)])?_0x62927c[_0x558c06(0x232)]:[];}export async function saveRuntimeMenuRolePermits(_0x355baf,_0x471260){const _0x5975c3=a108_0x74666c;return sdkRequest(_0x355baf,_0x44116=>_0x44116[_0x5975c3(0x20c)][_0x5975c3(0x22f)]({'permitList':_0x471260}));}export async function listRuntimeDatasetPermits(_0xd26dd9,_0x5abf0f){const _0x4e84ab=a108_0x74666c,_0x305550=await sdkRequest(_0xd26dd9,_0x24f4ac=>_0x24f4ac[_0x4e84ab(0x20c)]['getDatasetPermitList'](_0x5abf0f));return Array['isArray'](_0x305550?.[_0x4e84ab(0x232)])?_0x305550[_0x4e84ab(0x232)]:[];}export async function listRuntimeDatasetRolePermits(_0x23d214){const _0xc789ec=a108_0x74666c,_0x3ebf11=await sdkRequest(_0x23d214,_0x11dd30=>_0x11dd30['permit'][_0xc789ec(0x1e3)]());return Array[_0xc789ec(0x1de)](_0x3ebf11?.['permitList'])?_0x3ebf11[_0xc789ec(0x232)]:[];}export async function saveRuntimeDatasetRolePermits(_0x2dd9f0,_0x437b2b){const _0x49b102=a108_0x74666c;return sdkRequest(_0x2dd9f0,_0x3f2a78=>_0x3f2a78[_0x49b102(0x20c)]['saveDatasetPermits']({'permitList':_0x437b2b}));}