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

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 (175) 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/artifact/index.js +1 -1
  12. package/lib/commands/auth/device.js +1 -1
  13. package/lib/commands/auth/index.js +1 -1
  14. package/lib/commands/auth/prompt.js +1 -1
  15. package/lib/commands/bff/detail.js +1 -1
  16. package/lib/commands/bff/exec.js +1 -1
  17. package/lib/commands/bff/index.js +1 -1
  18. package/lib/commands/cli-skill/index.js +1 -1
  19. package/lib/commands/common/config-policy.js +1 -1
  20. package/lib/commands/common/constraints.js +1 -1
  21. package/lib/commands/common/flags.js +1 -1
  22. package/lib/commands/common/local-file.js +1 -1
  23. package/lib/commands/config/definitions.js +1 -1
  24. package/lib/commands/config/init.js +1 -1
  25. package/lib/commands/config/shared.js +1 -1
  26. package/lib/commands/data/index.js +1 -1
  27. package/lib/commands/dataset/detail.js +1 -1
  28. package/lib/commands/dataset/index.js +1 -1
  29. package/lib/commands/dataset/list.js +1 -1
  30. package/lib/commands/dataset/sdk-doc.js +1 -1
  31. package/lib/commands/doctor.js +1 -1
  32. package/lib/commands/file/index.js +1 -1
  33. package/lib/commands/init.js +1 -1
  34. package/lib/commands/kb/index.js +1 -1
  35. package/lib/commands/logs/index.js +1 -1
  36. package/lib/commands/notification/config-list.js +1 -1
  37. package/lib/commands/notification/index.js +1 -1
  38. package/lib/commands/notification/shared.js +1 -1
  39. package/lib/commands/ocr/index.js +1 -1
  40. package/lib/commands/permit/dataset-get.js +1 -1
  41. package/lib/commands/permit/dataset-set.js +1 -1
  42. package/lib/commands/permit/index.js +1 -1
  43. package/lib/commands/permit/page-get.js +1 -1
  44. package/lib/commands/permit/page-set.js +1 -1
  45. package/lib/commands/permit/role-menus-set.js +1 -1
  46. package/lib/commands/permit/role-menus.js +1 -1
  47. package/lib/commands/permit/shared.js +1 -1
  48. package/lib/commands/personal-bff/index.js +1 -1
  49. package/lib/commands/registry.js +1 -1
  50. package/lib/commands/role/create.js +1 -1
  51. package/lib/commands/role/delete.js +1 -1
  52. package/lib/commands/role/detail.js +1 -1
  53. package/lib/commands/role/index.js +1 -1
  54. package/lib/commands/role/list.js +1 -1
  55. package/lib/commands/role/shared.js +1 -1
  56. package/lib/commands/role/update.js +1 -1
  57. package/lib/commands/role/user-add.js +1 -1
  58. package/lib/commands/role/user-remove.js +1 -1
  59. package/lib/commands/schedule/index.js +1 -1
  60. package/lib/commands/schema.js +1 -1
  61. package/lib/commands/service/dynamic.js +1 -1
  62. package/lib/commands/service/function-name-adapter.js +1 -1
  63. package/lib/commands/service/index.js +1 -1
  64. package/lib/commands/service/registry.js +1 -1
  65. package/lib/commands/skill/commands/create.js +1 -1
  66. package/lib/commands/skill/commands/diagram.js +1 -1
  67. package/lib/commands/skill/commands/install.js +1 -1
  68. package/lib/commands/skill/commands/list.js +1 -1
  69. package/lib/commands/skill/commands/push.js +1 -1
  70. package/lib/commands/skill/commands/validate.js +1 -1
  71. package/lib/commands/skill/diagram.js +1 -1
  72. package/lib/commands/skill/flags.js +1 -1
  73. package/lib/commands/skill/index.js +1 -1
  74. package/lib/commands/skill/manifest-helpers.js +1 -1
  75. package/lib/commands/skill/push-execute.js +1 -1
  76. package/lib/commands/skill/push-flow-helpers.js +1 -1
  77. package/lib/commands/skill/push-retarget.js +1 -1
  78. package/lib/commands/skill/scopes.js +1 -1
  79. package/lib/commands/skill/summary.js +1 -1
  80. package/lib/commands/skill/templates.js +1 -1
  81. package/lib/commands/skill/validate.js +1 -1
  82. package/lib/commands/sql/detail.js +1 -1
  83. package/lib/commands/sql/exec.js +1 -1
  84. package/lib/commands/sql/index.js +1 -1
  85. package/lib/commands/update.js +1 -1
  86. package/lib/commands/user-account/bind.js +1 -1
  87. package/lib/commands/user-account/index.js +1 -1
  88. package/lib/commands/workspace/index.js +1 -1
  89. package/lib/config/domain-config.js +1 -1
  90. package/lib/config/schema.js +1 -1
  91. package/lib/constant/app.js +1 -1
  92. package/lib/constant/auth-mode.js +1 -1
  93. package/lib/constant/cli.js +1 -1
  94. package/lib/constant/defaults.js +1 -1
  95. package/lib/constant/distribution.js +1 -1
  96. package/lib/constant/domain.d.ts +3 -3
  97. package/lib/constant/domain.js +1 -1
  98. package/lib/constant/env.js +1 -1
  99. package/lib/constant/output.js +1 -1
  100. package/lib/constant/product.js +1 -1
  101. package/lib/constant/region.js +1 -1
  102. package/lib/constant/risk.js +1 -1
  103. package/lib/constant/url.js +1 -1
  104. package/lib/context.js +1 -1
  105. package/lib/core/api-client.d.ts +0 -16
  106. package/lib/core/api-client.js +1 -1
  107. package/lib/core/db-resolver.js +1 -1
  108. package/lib/core/kb-search-client.d.ts +30 -0
  109. package/lib/core/kb-search-client.js +1 -0
  110. package/lib/core/sdk-client.js +1 -1
  111. package/lib/errors.js +1 -1
  112. package/lib/framework/build-all-flags.js +1 -1
  113. package/lib/framework/dryrun.js +1 -1
  114. package/lib/framework/flags.js +1 -1
  115. package/lib/framework/help.js +1 -1
  116. package/lib/framework/index.js +1 -1
  117. package/lib/framework/output.js +1 -1
  118. package/lib/framework/preparse.js +1 -1
  119. package/lib/framework/rate-limit.js +1 -1
  120. package/lib/framework/raw-flags.js +1 -1
  121. package/lib/framework/response.js +1 -1
  122. package/lib/framework/runner-confirmation.js +1 -1
  123. package/lib/framework/runner-error.js +1 -1
  124. package/lib/framework/runner.js +1 -1
  125. package/lib/framework/schema-export.js +1 -1
  126. package/lib/framework/service-order.js +1 -1
  127. package/lib/framework/types.d.ts +2 -0
  128. package/lib/framework/types.js +1 -1
  129. package/lib/generated/build-info.d.ts +4 -4
  130. package/lib/generated/build-info.js +1 -1
  131. package/lib/generated/official-routing.js +1 -1
  132. package/lib/generated/routing-contract.js +1 -1
  133. package/lib/help.js +1 -1
  134. package/lib/postinstall.js +1 -1
  135. package/lib/runtime/confirmation.js +1 -1
  136. package/lib/runtime/event.js +1 -1
  137. package/lib/runtime/index.js +1 -1
  138. package/lib/runtime/queue.js +1 -1
  139. package/lib/runtime/resolve.js +1 -1
  140. package/lib/skills/builtin-skill.js +1 -1
  141. package/lib/skills/npx-skills-add.js +1 -1
  142. package/lib/skills/runtime-skill-sync/constants.js +1 -1
  143. package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
  144. package/lib/skills/runtime-skill-sync/hashing.js +1 -1
  145. package/lib/skills/runtime-skill-sync/install-target.js +1 -1
  146. package/lib/skills/runtime-skill-sync/links.js +1 -1
  147. package/lib/skills/runtime-skill-sync/list-local.js +1 -1
  148. package/lib/skills/runtime-skill-sync/local-files.js +1 -1
  149. package/lib/skills/runtime-skill-sync/materialize.js +1 -1
  150. package/lib/skills/runtime-skill-sync/metadata.js +1 -1
  151. package/lib/skills/runtime-skill-sync/paths.js +1 -1
  152. package/lib/skills/runtime-skill-sync/push.js +1 -1
  153. package/lib/skills/runtime-skill-sync/scopes.js +1 -1
  154. package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
  155. package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
  156. package/lib/skills/runtime-skill-sync.js +1 -1
  157. package/lib/skills/skill-presence.js +1 -1
  158. package/lib/utils/access-key-redaction.js +1 -1
  159. package/lib/utils/apply-jq-filter.js +1 -1
  160. package/lib/utils/cli-version-check.js +1 -1
  161. package/lib/utils/cli-version-policy.js +1 -1
  162. package/lib/utils/logger.js +1 -1
  163. package/lib/utils/lossless-json.js +1 -1
  164. package/lib/utils/params.js +1 -1
  165. package/lib/utils/platform.js +1 -1
  166. package/lib/utils/update-notice.js +1 -1
  167. package/lib/utils/version.js +1 -1
  168. package/lib/utils/write-cli-side-channel.js +1 -1
  169. package/package.json +1 -1
  170. package/skills/lovrabet/SKILL.md +2 -2
  171. package/skills/lovrabet/references/lovrabet-config-commands.md +3 -1
  172. package/skills/lovrabet/references/lovrabet-config.md +2 -2
  173. package/skills/lovrabet/references/lovrabet-doctor.md +2 -0
  174. package/skills/lovrabet/references/lovrabet-kb-workflow.md +3 -1
  175. package/skills/lovrabet.manifest.json +3 -3
