@lovrabet/rabetbase-cli 2.2.3 → 2.2.4-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 (205) 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/add.js +1 -1
  20. package/lib/commands/app/discover.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/remove.js +1 -1
  24. package/lib/commands/app/shared.js +1 -1
  25. package/lib/commands/app/use.js +1 -1
  26. package/lib/commands/auth/index.js +1 -1
  27. package/lib/commands/bff/create.js +1 -1
  28. package/lib/commands/bff/delete.js +1 -1
  29. package/lib/commands/bff/detail.js +1 -1
  30. package/lib/commands/bff/index.js +1 -1
  31. package/lib/commands/bff/list.js +1 -1
  32. package/lib/commands/bff/pull.js +1 -1
  33. package/lib/commands/bff/push.js +1 -1
  34. package/lib/commands/bff/status.js +1 -1
  35. package/lib/commands/cli-update.js +1 -1
  36. package/lib/commands/codegen/index.js +1 -1
  37. package/lib/commands/codegen/sdk.js +1 -1
  38. package/lib/commands/codegen/sql.js +1 -1
  39. package/lib/commands/common/app-selector.js +1 -1
  40. package/lib/commands/common/flags.js +1 -1
  41. package/lib/commands/common/validate.js +1 -1
  42. package/lib/commands/config/get.js +1 -1
  43. package/lib/commands/config/index.js +1 -1
  44. package/lib/commands/config/list.js +1 -1
  45. package/lib/commands/config/set.js +1 -1
  46. package/lib/commands/config/shared.js +1 -1
  47. package/lib/commands/data/filter.js +1 -1
  48. package/lib/commands/data/getOne.js +1 -1
  49. package/lib/commands/data/index.js +1 -1
  50. package/lib/commands/data/shared.js +1 -1
  51. package/lib/commands/dataset/capability.js +1 -1
  52. package/lib/commands/dataset/delete.js +1 -1
  53. package/lib/commands/dataset/detail.js +1 -1
  54. package/lib/commands/dataset/extend-update.js +1 -1
  55. package/lib/commands/dataset/field-update.js +1 -1
  56. package/lib/commands/dataset/index.js +1 -1
  57. package/lib/commands/dataset/list.js +1 -1
  58. package/lib/commands/dataset/operations.js +1 -1
  59. package/lib/commands/dataset/relation-create.js +1 -1
  60. package/lib/commands/dataset/relation-delete.js +1 -1
  61. package/lib/commands/dataset/relation-shared.js +1 -1
  62. package/lib/commands/dataset/relation-update.js +1 -1
  63. package/lib/commands/dataset/relations.js +1 -1
  64. package/lib/commands/dataset/rename.js +1 -1
  65. package/lib/commands/db/analyze-cancel.js +1 -1
  66. package/lib/commands/db/analyze-start.js +1 -1
  67. package/lib/commands/db/analyze-status.js +1 -1
  68. package/lib/commands/db/create.js +1 -1
  69. package/lib/commands/db/delete.js +1 -1
  70. package/lib/commands/db/detail.js +1 -1
  71. package/lib/commands/db/diff.js +1 -1
  72. package/lib/commands/db/index.js +1 -1
  73. package/lib/commands/db/list.js +1 -1
  74. package/lib/commands/db/shared.js +1 -1
  75. package/lib/commands/db/tables.js +1 -1
  76. package/lib/commands/db/test.js +1 -1
  77. package/lib/commands/db/update.js +1 -1
  78. package/lib/commands/doctor.js +1 -1
  79. package/lib/commands/init/index.js +1 -1
  80. package/lib/commands/issue/index.js +1 -1
  81. package/lib/commands/issue/nudge.js +1 -1
  82. package/lib/commands/issue/report.js +1 -1
  83. package/lib/commands/issue/shared.js +1 -1
  84. package/lib/commands/logs/index.js +1 -1
  85. package/lib/commands/menu/index.js +1 -1
  86. package/lib/commands/menu/list.js +1 -1
  87. package/lib/commands/menu/shared/compare-table.js +1 -1
  88. package/lib/commands/menu/shared/index.js +1 -1
  89. package/lib/commands/menu/shared/inquirer.js +1 -1
  90. package/lib/commands/menu/shared/local-pages.js +1 -1
  91. package/lib/commands/menu/shared/logic.js +1 -1
  92. package/lib/commands/menu/shared/service.js +1 -1
  93. package/lib/commands/menu/shared/sync-core.js +1 -1
  94. package/lib/commands/menu/shared/update-core.js +1 -1
  95. package/lib/commands/menu/shared/valid-url.js +1 -1
  96. package/lib/commands/menu/sync.js +1 -1
  97. package/lib/commands/menu/update.js +1 -1
  98. package/lib/commands/page/generate-start.js +1 -1
  99. package/lib/commands/page/generate-status.js +1 -1
  100. package/lib/commands/page/index.js +1 -1
  101. package/lib/commands/page/pull.js +1 -1
  102. package/lib/commands/page/push.js +1 -1
  103. package/lib/commands/page/relation-audit.js +1 -1
  104. package/lib/commands/page/shared.js +1 -1
  105. package/lib/commands/page/standard-page-status.js +1 -1
  106. package/lib/commands/page/sync.js +1 -1
  107. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  108. package/lib/commands/project/create/format-elapsed.js +1 -1
  109. package/lib/commands/project/create/main.js +1 -1
  110. package/lib/commands/project/create/non-interactive.js +1 -1
  111. package/lib/commands/project/create/project-template-path.js +1 -1
  112. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  113. package/lib/commands/project/create/use-format-code.js +1 -1
  114. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  115. package/lib/commands/project/index.js +1 -1
  116. package/lib/commands/project/init.js +1 -1
  117. package/lib/commands/project/upgrade.js +1 -1
  118. package/lib/commands/registry.js +1 -1
  119. package/lib/commands/run/index.js +1 -1
  120. package/lib/commands/schema.js +1 -1
  121. package/lib/commands/skill/index.js +1 -1
  122. package/lib/commands/sql/create.js +1 -1
  123. package/lib/commands/sql/delete.js +1 -1
  124. package/lib/commands/sql/detail.js +1 -1
  125. package/lib/commands/sql/exec.js +1 -1
  126. package/lib/commands/sql/index.js +1 -1
  127. package/lib/commands/sql/list.js +1 -1
  128. package/lib/commands/sql/pull.js +1 -1
  129. package/lib/commands/sql/push.js +1 -1
  130. package/lib/commands/sql/save.js +1 -1
  131. package/lib/commands/sql/shared.js +1 -1
  132. package/lib/commands/sql/status.js +1 -1
  133. package/lib/commands/sql/validate.js +1 -1
  134. package/lib/config/schema.js +1 -1
  135. package/lib/constant/cdn.js +1 -1
  136. package/lib/constant/cli.js +1 -1
  137. package/lib/constant/defaults.js +1 -1
  138. package/lib/constant/domain.js +1 -1
  139. package/lib/constant/env.js +1 -1
  140. package/lib/constant/output.js +1 -1
  141. package/lib/constant/paths.js +1 -1
  142. package/lib/constant/risk.js +1 -1
  143. package/lib/context.js +1 -1
  144. package/lib/core/alias-resolver.js +1 -1
  145. package/lib/core/api-client.js +1 -1
  146. package/lib/core/bff/config.js +1 -1
  147. package/lib/core/bff/file-system.js +1 -1
  148. package/lib/core/bff/hash.js +1 -1
  149. package/lib/core/bff/lock.js +1 -1
  150. package/lib/core/bff/utils.js +1 -1
  151. package/lib/core/db-resolver.js +1 -1
  152. package/lib/core/page/file-system.js +1 -1
  153. package/lib/core/page/hash.js +1 -1
  154. package/lib/core/page/lock.js +1 -1
  155. package/lib/core/sql-sync/config.js +1 -1
  156. package/lib/core/sql-sync/file-system.js +1 -1
  157. package/lib/core/sql-sync/hash.js +1 -1
  158. package/lib/core/sql-sync/lock.js +1 -1
  159. package/lib/core/sql-sync/utils.js +1 -1
  160. package/lib/core/sql-validator.js +1 -1
  161. package/lib/errors.js +1 -1
  162. package/lib/framework/build-all-flags.js +1 -1
  163. package/lib/framework/flags.js +1 -1
  164. package/lib/framework/help.js +1 -1
  165. package/lib/framework/index.js +1 -1
  166. package/lib/framework/output.js +1 -1
  167. package/lib/framework/response.js +1 -1
  168. package/lib/framework/runner-alias.js +1 -1
  169. package/lib/framework/runner.js +1 -1
  170. package/lib/framework/schema-export.js +1 -1
  171. package/lib/framework/types.js +1 -1
  172. package/lib/generated/build-info.js +1 -1
  173. package/lib/help.js +1 -1
  174. package/lib/skills/main.js +1 -1
  175. package/lib/skills/npx-skills-add.js +1 -1
  176. package/lib/telemetry/cli-command-trace.js +1 -1
  177. package/lib/telemetry/cli-help-trace.js +1 -1
  178. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  179. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  180. package/lib/telemetry/send-cli-trace-log.js +1 -1
  181. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  182. package/lib/utils/ai_config.js +1 -1
  183. package/lib/utils/apply-jq-filter.js +1 -1
  184. package/lib/utils/cdn-config.js +1 -1
  185. package/lib/utils/check-sdk-version.js +1 -1
  186. package/lib/utils/cli-version-check.js +1 -1
  187. package/lib/utils/cli-version-policy.js +1 -1
  188. package/lib/utils/config.js +1 -1
  189. package/lib/utils/copy-directory.js +1 -1
  190. package/lib/utils/entity-with-id.js +1 -1
  191. package/lib/utils/file-utils.js +1 -1
  192. package/lib/utils/guides-cdn.js +1 -1
  193. package/lib/utils/http-client.js +1 -1
  194. package/lib/utils/is-non-interactive.js +1 -1
  195. package/lib/utils/logger.js +1 -1
  196. package/lib/utils/params.js +1 -1
  197. package/lib/utils/platform.js +1 -1
  198. package/lib/utils/rules-cdn.js +1 -1
  199. package/lib/utils/sleep.js +1 -1
  200. package/lib/utils/template-replacer.js +1 -1
  201. package/lib/utils/update-notice.js +1 -1
  202. package/lib/utils/version.js +1 -1
  203. package/lib/utils/with-active-cookie.js +1 -1
  204. package/lib/utils/write-cli-side-channel.js +1 -1
  205. package/package.json +1 -1
