@lovrabet/rabetbase-cli 2.0.12 → 2.0.13

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 (140) 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/pull.js +1 -0
  86. package/lib/commands/sql/save.js +1 -1
  87. package/lib/commands/sql/shared.js +1 -0
  88. package/lib/commands/sql/validate.js +1 -1
  89. package/lib/constant/cli.js +1 -1
  90. package/lib/constant/domain.js +1 -1
  91. package/lib/constant/env.js +1 -1
  92. package/lib/constant/paths.js +1 -1
  93. package/lib/context.js +1 -1
  94. package/lib/core/alias-resolver.js +1 -1
  95. package/lib/core/api-client.js +1 -1
  96. package/lib/core/bff/config.js +1 -1
  97. package/lib/core/bff/file-system.js +1 -1
  98. package/lib/core/bff/hash.js +1 -1
  99. package/lib/core/bff/lock.js +1 -1
  100. package/lib/core/bff/utils.js +1 -1
  101. package/lib/core/db-resolver.js +1 -1
  102. package/lib/core/sql-validator.js +1 -1
  103. package/lib/errors.js +1 -1
  104. package/lib/framework/build-all-flags.js +1 -1
  105. package/lib/framework/flags.js +1 -1
  106. package/lib/framework/help.js +1 -1
  107. package/lib/framework/index.js +1 -1
  108. package/lib/framework/output.js +1 -1
  109. package/lib/framework/response.js +1 -1
  110. package/lib/framework/runner.js +1 -1
  111. package/lib/framework/schema-export.js +1 -1
  112. package/lib/framework/types.js +1 -1
  113. package/lib/generated/build-info.js +1 -1
  114. package/lib/help.js +1 -1
  115. package/lib/skills/main.js +1 -1
  116. package/lib/skills/npx-skills-add.js +1 -1
  117. package/lib/telemetry/cli-command-trace.js +1 -1
  118. package/lib/telemetry/cli-help-trace.js +1 -1
  119. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  120. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  121. package/lib/telemetry/send-cli-trace-log.js +1 -1
  122. package/lib/utils/ai_config.js +1 -1
  123. package/lib/utils/apply-jq-filter.js +1 -1
  124. package/lib/utils/cdn-config.js +1 -1
  125. package/lib/utils/check-sdk-version.js +1 -1
  126. package/lib/utils/cli-version-check.js +1 -1
  127. package/lib/utils/config.js +1 -1
  128. package/lib/utils/copy-directory.js +1 -1
  129. package/lib/utils/file-utils.js +1 -1
  130. package/lib/utils/guides-cdn.js +1 -1
  131. package/lib/utils/http-client.js +1 -1
  132. package/lib/utils/is-non-interactive.js +1 -1
  133. package/lib/utils/logger.js +1 -1
  134. package/lib/utils/platform.js +1 -1
  135. package/lib/utils/rules-cdn.js +1 -1
  136. package/lib/utils/sleep.js +1 -1
  137. package/lib/utils/template-replacer.js +1 -1
  138. package/lib/utils/version.js +1 -1
  139. package/lib/utils/with-active-cookie.js +1 -1
  140. package/package.json +1 -1
