@lovrabet/rabetbase-cli 2.5.1-beta.2 → 2.5.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 (309) 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-restore.js +1 -1
  66. package/lib/commands/dataset/field-update.js +1 -1
  67. package/lib/commands/dataset/generate.js +1 -1
  68. package/lib/commands/dataset/index.js +1 -1
  69. package/lib/commands/dataset/list.js +1 -1
  70. package/lib/commands/dataset/operations.js +1 -1
  71. package/lib/commands/dataset/relation-audit.js +1 -1
  72. package/lib/commands/dataset/relation-create.js +1 -1
  73. package/lib/commands/dataset/relation-delete.js +1 -1
  74. package/lib/commands/dataset/relation-shared.js +1 -1
  75. package/lib/commands/dataset/relation-update.js +1 -1
  76. package/lib/commands/dataset/relations.js +1 -1
  77. package/lib/commands/dataset/rename.js +1 -1
  78. package/lib/commands/dataset/restore.js +1 -1
  79. package/lib/commands/dataset/user-deleted-field-list.js +1 -1
  80. package/lib/commands/db/analysis-batching.js +1 -1
  81. package/lib/commands/db/analyze-batch-plan.js +1 -1
  82. package/lib/commands/db/analyze-cancel.js +1 -1
  83. package/lib/commands/db/analyze-start.js +1 -1
  84. package/lib/commands/db/analyze-status.js +1 -1
  85. package/lib/commands/db/create.js +1 -1
  86. package/lib/commands/db/delete.js +1 -1
  87. package/lib/commands/db/detail.js +1 -1
  88. package/lib/commands/db/diff-refresh-start.js +1 -1
  89. package/lib/commands/db/diff-refresh-status.js +1 -1
  90. package/lib/commands/db/diff.js +1 -1
  91. package/lib/commands/db/index.js +1 -1
  92. package/lib/commands/db/list.js +1 -1
  93. package/lib/commands/db/shared.js +1 -1
  94. package/lib/commands/db/table-diff-shared.js +1 -1
  95. package/lib/commands/db/tables.js +1 -1
  96. package/lib/commands/db/test.js +1 -1
  97. package/lib/commands/db/update.js +1 -1
  98. package/lib/commands/deployment/auto-sync.js +1 -1
  99. package/lib/commands/deployment/index.js +1 -1
  100. package/lib/commands/deployment/sync.js +1 -1
  101. package/lib/commands/doctor.js +1 -1
  102. package/lib/commands/file/index.js +1 -1
  103. package/lib/commands/issue/index.js +1 -1
  104. package/lib/commands/issue/nudge.js +1 -1
  105. package/lib/commands/issue/report.js +1 -1
  106. package/lib/commands/issue/shared.js +1 -1
  107. package/lib/commands/kb/create.js +1 -1
  108. package/lib/commands/kb/delete.js +1 -1
  109. package/lib/commands/kb/detail.js +1 -1
  110. package/lib/commands/kb/index.js +1 -1
  111. package/lib/commands/kb/list.js +1 -1
  112. package/lib/commands/kb/search.js +1 -1
  113. package/lib/commands/kb/shared.js +1 -1
  114. package/lib/commands/kb/update.js +1 -1
  115. package/lib/commands/logs/index.js +1 -1
  116. package/lib/commands/menu/asset-update.js +1 -1
  117. package/lib/commands/menu/delete.js +1 -1
  118. package/lib/commands/menu/external-link-create.js +1 -1
  119. package/lib/commands/menu/external-link-update.js +1 -1
  120. package/lib/commands/menu/group-create.js +1 -1
  121. package/lib/commands/menu/group-update.js +1 -1
  122. package/lib/commands/menu/index.js +1 -1
  123. package/lib/commands/menu/list.js +1 -1
  124. package/lib/commands/menu/move.js +1 -1
  125. package/lib/commands/menu/regroup-start.js +1 -1
  126. package/lib/commands/menu/rename.js +1 -1
  127. package/lib/commands/menu/shared/compare-table.js +1 -1
  128. package/lib/commands/menu/shared/delete-plan.js +1 -1
  129. package/lib/commands/menu/shared/facts.js +1 -1
  130. package/lib/commands/menu/shared/index.js +1 -1
  131. package/lib/commands/menu/shared/inquirer.js +1 -1
  132. package/lib/commands/menu/shared/local-pages.js +1 -1
  133. package/lib/commands/menu/shared/logic.js +1 -1
  134. package/lib/commands/menu/shared/mutations.js +1 -1
  135. package/lib/commands/menu/shared/service.js +1 -1
  136. package/lib/commands/menu/shared/sync-core.js +1 -1
  137. package/lib/commands/menu/shared/update-core.js +1 -1
  138. package/lib/commands/menu/shared/valid-url.js +1 -1
  139. package/lib/commands/menu/sync.js +1 -1
  140. package/lib/commands/menu/visibility-update.js +1 -1
  141. package/lib/commands/notification/config-create.js +1 -1
  142. package/lib/commands/notification/config-delete.js +1 -1
  143. package/lib/commands/notification/config-list.js +1 -1
  144. package/lib/commands/notification/config-update.js +1 -1
  145. package/lib/commands/notification/index.js +1 -1
  146. package/lib/commands/notification/shared.js +1 -1
  147. package/lib/commands/ocr/index.js +1 -1
  148. package/lib/commands/page/create.js +1 -1
  149. package/lib/commands/page/custom/detail.js +1 -1
  150. package/lib/commands/page/custom/list.js +1 -1
  151. package/lib/commands/page/custom/publish.js +1 -1
  152. package/lib/commands/page/custom/shared.js +1 -1
  153. package/lib/commands/page/custom/syntax.js +1 -1
  154. package/lib/commands/page/custom/template.js +1 -1
  155. package/lib/commands/page/custom/update.js +1 -1
  156. package/lib/commands/page/data-list-status.js +1 -1
  157. package/lib/commands/page/generate-start.js +1 -1
  158. package/lib/commands/page/generate-status.js +1 -1
  159. package/lib/commands/page/index.js +1 -1
  160. package/lib/commands/page/pull.js +1 -1
  161. package/lib/commands/page/push.js +1 -1
  162. package/lib/commands/page/relation-audit.js +1 -1
  163. package/lib/commands/page/restore.js +1 -1
  164. package/lib/commands/page/shared.js +1 -1
  165. package/lib/commands/page/sync.js +1 -1
  166. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  167. package/lib/commands/project/create/format-elapsed.js +1 -1
  168. package/lib/commands/project/create/main.js +1 -1
  169. package/lib/commands/project/create/materialize-project-template.js +1 -1
  170. package/lib/commands/project/create/project-name.js +1 -1
  171. package/lib/commands/project/create/project-template-archive.js +1 -1
  172. package/lib/commands/project/create/project-template-path.js +1 -1
  173. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  174. package/lib/commands/project/create/use-format-code.js +1 -1
  175. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  176. package/lib/commands/project/index.js +1 -1
  177. package/lib/commands/project/upgrade.js +1 -1
  178. package/lib/commands/registry.js +1 -1
  179. package/lib/commands/role/delete.js +1 -1
  180. package/lib/commands/role/detail.js +1 -1
  181. package/lib/commands/role/index.js +1 -1
  182. package/lib/commands/role/list.js +1 -1
  183. package/lib/commands/role/shared.js +1 -1
  184. package/lib/commands/role/update.js +1 -1
  185. package/lib/commands/role/user-add.js +1 -1
  186. package/lib/commands/role/user-remove.js +1 -1
  187. package/lib/commands/role/user-resolve.js +1 -1
  188. package/lib/commands/run/index.js +1 -1
  189. package/lib/commands/schema.js +1 -1
  190. package/lib/commands/sql/create.js +1 -1
  191. package/lib/commands/sql/delete.js +1 -1
  192. package/lib/commands/sql/detail.js +1 -1
  193. package/lib/commands/sql/exec.js +1 -1
  194. package/lib/commands/sql/index.js +1 -1
  195. package/lib/commands/sql/list.js +1 -1
  196. package/lib/commands/sql/pull.js +1 -1
  197. package/lib/commands/sql/push.js +1 -1
  198. package/lib/commands/sql/shared.js +1 -1
  199. package/lib/commands/sql/status.js +1 -1
  200. package/lib/commands/sql/validate.js +1 -1
  201. package/lib/commands/task/index.js +1 -1
  202. package/lib/commands/task/status.js +1 -1
  203. package/lib/commands/tenant/index.js +1 -1
  204. package/lib/commands/tenant/members-list.js +1 -1
  205. package/lib/commands/tenant/shared.js +1 -1
  206. package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
  207. package/lib/commands/user-account/index.js +1 -1
  208. package/lib/commands/workspace/add.js +1 -1
  209. package/lib/commands/workspace/index.js +1 -1
  210. package/lib/commands/workspace/remove.js +1 -1
  211. package/lib/config/deployment-sync.js +1 -1
  212. package/lib/config/domain-config.js +1 -1
  213. package/lib/config/project-routing.js +1 -1
  214. package/lib/config/schema.js +1 -1
  215. package/lib/constant/cdn.js +1 -1
  216. package/lib/constant/cli.js +1 -1
  217. package/lib/constant/defaults.js +1 -1
  218. package/lib/constant/domain.js +1 -1
  219. package/lib/constant/env.js +1 -1
  220. package/lib/constant/output.js +1 -1
  221. package/lib/constant/paths.js +1 -1
  222. package/lib/constant/region.js +1 -1
  223. package/lib/constant/risk.js +1 -1
  224. package/lib/constant/routing-profile.js +1 -1
  225. package/lib/context/app-resolver.js +1 -1
  226. package/lib/context/auth-resolver.js +1 -1
  227. package/lib/context/config-loader.js +1 -1
  228. package/lib/context.js +1 -1
  229. package/lib/core/alias-resolver.js +1 -1
  230. package/lib/core/api-client.d.ts +0 -16
  231. package/lib/core/api-client.js +1 -1
  232. package/lib/core/bff/config.js +1 -1
  233. package/lib/core/bff/file-system.js +1 -1
  234. package/lib/core/bff/hash.js +1 -1
  235. package/lib/core/bff/lock.js +1 -1
  236. package/lib/core/bff/utils.js +1 -1
  237. package/lib/core/db-resolver.js +1 -1
  238. package/lib/core/kb-search-client.d.ts +30 -0
  239. package/lib/core/kb-search-client.js +1 -0
  240. package/lib/core/page/file-system.js +1 -1
  241. package/lib/core/page/hash.js +1 -1
  242. package/lib/core/page/lock.js +1 -1
  243. package/lib/core/sql-index-auditor.js +1 -1
  244. package/lib/core/sql-sync/config.js +1 -1
  245. package/lib/core/sql-sync/file-system.js +1 -1
  246. package/lib/core/sql-sync/hash.js +1 -1
  247. package/lib/core/sql-sync/lock.js +1 -1
  248. package/lib/core/sql-sync/utils.js +1 -1
  249. package/lib/core/sql-validator.js +1 -1
  250. package/lib/errors.js +1 -1
  251. package/lib/framework/build-all-flags.js +1 -1
  252. package/lib/framework/error-output.js +1 -1
  253. package/lib/framework/explicit-yes.js +1 -1
  254. package/lib/framework/flags.js +1 -1
  255. package/lib/framework/help.js +1 -1
  256. package/lib/framework/index.js +1 -1
  257. package/lib/framework/output.js +1 -1
  258. package/lib/framework/response.js +1 -1
  259. package/lib/framework/runner-alias.js +1 -1
  260. package/lib/framework/runner.js +1 -1
  261. package/lib/framework/schema-export.js +1 -1
  262. package/lib/framework/types.d.ts +1 -0
  263. package/lib/framework/types.js +1 -1
  264. package/lib/generated/build-info.d.ts +4 -4
  265. package/lib/generated/build-info.js +1 -1
  266. package/lib/help.js +1 -1
  267. package/lib/postinstall.js +1 -1
  268. package/lib/runtime/confirmation.js +1 -1
  269. package/lib/runtime/event.js +1 -1
  270. package/lib/runtime/index.js +1 -1
  271. package/lib/runtime/queue.js +1 -1
  272. package/lib/runtime/resolve.js +1 -1
  273. package/lib/skills/builtin-skill.js +1 -1
  274. package/lib/skills/main.js +1 -1
  275. package/lib/skills/npx-skills-add.js +1 -1
  276. package/lib/skills/skill-presence.js +1 -1
  277. package/lib/telemetry/cli-command-trace.js +1 -1
  278. package/lib/telemetry/cli-help-trace.js +1 -1
  279. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  280. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  281. package/lib/telemetry/send-cli-trace-log.js +1 -1
  282. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  283. package/lib/utils/ai_config.js +1 -1
  284. package/lib/utils/apply-jq-filter.js +1 -1
  285. package/lib/utils/cdn-config.js +1 -1
  286. package/lib/utils/check-sdk-version.js +1 -1
  287. package/lib/utils/cli-version-check.js +1 -1
  288. package/lib/utils/cli-version-policy.js +1 -1
  289. package/lib/utils/config.js +1 -1
  290. package/lib/utils/entity-with-id.js +1 -1
  291. package/lib/utils/file-utils.js +1 -1
  292. package/lib/utils/guides-cdn.js +1 -1
  293. package/lib/utils/http-client.js +1 -1
  294. package/lib/utils/is-non-interactive.js +1 -1
  295. package/lib/utils/logger.js +1 -1
  296. package/lib/utils/params.js +1 -1
  297. package/lib/utils/platform.js +1 -1
  298. package/lib/utils/sleep.js +1 -1
  299. package/lib/utils/template-replacer.js +1 -1
  300. package/lib/utils/update-notice.js +1 -1
  301. package/lib/utils/version.js +1 -1
  302. package/lib/utils/with-active-cookie.js +1 -1
  303. package/lib/utils/write-cli-side-channel.js +1 -1
  304. package/package.json +1 -1
  305. package/skills/rabetbase/SKILL.md +2 -2
  306. package/skills/rabetbase/references/rabetbase-config.md +1 -1
  307. package/skills/rabetbase/references/rabetbase-doctor.md +1 -1
  308. package/skills/rabetbase/references/rabetbase-kb.md +8 -7
  309. package/skills/rabetbase.manifest.json +3 -3
