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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (196) hide show
  1. package/lib/api/api-doc.js +1 -1
  2. package/lib/api/fetch-model-list.js +1 -1
  3. package/lib/api/generate-api-file.js +1 -1
  4. package/lib/auth/auth-server-ui.js +1 -1
  5. package/lib/auth/auth-server.js +1 -1
  6. package/lib/auth/constant.js +1 -1
  7. package/lib/auth/get-cookie.js +1 -1
  8. package/lib/auth/get-session-user.js +1 -1
  9. package/lib/auth/is-session-valid.js +1 -1
  10. package/lib/auth/login-success-html.js +1 -1
  11. package/lib/auth/logout.js +1 -1
  12. package/lib/cli-flags.js +1 -1
  13. package/lib/cli.js +1 -1
  14. package/lib/commands/api/generate.js +1 -1
  15. package/lib/commands/api/index.js +1 -1
  16. package/lib/commands/api/list.js +1 -1
  17. package/lib/commands/api/pull.js +1 -1
  18. package/lib/commands/api/shared.js +1 -1
  19. package/lib/commands/app/add.js +1 -1
  20. package/lib/commands/app/discover.js +1 -1
  21. package/lib/commands/app/index.js +1 -1
  22. package/lib/commands/app/list.js +1 -1
  23. package/lib/commands/app/remove.js +1 -1
  24. package/lib/commands/app/shared.js +1 -1
  25. package/lib/commands/app/use.js +1 -1
  26. package/lib/commands/auth/index.js +1 -1
  27. package/lib/commands/bff/create.js +1 -1
  28. package/lib/commands/bff/delete.js +1 -1
  29. package/lib/commands/bff/detail.js +1 -1
  30. package/lib/commands/bff/index.js +1 -1
  31. package/lib/commands/bff/list.js +1 -1
  32. package/lib/commands/bff/pull.js +1 -1
  33. package/lib/commands/bff/push.js +1 -1
  34. package/lib/commands/bff/status.js +1 -1
  35. package/lib/commands/cli-update.js +1 -1
  36. package/lib/commands/codegen/index.js +1 -1
  37. package/lib/commands/codegen/sdk.js +1 -1
  38. package/lib/commands/codegen/sql.js +1 -1
  39. package/lib/commands/common/app-selector.js +1 -1
  40. package/lib/commands/common/flags.js +1 -1
  41. package/lib/commands/common/validate.js +1 -1
  42. package/lib/commands/config/get.js +1 -1
  43. package/lib/commands/config/index.js +1 -1
  44. package/lib/commands/config/list.js +1 -1
  45. package/lib/commands/config/set.js +1 -1
  46. package/lib/commands/config/shared.js +1 -1
  47. package/lib/commands/data/filter.js +1 -1
  48. package/lib/commands/data/getOne.js +1 -1
  49. package/lib/commands/data/index.js +1 -1
  50. package/lib/commands/data/shared.js +1 -1
  51. package/lib/commands/dataset/delete.js +1 -1
  52. package/lib/commands/dataset/detail.js +1 -1
  53. package/lib/commands/dataset/index.js +1 -1
  54. package/lib/commands/dataset/link-create.js +1 -1
  55. package/lib/commands/dataset/link-delete.js +1 -1
  56. package/lib/commands/dataset/link-shared.js +1 -1
  57. package/lib/commands/dataset/link-update.js +1 -1
  58. package/lib/commands/dataset/links.js +1 -1
  59. package/lib/commands/dataset/list.js +1 -1
  60. package/lib/commands/dataset/operations.js +1 -1
  61. package/lib/commands/db/analyze-cancel.js +1 -1
  62. package/lib/commands/db/analyze-start.js +1 -1
  63. package/lib/commands/db/analyze-status.js +1 -1
  64. package/lib/commands/db/create.js +1 -1
  65. package/lib/commands/db/delete.js +1 -1
  66. package/lib/commands/db/detail.js +1 -1
  67. package/lib/commands/db/diff.js +1 -1
  68. package/lib/commands/db/index.js +1 -1
  69. package/lib/commands/db/list.js +1 -1
  70. package/lib/commands/db/shared.js +1 -1
  71. package/lib/commands/db/tables.js +1 -1
  72. package/lib/commands/db/test.js +1 -1
  73. package/lib/commands/db/update.js +1 -1
  74. package/lib/commands/doctor.js +1 -1
  75. package/lib/commands/init/index.js +1 -1
  76. package/lib/commands/issue/index.js +1 -1
  77. package/lib/commands/issue/report.js +1 -1
  78. package/lib/commands/logs/index.js +1 -1
  79. package/lib/commands/menu/index.js +1 -1
  80. package/lib/commands/menu/shared/compare-table.js +1 -1
  81. package/lib/commands/menu/shared/index.js +1 -1
  82. package/lib/commands/menu/shared/inquirer.js +1 -1
  83. package/lib/commands/menu/shared/local-pages.js +1 -1
  84. package/lib/commands/menu/shared/logic.js +1 -1
  85. package/lib/commands/menu/shared/service.js +1 -1
  86. package/lib/commands/menu/shared/sync-core.js +1 -1
  87. package/lib/commands/menu/shared/update-core.js +1 -1
  88. package/lib/commands/menu/shared/valid-url.js +1 -1
  89. package/lib/commands/menu/sync.js +1 -1
  90. package/lib/commands/menu/update.js +1 -1
  91. package/lib/commands/page/generate-start.js +1 -1
  92. package/lib/commands/page/generate-status.js +1 -1
  93. package/lib/commands/page/index.js +1 -1
  94. package/lib/commands/page/pull.js +1 -1
  95. package/lib/commands/page/push.js +1 -1
  96. package/lib/commands/page/shared.js +1 -1
  97. package/lib/commands/page/standard-page-status.js +1 -1
  98. package/lib/commands/page/sync.js +1 -1
  99. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  100. package/lib/commands/project/create/format-elapsed.js +1 -1
  101. package/lib/commands/project/create/main.js +1 -1
  102. package/lib/commands/project/create/non-interactive.js +1 -1
  103. package/lib/commands/project/create/project-template-path.js +1 -1
  104. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  105. package/lib/commands/project/create/use-format-code.js +1 -1
  106. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  107. package/lib/commands/project/index.js +1 -1
  108. package/lib/commands/project/init.js +1 -1
  109. package/lib/commands/project/upgrade.js +1 -1
  110. package/lib/commands/registry.js +1 -1
  111. package/lib/commands/run/index.js +1 -1
  112. package/lib/commands/schema.js +1 -1
  113. package/lib/commands/skill/index.js +1 -1
  114. package/lib/commands/sql/create.js +1 -1
  115. package/lib/commands/sql/delete.js +1 -1
  116. package/lib/commands/sql/detail.js +1 -1
  117. package/lib/commands/sql/exec.js +1 -1
  118. package/lib/commands/sql/index.js +1 -1
  119. package/lib/commands/sql/list.js +1 -1
  120. package/lib/commands/sql/pull.js +1 -1
  121. package/lib/commands/sql/push.js +1 -1
  122. package/lib/commands/sql/save.js +1 -1
  123. package/lib/commands/sql/shared.js +1 -1
  124. package/lib/commands/sql/status.js +1 -1
  125. package/lib/commands/sql/validate.js +1 -1
  126. package/lib/config/schema.js +1 -1
  127. package/lib/constant/cdn.js +1 -1
  128. package/lib/constant/cli.js +1 -1
  129. package/lib/constant/defaults.js +1 -1
  130. package/lib/constant/domain.js +1 -1
  131. package/lib/constant/env.js +1 -1
  132. package/lib/constant/output.js +1 -1
  133. package/lib/constant/paths.js +1 -1
  134. package/lib/constant/risk.js +1 -1
  135. package/lib/context.js +1 -1
  136. package/lib/core/alias-resolver.js +1 -1
  137. package/lib/core/api-client.js +1 -1
  138. package/lib/core/bff/config.js +1 -1
  139. package/lib/core/bff/file-system.js +1 -1
  140. package/lib/core/bff/hash.js +1 -1
  141. package/lib/core/bff/lock.js +1 -1
  142. package/lib/core/bff/utils.js +1 -1
  143. package/lib/core/db-resolver.js +1 -1
  144. package/lib/core/page/file-system.js +1 -1
  145. package/lib/core/page/hash.js +1 -1
  146. package/lib/core/page/lock.js +1 -1
  147. package/lib/core/sql-sync/config.js +1 -1
  148. package/lib/core/sql-sync/file-system.js +1 -1
  149. package/lib/core/sql-sync/hash.js +1 -1
  150. package/lib/core/sql-sync/lock.js +1 -1
  151. package/lib/core/sql-sync/utils.js +1 -1
  152. package/lib/core/sql-validator.js +1 -1
  153. package/lib/errors.js +1 -1
  154. package/lib/framework/build-all-flags.js +1 -1
  155. package/lib/framework/flags.js +1 -1
  156. package/lib/framework/help.js +1 -1
  157. package/lib/framework/index.js +1 -1
  158. package/lib/framework/output.js +1 -1
  159. package/lib/framework/response.js +1 -1
  160. package/lib/framework/runner-alias.js +1 -1
  161. package/lib/framework/runner.js +1 -1
  162. package/lib/framework/schema-export.js +1 -1
  163. package/lib/framework/types.js +1 -1
  164. package/lib/generated/build-info.js +1 -1
  165. package/lib/help.js +1 -1
  166. package/lib/skills/main.js +1 -1
  167. package/lib/skills/npx-skills-add.js +1 -1
  168. package/lib/telemetry/cli-command-trace.js +1 -1
  169. package/lib/telemetry/cli-help-trace.js +1 -1
  170. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  171. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  172. package/lib/telemetry/send-cli-trace-log.js +1 -1
  173. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  174. package/lib/utils/ai_config.js +1 -1
  175. package/lib/utils/apply-jq-filter.js +1 -1
  176. package/lib/utils/cdn-config.js +1 -1
  177. package/lib/utils/check-sdk-version.js +1 -1
  178. package/lib/utils/cli-version-check.js +1 -1
  179. package/lib/utils/cli-version-policy.js +1 -1
  180. package/lib/utils/config.js +1 -1
  181. package/lib/utils/copy-directory.js +1 -1
  182. package/lib/utils/entity-with-id.js +1 -1
  183. package/lib/utils/file-utils.js +1 -1
  184. package/lib/utils/guides-cdn.js +1 -1
  185. package/lib/utils/http-client.js +1 -1
  186. package/lib/utils/is-non-interactive.js +1 -1
  187. package/lib/utils/logger.js +1 -1
  188. package/lib/utils/params.js +1 -1
  189. package/lib/utils/platform.js +1 -1
  190. package/lib/utils/rules-cdn.js +1 -1
  191. package/lib/utils/sleep.js +1 -1
  192. package/lib/utils/template-replacer.js +1 -1
  193. package/lib/utils/version.js +1 -1
  194. package/lib/utils/with-active-cookie.js +1 -1
  195. package/lib/utils/write-cli-side-channel.js +1 -1
  196. package/package.json +1 -1
