@lovrabet/rabetbase-cli 2.1.6 → 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(_0x346a8d,_0x382d8f){const _0x54242f=a184_0xd6fc,_0x73b9e8=_0x346a8d();while(!![]){try{const _0x40d6de=parseInt(_0x54242f(0x1bd))/0x1+parseInt(_0x54242f(0x1c1))/0x2*(parseInt(_0x54242f(0x1c2))/0x3)+-parseInt(_0x54242f(0x1ca))/0x4*(parseInt(_0x54242f(0x1c0))/0x5)+-parseInt(_0x54242f(0x1c5))/0x6*(-parseInt(_0x54242f(0x1c4))/0x7)+parseInt(_0x54242f(0x1cc))/0x8+-parseInt(_0x54242f(0x1c8))/0x9*(parseInt(_0x54242f(0x1cb))/0xa)+-parseInt(_0x54242f(0x1bf))/0xb*(parseInt(_0x54242f(0x1c3))/0xc);if(_0x40d6de===_0x382d8f)break;else _0x73b9e8['push'](_0x73b9e8['shift']());}catch(_0x3d98ef){_0x73b9e8['push'](_0x73b9e8['shift']());}}}(a184_0x1b6b,0x1b61e));import{CliErrors}from'../errors.js';function a184_0x1b6b(){const _0x18ef12=['Invalid\x20JSON\x20for\x20--params:\x20','1195139UljLkn','18370CxFUir','6GNIajO','186069fUFKap','24TdHFwO','149030icDlei','24guSjaC','validation','parse','288bxVXjE','isArray','236nznNqs','15050xOjLCG','884976RmwNke','object','212531cZpVPg'];a184_0x1b6b=function(){return _0x18ef12;};return a184_0x1b6b();}function a184_0xd6fc(_0xfffc5b,_0xe94f2f){_0xfffc5b=_0xfffc5b-0x1bc;const _0x1b6b68=a184_0x1b6b();let _0xd6fc76=_0x1b6b68[_0xfffc5b];return _0xd6fc76;}export function parseJsonParams(_0x502514){const _0x310186=a184_0xd6fc;if(!_0x502514)return undefined;let _0xa10efa;try{_0xa10efa=JSON[_0x310186(0x1c7)](_0x502514);}catch{throw CliErrors[_0x310186(0x1c6)](_0x310186(0x1be)+_0x502514);}if(!_0xa10efa||typeof _0xa10efa!==_0x310186(0x1bc)||Array[_0x310186(0x1c9)](_0xa10efa))throw CliErrors[_0x310186(0x1c6)]('--params\x20must\x20be\x20a\x20JSON\x20object','Example:\x20--params\x20\x27{\x22id\x22:123}\x27');return _0xa10efa;}
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_0x4ac302=a185_0x2631;(function(_0x159a54,_0x4718b5){const _0x1a7ede=a185_0x2631,_0x4860cb=_0x159a54();while(!![]){try{const _0x520030=-parseInt(_0x1a7ede(0x144))/0x1+parseInt(_0x1a7ede(0x147))/0x2+parseInt(_0x1a7ede(0x145))/0x3+-parseInt(_0x1a7ede(0x149))/0x4+-parseInt(_0x1a7ede(0x14a))/0x5+-parseInt(_0x1a7ede(0x146))/0x6*(parseInt(_0x1a7ede(0x148))/0x7)+-parseInt(_0x1a7ede(0x143))/0x8*(-parseInt(_0x1a7ede(0x14c))/0x9);if(_0x520030===_0x4718b5)break;else _0x4860cb['push'](_0x4860cb['shift']());}catch(_0x326a49){_0x4860cb['push'](_0x4860cb['shift']());}}}(a185_0x503a,0x5ad09));export const isWindows=process[a185_0x4ac302(0x14b)]===a185_0x4ac302(0x14d);function a185_0x503a(){const _0x1cf8cf=['248384UWXtBI','90053ValLaH','1432308zSIzqM','2102394ikPvBt','74392ZPJBqs','14tRiApA','454288MQCEqs','1935040ZiPIHG','platform','333fZNVrg','win32'];a185_0x503a=function(){return _0x1cf8cf;};return a185_0x503a();}function a185_0x2631(_0xb65691,_0x36194e){_0xb65691=_0xb65691-0x143;const _0x503adc=a185_0x503a();let _0x26315f=_0x503adc[_0xb65691];return _0x26315f;}export function resolveNpmBin(_0x2ec4f3){return isWindows?_0x2ec4f3+'.cmd':_0x2ec4f3;}
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
- const a186_0x14f0f8=a186_0x38e6;(function(_0x53e0d3,_0x402b73){const _0x5859aa=a186_0x38e6,_0x38ad28=_0x53e0d3();while(!![]){try{const _0x557e6e=parseInt(_0x5859aa(0x17b))/0x1+parseInt(_0x5859aa(0x185))/0x2+-parseInt(_0x5859aa(0x17c))/0x3+-parseInt(_0x5859aa(0x17a))/0x4+-parseInt(_0x5859aa(0x186))/0x5+-parseInt(_0x5859aa(0x17f))/0x6+parseInt(_0x5859aa(0x178))/0x7;if(_0x557e6e===_0x402b73)break;else _0x38ad28['push'](_0x38ad28['shift']());}catch(_0x4a3b36){_0x38ad28['push'](_0x38ad28['shift']());}}}(a186_0x5354,0xcd505));import{existsSync,mkdirSync,readFileSync,writeFileSync}from'node:fs';import{dirname,join,resolve}from'node:path';function a186_0x5354(){const _0xc1b2cd=['789858gcWUxk','CDN\x20返回数据格式错误','本地模板文件不存在:\x20','8706372OiPdiE','application/json','CDN\x20请求失败:\x20','string','content','status','1148634sMEOch','1529970foXzzG','statusText','../../templates/rules/lovrabet_rules.mdc.tpl','catch','agents.md','14801682YylIqI','lastUpdated','3963108YatHHk','1163241hfhWbm'];a186_0x5354=function(){return _0xc1b2cd;};return a186_0x5354();}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 _0x4eb832=getTemplateBaseUrl();return _0x4eb832+'/rules/rules.json';}const LOCAL_TEMPLATE_PATH=resolve(__dirname,a186_0x14f0f8(0x188));export async function fetchRulesFromCDN(){const _0xd9dfe4=a186_0x14f0f8,_0x1e36b0=getRulesCdnUrl(),_0x54afb7=await fetch(_0x1e36b0,{'headers':{'Accept':_0xd9dfe4(0x180)}});if(!_0x54afb7['ok'])throw new Error(_0xd9dfe4(0x181)+_0x54afb7[_0xd9dfe4(0x184)]+'\x20'+_0x54afb7[_0xd9dfe4(0x187)]);const _0x37ef1e=await _0x54afb7['json']();if(!_0x37ef1e[_0xd9dfe4(0x183)]||typeof _0x37ef1e['content']!==_0xd9dfe4(0x182))throw new Error(_0xd9dfe4(0x17d));return _0x37ef1e;}export async function getRulesContent(){const _0x263b70=a186_0x14f0f8;try{const _0x476f2f=await fetchRulesFromCDN();return _0x476f2f[_0x263b70(0x183)];}catch{return readLocalTemplate();}}export function readLocalTemplate(){const _0x5b442d=a186_0x14f0f8;if(existsSync(LOCAL_TEMPLATE_PATH))return readFileSync(LOCAL_TEMPLATE_PATH,'utf-8');throw new Error(_0x5b442d(0x17e)+LOCAL_TEMPLATE_PATH);}export async function writeRulesFile(_0x535bb8){const _0x2c765e=a186_0x14f0f8,_0x3096e4=await fetchRulesFromCDN()[_0x2c765e(0x176)](()=>null);let _0x41f43c;_0x3096e4?(_0x41f43c=_0x3096e4['content'],_0x3096e4[_0x2c765e(0x179)]&&(_0x41f43c=appendUpdateTime(_0x41f43c,_0x3096e4['lastUpdated']))):_0x41f43c=readLocalTemplate();const _0x13ad99=dirname(_0x535bb8);!existsSync(_0x13ad99)&&mkdirSync(_0x13ad99,{'recursive':!![]}),writeFileSync(_0x535bb8,_0x41f43c,'utf-8');}function a186_0x38e6(_0x4d2b9d,_0x5737de){_0x4d2b9d=_0x4d2b9d-0x176;const _0x5354aa=a186_0x5354();let _0x38e684=_0x5354aa[_0x4d2b9d];return _0x38e684;}export async function copyRulesToCursor(_0x186ded){const _0x74cbb=join(_0x186ded,'.cursor/rules'),_0x25f7d8=join(_0x74cbb,'lovrabet_rules.mdc');if(existsSync(_0x25f7d8))return![];return await writeRulesFile(_0x25f7d8),!![];}export async function copyRulesToAgentsMd(_0x53fa91){const _0x2856a3=a186_0x14f0f8,_0x5e3243=join(_0x53fa91,_0x2856a3(0x177));if(existsSync(_0x5e3243))return![];return await writeRulesFile(_0x5e3243),!![];}
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(_0x5dca6a){return new Promise(_0x55b229=>setTimeout(_0x55b229,_0x5dca6a));}
1
+ export function sleep(_0x1d0344){return new Promise(_0x4403cc=>setTimeout(_0x4403cc,_0x1d0344));}
@@ -1 +1 @@
1
- const a188_0xeb7597=a188_0x45e2;(function(_0x15518d,_0x4de2fb){const _0x26d2b0=a188_0x45e2,_0x6a3e8f=_0x15518d();while(!![]){try{const _0x56ab3f=-parseInt(_0x26d2b0(0xe8))/0x1*(-parseInt(_0x26d2b0(0xec))/0x2)+-parseInt(_0x26d2b0(0x110))/0x3*(parseInt(_0x26d2b0(0xf8))/0x4)+-parseInt(_0x26d2b0(0x10b))/0x5*(-parseInt(_0x26d2b0(0x11d))/0x6)+parseInt(_0x26d2b0(0x120))/0x7+-parseInt(_0x26d2b0(0xfe))/0x8*(-parseInt(_0x26d2b0(0xf2))/0x9)+-parseInt(_0x26d2b0(0xf9))/0xa+parseInt(_0x26d2b0(0x11b))/0xb;if(_0x56ab3f===_0x4de2fb)break;else _0x6a3e8f['push'](_0x6a3e8f['shift']());}catch(_0x3fc73a){_0x6a3e8f['push'](_0x6a3e8f['shift']());}}}(a188_0x53ef,0x359ca));import a188_0x494161 from'node:fs';import a188_0x57b716 from'node:path';import{logger}from'../utils/logger.js';import{getCliVersion}from'../utils/version.js';const CLI_VERSION=getCliVersion();function a188_0x53ef(){const _0x34870b=['template','4xtUZcK','1987930wCZBSz','name','.js','slice','readFile','184oZFoFj','replace','\x0a\x20\x20\x20\x20{\x20','success','.md','processDirectory','\x20},','push','error','readdir','toComponentName','.tpl','pop','701565Jjynjm','datasetCode','join','map','extname','426642dJuKSL','replaceApiContent','alias','replaceContent','tableName:\x20\x22','promises','info','datasetCode:\x20\x22','.ts','.css','endsWith','338888KDojJb','utf8','6gOrNVt','isDirectory','toLowerCase','507682LIiJms','default','getMonth','getFullYear','getHours','split','toISOString','YourModel','pad','charAt','模板内容替换完成','模板内容替换失败','1XqixVq','formatLocalTimestamp','processTemplate','mkdir','362002kHppOE','processFile','copyFile','includes','now','toDisplayTitle','53199aIQRXU','message','开始处理模板内容替换','toUpperCase','getDate'];a188_0x53ef=function(){return _0x34870b;};return a188_0x53ef();}function a188_0x45e2(_0x3e8f4b,_0x1e945f){_0x3e8f4b=_0x3e8f4b-0xe6;const _0x53efb3=a188_0x53ef();let _0x45e267=_0x53efb3[_0x3e8f4b];return _0x45e267;}export class TemplateReplacer{static[a188_0xeb7597(0x128)](_0x4ff7e8){return String(_0x4ff7e8)['padStart'](0x2,'0');}static['formatLocalTimestamp'](_0x389324){const _0x1ae82f=a188_0xeb7597,_0x5514e0=_0x389324[_0x1ae82f(0x123)](),_0x297f1d=this[_0x1ae82f(0x128)](_0x389324[_0x1ae82f(0x122)]()+0x1),_0x38f1bf=this['pad'](_0x389324[_0x1ae82f(0xf6)]()),_0x2536cd=this[_0x1ae82f(0x128)](_0x389324[_0x1ae82f(0x124)]()),_0x5e81e8=this[_0x1ae82f(0x128)](_0x389324['getMinutes']()),_0xd54940=this[_0x1ae82f(0x128)](_0x389324['getSeconds']());return{'createdAt':_0x5514e0+'-'+_0x297f1d+'-'+_0x38f1bf+'\x20'+_0x2536cd+':'+_0x5e81e8+':'+_0xd54940,'createdDate':_0x5514e0+'-'+_0x297f1d+'-'+_0x38f1bf,'createdTime':_0x2536cd+':'+_0x5e81e8+':'+_0xd54940};}static['toComponentName'](_0x40a251){const _0x29d505=a188_0xeb7597,_0x3e52ed=_0x40a251[_0x29d505(0x125)]('/')[_0x29d505(0x10a)]()||_0x40a251;return _0x3e52ed['split']('-')[_0x29d505(0x10e)](_0x42c135=>_0x42c135['charAt'](0x0)[_0x29d505(0xf5)]()+_0x42c135['slice'](0x1)['toLowerCase']())[_0x29d505(0x10d)]('');}static[a188_0xeb7597(0xf1)](_0x2d6ada){const _0x2ebf69=a188_0xeb7597,_0xc6b31e=_0x2d6ada[_0x2ebf69(0x125)]('/')[_0x2ebf69(0x10a)]()||_0x2d6ada;return _0xc6b31e[_0x2ebf69(0x125)]('-')['map'](_0x2edf0c=>_0x2edf0c[_0x2ebf69(0x129)](0x0)[_0x2ebf69(0xf5)]()+_0x2edf0c[_0x2ebf69(0xfc)](0x1)[_0x2ebf69(0x11f)]())['join']('\x20');}static[a188_0xeb7597(0x113)](_0x5bf7a1,_0x35c4f9,_0x1b5af1){const _0x3cae0f=a188_0xeb7597,_0x3cfdc9=this[_0x3cae0f(0x108)](_0x35c4f9),_0x8b297=this['toDisplayTitle'](_0x35c4f9),{createdAt:_0xbe0780,createdDate:_0x32c3a4,createdTime:_0x53c6d9}=this[_0x3cae0f(0xe9)](new Date());let _0x34448c=_0x5bf7a1['replace'](/\{CliVersion\}/g,CLI_VERSION)[_0x3cae0f(0xff)](/\{ComponentName\}/g,_0x3cfdc9)[_0x3cae0f(0xff)](/\{DisplayTitle\}/g,_0x8b297)['replace'](/\{PageName\}/g,_0x35c4f9)[_0x3cae0f(0xff)](/\{TemplateName\}/g,_0x1b5af1)['replace'](/\{CreatedAt\}/g,_0xbe0780)[_0x3cae0f(0xff)](/\{CreatedDate\}/g,_0x32c3a4)[_0x3cae0f(0xff)](/\{CreatedTime\}/g,_0x53c6d9);return _0x34448c;}static[a188_0xeb7597(0x111)](_0x4e7b14,_0x5cb90f,_0x451440,_0x787c3e,_0x120112,_0x4e3418,_0x1b0778,_0x1088a3){const _0x295e42=a188_0xeb7597,_0x4abd54=new Date(),_0x2c21ee=_0x4abd54[_0x295e42(0x126)](),_0x294099=_0x451440[_0x295e42(0x10e)](_0x497cce=>{const _0x444858=_0x295e42,_0x2b702c=[_0x444858(0x117)+_0x497cce[_0x444858(0x10c)]+'\x22',_0x444858(0x114)+_0x497cce['tableName']+'\x22','name:\x20\x22'+_0x497cce[_0x444858(0xfa)]+'\x22'];return _0x497cce[_0x444858(0x112)]&&_0x2b702c[_0x444858(0x105)]('alias:\x20\x22'+_0x497cce[_0x444858(0x112)]+'\x22'),_0x444858(0x100)+_0x2b702c[_0x444858(0x10d)](',\x20')+_0x444858(0x104);})['join'](''),_0x111292=_0x787c3e||_0x451440[0x0]?.['alias']||_0x295e42(0x127);let _0x3539cc=_0x4e7b14[_0x295e42(0xff)](/\{AppCode\}/g,_0x5cb90f)[_0x295e42(0xff)](/\{ModelConfigs\}/g,_0x294099)['replace'](/\{ExampleModelName\}/g,_0x111292)[_0x295e42(0xff)](/\{ApiFileName\}/g,_0x120112||'api')['replace'](/\{ConfigName\}/g,_0x4e3418||_0x295e42(0x121))['replace'](/\{ClientConfigParam\}/g,_0x1b0778||'')[_0x295e42(0xff)](/\{VarPrefix\}/g,_0x1088a3||'LOVRABET')[_0x295e42(0xff)](/\{CreatedAt\}/g,_0x2c21ee);return _0x3539cc;}static async[a188_0xeb7597(0xea)](_0x3cf33d,_0x41170a,_0x1ef0c1,_0x2f3cd9,_0xa92c6=!![]){const _0x2b449c=a188_0xeb7597,_0x323f6a=Date[_0x2b449c(0xf0)]();try{_0xa92c6&&logger[_0x2b449c(0x116)]('template',_0x2b449c(0xf4),{'templatePath':_0x3cf33d,'targetPath':_0x41170a,'pageName':_0x1ef0c1,'templateName':_0x2f3cd9});await a188_0x494161['promises']['mkdir'](_0x41170a,{'recursive':!![]}),await this[_0x2b449c(0x103)](_0x3cf33d,_0x41170a,_0x1ef0c1,_0x2f3cd9);if(_0xa92c6){const _0x59c4d2=Date[_0x2b449c(0xf0)]()-_0x323f6a;logger[_0x2b449c(0x101)](_0x2b449c(0xf7),_0x2b449c(0xe6),_0x59c4d2,{'pageName':_0x1ef0c1,'templateName':_0x2f3cd9});}}catch(_0x4ee791){if(_0xa92c6){const _0x5b3355=Date[_0x2b449c(0xf0)]()-_0x323f6a;logger[_0x2b449c(0x106)]('template',_0x2b449c(0xe7),{'templatePath':_0x3cf33d,'targetPath':_0x41170a,'pageName':_0x1ef0c1,'templateName':_0x2f3cd9,'error':_0x4ee791 instanceof Error?_0x4ee791[_0x2b449c(0xf3)]:String(_0x4ee791),'duration':_0x5b3355});}throw _0x4ee791;}}static async[a188_0xeb7597(0x103)](_0x1de616,_0x66ba6,_0x2a1377,_0x493422){const _0x1bdd1f=a188_0xeb7597,_0x152168=await a188_0x494161[_0x1bdd1f(0x115)][_0x1bdd1f(0x107)](_0x1de616,{'withFileTypes':!![]});for(const _0x1fc1e9 of _0x152168){const _0x3bedde=a188_0x57b716[_0x1bdd1f(0x10d)](_0x1de616,_0x1fc1e9['name']);let _0xc88b22=a188_0x57b716[_0x1bdd1f(0x10d)](_0x66ba6,_0x1fc1e9[_0x1bdd1f(0xfa)]);_0x1fc1e9[_0x1bdd1f(0xfa)]['endsWith'](_0x1bdd1f(0x109))&&(_0xc88b22=a188_0x57b716[_0x1bdd1f(0x10d)](_0x66ba6,_0x1fc1e9[_0x1bdd1f(0xfa)]['replace'](/\.tpl$/,'')));if(_0x1fc1e9[_0x1bdd1f(0x11e)]())await a188_0x494161[_0x1bdd1f(0x115)][_0x1bdd1f(0xeb)](_0xc88b22,{'recursive':!![]}),await this[_0x1bdd1f(0x103)](_0x3bedde,_0xc88b22,_0x2a1377,_0x493422);else _0x1fc1e9['isFile']()&&await this[_0x1bdd1f(0xed)](_0x3bedde,_0xc88b22,_0x2a1377,_0x493422);}}static async['processFile'](_0x22972a,_0xae571f,_0x472856,_0x11c62f){const _0x27a51e=a188_0xeb7597,_0x4ef294=a188_0x57b716[_0x27a51e(0x10f)](_0x22972a)[_0x27a51e(0x11f)]();_0x22972a[_0x27a51e(0x11a)]('.tpl')&&(_0xae571f=_0xae571f['replace'](/\.tpl$/,''));const _0x4c2414=['.tsx',_0x27a51e(0x118),'.jsx',_0x27a51e(0xfb),'.json',_0x27a51e(0x102),_0x27a51e(0x119),'.scss','.tpl'];if(_0x4c2414[_0x27a51e(0xef)](_0x4ef294)||_0x22972a['endsWith'](_0x27a51e(0x109))){const _0x5a4f8e=await a188_0x494161['promises'][_0x27a51e(0xfd)](_0x22972a,_0x27a51e(0x11c)),_0x4dc7b6=this[_0x27a51e(0x113)](_0x5a4f8e,_0x472856,_0x11c62f);await a188_0x494161[_0x27a51e(0x115)]['writeFile'](_0xae571f,_0x4dc7b6,_0x27a51e(0x11c));}else await a188_0x494161['promises'][_0x27a51e(0xee)](_0x22972a,_0xae571f);}}
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(_0xaa59e6,_0x3d8154){var _0x25f9dd=a189_0x1aa7,_0x170d3f=_0xaa59e6();while(!![]){try{var _0x32aaa2=-parseInt(_0x25f9dd(0xd0))/0x1*(-parseInt(_0x25f9dd(0xd7))/0x2)+parseInt(_0x25f9dd(0xd8))/0x3*(parseInt(_0x25f9dd(0xcd))/0x4)+parseInt(_0x25f9dd(0xd3))/0x5+-parseInt(_0x25f9dd(0xce))/0x6*(-parseInt(_0x25f9dd(0xd6))/0x7)+parseInt(_0x25f9dd(0xd2))/0x8*(parseInt(_0x25f9dd(0xcf))/0x9)+parseInt(_0x25f9dd(0xd5))/0xa*(parseInt(_0x25f9dd(0xd4))/0xb)+-parseInt(_0x25f9dd(0xd1))/0xc;if(_0x32aaa2===_0x3d8154)break;else _0x170d3f['push'](_0x170d3f['shift']());}catch(_0x1ab12f){_0x170d3f['push'](_0x170d3f['shift']());}}}(a189_0x4fd0,0x37a54));function a189_0x1aa7(_0x2ea00f,_0x3ccff2){_0x2ea00f=_0x2ea00f-0xcd;var _0x4fd089=a189_0x4fd0();var _0x1aa7b6=_0x4fd089[_0x2ea00f];return _0x1aa7b6;}import{VERSION}from'../generated/build-info.js';function a189_0x4fd0(){var _0x4c9303=['3091MuhUqn','15490yrjEwD','7ByMUhB','62djPeYS','139197iWmIeq','36oIMdhl','1990512KkDPFs','297HjLUBk','8292GHzUYB','21192324thXXRD','74744ABSZNA','1219840ICVslm'];a189_0x4fd0=function(){return _0x4c9303;};return a189_0x4fd0();}export function getCliVersion(){return VERSION;}
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(_0x2fe621,_0x1c8987){var _0x168d13=a190_0x26aa,_0x4ccb39=_0x2fe621();while(!![]){try{var _0x4d7508=parseInt(_0x168d13(0x7a))/0x1+-parseInt(_0x168d13(0x73))/0x2+-parseInt(_0x168d13(0x74))/0x3*(-parseInt(_0x168d13(0x77))/0x4)+-parseInt(_0x168d13(0x79))/0x5+parseInt(_0x168d13(0x76))/0x6+-parseInt(_0x168d13(0x75))/0x7+parseInt(_0x168d13(0x78))/0x8;if(_0x4d7508===_0x1c8987)break;else _0x4ccb39['push'](_0x4ccb39['shift']());}catch(_0x171f97){_0x4ccb39['push'](_0x4ccb39['shift']());}}}(a190_0x356a,0x723b7));function a190_0x356a(){var _0x60e263=['1413176behILg','1037826LGiGyI','2479190mCBJTs','2847606jryLEu','4AHOkpU','2256344GSdawU','2429120OsVkpk','911891VgLVhz'];a190_0x356a=function(){return _0x60e263;};return a190_0x356a();}function a190_0x26aa(_0x323388,_0x557872){_0x323388=_0x323388-0x73;var _0x356a99=a190_0x356a();var _0x26aaba=_0x356a99[_0x323388];return _0x26aaba;}import{setActiveCookie,clearActiveCookie}from'../core/api-client.js';export async function withActiveCookie(_0x1cd327,_0x20b446){setActiveCookie(_0x1cd327);try{return await _0x20b446();}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_0x4137(_0x5675ab,_0x223da7){_0x5675ab=_0x5675ab-0x85;var _0x5fe85a=a191_0x5fe8();var _0x4137ae=_0x5fe85a[_0x5675ab];return _0x4137ae;}(function(_0xf113a8,_0x3a8a3d){var _0x26b5cf=a191_0x4137,_0x12f2a2=_0xf113a8();while(!![]){try{var _0x5d7a09=-parseInt(_0x26b5cf(0x92))/0x1*(-parseInt(_0x26b5cf(0x8b))/0x2)+parseInt(_0x26b5cf(0x8a))/0x3+-parseInt(_0x26b5cf(0x8c))/0x4*(-parseInt(_0x26b5cf(0x90))/0x5)+-parseInt(_0x26b5cf(0x89))/0x6*(parseInt(_0x26b5cf(0x8d))/0x7)+parseInt(_0x26b5cf(0x8e))/0x8*(-parseInt(_0x26b5cf(0x87))/0x9)+-parseInt(_0x26b5cf(0x88))/0xa*(-parseInt(_0x26b5cf(0x8f))/0xb)+parseInt(_0x26b5cf(0x91))/0xc*(-parseInt(_0x26b5cf(0x93))/0xd);if(_0x5d7a09===_0x3a8a3d)break;else _0x12f2a2['push'](_0x12f2a2['shift']());}catch(_0x33b23d){_0x12f2a2['push'](_0x12f2a2['shift']());}}}(a191_0x5fe8,0x9b66b));export function writeCliSideChannelLine(_0x1aab41){var _0x5aad4b=a191_0x4137;process[_0x5aad4b(0x86)][_0x5aad4b(0x85)](_0x1aab41+'\x0a');}function a191_0x5fe8(){var _0x1ad14f=['7zmhNDm','2720HFMdom','6446LYgBNH','10TXqnyj','24Mbkxyv','186bpHPXU','7130812dpMMfK','write','stderr','10548nzEvwU','21370DZUmmk','419814qixUEc','877116SDvGov','1168FnWDfR','1097484iAjurV'];a191_0x5fe8=function(){return _0x1ad14f;};return a191_0x5fe8();}
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",
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",