@lovrabet/rabetbase-cli 2.4.1 → 2.4.2

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 (293) 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/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.js +1 -1
  87. package/lib/commands/db/index.js +1 -1
  88. package/lib/commands/db/list.js +1 -1
  89. package/lib/commands/db/shared.js +1 -1
  90. package/lib/commands/db/tables.js +1 -1
  91. package/lib/commands/db/test.js +1 -1
  92. package/lib/commands/db/update.js +1 -1
  93. package/lib/commands/doctor.js +1 -1
  94. package/lib/commands/file/index.js +1 -1
  95. package/lib/commands/init/index.js +1 -1
  96. package/lib/commands/issue/index.js +1 -1
  97. package/lib/commands/issue/nudge.js +1 -1
  98. package/lib/commands/issue/report.js +1 -1
  99. package/lib/commands/issue/shared.js +1 -1
  100. package/lib/commands/kb/create.js +1 -1
  101. package/lib/commands/kb/delete.js +1 -1
  102. package/lib/commands/kb/detail.js +1 -1
  103. package/lib/commands/kb/index.js +1 -1
  104. package/lib/commands/kb/list.js +1 -1
  105. package/lib/commands/kb/shared.js +1 -1
  106. package/lib/commands/kb/update.js +1 -1
  107. package/lib/commands/logs/index.js +1 -1
  108. package/lib/commands/menu/asset-update.js +1 -1
  109. package/lib/commands/menu/delete.js +1 -1
  110. package/lib/commands/menu/external-link-create.js +1 -1
  111. package/lib/commands/menu/external-link-update.js +1 -1
  112. package/lib/commands/menu/group-create.js +1 -1
  113. package/lib/commands/menu/group-update.js +1 -1
  114. package/lib/commands/menu/index.js +1 -1
  115. package/lib/commands/menu/list.js +1 -1
  116. package/lib/commands/menu/move.js +1 -1
  117. package/lib/commands/menu/regroup-start.js +1 -1
  118. package/lib/commands/menu/rename.js +1 -1
  119. package/lib/commands/menu/shared/compare-table.js +1 -1
  120. package/lib/commands/menu/shared/delete-plan.js +1 -1
  121. package/lib/commands/menu/shared/facts.js +1 -1
  122. package/lib/commands/menu/shared/index.js +1 -1
  123. package/lib/commands/menu/shared/inquirer.js +1 -1
  124. package/lib/commands/menu/shared/local-pages.js +1 -1
  125. package/lib/commands/menu/shared/logic.js +1 -1
  126. package/lib/commands/menu/shared/mutations.js +1 -1
  127. package/lib/commands/menu/shared/service.js +1 -1
  128. package/lib/commands/menu/shared/sync-core.js +1 -1
  129. package/lib/commands/menu/shared/update-core.js +1 -1
  130. package/lib/commands/menu/shared/valid-url.js +1 -1
  131. package/lib/commands/menu/sync.js +1 -1
  132. package/lib/commands/notification/config-list.js +1 -1
  133. package/lib/commands/notification/index.js +1 -1
  134. package/lib/commands/ocr/index.js +1 -1
  135. package/lib/commands/page/generate-start.js +1 -1
  136. package/lib/commands/page/generate-status.js +1 -1
  137. package/lib/commands/page/index.js +1 -1
  138. package/lib/commands/page/pull.js +1 -1
  139. package/lib/commands/page/push.js +1 -1
  140. package/lib/commands/page/react/create.js +1 -1
  141. package/lib/commands/page/react/detail.js +1 -1
  142. package/lib/commands/page/react/list.js +1 -1
  143. package/lib/commands/page/react/publish.js +1 -1
  144. package/lib/commands/page/react/shared.js +1 -1
  145. package/lib/commands/page/react/syntax.js +1 -1
  146. package/lib/commands/page/react/template.js +1 -1
  147. package/lib/commands/page/react/update.js +1 -1
  148. package/lib/commands/page/relation-audit.js +1 -1
  149. package/lib/commands/page/restore.js +1 -1
  150. package/lib/commands/page/shared.js +1 -1
  151. package/lib/commands/page/standard-page-status.js +1 -1
  152. package/lib/commands/page/sync.js +1 -1
  153. package/lib/commands/permit/index.js +1 -1
  154. package/lib/commands/permit/page-get.js +1 -1
  155. package/lib/commands/permit/page-set.js +1 -1
  156. package/lib/commands/permit/role-apis-set.js +1 -1
  157. package/lib/commands/permit/role-menus-set.js +1 -1
  158. package/lib/commands/permit/role-menus.js +1 -1
  159. package/lib/commands/permit/shared.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/non-interactive.js +1 -1
  164. package/lib/commands/project/create/project-template-path.js +1 -1
  165. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  166. package/lib/commands/project/create/use-format-code.js +1 -1
  167. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  168. package/lib/commands/project/index.js +1 -1
  169. package/lib/commands/project/upgrade.js +1 -1
  170. package/lib/commands/registry.js +1 -1
  171. package/lib/commands/role/create.js +1 -1
  172. package/lib/commands/role/delete.js +1 -1
  173. package/lib/commands/role/detail.js +1 -1
  174. package/lib/commands/role/index.js +1 -1
  175. package/lib/commands/role/list.js +1 -1
  176. package/lib/commands/role/shared.js +1 -1
  177. package/lib/commands/role/update.js +1 -1
  178. package/lib/commands/role/user-add.js +1 -1
  179. package/lib/commands/role/user-remove.js +1 -1
  180. package/lib/commands/role/user-resolve.js +1 -1
  181. package/lib/commands/run/index.js +1 -1
  182. package/lib/commands/schema.js +1 -1
  183. package/lib/commands/sql/create.js +1 -1
  184. package/lib/commands/sql/delete.js +1 -1
  185. package/lib/commands/sql/detail.js +1 -1
  186. package/lib/commands/sql/exec.js +1 -1
  187. package/lib/commands/sql/index.js +1 -1
  188. package/lib/commands/sql/list.js +1 -1
  189. package/lib/commands/sql/pull.js +1 -1
  190. package/lib/commands/sql/push.js +1 -1
  191. package/lib/commands/sql/shared.js +1 -1
  192. package/lib/commands/sql/status.js +1 -1
  193. package/lib/commands/sql/validate.js +1 -1
  194. package/lib/commands/task/index.js +1 -1
  195. package/lib/commands/task/status.js +1 -1
  196. package/lib/commands/tenant/index.js +1 -1
  197. package/lib/commands/tenant/members-list.js +1 -1
  198. package/lib/commands/tenant/shared.js +1 -1
  199. package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
  200. package/lib/commands/user-account/index.js +1 -1
  201. package/lib/commands/workspace/add.js +1 -1
  202. package/lib/commands/workspace/index.js +1 -1
  203. package/lib/commands/workspace/remove.js +1 -1
  204. package/lib/config/schema.js +1 -1
  205. package/lib/constant/cdn.js +1 -1
  206. package/lib/constant/cli.js +1 -1
  207. package/lib/constant/defaults.js +1 -1
  208. package/lib/constant/domain.js +1 -1
  209. package/lib/constant/env.js +1 -1
  210. package/lib/constant/output.js +1 -1
  211. package/lib/constant/paths.js +1 -1
  212. package/lib/constant/risk.js +1 -1
  213. package/lib/context/app-resolver.js +1 -1
  214. package/lib/context/auth-resolver.js +1 -1
  215. package/lib/context/config-loader.js +1 -1
  216. package/lib/context.js +1 -1
  217. package/lib/core/alias-resolver.js +1 -1
  218. package/lib/core/api-client.js +1 -1
  219. package/lib/core/bff/config.js +1 -1
  220. package/lib/core/bff/file-system.js +1 -1
  221. package/lib/core/bff/hash.js +1 -1
  222. package/lib/core/bff/lock.js +1 -1
  223. package/lib/core/bff/utils.js +1 -1
  224. package/lib/core/db-resolver.js +1 -1
  225. package/lib/core/page/file-system.js +1 -1
  226. package/lib/core/page/hash.js +1 -1
  227. package/lib/core/page/lock.js +1 -1
  228. package/lib/core/sql-index-auditor.js +1 -1
  229. package/lib/core/sql-sync/config.js +1 -1
  230. package/lib/core/sql-sync/file-system.js +1 -1
  231. package/lib/core/sql-sync/hash.js +1 -1
  232. package/lib/core/sql-sync/lock.js +1 -1
  233. package/lib/core/sql-sync/utils.js +1 -1
  234. package/lib/core/sql-validator.js +1 -1
  235. package/lib/errors.js +1 -1
  236. package/lib/framework/build-all-flags.js +1 -1
  237. package/lib/framework/error-output.js +1 -1
  238. package/lib/framework/explicit-yes.js +1 -1
  239. package/lib/framework/flags.js +1 -1
  240. package/lib/framework/help.js +1 -1
  241. package/lib/framework/index.js +1 -1
  242. package/lib/framework/output.js +1 -1
  243. package/lib/framework/response.js +1 -1
  244. package/lib/framework/runner-alias.js +1 -1
  245. package/lib/framework/runner.js +1 -1
  246. package/lib/framework/schema-export.js +1 -1
  247. package/lib/framework/types.js +1 -1
  248. package/lib/generated/build-info.d.ts +4 -4
  249. package/lib/generated/build-info.js +1 -1
  250. package/lib/help.js +1 -1
  251. package/lib/postinstall.js +1 -1
  252. package/lib/runtime/confirmation.js +1 -1
  253. package/lib/runtime/event.js +1 -1
  254. package/lib/runtime/index.js +1 -1
  255. package/lib/runtime/queue.js +1 -1
  256. package/lib/runtime/resolve.js +1 -1
  257. package/lib/skills/builtin-skill.js +1 -1
  258. package/lib/skills/main.js +1 -1
  259. package/lib/skills/npx-skills-add.js +1 -1
  260. package/lib/skills/skill-presence.js +1 -1
  261. package/lib/telemetry/cli-command-trace.js +1 -1
  262. package/lib/telemetry/cli-help-trace.js +1 -1
  263. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  264. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  265. package/lib/telemetry/send-cli-trace-log.js +1 -1
  266. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  267. package/lib/utils/ai_config.js +1 -1
  268. package/lib/utils/apply-jq-filter.js +1 -1
  269. package/lib/utils/cdn-config.js +1 -1
  270. package/lib/utils/check-sdk-version.js +1 -1
  271. package/lib/utils/cli-version-check.js +1 -1
  272. package/lib/utils/cli-version-policy.js +1 -1
  273. package/lib/utils/config.js +1 -1
  274. package/lib/utils/copy-directory.js +1 -1
  275. package/lib/utils/entity-with-id.js +1 -1
  276. package/lib/utils/file-utils.js +1 -1
  277. package/lib/utils/guides-cdn.js +1 -1
  278. package/lib/utils/http-client.js +1 -1
  279. package/lib/utils/is-non-interactive.js +1 -1
  280. package/lib/utils/logger.js +1 -1
  281. package/lib/utils/params.js +1 -1
  282. package/lib/utils/platform.js +1 -1
  283. package/lib/utils/rules-cdn.js +1 -1
  284. package/lib/utils/sleep.js +1 -1
  285. package/lib/utils/template-replacer.js +1 -1
  286. package/lib/utils/update-notice.js +1 -1
  287. package/lib/utils/version.js +1 -1
  288. package/lib/utils/with-active-cookie.js +1 -1
  289. package/lib/utils/write-cli-side-channel.js +1 -1
  290. package/package.json +1 -1
  291. package/skills/rabetbase/SKILL.md +1 -1
  292. package/skills/rabetbase/references/rabetbase-page-react-detail.md +1 -1
  293. package/skills/rabetbase.manifest.json +3 -3