@@ -1 +1 @@
1
- function a160_0x10db(_0x55c0e3,_0x2cf782){_0x55c0e3=_0x55c0e3-0x121;const _0x4faecb=a160_0x4fae();let _0x10db75=_0x4faecb[_0x55c0e3];return _0x10db75;}function a160_0x4fae(){const _0x91a5f5=['1GfaSTH','2954954ExeoYv','25BLKlLs','13093713bFkUnM','platform','9552pbXuyz','.cmd','3896526uROZzF','5873LAyrdP','win32','977152UuuPJR','806524vuBCBJ','615591CRKrlH','190xFUQWH'];a160_0x4fae=function(){return _0x91a5f5;};return a160_0x4fae();}const a160_0x51f370=a160_0x10db;(function(_0x1b45fb,_0x3743e3){const _0x4a3b63=a160_0x10db,_0x5813ad=_0x1b45fb();while(!![]){try{const _0x1b8bcd=parseInt(_0x4a3b63(0x12a))/0x1*(parseInt(_0x4a3b63(0x12b))/0x2)+-parseInt(_0x4a3b63(0x128))/0x3+parseInt(_0x4a3b63(0x127))/0x4*(-parseInt(_0x4a3b63(0x12c))/0x5)+-parseInt(_0x4a3b63(0x123))/0x6+parseInt(_0x4a3b63(0x124))/0x7*(parseInt(_0x4a3b63(0x121))/0x8)+-parseInt(_0x4a3b63(0x12d))/0x9+-parseInt(_0x4a3b63(0x129))/0xa*(-parseInt(_0x4a3b63(0x126))/0xb);if(_0x1b8bcd===_0x3743e3)break;else _0x5813ad['push'](_0x5813ad['shift']());}catch(_0x1ce417){_0x5813ad['push'](_0x5813ad['shift']());}}}(a160_0x4fae,0xcf60d));export const isWindows=process[a160_0x51f370(0x12e)]===a160_0x51f370(0x125);export function resolveNpmBin(_0x215cc5){const _0x15e9b5=a160_0x51f370;return isWindows?_0x215cc5+_0x15e9b5(0x122):_0x215cc5;}
1
+ const a161_0x56df7d=a161_0x5e35;(function(_0x12d390,_0x3d9459){const _0x31a057=a161_0x5e35,_0x149b0a=_0x12d390();while(!![]){try{const _0x3e7df1=-parseInt(_0x31a057(0x1f4))/0x1*(parseInt(_0x31a057(0x202))/0x2)+-parseInt(_0x31a057(0x1f6))/0x3*(parseInt(_0x31a057(0x1fa))/0x4)+-parseInt(_0x31a057(0x1fb))/0x5+-parseInt(_0x31a057(0x1f7))/0x6*(parseInt(_0x31a057(0x200))/0x7)+parseInt(_0x31a057(0x1ff))/0x8*(parseInt(_0x31a057(0x1f9))/0x9)+-parseInt(_0x31a057(0x1f8))/0xa*(-parseInt(_0x31a057(0x1fd))/0xb)+parseInt(_0x31a057(0x201))/0xc*(parseInt(_0x31a057(0x1f5))/0xd);if(_0x3e7df1===_0x3d9459)break;else _0x149b0a['push'](_0x149b0a['shift']());}catch(_0x1cd591){_0x149b0a['push'](_0x149b0a['shift']());}}}(a161_0x9445,0x60cae));export const isWindows=process[a161_0x56df7d(0x1f3)]===a161_0x56df7d(0x1fc);function a161_0x5e35(_0x3e7a2d,_0x540044){_0x3e7a2d=_0x3e7a2d-0x1f3;const _0x944589=a161_0x9445();let _0x5e35ea=_0x944589[_0x3e7a2d];return _0x5e35ea;}function a161_0x9445(){const _0xdc0516=['396SNLwWK','116vOaMVj','2716370gulzuh','win32','218471jYORLq','.cmd','120944FItXgr','7378WsBrEi','972CPlBwO','10IHxTTM','platform','137529ZOWrnT','289185rqJqbu','77685RnNzyr','618CwSqJz','10nHlzEz'];a161_0x9445=function(){return _0xdc0516;};return a161_0x9445();}export function resolveNpmBin(_0x5c3a2a){const _0x329150=a161_0x56df7d;return isWindows?_0x5c3a2a+_0x329150(0x1fe):_0x5c3a2a;}
@@ -1 +1 @@
1
- (function(_0x117974,_0x436a31){const _0x2281fb=a161_0x4161,_0x64ecb=_0x117974();while(!![]){try{const _0x4c4e40=-parseInt(_0x2281fb(0xe6))/0x1+parseInt(_0x2281fb(0xe9))/0x2+-parseInt(_0x2281fb(0xcf))/0x3+-parseInt(_0x2281fb(0xe8))/0x4+parseInt(_0x2281fb(0xe1))/0x5*(-parseInt(_0x2281fb(0xd9))/0x6)+parseInt(_0x2281fb(0xde))/0x7*(parseInt(_0x2281fb(0xe7))/0x8)+-parseInt(_0x2281fb(0xd7))/0x9*(-parseInt(_0x2281fb(0xe4))/0xa);if(_0x4c4e40===_0x436a31)break;else _0x64ecb['push'](_0x64ecb['shift']());}catch(_0xb95d4a){_0x64ecb['push'](_0x64ecb['shift']());}}}(a161_0x57ee,0x54d10));import{mkdir,readFile,writeFile}from'node:fs/promises';import{homedir}from'node:os';import{dirname,join}from'node:path';function a161_0x57ee(){const _0x31bc9d=['391344iIzvAB','1314804CdHjIs','lastNotifiedAt','update-check.json','1892412nRsXMy','toLowerCase','filter','object','.cache','join','stableVersion','\x20is\x20recommended,\x20current\x20','9566190nxVBHv','lastNotifiedVersion','96tfsWNH','https://www.npmjs.com/package/','lovrabet-cli','belowMinimum','needsUpgrade','2058aIFAhu','yes','trim','215980bzlUdo','utf8','parse','10qedNca','stringify','49854Plshvq','2632ivNWWp'];a161_0x57ee=function(){return _0x31bc9d;};return a161_0x57ee();}import{LOVRABET_NPM_PACKAGE_NAME}from'../constant/distribution.js';import{CLI_BIN_NAME}from'../constant/cli.js';import{checkCliVersion,getCliUpgradeCommand}from'../utils/cli-version-check.js';const UPDATE_NOTICE_TTL_MS=0x18*0x3c*0x3c*0x3e8;function isUpdateNoticeDisabled(){const _0x5a54fb=a161_0x4161,_0x3fac51=process.env.LOVRABET_NO_UPDATE_NOTICE?.[_0x5a54fb(0xe0)]()[_0x5a54fb(0xd0)]();return _0x3fac51==='1'||_0x3fac51==='true'||_0x3fac51===_0x5a54fb(0xdf);}function cacheRoot(){const _0xa3dc62=a161_0x4161;return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),_0xa3dc62(0xd3));}export function getUpdateNoticeCachePath(){const _0x1003b8=a161_0x4161;return join(cacheRoot(),_0x1003b8(0xdb),_0x1003b8(0xce));}function a161_0x4161(_0x315b21,_0x43c0e6){_0x315b21=_0x315b21-0xce;const _0x57eeba=a161_0x57ee();let _0x416180=_0x57eeba[_0x315b21];return _0x416180;}async function readUpdateNoticeCache(){const _0xf611c3=a161_0x4161;try{const _0x1e2ba0=await readFile(getUpdateNoticeCachePath(),_0xf611c3(0xe2)),_0x757b6f=JSON[_0xf611c3(0xe3)](_0x1e2ba0);if(!_0x757b6f||typeof _0x757b6f!==_0xf611c3(0xd2))return{};return _0x757b6f;}catch{return{};}}async function writeUpdateNoticeCache(_0x250cc6){const _0x42f9da=a161_0x4161;try{const _0x1e5feb=getUpdateNoticeCachePath();await mkdir(dirname(_0x1e5feb),{'recursive':!![]}),await writeFile(_0x1e5feb,JSON[_0x42f9da(0xe5)](_0x250cc6,null,0x2)+'\x0a',_0x42f9da(0xe2));}catch{}}function isRecentlyNotified(_0x59a7bf,_0x347a94,_0x4003ef){const _0x20487f=a161_0x4161;return _0x59a7bf[_0x20487f(0xd8)]===_0x347a94&&typeof _0x59a7bf[_0x20487f(0xea)]==='number'&&_0x4003ef-_0x59a7bf[_0x20487f(0xea)]<UPDATE_NOTICE_TTL_MS;}export function buildNpmVersionUrl(_0x2919b5){const _0x2d52ff=a161_0x4161;return _0x2d52ff(0xda)+LOVRABET_NPM_PACKAGE_NAME+'/v/'+_0x2919b5;}export async function resolveLatestUpdateNotice(_0xe792fa){const _0x55d23f=a161_0x4161;if(isUpdateNoticeDisabled())return null;try{const _0x51f8de=Date['now'](),_0x405dec=_0xe792fa??await checkCliVersion(),_0x1e0652=_0x405dec['currentVersion'],_0x36c12c=_0x405dec[_0x55d23f(0xd5)],_0x1d9c0d=await readUpdateNoticeCache();if(!_0x36c12c||!_0x405dec[_0x55d23f(0xdd)]||_0x405dec[_0x55d23f(0xdc)])return null;if(isRecentlyNotified(_0x1d9c0d,_0x36c12c,_0x51f8de))return null;const _0x51d3ad=getCliUpgradeCommand(_0x405dec);return await writeUpdateNoticeCache({..._0x1d9c0d,'checkedAt':_0x51f8de,'latest':_0x36c12c,'failed':![],'lastNotifiedVersion':_0x36c12c,'lastNotifiedAt':_0x51f8de}),{'command':_0x51d3ad,'current':_0x1e0652,'latest':_0x36c12c,'url':buildNpmVersionUrl(_0x36c12c),'message':[_0x405dec['upgradeMessage'],CLI_BIN_NAME+'\x20'+_0x36c12c+_0x55d23f(0xd6)+_0x1e0652+',\x20run:\x20'+_0x51d3ad][_0x55d23f(0xd1)](Boolean)[_0x55d23f(0xd4)]('\x20')};}catch{return null;}}
1
+ function a162_0x2b36(_0xcd4462,_0x48a9f5){_0xcd4462=_0xcd4462-0x136;const _0x5f0d8c=a162_0x5f0d();let _0x2b3641=_0x5f0d8c[_0xcd4462];return _0x2b3641;}(function(_0x513af8,_0x46acf9){const _0x378560=a162_0x2b36,_0x5e0d34=_0x513af8();while(!![]){try{const _0x11ef45=-parseInt(_0x378560(0x14e))/0x1*(parseInt(_0x378560(0x14a))/0x2)+-parseInt(_0x378560(0x143))/0x3*(-parseInt(_0x378560(0x13e))/0x4)+parseInt(_0x378560(0x144))/0x5+-parseInt(_0x378560(0x136))/0x6*(-parseInt(_0x378560(0x156))/0x7)+parseInt(_0x378560(0x14f))/0x8*(parseInt(_0x378560(0x138))/0x9)+parseInt(_0x378560(0x13c))/0xa*(-parseInt(_0x378560(0x14d))/0xb)+-parseInt(_0x378560(0x14c))/0xc*(parseInt(_0x378560(0x13a))/0xd);if(_0x11ef45===_0x46acf9)break;else _0x5e0d34['push'](_0x5e0d34['shift']());}catch(_0x5d69cc){_0x5e0d34['push'](_0x5e0d34['shift']());}}}(a162_0x5f0d,0x69f75));import{mkdir,readFile,writeFile}from'node:fs/promises';import{homedir}from'node:os';import{dirname,join}from'node:path';import{LOVRABET_NPM_PACKAGE_NAME}from'../constant/distribution.js';import{CLI_BIN_NAME}from'../constant/cli.js';import{checkCliVersion,getCliUpgradeCommand}from'../utils/cli-version-check.js';const UPDATE_NOTICE_TTL_MS=0x18*0x3c*0x3c*0x3e8;function isUpdateNoticeDisabled(){const _0x6cd6c6=a162_0x2b36,_0x4e7202=process.env.LOVRABET_NO_UPDATE_NOTICE?.[_0x6cd6c6(0x149)]()['toLowerCase']();return _0x4e7202==='1'||_0x4e7202==='true'||_0x4e7202===_0x6cd6c6(0x154);}function cacheRoot(){const _0x3816ba=a162_0x2b36;return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),_0x3816ba(0x155));}function a162_0x5f0d(){const _0x3a33fe=['1031736KoGbXQ','parse','54333YubPxt','update-check.json','4957927PsElXb','\x20is\x20recommended,\x20current\x20','310340MXdZYZ','lovrabet-cli','44PmnzGT','https://www.npmjs.com/package/','object',',\x20run:\x20','belowMinimum','165147DQyiDS','3515640fjGqax','filter','needsUpgrade','stringify','join','trim','2QoTmgv','lastNotifiedVersion','36ngutBq','275dbpKmJ','86285duzBLc','816NvlYMe','stableVersion','now','/v/','number','yes','.cache','21StIXaV','lastNotifiedAt'];a162_0x5f0d=function(){return _0x3a33fe;};return a162_0x5f0d();}export function getUpdateNoticeCachePath(){const _0x52f833=a162_0x2b36;return join(cacheRoot(),_0x52f833(0x13d),_0x52f833(0x139));}async function readUpdateNoticeCache(){const _0x116bf5=a162_0x2b36;try{const _0x4fef5e=await readFile(getUpdateNoticeCachePath(),'utf8'),_0x505051=JSON[_0x116bf5(0x137)](_0x4fef5e);if(!_0x505051||typeof _0x505051!==_0x116bf5(0x140))return{};return _0x505051;}catch{return{};}}async function writeUpdateNoticeCache(_0x31cba4){const _0x2a26a7=a162_0x2b36;try{const _0x5f283d=getUpdateNoticeCachePath();await mkdir(dirname(_0x5f283d),{'recursive':!![]}),await writeFile(_0x5f283d,JSON[_0x2a26a7(0x147)](_0x31cba4,null,0x2)+'\x0a','utf8');}catch{}}function isRecentlyNotified(_0x3154df,_0x3f7134,_0x2d1858){const _0x1b4c07=a162_0x2b36;return _0x3154df[_0x1b4c07(0x14b)]===_0x3f7134&&typeof _0x3154df[_0x1b4c07(0x157)]===_0x1b4c07(0x153)&&_0x2d1858-_0x3154df[_0x1b4c07(0x157)]<UPDATE_NOTICE_TTL_MS;}export function buildNpmVersionUrl(_0x1eb335){const _0x2e1f81=a162_0x2b36;return _0x2e1f81(0x13f)+LOVRABET_NPM_PACKAGE_NAME+_0x2e1f81(0x152)+_0x1eb335;}export async function resolveLatestUpdateNotice(_0x464963){const _0x5051aa=a162_0x2b36;if(isUpdateNoticeDisabled())return null;try{const _0x3600f0=Date[_0x5051aa(0x151)](),_0x11386a=_0x464963??await checkCliVersion(),_0x2047c1=_0x11386a['currentVersion'],_0x22c91f=_0x11386a[_0x5051aa(0x150)],_0x2698c0=await readUpdateNoticeCache();if(!_0x22c91f||!_0x11386a[_0x5051aa(0x146)]||_0x11386a[_0x5051aa(0x142)])return null;if(isRecentlyNotified(_0x2698c0,_0x22c91f,_0x3600f0))return null;const _0x2c9663=getCliUpgradeCommand(_0x11386a);return await writeUpdateNoticeCache({..._0x2698c0,'checkedAt':_0x3600f0,'latest':_0x22c91f,'failed':![],'lastNotifiedVersion':_0x22c91f,'lastNotifiedAt':_0x3600f0}),{'command':_0x2c9663,'current':_0x2047c1,'latest':_0x22c91f,'url':buildNpmVersionUrl(_0x22c91f),'message':[_0x11386a['upgradeMessage'],CLI_BIN_NAME+'\x20'+_0x22c91f+_0x5051aa(0x13b)+_0x2047c1+_0x5051aa(0x141)+_0x2c9663][_0x5051aa(0x145)](Boolean)[_0x5051aa(0x148)]('\x20')};}catch{return null;}}
@@ -1 +1 @@
1
- (function(_0x1bc50f,_0x4d1dcd){const _0x3613ff=a162_0x27ea,_0x43552f=_0x1bc50f();while(!![]){try{const _0x2656e2=parseInt(_0x3613ff(0x135))/0x1*(-parseInt(_0x3613ff(0x130))/0x2)+parseInt(_0x3613ff(0x134))/0x3*(-parseInt(_0x3613ff(0x12d))/0x4)+-parseInt(_0x3613ff(0x132))/0x5*(parseInt(_0x3613ff(0x12e))/0x6)+parseInt(_0x3613ff(0x12f))/0x7+-parseInt(_0x3613ff(0x131))/0x8+parseInt(_0x3613ff(0x136))/0x9*(-parseInt(_0x3613ff(0x12c))/0xa)+parseInt(_0x3613ff(0x133))/0xb;if(_0x2656e2===_0x4d1dcd)break;else _0x43552f['push'](_0x43552f['shift']());}catch(_0x5d21f1){_0x43552f['push'](_0x43552f['shift']());}}}(a162_0x2064,0xbe335));import{BUILD_TIME,GIT_COMMIT,VERSION}from'../generated/build-info.js';export function getCliVersion(){return VERSION;}export function getCliGitCommit(){const _0x2d6c10=a162_0x27ea,_0x4e5005=String(GIT_COMMIT);return _0x4e5005&&_0x4e5005!==_0x2d6c10(0x137)?_0x4e5005:'';}function a162_0x2064(){const _0x228cdc=['unknown','10HjnhlQ','127756bYdLpM','6488244FgZhYl','4931878Cwmzdb','22TiHSll','11731104jPdYTh','5iYxAmF','49736654tzEeSS','93syZIRd','18013AxLwHJ','6398937cXFPSw'];a162_0x2064=function(){return _0x228cdc;};return a162_0x2064();}function a162_0x27ea(_0x4768eb,_0x4b8c7a){_0x4768eb=_0x4768eb-0x12c;const _0x206426=a162_0x2064();let _0x27ea1d=_0x206426[_0x4768eb];return _0x27ea1d;}export function getCliVersionDisplay(){const _0xb4da1f=getCliGitCommit(),_0x398425=BUILD_TIME['slice'](0x0,0xa);if(!_0xb4da1f||!_0x398425)return VERSION;return VERSION+'\x20('+_0xb4da1f+',\x20'+_0x398425+')';}
1
+ (function(_0x50978b,_0x44a6e9){const _0x59b014=a163_0x4e6e,_0xede663=_0x50978b();while(!![]){try{const _0xd039d8=parseInt(_0x59b014(0x75))/0x1+parseInt(_0x59b014(0x73))/0x2+parseInt(_0x59b014(0x78))/0x3*(parseInt(_0x59b014(0x7a))/0x4)+parseInt(_0x59b014(0x7d))/0x5+parseInt(_0x59b014(0x7e))/0x6*(-parseInt(_0x59b014(0x76))/0x7)+parseInt(_0x59b014(0x79))/0x8+parseInt(_0x59b014(0x77))/0x9*(-parseInt(_0x59b014(0x74))/0xa);if(_0xd039d8===_0x44a6e9)break;else _0xede663['push'](_0xede663['shift']());}catch(_0x3b40bd){_0xede663['push'](_0xede663['shift']());}}}(a163_0x35bd,0x9b20c));import{BUILD_TIME,GIT_COMMIT,VERSION}from'../generated/build-info.js';export function getCliVersion(){return VERSION;}export function getCliGitCommit(){const _0x95739f=a163_0x4e6e,_0x576444=String(GIT_COMMIT);return _0x576444&&_0x576444!==_0x95739f(0x7b)?_0x576444:'';}export function getCliVersionDisplay(){const _0x4efcc8=a163_0x4e6e,_0x56ccbe=getCliGitCommit(),_0x3eb813=BUILD_TIME[_0x4efcc8(0x7c)](0x0,0xa);if(!_0x56ccbe||!_0x3eb813)return VERSION;return VERSION+'\x20('+_0x56ccbe+',\x20'+_0x3eb813+')';}function a163_0x4e6e(_0x16f86d,_0x55d80a){_0x16f86d=_0x16f86d-0x73;const _0x35bde6=a163_0x35bd();let _0x4e6e5f=_0x35bde6[_0x16f86d];return _0x4e6e5f;}function a163_0x35bd(){const _0x45c077=['508722QSpYxJ','748792KwpLMC','2930810HshWfW','184310ZowheO','91DwYady','36RfNEOh','795VXYoMX','8245680HYfZmD','7148KCImBn','unknown','slice','4234940eZmqqv'];a163_0x35bd=function(){return _0x45c077;};return a163_0x35bd();}
@@ -1 +1 @@
1
- (function(_0x2d3de8,_0x302bf0){var _0x3ea5c0=a163_0x454d,_0xb6dc59=_0x2d3de8();while(!![]){try{var _0xca1b9e=parseInt(_0x3ea5c0(0x1ad))/0x1+-parseInt(_0x3ea5c0(0x1ae))/0x2+-parseInt(_0x3ea5c0(0x1b1))/0x3*(parseInt(_0x3ea5c0(0x1af))/0x4)+-parseInt(_0x3ea5c0(0x1b2))/0x5*(-parseInt(_0x3ea5c0(0x1ac))/0x6)+parseInt(_0x3ea5c0(0x1ab))/0x7+parseInt(_0x3ea5c0(0x1b3))/0x8*(-parseInt(_0x3ea5c0(0x1b4))/0x9)+parseInt(_0x3ea5c0(0x1b5))/0xa;if(_0xca1b9e===_0x302bf0)break;else _0xb6dc59['push'](_0xb6dc59['shift']());}catch(_0x181f3c){_0xb6dc59['push'](_0xb6dc59['shift']());}}}(a163_0x483f,0xe2064));export function writeCliSideChannelLine(_0x1243ae){var _0x204151=a163_0x454d;process[_0x204151(0x1b6)][_0x204151(0x1b0)](_0x1243ae+'\x0a');}function a163_0x454d(_0xf42ad6,_0x26d389){_0xf42ad6=_0xf42ad6-0x1ab;var _0x483f87=a163_0x483f();var _0x454d65=_0x483f87[_0xf42ad6];return _0x454d65;}function a163_0x483f(){var _0x1908c5=['720QHQjPE','4815860AEgDVX','stderr','7944258uXFhai','2846202CANrBK','397146roXhrW','730976TqLFBs','4nvOmke','write','338367LceSWi','5KeGWRp','108392oKqSYu'];a163_0x483f=function(){return _0x1908c5;};return a163_0x483f();}
1
+ function a164_0x411d(_0x285a60,_0x20b2b6){_0x285a60=_0x285a60-0x69;var _0x2dca45=a164_0x2dca();var _0x411dba=_0x2dca45[_0x285a60];return _0x411dba;}function a164_0x2dca(){var _0x47d7b6=['602756GfduTZ','40556eXOCLa','904uEBked','12NFMiQI','108kCMUuO','write','1892810KxtjiC','365890mmmfAP','93LqvHzp','1872595StZCQl','11457RMNLlh','19413ethuJg'];a164_0x2dca=function(){return _0x47d7b6;};return a164_0x2dca();}(function(_0x275a7a,_0x3f8c0f){var _0x5bdb6a=a164_0x411d,_0x715daa=_0x275a7a();while(!![]){try{var _0xee693f=parseInt(_0x5bdb6a(0x6a))/0x1*(parseInt(_0x5bdb6a(0x6f))/0x2)+parseInt(_0x5bdb6a(0x73))/0x3*(-parseInt(_0x5bdb6a(0x6c))/0x4)+parseInt(_0x5bdb6a(0x74))/0x5+-parseInt(_0x5bdb6a(0x6e))/0x6*(parseInt(_0x5bdb6a(0x72))/0x7)+-parseInt(_0x5bdb6a(0x6d))/0x8*(-parseInt(_0x5bdb6a(0x69))/0x9)+-parseInt(_0x5bdb6a(0x71))/0xa+-parseInt(_0x5bdb6a(0x6b))/0xb;if(_0xee693f===_0x3f8c0f)break;else _0x715daa['push'](_0x715daa['shift']());}catch(_0x25792b){_0x715daa['push'](_0x715daa['shift']());}}}(a164_0x2dca,0xdca40));export function writeCliSideChannelLine(_0x1a75d2){var _0x444e60=a164_0x411d;process['stderr'][_0x444e60(0x70)](_0x1a75d2+'\x0a');}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lovrabet/lovrabet-cli",
3
- "version": "2.3.1-beta.3",
3
+ "version": "2.3.1-beta.4",
4
4
  "description": "Runtime CLI for Lovrabet apps, datasets, SQL, Backend Function, skills, and AI agent workflows.",
