@lovrabet/rabetbase-cli 2.1.6-beta.0 → 2.1.7-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (196) hide show
  1. package/lib/api/api-doc.js +1 -1
  2. package/lib/api/fetch-model-list.js +1 -1
  3. package/lib/api/generate-api-file.js +1 -1
  4. package/lib/auth/auth-server-ui.js +1 -1
  5. package/lib/auth/auth-server.js +1 -1
  6. package/lib/auth/constant.js +1 -1
  7. package/lib/auth/get-cookie.js +1 -1
  8. package/lib/auth/get-session-user.js +1 -1
  9. package/lib/auth/is-session-valid.js +1 -1
  10. package/lib/auth/login-success-html.js +1 -1
  11. package/lib/auth/logout.js +1 -1
  12. package/lib/cli-flags.js +1 -1
  13. package/lib/cli.js +1 -1
  14. package/lib/commands/api/generate.js +1 -1
  15. package/lib/commands/api/index.js +1 -1
  16. package/lib/commands/api/list.js +1 -1
  17. package/lib/commands/api/pull.js +1 -1
  18. package/lib/commands/api/shared.js +1 -1
  19. package/lib/commands/app/add.js +1 -1
  20. package/lib/commands/app/discover.js +1 -1
  21. package/lib/commands/app/index.js +1 -1
  22. package/lib/commands/app/list.js +1 -1
  23. package/lib/commands/app/remove.js +1 -1
  24. package/lib/commands/app/shared.js +1 -1
  25. package/lib/commands/app/use.js +1 -1
  26. package/lib/commands/auth/index.js +1 -1
  27. package/lib/commands/bff/create.js +1 -1
  28. package/lib/commands/bff/delete.js +1 -1
  29. package/lib/commands/bff/detail.js +1 -1
  30. package/lib/commands/bff/index.js +1 -1
  31. package/lib/commands/bff/list.js +1 -1
  32. package/lib/commands/bff/pull.js +1 -1
  33. package/lib/commands/bff/push.js +1 -1
  34. package/lib/commands/bff/status.js +1 -1
  35. package/lib/commands/cli-update.js +1 -1
  36. package/lib/commands/codegen/index.js +1 -1
  37. package/lib/commands/codegen/sdk.js +1 -1
  38. package/lib/commands/codegen/sql.js +1 -1
  39. package/lib/commands/common/app-selector.js +1 -1
  40. package/lib/commands/common/flags.js +1 -1
  41. package/lib/commands/common/validate.js +1 -1
  42. package/lib/commands/config/get.js +1 -1
  43. package/lib/commands/config/index.js +1 -1
  44. package/lib/commands/config/list.js +1 -1
  45. package/lib/commands/config/set.js +1 -1
  46. package/lib/commands/config/shared.js +1 -1
  47. package/lib/commands/data/filter.js +1 -1
  48. package/lib/commands/data/getOne.js +1 -1
  49. package/lib/commands/data/index.js +1 -1
  50. package/lib/commands/data/shared.js +1 -1
  51. package/lib/commands/dataset/delete.js +1 -0
  52. package/lib/commands/dataset/detail.js +1 -1
  53. package/lib/commands/dataset/index.js +1 -1
  54. package/lib/commands/dataset/link-create.js +1 -0
  55. package/lib/commands/dataset/link-delete.js +1 -0
  56. package/lib/commands/dataset/link-shared.js +1 -0
  57. package/lib/commands/dataset/link-update.js +1 -0
  58. package/lib/commands/dataset/links.js +1 -1
  59. package/lib/commands/dataset/list.js +1 -1
  60. package/lib/commands/dataset/operations.js +1 -1
  61. package/lib/commands/db/analyze-cancel.js +1 -1
  62. package/lib/commands/db/analyze-start.js +1 -1
  63. package/lib/commands/db/analyze-status.js +1 -1
  64. package/lib/commands/db/create.js +1 -1
  65. package/lib/commands/db/delete.js +1 -1
  66. package/lib/commands/db/detail.js +1 -1
  67. package/lib/commands/db/diff.js +1 -1
  68. package/lib/commands/db/index.js +1 -1
  69. package/lib/commands/db/list.js +1 -1
  70. package/lib/commands/db/shared.js +1 -1
  71. package/lib/commands/db/tables.js +1 -1
  72. package/lib/commands/db/test.js +1 -1
  73. package/lib/commands/db/update.js +1 -1
  74. package/lib/commands/doctor.js +1 -1
  75. package/lib/commands/init/index.js +1 -1
  76. package/lib/commands/issue/index.js +1 -0
  77. package/lib/commands/issue/report.js +1 -0
  78. package/lib/commands/logs/index.js +1 -1
  79. package/lib/commands/menu/index.js +1 -1
  80. package/lib/commands/menu/shared/compare-table.js +1 -1
  81. package/lib/commands/menu/shared/index.js +1 -1
  82. package/lib/commands/menu/shared/inquirer.js +1 -1
  83. package/lib/commands/menu/shared/local-pages.js +1 -1
  84. package/lib/commands/menu/shared/logic.js +1 -1
  85. package/lib/commands/menu/shared/service.js +1 -1
  86. package/lib/commands/menu/shared/sync-core.js +1 -1
  87. package/lib/commands/menu/shared/update-core.js +1 -1
  88. package/lib/commands/menu/shared/valid-url.js +1 -1
  89. package/lib/commands/menu/sync.js +1 -1
  90. package/lib/commands/menu/update.js +1 -1
  91. package/lib/commands/page/generate-start.js +1 -1
  92. package/lib/commands/page/generate-status.js +1 -1
  93. package/lib/commands/page/index.js +1 -1
  94. package/lib/commands/page/pull.js +1 -1
  95. package/lib/commands/page/push.js +1 -1
  96. package/lib/commands/page/shared.js +1 -1
  97. package/lib/commands/page/standard-page-status.js +1 -1
  98. package/lib/commands/page/sync.js +1 -1
  99. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  100. package/lib/commands/project/create/format-elapsed.js +1 -1
  101. package/lib/commands/project/create/main.js +1 -1
  102. package/lib/commands/project/create/non-interactive.js +1 -1
  103. package/lib/commands/project/create/project-template-path.js +1 -1
  104. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  105. package/lib/commands/project/create/use-format-code.js +1 -1
  106. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  107. package/lib/commands/project/index.js +1 -1
  108. package/lib/commands/project/init.js +1 -1
  109. package/lib/commands/project/upgrade.js +1 -1
  110. package/lib/commands/registry.js +1 -1
  111. package/lib/commands/run/index.js +1 -1
  112. package/lib/commands/schema.js +1 -1
  113. package/lib/commands/skill/index.js +1 -1
  114. package/lib/commands/sql/create.js +1 -1
  115. package/lib/commands/sql/delete.js +1 -1
  116. package/lib/commands/sql/detail.js +1 -1
  117. package/lib/commands/sql/exec.js +1 -1
  118. package/lib/commands/sql/index.js +1 -1
  119. package/lib/commands/sql/list.js +1 -1
  120. package/lib/commands/sql/pull.js +1 -1
  121. package/lib/commands/sql/push.js +1 -1
  122. package/lib/commands/sql/save.js +1 -1
  123. package/lib/commands/sql/shared.js +1 -1
  124. package/lib/commands/sql/status.js +1 -1
  125. package/lib/commands/sql/validate.js +1 -1
  126. package/lib/config/schema.js +1 -1
  127. package/lib/constant/cdn.js +1 -1
  128. package/lib/constant/cli.js +1 -1
  129. package/lib/constant/defaults.js +1 -1
  130. package/lib/constant/domain.js +1 -1
  131. package/lib/constant/env.js +1 -1
  132. package/lib/constant/output.js +1 -1
  133. package/lib/constant/paths.js +1 -1
  134. package/lib/constant/risk.js +1 -1
  135. package/lib/context.js +1 -1
  136. package/lib/core/alias-resolver.js +1 -1
  137. package/lib/core/api-client.js +1 -1
  138. package/lib/core/bff/config.js +1 -1
  139. package/lib/core/bff/file-system.js +1 -1
  140. package/lib/core/bff/hash.js +1 -1
  141. package/lib/core/bff/lock.js +1 -1
  142. package/lib/core/bff/utils.js +1 -1
  143. package/lib/core/db-resolver.js +1 -1
  144. package/lib/core/page/file-system.js +1 -1
  145. package/lib/core/page/hash.js +1 -1
  146. package/lib/core/page/lock.js +1 -1
  147. package/lib/core/sql-sync/config.js +1 -1
  148. package/lib/core/sql-sync/file-system.js +1 -1
  149. package/lib/core/sql-sync/hash.js +1 -1
  150. package/lib/core/sql-sync/lock.js +1 -1
  151. package/lib/core/sql-sync/utils.js +1 -1
  152. package/lib/core/sql-validator.js +1 -1
  153. package/lib/errors.js +1 -1
  154. package/lib/framework/build-all-flags.js +1 -1
  155. package/lib/framework/flags.js +1 -1
  156. package/lib/framework/help.js +1 -1
  157. package/lib/framework/index.js +1 -1
  158. package/lib/framework/output.js +1 -1
  159. package/lib/framework/response.js +1 -1
  160. package/lib/framework/runner-alias.js +1 -1
  161. package/lib/framework/runner.js +1 -1
  162. package/lib/framework/schema-export.js +1 -1
  163. package/lib/framework/types.js +1 -1
  164. package/lib/generated/build-info.js +1 -1
  165. package/lib/help.js +1 -1
  166. package/lib/skills/main.js +1 -1
  167. package/lib/skills/npx-skills-add.js +1 -1
  168. package/lib/telemetry/cli-command-trace.js +1 -1
  169. package/lib/telemetry/cli-help-trace.js +1 -1
  170. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  171. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  172. package/lib/telemetry/send-cli-trace-log.js +1 -1
  173. package/lib/telemetry/send-platform-issue-collect-log.js +1 -0
  174. package/lib/utils/ai_config.js +1 -1
  175. package/lib/utils/apply-jq-filter.js +1 -1
  176. package/lib/utils/cdn-config.js +1 -1
  177. package/lib/utils/check-sdk-version.js +1 -1
  178. package/lib/utils/cli-version-check.js +1 -1
  179. package/lib/utils/cli-version-policy.js +1 -1
  180. package/lib/utils/config.js +1 -1
  181. package/lib/utils/copy-directory.js +1 -1
  182. package/lib/utils/entity-with-id.js +1 -1
  183. package/lib/utils/file-utils.js +1 -1
  184. package/lib/utils/guides-cdn.js +1 -1
  185. package/lib/utils/http-client.js +1 -1
  186. package/lib/utils/is-non-interactive.js +1 -1
  187. package/lib/utils/logger.js +1 -1
  188. package/lib/utils/params.js +1 -1
  189. package/lib/utils/platform.js +1 -1
  190. package/lib/utils/rules-cdn.js +1 -1
  191. package/lib/utils/sleep.js +1 -1
  192. package/lib/utils/template-replacer.js +1 -1
  193. package/lib/utils/version.js +1 -1
  194. package/lib/utils/with-active-cookie.js +1 -1
  195. package/lib/utils/write-cli-side-channel.js +1 -1
  196. package/package.json +2 -1
