@lovrabet/rabetbase-cli 2.3.15-beta.2 → 2.3.16-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (273) hide show
  1. package/README.md +7 -2
  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/index.js +1 -1
  22. package/lib/commands/app/list.js +1 -1
  23. package/lib/commands/app/remote-directory.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-config/delete.js +1 -1
  27. package/lib/commands/app-config/get.js +1 -1
  28. package/lib/commands/app-config/index.js +1 -1
  29. package/lib/commands/app-config/list.js +1 -1
  30. package/lib/commands/app-config/set.js +1 -1
  31. package/lib/commands/app-config/shared.js +1 -1
  32. package/lib/commands/auth/index.js +1 -1
  33. package/lib/commands/bff/create.js +1 -1
  34. package/lib/commands/bff/delete.js +1 -1
  35. package/lib/commands/bff/detail.js +1 -1
  36. package/lib/commands/bff/index.js +1 -1
  37. package/lib/commands/bff/list.js +1 -1
  38. package/lib/commands/bff/pull.js +1 -1
  39. package/lib/commands/bff/push.js +1 -1
  40. package/lib/commands/bff/status.js +1 -1
  41. package/lib/commands/cli-skill/index.js +1 -1
  42. package/lib/commands/cli-update.js +1 -1
  43. package/lib/commands/codegen/index.js +1 -1
  44. package/lib/commands/codegen/sdk.js +1 -1
  45. package/lib/commands/codegen/sql.js +1 -1
  46. package/lib/commands/common/app-registry.js +1 -1
  47. package/lib/commands/common/app-selector.js +1 -1
  48. package/lib/commands/common/async-task.js +1 -1
  49. package/lib/commands/common/dry-run.js +1 -1
  50. package/lib/commands/common/flags.js +1 -1
  51. package/lib/commands/common/local-file.js +1 -1
  52. package/lib/commands/common/validate.js +1 -1
  53. package/lib/commands/config/get.js +1 -1
  54. package/lib/commands/config/index.js +1 -1
  55. package/lib/commands/config/list.js +1 -1
  56. package/lib/commands/config/set.js +1 -1
  57. package/lib/commands/config/shared.js +1 -1
  58. package/lib/commands/data/filter.js +1 -1
  59. package/lib/commands/data/getOne.js +1 -1
  60. package/lib/commands/data/index.js +1 -1
  61. package/lib/commands/data/shared.js +1 -1
  62. package/lib/commands/dataset/business-group-update.js +1 -1
  63. package/lib/commands/dataset/capability.js +1 -1
  64. package/lib/commands/dataset/delete.js +1 -1
  65. package/lib/commands/dataset/detail.js +1 -1
  66. package/lib/commands/dataset/extend-update.js +1 -1
  67. package/lib/commands/dataset/field-update.js +1 -1
  68. package/lib/commands/dataset/generate.js +1 -1
  69. package/lib/commands/dataset/index.js +1 -1
  70. package/lib/commands/dataset/list.js +1 -1
  71. package/lib/commands/dataset/operations.js +1 -1
  72. package/lib/commands/dataset/relation-audit.js +1 -1
  73. package/lib/commands/dataset/relation-create.js +1 -1
  74. package/lib/commands/dataset/relation-delete.js +1 -1
  75. package/lib/commands/dataset/relation-shared.js +1 -1
  76. package/lib/commands/dataset/relation-update.js +1 -1
  77. package/lib/commands/dataset/relations.js +1 -1
  78. package/lib/commands/dataset/rename.js +1 -1
  79. package/lib/commands/dataset/restore.js +1 -1
  80. package/lib/commands/db/analysis-batching.js +1 -1
  81. package/lib/commands/db/analyze-batch-plan.js +1 -1
  82. package/lib/commands/db/analyze-cancel.js +1 -1
  83. package/lib/commands/db/analyze-start.js +1 -1
  84. package/lib/commands/db/analyze-status.js +1 -1
  85. package/lib/commands/db/create.js +1 -1
  86. package/lib/commands/db/delete.js +1 -1
  87. package/lib/commands/db/detail.js +1 -1
  88. package/lib/commands/db/diff.js +1 -1
  89. package/lib/commands/db/index.js +1 -1
  90. package/lib/commands/db/list.js +1 -1
  91. package/lib/commands/db/shared.js +1 -1
  92. package/lib/commands/db/tables.js +1 -1
  93. package/lib/commands/db/test.js +1 -1
  94. package/lib/commands/db/update.js +1 -1
  95. package/lib/commands/doctor.js +1 -1
  96. package/lib/commands/file/index.js +1 -1
  97. package/lib/commands/init/index.js +1 -1
  98. package/lib/commands/issue/index.js +1 -1
  99. package/lib/commands/issue/nudge.js +1 -1
  100. package/lib/commands/issue/report.js +1 -1
  101. package/lib/commands/issue/shared.js +1 -1
  102. package/lib/commands/kb/create.js +1 -0
  103. package/lib/commands/kb/delete.js +1 -0
  104. package/lib/commands/kb/detail.js +1 -0
  105. package/lib/commands/kb/index.js +1 -0
  106. package/lib/commands/kb/list.js +1 -0
  107. package/lib/commands/kb/shared.js +1 -0
  108. package/lib/commands/kb/update.js +1 -0
  109. package/lib/commands/logs/index.js +1 -1
  110. package/lib/commands/menu/asset-update.js +1 -1
  111. package/lib/commands/menu/delete.js +1 -1
  112. package/lib/commands/menu/external-link-create.js +1 -1
  113. package/lib/commands/menu/external-link-update.js +1 -1
  114. package/lib/commands/menu/group-create.js +1 -1
  115. package/lib/commands/menu/group-update.js +1 -1
  116. package/lib/commands/menu/index.js +1 -1
  117. package/lib/commands/menu/list.js +1 -1
  118. package/lib/commands/menu/move.js +1 -1
  119. package/lib/commands/menu/regroup-start.js +1 -1
  120. package/lib/commands/menu/rename.js +1 -1
  121. package/lib/commands/menu/shared/compare-table.js +1 -1
  122. package/lib/commands/menu/shared/delete-plan.js +1 -1
  123. package/lib/commands/menu/shared/facts.js +1 -1
  124. package/lib/commands/menu/shared/index.js +1 -1
  125. package/lib/commands/menu/shared/inquirer.js +1 -1
  126. package/lib/commands/menu/shared/local-pages.js +1 -1
  127. package/lib/commands/menu/shared/logic.js +1 -1
  128. package/lib/commands/menu/shared/mutations.js +1 -1
  129. package/lib/commands/menu/shared/service.js +1 -1
  130. package/lib/commands/menu/shared/sync-core.js +1 -1
  131. package/lib/commands/menu/shared/update-core.js +1 -1
  132. package/lib/commands/menu/shared/valid-url.js +1 -1
  133. package/lib/commands/menu/sync.js +1 -1
  134. package/lib/commands/notification/config-list.js +1 -1
  135. package/lib/commands/notification/index.js +1 -1
  136. package/lib/commands/ocr/index.js +1 -1
  137. package/lib/commands/page/generate-start.js +1 -1
  138. package/lib/commands/page/generate-status.js +1 -1
  139. package/lib/commands/page/index.js +1 -1
  140. package/lib/commands/page/pull.js +1 -1
  141. package/lib/commands/page/push.js +1 -1
  142. package/lib/commands/page/relation-audit.js +1 -1
  143. package/lib/commands/page/restore.js +1 -1
  144. package/lib/commands/page/shared.js +1 -1
  145. package/lib/commands/page/standard-page-status.js +1 -1
  146. package/lib/commands/page/sync.js +1 -1
  147. package/lib/commands/permit/index.js +1 -1
  148. package/lib/commands/permit/page-get.js +1 -1
  149. package/lib/commands/permit/page-set.js +1 -1
  150. package/lib/commands/permit/role-apis-set.js +1 -1
  151. package/lib/commands/permit/role-menus-set.js +1 -1
  152. package/lib/commands/permit/role-menus.js +1 -1
  153. package/lib/commands/permit/shared.js +1 -1
  154. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  155. package/lib/commands/project/create/format-elapsed.js +1 -1
  156. package/lib/commands/project/create/main.js +1 -1
  157. package/lib/commands/project/create/non-interactive.js +1 -1
  158. package/lib/commands/project/create/project-template-path.js +1 -1
  159. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  160. package/lib/commands/project/create/use-format-code.js +1 -1
  161. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  162. package/lib/commands/project/index.js +1 -1
  163. package/lib/commands/project/init.js +1 -1
  164. package/lib/commands/project/upgrade.js +1 -1
  165. package/lib/commands/registry.js +1 -1
  166. package/lib/commands/role/create.js +1 -1
  167. package/lib/commands/role/delete.js +1 -1
  168. package/lib/commands/role/detail.js +1 -1
  169. package/lib/commands/role/index.js +1 -1
  170. package/lib/commands/role/list.js +1 -1
  171. package/lib/commands/role/shared.js +1 -1
  172. package/lib/commands/role/update.js +1 -1
  173. package/lib/commands/role/user-add.js +1 -1
  174. package/lib/commands/role/user-remove.js +1 -1
  175. package/lib/commands/role/user-resolve.js +1 -1
  176. package/lib/commands/run/index.js +1 -1
  177. package/lib/commands/schema.js +1 -1
  178. package/lib/commands/sql/create.js +1 -1
  179. package/lib/commands/sql/delete.js +1 -1
  180. package/lib/commands/sql/detail.js +1 -1
  181. package/lib/commands/sql/exec.js +1 -1
  182. package/lib/commands/sql/index.js +1 -1
  183. package/lib/commands/sql/list.js +1 -1
  184. package/lib/commands/sql/pull.js +1 -1
  185. package/lib/commands/sql/push.js +1 -1
  186. package/lib/commands/sql/save.js +1 -1
  187. package/lib/commands/sql/shared.js +1 -1
  188. package/lib/commands/sql/status.js +1 -1
  189. package/lib/commands/sql/validate.js +1 -1
  190. package/lib/commands/task/index.js +1 -1
  191. package/lib/commands/task/status.js +1 -1
  192. package/lib/commands/workspace/add.js +1 -1
  193. package/lib/commands/workspace/index.js +1 -1
  194. package/lib/commands/workspace/remove.js +1 -1
  195. package/lib/config/schema.js +1 -1
  196. package/lib/constant/cdn.js +1 -1
  197. package/lib/constant/cli.js +1 -1
  198. package/lib/constant/defaults.js +1 -1
  199. package/lib/constant/domain.js +1 -1
  200. package/lib/constant/env.js +1 -1
  201. package/lib/constant/output.js +1 -1
  202. package/lib/constant/paths.js +1 -1
  203. package/lib/constant/risk.js +1 -1
  204. package/lib/context/app-resolver.js +1 -1
  205. package/lib/context/auth-resolver.js +1 -1
  206. package/lib/context/config-loader.js +1 -1
  207. package/lib/context.js +1 -1
  208. package/lib/core/alias-resolver.js +1 -1
  209. package/lib/core/api-client.js +1 -1
  210. package/lib/core/bff/config.js +1 -1
  211. package/lib/core/bff/file-system.js +1 -1
  212. package/lib/core/bff/hash.js +1 -1
  213. package/lib/core/bff/lock.js +1 -1
  214. package/lib/core/bff/utils.js +1 -1
  215. package/lib/core/db-resolver.js +1 -1
  216. package/lib/core/page/file-system.js +1 -1
  217. package/lib/core/page/hash.js +1 -1
  218. package/lib/core/page/lock.js +1 -1
  219. package/lib/core/sql-index-auditor.js +1 -1
  220. package/lib/core/sql-sync/config.js +1 -1
  221. package/lib/core/sql-sync/file-system.js +1 -1
  222. package/lib/core/sql-sync/hash.js +1 -1
  223. package/lib/core/sql-sync/lock.js +1 -1
  224. package/lib/core/sql-sync/utils.js +1 -1
  225. package/lib/core/sql-validator.js +1 -1
  226. package/lib/errors.js +1 -1
  227. package/lib/framework/build-all-flags.js +1 -1
  228. package/lib/framework/error-output.js +1 -1
  229. package/lib/framework/explicit-yes.js +1 -1
  230. package/lib/framework/flags.js +1 -1
  231. package/lib/framework/help.js +1 -1
  232. package/lib/framework/index.js +1 -1
  233. package/lib/framework/output.js +1 -1
  234. package/lib/framework/response.js +1 -1
  235. package/lib/framework/runner-alias.js +1 -1
  236. package/lib/framework/runner.js +1 -1
  237. package/lib/framework/schema-export.js +1 -1
  238. package/lib/framework/types.js +1 -1
  239. package/lib/generated/build-info.js +1 -1
  240. package/lib/help.js +1 -1
  241. package/lib/skills/main.js +1 -1
  242. package/lib/skills/npx-skills-add.js +1 -1
  243. package/lib/skills/skill-presence.js +1 -0
  244. package/lib/telemetry/cli-command-trace.js +1 -1
  245. package/lib/telemetry/cli-help-trace.js +1 -1
  246. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  247. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  248. package/lib/telemetry/send-cli-trace-log.js +1 -1
  249. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  250. package/lib/utils/ai_config.js +1 -1
  251. package/lib/utils/apply-jq-filter.js +1 -1
  252. package/lib/utils/cdn-config.js +1 -1
  253. package/lib/utils/check-sdk-version.js +1 -1
  254. package/lib/utils/cli-version-check.js +1 -1
  255. package/lib/utils/cli-version-policy.js +1 -1
  256. package/lib/utils/config.js +1 -1
  257. package/lib/utils/copy-directory.js +1 -1
  258. package/lib/utils/entity-with-id.js +1 -1
  259. package/lib/utils/file-utils.js +1 -1
  260. package/lib/utils/guides-cdn.js +1 -1
  261. package/lib/utils/http-client.js +1 -1
  262. package/lib/utils/is-non-interactive.js +1 -1
  263. package/lib/utils/logger.js +1 -1
  264. package/lib/utils/params.js +1 -1
  265. package/lib/utils/platform.js +1 -1
  266. package/lib/utils/rules-cdn.js +1 -1
  267. package/lib/utils/sleep.js +1 -1
  268. package/lib/utils/template-replacer.js +1 -1
  269. package/lib/utils/update-notice.js +1 -1
  270. package/lib/utils/version.js +1 -1
  271. package/lib/utils/with-active-cookie.js +1 -1
  272. package/lib/utils/write-cli-side-channel.js +1 -1
  273. package/package.json +1 -1
