@lovrabet/rabetbase-cli 2.1.14-beta.0 → 2.1.14-beta.2

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 (203) hide show
  1. package/README.md +18 -0
  2. package/lib/api/api-doc.js +1 -1
  3. package/lib/api/fetch-model-list.js +1 -1
  4. package/lib/api/generate-api-file.js +1 -1
  5. package/lib/auth/auth-server-ui.js +1 -1
  6. package/lib/auth/auth-server.js +1 -1
  7. package/lib/auth/constant.js +1 -1
  8. package/lib/auth/get-cookie.js +1 -1
  9. package/lib/auth/get-session-user.js +1 -1
  10. package/lib/auth/is-session-valid.js +1 -1
  11. package/lib/auth/login-success-html.js +1 -1
  12. package/lib/auth/logout.js +1 -1
  13. package/lib/cli-flags.js +1 -1
  14. package/lib/cli.js +1 -1
  15. package/lib/commands/api/generate.js +1 -1
  16. package/lib/commands/api/index.js +1 -1
  17. package/lib/commands/api/list.js +1 -1
  18. package/lib/commands/api/pull.js +1 -1
  19. package/lib/commands/api/shared.js +1 -1
  20. package/lib/commands/app/add.js +1 -1
  21. package/lib/commands/app/discover.js +1 -1
  22. package/lib/commands/app/index.js +1 -1
  23. package/lib/commands/app/list.js +1 -1
  24. package/lib/commands/app/remove.js +1 -1
  25. package/lib/commands/app/shared.js +1 -1
  26. package/lib/commands/app/use.js +1 -1
  27. package/lib/commands/auth/index.js +1 -1
  28. package/lib/commands/bff/create.js +1 -1
  29. package/lib/commands/bff/delete.js +1 -1
  30. package/lib/commands/bff/detail.js +1 -1
  31. package/lib/commands/bff/index.js +1 -1
  32. package/lib/commands/bff/list.js +1 -1
  33. package/lib/commands/bff/pull.js +1 -1
  34. package/lib/commands/bff/push.js +1 -1
  35. package/lib/commands/bff/status.js +1 -1
  36. package/lib/commands/cli-update.js +1 -1
  37. package/lib/commands/codegen/index.js +1 -1
  38. package/lib/commands/codegen/sdk.js +1 -1
  39. package/lib/commands/codegen/sql.js +1 -1
  40. package/lib/commands/common/app-selector.js +1 -1
  41. package/lib/commands/common/flags.js +1 -1
  42. package/lib/commands/common/validate.js +1 -1
  43. package/lib/commands/config/get.js +1 -1
  44. package/lib/commands/config/index.js +1 -1
  45. package/lib/commands/config/list.js +1 -1
  46. package/lib/commands/config/set.js +1 -1
  47. package/lib/commands/config/shared.js +1 -1
  48. package/lib/commands/data/filter.js +1 -1
  49. package/lib/commands/data/getOne.js +1 -1
  50. package/lib/commands/data/index.js +1 -1
  51. package/lib/commands/data/shared.js +1 -1
  52. package/lib/commands/dataset/capability.js +1 -1
  53. package/lib/commands/dataset/delete.js +1 -1
  54. package/lib/commands/dataset/detail.js +1 -1
  55. package/lib/commands/dataset/extend-update.js +1 -0
  56. package/lib/commands/dataset/field-update.js +1 -1
  57. package/lib/commands/dataset/index.js +1 -1
  58. package/lib/commands/dataset/link-create.js +1 -1
  59. package/lib/commands/dataset/link-delete.js +1 -1
  60. package/lib/commands/dataset/link-shared.js +1 -1
  61. package/lib/commands/dataset/link-update.js +1 -1
  62. package/lib/commands/dataset/links.js +1 -1
  63. package/lib/commands/dataset/list.js +1 -1
  64. package/lib/commands/dataset/operations.js +1 -1
  65. package/lib/commands/dataset/rename.js +1 -1
  66. package/lib/commands/db/analyze-cancel.js +1 -1
  67. package/lib/commands/db/analyze-start.js +1 -1
  68. package/lib/commands/db/analyze-status.js +1 -1
  69. package/lib/commands/db/create.js +1 -1
  70. package/lib/commands/db/delete.js +1 -1
  71. package/lib/commands/db/detail.js +1 -1
  72. package/lib/commands/db/diff.js +1 -1
  73. package/lib/commands/db/index.js +1 -1
  74. package/lib/commands/db/list.js +1 -1
  75. package/lib/commands/db/shared.js +1 -1
  76. package/lib/commands/db/tables.js +1 -1
  77. package/lib/commands/db/test.js +1 -1
  78. package/lib/commands/db/update.js +1 -1
  79. package/lib/commands/doctor.js +1 -1
  80. package/lib/commands/init/index.js +1 -1
  81. package/lib/commands/issue/index.js +1 -1
  82. package/lib/commands/issue/nudge.js +1 -1
  83. package/lib/commands/issue/report.js +1 -1
  84. package/lib/commands/issue/shared.js +1 -1
  85. package/lib/commands/logs/index.js +1 -1
  86. package/lib/commands/menu/index.js +1 -1
  87. package/lib/commands/menu/shared/compare-table.js +1 -1
  88. package/lib/commands/menu/shared/index.js +1 -1
  89. package/lib/commands/menu/shared/inquirer.js +1 -1
  90. package/lib/commands/menu/shared/local-pages.js +1 -1
  91. package/lib/commands/menu/shared/logic.js +1 -1
  92. package/lib/commands/menu/shared/service.js +1 -1
  93. package/lib/commands/menu/shared/sync-core.js +1 -1
  94. package/lib/commands/menu/shared/update-core.js +1 -1
  95. package/lib/commands/menu/shared/valid-url.js +1 -1
  96. package/lib/commands/menu/sync.js +1 -1
  97. package/lib/commands/menu/update.js +1 -1
  98. package/lib/commands/page/generate-start.js +1 -1
  99. package/lib/commands/page/generate-status.js +1 -1
  100. package/lib/commands/page/index.js +1 -1
  101. package/lib/commands/page/pull.js +1 -1
  102. package/lib/commands/page/push.js +1 -1
  103. package/lib/commands/page/shared.js +1 -1
  104. package/lib/commands/page/standard-page-status.js +1 -1
  105. package/lib/commands/page/sync.js +1 -1
  106. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  107. package/lib/commands/project/create/format-elapsed.js +1 -1
  108. package/lib/commands/project/create/main.js +1 -1
  109. package/lib/commands/project/create/non-interactive.js +1 -1
  110. package/lib/commands/project/create/project-template-path.js +1 -1
  111. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  112. package/lib/commands/project/create/use-format-code.js +1 -1
  113. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  114. package/lib/commands/project/index.js +1 -1
  115. package/lib/commands/project/init.js +1 -1
  116. package/lib/commands/project/upgrade.js +1 -1
  117. package/lib/commands/registry.js +1 -1
  118. package/lib/commands/run/index.js +1 -1
  119. package/lib/commands/schema.js +1 -1
  120. package/lib/commands/skill/index.js +1 -1
  121. package/lib/commands/sql/create.js +1 -1
  122. package/lib/commands/sql/delete.js +1 -1
  123. package/lib/commands/sql/detail.js +1 -1
  124. package/lib/commands/sql/exec.js +1 -1
  125. package/lib/commands/sql/index.js +1 -1
  126. package/lib/commands/sql/list.js +1 -1
  127. package/lib/commands/sql/pull.js +1 -1
  128. package/lib/commands/sql/push.js +1 -1
  129. package/lib/commands/sql/save.js +1 -1
  130. package/lib/commands/sql/shared.js +1 -1
  131. package/lib/commands/sql/status.js +1 -1
  132. package/lib/commands/sql/validate.js +1 -1
  133. package/lib/config/schema.js +1 -1
  134. package/lib/constant/cdn.js +1 -1
  135. package/lib/constant/cli.js +1 -1
  136. package/lib/constant/defaults.js +1 -1
  137. package/lib/constant/domain.js +1 -1
  138. package/lib/constant/env.js +1 -1
  139. package/lib/constant/output.js +1 -1
  140. package/lib/constant/paths.js +1 -1
  141. package/lib/constant/risk.js +1 -1
  142. package/lib/context.js +1 -1
  143. package/lib/core/alias-resolver.js +1 -1
  144. package/lib/core/api-client.js +1 -1
  145. package/lib/core/bff/config.js +1 -1
  146. package/lib/core/bff/file-system.js +1 -1
  147. package/lib/core/bff/hash.js +1 -1
  148. package/lib/core/bff/lock.js +1 -1
  149. package/lib/core/bff/utils.js +1 -1
  150. package/lib/core/db-resolver.js +1 -1
  151. package/lib/core/page/file-system.js +1 -1
  152. package/lib/core/page/hash.js +1 -1
  153. package/lib/core/page/lock.js +1 -1
  154. package/lib/core/sql-sync/config.js +1 -1
  155. package/lib/core/sql-sync/file-system.js +1 -1
  156. package/lib/core/sql-sync/hash.js +1 -1
  157. package/lib/core/sql-sync/lock.js +1 -1
  158. package/lib/core/sql-sync/utils.js +1 -1
  159. package/lib/core/sql-validator.js +1 -1
  160. package/lib/errors.js +1 -1
  161. package/lib/framework/build-all-flags.js +1 -1
  162. package/lib/framework/flags.js +1 -1
  163. package/lib/framework/help.js +1 -1
  164. package/lib/framework/index.js +1 -1
  165. package/lib/framework/output.js +1 -1
  166. package/lib/framework/response.js +1 -1
  167. package/lib/framework/runner-alias.js +1 -1
  168. package/lib/framework/runner.js +1 -1
  169. package/lib/framework/schema-export.js +1 -1
  170. package/lib/framework/types.js +1 -1
  171. package/lib/generated/build-info.js +1 -1
  172. package/lib/help.js +1 -1
  173. package/lib/skills/main.js +1 -1
  174. package/lib/skills/npx-skills-add.js +1 -1
  175. package/lib/telemetry/cli-command-trace.js +1 -1
  176. package/lib/telemetry/cli-help-trace.js +1 -1
  177. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  178. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  179. package/lib/telemetry/send-cli-trace-log.js +1 -1
  180. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  181. package/lib/utils/ai_config.js +1 -1
  182. package/lib/utils/apply-jq-filter.js +1 -1
  183. package/lib/utils/cdn-config.js +1 -1
  184. package/lib/utils/check-sdk-version.js +1 -1
  185. package/lib/utils/cli-version-check.js +1 -1
  186. package/lib/utils/cli-version-policy.js +1 -1
  187. package/lib/utils/config.js +1 -1
  188. package/lib/utils/copy-directory.js +1 -1
  189. package/lib/utils/entity-with-id.js +1 -1
  190. package/lib/utils/file-utils.js +1 -1
  191. package/lib/utils/guides-cdn.js +1 -1
  192. package/lib/utils/http-client.js +1 -1
  193. package/lib/utils/is-non-interactive.js +1 -1
  194. package/lib/utils/logger.js +1 -1
  195. package/lib/utils/params.js +1 -1
  196. package/lib/utils/platform.js +1 -1
  197. package/lib/utils/rules-cdn.js +1 -1
  198. package/lib/utils/sleep.js +1 -1
  199. package/lib/utils/template-replacer.js +1 -1
  200. package/lib/utils/version.js +1 -1
  201. package/lib/utils/with-active-cookie.js +1 -1
  202. package/lib/utils/write-cli-side-channel.js +1 -1
  203. package/package.json +3 -3