@@ -1 +1 @@
1
- (function(_0x4d1f1d,_0x4a1dfd){const _0x3f15ea=a182_0x3f0a,_0x32e30f=_0x4d1f1d();while(!![]){try{const _0x4f8b53=-parseInt(_0x3f15ea(0x201))/0x1*(parseInt(_0x3f15ea(0x1f5))/0x2)+parseInt(_0x3f15ea(0x1f9))/0x3*(parseInt(_0x3f15ea(0x1fe))/0x4)+parseInt(_0x3f15ea(0x1ff))/0x5+-parseInt(_0x3f15ea(0x1fd))/0x6*(-parseInt(_0x3f15ea(0x1e9))/0x7)+parseInt(_0x3f15ea(0x1f6))/0x8+-parseInt(_0x3f15ea(0x203))/0x9+-parseInt(_0x3f15ea(0x204))/0xa*(parseInt(_0x3f15ea(0x200))/0xb);if(_0x4f8b53===_0x4a1dfd)break;else _0x32e30f['push'](_0x32e30f['shift']());}catch(_0xe32aef){_0x32e30f['push'](_0x32e30f['shift']());}}}(a182_0x3dd6,0x8422a));import{readFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';import a182_0x2a5aad from'semver';import{getCliVersionPolicy}from'../utils/cli-version-policy.js';import{NPM_PACKAGE_NAME}from'../constant/cli.js';import{CliErrors}from'../errors.js';function a182_0x3f0a(_0x584544,_0x4fc99e){_0x584544=_0x584544-0x1e9;const _0x3dd62d=a182_0x3dd6();let _0x3f0aff=_0x3dd62d[_0x584544];return _0x3f0aff;}export function getCliUpgradeCommand(_0x9bd13){const _0x1e867f=a182_0x3f0a,_0x41f3cb=_0x9bd13[_0x1e867f(0x1f2)]||'latest';return _0x1e867f(0x20a)+NPM_PACKAGE_NAME+'@'+_0x41f3cb;}function getCurrentCliVersion(){const _0x2ccda3=a182_0x3f0a;try{const _0x3a33eb=fileURLToPath(import.meta.url),_0x156a54=resolve(dirname(_0x3a33eb),_0x2ccda3(0x1f1)),_0x542d82=resolve(_0x156a54,_0x2ccda3(0x1ea)),_0x4f35df=JSON['parse'](readFileSync(_0x542d82,_0x2ccda3(0x210)));return _0x4f35df[_0x2ccda3(0x20d)]||_0x2ccda3(0x202);}catch{return _0x2ccda3(0x202);}}function a182_0x3dd6(){const _0x52b4bf=['2538000nDfAZW','33xKKnWn','167448BCowuJ','1.0.0','2873889LvsNsV','4340030BoEtTJ','\x20\x20\x20Recommended\x20stable:\x20','\x1b[33m','\x1b[1m','Current\x20version:\x20','\x20\x20\x20Minimum\x20required:\x20','npm\x20install\x20-g\x20','currentVersion','\x1b[31m','version','\x20\x20\x20Upgrade\x20command:\x20','minimumVersionMessage','utf-8','54509IoRJVZ','package.json','\x20\x20\x20Current\x20CLI\x20version:\x20','Current\x20CLI\x20version\x20is\x20below\x20the\x20minimum\x20supported\x20version.','log','\x20\x20\x20Stable\x20version:\x20','coerce','\x1b[0m','../..','stableVersion','upgradeMessage','↪\x20New\x20version\x20available','10QGkuQO','8128152SNHbRf','\x20\x20\x20','join','6JNlbOJ','filter','minimumVersion','belowMinimum','318ChrsHW','2126932lWecqT'];a182_0x3dd6=function(){return _0x52b4bf;};return a182_0x3dd6();}export async function checkCliVersion(){const _0x6104fb=a182_0x3f0a,_0x22eb74=getCurrentCliVersion(),_0x213ac9=await getCliVersionPolicy(),_0x46ce42=_0x213ac9?.[_0x6104fb(0x1f2)]||null,_0x3a80ee=_0x213ac9?.[_0x6104fb(0x1fb)]||null;let _0x37b816=![],_0x2a5da9=![];const _0x54016b=a182_0x2a5aad['coerce'](_0x22eb74);if(_0x54016b&&_0x46ce42)try{const _0x4eff59=a182_0x2a5aad['coerce'](_0x46ce42);if(_0x4eff59)_0x37b816=a182_0x2a5aad['lt'](_0x54016b,_0x4eff59);}catch{}if(_0x54016b&&_0x3a80ee)try{const _0x711fb3=a182_0x2a5aad[_0x6104fb(0x1ef)](_0x3a80ee);if(_0x711fb3)_0x2a5da9=a182_0x2a5aad['lt'](_0x54016b,_0x711fb3);}catch{}return _0x2a5da9&&(_0x37b816=!![]),{'currentVersion':_0x22eb74,'stableVersion':_0x46ce42,'minimumVersion':_0x3a80ee,'needsUpgrade':_0x37b816,'belowMinimum':_0x2a5da9,'isPreRelease':![],'upgradeMessage':_0x213ac9?.[_0x6104fb(0x1f3)],'minimumVersionMessage':_0x213ac9?.['minimumVersionMessage']};}export function printCliUpgradeWarning(_0x53702d){const _0xbf8761=a182_0x3f0a;if(!_0x53702d['needsUpgrade']&&!_0x53702d[_0xbf8761(0x1fc)])return;const _0x4e5589=_0xbf8761(0x20c),_0x270e69=_0xbf8761(0x206),_0x32404f=_0xbf8761(0x1f0),_0x292fc9=_0xbf8761(0x207),_0x5b7003=getCliUpgradeCommand(_0x53702d);console[_0xbf8761(0x1ed)](),_0x53702d[_0xbf8761(0x1fc)]?(console['log'](''+_0x4e5589+_0x292fc9+'↪\x20Critical\x20CLI\x20upgrade\x20required'+_0x32404f),console[_0xbf8761(0x1ed)](_0x4e5589+'\x20\x20\x20Current\x20CLI\x20version:\x20'+_0x53702d[_0xbf8761(0x20b)]+_0x32404f),_0x53702d[_0xbf8761(0x1fb)]&&console[_0xbf8761(0x1ed)](_0x4e5589+_0xbf8761(0x209)+_0x53702d[_0xbf8761(0x1fb)]+_0x32404f),_0x53702d['stableVersion']&&_0x53702d[_0xbf8761(0x1f2)]!==_0x53702d[_0xbf8761(0x1fb)]&&console[_0xbf8761(0x1ed)](_0x4e5589+_0xbf8761(0x205)+_0x53702d[_0xbf8761(0x1f2)]+_0x32404f),_0x53702d[_0xbf8761(0x20f)]&&console['log'](_0x4e5589+_0xbf8761(0x1f7)+_0x53702d[_0xbf8761(0x20f)]+_0x32404f),console[_0xbf8761(0x1ed)](_0x4e5589+'\x20\x20\x20Upgrade\x20command:\x20'+_0x5b7003+_0x32404f)):(console[_0xbf8761(0x1ed)](''+_0x270e69+_0x292fc9+_0xbf8761(0x1f4)+_0x32404f),console[_0xbf8761(0x1ed)](_0x270e69+_0xbf8761(0x1eb)+_0x53702d[_0xbf8761(0x20b)]+_0x32404f),console[_0xbf8761(0x1ed)](_0x270e69+_0xbf8761(0x1ee)+_0x53702d[_0xbf8761(0x1f2)]+_0x32404f),_0x53702d[_0xbf8761(0x1f3)]&&console[_0xbf8761(0x1ed)](_0x270e69+'\x20\x20\x20'+_0x53702d['upgradeMessage']+_0x32404f),console[_0xbf8761(0x1ed)](_0x270e69+_0xbf8761(0x20e)+_0x5b7003+_0x32404f)),console[_0xbf8761(0x1ed)]();}export function assertCliVersionSupported(_0x2671fe){const _0x3e2832=a182_0x3f0a;if(!_0x2671fe[_0x3e2832(0x1fc)])return;const _0x254766=[_0x2671fe[_0x3e2832(0x20f)],_0x3e2832(0x208)+_0x2671fe[_0x3e2832(0x20b)],_0x2671fe[_0x3e2832(0x1fb)]?'Minimum\x20required:\x20'+_0x2671fe['minimumVersion']:null,'Upgrade\x20command:\x20'+getCliUpgradeCommand(_0x2671fe)][_0x3e2832(0x1fa)](Boolean)[_0x3e2832(0x1f8)]('\x0a');throw CliErrors['validation'](_0x3e2832(0x1ec),_0x254766);}
1
+ (function(_0x276074,_0x154a98){const _0x3a441a=a182_0x114e,_0x56491c=_0x276074();while(!![]){try{const _0x98ef1f=parseInt(_0x3a441a(0x1a9))/0x1*(-parseInt(_0x3a441a(0x1d1))/0x2)+parseInt(_0x3a441a(0x1c0))/0x3+-parseInt(_0x3a441a(0x1af))/0x4*(-parseInt(_0x3a441a(0x1bd))/0x5)+parseInt(_0x3a441a(0x1c9))/0x6*(-parseInt(_0x3a441a(0x1c2))/0x7)+-parseInt(_0x3a441a(0x1c1))/0x8*(parseInt(_0x3a441a(0x1c4))/0x9)+parseInt(_0x3a441a(0x1b4))/0xa+parseInt(_0x3a441a(0x1b0))/0xb;if(_0x98ef1f===_0x154a98)break;else _0x56491c['push'](_0x56491c['shift']());}catch(_0x276803){_0x56491c['push'](_0x56491c['shift']());}}}(a182_0x286d,0xd12be));import{readFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';import a182_0x4e604a from'semver';import{getCliVersionPolicy}from'../utils/cli-version-policy.js';function a182_0x286d(){const _0x3542e7=['minimumVersionMessage','\x1b[31m','4qeINja','parse','\x20\x20\x20','636806WCDlEj','1.0.0','Minimum\x20required:\x20','\x20\x20\x20Current\x20CLI\x20version:\x20','\x1b[0m','\x20\x20\x20Minimum\x20required:\x20','16mmqByE','9966605CBeyhP','log','join','stableVersion','13414760nlHQhj','\x20\x20\x20Upgrade\x20command:\x20','\x1b[33m','upgradeMessage','↪\x20Critical\x20CLI\x20upgrade\x20required','npm\x20install\x20-g\x20','belowMinimum','\x20\x20\x20Recommended\x20stable:\x20','↪\x20New\x20version\x20available','340980oEDCFq','package.json','minimumVersion','3901644AfwUIM','835912oqGzUT','6713434oZMFmX','coerce','63HjyJyM','Upgrade\x20command:\x20','currentVersion','Current\x20version:\x20','../..','6trVykR','\x1b[1m','filter','\x20\x20\x20Stable\x20version:\x20','needsUpgrade','Current\x20CLI\x20version\x20is\x20below\x20the\x20minimum\x20supported\x20version.'];a182_0x286d=function(){return _0x3542e7;};return a182_0x286d();}import{NPM_PACKAGE_NAME}from'../constant/cli.js';import{CliErrors}from'../errors.js';export function getCliUpgradeCommand(_0x1d5ad4){const _0x4516ad=a182_0x114e,_0x5abada=_0x1d5ad4['stableVersion']||'latest';return _0x4516ad(0x1b9)+NPM_PACKAGE_NAME+'@'+_0x5abada;}function getCurrentCliVersion(){const _0x2f9651=a182_0x114e;try{const _0x4542f5=fileURLToPath(import.meta.url),_0x1252ce=resolve(dirname(_0x4542f5),_0x2f9651(0x1c8)),_0x19d086=resolve(_0x1252ce,_0x2f9651(0x1be)),_0x3e2a87=JSON[_0x2f9651(0x1a7)](readFileSync(_0x19d086,'utf-8'));return _0x3e2a87['version']||_0x2f9651(0x1aa);}catch{return _0x2f9651(0x1aa);}}function a182_0x114e(_0x1fba2a,_0x103f91){_0x1fba2a=_0x1fba2a-0x1a7;const _0x286d17=a182_0x286d();let _0x114e59=_0x286d17[_0x1fba2a];return _0x114e59;}export async function checkCliVersion(){const _0x1a7a84=a182_0x114e,_0x5a6c7b=getCurrentCliVersion(),_0x1e0033=await getCliVersionPolicy(),_0x471791=_0x1e0033?.[_0x1a7a84(0x1b3)]||null,_0x25e967=_0x1e0033?.['minimumVersion']||null;let _0x5c68b9=![],_0x52ddb7=![];const _0xb825c6=a182_0x4e604a[_0x1a7a84(0x1c3)](_0x5a6c7b);if(_0xb825c6&&_0x471791)try{const _0x110186=a182_0x4e604a['coerce'](_0x471791);if(_0x110186)_0x5c68b9=a182_0x4e604a['lt'](_0xb825c6,_0x110186);}catch{}if(_0xb825c6&&_0x25e967)try{const _0x3cf0dd=a182_0x4e604a[_0x1a7a84(0x1c3)](_0x25e967);if(_0x3cf0dd)_0x52ddb7=a182_0x4e604a['lt'](_0xb825c6,_0x3cf0dd);}catch{}return _0x52ddb7&&(_0x5c68b9=!![]),{'currentVersion':_0x5a6c7b,'stableVersion':_0x471791,'minimumVersion':_0x25e967,'needsUpgrade':_0x5c68b9,'belowMinimum':_0x52ddb7,'isPreRelease':![],'upgradeMessage':_0x1e0033?.[_0x1a7a84(0x1b7)],'minimumVersionMessage':_0x1e0033?.[_0x1a7a84(0x1cf)]};}export function printCliUpgradeWarning(_0x3c9c26){const _0x4d4fd2=a182_0x114e;if(!_0x3c9c26[_0x4d4fd2(0x1cd)]&&!_0x3c9c26['belowMinimum'])return;const _0x105624=_0x4d4fd2(0x1d0),_0x18951c=_0x4d4fd2(0x1b6),_0x22c398=_0x4d4fd2(0x1ad),_0x5de5e0=_0x4d4fd2(0x1ca),_0x4066d0=getCliUpgradeCommand(_0x3c9c26);console[_0x4d4fd2(0x1b1)](),_0x3c9c26[_0x4d4fd2(0x1ba)]?(console[_0x4d4fd2(0x1b1)](''+_0x105624+_0x5de5e0+_0x4d4fd2(0x1b8)+_0x22c398),console[_0x4d4fd2(0x1b1)](_0x105624+_0x4d4fd2(0x1ac)+_0x3c9c26[_0x4d4fd2(0x1c6)]+_0x22c398),_0x3c9c26[_0x4d4fd2(0x1bf)]&&console[_0x4d4fd2(0x1b1)](_0x105624+_0x4d4fd2(0x1ae)+_0x3c9c26['minimumVersion']+_0x22c398),_0x3c9c26[_0x4d4fd2(0x1b3)]&&_0x3c9c26[_0x4d4fd2(0x1b3)]!==_0x3c9c26[_0x4d4fd2(0x1bf)]&&console[_0x4d4fd2(0x1b1)](_0x105624+_0x4d4fd2(0x1bb)+_0x3c9c26[_0x4d4fd2(0x1b3)]+_0x22c398),_0x3c9c26[_0x4d4fd2(0x1cf)]&&console['log'](_0x105624+_0x4d4fd2(0x1a8)+_0x3c9c26[_0x4d4fd2(0x1cf)]+_0x22c398),console[_0x4d4fd2(0x1b1)](_0x105624+_0x4d4fd2(0x1b5)+_0x4066d0+_0x22c398)):(console['log'](''+_0x18951c+_0x5de5e0+_0x4d4fd2(0x1bc)+_0x22c398),console[_0x4d4fd2(0x1b1)](_0x18951c+_0x4d4fd2(0x1ac)+_0x3c9c26[_0x4d4fd2(0x1c6)]+_0x22c398),console[_0x4d4fd2(0x1b1)](_0x18951c+_0x4d4fd2(0x1cc)+_0x3c9c26['stableVersion']+_0x22c398),_0x3c9c26[_0x4d4fd2(0x1b7)]&&console['log'](_0x18951c+_0x4d4fd2(0x1a8)+_0x3c9c26[_0x4d4fd2(0x1b7)]+_0x22c398),console[_0x4d4fd2(0x1b1)](_0x18951c+_0x4d4fd2(0x1b5)+_0x4066d0+_0x22c398)),console[_0x4d4fd2(0x1b1)]();}export function assertCliVersionSupported(_0x55d4fa){const _0x4d6641=a182_0x114e;if(!_0x55d4fa[_0x4d6641(0x1ba)])return;const _0x1d4c13=[_0x55d4fa[_0x4d6641(0x1cf)],_0x4d6641(0x1c7)+_0x55d4fa[_0x4d6641(0x1c6)],_0x55d4fa[_0x4d6641(0x1bf)]?_0x4d6641(0x1ab)+_0x55d4fa[_0x4d6641(0x1bf)]:null,_0x4d6641(0x1c5)+getCliUpgradeCommand(_0x55d4fa)][_0x4d6641(0x1cb)](Boolean)[_0x4d6641(0x1b2)]('\x0a');throw CliErrors['validation'](_0x4d6641(0x1ce),_0x1d4c13);}
@@ -1 +1 @@
1
- (function(_0x362748,_0x3ec051){const _0x50b21f=a183_0xb491,_0x32eae7=_0x362748();while(!![]){try{const _0x19f9cb=-parseInt(_0x50b21f(0x1e0))/0x1+parseInt(_0x50b21f(0x1d6))/0x2*(parseInt(_0x50b21f(0x1dc))/0x3)+-parseInt(_0x50b21f(0x1de))/0x4*(-parseInt(_0x50b21f(0x1e6))/0x5)+-parseInt(_0x50b21f(0x1e1))/0x6+parseInt(_0x50b21f(0x1d5))/0x7*(parseInt(_0x50b21f(0x1e5))/0x8)+parseInt(_0x50b21f(0x1d1))/0x9*(parseInt(_0x50b21f(0x1d8))/0xa)+parseInt(_0x50b21f(0x1d9))/0xb*(-parseInt(_0x50b21f(0x1d4))/0xc);if(_0x19f9cb===_0x3ec051)break;else _0x32eae7['push'](_0x32eae7['shift']());}catch(_0x5268b5){_0x32eae7['push'](_0x32eae7['shift']());}}}(a183_0x21ae,0x5f854));import{CLI_VERSION_POLICY_URL}from'../constant/cdn.js';const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8,FETCH_TIMEOUT_MS=0xbb8;function pickString(_0x2561e9){const _0x498da1=a183_0xb491;return typeof _0x2561e9===_0x498da1(0x1e9)&&_0x2561e9[_0x498da1(0x1d3)]()[_0x498da1(0x1ea)]>0x0?_0x2561e9[_0x498da1(0x1d3)]():null;}function normalizeCliVersionPolicy(_0x348d29){const _0x51bd1a=a183_0xb491;if(!_0x348d29||typeof _0x348d29!==_0x51bd1a(0x1e4))return null;const _0x29a166=_0x348d29,_0x19dd7a=_0x29a166['cli']&&typeof _0x29a166['cli']===_0x51bd1a(0x1e4)?_0x29a166[_0x51bd1a(0x1d2)]:_0x29a166,_0x556761=pickString(_0x19dd7a[_0x51bd1a(0x1e2)])||pickString(_0x19dd7a[_0x51bd1a(0x1e7)])||pickString(_0x19dd7a[_0x51bd1a(0x1da)]),_0x5a67b6=pickString(_0x19dd7a[_0x51bd1a(0x1df)])||pickString(_0x19dd7a[_0x51bd1a(0x1dd)]);if(!_0x556761&&!_0x5a67b6)return null;return{'stableVersion':_0x556761,'minimumVersion':_0x5a67b6,'upgradeMessage':pickString(_0x19dd7a[_0x51bd1a(0x1e3)])||undefined,'minimumVersionMessage':pickString(_0x19dd7a[_0x51bd1a(0x1eb)])||undefined};}export async function fetchCliVersionPolicy(){const _0x216f31=a183_0xb491,_0x15cc14=new AbortController(),_0x11a7c2=setTimeout(()=>_0x15cc14[_0x216f31(0x1db)](),FETCH_TIMEOUT_MS);try{const _0x5689ad=await fetch(CLI_VERSION_POLICY_URL,{'headers':{'Accept':'application/json'},'signal':_0x15cc14['signal']});if(!_0x5689ad['ok'])return null;const _0x4348f4=await _0x5689ad[_0x216f31(0x1d7)]();return normalizeCliVersionPolicy(_0x4348f4);}catch{return null;}finally{clearTimeout(_0x11a7c2);}}function a183_0xb491(_0x488041,_0x1ff1b2){_0x488041=_0x488041-0x1d1;const _0x21ae1f=a183_0x21ae();let _0xb491d8=_0x21ae1f[_0x488041];return _0xb491d8;}let cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];export async function getCliVersionPolicy(){const _0x4d3396=a183_0xb491,_0x4168ad=Date[_0x4d3396(0x1e8)]();if(hasCachedPolicy){const _0x4c8621=cachedPolicy?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x4168ad-cacheTime<_0x4c8621)return cachedPolicy;}const _0x5b1c88=await fetchCliVersionPolicy();return cachedPolicy=_0x5b1c88,cacheTime=_0x4168ad,hasCachedPolicy=!![],_0x5b1c88;}export function clearCliVersionPolicyCache(){cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];}function a183_0x21ae(){const _0x46739f=['abort','3lwNKnZ','minVersion','878772dJwTEW','minimumVersion','2581szdKcW','1377654aHApQt','stableVersion','upgradeMessage','object','557528fUSOeY','5euhoyt','latestVersion','now','string','length','minimumVersionMessage','765xllqzb','cli','trim','10927344cpYyhY','56EFmzKo','941956mgsWEt','json','33630HiJBqa','11rWSlhr','recommendedVersion'];a183_0x21ae=function(){return _0x46739f;};return a183_0x21ae();}
1
+ (function(_0x483688,_0x278565){const _0x5a02e0=a183_0x461a,_0xd4460e=_0x483688();while(!![]){try{const _0xfd256a=-parseInt(_0x5a02e0(0xb7))/0x1+-parseInt(_0x5a02e0(0xcb))/0x2+-parseInt(_0x5a02e0(0xbc))/0x3+parseInt(_0x5a02e0(0xc2))/0x4*(-parseInt(_0x5a02e0(0xc7))/0x5)+parseInt(_0x5a02e0(0xc3))/0x6+parseInt(_0x5a02e0(0xc8))/0x7+-parseInt(_0x5a02e0(0xc1))/0x8*(-parseInt(_0x5a02e0(0xcc))/0x9);if(_0xfd256a===_0x278565)break;else _0xd4460e['push'](_0xd4460e['shift']());}catch(_0x431113){_0xd4460e['push'](_0xd4460e['shift']());}}}(a183_0x57a9,0x90e0b));import{CLI_VERSION_POLICY_URL}from'../constant/cdn.js';const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8,FETCH_TIMEOUT_MS=0xbb8;function pickString(_0x3ed030){const _0x39e32b=a183_0x461a;return typeof _0x3ed030===_0x39e32b(0xbd)&&_0x3ed030[_0x39e32b(0xb6)]()[_0x39e32b(0xb4)]>0x0?_0x3ed030['trim']():null;}function normalizeCliVersionPolicy(_0x574ebe){const _0x2331c3=a183_0x461a;if(!_0x574ebe||typeof _0x574ebe!==_0x2331c3(0xc6))return null;const _0x3f6354=_0x574ebe,_0x2b4560=_0x3f6354[_0x2331c3(0xba)]&&typeof _0x3f6354['cli']===_0x2331c3(0xc6)?_0x3f6354[_0x2331c3(0xba)]:_0x3f6354,_0x51247e=pickString(_0x2b4560[_0x2331c3(0xc9)])||pickString(_0x2b4560[_0x2331c3(0xbf)])||pickString(_0x2b4560[_0x2331c3(0xb9)]),_0x371bcc=pickString(_0x2b4560[_0x2331c3(0xc0)])||pickString(_0x2b4560[_0x2331c3(0xb8)]);if(!_0x51247e&&!_0x371bcc)return null;return{'stableVersion':_0x51247e,'minimumVersion':_0x371bcc,'upgradeMessage':pickString(_0x2b4560[_0x2331c3(0xc5)])||undefined,'minimumVersionMessage':pickString(_0x2b4560[_0x2331c3(0xc4)])||undefined};}export async function fetchCliVersionPolicy(){const _0x784f62=a183_0x461a,_0x4f20d7=new AbortController(),_0x57e110=setTimeout(()=>_0x4f20d7[_0x784f62(0xb5)](),FETCH_TIMEOUT_MS);try{const _0x4103cd=await fetch(CLI_VERSION_POLICY_URL,{'headers':{'Accept':_0x784f62(0xca)},'signal':_0x4f20d7[_0x784f62(0xbb)]});if(!_0x4103cd['ok'])return null;const _0x3ff79f=await _0x4103cd['json']();return normalizeCliVersionPolicy(_0x3ff79f);}catch{return null;}finally{clearTimeout(_0x57e110);}}function a183_0x57a9(){const _0xed119f=['now','latestVersion','minimumVersion','11736944gAbGFL','4006808HWnMOQ','1396236xnJglx','minimumVersionMessage','upgradeMessage','object','5OkVKzn','2678109BVkZwR','stableVersion','application/json','765376OZpDau','18jDpgFS','length','abort','trim','676260gWicco','minVersion','recommendedVersion','cli','signal','2686380MjNbGn','string'];a183_0x57a9=function(){return _0xed119f;};return a183_0x57a9();}function a183_0x461a(_0x4222c4,_0x5f5bb5){_0x4222c4=_0x4222c4-0xb4;const _0x57a9d2=a183_0x57a9();let _0x461a84=_0x57a9d2[_0x4222c4];return _0x461a84;}let cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];export async function getCliVersionPolicy(){const _0xec87db=a183_0x461a,_0x1cbcb7=Date[_0xec87db(0xbe)]();if(hasCachedPolicy){const _0x49fe0b=cachedPolicy?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x1cbcb7-cacheTime<_0x49fe0b)return cachedPolicy;}const _0x4f232b=await fetchCliVersionPolicy();return cachedPolicy=_0x4f232b,cacheTime=_0x1cbcb7,hasCachedPolicy=!![],_0x4f232b;}export function clearCliVersionPolicyCache(){cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];}
@@ -1 +1 @@
1
- const a184_0x1a5d38=a184_0x4172;(function(_0x222586,_0x2f2f92){const _0x1dee6d=a184_0x4172,_0x12d8e1=_0x222586();while(!![]){try{const _0x2f8f4a=parseInt(_0x1dee6d(0x138))/0x1+parseInt(_0x1dee6d(0x139))/0x2*(parseInt(_0x1dee6d(0x130))/0x3)+-parseInt(_0x1dee6d(0x13a))/0x4+-parseInt(_0x1dee6d(0x133))/0x5+parseInt(_0x1dee6d(0x135))/0x6+parseInt(_0x1dee6d(0x136))/0x7*(-parseInt(_0x1dee6d(0x132))/0x8)+parseInt(_0x1dee6d(0x131))/0x9;if(_0x2f8f4a===_0x2f2f92)break;else _0x12d8e1['push'](_0x12d8e1['shift']());}catch(_0x1afc61){_0x12d8e1['push'](_0x12d8e1['shift']());}}}(a184_0x3270,0x94e7a));function a184_0x3270(){const _0xc82ad8=['4730580crKzIx','186aVXVYb','1920096IfPVBG','808EFtQes','3586885bfmawy','env','5853240HrnSIE','1337BuHqde','project','1026871VAYkpi','10112ITReFD'];a184_0x3270=function(){return _0xc82ad8;};return a184_0x3270();}import{initEnv}from'../constant/env.js';import{readRawConfig,getConfigAppCode as a184_0x191015,getMultiAppConfigs as a184_0x20ad07,getTemplateBaseUrl as a184_0x2c92b8}from'../context.js';export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';function a184_0x4172(_0x137742,_0x54cc9d){_0x137742=_0x137742-0x130;const _0x327040=a184_0x3270();let _0x4172fa=_0x327040[_0x137742];return _0x4172fa;}export{isInProject}from'../context.js';export function readConfig(_0x4b4dc2){const _0x4102b3=a184_0x4172,_0x18c3d2=readRawConfig(_0x4b4dc2);return _0x18c3d2[_0x4102b3(0x134)]&&typeof _0x18c3d2[_0x4102b3(0x134)]==='string'&&initEnv(_0x18c3d2[_0x4102b3(0x134)]),_0x18c3d2;}export function getConfigAppCode(){return a184_0x191015();}export function getMultiAppConfigs(_0x5eca3f=a184_0x1a5d38(0x137)){return a184_0x20ad07(_0x5eca3f);}export function getTemplateBaseUrl(){return a184_0x2c92b8();}
1
+ const a184_0x3057d6=a184_0x4b24;(function(_0x4547b4,_0x3b4c70){const _0x2eed18=a184_0x4b24,_0x61e4a4=_0x4547b4();while(!![]){try{const _0xa105b=parseInt(_0x2eed18(0x1c1))/0x1*(parseInt(_0x2eed18(0x1ba))/0x2)+parseInt(_0x2eed18(0x1b7))/0x3*(parseInt(_0x2eed18(0x1c2))/0x4)+parseInt(_0x2eed18(0x1bb))/0x5+parseInt(_0x2eed18(0x1bf))/0x6+-parseInt(_0x2eed18(0x1b8))/0x7*(parseInt(_0x2eed18(0x1bd))/0x8)+parseInt(_0x2eed18(0x1b6))/0x9+-parseInt(_0x2eed18(0x1b9))/0xa;if(_0xa105b===_0x3b4c70)break;else _0x61e4a4['push'](_0x61e4a4['shift']());}catch(_0x113854){_0x61e4a4['push'](_0x61e4a4['shift']());}}}(a184_0x26af,0x92efb));import{initEnv}from'../constant/env.js';function a184_0x4b24(_0x5140ee,_0x3c3017){_0x5140ee=_0x5140ee-0x1b6;const _0x26afba=a184_0x26af();let _0x4b241b=_0x26afba[_0x5140ee];return _0x4b241b;}import{readRawConfig,getConfigAppCode as a184_0x2187a8,getMultiAppConfigs as a184_0x4d56d8,getTemplateBaseUrl as a184_0x997425}from'../context.js';export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';export{isInProject}from'../context.js';function a184_0x26af(){const _0x4fb73d=['7VLtzJY','28655400jKYibu','1812310FQUfiI','3292160WouCdL','string','481976Oqrsib','project','2124852rhZDXJ','env','1Imhbvp','1432gmOjjb','10359243bXOaVi','3837GamxNB'];a184_0x26af=function(){return _0x4fb73d;};return a184_0x26af();}export function readConfig(_0x5f4ff4){const _0x239304=a184_0x4b24,_0x1d9edc=readRawConfig(_0x5f4ff4);return _0x1d9edc[_0x239304(0x1c0)]&&typeof _0x1d9edc[_0x239304(0x1c0)]===_0x239304(0x1bc)&&initEnv(_0x1d9edc[_0x239304(0x1c0)]),_0x1d9edc;}export function getConfigAppCode(){return a184_0x2187a8();}export function getMultiAppConfigs(_0x5d7865=a184_0x3057d6(0x1be)){return a184_0x4d56d8(_0x5d7865);}export function getTemplateBaseUrl(){return a184_0x997425();}
@@ -1 +1 @@
1
- (function(_0x496ef8,_0x42fee2){const _0x1844af=a185_0x3ecb,_0x3c0744=_0x496ef8();while(!![]){try{const _0xa30457=-parseInt(_0x1844af(0x193))/0x1+parseInt(_0x1844af(0x192))/0x2*(-parseInt(_0x1844af(0x18e))/0x3)+parseInt(_0x1844af(0x182))/0x4*(-parseInt(_0x1844af(0x191))/0x5)+parseInt(_0x1844af(0x18a))/0x6*(-parseInt(_0x1844af(0x189))/0x7)+parseInt(_0x1844af(0x18c))/0x8+-parseInt(_0x1844af(0x187))/0x9*(parseInt(_0x1844af(0x184))/0xa)+parseInt(_0x1844af(0x183))/0xb*(parseInt(_0x1844af(0x18b))/0xc);if(_0xa30457===_0x42fee2)break;else _0x3c0744['push'](_0x3c0744['shift']());}catch(_0x325b78){_0x3c0744['push'](_0x3c0744['shift']());}}}(a185_0x5548,0x94c50));import a185_0x2d7a30 from'node:path';import a185_0x55c241 from'node:fs';export async function copyDirectory(_0x4273a9,_0x110487){const _0xf291b2=a185_0x3ecb;try{const _0x2bfc63=a185_0x55c241['readdirSync'](_0x4273a9,{'withFileTypes':!![]});a185_0x55c241['mkdirSync'](_0x110487,{'recursive':!![]});for(const _0x44e961 of _0x2bfc63){const _0x9211a6=a185_0x2d7a30[_0xf291b2(0x18d)](_0x4273a9,_0x44e961['name']),_0x32e4dd=a185_0x2d7a30[_0xf291b2(0x18d)](_0x110487,_0x44e961[_0xf291b2(0x188)]);_0x44e961[_0xf291b2(0x185)]()?await copyDirectory(_0x9211a6,_0x32e4dd):a185_0x55c241[_0xf291b2(0x190)](_0x9211a6,_0x32e4dd);}}catch(_0x2c0b53){console[_0xf291b2(0x186)](_0xf291b2(0x18f),_0x2c0b53);}}function a185_0x3ecb(_0x4b66b1,_0xaff460){_0x4b66b1=_0x4b66b1-0x182;const _0x5548d2=a185_0x5548();let _0x3ecb4d=_0x5548d2[_0x4b66b1];return _0x3ecb4d;}function a185_0x5548(){const _0x30c55c=['copyFileSync','427755gQvmFn','27818ltBwev','127041omigTA','56hBWEtK','11kjAPOL','10oSuuZM','isDirectory','error','493767QHkwat','name','14woBABt','1607556MOtQbx','32331276HWtPHN','1426256eCtUdK','join','75sCcqov','复制目录时出错:'];a185_0x5548=function(){return _0x30c55c;};return a185_0x5548();}
1
+ function a185_0x9965(){const _0x571767=['20UNaIXm','20030810ItjceJ','446201FrTgpM','10274496KTuWfc','491356QGvyWj','isDirectory','1034208LekBLh','9tzSynZ','name','384242DNmbyq','复制目录时出错:','readdirSync','1LkadRs','368826fgGkdC','join'];a185_0x9965=function(){return _0x571767;};return a185_0x9965();}(function(_0xef9f52,_0x187a20){const _0x134e61=a185_0x4029,_0x172c37=_0xef9f52();while(!![]){try{const _0x365b90=-parseInt(_0x134e61(0xab))/0x1*(parseInt(_0x134e61(0xa8))/0x2)+-parseInt(_0x134e61(0xa5))/0x3+parseInt(_0x134e61(0xa3))/0x4*(parseInt(_0x134e61(0x9f))/0x5)+-parseInt(_0x134e61(0x9d))/0x6+parseInt(_0x134e61(0xa1))/0x7+-parseInt(_0x134e61(0xa2))/0x8+parseInt(_0x134e61(0xa6))/0x9*(parseInt(_0x134e61(0xa0))/0xa);if(_0x365b90===_0x187a20)break;else _0x172c37['push'](_0x172c37['shift']());}catch(_0x59bec9){_0x172c37['push'](_0x172c37['shift']());}}}(a185_0x9965,0xa4ed4));import a185_0x2ead9f from'node:path';function a185_0x4029(_0x2c1901,_0x3dfdf3){_0x2c1901=_0x2c1901-0x9d;const _0x99657b=a185_0x9965();let _0x40294c=_0x99657b[_0x2c1901];return _0x40294c;}import a185_0x240353 from'node:fs';export async function copyDirectory(_0x571fd6,_0x29fb8c){const _0x364dd8=a185_0x4029;try{const _0x499b51=a185_0x240353[_0x364dd8(0xaa)](_0x571fd6,{'withFileTypes':!![]});a185_0x240353['mkdirSync'](_0x29fb8c,{'recursive':!![]});for(const _0x24559b of _0x499b51){const _0x4d3d3e=a185_0x2ead9f[_0x364dd8(0x9e)](_0x571fd6,_0x24559b[_0x364dd8(0xa7)]),_0x5ba628=a185_0x2ead9f[_0x364dd8(0x9e)](_0x29fb8c,_0x24559b[_0x364dd8(0xa7)]);_0x24559b[_0x364dd8(0xa4)]()?await copyDirectory(_0x4d3d3e,_0x5ba628):a185_0x240353['copyFileSync'](_0x4d3d3e,_0x5ba628);}}catch(_0x3fbcea){console['error'](_0x364dd8(0xa9),_0x3fbcea);}}
@@ -1 +1 @@
1
- function a186_0x47d2(_0x142376,_0x10e5d1){_0x142376=_0x142376-0xe9;const _0x25b1cf=a186_0x25b1();let _0x47d282=_0x25b1cf[_0x142376];return _0x47d282;}(function(_0x40ffca,_0x2bd3f7){const _0x658b15=a186_0x47d2,_0x11d057=_0x40ffca();while(!![]){try{const _0x45c483=parseInt(_0x658b15(0xe9))/0x1+-parseInt(_0x658b15(0xf0))/0x2+parseInt(_0x658b15(0xeb))/0x3+parseInt(_0x658b15(0xf3))/0x4*(parseInt(_0x658b15(0xed))/0x5)+parseInt(_0x658b15(0xf1))/0x6*(parseInt(_0x658b15(0xee))/0x7)+-parseInt(_0x658b15(0xef))/0x8*(-parseInt(_0x658b15(0xf7))/0x9)+-parseInt(_0x658b15(0xf5))/0xa;if(_0x45c483===_0x2bd3f7)break;else _0x11d057['push'](_0x11d057['shift']());}catch(_0x48af22){_0x11d057['push'](_0x11d057['shift']());}}}(a186_0x25b1,0xe4d21));function a186_0x25b1(){const _0x58e388=['string','410dOFGgC','7iSnlLA','1584KkaAOQ','2509880XwBNOE','5356866coLpfx','trim','70376JkDMav','number','14599120WzolEb','isFinite','40293hHPSes','35369hdFtDe','object','1184301TbUMNc'];a186_0x25b1=function(){return _0x58e388;};return a186_0x25b1();}function toFiniteNumber(_0x221e5c){const _0x3041c7=a186_0x47d2;if(typeof _0x221e5c===_0x3041c7(0xf4)&&Number[_0x3041c7(0xf6)](_0x221e5c))return _0x221e5c;if(typeof _0x221e5c===_0x3041c7(0xec)){const _0x1e5ba6=_0x221e5c[_0x3041c7(0xf2)]();if(!_0x1e5ba6)return undefined;const _0x22e9cf=Number(_0x1e5ba6);if(Number[_0x3041c7(0xf6)](_0x22e9cf))return _0x22e9cf;}return undefined;}export function normalizeEntityWithIdResponse(_0x2b1595){const _0x38e43f=a186_0x47d2,_0x2a9efd=toFiniteNumber(_0x2b1595);if(_0x2a9efd!==undefined)return{'id':_0x2a9efd,'entity':{'id':_0x2a9efd}};if(!_0x2b1595||typeof _0x2b1595!==_0x38e43f(0xea))return{'id':undefined,'entity':{}};const _0x485c22={..._0x2b1595},_0x339d9f=toFiniteNumber(_0x485c22['id']);return _0x339d9f!==undefined&&(_0x485c22['id']=_0x339d9f),{'id':_0x339d9f,'entity':_0x485c22};}
1
+ function a186_0xe7fb(){const _0xe04765=['12021300LGYFey','172109MtGYMO','142MxqPjL','420411OSdDjy','1751305qrQKvm','288387YOBXec','6xjCZQX','4cyTLju','40CGPfpQ','string','70LNjRje','1063xIAirC','trim','38079jnygzi','isFinite'];a186_0xe7fb=function(){return _0xe04765;};return a186_0xe7fb();}(function(_0x2c9ccd,_0x5b8856){const _0xe3311a=a186_0x49fc,_0x2546cf=_0x2c9ccd();while(!![]){try{const _0x3b2694=parseInt(_0xe3311a(0xb1))/0x1*(-parseInt(_0xe3311a(0xb7))/0x2)+-parseInt(_0xe3311a(0xa9))/0x3+-parseInt(_0xe3311a(0xad))/0x4*(parseInt(_0xe3311a(0xaa))/0x5)+parseInt(_0xe3311a(0xac))/0x6*(-parseInt(_0xe3311a(0xb6))/0x7)+parseInt(_0xe3311a(0xae))/0x8*(parseInt(_0xe3311a(0xb3))/0x9)+-parseInt(_0xe3311a(0xb0))/0xa*(parseInt(_0xe3311a(0xab))/0xb)+parseInt(_0xe3311a(0xb5))/0xc;if(_0x3b2694===_0x5b8856)break;else _0x2546cf['push'](_0x2546cf['shift']());}catch(_0x2d5c08){_0x2546cf['push'](_0x2546cf['shift']());}}}(a186_0xe7fb,0x3cc79));function toFiniteNumber(_0x4db6fc){const _0xd8fcb7=a186_0x49fc;if(typeof _0x4db6fc==='number'&&Number[_0xd8fcb7(0xb4)](_0x4db6fc))return _0x4db6fc;if(typeof _0x4db6fc===_0xd8fcb7(0xaf)){const _0x2c3cc6=_0x4db6fc[_0xd8fcb7(0xb2)]();if(!_0x2c3cc6)return undefined;const _0x2ca075=Number(_0x2c3cc6);if(Number[_0xd8fcb7(0xb4)](_0x2ca075))return _0x2ca075;}return undefined;}function a186_0x49fc(_0x40e217,_0x175aac){_0x40e217=_0x40e217-0xa9;const _0xe7fbca=a186_0xe7fb();let _0x49fce0=_0xe7fbca[_0x40e217];return _0x49fce0;}export function normalizeEntityWithIdResponse(_0x154d76){const _0x1486fc=toFiniteNumber(_0x154d76);if(_0x1486fc!==undefined)return{'id':_0x1486fc,'entity':{'id':_0x1486fc}};if(!_0x154d76||typeof _0x154d76!=='object')return{'id':undefined,'entity':{}};const _0x55d675={..._0x154d76},_0xac4906=toFiniteNumber(_0x55d675['id']);return _0xac4906!==undefined&&(_0x55d675['id']=_0xac4906),{'id':_0xac4906,'entity':_0x55d675};}
@@ -1 +1 @@
1
- (function(_0x2564ee,_0x59e5d0){const _0x234e0c=a187_0x4595,_0x182dcc=_0x2564ee();while(!![]){try{const _0x3d7d31=-parseInt(_0x234e0c(0xb3))/0x1*(-parseInt(_0x234e0c(0xb2))/0x2)+parseInt(_0x234e0c(0xb5))/0x3*(-parseInt(_0x234e0c(0xb1))/0x4)+-parseInt(_0x234e0c(0xb0))/0x5*(-parseInt(_0x234e0c(0xb6))/0x6)+-parseInt(_0x234e0c(0xaf))/0x7+parseInt(_0x234e0c(0xb4))/0x8+parseInt(_0x234e0c(0xad))/0x9+-parseInt(_0x234e0c(0xae))/0xa;if(_0x3d7d31===_0x59e5d0)break;else _0x182dcc['push'](_0x182dcc['shift']());}catch(_0x548af2){_0x182dcc['push'](_0x182dcc['shift']());}}}(a187_0x4978,0xeae9e));function a187_0x4978(){const _0x3d8dc2=['285188flhChu','28606guPwiI','7XJyffJ','14945048lLkPKu','57cogePn','91734GJtkQR','16891821OgTZCV','3407340ixtiBL','10025134SlyqYD','80XnGhxO'];a187_0x4978=function(){return _0x3d8dc2;};return a187_0x4978();}import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';import{join}from'node:path';export async function copyDir(_0x1d4ff2,_0x577d85){const _0x19e058=statSync(_0x1d4ff2);if(_0x19e058['isDirectory']()){!existsSync(_0x577d85)&&mkdirSync(_0x577d85,{'recursive':!![]});const _0x262420=readdirSync(_0x1d4ff2);for(const _0x11a204 of _0x262420){await copyDir(join(_0x1d4ff2,_0x11a204),join(_0x577d85,_0x11a204));}}else copyFileSync(_0x1d4ff2,_0x577d85);}function a187_0x4595(_0x229432,_0xbc93c7){_0x229432=_0x229432-0xad;const _0x49783f=a187_0x4978();let _0x45950b=_0x49783f[_0x229432];return _0x45950b;}export function ensureDir(_0x4ba946){!existsSync(_0x4ba946)&&mkdirSync(_0x4ba946,{'recursive':!![]});}export function pathExists(_0xfe655c){return existsSync(_0xfe655c);}
1
+ (function(_0x9d2dc1,_0x41bde0){const _0x51aad9=a187_0x1574,_0x1b4b59=_0x9d2dc1();while(!![]){try{const _0x1976a0=parseInt(_0x51aad9(0xd9))/0x1*(parseInt(_0x51aad9(0xdb))/0x2)+-parseInt(_0x51aad9(0xdf))/0x3+parseInt(_0x51aad9(0xd4))/0x4*(parseInt(_0x51aad9(0xe0))/0x5)+parseInt(_0x51aad9(0xdc))/0x6*(parseInt(_0x51aad9(0xdd))/0x7)+parseInt(_0x51aad9(0xda))/0x8*(-parseInt(_0x51aad9(0xd5))/0x9)+-parseInt(_0x51aad9(0xd8))/0xa*(-parseInt(_0x51aad9(0xd7))/0xb)+parseInt(_0x51aad9(0xde))/0xc*(-parseInt(_0x51aad9(0xd6))/0xd);if(_0x1976a0===_0x41bde0)break;else _0x1b4b59['push'](_0x1b4b59['shift']());}catch(_0x3a25f9){_0x1b4b59['push'](_0x1b4b59['shift']());}}}(a187_0x9c8e,0x2bfdb));import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';import{join}from'node:path';function a187_0x9c8e(){const _0x2ee055=['7JzdkIM','96ZoQnXN','303084WuOSjl','69550XhFhhn','isDirectory','20KGVpBr','64026yEnMet','48971ZrjuwJ','38819pCpWeG','270bHhGIj','8065sdNWVx','344QBqQJt','38ERJrFX','1795110nOYjLM'];a187_0x9c8e=function(){return _0x2ee055;};return a187_0x9c8e();}export async function copyDir(_0x28270c,_0x53ff6a){const _0x53b526=a187_0x1574,_0x5697c4=statSync(_0x28270c);if(_0x5697c4[_0x53b526(0xe1)]()){!existsSync(_0x53ff6a)&&mkdirSync(_0x53ff6a,{'recursive':!![]});const _0x21a916=readdirSync(_0x28270c);for(const _0x13e73e of _0x21a916){await copyDir(join(_0x28270c,_0x13e73e),join(_0x53ff6a,_0x13e73e));}}else copyFileSync(_0x28270c,_0x53ff6a);}function a187_0x1574(_0x596d41,_0x24ffe0){_0x596d41=_0x596d41-0xd4;const _0x9c8e29=a187_0x9c8e();let _0x157474=_0x9c8e29[_0x596d41];return _0x157474;}export function ensureDir(_0xd0e8b){!existsSync(_0xd0e8b)&&mkdirSync(_0xd0e8b,{'recursive':!![]});}export function pathExists(_0x2d62e3){return existsSync(_0x2d62e3);}
@@ -1 +1 @@
1
- const a188_0x56eb7b=a188_0x2ef7;(function(_0x25e1a9,_0x32ed49){const _0x11629f=a188_0x2ef7,_0x3b0c04=_0x25e1a9();while(!![]){try{const _0x4805d7=-parseInt(_0x11629f(0x94))/0x1*(-parseInt(_0x11629f(0xa1))/0x2)+-parseInt(_0x11629f(0x95))/0x3*(-parseInt(_0x11629f(0x99))/0x4)+parseInt(_0x11629f(0xac))/0x5+-parseInt(_0x11629f(0xa2))/0x6+-parseInt(_0x11629f(0x89))/0x7+-parseInt(_0x11629f(0xa8))/0x8*(parseInt(_0x11629f(0x9c))/0x9)+-parseInt(_0x11629f(0x93))/0xa*(-parseInt(_0x11629f(0x88))/0xb);if(_0x4805d7===_0x32ed49)break;else _0x3b0c04['push'](_0x3b0c04['shift']());}catch(_0x1129a1){_0x3b0c04['push'](_0x3b0c04['shift']());}}}(a188_0x44f5,0x25b07));import{mkdirSync,writeFileSync}from'node:fs';import{dirname,join}from'node:path';function a188_0x44f5(){const _0x57ee25=['57NYKXYs','.md','utf-8','object','30556fAzERt','keys','join','10971DUjrxG','length','extendContent','content','\x0a\x0a>更新时间:','60962AEudLb','1427502RlNgvS','lastUpdated','CDN\x20数据中缺少\x20skillTemplate','application/json','statusText','skillTemplate','1144zpPMpV','title','entries','map','996775HlXogy','251691iHfNQa','525679hMRCrr','trimEnd','.lovrabet','push','replace','json','cache','path','guides','.lovrabet/skill/guides','10eSTZcE','9Fgplls'];a188_0x44f5=function(){return _0x57ee25;};return a188_0x44f5();}import{homedir}from'node:os';function a188_0x2ef7(_0x157828,_0x51b040){_0x157828=_0x157828-0x88;const _0x44f5a4=a188_0x44f5();let _0x2ef7b=_0x44f5a4[_0x157828];return _0x2ef7b;}import{getTemplateBaseUrl}from'../utils/config.js';function getGuidesCdnUrl(){const _0x105b0e=getTemplateBaseUrl();return _0x105b0e+'/skills/guides.json';}const CACHE_DIR=join(homedir(),a188_0x56eb7b(0x8b),a188_0x56eb7b(0x8f));export async function fetchGuidesFromCDN(){const _0x3fa96b=a188_0x56eb7b,_0x35f79=getGuidesCdnUrl(),_0xaf0d54=await fetch(_0x35f79,{'headers':{'Accept':_0x3fa96b(0xa5)}});if(!_0xaf0d54['ok'])throw new Error('CDN\x20请求失败:\x20'+_0xaf0d54['status']+'\x20'+_0xaf0d54[_0x3fa96b(0xa6)]);const _0x26cb14=await _0xaf0d54[_0x3fa96b(0x8e)]();if(!_0x26cb14[_0x3fa96b(0x91)]||typeof _0x26cb14[_0x3fa96b(0x91)]!==_0x3fa96b(0x98))throw new Error('CDN\x20返回数据格式错误');return _0x26cb14;}export function writeGuidesToProject(_0x385ee2,_0x1e092f,_0x5ad113=a188_0x56eb7b(0x92),_0xe427e1){const _0xf89125=a188_0x56eb7b,_0x4cc987=join(_0x1e092f,_0x5ad113);mkdirSync(_0x4cc987,{'recursive':!![]});for(const [_0x41d521,_0xf796af]of Object['entries'](_0x385ee2['guides'])){let _0x4a2a32=_0xf796af[_0xf89125(0x9f)];_0xf796af['lastUpdated']&&(_0x4a2a32=appendUpdateTime(_0x4a2a32,_0xf796af['lastUpdated'])),writeFileSync(join(_0x4cc987,_0x41d521+_0xf89125(0x96)),_0x4a2a32,_0xf89125(0x97));}}export function appendUpdateTime(_0x26dc59,_0x168f91){const _0x38bde9=a188_0x56eb7b;return _0x26dc59=_0x26dc59[_0x38bde9(0x8d)](/\n*>更新时间:.*$/m,''),_0x26dc59[_0x38bde9(0x8a)]()+(_0x38bde9(0xa0)+_0x168f91);}export function getSkillTemplate(_0x307ad0){return _0x307ad0['skillTemplate']?.['content']||'';}export function appendExtendContents(_0x2322c6,_0x479b27,_0x5c694b){const _0x4c77f9=a188_0x56eb7b,_0x20da08=[];for(const [,_0x361501]of Object[_0x4c77f9(0xaa)](_0x479b27[_0x4c77f9(0x91)])){_0x361501[_0x4c77f9(0x9e)]&&_0x20da08[_0x4c77f9(0x8c)](_0x361501[_0x4c77f9(0x9e)][_0x4c77f9(0x8a)]());}if(_0x20da08[_0x4c77f9(0x9d)]===0x0)return _0x2322c6;return _0x2322c6['trimEnd']()+'\x0a\x0a'+_0x20da08[_0x4c77f9(0x9b)]('\x0a\x0a')+'\x0a';}export function writeSkillFile(_0x1c65ad,_0x32ee2c,_0x411655){const _0x1a8986=a188_0x56eb7b,_0x4af0b5=getSkillTemplate(_0x1c65ad);if(!_0x4af0b5)throw new Error(_0x1a8986(0xa4));const _0x1f04b0=dirname(_0x32ee2c);mkdirSync(_0x1f04b0,{'recursive':!![]});let _0x2481e5=_0x4af0b5['replace'](/\{\{IDE_NAME\}\}/g,_0x411655);_0x2481e5=appendExtendContents(_0x2481e5,_0x1c65ad),_0x1c65ad[_0x1a8986(0xa7)]['lastUpdated']&&(_0x2481e5=appendUpdateTime(_0x2481e5,_0x1c65ad['skillTemplate'][_0x1a8986(0xa3)])),writeFileSync(_0x32ee2c,_0x2481e5,_0x1a8986(0x97));}export async function installGuides(_0x46c5cd){const _0x56333a=a188_0x56eb7b,_0x7690f7=await fetchGuidesFromCDN();return writeGuidesToProject(_0x7690f7,_0x46c5cd),Object[_0x56333a(0x9a)](_0x7690f7['guides'])[_0x56333a(0x9d)];}export function getGuidesSummary(_0x423ded){const _0x525f36=a188_0x56eb7b;return Object[_0x525f36(0xaa)](_0x423ded[_0x525f36(0x91)])[_0x525f36(0xab)](([_0x51c907,_0x245e1c])=>({'key':_0x51c907,'title':_0x245e1c[_0x525f36(0xa9)],'path':_0x245e1c[_0x525f36(0x90)]}));}
1
+ function a188_0x5e63(_0x12e112,_0x4748ed){_0x12e112=_0x12e112-0x1d3;const _0x47bf8a=a188_0x47bf();let _0x5e6367=_0x47bf8a[_0x12e112];return _0x5e6367;}const a188_0x13d14b=a188_0x5e63;(function(_0x1f4402,_0x33394e){const _0x187540=a188_0x5e63,_0x2763ee=_0x1f4402();while(!![]){try{const _0x11f74b=parseInt(_0x187540(0x1d6))/0x1+-parseInt(_0x187540(0x1e3))/0x2+-parseInt(_0x187540(0x1de))/0x3+-parseInt(_0x187540(0x1e6))/0x4+-parseInt(_0x187540(0x1d9))/0x5+parseInt(_0x187540(0x1e4))/0x6+parseInt(_0x187540(0x1e8))/0x7*(parseInt(_0x187540(0x1eb))/0x8);if(_0x11f74b===_0x33394e)break;else _0x2763ee['push'](_0x2763ee['shift']());}catch(_0x5ddbb9){_0x2763ee['push'](_0x2763ee['shift']());}}}(a188_0x47bf,0x18859));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 _0x178d35=a188_0x5e63,_0x54c968=getTemplateBaseUrl();return _0x54c968+_0x178d35(0x1db);}const CACHE_DIR=join(homedir(),a188_0x13d14b(0x1e1),'cache');export async function fetchGuidesFromCDN(){const _0x3dd58b=a188_0x13d14b,_0x3bfcc2=getGuidesCdnUrl(),_0x47de32=await fetch(_0x3bfcc2,{'headers':{'Accept':_0x3dd58b(0x1dc)}});if(!_0x47de32['ok'])throw new Error(_0x3dd58b(0x1e2)+_0x47de32[_0x3dd58b(0x1ea)]+'\x20'+_0x47de32['statusText']);const _0x81d865=await _0x47de32['json']();if(!_0x81d865[_0x3dd58b(0x1ec)]||typeof _0x81d865[_0x3dd58b(0x1ec)]!=='object')throw new Error(_0x3dd58b(0x1d5));return _0x81d865;}export function writeGuidesToProject(_0xe4efd0,_0x27d15e,_0x3234ad=a188_0x13d14b(0x1e0),_0x5415df){const _0x1b6d7c=a188_0x13d14b,_0x8f42ce=join(_0x27d15e,_0x3234ad);mkdirSync(_0x8f42ce,{'recursive':!![]});for(const [_0x971773,_0x41861f]of Object['entries'](_0xe4efd0['guides'])){let _0x4b1a31=_0x41861f[_0x1b6d7c(0x1dd)];_0x41861f[_0x1b6d7c(0x1df)]&&(_0x4b1a31=appendUpdateTime(_0x4b1a31,_0x41861f[_0x1b6d7c(0x1df)])),writeFileSync(join(_0x8f42ce,_0x971773+_0x1b6d7c(0x1e9)),_0x4b1a31,_0x1b6d7c(0x1da));}}export function appendUpdateTime(_0x128a2a,_0x444f17){const _0x248cdc=a188_0x13d14b;return _0x128a2a=_0x128a2a[_0x248cdc(0x1ef)](/\n*>更新时间:.*$/m,''),_0x128a2a[_0x248cdc(0x1d4)]()+(_0x248cdc(0x1e7)+_0x444f17);}export function getSkillTemplate(_0x451d3d){const _0x501cf5=a188_0x13d14b;return _0x451d3d[_0x501cf5(0x1e5)]?.[_0x501cf5(0x1dd)]||'';}export function appendExtendContents(_0x81c7f1,_0x7c58a,_0xd395a5){const _0x3c64ca=a188_0x13d14b,_0xd38162=[];for(const [,_0x2e0b1e]of Object[_0x3c64ca(0x1d7)](_0x7c58a['guides'])){_0x2e0b1e['extendContent']&&_0xd38162['push'](_0x2e0b1e[_0x3c64ca(0x1ed)][_0x3c64ca(0x1d4)]());}if(_0xd38162['length']===0x0)return _0x81c7f1;return _0x81c7f1[_0x3c64ca(0x1d4)]()+'\x0a\x0a'+_0xd38162['join']('\x0a\x0a')+'\x0a';}function a188_0x47bf(){const _0x43825c=['140570KZwAUN','entries','title','120725LmVIFb','utf-8','/skills/guides.json','application/json','content','377283EuwgJL','lastUpdated','.lovrabet/skill/guides','.lovrabet','CDN\x20请求失败:\x20','58842jMEwPD','669894afxVCS','skillTemplate','344332AQpkYm','\x0a\x0a>更新时间:','56zdaFCA','.md','status','113632AZNmoY','guides','extendContent','CDN\x20数据中缺少\x20skillTemplate','replace','path','trimEnd','CDN\x20返回数据格式错误'];a188_0x47bf=function(){return _0x43825c;};return a188_0x47bf();}export function writeSkillFile(_0xc5e5c,_0xa7be49,_0xb6cddc){const _0x4e84ef=a188_0x13d14b,_0x2367b0=getSkillTemplate(_0xc5e5c);if(!_0x2367b0)throw new Error(_0x4e84ef(0x1ee));const _0x12f043=dirname(_0xa7be49);mkdirSync(_0x12f043,{'recursive':!![]});let _0x3a57eb=_0x2367b0['replace'](/\{\{IDE_NAME\}\}/g,_0xb6cddc);_0x3a57eb=appendExtendContents(_0x3a57eb,_0xc5e5c),_0xc5e5c['skillTemplate'][_0x4e84ef(0x1df)]&&(_0x3a57eb=appendUpdateTime(_0x3a57eb,_0xc5e5c[_0x4e84ef(0x1e5)]['lastUpdated'])),writeFileSync(_0xa7be49,_0x3a57eb,_0x4e84ef(0x1da));}export async function installGuides(_0x40120d){const _0x27f952=a188_0x13d14b,_0x5a3220=await fetchGuidesFromCDN();return writeGuidesToProject(_0x5a3220,_0x40120d),Object['keys'](_0x5a3220[_0x27f952(0x1ec)])['length'];}export function getGuidesSummary(_0x1a4cd0){const _0x28a39e=a188_0x13d14b;return Object['entries'](_0x1a4cd0[_0x28a39e(0x1ec)])['map'](([_0x2bf767,_0x460a50])=>({'key':_0x2bf767,'title':_0x460a50[_0x28a39e(0x1d8)],'path':_0x460a50[_0x28a39e(0x1d3)]}));}
@@ -1 +1 @@
1
- (function(_0x36a45f,_0x3cd293){const _0x52ef0f=a189_0x3726,_0x1e8b75=_0x36a45f();while(!![]){try{const _0x591eb7=parseInt(_0x52ef0f(0x1b2))/0x1+-parseInt(_0x52ef0f(0x1ad))/0x2+-parseInt(_0x52ef0f(0x197))/0x3+parseInt(_0x52ef0f(0x19a))/0x4*(parseInt(_0x52ef0f(0x19c))/0x5)+parseInt(_0x52ef0f(0x1a3))/0x6+-parseInt(_0x52ef0f(0x199))/0x7+parseInt(_0x52ef0f(0x19f))/0x8;if(_0x591eb7===_0x3cd293)break;else _0x1e8b75['push'](_0x1e8b75['shift']());}catch(_0x3ca7a3){_0x1e8b75['push'](_0x1e8b75['shift']());}}}(a189_0x5adf,0xe125b));function a189_0x3726(_0x32164f,_0x559138){_0x32164f=_0x32164f-0x197;const _0x5adfc1=a189_0x5adf();let _0x37268b=_0x5adfc1[_0x32164f];return _0x37268b;}export async function httpRequest(_0x2db1f8,_0x593c21={}){const _0x79489c=a189_0x3726,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0x593c21;let _0x64a2b1=null;for(let _0x5cb0b7=0x0;_0x5cb0b7<=retries;_0x5cb0b7++){try{const _0x2fa35a=new AbortController(),_0x43ee5e=setTimeout(()=>_0x2fa35a[_0x79489c(0x1b0)](),timeout),_0x413aa9=await fetch(_0x2db1f8,{'headers':headers,'signal':_0x2fa35a[_0x79489c(0x1a5)]});clearTimeout(_0x43ee5e);let _0x48f12c;const _0xc14d89=_0x413aa9[_0x79489c(0x1b1)][_0x79489c(0x1af)](_0x79489c(0x1ae));return _0xc14d89?.[_0x79489c(0x1ac)](_0x79489c(0x19e))?_0x48f12c=await _0x413aa9[_0x79489c(0x1a9)]():_0x48f12c=await _0x413aa9[_0x79489c(0x1a8)](),{'ok':_0x413aa9['ok'],'status':_0x413aa9[_0x79489c(0x1a1)],'statusText':_0x413aa9[_0x79489c(0x1a2)],'data':_0x48f12c,'headers':_0x413aa9[_0x79489c(0x1b1)],'url':_0x413aa9['url'],'text':()=>_0x413aa9[_0x79489c(0x1a8)]()};}catch(_0x5cfb0f){_0x64a2b1=_0x5cfb0f instanceof Error?_0x5cfb0f:new Error(String(_0x5cfb0f));if(_0x5cb0b7===retries)break;if(shouldRetry(_0x5cfb0f)){console[_0x79489c(0x1a4)]('*\x20请求失败,'+retryDelay+_0x79489c(0x198)+(_0x5cb0b7+0x1)+_0x79489c(0x1a0)),await sleep(retryDelay);continue;}else break;}}throw _0x64a2b1||new Error(_0x79489c(0x1a6));}function shouldRetry(_0x2f3ab5){const _0x207fde=a189_0x3726;if(_0x2f3ab5 instanceof Error){if(_0x2f3ab5['name']===_0x207fde(0x19b))return![];if(_0x2f3ab5[_0x207fde(0x19d)]===_0x207fde(0x1ab)&&_0x2f3ab5[_0x207fde(0x1aa)]['includes']('fetch'))return!![];if(_0x2f3ab5[_0x207fde(0x1aa)]['includes']('ECONNRESET'))return!![];if(_0x2f3ab5['message'][_0x207fde(0x1ac)](_0x207fde(0x1a7)))return![];}return![];}function sleep(_0x16edc8){return new Promise(_0x259001=>setTimeout(_0x259001,_0x16edc8));}function a189_0x5adf(){const _0x3ac76a=['3321636KETgrL','content-type','get','abort','headers','107983VyHKMD','577944fhskNJ','ms\x20后进行第\x20','11754302OSpBTU','334048VHRvYf','AbortError','5zJaLJG','name','application/json','34036304KrDtdc','\x20次重试...','status','statusText','52932BuPVWu','log','signal','Request\x20failed','ENOTFOUND','text','json','message','TypeError','includes'];a189_0x5adf=function(){return _0x3ac76a;};return a189_0x5adf();}export function validateUrl(_0x576a6f){try{return new URL(_0x576a6f),!![];}catch{return![];}}
1
+ function a189_0x25e0(){const _0x2275c1=['json','9cdzmdP','73jxBUqj','\x20次重试...','411940GMooKl','ms\x20后进行第\x20','log','get','771529oAxyEs','application/json','text','headers','4315308KkwWqX','TypeError','statusText','*\x20请求失败,','33716tidOIT','12FIhkfe','30HVCbmO','signal','2966CZtdkO','Request\x20failed','1727352UplrRI','fetch','includes','url','AbortError','abort','message','status','24GqRkXr','96873MNIVtR'];a189_0x25e0=function(){return _0x2275c1;};return a189_0x25e0();}(function(_0x271d40,_0x4d290c){const _0x268034=a189_0x3922,_0x5ccde9=_0x271d40();while(!![]){try{const _0x4ffc15=-parseInt(_0x268034(0x1cf))/0x1*(parseInt(_0x268034(0x1c1))/0x2)+-parseInt(_0x268034(0x1ce))/0x3*(parseInt(_0x268034(0x1bd))/0x4)+parseInt(_0x268034(0x1d1))/0x5*(parseInt(_0x268034(0x1be))/0x6)+-parseInt(_0x268034(0x1cc))/0x7*(-parseInt(_0x268034(0x1cb))/0x8)+parseInt(_0x268034(0x1c3))/0x9+parseInt(_0x268034(0x1bf))/0xa*(parseInt(_0x268034(0x1b5))/0xb)+-parseInt(_0x268034(0x1b9))/0xc;if(_0x4ffc15===_0x4d290c)break;else _0x5ccde9['push'](_0x5ccde9['shift']());}catch(_0x210b72){_0x5ccde9['push'](_0x5ccde9['shift']());}}}(a189_0x25e0,0x1c31b));export async function httpRequest(_0x4a9c18,_0x195953={}){const _0x58b431=a189_0x3922,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0x195953;let _0x11a6d9=null;for(let _0x2968c2=0x0;_0x2968c2<=retries;_0x2968c2++){try{const _0x4f21d4=new AbortController(),_0x20146b=setTimeout(()=>_0x4f21d4[_0x58b431(0x1c8)](),timeout),_0x1e4d20=await fetch(_0x4a9c18,{'headers':headers,'signal':_0x4f21d4[_0x58b431(0x1c0)]});clearTimeout(_0x20146b);let _0x3fc56a;const _0x153b58=_0x1e4d20[_0x58b431(0x1b8)][_0x58b431(0x1b4)]('content-type');return _0x153b58?.[_0x58b431(0x1c5)](_0x58b431(0x1b6))?_0x3fc56a=await _0x1e4d20[_0x58b431(0x1cd)]():_0x3fc56a=await _0x1e4d20[_0x58b431(0x1b7)](),{'ok':_0x1e4d20['ok'],'status':_0x1e4d20[_0x58b431(0x1ca)],'statusText':_0x1e4d20[_0x58b431(0x1bb)],'data':_0x3fc56a,'headers':_0x1e4d20[_0x58b431(0x1b8)],'url':_0x1e4d20[_0x58b431(0x1c6)],'text':()=>_0x1e4d20[_0x58b431(0x1b7)]()};}catch(_0x5ddf12){_0x11a6d9=_0x5ddf12 instanceof Error?_0x5ddf12:new Error(String(_0x5ddf12));if(_0x2968c2===retries)break;if(shouldRetry(_0x5ddf12)){console[_0x58b431(0x1b3)](_0x58b431(0x1bc)+retryDelay+_0x58b431(0x1b2)+(_0x2968c2+0x1)+_0x58b431(0x1d0)),await sleep(retryDelay);continue;}else break;}}throw _0x11a6d9||new Error(_0x58b431(0x1c2));}function a189_0x3922(_0x1598c8,_0x31562c){_0x1598c8=_0x1598c8-0x1b2;const _0x25e02d=a189_0x25e0();let _0x3922b3=_0x25e02d[_0x1598c8];return _0x3922b3;}function shouldRetry(_0x103e1c){const _0x3d87cc=a189_0x3922;if(_0x103e1c instanceof Error){if(_0x103e1c['name']===_0x3d87cc(0x1c7))return![];if(_0x103e1c['name']===_0x3d87cc(0x1ba)&&_0x103e1c[_0x3d87cc(0x1c9)][_0x3d87cc(0x1c5)](_0x3d87cc(0x1c4)))return!![];if(_0x103e1c[_0x3d87cc(0x1c9)][_0x3d87cc(0x1c5)]('ECONNRESET'))return!![];if(_0x103e1c[_0x3d87cc(0x1c9)][_0x3d87cc(0x1c5)]('ENOTFOUND'))return![];}return![];}function sleep(_0x447d81){return new Promise(_0x3619a0=>setTimeout(_0x3619a0,_0x447d81));}export function validateUrl(_0x44ee3a){try{return new URL(_0x44ee3a),!![];}catch{return![];}}
@@ -1 +1 @@
1
- function a190_0xff8a(_0x7b7b20,_0x5e8912){_0x7b7b20=_0x7b7b20-0x166;const _0x3a531b=a190_0x3a53();let _0xff8a3a=_0x3a531b[_0x7b7b20];return _0xff8a3a;}(function(_0x4b5571,_0xaca53b){const _0x5dd097=a190_0xff8a,_0x26be31=_0x4b5571();while(!![]){try{const _0x51ae9a=-parseInt(_0x5dd097(0x168))/0x1*(-parseInt(_0x5dd097(0x16c))/0x2)+parseInt(_0x5dd097(0x16f))/0x3*(-parseInt(_0x5dd097(0x171))/0x4)+-parseInt(_0x5dd097(0x169))/0x5+parseInt(_0x5dd097(0x170))/0x6*(-parseInt(_0x5dd097(0x174))/0x7)+-parseInt(_0x5dd097(0x16e))/0x8+parseInt(_0x5dd097(0x16d))/0x9+parseInt(_0x5dd097(0x175))/0xa;if(_0x51ae9a===_0xaca53b)break;else _0x26be31['push'](_0x26be31['shift']());}catch(_0x373c78){_0x26be31['push'](_0x26be31['shift']());}}}(a190_0x3a53,0xadd6b));function env(_0x59b8f4){return process.env[`RABETBASE_${_0x59b8f4}`]||process.env[`LOVRABET_${_0x59b8f4}`]||undefined;}function a190_0x3a53(){const _0x58c013=['7527832ZnwUeK','3638091MdnVYd','114690OCMGOf','4zbdJqo','setRawMode','stdin','329dntTRi','26291680FPILQl','nonInteractive','true','332389ajHOrS','6313660TpeRDO','stdout','isTTY','8dlvPqh','9613188icVKnZ'];a190_0x3a53=function(){return _0x58c013;};return a190_0x3a53();}export function isNonInteractive(_0x3a5751){const _0x33c378=a190_0xff8a;return!!(_0x3a5751[_0x33c378(0x166)]||_0x3a5751['ci']||env('CI')===_0x33c378(0x167)||process.env.CI==='true'||!process[_0x33c378(0x16a)][_0x33c378(0x16b)]||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x5af866=a190_0xff8a;if(!process[_0x5af866(0x173)][_0x5af866(0x16b)])return![];try{const _0x1f1876=process[_0x5af866(0x173)]['isRaw'];return process[_0x5af866(0x173)]['setRawMode'](!![]),process[_0x5af866(0x173)][_0x5af866(0x172)](_0x1f1876??![]),!![];}catch{return![];}}
1
+ (function(_0x2b31a8,_0x480fb3){const _0x3d950a=a190_0x5199,_0x4f615d=_0x2b31a8();while(!![]){try{const _0x24187a=parseInt(_0x3d950a(0x119))/0x1*(parseInt(_0x3d950a(0x112))/0x2)+-parseInt(_0x3d950a(0x111))/0x3+parseInt(_0x3d950a(0x113))/0x4+parseInt(_0x3d950a(0x116))/0x5*(parseInt(_0x3d950a(0x10e))/0x6)+-parseInt(_0x3d950a(0x114))/0x7*(parseInt(_0x3d950a(0x10c))/0x8)+parseInt(_0x3d950a(0x11a))/0x9*(parseInt(_0x3d950a(0x10b))/0xa)+-parseInt(_0x3d950a(0x117))/0xb;if(_0x24187a===_0x480fb3)break;else _0x4f615d['push'](_0x4f615d['shift']());}catch(_0x120ece){_0x4f615d['push'](_0x4f615d['shift']());}}}(a190_0x5a44,0x7b333));function a190_0x5a44(){const _0x517547=['true','1379555hvIZVA','3716515pplWoo','isTTY','89isDMnb','477NtUsVr','121030EmCfxI','123088iBfENS','isRaw','6CQmmfz','setRawMode','stdin','977907EEXGbx','7992MvwyAk','628036ktSCkj','119iCNHSH'];a190_0x5a44=function(){return _0x517547;};return a190_0x5a44();}function a190_0x5199(_0x5a8949,_0x4a85f7){_0x5a8949=_0x5a8949-0x10b;const _0x5a4419=a190_0x5a44();let _0x519904=_0x5a4419[_0x5a8949];return _0x519904;}function env(_0x4ad253){return process.env[`RABETBASE_${_0x4ad253}`]||process.env[`LOVRABET_${_0x4ad253}`]||undefined;}export function isNonInteractive(_0x11aa58){const _0x70a27b=a190_0x5199;return!!(_0x11aa58['nonInteractive']||_0x11aa58['ci']||env('CI')===_0x70a27b(0x115)||process.env.CI===_0x70a27b(0x115)||!process['stdout'][_0x70a27b(0x118)]||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x4af503=a190_0x5199;if(!process['stdin'][_0x4af503(0x118)])return![];try{const _0x2bc7e0=process[_0x4af503(0x110)][_0x4af503(0x10d)];return process[_0x4af503(0x110)][_0x4af503(0x10f)](!![]),process[_0x4af503(0x110)][_0x4af503(0x10f)](_0x2bc7e0??![]),!![];}catch{return![];}}
@@ -1 +1 @@
1
- const a191_0x54fa8b=a191_0xafcb;(function(_0x40c339,_0x164688){const _0x3e6c80=a191_0xafcb,_0x235216=_0x40c339();while(!![]){try{const _0x4c983b=-parseInt(_0x3e6c80(0x174))/0x1*(parseInt(_0x3e6c80(0x189))/0x2)+-parseInt(_0x3e6c80(0x177))/0x3*(parseInt(_0x3e6c80(0x182))/0x4)+-parseInt(_0x3e6c80(0x16f))/0x5+-parseInt(_0x3e6c80(0x15e))/0x6+-parseInt(_0x3e6c80(0x166))/0x7+-parseInt(_0x3e6c80(0x16e))/0x8*(-parseInt(_0x3e6c80(0x167))/0x9)+-parseInt(_0x3e6c80(0x18b))/0xa*(-parseInt(_0x3e6c80(0x184))/0xb);if(_0x4c983b===_0x164688)break;else _0x235216['push'](_0x235216['shift']());}catch(_0x5934ed){_0x235216['push'](_0x235216['shift']());}}}(a191_0x2839,0xc2e79));import a191_0x151a6f from'winston';import a191_0x21517e from'node:fs';function a191_0x2839(){const _0x3948b4=['readLogs','2ymIhto','logFilePath','red','2106666xteCCX','Failed\x20to\x20clear\x20logs:','Failed\x20to\x20read\x20logs:','currentRawCommand','details','errors','level','trim','mkdirSync','dirname','blue','4WHbosh','timestamp','143fJhvNp','warn','filter','createLogger','now','547654hpZCww','开始执行:\x20','2169950UrIYKO','unknown','完成:\x20','info','existsSync','getWinstonInstance','command','green','split','combine','813468lqyGjY','printf','error','success','transports','clear','rawCommand','setRawCommand','9467885eLyMLn','29817IVWQfp','clearLogs','format','winstonLogger','失败:\x20','readFileSync','message','2104hTbonj','779580HztdxC','utf8','logTask','writeFileSync'];a191_0x2839=function(){return _0x3948b4;};return a191_0x2839();}function a191_0xafcb(_0x373b3f,_0x13b40c){_0x373b3f=_0x373b3f-0x158;const _0x2839fd=a191_0x2839();let _0xafcb87=_0x2839fd[_0x373b3f];return _0xafcb87;}import a191_0x410890 from'node:path';class Logger{[a191_0x54fa8b(0x16a)];[a191_0x54fa8b(0x175)];[a191_0x54fa8b(0x17a)]='';constructor(){const _0x363b1d=a191_0x54fa8b;this[_0x363b1d(0x175)]='';}[a191_0x54fa8b(0x165)](_0x1d049e){this['currentRawCommand']=_0x1d049e;}['initWinstonLogger'](){const _0x4f9b59=a191_0x54fa8b,_0x45c4e1=a191_0x410890[_0x4f9b59(0x180)](this['logFilePath']);!a191_0x21517e[_0x4f9b59(0x158)](_0x45c4e1)&&a191_0x21517e[_0x4f9b59(0x17f)](_0x45c4e1,{'recursive':!![]});const _0x1c6b08=a191_0x151a6f[_0x4f9b59(0x169)][_0x4f9b59(0x15d)](a191_0x151a6f['format'][_0x4f9b59(0x183)](),a191_0x151a6f[_0x4f9b59(0x169)][_0x4f9b59(0x17c)]({'stack':!![]}),a191_0x151a6f[_0x4f9b59(0x169)][_0x4f9b59(0x15f)](_0x30c039=>{const _0x266766=_0x4f9b59,_0x17eb44={'timestamp':_0x30c039[_0x266766(0x183)]||new Date()['toISOString'](),'level':_0x30c039[_0x266766(0x17d)]||_0x266766(0x18e),'command':_0x30c039[_0x266766(0x15a)]||_0x266766(0x18c),'rawCommand':_0x30c039[_0x266766(0x164)]||this[_0x266766(0x17a)]||undefined,'message':_0x30c039[_0x266766(0x16d)]||'','duration':_0x30c039['duration']||undefined,'details':_0x30c039[_0x266766(0x17b)]||undefined};return JSON['stringify'](_0x17eb44);}));this[_0x4f9b59(0x16a)]=a191_0x151a6f[_0x4f9b59(0x187)]({'level':_0x4f9b59(0x18e),'format':_0x1c6b08,'transports':[new a191_0x151a6f[(_0x4f9b59(0x162))]['File']({'filename':this[_0x4f9b59(0x175)],'level':_0x4f9b59(0x18e)})],'silent':![]}),a191_0x151a6f['addColors']({'success':_0x4f9b59(0x15b),'error':_0x4f9b59(0x176),'warn':'yellow','info':_0x4f9b59(0x181)});}['setLogPath'](_0x5d9bc4){const _0x636392=a191_0x54fa8b;this[_0x636392(0x175)]=a191_0x410890['join'](_0x5d9bc4,'.lovrabet.log'),this['winstonLogger']&&this[_0x636392(0x16a)][_0x636392(0x163)](),this['initWinstonLogger']();}[a191_0x54fa8b(0x18e)](_0xa0090c,_0x28a594,_0x219842){const _0x11eab6=a191_0x54fa8b;if(!this[_0x11eab6(0x175)]||!this[_0x11eab6(0x16a)])return;this['winstonLogger'][_0x11eab6(0x18e)](_0x28a594,{'command':_0xa0090c,'details':_0x219842});}[a191_0x54fa8b(0x161)](_0x30b627,_0x331a61,_0x296a50,_0x3004bb){const _0x3addb6=a191_0x54fa8b;if(!this[_0x3addb6(0x175)]||!this['winstonLogger'])return;this[_0x3addb6(0x16a)]['log'](_0x3addb6(0x18e),_0x331a61,{'level':'success','command':_0x30b627,'duration':_0x296a50,'details':_0x3004bb});}['error'](_0x15e9ce,_0x58f43f,_0xdd14f){const _0x53b522=a191_0x54fa8b;if(!this[_0x53b522(0x175)]||!this[_0x53b522(0x16a)])return;this[_0x53b522(0x16a)][_0x53b522(0x160)](_0x58f43f,{'command':_0x15e9ce,'details':_0xdd14f});}[a191_0x54fa8b(0x185)](_0x224950,_0x48b034,_0x20fba0){if(!this['logFilePath']||!this['winstonLogger'])return;this['winstonLogger']['warn'](_0x48b034,{'command':_0x224950,'details':_0x20fba0});}async[a191_0x54fa8b(0x171)](_0x499447,_0x2acf48,_0x383c6c){const _0x4b8764=a191_0x54fa8b,_0x425b98=Date[_0x4b8764(0x188)]();this[_0x4b8764(0x18e)](_0x499447,_0x4b8764(0x18a)+_0x2acf48);try{const _0x292dba=await _0x383c6c(),_0x1822a3=Date[_0x4b8764(0x188)]()-_0x425b98;return this[_0x4b8764(0x161)](_0x499447,_0x4b8764(0x18d)+_0x2acf48,_0x1822a3),_0x292dba;}catch(_0x5c6c79){const _0x34603e=Date[_0x4b8764(0x188)]()-_0x425b98;this[_0x4b8764(0x160)](_0x499447,_0x4b8764(0x16b)+_0x2acf48,{'error':_0x5c6c79 instanceof Error?_0x5c6c79[_0x4b8764(0x16d)]:String(_0x5c6c79),'duration':_0x34603e});throw _0x5c6c79;}}[a191_0x54fa8b(0x173)](){const _0x3623a1=a191_0x54fa8b;try{if(!a191_0x21517e[_0x3623a1(0x158)](this[_0x3623a1(0x175)]))return[];const _0x5b58c0=a191_0x21517e[_0x3623a1(0x16c)](this[_0x3623a1(0x175)],_0x3623a1(0x170));return _0x5b58c0[_0x3623a1(0x15c)]('\x0a')[_0x3623a1(0x186)](_0x37c72e=>_0x37c72e[_0x3623a1(0x17e)]())['map'](_0x5f1ffe=>JSON['parse'](_0x5f1ffe));}catch(_0x1bd560){return console[_0x3623a1(0x185)](_0x3623a1(0x179),_0x1bd560),[];}}[a191_0x54fa8b(0x168)](){const _0x5ed054=a191_0x54fa8b;try{a191_0x21517e['existsSync'](this[_0x5ed054(0x175)])&&a191_0x21517e[_0x5ed054(0x172)](this[_0x5ed054(0x175)],'','utf8');}catch(_0x5b0073){console['warn'](_0x5ed054(0x178),_0x5b0073);}}[a191_0x54fa8b(0x159)](){const _0x4d7cd6=a191_0x54fa8b;return this[_0x4d7cd6(0x16a)];}}export const logger=new Logger();
1
+ const a191_0x48fcdb=a191_0x3000;function a191_0x5dfd(){const _0x5329c6=['addColors','311190HbsLlO','duration','info','transports','currentRawCommand','winstonLogger','logFilePath','4441195oEmiss','readFileSync','existsSync','join','1SzyaBc','initWinstonLogger','writeFileSync','timestamp','.lovrabet.log','setLogPath','error','dirname','trim','utf8','details','90879BLbkDj','setRawCommand','map','green','stringify','readLogs','errors','red','getWinstonInstance','2833420icuFSy','format','level','printf','warn','开始执行:\x20','3220202Vlywdf','3159940eZzxXs','119eSReMq','now','897296GCMcxB','blue','toISOString','rawCommand','yellow','90qIxSov','success'];a191_0x5dfd=function(){return _0x5329c6;};return a191_0x5dfd();}(function(_0x5284a2,_0x144e35){const _0x2b4ca9=a191_0x3000,_0x32470f=_0x5284a2();while(!![]){try{const _0x79de3d=parseInt(_0x2b4ca9(0xdc))/0x1*(-parseInt(_0x2b4ca9(0xc5))/0x2)+parseInt(_0x2b4ca9(0xb6))/0x3+-parseInt(_0x2b4ca9(0xc6))/0x4+parseInt(_0x2b4ca9(0xd8))/0x5+parseInt(_0x2b4ca9(0xd1))/0x6*(parseInt(_0x2b4ca9(0xc7))/0x7)+-parseInt(_0x2b4ca9(0xc9))/0x8*(-parseInt(_0x2b4ca9(0xce))/0x9)+parseInt(_0x2b4ca9(0xbf))/0xa;if(_0x79de3d===_0x144e35)break;else _0x32470f['push'](_0x32470f['shift']());}catch(_0x4835b3){_0x32470f['push'](_0x32470f['shift']());}}}(a191_0x5dfd,0xc48f9));import a191_0x7859df from'winston';import a191_0xc925f4 from'node:fs';function a191_0x3000(_0x1f3eeb,_0x5635b1){_0x1f3eeb=_0x1f3eeb-0xb3;const _0x5dfde5=a191_0x5dfd();let _0x300045=_0x5dfde5[_0x1f3eeb];return _0x300045;}import a191_0x5eb79c from'node:path';class Logger{[a191_0x48fcdb(0xd6)];[a191_0x48fcdb(0xd7)];['currentRawCommand']='';constructor(){const _0x5eba00=a191_0x48fcdb;this[_0x5eba00(0xd7)]='';}[a191_0x48fcdb(0xb7)](_0x3e908d){const _0x4fb042=a191_0x48fcdb;this[_0x4fb042(0xd5)]=_0x3e908d;}[a191_0x48fcdb(0xdd)](){const _0x557f45=a191_0x48fcdb,_0x299b36=a191_0x5eb79c[_0x557f45(0xe3)](this[_0x557f45(0xd7)]);!a191_0xc925f4['existsSync'](_0x299b36)&&a191_0xc925f4['mkdirSync'](_0x299b36,{'recursive':!![]});const _0x431423=a191_0x7859df[_0x557f45(0xc0)]['combine'](a191_0x7859df[_0x557f45(0xc0)][_0x557f45(0xdf)](),a191_0x7859df['format'][_0x557f45(0xbc)]({'stack':!![]}),a191_0x7859df['format'][_0x557f45(0xc2)](_0x48c053=>{const _0x343e84=_0x557f45,_0x57443c={'timestamp':_0x48c053[_0x343e84(0xdf)]||new Date()[_0x343e84(0xcb)](),'level':_0x48c053[_0x343e84(0xc1)]||'info','command':_0x48c053['command']||'unknown','rawCommand':_0x48c053[_0x343e84(0xcc)]||this[_0x343e84(0xd5)]||undefined,'message':_0x48c053['message']||'','duration':_0x48c053[_0x343e84(0xd2)]||undefined,'details':_0x48c053[_0x343e84(0xb5)]||undefined};return JSON[_0x343e84(0xba)](_0x57443c);}));this[_0x557f45(0xd6)]=a191_0x7859df['createLogger']({'level':_0x557f45(0xd3),'format':_0x431423,'transports':[new a191_0x7859df[(_0x557f45(0xd4))]['File']({'filename':this[_0x557f45(0xd7)],'level':'info'})],'silent':![]}),a191_0x7859df[_0x557f45(0xd0)]({'success':_0x557f45(0xb9),'error':_0x557f45(0xbd),'warn':_0x557f45(0xcd),'info':_0x557f45(0xca)});}[a191_0x48fcdb(0xe1)](_0x5a5d8f){const _0x4043d1=a191_0x48fcdb;this['logFilePath']=a191_0x5eb79c[_0x4043d1(0xdb)](_0x5a5d8f,_0x4043d1(0xe0)),this[_0x4043d1(0xd6)]&&this[_0x4043d1(0xd6)]['clear'](),this[_0x4043d1(0xdd)]();}[a191_0x48fcdb(0xd3)](_0x21d983,_0x1bff8f,_0x463e2f){const _0x2ce5b5=a191_0x48fcdb;if(!this[_0x2ce5b5(0xd7)]||!this[_0x2ce5b5(0xd6)])return;this[_0x2ce5b5(0xd6)][_0x2ce5b5(0xd3)](_0x1bff8f,{'command':_0x21d983,'details':_0x463e2f});}[a191_0x48fcdb(0xcf)](_0x16ed63,_0x39f572,_0x444865,_0x570099){const _0x204aa5=a191_0x48fcdb;if(!this[_0x204aa5(0xd7)]||!this['winstonLogger'])return;this[_0x204aa5(0xd6)]['log'](_0x204aa5(0xd3),_0x39f572,{'level':'success','command':_0x16ed63,'duration':_0x444865,'details':_0x570099});}[a191_0x48fcdb(0xe2)](_0x5d519b,_0x423110,_0x310b40){const _0x2667d0=a191_0x48fcdb;if(!this[_0x2667d0(0xd7)]||!this[_0x2667d0(0xd6)])return;this[_0x2667d0(0xd6)][_0x2667d0(0xe2)](_0x423110,{'command':_0x5d519b,'details':_0x310b40});}[a191_0x48fcdb(0xc3)](_0x5ad758,_0x4d6e90,_0x53eacd){const _0x4a31c5=a191_0x48fcdb;if(!this[_0x4a31c5(0xd7)]||!this[_0x4a31c5(0xd6)])return;this[_0x4a31c5(0xd6)][_0x4a31c5(0xc3)](_0x4d6e90,{'command':_0x5ad758,'details':_0x53eacd});}async['logTask'](_0x27c9d4,_0x3d65cd,_0x342eff){const _0x4f70ba=a191_0x48fcdb,_0x342400=Date[_0x4f70ba(0xc8)]();this[_0x4f70ba(0xd3)](_0x27c9d4,_0x4f70ba(0xc4)+_0x3d65cd);try{const _0x226390=await _0x342eff(),_0x620149=Date[_0x4f70ba(0xc8)]()-_0x342400;return this[_0x4f70ba(0xcf)](_0x27c9d4,'完成:\x20'+_0x3d65cd,_0x620149),_0x226390;}catch(_0x4ad333){const _0x2b0cb2=Date[_0x4f70ba(0xc8)]()-_0x342400;this['error'](_0x27c9d4,'失败:\x20'+_0x3d65cd,{'error':_0x4ad333 instanceof Error?_0x4ad333['message']:String(_0x4ad333),'duration':_0x2b0cb2});throw _0x4ad333;}}[a191_0x48fcdb(0xbb)](){const _0x2f0ff3=a191_0x48fcdb;try{if(!a191_0xc925f4[_0x2f0ff3(0xda)](this[_0x2f0ff3(0xd7)]))return[];const _0x2a25ac=a191_0xc925f4[_0x2f0ff3(0xd9)](this[_0x2f0ff3(0xd7)],_0x2f0ff3(0xb4));return _0x2a25ac['split']('\x0a')['filter'](_0x5039e0=>_0x5039e0[_0x2f0ff3(0xb3)]())[_0x2f0ff3(0xb8)](_0x52b393=>JSON['parse'](_0x52b393));}catch(_0x56f289){return console[_0x2f0ff3(0xc3)]('Failed\x20to\x20read\x20logs:',_0x56f289),[];}}['clearLogs'](){const _0x2f82ed=a191_0x48fcdb;try{a191_0xc925f4['existsSync'](this['logFilePath'])&&a191_0xc925f4[_0x2f82ed(0xde)](this['logFilePath'],'','utf8');}catch(_0x4f95f9){console[_0x2f82ed(0xc3)]('Failed\x20to\x20clear\x20logs:',_0x4f95f9);}}[a191_0x48fcdb(0xbe)](){const _0x55dace=a191_0x48fcdb;return this[_0x55dace(0xd6)];}}export const logger=new Logger();
@@ -1 +1 @@
1
- (function(_0x46a497,_0x1f2cd9){const _0x14c5d6=a192_0x2b79,_0x33fc11=_0x46a497();while(!![]){try{const _0xf90f89=parseInt(_0x14c5d6(0x157))/0x1*(-parseInt(_0x14c5d6(0x156))/0x2)+parseInt(_0x14c5d6(0x159))/0x3+parseInt(_0x14c5d6(0x154))/0x4+-parseInt(_0x14c5d6(0x15b))/0x5+-parseInt(_0x14c5d6(0x15f))/0x6+-parseInt(_0x14c5d6(0x15d))/0x7*(parseInt(_0x14c5d6(0x15e))/0x8)+parseInt(_0x14c5d6(0x160))/0x9;if(_0xf90f89===_0x1f2cd9)break;else _0x33fc11['push'](_0x33fc11['shift']());}catch(_0x22860c){_0x33fc11['push'](_0x33fc11['shift']());}}}(a192_0x4a53,0x87584));function a192_0x2b79(_0x4747b3,_0x370caf){_0x4747b3=_0x4747b3-0x154;const _0x4a53ff=a192_0x4a53();let _0x2b796c=_0x4a53ff[_0x4747b3];return _0x2b796c;}function a192_0x4a53(){const _0x32654e=['object','5078utKmfY','8fJXGZD','Invalid\x20JSON\x20for\x20--params:\x20','828630dronNe','validation','5084125TMEMUA','isArray','7763hMRUhh','2056XvaQyz','4377210YTHHMQ','12848454OdGCwq','3608964mJngBB'];a192_0x4a53=function(){return _0x32654e;};return a192_0x4a53();}import{CliErrors}from'../errors.js';export function parseJsonParams(_0x1d6f55){const _0x961b26=a192_0x2b79;if(!_0x1d6f55)return undefined;let _0x464dc4;try{_0x464dc4=JSON['parse'](_0x1d6f55);}catch{throw CliErrors[_0x961b26(0x15a)](_0x961b26(0x158)+_0x1d6f55);}if(!_0x464dc4||typeof _0x464dc4!==_0x961b26(0x155)||Array[_0x961b26(0x15c)](_0x464dc4))throw CliErrors[_0x961b26(0x15a)]('--params\x20must\x20be\x20a\x20JSON\x20object','Example:\x20--params\x20\x27{\x22id\x22:123}\x27');return _0x464dc4;}
1
+ function a192_0x50cc(_0x4b5e3b,_0x5135d6){_0x4b5e3b=_0x4b5e3b-0x1ba;const _0x34f9c3=a192_0x34f9();let _0x50cc21=_0x34f9c3[_0x4b5e3b];return _0x50cc21;}(function(_0x1787d4,_0x35bdcc){const _0x418c52=a192_0x50cc,_0x5b8f2c=_0x1787d4();while(!![]){try{const _0x320543=-parseInt(_0x418c52(0x1c6))/0x1+parseInt(_0x418c52(0x1ca))/0x2*(-parseInt(_0x418c52(0x1c7))/0x3)+-parseInt(_0x418c52(0x1c4))/0x4*(parseInt(_0x418c52(0x1c9))/0x5)+-parseInt(_0x418c52(0x1c3))/0x6*(-parseInt(_0x418c52(0x1c1))/0x7)+-parseInt(_0x418c52(0x1c5))/0x8+-parseInt(_0x418c52(0x1bd))/0x9*(-parseInt(_0x418c52(0x1c8))/0xa)+parseInt(_0x418c52(0x1ba))/0xb;if(_0x320543===_0x35bdcc)break;else _0x5b8f2c['push'](_0x5b8f2c['shift']());}catch(_0x4c7257){_0x5b8f2c['push'](_0x5b8f2c['shift']());}}}(a192_0x34f9,0x281d3));import{CliErrors}from'../errors.js';function a192_0x34f9(){const _0x1fad01=['3DIRrYi','20EECslA','615675RilmHM','240074UvKNfh','object','4959955lXPNcI','parse','isArray','372753zLfZVu','Invalid\x20JSON\x20for\x20--params:\x20','validation','Example:\x20--params\x20\x27{\x22id\x22:123}\x27','7fCcoVo','--params\x20must\x20be\x20a\x20JSON\x20object','1941834HNndQc','4GdvYbW','1818896QjxkMe','222537ilFiEq'];a192_0x34f9=function(){return _0x1fad01;};return a192_0x34f9();}export function parseJsonParams(_0x4ceea1){const _0x12ac99=a192_0x50cc;if(!_0x4ceea1)return undefined;let _0x31fec0;try{_0x31fec0=JSON[_0x12ac99(0x1bb)](_0x4ceea1);}catch{throw CliErrors[_0x12ac99(0x1bf)](_0x12ac99(0x1be)+_0x4ceea1);}if(!_0x31fec0||typeof _0x31fec0!==_0x12ac99(0x1cb)||Array[_0x12ac99(0x1bc)](_0x31fec0))throw CliErrors[_0x12ac99(0x1bf)](_0x12ac99(0x1c2),_0x12ac99(0x1c0));return _0x31fec0;}
@@ -1 +1 @@
1
- const a193_0x3741bf=a193_0x3f07;(function(_0x14a5b6,_0x204abd){const _0xba6e34=a193_0x3f07,_0x2ceeca=_0x14a5b6();while(!![]){try{const _0x5af51a=-parseInt(_0xba6e34(0x7c))/0x1+-parseInt(_0xba6e34(0x79))/0x2+parseInt(_0xba6e34(0x77))/0x3+parseInt(_0xba6e34(0x7b))/0x4+-parseInt(_0xba6e34(0x74))/0x5+parseInt(_0xba6e34(0x76))/0x6*(-parseInt(_0xba6e34(0x78))/0x7)+parseInt(_0xba6e34(0x75))/0x8*(parseInt(_0xba6e34(0x7a))/0x9);if(_0x5af51a===_0x204abd)break;else _0x2ceeca['push'](_0x2ceeca['shift']());}catch(_0x3b961b){_0x2ceeca['push'](_0x2ceeca['shift']());}}}(a193_0xed68,0x98c1d));function a193_0x3f07(_0x3d4408,_0x5c3c0b){_0x3d4408=_0x3d4408-0x74;const _0xed6876=a193_0xed68();let _0x3f0753=_0xed6876[_0x3d4408];return _0x3f0753;}export const isWindows=process[a193_0x3741bf(0x7d)]==='win32';export function resolveNpmBin(_0x4d6e1d){return isWindows?_0x4d6e1d+'.cmd':_0x4d6e1d;}function a193_0xed68(){const _0x5bbf2c=['9QkyaEn','120480ANxvcE','547256jueVTm','platform','1733905NJZLDZ','23689128kCtEVF','12aCNqSH','30894PAyFYK','3522491UpSbst','950806VqOugC'];a193_0xed68=function(){return _0x5bbf2c;};return a193_0xed68();}
1
+ function a193_0x1bb6(_0x29b782,_0x16ff5b){_0x29b782=_0x29b782-0x11b;const _0x27219b=a193_0x2721();let _0x1bb6c8=_0x27219b[_0x29b782];return _0x1bb6c8;}const a193_0x480580=a193_0x1bb6;(function(_0x23539e,_0x3bdb13){const _0x3fd286=a193_0x1bb6,_0x4199cf=_0x23539e();while(!![]){try{const _0x2cd569=-parseInt(_0x3fd286(0x11e))/0x1*(-parseInt(_0x3fd286(0x120))/0x2)+parseInt(_0x3fd286(0x11d))/0x3*(parseInt(_0x3fd286(0x124))/0x4)+-parseInt(_0x3fd286(0x122))/0x5+parseInt(_0x3fd286(0x126))/0x6+-parseInt(_0x3fd286(0x11b))/0x7+parseInt(_0x3fd286(0x11f))/0x8+-parseInt(_0x3fd286(0x11c))/0x9*(parseInt(_0x3fd286(0x123))/0xa);if(_0x2cd569===_0x3bdb13)break;else _0x4199cf['push'](_0x4199cf['shift']());}catch(_0x1afc17){_0x4199cf['push'](_0x4199cf['shift']());}}}(a193_0x2721,0x70fb2));export const isWindows=process[a193_0x480580(0x121)]==='win32';export function resolveNpmBin(_0x182617){const _0x105348=a193_0x480580;return isWindows?_0x182617+_0x105348(0x125):_0x182617;}function a193_0x2721(){const _0x1374a3=['4518342BrwcUN','1432060tplHiD','270909ooXYkD','2392245MEibJi','172savADL','4940816znGrcT','2620FMKjzW','platform','4566585zsctPm','270OLSouh','4tplQGM','.cmd'];a193_0x2721=function(){return _0x1374a3;};return a193_0x2721();}
@@ -1 +1 @@
1
- const a194_0x48fd38=a194_0x4dbf;(function(_0x574cb3,_0x23cc96){const _0xf3ca50=a194_0x4dbf,_0x2f400a=_0x574cb3();while(!![]){try{const _0x3372aa=-parseInt(_0xf3ca50(0x128))/0x1*(-parseInt(_0xf3ca50(0x120))/0x2)+parseInt(_0xf3ca50(0x12a))/0x3+-parseInt(_0xf3ca50(0x127))/0x4*(-parseInt(_0xf3ca50(0x11c))/0x5)+-parseInt(_0xf3ca50(0x12d))/0x6+parseInt(_0xf3ca50(0x121))/0x7+-parseInt(_0xf3ca50(0x130))/0x8*(-parseInt(_0xf3ca50(0x122))/0x9)+-parseInt(_0xf3ca50(0x11e))/0xa*(parseInt(_0xf3ca50(0x12b))/0xb);if(_0x3372aa===_0x23cc96)break;else _0x2f400a['push'](_0x2f400a['shift']());}catch(_0x3d613a){_0x2f400a['push'](_0x2f400a['shift']());}}}(a194_0x26c5,0xb97d7));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 _0x505264=a194_0x4dbf,_0x5222c6=getTemplateBaseUrl();return _0x5222c6+_0x505264(0x11a);}const LOCAL_TEMPLATE_PATH=resolve(__dirname,a194_0x48fd38(0x119));export async function fetchRulesFromCDN(){const _0x3840d8=a194_0x48fd38,_0x548126=getRulesCdnUrl(),_0x25bc50=await fetch(_0x548126,{'headers':{'Accept':'application/json'}});if(!_0x25bc50['ok'])throw new Error(_0x3840d8(0x11b)+_0x25bc50[_0x3840d8(0x129)]+'\x20'+_0x25bc50['statusText']);const _0x2efba3=await _0x25bc50[_0x3840d8(0x12c)]();if(!_0x2efba3['content']||typeof _0x2efba3[_0x3840d8(0x12e)]!==_0x3840d8(0x125))throw new Error(_0x3840d8(0x124));return _0x2efba3;}function a194_0x26c5(){const _0x3628a1=['2459974JQzyYg','json','7358028bCkfDa','content','agents.md','173176ObHJHi','utf-8','../../templates/rules/lovrabet_rules.mdc.tpl','/rules/rules.json','CDN\x20请求失败:\x20','8090DSPalx','本地模板文件不存在:\x20','70SSDzSe','lastUpdated','466mazsxV','7427098xiReKm','450tPTQEw','lovrabet_rules.mdc','CDN\x20返回数据格式错误','string','.cursor/rules','4vvVBet','3181OtHmvC','status','1996164aCjGRG'];a194_0x26c5=function(){return _0x3628a1;};return a194_0x26c5();}export async function getRulesContent(){try{const _0x4f67ef=await fetchRulesFromCDN();return _0x4f67ef['content'];}catch{return readLocalTemplate();}}export function readLocalTemplate(){const _0x13a492=a194_0x48fd38;if(existsSync(LOCAL_TEMPLATE_PATH))return readFileSync(LOCAL_TEMPLATE_PATH,_0x13a492(0x131));throw new Error(_0x13a492(0x11d)+LOCAL_TEMPLATE_PATH);}export async function writeRulesFile(_0x353a61){const _0x22253c=a194_0x48fd38,_0x316701=await fetchRulesFromCDN()['catch'](()=>null);let _0x238a26;_0x316701?(_0x238a26=_0x316701[_0x22253c(0x12e)],_0x316701[_0x22253c(0x11f)]&&(_0x238a26=appendUpdateTime(_0x238a26,_0x316701[_0x22253c(0x11f)]))):_0x238a26=readLocalTemplate();const _0x1ba3c6=dirname(_0x353a61);!existsSync(_0x1ba3c6)&&mkdirSync(_0x1ba3c6,{'recursive':!![]}),writeFileSync(_0x353a61,_0x238a26,_0x22253c(0x131));}export async function copyRulesToCursor(_0x49e75e){const _0x9d0f27=a194_0x48fd38,_0x4071bf=join(_0x49e75e,_0x9d0f27(0x126)),_0x184580=join(_0x4071bf,_0x9d0f27(0x123));if(existsSync(_0x184580))return![];return await writeRulesFile(_0x184580),!![];}function a194_0x4dbf(_0x393827,_0x3f251e){_0x393827=_0x393827-0x119;const _0x26c540=a194_0x26c5();let _0x4dbf02=_0x26c540[_0x393827];return _0x4dbf02;}export async function copyRulesToAgentsMd(_0x27ed79){const _0xccab7f=a194_0x48fd38,_0x3cda23=join(_0x27ed79,_0xccab7f(0x12f));if(existsSync(_0x3cda23))return![];return await writeRulesFile(_0x3cda23),!![];}
1
+ const a194_0x4cc999=a194_0x290a;(function(_0x500b5f,_0x441dcc){const _0x44db77=a194_0x290a,_0x22a9ca=_0x500b5f();while(!![]){try{const _0x1c424b=-parseInt(_0x44db77(0x13c))/0x1*(parseInt(_0x44db77(0x13f))/0x2)+-parseInt(_0x44db77(0x12d))/0x3+parseInt(_0x44db77(0x133))/0x4+parseInt(_0x44db77(0x134))/0x5+parseInt(_0x44db77(0x12c))/0x6*(-parseInt(_0x44db77(0x13d))/0x7)+-parseInt(_0x44db77(0x12b))/0x8*(-parseInt(_0x44db77(0x13e))/0x9)+parseInt(_0x44db77(0x136))/0xa;if(_0x1c424b===_0x441dcc)break;else _0x22a9ca['push'](_0x22a9ca['shift']());}catch(_0x53120d){_0x22a9ca['push'](_0x22a9ca['shift']());}}}(a194_0x500d,0xd4391));import{existsSync,mkdirSync,readFileSync,writeFileSync}from'node:fs';import{dirname,join,resolve}from'node:path';import{fileURLToPath}from'node:url';function a194_0x500d(){const _0x138cfb=['242fehhIa','5021891qkuoNh','338139FPsepi','356NRCUBW','/rules/rules.json','../../templates/rules/lovrabet_rules.mdc.tpl','24fXyBzC','6rWBbJw','3006648rXukIS','statusText','content','.cursor/rules','json','lastUpdated','492564ltiabu','2148155GqRWFm','agents.md','19664850cJeQtG','CDN\x20请求失败:\x20','utf-8','catch','lovrabet_rules.mdc','application/json'];a194_0x500d=function(){return _0x138cfb;};return a194_0x500d();}import{getTemplateBaseUrl}from'../utils/config.js';import{appendUpdateTime}from'../utils/guides-cdn.js';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);function a194_0x290a(_0x3bcdc2,_0x13d581){_0x3bcdc2=_0x3bcdc2-0x12a;const _0x500d72=a194_0x500d();let _0x290aa7=_0x500d72[_0x3bcdc2];return _0x290aa7;}function getRulesCdnUrl(){const _0x418dfe=a194_0x290a,_0x4fb29a=getTemplateBaseUrl();return _0x4fb29a+_0x418dfe(0x140);}const LOCAL_TEMPLATE_PATH=resolve(__dirname,a194_0x4cc999(0x12a));export async function fetchRulesFromCDN(){const _0x33486a=a194_0x4cc999,_0x4e4dc3=getRulesCdnUrl(),_0x2b4388=await fetch(_0x4e4dc3,{'headers':{'Accept':_0x33486a(0x13b)}});if(!_0x2b4388['ok'])throw new Error(_0x33486a(0x137)+_0x2b4388['status']+'\x20'+_0x2b4388[_0x33486a(0x12e)]);const _0x3b387d=await _0x2b4388[_0x33486a(0x131)]();if(!_0x3b387d[_0x33486a(0x12f)]||typeof _0x3b387d[_0x33486a(0x12f)]!=='string')throw new Error('CDN\x20返回数据格式错误');return _0x3b387d;}export async function getRulesContent(){const _0x470a89=a194_0x4cc999;try{const _0x2ede3d=await fetchRulesFromCDN();return _0x2ede3d[_0x470a89(0x12f)];}catch{return readLocalTemplate();}}export function readLocalTemplate(){const _0x365277=a194_0x4cc999;if(existsSync(LOCAL_TEMPLATE_PATH))return readFileSync(LOCAL_TEMPLATE_PATH,_0x365277(0x138));throw new Error('本地模板文件不存在:\x20'+LOCAL_TEMPLATE_PATH);}export async function writeRulesFile(_0x5ad6eb){const _0x1d6084=a194_0x4cc999,_0x8053bd=await fetchRulesFromCDN()[_0x1d6084(0x139)](()=>null);let _0x41401b;_0x8053bd?(_0x41401b=_0x8053bd['content'],_0x8053bd[_0x1d6084(0x132)]&&(_0x41401b=appendUpdateTime(_0x41401b,_0x8053bd[_0x1d6084(0x132)]))):_0x41401b=readLocalTemplate();const _0x15fcb5=dirname(_0x5ad6eb);!existsSync(_0x15fcb5)&&mkdirSync(_0x15fcb5,{'recursive':!![]}),writeFileSync(_0x5ad6eb,_0x41401b,_0x1d6084(0x138));}export async function copyRulesToCursor(_0x5e1594){const _0x128459=a194_0x4cc999,_0x5e3fb1=join(_0x5e1594,_0x128459(0x130)),_0x537f44=join(_0x5e3fb1,_0x128459(0x13a));if(existsSync(_0x537f44))return![];return await writeRulesFile(_0x537f44),!![];}export async function copyRulesToAgentsMd(_0x4061d7){const _0x2a4e6c=a194_0x4cc999,_0x5e6773=join(_0x4061d7,_0x2a4e6c(0x135));if(existsSync(_0x5e6773))return![];return await writeRulesFile(_0x5e6773),!![];}
@@ -1 +1 @@
1
- export function sleep(_0x1d0344){return new Promise(_0x4403cc=>setTimeout(_0x4403cc,_0x1d0344));}
1
+ export function sleep(_0x26639a){return new Promise(_0x42236d=>setTimeout(_0x42236d,_0x26639a));}
@@ -1 +1 @@
1
- const a196_0x47aa15=a196_0x17cc;(function(_0xca20e9,_0x1df34c){const _0xe741e7=a196_0x17cc,_0x2b6167=_0xca20e9();while(!![]){try{const _0x3d36c4=-parseInt(_0xe741e7(0x122))/0x1*(parseInt(_0xe741e7(0x12f))/0x2)+parseInt(_0xe741e7(0x13e))/0x3*(-parseInt(_0xe741e7(0x128))/0x4)+parseInt(_0xe741e7(0x140))/0x5*(-parseInt(_0xe741e7(0x10f))/0x6)+-parseInt(_0xe741e7(0x127))/0x7+-parseInt(_0xe741e7(0x12c))/0x8+-parseInt(_0xe741e7(0xfe))/0x9+parseInt(_0xe741e7(0x137))/0xa*(parseInt(_0xe741e7(0x11f))/0xb);if(_0x3d36c4===_0x1df34c)break;else _0x2b6167['push'](_0x2b6167['shift']());}catch(_0x324212){_0x2b6167['push'](_0x2b6167['shift']());}}}(a196_0x5c51,0x33916));import a196_0x1dd365 from'node:fs';import a196_0x2c3dfe from'node:path';function a196_0x5c51(){const _0x40fba4=['push','13278jQHWls','tableName:\x20\x22','readdir','split','extname','toISOString','message','name:\x20\x22','isFile','replaceContent','toUpperCase','includes','mkdir','info','api','getHours','11LsAwVn','map','replace','23tapQgj','formatLocalTimestamp','promises','slice','开始处理模板内容替换','1130570ZvObDk','129880hNTGSm','pad','toLowerCase','charAt','1032072LuxcLp','datasetCode:\x20\x22','template','5594HvaoqL','getMonth','processTemplate','pop','getMinutes','YourModel','processFile','success','8202710fckvqn','.scss','getFullYear','getDate','processDirectory','.ts','alias','3olutyb','\x20},','215xxKlDQ','tableName','name','1139130fpUDwk','utf8','writeFile','endsWith','join','toComponentName','now','模板内容替换完成','readFile','padStart','.tsx','datasetCode','.css','toDisplayTitle','.jsx','.tpl'];a196_0x5c51=function(){return _0x40fba4;};return a196_0x5c51();}import{logger}from'../utils/logger.js';import{getCliVersion}from'../utils/version.js';const CLI_VERSION=getCliVersion();function a196_0x17cc(_0x455f07,_0x15e3a3){_0x455f07=_0x455f07-0xfc;const _0x5c51a2=a196_0x5c51();let _0x17cc66=_0x5c51a2[_0x455f07];return _0x17cc66;}export class TemplateReplacer{static['pad'](_0x4f50fb){const _0x4c7618=a196_0x17cc;return String(_0x4f50fb)[_0x4c7618(0x107)](0x2,'0');}static[a196_0x47aa15(0x123)](_0x1a0539){const _0x558530=a196_0x47aa15,_0x520a40=_0x1a0539[_0x558530(0x139)](),_0x24f411=this[_0x558530(0x129)](_0x1a0539[_0x558530(0x130)]()+0x1),_0x2ead62=this[_0x558530(0x129)](_0x1a0539[_0x558530(0x13a)]()),_0x231ce8=this[_0x558530(0x129)](_0x1a0539[_0x558530(0x11e)]()),_0x2febaf=this[_0x558530(0x129)](_0x1a0539[_0x558530(0x133)]()),_0x5e8b06=this[_0x558530(0x129)](_0x1a0539['getSeconds']());return{'createdAt':_0x520a40+'-'+_0x24f411+'-'+_0x2ead62+'\x20'+_0x231ce8+':'+_0x2febaf+':'+_0x5e8b06,'createdDate':_0x520a40+'-'+_0x24f411+'-'+_0x2ead62,'createdTime':_0x231ce8+':'+_0x2febaf+':'+_0x5e8b06};}static[a196_0x47aa15(0x103)](_0x34f159){const _0x2f595a=a196_0x47aa15,_0xcfae40=_0x34f159[_0x2f595a(0x112)]('/')[_0x2f595a(0x132)]()||_0x34f159;return _0xcfae40[_0x2f595a(0x112)]('-')[_0x2f595a(0x120)](_0x46ff7b=>_0x46ff7b[_0x2f595a(0x12b)](0x0)[_0x2f595a(0x119)]()+_0x46ff7b[_0x2f595a(0x125)](0x1)[_0x2f595a(0x12a)]())[_0x2f595a(0x102)]('');}static[a196_0x47aa15(0x10b)](_0x156271){const _0x35d13f=a196_0x47aa15,_0x10ea8c=_0x156271[_0x35d13f(0x112)]('/')['pop']()||_0x156271;return _0x10ea8c[_0x35d13f(0x112)]('-')[_0x35d13f(0x120)](_0x52b1c0=>_0x52b1c0['charAt'](0x0)[_0x35d13f(0x119)]()+_0x52b1c0[_0x35d13f(0x125)](0x1)[_0x35d13f(0x12a)]())[_0x35d13f(0x102)]('\x20');}static[a196_0x47aa15(0x118)](_0xe11ebf,_0x2d8abe,_0xe9d7e9){const _0x53fd8c=a196_0x47aa15,_0x4f2e1a=this[_0x53fd8c(0x103)](_0x2d8abe),_0x224670=this[_0x53fd8c(0x10b)](_0x2d8abe),{createdAt:_0x55520d,createdDate:_0x403b9e,createdTime:_0x208ad8}=this['formatLocalTimestamp'](new Date());let _0x518ac2=_0xe11ebf[_0x53fd8c(0x121)](/\{CliVersion\}/g,CLI_VERSION)['replace'](/\{ComponentName\}/g,_0x4f2e1a)[_0x53fd8c(0x121)](/\{DisplayTitle\}/g,_0x224670)[_0x53fd8c(0x121)](/\{PageName\}/g,_0x2d8abe)[_0x53fd8c(0x121)](/\{TemplateName\}/g,_0xe9d7e9)[_0x53fd8c(0x121)](/\{CreatedAt\}/g,_0x55520d)[_0x53fd8c(0x121)](/\{CreatedDate\}/g,_0x403b9e)['replace'](/\{CreatedTime\}/g,_0x208ad8);return _0x518ac2;}static['replaceApiContent'](_0x29fb95,_0x446044,_0x3461de,_0x3b9ed3,_0x508c4a,_0x40448a,_0x292e2e,_0x4f1905){const _0x428a65=a196_0x47aa15,_0x1e4488=new Date(),_0x562b93=_0x1e4488[_0x428a65(0x114)](),_0x1aeb50=_0x3461de[_0x428a65(0x120)](_0x1b1371=>{const _0x346bda=_0x428a65,_0x25667f=[_0x346bda(0x12d)+_0x1b1371[_0x346bda(0x109)]+'\x22',_0x346bda(0x110)+_0x1b1371[_0x346bda(0xfc)]+'\x22',_0x346bda(0x116)+_0x1b1371[_0x346bda(0xfd)]+'\x22'];return _0x1b1371['alias']&&_0x25667f[_0x346bda(0x10e)]('alias:\x20\x22'+_0x1b1371['alias']+'\x22'),'\x0a\x20\x20\x20\x20{\x20'+_0x25667f[_0x346bda(0x102)](',\x20')+_0x346bda(0x13f);})[_0x428a65(0x102)](''),_0x23c505=_0x3b9ed3||_0x3461de[0x0]?.[_0x428a65(0x13d)]||_0x428a65(0x134);let _0x571df6=_0x29fb95['replace'](/\{AppCode\}/g,_0x446044)['replace'](/\{ModelConfigs\}/g,_0x1aeb50)['replace'](/\{ExampleModelName\}/g,_0x23c505)[_0x428a65(0x121)](/\{ApiFileName\}/g,_0x508c4a||_0x428a65(0x11d))[_0x428a65(0x121)](/\{ConfigName\}/g,_0x40448a||'default')[_0x428a65(0x121)](/\{ClientConfigParam\}/g,_0x292e2e||'')[_0x428a65(0x121)](/\{VarPrefix\}/g,_0x4f1905||'LOVRABET')[_0x428a65(0x121)](/\{CreatedAt\}/g,_0x562b93);return _0x571df6;}static async[a196_0x47aa15(0x131)](_0x3793e3,_0xee27de,_0x1da113,_0x33eb54,_0x4a7b40=!![]){const _0x39dba3=a196_0x47aa15,_0x43cd16=Date[_0x39dba3(0x104)]();try{_0x4a7b40&&logger[_0x39dba3(0x11c)](_0x39dba3(0x12e),_0x39dba3(0x126),{'templatePath':_0x3793e3,'targetPath':_0xee27de,'pageName':_0x1da113,'templateName':_0x33eb54});await a196_0x1dd365[_0x39dba3(0x124)][_0x39dba3(0x11b)](_0xee27de,{'recursive':!![]}),await this['processDirectory'](_0x3793e3,_0xee27de,_0x1da113,_0x33eb54);if(_0x4a7b40){const _0x5611fd=Date[_0x39dba3(0x104)]()-_0x43cd16;logger[_0x39dba3(0x136)](_0x39dba3(0x12e),_0x39dba3(0x105),_0x5611fd,{'pageName':_0x1da113,'templateName':_0x33eb54});}}catch(_0x5985f9){if(_0x4a7b40){const _0x5671b2=Date['now']()-_0x43cd16;logger['error'](_0x39dba3(0x12e),'模板内容替换失败',{'templatePath':_0x3793e3,'targetPath':_0xee27de,'pageName':_0x1da113,'templateName':_0x33eb54,'error':_0x5985f9 instanceof Error?_0x5985f9[_0x39dba3(0x115)]:String(_0x5985f9),'duration':_0x5671b2});}throw _0x5985f9;}}static async['processDirectory'](_0x489ec7,_0x21697e,_0x4c3ffa,_0x516887){const _0x1dd3f0=a196_0x47aa15,_0x4d3380=await a196_0x1dd365[_0x1dd3f0(0x124)][_0x1dd3f0(0x111)](_0x489ec7,{'withFileTypes':!![]});for(const _0x364ddc of _0x4d3380){const _0x928d2e=a196_0x2c3dfe['join'](_0x489ec7,_0x364ddc[_0x1dd3f0(0xfd)]);let _0xd5c51c=a196_0x2c3dfe['join'](_0x21697e,_0x364ddc[_0x1dd3f0(0xfd)]);_0x364ddc[_0x1dd3f0(0xfd)][_0x1dd3f0(0x101)](_0x1dd3f0(0x10d))&&(_0xd5c51c=a196_0x2c3dfe[_0x1dd3f0(0x102)](_0x21697e,_0x364ddc[_0x1dd3f0(0xfd)][_0x1dd3f0(0x121)](/\.tpl$/,'')));if(_0x364ddc['isDirectory']())await a196_0x1dd365['promises'][_0x1dd3f0(0x11b)](_0xd5c51c,{'recursive':!![]}),await this[_0x1dd3f0(0x13b)](_0x928d2e,_0xd5c51c,_0x4c3ffa,_0x516887);else _0x364ddc[_0x1dd3f0(0x117)]()&&await this[_0x1dd3f0(0x135)](_0x928d2e,_0xd5c51c,_0x4c3ffa,_0x516887);}}static async[a196_0x47aa15(0x135)](_0x5d0caf,_0x617776,_0x35e718,_0x1f5292){const _0x1018eb=a196_0x47aa15,_0x3a0b70=a196_0x2c3dfe[_0x1018eb(0x113)](_0x5d0caf)['toLowerCase']();_0x5d0caf[_0x1018eb(0x101)](_0x1018eb(0x10d))&&(_0x617776=_0x617776[_0x1018eb(0x121)](/\.tpl$/,''));const _0x467569=[_0x1018eb(0x108),_0x1018eb(0x13c),_0x1018eb(0x10c),'.js','.json','.md',_0x1018eb(0x10a),_0x1018eb(0x138),_0x1018eb(0x10d)];if(_0x467569[_0x1018eb(0x11a)](_0x3a0b70)||_0x5d0caf[_0x1018eb(0x101)](_0x1018eb(0x10d))){const _0x5b805d=await a196_0x1dd365[_0x1018eb(0x124)][_0x1018eb(0x106)](_0x5d0caf,_0x1018eb(0xff)),_0x3cdd0e=this[_0x1018eb(0x118)](_0x5b805d,_0x35e718,_0x1f5292);await a196_0x1dd365[_0x1018eb(0x124)][_0x1018eb(0x100)](_0x617776,_0x3cdd0e,_0x1018eb(0xff));}else await a196_0x1dd365[_0x1018eb(0x124)]['copyFile'](_0x5d0caf,_0x617776);}}
1
+ const a196_0x4fb692=a196_0x2460;(function(_0x5158d0,_0xf4f5c2){const _0x34de83=a196_0x2460,_0x9c1358=_0x5158d0();while(!![]){try{const _0xc721ee=-parseInt(_0x34de83(0x220))/0x1+-parseInt(_0x34de83(0x214))/0x2*(parseInt(_0x34de83(0x226))/0x3)+parseInt(_0x34de83(0x223))/0x4+parseInt(_0x34de83(0x1df))/0x5*(parseInt(_0x34de83(0x20d))/0x6)+parseInt(_0x34de83(0x1f0))/0x7*(-parseInt(_0x34de83(0x202))/0x8)+parseInt(_0x34de83(0x21e))/0x9+parseInt(_0x34de83(0x203))/0xa;if(_0xc721ee===_0xf4f5c2)break;else _0x9c1358['push'](_0x9c1358['shift']());}catch(_0x3133f8){_0x9c1358['push'](_0x9c1358['shift']());}}}(a196_0x5450,0x1da46));import a196_0x5674ef from'node:fs';function a196_0x2460(_0x4eb6c1,_0x11c328){_0x4eb6c1=_0x4eb6c1-0x1df;const _0x545022=a196_0x5450();let _0x246055=_0x545022[_0x4eb6c1];return _0x246055;}function a196_0x5450(){const _0x3d701f=['utf8','\x20},','YourModel','toLowerCase','.js','模板内容替换失败','push','pad','418968FCHIEI','1111130gqstei','replace','join','.scss','\x0a\x20\x20\x20\x20{\x20','error','alias:\x20\x22','padStart','alias','default','24lnDBSR','.tpl','模板内容替换完成','.tsx','isFile','tableName:\x20\x22','name','7338uwTADj','success','slice','readdir','replaceApiContent','isDirectory','tableName','charAt','.ts','getHours','1845423ngnxVE','.jsx','129533xfdJGn','replaceContent','getSeconds','424872CMXfVV','mkdir','toComponentName','102qOKlKC','138035eIdSWA','template','info','getMonth','datasetCode:\x20\x22','message','promises','processDirectory','now','processTemplate','includes','toUpperCase','extname','.json','LOVRABET','writeFile','toISOString','21SFUjhZ','.css','endsWith','formatLocalTimestamp','name:\x20\x22','split','copyFile','toDisplayTitle','getMinutes','map'];a196_0x5450=function(){return _0x3d701f;};return a196_0x5450();}import a196_0x167f1e from'node:path';import{logger}from'../utils/logger.js';import{getCliVersion}from'../utils/version.js';const CLI_VERSION=getCliVersion();export class TemplateReplacer{static[a196_0x4fb692(0x201)](_0x4eed3c){const _0xd70336=a196_0x4fb692;return String(_0x4eed3c)[_0xd70336(0x20a)](0x2,'0');}static[a196_0x4fb692(0x1f3)](_0x9c9c96){const _0x40ca65=a196_0x4fb692,_0x48b27c=_0x9c9c96['getFullYear'](),_0x5d095d=this[_0x40ca65(0x201)](_0x9c9c96[_0x40ca65(0x1e2)]()+0x1),_0x484176=this[_0x40ca65(0x201)](_0x9c9c96['getDate']()),_0x1c3fca=this[_0x40ca65(0x201)](_0x9c9c96[_0x40ca65(0x21d)]()),_0x431de9=this[_0x40ca65(0x201)](_0x9c9c96[_0x40ca65(0x1f8)]()),_0x19b3e9=this[_0x40ca65(0x201)](_0x9c9c96[_0x40ca65(0x222)]());return{'createdAt':_0x48b27c+'-'+_0x5d095d+'-'+_0x484176+'\x20'+_0x1c3fca+':'+_0x431de9+':'+_0x19b3e9,'createdDate':_0x48b27c+'-'+_0x5d095d+'-'+_0x484176,'createdTime':_0x1c3fca+':'+_0x431de9+':'+_0x19b3e9};}static[a196_0x4fb692(0x225)](_0x356b9d){const _0x45a879=a196_0x4fb692,_0x5ae56f=_0x356b9d['split']('/')['pop']()||_0x356b9d;return _0x5ae56f[_0x45a879(0x1f5)]('-')[_0x45a879(0x1f9)](_0x4ef9bd=>_0x4ef9bd[_0x45a879(0x21b)](0x0)[_0x45a879(0x1ea)]()+_0x4ef9bd['slice'](0x1)[_0x45a879(0x1fd)]())[_0x45a879(0x205)]('');}static[a196_0x4fb692(0x1f7)](_0x3e5d17){const _0x2a541f=a196_0x4fb692,_0x1c84ab=_0x3e5d17[_0x2a541f(0x1f5)]('/')['pop']()||_0x3e5d17;return _0x1c84ab['split']('-')[_0x2a541f(0x1f9)](_0x14e33a=>_0x14e33a['charAt'](0x0)[_0x2a541f(0x1ea)]()+_0x14e33a[_0x2a541f(0x216)](0x1)[_0x2a541f(0x1fd)]())[_0x2a541f(0x205)]('\x20');}static[a196_0x4fb692(0x221)](_0x56991f,_0x20e5db,_0x56b69d){const _0x5d4816=a196_0x4fb692,_0x3d8cb9=this[_0x5d4816(0x225)](_0x20e5db),_0x296f01=this['toDisplayTitle'](_0x20e5db),{createdAt:_0x4faf6e,createdDate:_0x1b04e2,createdTime:_0x33f705}=this[_0x5d4816(0x1f3)](new Date());let _0x44e839=_0x56991f[_0x5d4816(0x204)](/\{CliVersion\}/g,CLI_VERSION)[_0x5d4816(0x204)](/\{ComponentName\}/g,_0x3d8cb9)[_0x5d4816(0x204)](/\{DisplayTitle\}/g,_0x296f01)[_0x5d4816(0x204)](/\{PageName\}/g,_0x20e5db)['replace'](/\{TemplateName\}/g,_0x56b69d)[_0x5d4816(0x204)](/\{CreatedAt\}/g,_0x4faf6e)[_0x5d4816(0x204)](/\{CreatedDate\}/g,_0x1b04e2)[_0x5d4816(0x204)](/\{CreatedTime\}/g,_0x33f705);return _0x44e839;}static[a196_0x4fb692(0x218)](_0x2613e4,_0x31bbb4,_0x5e271f,_0xa8f5d,_0x51fe56,_0x463085,_0x4eaf2a,_0x2cd7db){const _0x56cee6=a196_0x4fb692,_0x52c53f=new Date(),_0x3b6403=_0x52c53f[_0x56cee6(0x1ef)](),_0x49c995=_0x5e271f[_0x56cee6(0x1f9)](_0x5ca1c8=>{const _0x569658=_0x56cee6,_0x4e9186=[_0x569658(0x1e3)+_0x5ca1c8['datasetCode']+'\x22',_0x569658(0x212)+_0x5ca1c8[_0x569658(0x21a)]+'\x22',_0x569658(0x1f4)+_0x5ca1c8[_0x569658(0x213)]+'\x22'];return _0x5ca1c8[_0x569658(0x20b)]&&_0x4e9186[_0x569658(0x200)](_0x569658(0x209)+_0x5ca1c8[_0x569658(0x20b)]+'\x22'),_0x569658(0x207)+_0x4e9186[_0x569658(0x205)](',\x20')+_0x569658(0x1fb);})[_0x56cee6(0x205)](''),_0x31434c=_0xa8f5d||_0x5e271f[0x0]?.[_0x56cee6(0x20b)]||_0x56cee6(0x1fc);let _0x62cbec=_0x2613e4['replace'](/\{AppCode\}/g,_0x31bbb4)[_0x56cee6(0x204)](/\{ModelConfigs\}/g,_0x49c995)[_0x56cee6(0x204)](/\{ExampleModelName\}/g,_0x31434c)[_0x56cee6(0x204)](/\{ApiFileName\}/g,_0x51fe56||'api')[_0x56cee6(0x204)](/\{ConfigName\}/g,_0x463085||_0x56cee6(0x20c))[_0x56cee6(0x204)](/\{ClientConfigParam\}/g,_0x4eaf2a||'')[_0x56cee6(0x204)](/\{VarPrefix\}/g,_0x2cd7db||_0x56cee6(0x1ed))[_0x56cee6(0x204)](/\{CreatedAt\}/g,_0x3b6403);return _0x62cbec;}static async[a196_0x4fb692(0x1e8)](_0x27929a,_0x19e0f6,_0x491be4,_0x2d23ac,_0x3a3ba0=!![]){const _0x5cbb42=a196_0x4fb692,_0x16546b=Date[_0x5cbb42(0x1e7)]();try{_0x3a3ba0&&logger[_0x5cbb42(0x1e1)]('template','开始处理模板内容替换',{'templatePath':_0x27929a,'targetPath':_0x19e0f6,'pageName':_0x491be4,'templateName':_0x2d23ac});await a196_0x5674ef['promises']['mkdir'](_0x19e0f6,{'recursive':!![]}),await this['processDirectory'](_0x27929a,_0x19e0f6,_0x491be4,_0x2d23ac);if(_0x3a3ba0){const _0x428569=Date[_0x5cbb42(0x1e7)]()-_0x16546b;logger[_0x5cbb42(0x215)]('template',_0x5cbb42(0x20f),_0x428569,{'pageName':_0x491be4,'templateName':_0x2d23ac});}}catch(_0x513a08){if(_0x3a3ba0){const _0x3f6ba1=Date[_0x5cbb42(0x1e7)]()-_0x16546b;logger[_0x5cbb42(0x208)](_0x5cbb42(0x1e0),_0x5cbb42(0x1ff),{'templatePath':_0x27929a,'targetPath':_0x19e0f6,'pageName':_0x491be4,'templateName':_0x2d23ac,'error':_0x513a08 instanceof Error?_0x513a08[_0x5cbb42(0x1e4)]:String(_0x513a08),'duration':_0x3f6ba1});}throw _0x513a08;}}static async['processDirectory'](_0x429990,_0x159a67,_0x1dcd26,_0x5ba026){const _0x4ab28c=a196_0x4fb692,_0x5ea5aa=await a196_0x5674ef[_0x4ab28c(0x1e5)][_0x4ab28c(0x217)](_0x429990,{'withFileTypes':!![]});for(const _0x2589fa of _0x5ea5aa){const _0x209122=a196_0x167f1e[_0x4ab28c(0x205)](_0x429990,_0x2589fa[_0x4ab28c(0x213)]);let _0xdcc879=a196_0x167f1e['join'](_0x159a67,_0x2589fa[_0x4ab28c(0x213)]);_0x2589fa[_0x4ab28c(0x213)][_0x4ab28c(0x1f2)](_0x4ab28c(0x20e))&&(_0xdcc879=a196_0x167f1e[_0x4ab28c(0x205)](_0x159a67,_0x2589fa[_0x4ab28c(0x213)][_0x4ab28c(0x204)](/\.tpl$/,'')));if(_0x2589fa[_0x4ab28c(0x219)]())await a196_0x5674ef[_0x4ab28c(0x1e5)][_0x4ab28c(0x224)](_0xdcc879,{'recursive':!![]}),await this[_0x4ab28c(0x1e6)](_0x209122,_0xdcc879,_0x1dcd26,_0x5ba026);else _0x2589fa[_0x4ab28c(0x211)]()&&await this['processFile'](_0x209122,_0xdcc879,_0x1dcd26,_0x5ba026);}}static async['processFile'](_0x177cf0,_0x346149,_0x3bacab,_0x5c59a7){const _0xc5d40e=a196_0x4fb692,_0x2e74ab=a196_0x167f1e[_0xc5d40e(0x1eb)](_0x177cf0)[_0xc5d40e(0x1fd)]();_0x177cf0[_0xc5d40e(0x1f2)](_0xc5d40e(0x20e))&&(_0x346149=_0x346149[_0xc5d40e(0x204)](/\.tpl$/,''));const _0x522d81=[_0xc5d40e(0x210),_0xc5d40e(0x21c),_0xc5d40e(0x21f),_0xc5d40e(0x1fe),_0xc5d40e(0x1ec),'.md',_0xc5d40e(0x1f1),_0xc5d40e(0x206),_0xc5d40e(0x20e)];if(_0x522d81[_0xc5d40e(0x1e9)](_0x2e74ab)||_0x177cf0[_0xc5d40e(0x1f2)](_0xc5d40e(0x20e))){const _0x8ad128=await a196_0x5674ef[_0xc5d40e(0x1e5)]['readFile'](_0x177cf0,'utf8'),_0x4b8ded=this[_0xc5d40e(0x221)](_0x8ad128,_0x3bacab,_0x5c59a7);await a196_0x5674ef['promises'][_0xc5d40e(0x1ee)](_0x346149,_0x4b8ded,_0xc5d40e(0x1fa));}else await a196_0x5674ef[_0xc5d40e(0x1e5)][_0xc5d40e(0x1f6)](_0x177cf0,_0x346149);}}
@@ -1 +1 @@
1
- (function(_0x3e58e7,_0x300075){var _0x4fa07c=a197_0x2519,_0x164716=_0x3e58e7();while(!![]){try{var _0x33c517=parseInt(_0x4fa07c(0xca))/0x1*(-parseInt(_0x4fa07c(0xc7))/0x2)+parseInt(_0x4fa07c(0xc6))/0x3+-parseInt(_0x4fa07c(0xc8))/0x4*(-parseInt(_0x4fa07c(0xcb))/0x5)+-parseInt(_0x4fa07c(0xc5))/0x6*(-parseInt(_0x4fa07c(0xc4))/0x7)+-parseInt(_0x4fa07c(0xc9))/0x8+parseInt(_0x4fa07c(0xcc))/0x9+-parseInt(_0x4fa07c(0xcd))/0xa;if(_0x33c517===_0x300075)break;else _0x164716['push'](_0x164716['shift']());}catch(_0x305cfd){_0x164716['push'](_0x164716['shift']());}}}(a197_0x2738,0x56492));import{VERSION}from'../generated/build-info.js';function a197_0x2519(_0x2c73c9,_0x4d5505){_0x2c73c9=_0x2c73c9-0xc4;var _0x273875=a197_0x2738();var _0x251963=_0x273875[_0x2c73c9];return _0x251963;}function a197_0x2738(){var _0xe4a32a=['118749ljXKHy','2598730ouQJRu','1066248yoioRP','8333150ZsYWVp','7VeIBSy','2534508GxoBRI','1672359yVaDSz','6JedQle','4OsWMEh','600808DuvvcI'];a197_0x2738=function(){return _0xe4a32a;};return a197_0x2738();}export function getCliVersion(){return VERSION;}
1
+ (function(_0x1f2f44,_0x22b6b5){var _0x329ef6=a197_0x5a94,_0x4f6348=_0x1f2f44();while(!![]){try{var _0x37b9e1=parseInt(_0x329ef6(0xe1))/0x1*(parseInt(_0x329ef6(0xdb))/0x2)+parseInt(_0x329ef6(0xe0))/0x3*(-parseInt(_0x329ef6(0xdd))/0x4)+-parseInt(_0x329ef6(0xdf))/0x5*(parseInt(_0x329ef6(0xdc))/0x6)+parseInt(_0x329ef6(0xe3))/0x7*(-parseInt(_0x329ef6(0xe6))/0x8)+-parseInt(_0x329ef6(0xde))/0x9+parseInt(_0x329ef6(0xe2))/0xa*(-parseInt(_0x329ef6(0xe5))/0xb)+parseInt(_0x329ef6(0xe4))/0xc;if(_0x37b9e1===_0x22b6b5)break;else _0x4f6348['push'](_0x4f6348['shift']());}catch(_0x596f49){_0x4f6348['push'](_0x4f6348['shift']());}}}(a197_0x1f06,0xe423a));function a197_0x5a94(_0x24a5ed,_0x33d663){_0x24a5ed=_0x24a5ed-0xdb;var _0x1f06de=a197_0x1f06();var _0x5a94b1=_0x1f06de[_0x24a5ed];return _0x5a94b1;}function a197_0x1f06(){var _0x5d95ea=['1TYWGFB','10568090iwTvpq','139146UrcLHZ','39087432XBFVdK','11SzlVDs','392WNDiYa','2740538XSmorr','414mlctsL','199140dapgll','2468331lSZeke','93365CWgXCJ','6nYjCgi'];a197_0x1f06=function(){return _0x5d95ea;};return a197_0x1f06();}import{VERSION}from'../generated/build-info.js';export function getCliVersion(){return VERSION;}
@@ -1 +1 @@
1
- (function(_0x1e6635,_0x434725){var _0xa231f3=a198_0x2a28,_0x56f3e6=_0x1e6635();while(!![]){try{var _0x28583a=-parseInt(_0xa231f3(0xb0))/0x1+-parseInt(_0xa231f3(0xb2))/0x2+parseInt(_0xa231f3(0xb3))/0x3+-parseInt(_0xa231f3(0xb1))/0x4+-parseInt(_0xa231f3(0xb4))/0x5+parseInt(_0xa231f3(0xae))/0x6+parseInt(_0xa231f3(0xaf))/0x7;if(_0x28583a===_0x434725)break;else _0x56f3e6['push'](_0x56f3e6['shift']());}catch(_0x26ecf8){_0x56f3e6['push'](_0x56f3e6['shift']());}}}(a198_0x4362,0xc0f94));function a198_0x2a28(_0x39b7c8,_0x69e3f3){_0x39b7c8=_0x39b7c8-0xae;var _0x436255=a198_0x4362();var _0x2a2840=_0x436255[_0x39b7c8];return _0x2a2840;}import{setActiveCookie,clearActiveCookie}from'../core/api-client.js';export async function withActiveCookie(_0x4eaa3c,_0x2d62c5){setActiveCookie(_0x4eaa3c);try{return await _0x2d62c5();}finally{clearActiveCookie();}}function a198_0x4362(){var _0x4fcf67=['1126611IHLvRY','1329545heiNyt','3782628OtakWD','18724629jYzimQ','819064pxCFaq','2263320NQeEwu','2479398ASbbze'];a198_0x4362=function(){return _0x4fcf67;};return a198_0x4362();}
1
+ (function(_0x20f17e,_0x13633b){var _0x3a5389=a198_0x4820,_0x26d414=_0x20f17e();while(!![]){try{var _0x23c710=-parseInt(_0x3a5389(0x102))/0x1*(parseInt(_0x3a5389(0x104))/0x2)+parseInt(_0x3a5389(0xfb))/0x3*(-parseInt(_0x3a5389(0xfa))/0x4)+-parseInt(_0x3a5389(0xfc))/0x5*(parseInt(_0x3a5389(0xff))/0x6)+parseInt(_0x3a5389(0x103))/0x7*(-parseInt(_0x3a5389(0x101))/0x8)+parseInt(_0x3a5389(0xfd))/0x9+-parseInt(_0x3a5389(0xf8))/0xa*(-parseInt(_0x3a5389(0x100))/0xb)+-parseInt(_0x3a5389(0xf9))/0xc*(-parseInt(_0x3a5389(0xfe))/0xd);if(_0x23c710===_0x13633b)break;else _0x26d414['push'](_0x26d414['shift']());}catch(_0x4545eb){_0x26d414['push'](_0x26d414['shift']());}}}(a198_0x391b,0x2fc80));function a198_0x4820(_0x19aba5,_0x15c58b){_0x19aba5=_0x19aba5-0xf8;var _0x391b8f=a198_0x391b();var _0x48204e=_0x391b8f[_0x19aba5];return _0x48204e;}import{setActiveCookie,clearActiveCookie}from'../core/api-client.js';function a198_0x391b(){var _0x424d9e=['130KPRhkD','510YChSoA','486035JyxaQx','122872Emvyrd','61485qcexTt','91YBtoWK','8qwWlMN','70ziPJth','348468JHXPuX','2372MKYMkq','747UkjTlC','5045YdXCCD','2475504eHRvQX'];a198_0x391b=function(){return _0x424d9e;};return a198_0x391b();}export async function withActiveCookie(_0x495782,_0x49ae08){setActiveCookie(_0x495782);try{return await _0x49ae08();}finally{clearActiveCookie();}}
@@ -1 +1 @@
1
- (function(_0x2179e1,_0x11a14f){var _0x39d357=a199_0x29dc,_0x438b1d=_0x2179e1();while(!![]){try{var _0x163171=-parseInt(_0x39d357(0x185))/0x1*(-parseInt(_0x39d357(0x189))/0x2)+-parseInt(_0x39d357(0x187))/0x3+parseInt(_0x39d357(0x184))/0x4+-parseInt(_0x39d357(0x182))/0x5+-parseInt(_0x39d357(0x188))/0x6*(parseInt(_0x39d357(0x186))/0x7)+parseInt(_0x39d357(0x18b))/0x8*(-parseInt(_0x39d357(0x181))/0x9)+parseInt(_0x39d357(0x183))/0xa;if(_0x163171===_0x11a14f)break;else _0x438b1d['push'](_0x438b1d['shift']());}catch(_0x381e53){_0x438b1d['push'](_0x438b1d['shift']());}}}(a199_0x2632,0x74bc0));function a199_0x2632(){var _0x5d108e=['stderr','1184bnSwbB','54666tbzVcc','1737930MQZDlA','19711020phVBAT','1947200HdhhTG','452Yyymzn','133zQiBZC','2774889ZWgRUQ','16242hRBxoR','1076CCfYJw'];a199_0x2632=function(){return _0x5d108e;};return a199_0x2632();}function a199_0x29dc(_0x17836c,_0x263b82){_0x17836c=_0x17836c-0x181;var _0x263281=a199_0x2632();var _0x29dc66=_0x263281[_0x17836c];return _0x29dc66;}export function writeCliSideChannelLine(_0x38059b){var _0x3fbc32=a199_0x29dc;process[_0x3fbc32(0x18a)]['write'](_0x38059b+'\x0a');}
1
+ (function(_0x3eda99,_0x24df31){var _0xd70c1d=a199_0x40f6,_0x10c41a=_0x3eda99();while(!![]){try{var _0x24c9e0=-parseInt(_0xd70c1d(0x65))/0x1+-parseInt(_0xd70c1d(0x6b))/0x2+parseInt(_0xd70c1d(0x68))/0x3+parseInt(_0xd70c1d(0x6a))/0x4+-parseInt(_0xd70c1d(0x67))/0x5*(parseInt(_0xd70c1d(0x66))/0x6)+-parseInt(_0xd70c1d(0x69))/0x7+parseInt(_0xd70c1d(0x64))/0x8;if(_0x24c9e0===_0x24df31)break;else _0x10c41a['push'](_0x10c41a['shift']());}catch(_0x3b2940){_0x10c41a['push'](_0x10c41a['shift']());}}}(a199_0x41c7,0x39fbb));function a199_0x40f6(_0x1d9d01,_0x582770){_0x1d9d01=_0x1d9d01-0x64;var _0x41c7d0=a199_0x41c7();var _0x40f6c8=_0x41c7d0[_0x1d9d01];return _0x40f6c8;}export function writeCliSideChannelLine(_0x2cf009){var _0x499130=a199_0x40f6;process[_0x499130(0x6c)]['write'](_0x2cf009+'\x0a');}function a199_0x41c7(){var _0x53da39=['5TkhEZP','161022JnYCSZ','854483vfkrGQ','507232bGvFAV','290014xROISp','stderr','5400632jOYejB','53707zmLBGD','1783674DqwXfp'];a199_0x41c7=function(){return _0x53da39;};return a199_0x41c7();}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lovrabet/rabetbase-cli",
3
- "version": "2.1.7-beta.2",
3
+ "version": "2.1.7-beta.3",
4
4
  "license": "SEE LICENSE IN LICENSE",
5
5
  "repository": {
6
6
  "type": "git",