@lovrabet/rabetbase-cli 2.4.7-beta.2 → 2.4.7

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 (294) 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/auth/auth-server-ui.js +1 -1
  5. package/lib/auth/auth-server.js +1 -1
  6. package/lib/auth/constant.js +1 -1
  7. package/lib/auth/get-cookie.js +1 -1
  8. package/lib/auth/get-session-user.js +1 -1
  9. package/lib/auth/is-session-valid.js +1 -1
  10. package/lib/auth/login-success-html.js +1 -1
  11. package/lib/auth/logout.js +1 -1
  12. package/lib/cli-flags.js +1 -1
  13. package/lib/cli.js +1 -1
  14. package/lib/commands/api/generate.js +1 -1
  15. package/lib/commands/api/index.js +1 -1
  16. package/lib/commands/api/list.js +1 -1
  17. package/lib/commands/api/pull.js +1 -1
  18. package/lib/commands/api/shared.js +1 -1
  19. package/lib/commands/app/index.js +1 -1
  20. package/lib/commands/app/list.js +1 -1
  21. package/lib/commands/app/members-list.js +1 -1
  22. package/lib/commands/app/remote-directory.js +1 -1
  23. package/lib/commands/app/shared.js +1 -1
  24. package/lib/commands/app-config/delete.js +1 -1
  25. package/lib/commands/app-config/get.js +1 -1
  26. package/lib/commands/app-config/index.js +1 -1
  27. package/lib/commands/app-config/list.js +1 -1
  28. package/lib/commands/app-config/set.js +1 -1
  29. package/lib/commands/app-config/shared.js +1 -1
  30. package/lib/commands/auth/index.js +1 -1
  31. package/lib/commands/bff/create.js +1 -1
  32. package/lib/commands/bff/delete.js +1 -1
  33. package/lib/commands/bff/detail.js +1 -1
  34. package/lib/commands/bff/index.js +1 -1
  35. package/lib/commands/bff/list.js +1 -1
  36. package/lib/commands/bff/pull.js +1 -1
  37. package/lib/commands/bff/push.js +1 -1
  38. package/lib/commands/bff/status.js +1 -1
  39. package/lib/commands/cli-skill/index.js +1 -1
  40. package/lib/commands/cli-update.js +1 -1
  41. package/lib/commands/codegen/index.js +1 -1
  42. package/lib/commands/codegen/sdk.js +1 -1
  43. package/lib/commands/codegen/sql.js +1 -1
  44. package/lib/commands/common/app-registry.js +1 -1
  45. package/lib/commands/common/app-selector.js +1 -1
  46. package/lib/commands/common/async-task.js +1 -1
  47. package/lib/commands/common/dry-run.js +1 -1
  48. package/lib/commands/common/flags.js +1 -1
  49. package/lib/commands/common/local-file.js +1 -1
  50. package/lib/commands/common/validate.js +1 -1
  51. package/lib/commands/config/get.js +1 -1
  52. package/lib/commands/config/index.js +1 -1
  53. package/lib/commands/config/list.js +1 -1
  54. package/lib/commands/config/set.js +1 -1
  55. package/lib/commands/config/shared.js +1 -1
  56. package/lib/commands/data/filter.js +1 -1
  57. package/lib/commands/data/getOne.js +1 -1
  58. package/lib/commands/data/index.js +1 -1
  59. package/lib/commands/data/shared.js +1 -1
  60. package/lib/commands/dataset/business-group-update.js +1 -1
  61. package/lib/commands/dataset/business-groups.js +1 -1
  62. package/lib/commands/dataset/capability.js +1 -1
  63. package/lib/commands/dataset/delete.js +1 -1
  64. package/lib/commands/dataset/detail.js +1 -1
  65. package/lib/commands/dataset/extend-update.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/db/analysis-batching.js +1 -1
  80. package/lib/commands/db/analyze-batch-plan.js +1 -1
  81. package/lib/commands/db/analyze-cancel.js +1 -1
  82. package/lib/commands/db/analyze-start.js +1 -1
  83. package/lib/commands/db/analyze-status.js +1 -1
  84. package/lib/commands/db/create.js +1 -1
  85. package/lib/commands/db/delete.js +1 -1
  86. package/lib/commands/db/detail.js +1 -1
  87. package/lib/commands/db/diff-refresh-start.js +1 -1
  88. package/lib/commands/db/diff-refresh-status.js +1 -1
  89. package/lib/commands/db/diff.js +1 -1
  90. package/lib/commands/db/index.js +1 -1
  91. package/lib/commands/db/list.js +1 -1
  92. package/lib/commands/db/shared.js +1 -1
  93. package/lib/commands/db/tables.js +1 -1
  94. package/lib/commands/db/test.js +1 -1
  95. package/lib/commands/db/update.js +1 -1
  96. package/lib/commands/doctor.js +1 -1
  97. package/lib/commands/file/index.js +1 -1
  98. package/lib/commands/init/index.js +1 -1
  99. package/lib/commands/issue/index.js +1 -1
  100. package/lib/commands/issue/nudge.js +1 -1
  101. package/lib/commands/issue/report.js +1 -1
  102. package/lib/commands/issue/shared.js +1 -1
  103. package/lib/commands/kb/create.js +1 -1
  104. package/lib/commands/kb/delete.js +1 -1
  105. package/lib/commands/kb/detail.js +1 -1
  106. package/lib/commands/kb/index.js +1 -1
  107. package/lib/commands/kb/list.js +1 -1
  108. package/lib/commands/kb/search.js +1 -1
  109. package/lib/commands/kb/shared.js +1 -1
  110. package/lib/commands/kb/update.js +1 -1
  111. package/lib/commands/logs/index.js +1 -1
  112. package/lib/commands/menu/asset-update.js +1 -1
  113. package/lib/commands/menu/delete.js +1 -1
  114. package/lib/commands/menu/external-link-create.js +1 -1
  115. package/lib/commands/menu/external-link-update.js +1 -1
  116. package/lib/commands/menu/group-create.js +1 -1
  117. package/lib/commands/menu/group-update.js +1 -1
  118. package/lib/commands/menu/index.js +1 -1
  119. package/lib/commands/menu/list.js +1 -1
  120. package/lib/commands/menu/move.js +1 -1
  121. package/lib/commands/menu/regroup-start.js +1 -1
  122. package/lib/commands/menu/rename.js +1 -1
  123. package/lib/commands/menu/shared/compare-table.js +1 -1
  124. package/lib/commands/menu/shared/delete-plan.js +1 -1
  125. package/lib/commands/menu/shared/facts.js +1 -1
  126. package/lib/commands/menu/shared/index.js +1 -1
  127. package/lib/commands/menu/shared/inquirer.js +1 -1
  128. package/lib/commands/menu/shared/local-pages.js +1 -1
  129. package/lib/commands/menu/shared/logic.js +1 -1
  130. package/lib/commands/menu/shared/mutations.js +1 -1
  131. package/lib/commands/menu/shared/service.js +1 -1
  132. package/lib/commands/menu/shared/sync-core.js +1 -1
  133. package/lib/commands/menu/shared/update-core.js +1 -1
  134. package/lib/commands/menu/shared/valid-url.js +1 -1
  135. package/lib/commands/menu/sync.js +1 -1
  136. package/lib/commands/menu/visibility-update.js +1 -1
  137. package/lib/commands/notification/config-create.js +1 -1
  138. package/lib/commands/notification/config-delete.js +1 -1
  139. package/lib/commands/notification/config-list.js +1 -1
  140. package/lib/commands/notification/config-update.js +1 -1
  141. package/lib/commands/notification/index.js +1 -1
  142. package/lib/commands/notification/shared.js +1 -1
  143. package/lib/commands/ocr/index.js +1 -1
  144. package/lib/commands/page/create.js +1 -1
  145. package/lib/commands/page/custom/detail.js +1 -1
  146. package/lib/commands/page/custom/list.js +1 -1
  147. package/lib/commands/page/custom/publish.js +1 -1
  148. package/lib/commands/page/custom/shared.js +1 -1
  149. package/lib/commands/page/custom/syntax.js +1 -1
  150. package/lib/commands/page/custom/template.js +1 -1
  151. package/lib/commands/page/custom/update.js +1 -1
  152. package/lib/commands/page/data-list-status.js +1 -1
  153. package/lib/commands/page/generate-start.js +1 -1
  154. package/lib/commands/page/generate-status.js +1 -1
  155. package/lib/commands/page/index.js +1 -1
  156. package/lib/commands/page/pull.js +1 -1
  157. package/lib/commands/page/push.js +1 -1
  158. package/lib/commands/page/relation-audit.js +1 -1
  159. package/lib/commands/page/restore.js +1 -1
  160. package/lib/commands/page/shared.js +1 -1
  161. package/lib/commands/page/sync.js +1 -1
  162. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  163. package/lib/commands/project/create/format-elapsed.js +1 -1
  164. package/lib/commands/project/create/main.js +1 -1
  165. package/lib/commands/project/create/materialize-project-template.js +1 -1
  166. package/lib/commands/project/create/project-name.js +1 -1
  167. package/lib/commands/project/create/project-template-archive.js +1 -1
  168. package/lib/commands/project/create/project-template-path.js +1 -1
  169. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  170. package/lib/commands/project/create/use-format-code.js +1 -1
  171. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  172. package/lib/commands/project/index.js +1 -1
  173. package/lib/commands/project/upgrade.js +1 -1
  174. package/lib/commands/registry.js +1 -1
  175. package/lib/commands/role/delete.js +1 -1
  176. package/lib/commands/role/detail.js +1 -1
  177. package/lib/commands/role/index.js +1 -1
  178. package/lib/commands/role/list.js +1 -1
  179. package/lib/commands/role/shared.js +1 -1
  180. package/lib/commands/role/update.js +1 -1
  181. package/lib/commands/role/user-add.js +1 -1
  182. package/lib/commands/role/user-remove.js +1 -1
  183. package/lib/commands/role/user-resolve.js +1 -1
  184. package/lib/commands/run/index.js +1 -1
  185. package/lib/commands/schema.js +1 -1
  186. package/lib/commands/sql/create.js +1 -1
  187. package/lib/commands/sql/delete.js +1 -1
  188. package/lib/commands/sql/detail.js +1 -1
  189. package/lib/commands/sql/exec.js +1 -1
  190. package/lib/commands/sql/index.js +1 -1
  191. package/lib/commands/sql/list.js +1 -1
  192. package/lib/commands/sql/pull.js +1 -1
  193. package/lib/commands/sql/push.js +1 -1
  194. package/lib/commands/sql/shared.js +1 -1
  195. package/lib/commands/sql/status.js +1 -1
  196. package/lib/commands/sql/validate.js +1 -1
  197. package/lib/commands/task/index.js +1 -1
  198. package/lib/commands/task/status.js +1 -1
  199. package/lib/commands/tenant/index.js +1 -1
  200. package/lib/commands/tenant/members-list.js +1 -1
  201. package/lib/commands/tenant/shared.js +1 -1
  202. package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
  203. package/lib/commands/user-account/index.js +1 -1
  204. package/lib/commands/workspace/add.js +1 -1
  205. package/lib/commands/workspace/index.js +1 -1
  206. package/lib/commands/workspace/remove.js +1 -1
  207. package/lib/config/schema.js +1 -1
  208. package/lib/constant/cdn.js +1 -1
  209. package/lib/constant/cli.js +1 -1
  210. package/lib/constant/defaults.js +1 -1
  211. package/lib/constant/domain.js +1 -1
  212. package/lib/constant/env.js +1 -1
  213. package/lib/constant/output.js +1 -1
  214. package/lib/constant/paths.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/rules-cdn.js +1 -1
  286. package/lib/utils/sleep.js +1 -1
  287. package/lib/utils/template-replacer.js +1 -1
  288. package/lib/utils/update-notice.js +1 -1
  289. package/lib/utils/version.js +1 -1
  290. package/lib/utils/with-active-cookie.js +1 -1
  291. package/lib/utils/write-cli-side-channel.js +1 -1
  292. package/package.json +1 -1
  293. package/skills/rabetbase/SKILL.md +1 -1
  294. package/skills/rabetbase.manifest.json +3 -3