@@ -1 +1 @@
1
- function a129_0x2a1d(){const _0x3ebb3d=['1349170xFPXPR','9rWYbTr','5827472HyPVfP','4824632RPcWxA','426494cPduiA','66YBrJRL','711689wwgzqU','56484ZPxVMQ','isDirectory','294SUsxnD','103855oZALvv','40uyKfQT'];a129_0x2a1d=function(){return _0x3ebb3d;};return a129_0x2a1d();}(function(_0x41a4bf,_0x34bc40){const _0x3681d2=a129_0x18e6,_0x40e20b=_0x41a4bf();while(!![]){try{const _0x43e006=parseInt(_0x3681d2(0xa9))/0x1+parseInt(_0x3681d2(0xa7))/0x2+parseInt(_0x3681d2(0xaa))/0x3*(parseInt(_0x3681d2(0xae))/0x4)+parseInt(_0x3681d2(0xad))/0x5*(-parseInt(_0x3681d2(0xac))/0x6)+-parseInt(_0x3681d2(0xa5))/0x7+parseInt(_0x3681d2(0xa6))/0x8*(parseInt(_0x3681d2(0xa4))/0x9)+parseInt(_0x3681d2(0xa3))/0xa*(parseInt(_0x3681d2(0xa8))/0xb);if(_0x43e006===_0x34bc40)break;else _0x40e20b['push'](_0x40e20b['shift']());}catch(_0x49e523){_0x40e20b['push'](_0x40e20b['shift']());}}}(a129_0x2a1d,0xa4ec2));import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';function a129_0x18e6(_0x1144a6,_0x20f032){_0x1144a6=_0x1144a6-0xa3;const _0x2a1d4a=a129_0x2a1d();let _0x18e650=_0x2a1d4a[_0x1144a6];return _0x18e650;}import{join}from'node:path';export async function copyDir(_0x5298bd,_0x1d3195){const _0x12719e=a129_0x18e6,_0x2f73a9=statSync(_0x5298bd);if(_0x2f73a9[_0x12719e(0xab)]()){!existsSync(_0x1d3195)&&mkdirSync(_0x1d3195,{'recursive':!![]});const _0x1f4f0a=readdirSync(_0x5298bd);for(const _0x4677fc of _0x1f4f0a){await copyDir(join(_0x5298bd,_0x4677fc),join(_0x1d3195,_0x4677fc));}}else copyFileSync(_0x5298bd,_0x1d3195);}export function ensureDir(_0xdd73d4){!existsSync(_0xdd73d4)&&mkdirSync(_0xdd73d4,{'recursive':!![]});}export function pathExists(_0x4f0c80){return existsSync(_0x4f0c80);}
1
+ (function(_0x5b6cdf,_0x54f4f9){const _0x2f76db=a131_0x59b1,_0x18258c=_0x5b6cdf();while(!![]){try{const _0x1077dd=-parseInt(_0x2f76db(0x116))/0x1+-parseInt(_0x2f76db(0x115))/0x2+parseInt(_0x2f76db(0x112))/0x3*(-parseInt(_0x2f76db(0x117))/0x4)+-parseInt(_0x2f76db(0x110))/0x5+parseInt(_0x2f76db(0x118))/0x6+parseInt(_0x2f76db(0x111))/0x7*(-parseInt(_0x2f76db(0x113))/0x8)+-parseInt(_0x2f76db(0x10f))/0x9*(-parseInt(_0x2f76db(0x114))/0xa);if(_0x1077dd===_0x54f4f9)break;else _0x18258c['push'](_0x18258c['shift']());}catch(_0xda7392){_0x18258c['push'](_0x18258c['shift']());}}}(a131_0x13b5,0xd1e5c));import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';import{join}from'node:path';function a131_0x13b5(){const _0xe21e7f=['isDirectory','16212942uHuiqw','8173795fnSahQ','21lKubYL','813861ZIQjVK','104336IFpMtp','10ArpGKE','293990GMYWRl','188627gESDTc','8fRGKkf','9662298NNUrxu'];a131_0x13b5=function(){return _0xe21e7f;};return a131_0x13b5();}export async function copyDir(_0xc60788,_0x40bbb3){const _0x509168=a131_0x59b1,_0x5cd6ab=statSync(_0xc60788);if(_0x5cd6ab[_0x509168(0x10e)]()){!existsSync(_0x40bbb3)&&mkdirSync(_0x40bbb3,{'recursive':!![]});const _0x524f18=readdirSync(_0xc60788);for(const _0x1fa56c of _0x524f18){await copyDir(join(_0xc60788,_0x1fa56c),join(_0x40bbb3,_0x1fa56c));}}else copyFileSync(_0xc60788,_0x40bbb3);}export function ensureDir(_0x46f98c){!existsSync(_0x46f98c)&&mkdirSync(_0x46f98c,{'recursive':!![]});}function a131_0x59b1(_0x13a2a9,_0x29b0a1){_0x13a2a9=_0x13a2a9-0x10e;const _0x13b505=a131_0x13b5();let _0x59b113=_0x13b505[_0x13a2a9];return _0x59b113;}export function pathExists(_0x480437){return existsSync(_0x480437);}
@@ -1 +1 @@
1
- const a130_0x1408f5=a130_0x5646;function a130_0x3292(){const _0x1b5f68=['790698vymWdg','statusText','810TqBXEh','.md','798paqzfP','status','extendContent','object','lastUpdated','40fWiDGS','CDN\x20请求失败:\x20','replace','join','cache','entries','path','guides','.lovrabet','1yNWXzv','CDN\x20返回数据格式错误','title','19056RUoorm','1891539GxWuLi','14619HotsqE','application/json','push','760989XqZngS','CDN\x20数据中缺少\x20skillTemplate','trimEnd','utf-8','skillTemplate','1905HtSSTz','map','/skills/guides.json','55862SOttoS','.lovrabet/skill/guides'];a130_0x3292=function(){return _0x1b5f68;};return a130_0x3292();}(function(_0x5414f3,_0x2207ae){const _0xec8d67=a130_0x5646,_0x4e7d56=_0x5414f3();while(!![]){try{const _0x3d7a20=-parseInt(_0xec8d67(0xc2))/0x1*(parseInt(_0xec8d67(0xd2))/0x2)+-parseInt(_0xec8d67(0xca))/0x3+parseInt(_0xec8d67(0xdd))/0x4*(-parseInt(_0xec8d67(0xcf))/0x5)+-parseInt(_0xec8d67(0xd4))/0x6+parseInt(_0xec8d67(0xd8))/0x7*(parseInt(_0xec8d67(0xc5))/0x8)+parseInt(_0xec8d67(0xc6))/0x9+parseInt(_0xec8d67(0xd6))/0xa*(parseInt(_0xec8d67(0xc7))/0xb);if(_0x3d7a20===_0x2207ae)break;else _0x4e7d56['push'](_0x4e7d56['shift']());}catch(_0x3db406){_0x4e7d56['push'](_0x4e7d56['shift']());}}}(a130_0x3292,0x2a095));import{mkdirSync,writeFileSync}from'node:fs';import{dirname,join}from'node:path';import{homedir}from'node:os';import{getTemplateBaseUrl}from'../utils/config.js';function getGuidesCdnUrl(){const _0x4b2b32=a130_0x5646,_0x65af2b=getTemplateBaseUrl();return _0x65af2b+_0x4b2b32(0xd1);}const CACHE_DIR=join(homedir(),a130_0x1408f5(0xc1),a130_0x1408f5(0xbd));export async function fetchGuidesFromCDN(){const _0xce687e=a130_0x1408f5,_0x55b97d=getGuidesCdnUrl(),_0x472884=await fetch(_0x55b97d,{'headers':{'Accept':_0xce687e(0xc8)}});if(!_0x472884['ok'])throw new Error(_0xce687e(0xde)+_0x472884[_0xce687e(0xd9)]+'\x20'+_0x472884[_0xce687e(0xd5)]);const _0x4e8696=await _0x472884['json']();if(!_0x4e8696[_0xce687e(0xc0)]||typeof _0x4e8696[_0xce687e(0xc0)]!==_0xce687e(0xdb))throw new Error(_0xce687e(0xc3));return _0x4e8696;}export function writeGuidesToProject(_0x5a9ac5,_0x2a4320,_0x5d77d8=a130_0x1408f5(0xd3),_0x575ea4){const _0x28f5f6=a130_0x1408f5,_0x4b2daf=join(_0x2a4320,_0x5d77d8);mkdirSync(_0x4b2daf,{'recursive':!![]});for(const [_0x56f312,_0x5ab5f9]of Object[_0x28f5f6(0xbe)](_0x5a9ac5['guides'])){let _0x507326=_0x5ab5f9['content'];_0x5ab5f9[_0x28f5f6(0xdc)]&&(_0x507326=appendUpdateTime(_0x507326,_0x5ab5f9['lastUpdated'])),writeFileSync(join(_0x4b2daf,_0x56f312+_0x28f5f6(0xd7)),_0x507326,_0x28f5f6(0xcd));}}export function appendUpdateTime(_0x413c61,_0x526dce){const _0x2001c5=a130_0x1408f5;return _0x413c61=_0x413c61['replace'](/\n*>更新时间:.*$/m,''),_0x413c61[_0x2001c5(0xcc)]()+('\x0a\x0a>更新时间:'+_0x526dce);}export function getSkillTemplate(_0x23b5ab){const _0x305dcd=a130_0x1408f5;return _0x23b5ab[_0x305dcd(0xce)]?.['content']||'';}export function appendExtendContents(_0x48e8ac,_0x427c69,_0x299927){const _0x11bcee=a130_0x1408f5,_0x2688ed=[];for(const [,_0x5ae6e9]of Object[_0x11bcee(0xbe)](_0x427c69[_0x11bcee(0xc0)])){_0x5ae6e9[_0x11bcee(0xda)]&&_0x2688ed[_0x11bcee(0xc9)](_0x5ae6e9['extendContent'][_0x11bcee(0xcc)]());}if(_0x2688ed['length']===0x0)return _0x48e8ac;return _0x48e8ac[_0x11bcee(0xcc)]()+'\x0a\x0a'+_0x2688ed[_0x11bcee(0xbc)]('\x0a\x0a')+'\x0a';}export function writeSkillFile(_0x4c93e1,_0x5d577b,_0x1f542d){const _0x52de30=a130_0x1408f5,_0x13a48a=getSkillTemplate(_0x4c93e1);if(!_0x13a48a)throw new Error(_0x52de30(0xcb));const _0x44b411=dirname(_0x5d577b);mkdirSync(_0x44b411,{'recursive':!![]});let _0x472705=_0x13a48a[_0x52de30(0xdf)](/\{\{IDE_NAME\}\}/g,_0x1f542d);_0x472705=appendExtendContents(_0x472705,_0x4c93e1),_0x4c93e1['skillTemplate']['lastUpdated']&&(_0x472705=appendUpdateTime(_0x472705,_0x4c93e1[_0x52de30(0xce)][_0x52de30(0xdc)])),writeFileSync(_0x5d577b,_0x472705,_0x52de30(0xcd));}export async function installGuides(_0xbcb4f9){const _0x1c7442=a130_0x1408f5,_0x14c46c=await fetchGuidesFromCDN();return writeGuidesToProject(_0x14c46c,_0xbcb4f9),Object['keys'](_0x14c46c[_0x1c7442(0xc0)])['length'];}function a130_0x5646(_0x415498,_0xaa6b3d){_0x415498=_0x415498-0xbc;const _0x3292d5=a130_0x3292();let _0x5646cd=_0x3292d5[_0x415498];return _0x5646cd;}export function getGuidesSummary(_0x48614d){const _0x465ba6=a130_0x1408f5;return Object[_0x465ba6(0xbe)](_0x48614d[_0x465ba6(0xc0)])[_0x465ba6(0xd0)](([_0x22cdaa,_0x7e45ae])=>({'key':_0x22cdaa,'title':_0x7e45ae[_0x465ba6(0xc4)],'path':_0x7e45ae[_0x465ba6(0xbf)]}));}
1
+ const a132_0x136d0d=a132_0x2811;(function(_0x11a981,_0xb4c57c){const _0x5c3fdd=a132_0x2811,_0x7a13a3=_0x11a981();while(!![]){try{const _0x49191a=parseInt(_0x5c3fdd(0x1e2))/0x1*(parseInt(_0x5c3fdd(0x1ce))/0x2)+-parseInt(_0x5c3fdd(0x1ca))/0x3*(-parseInt(_0x5c3fdd(0x1cd))/0x4)+-parseInt(_0x5c3fdd(0x1d5))/0x5*(parseInt(_0x5c3fdd(0x1db))/0x6)+parseInt(_0x5c3fdd(0x1d1))/0x7+-parseInt(_0x5c3fdd(0x1d7))/0x8*(parseInt(_0x5c3fdd(0x1c3))/0x9)+-parseInt(_0x5c3fdd(0x1e6))/0xa*(parseInt(_0x5c3fdd(0x1e5))/0xb)+parseInt(_0x5c3fdd(0x1d6))/0xc;if(_0x49191a===_0xb4c57c)break;else _0x7a13a3['push'](_0x7a13a3['shift']());}catch(_0x275f84){_0x7a13a3['push'](_0x7a13a3['shift']());}}}(a132_0x5ecc,0x4572a));import{mkdirSync,writeFileSync}from'node:fs';import{dirname,join}from'node:path';import{homedir}from'node:os';import{getTemplateBaseUrl}from'../utils/config.js';function getGuidesCdnUrl(){const _0x2e7202=a132_0x2811,_0x3e7bfe=getTemplateBaseUrl();return _0x3e7bfe+_0x2e7202(0x1cf);}const CACHE_DIR=join(homedir(),a132_0x136d0d(0x1d2),a132_0x136d0d(0x1d9));export async function fetchGuidesFromCDN(){const _0x43168c=a132_0x136d0d,_0x26741f=getGuidesCdnUrl(),_0x168729=await fetch(_0x26741f,{'headers':{'Accept':_0x43168c(0x1d3)}});if(!_0x168729['ok'])throw new Error(_0x43168c(0x1cc)+_0x168729[_0x43168c(0x1c5)]+'\x20'+_0x168729[_0x43168c(0x1e0)]);const _0x2a72af=await _0x168729['json']();if(!_0x2a72af[_0x43168c(0x1c7)]||typeof _0x2a72af[_0x43168c(0x1c7)]!==_0x43168c(0x1d4))throw new Error('CDN\x20返回数据格式错误');return _0x2a72af;}function a132_0x2811(_0x53c3d6,_0x2d780a){_0x53c3d6=_0x53c3d6-0x1c3;const _0x5ecc4c=a132_0x5ecc();let _0x281186=_0x5ecc4c[_0x53c3d6];return _0x281186;}export function writeGuidesToProject(_0x31fe63,_0x4adf9e,_0x55b9ab=a132_0x136d0d(0x1c4),_0x366d78){const _0xba8948=a132_0x136d0d,_0x196557=join(_0x4adf9e,_0x55b9ab);mkdirSync(_0x196557,{'recursive':!![]});for(const [_0x2a4cb5,_0xd9d638]of Object[_0xba8948(0x1da)](_0x31fe63[_0xba8948(0x1c7)])){let _0x2deb2a=_0xd9d638[_0xba8948(0x1df)];_0xd9d638[_0xba8948(0x1cb)]&&(_0x2deb2a=appendUpdateTime(_0x2deb2a,_0xd9d638[_0xba8948(0x1cb)])),writeFileSync(join(_0x196557,_0x2a4cb5+_0xba8948(0x1c6)),_0x2deb2a,_0xba8948(0x1dd));}}function a132_0x5ecc(){const _0x338c63=['keys','map','134523zGKOoj','.lovrabet/skill/guides','status','.md','guides','trimEnd','extendContent','3978yXZCFY','lastUpdated','CDN\x20请求失败:\x20','832HvXyzM','14058ZlTEbF','/skills/guides.json','skillTemplate','1609160UtpCST','.lovrabet','application/json','object','35hJOvpW','6627744sQlGnP','56GPOXOC','replace','cache','entries','413532upvVNj','length','utf-8','CDN\x20数据中缺少\x20skillTemplate','content','statusText','path','2SCUJBQ','title','push','2937teYmZO','7510tWwasc'];a132_0x5ecc=function(){return _0x338c63;};return a132_0x5ecc();}export function appendUpdateTime(_0x19a68f,_0x2bfa9c){const _0x11c3f5=a132_0x136d0d;return _0x19a68f=_0x19a68f[_0x11c3f5(0x1d8)](/\n*>更新时间:.*$/m,''),_0x19a68f[_0x11c3f5(0x1c8)]()+('\x0a\x0a>更新时间:'+_0x2bfa9c);}export function getSkillTemplate(_0x25ec7b){const _0x2d18cb=a132_0x136d0d;return _0x25ec7b[_0x2d18cb(0x1d0)]?.[_0x2d18cb(0x1df)]||'';}export function appendExtendContents(_0x4979e7,_0x5cf949,_0x56ca16){const _0x548307=a132_0x136d0d,_0x295806=[];for(const [,_0x524f3c]of Object[_0x548307(0x1da)](_0x5cf949[_0x548307(0x1c7)])){_0x524f3c['extendContent']&&_0x295806[_0x548307(0x1e4)](_0x524f3c[_0x548307(0x1c9)][_0x548307(0x1c8)]());}if(_0x295806[_0x548307(0x1dc)]===0x0)return _0x4979e7;return _0x4979e7[_0x548307(0x1c8)]()+'\x0a\x0a'+_0x295806['join']('\x0a\x0a')+'\x0a';}export function writeSkillFile(_0x37c218,_0x3c680e,_0x53748d){const _0x9d47e0=a132_0x136d0d,_0x3323fd=getSkillTemplate(_0x37c218);if(!_0x3323fd)throw new Error(_0x9d47e0(0x1de));const _0x367a06=dirname(_0x3c680e);mkdirSync(_0x367a06,{'recursive':!![]});let _0x502571=_0x3323fd['replace'](/\{\{IDE_NAME\}\}/g,_0x53748d);_0x502571=appendExtendContents(_0x502571,_0x37c218),_0x37c218[_0x9d47e0(0x1d0)]['lastUpdated']&&(_0x502571=appendUpdateTime(_0x502571,_0x37c218[_0x9d47e0(0x1d0)]['lastUpdated'])),writeFileSync(_0x3c680e,_0x502571,'utf-8');}export async function installGuides(_0x148398){const _0x5333c9=a132_0x136d0d,_0x57109d=await fetchGuidesFromCDN();return writeGuidesToProject(_0x57109d,_0x148398),Object[_0x5333c9(0x1e7)](_0x57109d[_0x5333c9(0x1c7)])[_0x5333c9(0x1dc)];}export function getGuidesSummary(_0x31341e){const _0x554805=a132_0x136d0d;return Object[_0x554805(0x1da)](_0x31341e[_0x554805(0x1c7)])[_0x554805(0x1e8)](([_0x57e057,_0x259b17])=>({'key':_0x57e057,'title':_0x259b17[_0x554805(0x1e3)],'path':_0x259b17[_0x554805(0x1e1)]}));}
@@ -1 +1 @@
1
- function a131_0x1fb1(){const _0x5e4541=['content-type','2837304LXfXuT','signal','abort','ECONNRESET','803115EDwZQM','json','status','517882sqtJJS','fetch','311508HcynPN','statusText','includes','*\x20请求失败,','text','url','headers','message','153854zXSzhW','ENOTFOUND','49AZeOPo','get','\x20次重试...','TypeError','name','40LfWbYt','Request\x20failed','17113770RxpudT','application/json','15256yVaLcd','ms\x20后进行第\x20','6tHXuCk'];a131_0x1fb1=function(){return _0x5e4541;};return a131_0x1fb1();}(function(_0x363793,_0x268e0e){const _0x18d85f=a131_0x2c93,_0x3eced8=_0x363793();while(!![]){try{const _0x54b5ca=parseInt(_0x18d85f(0x1a7))/0x1+-parseInt(_0x18d85f(0x19d))/0x2*(parseInt(_0x18d85f(0x194))/0x3)+parseInt(_0x18d85f(0x19f))/0x4*(-parseInt(_0x18d85f(0x18e))/0x5)+-parseInt(_0x18d85f(0x196))/0x6+-parseInt(_0x18d85f(0x1a9))/0x7*(parseInt(_0x18d85f(0x192))/0x8)+parseInt(_0x18d85f(0x19a))/0x9+parseInt(_0x18d85f(0x190))/0xa;if(_0x54b5ca===_0x268e0e)break;else _0x3eced8['push'](_0x3eced8['shift']());}catch(_0x5c0c6){_0x3eced8['push'](_0x3eced8['shift']());}}}(a131_0x1fb1,0x4fea7));export async function httpRequest(_0xf6313f,_0x5d0e80={}){const _0x25ff2f=a131_0x2c93,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0x5d0e80;let _0x1194ac=null;for(let _0x55fcb6=0x0;_0x55fcb6<=retries;_0x55fcb6++){try{const _0x17889c=new AbortController(),_0xe50275=setTimeout(()=>_0x17889c[_0x25ff2f(0x198)](),timeout),_0x526a6c=await fetch(_0xf6313f,{'headers':headers,'signal':_0x17889c[_0x25ff2f(0x197)]});clearTimeout(_0xe50275);let _0xbd2bfd;const _0x1aeba8=_0x526a6c[_0x25ff2f(0x1a5)][_0x25ff2f(0x1aa)](_0x25ff2f(0x195));return _0x1aeba8?.[_0x25ff2f(0x1a1)](_0x25ff2f(0x191))?_0xbd2bfd=await _0x526a6c[_0x25ff2f(0x19b)]():_0xbd2bfd=await _0x526a6c[_0x25ff2f(0x1a3)](),{'ok':_0x526a6c['ok'],'status':_0x526a6c[_0x25ff2f(0x19c)],'statusText':_0x526a6c[_0x25ff2f(0x1a0)],'data':_0xbd2bfd,'headers':_0x526a6c[_0x25ff2f(0x1a5)],'url':_0x526a6c[_0x25ff2f(0x1a4)],'text':()=>_0x526a6c[_0x25ff2f(0x1a3)]()};}catch(_0x2aee6d){_0x1194ac=_0x2aee6d instanceof Error?_0x2aee6d:new Error(String(_0x2aee6d));if(_0x55fcb6===retries)break;if(shouldRetry(_0x2aee6d)){console['log'](_0x25ff2f(0x1a2)+retryDelay+_0x25ff2f(0x193)+(_0x55fcb6+0x1)+_0x25ff2f(0x1ab)),await sleep(retryDelay);continue;}else break;}}throw _0x1194ac||new Error(_0x25ff2f(0x18f));}function a131_0x2c93(_0x16cd0a,_0x3a465f){_0x16cd0a=_0x16cd0a-0x18c;const _0x1fb141=a131_0x1fb1();let _0x2c931e=_0x1fb141[_0x16cd0a];return _0x2c931e;}function shouldRetry(_0x340eac){const _0x200cdc=a131_0x2c93;if(_0x340eac instanceof Error){if(_0x340eac[_0x200cdc(0x18d)]==='AbortError')return![];if(_0x340eac[_0x200cdc(0x18d)]===_0x200cdc(0x18c)&&_0x340eac[_0x200cdc(0x1a6)]['includes'](_0x200cdc(0x19e)))return!![];if(_0x340eac[_0x200cdc(0x1a6)][_0x200cdc(0x1a1)](_0x200cdc(0x199)))return!![];if(_0x340eac[_0x200cdc(0x1a6)][_0x200cdc(0x1a1)](_0x200cdc(0x1a8)))return![];}return![];}function sleep(_0x1609ab){return new Promise(_0x466e7f=>setTimeout(_0x466e7f,_0x1609ab));}export function validateUrl(_0x51a512){try{return new URL(_0x51a512),!![];}catch{return![];}}
1
+ function a133_0x3725(){const _0x451669=['85420NTJSio','get','name','37310kEjAZu','text','message','269311ctXwOC','application/json','content-type','6rSnnXa','*\x20请求失败,','status','275fgUgsu','48fVstvS','AbortError','headers','includes','ECONNRESET','ENOTFOUND','ms\x20后进行第\x20','35CqZvGQ','256068VXpRSN','1344648mqyBQa','47131cMgbSr','139866pOmhJT','TypeError','statusText'];a133_0x3725=function(){return _0x451669;};return a133_0x3725();}(function(_0x45e8ec,_0x2ef38f){const _0x549e6a=a133_0x1d97,_0x5c254a=_0x45e8ec();while(!![]){try{const _0x45965c=parseInt(_0x549e6a(0x15f))/0x1+-parseInt(_0x549e6a(0x16c))/0x2*(-parseInt(_0x549e6a(0x160))/0x3)+parseInt(_0x549e6a(0x163))/0x4*(-parseInt(_0x549e6a(0x15c))/0x5)+-parseInt(_0x549e6a(0x15e))/0x6+parseInt(_0x549e6a(0x169))/0x7+parseInt(_0x549e6a(0x170))/0x8*(parseInt(_0x549e6a(0x15d))/0x9)+-parseInt(_0x549e6a(0x166))/0xa*(-parseInt(_0x549e6a(0x16f))/0xb);if(_0x45965c===_0x2ef38f)break;else _0x5c254a['push'](_0x5c254a['shift']());}catch(_0x57efd2){_0x5c254a['push'](_0x5c254a['shift']());}}}(a133_0x3725,0x1c498));export async function httpRequest(_0x436d48,_0x15810e={}){const _0x1fa025=a133_0x1d97,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0x15810e;let _0x21e4f6=null;for(let _0x53a985=0x0;_0x53a985<=retries;_0x53a985++){try{const _0x5bf785=new AbortController(),_0x2b707e=setTimeout(()=>_0x5bf785['abort'](),timeout),_0x5dc12a=await fetch(_0x436d48,{'headers':headers,'signal':_0x5bf785['signal']});clearTimeout(_0x2b707e);let _0x5f32a0;const _0x1ec339=_0x5dc12a['headers'][_0x1fa025(0x164)](_0x1fa025(0x16b));return _0x1ec339?.[_0x1fa025(0x158)](_0x1fa025(0x16a))?_0x5f32a0=await _0x5dc12a['json']():_0x5f32a0=await _0x5dc12a['text'](),{'ok':_0x5dc12a['ok'],'status':_0x5dc12a[_0x1fa025(0x16e)],'statusText':_0x5dc12a[_0x1fa025(0x162)],'data':_0x5f32a0,'headers':_0x5dc12a[_0x1fa025(0x157)],'url':_0x5dc12a['url'],'text':()=>_0x5dc12a[_0x1fa025(0x167)]()};}catch(_0x606b72){_0x21e4f6=_0x606b72 instanceof Error?_0x606b72:new Error(String(_0x606b72));if(_0x53a985===retries)break;if(shouldRetry(_0x606b72)){console['log'](_0x1fa025(0x16d)+retryDelay+_0x1fa025(0x15b)+(_0x53a985+0x1)+'\x20次重试...'),await sleep(retryDelay);continue;}else break;}}throw _0x21e4f6||new Error('Request\x20failed');}function a133_0x1d97(_0x2d362a,_0x27396c){_0x2d362a=_0x2d362a-0x156;const _0x3725aa=a133_0x3725();let _0x1d9752=_0x3725aa[_0x2d362a];return _0x1d9752;}function shouldRetry(_0x57281c){const _0x17537a=a133_0x1d97;if(_0x57281c instanceof Error){if(_0x57281c[_0x17537a(0x165)]===_0x17537a(0x156))return![];if(_0x57281c[_0x17537a(0x165)]===_0x17537a(0x161)&&_0x57281c[_0x17537a(0x168)][_0x17537a(0x158)]('fetch'))return!![];if(_0x57281c[_0x17537a(0x168)][_0x17537a(0x158)](_0x17537a(0x159)))return!![];if(_0x57281c[_0x17537a(0x168)][_0x17537a(0x158)](_0x17537a(0x15a)))return![];}return![];}function sleep(_0x2451c0){return new Promise(_0x5a5d3c=>setTimeout(_0x5a5d3c,_0x2451c0));}export function validateUrl(_0x2e2a93){try{return new URL(_0x2e2a93),!![];}catch{return![];}}
@@ -1 +1 @@
1
- function a132_0x1251(_0x3f19b9,_0x3f031d){_0x3f19b9=_0x3f19b9-0x147;const _0x3a7190=a132_0x3a71();let _0x125164=_0x3a7190[_0x3f19b9];return _0x125164;}(function(_0x35eb3d,_0x19faba){const _0x1f0514=a132_0x1251,_0x1a90dd=_0x35eb3d();while(!![]){try{const _0x49e45c=parseInt(_0x1f0514(0x14b))/0x1*(-parseInt(_0x1f0514(0x14a))/0x2)+parseInt(_0x1f0514(0x154))/0x3*(parseInt(_0x1f0514(0x14f))/0x4)+parseInt(_0x1f0514(0x14c))/0x5+-parseInt(_0x1f0514(0x155))/0x6*(parseInt(_0x1f0514(0x151))/0x7)+parseInt(_0x1f0514(0x157))/0x8+-parseInt(_0x1f0514(0x14d))/0x9+parseInt(_0x1f0514(0x153))/0xa;if(_0x49e45c===_0x19faba)break;else _0x1a90dd['push'](_0x1a90dd['shift']());}catch(_0x492ffc){_0x1a90dd['push'](_0x1a90dd['shift']());}}}(a132_0x3a71,0xc4461));function env(_0x451758){return process.env[`RABETBASE_${_0x451758}`]||process.env[`LOVRABET_${_0x451758}`]||undefined;}export function isNonInteractive(_0x38c868){const _0x4caf44=a132_0x1251;return!!(_0x38c868[_0x4caf44(0x156)]||_0x38c868['ci']||env('CI')==='true'||process.env.CI===_0x4caf44(0x14e)||!process[_0x4caf44(0x149)]['isTTY']||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x155618=a132_0x1251;if(!process['stdin'][_0x155618(0x152)])return![];try{const _0x2ac829=process[_0x155618(0x147)][_0x155618(0x148)];return process[_0x155618(0x147)][_0x155618(0x150)](!![]),process[_0x155618(0x147)][_0x155618(0x150)](_0x2ac829??![]),!![];}catch{return![];}}function a132_0x3a71(){const _0x249e3a=['isTTY','13523270lVZXAN','1899ZphEQR','48744HKaGdf','nonInteractive','9875024NXRpuV','stdin','isRaw','stdout','430OMspNY','7303zlKLyK','1987340YxNTOl','4506912NgJpow','true','1876XXHbTl','setRawMode','350rsvzEh'];a132_0x3a71=function(){return _0x249e3a;};return a132_0x3a71();}
1
+ function a134_0x4ecf(){const _0x372ddd=['93514ToIwwE','1111959CGdFhP','setRawMode','true','139783VbluVs','604518hOYefP','stdout','nonInteractive','3923585nmVtWA','3508952CYiBHu','isTTY','stdin','4TcdyEZ','1153016nDZbTH','isRaw'];a134_0x4ecf=function(){return _0x372ddd;};return a134_0x4ecf();}(function(_0xe60a5c,_0x5f3829){const _0x564469=a134_0x8d56,_0x35af2f=_0xe60a5c();while(!![]){try{const _0x4619dc=-parseInt(_0x564469(0x172))/0x1+parseInt(_0x564469(0x170))/0x2+-parseInt(_0x564469(0x173))/0x3+parseInt(_0x564469(0x16f))/0x4*(parseInt(_0x564469(0x16b))/0x5)+parseInt(_0x564469(0x168))/0x6+parseInt(_0x564469(0x167))/0x7+-parseInt(_0x564469(0x16c))/0x8;if(_0x4619dc===_0x5f3829)break;else _0x35af2f['push'](_0x35af2f['shift']());}catch(_0x403616){_0x35af2f['push'](_0x35af2f['shift']());}}}(a134_0x4ecf,0x8d659));function env(_0x16bc85){return process.env[`RABETBASE_${_0x16bc85}`]||process.env[`LOVRABET_${_0x16bc85}`]||undefined;}function a134_0x8d56(_0x1b635e,_0x4fe528){_0x1b635e=_0x1b635e-0x165;const _0x4ecf55=a134_0x4ecf();let _0x8d561f=_0x4ecf55[_0x1b635e];return _0x8d561f;}export function isNonInteractive(_0x1efa25){const _0x428575=a134_0x8d56;return!!(_0x1efa25[_0x428575(0x16a)]||_0x1efa25['ci']||env('CI')===_0x428575(0x166)||process.env.CI==='true'||!process[_0x428575(0x169)][_0x428575(0x16d)]||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x4815f9=a134_0x8d56;if(!process['stdin'][_0x4815f9(0x16d)])return![];try{const _0x3c26ff=process[_0x4815f9(0x16e)][_0x4815f9(0x171)];return process[_0x4815f9(0x16e)][_0x4815f9(0x165)](!![]),process[_0x4815f9(0x16e)][_0x4815f9(0x165)](_0x3c26ff??![]),!![];}catch{return![];}}
@@ -1 +1 @@
1
- const a133_0x1269a1=a133_0x47f1;(function(_0x414b5e,_0x3ddc4e){const _0x45627b=a133_0x47f1,_0x3c17e1=_0x414b5e();while(!![]){try{const _0x10263b=parseInt(_0x45627b(0xee))/0x1+parseInt(_0x45627b(0x103))/0x2*(parseInt(_0x45627b(0x101))/0x3)+-parseInt(_0x45627b(0xe3))/0x4*(-parseInt(_0x45627b(0xfd))/0x5)+-parseInt(_0x45627b(0xf6))/0x6+-parseInt(_0x45627b(0xe6))/0x7*(parseInt(_0x45627b(0xf2))/0x8)+parseInt(_0x45627b(0xe7))/0x9+-parseInt(_0x45627b(0x10d))/0xa*(-parseInt(_0x45627b(0xff))/0xb);if(_0x10263b===_0x3ddc4e)break;else _0x3c17e1['push'](_0x3c17e1['shift']());}catch(_0x361ccb){_0x3c17e1['push'](_0x3c17e1['shift']());}}}(a133_0x545f,0x888ef));import a133_0x105842 from'winston';function a133_0x47f1(_0x456577,_0x622244){_0x456577=_0x456577-0xdf;const _0x545f4b=a133_0x545f();let _0x47f16c=_0x545f4b[_0x456577];return _0x47f16c;}function a133_0x545f(){const _0x4d27cb=['warn','readFileSync','完成:\x20','timestamp','red','5UxpEny','error','46321RuHDVB','log','4656wToEpI','filter','612UghClf','transports','File','details','stringify','setRawCommand','success','readLogs','logTask','Failed\x20to\x20clear\x20logs:','780DleOgp','command','message','setLogPath','winstonLogger','errors','dirname','yellow','level','298988sSWecv','clear','now','32711RbKZUj','2916252MAdbqz','map','clearLogs','parse','initWinstonLogger','utf8','existsSync','846364HJdNoE','join','currentRawCommand','rawCommand','1040nTkeQX','format','toISOString','logFilePath','5290056FXGIhc','info'];a133_0x545f=function(){return _0x4d27cb;};return a133_0x545f();}import a133_0x39bded from'node:fs';import a133_0x2e8afd from'node:path';class Logger{[a133_0x1269a1(0x111)];[a133_0x1269a1(0xf5)];[a133_0x1269a1(0xf0)]='';constructor(){const _0x2f31b6=a133_0x1269a1;this[_0x2f31b6(0xf5)]='';}[a133_0x1269a1(0x108)](_0x1064f2){this['currentRawCommand']=_0x1064f2;}[a133_0x1269a1(0xeb)](){const _0x4437c1=a133_0x1269a1,_0x26133e=a133_0x2e8afd[_0x4437c1(0xe0)](this[_0x4437c1(0xf5)]);!a133_0x39bded['existsSync'](_0x26133e)&&a133_0x39bded['mkdirSync'](_0x26133e,{'recursive':!![]});const _0x1e8cd6=a133_0x105842['format']['combine'](a133_0x105842['format']['timestamp'](),a133_0x105842[_0x4437c1(0xf3)][_0x4437c1(0xdf)]({'stack':!![]}),a133_0x105842[_0x4437c1(0xf3)]['printf'](_0x1f36bd=>{const _0x17c2bd=_0x4437c1,_0x2f6fc9={'timestamp':_0x1f36bd[_0x17c2bd(0xfb)]||new Date()[_0x17c2bd(0xf4)](),'level':_0x1f36bd[_0x17c2bd(0xe2)]||_0x17c2bd(0xf7),'command':_0x1f36bd[_0x17c2bd(0x10e)]||'unknown','rawCommand':_0x1f36bd[_0x17c2bd(0xf1)]||this[_0x17c2bd(0xf0)]||undefined,'message':_0x1f36bd[_0x17c2bd(0x10f)]||'','duration':_0x1f36bd['duration']||undefined,'details':_0x1f36bd[_0x17c2bd(0x106)]||undefined};return JSON[_0x17c2bd(0x107)](_0x2f6fc9);}));this[_0x4437c1(0x111)]=a133_0x105842['createLogger']({'level':_0x4437c1(0xf7),'format':_0x1e8cd6,'transports':[new a133_0x105842[(_0x4437c1(0x104))][(_0x4437c1(0x105))]({'filename':this[_0x4437c1(0xf5)],'level':'info'})],'silent':![]}),a133_0x105842['addColors']({'success':'green','error':_0x4437c1(0xfc),'warn':_0x4437c1(0xe1),'info':'blue'});}[a133_0x1269a1(0x110)](_0x2b1903){const _0x639948=a133_0x1269a1;this[_0x639948(0xf5)]=a133_0x2e8afd[_0x639948(0xef)](_0x2b1903,'.lovrabet.log'),this['winstonLogger']&&this[_0x639948(0x111)][_0x639948(0xe4)](),this[_0x639948(0xeb)]();}[a133_0x1269a1(0xf7)](_0x247c74,_0x2515f1,_0x16e3f0){const _0x214105=a133_0x1269a1;if(!this['logFilePath']||!this[_0x214105(0x111)])return;this[_0x214105(0x111)][_0x214105(0xf7)](_0x2515f1,{'command':_0x247c74,'details':_0x16e3f0});}[a133_0x1269a1(0x109)](_0xfbb8bb,_0x13d926,_0x4e9d29,_0x294d26){const _0x4f7cba=a133_0x1269a1;if(!this[_0x4f7cba(0xf5)]||!this[_0x4f7cba(0x111)])return;this[_0x4f7cba(0x111)][_0x4f7cba(0x100)](_0x4f7cba(0xf7),_0x13d926,{'level':'success','command':_0xfbb8bb,'duration':_0x4e9d29,'details':_0x294d26});}[a133_0x1269a1(0xfe)](_0x49cb37,_0x106226,_0x8ad1){const _0x1a63bb=a133_0x1269a1;if(!this[_0x1a63bb(0xf5)]||!this['winstonLogger'])return;this[_0x1a63bb(0x111)][_0x1a63bb(0xfe)](_0x106226,{'command':_0x49cb37,'details':_0x8ad1});}[a133_0x1269a1(0xf8)](_0x20c469,_0x872540,_0x21ca79){const _0x8136a7=a133_0x1269a1;if(!this[_0x8136a7(0xf5)]||!this[_0x8136a7(0x111)])return;this[_0x8136a7(0x111)][_0x8136a7(0xf8)](_0x872540,{'command':_0x20c469,'details':_0x21ca79});}async[a133_0x1269a1(0x10b)](_0x463723,_0x32de32,_0x3f6c68){const _0xcc1380=a133_0x1269a1,_0x590a62=Date[_0xcc1380(0xe5)]();this['info'](_0x463723,'开始执行:\x20'+_0x32de32);try{const _0x51d044=await _0x3f6c68(),_0x41141d=Date[_0xcc1380(0xe5)]()-_0x590a62;return this[_0xcc1380(0x109)](_0x463723,_0xcc1380(0xfa)+_0x32de32,_0x41141d),_0x51d044;}catch(_0x225d85){const _0x17569d=Date[_0xcc1380(0xe5)]()-_0x590a62;this[_0xcc1380(0xfe)](_0x463723,'失败:\x20'+_0x32de32,{'error':_0x225d85 instanceof Error?_0x225d85[_0xcc1380(0x10f)]:String(_0x225d85),'duration':_0x17569d});throw _0x225d85;}}[a133_0x1269a1(0x10a)](){const _0x47f19d=a133_0x1269a1;try{if(!a133_0x39bded['existsSync'](this[_0x47f19d(0xf5)]))return[];const _0x39d108=a133_0x39bded[_0x47f19d(0xf9)](this[_0x47f19d(0xf5)],_0x47f19d(0xec));return _0x39d108['split']('\x0a')[_0x47f19d(0x102)](_0x1a80c3=>_0x1a80c3['trim']())[_0x47f19d(0xe8)](_0x1384f7=>JSON[_0x47f19d(0xea)](_0x1384f7));}catch(_0x2a8392){return console[_0x47f19d(0xf8)]('Failed\x20to\x20read\x20logs:',_0x2a8392),[];}}[a133_0x1269a1(0xe9)](){const _0x23c897=a133_0x1269a1;try{a133_0x39bded[_0x23c897(0xed)](this[_0x23c897(0xf5)])&&a133_0x39bded['writeFileSync'](this[_0x23c897(0xf5)],'','utf8');}catch(_0x2cdc91){console[_0x23c897(0xf8)](_0x23c897(0x10c),_0x2cdc91);}}['getWinstonInstance'](){const _0xfb4535=a133_0x1269a1;return this[_0xfb4535(0x111)];}}export const logger=new Logger();
1
+ const a135_0x419486=a135_0x4632;function a135_0x1715(){const _0x316e10=['4394136tjHxnE','format','red','完成:\x20','initWinstonLogger','split','yellow','info','green','File','失败:\x20','addColors','level','Failed\x20to\x20read\x20logs:','combine','4MUgiju','now','clearLogs','rawCommand','error','utf8','Failed\x20to\x20clear\x20logs:','currentRawCommand','1794944DEFLCl','blue','errors','logFilePath','log','toISOString','4764570dLouMa','timestamp','winstonLogger','dirname','9135UAFxDo','logTask','existsSync','message','开始执行:\x20','528100gTqClk','transports','stringify','clear','unknown','setRawCommand','getWinstonInstance','printf','map','writeFileSync','warn','3993381wzcOHd','success','349833JLRUKv','command','readFileSync','join','trim'];a135_0x1715=function(){return _0x316e10;};return a135_0x1715();}(function(_0x2c60ff,_0x21223a){const _0x425144=a135_0x4632,_0x38de69=_0x2c60ff();while(!![]){try{const _0x2a1f9a=parseInt(_0x425144(0x13a))/0x1+-parseInt(_0x425144(0x12b))/0x2+-parseInt(_0x425144(0x147))/0x3*(-parseInt(_0x425144(0x15b))/0x4)+-parseInt(_0x425144(0x135))/0x5+parseInt(_0x425144(0x131))/0x6+-parseInt(_0x425144(0x145))/0x7+parseInt(_0x425144(0x14c))/0x8;if(_0x2a1f9a===_0x21223a)break;else _0x38de69['push'](_0x38de69['shift']());}catch(_0xb6069d){_0x38de69['push'](_0x38de69['shift']());}}}(a135_0x1715,0x7e893));import a135_0x23f9d0 from'winston';function a135_0x4632(_0x2d9fac,_0x1e10a4){_0x2d9fac=_0x2d9fac-0x125;const _0x1715a4=a135_0x1715();let _0x4632ce=_0x1715a4[_0x2d9fac];return _0x4632ce;}import a135_0x19037d from'node:fs';import a135_0x112cde from'node:path';class Logger{['winstonLogger'];[a135_0x419486(0x12e)];[a135_0x419486(0x12a)]='';constructor(){const _0x280bfc=a135_0x419486;this[_0x280bfc(0x12e)]='';}[a135_0x419486(0x13f)](_0x4d6a4f){this['currentRawCommand']=_0x4d6a4f;}[a135_0x419486(0x150)](){const _0x5237b2=a135_0x419486,_0x2c087d=a135_0x112cde[_0x5237b2(0x134)](this[_0x5237b2(0x12e)]);!a135_0x19037d[_0x5237b2(0x137)](_0x2c087d)&&a135_0x19037d['mkdirSync'](_0x2c087d,{'recursive':!![]});const _0x25e09c=a135_0x23f9d0[_0x5237b2(0x14d)][_0x5237b2(0x15a)](a135_0x23f9d0['format'][_0x5237b2(0x132)](),a135_0x23f9d0[_0x5237b2(0x14d)][_0x5237b2(0x12d)]({'stack':!![]}),a135_0x23f9d0[_0x5237b2(0x14d)][_0x5237b2(0x141)](_0x18e08b=>{const _0x183a5d=_0x5237b2,_0x29be20={'timestamp':_0x18e08b[_0x183a5d(0x132)]||new Date()[_0x183a5d(0x130)](),'level':_0x18e08b[_0x183a5d(0x158)]||_0x183a5d(0x153),'command':_0x18e08b[_0x183a5d(0x148)]||_0x183a5d(0x13e),'rawCommand':_0x18e08b[_0x183a5d(0x126)]||this[_0x183a5d(0x12a)]||undefined,'message':_0x18e08b[_0x183a5d(0x138)]||'','duration':_0x18e08b['duration']||undefined,'details':_0x18e08b['details']||undefined};return JSON[_0x183a5d(0x13c)](_0x29be20);}));this[_0x5237b2(0x133)]=a135_0x23f9d0['createLogger']({'level':'info','format':_0x25e09c,'transports':[new a135_0x23f9d0[(_0x5237b2(0x13b))][(_0x5237b2(0x155))]({'filename':this[_0x5237b2(0x12e)],'level':_0x5237b2(0x153)})],'silent':![]}),a135_0x23f9d0[_0x5237b2(0x157)]({'success':_0x5237b2(0x154),'error':_0x5237b2(0x14e),'warn':_0x5237b2(0x152),'info':_0x5237b2(0x12c)});}['setLogPath'](_0x155db3){const _0x45a0c1=a135_0x419486;this[_0x45a0c1(0x12e)]=a135_0x112cde[_0x45a0c1(0x14a)](_0x155db3,'.lovrabet.log'),this[_0x45a0c1(0x133)]&&this['winstonLogger'][_0x45a0c1(0x13d)](),this[_0x45a0c1(0x150)]();}['info'](_0xb73530,_0x4311bf,_0x1037b7){const _0x17d2f7=a135_0x419486;if(!this[_0x17d2f7(0x12e)]||!this[_0x17d2f7(0x133)])return;this[_0x17d2f7(0x133)][_0x17d2f7(0x153)](_0x4311bf,{'command':_0xb73530,'details':_0x1037b7});}[a135_0x419486(0x146)](_0x432385,_0x3c9f1a,_0x327add,_0x4fbb84){const _0x1d7180=a135_0x419486;if(!this['logFilePath']||!this['winstonLogger'])return;this['winstonLogger'][_0x1d7180(0x12f)](_0x1d7180(0x153),_0x3c9f1a,{'level':'success','command':_0x432385,'duration':_0x327add,'details':_0x4fbb84});}[a135_0x419486(0x127)](_0x52d9d5,_0x55dbd6,_0x1396b6){const _0x67500b=a135_0x419486;if(!this[_0x67500b(0x12e)]||!this[_0x67500b(0x133)])return;this[_0x67500b(0x133)]['error'](_0x55dbd6,{'command':_0x52d9d5,'details':_0x1396b6});}[a135_0x419486(0x144)](_0xda2dc3,_0x55d0cb,_0x353c30){const _0x236bdc=a135_0x419486;if(!this[_0x236bdc(0x12e)]||!this['winstonLogger'])return;this['winstonLogger'][_0x236bdc(0x144)](_0x55d0cb,{'command':_0xda2dc3,'details':_0x353c30});}async[a135_0x419486(0x136)](_0x5735c5,_0x1ca70c,_0x202477){const _0x4c489a=a135_0x419486,_0x5f5dd5=Date[_0x4c489a(0x15c)]();this['info'](_0x5735c5,_0x4c489a(0x139)+_0x1ca70c);try{const _0x1fb6fd=await _0x202477(),_0x36cb03=Date[_0x4c489a(0x15c)]()-_0x5f5dd5;return this[_0x4c489a(0x146)](_0x5735c5,_0x4c489a(0x14f)+_0x1ca70c,_0x36cb03),_0x1fb6fd;}catch(_0x30f66e){const _0x2c38a8=Date[_0x4c489a(0x15c)]()-_0x5f5dd5;this[_0x4c489a(0x127)](_0x5735c5,_0x4c489a(0x156)+_0x1ca70c,{'error':_0x30f66e instanceof Error?_0x30f66e[_0x4c489a(0x138)]:String(_0x30f66e),'duration':_0x2c38a8});throw _0x30f66e;}}['readLogs'](){const _0x5dfa41=a135_0x419486;try{if(!a135_0x19037d[_0x5dfa41(0x137)](this[_0x5dfa41(0x12e)]))return[];const _0x30c0c5=a135_0x19037d[_0x5dfa41(0x149)](this[_0x5dfa41(0x12e)],_0x5dfa41(0x128));return _0x30c0c5[_0x5dfa41(0x151)]('\x0a')['filter'](_0x50f53e=>_0x50f53e[_0x5dfa41(0x14b)]())[_0x5dfa41(0x142)](_0xc30c14=>JSON['parse'](_0xc30c14));}catch(_0x10eaef){return console[_0x5dfa41(0x144)](_0x5dfa41(0x159),_0x10eaef),[];}}[a135_0x419486(0x125)](){const _0x1fe6d1=a135_0x419486;try{a135_0x19037d['existsSync'](this[_0x1fe6d1(0x12e)])&&a135_0x19037d[_0x1fe6d1(0x143)](this[_0x1fe6d1(0x12e)],'','utf8');}catch(_0x26ff4e){console[_0x1fe6d1(0x144)](_0x1fe6d1(0x129),_0x26ff4e);}}[a135_0x419486(0x140)](){const _0x3114d5=a135_0x419486;return this[_0x3114d5(0x133)];}}export const logger=new Logger();
@@ -1 +1 @@
1
- function a134_0x4910(_0x1f63a8,_0x316d76){_0x1f63a8=_0x1f63a8-0x1f1;const _0x32cd92=a134_0x32cd();let _0x49105f=_0x32cd92[_0x1f63a8];return _0x49105f;}const a134_0x29c83b=a134_0x4910;(function(_0x57044b,_0x18a7e4){const _0x27c18c=a134_0x4910,_0x153e01=_0x57044b();while(!![]){try{const _0x1d61a5=-parseInt(_0x27c18c(0x1fb))/0x1*(parseInt(_0x27c18c(0x1f4))/0x2)+-parseInt(_0x27c18c(0x1fe))/0x3*(parseInt(_0x27c18c(0x1f3))/0x4)+-parseInt(_0x27c18c(0x1ff))/0x5+parseInt(_0x27c18c(0x1f9))/0x6*(parseInt(_0x27c18c(0x1f5))/0x7)+-parseInt(_0x27c18c(0x1f1))/0x8*(-parseInt(_0x27c18c(0x1f2))/0x9)+-parseInt(_0x27c18c(0x1f7))/0xa*(-parseInt(_0x27c18c(0x1fc))/0xb)+-parseInt(_0x27c18c(0x200))/0xc*(-parseInt(_0x27c18c(0x1f8))/0xd);if(_0x1d61a5===_0x18a7e4)break;else _0x153e01['push'](_0x153e01['shift']());}catch(_0x2a0660){_0x153e01['push'](_0x153e01['shift']());}}}(a134_0x32cd,0xa6f9f));function a134_0x32cd(){const _0x5ad27a=['5KYsWwn','11WjouWZ','platform','177hxKtyY','17690tePBTs','375252SkqvkP','4282304SKONOr','9IVZTZS','6964BZyAgy','475386YtybrP','1069355pVEEsq','.cmd','9502130wqYoeL','78kbHmAp','12LiJnux','win32'];a134_0x32cd=function(){return _0x5ad27a;};return a134_0x32cd();}export const isWindows=process[a134_0x29c83b(0x1fd)]===a134_0x29c83b(0x1fa);export function resolveNpmBin(_0x5737c3){const _0x323e20=a134_0x29c83b;return isWindows?_0x5737c3+_0x323e20(0x1f6):_0x5737c3;}
1
+ function a136_0x18fb(_0x14f83d,_0xbf2f5b){_0x14f83d=_0x14f83d-0x1c5;const _0x4236b1=a136_0x4236();let _0x18fbce=_0x4236b1[_0x14f83d];return _0x18fbce;}function a136_0x4236(){const _0x405335=['48TBRvff','4MXQyVU','255889Jhwaoe','10950570dRrAFs','3504882aCjQDs','4kOiVgr','277195NFnUZg','8tidUTc','7244973mpELOj','12059399qCHLHK','win32','535878KieCTK'];a136_0x4236=function(){return _0x405335;};return a136_0x4236();}const a136_0x2c5e6c=a136_0x18fb;(function(_0x2b03bf,_0x43ee09){const _0x4548bc=a136_0x18fb,_0x34de1c=_0x2b03bf();while(!![]){try{const _0x254a39=parseInt(_0x4548bc(0x1c6))/0x1*(parseInt(_0x4548bc(0x1c9))/0x2)+parseInt(_0x4548bc(0x1c8))/0x3*(-parseInt(_0x4548bc(0x1c5))/0x4)+parseInt(_0x4548bc(0x1ca))/0x5*(parseInt(_0x4548bc(0x1d0))/0x6)+parseInt(_0x4548bc(0x1cf))/0x7+parseInt(_0x4548bc(0x1cb))/0x8*(parseInt(_0x4548bc(0x1cc))/0x9)+parseInt(_0x4548bc(0x1c7))/0xa+-parseInt(_0x4548bc(0x1cd))/0xb;if(_0x254a39===_0x43ee09)break;else _0x34de1c['push'](_0x34de1c['shift']());}catch(_0x27751a){_0x34de1c['push'](_0x34de1c['shift']());}}}(a136_0x4236,0xa2e9f));export const isWindows=process['platform']===a136_0x2c5e6c(0x1ce);export function resolveNpmBin(_0x237aad){return isWindows?_0x237aad+'.cmd':_0x237aad;}
@@ -1 +1 @@
1
- const a135_0x2b56e7=a135_0x41cc;(function(_0x3aaa46,_0x1c3297){const _0x5acb26=a135_0x41cc,_0x39398c=_0x3aaa46();while(!![]){try{const _0x556a3b=-parseInt(_0x5acb26(0x107))/0x1*(-parseInt(_0x5acb26(0x102))/0x2)+-parseInt(_0x5acb26(0xf9))/0x3+-parseInt(_0x5acb26(0x108))/0x4*(parseInt(_0x5acb26(0x100))/0x5)+parseInt(_0x5acb26(0x101))/0x6+parseInt(_0x5acb26(0xf5))/0x7*(-parseInt(_0x5acb26(0xfc))/0x8)+parseInt(_0x5acb26(0xf4))/0x9+-parseInt(_0x5acb26(0xf7))/0xa*(-parseInt(_0x5acb26(0xfa))/0xb);if(_0x556a3b===_0x1c3297)break;else _0x39398c['push'](_0x39398c['shift']());}catch(_0xc82ec4){_0x39398c['push'](_0x39398c['shift']());}}}(a135_0x3f46,0xb4913));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 _0x236b22=a135_0x41cc,_0x5a9d72=getTemplateBaseUrl();return _0x5a9d72+_0x236b22(0xef);}function a135_0x41cc(_0x25f926,_0x498b3a){_0x25f926=_0x25f926-0xef;const _0x3f46e3=a135_0x3f46();let _0x41ccb6=_0x3f46e3[_0x25f926];return _0x41ccb6;}const LOCAL_TEMPLATE_PATH=resolve(__dirname,a135_0x2b56e7(0xf2));export async function fetchRulesFromCDN(){const _0x1092ff=a135_0x2b56e7,_0x32ccd9=getRulesCdnUrl(),_0x36b3b9=await fetch(_0x32ccd9,{'headers':{'Accept':_0x1092ff(0xfe)}});if(!_0x36b3b9['ok'])throw new Error(_0x1092ff(0x103)+_0x36b3b9[_0x1092ff(0xf6)]+'\x20'+_0x36b3b9[_0x1092ff(0xf3)]);const _0x586e82=await _0x36b3b9[_0x1092ff(0x109)]();if(!_0x586e82[_0x1092ff(0x104)]||typeof _0x586e82[_0x1092ff(0x104)]!==_0x1092ff(0xf8))throw new Error(_0x1092ff(0x106));return _0x586e82;}export async function getRulesContent(){const _0x160631=a135_0x2b56e7;try{const _0x495e94=await fetchRulesFromCDN();return _0x495e94[_0x160631(0x104)];}catch{return readLocalTemplate();}}export function readLocalTemplate(){const _0x413855=a135_0x2b56e7;if(existsSync(LOCAL_TEMPLATE_PATH))return readFileSync(LOCAL_TEMPLATE_PATH,_0x413855(0xfb));throw new Error(_0x413855(0x105)+LOCAL_TEMPLATE_PATH);}export async function writeRulesFile(_0x4a5b3a){const _0x2b7c92=a135_0x2b56e7,_0x190970=await fetchRulesFromCDN()[_0x2b7c92(0xf0)](()=>null);let _0xf0f8ad;_0x190970?(_0xf0f8ad=_0x190970[_0x2b7c92(0x104)],_0x190970[_0x2b7c92(0xff)]&&(_0xf0f8ad=appendUpdateTime(_0xf0f8ad,_0x190970[_0x2b7c92(0xff)]))):_0xf0f8ad=readLocalTemplate();const _0x5c6fc0=dirname(_0x4a5b3a);!existsSync(_0x5c6fc0)&&mkdirSync(_0x5c6fc0,{'recursive':!![]}),writeFileSync(_0x4a5b3a,_0xf0f8ad,_0x2b7c92(0xfb));}function a135_0x3f46(){const _0x478244=['utf-8','226472EekqDD','.cursor/rules','application/json','lastUpdated','345035BJoLsc','2359578fQEkqX','2ZrfHNf','CDN\x20请求失败:\x20','content','本地模板文件不存在:\x20','CDN\x20返回数据格式错误','1217286vDEBWL','8XZyQnA','json','/rules/rules.json','catch','agents.md','../../templates/rules/lovrabet_rules.mdc.tpl','statusText','3837258KmiNnK','175RrhBxJ','status','10AFvzPS','string','2886828qcLTwU','5617777QGxOoa'];a135_0x3f46=function(){return _0x478244;};return a135_0x3f46();}export async function copyRulesToCursor(_0xa1995d){const _0x2b8ca6=a135_0x2b56e7,_0x35e2ff=join(_0xa1995d,_0x2b8ca6(0xfd)),_0x465421=join(_0x35e2ff,'lovrabet_rules.mdc');if(existsSync(_0x465421))return![];return await writeRulesFile(_0x465421),!![];}export async function copyRulesToAgentsMd(_0x8cceac){const _0x19b3a7=a135_0x2b56e7,_0x242e37=join(_0x8cceac,_0x19b3a7(0xf1));if(existsSync(_0x242e37))return![];return await writeRulesFile(_0x242e37),!![];}
1
+ const a137_0x55e6a2=a137_0x3533;function a137_0x3533(_0x2667c9,_0x1ada51){_0x2667c9=_0x2667c9-0x6a;const _0x9fbe80=a137_0x9fbe();let _0x353311=_0x9fbe80[_0x2667c9];return _0x353311;}(function(_0x18cfed,_0x2c1f85){const _0x1bc496=a137_0x3533,_0x411ee5=_0x18cfed();while(!![]){try{const _0x217e31=-parseInt(_0x1bc496(0x81))/0x1+parseInt(_0x1bc496(0x7a))/0x2*(-parseInt(_0x1bc496(0x76))/0x3)+-parseInt(_0x1bc496(0x7d))/0x4*(-parseInt(_0x1bc496(0x75))/0x5)+parseInt(_0x1bc496(0x71))/0x6+-parseInt(_0x1bc496(0x6a))/0x7*(parseInt(_0x1bc496(0x80))/0x8)+-parseInt(_0x1bc496(0x72))/0x9+parseInt(_0x1bc496(0x7c))/0xa;if(_0x217e31===_0x2c1f85)break;else _0x411ee5['push'](_0x411ee5['shift']());}catch(_0x3ec99){_0x411ee5['push'](_0x411ee5['shift']());}}}(a137_0x9fbe,0xa0d14));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 _0x2b74b1=a137_0x3533,_0x351614=getTemplateBaseUrl();return _0x351614+_0x2b74b1(0x74);}const LOCAL_TEMPLATE_PATH=resolve(__dirname,a137_0x55e6a2(0x78));export async function fetchRulesFromCDN(){const _0x1bd930=a137_0x55e6a2,_0x4b8e78=getRulesCdnUrl(),_0x4a2cd3=await fetch(_0x4b8e78,{'headers':{'Accept':'application/json'}});if(!_0x4a2cd3['ok'])throw new Error(_0x1bd930(0x6c)+_0x4a2cd3['status']+'\x20'+_0x4a2cd3[_0x1bd930(0x6b)]);const _0x4d6ba3=await _0x4a2cd3[_0x1bd930(0x6d)]();if(!_0x4d6ba3['content']||typeof _0x4d6ba3[_0x1bd930(0x7e)]!=='string')throw new Error(_0x1bd930(0x6e));return _0x4d6ba3;}export async function getRulesContent(){const _0x2f1d36=a137_0x55e6a2;try{const _0xb17b76=await fetchRulesFromCDN();return _0xb17b76[_0x2f1d36(0x7e)];}catch{return readLocalTemplate();}}export function readLocalTemplate(){const _0x229b88=a137_0x55e6a2;if(existsSync(LOCAL_TEMPLATE_PATH))return readFileSync(LOCAL_TEMPLATE_PATH,_0x229b88(0x70));throw new Error(_0x229b88(0x7b)+LOCAL_TEMPLATE_PATH);}export async function writeRulesFile(_0x3bd999){const _0x278785=a137_0x55e6a2,_0xe4b9b7=await fetchRulesFromCDN()[_0x278785(0x6f)](()=>null);let _0x2d14ca;_0xe4b9b7?(_0x2d14ca=_0xe4b9b7[_0x278785(0x7e)],_0xe4b9b7[_0x278785(0x79)]&&(_0x2d14ca=appendUpdateTime(_0x2d14ca,_0xe4b9b7[_0x278785(0x79)]))):_0x2d14ca=readLocalTemplate();const _0x3decb5=dirname(_0x3bd999);!existsSync(_0x3decb5)&&mkdirSync(_0x3decb5,{'recursive':!![]}),writeFileSync(_0x3bd999,_0x2d14ca,_0x278785(0x70));}export async function copyRulesToCursor(_0x81b2d4){const _0x186fc1=a137_0x55e6a2,_0x4e45bb=join(_0x81b2d4,_0x186fc1(0x7f)),_0x54ba46=join(_0x4e45bb,_0x186fc1(0x73));if(existsSync(_0x54ba46))return![];return await writeRulesFile(_0x54ba46),!![];}function a137_0x9fbe(){const _0x30bf58=['2625380JQfOyj','content','.cursor/rules','8ZoeAOz','509981bjEeJc','6344436tfVRXs','statusText','CDN\x20请求失败:\x20','json','CDN\x20返回数据格式错误','catch','utf-8','5558484fOHNAA','4964373SuXzQG','lovrabet_rules.mdc','/rules/rules.json','10dUUYZC','87726WvjKyj','agents.md','../../templates/rules/lovrabet_rules.mdc.tpl','lastUpdated','4yIZJQm','本地模板文件不存在:\x20','4460140FwyOzl'];a137_0x9fbe=function(){return _0x30bf58;};return a137_0x9fbe();}export async function copyRulesToAgentsMd(_0x5b6b0c){const _0xa5c8ff=a137_0x55e6a2,_0x3f64e3=join(_0x5b6b0c,_0xa5c8ff(0x77));if(existsSync(_0x3f64e3))return![];return await writeRulesFile(_0x3f64e3),!![];}
@@ -1 +1 @@
1
- export function sleep(_0x3eb307){return new Promise(_0x165407=>setTimeout(_0x165407,_0x3eb307));}
1
+ export function sleep(_0x29dc16){return new Promise(_0x15e472=>setTimeout(_0x15e472,_0x29dc16));}
@@ -1 +1 @@
1
- const a137_0x1e0af9=a137_0x32e0;function a137_0x32e0(_0x205305,_0x521ee6){_0x205305=_0x205305-0xa4;const _0x1bf824=a137_0x1bf8();let _0x32e0b8=_0x1bf824[_0x205305];return _0x32e0b8;}(function(_0x321cfc,_0x3b9465){const _0x253def=a137_0x32e0,_0x15500a=_0x321cfc();while(!![]){try{const _0x5825d4=-parseInt(_0x253def(0xe2))/0x1+parseInt(_0x253def(0xd5))/0x2*(parseInt(_0x253def(0xb2))/0x3)+-parseInt(_0x253def(0xd9))/0x4*(parseInt(_0x253def(0xa7))/0x5)+-parseInt(_0x253def(0xd1))/0x6+parseInt(_0x253def(0xbb))/0x7+-parseInt(_0x253def(0xc6))/0x8+parseInt(_0x253def(0xdf))/0x9*(parseInt(_0x253def(0xd8))/0xa);if(_0x5825d4===_0x3b9465)break;else _0x15500a['push'](_0x15500a['shift']());}catch(_0x19e484){_0x15500a['push'](_0x15500a['shift']());}}}(a137_0x1bf8,0x45e19));import a137_0x16b244 from'node:fs';import a137_0x3cdc2b from'node:path';import{logger}from'../utils/logger.js';import{getCliVersion}from'../utils/version.js';function a137_0x1bf8(){const _0xd1f3e2=['split','10885383jaLQib','name','numeric','410691IdsOJP','模板内容替换失败','alias:\x20\x22','readFile','replaceContent','toLocaleDateString','开始处理模板内容替换','2025NYSTbb','replaceApiContent','.tpl','tableName','alias','.jsx','.md','toISOString','toComponentName','api','\x20},','15dSQoVZ','readdir','.json','.js','default','info','.css','toLocaleString','.scss','707336HIJZtY','promises','now','toDisplayTitle','template','map','mkdir','isDirectory','processDirectory','toLowerCase','utf8','2382680cUQzYZ','message','replace','isFile','copyFile','endsWith','join','.tsx','tableName:\x20\x22','slice','charAt','914136pUqMDh','模板内容替换完成','datasetCode:\x20\x22','.ts','33614qZCHfi','pop','2-digit','10PadbjE','2444MstYjZ','toUpperCase','name:\x20\x22','error','success'];a137_0x1bf8=function(){return _0xd1f3e2;};return a137_0x1bf8();}const CLI_VERSION=getCliVersion();export class TemplateReplacer{static[a137_0x1e0af9(0xaf)](_0x5214d8){const _0x108282=a137_0x1e0af9,_0x393b7d=_0x5214d8['split']('/')[_0x108282(0xd6)]()||_0x5214d8;return _0x393b7d[_0x108282(0xde)]('-')[_0x108282(0xc0)](_0x320d51=>_0x320d51['charAt'](0x0)[_0x108282(0xda)]()+_0x320d51[_0x108282(0xcf)](0x1)['toLowerCase']())[_0x108282(0xcc)]('');}static['toDisplayTitle'](_0x1b1cfd){const _0x92b9bc=a137_0x1e0af9,_0x2b9f95=_0x1b1cfd['split']('/')[_0x92b9bc(0xd6)]()||_0x1b1cfd;return _0x2b9f95[_0x92b9bc(0xde)]('-')[_0x92b9bc(0xc0)](_0x3c348f=>_0x3c348f[_0x92b9bc(0xd0)](0x0)[_0x92b9bc(0xda)]()+_0x3c348f[_0x92b9bc(0xcf)](0x1)[_0x92b9bc(0xc4)]())[_0x92b9bc(0xcc)]('\x20');}static[a137_0x1e0af9(0xa4)](_0x559b63,_0x544bde,_0x28d6f1){const _0x27151e=a137_0x1e0af9,_0x3e2dde=this['toComponentName'](_0x544bde),_0x123ec1=this[_0x27151e(0xbe)](_0x544bde),_0x3e3e94=new Date(),_0x3bd1e0=_0x3e3e94[_0x27151e(0xb9)](undefined,{'year':_0x27151e(0xe1),'month':_0x27151e(0xd7),'day':_0x27151e(0xd7),'hour':_0x27151e(0xd7),'minute':_0x27151e(0xd7),'second':'2-digit','hour12':![]})['replace'](/\//g,'-'),_0x1add6f=_0x3e3e94[_0x27151e(0xa5)](undefined,{'year':_0x27151e(0xe1),'month':_0x27151e(0xd7),'day':_0x27151e(0xd7)})[_0x27151e(0xc8)](/\//g,'-'),_0x4b1fa7=_0x3e3e94['toLocaleTimeString'](undefined,{'hour12':![]});let _0x375e3e=_0x559b63['replace'](/\{CliVersion\}/g,CLI_VERSION)['replace'](/\{ComponentName\}/g,_0x3e2dde)[_0x27151e(0xc8)](/\{DisplayTitle\}/g,_0x123ec1)['replace'](/\{PageName\}/g,_0x544bde)[_0x27151e(0xc8)](/\{TemplateName\}/g,_0x28d6f1)[_0x27151e(0xc8)](/\{CreatedAt\}/g,_0x3bd1e0)[_0x27151e(0xc8)](/\{CreatedDate\}/g,_0x1add6f)[_0x27151e(0xc8)](/\{CreatedTime\}/g,_0x4b1fa7);return _0x375e3e;}static[a137_0x1e0af9(0xa8)](_0x198044,_0x5c466d,_0x2c956f,_0x4f6126,_0x5022e1,_0x19fafe,_0x1ed8b4,_0xa06632){const _0x4b66a3=a137_0x1e0af9,_0x125189=new Date(),_0x5e7e2c=_0x125189[_0x4b66a3(0xae)](),_0x36d1ee=_0x2c956f[_0x4b66a3(0xc0)](_0x2ca9bf=>{const _0x44ef30=_0x4b66a3,_0x145ece=[_0x44ef30(0xd3)+_0x2ca9bf['datasetCode']+'\x22',_0x44ef30(0xce)+_0x2ca9bf[_0x44ef30(0xaa)]+'\x22',_0x44ef30(0xdb)+_0x2ca9bf[_0x44ef30(0xe0)]+'\x22'];return _0x2ca9bf[_0x44ef30(0xab)]&&_0x145ece['push'](_0x44ef30(0xe4)+_0x2ca9bf[_0x44ef30(0xab)]+'\x22'),'\x0a\x20\x20\x20\x20{\x20'+_0x145ece[_0x44ef30(0xcc)](',\x20')+_0x44ef30(0xb1);})[_0x4b66a3(0xcc)](''),_0x2f1538=_0x4f6126||_0x2c956f[0x0]?.[_0x4b66a3(0xab)]||'YourModel';let _0x4bb326=_0x198044['replace'](/\{AppCode\}/g,_0x5c466d)[_0x4b66a3(0xc8)](/\{ModelConfigs\}/g,_0x36d1ee)[_0x4b66a3(0xc8)](/\{ExampleModelName\}/g,_0x2f1538)['replace'](/\{ApiFileName\}/g,_0x5022e1||_0x4b66a3(0xb0))[_0x4b66a3(0xc8)](/\{ConfigName\}/g,_0x19fafe||_0x4b66a3(0xb6))[_0x4b66a3(0xc8)](/\{ClientConfigParam\}/g,_0x1ed8b4||'')[_0x4b66a3(0xc8)](/\{VarPrefix\}/g,_0xa06632||'LOVRABET')[_0x4b66a3(0xc8)](/\{CreatedAt\}/g,_0x5e7e2c);return _0x4bb326;}static async['processTemplate'](_0x3f482a,_0x5993f5,_0x26e145,_0x388a7a,_0x3d0ed1=!![]){const _0x18ddf5=a137_0x1e0af9,_0x5390bd=Date[_0x18ddf5(0xbd)]();try{_0x3d0ed1&&logger[_0x18ddf5(0xb7)]('template',_0x18ddf5(0xa6),{'templatePath':_0x3f482a,'targetPath':_0x5993f5,'pageName':_0x26e145,'templateName':_0x388a7a});await a137_0x16b244[_0x18ddf5(0xbc)][_0x18ddf5(0xc1)](_0x5993f5,{'recursive':!![]}),await this['processDirectory'](_0x3f482a,_0x5993f5,_0x26e145,_0x388a7a);if(_0x3d0ed1){const _0x4bbe34=Date[_0x18ddf5(0xbd)]()-_0x5390bd;logger[_0x18ddf5(0xdd)](_0x18ddf5(0xbf),_0x18ddf5(0xd2),_0x4bbe34,{'pageName':_0x26e145,'templateName':_0x388a7a});}}catch(_0x3213a5){if(_0x3d0ed1){const _0x2b72ae=Date[_0x18ddf5(0xbd)]()-_0x5390bd;logger[_0x18ddf5(0xdc)]('template',_0x18ddf5(0xe3),{'templatePath':_0x3f482a,'targetPath':_0x5993f5,'pageName':_0x26e145,'templateName':_0x388a7a,'error':_0x3213a5 instanceof Error?_0x3213a5[_0x18ddf5(0xc7)]:String(_0x3213a5),'duration':_0x2b72ae});}throw _0x3213a5;}}static async[a137_0x1e0af9(0xc3)](_0x57ef3f,_0x3a7d17,_0x5b1195,_0x5ba208){const _0x51ed35=a137_0x1e0af9,_0x48569d=await a137_0x16b244[_0x51ed35(0xbc)][_0x51ed35(0xb3)](_0x57ef3f,{'withFileTypes':!![]});for(const _0x5ce831 of _0x48569d){const _0x39b144=a137_0x3cdc2b[_0x51ed35(0xcc)](_0x57ef3f,_0x5ce831[_0x51ed35(0xe0)]);let _0x18fecb=a137_0x3cdc2b[_0x51ed35(0xcc)](_0x3a7d17,_0x5ce831['name']);_0x5ce831['name']['endsWith'](_0x51ed35(0xa9))&&(_0x18fecb=a137_0x3cdc2b['join'](_0x3a7d17,_0x5ce831[_0x51ed35(0xe0)][_0x51ed35(0xc8)](/\.tpl$/,'')));if(_0x5ce831[_0x51ed35(0xc2)]())await a137_0x16b244['promises'][_0x51ed35(0xc1)](_0x18fecb,{'recursive':!![]}),await this[_0x51ed35(0xc3)](_0x39b144,_0x18fecb,_0x5b1195,_0x5ba208);else _0x5ce831[_0x51ed35(0xc9)]()&&await this['processFile'](_0x39b144,_0x18fecb,_0x5b1195,_0x5ba208);}}static async['processFile'](_0x4df7af,_0x5ca6b1,_0x3ef2c5,_0x6d90e){const _0xe6aa0c=a137_0x1e0af9,_0x51cff6=a137_0x3cdc2b['extname'](_0x4df7af)['toLowerCase']();_0x4df7af[_0xe6aa0c(0xcb)]('.tpl')&&(_0x5ca6b1=_0x5ca6b1[_0xe6aa0c(0xc8)](/\.tpl$/,''));const _0x2328fe=[_0xe6aa0c(0xcd),_0xe6aa0c(0xd4),_0xe6aa0c(0xac),_0xe6aa0c(0xb5),_0xe6aa0c(0xb4),_0xe6aa0c(0xad),_0xe6aa0c(0xb8),_0xe6aa0c(0xba),_0xe6aa0c(0xa9)];if(_0x2328fe['includes'](_0x51cff6)||_0x4df7af['endsWith'](_0xe6aa0c(0xa9))){const _0x5c82a4=await a137_0x16b244[_0xe6aa0c(0xbc)][_0xe6aa0c(0xe5)](_0x4df7af,'utf8'),_0x5e4afa=this['replaceContent'](_0x5c82a4,_0x3ef2c5,_0x6d90e);await a137_0x16b244['promises']['writeFile'](_0x5ca6b1,_0x5e4afa,_0xe6aa0c(0xc5));}else await a137_0x16b244[_0xe6aa0c(0xbc)][_0xe6aa0c(0xca)](_0x4df7af,_0x5ca6b1);}}
1
+ const a139_0x47f043=a139_0x4f9a;(function(_0x8a811f,_0x3cf65a){const _0x51f519=a139_0x4f9a,_0x1cfa97=_0x8a811f();while(!![]){try{const _0x49d5c1=parseInt(_0x51f519(0x104))/0x1+parseInt(_0x51f519(0xf7))/0x2*(-parseInt(_0x51f519(0x107))/0x3)+-parseInt(_0x51f519(0x111))/0x4*(-parseInt(_0x51f519(0x114))/0x5)+-parseInt(_0x51f519(0xe3))/0x6+-parseInt(_0x51f519(0xde))/0x7+-parseInt(_0x51f519(0xfb))/0x8+parseInt(_0x51f519(0xe2))/0x9;if(_0x49d5c1===_0x3cf65a)break;else _0x1cfa97['push'](_0x1cfa97['shift']());}catch(_0x2f568b){_0x1cfa97['push'](_0x1cfa97['shift']());}}}(a139_0x5b8d,0x80e64));import a139_0x480867 from'node:fs';import a139_0x32574a from'node:path';import{logger}from'../utils/logger.js';import{getCliVersion}from'../utils/version.js';function a139_0x4f9a(_0x54bd43,_0x1b29ec){_0x54bd43=_0x54bd43-0xdd;const _0x5b8dd0=a139_0x5b8d();let _0x4f9a54=_0x5b8dd0[_0x54bd43];return _0x4f9a54;}const CLI_VERSION=getCliVersion();function a139_0x5b8d(){const _0x61006d=['error','readdir','22820724uCtHvW','5471328WYsdOo','now','name','开始处理模板内容替换','template','charAt','toUpperCase','.scss','slice','tableName:\x20\x22','.css','name:\x20\x22','api','.tpl','success','toLocaleTimeString','.jsx','模板内容替换完成','numeric','.js','1992634redgHi','.json','2-digit','readFile','1023424CCXGnA','datasetCode','info','toComponentName','pop','join','promises','processFile','isDirectory','590145EbZVeF','tableName','replace','3JzxGXQ','alias','replaceContent','copyFile','endsWith','map','push','mkdir','toLowerCase','writeFile','20mGnfHp','utf8','toDisplayTitle','148355RENWVs','processDirectory','\x20},','split','alias:\x20\x22','toLocaleString','message','\x0a\x20\x20\x20\x20{\x20','extname','4970217niTrVk','processTemplate'];a139_0x5b8d=function(){return _0x61006d;};return a139_0x5b8d();}export class TemplateReplacer{static[a139_0x47f043(0xfe)](_0xdf7625){const _0x2f7c6c=a139_0x47f043,_0x165b89=_0xdf7625[_0x2f7c6c(0x117)]('/')[_0x2f7c6c(0xff)]()||_0xdf7625;return _0x165b89[_0x2f7c6c(0x117)]('-')[_0x2f7c6c(0x10c)](_0x1f2bbc=>_0x1f2bbc[_0x2f7c6c(0xe8)](0x0)[_0x2f7c6c(0xe9)]()+_0x1f2bbc[_0x2f7c6c(0xeb)](0x1)[_0x2f7c6c(0x10f)]())[_0x2f7c6c(0x100)]('');}static[a139_0x47f043(0x113)](_0x441a35){const _0x5827e4=a139_0x47f043,_0x4feb62=_0x441a35['split']('/')['pop']()||_0x441a35;return _0x4feb62[_0x5827e4(0x117)]('-')[_0x5827e4(0x10c)](_0x511cf8=>_0x511cf8[_0x5827e4(0xe8)](0x0)[_0x5827e4(0xe9)]()+_0x511cf8[_0x5827e4(0xeb)](0x1)[_0x5827e4(0x10f)]())[_0x5827e4(0x100)]('\x20');}static[a139_0x47f043(0x109)](_0x352922,_0x36433b,_0x5b8c8d){const _0x1eac10=a139_0x47f043,_0x75f10e=this[_0x1eac10(0xfe)](_0x36433b),_0x11e49d=this[_0x1eac10(0x113)](_0x36433b),_0x28f233=new Date(),_0x366996=_0x28f233[_0x1eac10(0x119)](undefined,{'year':_0x1eac10(0xf5),'month':_0x1eac10(0xf9),'day':_0x1eac10(0xf9),'hour':_0x1eac10(0xf9),'minute':_0x1eac10(0xf9),'second':_0x1eac10(0xf9),'hour12':![]})['replace'](/\//g,'-'),_0x343c76=_0x28f233['toLocaleDateString'](undefined,{'year':_0x1eac10(0xf5),'month':_0x1eac10(0xf9),'day':_0x1eac10(0xf9)})[_0x1eac10(0x106)](/\//g,'-'),_0x4a29f9=_0x28f233[_0x1eac10(0xf2)](undefined,{'hour12':![]});let _0x8fdf57=_0x352922['replace'](/\{CliVersion\}/g,CLI_VERSION)[_0x1eac10(0x106)](/\{ComponentName\}/g,_0x75f10e)[_0x1eac10(0x106)](/\{DisplayTitle\}/g,_0x11e49d)[_0x1eac10(0x106)](/\{PageName\}/g,_0x36433b)['replace'](/\{TemplateName\}/g,_0x5b8c8d)[_0x1eac10(0x106)](/\{CreatedAt\}/g,_0x366996)[_0x1eac10(0x106)](/\{CreatedDate\}/g,_0x343c76)['replace'](/\{CreatedTime\}/g,_0x4a29f9);return _0x8fdf57;}static['replaceApiContent'](_0x1423e4,_0xfea0e8,_0x34ec70,_0x56de23,_0x1c22ab,_0x24257e,_0x3e4b49,_0x4554b6){const _0x2e24a8=a139_0x47f043,_0x3f7ace=new Date(),_0x43c625=_0x3f7ace['toISOString'](),_0x28e166=_0x34ec70[_0x2e24a8(0x10c)](_0x34eabe=>{const _0x51b078=_0x2e24a8,_0x1164fe=['datasetCode:\x20\x22'+_0x34eabe[_0x51b078(0xfc)]+'\x22',_0x51b078(0xec)+_0x34eabe[_0x51b078(0x105)]+'\x22',_0x51b078(0xee)+_0x34eabe['name']+'\x22'];return _0x34eabe[_0x51b078(0x108)]&&_0x1164fe[_0x51b078(0x10d)](_0x51b078(0x118)+_0x34eabe[_0x51b078(0x108)]+'\x22'),_0x51b078(0x11b)+_0x1164fe[_0x51b078(0x100)](',\x20')+_0x51b078(0x116);})[_0x2e24a8(0x100)](''),_0x38a967=_0x56de23||_0x34ec70[0x0]?.[_0x2e24a8(0x108)]||'YourModel';let _0x9783c6=_0x1423e4[_0x2e24a8(0x106)](/\{AppCode\}/g,_0xfea0e8)[_0x2e24a8(0x106)](/\{ModelConfigs\}/g,_0x28e166)[_0x2e24a8(0x106)](/\{ExampleModelName\}/g,_0x38a967)[_0x2e24a8(0x106)](/\{ApiFileName\}/g,_0x1c22ab||_0x2e24a8(0xef))[_0x2e24a8(0x106)](/\{ConfigName\}/g,_0x24257e||'default')['replace'](/\{ClientConfigParam\}/g,_0x3e4b49||'')[_0x2e24a8(0x106)](/\{VarPrefix\}/g,_0x4554b6||'LOVRABET')[_0x2e24a8(0x106)](/\{CreatedAt\}/g,_0x43c625);return _0x9783c6;}static async[a139_0x47f043(0xdf)](_0x5d565c,_0x112205,_0x1f83a8,_0x11fb08,_0x289385=!![]){const _0x5500f1=a139_0x47f043,_0x40fb3f=Date[_0x5500f1(0xe4)]();try{_0x289385&&logger[_0x5500f1(0xfd)](_0x5500f1(0xe7),_0x5500f1(0xe6),{'templatePath':_0x5d565c,'targetPath':_0x112205,'pageName':_0x1f83a8,'templateName':_0x11fb08});await a139_0x480867['promises'][_0x5500f1(0x10e)](_0x112205,{'recursive':!![]}),await this[_0x5500f1(0x115)](_0x5d565c,_0x112205,_0x1f83a8,_0x11fb08);if(_0x289385){const _0x86553f=Date[_0x5500f1(0xe4)]()-_0x40fb3f;logger[_0x5500f1(0xf1)](_0x5500f1(0xe7),_0x5500f1(0xf4),_0x86553f,{'pageName':_0x1f83a8,'templateName':_0x11fb08});}}catch(_0x3dc197){if(_0x289385){const _0x4bde41=Date[_0x5500f1(0xe4)]()-_0x40fb3f;logger[_0x5500f1(0xe0)]('template','模板内容替换失败',{'templatePath':_0x5d565c,'targetPath':_0x112205,'pageName':_0x1f83a8,'templateName':_0x11fb08,'error':_0x3dc197 instanceof Error?_0x3dc197[_0x5500f1(0x11a)]:String(_0x3dc197),'duration':_0x4bde41});}throw _0x3dc197;}}static async[a139_0x47f043(0x115)](_0x23f89a,_0x1ed49e,_0x49dacc,_0x502d68){const _0x115ca7=a139_0x47f043,_0x13ba94=await a139_0x480867['promises'][_0x115ca7(0xe1)](_0x23f89a,{'withFileTypes':!![]});for(const _0x3f0684 of _0x13ba94){const _0x46d60d=a139_0x32574a[_0x115ca7(0x100)](_0x23f89a,_0x3f0684[_0x115ca7(0xe5)]);let _0x2465f2=a139_0x32574a['join'](_0x1ed49e,_0x3f0684[_0x115ca7(0xe5)]);_0x3f0684[_0x115ca7(0xe5)][_0x115ca7(0x10b)](_0x115ca7(0xf0))&&(_0x2465f2=a139_0x32574a[_0x115ca7(0x100)](_0x1ed49e,_0x3f0684[_0x115ca7(0xe5)]['replace'](/\.tpl$/,'')));if(_0x3f0684[_0x115ca7(0x103)]())await a139_0x480867[_0x115ca7(0x101)]['mkdir'](_0x2465f2,{'recursive':!![]}),await this[_0x115ca7(0x115)](_0x46d60d,_0x2465f2,_0x49dacc,_0x502d68);else _0x3f0684['isFile']()&&await this[_0x115ca7(0x102)](_0x46d60d,_0x2465f2,_0x49dacc,_0x502d68);}}static async[a139_0x47f043(0x102)](_0x8d006e,_0x470fe7,_0x19a797,_0x279ba8){const _0x489966=a139_0x47f043,_0x262630=a139_0x32574a[_0x489966(0xdd)](_0x8d006e)[_0x489966(0x10f)]();_0x8d006e[_0x489966(0x10b)](_0x489966(0xf0))&&(_0x470fe7=_0x470fe7['replace'](/\.tpl$/,''));const _0x361c64=['.tsx','.ts',_0x489966(0xf3),_0x489966(0xf6),_0x489966(0xf8),'.md',_0x489966(0xed),_0x489966(0xea),'.tpl'];if(_0x361c64['includes'](_0x262630)||_0x8d006e[_0x489966(0x10b)](_0x489966(0xf0))){const _0x3fabf9=await a139_0x480867[_0x489966(0x101)][_0x489966(0xfa)](_0x8d006e,'utf8'),_0x42fa56=this[_0x489966(0x109)](_0x3fabf9,_0x19a797,_0x279ba8);await a139_0x480867['promises'][_0x489966(0x110)](_0x470fe7,_0x42fa56,_0x489966(0x112));}else await a139_0x480867[_0x489966(0x101)][_0x489966(0x10a)](_0x8d006e,_0x470fe7);}}
@@ -1 +1 @@
1
- function a138_0x32a9(){var _0x7c9dde=['1793502FNTQCJ','1376836yvjRmj','49WBaDCL','717912gikPqu','174486VDocLM','1159825FrnkgD','121087LWIgXW','1522632kTWDrW'];a138_0x32a9=function(){return _0x7c9dde;};return a138_0x32a9();}(function(_0x28e035,_0x331a62){var _0x98769b=a138_0x4bbc,_0x41a1cc=_0x28e035();while(!![]){try{var _0x23949f=-parseInt(_0x98769b(0x16b))/0x1+parseInt(_0x98769b(0x169))/0x2+-parseInt(_0x98769b(0x168))/0x3+-parseInt(_0x98769b(0x166))/0x4+-parseInt(_0x98769b(0x16a))/0x5+-parseInt(_0x98769b(0x165))/0x6+parseInt(_0x98769b(0x167))/0x7*(parseInt(_0x98769b(0x164))/0x8);if(_0x23949f===_0x331a62)break;else _0x41a1cc['push'](_0x41a1cc['shift']());}catch(_0x248a5f){_0x41a1cc['push'](_0x41a1cc['shift']());}}}(a138_0x32a9,0x2cf00));import{VERSION}from'../generated/build-info.js';function a138_0x4bbc(_0x3f1042,_0x240068){_0x3f1042=_0x3f1042-0x164;var _0x32a992=a138_0x32a9();var _0x4bbc0e=_0x32a992[_0x3f1042];return _0x4bbc0e;}export function getCliVersion(){return VERSION;}
1
+ function a140_0x440f(_0x17d349,_0x16474b){_0x17d349=_0x17d349-0x118;var _0x73cb12=a140_0x73cb();var _0x440f8f=_0x73cb12[_0x17d349];return _0x440f8f;}(function(_0x1c423b,_0x3f143d){var _0x1d78cb=a140_0x440f,_0x49d334=_0x1c423b();while(!![]){try{var _0x2dbe60=parseInt(_0x1d78cb(0x120))/0x1*(parseInt(_0x1d78cb(0x121))/0x2)+parseInt(_0x1d78cb(0x119))/0x3+-parseInt(_0x1d78cb(0x11c))/0x4*(-parseInt(_0x1d78cb(0x11e))/0x5)+-parseInt(_0x1d78cb(0x118))/0x6+-parseInt(_0x1d78cb(0x11b))/0x7+parseInt(_0x1d78cb(0x11f))/0x8*(-parseInt(_0x1d78cb(0x11d))/0x9)+parseInt(_0x1d78cb(0x11a))/0xa;if(_0x2dbe60===_0x3f143d)break;else _0x49d334['push'](_0x49d334['shift']());}catch(_0x342f32){_0x49d334['push'](_0x49d334['shift']());}}}(a140_0x73cb,0xd8b40));import{VERSION}from'../generated/build-info.js';function a140_0x73cb(){var _0x20fa77=['369hdFFIl','5WolkOz','91912Rfquul','307fZEGvH','3062MgArvm','6791442pVdGjk','2031915eveMnZ','18776200mzQdRs','7818069YsrPYO','2329988WLZeat'];a140_0x73cb=function(){return _0x20fa77;};return a140_0x73cb();}export function getCliVersion(){return VERSION;}
@@ -1 +1 @@
1
- function a139_0x2e32(_0x589702,_0x1806e5){_0x589702=_0x589702-0x162;var _0x44ea73=a139_0x44ea();var _0x2e32f2=_0x44ea73[_0x589702];return _0x2e32f2;}function a139_0x44ea(){var _0x3bfa44=['3MudhIw','449922CzyGTj','4767vnkVEp','170imziCI','1326590UedWql','1061136VzfHoR','474HzZVWB','2117308aPCszC','24IPoKfy','2591210RcJTTZ','1776969pBHcWY'];a139_0x44ea=function(){return _0x3bfa44;};return a139_0x44ea();}(function(_0x2e4d54,_0x51aa41){var _0x4978b5=a139_0x2e32,_0x464c1e=_0x2e4d54();while(!![]){try{var _0x109769=parseInt(_0x4978b5(0x16a))/0x1+-parseInt(_0x4978b5(0x169))/0x2+parseInt(_0x4978b5(0x165))/0x3*(-parseInt(_0x4978b5(0x16c))/0x4)+-parseInt(_0x4978b5(0x163))/0x5+-parseInt(_0x4978b5(0x16b))/0x6*(-parseInt(_0x4978b5(0x167))/0x7)+parseInt(_0x4978b5(0x162))/0x8*(parseInt(_0x4978b5(0x164))/0x9)+parseInt(_0x4978b5(0x168))/0xa*(parseInt(_0x4978b5(0x166))/0xb);if(_0x109769===_0x51aa41)break;else _0x464c1e['push'](_0x464c1e['shift']());}catch(_0x56df5b){_0x464c1e['push'](_0x464c1e['shift']());}}}(a139_0x44ea,0xa8e10));import{setActiveCookie,clearActiveCookie}from'../core/api-client.js';export async function withActiveCookie(_0x4f2ca3,_0x324acf){setActiveCookie(_0x4f2ca3);try{return await _0x324acf();}finally{clearActiveCookie();}}
1
+ (function(_0x3f32af,_0x53f155){var _0x55e428=a141_0x3fbd,_0x5e096f=_0x3f32af();while(!![]){try{var _0x454591=parseInt(_0x55e428(0xa8))/0x1*(-parseInt(_0x55e428(0xac))/0x2)+parseInt(_0x55e428(0xb2))/0x3*(-parseInt(_0x55e428(0xb3))/0x4)+-parseInt(_0x55e428(0xaf))/0x5*(-parseInt(_0x55e428(0xae))/0x6)+parseInt(_0x55e428(0xb1))/0x7*(-parseInt(_0x55e428(0xb0))/0x8)+parseInt(_0x55e428(0xaa))/0x9*(-parseInt(_0x55e428(0xab))/0xa)+parseInt(_0x55e428(0xad))/0xb*(parseInt(_0x55e428(0xa9))/0xc)+-parseInt(_0x55e428(0xa6))/0xd*(-parseInt(_0x55e428(0xa7))/0xe);if(_0x454591===_0x53f155)break;else _0x5e096f['push'](_0x5e096f['shift']());}catch(_0x516442){_0x5e096f['push'](_0x5e096f['shift']());}}}(a141_0x2273,0xde0fb));import{setActiveCookie,clearActiveCookie}from'../core/api-client.js';function a141_0x3fbd(_0x2527da,_0x1adcf3){_0x2527da=_0x2527da-0xa6;var _0x2273c9=a141_0x2273();var _0x3fbd7b=_0x2273c9[_0x2527da];return _0x3fbd7b;}function a141_0x2273(){var _0x4383fe=['380HHSCSz','32kJQumf','7178468oHOIJr','12LeyMYb','1065225pRnZoi','24DbrxOc','1552796HhZpti','3hWoBkW','1427948zVzERA','52PKTENx','10420508CTdoMN','46918NawEzj','12ogNpIm','325242ADIfhO'];a141_0x2273=function(){return _0x4383fe;};return a141_0x2273();}export async function withActiveCookie(_0x1ec495,_0x44f179){setActiveCookie(_0x1ec495);try{return await _0x44f179();}finally{clearActiveCookie();}}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lovrabet/rabetbase-cli",
3
- "version": "2.0.12",
3
+ "version": "2.0.13",
4
4
  "license": "SEE LICENSE IN LICENSE",
5
5
  "repository": {
6
6
  "type": "git",