@lovrabet/rabetbase-cli 2.3.5-beta.1 → 2.3.6-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 (239) hide show
  1. package/lib/api/api-doc.js +1 -1
  2. package/lib/api/fetch-model-list.js +1 -1
  3. package/lib/api/generate-api-file.js +1 -1
  4. package/lib/auth/auth-server-ui.js +1 -1
  5. package/lib/auth/auth-server.js +1 -1
  6. package/lib/auth/constant.js +1 -1
  7. package/lib/auth/get-cookie.js +1 -1
  8. package/lib/auth/get-session-user.js +1 -1
  9. package/lib/auth/is-session-valid.js +1 -1
  10. package/lib/auth/login-success-html.js +1 -1
  11. package/lib/auth/logout.js +1 -1
  12. package/lib/cli-flags.js +1 -1
  13. package/lib/cli.js +1 -1
  14. package/lib/commands/api/generate.js +1 -1
  15. package/lib/commands/api/index.js +1 -1
  16. package/lib/commands/api/list.js +1 -1
  17. package/lib/commands/api/pull.js +1 -1
  18. package/lib/commands/api/shared.js +1 -1
  19. package/lib/commands/app/add.js +1 -1
  20. package/lib/commands/app/index.js +1 -1
  21. package/lib/commands/app/list.js +1 -1
  22. package/lib/commands/app/remote-directory.js +1 -1
  23. package/lib/commands/app/remove.js +1 -1
  24. package/lib/commands/app/shared.js +1 -1
  25. package/lib/commands/app-config/delete.js +1 -1
  26. package/lib/commands/app-config/get.js +1 -1
  27. package/lib/commands/app-config/index.js +1 -1
  28. package/lib/commands/app-config/list.js +1 -1
  29. package/lib/commands/app-config/set.js +1 -1
  30. package/lib/commands/app-config/shared.js +1 -1
  31. package/lib/commands/auth/index.js +1 -1
  32. package/lib/commands/bff/create.js +1 -1
  33. package/lib/commands/bff/delete.js +1 -1
  34. package/lib/commands/bff/detail.js +1 -1
  35. package/lib/commands/bff/index.js +1 -1
  36. package/lib/commands/bff/list.js +1 -1
  37. package/lib/commands/bff/pull.js +1 -1
  38. package/lib/commands/bff/push.js +1 -1
  39. package/lib/commands/bff/status.js +1 -1
  40. package/lib/commands/cli-skill/index.js +1 -1
  41. package/lib/commands/cli-update.js +1 -1
  42. package/lib/commands/codegen/index.js +1 -1
  43. package/lib/commands/codegen/sdk.js +1 -1
  44. package/lib/commands/codegen/sql.js +1 -1
  45. package/lib/commands/common/app-registry.js +1 -1
  46. package/lib/commands/common/app-selector.js +1 -1
  47. package/lib/commands/common/dry-run.js +1 -1
  48. package/lib/commands/common/flags.js +1 -1
  49. package/lib/commands/common/validate.js +1 -1
  50. package/lib/commands/config/get.js +1 -1
  51. package/lib/commands/config/index.js +1 -1
  52. package/lib/commands/config/list.js +1 -1
  53. package/lib/commands/config/set.js +1 -1
  54. package/lib/commands/config/shared.js +1 -1
  55. package/lib/commands/data/filter.js +1 -1
  56. package/lib/commands/data/getOne.js +1 -1
  57. package/lib/commands/data/index.js +1 -1
  58. package/lib/commands/data/shared.js +1 -1
  59. package/lib/commands/dataset/business-group-update.js +1 -1
  60. package/lib/commands/dataset/capability.js +1 -1
  61. package/lib/commands/dataset/delete.js +1 -1
  62. package/lib/commands/dataset/detail.js +1 -1
  63. package/lib/commands/dataset/extend-update.js +1 -1
  64. package/lib/commands/dataset/field-update.js +1 -1
  65. package/lib/commands/dataset/generate.js +1 -1
  66. package/lib/commands/dataset/index.js +1 -1
  67. package/lib/commands/dataset/list.js +1 -1
  68. package/lib/commands/dataset/operations.js +1 -1
  69. package/lib/commands/dataset/relation-audit.js +1 -1
  70. package/lib/commands/dataset/relation-create.js +1 -1
  71. package/lib/commands/dataset/relation-delete.js +1 -1
  72. package/lib/commands/dataset/relation-shared.js +1 -1
  73. package/lib/commands/dataset/relation-update.js +1 -1
  74. package/lib/commands/dataset/relations.js +1 -1
  75. package/lib/commands/dataset/rename.js +1 -1
  76. package/lib/commands/dataset/restore.js +1 -1
  77. package/lib/commands/db/analyze-cancel.js +1 -1
  78. package/lib/commands/db/analyze-start.js +1 -1
  79. package/lib/commands/db/analyze-status.js +1 -1
  80. package/lib/commands/db/create.js +1 -1
  81. package/lib/commands/db/delete.js +1 -1
  82. package/lib/commands/db/detail.js +1 -1
  83. package/lib/commands/db/diff.js +1 -1
  84. package/lib/commands/db/index.js +1 -1
  85. package/lib/commands/db/list.js +1 -1
  86. package/lib/commands/db/shared.js +1 -1
  87. package/lib/commands/db/tables.js +1 -1
  88. package/lib/commands/db/test.js +1 -1
  89. package/lib/commands/db/update.js +1 -1
  90. package/lib/commands/doctor.js +1 -1
  91. package/lib/commands/init/index.js +1 -1
  92. package/lib/commands/issue/index.js +1 -1
  93. package/lib/commands/issue/nudge.js +1 -1
  94. package/lib/commands/issue/report.js +1 -1
  95. package/lib/commands/issue/shared.js +1 -1
  96. package/lib/commands/logs/index.js +1 -1
  97. package/lib/commands/menu/index.js +1 -1
  98. package/lib/commands/menu/list.js +1 -1
  99. package/lib/commands/menu/shared/compare-table.js +1 -1
  100. package/lib/commands/menu/shared/index.js +1 -1
  101. package/lib/commands/menu/shared/inquirer.js +1 -1
  102. package/lib/commands/menu/shared/local-pages.js +1 -1
  103. package/lib/commands/menu/shared/logic.js +1 -1
  104. package/lib/commands/menu/shared/service.js +1 -1
  105. package/lib/commands/menu/shared/sync-core.js +1 -1
  106. package/lib/commands/menu/shared/update-core.js +1 -1
  107. package/lib/commands/menu/shared/valid-url.js +1 -1
  108. package/lib/commands/menu/sync.js +1 -1
  109. package/lib/commands/menu/update.js +1 -1
  110. package/lib/commands/page/generate-start.js +1 -1
  111. package/lib/commands/page/generate-status.js +1 -1
  112. package/lib/commands/page/index.js +1 -1
  113. package/lib/commands/page/pull.js +1 -1
  114. package/lib/commands/page/push.js +1 -1
  115. package/lib/commands/page/relation-audit.js +1 -1
  116. package/lib/commands/page/shared.js +1 -1
  117. package/lib/commands/page/standard-page-status.js +1 -1
  118. package/lib/commands/page/sync.js +1 -1
  119. package/lib/commands/permit/index.js +1 -1
  120. package/lib/commands/permit/page-get.js +1 -1
  121. package/lib/commands/permit/page-set.js +1 -1
  122. package/lib/commands/permit/role-apis-set.js +1 -1
  123. package/lib/commands/permit/role-menus-set.js +1 -1
  124. package/lib/commands/permit/role-menus.js +1 -1
  125. package/lib/commands/permit/shared.js +1 -1
  126. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  127. package/lib/commands/project/create/format-elapsed.js +1 -1
  128. package/lib/commands/project/create/main.js +1 -1
  129. package/lib/commands/project/create/non-interactive.js +1 -1
  130. package/lib/commands/project/create/project-template-path.js +1 -1
  131. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  132. package/lib/commands/project/create/use-format-code.js +1 -1
  133. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  134. package/lib/commands/project/index.js +1 -1
  135. package/lib/commands/project/init.js +1 -1
  136. package/lib/commands/project/upgrade.js +1 -1
  137. package/lib/commands/registry.js +1 -1
  138. package/lib/commands/role/create.js +1 -1
  139. package/lib/commands/role/delete.js +1 -1
  140. package/lib/commands/role/detail.js +1 -1
  141. package/lib/commands/role/index.js +1 -1
  142. package/lib/commands/role/list.js +1 -1
  143. package/lib/commands/role/shared.js +1 -1
  144. package/lib/commands/role/update.js +1 -1
  145. package/lib/commands/role/user-add.js +1 -1
  146. package/lib/commands/role/user-remove.js +1 -1
  147. package/lib/commands/role/user-resolve.js +1 -1
  148. package/lib/commands/run/index.js +1 -1
  149. package/lib/commands/schema.js +1 -1
  150. package/lib/commands/sql/create.js +1 -1
  151. package/lib/commands/sql/delete.js +1 -1
  152. package/lib/commands/sql/detail.js +1 -1
  153. package/lib/commands/sql/exec.js +1 -1
  154. package/lib/commands/sql/index.js +1 -1
  155. package/lib/commands/sql/list.js +1 -1
  156. package/lib/commands/sql/pull.js +1 -1
  157. package/lib/commands/sql/push.js +1 -1
  158. package/lib/commands/sql/save.js +1 -1
  159. package/lib/commands/sql/shared.js +1 -1
  160. package/lib/commands/sql/status.js +1 -1
  161. package/lib/commands/sql/validate.js +1 -1
  162. package/lib/commands/workspace/add.js +1 -1
  163. package/lib/commands/workspace/index.js +1 -1
  164. package/lib/commands/workspace/remove.js +1 -1
  165. package/lib/config/schema.js +1 -1
  166. package/lib/constant/cdn.js +1 -1
  167. package/lib/constant/cli.js +1 -1
  168. package/lib/constant/defaults.js +1 -1
  169. package/lib/constant/domain.js +1 -1
  170. package/lib/constant/env.js +1 -1
  171. package/lib/constant/output.js +1 -1
  172. package/lib/constant/paths.js +1 -1
  173. package/lib/constant/risk.js +1 -1
  174. package/lib/context/app-resolver.js +1 -1
  175. package/lib/context/auth-resolver.js +1 -1
  176. package/lib/context/config-loader.js +1 -1
  177. package/lib/context.js +1 -1
  178. package/lib/core/alias-resolver.js +1 -1
  179. package/lib/core/api-client.js +1 -1
  180. package/lib/core/bff/config.js +1 -1
  181. package/lib/core/bff/file-system.js +1 -1
  182. package/lib/core/bff/hash.js +1 -1
  183. package/lib/core/bff/lock.js +1 -1
  184. package/lib/core/bff/utils.js +1 -1
  185. package/lib/core/db-resolver.js +1 -1
  186. package/lib/core/page/file-system.js +1 -1
  187. package/lib/core/page/hash.js +1 -1
  188. package/lib/core/page/lock.js +1 -1
  189. package/lib/core/sql-sync/config.js +1 -1
  190. package/lib/core/sql-sync/file-system.js +1 -1
  191. package/lib/core/sql-sync/hash.js +1 -1
  192. package/lib/core/sql-sync/lock.js +1 -1
  193. package/lib/core/sql-sync/utils.js +1 -1
  194. package/lib/core/sql-validator.js +1 -1
  195. package/lib/errors.js +1 -1
  196. package/lib/framework/build-all-flags.js +1 -1
  197. package/lib/framework/flags.js +1 -1
  198. package/lib/framework/help.js +1 -1
  199. package/lib/framework/index.js +1 -1
  200. package/lib/framework/output.js +1 -1
  201. package/lib/framework/response.js +1 -1
  202. package/lib/framework/runner-alias.js +1 -1
  203. package/lib/framework/runner.js +1 -1
  204. package/lib/framework/schema-export.js +1 -1
  205. package/lib/framework/types.js +1 -1
  206. package/lib/generated/build-info.js +1 -1
  207. package/lib/help.js +1 -1
  208. package/lib/skills/main.js +1 -1
  209. package/lib/skills/npx-skills-add.js +1 -1
  210. package/lib/telemetry/cli-command-trace.js +1 -1
  211. package/lib/telemetry/cli-help-trace.js +1 -1
  212. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  213. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  214. package/lib/telemetry/send-cli-trace-log.js +1 -1
  215. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  216. package/lib/utils/ai_config.js +1 -1
  217. package/lib/utils/apply-jq-filter.js +1 -1
  218. package/lib/utils/cdn-config.js +1 -1
  219. package/lib/utils/check-sdk-version.js +1 -1
  220. package/lib/utils/cli-version-check.js +1 -1
  221. package/lib/utils/cli-version-policy.js +1 -1
  222. package/lib/utils/config.js +1 -1
  223. package/lib/utils/copy-directory.js +1 -1
  224. package/lib/utils/entity-with-id.js +1 -1
  225. package/lib/utils/file-utils.js +1 -1
  226. package/lib/utils/guides-cdn.js +1 -1
  227. package/lib/utils/http-client.js +1 -1
  228. package/lib/utils/is-non-interactive.js +1 -1
  229. package/lib/utils/logger.js +1 -1
  230. package/lib/utils/params.js +1 -1
  231. package/lib/utils/platform.js +1 -1
  232. package/lib/utils/rules-cdn.js +1 -1
  233. package/lib/utils/sleep.js +1 -1
  234. package/lib/utils/template-replacer.js +1 -1
  235. package/lib/utils/update-notice.js +1 -1
  236. package/lib/utils/version.js +1 -1
  237. package/lib/utils/with-active-cookie.js +1 -1
  238. package/lib/utils/write-cli-side-channel.js +1 -1
  239. package/package.json +1 -1
