@lovrabet/rabetbase-cli 2.5.0-beta.4 → 2.5.0-beta.6

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 (295) hide show
  1. package/README.md +28 -0
  2. package/lib/api/api-doc.js +1 -1
  3. package/lib/api/fetch-model-list.js +1 -1
  4. package/lib/api/generate-api-file.js +1 -1
  5. package/lib/api/generate-sdk-config-file.js +1 -1
  6. package/lib/auth/auth-server-ui.js +1 -1
  7. package/lib/auth/auth-server.js +1 -1
  8. package/lib/auth/constant.js +1 -1
  9. package/lib/auth/get-cookie.js +1 -1
  10. package/lib/auth/get-session-user.js +1 -1
  11. package/lib/auth/is-session-valid.js +1 -1
  12. package/lib/auth/login-success-html.js +1 -1
  13. package/lib/auth/logout.js +1 -1
  14. package/lib/cli-flags.js +1 -1
  15. package/lib/cli.js +1 -1
  16. package/lib/commands/api/generate.js +1 -1
  17. package/lib/commands/api/index.js +1 -1
  18. package/lib/commands/api/list.js +1 -1
  19. package/lib/commands/api/pull.js +1 -1
  20. package/lib/commands/api/shared.js +1 -1
  21. package/lib/commands/app/index.js +1 -1
  22. package/lib/commands/app/list.js +1 -1
  23. package/lib/commands/app/members-list.js +1 -1
  24. package/lib/commands/app/remote-directory.js +1 -1
  25. package/lib/commands/app/shared.js +1 -1
  26. package/lib/commands/app-config/delete.js +1 -1
  27. package/lib/commands/app-config/get.js +1 -1
  28. package/lib/commands/app-config/index.js +1 -1
  29. package/lib/commands/app-config/list.js +1 -1
  30. package/lib/commands/app-config/set.js +1 -1
  31. package/lib/commands/app-config/shared.js +1 -1
  32. package/lib/commands/auth/index.js +1 -1
  33. package/lib/commands/bff/create.js +1 -1
  34. package/lib/commands/bff/delete.js +1 -1
  35. package/lib/commands/bff/detail.js +1 -1
  36. package/lib/commands/bff/index.js +1 -1
  37. package/lib/commands/bff/list.js +1 -1
  38. package/lib/commands/bff/pull.js +1 -1
  39. package/lib/commands/bff/push.js +1 -1
  40. package/lib/commands/bff/status.js +1 -1
  41. package/lib/commands/cli-skill/index.js +1 -1
  42. package/lib/commands/cli-update.js +1 -1
  43. package/lib/commands/codegen/index.js +1 -1
  44. package/lib/commands/codegen/sdk.js +1 -1
  45. package/lib/commands/codegen/sql.js +1 -1
  46. package/lib/commands/common/app-registry.js +1 -1
  47. package/lib/commands/common/app-selector.js +1 -1
  48. package/lib/commands/common/async-task.js +1 -1
  49. package/lib/commands/common/dry-run.js +1 -1
  50. package/lib/commands/common/flags.js +1 -1
  51. package/lib/commands/common/local-file.js +1 -1
  52. package/lib/commands/common/validate.js +1 -1
  53. package/lib/commands/config/delete.js +1 -1
  54. package/lib/commands/config/get.js +1 -1
  55. package/lib/commands/config/index.js +1 -1
  56. package/lib/commands/config/init.js +1 -1
  57. package/lib/commands/config/list.js +1 -1
  58. package/lib/commands/config/set.js +1 -1
  59. package/lib/commands/config/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/table-diff-shared.js +1 -1
  94. package/lib/commands/db/tables.js +1 -1
  95. package/lib/commands/db/test.js +1 -1
  96. package/lib/commands/db/update.js +1 -1
  97. package/lib/commands/doctor.js +1 -1
  98. package/lib/commands/file/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/domain-config.js +1 -1
  208. package/lib/config/schema.js +1 -1
  209. package/lib/constant/cdn.js +1 -1
  210. package/lib/constant/cli.js +1 -1
  211. package/lib/constant/defaults.js +1 -1
  212. package/lib/constant/domain.js +1 -1
  213. package/lib/constant/env.js +1 -1
  214. package/lib/constant/output.js +1 -1
  215. package/lib/constant/paths.js +1 -1
  216. package/lib/constant/region.js +1 -1
  217. package/lib/constant/risk.js +1 -1
  218. package/lib/context/app-resolver.js +1 -1
  219. package/lib/context/auth-resolver.js +1 -1
  220. package/lib/context/config-loader.js +1 -1
  221. package/lib/context.js +1 -1
  222. package/lib/core/alias-resolver.js +1 -1
  223. package/lib/core/api-client.js +1 -1
  224. package/lib/core/bff/config.js +1 -1
  225. package/lib/core/bff/file-system.js +1 -1
  226. package/lib/core/bff/hash.js +1 -1
  227. package/lib/core/bff/lock.js +1 -1
  228. package/lib/core/bff/utils.js +1 -1
  229. package/lib/core/db-resolver.js +1 -1
  230. package/lib/core/page/file-system.js +1 -1
  231. package/lib/core/page/hash.js +1 -1
  232. package/lib/core/page/lock.js +1 -1
  233. package/lib/core/sql-index-auditor.js +1 -1
  234. package/lib/core/sql-sync/config.js +1 -1
  235. package/lib/core/sql-sync/file-system.js +1 -1
  236. package/lib/core/sql-sync/hash.js +1 -1
  237. package/lib/core/sql-sync/lock.js +1 -1
  238. package/lib/core/sql-sync/utils.js +1 -1
  239. package/lib/core/sql-validator.js +1 -1
  240. package/lib/errors.js +1 -1
  241. package/lib/framework/build-all-flags.js +1 -1
  242. package/lib/framework/error-output.js +1 -1
  243. package/lib/framework/explicit-yes.js +1 -1
  244. package/lib/framework/flags.js +1 -1
  245. package/lib/framework/help.js +1 -1
  246. package/lib/framework/index.js +1 -1
  247. package/lib/framework/output.js +1 -1
  248. package/lib/framework/response.js +1 -1
  249. package/lib/framework/runner-alias.js +1 -1
  250. package/lib/framework/runner.js +1 -1
  251. package/lib/framework/schema-export.js +1 -1
  252. package/lib/framework/types.js +1 -1
  253. package/lib/generated/build-info.d.ts +4 -4
  254. package/lib/generated/build-info.js +1 -1
  255. package/lib/help.js +1 -1
  256. package/lib/postinstall.js +1 -1
  257. package/lib/runtime/confirmation.js +1 -1
  258. package/lib/runtime/event.js +1 -1
  259. package/lib/runtime/index.js +1 -1
  260. package/lib/runtime/queue.js +1 -1
  261. package/lib/runtime/resolve.js +1 -1
  262. package/lib/skills/builtin-skill.js +1 -1
  263. package/lib/skills/main.js +1 -1
  264. package/lib/skills/npx-skills-add.js +1 -1
  265. package/lib/skills/skill-presence.js +1 -1
  266. package/lib/telemetry/cli-command-trace.js +1 -1
  267. package/lib/telemetry/cli-help-trace.js +1 -1
  268. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  269. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  270. package/lib/telemetry/send-cli-trace-log.js +1 -1
  271. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  272. package/lib/utils/ai_config.js +1 -1
  273. package/lib/utils/apply-jq-filter.js +1 -1
  274. package/lib/utils/cdn-config.js +1 -1
  275. package/lib/utils/check-sdk-version.js +1 -1
  276. package/lib/utils/cli-version-check.js +1 -1
  277. package/lib/utils/cli-version-policy.js +1 -1
  278. package/lib/utils/config.js +1 -1
  279. package/lib/utils/entity-with-id.js +1 -1
  280. package/lib/utils/file-utils.js +1 -1
  281. package/lib/utils/guides-cdn.js +1 -1
  282. package/lib/utils/http-client.js +1 -1
  283. package/lib/utils/is-non-interactive.js +1 -1
  284. package/lib/utils/logger.js +1 -1
  285. package/lib/utils/params.js +1 -1
  286. package/lib/utils/platform.js +1 -1
  287. package/lib/utils/sleep.js +1 -1
  288. package/lib/utils/template-replacer.js +1 -1
  289. package/lib/utils/update-notice.js +1 -1
  290. package/lib/utils/version.js +1 -1
  291. package/lib/utils/with-active-cookie.js +1 -1
  292. package/lib/utils/write-cli-side-channel.js +1 -1
  293. package/package.json +1 -1
  294. package/skills/rabetbase/SKILL.md +2 -2
  295. package/skills/rabetbase.manifest.json +3 -3
