@lovrabet/rabetbase-cli 2.5.0-beta.1 → 2.5.0-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 (298) hide show
  1. package/lib/api/api-doc.js +1 -1
  2. package/lib/api/fetch-model-list.js +1 -1
  3. package/lib/api/generate-api-file.js +1 -1
  4. package/lib/api/generate-sdk-config-file.js +1 -1
  5. package/lib/auth/auth-server-ui.js +1 -1
  6. package/lib/auth/auth-server.js +1 -1
  7. package/lib/auth/constant.js +1 -1
  8. package/lib/auth/get-cookie.js +1 -1
  9. package/lib/auth/get-session-user.js +1 -1
  10. package/lib/auth/is-session-valid.js +1 -1
  11. package/lib/auth/login-success-html.js +1 -1
  12. package/lib/auth/logout.js +1 -1
  13. package/lib/cli-flags.js +1 -1
  14. package/lib/cli.js +1 -1
  15. package/lib/commands/api/generate.js +1 -1
  16. package/lib/commands/api/index.js +1 -1
  17. package/lib/commands/api/list.js +1 -1
  18. package/lib/commands/api/pull.js +1 -1
  19. package/lib/commands/api/shared.js +1 -1
  20. package/lib/commands/app/index.js +1 -1
  21. package/lib/commands/app/list.js +1 -1
  22. package/lib/commands/app/members-list.js +1 -1
  23. package/lib/commands/app/remote-directory.js +1 -1
  24. package/lib/commands/app/shared.js +1 -1
  25. package/lib/commands/app-config/delete.js +1 -1
  26. package/lib/commands/app-config/get.js +1 -1
  27. package/lib/commands/app-config/index.js +1 -1
  28. package/lib/commands/app-config/list.js +1 -1
  29. package/lib/commands/app-config/set.js +1 -1
  30. package/lib/commands/app-config/shared.js +1 -1
  31. package/lib/commands/auth/index.js +1 -1
  32. package/lib/commands/bff/create.js +1 -1
  33. package/lib/commands/bff/delete.js +1 -1
  34. package/lib/commands/bff/detail.js +1 -1
  35. package/lib/commands/bff/index.js +1 -1
  36. package/lib/commands/bff/list.js +1 -1
  37. package/lib/commands/bff/pull.js +1 -1
  38. package/lib/commands/bff/push.js +1 -1
  39. package/lib/commands/bff/status.js +1 -1
  40. package/lib/commands/cli-skill/index.js +1 -1
  41. package/lib/commands/cli-update.js +1 -1
  42. package/lib/commands/codegen/index.js +1 -1
  43. package/lib/commands/codegen/sdk.js +1 -1
  44. package/lib/commands/codegen/sql.js +1 -1
  45. package/lib/commands/common/app-registry.js +1 -1
  46. package/lib/commands/common/app-selector.js +1 -1
  47. package/lib/commands/common/async-task.js +1 -1
  48. package/lib/commands/common/dry-run.js +1 -1
  49. package/lib/commands/common/flags.js +1 -1
  50. package/lib/commands/common/local-file.js +1 -1
  51. package/lib/commands/common/validate.js +1 -1
  52. package/lib/commands/config/delete.js +1 -1
  53. package/lib/commands/config/get.js +1 -1
  54. package/lib/commands/config/index.js +1 -1
  55. package/lib/commands/config/init.js +1 -1
  56. package/lib/commands/config/list.js +1 -1
  57. package/lib/commands/config/set.js +1 -1
  58. package/lib/commands/config/shared.js +1 -1
  59. package/lib/commands/dataset/business-group-update.js +1 -1
  60. package/lib/commands/dataset/business-groups.js +1 -1
  61. package/lib/commands/dataset/capability.js +1 -1
  62. package/lib/commands/dataset/delete.js +1 -1
  63. package/lib/commands/dataset/detail.js +1 -1
  64. package/lib/commands/dataset/extend-update.js +1 -1
  65. package/lib/commands/dataset/field-update.js +1 -1
  66. package/lib/commands/dataset/generate.js +1 -1
  67. package/lib/commands/dataset/index.js +1 -1
  68. package/lib/commands/dataset/list.js +1 -1
  69. package/lib/commands/dataset/operations.js +1 -1
  70. package/lib/commands/dataset/relation-audit.js +1 -1
  71. package/lib/commands/dataset/relation-create.js +1 -1
  72. package/lib/commands/dataset/relation-delete.js +1 -1
  73. package/lib/commands/dataset/relation-shared.js +1 -1
  74. package/lib/commands/dataset/relation-update.js +1 -1
  75. package/lib/commands/dataset/relations.js +1 -1
  76. package/lib/commands/dataset/rename.js +1 -1
  77. package/lib/commands/dataset/restore.js +1 -1
  78. package/lib/commands/db/analysis-batching.js +1 -1
  79. package/lib/commands/db/analyze-batch-plan.js +1 -1
  80. package/lib/commands/db/analyze-cancel.js +1 -1
  81. package/lib/commands/db/analyze-start.js +1 -1
  82. package/lib/commands/db/analyze-status.js +1 -1
  83. package/lib/commands/db/create.js +1 -1
  84. package/lib/commands/db/delete.js +1 -1
  85. package/lib/commands/db/detail.js +1 -1
  86. package/lib/commands/db/diff-refresh-start.js +1 -1
  87. package/lib/commands/db/diff-refresh-status.js +1 -1
  88. package/lib/commands/db/diff.js +1 -1
  89. package/lib/commands/db/index.js +1 -1
  90. package/lib/commands/db/list.js +1 -1
  91. package/lib/commands/db/shared.js +1 -1
  92. package/lib/commands/db/tables.js +1 -1
  93. package/lib/commands/db/test.js +1 -1
  94. package/lib/commands/db/update.js +1 -1
  95. package/lib/commands/doctor.js +1 -1
  96. package/lib/commands/file/index.js +1 -1
  97. package/lib/commands/issue/index.js +1 -1
  98. package/lib/commands/issue/nudge.js +1 -1
  99. package/lib/commands/issue/report.js +1 -1
  100. package/lib/commands/issue/shared.js +1 -1
  101. package/lib/commands/kb/create.js +1 -1
  102. package/lib/commands/kb/delete.js +1 -1
  103. package/lib/commands/kb/detail.js +1 -1
  104. package/lib/commands/kb/index.js +1 -1
  105. package/lib/commands/kb/list.js +1 -1
  106. package/lib/commands/kb/search.js +1 -1
  107. package/lib/commands/kb/shared.js +1 -1
  108. package/lib/commands/kb/update.js +1 -1
  109. package/lib/commands/logs/index.js +1 -1
  110. package/lib/commands/menu/asset-update.js +1 -1
  111. package/lib/commands/menu/delete.js +1 -1
  112. package/lib/commands/menu/external-link-create.js +1 -1
  113. package/lib/commands/menu/external-link-update.js +1 -1
  114. package/lib/commands/menu/group-create.js +1 -1
  115. package/lib/commands/menu/group-update.js +1 -1
  116. package/lib/commands/menu/index.js +1 -1
  117. package/lib/commands/menu/list.js +1 -1
  118. package/lib/commands/menu/move.js +1 -1
  119. package/lib/commands/menu/regroup-start.js +1 -1
  120. package/lib/commands/menu/rename.js +1 -1
  121. package/lib/commands/menu/shared/compare-table.js +1 -1
  122. package/lib/commands/menu/shared/delete-plan.js +1 -1
  123. package/lib/commands/menu/shared/facts.js +1 -1
  124. package/lib/commands/menu/shared/index.js +1 -1
  125. package/lib/commands/menu/shared/inquirer.js +1 -1
  126. package/lib/commands/menu/shared/local-pages.js +1 -1
  127. package/lib/commands/menu/shared/logic.js +1 -1
  128. package/lib/commands/menu/shared/mutations.js +1 -1
  129. package/lib/commands/menu/shared/service.js +1 -1
  130. package/lib/commands/menu/shared/sync-core.js +1 -1
  131. package/lib/commands/menu/shared/update-core.js +1 -1
  132. package/lib/commands/menu/shared/valid-url.js +1 -1
  133. package/lib/commands/menu/sync.js +1 -1
  134. package/lib/commands/menu/visibility-update.js +1 -1
  135. package/lib/commands/notification/config-create.js +1 -1
  136. package/lib/commands/notification/config-delete.js +1 -1
  137. package/lib/commands/notification/config-list.js +1 -1
  138. package/lib/commands/notification/config-update.js +1 -1
  139. package/lib/commands/notification/index.js +1 -1
  140. package/lib/commands/notification/shared.js +1 -1
  141. package/lib/commands/ocr/index.js +1 -1
  142. package/lib/commands/page/create.js +1 -1
  143. package/lib/commands/page/custom/detail.js +1 -1
  144. package/lib/commands/page/custom/list.js +1 -1
  145. package/lib/commands/page/custom/publish.js +1 -1
  146. package/lib/commands/page/custom/shared.js +1 -1
  147. package/lib/commands/page/custom/syntax.js +1 -1
  148. package/lib/commands/page/custom/template.js +1 -1
  149. package/lib/commands/page/custom/update.js +1 -1
  150. package/lib/commands/page/data-list-status.js +1 -1
  151. package/lib/commands/page/generate-start.js +1 -1
  152. package/lib/commands/page/generate-status.js +1 -1
  153. package/lib/commands/page/index.js +1 -1
  154. package/lib/commands/page/pull.js +1 -1
  155. package/lib/commands/page/push.js +1 -1
  156. package/lib/commands/page/relation-audit.js +1 -1
  157. package/lib/commands/page/restore.js +1 -1
  158. package/lib/commands/page/shared.js +1 -1
  159. package/lib/commands/page/sync.js +1 -1
  160. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  161. package/lib/commands/project/create/format-elapsed.js +1 -1
  162. package/lib/commands/project/create/main.js +1 -1
  163. package/lib/commands/project/create/materialize-project-template.js +1 -1
  164. package/lib/commands/project/create/project-name.js +1 -1
  165. package/lib/commands/project/create/project-template-archive.js +1 -1
  166. package/lib/commands/project/create/project-template-path.js +1 -1
  167. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  168. package/lib/commands/project/create/use-format-code.js +1 -1
  169. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  170. package/lib/commands/project/index.js +1 -1
  171. package/lib/commands/project/upgrade.js +1 -1
  172. package/lib/commands/registry.js +1 -1
  173. package/lib/commands/role/delete.js +1 -1
  174. package/lib/commands/role/detail.js +1 -1
  175. package/lib/commands/role/index.js +1 -1
  176. package/lib/commands/role/list.js +1 -1
  177. package/lib/commands/role/shared.js +1 -1
  178. package/lib/commands/role/update.js +1 -1
  179. package/lib/commands/role/user-add.js +1 -1
  180. package/lib/commands/role/user-remove.js +1 -1
  181. package/lib/commands/role/user-resolve.js +1 -1
  182. package/lib/commands/run/index.js +1 -1
  183. package/lib/commands/schema.js +1 -1
  184. package/lib/commands/sql/create.js +1 -1
  185. package/lib/commands/sql/delete.js +1 -1
  186. package/lib/commands/sql/detail.js +1 -1
  187. package/lib/commands/sql/exec.js +1 -1
  188. package/lib/commands/sql/index.js +1 -1
  189. package/lib/commands/sql/list.js +1 -1
  190. package/lib/commands/sql/pull.js +1 -1
  191. package/lib/commands/sql/push.js +1 -1
  192. package/lib/commands/sql/shared.js +1 -1
  193. package/lib/commands/sql/status.js +1 -1
  194. package/lib/commands/sql/validate.js +1 -1
  195. package/lib/commands/task/index.js +1 -1
  196. package/lib/commands/task/status.js +1 -1
  197. package/lib/commands/tenant/index.js +1 -1
  198. package/lib/commands/tenant/members-list.js +1 -1
  199. package/lib/commands/tenant/shared.js +1 -1
  200. package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
  201. package/lib/commands/user-account/index.js +1 -1
  202. package/lib/commands/workspace/add.js +1 -1
  203. package/lib/commands/workspace/index.js +1 -1
  204. package/lib/commands/workspace/remove.js +1 -1
  205. package/lib/config/domain-config.js +1 -1
  206. package/lib/config/schema.js +1 -1
  207. package/lib/constant/cdn.js +1 -1
  208. package/lib/constant/cli.js +1 -1
  209. package/lib/constant/defaults.js +1 -1
  210. package/lib/constant/domain.js +1 -1
  211. package/lib/constant/env.js +1 -1
  212. package/lib/constant/output.js +1 -1
  213. package/lib/constant/paths.js +1 -1
  214. package/lib/constant/region.js +1 -1
  215. package/lib/constant/risk.js +1 -1
  216. package/lib/context/app-resolver.js +1 -1
  217. package/lib/context/auth-resolver.js +1 -1
  218. package/lib/context/config-loader.js +1 -1
  219. package/lib/context.js +1 -1
  220. package/lib/core/alias-resolver.js +1 -1
  221. package/lib/core/api-client.js +1 -1
  222. package/lib/core/bff/config.js +1 -1
  223. package/lib/core/bff/file-system.js +1 -1
  224. package/lib/core/bff/hash.js +1 -1
  225. package/lib/core/bff/lock.js +1 -1
  226. package/lib/core/bff/utils.js +1 -1
  227. package/lib/core/db-resolver.js +1 -1
  228. package/lib/core/page/file-system.js +1 -1
  229. package/lib/core/page/hash.js +1 -1
  230. package/lib/core/page/lock.js +1 -1
  231. package/lib/core/sql-index-auditor.js +1 -1
  232. package/lib/core/sql-sync/config.js +1 -1
  233. package/lib/core/sql-sync/file-system.js +1 -1
  234. package/lib/core/sql-sync/hash.js +1 -1
  235. package/lib/core/sql-sync/lock.js +1 -1
  236. package/lib/core/sql-sync/utils.js +1 -1
  237. package/lib/core/sql-validator.js +1 -1
  238. package/lib/errors.js +1 -1
  239. package/lib/framework/build-all-flags.js +1 -1
  240. package/lib/framework/error-output.js +1 -1
  241. package/lib/framework/explicit-yes.js +1 -1
  242. package/lib/framework/flags.js +1 -1
  243. package/lib/framework/help.js +1 -1
  244. package/lib/framework/index.js +1 -1
  245. package/lib/framework/output.js +1 -1
  246. package/lib/framework/response.js +1 -1
  247. package/lib/framework/runner-alias.js +1 -1
  248. package/lib/framework/runner.js +1 -1
  249. package/lib/framework/schema-export.js +1 -1
  250. package/lib/framework/types.js +1 -1
  251. package/lib/generated/build-info.d.ts +4 -4
  252. package/lib/generated/build-info.js +1 -1
  253. package/lib/help.js +1 -1
  254. package/lib/postinstall.js +1 -1
  255. package/lib/runtime/confirmation.js +1 -1
  256. package/lib/runtime/event.js +1 -1
  257. package/lib/runtime/index.js +1 -1
  258. package/lib/runtime/queue.js +1 -1
  259. package/lib/runtime/resolve.js +1 -1
  260. package/lib/skills/builtin-skill.js +1 -1
  261. package/lib/skills/main.js +1 -1
  262. package/lib/skills/npx-skills-add.js +1 -1
  263. package/lib/skills/skill-presence.js +1 -1
  264. package/lib/telemetry/cli-command-trace.js +1 -1
  265. package/lib/telemetry/cli-help-trace.js +1 -1
  266. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  267. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  268. package/lib/telemetry/send-cli-trace-log.js +1 -1
  269. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  270. package/lib/utils/ai_config.js +1 -1
  271. package/lib/utils/apply-jq-filter.js +1 -1
  272. package/lib/utils/cdn-config.js +1 -1
  273. package/lib/utils/check-sdk-version.js +1 -1
  274. package/lib/utils/cli-version-check.js +1 -1
  275. package/lib/utils/cli-version-policy.js +1 -1
  276. package/lib/utils/config.js +1 -1
  277. package/lib/utils/entity-with-id.js +1 -1
  278. package/lib/utils/file-utils.js +1 -1
  279. package/lib/utils/guides-cdn.js +1 -1
  280. package/lib/utils/http-client.js +1 -1
  281. package/lib/utils/is-non-interactive.js +1 -1
  282. package/lib/utils/logger.js +1 -1
  283. package/lib/utils/params.js +1 -1
  284. package/lib/utils/platform.js +1 -1
  285. package/lib/utils/sleep.js +1 -1
  286. package/lib/utils/template-replacer.js +1 -1
  287. package/lib/utils/update-notice.js +1 -1
  288. package/lib/utils/version.js +1 -1
  289. package/lib/utils/with-active-cookie.js +1 -1
  290. package/lib/utils/write-cli-side-channel.js +1 -1
  291. package/package.json +1 -1
  292. package/skills/rabetbase/SKILL.md +1 -1
  293. package/skills/rabetbase/guides/custom-page-workflow.md +1 -1
  294. package/skills/rabetbase/references/rabetbase-config.md +1 -1
  295. package/skills/rabetbase/references/rabetbase-dataset-business-group-update.md +17 -6
  296. package/skills/rabetbase/references/rabetbase-kb.md +1 -1
  297. package/skills/rabetbase/references/rabetbase-page-custom-list.md +5 -2
  298. package/skills/rabetbase.manifest.json +3 -3
