@lovrabet/rabetbase-cli 2.0.8 → 2.0.9

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 (137) 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/doctor.js +1 -1
  52. package/lib/commands/init/index.js +1 -1
  53. package/lib/commands/logs/index.js +1 -1
  54. package/lib/commands/menu/index.js +1 -1
  55. package/lib/commands/menu/shared/compare-table.js +1 -1
  56. package/lib/commands/menu/shared/index.js +1 -1
  57. package/lib/commands/menu/shared/inquirer.js +1 -1
  58. package/lib/commands/menu/shared/local-pages.js +1 -1
  59. package/lib/commands/menu/shared/logic.js +1 -1
  60. package/lib/commands/menu/shared/service.js +1 -1
  61. package/lib/commands/menu/shared/sync-core.js +1 -1
  62. package/lib/commands/menu/shared/update-core.js +1 -1
  63. package/lib/commands/menu/shared/valid-url.js +1 -1
  64. package/lib/commands/menu/sync.js +1 -1
  65. package/lib/commands/menu/update.js +1 -1
  66. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  67. package/lib/commands/project/create/format-elapsed.js +1 -1
  68. package/lib/commands/project/create/main.js +1 -1
  69. package/lib/commands/project/create/non-interactive.js +1 -1
  70. package/lib/commands/project/create/project-template-path.js +1 -1
  71. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  72. package/lib/commands/project/create/use-format-code.js +1 -1
  73. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  74. package/lib/commands/project/index.js +1 -1
  75. package/lib/commands/project/init.js +1 -1
  76. package/lib/commands/project/upgrade.js +1 -1
  77. package/lib/commands/registry.js +1 -1
  78. package/lib/commands/run/index.js +1 -1
  79. package/lib/commands/schema.js +1 -1
  80. package/lib/commands/skill/index.js +1 -1
  81. package/lib/commands/sql/detail.js +1 -1
  82. package/lib/commands/sql/exec.js +1 -1
  83. package/lib/commands/sql/index.js +1 -1
  84. package/lib/commands/sql/list.js +1 -1
  85. package/lib/commands/sql/save.js +1 -1
  86. package/lib/commands/sql/validate.js +1 -1
  87. package/lib/constant/cli.js +1 -1
  88. package/lib/constant/domain.js +1 -1
  89. package/lib/constant/env.js +1 -1
  90. package/lib/context.js +1 -1
  91. package/lib/core/alias-resolver.js +1 -1
  92. package/lib/core/api-client.js +1 -1
  93. package/lib/core/bff/config.js +1 -1
  94. package/lib/core/bff/file-system.js +1 -1
  95. package/lib/core/bff/hash.js +1 -1
  96. package/lib/core/bff/lock.js +1 -1
  97. package/lib/core/bff/utils.js +1 -1
  98. package/lib/core/db-resolver.js +1 -1
  99. package/lib/core/sql-validator.js +1 -1
  100. package/lib/errors.js +1 -1
  101. package/lib/framework/build-all-flags.js +1 -1
  102. package/lib/framework/flags.js +1 -1
  103. package/lib/framework/help.js +1 -1
  104. package/lib/framework/index.js +1 -1
  105. package/lib/framework/output.js +1 -1
  106. package/lib/framework/response.js +1 -1
  107. package/lib/framework/runner.js +1 -1
  108. package/lib/framework/schema-export.js +1 -1
  109. package/lib/framework/types.js +1 -1
  110. package/lib/generated/build-info.js +1 -1
  111. package/lib/help.js +1 -1
  112. package/lib/skills/main.js +1 -1
  113. package/lib/skills/npx-skills-add.js +1 -1
  114. package/lib/telemetry/cli-command-trace.js +1 -1
  115. package/lib/telemetry/cli-help-trace.js +1 -1
  116. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  117. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  118. package/lib/telemetry/send-cli-trace-log.js +1 -1
  119. package/lib/utils/ai_config.js +1 -1
  120. package/lib/utils/apply-jq-filter.js +1 -1
  121. package/lib/utils/cdn-config.js +1 -1
  122. package/lib/utils/check-sdk-version.js +1 -1
  123. package/lib/utils/cli-version-check.js +1 -1
  124. package/lib/utils/config.js +1 -1
  125. package/lib/utils/copy-directory.js +1 -1
  126. package/lib/utils/file-utils.js +1 -1
  127. package/lib/utils/guides-cdn.js +1 -1
  128. package/lib/utils/http-client.js +1 -1
  129. package/lib/utils/is-non-interactive.js +1 -1
  130. package/lib/utils/logger.js +1 -1
  131. package/lib/utils/platform.js +1 -1
  132. package/lib/utils/rules-cdn.js +1 -1
  133. package/lib/utils/sleep.js +1 -1
  134. package/lib/utils/template-replacer.js +1 -1
  135. package/lib/utils/version.js +1 -1
  136. package/lib/utils/with-active-cookie.js +1 -1
  137. package/package.json +4 -3