@@ -1 +1 @@
1
- function a291_0x3be8(_0x1238e4,_0x50b21c){_0x1238e4=_0x1238e4-0xa5;const _0x1d77fd=a291_0x1d77();let _0x3be83e=_0x1d77fd[_0x1238e4];return _0x3be83e;}const a291_0x4fc2d7=a291_0x3be8;(function(_0x458981,_0x9b8ee9){const _0x2e3127=a291_0x3be8,_0x22acc0=_0x458981();while(!![]){try{const _0x378744=parseInt(_0x2e3127(0xd2))/0x1*(-parseInt(_0x2e3127(0xbb))/0x2)+parseInt(_0x2e3127(0xec))/0x3*(-parseInt(_0x2e3127(0xe7))/0x4)+-parseInt(_0x2e3127(0xcd))/0x5*(-parseInt(_0x2e3127(0xa6))/0x6)+-parseInt(_0x2e3127(0xd5))/0x7+-parseInt(_0x2e3127(0xbc))/0x8*(parseInt(_0x2e3127(0xb9))/0x9)+parseInt(_0x2e3127(0xc7))/0xa*(-parseInt(_0x2e3127(0xba))/0xb)+-parseInt(_0x2e3127(0xd1))/0xc*(-parseInt(_0x2e3127(0xee))/0xd);if(_0x378744===_0x9b8ee9)break;else _0x22acc0['push'](_0x22acc0['shift']());}catch(_0x3cd9e9){_0x22acc0['push'](_0x22acc0['shift']());}}}(a291_0x1d77,0xd30d6));import a291_0x176f8b from'node:fs';function a291_0x1d77(){const _0x1c82a3=['tableName:\x20\x22','map','readFile','27257364ymLLlS','3927wnITUr','message','replaceContent','71015CeKQQx','toLowerCase','Template\x20content\x20replacement\x20completed','toISOString','error','toComponentName','getHours','includes','formatLocalTimestamp','split','\x20},','isDirectory','success','replaceApiContent','slice','utf8','template','toDisplayTitle','4WPrGVc','toUpperCase','getDate','default','Starting\x20template\x20content\x20replacement','3032973oHYTeF','YourModel','13lCcVdb','padStart','tableName','6NxGEvi','info','LOVRABET','mkdir','processTemplate','isFile','replace','pad','.json','pop','charAt','now','api','.tpl','datasetCode:\x20\x22','.scss','readdir','processDirectory','alias','18szpwou','1563001TSFfew','46hudJhN','1396888BTIupS','.tsx','.md','promises','getMinutes','Template\x20content\x20replacement\x20failed','join','endsWith','processFile','extname','name','10Lrdpmq','name:\x20\x22','copyFile','alias:\x20\x22','\x0a\x20\x20\x20\x20{\x20','.js','978965eEDGPV'];a291_0x1d77=function(){return _0x1c82a3;};return a291_0x1d77();}import a291_0x281489 from'node:path';import{logger}from'../utils/logger.js';import{getCliVersion}from'../utils/version.js';const CLI_VERSION=getCliVersion();export class TemplateReplacer{static['pad'](_0xce72e6){const _0x2e384a=a291_0x3be8;return String(_0xce72e6)[_0x2e384a(0xef)](0x2,'0');}static[a291_0x4fc2d7(0xdd)](_0x58c98d){const _0x87f4bd=a291_0x4fc2d7,_0x222c9e=_0x58c98d['getFullYear'](),_0x359e57=this['pad'](_0x58c98d['getMonth']()+0x1),_0x5b15a3=this[_0x87f4bd(0xad)](_0x58c98d[_0x87f4bd(0xe9)]()),_0x253a34=this[_0x87f4bd(0xad)](_0x58c98d[_0x87f4bd(0xdb)]()),_0x111e49=this['pad'](_0x58c98d[_0x87f4bd(0xc0)]()),_0x4bed8e=this[_0x87f4bd(0xad)](_0x58c98d['getSeconds']());return{'createdAt':_0x222c9e+'-'+_0x359e57+'-'+_0x5b15a3+'\x20'+_0x253a34+':'+_0x111e49+':'+_0x4bed8e,'createdDate':_0x222c9e+'-'+_0x359e57+'-'+_0x5b15a3,'createdTime':_0x253a34+':'+_0x111e49+':'+_0x4bed8e};}static['toComponentName'](_0x48f9df){const _0x539477=a291_0x4fc2d7,_0x4d817b=_0x48f9df[_0x539477(0xde)]('/')[_0x539477(0xaf)]()||_0x48f9df;return _0x4d817b[_0x539477(0xde)]('-')[_0x539477(0xcf)](_0x1dac92=>_0x1dac92[_0x539477(0xb0)](0x0)[_0x539477(0xe8)]()+_0x1dac92[_0x539477(0xe3)](0x1)[_0x539477(0xd6)]())[_0x539477(0xc2)]('');}static['toDisplayTitle'](_0x4aeed0){const _0x1536be=a291_0x4fc2d7,_0x559572=_0x4aeed0['split']('/')[_0x1536be(0xaf)]()||_0x4aeed0;return _0x559572[_0x1536be(0xde)]('-')[_0x1536be(0xcf)](_0x16523d=>_0x16523d[_0x1536be(0xb0)](0x0)[_0x1536be(0xe8)]()+_0x16523d[_0x1536be(0xe3)](0x1)[_0x1536be(0xd6)]())[_0x1536be(0xc2)]('\x20');}static['replaceContent'](_0xc9cac1,_0x230303,_0x573a5e){const _0x27e093=a291_0x4fc2d7,_0x1230a8=this[_0x27e093(0xda)](_0x230303),_0x13184b=this[_0x27e093(0xe6)](_0x230303),{createdAt:_0x2f74a3,createdDate:_0x463262,createdTime:_0x1dfe88}=this['formatLocalTimestamp'](new Date());let _0x3b7792=_0xc9cac1[_0x27e093(0xac)](/\{CliVersion\}/g,CLI_VERSION)[_0x27e093(0xac)](/\{ComponentName\}/g,_0x1230a8)[_0x27e093(0xac)](/\{DisplayTitle\}/g,_0x13184b)['replace'](/\{PageName\}/g,_0x230303)[_0x27e093(0xac)](/\{TemplateName\}/g,_0x573a5e)[_0x27e093(0xac)](/\{CreatedAt\}/g,_0x2f74a3)['replace'](/\{CreatedDate\}/g,_0x463262)['replace'](/\{CreatedTime\}/g,_0x1dfe88);return _0x3b7792;}static[a291_0x4fc2d7(0xe2)](_0x52f84e,_0x17fb23,_0x3f7aa8,_0x2a6587,_0x1a4492,_0x12898b,_0x20e94e,_0x1b882d){const _0x55ce00=a291_0x4fc2d7,_0x1e3b3d=new Date(),_0x28ddfa=_0x1e3b3d[_0x55ce00(0xd8)](),_0xbb401a=_0x3f7aa8[_0x55ce00(0xcf)](_0xc66862=>{const _0xadcfcf=_0x55ce00,_0x14b2d4=[_0xadcfcf(0xb4)+_0xc66862['datasetCode']+'\x22',_0xadcfcf(0xce)+_0xc66862[_0xadcfcf(0xa5)]+'\x22',_0xadcfcf(0xc8)+_0xc66862[_0xadcfcf(0xc6)]+'\x22'];return _0xc66862['alias']&&_0x14b2d4['push'](_0xadcfcf(0xca)+_0xc66862[_0xadcfcf(0xb8)]+'\x22'),_0xadcfcf(0xcb)+_0x14b2d4['join'](',\x20')+_0xadcfcf(0xdf);})[_0x55ce00(0xc2)](''),_0x3b8973=_0x2a6587||_0x3f7aa8[0x0]?.[_0x55ce00(0xb8)]||_0x55ce00(0xed);let _0xd6b3c1=_0x52f84e['replace'](/\{AppCode\}/g,_0x17fb23)[_0x55ce00(0xac)](/\{ModelConfigs\}/g,_0xbb401a)[_0x55ce00(0xac)](/\{ExampleModelName\}/g,_0x3b8973)['replace'](/\{ApiFileName\}/g,_0x1a4492||_0x55ce00(0xb2))['replace'](/\{ConfigName\}/g,_0x12898b||_0x55ce00(0xea))['replace'](/\{ClientConfigParam\}/g,_0x20e94e||'')[_0x55ce00(0xac)](/\{VarPrefix\}/g,_0x1b882d||_0x55ce00(0xa8))[_0x55ce00(0xac)](/\{CreatedAt\}/g,_0x28ddfa);return _0xd6b3c1;}static async[a291_0x4fc2d7(0xaa)](_0x120dc7,_0x5b9a25,_0x11c315,_0xc88bca,_0x3cb8a0=!![]){const _0x12d481=a291_0x4fc2d7,_0x29f5c0=Date[_0x12d481(0xb1)]();try{_0x3cb8a0&&logger[_0x12d481(0xa7)](_0x12d481(0xe5),_0x12d481(0xeb),{'templatePath':_0x120dc7,'targetPath':_0x5b9a25,'pageName':_0x11c315,'templateName':_0xc88bca});await a291_0x176f8b[_0x12d481(0xbf)][_0x12d481(0xa9)](_0x5b9a25,{'recursive':!![]}),await this[_0x12d481(0xb7)](_0x120dc7,_0x5b9a25,_0x11c315,_0xc88bca);if(_0x3cb8a0){const _0x1cb2d0=Date[_0x12d481(0xb1)]()-_0x29f5c0;logger[_0x12d481(0xe1)](_0x12d481(0xe5),_0x12d481(0xd7),_0x1cb2d0,{'pageName':_0x11c315,'templateName':_0xc88bca});}}catch(_0xdaddf6){if(_0x3cb8a0){const _0x34ef78=Date[_0x12d481(0xb1)]()-_0x29f5c0;logger[_0x12d481(0xd9)]('template',_0x12d481(0xc1),{'templatePath':_0x120dc7,'targetPath':_0x5b9a25,'pageName':_0x11c315,'templateName':_0xc88bca,'error':_0xdaddf6 instanceof Error?_0xdaddf6[_0x12d481(0xd3)]:String(_0xdaddf6),'duration':_0x34ef78});}throw _0xdaddf6;}}static async[a291_0x4fc2d7(0xb7)](_0x52f781,_0x71b009,_0x342571,_0xb529ee){const _0x5e5496=a291_0x4fc2d7,_0x1cf079=await a291_0x176f8b[_0x5e5496(0xbf)][_0x5e5496(0xb6)](_0x52f781,{'withFileTypes':!![]});for(const _0x33f805 of _0x1cf079){const _0x7031b6=a291_0x281489[_0x5e5496(0xc2)](_0x52f781,_0x33f805[_0x5e5496(0xc6)]);let _0x10f644=a291_0x281489[_0x5e5496(0xc2)](_0x71b009,_0x33f805[_0x5e5496(0xc6)]);_0x33f805[_0x5e5496(0xc6)][_0x5e5496(0xc3)](_0x5e5496(0xb3))&&(_0x10f644=a291_0x281489[_0x5e5496(0xc2)](_0x71b009,_0x33f805['name']['replace'](/\.tpl$/,'')));if(_0x33f805[_0x5e5496(0xe0)]())await a291_0x176f8b['promises'][_0x5e5496(0xa9)](_0x10f644,{'recursive':!![]}),await this[_0x5e5496(0xb7)](_0x7031b6,_0x10f644,_0x342571,_0xb529ee);else _0x33f805[_0x5e5496(0xab)]()&&await this['processFile'](_0x7031b6,_0x10f644,_0x342571,_0xb529ee);}}static async[a291_0x4fc2d7(0xc4)](_0x38b68a,_0xcfad3,_0x5e7cbf,_0x2bbd17){const _0x4c403c=a291_0x4fc2d7,_0x4fdcd1=a291_0x281489[_0x4c403c(0xc5)](_0x38b68a)[_0x4c403c(0xd6)]();_0x38b68a[_0x4c403c(0xc3)](_0x4c403c(0xb3))&&(_0xcfad3=_0xcfad3['replace'](/\.tpl$/,''));const _0x2bf23f=[_0x4c403c(0xbd),'.ts','.jsx',_0x4c403c(0xcc),_0x4c403c(0xae),_0x4c403c(0xbe),'.css',_0x4c403c(0xb5),_0x4c403c(0xb3)];if(_0x2bf23f[_0x4c403c(0xdc)](_0x4fdcd1)||_0x38b68a[_0x4c403c(0xc3)](_0x4c403c(0xb3))){const _0x4d02ea=await a291_0x176f8b[_0x4c403c(0xbf)][_0x4c403c(0xd0)](_0x38b68a,'utf8'),_0x55c02e=this[_0x4c403c(0xd4)](_0x4d02ea,_0x5e7cbf,_0x2bbd17);await a291_0x176f8b[_0x4c403c(0xbf)]['writeFile'](_0xcfad3,_0x55c02e,_0x4c403c(0xe4));}else await a291_0x176f8b[_0x4c403c(0xbf)][_0x4c403c(0xc9)](_0x38b68a,_0xcfad3);}}
1
+ const a291_0x30239c=a291_0x1e93;function a291_0x1e93(_0x239a1b,_0x2d59be){_0x239a1b=_0x239a1b-0x97;const _0x131b9f=a291_0x131b();let _0x1e9337=_0x131b9f[_0x239a1b];return _0x1e9337;}(function(_0x3f7ecc,_0x29c170){const _0x40a442=a291_0x1e93,_0x36510a=_0x3f7ecc();while(!![]){try{const _0x36bfb0=parseInt(_0x40a442(0xb1))/0x1+-parseInt(_0x40a442(0xce))/0x2+parseInt(_0x40a442(0xa2))/0x3*(parseInt(_0x40a442(0xcd))/0x4)+-parseInt(_0x40a442(0xb2))/0x5+parseInt(_0x40a442(0xcf))/0x6+parseInt(_0x40a442(0x9c))/0x7+-parseInt(_0x40a442(0xab))/0x8;if(_0x36bfb0===_0x29c170)break;else _0x36510a['push'](_0x36510a['shift']());}catch(_0x11890c){_0x36510a['push'](_0x36510a['shift']());}}}(a291_0x131b,0x720e7));import a291_0x593a1b from'node:fs';import a291_0x4f970b from'node:path';function a291_0x131b(){const _0x1440a8=['replace','Template\x20content\x20replacement\x20completed','pop','charAt','datasetCode','promises','toComponentName','3609248IvEMTg','push','copyFile','processDirectory','.md','mkdir','566129BwOXTe','3565495tfcAir','.scss','isDirectory','LOVRABET','extname','api','Template\x20content\x20replacement\x20failed','getMonth','pad','.jsx','toISOString','now','formatLocalTimestamp','message','.tpl','\x20},','readFile','.ts','slice','getMinutes','isFile','error','toUpperCase','split','tableName:\x20\x22','info','processFile','49076tXvemx','1351358ZvrnJY','4972068mzQzaj','replaceApiContent','getFullYear','.js','default','map','replaceContent','template','.json','getHours','alias','name','alias:\x20\x22','datasetCode:\x20\x22','join','Starting\x20template\x20content\x20replacement','2091964wLyIat','.tsx','getSeconds','toDisplayTitle','processTemplate','utf8','150GbaCvW','endsWith'];a291_0x131b=function(){return _0x1440a8;};return a291_0x131b();}import{logger}from'../utils/logger.js';import{getCliVersion}from'../utils/version.js';const CLI_VERSION=getCliVersion();export class TemplateReplacer{static[a291_0x30239c(0xba)](_0x540759){return String(_0x540759)['padStart'](0x2,'0');}static[a291_0x30239c(0xbe)](_0x3ced9d){const _0x3e5281=a291_0x30239c,_0x488f15=_0x3ced9d[_0x3e5281(0xd1)](),_0x5bc0c7=this['pad'](_0x3ced9d[_0x3e5281(0xb9)]()+0x1),_0x4b7c10=this[_0x3e5281(0xba)](_0x3ced9d['getDate']()),_0x33fdb1=this[_0x3e5281(0xba)](_0x3ced9d[_0x3e5281(0xd8)]()),_0x58593f=this[_0x3e5281(0xba)](_0x3ced9d[_0x3e5281(0xc5)]()),_0x5adeba=this['pad'](_0x3ced9d[_0x3e5281(0x9e)]());return{'createdAt':_0x488f15+'-'+_0x5bc0c7+'-'+_0x4b7c10+'\x20'+_0x33fdb1+':'+_0x58593f+':'+_0x5adeba,'createdDate':_0x488f15+'-'+_0x5bc0c7+'-'+_0x4b7c10,'createdTime':_0x33fdb1+':'+_0x58593f+':'+_0x5adeba};}static[a291_0x30239c(0xaa)](_0xa1bb53){const _0x4145f3=a291_0x30239c,_0x5a98b4=_0xa1bb53[_0x4145f3(0xc9)]('/')['pop']()||_0xa1bb53;return _0x5a98b4['split']('-')[_0x4145f3(0xd4)](_0x23e9ae=>_0x23e9ae['charAt'](0x0)['toUpperCase']()+_0x23e9ae[_0x4145f3(0xc4)](0x1)['toLowerCase']())[_0x4145f3(0x9a)]('');}static['toDisplayTitle'](_0x492781){const _0x5a72b3=a291_0x30239c,_0x44975b=_0x492781[_0x5a72b3(0xc9)]('/')[_0x5a72b3(0xa6)]()||_0x492781;return _0x44975b[_0x5a72b3(0xc9)]('-')[_0x5a72b3(0xd4)](_0x36b650=>_0x36b650[_0x5a72b3(0xa7)](0x0)[_0x5a72b3(0xc8)]()+_0x36b650['slice'](0x1)['toLowerCase']())[_0x5a72b3(0x9a)]('\x20');}static[a291_0x30239c(0xd5)](_0x45fd13,_0x585876,_0x1c7896){const _0x53b05d=a291_0x30239c,_0x17c2c5=this['toComponentName'](_0x585876),_0x234a3f=this[_0x53b05d(0x9f)](_0x585876),{createdAt:_0x5e2826,createdDate:_0x4f83b1,createdTime:_0x4e102a}=this[_0x53b05d(0xbe)](new Date());let _0x1745de=_0x45fd13[_0x53b05d(0xa4)](/\{CliVersion\}/g,CLI_VERSION)[_0x53b05d(0xa4)](/\{ComponentName\}/g,_0x17c2c5)['replace'](/\{DisplayTitle\}/g,_0x234a3f)[_0x53b05d(0xa4)](/\{PageName\}/g,_0x585876)[_0x53b05d(0xa4)](/\{TemplateName\}/g,_0x1c7896)[_0x53b05d(0xa4)](/\{CreatedAt\}/g,_0x5e2826)[_0x53b05d(0xa4)](/\{CreatedDate\}/g,_0x4f83b1)[_0x53b05d(0xa4)](/\{CreatedTime\}/g,_0x4e102a);return _0x1745de;}static[a291_0x30239c(0xd0)](_0xa1413,_0x5f0a8c,_0x4c2bba,_0x5bb0df,_0x11ae8e,_0xb4b192,_0x4047ce,_0x5c8b5f){const _0x5cf276=a291_0x30239c,_0x371d1c=new Date(),_0x4d0589=_0x371d1c[_0x5cf276(0xbc)](),_0x24b771=_0x4c2bba[_0x5cf276(0xd4)](_0x4e997f=>{const _0x5a2772=_0x5cf276,_0x558d2e=[_0x5a2772(0x99)+_0x4e997f[_0x5a2772(0xa8)]+'\x22',_0x5a2772(0xca)+_0x4e997f['tableName']+'\x22','name:\x20\x22'+_0x4e997f[_0x5a2772(0x97)]+'\x22'];return _0x4e997f[_0x5a2772(0xd9)]&&_0x558d2e[_0x5a2772(0xac)](_0x5a2772(0x98)+_0x4e997f[_0x5a2772(0xd9)]+'\x22'),'\x0a\x20\x20\x20\x20{\x20'+_0x558d2e[_0x5a2772(0x9a)](',\x20')+_0x5a2772(0xc1);})[_0x5cf276(0x9a)](''),_0x57a8b7=_0x5bb0df||_0x4c2bba[0x0]?.[_0x5cf276(0xd9)]||'YourModel';let _0x1d88f8=_0xa1413['replace'](/\{AppCode\}/g,_0x5f0a8c)['replace'](/\{ModelConfigs\}/g,_0x24b771)[_0x5cf276(0xa4)](/\{ExampleModelName\}/g,_0x57a8b7)['replace'](/\{ApiFileName\}/g,_0x11ae8e||_0x5cf276(0xb7))[_0x5cf276(0xa4)](/\{ConfigName\}/g,_0xb4b192||_0x5cf276(0xd3))[_0x5cf276(0xa4)](/\{ClientConfigParam\}/g,_0x4047ce||'')[_0x5cf276(0xa4)](/\{VarPrefix\}/g,_0x5c8b5f||_0x5cf276(0xb5))[_0x5cf276(0xa4)](/\{CreatedAt\}/g,_0x4d0589);return _0x1d88f8;}static async[a291_0x30239c(0xa0)](_0x49e166,_0x23a3f0,_0x42dc43,_0x6678db,_0x368d25=!![]){const _0x45e2ba=a291_0x30239c,_0xa64fdd=Date[_0x45e2ba(0xbd)]();try{_0x368d25&&logger[_0x45e2ba(0xcb)]('template',_0x45e2ba(0x9b),{'templatePath':_0x49e166,'targetPath':_0x23a3f0,'pageName':_0x42dc43,'templateName':_0x6678db});await a291_0x593a1b[_0x45e2ba(0xa9)][_0x45e2ba(0xb0)](_0x23a3f0,{'recursive':!![]}),await this[_0x45e2ba(0xae)](_0x49e166,_0x23a3f0,_0x42dc43,_0x6678db);if(_0x368d25){const _0xd3399=Date[_0x45e2ba(0xbd)]()-_0xa64fdd;logger['success'](_0x45e2ba(0xd6),_0x45e2ba(0xa5),_0xd3399,{'pageName':_0x42dc43,'templateName':_0x6678db});}}catch(_0x511e8d){if(_0x368d25){const _0x3db7ee=Date[_0x45e2ba(0xbd)]()-_0xa64fdd;logger[_0x45e2ba(0xc7)]('template',_0x45e2ba(0xb8),{'templatePath':_0x49e166,'targetPath':_0x23a3f0,'pageName':_0x42dc43,'templateName':_0x6678db,'error':_0x511e8d instanceof Error?_0x511e8d[_0x45e2ba(0xbf)]:String(_0x511e8d),'duration':_0x3db7ee});}throw _0x511e8d;}}static async[a291_0x30239c(0xae)](_0x4f63a2,_0x1912f1,_0x2f5e92,_0x2484a3){const _0x387655=a291_0x30239c,_0x10b983=await a291_0x593a1b['promises']['readdir'](_0x4f63a2,{'withFileTypes':!![]});for(const _0x11b2d1 of _0x10b983){const _0x314a34=a291_0x4f970b['join'](_0x4f63a2,_0x11b2d1['name']);let _0x5373d8=a291_0x4f970b['join'](_0x1912f1,_0x11b2d1[_0x387655(0x97)]);_0x11b2d1[_0x387655(0x97)][_0x387655(0xa3)](_0x387655(0xc0))&&(_0x5373d8=a291_0x4f970b[_0x387655(0x9a)](_0x1912f1,_0x11b2d1[_0x387655(0x97)]['replace'](/\.tpl$/,'')));if(_0x11b2d1[_0x387655(0xb4)]())await a291_0x593a1b[_0x387655(0xa9)][_0x387655(0xb0)](_0x5373d8,{'recursive':!![]}),await this['processDirectory'](_0x314a34,_0x5373d8,_0x2f5e92,_0x2484a3);else _0x11b2d1[_0x387655(0xc6)]()&&await this[_0x387655(0xcc)](_0x314a34,_0x5373d8,_0x2f5e92,_0x2484a3);}}static async[a291_0x30239c(0xcc)](_0x54d5d3,_0x1137bb,_0x39a394,_0x56fdaa){const _0x2a2461=a291_0x30239c,_0x507568=a291_0x4f970b[_0x2a2461(0xb6)](_0x54d5d3)['toLowerCase']();_0x54d5d3['endsWith'](_0x2a2461(0xc0))&&(_0x1137bb=_0x1137bb[_0x2a2461(0xa4)](/\.tpl$/,''));const _0xd46885=[_0x2a2461(0x9d),_0x2a2461(0xc3),_0x2a2461(0xbb),_0x2a2461(0xd2),_0x2a2461(0xd7),_0x2a2461(0xaf),'.css',_0x2a2461(0xb3),_0x2a2461(0xc0)];if(_0xd46885['includes'](_0x507568)||_0x54d5d3[_0x2a2461(0xa3)]('.tpl')){const _0x21092e=await a291_0x593a1b[_0x2a2461(0xa9)][_0x2a2461(0xc2)](_0x54d5d3,_0x2a2461(0xa1)),_0x171a2b=this[_0x2a2461(0xd5)](_0x21092e,_0x39a394,_0x56fdaa);await a291_0x593a1b[_0x2a2461(0xa9)]['writeFile'](_0x1137bb,_0x171a2b,_0x2a2461(0xa1));}else await a291_0x593a1b[_0x2a2461(0xa9)][_0x2a2461(0xad)](_0x54d5d3,_0x1137bb);}}
@@ -1 +1 @@
1
- (function(_0x11a391,_0x416cd3){const _0x55b3a3=a292_0x3a7e,_0x549195=_0x11a391();while(!![]){try{const _0x27cdde=parseInt(_0x55b3a3(0x1ff))/0x1*(-parseInt(_0x55b3a3(0x1f9))/0x2)+parseInt(_0x55b3a3(0x1ea))/0x3+parseInt(_0x55b3a3(0x1f5))/0x4*(-parseInt(_0x55b3a3(0x1e8))/0x5)+parseInt(_0x55b3a3(0x1e7))/0x6*(parseInt(_0x55b3a3(0x1e6))/0x7)+parseInt(_0x55b3a3(0x1fd))/0x8+-parseInt(_0x55b3a3(0x1ee))/0x9+parseInt(_0x55b3a3(0x1fb))/0xa*(-parseInt(_0x55b3a3(0x200))/0xb);if(_0x27cdde===_0x416cd3)break;else _0x549195['push'](_0x549195['shift']());}catch(_0x19fe77){_0x549195['push'](_0x549195['shift']());}}}(a292_0x1f9a,0xeff83));import{mkdir,readFile,writeFile}from'node:fs/promises';import{homedir}from'node:os';function a292_0x1f9a(){const _0x56965d=['rabetbase-cli','stableVersion','4494fgyMJZ','utf8','7311310dKIKHc','toLowerCase','11821056NRrsjG','/v/','194ULLiaR','11UXwnGc','number','yes','trim','latest',',\x20run:\x20','19474DfvisL','1566KrlZJn','45BlbFCG','lastNotifiedAt','3006711NqhKni','stringify','parse','true','6907932oUeaiJ','object','now','https://www.npmjs.com/package/','valid','\x20update','lastNotifiedVersion','128204zUvgUb','checkedAt'];a292_0x1f9a=function(){return _0x56965d;};return a292_0x1f9a();}function a292_0x3a7e(_0x33c9f1,_0x4baa4c){_0x33c9f1=_0x33c9f1-0x1e5;const _0x1f9ab4=a292_0x1f9a();let _0x3a7e53=_0x1f9ab4[_0x33c9f1];return _0x3a7e53;}import{dirname,join}from'node:path';import a292_0x375736 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 _0x413bf9=a292_0x3a7e,_0x67a742=process.env.RABETBASE_NO_UPDATE_NOTICE?.[_0x413bf9(0x203)]()[_0x413bf9(0x1fc)]();return _0x67a742==='1'||_0x67a742===_0x413bf9(0x1ed)||_0x67a742===_0x413bf9(0x202);}function cacheRoot(){return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),'.cache');}export function getUpdateNoticeCachePath(){const _0x270dc3=a292_0x3a7e;return join(cacheRoot(),_0x270dc3(0x1f7),'update-check.json');}async function readUpdateNoticeCache(){const _0x4a5321=a292_0x3a7e;try{const _0x369bc6=await readFile(getUpdateNoticeCachePath(),_0x4a5321(0x1fa)),_0x3f28e8=JSON[_0x4a5321(0x1ec)](_0x369bc6);if(!_0x3f28e8||typeof _0x3f28e8!==_0x4a5321(0x1ef))return{};return _0x3f28e8;}catch{return{};}}async function writeUpdateNoticeCache(_0x1666fa){const _0x278963=a292_0x3a7e;try{const _0x582a57=getUpdateNoticeCachePath();await mkdir(dirname(_0x582a57),{'recursive':!![]}),await writeFile(_0x582a57,JSON[_0x278963(0x1eb)](_0x1666fa,null,0x2)+'\x0a',_0x278963(0x1fa));}catch{}}function isFreshCheck(_0x4f9f5b,_0x43f501){const _0x257548=a292_0x3a7e;return typeof _0x4f9f5b['checkedAt']===_0x257548(0x201)&&_0x43f501-_0x4f9f5b[_0x257548(0x1f6)]<UPDATE_CHECK_TTL_MS;}function isRecentlyNotified(_0x320cbd,_0x3c486c,_0x51742c){const _0xbd090d=a292_0x3a7e;return _0x320cbd[_0xbd090d(0x1f4)]===_0x3c486c&&typeof _0x320cbd[_0xbd090d(0x1e9)]===_0xbd090d(0x201)&&_0x51742c-_0x320cbd['lastNotifiedAt']<UPDATE_NOTICE_TTL_MS;}export function buildNpmVersionUrl(_0x57f334){const _0x141252=a292_0x3a7e;return _0x141252(0x1f1)+NPM_PACKAGE_NAME+_0x141252(0x1fe)+_0x57f334;}export async function resolveLatestUpdateNotice(){const _0x5e8c1c=a292_0x3a7e;if(isUpdateNoticeDisabled())return null;try{const _0x342ef0=Date[_0x5e8c1c(0x1f0)](),_0x189b4f=getCliVersion(),_0x48f59e=await readUpdateNoticeCache();let _0x30e45f=isFreshCheck(_0x48f59e,_0x342ef0)?_0x48f59e[_0x5e8c1c(0x204)]?.[_0x5e8c1c(0x203)]():undefined;if(!_0x30e45f&&!isFreshCheck(_0x48f59e,_0x342ef0)){const _0x298a09=await getCliVersionPolicy();_0x30e45f=_0x298a09?.[_0x5e8c1c(0x1f8)]?.[_0x5e8c1c(0x203)]()||undefined,await writeUpdateNoticeCache({..._0x48f59e,'checkedAt':_0x342ef0,'latest':_0x30e45f,'failed':!_0x30e45f});}if(!_0x30e45f||!a292_0x375736[_0x5e8c1c(0x1f2)](_0x189b4f)||!a292_0x375736[_0x5e8c1c(0x1f2)](_0x30e45f))return null;if(a292_0x375736['gte'](_0x189b4f,_0x30e45f))return null;if(isRecentlyNotified(_0x48f59e,_0x30e45f,_0x342ef0))return null;const _0x4d1dd4=CLI_BIN_NAME+_0x5e8c1c(0x1f3);return await writeUpdateNoticeCache({..._0x48f59e,'checkedAt':isFreshCheck(_0x48f59e,_0x342ef0)?_0x48f59e[_0x5e8c1c(0x1f6)]:_0x342ef0,'latest':_0x30e45f,'failed':![],'lastNotifiedVersion':_0x30e45f,'lastNotifiedAt':_0x342ef0}),{'command':_0x4d1dd4,'current':_0x189b4f,'latest':_0x30e45f,'url':buildNpmVersionUrl(_0x30e45f),'message':CLI_BIN_NAME+'\x20'+_0x30e45f+'\x20available,\x20current\x20'+_0x189b4f+_0x5e8c1c(0x1e5)+_0x4d1dd4};}catch{return null;}}
1
+ function a292_0x24bb(_0x14ee9a,_0x225c94){_0x14ee9a=_0x14ee9a-0xcc;const _0x2839ae=a292_0x2839();let _0x24bb60=_0x2839ae[_0x14ee9a];return _0x24bb60;}(function(_0x205a66,_0x2155fe){const _0x476b20=a292_0x24bb,_0x5e8a1c=_0x205a66();while(!![]){try{const _0x467e00=parseInt(_0x476b20(0xe5))/0x1+parseInt(_0x476b20(0xcf))/0x2+-parseInt(_0x476b20(0xcc))/0x3*(-parseInt(_0x476b20(0xe2))/0x4)+parseInt(_0x476b20(0xdc))/0x5+parseInt(_0x476b20(0xe1))/0x6+parseInt(_0x476b20(0xea))/0x7*(-parseInt(_0x476b20(0xd9))/0x8)+-parseInt(_0x476b20(0xcd))/0x9;if(_0x467e00===_0x2155fe)break;else _0x5e8a1c['push'](_0x5e8a1c['shift']());}catch(_0x52cb9d){_0x5e8a1c['push'](_0x5e8a1c['shift']());}}}(a292_0x2839,0xb8255));import{mkdir,readFile,writeFile}from'node:fs/promises';import{homedir}from'node:os';import{dirname,join}from'node:path';import a292_0x34d79b from'semver';import{CLI_BIN_NAME,NPM_PACKAGE_NAME}from'../constant/cli.js';function a292_0x2839(){const _0x41112d=['7azzrAr','958857Ttytaq','23986764PhzYre','latest','2533722FabMVr','valid','https://www.npmjs.com/package/','toLowerCase','.cache','utf8','parse','trim','lastNotifiedVersion','checkedAt','1934560yihErY','lastNotifiedAt','yes','2223225yoXwtr','true','number','now','object','2681226sxFbDk','16PUAmpz','rabetbase-cli','update-check.json','224424vGHxuE','gte','\x20available,\x20current\x20','\x20update',',\x20run:\x20'];a292_0x2839=function(){return _0x41112d;};return a292_0x2839();}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 _0x2b5a45=a292_0x24bb,_0x4d5543=process.env.RABETBASE_NO_UPDATE_NOTICE?.[_0x2b5a45(0xd6)]()[_0x2b5a45(0xd2)]();return _0x4d5543==='1'||_0x4d5543===_0x2b5a45(0xdd)||_0x4d5543===_0x2b5a45(0xdb);}function cacheRoot(){const _0x393571=a292_0x24bb;return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),_0x393571(0xd3));}export function getUpdateNoticeCachePath(){const _0x5380c7=a292_0x24bb;return join(cacheRoot(),_0x5380c7(0xe3),_0x5380c7(0xe4));}async function readUpdateNoticeCache(){const _0x3956ef=a292_0x24bb;try{const _0x105450=await readFile(getUpdateNoticeCachePath(),_0x3956ef(0xd4)),_0x1b4d87=JSON[_0x3956ef(0xd5)](_0x105450);if(!_0x1b4d87||typeof _0x1b4d87!==_0x3956ef(0xe0))return{};return _0x1b4d87;}catch{return{};}}async function writeUpdateNoticeCache(_0x286396){const _0x30c871=a292_0x24bb;try{const _0x380d13=getUpdateNoticeCachePath();await mkdir(dirname(_0x380d13),{'recursive':!![]}),await writeFile(_0x380d13,JSON['stringify'](_0x286396,null,0x2)+'\x0a',_0x30c871(0xd4));}catch{}}function isFreshCheck(_0x172451,_0x55f0c3){const _0x550dfa=a292_0x24bb;return typeof _0x172451[_0x550dfa(0xd8)]===_0x550dfa(0xde)&&_0x55f0c3-_0x172451['checkedAt']<UPDATE_CHECK_TTL_MS;}function isRecentlyNotified(_0x49b833,_0x20dc56,_0x2afa64){const _0x198c41=a292_0x24bb;return _0x49b833[_0x198c41(0xd7)]===_0x20dc56&&typeof _0x49b833['lastNotifiedAt']==='number'&&_0x2afa64-_0x49b833[_0x198c41(0xda)]<UPDATE_NOTICE_TTL_MS;}export function buildNpmVersionUrl(_0x38a335){const _0x56a3d8=a292_0x24bb;return _0x56a3d8(0xd1)+NPM_PACKAGE_NAME+'/v/'+_0x38a335;}export async function resolveLatestUpdateNotice(){const _0x3a614d=a292_0x24bb;if(isUpdateNoticeDisabled())return null;try{const _0x478638=Date[_0x3a614d(0xdf)](),_0x579f0e=getCliVersion(),_0x31a7d0=await readUpdateNoticeCache();let _0x1707bf=isFreshCheck(_0x31a7d0,_0x478638)?_0x31a7d0[_0x3a614d(0xce)]?.[_0x3a614d(0xd6)]():undefined;if(!_0x1707bf&&!isFreshCheck(_0x31a7d0,_0x478638)){const _0x4bd522=await getCliVersionPolicy();_0x1707bf=_0x4bd522?.['stableVersion']?.['trim']()||undefined,await writeUpdateNoticeCache({..._0x31a7d0,'checkedAt':_0x478638,'latest':_0x1707bf,'failed':!_0x1707bf});}if(!_0x1707bf||!a292_0x34d79b[_0x3a614d(0xd0)](_0x579f0e)||!a292_0x34d79b[_0x3a614d(0xd0)](_0x1707bf))return null;if(a292_0x34d79b[_0x3a614d(0xe6)](_0x579f0e,_0x1707bf))return null;if(isRecentlyNotified(_0x31a7d0,_0x1707bf,_0x478638))return null;const _0x27009a=CLI_BIN_NAME+_0x3a614d(0xe8);return await writeUpdateNoticeCache({..._0x31a7d0,'checkedAt':isFreshCheck(_0x31a7d0,_0x478638)?_0x31a7d0[_0x3a614d(0xd8)]:_0x478638,'latest':_0x1707bf,'failed':![],'lastNotifiedVersion':_0x1707bf,'lastNotifiedAt':_0x478638}),{'command':_0x27009a,'current':_0x579f0e,'latest':_0x1707bf,'url':buildNpmVersionUrl(_0x1707bf),'message':CLI_BIN_NAME+'\x20'+_0x1707bf+_0x3a614d(0xe7)+_0x579f0e+_0x3a614d(0xe9)+_0x27009a};}catch{return null;}}
@@ -1 +1 @@
1
- (function(_0x437771,_0x2542ce){var _0x43acb4=a293_0x2535,_0x23e2d0=_0x437771();while(!![]){try{var _0x22684b=-parseInt(_0x43acb4(0xff))/0x1*(parseInt(_0x43acb4(0xf6))/0x2)+parseInt(_0x43acb4(0xf7))/0x3+-parseInt(_0x43acb4(0xfb))/0x4+-parseInt(_0x43acb4(0xfc))/0x5*(parseInt(_0x43acb4(0xfe))/0x6)+-parseInt(_0x43acb4(0xfd))/0x7*(-parseInt(_0x43acb4(0xfa))/0x8)+-parseInt(_0x43acb4(0xf8))/0x9+-parseInt(_0x43acb4(0xf9))/0xa*(-parseInt(_0x43acb4(0x100))/0xb);if(_0x22684b===_0x2542ce)break;else _0x23e2d0['push'](_0x23e2d0['shift']());}catch(_0x5b7593){_0x23e2d0['push'](_0x23e2d0['shift']());}}}(a293_0x28dc,0x5656b));import{VERSION}from'../generated/build-info.js';export function getCliVersion(){return VERSION;}function a293_0x2535(_0x2f5fcf,_0x3cb8cf){_0x2f5fcf=_0x2f5fcf-0xf6;var _0x28dc7f=a293_0x28dc();var _0x253500=_0x28dc7f[_0x2f5fcf];return _0x253500;}function a293_0x28dc(){var _0x4ab78d=['597700xhEVqY','773576sRYFVg','1290204NfuDrr','4710stFBZz','49cTdyTQ','78DaODyB','25mQgZHK','143XCKaYX','40226pNKKGk','472821yEDbHb','3782079nfZDPT'];a293_0x28dc=function(){return _0x4ab78d;};return a293_0x28dc();}
1
+ function a293_0x2120(){var _0x4183d8=['5838610jdkqPU','3989802aZYCaM','16AqHMhT','27042hfobsy','2609369WyMBeW','565fYBkwl','268478kEIOYu','388654xHzKRL','33rmqIVO','3869001NaOYJF','4GtWAQI'];a293_0x2120=function(){return _0x4183d8;};return a293_0x2120();}(function(_0x24c1e4,_0x9d757f){var _0x31147f=a293_0x2d1e,_0x579331=_0x24c1e4();while(!![]){try{var _0x4c980d=parseInt(_0x31147f(0x1e7))/0x1+parseInt(_0x31147f(0x1e8))/0x2+-parseInt(_0x31147f(0x1e2))/0x3*(parseInt(_0x31147f(0x1e0))/0x4)+parseInt(_0x31147f(0x1e6))/0x5*(-parseInt(_0x31147f(0x1e4))/0x6)+-parseInt(_0x31147f(0x1e5))/0x7*(-parseInt(_0x31147f(0x1e3))/0x8)+-parseInt(_0x31147f(0x1df))/0x9+parseInt(_0x31147f(0x1e1))/0xa*(parseInt(_0x31147f(0x1e9))/0xb);if(_0x4c980d===_0x9d757f)break;else _0x579331['push'](_0x579331['shift']());}catch(_0x4266ec){_0x579331['push'](_0x579331['shift']());}}}(a293_0x2120,0xa8a78));function a293_0x2d1e(_0x1afacb,_0x4bdca5){_0x1afacb=_0x1afacb-0x1df;var _0x212042=a293_0x2120();var _0x2d1e56=_0x212042[_0x1afacb];return _0x2d1e56;}import{VERSION}from'../generated/build-info.js';export function getCliVersion(){return VERSION;}
@@ -1 +1 @@
1
- function a294_0x41b4(_0x226c3a,_0x87bfba){_0x226c3a=_0x226c3a-0x108;var _0x3e9b1a=a294_0x3e9b();var _0x41b4cc=_0x3e9b1a[_0x226c3a];return _0x41b4cc;}(function(_0x35bfa7,_0x525505){var _0x4354b4=a294_0x41b4,_0x331a52=_0x35bfa7();while(!![]){try{var _0x3de9d5=parseInt(_0x4354b4(0x109))/0x1+-parseInt(_0x4354b4(0x10b))/0x2+parseInt(_0x4354b4(0x108))/0x3*(parseInt(_0x4354b4(0x10f))/0x4)+parseInt(_0x4354b4(0x10d))/0x5+-parseInt(_0x4354b4(0x110))/0x6*(parseInt(_0x4354b4(0x10e))/0x7)+-parseInt(_0x4354b4(0x10c))/0x8+parseInt(_0x4354b4(0x10a))/0x9;if(_0x3de9d5===_0x525505)break;else _0x331a52['push'](_0x331a52['shift']());}catch(_0x248406){_0x331a52['push'](_0x331a52['shift']());}}}(a294_0x3e9b,0xd1d02));import{setActiveCookie,clearActiveCookie}from'../core/api-client.js';export async function withActiveCookie(_0x474625,_0x2cc196){setActiveCookie(_0x474625);try{return await _0x2cc196();}finally{clearActiveCookie();}}function a294_0x3e9b(){var _0xd5b52e=['2011062EVxxoP','7783408jCjCRF','645925EDZGDp','23037GuPIjv','8VxypHr','558zyUyiQ','1013658oBpvZC','277606MPkOmq','18552159oOdUFA'];a294_0x3e9b=function(){return _0xd5b52e;};return a294_0x3e9b();}
1
+ (function(_0x5c57e1,_0x48b8bd){var _0x13faf8=a294_0xc3a9,_0x2e8f50=_0x5c57e1();while(!![]){try{var _0x3c27be=-parseInt(_0x13faf8(0x86))/0x1*(parseInt(_0x13faf8(0x80))/0x2)+-parseInt(_0x13faf8(0x83))/0x3*(parseInt(_0x13faf8(0x8b))/0x4)+parseInt(_0x13faf8(0x89))/0x5+-parseInt(_0x13faf8(0x87))/0x6*(-parseInt(_0x13faf8(0x88))/0x7)+-parseInt(_0x13faf8(0x84))/0x8*(-parseInt(_0x13faf8(0x82))/0x9)+-parseInt(_0x13faf8(0x81))/0xa*(-parseInt(_0x13faf8(0x8a))/0xb)+-parseInt(_0x13faf8(0x85))/0xc;if(_0x3c27be===_0x48b8bd)break;else _0x2e8f50['push'](_0x2e8f50['shift']());}catch(_0x32bff6){_0x2e8f50['push'](_0x2e8f50['shift']());}}}(a294_0x5b65,0xeb847));function a294_0x5b65(){var _0x2b4335=['774131kscTrg','9058290yGCYUQ','7mepfkx','7146555vmmBkp','176QgeCFN','204604BjzOYc','4fiAmpn','30230roIYgZ','27LKJtrH','18rUYnmg','3970280AAcZBC','19876824ddQOtK'];a294_0x5b65=function(){return _0x2b4335;};return a294_0x5b65();}import{setActiveCookie,clearActiveCookie}from'../core/api-client.js';function a294_0xc3a9(_0xcbed74,_0x19264a){_0xcbed74=_0xcbed74-0x80;var _0x5b65b5=a294_0x5b65();var _0xc3a9e3=_0x5b65b5[_0xcbed74];return _0xc3a9e3;}export async function withActiveCookie(_0xd913d2,_0x4f170d){setActiveCookie(_0xd913d2);try{return await _0x4f170d();}finally{clearActiveCookie();}}
@@ -1 +1 @@
1
- function a295_0x2dd3(_0x470480,_0x111e21){_0x470480=_0x470480-0x1a6;var _0x3fa145=a295_0x3fa1();var _0x2dd33b=_0x3fa145[_0x470480];return _0x2dd33b;}(function(_0x52367e,_0x3b3950){var _0x592222=a295_0x2dd3,_0x10c89e=_0x52367e();while(!![]){try{var _0x1302c5=-parseInt(_0x592222(0x1af))/0x1*(parseInt(_0x592222(0x1a8))/0x2)+-parseInt(_0x592222(0x1ae))/0x3*(parseInt(_0x592222(0x1b2))/0x4)+parseInt(_0x592222(0x1ad))/0x5*(parseInt(_0x592222(0x1b0))/0x6)+-parseInt(_0x592222(0x1ab))/0x7+-parseInt(_0x592222(0x1a6))/0x8+parseInt(_0x592222(0x1b1))/0x9*(parseInt(_0x592222(0x1a7))/0xa)+parseInt(_0x592222(0x1ac))/0xb;if(_0x1302c5===_0x3b3950)break;else _0x10c89e['push'](_0x10c89e['shift']());}catch(_0x47fff1){_0x10c89e['push'](_0x10c89e['shift']());}}}(a295_0x3fa1,0xada25));function a295_0x3fa1(){var _0x1618fa=['stderr','write','1287566hLJJmR','42388819VKFkdu','5BLmkYl','100185aHerYO','1AaFpby','191190RmKdQE','18vEnixR','156ZFiXDh','4785128DkLZmO','292460msZVrv','2296394FpnpTZ'];a295_0x3fa1=function(){return _0x1618fa;};return a295_0x3fa1();}export function writeCliSideChannelLine(_0x4e65d7){var _0x4ee32b=a295_0x2dd3;process[_0x4ee32b(0x1a9)][_0x4ee32b(0x1aa)](_0x4e65d7+'\x0a');}
1
+ (function(_0x4a8dcb,_0x5b5ad1){var _0xa8bb58=a295_0x4831,_0x3e4e09=_0x4a8dcb();while(!![]){try{var _0x27a676=parseInt(_0xa8bb58(0x116))/0x1*(parseInt(_0xa8bb58(0x114))/0x2)+parseInt(_0xa8bb58(0x117))/0x3+parseInt(_0xa8bb58(0x112))/0x4+parseInt(_0xa8bb58(0x10f))/0x5*(parseInt(_0xa8bb58(0x110))/0x6)+-parseInt(_0xa8bb58(0x118))/0x7+-parseInt(_0xa8bb58(0x113))/0x8+parseInt(_0xa8bb58(0x115))/0x9*(-parseInt(_0xa8bb58(0x111))/0xa);if(_0x27a676===_0x5b5ad1)break;else _0x3e4e09['push'](_0x3e4e09['shift']());}catch(_0x5cced6){_0x3e4e09['push'](_0x3e4e09['shift']());}}}(a295_0x13c4,0xb7804));function a295_0x13c4(){var _0x581565=['4762faYaei','2401125vwnQFZ','7495684OFFwnG','write','1205920XddmJI','24gOMfhe','4621070LwNubs','3558844RHtlQH','5511608cZMQNt','522DylnZc','27QpurFi'];a295_0x13c4=function(){return _0x581565;};return a295_0x13c4();}function a295_0x4831(_0x30a962,_0x4aa335){_0x30a962=_0x30a962-0x10f;var _0x13c4a1=a295_0x13c4();var _0x4831c7=_0x13c4a1[_0x30a962];return _0x4831c7;}export function writeCliSideChannelLine(_0x4f9cc7){var _0x1b5bb4=a295_0x4831;process['stderr'][_0x1b5bb4(0x119)](_0x4f9cc7+'\x0a');}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lovrabet/rabetbase-cli",
3
- "version": "2.5.0-beta.4",
3
+ "version": "2.5.0-beta.6",
4
4
  "description": "Developer CLI for Lovrabet apps, datasets, pages, SQL, Backend Function, database connections, skills, and AI agent workflows.",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "keywords": [
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: rabetbase
3
- version: 2.5.0-beta.4
3
+ version: 2.5.0-beta.6
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-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:
@@ -158,7 +158,7 @@ metadata:
158
158
  - **普通写操作默认当前项目**(`workspace add`、`config set`、`project create` 等),除非用户**显式**传 `--global`;`config init` 是首次连接配置入口,固定写全局配置。
159
159
  - **不要**在用户未要求时给命令加 `--global`** — 默认行为已是「项目优先」;只有用户明确要改全局配置或不在项目内且意图写全局时才使用。
160
160
  - **`config set`**:在**没有**项目配置文件(当前目录未解析到 `.rabetbase.json`)且**未**传 `--global` 时,CLI **拒绝执行**并提示使用 `--global` 或先 `rabetbase workspace init --appcode <code>`,**不会**静默写入全局。
161
- - **`project create`** 生成的新项目 `.rabetbase.json` **只继承**少量全局偏好(如 `cookie` / `locale` / `format` / `riskLevel` 等),**不会**把全局 `apps` / `defaultApp` 带入新项目文件;同时生成浏览器安全的 `src/api/sdk-config.ts`:默认 CN 不写路由,ID 写 `region: "id"`,非默认企业 Runtime 写 `runtimeDomain` 且优先于 region,不下发认证配置。
161
+ - **`project create`** 生成的新项目 `.rabetbase.json` **只继承**少量全局偏好(如 `cookie` / `locale` / `format` / `riskLevel` 等),**不会**把全局 `apps` / `defaultApp` 带入新项目文件;同时生成浏览器安全的 `src/api/sdk-config.ts`:默认中国大陆节点不写路由,ID 写 `region: "id"`,非默认企业 Runtime 写 `runtimeDomain` 且优先于 region,不下发认证配置。模板的 Vite 本地开发和 preview 地址也按项目 region 选择对应的 HTTPS 域名与证书:ID 使用 `https://dev.lovrabet.id`,中国大陆使用 `https://dev.lovrabet.com`。
162
162
  - **`api pull` / `api list`**:默认仅针对**项目** `apps`;需要合并全局已登记应用时加 `--global`(见各命令 reference)。
163
163
  - **`app list`**:默认展示**合并**后的全量;`--global` 仅全局、`--project` 仅项目(见 [`rabetbase app list`](references/rabetbase-app-list.md))。
164
164
 
@@ -2,8 +2,8 @@
2
2
  "schemaVersion": 1,
3
3
  "name": "rabetbase",
4
4
  "packageName": "@lovrabet/rabetbase-cli",
5
- "packageVersion": "2.5.0-beta.4",
6
- "skillVersion": "2.5.0-beta.4",
5
+ "packageVersion": "2.5.0-beta.6",
6
+ "skillVersion": "2.5.0-beta.6",
7
7
  "files": [
8
8
  "SKILL.md",
9
9
  "guides/backend-function.md",
@@ -132,5 +132,5 @@
132
132
  "references/rabetbase-user-account.md",
133
133
  "references/rabetbase-workspace.md"
134
134
  ],
135
- "digest": "ad142c625ec3689e365d1ac4e1da91dce5a07cbb38907b361fb9c9d612ef32a5"
135
+ "digest": "30e9598e71aa66da0a7bcbcf998c3092c2126ab9ad8b82a0fccd69737bfe47f0"
136
136
  }