@lovrabet/rabetbase-cli 2.4.2 → 2.4.3-beta.1

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 (292) 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 +8 -4
  291. package/skills/rabetbase/SKILL.md +1 -1
  292. package/skills/rabetbase.manifest.json +3 -3
@@ -1 +1 @@
1
- const a289_0x55a695=a289_0x413b;(function(_0x55879e,_0x11acbc){const _0x13b2a0=a289_0x413b,_0x457363=_0x55879e();while(!![]){try{const _0x1376d3=parseInt(_0x13b2a0(0xbe))/0x1+-parseInt(_0x13b2a0(0xc4))/0x2*(-parseInt(_0x13b2a0(0xf4))/0x3)+parseInt(_0x13b2a0(0xc1))/0x4+parseInt(_0x13b2a0(0xd1))/0x5*(-parseInt(_0x13b2a0(0xb0))/0x6)+parseInt(_0x13b2a0(0xe9))/0x7+-parseInt(_0x13b2a0(0xc8))/0x8+-parseInt(_0x13b2a0(0xdf))/0x9;if(_0x1376d3===_0x11acbc)break;else _0x457363['push'](_0x457363['shift']());}catch(_0x56bdbd){_0x457363['push'](_0x457363['shift']());}}}(a289_0x24d1,0xc4f07));import a289_0x2028e5 from'node:fs';import a289_0x4a0b5a from'node:path';import{logger}from'../utils/logger.js';import{getCliVersion}from'../utils/version.js';const CLI_VERSION=getCliVersion();function a289_0x24d1(){const _0x168f17=['copyFile','.js','pop','190GDNcnV','.tsx','template','getSeconds','.tpl','name','message','\x20},','datasetCode','join','writeFile','.scss','.md','isFile','16093368sqaWqo','push','extname','includes','开始处理模板内容替换','getHours','模板内容替换失败','getMinutes','slice','endsWith','1097292nVZARe','info','isDirectory','map','processDirectory','LOVRABET','replace','processFile','charAt','processTemplate','YourModel','2559bUWpGG','readFile','toISOString','toComponentName','utf8','78162bNhjRC','getDate','模板内容替换完成','tableName:\x20\x22','alias','pad','now','alias:\x20\x22','split','getMonth','tableName','replaceContent','.css','toLowerCase','962667lfJeqw','api','mkdir','4783888HDUyqH','default','error','3418FLAkli','toDisplayTitle','promises','padStart','5466648wruSyh','getFullYear','replaceApiContent','formatLocalTimestamp','readdir','.json'];a289_0x24d1=function(){return _0x168f17;};return a289_0x24d1();}function a289_0x413b(_0x1033d8,_0xec8b2c){_0x1033d8=_0x1033d8-0xad;const _0x24d18f=a289_0x24d1();let _0x413b6d=_0x24d18f[_0x1033d8];return _0x413b6d;}export class TemplateReplacer{static['pad'](_0x50e554){const _0x2d6b0b=a289_0x413b;return String(_0x50e554)[_0x2d6b0b(0xc7)](0x2,'0');}static[a289_0x55a695(0xcb)](_0x2f431e){const _0x2083db=a289_0x55a695,_0x3c70f2=_0x2f431e[_0x2083db(0xc9)](),_0x1145e9=this[_0x2083db(0xb5)](_0x2f431e[_0x2083db(0xb9)]()+0x1),_0x419550=this[_0x2083db(0xb5)](_0x2f431e[_0x2083db(0xb1)]()),_0x96236=this['pad'](_0x2f431e[_0x2083db(0xe4)]()),_0x134b97=this['pad'](_0x2f431e[_0x2083db(0xe6)]()),_0x2353b3=this[_0x2083db(0xb5)](_0x2f431e[_0x2083db(0xd4)]());return{'createdAt':_0x3c70f2+'-'+_0x1145e9+'-'+_0x419550+'\x20'+_0x96236+':'+_0x134b97+':'+_0x2353b3,'createdDate':_0x3c70f2+'-'+_0x1145e9+'-'+_0x419550,'createdTime':_0x96236+':'+_0x134b97+':'+_0x2353b3};}static[a289_0x55a695(0xae)](_0x623479){const _0x4d2f5f=a289_0x55a695,_0x5a0b0d=_0x623479[_0x4d2f5f(0xb8)]('/')[_0x4d2f5f(0xd0)]()||_0x623479;return _0x5a0b0d[_0x4d2f5f(0xb8)]('-')[_0x4d2f5f(0xec)](_0x583b50=>_0x583b50[_0x4d2f5f(0xf1)](0x0)['toUpperCase']()+_0x583b50[_0x4d2f5f(0xe7)](0x1)[_0x4d2f5f(0xbd)]())[_0x4d2f5f(0xda)]('');}static[a289_0x55a695(0xc5)](_0x5d8d52){const _0x1a4d73=a289_0x55a695,_0x5694c6=_0x5d8d52[_0x1a4d73(0xb8)]('/')[_0x1a4d73(0xd0)]()||_0x5d8d52;return _0x5694c6[_0x1a4d73(0xb8)]('-')[_0x1a4d73(0xec)](_0xa73a90=>_0xa73a90['charAt'](0x0)['toUpperCase']()+_0xa73a90[_0x1a4d73(0xe7)](0x1)[_0x1a4d73(0xbd)]())['join']('\x20');}static['replaceContent'](_0x52b6ad,_0x2da238,_0x13d644){const _0x5ab9e2=a289_0x55a695,_0x4cfd0a=this['toComponentName'](_0x2da238),_0x5b69c6=this['toDisplayTitle'](_0x2da238),{createdAt:_0x1b8987,createdDate:_0x4aa478,createdTime:_0x5bad2b}=this['formatLocalTimestamp'](new Date());let _0x18fb60=_0x52b6ad[_0x5ab9e2(0xef)](/\{CliVersion\}/g,CLI_VERSION)[_0x5ab9e2(0xef)](/\{ComponentName\}/g,_0x4cfd0a)[_0x5ab9e2(0xef)](/\{DisplayTitle\}/g,_0x5b69c6)['replace'](/\{PageName\}/g,_0x2da238)[_0x5ab9e2(0xef)](/\{TemplateName\}/g,_0x13d644)['replace'](/\{CreatedAt\}/g,_0x1b8987)[_0x5ab9e2(0xef)](/\{CreatedDate\}/g,_0x4aa478)[_0x5ab9e2(0xef)](/\{CreatedTime\}/g,_0x5bad2b);return _0x18fb60;}static[a289_0x55a695(0xca)](_0xab4bd2,_0x57b477,_0x410387,_0x3a8bc0,_0x379751,_0x50d9c2,_0x186d4a,_0x1fd159){const _0x45adec=a289_0x55a695,_0x33a737=new Date(),_0x2f1539=_0x33a737[_0x45adec(0xad)](),_0x42ac91=_0x410387[_0x45adec(0xec)](_0x31dfd2=>{const _0x31fa3b=_0x45adec,_0x42d193=['datasetCode:\x20\x22'+_0x31dfd2[_0x31fa3b(0xd9)]+'\x22',_0x31fa3b(0xb3)+_0x31dfd2[_0x31fa3b(0xba)]+'\x22','name:\x20\x22'+_0x31dfd2[_0x31fa3b(0xd6)]+'\x22'];return _0x31dfd2[_0x31fa3b(0xb4)]&&_0x42d193[_0x31fa3b(0xe0)](_0x31fa3b(0xb7)+_0x31dfd2[_0x31fa3b(0xb4)]+'\x22'),'\x0a\x20\x20\x20\x20{\x20'+_0x42d193[_0x31fa3b(0xda)](',\x20')+_0x31fa3b(0xd8);})[_0x45adec(0xda)](''),_0x2b5d52=_0x3a8bc0||_0x410387[0x0]?.['alias']||_0x45adec(0xf3);let _0x6fe0a2=_0xab4bd2[_0x45adec(0xef)](/\{AppCode\}/g,_0x57b477)['replace'](/\{ModelConfigs\}/g,_0x42ac91)[_0x45adec(0xef)](/\{ExampleModelName\}/g,_0x2b5d52)[_0x45adec(0xef)](/\{ApiFileName\}/g,_0x379751||_0x45adec(0xbf))['replace'](/\{ConfigName\}/g,_0x50d9c2||_0x45adec(0xc2))[_0x45adec(0xef)](/\{ClientConfigParam\}/g,_0x186d4a||'')['replace'](/\{VarPrefix\}/g,_0x1fd159||_0x45adec(0xee))[_0x45adec(0xef)](/\{CreatedAt\}/g,_0x2f1539);return _0x6fe0a2;}static async[a289_0x55a695(0xf2)](_0xfdb3b8,_0xc66591,_0x30dc85,_0x53de29,_0x2a0d59=!![]){const _0x3e74d0=a289_0x55a695,_0x4eb5be=Date[_0x3e74d0(0xb6)]();try{_0x2a0d59&&logger[_0x3e74d0(0xea)]('template',_0x3e74d0(0xe3),{'templatePath':_0xfdb3b8,'targetPath':_0xc66591,'pageName':_0x30dc85,'templateName':_0x53de29});await a289_0x2028e5['promises'][_0x3e74d0(0xc0)](_0xc66591,{'recursive':!![]}),await this[_0x3e74d0(0xed)](_0xfdb3b8,_0xc66591,_0x30dc85,_0x53de29);if(_0x2a0d59){const _0x98ea49=Date[_0x3e74d0(0xb6)]()-_0x4eb5be;logger['success']('template',_0x3e74d0(0xb2),_0x98ea49,{'pageName':_0x30dc85,'templateName':_0x53de29});}}catch(_0x539fab){if(_0x2a0d59){const _0x6f8e09=Date[_0x3e74d0(0xb6)]()-_0x4eb5be;logger[_0x3e74d0(0xc3)](_0x3e74d0(0xd3),_0x3e74d0(0xe5),{'templatePath':_0xfdb3b8,'targetPath':_0xc66591,'pageName':_0x30dc85,'templateName':_0x53de29,'error':_0x539fab instanceof Error?_0x539fab[_0x3e74d0(0xd7)]:String(_0x539fab),'duration':_0x6f8e09});}throw _0x539fab;}}static async[a289_0x55a695(0xed)](_0x493f6e,_0x3339cd,_0x34a85a,_0x9bc39e){const _0x16e265=a289_0x55a695,_0x4da517=await a289_0x2028e5[_0x16e265(0xc6)][_0x16e265(0xcc)](_0x493f6e,{'withFileTypes':!![]});for(const _0x1212e6 of _0x4da517){const _0x3aebb5=a289_0x4a0b5a[_0x16e265(0xda)](_0x493f6e,_0x1212e6[_0x16e265(0xd6)]);let _0xeb635a=a289_0x4a0b5a['join'](_0x3339cd,_0x1212e6[_0x16e265(0xd6)]);_0x1212e6[_0x16e265(0xd6)][_0x16e265(0xe8)]('.tpl')&&(_0xeb635a=a289_0x4a0b5a['join'](_0x3339cd,_0x1212e6[_0x16e265(0xd6)][_0x16e265(0xef)](/\.tpl$/,'')));if(_0x1212e6[_0x16e265(0xeb)]())await a289_0x2028e5[_0x16e265(0xc6)][_0x16e265(0xc0)](_0xeb635a,{'recursive':!![]}),await this[_0x16e265(0xed)](_0x3aebb5,_0xeb635a,_0x34a85a,_0x9bc39e);else _0x1212e6[_0x16e265(0xde)]()&&await this['processFile'](_0x3aebb5,_0xeb635a,_0x34a85a,_0x9bc39e);}}static async[a289_0x55a695(0xf0)](_0x2e3408,_0x428309,_0x180648,_0x4aa845){const _0x5a4618=a289_0x55a695,_0x5c8de9=a289_0x4a0b5a[_0x5a4618(0xe1)](_0x2e3408)[_0x5a4618(0xbd)]();_0x2e3408[_0x5a4618(0xe8)]('.tpl')&&(_0x428309=_0x428309[_0x5a4618(0xef)](/\.tpl$/,''));const _0x32e17d=[_0x5a4618(0xd2),'.ts','.jsx',_0x5a4618(0xcf),_0x5a4618(0xcd),_0x5a4618(0xdd),_0x5a4618(0xbc),_0x5a4618(0xdc),_0x5a4618(0xd5)];if(_0x32e17d[_0x5a4618(0xe2)](_0x5c8de9)||_0x2e3408[_0x5a4618(0xe8)](_0x5a4618(0xd5))){const _0x3d760a=await a289_0x2028e5[_0x5a4618(0xc6)][_0x5a4618(0xf5)](_0x2e3408,_0x5a4618(0xaf)),_0x1d8890=this[_0x5a4618(0xbb)](_0x3d760a,_0x180648,_0x4aa845);await a289_0x2028e5[_0x5a4618(0xc6)][_0x5a4618(0xdb)](_0x428309,_0x1d8890,_0x5a4618(0xaf));}else await a289_0x2028e5['promises'][_0x5a4618(0xce)](_0x2e3408,_0x428309);}}
1
+ const a289_0x50b144=a289_0x49c6;(function(_0x35f82b,_0x5c466f){const _0x584d26=a289_0x49c6,_0x1c3e66=_0x35f82b();while(!![]){try{const _0x2446e6=-parseInt(_0x584d26(0x14e))/0x1+parseInt(_0x584d26(0x157))/0x2+-parseInt(_0x584d26(0x155))/0x3*(parseInt(_0x584d26(0x14f))/0x4)+parseInt(_0x584d26(0x14a))/0x5+parseInt(_0x584d26(0x178))/0x6*(-parseInt(_0x584d26(0x145))/0x7)+parseInt(_0x584d26(0x144))/0x8+-parseInt(_0x584d26(0x171))/0x9*(-parseInt(_0x584d26(0x16b))/0xa);if(_0x2446e6===_0x5c466f)break;else _0x1c3e66['push'](_0x1c3e66['shift']());}catch(_0x2ec370){_0x1c3e66['push'](_0x1c3e66['shift']());}}}(a289_0x4384,0x7074e));import a289_0x639c0b from'node:fs';import a289_0x268e29 from'node:path';function a289_0x49c6(_0x2a7add,_0x114c9a){_0x2a7add=_0x2a7add-0x13d;const _0x438401=a289_0x4384();let _0x49c636=_0x438401[_0x2a7add];return _0x49c636;}import{logger}from'../utils/logger.js';import{getCliVersion}from'../utils/version.js';const CLI_VERSION=getCliVersion();export class TemplateReplacer{static['pad'](_0x5d9142){const _0x2babcf=a289_0x49c6;return String(_0x5d9142)[_0x2babcf(0x174)](0x2,'0');}static[a289_0x50b144(0x172)](_0x6974b2){const _0x44f1c6=a289_0x50b144,_0x1c2197=_0x6974b2[_0x44f1c6(0x143)](),_0x436549=this[_0x44f1c6(0x17d)](_0x6974b2[_0x44f1c6(0x149)]()+0x1),_0x4a49d1=this[_0x44f1c6(0x17d)](_0x6974b2[_0x44f1c6(0x16d)]()),_0xbecdad=this[_0x44f1c6(0x17d)](_0x6974b2['getHours']()),_0x47de73=this['pad'](_0x6974b2[_0x44f1c6(0x151)]()),_0x4b81b0=this[_0x44f1c6(0x17d)](_0x6974b2['getSeconds']());return{'createdAt':_0x1c2197+'-'+_0x436549+'-'+_0x4a49d1+'\x20'+_0xbecdad+':'+_0x47de73+':'+_0x4b81b0,'createdDate':_0x1c2197+'-'+_0x436549+'-'+_0x4a49d1,'createdTime':_0xbecdad+':'+_0x47de73+':'+_0x4b81b0};}static[a289_0x50b144(0x160)](_0x523534){const _0xe45648=a289_0x50b144,_0x309d32=_0x523534['split']('/')[_0xe45648(0x159)]()||_0x523534;return _0x309d32[_0xe45648(0x165)]('-')[_0xe45648(0x141)](_0x45597e=>_0x45597e[_0xe45648(0x16a)](0x0)[_0xe45648(0x17b)]()+_0x45597e[_0xe45648(0x15b)](0x1)[_0xe45648(0x175)]())[_0xe45648(0x169)]('');}static[a289_0x50b144(0x176)](_0xa8035f){const _0x485e49=a289_0x50b144,_0x49f4ff=_0xa8035f[_0x485e49(0x165)]('/')[_0x485e49(0x159)]()||_0xa8035f;return _0x49f4ff[_0x485e49(0x165)]('-')['map'](_0x21cfb0=>_0x21cfb0[_0x485e49(0x16a)](0x0)[_0x485e49(0x17b)]()+_0x21cfb0[_0x485e49(0x15b)](0x1)['toLowerCase']())[_0x485e49(0x169)]('\x20');}static[a289_0x50b144(0x182)](_0xedaf81,_0x4cc150,_0x56115d){const _0x3a7673=a289_0x50b144,_0x379ecb=this[_0x3a7673(0x160)](_0x4cc150),_0x34a68e=this[_0x3a7673(0x176)](_0x4cc150),{createdAt:_0x49f719,createdDate:_0x210c2b,createdTime:_0x1789e1}=this[_0x3a7673(0x172)](new Date());let _0x1180f0=_0xedaf81[_0x3a7673(0x140)](/\{CliVersion\}/g,CLI_VERSION)[_0x3a7673(0x140)](/\{ComponentName\}/g,_0x379ecb)[_0x3a7673(0x140)](/\{DisplayTitle\}/g,_0x34a68e)[_0x3a7673(0x140)](/\{PageName\}/g,_0x4cc150)[_0x3a7673(0x140)](/\{TemplateName\}/g,_0x56115d)[_0x3a7673(0x140)](/\{CreatedAt\}/g,_0x49f719)[_0x3a7673(0x140)](/\{CreatedDate\}/g,_0x210c2b)[_0x3a7673(0x140)](/\{CreatedTime\}/g,_0x1789e1);return _0x1180f0;}static['replaceApiContent'](_0x23a784,_0x516ca6,_0x135944,_0xbdcf0a,_0x131ac9,_0x590434,_0x194656,_0x4db443){const _0x11a016=a289_0x50b144,_0x172910=new Date(),_0x4b938e=_0x172910[_0x11a016(0x154)](),_0x33c558=_0x135944['map'](_0x129d85=>{const _0x4e8e2e=_0x11a016,_0x3232cc=[_0x4e8e2e(0x173)+_0x129d85[_0x4e8e2e(0x147)]+'\x22',_0x4e8e2e(0x15f)+_0x129d85[_0x4e8e2e(0x16e)]+'\x22',_0x4e8e2e(0x187)+_0x129d85[_0x4e8e2e(0x142)]+'\x22'];return _0x129d85[_0x4e8e2e(0x150)]&&_0x3232cc[_0x4e8e2e(0x153)](_0x4e8e2e(0x13e)+_0x129d85[_0x4e8e2e(0x150)]+'\x22'),'\x0a\x20\x20\x20\x20{\x20'+_0x3232cc[_0x4e8e2e(0x169)](',\x20')+_0x4e8e2e(0x180);})[_0x11a016(0x169)](''),_0x23590b=_0xbdcf0a||_0x135944[0x0]?.[_0x11a016(0x150)]||_0x11a016(0x148);let _0x5f2d94=_0x23a784[_0x11a016(0x140)](/\{AppCode\}/g,_0x516ca6)['replace'](/\{ModelConfigs\}/g,_0x33c558)[_0x11a016(0x140)](/\{ExampleModelName\}/g,_0x23590b)[_0x11a016(0x140)](/\{ApiFileName\}/g,_0x131ac9||_0x11a016(0x168))[_0x11a016(0x140)](/\{ConfigName\}/g,_0x590434||_0x11a016(0x184))[_0x11a016(0x140)](/\{ClientConfigParam\}/g,_0x194656||'')['replace'](/\{VarPrefix\}/g,_0x4db443||_0x11a016(0x15d))[_0x11a016(0x140)](/\{CreatedAt\}/g,_0x4b938e);return _0x5f2d94;}static async[a289_0x50b144(0x163)](_0x2c9b0b,_0x400ff9,_0x10184d,_0x318137,_0x25c2f1=!![]){const _0x5a07fc=a289_0x50b144,_0x29b52e=Date[_0x5a07fc(0x156)]();try{_0x25c2f1&&logger['info']('template',_0x5a07fc(0x162),{'templatePath':_0x2c9b0b,'targetPath':_0x400ff9,'pageName':_0x10184d,'templateName':_0x318137});await a289_0x639c0b[_0x5a07fc(0x17a)][_0x5a07fc(0x15c)](_0x400ff9,{'recursive':!![]}),await this[_0x5a07fc(0x14d)](_0x2c9b0b,_0x400ff9,_0x10184d,_0x318137);if(_0x25c2f1){const _0x241011=Date[_0x5a07fc(0x156)]()-_0x29b52e;logger[_0x5a07fc(0x152)]('template',_0x5a07fc(0x16f),_0x241011,{'pageName':_0x10184d,'templateName':_0x318137});}}catch(_0x404e4d){if(_0x25c2f1){const _0x49c060=Date[_0x5a07fc(0x156)]()-_0x29b52e;logger[_0x5a07fc(0x17c)](_0x5a07fc(0x16c),_0x5a07fc(0x167),{'templatePath':_0x2c9b0b,'targetPath':_0x400ff9,'pageName':_0x10184d,'templateName':_0x318137,'error':_0x404e4d instanceof Error?_0x404e4d[_0x5a07fc(0x158)]:String(_0x404e4d),'duration':_0x49c060});}throw _0x404e4d;}}static async[a289_0x50b144(0x14d)](_0x54dd22,_0x5e6cbe,_0x27ecab,_0x5b54d5){const _0x1b6121=a289_0x50b144,_0x3aa847=await a289_0x639c0b[_0x1b6121(0x17a)][_0x1b6121(0x13d)](_0x54dd22,{'withFileTypes':!![]});for(const _0x305c1e of _0x3aa847){const _0x297ce6=a289_0x268e29[_0x1b6121(0x169)](_0x54dd22,_0x305c1e[_0x1b6121(0x142)]);let _0x31d4ce=a289_0x268e29[_0x1b6121(0x169)](_0x5e6cbe,_0x305c1e[_0x1b6121(0x142)]);_0x305c1e[_0x1b6121(0x142)][_0x1b6121(0x14b)](_0x1b6121(0x161))&&(_0x31d4ce=a289_0x268e29[_0x1b6121(0x169)](_0x5e6cbe,_0x305c1e['name']['replace'](/\.tpl$/,'')));if(_0x305c1e[_0x1b6121(0x164)]())await a289_0x639c0b[_0x1b6121(0x17a)][_0x1b6121(0x15c)](_0x31d4ce,{'recursive':!![]}),await this[_0x1b6121(0x14d)](_0x297ce6,_0x31d4ce,_0x27ecab,_0x5b54d5);else _0x305c1e[_0x1b6121(0x14c)]()&&await this[_0x1b6121(0x17f)](_0x297ce6,_0x31d4ce,_0x27ecab,_0x5b54d5);}}static async['processFile'](_0x3452d1,_0x520186,_0x540f88,_0xc64ac1){const _0x2a251e=a289_0x50b144,_0x5594e9=a289_0x268e29[_0x2a251e(0x166)](_0x3452d1)[_0x2a251e(0x175)]();_0x3452d1[_0x2a251e(0x14b)]('.tpl')&&(_0x520186=_0x520186[_0x2a251e(0x140)](/\.tpl$/,''));const _0x2dc889=[_0x2a251e(0x170),_0x2a251e(0x13f),_0x2a251e(0x181),_0x2a251e(0x186),_0x2a251e(0x17e),_0x2a251e(0x185),_0x2a251e(0x15a),'.scss','.tpl'];if(_0x2dc889[_0x2a251e(0x177)](_0x5594e9)||_0x3452d1['endsWith'](_0x2a251e(0x161))){const _0x440c16=await a289_0x639c0b[_0x2a251e(0x17a)][_0x2a251e(0x183)](_0x3452d1,_0x2a251e(0x179)),_0xb2519d=this[_0x2a251e(0x182)](_0x440c16,_0x540f88,_0xc64ac1);await a289_0x639c0b[_0x2a251e(0x17a)][_0x2a251e(0x146)](_0x520186,_0xb2519d,_0x2a251e(0x179));}else await a289_0x639c0b['promises'][_0x2a251e(0x15e)](_0x3452d1,_0x520186);}}function a289_0x4384(){const _0x104669=['slice','mkdir','LOVRABET','copyFile','tableName:\x20\x22','toComponentName','.tpl','开始处理模板内容替换','processTemplate','isDirectory','split','extname','模板内容替换失败','api','join','charAt','100EnSCUF','template','getDate','tableName','模板内容替换完成','.tsx','103347YDaTxD','formatLocalTimestamp','datasetCode:\x20\x22','padStart','toLowerCase','toDisplayTitle','includes','6CXHpav','utf8','promises','toUpperCase','error','pad','.json','processFile','\x20},','.jsx','replaceContent','readFile','default','.md','.js','name:\x20\x22','readdir','alias:\x20\x22','.ts','replace','map','name','getFullYear','7127688qrQPOQ','3775177PrfXqT','writeFile','datasetCode','YourModel','getMonth','4471025hbMQkr','endsWith','isFile','processDirectory','387952ZWDXfG','184zwAvAN','alias','getMinutes','success','push','toISOString','49206xebTZi','now','484762MtZSbY','message','pop','.css'];a289_0x4384=function(){return _0x104669;};return a289_0x4384();}
@@ -1 +1 @@
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
+ (function(_0x551255,_0x2cda35){const _0x1606b1=a290_0x5ae8,_0x29763b=_0x551255();while(!![]){try{const _0x403ecc=parseInt(_0x1606b1(0x1e1))/0x1+parseInt(_0x1606b1(0x1ed))/0x2*(parseInt(_0x1606b1(0x1f1))/0x3)+-parseInt(_0x1606b1(0x1ff))/0x4*(parseInt(_0x1606b1(0x1f4))/0x5)+-parseInt(_0x1606b1(0x1e5))/0x6*(parseInt(_0x1606b1(0x1f9))/0x7)+parseInt(_0x1606b1(0x1e8))/0x8+-parseInt(_0x1606b1(0x1fe))/0x9*(parseInt(_0x1606b1(0x1ee))/0xa)+parseInt(_0x1606b1(0x1ea))/0xb*(-parseInt(_0x1606b1(0x1f3))/0xc);if(_0x403ecc===_0x2cda35)break;else _0x29763b['push'](_0x29763b['shift']());}catch(_0x2d4ac4){_0x29763b['push'](_0x29763b['shift']());}}}(a290_0x430b,0xda77b));import{mkdir,readFile,writeFile}from'node:fs/promises';import{homedir}from'node:os';import{dirname,join}from'node:path';import a290_0xe0a8f7 from'semver';import{CLI_BIN_NAME,NPM_PACKAGE_NAME}from'../constant/cli.js';import{getCliVersionPolicy}from'../utils/cli-version-policy.js';function a290_0x5ae8(_0x3d9346,_0x216b77){_0x3d9346=_0x3d9346-0x1e1;const _0x430b6d=a290_0x430b();let _0x5ae80a=_0x430b6d[_0x3d9346];return _0x5ae80a;}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 _0x2d3bd5=a290_0x5ae8,_0x78af90=process.env.RABETBASE_NO_UPDATE_NOTICE?.[_0x2d3bd5(0x1e2)]()[_0x2d3bd5(0x1e7)]();return _0x78af90==='1'||_0x78af90===_0x2d3bd5(0x1fa)||_0x78af90==='yes';}function cacheRoot(){return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),'.cache');}export function getUpdateNoticeCachePath(){const _0x196698=a290_0x5ae8;return join(cacheRoot(),'rabetbase-cli',_0x196698(0x1ef));}async function readUpdateNoticeCache(){const _0x30ac58=a290_0x5ae8;try{const _0x440c31=await readFile(getUpdateNoticeCachePath(),_0x30ac58(0x1f8)),_0x3b3724=JSON[_0x30ac58(0x1f7)](_0x440c31);if(!_0x3b3724||typeof _0x3b3724!==_0x30ac58(0x1f6))return{};return _0x3b3724;}catch{return{};}}async function writeUpdateNoticeCache(_0x4c4ec2){const _0x949969=a290_0x5ae8;try{const _0x54f7cc=getUpdateNoticeCachePath();await mkdir(dirname(_0x54f7cc),{'recursive':!![]}),await writeFile(_0x54f7cc,JSON[_0x949969(0x1f0)](_0x4c4ec2,null,0x2)+'\x0a',_0x949969(0x1f8));}catch{}}function isFreshCheck(_0x5d4129,_0x58e9ef){const _0x21fda7=a290_0x5ae8;return typeof _0x5d4129[_0x21fda7(0x1e3)]===_0x21fda7(0x1e4)&&_0x58e9ef-_0x5d4129[_0x21fda7(0x1e3)]<UPDATE_CHECK_TTL_MS;}function isRecentlyNotified(_0x575533,_0x38c297,_0x576ea9){const _0x441b10=a290_0x5ae8;return _0x575533[_0x441b10(0x1ec)]===_0x38c297&&typeof _0x575533[_0x441b10(0x1fb)]===_0x441b10(0x1e4)&&_0x576ea9-_0x575533['lastNotifiedAt']<UPDATE_NOTICE_TTL_MS;}function a290_0x430b(){const _0x455083=['20dWfCBk','update-check.json','stringify','81yuRFsL','now','12jDufdc','5AeyDDy','valid','object','parse','utf8','21413ftVvlj','true','lastNotifiedAt','/v/','gte','1699119GkfmIE','2217912SAbcvz','1587765RQwaDG','trim','checkedAt','number','1002LTAgXm','https://www.npmjs.com/package/','toLowerCase','4747240elHzmF','\x20available,\x20current\x20','5612563PeaWmW','latest','lastNotifiedVersion','49394oUWjql'];a290_0x430b=function(){return _0x455083;};return a290_0x430b();}export function buildNpmVersionUrl(_0x37214f){const _0xe9e866=a290_0x5ae8;return _0xe9e866(0x1e6)+NPM_PACKAGE_NAME+_0xe9e866(0x1fc)+_0x37214f;}export async function resolveLatestUpdateNotice(){const _0x526839=a290_0x5ae8;if(isUpdateNoticeDisabled())return null;try{const _0x5bf71e=Date[_0x526839(0x1f2)](),_0x20779e=getCliVersion(),_0x1cf5ce=await readUpdateNoticeCache();let _0x58be61=isFreshCheck(_0x1cf5ce,_0x5bf71e)?_0x1cf5ce[_0x526839(0x1eb)]?.[_0x526839(0x1e2)]():undefined;if(!_0x58be61&&!isFreshCheck(_0x1cf5ce,_0x5bf71e)){const _0x2da698=await getCliVersionPolicy();_0x58be61=_0x2da698?.['stableVersion']?.['trim']()||undefined,await writeUpdateNoticeCache({..._0x1cf5ce,'checkedAt':_0x5bf71e,'latest':_0x58be61,'failed':!_0x58be61});}if(!_0x58be61||!a290_0xe0a8f7[_0x526839(0x1f5)](_0x20779e)||!a290_0xe0a8f7[_0x526839(0x1f5)](_0x58be61))return null;if(a290_0xe0a8f7[_0x526839(0x1fd)](_0x20779e,_0x58be61))return null;if(isRecentlyNotified(_0x1cf5ce,_0x58be61,_0x5bf71e))return null;const _0x18ce06=CLI_BIN_NAME+'\x20update';return await writeUpdateNoticeCache({..._0x1cf5ce,'checkedAt':isFreshCheck(_0x1cf5ce,_0x5bf71e)?_0x1cf5ce['checkedAt']:_0x5bf71e,'latest':_0x58be61,'failed':![],'lastNotifiedVersion':_0x58be61,'lastNotifiedAt':_0x5bf71e}),{'command':_0x18ce06,'current':_0x20779e,'latest':_0x58be61,'url':buildNpmVersionUrl(_0x58be61),'message':CLI_BIN_NAME+'\x20'+_0x58be61+_0x526839(0x1e9)+_0x20779e+',\x20run:\x20'+_0x18ce06};}catch{return null;}}
@@ -1 +1 @@
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
+ (function(_0x1426ff,_0x59062f){var _0x3e8920=a291_0x1cce,_0x2db155=_0x1426ff();while(!![]){try{var _0x52ee11=parseInt(_0x3e8920(0x1b8))/0x1*(-parseInt(_0x3e8920(0x1ba))/0x2)+-parseInt(_0x3e8920(0x1bc))/0x3+parseInt(_0x3e8920(0x1b7))/0x4+parseInt(_0x3e8920(0x1b4))/0x5+-parseInt(_0x3e8920(0x1b6))/0x6*(-parseInt(_0x3e8920(0x1b5))/0x7)+parseInt(_0x3e8920(0x1b9))/0x8+parseInt(_0x3e8920(0x1bd))/0x9*(-parseInt(_0x3e8920(0x1bb))/0xa);if(_0x52ee11===_0x59062f)break;else _0x2db155['push'](_0x2db155['shift']());}catch(_0x3e01fc){_0x2db155['push'](_0x2db155['shift']());}}}(a291_0x5d07,0x393a7));function a291_0x1cce(_0x1cbb5e,_0x4803e6){_0x1cbb5e=_0x1cbb5e-0x1b4;var _0x5d0791=a291_0x5d07();var _0x1cce23=_0x5d0791[_0x1cbb5e];return _0x1cce23;}import{VERSION}from'../generated/build-info.js';function a291_0x5d07(){var _0xfa1e7e=['7bNLgBP','2261226LSuAcP','1298040JrAxJI','15425CueNjg','1027456LIGBXS','10YXOSWD','7699650EjPLBh','596646twLoPB','9MnvWRI','2252830syCvQI'];a291_0x5d07=function(){return _0xfa1e7e;};return a291_0x5d07();}export function getCliVersion(){return VERSION;}
@@ -1 +1 @@
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
+ (function(_0x104a87,_0x5a944f){var _0x420f4e=a292_0x5a8e,_0x1fcf75=_0x104a87();while(!![]){try{var _0x4b22b=-parseInt(_0x420f4e(0x1f4))/0x1*(parseInt(_0x420f4e(0x1f1))/0x2)+parseInt(_0x420f4e(0x1f6))/0x3+-parseInt(_0x420f4e(0x1f3))/0x4+parseInt(_0x420f4e(0x1f0))/0x5+-parseInt(_0x420f4e(0x1f8))/0x6*(parseInt(_0x420f4e(0x1f2))/0x7)+parseInt(_0x420f4e(0x1f5))/0x8+parseInt(_0x420f4e(0x1f7))/0x9;if(_0x4b22b===_0x5a944f)break;else _0x1fcf75['push'](_0x1fcf75['shift']());}catch(_0x1e8afa){_0x1fcf75['push'](_0x1fcf75['shift']());}}}(a292_0x2802,0xcbae5));function a292_0x2802(){var _0x2232d0=['6rrbGLK','1024965NmOqDj','5542eZUmrk','1886738skuSBU','1578592ZgcrnG','121BeMZYk','6066816MxCbca','145485mRyipF','7397190IrrZjY'];a292_0x2802=function(){return _0x2232d0;};return a292_0x2802();}import{setActiveCookie,clearActiveCookie}from'../core/api-client.js';function a292_0x5a8e(_0x2158a8,_0x3c76c8){_0x2158a8=_0x2158a8-0x1f0;var _0x2802a1=a292_0x2802();var _0x5a8e04=_0x2802a1[_0x2158a8];return _0x5a8e04;}export async function withActiveCookie(_0x41c4c0,_0x253e4f){setActiveCookie(_0x41c4c0);try{return await _0x253e4f();}finally{clearActiveCookie();}}
@@ -1 +1 @@
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');}
1
+ function a293_0xb835(){var _0x597725=['25115470nqXDHh','8jCLNrA','12824991WfZiaZ','2344410pchYmN','7204KlEFyW','stderr','1649095jOgbEi','296802kwFpjd','8BcEROx','write','146icpKwa','1644185tmioUQ'];a293_0xb835=function(){return _0x597725;};return a293_0xb835();}(function(_0x2bf4c7,_0xe9322c){var _0x25584d=a293_0x2c0f,_0x52199c=_0x2bf4c7();while(!![]){try{var _0x167674=-parseInt(_0x25584d(0x8c))/0x1*(-parseInt(_0x25584d(0x86))/0x2)+parseInt(_0x25584d(0x83))/0x3+-parseInt(_0x25584d(0x89))/0x4*(-parseInt(_0x25584d(0x87))/0x5)+parseInt(_0x25584d(0x8b))/0x6+-parseInt(_0x25584d(0x82))/0x7*(-parseInt(_0x25584d(0x84))/0x8)+parseInt(_0x25584d(0x8a))/0x9+-parseInt(_0x25584d(0x88))/0xa;if(_0x167674===_0xe9322c)break;else _0x52199c['push'](_0x52199c['shift']());}catch(_0xc79976){_0x52199c['push'](_0x52199c['shift']());}}}(a293_0xb835,0xc8c00));function a293_0x2c0f(_0x24093e,_0x20b9c9){_0x24093e=_0x24093e-0x82;var _0xb8355e=a293_0xb835();var _0x2c0fad=_0xb8355e[_0x24093e];return _0x2c0fad;}export function writeCliSideChannelLine(_0x242d1c){var _0x20d5da=a293_0x2c0f;process[_0x20d5da(0x8d)][_0x20d5da(0x85)](_0x242d1c+'\x0a');}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lovrabet/rabetbase-cli",
3
- "version": "2.4.2",
3
+ "version": "2.4.3-beta.1",
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": [
@@ -39,14 +39,17 @@
39
39
  },