@@ -1 +1 @@
1
- (function(_0x27229d,_0x4b0d1f){const _0x3f0748=a292_0x5aa8,_0x1bb52c=_0x27229d();while(!![]){try{const _0x5143ee=-parseInt(_0x3f0748(0x17f))/0x1+-parseInt(_0x3f0748(0x17c))/0x2+-parseInt(_0x3f0748(0x170))/0x3+parseInt(_0x3f0748(0x182))/0x4+parseInt(_0x3f0748(0x175))/0x5*(parseInt(_0x3f0748(0x17b))/0x6)+parseInt(_0x3f0748(0x171))/0x7+parseInt(_0x3f0748(0x16c))/0x8;if(_0x5143ee===_0x4b0d1f)break;else _0x1bb52c['push'](_0x1bb52c['shift']());}catch(_0x3664c7){_0x1bb52c['push'](_0x1bb52c['shift']());}}}(a292_0x5f49,0xd9904));function a292_0x5f49(){const _0x5d8b00=['6498016RanNce','lastNotifiedAt','stringify','object','762780WirUPL','3173450rWGFPl','gte','https://www.npmjs.com/package/','rabetbase-cli','5lJiiGE','/v/','\x20available,\x20current\x20','utf8','valid','trim','2037606BTtiun','342694tefwNZ','now','number','1584190TsnHqR','checkedAt','parse','5182936mTlJWj','.cache','update-check.json','true','toLowerCase','stableVersion'];a292_0x5f49=function(){return _0x5d8b00;};return a292_0x5f49();}import{mkdir,readFile,writeFile}from'node:fs/promises';function a292_0x5aa8(_0x542c2e,_0x4b6510){_0x542c2e=_0x542c2e-0x169;const _0x5f498f=a292_0x5f49();let _0x5aa803=_0x5f498f[_0x542c2e];return _0x5aa803;}import{homedir}from'node:os';import{dirname,join}from'node:path';import a292_0x6bc56e 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 _0x556c54=a292_0x5aa8,_0x49e14d=process.env.RABETBASE_NO_UPDATE_NOTICE?.['trim']()[_0x556c54(0x16a)]();return _0x49e14d==='1'||_0x49e14d===_0x556c54(0x169)||_0x49e14d==='yes';}function cacheRoot(){const _0x285772=a292_0x5aa8;return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),_0x285772(0x183));}export function getUpdateNoticeCachePath(){const _0x7b4fc5=a292_0x5aa8;return join(cacheRoot(),_0x7b4fc5(0x174),_0x7b4fc5(0x184));}async function readUpdateNoticeCache(){const _0x5ab67a=a292_0x5aa8;try{const _0x591713=await readFile(getUpdateNoticeCachePath(),_0x5ab67a(0x178)),_0xf2520=JSON[_0x5ab67a(0x181)](_0x591713);if(!_0xf2520||typeof _0xf2520!==_0x5ab67a(0x16f))return{};return _0xf2520;}catch{return{};}}async function writeUpdateNoticeCache(_0x1c4733){const _0x11862c=a292_0x5aa8;try{const _0x2f595b=getUpdateNoticeCachePath();await mkdir(dirname(_0x2f595b),{'recursive':!![]}),await writeFile(_0x2f595b,JSON[_0x11862c(0x16e)](_0x1c4733,null,0x2)+'\x0a',_0x11862c(0x178));}catch{}}function isFreshCheck(_0x20203d,_0x2d8ec5){const _0x266615=a292_0x5aa8;return typeof _0x20203d[_0x266615(0x180)]==='number'&&_0x2d8ec5-_0x20203d['checkedAt']<UPDATE_CHECK_TTL_MS;}function isRecentlyNotified(_0xbb2147,_0x2507ed,_0x482d32){const _0x7dd067=a292_0x5aa8;return _0xbb2147['lastNotifiedVersion']===_0x2507ed&&typeof _0xbb2147['lastNotifiedAt']===_0x7dd067(0x17e)&&_0x482d32-_0xbb2147[_0x7dd067(0x16d)]<UPDATE_NOTICE_TTL_MS;}export function buildNpmVersionUrl(_0x19b054){const _0x50f62e=a292_0x5aa8;return _0x50f62e(0x173)+NPM_PACKAGE_NAME+_0x50f62e(0x176)+_0x19b054;}export async function resolveLatestUpdateNotice(){const _0x10f5a9=a292_0x5aa8;if(isUpdateNoticeDisabled())return null;try{const _0x455a66=Date[_0x10f5a9(0x17d)](),_0x50d979=getCliVersion(),_0x1425b1=await readUpdateNoticeCache();let _0x256bc1=isFreshCheck(_0x1425b1,_0x455a66)?_0x1425b1['latest']?.[_0x10f5a9(0x17a)]():undefined;if(!_0x256bc1&&!isFreshCheck(_0x1425b1,_0x455a66)){const _0x2ac357=await getCliVersionPolicy();_0x256bc1=_0x2ac357?.[_0x10f5a9(0x16b)]?.[_0x10f5a9(0x17a)]()||undefined,await writeUpdateNoticeCache({..._0x1425b1,'checkedAt':_0x455a66,'latest':_0x256bc1,'failed':!_0x256bc1});}if(!_0x256bc1||!a292_0x6bc56e[_0x10f5a9(0x179)](_0x50d979)||!a292_0x6bc56e[_0x10f5a9(0x179)](_0x256bc1))return null;if(a292_0x6bc56e[_0x10f5a9(0x172)](_0x50d979,_0x256bc1))return null;if(isRecentlyNotified(_0x1425b1,_0x256bc1,_0x455a66))return null;const _0x1914f9=CLI_BIN_NAME+'\x20update';return await writeUpdateNoticeCache({..._0x1425b1,'checkedAt':isFreshCheck(_0x1425b1,_0x455a66)?_0x1425b1[_0x10f5a9(0x180)]:_0x455a66,'latest':_0x256bc1,'failed':![],'lastNotifiedVersion':_0x256bc1,'lastNotifiedAt':_0x455a66}),{'command':_0x1914f9,'current':_0x50d979,'latest':_0x256bc1,'url':buildNpmVersionUrl(_0x256bc1),'message':CLI_BIN_NAME+'\x20'+_0x256bc1+_0x10f5a9(0x177)+_0x50d979+',\x20run:\x20'+_0x1914f9};}catch{return null;}}
1
+ (function(_0x35cdbf,_0x4578a2){const _0x990873=a292_0x21b2,_0x2772f9=_0x35cdbf();while(!![]){try{const _0x4ab99e=-parseInt(_0x990873(0x81))/0x1*(parseInt(_0x990873(0x82))/0x2)+-parseInt(_0x990873(0x8d))/0x3*(parseInt(_0x990873(0x8f))/0x4)+parseInt(_0x990873(0x79))/0x5*(parseInt(_0x990873(0x7e))/0x6)+-parseInt(_0x990873(0x74))/0x7*(parseInt(_0x990873(0x73))/0x8)+-parseInt(_0x990873(0x83))/0x9+-parseInt(_0x990873(0x7f))/0xa*(parseInt(_0x990873(0x7b))/0xb)+parseInt(_0x990873(0x8a))/0xc;if(_0x4ab99e===_0x4578a2)break;else _0x2772f9['push'](_0x2772f9['shift']());}catch(_0x4bae4c){_0x2772f9['push'](_0x2772f9['shift']());}}}(a292_0x543d,0x8ebe7));import{mkdir,readFile,writeFile}from'node:fs/promises';import{homedir}from'node:os';import{dirname,join}from'node:path';function a292_0x543d(){const _0x205a01=['\x20available,\x20current\x20','6EZPpaf','30waGczW','valid','5nZHTZR','5522GgzVFi','5843106qiMBza','yes','utf8','toLowerCase','/v/','trim','gte','31462080IAjnjf','parse','lastNotifiedAt','2412237JinzxL','object','4HGEsRp','number','24awvkTT','1097110QjIfjC',',\x20run:\x20','checkedAt','true','.cache','3332155sQjpPq','lastNotifiedVersion','2809708QYDJQc','stringify'];a292_0x543d=function(){return _0x205a01;};return a292_0x543d();}import a292_0x10e647 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 _0x6e27a1=a292_0x21b2,_0x46c631=process.env.RABETBASE_NO_UPDATE_NOTICE?.[_0x6e27a1(0x88)]()[_0x6e27a1(0x86)]();return _0x46c631==='1'||_0x46c631===_0x6e27a1(0x77)||_0x46c631===_0x6e27a1(0x84);}function cacheRoot(){const _0x3cc605=a292_0x21b2;return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),_0x3cc605(0x78));}export function getUpdateNoticeCachePath(){return join(cacheRoot(),'rabetbase-cli','update-check.json');}async function readUpdateNoticeCache(){const _0x3d0cf6=a292_0x21b2;try{const _0x3058b4=await readFile(getUpdateNoticeCachePath(),_0x3d0cf6(0x85)),_0x490172=JSON[_0x3d0cf6(0x8b)](_0x3058b4);if(!_0x490172||typeof _0x490172!==_0x3d0cf6(0x8e))return{};return _0x490172;}catch{return{};}}async function writeUpdateNoticeCache(_0x1ab9f5){const _0x4697e6=a292_0x21b2;try{const _0x5e640e=getUpdateNoticeCachePath();await mkdir(dirname(_0x5e640e),{'recursive':!![]}),await writeFile(_0x5e640e,JSON[_0x4697e6(0x7c)](_0x1ab9f5,null,0x2)+'\x0a',_0x4697e6(0x85));}catch{}}function a292_0x21b2(_0x4a83e5,_0x4801d0){_0x4a83e5=_0x4a83e5-0x73;const _0x543d8c=a292_0x543d();let _0x21b2a9=_0x543d8c[_0x4a83e5];return _0x21b2a9;}function isFreshCheck(_0x39e6f5,_0x39f301){const _0x21ad36=a292_0x21b2;return typeof _0x39e6f5['checkedAt']===_0x21ad36(0x90)&&_0x39f301-_0x39e6f5[_0x21ad36(0x76)]<UPDATE_CHECK_TTL_MS;}function isRecentlyNotified(_0x408b20,_0x3ade76,_0x237263){const _0x2fd835=a292_0x21b2;return _0x408b20[_0x2fd835(0x7a)]===_0x3ade76&&typeof _0x408b20[_0x2fd835(0x8c)]==='number'&&_0x237263-_0x408b20[_0x2fd835(0x8c)]<UPDATE_NOTICE_TTL_MS;}export function buildNpmVersionUrl(_0x19c5e5){const _0x7169a0=a292_0x21b2;return'https://www.npmjs.com/package/'+NPM_PACKAGE_NAME+_0x7169a0(0x87)+_0x19c5e5;}export async function resolveLatestUpdateNotice(){const _0x55ed93=a292_0x21b2;if(isUpdateNoticeDisabled())return null;try{const _0x28e99c=Date['now'](),_0x18e366=getCliVersion(),_0x132fd7=await readUpdateNoticeCache();let _0x5e54a9=isFreshCheck(_0x132fd7,_0x28e99c)?_0x132fd7['latest']?.[_0x55ed93(0x88)]():undefined;if(!_0x5e54a9&&!isFreshCheck(_0x132fd7,_0x28e99c)){const _0x2aa365=await getCliVersionPolicy();_0x5e54a9=_0x2aa365?.['stableVersion']?.['trim']()||undefined,await writeUpdateNoticeCache({..._0x132fd7,'checkedAt':_0x28e99c,'latest':_0x5e54a9,'failed':!_0x5e54a9});}if(!_0x5e54a9||!a292_0x10e647['valid'](_0x18e366)||!a292_0x10e647[_0x55ed93(0x80)](_0x5e54a9))return null;if(a292_0x10e647[_0x55ed93(0x89)](_0x18e366,_0x5e54a9))return null;if(isRecentlyNotified(_0x132fd7,_0x5e54a9,_0x28e99c))return null;const _0x3d404d=CLI_BIN_NAME+'\x20update';return await writeUpdateNoticeCache({..._0x132fd7,'checkedAt':isFreshCheck(_0x132fd7,_0x28e99c)?_0x132fd7['checkedAt']:_0x28e99c,'latest':_0x5e54a9,'failed':![],'lastNotifiedVersion':_0x5e54a9,'lastNotifiedAt':_0x28e99c}),{'command':_0x3d404d,'current':_0x18e366,'latest':_0x5e54a9,'url':buildNpmVersionUrl(_0x5e54a9),'message':CLI_BIN_NAME+'\x20'+_0x5e54a9+_0x55ed93(0x7d)+_0x18e366+_0x55ed93(0x75)+_0x3d404d};}catch{return null;}}
@@ -1 +1 @@
1
- function a293_0x225f(_0x43add0,_0x12a931){_0x43add0=_0x43add0-0x196;var _0x317c6d=a293_0x317c();var _0x225fe4=_0x317c6d[_0x43add0];return _0x225fe4;}(function(_0x52f53a,_0x31441d){var _0xe506f8=a293_0x225f,_0x491eed=_0x52f53a();while(!![]){try{var _0x50acfb=-parseInt(_0xe506f8(0x19d))/0x1*(-parseInt(_0xe506f8(0x19c))/0x2)+parseInt(_0xe506f8(0x1a0))/0x3*(-parseInt(_0xe506f8(0x19e))/0x4)+parseInt(_0xe506f8(0x199))/0x5*(parseInt(_0xe506f8(0x19b))/0x6)+-parseInt(_0xe506f8(0x198))/0x7+parseInt(_0xe506f8(0x196))/0x8+-parseInt(_0xe506f8(0x19a))/0x9*(parseInt(_0xe506f8(0x197))/0xa)+parseInt(_0xe506f8(0x19f))/0xb;if(_0x50acfb===_0x31441d)break;else _0x491eed['push'](_0x491eed['shift']());}catch(_0x5bb897){_0x491eed['push'](_0x491eed['shift']());}}}(a293_0x317c,0x86f24));function a293_0x317c(){var _0x400a6f=['3922292CAjjWr','3LpsKGe','7624688AAnLMi','4096500UpLYvg','1201067fRFdDB','310YCquAi','9LReAYE','1338zYHjJb','4eNQGNw','84737XcTcgL','1435948GqUWYm'];a293_0x317c=function(){return _0x400a6f;};return a293_0x317c();}import{VERSION}from'../generated/build-info.js';export function getCliVersion(){return VERSION;}
1
+ (function(_0x20eba9,_0x16c3e9){var _0x1a904d=a293_0x2fa4,_0x2ef528=_0x20eba9();while(!![]){try{var _0x3d9404=-parseInt(_0x1a904d(0x88))/0x1*(-parseInt(_0x1a904d(0x86))/0x2)+parseInt(_0x1a904d(0x82))/0x3*(-parseInt(_0x1a904d(0x8b))/0x4)+-parseInt(_0x1a904d(0x89))/0x5+parseInt(_0x1a904d(0x81))/0x6+parseInt(_0x1a904d(0x83))/0x7*(-parseInt(_0x1a904d(0x8a))/0x8)+parseInt(_0x1a904d(0x87))/0x9*(parseInt(_0x1a904d(0x85))/0xa)+-parseInt(_0x1a904d(0x84))/0xb;if(_0x3d9404===_0x16c3e9)break;else _0x2ef528['push'](_0x2ef528['shift']());}catch(_0x21d3ef){_0x2ef528['push'](_0x2ef528['shift']());}}}(a293_0x1827,0xf34ae));function a293_0x1827(){var _0x4fbfbc=['76292tdoyhG','5867898mYdQYl','12ifOidt','1340668qEaedc','12085524ypysXN','3590zfwiLU','284sAxncG','30555iqeHNp','8617jqYBMs','5286880OerCay','8LSJYvY'];a293_0x1827=function(){return _0x4fbfbc;};return a293_0x1827();}import{VERSION}from'../generated/build-info.js';function a293_0x2fa4(_0x94cee0,_0x4dce94){_0x94cee0=_0x94cee0-0x81;var _0x182749=a293_0x1827();var _0x2fa4e1=_0x182749[_0x94cee0];return _0x2fa4e1;}export function getCliVersion(){return VERSION;}
@@ -1 +1 @@
1
- (function(_0x3888fd,_0x4e66c5){var _0x39c8fa=a294_0x218f,_0xb5c13e=_0x3888fd();while(!![]){try{var _0x38d4ac=-parseInt(_0x39c8fa(0x178))/0x1+parseInt(_0x39c8fa(0x173))/0x2*(-parseInt(_0x39c8fa(0x172))/0x3)+-parseInt(_0x39c8fa(0x177))/0x4*(-parseInt(_0x39c8fa(0x176))/0x5)+parseInt(_0x39c8fa(0x174))/0x6*(parseInt(_0x39c8fa(0x170))/0x7)+-parseInt(_0x39c8fa(0x171))/0x8+parseInt(_0x39c8fa(0x17a))/0x9*(parseInt(_0x39c8fa(0x179))/0xa)+parseInt(_0x39c8fa(0x175))/0xb;if(_0x38d4ac===_0x4e66c5)break;else _0xb5c13e['push'](_0xb5c13e['shift']());}catch(_0x54b235){_0xb5c13e['push'](_0xb5c13e['shift']());}}}(a294_0x1eba,0xdb79b));import{setActiveCookie,clearActiveCookie}from'../core/api-client.js';function a294_0x1eba(){var _0x4a090a=['221790RhRZCH','2kcGFFz','88254RizmGx','6054169kLWuFq','651395RwoLPc','12IGaVkb','32464oKofXc','21530SjVRvs','2286zQpEvu','21xJPcsx','4214720kyxQxi'];a294_0x1eba=function(){return _0x4a090a;};return a294_0x1eba();}function a294_0x218f(_0x4e1002,_0x6e9b7a){_0x4e1002=_0x4e1002-0x170;var _0x1eba2e=a294_0x1eba();var _0x218f54=_0x1eba2e[_0x4e1002];return _0x218f54;}export async function withActiveCookie(_0x5096d4,_0x4cf770){setActiveCookie(_0x5096d4);try{return await _0x4cf770();}finally{clearActiveCookie();}}
1
+ (function(_0x2743fd,_0x18cee8){var _0x338b14=a294_0xcb28,_0x589914=_0x2743fd();while(!![]){try{var _0x1d2c05=-parseInt(_0x338b14(0x14d))/0x1*(-parseInt(_0x338b14(0x146))/0x2)+-parseInt(_0x338b14(0x14b))/0x3+parseInt(_0x338b14(0x147))/0x4+parseInt(_0x338b14(0x149))/0x5+-parseInt(_0x338b14(0x148))/0x6*(parseInt(_0x338b14(0x14e))/0x7)+-parseInt(_0x338b14(0x14a))/0x8+parseInt(_0x338b14(0x14c))/0x9;if(_0x1d2c05===_0x18cee8)break;else _0x589914['push'](_0x589914['shift']());}catch(_0x5caa3d){_0x589914['push'](_0x589914['shift']());}}}(a294_0x43bb,0x563a6));import{setActiveCookie,clearActiveCookie}from'../core/api-client.js';function a294_0xcb28(_0xcdf63c,_0x27e735){_0xcdf63c=_0xcdf63c-0x146;var _0x43bb76=a294_0x43bb();var _0xcb289a=_0x43bb76[_0xcdf63c];return _0xcb289a;}export async function withActiveCookie(_0x5841b8,_0x2207fa){setActiveCookie(_0x5841b8);try{return await _0x2207fa();}finally{clearActiveCookie();}}function a294_0x43bb(){var _0x4d64b4=['250806fBhDmm','2596932WZMozJ','90102kCePot','1666825txhjaJ','758936qtCKHo','1466502PrcDBK','757611KEIfnX','1xEACUW','119gLGGaw'];a294_0x43bb=function(){return _0x4d64b4;};return a294_0x43bb();}
@@ -1 +1 @@
1
- function a295_0x4d2e(_0x3da1fc,_0x2a894a){_0x3da1fc=_0x3da1fc-0x1dc;var _0xcd4769=a295_0xcd47();var _0x4d2e14=_0xcd4769[_0x3da1fc];return _0x4d2e14;}(function(_0x16448e,_0x44a212){var _0x57880f=a295_0x4d2e,_0x41a8e6=_0x16448e();while(!![]){try{var _0x5da010=-parseInt(_0x57880f(0x1e2))/0x1*(-parseInt(_0x57880f(0x1df))/0x2)+-parseInt(_0x57880f(0x1e0))/0x3*(parseInt(_0x57880f(0x1e9))/0x4)+parseInt(_0x57880f(0x1e3))/0x5*(-parseInt(_0x57880f(0x1de))/0x6)+parseInt(_0x57880f(0x1e7))/0x7+parseInt(_0x57880f(0x1dc))/0x8+-parseInt(_0x57880f(0x1e4))/0x9*(parseInt(_0x57880f(0x1e8))/0xa)+parseInt(_0x57880f(0x1dd))/0xb*(-parseInt(_0x57880f(0x1e5))/0xc);if(_0x5da010===_0x44a212)break;else _0x41a8e6['push'](_0x41a8e6['shift']());}catch(_0x94a8b1){_0x41a8e6['push'](_0x41a8e6['shift']());}}}(a295_0xcd47,0x4a3a3));export function writeCliSideChannelLine(_0x5de615){var _0x139026=a295_0x4d2e;process[_0x139026(0x1e6)][_0x139026(0x1e1)](_0x5de615+'\x0a');}function a295_0xcd47(){var _0x4ee805=['1535112zXkOFf','40942NajUYr','83454Avuvac','2IcmwqO','27IwCbNZ','write','190769SgLOmU','5sMrHit','1374498Hdwvir','12TCauKs','stderr','2397353ndCpwn','10gTjGlp','111444tVkCQv'];a295_0xcd47=function(){return _0x4ee805;};return a295_0xcd47();}
1
+ function a295_0x5a88(_0x14bc9a,_0x2e82fd){_0x14bc9a=_0x14bc9a-0x1db;var _0x55c804=a295_0x55c8();var _0x5a88fd=_0x55c804[_0x14bc9a];return _0x5a88fd;}(function(_0x5e727a,_0x2e7d49){var _0x16be1c=a295_0x5a88,_0x3f0a2e=_0x5e727a();while(!![]){try{var _0x549d74=-parseInt(_0x16be1c(0x1df))/0x1*(-parseInt(_0x16be1c(0x1e8))/0x2)+parseInt(_0x16be1c(0x1e1))/0x3*(parseInt(_0x16be1c(0x1e4))/0x4)+parseInt(_0x16be1c(0x1e5))/0x5*(parseInt(_0x16be1c(0x1dd))/0x6)+parseInt(_0x16be1c(0x1e7))/0x7*(-parseInt(_0x16be1c(0x1de))/0x8)+parseInt(_0x16be1c(0x1e3))/0x9+parseInt(_0x16be1c(0x1db))/0xa*(parseInt(_0x16be1c(0x1e2))/0xb)+parseInt(_0x16be1c(0x1e0))/0xc*(-parseInt(_0x16be1c(0x1dc))/0xd);if(_0x549d74===_0x2e7d49)break;else _0x3f0a2e['push'](_0x3f0a2e['shift']());}catch(_0x30f617){_0x3f0a2e['push'](_0x3f0a2e['shift']());}}}(a295_0x55c8,0x674d4));function a295_0x55c8(){var _0x363995=['3439766hmbRSN','534069uonluw','4SnACGt','10vXdAed','write','7ypVtGq','158BjfBJZ','10ljAvPA','1603147AUaYRJ','1132644KGBwyw','665936nscKAv','9427kaBydh','132eHQynC','1105641aIxpHT'];a295_0x55c8=function(){return _0x363995;};return a295_0x55c8();}export function writeCliSideChannelLine(_0x45417e){var _0x28a3ca=a295_0x5a88;process['stderr'][_0x28a3ca(0x1e6)](_0x45417e+'\x0a');}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lovrabet/rabetbase-cli",
3
- "version": "2.4.7-beta.2",
3
+ "version": "2.4.7",
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.4.7-beta.2
3
+ version: 2.4.7
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:
@@ -2,8 +2,8 @@
2
2
  "schemaVersion": 1,
3
3
  "name": "rabetbase",
4
4
  "packageName": "@lovrabet/rabetbase-cli",
5
- "packageVersion": "2.4.7-beta.2",
6
- "skillVersion": "2.4.7-beta.2",
5
+ "packageVersion": "2.4.7",
6
+ "skillVersion": "2.4.7",
7
7
  "files": [
8
8
  "SKILL.md",
9
9
  "guides/backend-function.md",
@@ -131,5 +131,5 @@
131
131
  "references/rabetbase-user-account.md",
132
132
  "references/rabetbase-workspace.md"
133
133
  ],
134
- "digest": "91bcc2cef3e9a2edb89cc0216a5c5e15757c30699d13312778d4bf7dd8d96805"
134
+ "digest": "74ec8ca69aff4db403008c1a5201142a12adaae91916d9fbb1dc8fb837fa8085"
135
135
  }