@lovrabet/lovrabet-cli 2.3.1-beta.1 → 2.3.1-beta.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (185) hide show
  1. package/README.md +53 -1
  2. package/lib/cli.js +1 -1
  3. package/lib/commands/api-doc/index.js +1 -1
  4. package/lib/commands/app/cache.js +1 -1
  5. package/lib/commands/app/definitions.js +1 -1
  6. package/lib/commands/app/eligibility.js +1 -1
  7. package/lib/commands/app/mock-loader.js +1 -1
  8. package/lib/commands/app/remote-source.js +1 -1
  9. package/lib/commands/app/shared.js +1 -1
  10. package/lib/commands/app-config/get.js +1 -1
  11. package/lib/commands/app-config/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.d.ts +2 -0
  23. package/lib/commands/common/flags.js +1 -1
  24. package/lib/commands/common/local-file.js +1 -1
  25. package/lib/commands/config/definitions.js +1 -1
  26. package/lib/commands/config/init.d.ts +3 -1
  27. package/lib/commands/config/init.js +1 -1
  28. package/lib/commands/config/shared.js +1 -1
  29. package/lib/commands/data/index.js +1 -1
  30. package/lib/commands/dataset/detail.js +1 -1
  31. package/lib/commands/dataset/index.js +1 -1
  32. package/lib/commands/dataset/list.js +1 -1
  33. package/lib/commands/dataset/sdk-doc.js +1 -1
  34. package/lib/commands/doctor.js +1 -1
  35. package/lib/commands/file/index.js +1 -1
  36. package/lib/commands/init.js +1 -1
  37. package/lib/commands/kb/index.js +1 -1
  38. package/lib/commands/logs/index.js +1 -1
  39. package/lib/commands/notification/config-list.js +1 -1
  40. package/lib/commands/notification/index.js +1 -1
  41. package/lib/commands/notification/shared.js +1 -1
  42. package/lib/commands/ocr/index.js +1 -1
  43. package/lib/commands/permit/dataset-get.js +1 -1
  44. package/lib/commands/permit/dataset-set.js +1 -1
  45. package/lib/commands/permit/index.js +1 -1
  46. package/lib/commands/permit/page-get.js +1 -1
  47. package/lib/commands/permit/page-set.js +1 -1
  48. package/lib/commands/permit/role-menus-set.js +1 -1
  49. package/lib/commands/permit/role-menus.js +1 -1
  50. package/lib/commands/permit/shared.js +1 -1
  51. package/lib/commands/personal-bff/index.js +1 -1
  52. package/lib/commands/registry.js +1 -1
  53. package/lib/commands/role/create.js +1 -1
  54. package/lib/commands/role/delete.js +1 -1
  55. package/lib/commands/role/detail.js +1 -1
  56. package/lib/commands/role/index.js +1 -1
  57. package/lib/commands/role/list.js +1 -1
  58. package/lib/commands/role/shared.js +1 -1
  59. package/lib/commands/role/update.js +1 -1
  60. package/lib/commands/role/user-add.js +1 -1
  61. package/lib/commands/role/user-remove.js +1 -1
  62. package/lib/commands/schedule/index.js +1 -1
  63. package/lib/commands/schema.js +1 -1
  64. package/lib/commands/service/dynamic.js +1 -1
  65. package/lib/commands/service/function-name-adapter.js +1 -1
  66. package/lib/commands/service/index.js +1 -1
  67. package/lib/commands/service/registry.js +1 -1
  68. package/lib/commands/skill/commands/create.js +1 -1
  69. package/lib/commands/skill/commands/diagram.js +1 -1
  70. package/lib/commands/skill/commands/install.js +1 -1
  71. package/lib/commands/skill/commands/list.js +1 -1
  72. package/lib/commands/skill/commands/push.js +1 -1
  73. package/lib/commands/skill/commands/validate.js +1 -1
  74. package/lib/commands/skill/diagram.js +1 -1
  75. package/lib/commands/skill/flags.js +1 -1
  76. package/lib/commands/skill/index.js +1 -1
  77. package/lib/commands/skill/manifest-helpers.js +1 -1
  78. package/lib/commands/skill/push-execute.js +1 -1
  79. package/lib/commands/skill/push-flow-helpers.js +1 -1
  80. package/lib/commands/skill/push-retarget.js +1 -1
  81. package/lib/commands/skill/scopes.js +1 -1
  82. package/lib/commands/skill/summary.js +1 -1
  83. package/lib/commands/skill/templates.js +1 -1
  84. package/lib/commands/skill/validate.js +1 -1
  85. package/lib/commands/sql/detail.js +1 -1
  86. package/lib/commands/sql/exec.js +1 -1
  87. package/lib/commands/sql/index.js +1 -1
  88. package/lib/commands/update.js +1 -1
  89. package/lib/commands/user-account/bind.js +1 -1
  90. package/lib/commands/user-account/index.js +1 -1
  91. package/lib/commands/workspace/index.js +1 -1
  92. package/lib/config/domain-config.d.ts +34 -2
  93. package/lib/config/domain-config.js +1 -1
  94. package/lib/config/schema.d.ts +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.d.ts +3 -6
  102. package/lib/constant/domain.js +1 -1
  103. package/lib/constant/env.js +1 -1
  104. package/lib/constant/output.js +1 -1
  105. package/lib/constant/product.d.ts +0 -51
  106. package/lib/constant/product.js +1 -1
  107. package/lib/constant/region.d.ts +3 -5
  108. package/lib/constant/region.js +1 -1
  109. package/lib/constant/risk.js +1 -1
  110. package/lib/constant/url.js +1 -1
  111. package/lib/context.js +1 -1
  112. package/lib/core/api-client.d.ts +16 -0
  113. package/lib/core/api-client.js +1 -1
  114. package/lib/core/db-resolver.js +1 -1
  115. package/lib/core/sdk-client.js +1 -1
  116. package/lib/errors.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.d.ts +0 -2
  133. package/lib/framework/types.js +1 -1
  134. package/lib/generated/build-info.d.ts +4 -4
  135. package/lib/generated/build-info.js +1 -1
  136. package/lib/generated/official-routing.d.ts +59 -0
  137. package/lib/generated/official-routing.js +1 -0
  138. package/lib/generated/routing-contract.d.ts +9 -0
  139. package/lib/generated/routing-contract.js +1 -0
  140. package/lib/help.js +1 -1
  141. package/lib/postinstall.js +1 -1
  142. package/lib/runtime/confirmation.js +1 -1
  143. package/lib/runtime/event.js +1 -1
  144. package/lib/runtime/index.js +1 -1
  145. package/lib/runtime/queue.js +1 -1
  146. package/lib/runtime/resolve.js +1 -1
  147. package/lib/skills/builtin-skill.js +1 -1
  148. package/lib/skills/npx-skills-add.js +1 -1
  149. package/lib/skills/runtime-skill-sync/constants.js +1 -1
  150. package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
  151. package/lib/skills/runtime-skill-sync/hashing.js +1 -1
  152. package/lib/skills/runtime-skill-sync/install-target.js +1 -1
  153. package/lib/skills/runtime-skill-sync/links.js +1 -1
  154. package/lib/skills/runtime-skill-sync/list-local.js +1 -1
  155. package/lib/skills/runtime-skill-sync/local-files.js +1 -1
  156. package/lib/skills/runtime-skill-sync/materialize.js +1 -1
  157. package/lib/skills/runtime-skill-sync/metadata.js +1 -1
  158. package/lib/skills/runtime-skill-sync/paths.js +1 -1
  159. package/lib/skills/runtime-skill-sync/push.js +1 -1
  160. package/lib/skills/runtime-skill-sync/scopes.js +1 -1
  161. package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
  162. package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
  163. package/lib/skills/runtime-skill-sync.js +1 -1
  164. package/lib/skills/skill-presence.js +1 -1
  165. package/lib/utils/access-key-redaction.js +1 -1
  166. package/lib/utils/apply-jq-filter.js +1 -1
  167. package/lib/utils/cli-version-check.js +1 -1
  168. package/lib/utils/cli-version-policy.js +1 -1
  169. package/lib/utils/logger.js +1 -1
  170. package/lib/utils/lossless-json.js +1 -1
  171. package/lib/utils/params.js +1 -1
  172. package/lib/utils/platform.js +1 -1
  173. package/lib/utils/update-notice.js +1 -1
  174. package/lib/utils/version.js +1 -1
  175. package/lib/utils/write-cli-side-channel.js +1 -1
  176. package/package.json +2 -1
  177. package/skills/lovrabet/SKILL.md +4 -4
  178. package/skills/lovrabet/guides/troubleshooting.md +3 -5
  179. package/skills/lovrabet/references/lovrabet-config-commands.md +35 -13
  180. package/skills/lovrabet/references/lovrabet-config.md +8 -21
  181. package/skills/lovrabet/references/lovrabet-doctor.md +0 -2
  182. package/skills/lovrabet/references/lovrabet-kb-workflow.md +1 -3
  183. package/skills/lovrabet.manifest.json +3 -3
  184. package/lib/core/kb-search-client.d.ts +0 -30
  185. package/lib/core/kb-search-client.js +0 -1