@@ -1 +1 @@
1
- (function(_0x5a309d,_0x575e98){const _0x43bdf1=a290_0x73f7,_0x2ef44d=_0x5a309d();while(!![]){try{const _0x1ecde9=-parseInt(_0x43bdf1(0x166))/0x1*(parseInt(_0x43bdf1(0x176))/0x2)+-parseInt(_0x43bdf1(0x15c))/0x3+-parseInt(_0x43bdf1(0x165))/0x4*(-parseInt(_0x43bdf1(0x177))/0x5)+-parseInt(_0x43bdf1(0x178))/0x6*(parseInt(_0x43bdf1(0x162))/0x7)+parseInt(_0x43bdf1(0x164))/0x8*(parseInt(_0x43bdf1(0x17b))/0x9)+-parseInt(_0x43bdf1(0x16c))/0xa*(parseInt(_0x43bdf1(0x15e))/0xb)+parseInt(_0x43bdf1(0x15f))/0xc;if(_0x1ecde9===_0x575e98)break;else _0x2ef44d['push'](_0x2ef44d['shift']());}catch(_0x4cc0ec){_0x2ef44d['push'](_0x2ef44d['shift']());}}}(a290_0x3e4e,0x8ea01));import{mkdir,readFile,writeFile}from'node:fs/promises';import{homedir}from'node:os';import{dirname,join}from'node:path';import a290_0x257341 from'semver';function a290_0x73f7(_0x533972,_0x5250f2){_0x533972=_0x533972-0x15b;const _0x3e4ef6=a290_0x3e4e();let _0x73f7=_0x3e4ef6[_0x533972];return _0x73f7;}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 _0x2b7290=a290_0x73f7,_0x415b97=process.env.RABETBASE_NO_UPDATE_NOTICE?.[_0x2b7290(0x16e)]()[_0x2b7290(0x167)]();return _0x415b97==='1'||_0x415b97===_0x2b7290(0x17a)||_0x415b97===_0x2b7290(0x169);}function a290_0x3e4e(){const _0x18277e=['object','valid','rabetbase-cli','2wKMgSI','15VLcOmJ','6467802AtQEdu','/v/','true','9uvhDTh','utf8','3166959bfUcLM',',\x20run:\x20','10392382dAfdEC','35510568gYkhXC','number','lastNotifiedAt','7yOUBij','lastNotifiedVersion','5208552EbDBLo','1141612bbxgWM','803917rPoTCS','toLowerCase','.cache','yes','checkedAt','parse','10RIUPfN','https://www.npmjs.com/package/','trim','now','\x20available,\x20current\x20','\x20update','gte'];a290_0x3e4e=function(){return _0x18277e;};return a290_0x3e4e();}function cacheRoot(){const _0x46961c=a290_0x73f7;return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),_0x46961c(0x168));}export function getUpdateNoticeCachePath(){const _0x1e0c43=a290_0x73f7;return join(cacheRoot(),_0x1e0c43(0x175),'update-check.json');}async function readUpdateNoticeCache(){const _0x5a0135=a290_0x73f7;try{const _0x2f7761=await readFile(getUpdateNoticeCachePath(),_0x5a0135(0x15b)),_0x408b43=JSON[_0x5a0135(0x16b)](_0x2f7761);if(!_0x408b43||typeof _0x408b43!==_0x5a0135(0x173))return{};return _0x408b43;}catch{return{};}}async function writeUpdateNoticeCache(_0x5be913){try{const _0x48b5d2=getUpdateNoticeCachePath();await mkdir(dirname(_0x48b5d2),{'recursive':!![]}),await writeFile(_0x48b5d2,JSON['stringify'](_0x5be913,null,0x2)+'\x0a','utf8');}catch{}}function isFreshCheck(_0x585909,_0x3ec960){const _0x129408=a290_0x73f7;return typeof _0x585909['checkedAt']===_0x129408(0x160)&&_0x3ec960-_0x585909[_0x129408(0x16a)]<UPDATE_CHECK_TTL_MS;}function isRecentlyNotified(_0x80e91,_0x7d5c5a,_0x46a34f){const _0x1ae8d0=a290_0x73f7;return _0x80e91[_0x1ae8d0(0x163)]===_0x7d5c5a&&typeof _0x80e91[_0x1ae8d0(0x161)]==='number'&&_0x46a34f-_0x80e91[_0x1ae8d0(0x161)]<UPDATE_NOTICE_TTL_MS;}export function buildNpmVersionUrl(_0x5252cd){const _0x132d1a=a290_0x73f7;return _0x132d1a(0x16d)+NPM_PACKAGE_NAME+_0x132d1a(0x179)+_0x5252cd;}export async function resolveLatestUpdateNotice(){const _0x127f23=a290_0x73f7;if(isUpdateNoticeDisabled())return null;try{const _0x527a3d=Date[_0x127f23(0x16f)](),_0x199c30=getCliVersion(),_0x3a1de7=await readUpdateNoticeCache();let _0x2c6ede=isFreshCheck(_0x3a1de7,_0x527a3d)?_0x3a1de7['latest']?.['trim']():undefined;if(!_0x2c6ede&&!isFreshCheck(_0x3a1de7,_0x527a3d)){const _0x352465=await getCliVersionPolicy();_0x2c6ede=_0x352465?.['stableVersion']?.[_0x127f23(0x16e)]()||undefined,await writeUpdateNoticeCache({..._0x3a1de7,'checkedAt':_0x527a3d,'latest':_0x2c6ede,'failed':!_0x2c6ede});}if(!_0x2c6ede||!a290_0x257341[_0x127f23(0x174)](_0x199c30)||!a290_0x257341[_0x127f23(0x174)](_0x2c6ede))return null;if(a290_0x257341[_0x127f23(0x172)](_0x199c30,_0x2c6ede))return null;if(isRecentlyNotified(_0x3a1de7,_0x2c6ede,_0x527a3d))return null;const _0x5abcf3=CLI_BIN_NAME+_0x127f23(0x171);return await writeUpdateNoticeCache({..._0x3a1de7,'checkedAt':isFreshCheck(_0x3a1de7,_0x527a3d)?_0x3a1de7[_0x127f23(0x16a)]:_0x527a3d,'latest':_0x2c6ede,'failed':![],'lastNotifiedVersion':_0x2c6ede,'lastNotifiedAt':_0x527a3d}),{'command':_0x5abcf3,'current':_0x199c30,'latest':_0x2c6ede,'url':buildNpmVersionUrl(_0x2c6ede),'message':CLI_BIN_NAME+'\x20'+_0x2c6ede+_0x127f23(0x170)+_0x199c30+_0x127f23(0x15d)+_0x5abcf3};}catch{return null;}}
1
+ (function(_0x1a1199,_0x224434){const _0x4de649=a290_0x5b44,_0x257526=_0x1a1199();while(!![]){try{const _0x5d6f7b=-parseInt(_0x4de649(0xc6))/0x1+parseInt(_0x4de649(0xbe))/0x2+-parseInt(_0x4de649(0xa9))/0x3+parseInt(_0x4de649(0xc0))/0x4+parseInt(_0x4de649(0xb1))/0x5*(-parseInt(_0x4de649(0xaa))/0x6)+-parseInt(_0x4de649(0xb5))/0x7+parseInt(_0x4de649(0xb0))/0x8*(parseInt(_0x4de649(0xb9))/0x9);if(_0x5d6f7b===_0x224434)break;else _0x257526['push'](_0x257526['shift']());}catch(_0x18a6a6){_0x257526['push'](_0x257526['shift']());}}}(a290_0x4a3c,0xb2482));function a290_0x5b44(_0x5f6f28,_0xc3894e){_0x5f6f28=_0x5f6f28-0xa9;const _0x4a3c2d=a290_0x4a3c();let _0x5b441b=_0x4a3c2d[_0x5f6f28];return _0x5b441b;}import{mkdir,readFile,writeFile}from'node:fs/promises';import{homedir}from'node:os';import{dirname,join}from'node:path';import a290_0x32c7b1 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 _0x3c63e8=a290_0x5b44,_0x390e30=process.env.RABETBASE_NO_UPDATE_NOTICE?.[_0x3c63e8(0xc5)]()[_0x3c63e8(0xb3)]();return _0x390e30==='1'||_0x390e30===_0x3c63e8(0xae)||_0x390e30===_0x3c63e8(0xb2);}function cacheRoot(){const _0x34c6a6=a290_0x5b44;return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),_0x34c6a6(0xba));}export function getUpdateNoticeCachePath(){const _0x4a7dc7=a290_0x5b44;return join(cacheRoot(),_0x4a7dc7(0xbb),_0x4a7dc7(0xbc));}async function readUpdateNoticeCache(){const _0x4f319f=a290_0x5b44;try{const _0x464c70=await readFile(getUpdateNoticeCachePath(),_0x4f319f(0xc1)),_0x88a3f5=JSON['parse'](_0x464c70);if(!_0x88a3f5||typeof _0x88a3f5!==_0x4f319f(0xb4))return{};return _0x88a3f5;}catch{return{};}}async function writeUpdateNoticeCache(_0x402f92){const _0x54e14c=a290_0x5b44;try{const _0x3418b7=getUpdateNoticeCachePath();await mkdir(dirname(_0x3418b7),{'recursive':!![]}),await writeFile(_0x3418b7,JSON[_0x54e14c(0xc9)](_0x402f92,null,0x2)+'\x0a',_0x54e14c(0xc1));}catch{}}function isFreshCheck(_0xf9f623,_0x242a9f){const _0x34fed1=a290_0x5b44;return typeof _0xf9f623[_0x34fed1(0xc3)]===_0x34fed1(0xc7)&&_0x242a9f-_0xf9f623[_0x34fed1(0xc3)]<UPDATE_CHECK_TTL_MS;}function a290_0x4a3c(){const _0x5bd73f=['6awanBx','https://www.npmjs.com/package/',',\x20run:\x20','gte','true','\x20update','130472TmoAqt','2292965aOCsil','yes','toLowerCase','object','1602923JfsySB','now','\x20available,\x20current\x20','lastNotifiedVersion','1008ATURrg','.cache','rabetbase-cli','update-check.json','latest','1657578UlEtFZ','lastNotifiedAt','361012xignLQ','utf8','stableVersion','checkedAt','/v/','trim','1256936zIaLJR','number','valid','stringify','212670EfjFBf'];a290_0x4a3c=function(){return _0x5bd73f;};return a290_0x4a3c();}function isRecentlyNotified(_0x5e3e6f,_0x3660d4,_0x1fc0c5){const _0x1c5646=a290_0x5b44;return _0x5e3e6f[_0x1c5646(0xb8)]===_0x3660d4&&typeof _0x5e3e6f['lastNotifiedAt']===_0x1c5646(0xc7)&&_0x1fc0c5-_0x5e3e6f[_0x1c5646(0xbf)]<UPDATE_NOTICE_TTL_MS;}export function buildNpmVersionUrl(_0x4ef402){const _0x2052e3=a290_0x5b44;return _0x2052e3(0xab)+NPM_PACKAGE_NAME+_0x2052e3(0xc4)+_0x4ef402;}export async function resolveLatestUpdateNotice(){const _0x5eef5e=a290_0x5b44;if(isUpdateNoticeDisabled())return null;try{const _0x2d5a05=Date[_0x5eef5e(0xb6)](),_0x247a05=getCliVersion(),_0x5995a5=await readUpdateNoticeCache();let _0x572f1c=isFreshCheck(_0x5995a5,_0x2d5a05)?_0x5995a5[_0x5eef5e(0xbd)]?.['trim']():undefined;if(!_0x572f1c&&!isFreshCheck(_0x5995a5,_0x2d5a05)){const _0x238177=await getCliVersionPolicy();_0x572f1c=_0x238177?.[_0x5eef5e(0xc2)]?.[_0x5eef5e(0xc5)]()||undefined,await writeUpdateNoticeCache({..._0x5995a5,'checkedAt':_0x2d5a05,'latest':_0x572f1c,'failed':!_0x572f1c});}if(!_0x572f1c||!a290_0x32c7b1[_0x5eef5e(0xc8)](_0x247a05)||!a290_0x32c7b1['valid'](_0x572f1c))return null;if(a290_0x32c7b1[_0x5eef5e(0xad)](_0x247a05,_0x572f1c))return null;if(isRecentlyNotified(_0x5995a5,_0x572f1c,_0x2d5a05))return null;const _0xcb3c19=CLI_BIN_NAME+_0x5eef5e(0xaf);return await writeUpdateNoticeCache({..._0x5995a5,'checkedAt':isFreshCheck(_0x5995a5,_0x2d5a05)?_0x5995a5[_0x5eef5e(0xc3)]:_0x2d5a05,'latest':_0x572f1c,'failed':![],'lastNotifiedVersion':_0x572f1c,'lastNotifiedAt':_0x2d5a05}),{'command':_0xcb3c19,'current':_0x247a05,'latest':_0x572f1c,'url':buildNpmVersionUrl(_0x572f1c),'message':CLI_BIN_NAME+'\x20'+_0x572f1c+_0x5eef5e(0xb7)+_0x247a05+_0x5eef5e(0xac)+_0xcb3c19};}catch{return null;}}
@@ -1 +1 @@
1
- (function(_0xdd1277,_0x3c1ce7){var _0x357625=a291_0x49ec,_0x5c47b9=_0xdd1277();while(!![]){try{var _0x12ae4b=-parseInt(_0x357625(0x1c0))/0x1*(-parseInt(_0x357625(0x1bc))/0x2)+-parseInt(_0x357625(0x1b9))/0x3*(-parseInt(_0x357625(0x1bd))/0x4)+parseInt(_0x357625(0x1bb))/0x5+parseInt(_0x357625(0x1b6))/0x6+-parseInt(_0x357625(0x1ba))/0x7*(-parseInt(_0x357625(0x1b7))/0x8)+parseInt(_0x357625(0x1b5))/0x9*(-parseInt(_0x357625(0x1bf))/0xa)+-parseInt(_0x357625(0x1be))/0xb*(parseInt(_0x357625(0x1b8))/0xc);if(_0x12ae4b===_0x3c1ce7)break;else _0x5c47b9['push'](_0x5c47b9['shift']());}catch(_0x2fc75f){_0x5c47b9['push'](_0x5c47b9['shift']());}}}(a291_0x19e7,0x648f9));function a291_0x49ec(_0x2bfb02,_0xc35690){_0x2bfb02=_0x2bfb02-0x1b5;var _0x19e760=a291_0x19e7();var _0x49ecdc=_0x19e760[_0x2bfb02];return _0x49ecdc;}import{VERSION}from'../generated/build-info.js';export function getCliVersion(){return VERSION;}function a291_0x19e7(){var _0x3cdea3=['2999304ecQGfL','3PBAuGM','539JQwOGo','3686775yTSDDi','318748DMoubX','1408724QZFFPY','88FLxOyj','20YZRpzE','1jtLGfs','102429qsBUkm','2732412CXpDSa','75832gYFpHr'];a291_0x19e7=function(){return _0x3cdea3;};return a291_0x19e7();}
1
+ function a291_0x31d8(_0x381315,_0x543927){_0x381315=_0x381315-0xb0;var _0x3ea625=a291_0x3ea6();var _0x31d8f1=_0x3ea625[_0x381315];return _0x31d8f1;}(function(_0x1d28cb,_0x4e7985){var _0x5c1f98=a291_0x31d8,_0x4727a6=_0x1d28cb();while(!![]){try{var _0x48263d=-parseInt(_0x5c1f98(0xb1))/0x1+parseInt(_0x5c1f98(0xb9))/0x2*(parseInt(_0x5c1f98(0xb8))/0x3)+parseInt(_0x5c1f98(0xb4))/0x4*(parseInt(_0x5c1f98(0xb2))/0x5)+-parseInt(_0x5c1f98(0xb5))/0x6+parseInt(_0x5c1f98(0xba))/0x7*(-parseInt(_0x5c1f98(0xb7))/0x8)+parseInt(_0x5c1f98(0xb6))/0x9*(parseInt(_0x5c1f98(0xb3))/0xa)+parseInt(_0x5c1f98(0xb0))/0xb;if(_0x48263d===_0x4e7985)break;else _0x4727a6['push'](_0x4727a6['shift']());}catch(_0x2a931f){_0x4727a6['push'](_0x4727a6['shift']());}}}(a291_0x3ea6,0xf12bf));import{VERSION}from'../generated/build-info.js';export function getCliVersion(){return VERSION;}function a291_0x3ea6(){var _0x3c6ddb=['2912AnXdZB','15128102dvlprm','1569370XBCxNk','275buMPfl','83320GWrsgC','103832plUfBR','7756254OXSnpk','612ipFarx','14264iAWXft','9xLbUpP','814732kGqjEg'];a291_0x3ea6=function(){return _0x3c6ddb;};return a291_0x3ea6();}
@@ -1 +1 @@
1
- (function(_0x54eb22,_0x32be2b){var _0x432b49=a292_0xe69b,_0x5707b1=_0x54eb22();while(!![]){try{var _0x284614=-parseInt(_0x432b49(0x144))/0x1+-parseInt(_0x432b49(0x143))/0x2*(parseInt(_0x432b49(0x146))/0x3)+-parseInt(_0x432b49(0x141))/0x4+-parseInt(_0x432b49(0x145))/0x5+parseInt(_0x432b49(0x13e))/0x6+-parseInt(_0x432b49(0x140))/0x7*(parseInt(_0x432b49(0x147))/0x8)+-parseInt(_0x432b49(0x142))/0x9*(-parseInt(_0x432b49(0x13f))/0xa);if(_0x284614===_0x32be2b)break;else _0x5707b1['push'](_0x5707b1['shift']());}catch(_0x5492af){_0x5707b1['push'](_0x5707b1['shift']());}}}(a292_0xbb08,0xc2809));function a292_0xbb08(){var _0x2bde10=['2pgFUsq','381190dXsBpG','7204980UzdbMB','1202037ONXVZx','8ZbsKDh','9111288dQUWbM','396860Uqnyzm','419699BDGzfQ','105940MERmBG','360UjvfPL'];a292_0xbb08=function(){return _0x2bde10;};return a292_0xbb08();}function a292_0xe69b(_0x26c255,_0x40e025){_0x26c255=_0x26c255-0x13e;var _0xbb08e9=a292_0xbb08();var _0xe69bb1=_0xbb08e9[_0x26c255];return _0xe69bb1;}import{setActiveCookie,clearActiveCookie}from'../core/api-client.js';export async function withActiveCookie(_0x444e34,_0x4bfa64){setActiveCookie(_0x444e34);try{return await _0x4bfa64();}finally{clearActiveCookie();}}
1
+ (function(_0x2b829e,_0x1f9f38){var _0x3c4fbd=a292_0x3bfb,_0x34e844=_0x2b829e();while(!![]){try{var _0x276338=-parseInt(_0x3c4fbd(0xe6))/0x1+-parseInt(_0x3c4fbd(0xe7))/0x2*(-parseInt(_0x3c4fbd(0xe1))/0x3)+-parseInt(_0x3c4fbd(0xe2))/0x4*(parseInt(_0x3c4fbd(0xe3))/0x5)+-parseInt(_0x3c4fbd(0xe9))/0x6+parseInt(_0x3c4fbd(0xe0))/0x7*(parseInt(_0x3c4fbd(0xe5))/0x8)+-parseInt(_0x3c4fbd(0xe4))/0x9*(-parseInt(_0x3c4fbd(0xe8))/0xa)+parseInt(_0x3c4fbd(0xdf))/0xb;if(_0x276338===_0x1f9f38)break;else _0x34e844['push'](_0x34e844['shift']());}catch(_0x3ef826){_0x34e844['push'](_0x34e844['shift']());}}}(a292_0x573d,0x4c2e1));import{setActiveCookie,clearActiveCookie}from'../core/api-client.js';export async function withActiveCookie(_0x4745d0,_0x4c1d9b){setActiveCookie(_0x4745d0);try{return await _0x4c1d9b();}finally{clearActiveCookie();}}function a292_0x3bfb(_0x2c7583,_0x573fb9){_0x2c7583=_0x2c7583-0xdf;var _0x573d35=a292_0x573d();var _0x3bfb3e=_0x573d35[_0x2c7583];return _0x3bfb3e;}function a292_0x573d(){var _0x216e04=['4JTCoMG','1505320fbTEED','5715YsykkS','9752kVoHJD','339619NFBOdU','71490IJgvoZ','1010VTbszk','1234740yYoEyz','10201455FZPTXj','343bwqTbr','9CPcBud'];a292_0x573d=function(){return _0x216e04;};return a292_0x573d();}
@@ -1 +1 @@
1
- function a293_0x2181(_0xe283e2,_0x386e12){_0xe283e2=_0xe283e2-0x1cd;var _0x179a44=a293_0x179a();var _0x218144=_0x179a44[_0xe283e2];return _0x218144;}function a293_0x179a(){var _0x5f33f9=['152027UPWtQp','2ALnHWf','write','5635449almJFX','3906ddbBqw','stderr','3539870nolXlw','932224AwxcgY','1090716CXWGAU','8504WuBcri','2629818YkTRHR'];a293_0x179a=function(){return _0x5f33f9;};return a293_0x179a();}(function(_0x57b94b,_0x2ef693){var _0x9a2462=a293_0x2181,_0x4670ed=_0x57b94b();while(!![]){try{var _0x3a10f6=parseInt(_0x9a2462(0x1d5))/0x1*(parseInt(_0x9a2462(0x1d6))/0x2)+parseInt(_0x9a2462(0x1d2))/0x3+-parseInt(_0x9a2462(0x1d1))/0x4+-parseInt(_0x9a2462(0x1d0))/0x5+-parseInt(_0x9a2462(0x1d4))/0x6+parseInt(_0x9a2462(0x1ce))/0x7*(parseInt(_0x9a2462(0x1d3))/0x8)+parseInt(_0x9a2462(0x1cd))/0x9;if(_0x3a10f6===_0x2ef693)break;else _0x4670ed['push'](_0x4670ed['shift']());}catch(_0x583b8d){_0x4670ed['push'](_0x4670ed['shift']());}}}(a293_0x179a,0x56cfd));export function writeCliSideChannelLine(_0x4e4db7){var _0x44cc0b=a293_0x2181;process[_0x44cc0b(0x1cf)][_0x44cc0b(0x1d7)](_0x4e4db7+'\x0a');}
1
+ (function(_0x2b8a2a,_0x35a378){var _0x315099=a293_0x5d2d,_0x255da4=_0x2b8a2a();while(!![]){try{var _0x112e6d=-parseInt(_0x315099(0x141))/0x1+-parseInt(_0x315099(0x13e))/0x2*(-parseInt(_0x315099(0x138))/0x3)+parseInt(_0x315099(0x139))/0x4*(-parseInt(_0x315099(0x13d))/0x5)+-parseInt(_0x315099(0x140))/0x6+-parseInt(_0x315099(0x13a))/0x7*(parseInt(_0x315099(0x144))/0x8)+parseInt(_0x315099(0x13f))/0x9*(-parseInt(_0x315099(0x145))/0xa)+-parseInt(_0x315099(0x13c))/0xb*(-parseInt(_0x315099(0x143))/0xc);if(_0x112e6d===_0x35a378)break;else _0x255da4['push'](_0x255da4['shift']());}catch(_0x145b99){_0x255da4['push'](_0x255da4['shift']());}}}(a293_0x4846,0xc7c96));function a293_0x4846(){var _0x320a16=['135uJRpGs','3871218IOocYC','1287463EzBrgi','stderr','1195608iCvIdP','8696816BIKmFt','769430TgZXTJ','1119KATbIj','328wgeXpo','7zOuzqs','write','649jTiwsf','90675xeaKdi','3222SyzuUy'];a293_0x4846=function(){return _0x320a16;};return a293_0x4846();}function a293_0x5d2d(_0x5e6df4,_0x45b443){_0x5e6df4=_0x5e6df4-0x138;var _0x484675=a293_0x4846();var _0x5d2d65=_0x484675[_0x5e6df4];return _0x5d2d65;}export function writeCliSideChannelLine(_0x1e882d){var _0x7d3fda=a293_0x5d2d;process[_0x7d3fda(0x142)][_0x7d3fda(0x13b)](_0x1e882d+'\x0a');}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lovrabet/rabetbase-cli",
3
- "version": "2.4.1",
3
+ "version": "2.4.2",
4
4
  "description": "Developer CLI for Lovrabet apps, datasets, pages, SQL, BFF, 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.1