@@ -1 +1 @@
1
- const a299_0x3d3eeb=a299_0x3040;(function(_0x24548b,_0x4935cc){const _0x2f3c50=a299_0x3040,_0x3e02de=_0x24548b();while(!![]){try{const _0x570d12=parseInt(_0x2f3c50(0x18c))/0x1+parseInt(_0x2f3c50(0x197))/0x2+parseInt(_0x2f3c50(0x17f))/0x3+parseInt(_0x2f3c50(0x18d))/0x4*(-parseInt(_0x2f3c50(0x17c))/0x5)+parseInt(_0x2f3c50(0x199))/0x6*(parseInt(_0x2f3c50(0x170))/0x7)+-parseInt(_0x2f3c50(0x181))/0x8+parseInt(_0x2f3c50(0x19f))/0x9*(-parseInt(_0x2f3c50(0x180))/0xa);if(_0x570d12===_0x4935cc)break;else _0x3e02de['push'](_0x3e02de['shift']());}catch(_0x5caadf){_0x3e02de['push'](_0x3e02de['shift']());}}}(a299_0x339f,0x35bc2));function a299_0x3040(_0x216d54,_0x3f7c08){_0x216d54=_0x216d54-0x15f;const _0x339f62=a299_0x339f();let _0x3040cc=_0x339f62[_0x216d54];return _0x3040cc;}import a299_0x2ee1f9 from'node:fs';import a299_0x253faa from'node:path';import{logger}from'../utils/logger.js';import{getCliVersion}from'../utils/version.js';const CLI_VERSION=getCliVersion();function a299_0x339f(){const _0x2e1c55=['pop','.scss','extname','getMonth','.js','getHours','error','datasetCode:\x20\x22','Template\x20content\x20replacement\x20completed','.json','.jsx','isFile','replace','Starting\x20template\x20content\x20replacement','toComponentName','1807932XOIAkg','toLowerCase','push','template','processTemplate','utf8','alias:\x20\x22','alias','join','toUpperCase','charAt','getFullYear','633210sFbDkm','\x20},','.tsx','648981laMaTW','10gkHwgh','1148672LjIsGf','isDirectory','pad','includes','info','split','processFile','copyFile','.md','endsWith','.tpl','388065TsAiHN','4MsTANS','tableName:\x20\x22','toISOString','.ts','name','toDisplayTitle','slice','now','map','tableName','2538Yftzpd','promises','6KanbXK','getDate','message','mkdir','api','readFile','3362517bKaeXZ','processDirectory','success','replaceContent','Template\x20content\x20replacement\x20failed'];a299_0x339f=function(){return _0x2e1c55;};return a299_0x339f();}export class TemplateReplacer{static[a299_0x3d3eeb(0x183)](_0xacb304){return String(_0xacb304)['padStart'](0x2,'0');}static['formatLocalTimestamp'](_0x363163){const _0xc3372f=a299_0x3d3eeb,_0x22c017=_0x363163[_0xc3372f(0x17b)](),_0x2be68c=this[_0xc3372f(0x183)](_0x363163[_0xc3372f(0x164)]()+0x1),_0x500e7a=this[_0xc3372f(0x183)](_0x363163[_0xc3372f(0x19a)]()),_0x4b60e5=this[_0xc3372f(0x183)](_0x363163[_0xc3372f(0x166)]()),_0x46c390=this[_0xc3372f(0x183)](_0x363163['getMinutes']()),_0x355611=this['pad'](_0x363163['getSeconds']());return{'createdAt':_0x22c017+'-'+_0x2be68c+'-'+_0x500e7a+'\x20'+_0x4b60e5+':'+_0x46c390+':'+_0x355611,'createdDate':_0x22c017+'-'+_0x2be68c+'-'+_0x500e7a,'createdTime':_0x4b60e5+':'+_0x46c390+':'+_0x355611};}static[a299_0x3d3eeb(0x16f)](_0xcd1401){const _0x19b398=a299_0x3d3eeb,_0x72831e=_0xcd1401[_0x19b398(0x186)]('/')[_0x19b398(0x161)]()||_0xcd1401;return _0x72831e[_0x19b398(0x186)]('-')[_0x19b398(0x195)](_0x35e725=>_0x35e725['charAt'](0x0)[_0x19b398(0x179)]()+_0x35e725['slice'](0x1)[_0x19b398(0x171)]())['join']('');}static[a299_0x3d3eeb(0x192)](_0x5b6e65){const _0x29c120=a299_0x3d3eeb,_0x48bcd5=_0x5b6e65[_0x29c120(0x186)]('/')[_0x29c120(0x161)]()||_0x5b6e65;return _0x48bcd5[_0x29c120(0x186)]('-')[_0x29c120(0x195)](_0x23673b=>_0x23673b[_0x29c120(0x17a)](0x0)[_0x29c120(0x179)]()+_0x23673b[_0x29c120(0x193)](0x1)['toLowerCase']())[_0x29c120(0x178)]('\x20');}static[a299_0x3d3eeb(0x15f)](_0x17fea5,_0x2c629d,_0x204536){const _0x28c3d7=a299_0x3d3eeb,_0x478356=this['toComponentName'](_0x2c629d),_0x506ca1=this[_0x28c3d7(0x192)](_0x2c629d),{createdAt:_0x4628f6,createdDate:_0x1cbe86,createdTime:_0x48f0fb}=this['formatLocalTimestamp'](new Date());let _0x4fd1b2=_0x17fea5[_0x28c3d7(0x16d)](/\{CliVersion\}/g,CLI_VERSION)['replace'](/\{ComponentName\}/g,_0x478356)[_0x28c3d7(0x16d)](/\{DisplayTitle\}/g,_0x506ca1)['replace'](/\{PageName\}/g,_0x2c629d)[_0x28c3d7(0x16d)](/\{TemplateName\}/g,_0x204536)[_0x28c3d7(0x16d)](/\{CreatedAt\}/g,_0x4628f6)[_0x28c3d7(0x16d)](/\{CreatedDate\}/g,_0x1cbe86)['replace'](/\{CreatedTime\}/g,_0x48f0fb);return _0x4fd1b2;}static['replaceApiContent'](_0x3b68bf,_0x5273ca,_0x88ef3d,_0x1affab,_0x438e56,_0x278859,_0x50d0d3,_0x463747){const _0x1d5f0e=a299_0x3d3eeb,_0x3c9536=new Date(),_0x2189a4=_0x3c9536[_0x1d5f0e(0x18f)](),_0x132f8b=_0x88ef3d[_0x1d5f0e(0x195)](_0x1b053f=>{const _0x139972=_0x1d5f0e,_0x217384=[_0x139972(0x168)+_0x1b053f['datasetCode']+'\x22',_0x139972(0x18e)+_0x1b053f[_0x139972(0x196)]+'\x22','name:\x20\x22'+_0x1b053f[_0x139972(0x191)]+'\x22'];return _0x1b053f[_0x139972(0x177)]&&_0x217384[_0x139972(0x172)](_0x139972(0x176)+_0x1b053f[_0x139972(0x177)]+'\x22'),'\x0a\x20\x20\x20\x20{\x20'+_0x217384['join'](',\x20')+_0x139972(0x17d);})['join'](''),_0x479922=_0x1affab||_0x88ef3d[0x0]?.[_0x1d5f0e(0x177)]||'YourModel';let _0x461b58=_0x3b68bf[_0x1d5f0e(0x16d)](/\{AppCode\}/g,_0x5273ca)[_0x1d5f0e(0x16d)](/\{ModelConfigs\}/g,_0x132f8b)[_0x1d5f0e(0x16d)](/\{ExampleModelName\}/g,_0x479922)[_0x1d5f0e(0x16d)](/\{ApiFileName\}/g,_0x438e56||_0x1d5f0e(0x19d))[_0x1d5f0e(0x16d)](/\{ConfigName\}/g,_0x278859||'default')[_0x1d5f0e(0x16d)](/\{ClientConfigParam\}/g,_0x50d0d3||'')[_0x1d5f0e(0x16d)](/\{VarPrefix\}/g,_0x463747||'LOVRABET')[_0x1d5f0e(0x16d)](/\{CreatedAt\}/g,_0x2189a4);return _0x461b58;}static async[a299_0x3d3eeb(0x174)](_0x2837ea,_0xddab9d,_0x4026b1,_0x730cab,_0x5c23b7=!![]){const _0x27bf60=a299_0x3d3eeb,_0x98322e=Date[_0x27bf60(0x194)]();try{_0x5c23b7&&logger[_0x27bf60(0x185)](_0x27bf60(0x173),_0x27bf60(0x16e),{'templatePath':_0x2837ea,'targetPath':_0xddab9d,'pageName':_0x4026b1,'templateName':_0x730cab});await a299_0x2ee1f9[_0x27bf60(0x198)]['mkdir'](_0xddab9d,{'recursive':!![]}),await this[_0x27bf60(0x1a0)](_0x2837ea,_0xddab9d,_0x4026b1,_0x730cab);if(_0x5c23b7){const _0x2bdb51=Date[_0x27bf60(0x194)]()-_0x98322e;logger[_0x27bf60(0x1a1)](_0x27bf60(0x173),_0x27bf60(0x169),_0x2bdb51,{'pageName':_0x4026b1,'templateName':_0x730cab});}}catch(_0x4e813d){if(_0x5c23b7){const _0x87d1c5=Date['now']()-_0x98322e;logger[_0x27bf60(0x167)](_0x27bf60(0x173),_0x27bf60(0x160),{'templatePath':_0x2837ea,'targetPath':_0xddab9d,'pageName':_0x4026b1,'templateName':_0x730cab,'error':_0x4e813d instanceof Error?_0x4e813d[_0x27bf60(0x19b)]:String(_0x4e813d),'duration':_0x87d1c5});}throw _0x4e813d;}}static async[a299_0x3d3eeb(0x1a0)](_0x4c3ef0,_0x1375a3,_0x5befb7,_0x5ab7cc){const _0x1612c3=a299_0x3d3eeb,_0x27d206=await a299_0x2ee1f9[_0x1612c3(0x198)]['readdir'](_0x4c3ef0,{'withFileTypes':!![]});for(const _0x4c3edd of _0x27d206){const _0x13cf72=a299_0x253faa[_0x1612c3(0x178)](_0x4c3ef0,_0x4c3edd[_0x1612c3(0x191)]);let _0x4b11d1=a299_0x253faa[_0x1612c3(0x178)](_0x1375a3,_0x4c3edd[_0x1612c3(0x191)]);_0x4c3edd['name'][_0x1612c3(0x18a)](_0x1612c3(0x18b))&&(_0x4b11d1=a299_0x253faa[_0x1612c3(0x178)](_0x1375a3,_0x4c3edd['name']['replace'](/\.tpl$/,'')));if(_0x4c3edd[_0x1612c3(0x182)]())await a299_0x2ee1f9[_0x1612c3(0x198)][_0x1612c3(0x19c)](_0x4b11d1,{'recursive':!![]}),await this[_0x1612c3(0x1a0)](_0x13cf72,_0x4b11d1,_0x5befb7,_0x5ab7cc);else _0x4c3edd[_0x1612c3(0x16c)]()&&await this[_0x1612c3(0x187)](_0x13cf72,_0x4b11d1,_0x5befb7,_0x5ab7cc);}}static async['processFile'](_0x58ded6,_0x1b067e,_0x3f91eb,_0x52d64c){const _0x531f09=a299_0x3d3eeb,_0x56408b=a299_0x253faa[_0x531f09(0x163)](_0x58ded6)['toLowerCase']();_0x58ded6['endsWith']('.tpl')&&(_0x1b067e=_0x1b067e['replace'](/\.tpl$/,''));const _0x9d710f=[_0x531f09(0x17e),_0x531f09(0x190),_0x531f09(0x16b),_0x531f09(0x165),_0x531f09(0x16a),_0x531f09(0x189),'.css',_0x531f09(0x162),_0x531f09(0x18b)];if(_0x9d710f[_0x531f09(0x184)](_0x56408b)||_0x58ded6[_0x531f09(0x18a)](_0x531f09(0x18b))){const _0x4464cd=await a299_0x2ee1f9[_0x531f09(0x198)][_0x531f09(0x19e)](_0x58ded6,'utf8'),_0x1af412=this[_0x531f09(0x15f)](_0x4464cd,_0x3f91eb,_0x52d64c);await a299_0x2ee1f9['promises']['writeFile'](_0x1b067e,_0x1af412,_0x531f09(0x175));}else await a299_0x2ee1f9[_0x531f09(0x198)][_0x531f09(0x188)](_0x58ded6,_0x1b067e);}}
1
+ const a300_0x534cf0=a300_0x4770;(function(_0xd29b64,_0x26a499){const _0x2d5f85=a300_0x4770,_0x1b1d1a=_0xd29b64();while(!![]){try{const _0x145a06=-parseInt(_0x2d5f85(0x9a))/0x1*(parseInt(_0x2d5f85(0xa7))/0x2)+-parseInt(_0x2d5f85(0xac))/0x3+-parseInt(_0x2d5f85(0x8a))/0x4*(parseInt(_0x2d5f85(0x77))/0x5)+-parseInt(_0x2d5f85(0xa8))/0x6*(parseInt(_0x2d5f85(0x93))/0x7)+-parseInt(_0x2d5f85(0xad))/0x8*(parseInt(_0x2d5f85(0x75))/0x9)+parseInt(_0x2d5f85(0xaf))/0xa+parseInt(_0x2d5f85(0x8b))/0xb;if(_0x145a06===_0x26a499)break;else _0x1b1d1a['push'](_0x1b1d1a['shift']());}catch(_0x71f326){_0x1b1d1a['push'](_0x1b1d1a['shift']());}}}(a300_0x52ff,0x66f43));import a300_0x18c55a from'node:fs';import a300_0x473e4b from'node:path';function a300_0x52ff(){const _0x4db39c=['info','endsWith','toDisplayTitle','name','toLowerCase','51055YTpKhN','push','map','promises','mkdir','tableName','utf8','.tpl','processFile','readFile','.tsx','tableName:\x20\x22','getHours','2zHMVVI','2368602oZqkxs','writeFile','charAt','padStart','1404645JOJrju','4504QodRXY','getDate','6460260qjeHqc','datasetCode:\x20\x22','processDirectory','name:\x20\x22','datasetCode','alias','Template\x20content\x20replacement\x20failed','now','alias:\x20\x22','api','.scss','copyFile','toComponentName','replace','6795VDNEWq','.js','376990cJgvnj','split','YourModel','isFile','toUpperCase','getMinutes','success','\x20},','.css','includes','\x0a\x20\x20\x20\x20{\x20','join','replaceContent','isDirectory','error','.jsx','replaceApiContent','extname','Template\x20content\x20replacement\x20completed','16iltrsn','15580037laduWJ','pad','template','getFullYear','.md','readdir','getSeconds','.ts','7kkqAQK','pop'];a300_0x52ff=function(){return _0x4db39c;};return a300_0x52ff();}function a300_0x4770(_0x4f81bb,_0x211edb){_0x4f81bb=_0x4f81bb-0x69;const _0x52ff43=a300_0x52ff();let _0x477084=_0x52ff43[_0x4f81bb];return _0x477084;}import{logger}from'../utils/logger.js';import{getCliVersion}from'../utils/version.js';const CLI_VERSION=getCliVersion();export class TemplateReplacer{static[a300_0x534cf0(0x8c)](_0xc0445d){const _0x23bffd=a300_0x534cf0;return String(_0xc0445d)[_0x23bffd(0xab)](0x2,'0');}static['formatLocalTimestamp'](_0x3bf8fc){const _0x159497=a300_0x534cf0,_0x32d81f=_0x3bf8fc[_0x159497(0x8e)](),_0x2fa638=this[_0x159497(0x8c)](_0x3bf8fc['getMonth']()+0x1),_0x1df42e=this[_0x159497(0x8c)](_0x3bf8fc[_0x159497(0xae)]()),_0x2e0b91=this[_0x159497(0x8c)](_0x3bf8fc[_0x159497(0xa6)]()),_0x743b7b=this[_0x159497(0x8c)](_0x3bf8fc[_0x159497(0x7c)]()),_0x474a02=this[_0x159497(0x8c)](_0x3bf8fc[_0x159497(0x91)]());return{'createdAt':_0x32d81f+'-'+_0x2fa638+'-'+_0x1df42e+'\x20'+_0x2e0b91+':'+_0x743b7b+':'+_0x474a02,'createdDate':_0x32d81f+'-'+_0x2fa638+'-'+_0x1df42e,'createdTime':_0x2e0b91+':'+_0x743b7b+':'+_0x474a02};}static[a300_0x534cf0(0x73)](_0x322a37){const _0x3fc74a=a300_0x534cf0,_0x45338a=_0x322a37[_0x3fc74a(0x78)]('/')[_0x3fc74a(0x94)]()||_0x322a37;return _0x45338a[_0x3fc74a(0x78)]('-')[_0x3fc74a(0x9c)](_0x47f099=>_0x47f099[_0x3fc74a(0xaa)](0x0)['toUpperCase']()+_0x47f099['slice'](0x1)[_0x3fc74a(0x99)]())[_0x3fc74a(0x82)]('');}static[a300_0x534cf0(0x97)](_0x57eafd){const _0x5af2d2=a300_0x534cf0,_0x49449b=_0x57eafd[_0x5af2d2(0x78)]('/')[_0x5af2d2(0x94)]()||_0x57eafd;return _0x49449b[_0x5af2d2(0x78)]('-')[_0x5af2d2(0x9c)](_0x55395d=>_0x55395d[_0x5af2d2(0xaa)](0x0)[_0x5af2d2(0x7b)]()+_0x55395d['slice'](0x1)['toLowerCase']())[_0x5af2d2(0x82)]('\x20');}static[a300_0x534cf0(0x83)](_0x292a8a,_0x4ee478,_0x47ff4b){const _0x566ff6=a300_0x534cf0,_0x297390=this[_0x566ff6(0x73)](_0x4ee478),_0x13364b=this['toDisplayTitle'](_0x4ee478),{createdAt:_0x260785,createdDate:_0x3b80cc,createdTime:_0x4353d0}=this['formatLocalTimestamp'](new Date());let _0x3ba184=_0x292a8a[_0x566ff6(0x74)](/\{CliVersion\}/g,CLI_VERSION)[_0x566ff6(0x74)](/\{ComponentName\}/g,_0x297390)[_0x566ff6(0x74)](/\{DisplayTitle\}/g,_0x13364b)[_0x566ff6(0x74)](/\{PageName\}/g,_0x4ee478)['replace'](/\{TemplateName\}/g,_0x47ff4b)['replace'](/\{CreatedAt\}/g,_0x260785)[_0x566ff6(0x74)](/\{CreatedDate\}/g,_0x3b80cc)['replace'](/\{CreatedTime\}/g,_0x4353d0);return _0x3ba184;}static[a300_0x534cf0(0x87)](_0x81f965,_0x44b5b6,_0x2456ed,_0x3862f1,_0x27dbc1,_0x484afe,_0x1bff4f,_0xa63b9a){const _0x387d48=a300_0x534cf0,_0x2e8ab7=new Date(),_0x575315=_0x2e8ab7['toISOString'](),_0x25fb56=_0x2456ed[_0x387d48(0x9c)](_0xdfd7d0=>{const _0xb093a9=_0x387d48,_0x335ae0=[_0xb093a9(0xb0)+_0xdfd7d0[_0xb093a9(0x6b)]+'\x22',_0xb093a9(0xa5)+_0xdfd7d0[_0xb093a9(0x9f)]+'\x22',_0xb093a9(0x6a)+_0xdfd7d0[_0xb093a9(0x98)]+'\x22'];return _0xdfd7d0[_0xb093a9(0x6c)]&&_0x335ae0[_0xb093a9(0x9b)](_0xb093a9(0x6f)+_0xdfd7d0[_0xb093a9(0x6c)]+'\x22'),_0xb093a9(0x81)+_0x335ae0['join'](',\x20')+_0xb093a9(0x7e);})[_0x387d48(0x82)](''),_0x173c47=_0x3862f1||_0x2456ed[0x0]?.[_0x387d48(0x6c)]||_0x387d48(0x79);let _0x243d09=_0x81f965[_0x387d48(0x74)](/\{AppCode\}/g,_0x44b5b6)['replace'](/\{ModelConfigs\}/g,_0x25fb56)[_0x387d48(0x74)](/\{ExampleModelName\}/g,_0x173c47)['replace'](/\{ApiFileName\}/g,_0x27dbc1||_0x387d48(0x70))['replace'](/\{ConfigName\}/g,_0x484afe||'default')[_0x387d48(0x74)](/\{ClientConfigParam\}/g,_0x1bff4f||'')[_0x387d48(0x74)](/\{VarPrefix\}/g,_0xa63b9a||'LOVRABET')[_0x387d48(0x74)](/\{CreatedAt\}/g,_0x575315);return _0x243d09;}static async['processTemplate'](_0xf15f98,_0xbcc686,_0x4c5747,_0x3ba082,_0x4d1497=!![]){const _0x1371fb=a300_0x534cf0,_0x4bfa84=Date[_0x1371fb(0x6e)]();try{_0x4d1497&&logger[_0x1371fb(0x95)](_0x1371fb(0x8d),'Starting\x20template\x20content\x20replacement',{'templatePath':_0xf15f98,'targetPath':_0xbcc686,'pageName':_0x4c5747,'templateName':_0x3ba082});await a300_0x18c55a['promises'][_0x1371fb(0x9e)](_0xbcc686,{'recursive':!![]}),await this[_0x1371fb(0x69)](_0xf15f98,_0xbcc686,_0x4c5747,_0x3ba082);if(_0x4d1497){const _0x1ded52=Date[_0x1371fb(0x6e)]()-_0x4bfa84;logger[_0x1371fb(0x7d)](_0x1371fb(0x8d),_0x1371fb(0x89),_0x1ded52,{'pageName':_0x4c5747,'templateName':_0x3ba082});}}catch(_0x4e20d1){if(_0x4d1497){const _0x17ac5c=Date[_0x1371fb(0x6e)]()-_0x4bfa84;logger[_0x1371fb(0x85)](_0x1371fb(0x8d),_0x1371fb(0x6d),{'templatePath':_0xf15f98,'targetPath':_0xbcc686,'pageName':_0x4c5747,'templateName':_0x3ba082,'error':_0x4e20d1 instanceof Error?_0x4e20d1['message']:String(_0x4e20d1),'duration':_0x17ac5c});}throw _0x4e20d1;}}static async[a300_0x534cf0(0x69)](_0x2b9c73,_0x139951,_0x8df1ee,_0x5e104a){const _0x2fe104=a300_0x534cf0,_0x4baed5=await a300_0x18c55a['promises'][_0x2fe104(0x90)](_0x2b9c73,{'withFileTypes':!![]});for(const _0x14917f of _0x4baed5){const _0x46de53=a300_0x473e4b['join'](_0x2b9c73,_0x14917f[_0x2fe104(0x98)]);let _0xdfab07=a300_0x473e4b[_0x2fe104(0x82)](_0x139951,_0x14917f[_0x2fe104(0x98)]);_0x14917f[_0x2fe104(0x98)][_0x2fe104(0x96)](_0x2fe104(0xa1))&&(_0xdfab07=a300_0x473e4b[_0x2fe104(0x82)](_0x139951,_0x14917f[_0x2fe104(0x98)]['replace'](/\.tpl$/,'')));if(_0x14917f[_0x2fe104(0x84)]())await a300_0x18c55a[_0x2fe104(0x9d)]['mkdir'](_0xdfab07,{'recursive':!![]}),await this[_0x2fe104(0x69)](_0x46de53,_0xdfab07,_0x8df1ee,_0x5e104a);else _0x14917f[_0x2fe104(0x7a)]()&&await this['processFile'](_0x46de53,_0xdfab07,_0x8df1ee,_0x5e104a);}}static async[a300_0x534cf0(0xa2)](_0x5c8648,_0x6ac623,_0x1a905d,_0x5f5dfa){const _0x152f75=a300_0x534cf0,_0x2cea93=a300_0x473e4b[_0x152f75(0x88)](_0x5c8648)[_0x152f75(0x99)]();_0x5c8648[_0x152f75(0x96)](_0x152f75(0xa1))&&(_0x6ac623=_0x6ac623[_0x152f75(0x74)](/\.tpl$/,''));const _0x1c5d75=[_0x152f75(0xa4),_0x152f75(0x92),_0x152f75(0x86),_0x152f75(0x76),'.json',_0x152f75(0x8f),_0x152f75(0x7f),_0x152f75(0x71),_0x152f75(0xa1)];if(_0x1c5d75[_0x152f75(0x80)](_0x2cea93)||_0x5c8648[_0x152f75(0x96)](_0x152f75(0xa1))){const _0x4365c2=await a300_0x18c55a['promises'][_0x152f75(0xa3)](_0x5c8648,'utf8'),_0x1f4f93=this['replaceContent'](_0x4365c2,_0x1a905d,_0x5f5dfa);await a300_0x18c55a[_0x152f75(0x9d)][_0x152f75(0xa9)](_0x6ac623,_0x1f4f93,_0x152f75(0xa0));}else await a300_0x18c55a[_0x152f75(0x9d)][_0x152f75(0x72)](_0x5c8648,_0x6ac623);}}
@@ -1 +1 @@
1
- (function(_0x2d7633,_0x55ebf7){const _0x54bde7=a300_0x49a6,_0x4e2dac=_0x2d7633();while(!![]){try{const _0x2efe7e=parseInt(_0x54bde7(0x1ce))/0x1+-parseInt(_0x54bde7(0x1d0))/0x2+-parseInt(_0x54bde7(0x1c8))/0x3*(parseInt(_0x54bde7(0x1c9))/0x4)+parseInt(_0x54bde7(0x1d2))/0x5+-parseInt(_0x54bde7(0x1d6))/0x6+-parseInt(_0x54bde7(0x1c6))/0x7+parseInt(_0x54bde7(0x1d5))/0x8*(parseInt(_0x54bde7(0x1cb))/0x9);if(_0x2efe7e===_0x55ebf7)break;else _0x4e2dac['push'](_0x4e2dac['shift']());}catch(_0x12b6fc){_0x4e2dac['push'](_0x4e2dac['shift']());}}}(a300_0xd12d,0x5fa94));import{mkdir,readFile,writeFile}from'node:fs/promises';import{homedir}from'node:os';import{dirname,join}from'node:path';function a300_0x49a6(_0x2d0dc4,_0x44024a){_0x2d0dc4=_0x2d0dc4-0x1c1;const _0xd12d1f=a300_0xd12d();let _0x49a609=_0xd12d1f[_0x2d0dc4];return _0x49a609;}import a300_0x23dcb7 from'semver';import{CLI_BIN_NAME,NPM_PACKAGE_NAME}from'../constant/cli.js';import{getCliVersionPolicy}from'../utils/cli-version-policy.js';function a300_0xd12d(){const _0x16c827=['lastNotifiedVersion','latest','lastNotifiedAt','true','utf8','trim','parse','valid','now','4358214aLtdES','/v/','6JUonAF','558084YDqngO','object','783fRlQTQ','\x20update','stringify','769824jApLBF','gte','1315486kBhwyN','checkedAt','281835oCLeKs','number',',\x20run:\x20','125792bzNUaL','1457784KEItVV','stableVersion','toLowerCase','rabetbase-cli'];a300_0xd12d=function(){return _0x16c827;};return a300_0xd12d();}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 _0x4129f8=a300_0x49a6,_0x4a37b8=process.env.RABETBASE_NO_UPDATE_NOTICE?.[_0x4129f8(0x1c2)]()[_0x4129f8(0x1d8)]();return _0x4a37b8==='1'||_0x4a37b8===_0x4129f8(0x1dd)||_0x4a37b8==='yes';}function cacheRoot(){return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),'.cache');}export function getUpdateNoticeCachePath(){const _0x10f18c=a300_0x49a6;return join(cacheRoot(),_0x10f18c(0x1d9),'update-check.json');}async function readUpdateNoticeCache(){const _0x27ec24=a300_0x49a6;try{const _0x5a6b06=await readFile(getUpdateNoticeCachePath(),_0x27ec24(0x1c1)),_0x130fdc=JSON[_0x27ec24(0x1c3)](_0x5a6b06);if(!_0x130fdc||typeof _0x130fdc!==_0x27ec24(0x1ca))return{};return _0x130fdc;}catch{return{};}}async function writeUpdateNoticeCache(_0x4578e7){const _0x25923a=a300_0x49a6;try{const _0x1c8235=getUpdateNoticeCachePath();await mkdir(dirname(_0x1c8235),{'recursive':!![]}),await writeFile(_0x1c8235,JSON[_0x25923a(0x1cd)](_0x4578e7,null,0x2)+'\x0a',_0x25923a(0x1c1));}catch{}}function isFreshCheck(_0x31021e,_0x51c0f3){const _0x1e8ae9=a300_0x49a6;return typeof _0x31021e[_0x1e8ae9(0x1d1)]===_0x1e8ae9(0x1d3)&&_0x51c0f3-_0x31021e['checkedAt']<UPDATE_CHECK_TTL_MS;}function isRecentlyNotified(_0x563b88,_0x336b97,_0x11671d){const _0x416501=a300_0x49a6;return _0x563b88[_0x416501(0x1da)]===_0x336b97&&typeof _0x563b88[_0x416501(0x1dc)]===_0x416501(0x1d3)&&_0x11671d-_0x563b88['lastNotifiedAt']<UPDATE_NOTICE_TTL_MS;}export function buildNpmVersionUrl(_0x1cd07c){const _0x46c9b9=a300_0x49a6;return'https://www.npmjs.com/package/'+NPM_PACKAGE_NAME+_0x46c9b9(0x1c7)+_0x1cd07c;}export async function resolveLatestUpdateNotice(){const _0x6f0d4=a300_0x49a6;if(isUpdateNoticeDisabled())return null;try{const _0x25b564=Date[_0x6f0d4(0x1c5)](),_0x402cf3=getCliVersion(),_0x50ccd9=await readUpdateNoticeCache();let _0x29ac69=isFreshCheck(_0x50ccd9,_0x25b564)?_0x50ccd9[_0x6f0d4(0x1db)]?.['trim']():undefined;if(!_0x29ac69&&!isFreshCheck(_0x50ccd9,_0x25b564)){const _0xdf01d=await getCliVersionPolicy();_0x29ac69=_0xdf01d?.[_0x6f0d4(0x1d7)]?.[_0x6f0d4(0x1c2)]()||undefined,await writeUpdateNoticeCache({..._0x50ccd9,'checkedAt':_0x25b564,'latest':_0x29ac69,'failed':!_0x29ac69});}if(!_0x29ac69||!a300_0x23dcb7[_0x6f0d4(0x1c4)](_0x402cf3)||!a300_0x23dcb7['valid'](_0x29ac69))return null;if(a300_0x23dcb7[_0x6f0d4(0x1cf)](_0x402cf3,_0x29ac69))return null;if(isRecentlyNotified(_0x50ccd9,_0x29ac69,_0x25b564))return null;const _0x58d19f=CLI_BIN_NAME+_0x6f0d4(0x1cc);return await writeUpdateNoticeCache({..._0x50ccd9,'checkedAt':isFreshCheck(_0x50ccd9,_0x25b564)?_0x50ccd9[_0x6f0d4(0x1d1)]:_0x25b564,'latest':_0x29ac69,'failed':![],'lastNotifiedVersion':_0x29ac69,'lastNotifiedAt':_0x25b564}),{'command':_0x58d19f,'current':_0x402cf3,'latest':_0x29ac69,'url':buildNpmVersionUrl(_0x29ac69),'message':CLI_BIN_NAME+'\x20'+_0x29ac69+'\x20available,\x20current\x20'+_0x402cf3+_0x6f0d4(0x1d4)+_0x58d19f};}catch{return null;}}
1
+ (function(_0x34a142,_0x30e5a4){const _0x44737f=a301_0x4ad3,_0x5ba575=_0x34a142();while(!![]){try{const _0x1fe8dc=-parseInt(_0x44737f(0x108))/0x1*(-parseInt(_0x44737f(0x102))/0x2)+parseInt(_0x44737f(0x106))/0x3+-parseInt(_0x44737f(0xf8))/0x4+parseInt(_0x44737f(0x104))/0x5*(parseInt(_0x44737f(0xff))/0x6)+parseInt(_0x44737f(0xf7))/0x7*(-parseInt(_0x44737f(0x103))/0x8)+parseInt(_0x44737f(0x107))/0x9*(-parseInt(_0x44737f(0x10e))/0xa)+parseInt(_0x44737f(0x10a))/0xb;if(_0x1fe8dc===_0x30e5a4)break;else _0x5ba575['push'](_0x5ba575['shift']());}catch(_0x387e1c){_0x5ba575['push'](_0x5ba575['shift']());}}}(a301_0x3769,0xc26cd));function a301_0x3769(){const _0x55b0b2=['55088VfjdqQ','2944872xenZWB','88285ZvywyH','yes','4226607cSHMNr','4515471EBgtbH','12rVtmfr','stableVersion','6286995kBXlQG','valid','lastNotifiedVersion','now','20nOxdUd','https://www.npmjs.com/package/','number','toLowerCase','\x20update','stringify','\x20available,\x20current\x20','true','checkedAt','/v/','object','rabetbase-cli','7kFGXjS','4739172RxXdIC','.cache','parse','gte',',\x20run:\x20','latest','lastNotifiedAt','354FFTrjL','trim','utf8'];a301_0x3769=function(){return _0x55b0b2;};return a301_0x3769();}import{mkdir,readFile,writeFile}from'node:fs/promises';import{homedir}from'node:os';import{dirname,join}from'node:path';import a301_0x16fe6b 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 _0x409c47=a301_0x4ad3,_0x287777=process.env.RABETBASE_NO_UPDATE_NOTICE?.[_0x409c47(0x100)]()[_0x409c47(0x111)]();return _0x287777==='1'||_0x287777===_0x409c47(0x115)||_0x287777===_0x409c47(0x105);}function cacheRoot(){const _0x5007a9=a301_0x4ad3;return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),_0x5007a9(0xf9));}export function getUpdateNoticeCachePath(){const _0x143b19=a301_0x4ad3;return join(cacheRoot(),_0x143b19(0xf6),'update-check.json');}async function readUpdateNoticeCache(){const _0x4e1403=a301_0x4ad3;try{const _0x5272b1=await readFile(getUpdateNoticeCachePath(),'utf8'),_0x2a5dfc=JSON[_0x4e1403(0xfa)](_0x5272b1);if(!_0x2a5dfc||typeof _0x2a5dfc!==_0x4e1403(0xf5))return{};return _0x2a5dfc;}catch{return{};}}async function writeUpdateNoticeCache(_0x19a05b){const _0x4c58d8=a301_0x4ad3;try{const _0x2d0c9c=getUpdateNoticeCachePath();await mkdir(dirname(_0x2d0c9c),{'recursive':!![]}),await writeFile(_0x2d0c9c,JSON[_0x4c58d8(0x113)](_0x19a05b,null,0x2)+'\x0a',_0x4c58d8(0x101));}catch{}}function a301_0x4ad3(_0x976b9f,_0x376d56){_0x976b9f=_0x976b9f-0xf4;const _0x37699f=a301_0x3769();let _0x4ad3ef=_0x37699f[_0x976b9f];return _0x4ad3ef;}function isFreshCheck(_0x1403a1,_0x2fbb2e){const _0x281428=a301_0x4ad3;return typeof _0x1403a1[_0x281428(0x116)]==='number'&&_0x2fbb2e-_0x1403a1['checkedAt']<UPDATE_CHECK_TTL_MS;}function isRecentlyNotified(_0x4b2dff,_0x55e293,_0x339853){const _0x2ef592=a301_0x4ad3;return _0x4b2dff[_0x2ef592(0x10c)]===_0x55e293&&typeof _0x4b2dff[_0x2ef592(0xfe)]===_0x2ef592(0x110)&&_0x339853-_0x4b2dff[_0x2ef592(0xfe)]<UPDATE_NOTICE_TTL_MS;}export function buildNpmVersionUrl(_0x4225da){const _0xe8758e=a301_0x4ad3;return _0xe8758e(0x10f)+NPM_PACKAGE_NAME+_0xe8758e(0xf4)+_0x4225da;}export async function resolveLatestUpdateNotice(){const _0x4e733f=a301_0x4ad3;if(isUpdateNoticeDisabled())return null;try{const _0xff8c4e=Date[_0x4e733f(0x10d)](),_0x41bc75=getCliVersion(),_0x19e520=await readUpdateNoticeCache();let _0x3ec436=isFreshCheck(_0x19e520,_0xff8c4e)?_0x19e520[_0x4e733f(0xfd)]?.['trim']():undefined;if(!_0x3ec436&&!isFreshCheck(_0x19e520,_0xff8c4e)){const _0x4bd55c=await getCliVersionPolicy();_0x3ec436=_0x4bd55c?.[_0x4e733f(0x109)]?.[_0x4e733f(0x100)]()||undefined,await writeUpdateNoticeCache({..._0x19e520,'checkedAt':_0xff8c4e,'latest':_0x3ec436,'failed':!_0x3ec436});}if(!_0x3ec436||!a301_0x16fe6b[_0x4e733f(0x10b)](_0x41bc75)||!a301_0x16fe6b['valid'](_0x3ec436))return null;if(a301_0x16fe6b[_0x4e733f(0xfb)](_0x41bc75,_0x3ec436))return null;if(isRecentlyNotified(_0x19e520,_0x3ec436,_0xff8c4e))return null;const _0x5ac8d3=CLI_BIN_NAME+_0x4e733f(0x112);return await writeUpdateNoticeCache({..._0x19e520,'checkedAt':isFreshCheck(_0x19e520,_0xff8c4e)?_0x19e520[_0x4e733f(0x116)]:_0xff8c4e,'latest':_0x3ec436,'failed':![],'lastNotifiedVersion':_0x3ec436,'lastNotifiedAt':_0xff8c4e}),{'command':_0x5ac8d3,'current':_0x41bc75,'latest':_0x3ec436,'url':buildNpmVersionUrl(_0x3ec436),'message':CLI_BIN_NAME+'\x20'+_0x3ec436+_0x4e733f(0x114)+_0x41bc75+_0x4e733f(0xfc)+_0x5ac8d3};}catch{return null;}}
@@ -1 +1 @@
1
- function a301_0x28c8(){var _0x577f53=['178426PXZcrG','2DoIopM','6583653dsnUHn','6nPmiGC','3649555SXNLwf','5185026PdVtDg','2400732AJHegp','1815908ynPRMA','8gFGsnP','22137930jmhfDr'];a301_0x28c8=function(){return _0x577f53;};return a301_0x28c8();}(function(_0x2cad59,_0x5dd866){var _0x2976a3=a301_0x191e,_0x510b5d=_0x2cad59();while(!![]){try{var _0x415bd9=-parseInt(_0x2976a3(0x9d))/0x1*(-parseInt(_0x2976a3(0x94))/0x2)+-parseInt(_0x2976a3(0x99))/0x3+-parseInt(_0x2976a3(0x9a))/0x4+parseInt(_0x2976a3(0x97))/0x5*(-parseInt(_0x2976a3(0x96))/0x6)+parseInt(_0x2976a3(0x98))/0x7+-parseInt(_0x2976a3(0x9b))/0x8*(parseInt(_0x2976a3(0x95))/0x9)+parseInt(_0x2976a3(0x9c))/0xa;if(_0x415bd9===_0x5dd866)break;else _0x510b5d['push'](_0x510b5d['shift']());}catch(_0x3b1d69){_0x510b5d['push'](_0x510b5d['shift']());}}}(a301_0x28c8,0x65e08));import{VERSION}from'../generated/build-info.js';function a301_0x191e(_0x55bd31,_0xc7f04b){_0x55bd31=_0x55bd31-0x94;var _0x28c861=a301_0x28c8();var _0x191e9f=_0x28c861[_0x55bd31];return _0x191e9f;}export function getCliVersion(){return VERSION;}
1
+ function a302_0x4715(){var _0x147db0=['1737xtGeUx','60scRIRu','243012ayLCke','1737660REISJC','66DRvYbC','19211Iegkod','6800HdnbCy','682000iLRPdF','11124660xJPzTY','1608296NrwDXK'];a302_0x4715=function(){return _0x147db0;};return a302_0x4715();}(function(_0x2a266b,_0x314ff3){var _0x58fea6=a302_0x2c54,_0x3174f2=_0x2a266b();while(!![]){try{var _0x50cee4=parseInt(_0x58fea6(0x1db))/0x1*(parseInt(_0x58fea6(0x1e4))/0x2)+parseInt(_0x58fea6(0x1e3))/0x3+-parseInt(_0x58fea6(0x1df))/0x4+parseInt(_0x58fea6(0x1dd))/0x5+parseInt(_0x58fea6(0x1e1))/0x6*(parseInt(_0x58fea6(0x1e2))/0x7)+parseInt(_0x58fea6(0x1dc))/0x8*(parseInt(_0x58fea6(0x1e0))/0x9)+-parseInt(_0x58fea6(0x1de))/0xa;if(_0x50cee4===_0x314ff3)break;else _0x3174f2['push'](_0x3174f2['shift']());}catch(_0x1c5311){_0x3174f2['push'](_0x3174f2['shift']());}}}(a302_0x4715,0x5488d));import{VERSION}from'../generated/build-info.js';function a302_0x2c54(_0x487d3f,_0x3f2650){_0x487d3f=_0x487d3f-0x1db;var _0x4715d9=a302_0x4715();var _0x2c54d5=_0x4715d9[_0x487d3f];return _0x2c54d5;}export function getCliVersion(){return VERSION;}
@@ -1 +1 @@
1
- function a302_0x4e60(){var _0x1248c5=['356KfutEO','784869LcPgVo','930lIDYIT','86090Pzlabo','1164MxHUXw','10221632drTTIv','4Casich','30468qJTdBw','12122UmmJDe','92763CMjJBd','61817KTxJDQ','4293381NZviHv'];a302_0x4e60=function(){return _0x1248c5;};return a302_0x4e60();}(function(_0x22c3f7,_0x3a0a11){var _0x4c1f97=a302_0x1b2d,_0x23f4f6=_0x22c3f7();while(!![]){try{var _0x24bba7=-parseInt(_0x4c1f97(0x17e))/0x1*(-parseInt(_0x4c1f97(0x183))/0x2)+-parseInt(_0x4c1f97(0x17c))/0x3+parseInt(_0x4c1f97(0x17d))/0x4*(-parseInt(_0x4c1f97(0x180))/0x5)+parseInt(_0x4c1f97(0x181))/0x6*(parseInt(_0x4c1f97(0x17b))/0x7)+-parseInt(_0x4c1f97(0x182))/0x8+parseInt(_0x4c1f97(0x17a))/0x9*(-parseInt(_0x4c1f97(0x17f))/0xa)+-parseInt(_0x4c1f97(0x179))/0xb*(-parseInt(_0x4c1f97(0x178))/0xc);if(_0x24bba7===_0x3a0a11)break;else _0x23f4f6['push'](_0x23f4f6['shift']());}catch(_0x80c01d){_0x23f4f6['push'](_0x23f4f6['shift']());}}}(a302_0x4e60,0xd71fa));function a302_0x1b2d(_0x492c00,_0x442990){_0x492c00=_0x492c00-0x178;var _0x4e6035=a302_0x4e60();var _0x1b2d56=_0x4e6035[_0x492c00];return _0x1b2d56;}import{setActiveCookie,clearActiveCookie}from'../core/api-client.js';export async function withActiveCookie(_0xd32e3f,_0x18f9cf){setActiveCookie(_0xd32e3f);try{return await _0x18f9cf();}finally{clearActiveCookie();}}
1
+ (function(_0x4ce576,_0x559649){var _0x3e7069=a303_0x3f95,_0x100e6b=_0x4ce576();while(!![]){try{var _0x9d4d3f=parseInt(_0x3e7069(0xfc))/0x1*(parseInt(_0x3e7069(0x100))/0x2)+-parseInt(_0x3e7069(0xff))/0x3*(parseInt(_0x3e7069(0xf7))/0x4)+parseInt(_0x3e7069(0xf9))/0x5+-parseInt(_0x3e7069(0xf6))/0x6+-parseInt(_0x3e7069(0xfd))/0x7+-parseInt(_0x3e7069(0xfe))/0x8*(-parseInt(_0x3e7069(0xfb))/0x9)+-parseInt(_0x3e7069(0xfa))/0xa*(-parseInt(_0x3e7069(0xf8))/0xb);if(_0x9d4d3f===_0x559649)break;else _0x100e6b['push'](_0x100e6b['shift']());}catch(_0x2cce40){_0x100e6b['push'](_0x100e6b['shift']());}}}(a303_0x1335,0x3e8bb));import{setActiveCookie,clearActiveCookie}from'../core/api-client.js';function a303_0x3f95(_0x4cbfd9,_0x3ed294){_0x4cbfd9=_0x4cbfd9-0xf6;var _0x13357a=a303_0x1335();var _0x3f955f=_0x13357a[_0x4cbfd9];return _0x3f955f;}export async function withActiveCookie(_0x1eb428,_0x2453bc){setActiveCookie(_0x1eb428);try{return await _0x2453bc();}finally{clearActiveCookie();}}function a303_0x1335(){var _0x5be8ec=['88TqlZxl','589071BLeSnW','2VEGqUZ','2810250rohELS','4JpAqai','51425faPdkT','634150mKiiZe','700CeZmzU','334611jkZDaU','200172NaEjft','996114PFKlco'];a303_0x1335=function(){return _0x5be8ec;};return a303_0x1335();}
@@ -1 +1 @@
1
- function a303_0x2a47(_0x2c4609,_0x262771){_0x2c4609=_0x2c4609-0xaf;var _0x4364a9=a303_0x4364();var _0x2a47c6=_0x4364a9[_0x2c4609];return _0x2a47c6;}(function(_0x3bba14,_0x2eea3d){var _0x1efc06=a303_0x2a47,_0x2c7481=_0x3bba14();while(!![]){try{var _0x59ab68=parseInt(_0x1efc06(0xb2))/0x1+-parseInt(_0x1efc06(0xb0))/0x2*(-parseInt(_0x1efc06(0xb3))/0x3)+-parseInt(_0x1efc06(0xb7))/0x4+parseInt(_0x1efc06(0xb6))/0x5+parseInt(_0x1efc06(0xb9))/0x6+-parseInt(_0x1efc06(0xaf))/0x7+-parseInt(_0x1efc06(0xb4))/0x8*(parseInt(_0x1efc06(0xb1))/0x9);if(_0x59ab68===_0x2eea3d)break;else _0x2c7481['push'](_0x2c7481['shift']());}catch(_0x314f7e){_0x2c7481['push'](_0x2c7481['shift']());}}}(a303_0x4364,0x67911));export function writeCliSideChannelLine(_0x29ce77){var _0x5cfca6=a303_0x2a47;process[_0x5cfca6(0xb8)][_0x5cfca6(0xb5)](_0x29ce77+'\x0a');}function a303_0x4364(){var _0x2562e5=['write','2051660CyZNlq','907548CMcCYI','stderr','4174944OalGAq','2403534Looivw','7700qKdFFF','99ojhIlv','82991zWnwjb','534BBYSsx','639992rviUho'];a303_0x4364=function(){return _0x2562e5;};return a303_0x4364();}
1
+ function a304_0x2c45(){var _0x415809=['1559460lopVYE','write','28547037smPKYQ','3jPPvUN','3659250JeJTzQ','1329518vvSoeZ','2789058DzDiYK','30njAKyu','10qwWcPu','1763076IhHamH','11983488CQQOtk'];a304_0x2c45=function(){return _0x415809;};return a304_0x2c45();}function a304_0x5cf1(_0x89a5cf,_0x3668f9){_0x89a5cf=_0x89a5cf-0x154;var _0x2c457f=a304_0x2c45();var _0x5cf185=_0x2c457f[_0x89a5cf];return _0x5cf185;}(function(_0x105c99,_0x4e769e){var _0x3a0f65=a304_0x5cf1,_0x54d72c=_0x105c99();while(!![]){try{var _0x2ef6ee=parseInt(_0x3a0f65(0x15e))/0x1+-parseInt(_0x3a0f65(0x154))/0x2*(-parseInt(_0x3a0f65(0x15c))/0x3)+-parseInt(_0x3a0f65(0x157))/0x4+-parseInt(_0x3a0f65(0x15d))/0x5+parseInt(_0x3a0f65(0x155))/0x6*(parseInt(_0x3a0f65(0x159))/0x7)+parseInt(_0x3a0f65(0x158))/0x8+-parseInt(_0x3a0f65(0x15b))/0x9*(parseInt(_0x3a0f65(0x156))/0xa);if(_0x2ef6ee===_0x4e769e)break;else _0x54d72c['push'](_0x54d72c['shift']());}catch(_0x33f8ab){_0x54d72c['push'](_0x54d72c['shift']());}}}(a304_0x2c45,0xf208b));export function writeCliSideChannelLine(_0x4012f4){var _0x529933=a304_0x5cf1;process['stderr'][_0x529933(0x15a)](_0x4012f4+'\x0a');}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lovrabet/rabetbase-cli",
3
- "version": "2.5.1-beta.2",
3
+ "version": "2.5.1-beta.4",
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.1-beta.2
3
+ version: 2.5.1-beta.4
4
4
  description: "Lovrabet 开发工作流 CLI — 通过 rabetbase 命令管理数据集、数据库连接(dblink)、局部部署研发元数据同步、数据列表页(Data List Page)、自定义页面(Custom Page)、SQL 查询、Backend Function 脚本、通知配置、企业知识库、菜单事实读取与同步、开发角色与协作者、应用文件、面向票证类业务材料文字与结构化字段提取的 OCR、代码生成,以及平台问题上报。触发词:数据集、数据表、dataset relation-audit、dataset delete、dataset restore、dataset user-deleted-field-list、dataset field-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-refresh-start、db diff-refresh-status、db analyze-batch-plan、db analyze-start、analyze-cancel、analyze-status、traceId、deployment sync、局部部署、研发元数据同步、target-env、direct、自定义 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:
@@ -315,7 +315,7 @@ const result = await client.bff.execute<DashboardData>({
315
315
  | 修改配置文件 | [`rabetbase config set <key> <value>`](references/rabetbase-config.md) | 默认写项目;无项目配置且未 `--global` 会拒绝;`--global` 写 `~/.rabetbase.json` |
316
316
  | 列出配置 | [`rabetbase config list`](references/rabetbase-config.md) | 查看当前生效的配置 |
317
317
  | 管理运行态 app-config | [`rabetbase app-config list/get/set/delete`](references/rabetbase-app-config.md) | 运行态 app-config 管理面;默认不输出明文 value;`set` 为 `write`,`delete` 保持 `high-risk-write` |
318
- | 管理和检索当前研发应用的企业知识库 | [`rabetbase kb list/detail/search/create/update/delete`](references/rabetbase-kb.md) | 管理仅 company scope;search 仅 COMPANY/PUBLIC;`create/update` 为 `write`,`delete` 保持 `high-risk-write` |
318
+ | 管理和检索当前研发应用的企业知识库 | [`rabetbase kb list/detail/search/create/update/delete`](references/rabetbase-kb.md) | 管理仅 company scope;search 固定 Development 且仅 `public/company`;`create/update` 为 `write`,`delete` 保持 `high-risk-write` |
319
319
  | 查询或管理应用级通知配置 | [`rabetbase notification config-list`](references/rabetbase-notification-config-list.md) / [`rabetbase notification config-create`](references/rabetbase-notification-config-mutations.md) / [`rabetbase notification config-update`](references/rabetbase-notification-config-mutations.md) / [`rabetbase notification config-delete`](references/rabetbase-notification-config-mutations.md) | list 获取 Backend Function 所需 `configCode`;写入只接收单一敏感 JSON 源,先 dry-run;update/delete 必须 `--yes` |
320
320
  | 查看线上菜单事实 / 菜单异常审计 | [`rabetbase menu list`](references/rabetbase-menu-list.md) | 返回 DFS 事实、children/page、URL、最近更新人/时间和 snapshotHash;异常治理先读 [`menu-anomaly-manual-cleanup`](guides/menu-anomaly-manual-cleanup.md) |
321
321
  | 批量显示或隐藏菜单 | [`rabetbase menu visibility-update`](references/rabetbase-menu-visibility-update.md) | 用精确 ID/path 选择目标;先 dry-run,使用 `--expect-visible` / `--expected-count` 防漂移,正式执行必须 `--yes` |
@@ -136,7 +136,7 @@ rabetbase workspace remove product --yes
136
136
  | `userDomain` | string | 平台默认 | 自定义用户域名 |
137
137
  | `runtimeDomain` | string | 平台默认 | 自定义运行时域名 |
138
138
  | `skillDomain` | string | 节点默认 | SkillHub HTTPS origin 覆盖 |
139
- | `kbDomain` | string | 跟随 `apiDomain` / 节点 API 默认值 | 企业知识库 HTTPS origin 覆盖;显式配置时优先,`runtimeDomain` 不参与回退 |
139
+ | `kbDomain` | string | 跟随 `apiDomain` / 节点 API 默认值 | 企业知识库管理与 `kb search` 的 SmartCode Java HTTPS origin;KB Service 下游地址由 Java 配置 |
140
140
  | `appDomain` | string | 节点默认 | 工作台、页面编辑器和发布页面域名 |
141
141
  | `localDomain` | string | 独立部署默认 `http://localhost` | 自定义 HTTPS 本地回调 origin;与 `certificateDomain` 同时配置 |
142
142
  | `certificateDomain` | string | 节点默认;独立部署无 | 本地 HTTPS 证书服务 origin;与 `localDomain` 同时配置 |
@@ -24,7 +24,7 @@ rabetbase doctor check
24
24
  | Config JSON | 分别检测全局/项目配置文件是否为**合法 JSON**;非法时标红并给出解析错误(常见于尾随逗号、注释等,会导致该侧配置在合并时被忽略) |
25
25
  | Merged Config | 合并后的所有配置项(appCode / env / cookie / apiDir 等) |
26
26
  | Apps | 多应用模式下的应用列表及各自配置 |
27
- | API Endpoints | 最终生效的 region 与六个域名(user / api / runtime / skill / kb / app) |
27
+ | API Endpoints | 最终生效的 region 与域名(user / api / runtime / skill / kb / app);KB 管理与 search 共用 SmartCode Java origin |
28
28
  | Auth | 登录状态及 cookie 有效性 |
29
29
 
30
30
  ## 典型场景
@@ -2,7 +2,7 @@
2
2
 
3
3
  管理开发者侧当前解析应用下的 `company` 知识库,并检索当前应用可访问的公司与公共知识。所有命令都通过标准工作区、`--app <name>` 或 `--appcode <code>` 解析目标应用。
4
4
 
5
- 企业知识库请求使用独立的 `kbDomain`。当前官方节点的 KB 仍由平台 API 服务承载,因此未显式配置 `kbDomain` 时跟随 `apiDomain`;KB 服务拆分或企业独立部署时可单独覆盖 `kbDomain`。`runtimeDomain` 不参与 rabetbase 企业 KB 路由。当前 rabetbase-cli 没有调用 SkillHub 业务 API,未来新增时必须使用独立的 `skillDomain`。
5
+ 企业知识库管理与 `kb search` 都使用 `kbDomain`;未显式配置时跟随当前 region/env 的 `apiDomain`,`runtimeDomain` 不参与。`kb search` Cookie-only 调用 SmartCode Java,KB Service 下游域名由 Java 配置,CLI 不再持有或直连该地址。
6
6
 
7
7
  > 边界:`lovrabet kb` 使用运行态 AK/当前应用/当前用户,面向个人知识库和可见知识搜索;`rabetbase kb` 使用开发者登录态,面向公司知识库管理以及公司/公共知识检索。不要用其中一个替代另一个。
8
8
 
@@ -37,11 +37,12 @@ rabetbase kb delete --id 60 --yes
37
37
 
38
38
  ## search
39
39
 
40
- - 调用 `POST /smartapi/knowledge/company-public/search`,请求仅包含 `query`、解析后的 `appCode` 和可选 `topK`。
41
- - 不传 `userId`,不查询个人知识库;命中 `scope` 只可能为 `COMPANY` 或 `PUBLIC`。
42
- - `--query` 必填且不能是纯空白;`--topk` 可选,必须是正整数。不传时沿用服务端缺省规则。
43
- - 输出 `total` 与 `hits`,命中字段为 `scope/title/docId/score/weightedScore/content/jsonPath/jsonData`;无命中时返回空数组。
44
- - 同时判断 HTTP 状态和平台业务结果;未登录、无权限、参数错误、检索异常或响应字段漂移都会以结构化错误失败。
40
+ - Cookie-only 调用 SmartCode Java `POST /smartapi/knowledge/company-public/search`,请求体包含 `appCode`、`query` 和可选 `topK`;不发送 AK、`userId`、profile 或 scope。
41
+ - SmartCode Java 是统一鉴权、调用量记录与后续计费入口,并按自身配置转发 KB Service 固定 Development 接口;响应保持完整 V2 证据且带 `Cache-Control: no-store`。
42
+ - Development profile 在检索前固定限制为 `public/company`;任何 `personal` 命中都按协议错误失败关闭。
43
+ - `--query` 必填且不能是纯空白;`--topk` 可选,必须为 1–50 的整数。不传时沿用服务端缺省规则。
44
+ - 结构化输出固定为 `data: { schemaVersion:2, profile:"development", total, strategyFingerprint, timingsMs, hits }`。`total` 等于命中数;每个命中完整保留 `documentId/revision/chunkId/scope/title/text/tags/rank/rawScore/finalScore/scoreKind` 的服务端顺序和值,无 legacy 别名。
45
+ - 无命中是 `total:0/hits:[]` 的成功。HTTP、`no-store`、JSON、字段、rank、score、timing、TopK 或 scope 漂移均以脱敏结构化错误失败;错误不包含查询、正文或后端 body。
45
46
 
46
47
  ## create
47
48
 
@@ -73,4 +74,4 @@ rabetbase kb delete --id 60 --yes
73
74
 
74
75
  - 使用 `--env daily` 或 `--env production` 选择 Profile 环境,不通过 URL 参数切换。
75
76
  - Production 写操作必须单独取得授权;需求、dry-run 或命令可用不等于写入授权。
76
- - 输出和错误不得包含 Cookie、Token、AccessKey 或知识正文。
77
+ - 输出和错误不得包含 Cookie、Token 或 AccessKey。只有成功的 `search` 按上述 V2 合同返回知识正文;失败输出不得包含查询、正文、后端 body 或原始异常。
@@ -2,8 +2,8 @@
2
2
  "schemaVersion": 1,
3
3
  "name": "rabetbase",
4
4
  "packageName": "@lovrabet/rabetbase-cli",
5
- "packageVersion": "2.5.1-beta.2",
6
- "skillVersion": "2.5.1-beta.2",
5
+ "packageVersion": "2.5.1-beta.4",
6
+ "skillVersion": "2.5.1-beta.4",
7
7
  "files": [
8
8
  "SKILL.md",
9
9
  "guides/backend-function.md",
@@ -135,5 +135,5 @@
135
135
  "references/rabetbase-user-account.md",
136
136
  "references/rabetbase-workspace.md"
137
137
  ],
138
- "digest": "11bce5b48dd571defc4c17a16fe89045ec5d55e8988f91220676c8bcb3efd2c0"
138
+ "digest": "1b2765e7ebd7a0c0d9b7be2aa14c53e1ba78951425f298cbd2685cf3b6aac8bf"
139
139
  }