@@ -1 +1 @@
1
- (function(_0x5055d2,_0x152ed2){const _0x500695=a192_0x5679,_0x2def9b=_0x5055d2();while(!![]){try{const _0x47fb19=-parseInt(_0x500695(0x1a0))/0x1*(parseInt(_0x500695(0x19f))/0x2)+parseInt(_0x500695(0x1a4))/0x3+-parseInt(_0x500695(0x1a1))/0x4+-parseInt(_0x500695(0x199))/0x5*(-parseInt(_0x500695(0x19a))/0x6)+-parseInt(_0x500695(0x19b))/0x7*(-parseInt(_0x500695(0x19d))/0x8)+parseInt(_0x500695(0x19e))/0x9*(-parseInt(_0x500695(0x19c))/0xa)+parseInt(_0x500695(0x1a3))/0xb;if(_0x47fb19===_0x152ed2)break;else _0x2def9b['push'](_0x2def9b['shift']());}catch(_0x195af5){_0x2def9b['push'](_0x2def9b['shift']());}}}(a192_0x465e,0x65c22));import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';function a192_0x5679(_0x110adc,_0x46740b){_0x110adc=_0x110adc-0x199;const _0x465ee2=a192_0x465e();let _0x56799d=_0x465ee2[_0x110adc];return _0x56799d;}import{join}from'node:path';export async function copyDir(_0xa69eb3,_0x231f7e){const _0x5bd564=a192_0x5679,_0x273d04=statSync(_0xa69eb3);if(_0x273d04[_0x5bd564(0x1a2)]()){!existsSync(_0x231f7e)&&mkdirSync(_0x231f7e,{'recursive':!![]});const _0x4c9d60=readdirSync(_0xa69eb3);for(const _0x498538 of _0x4c9d60){await copyDir(join(_0xa69eb3,_0x498538),join(_0x231f7e,_0x498538));}}else copyFileSync(_0xa69eb3,_0x231f7e);}export function ensureDir(_0x1bead7){!existsSync(_0x1bead7)&&mkdirSync(_0x1bead7,{'recursive':!![]});}export function pathExists(_0x267eb7){return existsSync(_0x267eb7);}function a192_0x465e(){const _0x17b09f=['144335xSjxVp','90JXxutR','28756JNrcHK','10AvifhV','632ZabaxS','3920499xGrVHz','514944RpDWku','1HDAqjK','2257100cwWFVt','isDirectory','1771946TrZeMr','2266611CEgeOj'];a192_0x465e=function(){return _0x17b09f;};return a192_0x465e();}
1
+ (function(_0xb49c85,_0x299862){const _0x2deb1c=a193_0x59a7,_0x45e463=_0xb49c85();while(!![]){try{const _0x481117=parseInt(_0x2deb1c(0x104))/0x1*(-parseInt(_0x2deb1c(0x102))/0x2)+parseInt(_0x2deb1c(0x101))/0x3*(parseInt(_0x2deb1c(0x10d))/0x4)+-parseInt(_0x2deb1c(0x10a))/0x5*(-parseInt(_0x2deb1c(0x107))/0x6)+parseInt(_0x2deb1c(0x108))/0x7*(-parseInt(_0x2deb1c(0x109))/0x8)+-parseInt(_0x2deb1c(0x106))/0x9+parseInt(_0x2deb1c(0x100))/0xa*(-parseInt(_0x2deb1c(0x10c))/0xb)+parseInt(_0x2deb1c(0x103))/0xc*(parseInt(_0x2deb1c(0x10b))/0xd);if(_0x481117===_0x299862)break;else _0x45e463['push'](_0x45e463['shift']());}catch(_0x4f8bda){_0x45e463['push'](_0x45e463['shift']());}}}(a193_0x520a,0x504ed));import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';function a193_0x520a(){const _0x9b5e9b=['2155016mpyWel','315390mzbSeg','3985098SLEkhs','2600279UMNpCs','23992FaHnRb','10nmeyoB','48uunwYu','2FsgzRz','60RvIFCI','547643JQcjqH','isDirectory','3766653ehoUXs','42ZJvSJI','14TvUVPO'];a193_0x520a=function(){return _0x9b5e9b;};return a193_0x520a();}function a193_0x59a7(_0x9b2ac1,_0x19dab9){_0x9b2ac1=_0x9b2ac1-0x100;const _0x520aef=a193_0x520a();let _0x59a733=_0x520aef[_0x9b2ac1];return _0x59a733;}import{join}from'node:path';export async function copyDir(_0x417ea3,_0x2444f1){const _0x61f81b=a193_0x59a7,_0x4d00ee=statSync(_0x417ea3);if(_0x4d00ee[_0x61f81b(0x105)]()){!existsSync(_0x2444f1)&&mkdirSync(_0x2444f1,{'recursive':!![]});const _0xa49017=readdirSync(_0x417ea3);for(const _0x19afa0 of _0xa49017){await copyDir(join(_0x417ea3,_0x19afa0),join(_0x2444f1,_0x19afa0));}}else copyFileSync(_0x417ea3,_0x2444f1);}export function ensureDir(_0x49f18f){!existsSync(_0x49f18f)&&mkdirSync(_0x49f18f,{'recursive':!![]});}export function pathExists(_0x411044){return existsSync(_0x411044);}
@@ -1 +1 @@
1
- const a193_0x26ec9d=a193_0x19d7;(function(_0x5dde15,_0x4ab503){const _0x2219bf=a193_0x19d7,_0x392ec0=_0x5dde15();while(!![]){try{const _0x4a485a=parseInt(_0x2219bf(0x1ba))/0x1*(-parseInt(_0x2219bf(0x1d7))/0x2)+parseInt(_0x2219bf(0x1b5))/0x3*(-parseInt(_0x2219bf(0x1cf))/0x4)+-parseInt(_0x2219bf(0x1d1))/0x5+-parseInt(_0x2219bf(0x1c5))/0x6*(-parseInt(_0x2219bf(0x1c7))/0x7)+parseInt(_0x2219bf(0x1d4))/0x8+parseInt(_0x2219bf(0x1c1))/0x9*(parseInt(_0x2219bf(0x1bd))/0xa)+-parseInt(_0x2219bf(0x1ce))/0xb*(parseInt(_0x2219bf(0x1b7))/0xc);if(_0x4a485a===_0x4ab503)break;else _0x392ec0['push'](_0x392ec0['shift']());}catch(_0x507881){_0x392ec0['push'](_0x392ec0['shift']());}}}(a193_0x1aeb,0x3d3f5));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 _0x9b0f60=a193_0x19d7,_0x2d8cd0=getTemplateBaseUrl();return _0x2d8cd0+_0x9b0f60(0x1b6);}const CACHE_DIR=join(homedir(),a193_0x26ec9d(0x1cd),a193_0x26ec9d(0x1b8));export async function fetchGuidesFromCDN(){const _0x289cd0=a193_0x26ec9d,_0x5b3b13=getGuidesCdnUrl(),_0x1991a5=await fetch(_0x5b3b13,{'headers':{'Accept':_0x289cd0(0x1cb)}});if(!_0x1991a5['ok'])throw new Error(_0x289cd0(0x1be)+_0x1991a5['status']+'\x20'+_0x1991a5[_0x289cd0(0x1b4)]);const _0x1fe449=await _0x1991a5[_0x289cd0(0x1c4)]();if(!_0x1fe449['guides']||typeof _0x1fe449[_0x289cd0(0x1ca)]!==_0x289cd0(0x1c0))throw new Error(_0x289cd0(0x1d3));return _0x1fe449;}export function writeGuidesToProject(_0x47d698,_0x379211,_0x3ec79f='.lovrabet/skill/guides',_0x3734a1){const _0x2f55cf=a193_0x26ec9d,_0x37975d=join(_0x379211,_0x3ec79f);mkdirSync(_0x37975d,{'recursive':!![]});for(const [_0xad2090,_0x34b105]of Object[_0x2f55cf(0x1d5)](_0x47d698[_0x2f55cf(0x1ca)])){let _0x1e3232=_0x34b105[_0x2f55cf(0x1d0)];_0x34b105[_0x2f55cf(0x1c2)]&&(_0x1e3232=appendUpdateTime(_0x1e3232,_0x34b105[_0x2f55cf(0x1c2)])),writeFileSync(join(_0x37975d,_0xad2090+_0x2f55cf(0x1c6)),_0x1e3232,'utf-8');}}export function appendUpdateTime(_0x4ffb06,_0x1c20e8){const _0x20bedb=a193_0x26ec9d;return _0x4ffb06=_0x4ffb06[_0x20bedb(0x1c3)](/\n*>更新时间:.*$/m,''),_0x4ffb06[_0x20bedb(0x1bf)]()+(_0x20bedb(0x1bb)+_0x1c20e8);}function a193_0x19d7(_0x43e716,_0x329c38){_0x43e716=_0x43e716-0x1b3;const _0x1aebd9=a193_0x1aeb();let _0x19d7ef=_0x1aebd9[_0x43e716];return _0x19d7ef;}export function getSkillTemplate(_0x1bc0f3){const _0x2c6202=a193_0x26ec9d;return _0x1bc0f3[_0x2c6202(0x1b9)]?.['content']||'';}export function appendExtendContents(_0x213858,_0x100206,_0x27f298){const _0x1fb7bf=a193_0x26ec9d,_0x31d51f=[];for(const [,_0x2c53de]of Object[_0x1fb7bf(0x1d5)](_0x100206[_0x1fb7bf(0x1ca)])){_0x2c53de[_0x1fb7bf(0x1b3)]&&_0x31d51f[_0x1fb7bf(0x1d6)](_0x2c53de['extendContent'][_0x1fb7bf(0x1bf)]());}if(_0x31d51f[_0x1fb7bf(0x1cc)]===0x0)return _0x213858;return _0x213858[_0x1fb7bf(0x1bf)]()+'\x0a\x0a'+_0x31d51f['join']('\x0a\x0a')+'\x0a';}export function writeSkillFile(_0x3f6131,_0x154764,_0x35d79c){const _0x121469=a193_0x26ec9d,_0x859d77=getSkillTemplate(_0x3f6131);if(!_0x859d77)throw new Error(_0x121469(0x1d2));const _0x506286=dirname(_0x154764);mkdirSync(_0x506286,{'recursive':!![]});let _0x45add6=_0x859d77[_0x121469(0x1c3)](/\{\{IDE_NAME\}\}/g,_0x35d79c);_0x45add6=appendExtendContents(_0x45add6,_0x3f6131),_0x3f6131[_0x121469(0x1b9)]['lastUpdated']&&(_0x45add6=appendUpdateTime(_0x45add6,_0x3f6131[_0x121469(0x1b9)]['lastUpdated'])),writeFileSync(_0x154764,_0x45add6,'utf-8');}export async function installGuides(_0x162219){const _0x5e6682=a193_0x26ec9d,_0x4831b1=await fetchGuidesFromCDN();return writeGuidesToProject(_0x4831b1,_0x162219),Object['keys'](_0x4831b1[_0x5e6682(0x1ca)])[_0x5e6682(0x1cc)];}export function getGuidesSummary(_0x41e831){const _0xa8700=a193_0x26ec9d;return Object[_0xa8700(0x1d5)](_0x41e831[_0xa8700(0x1ca)])[_0xa8700(0x1c9)](([_0x4e681d,_0x341914])=>({'key':_0x4e681d,'title':_0x341914[_0xa8700(0x1c8)],'path':_0x341914[_0xa8700(0x1bc)]}));}function a193_0x1aeb(){const _0x2341a3=['statusText','3BERudh','/skills/guides.json','12aoyAsh','cache','skillTemplate','87UxjjLA','\x0a\x0a>更新时间:','path','1670mIGmUl','CDN\x20请求失败:\x20','trimEnd','object','26928jUJynX','lastUpdated','replace','json','672Psdowi','.md','16408CYvABL','title','map','guides','application/json','length','.lovrabet','4958437ZkVRMh','669224ZsSYqW','content','1313300ppPSEX','CDN\x20数据中缺少\x20skillTemplate','CDN\x20返回数据格式错误','3708352NoDRBD','entries','push','2164mwWlgD','extendContent'];a193_0x1aeb=function(){return _0x2341a3;};return a193_0x1aeb();}
1
+ const a194_0x585c53=a194_0x1bf3;(function(_0x5ca627,_0x4da79d){const _0x18deb2=a194_0x1bf3,_0x56c6b0=_0x5ca627();while(!![]){try{const _0x24dcb9=-parseInt(_0x18deb2(0x1f5))/0x1*(parseInt(_0x18deb2(0x206))/0x2)+parseInt(_0x18deb2(0x203))/0x3*(-parseInt(_0x18deb2(0x201))/0x4)+parseInt(_0x18deb2(0x1eb))/0x5*(-parseInt(_0x18deb2(0x207))/0x6)+-parseInt(_0x18deb2(0x20f))/0x7+-parseInt(_0x18deb2(0x1f2))/0x8*(parseInt(_0x18deb2(0x211))/0x9)+parseInt(_0x18deb2(0x1fc))/0xa*(parseInt(_0x18deb2(0x212))/0xb)+parseInt(_0x18deb2(0x1ff))/0xc*(parseInt(_0x18deb2(0x1ec))/0xd);if(_0x24dcb9===_0x4da79d)break;else _0x56c6b0['push'](_0x56c6b0['shift']());}catch(_0x37b803){_0x56c6b0['push'](_0x56c6b0['shift']());}}}(a194_0x4e7e,0x370e2));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 _0x2bc134=a194_0x1bf3,_0x290539=getTemplateBaseUrl();return _0x290539+_0x2bc134(0x1f3);}const CACHE_DIR=join(homedir(),a194_0x585c53(0x1f4),'cache');export async function fetchGuidesFromCDN(){const _0x323605=a194_0x585c53,_0x2bb016=getGuidesCdnUrl(),_0x33100b=await fetch(_0x2bb016,{'headers':{'Accept':_0x323605(0x204)}});if(!_0x33100b['ok'])throw new Error(_0x323605(0x1fe)+_0x33100b[_0x323605(0x1f6)]+'\x20'+_0x33100b[_0x323605(0x20b)]);const _0x5d86e8=await _0x33100b[_0x323605(0x1f0)]();if(!_0x5d86e8[_0x323605(0x20d)]||typeof _0x5d86e8['guides']!==_0x323605(0x202))throw new Error(_0x323605(0x1f8));return _0x5d86e8;}export function writeGuidesToProject(_0x56581a,_0x257782,_0x454d32=a194_0x585c53(0x208),_0x19d099){const _0x3b7154=a194_0x585c53,_0x1eab90=join(_0x257782,_0x454d32);mkdirSync(_0x1eab90,{'recursive':!![]});for(const [_0x3c7213,_0x3ee8f5]of Object[_0x3b7154(0x1ef)](_0x56581a[_0x3b7154(0x20d)])){let _0x50241f=_0x3ee8f5[_0x3b7154(0x1fb)];_0x3ee8f5[_0x3b7154(0x1fd)]&&(_0x50241f=appendUpdateTime(_0x50241f,_0x3ee8f5['lastUpdated'])),writeFileSync(join(_0x1eab90,_0x3c7213+_0x3b7154(0x20e)),_0x50241f,_0x3b7154(0x20c));}}export function appendUpdateTime(_0xc299b1,_0x112d9f){const _0x4624b0=a194_0x585c53;return _0xc299b1=_0xc299b1[_0x4624b0(0x1f1)](/\n*>更新时间:.*$/m,''),_0xc299b1[_0x4624b0(0x1f7)]()+(_0x4624b0(0x1fa)+_0x112d9f);}function a194_0x1bf3(_0x2ca2c6,_0x27c92c){_0x2ca2c6=_0x2ca2c6-0x1eb;const _0x4e7ef8=a194_0x4e7e();let _0x1bf31f=_0x4e7ef8[_0x2ca2c6];return _0x1bf31f;}export function getSkillTemplate(_0x461538){const _0x3c7fc2=a194_0x585c53;return _0x461538[_0x3c7fc2(0x210)]?.[_0x3c7fc2(0x1fb)]||'';}export function appendExtendContents(_0x27c9ed,_0x4216db,_0x527c68){const _0x390b1b=a194_0x585c53,_0x4bc0e0=[];for(const [,_0x3a82f4]of Object['entries'](_0x4216db[_0x390b1b(0x20d)])){_0x3a82f4[_0x390b1b(0x200)]&&_0x4bc0e0[_0x390b1b(0x1ed)](_0x3a82f4['extendContent'][_0x390b1b(0x1f7)]());}if(_0x4bc0e0[_0x390b1b(0x209)]===0x0)return _0x27c9ed;return _0x27c9ed[_0x390b1b(0x1f7)]()+'\x0a\x0a'+_0x4bc0e0[_0x390b1b(0x20a)]('\x0a\x0a')+'\x0a';}function a194_0x4e7e(){const _0x3466da=['905781Ezpcfy','application/json','title','2rdUCwB','5646tUFxKI','.lovrabet/skill/guides','length','join','statusText','utf-8','guides','.md','2507407eZCIWV','skillTemplate','603qFsymX','781ukEfMw','1640HlgXSe','720278EmQHNW','push','path','entries','json','replace','2768JJKoJK','/skills/guides.json','.lovrabet','236897QMmzEZ','status','trimEnd','CDN\x20返回数据格式错误','CDN\x20数据中缺少\x20skillTemplate','\x0a\x0a>更新时间:','content','56570NuDwYs','lastUpdated','CDN\x20请求失败:\x20','228EkwJWZ','extendContent','4llQBAu','object'];a194_0x4e7e=function(){return _0x3466da;};return a194_0x4e7e();}export function writeSkillFile(_0x3e81bb,_0x55e22c,_0x4f5ce1){const _0x4efb0d=a194_0x585c53,_0x535692=getSkillTemplate(_0x3e81bb);if(!_0x535692)throw new Error(_0x4efb0d(0x1f9));const _0x12df1b=dirname(_0x55e22c);mkdirSync(_0x12df1b,{'recursive':!![]});let _0x5e2285=_0x535692[_0x4efb0d(0x1f1)](/\{\{IDE_NAME\}\}/g,_0x4f5ce1);_0x5e2285=appendExtendContents(_0x5e2285,_0x3e81bb),_0x3e81bb[_0x4efb0d(0x210)][_0x4efb0d(0x1fd)]&&(_0x5e2285=appendUpdateTime(_0x5e2285,_0x3e81bb[_0x4efb0d(0x210)][_0x4efb0d(0x1fd)])),writeFileSync(_0x55e22c,_0x5e2285,_0x4efb0d(0x20c));}export async function installGuides(_0x51fcb7){const _0x345ab9=await fetchGuidesFromCDN();return writeGuidesToProject(_0x345ab9,_0x51fcb7),Object['keys'](_0x345ab9['guides'])['length'];}export function getGuidesSummary(_0x3bc37c){const _0x3e11df=a194_0x585c53;return Object[_0x3e11df(0x1ef)](_0x3bc37c[_0x3e11df(0x20d)])['map'](([_0x25ef22,_0x3077f0])=>({'key':_0x25ef22,'title':_0x3077f0[_0x3e11df(0x205)],'path':_0x3077f0[_0x3e11df(0x1ee)]}));}
@@ -1 +1 @@
1
- function a194_0x22ff(_0x293efe,_0x26bf1c){_0x293efe=_0x293efe-0x1cc;const _0x534726=a194_0x5347();let _0x22ffd9=_0x534726[_0x293efe];return _0x22ffd9;}function a194_0x5347(){const _0x45d26a=['20728XZRJdN','ms\x20后进行第\x20','4565826uYQOoG','1981IkGSZv','includes','460072vPogGy','10lSoPRj','33325011lFjalq','abort','10ZOQfdq','fetch','\x20次重试...','text','AbortError','log','application/json','get','*\x20请求失败,','1232875qpCYUT','ENOTFOUND','headers','1278762mukKZR','name','statusText','ECONNRESET','4341648xiHJzU','message','url','TypeError','status','json','Request\x20failed'];a194_0x5347=function(){return _0x45d26a;};return a194_0x5347();}(function(_0x39236a,_0x4b319e){const _0x4e2bd2=a194_0x22ff,_0x1cdf4e=_0x39236a();while(!![]){try{const _0x18127c=-parseInt(_0x4e2bd2(0x1d6))/0x1+-parseInt(_0x4e2bd2(0x1d9))/0x2+-parseInt(_0x4e2bd2(0x1e6))/0x3+-parseInt(_0x4e2bd2(0x1e9))/0x4+parseInt(_0x4e2bd2(0x1cd))/0x5*(parseInt(_0x4e2bd2(0x1dd))/0x6)+-parseInt(_0x4e2bd2(0x1e7))/0x7*(parseInt(_0x4e2bd2(0x1e4))/0x8)+parseInt(_0x4e2bd2(0x1eb))/0x9*(parseInt(_0x4e2bd2(0x1ea))/0xa);if(_0x18127c===_0x4b319e)break;else _0x1cdf4e['push'](_0x1cdf4e['shift']());}catch(_0x534452){_0x1cdf4e['push'](_0x1cdf4e['shift']());}}}(a194_0x5347,0xdd906));export async function httpRequest(_0x41ff60,_0x3b4894={}){const _0x5ba22a=a194_0x22ff,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0x3b4894;let _0x205647=null;for(let _0x496f6a=0x0;_0x496f6a<=retries;_0x496f6a++){try{const _0x887d85=new AbortController(),_0x5b2aa6=setTimeout(()=>_0x887d85[_0x5ba22a(0x1cc)](),timeout),_0x301875=await fetch(_0x41ff60,{'headers':headers,'signal':_0x887d85['signal']});clearTimeout(_0x5b2aa6);let _0x393150;const _0x429332=_0x301875['headers'][_0x5ba22a(0x1d4)]('content-type');return _0x429332?.[_0x5ba22a(0x1e8)](_0x5ba22a(0x1d3))?_0x393150=await _0x301875[_0x5ba22a(0x1e2)]():_0x393150=await _0x301875['text'](),{'ok':_0x301875['ok'],'status':_0x301875[_0x5ba22a(0x1e1)],'statusText':_0x301875[_0x5ba22a(0x1db)],'data':_0x393150,'headers':_0x301875[_0x5ba22a(0x1d8)],'url':_0x301875[_0x5ba22a(0x1df)],'text':()=>_0x301875[_0x5ba22a(0x1d0)]()};}catch(_0x3ba5ff){_0x205647=_0x3ba5ff instanceof Error?_0x3ba5ff:new Error(String(_0x3ba5ff));if(_0x496f6a===retries)break;if(shouldRetry(_0x3ba5ff)){console[_0x5ba22a(0x1d2)](_0x5ba22a(0x1d5)+retryDelay+_0x5ba22a(0x1e5)+(_0x496f6a+0x1)+_0x5ba22a(0x1cf)),await sleep(retryDelay);continue;}else break;}}throw _0x205647||new Error(_0x5ba22a(0x1e3));}function shouldRetry(_0x45281d){const _0x529d38=a194_0x22ff;if(_0x45281d instanceof Error){if(_0x45281d[_0x529d38(0x1da)]===_0x529d38(0x1d1))return![];if(_0x45281d[_0x529d38(0x1da)]===_0x529d38(0x1e0)&&_0x45281d[_0x529d38(0x1de)][_0x529d38(0x1e8)](_0x529d38(0x1ce)))return!![];if(_0x45281d[_0x529d38(0x1de)][_0x529d38(0x1e8)](_0x529d38(0x1dc)))return!![];if(_0x45281d[_0x529d38(0x1de)][_0x529d38(0x1e8)](_0x529d38(0x1d7)))return![];}return![];}function sleep(_0x8ad7de){return new Promise(_0x442945=>setTimeout(_0x442945,_0x8ad7de));}export function validateUrl(_0x453775){try{return new URL(_0x453775),!![];}catch{return![];}}
1
+ (function(_0x215be6,_0x13408f){const _0x29b157=a195_0x57de,_0x20616f=_0x215be6();while(!![]){try{const _0x15d53c=parseInt(_0x29b157(0x108))/0x1*(-parseInt(_0x29b157(0xf3))/0x2)+-parseInt(_0x29b157(0xf1))/0x3*(-parseInt(_0x29b157(0xf2))/0x4)+parseInt(_0x29b157(0xfe))/0x5*(parseInt(_0x29b157(0x105))/0x6)+-parseInt(_0x29b157(0xfd))/0x7*(parseInt(_0x29b157(0xff))/0x8)+-parseInt(_0x29b157(0x106))/0x9*(-parseInt(_0x29b157(0x10d))/0xa)+parseInt(_0x29b157(0x104))/0xb+-parseInt(_0x29b157(0xf5))/0xc;if(_0x15d53c===_0x13408f)break;else _0x20616f['push'](_0x20616f['shift']());}catch(_0x25a43c){_0x20616f['push'](_0x20616f['shift']());}}}(a195_0x1f9a,0x7d41e));export async function httpRequest(_0x4711c6,_0x1b97c9={}){const _0x34cc6d=a195_0x57de,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0x1b97c9;let _0x3fd0cd=null;for(let _0x3b902f=0x0;_0x3b902f<=retries;_0x3b902f++){try{const _0x291466=new AbortController(),_0x8d995=setTimeout(()=>_0x291466[_0x34cc6d(0xf7)](),timeout),_0x26394c=await fetch(_0x4711c6,{'headers':headers,'signal':_0x291466[_0x34cc6d(0x10b)]});clearTimeout(_0x8d995);let _0x174807;const _0xb9d20a=_0x26394c[_0x34cc6d(0xfa)][_0x34cc6d(0x10f)](_0x34cc6d(0x10e));return _0xb9d20a?.[_0x34cc6d(0xfc)](_0x34cc6d(0x100))?_0x174807=await _0x26394c['json']():_0x174807=await _0x26394c[_0x34cc6d(0x102)](),{'ok':_0x26394c['ok'],'status':_0x26394c[_0x34cc6d(0xf9)],'statusText':_0x26394c[_0x34cc6d(0x10a)],'data':_0x174807,'headers':_0x26394c[_0x34cc6d(0xfa)],'url':_0x26394c['url'],'text':()=>_0x26394c[_0x34cc6d(0x102)]()};}catch(_0x58e036){_0x3fd0cd=_0x58e036 instanceof Error?_0x58e036:new Error(String(_0x58e036));if(_0x3b902f===retries)break;if(shouldRetry(_0x58e036)){console[_0x34cc6d(0x107)]('*\x20请求失败,'+retryDelay+_0x34cc6d(0xf4)+(_0x3b902f+0x1)+_0x34cc6d(0x103)),await sleep(retryDelay);continue;}else break;}}throw _0x3fd0cd||new Error(_0x34cc6d(0xf8));}function a195_0x57de(_0x3e3825,_0x464524){_0x3e3825=_0x3e3825-0xf1;const _0x1f9a8f=a195_0x1f9a();let _0x57de09=_0x1f9a8f[_0x3e3825];return _0x57de09;}function shouldRetry(_0xf0aa83){const _0x42216c=a195_0x57de;if(_0xf0aa83 instanceof Error){if(_0xf0aa83[_0x42216c(0xf6)]==='AbortError')return![];if(_0xf0aa83[_0x42216c(0xf6)]===_0x42216c(0x10c)&&_0xf0aa83['message'][_0x42216c(0xfc)]('fetch'))return!![];if(_0xf0aa83['message']['includes'](_0x42216c(0xfb)))return!![];if(_0xf0aa83[_0x42216c(0x109)][_0x42216c(0xfc)](_0x42216c(0x101)))return![];}return![];}function a195_0x1f9a(){const _0x4093fc=['application/json','ENOTFOUND','text','\x20次重试...','3035714OUvaEo','3048oqUgOY','786843TgfzCa','log','573182fnMZPa','message','statusText','signal','TypeError','30NpdtEc','content-type','get','180618QhcZKj','68tbfWUP','2HodYEy','ms\x20后进行第\x20','10783164VnRTTL','name','abort','Request\x20failed','status','headers','ECONNRESET','includes','350csLjrm','7860gJhypl','60080SIDWti'];a195_0x1f9a=function(){return _0x4093fc;};return a195_0x1f9a();}function sleep(_0x581c33){return new Promise(_0x38da28=>setTimeout(_0x38da28,_0x581c33));}export function validateUrl(_0x3b8e39){try{return new URL(_0x3b8e39),!![];}catch{return![];}}
@@ -1 +1 @@
1
- (function(_0x5e8eab,_0x2ec27c){const _0x41cf4a=a195_0x500c,_0x1e3279=_0x5e8eab();while(!![]){try{const _0x22d367=parseInt(_0x41cf4a(0xa9))/0x1*(parseInt(_0x41cf4a(0xa5))/0x2)+parseInt(_0x41cf4a(0x9d))/0x3*(-parseInt(_0x41cf4a(0xa6))/0x4)+-parseInt(_0x41cf4a(0xa8))/0x5+-parseInt(_0x41cf4a(0xa1))/0x6*(-parseInt(_0x41cf4a(0xa2))/0x7)+parseInt(_0x41cf4a(0xac))/0x8*(parseInt(_0x41cf4a(0x9e))/0x9)+parseInt(_0x41cf4a(0xa4))/0xa*(-parseInt(_0x41cf4a(0xa0))/0xb)+parseInt(_0x41cf4a(0x9f))/0xc;if(_0x22d367===_0x2ec27c)break;else _0x1e3279['push'](_0x1e3279['shift']());}catch(_0x75feea){_0x1e3279['push'](_0x1e3279['shift']());}}}(a195_0x952b,0x1cb9a));function a195_0x500c(_0x4085fe,_0x576c60){_0x4085fe=_0x4085fe-0x9d;const _0x952bd5=a195_0x952b();let _0x500c5e=_0x952bd5[_0x4085fe];return _0x500c5e;}function env(_0x266a15){return process.env[`RABETBASE_${_0x266a15}`]||process.env[`LOVRABET_${_0x266a15}`]||undefined;}export function isNonInteractive(_0x4422c5){const _0x19942f=a195_0x500c;return!!(_0x4422c5[_0x19942f(0xa3)]||_0x4422c5['ci']||env('CI')==='true'||process.env.CI==='true'||!process[_0x19942f(0xaa)][_0x19942f(0xa7)]||!isStdinRawModeSupported());}function a195_0x952b(){const _0x29e8e8=['20zGZUtL','698AsKFxp','412PpvPpR','isTTY','939210pAzcxA','3btGZNs','stdout','setRawMode','2400UElRaj','stdin','3237fjUtVm','5229szxYEN','3715380gVDfIo','1112056vNWFzT','803202agkwHH','7lLovgG','nonInteractive'];a195_0x952b=function(){return _0x29e8e8;};return a195_0x952b();}function isStdinRawModeSupported(){const _0x28fe19=a195_0x500c;if(!process[_0x28fe19(0xad)][_0x28fe19(0xa7)])return![];try{const _0x11f58b=process['stdin']['isRaw'];return process[_0x28fe19(0xad)][_0x28fe19(0xab)](!![]),process[_0x28fe19(0xad)][_0x28fe19(0xab)](_0x11f58b??![]),!![];}catch{return![];}}
1
+ (function(_0x30609e,_0x592bc6){const _0x179547=a196_0xb405,_0x1c6a2b=_0x30609e();while(!![]){try{const _0x44abb5=parseInt(_0x179547(0xf7))/0x1*(parseInt(_0x179547(0xf4))/0x2)+-parseInt(_0x179547(0x101))/0x3+-parseInt(_0x179547(0xf6))/0x4+parseInt(_0x179547(0x102))/0x5+-parseInt(_0x179547(0xff))/0x6*(-parseInt(_0x179547(0xfb))/0x7)+-parseInt(_0x179547(0xfe))/0x8*(parseInt(_0x179547(0xf9))/0x9)+-parseInt(_0x179547(0xf5))/0xa;if(_0x44abb5===_0x592bc6)break;else _0x1c6a2b['push'](_0x1c6a2b['shift']());}catch(_0x1e260b){_0x1c6a2b['push'](_0x1c6a2b['shift']());}}}(a196_0x4153,0x94a59));function env(_0x550911){return process.env[`RABETBASE_${_0x550911}`]||process.env[`LOVRABET_${_0x550911}`]||undefined;}function a196_0xb405(_0x10513d,_0x441ba7){_0x10513d=_0x10513d-0xf4;const _0x4153e5=a196_0x4153();let _0xb405f1=_0x4153e5[_0x10513d];return _0xb405f1;}export function isNonInteractive(_0x1efad9){const _0x3722a2=a196_0xb405;return!!(_0x1efad9['nonInteractive']||_0x1efad9['ci']||env('CI')===_0x3722a2(0x100)||process.env.CI===_0x3722a2(0x100)||!process[_0x3722a2(0xf8)]['isTTY']||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x1c37aa=a196_0xb405;if(!process[_0x1c37aa(0xfd)]['isTTY'])return![];try{const _0x56da46=process[_0x1c37aa(0xfd)][_0x1c37aa(0xfc)];return process[_0x1c37aa(0xfd)][_0x1c37aa(0xfa)](!![]),process['stdin'][_0x1c37aa(0xfa)](_0x56da46??![]),!![];}catch{return![];}}function a196_0x4153(){const _0x1cd079=['132937JRzJxV','isRaw','stdin','720568CQhCIS','102DkbRmm','true','253668xUrAbW','4207540BsipYh','8898jmAwbY','2313550gPlyZH','3645884kMOdUS','232tZHSco','stdout','36dfQRom','setRawMode'];a196_0x4153=function(){return _0x1cd079;};return a196_0x4153();}
@@ -1 +1 @@
1
- const a196_0x594715=a196_0x53a0;function a196_0x53a0(_0x57ca7e,_0xdd681c){_0x57ca7e=_0x57ca7e-0x11f;const _0x50321f=a196_0x5032();let _0x53a09d=_0x50321f[_0x57ca7e];return _0x53a09d;}(function(_0x440a21,_0x2502d8){const _0x2d1bc4=a196_0x53a0,_0x4f8b14=_0x440a21();while(!![]){try{const _0x2b0ce0=-parseInt(_0x2d1bc4(0x123))/0x1*(-parseInt(_0x2d1bc4(0x14f))/0x2)+-parseInt(_0x2d1bc4(0x155))/0x3*(parseInt(_0x2d1bc4(0x149))/0x4)+-parseInt(_0x2d1bc4(0x14d))/0x5*(parseInt(_0x2d1bc4(0x153))/0x6)+parseInt(_0x2d1bc4(0x12b))/0x7*(parseInt(_0x2d1bc4(0x157))/0x8)+parseInt(_0x2d1bc4(0x13c))/0x9+-parseInt(_0x2d1bc4(0x135))/0xa+parseInt(_0x2d1bc4(0x13a))/0xb;if(_0x2b0ce0===_0x2502d8)break;else _0x4f8b14['push'](_0x4f8b14['shift']());}catch(_0x5b578d){_0x4f8b14['push'](_0x4f8b14['shift']());}}}(a196_0x5032,0x2e2ad));import a196_0x12b4c3 from'winston';import a196_0x595078 from'node:fs';function a196_0x5032(){const _0x1c64a9=['File','stringify','unknown','Failed\x20to\x20read\x20logs:','2468530eaVWPO','writeFileSync','duration','message','command','2121119fffBMw','readLogs','125964xXKrax','error','combine','parse','red','trim','logFilePath','blue','currentRawCommand','now','success','yellow','winstonLogger','15492fVNRvu','map','errors','printf','355lcRzgI','format','30SDmWgO','createLogger','getWinstonInstance','dirname','2994RxGNkJ','.lovrabet.log','3xwBMoT','clearLogs','24XcSfMj','utf8','开始执行:\x20','info','addColors','1103QTvhsD','readFileSync','join','green','warn','split','timestamp','initWinstonLogger','587734fqMOOG','existsSync','rawCommand','setLogPath','clear','details'];a196_0x5032=function(){return _0x1c64a9;};return a196_0x5032();}import a196_0x32fd93 from'node:path';class Logger{['winstonLogger'];[a196_0x594715(0x142)];[a196_0x594715(0x144)]='';constructor(){const _0x301e41=a196_0x594715;this[_0x301e41(0x142)]='';}['setRawCommand'](_0x700b50){const _0x3deeca=a196_0x594715;this[_0x3deeca(0x144)]=_0x700b50;}['initWinstonLogger'](){const _0x12b3a9=a196_0x594715,_0x2b8146=a196_0x32fd93[_0x12b3a9(0x152)](this['logFilePath']);!a196_0x595078[_0x12b3a9(0x12c)](_0x2b8146)&&a196_0x595078['mkdirSync'](_0x2b8146,{'recursive':!![]});const _0x3729d9=a196_0x12b4c3[_0x12b3a9(0x14e)][_0x12b3a9(0x13e)](a196_0x12b4c3[_0x12b3a9(0x14e)][_0x12b3a9(0x129)](),a196_0x12b4c3[_0x12b3a9(0x14e)][_0x12b3a9(0x14b)]({'stack':!![]}),a196_0x12b4c3[_0x12b3a9(0x14e)][_0x12b3a9(0x14c)](_0x174195=>{const _0x85cc02=_0x12b3a9,_0x14dc56={'timestamp':_0x174195[_0x85cc02(0x129)]||new Date()['toISOString'](),'level':_0x174195['level']||_0x85cc02(0x121),'command':_0x174195[_0x85cc02(0x139)]||_0x85cc02(0x133),'rawCommand':_0x174195[_0x85cc02(0x12d)]||this[_0x85cc02(0x144)]||undefined,'message':_0x174195[_0x85cc02(0x138)]||'','duration':_0x174195[_0x85cc02(0x137)]||undefined,'details':_0x174195[_0x85cc02(0x130)]||undefined};return JSON[_0x85cc02(0x132)](_0x14dc56);}));this[_0x12b3a9(0x148)]=a196_0x12b4c3[_0x12b3a9(0x150)]({'level':_0x12b3a9(0x121),'format':_0x3729d9,'transports':[new a196_0x12b4c3['transports'][(_0x12b3a9(0x131))]({'filename':this[_0x12b3a9(0x142)],'level':_0x12b3a9(0x121)})],'silent':![]}),a196_0x12b4c3[_0x12b3a9(0x122)]({'success':_0x12b3a9(0x126),'error':_0x12b3a9(0x140),'warn':_0x12b3a9(0x147),'info':_0x12b3a9(0x143)});}[a196_0x594715(0x12e)](_0x572b70){const _0x5ee679=a196_0x594715;this['logFilePath']=a196_0x32fd93[_0x5ee679(0x125)](_0x572b70,_0x5ee679(0x154)),this['winstonLogger']&&this[_0x5ee679(0x148)][_0x5ee679(0x12f)](),this[_0x5ee679(0x12a)]();}[a196_0x594715(0x121)](_0x195e74,_0x7418f2,_0x4805fc){const _0xe070a0=a196_0x594715;if(!this[_0xe070a0(0x142)]||!this[_0xe070a0(0x148)])return;this[_0xe070a0(0x148)][_0xe070a0(0x121)](_0x7418f2,{'command':_0x195e74,'details':_0x4805fc});}[a196_0x594715(0x146)](_0x3228c8,_0x277088,_0x16f934,_0x1a2227){const _0x399168=a196_0x594715;if(!this['logFilePath']||!this[_0x399168(0x148)])return;this[_0x399168(0x148)]['log'](_0x399168(0x121),_0x277088,{'level':'success','command':_0x3228c8,'duration':_0x16f934,'details':_0x1a2227});}[a196_0x594715(0x13d)](_0x359fcc,_0x4f50e0,_0x3893b0){const _0x1680de=a196_0x594715;if(!this['logFilePath']||!this[_0x1680de(0x148)])return;this['winstonLogger'][_0x1680de(0x13d)](_0x4f50e0,{'command':_0x359fcc,'details':_0x3893b0});}[a196_0x594715(0x127)](_0x23203b,_0x1f1e05,_0x353b32){const _0x115fc4=a196_0x594715;if(!this[_0x115fc4(0x142)]||!this[_0x115fc4(0x148)])return;this['winstonLogger']['warn'](_0x1f1e05,{'command':_0x23203b,'details':_0x353b32});}async['logTask'](_0xad03be,_0x2b60c3,_0x121ce9){const _0x31ae73=a196_0x594715,_0x4cf30d=Date[_0x31ae73(0x145)]();this[_0x31ae73(0x121)](_0xad03be,_0x31ae73(0x120)+_0x2b60c3);try{const _0x7d22ef=await _0x121ce9(),_0x52ea86=Date['now']()-_0x4cf30d;return this['success'](_0xad03be,'完成:\x20'+_0x2b60c3,_0x52ea86),_0x7d22ef;}catch(_0x20cd8c){const _0x37fd2a=Date[_0x31ae73(0x145)]()-_0x4cf30d;this[_0x31ae73(0x13d)](_0xad03be,'失败:\x20'+_0x2b60c3,{'error':_0x20cd8c instanceof Error?_0x20cd8c['message']:String(_0x20cd8c),'duration':_0x37fd2a});throw _0x20cd8c;}}[a196_0x594715(0x13b)](){const _0x559fcc=a196_0x594715;try{if(!a196_0x595078[_0x559fcc(0x12c)](this[_0x559fcc(0x142)]))return[];const _0xacd311=a196_0x595078[_0x559fcc(0x124)](this['logFilePath'],_0x559fcc(0x11f));return _0xacd311[_0x559fcc(0x128)]('\x0a')['filter'](_0x1e1164=>_0x1e1164[_0x559fcc(0x141)]())[_0x559fcc(0x14a)](_0x366a65=>JSON[_0x559fcc(0x13f)](_0x366a65));}catch(_0x3fa30b){return console[_0x559fcc(0x127)](_0x559fcc(0x134),_0x3fa30b),[];}}[a196_0x594715(0x156)](){const _0x5d3f33=a196_0x594715;try{a196_0x595078['existsSync'](this[_0x5d3f33(0x142)])&&a196_0x595078[_0x5d3f33(0x136)](this[_0x5d3f33(0x142)],'','utf8');}catch(_0x254693){console[_0x5d3f33(0x127)]('Failed\x20to\x20clear\x20logs:',_0x254693);}}[a196_0x594715(0x151)](){const _0xcff104=a196_0x594715;return this[_0xcff104(0x148)];}}export const logger=new Logger();
1
+ const a197_0x20a7b0=a197_0x493b;(function(_0x115b73,_0x4e1850){const _0x204005=a197_0x493b,_0x118479=_0x115b73();while(!![]){try{const _0x290944=parseInt(_0x204005(0xe6))/0x1+-parseInt(_0x204005(0xe1))/0x2+-parseInt(_0x204005(0xd5))/0x3*(parseInt(_0x204005(0xf2))/0x4)+-parseInt(_0x204005(0xed))/0x5+-parseInt(_0x204005(0xbb))/0x6+-parseInt(_0x204005(0xcb))/0x7+parseInt(_0x204005(0xdb))/0x8;if(_0x290944===_0x4e1850)break;else _0x118479['push'](_0x118479['shift']());}catch(_0x1a4db1){_0x118479['push'](_0x118479['shift']());}}}(a197_0x1048,0x29f7d));import a197_0x687b07 from'winston';import a197_0x324c14 from'node:fs';import a197_0x1d6a55 from'node:path';function a197_0x1048(){const _0x521f26=['warn','currentRawCommand','10438072VDbgkL','yellow','map','printf','format','readFileSync','675514oukHhY','log','blue','mkdirSync','.lovrabet.log','178364TBzAZq','split','winstonLogger','existsSync','timestamp','join','clearLogs','1086735CkwZZn','rawCommand','失败:\x20','dirname','完成:\x20','21272UEiiiN','1713630UTIGAc','unknown','message','setLogPath','red','logFilePath','logTask','success','createLogger','error','Failed\x20to\x20read\x20logs:','readLogs','duration','clear','Failed\x20to\x20clear\x20logs:','filter','1879003qDnOEH','utf8','combine','getWinstonInstance','initWinstonLogger','trim','开始执行:\x20','stringify','File','green','114gQpUOO','info','now','addColors'];a197_0x1048=function(){return _0x521f26;};return a197_0x1048();}function a197_0x493b(_0x31588c,_0x3163e9){_0x31588c=_0x31588c-0xbb;const _0x10487b=a197_0x1048();let _0x493b2e=_0x10487b[_0x31588c];return _0x493b2e;}class Logger{[a197_0x20a7b0(0xe8)];[a197_0x20a7b0(0xc0)];['currentRawCommand']='';constructor(){const _0x41ead2=a197_0x20a7b0;this[_0x41ead2(0xc0)]='';}['setRawCommand'](_0x8b86ef){const _0x8d3120=a197_0x20a7b0;this[_0x8d3120(0xda)]=_0x8b86ef;}[a197_0x20a7b0(0xcf)](){const _0x364272=a197_0x20a7b0,_0x1026d0=a197_0x1d6a55[_0x364272(0xf0)](this[_0x364272(0xc0)]);!a197_0x324c14[_0x364272(0xe9)](_0x1026d0)&&a197_0x324c14[_0x364272(0xe4)](_0x1026d0,{'recursive':!![]});const _0x25d9c=a197_0x687b07[_0x364272(0xdf)][_0x364272(0xcd)](a197_0x687b07[_0x364272(0xdf)][_0x364272(0xea)](),a197_0x687b07[_0x364272(0xdf)]['errors']({'stack':!![]}),a197_0x687b07['format'][_0x364272(0xde)](_0x2c94f5=>{const _0x263303=_0x364272,_0x5bc3c9={'timestamp':_0x2c94f5[_0x263303(0xea)]||new Date()['toISOString'](),'level':_0x2c94f5['level']||_0x263303(0xd6),'command':_0x2c94f5['command']||_0x263303(0xbc),'rawCommand':_0x2c94f5[_0x263303(0xee)]||this['currentRawCommand']||undefined,'message':_0x2c94f5[_0x263303(0xbd)]||'','duration':_0x2c94f5[_0x263303(0xc7)]||undefined,'details':_0x2c94f5['details']||undefined};return JSON[_0x263303(0xd2)](_0x5bc3c9);}));this['winstonLogger']=a197_0x687b07[_0x364272(0xc3)]({'level':_0x364272(0xd6),'format':_0x25d9c,'transports':[new a197_0x687b07['transports'][(_0x364272(0xd3))]({'filename':this[_0x364272(0xc0)],'level':_0x364272(0xd6)})],'silent':![]}),a197_0x687b07[_0x364272(0xd8)]({'success':_0x364272(0xd4),'error':_0x364272(0xbf),'warn':_0x364272(0xdc),'info':_0x364272(0xe3)});}[a197_0x20a7b0(0xbe)](_0x971b46){const _0x4ea0aa=a197_0x20a7b0;this[_0x4ea0aa(0xc0)]=a197_0x1d6a55[_0x4ea0aa(0xeb)](_0x971b46,_0x4ea0aa(0xe5)),this[_0x4ea0aa(0xe8)]&&this[_0x4ea0aa(0xe8)][_0x4ea0aa(0xc8)](),this[_0x4ea0aa(0xcf)]();}[a197_0x20a7b0(0xd6)](_0x133344,_0x3a5fca,_0x5161e9){const _0x44f39d=a197_0x20a7b0;if(!this[_0x44f39d(0xc0)]||!this[_0x44f39d(0xe8)])return;this[_0x44f39d(0xe8)][_0x44f39d(0xd6)](_0x3a5fca,{'command':_0x133344,'details':_0x5161e9});}[a197_0x20a7b0(0xc2)](_0x3b2ece,_0x58e311,_0x304b29,_0x2e2484){const _0x1aea6d=a197_0x20a7b0;if(!this[_0x1aea6d(0xc0)]||!this[_0x1aea6d(0xe8)])return;this[_0x1aea6d(0xe8)][_0x1aea6d(0xe2)](_0x1aea6d(0xd6),_0x58e311,{'level':_0x1aea6d(0xc2),'command':_0x3b2ece,'duration':_0x304b29,'details':_0x2e2484});}['error'](_0x53b751,_0x4a6dbc,_0x2566be){const _0xd01a68=a197_0x20a7b0;if(!this[_0xd01a68(0xc0)]||!this[_0xd01a68(0xe8)])return;this[_0xd01a68(0xe8)][_0xd01a68(0xc4)](_0x4a6dbc,{'command':_0x53b751,'details':_0x2566be});}[a197_0x20a7b0(0xd9)](_0x3ad09e,_0xd1b408,_0x59af6d){const _0x5491bc=a197_0x20a7b0;if(!this['logFilePath']||!this[_0x5491bc(0xe8)])return;this[_0x5491bc(0xe8)]['warn'](_0xd1b408,{'command':_0x3ad09e,'details':_0x59af6d});}async[a197_0x20a7b0(0xc1)](_0x35602a,_0x4325ed,_0x4c8cc6){const _0x4e9e80=a197_0x20a7b0,_0x2a3ccf=Date[_0x4e9e80(0xd7)]();this[_0x4e9e80(0xd6)](_0x35602a,_0x4e9e80(0xd1)+_0x4325ed);try{const _0x41446f=await _0x4c8cc6(),_0x585d13=Date[_0x4e9e80(0xd7)]()-_0x2a3ccf;return this[_0x4e9e80(0xc2)](_0x35602a,_0x4e9e80(0xf1)+_0x4325ed,_0x585d13),_0x41446f;}catch(_0x459d5e){const _0x45714a=Date[_0x4e9e80(0xd7)]()-_0x2a3ccf;this[_0x4e9e80(0xc4)](_0x35602a,_0x4e9e80(0xef)+_0x4325ed,{'error':_0x459d5e instanceof Error?_0x459d5e[_0x4e9e80(0xbd)]:String(_0x459d5e),'duration':_0x45714a});throw _0x459d5e;}}[a197_0x20a7b0(0xc6)](){const _0x43c163=a197_0x20a7b0;try{if(!a197_0x324c14[_0x43c163(0xe9)](this[_0x43c163(0xc0)]))return[];const _0x3534e4=a197_0x324c14[_0x43c163(0xe0)](this['logFilePath'],'utf8');return _0x3534e4[_0x43c163(0xe7)]('\x0a')[_0x43c163(0xca)](_0x5428ea=>_0x5428ea[_0x43c163(0xd0)]())[_0x43c163(0xdd)](_0x2923f5=>JSON['parse'](_0x2923f5));}catch(_0x22cecc){return console[_0x43c163(0xd9)](_0x43c163(0xc5),_0x22cecc),[];}}[a197_0x20a7b0(0xec)](){const _0x41b38d=a197_0x20a7b0;try{a197_0x324c14[_0x41b38d(0xe9)](this[_0x41b38d(0xc0)])&&a197_0x324c14['writeFileSync'](this['logFilePath'],'',_0x41b38d(0xcc));}catch(_0x165d9b){console[_0x41b38d(0xd9)](_0x41b38d(0xc9),_0x165d9b);}}[a197_0x20a7b0(0xce)](){const _0x40218b=a197_0x20a7b0;return this[_0x40218b(0xe8)];}}export const logger=new Logger();
@@ -1 +1 @@
1
- function a197_0x494d(_0x509dc2,_0x86e061){_0x509dc2=_0x509dc2-0x8d;const _0x1b2ff8=a197_0x1b2f();let _0x494dfa=_0x1b2ff8[_0x509dc2];return _0x494dfa;}(function(_0x590bf6,_0x3d93d9){const _0x148eb5=a197_0x494d,_0x139bd7=_0x590bf6();while(!![]){try{const _0x45b5b4=parseInt(_0x148eb5(0x98))/0x1+parseInt(_0x148eb5(0x96))/0x2+-parseInt(_0x148eb5(0x8f))/0x3+parseInt(_0x148eb5(0x97))/0x4*(-parseInt(_0x148eb5(0x8d))/0x5)+parseInt(_0x148eb5(0x99))/0x6+-parseInt(_0x148eb5(0x95))/0x7+-parseInt(_0x148eb5(0x93))/0x8;if(_0x45b5b4===_0x3d93d9)break;else _0x139bd7['push'](_0x139bd7['shift']());}catch(_0x133038){_0x139bd7['push'](_0x139bd7['shift']());}}}(a197_0x1b2f,0xe5650));function a197_0x1b2f(){const _0x327109=['object','392574sQImdJ','validation','Invalid\x20JSON\x20for\x20--params:\x20','parse','15662472oNjRnD','Example:\x20--params\x20\x27{\x22id\x22:123}\x27','10107923THNseC','3644502WKIeuB','13044VbzWBA','1786813VaVuKU','10481538AcIVGU','1355eWuNlY'];a197_0x1b2f=function(){return _0x327109;};return a197_0x1b2f();}import{CliErrors}from'../errors.js';export function parseJsonParams(_0x2aa28e){const _0x4a1f70=a197_0x494d;if(!_0x2aa28e)return undefined;let _0x2c22cd;try{_0x2c22cd=JSON[_0x4a1f70(0x92)](_0x2aa28e);}catch{throw CliErrors[_0x4a1f70(0x90)](_0x4a1f70(0x91)+_0x2aa28e);}if(!_0x2c22cd||typeof _0x2c22cd!==_0x4a1f70(0x8e)||Array['isArray'](_0x2c22cd))throw CliErrors['validation']('--params\x20must\x20be\x20a\x20JSON\x20object',_0x4a1f70(0x94));return _0x2c22cd;}
1
+ (function(_0x204ae0,_0xf76018){const _0x3309ab=a198_0x340f,_0x1a1184=_0x204ae0();while(!![]){try{const _0x4b99b8=parseInt(_0x3309ab(0x79))/0x1*(parseInt(_0x3309ab(0x89))/0x2)+-parseInt(_0x3309ab(0x84))/0x3*(-parseInt(_0x3309ab(0x87))/0x4)+-parseInt(_0x3309ab(0x82))/0x5*(-parseInt(_0x3309ab(0x7c))/0x6)+parseInt(_0x3309ab(0x80))/0x7+-parseInt(_0x3309ab(0x85))/0x8+-parseInt(_0x3309ab(0x7b))/0x9*(-parseInt(_0x3309ab(0x7f))/0xa)+parseInt(_0x3309ab(0x78))/0xb*(-parseInt(_0x3309ab(0x7d))/0xc);if(_0x4b99b8===_0xf76018)break;else _0x1a1184['push'](_0x1a1184['shift']());}catch(_0x45d555){_0x1a1184['push'](_0x1a1184['shift']());}}}(a198_0x1f6a,0xd235f));function a198_0x1f6a(){const _0x14948c=['validation','9778833TrRcyL','7668ISbhnX','48qoVWKh','isArray','10lSrDkK','9804137rWYlfv','Example:\x20--params\x20\x27{\x22id\x22:123}\x27','2785wYsOnI','--params\x20must\x20be\x20a\x20JSON\x20object','3TTjUMK','3677696FIAalD','object','3245284RgLUIV','parse','28XUzqYb','8034004kAzwpB','16564FLeaFr'];a198_0x1f6a=function(){return _0x14948c;};return a198_0x1f6a();}import{CliErrors}from'../errors.js';function a198_0x340f(_0x465bc1,_0x55d525){_0x465bc1=_0x465bc1-0x78;const _0x1f6a29=a198_0x1f6a();let _0x340f89=_0x1f6a29[_0x465bc1];return _0x340f89;}export function parseJsonParams(_0x2bbb08){const _0x3d4340=a198_0x340f;if(!_0x2bbb08)return undefined;let _0x4e9c67;try{_0x4e9c67=JSON[_0x3d4340(0x88)](_0x2bbb08);}catch{throw CliErrors[_0x3d4340(0x7a)]('Invalid\x20JSON\x20for\x20--params:\x20'+_0x2bbb08);}if(!_0x4e9c67||typeof _0x4e9c67!==_0x3d4340(0x86)||Array[_0x3d4340(0x7e)](_0x4e9c67))throw CliErrors[_0x3d4340(0x7a)](_0x3d4340(0x83),_0x3d4340(0x81));return _0x4e9c67;}
@@ -1 +1 @@
1
- const a198_0x4136e0=a198_0x12b9;function a198_0x2369(){const _0x5d1314=['1144644TxCjRG','22068IMPoUz','5Xrpjny','610492mQYsxi','136YirnuS','platform','22558ECliSE','3icthFR','410ebVpQz','.cmd','4065754bYqqBz','win32','990835pzPMWY','48398ALcWJz'];a198_0x2369=function(){return _0x5d1314;};return a198_0x2369();}(function(_0x49975b,_0x27e975){const _0x20195e=a198_0x12b9,_0x522085=_0x49975b();while(!![]){try{const _0x33fa68=-parseInt(_0x20195e(0x9f))/0x1*(parseInt(_0x20195e(0xa3))/0x2)+parseInt(_0x20195e(0xa4))/0x3*(-parseInt(_0x20195e(0xa0))/0x4)+-parseInt(_0x20195e(0xa9))/0x5+parseInt(_0x20195e(0x9d))/0x6+parseInt(_0x20195e(0x9c))/0x7*(-parseInt(_0x20195e(0xa1))/0x8)+parseInt(_0x20195e(0x9e))/0x9*(parseInt(_0x20195e(0xa5))/0xa)+parseInt(_0x20195e(0xa7))/0xb;if(_0x33fa68===_0x27e975)break;else _0x522085['push'](_0x522085['shift']());}catch(_0x101fcd){_0x522085['push'](_0x522085['shift']());}}}(a198_0x2369,0x21405));export const isWindows=process[a198_0x4136e0(0xa2)]===a198_0x4136e0(0xa8);function a198_0x12b9(_0x2c6254,_0xc3ae4f){_0x2c6254=_0x2c6254-0x9c;const _0x236902=a198_0x2369();let _0x12b9d7=_0x236902[_0x2c6254];return _0x12b9d7;}export function resolveNpmBin(_0x483554){const _0x227132=a198_0x4136e0;return isWindows?_0x483554+_0x227132(0xa6):_0x483554;}
1
+ function a199_0x1e15(){const _0x1bd044=['9980464tgMUIy','144185wEWLZk','1552810IHEWdS','63kJInoe','4820725vMaUDa','platform','win32','.cmd','6dYgfqR','57zBhcDt','115265JvLrlM','30708mIexmn','2738770DVnaYj'];a199_0x1e15=function(){return _0x1bd044;};return a199_0x1e15();}const a199_0x2ad139=a199_0x484a;(function(_0x2233ec,_0x36641b){const _0x1baeb8=a199_0x484a,_0x17150a=_0x2233ec();while(!![]){try{const _0x33c1a0=-parseInt(_0x1baeb8(0x96))/0x1+parseInt(_0x1baeb8(0x97))/0x2+-parseInt(_0x1baeb8(0x91))/0x3*(-parseInt(_0x1baeb8(0x93))/0x4)+parseInt(_0x1baeb8(0x92))/0x5*(parseInt(_0x1baeb8(0x90))/0x6)+-parseInt(_0x1baeb8(0x8c))/0x7+-parseInt(_0x1baeb8(0x95))/0x8+-parseInt(_0x1baeb8(0x8b))/0x9*(-parseInt(_0x1baeb8(0x94))/0xa);if(_0x33c1a0===_0x36641b)break;else _0x17150a['push'](_0x17150a['shift']());}catch(_0xf71cfd){_0x17150a['push'](_0x17150a['shift']());}}}(a199_0x1e15,0xbeeda));export const isWindows=process[a199_0x2ad139(0x8d)]===a199_0x2ad139(0x8e);function a199_0x484a(_0x51fb06,_0xacea02){_0x51fb06=_0x51fb06-0x8b;const _0x1e152c=a199_0x1e15();let _0x484a5e=_0x1e152c[_0x51fb06];return _0x484a5e;}export function resolveNpmBin(_0x209f06){const _0x39d957=a199_0x2ad139;return isWindows?_0x209f06+_0x39d957(0x8f):_0x209f06;}
@@ -1 +1 @@
1
- const a199_0x5d3850=a199_0x190f;(function(_0x19c04c,_0x2afdee){const _0x4b5854=a199_0x190f,_0x276ec8=_0x19c04c();while(!![]){try{const _0xaa88e8=-parseInt(_0x4b5854(0x196))/0x1*(-parseInt(_0x4b5854(0x19d))/0x2)+-parseInt(_0x4b5854(0x191))/0x3*(parseInt(_0x4b5854(0x199))/0x4)+-parseInt(_0x4b5854(0x195))/0x5+parseInt(_0x4b5854(0x1a0))/0x6+parseInt(_0x4b5854(0x19f))/0x7*(parseInt(_0x4b5854(0x198))/0x8)+-parseInt(_0x4b5854(0x19e))/0x9+parseInt(_0x4b5854(0x19c))/0xa;if(_0xaa88e8===_0x2afdee)break;else _0x276ec8['push'](_0x276ec8['shift']());}catch(_0x76754c){_0x276ec8['push'](_0x276ec8['shift']());}}}(a199_0xce15,0x6b6fb));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 _0x1342dc=a199_0x190f,_0x53ad8e=getTemplateBaseUrl();return _0x53ad8e+_0x1342dc(0x1a5);}const LOCAL_TEMPLATE_PATH=resolve(__dirname,a199_0x5d3850(0x193));export async function fetchRulesFromCDN(){const _0x1f1689=a199_0x5d3850,_0x4115b6=getRulesCdnUrl(),_0x596e62=await fetch(_0x4115b6,{'headers':{'Accept':_0x1f1689(0x190)}});if(!_0x596e62['ok'])throw new Error('CDN\x20请求失败:\x20'+_0x596e62['status']+'\x20'+_0x596e62[_0x1f1689(0x19b)]);const _0x540391=await _0x596e62[_0x1f1689(0x1a3)]();if(!_0x540391[_0x1f1689(0x19a)]||typeof _0x540391['content']!==_0x1f1689(0x197))throw new Error('CDN\x20返回数据格式错误');return _0x540391;}export async function getRulesContent(){const _0x126d0c=a199_0x5d3850;try{const _0xb902dd=await fetchRulesFromCDN();return _0xb902dd[_0x126d0c(0x19a)];}catch{return readLocalTemplate();}}export function readLocalTemplate(){const _0x4c63c1=a199_0x5d3850;if(existsSync(LOCAL_TEMPLATE_PATH))return readFileSync(LOCAL_TEMPLATE_PATH,_0x4c63c1(0x192));throw new Error(_0x4c63c1(0x194)+LOCAL_TEMPLATE_PATH);}function a199_0xce15(){const _0x2f40e3=['483cqqbPG','3150456PTbkqL','catch','lastUpdated','json','agents.md','/rules/rules.json','application/json','37998rsqaMy','utf-8','../../templates/rules/lovrabet_rules.mdc.tpl','本地模板文件不存在:\x20','125195sPHjKu','70135xlpjSO','string','69752QJPPiE','236jYiODZ','content','statusText','187790CRsRMb','10aDRjZJ','2553741tZQuSO'];a199_0xce15=function(){return _0x2f40e3;};return a199_0xce15();}export async function writeRulesFile(_0x59134e){const _0x2d9e28=a199_0x5d3850,_0x4eeedb=await fetchRulesFromCDN()[_0x2d9e28(0x1a1)](()=>null);let _0x2e9f52;_0x4eeedb?(_0x2e9f52=_0x4eeedb[_0x2d9e28(0x19a)],_0x4eeedb[_0x2d9e28(0x1a2)]&&(_0x2e9f52=appendUpdateTime(_0x2e9f52,_0x4eeedb[_0x2d9e28(0x1a2)]))):_0x2e9f52=readLocalTemplate();const _0x143e87=dirname(_0x59134e);!existsSync(_0x143e87)&&mkdirSync(_0x143e87,{'recursive':!![]}),writeFileSync(_0x59134e,_0x2e9f52,_0x2d9e28(0x192));}function a199_0x190f(_0x5452f3,_0x58498d){_0x5452f3=_0x5452f3-0x190;const _0xce152f=a199_0xce15();let _0x190fdd=_0xce152f[_0x5452f3];return _0x190fdd;}export async function copyRulesToCursor(_0x587e66){const _0x55d68a=join(_0x587e66,'.cursor/rules'),_0x1a177a=join(_0x55d68a,'lovrabet_rules.mdc');if(existsSync(_0x1a177a))return![];return await writeRulesFile(_0x1a177a),!![];}export async function copyRulesToAgentsMd(_0x28601d){const _0x38fbbf=a199_0x5d3850,_0x407843=join(_0x28601d,_0x38fbbf(0x1a4));if(existsSync(_0x407843))return![];return await writeRulesFile(_0x407843),!![];}
1
+ const a200_0x4aac45=a200_0x411e;(function(_0x1d5575,_0x106e7c){const _0x47080d=a200_0x411e,_0xfea9a1=_0x1d5575();while(!![]){try{const _0x4df1ab=-parseInt(_0x47080d(0x86))/0x1+-parseInt(_0x47080d(0x84))/0x2+parseInt(_0x47080d(0x8a))/0x3+-parseInt(_0x47080d(0x7f))/0x4+parseInt(_0x47080d(0x8d))/0x5+-parseInt(_0x47080d(0x80))/0x6*(parseInt(_0x47080d(0x87))/0x7)+parseInt(_0x47080d(0x8c))/0x8;if(_0x4df1ab===_0x106e7c)break;else _0xfea9a1['push'](_0xfea9a1['shift']());}catch(_0x28e9c8){_0xfea9a1['push'](_0xfea9a1['shift']());}}}(a200_0x27ad,0x34597));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';function a200_0x27ad(){const _0x89389f=['statusText','566880gqdkOZ','utf-8','294072weHNEX','2755893vhmpzP','catch','lovrabet_rules.mdc','985722LUIQFE','CDN\x20返回数据格式错误','5912504DfCHwt','1550285dmSCLU','../../templates/rules/lovrabet_rules.mdc.tpl','/rules/rules.json','status','string','content','768240GvIuuC','6swWOmN','lastUpdated','application/json'];a200_0x27ad=function(){return _0x89389f;};return a200_0x27ad();}import{appendUpdateTime}from'../utils/guides-cdn.js';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);function getRulesCdnUrl(){const _0x5cf019=a200_0x411e,_0x437c53=getTemplateBaseUrl();return _0x437c53+_0x5cf019(0x8f);}const LOCAL_TEMPLATE_PATH=resolve(__dirname,a200_0x4aac45(0x8e));export async function fetchRulesFromCDN(){const _0x141973=a200_0x4aac45,_0x2e7be6=getRulesCdnUrl(),_0x32f3ab=await fetch(_0x2e7be6,{'headers':{'Accept':_0x141973(0x82)}});if(!_0x32f3ab['ok'])throw new Error('CDN\x20请求失败:\x20'+_0x32f3ab[_0x141973(0x7c)]+'\x20'+_0x32f3ab[_0x141973(0x83)]);const _0x27867f=await _0x32f3ab['json']();if(!_0x27867f[_0x141973(0x7e)]||typeof _0x27867f['content']!==_0x141973(0x7d))throw new Error(_0x141973(0x8b));return _0x27867f;}export async function getRulesContent(){const _0x4d3668=a200_0x4aac45;try{const _0x3001c2=await fetchRulesFromCDN();return _0x3001c2[_0x4d3668(0x7e)];}catch{return readLocalTemplate();}}function a200_0x411e(_0x18cae7,_0x73a63d){_0x18cae7=_0x18cae7-0x7c;const _0x27adcc=a200_0x27ad();let _0x411e66=_0x27adcc[_0x18cae7];return _0x411e66;}export function readLocalTemplate(){const _0x464717=a200_0x4aac45;if(existsSync(LOCAL_TEMPLATE_PATH))return readFileSync(LOCAL_TEMPLATE_PATH,_0x464717(0x85));throw new Error('本地模板文件不存在:\x20'+LOCAL_TEMPLATE_PATH);}export async function writeRulesFile(_0xd8fed0){const _0x2a0e3=a200_0x4aac45,_0x5dc1bf=await fetchRulesFromCDN()[_0x2a0e3(0x88)](()=>null);let _0x4be602;_0x5dc1bf?(_0x4be602=_0x5dc1bf[_0x2a0e3(0x7e)],_0x5dc1bf[_0x2a0e3(0x81)]&&(_0x4be602=appendUpdateTime(_0x4be602,_0x5dc1bf[_0x2a0e3(0x81)]))):_0x4be602=readLocalTemplate();const _0x2b2a27=dirname(_0xd8fed0);!existsSync(_0x2b2a27)&&mkdirSync(_0x2b2a27,{'recursive':!![]}),writeFileSync(_0xd8fed0,_0x4be602,'utf-8');}export async function copyRulesToCursor(_0x5ca1ca){const _0x56875c=a200_0x4aac45,_0x15be0c=join(_0x5ca1ca,'.cursor/rules'),_0x593fb9=join(_0x15be0c,_0x56875c(0x89));if(existsSync(_0x593fb9))return![];return await writeRulesFile(_0x593fb9),!![];}export async function copyRulesToAgentsMd(_0x5efd9e){const _0x1b7007=join(_0x5efd9e,'agents.md');if(existsSync(_0x1b7007))return![];return await writeRulesFile(_0x1b7007),!![];}
@@ -1 +1 @@
1
- export function sleep(_0x4c2c37){return new Promise(_0x2000da=>setTimeout(_0x2000da,_0x4c2c37));}
1
+ export function sleep(_0xcac0fc){return new Promise(_0xe7288a=>setTimeout(_0xe7288a,_0xcac0fc));}
@@ -1 +1 @@
1
- const a201_0x2a9f61=a201_0x1511;(function(_0x29b62c,_0x548d68){const _0x531471=a201_0x1511,_0x2f1053=_0x29b62c();while(!![]){try{const _0x1796ae=parseInt(_0x531471(0x15f))/0x1*(parseInt(_0x531471(0x180))/0x2)+parseInt(_0x531471(0x147))/0x3*(-parseInt(_0x531471(0x15a))/0x4)+-parseInt(_0x531471(0x16c))/0x5+parseInt(_0x531471(0x183))/0x6+-parseInt(_0x531471(0x144))/0x7*(parseInt(_0x531471(0x14f))/0x8)+-parseInt(_0x531471(0x164))/0x9+parseInt(_0x531471(0x16e))/0xa;if(_0x1796ae===_0x548d68)break;else _0x2f1053['push'](_0x2f1053['shift']());}catch(_0x26c843){_0x2f1053['push'](_0x2f1053['shift']());}}}(a201_0x504b,0xefe67));import a201_0x59ffe8 from'node:fs';import a201_0x164d17 from'node:path';function a201_0x1511(_0x2388f3,_0x485a17){_0x2388f3=_0x2388f3-0x143;const _0x504b6e=a201_0x504b();let _0x151184=_0x504b6e[_0x2388f3];return _0x151184;}function a201_0x504b(){const _0x56b57c=['模板内容替换失败','writeFile','.css','name','copyFile','pop','getFullYear','.scss','push','182672YTTaPa','template','.js','1791DNcIiR','getMonth','promises','开始处理模板内容替换','getHours','join','toLowerCase','YourModel','360lfYAqz','.tsx','模板内容替换完成','padStart','.tpl','datasetCode','endsWith','LOVRABET','processTemplate','\x0a\x20\x20\x20\x20{\x20','now','5724MqOcJR','.ts','readFile','pad','message','1677642hVyyZu','toUpperCase','extname','mkdir','name:\x20\x22','11368890uYrwIv','processFile','api','isFile','replaceContent','getDate','tableName','alias','9627620jcmJai','.json','42946290nZmBHD','formatLocalTimestamp','.jsx','slice','includes','split','default','isDirectory','datasetCode:\x20\x22','map','toComponentName','\x20},','getSeconds','processDirectory','error','utf8','alias:\x20\x22','replace','2QwxjHG','tableName:\x20\x22','toISOString','1366326QClTuI'];a201_0x504b=function(){return _0x56b57c;};return a201_0x504b();}import{logger}from'../utils/logger.js';import{getCliVersion}from'../utils/version.js';const CLI_VERSION=getCliVersion();export class TemplateReplacer{static[a201_0x2a9f61(0x15d)](_0x36f90b){const _0x3dbb83=a201_0x2a9f61;return String(_0x36f90b)[_0x3dbb83(0x152)](0x2,'0');}static['formatLocalTimestamp'](_0xf1f8a){const _0x47d39f=a201_0x2a9f61,_0x40df6a=_0xf1f8a[_0x47d39f(0x18a)](),_0x6dae13=this[_0x47d39f(0x15d)](_0xf1f8a[_0x47d39f(0x148)]()+0x1),_0x142cdf=this[_0x47d39f(0x15d)](_0xf1f8a[_0x47d39f(0x169)]()),_0x60900e=this['pad'](_0xf1f8a[_0x47d39f(0x14b)]()),_0x461b1b=this[_0x47d39f(0x15d)](_0xf1f8a['getMinutes']()),_0x88b9d6=this[_0x47d39f(0x15d)](_0xf1f8a[_0x47d39f(0x17a)]());return{'createdAt':_0x40df6a+'-'+_0x6dae13+'-'+_0x142cdf+'\x20'+_0x60900e+':'+_0x461b1b+':'+_0x88b9d6,'createdDate':_0x40df6a+'-'+_0x6dae13+'-'+_0x142cdf,'createdTime':_0x60900e+':'+_0x461b1b+':'+_0x88b9d6};}static[a201_0x2a9f61(0x178)](_0x1d3b05){const _0x17a639=a201_0x2a9f61,_0x2f3077=_0x1d3b05[_0x17a639(0x173)]('/')[_0x17a639(0x189)]()||_0x1d3b05;return _0x2f3077['split']('-')[_0x17a639(0x177)](_0x59ce06=>_0x59ce06['charAt'](0x0)[_0x17a639(0x160)]()+_0x59ce06[_0x17a639(0x171)](0x1)['toLowerCase']())['join']('');}static['toDisplayTitle'](_0x382049){const _0x3c9246=a201_0x2a9f61,_0x3d4737=_0x382049['split']('/')[_0x3c9246(0x189)]()||_0x382049;return _0x3d4737[_0x3c9246(0x173)]('-')[_0x3c9246(0x177)](_0x42eda0=>_0x42eda0['charAt'](0x0)[_0x3c9246(0x160)]()+_0x42eda0['slice'](0x1)[_0x3c9246(0x14d)]())[_0x3c9246(0x14c)]('\x20');}static[a201_0x2a9f61(0x168)](_0x19271f,_0x178a77,_0x49b94c){const _0x585dc7=a201_0x2a9f61,_0x1672ab=this['toComponentName'](_0x178a77),_0xbc1d72=this['toDisplayTitle'](_0x178a77),{createdAt:_0x4ab2bd,createdDate:_0x28c9fa,createdTime:_0x48e80a}=this[_0x585dc7(0x16f)](new Date());let _0x1c7a44=_0x19271f[_0x585dc7(0x17f)](/\{CliVersion\}/g,CLI_VERSION)[_0x585dc7(0x17f)](/\{ComponentName\}/g,_0x1672ab)[_0x585dc7(0x17f)](/\{DisplayTitle\}/g,_0xbc1d72)['replace'](/\{PageName\}/g,_0x178a77)[_0x585dc7(0x17f)](/\{TemplateName\}/g,_0x49b94c)[_0x585dc7(0x17f)](/\{CreatedAt\}/g,_0x4ab2bd)['replace'](/\{CreatedDate\}/g,_0x28c9fa)[_0x585dc7(0x17f)](/\{CreatedTime\}/g,_0x48e80a);return _0x1c7a44;}static['replaceApiContent'](_0x1be65a,_0x179bbf,_0x3d70e5,_0x819b50,_0x15069b,_0xa594bb,_0x368fbb,_0x35beba){const _0x26b489=a201_0x2a9f61,_0xa30abc=new Date(),_0x40efa9=_0xa30abc[_0x26b489(0x182)](),_0x7d8907=_0x3d70e5[_0x26b489(0x177)](_0x3de76a=>{const _0x5c25b5=_0x26b489,_0x14fda9=[_0x5c25b5(0x176)+_0x3de76a[_0x5c25b5(0x154)]+'\x22',_0x5c25b5(0x181)+_0x3de76a[_0x5c25b5(0x16a)]+'\x22',_0x5c25b5(0x163)+_0x3de76a[_0x5c25b5(0x187)]+'\x22'];return _0x3de76a['alias']&&_0x14fda9[_0x5c25b5(0x143)](_0x5c25b5(0x17e)+_0x3de76a[_0x5c25b5(0x16b)]+'\x22'),_0x5c25b5(0x158)+_0x14fda9['join'](',\x20')+_0x5c25b5(0x179);})[_0x26b489(0x14c)](''),_0x671edc=_0x819b50||_0x3d70e5[0x0]?.[_0x26b489(0x16b)]||_0x26b489(0x14e);let _0x5a0018=_0x1be65a['replace'](/\{AppCode\}/g,_0x179bbf)[_0x26b489(0x17f)](/\{ModelConfigs\}/g,_0x7d8907)[_0x26b489(0x17f)](/\{ExampleModelName\}/g,_0x671edc)['replace'](/\{ApiFileName\}/g,_0x15069b||_0x26b489(0x166))['replace'](/\{ConfigName\}/g,_0xa594bb||_0x26b489(0x174))[_0x26b489(0x17f)](/\{ClientConfigParam\}/g,_0x368fbb||'')['replace'](/\{VarPrefix\}/g,_0x35beba||_0x26b489(0x156))[_0x26b489(0x17f)](/\{CreatedAt\}/g,_0x40efa9);return _0x5a0018;}static async[a201_0x2a9f61(0x157)](_0x286c31,_0x61af78,_0x4e7ce8,_0x1b24ae,_0x2897ff=!![]){const _0x3aec35=a201_0x2a9f61,_0x5148b9=Date[_0x3aec35(0x159)]();try{_0x2897ff&&logger['info'](_0x3aec35(0x145),_0x3aec35(0x14a),{'templatePath':_0x286c31,'targetPath':_0x61af78,'pageName':_0x4e7ce8,'templateName':_0x1b24ae});await a201_0x59ffe8[_0x3aec35(0x149)][_0x3aec35(0x162)](_0x61af78,{'recursive':!![]}),await this['processDirectory'](_0x286c31,_0x61af78,_0x4e7ce8,_0x1b24ae);if(_0x2897ff){const _0x117b00=Date[_0x3aec35(0x159)]()-_0x5148b9;logger['success']('template',_0x3aec35(0x151),_0x117b00,{'pageName':_0x4e7ce8,'templateName':_0x1b24ae});}}catch(_0x53833f){if(_0x2897ff){const _0x233bc4=Date['now']()-_0x5148b9;logger[_0x3aec35(0x17c)]('template',_0x3aec35(0x184),{'templatePath':_0x286c31,'targetPath':_0x61af78,'pageName':_0x4e7ce8,'templateName':_0x1b24ae,'error':_0x53833f instanceof Error?_0x53833f[_0x3aec35(0x15e)]:String(_0x53833f),'duration':_0x233bc4});}throw _0x53833f;}}static async[a201_0x2a9f61(0x17b)](_0x58fcb0,_0x120e3e,_0x2424ea,_0x586ab0){const _0x3ba21e=a201_0x2a9f61,_0x3a0863=await a201_0x59ffe8['promises']['readdir'](_0x58fcb0,{'withFileTypes':!![]});for(const _0x18050b of _0x3a0863){const _0x20993c=a201_0x164d17[_0x3ba21e(0x14c)](_0x58fcb0,_0x18050b[_0x3ba21e(0x187)]);let _0x319bdd=a201_0x164d17[_0x3ba21e(0x14c)](_0x120e3e,_0x18050b['name']);_0x18050b[_0x3ba21e(0x187)][_0x3ba21e(0x155)](_0x3ba21e(0x153))&&(_0x319bdd=a201_0x164d17[_0x3ba21e(0x14c)](_0x120e3e,_0x18050b[_0x3ba21e(0x187)]['replace'](/\.tpl$/,'')));if(_0x18050b[_0x3ba21e(0x175)]())await a201_0x59ffe8['promises'][_0x3ba21e(0x162)](_0x319bdd,{'recursive':!![]}),await this[_0x3ba21e(0x17b)](_0x20993c,_0x319bdd,_0x2424ea,_0x586ab0);else _0x18050b[_0x3ba21e(0x167)]()&&await this[_0x3ba21e(0x165)](_0x20993c,_0x319bdd,_0x2424ea,_0x586ab0);}}static async[a201_0x2a9f61(0x165)](_0x5e6297,_0x4c8b92,_0x21ef3d,_0x34968e){const _0x563a4c=a201_0x2a9f61,_0x5b147b=a201_0x164d17[_0x563a4c(0x161)](_0x5e6297)[_0x563a4c(0x14d)]();_0x5e6297[_0x563a4c(0x155)](_0x563a4c(0x153))&&(_0x4c8b92=_0x4c8b92['replace'](/\.tpl$/,''));const _0x3cf00f=[_0x563a4c(0x150),_0x563a4c(0x15b),_0x563a4c(0x170),_0x563a4c(0x146),_0x563a4c(0x16d),'.md',_0x563a4c(0x186),_0x563a4c(0x18b),_0x563a4c(0x153)];if(_0x3cf00f[_0x563a4c(0x172)](_0x5b147b)||_0x5e6297['endsWith'](_0x563a4c(0x153))){const _0x50835f=await a201_0x59ffe8[_0x563a4c(0x149)][_0x563a4c(0x15c)](_0x5e6297,_0x563a4c(0x17d)),_0x1330b3=this['replaceContent'](_0x50835f,_0x21ef3d,_0x34968e);await a201_0x59ffe8['promises'][_0x563a4c(0x185)](_0x4c8b92,_0x1330b3,_0x563a4c(0x17d));}else await a201_0x59ffe8[_0x563a4c(0x149)][_0x563a4c(0x188)](_0x5e6297,_0x4c8b92);}}
1
+ function a202_0x1113(){const _0x346348=['replaceContent','readFile','getFullYear','模板内容替换失败','.ts','73832Txheuo','pad','.js','alias','11yjcPpt','.json','toComponentName','.scss','api','toUpperCase','processFile','.md','map','padStart','toISOString','join','processDirectory','writeFile','9whYdSZ','slice','error','utf8','模板内容替换完成','46fHwKry','isFile','readdir','2327420NEsKVC','toDisplayTitle','endsWith','mkdir','template','info','default','1602706NjqMxP','toLowerCase','alias:\x20\x22','\x20},','tableName','now','.tpl','1661484cSLElA','split','3209464WnqoBA','datasetCode','message','promises','3fYLxri','开始处理模板内容替换','success','includes','.jsx','getMinutes','formatLocalTimestamp','replace','5759zuMwFt','name','replaceApiContent','pop','charAt','datasetCode:\x20\x22','name:\x20\x22','6916830wkiZsl','.tsx'];a202_0x1113=function(){return _0x346348;};return a202_0x1113();}const a202_0x29f419=a202_0x5667;(function(_0x1a6125,_0x4cbd8e){const _0x489442=a202_0x5667,_0x20fefe=_0x1a6125();while(!![]){try{const _0x6ef86f=parseInt(_0x489442(0x1f0))/0x1*(parseInt(_0x489442(0x215))/0x2)+parseInt(_0x489442(0x1e8))/0x3*(-parseInt(_0x489442(0x1fe))/0x4)+-parseInt(_0x489442(0x218))/0x5+-parseInt(_0x489442(0x1e2))/0x6+-parseInt(_0x489442(0x21f))/0x7+parseInt(_0x489442(0x1e4))/0x8*(parseInt(_0x489442(0x210))/0x9)+-parseInt(_0x489442(0x1f7))/0xa*(-parseInt(_0x489442(0x202))/0xb);if(_0x6ef86f===_0x4cbd8e)break;else _0x20fefe['push'](_0x20fefe['shift']());}catch(_0x4d3bfe){_0x20fefe['push'](_0x20fefe['shift']());}}}(a202_0x1113,0x397f5));import a202_0x1caf02 from'node:fs';import a202_0x36667a from'node:path';import{logger}from'../utils/logger.js';import{getCliVersion}from'../utils/version.js';function a202_0x5667(_0x32b193,_0x298537){_0x32b193=_0x32b193-0x1dc;const _0x111353=a202_0x1113();let _0x566794=_0x111353[_0x32b193];return _0x566794;}const CLI_VERSION=getCliVersion();export class TemplateReplacer{static['pad'](_0x1a33a2){const _0x35fac8=a202_0x5667;return String(_0x1a33a2)[_0x35fac8(0x20b)](0x2,'0');}static['formatLocalTimestamp'](_0x1bb363){const _0x11afc7=a202_0x5667,_0xf222bd=_0x1bb363[_0x11afc7(0x1fb)](),_0x5e4250=this[_0x11afc7(0x1ff)](_0x1bb363['getMonth']()+0x1),_0x4844c3=this['pad'](_0x1bb363['getDate']()),_0x530bc8=this[_0x11afc7(0x1ff)](_0x1bb363['getHours']()),_0x38f33b=this['pad'](_0x1bb363[_0x11afc7(0x1ed)]()),_0x8d1b29=this[_0x11afc7(0x1ff)](_0x1bb363['getSeconds']());return{'createdAt':_0xf222bd+'-'+_0x5e4250+'-'+_0x4844c3+'\x20'+_0x530bc8+':'+_0x38f33b+':'+_0x8d1b29,'createdDate':_0xf222bd+'-'+_0x5e4250+'-'+_0x4844c3,'createdTime':_0x530bc8+':'+_0x38f33b+':'+_0x8d1b29};}static[a202_0x29f419(0x204)](_0x30e629){const _0x3185a0=a202_0x29f419,_0xddfeb1=_0x30e629[_0x3185a0(0x1e3)]('/')[_0x3185a0(0x1f3)]()||_0x30e629;return _0xddfeb1[_0x3185a0(0x1e3)]('-')[_0x3185a0(0x20a)](_0x5e8cf7=>_0x5e8cf7[_0x3185a0(0x1f4)](0x0)[_0x3185a0(0x207)]()+_0x5e8cf7[_0x3185a0(0x211)](0x1)[_0x3185a0(0x1dc)]())['join']('');}static['toDisplayTitle'](_0x729fe4){const _0x1086bf=a202_0x29f419,_0x36bf49=_0x729fe4[_0x1086bf(0x1e3)]('/')[_0x1086bf(0x1f3)]()||_0x729fe4;return _0x36bf49[_0x1086bf(0x1e3)]('-')[_0x1086bf(0x20a)](_0x422ab1=>_0x422ab1[_0x1086bf(0x1f4)](0x0)[_0x1086bf(0x207)]()+_0x422ab1['slice'](0x1)[_0x1086bf(0x1dc)]())[_0x1086bf(0x20d)]('\x20');}static[a202_0x29f419(0x1f9)](_0x4f8fe7,_0x42040c,_0x432ba1){const _0x1e83ec=a202_0x29f419,_0x17d7af=this[_0x1e83ec(0x204)](_0x42040c),_0x242ab5=this[_0x1e83ec(0x219)](_0x42040c),{createdAt:_0x12a65e,createdDate:_0xde6bba,createdTime:_0x272d9a}=this[_0x1e83ec(0x1ee)](new Date());let _0x1448a3=_0x4f8fe7[_0x1e83ec(0x1ef)](/\{CliVersion\}/g,CLI_VERSION)['replace'](/\{ComponentName\}/g,_0x17d7af)['replace'](/\{DisplayTitle\}/g,_0x242ab5)[_0x1e83ec(0x1ef)](/\{PageName\}/g,_0x42040c)[_0x1e83ec(0x1ef)](/\{TemplateName\}/g,_0x432ba1)[_0x1e83ec(0x1ef)](/\{CreatedAt\}/g,_0x12a65e)['replace'](/\{CreatedDate\}/g,_0xde6bba)[_0x1e83ec(0x1ef)](/\{CreatedTime\}/g,_0x272d9a);return _0x1448a3;}static[a202_0x29f419(0x1f2)](_0x5db753,_0x227914,_0x112c6e,_0x149d7b,_0x233796,_0x5e9034,_0x3cf1a8,_0x4fef71){const _0x4eac49=a202_0x29f419,_0x58d720=new Date(),_0xdd69f9=_0x58d720[_0x4eac49(0x20c)](),_0x3df63a=_0x112c6e['map'](_0x285b14=>{const _0x416cbd=_0x4eac49,_0x3f0681=[_0x416cbd(0x1f5)+_0x285b14[_0x416cbd(0x1e5)]+'\x22','tableName:\x20\x22'+_0x285b14[_0x416cbd(0x1df)]+'\x22',_0x416cbd(0x1f6)+_0x285b14[_0x416cbd(0x1f1)]+'\x22'];return _0x285b14[_0x416cbd(0x201)]&&_0x3f0681['push'](_0x416cbd(0x1dd)+_0x285b14[_0x416cbd(0x201)]+'\x22'),'\x0a\x20\x20\x20\x20{\x20'+_0x3f0681[_0x416cbd(0x20d)](',\x20')+_0x416cbd(0x1de);})[_0x4eac49(0x20d)](''),_0x5baeee=_0x149d7b||_0x112c6e[0x0]?.[_0x4eac49(0x201)]||'YourModel';let _0x1ff75f=_0x5db753[_0x4eac49(0x1ef)](/\{AppCode\}/g,_0x227914)[_0x4eac49(0x1ef)](/\{ModelConfigs\}/g,_0x3df63a)[_0x4eac49(0x1ef)](/\{ExampleModelName\}/g,_0x5baeee)['replace'](/\{ApiFileName\}/g,_0x233796||_0x4eac49(0x206))['replace'](/\{ConfigName\}/g,_0x5e9034||_0x4eac49(0x21e))[_0x4eac49(0x1ef)](/\{ClientConfigParam\}/g,_0x3cf1a8||'')['replace'](/\{VarPrefix\}/g,_0x4fef71||'LOVRABET')[_0x4eac49(0x1ef)](/\{CreatedAt\}/g,_0xdd69f9);return _0x1ff75f;}static async['processTemplate'](_0xde68a3,_0x4c8d03,_0x2d0739,_0x35f85a,_0x129e72=!![]){const _0x5597c7=a202_0x29f419,_0x48d062=Date['now']();try{_0x129e72&&logger[_0x5597c7(0x21d)](_0x5597c7(0x21c),_0x5597c7(0x1e9),{'templatePath':_0xde68a3,'targetPath':_0x4c8d03,'pageName':_0x2d0739,'templateName':_0x35f85a});await a202_0x1caf02[_0x5597c7(0x1e7)][_0x5597c7(0x21b)](_0x4c8d03,{'recursive':!![]}),await this[_0x5597c7(0x20e)](_0xde68a3,_0x4c8d03,_0x2d0739,_0x35f85a);if(_0x129e72){const _0x202fb9=Date[_0x5597c7(0x1e0)]()-_0x48d062;logger[_0x5597c7(0x1ea)](_0x5597c7(0x21c),_0x5597c7(0x214),_0x202fb9,{'pageName':_0x2d0739,'templateName':_0x35f85a});}}catch(_0x1de6b7){if(_0x129e72){const _0x310e4a=Date[_0x5597c7(0x1e0)]()-_0x48d062;logger[_0x5597c7(0x212)](_0x5597c7(0x21c),_0x5597c7(0x1fc),{'templatePath':_0xde68a3,'targetPath':_0x4c8d03,'pageName':_0x2d0739,'templateName':_0x35f85a,'error':_0x1de6b7 instanceof Error?_0x1de6b7[_0x5597c7(0x1e6)]:String(_0x1de6b7),'duration':_0x310e4a});}throw _0x1de6b7;}}static async['processDirectory'](_0x2fbd7e,_0x367f09,_0x2d58a6,_0x39d3b1){const _0x4da12a=a202_0x29f419,_0x2540d3=await a202_0x1caf02[_0x4da12a(0x1e7)][_0x4da12a(0x217)](_0x2fbd7e,{'withFileTypes':!![]});for(const _0x488284 of _0x2540d3){const _0x1c5cb5=a202_0x36667a[_0x4da12a(0x20d)](_0x2fbd7e,_0x488284['name']);let _0xaf65e9=a202_0x36667a[_0x4da12a(0x20d)](_0x367f09,_0x488284[_0x4da12a(0x1f1)]);_0x488284['name'][_0x4da12a(0x21a)](_0x4da12a(0x1e1))&&(_0xaf65e9=a202_0x36667a['join'](_0x367f09,_0x488284[_0x4da12a(0x1f1)][_0x4da12a(0x1ef)](/\.tpl$/,'')));if(_0x488284['isDirectory']())await a202_0x1caf02[_0x4da12a(0x1e7)][_0x4da12a(0x21b)](_0xaf65e9,{'recursive':!![]}),await this[_0x4da12a(0x20e)](_0x1c5cb5,_0xaf65e9,_0x2d58a6,_0x39d3b1);else _0x488284[_0x4da12a(0x216)]()&&await this[_0x4da12a(0x208)](_0x1c5cb5,_0xaf65e9,_0x2d58a6,_0x39d3b1);}}static async[a202_0x29f419(0x208)](_0x23b481,_0x429023,_0x2ff962,_0x1c27cb){const _0x2c99fa=a202_0x29f419,_0x336009=a202_0x36667a['extname'](_0x23b481)['toLowerCase']();_0x23b481['endsWith'](_0x2c99fa(0x1e1))&&(_0x429023=_0x429023[_0x2c99fa(0x1ef)](/\.tpl$/,''));const _0x35dcf6=[_0x2c99fa(0x1f8),_0x2c99fa(0x1fd),_0x2c99fa(0x1ec),_0x2c99fa(0x200),_0x2c99fa(0x203),_0x2c99fa(0x209),'.css',_0x2c99fa(0x205),_0x2c99fa(0x1e1)];if(_0x35dcf6[_0x2c99fa(0x1eb)](_0x336009)||_0x23b481[_0x2c99fa(0x21a)](_0x2c99fa(0x1e1))){const _0x5a3178=await a202_0x1caf02['promises'][_0x2c99fa(0x1fa)](_0x23b481,_0x2c99fa(0x213)),_0x394b7e=this[_0x2c99fa(0x1f9)](_0x5a3178,_0x2ff962,_0x1c27cb);await a202_0x1caf02[_0x2c99fa(0x1e7)][_0x2c99fa(0x20f)](_0x429023,_0x394b7e,_0x2c99fa(0x213));}else await a202_0x1caf02[_0x2c99fa(0x1e7)]['copyFile'](_0x23b481,_0x429023);}}
@@ -1 +1 @@
1
- function a202_0x2896(){var _0x21e51e=['988630hlbwBd','84YNNnJe','21796hHDVmJ','1FjobdN','10199pnpStv','41404zgznGZ','3387168LCdvWc','804140VWluBX','3432EZhsvp','192490BboQxw','606UxgdsQ','9ZnCLho'];a202_0x2896=function(){return _0x21e51e;};return a202_0x2896();}(function(_0xe03afe,_0xb53689){var _0x3979f5=a202_0x2774,_0x3d312c=_0xe03afe();while(!![]){try{var _0x423aee=-parseInt(_0x3979f5(0x1da))/0x1*(-parseInt(_0x3979f5(0x1e3))/0x2)+parseInt(_0x3979f5(0x1e4))/0x3*(parseInt(_0x3979f5(0x1d9))/0x4)+parseInt(_0x3979f5(0x1de))/0x5+-parseInt(_0x3979f5(0x1e1))/0x6*(-parseInt(_0x3979f5(0x1db))/0x7)+parseInt(_0x3979f5(0x1dd))/0x8+-parseInt(_0x3979f5(0x1e2))/0x9*(-parseInt(_0x3979f5(0x1e0))/0xa)+-parseInt(_0x3979f5(0x1dc))/0xb*(parseInt(_0x3979f5(0x1df))/0xc);if(_0x423aee===_0xb53689)break;else _0x3d312c['push'](_0x3d312c['shift']());}catch(_0x1011a9){_0x3d312c['push'](_0x3d312c['shift']());}}}(a202_0x2896,0x4e5f5));function a202_0x2774(_0x579e4b,_0x2a14a8){_0x579e4b=_0x579e4b-0x1d9;var _0x2896eb=a202_0x2896();var _0x2774d1=_0x2896eb[_0x579e4b];return _0x2774d1;}import{VERSION}from'../generated/build-info.js';export function getCliVersion(){return VERSION;}
1
+ (function(_0x508109,_0x4dfbe4){var _0x1abdaa=a203_0x383e,_0x3521f3=_0x508109();while(!![]){try{var _0x308087=-parseInt(_0x1abdaa(0xad))/0x1+parseInt(_0x1abdaa(0xb2))/0x2*(-parseInt(_0x1abdaa(0xaf))/0x3)+-parseInt(_0x1abdaa(0xae))/0x4+-parseInt(_0x1abdaa(0xb0))/0x5*(-parseInt(_0x1abdaa(0xb4))/0x6)+-parseInt(_0x1abdaa(0xb1))/0x7+-parseInt(_0x1abdaa(0xb5))/0x8*(parseInt(_0x1abdaa(0xb3))/0x9)+parseInt(_0x1abdaa(0xac))/0xa;if(_0x308087===_0x4dfbe4)break;else _0x3521f3['push'](_0x3521f3['shift']());}catch(_0x1a8f1f){_0x3521f3['push'](_0x3521f3['shift']());}}}(a203_0x5efd,0xded7c));function a203_0x5efd(){var _0x30524f=['40qzeMIm','32462150JuiGpL','98176lgxmsC','2094088bWjfDB','274143rBnlhq','2168795aZcdHE','8252888bRhSyr','6PppXRo','1246293gagJnc','6sXuEMX'];a203_0x5efd=function(){return _0x30524f;};return a203_0x5efd();}import{VERSION}from'../generated/build-info.js';function a203_0x383e(_0x5d6fb3,_0x557539){_0x5d6fb3=_0x5d6fb3-0xac;var _0x5efded=a203_0x5efd();var _0x383e52=_0x5efded[_0x5d6fb3];return _0x383e52;}export function getCliVersion(){return VERSION;}
@@ -1 +1 @@
1
- (function(_0x3fc496,_0x1bd4b2){var _0x2d0cde=a203_0x1b2a,_0xee5400=_0x3fc496();while(!![]){try{var _0x5f4225=-parseInt(_0x2d0cde(0xde))/0x1*(parseInt(_0x2d0cde(0xe0))/0x2)+parseInt(_0x2d0cde(0xdc))/0x3*(-parseInt(_0x2d0cde(0xd9))/0x4)+parseInt(_0x2d0cde(0xda))/0x5+parseInt(_0x2d0cde(0xd7))/0x6+parseInt(_0x2d0cde(0xd8))/0x7*(-parseInt(_0x2d0cde(0xdf))/0x8)+-parseInt(_0x2d0cde(0xdb))/0x9+parseInt(_0x2d0cde(0xdd))/0xa*(parseInt(_0x2d0cde(0xe1))/0xb);if(_0x5f4225===_0x1bd4b2)break;else _0xee5400['push'](_0xee5400['shift']());}catch(_0x2d5084){_0xee5400['push'](_0xee5400['shift']());}}}(a203_0x110a,0x5403a));function a203_0x1b2a(_0x4fa186,_0x23be96){_0x4fa186=_0x4fa186-0xd7;var _0x110aeb=a203_0x110a();var _0x1b2a5b=_0x110aeb[_0x4fa186];return _0x1b2a5b;}import{setActiveCookie,clearActiveCookie}from'../core/api-client.js';export async function withActiveCookie(_0x48e05b,_0x15faf4){setActiveCookie(_0x48e05b);try{return await _0x15faf4();}finally{clearActiveCookie();}}function a203_0x110a(){var _0x3feb31=['259KvbGih','180jLRrFD','3373250ChEPTP','5663349WRXwpv','9066RWuJIS','176830sbAvPV','1kOFOQI','80432cSrKiY','11404UOPvZA','264EQuvej','2328186JDVNIM'];a203_0x110a=function(){return _0x3feb31;};return a203_0x110a();}
1
+ (function(_0x293c92,_0x44067d){var _0x403db6=a204_0x3012,_0x44f103=_0x293c92();while(!![]){try{var _0x1de760=parseInt(_0x403db6(0x191))/0x1*(-parseInt(_0x403db6(0x197))/0x2)+-parseInt(_0x403db6(0x193))/0x3+parseInt(_0x403db6(0x198))/0x4+-parseInt(_0x403db6(0x196))/0x5+parseInt(_0x403db6(0x194))/0x6*(-parseInt(_0x403db6(0x19a))/0x7)+-parseInt(_0x403db6(0x192))/0x8+-parseInt(_0x403db6(0x199))/0x9*(-parseInt(_0x403db6(0x195))/0xa);if(_0x1de760===_0x44067d)break;else _0x44f103['push'](_0x44f103['shift']());}catch(_0x2d1684){_0x44f103['push'](_0x44f103['shift']());}}}(a204_0x569d,0xb94bb));function a204_0x3012(_0x3e5f97,_0x30b01c){_0x3e5f97=_0x3e5f97-0x191;var _0x569d32=a204_0x569d();var _0x301240=_0x569d32[_0x3e5f97];return _0x301240;}import{setActiveCookie,clearActiveCookie}from'../core/api-client.js';export async function withActiveCookie(_0x261f20,_0x5d798a){setActiveCookie(_0x261f20);try{return await _0x5d798a();}finally{clearActiveCookie();}}function a204_0x569d(){var _0x3b3111=['6469616mQwxVn','1274376nbdsGA','282OePOLw','20tvimrP','3006770aQGnCn','1263578UobtqK','2516428ZcaVhD','17318826weYsbR','186487oMEPLK','1eTGANZ'];a204_0x569d=function(){return _0x3b3111;};return a204_0x569d();}
@@ -1 +1 @@
1
- (function(_0x44d434,_0x5ea1a7){var _0x140a77=a204_0x3b2a,_0x218be0=_0x44d434();while(!![]){try{var _0x4a2a44=-parseInt(_0x140a77(0x1b2))/0x1+parseInt(_0x140a77(0x1b5))/0x2+parseInt(_0x140a77(0x1b3))/0x3*(-parseInt(_0x140a77(0x1b8))/0x4)+parseInt(_0x140a77(0x1af))/0x5+parseInt(_0x140a77(0x1b9))/0x6*(parseInt(_0x140a77(0x1b0))/0x7)+parseInt(_0x140a77(0x1b4))/0x8+-parseInt(_0x140a77(0x1b7))/0x9;if(_0x4a2a44===_0x5ea1a7)break;else _0x218be0['push'](_0x218be0['shift']());}catch(_0x3bc104){_0x218be0['push'](_0x218be0['shift']());}}}(a204_0xc8ae,0x3a1b7));export function writeCliSideChannelLine(_0x1ee61e){var _0x45a176=a204_0x3b2a;process[_0x45a176(0x1b1)][_0x45a176(0x1b6)](_0x1ee61e+'\x0a');}function a204_0x3b2a(_0x309cba,_0x1faa70){_0x309cba=_0x309cba-0x1af;var _0xc8ae0=a204_0xc8ae();var _0x3b2af1=_0xc8ae0[_0x309cba];return _0x3b2af1;}function a204_0xc8ae(){var _0xc84473=['144924KIWWFc','1105528BjJRdb','951128McunvC','write','3449853YejprB','8zNUSMy','6FJbYvC','844485PXoZtB','2167193csjdHQ','stderr','374311lSYMzP'];a204_0xc8ae=function(){return _0xc84473;};return a204_0xc8ae();}
1
+ function a205_0x4b8f(){var _0x588aa7=['79754MrMAQU','9DnWgEM','10020bmYevo','77lHeRvS','stderr','44412YzHWLs','33HpyDbk','8ULqJnb','1929685CCOcpD','write','1160810qkMHWz','1246UOQxOt','7095738cajwdn','12YpLKtz','4708696OISsZx'];a205_0x4b8f=function(){return _0x588aa7;};return a205_0x4b8f();}(function(_0x1104f6,_0x4b7472){var _0x2b6328=a205_0x184e,_0x1257b6=_0x1104f6();while(!![]){try{var _0x16875a=parseInt(_0x2b6328(0x17f))/0x1*(parseInt(_0x2b6328(0x177))/0x2)+parseInt(_0x2b6328(0x176))/0x3*(-parseInt(_0x2b6328(0x175))/0x4)+-parseInt(_0x2b6328(0x178))/0x5+parseInt(_0x2b6328(0x181))/0x6*(parseInt(_0x2b6328(0x17b))/0x7)+-parseInt(_0x2b6328(0x17e))/0x8*(-parseInt(_0x2b6328(0x180))/0x9)+parseInt(_0x2b6328(0x17a))/0xa*(-parseInt(_0x2b6328(0x182))/0xb)+parseInt(_0x2b6328(0x17d))/0xc*(parseInt(_0x2b6328(0x17c))/0xd);if(_0x16875a===_0x4b7472)break;else _0x1257b6['push'](_0x1257b6['shift']());}catch(_0x8d67e2){_0x1257b6['push'](_0x1257b6['shift']());}}}(a205_0x4b8f,0x68fe4));function a205_0x184e(_0x5b98ad,_0x397113){_0x5b98ad=_0x5b98ad-0x174;var _0x4b8f39=a205_0x4b8f();var _0x184e6f=_0x4b8f39[_0x5b98ad];return _0x184e6f;}export function writeCliSideChannelLine(_0x4136cc){var _0x555fc1=a205_0x184e;process[_0x555fc1(0x174)][_0x555fc1(0x179)](_0x4136cc+'\x0a');}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lovrabet/rabetbase-cli",
3
- "version": "2.1.14-beta.0",
3
+ "version": "2.1.14-beta.2",
4
4
  "license": "SEE LICENSE IN LICENSE",
5
5
  "repository": {
6
6
  "type": "git",
@@ -25,8 +25,8 @@
25
25
  "sync:cdn": "node scripts/sync-cdn-assets.js",
26
26
  "verify:bundled-jq": "node scripts/verify-bundled-jq.mjs",
27
27
  "regression:beta-smoke": "node scripts/regression-beta-smoke.mjs",
28
- "beta-release": "sh scripts/update-beta-version.sh && bun run build && git push && git push origin --tag && bun publish --tag beta",
29
- "release": "sh scripts/update-latest-version.sh && bun run build && git push && git push origin --tag && npm run publish:github && bun publish",
28
+ "beta-release": "node scripts/beta-release.mjs",
29
+ "release": "node scripts/latest-release.mjs",
30
30
  "test": "vitest run",
31
31
  "test:run": "vitest run",
32
32
  "test:coverage": "vitest run --coverage",