@@ -1 +1 @@
1
- (function(_0x144973,_0x18cf78){const _0x304e1a=a291_0x1c10,_0x96e965=_0x144973();while(!![]){try{const _0x5a3abb=parseInt(_0x304e1a(0x135))/0x1+parseInt(_0x304e1a(0x134))/0x2+parseInt(_0x304e1a(0x12a))/0x3+parseInt(_0x304e1a(0x131))/0x4*(parseInt(_0x304e1a(0x13a))/0x5)+parseInt(_0x304e1a(0x145))/0x6+parseInt(_0x304e1a(0x12c))/0x7*(parseInt(_0x304e1a(0x141))/0x8)+-parseInt(_0x304e1a(0x146))/0x9;if(_0x5a3abb===_0x18cf78)break;else _0x96e965['push'](_0x96e965['shift']());}catch(_0x284efb){_0x96e965['push'](_0x96e965['shift']());}}}(a291_0x2762,0x4d304));import{mkdir,readFile,writeFile}from'node:fs/promises';import{homedir}from'node:os';import{dirname,join}from'node:path';import a291_0x3cb076 from'semver';import{CLI_BIN_NAME,NPM_PACKAGE_NAME}from'../constant/cli.js';import{getCliVersionPolicy}from'../utils/cli-version-policy.js';import{getCliVersion}from'../utils/version.js';const UPDATE_CHECK_TTL_MS=0xc*0x3c*0x3c*0x3e8,UPDATE_NOTICE_TTL_MS=0x18*0x3c*0x3c*0x3e8;function isUpdateNoticeDisabled(){const _0x37df46=a291_0x1c10,_0x91e904=process.env.RABETBASE_NO_UPDATE_NOTICE?.[_0x37df46(0x12d)]()['toLowerCase']();return _0x91e904==='1'||_0x91e904===_0x37df46(0x144)||_0x91e904===_0x37df46(0x13f);}function cacheRoot(){const _0x117d49=a291_0x1c10;return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),_0x117d49(0x132));}export function getUpdateNoticeCachePath(){const _0x24dd75=a291_0x1c10;return join(cacheRoot(),_0x24dd75(0x12e),'update-check.json');}async function readUpdateNoticeCache(){const _0x59fbac=a291_0x1c10;try{const _0x2654f1=await readFile(getUpdateNoticeCachePath(),_0x59fbac(0x130)),_0x2e4caa=JSON['parse'](_0x2654f1);if(!_0x2e4caa||typeof _0x2e4caa!==_0x59fbac(0x138))return{};return _0x2e4caa;}catch{return{};}}async function writeUpdateNoticeCache(_0x12275e){const _0x49cf44=a291_0x1c10;try{const _0x4a88c0=getUpdateNoticeCachePath();await mkdir(dirname(_0x4a88c0),{'recursive':!![]}),await writeFile(_0x4a88c0,JSON[_0x49cf44(0x140)](_0x12275e,null,0x2)+'\x0a',_0x49cf44(0x130));}catch{}}function isFreshCheck(_0x4d156a,_0x46d09d){const _0x1819f8=a291_0x1c10;return typeof _0x4d156a[_0x1819f8(0x13c)]===_0x1819f8(0x12f)&&_0x46d09d-_0x4d156a[_0x1819f8(0x13c)]<UPDATE_CHECK_TTL_MS;}function a291_0x1c10(_0x5b293b,_0x10b495){_0x5b293b=_0x5b293b-0x129;const _0x276215=a291_0x2762();let _0x1c108a=_0x276215[_0x5b293b];return _0x1c108a;}function a291_0x2762(){const _0x52f12a=['object','stableVersion','5VBUcNg','lastNotifiedAt','checkedAt',',\x20run:\x20','valid','yes','stringify','8puEOIb','\x20update','/v/','true','1098546ZnfRNO','17975826OqoxpZ','now','1234812ouXgkn','\x20available,\x20current\x20','2609579RgvcEE','trim','rabetbase-cli','number','utf8','1235716aZyZXU','.cache','gte','840046GHzPyG','617034xSsyOW','latest','https://www.npmjs.com/package/'];a291_0x2762=function(){return _0x52f12a;};return a291_0x2762();}function isRecentlyNotified(_0x2a450f,_0x53e657,_0x1aa2f4){const _0x35db59=a291_0x1c10;return _0x2a450f['lastNotifiedVersion']===_0x53e657&&typeof _0x2a450f['lastNotifiedAt']==='number'&&_0x1aa2f4-_0x2a450f[_0x35db59(0x13b)]<UPDATE_NOTICE_TTL_MS;}export function buildNpmVersionUrl(_0x1a2579){const _0x367138=a291_0x1c10;return _0x367138(0x137)+NPM_PACKAGE_NAME+_0x367138(0x143)+_0x1a2579;}export async function resolveLatestUpdateNotice(){const _0x4d09d0=a291_0x1c10;if(isUpdateNoticeDisabled())return null;try{const _0x5449b0=Date[_0x4d09d0(0x129)](),_0x50a817=getCliVersion(),_0x1322a3=await readUpdateNoticeCache();let _0x17486f=isFreshCheck(_0x1322a3,_0x5449b0)?_0x1322a3[_0x4d09d0(0x136)]?.[_0x4d09d0(0x12d)]():undefined;if(!_0x17486f&&!isFreshCheck(_0x1322a3,_0x5449b0)){const _0x4aa0dc=await getCliVersionPolicy();_0x17486f=_0x4aa0dc?.[_0x4d09d0(0x139)]?.[_0x4d09d0(0x12d)]()||undefined,await writeUpdateNoticeCache({..._0x1322a3,'checkedAt':_0x5449b0,'latest':_0x17486f,'failed':!_0x17486f});}if(!_0x17486f||!a291_0x3cb076[_0x4d09d0(0x13e)](_0x50a817)||!a291_0x3cb076[_0x4d09d0(0x13e)](_0x17486f))return null;if(a291_0x3cb076[_0x4d09d0(0x133)](_0x50a817,_0x17486f))return null;if(isRecentlyNotified(_0x1322a3,_0x17486f,_0x5449b0))return null;const _0x22dede=CLI_BIN_NAME+_0x4d09d0(0x142);return await writeUpdateNoticeCache({..._0x1322a3,'checkedAt':isFreshCheck(_0x1322a3,_0x5449b0)?_0x1322a3[_0x4d09d0(0x13c)]:_0x5449b0,'latest':_0x17486f,'failed':![],'lastNotifiedVersion':_0x17486f,'lastNotifiedAt':_0x5449b0}),{'command':_0x22dede,'current':_0x50a817,'latest':_0x17486f,'url':buildNpmVersionUrl(_0x17486f),'message':CLI_BIN_NAME+'\x20'+_0x17486f+_0x4d09d0(0x12b)+_0x50a817+_0x4d09d0(0x13d)+_0x22dede};}catch{return null;}}
1
+ (function(_0x2b7760,_0x2013d7){const _0x3ceae0=a291_0x5779,_0x323cd4=_0x2b7760();while(!![]){try{const _0xb31762=parseInt(_0x3ceae0(0x208))/0x1*(parseInt(_0x3ceae0(0x204))/0x2)+-parseInt(_0x3ceae0(0x1f4))/0x3+-parseInt(_0x3ceae0(0x1f3))/0x4*(-parseInt(_0x3ceae0(0x1f1))/0x5)+parseInt(_0x3ceae0(0x1f2))/0x6*(parseInt(_0x3ceae0(0x1ed))/0x7)+parseInt(_0x3ceae0(0x1f5))/0x8+-parseInt(_0x3ceae0(0x1fd))/0x9*(-parseInt(_0x3ceae0(0x1f9))/0xa)+-parseInt(_0x3ceae0(0x1ff))/0xb*(parseInt(_0x3ceae0(0x1f8))/0xc);if(_0xb31762===_0x2013d7)break;else _0x323cd4['push'](_0x323cd4['shift']());}catch(_0x441293){_0x323cd4['push'](_0x323cd4['shift']());}}}(a291_0x809b,0xeb3ad));import{mkdir,readFile,writeFile}from'node:fs/promises';import{homedir}from'node:os';import{dirname,join}from'node:path';import a291_0x1aa315 from'semver';import{CLI_BIN_NAME,NPM_PACKAGE_NAME}from'../constant/cli.js';import{getCliVersionPolicy}from'../utils/cli-version-policy.js';import{getCliVersion}from'../utils/version.js';const UPDATE_CHECK_TTL_MS=0xc*0x3c*0x3c*0x3e8,UPDATE_NOTICE_TTL_MS=0x18*0x3c*0x3c*0x3e8;function isUpdateNoticeDisabled(){const _0x24d752=a291_0x5779,_0x36e535=process.env.RABETBASE_NO_UPDATE_NOTICE?.[_0x24d752(0x1eb)]()[_0x24d752(0x1f7)]();return _0x36e535==='1'||_0x36e535===_0x24d752(0x1fa)||_0x36e535===_0x24d752(0x205);}function cacheRoot(){const _0x59a9e6=a291_0x5779;return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),_0x59a9e6(0x1ef));}function a291_0x5779(_0x21d8b8,_0x5e67dd){_0x21d8b8=_0x21d8b8-0x1e8;const _0x809b30=a291_0x809b();let _0x5779c3=_0x809b30[_0x21d8b8];return _0x5779c3;}export function getUpdateNoticeCachePath(){const _0x572809=a291_0x5779;return join(cacheRoot(),_0x572809(0x1fe),_0x572809(0x200));}async function readUpdateNoticeCache(){const _0x47b44f=a291_0x5779;try{const _0x1fa7b5=await readFile(getUpdateNoticeCachePath(),_0x47b44f(0x1e8)),_0x27b5ad=JSON['parse'](_0x1fa7b5);if(!_0x27b5ad||typeof _0x27b5ad!==_0x47b44f(0x202))return{};return _0x27b5ad;}catch{return{};}}async function writeUpdateNoticeCache(_0xb517d8){const _0x55b5a0=a291_0x5779;try{const _0x15e643=getUpdateNoticeCachePath();await mkdir(dirname(_0x15e643),{'recursive':!![]}),await writeFile(_0x15e643,JSON['stringify'](_0xb517d8,null,0x2)+'\x0a',_0x55b5a0(0x1e8));}catch{}}function isFreshCheck(_0x36a221,_0x3d3a71){const _0x1a0a75=a291_0x5779;return typeof _0x36a221[_0x1a0a75(0x1fc)]===_0x1a0a75(0x1f0)&&_0x3d3a71-_0x36a221[_0x1a0a75(0x1fc)]<UPDATE_CHECK_TTL_MS;}function isRecentlyNotified(_0x518528,_0x46a449,_0x599815){const _0x5c0a06=a291_0x5779;return _0x518528['lastNotifiedVersion']===_0x46a449&&typeof _0x518528['lastNotifiedAt']===_0x5c0a06(0x1f0)&&_0x599815-_0x518528[_0x5c0a06(0x1fb)]<UPDATE_NOTICE_TTL_MS;}export function buildNpmVersionUrl(_0x3422ba){const _0x7735ab=a291_0x5779;return _0x7735ab(0x207)+NPM_PACKAGE_NAME+_0x7735ab(0x1f6)+_0x3422ba;}function a291_0x809b(){const _0x4885b8=['yes','gte','https://www.npmjs.com/package/','2432JrtedX','utf8','latest','stableVersion','trim','valid','7xcLoyf','\x20available,\x20current\x20','.cache','number','2949055rWGyPl','5803254dJjwRL','8CSeHyH','632457vwCYOO','1990288oPpSFs','/v/','toLowerCase','8116248fAvtPX','30nfmWme','true','lastNotifiedAt','checkedAt','3584907aigirO','rabetbase-cli','55OCtpoq','update-check.json','now','object',',\x20run:\x20','794dSVWeL'];a291_0x809b=function(){return _0x4885b8;};return a291_0x809b();}export async function resolveLatestUpdateNotice(){const _0x4a1a74=a291_0x5779;if(isUpdateNoticeDisabled())return null;try{const _0x6090a1=Date[_0x4a1a74(0x201)](),_0x2ba5f1=getCliVersion(),_0xc12088=await readUpdateNoticeCache();let _0x49b82f=isFreshCheck(_0xc12088,_0x6090a1)?_0xc12088[_0x4a1a74(0x1e9)]?.[_0x4a1a74(0x1eb)]():undefined;if(!_0x49b82f&&!isFreshCheck(_0xc12088,_0x6090a1)){const _0x20f299=await getCliVersionPolicy();_0x49b82f=_0x20f299?.[_0x4a1a74(0x1ea)]?.[_0x4a1a74(0x1eb)]()||undefined,await writeUpdateNoticeCache({..._0xc12088,'checkedAt':_0x6090a1,'latest':_0x49b82f,'failed':!_0x49b82f});}if(!_0x49b82f||!a291_0x1aa315[_0x4a1a74(0x1ec)](_0x2ba5f1)||!a291_0x1aa315[_0x4a1a74(0x1ec)](_0x49b82f))return null;if(a291_0x1aa315[_0x4a1a74(0x206)](_0x2ba5f1,_0x49b82f))return null;if(isRecentlyNotified(_0xc12088,_0x49b82f,_0x6090a1))return null;const _0x2d65ec=CLI_BIN_NAME+'\x20update';return await writeUpdateNoticeCache({..._0xc12088,'checkedAt':isFreshCheck(_0xc12088,_0x6090a1)?_0xc12088[_0x4a1a74(0x1fc)]:_0x6090a1,'latest':_0x49b82f,'failed':![],'lastNotifiedVersion':_0x49b82f,'lastNotifiedAt':_0x6090a1}),{'command':_0x2d65ec,'current':_0x2ba5f1,'latest':_0x49b82f,'url':buildNpmVersionUrl(_0x49b82f),'message':CLI_BIN_NAME+'\x20'+_0x49b82f+_0x4a1a74(0x1ee)+_0x2ba5f1+_0x4a1a74(0x203)+_0x2d65ec};}catch{return null;}}
@@ -1 +1 @@
1
- function a292_0x4ffb(_0x302cc9,_0x2a06b8){_0x302cc9=_0x302cc9-0x9b;var _0xb92673=a292_0xb926();var _0x4ffb7b=_0xb92673[_0x302cc9];return _0x4ffb7b;}(function(_0x5f00c0,_0x37088d){var _0x18e599=a292_0x4ffb,_0x1d625c=_0x5f00c0();while(!![]){try{var _0x58bf5d=parseInt(_0x18e599(0xa2))/0x1*(-parseInt(_0x18e599(0x9f))/0x2)+parseInt(_0x18e599(0x9c))/0x3+-parseInt(_0x18e599(0x9b))/0x4+parseInt(_0x18e599(0x9e))/0x5*(parseInt(_0x18e599(0xa3))/0x6)+parseInt(_0x18e599(0xa0))/0x7*(parseInt(_0x18e599(0xa1))/0x8)+-parseInt(_0x18e599(0x9d))/0x9+parseInt(_0x18e599(0xa4))/0xa;if(_0x58bf5d===_0x37088d)break;else _0x1d625c['push'](_0x1d625c['shift']());}catch(_0x3e0665){_0x1d625c['push'](_0x1d625c['shift']());}}}(a292_0xb926,0x510c9));import{VERSION}from'../generated/build-info.js';export function getCliVersion(){return VERSION;}function a292_0xb926(){var _0xc3aca7=['1253272FyGKaL','35JEAgre','117832jNfjDy','1iLTqYW','3370134oBQyvu','446630yOCuks','480604ZKbiSz','1297776yvoRVn','304425uvWnTm','5XpJfah'];a292_0xb926=function(){return _0xc3aca7;};return a292_0xb926();}
1
+ function a292_0x40ca(_0x5a47a0,_0x358ac9){_0x5a47a0=_0x5a47a0-0xe1;var _0xdc786a=a292_0xdc78();var _0x40ca88=_0xdc786a[_0x5a47a0];return _0x40ca88;}(function(_0x302f0b,_0x9ff8b1){var _0x3a1e94=a292_0x40ca,_0x4fe820=_0x302f0b();while(!![]){try{var _0x380f75=-parseInt(_0x3a1e94(0xe7))/0x1+parseInt(_0x3a1e94(0xe1))/0x2*(parseInt(_0x3a1e94(0xe9))/0x3)+-parseInt(_0x3a1e94(0xea))/0x4*(parseInt(_0x3a1e94(0xe5))/0x5)+parseInt(_0x3a1e94(0xe6))/0x6+-parseInt(_0x3a1e94(0xe4))/0x7*(-parseInt(_0x3a1e94(0xeb))/0x8)+-parseInt(_0x3a1e94(0xe3))/0x9*(parseInt(_0x3a1e94(0xe2))/0xa)+-parseInt(_0x3a1e94(0xe8))/0xb;if(_0x380f75===_0x9ff8b1)break;else _0x4fe820['push'](_0x4fe820['shift']());}catch(_0x4e8e6d){_0x4fe820['push'](_0x4fe820['shift']());}}}(a292_0xdc78,0x59522));import{VERSION}from'../generated/build-info.js';export function getCliVersion(){return VERSION;}function a292_0xdc78(){var _0x362066=['563330wSDMQU','9IMxfjD','483XyTUoX','5GOYIUp','4388430CCiBIt','491523mWgJDZ','8010134TWJPAc','3dBZdSV','147220TixOGA','62312lCArSu','819734dSKsqm'];a292_0xdc78=function(){return _0x362066;};return a292_0xdc78();}
@@ -1 +1 @@
1
- function a293_0x3539(){var _0x49254c=['18diqIOV','4458872pCPhIV','6503FcbIPv','12yxKxVn','958064pUyvmO','19895300oHEbUP','4104CQawPV','5858545pqrZoT','14437116jJXRZS','128526zmsYPc'];a293_0x3539=function(){return _0x49254c;};return a293_0x3539();}function a293_0x3b17(_0x2797ac,_0x3ea49a){_0x2797ac=_0x2797ac-0x180;var _0x3539e9=a293_0x3539();var _0x3b17de=_0x3539e9[_0x2797ac];return _0x3b17de;}(function(_0x7e89fe,_0x722032){var _0xcb8c0a=a293_0x3b17,_0x1a0d59=_0x7e89fe();while(!![]){try{var _0x29ec8b=-parseInt(_0xcb8c0a(0x189))/0x1*(-parseInt(_0xcb8c0a(0x180))/0x2)+-parseInt(_0xcb8c0a(0x183))/0x3*(-parseInt(_0xcb8c0a(0x184))/0x4)+parseInt(_0xcb8c0a(0x187))/0x5+-parseInt(_0xcb8c0a(0x186))/0x6*(-parseInt(_0xcb8c0a(0x182))/0x7)+parseInt(_0xcb8c0a(0x181))/0x8+-parseInt(_0xcb8c0a(0x188))/0x9+-parseInt(_0xcb8c0a(0x185))/0xa;if(_0x29ec8b===_0x722032)break;else _0x1a0d59['push'](_0x1a0d59['shift']());}catch(_0x51b3eb){_0x1a0d59['push'](_0x1a0d59['shift']());}}}(a293_0x3539,0xd8390));import{setActiveCookie,clearActiveCookie}from'../core/api-client.js';export async function withActiveCookie(_0x3a7562,_0x102c4a){setActiveCookie(_0x3a7562);try{return await _0x102c4a();}finally{clearActiveCookie();}}
1
+ (function(_0x507f0e,_0xfd37e6){var _0x3549e8=a293_0x1ca6,_0x27c89=_0x507f0e();while(!![]){try{var _0x48ebbd=parseInt(_0x3549e8(0xb8))/0x1+parseInt(_0x3549e8(0xb9))/0x2+parseInt(_0x3549e8(0xb6))/0x3*(parseInt(_0x3549e8(0xbf))/0x4)+-parseInt(_0x3549e8(0xbc))/0x5+-parseInt(_0x3549e8(0xba))/0x6*(parseInt(_0x3549e8(0xb7))/0x7)+-parseInt(_0x3549e8(0xbb))/0x8+-parseInt(_0x3549e8(0xbd))/0x9*(parseInt(_0x3549e8(0xbe))/0xa);if(_0x48ebbd===_0xfd37e6)break;else _0x27c89['push'](_0x27c89['shift']());}catch(_0x346ea3){_0x27c89['push'](_0x27c89['shift']());}}}(a293_0xab8f,0x765b6));function a293_0x1ca6(_0x20da7c,_0x2bc06f){_0x20da7c=_0x20da7c-0xb6;var _0xab8fd4=a293_0xab8f();var _0x1ca63b=_0xab8fd4[_0x20da7c];return _0x1ca63b;}import{setActiveCookie,clearActiveCookie}from'../core/api-client.js';export async function withActiveCookie(_0x504de0,_0xd7c065){setActiveCookie(_0x504de0);try{return await _0xd7c065();}finally{clearActiveCookie();}}function a293_0xab8f(){var _0x211331=['12WEWiRY','1373267WpuVLM','638753ljoijk','641700IKILpz','12dQpkrk','1325328eCjwAR','165240vmeIat','45CQNrUp','671210dxTPcc','451868SvIpeZ'];a293_0xab8f=function(){return _0x211331;};return a293_0xab8f();}
@@ -1 +1 @@
1
- function a294_0x5dbe(){var _0x6e5c07=['82993igFaNg','21JROjub','20AhiKjD','6119120XSFmtc','5781663oYlTmU','16TRhLRx','stderr','5195040onGlyH','525772yPKrFr','8138608vOrAlf','434880dOBolA'];a294_0x5dbe=function(){return _0x6e5c07;};return a294_0x5dbe();}function a294_0x4cb4(_0x3ca267,_0x418655){_0x3ca267=_0x3ca267-0x128;var _0x5dbe71=a294_0x5dbe();var _0x4cb4f6=_0x5dbe71[_0x3ca267];return _0x4cb4f6;}(function(_0x31b649,_0x2f5e31){var _0x16361d=a294_0x4cb4,_0x3d37b5=_0x31b649();while(!![]){try{var _0x3676fd=-parseInt(_0x16361d(0x132))/0x1*(parseInt(_0x16361d(0x12c))/0x2)+parseInt(_0x16361d(0x128))/0x3*(parseInt(_0x16361d(0x12f))/0x4)+-parseInt(_0x16361d(0x12e))/0x5+parseInt(_0x16361d(0x131))/0x6+-parseInt(_0x16361d(0x12a))/0x7+parseInt(_0x16361d(0x130))/0x8+parseInt(_0x16361d(0x12b))/0x9*(parseInt(_0x16361d(0x129))/0xa);if(_0x3676fd===_0x2f5e31)break;else _0x3d37b5['push'](_0x3d37b5['shift']());}catch(_0x1f5ff9){_0x3d37b5['push'](_0x3d37b5['shift']());}}}(a294_0x5dbe,0xaf329));export function writeCliSideChannelLine(_0x674df2){var _0x3a83e3=a294_0x4cb4;process[_0x3a83e3(0x12d)]['write'](_0x674df2+'\x0a');}
1
+ (function(_0x59bfdb,_0x5d50c5){var _0x2f57a8=a294_0x4bfd,_0xc62c7f=_0x59bfdb();while(!![]){try{var _0x5f3aff=parseInt(_0x2f57a8(0x1b2))/0x1+-parseInt(_0x2f57a8(0x1b5))/0x2+-parseInt(_0x2f57a8(0x1b6))/0x3+-parseInt(_0x2f57a8(0x1b1))/0x4*(-parseInt(_0x2f57a8(0x1ad))/0x5)+parseInt(_0x2f57a8(0x1b4))/0x6+-parseInt(_0x2f57a8(0x1af))/0x7*(-parseInt(_0x2f57a8(0x1ae))/0x8)+parseInt(_0x2f57a8(0x1ab))/0x9*(-parseInt(_0x2f57a8(0x1b3))/0xa);if(_0x5f3aff===_0x5d50c5)break;else _0xc62c7f['push'](_0xc62c7f['shift']());}catch(_0x425faa){_0xc62c7f['push'](_0xc62c7f['shift']());}}}(a294_0x5d06,0xc4e92));function a294_0x5d06(){var _0x35b943=['9ttKxXk','write','25GcDPej','976QEvwed','61971blglgB','stderr','1039628tuQCgk','1425777WEiPEW','17791310WDLJZP','3312120tbQtzr','2683916lMQrel','1289289Gnldqq'];a294_0x5d06=function(){return _0x35b943;};return a294_0x5d06();}function a294_0x4bfd(_0x34aae2,_0x3c2981){_0x34aae2=_0x34aae2-0x1ab;var _0x5d061c=a294_0x5d06();var _0x4bfd14=_0x5d061c[_0x34aae2];return _0x4bfd14;}export function writeCliSideChannelLine(_0x2b74a2){var _0x3bd9b8=a294_0x4bfd;process[_0x3bd9b8(0x1b0)][_0x3bd9b8(0x1ac)](_0x2b74a2+'\x0a');}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lovrabet/rabetbase-cli",
3
- "version": "2.5.0-beta.1",
3
+ "version": "2.5.0-beta.3",
4
4
  "description": "Developer CLI for Lovrabet apps, datasets, pages, SQL, Backend Function, database connections, skills, and AI agent workflows.",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "keywords": [
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: rabetbase
3
- version: 2.5.0-beta.1
3
+ version: 2.5.0-beta.3
4
4
  description: "Lovrabet 开发工作流 CLI — 通过 rabetbase 命令管理数据集、数据库连接(dblink)、数据列表页(Data List Page)、自定义页面(Custom Page)、SQL 查询、Backend Function 脚本、通知配置、企业知识库、菜单事实读取与同步、开发角色与协作者、应用文件、面向票证类业务材料文字与结构化字段提取的 OCR、代码生成,以及平台问题上报。触发词:数据集、数据表、dataset relation-audit、dataset delete、dataset restore、废弃数据集、恢复数据集、dataset rename、dataset field-update、dataset extend-update、dataset business-groups、dataset business-group-update、businessGroup、字段对象更新、doType、options、数据列表页、Data List Page、自定义页面、Custom Page、page create、page custom-list、page custom-detail、page custom-update、page custom-publish、page generate-start、page generate-status、page relation-audit、page sync、page pull、page push、page restore、恢复已删除页面、dblink、数据库连接、schema 分析、db list、db detail、db create、db update、db delete、db test、db tables、db diff、db diff --view all、db diff-refresh-start、db diff-refresh-status、db analyze-batch-plan、db analyze-start、analyze-cancel、analyze-status、traceId、自定义 SQL、sql.execute、bff.execute、BF 消息通知、Backend Function 消息通知、notification config-list、EMAIL configCode、通知配置、notification.send、企业知识库、公司知识、公共知识、kb search、get_dataset_detail、validate_sql_content、save_or_update_custom_sql、@lovrabet/sdk、lovrabet 开发、rabetbase、filter、codegen、init、appcode、app list、app members-list、tenant members-list、应用人员列表、租户人员列表、workspace、workspace init、workspace use、workspace add、workspace remove、多应用、默认应用、menu list、menu visibility-update、菜单显示、菜单隐藏、visible、menu external-link-create、menu external-link-update、menu rename、菜单改名、外链菜单创建、外链 URL 更新、菜单异常审计、菜单手动删除清单、menu sync、menu asset-update、菜单资源更新、menu move、菜单移动、开发角色、开发协作者、role、role list、role user-add、role user-remove、user-resolve、加入开发者、ADMIN、DEV、OWNER、CUSTOM、project create、project upgrade、schema、jq、compress、file upload、file query-url、ocr recognize、文件上传、OCR 识别、票证文字提取、票证字段提取、发票识别、票据识别、证照识别、长期链接、issue report、平台问题、platform issue、问题上报、user-account dingding-sandbox-bind、钉钉沙箱账号绑定。"
5
5
  metadata:
6
6
  requires:
@@ -29,7 +29,7 @@
29
29
 
30
30
  ### 查找或修改已有页面
31
31
 
32
- 1. 未知页面 ID 时,先阅读 [`rabetbase-page-custom-list.md`](../references/rabetbase-page-custom-list.md),执行 `page custom-list --appcode <appCode>`
32
+ 1. 未知页面 ID 时,先阅读 [`rabetbase-page-custom-list.md`](../references/rabetbase-page-custom-list.md),执行 `page custom-list`;仅在跨应用或覆盖工作区默认应用时传 `--appcode <appCode>`
33
33
  2. 根据 `data.pages[].pageId` 与 `label` 与用户确认目标页面;`data.pages[].pageUrl` 用于查看最新保存内容,`data.pages[].editPageUrl` 用于打开页面编辑器
34
34
  3. 阅读 [`rabetbase-page-custom-detail.md`](../references/rabetbase-page-custom-detail.md),执行 `page custom-detail --id <pageId>`
35
35
  4. 只在返回的最新 `data.codeContent` 基础上编辑,不得根据旧缓存或猜测覆盖文件
@@ -134,7 +134,7 @@ rabetbase workspace remove product --yes
134
134
  | `userDomain` | string | 平台默认 | 自定义用户域名 |
135
135
  | `runtimeDomain` | string | 平台默认 | 自定义运行时域名 |
136
136
  | `skillDomain` | string | 节点默认 | SkillHub HTTPS origin 覆盖 |
137
- | `kbDomain` | string | 节点默认 | 企业知识库 HTTPS origin 覆盖 |
137
+ | `kbDomain` | string | 跟随 `apiDomain` / 节点 API 默认值 | 企业知识库 HTTPS origin 覆盖;显式配置时优先,`runtimeDomain` 不参与回退 |
138
138
  | `appDomain` | string | 节点默认 | 工作台、页面编辑器和发布页面域名 |
139
139
 
140
140
  ### AppProfile 字段(`apps.*` 内的每个应用)
@@ -18,14 +18,25 @@ rabetbase dataset business-group-update \
18
18
 
19
19
  确认 dry-run 结果无误后再去掉 `--dry-run` 执行。
20
20
 
21
+ 清空当前业务场景分组:
22
+
23
+ ```bash
24
+ rabetbase dataset business-group-update \
25
+ --code 1a90dbff5f094a9a89936fa99b10984c \
26
+ --business-group ungrouped \
27
+ --expect-business-group "旧分组" \
28
+ --dry-run \
29
+ --format compress
30
+ ```
31
+
21
32
  ## 参数
22
33
 
23
34
  | Flag | 必填 | 说明 |
24
35
  | --- | --- | --- |
25
36
  | `--appcode <code>` | 否 | 目标应用编码;未配置默认 app 时必填 |
26
37
  | `--code <code>` | 是 | Dataset code,32 位 hex UUID |
27
- | `--business-group <name>` | 是 | 目标业务场景分组;空字符串表示清空 |
28
- | `--expect-business-group <name>` | 否 | 当前业务场景分组保护;不匹配即中止且不写入 |
38
+ | `--business-group <name>` | 是 | 目标业务场景分组;保留值 `ungrouped` 表示清空 |
39
+ | `--expect-business-group <name>` | 否 | 当前业务场景分组保护;使用 `ungrouped` 表示期望当前未分组;不匹配即中止且不写入 |
29
40
  | `--dry-run` | 否 | 只返回 before/after 预览,不执行写入 |
30
41
  | `--format <fmt>` | 否 | 输出格式,AI Agent 优先用 `compress` |
31
42
 
@@ -33,9 +44,9 @@ rabetbase dataset business-group-update \
33
44
 
34
45
  - 命令用 `--code` 定位 Dataset。
35
46
  - 当前值和写后校验都按 Dataset code 读取业务场景分组;不需要 `dblinkId`、`tableName` 或 `sourceType`。
36
- - `--business-group` 为空字符串时表示清空业务场景分组。
37
- - 回读到 `businessGroup` 为空字符串时表示未分组,是合法当前值。
38
- - `--expect-business-group` 用于保护当前值;不匹配时中止且不写入。
47
+ - `--business-group ungrouped` 表示清空业务场景分组;`ungrouped` 是保留值,不能作为分组名称使用。
48
+ - 平台原始详情可能以空字符串返回 `businessGroup`,也可能省略 `extend.businessGroup`;CLI 会将这两种形态统一归一化为空字符串,表示未分组。
49
+ - `--expect-business-group` 用于保护当前值;当前未分组时传 `ungrouped`,不匹配时中止且不写入。
39
50
  - `--dry-run` 只预览 before/after,不执行写入。
40
51
  - 正式写入后会校验目标值已生效。
41
52
  - 当目标值和当前值一致时,命令返回 `changed=false`,不会执行写入。
@@ -70,7 +81,7 @@ rabetbase dataset business-group-update \
70
81
  ## 提示
71
82
 
72
83
  - 写入前必须先运行 `--dry-run`。
73
- - `businessGroup` 用于按业务场景组织 Dataset,而不是按数据库、表类型或服务名等技术结构分组。优先按业务场景命名并复用当前应用已有分组;需要跨领域消歧或沿用既有两级分组体系时,可使用 `<业务领域>---<业务场景>`,否则使用 `<业务场景>`。表数量不决定是否拆分层级。建议最多两级,层级不得为空或带首尾空白;空字符串表示清空。CLI 仅描述推荐格式并保持兼容,不额外拒绝历史非标准值。
84
+ - `businessGroup` 用于按业务场景组织 Dataset,而不是按数据库、表类型或服务名等技术结构分组。优先按业务场景命名并复用当前应用已有分组;需要跨领域消歧或沿用既有两级分组体系时,可使用 `<业务领域>---<业务场景>`,否则使用 `<业务场景>`。表数量不决定是否拆分层级。建议最多两级,层级不得为空或带首尾空白;使用保留值 `ungrouped` 清空。CLI 仅描述推荐格式并保持兼容,不额外拒绝历史非标准值。
74
85
  - 推荐用 `--expect-business-group` 保护当前值。
75
86
  - 不确定 Dataset code 时,先用 `rabetbase dataset list --name <name> --format compress` 定位。
76
87
  - 业务场景分组只能使用本命令更新,不要通过 `dataset extend-update` 或 `/smartapi/dataset/update-driven-data` 修改。
@@ -2,7 +2,7 @@
2
2
 
3
3
  管理开发者侧当前解析应用下的 `company` 知识库,并检索当前应用可访问的公司与公共知识。所有命令都通过标准工作区、`--app <name>` 或 `--appcode <code>` 解析目标应用。
4
4
 
5
- 企业知识库请求使用 `kbDomain`;普通研发平台接口仍使用 `apiDomain`。当前 rabetbase-cli 没有调用 SkillHub 业务 API,未来新增时必须使用独立的 `skillDomain`。
5
+ 企业知识库请求使用独立的 `kbDomain`。当前官方节点的 KB 仍由平台 API 服务承载,因此未显式配置 `kbDomain` 时跟随 `apiDomain`;KB 服务拆分或企业独立部署时可单独覆盖 `kbDomain`。`runtimeDomain` 不参与 rabetbase 企业 KB 路由。当前 rabetbase-cli 没有调用 SkillHub 业务 API,未来新增时必须使用独立的 `skillDomain`。
6
6
 
7
7
  > 边界:`lovrabet kb` 使用运行态 AK/当前应用/当前用户,面向个人知识库和可见知识搜索;`rabetbase kb` 使用开发者登录态,面向公司知识库管理以及公司/公共知识检索。不要用其中一个替代另一个。
8
8
 
@@ -3,7 +3,8 @@
3
3
  ## 命令
4
4
 
5
5
  ```bash
6
- rabetbase page custom-list --appcode <appCode> --format json
6
+ rabetbase page custom-list --format compress
7
+ rabetbase page custom-list --appcode <appCode> --format compress
7
8
  ```
8
9
 
9
10
  ## 适用场景
@@ -12,7 +13,9 @@ rabetbase page custom-list --appcode <appCode> --format json
12
13
 
13
14
  ## 参数
14
15
 
15
- - `--appcode <appCode>`:必填,目标应用 code
16
+ - `--appcode <appCode>`:可选;不传时从当前工作区 `defaultApp` 或唯一应用自动决议,传入时覆盖工作区选择
17
+
18
+ 工作区无可决议应用且未传 `--appcode` 时,命令返回结构化的应用配置缺失错误,不会请求菜单接口。
16
19
 
17
20
  ## 输出
18
21
 
@@ -2,8 +2,8 @@
2
2
  "schemaVersion": 1,
3
3
  "name": "rabetbase",
4
4
  "packageName": "@lovrabet/rabetbase-cli",
5
- "packageVersion": "2.5.0-beta.1",
6
- "skillVersion": "2.5.0-beta.1",
5
+ "packageVersion": "2.5.0-beta.3",
6
+ "skillVersion": "2.5.0-beta.3",
7
7
  "files": [
8
8
  "SKILL.md",
9
9
  "guides/backend-function.md",
@@ -132,5 +132,5 @@
132
132
  "references/rabetbase-user-account.md",
133
133
  "references/rabetbase-workspace.md"
134
134
  ],
135
- "digest": "f8905b3969e94a98cbc8a676aeee553f7f1f5258dd2ff9988306210b00246de9"
135
+ "digest": "d4362adbb43274c9bd91aff62f2838f936835f38d2832f03c2e459ada27df78f"
136
136
  }