@@ -1 +1 @@
1
- (function(_0x4dd4ea,_0x107a68){const _0x243aa4=a229_0x31f7,_0x4f96d3=_0x4dd4ea();while(!![]){try{const _0x46c9d6=parseInt(_0x243aa4(0xa6))/0x1+parseInt(_0x243aa4(0xa2))/0x2*(-parseInt(_0x243aa4(0xa8))/0x3)+-parseInt(_0x243aa4(0xa1))/0x4+-parseInt(_0x243aa4(0xa4))/0x5+parseInt(_0x243aa4(0xa9))/0x6+-parseInt(_0x243aa4(0xa7))/0x7*(parseInt(_0x243aa4(0xa3))/0x8)+parseInt(_0x243aa4(0xa5))/0x9;if(_0x46c9d6===_0x107a68)break;else _0x4f96d3['push'](_0x4f96d3['shift']());}catch(_0x4aa2a8){_0x4f96d3['push'](_0x4f96d3['shift']());}}}(a229_0x5dc2,0xe0c19));function a229_0x31f7(_0x59a8a4,_0x479dd8){_0x59a8a4=_0x59a8a4-0xa1;const _0x5dc218=a229_0x5dc2();let _0x31f7a8=_0x5dc218[_0x59a8a4];return _0x31f7a8;}import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';import{join}from'node:path';export async function copyDir(_0x16117f,_0x5672ea){const _0x5b687d=a229_0x31f7,_0x479d32=statSync(_0x16117f);if(_0x479d32[_0x5b687d(0xaa)]()){!existsSync(_0x5672ea)&&mkdirSync(_0x5672ea,{'recursive':!![]});const _0x162718=readdirSync(_0x16117f);for(const _0x3a5fe3 of _0x162718){await copyDir(join(_0x16117f,_0x3a5fe3),join(_0x5672ea,_0x3a5fe3));}}else copyFileSync(_0x16117f,_0x5672ea);}function a229_0x5dc2(){const _0x1d20cc=['2fXGapM','8JWWWXS','8369020BdIBFe','27030411qoPLAV','524009sPzCXu','3100958xCggFe','1273092mbosuN','234714ICBHjK','isDirectory','418976DZlffV'];a229_0x5dc2=function(){return _0x1d20cc;};return a229_0x5dc2();}export function ensureDir(_0x4db26d){!existsSync(_0x4db26d)&&mkdirSync(_0x4db26d,{'recursive':!![]});}export function pathExists(_0x5aecef){return existsSync(_0x5aecef);}
1
+ function a229_0x107a(_0xf48208,_0x401c39){_0xf48208=_0xf48208-0x124;const _0x4c301c=a229_0x4c30();let _0x107ab2=_0x4c301c[_0xf48208];return _0x107ab2;}(function(_0x331f21,_0x1d08a3){const _0x43ba4d=a229_0x107a,_0x2ca340=_0x331f21();while(!![]){try{const _0x2e500d=-parseInt(_0x43ba4d(0x127))/0x1+parseInt(_0x43ba4d(0x126))/0x2+-parseInt(_0x43ba4d(0x12c))/0x3+parseInt(_0x43ba4d(0x129))/0x4*(parseInt(_0x43ba4d(0x128))/0x5)+-parseInt(_0x43ba4d(0x12a))/0x6*(-parseInt(_0x43ba4d(0x12b))/0x7)+parseInt(_0x43ba4d(0x124))/0x8*(-parseInt(_0x43ba4d(0x125))/0x9)+parseInt(_0x43ba4d(0x12d))/0xa;if(_0x2e500d===_0x1d08a3)break;else _0x2ca340['push'](_0x2ca340['shift']());}catch(_0x31439b){_0x2ca340['push'](_0x2ca340['shift']());}}}(a229_0x4c30,0xcaf32));import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';import{join}from'node:path';export async function copyDir(_0x2c1a78,_0x2c57ba){const _0x3c5364=statSync(_0x2c1a78);if(_0x3c5364['isDirectory']()){!existsSync(_0x2c57ba)&&mkdirSync(_0x2c57ba,{'recursive':!![]});const _0x2a45f8=readdirSync(_0x2c1a78);for(const _0x312b4e of _0x2a45f8){await copyDir(join(_0x2c1a78,_0x312b4e),join(_0x2c57ba,_0x312b4e));}}else copyFileSync(_0x2c1a78,_0x2c57ba);}export function ensureDir(_0x2d11cd){!existsSync(_0x2d11cd)&&mkdirSync(_0x2d11cd,{'recursive':!![]});}function a229_0x4c30(){const _0x59de13=['7861MjfJBO','2392410vSGWEu','19426760JZKjuz','4191416dqRjKm','18CPzqan','457316Rjhprz','782642kJPuDQ','907480IuarBn','12NFxAcE','3972DDsJvK'];a229_0x4c30=function(){return _0x59de13;};return a229_0x4c30();}export function pathExists(_0x17bff9){return existsSync(_0x17bff9);}
@@ -1 +1 @@
1
- const a230_0x595a25=a230_0x36f6;(function(_0x2e7598,_0x452905){const _0xc7fb72=a230_0x36f6,_0x5a852d=_0x2e7598();while(!![]){try{const _0x190766=-parseInt(_0xc7fb72(0x181))/0x1+-parseInt(_0xc7fb72(0x191))/0x2*(parseInt(_0xc7fb72(0x189))/0x3)+parseInt(_0xc7fb72(0x18c))/0x4*(parseInt(_0xc7fb72(0x17d))/0x5)+parseInt(_0xc7fb72(0x18e))/0x6*(-parseInt(_0xc7fb72(0x175))/0x7)+-parseInt(_0xc7fb72(0x17b))/0x8*(-parseInt(_0xc7fb72(0x180))/0x9)+parseInt(_0xc7fb72(0x177))/0xa+parseInt(_0xc7fb72(0x178))/0xb;if(_0x190766===_0x452905)break;else _0x5a852d['push'](_0x5a852d['shift']());}catch(_0x14df5d){_0x5a852d['push'](_0x5a852d['shift']());}}}(a230_0x4767,0xce3ae));import{mkdirSync,writeFileSync}from'node:fs';import{dirname,join}from'node:path';import{homedir}from'node:os';function a230_0x36f6(_0x128dfc,_0x43b93e){_0x128dfc=_0x128dfc-0x174;const _0x4767a0=a230_0x4767();let _0x36f62d=_0x4767a0[_0x128dfc];return _0x36f62d;}import{getTemplateBaseUrl}from'../utils/config.js';function a230_0x4767(){const _0x92fd94=['cache','.md','/skills/guides.json','.lovrabet','join','extendContent','\x0a\x0a>更新时间:','974583PGlFxL','title','replace','524oeeJGN','push','4314WdCMzH','keys','skillTemplate','4EmapvT','content','map','length','utf-8','.lovrabet/skill/guides','entries','object','path','12369nGXXWI','application/json','12200970CShpEl','11041173DTLIlJ','CDN\x20数据中缺少\x20skillTemplate','trimEnd','280OfvvWB','CDN\x20返回数据格式错误','1545ADDhec','guides','lastUpdated','230247IXOztp','394811XmWXNe'];a230_0x4767=function(){return _0x92fd94;};return a230_0x4767();}function getGuidesCdnUrl(){const _0x373ebb=a230_0x36f6,_0x4040db=getTemplateBaseUrl();return _0x4040db+_0x373ebb(0x184);}const CACHE_DIR=join(homedir(),a230_0x595a25(0x185),a230_0x595a25(0x182));export async function fetchGuidesFromCDN(){const _0x494c5a=a230_0x595a25,_0x4b8396=getGuidesCdnUrl(),_0x473655=await fetch(_0x4b8396,{'headers':{'Accept':_0x494c5a(0x176)}});if(!_0x473655['ok'])throw new Error('CDN\x20请求失败:\x20'+_0x473655['status']+'\x20'+_0x473655['statusText']);const _0x559653=await _0x473655['json']();if(!_0x559653[_0x494c5a(0x17e)]||typeof _0x559653[_0x494c5a(0x17e)]!==_0x494c5a(0x198))throw new Error(_0x494c5a(0x17c));return _0x559653;}export function writeGuidesToProject(_0x3ac909,_0x4ffcbe,_0x52423f=a230_0x595a25(0x196),_0x4c6378){const _0x3e9d38=a230_0x595a25,_0x1df8a2=join(_0x4ffcbe,_0x52423f);mkdirSync(_0x1df8a2,{'recursive':!![]});for(const [_0x4e1a86,_0xcc4663]of Object[_0x3e9d38(0x197)](_0x3ac909[_0x3e9d38(0x17e)])){let _0x25430f=_0xcc4663[_0x3e9d38(0x192)];_0xcc4663[_0x3e9d38(0x17f)]&&(_0x25430f=appendUpdateTime(_0x25430f,_0xcc4663[_0x3e9d38(0x17f)])),writeFileSync(join(_0x1df8a2,_0x4e1a86+_0x3e9d38(0x183)),_0x25430f,'utf-8');}}export function appendUpdateTime(_0x407f7a,_0xb71d4a){const _0x14eadc=a230_0x595a25;return _0x407f7a=_0x407f7a['replace'](/\n*>更新时间:.*$/m,''),_0x407f7a[_0x14eadc(0x17a)]()+(_0x14eadc(0x188)+_0xb71d4a);}export function getSkillTemplate(_0x30c8dd){const _0x2766d7=a230_0x595a25;return _0x30c8dd[_0x2766d7(0x190)]?.[_0x2766d7(0x192)]||'';}export function appendExtendContents(_0x336981,_0x71ef1a,_0x17a626){const _0x1cc105=a230_0x595a25,_0x1c2e33=[];for(const [,_0xd38537]of Object[_0x1cc105(0x197)](_0x71ef1a[_0x1cc105(0x17e)])){_0xd38537['extendContent']&&_0x1c2e33[_0x1cc105(0x18d)](_0xd38537[_0x1cc105(0x187)][_0x1cc105(0x17a)]());}if(_0x1c2e33['length']===0x0)return _0x336981;return _0x336981[_0x1cc105(0x17a)]()+'\x0a\x0a'+_0x1c2e33[_0x1cc105(0x186)]('\x0a\x0a')+'\x0a';}export function writeSkillFile(_0x3c090a,_0x2d86ca,_0xb6c050){const _0x121fe9=a230_0x595a25,_0x32a660=getSkillTemplate(_0x3c090a);if(!_0x32a660)throw new Error(_0x121fe9(0x179));const _0x3b485b=dirname(_0x2d86ca);mkdirSync(_0x3b485b,{'recursive':!![]});let _0x337276=_0x32a660[_0x121fe9(0x18b)](/\{\{IDE_NAME\}\}/g,_0xb6c050);_0x337276=appendExtendContents(_0x337276,_0x3c090a),_0x3c090a[_0x121fe9(0x190)]['lastUpdated']&&(_0x337276=appendUpdateTime(_0x337276,_0x3c090a['skillTemplate'][_0x121fe9(0x17f)])),writeFileSync(_0x2d86ca,_0x337276,_0x121fe9(0x195));}export async function installGuides(_0x59273e){const _0x2b6b30=a230_0x595a25,_0x48d802=await fetchGuidesFromCDN();return writeGuidesToProject(_0x48d802,_0x59273e),Object[_0x2b6b30(0x18f)](_0x48d802[_0x2b6b30(0x17e)])[_0x2b6b30(0x194)];}export function getGuidesSummary(_0x582b39){const _0x548b46=a230_0x595a25;return Object[_0x548b46(0x197)](_0x582b39[_0x548b46(0x17e)])[_0x548b46(0x193)](([_0x4f7afc,_0x428a8b])=>({'key':_0x4f7afc,'title':_0x428a8b[_0x548b46(0x18a)],'path':_0x428a8b[_0x548b46(0x174)]}));}
1
+ const a230_0x4518d6=a230_0x4d28;(function(_0x1f9a41,_0x2d4960){const _0x1702ea=a230_0x4d28,_0x1db1b9=_0x1f9a41();while(!![]){try{const _0x5ee991=-parseInt(_0x1702ea(0x1f0))/0x1+-parseInt(_0x1702ea(0x1ea))/0x2*(-parseInt(_0x1702ea(0x1e9))/0x3)+-parseInt(_0x1702ea(0x1fa))/0x4+parseInt(_0x1702ea(0x206))/0x5*(parseInt(_0x1702ea(0x1e8))/0x6)+-parseInt(_0x1702ea(0x1f4))/0x7*(parseInt(_0x1702ea(0x1f5))/0x8)+-parseInt(_0x1702ea(0x1ee))/0x9+parseInt(_0x1702ea(0x1ef))/0xa*(parseInt(_0x1702ea(0x1f3))/0xb);if(_0x5ee991===_0x2d4960)break;else _0x1db1b9['push'](_0x1db1b9['shift']());}catch(_0x3e3cc2){_0x1db1b9['push'](_0x1db1b9['shift']());}}}(a230_0x17c5,0xa524e));import{mkdirSync,writeFileSync}from'node:fs';import{dirname,join}from'node:path';function a230_0x4d28(_0x2f33c7,_0x3923be){_0x2f33c7=_0x2f33c7-0x1e6;const _0x17c590=a230_0x17c5();let _0x4d28d6=_0x17c590[_0x2f33c7];return _0x4d28d6;}import{homedir}from'node:os';import{getTemplateBaseUrl}from'../utils/config.js';function getGuidesCdnUrl(){const _0x534ee0=getTemplateBaseUrl();return _0x534ee0+'/skills/guides.json';}const CACHE_DIR=join(homedir(),a230_0x4518d6(0x1ec),a230_0x4518d6(0x201));export async function fetchGuidesFromCDN(){const _0xf34799=a230_0x4518d6,_0x3fab4b=getGuidesCdnUrl(),_0x295bfa=await fetch(_0x3fab4b,{'headers':{'Accept':_0xf34799(0x1f7)}});if(!_0x295bfa['ok'])throw new Error(_0xf34799(0x1f1)+_0x295bfa['status']+'\x20'+_0x295bfa[_0xf34799(0x1f2)]);const _0x26c659=await _0x295bfa[_0xf34799(0x1e7)]();if(!_0x26c659[_0xf34799(0x1ed)]||typeof _0x26c659[_0xf34799(0x1ed)]!=='object')throw new Error('CDN\x20返回数据格式错误');return _0x26c659;}export function writeGuidesToProject(_0x4b218c,_0xb633b5,_0x2dc1a1=a230_0x4518d6(0x1fb),_0x44910f){const _0x5833ad=a230_0x4518d6,_0x4128b4=join(_0xb633b5,_0x2dc1a1);mkdirSync(_0x4128b4,{'recursive':!![]});for(const [_0x1dbc00,_0x57714d]of Object[_0x5833ad(0x1ff)](_0x4b218c[_0x5833ad(0x1ed)])){let _0x41aed0=_0x57714d[_0x5833ad(0x1fd)];_0x57714d[_0x5833ad(0x1f6)]&&(_0x41aed0=appendUpdateTime(_0x41aed0,_0x57714d[_0x5833ad(0x1f6)])),writeFileSync(join(_0x4128b4,_0x1dbc00+_0x5833ad(0x203)),_0x41aed0,'utf-8');}}export function appendUpdateTime(_0xe1a3a4,_0x343e1d){const _0x3ffd2d=a230_0x4518d6;return _0xe1a3a4=_0xe1a3a4[_0x3ffd2d(0x1f9)](/\n*>更新时间:.*$/m,''),_0xe1a3a4[_0x3ffd2d(0x205)]()+('\x0a\x0a>更新时间:'+_0x343e1d);}export function getSkillTemplate(_0x5024af){const _0x3e99ce=a230_0x4518d6;return _0x5024af[_0x3e99ce(0x1e6)]?.[_0x3e99ce(0x1fd)]||'';}export function appendExtendContents(_0x31ba45,_0x84ecf6,_0x3dbb6f){const _0x2e6d91=a230_0x4518d6,_0xcedc3a=[];for(const [,_0x8c24a0]of Object[_0x2e6d91(0x1ff)](_0x84ecf6[_0x2e6d91(0x1ed)])){_0x8c24a0[_0x2e6d91(0x1fc)]&&_0xcedc3a[_0x2e6d91(0x204)](_0x8c24a0[_0x2e6d91(0x1fc)][_0x2e6d91(0x205)]());}if(_0xcedc3a[_0x2e6d91(0x1f8)]===0x0)return _0x31ba45;return _0x31ba45[_0x2e6d91(0x205)]()+'\x0a\x0a'+_0xcedc3a[_0x2e6d91(0x1fe)]('\x0a\x0a')+'\x0a';}function a230_0x17c5(){const _0x557bc5=['CDN\x20数据中缺少\x20skillTemplate','.lovrabet','guides','10532538LSjBrE','36371770JezleF','1311909qefvTG','CDN\x20请求失败:\x20','statusText','11yGwZyJ','595iAbCvQ','103152lTuAid','lastUpdated','application/json','length','replace','3902232KsnUPn','.lovrabet/skill/guides','extendContent','content','join','entries','map','cache','keys','.md','push','trimEnd','42615dEjTVq','skillTemplate','json','234CKUmyx','15JvyqBm','504238TLLOXy'];a230_0x17c5=function(){return _0x557bc5;};return a230_0x17c5();}export function writeSkillFile(_0x511d61,_0x5c8f8c,_0x2f7a83){const _0x410439=a230_0x4518d6,_0x24013e=getSkillTemplate(_0x511d61);if(!_0x24013e)throw new Error(_0x410439(0x1eb));const _0x4a0c1d=dirname(_0x5c8f8c);mkdirSync(_0x4a0c1d,{'recursive':!![]});let _0x14e207=_0x24013e[_0x410439(0x1f9)](/\{\{IDE_NAME\}\}/g,_0x2f7a83);_0x14e207=appendExtendContents(_0x14e207,_0x511d61),_0x511d61['skillTemplate'][_0x410439(0x1f6)]&&(_0x14e207=appendUpdateTime(_0x14e207,_0x511d61[_0x410439(0x1e6)][_0x410439(0x1f6)])),writeFileSync(_0x5c8f8c,_0x14e207,'utf-8');}export async function installGuides(_0x18feda){const _0x5e7980=a230_0x4518d6,_0xd05f60=await fetchGuidesFromCDN();return writeGuidesToProject(_0xd05f60,_0x18feda),Object[_0x5e7980(0x202)](_0xd05f60['guides'])[_0x5e7980(0x1f8)];}export function getGuidesSummary(_0x26eb69){const _0x2d9012=a230_0x4518d6;return Object[_0x2d9012(0x1ff)](_0x26eb69['guides'])[_0x2d9012(0x200)](([_0x5bda2c,_0x52c49f])=>({'key':_0x5bda2c,'title':_0x52c49f['title'],'path':_0x52c49f['path']}));}
@@ -1 +1 @@
1
- (function(_0x9ca57f,_0x2c669b){const _0x227333=a231_0x2bc5,_0x58d038=_0x9ca57f();while(!![]){try{const _0x4eca57=-parseInt(_0x227333(0x181))/0x1+parseInt(_0x227333(0x185))/0x2*(-parseInt(_0x227333(0x18e))/0x3)+-parseInt(_0x227333(0x17d))/0x4+parseInt(_0x227333(0x183))/0x5*(parseInt(_0x227333(0x194))/0x6)+parseInt(_0x227333(0x182))/0x7+-parseInt(_0x227333(0x17e))/0x8+parseInt(_0x227333(0x176))/0x9*(parseInt(_0x227333(0x177))/0xa);if(_0x4eca57===_0x2c669b)break;else _0x58d038['push'](_0x58d038['shift']());}catch(_0x4ca39a){_0x58d038['push'](_0x58d038['shift']());}}}(a231_0x53f0,0x258d4));function a231_0x2bc5(_0x37f15a,_0x483b19){_0x37f15a=_0x37f15a-0x176;const _0x53f022=a231_0x53f0();let _0x2bc5cb=_0x53f022[_0x37f15a];return _0x2bc5cb;}export async function httpRequest(_0x99e849,_0x351d08={}){const _0x1a0042=a231_0x2bc5,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0x351d08;let _0x5ce2bc=null;for(let _0x140eea=0x0;_0x140eea<=retries;_0x140eea++){try{const _0x2221b3=new AbortController(),_0x362456=setTimeout(()=>_0x2221b3[_0x1a0042(0x184)](),timeout),_0x35d231=await fetch(_0x99e849,{'headers':headers,'signal':_0x2221b3[_0x1a0042(0x17c)]});clearTimeout(_0x362456);let _0x2a4e51;const _0x196675=_0x35d231[_0x1a0042(0x188)][_0x1a0042(0x18f)](_0x1a0042(0x18b));return _0x196675?.[_0x1a0042(0x18c)](_0x1a0042(0x190))?_0x2a4e51=await _0x35d231['json']():_0x2a4e51=await _0x35d231[_0x1a0042(0x180)](),{'ok':_0x35d231['ok'],'status':_0x35d231['status'],'statusText':_0x35d231[_0x1a0042(0x187)],'data':_0x2a4e51,'headers':_0x35d231[_0x1a0042(0x188)],'url':_0x35d231[_0x1a0042(0x179)],'text':()=>_0x35d231[_0x1a0042(0x180)]()};}catch(_0x2d527b){_0x5ce2bc=_0x2d527b instanceof Error?_0x2d527b:new Error(String(_0x2d527b));if(_0x140eea===retries)break;if(shouldRetry(_0x2d527b)){console[_0x1a0042(0x18d)](_0x1a0042(0x193)+retryDelay+_0x1a0042(0x17f)+(_0x140eea+0x1)+_0x1a0042(0x189)),await sleep(retryDelay);continue;}else break;}}throw _0x5ce2bc||new Error(_0x1a0042(0x186));}function shouldRetry(_0x59bfb3){const _0x2f3bef=a231_0x2bc5;if(_0x59bfb3 instanceof Error){if(_0x59bfb3[_0x2f3bef(0x191)]==='AbortError')return![];if(_0x59bfb3[_0x2f3bef(0x191)]===_0x2f3bef(0x17a)&&_0x59bfb3[_0x2f3bef(0x178)][_0x2f3bef(0x18c)](_0x2f3bef(0x192)))return!![];if(_0x59bfb3[_0x2f3bef(0x178)][_0x2f3bef(0x18c)](_0x2f3bef(0x17b)))return!![];if(_0x59bfb3[_0x2f3bef(0x178)][_0x2f3bef(0x18c)](_0x2f3bef(0x18a)))return![];}return![];}function a231_0x53f0(){const _0x999e19=['*\x20请求失败,','6tAzwoi','2038923WpRsJR','20BwBkpc','message','url','TypeError','ECONNRESET','signal','837576uqJJpo','656264QiOVqV','ms\x20后进行第\x20','text','155620tKQMQV','1612954QwcFKn','767670dqEMWG','abort','1882GfaSmf','Request\x20failed','statusText','headers','\x20次重试...','ENOTFOUND','content-type','includes','log','753AjCzvj','get','application/json','name','fetch'];a231_0x53f0=function(){return _0x999e19;};return a231_0x53f0();}function sleep(_0x1537c4){return new Promise(_0x4314ef=>setTimeout(_0x4314ef,_0x1537c4));}export function validateUrl(_0x5b38dc){try{return new URL(_0x5b38dc),!![];}catch{return![];}}
1
+ (function(_0x23083b,_0x2e125c){const _0x183361=a231_0x25ea,_0x24af11=_0x23083b();while(!![]){try{const _0x38b358=-parseInt(_0x183361(0x168))/0x1*(-parseInt(_0x183361(0x150))/0x2)+parseInt(_0x183361(0x166))/0x3*(parseInt(_0x183361(0x14f))/0x4)+-parseInt(_0x183361(0x158))/0x5+-parseInt(_0x183361(0x15b))/0x6*(-parseInt(_0x183361(0x14d))/0x7)+parseInt(_0x183361(0x164))/0x8+parseInt(_0x183361(0x14e))/0x9*(-parseInt(_0x183361(0x15c))/0xa)+parseInt(_0x183361(0x15d))/0xb;if(_0x38b358===_0x2e125c)break;else _0x24af11['push'](_0x24af11['shift']());}catch(_0x19e140){_0x24af11['push'](_0x24af11['shift']());}}}(a231_0xefb8,0xb1b4b));function a231_0x25ea(_0x494b0e,_0x2be8ef){_0x494b0e=_0x494b0e-0x14c;const _0xefb84a=a231_0xefb8();let _0x25ea69=_0xefb84a[_0x494b0e];return _0x25ea69;}export async function httpRequest(_0x23d3cc,_0xf3a3f9={}){const _0x46c30b=a231_0x25ea,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0xf3a3f9;let _0x1f9f94=null;for(let _0x33fcff=0x0;_0x33fcff<=retries;_0x33fcff++){try{const _0x1b71b7=new AbortController(),_0x7a674=setTimeout(()=>_0x1b71b7[_0x46c30b(0x159)](),timeout),_0x253f4e=await fetch(_0x23d3cc,{'headers':headers,'signal':_0x1b71b7[_0x46c30b(0x163)]});clearTimeout(_0x7a674);let _0x1ddca7;const _0x2bb7bc=_0x253f4e['headers'][_0x46c30b(0x167)]('content-type');return _0x2bb7bc?.[_0x46c30b(0x152)](_0x46c30b(0x151))?_0x1ddca7=await _0x253f4e[_0x46c30b(0x15e)]():_0x1ddca7=await _0x253f4e['text'](),{'ok':_0x253f4e['ok'],'status':_0x253f4e[_0x46c30b(0x155)],'statusText':_0x253f4e['statusText'],'data':_0x1ddca7,'headers':_0x253f4e['headers'],'url':_0x253f4e['url'],'text':()=>_0x253f4e[_0x46c30b(0x153)]()};}catch(_0x47f75d){_0x1f9f94=_0x47f75d instanceof Error?_0x47f75d:new Error(String(_0x47f75d));if(_0x33fcff===retries)break;if(shouldRetry(_0x47f75d)){console[_0x46c30b(0x15a)](_0x46c30b(0x14c)+retryDelay+_0x46c30b(0x154)+(_0x33fcff+0x1)+_0x46c30b(0x15f)),await sleep(retryDelay);continue;}else break;}}throw _0x1f9f94||new Error(_0x46c30b(0x160));}function shouldRetry(_0x1ceaaf){const _0x41bafe=a231_0x25ea;if(_0x1ceaaf instanceof Error){if(_0x1ceaaf[_0x41bafe(0x165)]===_0x41bafe(0x156))return![];if(_0x1ceaaf[_0x41bafe(0x165)]==='TypeError'&&_0x1ceaaf[_0x41bafe(0x162)]['includes'](_0x41bafe(0x169)))return!![];if(_0x1ceaaf[_0x41bafe(0x162)]['includes'](_0x41bafe(0x157)))return!![];if(_0x1ceaaf['message']['includes'](_0x41bafe(0x161)))return![];}return![];}function a231_0xefb8(){const _0x295529=['ms\x20后进行第\x20','status','AbortError','ECONNRESET','6012340xwqkEA','abort','log','78tBuzEl','110CwXdFu','16512034ABmnWc','json','\x20次重试...','Request\x20failed','ENOTFOUND','message','signal','3864432zsdmQZ','name','236370ZMUGUl','get','6nPvOHg','fetch','*\x20请求失败,','104461crwFiB','1026936xLQcdM','20rLRGti','204466zOgWeI','application/json','includes','text'];a231_0xefb8=function(){return _0x295529;};return a231_0xefb8();}function sleep(_0x4b4c90){return new Promise(_0x22241b=>setTimeout(_0x22241b,_0x4b4c90));}export function validateUrl(_0x6feaf){try{return new URL(_0x6feaf),!![];}catch{return![];}}
@@ -1 +1 @@
1
- (function(_0x45d541,_0x2badad){const _0x317902=a232_0x33d8,_0x9f9c2b=_0x45d541();while(!![]){try{const _0x47d16b=parseInt(_0x317902(0x1c5))/0x1+parseInt(_0x317902(0x1be))/0x2*(-parseInt(_0x317902(0x1c8))/0x3)+parseInt(_0x317902(0x1c1))/0x4*(parseInt(_0x317902(0x1bd))/0x5)+parseInt(_0x317902(0x1b8))/0x6+parseInt(_0x317902(0x1bb))/0x7*(-parseInt(_0x317902(0x1bf))/0x8)+parseInt(_0x317902(0x1c4))/0x9+parseInt(_0x317902(0x1bc))/0xa*(-parseInt(_0x317902(0x1c6))/0xb);if(_0x47d16b===_0x2badad)break;else _0x9f9c2b['push'](_0x9f9c2b['shift']());}catch(_0x30d627){_0x9f9c2b['push'](_0x9f9c2b['shift']());}}}(a232_0x7698,0xcc3d9));function a232_0x33d8(_0x29d67a,_0x142c49){_0x29d67a=_0x29d67a-0x1b8;const _0x769857=a232_0x7698();let _0x33d8cf=_0x769857[_0x29d67a];return _0x33d8cf;}function env(_0x5cd892){return process.env[`RABETBASE_${_0x5cd892}`]||process.env[`LOVRABET_${_0x5cd892}`]||undefined;}export function isNonInteractive(_0x649e62){const _0x21c259=a232_0x33d8;return!!(_0x649e62[_0x21c259(0x1b9)]||_0x649e62['ci']||env('CI')===_0x21c259(0x1c0)||process.env.CI===_0x21c259(0x1c0)||!process[_0x21c259(0x1ba)][_0x21c259(0x1c7)]||!isStdinRawModeSupported());}function a232_0x7698(){const _0x50404f=['5759345ybJXMb','2fbhOVh','8882104DVIXPu','true','4IhsEIV','stdin','setRawMode','12829266aFuLaf','1656750HhZaJT','924oGOLcA','isTTY','4538871ezdBlY','3401040fKXUMM','nonInteractive','stdout','7ofljNg','159660BtpCiO'];a232_0x7698=function(){return _0x50404f;};return a232_0x7698();}function isStdinRawModeSupported(){const _0x11031c=a232_0x33d8;if(!process[_0x11031c(0x1c2)]['isTTY'])return![];try{const _0x578660=process[_0x11031c(0x1c2)]['isRaw'];return process[_0x11031c(0x1c2)][_0x11031c(0x1c3)](!![]),process[_0x11031c(0x1c2)][_0x11031c(0x1c3)](_0x578660??![]),!![];}catch{return![];}}
1
+ (function(_0xcd54b6,_0x780b00){const _0x1ad0a4=a232_0x4f6e,_0x5e8cda=_0xcd54b6();while(!![]){try{const _0x5b80d5=parseInt(_0x1ad0a4(0xc5))/0x1*(parseInt(_0x1ad0a4(0xbb))/0x2)+parseInt(_0x1ad0a4(0xbc))/0x3+-parseInt(_0x1ad0a4(0xb8))/0x4*(-parseInt(_0x1ad0a4(0xc3))/0x5)+parseInt(_0x1ad0a4(0xb7))/0x6*(parseInt(_0x1ad0a4(0xb9))/0x7)+parseInt(_0x1ad0a4(0xba))/0x8*(-parseInt(_0x1ad0a4(0xc1))/0x9)+-parseInt(_0x1ad0a4(0xb6))/0xa+-parseInt(_0x1ad0a4(0xb5))/0xb*(parseInt(_0x1ad0a4(0xc0))/0xc);if(_0x5b80d5===_0x780b00)break;else _0x5e8cda['push'](_0x5e8cda['shift']());}catch(_0x3ec38c){_0x5e8cda['push'](_0x5e8cda['shift']());}}}(a232_0x229d,0xdeba8));function env(_0x6a95d5){return process.env[`RABETBASE_${_0x6a95d5}`]||process.env[`LOVRABET_${_0x6a95d5}`]||undefined;}function a232_0x4f6e(_0x293e0c,_0x22518a){_0x293e0c=_0x293e0c-0xb5;const _0x229d9a=a232_0x229d();let _0x4f6e63=_0x229d9a[_0x293e0c];return _0x4f6e63;}export function isNonInteractive(_0x39e00d){const _0x32aaba=a232_0x4f6e;return!!(_0x39e00d['nonInteractive']||_0x39e00d['ci']||env('CI')===_0x32aaba(0xbf)||process.env.CI===_0x32aaba(0xbf)||!process[_0x32aaba(0xbd)][_0x32aaba(0xc2)]||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x27affb=a232_0x4f6e;if(!process[_0x27affb(0xbe)][_0x27affb(0xc2)])return![];try{const _0x55233d=process['stdin']['isRaw'];return process['stdin'][_0x27affb(0xc4)](!![]),process[_0x27affb(0xbe)][_0x27affb(0xc4)](_0x55233d??![]),!![];}catch{return![];}}function a232_0x229d(){const _0x4559a3=['true','1225824tiyRsx','9YClwbg','isTTY','15yRTywN','setRawMode','933EPtBYu','110TNZzgJ','17998400vZZufl','786GYfElr','2058316UFdQCC','43421GRgyct','10947280nkdBrE','2710BffhQP','4444563IBYnhI','stdout','stdin'];a232_0x229d=function(){return _0x4559a3;};return a232_0x229d();}
@@ -1 +1 @@
1
- const a233_0x2d7b56=a233_0x1e22;(function(_0x28447e,_0xf2c4fc){const _0x206235=a233_0x1e22,_0x51d264=_0x28447e();while(!![]){try{const _0x5cf240=-parseInt(_0x206235(0x215))/0x1*(-parseInt(_0x206235(0x1e1))/0x2)+-parseInt(_0x206235(0x1ee))/0x3*(-parseInt(_0x206235(0x208))/0x4)+-parseInt(_0x206235(0x211))/0x5*(parseInt(_0x206235(0x217))/0x6)+-parseInt(_0x206235(0x1f4))/0x7*(-parseInt(_0x206235(0x1e4))/0x8)+parseInt(_0x206235(0x1f7))/0x9+parseInt(_0x206235(0x213))/0xa*(parseInt(_0x206235(0x1e8))/0xb)+-parseInt(_0x206235(0x1ed))/0xc;if(_0x5cf240===_0xf2c4fc)break;else _0x51d264['push'](_0x51d264['shift']());}catch(_0x1dc67d){_0x51d264['push'](_0x51d264['shift']());}}}(a233_0x4ebe,0x19681));function a233_0x4ebe(){const _0x3648fd=['mkdirSync','1741nsGiLR','dirname','278406hOyMdV','utf8','74tQVsqe','join','split','8IXEcRh','clear','timestamp','clearLogs','456401lVsajn','.lovrabet.log','currentRawCommand','Failed\x20to\x20clear\x20logs:','map','2888088Lsyyci','12EiEGLK','parse','setLogPath','开始执行:\x20','existsSync','errors','504644iknosS','filter','error','975393gamAAk','blue','now','transports','green','warn','readFileSync','yellow','winstonLogger','initWinstonLogger','失败:\x20','addColors','format','logFilePath','info','red','success','160984mSImnC','rawCommand','details','setRawCommand','message','trim','logTask','完成:\x20','stringify','20MltUCP','combine','30tPTkwc'];a233_0x4ebe=function(){return _0x3648fd;};return a233_0x4ebe();}import a233_0x1f9a54 from'winston';import a233_0x8eceb5 from'node:fs';import a233_0x3fcfb9 from'node:path';class Logger{[a233_0x2d7b56(0x1ff)];[a233_0x2d7b56(0x204)];[a233_0x2d7b56(0x1ea)]='';constructor(){const _0x4a17a4=a233_0x2d7b56;this[_0x4a17a4(0x204)]='';}[a233_0x2d7b56(0x20b)](_0x4b9b8b){const _0x300339=a233_0x2d7b56;this[_0x300339(0x1ea)]=_0x4b9b8b;}['initWinstonLogger'](){const _0x5aa78c=a233_0x2d7b56,_0x4f3012=a233_0x3fcfb9[_0x5aa78c(0x216)](this[_0x5aa78c(0x204)]);!a233_0x8eceb5[_0x5aa78c(0x1f2)](_0x4f3012)&&a233_0x8eceb5[_0x5aa78c(0x214)](_0x4f3012,{'recursive':!![]});const _0x38d95f=a233_0x1f9a54[_0x5aa78c(0x203)][_0x5aa78c(0x212)](a233_0x1f9a54[_0x5aa78c(0x203)][_0x5aa78c(0x1e6)](),a233_0x1f9a54[_0x5aa78c(0x203)][_0x5aa78c(0x1f3)]({'stack':!![]}),a233_0x1f9a54[_0x5aa78c(0x203)]['printf'](_0x2613a2=>{const _0x31f018=_0x5aa78c,_0x121a03={'timestamp':_0x2613a2[_0x31f018(0x1e6)]||new Date()['toISOString'](),'level':_0x2613a2['level']||'info','command':_0x2613a2['command']||'unknown','rawCommand':_0x2613a2[_0x31f018(0x209)]||this[_0x31f018(0x1ea)]||undefined,'message':_0x2613a2[_0x31f018(0x20c)]||'','duration':_0x2613a2['duration']||undefined,'details':_0x2613a2[_0x31f018(0x20a)]||undefined};return JSON[_0x31f018(0x210)](_0x121a03);}));this[_0x5aa78c(0x1ff)]=a233_0x1f9a54['createLogger']({'level':_0x5aa78c(0x205),'format':_0x38d95f,'transports':[new a233_0x1f9a54[(_0x5aa78c(0x1fa))]['File']({'filename':this[_0x5aa78c(0x204)],'level':_0x5aa78c(0x205)})],'silent':![]}),a233_0x1f9a54[_0x5aa78c(0x202)]({'success':_0x5aa78c(0x1fb),'error':_0x5aa78c(0x206),'warn':_0x5aa78c(0x1fe),'info':_0x5aa78c(0x1f8)});}[a233_0x2d7b56(0x1f0)](_0x494a13){const _0x6953b8=a233_0x2d7b56;this['logFilePath']=a233_0x3fcfb9[_0x6953b8(0x1e2)](_0x494a13,_0x6953b8(0x1e9)),this['winstonLogger']&&this['winstonLogger'][_0x6953b8(0x1e5)](),this[_0x6953b8(0x200)]();}[a233_0x2d7b56(0x205)](_0x1b3727,_0x5c0c5d,_0x3d839d){const _0x47fe5b=a233_0x2d7b56;if(!this[_0x47fe5b(0x204)]||!this[_0x47fe5b(0x1ff)])return;this[_0x47fe5b(0x1ff)][_0x47fe5b(0x205)](_0x5c0c5d,{'command':_0x1b3727,'details':_0x3d839d});}[a233_0x2d7b56(0x207)](_0x5daa63,_0x182e95,_0x3918c3,_0x14abde){const _0x25038b=a233_0x2d7b56;if(!this[_0x25038b(0x204)]||!this['winstonLogger'])return;this[_0x25038b(0x1ff)]['log'](_0x25038b(0x205),_0x182e95,{'level':_0x25038b(0x207),'command':_0x5daa63,'duration':_0x3918c3,'details':_0x14abde});}[a233_0x2d7b56(0x1f6)](_0x57b9d8,_0x116e72,_0xd6094f){const _0x3f1cc4=a233_0x2d7b56;if(!this[_0x3f1cc4(0x204)]||!this[_0x3f1cc4(0x1ff)])return;this['winstonLogger'][_0x3f1cc4(0x1f6)](_0x116e72,{'command':_0x57b9d8,'details':_0xd6094f});}[a233_0x2d7b56(0x1fc)](_0x4634f8,_0x57f036,_0x105411){const _0x2ea28d=a233_0x2d7b56;if(!this[_0x2ea28d(0x204)]||!this[_0x2ea28d(0x1ff)])return;this[_0x2ea28d(0x1ff)][_0x2ea28d(0x1fc)](_0x57f036,{'command':_0x4634f8,'details':_0x105411});}async[a233_0x2d7b56(0x20e)](_0x37b0ab,_0x36c4fd,_0x6c535){const _0xb6be7a=a233_0x2d7b56,_0x14726b=Date[_0xb6be7a(0x1f9)]();this[_0xb6be7a(0x205)](_0x37b0ab,_0xb6be7a(0x1f1)+_0x36c4fd);try{const _0x5c67c8=await _0x6c535(),_0x537f5f=Date[_0xb6be7a(0x1f9)]()-_0x14726b;return this['success'](_0x37b0ab,_0xb6be7a(0x20f)+_0x36c4fd,_0x537f5f),_0x5c67c8;}catch(_0x221b91){const _0x3b1312=Date[_0xb6be7a(0x1f9)]()-_0x14726b;this[_0xb6be7a(0x1f6)](_0x37b0ab,_0xb6be7a(0x201)+_0x36c4fd,{'error':_0x221b91 instanceof Error?_0x221b91[_0xb6be7a(0x20c)]:String(_0x221b91),'duration':_0x3b1312});throw _0x221b91;}}['readLogs'](){const _0x5450d7=a233_0x2d7b56;try{if(!a233_0x8eceb5[_0x5450d7(0x1f2)](this[_0x5450d7(0x204)]))return[];const _0x564e0b=a233_0x8eceb5[_0x5450d7(0x1fd)](this[_0x5450d7(0x204)],'utf8');return _0x564e0b[_0x5450d7(0x1e3)]('\x0a')[_0x5450d7(0x1f5)](_0x42f40a=>_0x42f40a[_0x5450d7(0x20d)]())[_0x5450d7(0x1ec)](_0x3c8075=>JSON[_0x5450d7(0x1ef)](_0x3c8075));}catch(_0x19466f){return console[_0x5450d7(0x1fc)]('Failed\x20to\x20read\x20logs:',_0x19466f),[];}}[a233_0x2d7b56(0x1e7)](){const _0x5252e0=a233_0x2d7b56;try{a233_0x8eceb5[_0x5252e0(0x1f2)](this[_0x5252e0(0x204)])&&a233_0x8eceb5['writeFileSync'](this[_0x5252e0(0x204)],'',_0x5252e0(0x1e0));}catch(_0x28afca){console[_0x5252e0(0x1fc)](_0x5252e0(0x1eb),_0x28afca);}}['getWinstonInstance'](){const _0x11d197=a233_0x2d7b56;return this[_0x11d197(0x1ff)];}}function a233_0x1e22(_0x24310e,_0x4ef1e0){_0x24310e=_0x24310e-0x1e0;const _0x4ebed6=a233_0x4ebe();let _0x1e22d9=_0x4ebed6[_0x24310e];return _0x1e22d9;}export const logger=new Logger();
1
+ const a233_0x3e4bc0=a233_0x40ae;(function(_0x1ddfd8,_0x128bca){const _0x36a83d=a233_0x40ae,_0x3f8d92=_0x1ddfd8();while(!![]){try{const _0x4c6645=-parseInt(_0x36a83d(0x1aa))/0x1+-parseInt(_0x36a83d(0x1a7))/0x2+parseInt(_0x36a83d(0x198))/0x3+-parseInt(_0x36a83d(0x182))/0x4+parseInt(_0x36a83d(0x196))/0x5*(parseInt(_0x36a83d(0x190))/0x6)+-parseInt(_0x36a83d(0x1b0))/0x7*(-parseInt(_0x36a83d(0x18a))/0x8)+-parseInt(_0x36a83d(0x1a4))/0x9*(-parseInt(_0x36a83d(0x195))/0xa);if(_0x4c6645===_0x128bca)break;else _0x3f8d92['push'](_0x3f8d92['shift']());}catch(_0x2392b6){_0x3f8d92['push'](_0x3f8d92['shift']());}}}(a233_0x2478,0x7b91a));function a233_0x40ae(_0xfeae38,_0x332967){_0xfeae38=_0xfeae38-0x182;const _0x2478b8=a233_0x2478();let _0x40ae1e=_0x2478b8[_0xfeae38];return _0x40ae1e;}import a233_0x380b85 from'winston';import a233_0x21a8f7 from'node:fs';import a233_0x315b2f from'node:path';function a233_0x2478(){const _0x4f6a53=['details','9uhQlns','setLogPath','utf8','1320586TpXSBr','getWinstonInstance','logFilePath','461149HlzoVj','existsSync','duration','addColors','clearLogs','yellow','7wkOFKT','filter','success','writeFileSync','now','clear','Failed\x20to\x20read\x20logs:','createLogger','map','combine','2950336DeIJnb','Failed\x20to\x20clear\x20logs:','transports','开始执行:\x20','失败:\x20','format','info','split','5815880ocSAQL','message','green','errors','readFileSync','unknown','1122zECKzk','warn','initWinstonLogger','完成:\x20','winstonLogger','6255270FLHbCc','20830WPjSwb','readLogs','700830xKCYrC','red','join','currentRawCommand','setRawCommand','error','parse','toISOString','dirname','command','timestamp'];a233_0x2478=function(){return _0x4f6a53;};return a233_0x2478();}class Logger{[a233_0x3e4bc0(0x194)];[a233_0x3e4bc0(0x1a9)];[a233_0x3e4bc0(0x19b)]='';constructor(){const _0x55da12=a233_0x3e4bc0;this[_0x55da12(0x1a9)]='';}[a233_0x3e4bc0(0x19c)](_0x5786f0){const _0x13c15c=a233_0x3e4bc0;this[_0x13c15c(0x19b)]=_0x5786f0;}[a233_0x3e4bc0(0x192)](){const _0x12ab07=a233_0x3e4bc0,_0x4e5fa0=a233_0x315b2f[_0x12ab07(0x1a0)](this[_0x12ab07(0x1a9)]);!a233_0x21a8f7['existsSync'](_0x4e5fa0)&&a233_0x21a8f7['mkdirSync'](_0x4e5fa0,{'recursive':!![]});const _0x570196=a233_0x380b85[_0x12ab07(0x187)][_0x12ab07(0x1b9)](a233_0x380b85['format'][_0x12ab07(0x1a2)](),a233_0x380b85[_0x12ab07(0x187)][_0x12ab07(0x18d)]({'stack':!![]}),a233_0x380b85[_0x12ab07(0x187)]['printf'](_0x3a7189=>{const _0xb54e6=_0x12ab07,_0x2178f6={'timestamp':_0x3a7189[_0xb54e6(0x1a2)]||new Date()[_0xb54e6(0x19f)](),'level':_0x3a7189['level']||_0xb54e6(0x188),'command':_0x3a7189[_0xb54e6(0x1a1)]||_0xb54e6(0x18f),'rawCommand':_0x3a7189['rawCommand']||this[_0xb54e6(0x19b)]||undefined,'message':_0x3a7189[_0xb54e6(0x18b)]||'','duration':_0x3a7189[_0xb54e6(0x1ac)]||undefined,'details':_0x3a7189[_0xb54e6(0x1a3)]||undefined};return JSON['stringify'](_0x2178f6);}));this[_0x12ab07(0x194)]=a233_0x380b85[_0x12ab07(0x1b7)]({'level':_0x12ab07(0x188),'format':_0x570196,'transports':[new a233_0x380b85[(_0x12ab07(0x184))]['File']({'filename':this[_0x12ab07(0x1a9)],'level':'info'})],'silent':![]}),a233_0x380b85[_0x12ab07(0x1ad)]({'success':_0x12ab07(0x18c),'error':_0x12ab07(0x199),'warn':_0x12ab07(0x1af),'info':'blue'});}[a233_0x3e4bc0(0x1a5)](_0x1f7af2){const _0x119fd8=a233_0x3e4bc0;this[_0x119fd8(0x1a9)]=a233_0x315b2f[_0x119fd8(0x19a)](_0x1f7af2,'.lovrabet.log'),this[_0x119fd8(0x194)]&&this[_0x119fd8(0x194)][_0x119fd8(0x1b5)](),this[_0x119fd8(0x192)]();}['info'](_0x295f42,_0x5ebfb8,_0x101be0){const _0x921397=a233_0x3e4bc0;if(!this[_0x921397(0x1a9)]||!this[_0x921397(0x194)])return;this[_0x921397(0x194)][_0x921397(0x188)](_0x5ebfb8,{'command':_0x295f42,'details':_0x101be0});}['success'](_0x5b1767,_0x57ade1,_0x172682,_0xd33677){const _0x24a57c=a233_0x3e4bc0;if(!this[_0x24a57c(0x1a9)]||!this['winstonLogger'])return;this[_0x24a57c(0x194)]['log'](_0x24a57c(0x188),_0x57ade1,{'level':_0x24a57c(0x1b2),'command':_0x5b1767,'duration':_0x172682,'details':_0xd33677});}[a233_0x3e4bc0(0x19d)](_0x55896e,_0x4473d9,_0x441ffa){const _0x46d65e=a233_0x3e4bc0;if(!this[_0x46d65e(0x1a9)]||!this[_0x46d65e(0x194)])return;this[_0x46d65e(0x194)][_0x46d65e(0x19d)](_0x4473d9,{'command':_0x55896e,'details':_0x441ffa});}[a233_0x3e4bc0(0x191)](_0x1d454a,_0x877a40,_0x309629){const _0x3d735e=a233_0x3e4bc0;if(!this['logFilePath']||!this[_0x3d735e(0x194)])return;this[_0x3d735e(0x194)][_0x3d735e(0x191)](_0x877a40,{'command':_0x1d454a,'details':_0x309629});}async['logTask'](_0x58db6b,_0x4ba64e,_0xc02faf){const _0x37c416=a233_0x3e4bc0,_0x3aee86=Date[_0x37c416(0x1b4)]();this['info'](_0x58db6b,_0x37c416(0x185)+_0x4ba64e);try{const _0x5990b1=await _0xc02faf(),_0x32f0ff=Date[_0x37c416(0x1b4)]()-_0x3aee86;return this[_0x37c416(0x1b2)](_0x58db6b,_0x37c416(0x193)+_0x4ba64e,_0x32f0ff),_0x5990b1;}catch(_0x20191f){const _0x370d28=Date[_0x37c416(0x1b4)]()-_0x3aee86;this[_0x37c416(0x19d)](_0x58db6b,_0x37c416(0x186)+_0x4ba64e,{'error':_0x20191f instanceof Error?_0x20191f[_0x37c416(0x18b)]:String(_0x20191f),'duration':_0x370d28});throw _0x20191f;}}[a233_0x3e4bc0(0x197)](){const _0x1ad724=a233_0x3e4bc0;try{if(!a233_0x21a8f7['existsSync'](this[_0x1ad724(0x1a9)]))return[];const _0x689228=a233_0x21a8f7[_0x1ad724(0x18e)](this[_0x1ad724(0x1a9)],_0x1ad724(0x1a6));return _0x689228[_0x1ad724(0x189)]('\x0a')[_0x1ad724(0x1b1)](_0x5b4c9c=>_0x5b4c9c['trim']())[_0x1ad724(0x1b8)](_0x58cacc=>JSON[_0x1ad724(0x19e)](_0x58cacc));}catch(_0x24a8d9){return console['warn'](_0x1ad724(0x1b6),_0x24a8d9),[];}}[a233_0x3e4bc0(0x1ae)](){const _0x37fbaf=a233_0x3e4bc0;try{a233_0x21a8f7[_0x37fbaf(0x1ab)](this[_0x37fbaf(0x1a9)])&&a233_0x21a8f7[_0x37fbaf(0x1b3)](this[_0x37fbaf(0x1a9)],'',_0x37fbaf(0x1a6));}catch(_0x5b3827){console[_0x37fbaf(0x191)](_0x37fbaf(0x183),_0x5b3827);}}[a233_0x3e4bc0(0x1a8)](){const _0x47bc36=a233_0x3e4bc0;return this[_0x47bc36(0x194)];}}export const logger=new Logger();
@@ -1 +1 @@
1
- (function(_0x464c35,_0x12ca5c){const _0x1a23cd=a234_0xebc0,_0x5abc0f=_0x464c35();while(!![]){try{const _0x5935f7=-parseInt(_0x1a23cd(0x9e))/0x1*(-parseInt(_0x1a23cd(0x9d))/0x2)+-parseInt(_0x1a23cd(0x96))/0x3+-parseInt(_0x1a23cd(0x9f))/0x4+-parseInt(_0x1a23cd(0xa0))/0x5+parseInt(_0x1a23cd(0x9a))/0x6*(parseInt(_0x1a23cd(0x95))/0x7)+-parseInt(_0x1a23cd(0x99))/0x8+parseInt(_0x1a23cd(0x9b))/0x9;if(_0x5935f7===_0x12ca5c)break;else _0x5abc0f['push'](_0x5abc0f['shift']());}catch(_0x4a665a){_0x5abc0f['push'](_0x5abc0f['shift']());}}}(a234_0x4aee,0x6c916));import{CliErrors}from'../errors.js';export function parseJsonParams(_0x185536){const _0x39474d=a234_0xebc0;if(!_0x185536)return undefined;let _0x1fa580;try{_0x1fa580=JSON['parse'](_0x185536);}catch{throw CliErrors[_0x39474d(0x97)]('Invalid\x20JSON\x20for\x20--params:\x20'+_0x185536);}if(!_0x1fa580||typeof _0x1fa580!==_0x39474d(0x9c)||Array['isArray'](_0x1fa580))throw CliErrors[_0x39474d(0x97)](_0x39474d(0x98),'Example:\x20--params\x20\x27{\x22id\x22:123}\x27');return _0x1fa580;}function a234_0xebc0(_0x1fd80d,_0x2b6286){_0x1fd80d=_0x1fd80d-0x95;const _0x4aee59=a234_0x4aee();let _0xebc050=_0x4aee59[_0x1fd80d];return _0xebc050;}function a234_0x4aee(){const _0x418950=['2801812PGkgge','4258775UeIcXu','5929qBbayR','2612943ovDkKx','validation','--params\x20must\x20be\x20a\x20JSON\x20object','3238752kGqqlo','1830bwVFnx','26387433HusiOE','object','690cOPzWY','239YSiuKs'];a234_0x4aee=function(){return _0x418950;};return a234_0x4aee();}
1
+ function a234_0x5253(_0x5ebcef,_0x11ae76){_0x5ebcef=_0x5ebcef-0x1f4;const _0x215698=a234_0x2156();let _0x525316=_0x215698[_0x5ebcef];return _0x525316;}(function(_0x22b020,_0x1550d8){const _0x7b8cd=a234_0x5253,_0x1fa3d6=_0x22b020();while(!![]){try{const _0x598036=parseInt(_0x7b8cd(0x204))/0x1*(parseInt(_0x7b8cd(0x1fb))/0x2)+-parseInt(_0x7b8cd(0x1f5))/0x3+parseInt(_0x7b8cd(0x1f6))/0x4*(-parseInt(_0x7b8cd(0x203))/0x5)+parseInt(_0x7b8cd(0x1f8))/0x6+-parseInt(_0x7b8cd(0x1fd))/0x7*(parseInt(_0x7b8cd(0x1fa))/0x8)+parseInt(_0x7b8cd(0x1ff))/0x9*(-parseInt(_0x7b8cd(0x1fe))/0xa)+-parseInt(_0x7b8cd(0x200))/0xb*(-parseInt(_0x7b8cd(0x202))/0xc);if(_0x598036===_0x1550d8)break;else _0x1fa3d6['push'](_0x1fa3d6['shift']());}catch(_0x3b36f3){_0x1fa3d6['push'](_0x1fa3d6['shift']());}}}(a234_0x2156,0x6ab0a));import{CliErrors}from'../errors.js';function a234_0x2156(){const _0x4ad32c=['295NRrBZh','13KiNqzF','Invalid\x20JSON\x20for\x20--params:\x20','1890792LeyBrk','48564gmgHZL','isArray','2058072vCQbNR','parse','1042776KvqFMy','36194wvnQLG','object','7nnZQTa','471290egSall','18DmXFZB','5243029ThdlFb','validation','36xHONvT'];a234_0x2156=function(){return _0x4ad32c;};return a234_0x2156();}export function parseJsonParams(_0xc65753){const _0x50ce9e=a234_0x5253;if(!_0xc65753)return undefined;let _0x3e0bd9;try{_0x3e0bd9=JSON[_0x50ce9e(0x1f9)](_0xc65753);}catch{throw CliErrors[_0x50ce9e(0x201)](_0x50ce9e(0x1f4)+_0xc65753);}if(!_0x3e0bd9||typeof _0x3e0bd9!==_0x50ce9e(0x1fc)||Array[_0x50ce9e(0x1f7)](_0x3e0bd9))throw CliErrors[_0x50ce9e(0x201)]('--params\x20must\x20be\x20a\x20JSON\x20object','Example:\x20--params\x20\x27{\x22id\x22:123}\x27');return _0x3e0bd9;}
@@ -1 +1 @@
1
- const a235_0x156e03=a235_0x1032;(function(_0xb77faa,_0x1eeec5){const _0x445432=a235_0x1032,_0x25935a=_0xb77faa();while(!![]){try{const _0x19fb4a=parseInt(_0x445432(0x181))/0x1+parseInt(_0x445432(0x189))/0x2*(-parseInt(_0x445432(0x188))/0x3)+-parseInt(_0x445432(0x18c))/0x4+-parseInt(_0x445432(0x180))/0x5*(parseInt(_0x445432(0x183))/0x6)+-parseInt(_0x445432(0x18d))/0x7*(-parseInt(_0x445432(0x187))/0x8)+-parseInt(_0x445432(0x18a))/0x9+-parseInt(_0x445432(0x185))/0xa*(-parseInt(_0x445432(0x18b))/0xb);if(_0x19fb4a===_0x1eeec5)break;else _0x25935a['push'](_0x25935a['shift']());}catch(_0x35dea3){_0x25935a['push'](_0x25935a['shift']());}}}(a235_0x9b29,0x5e8f7));export const isWindows=process[a235_0x156e03(0x184)]===a235_0x156e03(0x182);function a235_0x1032(_0x3c30f2,_0x396d7f){_0x3c30f2=_0x3c30f2-0x180;const _0x9b2938=a235_0x9b29();let _0x10326a=_0x9b2938[_0x3c30f2];return _0x10326a;}function a235_0x9b29(){const _0x3fb25d=['8sbnUyx','219927YTvRxl','14gwZtov','2365542tIeZEC','6339553riSeeS','2291916PoiHjs','995449rLUllG','65IbTQRF','134197IvLLlt','win32','124188ZhxNCb','platform','30SxAzWp','.cmd'];a235_0x9b29=function(){return _0x3fb25d;};return a235_0x9b29();}export function resolveNpmBin(_0x1525b7){const _0x1e50cc=a235_0x156e03;return isWindows?_0x1525b7+_0x1e50cc(0x186):_0x1525b7;}
1
+ function a235_0x16b5(){const _0x438e71=['887rtAVCr','556JbIGPP','2298450DVfNBV','9wBDETC','1836191BiGEPo','60mraODk','60ZGlktf','.cmd','5001jIvUkh','3234620OJHift','platform','win32','769480RawUDC','120005VmqVEf'];a235_0x16b5=function(){return _0x438e71;};return a235_0x16b5();}const a235_0x38b743=a235_0x7d00;function a235_0x7d00(_0xea4940,_0x2ea32d){_0xea4940=_0xea4940-0x143;const _0x16b52f=a235_0x16b5();let _0x7d007e=_0x16b52f[_0xea4940];return _0x7d007e;}(function(_0x4d1e10,_0x1116a6){const _0x2a5e3a=a235_0x7d00,_0x2f92a6=_0x4d1e10();while(!![]){try{const _0x22151d=-parseInt(_0x2a5e3a(0x14e))/0x1*(parseInt(_0x2a5e3a(0x145))/0x2)+parseInt(_0x2a5e3a(0x148))/0x3*(parseInt(_0x2a5e3a(0x14f))/0x4)+parseInt(_0x2a5e3a(0x14d))/0x5*(parseInt(_0x2a5e3a(0x146))/0x6)+-parseInt(_0x2a5e3a(0x144))/0x7+parseInt(_0x2a5e3a(0x14c))/0x8*(parseInt(_0x2a5e3a(0x143))/0x9)+-parseInt(_0x2a5e3a(0x149))/0xa+parseInt(_0x2a5e3a(0x150))/0xb;if(_0x22151d===_0x1116a6)break;else _0x2f92a6['push'](_0x2f92a6['shift']());}catch(_0x4b6e20){_0x2f92a6['push'](_0x2f92a6['shift']());}}}(a235_0x16b5,0x28279));export const isWindows=process[a235_0x38b743(0x14a)]===a235_0x38b743(0x14b);export function resolveNpmBin(_0x21883b){const _0x549ebc=a235_0x38b743;return isWindows?_0x21883b+_0x549ebc(0x147):_0x21883b;}
@@ -1 +1 @@
1
- (function(_0x392023,_0x581fc0){const _0x70ee6b=a236_0x161a,_0x28e2e1=_0x392023();while(!![]){try{const _0x543920=-parseInt(_0x70ee6b(0xf4))/0x1*(-parseInt(_0x70ee6b(0x104))/0x2)+parseInt(_0x70ee6b(0xf3))/0x3*(parseInt(_0x70ee6b(0x100))/0x4)+parseInt(_0x70ee6b(0xf7))/0x5+-parseInt(_0x70ee6b(0xff))/0x6*(-parseInt(_0x70ee6b(0xfa))/0x7)+parseInt(_0x70ee6b(0xf6))/0x8*(-parseInt(_0x70ee6b(0xfe))/0x9)+-parseInt(_0x70ee6b(0x102))/0xa+-parseInt(_0x70ee6b(0xf5))/0xb;if(_0x543920===_0x581fc0)break;else _0x28e2e1['push'](_0x28e2e1['shift']());}catch(_0x5100e0){_0x28e2e1['push'](_0x28e2e1['shift']());}}}(a236_0x57bf,0x7d9d5));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 _0x45a528=a236_0x161a,_0x46ecc0=getTemplateBaseUrl();return _0x46ecc0+_0x45a528(0xfc);}const LOCAL_TEMPLATE_PATH=resolve(__dirname,'../../templates/rules/lovrabet_rules.mdc.tpl');function a236_0x161a(_0x5be8c7,_0x3c34a7){_0x5be8c7=_0x5be8c7-0xef;const _0x57bf51=a236_0x57bf();let _0x161aa1=_0x57bf51[_0x5be8c7];return _0x161aa1;}export async function fetchRulesFromCDN(){const _0x6d224f=a236_0x161a,_0x41e7ca=getRulesCdnUrl(),_0x3f3ddf=await fetch(_0x41e7ca,{'headers':{'Accept':_0x6d224f(0xef)}});if(!_0x3f3ddf['ok'])throw new Error('CDN\x20请求失败:\x20'+_0x3f3ddf[_0x6d224f(0xf1)]+'\x20'+_0x3f3ddf['statusText']);const _0x4e43b6=await _0x3f3ddf[_0x6d224f(0xf9)]();if(!_0x4e43b6[_0x6d224f(0xfd)]||typeof _0x4e43b6[_0x6d224f(0xfd)]!==_0x6d224f(0xf0))throw new Error(_0x6d224f(0x105));return _0x4e43b6;}function a236_0x57bf(){const _0x433944=['CDN\x20返回数据格式错误','application/json','string','status','agents.md','2421JsMtQQ','137296hsQirG','5207686BPUlwC','406944sKLhKd','1779875IIHUSx','.cursor/rules','json','284403scImOz','utf-8','/rules/rules.json','content','36YJrfXi','6BUrgEx','4700jiRxLR','lastUpdated','8398940tHAslr','catch','10ciGgGm'];a236_0x57bf=function(){return _0x433944;};return a236_0x57bf();}export async function getRulesContent(){const _0x171ced=a236_0x161a;try{const _0xd48c41=await fetchRulesFromCDN();return _0xd48c41[_0x171ced(0xfd)];}catch{return readLocalTemplate();}}export function readLocalTemplate(){const _0x1e5659=a236_0x161a;if(existsSync(LOCAL_TEMPLATE_PATH))return readFileSync(LOCAL_TEMPLATE_PATH,_0x1e5659(0xfb));throw new Error('本地模板文件不存在:\x20'+LOCAL_TEMPLATE_PATH);}export async function writeRulesFile(_0x58abd3){const _0xce79a1=a236_0x161a,_0x553f40=await fetchRulesFromCDN()[_0xce79a1(0x103)](()=>null);let _0x114070;_0x553f40?(_0x114070=_0x553f40['content'],_0x553f40[_0xce79a1(0x101)]&&(_0x114070=appendUpdateTime(_0x114070,_0x553f40[_0xce79a1(0x101)]))):_0x114070=readLocalTemplate();const _0x4dbb2a=dirname(_0x58abd3);!existsSync(_0x4dbb2a)&&mkdirSync(_0x4dbb2a,{'recursive':!![]}),writeFileSync(_0x58abd3,_0x114070,_0xce79a1(0xfb));}export async function copyRulesToCursor(_0x488a53){const _0x2e79af=a236_0x161a,_0x406d57=join(_0x488a53,_0x2e79af(0xf8)),_0x17a99f=join(_0x406d57,'lovrabet_rules.mdc');if(existsSync(_0x17a99f))return![];return await writeRulesFile(_0x17a99f),!![];}export async function copyRulesToAgentsMd(_0x1ec364){const _0x50e852=a236_0x161a,_0x3650c7=join(_0x1ec364,_0x50e852(0xf2));if(existsSync(_0x3650c7))return![];return await writeRulesFile(_0x3650c7),!![];}
1
+ (function(_0x3e4c03,_0x459a8a){const _0x1aa182=a236_0x19e0,_0x3041aa=_0x3e4c03();while(!![]){try{const _0x1c2bc9=parseInt(_0x1aa182(0x83))/0x1+parseInt(_0x1aa182(0x88))/0x2+-parseInt(_0x1aa182(0x90))/0x3*(parseInt(_0x1aa182(0x78))/0x4)+parseInt(_0x1aa182(0x7b))/0x5*(-parseInt(_0x1aa182(0x81))/0x6)+-parseInt(_0x1aa182(0x89))/0x7+parseInt(_0x1aa182(0x8b))/0x8*(parseInt(_0x1aa182(0x84))/0x9)+-parseInt(_0x1aa182(0x80))/0xa*(-parseInt(_0x1aa182(0x7c))/0xb);if(_0x1c2bc9===_0x459a8a)break;else _0x3041aa['push'](_0x3041aa['shift']());}catch(_0x298d30){_0x3041aa['push'](_0x3041aa['shift']());}}}(a236_0x1728,0x99a45));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 a236_0x19e0(_0x5f3848,_0x25f586){_0x5f3848=_0x5f3848-0x78;const _0x172807=a236_0x1728();let _0x19e09d=_0x172807[_0x5f3848];return _0x19e09d;}import{appendUpdateTime}from'../utils/guides-cdn.js';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);function getRulesCdnUrl(){const _0x1fedd1=a236_0x19e0,_0x3e8979=getTemplateBaseUrl();return _0x3e8979+_0x1fedd1(0x7a);}const LOCAL_TEMPLATE_PATH=resolve(__dirname,'../../templates/rules/lovrabet_rules.mdc.tpl');export async function fetchRulesFromCDN(){const _0x519f53=a236_0x19e0,_0x2d83fd=getRulesCdnUrl(),_0x2f0615=await fetch(_0x2d83fd,{'headers':{'Accept':_0x519f53(0x8d)}});if(!_0x2f0615['ok'])throw new Error(_0x519f53(0x7e)+_0x2f0615[_0x519f53(0x79)]+'\x20'+_0x2f0615[_0x519f53(0x7f)]);const _0x4c035e=await _0x2f0615['json']();if(!_0x4c035e[_0x519f53(0x8a)]||typeof _0x4c035e['content']!==_0x519f53(0x85))throw new Error(_0x519f53(0x8e));return _0x4c035e;}export async function getRulesContent(){const _0x108de1=a236_0x19e0;try{const _0x5a3021=await fetchRulesFromCDN();return _0x5a3021[_0x108de1(0x8a)];}catch{return readLocalTemplate();}}export function readLocalTemplate(){const _0xb7d1f1=a236_0x19e0;if(existsSync(LOCAL_TEMPLATE_PATH))return readFileSync(LOCAL_TEMPLATE_PATH,_0xb7d1f1(0x8f));throw new Error(_0xb7d1f1(0x87)+LOCAL_TEMPLATE_PATH);}function a236_0x1728(){const _0x2994a9=['20750OPhFEk','5502VCopIa','.cursor/rules','821256asGWvm','18oXNkXd','string','lastUpdated','本地模板文件不存在:\x20','1419480hQTcco','4396147jhHpXx','content','2762264jGMlYR','agents.md','application/json','CDN\x20返回数据格式错误','utf-8','2082AKnRHi','2512jviEyr','status','/rules/rules.json','3130ggwblR','242nrHjuY','catch','CDN\x20请求失败:\x20','statusText'];a236_0x1728=function(){return _0x2994a9;};return a236_0x1728();}export async function writeRulesFile(_0x32727b){const _0x4b1edf=a236_0x19e0,_0x342cc1=await fetchRulesFromCDN()[_0x4b1edf(0x7d)](()=>null);let _0x50e138;_0x342cc1?(_0x50e138=_0x342cc1[_0x4b1edf(0x8a)],_0x342cc1[_0x4b1edf(0x86)]&&(_0x50e138=appendUpdateTime(_0x50e138,_0x342cc1['lastUpdated']))):_0x50e138=readLocalTemplate();const _0x2aab78=dirname(_0x32727b);!existsSync(_0x2aab78)&&mkdirSync(_0x2aab78,{'recursive':!![]}),writeFileSync(_0x32727b,_0x50e138,_0x4b1edf(0x8f));}export async function copyRulesToCursor(_0x506b2b){const _0x29a381=a236_0x19e0,_0xb652ef=join(_0x506b2b,_0x29a381(0x82)),_0x5b503e=join(_0xb652ef,'lovrabet_rules.mdc');if(existsSync(_0x5b503e))return![];return await writeRulesFile(_0x5b503e),!![];}export async function copyRulesToAgentsMd(_0x1068ec){const _0x2b8d17=a236_0x19e0,_0x3c44d3=join(_0x1068ec,_0x2b8d17(0x8c));if(existsSync(_0x3c44d3))return![];return await writeRulesFile(_0x3c44d3),!![];}
@@ -1 +1 @@
1
- export function sleep(_0x540474){return new Promise(_0x34c18f=>setTimeout(_0x34c18f,_0x540474));}
1
+ export function sleep(_0x11cbb1){return new Promise(_0x5327a7=>setTimeout(_0x5327a7,_0x11cbb1));}
@@ -1 +1 @@
1
- const a238_0x4114f3=a238_0x53a9;(function(_0x306d8c,_0x4ea33a){const _0x178c10=a238_0x53a9,_0x495515=_0x306d8c();while(!![]){try{const _0xc01432=-parseInt(_0x178c10(0x1f3))/0x1+-parseInt(_0x178c10(0x208))/0x2+-parseInt(_0x178c10(0x1f4))/0x3+parseInt(_0x178c10(0x209))/0x4*(-parseInt(_0x178c10(0x1e1))/0x5)+parseInt(_0x178c10(0x1ca))/0x6+-parseInt(_0x178c10(0x1da))/0x7*(-parseInt(_0x178c10(0x1dc))/0x8)+parseInt(_0x178c10(0x1d5))/0x9;if(_0xc01432===_0x4ea33a)break;else _0x495515['push'](_0x495515['shift']());}catch(_0x85a7fc){_0x495515['push'](_0x495515['shift']());}}}(a238_0x3bb9,0x6842b));function a238_0x53a9(_0x375915,_0x59e36f){_0x375915=_0x375915-0x1c7;const _0x3bb981=a238_0x3bb9();let _0x53a975=_0x3bb981[_0x375915];return _0x53a975;}function a238_0x3bb9(){const _0xce44b9=['success','join','LOVRABET','name','pad','2129694kHMwJM','utf8','default','split','tableName:\x20\x22','toISOString','name:\x20\x22','.jsx','template','pop','readFile','8177328GRWrBM','datasetCode','toDisplayTitle','slice','.css','6566zYDLRr','\x0a\x20\x20\x20\x20{\x20','6960uVWmhs','.ts','.tpl','toComponentName','mkdir','5LYNxgm','processTemplate','message','processDirectory','alias','.tsx','tableName','getFullYear','模板内容替换失败','toUpperCase','.scss','.js','isDirectory','replaceContent','includes','isFile','formatLocalTimestamp','alias:\x20\x22','570076NbzCpX','1653318CHiVvN','.json','endsWith','toLowerCase','datasetCode:\x20\x22','writeFile','\x20},','promises','模板内容替换完成','processFile','replace','开始处理模板内容替换','replaceApiContent','push','error','getHours','api','extname','getDate','now','36364JhBPNd','2052744AvNyph','map','charAt'];a238_0x3bb9=function(){return _0xce44b9;};return a238_0x3bb9();}import a238_0x57a2de from'node:fs';import a238_0x8bb55f from'node:path';import{logger}from'../utils/logger.js';import{getCliVersion}from'../utils/version.js';const CLI_VERSION=getCliVersion();export class TemplateReplacer{static[a238_0x4114f3(0x1c9)](_0x3746f8){return String(_0x3746f8)['padStart'](0x2,'0');}static['formatLocalTimestamp'](_0x58c013){const _0xbe69f9=a238_0x4114f3,_0x5bbcf6=_0x58c013[_0xbe69f9(0x1e8)](),_0x3b65ae=this[_0xbe69f9(0x1c9)](_0x58c013['getMonth']()+0x1),_0x5d3236=this[_0xbe69f9(0x1c9)](_0x58c013[_0xbe69f9(0x206)]()),_0x235d07=this[_0xbe69f9(0x1c9)](_0x58c013[_0xbe69f9(0x203)]()),_0x308357=this[_0xbe69f9(0x1c9)](_0x58c013['getMinutes']()),_0x21dfef=this['pad'](_0x58c013['getSeconds']());return{'createdAt':_0x5bbcf6+'-'+_0x3b65ae+'-'+_0x5d3236+'\x20'+_0x235d07+':'+_0x308357+':'+_0x21dfef,'createdDate':_0x5bbcf6+'-'+_0x3b65ae+'-'+_0x5d3236,'createdTime':_0x235d07+':'+_0x308357+':'+_0x21dfef};}static[a238_0x4114f3(0x1df)](_0x5eaaf5){const _0x23817b=a238_0x4114f3,_0x4685bd=_0x5eaaf5[_0x23817b(0x1cd)]('/')[_0x23817b(0x1d3)]()||_0x5eaaf5;return _0x4685bd[_0x23817b(0x1cd)]('-')[_0x23817b(0x20a)](_0x53c9b3=>_0x53c9b3[_0x23817b(0x20b)](0x0)[_0x23817b(0x1ea)]()+_0x53c9b3[_0x23817b(0x1d8)](0x1)[_0x23817b(0x1f7)]())[_0x23817b(0x20d)]('');}static[a238_0x4114f3(0x1d7)](_0x2bd843){const _0x3a234d=a238_0x4114f3,_0x2a335a=_0x2bd843['split']('/')[_0x3a234d(0x1d3)]()||_0x2bd843;return _0x2a335a[_0x3a234d(0x1cd)]('-')[_0x3a234d(0x20a)](_0x492e6c=>_0x492e6c[_0x3a234d(0x20b)](0x0)['toUpperCase']()+_0x492e6c[_0x3a234d(0x1d8)](0x1)['toLowerCase']())['join']('\x20');}static[a238_0x4114f3(0x1ee)](_0x1da7cd,_0x2e80e8,_0x49d5c3){const _0x42791c=a238_0x4114f3,_0x506ad8=this[_0x42791c(0x1df)](_0x2e80e8),_0x3ce4a1=this['toDisplayTitle'](_0x2e80e8),{createdAt:_0x5ecdbf,createdDate:_0x3942f3,createdTime:_0x37b056}=this[_0x42791c(0x1f1)](new Date());let _0x230955=_0x1da7cd[_0x42791c(0x1fe)](/\{CliVersion\}/g,CLI_VERSION)[_0x42791c(0x1fe)](/\{ComponentName\}/g,_0x506ad8)[_0x42791c(0x1fe)](/\{DisplayTitle\}/g,_0x3ce4a1)[_0x42791c(0x1fe)](/\{PageName\}/g,_0x2e80e8)['replace'](/\{TemplateName\}/g,_0x49d5c3)['replace'](/\{CreatedAt\}/g,_0x5ecdbf)[_0x42791c(0x1fe)](/\{CreatedDate\}/g,_0x3942f3)[_0x42791c(0x1fe)](/\{CreatedTime\}/g,_0x37b056);return _0x230955;}static[a238_0x4114f3(0x200)](_0x4aa27f,_0x3fc34b,_0x17c7b2,_0x3f05f0,_0x520d50,_0x466107,_0x312f4e,_0x105e7c){const _0x836a9=a238_0x4114f3,_0x5472be=new Date(),_0x38c22a=_0x5472be[_0x836a9(0x1cf)](),_0x56dcbb=_0x17c7b2[_0x836a9(0x20a)](_0x531b38=>{const _0xa3d4f6=_0x836a9,_0x5f0e7b=[_0xa3d4f6(0x1f8)+_0x531b38[_0xa3d4f6(0x1d6)]+'\x22',_0xa3d4f6(0x1ce)+_0x531b38[_0xa3d4f6(0x1e7)]+'\x22',_0xa3d4f6(0x1d0)+_0x531b38[_0xa3d4f6(0x1c8)]+'\x22'];return _0x531b38[_0xa3d4f6(0x1e5)]&&_0x5f0e7b[_0xa3d4f6(0x201)](_0xa3d4f6(0x1f2)+_0x531b38[_0xa3d4f6(0x1e5)]+'\x22'),_0xa3d4f6(0x1db)+_0x5f0e7b[_0xa3d4f6(0x20d)](',\x20')+_0xa3d4f6(0x1fa);})[_0x836a9(0x20d)](''),_0x5d2b2f=_0x3f05f0||_0x17c7b2[0x0]?.['alias']||'YourModel';let _0x48ed75=_0x4aa27f['replace'](/\{AppCode\}/g,_0x3fc34b)[_0x836a9(0x1fe)](/\{ModelConfigs\}/g,_0x56dcbb)[_0x836a9(0x1fe)](/\{ExampleModelName\}/g,_0x5d2b2f)[_0x836a9(0x1fe)](/\{ApiFileName\}/g,_0x520d50||_0x836a9(0x204))[_0x836a9(0x1fe)](/\{ConfigName\}/g,_0x466107||_0x836a9(0x1cc))[_0x836a9(0x1fe)](/\{ClientConfigParam\}/g,_0x312f4e||'')[_0x836a9(0x1fe)](/\{VarPrefix\}/g,_0x105e7c||_0x836a9(0x1c7))[_0x836a9(0x1fe)](/\{CreatedAt\}/g,_0x38c22a);return _0x48ed75;}static async[a238_0x4114f3(0x1e2)](_0x2e6051,_0x29882f,_0x40585b,_0x33f1a7,_0x203ee1=!![]){const _0x45a978=a238_0x4114f3,_0x3c001b=Date[_0x45a978(0x207)]();try{_0x203ee1&&logger['info']('template',_0x45a978(0x1ff),{'templatePath':_0x2e6051,'targetPath':_0x29882f,'pageName':_0x40585b,'templateName':_0x33f1a7});await a238_0x57a2de[_0x45a978(0x1fb)][_0x45a978(0x1e0)](_0x29882f,{'recursive':!![]}),await this[_0x45a978(0x1e4)](_0x2e6051,_0x29882f,_0x40585b,_0x33f1a7);if(_0x203ee1){const _0x4d12bd=Date[_0x45a978(0x207)]()-_0x3c001b;logger[_0x45a978(0x20c)](_0x45a978(0x1d2),_0x45a978(0x1fc),_0x4d12bd,{'pageName':_0x40585b,'templateName':_0x33f1a7});}}catch(_0x403ebd){if(_0x203ee1){const _0x1c7dee=Date[_0x45a978(0x207)]()-_0x3c001b;logger[_0x45a978(0x202)](_0x45a978(0x1d2),_0x45a978(0x1e9),{'templatePath':_0x2e6051,'targetPath':_0x29882f,'pageName':_0x40585b,'templateName':_0x33f1a7,'error':_0x403ebd instanceof Error?_0x403ebd[_0x45a978(0x1e3)]:String(_0x403ebd),'duration':_0x1c7dee});}throw _0x403ebd;}}static async[a238_0x4114f3(0x1e4)](_0x37b839,_0x545432,_0x346f40,_0x548519){const _0x4cf5b7=a238_0x4114f3,_0x22d66a=await a238_0x57a2de[_0x4cf5b7(0x1fb)]['readdir'](_0x37b839,{'withFileTypes':!![]});for(const _0x361fd8 of _0x22d66a){const _0x1b0715=a238_0x8bb55f[_0x4cf5b7(0x20d)](_0x37b839,_0x361fd8[_0x4cf5b7(0x1c8)]);let _0x4c9299=a238_0x8bb55f[_0x4cf5b7(0x20d)](_0x545432,_0x361fd8[_0x4cf5b7(0x1c8)]);_0x361fd8[_0x4cf5b7(0x1c8)][_0x4cf5b7(0x1f6)](_0x4cf5b7(0x1de))&&(_0x4c9299=a238_0x8bb55f[_0x4cf5b7(0x20d)](_0x545432,_0x361fd8[_0x4cf5b7(0x1c8)][_0x4cf5b7(0x1fe)](/\.tpl$/,'')));if(_0x361fd8[_0x4cf5b7(0x1ed)]())await a238_0x57a2de[_0x4cf5b7(0x1fb)][_0x4cf5b7(0x1e0)](_0x4c9299,{'recursive':!![]}),await this[_0x4cf5b7(0x1e4)](_0x1b0715,_0x4c9299,_0x346f40,_0x548519);else _0x361fd8[_0x4cf5b7(0x1f0)]()&&await this[_0x4cf5b7(0x1fd)](_0x1b0715,_0x4c9299,_0x346f40,_0x548519);}}static async[a238_0x4114f3(0x1fd)](_0x49824b,_0x3dc032,_0x54702d,_0x2e5d10){const _0x17ca00=a238_0x4114f3,_0x3ed91a=a238_0x8bb55f[_0x17ca00(0x205)](_0x49824b)[_0x17ca00(0x1f7)]();_0x49824b[_0x17ca00(0x1f6)](_0x17ca00(0x1de))&&(_0x3dc032=_0x3dc032[_0x17ca00(0x1fe)](/\.tpl$/,''));const _0xab8db6=[_0x17ca00(0x1e6),_0x17ca00(0x1dd),_0x17ca00(0x1d1),_0x17ca00(0x1ec),_0x17ca00(0x1f5),'.md',_0x17ca00(0x1d9),_0x17ca00(0x1eb),_0x17ca00(0x1de)];if(_0xab8db6[_0x17ca00(0x1ef)](_0x3ed91a)||_0x49824b['endsWith']('.tpl')){const _0x540327=await a238_0x57a2de[_0x17ca00(0x1fb)][_0x17ca00(0x1d4)](_0x49824b,_0x17ca00(0x1cb)),_0x36181e=this[_0x17ca00(0x1ee)](_0x540327,_0x54702d,_0x2e5d10);await a238_0x57a2de[_0x17ca00(0x1fb)][_0x17ca00(0x1f9)](_0x3dc032,_0x36181e,_0x17ca00(0x1cb));}else await a238_0x57a2de[_0x17ca00(0x1fb)]['copyFile'](_0x49824b,_0x3dc032);}}
1
+ function a238_0x10fa(_0x1e536f,_0x5b4cbe){_0x1e536f=_0x1e536f-0x1b2;const _0x453330=a238_0x4533();let _0x10fad3=_0x453330[_0x1e536f];return _0x10fad3;}function a238_0x4533(){const _0x270883=['charAt','split','info','processDirectory','tableName','pop','565376TiocNc','1199MwrxfH','toISOString','utf8','3624488IXsCHO','pad','244382WTDzgG','readFile','error','toComponentName','getHours','5abaYQS','processTemplate','YourModel','178qnINqk','extname','getFullYear','.css','开始处理模板内容替换','name','push','promises','template','getMinutes','endsWith','toLowerCase','getMonth','slice','.scss','alias','20031isULBS','replaceApiContent','now','datasetCode','\x0a\x20\x20\x20\x20{\x20','map','success','copyFile','replace','join','replaceContent','mkdir','2323348iHevkk','processFile','152010cJfvuX','.tsx','padStart','.js','alias:\x20\x22','3722016oQWpnP','.tpl','writeFile','includes','9SwHPoc','default','toDisplayTitle','api','formatLocalTimestamp'];a238_0x4533=function(){return _0x270883;};return a238_0x4533();}const a238_0x39a3ab=a238_0x10fa;(function(_0x1b1bc3,_0x233186){const _0x5191ef=a238_0x10fa,_0x4c93fd=_0x1b1bc3();while(!![]){try{const _0x36bee4=parseInt(_0x5191ef(0x1e9))/0x1+parseInt(_0x5191ef(0x1f1))/0x2*(-parseInt(_0x5191ef(0x1c1))/0x3)+-parseInt(_0x5191ef(0x1cd))/0x4+parseInt(_0x5191ef(0x1ee))/0x5*(-parseInt(_0x5191ef(0x1d4))/0x6)+parseInt(_0x5191ef(0x1e7))/0x7+-parseInt(_0x5191ef(0x1e3))/0x8*(parseInt(_0x5191ef(0x1d8))/0x9)+parseInt(_0x5191ef(0x1cf))/0xa*(parseInt(_0x5191ef(0x1e4))/0xb);if(_0x36bee4===_0x233186)break;else _0x4c93fd['push'](_0x4c93fd['shift']());}catch(_0x3ed43b){_0x4c93fd['push'](_0x4c93fd['shift']());}}}(a238_0x4533,0x87011));import a238_0x5d9836 from'node:fs';import a238_0x26f19a from'node:path';import{logger}from'../utils/logger.js';import{getCliVersion}from'../utils/version.js';const CLI_VERSION=getCliVersion();export class TemplateReplacer{static[a238_0x39a3ab(0x1e8)](_0x2a0405){const _0x1dff73=a238_0x39a3ab;return String(_0x2a0405)[_0x1dff73(0x1d1)](0x2,'0');}static['formatLocalTimestamp'](_0x51430a){const _0x289a17=a238_0x39a3ab,_0x55eb20=_0x51430a[_0x289a17(0x1b3)](),_0x3f0f4e=this[_0x289a17(0x1e8)](_0x51430a[_0x289a17(0x1bd)]()+0x1),_0x1f1e56=this['pad'](_0x51430a['getDate']()),_0x55ee21=this[_0x289a17(0x1e8)](_0x51430a[_0x289a17(0x1ed)]()),_0xcb81e7=this[_0x289a17(0x1e8)](_0x51430a[_0x289a17(0x1ba)]()),_0x40a44d=this[_0x289a17(0x1e8)](_0x51430a['getSeconds']());return{'createdAt':_0x55eb20+'-'+_0x3f0f4e+'-'+_0x1f1e56+'\x20'+_0x55ee21+':'+_0xcb81e7+':'+_0x40a44d,'createdDate':_0x55eb20+'-'+_0x3f0f4e+'-'+_0x1f1e56,'createdTime':_0x55ee21+':'+_0xcb81e7+':'+_0x40a44d};}static[a238_0x39a3ab(0x1ec)](_0x5353da){const _0x1e841b=a238_0x39a3ab,_0x24741f=_0x5353da[_0x1e841b(0x1de)]('/')[_0x1e841b(0x1e2)]()||_0x5353da;return _0x24741f[_0x1e841b(0x1de)]('-')[_0x1e841b(0x1c6)](_0x31b02c=>_0x31b02c[_0x1e841b(0x1dd)](0x0)['toUpperCase']()+_0x31b02c[_0x1e841b(0x1be)](0x1)[_0x1e841b(0x1bc)]())[_0x1e841b(0x1ca)]('');}static[a238_0x39a3ab(0x1da)](_0x564cc8){const _0x12b377=a238_0x39a3ab,_0x3854eb=_0x564cc8[_0x12b377(0x1de)]('/')[_0x12b377(0x1e2)]()||_0x564cc8;return _0x3854eb[_0x12b377(0x1de)]('-')[_0x12b377(0x1c6)](_0x19b10f=>_0x19b10f[_0x12b377(0x1dd)](0x0)['toUpperCase']()+_0x19b10f[_0x12b377(0x1be)](0x1)[_0x12b377(0x1bc)]())[_0x12b377(0x1ca)]('\x20');}static['replaceContent'](_0x1ceb8e,_0x35acdf,_0x53a363){const _0x560297=a238_0x39a3ab,_0x1233d6=this[_0x560297(0x1ec)](_0x35acdf),_0x4ad1f7=this[_0x560297(0x1da)](_0x35acdf),{createdAt:_0x17e544,createdDate:_0x2eb11c,createdTime:_0x505bf5}=this[_0x560297(0x1dc)](new Date());let _0x336473=_0x1ceb8e[_0x560297(0x1c9)](/\{CliVersion\}/g,CLI_VERSION)[_0x560297(0x1c9)](/\{ComponentName\}/g,_0x1233d6)[_0x560297(0x1c9)](/\{DisplayTitle\}/g,_0x4ad1f7)[_0x560297(0x1c9)](/\{PageName\}/g,_0x35acdf)[_0x560297(0x1c9)](/\{TemplateName\}/g,_0x53a363)[_0x560297(0x1c9)](/\{CreatedAt\}/g,_0x17e544)[_0x560297(0x1c9)](/\{CreatedDate\}/g,_0x2eb11c)['replace'](/\{CreatedTime\}/g,_0x505bf5);return _0x336473;}static[a238_0x39a3ab(0x1c2)](_0x5c06a7,_0x59100d,_0x58a23a,_0x22f8b7,_0xe06725,_0x19fb53,_0x771a10,_0x494436){const _0xb063ec=a238_0x39a3ab,_0x369d15=new Date(),_0x4af882=_0x369d15[_0xb063ec(0x1e5)](),_0x273d99=_0x58a23a['map'](_0x57ad94=>{const _0x3a0f2e=_0xb063ec,_0x1db580=['datasetCode:\x20\x22'+_0x57ad94[_0x3a0f2e(0x1c4)]+'\x22','tableName:\x20\x22'+_0x57ad94[_0x3a0f2e(0x1e1)]+'\x22','name:\x20\x22'+_0x57ad94[_0x3a0f2e(0x1b6)]+'\x22'];return _0x57ad94[_0x3a0f2e(0x1c0)]&&_0x1db580[_0x3a0f2e(0x1b7)](_0x3a0f2e(0x1d3)+_0x57ad94[_0x3a0f2e(0x1c0)]+'\x22'),_0x3a0f2e(0x1c5)+_0x1db580[_0x3a0f2e(0x1ca)](',\x20')+'\x20},';})[_0xb063ec(0x1ca)](''),_0x3775e7=_0x22f8b7||_0x58a23a[0x0]?.[_0xb063ec(0x1c0)]||_0xb063ec(0x1f0);let _0x1441a8=_0x5c06a7['replace'](/\{AppCode\}/g,_0x59100d)[_0xb063ec(0x1c9)](/\{ModelConfigs\}/g,_0x273d99)[_0xb063ec(0x1c9)](/\{ExampleModelName\}/g,_0x3775e7)['replace'](/\{ApiFileName\}/g,_0xe06725||_0xb063ec(0x1db))['replace'](/\{ConfigName\}/g,_0x19fb53||_0xb063ec(0x1d9))[_0xb063ec(0x1c9)](/\{ClientConfigParam\}/g,_0x771a10||'')[_0xb063ec(0x1c9)](/\{VarPrefix\}/g,_0x494436||'LOVRABET')[_0xb063ec(0x1c9)](/\{CreatedAt\}/g,_0x4af882);return _0x1441a8;}static async[a238_0x39a3ab(0x1ef)](_0x3fa02c,_0x4ea3e9,_0x70aa9e,_0x1ca609,_0x44b118=!![]){const _0x1f57ad=a238_0x39a3ab,_0x2507e2=Date[_0x1f57ad(0x1c3)]();try{_0x44b118&&logger[_0x1f57ad(0x1df)]('template',_0x1f57ad(0x1b5),{'templatePath':_0x3fa02c,'targetPath':_0x4ea3e9,'pageName':_0x70aa9e,'templateName':_0x1ca609});await a238_0x5d9836[_0x1f57ad(0x1b8)][_0x1f57ad(0x1cc)](_0x4ea3e9,{'recursive':!![]}),await this[_0x1f57ad(0x1e0)](_0x3fa02c,_0x4ea3e9,_0x70aa9e,_0x1ca609);if(_0x44b118){const _0x2e7c33=Date[_0x1f57ad(0x1c3)]()-_0x2507e2;logger[_0x1f57ad(0x1c7)](_0x1f57ad(0x1b9),'模板内容替换完成',_0x2e7c33,{'pageName':_0x70aa9e,'templateName':_0x1ca609});}}catch(_0x41bdfc){if(_0x44b118){const _0x31639f=Date[_0x1f57ad(0x1c3)]()-_0x2507e2;logger[_0x1f57ad(0x1eb)](_0x1f57ad(0x1b9),'模板内容替换失败',{'templatePath':_0x3fa02c,'targetPath':_0x4ea3e9,'pageName':_0x70aa9e,'templateName':_0x1ca609,'error':_0x41bdfc instanceof Error?_0x41bdfc['message']:String(_0x41bdfc),'duration':_0x31639f});}throw _0x41bdfc;}}static async['processDirectory'](_0x5e1153,_0x23299f,_0x4ebd80,_0x438837){const _0x1e89d1=a238_0x39a3ab,_0x39c4f2=await a238_0x5d9836['promises']['readdir'](_0x5e1153,{'withFileTypes':!![]});for(const _0x4d2619 of _0x39c4f2){const _0x380623=a238_0x26f19a[_0x1e89d1(0x1ca)](_0x5e1153,_0x4d2619['name']);let _0x3eba36=a238_0x26f19a[_0x1e89d1(0x1ca)](_0x23299f,_0x4d2619[_0x1e89d1(0x1b6)]);_0x4d2619[_0x1e89d1(0x1b6)][_0x1e89d1(0x1bb)](_0x1e89d1(0x1d5))&&(_0x3eba36=a238_0x26f19a['join'](_0x23299f,_0x4d2619[_0x1e89d1(0x1b6)]['replace'](/\.tpl$/,'')));if(_0x4d2619['isDirectory']())await a238_0x5d9836[_0x1e89d1(0x1b8)][_0x1e89d1(0x1cc)](_0x3eba36,{'recursive':!![]}),await this[_0x1e89d1(0x1e0)](_0x380623,_0x3eba36,_0x4ebd80,_0x438837);else _0x4d2619['isFile']()&&await this[_0x1e89d1(0x1ce)](_0x380623,_0x3eba36,_0x4ebd80,_0x438837);}}static async[a238_0x39a3ab(0x1ce)](_0x90776,_0x648101,_0x1702fb,_0x685532){const _0xf89d29=a238_0x39a3ab,_0x253941=a238_0x26f19a[_0xf89d29(0x1b2)](_0x90776)['toLowerCase']();_0x90776[_0xf89d29(0x1bb)](_0xf89d29(0x1d5))&&(_0x648101=_0x648101[_0xf89d29(0x1c9)](/\.tpl$/,''));const _0x8fe595=[_0xf89d29(0x1d0),'.ts','.jsx',_0xf89d29(0x1d2),'.json','.md',_0xf89d29(0x1b4),_0xf89d29(0x1bf),'.tpl'];if(_0x8fe595[_0xf89d29(0x1d7)](_0x253941)||_0x90776[_0xf89d29(0x1bb)](_0xf89d29(0x1d5))){const _0x3dfc40=await a238_0x5d9836[_0xf89d29(0x1b8)][_0xf89d29(0x1ea)](_0x90776,'utf8'),_0x14c532=this[_0xf89d29(0x1cb)](_0x3dfc40,_0x1702fb,_0x685532);await a238_0x5d9836[_0xf89d29(0x1b8)][_0xf89d29(0x1d6)](_0x648101,_0x14c532,_0xf89d29(0x1e6));}else await a238_0x5d9836['promises'][_0xf89d29(0x1c8)](_0x90776,_0x648101);}}
@@ -1 +1 @@
1
- (function(_0x648f3c,_0x283b28){const _0xb80452=a239_0x3e4e,_0x336ef3=_0x648f3c();while(!![]){try{const _0x32ee2a=parseInt(_0xb80452(0xf2))/0x1*(parseInt(_0xb80452(0xea))/0x2)+parseInt(_0xb80452(0xdf))/0x3*(-parseInt(_0xb80452(0xf4))/0x4)+parseInt(_0xb80452(0xfa))/0x5+-parseInt(_0xb80452(0xe3))/0x6+-parseInt(_0xb80452(0xee))/0x7*(-parseInt(_0xb80452(0xf3))/0x8)+-parseInt(_0xb80452(0xe0))/0x9*(-parseInt(_0xb80452(0xe1))/0xa)+-parseInt(_0xb80452(0xf1))/0xb;if(_0x32ee2a===_0x283b28)break;else _0x336ef3['push'](_0x336ef3['shift']());}catch(_0x2ee02c){_0x336ef3['push'](_0x336ef3['shift']());}}}(a239_0x77aa,0x5ead4));import{mkdir,readFile,writeFile}from'node:fs/promises';import{homedir}from'node:os';import{dirname,join}from'node:path';function a239_0x77aa(){const _0x2b47f9=['2773440KosiXV','toLowerCase','.cache','true','/v/','checkedAt','trim','72TzYIon','object','valid','\x20update','5097407CuKteM','utf8',',\x20run:\x20','2601610BoDdAB','3919InQSdA','8nJMTKB','4dNfjCP','parse','now','\x20available,\x20current\x20','https://www.npmjs.com/package/','gte','2341985cXhfga','lastNotifiedVersion','yes','stableVersion','lastNotifiedAt','number','2068533JdSPcs','4725SGRkfM','8350eYmxzf','rabetbase-cli'];a239_0x77aa=function(){return _0x2b47f9;};return a239_0x77aa();}import a239_0x4f8bca 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 _0x3119d9=a239_0x3e4e,_0x7c45ad=process.env.RABETBASE_NO_UPDATE_NOTICE?.[_0x3119d9(0xe9)]()[_0x3119d9(0xe4)]();return _0x7c45ad==='1'||_0x7c45ad===_0x3119d9(0xe6)||_0x7c45ad===_0x3119d9(0xfc);}function cacheRoot(){const _0xd8bc1c=a239_0x3e4e;return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),_0xd8bc1c(0xe5));}export function getUpdateNoticeCachePath(){const _0x3f9fa8=a239_0x3e4e;return join(cacheRoot(),_0x3f9fa8(0xe2),'update-check.json');}async function readUpdateNoticeCache(){const _0xad5e2e=a239_0x3e4e;try{const _0x366804=await readFile(getUpdateNoticeCachePath(),_0xad5e2e(0xef)),_0xbe122e=JSON[_0xad5e2e(0xf5)](_0x366804);if(!_0xbe122e||typeof _0xbe122e!==_0xad5e2e(0xeb))return{};return _0xbe122e;}catch{return{};}}async function writeUpdateNoticeCache(_0x33f99a){try{const _0x570c8e=getUpdateNoticeCachePath();await mkdir(dirname(_0x570c8e),{'recursive':!![]}),await writeFile(_0x570c8e,JSON['stringify'](_0x33f99a,null,0x2)+'\x0a','utf8');}catch{}}function a239_0x3e4e(_0x5934d3,_0x52c61f){_0x5934d3=_0x5934d3-0xde;const _0x77aabf=a239_0x77aa();let _0x3e4e90=_0x77aabf[_0x5934d3];return _0x3e4e90;}function isFreshCheck(_0xe4ab38,_0x536526){const _0xc3e160=a239_0x3e4e;return typeof _0xe4ab38[_0xc3e160(0xe8)]==='number'&&_0x536526-_0xe4ab38['checkedAt']<UPDATE_CHECK_TTL_MS;}function isRecentlyNotified(_0x3c8015,_0x37f14a,_0x815f8){const _0x488e90=a239_0x3e4e;return _0x3c8015[_0x488e90(0xfb)]===_0x37f14a&&typeof _0x3c8015['lastNotifiedAt']===_0x488e90(0xde)&&_0x815f8-_0x3c8015[_0x488e90(0xfe)]<UPDATE_NOTICE_TTL_MS;}export function buildNpmVersionUrl(_0x5b1abf){const _0x590aa6=a239_0x3e4e;return _0x590aa6(0xf8)+NPM_PACKAGE_NAME+_0x590aa6(0xe7)+_0x5b1abf;}export async function resolveLatestUpdateNotice(){const _0x34015a=a239_0x3e4e;if(isUpdateNoticeDisabled())return null;try{const _0x1dc35e=Date[_0x34015a(0xf6)](),_0x5a81bf=getCliVersion(),_0x3be6aa=await readUpdateNoticeCache();let _0x282144=isFreshCheck(_0x3be6aa,_0x1dc35e)?_0x3be6aa['latest']?.[_0x34015a(0xe9)]():undefined;if(!_0x282144&&!isFreshCheck(_0x3be6aa,_0x1dc35e)){const _0x5d1b59=await getCliVersionPolicy();_0x282144=_0x5d1b59?.[_0x34015a(0xfd)]?.[_0x34015a(0xe9)]()||undefined,await writeUpdateNoticeCache({..._0x3be6aa,'checkedAt':_0x1dc35e,'latest':_0x282144,'failed':!_0x282144});}if(!_0x282144||!a239_0x4f8bca[_0x34015a(0xec)](_0x5a81bf)||!a239_0x4f8bca[_0x34015a(0xec)](_0x282144))return null;if(a239_0x4f8bca[_0x34015a(0xf9)](_0x5a81bf,_0x282144))return null;if(isRecentlyNotified(_0x3be6aa,_0x282144,_0x1dc35e))return null;const _0x5089dc=CLI_BIN_NAME+_0x34015a(0xed);return await writeUpdateNoticeCache({..._0x3be6aa,'checkedAt':isFreshCheck(_0x3be6aa,_0x1dc35e)?_0x3be6aa[_0x34015a(0xe8)]:_0x1dc35e,'latest':_0x282144,'failed':![],'lastNotifiedVersion':_0x282144,'lastNotifiedAt':_0x1dc35e}),{'command':_0x5089dc,'current':_0x5a81bf,'latest':_0x282144,'url':buildNpmVersionUrl(_0x282144),'message':CLI_BIN_NAME+'\x20'+_0x282144+_0x34015a(0xf7)+_0x5a81bf+_0x34015a(0xf0)+_0x5089dc};}catch{return null;}}
1
+ (function(_0x2687f9,_0xbdac57){const _0x5ec56e=a239_0x5da2,_0x7521d9=_0x2687f9();while(!![]){try{const _0xb049e9=-parseInt(_0x5ec56e(0x69))/0x1+parseInt(_0x5ec56e(0x6f))/0x2+-parseInt(_0x5ec56e(0x7c))/0x3+parseInt(_0x5ec56e(0x7a))/0x4+parseInt(_0x5ec56e(0x6c))/0x5*(-parseInt(_0x5ec56e(0x73))/0x6)+parseInt(_0x5ec56e(0x6d))/0x7+parseInt(_0x5ec56e(0x74))/0x8;if(_0xb049e9===_0xbdac57)break;else _0x7521d9['push'](_0x7521d9['shift']());}catch(_0x4aff4c){_0x7521d9['push'](_0x7521d9['shift']());}}}(a239_0x2828,0xe4e7d));import{mkdir,readFile,writeFile}from'node:fs/promises';import{homedir}from'node:os';import{dirname,join}from'node:path';import a239_0x3353f9 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 _0x1c316e=a239_0x5da2,_0x57ce90=process.env.RABETBASE_NO_UPDATE_NOTICE?.[_0x1c316e(0x7d)]()['toLowerCase']();return _0x57ce90==='1'||_0x57ce90===_0x1c316e(0x76)||_0x57ce90===_0x1c316e(0x7e);}function cacheRoot(){const _0x4844c3=a239_0x5da2;return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),_0x4844c3(0x6e));}export function getUpdateNoticeCachePath(){const _0x2d37ec=a239_0x5da2;return join(cacheRoot(),_0x2d37ec(0x77),'update-check.json');}async function readUpdateNoticeCache(){const _0x1716a3=a239_0x5da2;try{const _0x456b0a=await readFile(getUpdateNoticeCachePath(),_0x1716a3(0x70)),_0x5cad84=JSON['parse'](_0x456b0a);if(!_0x5cad84||typeof _0x5cad84!==_0x1716a3(0x71))return{};return _0x5cad84;}catch{return{};}}async function writeUpdateNoticeCache(_0x57ff65){const _0x8ff577=a239_0x5da2;try{const _0x1dca74=getUpdateNoticeCachePath();await mkdir(dirname(_0x1dca74),{'recursive':!![]}),await writeFile(_0x1dca74,JSON[_0x8ff577(0x75)](_0x57ff65,null,0x2)+'\x0a',_0x8ff577(0x70));}catch{}}function isFreshCheck(_0x343226,_0x39a2e1){const _0x3251b8=a239_0x5da2;return typeof _0x343226[_0x3251b8(0x7b)]===_0x3251b8(0x6b)&&_0x39a2e1-_0x343226[_0x3251b8(0x7b)]<UPDATE_CHECK_TTL_MS;}function a239_0x5da2(_0x4a52d3,_0x25a4a7){_0x4a52d3=_0x4a52d3-0x66;const _0x2828c1=a239_0x2828();let _0x5da235=_0x2828c1[_0x4a52d3];return _0x5da235;}function isRecentlyNotified(_0x4f65e5,_0x19244b,_0xde9cdd){const _0xe5024d=a239_0x5da2;return _0x4f65e5[_0xe5024d(0x68)]===_0x19244b&&typeof _0x4f65e5[_0xe5024d(0x80)]===_0xe5024d(0x6b)&&_0xde9cdd-_0x4f65e5[_0xe5024d(0x80)]<UPDATE_NOTICE_TTL_MS;}export function buildNpmVersionUrl(_0x845e9e){const _0x2a7770=a239_0x5da2;return'https://www.npmjs.com/package/'+NPM_PACKAGE_NAME+_0x2a7770(0x79)+_0x845e9e;}export async function resolveLatestUpdateNotice(){const _0x54609f=a239_0x5da2;if(isUpdateNoticeDisabled())return null;try{const _0x956dbe=Date[_0x54609f(0x67)](),_0xdca2ec=getCliVersion(),_0x3c3df8=await readUpdateNoticeCache();let _0x53ce21=isFreshCheck(_0x3c3df8,_0x956dbe)?_0x3c3df8[_0x54609f(0x66)]?.[_0x54609f(0x7d)]():undefined;if(!_0x53ce21&&!isFreshCheck(_0x3c3df8,_0x956dbe)){const _0x5d2d4e=await getCliVersionPolicy();_0x53ce21=_0x5d2d4e?.['stableVersion']?.[_0x54609f(0x7d)]()||undefined,await writeUpdateNoticeCache({..._0x3c3df8,'checkedAt':_0x956dbe,'latest':_0x53ce21,'failed':!_0x53ce21});}if(!_0x53ce21||!a239_0x3353f9[_0x54609f(0x6a)](_0xdca2ec)||!a239_0x3353f9[_0x54609f(0x6a)](_0x53ce21))return null;if(a239_0x3353f9[_0x54609f(0x72)](_0xdca2ec,_0x53ce21))return null;if(isRecentlyNotified(_0x3c3df8,_0x53ce21,_0x956dbe))return null;const _0x26ebba=CLI_BIN_NAME+_0x54609f(0x78);return await writeUpdateNoticeCache({..._0x3c3df8,'checkedAt':isFreshCheck(_0x3c3df8,_0x956dbe)?_0x3c3df8['checkedAt']:_0x956dbe,'latest':_0x53ce21,'failed':![],'lastNotifiedVersion':_0x53ce21,'lastNotifiedAt':_0x956dbe}),{'command':_0x26ebba,'current':_0xdca2ec,'latest':_0x53ce21,'url':buildNpmVersionUrl(_0x53ce21),'message':CLI_BIN_NAME+'\x20'+_0x53ce21+'\x20available,\x20current\x20'+_0xdca2ec+_0x54609f(0x7f)+_0x26ebba};}catch{return null;}}function a239_0x2828(){const _0xb0aeb2=['trim','yes',',\x20run:\x20','lastNotifiedAt','latest','now','lastNotifiedVersion','594861eUMCqh','valid','number','8222745mKRVbK','1225238GLtajN','.cache','586040BXIrHy','utf8','object','gte','6LLgHtH','19965744pAMgXk','stringify','true','rabetbase-cli','\x20update','/v/','7172120SoXKIZ','checkedAt','4739385xKNlSj'];a239_0x2828=function(){return _0xb0aeb2;};return a239_0x2828();}
@@ -1 +1 @@
1
- (function(_0x176ad7,_0x267771){var _0xbf9ab4=a240_0x591f,_0x2d8a59=_0x176ad7();while(!![]){try{var _0x597a70=-parseInt(_0xbf9ab4(0x167))/0x1*(-parseInt(_0xbf9ab4(0x164))/0x2)+-parseInt(_0xbf9ab4(0x16b))/0x3*(-parseInt(_0xbf9ab4(0x169))/0x4)+parseInt(_0xbf9ab4(0x16c))/0x5*(parseInt(_0xbf9ab4(0x16a))/0x6)+-parseInt(_0xbf9ab4(0x165))/0x7*(parseInt(_0xbf9ab4(0x168))/0x8)+parseInt(_0xbf9ab4(0x166))/0x9+-parseInt(_0xbf9ab4(0x162))/0xa+-parseInt(_0xbf9ab4(0x163))/0xb;if(_0x597a70===_0x267771)break;else _0x2d8a59['push'](_0x2d8a59['shift']());}catch(_0x5e45ea){_0x2d8a59['push'](_0x2d8a59['shift']());}}}(a240_0x385e,0x3c25e));function a240_0x591f(_0x336d71,_0x2d6fd2){_0x336d71=_0x336d71-0x162;var _0x385e04=a240_0x385e();var _0x591f62=_0x385e04[_0x336d71];return _0x591f62;}import{VERSION}from'../generated/build-info.js';export function getCliVersion(){return VERSION;}function a240_0x385e(){var _0x456f85=['14zZDJBK','16121eHdStR','416817surUIv','57482vqFYxP','232tuiFEd','1299408KXZbbc','6228WVeCXL','3bcpPPc','445SFRhux','4780580vXtsUT','821810eoheeZ'];a240_0x385e=function(){return _0x456f85;};return a240_0x385e();}
1
+ (function(_0x265c0c,_0x39460b){var _0x517320=a240_0x3493,_0xbe85f0=_0x265c0c();while(!![]){try{var _0x1ffe96=parseInt(_0x517320(0xe7))/0x1*(-parseInt(_0x517320(0xe4))/0x2)+parseInt(_0x517320(0xe9))/0x3+parseInt(_0x517320(0xeb))/0x4*(parseInt(_0x517320(0xe5))/0x5)+parseInt(_0x517320(0xe2))/0x6+parseInt(_0x517320(0xe3))/0x7+-parseInt(_0x517320(0xea))/0x8*(parseInt(_0x517320(0xe8))/0x9)+-parseInt(_0x517320(0xe6))/0xa;if(_0x1ffe96===_0x39460b)break;else _0xbe85f0['push'](_0xbe85f0['shift']());}catch(_0x58b5ff){_0xbe85f0['push'](_0xbe85f0['shift']());}}}(a240_0x2136,0xb77ce));function a240_0x2136(){var _0x2f836b=['33500370emfqWa','1ZTlWZD','9XJMraP','4278159EtArbo','3841600UaJQwI','8HCdtkv','7693602qihBAo','3129238ikorfw','13278hKWCON','3582720qNfumz'];a240_0x2136=function(){return _0x2f836b;};return a240_0x2136();}function a240_0x3493(_0x309123,_0x31acdd){_0x309123=_0x309123-0xe2;var _0x2136cd=a240_0x2136();var _0x349394=_0x2136cd[_0x309123];return _0x349394;}import{VERSION}from'../generated/build-info.js';export function getCliVersion(){return VERSION;}
@@ -1 +1 @@
1
- function a241_0x100b(_0x245462,_0xb572dc){_0x245462=_0x245462-0x6a;var _0x4495bb=a241_0x4495();var _0x100bcb=_0x4495bb[_0x245462];return _0x100bcb;}function a241_0x4495(){var _0x3b3f1a=['136vdfHNu','21326976hXjdDY','872242GkdQmB','364511DEyblF','4413008TynfyV','308802yIijKv','3490752EsOfkd','242347ziQgDx','5PmDzdZ'];a241_0x4495=function(){return _0x3b3f1a;};return a241_0x4495();}(function(_0x23b5f7,_0x207686){var _0x52baae=a241_0x100b,_0x5b32e9=_0x23b5f7();while(!![]){try{var _0x2e75dd=-parseInt(_0x52baae(0x6a))/0x1+-parseInt(_0x52baae(0x72))/0x2+parseInt(_0x52baae(0x6c))/0x3+parseInt(_0x52baae(0x6b))/0x4*(-parseInt(_0x52baae(0x6f))/0x5)+-parseInt(_0x52baae(0x6d))/0x6+-parseInt(_0x52baae(0x6e))/0x7*(-parseInt(_0x52baae(0x70))/0x8)+parseInt(_0x52baae(0x71))/0x9;if(_0x2e75dd===_0x207686)break;else _0x5b32e9['push'](_0x5b32e9['shift']());}catch(_0x4374fa){_0x5b32e9['push'](_0x5b32e9['shift']());}}}(a241_0x4495,0x8c7f7));import{setActiveCookie,clearActiveCookie}from'../core/api-client.js';export async function withActiveCookie(_0x5b09e5,_0x30dfc9){setActiveCookie(_0x5b09e5);try{return await _0x30dfc9();}finally{clearActiveCookie();}}
1
+ function a241_0x5e0f(){var _0x66f0d1=['365838VaQtfn','10jcCPyk','1012792vCHYip','281450wrAbuv','35GFiPOI','73263AmQiUI','1165965HZEMJb','7tchOCn','187424RgVxpB','157110BxUjrG','18xShiIG'];a241_0x5e0f=function(){return _0x66f0d1;};return a241_0x5e0f();}function a241_0x30a9(_0x42bd6f,_0x5aa536){_0x42bd6f=_0x42bd6f-0xa0;var _0x5e0fc7=a241_0x5e0f();var _0x30a99a=_0x5e0fc7[_0x42bd6f];return _0x30a99a;}(function(_0x1fcbf0,_0x20a0dd){var _0x3d317a=a241_0x30a9,_0x694662=_0x1fcbf0();while(!![]){try{var _0x2d972e=parseInt(_0x3d317a(0xa2))/0x1*(-parseInt(_0x3d317a(0xa9))/0x2)+parseInt(_0x3d317a(0xa3))/0x3+-parseInt(_0x3d317a(0xa5))/0x4*(-parseInt(_0x3d317a(0xa1))/0x5)+-parseInt(_0x3d317a(0xa6))/0x6*(-parseInt(_0x3d317a(0xa4))/0x7)+-parseInt(_0x3d317a(0xaa))/0x8+-parseInt(_0x3d317a(0xa7))/0x9*(-parseInt(_0x3d317a(0xa0))/0xa)+parseInt(_0x3d317a(0xa8))/0xb;if(_0x2d972e===_0x20a0dd)break;else _0x694662['push'](_0x694662['shift']());}catch(_0x5cbf0d){_0x694662['push'](_0x694662['shift']());}}}(a241_0x5e0f,0x52e0a));import{setActiveCookie,clearActiveCookie}from'../core/api-client.js';export async function withActiveCookie(_0x2b5e91,_0xf9ae6d){setActiveCookie(_0x2b5e91);try{return await _0xf9ae6d();}finally{clearActiveCookie();}}
@@ -1 +1 @@
1
- (function(_0x12d6d5,_0x15a776){var _0x16d824=a242_0xdd38,_0xfc06d0=_0x12d6d5();while(!![]){try{var _0x1f05e0=-parseInt(_0x16d824(0xe4))/0x1+parseInt(_0x16d824(0xe5))/0x2+parseInt(_0x16d824(0xee))/0x3*(parseInt(_0x16d824(0xec))/0x4)+parseInt(_0x16d824(0xf0))/0x5*(parseInt(_0x16d824(0xe9))/0x6)+parseInt(_0x16d824(0xe7))/0x7+-parseInt(_0x16d824(0xea))/0x8*(parseInt(_0x16d824(0xed))/0x9)+parseInt(_0x16d824(0xef))/0xa*(-parseInt(_0x16d824(0xe6))/0xb);if(_0x1f05e0===_0x15a776)break;else _0xfc06d0['push'](_0xfc06d0['shift']());}catch(_0x5e2b28){_0xfc06d0['push'](_0xfc06d0['shift']());}}}(a242_0x37c2,0x1c4a0));function a242_0x37c2(){var _0x34364e=['90qoPKui','70wXmnpU','75fEJTnQ','51490kjiIxz','428554NoVJmS','578391KsXBLH','127428gyDBnZ','write','66558cDVpHd','8jjEyOJ','stderr','24720XVUdyf','439623tUTgJH'];a242_0x37c2=function(){return _0x34364e;};return a242_0x37c2();}function a242_0xdd38(_0x15ffd2,_0x5445f0){_0x15ffd2=_0x15ffd2-0xe4;var _0x37c28e=a242_0x37c2();var _0xdd38f6=_0x37c28e[_0x15ffd2];return _0xdd38f6;}export function writeCliSideChannelLine(_0x2bd512){var _0x207b07=a242_0xdd38;process[_0x207b07(0xeb)][_0x207b07(0xe8)](_0x2bd512+'\x0a');}
1
+ function a242_0x1ee8(_0x43eca6,_0x3c558f){_0x43eca6=_0x43eca6-0x15d;var _0xcb371b=a242_0xcb37();var _0x1ee87e=_0xcb371b[_0x43eca6];return _0x1ee87e;}function a242_0xcb37(){var _0x3e7bb6=['write','5748SemTNF','28260sfrBrV','1449303evRVPo','1042426KpVfOR','234168JUUsMi','405VYIzRf','195569xlDZTa','720QzKGqA','1130baRCrC','stderr','39280NGkotG','3563FMhLqu'];a242_0xcb37=function(){return _0x3e7bb6;};return a242_0xcb37();}(function(_0x595175,_0x24491c){var _0x14b725=a242_0x1ee8,_0x5ec724=_0x595175();while(!![]){try{var _0xd15347=-parseInt(_0x14b725(0x164))/0x1+parseInt(_0x14b725(0x15e))/0x2+parseInt(_0x14b725(0x163))/0x3+-parseInt(_0x14b725(0x168))/0x4*(-parseInt(_0x14b725(0x162))/0x5)+-parseInt(_0x14b725(0x161))/0x6*(parseInt(_0x14b725(0x15f))/0x7)+-parseInt(_0x14b725(0x165))/0x8*(parseInt(_0x14b725(0x166))/0x9)+parseInt(_0x14b725(0x169))/0xa*(parseInt(_0x14b725(0x167))/0xb);if(_0xd15347===_0x24491c)break;else _0x5ec724['push'](_0x5ec724['shift']());}catch(_0x3d9ab1){_0x5ec724['push'](_0x5ec724['shift']());}}}(a242_0xcb37,0xa679d));export function writeCliSideChannelLine(_0x38ba5e){var _0x1d7c0c=a242_0x1ee8;process[_0x1d7c0c(0x15d)][_0x1d7c0c(0x160)](_0x38ba5e+'\x0a');}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lovrabet/rabetbase-cli",
3
- "version": "2.3.5-beta.1",
3
+ "version": "2.3.6-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": [