40
40
  "scripts": {
41
41
  "prebuild": "node scripts/generate-build-info.js && node scripts/generate-builtin-skill-manifest.mjs --check",
42
- "build": "rm -rf lib && tsc && tsc-alias && javascript-obfuscator lib --output lib",
42
+ "build": "node scripts/clean-build-output.mjs && tsc && tsc-alias && javascript-obfuscator lib --output lib",
43
43
  "prebuild:dev": "node scripts/generate-build-info.js",
44
- "build:dev": "rm -rf lib && tsc && tsc-alias",
44
+ "build:dev": "node scripts/clean-build-output.mjs && tsc && tsc-alias",
45
45
  "start": "tsc --watch",
46
46
  "sync-template": "node scripts/sync-template.js",
47
47
  "sync:cdn": "node scripts/sync-cdn-assets.js",
48
48
  "verify:bundled-jq": "node scripts/verify-bundled-jq.mjs",
49
- "regression:beta-smoke": "node scripts/regression-beta-smoke.mjs",
49
+ "regression:release-smoke": "node scripts/regression-release-smoke.mjs",
50
+ "deploy:verify": "node scripts/deploy-verify.mjs",
51
+ "pack:dry-run-summary": "node scripts/package-dry-run-summary.mjs",
52
+ "verify:release-package": "node scripts/verify-release-package.mjs",
50
53
  "beta-release": "node scripts/beta-release.mjs",
51
54
  "release": "node scripts/latest-release.mjs",
52
55
  "test": "vitest run",
@@ -69,6 +72,7 @@
69
72
  "postinstall": "node scripts/postinstall.mjs",
70
73
  "lint": "echo 'No linter configured yet'",
71
74
  "check:skill-version": "node scripts/check-skill-version.mjs",
75
+ "check:lockfile": "node scripts/check-lockfile-integrity.mjs",
72
76
  "ci": "npm run typecheck && npm run check:skill-version && npm run test:run && npm run build"
73
77
  },
74
78
  "publishConfig": {
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: rabetbase
3
- version: 2.4.2
3
+ version: 2.4.3-beta.1
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:
@@ -2,8 +2,8 @@
2
2
  "schemaVersion": 1,
3
3
  "name": "rabetbase",
4
4
  "packageName": "@lovrabet/rabetbase-cli",
5
- "packageVersion": "2.4.2",
6
- "skillVersion": "2.4.2",
5
+ "packageVersion": "2.4.3-beta.1",
6
+ "skillVersion": "2.4.3-beta.1",
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": "36ccf9516fdbfaf9666ef97811e6bfb7b89208dd395bfdbdbfb02593901c89c4"
136
+ "digest": "f30134f8a767c5ef6dba460110d38e8f8212c5e41b2bd24338f4a7909c6b3ccf"
137
137
  }