@@ -1 +1 @@
1
- function a204_0x3dbf(){const _0xa26bcd=['slice','readFile','success','11358iCdkIc','name','7803000eaXABQ','processTemplate','datasetCode','replace','模板内容替换完成','1899968vXcygJ','1468530vWjbye','template','extname','replaceContent','tableName','isDirectory','promises','pad','YourModel','toUpperCase','368406UEPjFs','8lEsOJc','.json','toDisplayTitle','readdir','info','split','模板内容替换失败','utf8','default','formatLocalTimestamp','isFile','getFullYear','writeFile','getMinutes','getSeconds','.md','error','2155455rmhlCy','push','api','pop','toComponentName','processDirectory','.scss','now','\x0a\x20\x20\x20\x20{\x20','.css','message','endsWith','copyFile','mkdir','10032aTWwvJ','.tpl','toISOString','1912lCBJoJ','join','72sPwVVa','toLowerCase','LOVRABET','name:\x20\x22','datasetCode:\x20\x22','map','charAt','alias:\x20\x22','.js','processFile','alias'];a204_0x3dbf=function(){return _0xa26bcd;};return a204_0x3dbf();}const a204_0x2a9413=a204_0x2921;(function(_0x21108e,_0x20fd8a){const _0x4c2b5d=a204_0x2921,_0x1edf60=_0x21108e();while(!![]){try{const _0x54cb66=parseInt(_0x4c2b5d(0xc6))/0x1*(-parseInt(_0x4c2b5d(0xc1))/0x2)+-parseInt(_0x4c2b5d(0xe6))/0x3*(-parseInt(_0x4c2b5d(0xe7))/0x4)+parseInt(_0x4c2b5d(0xb3))/0x5+-parseInt(_0x4c2b5d(0xdc))/0x6+-parseInt(_0x4c2b5d(0xdb))/0x7+parseInt(_0x4c2b5d(0xc4))/0x8*(-parseInt(_0x4c2b5d(0xd4))/0x9)+parseInt(_0x4c2b5d(0xd6))/0xa;if(_0x54cb66===_0x20fd8a)break;else _0x1edf60['push'](_0x1edf60['shift']());}catch(_0x576ea5){_0x1edf60['push'](_0x1edf60['shift']());}}}(a204_0x3dbf,0x43e1e));import a204_0x107c1c from'node:fs';import a204_0x20d27a from'node:path';import{logger}from'../utils/logger.js';import{getCliVersion}from'../utils/version.js';function a204_0x2921(_0x47d8e4,_0x2f38a4){_0x47d8e4=_0x47d8e4-0xa8;const _0x3dbfef=a204_0x3dbf();let _0x2921a0=_0x3dbfef[_0x47d8e4];return _0x2921a0;}const CLI_VERSION=getCliVersion();export class TemplateReplacer{static[a204_0x2a9413(0xe3)](_0x5bacf5){return String(_0x5bacf5)['padStart'](0x2,'0');}static['formatLocalTimestamp'](_0x327f06){const _0x356c29=a204_0x2a9413,_0x450d52=_0x327f06[_0x356c29(0xad)](),_0x55675=this[_0x356c29(0xe3)](_0x327f06['getMonth']()+0x1),_0x5e48d3=this[_0x356c29(0xe3)](_0x327f06['getDate']()),_0x5162c0=this[_0x356c29(0xe3)](_0x327f06['getHours']()),_0x44a604=this[_0x356c29(0xe3)](_0x327f06[_0x356c29(0xaf)]()),_0x3c85d6=this[_0x356c29(0xe3)](_0x327f06[_0x356c29(0xb0)]());return{'createdAt':_0x450d52+'-'+_0x55675+'-'+_0x5e48d3+'\x20'+_0x5162c0+':'+_0x44a604+':'+_0x3c85d6,'createdDate':_0x450d52+'-'+_0x55675+'-'+_0x5e48d3,'createdTime':_0x5162c0+':'+_0x44a604+':'+_0x3c85d6};}static[a204_0x2a9413(0xb7)](_0x496a6a){const _0x419457=a204_0x2a9413,_0x3a866d=_0x496a6a[_0x419457(0xec)]('/')[_0x419457(0xb6)]()||_0x496a6a;return _0x3a866d[_0x419457(0xec)]('-')['map'](_0x159f3d=>_0x159f3d[_0x419457(0xcc)](0x0)[_0x419457(0xe5)]()+_0x159f3d['slice'](0x1)[_0x419457(0xc7)]())['join']('');}static[a204_0x2a9413(0xe9)](_0xd173f){const _0x37136b=a204_0x2a9413,_0x23a871=_0xd173f[_0x37136b(0xec)]('/')[_0x37136b(0xb6)]()||_0xd173f;return _0x23a871[_0x37136b(0xec)]('-')[_0x37136b(0xcb)](_0x456b58=>_0x456b58[_0x37136b(0xcc)](0x0)[_0x37136b(0xe5)]()+_0x456b58[_0x37136b(0xd1)](0x1)[_0x37136b(0xc7)]())[_0x37136b(0xc5)]('\x20');}static[a204_0x2a9413(0xdf)](_0x4c8885,_0x5e7960,_0x447dbe){const _0x12a6f8=a204_0x2a9413,_0x54a866=this[_0x12a6f8(0xb7)](_0x5e7960),_0x59b67b=this['toDisplayTitle'](_0x5e7960),{createdAt:_0x2aa573,createdDate:_0x107d83,createdTime:_0x8982fc}=this[_0x12a6f8(0xab)](new Date());let _0x2c282e=_0x4c8885[_0x12a6f8(0xd9)](/\{CliVersion\}/g,CLI_VERSION)[_0x12a6f8(0xd9)](/\{ComponentName\}/g,_0x54a866)[_0x12a6f8(0xd9)](/\{DisplayTitle\}/g,_0x59b67b)[_0x12a6f8(0xd9)](/\{PageName\}/g,_0x5e7960)[_0x12a6f8(0xd9)](/\{TemplateName\}/g,_0x447dbe)[_0x12a6f8(0xd9)](/\{CreatedAt\}/g,_0x2aa573)[_0x12a6f8(0xd9)](/\{CreatedDate\}/g,_0x107d83)[_0x12a6f8(0xd9)](/\{CreatedTime\}/g,_0x8982fc);return _0x2c282e;}static['replaceApiContent'](_0x2de1b2,_0x669b94,_0x2a2beb,_0x11c806,_0x25c2a2,_0x1192ea,_0x12e7de,_0x3807b8){const _0x2217a0=a204_0x2a9413,_0x37b5da=new Date(),_0x5da266=_0x37b5da[_0x2217a0(0xc3)](),_0x55de60=_0x2a2beb[_0x2217a0(0xcb)](_0x48c39f=>{const _0x1e83c4=_0x2217a0,_0x23b3a7=[_0x1e83c4(0xca)+_0x48c39f[_0x1e83c4(0xd8)]+'\x22','tableName:\x20\x22'+_0x48c39f[_0x1e83c4(0xe0)]+'\x22',_0x1e83c4(0xc9)+_0x48c39f[_0x1e83c4(0xd5)]+'\x22'];return _0x48c39f['alias']&&_0x23b3a7[_0x1e83c4(0xb4)](_0x1e83c4(0xcd)+_0x48c39f[_0x1e83c4(0xd0)]+'\x22'),_0x1e83c4(0xbb)+_0x23b3a7['join'](',\x20')+'\x20},';})[_0x2217a0(0xc5)](''),_0x5bdf21=_0x11c806||_0x2a2beb[0x0]?.[_0x2217a0(0xd0)]||_0x2217a0(0xe4);let _0x4b5bca=_0x2de1b2[_0x2217a0(0xd9)](/\{AppCode\}/g,_0x669b94)['replace'](/\{ModelConfigs\}/g,_0x55de60)[_0x2217a0(0xd9)](/\{ExampleModelName\}/g,_0x5bdf21)[_0x2217a0(0xd9)](/\{ApiFileName\}/g,_0x25c2a2||_0x2217a0(0xb5))[_0x2217a0(0xd9)](/\{ConfigName\}/g,_0x1192ea||_0x2217a0(0xaa))[_0x2217a0(0xd9)](/\{ClientConfigParam\}/g,_0x12e7de||'')[_0x2217a0(0xd9)](/\{VarPrefix\}/g,_0x3807b8||_0x2217a0(0xc8))[_0x2217a0(0xd9)](/\{CreatedAt\}/g,_0x5da266);return _0x4b5bca;}static async[a204_0x2a9413(0xd7)](_0x250a0c,_0x41230c,_0x5c8ea0,_0x5b1460,_0x45433b=!![]){const _0x4bd6a3=a204_0x2a9413,_0x2ba2d7=Date[_0x4bd6a3(0xba)]();try{_0x45433b&&logger[_0x4bd6a3(0xeb)](_0x4bd6a3(0xdd),'开始处理模板内容替换',{'templatePath':_0x250a0c,'targetPath':_0x41230c,'pageName':_0x5c8ea0,'templateName':_0x5b1460});await a204_0x107c1c[_0x4bd6a3(0xe2)][_0x4bd6a3(0xc0)](_0x41230c,{'recursive':!![]}),await this[_0x4bd6a3(0xb8)](_0x250a0c,_0x41230c,_0x5c8ea0,_0x5b1460);if(_0x45433b){const _0x49168d=Date[_0x4bd6a3(0xba)]()-_0x2ba2d7;logger[_0x4bd6a3(0xd3)](_0x4bd6a3(0xdd),_0x4bd6a3(0xda),_0x49168d,{'pageName':_0x5c8ea0,'templateName':_0x5b1460});}}catch(_0x14f624){if(_0x45433b){const _0x5505ef=Date[_0x4bd6a3(0xba)]()-_0x2ba2d7;logger[_0x4bd6a3(0xb2)]('template',_0x4bd6a3(0xa8),{'templatePath':_0x250a0c,'targetPath':_0x41230c,'pageName':_0x5c8ea0,'templateName':_0x5b1460,'error':_0x14f624 instanceof Error?_0x14f624[_0x4bd6a3(0xbd)]:String(_0x14f624),'duration':_0x5505ef});}throw _0x14f624;}}static async[a204_0x2a9413(0xb8)](_0x96cf1,_0x19a2af,_0x5b2598,_0x43c862){const _0x2f759c=a204_0x2a9413,_0x296a0f=await a204_0x107c1c[_0x2f759c(0xe2)][_0x2f759c(0xea)](_0x96cf1,{'withFileTypes':!![]});for(const _0x529d4b of _0x296a0f){const _0x3bc21f=a204_0x20d27a[_0x2f759c(0xc5)](_0x96cf1,_0x529d4b[_0x2f759c(0xd5)]);let _0x853abd=a204_0x20d27a[_0x2f759c(0xc5)](_0x19a2af,_0x529d4b['name']);_0x529d4b[_0x2f759c(0xd5)][_0x2f759c(0xbe)](_0x2f759c(0xc2))&&(_0x853abd=a204_0x20d27a[_0x2f759c(0xc5)](_0x19a2af,_0x529d4b[_0x2f759c(0xd5)]['replace'](/\.tpl$/,'')));if(_0x529d4b[_0x2f759c(0xe1)]())await a204_0x107c1c[_0x2f759c(0xe2)][_0x2f759c(0xc0)](_0x853abd,{'recursive':!![]}),await this['processDirectory'](_0x3bc21f,_0x853abd,_0x5b2598,_0x43c862);else _0x529d4b[_0x2f759c(0xac)]()&&await this[_0x2f759c(0xcf)](_0x3bc21f,_0x853abd,_0x5b2598,_0x43c862);}}static async['processFile'](_0x4cde2b,_0x10f50f,_0x123ac6,_0x4a1ef6){const _0x19f263=a204_0x2a9413,_0x328fbe=a204_0x20d27a[_0x19f263(0xde)](_0x4cde2b)['toLowerCase']();_0x4cde2b[_0x19f263(0xbe)](_0x19f263(0xc2))&&(_0x10f50f=_0x10f50f[_0x19f263(0xd9)](/\.tpl$/,''));const _0x96f1d3=['.tsx','.ts','.jsx',_0x19f263(0xce),_0x19f263(0xe8),_0x19f263(0xb1),_0x19f263(0xbc),_0x19f263(0xb9),_0x19f263(0xc2)];if(_0x96f1d3['includes'](_0x328fbe)||_0x4cde2b[_0x19f263(0xbe)](_0x19f263(0xc2))){const _0x926e68=await a204_0x107c1c[_0x19f263(0xe2)][_0x19f263(0xd2)](_0x4cde2b,_0x19f263(0xa9)),_0x281587=this[_0x19f263(0xdf)](_0x926e68,_0x123ac6,_0x4a1ef6);await a204_0x107c1c['promises'][_0x19f263(0xae)](_0x10f50f,_0x281587,_0x19f263(0xa9));}else await a204_0x107c1c[_0x19f263(0xe2)][_0x19f263(0xbf)](_0x4cde2b,_0x10f50f);}}
1
+ const a204_0x18f0a1=a204_0x2bd8;(function(_0xf9b067,_0x31a579){const _0x3e870d=a204_0x2bd8,_0x44937e=_0xf9b067();while(!![]){try{const _0x40b33a=-parseInt(_0x3e870d(0x7c))/0x1*(parseInt(_0x3e870d(0xae))/0x2)+parseInt(_0x3e870d(0x9b))/0x3*(parseInt(_0x3e870d(0x83))/0x4)+parseInt(_0x3e870d(0xa5))/0x5+-parseInt(_0x3e870d(0x99))/0x6+-parseInt(_0x3e870d(0x9e))/0x7+-parseInt(_0x3e870d(0xad))/0x8*(-parseInt(_0x3e870d(0xac))/0x9)+parseInt(_0x3e870d(0x70))/0xa;if(_0x40b33a===_0x31a579)break;else _0x44937e['push'](_0x44937e['shift']());}catch(_0x5656bf){_0x44937e['push'](_0x44937e['shift']());}}}(a204_0x4a71,0x2e17c));import a204_0x474377 from'node:fs';function a204_0x4a71(){const _0x268ff7=['2043XDiAoR','getDate','promises','datasetCode:\x20\x22','extname','toComponentName','toDisplayTitle','1236dePVsi','slice','getMinutes','api','utf8','\x20},','.jsx','.md','default','isDirectory','YourModel','getSeconds','getHours','readdir','replaceContent','processFile','join','.ts','toISOString','alias','pop','replaceApiContent','2004960xGOMnN','isFile','474yqtONO','tableName:\x20\x22','now','1760486IoFAUl','tableName','.tpl','map','name:\x20\x22','.css','formatLocalTimestamp','1596480ommyUg','mkdir','toLowerCase','LOVRABET','processDirectory','getFullYear','endsWith','45YxWNbS','590528IGXWcj','54BqBaiz','\x0a\x20\x20\x20\x20{\x20','getMonth','info','replace','processTemplate','split','padStart','924170DMyXhx','template','pad','模板内容替换失败','datasetCode','name','.tsx','includes','error','.json','copyFile','charAt'];a204_0x4a71=function(){return _0x268ff7;};return a204_0x4a71();}import a204_0x16e4ac from'node:path';import{logger}from'../utils/logger.js';function a204_0x2bd8(_0x4ca5e1,_0x161c3e){_0x4ca5e1=_0x4ca5e1-0x6e;const _0x4a7188=a204_0x4a71();let _0x2bd87b=_0x4a7188[_0x4ca5e1];return _0x2bd87b;}import{getCliVersion}from'../utils/version.js';const CLI_VERSION=getCliVersion();export class TemplateReplacer{static['pad'](_0x44e3bd){const _0x2fddc2=a204_0x2bd8;return String(_0x44e3bd)[_0x2fddc2(0x6f)](0x2,'0');}static[a204_0x18f0a1(0xa4)](_0x50f93){const _0x5d5567=a204_0x18f0a1,_0x277247=_0x50f93[_0x5d5567(0xaa)](),_0x38b7ef=this[_0x5d5567(0x72)](_0x50f93[_0x5d5567(0xb0)]()+0x1),_0x159f31=this[_0x5d5567(0x72)](_0x50f93[_0x5d5567(0x7d)]()),_0x427fde=this[_0x5d5567(0x72)](_0x50f93[_0x5d5567(0x8f)]()),_0x37fa86=this['pad'](_0x50f93[_0x5d5567(0x85)]()),_0x5a1ba9=this[_0x5d5567(0x72)](_0x50f93[_0x5d5567(0x8e)]());return{'createdAt':_0x277247+'-'+_0x38b7ef+'-'+_0x159f31+'\x20'+_0x427fde+':'+_0x37fa86+':'+_0x5a1ba9,'createdDate':_0x277247+'-'+_0x38b7ef+'-'+_0x159f31,'createdTime':_0x427fde+':'+_0x37fa86+':'+_0x5a1ba9};}static['toComponentName'](_0x3857a1){const _0x549c90=a204_0x18f0a1,_0x368b09=_0x3857a1[_0x549c90(0x6e)]('/')['pop']()||_0x3857a1;return _0x368b09['split']('-')[_0x549c90(0xa1)](_0x513399=>_0x513399[_0x549c90(0x7b)](0x0)['toUpperCase']()+_0x513399[_0x549c90(0x84)](0x1)['toLowerCase']())['join']('');}static['toDisplayTitle'](_0x10dbc1){const _0x32c717=a204_0x18f0a1,_0x1b2d30=_0x10dbc1[_0x32c717(0x6e)]('/')[_0x32c717(0x97)]()||_0x10dbc1;return _0x1b2d30[_0x32c717(0x6e)]('-')[_0x32c717(0xa1)](_0x409d14=>_0x409d14['charAt'](0x0)['toUpperCase']()+_0x409d14[_0x32c717(0x84)](0x1)[_0x32c717(0xa7)]())[_0x32c717(0x93)]('\x20');}static[a204_0x18f0a1(0x91)](_0x45f188,_0x26c3cb,_0x4772e9){const _0x1e9675=a204_0x18f0a1,_0x58af38=this[_0x1e9675(0x81)](_0x26c3cb),_0xa87590=this[_0x1e9675(0x82)](_0x26c3cb),{createdAt:_0x37ef1f,createdDate:_0x16652b,createdTime:_0x3c623a}=this[_0x1e9675(0xa4)](new Date());let _0x22856e=_0x45f188[_0x1e9675(0xb2)](/\{CliVersion\}/g,CLI_VERSION)['replace'](/\{ComponentName\}/g,_0x58af38)[_0x1e9675(0xb2)](/\{DisplayTitle\}/g,_0xa87590)['replace'](/\{PageName\}/g,_0x26c3cb)['replace'](/\{TemplateName\}/g,_0x4772e9)['replace'](/\{CreatedAt\}/g,_0x37ef1f)[_0x1e9675(0xb2)](/\{CreatedDate\}/g,_0x16652b)[_0x1e9675(0xb2)](/\{CreatedTime\}/g,_0x3c623a);return _0x22856e;}static[a204_0x18f0a1(0x98)](_0x365cdb,_0x4329fd,_0x1a0299,_0x241fa6,_0x3d70bb,_0x85626d,_0x3f20d6,_0x3ed080){const _0x5d1160=a204_0x18f0a1,_0x27a78a=new Date(),_0x27d220=_0x27a78a[_0x5d1160(0x95)](),_0x1e6785=_0x1a0299[_0x5d1160(0xa1)](_0xac0d50=>{const _0x4cfd1c=_0x5d1160,_0x6acd95=[_0x4cfd1c(0x7f)+_0xac0d50[_0x4cfd1c(0x74)]+'\x22',_0x4cfd1c(0x9c)+_0xac0d50[_0x4cfd1c(0x9f)]+'\x22',_0x4cfd1c(0xa2)+_0xac0d50[_0x4cfd1c(0x75)]+'\x22'];return _0xac0d50['alias']&&_0x6acd95['push']('alias:\x20\x22'+_0xac0d50[_0x4cfd1c(0x96)]+'\x22'),_0x4cfd1c(0xaf)+_0x6acd95[_0x4cfd1c(0x93)](',\x20')+_0x4cfd1c(0x88);})[_0x5d1160(0x93)](''),_0x439f83=_0x241fa6||_0x1a0299[0x0]?.[_0x5d1160(0x96)]||_0x5d1160(0x8d);let _0x405937=_0x365cdb[_0x5d1160(0xb2)](/\{AppCode\}/g,_0x4329fd)[_0x5d1160(0xb2)](/\{ModelConfigs\}/g,_0x1e6785)[_0x5d1160(0xb2)](/\{ExampleModelName\}/g,_0x439f83)[_0x5d1160(0xb2)](/\{ApiFileName\}/g,_0x3d70bb||_0x5d1160(0x86))[_0x5d1160(0xb2)](/\{ConfigName\}/g,_0x85626d||_0x5d1160(0x8b))['replace'](/\{ClientConfigParam\}/g,_0x3f20d6||'')[_0x5d1160(0xb2)](/\{VarPrefix\}/g,_0x3ed080||_0x5d1160(0xa8))['replace'](/\{CreatedAt\}/g,_0x27d220);return _0x405937;}static async[a204_0x18f0a1(0xb3)](_0x5634ae,_0xdadfb2,_0x117fc1,_0x15d95f,_0x36ac58=!![]){const _0x21ccb9=a204_0x18f0a1,_0x57319f=Date['now']();try{_0x36ac58&&logger[_0x21ccb9(0xb1)](_0x21ccb9(0x71),'开始处理模板内容替换',{'templatePath':_0x5634ae,'targetPath':_0xdadfb2,'pageName':_0x117fc1,'templateName':_0x15d95f});await a204_0x474377[_0x21ccb9(0x7e)][_0x21ccb9(0xa6)](_0xdadfb2,{'recursive':!![]}),await this[_0x21ccb9(0xa9)](_0x5634ae,_0xdadfb2,_0x117fc1,_0x15d95f);if(_0x36ac58){const _0x30611f=Date[_0x21ccb9(0x9d)]()-_0x57319f;logger['success']('template','模板内容替换完成',_0x30611f,{'pageName':_0x117fc1,'templateName':_0x15d95f});}}catch(_0xf0d91f){if(_0x36ac58){const _0x544bc4=Date[_0x21ccb9(0x9d)]()-_0x57319f;logger[_0x21ccb9(0x78)]('template',_0x21ccb9(0x73),{'templatePath':_0x5634ae,'targetPath':_0xdadfb2,'pageName':_0x117fc1,'templateName':_0x15d95f,'error':_0xf0d91f instanceof Error?_0xf0d91f['message']:String(_0xf0d91f),'duration':_0x544bc4});}throw _0xf0d91f;}}static async[a204_0x18f0a1(0xa9)](_0x8c8d29,_0xffffbb,_0x8e9238,_0x5f5388){const _0x5741d5=a204_0x18f0a1,_0x257166=await a204_0x474377[_0x5741d5(0x7e)][_0x5741d5(0x90)](_0x8c8d29,{'withFileTypes':!![]});for(const _0x52b92d of _0x257166){const _0x293ce8=a204_0x16e4ac[_0x5741d5(0x93)](_0x8c8d29,_0x52b92d[_0x5741d5(0x75)]);let _0x4abdfc=a204_0x16e4ac['join'](_0xffffbb,_0x52b92d['name']);_0x52b92d[_0x5741d5(0x75)][_0x5741d5(0xab)]('.tpl')&&(_0x4abdfc=a204_0x16e4ac[_0x5741d5(0x93)](_0xffffbb,_0x52b92d[_0x5741d5(0x75)][_0x5741d5(0xb2)](/\.tpl$/,'')));if(_0x52b92d[_0x5741d5(0x8c)]())await a204_0x474377[_0x5741d5(0x7e)][_0x5741d5(0xa6)](_0x4abdfc,{'recursive':!![]}),await this[_0x5741d5(0xa9)](_0x293ce8,_0x4abdfc,_0x8e9238,_0x5f5388);else _0x52b92d[_0x5741d5(0x9a)]()&&await this[_0x5741d5(0x92)](_0x293ce8,_0x4abdfc,_0x8e9238,_0x5f5388);}}static async[a204_0x18f0a1(0x92)](_0xf91596,_0x5a87b3,_0x10cd10,_0x1e76b9){const _0x87c5de=a204_0x18f0a1,_0x58939a=a204_0x16e4ac[_0x87c5de(0x80)](_0xf91596)['toLowerCase']();_0xf91596[_0x87c5de(0xab)](_0x87c5de(0xa0))&&(_0x5a87b3=_0x5a87b3['replace'](/\.tpl$/,''));const _0x2f5c13=[_0x87c5de(0x76),_0x87c5de(0x94),_0x87c5de(0x89),'.js',_0x87c5de(0x79),_0x87c5de(0x8a),_0x87c5de(0xa3),'.scss','.tpl'];if(_0x2f5c13[_0x87c5de(0x77)](_0x58939a)||_0xf91596[_0x87c5de(0xab)]('.tpl')){const _0x5490e0=await a204_0x474377[_0x87c5de(0x7e)]['readFile'](_0xf91596,_0x87c5de(0x87)),_0x33404c=this[_0x87c5de(0x91)](_0x5490e0,_0x10cd10,_0x1e76b9);await a204_0x474377[_0x87c5de(0x7e)]['writeFile'](_0x5a87b3,_0x33404c,_0x87c5de(0x87));}else await a204_0x474377[_0x87c5de(0x7e)][_0x87c5de(0x7a)](_0xf91596,_0x5a87b3);}}
@@ -1 +1 @@
1
- function a205_0x1bd0(){const _0x3594d1=['1167240nEROzz','true','8FgWeJc','11976755ASqASH','2356215Orfujy','checkedAt','number','update-check.json','trim','8024016LUwZIx','valid','1265400tytmJv','3696150PoUlTx','toLowerCase',',\x20run:\x20','44554rAdmlU','lastNotifiedAt','https://www.npmjs.com/package/','lastNotifiedVersion','now','utf8','\x20available,\x20current\x20','stringify','latest','object','stableVersion'];a205_0x1bd0=function(){return _0x3594d1;};return a205_0x1bd0();}function a205_0x12d3(_0x5b81aa,_0x1d93b3){_0x5b81aa=_0x5b81aa-0xc0;const _0x1bd0bf=a205_0x1bd0();let _0x12d368=_0x1bd0bf[_0x5b81aa];return _0x12d368;}(function(_0x2d2350,_0x11b437){const _0x4efee3=a205_0x12d3,_0x2a706a=_0x2d2350();while(!![]){try{const _0x2af800=parseInt(_0x4efee3(0xcd))/0x1*(parseInt(_0x4efee3(0xc0))/0x2)+parseInt(_0x4efee3(0xc2))/0x3+-parseInt(_0x4efee3(0xd8))/0x4+parseInt(_0x4efee3(0xca))/0x5+parseInt(_0x4efee3(0xc7))/0x6+-parseInt(_0x4efee3(0xc1))/0x7+-parseInt(_0x4efee3(0xc9))/0x8;if(_0x2af800===_0x11b437)break;else _0x2a706a['push'](_0x2a706a['shift']());}catch(_0x80b908){_0x2a706a['push'](_0x2a706a['shift']());}}}(a205_0x1bd0,0xd6a85));import{mkdir,readFile,writeFile}from'node:fs/promises';import{homedir}from'node:os';import{dirname,join}from'node:path';import a205_0x3b3960 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 _0x1615d4=a205_0x12d3,_0x287888=process.env.RABETBASE_NO_UPDATE_NOTICE?.[_0x1615d4(0xc6)]()[_0x1615d4(0xcb)]();return _0x287888==='1'||_0x287888===_0x1615d4(0xd9)||_0x287888==='yes';}function cacheRoot(){return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),'.cache');}export function getUpdateNoticeCachePath(){const _0x51c0c0=a205_0x12d3;return join(cacheRoot(),'rabetbase-cli',_0x51c0c0(0xc5));}async function readUpdateNoticeCache(){const _0x49ac95=a205_0x12d3;try{const _0x8dbd7b=await readFile(getUpdateNoticeCachePath(),_0x49ac95(0xd2)),_0x5c13a3=JSON['parse'](_0x8dbd7b);if(!_0x5c13a3||typeof _0x5c13a3!==_0x49ac95(0xd6))return{};return _0x5c13a3;}catch{return{};}}async function writeUpdateNoticeCache(_0x149a47){const _0x244037=a205_0x12d3;try{const _0x31387b=getUpdateNoticeCachePath();await mkdir(dirname(_0x31387b),{'recursive':!![]}),await writeFile(_0x31387b,JSON[_0x244037(0xd4)](_0x149a47,null,0x2)+'\x0a','utf8');}catch{}}function isFreshCheck(_0x5f026d,_0x2ba574){const _0x3bfc42=a205_0x12d3;return typeof _0x5f026d['checkedAt']===_0x3bfc42(0xc4)&&_0x2ba574-_0x5f026d['checkedAt']<UPDATE_CHECK_TTL_MS;}function isRecentlyNotified(_0x1285de,_0x58e72d,_0x35b629){const _0x4223e6=a205_0x12d3;return _0x1285de[_0x4223e6(0xd0)]===_0x58e72d&&typeof _0x1285de[_0x4223e6(0xce)]===_0x4223e6(0xc4)&&_0x35b629-_0x1285de['lastNotifiedAt']<UPDATE_NOTICE_TTL_MS;}export function buildNpmVersionUrl(_0x482744){const _0x489bea=a205_0x12d3;return _0x489bea(0xcf)+NPM_PACKAGE_NAME+'/v/'+_0x482744;}export async function resolveLatestUpdateNotice(){const _0x404bc4=a205_0x12d3;if(isUpdateNoticeDisabled())return null;try{const _0x3eca22=Date[_0x404bc4(0xd1)](),_0x366e30=getCliVersion(),_0x197394=await readUpdateNoticeCache();let _0x2d9f9a=isFreshCheck(_0x197394,_0x3eca22)?_0x197394[_0x404bc4(0xd5)]?.[_0x404bc4(0xc6)]():undefined;if(!_0x2d9f9a&&!isFreshCheck(_0x197394,_0x3eca22)){const _0x16904=await getCliVersionPolicy();_0x2d9f9a=_0x16904?.[_0x404bc4(0xd7)]?.[_0x404bc4(0xc6)]()||undefined,await writeUpdateNoticeCache({..._0x197394,'checkedAt':_0x3eca22,'latest':_0x2d9f9a,'failed':!_0x2d9f9a});}if(!_0x2d9f9a||!a205_0x3b3960[_0x404bc4(0xc8)](_0x366e30)||!a205_0x3b3960[_0x404bc4(0xc8)](_0x2d9f9a))return null;if(a205_0x3b3960['gte'](_0x366e30,_0x2d9f9a))return null;if(isRecentlyNotified(_0x197394,_0x2d9f9a,_0x3eca22))return null;const _0x4876e4=CLI_BIN_NAME+'\x20update';return await writeUpdateNoticeCache({..._0x197394,'checkedAt':isFreshCheck(_0x197394,_0x3eca22)?_0x197394[_0x404bc4(0xc3)]:_0x3eca22,'latest':_0x2d9f9a,'failed':![],'lastNotifiedVersion':_0x2d9f9a,'lastNotifiedAt':_0x3eca22}),{'command':_0x4876e4,'current':_0x366e30,'latest':_0x2d9f9a,'url':buildNpmVersionUrl(_0x2d9f9a),'message':CLI_BIN_NAME+'\x20'+_0x2d9f9a+_0x404bc4(0xd3)+_0x366e30+_0x404bc4(0xcc)+_0x4876e4};}catch{return null;}}
1
+ (function(_0x51f917,_0x3fd56c){const _0x13cb91=a205_0x55d5,_0x388112=_0x51f917();while(!![]){try{const _0x43acb1=-parseInt(_0x13cb91(0x77))/0x1*(parseInt(_0x13cb91(0x78))/0x2)+parseInt(_0x13cb91(0x7d))/0x3*(parseInt(_0x13cb91(0x73))/0x4)+-parseInt(_0x13cb91(0x8f))/0x5+parseInt(_0x13cb91(0x7f))/0x6+-parseInt(_0x13cb91(0x7c))/0x7*(parseInt(_0x13cb91(0x79))/0x8)+parseInt(_0x13cb91(0x90))/0x9*(parseInt(_0x13cb91(0x83))/0xa)+-parseInt(_0x13cb91(0x89))/0xb;if(_0x43acb1===_0x3fd56c)break;else _0x388112['push'](_0x388112['shift']());}catch(_0x4471fc){_0x388112['push'](_0x388112['shift']());}}}(a205_0x298e,0x5a355));import{mkdir,readFile,writeFile}from'node:fs/promises';import{homedir}from'node:os';import{dirname,join}from'node:path';import a205_0x4c1e96 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 a205_0x55d5(_0x177ada,_0x57cbad){_0x177ada=_0x177ada-0x72;const _0x298ea0=a205_0x298e();let _0x55d5df=_0x298ea0[_0x177ada];return _0x55d5df;}function isUpdateNoticeDisabled(){const _0x471451=a205_0x55d5,_0x1c95d8=process.env.RABETBASE_NO_UPDATE_NOTICE?.['trim']()[_0x471451(0x86)]();return _0x1c95d8==='1'||_0x1c95d8===_0x471451(0x88)||_0x1c95d8==='yes';}function cacheRoot(){const _0x1cff3a=a205_0x55d5;return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),_0x1cff3a(0x85));}export function getUpdateNoticeCachePath(){const _0x33b892=a205_0x55d5;return join(cacheRoot(),_0x33b892(0x8a),_0x33b892(0x8d));}async function readUpdateNoticeCache(){const _0x19a769=a205_0x55d5;try{const _0x2256c8=await readFile(getUpdateNoticeCachePath(),_0x19a769(0x7e)),_0x2afd2b=JSON['parse'](_0x2256c8);if(!_0x2afd2b||typeof _0x2afd2b!=='object')return{};return _0x2afd2b;}catch{return{};}}async function writeUpdateNoticeCache(_0x1c56be){const _0x5b4178=a205_0x55d5;try{const _0x7f624c=getUpdateNoticeCachePath();await mkdir(dirname(_0x7f624c),{'recursive':!![]}),await writeFile(_0x7f624c,JSON[_0x5b4178(0x8e)](_0x1c56be,null,0x2)+'\x0a',_0x5b4178(0x7e));}catch{}}function isFreshCheck(_0x278e24,_0x372992){const _0x5669e2=a205_0x55d5;return typeof _0x278e24[_0x5669e2(0x8c)]===_0x5669e2(0x84)&&_0x372992-_0x278e24[_0x5669e2(0x8c)]<UPDATE_CHECK_TTL_MS;}function a205_0x298e(){const _0x374188=['4sZTMpY','trim','https://www.npmjs.com/package/','now','1BhxiUE','80638OOKBxr','56UuUBAa','gte','valid','251531mARCaj','925887VmUnYt','utf8','2178090liUXmh','\x20available,\x20current\x20','lastNotifiedAt','latest','587880qCLDXm','number','.cache','toLowerCase','stableVersion','true','5319138coONpc','rabetbase-cli','\x20update','checkedAt','update-check.json','stringify','279175wTMpGE','81mRZUlp','lastNotifiedVersion'];a205_0x298e=function(){return _0x374188;};return a205_0x298e();}function isRecentlyNotified(_0x2f1b44,_0x2601e3,_0x2834a8){const _0x5d7efe=a205_0x55d5;return _0x2f1b44[_0x5d7efe(0x72)]===_0x2601e3&&typeof _0x2f1b44[_0x5d7efe(0x81)]===_0x5d7efe(0x84)&&_0x2834a8-_0x2f1b44[_0x5d7efe(0x81)]<UPDATE_NOTICE_TTL_MS;}export function buildNpmVersionUrl(_0x1222bb){const _0x45595d=a205_0x55d5;return _0x45595d(0x75)+NPM_PACKAGE_NAME+'/v/'+_0x1222bb;}export async function resolveLatestUpdateNotice(){const _0x514e84=a205_0x55d5;if(isUpdateNoticeDisabled())return null;try{const _0xc1da37=Date[_0x514e84(0x76)](),_0x4ecfe5=getCliVersion(),_0x49076b=await readUpdateNoticeCache();let _0x2669b8=isFreshCheck(_0x49076b,_0xc1da37)?_0x49076b[_0x514e84(0x82)]?.['trim']():undefined;if(!_0x2669b8&&!isFreshCheck(_0x49076b,_0xc1da37)){const _0x565bb5=await getCliVersionPolicy();_0x2669b8=_0x565bb5?.[_0x514e84(0x87)]?.[_0x514e84(0x74)]()||undefined,await writeUpdateNoticeCache({..._0x49076b,'checkedAt':_0xc1da37,'latest':_0x2669b8,'failed':!_0x2669b8});}if(!_0x2669b8||!a205_0x4c1e96['valid'](_0x4ecfe5)||!a205_0x4c1e96[_0x514e84(0x7b)](_0x2669b8))return null;if(a205_0x4c1e96[_0x514e84(0x7a)](_0x4ecfe5,_0x2669b8))return null;if(isRecentlyNotified(_0x49076b,_0x2669b8,_0xc1da37))return null;const _0x2e6ad4=CLI_BIN_NAME+_0x514e84(0x8b);return await writeUpdateNoticeCache({..._0x49076b,'checkedAt':isFreshCheck(_0x49076b,_0xc1da37)?_0x49076b[_0x514e84(0x8c)]:_0xc1da37,'latest':_0x2669b8,'failed':![],'lastNotifiedVersion':_0x2669b8,'lastNotifiedAt':_0xc1da37}),{'command':_0x2e6ad4,'current':_0x4ecfe5,'latest':_0x2669b8,'url':buildNpmVersionUrl(_0x2669b8),'message':CLI_BIN_NAME+'\x20'+_0x2669b8+_0x514e84(0x80)+_0x4ecfe5+',\x20run:\x20'+_0x2e6ad4};}catch{return null;}}
@@ -1 +1 @@
1
- function a206_0x4152(_0x137557,_0x4bd755){_0x137557=_0x137557-0x124;var _0x243f30=a206_0x243f();var _0x415237=_0x243f30[_0x137557];return _0x415237;}(function(_0x1d974d,_0x4c3db2){var _0x40c24e=a206_0x4152,_0x497733=_0x1d974d();while(!![]){try{var _0x2532df=-parseInt(_0x40c24e(0x12e))/0x1+-parseInt(_0x40c24e(0x125))/0x2+-parseInt(_0x40c24e(0x128))/0x3+-parseInt(_0x40c24e(0x129))/0x4*(-parseInt(_0x40c24e(0x127))/0x5)+-parseInt(_0x40c24e(0x126))/0x6*(-parseInt(_0x40c24e(0x12b))/0x7)+-parseInt(_0x40c24e(0x124))/0x8*(parseInt(_0x40c24e(0x12c))/0x9)+parseInt(_0x40c24e(0x12a))/0xa*(parseInt(_0x40c24e(0x12d))/0xb);if(_0x2532df===_0x4c3db2)break;else _0x497733['push'](_0x497733['shift']());}catch(_0x318b04){_0x497733['push'](_0x497733['shift']());}}}(a206_0x243f,0x64b26));function a206_0x243f(){var _0x200517=['92PIHSqD','16158820yEhaql','25298BBzswO','6961401aSECps','11IhRdBp','79611eijpim','8lWqEYU','502030anDrOL','12ChnJrF','125165JBWtma','2046900yUJKcJ'];a206_0x243f=function(){return _0x200517;};return a206_0x243f();}import{VERSION}from'../generated/build-info.js';export function getCliVersion(){return VERSION;}
1
+ (function(_0xb0a99a,_0x1dbd7b){var _0x2e551a=a206_0x77f1,_0x2e0da3=_0xb0a99a();while(!![]){try{var _0x47dd00=parseInt(_0x2e551a(0x75))/0x1*(parseInt(_0x2e551a(0x6f))/0x2)+-parseInt(_0x2e551a(0x6e))/0x3*(-parseInt(_0x2e551a(0x77))/0x4)+parseInt(_0x2e551a(0x74))/0x5+-parseInt(_0x2e551a(0x70))/0x6+parseInt(_0x2e551a(0x76))/0x7+parseInt(_0x2e551a(0x71))/0x8+parseInt(_0x2e551a(0x73))/0x9*(-parseInt(_0x2e551a(0x72))/0xa);if(_0x47dd00===_0x1dbd7b)break;else _0x2e0da3['push'](_0x2e0da3['shift']());}catch(_0x331f8b){_0x2e0da3['push'](_0x2e0da3['shift']());}}}(a206_0x326a,0xa389a));function a206_0x77f1(_0x59f632,_0xd9376b){_0x59f632=_0x59f632-0x6e;var _0x326ac3=a206_0x326a();var _0x77f1e5=_0x326ac3[_0x59f632];return _0x77f1e5;}import{VERSION}from'../generated/build-info.js';export function getCliVersion(){return VERSION;}function a206_0x326a(){var _0xd42fa6=['8207328uGbiTw','18736070EqvAsw','9omPYho','771705wtQIKT','151SkLHAh','1874908Eegzvi','1959956frVsxz','3fGNERS','17020jVacOC','4077858EWSQpO'];a206_0x326a=function(){return _0xd42fa6;};return a206_0x326a();}
@@ -1 +1 @@
1
- (function(_0x1a9db1,_0x362531){var _0x3a58f0=a207_0x1531,_0x46955c=_0x1a9db1();while(!![]){try{var _0x1d8b42=-parseInt(_0x3a58f0(0x11e))/0x1*(-parseInt(_0x3a58f0(0x11b))/0x2)+parseInt(_0x3a58f0(0x121))/0x3+-parseInt(_0x3a58f0(0x11f))/0x4*(-parseInt(_0x3a58f0(0x11d))/0x5)+-parseInt(_0x3a58f0(0x123))/0x6*(parseInt(_0x3a58f0(0x119))/0x7)+-parseInt(_0x3a58f0(0x120))/0x8*(parseInt(_0x3a58f0(0x11a))/0x9)+parseInt(_0x3a58f0(0x122))/0xa+parseInt(_0x3a58f0(0x11c))/0xb;if(_0x1d8b42===_0x362531)break;else _0x46955c['push'](_0x46955c['shift']());}catch(_0x3d4ac6){_0x46955c['push'](_0x46955c['shift']());}}}(a207_0x475b,0x9fe4e));function a207_0x475b(){var _0x4c801d=['6432030RpSbDS','23514vvMjuP','1890SYMoUF','135AJANFn','2VzyMDe','9655492iPkjlQ','5OowZJs','280675uBvDrC','1702028AnLHvU','459304mMddaf','1041282aARlIP'];a207_0x475b=function(){return _0x4c801d;};return a207_0x475b();}function a207_0x1531(_0x5870e3,_0x3843cb){_0x5870e3=_0x5870e3-0x119;var _0x475b01=a207_0x475b();var _0x1531eb=_0x475b01[_0x5870e3];return _0x1531eb;}import{setActiveCookie,clearActiveCookie}from'../core/api-client.js';export async function withActiveCookie(_0x53be4a,_0x46d25f){setActiveCookie(_0x53be4a);try{return await _0x46d25f();}finally{clearActiveCookie();}}
1
+ (function(_0x437703,_0x2f5153){var _0x5e59dd=a207_0x15fd,_0x4a8034=_0x437703();while(!![]){try{var _0x490e5b=parseInt(_0x5e59dd(0x1ee))/0x1+parseInt(_0x5e59dd(0x1ed))/0x2+-parseInt(_0x5e59dd(0x1eb))/0x3+-parseInt(_0x5e59dd(0x1ef))/0x4+parseInt(_0x5e59dd(0x1ec))/0x5*(parseInt(_0x5e59dd(0x1e8))/0x6)+-parseInt(_0x5e59dd(0x1ea))/0x7*(-parseInt(_0x5e59dd(0x1e9))/0x8)+-parseInt(_0x5e59dd(0x1f0))/0x9;if(_0x490e5b===_0x2f5153)break;else _0x4a8034['push'](_0x4a8034['shift']());}catch(_0x52fce7){_0x4a8034['push'](_0x4a8034['shift']());}}}(a207_0x3eba,0x72d9e));function a207_0x15fd(_0x49539b,_0x1e82d0){_0x49539b=_0x49539b-0x1e8;var _0x3eba6a=a207_0x3eba();var _0x15fd3f=_0x3eba6a[_0x49539b];return _0x15fd3f;}import{setActiveCookie,clearActiveCookie}from'../core/api-client.js';export async function withActiveCookie(_0x4f0a64,_0x305b29){setActiveCookie(_0x4f0a64);try{return await _0x305b29();}finally{clearActiveCookie();}}function a207_0x3eba(){var _0x304842=['2444133eLcOHy','33815mFQoJe','1615574yFXqei','593490XewWRZ','2643720PncSQu','7250175gDZDxK','450wyGYSn','118336tyJmfL','399qXIGCD'];a207_0x3eba=function(){return _0x304842;};return a207_0x3eba();}
@@ -1 +1 @@
1
- (function(_0x444572,_0x259f2d){var _0x529f44=a208_0x2e33,_0x397eb4=_0x444572();while(!![]){try{var _0x47a4ef=parseInt(_0x529f44(0x143))/0x1*(parseInt(_0x529f44(0x14a))/0x2)+parseInt(_0x529f44(0x14b))/0x3*(parseInt(_0x529f44(0x148))/0x4)+-parseInt(_0x529f44(0x150))/0x5*(-parseInt(_0x529f44(0x14e))/0x6)+-parseInt(_0x529f44(0x144))/0x7*(parseInt(_0x529f44(0x149))/0x8)+parseInt(_0x529f44(0x146))/0x9*(parseInt(_0x529f44(0x145))/0xa)+-parseInt(_0x529f44(0x14f))/0xb+-parseInt(_0x529f44(0x14c))/0xc*(-parseInt(_0x529f44(0x142))/0xd);if(_0x47a4ef===_0x259f2d)break;else _0x397eb4['push'](_0x397eb4['shift']());}catch(_0x554c3e){_0x397eb4['push'](_0x397eb4['shift']());}}}(a208_0x13f1,0x76c10));export function writeCliSideChannelLine(_0x549caf){var _0x200b5d=a208_0x2e33;process[_0x200b5d(0x147)][_0x200b5d(0x14d)](_0x549caf+'\x0a');}function a208_0x2e33(_0x2f4265,_0x33891c){_0x2f4265=_0x2f4265-0x142;var _0x13f1eb=a208_0x13f1();var _0x2e330d=_0x13f1eb[_0x2f4265];return _0x2e330d;}function a208_0x13f1(){var _0x576b7c=['write','22146hdtkoV','10641928DINKVd','165qVqohB','13QPipue','2080ZPIwiL','14ELDaZU','4170UQuCbo','19161clolkr','stderr','103516ZhFFdt','157520PEzjJP','220WzlBXk','15tTicDi','1505436VdTVtk'];a208_0x13f1=function(){return _0x576b7c;};return a208_0x13f1();}
1
+ function a208_0x1494(_0x59c8fe,_0x47daba){_0x59c8fe=_0x59c8fe-0x1ac;var _0x47e4b3=a208_0x47e4();var _0x149480=_0x47e4b3[_0x59c8fe];return _0x149480;}function a208_0x47e4(){var _0x4a5f52=['3838688xUrgKb','write','59792PAvgVf','502607wgACor','stderr','205xiqPhl','1570404NDiXEF','99946Jcrrut','3458226qFXfGI','135krUWdY','681080SwEWig'];a208_0x47e4=function(){return _0x4a5f52;};return a208_0x47e4();}(function(_0x437787,_0x2e1e91){var _0xf0ca70=a208_0x1494,_0xcaf0ff=_0x437787();while(!![]){try{var _0x169ca6=parseInt(_0xf0ca70(0x1b4))/0x1+parseInt(_0xf0ca70(0x1ad))/0x2+parseInt(_0xf0ca70(0x1ac))/0x3+parseInt(_0xf0ca70(0x1b3))/0x4*(-parseInt(_0xf0ca70(0x1b6))/0x5)+parseInt(_0xf0ca70(0x1ae))/0x6+parseInt(_0xf0ca70(0x1b1))/0x7+-parseInt(_0xf0ca70(0x1b0))/0x8*(parseInt(_0xf0ca70(0x1af))/0x9);if(_0x169ca6===_0x2e1e91)break;else _0xcaf0ff['push'](_0xcaf0ff['shift']());}catch(_0x3f8e6c){_0xcaf0ff['push'](_0xcaf0ff['shift']());}}}(a208_0x47e4,0x4be7e));export function writeCliSideChannelLine(_0x37af1b){var _0x3d279a=a208_0x1494;process[_0x3d279a(0x1b5)][_0x3d279a(0x1b2)](_0x37af1b+'\x0a');}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lovrabet/rabetbase-cli",
3
- "version": "2.2.3",
3
+ "version": "2.2.4-beta.1",
4
4
  "license": "SEE LICENSE IN LICENSE",
5
5
  "repository": {
6
6
  "type": "git",