@@ -1 +1 @@
1
- const a134_0x5d5204=a134_0x470e;(function(_0x4869eb,_0xe1e6a8){const _0x4dc3c3=a134_0x470e,_0x4d921e=_0x4869eb();while(!![]){try{const _0x49cd7b=parseInt(_0x4dc3c3(0x12c))/0x1+-parseInt(_0x4dc3c3(0x132))/0x2+-parseInt(_0x4dc3c3(0x124))/0x3+parseInt(_0x4dc3c3(0x133))/0x4*(parseInt(_0x4dc3c3(0x136))/0x5)+-parseInt(_0x4dc3c3(0x137))/0x6*(parseInt(_0x4dc3c3(0x12f))/0x7)+parseInt(_0x4dc3c3(0x130))/0x8*(parseInt(_0x4dc3c3(0x126))/0x9)+parseInt(_0x4dc3c3(0x127))/0xa*(parseInt(_0x4dc3c3(0x12e))/0xb);if(_0x49cd7b===_0xe1e6a8)break;else _0x4d921e['push'](_0x4d921e['shift']());}catch(_0x3a549b){_0x4d921e['push'](_0x4d921e['shift']());}}}(a134_0x236e,0x42b5d));import{existsSync,mkdirSync,readFileSync,writeFileSync}from'node:fs';import{dirname,join,resolve}from'node:path';import{fileURLToPath}from'node:url';import{getTemplateBaseUrl}from'./config.js';import{appendUpdateTime}from'./guides-cdn.js';function a134_0x236e(){const _0x194ef8=['statusText','lastUpdated','string','315517AKXyQW','CDN\x20请求失败:\x20','2783qLHtjE','3997lFmbRp','191320eJejTZ','json','422888MDKvng','4pVyLSr','CDN\x20返回数据格式错误','.cursor/rules','250355jXCwzb','1626Xxwmle','content','358593MQYEih','../../templates/rules/lovrabet_rules.mdc.tpl','117VYRPEb','3260eyFOOZ','utf-8'];a134_0x236e=function(){return _0x194ef8;};return a134_0x236e();}const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);function getRulesCdnUrl(){const _0x56bdc5=getTemplateBaseUrl();return _0x56bdc5+'/rules/rules.json';}const LOCAL_TEMPLATE_PATH=resolve(__dirname,a134_0x5d5204(0x125));export async function fetchRulesFromCDN(){const _0x517c05=a134_0x5d5204,_0x3f61e0=getRulesCdnUrl(),_0x446b85=await fetch(_0x3f61e0,{'headers':{'Accept':'application/json'}});if(!_0x446b85['ok'])throw new Error(_0x517c05(0x12d)+_0x446b85['status']+'\x20'+_0x446b85[_0x517c05(0x129)]);const _0x1531f8=await _0x446b85[_0x517c05(0x131)]();if(!_0x1531f8[_0x517c05(0x138)]||typeof _0x1531f8[_0x517c05(0x138)]!==_0x517c05(0x12b))throw new Error(_0x517c05(0x134));return _0x1531f8;}export async function getRulesContent(){const _0x220432=a134_0x5d5204;try{const _0x5a3f82=await fetchRulesFromCDN();return _0x5a3f82[_0x220432(0x138)];}catch{return readLocalTemplate();}}export function readLocalTemplate(){const _0x411feb=a134_0x5d5204;if(existsSync(LOCAL_TEMPLATE_PATH))return readFileSync(LOCAL_TEMPLATE_PATH,_0x411feb(0x128));throw new Error('本地模板文件不存在:\x20'+LOCAL_TEMPLATE_PATH);}export async function writeRulesFile(_0x3ec2f0){const _0x34abbc=a134_0x5d5204,_0x13ce7d=await fetchRulesFromCDN()['catch'](()=>null);let _0x371821;_0x13ce7d?(_0x371821=_0x13ce7d['content'],_0x13ce7d[_0x34abbc(0x12a)]&&(_0x371821=appendUpdateTime(_0x371821,_0x13ce7d[_0x34abbc(0x12a)]))):_0x371821=readLocalTemplate();const _0x498002=dirname(_0x3ec2f0);!existsSync(_0x498002)&&mkdirSync(_0x498002,{'recursive':!![]}),writeFileSync(_0x3ec2f0,_0x371821,_0x34abbc(0x128));}function a134_0x470e(_0x183475,_0x3afeea){_0x183475=_0x183475-0x124;const _0x236eaa=a134_0x236e();let _0x470e3e=_0x236eaa[_0x183475];return _0x470e3e;}export async function copyRulesToCursor(_0x10de1a){const _0x45a49c=a134_0x5d5204,_0x30e5a0=join(_0x10de1a,_0x45a49c(0x135)),_0x2f770e=join(_0x30e5a0,'lovrabet_rules.mdc');if(existsSync(_0x2f770e))return![];return await writeRulesFile(_0x2f770e),!![];}export async function copyRulesToAgentsMd(_0x1d9ae2){const _0x157b35=join(_0x1d9ae2,'agents.md');if(existsSync(_0x157b35))return![];return await writeRulesFile(_0x157b35),!![];}
1
+ const a134_0x372d1a=a134_0xb10c;(function(_0x517405,_0x560254){const _0x5a1cb2=a134_0xb10c,_0xfb5a18=_0x517405();while(!![]){try{const _0x2eeb67=parseInt(_0x5a1cb2(0x1bb))/0x1*(-parseInt(_0x5a1cb2(0x1bf))/0x2)+-parseInt(_0x5a1cb2(0x1af))/0x3*(-parseInt(_0x5a1cb2(0x1ab))/0x4)+-parseInt(_0x5a1cb2(0x1ba))/0x5+-parseInt(_0x5a1cb2(0x1bd))/0x6*(parseInt(_0x5a1cb2(0x1c1))/0x7)+-parseInt(_0x5a1cb2(0x1be))/0x8*(-parseInt(_0x5a1cb2(0x1b2))/0x9)+parseInt(_0x5a1cb2(0x1bc))/0xa+parseInt(_0x5a1cb2(0x1b7))/0xb*(parseInt(_0x5a1cb2(0x1b1))/0xc);if(_0x2eeb67===_0x560254)break;else _0xfb5a18['push'](_0xfb5a18['shift']());}catch(_0x13dafb){_0xfb5a18['push'](_0xfb5a18['shift']());}}}(a134_0x5bae,0x7f14e));function a134_0xb10c(_0x2925e1,_0x391fc1){_0x2925e1=_0x2925e1-0x1a7;const _0x5bae84=a134_0x5bae();let _0xb10c66=_0x5bae84[_0x2925e1];return _0xb10c66;}import{existsSync,mkdirSync,readFileSync,writeFileSync}from'node:fs';import{dirname,join,resolve}from'node:path';import{fileURLToPath}from'node:url';import{getTemplateBaseUrl}from'../utils/config.js';import{appendUpdateTime}from'../utils/guides-cdn.js';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);function getRulesCdnUrl(){const _0x889b60=a134_0xb10c,_0x20d1f1=getTemplateBaseUrl();return _0x20d1f1+_0x889b60(0x1b5);}const LOCAL_TEMPLATE_PATH=resolve(__dirname,a134_0x372d1a(0x1b4));export async function fetchRulesFromCDN(){const _0x29ace6=a134_0x372d1a,_0xc9c9c4=getRulesCdnUrl(),_0x2b69cc=await fetch(_0xc9c9c4,{'headers':{'Accept':_0x29ace6(0x1a8)}});if(!_0x2b69cc['ok'])throw new Error(_0x29ace6(0x1ad)+_0x2b69cc[_0x29ace6(0x1c0)]+'\x20'+_0x2b69cc[_0x29ace6(0x1ae)]);const _0x106114=await _0x2b69cc[_0x29ace6(0x1c2)]();if(!_0x106114[_0x29ace6(0x1aa)]||typeof _0x106114[_0x29ace6(0x1aa)]!==_0x29ace6(0x1ac))throw new Error(_0x29ace6(0x1a9));return _0x106114;}export async function getRulesContent(){const _0x33666c=a134_0x372d1a;try{const _0x8f6d=await fetchRulesFromCDN();return _0x8f6d[_0x33666c(0x1aa)];}catch{return readLocalTemplate();}}function a134_0x5bae(){const _0x708645=['215495xlTGEk','1dSQtNL','1480440fUboNS','347838tLvmHj','839912BSqCCZ','1226830OYPdiT','status','35UkzKYP','json','utf-8','agents.md','application/json','CDN\x20返回数据格式错误','content','14132gWdsCg','string','CDN\x20请求失败:\x20','statusText','393sywESa','catch','12NtIrVx','45DTYaKz','lovrabet_rules.mdc','../../templates/rules/lovrabet_rules.mdc.tpl','/rules/rules.json','lastUpdated','3642023iYxwMa','.cursor/rules','本地模板文件不存在:\x20'];a134_0x5bae=function(){return _0x708645;};return a134_0x5bae();}export function readLocalTemplate(){const _0x58d240=a134_0x372d1a;if(existsSync(LOCAL_TEMPLATE_PATH))return readFileSync(LOCAL_TEMPLATE_PATH,_0x58d240(0x1c3));throw new Error(_0x58d240(0x1b9)+LOCAL_TEMPLATE_PATH);}export async function writeRulesFile(_0x3d7ff1){const _0x245cdd=a134_0x372d1a,_0x2aa048=await fetchRulesFromCDN()[_0x245cdd(0x1b0)](()=>null);let _0x30ce32;_0x2aa048?(_0x30ce32=_0x2aa048[_0x245cdd(0x1aa)],_0x2aa048[_0x245cdd(0x1b6)]&&(_0x30ce32=appendUpdateTime(_0x30ce32,_0x2aa048[_0x245cdd(0x1b6)]))):_0x30ce32=readLocalTemplate();const _0x206690=dirname(_0x3d7ff1);!existsSync(_0x206690)&&mkdirSync(_0x206690,{'recursive':!![]}),writeFileSync(_0x3d7ff1,_0x30ce32,_0x245cdd(0x1c3));}export async function copyRulesToCursor(_0x41ba00){const _0x26e5c5=a134_0x372d1a,_0x2a57bc=join(_0x41ba00,_0x26e5c5(0x1b8)),_0x4e822d=join(_0x2a57bc,_0x26e5c5(0x1b3));if(existsSync(_0x4e822d))return![];return await writeRulesFile(_0x4e822d),!![];}export async function copyRulesToAgentsMd(_0x53c52f){const _0x23ef9a=a134_0x372d1a,_0x1b0a51=join(_0x53c52f,_0x23ef9a(0x1a7));if(existsSync(_0x1b0a51))return![];return await writeRulesFile(_0x1b0a51),!![];}
@@ -1 +1 @@
1
- export function sleep(_0x1b9740){return new Promise(_0x408e03=>setTimeout(_0x408e03,_0x1b9740));}
1
+ export function sleep(_0x4b935a){return new Promise(_0x2f4c63=>setTimeout(_0x2f4c63,_0x4b935a));}
@@ -1 +1 @@
1
- const a136_0x305ad1=a136_0xb29a;(function(_0x343bee,_0x233be8){const _0x3c485c=a136_0xb29a,_0x1eae49=_0x343bee();while(!![]){try{const _0x47659d=parseInt(_0x3c485c(0x209))/0x1*(parseInt(_0x3c485c(0x1ed))/0x2)+parseInt(_0x3c485c(0x1e7))/0x3+-parseInt(_0x3c485c(0x1f7))/0x4+-parseInt(_0x3c485c(0x222))/0x5*(-parseInt(_0x3c485c(0x1ea))/0x6)+parseInt(_0x3c485c(0x217))/0x7+-parseInt(_0x3c485c(0x1fd))/0x8+parseInt(_0x3c485c(0x227))/0x9*(parseInt(_0x3c485c(0x200))/0xa);if(_0x47659d===_0x233be8)break;else _0x1eae49['push'](_0x1eae49['shift']());}catch(_0x11ef89){_0x1eae49['push'](_0x1eae49['shift']());}}}(a136_0x5313,0x8b528));function a136_0xb29a(_0x199367,_0x5632fb){_0x199367=_0x199367-0x1e6;const _0x531318=a136_0x5313();let _0xb29aa5=_0x531318[_0x199367];return _0xb29aa5;}import a136_0x27a27e from'node:fs';function a136_0x5313(){const _0x1b66e9=['toLocaleDateString','.js','push','6282lJMWjP','template','770346SjJluv','YourModel','now','6btHZdp','alias','开始处理模板内容替换','514tMusQL','processDirectory','replaceApiContent','.json','.scss','default','replace','toComponentName','toLocaleString','utf8','3857396MNmLVa','processTemplate','isFile','info','toUpperCase','datasetCode','888824aXUtyT','slice','endsWith','1740BUrEMb','split','writeFile','name','charAt','.css','promises','tableName','\x0a\x20\x20\x20\x20{\x20','3329LUdkWU','模板内容替换失败','includes','processFile','replaceContent','.jsx','toISOString','map','.tpl','mkdir','alias:\x20\x22','2-digit','.md','pop','1588307DQEKPs','join','numeric','error','LOVRABET','toLowerCase','readdir','datasetCode:\x20\x22','readFile','name:\x20\x22','toDisplayTitle','927140SDcBoA','tableName:\x20\x22'];a136_0x5313=function(){return _0x1b66e9;};return a136_0x5313();}import a136_0x82e33c from'node:path';import{logger}from'./logger.js';import{getCliVersion}from'./version.js';const CLI_VERSION=getCliVersion();export class TemplateReplacer{static[a136_0x305ad1(0x1f4)](_0x3ce191){const _0x3faa3=a136_0x305ad1,_0x24daff=_0x3ce191[_0x3faa3(0x201)]('/')[_0x3faa3(0x216)]()||_0x3ce191;return _0x24daff['split']('-')[_0x3faa3(0x210)](_0x489fe8=>_0x489fe8[_0x3faa3(0x204)](0x0)['toUpperCase']()+_0x489fe8[_0x3faa3(0x1fe)](0x1)['toLowerCase']())[_0x3faa3(0x218)]('');}static[a136_0x305ad1(0x221)](_0x1eb8c9){const _0x20b605=a136_0x305ad1,_0x4bb9aa=_0x1eb8c9[_0x20b605(0x201)]('/')[_0x20b605(0x216)]()||_0x1eb8c9;return _0x4bb9aa[_0x20b605(0x201)]('-')[_0x20b605(0x210)](_0x37983d=>_0x37983d[_0x20b605(0x204)](0x0)[_0x20b605(0x1fb)]()+_0x37983d['slice'](0x1)[_0x20b605(0x21c)]())[_0x20b605(0x218)]('\x20');}static[a136_0x305ad1(0x20d)](_0x560810,_0x158a0c,_0x23cec2){const _0x3c7c1a=a136_0x305ad1,_0x111310=this[_0x3c7c1a(0x1f4)](_0x158a0c),_0x5a5af8=this[_0x3c7c1a(0x221)](_0x158a0c),_0x28b826=new Date(),_0x34922f=_0x28b826[_0x3c7c1a(0x1f5)](undefined,{'year':_0x3c7c1a(0x219),'month':'2-digit','day':_0x3c7c1a(0x214),'hour':_0x3c7c1a(0x214),'minute':'2-digit','second':'2-digit','hour12':![]})[_0x3c7c1a(0x1f3)](/\//g,'-'),_0x32017a=_0x28b826[_0x3c7c1a(0x224)](undefined,{'year':'numeric','month':_0x3c7c1a(0x214),'day':_0x3c7c1a(0x214)})[_0x3c7c1a(0x1f3)](/\//g,'-'),_0x1e662b=_0x28b826['toLocaleTimeString'](undefined,{'hour12':![]});let _0xca481b=_0x560810[_0x3c7c1a(0x1f3)](/\{CliVersion\}/g,CLI_VERSION)[_0x3c7c1a(0x1f3)](/\{ComponentName\}/g,_0x111310)[_0x3c7c1a(0x1f3)](/\{DisplayTitle\}/g,_0x5a5af8)[_0x3c7c1a(0x1f3)](/\{PageName\}/g,_0x158a0c)['replace'](/\{TemplateName\}/g,_0x23cec2)[_0x3c7c1a(0x1f3)](/\{CreatedAt\}/g,_0x34922f)[_0x3c7c1a(0x1f3)](/\{CreatedDate\}/g,_0x32017a)[_0x3c7c1a(0x1f3)](/\{CreatedTime\}/g,_0x1e662b);return _0xca481b;}static[a136_0x305ad1(0x1ef)](_0x2ed6e4,_0x5321c3,_0x2b4a13,_0x5ba0eb,_0x3afb71,_0x46ffaf,_0x3dda74,_0x2cd4f1){const _0x5e1e4c=a136_0x305ad1,_0x51f939=new Date(),_0xce4a09=_0x51f939[_0x5e1e4c(0x20f)](),_0x40f8c6=_0x2b4a13[_0x5e1e4c(0x210)](_0x3e7b68=>{const _0x33cec1=_0x5e1e4c,_0x2a9b4b=[_0x33cec1(0x21e)+_0x3e7b68[_0x33cec1(0x1fc)]+'\x22',_0x33cec1(0x223)+_0x3e7b68[_0x33cec1(0x207)]+'\x22',_0x33cec1(0x220)+_0x3e7b68[_0x33cec1(0x203)]+'\x22'];return _0x3e7b68[_0x33cec1(0x1eb)]&&_0x2a9b4b[_0x33cec1(0x226)](_0x33cec1(0x213)+_0x3e7b68[_0x33cec1(0x1eb)]+'\x22'),_0x33cec1(0x208)+_0x2a9b4b[_0x33cec1(0x218)](',\x20')+'\x20},';})[_0x5e1e4c(0x218)](''),_0x851eb0=_0x5ba0eb||_0x2b4a13[0x0]?.[_0x5e1e4c(0x1eb)]||_0x5e1e4c(0x1e8);let _0x188b0a=_0x2ed6e4[_0x5e1e4c(0x1f3)](/\{AppCode\}/g,_0x5321c3)['replace'](/\{ModelConfigs\}/g,_0x40f8c6)[_0x5e1e4c(0x1f3)](/\{ExampleModelName\}/g,_0x851eb0)[_0x5e1e4c(0x1f3)](/\{ApiFileName\}/g,_0x3afb71||'api')['replace'](/\{ConfigName\}/g,_0x46ffaf||_0x5e1e4c(0x1f2))[_0x5e1e4c(0x1f3)](/\{ClientConfigParam\}/g,_0x3dda74||'')[_0x5e1e4c(0x1f3)](/\{VarPrefix\}/g,_0x2cd4f1||_0x5e1e4c(0x21b))['replace'](/\{CreatedAt\}/g,_0xce4a09);return _0x188b0a;}static async[a136_0x305ad1(0x1f8)](_0x1fade7,_0x534104,_0x1a6f6a,_0x1d4a6b,_0x5a86d8=!![]){const _0x2578de=a136_0x305ad1,_0x528b93=Date[_0x2578de(0x1e9)]();try{_0x5a86d8&&logger[_0x2578de(0x1fa)](_0x2578de(0x1e6),_0x2578de(0x1ec),{'templatePath':_0x1fade7,'targetPath':_0x534104,'pageName':_0x1a6f6a,'templateName':_0x1d4a6b});await a136_0x27a27e['promises'][_0x2578de(0x212)](_0x534104,{'recursive':!![]}),await this[_0x2578de(0x1ee)](_0x1fade7,_0x534104,_0x1a6f6a,_0x1d4a6b);if(_0x5a86d8){const _0x2f7daf=Date[_0x2578de(0x1e9)]()-_0x528b93;logger['success'](_0x2578de(0x1e6),'模板内容替换完成',_0x2f7daf,{'pageName':_0x1a6f6a,'templateName':_0x1d4a6b});}}catch(_0x122cd7){if(_0x5a86d8){const _0x123553=Date[_0x2578de(0x1e9)]()-_0x528b93;logger[_0x2578de(0x21a)](_0x2578de(0x1e6),_0x2578de(0x20a),{'templatePath':_0x1fade7,'targetPath':_0x534104,'pageName':_0x1a6f6a,'templateName':_0x1d4a6b,'error':_0x122cd7 instanceof Error?_0x122cd7['message']:String(_0x122cd7),'duration':_0x123553});}throw _0x122cd7;}}static async[a136_0x305ad1(0x1ee)](_0x2a4579,_0x2e5337,_0x1b323c,_0x4499fb){const _0x4c94b2=a136_0x305ad1,_0x114aa1=await a136_0x27a27e[_0x4c94b2(0x206)][_0x4c94b2(0x21d)](_0x2a4579,{'withFileTypes':!![]});for(const _0x4edcc1 of _0x114aa1){const _0x17113b=a136_0x82e33c[_0x4c94b2(0x218)](_0x2a4579,_0x4edcc1[_0x4c94b2(0x203)]);let _0x50d6b9=a136_0x82e33c[_0x4c94b2(0x218)](_0x2e5337,_0x4edcc1[_0x4c94b2(0x203)]);_0x4edcc1[_0x4c94b2(0x203)]['endsWith'](_0x4c94b2(0x211))&&(_0x50d6b9=a136_0x82e33c[_0x4c94b2(0x218)](_0x2e5337,_0x4edcc1[_0x4c94b2(0x203)][_0x4c94b2(0x1f3)](/\.tpl$/,'')));if(_0x4edcc1['isDirectory']())await a136_0x27a27e['promises'][_0x4c94b2(0x212)](_0x50d6b9,{'recursive':!![]}),await this[_0x4c94b2(0x1ee)](_0x17113b,_0x50d6b9,_0x1b323c,_0x4499fb);else _0x4edcc1[_0x4c94b2(0x1f9)]()&&await this[_0x4c94b2(0x20c)](_0x17113b,_0x50d6b9,_0x1b323c,_0x4499fb);}}static async[a136_0x305ad1(0x20c)](_0x5b4853,_0x28fc06,_0x2d5ad8,_0xe8533f){const _0x3bb1f5=a136_0x305ad1,_0x385ca8=a136_0x82e33c['extname'](_0x5b4853)[_0x3bb1f5(0x21c)]();_0x5b4853[_0x3bb1f5(0x1ff)]('.tpl')&&(_0x28fc06=_0x28fc06[_0x3bb1f5(0x1f3)](/\.tpl$/,''));const _0x59bf81=['.tsx','.ts',_0x3bb1f5(0x20e),_0x3bb1f5(0x225),_0x3bb1f5(0x1f0),_0x3bb1f5(0x215),_0x3bb1f5(0x205),_0x3bb1f5(0x1f1),_0x3bb1f5(0x211)];if(_0x59bf81[_0x3bb1f5(0x20b)](_0x385ca8)||_0x5b4853[_0x3bb1f5(0x1ff)](_0x3bb1f5(0x211))){const _0x5cea28=await a136_0x27a27e[_0x3bb1f5(0x206)][_0x3bb1f5(0x21f)](_0x5b4853,_0x3bb1f5(0x1f6)),_0x4fab74=this[_0x3bb1f5(0x20d)](_0x5cea28,_0x2d5ad8,_0xe8533f);await a136_0x27a27e[_0x3bb1f5(0x206)][_0x3bb1f5(0x202)](_0x28fc06,_0x4fab74,_0x3bb1f5(0x1f6));}else await a136_0x27a27e[_0x3bb1f5(0x206)]['copyFile'](_0x5b4853,_0x28fc06);}}
1
+ function a136_0x22b1(){const _0x3c93a4=['toLocaleString','YourModel','alias:\x20\x22','numeric','LOVRABET','117CaVqeR','.js','开始处理模板内容替换','info','success','831aTomCj','push','toLocaleTimeString','tableName:\x20\x22','replace','tableName','\x20},','copyFile','15oRLpGy','.css','datasetCode','name','.jsx','223240tQjKbo','replaceContent','2-digit','\x0a\x20\x20\x20\x20{\x20','promises','template','processDirectory','alias','1306876ENmdjD','1828wTUtBc','pop','.ts','map','toDisplayTitle','mkdir','endsWith','toLocaleDateString','extname','processFile','3246648UTqbhn','模板内容替换失败','toUpperCase','2354401ErllAf','.json','toLowerCase','.tpl','slice','isDirectory','name:\x20\x22','datasetCode:\x20\x22','charAt','message','join','split','default','now','toComponentName','336523WJOfOR','.scss','api','includes','toISOString','readdir','599065NwiKiU','utf8','error','120rJUbYg'];a136_0x22b1=function(){return _0x3c93a4;};return a136_0x22b1();}const a136_0x2c01b0=a136_0x4447;function a136_0x4447(_0x5f458f,_0x193490){_0x5f458f=_0x5f458f-0x1ef;const _0x22b124=a136_0x22b1();let _0x44477d=_0x22b124[_0x5f458f];return _0x44477d;}(function(_0x3b8211,_0x1e3047){const _0x59bbce=a136_0x4447,_0x2fd455=_0x3b8211();while(!![]){try{const _0x5a1698=-parseInt(_0x59bbce(0x212))/0x1+parseInt(_0x59bbce(0x1f0))/0x2*(-parseInt(_0x59bbce(0x220))/0x3)+-parseInt(_0x59bbce(0x1ef))/0x4+-parseInt(_0x59bbce(0x228))/0x5*(-parseInt(_0x59bbce(0x1fa))/0x6)+-parseInt(_0x59bbce(0x1fd))/0x7+-parseInt(_0x59bbce(0x22d))/0x8*(-parseInt(_0x59bbce(0x21b))/0x9)+-parseInt(_0x59bbce(0x215))/0xa*(-parseInt(_0x59bbce(0x20c))/0xb);if(_0x5a1698===_0x1e3047)break;else _0x2fd455['push'](_0x2fd455['shift']());}catch(_0xa21144){_0x2fd455['push'](_0x2fd455['shift']());}}}(a136_0x22b1,0xcc90c));import a136_0x3090cc from'node:fs';import a136_0x5c5273 from'node:path';import{logger}from'../utils/logger.js';import{getCliVersion}from'../utils/version.js';const CLI_VERSION=getCliVersion();export class TemplateReplacer{static[a136_0x2c01b0(0x20b)](_0x16fe11){const _0x43c430=a136_0x2c01b0,_0x55fb96=_0x16fe11[_0x43c430(0x208)]('/')[_0x43c430(0x1f1)]()||_0x16fe11;return _0x55fb96[_0x43c430(0x208)]('-')[_0x43c430(0x1f3)](_0xc283b8=>_0xc283b8[_0x43c430(0x205)](0x0)[_0x43c430(0x1fc)]()+_0xc283b8[_0x43c430(0x201)](0x1)['toLowerCase']())['join']('');}static[a136_0x2c01b0(0x1f4)](_0x2a45d4){const _0x2d3e7=a136_0x2c01b0,_0x1dec25=_0x2a45d4[_0x2d3e7(0x208)]('/')[_0x2d3e7(0x1f1)]()||_0x2a45d4;return _0x1dec25['split']('-')[_0x2d3e7(0x1f3)](_0x3b33d4=>_0x3b33d4[_0x2d3e7(0x205)](0x0)[_0x2d3e7(0x1fc)]()+_0x3b33d4[_0x2d3e7(0x201)](0x1)['toLowerCase']())[_0x2d3e7(0x207)]('\x20');}static[a136_0x2c01b0(0x22e)](_0x1a566b,_0xf178c4,_0x20fb27){const _0x17d8b6=a136_0x2c01b0,_0x4e2a96=this[_0x17d8b6(0x20b)](_0xf178c4),_0xf3863c=this[_0x17d8b6(0x1f4)](_0xf178c4),_0x2a108a=new Date(),_0x13a27c=_0x2a108a[_0x17d8b6(0x216)](undefined,{'year':_0x17d8b6(0x219),'month':'2-digit','day':'2-digit','hour':_0x17d8b6(0x22f),'minute':_0x17d8b6(0x22f),'second':'2-digit','hour12':![]})[_0x17d8b6(0x224)](/\//g,'-'),_0x14360e=_0x2a108a[_0x17d8b6(0x1f7)](undefined,{'year':_0x17d8b6(0x219),'month':_0x17d8b6(0x22f),'day':_0x17d8b6(0x22f)})[_0x17d8b6(0x224)](/\//g,'-'),_0x2c156a=_0x2a108a[_0x17d8b6(0x222)](undefined,{'hour12':![]});let _0x28fe16=_0x1a566b[_0x17d8b6(0x224)](/\{CliVersion\}/g,CLI_VERSION)['replace'](/\{ComponentName\}/g,_0x4e2a96)['replace'](/\{DisplayTitle\}/g,_0xf3863c)[_0x17d8b6(0x224)](/\{PageName\}/g,_0xf178c4)[_0x17d8b6(0x224)](/\{TemplateName\}/g,_0x20fb27)['replace'](/\{CreatedAt\}/g,_0x13a27c)[_0x17d8b6(0x224)](/\{CreatedDate\}/g,_0x14360e)['replace'](/\{CreatedTime\}/g,_0x2c156a);return _0x28fe16;}static['replaceApiContent'](_0x1f54f2,_0x583106,_0x1fafde,_0x36e3a1,_0x47b175,_0x12b144,_0x83bf11,_0x2fc76a){const _0x263f39=a136_0x2c01b0,_0x338ea1=new Date(),_0x2a865f=_0x338ea1[_0x263f39(0x210)](),_0x418b8d=_0x1fafde[_0x263f39(0x1f3)](_0x46a9b6=>{const _0x55a822=_0x263f39,_0x4507ee=[_0x55a822(0x204)+_0x46a9b6[_0x55a822(0x22a)]+'\x22',_0x55a822(0x223)+_0x46a9b6[_0x55a822(0x225)]+'\x22',_0x55a822(0x203)+_0x46a9b6['name']+'\x22'];return _0x46a9b6[_0x55a822(0x234)]&&_0x4507ee[_0x55a822(0x221)](_0x55a822(0x218)+_0x46a9b6['alias']+'\x22'),_0x55a822(0x230)+_0x4507ee[_0x55a822(0x207)](',\x20')+_0x55a822(0x226);})[_0x263f39(0x207)](''),_0x10de03=_0x36e3a1||_0x1fafde[0x0]?.[_0x263f39(0x234)]||_0x263f39(0x217);let _0x806036=_0x1f54f2[_0x263f39(0x224)](/\{AppCode\}/g,_0x583106)['replace'](/\{ModelConfigs\}/g,_0x418b8d)[_0x263f39(0x224)](/\{ExampleModelName\}/g,_0x10de03)[_0x263f39(0x224)](/\{ApiFileName\}/g,_0x47b175||_0x263f39(0x20e))[_0x263f39(0x224)](/\{ConfigName\}/g,_0x12b144||_0x263f39(0x209))[_0x263f39(0x224)](/\{ClientConfigParam\}/g,_0x83bf11||'')['replace'](/\{VarPrefix\}/g,_0x2fc76a||_0x263f39(0x21a))[_0x263f39(0x224)](/\{CreatedAt\}/g,_0x2a865f);return _0x806036;}static async['processTemplate'](_0x5aeb35,_0x2b0fb8,_0x42ebb7,_0x3a4efd,_0x1c7639=!![]){const _0x11618a=a136_0x2c01b0,_0x55ae84=Date[_0x11618a(0x20a)]();try{_0x1c7639&&logger[_0x11618a(0x21e)](_0x11618a(0x232),_0x11618a(0x21d),{'templatePath':_0x5aeb35,'targetPath':_0x2b0fb8,'pageName':_0x42ebb7,'templateName':_0x3a4efd});await a136_0x3090cc[_0x11618a(0x231)][_0x11618a(0x1f5)](_0x2b0fb8,{'recursive':!![]}),await this[_0x11618a(0x233)](_0x5aeb35,_0x2b0fb8,_0x42ebb7,_0x3a4efd);if(_0x1c7639){const _0x47a645=Date['now']()-_0x55ae84;logger[_0x11618a(0x21f)](_0x11618a(0x232),'模板内容替换完成',_0x47a645,{'pageName':_0x42ebb7,'templateName':_0x3a4efd});}}catch(_0x67e7c3){if(_0x1c7639){const _0x4dc0a5=Date[_0x11618a(0x20a)]()-_0x55ae84;logger[_0x11618a(0x214)](_0x11618a(0x232),_0x11618a(0x1fb),{'templatePath':_0x5aeb35,'targetPath':_0x2b0fb8,'pageName':_0x42ebb7,'templateName':_0x3a4efd,'error':_0x67e7c3 instanceof Error?_0x67e7c3[_0x11618a(0x206)]:String(_0x67e7c3),'duration':_0x4dc0a5});}throw _0x67e7c3;}}static async['processDirectory'](_0x40c101,_0x3b6ca9,_0x1a7c95,_0x49343e){const _0x3a342d=a136_0x2c01b0,_0x3cc816=await a136_0x3090cc[_0x3a342d(0x231)][_0x3a342d(0x211)](_0x40c101,{'withFileTypes':!![]});for(const _0x53eb3c of _0x3cc816){const _0x545944=a136_0x5c5273[_0x3a342d(0x207)](_0x40c101,_0x53eb3c[_0x3a342d(0x22b)]);let _0x1062f7=a136_0x5c5273['join'](_0x3b6ca9,_0x53eb3c[_0x3a342d(0x22b)]);_0x53eb3c[_0x3a342d(0x22b)]['endsWith'](_0x3a342d(0x200))&&(_0x1062f7=a136_0x5c5273[_0x3a342d(0x207)](_0x3b6ca9,_0x53eb3c[_0x3a342d(0x22b)][_0x3a342d(0x224)](/\.tpl$/,'')));if(_0x53eb3c[_0x3a342d(0x202)]())await a136_0x3090cc[_0x3a342d(0x231)]['mkdir'](_0x1062f7,{'recursive':!![]}),await this[_0x3a342d(0x233)](_0x545944,_0x1062f7,_0x1a7c95,_0x49343e);else _0x53eb3c['isFile']()&&await this[_0x3a342d(0x1f9)](_0x545944,_0x1062f7,_0x1a7c95,_0x49343e);}}static async['processFile'](_0x34315f,_0x2ee89f,_0x5e0fc4,_0x45e240){const _0x2b7ec1=a136_0x2c01b0,_0x12240b=a136_0x5c5273[_0x2b7ec1(0x1f8)](_0x34315f)[_0x2b7ec1(0x1ff)]();_0x34315f[_0x2b7ec1(0x1f6)](_0x2b7ec1(0x200))&&(_0x2ee89f=_0x2ee89f[_0x2b7ec1(0x224)](/\.tpl$/,''));const _0xce5d4a=['.tsx',_0x2b7ec1(0x1f2),_0x2b7ec1(0x22c),_0x2b7ec1(0x21c),_0x2b7ec1(0x1fe),'.md',_0x2b7ec1(0x229),_0x2b7ec1(0x20d),'.tpl'];if(_0xce5d4a[_0x2b7ec1(0x20f)](_0x12240b)||_0x34315f['endsWith'](_0x2b7ec1(0x200))){const _0x1bbe9e=await a136_0x3090cc[_0x2b7ec1(0x231)]['readFile'](_0x34315f,_0x2b7ec1(0x213)),_0x5dcb32=this['replaceContent'](_0x1bbe9e,_0x5e0fc4,_0x45e240);await a136_0x3090cc[_0x2b7ec1(0x231)]['writeFile'](_0x2ee89f,_0x5dcb32,_0x2b7ec1(0x213));}else await a136_0x3090cc[_0x2b7ec1(0x231)][_0x2b7ec1(0x227)](_0x34315f,_0x2ee89f);}}
@@ -1 +1 @@
1
- function a137_0x59e1(){var _0x25269a=['781856WtQvNb','126yKawDl','6TkKspw','10JTMoyF','8VlyvMo','431832xVSCaJ','4736268CJCCHC','480193PjwNMU','158035LAtRIC','322348kScqLu','4862044ZngPMj'];a137_0x59e1=function(){return _0x25269a;};return a137_0x59e1();}(function(_0x4842a1,_0x1b0f86){var _0x51a664=a137_0x3e63,_0x157133=_0x4842a1();while(!![]){try{var _0x324e99=parseInt(_0x51a664(0x1ca))/0x1+parseInt(_0x51a664(0x1c4))/0x2*(parseInt(_0x51a664(0x1c1))/0x3)+-parseInt(_0x51a664(0x1c8))/0x4+parseInt(_0x51a664(0x1c7))/0x5*(-parseInt(_0x51a664(0x1c0))/0x6)+-parseInt(_0x51a664(0x1c6))/0x7*(parseInt(_0x51a664(0x1c3))/0x8)+parseInt(_0x51a664(0x1c5))/0x9+parseInt(_0x51a664(0x1c2))/0xa*(-parseInt(_0x51a664(0x1c9))/0xb);if(_0x324e99===_0x1b0f86)break;else _0x157133['push'](_0x157133['shift']());}catch(_0x388639){_0x157133['push'](_0x157133['shift']());}}}(a137_0x59e1,0x7668b));function a137_0x3e63(_0x29061b,_0x51be4c){_0x29061b=_0x29061b-0x1c0;var _0x59e1f1=a137_0x59e1();var _0x3e637e=_0x59e1f1[_0x29061b];return _0x3e637e;}import{VERSION}from'../generated/build-info.js';export function getCliVersion(){return VERSION;}
1
+ (function(_0x4bea68,_0x23cc1){var _0x1fa492=a137_0x2679,_0x166ed0=_0x4bea68();while(!![]){try{var _0xb14a70=parseInt(_0x1fa492(0x15d))/0x1*(-parseInt(_0x1fa492(0x161))/0x2)+-parseInt(_0x1fa492(0x15c))/0x3+parseInt(_0x1fa492(0x162))/0x4*(parseInt(_0x1fa492(0x15e))/0x5)+-parseInt(_0x1fa492(0x158))/0x6+-parseInt(_0x1fa492(0x160))/0x7*(parseInt(_0x1fa492(0x159))/0x8)+parseInt(_0x1fa492(0x15b))/0x9*(parseInt(_0x1fa492(0x15f))/0xa)+parseInt(_0x1fa492(0x15a))/0xb;if(_0xb14a70===_0x23cc1)break;else _0x166ed0['push'](_0x166ed0['shift']());}catch(_0x595879){_0x166ed0['push'](_0x166ed0['shift']());}}}(a137_0x17b4,0xb587b));function a137_0x17b4(){var _0x564fbf=['3418096bJihDc','69936uKDEyp','768432kvSMFU','18866144PqFFYp','9620307CeNnUv','431580YTvjmu','1394732kJTKbZ','5TGxIkx','10hMWDzI','98uOlZHS','2nLlCTA'];a137_0x17b4=function(){return _0x564fbf;};return a137_0x17b4();}import{VERSION}from'../generated/build-info.js';function a137_0x2679(_0xd703a2,_0x4d3c85){_0xd703a2=_0xd703a2-0x158;var _0x17b4bf=a137_0x17b4();var _0x267983=_0x17b4bf[_0xd703a2];return _0x267983;}export function getCliVersion(){return VERSION;}
@@ -1 +1 @@
1
- function a138_0x3a3e(_0x500c0f,_0x2342c1){_0x500c0f=_0x500c0f-0xa0;var _0x4c19c2=a138_0x4c19();var _0x3a3e0=_0x4c19c2[_0x500c0f];return _0x3a3e0;}(function(_0x123572,_0x458ad5){var _0x4a945a=a138_0x3a3e,_0x2c0016=_0x123572();while(!![]){try{var _0x426199=-parseInt(_0x4a945a(0xa4))/0x1*(parseInt(_0x4a945a(0xa6))/0x2)+parseInt(_0x4a945a(0xa9))/0x3*(-parseInt(_0x4a945a(0xa2))/0x4)+parseInt(_0x4a945a(0xab))/0x5*(parseInt(_0x4a945a(0xa7))/0x6)+parseInt(_0x4a945a(0xa0))/0x7+parseInt(_0x4a945a(0xaa))/0x8+-parseInt(_0x4a945a(0xa1))/0x9*(-parseInt(_0x4a945a(0xa8))/0xa)+parseInt(_0x4a945a(0xa5))/0xb*(-parseInt(_0x4a945a(0xa3))/0xc);if(_0x426199===_0x458ad5)break;else _0x2c0016['push'](_0x2c0016['shift']());}catch(_0x251a92){_0x2c0016['push'](_0x2c0016['shift']());}}}(a138_0x4c19,0xca99f));import{setActiveCookie,clearActiveCookie}from'../core/api-client.js';export async function withActiveCookie(_0x3bf54f,_0x1158d5){setActiveCookie(_0x3bf54f);try{return await _0x1158d5();}finally{clearActiveCookie();}}function a138_0x4c19(){var _0xf86ff4=['249846tYUajd','2810dRAuEA','3sYymVJ','7052760cYWKdK','95vDdTTq','10370108GdLJYA','18243RTUIyo','4360860XIMfVK','6133476LUMDEa','1CyCGCd','22xaSduD','1562978GKwpKE'];a138_0x4c19=function(){return _0xf86ff4;};return a138_0x4c19();}
1
+ function a138_0x3517(){var _0xe55649=['431248GTVmRD','5582bChgDR','5131504dDnNHQ','2678480KNiEOA','126dcBGiw','3454158gyPRWQ','3mPUtGs','421rAGSmG','7HKCrdA','3192BfedEO','2883740EiKSgN','15037amTxxF'];a138_0x3517=function(){return _0xe55649;};return a138_0x3517();}(function(_0x3fd770,_0x122c64){var _0x3355df=a138_0x14c3,_0x10355b=_0x3fd770();while(!![]){try{var _0xea5d2a=parseInt(_0x3355df(0x177))/0x1*(-parseInt(_0x3355df(0x17d))/0x2)+-parseInt(_0x3355df(0x176))/0x3*(-parseInt(_0x3355df(0x17e))/0x4)+parseInt(_0x3355df(0x17a))/0x5+-parseInt(_0x3355df(0x175))/0x6*(parseInt(_0x3355df(0x178))/0x7)+parseInt(_0x3355df(0x17c))/0x8*(parseInt(_0x3355df(0x180))/0x9)+parseInt(_0x3355df(0x17f))/0xa+parseInt(_0x3355df(0x17b))/0xb*(-parseInt(_0x3355df(0x179))/0xc);if(_0xea5d2a===_0x122c64)break;else _0x10355b['push'](_0x10355b['shift']());}catch(_0x41c819){_0x10355b['push'](_0x10355b['shift']());}}}(a138_0x3517,0xbb756));function a138_0x14c3(_0xf1d0e5,_0x52a84f){_0xf1d0e5=_0xf1d0e5-0x175;var _0x35173a=a138_0x3517();var _0x14c34e=_0x35173a[_0xf1d0e5];return _0x14c34e;}import{setActiveCookie,clearActiveCookie}from'../core/api-client.js';export async function withActiveCookie(_0x54469d,_0x3d8743){setActiveCookie(_0x54469d);try{return await _0x3d8743();}finally{clearActiveCookie();}}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lovrabet/rabetbase-cli",
3
- "version": "2.0.8",
3
+ "version": "2.0.9",
4
4
  "license": "SEE LICENSE IN LICENSE",
5
5
  "repository": {
6
6
  "type": "git",
@@ -17,9 +17,9 @@
17
17
  },
18
18
  "scripts": {
19
19
  "prebuild": "node scripts/generate-build-info.js",
20
- "build": "rm -rf lib && tsc && javascript-obfuscator lib --output lib",
20
+ "build": "rm -rf lib && tsc && tsc-alias && javascript-obfuscator lib --output lib",
21
21
  "prebuild:dev": "node scripts/generate-build-info.js",
22
- "build:dev": "rm -rf lib && tsc",
22
+ "build:dev": "rm -rf lib && tsc && tsc-alias",
23
23
  "start": "tsc --watch",
24
24
  "sync-template": "node scripts/sync-template.js",
25
25
  "beta-release": "sh scripts/update-beta-version.sh && bun run build && git push && git push origin --tag && bun publish --tag beta",
@@ -72,6 +72,7 @@
72
72
  "@vitest/ui": "^3.2.4",
73
73
  "c8": "^10.1.3",
74
74
  "javascript-obfuscator": "^5.4.1",
75
+ "tsc-alias": "^1.8.10",
75
76
  "typescript": "latest",
76
77
  "vitest": "^3.2.4"
77
78
  }