@@ -1 +1 @@
1
- (function(_0x2d100f,_0x2056a7){const _0x426fbc=a251_0xd88e,_0x21b3d4=_0x2d100f();while(!![]){try{const _0x504bb0=-parseInt(_0x426fbc(0x75))/0x1*(parseInt(_0x426fbc(0x76))/0x2)+parseInt(_0x426fbc(0x7b))/0x3*(-parseInt(_0x426fbc(0x77))/0x4)+parseInt(_0x426fbc(0x74))/0x5+-parseInt(_0x426fbc(0x7d))/0x6+-parseInt(_0x426fbc(0x7c))/0x7+parseInt(_0x426fbc(0x7a))/0x8+parseInt(_0x426fbc(0x73))/0x9*(parseInt(_0x426fbc(0x78))/0xa);if(_0x504bb0===_0x2056a7)break;else _0x21b3d4['push'](_0x21b3d4['shift']());}catch(_0xa5e88){_0x21b3d4['push'](_0x21b3d4['shift']());}}}(a251_0x3b0c,0xe0de7));import{initEnv}from'../constant/env.js';import{readRawConfig,getConfigAppCode as a251_0x57190d,getMultiAppConfigs as a251_0xc71078,getTemplateBaseUrl as a251_0x57f18f}from'../context.js';export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';export{isInProject}from'../context.js';export function readConfig(_0x1fa1db){const _0x380835=a251_0xd88e,_0x8c065d=readRawConfig(_0x1fa1db);return _0x8c065d[_0x380835(0x79)]&&typeof _0x8c065d[_0x380835(0x79)]==='string'&&initEnv(_0x8c065d[_0x380835(0x79)]),_0x8c065d;}function a251_0xd88e(_0x4a1369,_0x5b8a0a){_0x4a1369=_0x4a1369-0x73;const _0x3b0c50=a251_0x3b0c();let _0xd88e71=_0x3b0c50[_0x4a1369];return _0xd88e71;}export function getConfigAppCode(){return a251_0x57190d();}function a251_0x3b0c(){const _0x59f444=['9831647gLEuyq','6471528TtUQYM','2682495dUxgge','4860490ZKNPlP','445393dUorVO','4OluMDC','920152OSRcFu','100GhIZQu','env','4578784nWbHzf','3mZPAtf'];a251_0x3b0c=function(){return _0x59f444;};return a251_0x3b0c();}export function getMultiAppConfigs(_0x26cda6='project'){return a251_0xc71078(_0x26cda6);}export function getTemplateBaseUrl(){return a251_0x57f18f();}
1
+ (function(_0x2304f0,_0x16a756){const _0x23947b=a259_0x20fd,_0x25b0ba=_0x2304f0();while(!![]){try{const _0x4536d6=-parseInt(_0x23947b(0x151))/0x1+parseInt(_0x23947b(0x153))/0x2+parseInt(_0x23947b(0x154))/0x3*(parseInt(_0x23947b(0x14d))/0x4)+parseInt(_0x23947b(0x14a))/0x5+-parseInt(_0x23947b(0x152))/0x6+-parseInt(_0x23947b(0x14c))/0x7+-parseInt(_0x23947b(0x14b))/0x8*(parseInt(_0x23947b(0x150))/0x9);if(_0x4536d6===_0x16a756)break;else _0x25b0ba['push'](_0x25b0ba['shift']());}catch(_0x448e30){_0x25b0ba['push'](_0x25b0ba['shift']());}}}(a259_0x5864,0x27723));import{initEnv}from'../constant/env.js';import{readRawConfig,getConfigAppCode as a259_0x8dfe81,getMultiAppConfigs as a259_0x5d40f6,getTemplateBaseUrl as a259_0x20057c}from'../context.js';export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';function a259_0x20fd(_0x26dad7,_0x559983){_0x26dad7=_0x26dad7-0x14a;const _0x586438=a259_0x5864();let _0x20fd2e=_0x586438[_0x26dad7];return _0x20fd2e;}export{isInProject}from'../context.js';export function readConfig(_0xe5b7d3){const _0xd85076=a259_0x20fd,_0x1795a5=readRawConfig(_0xe5b7d3);return _0x1795a5['env']&&typeof _0x1795a5[_0xd85076(0x14e)]===_0xd85076(0x14f)&&initEnv(_0x1795a5[_0xd85076(0x14e)]),_0x1795a5;}function a259_0x5864(){const _0x28aa09=['env','string','98964wjEDLQ','2316CaXuYX','129720JiSrAQ','412602byDPzd','93NvoCIH','347995nVbfJd','32UvWest','1949542jYoKjV','29948gKqnbt'];a259_0x5864=function(){return _0x28aa09;};return a259_0x5864();}export function getConfigAppCode(){return a259_0x8dfe81();}export function getMultiAppConfigs(_0x54df64='project'){return a259_0x5d40f6(_0x54df64);}export function getTemplateBaseUrl(){return a259_0x20057c();}
@@ -1 +1 @@
1
- (function(_0xa13c4f,_0x2b30c2){const _0x399454=a252_0x28b1,_0x4956b2=_0xa13c4f();while(!![]){try{const _0x445e40=parseInt(_0x399454(0x183))/0x1*(parseInt(_0x399454(0x186))/0x2)+-parseInt(_0x399454(0x181))/0x3*(-parseInt(_0x399454(0x179))/0x4)+-parseInt(_0x399454(0x182))/0x5*(-parseInt(_0x399454(0x185))/0x6)+-parseInt(_0x399454(0x184))/0x7+parseInt(_0x399454(0x178))/0x8+parseInt(_0x399454(0x17d))/0x9+parseInt(_0x399454(0x17b))/0xa*(-parseInt(_0x399454(0x17c))/0xb);if(_0x445e40===_0x2b30c2)break;else _0x4956b2['push'](_0x4956b2['shift']());}catch(_0x5ec779){_0x4956b2['push'](_0x4956b2['shift']());}}}(a252_0x5228,0x26e89));function a252_0x5228(){const _0x1a5363=['4WLrLNN','join','10QzqYnA','4341370VTwMEY','1543005JxoFWx','mkdirSync','readdirSync','name','231123ludGpB','306245zPnVtp','1074jzQPNU','1163400ofSXjg','18MaRctR','210nNdqTe','复制目录时出错:','1401888BHdxcI'];a252_0x5228=function(){return _0x1a5363;};return a252_0x5228();}import a252_0x657ed1 from'node:path';function a252_0x28b1(_0x639a7b,_0x5db73a){_0x639a7b=_0x639a7b-0x177;const _0x522840=a252_0x5228();let _0x28b1eb=_0x522840[_0x639a7b];return _0x28b1eb;}import a252_0x315c76 from'node:fs';export async function copyDirectory(_0x126e8a,_0x54a4db){const _0x3c4fd4=a252_0x28b1;try{const _0x5ed0e9=a252_0x315c76[_0x3c4fd4(0x17f)](_0x126e8a,{'withFileTypes':!![]});a252_0x315c76[_0x3c4fd4(0x17e)](_0x54a4db,{'recursive':!![]});for(const _0x369cd7 of _0x5ed0e9){const _0x5b9ace=a252_0x657ed1[_0x3c4fd4(0x17a)](_0x126e8a,_0x369cd7[_0x3c4fd4(0x180)]),_0xd37ee3=a252_0x657ed1[_0x3c4fd4(0x17a)](_0x54a4db,_0x369cd7['name']);_0x369cd7['isDirectory']()?await copyDirectory(_0x5b9ace,_0xd37ee3):a252_0x315c76['copyFileSync'](_0x5b9ace,_0xd37ee3);}}catch(_0x546d33){console['error'](_0x3c4fd4(0x177),_0x546d33);}}
1
+ function a260_0x4bfd(){const _0x3b3ca7=['1651113utsZVw','join','6038znsZRi','877148FUNkhH','isDirectory','复制目录时出错:','637lZsLPV','1133450djVDMB','249420yBWALE','readdirSync','copyFileSync','name','1042136MVMpAp','101QgUNTS','21954OLjkJH','error'];a260_0x4bfd=function(){return _0x3b3ca7;};return a260_0x4bfd();}(function(_0x3e8138,_0x3ad7bb){const _0x586ccb=a260_0x3b2b,_0x200515=_0x3e8138();while(!![]){try{const _0x5338d0=parseInt(_0x586ccb(0xdd))/0x1*(parseInt(_0x586ccb(0xd2))/0x2)+-parseInt(_0x586ccb(0xd8))/0x3+-parseInt(_0x586ccb(0xd3))/0x4+parseInt(_0x586ccb(0xd7))/0x5+-parseInt(_0x586ccb(0xce))/0x6*(parseInt(_0x586ccb(0xd6))/0x7)+parseInt(_0x586ccb(0xdc))/0x8+parseInt(_0x586ccb(0xd0))/0x9;if(_0x5338d0===_0x3ad7bb)break;else _0x200515['push'](_0x200515['shift']());}catch(_0x2d16f2){_0x200515['push'](_0x200515['shift']());}}}(a260_0x4bfd,0x33411));import a260_0x2053ff from'node:path';import a260_0x5d351b from'node:fs';function a260_0x3b2b(_0x4bbff1,_0x1e9e98){_0x4bbff1=_0x4bbff1-0xce;const _0x4bfdbd=a260_0x4bfd();let _0x3b2b01=_0x4bfdbd[_0x4bbff1];return _0x3b2b01;}export async function copyDirectory(_0x43c052,_0xf504fb){const _0x1b62e5=a260_0x3b2b;try{const _0x75f25c=a260_0x5d351b[_0x1b62e5(0xd9)](_0x43c052,{'withFileTypes':!![]});a260_0x5d351b['mkdirSync'](_0xf504fb,{'recursive':!![]});for(const _0x998588 of _0x75f25c){const _0x3e445f=a260_0x2053ff['join'](_0x43c052,_0x998588['name']),_0x2fc6a6=a260_0x2053ff[_0x1b62e5(0xd1)](_0xf504fb,_0x998588[_0x1b62e5(0xdb)]);_0x998588[_0x1b62e5(0xd4)]()?await copyDirectory(_0x3e445f,_0x2fc6a6):a260_0x5d351b[_0x1b62e5(0xda)](_0x3e445f,_0x2fc6a6);}}catch(_0x521ef1){console[_0x1b62e5(0xcf)](_0x1b62e5(0xd5),_0x521ef1);}}
@@ -1 +1 @@
1
- function a253_0x2720(_0x11000d,_0x1c2967){_0x11000d=_0x11000d-0xc2;const _0x3b3bc6=a253_0x3b3b();let _0x272042=_0x3b3bc6[_0x11000d];return _0x272042;}(function(_0x4ae12c,_0x222fe7){const _0x3bdf39=a253_0x2720,_0x392c5a=_0x4ae12c();while(!![]){try{const _0x586d3c=-parseInt(_0x3bdf39(0xcb))/0x1+parseInt(_0x3bdf39(0xcd))/0x2*(parseInt(_0x3bdf39(0xc4))/0x3)+-parseInt(_0x3bdf39(0xca))/0x4*(parseInt(_0x3bdf39(0xc9))/0x5)+parseInt(_0x3bdf39(0xc6))/0x6*(-parseInt(_0x3bdf39(0xc2))/0x7)+parseInt(_0x3bdf39(0xc8))/0x8+parseInt(_0x3bdf39(0xc3))/0x9+parseInt(_0x3bdf39(0xc5))/0xa;if(_0x586d3c===_0x222fe7)break;else _0x392c5a['push'](_0x392c5a['shift']());}catch(_0x298a16){_0x392c5a['push'](_0x392c5a['shift']());}}}(a253_0x3b3b,0xb2bf6));function toFiniteNumber(_0x15af31){const _0x137436=a253_0x2720;if(typeof _0x15af31==='number'&&Number[_0x137436(0xcc)](_0x15af31))return _0x15af31;if(typeof _0x15af31==='string'){const _0x26986c=_0x15af31['trim']();if(!_0x26986c)return undefined;const _0x7cf468=Number(_0x26986c);if(Number[_0x137436(0xcc)](_0x7cf468))return _0x7cf468;}return undefined;}export function normalizeEntityWithIdResponse(_0x896951){const _0x3e5902=a253_0x2720,_0xc132af=toFiniteNumber(_0x896951);if(_0xc132af!==undefined)return{'id':_0xc132af,'entity':{'id':_0xc132af}};if(!_0x896951||typeof _0x896951!==_0x3e5902(0xc7))return{'id':undefined,'entity':{}};const _0x322c29={..._0x896951},_0x46d4e3=toFiniteNumber(_0x322c29['id']);return _0x46d4e3!==undefined&&(_0x322c29['id']=_0x46d4e3),{'id':_0x46d4e3,'entity':_0x322c29};}function a253_0x3b3b(){const _0x49d588=['16229720cZLVDk','4292658HUWzuX','object','1275704ByRTeB','2763275AqCPYj','8rHssab','827580HiaZfw','isFinite','1728990oZsIXt','14eJKeDT','13040964ojcFBJ','3wHFUgF'];a253_0x3b3b=function(){return _0x49d588;};return a253_0x3b3b();}
1
+ (function(_0x1cc92e,_0x34f82d){const _0x3b40ec=a261_0x5bba,_0x18ed5d=_0x1cc92e();while(!![]){try{const _0x5ea4e7=parseInt(_0x3b40ec(0xa7))/0x1+-parseInt(_0x3b40ec(0x9f))/0x2*(parseInt(_0x3b40ec(0x9d))/0x3)+-parseInt(_0x3b40ec(0xa3))/0x4*(parseInt(_0x3b40ec(0xa1))/0x5)+parseInt(_0x3b40ec(0x9c))/0x6*(-parseInt(_0x3b40ec(0xa5))/0x7)+parseInt(_0x3b40ec(0xa4))/0x8+-parseInt(_0x3b40ec(0xa0))/0x9+-parseInt(_0x3b40ec(0xa9))/0xa*(-parseInt(_0x3b40ec(0x9e))/0xb);if(_0x5ea4e7===_0x34f82d)break;else _0x18ed5d['push'](_0x18ed5d['shift']());}catch(_0x58f991){_0x18ed5d['push'](_0x18ed5d['shift']());}}}(a261_0x3f77,0xed0a9));function a261_0x5bba(_0x5a2c9f,_0x42230f){_0x5a2c9f=_0x5a2c9f-0x9b;const _0x3f77ec=a261_0x3f77();let _0x5bba73=_0x3f77ec[_0x5a2c9f];return _0x5bba73;}function toFiniteNumber(_0x4ea541){const _0x4067a6=a261_0x5bba;if(typeof _0x4ea541===_0x4067a6(0xa2)&&Number[_0x4067a6(0xaa)](_0x4ea541))return _0x4ea541;if(typeof _0x4ea541===_0x4067a6(0x9b)){const _0x44a0de=_0x4ea541[_0x4067a6(0xa8)]();if(!_0x44a0de)return undefined;const _0x128417=Number(_0x44a0de);if(Number[_0x4067a6(0xaa)](_0x128417))return _0x128417;}return undefined;}export function normalizeEntityWithIdResponse(_0x59cd03){const _0x3eb815=a261_0x5bba,_0x4e048b=toFiniteNumber(_0x59cd03);if(_0x4e048b!==undefined)return{'id':_0x4e048b,'entity':{'id':_0x4e048b}};if(!_0x59cd03||typeof _0x59cd03!==_0x3eb815(0xa6))return{'id':undefined,'entity':{}};const _0x32d0fa={..._0x59cd03},_0x49f0a2=toFiniteNumber(_0x32d0fa['id']);return _0x49f0a2!==undefined&&(_0x32d0fa['id']=_0x49f0a2),{'id':_0x49f0a2,'entity':_0x32d0fa};}function a261_0x3f77(){const _0x53bbd6=['isFinite','string','702258JkxFlQ','4086Rkhyfr','11annbtZ','918jZHypA','6823314YgFyuF','385rRAnRF','number','56884VvxWWs','3605432hRmbPN','35qmZpKJ','object','1471245akJnRR','trim','21125330jfXUwT'];a261_0x3f77=function(){return _0x53bbd6;};return a261_0x3f77();}
@@ -1 +1 @@
1
- (function(_0x37ff9a,_0x3cf99f){const _0x4365e1=a254_0x2c0e,_0xfc11=_0x37ff9a();while(!![]){try{const _0x2bd5ee=parseInt(_0x4365e1(0x70))/0x1+-parseInt(_0x4365e1(0x74))/0x2+-parseInt(_0x4365e1(0x73))/0x3*(parseInt(_0x4365e1(0x75))/0x4)+-parseInt(_0x4365e1(0x72))/0x5*(-parseInt(_0x4365e1(0x76))/0x6)+parseInt(_0x4365e1(0x71))/0x7+parseInt(_0x4365e1(0x77))/0x8*(parseInt(_0x4365e1(0x6f))/0x9)+parseInt(_0x4365e1(0x6d))/0xa;if(_0x2bd5ee===_0x3cf99f)break;else _0xfc11['push'](_0xfc11['shift']());}catch(_0x3cf42e){_0xfc11['push'](_0xfc11['shift']());}}}(a254_0x5e68,0x8d101));import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';import{join}from'node:path';function a254_0x5e68(){const _0x2880be=['288296hCEpuj','2774030XVMLFV','isDirectory','261kDaATE','115924iglHGP','1655619qQTyTo','5WCnzxr','9noGyOT','1935860iTFzcG','1540724gEOlfb','6158094wbZhAZ'];a254_0x5e68=function(){return _0x2880be;};return a254_0x5e68();}export async function copyDir(_0x4a6be9,_0x30a9b8){const _0x3ab300=a254_0x2c0e,_0x45dddd=statSync(_0x4a6be9);if(_0x45dddd[_0x3ab300(0x6e)]()){!existsSync(_0x30a9b8)&&mkdirSync(_0x30a9b8,{'recursive':!![]});const _0x1ca780=readdirSync(_0x4a6be9);for(const _0x2c36b3 of _0x1ca780){await copyDir(join(_0x4a6be9,_0x2c36b3),join(_0x30a9b8,_0x2c36b3));}}else copyFileSync(_0x4a6be9,_0x30a9b8);}export function ensureDir(_0x304b64){!existsSync(_0x304b64)&&mkdirSync(_0x304b64,{'recursive':!![]});}function a254_0x2c0e(_0x4992c0,_0x34fb70){_0x4992c0=_0x4992c0-0x6d;const _0x5e6809=a254_0x5e68();let _0x2c0ea2=_0x5e6809[_0x4992c0];return _0x2c0ea2;}export function pathExists(_0xaf0a30){return existsSync(_0xaf0a30);}
1
+ function a262_0x65c4(){const _0x34e2e7=['201CBjcMh','120ADLpLs','6180349ulOBLs','7324KgibLd','5909337jaVfcO','30534NjpuoZ','isDirectory','7872720ayjSSQ','968616qDxJkL','10NqqoxA','580dWBBTr','17757FlCvLp'];a262_0x65c4=function(){return _0x34e2e7;};return a262_0x65c4();}function a262_0x9ca9(_0x577f0a,_0x2b4e64){_0x577f0a=_0x577f0a-0x76;const _0x65c4ec=a262_0x65c4();let _0x9ca9b1=_0x65c4ec[_0x577f0a];return _0x9ca9b1;}(function(_0x189781,_0x48eecf){const _0x24b9a0=a262_0x9ca9,_0x409f1d=_0x189781();while(!![]){try{const _0x1f19a0=-parseInt(_0x24b9a0(0x78))/0x1*(-parseInt(_0x24b9a0(0x7b))/0x2)+parseInt(_0x24b9a0(0x77))/0x3*(parseInt(_0x24b9a0(0x76))/0x4)+parseInt(_0x24b9a0(0x79))/0x5*(-parseInt(_0x24b9a0(0x7d))/0x6)+parseInt(_0x24b9a0(0x7a))/0x7+-parseInt(_0x24b9a0(0x7f))/0x8+parseInt(_0x24b9a0(0x7c))/0x9*(-parseInt(_0x24b9a0(0x81))/0xa)+-parseInt(_0x24b9a0(0x80))/0xb;if(_0x1f19a0===_0x48eecf)break;else _0x409f1d['push'](_0x409f1d['shift']());}catch(_0x12581d){_0x409f1d['push'](_0x409f1d['shift']());}}}(a262_0x65c4,0x98ead));import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';import{join}from'node:path';export async function copyDir(_0x2abc7f,_0x2c904e){const _0x4747af=a262_0x9ca9,_0x7651e6=statSync(_0x2abc7f);if(_0x7651e6[_0x4747af(0x7e)]()){!existsSync(_0x2c904e)&&mkdirSync(_0x2c904e,{'recursive':!![]});const _0x5e88cb=readdirSync(_0x2abc7f);for(const _0x5454d1 of _0x5e88cb){await copyDir(join(_0x2abc7f,_0x5454d1),join(_0x2c904e,_0x5454d1));}}else copyFileSync(_0x2abc7f,_0x2c904e);}export function ensureDir(_0x110e1a){!existsSync(_0x110e1a)&&mkdirSync(_0x110e1a,{'recursive':!![]});}export function pathExists(_0x4e009d){return existsSync(_0x4e009d);}
@@ -1 +1 @@
1
- const a255_0x31c2a5=a255_0x421c;(function(_0x4174d3,_0x203200){const _0x505e6c=a255_0x421c,_0x3a651a=_0x4174d3();while(!![]){try{const _0x73b1f6=parseInt(_0x505e6c(0x10a))/0x1*(-parseInt(_0x505e6c(0xf0))/0x2)+-parseInt(_0x505e6c(0xff))/0x3+parseInt(_0x505e6c(0xf9))/0x4*(parseInt(_0x505e6c(0xf3))/0x5)+parseInt(_0x505e6c(0xfa))/0x6+parseInt(_0x505e6c(0x106))/0x7*(parseInt(_0x505e6c(0xfd))/0x8)+parseInt(_0x505e6c(0x103))/0x9+-parseInt(_0x505e6c(0xf5))/0xa;if(_0x73b1f6===_0x203200)break;else _0x3a651a['push'](_0x3a651a['shift']());}catch(_0x31c6f8){_0x3a651a['push'](_0x3a651a['shift']());}}}(a255_0x2779,0xa6346));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 _0x4ccbb1=getTemplateBaseUrl();return _0x4ccbb1+'/skills/guides.json';}const CACHE_DIR=join(homedir(),'.lovrabet',a255_0x31c2a5(0x102));export async function fetchGuidesFromCDN(){const _0x43c94e=a255_0x31c2a5,_0x54de71=getGuidesCdnUrl(),_0x10090c=await fetch(_0x54de71,{'headers':{'Accept':'application/json'}});if(!_0x10090c['ok'])throw new Error(_0x43c94e(0xfe)+_0x10090c[_0x43c94e(0xf4)]+'\x20'+_0x10090c[_0x43c94e(0x100)]);const _0x3e5eb4=await _0x10090c['json']();if(!_0x3e5eb4['guides']||typeof _0x3e5eb4[_0x43c94e(0x108)]!=='object')throw new Error('CDN\x20返回数据格式错误');return _0x3e5eb4;}export function writeGuidesToProject(_0x2268af,_0xe734b,_0x495c36='.lovrabet/skill/guides',_0x61f484){const _0x196368=a255_0x31c2a5,_0x3b3a74=join(_0xe734b,_0x495c36);mkdirSync(_0x3b3a74,{'recursive':!![]});for(const [_0x5d3f63,_0x2a4ea0]of Object[_0x196368(0xfb)](_0x2268af['guides'])){let _0x433f89=_0x2a4ea0[_0x196368(0x107)];_0x2a4ea0[_0x196368(0xf2)]&&(_0x433f89=appendUpdateTime(_0x433f89,_0x2a4ea0[_0x196368(0xf2)])),writeFileSync(join(_0x3b3a74,_0x5d3f63+'.md'),_0x433f89,_0x196368(0xf8));}}export function appendUpdateTime(_0x4d92ef,_0xad3051){const _0x289657=a255_0x31c2a5;return _0x4d92ef=_0x4d92ef[_0x289657(0x10b)](/\n*>更新时间:.*$/m,''),_0x4d92ef['trimEnd']()+(_0x289657(0x101)+_0xad3051);}function a255_0x421c(_0x1bcc00,_0x414141){_0x1bcc00=_0x1bcc00-0xef;const _0x2779ad=a255_0x2779();let _0x421ca5=_0x2779ad[_0x1bcc00];return _0x421ca5;}export function getSkillTemplate(_0x5a1c60){return _0x5a1c60['skillTemplate']?.['content']||'';}export function appendExtendContents(_0x13450d,_0xfd4ca0,_0x266dbf){const _0x257890=a255_0x31c2a5,_0x18a3a8=[];for(const [,_0x54c8df]of Object[_0x257890(0xfb)](_0xfd4ca0[_0x257890(0x108)])){_0x54c8df[_0x257890(0xfc)]&&_0x18a3a8['push'](_0x54c8df[_0x257890(0xfc)][_0x257890(0xf1)]());}if(_0x18a3a8[_0x257890(0x105)]===0x0)return _0x13450d;return _0x13450d[_0x257890(0xf1)]()+'\x0a\x0a'+_0x18a3a8[_0x257890(0x109)]('\x0a\x0a')+'\x0a';}export function writeSkillFile(_0x49d980,_0x169f78,_0x2ba564){const _0x5869e0=a255_0x31c2a5,_0x5b22e7=getSkillTemplate(_0x49d980);if(!_0x5b22e7)throw new Error('CDN\x20数据中缺少\x20skillTemplate');const _0x91547d=dirname(_0x169f78);mkdirSync(_0x91547d,{'recursive':!![]});let _0x5a001d=_0x5b22e7[_0x5869e0(0x10b)](/\{\{IDE_NAME\}\}/g,_0x2ba564);_0x5a001d=appendExtendContents(_0x5a001d,_0x49d980),_0x49d980[_0x5869e0(0x104)][_0x5869e0(0xf2)]&&(_0x5a001d=appendUpdateTime(_0x5a001d,_0x49d980[_0x5869e0(0x104)][_0x5869e0(0xf2)])),writeFileSync(_0x169f78,_0x5a001d,_0x5869e0(0xf8));}export async function installGuides(_0x10e3cb){const _0x37a3a5=a255_0x31c2a5,_0x13b493=await fetchGuidesFromCDN();return writeGuidesToProject(_0x13b493,_0x10e3cb),Object['keys'](_0x13b493['guides'])[_0x37a3a5(0x105)];}function a255_0x2779(){const _0x38d991=['replace','title','2eVVYuM','trimEnd','lastUpdated','5gXBZLm','status','11379140oTgKyB','path','map','utf-8','4633532COMDtk','601236OVlYYn','entries','extendContent','8BzCWfa','CDN\x20请求失败:\x20','1361838UpKmPJ','statusText','\x0a\x0a>更新时间:','cache','10754523rmWrVI','skillTemplate','length','3120971AgVqDL','content','guides','join','626755TbqTbL'];a255_0x2779=function(){return _0x38d991;};return a255_0x2779();}export function getGuidesSummary(_0x401f4d){const _0x206469=a255_0x31c2a5;return Object['entries'](_0x401f4d[_0x206469(0x108)])[_0x206469(0xf7)](([_0x5de762,_0x424a19])=>({'key':_0x5de762,'title':_0x424a19[_0x206469(0xef)],'path':_0x424a19[_0x206469(0xf6)]}));}
1
+ const a263_0x10778f=a263_0x470e;(function(_0x404e56,_0x2c9b57){const _0x5ab767=a263_0x470e,_0x306abc=_0x404e56();while(!![]){try{const _0x1c2240=parseInt(_0x5ab767(0xcf))/0x1+parseInt(_0x5ab767(0xee))/0x2+-parseInt(_0x5ab767(0xe1))/0x3*(-parseInt(_0x5ab767(0xd7))/0x4)+-parseInt(_0x5ab767(0xd5))/0x5+parseInt(_0x5ab767(0xeb))/0x6+-parseInt(_0x5ab767(0xcc))/0x7*(-parseInt(_0x5ab767(0xe9))/0x8)+-parseInt(_0x5ab767(0xd4))/0x9;if(_0x1c2240===_0x2c9b57)break;else _0x306abc['push'](_0x306abc['shift']());}catch(_0xec3dfa){_0x306abc['push'](_0x306abc['shift']());}}}(a263_0x5b9d,0xa3cbe));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 _0x51800d=a263_0x470e,_0x59f115=getTemplateBaseUrl();return _0x59f115+_0x51800d(0xe3);}function a263_0x470e(_0x5d2f32,_0x1cadfd){_0x5d2f32=_0x5d2f32-0xcb;const _0x5b9de6=a263_0x5b9d();let _0x470e0c=_0x5b9de6[_0x5d2f32];return _0x470e0c;}const CACHE_DIR=join(homedir(),a263_0x10778f(0xe7),a263_0x10778f(0xcd));export async function fetchGuidesFromCDN(){const _0x17bfd7=a263_0x10778f,_0x1bb933=getGuidesCdnUrl(),_0x3b61df=await fetch(_0x1bb933,{'headers':{'Accept':_0x17bfd7(0xdb)}});if(!_0x3b61df['ok'])throw new Error(_0x17bfd7(0xd1)+_0x3b61df[_0x17bfd7(0xe6)]+'\x20'+_0x3b61df[_0x17bfd7(0xe8)]);const _0x4ebbe4=await _0x3b61df[_0x17bfd7(0xd6)]();if(!_0x4ebbe4[_0x17bfd7(0xea)]||typeof _0x4ebbe4[_0x17bfd7(0xea)]!==_0x17bfd7(0xd3))throw new Error(_0x17bfd7(0xd2));return _0x4ebbe4;}export function writeGuidesToProject(_0x344111,_0x1a7ded,_0x221c29=a263_0x10778f(0xdc),_0x57917d){const _0x5b6ed1=a263_0x10778f,_0x2c688a=join(_0x1a7ded,_0x221c29);mkdirSync(_0x2c688a,{'recursive':!![]});for(const [_0x52732d,_0x3a9c6f]of Object[_0x5b6ed1(0xde)](_0x344111['guides'])){let _0x35cb4f=_0x3a9c6f[_0x5b6ed1(0xd8)];_0x3a9c6f[_0x5b6ed1(0xe5)]&&(_0x35cb4f=appendUpdateTime(_0x35cb4f,_0x3a9c6f[_0x5b6ed1(0xe5)])),writeFileSync(join(_0x2c688a,_0x52732d+_0x5b6ed1(0xdf)),_0x35cb4f,_0x5b6ed1(0xda));}}export function appendUpdateTime(_0x54240f,_0x1c4879){const _0x5def3d=a263_0x10778f;return _0x54240f=_0x54240f[_0x5def3d(0xed)](/\n*>更新时间:.*$/m,''),_0x54240f['trimEnd']()+(_0x5def3d(0xd9)+_0x1c4879);}export function getSkillTemplate(_0x306a7b){const _0x29e9bb=a263_0x10778f;return _0x306a7b[_0x29e9bb(0xcb)]?.['content']||'';}export function appendExtendContents(_0xa6be07,_0xe45a0d,_0x5242ff){const _0x19a2c7=a263_0x10778f,_0x3ae591=[];for(const [,_0x18fd2f]of Object[_0x19a2c7(0xde)](_0xe45a0d[_0x19a2c7(0xea)])){_0x18fd2f['extendContent']&&_0x3ae591[_0x19a2c7(0xd0)](_0x18fd2f['extendContent'][_0x19a2c7(0xce)]());}if(_0x3ae591[_0x19a2c7(0xec)]===0x0)return _0xa6be07;return _0xa6be07['trimEnd']()+'\x0a\x0a'+_0x3ae591[_0x19a2c7(0xe2)]('\x0a\x0a')+'\x0a';}function a263_0x5b9d(){const _0x13b4f0=['status','.lovrabet','statusText','160112zFCvtT','guides','2741580iPjCvY','length','replace','1163624lNODwO','skillTemplate','385Hlcqfv','cache','trimEnd','597277qBBPxn','push','CDN\x20请求失败:\x20','CDN\x20返回数据格式错误','object','20222118uHuTuH','4966315bsaAAC','json','4697144ysMZOW','content','\x0a\x0a>更新时间:','utf-8','application/json','.lovrabet/skill/guides','CDN\x20数据中缺少\x20skillTemplate','entries','.md','title','3HDTuER','join','/skills/guides.json','map','lastUpdated'];a263_0x5b9d=function(){return _0x13b4f0;};return a263_0x5b9d();}export function writeSkillFile(_0x2aadb3,_0x5695d1,_0x5e9899){const _0x37128f=a263_0x10778f,_0x54bd8a=getSkillTemplate(_0x2aadb3);if(!_0x54bd8a)throw new Error(_0x37128f(0xdd));const _0x2295de=dirname(_0x5695d1);mkdirSync(_0x2295de,{'recursive':!![]});let _0x400639=_0x54bd8a[_0x37128f(0xed)](/\{\{IDE_NAME\}\}/g,_0x5e9899);_0x400639=appendExtendContents(_0x400639,_0x2aadb3),_0x2aadb3[_0x37128f(0xcb)][_0x37128f(0xe5)]&&(_0x400639=appendUpdateTime(_0x400639,_0x2aadb3[_0x37128f(0xcb)][_0x37128f(0xe5)])),writeFileSync(_0x5695d1,_0x400639,_0x37128f(0xda));}export async function installGuides(_0x2111c8){const _0x56e950=a263_0x10778f,_0x289936=await fetchGuidesFromCDN();return writeGuidesToProject(_0x289936,_0x2111c8),Object['keys'](_0x289936[_0x56e950(0xea)])[_0x56e950(0xec)];}export function getGuidesSummary(_0x595bca){const _0x3e639d=a263_0x10778f;return Object[_0x3e639d(0xde)](_0x595bca[_0x3e639d(0xea)])[_0x3e639d(0xe4)](([_0x123657,_0x373329])=>({'key':_0x123657,'title':_0x373329[_0x3e639d(0xe0)],'path':_0x373329['path']}));}
@@ -1 +1 @@
1
- (function(_0x39adc3,_0x1035c9){const _0x854182=a256_0x9b4d,_0x594c69=_0x39adc3();while(!![]){try{const _0x440de1=parseInt(_0x854182(0x128))/0x1+-parseInt(_0x854182(0x11c))/0x2+-parseInt(_0x854182(0x111))/0x3*(-parseInt(_0x854182(0x116))/0x4)+parseInt(_0x854182(0x118))/0x5+-parseInt(_0x854182(0x11f))/0x6+-parseInt(_0x854182(0x129))/0x7+-parseInt(_0x854182(0x113))/0x8*(-parseInt(_0x854182(0x11b))/0x9);if(_0x440de1===_0x1035c9)break;else _0x594c69['push'](_0x594c69['shift']());}catch(_0x5a1de8){_0x594c69['push'](_0x594c69['shift']());}}}(a256_0x5ce9,0xaf3f9));export async function httpRequest(_0x2069b5,_0x628c61={}){const _0x577d19=a256_0x9b4d,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0x628c61;let _0xc85f19=null;for(let _0x4470e4=0x0;_0x4470e4<=retries;_0x4470e4++){try{const _0x1dacd3=new AbortController(),_0x503f74=setTimeout(()=>_0x1dacd3[_0x577d19(0x124)](),timeout),_0x2c32f3=await fetch(_0x2069b5,{'headers':headers,'signal':_0x1dacd3[_0x577d19(0x120)]});clearTimeout(_0x503f74);let _0x35eecc;const _0xf611d2=_0x2c32f3[_0x577d19(0x11d)][_0x577d19(0x12c)](_0x577d19(0x122));return _0xf611d2?.[_0x577d19(0x125)]('application/json')?_0x35eecc=await _0x2c32f3[_0x577d19(0x123)]():_0x35eecc=await _0x2c32f3[_0x577d19(0x12d)](),{'ok':_0x2c32f3['ok'],'status':_0x2c32f3[_0x577d19(0x10e)],'statusText':_0x2c32f3[_0x577d19(0x127)],'data':_0x35eecc,'headers':_0x2c32f3[_0x577d19(0x11d)],'url':_0x2c32f3[_0x577d19(0x110)],'text':()=>_0x2c32f3[_0x577d19(0x12d)]()};}catch(_0x4c2d23){_0xc85f19=_0x4c2d23 instanceof Error?_0x4c2d23:new Error(String(_0x4c2d23));if(_0x4470e4===retries)break;if(shouldRetry(_0x4c2d23)){console[_0x577d19(0x12a)](_0x577d19(0x11e)+retryDelay+_0x577d19(0x115)+(_0x4470e4+0x1)+_0x577d19(0x11a)),await sleep(retryDelay);continue;}else break;}}throw _0xc85f19||new Error(_0x577d19(0x114));}function shouldRetry(_0x451b14){const _0x4bf366=a256_0x9b4d;if(_0x451b14 instanceof Error){if(_0x451b14[_0x4bf366(0x126)]===_0x4bf366(0x121))return![];if(_0x451b14['name']===_0x4bf366(0x119)&&_0x451b14['message']['includes'](_0x4bf366(0x117)))return!![];if(_0x451b14[_0x4bf366(0x10f)][_0x4bf366(0x125)](_0x4bf366(0x12b)))return!![];if(_0x451b14[_0x4bf366(0x10f)][_0x4bf366(0x125)](_0x4bf366(0x112)))return![];}return![];}function sleep(_0x470656){return new Promise(_0x4af127=>setTimeout(_0x4af127,_0x470656));}function a256_0x9b4d(_0x3a7d63,_0x4d0f80){_0x3a7d63=_0x3a7d63-0x10e;const _0x5ce9d1=a256_0x5ce9();let _0x9b4dbf=_0x5ce9d1[_0x3a7d63];return _0x9b4dbf;}export function validateUrl(_0x1b84a6){try{return new URL(_0x1b84a6),!![];}catch{return![];}}function a256_0x5ce9(){const _0x1095db=['get','text','status','message','url','5658XaTXuT','ENOTFOUND','360pZnKHZ','Request\x20failed','ms\x20后进行第\x20','716rqqtzC','fetch','2083090EnPOKS','TypeError','\x20次重试...','192735cFmGha','300922OEJYEe','headers','*\x20请求失败,','7021254ltRGOy','signal','AbortError','content-type','json','abort','includes','name','statusText','753674tkNdYA','3031518McjeSk','log','ECONNRESET'];a256_0x5ce9=function(){return _0x1095db;};return a256_0x5ce9();}
1
+ function a264_0x5688(){const _0x3b315a=['abort','fetch','log','760456RHilZP','10056VguVPl','name','ECONNRESET','18QMHUAw','signal','50CYfBTp','1055254ksXXeq','ENOTFOUND','headers','\x20次重试...','AbortError','1159368wHdFjc','4917935dgokWR','message','json','text','includes','1713264uXwKIk','get','45332rNFEpW','*\x20请求失败,','ms\x20后进行第\x20','Request\x20failed','984GvFvxC','725aRYBkQ','TypeError','application/json'];a264_0x5688=function(){return _0x3b315a;};return a264_0x5688();}(function(_0x287256,_0x452c8c){const _0x51b322=a264_0x4621,_0x5223bd=_0x287256();while(!![]){try{const _0x34a7ca=-parseInt(_0x51b322(0xf9))/0x1+-parseInt(_0x51b322(0xf4))/0x2+parseInt(_0x51b322(0xff))/0x3+parseInt(_0x51b322(0xee))/0x4*(parseInt(_0x51b322(0x106))/0x5)+-parseInt(_0x51b322(0x105))/0x6*(parseInt(_0x51b322(0x101))/0x7)+-parseInt(_0x51b322(0x10c))/0x8*(-parseInt(_0x51b322(0xf1))/0x9)+-parseInt(_0x51b322(0xf3))/0xa*(-parseInt(_0x51b322(0xfa))/0xb);if(_0x34a7ca===_0x452c8c)break;else _0x5223bd['push'](_0x5223bd['shift']());}catch(_0x309878){_0x5223bd['push'](_0x5223bd['shift']());}}}(a264_0x5688,0x95702));export async function httpRequest(_0x4c6ed2,_0x16b025={}){const _0x333f50=a264_0x4621,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0x16b025;let _0x1ea4c6=null;for(let _0x3517ef=0x0;_0x3517ef<=retries;_0x3517ef++){try{const _0x7a973=new AbortController(),_0x5534ef=setTimeout(()=>_0x7a973[_0x333f50(0x109)](),timeout),_0x44cd1c=await fetch(_0x4c6ed2,{'headers':headers,'signal':_0x7a973[_0x333f50(0xf2)]});clearTimeout(_0x5534ef);let _0x4d4f2b;const _0x1989c7=_0x44cd1c[_0x333f50(0xf6)][_0x333f50(0x100)]('content-type');return _0x1989c7?.[_0x333f50(0xfe)](_0x333f50(0x108))?_0x4d4f2b=await _0x44cd1c[_0x333f50(0xfc)]():_0x4d4f2b=await _0x44cd1c[_0x333f50(0xfd)](),{'ok':_0x44cd1c['ok'],'status':_0x44cd1c['status'],'statusText':_0x44cd1c['statusText'],'data':_0x4d4f2b,'headers':_0x44cd1c[_0x333f50(0xf6)],'url':_0x44cd1c['url'],'text':()=>_0x44cd1c['text']()};}catch(_0x4004f7){_0x1ea4c6=_0x4004f7 instanceof Error?_0x4004f7:new Error(String(_0x4004f7));if(_0x3517ef===retries)break;if(shouldRetry(_0x4004f7)){console[_0x333f50(0x10b)](_0x333f50(0x102)+retryDelay+_0x333f50(0x103)+(_0x3517ef+0x1)+_0x333f50(0xf7)),await sleep(retryDelay);continue;}else break;}}throw _0x1ea4c6||new Error(_0x333f50(0x104));}function shouldRetry(_0x1b239d){const _0x5a23fe=a264_0x4621;if(_0x1b239d instanceof Error){if(_0x1b239d[_0x5a23fe(0xef)]===_0x5a23fe(0xf8))return![];if(_0x1b239d[_0x5a23fe(0xef)]===_0x5a23fe(0x107)&&_0x1b239d[_0x5a23fe(0xfb)][_0x5a23fe(0xfe)](_0x5a23fe(0x10a)))return!![];if(_0x1b239d[_0x5a23fe(0xfb)][_0x5a23fe(0xfe)](_0x5a23fe(0xf0)))return!![];if(_0x1b239d[_0x5a23fe(0xfb)][_0x5a23fe(0xfe)](_0x5a23fe(0xf5)))return![];}return![];}function sleep(_0x39cb0c){return new Promise(_0x159ca7=>setTimeout(_0x159ca7,_0x39cb0c));}function a264_0x4621(_0x1dcd48,_0x417d3a){_0x1dcd48=_0x1dcd48-0xee;const _0x568801=a264_0x5688();let _0x462142=_0x568801[_0x1dcd48];return _0x462142;}export function validateUrl(_0x27bbed){try{return new URL(_0x27bbed),!![];}catch{return![];}}
@@ -1 +1 @@
1
- function a257_0x39f1(){const _0x259963=['54iasXCd','36875UmVNjD','setRawMode','119930wvNOBo','685156eeGdbQ','stdin','nonInteractive','6573jPWBVA','594zcePwT','787856VoBiru','isTTY','16YZQiEL','434904iFlwTR','true','864732vfmNNr','3CoqnWt','4056QWWtEu','182eMMtag'];a257_0x39f1=function(){return _0x259963;};return a257_0x39f1();}function a257_0x2375(_0x2555f8,_0x292a03){_0x2555f8=_0x2555f8-0x114;const _0x39f16f=a257_0x39f1();let _0x2375e3=_0x39f16f[_0x2555f8];return _0x2375e3;}(function(_0x15489c,_0x39e24b){const _0x72fe5a=a257_0x2375,_0x492b91=_0x15489c();while(!![]){try{const _0x2725a0=-parseInt(_0x72fe5a(0x11b))/0x1+parseInt(_0x72fe5a(0x123))/0x2*(parseInt(_0x72fe5a(0x114))/0x3)+parseInt(_0x72fe5a(0x122))/0x4*(parseInt(_0x72fe5a(0x118))/0x5)+-parseInt(_0x72fe5a(0x115))/0x6*(-parseInt(_0x72fe5a(0x11e))/0x7)+-parseInt(_0x72fe5a(0x120))/0x8*(-parseInt(_0x72fe5a(0x117))/0x9)+parseInt(_0x72fe5a(0x11a))/0xa*(parseInt(_0x72fe5a(0x11f))/0xb)+-parseInt(_0x72fe5a(0x125))/0xc*(parseInt(_0x72fe5a(0x116))/0xd);if(_0x2725a0===_0x39e24b)break;else _0x492b91['push'](_0x492b91['shift']());}catch(_0x463047){_0x492b91['push'](_0x492b91['shift']());}}}(a257_0x39f1,0x680ec));function env(_0x3c0f77){return process.env[`RABETBASE_${_0x3c0f77}`]||process.env[`LOVRABET_${_0x3c0f77}`]||undefined;}export function isNonInteractive(_0x536977){const _0x1158fd=a257_0x2375;return!!(_0x536977[_0x1158fd(0x11d)]||_0x536977['ci']||env('CI')===_0x1158fd(0x124)||process.env.CI===_0x1158fd(0x124)||!process['stdout'][_0x1158fd(0x121)]||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x1e0811=a257_0x2375;if(!process[_0x1e0811(0x11c)]['isTTY'])return![];try{const _0x546738=process['stdin']['isRaw'];return process[_0x1e0811(0x11c)][_0x1e0811(0x119)](!![]),process[_0x1e0811(0x11c)][_0x1e0811(0x119)](_0x546738??![]),!![];}catch{return![];}}
1
+ function a265_0x36c7(_0x46a39b,_0xda9539){_0x46a39b=_0x46a39b-0x97;const _0x9309c=a265_0x9309();let _0x36c7f1=_0x9309c[_0x46a39b];return _0x36c7f1;}(function(_0x3b6340,_0xb0f576){const _0x5911a6=a265_0x36c7,_0x4c903c=_0x3b6340();while(!![]){try{const _0x2e0aaf=parseInt(_0x5911a6(0xa3))/0x1*(parseInt(_0x5911a6(0xa5))/0x2)+parseInt(_0x5911a6(0xa6))/0x3+parseInt(_0x5911a6(0x9a))/0x4+-parseInt(_0x5911a6(0x9e))/0x5+parseInt(_0x5911a6(0x9c))/0x6+parseInt(_0x5911a6(0xa1))/0x7+-parseInt(_0x5911a6(0x9d))/0x8*(parseInt(_0x5911a6(0x98))/0x9);if(_0x2e0aaf===_0xb0f576)break;else _0x4c903c['push'](_0x4c903c['shift']());}catch(_0x52a602){_0x4c903c['push'](_0x4c903c['shift']());}}}(a265_0x9309,0x3cc45));function env(_0x1da787){return process.env[`RABETBASE_${_0x1da787}`]||process.env[`LOVRABET_${_0x1da787}`]||undefined;}export function isNonInteractive(_0x29fc86){const _0x30eeb5=a265_0x36c7;return!!(_0x29fc86[_0x30eeb5(0xa2)]||_0x29fc86['ci']||env('CI')==='true'||process.env.CI===_0x30eeb5(0xa0)||!process[_0x30eeb5(0x9b)][_0x30eeb5(0x99)]||!isStdinRawModeSupported());}function a265_0x9309(){const _0x2344cb=['isRaw','81894EVbhDP','668469kCTonT','stdin','47286lAWtcu','isTTY','87436PAAHAt','stdout','796464cFFZfS','848IzueCZ','463910HauEeK','setRawMode','true','2215122KFCBhH','nonInteractive','5hqsveR'];a265_0x9309=function(){return _0x2344cb;};return a265_0x9309();}function isStdinRawModeSupported(){const _0x483e56=a265_0x36c7;if(!process['stdin'][_0x483e56(0x99)])return![];try{const _0x45c59d=process[_0x483e56(0x97)][_0x483e56(0xa4)];return process[_0x483e56(0x97)][_0x483e56(0x9f)](!![]),process[_0x483e56(0x97)][_0x483e56(0x9f)](_0x45c59d??![]),!![];}catch{return![];}}
@@ -1 +1 @@
1
- const a258_0x2ae1af=a258_0x1cc6;(function(_0x1811da,_0x41c764){const _0x3e53ff=a258_0x1cc6,_0xdc9e2a=_0x1811da();while(!![]){try{const _0x399985=parseInt(_0x3e53ff(0x11e))/0x1*(parseInt(_0x3e53ff(0xff))/0x2)+-parseInt(_0x3e53ff(0x104))/0x3+-parseInt(_0x3e53ff(0xf5))/0x4*(-parseInt(_0x3e53ff(0x10a))/0x5)+parseInt(_0x3e53ff(0x10f))/0x6+parseInt(_0x3e53ff(0x109))/0x7+-parseInt(_0x3e53ff(0xf6))/0x8+parseInt(_0x3e53ff(0xf8))/0x9*(parseInt(_0x3e53ff(0x10d))/0xa);if(_0x399985===_0x41c764)break;else _0xdc9e2a['push'](_0xdc9e2a['shift']());}catch(_0x4eff27){_0xdc9e2a['push'](_0xdc9e2a['shift']());}}}(a258_0x265b,0x8799b));function a258_0x1cc6(_0x47b9f3,_0x284bfc){_0x47b9f3=_0x47b9f3-0xeb;const _0x265b5e=a258_0x265b();let _0x1cc6e5=_0x265b5e[_0x47b9f3];return _0x1cc6e5;}import a258_0x50c569 from'winston';function a258_0x265b(){const _0x3a1469=['command','warn','完成:\x20','12lRFSQn','File','clearLogs','errors','stringify','utf8','combine','writeFileSync','readFileSync','失败:\x20','clear','currentRawCommand','message','logTask','info','878852qjsthN','6385408sktOAh','map','117ISHmcR','green','unknown','now','Failed\x20to\x20read\x20logs:','createLogger','timestamp','16870IHCCuS','blue','yellow','trim','setRawCommand','2184081WakqRw','dirname','log','success','transports','2989735lohiud','15XXNNGm','winstonLogger','mkdirSync','135770qUtUST','error','4305942RLHnhB','existsSync','details','readLogs','format','开始执行:\x20','logFilePath','rawCommand','split','.lovrabet.log','getWinstonInstance','initWinstonLogger'];a258_0x265b=function(){return _0x3a1469;};return a258_0x265b();}import a258_0x32985d from'node:fs';import a258_0x4a0de6 from'node:path';class Logger{['winstonLogger'];['logFilePath'];[a258_0x2ae1af(0xf1)]='';constructor(){this['logFilePath']='';}[a258_0x2ae1af(0x103)](_0xfe42f){this['currentRawCommand']=_0xfe42f;}['initWinstonLogger'](){const _0x18642d=a258_0x2ae1af,_0x1f0213=a258_0x4a0de6[_0x18642d(0x105)](this['logFilePath']);!a258_0x32985d[_0x18642d(0x110)](_0x1f0213)&&a258_0x32985d[_0x18642d(0x10c)](_0x1f0213,{'recursive':!![]});const _0x441839=a258_0x50c569[_0x18642d(0x113)][_0x18642d(0xec)](a258_0x50c569[_0x18642d(0x113)][_0x18642d(0xfe)](),a258_0x50c569[_0x18642d(0x113)][_0x18642d(0x121)]({'stack':!![]}),a258_0x50c569[_0x18642d(0x113)]['printf'](_0x3a4eb0=>{const _0x3965eb=_0x18642d,_0x2e112d={'timestamp':_0x3a4eb0[_0x3965eb(0xfe)]||new Date()['toISOString'](),'level':_0x3a4eb0['level']||_0x3965eb(0xf4),'command':_0x3a4eb0[_0x3965eb(0x11b)]||_0x3965eb(0xfa),'rawCommand':_0x3a4eb0[_0x3965eb(0x116)]||this[_0x3965eb(0xf1)]||undefined,'message':_0x3a4eb0[_0x3965eb(0xf2)]||'','duration':_0x3a4eb0['duration']||undefined,'details':_0x3a4eb0[_0x3965eb(0x111)]||undefined};return JSON[_0x3965eb(0x122)](_0x2e112d);}));this[_0x18642d(0x10b)]=a258_0x50c569[_0x18642d(0xfd)]({'level':'info','format':_0x441839,'transports':[new a258_0x50c569[(_0x18642d(0x108))][(_0x18642d(0x11f))]({'filename':this['logFilePath'],'level':_0x18642d(0xf4)})],'silent':![]}),a258_0x50c569['addColors']({'success':_0x18642d(0xf9),'error':'red','warn':_0x18642d(0x101),'info':_0x18642d(0x100)});}['setLogPath'](_0x4e8ddb){const _0x398433=a258_0x2ae1af;this['logFilePath']=a258_0x4a0de6['join'](_0x4e8ddb,_0x398433(0x118)),this[_0x398433(0x10b)]&&this[_0x398433(0x10b)][_0x398433(0xf0)](),this[_0x398433(0x11a)]();}['info'](_0x1b9dd8,_0x14a0e1,_0x2d2982){const _0x3ec6a0=a258_0x2ae1af;if(!this[_0x3ec6a0(0x115)]||!this[_0x3ec6a0(0x10b)])return;this[_0x3ec6a0(0x10b)][_0x3ec6a0(0xf4)](_0x14a0e1,{'command':_0x1b9dd8,'details':_0x2d2982});}[a258_0x2ae1af(0x107)](_0x301c1f,_0x239810,_0xe2623f,_0x5318ab){const _0x2bce61=a258_0x2ae1af;if(!this['logFilePath']||!this['winstonLogger'])return;this[_0x2bce61(0x10b)][_0x2bce61(0x106)](_0x2bce61(0xf4),_0x239810,{'level':_0x2bce61(0x107),'command':_0x301c1f,'duration':_0xe2623f,'details':_0x5318ab});}['error'](_0x30fe0a,_0x37d912,_0x5a338c){const _0x1b7b25=a258_0x2ae1af;if(!this[_0x1b7b25(0x115)]||!this[_0x1b7b25(0x10b)])return;this['winstonLogger'][_0x1b7b25(0x10e)](_0x37d912,{'command':_0x30fe0a,'details':_0x5a338c});}[a258_0x2ae1af(0x11c)](_0x240879,_0x32c921,_0x4ac562){const _0x23cba7=a258_0x2ae1af;if(!this[_0x23cba7(0x115)]||!this[_0x23cba7(0x10b)])return;this[_0x23cba7(0x10b)][_0x23cba7(0x11c)](_0x32c921,{'command':_0x240879,'details':_0x4ac562});}async[a258_0x2ae1af(0xf3)](_0x874de2,_0x1ab00f,_0x52d1aa){const _0x1c4c8c=a258_0x2ae1af,_0x132308=Date[_0x1c4c8c(0xfb)]();this['info'](_0x874de2,_0x1c4c8c(0x114)+_0x1ab00f);try{const _0x58ad75=await _0x52d1aa(),_0xd1acfe=Date[_0x1c4c8c(0xfb)]()-_0x132308;return this[_0x1c4c8c(0x107)](_0x874de2,_0x1c4c8c(0x11d)+_0x1ab00f,_0xd1acfe),_0x58ad75;}catch(_0x4bc939){const _0x42e04e=Date[_0x1c4c8c(0xfb)]()-_0x132308;this[_0x1c4c8c(0x10e)](_0x874de2,_0x1c4c8c(0xef)+_0x1ab00f,{'error':_0x4bc939 instanceof Error?_0x4bc939[_0x1c4c8c(0xf2)]:String(_0x4bc939),'duration':_0x42e04e});throw _0x4bc939;}}[a258_0x2ae1af(0x112)](){const _0x40ff2c=a258_0x2ae1af;try{if(!a258_0x32985d[_0x40ff2c(0x110)](this[_0x40ff2c(0x115)]))return[];const _0x35e595=a258_0x32985d[_0x40ff2c(0xee)](this['logFilePath'],_0x40ff2c(0xeb));return _0x35e595[_0x40ff2c(0x117)]('\x0a')['filter'](_0x44df10=>_0x44df10[_0x40ff2c(0x102)]())[_0x40ff2c(0xf7)](_0x2f2587=>JSON['parse'](_0x2f2587));}catch(_0x48fec){return console['warn'](_0x40ff2c(0xfc),_0x48fec),[];}}[a258_0x2ae1af(0x120)](){const _0x509c4d=a258_0x2ae1af;try{a258_0x32985d[_0x509c4d(0x110)](this[_0x509c4d(0x115)])&&a258_0x32985d[_0x509c4d(0xed)](this[_0x509c4d(0x115)],'',_0x509c4d(0xeb));}catch(_0x281bbb){console[_0x509c4d(0x11c)]('Failed\x20to\x20clear\x20logs:',_0x281bbb);}}[a258_0x2ae1af(0x119)](){const _0xfaa9e1=a258_0x2ae1af;return this[_0xfaa9e1(0x10b)];}}export const logger=new Logger();
1
+ const a266_0x21dcff=a266_0x1a78;function a266_0x1bbb(){const _0x513691=['logFilePath','setRawCommand','utf8','winstonLogger','toISOString','开始执行:\x20','readLogs','86511PDcqwo','info','warn','stringify','File','currentRawCommand','success','trim','.lovrabet.log','format','yellow','createLogger','duration','完成:\x20','existsSync','level','parse','printf','message','red','blue','map','mkdirSync','1544088igBEDK','addColors','rawCommand','10909143ObWSpg','122otJLOb','error','失败:\x20','now','3405020oWZNbP','combine','getWinstonInstance','2699230aBOHSZ','clearLogs','initWinstonLogger','1901676ALrTaW','417941QqsPwe','log','setLogPath','writeFileSync','command','filter','dirname','clear','transports','timestamp'];a266_0x1bbb=function(){return _0x513691;};return a266_0x1bbb();}function a266_0x1a78(_0x5bdb13,_0x376188){_0x5bdb13=_0x5bdb13-0x9d;const _0x1bbba5=a266_0x1bbb();let _0x1a7810=_0x1bbba5[_0x5bdb13];return _0x1a7810;}(function(_0x38dd02,_0x48bd11){const _0x4d3c57=a266_0x1a78,_0x8d2e47=_0x38dd02();while(!![]){try{const _0x1475e1=-parseInt(_0x4d3c57(0xd2))/0x1+-parseInt(_0x4d3c57(0xc7))/0x2*(parseInt(_0x4d3c57(0xac))/0x3)+parseInt(_0x4d3c57(0xcb))/0x4+parseInt(_0x4d3c57(0xce))/0x5+parseInt(_0x4d3c57(0xd1))/0x6+parseInt(_0x4d3c57(0xc6))/0x7+-parseInt(_0x4d3c57(0xc3))/0x8;if(_0x1475e1===_0x48bd11)break;else _0x8d2e47['push'](_0x8d2e47['shift']());}catch(_0x21917c){_0x8d2e47['push'](_0x8d2e47['shift']());}}}(a266_0x1bbb,0xdade7));import a266_0x4469a9 from'winston';import a266_0x598ea4 from'node:fs';import a266_0x21dfa4 from'node:path';class Logger{[a266_0x21dcff(0xa8)];[a266_0x21dcff(0xa5)];[a266_0x21dcff(0xb1)]='';constructor(){const _0x1750ff=a266_0x21dcff;this[_0x1750ff(0xa5)]='';}[a266_0x21dcff(0xa6)](_0x513d3d){const _0x471130=a266_0x21dcff;this[_0x471130(0xb1)]=_0x513d3d;}['initWinstonLogger'](){const _0x46de1e=a266_0x21dcff,_0x21a7b1=a266_0x21dfa4[_0x46de1e(0xa1)](this[_0x46de1e(0xa5)]);!a266_0x598ea4[_0x46de1e(0xba)](_0x21a7b1)&&a266_0x598ea4[_0x46de1e(0xc2)](_0x21a7b1,{'recursive':!![]});const _0x25c8df=a266_0x4469a9[_0x46de1e(0xb5)][_0x46de1e(0xcc)](a266_0x4469a9['format'][_0x46de1e(0xa4)](),a266_0x4469a9[_0x46de1e(0xb5)]['errors']({'stack':!![]}),a266_0x4469a9['format'][_0x46de1e(0xbd)](_0xfc45cf=>{const _0x169bb1=_0x46de1e,_0x307600={'timestamp':_0xfc45cf['timestamp']||new Date()[_0x169bb1(0xa9)](),'level':_0xfc45cf[_0x169bb1(0xbb)]||_0x169bb1(0xad),'command':_0xfc45cf[_0x169bb1(0x9f)]||'unknown','rawCommand':_0xfc45cf[_0x169bb1(0xc5)]||this[_0x169bb1(0xb1)]||undefined,'message':_0xfc45cf[_0x169bb1(0xbe)]||'','duration':_0xfc45cf[_0x169bb1(0xb8)]||undefined,'details':_0xfc45cf['details']||undefined};return JSON[_0x169bb1(0xaf)](_0x307600);}));this[_0x46de1e(0xa8)]=a266_0x4469a9[_0x46de1e(0xb7)]({'level':_0x46de1e(0xad),'format':_0x25c8df,'transports':[new a266_0x4469a9[(_0x46de1e(0xa3))][(_0x46de1e(0xb0))]({'filename':this[_0x46de1e(0xa5)],'level':'info'})],'silent':![]}),a266_0x4469a9[_0x46de1e(0xc4)]({'success':'green','error':_0x46de1e(0xbf),'warn':_0x46de1e(0xb6),'info':_0x46de1e(0xc0)});}[a266_0x21dcff(0x9d)](_0x141ea1){const _0x4b816c=a266_0x21dcff;this[_0x4b816c(0xa5)]=a266_0x21dfa4['join'](_0x141ea1,_0x4b816c(0xb4)),this['winstonLogger']&&this[_0x4b816c(0xa8)][_0x4b816c(0xa2)](),this[_0x4b816c(0xd0)]();}['info'](_0x30ae7b,_0x3bf304,_0x5a5ef7){const _0xb46629=a266_0x21dcff;if(!this[_0xb46629(0xa5)]||!this['winstonLogger'])return;this[_0xb46629(0xa8)][_0xb46629(0xad)](_0x3bf304,{'command':_0x30ae7b,'details':_0x5a5ef7});}[a266_0x21dcff(0xb2)](_0x3f5b32,_0x44be2d,_0x32fe19,_0x104abe){const _0x992a1=a266_0x21dcff;if(!this['logFilePath']||!this['winstonLogger'])return;this[_0x992a1(0xa8)][_0x992a1(0xd3)](_0x992a1(0xad),_0x44be2d,{'level':_0x992a1(0xb2),'command':_0x3f5b32,'duration':_0x32fe19,'details':_0x104abe});}[a266_0x21dcff(0xc8)](_0x443461,_0xa95507,_0x2e1a5f){const _0x563d39=a266_0x21dcff;if(!this['logFilePath']||!this[_0x563d39(0xa8)])return;this[_0x563d39(0xa8)][_0x563d39(0xc8)](_0xa95507,{'command':_0x443461,'details':_0x2e1a5f});}[a266_0x21dcff(0xae)](_0xefe03c,_0x4898df,_0x5516c5){const _0x2878d8=a266_0x21dcff;if(!this[_0x2878d8(0xa5)]||!this[_0x2878d8(0xa8)])return;this['winstonLogger'][_0x2878d8(0xae)](_0x4898df,{'command':_0xefe03c,'details':_0x5516c5});}async['logTask'](_0x2a8007,_0x41def6,_0x5c5a76){const _0x329e49=a266_0x21dcff,_0x4202e2=Date[_0x329e49(0xca)]();this['info'](_0x2a8007,_0x329e49(0xaa)+_0x41def6);try{const _0x1a4ab3=await _0x5c5a76(),_0x15d7d6=Date[_0x329e49(0xca)]()-_0x4202e2;return this[_0x329e49(0xb2)](_0x2a8007,_0x329e49(0xb9)+_0x41def6,_0x15d7d6),_0x1a4ab3;}catch(_0x23a5d6){const _0x3c64d5=Date[_0x329e49(0xca)]()-_0x4202e2;this[_0x329e49(0xc8)](_0x2a8007,_0x329e49(0xc9)+_0x41def6,{'error':_0x23a5d6 instanceof Error?_0x23a5d6[_0x329e49(0xbe)]:String(_0x23a5d6),'duration':_0x3c64d5});throw _0x23a5d6;}}[a266_0x21dcff(0xab)](){const _0x5a8e5e=a266_0x21dcff;try{if(!a266_0x598ea4[_0x5a8e5e(0xba)](this[_0x5a8e5e(0xa5)]))return[];const _0x7adeb7=a266_0x598ea4['readFileSync'](this[_0x5a8e5e(0xa5)],_0x5a8e5e(0xa7));return _0x7adeb7['split']('\x0a')[_0x5a8e5e(0xa0)](_0x212b99=>_0x212b99[_0x5a8e5e(0xb3)]())[_0x5a8e5e(0xc1)](_0x509b24=>JSON[_0x5a8e5e(0xbc)](_0x509b24));}catch(_0x337d7b){return console[_0x5a8e5e(0xae)]('Failed\x20to\x20read\x20logs:',_0x337d7b),[];}}[a266_0x21dcff(0xcf)](){const _0x19829d=a266_0x21dcff;try{a266_0x598ea4[_0x19829d(0xba)](this['logFilePath'])&&a266_0x598ea4[_0x19829d(0x9e)](this[_0x19829d(0xa5)],'',_0x19829d(0xa7));}catch(_0x3d0f2c){console[_0x19829d(0xae)]('Failed\x20to\x20clear\x20logs:',_0x3d0f2c);}}[a266_0x21dcff(0xcd)](){const _0x2332aa=a266_0x21dcff;return this[_0x2332aa(0xa8)];}}export const logger=new Logger();
@@ -1 +1 @@
1
- (function(_0x16824f,_0x118cd3){const _0x4fd874=a259_0x38b7,_0x12fb89=_0x16824f();while(!![]){try{const _0x345e0b=-parseInt(_0x4fd874(0x10c))/0x1*(-parseInt(_0x4fd874(0x104))/0x2)+-parseInt(_0x4fd874(0x112))/0x3+-parseInt(_0x4fd874(0x10b))/0x4+parseInt(_0x4fd874(0x10f))/0x5*(parseInt(_0x4fd874(0x10a))/0x6)+parseInt(_0x4fd874(0x105))/0x7+parseInt(_0x4fd874(0x10d))/0x8+-parseInt(_0x4fd874(0x106))/0x9*(parseInt(_0x4fd874(0x108))/0xa);if(_0x345e0b===_0x118cd3)break;else _0x12fb89['push'](_0x12fb89['shift']());}catch(_0x1fc497){_0x12fb89['push'](_0x12fb89['shift']());}}}(a259_0x2663,0xe59c2));function a259_0x2663(){const _0xbc09f8=['--params\x20must\x20be\x20a\x20JSON\x20object','50UTbfjJ','validation','12VWYomC','275436zjUIuz','65267avOcmj','9327120mXsOaZ','Invalid\x20JSON\x20for\x20--params:\x20','3452765wgZIgb','parse','isArray','4712361jBKMNS','object','6IGYUKm','252322LhHVjw','357687JxGiGn'];a259_0x2663=function(){return _0xbc09f8;};return a259_0x2663();}function a259_0x38b7(_0x51cd58,_0x5dbab3){_0x51cd58=_0x51cd58-0x104;const _0x266393=a259_0x2663();let _0x38b703=_0x266393[_0x51cd58];return _0x38b703;}import{CliErrors}from'../errors.js';export function parseJsonParams(_0x22713d){const _0xac0c24=a259_0x38b7;if(!_0x22713d)return undefined;let _0x29b5d4;try{_0x29b5d4=JSON[_0xac0c24(0x110)](_0x22713d);}catch{throw CliErrors['validation'](_0xac0c24(0x10e)+_0x22713d);}if(!_0x29b5d4||typeof _0x29b5d4!==_0xac0c24(0x113)||Array[_0xac0c24(0x111)](_0x29b5d4))throw CliErrors[_0xac0c24(0x109)](_0xac0c24(0x107),'Example:\x20--params\x20\x27{\x22id\x22:123}\x27');return _0x29b5d4;}
1
+ (function(_0x5b488a,_0x5c95ba){const _0x2ace19=a267_0x1968,_0x434e6d=_0x5b488a();while(!![]){try{const _0x4fff1f=parseInt(_0x2ace19(0x1f1))/0x1+-parseInt(_0x2ace19(0x1f0))/0x2*(parseInt(_0x2ace19(0x1ee))/0x3)+-parseInt(_0x2ace19(0x1ef))/0x4+-parseInt(_0x2ace19(0x1f6))/0x5+parseInt(_0x2ace19(0x1f3))/0x6*(parseInt(_0x2ace19(0x1ec))/0x7)+-parseInt(_0x2ace19(0x1f5))/0x8*(-parseInt(_0x2ace19(0x1ed))/0x9)+parseInt(_0x2ace19(0x1f4))/0xa*(parseInt(_0x2ace19(0x1e9))/0xb);if(_0x4fff1f===_0x5c95ba)break;else _0x434e6d['push'](_0x434e6d['shift']());}catch(_0x544028){_0x434e6d['push'](_0x434e6d['shift']());}}}(a267_0x117e,0x2c4c9));function a267_0x117e(){const _0x1d260a=['270yrfXxO','135075chLgUg','389412dWTnSy','10pixnil','56464tkErGv','Invalid\x20JSON\x20for\x20--params:\x20','60558nGKgbF','2862430qzBIhN','1720opPLIC','1313410adBZqE','isArray','Example:\x20--params\x20\x27{\x22id\x22:123}\x27','22oTKGXe','--params\x20must\x20be\x20a\x20JSON\x20object','validation','91TGppbB'];a267_0x117e=function(){return _0x1d260a;};return a267_0x117e();}import{CliErrors}from'../errors.js';function a267_0x1968(_0x41ce2d,_0x1ccfc9){_0x41ce2d=_0x41ce2d-0x1e9;const _0x117ea1=a267_0x117e();let _0x196899=_0x117ea1[_0x41ce2d];return _0x196899;}export function parseJsonParams(_0x47314c){const _0x26159f=a267_0x1968;if(!_0x47314c)return undefined;let _0xef46a1;try{_0xef46a1=JSON['parse'](_0x47314c);}catch{throw CliErrors[_0x26159f(0x1eb)](_0x26159f(0x1f2)+_0x47314c);}if(!_0xef46a1||typeof _0xef46a1!=='object'||Array[_0x26159f(0x1f7)](_0xef46a1))throw CliErrors[_0x26159f(0x1eb)](_0x26159f(0x1ea),_0x26159f(0x1f8));return _0xef46a1;}
@@ -1 +1 @@
1
- const a260_0x489905=a260_0x3e79;(function(_0x188460,_0xbb1ec8){const _0x2c2275=a260_0x3e79,_0x41bc71=_0x188460();while(!![]){try{const _0x440db5=-parseInt(_0x2c2275(0x7c))/0x1+-parseInt(_0x2c2275(0x7d))/0x2+parseInt(_0x2c2275(0x81))/0x3*(parseInt(_0x2c2275(0x79))/0x4)+parseInt(_0x2c2275(0x7e))/0x5+parseInt(_0x2c2275(0x80))/0x6*(parseInt(_0x2c2275(0x76))/0x7)+parseInt(_0x2c2275(0x78))/0x8*(parseInt(_0x2c2275(0x7a))/0x9)+parseInt(_0x2c2275(0x7f))/0xa*(-parseInt(_0x2c2275(0x7b))/0xb);if(_0x440db5===_0xbb1ec8)break;else _0x41bc71['push'](_0x41bc71['shift']());}catch(_0x3a0a8e){_0x41bc71['push'](_0x41bc71['shift']());}}}(a260_0x5009,0x2a185));export const isWindows=process[a260_0x489905(0x77)]===a260_0x489905(0x82);export function resolveNpmBin(_0x97a880){return isWindows?_0x97a880+'.cmd':_0x97a880;}function a260_0x3e79(_0x4c7cee,_0x37ea22){_0x4c7cee=_0x4c7cee-0x76;const _0x50090c=a260_0x5009();let _0x3e791a=_0x50090c[_0x4c7cee];return _0x3e791a;}function a260_0x5009(){const _0x38ed10=['681530hOqpWv','12vBZRob','78pncpqd','win32','296919lNRUXK','platform','762056ANIvQW','40556lJXWVp','9YyXKaC','11ttsWKK','260478cowKeC','525988pfRywp','1601705OVTpOt'];a260_0x5009=function(){return _0x38ed10;};return a260_0x5009();}
1
+ const a268_0x5834bf=a268_0x21a5;(function(_0x1370ce,_0x3f5630){const _0x285f10=a268_0x21a5,_0x33a31c=_0x1370ce();while(!![]){try{const _0x590a09=parseInt(_0x285f10(0xa1))/0x1*(parseInt(_0x285f10(0xa7))/0x2)+-parseInt(_0x285f10(0xa9))/0x3*(parseInt(_0x285f10(0xa6))/0x4)+-parseInt(_0x285f10(0xa4))/0x5*(parseInt(_0x285f10(0x9c))/0x6)+-parseInt(_0x285f10(0xa5))/0x7*(-parseInt(_0x285f10(0x9f))/0x8)+parseInt(_0x285f10(0x9d))/0x9*(-parseInt(_0x285f10(0x9e))/0xa)+-parseInt(_0x285f10(0xa3))/0xb+parseInt(_0x285f10(0xa0))/0xc;if(_0x590a09===_0x3f5630)break;else _0x33a31c['push'](_0x33a31c['shift']());}catch(_0x1580d9){_0x33a31c['push'](_0x33a31c['shift']());}}}(a268_0x2451,0x6b248));export const isWindows=process[a268_0x5834bf(0xa2)]===a268_0x5834bf(0xa8);function a268_0x21a5(_0x2b171e,_0x29f34c){_0x2b171e=_0x2b171e-0x9c;const _0x2451c9=a268_0x2451();let _0x21a583=_0x2451c9[_0x2b171e];return _0x21a583;}export function resolveNpmBin(_0x27b103){return isWindows?_0x27b103+'.cmd':_0x27b103;}function a268_0x2451(){const _0x1e0dfe=['14194920ggCrQO','567rvZkfK','platform','4036626afRZYV','750qcOMxQ','1660631wwLPRb','12568AyVkew','3038pvTlGI','win32','411NlUeOG','28668ZAeuPP','8568fuSOzK','3450FWeDKc','8bUhRnf'];a268_0x2451=function(){return _0x1e0dfe;};return a268_0x2451();}
@@ -1 +1 @@
1
- (function(_0x1ef611,_0x3dda71){const _0x54b05e=a261_0x327a,_0x3c4ec4=_0x1ef611();while(!![]){try{const _0x518bfd=-parseInt(_0x54b05e(0x139))/0x1*(parseInt(_0x54b05e(0x132))/0x2)+-parseInt(_0x54b05e(0x141))/0x3*(-parseInt(_0x54b05e(0x13e))/0x4)+parseInt(_0x54b05e(0x138))/0x5+parseInt(_0x54b05e(0x140))/0x6+-parseInt(_0x54b05e(0x137))/0x7+-parseInt(_0x54b05e(0x13b))/0x8+parseInt(_0x54b05e(0x134))/0x9;if(_0x518bfd===_0x3dda71)break;else _0x3c4ec4['push'](_0x3c4ec4['shift']());}catch(_0x435e17){_0x3c4ec4['push'](_0x3c4ec4['shift']());}}}(a261_0x4bdc,0x31d59));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 a261_0x4bdc(){const _0x331d27=['application/json','4776390lRLnXV','agents.md','utf-8','2217033MsEglf','586450Fzwwxf','240454JZASgH','catch','2801784oTuQhL','lastUpdated','/rules/rules.json','4yDgSuv','本地模板文件不存在:\x20','811188CaRLlf','984957lqokgn','statusText','CDN\x20返回数据格式错误','.cursor/rules','lovrabet_rules.mdc','content','2LfSPmT'];a261_0x4bdc=function(){return _0x331d27;};return a261_0x4bdc();}import{appendUpdateTime}from'../utils/guides-cdn.js';function a261_0x327a(_0xac502f,_0x6eb40f){_0xac502f=_0xac502f-0x130;const _0x4bdc2f=a261_0x4bdc();let _0x327a91=_0x4bdc2f[_0xac502f];return _0x327a91;}const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);function getRulesCdnUrl(){const _0x1f2dfd=a261_0x327a,_0x4b65ba=getTemplateBaseUrl();return _0x4b65ba+_0x1f2dfd(0x13d);}const LOCAL_TEMPLATE_PATH=resolve(__dirname,'../../templates/rules/lovrabet_rules.mdc.tpl');export async function fetchRulesFromCDN(){const _0x53cd97=a261_0x327a,_0x4a219b=getRulesCdnUrl(),_0x1947db=await fetch(_0x4a219b,{'headers':{'Accept':_0x53cd97(0x133)}});if(!_0x1947db['ok'])throw new Error('CDN\x20请求失败:\x20'+_0x1947db['status']+'\x20'+_0x1947db[_0x53cd97(0x142)]);const _0x1eec27=await _0x1947db['json']();if(!_0x1eec27['content']||typeof _0x1eec27[_0x53cd97(0x131)]!=='string')throw new Error(_0x53cd97(0x143));return _0x1eec27;}export async function getRulesContent(){const _0x491446=a261_0x327a;try{const _0x155ab1=await fetchRulesFromCDN();return _0x155ab1[_0x491446(0x131)];}catch{return readLocalTemplate();}}export function readLocalTemplate(){const _0x235f58=a261_0x327a;if(existsSync(LOCAL_TEMPLATE_PATH))return readFileSync(LOCAL_TEMPLATE_PATH,_0x235f58(0x136));throw new Error(_0x235f58(0x13f)+LOCAL_TEMPLATE_PATH);}export async function writeRulesFile(_0x38eb6f){const _0x2e3530=a261_0x327a,_0x42a8f3=await fetchRulesFromCDN()[_0x2e3530(0x13a)](()=>null);let _0x1e48e5;_0x42a8f3?(_0x1e48e5=_0x42a8f3[_0x2e3530(0x131)],_0x42a8f3['lastUpdated']&&(_0x1e48e5=appendUpdateTime(_0x1e48e5,_0x42a8f3[_0x2e3530(0x13c)]))):_0x1e48e5=readLocalTemplate();const _0x3a1b97=dirname(_0x38eb6f);!existsSync(_0x3a1b97)&&mkdirSync(_0x3a1b97,{'recursive':!![]}),writeFileSync(_0x38eb6f,_0x1e48e5,_0x2e3530(0x136));}export async function copyRulesToCursor(_0x349ade){const _0x4e914c=a261_0x327a,_0x1981eb=join(_0x349ade,_0x4e914c(0x144)),_0x33462b=join(_0x1981eb,_0x4e914c(0x130));if(existsSync(_0x33462b))return![];return await writeRulesFile(_0x33462b),!![];}export async function copyRulesToAgentsMd(_0x109b00){const _0x36aa89=a261_0x327a,_0x380f97=join(_0x109b00,_0x36aa89(0x135));if(existsSync(_0x380f97))return![];return await writeRulesFile(_0x380f97),!![];}
1
+ const a269_0x55e763=a269_0x3116;(function(_0x498c84,_0x1a1f2d){const _0x53316b=a269_0x3116,_0x18ec32=_0x498c84();while(!![]){try{const _0x25e574=-parseInt(_0x53316b(0x8a))/0x1*(-parseInt(_0x53316b(0x82))/0x2)+-parseInt(_0x53316b(0x8b))/0x3+parseInt(_0x53316b(0x93))/0x4*(parseInt(_0x53316b(0x8d))/0x5)+-parseInt(_0x53316b(0x83))/0x6*(parseInt(_0x53316b(0x89))/0x7)+parseInt(_0x53316b(0x95))/0x8*(parseInt(_0x53316b(0x91))/0x9)+-parseInt(_0x53316b(0x88))/0xa*(parseInt(_0x53316b(0x84))/0xb)+parseInt(_0x53316b(0x7f))/0xc*(parseInt(_0x53316b(0x96))/0xd);if(_0x25e574===_0x1a1f2d)break;else _0x18ec32['push'](_0x18ec32['shift']());}catch(_0x3f631b){_0x18ec32['push'](_0x18ec32['shift']());}}}(a269_0x3ecd,0xf2cc7));function a269_0x3116(_0x25b6e6,_0x11ec72){_0x25b6e6=_0x25b6e6-0x7c;const _0x3ecd0d=a269_0x3ecd();let _0x311606=_0x3ecd0d[_0x25b6e6];return _0x311606;}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 _0x5cb565=a269_0x3116,_0x7d1766=getTemplateBaseUrl();return _0x7d1766+_0x5cb565(0x90);}const LOCAL_TEMPLATE_PATH=resolve(__dirname,a269_0x55e763(0x81));export async function fetchRulesFromCDN(){const _0x4dd68d=a269_0x55e763,_0x595b8e=getRulesCdnUrl(),_0x176c18=await fetch(_0x595b8e,{'headers':{'Accept':_0x4dd68d(0x7d)}});if(!_0x176c18['ok'])throw new Error(_0x4dd68d(0x92)+_0x176c18['status']+'\x20'+_0x176c18[_0x4dd68d(0x85)]);const _0x50bc59=await _0x176c18[_0x4dd68d(0x8c)]();if(!_0x50bc59['content']||typeof _0x50bc59['content']!==_0x4dd68d(0x80))throw new Error(_0x4dd68d(0x7c));return _0x50bc59;}export async function getRulesContent(){const _0x49088e=a269_0x55e763;try{const _0x3149f2=await fetchRulesFromCDN();return _0x3149f2[_0x49088e(0x86)];}catch{return readLocalTemplate();}}export function readLocalTemplate(){const _0x47f1d2=a269_0x55e763;if(existsSync(LOCAL_TEMPLATE_PATH))return readFileSync(LOCAL_TEMPLATE_PATH,_0x47f1d2(0x8f));throw new Error('本地模板文件不存在:\x20'+LOCAL_TEMPLATE_PATH);}export async function writeRulesFile(_0x4be7fe){const _0x1c8187=a269_0x55e763,_0x5583ef=await fetchRulesFromCDN()[_0x1c8187(0x8e)](()=>null);let _0x1be728;_0x5583ef?(_0x1be728=_0x5583ef[_0x1c8187(0x86)],_0x5583ef[_0x1c8187(0x94)]&&(_0x1be728=appendUpdateTime(_0x1be728,_0x5583ef[_0x1c8187(0x94)]))):_0x1be728=readLocalTemplate();const _0x594b5e=dirname(_0x4be7fe);!existsSync(_0x594b5e)&&mkdirSync(_0x594b5e,{'recursive':!![]}),writeFileSync(_0x4be7fe,_0x1be728,_0x1c8187(0x8f));}export async function copyRulesToCursor(_0x293ab2){const _0x23f849=a269_0x55e763,_0x3ea852=join(_0x293ab2,_0x23f849(0x7e)),_0x5766ee=join(_0x3ea852,'lovrabet_rules.mdc');if(existsSync(_0x5766ee))return![];return await writeRulesFile(_0x5766ee),!![];}function a269_0x3ecd(){const _0x54b35e=['513lNISXH','CDN\x20请求失败:\x20','1464092JkUlJS','lastUpdated','74280IDZJMj','130117JNttXJ','CDN\x20返回数据格式错误','application/json','.cursor/rules','2340LoLzwe','string','../../templates/rules/lovrabet_rules.mdc.tpl','206120mkFWRF','11606406GgIyRj','110zbdgqG','statusText','content','agents.md','1747310ImPwvu','7FQBBsc','13GdwTQl','727905xeBpxm','json','15zucigb','catch','utf-8','/rules/rules.json'];a269_0x3ecd=function(){return _0x54b35e;};return a269_0x3ecd();}export async function copyRulesToAgentsMd(_0xbbb05c){const _0x3efdf0=a269_0x55e763,_0x1e5999=join(_0xbbb05c,_0x3efdf0(0x87));if(existsSync(_0x1e5999))return![];return await writeRulesFile(_0x1e5999),!![];}
@@ -1 +1 @@
1
- export function sleep(_0x22729){return new Promise(_0x535e46=>setTimeout(_0x535e46,_0x22729));}
1
+ export function sleep(_0x1ee468){return new Promise(_0x242ab2=>setTimeout(_0x242ab2,_0x1ee468));}
@@ -1 +1 @@
1
- function a263_0x306c(_0x582a0c,_0x55b268){_0x582a0c=_0x582a0c-0x14c;const _0x37c6bd=a263_0x37c6();let _0x306cf9=_0x37c6bd[_0x582a0c];return _0x306cf9;}const a263_0x335017=a263_0x306c;(function(_0xa84909,_0x1d6009){const _0x1e2a07=a263_0x306c,_0x2465cb=_0xa84909();while(!![]){try{const _0x410009=parseInt(_0x1e2a07(0x174))/0x1+parseInt(_0x1e2a07(0x16c))/0x2+parseInt(_0x1e2a07(0x189))/0x3+-parseInt(_0x1e2a07(0x180))/0x4+-parseInt(_0x1e2a07(0x150))/0x5*(-parseInt(_0x1e2a07(0x17f))/0x6)+parseInt(_0x1e2a07(0x17d))/0x7+-parseInt(_0x1e2a07(0x15b))/0x8;if(_0x410009===_0x1d6009)break;else _0x2465cb['push'](_0x2465cb['shift']());}catch(_0x4b39f6){_0x2465cb['push'](_0x2465cb['shift']());}}}(a263_0x37c6,0x3a73c));import a263_0x55f3af from'node:fs';import a263_0x1df67a from'node:path';import{logger}from'../utils/logger.js';function a263_0x37c6(){const _0x4c67db=['模板内容替换失败','processFile','toComponentName','map','info','932048lOdpEc','name','readdir','promises','mkdir','开始处理模板内容替换','utf8','push','61409EeBuQS','datasetCode','extname','template','pop','charAt','pad','includes','default','1629341BteCkX','toDisplayTitle','30FaoCNd','327508WMDpFA','split','slice','getHours','getDate','toLowerCase','copyFile','processTemplate','tableName','270915sHNqGl','.jsx','api','\x0a\x20\x20\x20\x20{\x20','getMonth','formatLocalTimestamp','119010CYaNwF','padStart','\x20},','alias','getSeconds','replace','toISOString','.js','endsWith','success','tableName:\x20\x22','5185712bWIpmx','message','now','getFullYear','.tpl','join','readFile','name:\x20\x22','.tsx','replaceContent','.md','processDirectory'];a263_0x37c6=function(){return _0x4c67db;};return a263_0x37c6();}import{getCliVersion}from'../utils/version.js';const CLI_VERSION=getCliVersion();export class TemplateReplacer{static[a263_0x335017(0x17a)](_0x44902e){const _0x3cf499=a263_0x335017;return String(_0x44902e)[_0x3cf499(0x151)](0x2,'0');}static[a263_0x335017(0x14f)](_0x11a8bb){const _0x392391=a263_0x335017,_0x324b8c=_0x11a8bb[_0x392391(0x15e)](),_0x49be9c=this[_0x392391(0x17a)](_0x11a8bb[_0x392391(0x14e)]()+0x1),_0x81baf4=this[_0x392391(0x17a)](_0x11a8bb[_0x392391(0x184)]()),_0x2c9557=this[_0x392391(0x17a)](_0x11a8bb[_0x392391(0x183)]()),_0x1ef8bc=this['pad'](_0x11a8bb['getMinutes']()),_0x1b93a3=this[_0x392391(0x17a)](_0x11a8bb[_0x392391(0x154)]());return{'createdAt':_0x324b8c+'-'+_0x49be9c+'-'+_0x81baf4+'\x20'+_0x2c9557+':'+_0x1ef8bc+':'+_0x1b93a3,'createdDate':_0x324b8c+'-'+_0x49be9c+'-'+_0x81baf4,'createdTime':_0x2c9557+':'+_0x1ef8bc+':'+_0x1b93a3};}static[a263_0x335017(0x169)](_0x8928d7){const _0x9e4dca=a263_0x335017,_0x2d2f7c=_0x8928d7['split']('/')[_0x9e4dca(0x178)]()||_0x8928d7;return _0x2d2f7c[_0x9e4dca(0x181)]('-')[_0x9e4dca(0x16a)](_0x55e221=>_0x55e221['charAt'](0x0)['toUpperCase']()+_0x55e221[_0x9e4dca(0x182)](0x1)['toLowerCase']())[_0x9e4dca(0x160)]('');}static['toDisplayTitle'](_0x3ceb93){const _0x56dc23=a263_0x335017,_0xfe8a1=_0x3ceb93[_0x56dc23(0x181)]('/')['pop']()||_0x3ceb93;return _0xfe8a1['split']('-')[_0x56dc23(0x16a)](_0x3d8e9f=>_0x3d8e9f[_0x56dc23(0x179)](0x0)['toUpperCase']()+_0x3d8e9f[_0x56dc23(0x182)](0x1)[_0x56dc23(0x185)]())[_0x56dc23(0x160)]('\x20');}static['replaceContent'](_0x17ecb8,_0x34eee8,_0x31a218){const _0x595e76=a263_0x335017,_0x8cdc5e=this[_0x595e76(0x169)](_0x34eee8),_0x4dedc2=this[_0x595e76(0x17e)](_0x34eee8),{createdAt:_0x2800db,createdDate:_0xef7a83,createdTime:_0x538d9b}=this[_0x595e76(0x14f)](new Date());let _0x269d56=_0x17ecb8['replace'](/\{CliVersion\}/g,CLI_VERSION)['replace'](/\{ComponentName\}/g,_0x8cdc5e)[_0x595e76(0x155)](/\{DisplayTitle\}/g,_0x4dedc2)[_0x595e76(0x155)](/\{PageName\}/g,_0x34eee8)['replace'](/\{TemplateName\}/g,_0x31a218)[_0x595e76(0x155)](/\{CreatedAt\}/g,_0x2800db)[_0x595e76(0x155)](/\{CreatedDate\}/g,_0xef7a83)[_0x595e76(0x155)](/\{CreatedTime\}/g,_0x538d9b);return _0x269d56;}static['replaceApiContent'](_0x484d82,_0x42eddd,_0x4c3792,_0x3222d8,_0x1951dc,_0x122a19,_0x3bd56d,_0x40434c){const _0x52a9fc=a263_0x335017,_0x5015b1=new Date(),_0x137393=_0x5015b1[_0x52a9fc(0x156)](),_0x21b0d4=_0x4c3792[_0x52a9fc(0x16a)](_0x3060e4=>{const _0x43a27d=_0x52a9fc,_0x417db1=['datasetCode:\x20\x22'+_0x3060e4[_0x43a27d(0x175)]+'\x22',_0x43a27d(0x15a)+_0x3060e4[_0x43a27d(0x188)]+'\x22',_0x43a27d(0x162)+_0x3060e4['name']+'\x22'];return _0x3060e4[_0x43a27d(0x153)]&&_0x417db1[_0x43a27d(0x173)]('alias:\x20\x22'+_0x3060e4[_0x43a27d(0x153)]+'\x22'),_0x43a27d(0x14d)+_0x417db1[_0x43a27d(0x160)](',\x20')+_0x43a27d(0x152);})['join'](''),_0x18c4d8=_0x3222d8||_0x4c3792[0x0]?.[_0x52a9fc(0x153)]||'YourModel';let _0x1502ca=_0x484d82['replace'](/\{AppCode\}/g,_0x42eddd)[_0x52a9fc(0x155)](/\{ModelConfigs\}/g,_0x21b0d4)[_0x52a9fc(0x155)](/\{ExampleModelName\}/g,_0x18c4d8)[_0x52a9fc(0x155)](/\{ApiFileName\}/g,_0x1951dc||_0x52a9fc(0x14c))[_0x52a9fc(0x155)](/\{ConfigName\}/g,_0x122a19||_0x52a9fc(0x17c))[_0x52a9fc(0x155)](/\{ClientConfigParam\}/g,_0x3bd56d||'')['replace'](/\{VarPrefix\}/g,_0x40434c||'LOVRABET')[_0x52a9fc(0x155)](/\{CreatedAt\}/g,_0x137393);return _0x1502ca;}static async[a263_0x335017(0x187)](_0x3a8ce4,_0x4fe9e7,_0x21b1b4,_0x1fb423,_0x727746=!![]){const _0x27150c=a263_0x335017,_0x9fb8da=Date[_0x27150c(0x15d)]();try{_0x727746&&logger[_0x27150c(0x16b)](_0x27150c(0x177),_0x27150c(0x171),{'templatePath':_0x3a8ce4,'targetPath':_0x4fe9e7,'pageName':_0x21b1b4,'templateName':_0x1fb423});await a263_0x55f3af[_0x27150c(0x16f)]['mkdir'](_0x4fe9e7,{'recursive':!![]}),await this[_0x27150c(0x166)](_0x3a8ce4,_0x4fe9e7,_0x21b1b4,_0x1fb423);if(_0x727746){const _0x3cc903=Date['now']()-_0x9fb8da;logger[_0x27150c(0x159)](_0x27150c(0x177),'模板内容替换完成',_0x3cc903,{'pageName':_0x21b1b4,'templateName':_0x1fb423});}}catch(_0xc52c6b){if(_0x727746){const _0x4f5e31=Date[_0x27150c(0x15d)]()-_0x9fb8da;logger['error']('template',_0x27150c(0x167),{'templatePath':_0x3a8ce4,'targetPath':_0x4fe9e7,'pageName':_0x21b1b4,'templateName':_0x1fb423,'error':_0xc52c6b instanceof Error?_0xc52c6b[_0x27150c(0x15c)]:String(_0xc52c6b),'duration':_0x4f5e31});}throw _0xc52c6b;}}static async[a263_0x335017(0x166)](_0x3ef8a5,_0x279480,_0x5b5a1d,_0xa75cd6){const _0x428c83=a263_0x335017,_0x2ee1f2=await a263_0x55f3af[_0x428c83(0x16f)][_0x428c83(0x16e)](_0x3ef8a5,{'withFileTypes':!![]});for(const _0x37dcd0 of _0x2ee1f2){const _0x369cca=a263_0x1df67a['join'](_0x3ef8a5,_0x37dcd0[_0x428c83(0x16d)]);let _0xfbbd93=a263_0x1df67a[_0x428c83(0x160)](_0x279480,_0x37dcd0[_0x428c83(0x16d)]);_0x37dcd0[_0x428c83(0x16d)]['endsWith']('.tpl')&&(_0xfbbd93=a263_0x1df67a[_0x428c83(0x160)](_0x279480,_0x37dcd0[_0x428c83(0x16d)][_0x428c83(0x155)](/\.tpl$/,'')));if(_0x37dcd0['isDirectory']())await a263_0x55f3af[_0x428c83(0x16f)][_0x428c83(0x170)](_0xfbbd93,{'recursive':!![]}),await this['processDirectory'](_0x369cca,_0xfbbd93,_0x5b5a1d,_0xa75cd6);else _0x37dcd0['isFile']()&&await this[_0x428c83(0x168)](_0x369cca,_0xfbbd93,_0x5b5a1d,_0xa75cd6);}}static async[a263_0x335017(0x168)](_0x2126cd,_0x1bf298,_0x2cf488,_0xb550a7){const _0xf29b62=a263_0x335017,_0x20391b=a263_0x1df67a[_0xf29b62(0x176)](_0x2126cd)[_0xf29b62(0x185)]();_0x2126cd['endsWith'](_0xf29b62(0x15f))&&(_0x1bf298=_0x1bf298['replace'](/\.tpl$/,''));const _0x3a2726=[_0xf29b62(0x163),'.ts',_0xf29b62(0x18a),_0xf29b62(0x157),'.json',_0xf29b62(0x165),'.css','.scss',_0xf29b62(0x15f)];if(_0x3a2726[_0xf29b62(0x17b)](_0x20391b)||_0x2126cd[_0xf29b62(0x158)](_0xf29b62(0x15f))){const _0x1f3b2b=await a263_0x55f3af[_0xf29b62(0x16f)][_0xf29b62(0x161)](_0x2126cd,'utf8'),_0x383f88=this[_0xf29b62(0x164)](_0x1f3b2b,_0x2cf488,_0xb550a7);await a263_0x55f3af['promises']['writeFile'](_0x1bf298,_0x383f88,_0xf29b62(0x172));}else await a263_0x55f3af['promises'][_0xf29b62(0x186)](_0x2126cd,_0x1bf298);}}
1
+ function a271_0x105c(){const _0x18f4bd=['5YHeeqP','toLowerCase','3094190VhqFbX','replaceApiContent','.css','alias:\x20\x22','3354640FsElUt','datasetCode:\x20\x22','now','getMonth','tableName:\x20\x22','99vwQrck','\x20},','processTemplate','api','alias','copyFile','8TLQlQc','.json','map','isDirectory','.js','toComponentName','.tpl','extname','9504719SWJnMH','5480961eNFBnI','pad','getDate','3049434dteFUQ','processDirectory','datasetCode','endsWith','slice','getFullYear','replace','name','开始处理模板内容替换','join','2236038NRCTtV','tableName','processFile','utf8','.md','info','LOVRABET','440248alcDiU','getHours','writeFile','success','toDisplayTitle','message','padStart','.ts','template','replaceContent','split','toISOString','mkdir','YourModel','getMinutes','push','toUpperCase','.jsx','promises','readFile','pop','formatLocalTimestamp','\x0a\x20\x20\x20\x20{\x20'];a271_0x105c=function(){return _0x18f4bd;};return a271_0x105c();}const a271_0x207f5c=a271_0x1c92;(function(_0x21e3ec,_0x41fe33){const _0xebff9a=a271_0x1c92,_0x2dbd48=_0x21e3ec();while(!![]){try{const _0x54e0e5=-parseInt(_0xebff9a(0x115))/0x1+-parseInt(_0xebff9a(0x10e))/0x2+parseInt(_0xebff9a(0x101))/0x3+-parseInt(_0xebff9a(0xed))/0x4+-parseInt(_0xebff9a(0xe7))/0x5*(parseInt(_0xebff9a(0x104))/0x6)+parseInt(_0xebff9a(0x100))/0x7*(-parseInt(_0xebff9a(0xf8))/0x8)+parseInt(_0xebff9a(0xf2))/0x9*(parseInt(_0xebff9a(0xe9))/0xa);if(_0x54e0e5===_0x41fe33)break;else _0x2dbd48['push'](_0x2dbd48['shift']());}catch(_0x55c177){_0x2dbd48['push'](_0x2dbd48['shift']());}}}(a271_0x105c,0xec3bd));import a271_0x1d69e4 from'node:fs';import a271_0x128d5a from'node:path';import{logger}from'../utils/logger.js';import{getCliVersion}from'../utils/version.js';function a271_0x1c92(_0x52ff5c,_0x199ff5){_0x52ff5c=_0x52ff5c-0xe5;const _0x105c63=a271_0x105c();let _0x1c92e8=_0x105c63[_0x52ff5c];return _0x1c92e8;}const CLI_VERSION=getCliVersion();export class TemplateReplacer{static[a271_0x207f5c(0x102)](_0x546af3){const _0xb18008=a271_0x207f5c;return String(_0x546af3)[_0xb18008(0x11b)](0x2,'0');}static[a271_0x207f5c(0xe5)](_0x1d86cb){const _0x615f4f=a271_0x207f5c,_0x2569ff=_0x1d86cb[_0x615f4f(0x109)](),_0x32a678=this[_0x615f4f(0x102)](_0x1d86cb[_0x615f4f(0xf0)]()+0x1),_0x59a03c=this[_0x615f4f(0x102)](_0x1d86cb[_0x615f4f(0x103)]()),_0x263c44=this[_0x615f4f(0x102)](_0x1d86cb[_0x615f4f(0x116)]()),_0x3d1fda=this[_0x615f4f(0x102)](_0x1d86cb[_0x615f4f(0x123)]()),_0x5ef72e=this['pad'](_0x1d86cb['getSeconds']());return{'createdAt':_0x2569ff+'-'+_0x32a678+'-'+_0x59a03c+'\x20'+_0x263c44+':'+_0x3d1fda+':'+_0x5ef72e,'createdDate':_0x2569ff+'-'+_0x32a678+'-'+_0x59a03c,'createdTime':_0x263c44+':'+_0x3d1fda+':'+_0x5ef72e};}static[a271_0x207f5c(0xfd)](_0x3ba15d){const _0x3eefda=a271_0x207f5c,_0xe6a8f6=_0x3ba15d['split']('/')[_0x3eefda(0x129)]()||_0x3ba15d;return _0xe6a8f6['split']('-')[_0x3eefda(0xfa)](_0x4bd568=>_0x4bd568['charAt'](0x0)[_0x3eefda(0x125)]()+_0x4bd568[_0x3eefda(0x108)](0x1)[_0x3eefda(0xe8)]())['join']('');}static[a271_0x207f5c(0x119)](_0x4364be){const _0xe4c1ce=a271_0x207f5c,_0x55873b=_0x4364be[_0xe4c1ce(0x11f)]('/')[_0xe4c1ce(0x129)]()||_0x4364be;return _0x55873b[_0xe4c1ce(0x11f)]('-')[_0xe4c1ce(0xfa)](_0xcc9d14=>_0xcc9d14['charAt'](0x0)[_0xe4c1ce(0x125)]()+_0xcc9d14[_0xe4c1ce(0x108)](0x1)[_0xe4c1ce(0xe8)]())[_0xe4c1ce(0x10d)]('\x20');}static[a271_0x207f5c(0x11e)](_0x51d86d,_0x1a1ad9,_0x69cb54){const _0x3bf9ed=a271_0x207f5c,_0x68b71c=this[_0x3bf9ed(0xfd)](_0x1a1ad9),_0x3f9d9c=this[_0x3bf9ed(0x119)](_0x1a1ad9),{createdAt:_0x106abd,createdDate:_0x4cf5cd,createdTime:_0x37ac68}=this[_0x3bf9ed(0xe5)](new Date());let _0x307c2e=_0x51d86d[_0x3bf9ed(0x10a)](/\{CliVersion\}/g,CLI_VERSION)[_0x3bf9ed(0x10a)](/\{ComponentName\}/g,_0x68b71c)['replace'](/\{DisplayTitle\}/g,_0x3f9d9c)[_0x3bf9ed(0x10a)](/\{PageName\}/g,_0x1a1ad9)[_0x3bf9ed(0x10a)](/\{TemplateName\}/g,_0x69cb54)[_0x3bf9ed(0x10a)](/\{CreatedAt\}/g,_0x106abd)[_0x3bf9ed(0x10a)](/\{CreatedDate\}/g,_0x4cf5cd)[_0x3bf9ed(0x10a)](/\{CreatedTime\}/g,_0x37ac68);return _0x307c2e;}static[a271_0x207f5c(0xea)](_0x68ba71,_0x21d26d,_0x7c6409,_0x2a99ee,_0x399c51,_0x279d60,_0x5d1692,_0x83f009){const _0x4111ac=a271_0x207f5c,_0x2e7ed6=new Date(),_0x599f0f=_0x2e7ed6[_0x4111ac(0x120)](),_0x217970=_0x7c6409[_0x4111ac(0xfa)](_0x3644ed=>{const _0x35eb4f=_0x4111ac,_0x122a1b=[_0x35eb4f(0xee)+_0x3644ed[_0x35eb4f(0x106)]+'\x22',_0x35eb4f(0xf1)+_0x3644ed[_0x35eb4f(0x10f)]+'\x22','name:\x20\x22'+_0x3644ed['name']+'\x22'];return _0x3644ed['alias']&&_0x122a1b[_0x35eb4f(0x124)](_0x35eb4f(0xec)+_0x3644ed[_0x35eb4f(0xf6)]+'\x22'),_0x35eb4f(0xe6)+_0x122a1b[_0x35eb4f(0x10d)](',\x20')+_0x35eb4f(0xf3);})['join'](''),_0x30f1d5=_0x2a99ee||_0x7c6409[0x0]?.['alias']||_0x4111ac(0x122);let _0x437ae5=_0x68ba71[_0x4111ac(0x10a)](/\{AppCode\}/g,_0x21d26d)[_0x4111ac(0x10a)](/\{ModelConfigs\}/g,_0x217970)[_0x4111ac(0x10a)](/\{ExampleModelName\}/g,_0x30f1d5)[_0x4111ac(0x10a)](/\{ApiFileName\}/g,_0x399c51||_0x4111ac(0xf5))[_0x4111ac(0x10a)](/\{ConfigName\}/g,_0x279d60||'default')[_0x4111ac(0x10a)](/\{ClientConfigParam\}/g,_0x5d1692||'')[_0x4111ac(0x10a)](/\{VarPrefix\}/g,_0x83f009||_0x4111ac(0x114))['replace'](/\{CreatedAt\}/g,_0x599f0f);return _0x437ae5;}static async[a271_0x207f5c(0xf4)](_0x3fd03d,_0x79c606,_0x599617,_0x85b5dc,_0x365abc=!![]){const _0x425d13=a271_0x207f5c,_0x521fa5=Date[_0x425d13(0xef)]();try{_0x365abc&&logger[_0x425d13(0x113)]('template',_0x425d13(0x10c),{'templatePath':_0x3fd03d,'targetPath':_0x79c606,'pageName':_0x599617,'templateName':_0x85b5dc});await a271_0x1d69e4[_0x425d13(0x127)][_0x425d13(0x121)](_0x79c606,{'recursive':!![]}),await this[_0x425d13(0x105)](_0x3fd03d,_0x79c606,_0x599617,_0x85b5dc);if(_0x365abc){const _0x1963a9=Date[_0x425d13(0xef)]()-_0x521fa5;logger[_0x425d13(0x118)](_0x425d13(0x11d),'模板内容替换完成',_0x1963a9,{'pageName':_0x599617,'templateName':_0x85b5dc});}}catch(_0x53dec9){if(_0x365abc){const _0x4f26a7=Date[_0x425d13(0xef)]()-_0x521fa5;logger['error']('template','模板内容替换失败',{'templatePath':_0x3fd03d,'targetPath':_0x79c606,'pageName':_0x599617,'templateName':_0x85b5dc,'error':_0x53dec9 instanceof Error?_0x53dec9[_0x425d13(0x11a)]:String(_0x53dec9),'duration':_0x4f26a7});}throw _0x53dec9;}}static async[a271_0x207f5c(0x105)](_0x983f74,_0xc59e9,_0x3b6fec,_0x4b0312){const _0x3c0280=a271_0x207f5c,_0x11e17e=await a271_0x1d69e4['promises']['readdir'](_0x983f74,{'withFileTypes':!![]});for(const _0x2a7b20 of _0x11e17e){const _0x53f34c=a271_0x128d5a['join'](_0x983f74,_0x2a7b20[_0x3c0280(0x10b)]);let _0x4094f0=a271_0x128d5a[_0x3c0280(0x10d)](_0xc59e9,_0x2a7b20[_0x3c0280(0x10b)]);_0x2a7b20[_0x3c0280(0x10b)][_0x3c0280(0x107)]('.tpl')&&(_0x4094f0=a271_0x128d5a[_0x3c0280(0x10d)](_0xc59e9,_0x2a7b20[_0x3c0280(0x10b)][_0x3c0280(0x10a)](/\.tpl$/,'')));if(_0x2a7b20[_0x3c0280(0xfb)]())await a271_0x1d69e4[_0x3c0280(0x127)]['mkdir'](_0x4094f0,{'recursive':!![]}),await this[_0x3c0280(0x105)](_0x53f34c,_0x4094f0,_0x3b6fec,_0x4b0312);else _0x2a7b20['isFile']()&&await this[_0x3c0280(0x110)](_0x53f34c,_0x4094f0,_0x3b6fec,_0x4b0312);}}static async[a271_0x207f5c(0x110)](_0x3ec402,_0x3e39ad,_0x362e13,_0x13ea71){const _0x57b600=a271_0x207f5c,_0x102f51=a271_0x128d5a[_0x57b600(0xff)](_0x3ec402)[_0x57b600(0xe8)]();_0x3ec402['endsWith'](_0x57b600(0xfe))&&(_0x3e39ad=_0x3e39ad[_0x57b600(0x10a)](/\.tpl$/,''));const _0x1919f2=['.tsx',_0x57b600(0x11c),_0x57b600(0x126),_0x57b600(0xfc),_0x57b600(0xf9),_0x57b600(0x112),_0x57b600(0xeb),'.scss','.tpl'];if(_0x1919f2['includes'](_0x102f51)||_0x3ec402[_0x57b600(0x107)](_0x57b600(0xfe))){const _0x4ad476=await a271_0x1d69e4[_0x57b600(0x127)][_0x57b600(0x128)](_0x3ec402,_0x57b600(0x111)),_0x4bd8c6=this[_0x57b600(0x11e)](_0x4ad476,_0x362e13,_0x13ea71);await a271_0x1d69e4[_0x57b600(0x127)][_0x57b600(0x117)](_0x3e39ad,_0x4bd8c6,'utf8');}else await a271_0x1d69e4[_0x57b600(0x127)][_0x57b600(0xf7)](_0x3ec402,_0x3e39ad);}}
@@ -1 +1 @@
1
- (function(_0x1721d1,_0x3baf61){const _0x3bf496=a264_0x5984,_0x444477=_0x1721d1();while(!![]){try{const _0x382e34=parseInt(_0x3bf496(0x18b))/0x1+parseInt(_0x3bf496(0x177))/0x2+-parseInt(_0x3bf496(0x17e))/0x3+parseInt(_0x3bf496(0x18f))/0x4+parseInt(_0x3bf496(0x18c))/0x5*(parseInt(_0x3bf496(0x178))/0x6)+-parseInt(_0x3bf496(0x17b))/0x7+parseInt(_0x3bf496(0x183))/0x8*(-parseInt(_0x3bf496(0x179))/0x9);if(_0x382e34===_0x3baf61)break;else _0x444477['push'](_0x444477['shift']());}catch(_0x34c3b5){_0x444477['push'](_0x444477['shift']());}}}(a264_0x5f37,0xa840e));import{mkdir,readFile,writeFile}from'node:fs/promises';import{homedir}from'node:os';import{dirname,join}from'node:path';import a264_0x15174d from'semver';import{CLI_BIN_NAME,NPM_PACKAGE_NAME}from'../constant/cli.js';import{getCliVersionPolicy}from'../utils/cli-version-policy.js';import{getCliVersion}from'../utils/version.js';const UPDATE_CHECK_TTL_MS=0xc*0x3c*0x3c*0x3e8,UPDATE_NOTICE_TTL_MS=0x18*0x3c*0x3c*0x3e8;function isUpdateNoticeDisabled(){const _0x26c691=a264_0x5984,_0x4c225e=process.env.RABETBASE_NO_UPDATE_NOTICE?.[_0x26c691(0x181)]()[_0x26c691(0x175)]();return _0x4c225e==='1'||_0x4c225e===_0x26c691(0x184)||_0x4c225e==='yes';}function cacheRoot(){const _0x5d6f0d=a264_0x5984;return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),_0x5d6f0d(0x18d));}export function getUpdateNoticeCachePath(){const _0x27fd15=a264_0x5984;return join(cacheRoot(),_0x27fd15(0x17d),_0x27fd15(0x187));}async function readUpdateNoticeCache(){const _0x5635eb=a264_0x5984;try{const _0x58f5c0=await readFile(getUpdateNoticeCachePath(),_0x5635eb(0x180)),_0x14712e=JSON['parse'](_0x58f5c0);if(!_0x14712e||typeof _0x14712e!==_0x5635eb(0x189))return{};return _0x14712e;}catch{return{};}}async function writeUpdateNoticeCache(_0x51dd78){const _0x386f24=a264_0x5984;try{const _0x2e46f7=getUpdateNoticeCachePath();await mkdir(dirname(_0x2e46f7),{'recursive':!![]}),await writeFile(_0x2e46f7,JSON[_0x386f24(0x18e)](_0x51dd78,null,0x2)+'\x0a',_0x386f24(0x180));}catch{}}function isFreshCheck(_0x2b293a,_0x4e07f0){const _0x5271cb=a264_0x5984;return typeof _0x2b293a[_0x5271cb(0x174)]===_0x5271cb(0x185)&&_0x4e07f0-_0x2b293a['checkedAt']<UPDATE_CHECK_TTL_MS;}function isRecentlyNotified(_0x4554fa,_0x4ff394,_0x517eac){const _0x959ec7=a264_0x5984;return _0x4554fa[_0x959ec7(0x173)]===_0x4ff394&&typeof _0x4554fa[_0x959ec7(0x17a)]===_0x959ec7(0x185)&&_0x517eac-_0x4554fa[_0x959ec7(0x17a)]<UPDATE_NOTICE_TTL_MS;}export function buildNpmVersionUrl(_0x4a306b){const _0x4be25a=a264_0x5984;return _0x4be25a(0x182)+NPM_PACKAGE_NAME+_0x4be25a(0x172)+_0x4a306b;}function a264_0x5f37(){const _0x71735f=['checkedAt','toLowerCase','valid','1131152PjFNaC','6rZzDVi','3433941FIEQpx','lastNotifiedAt','3699234XSzgYu','\x20update','rabetbase-cli','2296755ILaQRJ','\x20available,\x20current\x20','utf8','trim','https://www.npmjs.com/package/','24kEAliA','true','number','latest','update-check.json','gte','object','now','1113640wufWxb','2068210xyFpeh','.cache','stringify','4140008akRgXX','/v/','lastNotifiedVersion'];a264_0x5f37=function(){return _0x71735f;};return a264_0x5f37();}function a264_0x5984(_0x4ce8b4,_0x2e6b58){_0x4ce8b4=_0x4ce8b4-0x172;const _0x5f37ce=a264_0x5f37();let _0x598447=_0x5f37ce[_0x4ce8b4];return _0x598447;}export async function resolveLatestUpdateNotice(){const _0x38b6fa=a264_0x5984;if(isUpdateNoticeDisabled())return null;try{const _0x28c11c=Date[_0x38b6fa(0x18a)](),_0x14841b=getCliVersion(),_0x1a256d=await readUpdateNoticeCache();let _0x5d4a71=isFreshCheck(_0x1a256d,_0x28c11c)?_0x1a256d[_0x38b6fa(0x186)]?.[_0x38b6fa(0x181)]():undefined;if(!_0x5d4a71&&!isFreshCheck(_0x1a256d,_0x28c11c)){const _0x323a24=await getCliVersionPolicy();_0x5d4a71=_0x323a24?.['stableVersion']?.[_0x38b6fa(0x181)]()||undefined,await writeUpdateNoticeCache({..._0x1a256d,'checkedAt':_0x28c11c,'latest':_0x5d4a71,'failed':!_0x5d4a71});}if(!_0x5d4a71||!a264_0x15174d[_0x38b6fa(0x176)](_0x14841b)||!a264_0x15174d['valid'](_0x5d4a71))return null;if(a264_0x15174d[_0x38b6fa(0x188)](_0x14841b,_0x5d4a71))return null;if(isRecentlyNotified(_0x1a256d,_0x5d4a71,_0x28c11c))return null;const _0x3a3fdf=CLI_BIN_NAME+_0x38b6fa(0x17c);return await writeUpdateNoticeCache({..._0x1a256d,'checkedAt':isFreshCheck(_0x1a256d,_0x28c11c)?_0x1a256d[_0x38b6fa(0x174)]:_0x28c11c,'latest':_0x5d4a71,'failed':![],'lastNotifiedVersion':_0x5d4a71,'lastNotifiedAt':_0x28c11c}),{'command':_0x3a3fdf,'current':_0x14841b,'latest':_0x5d4a71,'url':buildNpmVersionUrl(_0x5d4a71),'message':CLI_BIN_NAME+'\x20'+_0x5d4a71+_0x38b6fa(0x17f)+_0x14841b+',\x20run:\x20'+_0x3a3fdf};}catch{return null;}}
1
+ (function(_0x54ce14,_0x35ac36){const _0x330fb0=a272_0x22f7,_0x10baa7=_0x54ce14();while(!![]){try{const _0x5809c4=-parseInt(_0x330fb0(0xd7))/0x1+parseInt(_0x330fb0(0xbd))/0x2*(parseInt(_0x330fb0(0xd2))/0x3)+-parseInt(_0x330fb0(0xd9))/0x4*(parseInt(_0x330fb0(0xda))/0x5)+parseInt(_0x330fb0(0xca))/0x6+-parseInt(_0x330fb0(0xc9))/0x7*(-parseInt(_0x330fb0(0xbf))/0x8)+parseInt(_0x330fb0(0xd4))/0x9+parseInt(_0x330fb0(0xc0))/0xa*(-parseInt(_0x330fb0(0xcb))/0xb);if(_0x5809c4===_0x35ac36)break;else _0x10baa7['push'](_0x10baa7['shift']());}catch(_0x5d4306){_0x10baa7['push'](_0x10baa7['shift']());}}}(a272_0x2cfc,0x53117));function a272_0x22f7(_0x3806fe,_0x523f31){_0x3806fe=_0x3806fe-0xbc;const _0x2cfc14=a272_0x2cfc();let _0x22f7fa=_0x2cfc14[_0x3806fe];return _0x22f7fa;}import{mkdir,readFile,writeFile}from'node:fs/promises';import{homedir}from'node:os';import{dirname,join}from'node:path';import a272_0x59fe52 from'semver';import{CLI_BIN_NAME,NPM_PACKAGE_NAME}from'../constant/cli.js';function a272_0x2cfc(){const _0x1985e5=['lastNotifiedVersion','number','lastNotifiedAt',',\x20run:\x20','379767CyDahE','trim','1801746rfnNHr','true','now','44041gqrzOe','utf8','249584cpniiz','5nsvNUD','yes','8Rlghsd','\x20update','3793616fHQdrx','1077610WeVNnX','valid','https://www.npmjs.com/package/','checkedAt','rabetbase-cli','.cache','latest','/v/','parse','7ZNzmFc','121554vRLVuz','77uSdSNX','gte','update-check.json'];a272_0x2cfc=function(){return _0x1985e5;};return a272_0x2cfc();}import{getCliVersionPolicy}from'../utils/cli-version-policy.js';import{getCliVersion}from'../utils/version.js';const UPDATE_CHECK_TTL_MS=0xc*0x3c*0x3c*0x3e8,UPDATE_NOTICE_TTL_MS=0x18*0x3c*0x3c*0x3e8;function isUpdateNoticeDisabled(){const _0x3b401a=a272_0x22f7,_0x727c0d=process.env.RABETBASE_NO_UPDATE_NOTICE?.[_0x3b401a(0xd3)]()['toLowerCase']();return _0x727c0d==='1'||_0x727c0d===_0x3b401a(0xd5)||_0x727c0d===_0x3b401a(0xbc);}function cacheRoot(){const _0x2dfb2e=a272_0x22f7;return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),_0x2dfb2e(0xc5));}export function getUpdateNoticeCachePath(){const _0x688c96=a272_0x22f7;return join(cacheRoot(),_0x688c96(0xc4),_0x688c96(0xcd));}async function readUpdateNoticeCache(){const _0x147589=a272_0x22f7;try{const _0x452830=await readFile(getUpdateNoticeCachePath(),'utf8'),_0x28fd04=JSON[_0x147589(0xc8)](_0x452830);if(!_0x28fd04||typeof _0x28fd04!=='object')return{};return _0x28fd04;}catch{return{};}}async function writeUpdateNoticeCache(_0x5c661f){const _0x12185a=a272_0x22f7;try{const _0x250124=getUpdateNoticeCachePath();await mkdir(dirname(_0x250124),{'recursive':!![]}),await writeFile(_0x250124,JSON['stringify'](_0x5c661f,null,0x2)+'\x0a',_0x12185a(0xd8));}catch{}}function isFreshCheck(_0x385f77,_0x388c70){const _0x202975=a272_0x22f7;return typeof _0x385f77[_0x202975(0xc3)]===_0x202975(0xcf)&&_0x388c70-_0x385f77[_0x202975(0xc3)]<UPDATE_CHECK_TTL_MS;}function isRecentlyNotified(_0x504f7f,_0x1c5ada,_0x459292){const _0x3a6f1a=a272_0x22f7;return _0x504f7f[_0x3a6f1a(0xce)]===_0x1c5ada&&typeof _0x504f7f[_0x3a6f1a(0xd0)]===_0x3a6f1a(0xcf)&&_0x459292-_0x504f7f['lastNotifiedAt']<UPDATE_NOTICE_TTL_MS;}export function buildNpmVersionUrl(_0x4603cf){const _0x247b3c=a272_0x22f7;return _0x247b3c(0xc2)+NPM_PACKAGE_NAME+_0x247b3c(0xc7)+_0x4603cf;}export async function resolveLatestUpdateNotice(){const _0x2a8817=a272_0x22f7;if(isUpdateNoticeDisabled())return null;try{const _0xe1b7f4=Date[_0x2a8817(0xd6)](),_0x5108fa=getCliVersion(),_0x321141=await readUpdateNoticeCache();let _0xc658b6=isFreshCheck(_0x321141,_0xe1b7f4)?_0x321141[_0x2a8817(0xc6)]?.['trim']():undefined;if(!_0xc658b6&&!isFreshCheck(_0x321141,_0xe1b7f4)){const _0x2e9554=await getCliVersionPolicy();_0xc658b6=_0x2e9554?.['stableVersion']?.['trim']()||undefined,await writeUpdateNoticeCache({..._0x321141,'checkedAt':_0xe1b7f4,'latest':_0xc658b6,'failed':!_0xc658b6});}if(!_0xc658b6||!a272_0x59fe52[_0x2a8817(0xc1)](_0x5108fa)||!a272_0x59fe52[_0x2a8817(0xc1)](_0xc658b6))return null;if(a272_0x59fe52[_0x2a8817(0xcc)](_0x5108fa,_0xc658b6))return null;if(isRecentlyNotified(_0x321141,_0xc658b6,_0xe1b7f4))return null;const _0x45ac1a=CLI_BIN_NAME+_0x2a8817(0xbe);return await writeUpdateNoticeCache({..._0x321141,'checkedAt':isFreshCheck(_0x321141,_0xe1b7f4)?_0x321141['checkedAt']:_0xe1b7f4,'latest':_0xc658b6,'failed':![],'lastNotifiedVersion':_0xc658b6,'lastNotifiedAt':_0xe1b7f4}),{'command':_0x45ac1a,'current':_0x5108fa,'latest':_0xc658b6,'url':buildNpmVersionUrl(_0xc658b6),'message':CLI_BIN_NAME+'\x20'+_0xc658b6+'\x20available,\x20current\x20'+_0x5108fa+_0x2a8817(0xd1)+_0x45ac1a};}catch{return null;}}
@@ -1 +1 @@
1
- (function(_0x2bc221,_0x430f9a){var _0x5c8262=a265_0x1fb4,_0x235a9d=_0x2bc221();while(!![]){try{var _0x29adea=parseInt(_0x5c8262(0x1ae))/0x1+-parseInt(_0x5c8262(0x1b3))/0x2*(-parseInt(_0x5c8262(0x1b7))/0x3)+-parseInt(_0x5c8262(0x1b4))/0x4+-parseInt(_0x5c8262(0x1b1))/0x5*(-parseInt(_0x5c8262(0x1b0))/0x6)+parseInt(_0x5c8262(0x1af))/0x7*(parseInt(_0x5c8262(0x1b6))/0x8)+parseInt(_0x5c8262(0x1b2))/0x9+parseInt(_0x5c8262(0x1ad))/0xa*(-parseInt(_0x5c8262(0x1b5))/0xb);if(_0x29adea===_0x430f9a)break;else _0x235a9d['push'](_0x235a9d['shift']());}catch(_0xb81509){_0x235a9d['push'](_0x235a9d['shift']());}}}(a265_0x23fc,0x5b91c));function a265_0x1fb4(_0x477923,_0x594374){_0x477923=_0x477923-0x1ad;var _0x23fc92=a265_0x23fc();var _0x1fb4b9=_0x23fc92[_0x477923];return _0x1fb4b9;}function a265_0x23fc(){var _0x23aa48=['3211839GXfQan','4104tNESPL','2384116ZKlwLw','66XdNtLw','24xppwfa','549FyJXHr','1985720fwvRGM','732840zMLjyM','1093603xcWIGl','18hXsMvl','381025XBLjtk'];a265_0x23fc=function(){return _0x23aa48;};return a265_0x23fc();}import{VERSION}from'../generated/build-info.js';export function getCliVersion(){return VERSION;}
1
+ function a273_0x568d(_0x40b9a4,_0x2243b8){_0x40b9a4=_0x40b9a4-0xe4;var _0x150d57=a273_0x150d();var _0x568d60=_0x150d57[_0x40b9a4];return _0x568d60;}(function(_0x5ae147,_0x4c17ff){var _0x180824=a273_0x568d,_0x20d452=_0x5ae147();while(!![]){try{var _0x11d2ed=-parseInt(_0x180824(0xe8))/0x1+-parseInt(_0x180824(0xea))/0x2+parseInt(_0x180824(0xe4))/0x3+-parseInt(_0x180824(0xe6))/0x4+parseInt(_0x180824(0xeb))/0x5+parseInt(_0x180824(0xe5))/0x6+-parseInt(_0x180824(0xe9))/0x7*(-parseInt(_0x180824(0xe7))/0x8);if(_0x11d2ed===_0x4c17ff)break;else _0x20d452['push'](_0x20d452['shift']());}catch(_0x44c1d6){_0x20d452['push'](_0x20d452['shift']());}}}(a273_0x150d,0xe4f29));import{VERSION}from'../generated/build-info.js';export function getCliVersion(){return VERSION;}function a273_0x150d(){var _0x44b6a7=['4641680KRUrfl','88438qhZmMI','7jKoWDZ','1635438imUsYA','4811420xQjEFf','2188914BLqBZk','1340628dIXCEW','2606576CrGHft'];a273_0x150d=function(){return _0x44b6a7;};return a273_0x150d();}
@@ -1 +1 @@
1
- function a266_0x1720(){var _0x791250=['27320uKxKnv','914373JRMncX','749Wjgoud','41526uFJAmm','84PrLqOF','9979NFAtnA','716828nxsvYu','283002QovHPY','5697790PSwztx','40aeNGLM'];a266_0x1720=function(){return _0x791250;};return a266_0x1720();}function a266_0x309a(_0x233fff,_0xf7f88b){_0x233fff=_0x233fff-0x1ab;var _0x17207f=a266_0x1720();var _0x309a8b=_0x17207f[_0x233fff];return _0x309a8b;}(function(_0x391a15,_0x3060d5){var _0x5689f6=a266_0x309a,_0x1ba421=_0x391a15();while(!![]){try{var _0x239b14=-parseInt(_0x5689f6(0x1b2))/0x1*(parseInt(_0x5689f6(0x1b1))/0x2)+parseInt(_0x5689f6(0x1b0))/0x3+parseInt(_0x5689f6(0x1b3))/0x4+-parseInt(_0x5689f6(0x1ac))/0x5*(parseInt(_0x5689f6(0x1b4))/0x6)+parseInt(_0x5689f6(0x1af))/0x7*(parseInt(_0x5689f6(0x1ad))/0x8)+-parseInt(_0x5689f6(0x1ae))/0x9+parseInt(_0x5689f6(0x1ab))/0xa;if(_0x239b14===_0x3060d5)break;else _0x1ba421['push'](_0x1ba421['shift']());}catch(_0x5b318a){_0x1ba421['push'](_0x1ba421['shift']());}}}(a266_0x1720,0x38326));import{setActiveCookie,clearActiveCookie}from'../core/api-client.js';export async function withActiveCookie(_0x5bfe14,_0x1ef9f9){setActiveCookie(_0x5bfe14);try{return await _0x1ef9f9();}finally{clearActiveCookie();}}
1
+ (function(_0x2264c5,_0x3730cb){var _0x2c0ae4=a274_0x3c1b,_0x1aa199=_0x2264c5();while(!![]){try{var _0x319dfa=parseInt(_0x2c0ae4(0x174))/0x1+parseInt(_0x2c0ae4(0x16f))/0x2*(parseInt(_0x2c0ae4(0x16c))/0x3)+parseInt(_0x2c0ae4(0x169))/0x4*(parseInt(_0x2c0ae4(0x16a))/0x5)+parseInt(_0x2c0ae4(0x16b))/0x6*(parseInt(_0x2c0ae4(0x16e))/0x7)+-parseInt(_0x2c0ae4(0x173))/0x8+parseInt(_0x2c0ae4(0x172))/0x9*(parseInt(_0x2c0ae4(0x171))/0xa)+parseInt(_0x2c0ae4(0x16d))/0xb*(-parseInt(_0x2c0ae4(0x170))/0xc);if(_0x319dfa===_0x3730cb)break;else _0x1aa199['push'](_0x1aa199['shift']());}catch(_0x570636){_0x1aa199['push'](_0x1aa199['shift']());}}}(a274_0x4d6e,0x9a6e8));function a274_0x3c1b(_0x302978,_0x54285d){_0x302978=_0x302978-0x169;var _0x4d6ee7=a274_0x4d6e();var _0x3c1bbf=_0x4d6ee7[_0x302978];return _0x3c1bbf;}import{setActiveCookie,clearActiveCookie}from'../core/api-client.js';function a274_0x4d6e(){var _0x19a668=['251988cWuWrQ','2556340kpgBew','18GpTIDk','7922464TKDWAj','282440nqXRNe','4hnZyUp','1840565FIjoBv','1322718ZKuexP','4203aXcWyd','638Wcbacy','28zMuAEd','1138lIsGRf'];a274_0x4d6e=function(){return _0x19a668;};return a274_0x4d6e();}export async function withActiveCookie(_0x5b281d,_0x23bdb8){setActiveCookie(_0x5b281d);try{return await _0x23bdb8();}finally{clearActiveCookie();}}
@@ -1 +1 @@
1
- function a267_0x1b63(_0x34a293,_0x24d6d2){_0x34a293=_0x34a293-0xde;var _0x82fd20=a267_0x82fd();var _0x1b63d9=_0x82fd20[_0x34a293];return _0x1b63d9;}(function(_0x4ff643,_0x178583){var _0x16e168=a267_0x1b63,_0x237d7e=_0x4ff643();while(!![]){try{var _0x3e9da1=-parseInt(_0x16e168(0xe6))/0x1*(parseInt(_0x16e168(0xe0))/0x2)+parseInt(_0x16e168(0xe1))/0x3+-parseInt(_0x16e168(0xdf))/0x4*(-parseInt(_0x16e168(0xe5))/0x5)+-parseInt(_0x16e168(0xde))/0x6+-parseInt(_0x16e168(0xe2))/0x7+-parseInt(_0x16e168(0xe3))/0x8+parseInt(_0x16e168(0xe4))/0x9;if(_0x3e9da1===_0x178583)break;else _0x237d7e['push'](_0x237d7e['shift']());}catch(_0x2387e8){_0x237d7e['push'](_0x237d7e['shift']());}}}(a267_0x82fd,0x2de62));export function writeCliSideChannelLine(_0x186d7f){process['stderr']['write'](_0x186d7f+'\x0a');}function a267_0x82fd(){var _0xe98d7d=['925050uqTtyk','2556624WAoXQG','5853879SrPNXj','155ctqnVR','107129XYcMaL','1788744qHjKuW','30844rcQQWq','6yIbzbL','1109307xJWQba'];a267_0x82fd=function(){return _0xe98d7d;};return a267_0x82fd();}
1
+ function a275_0x2c2e(_0x3347bf,_0x1dcfb6){_0x3347bf=_0x3347bf-0x1ac;var _0x560c6b=a275_0x560c();var _0x2c2e2e=_0x560c6b[_0x3347bf];return _0x2c2e2e;}function a275_0x560c(){var _0x66e11b=['8dpOmOq','3097945ivtcAc','1415224CFFpRl','170386CFlALA','1945644afyCTq','5740794nbkPYO','1104234eswqgB','write','stderr','1935122HuXbFH'];a275_0x560c=function(){return _0x66e11b;};return a275_0x560c();}(function(_0x28d712,_0x512d97){var _0x2cac66=a275_0x2c2e,_0x22ca40=_0x28d712();while(!![]){try{var _0x3c29f3=parseInt(_0x2cac66(0x1b4))/0x1*(-parseInt(_0x2cac66(0x1ad))/0x2)+parseInt(_0x2cac66(0x1b0))/0x3+parseInt(_0x2cac66(0x1ae))/0x4+-parseInt(_0x2cac66(0x1b5))/0x5+parseInt(_0x2cac66(0x1af))/0x6+parseInt(_0x2cac66(0x1b3))/0x7+-parseInt(_0x2cac66(0x1ac))/0x8;if(_0x3c29f3===_0x512d97)break;else _0x22ca40['push'](_0x22ca40['shift']());}catch(_0x15faea){_0x22ca40['push'](_0x22ca40['shift']());}}}(a275_0x560c,0x94da2));export function writeCliSideChannelLine(_0x104d43){var _0x26fe1d=a275_0x2c2e;process[_0x26fe1d(0x1b2)][_0x26fe1d(0x1b1)](_0x104d43+'\x0a');}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lovrabet/rabetbase-cli",
3
- "version": "2.3.15-beta.2",
3
+ "version": "2.3.16-beta.1",
4
4
  "description": "Developer CLI for Lovrabet apps, datasets, pages, SQL, BFF, database connections, skills, and AI agent workflows.",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "keywords": [