3
+ version: 2.4.2
4
4
  description: "Lovrabet 开发工作流 CLI — 通过 rabetbase 命令管理数据集、数据库连接(dblink)、智能列表页(Smart List Page)、React 自定义页面(JSX 页面)、SQL 查询、BFF 脚本、通知配置、菜单事实读取与同步、应用文件、OCR 识别、代码生成,以及平台问题上报。触发词:数据集、数据表、dataset relation-audit、dataset delete、dataset restore、废弃数据集、恢复数据集、dataset rename、dataset field-update、dataset extend-update、dataset business-group-update、businessGroup、字段对象更新、doType、options、智能列表页、Smart List Page、React 自定义页面、JSX 页面、page react-create、page react-list、page react-detail、page react-update、page react-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 test、db tables、db diff、db diff --table、db analyze-batch-plan、db analyze-start、analyze-cancel、analyze-status、traceId、自定义 SQL、sql.execute、bff.execute、BF 消息通知、BFF 消息通知、Backend Function 消息通知、notification config-list、EMAIL configCode、通知配置、notification.send、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 external-link-create、menu external-link-update、menu rename、菜单改名、外链菜单创建、外链 URL 更新、菜单异常审计、菜单手动删除清单、menu sync、menu asset-update、菜单资源更新、menu move、菜单移动、角色、用户组、权限、role、permit、role list、role create、role user-add、role user-remove、user-resolve、销售组、加入开发者、page-set、page-get、row-roles、SELF、ALL、行级权限、role-menus-set、role-apis-set、菜单权限、API 权限、DEV、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:
@@ -20,7 +20,7 @@ rabetbase page react-detail --id <pageId> --format compress
20
20
  地址说明(按当前环境):
21
21
 
22
22
  - `pageUrl`:查看最新保存内容的页面地址,包含尚未发布的修改
23
- - `runtimePageUrl`:查看已发布内容的页面地址,仅在有已发布内容时返回;格式为 `https://<appCode>.lovrabet.com/<pageCode>`(线上)或 `https://<appCode>.daily.lovrabet.com/<pageCode>`(日常)
23
+ - `runtimePageUrl`:查看已发布内容的页面地址,仅在有已发布内容时返回;格式为 `https://<appCode>.app.lovrabet.com/<pageCode>`(线上)或 `https://<appCode>.daily.lovrabet.com/<pageCode>`(日常)
24
24
  - `editPageUrl`:打开页面编辑器的地址,可继续修改页面;格式为 `https://<env>.lovrabet.com/web-app/app/<appCode>/ide/<pageId>`(线上为 `app.lovrabet.com`,日常为 `daily.lovrabet.com`)
25
25
 
26
26
  `data.codeContent` 是当前完整页面文件,可在本地完成新增、修改或删除后,作为 `page react-update --page-content <json>` 的完整页面内容提交。
@@ -2,8 +2,8 @@
2
2
  "schemaVersion": 1,
3
3
  "name": "rabetbase",
4
4
  "packageName": "@lovrabet/rabetbase-cli",
5
- "packageVersion": "2.4.1",
6
- "skillVersion": "2.4.1",
5
+ "packageVersion": "2.4.2",
6
+ "skillVersion": "2.4.2",
7
7
  "files": [
8
8
  "SKILL.md",
9
9
  "guides/backend-function.md",
@@ -133,5 +133,5 @@
133
133
  "references/rabetbase-user-account.md",
134
134
  "references/rabetbase-workspace.md"
135
135
  ],
136
- "digest": "550172d1a81cefd85c771f507d361d1268b9216e113e9443e0f38f3a147df3f2"
136
+ "digest": "36ccf9516fdbfaf9666ef97811e6bfb7b89208dd395bfdbdbfb02593901c89c4"
137
137
  }