@@ -1 +1 @@
1
- const a92_0x3ce43a=a92_0x123f;function a92_0x4087(){const _0x304f81=['JSON\x20params\x20for\x20execute\x20commands','help','env','clear','Name\x20filter','Environment','dry-run','type','<name>','yes','79740NhffgO','params','Show\x20help','cliBinName','global','473620cfwqaZ','Preview\x20operation\x20without\x20executing','4RcHCju','984NaYNky','301445OeIZqJ','Verbose\x20output','cliDisplayName','Skip\x20confirmation\x20for\x20high-risk\x20writes','boolean','904112lxXnrh','7LOPjFz','114636xDwJMP','sqlcode','json\x20|\x20pretty\x20|\x20compress','SQL\x20query\x20code','nonInteractive','name','Clear\x20output','1568598sjkrzk','<expr>','Record\x20ID','Use\x20global\x20config\x20scope','verbose','68fvnmSI','Select\x20app\x20profile\x20by\x20name','33902ilZaqc','670dmjJYq','fromEntries','Force\x20non-interactive\x20mode\x20(CI)','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20implies\x20--format\x20json\x20when\x20current\x20format\x20is\x20pretty)','string','format','<code>','non-interactive','app'];a92_0x4087=function(){return _0x304f81;};return a92_0x4087();}(function(_0x5f4fef,_0x592b6e){const _0xba7327=a92_0x123f,_0x21b009=_0x5f4fef();while(!![]){try{const _0x1ca90b=-parseInt(_0xba7327(0x12e))/0x1*(-parseInt(_0xba7327(0x12c))/0x2)+parseInt(_0xba7327(0x135))/0x3*(parseInt(_0xba7327(0x10f))/0x4)+-parseInt(_0xba7327(0x12a))/0x5+parseInt(_0xba7327(0x10a))/0x6*(parseInt(_0xba7327(0x134))/0x7)+-parseInt(_0xba7327(0x133))/0x8+-parseInt(_0xba7327(0x125))/0x9*(parseInt(_0xba7327(0x112))/0xa)+-parseInt(_0xba7327(0x111))/0xb*(parseInt(_0xba7327(0x12d))/0xc);if(_0x1ca90b===_0x592b6e)break;else _0x21b009['push'](_0x21b009['shift']());}catch(_0x4475c7){_0x21b009['push'](_0x21b009['shift']());}}}(a92_0x4087,0x70445));import{PRODUCT_CONFIG}from'../constant/product.js';import{LOVRABET_NPM_PACKAGE_NAME}from'../constant/distribution.js';function a92_0x123f(_0x515d83,_0x1e8450){_0x515d83=_0x515d83-0x109;const _0x408719=a92_0x4087();let _0x123f4d=_0x408719[_0x515d83];return _0x123f4d;}export const CLI_BIN_NAME=PRODUCT_CONFIG[a92_0x3ce43a(0x128)];export const CLI_DISPLAY_NAME=PRODUCT_CONFIG[a92_0x3ce43a(0x130)];export const NPM_PACKAGE_NAME=LOVRABET_NPM_PACKAGE_NAME;export const GLOBAL_FLAGS=[{'name':'appcode','meowKey':'appcode','type':a92_0x3ce43a(0x116),'description':'Override\x20appcode','hint':a92_0x3ce43a(0x118)},{'name':a92_0x3ce43a(0x11a),'meowKey':a92_0x3ce43a(0x11a),'type':a92_0x3ce43a(0x116),'description':a92_0x3ce43a(0x110),'hint':a92_0x3ce43a(0x123)},{'name':a92_0x3ce43a(0x11d),'meowKey':a92_0x3ce43a(0x11d),'type':'string','description':a92_0x3ce43a(0x120),'hint':'production\x20|\x20development\x20|\x20daily'},{'name':a92_0x3ce43a(0x117),'meowKey':'format','type':a92_0x3ce43a(0x116),'description':'Output\x20format','hint':a92_0x3ce43a(0x137)},{'name':'jq','meowKey':'jq','type':'string','description':a92_0x3ce43a(0x115),'hint':a92_0x3ce43a(0x10b)},{'name':'dry-run','meowKey':'dryRun','type':a92_0x3ce43a(0x132),'description':a92_0x3ce43a(0x12b)},{'name':'yes','meowKey':a92_0x3ce43a(0x124),'type':a92_0x3ce43a(0x132),'description':a92_0x3ce43a(0x131)},{'name':a92_0x3ce43a(0x119),'meowKey':a92_0x3ce43a(0x139),'type':a92_0x3ce43a(0x132),'description':a92_0x3ce43a(0x114)},{'name':a92_0x3ce43a(0x129),'meowKey':'global','type':a92_0x3ce43a(0x132),'description':a92_0x3ce43a(0x10d)},{'name':'ci','meowKey':'ci','type':'boolean','description':'Alias\x20for\x20--non-interactive','hidden':!![]},{'name':a92_0x3ce43a(0x11c),'meowKey':a92_0x3ce43a(0x11c),'type':a92_0x3ce43a(0x132),'description':a92_0x3ce43a(0x127)},{'name':'id','meowKey':'id','type':a92_0x3ce43a(0x116),'description':a92_0x3ce43a(0x10c),'hidden':!![]},{'name':a92_0x3ce43a(0x13a),'meowKey':a92_0x3ce43a(0x13a),'type':'string','description':a92_0x3ce43a(0x11f),'hidden':!![]},{'name':a92_0x3ce43a(0x136),'meowKey':'sqlcode','type':a92_0x3ce43a(0x116),'description':a92_0x3ce43a(0x138),'hidden':!![]},{'name':a92_0x3ce43a(0x126),'meowKey':a92_0x3ce43a(0x126),'type':a92_0x3ce43a(0x116),'description':a92_0x3ce43a(0x11b),'hidden':!![]},{'name':a92_0x3ce43a(0x10e),'meowKey':a92_0x3ce43a(0x10e),'type':a92_0x3ce43a(0x132),'description':a92_0x3ce43a(0x12f),'hidden':!![]},{'name':a92_0x3ce43a(0x11e),'meowKey':a92_0x3ce43a(0x11e),'type':a92_0x3ce43a(0x132),'description':a92_0x3ce43a(0x109),'hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set(['appcode',a92_0x3ce43a(0x11a),a92_0x3ce43a(0x11d),a92_0x3ce43a(0x117),'jq',a92_0x3ce43a(0x121),a92_0x3ce43a(0x124),a92_0x3ce43a(0x119),'ci']);export function buildMeowFlags(){const _0x1822a5=a92_0x3ce43a;return Object[_0x1822a5(0x113)](GLOBAL_FLAGS['map'](_0x9dcfc8=>[_0x9dcfc8['meowKey'],{'type':_0x9dcfc8[_0x1822a5(0x122)]}]));}
1
+ const a92_0x230fea=a92_0x317a;(function(_0x52eddc,_0x13b8c0){const _0x2e3526=a92_0x317a,_0xd16e5b=_0x52eddc();while(!![]){try{const _0x427ad7=-parseInt(_0x2e3526(0x11d))/0x1*(-parseInt(_0x2e3526(0x136))/0x2)+-parseInt(_0x2e3526(0x13f))/0x3+-parseInt(_0x2e3526(0x126))/0x4*(-parseInt(_0x2e3526(0x131))/0x5)+-parseInt(_0x2e3526(0x12e))/0x6*(parseInt(_0x2e3526(0x13c))/0x7)+parseInt(_0x2e3526(0x148))/0x8*(parseInt(_0x2e3526(0x128))/0x9)+-parseInt(_0x2e3526(0x11e))/0xa+-parseInt(_0x2e3526(0x124))/0xb*(-parseInt(_0x2e3526(0x141))/0xc);if(_0x427ad7===_0x13b8c0)break;else _0xd16e5b['push'](_0xd16e5b['shift']());}catch(_0x4df677){_0xd16e5b['push'](_0xd16e5b['shift']());}}}(a92_0x330e,0xf063d));import{PRODUCT_CONFIG}from'../constant/product.js';function a92_0x317a(_0x2a2989,_0x30068d){_0x2a2989=_0x2a2989-0x11a;const _0x330eec=a92_0x330e();let _0x317a1b=_0x330eec[_0x2a2989];return _0x317a1b;}import{LOVRABET_NPM_PACKAGE_NAME}from'../constant/distribution.js';export const CLI_BIN_NAME=PRODUCT_CONFIG['cliBinName'];export const CLI_DISPLAY_NAME=PRODUCT_CONFIG[a92_0x230fea(0x147)];export const NPM_PACKAGE_NAME=LOVRABET_NPM_PACKAGE_NAME;export const GLOBAL_FLAGS=[{'name':a92_0x230fea(0x12b),'meowKey':a92_0x230fea(0x12b),'type':'string','description':a92_0x230fea(0x144),'hint':a92_0x230fea(0x143)},{'name':'app','meowKey':a92_0x230fea(0x142),'type':a92_0x230fea(0x11f),'description':'Select\x20app\x20profile\x20by\x20name','hint':a92_0x230fea(0x135)},{'name':'env','meowKey':a92_0x230fea(0x13a),'type':'string','description':'Environment','hint':a92_0x230fea(0x138)},{'name':a92_0x230fea(0x140),'meowKey':a92_0x230fea(0x140),'type':a92_0x230fea(0x11f),'description':'Output\x20format','hint':a92_0x230fea(0x145)},{'name':'jq','meowKey':'jq','type':a92_0x230fea(0x11f),'description':'Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20implies\x20--format\x20json\x20when\x20current\x20format\x20is\x20pretty)','hint':a92_0x230fea(0x122)},{'name':a92_0x230fea(0x123),'meowKey':a92_0x230fea(0x121),'type':a92_0x230fea(0x11b),'description':'Preview\x20operation\x20without\x20executing'},{'name':'yes','meowKey':'yes','type':a92_0x230fea(0x11b),'description':'Skip\x20confirmation\x20for\x20high-risk\x20writes'},{'name':'non-interactive','meowKey':a92_0x230fea(0x13b),'type':a92_0x230fea(0x11b),'description':a92_0x230fea(0x12a)},{'name':a92_0x230fea(0x146),'meowKey':a92_0x230fea(0x146),'type':a92_0x230fea(0x11b),'description':a92_0x230fea(0x134)},{'name':'ci','meowKey':'ci','type':a92_0x230fea(0x11b),'description':a92_0x230fea(0x125),'hidden':!![]},{'name':a92_0x230fea(0x12f),'meowKey':a92_0x230fea(0x12f),'type':a92_0x230fea(0x11b),'description':a92_0x230fea(0x127)},{'name':'id','meowKey':'id','type':'string','description':'Record\x20ID','hidden':!![]},{'name':a92_0x230fea(0x139),'meowKey':a92_0x230fea(0x139),'type':a92_0x230fea(0x11f),'description':a92_0x230fea(0x13e),'hidden':!![]},{'name':'sqlcode','meowKey':a92_0x230fea(0x129),'type':a92_0x230fea(0x11f),'description':'SQL\x20query\x20code','hidden':!![]},{'name':a92_0x230fea(0x130),'meowKey':a92_0x230fea(0x130),'type':'string','description':a92_0x230fea(0x12d),'hidden':!![]},{'name':a92_0x230fea(0x11c),'meowKey':a92_0x230fea(0x11c),'type':a92_0x230fea(0x11b),'description':a92_0x230fea(0x120),'hidden':!![]},{'name':a92_0x230fea(0x133),'meowKey':a92_0x230fea(0x133),'type':a92_0x230fea(0x11b),'description':a92_0x230fea(0x13d),'hidden':!![]}];function a92_0x330e(){const _0x56ea4e=['55hYblxZ','Alias\x20for\x20--non-interactive','5924HSrRJN','Show\x20help','24426RNbsrY','sqlcode','Force\x20non-interactive\x20mode\x20(CI)','appcode','map','JSON\x20params\x20for\x20execute\x20commands','1326222zCoWQL','help','params','5245ZCasBc','meowKey','clear','Use\x20global\x20config\x20scope','<name>','4506cySOse','type','production\x20|\x20development\x20|\x20daily','name','env','nonInteractive','14sumtxu','Clear\x20output','Name\x20filter','2342286rZqJQf','format','920604NxWkEa','app','<code>','Override\x20appcode','json\x20|\x20pretty\x20|\x20compress','global','cliDisplayName','752xgIOMj','non-interactive','yes','boolean','verbose','422AlzGFu','9355630VQFVpB','string','Verbose\x20output','dryRun','<expr>','dry-run'];a92_0x330e=function(){return _0x56ea4e;};return a92_0x330e();}export const PIPELINE_FLAG_NAMES=new Set([a92_0x230fea(0x12b),'app',a92_0x230fea(0x13a),a92_0x230fea(0x140),'jq',a92_0x230fea(0x123),a92_0x230fea(0x11a),a92_0x230fea(0x149),'ci']);export function buildMeowFlags(){const _0x2a5b41=a92_0x230fea;return Object['fromEntries'](GLOBAL_FLAGS[_0x2a5b41(0x12c)](_0x5654be=>[_0x5654be[_0x2a5b41(0x132)],{'type':_0x5654be[_0x2a5b41(0x137)]}]));}
@@ -1 +1 @@
1
- function a93_0x8f61(_0x592b17,_0xb0fab7){_0x592b17=_0x592b17-0x116;const _0x20fe38=a93_0x20fe();let _0x8f6137=_0x20fe38[_0x592b17];return _0x8f6137;}const a93_0x95b05b=a93_0x8f61;(function(_0xaed54,_0x104a9c){const _0x3a7808=a93_0x8f61,_0xc7c4e9=_0xaed54();while(!![]){try{const _0xd6ae12=parseInt(_0x3a7808(0x11c))/0x1*(-parseInt(_0x3a7808(0x123))/0x2)+-parseInt(_0x3a7808(0x125))/0x3*(-parseInt(_0x3a7808(0x11e))/0x4)+parseInt(_0x3a7808(0x120))/0x5*(parseInt(_0x3a7808(0x116))/0x6)+-parseInt(_0x3a7808(0x11a))/0x7+parseInt(_0x3a7808(0x117))/0x8*(parseInt(_0x3a7808(0x121))/0x9)+-parseInt(_0x3a7808(0x119))/0xa*(parseInt(_0x3a7808(0x11f))/0xb)+-parseInt(_0x3a7808(0x11d))/0xc;if(_0xd6ae12===_0x104a9c)break;else _0xc7c4e9['push'](_0xc7c4e9['shift']());}catch(_0x39c5b6){_0xc7c4e9['push'](_0xc7c4e9['shift']());}}}(a93_0x20fe,0xb9d84));export const DEFAULT_APP_PROFILE_NAME='main';export const DEFAULT_CONFIG_VALUES={'env':a93_0x95b05b(0x118),'format':a93_0x95b05b(0x122),'locale':a93_0x95b05b(0x124),'riskLevel':a93_0x95b05b(0x11b)};export const DEFAULT_COMMAND_OUTPUT_FORMAT='compress';function a93_0x20fe(){const _0x3d90ce=['en-US','519uijyrz','12ssnvoC','564336ZesnVs','production','10JnpFXJ','2587165GhSvuX','write','843275JYxRdQ','16505496ucVICY','24008QQsIEO','1474440VBCBRY','2938715BcYYbd','162EXKfNk','compress','2CFYmcI'];a93_0x20fe=function(){return _0x3d90ce;};return a93_0x20fe();}
1
+ const a93_0x5a31b3=a93_0xe3c8;(function(_0x17ba8b,_0x1dbab6){const _0x2a27d4=a93_0xe3c8,_0x3c38bb=_0x17ba8b();while(!![]){try{const _0x4b72df=parseInt(_0x2a27d4(0x172))/0x1+-parseInt(_0x2a27d4(0x170))/0x2+-parseInt(_0x2a27d4(0x178))/0x3+parseInt(_0x2a27d4(0x176))/0x4*(-parseInt(_0x2a27d4(0x179))/0x5)+parseInt(_0x2a27d4(0x173))/0x6+parseInt(_0x2a27d4(0x175))/0x7+-parseInt(_0x2a27d4(0x171))/0x8;if(_0x4b72df===_0x1dbab6)break;else _0x3c38bb['push'](_0x3c38bb['shift']());}catch(_0x854296){_0x3c38bb['push'](_0x3c38bb['shift']());}}}(a93_0x221f,0x760b4));export const DEFAULT_APP_PROFILE_NAME=a93_0x5a31b3(0x177);export const DEFAULT_CONFIG_VALUES={'env':'production','format':a93_0x5a31b3(0x16f),'locale':a93_0x5a31b3(0x174),'riskLevel':'write'};function a93_0xe3c8(_0x141ec4,_0x41385c){_0x141ec4=_0x141ec4-0x16f;const _0x221f63=a93_0x221f();let _0xe3c82=_0x221f63[_0x141ec4];return _0xe3c82;}function a93_0x221f(){const _0xb661f3=['106824niTfCZ','2102176LmFRMU','241856GvImUd','3167028chrdOM','en-US','2652594poYcwZ','3784EhZWVe','main','802764QvSJBP','430bGKPoK','compress'];a93_0x221f=function(){return _0xb661f3;};return a93_0x221f();}export const DEFAULT_COMMAND_OUTPUT_FORMAT='compress';
@@ -1 +1 @@
1
- const a94_0x32ae77=a94_0x52e2;(function(_0x20a166,_0x207271){const _0x46514e=a94_0x52e2,_0x134caa=_0x20a166();while(!![]){try{const _0x273377=-parseInt(_0x46514e(0x1d3))/0x1+parseInt(_0x46514e(0x1d8))/0x2+-parseInt(_0x46514e(0x1d4))/0x3*(-parseInt(_0x46514e(0x1d2))/0x4)+-parseInt(_0x46514e(0x1d7))/0x5*(-parseInt(_0x46514e(0x1cb))/0x6)+-parseInt(_0x46514e(0x1cc))/0x7+-parseInt(_0x46514e(0x1d1))/0x8*(parseInt(_0x46514e(0x1d6))/0x9)+-parseInt(_0x46514e(0x1ce))/0xa;if(_0x273377===_0x207271)break;else _0x134caa['push'](_0x134caa['shift']());}catch(_0x116dd9){_0x134caa['push'](_0x134caa['shift']());}}}(a94_0x1aeb,0x316d5));function a94_0x52e2(_0x45be98,_0x4d77fb){_0x45be98=_0x45be98-0x1cb;const _0x1aebcc=a94_0x1aeb();let _0x52e228=_0x1aebcc[_0x45be98];return _0x52e228;}import{PRODUCT_CONFIG}from'../constant/product.js';export const LOVRABET_NPM_PACKAGE_NAME=PRODUCT_CONFIG[a94_0x32ae77(0x1cf)];export const LOVRABET_SKILL_SOURCE=PRODUCT_CONFIG[a94_0x32ae77(0x1cd)];function a94_0x1aeb(){const _0xa1f746=['6JQhXYK','cliCdnBaseUrl','59067FfdnHC','40bOpacG','492892fZkIws','182766YHUyjD','792470KebKJr','skillSource','2198720mAzOsB','npmPackageName','/dist/lovrabet-cli/config/index.json','192pGnjWg','601604EWcDEn','97889Xnmehu'];a94_0x1aeb=function(){return _0xa1f746;};return a94_0x1aeb();}export const NPM_REGISTRY_BASE_URL=PRODUCT_CONFIG['npmRegistryBaseUrl'];export const LOVRABET_CLI_CDN_BASE_URL=PRODUCT_CONFIG[a94_0x32ae77(0x1d5)];export const LOVRABET_CLI_VERSION_POLICY_URL=LOVRABET_CLI_CDN_BASE_URL+a94_0x32ae77(0x1d0);
1
+ const a94_0xdcb24=a94_0x475f;(function(_0x27b355,_0x18c0e4){const _0x4197d5=a94_0x475f,_0x2bb7bf=_0x27b355();while(!![]){try{const _0x582027=-parseInt(_0x4197d5(0x1b0))/0x1+parseInt(_0x4197d5(0x1ae))/0x2+parseInt(_0x4197d5(0x1ab))/0x3+-parseInt(_0x4197d5(0x1b4))/0x4*(parseInt(_0x4197d5(0x1b1))/0x5)+parseInt(_0x4197d5(0x1b2))/0x6+-parseInt(_0x4197d5(0x1ac))/0x7*(-parseInt(_0x4197d5(0x1ad))/0x8)+-parseInt(_0x4197d5(0x1af))/0x9*(parseInt(_0x4197d5(0x1b3))/0xa);if(_0x582027===_0x18c0e4)break;else _0x2bb7bf['push'](_0x2bb7bf['shift']());}catch(_0x4af08a){_0x2bb7bf['push'](_0x2bb7bf['shift']());}}}(a94_0x2354,0x9695c));import{PRODUCT_CONFIG}from'../constant/product.js';function a94_0x2354(){const _0x392f83=['cliCdnBaseUrl','skillSource','npmPackageName','1770987kJVeCj','1578794BanIHj','8bMyRjw','1010052KkIefJ','312021JnSWZB','550645zmbeng','449140ntwCJT','4639092VGrucW','60DILWgk','32HzHmwq','/dist/lovrabet-cli/config/index.json'];a94_0x2354=function(){return _0x392f83;};return a94_0x2354();}function a94_0x475f(_0x3a16b4,_0x5eff3c){_0x3a16b4=_0x3a16b4-0x1aa;const _0x23545e=a94_0x2354();let _0x475fcb=_0x23545e[_0x3a16b4];return _0x475fcb;}export const LOVRABET_NPM_PACKAGE_NAME=PRODUCT_CONFIG[a94_0xdcb24(0x1aa)];export const LOVRABET_SKILL_SOURCE=PRODUCT_CONFIG[a94_0xdcb24(0x1b7)];export const NPM_REGISTRY_BASE_URL=PRODUCT_CONFIG['npmRegistryBaseUrl'];export const LOVRABET_CLI_CDN_BASE_URL=PRODUCT_CONFIG[a94_0xdcb24(0x1b6)];export const LOVRABET_CLI_VERSION_POLICY_URL=LOVRABET_CLI_CDN_BASE_URL+a94_0xdcb24(0x1b5);
@@ -3,8 +3,8 @@
3
3
  *
4
4
  * Why domain resolution is centralized here: the CLI makes HTTP requests to multiple
5
5
  * backend services, each with its own domain. Rather than hard-coding URLs or
6
- * duplicating the env-based selection logic, we expose one getter per service that
7
- * encapsulates the rule:
6
+ * duplicating the env-based selection logic, we expose three getter functions that
7
+ * encapsulate the rule:
8
8
  *
9
9
  * - production env → production domains
10
10
  * - daily (staging) env → daily-prefixed domains
@@ -19,7 +19,7 @@ import { type LovrabetRegion } from "../constant/region.js";
19
19
  /**
20
20
  * Sets custom domain overrides read from the config file.
21
21
  *
22
- * Why pass an options object instead of positional parameters: future-proofing.
22
+ * Why pass an options object instead of three separate parameters: future-proofing.
23
23
  * Adding a new domain type (e.g. `authDomain`) only requires adding a field here,
24
24
  * not changing every call site. Typed `undefined` fields mean "use the default".
25
25
  *
@@ -31,7 +31,6 @@ export declare function initDomains(domains?: {
31
31
  runtimeDomain?: string;
32
32
  skillDomain?: string;
33
33
  kbDomain?: string;
34
- kbSearchDomain?: string;
35
34
  region?: LovrabetRegion;
36
35
  }): void;
37
36
  /**
@@ -63,5 +62,3 @@ export declare const getRuntimeDomain: () => string;
63
62
  export declare const getSkillDomain: () => string;
64
63
  /** Returns the knowledge-base domain used by personal and company KB APIs. */
65
64
  export declare const getKbDomain: () => string;
66
- /** Returns the separately deployed native KB Service search origin. */
67
- export declare function getKbSearchDomain(): string;
@@ -1 +1 @@
1
- const a95_0x3f7bbd=a95_0x424b;(function(_0x531f08,_0x161521){const _0x2c986a=a95_0x424b,_0x1c9a2c=_0x531f08();while(!![]){try{const _0x21cca5=-parseInt(_0x2c986a(0x141))/0x1+-parseInt(_0x2c986a(0x14a))/0x2+-parseInt(_0x2c986a(0x14f))/0x3+parseInt(_0x2c986a(0x13d))/0x4*(parseInt(_0x2c986a(0x13b))/0x5)+parseInt(_0x2c986a(0x143))/0x6*(-parseInt(_0x2c986a(0x145))/0x7)+parseInt(_0x2c986a(0x142))/0x8+parseInt(_0x2c986a(0x13a))/0x9;if(_0x21cca5===_0x161521)break;else _0x1c9a2c['push'](_0x1c9a2c['shift']());}catch(_0x32cac0){_0x1c9a2c['push'](_0x1c9a2c['shift']());}}}(a95_0x1754,0x6dd86));function a95_0x424b(_0x44d324,_0x5280ee){_0x44d324=_0x44d324-0x138;const _0x175441=a95_0x1754();let _0x424b29=_0x175441[_0x44d324];return _0x424b29;}import{getEnv,isProduction}from'../constant/env.js';function a95_0x1754(){const _0x313469=['runtime','production','46546UEKYGa','4583176Wendql','5121516XOxUjd','https://kb-service-daily.lovrabet.com','7pdveTG','Configure\x20an\x20explicit\x20kbSearchDomain\x20for\x20an\x20independent\x20deployment.','region','runtimeDomain','kbSearchDomain','222518uACScA','kbDomain','validation','api','Knowledge\x20search\x20is\x20not\x20registered\x20for\x20region\x20\x22','1177158SYjESq','skill','user','4803390VcFWET','280CGJiIV','regionDomains','53364MVZRTs','skillDomain'];a95_0x1754=function(){return _0x313469;};return a95_0x1754();}import{PRODUCT_CONFIG}from'../constant/product.js';import{DEFAULT_LOVRABET_REGION}from'../constant/region.js';import{CliErrors}from'../errors.js';let customApiDomain,customUserDomain,customRuntimeDomain,customSkillDomain,customKbDomain,customKbSearchDomain,activeRegion=DEFAULT_LOVRABET_REGION;export function initDomains(_0x24cc26){const _0x57391a=a95_0x424b;customApiDomain=_0x24cc26?.['apiDomain'],customUserDomain=_0x24cc26?.['userDomain'],customRuntimeDomain=_0x24cc26?.[_0x57391a(0x148)],customSkillDomain=_0x24cc26?.[_0x57391a(0x13e)],customKbDomain=_0x24cc26?.[_0x57391a(0x14b)],customKbSearchDomain=_0x24cc26?.[_0x57391a(0x149)],activeRegion=_0x24cc26?.[_0x57391a(0x147)]??DEFAULT_LOVRABET_REGION;}const getActiveRegionDomains=()=>PRODUCT_CONFIG[a95_0x3f7bbd(0x13c)][activeRegion][isProduction(getEnv())?a95_0x3f7bbd(0x140):'nonProduction'];export const getUserDomain=()=>customUserDomain||getActiveRegionDomains()[a95_0x3f7bbd(0x139)];export const getApiDomain=()=>customApiDomain||getActiveRegionDomains()[a95_0x3f7bbd(0x14d)];export const getRuntimeDomain=()=>customRuntimeDomain||getActiveRegionDomains()[a95_0x3f7bbd(0x13f)];export const getSkillDomain=()=>customSkillDomain||getActiveRegionDomains()[a95_0x3f7bbd(0x138)];export const getKbDomain=()=>customKbDomain||getActiveRegionDomains()['kb'];export function getKbSearchDomain(){const _0x450a08=a95_0x3f7bbd;if(customKbSearchDomain)return customKbSearchDomain;if(activeRegion==='cn')return isProduction(getEnv())?'https://kb-service.lovrabet.com':_0x450a08(0x144);throw CliErrors[_0x450a08(0x14c)](_0x450a08(0x14e)+activeRegion+'\x22.',_0x450a08(0x146));}
1
+ const a95_0x535f25=a95_0x5469;(function(_0x54443d,_0x54fcf0){const _0xbe1aaa=a95_0x5469,_0x3db5c0=_0x54443d();while(!![]){try{const _0x4cdd29=parseInt(_0xbe1aaa(0x13b))/0x1+-parseInt(_0xbe1aaa(0x132))/0x2*(parseInt(_0xbe1aaa(0x133))/0x3)+-parseInt(_0xbe1aaa(0x12e))/0x4+parseInt(_0xbe1aaa(0x136))/0x5+parseInt(_0xbe1aaa(0x137))/0x6+-parseInt(_0xbe1aaa(0x12d))/0x7*(-parseInt(_0xbe1aaa(0x139))/0x8)+parseInt(_0xbe1aaa(0x13d))/0x9;if(_0x4cdd29===_0x54fcf0)break;else _0x3db5c0['push'](_0x3db5c0['shift']());}catch(_0x3a5266){_0x3db5c0['push'](_0x3db5c0['shift']());}}}(a95_0x2743,0x701c8));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,customKbDomain,activeRegion=DEFAULT_LOVRABET_REGION;export function initDomains(_0x170a4c){const _0x22f6bf=a95_0x5469;customApiDomain=_0x170a4c?.[_0x22f6bf(0x130)],customUserDomain=_0x170a4c?.[_0x22f6bf(0x12b)],customRuntimeDomain=_0x170a4c?.[_0x22f6bf(0x135)],customSkillDomain=_0x170a4c?.[_0x22f6bf(0x12a)],customKbDomain=_0x170a4c?.['kbDomain'],activeRegion=_0x170a4c?.['region']??DEFAULT_LOVRABET_REGION;}const getActiveRegionDomains=()=>{const _0x560890=a95_0x5469,_0x287748=OFFICIAL_ROUTING_PROFILES[activeRegion][_0x560890(0x138)];return isProduction(getEnv())?_0x287748[_0x560890(0x13a)]:_0x560890(0x12f)in _0x287748?_0x287748['daily']:_0x287748[_0x560890(0x13a)];};export const getUserDomain=()=>customUserDomain||getActiveRegionDomains()[a95_0x535f25(0x12c)];export const getApiDomain=()=>customApiDomain||getActiveRegionDomains()[a95_0x535f25(0x131)];export const getRuntimeDomain=()=>customRuntimeDomain||getActiveRegionDomains()[a95_0x535f25(0x134)];function a95_0x2743(){const _0x9d8763=['apiDomain','api','38098VGeike','6wydino','runtime','runtimeDomain','124305idlRKz','226614QgTVHh','serviceDomains','251752DcvZFA','production','735761JCXdOi','skill','2814579LrFwIu','skillDomain','userDomain','user','7bzdgHy','2581140JLaWcd','daily'];a95_0x2743=function(){return _0x9d8763;};return a95_0x2743();}export const getSkillDomain=()=>customSkillDomain||getActiveRegionDomains()[a95_0x535f25(0x13c)];function a95_0x5469(_0x573253,_0x362c0b){_0x573253=_0x573253-0x12a;const _0x2743d2=a95_0x2743();let _0x54691f=_0x2743d2[_0x573253];return _0x54691f;}export const getKbDomain=()=>customKbDomain||getActiveRegionDomains()['kb'];
@@ -1 +1 @@
1
- const a96_0x350c7c=a96_0x227f;(function(_0x18e23b,_0x587369){const _0x2cd736=a96_0x227f,_0x4028b0=_0x18e23b();while(!![]){try{const _0x435b07=parseInt(_0x2cd736(0x115))/0x1+parseInt(_0x2cd736(0x10c))/0x2+parseInt(_0x2cd736(0x113))/0x3*(-parseInt(_0x2cd736(0x111))/0x4)+-parseInt(_0x2cd736(0x116))/0x5+-parseInt(_0x2cd736(0x10f))/0x6*(parseInt(_0x2cd736(0x10a))/0x7)+parseInt(_0x2cd736(0x112))/0x8+parseInt(_0x2cd736(0x10e))/0x9;if(_0x435b07===_0x587369)break;else _0x4028b0['push'](_0x4028b0['shift']());}catch(_0x4c346e){_0x4028b0['push'](_0x4028b0['shift']());}}}(a96_0x39c2,0x857a8));function a96_0x227f(_0x5a89b7,_0x32853c){_0x5a89b7=_0x5a89b7-0x10a;const _0x39c264=a96_0x39c2();let _0x227ff4=_0x39c264[_0x5a89b7];return _0x227ff4;}import{productEnv}from'../constant/product.js';export const RUNTIME_ENV_VALUES=[a96_0x350c7c(0x10d),a96_0x350c7c(0x10b),a96_0x350c7c(0x114)];export function normalizeEnv(_0x298511){const _0x50e253=a96_0x350c7c;return _0x298511===_0x50e253(0x110)?_0x50e253(0x10d):_0x298511;}function a96_0x39c2(){const _0x5ea80c=['793112RTXcqa','767523UjKOYD','daily','246448jQxzGr','1725865PHSUyH','7nyfxuy','development','364596NkZtul','production','12766320ytzCgL','1721646ympOsh','online','12EsMCED'];a96_0x39c2=function(){return _0x5ea80c;};return a96_0x39c2();}export function isProduction(_0x759077){const _0x1cef77=a96_0x350c7c;return normalizeEnv(_0x759077)===_0x1cef77(0x10d);}export function isDaily(_0x468f88){return normalizeEnv(_0x468f88)==='daily';}export function isDev(_0x3441ef){const _0x5e5e97=a96_0x350c7c,_0x518a2=normalizeEnv(_0x3441ef);return _0x518a2===_0x5e5e97(0x10b)||_0x518a2==='dev';}let env=normalizeEnv(productEnv('ENV')||a96_0x350c7c(0x10d));export function getEnv(){return env;}export function initEnv(_0x4822da){env=normalizeEnv(_0x4822da);}
1
+ const a96_0x49f702=a96_0x39ac;(function(_0x30cb9a,_0xfc3ad0){const _0x48fb73=a96_0x39ac,_0xba3fdd=_0x30cb9a();while(!![]){try{const _0x1ee587=parseInt(_0x48fb73(0xed))/0x1+parseInt(_0x48fb73(0xf1))/0x2+-parseInt(_0x48fb73(0xf4))/0x3*(-parseInt(_0x48fb73(0xf2))/0x4)+-parseInt(_0x48fb73(0xea))/0x5*(parseInt(_0x48fb73(0xf3))/0x6)+parseInt(_0x48fb73(0xf0))/0x7+parseInt(_0x48fb73(0xee))/0x8+-parseInt(_0x48fb73(0xe8))/0x9*(parseInt(_0x48fb73(0xec))/0xa);if(_0x1ee587===_0xfc3ad0)break;else _0xba3fdd['push'](_0xba3fdd['shift']());}catch(_0x21882d){_0xba3fdd['push'](_0xba3fdd['shift']());}}}(a96_0x4481,0x4af79));import{productEnv}from'../constant/product.js';function a96_0x4481(){const _0x4cb542=['production','9fDenPz','ENV','60scILLX','dev','7020330NatjDg','123985poNvMK','160288kwKzSS','daily','2433788liGiou','1167568rtBZun','814148eCxKfH','134964SgPuuj','3GdGesh'];a96_0x4481=function(){return _0x4cb542;};return a96_0x4481();}export const RUNTIME_ENV_VALUES=['production','development',a96_0x49f702(0xef)];export function normalizeEnv(_0x1477f4){const _0x3c3cb9=a96_0x49f702;return _0x1477f4==='online'?_0x3c3cb9(0xf5):_0x1477f4;}export function isProduction(_0x1a0576){return normalizeEnv(_0x1a0576)==='production';}export function isDaily(_0x2575ee){const _0x1e115c=a96_0x49f702;return normalizeEnv(_0x2575ee)===_0x1e115c(0xef);}export function isDev(_0x195cc4){const _0x3f12ad=a96_0x49f702,_0x1ed57d=normalizeEnv(_0x195cc4);return _0x1ed57d==='development'||_0x1ed57d===_0x3f12ad(0xeb);}let env=normalizeEnv(productEnv(a96_0x49f702(0xe9))||'production');function a96_0x39ac(_0x18a91e,_0x5725fa){_0x18a91e=_0x18a91e-0xe8;const _0x448189=a96_0x4481();let _0x39ac90=_0x448189[_0x18a91e];return _0x39ac90;}export function getEnv(){return env;}export function initEnv(_0x4b864d){env=normalizeEnv(_0x4b864d);}
@@ -1 +1 @@
1
- const a97_0x270189=a97_0x18fd;(function(_0x3ffafe,_0x30d878){const _0x7a3497=a97_0x18fd,_0x170e7d=_0x3ffafe();while(!![]){try{const _0x5c1b40=parseInt(_0x7a3497(0x16d))/0x1+parseInt(_0x7a3497(0x16e))/0x2+-parseInt(_0x7a3497(0x16a))/0x3*(-parseInt(_0x7a3497(0x16b))/0x4)+parseInt(_0x7a3497(0x167))/0x5+-parseInt(_0x7a3497(0x165))/0x6*(parseInt(_0x7a3497(0x170))/0x7)+-parseInt(_0x7a3497(0x16f))/0x8+-parseInt(_0x7a3497(0x166))/0x9;if(_0x5c1b40===_0x30d878)break;else _0x170e7d['push'](_0x170e7d['shift']());}catch(_0x7ff70f){_0x170e7d['push'](_0x170e7d['shift']());}}}(a97_0xa215,0x382ad));function a97_0x18fd(_0x3a1d25,_0x84ec1f){_0x3a1d25=_0x3a1d25-0x165;const _0xa21595=a97_0xa215();let _0x18fd6e=_0xa21595[_0x3a1d25];return _0x18fd6e;}export const OUTPUT_FORMAT_VALUES=[a97_0x270189(0x168),a97_0x270189(0x169),a97_0x270189(0x16c)];function a97_0xa215(){const _0x425c70=['18xxAyaN','92115ydwxvU','2099285ATigLR','json','pretty','9057RgedEk','452XxnaHk','compress','190579Msvqei','97734LJxYBf','3379816PLFmiv','787913KXupMf'];a97_0xa215=function(){return _0x425c70;};return a97_0xa215();}
1
+ const a97_0x18afd6=a97_0x428d;(function(_0x4f2a2b,_0x30d258){const _0x65cc21=a97_0x428d,_0x201286=_0x4f2a2b();while(!![]){try{const _0x4b2186=parseInt(_0x65cc21(0x161))/0x1*(-parseInt(_0x65cc21(0x168))/0x2)+-parseInt(_0x65cc21(0x162))/0x3+parseInt(_0x65cc21(0x166))/0x4+parseInt(_0x65cc21(0x163))/0x5*(-parseInt(_0x65cc21(0x16a))/0x6)+-parseInt(_0x65cc21(0x167))/0x7*(parseInt(_0x65cc21(0x15e))/0x8)+-parseInt(_0x65cc21(0x15f))/0x9+parseInt(_0x65cc21(0x160))/0xa;if(_0x4b2186===_0x30d258)break;else _0x201286['push'](_0x201286['shift']());}catch(_0x34bad4){_0x201286['push'](_0x201286['shift']());}}}(a97_0x2751,0x65c4e));function a97_0x2751(){const _0x4bab81=['json','pretty','2074984KAvLXV','21287siAKhh','114YpvULO','compress','366RECJxL','736YhqHcd','4263876euAvJl','22079160zJceTn','5778OpDGBJ','2017332bLfvXs','45450AHcFSQ'];a97_0x2751=function(){return _0x4bab81;};return a97_0x2751();}function a97_0x428d(_0x38134e,_0x1aa48d){_0x38134e=_0x38134e-0x15e;const _0x27517d=a97_0x2751();let _0x428d75=_0x27517d[_0x38134e];return _0x428d75;}export const OUTPUT_FORMAT_VALUES=[a97_0x18afd6(0x164),a97_0x18afd6(0x165),a97_0x18afd6(0x169)];
@@ -54,57 +54,6 @@ export declare const PRODUCT_CONFIG: {
54
54
  readonly userCenterDisplayName: "Lovrabet User Center";
55
55
  /** Env var suffix for skipping `npx skills add`. */
56
56
  readonly skipNpxSkillsEnvSuffix: "SKIP_NPX_SKILLS";
57
- /** Built-in official node profiles. Config file overrides still take precedence. */
58
- readonly regionDomains: {
59
- readonly cn: {
60
- readonly production: {
61
- readonly user: "https://user.lovrabet.com";
62
- readonly api: "https://api.lovrabet.com";
63
- readonly runtime: "https://runtime.lovrabet.com";
64
- readonly skill: "https://skills.lovrabet.com";
65
- readonly kb: "https://runtime.lovrabet.com";
66
- };
67
- readonly nonProduction: {
68
- readonly user: "https://user-daily.lovrabet.com";
69
- readonly api: "https://daily-api.lovrabet.com";
70
- readonly runtime: "https://daily-runtime.lovrabet.com";
71
- readonly skill: "https://skills-daily.lovrabet.com";
72
- readonly kb: "https://daily-runtime.lovrabet.com";
73
- };
74
- };
75
- readonly id: {
76
- readonly production: {
77
- readonly user: "https://user.lovrabet.id";
78
- readonly api: "https://api.lovrabet.id";
79
- readonly runtime: "https://runtime.lovrabet.id";
80
- readonly skill: "https://skills.lovrabet.id";
81
- readonly kb: "https://runtime.lovrabet.id";
82
- };
83
- readonly nonProduction: {
84
- readonly user: "https://user-daily.lovrabet.id";
85
- readonly api: "https://daily-api.lovrabet.id";
86
- readonly runtime: "https://daily-runtime.lovrabet.id";
87
- readonly skill: "https://skills-daily.lovrabet.id";
88
- readonly kb: "https://daily-runtime.lovrabet.id";
89
- };
90
- };
91
- readonly global: {
92
- readonly production: {
93
- readonly user: "https://user.lovrabet.ai";
94
- readonly api: "https://api.lovrabet.ai";
95
- readonly runtime: "https://runtime.lovrabet.ai";
96
- readonly skill: "https://skills.lovrabet.ai";
97
- readonly kb: "https://runtime.lovrabet.ai";
98
- };
99
- readonly nonProduction: {
100
- readonly user: "https://user-daily.lovrabet.ai";
101
- readonly api: "https://daily-api.lovrabet.ai";
102
- readonly runtime: "https://daily-runtime.lovrabet.ai";
103
- readonly skill: "https://skills-daily.lovrabet.ai";
104
- readonly kb: "https://daily-runtime.lovrabet.ai";
105
- };
106
- };
107
- };
108
57
  /** User center path for creating an AccessKey. */
109
58
  readonly accessKeyCreatePath: "/user/ak";
110
59
  };
@@ -1 +1 @@
1
- const a98_0x10ede6=a98_0x3059;(function(_0x440375,_0x46d67a){const _0x16be76=a98_0x3059,_0x1b0ce1=_0x440375();while(!![]){try{const _0x5239df=parseInt(_0x16be76(0x11c))/0x1+-parseInt(_0x16be76(0xf3))/0x2+-parseInt(_0x16be76(0xf9))/0x3*(parseInt(_0x16be76(0x103))/0x4)+parseInt(_0x16be76(0xfa))/0x5+parseInt(_0x16be76(0xfc))/0x6*(-parseInt(_0x16be76(0x112))/0x7)+parseInt(_0x16be76(0x101))/0x8*(-parseInt(_0x16be76(0x10c))/0x9)+-parseInt(_0x16be76(0x117))/0xa*(-parseInt(_0x16be76(0x11a))/0xb);if(_0x5239df===_0x46d67a)break;else _0x1b0ce1['push'](_0x1b0ce1['shift']());}catch(_0x5ab08f){_0x1b0ce1['push'](_0x1b0ce1['shift']());}}}(a98_0x54dd,0xad375));export const PRODUCT_CONFIG={'cliBinName':a98_0x10ede6(0xf2),'cliDisplayName':'Lovrabet\x20Runtime\x20CLI','npmPackageName':'@lovrabet/lovrabet-cli','skillSource':a98_0x10ede6(0xfb),'internalSkillSource':a98_0x10ede6(0xff),'globalSkillName':a98_0x10ede6(0xf2),'npmRegistryBaseUrl':a98_0x10ede6(0x113),'cliCdnBaseUrl':a98_0x10ede6(0x114),'envPrefix':'LOVRABET','legacyEnvPrefixes':['RABETBASE'],'configFileNames':[a98_0x10ede6(0x108)],'newConfigFileName':a98_0x10ede6(0x108),'homeDirName':a98_0x10ede6(0xf4),'logFileName':'.lovrabet-runtime.log','invokeSource':a98_0x10ede6(0x106),'userCenterDisplayName':a98_0x10ede6(0x100),'skipNpxSkillsEnvSuffix':'SKIP_NPX_SKILLS','regionDomains':{'cn':{'production':{'user':a98_0x10ede6(0x10e),'api':'https://api.lovrabet.com','runtime':'https://runtime.lovrabet.com','skill':'https://skills.lovrabet.com','kb':a98_0x10ede6(0x105)},'nonProduction':{'user':a98_0x10ede6(0x115),'api':a98_0x10ede6(0x110),'runtime':a98_0x10ede6(0x107),'skill':a98_0x10ede6(0x111),'kb':'https://daily-runtime.lovrabet.com'}},'id':{'production':{'user':a98_0x10ede6(0xfd),'api':a98_0x10ede6(0xf5),'runtime':a98_0x10ede6(0x10a),'skill':a98_0x10ede6(0x116),'kb':a98_0x10ede6(0x10a)},'nonProduction':{'user':a98_0x10ede6(0x10f),'api':a98_0x10ede6(0x109),'runtime':'https://daily-runtime.lovrabet.id','skill':'https://skills-daily.lovrabet.id','kb':a98_0x10ede6(0xfe)}},'global':{'production':{'user':a98_0x10ede6(0x10d),'api':a98_0x10ede6(0xf6),'runtime':a98_0x10ede6(0xf7),'skill':a98_0x10ede6(0x10b),'kb':a98_0x10ede6(0xf7)},'nonProduction':{'user':a98_0x10ede6(0xf8),'api':'https://daily-api.lovrabet.ai','runtime':'https://daily-runtime.lovrabet.ai','skill':a98_0x10ede6(0x104),'kb':'https://daily-runtime.lovrabet.ai'}}},'accessKeyCreatePath':a98_0x10ede6(0x119)};export function productEnvName(_0x5b39e5){const _0x4f42ba=a98_0x10ede6;return PRODUCT_CONFIG[_0x4f42ba(0x11b)]+'_'+_0x5b39e5;}function a98_0x3059(_0x4e908f,_0x496684){_0x4e908f=_0x4e908f-0xf2;const _0x54dd58=a98_0x54dd();let _0x305959=_0x54dd58[_0x4e908f];return _0x305959;}function a98_0x54dd(){const _0xf74b46=['envPrefix','17249nNzIWI','lovrabet','229736PCdIOD','.lovrabet','https://api.lovrabet.id','https://api.lovrabet.ai','https://runtime.lovrabet.ai','https://user-daily.lovrabet.ai','4974fmDwEM','3877670akMtvo','lovrabet/lovrabet-cli','569892pOdSGw','https://user.lovrabet.id','https://daily-runtime.lovrabet.id','git@codeup.aliyun.com:yuntoo/open/lovrabet-runtime-cli.git','Lovrabet\x20User\x20Center','167320GuLHxF','legacyEnvPrefixes','3008eBiOgH','https://skills-daily.lovrabet.ai','https://runtime.lovrabet.com','cli:lovrabet-runtime','https://daily-runtime.lovrabet.com','.lovrabet.json','https://daily-api.lovrabet.id','https://runtime.lovrabet.id','https://skills.lovrabet.ai','27MvgbHl','https://user.lovrabet.ai','https://user.lovrabet.com','https://user-daily.lovrabet.id','https://daily-api.lovrabet.com','https://skills-daily.lovrabet.com','28SMPoIt','https://registry.npmjs.org','https://g.lovrabet.com','https://user-daily.lovrabet.com','https://skills.lovrabet.id','5736890sKvdLv','map','/user/ak','33FWCBwZ'];a98_0x54dd=function(){return _0xf74b46;};return a98_0x54dd();}export function productEnvNames(_0x5c21a9){const _0x2e9d3e=a98_0x10ede6;return[productEnvName(_0x5c21a9),...PRODUCT_CONFIG[_0x2e9d3e(0x102)][_0x2e9d3e(0x118)](_0x2a8af1=>_0x2a8af1+'_'+_0x5c21a9)];}export function productEnv(_0x33d339){for(const _0x17459f of productEnvNames(_0x33d339)){const _0xfd13bd=process.env[_0x17459f];if(_0xfd13bd!==undefined)return _0xfd13bd;}return undefined;}
1
+ function a98_0x2302(){const _0x152031=['git@codeup.aliyun.com:yuntoo/open/lovrabet-runtime-cli.git','https://registry.npmjs.org','5nDqFsL','RABETBASE','envPrefix','/user/ak','map','994357BqvdGD','1271520iOZYpa','942126juVRjP','6265233OHngjo','1894032kYjRUJ','10OovWzf','.lovrabet.json','42DpbNNS','cli:lovrabet-runtime','232285AapbwK','217846cEDXBc','.lovrabet-runtime.log','https://g.lovrabet.com','LOVRABET','lovrabet/lovrabet-cli','legacyEnvPrefixes'];a98_0x2302=function(){return _0x152031;};return a98_0x2302();}const a98_0x1d0b40=a98_0x13ca;(function(_0x46def3,_0x888ae5){const _0x425252=a98_0x13ca,_0x16407a=_0x46def3();while(!![]){try{const _0x355a36=-parseInt(_0x425252(0x16e))/0x1*(parseInt(_0x425252(0x17d))/0x2)+-parseInt(_0x425252(0x175))/0x3+parseInt(_0x425252(0x177))/0x4+-parseInt(_0x425252(0x17c))/0x5*(-parseInt(_0x425252(0x17a))/0x6)+-parseInt(_0x425252(0x173))/0x7+-parseInt(_0x425252(0x174))/0x8+parseInt(_0x425252(0x176))/0x9*(parseInt(_0x425252(0x178))/0xa);if(_0x355a36===_0x888ae5)break;else _0x16407a['push'](_0x16407a['shift']());}catch(_0x20fd1c){_0x16407a['push'](_0x16407a['shift']());}}}(a98_0x2302,0x51d5c));function a98_0x13ca(_0x49c1d8,_0x119411){_0x49c1d8=_0x49c1d8-0x16d;const _0x2302bf=a98_0x2302();let _0x13caeb=_0x2302bf[_0x49c1d8];return _0x13caeb;}export const PRODUCT_CONFIG={'cliBinName':'lovrabet','cliDisplayName':'Lovrabet\x20Runtime\x20CLI','npmPackageName':'@lovrabet/lovrabet-cli','skillSource':a98_0x1d0b40(0x181),'internalSkillSource':a98_0x1d0b40(0x183),'globalSkillName':'lovrabet','npmRegistryBaseUrl':a98_0x1d0b40(0x16d),'cliCdnBaseUrl':a98_0x1d0b40(0x17f),'envPrefix':a98_0x1d0b40(0x180),'legacyEnvPrefixes':[a98_0x1d0b40(0x16f)],'configFileNames':[a98_0x1d0b40(0x179)],'newConfigFileName':a98_0x1d0b40(0x179),'homeDirName':'.lovrabet','logFileName':a98_0x1d0b40(0x17e),'invokeSource':a98_0x1d0b40(0x17b),'userCenterDisplayName':'Lovrabet\x20User\x20Center','skipNpxSkillsEnvSuffix':'SKIP_NPX_SKILLS','accessKeyCreatePath':a98_0x1d0b40(0x171)};export function productEnvName(_0x1fc410){const _0x59ab59=a98_0x1d0b40;return PRODUCT_CONFIG[_0x59ab59(0x170)]+'_'+_0x1fc410;}export function productEnvNames(_0x3a04ad){const _0x23d6e4=a98_0x1d0b40;return[productEnvName(_0x3a04ad),...PRODUCT_CONFIG[_0x23d6e4(0x182)][_0x23d6e4(0x172)](_0x9823a7=>_0x9823a7+'_'+_0x3a04ad)];}export function productEnv(_0x53f112){for(const _0x3100ab of productEnvNames(_0x53f112)){const _0x49d43c=process.env[_0x3100ab];if(_0x49d43c!==undefined)return _0x49d43c;}return undefined;}
@@ -1,15 +1,13 @@
1
1
  /**
2
2
  * @fileoverview Lovrabet deployment-region constants and normalization.
3
3
  *
4
- * A region selects the default Lovrabet domain suffix. Explicit domain overrides
5
- * remain authoritative, so private deployments can combine a public platform
6
- * region with an enterprise-local runtime endpoint.
4
+ * Region metadata is generated from the canonical routing catalog. Explicit
5
+ * Domain overrides remain authoritative for enterprise deployments.
7
6
  */
8
7
  export declare const LOVRABET_REGION_VALUES: readonly ["cn", "id", "global"];
9
- /** Regions currently available for new CLI configuration. */
10
8
  export declare const ENABLED_LOVRABET_REGION_VALUES: readonly ["cn", "id"];
11
9
  export type LovrabetRegion = (typeof LOVRABET_REGION_VALUES)[number];
12
10
  export declare const DEFAULT_LOVRABET_REGION: LovrabetRegion;
13
11
  export declare function isLovrabetRegion(value: unknown): value is LovrabetRegion;
14
- export declare function isEnabledLovrabetRegion(value: unknown): value is "cn" | "id";
12
+ export declare function isEnabledLovrabetRegion(value: unknown): value is LovrabetRegion;
15
13
  export declare function normalizeLovrabetRegion(value: unknown): LovrabetRegion;
@@ -1 +1 @@
1
- const a99_0x349f5d=a99_0x2711;(function(_0x59d50d,_0x438c52){const _0x266095=a99_0x2711,_0x12ee3a=_0x59d50d();while(!![]){try{const _0x5af345=-parseInt(_0x266095(0xa4))/0x1+-parseInt(_0x266095(0xa5))/0x2+parseInt(_0x266095(0xa1))/0x3*(-parseInt(_0x266095(0xa7))/0x4)+-parseInt(_0x266095(0xa2))/0x5*(-parseInt(_0x266095(0xa6))/0x6)+-parseInt(_0x266095(0x9e))/0x7*(-parseInt(_0x266095(0x9c))/0x8)+-parseInt(_0x266095(0xa0))/0x9+parseInt(_0x266095(0x9d))/0xa;if(_0x5af345===_0x438c52)break;else _0x12ee3a['push'](_0x12ee3a['shift']());}catch(_0x5ed57c){_0x12ee3a['push'](_0x12ee3a['shift']());}}}(a99_0x79c4,0x9c056));export const LOVRABET_REGION_VALUES=['cn','id',a99_0x349f5d(0x9f)];export const ENABLED_LOVRABET_REGION_VALUES=['cn','id'];function a99_0x79c4(){const _0x376019=['1278044TAkLpA','string','8tjbham','15672090rIixEO','3081666NRHRZx','global','3768363uMLDHW','6aYwKPJ','73615KWTkbl','includes','49817bzjNCO','1611180QUivKG','222odfXWl'];a99_0x79c4=function(){return _0x376019;};return a99_0x79c4();}export const DEFAULT_LOVRABET_REGION='cn';export function isLovrabetRegion(_0x243ec9){const _0x1aaba3=a99_0x349f5d;return typeof _0x243ec9===_0x1aaba3(0x9b)&&LOVRABET_REGION_VALUES['includes'](_0x243ec9);}export function isEnabledLovrabetRegion(_0x5a148d){const _0x4cc009=a99_0x349f5d;return typeof _0x5a148d==='string'&&ENABLED_LOVRABET_REGION_VALUES[_0x4cc009(0xa3)](_0x5a148d);}function a99_0x2711(_0x2d36e3,_0x4a93d4){_0x2d36e3=_0x2d36e3-0x9b;const _0x79c461=a99_0x79c4();let _0x271186=_0x79c461[_0x2d36e3];return _0x271186;}export function normalizeLovrabetRegion(_0x3dae9c){if(_0x3dae9c==='china')return'cn';if(_0x3dae9c==='indonesia')return'id';return isLovrabetRegion(_0x3dae9c)?_0x3dae9c:DEFAULT_LOVRABET_REGION;}
1
+ function a99_0x4b31(){const _0x2011ce=['42215mjkgPU','Run\x20`lovrabet\x20config\x20init`\x20to\x20restore\x20the\x20global\x20country/region\x20configuration.','1411278DdUXzS','validation','261234nhzeKA','9AupXsP','Region\x20\x22','28mzCMsT','includes','3003GjCKxH','string','2oxPRjT','443560cwtZGi','9190rzgZCu','667765fPPlQy','Invalid\x20region\x20value:\x20expected\x20a\x20string,\x20received\x20','410898zWnRre'];a99_0x4b31=function(){return _0x2011ce;};return a99_0x4b31();}(function(_0x168f68,_0x504aa8){const _0x4d4500=a99_0xbd33,_0x17f27b=_0x168f68();while(!![]){try{const _0x7e4f7d=-parseInt(_0x4d4500(0xfb))/0x1+parseInt(_0x4d4500(0xf1))/0x2*(parseInt(_0x4d4500(0xf6))/0x3)+parseInt(_0x4d4500(0xfe))/0x4*(-parseInt(_0x4d4500(0xf7))/0x5)+parseInt(_0x4d4500(0xf9))/0x6+-parseInt(_0x4d4500(0xf4))/0x7+-parseInt(_0x4d4500(0xf2))/0x8*(parseInt(_0x4d4500(0xfc))/0x9)+-parseInt(_0x4d4500(0xf3))/0xa*(-parseInt(_0x4d4500(0xef))/0xb);if(_0x7e4f7d===_0x504aa8)break;else _0x17f27b['push'](_0x17f27b['shift']());}catch(_0x128d79){_0x17f27b['push'](_0x17f27b['shift']());}}}(a99_0x4b31,0x25153));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;function a99_0xbd33(_0x1c41d2,_0x1f7c75){_0x1c41d2=_0x1c41d2-0xef;const _0x4b3139=a99_0x4b31();let _0xbd33b4=_0x4b3139[_0x1c41d2];return _0xbd33b4;}export function isLovrabetRegion(_0x4d907){return typeof _0x4d907==='string'&&LOVRABET_REGION_VALUES['includes'](_0x4d907);}export function isEnabledLovrabetRegion(_0x3adbac){const _0x104d60=a99_0xbd33;return typeof _0x3adbac==='string'&&ENABLED_LOVRABET_REGION_VALUES[_0x104d60(0xff)](_0x3adbac);}export function normalizeLovrabetRegion(_0x4efb27){const _0x5f3726=a99_0xbd33;if(_0x4efb27===undefined||_0x4efb27===null||_0x4efb27==='')return DEFAULT_LOVRABET_REGION;if(typeof _0x4efb27!==_0x5f3726(0xf0))throw CliErrors[_0x5f3726(0xfa)](_0x5f3726(0xf5)+typeof _0x4efb27+'.',_0x5f3726(0xf8));const _0x3cebd1=REGION_ALIASES[_0x4efb27]??_0x4efb27;if(isEnabledLovrabetRegion(_0x3cebd1))return _0x3cebd1;throw CliErrors[_0x5f3726(0xfa)](_0x5f3726(0xfd)+_0x4efb27+'\x22\x20is\x20not\x20currently\x20available.','Available\x20regions:\x20'+ENABLED_LOVRABET_REGION_VALUES['join'](',\x20')+'.\x20Run\x20`lovrabet\x20config\x20init`\x20to\x20repair\x20the\x20global\x20configuration.');}
@@ -1 +1 @@
1
- function a100_0x4cfb(){const _0x3ada49=['256420IEMdzS','15VhJtmp','1999452iJvUeR','8VBsIRU','63804uqIhgD','read','4613742VJrsVA','5084905dWXgzG','high-risk-write','3742620wXmsDG','370600sUpNyy','write'];a100_0x4cfb=function(){return _0x3ada49;};return a100_0x4cfb();}function a100_0x22b3(_0xbb8a29,_0x48680e){_0xbb8a29=_0xbb8a29-0x83;const _0x4cfb08=a100_0x4cfb();let _0x22b3b9=_0x4cfb08[_0xbb8a29];return _0x22b3b9;}const a100_0x27ad7a=a100_0x22b3;(function(_0x115573,_0x3423fc){const _0x1360bd=a100_0x22b3,_0x3d85d5=_0x115573();while(!![]){try{const _0x35b676=parseInt(_0x1360bd(0x8e))/0x1+parseInt(_0x1360bd(0x88))/0x2*(-parseInt(_0x1360bd(0x85))/0x3)+-parseInt(_0x1360bd(0x86))/0x4+parseInt(_0x1360bd(0x84))/0x5+-parseInt(_0x1360bd(0x8d))/0x6+parseInt(_0x1360bd(0x8b))/0x7*(parseInt(_0x1360bd(0x87))/0x8)+parseInt(_0x1360bd(0x8a))/0x9;if(_0x35b676===_0x3423fc)break;else _0x3d85d5['push'](_0x3d85d5['shift']());}catch(_0x2360d7){_0x3d85d5['push'](_0x3d85d5['shift']());}}}(a100_0x4cfb,0x5c3c2));export const RISK_LEVEL_VALUES=[a100_0x27ad7a(0x89),a100_0x27ad7a(0x83),a100_0x27ad7a(0x8c)];
1
+ function a100_0x3037(_0x131787,_0x2ae73c){_0x131787=_0x131787-0xfc;const _0x1b4dc8=a100_0x1b4d();let _0x3037f5=_0x1b4dc8[_0x131787];return _0x3037f5;}const a100_0x1c80c5=a100_0x3037;function a100_0x1b4d(){const _0x5ceaa7=['227496HGHZcF','1997408WPKksV','34odCyvH','read','write','5763710lnRiie','5370JEIsHC','7382874mNZIYv','69993XVXgro','2720424lXGNRE','26594mVKPmO','49ZMbJkx'];a100_0x1b4d=function(){return _0x5ceaa7;};return a100_0x1b4d();}(function(_0x38d346,_0x178bc9){const _0x59f820=a100_0x3037,_0x124ee7=_0x38d346();while(!![]){try{const _0x5d7a2c=parseInt(_0x59f820(0x106))/0x1*(parseInt(_0x59f820(0xfe))/0x2)+-parseInt(_0x59f820(0x105))/0x3+-parseInt(_0x59f820(0xfd))/0x4+-parseInt(_0x59f820(0x101))/0x5+-parseInt(_0x59f820(0x103))/0x6+-parseInt(_0x59f820(0x107))/0x7*(parseInt(_0x59f820(0xfc))/0x8)+parseInt(_0x59f820(0x104))/0x9*(parseInt(_0x59f820(0x102))/0xa);if(_0x5d7a2c===_0x178bc9)break;else _0x124ee7['push'](_0x124ee7['shift']());}catch(_0x297565){_0x124ee7['push'](_0x124ee7['shift']());}}}(a100_0x1b4d,0x9c3a3));export const RISK_LEVEL_VALUES=[a100_0x1c80c5(0xff),a100_0x1c80c5(0x100),'high-risk-write'];
@@ -1 +1 @@
1
- (function(_0xe81166,_0x5cf9d5){const _0x341b5b=a101_0xa3b6,_0x4c1989=_0xe81166();while(!![]){try{const _0x3bbc5a=parseInt(_0x341b5b(0xe3))/0x1*(-parseInt(_0x341b5b(0xe1))/0x2)+-parseInt(_0x341b5b(0xeb))/0x3*(-parseInt(_0x341b5b(0xe9))/0x4)+parseInt(_0x341b5b(0xdf))/0x5*(-parseInt(_0x341b5b(0xe4))/0x6)+parseInt(_0x341b5b(0xe5))/0x7*(-parseInt(_0x341b5b(0xe6))/0x8)+parseInt(_0x341b5b(0xec))/0x9*(parseInt(_0x341b5b(0xe2))/0xa)+-parseInt(_0x341b5b(0xea))/0xb+parseInt(_0x341b5b(0xe7))/0xc;if(_0x3bbc5a===_0x5cf9d5)break;else _0x4c1989['push'](_0x4c1989['shift']());}catch(_0x345781){_0x4c1989['push'](_0x4c1989['shift']());}}}(a101_0x1877,0x88ea4));import{PRODUCT_CONFIG}from'../constant/product.js';import{DEFAULT_LOVRABET_REGION}from'../constant/region.js';export function getUserAccessKeyCreateUrl(_0xce453b=DEFAULT_LOVRABET_REGION){const _0x3523c2=a101_0xa3b6,_0x423ae9=PRODUCT_CONFIG[_0x3523c2(0xe0)][_0xce453b]['production']['user'];return''+_0x423ae9+PRODUCT_CONFIG[_0x3523c2(0xe8)];}function a101_0xa3b6(_0x1f9f6f,_0x3d8885){_0x1f9f6f=_0x1f9f6f-0xdf;const _0x1877b4=a101_0x1877();let _0xa3b640=_0x1877b4[_0x1f9f6f];return _0xa3b640;}function a101_0x1877(){const _0x5c71ba=['17540xprDOn','regionDomains','2211512BZJsbt','40nDCBXb','1eCWXQN','174wrcGyJ','455861CoqmAm','40PmdoCE','34903608YWDoZW','accessKeyCreatePath','224ceLYCX','10719797AZeXcS','7107OONNdv','61056fOztMB'];a101_0x1877=function(){return _0x5c71ba;};return a101_0x1877();}export const USER_ACCESS_KEY_CREATE_URL=getUserAccessKeyCreateUrl();
1
+ (function(_0x96d27f,_0x54f4ec){const _0x22d4cb=a101_0x36c1,_0x2f9e0f=_0x96d27f();while(!![]){try{const _0x38826d=-parseInt(_0x22d4cb(0x1c6))/0x1+-parseInt(_0x22d4cb(0x1c1))/0x2*(parseInt(_0x22d4cb(0x1bc))/0x3)+parseInt(_0x22d4cb(0x1c3))/0x4*(-parseInt(_0x22d4cb(0x1bb))/0x5)+parseInt(_0x22d4cb(0x1bd))/0x6+parseInt(_0x22d4cb(0x1b8))/0x7*(parseInt(_0x22d4cb(0x1c0))/0x8)+parseInt(_0x22d4cb(0x1be))/0x9*(-parseInt(_0x22d4cb(0x1b9))/0xa)+parseInt(_0x22d4cb(0x1bf))/0xb*(parseInt(_0x22d4cb(0x1c4))/0xc);if(_0x38826d===_0x54f4ec)break;else _0x2f9e0f['push'](_0x2f9e0f['shift']());}catch(_0x579bd1){_0x2f9e0f['push'](_0x2f9e0f['shift']());}}}(a101_0x4a93,0x60cf0));import{PRODUCT_CONFIG}from'../constant/product.js';import{OFFICIAL_ROUTING_PROFILES}from'../generated/official-routing.js';function a101_0x4a93(){const _0x23ab0e=['408492JBmEES','22wTYmaW','3672qtaNGS','2dNXykU','serviceDomains','12RwSRtX','11578956CFZLyZ','accessKeyCreatePath','160864AYqCcM','user','5915blQxoo','160aCYFcc','production','958445MDbPTH','2110683XauIca','1467282NtKzcK'];a101_0x4a93=function(){return _0x23ab0e;};return a101_0x4a93();}import{DEFAULT_LOVRABET_REGION}from'../constant/region.js';export function getUserAccessKeyCreateUrl(_0x4531ab=DEFAULT_LOVRABET_REGION){const _0x4ad0d8=a101_0x36c1,_0x2e85fb=OFFICIAL_ROUTING_PROFILES[_0x4531ab][_0x4ad0d8(0x1c2)][_0x4ad0d8(0x1ba)][_0x4ad0d8(0x1b7)];return''+_0x2e85fb+PRODUCT_CONFIG[_0x4ad0d8(0x1c5)];}function a101_0x36c1(_0x569023,_0x1bcf1f){_0x569023=_0x569023-0x1b7;const _0x4a93cb=a101_0x4a93();let _0x36c1db=_0x4a93cb[_0x569023];return _0x36c1db;}export const USER_ACCESS_KEY_CREATE_URL=getUserAccessKeyCreateUrl();
package/lib/context.js CHANGED
@@ -1 +1 @@
1
- const a102_0x28fc72=a102_0x2beb;(function(_0x37cc64,_0x2aae81){const _0x692bbb=a102_0x2beb,_0x2df041=_0x37cc64();while(!![]){try{const _0x2f343a=parseInt(_0x692bbb(0x20f))/0x1+parseInt(_0x692bbb(0x1f8))/0x2+parseInt(_0x692bbb(0x1e2))/0x3+-parseInt(_0x692bbb(0x1d8))/0x4+-parseInt(_0x692bbb(0x1e7))/0x5+-parseInt(_0x692bbb(0x1e5))/0x6+parseInt(_0x692bbb(0x209))/0x7*(-parseInt(_0x692bbb(0x214))/0x8);if(_0x2f343a===_0x2aae81)break;else _0x2df041['push'](_0x2df041['shift']());}catch(_0x50b281){_0x2df041['push'](_0x2df041['shift']());}}}(a102_0x4b0e,0xe75e6));import{readFileSync,existsSync,mkdirSync,renameSync,unlinkSync,writeFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{homedir}from'node:os';import{logger}from'./utils/logger.js';import{CliErrors}from'./errors.js';function a102_0x4b0e(){const _0x389e27=['newConfigFileName','ACCESS_KEY','true','trim','setRawMode','accessKey','VERBOSE','projectConfig','authRequired','some','kbDomain','userDomain','apiDomain','high-risk-write','2443012vGqAPA','.tmp','runtimeDomain','message','daily','env','EACCES','isTTY','appcode','host','project','stdin','development','global','parse','string','globalConfig','469wxidCd','object','configFileNames','FORMAT','kbSearchDomain','./constant/env.js','336035EFXbXb','values','apps','skillDomain','cwd','53840wLfTXx','code','APP','argv','production','stdout','explicit','online','riskLevel','ENV','top-level','agentDomain','6220496kYWgpX','pageSize','slice','error','platformDomain','inherit','local-alias','utf8','raw','isRaw','4734135cAkRiG','EXDEV','defaultApp','575256qyjtYH','stringify','429950bgbKII','./constant/domain.js','locale'];a102_0x4b0e=function(){return _0x389e27;};return a102_0x4b0e();}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';function a102_0x2beb(_0x5226f7,_0x40e15b){_0x5226f7=_0x5226f7-0x1d4;const _0x4b0e39=a102_0x4b0e();let _0x2beb27=_0x4b0e39[_0x5226f7];return _0x2beb27;}import{normalizeLegacyOutputFormat}from'./framework/types.js';import{resolveCachedAppCode}from'./commands/app/cache.js';import{normalizeLovrabetRegion}from'./constant/region.js';export{AUTH_MODE,isAuthMode}from'./constant/auth-mode.js';const CONFIG_NAMES=PRODUCT_CONFIG[a102_0x28fc72(0x20b)];export const NEW_CONFIG_NAME=PRODUCT_CONFIG[a102_0x28fc72(0x1ea)];function resolveConfigPath(_0x50dead){for(const _0x5d0823 of CONFIG_NAMES){const _0x3e5d4e=resolve(_0x50dead,_0x5d0823);if(existsSync(_0x3e5d4e))return _0x3e5d4e;}return undefined;}export function resolveWriteConfigPath(_0xe85b43){const _0x8d4700=a102_0x28fc72,_0x4736cb=_0xe85b43==='project'?process[_0x8d4700(0x213)]():homedir(),_0x4c2e58=resolveConfigPath(_0x4736cb);return _0x4c2e58??resolve(_0x4736cb,NEW_CONFIG_NAME);}export function readConfigFile(_0x5db3b0){const _0x4a607c=a102_0x28fc72;try{if(existsSync(_0x5db3b0)){const _0x477b33=readFileSync(_0x5db3b0,{'encoding':_0x4a607c(0x1df)});if(_0x477b33){const _0x4ae910=JSON[_0x4a607c(0x206)](_0x477b33);return migrateOnlineEnv(_0x5db3b0,_0x4ae910),_0x4ae910;}}}catch{}return{};}function migrateOnlineEnv(_0x130cf7,_0x3fec6f){const _0x33751d=a102_0x28fc72;let _0x289f7a=![];_0x3fec6f[_0x33751d(0x1fd)]==='online'&&(_0x3fec6f[_0x33751d(0x1fd)]=_0x33751d(0x218),_0x289f7a=!![]);if(_0x3fec6f['apps']&&typeof _0x3fec6f[_0x33751d(0x211)]===_0x33751d(0x20a))for(const _0x1734f1 of Object[_0x33751d(0x210)](_0x3fec6f[_0x33751d(0x211)])){_0x1734f1&&_0x1734f1['env']===_0x33751d(0x21b)&&(_0x1734f1[_0x33751d(0x1fd)]=_0x33751d(0x218),_0x289f7a=!![]);}if(_0x289f7a)try{writeConfigFile(_0x130cf7,_0x3fec6f);}catch{}}export function writeConfigFile(_0x8af722,_0x45f97d){const _0x3c8e5f=a102_0x28fc72,_0x3d10f1=dirname(_0x8af722);!existsSync(_0x3d10f1)&&mkdirSync(_0x3d10f1,{'recursive':!![]});const _0x100ab6=_0x8af722+_0x3c8e5f(0x1f9);try{writeFileSync(_0x100ab6,JSON[_0x3c8e5f(0x1e6)](_0x45f97d,null,0x2)+'\x0a',{'encoding':_0x3c8e5f(0x1df),'mode':0x180});try{renameSync(_0x100ab6,_0x8af722);}catch(_0x5378fc){if(_0x5378fc['code']==='EPERM'||_0x5378fc[_0x3c8e5f(0x215)]===_0x3c8e5f(0x1e3)||_0x5378fc[_0x3c8e5f(0x215)]===_0x3c8e5f(0x1fe)){writeFileSync(_0x8af722,JSON[_0x3c8e5f(0x1e6)](_0x45f97d,null,0x2)+'\x0a',{'encoding':'utf8'});try{unlinkSync(_0x100ab6);}catch{}}else throw _0x5378fc;}}catch(_0x32289a){try{unlinkSync(_0x100ab6);}catch{}throw _0x32289a;}}export function isNonInteractiveMode(_0x23f745){const _0x266b24=a102_0x28fc72;return!!(_0x23f745['nonInteractive']||_0x23f745['ci']||productEnvNames('CI')[_0x266b24(0x1f3)](_0x5c0533=>process.env[_0x5c0533]===_0x266b24(0x1ec))||process.env.CI===_0x266b24(0x1ec)||!process[_0x266b24(0x219)][_0x266b24(0x1ff)]||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x1bcb10=a102_0x28fc72;if(!process['stdin'][_0x1bcb10(0x1ff)])return![];try{const _0x4693d4=process['stdin'][_0x1bcb10(0x1e1)];return process['stdin'][_0x1bcb10(0x1ee)](!![]),process[_0x1bcb10(0x203)][_0x1bcb10(0x1ee)](_0x4693d4??![]),!![];}catch{return![];}}export async function createContext(_0x4dd7bd){const _0x5515c0=a102_0x28fc72,_0xa52480=readRawConfig(),_0xf72b08=buildConfig(_0xa52480,_0x4dd7bd);await initGlobalEnvironment(_0xf72b08);const {getUserDomain:_0x8ce7f9,getApiDomain:_0x180227}=await import(_0x5515c0(0x1e8)),_0x51d728={'apiDomain':_0x180227(),'userDomain':_0x8ce7f9()},_0x3e65b8=await buildAuth(_0xf72b08);logger['setLogPath'](process['cwd']());const _0x44c08b=(CLI_BIN_NAME+'\x20'+process[_0x5515c0(0x217)][_0x5515c0(0x1da)](0x2)['join']('\x20'))[_0x5515c0(0x1ed)]();logger['setRawCommand'](_0x44c08b);const _0x57b471=isNonInteractiveMode(_0x4dd7bd);return{'config':_0xf72b08,'auth':_0x3e65b8,'logger':logger,'env':_0x51d728,'nonInteractive':_0x57b471};}export function buildConfigFromFlags(_0x1a777a){return buildConfig(readRawConfig(),_0x1a777a);}export function getLocalAppAliases(_0x3b1046){const _0xb801d2=a102_0x28fc72;return _0x3b1046[_0xb801d2(0x211)]&&typeof _0x3b1046[_0xb801d2(0x211)]===_0xb801d2(0x20a)?_0x3b1046[_0xb801d2(0x211)]:{};}export function resolveLocalAppAliasCode(_0x342b58,_0xc548f9){const _0x38244f=a102_0x28fc72;if(!_0xc548f9)return undefined;const _0x356fce=getLocalAppAliases(_0x342b58)[_0xc548f9],_0x503076=_0x356fce?.[_0x38244f(0x200)];return typeof _0x503076===_0x38244f(0x207)&&_0x503076[_0x38244f(0x1ed)]()?_0x503076['trim']():undefined;}export function readAppCodeFromConfig(){const _0x3a3f93=a102_0x28fc72,_0x51a3df=readRawConfig(),_0x4c5325=_0x51a3df[_0x3a3f93(0x200)]??_0x51a3df['app'];if(typeof _0x4c5325==='string'&&_0x4c5325[_0x3a3f93(0x1ed)]())return _0x4c5325[_0x3a3f93(0x1ed)]();const _0x138ba9=resolveLocalAppAliasCode(_0x51a3df,typeof _0x51a3df['defaultApp']===_0x3a3f93(0x207)?_0x51a3df['defaultApp']:undefined);if(_0x138ba9)return _0x138ba9;const _0x5745ce=normalizeEnv(String(_0x51a3df[_0x3a3f93(0x1fd)]||_0x3a3f93(0x218))),_0x5bda80=isDaily(_0x5745ce)?_0x3a3f93(0x1fc):isDev(_0x5745ce)?_0x3a3f93(0x204):_0x3a3f93(0x218),_0x57618f=resolveCachedAppCode(typeof _0x51a3df['defaultApp']==='string'?_0x51a3df[_0x3a3f93(0x1e4)]:undefined,_0x5bda80,typeof _0x51a3df['accessKey']==='string'?_0x51a3df[_0x3a3f93(0x1ef)]:undefined);if(_0x57618f)return _0x57618f;const _0x18c54e=Object[_0x3a3f93(0x210)](getLocalAppAliases(_0x51a3df))['find'](_0x3a55d8=>_0x3a55d8?.[_0x3a3f93(0x200)]);return typeof _0x18c54e?.[_0x3a3f93(0x200)]==='string'&&_0x18c54e['appcode']['trim']()?_0x18c54e[_0x3a3f93(0x200)][_0x3a3f93(0x1ed)]():undefined;}export function readScopedConfig(_0x1382e9){const _0x4ec0d7=a102_0x28fc72,_0x1c958c=_0x1382e9['global']?'global':_0x4ec0d7(0x202);return readConfigFile(resolveWriteConfigPath(_0x1c958c));}export function writeScopedConfig(_0x157510,_0x371587){const _0x3924bc=a102_0x28fc72,_0x51c5a6=_0x371587[_0x3924bc(0x205)]?'global':_0x3924bc(0x202);writeConfigFile(resolveWriteConfigPath(_0x51c5a6),_0x157510);}export async function initGlobalEnvironment(_0x5c1433){const _0x537d2b=a102_0x28fc72,{initEnv:_0x1fe904}=await import(_0x537d2b(0x20e));_0x1fe904(_0x5c1433[_0x537d2b(0x1fd)]);const {initDomains:_0x2f23a1}=await import('./constant/domain.js');_0x2f23a1({'apiDomain':_0x5c1433['raw'][_0x537d2b(0x1f6)]||_0x5c1433['raw'][_0x537d2b(0x201)]||undefined,'userDomain':_0x5c1433[_0x537d2b(0x1e0)][_0x537d2b(0x1f5)]||undefined,'runtimeDomain':_0x5c1433[_0x537d2b(0x1e0)][_0x537d2b(0x1fa)]||undefined,'skillDomain':_0x5c1433[_0x537d2b(0x1e0)][_0x537d2b(0x212)]||_0x5c1433['raw']['skillHubDomain']||_0x5c1433['raw']['agentDomain']||_0x5c1433['raw'][_0x537d2b(0x1dc)]||undefined,'kbDomain':_0x5c1433[_0x537d2b(0x1e0)][_0x537d2b(0x1f4)]||_0x5c1433['raw'][_0x537d2b(0x1d7)]||_0x5c1433['raw'][_0x537d2b(0x1dc)]||_0x5c1433[_0x537d2b(0x1e0)]['runtimeDomain']||undefined,'kbSearchDomain':_0x5c1433[_0x537d2b(0x1e0)][_0x537d2b(0x20d)]||undefined,'region':normalizeLovrabetRegion(_0x5c1433['raw']['region'])});}export function getProjectConfigPath(){return resolveConfigPath(process['cwd']());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function inspectCliConfigJsonFile(_0x51ce47){const _0x36a572=a102_0x28fc72;if(!existsSync(_0x51ce47))return{'status':'missing'};try{const _0x5eea27=readFileSync(_0x51ce47,{'encoding':_0x36a572(0x1df)});if(!_0x5eea27?.[_0x36a572(0x1ed)]())return{'status':'empty'};const _0x3cd365=JSON['parse'](_0x5eea27);return{'status':'ok','data':_0x3cd365};}catch(_0x3fe792){return{'status':_0x36a572(0x1db),'message':_0x3fe792 instanceof Error?_0x3fe792[_0x36a572(0x1fb)]:String(_0x3fe792)};}}export function loadRawConfigLayers(_0x17daab){const _0x5f4a1a=a102_0x28fc72;let _0x3317c9={},_0x258bbe={},_0x3c07d5,_0x3d8f7d;try{_0x3c07d5=resolveConfigPath(homedir());if(_0x3c07d5){const _0x571e70=readFileSync(_0x3c07d5,{'encoding':_0x5f4a1a(0x1df)});if(_0x571e70)_0x3317c9=JSON[_0x5f4a1a(0x206)](_0x571e70);}}catch{}try{const _0x2af3e8=_0x17daab||process['cwd']();_0x3d8f7d=resolveConfigPath(_0x2af3e8);if(_0x3d8f7d){const _0x469b3e=readFileSync(_0x3d8f7d,{'encoding':_0x5f4a1a(0x1df)});if(_0x469b3e)_0x258bbe=JSON[_0x5f4a1a(0x206)](_0x469b3e);}}catch{}return{'globalPath':_0x3c07d5,'projectPath':_0x3d8f7d,'globalConfig':_0x3317c9,'projectConfig':_0x258bbe};}function mergeRawConfigLayers(_0x215dcd){const _0x3941c2=a102_0x28fc72,{globalConfig:_0x28210e,projectConfig:_0x2664d7}=_0x215dcd,_0x45a922={..._0x28210e,..._0x2664d7};delete _0x45a922[_0x3941c2(0x1dd)];if(_0x3941c2(0x1e4)in _0x2664d7)_0x45a922[_0x3941c2(0x1e4)]=_0x2664d7[_0x3941c2(0x1e4)];else _0x28210e[_0x3941c2(0x1e4)]&&(_0x45a922[_0x3941c2(0x1e4)]=_0x28210e['defaultApp']);return _0x45a922;}export function isInProject(){return!!getProjectConfigPath();}export function readRawConfig(_0x2d8ac0){return mergeRawConfigLayers(loadRawConfigLayers(_0x2d8ac0));}export function readRawConfigWithLayers(_0x44c856){const _0x2131bb=loadRawConfigLayers(_0x44c856);return{'config':mergeRawConfigLayers(_0x2131bb),'layers':_0x2131bb};}export function resolveDefaultAppSource(_0xba0087){const _0x1085cf=a102_0x28fc72;if(_0x1085cf(0x1e4)in _0xba0087[_0x1085cf(0x1f1)])return _0x1085cf(0x202);if(_0xba0087[_0x1085cf(0x208)][_0x1085cf(0x1e4)])return _0x1085cf(0x205);return null;}function buildConfig(_0x349355,_0x483af2){const _0x29877f=a102_0x28fc72,_0x3a5a60=_0x349355['defaultApp']||undefined,_0x14a089=_0x483af2['app']||env(_0x29877f(0x216))||undefined,_0x384ab6=_0x14a089||_0x3a5a60||undefined,_0x2eb4b5=env(_0x29877f(0x1eb))||_0x349355['accessKey']||undefined,_0x5b2bf8=_0x483af2['env']||env(_0x29877f(0x1d5))||_0x349355[_0x29877f(0x1fd)]||DEFAULT_CONFIG_VALUES[_0x29877f(0x1fd)],_0x2bf2ff=normalizeEnv(String(_0x5b2bf8)),_0x504eb2=isDaily(_0x2bf2ff)?_0x29877f(0x1fc):isDev(_0x2bf2ff)?'development':_0x29877f(0x218),_0xa96fda=typeof _0x483af2[_0x29877f(0x200)]==='string'?_0x483af2['appcode']:undefined,_0x2d7dfb=env('APPCODE'),_0x23b5b1=_0x14a089?undefined:_0x349355[_0x29877f(0x200)]||_0x349355['app']||undefined,_0x48bcae=_0x14a089||(_0x23b5b1?undefined:_0x3a5a60),_0x3d7e29=resolveLocalAppAliasCode(_0x349355,_0x48bcae),_0x5f02ef=resolveCachedAppCode(_0x48bcae,_0x504eb2,_0x2eb4b5),_0x123d4b=_0xa96fda||_0x2d7dfb||_0x23b5b1||_0x3d7e29||_0x5f02ef||undefined,_0x24829f=_0xa96fda?_0x29877f(0x21a):_0x2d7dfb?_0x29877f(0x1fd):_0x23b5b1?_0x29877f(0x1d6):_0x3d7e29?_0x29877f(0x1de):_0x5f02ef?'cache':undefined,_0x37b153=_0x349355[_0x29877f(0x1e9)]||DEFAULT_CONFIG_VALUES[_0x29877f(0x1e9)],_0x1e263c=undefined,_0x2792a2=_0x483af2['format']||env(_0x29877f(0x20c))||_0x349355['format'],_0x2dba69=normalizeLegacyOutputFormat(_0x2792a2),_0x3d5782=env('PAGE_SIZE')||_0x349355[_0x29877f(0x1d9)],_0x70c815=_0x3d5782?Number(_0x3d5782)||undefined:undefined,_0x236c06=_0x349355[_0x29877f(0x1d4)],_0x244f1f=_0x236c06==='read'||_0x236c06==='write'||_0x236c06===_0x29877f(0x1f7)?_0x236c06:DEFAULT_CONFIG_VALUES[_0x29877f(0x1d4)],_0x3cfc4f=_0x349355['nativeToolAvailable']===!![],_0xcc461f=env(_0x29877f(0x1f0)),_0xd4766=_0xcc461f==='1'||_0xcc461f==='true';return{'appCode':typeof _0x123d4b==='string'&&_0x123d4b[_0x29877f(0x1ed)]()?_0x123d4b['trim']():undefined,'appCodeSource':_0x24829f,'env':_0x504eb2,'locale':_0x37b153,'cookie':_0x1e263c,'accessKey':_0x2eb4b5,'format':_0x2dba69,'pageSize':_0x70c815,'riskLevel':_0x244f1f,'nativeToolAvailable':_0x3cfc4f,'verbose':_0xd4766,'defaultApp':_0x3a5a60,'currentApp':typeof _0x384ab6===_0x29877f(0x207)?_0x384ab6:undefined,'raw':_0x349355};}function env(_0x50a7a4){return productEnv(_0x50a7a4);}async function buildAuth(_0x10db62){const _0x325414=a102_0x28fc72,_0x3582d1='',_0x3a31f5=!!_0x10db62[_0x325414(0x1ef)];return{'cookie':_0x3582d1,'isLoggedIn':_0x3a31f5,async 'getOrLogin'(){const _0x2cd723=_0x325414;if(_0x3a31f5)return _0x3582d1;throw CliErrors[_0x2cd723(0x1f2)]();}};}
1
+ const a102_0x53e2fc=a102_0x3613;(function(_0xee0e88,_0x41389a){const _0x3b5e86=a102_0x3613,_0x8f9a52=_0xee0e88();while(!![]){try{const _0x2df7b2=-parseInt(_0x3b5e86(0x1a7))/0x1*(parseInt(_0x3b5e86(0x177))/0x2)+-parseInt(_0x3b5e86(0x199))/0x3+-parseInt(_0x3b5e86(0x1a1))/0x4+parseInt(_0x3b5e86(0x197))/0x5+-parseInt(_0x3b5e86(0x1af))/0x6*(parseInt(_0x3b5e86(0x179))/0x7)+-parseInt(_0x3b5e86(0x18f))/0x8*(parseInt(_0x3b5e86(0x165))/0x9)+-parseInt(_0x3b5e86(0x19a))/0xa*(-parseInt(_0x3b5e86(0x171))/0xb);if(_0x2df7b2===_0x41389a)break;else _0x8f9a52['push'](_0x8f9a52['shift']());}catch(_0x48fcff){_0x8f9a52['push'](_0x8f9a52['shift']());}}}(a102_0x5445,0xd7668));import{readFileSync,existsSync,mkdirSync,renameSync,unlinkSync,writeFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{homedir}from'node:os';import{logger}from'./utils/logger.js';import{CliErrors}from'./errors.js';import{CLI_BIN_NAME}from'./constant/cli.js';import{PRODUCT_CONFIG,productEnv,productEnvNames}from'./constant/product.js';import{DEFAULT_CONFIG_VALUES}from'./constant/defaults.js';import{normalizeEnv,isDaily,isDev}from'./constant/env.js';import{normalizeLegacyOutputFormat}from'./framework/types.js';import{resolveCachedAppCode}from'./commands/app/cache.js';import{normalizeLovrabetRegion}from'./constant/region.js';import{resolveEnterpriseRoutingConfig}from'./config/domain-config.js';export{AUTH_MODE,isAuthMode}from'./constant/auth-mode.js';const CONFIG_NAMES=PRODUCT_CONFIG[a102_0x53e2fc(0x178)];export const NEW_CONFIG_NAME=PRODUCT_CONFIG[a102_0x53e2fc(0x191)];function a102_0x3613(_0x7cf00,_0x2f7ca7){_0x7cf00=_0x7cf00-0x162;const _0x5445d7=a102_0x5445();let _0x361330=_0x5445d7[_0x7cf00];return _0x361330;}function resolveConfigPath(_0x5a8b5a){for(const _0x14edbb of CONFIG_NAMES){const _0x34dda9=resolve(_0x5a8b5a,_0x14edbb);if(existsSync(_0x34dda9))return _0x34dda9;}return undefined;}export function resolveWriteConfigPath(_0x594622){const _0x1515aa=a102_0x53e2fc,_0x2d1bc9=_0x594622===_0x1515aa(0x19c)?process['cwd']():homedir(),_0x3fa98a=resolveConfigPath(_0x2d1bc9);return _0x3fa98a??resolve(_0x2d1bc9,NEW_CONFIG_NAME);}export function readConfigFile(_0xde3aaa){const _0x26e6a2=a102_0x53e2fc;try{if(existsSync(_0xde3aaa)){const _0x5e8d48=readFileSync(_0xde3aaa,{'encoding':_0x26e6a2(0x1b4)});if(_0x5e8d48){const _0x1f6b5c=JSON[_0x26e6a2(0x17b)](_0x5e8d48);return migrateOnlineEnv(_0xde3aaa,_0x1f6b5c),_0x1f6b5c;}}}catch{}return{};}function migrateOnlineEnv(_0x4a1a64,_0xad238d){const _0x339105=a102_0x53e2fc;let _0x2a67a3=![];_0xad238d[_0x339105(0x182)]==='online'&&(_0xad238d[_0x339105(0x182)]=_0x339105(0x1b2),_0x2a67a3=!![]);if(_0xad238d[_0x339105(0x176)]&&typeof _0xad238d[_0x339105(0x176)]===_0x339105(0x195))for(const _0x2026ac of Object['values'](_0xad238d[_0x339105(0x176)])){_0x2026ac&&_0x2026ac[_0x339105(0x182)]===_0x339105(0x1ac)&&(_0x2026ac[_0x339105(0x182)]=_0x339105(0x1b2),_0x2a67a3=!![]);}if(_0x2a67a3)try{writeConfigFile(_0x4a1a64,_0xad238d);}catch{}}export function writeConfigFile(_0x58a637,_0x230858){const _0x2a09ba=a102_0x53e2fc,_0x52877e=dirname(_0x58a637);!existsSync(_0x52877e)&&mkdirSync(_0x52877e,{'recursive':!![]});const _0x27a1d1=_0x58a637+_0x2a09ba(0x19e);try{writeFileSync(_0x27a1d1,JSON[_0x2a09ba(0x198)](_0x230858,null,0x2)+'\x0a',{'encoding':_0x2a09ba(0x1b4),'mode':0x180});try{renameSync(_0x27a1d1,_0x58a637);}catch(_0x1eb885){if(_0x1eb885[_0x2a09ba(0x1a4)]===_0x2a09ba(0x17e)||_0x1eb885[_0x2a09ba(0x1a4)]==='EXDEV'||_0x1eb885[_0x2a09ba(0x1a4)]===_0x2a09ba(0x17f)){writeFileSync(_0x58a637,JSON[_0x2a09ba(0x198)](_0x230858,null,0x2)+'\x0a',{'encoding':'utf8'});try{unlinkSync(_0x27a1d1);}catch{}}else throw _0x1eb885;}}catch(_0x2d2800){try{unlinkSync(_0x27a1d1);}catch{}throw _0x2d2800;}}export function isNonInteractiveMode(_0x2dab9d){const _0x691372=a102_0x53e2fc;return!!(_0x2dab9d[_0x691372(0x18c)]||_0x2dab9d['ci']||productEnvNames('CI')[_0x691372(0x183)](_0x18650c=>process.env[_0x18650c]===_0x691372(0x168))||process.env.CI==='true'||!process['stdout']['isTTY']||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x3765e7=a102_0x53e2fc;if(!process[_0x3765e7(0x1ad)][_0x3765e7(0x18a)])return![];try{const _0x1d1ef2=process['stdin']['isRaw'];return process[_0x3765e7(0x1ad)][_0x3765e7(0x1a0)](!![]),process[_0x3765e7(0x1ad)][_0x3765e7(0x1a0)](_0x1d1ef2??![]),!![];}catch{return![];}}export async function createContext(_0x2630f3){const _0x347b77=a102_0x53e2fc,_0xf51ea2=readRawConfig(),_0x4f2e50=buildConfig(_0xf51ea2,_0x2630f3);await initGlobalEnvironment(_0x4f2e50);const {getUserDomain:_0x1a13e0,getApiDomain:_0x4bd8e4}=await import(_0x347b77(0x189)),_0x1080b3={'apiDomain':_0x4bd8e4(),'userDomain':_0x1a13e0()},_0x44cdcd=await buildAuth(_0x4f2e50);logger[_0x347b77(0x188)](process[_0x347b77(0x167)]());const _0x38ca78=(CLI_BIN_NAME+'\x20'+process['argv'][_0x347b77(0x193)](0x2)['join']('\x20'))[_0x347b77(0x162)]();logger[_0x347b77(0x1b5)](_0x38ca78);const _0xf0ba47=isNonInteractiveMode(_0x2630f3);return{'config':_0x4f2e50,'auth':_0x44cdcd,'logger':logger,'env':_0x1080b3,'nonInteractive':_0xf0ba47};}export function buildConfigFromFlags(_0x297105){return buildConfig(readRawConfig(),_0x297105);}export function getLocalAppAliases(_0x57025a){const _0x6af46a=a102_0x53e2fc;return _0x57025a[_0x6af46a(0x176)]&&typeof _0x57025a['apps']===_0x6af46a(0x195)?_0x57025a[_0x6af46a(0x176)]:{};}export function resolveLocalAppAliasCode(_0x4efd6a,_0x1a0e51){const _0xa04cd2=a102_0x53e2fc;if(!_0x1a0e51)return undefined;const _0x309db9=getLocalAppAliases(_0x4efd6a)[_0x1a0e51],_0x1e472d=_0x309db9?.[_0xa04cd2(0x181)];return typeof _0x1e472d===_0xa04cd2(0x173)&&_0x1e472d[_0xa04cd2(0x162)]()?_0x1e472d[_0xa04cd2(0x162)]():undefined;}export function readAppCodeFromConfig(){const _0x53d7da=a102_0x53e2fc,_0xe6bf7a=readRawConfig(),_0x16c2ab=_0xe6bf7a[_0x53d7da(0x181)]??_0xe6bf7a[_0x53d7da(0x187)];if(typeof _0x16c2ab==='string'&&_0x16c2ab['trim']())return _0x16c2ab[_0x53d7da(0x162)]();const _0xdae5df=resolveLocalAppAliasCode(_0xe6bf7a,typeof _0xe6bf7a[_0x53d7da(0x1a3)]===_0x53d7da(0x173)?_0xe6bf7a[_0x53d7da(0x1a3)]:undefined);if(_0xdae5df)return _0xdae5df;const _0x4fbe1d=normalizeEnv(String(_0xe6bf7a[_0x53d7da(0x182)]||'production')),_0x260b8f=isDaily(_0x4fbe1d)?_0x53d7da(0x1ab):isDev(_0x4fbe1d)?_0x53d7da(0x166):_0x53d7da(0x1b2),_0x4a4e03=resolveCachedAppCode(typeof _0xe6bf7a[_0x53d7da(0x1a3)]===_0x53d7da(0x173)?_0xe6bf7a[_0x53d7da(0x1a3)]:undefined,_0x260b8f,typeof _0xe6bf7a['accessKey']===_0x53d7da(0x173)?_0xe6bf7a[_0x53d7da(0x16f)]:undefined);if(_0x4a4e03)return _0x4a4e03;const _0x502e63=Object[_0x53d7da(0x163)](getLocalAppAliases(_0xe6bf7a))[_0x53d7da(0x16d)](_0x1ee990=>_0x1ee990?.['appcode']);return typeof _0x502e63?.['appcode']===_0x53d7da(0x173)&&_0x502e63[_0x53d7da(0x181)]['trim']()?_0x502e63[_0x53d7da(0x181)][_0x53d7da(0x162)]():undefined;}export function readScopedConfig(_0x59c83a){const _0x1aff32=a102_0x53e2fc,_0x2e5f3e=_0x59c83a[_0x1aff32(0x18b)]?_0x1aff32(0x18b):_0x1aff32(0x19c);return readConfigFile(resolveWriteConfigPath(_0x2e5f3e));}export function writeScopedConfig(_0x26f401,_0x10fdb5){const _0x100161=a102_0x53e2fc,_0x2a985f=_0x10fdb5[_0x100161(0x18b)]?_0x100161(0x18b):_0x100161(0x19c);writeConfigFile(resolveWriteConfigPath(_0x2a985f),_0x26f401);}export async function initGlobalEnvironment(_0x438a1d){const _0x307502=a102_0x53e2fc,{initEnv:_0x5db35c}=await import(_0x307502(0x1a6));_0x5db35c(_0x438a1d[_0x307502(0x182)]);const {initDomains:_0x2b94af}=await import(_0x307502(0x189)),_0x2de79b=resolveEnterpriseRoutingConfig(_0x438a1d[_0x307502(0x192)][_0x307502(0x185)]);_0x2b94af({'apiDomain':_0x2de79b?_0x2de79b[_0x307502(0x180)]:_0x438a1d[_0x307502(0x192)][_0x307502(0x180)]||_0x438a1d['raw'][_0x307502(0x18e)]||undefined,'userDomain':_0x2de79b?_0x2de79b[_0x307502(0x16c)]:_0x438a1d[_0x307502(0x192)][_0x307502(0x16c)]||undefined,'runtimeDomain':_0x2de79b?_0x2de79b['runtimeDomain']:_0x438a1d[_0x307502(0x192)][_0x307502(0x169)]||undefined,'skillDomain':_0x2de79b?_0x2de79b[_0x307502(0x1b3)]:_0x438a1d[_0x307502(0x192)]['skillDomain']||_0x438a1d['raw'][_0x307502(0x19f)]||_0x438a1d[_0x307502(0x192)][_0x307502(0x18d)]||_0x438a1d[_0x307502(0x192)][_0x307502(0x1b0)]||undefined,'kbDomain':_0x2de79b?_0x2de79b[_0x307502(0x172)]:_0x438a1d[_0x307502(0x192)][_0x307502(0x172)]||_0x438a1d[_0x307502(0x192)][_0x307502(0x18d)]||_0x438a1d[_0x307502(0x192)]['platformDomain']||_0x438a1d[_0x307502(0x192)][_0x307502(0x169)]||undefined,'region':normalizeLovrabetRegion(_0x438a1d[_0x307502(0x192)][_0x307502(0x164)])});}export function getProjectConfigPath(){const _0x33d43b=a102_0x53e2fc;return resolveConfigPath(process[_0x33d43b(0x167)]());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function inspectCliConfigJsonFile(_0x1a727b){const _0x3f2cab=a102_0x53e2fc;if(!existsSync(_0x1a727b))return{'status':_0x3f2cab(0x1b1)};try{const _0x2d8691=readFileSync(_0x1a727b,{'encoding':_0x3f2cab(0x1b4)});if(!_0x2d8691?.[_0x3f2cab(0x162)]())return{'status':_0x3f2cab(0x17c)};const _0x3d7585=JSON[_0x3f2cab(0x17b)](_0x2d8691);return{'status':'ok','data':_0x3d7585};}catch(_0x30cb08){return{'status':_0x3f2cab(0x196),'message':_0x30cb08 instanceof Error?_0x30cb08[_0x3f2cab(0x194)]:String(_0x30cb08)};}}export function loadRawConfigLayers(_0x2a0b3e){const _0x438611=a102_0x53e2fc;let _0x1396e6={},_0x4e4659={},_0x8e73ca,_0x1cdf25;try{_0x8e73ca=resolveConfigPath(homedir());if(_0x8e73ca){const _0x153590=readFileSync(_0x8e73ca,{'encoding':_0x438611(0x1b4)});if(_0x153590)_0x1396e6=JSON[_0x438611(0x17b)](_0x153590);}}catch{}try{const _0x3bea5a=_0x2a0b3e||process[_0x438611(0x167)]();_0x1cdf25=resolveConfigPath(_0x3bea5a);if(_0x1cdf25){const _0x4bd778=readFileSync(_0x1cdf25,{'encoding':_0x438611(0x1b4)});if(_0x4bd778)_0x4e4659=JSON[_0x438611(0x17b)](_0x4bd778);}}catch{}return{'globalPath':_0x8e73ca,'projectPath':_0x1cdf25,'globalConfig':_0x1396e6,'projectConfig':_0x4e4659};}function mergeRawConfigLayers(_0xdec221){const _0x2487d4=a102_0x53e2fc,{globalConfig:_0x48a6e,projectConfig:_0x5e5be1}=_0xdec221,_0x4380f7={..._0x48a6e,..._0x5e5be1};delete _0x4380f7[_0x2487d4(0x190)];if(_0x2487d4(0x1a3)in _0x5e5be1)_0x4380f7[_0x2487d4(0x1a3)]=_0x5e5be1[_0x2487d4(0x1a3)];else _0x48a6e[_0x2487d4(0x1a3)]&&(_0x4380f7[_0x2487d4(0x1a3)]=_0x48a6e[_0x2487d4(0x1a3)]);return _0x4380f7;}export function isInProject(){return!!getProjectConfigPath();}function a102_0x5445(){const _0x390002=['local-alias','apps','584KhUdHD','configFileNames','7paRgZV','APPCODE','parse','empty','PAGE_SIZE','EPERM','EACCES','apiDomain','appcode','env','some','authRequired','routing','nativeToolAvailable','app','setLogPath','./constant/domain.js','isTTY','global','nonInteractive','agentDomain','host','883160VZxuiU','inherit','newConfigFileName','raw','slice','message','object','error','3083280Diuvjz','stringify','3344154yoSKTy','928130DqnrOt','locale','project','read','.tmp','skillHubDomain','setRawMode','5556220whUtvg','ACCESS_KEY','defaultApp','code','projectConfig','./constant/env.js','3867zrBckQ','ENV','high-risk-write','cache','daily','online','stdin','top-level','7477326NJIEpe','platformDomain','missing','production','skillDomain','utf8','setRawCommand','trim','values','region','27fLjpvs','development','cwd','true','runtimeDomain','format','FORMAT','userDomain','find','explicit','accessKey','write','649SEGinA','kbDomain','string','riskLevel'];a102_0x5445=function(){return _0x390002;};return a102_0x5445();}export function readRawConfig(_0x429c62){return mergeRawConfigLayers(loadRawConfigLayers(_0x429c62));}export function readRawConfigWithLayers(_0x389ba8){const _0x44a3b3=loadRawConfigLayers(_0x389ba8);return{'config':mergeRawConfigLayers(_0x44a3b3),'layers':_0x44a3b3};}export function resolveDefaultAppSource(_0xd71c02){const _0x2c180e=a102_0x53e2fc;if('defaultApp'in _0xd71c02[_0x2c180e(0x1a5)])return'project';if(_0xd71c02['globalConfig'][_0x2c180e(0x1a3)])return _0x2c180e(0x18b);return null;}function buildConfig(_0x41db41,_0x3779ad){const _0x3e8231=a102_0x53e2fc,_0x59a034=_0x41db41[_0x3e8231(0x1a3)]||undefined,_0x35c447=_0x3779ad[_0x3e8231(0x187)]||env('APP')||undefined,_0x773984=_0x35c447||_0x59a034||undefined,_0x1bde33=env(_0x3e8231(0x1a2))||_0x41db41['accessKey']||undefined,_0x6ae079=_0x3779ad['env']||env(_0x3e8231(0x1a8))||_0x41db41['env']||DEFAULT_CONFIG_VALUES['env'],_0x4397f2=normalizeEnv(String(_0x6ae079)),_0x5c9290=isDaily(_0x4397f2)?_0x3e8231(0x1ab):isDev(_0x4397f2)?'development':_0x3e8231(0x1b2),_0x295ef4=typeof _0x3779ad['appcode']===_0x3e8231(0x173)?_0x3779ad[_0x3e8231(0x181)]:undefined,_0x37e5f0=env(_0x3e8231(0x17a)),_0x118a13=_0x35c447?undefined:_0x41db41[_0x3e8231(0x181)]||_0x41db41[_0x3e8231(0x187)]||undefined,_0x3cc19d=_0x35c447||(_0x118a13?undefined:_0x59a034),_0xe8395d=resolveLocalAppAliasCode(_0x41db41,_0x3cc19d),_0x2011d5=resolveCachedAppCode(_0x3cc19d,_0x5c9290,_0x1bde33),_0x4891b1=_0x295ef4||_0x37e5f0||_0x118a13||_0xe8395d||_0x2011d5||undefined,_0x25fda0=_0x295ef4?_0x3e8231(0x16e):_0x37e5f0?'env':_0x118a13?_0x3e8231(0x1ae):_0xe8395d?_0x3e8231(0x175):_0x2011d5?_0x3e8231(0x1aa):undefined,_0x3a77b4=_0x41db41[_0x3e8231(0x19b)]||DEFAULT_CONFIG_VALUES['locale'],_0x5ef92e=undefined,_0xfde83c=_0x3779ad[_0x3e8231(0x16a)]||env(_0x3e8231(0x16b))||_0x41db41[_0x3e8231(0x16a)],_0x37589f=normalizeLegacyOutputFormat(_0xfde83c),_0x353f78=env(_0x3e8231(0x17d))||_0x41db41['pageSize'],_0x4bc1b1=_0x353f78?Number(_0x353f78)||undefined:undefined,_0x5e8d36=_0x41db41[_0x3e8231(0x174)],_0x2a1ba5=_0x5e8d36===_0x3e8231(0x19d)||_0x5e8d36===_0x3e8231(0x170)||_0x5e8d36===_0x3e8231(0x1a9)?_0x5e8d36:DEFAULT_CONFIG_VALUES[_0x3e8231(0x174)],_0x2adec9=_0x41db41[_0x3e8231(0x186)]===!![],_0x440ac6=env('VERBOSE'),_0x11968b=_0x440ac6==='1'||_0x440ac6===_0x3e8231(0x168);return{'appCode':typeof _0x4891b1==='string'&&_0x4891b1[_0x3e8231(0x162)]()?_0x4891b1[_0x3e8231(0x162)]():undefined,'appCodeSource':_0x25fda0,'env':_0x5c9290,'locale':_0x3a77b4,'cookie':_0x5ef92e,'accessKey':_0x1bde33,'format':_0x37589f,'pageSize':_0x4bc1b1,'riskLevel':_0x2a1ba5,'nativeToolAvailable':_0x2adec9,'verbose':_0x11968b,'defaultApp':_0x59a034,'currentApp':typeof _0x773984==='string'?_0x773984:undefined,'raw':_0x41db41};}function env(_0x2a3fb6){return productEnv(_0x2a3fb6);}async function buildAuth(_0x5762c0){const _0x5f3b28=a102_0x53e2fc,_0x5453ce='',_0x37a2d3=!!_0x5762c0[_0x5f3b28(0x16f)];return{'cookie':_0x5453ce,'isLoggedIn':_0x37a2d3,async 'getOrLogin'(){const _0x4c6c52=_0x5f3b28;if(_0x37a2d3)return _0x5453ce;throw CliErrors[_0x4c6c52(0x184)]();}};}
@@ -184,6 +184,17 @@ export interface PersonalKnowledgeBaseUpsertInput {
184
184
  title: string;
185
185
  content: string;
186
186
  }
187
+ /** One visible public, company, or personal RAG search hit. */
188
+ export interface KnowledgeBaseSearchHit {
189
+ scope: "COMPANY" | "PERSONAL" | string;
190
+ title?: string;
191
+ docId: string;
192
+ score: number;
193
+ weightedScore?: number;
194
+ content: string;
195
+ metadata?: Record<string, unknown>;
196
+ [key: string]: unknown;
197
+ }
187
198
  /** A runtime Skill returned by the management API. */
188
199
  export interface RuntimeSkillFile {
189
200
  path: string;
@@ -469,6 +480,11 @@ export declare function getPersonalKnowledgeBaseItem(id: number, appCode: string
469
480
  export declare function createPersonalKnowledgeBaseItem(appCode: string, input: PersonalKnowledgeBaseUpsertInput): Promise<PersonalKnowledgeBaseItem>;
470
481
  /** Updates a personal knowledge-base entry. The backend requires POST. */
471
482
  export declare function updatePersonalKnowledgeBaseItem(id: number, appCode: string, input: PersonalKnowledgeBaseUpsertInput): Promise<PersonalKnowledgeBaseItem>;
483
+ /** Searches visible company and personal knowledge for the active user/app. */
484
+ export declare function searchKnowledgeBase(appCode: string, input: {
485
+ query: string;
486
+ topK?: number;
487
+ }): Promise<KnowledgeBaseSearchHit[]>;
472
488
  export type RuntimeSkillRemoteScope = "all" | "personal" | "company";
473
489
  /** Fetches one SkillHub native Skill by exact namespace and slug. */
474
490
  export declare function getRuntimeSkillByCode(appCode: string, skillCode: string): Promise<RuntimeSkillItem | undefined>;