@lovrabet/rabetbase-cli 2.1.1-beta.0 → 2.1.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 (154) 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/logout.js +1 -1
  11. package/lib/cli-flags.js +1 -1
  12. package/lib/cli.js +1 -1
  13. package/lib/commands/api/doc.js +1 -1
  14. package/lib/commands/api/index.js +1 -1
  15. package/lib/commands/api/list.js +1 -1
  16. package/lib/commands/api/pull.js +1 -1
  17. package/lib/commands/api/shared.js +1 -1
  18. package/lib/commands/app/add.js +1 -1
  19. package/lib/commands/app/index.js +1 -1
  20. package/lib/commands/app/list.js +1 -1
  21. package/lib/commands/app/remote.js +1 -1
  22. package/lib/commands/app/remove.js +1 -1
  23. package/lib/commands/app/shared.js +1 -1
  24. package/lib/commands/app/use.js +1 -1
  25. package/lib/commands/auth/index.js +1 -1
  26. package/lib/commands/bff/delete.js +1 -1
  27. package/lib/commands/bff/detail.js +1 -1
  28. package/lib/commands/bff/index.js +1 -1
  29. package/lib/commands/bff/list.js +1 -1
  30. package/lib/commands/bff/new.js +1 -1
  31. package/lib/commands/bff/pull.js +1 -1
  32. package/lib/commands/bff/push.js +1 -1
  33. package/lib/commands/bff/status.js +1 -1
  34. package/lib/commands/cli-update.js +1 -1
  35. package/lib/commands/codegen/index.js +1 -1
  36. package/lib/commands/codegen/sdk.js +1 -1
  37. package/lib/commands/codegen/sql.js +1 -1
  38. package/lib/commands/common/app-selector.js +1 -1
  39. package/lib/commands/common/flags.js +1 -1
  40. package/lib/commands/common/validate.js +1 -1
  41. package/lib/commands/config/get.js +1 -1
  42. package/lib/commands/config/index.js +1 -1
  43. package/lib/commands/config/list.js +1 -1
  44. package/lib/commands/config/set.js +1 -1
  45. package/lib/commands/config/shared.js +1 -1
  46. package/lib/commands/dataset/detail.js +1 -1
  47. package/lib/commands/dataset/index.js +1 -1
  48. package/lib/commands/dataset/links.js +1 -1
  49. package/lib/commands/dataset/list.js +1 -1
  50. package/lib/commands/dataset/operations.js +1 -1
  51. package/lib/commands/db/analyze-cancel.js +1 -1
  52. package/lib/commands/db/analyze-start.js +1 -1
  53. package/lib/commands/db/analyze-status.js +1 -1
  54. package/lib/commands/db/create.js +1 -1
  55. package/lib/commands/db/delete.js +1 -1
  56. package/lib/commands/db/detail.js +1 -1
  57. package/lib/commands/db/diff.js +1 -1
  58. package/lib/commands/db/index.js +1 -1
  59. package/lib/commands/db/list.js +1 -1
  60. package/lib/commands/db/shared.js +1 -1
  61. package/lib/commands/db/tables.js +1 -1
  62. package/lib/commands/db/test.js +1 -1
  63. package/lib/commands/db/update.js +1 -1
  64. package/lib/commands/doctor.js +1 -1
  65. package/lib/commands/init/index.js +1 -1
  66. package/lib/commands/logs/index.js +1 -1
  67. package/lib/commands/menu/index.js +1 -1
  68. package/lib/commands/menu/shared/compare-table.js +1 -1
  69. package/lib/commands/menu/shared/index.js +1 -1
  70. package/lib/commands/menu/shared/inquirer.js +1 -1
  71. package/lib/commands/menu/shared/local-pages.js +1 -1
  72. package/lib/commands/menu/shared/logic.js +1 -1
  73. package/lib/commands/menu/shared/service.js +1 -1
  74. package/lib/commands/menu/shared/sync-core.js +1 -1
  75. package/lib/commands/menu/shared/update-core.js +1 -1
  76. package/lib/commands/menu/shared/valid-url.js +1 -1
  77. package/lib/commands/menu/sync.js +1 -1
  78. package/lib/commands/menu/update.js +1 -1
  79. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  80. package/lib/commands/project/create/format-elapsed.js +1 -1
  81. package/lib/commands/project/create/main.js +1 -1
  82. package/lib/commands/project/create/non-interactive.js +1 -1
  83. package/lib/commands/project/create/project-template-path.js +1 -1
  84. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  85. package/lib/commands/project/create/use-format-code.js +1 -1
  86. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  87. package/lib/commands/project/index.js +1 -1
  88. package/lib/commands/project/init.js +1 -1
  89. package/lib/commands/project/upgrade.js +1 -1
  90. package/lib/commands/registry.js +1 -1
  91. package/lib/commands/run/index.js +1 -1
  92. package/lib/commands/schema.js +1 -1
  93. package/lib/commands/skill/index.js +1 -1
  94. package/lib/commands/sql/detail.js +1 -1
  95. package/lib/commands/sql/exec.js +1 -1
  96. package/lib/commands/sql/index.js +1 -1
  97. package/lib/commands/sql/list.js +1 -1
  98. package/lib/commands/sql/pull.js +1 -1
  99. package/lib/commands/sql/save.js +1 -1
  100. package/lib/commands/sql/shared.js +1 -1
  101. package/lib/commands/sql/validate.js +1 -1
  102. package/lib/constant/cli.js +1 -1
  103. package/lib/constant/domain.js +1 -1
  104. package/lib/constant/env.js +1 -1
  105. package/lib/constant/paths.js +1 -1
  106. package/lib/context.js +1 -1
  107. package/lib/core/alias-resolver.js +1 -1
  108. package/lib/core/api-client.js +1 -1
  109. package/lib/core/bff/config.js +1 -1
  110. package/lib/core/bff/file-system.js +1 -1
  111. package/lib/core/bff/hash.js +1 -1
  112. package/lib/core/bff/lock.js +1 -1
  113. package/lib/core/bff/utils.js +1 -1
  114. package/lib/core/db-resolver.js +1 -1
  115. package/lib/core/sql-validator.js +1 -1
  116. package/lib/errors.js +1 -1
  117. package/lib/framework/build-all-flags.js +1 -1
  118. package/lib/framework/flags.js +1 -1
  119. package/lib/framework/help.js +1 -1
  120. package/lib/framework/index.js +1 -1
  121. package/lib/framework/output.js +1 -1
  122. package/lib/framework/response.js +1 -1
  123. package/lib/framework/runner.js +1 -1
  124. package/lib/framework/schema-export.js +1 -1
  125. package/lib/framework/types.js +1 -1
  126. package/lib/generated/build-info.js +1 -1
  127. package/lib/help.js +1 -1
  128. package/lib/skills/main.js +1 -1
  129. package/lib/skills/npx-skills-add.js +1 -1
  130. package/lib/telemetry/cli-command-trace.js +1 -1
  131. package/lib/telemetry/cli-help-trace.js +1 -1
  132. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  133. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  134. package/lib/telemetry/send-cli-trace-log.js +1 -1
  135. package/lib/utils/ai_config.js +1 -1
  136. package/lib/utils/apply-jq-filter.js +1 -1
  137. package/lib/utils/cdn-config.js +1 -1
  138. package/lib/utils/check-sdk-version.js +1 -1
  139. package/lib/utils/cli-version-check.js +1 -1
  140. package/lib/utils/config.js +1 -1
  141. package/lib/utils/copy-directory.js +1 -1
  142. package/lib/utils/file-utils.js +1 -1
  143. package/lib/utils/guides-cdn.js +1 -1
  144. package/lib/utils/http-client.js +1 -1
  145. package/lib/utils/is-non-interactive.js +1 -1
  146. package/lib/utils/logger.js +1 -1
  147. package/lib/utils/platform.js +1 -1
  148. package/lib/utils/rules-cdn.js +1 -1
  149. package/lib/utils/sleep.js +1 -1
  150. package/lib/utils/template-replacer.js +1 -1
  151. package/lib/utils/version.js +1 -1
  152. package/lib/utils/with-active-cookie.js +1 -1
  153. package/lib/utils/write-cli-side-channel.js +1 -1
  154. package/package.json +1 -1