5
5
  "license": "Apache-2.0",
6
6
  "keywords": [
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: lovrabet
3
3
  displayName: Lovrabet 运行态 CLI
4
- version: 2.3.1-beta.3
4
+ version: 2.3.1-beta.4
5
5
  description: "Lovrabet 运行态 CLI — 面向业务场景的 AI 操作套件,通过 lovrabet 命令管理应用目录、业务角色与权限、用户级外部账号、Service Tree 业务命令、API 文档发现、数据集查询、Instant API 数据操作、Custom SQL/Backend Function、Personal Backend Function、文件上传、面向票证类业务材料文字与结构化字段提取的 OCR、定时任务、Skill、知识库与运行态 app-config key 状态检查。触发词:云图、lovrabet、lovrabet-cli、业务角色、角色成员、页面权限、菜单权限、数据集权限、user-account bind、provider 外部账号绑定、钉钉 userId 绑定、service tree、业务服务树、api-doc、dataset、data filter、file upload、file query-url、ocr recognize、OCR 识别、票证文字提取、票证字段提取、发票识别、票据识别、证照识别、附件上传、personal-bff、schedule、定时任务、cron、kb、skill、sql exec、bff exec、app-config、accessKey、compress、jq。"
6
6
  metadata:
7
7
  requires:
@@ -331,7 +331,7 @@ Service Tree 未命中不是失败条件,也不代表业务能力不存在。
331
331
  | **kb** | `detail` | 查看 personal 知识库正文与 RAG 状态 | read | AK |
332
332
  | **kb** | `create` | 从本地文件创建 personal 知识库 | write | AK |
333
333
  | **kb** | `update` | 从本地文件更新 personal 知识库 | write | AK |
334
- | **kb** | `search` | 检索可见公司和个人知识 | read | AK |
334
+ | **kb** | `search` | 检索可见公共、公司和个人知识 | read | AK |
335
335
  | **schedule** | `validate` | 校验 UTC 定时任务,不创建计划 | read | AK |
336
336
  | **schedule** | `create` | 创建周期或单次定时任务(需确认) | high-risk-write | AK |
337
337
  | **schedule** | `list` | 分页查看当前应用的定时任务 | read | AK |
@@ -65,7 +65,9 @@ lovrabet config init --domain-config ./lovrabet-domains.json
65
65
 
66
66
  新版企业清单会保存为带协议标识的 `routing` 对象,并整体优先于旧顶层 Domain;旧扁平配置继续保持既有回退行为。
67
67
 
68
- 两种模式都保留 AccessKey、format、locale、应用绑定等其他配置。初始化后用 `lovrabet doctor` 核对最终生效的国家/地区和五个 Domain。
68
+ 进入旧扁平独立部署模式会删除全局 `region` 和旧 Domain 字段,再写入本次提供的 Domain。未提供的 Domain 仍按默认 `cn` 节点和当前 `env` 回退到 Lovrabet 公共服务。企业部署需要所有请求进入私有服务时,应完整提供五个 Domain;KB Service 下游地址由 Runtime Java 独立配置。
69
+
70
+ 两种模式都保留 AccessKey、env、format、locale、应用绑定等其他全局配置。当前目录 `.lovrabet.json` 的旧扁平同名字段仍会覆盖全局旧扁平配置;初始化后用 `lovrabet doctor` 核对最终生效的国家/地区和五个 Domain。
69
71
 
70
72
  ## config list — 查看完整配置
71
73
 
@@ -57,9 +57,9 @@
57
57
  | `apiDomain` | string | 节点内置值 | 平台 API HTTPS origin 覆盖 |
58
58
  | `runtimeDomain` | string | 节点内置值 | 普通 Runtime HTTPS origin 覆盖 |
59
59
  | `skillDomain` | string | 节点默认 | SkillHub HTTPS origin 覆盖 |
60
- | `kbDomain` | string | 节点默认 | 知识库 HTTPS origin 覆盖 |
60
+ | `kbDomain` | string | 节点默认 | Personal KB 管理与 `kb search` Runtime 网关 HTTPS origin 覆盖 |
61
61
 
62
- 五个 Domain 各自独立覆盖同名服务地址。没有显式配置时,CLI 按 `region` 使用内置节点:`cn` 对应中国大陆,`id` 对应 Indonesia,且 Indonesia 的最终服务地址统一使用 `*.lovrabet.id`。执行 `lovrabet doctor` 可查看当前实际生效的五个 Domain,无需理解内部地址层级。
62
+ 五个 Domain 各自独立覆盖同名服务地址。没有显式配置时,CLI 按 `region` 和 `env` 使用内置节点:`cn` 对应中国大陆,`id` 对应 Indonesia,且 Indonesia 的最终服务地址统一使用 `*.lovrabet.id`。`development` 与 `daily` 共用非生产地址;KB Service 下游地址由 Runtime Java 配置管理。执行 `lovrabet doctor` 可查看当前实际生效的五个 Domain,无需理解内部地址层级。
63
63
 
64
64
  `config init` 的完整模式切换、独立部署 JSON 和校验规则见 [配置管理](lovrabet-config-commands.md#config-init--初始化连接配置)。
65
65
 
@@ -24,3 +24,5 @@ lovrabet doctor
24
24
  ```
25
25
 
26
26
  `doctor` 不修改配置、不安装 Skill,也不替代业务命令的认证和权限检查。
27
+
28
+ `API Endpoints` 显示 `kbDomain`,该地址同时承载 Personal KB 管理与 `kb search` Runtime 网关。KB Service 下游地址由 Runtime Java 配置管理,不在 CLI doctor 中显示。
@@ -10,7 +10,9 @@ lovrabet kb detail --id <id> --format compress
10
10
  lovrabet kb search --query "订单审批" --topk 5 --format compress
11
11
  ```
12
12
 
13
- `kb search` 会返回当前用户可见的多来源知识,使用 `scope` 区分来源。结果顺序由服务端当前检索策略决定;CLI 保留服务端返回顺序,不在本地重新排序,也不根据 `scope` 推断固定来源优先级。
13
+ `kb search` 只携带当前 AK,通过 `kbDomain` 调用固定 Runtime 搜索网关;Runtime 再按其 Java 环境配置访问 KB Service。返回范围是 `public/company/personal`,使用 `scope` 区分来源。
14
+
15
+ 结构化输出固定为 `data: { schemaVersion:2, profile:"runtime", total, strategyFingerprint, timingsMs, hits }`。`--topk` 可选且必须是 1–50 的整数;命中完整保留 `documentId/revision/chunkId/scope/title/text/tags/rank/rawScore/finalScore/scoreKind` 的服务端顺序和值,不输出 legacy 别名。无命中是 `total:0/hits:[]` 的成功;字段、rank、score、timing、`no-store` 或 scope 漂移都会以脱敏错误失败。
14
16
 
15
17
  ## 业务执行中的 KB 消费
16
18
 
@@ -2,8 +2,8 @@
2
2
  "schemaVersion": 1,
3
3
  "name": "lovrabet",
4
4
  "packageName": "@lovrabet/lovrabet-cli",
5
- "packageVersion": "2.3.1-beta.3",
6
- "skillVersion": "2.3.1-beta.3",
5
+ "packageVersion": "2.3.1-beta.4",
6
+ "skillVersion": "2.3.1-beta.4",
7
7
  "files": [
8
8
  "SKILL.md",
9
9
  "guides/app-resolution.md",
@@ -37,5 +37,5 @@
37
37
  "references/lovrabet-user-account.md",
38
38
  "references/lovrabet-workspace.md"
39
39
  ],
40
- "digest": "a731aa4a6155920b8d585bd588c640933ef8d32de8567d7c88a9ceb3e6221be5"
40
+ "digest": "5385142daa77dcdfc19aa51c9d612f34eccc01544777048316ecacb1bc094005"
41
41
  }