@@ -1 +1 @@
1
- (function(_0xfed1c1,_0x35d0a6){const _0x1f0422=a184_0xe3b6,_0x523e40=_0xfed1c1();while(!![]){try{const _0x2e8bf9=parseInt(_0x1f0422(0x124))/0x1+parseInt(_0x1f0422(0x128))/0x2*(parseInt(_0x1f0422(0x12c))/0x3)+parseInt(_0x1f0422(0x129))/0x4+-parseInt(_0x1f0422(0x11f))/0x5*(parseInt(_0x1f0422(0x126))/0x6)+parseInt(_0x1f0422(0x11d))/0x7+parseInt(_0x1f0422(0x123))/0x8*(-parseInt(_0x1f0422(0x12a))/0x9)+-parseInt(_0x1f0422(0x11e))/0xa;if(_0x2e8bf9===_0x35d0a6)break;else _0x523e40['push'](_0x523e40['shift']());}catch(_0x174e14){_0x523e40['push'](_0x523e40['shift']());}}}(a184_0xd962,0xd2589));function a184_0xe3b6(_0x409e0f,_0x26efb5){_0x409e0f=_0x409e0f-0x11d;const _0xd962fa=a184_0xd962();let _0xe3b609=_0xd962fa[_0x409e0f];return _0xe3b609;}import{CliErrors}from'../errors.js';export function parseJsonParams(_0x17d03b){const _0x37520b=a184_0xe3b6;if(!_0x17d03b)return undefined;let _0x432819;try{_0x432819=JSON[_0x37520b(0x120)](_0x17d03b);}catch{throw CliErrors[_0x37520b(0x12b)](_0x37520b(0x125)+_0x17d03b);}if(!_0x432819||typeof _0x432819!==_0x37520b(0x122)||Array[_0x37520b(0x121)](_0x432819))throw CliErrors[_0x37520b(0x12b)](_0x37520b(0x12d),_0x37520b(0x127));return _0x432819;}function a184_0xd962(){const _0xb96b69=['1164ibvstZ','Example:\x20--params\x20\x27{\x22id\x22:123}\x27','167606lSJnII','5554428KZtCRj','649809BmFJfu','validation','9zKRMuL','--params\x20must\x20be\x20a\x20JSON\x20object','10343382Javaqk','24857060HbwUmi','13530qZLpXk','parse','isArray','object','16ghUzZb','899007uuYAbb','Invalid\x20JSON\x20for\x20--params:\x20'];a184_0xd962=function(){return _0xb96b69;};return a184_0xd962();}
1
+ (function(_0x46a497,_0x1f2cd9){const _0x14c5d6=a192_0x2b79,_0x33fc11=_0x46a497();while(!![]){try{const _0xf90f89=parseInt(_0x14c5d6(0x157))/0x1*(-parseInt(_0x14c5d6(0x156))/0x2)+parseInt(_0x14c5d6(0x159))/0x3+parseInt(_0x14c5d6(0x154))/0x4+-parseInt(_0x14c5d6(0x15b))/0x5+-parseInt(_0x14c5d6(0x15f))/0x6+-parseInt(_0x14c5d6(0x15d))/0x7*(parseInt(_0x14c5d6(0x15e))/0x8)+parseInt(_0x14c5d6(0x160))/0x9;if(_0xf90f89===_0x1f2cd9)break;else _0x33fc11['push'](_0x33fc11['shift']());}catch(_0x22860c){_0x33fc11['push'](_0x33fc11['shift']());}}}(a192_0x4a53,0x87584));function a192_0x2b79(_0x4747b3,_0x370caf){_0x4747b3=_0x4747b3-0x154;const _0x4a53ff=a192_0x4a53();let _0x2b796c=_0x4a53ff[_0x4747b3];return _0x2b796c;}function a192_0x4a53(){const _0x32654e=['object','5078utKmfY','8fJXGZD','Invalid\x20JSON\x20for\x20--params:\x20','828630dronNe','validation','5084125TMEMUA','isArray','7763hMRUhh','2056XvaQyz','4377210YTHHMQ','12848454OdGCwq','3608964mJngBB'];a192_0x4a53=function(){return _0x32654e;};return a192_0x4a53();}import{CliErrors}from'../errors.js';export function parseJsonParams(_0x1d6f55){const _0x961b26=a192_0x2b79;if(!_0x1d6f55)return undefined;let _0x464dc4;try{_0x464dc4=JSON['parse'](_0x1d6f55);}catch{throw CliErrors[_0x961b26(0x15a)](_0x961b26(0x158)+_0x1d6f55);}if(!_0x464dc4||typeof _0x464dc4!==_0x961b26(0x155)||Array[_0x961b26(0x15c)](_0x464dc4))throw CliErrors[_0x961b26(0x15a)]('--params\x20must\x20be\x20a\x20JSON\x20object','Example:\x20--params\x20\x27{\x22id\x22:123}\x27');return _0x464dc4;}
@@ -1 +1 @@
1
- const a185_0x11d193=a185_0x2f1d;function a185_0x412b(){const _0x39929a=['265116tkgCNs','4194515KJZgAJ','352360gmZphm','win32','134344HmsKYx','77EjVdqJ','1009476KEWCay','14tpzoXz','81apeJUJ','22qxvuqU','21029530TWcVEt','834192hfCHUe'];a185_0x412b=function(){return _0x39929a;};return a185_0x412b();}(function(_0x33f336,_0xfc6d06){const _0x3f891d=a185_0x2f1d,_0x114724=_0x33f336();while(!![]){try{const _0x5bdb8f=-parseInt(_0x3f891d(0x1c6))/0x1*(parseInt(_0x3f891d(0x1c3))/0x2)+-parseInt(_0x3f891d(0x1c5))/0x3+-parseInt(_0x3f891d(0x1cd))/0x4+-parseInt(_0x3f891d(0x1cc))/0x5+-parseInt(_0x3f891d(0x1cb))/0x6*(parseInt(_0x3f891d(0x1c4))/0x7)+parseInt(_0x3f891d(0x1ca))/0x8*(-parseInt(_0x3f891d(0x1c7))/0x9)+-parseInt(_0x3f891d(0x1c9))/0xa*(-parseInt(_0x3f891d(0x1c8))/0xb);if(_0x5bdb8f===_0xfc6d06)break;else _0x114724['push'](_0x114724['shift']());}catch(_0x261ffa){_0x114724['push'](_0x114724['shift']());}}}(a185_0x412b,0x8cfdd));function a185_0x2f1d(_0x3ddacb,_0x185a02){_0x3ddacb=_0x3ddacb-0x1c2;const _0x412bd3=a185_0x412b();let _0x2f1df2=_0x412bd3[_0x3ddacb];return _0x2f1df2;}export const isWindows=process['platform']===a185_0x11d193(0x1c2);export function resolveNpmBin(_0x238c71){return isWindows?_0x238c71+'.cmd':_0x238c71;}
1
+ const a193_0x3741bf=a193_0x3f07;(function(_0x14a5b6,_0x204abd){const _0xba6e34=a193_0x3f07,_0x2ceeca=_0x14a5b6();while(!![]){try{const _0x5af51a=-parseInt(_0xba6e34(0x7c))/0x1+-parseInt(_0xba6e34(0x79))/0x2+parseInt(_0xba6e34(0x77))/0x3+parseInt(_0xba6e34(0x7b))/0x4+-parseInt(_0xba6e34(0x74))/0x5+parseInt(_0xba6e34(0x76))/0x6*(-parseInt(_0xba6e34(0x78))/0x7)+parseInt(_0xba6e34(0x75))/0x8*(parseInt(_0xba6e34(0x7a))/0x9);if(_0x5af51a===_0x204abd)break;else _0x2ceeca['push'](_0x2ceeca['shift']());}catch(_0x3b961b){_0x2ceeca['push'](_0x2ceeca['shift']());}}}(a193_0xed68,0x98c1d));function a193_0x3f07(_0x3d4408,_0x5c3c0b){_0x3d4408=_0x3d4408-0x74;const _0xed6876=a193_0xed68();let _0x3f0753=_0xed6876[_0x3d4408];return _0x3f0753;}export const isWindows=process[a193_0x3741bf(0x7d)]==='win32';export function resolveNpmBin(_0x4d6e1d){return isWindows?_0x4d6e1d+'.cmd':_0x4d6e1d;}function a193_0xed68(){const _0x5bbf2c=['9QkyaEn','120480ANxvcE','547256jueVTm','platform','1733905NJZLDZ','23689128kCtEVF','12aCNqSH','30894PAyFYK','3522491UpSbst','950806VqOugC'];a193_0xed68=function(){return _0x5bbf2c;};return a193_0xed68();}
@@ -1 +1 @@
1
- (function(_0x224867,_0x306c05){const _0x2fd3f5=a186_0x307f,_0xcde91c=_0x224867();while(!![]){try{const _0x5731e0=-parseInt(_0x2fd3f5(0x86))/0x1*(parseInt(_0x2fd3f5(0x8d))/0x2)+parseInt(_0x2fd3f5(0x8e))/0x3*(parseInt(_0x2fd3f5(0x90))/0x4)+parseInt(_0x2fd3f5(0x83))/0x5*(parseInt(_0x2fd3f5(0x93))/0x6)+-parseInt(_0x2fd3f5(0x94))/0x7*(-parseInt(_0x2fd3f5(0x9a))/0x8)+-parseInt(_0x2fd3f5(0x84))/0x9+-parseInt(_0x2fd3f5(0x89))/0xa*(-parseInt(_0x2fd3f5(0x8a))/0xb)+-parseInt(_0x2fd3f5(0x91))/0xc;if(_0x5731e0===_0x306c05)break;else _0xcde91c['push'](_0xcde91c['shift']());}catch(_0x377f34){_0xcde91c['push'](_0xcde91c['shift']());}}}(a186_0x1fb1,0x2386a));function a186_0x1fb1(){const _0x10d281=['1510335LkglVd','content','18052SLzrKD','agents.md','lastUpdated','20cQwuVx','1128424TGiJwE','CDN\x20返回数据格式错误','.cursor/rules','28uDWCpj','12hDnzJN','lovrabet_rules.mdc','245576JiauIG','4039956vsFrRM','statusText','410682cbNhgs','1726445vWAXdm','本地模板文件不存在:\x20','utf-8','status','application/json','catch','8psMmZR','15cZpbbt'];a186_0x1fb1=function(){return _0x10d281;};return a186_0x1fb1();}import{existsSync,mkdirSync,readFileSync,writeFileSync}from'node:fs';function a186_0x307f(_0x3b747b,_0x1e527c){_0x3b747b=_0x3b747b-0x83;const _0x1fb15d=a186_0x1fb1();let _0x307fa8=_0x1fb15d[_0x3b747b];return _0x307fa8;}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 _0x285ee7=getTemplateBaseUrl();return _0x285ee7+'/rules/rules.json';}const LOCAL_TEMPLATE_PATH=resolve(__dirname,'../../templates/rules/lovrabet_rules.mdc.tpl');export async function fetchRulesFromCDN(){const _0x511130=a186_0x307f,_0x2fcf5f=getRulesCdnUrl(),_0x46964c=await fetch(_0x2fcf5f,{'headers':{'Accept':_0x511130(0x98)}});if(!_0x46964c['ok'])throw new Error('CDN\x20请求失败:\x20'+_0x46964c[_0x511130(0x97)]+'\x20'+_0x46964c[_0x511130(0x92)]);const _0x144b50=await _0x46964c['json']();if(!_0x144b50[_0x511130(0x85)]||typeof _0x144b50['content']!=='string')throw new Error(_0x511130(0x8b));return _0x144b50;}export async function getRulesContent(){const _0x5d7f8c=a186_0x307f;try{const _0x568b70=await fetchRulesFromCDN();return _0x568b70[_0x5d7f8c(0x85)];}catch{return readLocalTemplate();}}export function readLocalTemplate(){const _0x11d591=a186_0x307f;if(existsSync(LOCAL_TEMPLATE_PATH))return readFileSync(LOCAL_TEMPLATE_PATH,_0x11d591(0x96));throw new Error(_0x11d591(0x95)+LOCAL_TEMPLATE_PATH);}export async function writeRulesFile(_0x26f380){const _0x952f24=a186_0x307f,_0x22c389=await fetchRulesFromCDN()[_0x952f24(0x99)](()=>null);let _0xd99ce0;_0x22c389?(_0xd99ce0=_0x22c389[_0x952f24(0x85)],_0x22c389[_0x952f24(0x88)]&&(_0xd99ce0=appendUpdateTime(_0xd99ce0,_0x22c389[_0x952f24(0x88)]))):_0xd99ce0=readLocalTemplate();const _0x4ba146=dirname(_0x26f380);!existsSync(_0x4ba146)&&mkdirSync(_0x4ba146,{'recursive':!![]}),writeFileSync(_0x26f380,_0xd99ce0,'utf-8');}export async function copyRulesToCursor(_0x2aca5a){const _0x315dbb=a186_0x307f,_0x334c1=join(_0x2aca5a,_0x315dbb(0x8c)),_0x2d734a=join(_0x334c1,_0x315dbb(0x8f));if(existsSync(_0x2d734a))return![];return await writeRulesFile(_0x2d734a),!![];}export async function copyRulesToAgentsMd(_0x152065){const _0x403f99=a186_0x307f,_0x22257d=join(_0x152065,_0x403f99(0x87));if(existsSync(_0x22257d))return![];return await writeRulesFile(_0x22257d),!![];}
1
+ const a194_0x48fd38=a194_0x4dbf;(function(_0x574cb3,_0x23cc96){const _0xf3ca50=a194_0x4dbf,_0x2f400a=_0x574cb3();while(!![]){try{const _0x3372aa=-parseInt(_0xf3ca50(0x128))/0x1*(-parseInt(_0xf3ca50(0x120))/0x2)+parseInt(_0xf3ca50(0x12a))/0x3+-parseInt(_0xf3ca50(0x127))/0x4*(-parseInt(_0xf3ca50(0x11c))/0x5)+-parseInt(_0xf3ca50(0x12d))/0x6+parseInt(_0xf3ca50(0x121))/0x7+-parseInt(_0xf3ca50(0x130))/0x8*(-parseInt(_0xf3ca50(0x122))/0x9)+-parseInt(_0xf3ca50(0x11e))/0xa*(parseInt(_0xf3ca50(0x12b))/0xb);if(_0x3372aa===_0x23cc96)break;else _0x2f400a['push'](_0x2f400a['shift']());}catch(_0x3d613a){_0x2f400a['push'](_0x2f400a['shift']());}}}(a194_0x26c5,0xb97d7));import{existsSync,mkdirSync,readFileSync,writeFileSync}from'node:fs';import{dirname,join,resolve}from'node:path';import{fileURLToPath}from'node:url';import{getTemplateBaseUrl}from'../utils/config.js';import{appendUpdateTime}from'../utils/guides-cdn.js';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);function getRulesCdnUrl(){const _0x505264=a194_0x4dbf,_0x5222c6=getTemplateBaseUrl();return _0x5222c6+_0x505264(0x11a);}const LOCAL_TEMPLATE_PATH=resolve(__dirname,a194_0x48fd38(0x119));export async function fetchRulesFromCDN(){const _0x3840d8=a194_0x48fd38,_0x548126=getRulesCdnUrl(),_0x25bc50=await fetch(_0x548126,{'headers':{'Accept':'application/json'}});if(!_0x25bc50['ok'])throw new Error(_0x3840d8(0x11b)+_0x25bc50[_0x3840d8(0x129)]+'\x20'+_0x25bc50['statusText']);const _0x2efba3=await _0x25bc50[_0x3840d8(0x12c)]();if(!_0x2efba3['content']||typeof _0x2efba3[_0x3840d8(0x12e)]!==_0x3840d8(0x125))throw new Error(_0x3840d8(0x124));return _0x2efba3;}function a194_0x26c5(){const _0x3628a1=['2459974JQzyYg','json','7358028bCkfDa','content','agents.md','173176ObHJHi','utf-8','../../templates/rules/lovrabet_rules.mdc.tpl','/rules/rules.json','CDN\x20请求失败:\x20','8090DSPalx','本地模板文件不存在:\x20','70SSDzSe','lastUpdated','466mazsxV','7427098xiReKm','450tPTQEw','lovrabet_rules.mdc','CDN\x20返回数据格式错误','string','.cursor/rules','4vvVBet','3181OtHmvC','status','1996164aCjGRG'];a194_0x26c5=function(){return _0x3628a1;};return a194_0x26c5();}export async function getRulesContent(){try{const _0x4f67ef=await fetchRulesFromCDN();return _0x4f67ef['content'];}catch{return readLocalTemplate();}}export function readLocalTemplate(){const _0x13a492=a194_0x48fd38;if(existsSync(LOCAL_TEMPLATE_PATH))return readFileSync(LOCAL_TEMPLATE_PATH,_0x13a492(0x131));throw new Error(_0x13a492(0x11d)+LOCAL_TEMPLATE_PATH);}export async function writeRulesFile(_0x353a61){const _0x22253c=a194_0x48fd38,_0x316701=await fetchRulesFromCDN()['catch'](()=>null);let _0x238a26;_0x316701?(_0x238a26=_0x316701[_0x22253c(0x12e)],_0x316701[_0x22253c(0x11f)]&&(_0x238a26=appendUpdateTime(_0x238a26,_0x316701[_0x22253c(0x11f)]))):_0x238a26=readLocalTemplate();const _0x1ba3c6=dirname(_0x353a61);!existsSync(_0x1ba3c6)&&mkdirSync(_0x1ba3c6,{'recursive':!![]}),writeFileSync(_0x353a61,_0x238a26,_0x22253c(0x131));}export async function copyRulesToCursor(_0x49e75e){const _0x9d0f27=a194_0x48fd38,_0x4071bf=join(_0x49e75e,_0x9d0f27(0x126)),_0x184580=join(_0x4071bf,_0x9d0f27(0x123));if(existsSync(_0x184580))return![];return await writeRulesFile(_0x184580),!![];}function a194_0x4dbf(_0x393827,_0x3f251e){_0x393827=_0x393827-0x119;const _0x26c540=a194_0x26c5();let _0x4dbf02=_0x26c540[_0x393827];return _0x4dbf02;}export async function copyRulesToAgentsMd(_0x27ed79){const _0xccab7f=a194_0x48fd38,_0x3cda23=join(_0x27ed79,_0xccab7f(0x12f));if(existsSync(_0x3cda23))return![];return await writeRulesFile(_0x3cda23),!![];}
@@ -1 +1 @@
1
- export function sleep(_0x490f74){return new Promise(_0x5cbd95=>setTimeout(_0x5cbd95,_0x490f74));}
1
+ export function sleep(_0x1d0344){return new Promise(_0x4403cc=>setTimeout(_0x4403cc,_0x1d0344));}
@@ -1 +1 @@
1
- const a188_0x12dfa6=a188_0x48ac;(function(_0x568486,_0x2eca46){const _0x5f0882=a188_0x48ac,_0x520be2=_0x568486();while(!![]){try{const _0x49adc7=-parseInt(_0x5f0882(0x1f9))/0x1+parseInt(_0x5f0882(0x1f6))/0x2+-parseInt(_0x5f0882(0x20d))/0x3*(-parseInt(_0x5f0882(0x200))/0x4)+parseInt(_0x5f0882(0x1dd))/0x5*(-parseInt(_0x5f0882(0x1f0))/0x6)+parseInt(_0x5f0882(0x1f8))/0x7+parseInt(_0x5f0882(0x1f5))/0x8*(parseInt(_0x5f0882(0x20b))/0x9)+-parseInt(_0x5f0882(0x1fc))/0xa*(parseInt(_0x5f0882(0x1de))/0xb);if(_0x49adc7===_0x2eca46)break;else _0x520be2['push'](_0x520be2['shift']());}catch(_0x439aa9){_0x520be2['push'](_0x520be2['shift']());}}}(a188_0x3519,0xc0bbe));import a188_0x219a7c from'node:fs';function a188_0x3519(){const _0x3db383=['.jsx','replaceContent','promises','mkdir','\x20},','toUpperCase','join','1745JSfjoz','11NlMIJf','info','tableName:\x20\x22','endsWith','.tpl','模板内容替换完成','getFullYear','default','getHours','template','replaceApiContent','now','readdir','padStart','map','pop','utf8','isDirectory','3804bFTPIq','datasetCode','extname','alias','toISOString','1051024fQhyzA','278492bMWdRV','formatLocalTimestamp','10720647YhOQsw','201533SWGKwp','模板内容替换失败','isFile','25778570XBeleo','toDisplayTitle','toComponentName','push','5849748taPLQM','name','api','getSeconds','.ts','name:\x20\x22','processDirectory','processFile','replace','split','includes','45FSvzgf','processTemplate','3hFioUo','toLowerCase','.js','pad','YourModel','slice','.md','charAt','success','.css','readFile','getMinutes'];a188_0x3519=function(){return _0x3db383;};return a188_0x3519();}import a188_0xb6a8f3 from'node:path';import{logger}from'../utils/logger.js';import{getCliVersion}from'../utils/version.js';function a188_0x48ac(_0x3d92ad,_0x137c2c){_0x3d92ad=_0x3d92ad-0x1d2;const _0x3519d6=a188_0x3519();let _0x48ac57=_0x3519d6[_0x3d92ad];return _0x48ac57;}const CLI_VERSION=getCliVersion();export class TemplateReplacer{static['pad'](_0xff4948){const _0x223377=a188_0x48ac;return String(_0xff4948)[_0x223377(0x1eb)](0x2,'0');}static[a188_0x12dfa6(0x1f7)](_0x10eabc){const _0x5dc62a=a188_0x12dfa6,_0x53f828=_0x10eabc[_0x5dc62a(0x1e4)](),_0x1e036d=this[_0x5dc62a(0x210)](_0x10eabc['getMonth']()+0x1),_0xb49123=this[_0x5dc62a(0x210)](_0x10eabc['getDate']()),_0x373fb4=this[_0x5dc62a(0x210)](_0x10eabc[_0x5dc62a(0x1e6)]()),_0x3ce8e8=this[_0x5dc62a(0x210)](_0x10eabc[_0x5dc62a(0x1d5)]()),_0x1da037=this['pad'](_0x10eabc[_0x5dc62a(0x203)]());return{'createdAt':_0x53f828+'-'+_0x1e036d+'-'+_0xb49123+'\x20'+_0x373fb4+':'+_0x3ce8e8+':'+_0x1da037,'createdDate':_0x53f828+'-'+_0x1e036d+'-'+_0xb49123,'createdTime':_0x373fb4+':'+_0x3ce8e8+':'+_0x1da037};}static[a188_0x12dfa6(0x1fe)](_0x3bc82e){const _0x483979=a188_0x12dfa6,_0xafa085=_0x3bc82e['split']('/')[_0x483979(0x1ed)]()||_0x3bc82e;return _0xafa085[_0x483979(0x209)]('-')[_0x483979(0x1ec)](_0x44ea3a=>_0x44ea3a[_0x483979(0x214)](0x0)[_0x483979(0x1db)]()+_0x44ea3a[_0x483979(0x212)](0x1)[_0x483979(0x20e)]())['join']('');}static[a188_0x12dfa6(0x1fd)](_0x33a0b3){const _0x63ed3d=a188_0x12dfa6,_0x406d0e=_0x33a0b3[_0x63ed3d(0x209)]('/')[_0x63ed3d(0x1ed)]()||_0x33a0b3;return _0x406d0e[_0x63ed3d(0x209)]('-')[_0x63ed3d(0x1ec)](_0x57af0c=>_0x57af0c[_0x63ed3d(0x214)](0x0)[_0x63ed3d(0x1db)]()+_0x57af0c['slice'](0x1)[_0x63ed3d(0x20e)]())[_0x63ed3d(0x1dc)]('\x20');}static[a188_0x12dfa6(0x1d7)](_0x44b0e2,_0x47cf29,_0x722909){const _0x435219=a188_0x12dfa6,_0xca620b=this[_0x435219(0x1fe)](_0x47cf29),_0x11bbd7=this[_0x435219(0x1fd)](_0x47cf29),{createdAt:_0x46f048,createdDate:_0x3aab41,createdTime:_0x2c6bdf}=this[_0x435219(0x1f7)](new Date());let _0xa70c1=_0x44b0e2['replace'](/\{CliVersion\}/g,CLI_VERSION)['replace'](/\{ComponentName\}/g,_0xca620b)[_0x435219(0x208)](/\{DisplayTitle\}/g,_0x11bbd7)[_0x435219(0x208)](/\{PageName\}/g,_0x47cf29)[_0x435219(0x208)](/\{TemplateName\}/g,_0x722909)[_0x435219(0x208)](/\{CreatedAt\}/g,_0x46f048)[_0x435219(0x208)](/\{CreatedDate\}/g,_0x3aab41)[_0x435219(0x208)](/\{CreatedTime\}/g,_0x2c6bdf);return _0xa70c1;}static[a188_0x12dfa6(0x1e8)](_0xdbd212,_0x5c6728,_0x55fed4,_0x455e2c,_0xa31644,_0xf7627a,_0x4b01e3,_0x5e8118){const _0x296bee=a188_0x12dfa6,_0x5fc5=new Date(),_0x3c7867=_0x5fc5[_0x296bee(0x1f4)](),_0x19d06f=_0x55fed4['map'](_0x122af5=>{const _0x51fe65=_0x296bee,_0x44b7a9=['datasetCode:\x20\x22'+_0x122af5[_0x51fe65(0x1f1)]+'\x22',_0x51fe65(0x1e0)+_0x122af5['tableName']+'\x22',_0x51fe65(0x205)+_0x122af5['name']+'\x22'];return _0x122af5[_0x51fe65(0x1f3)]&&_0x44b7a9[_0x51fe65(0x1ff)]('alias:\x20\x22'+_0x122af5[_0x51fe65(0x1f3)]+'\x22'),'\x0a\x20\x20\x20\x20{\x20'+_0x44b7a9['join'](',\x20')+_0x51fe65(0x1da);})[_0x296bee(0x1dc)](''),_0x324b0c=_0x455e2c||_0x55fed4[0x0]?.['alias']||_0x296bee(0x211);let _0x8888b1=_0xdbd212['replace'](/\{AppCode\}/g,_0x5c6728)['replace'](/\{ModelConfigs\}/g,_0x19d06f)[_0x296bee(0x208)](/\{ExampleModelName\}/g,_0x324b0c)[_0x296bee(0x208)](/\{ApiFileName\}/g,_0xa31644||_0x296bee(0x202))[_0x296bee(0x208)](/\{ConfigName\}/g,_0xf7627a||_0x296bee(0x1e5))[_0x296bee(0x208)](/\{ClientConfigParam\}/g,_0x4b01e3||'')[_0x296bee(0x208)](/\{VarPrefix\}/g,_0x5e8118||'LOVRABET')['replace'](/\{CreatedAt\}/g,_0x3c7867);return _0x8888b1;}static async[a188_0x12dfa6(0x20c)](_0x2d1368,_0x3c0ec6,_0x291c06,_0x3fae93,_0x35b3c4=!![]){const _0x1138c5=a188_0x12dfa6,_0x4bb364=Date[_0x1138c5(0x1e9)]();try{_0x35b3c4&&logger[_0x1138c5(0x1df)](_0x1138c5(0x1e7),'开始处理模板内容替换',{'templatePath':_0x2d1368,'targetPath':_0x3c0ec6,'pageName':_0x291c06,'templateName':_0x3fae93});await a188_0x219a7c[_0x1138c5(0x1d8)][_0x1138c5(0x1d9)](_0x3c0ec6,{'recursive':!![]}),await this[_0x1138c5(0x206)](_0x2d1368,_0x3c0ec6,_0x291c06,_0x3fae93);if(_0x35b3c4){const _0x286fe2=Date[_0x1138c5(0x1e9)]()-_0x4bb364;logger[_0x1138c5(0x1d2)](_0x1138c5(0x1e7),_0x1138c5(0x1e3),_0x286fe2,{'pageName':_0x291c06,'templateName':_0x3fae93});}}catch(_0x5abfc2){if(_0x35b3c4){const _0x5c0c2d=Date[_0x1138c5(0x1e9)]()-_0x4bb364;logger['error'](_0x1138c5(0x1e7),_0x1138c5(0x1fa),{'templatePath':_0x2d1368,'targetPath':_0x3c0ec6,'pageName':_0x291c06,'templateName':_0x3fae93,'error':_0x5abfc2 instanceof Error?_0x5abfc2['message']:String(_0x5abfc2),'duration':_0x5c0c2d});}throw _0x5abfc2;}}static async['processDirectory'](_0x5a0106,_0x282d85,_0x2604a5,_0x5a347a){const _0x343fc0=a188_0x12dfa6,_0x3c1424=await a188_0x219a7c[_0x343fc0(0x1d8)][_0x343fc0(0x1ea)](_0x5a0106,{'withFileTypes':!![]});for(const _0x818e07 of _0x3c1424){const _0x409c1c=a188_0xb6a8f3[_0x343fc0(0x1dc)](_0x5a0106,_0x818e07[_0x343fc0(0x201)]);let _0x4e1675=a188_0xb6a8f3[_0x343fc0(0x1dc)](_0x282d85,_0x818e07[_0x343fc0(0x201)]);_0x818e07['name'][_0x343fc0(0x1e1)]('.tpl')&&(_0x4e1675=a188_0xb6a8f3['join'](_0x282d85,_0x818e07[_0x343fc0(0x201)]['replace'](/\.tpl$/,'')));if(_0x818e07[_0x343fc0(0x1ef)]())await a188_0x219a7c[_0x343fc0(0x1d8)]['mkdir'](_0x4e1675,{'recursive':!![]}),await this[_0x343fc0(0x206)](_0x409c1c,_0x4e1675,_0x2604a5,_0x5a347a);else _0x818e07[_0x343fc0(0x1fb)]()&&await this[_0x343fc0(0x207)](_0x409c1c,_0x4e1675,_0x2604a5,_0x5a347a);}}static async[a188_0x12dfa6(0x207)](_0x13e1fd,_0xc6fefe,_0x58713,_0x21f51b){const _0x4213ec=a188_0x12dfa6,_0x3b445d=a188_0xb6a8f3[_0x4213ec(0x1f2)](_0x13e1fd)['toLowerCase']();_0x13e1fd[_0x4213ec(0x1e1)](_0x4213ec(0x1e2))&&(_0xc6fefe=_0xc6fefe[_0x4213ec(0x208)](/\.tpl$/,''));const _0x456ad3=['.tsx',_0x4213ec(0x204),_0x4213ec(0x1d6),_0x4213ec(0x20f),'.json',_0x4213ec(0x213),_0x4213ec(0x1d3),'.scss',_0x4213ec(0x1e2)];if(_0x456ad3[_0x4213ec(0x20a)](_0x3b445d)||_0x13e1fd[_0x4213ec(0x1e1)](_0x4213ec(0x1e2))){const _0x25486e=await a188_0x219a7c[_0x4213ec(0x1d8)][_0x4213ec(0x1d4)](_0x13e1fd,_0x4213ec(0x1ee)),_0x1b7a07=this[_0x4213ec(0x1d7)](_0x25486e,_0x58713,_0x21f51b);await a188_0x219a7c[_0x4213ec(0x1d8)]['writeFile'](_0xc6fefe,_0x1b7a07,'utf8');}else await a188_0x219a7c[_0x4213ec(0x1d8)]['copyFile'](_0x13e1fd,_0xc6fefe);}}
1
+ const a196_0x47aa15=a196_0x17cc;(function(_0xca20e9,_0x1df34c){const _0xe741e7=a196_0x17cc,_0x2b6167=_0xca20e9();while(!![]){try{const _0x3d36c4=-parseInt(_0xe741e7(0x122))/0x1*(parseInt(_0xe741e7(0x12f))/0x2)+parseInt(_0xe741e7(0x13e))/0x3*(-parseInt(_0xe741e7(0x128))/0x4)+parseInt(_0xe741e7(0x140))/0x5*(-parseInt(_0xe741e7(0x10f))/0x6)+-parseInt(_0xe741e7(0x127))/0x7+-parseInt(_0xe741e7(0x12c))/0x8+-parseInt(_0xe741e7(0xfe))/0x9+parseInt(_0xe741e7(0x137))/0xa*(parseInt(_0xe741e7(0x11f))/0xb);if(_0x3d36c4===_0x1df34c)break;else _0x2b6167['push'](_0x2b6167['shift']());}catch(_0x324212){_0x2b6167['push'](_0x2b6167['shift']());}}}(a196_0x5c51,0x33916));import a196_0x1dd365 from'node:fs';import a196_0x2c3dfe from'node:path';function a196_0x5c51(){const _0x40fba4=['push','13278jQHWls','tableName:\x20\x22','readdir','split','extname','toISOString','message','name:\x20\x22','isFile','replaceContent','toUpperCase','includes','mkdir','info','api','getHours','11LsAwVn','map','replace','23tapQgj','formatLocalTimestamp','promises','slice','开始处理模板内容替换','1130570ZvObDk','129880hNTGSm','pad','toLowerCase','charAt','1032072LuxcLp','datasetCode:\x20\x22','template','5594HvaoqL','getMonth','processTemplate','pop','getMinutes','YourModel','processFile','success','8202710fckvqn','.scss','getFullYear','getDate','processDirectory','.ts','alias','3olutyb','\x20},','215xxKlDQ','tableName','name','1139130fpUDwk','utf8','writeFile','endsWith','join','toComponentName','now','模板内容替换完成','readFile','padStart','.tsx','datasetCode','.css','toDisplayTitle','.jsx','.tpl'];a196_0x5c51=function(){return _0x40fba4;};return a196_0x5c51();}import{logger}from'../utils/logger.js';import{getCliVersion}from'../utils/version.js';const CLI_VERSION=getCliVersion();function a196_0x17cc(_0x455f07,_0x15e3a3){_0x455f07=_0x455f07-0xfc;const _0x5c51a2=a196_0x5c51();let _0x17cc66=_0x5c51a2[_0x455f07];return _0x17cc66;}export class TemplateReplacer{static['pad'](_0x4f50fb){const _0x4c7618=a196_0x17cc;return String(_0x4f50fb)[_0x4c7618(0x107)](0x2,'0');}static[a196_0x47aa15(0x123)](_0x1a0539){const _0x558530=a196_0x47aa15,_0x520a40=_0x1a0539[_0x558530(0x139)](),_0x24f411=this[_0x558530(0x129)](_0x1a0539[_0x558530(0x130)]()+0x1),_0x2ead62=this[_0x558530(0x129)](_0x1a0539[_0x558530(0x13a)]()),_0x231ce8=this[_0x558530(0x129)](_0x1a0539[_0x558530(0x11e)]()),_0x2febaf=this[_0x558530(0x129)](_0x1a0539[_0x558530(0x133)]()),_0x5e8b06=this[_0x558530(0x129)](_0x1a0539['getSeconds']());return{'createdAt':_0x520a40+'-'+_0x24f411+'-'+_0x2ead62+'\x20'+_0x231ce8+':'+_0x2febaf+':'+_0x5e8b06,'createdDate':_0x520a40+'-'+_0x24f411+'-'+_0x2ead62,'createdTime':_0x231ce8+':'+_0x2febaf+':'+_0x5e8b06};}static[a196_0x47aa15(0x103)](_0x34f159){const _0x2f595a=a196_0x47aa15,_0xcfae40=_0x34f159[_0x2f595a(0x112)]('/')[_0x2f595a(0x132)]()||_0x34f159;return _0xcfae40[_0x2f595a(0x112)]('-')[_0x2f595a(0x120)](_0x46ff7b=>_0x46ff7b[_0x2f595a(0x12b)](0x0)[_0x2f595a(0x119)]()+_0x46ff7b[_0x2f595a(0x125)](0x1)[_0x2f595a(0x12a)]())[_0x2f595a(0x102)]('');}static[a196_0x47aa15(0x10b)](_0x156271){const _0x35d13f=a196_0x47aa15,_0x10ea8c=_0x156271[_0x35d13f(0x112)]('/')['pop']()||_0x156271;return _0x10ea8c[_0x35d13f(0x112)]('-')[_0x35d13f(0x120)](_0x52b1c0=>_0x52b1c0['charAt'](0x0)[_0x35d13f(0x119)]()+_0x52b1c0[_0x35d13f(0x125)](0x1)[_0x35d13f(0x12a)]())[_0x35d13f(0x102)]('\x20');}static[a196_0x47aa15(0x118)](_0xe11ebf,_0x2d8abe,_0xe9d7e9){const _0x53fd8c=a196_0x47aa15,_0x4f2e1a=this[_0x53fd8c(0x103)](_0x2d8abe),_0x224670=this[_0x53fd8c(0x10b)](_0x2d8abe),{createdAt:_0x55520d,createdDate:_0x403b9e,createdTime:_0x208ad8}=this['formatLocalTimestamp'](new Date());let _0x518ac2=_0xe11ebf[_0x53fd8c(0x121)](/\{CliVersion\}/g,CLI_VERSION)['replace'](/\{ComponentName\}/g,_0x4f2e1a)[_0x53fd8c(0x121)](/\{DisplayTitle\}/g,_0x224670)[_0x53fd8c(0x121)](/\{PageName\}/g,_0x2d8abe)[_0x53fd8c(0x121)](/\{TemplateName\}/g,_0xe9d7e9)[_0x53fd8c(0x121)](/\{CreatedAt\}/g,_0x55520d)[_0x53fd8c(0x121)](/\{CreatedDate\}/g,_0x403b9e)['replace'](/\{CreatedTime\}/g,_0x208ad8);return _0x518ac2;}static['replaceApiContent'](_0x29fb95,_0x446044,_0x3461de,_0x3b9ed3,_0x508c4a,_0x40448a,_0x292e2e,_0x4f1905){const _0x428a65=a196_0x47aa15,_0x1e4488=new Date(),_0x562b93=_0x1e4488[_0x428a65(0x114)](),_0x1aeb50=_0x3461de[_0x428a65(0x120)](_0x1b1371=>{const _0x346bda=_0x428a65,_0x25667f=[_0x346bda(0x12d)+_0x1b1371[_0x346bda(0x109)]+'\x22',_0x346bda(0x110)+_0x1b1371[_0x346bda(0xfc)]+'\x22',_0x346bda(0x116)+_0x1b1371[_0x346bda(0xfd)]+'\x22'];return _0x1b1371['alias']&&_0x25667f[_0x346bda(0x10e)]('alias:\x20\x22'+_0x1b1371['alias']+'\x22'),'\x0a\x20\x20\x20\x20{\x20'+_0x25667f[_0x346bda(0x102)](',\x20')+_0x346bda(0x13f);})[_0x428a65(0x102)](''),_0x23c505=_0x3b9ed3||_0x3461de[0x0]?.[_0x428a65(0x13d)]||_0x428a65(0x134);let _0x571df6=_0x29fb95['replace'](/\{AppCode\}/g,_0x446044)['replace'](/\{ModelConfigs\}/g,_0x1aeb50)['replace'](/\{ExampleModelName\}/g,_0x23c505)[_0x428a65(0x121)](/\{ApiFileName\}/g,_0x508c4a||_0x428a65(0x11d))[_0x428a65(0x121)](/\{ConfigName\}/g,_0x40448a||'default')[_0x428a65(0x121)](/\{ClientConfigParam\}/g,_0x292e2e||'')[_0x428a65(0x121)](/\{VarPrefix\}/g,_0x4f1905||'LOVRABET')[_0x428a65(0x121)](/\{CreatedAt\}/g,_0x562b93);return _0x571df6;}static async[a196_0x47aa15(0x131)](_0x3793e3,_0xee27de,_0x1da113,_0x33eb54,_0x4a7b40=!![]){const _0x39dba3=a196_0x47aa15,_0x43cd16=Date[_0x39dba3(0x104)]();try{_0x4a7b40&&logger[_0x39dba3(0x11c)](_0x39dba3(0x12e),_0x39dba3(0x126),{'templatePath':_0x3793e3,'targetPath':_0xee27de,'pageName':_0x1da113,'templateName':_0x33eb54});await a196_0x1dd365[_0x39dba3(0x124)][_0x39dba3(0x11b)](_0xee27de,{'recursive':!![]}),await this['processDirectory'](_0x3793e3,_0xee27de,_0x1da113,_0x33eb54);if(_0x4a7b40){const _0x5611fd=Date[_0x39dba3(0x104)]()-_0x43cd16;logger[_0x39dba3(0x136)](_0x39dba3(0x12e),_0x39dba3(0x105),_0x5611fd,{'pageName':_0x1da113,'templateName':_0x33eb54});}}catch(_0x5985f9){if(_0x4a7b40){const _0x5671b2=Date['now']()-_0x43cd16;logger['error'](_0x39dba3(0x12e),'模板内容替换失败',{'templatePath':_0x3793e3,'targetPath':_0xee27de,'pageName':_0x1da113,'templateName':_0x33eb54,'error':_0x5985f9 instanceof Error?_0x5985f9[_0x39dba3(0x115)]:String(_0x5985f9),'duration':_0x5671b2});}throw _0x5985f9;}}static async['processDirectory'](_0x489ec7,_0x21697e,_0x4c3ffa,_0x516887){const _0x1dd3f0=a196_0x47aa15,_0x4d3380=await a196_0x1dd365[_0x1dd3f0(0x124)][_0x1dd3f0(0x111)](_0x489ec7,{'withFileTypes':!![]});for(const _0x364ddc of _0x4d3380){const _0x928d2e=a196_0x2c3dfe['join'](_0x489ec7,_0x364ddc[_0x1dd3f0(0xfd)]);let _0xd5c51c=a196_0x2c3dfe['join'](_0x21697e,_0x364ddc[_0x1dd3f0(0xfd)]);_0x364ddc[_0x1dd3f0(0xfd)][_0x1dd3f0(0x101)](_0x1dd3f0(0x10d))&&(_0xd5c51c=a196_0x2c3dfe[_0x1dd3f0(0x102)](_0x21697e,_0x364ddc[_0x1dd3f0(0xfd)][_0x1dd3f0(0x121)](/\.tpl$/,'')));if(_0x364ddc['isDirectory']())await a196_0x1dd365['promises'][_0x1dd3f0(0x11b)](_0xd5c51c,{'recursive':!![]}),await this[_0x1dd3f0(0x13b)](_0x928d2e,_0xd5c51c,_0x4c3ffa,_0x516887);else _0x364ddc[_0x1dd3f0(0x117)]()&&await this[_0x1dd3f0(0x135)](_0x928d2e,_0xd5c51c,_0x4c3ffa,_0x516887);}}static async[a196_0x47aa15(0x135)](_0x5d0caf,_0x617776,_0x35e718,_0x1f5292){const _0x1018eb=a196_0x47aa15,_0x3a0b70=a196_0x2c3dfe[_0x1018eb(0x113)](_0x5d0caf)['toLowerCase']();_0x5d0caf[_0x1018eb(0x101)](_0x1018eb(0x10d))&&(_0x617776=_0x617776[_0x1018eb(0x121)](/\.tpl$/,''));const _0x467569=[_0x1018eb(0x108),_0x1018eb(0x13c),_0x1018eb(0x10c),'.js','.json','.md',_0x1018eb(0x10a),_0x1018eb(0x138),_0x1018eb(0x10d)];if(_0x467569[_0x1018eb(0x11a)](_0x3a0b70)||_0x5d0caf[_0x1018eb(0x101)](_0x1018eb(0x10d))){const _0x5b805d=await a196_0x1dd365[_0x1018eb(0x124)][_0x1018eb(0x106)](_0x5d0caf,_0x1018eb(0xff)),_0x3cdd0e=this[_0x1018eb(0x118)](_0x5b805d,_0x35e718,_0x1f5292);await a196_0x1dd365[_0x1018eb(0x124)][_0x1018eb(0x100)](_0x617776,_0x3cdd0e,_0x1018eb(0xff));}else await a196_0x1dd365[_0x1018eb(0x124)]['copyFile'](_0x5d0caf,_0x617776);}}
@@ -1 +1 @@
1
- (function(_0x480b82,_0x2e974a){var _0x2becfc=a189_0x2ca7,_0x2899fe=_0x480b82();while(!![]){try{var _0x35e4a7=parseInt(_0x2becfc(0xe3))/0x1+parseInt(_0x2becfc(0xe1))/0x2*(parseInt(_0x2becfc(0xe6))/0x3)+parseInt(_0x2becfc(0xdd))/0x4*(parseInt(_0x2becfc(0xe0))/0x5)+parseInt(_0x2becfc(0xdf))/0x6*(-parseInt(_0x2becfc(0xe4))/0x7)+-parseInt(_0x2becfc(0xde))/0x8+parseInt(_0x2becfc(0xe2))/0x9+-parseInt(_0x2becfc(0xe5))/0xa*(-parseInt(_0x2becfc(0xdc))/0xb);if(_0x35e4a7===_0x2e974a)break;else _0x2899fe['push'](_0x2899fe['shift']());}catch(_0x3bf0be){_0x2899fe['push'](_0x2899fe['shift']());}}}(a189_0x2b66,0x5d6ab));function a189_0x2ca7(_0x44126d,_0x255861){_0x44126d=_0x44126d-0xdc;var _0x2b6610=a189_0x2b66();var _0x2ca798=_0x2b6610[_0x44126d];return _0x2ca798;}import{VERSION}from'../generated/build-info.js';export function getCliVersion(){return VERSION;}function a189_0x2b66(){var _0x5342d9=['3969846NPzhMb','269300rPyXjv','5280394iZlfer','324180iiVLWN','36mruYEc','187TfRwTM','4Pbftph','3219024AzCbJy','6nRXjUR','771935NFiNNi','20578HAQfrI'];a189_0x2b66=function(){return _0x5342d9;};return a189_0x2b66();}
1
+ (function(_0x3e58e7,_0x300075){var _0x4fa07c=a197_0x2519,_0x164716=_0x3e58e7();while(!![]){try{var _0x33c517=parseInt(_0x4fa07c(0xca))/0x1*(-parseInt(_0x4fa07c(0xc7))/0x2)+parseInt(_0x4fa07c(0xc6))/0x3+-parseInt(_0x4fa07c(0xc8))/0x4*(-parseInt(_0x4fa07c(0xcb))/0x5)+-parseInt(_0x4fa07c(0xc5))/0x6*(-parseInt(_0x4fa07c(0xc4))/0x7)+-parseInt(_0x4fa07c(0xc9))/0x8+parseInt(_0x4fa07c(0xcc))/0x9+-parseInt(_0x4fa07c(0xcd))/0xa;if(_0x33c517===_0x300075)break;else _0x164716['push'](_0x164716['shift']());}catch(_0x305cfd){_0x164716['push'](_0x164716['shift']());}}}(a197_0x2738,0x56492));import{VERSION}from'../generated/build-info.js';function a197_0x2519(_0x2c73c9,_0x4d5505){_0x2c73c9=_0x2c73c9-0xc4;var _0x273875=a197_0x2738();var _0x251963=_0x273875[_0x2c73c9];return _0x251963;}function a197_0x2738(){var _0xe4a32a=['118749ljXKHy','2598730ouQJRu','1066248yoioRP','8333150ZsYWVp','7VeIBSy','2534508GxoBRI','1672359yVaDSz','6JedQle','4OsWMEh','600808DuvvcI'];a197_0x2738=function(){return _0xe4a32a;};return a197_0x2738();}export function getCliVersion(){return VERSION;}
@@ -1 +1 @@
1
- function a190_0x3b9f(_0xbfff97,_0x453aa9){_0xbfff97=_0xbfff97-0xdb;var _0x287d09=a190_0x287d();var _0x3b9f57=_0x287d09[_0xbfff97];return _0x3b9f57;}(function(_0xcddb96,_0x23893e){var _0x11dab8=a190_0x3b9f,_0x529e83=_0xcddb96();while(!![]){try{var _0x4ad97b=-parseInt(_0x11dab8(0xe2))/0x1+parseInt(_0x11dab8(0xdf))/0x2+-parseInt(_0x11dab8(0xdd))/0x3*(parseInt(_0x11dab8(0xe1))/0x4)+parseInt(_0x11dab8(0xe0))/0x5+-parseInt(_0x11dab8(0xdb))/0x6*(parseInt(_0x11dab8(0xe4))/0x7)+parseInt(_0x11dab8(0xde))/0x8+parseInt(_0x11dab8(0xe3))/0x9*(parseInt(_0x11dab8(0xdc))/0xa);if(_0x4ad97b===_0x23893e)break;else _0x529e83['push'](_0x529e83['shift']());}catch(_0xe90cfd){_0x529e83['push'](_0x529e83['shift']());}}}(a190_0x287d,0x72814));import{setActiveCookie,clearActiveCookie}from'../core/api-client.js';function a190_0x287d(){var _0x523527=['6376440KUjyTC','1088750jcRLer','891610PAKwSM','24SKcuUs','748653GofsYQ','1062ByyILf','7qXOZbc','2253138MoCCFz','78290OIXkrj','425193MAbzbk'];a190_0x287d=function(){return _0x523527;};return a190_0x287d();}export async function withActiveCookie(_0x591ab3,_0x1b1ff1){setActiveCookie(_0x591ab3);try{return await _0x1b1ff1();}finally{clearActiveCookie();}}
1
+ (function(_0x1e6635,_0x434725){var _0xa231f3=a198_0x2a28,_0x56f3e6=_0x1e6635();while(!![]){try{var _0x28583a=-parseInt(_0xa231f3(0xb0))/0x1+-parseInt(_0xa231f3(0xb2))/0x2+parseInt(_0xa231f3(0xb3))/0x3+-parseInt(_0xa231f3(0xb1))/0x4+-parseInt(_0xa231f3(0xb4))/0x5+parseInt(_0xa231f3(0xae))/0x6+parseInt(_0xa231f3(0xaf))/0x7;if(_0x28583a===_0x434725)break;else _0x56f3e6['push'](_0x56f3e6['shift']());}catch(_0x26ecf8){_0x56f3e6['push'](_0x56f3e6['shift']());}}}(a198_0x4362,0xc0f94));function a198_0x2a28(_0x39b7c8,_0x69e3f3){_0x39b7c8=_0x39b7c8-0xae;var _0x436255=a198_0x4362();var _0x2a2840=_0x436255[_0x39b7c8];return _0x2a2840;}import{setActiveCookie,clearActiveCookie}from'../core/api-client.js';export async function withActiveCookie(_0x4eaa3c,_0x2d62c5){setActiveCookie(_0x4eaa3c);try{return await _0x2d62c5();}finally{clearActiveCookie();}}function a198_0x4362(){var _0x4fcf67=['1126611IHLvRY','1329545heiNyt','3782628OtakWD','18724629jYzimQ','819064pxCFaq','2263320NQeEwu','2479398ASbbze'];a198_0x4362=function(){return _0x4fcf67;};return a198_0x4362();}
@@ -1 +1 @@
1
- function a191_0xbcdf(){var _0x253a03=['write','859252ViqNEh','918tQVMrL','1990tKofAf','555336lsezmi','stderr','8339193JdtTHW','6014880KYQqBO','436120vMgpdk','91zfySyU','3158820vzsKTF','3UkownX'];a191_0xbcdf=function(){return _0x253a03;};return a191_0xbcdf();}function a191_0x3f06(_0x2294ee,_0x34c924){_0x2294ee=_0x2294ee-0xa2;var _0xbcdfd2=a191_0xbcdf();var _0x3f0654=_0xbcdfd2[_0x2294ee];return _0x3f0654;}(function(_0x358a83,_0x740d8e){var _0x3f3150=a191_0x3f06,_0x21cb4f=_0x358a83();while(!![]){try{var _0x1e9991=-parseInt(_0x3f3150(0xa3))/0x1*(-parseInt(_0x3f3150(0xa4))/0x2)+-parseInt(_0x3f3150(0xac))/0x3*(-parseInt(_0x3f3150(0xa2))/0x4)+parseInt(_0x3f3150(0xab))/0x5+-parseInt(_0x3f3150(0xa5))/0x6+-parseInt(_0x3f3150(0xaa))/0x7*(parseInt(_0x3f3150(0xa9))/0x8)+-parseInt(_0x3f3150(0xa7))/0x9+parseInt(_0x3f3150(0xa8))/0xa;if(_0x1e9991===_0x740d8e)break;else _0x21cb4f['push'](_0x21cb4f['shift']());}catch(_0x1abaa3){_0x21cb4f['push'](_0x21cb4f['shift']());}}}(a191_0xbcdf,0x9ab2f));export function writeCliSideChannelLine(_0x2fa583){var _0x20e6df=a191_0x3f06;process[_0x20e6df(0xa6)][_0x20e6df(0xad)](_0x2fa583+'\x0a');}
1
+ (function(_0x2179e1,_0x11a14f){var _0x39d357=a199_0x29dc,_0x438b1d=_0x2179e1();while(!![]){try{var _0x163171=-parseInt(_0x39d357(0x185))/0x1*(-parseInt(_0x39d357(0x189))/0x2)+-parseInt(_0x39d357(0x187))/0x3+parseInt(_0x39d357(0x184))/0x4+-parseInt(_0x39d357(0x182))/0x5+-parseInt(_0x39d357(0x188))/0x6*(parseInt(_0x39d357(0x186))/0x7)+parseInt(_0x39d357(0x18b))/0x8*(-parseInt(_0x39d357(0x181))/0x9)+parseInt(_0x39d357(0x183))/0xa;if(_0x163171===_0x11a14f)break;else _0x438b1d['push'](_0x438b1d['shift']());}catch(_0x381e53){_0x438b1d['push'](_0x438b1d['shift']());}}}(a199_0x2632,0x74bc0));function a199_0x2632(){var _0x5d108e=['stderr','1184bnSwbB','54666tbzVcc','1737930MQZDlA','19711020phVBAT','1947200HdhhTG','452Yyymzn','133zQiBZC','2774889ZWgRUQ','16242hRBxoR','1076CCfYJw'];a199_0x2632=function(){return _0x5d108e;};return a199_0x2632();}function a199_0x29dc(_0x17836c,_0x263b82){_0x17836c=_0x17836c-0x181;var _0x263281=a199_0x2632();var _0x29dc66=_0x263281[_0x17836c];return _0x29dc66;}export function writeCliSideChannelLine(_0x38059b){var _0x3fbc32=a199_0x29dc;process[_0x3fbc32(0x18a)]['write'](_0x38059b+'\x0a');}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lovrabet/rabetbase-cli",
3
- "version": "2.1.6-beta.0",
3
+ "version": "2.1.7-beta.2",
4
4
  "license": "SEE LICENSE IN LICENSE",
5
5
  "repository": {
6
6
  "type": "git",
@@ -56,6 +56,7 @@
56
56
  "@inquirer/prompts": "^8.3.2",
57
57
  "@lovrabet/cli-framework": "1.0.3",
58
58
  "@lovrabet/otel-logger": "1.0.1-beta.3",
59
+ "@opentelemetry/api": "^1.9.1",
59
60
  "@types/winston": "^2.4.4",
60
61
  "chalk": "^5.6.2",
61
62
  "execa": "^9.6.0",