@@ -1 +1 @@
1
- const a152_0x492ff0=a152_0x2f08;(function(_0x28e851,_0x41c7fc){const _0x5b6ec8=a152_0x2f08,_0x3e2274=_0x28e851();while(!![]){try{const _0x45e431=-parseInt(_0x5b6ec8(0x1a3))/0x1*(-parseInt(_0x5b6ec8(0x190))/0x2)+parseInt(_0x5b6ec8(0x1a2))/0x3*(-parseInt(_0x5b6ec8(0x1b1))/0x4)+-parseInt(_0x5b6ec8(0x177))/0x5*(parseInt(_0x5b6ec8(0x1a9))/0x6)+-parseInt(_0x5b6ec8(0x178))/0x7+-parseInt(_0x5b6ec8(0x194))/0x8*(parseInt(_0x5b6ec8(0x181))/0x9)+parseInt(_0x5b6ec8(0x1a8))/0xa+parseInt(_0x5b6ec8(0x17b))/0xb;if(_0x45e431===_0x41c7fc)break;else _0x3e2274['push'](_0x3e2274['shift']());}catch(_0x2d5d8a){_0x3e2274['push'](_0x3e2274['shift']());}}}(a152_0x945e,0x4f954));import a152_0x3370bc from'node:fs';import a152_0x796d0c from'node:path';function a152_0x945e(){const _0x3252d7=['.js','toComponentName','alias','alias:\x20\x22','split','template','pop','.css','2-digit','3985ShVOmB','4339790YimhDC','.scss','name:\x20\x22','16030707MzVcXQ','copyFile','join','\x20},','readFile','name','54jCnAhZ','info','replaceApiContent','replace','readdir','utf8','processFile','numeric','promises','slice','.ts','toLowerCase','extname','isFile','.tpl','5326aviNJZ','push','message','datasetCode:\x20\x22','796856UECEcr','error','mkdir','toLocaleDateString','.md','tableName:\x20\x22','tableName','LOVRABET','YourModel','map','开始处理模板内容替换','\x0a\x20\x20\x20\x20{\x20','toDisplayTitle','replaceContent','6irIhJM','161KzwEDY','isDirectory','charAt','processDirectory','toLocaleString','1742630hWZbWG','246sWitHN','toUpperCase','default','now','endsWith','success','includes','.json','968164Ohvnba'];a152_0x945e=function(){return _0x3252d7;};return a152_0x945e();}function a152_0x2f08(_0x398b88,_0x37530b){_0x398b88=_0x398b88-0x174;const _0x945e66=a152_0x945e();let _0x2f088c=_0x945e66[_0x398b88];return _0x2f088c;}import{logger}from'../utils/logger.js';import{getCliVersion}from'../utils/version.js';const CLI_VERSION=getCliVersion();export class TemplateReplacer{static[a152_0x492ff0(0x1b3)](_0x59303e){const _0x53ee35=a152_0x492ff0,_0x122416=_0x59303e[_0x53ee35(0x1b6)]('/')[_0x53ee35(0x174)]()||_0x59303e;return _0x122416[_0x53ee35(0x1b6)]('-')['map'](_0xc849a3=>_0xc849a3[_0x53ee35(0x1a5)](0x0)[_0x53ee35(0x1aa)]()+_0xc849a3[_0x53ee35(0x18a)](0x1)['toLowerCase']())['join']('');}static[a152_0x492ff0(0x1a0)](_0x3c6485){const _0x4cfac3=a152_0x492ff0,_0x397e0d=_0x3c6485['split']('/')[_0x4cfac3(0x174)]()||_0x3c6485;return _0x397e0d['split']('-')[_0x4cfac3(0x19d)](_0x3fa5e9=>_0x3fa5e9[_0x4cfac3(0x1a5)](0x0)['toUpperCase']()+_0x3fa5e9[_0x4cfac3(0x18a)](0x1)[_0x4cfac3(0x18c)]())[_0x4cfac3(0x17d)]('\x20');}static[a152_0x492ff0(0x1a1)](_0x53ce09,_0xcff166,_0x56caff){const _0x3b5fa1=a152_0x492ff0,_0x1bd701=this['toComponentName'](_0xcff166),_0x25312=this[_0x3b5fa1(0x1a0)](_0xcff166),_0xa4b408=new Date(),_0x1cf90c=_0xa4b408[_0x3b5fa1(0x1a7)](undefined,{'year':_0x3b5fa1(0x188),'month':_0x3b5fa1(0x176),'day':_0x3b5fa1(0x176),'hour':'2-digit','minute':'2-digit','second':_0x3b5fa1(0x176),'hour12':![]})['replace'](/\//g,'-'),_0x18059e=_0xa4b408[_0x3b5fa1(0x197)](undefined,{'year':'numeric','month':'2-digit','day':'2-digit'})[_0x3b5fa1(0x184)](/\//g,'-'),_0x28d54a=_0xa4b408['toLocaleTimeString'](undefined,{'hour12':![]});let _0x105168=_0x53ce09['replace'](/\{CliVersion\}/g,CLI_VERSION)[_0x3b5fa1(0x184)](/\{ComponentName\}/g,_0x1bd701)[_0x3b5fa1(0x184)](/\{DisplayTitle\}/g,_0x25312)[_0x3b5fa1(0x184)](/\{PageName\}/g,_0xcff166)[_0x3b5fa1(0x184)](/\{TemplateName\}/g,_0x56caff)[_0x3b5fa1(0x184)](/\{CreatedAt\}/g,_0x1cf90c)['replace'](/\{CreatedDate\}/g,_0x18059e)[_0x3b5fa1(0x184)](/\{CreatedTime\}/g,_0x28d54a);return _0x105168;}static[a152_0x492ff0(0x183)](_0x33872a,_0x30e723,_0xb0625d,_0xc6cf3d,_0x4a7c31,_0x2c92b8,_0x5f2a64,_0x17db67){const _0x1c5829=a152_0x492ff0,_0x5cb05e=new Date(),_0x1b0e9c=_0x5cb05e['toISOString'](),_0x51fa5e=_0xb0625d['map'](_0x37753e=>{const _0x57733d=a152_0x2f08,_0x3e28b6=[_0x57733d(0x193)+_0x37753e['datasetCode']+'\x22',_0x57733d(0x199)+_0x37753e[_0x57733d(0x19a)]+'\x22',_0x57733d(0x17a)+_0x37753e[_0x57733d(0x180)]+'\x22'];return _0x37753e['alias']&&_0x3e28b6[_0x57733d(0x191)](_0x57733d(0x1b5)+_0x37753e[_0x57733d(0x1b4)]+'\x22'),_0x57733d(0x19f)+_0x3e28b6[_0x57733d(0x17d)](',\x20')+_0x57733d(0x17e);})[_0x1c5829(0x17d)](''),_0x5ae0b0=_0xc6cf3d||_0xb0625d[0x0]?.['alias']||_0x1c5829(0x19c);let _0x37c57f=_0x33872a['replace'](/\{AppCode\}/g,_0x30e723)[_0x1c5829(0x184)](/\{ModelConfigs\}/g,_0x51fa5e)[_0x1c5829(0x184)](/\{ExampleModelName\}/g,_0x5ae0b0)['replace'](/\{ApiFileName\}/g,_0x4a7c31||'api')[_0x1c5829(0x184)](/\{ConfigName\}/g,_0x2c92b8||_0x1c5829(0x1ab))[_0x1c5829(0x184)](/\{ClientConfigParam\}/g,_0x5f2a64||'')[_0x1c5829(0x184)](/\{VarPrefix\}/g,_0x17db67||_0x1c5829(0x19b))['replace'](/\{CreatedAt\}/g,_0x1b0e9c);return _0x37c57f;}static async['processTemplate'](_0x2c67b1,_0x25c393,_0x3a0c86,_0x385f39,_0x38248e=!![]){const _0x7fd0a4=a152_0x492ff0,_0x466092=Date[_0x7fd0a4(0x1ac)]();try{_0x38248e&&logger[_0x7fd0a4(0x182)]('template',_0x7fd0a4(0x19e),{'templatePath':_0x2c67b1,'targetPath':_0x25c393,'pageName':_0x3a0c86,'templateName':_0x385f39});await a152_0x3370bc[_0x7fd0a4(0x189)][_0x7fd0a4(0x196)](_0x25c393,{'recursive':!![]}),await this[_0x7fd0a4(0x1a6)](_0x2c67b1,_0x25c393,_0x3a0c86,_0x385f39);if(_0x38248e){const _0x4a8c45=Date[_0x7fd0a4(0x1ac)]()-_0x466092;logger[_0x7fd0a4(0x1ae)](_0x7fd0a4(0x1b7),'模板内容替换完成',_0x4a8c45,{'pageName':_0x3a0c86,'templateName':_0x385f39});}}catch(_0xf9893c){if(_0x38248e){const _0x452c5b=Date[_0x7fd0a4(0x1ac)]()-_0x466092;logger[_0x7fd0a4(0x195)](_0x7fd0a4(0x1b7),'模板内容替换失败',{'templatePath':_0x2c67b1,'targetPath':_0x25c393,'pageName':_0x3a0c86,'templateName':_0x385f39,'error':_0xf9893c instanceof Error?_0xf9893c[_0x7fd0a4(0x192)]:String(_0xf9893c),'duration':_0x452c5b});}throw _0xf9893c;}}static async['processDirectory'](_0x20d5f7,_0x1ef783,_0x5eea6d,_0x59f919){const _0x59c2ab=a152_0x492ff0,_0x3808db=await a152_0x3370bc['promises'][_0x59c2ab(0x185)](_0x20d5f7,{'withFileTypes':!![]});for(const _0xf361dd of _0x3808db){const _0x3d6970=a152_0x796d0c[_0x59c2ab(0x17d)](_0x20d5f7,_0xf361dd[_0x59c2ab(0x180)]);let _0x48c19c=a152_0x796d0c[_0x59c2ab(0x17d)](_0x1ef783,_0xf361dd[_0x59c2ab(0x180)]);_0xf361dd[_0x59c2ab(0x180)][_0x59c2ab(0x1ad)](_0x59c2ab(0x18f))&&(_0x48c19c=a152_0x796d0c[_0x59c2ab(0x17d)](_0x1ef783,_0xf361dd[_0x59c2ab(0x180)][_0x59c2ab(0x184)](/\.tpl$/,'')));if(_0xf361dd[_0x59c2ab(0x1a4)]())await a152_0x3370bc[_0x59c2ab(0x189)][_0x59c2ab(0x196)](_0x48c19c,{'recursive':!![]}),await this['processDirectory'](_0x3d6970,_0x48c19c,_0x5eea6d,_0x59f919);else _0xf361dd[_0x59c2ab(0x18e)]()&&await this[_0x59c2ab(0x187)](_0x3d6970,_0x48c19c,_0x5eea6d,_0x59f919);}}static async[a152_0x492ff0(0x187)](_0x1823c4,_0x12bf24,_0x141b97,_0x48a948){const _0x514f6d=a152_0x492ff0,_0x25ff34=a152_0x796d0c[_0x514f6d(0x18d)](_0x1823c4)['toLowerCase']();_0x1823c4[_0x514f6d(0x1ad)](_0x514f6d(0x18f))&&(_0x12bf24=_0x12bf24[_0x514f6d(0x184)](/\.tpl$/,''));const _0x1d05ce=['.tsx',_0x514f6d(0x18b),'.jsx',_0x514f6d(0x1b2),_0x514f6d(0x1b0),_0x514f6d(0x198),_0x514f6d(0x175),_0x514f6d(0x179),'.tpl'];if(_0x1d05ce[_0x514f6d(0x1af)](_0x25ff34)||_0x1823c4[_0x514f6d(0x1ad)](_0x514f6d(0x18f))){const _0x39fbbd=await a152_0x3370bc['promises'][_0x514f6d(0x17f)](_0x1823c4,'utf8'),_0x512cdf=this[_0x514f6d(0x1a1)](_0x39fbbd,_0x141b97,_0x48a948);await a152_0x3370bc['promises']['writeFile'](_0x12bf24,_0x512cdf,_0x514f6d(0x186));}else await a152_0x3370bc['promises'][_0x514f6d(0x17c)](_0x1823c4,_0x12bf24);}}
1
+ const a152_0x5dd00d=a152_0x96d2;(function(_0x4b016f,_0x238bc2){const _0x2c28c1=a152_0x96d2,_0x5cbf5a=_0x4b016f();while(!![]){try{const _0x27acf1=-parseInt(_0x2c28c1(0xd9))/0x1+-parseInt(_0x2c28c1(0xe3))/0x2*(parseInt(_0x2c28c1(0xc3))/0x3)+-parseInt(_0x2c28c1(0xaa))/0x4+-parseInt(_0x2c28c1(0xd4))/0x5*(-parseInt(_0x2c28c1(0xc2))/0x6)+-parseInt(_0x2c28c1(0xb9))/0x7*(parseInt(_0x2c28c1(0xdd))/0x8)+-parseInt(_0x2c28c1(0xcd))/0x9+parseInt(_0x2c28c1(0xb0))/0xa;if(_0x27acf1===_0x238bc2)break;else _0x5cbf5a['push'](_0x5cbf5a['shift']());}catch(_0x3b5d2b){_0x5cbf5a['push'](_0x5cbf5a['shift']());}}}(a152_0x203d,0x4a2dd));function a152_0x203d(){const _0x21556a=['5311701IFOOhb','replace','promises','endsWith','toLocaleString','readdir','toISOString','2350asWibJ','alias','toLocaleTimeString','name:\x20\x22','replaceApiContent','331688MrKdvB','processFile','isDirectory','开始处理模板内容替换','737096atmAuY','LOVRABET','join','tableName','模板内容替换失败','.scss','189302LqjvhT','push','now','.tpl','includes','pop','\x20},','slice','writeFile','alias:\x20\x22','success','datasetCode','831808MwuTjA','name','.jsx','copyFile','.tsx','模板内容替换完成','15758770kdptXS','.json','toComponentName','toUpperCase','replaceContent','processDirectory','mkdir','toLowerCase','template','7XlmnjC','processTemplate','api','.md','extname','isFile','charAt','map','.css','4194smYiRr','12YxVKKb','split','\x0a\x20\x20\x20\x20{\x20','utf8','2-digit','readFile','.js','datasetCode:\x20\x22','toDisplayTitle','YourModel'];a152_0x203d=function(){return _0x21556a;};return a152_0x203d();}import a152_0x32182f from'node:fs';import a152_0x5d4082 from'node:path';import{logger}from'../utils/logger.js';import{getCliVersion}from'../utils/version.js';const CLI_VERSION=getCliVersion();function a152_0x96d2(_0x48780f,_0x483351){_0x48780f=_0x48780f-0xa9;const _0x203d16=a152_0x203d();let _0x96d251=_0x203d16[_0x48780f];return _0x96d251;}export class TemplateReplacer{static[a152_0x5dd00d(0xb2)](_0x575804){const _0x380895=a152_0x5dd00d,_0x71f27b=_0x575804['split']('/')['pop']()||_0x575804;return _0x71f27b['split']('-')[_0x380895(0xc0)](_0x2039a3=>_0x2039a3[_0x380895(0xbf)](0x0)[_0x380895(0xb3)]()+_0x2039a3[_0x380895(0xea)](0x1)[_0x380895(0xb7)]())['join']('');}static[a152_0x5dd00d(0xcb)](_0x25022e){const _0x180ec5=a152_0x5dd00d,_0x127605=_0x25022e[_0x180ec5(0xc4)]('/')[_0x180ec5(0xe8)]()||_0x25022e;return _0x127605[_0x180ec5(0xc4)]('-')[_0x180ec5(0xc0)](_0x1b9364=>_0x1b9364[_0x180ec5(0xbf)](0x0)[_0x180ec5(0xb3)]()+_0x1b9364[_0x180ec5(0xea)](0x1)[_0x180ec5(0xb7)]())[_0x180ec5(0xdf)]('\x20');}static[a152_0x5dd00d(0xb4)](_0x1ba5e3,_0x1d8b47,_0x599bbc){const _0xcdceb1=a152_0x5dd00d,_0x3691e7=this[_0xcdceb1(0xb2)](_0x1d8b47),_0x3508e3=this[_0xcdceb1(0xcb)](_0x1d8b47),_0x491c1a=new Date(),_0x1411aa=_0x491c1a[_0xcdceb1(0xd1)](undefined,{'year':'numeric','month':'2-digit','day':_0xcdceb1(0xc7),'hour':'2-digit','minute':'2-digit','second':_0xcdceb1(0xc7),'hour12':![]})[_0xcdceb1(0xce)](/\//g,'-'),_0x47c2bb=_0x491c1a['toLocaleDateString'](undefined,{'year':'numeric','month':_0xcdceb1(0xc7),'day':'2-digit'})[_0xcdceb1(0xce)](/\//g,'-'),_0x37b429=_0x491c1a[_0xcdceb1(0xd6)](undefined,{'hour12':![]});let _0x1c1bec=_0x1ba5e3[_0xcdceb1(0xce)](/\{CliVersion\}/g,CLI_VERSION)[_0xcdceb1(0xce)](/\{ComponentName\}/g,_0x3691e7)[_0xcdceb1(0xce)](/\{DisplayTitle\}/g,_0x3508e3)[_0xcdceb1(0xce)](/\{PageName\}/g,_0x1d8b47)[_0xcdceb1(0xce)](/\{TemplateName\}/g,_0x599bbc)[_0xcdceb1(0xce)](/\{CreatedAt\}/g,_0x1411aa)[_0xcdceb1(0xce)](/\{CreatedDate\}/g,_0x47c2bb)[_0xcdceb1(0xce)](/\{CreatedTime\}/g,_0x37b429);return _0x1c1bec;}static[a152_0x5dd00d(0xd8)](_0x154e17,_0x547e8a,_0x141b9d,_0x40f5af,_0x16d75c,_0x33a9e4,_0x4e965a,_0x231875){const _0x1b349b=a152_0x5dd00d,_0x117b17=new Date(),_0x27c2c5=_0x117b17[_0x1b349b(0xd3)](),_0x286495=_0x141b9d[_0x1b349b(0xc0)](_0x95a7dd=>{const _0x3a8e40=_0x1b349b,_0x1a2cdd=[_0x3a8e40(0xca)+_0x95a7dd[_0x3a8e40(0xa9)]+'\x22','tableName:\x20\x22'+_0x95a7dd[_0x3a8e40(0xe0)]+'\x22',_0x3a8e40(0xd7)+_0x95a7dd[_0x3a8e40(0xab)]+'\x22'];return _0x95a7dd[_0x3a8e40(0xd5)]&&_0x1a2cdd[_0x3a8e40(0xe4)](_0x3a8e40(0xec)+_0x95a7dd[_0x3a8e40(0xd5)]+'\x22'),_0x3a8e40(0xc5)+_0x1a2cdd[_0x3a8e40(0xdf)](',\x20')+_0x3a8e40(0xe9);})['join'](''),_0x1f35f4=_0x40f5af||_0x141b9d[0x0]?.[_0x1b349b(0xd5)]||_0x1b349b(0xcc);let _0x179735=_0x154e17[_0x1b349b(0xce)](/\{AppCode\}/g,_0x547e8a)['replace'](/\{ModelConfigs\}/g,_0x286495)[_0x1b349b(0xce)](/\{ExampleModelName\}/g,_0x1f35f4)['replace'](/\{ApiFileName\}/g,_0x16d75c||_0x1b349b(0xbb))[_0x1b349b(0xce)](/\{ConfigName\}/g,_0x33a9e4||'default')[_0x1b349b(0xce)](/\{ClientConfigParam\}/g,_0x4e965a||'')[_0x1b349b(0xce)](/\{VarPrefix\}/g,_0x231875||_0x1b349b(0xde))['replace'](/\{CreatedAt\}/g,_0x27c2c5);return _0x179735;}static async[a152_0x5dd00d(0xba)](_0x5296d0,_0x54fafd,_0x56d154,_0x509eeb,_0x498017=!![]){const _0x436361=a152_0x5dd00d,_0x40c83d=Date[_0x436361(0xe5)]();try{_0x498017&&logger['info']('template',_0x436361(0xdc),{'templatePath':_0x5296d0,'targetPath':_0x54fafd,'pageName':_0x56d154,'templateName':_0x509eeb});await a152_0x32182f['promises'][_0x436361(0xb6)](_0x54fafd,{'recursive':!![]}),await this[_0x436361(0xb5)](_0x5296d0,_0x54fafd,_0x56d154,_0x509eeb);if(_0x498017){const _0x4ac838=Date[_0x436361(0xe5)]()-_0x40c83d;logger[_0x436361(0xed)]('template',_0x436361(0xaf),_0x4ac838,{'pageName':_0x56d154,'templateName':_0x509eeb});}}catch(_0xf79914){if(_0x498017){const _0x4b2f88=Date[_0x436361(0xe5)]()-_0x40c83d;logger['error'](_0x436361(0xb8),_0x436361(0xe1),{'templatePath':_0x5296d0,'targetPath':_0x54fafd,'pageName':_0x56d154,'templateName':_0x509eeb,'error':_0xf79914 instanceof Error?_0xf79914['message']:String(_0xf79914),'duration':_0x4b2f88});}throw _0xf79914;}}static async[a152_0x5dd00d(0xb5)](_0xc9ccd6,_0xa84293,_0x18d638,_0x59a0bd){const _0x1096f9=a152_0x5dd00d,_0x31e2bc=await a152_0x32182f[_0x1096f9(0xcf)][_0x1096f9(0xd2)](_0xc9ccd6,{'withFileTypes':!![]});for(const _0x58e7c5 of _0x31e2bc){const _0x281f06=a152_0x5d4082[_0x1096f9(0xdf)](_0xc9ccd6,_0x58e7c5[_0x1096f9(0xab)]);let _0x41b3b7=a152_0x5d4082[_0x1096f9(0xdf)](_0xa84293,_0x58e7c5[_0x1096f9(0xab)]);_0x58e7c5[_0x1096f9(0xab)][_0x1096f9(0xd0)](_0x1096f9(0xe6))&&(_0x41b3b7=a152_0x5d4082[_0x1096f9(0xdf)](_0xa84293,_0x58e7c5['name'][_0x1096f9(0xce)](/\.tpl$/,'')));if(_0x58e7c5[_0x1096f9(0xdb)]())await a152_0x32182f[_0x1096f9(0xcf)][_0x1096f9(0xb6)](_0x41b3b7,{'recursive':!![]}),await this[_0x1096f9(0xb5)](_0x281f06,_0x41b3b7,_0x18d638,_0x59a0bd);else _0x58e7c5[_0x1096f9(0xbe)]()&&await this[_0x1096f9(0xda)](_0x281f06,_0x41b3b7,_0x18d638,_0x59a0bd);}}static async['processFile'](_0x286582,_0x1e833d,_0x2fcb98,_0x558b73){const _0x2f1af9=a152_0x5dd00d,_0x38ff9c=a152_0x5d4082[_0x2f1af9(0xbd)](_0x286582)['toLowerCase']();_0x286582[_0x2f1af9(0xd0)](_0x2f1af9(0xe6))&&(_0x1e833d=_0x1e833d[_0x2f1af9(0xce)](/\.tpl$/,''));const _0x3a50e6=[_0x2f1af9(0xae),'.ts',_0x2f1af9(0xac),_0x2f1af9(0xc9),_0x2f1af9(0xb1),_0x2f1af9(0xbc),_0x2f1af9(0xc1),_0x2f1af9(0xe2),_0x2f1af9(0xe6)];if(_0x3a50e6[_0x2f1af9(0xe7)](_0x38ff9c)||_0x286582[_0x2f1af9(0xd0)](_0x2f1af9(0xe6))){const _0x98f710=await a152_0x32182f[_0x2f1af9(0xcf)][_0x2f1af9(0xc8)](_0x286582,_0x2f1af9(0xc6)),_0x17279b=this[_0x2f1af9(0xb4)](_0x98f710,_0x2fcb98,_0x558b73);await a152_0x32182f['promises'][_0x2f1af9(0xeb)](_0x1e833d,_0x17279b,_0x2f1af9(0xc6));}else await a152_0x32182f[_0x2f1af9(0xcf)][_0x2f1af9(0xad)](_0x286582,_0x1e833d);}}
@@ -1 +1 @@
1
- function a153_0xea74(_0x403f30,_0x54cc68){_0x403f30=_0x403f30-0xa4;var _0x34ba52=a153_0x34ba();var _0xea7429=_0x34ba52[_0x403f30];return _0xea7429;}(function(_0x33ed67,_0x4d1653){var _0x13e0d2=a153_0xea74,_0x245f71=_0x33ed67();while(!![]){try{var _0x37af95=-parseInt(_0x13e0d2(0xa6))/0x1+parseInt(_0x13e0d2(0xa5))/0x2*(-parseInt(_0x13e0d2(0xa9))/0x3)+parseInt(_0x13e0d2(0xa8))/0x4+-parseInt(_0x13e0d2(0xab))/0x5+parseInt(_0x13e0d2(0xad))/0x6*(-parseInt(_0x13e0d2(0xa7))/0x7)+parseInt(_0x13e0d2(0xaa))/0x8+-parseInt(_0x13e0d2(0xac))/0x9*(-parseInt(_0x13e0d2(0xa4))/0xa);if(_0x37af95===_0x4d1653)break;else _0x245f71['push'](_0x245f71['shift']());}catch(_0x31a448){_0x245f71['push'](_0x245f71['shift']());}}}(a153_0x34ba,0xd3d27));function a153_0x34ba(){var _0x3f5e60=['746999bBPcZR','1791951XQPdly','3123164TzrmqK','13521pfoWwv','2283712PkMOPc','4203200YsOClT','58617XlvDXo','6AJacxZ','5010HQqWNL','718WucWvO'];a153_0x34ba=function(){return _0x3f5e60;};return a153_0x34ba();}import{VERSION}from'../generated/build-info.js';export function getCliVersion(){return VERSION;}
1
+ (function(_0x283972,_0x487421){var _0x1390d8=a153_0x4e64,_0x4a3861=_0x283972();while(!![]){try{var _0xb46012=parseInt(_0x1390d8(0x13c))/0x1+parseInt(_0x1390d8(0x13f))/0x2+-parseInt(_0x1390d8(0x143))/0x3+-parseInt(_0x1390d8(0x144))/0x4*(-parseInt(_0x1390d8(0x13e))/0x5)+parseInt(_0x1390d8(0x140))/0x6*(-parseInt(_0x1390d8(0x13d))/0x7)+parseInt(_0x1390d8(0x13b))/0x8*(-parseInt(_0x1390d8(0x142))/0x9)+parseInt(_0x1390d8(0x141))/0xa;if(_0xb46012===_0x487421)break;else _0x4a3861['push'](_0x4a3861['shift']());}catch(_0x57c6f4){_0x4a3861['push'](_0x4a3861['shift']());}}}(a153_0x151b,0xf2e40));import{VERSION}from'../generated/build-info.js';function a153_0x4e64(_0x30af54,_0x333c53){_0x30af54=_0x30af54-0x13b;var _0x151b4e=a153_0x151b();var _0x4e646b=_0x151b4e[_0x30af54];return _0x4e646b;}export function getCliVersion(){return VERSION;}function a153_0x151b(){var _0x254271=['2708148vYZqFY','4213756nHwAgb','9040816rEdCFR','1383034FMszFD','2058PTdvGf','5RLcOPi','509750PwjirG','35118fqwRce','20571320CvCIia','9pGETdT'];a153_0x151b=function(){return _0x254271;};return a153_0x151b();}
@@ -1 +1 @@
1
- function a154_0x5e03(_0x309887,_0x4e78aa){_0x309887=_0x309887-0x83;var _0x441960=a154_0x4419();var _0x5e031d=_0x441960[_0x309887];return _0x5e031d;}(function(_0x306537,_0x63446f){var _0x523095=a154_0x5e03,_0x57ce76=_0x306537();while(!![]){try{var _0x3949a3=parseInt(_0x523095(0x8b))/0x1*(-parseInt(_0x523095(0x89))/0x2)+-parseInt(_0x523095(0x86))/0x3*(-parseInt(_0x523095(0x84))/0x4)+parseInt(_0x523095(0x8c))/0x5+-parseInt(_0x523095(0x85))/0x6*(-parseInt(_0x523095(0x8e))/0x7)+parseInt(_0x523095(0x8d))/0x8*(parseInt(_0x523095(0x87))/0x9)+-parseInt(_0x523095(0x88))/0xa*(-parseInt(_0x523095(0x83))/0xb)+-parseInt(_0x523095(0x8a))/0xc;if(_0x3949a3===_0x63446f)break;else _0x57ce76['push'](_0x57ce76['shift']());}catch(_0x156bc4){_0x57ce76['push'](_0x57ce76['shift']());}}}(a154_0x4419,0xd1d2f));import{setActiveCookie,clearActiveCookie}from'../core/api-client.js';export async function withActiveCookie(_0xd50218,_0x3020cb){setActiveCookie(_0xd50218);try{return await _0x3020cb();}finally{clearActiveCookie();}}function a154_0x4419(){var _0x30675a=['847cVmijJ','1035881ABSbJE','496ZpUvwb','4656OrLTsh','8562wmCshJ','18dtsOcg','10BjxnvR','6OKCuvo','2241324gmVEID','303697WWxfmN','3333550gDtXJu','2994536WxqWNR'];a154_0x4419=function(){return _0x30675a;};return a154_0x4419();}
1
+ function a154_0x28a4(){var _0x3b409f=['724788PitBIu','24mAwFAg','6317780OekIQx','3698urFkwH','1795372AMYqED','69qxvPPM','1508875ImxLVx','3337038FpIkSZ','615906JNZnmb'];a154_0x28a4=function(){return _0x3b409f;};return a154_0x28a4();}(function(_0x2cf634,_0x28b92f){var _0x36cd8e=a154_0x4508,_0x3323f9=_0x2cf634();while(!![]){try{var _0x40c21a=parseInt(_0x36cd8e(0x1d2))/0x1+-parseInt(_0x36cd8e(0x1d5))/0x2*(parseInt(_0x36cd8e(0x1d7))/0x3)+parseInt(_0x36cd8e(0x1d6))/0x4+-parseInt(_0x36cd8e(0x1d8))/0x5+parseInt(_0x36cd8e(0x1d1))/0x6+parseInt(_0x36cd8e(0x1d4))/0x7+parseInt(_0x36cd8e(0x1d3))/0x8*(-parseInt(_0x36cd8e(0x1d9))/0x9);if(_0x40c21a===_0x28b92f)break;else _0x3323f9['push'](_0x3323f9['shift']());}catch(_0x59d2d9){_0x3323f9['push'](_0x3323f9['shift']());}}}(a154_0x28a4,0xb04fe));import{setActiveCookie,clearActiveCookie}from'../core/api-client.js';function a154_0x4508(_0x3c3761,_0x5f5261){_0x3c3761=_0x3c3761-0x1d1;var _0x28a4aa=a154_0x28a4();var _0x45086d=_0x28a4aa[_0x3c3761];return _0x45086d;}export async function withActiveCookie(_0x33380f,_0x3edf69){setActiveCookie(_0x33380f);try{return await _0x3edf69();}finally{clearActiveCookie();}}
@@ -1 +1 @@
1
- (function(_0x10ed07,_0x519410){var _0x2dd553=a155_0x381e,_0x117ed0=_0x10ed07();while(!![]){try{var _0x4f3e2e=parseInt(_0x2dd553(0xb5))/0x1*(parseInt(_0x2dd553(0xb6))/0x2)+parseInt(_0x2dd553(0xbf))/0x3+-parseInt(_0x2dd553(0xb9))/0x4*(-parseInt(_0x2dd553(0xb8))/0x5)+parseInt(_0x2dd553(0xbd))/0x6+-parseInt(_0x2dd553(0xbe))/0x7+parseInt(_0x2dd553(0xc0))/0x8*(parseInt(_0x2dd553(0xb7))/0x9)+-parseInt(_0x2dd553(0xbc))/0xa*(parseInt(_0x2dd553(0xb4))/0xb);if(_0x4f3e2e===_0x519410)break;else _0x117ed0['push'](_0x117ed0['shift']());}catch(_0x2e5700){_0x117ed0['push'](_0x117ed0['shift']());}}}(a155_0x1df1,0x3491a));export function writeCliSideChannelLine(_0x8accff){var _0x55184d=a155_0x381e;process[_0x55184d(0xba)][_0x55184d(0xbb)](_0x8accff+'\x0a');}function a155_0x381e(_0x145811,_0x4dd0af){_0x145811=_0x145811-0xb4;var _0x1df1cc=a155_0x1df1();var _0x381e17=_0x1df1cc[_0x145811];return _0x381e17;}function a155_0x1df1(){var _0x41c9e6=['stderr','write','4940ZcPNEO','671562KQIApg','2543905ZyOxkO','1005198WKoPep','16648szoRge','9394nTwhgx','1AWaeDG','194646tQFHSL','279XrYRbW','1958930orcgAT','4hEwpAY'];a155_0x1df1=function(){return _0x41c9e6;};return a155_0x1df1();}
1
+ (function(_0x5d68c4,_0x505d71){var _0x22cf0d=a155_0x2bb8,_0x33bd98=_0x5d68c4();while(!![]){try{var _0x342386=-parseInt(_0x22cf0d(0x11f))/0x1*(parseInt(_0x22cf0d(0x124))/0x2)+parseInt(_0x22cf0d(0x123))/0x3*(parseInt(_0x22cf0d(0x11a))/0x4)+parseInt(_0x22cf0d(0x119))/0x5+parseInt(_0x22cf0d(0x11c))/0x6*(-parseInt(_0x22cf0d(0x11e))/0x7)+parseInt(_0x22cf0d(0x121))/0x8*(-parseInt(_0x22cf0d(0x117))/0x9)+-parseInt(_0x22cf0d(0x11b))/0xa*(-parseInt(_0x22cf0d(0x11d))/0xb)+parseInt(_0x22cf0d(0x120))/0xc*(parseInt(_0x22cf0d(0x118))/0xd);if(_0x342386===_0x505d71)break;else _0x33bd98['push'](_0x33bd98['shift']());}catch(_0x4a4cdf){_0x33bd98['push'](_0x33bd98['shift']());}}}(a155_0x107a,0x42bda));function a155_0x107a(){var _0x3b4fa9=['1638705hgBfYQ','1009420bcgcJY','3547030XjnNxf','618108VKtXwm','11GOCfzb','7JxDiVY','1bRvOGU','4092NWtAGa','1313192eyJpbt','write','3TqRQiE','1067462cxtSZH','9GTSULW','5317jgrtyF'];a155_0x107a=function(){return _0x3b4fa9;};return a155_0x107a();}function a155_0x2bb8(_0x2f4a69,_0x50c088){_0x2f4a69=_0x2f4a69-0x117;var _0x107a69=a155_0x107a();var _0x2bb8cc=_0x107a69[_0x2f4a69];return _0x2bb8cc;}export function writeCliSideChannelLine(_0x751eb8){var _0x494398=a155_0x2bb8;process['stderr'][_0x494398(0x122)](_0x751eb8+'\x0a');}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lovrabet/rabetbase-cli",
3
- "version": "2.1.1-beta.0",
3
+ "version": "2.1.1",
4
4
  "license": "SEE LICENSE IN LICENSE",
5
5
  "repository": {
6
6
  "type": "git",