@lovrabet/rabetbase-cli 2.2.4-beta.2 → 2.2.4-beta.3

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
- const a204_0x7007f8=a204_0x4952;(function(_0x282cf2,_0x1adac0){const _0x1089a9=a204_0x4952,_0x35e0ee=_0x282cf2();while(!![]){try{const _0x1a2f8e=parseInt(_0x1089a9(0x203))/0x1*(-parseInt(_0x1089a9(0x205))/0x2)+parseInt(_0x1089a9(0x1fa))/0x3+-parseInt(_0x1089a9(0x222))/0x4+parseInt(_0x1089a9(0x21e))/0x5+parseInt(_0x1089a9(0x1fd))/0x6*(-parseInt(_0x1089a9(0x213))/0x7)+-parseInt(_0x1089a9(0x20d))/0x8+-parseInt(_0x1089a9(0x218))/0x9*(parseInt(_0x1089a9(0x1f3))/0xa);if(_0x1a2f8e===_0x1adac0)break;else _0x35e0ee['push'](_0x35e0ee['shift']());}catch(_0x5f06b8){_0x35e0ee['push'](_0x35e0ee['shift']());}}}(a204_0x3450,0x2e1a3));import a204_0x32a007 from'node:fs';import a204_0x3e142b from'node:path';function a204_0x3450(){const _0x24745f=['alias','\x20},','1NEGatv','getSeconds','397588qLBzmW','.tpl','datasetCode','extname','getMonth','.scss','LOVRABET','split','95936UXxShm','isDirectory','.tsx','endsWith','getFullYear','模板内容替换失败','217QvheyU','replaceApiContent','join','success','开始处理模板内容替换','9eDNeDj','message','push','promises','api','now','1159640lZnWHt','info','tableName','getDate','147564bloqwh','name','.css','getHours','.json','toISOString','default','slice','utf8','template','processTemplate','pop','toUpperCase','map','.ts','processDirectory','toLowerCase','formatLocalTimestamp','pad','1312810qViiFn','charAt','YourModel','模板内容替换完成','mkdir','isFile','writeFile','1023684LiGnsi','replace','copyFile','1038LQdsEf','\x0a\x20\x20\x20\x20{\x20','toDisplayTitle','tableName:\x20\x22'];a204_0x3450=function(){return _0x24745f;};return a204_0x3450();}function a204_0x4952(_0x1dd3b2,_0x37d8b7){_0x1dd3b2=_0x1dd3b2-0x1e9;const _0x3450a2=a204_0x3450();let _0x495291=_0x3450a2[_0x1dd3b2];return _0x495291;}import{logger}from'../utils/logger.js';import{getCliVersion}from'../utils/version.js';const CLI_VERSION=getCliVersion();export class TemplateReplacer{static[a204_0x7007f8(0x1f2)](_0x28825a){return String(_0x28825a)['padStart'](0x2,'0');}static[a204_0x7007f8(0x1f1)](_0x153cf4){const _0x596771=a204_0x7007f8,_0x1b9860=_0x153cf4[_0x596771(0x211)](),_0x211ec8=this[_0x596771(0x1f2)](_0x153cf4[_0x596771(0x209)]()+0x1),_0x3bb276=this[_0x596771(0x1f2)](_0x153cf4[_0x596771(0x221)]()),_0x3336fe=this[_0x596771(0x1f2)](_0x153cf4[_0x596771(0x225)]()),_0x3a8cb8=this[_0x596771(0x1f2)](_0x153cf4['getMinutes']()),_0x250ba3=this[_0x596771(0x1f2)](_0x153cf4[_0x596771(0x204)]());return{'createdAt':_0x1b9860+'-'+_0x211ec8+'-'+_0x3bb276+'\x20'+_0x3336fe+':'+_0x3a8cb8+':'+_0x250ba3,'createdDate':_0x1b9860+'-'+_0x211ec8+'-'+_0x3bb276,'createdTime':_0x3336fe+':'+_0x3a8cb8+':'+_0x250ba3};}static['toComponentName'](_0x3c64d0){const _0x2b1c1a=a204_0x7007f8,_0x273d79=_0x3c64d0[_0x2b1c1a(0x20c)]('/')[_0x2b1c1a(0x1eb)]()||_0x3c64d0;return _0x273d79[_0x2b1c1a(0x20c)]('-')[_0x2b1c1a(0x1ed)](_0x6c5dd7=>_0x6c5dd7[_0x2b1c1a(0x1f4)](0x0)[_0x2b1c1a(0x1ec)]()+_0x6c5dd7[_0x2b1c1a(0x229)](0x1)['toLowerCase']())[_0x2b1c1a(0x215)]('');}static['toDisplayTitle'](_0x5728d2){const _0x3f9e2b=a204_0x7007f8,_0x661e2d=_0x5728d2[_0x3f9e2b(0x20c)]('/')['pop']()||_0x5728d2;return _0x661e2d['split']('-')[_0x3f9e2b(0x1ed)](_0x16bcab=>_0x16bcab[_0x3f9e2b(0x1f4)](0x0)['toUpperCase']()+_0x16bcab[_0x3f9e2b(0x229)](0x1)[_0x3f9e2b(0x1f0)]())['join']('\x20');}static['replaceContent'](_0x1b902f,_0x37ddf0,_0x3fcee4){const _0x9ee92=a204_0x7007f8,_0x831653=this['toComponentName'](_0x37ddf0),_0x389640=this[_0x9ee92(0x1ff)](_0x37ddf0),{createdAt:_0x209368,createdDate:_0x4268e4,createdTime:_0x52528c}=this[_0x9ee92(0x1f1)](new Date());let _0x1c1c6e=_0x1b902f[_0x9ee92(0x1fb)](/\{CliVersion\}/g,CLI_VERSION)[_0x9ee92(0x1fb)](/\{ComponentName\}/g,_0x831653)[_0x9ee92(0x1fb)](/\{DisplayTitle\}/g,_0x389640)[_0x9ee92(0x1fb)](/\{PageName\}/g,_0x37ddf0)[_0x9ee92(0x1fb)](/\{TemplateName\}/g,_0x3fcee4)[_0x9ee92(0x1fb)](/\{CreatedAt\}/g,_0x209368)[_0x9ee92(0x1fb)](/\{CreatedDate\}/g,_0x4268e4)[_0x9ee92(0x1fb)](/\{CreatedTime\}/g,_0x52528c);return _0x1c1c6e;}static[a204_0x7007f8(0x214)](_0x160c11,_0x310c18,_0xe18c3c,_0x577eb4,_0x4244b1,_0x284e38,_0x1aa5b2,_0x17b498){const _0x456460=a204_0x7007f8,_0x59eb1d=new Date(),_0x2f006e=_0x59eb1d[_0x456460(0x227)](),_0x5caaa2=_0xe18c3c[_0x456460(0x1ed)](_0x418b3a=>{const _0x10ec3a=_0x456460,_0x2168c8=['datasetCode:\x20\x22'+_0x418b3a[_0x10ec3a(0x207)]+'\x22',_0x10ec3a(0x200)+_0x418b3a[_0x10ec3a(0x220)]+'\x22','name:\x20\x22'+_0x418b3a[_0x10ec3a(0x223)]+'\x22'];return _0x418b3a[_0x10ec3a(0x201)]&&_0x2168c8[_0x10ec3a(0x21a)]('alias:\x20\x22'+_0x418b3a['alias']+'\x22'),_0x10ec3a(0x1fe)+_0x2168c8[_0x10ec3a(0x215)](',\x20')+_0x10ec3a(0x202);})[_0x456460(0x215)](''),_0x451f4f=_0x577eb4||_0xe18c3c[0x0]?.[_0x456460(0x201)]||_0x456460(0x1f5);let _0x1bd374=_0x160c11[_0x456460(0x1fb)](/\{AppCode\}/g,_0x310c18)[_0x456460(0x1fb)](/\{ModelConfigs\}/g,_0x5caaa2)[_0x456460(0x1fb)](/\{ExampleModelName\}/g,_0x451f4f)[_0x456460(0x1fb)](/\{ApiFileName\}/g,_0x4244b1||_0x456460(0x21c))[_0x456460(0x1fb)](/\{ConfigName\}/g,_0x284e38||_0x456460(0x228))[_0x456460(0x1fb)](/\{ClientConfigParam\}/g,_0x1aa5b2||'')[_0x456460(0x1fb)](/\{VarPrefix\}/g,_0x17b498||_0x456460(0x20b))[_0x456460(0x1fb)](/\{CreatedAt\}/g,_0x2f006e);return _0x1bd374;}static async[a204_0x7007f8(0x1ea)](_0x1fac9e,_0x2aaa87,_0x56c50f,_0x18975b,_0x5e0970=!![]){const _0x47194e=a204_0x7007f8,_0x4161ec=Date[_0x47194e(0x21d)]();try{_0x5e0970&&logger[_0x47194e(0x21f)](_0x47194e(0x1e9),_0x47194e(0x217),{'templatePath':_0x1fac9e,'targetPath':_0x2aaa87,'pageName':_0x56c50f,'templateName':_0x18975b});await a204_0x32a007[_0x47194e(0x21b)][_0x47194e(0x1f7)](_0x2aaa87,{'recursive':!![]}),await this['processDirectory'](_0x1fac9e,_0x2aaa87,_0x56c50f,_0x18975b);if(_0x5e0970){const _0x1c1a28=Date[_0x47194e(0x21d)]()-_0x4161ec;logger[_0x47194e(0x216)]('template',_0x47194e(0x1f6),_0x1c1a28,{'pageName':_0x56c50f,'templateName':_0x18975b});}}catch(_0x3006a7){if(_0x5e0970){const _0x28ec24=Date['now']()-_0x4161ec;logger['error'](_0x47194e(0x1e9),_0x47194e(0x212),{'templatePath':_0x1fac9e,'targetPath':_0x2aaa87,'pageName':_0x56c50f,'templateName':_0x18975b,'error':_0x3006a7 instanceof Error?_0x3006a7[_0x47194e(0x219)]:String(_0x3006a7),'duration':_0x28ec24});}throw _0x3006a7;}}static async[a204_0x7007f8(0x1ef)](_0x18b5a4,_0x4a83ae,_0x40dba1,_0x430f1d){const _0x2f5592=a204_0x7007f8,_0xb33684=await a204_0x32a007['promises']['readdir'](_0x18b5a4,{'withFileTypes':!![]});for(const _0x17a266 of _0xb33684){const _0x296177=a204_0x3e142b[_0x2f5592(0x215)](_0x18b5a4,_0x17a266[_0x2f5592(0x223)]);let _0x26295a=a204_0x3e142b['join'](_0x4a83ae,_0x17a266['name']);_0x17a266[_0x2f5592(0x223)][_0x2f5592(0x210)]('.tpl')&&(_0x26295a=a204_0x3e142b[_0x2f5592(0x215)](_0x4a83ae,_0x17a266[_0x2f5592(0x223)][_0x2f5592(0x1fb)](/\.tpl$/,'')));if(_0x17a266[_0x2f5592(0x20e)]())await a204_0x32a007[_0x2f5592(0x21b)][_0x2f5592(0x1f7)](_0x26295a,{'recursive':!![]}),await this[_0x2f5592(0x1ef)](_0x296177,_0x26295a,_0x40dba1,_0x430f1d);else _0x17a266[_0x2f5592(0x1f8)]()&&await this['processFile'](_0x296177,_0x26295a,_0x40dba1,_0x430f1d);}}static async['processFile'](_0xc2ba24,_0x145749,_0x325737,_0x4083bf){const _0x38e9a0=a204_0x7007f8,_0xae45fe=a204_0x3e142b[_0x38e9a0(0x208)](_0xc2ba24)[_0x38e9a0(0x1f0)]();_0xc2ba24[_0x38e9a0(0x210)](_0x38e9a0(0x206))&&(_0x145749=_0x145749[_0x38e9a0(0x1fb)](/\.tpl$/,''));const _0x59a3a4=[_0x38e9a0(0x20f),_0x38e9a0(0x1ee),'.jsx','.js',_0x38e9a0(0x226),'.md',_0x38e9a0(0x224),_0x38e9a0(0x20a),_0x38e9a0(0x206)];if(_0x59a3a4['includes'](_0xae45fe)||_0xc2ba24[_0x38e9a0(0x210)](_0x38e9a0(0x206))){const _0x39a491=await a204_0x32a007[_0x38e9a0(0x21b)]['readFile'](_0xc2ba24,_0x38e9a0(0x22a)),_0x2ea9cf=this['replaceContent'](_0x39a491,_0x325737,_0x4083bf);await a204_0x32a007['promises'][_0x38e9a0(0x1f9)](_0x145749,_0x2ea9cf,_0x38e9a0(0x22a));}else await a204_0x32a007[_0x38e9a0(0x21b)][_0x38e9a0(0x1fc)](_0xc2ba24,_0x145749);}}
1
+ const a204_0x57a081=a204_0x1e82;(function(_0x44f848,_0x292b34){const _0x4fe173=a204_0x1e82,_0x1e96e6=_0x44f848();while(!![]){try{const _0x2dcfe6=parseInt(_0x4fe173(0x175))/0x1*(parseInt(_0x4fe173(0x180))/0x2)+-parseInt(_0x4fe173(0x14e))/0x3*(-parseInt(_0x4fe173(0x177))/0x4)+-parseInt(_0x4fe173(0x162))/0x5+parseInt(_0x4fe173(0x16a))/0x6+-parseInt(_0x4fe173(0x17d))/0x7+parseInt(_0x4fe173(0x178))/0x8*(-parseInt(_0x4fe173(0x155))/0x9)+parseInt(_0x4fe173(0x17a))/0xa;if(_0x2dcfe6===_0x292b34)break;else _0x1e96e6['push'](_0x1e96e6['shift']());}catch(_0x1833d8){_0x1e96e6['push'](_0x1e96e6['shift']());}}}(a204_0x5a41,0xd0c90));function a204_0x1e82(_0x3bcc54,_0x3dd8f5){_0x3bcc54=_0x3bcc54-0x140;const _0x5a4127=a204_0x5a41();let _0x1e826b=_0x5a4127[_0x3bcc54];return _0x1e826b;}import a204_0x34cd65 from'node:fs';import a204_0x45899a from'node:path';import{logger}from'../utils/logger.js';function a204_0x5a41(){const _0x23a1fc=['mkdir','getMinutes','name','processFile','66WMNHLa','processDirectory','replace','.tpl','replaceApiContent','success','readFile','2828160zjvWJX','.js','datasetCode','map','.jsx','endsWith','push','getSeconds','api','toComponentName','tableName','.md','name:\x20\x22','7773775GfdSZA','split','charAt','writeFile','copyFile','alias:\x20\x22','promises','模板内容替换完成','141462vMhqnt','processTemplate','pad','message','.tsx','default','tableName:\x20\x22','utf8','extname','formatLocalTimestamp','pop','1VRGNzI','toDisplayTitle','57596AkDKLB','16otKEve','alias','14959360zyuiea','join','padStart','3369520yFVKjm','datasetCode:\x20\x22','getHours','3366976EBtNWc','toUpperCase','isDirectory','toLowerCase','LOVRABET','replaceContent','slice','template','info','YourModel','.json','now','getDate','includes'];a204_0x5a41=function(){return _0x23a1fc;};return a204_0x5a41();}import{getCliVersion}from'../utils/version.js';const CLI_VERSION=getCliVersion();export class TemplateReplacer{static[a204_0x57a081(0x16c)](_0x34b578){const _0x37051c=a204_0x57a081;return String(_0x34b578)[_0x37051c(0x17c)](0x2,'0');}static['formatLocalTimestamp'](_0x5987f8){const _0xff1cc8=a204_0x57a081,_0x50192c=_0x5987f8['getFullYear'](),_0x4392f1=this[_0xff1cc8(0x16c)](_0x5987f8['getMonth']()+0x1),_0x583936=this['pad'](_0x5987f8[_0xff1cc8(0x148)]()),_0x23935c=this['pad'](_0x5987f8[_0xff1cc8(0x17f)]()),_0x5525a3=this[_0xff1cc8(0x16c)](_0x5987f8[_0xff1cc8(0x14b)]()),_0x37eb64=this[_0xff1cc8(0x16c)](_0x5987f8[_0xff1cc8(0x15c)]());return{'createdAt':_0x50192c+'-'+_0x4392f1+'-'+_0x583936+'\x20'+_0x23935c+':'+_0x5525a3+':'+_0x37eb64,'createdDate':_0x50192c+'-'+_0x4392f1+'-'+_0x583936,'createdTime':_0x23935c+':'+_0x5525a3+':'+_0x37eb64};}static[a204_0x57a081(0x15e)](_0x5eaf56){const _0x303395=a204_0x57a081,_0x5d0260=_0x5eaf56[_0x303395(0x163)]('/')[_0x303395(0x174)]()||_0x5eaf56;return _0x5d0260['split']('-')[_0x303395(0x158)](_0x215496=>_0x215496['charAt'](0x0)[_0x303395(0x181)]()+_0x215496[_0x303395(0x142)](0x1)['toLowerCase']())[_0x303395(0x17b)]('');}static[a204_0x57a081(0x176)](_0x785f52){const _0x242156=a204_0x57a081,_0x52a5bf=_0x785f52[_0x242156(0x163)]('/')[_0x242156(0x174)]()||_0x785f52;return _0x52a5bf[_0x242156(0x163)]('-')[_0x242156(0x158)](_0x3c9206=>_0x3c9206[_0x242156(0x164)](0x0)[_0x242156(0x181)]()+_0x3c9206[_0x242156(0x142)](0x1)[_0x242156(0x183)]())['join']('\x20');}static[a204_0x57a081(0x141)](_0x2eae30,_0x115277,_0x12f734){const _0xcdcf00=a204_0x57a081,_0x27a4e9=this['toComponentName'](_0x115277),_0x434581=this[_0xcdcf00(0x176)](_0x115277),{createdAt:_0x4b344a,createdDate:_0xd7d5e4,createdTime:_0x313324}=this[_0xcdcf00(0x173)](new Date());let _0x2895a7=_0x2eae30['replace'](/\{CliVersion\}/g,CLI_VERSION)['replace'](/\{ComponentName\}/g,_0x27a4e9)[_0xcdcf00(0x150)](/\{DisplayTitle\}/g,_0x434581)[_0xcdcf00(0x150)](/\{PageName\}/g,_0x115277)['replace'](/\{TemplateName\}/g,_0x12f734)[_0xcdcf00(0x150)](/\{CreatedAt\}/g,_0x4b344a)[_0xcdcf00(0x150)](/\{CreatedDate\}/g,_0xd7d5e4)[_0xcdcf00(0x150)](/\{CreatedTime\}/g,_0x313324);return _0x2895a7;}static[a204_0x57a081(0x152)](_0xbc40f2,_0x40359a,_0x4cf74d,_0x475d44,_0x8b63d9,_0x108038,_0x48f9eb,_0x153026){const _0x45f5ba=a204_0x57a081,_0x32697f=new Date(),_0x5931f7=_0x32697f['toISOString'](),_0x2b5832=_0x4cf74d[_0x45f5ba(0x158)](_0x6d57a7=>{const _0x56fbec=_0x45f5ba,_0x523a04=[_0x56fbec(0x17e)+_0x6d57a7[_0x56fbec(0x157)]+'\x22',_0x56fbec(0x170)+_0x6d57a7[_0x56fbec(0x15f)]+'\x22',_0x56fbec(0x161)+_0x6d57a7[_0x56fbec(0x14c)]+'\x22'];return _0x6d57a7[_0x56fbec(0x179)]&&_0x523a04[_0x56fbec(0x15b)](_0x56fbec(0x167)+_0x6d57a7['alias']+'\x22'),'\x0a\x20\x20\x20\x20{\x20'+_0x523a04['join'](',\x20')+'\x20},';})['join'](''),_0x57c1f3=_0x475d44||_0x4cf74d[0x0]?.[_0x45f5ba(0x179)]||_0x45f5ba(0x145);let _0x42ba79=_0xbc40f2['replace'](/\{AppCode\}/g,_0x40359a)[_0x45f5ba(0x150)](/\{ModelConfigs\}/g,_0x2b5832)[_0x45f5ba(0x150)](/\{ExampleModelName\}/g,_0x57c1f3)[_0x45f5ba(0x150)](/\{ApiFileName\}/g,_0x8b63d9||_0x45f5ba(0x15d))[_0x45f5ba(0x150)](/\{ConfigName\}/g,_0x108038||_0x45f5ba(0x16f))['replace'](/\{ClientConfigParam\}/g,_0x48f9eb||'')[_0x45f5ba(0x150)](/\{VarPrefix\}/g,_0x153026||_0x45f5ba(0x140))['replace'](/\{CreatedAt\}/g,_0x5931f7);return _0x42ba79;}static async[a204_0x57a081(0x16b)](_0x5827e2,_0x5ddd7c,_0x56dc6f,_0x31c8f1,_0x273221=!![]){const _0x10d7e1=a204_0x57a081,_0x4eb878=Date[_0x10d7e1(0x147)]();try{_0x273221&&logger[_0x10d7e1(0x144)](_0x10d7e1(0x143),'开始处理模板内容替换',{'templatePath':_0x5827e2,'targetPath':_0x5ddd7c,'pageName':_0x56dc6f,'templateName':_0x31c8f1});await a204_0x34cd65[_0x10d7e1(0x168)][_0x10d7e1(0x14a)](_0x5ddd7c,{'recursive':!![]}),await this[_0x10d7e1(0x14f)](_0x5827e2,_0x5ddd7c,_0x56dc6f,_0x31c8f1);if(_0x273221){const _0x2ac5b7=Date['now']()-_0x4eb878;logger[_0x10d7e1(0x153)](_0x10d7e1(0x143),_0x10d7e1(0x169),_0x2ac5b7,{'pageName':_0x56dc6f,'templateName':_0x31c8f1});}}catch(_0xb9b815){if(_0x273221){const _0x5a1236=Date[_0x10d7e1(0x147)]()-_0x4eb878;logger['error'](_0x10d7e1(0x143),'模板内容替换失败',{'templatePath':_0x5827e2,'targetPath':_0x5ddd7c,'pageName':_0x56dc6f,'templateName':_0x31c8f1,'error':_0xb9b815 instanceof Error?_0xb9b815[_0x10d7e1(0x16d)]:String(_0xb9b815),'duration':_0x5a1236});}throw _0xb9b815;}}static async[a204_0x57a081(0x14f)](_0x58720a,_0x392b99,_0x49b190,_0x4666bc){const _0x3681a6=a204_0x57a081,_0x5ed926=await a204_0x34cd65[_0x3681a6(0x168)]['readdir'](_0x58720a,{'withFileTypes':!![]});for(const _0x1b0143 of _0x5ed926){const _0x28c2ca=a204_0x45899a['join'](_0x58720a,_0x1b0143['name']);let _0xf4b9b1=a204_0x45899a[_0x3681a6(0x17b)](_0x392b99,_0x1b0143[_0x3681a6(0x14c)]);_0x1b0143[_0x3681a6(0x14c)][_0x3681a6(0x15a)](_0x3681a6(0x151))&&(_0xf4b9b1=a204_0x45899a[_0x3681a6(0x17b)](_0x392b99,_0x1b0143[_0x3681a6(0x14c)][_0x3681a6(0x150)](/\.tpl$/,'')));if(_0x1b0143[_0x3681a6(0x182)]())await a204_0x34cd65['promises'][_0x3681a6(0x14a)](_0xf4b9b1,{'recursive':!![]}),await this[_0x3681a6(0x14f)](_0x28c2ca,_0xf4b9b1,_0x49b190,_0x4666bc);else _0x1b0143['isFile']()&&await this[_0x3681a6(0x14d)](_0x28c2ca,_0xf4b9b1,_0x49b190,_0x4666bc);}}static async[a204_0x57a081(0x14d)](_0x287728,_0x32be25,_0x586dff,_0x3f80fb){const _0xe516b9=a204_0x57a081,_0x8f4326=a204_0x45899a[_0xe516b9(0x172)](_0x287728)[_0xe516b9(0x183)]();_0x287728[_0xe516b9(0x15a)]('.tpl')&&(_0x32be25=_0x32be25[_0xe516b9(0x150)](/\.tpl$/,''));const _0x44033e=[_0xe516b9(0x16e),'.ts',_0xe516b9(0x159),_0xe516b9(0x156),_0xe516b9(0x146),_0xe516b9(0x160),'.css','.scss',_0xe516b9(0x151)];if(_0x44033e[_0xe516b9(0x149)](_0x8f4326)||_0x287728[_0xe516b9(0x15a)](_0xe516b9(0x151))){const _0x15dfa1=await a204_0x34cd65[_0xe516b9(0x168)][_0xe516b9(0x154)](_0x287728,_0xe516b9(0x171)),_0x44f0f6=this[_0xe516b9(0x141)](_0x15dfa1,_0x586dff,_0x3f80fb);await a204_0x34cd65[_0xe516b9(0x168)][_0xe516b9(0x165)](_0x32be25,_0x44f0f6,'utf8');}else await a204_0x34cd65[_0xe516b9(0x168)][_0xe516b9(0x166)](_0x287728,_0x32be25);}}
@@ -1 +1 @@
1
- (function(_0x123fcf,_0x58d005){const _0x25cc5b=a205_0x466a,_0x31cd6e=_0x123fcf();while(!![]){try{const _0x4f1e6e=-parseInt(_0x25cc5b(0xf9))/0x1+-parseInt(_0x25cc5b(0x103))/0x2*(-parseInt(_0x25cc5b(0xe9))/0x3)+parseInt(_0x25cc5b(0x100))/0x4*(-parseInt(_0x25cc5b(0xfd))/0x5)+parseInt(_0x25cc5b(0xff))/0x6+parseInt(_0x25cc5b(0xf6))/0x7+-parseInt(_0x25cc5b(0xec))/0x8+parseInt(_0x25cc5b(0xed))/0x9;if(_0x4f1e6e===_0x58d005)break;else _0x31cd6e['push'](_0x31cd6e['shift']());}catch(_0x360a84){_0x31cd6e['push'](_0x31cd6e['shift']());}}}(a205_0x3264,0xc0e31));import{mkdir,readFile,writeFile}from'node:fs/promises';import{homedir}from'node:os';import{dirname,join}from'node:path';import a205_0x292209 from'semver';function a205_0x466a(_0x36959d,_0x3b3acb){_0x36959d=_0x36959d-0xe9;const _0x3264e4=a205_0x3264();let _0x466a71=_0x3264e4[_0x36959d];return _0x466a71;}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 _0x115b95=a205_0x466a,_0x32b601=process.env.RABETBASE_NO_UPDATE_NOTICE?.[_0x115b95(0xf1)]()[_0x115b95(0xfa)]();return _0x32b601==='1'||_0x32b601==='true'||_0x32b601===_0x115b95(0xf4);}function cacheRoot(){const _0x2d7dd8=a205_0x466a;return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),_0x2d7dd8(0xef));}export function getUpdateNoticeCachePath(){const _0x5777b7=a205_0x466a;return join(cacheRoot(),'rabetbase-cli',_0x5777b7(0xfe));}async function readUpdateNoticeCache(){const _0x565b96=a205_0x466a;try{const _0x36800a=await readFile(getUpdateNoticeCachePath(),_0x565b96(0xf2)),_0x294758=JSON[_0x565b96(0xf5)](_0x36800a);if(!_0x294758||typeof _0x294758!==_0x565b96(0xeb))return{};return _0x294758;}catch{return{};}}function a205_0x3264(){const _0x25cc06=['lastNotifiedAt','\x20update','5TrsKXm','update-check.json','8913168PmXTlq','4380956HBhZop','latest','lastNotifiedVersion','8PrXBcG','stableVersion','stringify','number','923016XHAxRJ','checkedAt','object','9679352vknQHy','5132520eEfQJX','/v/','.cache','\x20available,\x20current\x20','trim','utf8','valid','yes','parse','2574873DIFOkK','https://www.npmjs.com/package/','gte','559112jqfCcc','toLowerCase'];a205_0x3264=function(){return _0x25cc06;};return a205_0x3264();}async function writeUpdateNoticeCache(_0x904293){const _0x506377=a205_0x466a;try{const _0x215f6b=getUpdateNoticeCachePath();await mkdir(dirname(_0x215f6b),{'recursive':!![]}),await writeFile(_0x215f6b,JSON[_0x506377(0x105)](_0x904293,null,0x2)+'\x0a',_0x506377(0xf2));}catch{}}function isFreshCheck(_0x732b5f,_0xd9ce25){const _0x12b8aa=a205_0x466a;return typeof _0x732b5f[_0x12b8aa(0xea)]===_0x12b8aa(0x106)&&_0xd9ce25-_0x732b5f[_0x12b8aa(0xea)]<UPDATE_CHECK_TTL_MS;}function isRecentlyNotified(_0x34e9ff,_0x17a4bd,_0x3e55d6){const _0x484f1b=a205_0x466a;return _0x34e9ff[_0x484f1b(0x102)]===_0x17a4bd&&typeof _0x34e9ff[_0x484f1b(0xfb)]===_0x484f1b(0x106)&&_0x3e55d6-_0x34e9ff[_0x484f1b(0xfb)]<UPDATE_NOTICE_TTL_MS;}export function buildNpmVersionUrl(_0x4dbacb){const _0x5875d5=a205_0x466a;return _0x5875d5(0xf7)+NPM_PACKAGE_NAME+_0x5875d5(0xee)+_0x4dbacb;}export async function resolveLatestUpdateNotice(){const _0x35069e=a205_0x466a;if(isUpdateNoticeDisabled())return null;try{const _0x2b979d=Date['now'](),_0x59f352=getCliVersion(),_0x4de73f=await readUpdateNoticeCache();let _0x191c72=isFreshCheck(_0x4de73f,_0x2b979d)?_0x4de73f[_0x35069e(0x101)]?.['trim']():undefined;if(!_0x191c72&&!isFreshCheck(_0x4de73f,_0x2b979d)){const _0x4750d5=await getCliVersionPolicy();_0x191c72=_0x4750d5?.[_0x35069e(0x104)]?.[_0x35069e(0xf1)]()||undefined,await writeUpdateNoticeCache({..._0x4de73f,'checkedAt':_0x2b979d,'latest':_0x191c72,'failed':!_0x191c72});}if(!_0x191c72||!a205_0x292209[_0x35069e(0xf3)](_0x59f352)||!a205_0x292209[_0x35069e(0xf3)](_0x191c72))return null;if(a205_0x292209[_0x35069e(0xf8)](_0x59f352,_0x191c72))return null;if(isRecentlyNotified(_0x4de73f,_0x191c72,_0x2b979d))return null;const _0x48f007=CLI_BIN_NAME+_0x35069e(0xfc);return await writeUpdateNoticeCache({..._0x4de73f,'checkedAt':isFreshCheck(_0x4de73f,_0x2b979d)?_0x4de73f[_0x35069e(0xea)]:_0x2b979d,'latest':_0x191c72,'failed':![],'lastNotifiedVersion':_0x191c72,'lastNotifiedAt':_0x2b979d}),{'command':_0x48f007,'current':_0x59f352,'latest':_0x191c72,'url':buildNpmVersionUrl(_0x191c72),'message':CLI_BIN_NAME+'\x20'+_0x191c72+_0x35069e(0xf0)+_0x59f352+',\x20run:\x20'+_0x48f007};}catch{return null;}}
1
+ function a205_0x931d(_0x376d37,_0x38b9e2){_0x376d37=_0x376d37-0x125;const _0x3af2d0=a205_0x3af2();let _0x931d35=_0x3af2d0[_0x376d37];return _0x931d35;}(function(_0x483027,_0x5e7fc3){const _0x348d02=a205_0x931d,_0x335bc4=_0x483027();while(!![]){try{const _0x29783a=parseInt(_0x348d02(0x12d))/0x1*(-parseInt(_0x348d02(0x132))/0x2)+parseInt(_0x348d02(0x138))/0x3+parseInt(_0x348d02(0x126))/0x4*(parseInt(_0x348d02(0x13f))/0x5)+-parseInt(_0x348d02(0x129))/0x6+-parseInt(_0x348d02(0x13d))/0x7+-parseInt(_0x348d02(0x12e))/0x8+parseInt(_0x348d02(0x13b))/0x9;if(_0x29783a===_0x5e7fc3)break;else _0x335bc4['push'](_0x335bc4['shift']());}catch(_0x5a4f1f){_0x335bc4['push'](_0x335bc4['shift']());}}}(a205_0x3af2,0x9c03c));import{mkdir,readFile,writeFile}from'node:fs/promises';import{homedir}from'node:os';function a205_0x3af2(){const _0x29c064=['16670700Nuyema','\x20available,\x20current\x20','2105810FEyMll','lastNotifiedAt','212465ZaooIL','utf8','24jRyzgx','toLowerCase','true','6365982zYjBFl','update-check.json','gte','stableVersion','674lcstQH','4695384lEnwnQ','now','object','trim','1676mPLjyK','checkedAt','https://www.npmjs.com/package/','yes','number','stringify','3136020CRwUbM','valid','rabetbase-cli'];a205_0x3af2=function(){return _0x29c064;};return a205_0x3af2();}import{dirname,join}from'node:path';import a205_0x5b33d9 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 _0xdecf75=a205_0x931d,_0xc481c0=process.env.RABETBASE_NO_UPDATE_NOTICE?.[_0xdecf75(0x131)]()[_0xdecf75(0x127)]();return _0xc481c0==='1'||_0xc481c0===_0xdecf75(0x128)||_0xc481c0===_0xdecf75(0x135);}function cacheRoot(){return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),'.cache');}export function getUpdateNoticeCachePath(){const _0x124be8=a205_0x931d;return join(cacheRoot(),_0x124be8(0x13a),_0x124be8(0x12a));}async function readUpdateNoticeCache(){const _0x56caa9=a205_0x931d;try{const _0x4672d3=await readFile(getUpdateNoticeCachePath(),_0x56caa9(0x125)),_0x221a04=JSON['parse'](_0x4672d3);if(!_0x221a04||typeof _0x221a04!==_0x56caa9(0x130))return{};return _0x221a04;}catch{return{};}}async function writeUpdateNoticeCache(_0x1c83f5){const _0x208336=a205_0x931d;try{const _0x456670=getUpdateNoticeCachePath();await mkdir(dirname(_0x456670),{'recursive':!![]}),await writeFile(_0x456670,JSON[_0x208336(0x137)](_0x1c83f5,null,0x2)+'\x0a',_0x208336(0x125));}catch{}}function isFreshCheck(_0x2218b9,_0xf6be5c){const _0x41b1e9=a205_0x931d;return typeof _0x2218b9[_0x41b1e9(0x133)]===_0x41b1e9(0x136)&&_0xf6be5c-_0x2218b9[_0x41b1e9(0x133)]<UPDATE_CHECK_TTL_MS;}function isRecentlyNotified(_0x473174,_0x1b0870,_0xe2a407){const _0x124eaf=a205_0x931d;return _0x473174['lastNotifiedVersion']===_0x1b0870&&typeof _0x473174['lastNotifiedAt']===_0x124eaf(0x136)&&_0xe2a407-_0x473174[_0x124eaf(0x13e)]<UPDATE_NOTICE_TTL_MS;}export function buildNpmVersionUrl(_0x53726a){const _0x50619e=a205_0x931d;return _0x50619e(0x134)+NPM_PACKAGE_NAME+'/v/'+_0x53726a;}export async function resolveLatestUpdateNotice(){const _0x44e05e=a205_0x931d;if(isUpdateNoticeDisabled())return null;try{const _0x596584=Date[_0x44e05e(0x12f)](),_0x36b4b3=getCliVersion(),_0x1e41e3=await readUpdateNoticeCache();let _0x4e4423=isFreshCheck(_0x1e41e3,_0x596584)?_0x1e41e3['latest']?.[_0x44e05e(0x131)]():undefined;if(!_0x4e4423&&!isFreshCheck(_0x1e41e3,_0x596584)){const _0x2faf17=await getCliVersionPolicy();_0x4e4423=_0x2faf17?.[_0x44e05e(0x12c)]?.['trim']()||undefined,await writeUpdateNoticeCache({..._0x1e41e3,'checkedAt':_0x596584,'latest':_0x4e4423,'failed':!_0x4e4423});}if(!_0x4e4423||!a205_0x5b33d9[_0x44e05e(0x139)](_0x36b4b3)||!a205_0x5b33d9['valid'](_0x4e4423))return null;if(a205_0x5b33d9[_0x44e05e(0x12b)](_0x36b4b3,_0x4e4423))return null;if(isRecentlyNotified(_0x1e41e3,_0x4e4423,_0x596584))return null;const _0x21d86d=CLI_BIN_NAME+'\x20update';return await writeUpdateNoticeCache({..._0x1e41e3,'checkedAt':isFreshCheck(_0x1e41e3,_0x596584)?_0x1e41e3[_0x44e05e(0x133)]:_0x596584,'latest':_0x4e4423,'failed':![],'lastNotifiedVersion':_0x4e4423,'lastNotifiedAt':_0x596584}),{'command':_0x21d86d,'current':_0x36b4b3,'latest':_0x4e4423,'url':buildNpmVersionUrl(_0x4e4423),'message':CLI_BIN_NAME+'\x20'+_0x4e4423+_0x44e05e(0x13c)+_0x36b4b3+',\x20run:\x20'+_0x21d86d};}catch{return null;}}
@@ -1 +1 @@
1
- (function(_0x3946c8,_0x4b4fc7){var _0x4ca35c=a206_0xe9a8,_0x21e5be=_0x3946c8();while(!![]){try{var _0x21d8b5=parseInt(_0x4ca35c(0x1c2))/0x1*(parseInt(_0x4ca35c(0x1c4))/0x2)+parseInt(_0x4ca35c(0x1bc))/0x3+-parseInt(_0x4ca35c(0x1bd))/0x4+parseInt(_0x4ca35c(0x1c0))/0x5*(parseInt(_0x4ca35c(0x1c1))/0x6)+-parseInt(_0x4ca35c(0x1bb))/0x7*(parseInt(_0x4ca35c(0x1c5))/0x8)+-parseInt(_0x4ca35c(0x1bf))/0x9+-parseInt(_0x4ca35c(0x1be))/0xa*(-parseInt(_0x4ca35c(0x1c3))/0xb);if(_0x21d8b5===_0x4b4fc7)break;else _0x21e5be['push'](_0x21e5be['shift']());}catch(_0x4b96ba){_0x21e5be['push'](_0x21e5be['shift']());}}}(a206_0x11c6,0xbee81));function a206_0x11c6(){var _0x4ec78d=['1823396bTxuWE','281830yrluLi','124776sOJtCY','1059745zJZnkg','6QFDFKx','223547GKwqdh','297TqMiGJ','2fXHIGK','88hJQfCe','380051GJHRlh','1957356YoavAD'];a206_0x11c6=function(){return _0x4ec78d;};return a206_0x11c6();}import{VERSION}from'../generated/build-info.js';function a206_0xe9a8(_0x10aaa4,_0x5ec054){_0x10aaa4=_0x10aaa4-0x1bb;var _0x11c6a9=a206_0x11c6();var _0xe9a8b8=_0x11c6a9[_0x10aaa4];return _0xe9a8b8;}export function getCliVersion(){return VERSION;}
1
+ (function(_0x44795c,_0x13bb1b){var _0x1b1adf=a206_0x49a1,_0x584293=_0x44795c();while(!![]){try{var _0x20b430=-parseInt(_0x1b1adf(0x1c7))/0x1*(parseInt(_0x1b1adf(0x1ca))/0x2)+parseInt(_0x1b1adf(0x1cc))/0x3*(parseInt(_0x1b1adf(0x1c2))/0x4)+-parseInt(_0x1b1adf(0x1c8))/0x5*(parseInt(_0x1b1adf(0x1c1))/0x6)+-parseInt(_0x1b1adf(0x1cb))/0x7+parseInt(_0x1b1adf(0x1c5))/0x8*(parseInt(_0x1b1adf(0x1c9))/0x9)+parseInt(_0x1b1adf(0x1c3))/0xa*(-parseInt(_0x1b1adf(0x1c4))/0xb)+parseInt(_0x1b1adf(0x1c6))/0xc;if(_0x20b430===_0x13bb1b)break;else _0x584293['push'](_0x584293['shift']());}catch(_0x40af7a){_0x584293['push'](_0x584293['shift']());}}}(a206_0x4141,0x4033f));import{VERSION}from'../generated/build-info.js';function a206_0x4141(){var _0x358670=['382722KMzSey','4qYPDuo','830KCdofg','1639uwGysB','56tQXvOU','1399320FQDMkv','3Ddmdfs','5fEmPAn','152667wQxBMV','12794ZJkRQe','325339vthWHM','508338rgaVOV'];a206_0x4141=function(){return _0x358670;};return a206_0x4141();}function a206_0x49a1(_0x4b4da9,_0x4829e5){_0x4b4da9=_0x4b4da9-0x1c1;var _0x414103=a206_0x4141();var _0x49a105=_0x414103[_0x4b4da9];return _0x49a105;}export function getCliVersion(){return VERSION;}
@@ -1 +1 @@
1
- (function(_0x362a0b,_0xb8972a){var _0x45090e=a207_0xdb3a,_0x4efbb9=_0x362a0b();while(!![]){try{var _0x36b821=-parseInt(_0x45090e(0x199))/0x1+-parseInt(_0x45090e(0x197))/0x2*(-parseInt(_0x45090e(0x198))/0x3)+parseInt(_0x45090e(0x19d))/0x4+parseInt(_0x45090e(0x196))/0x5*(parseInt(_0x45090e(0x19a))/0x6)+-parseInt(_0x45090e(0x195))/0x7+-parseInt(_0x45090e(0x19b))/0x8+-parseInt(_0x45090e(0x19c))/0x9;if(_0x36b821===_0xb8972a)break;else _0x4efbb9['push'](_0x4efbb9['shift']());}catch(_0x325bb8){_0x4efbb9['push'](_0x4efbb9['shift']());}}}(a207_0x2d29,0x80237));function a207_0x2d29(){var _0x275dda=['533785wupMpj','15426DdCrnd','3668512eXkbLF','1192581DeGGiy','1085668VqfonH','619409LYkKGS','1565obbhoq','14ecymOb','283740UrLpQT'];a207_0x2d29=function(){return _0x275dda;};return a207_0x2d29();}function a207_0xdb3a(_0x425106,_0x480e94){_0x425106=_0x425106-0x195;var _0x2d2954=a207_0x2d29();var _0xdb3a6f=_0x2d2954[_0x425106];return _0xdb3a6f;}import{setActiveCookie,clearActiveCookie}from'../core/api-client.js';export async function withActiveCookie(_0x2f0ceb,_0x15d98a){setActiveCookie(_0x2f0ceb);try{return await _0x15d98a();}finally{clearActiveCookie();}}
1
+ (function(_0x28c2df,_0x3db110){var _0x210df4=a207_0x5d58,_0x5b65e9=_0x28c2df();while(!![]){try{var _0x1db83a=parseInt(_0x210df4(0x70))/0x1+parseInt(_0x210df4(0x77))/0x2*(-parseInt(_0x210df4(0x76))/0x3)+parseInt(_0x210df4(0x71))/0x4*(-parseInt(_0x210df4(0x72))/0x5)+-parseInt(_0x210df4(0x73))/0x6*(parseInt(_0x210df4(0x6d))/0x7)+-parseInt(_0x210df4(0x74))/0x8+parseInt(_0x210df4(0x6e))/0x9+-parseInt(_0x210df4(0x6f))/0xa*(-parseInt(_0x210df4(0x75))/0xb);if(_0x1db83a===_0x3db110)break;else _0x5b65e9['push'](_0x5b65e9['shift']());}catch(_0x3c076b){_0x5b65e9['push'](_0x5b65e9['shift']());}}}(a207_0x10e8,0x320b0));function a207_0x5d58(_0x2cd9dc,_0x3d7d03){_0x2cd9dc=_0x2cd9dc-0x6d;var _0x10e8a8=a207_0x10e8();var _0x5d58b8=_0x10e8a8[_0x2cd9dc];return _0x5d58b8;}import{setActiveCookie,clearActiveCookie}from'../core/api-client.js';export async function withActiveCookie(_0x9c2a52,_0x3baeb0){setActiveCookie(_0x9c2a52);try{return await _0x3baeb0();}finally{clearActiveCookie();}}function a207_0x10e8(){var _0x3e40ae=['709076EngrZb','10dHKcMg','486LcutRg','175992PmCshh','2585fsKvGJ','24DEdZbo','22796zevEfO','22281EFErBD','1459926QeYTPD','18820uCmPjy','326036LeYLPF'];a207_0x10e8=function(){return _0x3e40ae;};return a207_0x10e8();}
@@ -1 +1 @@
1
- function a208_0xf2db(){var _0x3ba3e9=['9DiAfAp','4284635hyZJKW','876003bHHjPe','199712QmrAdz','8GhXVuN','3823560OEAXQW','27903950WHzfFm','2006292DoZBUs','6mhShcD','9507575OQOCTP'];a208_0xf2db=function(){return _0x3ba3e9;};return a208_0xf2db();}(function(_0x446531,_0x3cb5f7){var _0x42c3da=a208_0x1058,_0x24bbf2=_0x446531();while(!![]){try{var _0x7b1ae8=-parseInt(_0x42c3da(0x194))/0x1*(-parseInt(_0x42c3da(0x195))/0x2)+parseInt(_0x42c3da(0x193))/0x3+-parseInt(_0x42c3da(0x198))/0x4+-parseInt(_0x42c3da(0x192))/0x5*(parseInt(_0x42c3da(0x199))/0x6)+-parseInt(_0x42c3da(0x19a))/0x7+-parseInt(_0x42c3da(0x196))/0x8+parseInt(_0x42c3da(0x191))/0x9*(parseInt(_0x42c3da(0x197))/0xa);if(_0x7b1ae8===_0x3cb5f7)break;else _0x24bbf2['push'](_0x24bbf2['shift']());}catch(_0x3afd18){_0x24bbf2['push'](_0x24bbf2['shift']());}}}(a208_0xf2db,0xa79ee));function a208_0x1058(_0x2e23ec,_0x197917){_0x2e23ec=_0x2e23ec-0x191;var _0xf2db58=a208_0xf2db();var _0x10587a=_0xf2db58[_0x2e23ec];return _0x10587a;}export function writeCliSideChannelLine(_0x122cb1){process['stderr']['write'](_0x122cb1+'\x0a');}
1
+ function a208_0x120f(){var _0x1722e6=['55048KlCNgC','4JdlksB','stderr','552905YPjlNC','342JCPbYy','102840jUbxKc','2166520CgOedy','18lFQEgD','210823kHGdbG','931pgzCkA','write','346290GbzZss'];a208_0x120f=function(){return _0x1722e6;};return a208_0x120f();}function a208_0x555d(_0x3887c0,_0x450207){_0x3887c0=_0x3887c0-0x99;var _0x120f40=a208_0x120f();var _0x555da3=_0x120f40[_0x3887c0];return _0x555da3;}(function(_0x13eab2,_0x27d934){var _0x222680=a208_0x555d,_0x497790=_0x13eab2();while(!![]){try{var _0x4bb5a1=-parseInt(_0x222680(0x9a))/0x1+-parseInt(_0x222680(0x9d))/0x2+-parseInt(_0x222680(0xa3))/0x3+parseInt(_0x222680(0x9f))/0x4*(parseInt(_0x222680(0xa1))/0x5)+-parseInt(_0x222680(0xa2))/0x6*(-parseInt(_0x222680(0x9b))/0x7)+-parseInt(_0x222680(0x9e))/0x8+parseInt(_0x222680(0x99))/0x9*(parseInt(_0x222680(0xa4))/0xa);if(_0x4bb5a1===_0x27d934)break;else _0x497790['push'](_0x497790['shift']());}catch(_0x38fa70){_0x497790['push'](_0x497790['shift']());}}}(a208_0x120f,0x1ed81));export function writeCliSideChannelLine(_0x341198){var _0x1424cc=a208_0x555d;process[_0x1424cc(0xa0)][_0x1424cc(0x9c)](_0x341198+'\x0a');}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lovrabet/rabetbase-cli",
3
- "version": "2.2.4-beta.2",
3
+ "version": "2.2.4-beta.3",
4
4
  "license": "SEE LICENSE IN LICENSE",
5
5
  "repository": {
6
6
  "type": "git",