@lovrabet/rabetbase-cli 2.3.11-beta.1 → 2.3.12-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 (260) 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/async-task.js +1 -1
  48. package/lib/commands/common/dry-run.js +1 -1
  49. package/lib/commands/common/flags.js +1 -1
  50. package/lib/commands/common/local-file.js +1 -1
  51. package/lib/commands/common/validate.js +1 -1
  52. package/lib/commands/config/get.js +1 -1
  53. package/lib/commands/config/index.js +1 -1
  54. package/lib/commands/config/list.js +1 -1
  55. package/lib/commands/config/set.js +1 -1
  56. package/lib/commands/config/shared.js +1 -1
  57. package/lib/commands/data/filter.js +1 -1
  58. package/lib/commands/data/getOne.js +1 -1
  59. package/lib/commands/data/index.js +1 -1
  60. package/lib/commands/data/shared.js +1 -1
  61. package/lib/commands/dataset/business-group-update.js +1 -1
  62. package/lib/commands/dataset/capability.js +1 -1
  63. package/lib/commands/dataset/delete.js +1 -1
  64. package/lib/commands/dataset/detail.js +1 -1
  65. package/lib/commands/dataset/extend-update.js +1 -1
  66. package/lib/commands/dataset/field-update.js +1 -1
  67. package/lib/commands/dataset/generate.js +1 -1
  68. package/lib/commands/dataset/index.js +1 -1
  69. package/lib/commands/dataset/list.js +1 -1
  70. package/lib/commands/dataset/operations.js +1 -1
  71. package/lib/commands/dataset/relation-audit.js +1 -1
  72. package/lib/commands/dataset/relation-create.js +1 -1
  73. package/lib/commands/dataset/relation-delete.js +1 -1
  74. package/lib/commands/dataset/relation-shared.js +1 -1
  75. package/lib/commands/dataset/relation-update.js +1 -1
  76. package/lib/commands/dataset/relations.js +1 -1
  77. package/lib/commands/dataset/rename.js +1 -1
  78. package/lib/commands/dataset/restore.js +1 -1
  79. package/lib/commands/db/analysis-batching.js +1 -1
  80. package/lib/commands/db/analyze-batch-plan.js +1 -1
  81. package/lib/commands/db/analyze-cancel.js +1 -1
  82. package/lib/commands/db/analyze-start.js +1 -1
  83. package/lib/commands/db/analyze-status.js +1 -1
  84. package/lib/commands/db/create.js +1 -1
  85. package/lib/commands/db/delete.js +1 -1
  86. package/lib/commands/db/detail.js +1 -1
  87. package/lib/commands/db/diff.js +1 -1
  88. package/lib/commands/db/index.js +1 -1
  89. package/lib/commands/db/list.js +1 -1
  90. package/lib/commands/db/shared.js +1 -1
  91. package/lib/commands/db/tables.js +1 -1
  92. package/lib/commands/db/test.js +1 -1
  93. package/lib/commands/db/update.js +1 -1
  94. package/lib/commands/doctor.js +1 -1
  95. package/lib/commands/file/index.js +1 -1
  96. package/lib/commands/init/index.js +1 -1
  97. package/lib/commands/issue/index.js +1 -1
  98. package/lib/commands/issue/nudge.js +1 -1
  99. package/lib/commands/issue/report.js +1 -1
  100. package/lib/commands/issue/shared.js +1 -1
  101. package/lib/commands/logs/index.js +1 -1
  102. package/lib/commands/menu/delete.js +1 -1
  103. package/lib/commands/menu/external-link-create.js +1 -1
  104. package/lib/commands/menu/group-create.js +1 -1
  105. package/lib/commands/menu/group-update.js +1 -1
  106. package/lib/commands/menu/index.js +1 -1
  107. package/lib/commands/menu/list.js +1 -1
  108. package/lib/commands/menu/move.js +1 -1
  109. package/lib/commands/menu/regroup-start.js +1 -1
  110. package/lib/commands/menu/shared/compare-table.js +1 -1
  111. package/lib/commands/menu/shared/delete-plan.js +1 -1
  112. package/lib/commands/menu/shared/facts.js +1 -1
  113. package/lib/commands/menu/shared/index.js +1 -1
  114. package/lib/commands/menu/shared/inquirer.js +1 -1
  115. package/lib/commands/menu/shared/local-pages.js +1 -1
  116. package/lib/commands/menu/shared/logic.js +1 -1
  117. package/lib/commands/menu/shared/mutations.js +1 -1
  118. package/lib/commands/menu/shared/service.js +1 -1
  119. package/lib/commands/menu/shared/sync-core.js +1 -1
  120. package/lib/commands/menu/shared/update-core.js +1 -1
  121. package/lib/commands/menu/shared/valid-url.js +1 -1
  122. package/lib/commands/menu/sync.js +1 -1
  123. package/lib/commands/menu/update.js +1 -1
  124. package/lib/commands/notification/config-list.js +1 -1
  125. package/lib/commands/notification/index.js +1 -1
  126. package/lib/commands/page/generate-start.js +1 -1
  127. package/lib/commands/page/generate-status.js +1 -1
  128. package/lib/commands/page/index.js +1 -1
  129. package/lib/commands/page/pull.js +1 -1
  130. package/lib/commands/page/push.js +1 -1
  131. package/lib/commands/page/relation-audit.js +1 -1
  132. package/lib/commands/page/shared.js +1 -1
  133. package/lib/commands/page/standard-page-status.js +1 -1
  134. package/lib/commands/page/sync.js +1 -1
  135. package/lib/commands/permit/index.js +1 -1
  136. package/lib/commands/permit/page-get.js +1 -1
  137. package/lib/commands/permit/page-set.js +1 -1
  138. package/lib/commands/permit/role-apis-set.js +1 -1
  139. package/lib/commands/permit/role-menus-set.js +1 -1
  140. package/lib/commands/permit/role-menus.js +1 -1
  141. package/lib/commands/permit/shared.js +1 -1
  142. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  143. package/lib/commands/project/create/format-elapsed.js +1 -1
  144. package/lib/commands/project/create/main.js +1 -1
  145. package/lib/commands/project/create/non-interactive.js +1 -1
  146. package/lib/commands/project/create/project-template-path.js +1 -1
  147. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  148. package/lib/commands/project/create/use-format-code.js +1 -1
  149. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  150. package/lib/commands/project/index.js +1 -1
  151. package/lib/commands/project/init.js +1 -1
  152. package/lib/commands/project/upgrade.js +1 -1
  153. package/lib/commands/registry.js +1 -1
  154. package/lib/commands/role/create.js +1 -1
  155. package/lib/commands/role/delete.js +1 -1
  156. package/lib/commands/role/detail.js +1 -1
  157. package/lib/commands/role/index.js +1 -1
  158. package/lib/commands/role/list.js +1 -1
  159. package/lib/commands/role/shared.js +1 -1
  160. package/lib/commands/role/update.js +1 -1
  161. package/lib/commands/role/user-add.js +1 -1
  162. package/lib/commands/role/user-remove.js +1 -1
  163. package/lib/commands/role/user-resolve.js +1 -1
  164. package/lib/commands/run/index.js +1 -1
  165. package/lib/commands/schema.js +1 -1
  166. package/lib/commands/sql/create.js +1 -1
  167. package/lib/commands/sql/delete.js +1 -1
  168. package/lib/commands/sql/detail.js +1 -1
  169. package/lib/commands/sql/exec.js +1 -1
  170. package/lib/commands/sql/index.js +1 -1
  171. package/lib/commands/sql/list.js +1 -1
  172. package/lib/commands/sql/pull.js +1 -1
  173. package/lib/commands/sql/push.js +1 -1
  174. package/lib/commands/sql/save.js +1 -1
  175. package/lib/commands/sql/shared.js +1 -1
  176. package/lib/commands/sql/status.js +1 -1
  177. package/lib/commands/sql/validate.js +1 -1
  178. package/lib/commands/task/index.js +1 -1
  179. package/lib/commands/task/status.js +1 -1
  180. package/lib/commands/workspace/add.js +1 -1
  181. package/lib/commands/workspace/index.js +1 -1
  182. package/lib/commands/workspace/remove.js +1 -1
  183. package/lib/config/schema.js +1 -1
  184. package/lib/constant/cdn.js +1 -1
  185. package/lib/constant/cli.js +1 -1
  186. package/lib/constant/defaults.js +1 -1
  187. package/lib/constant/domain.js +1 -1
  188. package/lib/constant/env.js +1 -1
  189. package/lib/constant/output.js +1 -1
  190. package/lib/constant/paths.js +1 -1
  191. package/lib/constant/risk.js +1 -1
  192. package/lib/context/app-resolver.js +1 -1
  193. package/lib/context/auth-resolver.js +1 -1
  194. package/lib/context/config-loader.js +1 -1
  195. package/lib/context.js +1 -1
  196. package/lib/core/alias-resolver.js +1 -1
  197. package/lib/core/api-client.js +1 -1
  198. package/lib/core/bff/config.js +1 -1
  199. package/lib/core/bff/file-system.js +1 -1
  200. package/lib/core/bff/hash.js +1 -1
  201. package/lib/core/bff/lock.js +1 -1
  202. package/lib/core/bff/utils.js +1 -1
  203. package/lib/core/db-resolver.js +1 -1
  204. package/lib/core/page/file-system.js +1 -1
  205. package/lib/core/page/hash.js +1 -1
  206. package/lib/core/page/lock.js +1 -1
  207. package/lib/core/sql-index-auditor.js +1 -1
  208. package/lib/core/sql-sync/config.js +1 -1
  209. package/lib/core/sql-sync/file-system.js +1 -1
  210. package/lib/core/sql-sync/hash.js +1 -1
  211. package/lib/core/sql-sync/lock.js +1 -1
  212. package/lib/core/sql-sync/utils.js +1 -1
  213. package/lib/core/sql-validator.js +1 -1
  214. package/lib/errors.js +1 -1
  215. package/lib/framework/build-all-flags.js +1 -1
  216. package/lib/framework/error-output.js +1 -1
  217. package/lib/framework/explicit-yes.js +1 -1
  218. package/lib/framework/flags.js +1 -1
  219. package/lib/framework/help.js +1 -1
  220. package/lib/framework/index.js +1 -1
  221. package/lib/framework/output.js +1 -1
  222. package/lib/framework/response.js +1 -1
  223. package/lib/framework/runner-alias.js +1 -1
  224. package/lib/framework/runner.js +1 -1
  225. package/lib/framework/schema-export.js +1 -1
  226. package/lib/framework/types.js +1 -1
  227. package/lib/generated/build-info.js +1 -1
  228. package/lib/help.js +1 -1
  229. package/lib/skills/main.js +1 -1
  230. package/lib/skills/npx-skills-add.js +1 -1
  231. package/lib/telemetry/cli-command-trace.js +1 -1
  232. package/lib/telemetry/cli-help-trace.js +1 -1
  233. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  234. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  235. package/lib/telemetry/send-cli-trace-log.js +1 -1
  236. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  237. package/lib/utils/ai_config.js +1 -1
  238. package/lib/utils/apply-jq-filter.js +1 -1
  239. package/lib/utils/cdn-config.js +1 -1
  240. package/lib/utils/check-sdk-version.js +1 -1
  241. package/lib/utils/cli-version-check.js +1 -1
  242. package/lib/utils/cli-version-policy.js +1 -1
  243. package/lib/utils/config.js +1 -1
  244. package/lib/utils/copy-directory.js +1 -1
  245. package/lib/utils/entity-with-id.js +1 -1
  246. package/lib/utils/file-utils.js +1 -1
  247. package/lib/utils/guides-cdn.js +1 -1
  248. package/lib/utils/http-client.js +1 -1
  249. package/lib/utils/is-non-interactive.js +1 -1
  250. package/lib/utils/logger.js +1 -1
  251. package/lib/utils/params.js +1 -1
  252. package/lib/utils/platform.js +1 -1
  253. package/lib/utils/rules-cdn.js +1 -1
  254. package/lib/utils/sleep.js +1 -1
  255. package/lib/utils/template-replacer.js +1 -1
  256. package/lib/utils/update-notice.js +1 -1
  257. package/lib/utils/version.js +1 -1
  258. package/lib/utils/with-active-cookie.js +1 -1
  259. package/lib/utils/write-cli-side-channel.js +1 -1
  260. package/package.json +1 -1
@@ -1 +1 @@
1
- const a254_0x253d4e=a254_0x33b2;function a254_0x33b2(_0x4c8968,_0x4b71f9){_0x4c8968=_0x4c8968-0x1c4;const _0x1deb38=a254_0x1deb();let _0x33b289=_0x1deb38[_0x4c8968];return _0x33b289;}(function(_0x1324b7,_0x1eff8f){const _0x3b17de=a254_0x33b2,_0x32491c=_0x1324b7();while(!![]){try{const _0x16898d=parseInt(_0x3b17de(0x1d7))/0x1*(-parseInt(_0x3b17de(0x1d5))/0x2)+-parseInt(_0x3b17de(0x1e2))/0x3+parseInt(_0x3b17de(0x1ce))/0x4*(-parseInt(_0x3b17de(0x1d4))/0x5)+parseInt(_0x3b17de(0x1e7))/0x6+-parseInt(_0x3b17de(0x1ed))/0x7+-parseInt(_0x3b17de(0x1f4))/0x8+parseInt(_0x3b17de(0x1d2))/0x9;if(_0x16898d===_0x1eff8f)break;else _0x32491c['push'](_0x32491c['shift']());}catch(_0xc0f1c4){_0x32491c['push'](_0x32491c['shift']());}}}(a254_0x1deb,0x2d4dc));import a254_0x290944 from'winston';function a254_0x1deb(){const _0x29c346=['logFilePath','format','开始执行:\x20','timestamp','752004dnFTdZ','createLogger','log','addColors','join','yellow','1467144hUhCCu','setRawCommand','parse','existsSync','clear','warn','trim','2451288FSMlRH','initWinstonLogger','currentRawCommand','message','stringify','utf8','失败:\x20','error','rawCommand','now','readFileSync','combine','getWinstonInstance','winstonLogger','map','unknown','writeFileSync','Failed\x20to\x20clear\x20logs:','4DQJoeA','info','完成:\x20','filter','8891136DbTieE','level','773560tfYcnF','52VvkYJY','mkdirSync','9202wXAjOM','setLogPath','green','File','Failed\x20to\x20read\x20logs:','.lovrabet.log','command','success','toISOString','duration','dirname','53121pPLEqa'];a254_0x1deb=function(){return _0x29c346;};return a254_0x1deb();}import a254_0x3bec4e from'node:fs';import a254_0x57280b from'node:path';class Logger{['winstonLogger'];['logFilePath'];['currentRawCommand']='';constructor(){const _0x3499ab=a254_0x33b2;this[_0x3499ab(0x1e3)]='';}[a254_0x253d4e(0x1ee)](_0x1f0150){const _0x3359ea=a254_0x253d4e;this[_0x3359ea(0x1f6)]=_0x1f0150;}[a254_0x253d4e(0x1f5)](){const _0x5ef8d2=a254_0x253d4e,_0x46afc3=a254_0x57280b[_0x5ef8d2(0x1e1)](this[_0x5ef8d2(0x1e3)]);!a254_0x3bec4e[_0x5ef8d2(0x1f0)](_0x46afc3)&&a254_0x3bec4e[_0x5ef8d2(0x1d6)](_0x46afc3,{'recursive':!![]});const _0x5de996=a254_0x290944[_0x5ef8d2(0x1e4)][_0x5ef8d2(0x1c7)](a254_0x290944[_0x5ef8d2(0x1e4)]['timestamp'](),a254_0x290944[_0x5ef8d2(0x1e4)]['errors']({'stack':!![]}),a254_0x290944[_0x5ef8d2(0x1e4)]['printf'](_0x3ecd3a=>{const _0x4b54bc=_0x5ef8d2,_0x3e5f2e={'timestamp':_0x3ecd3a[_0x4b54bc(0x1e6)]||new Date()[_0x4b54bc(0x1df)](),'level':_0x3ecd3a[_0x4b54bc(0x1d3)]||'info','command':_0x3ecd3a[_0x4b54bc(0x1dd)]||_0x4b54bc(0x1cb),'rawCommand':_0x3ecd3a[_0x4b54bc(0x1c4)]||this[_0x4b54bc(0x1f6)]||undefined,'message':_0x3ecd3a['message']||'','duration':_0x3ecd3a[_0x4b54bc(0x1e0)]||undefined,'details':_0x3ecd3a['details']||undefined};return JSON[_0x4b54bc(0x1f8)](_0x3e5f2e);}));this[_0x5ef8d2(0x1c9)]=a254_0x290944[_0x5ef8d2(0x1e8)]({'level':_0x5ef8d2(0x1cf),'format':_0x5de996,'transports':[new a254_0x290944['transports'][(_0x5ef8d2(0x1da))]({'filename':this['logFilePath'],'level':_0x5ef8d2(0x1cf)})],'silent':![]}),a254_0x290944[_0x5ef8d2(0x1ea)]({'success':_0x5ef8d2(0x1d9),'error':'red','warn':_0x5ef8d2(0x1ec),'info':'blue'});}[a254_0x253d4e(0x1d8)](_0x2a37b9){const _0x3591e4=a254_0x253d4e;this[_0x3591e4(0x1e3)]=a254_0x57280b[_0x3591e4(0x1eb)](_0x2a37b9,_0x3591e4(0x1dc)),this['winstonLogger']&&this['winstonLogger'][_0x3591e4(0x1f1)](),this[_0x3591e4(0x1f5)]();}[a254_0x253d4e(0x1cf)](_0x281b35,_0x354db2,_0x553b09){const _0x59a13d=a254_0x253d4e;if(!this[_0x59a13d(0x1e3)]||!this['winstonLogger'])return;this['winstonLogger'][_0x59a13d(0x1cf)](_0x354db2,{'command':_0x281b35,'details':_0x553b09});}[a254_0x253d4e(0x1de)](_0x2a8d0d,_0x1d8884,_0x346777,_0xc0d84f){const _0x342428=a254_0x253d4e;if(!this['logFilePath']||!this[_0x342428(0x1c9)])return;this[_0x342428(0x1c9)][_0x342428(0x1e9)](_0x342428(0x1cf),_0x1d8884,{'level':_0x342428(0x1de),'command':_0x2a8d0d,'duration':_0x346777,'details':_0xc0d84f});}[a254_0x253d4e(0x1fb)](_0x218dcd,_0x50565a,_0x4a4fdb){const _0x30a25a=a254_0x253d4e;if(!this['logFilePath']||!this['winstonLogger'])return;this[_0x30a25a(0x1c9)][_0x30a25a(0x1fb)](_0x50565a,{'command':_0x218dcd,'details':_0x4a4fdb});}['warn'](_0x3e29eb,_0x248489,_0x5504d6){const _0x3f2b8f=a254_0x253d4e;if(!this[_0x3f2b8f(0x1e3)]||!this[_0x3f2b8f(0x1c9)])return;this[_0x3f2b8f(0x1c9)][_0x3f2b8f(0x1f2)](_0x248489,{'command':_0x3e29eb,'details':_0x5504d6});}async['logTask'](_0x2bbb7d,_0x4cf5f2,_0x443e1a){const _0x4641e7=a254_0x253d4e,_0x5ba8b5=Date[_0x4641e7(0x1c5)]();this['info'](_0x2bbb7d,_0x4641e7(0x1e5)+_0x4cf5f2);try{const _0x29424d=await _0x443e1a(),_0x455601=Date['now']()-_0x5ba8b5;return this[_0x4641e7(0x1de)](_0x2bbb7d,_0x4641e7(0x1d0)+_0x4cf5f2,_0x455601),_0x29424d;}catch(_0x3b7de2){const _0x4461ad=Date[_0x4641e7(0x1c5)]()-_0x5ba8b5;this[_0x4641e7(0x1fb)](_0x2bbb7d,_0x4641e7(0x1fa)+_0x4cf5f2,{'error':_0x3b7de2 instanceof Error?_0x3b7de2[_0x4641e7(0x1f7)]:String(_0x3b7de2),'duration':_0x4461ad});throw _0x3b7de2;}}['readLogs'](){const _0x1a1140=a254_0x253d4e;try{if(!a254_0x3bec4e[_0x1a1140(0x1f0)](this[_0x1a1140(0x1e3)]))return[];const _0x32278a=a254_0x3bec4e[_0x1a1140(0x1c6)](this['logFilePath'],_0x1a1140(0x1f9));return _0x32278a['split']('\x0a')[_0x1a1140(0x1d1)](_0x59917a=>_0x59917a[_0x1a1140(0x1f3)]())[_0x1a1140(0x1ca)](_0x24de3c=>JSON[_0x1a1140(0x1ef)](_0x24de3c));}catch(_0x1d075c){return console[_0x1a1140(0x1f2)](_0x1a1140(0x1db),_0x1d075c),[];}}['clearLogs'](){const _0x237c5d=a254_0x253d4e;try{a254_0x3bec4e[_0x237c5d(0x1f0)](this[_0x237c5d(0x1e3)])&&a254_0x3bec4e[_0x237c5d(0x1cc)](this[_0x237c5d(0x1e3)],'',_0x237c5d(0x1f9));}catch(_0x3ce6b8){console[_0x237c5d(0x1f2)](_0x237c5d(0x1cd),_0x3ce6b8);}}[a254_0x253d4e(0x1c8)](){const _0x368fb1=a254_0x253d4e;return this[_0x368fb1(0x1c9)];}}export const logger=new Logger();
1
+ const a254_0x1adff5=a254_0x331e;function a254_0x5078(){const _0x43447a=['unknown','blue','6520225BVHxjB','Failed\x20to\x20clear\x20logs:','duration','join','initWinstonLogger','level','3399442czmMHE','map','clearLogs','createLogger','dirname','printf','error','trim','toISOString','parse','success','stringify','968014MmgutS','winstonLogger','2211Mrdpos','.lovrabet.log','existsSync','logTask','details','8055459eMJRJe','6wzejfz','now','utf8','rawCommand','log','184410eAdUSV','addColors','完成:\x20','writeFileSync','warn','File','timestamp','combine','getWinstonInstance','4BZlqzm','readFileSync','format','3619ZDTDEI','message','5143887DoquDr','currentRawCommand','filter','开始执行:\x20','info','11160VEeeBG','logFilePath'];a254_0x5078=function(){return _0x43447a;};return a254_0x5078();}function a254_0x331e(_0x5ac767,_0x4caa17){_0x5ac767=_0x5ac767-0x126;const _0x5078f2=a254_0x5078();let _0x331e97=_0x5078f2[_0x5ac767];return _0x331e97;}(function(_0x6557bf,_0x5c0d91){const _0x7cd4e8=a254_0x331e,_0x308b26=_0x6557bf();while(!![]){try{const _0x239442=parseInt(_0x7cd4e8(0x14c))/0x1+parseInt(_0x7cd4e8(0x140))/0x2+-parseInt(_0x7cd4e8(0x131))/0x3*(-parseInt(_0x7cd4e8(0x12c))/0x4)+-parseInt(_0x7cd4e8(0x13a))/0x5*(parseInt(_0x7cd4e8(0x154))/0x6)+parseInt(_0x7cd4e8(0x12f))/0x7*(parseInt(_0x7cd4e8(0x136))/0x8)+parseInt(_0x7cd4e8(0x153))/0x9+-parseInt(_0x7cd4e8(0x159))/0xa*(parseInt(_0x7cd4e8(0x14e))/0xb);if(_0x239442===_0x5c0d91)break;else _0x308b26['push'](_0x308b26['shift']());}catch(_0x3a3c63){_0x308b26['push'](_0x308b26['shift']());}}}(a254_0x5078,0xf1328));import a254_0x56e02b from'winston';import a254_0x477646 from'node:fs';import a254_0x351b30 from'node:path';class Logger{['winstonLogger'];[a254_0x1adff5(0x137)];[a254_0x1adff5(0x132)]='';constructor(){const _0xf4b4d6=a254_0x1adff5;this[_0xf4b4d6(0x137)]='';}['setRawCommand'](_0x359afc){this['currentRawCommand']=_0x359afc;}[a254_0x1adff5(0x13e)](){const _0x445e13=a254_0x1adff5,_0x1202c3=a254_0x351b30[_0x445e13(0x144)](this[_0x445e13(0x137)]);!a254_0x477646['existsSync'](_0x1202c3)&&a254_0x477646['mkdirSync'](_0x1202c3,{'recursive':!![]});const _0x10ec89=a254_0x56e02b[_0x445e13(0x12e)][_0x445e13(0x12a)](a254_0x56e02b[_0x445e13(0x12e)]['timestamp'](),a254_0x56e02b['format']['errors']({'stack':!![]}),a254_0x56e02b[_0x445e13(0x12e)][_0x445e13(0x145)](_0x285f84=>{const _0x5a98a9=_0x445e13,_0x4f7a50={'timestamp':_0x285f84[_0x5a98a9(0x129)]||new Date()[_0x5a98a9(0x148)](),'level':_0x285f84[_0x5a98a9(0x13f)]||'info','command':_0x285f84['command']||_0x5a98a9(0x138),'rawCommand':_0x285f84[_0x5a98a9(0x157)]||this[_0x5a98a9(0x132)]||undefined,'message':_0x285f84[_0x5a98a9(0x130)]||'','duration':_0x285f84[_0x5a98a9(0x13c)]||undefined,'details':_0x285f84[_0x5a98a9(0x152)]||undefined};return JSON[_0x5a98a9(0x14b)](_0x4f7a50);}));this[_0x445e13(0x14d)]=a254_0x56e02b[_0x445e13(0x143)]({'level':_0x445e13(0x135),'format':_0x10ec89,'transports':[new a254_0x56e02b['transports'][(_0x445e13(0x128))]({'filename':this[_0x445e13(0x137)],'level':_0x445e13(0x135)})],'silent':![]}),a254_0x56e02b[_0x445e13(0x15a)]({'success':'green','error':'red','warn':'yellow','info':_0x445e13(0x139)});}['setLogPath'](_0x466f4b){const _0x26614d=a254_0x1adff5;this[_0x26614d(0x137)]=a254_0x351b30[_0x26614d(0x13d)](_0x466f4b,_0x26614d(0x14f)),this[_0x26614d(0x14d)]&&this[_0x26614d(0x14d)]['clear'](),this['initWinstonLogger']();}[a254_0x1adff5(0x135)](_0xca84d,_0x1adaf2,_0x5d07ee){const _0x5844cb=a254_0x1adff5;if(!this[_0x5844cb(0x137)]||!this[_0x5844cb(0x14d)])return;this['winstonLogger'][_0x5844cb(0x135)](_0x1adaf2,{'command':_0xca84d,'details':_0x5d07ee});}[a254_0x1adff5(0x14a)](_0x430f2a,_0x1b0b64,_0x325063,_0xaf2ea0){const _0x14f868=a254_0x1adff5;if(!this[_0x14f868(0x137)]||!this[_0x14f868(0x14d)])return;this[_0x14f868(0x14d)][_0x14f868(0x158)](_0x14f868(0x135),_0x1b0b64,{'level':_0x14f868(0x14a),'command':_0x430f2a,'duration':_0x325063,'details':_0xaf2ea0});}[a254_0x1adff5(0x146)](_0x55a47a,_0x49a53a,_0x34f3f4){const _0x1e541e=a254_0x1adff5;if(!this[_0x1e541e(0x137)]||!this['winstonLogger'])return;this[_0x1e541e(0x14d)][_0x1e541e(0x146)](_0x49a53a,{'command':_0x55a47a,'details':_0x34f3f4});}['warn'](_0x5983b7,_0x144283,_0x378b48){const _0x12a1bc=a254_0x1adff5;if(!this['logFilePath']||!this[_0x12a1bc(0x14d)])return;this['winstonLogger'][_0x12a1bc(0x127)](_0x144283,{'command':_0x5983b7,'details':_0x378b48});}async[a254_0x1adff5(0x151)](_0x50b055,_0x2a10c6,_0x10f0b2){const _0x37d45d=a254_0x1adff5,_0xbba204=Date[_0x37d45d(0x155)]();this[_0x37d45d(0x135)](_0x50b055,_0x37d45d(0x134)+_0x2a10c6);try{const _0x3d0fb4=await _0x10f0b2(),_0x149e30=Date[_0x37d45d(0x155)]()-_0xbba204;return this[_0x37d45d(0x14a)](_0x50b055,_0x37d45d(0x15b)+_0x2a10c6,_0x149e30),_0x3d0fb4;}catch(_0x4a2740){const _0x4813f0=Date[_0x37d45d(0x155)]()-_0xbba204;this[_0x37d45d(0x146)](_0x50b055,'失败:\x20'+_0x2a10c6,{'error':_0x4a2740 instanceof Error?_0x4a2740[_0x37d45d(0x130)]:String(_0x4a2740),'duration':_0x4813f0});throw _0x4a2740;}}['readLogs'](){const _0x191b8d=a254_0x1adff5;try{if(!a254_0x477646[_0x191b8d(0x150)](this[_0x191b8d(0x137)]))return[];const _0xfd72bb=a254_0x477646[_0x191b8d(0x12d)](this[_0x191b8d(0x137)],_0x191b8d(0x156));return _0xfd72bb['split']('\x0a')[_0x191b8d(0x133)](_0x14c698=>_0x14c698[_0x191b8d(0x147)]())[_0x191b8d(0x141)](_0x27876e=>JSON[_0x191b8d(0x149)](_0x27876e));}catch(_0x5292c8){return console[_0x191b8d(0x127)]('Failed\x20to\x20read\x20logs:',_0x5292c8),[];}}[a254_0x1adff5(0x142)](){const _0x1151a2=a254_0x1adff5;try{a254_0x477646['existsSync'](this[_0x1151a2(0x137)])&&a254_0x477646[_0x1151a2(0x126)](this[_0x1151a2(0x137)],'','utf8');}catch(_0x332446){console[_0x1151a2(0x127)](_0x1151a2(0x13b),_0x332446);}}[a254_0x1adff5(0x12b)](){const _0x218720=a254_0x1adff5;return this[_0x218720(0x14d)];}}export const logger=new Logger();
@@ -1 +1 @@
1
- (function(_0x3b3db9,_0x48b4b2){const _0x2b1357=a255_0x93d7,_0x203f57=_0x3b3db9();while(!![]){try{const _0x2826e4=parseInt(_0x2b1357(0x1b0))/0x1*(-parseInt(_0x2b1357(0x1a6))/0x2)+parseInt(_0x2b1357(0x1aa))/0x3+parseInt(_0x2b1357(0x1a8))/0x4+parseInt(_0x2b1357(0x1a7))/0x5*(parseInt(_0x2b1357(0x1ae))/0x6)+-parseInt(_0x2b1357(0x1a9))/0x7*(parseInt(_0x2b1357(0x1ad))/0x8)+-parseInt(_0x2b1357(0x1a0))/0x9*(parseInt(_0x2b1357(0x1ac))/0xa)+parseInt(_0x2b1357(0x1a1))/0xb;if(_0x2826e4===_0x48b4b2)break;else _0x203f57['push'](_0x203f57['shift']());}catch(_0x412064){_0x203f57['push'](_0x203f57['shift']());}}}(a255_0x39f4,0x57d27));function a255_0x93d7(_0x2a4906,_0x442edc){_0x2a4906=_0x2a4906-0x1a0;const _0x39f43d=a255_0x39f4();let _0x93d702=_0x39f43d[_0x2a4906];return _0x93d702;}function a255_0x39f4(){const _0x346192=['isArray','325990FcUTEL','1850808uFSDBN','498thmJxw','Invalid\x20JSON\x20for\x20--params:\x20','62VqCthH','18uktgzP','1920105kYlABQ','validation','object','Example:\x20--params\x20\x27{\x22id\x22:123}\x27','--params\x20must\x20be\x20a\x20JSON\x20object','9474potqXC','10965anoRdC','2821836GyTNiL','21medBLQ','1051893juAkth'];a255_0x39f4=function(){return _0x346192;};return a255_0x39f4();}import{CliErrors}from'../errors.js';export function parseJsonParams(_0x112596){const _0x4f0231=a255_0x93d7;if(!_0x112596)return undefined;let _0x57c042;try{_0x57c042=JSON['parse'](_0x112596);}catch{throw CliErrors[_0x4f0231(0x1a2)](_0x4f0231(0x1af)+_0x112596);}if(!_0x57c042||typeof _0x57c042!==_0x4f0231(0x1a3)||Array[_0x4f0231(0x1ab)](_0x57c042))throw CliErrors[_0x4f0231(0x1a2)](_0x4f0231(0x1a5),_0x4f0231(0x1a4));return _0x57c042;}
1
+ function a255_0x333e(_0x33f624,_0x3626b3){_0x33f624=_0x33f624-0x11b;const _0x5d496f=a255_0x5d49();let _0x333ee9=_0x5d496f[_0x33f624];return _0x333ee9;}(function(_0x1a75e2,_0x4a76b5){const _0x27eb40=a255_0x333e,_0x243829=_0x1a75e2();while(!![]){try{const _0x130780=-parseInt(_0x27eb40(0x11f))/0x1+-parseInt(_0x27eb40(0x128))/0x2+parseInt(_0x27eb40(0x11e))/0x3+parseInt(_0x27eb40(0x11b))/0x4*(-parseInt(_0x27eb40(0x122))/0x5)+parseInt(_0x27eb40(0x127))/0x6+parseInt(_0x27eb40(0x123))/0x7*(-parseInt(_0x27eb40(0x11d))/0x8)+-parseInt(_0x27eb40(0x120))/0x9*(-parseInt(_0x27eb40(0x126))/0xa);if(_0x130780===_0x4a76b5)break;else _0x243829['push'](_0x243829['shift']());}catch(_0x22bf59){_0x243829['push'](_0x243829['shift']());}}}(a255_0x5d49,0x9368d));import{CliErrors}from'../errors.js';function a255_0x5d49(){const _0xfbda7f=['Invalid\x20JSON\x20for\x20--params:\x20','20368690FODPWo','3917202tZVvyP','1700004xJAaoo','8bOXxWl','object','11608zPeJnI','3607041hHeVJx','931472LNxvEO','9YksTqC','--params\x20must\x20be\x20a\x20JSON\x20object','2881940WXTwsV','1708iSQHnf','Example:\x20--params\x20\x27{\x22id\x22:123}\x27'];a255_0x5d49=function(){return _0xfbda7f;};return a255_0x5d49();}export function parseJsonParams(_0x1b0973){const _0x1d8e53=a255_0x333e;if(!_0x1b0973)return undefined;let _0x124899;try{_0x124899=JSON['parse'](_0x1b0973);}catch{throw CliErrors['validation'](_0x1d8e53(0x125)+_0x1b0973);}if(!_0x124899||typeof _0x124899!==_0x1d8e53(0x11c)||Array['isArray'](_0x124899))throw CliErrors['validation'](_0x1d8e53(0x121),_0x1d8e53(0x124));return _0x124899;}
@@ -1 +1 @@
1
- const a256_0x29d7c5=a256_0xfc39;(function(_0x5179ee,_0x2545fe){const _0x298caf=a256_0xfc39,_0x40c4db=_0x5179ee();while(!![]){try{const _0x4e55b8=parseInt(_0x298caf(0x170))/0x1+parseInt(_0x298caf(0x16e))/0x2*(-parseInt(_0x298caf(0x174))/0x3)+parseInt(_0x298caf(0x178))/0x4+-parseInt(_0x298caf(0x176))/0x5+parseInt(_0x298caf(0x172))/0x6+parseInt(_0x298caf(0x171))/0x7*(-parseInt(_0x298caf(0x175))/0x8)+parseInt(_0x298caf(0x16f))/0x9*(parseInt(_0x298caf(0x16d))/0xa);if(_0x4e55b8===_0x2545fe)break;else _0x40c4db['push'](_0x40c4db['shift']());}catch(_0x242910){_0x40c4db['push'](_0x40c4db['shift']());}}}(a256_0x1508,0x9bc61));function a256_0x1508(){const _0x3fd19c=['3GcPsCb','5357368LGedLC','1786910tGEMTn','platform','142336LZjHik','.cmd','50WqnkAD','1409222NZksia','1906299ydOhEl','866123SBlvAI','7nQlmVF','2453706LHpSKE','win32'];a256_0x1508=function(){return _0x3fd19c;};return a256_0x1508();}export const isWindows=process[a256_0x29d7c5(0x177)]===a256_0x29d7c5(0x173);function a256_0xfc39(_0x515f65,_0xecc4a1){_0x515f65=_0x515f65-0x16c;const _0x150852=a256_0x1508();let _0xfc393c=_0x150852[_0x515f65];return _0xfc393c;}export function resolveNpmBin(_0x4c0181){const _0x3a2444=a256_0x29d7c5;return isWindows?_0x4c0181+_0x3a2444(0x16c):_0x4c0181;}
1
+ function a256_0x1d61(_0x378c31,_0x3af0f0){_0x378c31=_0x378c31-0xa2;const _0x1bdba9=a256_0x1bdb();let _0x1d6142=_0x1bdba9[_0x378c31];return _0x1d6142;}const a256_0x3db0f9=a256_0x1d61;(function(_0x4048db,_0x2b6dab){const _0x134997=a256_0x1d61,_0x33332b=_0x4048db();while(!![]){try{const _0x2b1d13=-parseInt(_0x134997(0xa2))/0x1+-parseInt(_0x134997(0xa7))/0x2*(-parseInt(_0x134997(0xab))/0x3)+parseInt(_0x134997(0xa3))/0x4+parseInt(_0x134997(0xaf))/0x5*(parseInt(_0x134997(0xa8))/0x6)+parseInt(_0x134997(0xa5))/0x7*(-parseInt(_0x134997(0xaa))/0x8)+-parseInt(_0x134997(0xa6))/0x9*(parseInt(_0x134997(0xae))/0xa)+parseInt(_0x134997(0xa4))/0xb;if(_0x2b1d13===_0x2b6dab)break;else _0x33332b['push'](_0x33332b['shift']());}catch(_0x5646cc){_0x33332b['push'](_0x33332b['shift']());}}}(a256_0x1bdb,0xd4bb5));export const isWindows=process[a256_0x3db0f9(0xac)]===a256_0x3db0f9(0xa9);function a256_0x1bdb(){const _0x32335e=['.cmd','1959970PADrKT','257585vaGPsK','439915CLoGUZ','5734844clNNso','18101424rYkeqo','273aRPeof','63cpDiKb','8kpWXiA','6mGSMnj','win32','117976DshJbd','95673MtMCAi','platform'];a256_0x1bdb=function(){return _0x32335e;};return a256_0x1bdb();}export function resolveNpmBin(_0xf218de){const _0x399a0c=a256_0x3db0f9;return isWindows?_0xf218de+_0x399a0c(0xad):_0xf218de;}
@@ -1 +1 @@
1
- const a257_0x4fbef3=a257_0x3f08;(function(_0x593ddb,_0x33f4b0){const _0x32e52c=a257_0x3f08,_0x189be5=_0x593ddb();while(!![]){try{const _0x24a140=-parseInt(_0x32e52c(0x1db))/0x1*(-parseInt(_0x32e52c(0x1d3))/0x2)+-parseInt(_0x32e52c(0x1d0))/0x3*(-parseInt(_0x32e52c(0x1e2))/0x4)+parseInt(_0x32e52c(0x1d9))/0x5+parseInt(_0x32e52c(0x1d6))/0x6*(parseInt(_0x32e52c(0x1da))/0x7)+parseInt(_0x32e52c(0x1e0))/0x8+parseInt(_0x32e52c(0x1cd))/0x9+-parseInt(_0x32e52c(0x1e1))/0xa*(parseInt(_0x32e52c(0x1ce))/0xb);if(_0x24a140===_0x33f4b0)break;else _0x189be5['push'](_0x189be5['shift']());}catch(_0x357e3d){_0x189be5['push'](_0x189be5['shift']());}}}(a257_0x3f00,0x59721));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 _0x23a29a=a257_0x3f08,_0x1fa917=getTemplateBaseUrl();return _0x1fa917+_0x23a29a(0x1dc);}const LOCAL_TEMPLATE_PATH=resolve(__dirname,a257_0x4fbef3(0x1d2));export async function fetchRulesFromCDN(){const _0x186b09=a257_0x4fbef3,_0x44c394=getRulesCdnUrl(),_0x2d88c0=await fetch(_0x44c394,{'headers':{'Accept':_0x186b09(0x1d1)}});if(!_0x2d88c0['ok'])throw new Error('CDN\x20请求失败:\x20'+_0x2d88c0['status']+'\x20'+_0x2d88c0[_0x186b09(0x1d8)]);const _0xbda207=await _0x2d88c0[_0x186b09(0x1cf)]();if(!_0xbda207[_0x186b09(0x1d5)]||typeof _0xbda207['content']!==_0x186b09(0x1de))throw new Error('CDN\x20返回数据格式错误');return _0xbda207;}export async function getRulesContent(){const _0x117638=a257_0x4fbef3;try{const _0x5400c2=await fetchRulesFromCDN();return _0x5400c2[_0x117638(0x1d5)];}catch{return readLocalTemplate();}}export function readLocalTemplate(){const _0x61bb6e=a257_0x4fbef3;if(existsSync(LOCAL_TEMPLATE_PATH))return readFileSync(LOCAL_TEMPLATE_PATH,_0x61bb6e(0x1d4));throw new Error(_0x61bb6e(0x1df)+LOCAL_TEMPLATE_PATH);}function a257_0x3f08(_0x4de187,_0x39a518){_0x4de187=_0x4de187-0x1cd;const _0x3f0040=a257_0x3f00();let _0x3f0855=_0x3f0040[_0x4de187];return _0x3f0855;}export async function writeRulesFile(_0x45109f){const _0x69dd45=a257_0x4fbef3,_0x3cade0=await fetchRulesFromCDN()[_0x69dd45(0x1dd)](()=>null);let _0x5a220b;_0x3cade0?(_0x5a220b=_0x3cade0[_0x69dd45(0x1d5)],_0x3cade0[_0x69dd45(0x1e3)]&&(_0x5a220b=appendUpdateTime(_0x5a220b,_0x3cade0[_0x69dd45(0x1e3)]))):_0x5a220b=readLocalTemplate();const _0x55240=dirname(_0x45109f);!existsSync(_0x55240)&&mkdirSync(_0x55240,{'recursive':!![]}),writeFileSync(_0x45109f,_0x5a220b,_0x69dd45(0x1d4));}export async function copyRulesToCursor(_0x456f8d){const _0x1a3fc0=a257_0x4fbef3,_0x23e9e5=join(_0x456f8d,_0x1a3fc0(0x1d7)),_0x5deb60=join(_0x23e9e5,'lovrabet_rules.mdc');if(existsSync(_0x5deb60))return![];return await writeRulesFile(_0x5deb60),!![];}function a257_0x3f00(){const _0x360a00=['application/json','../../templates/rules/lovrabet_rules.mdc.tpl','40kGwkkQ','utf-8','content','48438CFgSLx','.cursor/rules','statusText','1366265ofHIXq','175XsWdFu','3539dtiELE','/rules/rules.json','catch','string','本地模板文件不存在:\x20','5380976Phvczy','82610fjhBrK','25204ONocGL','lastUpdated','5643135AFVOCV','2431tGOzye','json','165uqfBVp'];a257_0x3f00=function(){return _0x360a00;};return a257_0x3f00();}export async function copyRulesToAgentsMd(_0x2d638f){const _0x2d0da3=join(_0x2d638f,'agents.md');if(existsSync(_0x2d0da3))return![];return await writeRulesFile(_0x2d0da3),!![];}
1
+ function a257_0x103c(){const _0x5b3b11=['4sPKHlR','80UuraCs','635663vPGpfi','status','.cursor/rules','本地模板文件不存在:\x20','1992506qSFoFI','50tJYjil','utf-8','11341ZFVlAO','statusText','4329990svkdCV','CDN\x20返回数据格式错误','content','string','5944595nQxXfF','agents.md','408033evhshm','lovrabet_rules.mdc','1548776bQZeIs','CDN\x20请求失败:\x20','16836pBdkwW','3jzNtpY','application/json','lastUpdated'];a257_0x103c=function(){return _0x5b3b11;};return a257_0x103c();}(function(_0x548a72,_0xffcf65){const _0xf636bb=a257_0x93d7,_0x1a18ed=_0x548a72();while(!![]){try{const _0xe9c650=parseInt(_0xf636bb(0x1b9))/0x1+-parseInt(_0xf636bb(0x1c5))/0x2*(parseInt(_0xf636bb(0x1bc))/0x3)+-parseInt(_0xf636bb(0x1bf))/0x4*(parseInt(_0xf636bb(0x1b5))/0x5)+parseInt(_0xf636bb(0x1ca))/0x6+parseInt(_0xf636bb(0x1c1))/0x7*(-parseInt(_0xf636bb(0x1c0))/0x8)+-parseInt(_0xf636bb(0x1b7))/0x9*(-parseInt(_0xf636bb(0x1c6))/0xa)+parseInt(_0xf636bb(0x1c8))/0xb*(parseInt(_0xf636bb(0x1bb))/0xc);if(_0xe9c650===_0xffcf65)break;else _0x1a18ed['push'](_0x1a18ed['shift']());}catch(_0x34da34){_0x1a18ed['push'](_0x1a18ed['shift']());}}}(a257_0x103c,0xcf9b5));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 _0x48d1da=getTemplateBaseUrl();return _0x48d1da+'/rules/rules.json';}const LOCAL_TEMPLATE_PATH=resolve(__dirname,'../../templates/rules/lovrabet_rules.mdc.tpl');export async function fetchRulesFromCDN(){const _0x56ecb3=a257_0x93d7,_0x5d8fe4=getRulesCdnUrl(),_0x1cfc30=await fetch(_0x5d8fe4,{'headers':{'Accept':_0x56ecb3(0x1bd)}});if(!_0x1cfc30['ok'])throw new Error(_0x56ecb3(0x1ba)+_0x1cfc30[_0x56ecb3(0x1c2)]+'\x20'+_0x1cfc30[_0x56ecb3(0x1c9)]);const _0x35728f=await _0x1cfc30['json']();if(!_0x35728f[_0x56ecb3(0x1b3)]||typeof _0x35728f[_0x56ecb3(0x1b3)]!==_0x56ecb3(0x1b4))throw new Error(_0x56ecb3(0x1cb));return _0x35728f;}export async function getRulesContent(){const _0x3c02ca=a257_0x93d7;try{const _0x24694a=await fetchRulesFromCDN();return _0x24694a[_0x3c02ca(0x1b3)];}catch{return readLocalTemplate();}}export function readLocalTemplate(){const _0x5b0425=a257_0x93d7;if(existsSync(LOCAL_TEMPLATE_PATH))return readFileSync(LOCAL_TEMPLATE_PATH,'utf-8');throw new Error(_0x5b0425(0x1c4)+LOCAL_TEMPLATE_PATH);}export async function writeRulesFile(_0x41bf8b){const _0x55b562=a257_0x93d7,_0x3e7c9e=await fetchRulesFromCDN()['catch'](()=>null);let _0x2d7d2a;_0x3e7c9e?(_0x2d7d2a=_0x3e7c9e[_0x55b562(0x1b3)],_0x3e7c9e['lastUpdated']&&(_0x2d7d2a=appendUpdateTime(_0x2d7d2a,_0x3e7c9e[_0x55b562(0x1be)]))):_0x2d7d2a=readLocalTemplate();const _0x22ee8d=dirname(_0x41bf8b);!existsSync(_0x22ee8d)&&mkdirSync(_0x22ee8d,{'recursive':!![]}),writeFileSync(_0x41bf8b,_0x2d7d2a,_0x55b562(0x1c7));}export async function copyRulesToCursor(_0x3c7eb0){const _0x2995ec=a257_0x93d7,_0x37e215=join(_0x3c7eb0,_0x2995ec(0x1c3)),_0x5e4573=join(_0x37e215,_0x2995ec(0x1b8));if(existsSync(_0x5e4573))return![];return await writeRulesFile(_0x5e4573),!![];}function a257_0x93d7(_0x4e94ae,_0x4d7d55){_0x4e94ae=_0x4e94ae-0x1b3;const _0x103c76=a257_0x103c();let _0x93d75a=_0x103c76[_0x4e94ae];return _0x93d75a;}export async function copyRulesToAgentsMd(_0x1e8546){const _0x7ada63=a257_0x93d7,_0x1ad015=join(_0x1e8546,_0x7ada63(0x1b6));if(existsSync(_0x1ad015))return![];return await writeRulesFile(_0x1ad015),!![];}
@@ -1 +1 @@
1
- export function sleep(_0x526866){return new Promise(_0xcfa461=>setTimeout(_0xcfa461,_0x526866));}
1
+ export function sleep(_0x42987f){return new Promise(_0x2350d1=>setTimeout(_0x2350d1,_0x42987f));}
@@ -1 +1 @@
1
- const a259_0x3febde=a259_0x1327;function a259_0x5d25(){const _0x15229a=['copyFile','YourModel','pop','readFile','message','pad','18GjXfiE','.js','toComponentName','isFile','template','getMinutes','.json','processFile','alias:\x20\x22','toLowerCase','开始处理模板内容替换','\x20},','toDisplayTitle','name:\x20\x22','.tpl','name','.scss','11UkQrud','promises','extname','datasetCode','alias','11196333sKBGeB','processDirectory','LOVRABET','mkdir','map','getHours','1115528dibuqg','charAt','tableName:\x20\x22','formatLocalTimestamp','12517370ymCCUS','getDate','replaceContent','slice','tableName','3476564UYAJcJ','api','success','replace','10GniHpy','processTemplate','now','toUpperCase','toISOString','.css','.ts','3109764LkRwvL','push','default','split','8VyWxIF','datasetCode:\x20\x22','join','模板内容替换完成','459529NyxZGa','isDirectory','501588IYqJnN','getMonth','utf8'];a259_0x5d25=function(){return _0x15229a;};return a259_0x5d25();}(function(_0x325860,_0x5e8cd1){const _0x22ea3c=a259_0x1327,_0x15a6b9=_0x325860();while(!![]){try{const _0x558beb=parseInt(_0x22ea3c(0x207))/0x1+parseInt(_0x22ea3c(0x212))/0x2*(-parseInt(_0x22ea3c(0x209))/0x3)+parseInt(_0x22ea3c(0x1eb))/0x4+-parseInt(_0x22ea3c(0x1f8))/0x5*(-parseInt(_0x22ea3c(0x1ff))/0x6)+parseInt(_0x22ea3c(0x1f4))/0x7+-parseInt(_0x22ea3c(0x203))/0x8*(parseInt(_0x22ea3c(0x1e5))/0x9)+-parseInt(_0x22ea3c(0x1ef))/0xa*(-parseInt(_0x22ea3c(0x1e0))/0xb);if(_0x558beb===_0x5e8cd1)break;else _0x15a6b9['push'](_0x15a6b9['shift']());}catch(_0x3c21e9){_0x15a6b9['push'](_0x15a6b9['shift']());}}}(a259_0x5d25,0xbd1bb));import a259_0x5d0ab1 from'node:fs';import a259_0x3f03c3 from'node:path';import{logger}from'../utils/logger.js';import{getCliVersion}from'../utils/version.js';const CLI_VERSION=getCliVersion();function a259_0x1327(_0x533d73,_0x5d329d){_0x533d73=_0x533d73-0x1dc;const _0x5d25c7=a259_0x5d25();let _0x132740=_0x5d25c7[_0x533d73];return _0x132740;}export class TemplateReplacer{static[a259_0x3febde(0x211)](_0x1c417c){return String(_0x1c417c)['padStart'](0x2,'0');}static['formatLocalTimestamp'](_0x10cf05){const _0x21bb9f=a259_0x3febde,_0x375b4a=_0x10cf05['getFullYear'](),_0x25ad45=this['pad'](_0x10cf05[_0x21bb9f(0x20a)]()+0x1),_0x2d6ea0=this[_0x21bb9f(0x211)](_0x10cf05[_0x21bb9f(0x1f0)]()),_0x510e99=this[_0x21bb9f(0x211)](_0x10cf05[_0x21bb9f(0x1ea)]()),_0x117590=this[_0x21bb9f(0x211)](_0x10cf05[_0x21bb9f(0x217)]()),_0x5076ff=this[_0x21bb9f(0x211)](_0x10cf05['getSeconds']());return{'createdAt':_0x375b4a+'-'+_0x25ad45+'-'+_0x2d6ea0+'\x20'+_0x510e99+':'+_0x117590+':'+_0x5076ff,'createdDate':_0x375b4a+'-'+_0x25ad45+'-'+_0x2d6ea0,'createdTime':_0x510e99+':'+_0x117590+':'+_0x5076ff};}static[a259_0x3febde(0x214)](_0x120dab){const _0x340e25=a259_0x3febde,_0x137138=_0x120dab[_0x340e25(0x202)]('/')[_0x340e25(0x20e)]()||_0x120dab;return _0x137138[_0x340e25(0x202)]('-')[_0x340e25(0x1e9)](_0x28c29a=>_0x28c29a[_0x340e25(0x1ec)](0x0)[_0x340e25(0x1fb)]()+_0x28c29a[_0x340e25(0x1f2)](0x1)[_0x340e25(0x21b)]())[_0x340e25(0x205)]('');}static[a259_0x3febde(0x21e)](_0x345cc2){const _0x4c11ec=a259_0x3febde,_0x34acbe=_0x345cc2[_0x4c11ec(0x202)]('/')[_0x4c11ec(0x20e)]()||_0x345cc2;return _0x34acbe[_0x4c11ec(0x202)]('-')['map'](_0x673027=>_0x673027[_0x4c11ec(0x1ec)](0x0)[_0x4c11ec(0x1fb)]()+_0x673027[_0x4c11ec(0x1f2)](0x1)['toLowerCase']())[_0x4c11ec(0x205)]('\x20');}static[a259_0x3febde(0x1f1)](_0x342d99,_0x41cbd7,_0x4d1434){const _0x3dcf96=a259_0x3febde,_0x9bbb6b=this['toComponentName'](_0x41cbd7),_0x393d4a=this[_0x3dcf96(0x21e)](_0x41cbd7),{createdAt:_0x2a186e,createdDate:_0x536312,createdTime:_0x3f7a19}=this[_0x3dcf96(0x1ee)](new Date());let _0x29d570=_0x342d99[_0x3dcf96(0x1f7)](/\{CliVersion\}/g,CLI_VERSION)[_0x3dcf96(0x1f7)](/\{ComponentName\}/g,_0x9bbb6b)[_0x3dcf96(0x1f7)](/\{DisplayTitle\}/g,_0x393d4a)[_0x3dcf96(0x1f7)](/\{PageName\}/g,_0x41cbd7)['replace'](/\{TemplateName\}/g,_0x4d1434)[_0x3dcf96(0x1f7)](/\{CreatedAt\}/g,_0x2a186e)['replace'](/\{CreatedDate\}/g,_0x536312)[_0x3dcf96(0x1f7)](/\{CreatedTime\}/g,_0x3f7a19);return _0x29d570;}static['replaceApiContent'](_0x574783,_0x2bc3f1,_0x1c03d8,_0x50b450,_0x11a439,_0x206029,_0x4e788b,_0x42b295){const _0x92b06c=a259_0x3febde,_0x3633b7=new Date(),_0x40bea2=_0x3633b7[_0x92b06c(0x1fc)](),_0x2e3694=_0x1c03d8['map'](_0xd5606e=>{const _0x5b1f80=_0x92b06c,_0x12156d=[_0x5b1f80(0x204)+_0xd5606e[_0x5b1f80(0x1e3)]+'\x22',_0x5b1f80(0x1ed)+_0xd5606e[_0x5b1f80(0x1f3)]+'\x22',_0x5b1f80(0x1dc)+_0xd5606e[_0x5b1f80(0x1de)]+'\x22'];return _0xd5606e[_0x5b1f80(0x1e4)]&&_0x12156d[_0x5b1f80(0x200)](_0x5b1f80(0x21a)+_0xd5606e[_0x5b1f80(0x1e4)]+'\x22'),'\x0a\x20\x20\x20\x20{\x20'+_0x12156d[_0x5b1f80(0x205)](',\x20')+_0x5b1f80(0x21d);})[_0x92b06c(0x205)](''),_0xd5aa0f=_0x50b450||_0x1c03d8[0x0]?.[_0x92b06c(0x1e4)]||_0x92b06c(0x20d);let _0x3e8e57=_0x574783[_0x92b06c(0x1f7)](/\{AppCode\}/g,_0x2bc3f1)['replace'](/\{ModelConfigs\}/g,_0x2e3694)[_0x92b06c(0x1f7)](/\{ExampleModelName\}/g,_0xd5aa0f)[_0x92b06c(0x1f7)](/\{ApiFileName\}/g,_0x11a439||_0x92b06c(0x1f5))[_0x92b06c(0x1f7)](/\{ConfigName\}/g,_0x206029||_0x92b06c(0x201))[_0x92b06c(0x1f7)](/\{ClientConfigParam\}/g,_0x4e788b||'')[_0x92b06c(0x1f7)](/\{VarPrefix\}/g,_0x42b295||_0x92b06c(0x1e7))['replace'](/\{CreatedAt\}/g,_0x40bea2);return _0x3e8e57;}static async[a259_0x3febde(0x1f9)](_0x188525,_0x2080d9,_0x3f9b31,_0x4313b3,_0x5ca6ac=!![]){const _0x14fd73=a259_0x3febde,_0x44eca2=Date[_0x14fd73(0x1fa)]();try{_0x5ca6ac&&logger['info'](_0x14fd73(0x216),_0x14fd73(0x21c),{'templatePath':_0x188525,'targetPath':_0x2080d9,'pageName':_0x3f9b31,'templateName':_0x4313b3});await a259_0x5d0ab1[_0x14fd73(0x1e1)][_0x14fd73(0x1e8)](_0x2080d9,{'recursive':!![]}),await this['processDirectory'](_0x188525,_0x2080d9,_0x3f9b31,_0x4313b3);if(_0x5ca6ac){const _0x286bf1=Date['now']()-_0x44eca2;logger[_0x14fd73(0x1f6)]('template',_0x14fd73(0x206),_0x286bf1,{'pageName':_0x3f9b31,'templateName':_0x4313b3});}}catch(_0x1074de){if(_0x5ca6ac){const _0x2c3768=Date[_0x14fd73(0x1fa)]()-_0x44eca2;logger['error'](_0x14fd73(0x216),'模板内容替换失败',{'templatePath':_0x188525,'targetPath':_0x2080d9,'pageName':_0x3f9b31,'templateName':_0x4313b3,'error':_0x1074de instanceof Error?_0x1074de[_0x14fd73(0x210)]:String(_0x1074de),'duration':_0x2c3768});}throw _0x1074de;}}static async[a259_0x3febde(0x1e6)](_0x2f305b,_0x31277b,_0x1c433b,_0x259299){const _0x1ab88b=a259_0x3febde,_0x4aafaa=await a259_0x5d0ab1[_0x1ab88b(0x1e1)]['readdir'](_0x2f305b,{'withFileTypes':!![]});for(const _0x450f35 of _0x4aafaa){const _0x1e5a5c=a259_0x3f03c3[_0x1ab88b(0x205)](_0x2f305b,_0x450f35['name']);let _0x470788=a259_0x3f03c3['join'](_0x31277b,_0x450f35[_0x1ab88b(0x1de)]);_0x450f35[_0x1ab88b(0x1de)]['endsWith']('.tpl')&&(_0x470788=a259_0x3f03c3[_0x1ab88b(0x205)](_0x31277b,_0x450f35[_0x1ab88b(0x1de)]['replace'](/\.tpl$/,'')));if(_0x450f35[_0x1ab88b(0x208)]())await a259_0x5d0ab1[_0x1ab88b(0x1e1)][_0x1ab88b(0x1e8)](_0x470788,{'recursive':!![]}),await this[_0x1ab88b(0x1e6)](_0x1e5a5c,_0x470788,_0x1c433b,_0x259299);else _0x450f35[_0x1ab88b(0x215)]()&&await this[_0x1ab88b(0x219)](_0x1e5a5c,_0x470788,_0x1c433b,_0x259299);}}static async[a259_0x3febde(0x219)](_0x117151,_0x384ec7,_0x406068,_0x4ffa06){const _0x11c4f1=a259_0x3febde,_0xbdf09b=a259_0x3f03c3[_0x11c4f1(0x1e2)](_0x117151)[_0x11c4f1(0x21b)]();_0x117151['endsWith'](_0x11c4f1(0x1dd))&&(_0x384ec7=_0x384ec7[_0x11c4f1(0x1f7)](/\.tpl$/,''));const _0x51dd99=['.tsx',_0x11c4f1(0x1fe),'.jsx',_0x11c4f1(0x213),_0x11c4f1(0x218),'.md',_0x11c4f1(0x1fd),_0x11c4f1(0x1df),_0x11c4f1(0x1dd)];if(_0x51dd99['includes'](_0xbdf09b)||_0x117151['endsWith'](_0x11c4f1(0x1dd))){const _0x58aec5=await a259_0x5d0ab1['promises'][_0x11c4f1(0x20f)](_0x117151,'utf8'),_0x12b3fe=this[_0x11c4f1(0x1f1)](_0x58aec5,_0x406068,_0x4ffa06);await a259_0x5d0ab1[_0x11c4f1(0x1e1)]['writeFile'](_0x384ec7,_0x12b3fe,_0x11c4f1(0x20b));}else await a259_0x5d0ab1['promises'][_0x11c4f1(0x20c)](_0x117151,_0x384ec7);}}
1
+ const a259_0x4cdc8b=a259_0x574a;(function(_0x156152,_0x3e26ba){const _0x545b26=a259_0x574a,_0x2f3887=_0x156152();while(!![]){try{const _0x505455=-parseInt(_0x545b26(0x195))/0x1*(parseInt(_0x545b26(0x1a0))/0x2)+parseInt(_0x545b26(0x1b8))/0x3*(parseInt(_0x545b26(0x193))/0x4)+parseInt(_0x545b26(0x190))/0x5+-parseInt(_0x545b26(0x1b3))/0x6+parseInt(_0x545b26(0x1a2))/0x7+-parseInt(_0x545b26(0x1bb))/0x8+parseInt(_0x545b26(0x19d))/0x9;if(_0x505455===_0x3e26ba)break;else _0x2f3887['push'](_0x2f3887['shift']());}catch(_0x155533){_0x2f3887['push'](_0x2f3887['shift']());}}}(a259_0x36f8,0x4f1c3));import a259_0x17042c from'node:fs';function a259_0x574a(_0x2a6d19,_0x48f972){_0x2a6d19=_0x2a6d19-0x190;const _0x36f8fc=a259_0x36f8();let _0x574af3=_0x36f8fc[_0x2a6d19];return _0x574af3;}import a259_0x43e19e from'node:path';function a259_0x36f8(){const _0x37208d=['getHours','replace','name','isDirectory','toComponentName','12916458sQqRVN','.md','readFile','9922QflcEE','.ts','409899dwvQaA','slice','join','info','getMinutes','.json','message','.js','processTemplate','copyFile','开始处理模板内容替换','pad','promises','getFullYear','charAt','getMonth','writeFile','2603502zZBPQe','datasetCode:\x20\x22','toISOString','tableName:\x20\x22','now','96285eztMmO','utf8','.css','4790968SFYCQc','toDisplayTitle','name:\x20\x22','模板内容替换完成','toUpperCase','map','success','endsWith','push','alias','\x0a\x20\x20\x20\x20{\x20','toLowerCase','pop','getDate','readdir','processFile','template','split','\x20},','error','模板内容替换失败','tableName','processDirectory','getSeconds','.jsx','.scss','494515uibXQd','isFile','extname','4OOIEGJ','.tpl','54yUEHRn','formatLocalTimestamp','.tsx'];a259_0x36f8=function(){return _0x37208d;};return a259_0x36f8();}import{logger}from'../utils/logger.js';import{getCliVersion}from'../utils/version.js';const CLI_VERSION=getCliVersion();export class TemplateReplacer{static['pad'](_0xd6ff2b){return String(_0xd6ff2b)['padStart'](0x2,'0');}static[a259_0x4cdc8b(0x196)](_0x36690a){const _0x3d0526=a259_0x4cdc8b,_0x272301=_0x36690a[_0x3d0526(0x1af)](),_0x337701=this[_0x3d0526(0x1ad)](_0x36690a[_0x3d0526(0x1b1)]()+0x1),_0xc9b2f5=this[_0x3d0526(0x1ad)](_0x36690a[_0x3d0526(0x1c8)]()),_0x3e7081=this[_0x3d0526(0x1ad)](_0x36690a[_0x3d0526(0x198)]()),_0xb90ba7=this['pad'](_0x36690a[_0x3d0526(0x1a6)]()),_0x1bb5ea=this[_0x3d0526(0x1ad)](_0x36690a[_0x3d0526(0x1d2)]());return{'createdAt':_0x272301+'-'+_0x337701+'-'+_0xc9b2f5+'\x20'+_0x3e7081+':'+_0xb90ba7+':'+_0x1bb5ea,'createdDate':_0x272301+'-'+_0x337701+'-'+_0xc9b2f5,'createdTime':_0x3e7081+':'+_0xb90ba7+':'+_0x1bb5ea};}static['toComponentName'](_0x48a746){const _0x1583c0=a259_0x4cdc8b,_0x40b533=_0x48a746[_0x1583c0(0x1cc)]('/')[_0x1583c0(0x1c7)]()||_0x48a746;return _0x40b533[_0x1583c0(0x1cc)]('-')[_0x1583c0(0x1c0)](_0x2dfe13=>_0x2dfe13['charAt'](0x0)[_0x1583c0(0x1bf)]()+_0x2dfe13[_0x1583c0(0x1a3)](0x1)['toLowerCase']())[_0x1583c0(0x1a4)]('');}static[a259_0x4cdc8b(0x1bc)](_0x1e0f14){const _0x1e76e3=a259_0x4cdc8b,_0x343b25=_0x1e0f14['split']('/')[_0x1e76e3(0x1c7)]()||_0x1e0f14;return _0x343b25[_0x1e76e3(0x1cc)]('-')[_0x1e76e3(0x1c0)](_0xa4fb76=>_0xa4fb76[_0x1e76e3(0x1b0)](0x0)[_0x1e76e3(0x1bf)]()+_0xa4fb76[_0x1e76e3(0x1a3)](0x1)[_0x1e76e3(0x1c6)]())[_0x1e76e3(0x1a4)]('\x20');}static['replaceContent'](_0xd823fc,_0x107334,_0x5c01d9){const _0x143fbf=a259_0x4cdc8b,_0x3bbd1c=this[_0x143fbf(0x19c)](_0x107334),_0x1747c2=this[_0x143fbf(0x1bc)](_0x107334),{createdAt:_0xc0733e,createdDate:_0x1e4ed3,createdTime:_0x43c1be}=this[_0x143fbf(0x196)](new Date());let _0x211f06=_0xd823fc[_0x143fbf(0x199)](/\{CliVersion\}/g,CLI_VERSION)[_0x143fbf(0x199)](/\{ComponentName\}/g,_0x3bbd1c)[_0x143fbf(0x199)](/\{DisplayTitle\}/g,_0x1747c2)[_0x143fbf(0x199)](/\{PageName\}/g,_0x107334)[_0x143fbf(0x199)](/\{TemplateName\}/g,_0x5c01d9)['replace'](/\{CreatedAt\}/g,_0xc0733e)[_0x143fbf(0x199)](/\{CreatedDate\}/g,_0x1e4ed3)[_0x143fbf(0x199)](/\{CreatedTime\}/g,_0x43c1be);return _0x211f06;}static['replaceApiContent'](_0x4f2cf4,_0x4af52e,_0x307381,_0x4efa6b,_0x3510d7,_0x1724e3,_0x22c698,_0x126fac){const _0x1cbbf5=a259_0x4cdc8b,_0x4a6832=new Date(),_0x4dc0c2=_0x4a6832[_0x1cbbf5(0x1b5)](),_0x36c3e1=_0x307381['map'](_0x32ba44=>{const _0x62b135=_0x1cbbf5,_0x5a764b=[_0x62b135(0x1b4)+_0x32ba44['datasetCode']+'\x22',_0x62b135(0x1b6)+_0x32ba44[_0x62b135(0x1d0)]+'\x22',_0x62b135(0x1bd)+_0x32ba44[_0x62b135(0x19a)]+'\x22'];return _0x32ba44[_0x62b135(0x1c4)]&&_0x5a764b[_0x62b135(0x1c3)]('alias:\x20\x22'+_0x32ba44[_0x62b135(0x1c4)]+'\x22'),_0x62b135(0x1c5)+_0x5a764b[_0x62b135(0x1a4)](',\x20')+_0x62b135(0x1cd);})['join'](''),_0x4b5fdb=_0x4efa6b||_0x307381[0x0]?.[_0x1cbbf5(0x1c4)]||'YourModel';let _0x57802a=_0x4f2cf4[_0x1cbbf5(0x199)](/\{AppCode\}/g,_0x4af52e)[_0x1cbbf5(0x199)](/\{ModelConfigs\}/g,_0x36c3e1)[_0x1cbbf5(0x199)](/\{ExampleModelName\}/g,_0x4b5fdb)[_0x1cbbf5(0x199)](/\{ApiFileName\}/g,_0x3510d7||'api')[_0x1cbbf5(0x199)](/\{ConfigName\}/g,_0x1724e3||'default')['replace'](/\{ClientConfigParam\}/g,_0x22c698||'')[_0x1cbbf5(0x199)](/\{VarPrefix\}/g,_0x126fac||'LOVRABET')['replace'](/\{CreatedAt\}/g,_0x4dc0c2);return _0x57802a;}static async[a259_0x4cdc8b(0x1aa)](_0x16fa21,_0x223fca,_0x22ee0d,_0x1e8e67,_0x52efb3=!![]){const _0x2d7a1b=a259_0x4cdc8b,_0x4bbd39=Date[_0x2d7a1b(0x1b7)]();try{_0x52efb3&&logger[_0x2d7a1b(0x1a5)](_0x2d7a1b(0x1cb),_0x2d7a1b(0x1ac),{'templatePath':_0x16fa21,'targetPath':_0x223fca,'pageName':_0x22ee0d,'templateName':_0x1e8e67});await a259_0x17042c['promises']['mkdir'](_0x223fca,{'recursive':!![]}),await this['processDirectory'](_0x16fa21,_0x223fca,_0x22ee0d,_0x1e8e67);if(_0x52efb3){const _0x5d58ee=Date[_0x2d7a1b(0x1b7)]()-_0x4bbd39;logger[_0x2d7a1b(0x1c1)](_0x2d7a1b(0x1cb),_0x2d7a1b(0x1be),_0x5d58ee,{'pageName':_0x22ee0d,'templateName':_0x1e8e67});}}catch(_0x53487a){if(_0x52efb3){const _0x534ed7=Date[_0x2d7a1b(0x1b7)]()-_0x4bbd39;logger[_0x2d7a1b(0x1ce)](_0x2d7a1b(0x1cb),_0x2d7a1b(0x1cf),{'templatePath':_0x16fa21,'targetPath':_0x223fca,'pageName':_0x22ee0d,'templateName':_0x1e8e67,'error':_0x53487a instanceof Error?_0x53487a[_0x2d7a1b(0x1a8)]:String(_0x53487a),'duration':_0x534ed7});}throw _0x53487a;}}static async[a259_0x4cdc8b(0x1d1)](_0x41f723,_0x1b6a31,_0x3c86d8,_0x16a9e0){const _0x5b5abb=a259_0x4cdc8b,_0x2d7bd5=await a259_0x17042c[_0x5b5abb(0x1ae)][_0x5b5abb(0x1c9)](_0x41f723,{'withFileTypes':!![]});for(const _0x38955b of _0x2d7bd5){const _0x2d68de=a259_0x43e19e['join'](_0x41f723,_0x38955b[_0x5b5abb(0x19a)]);let _0x2d2b9b=a259_0x43e19e[_0x5b5abb(0x1a4)](_0x1b6a31,_0x38955b['name']);_0x38955b['name']['endsWith'](_0x5b5abb(0x194))&&(_0x2d2b9b=a259_0x43e19e['join'](_0x1b6a31,_0x38955b[_0x5b5abb(0x19a)]['replace'](/\.tpl$/,'')));if(_0x38955b[_0x5b5abb(0x19b)]())await a259_0x17042c[_0x5b5abb(0x1ae)]['mkdir'](_0x2d2b9b,{'recursive':!![]}),await this[_0x5b5abb(0x1d1)](_0x2d68de,_0x2d2b9b,_0x3c86d8,_0x16a9e0);else _0x38955b[_0x5b5abb(0x191)]()&&await this[_0x5b5abb(0x1ca)](_0x2d68de,_0x2d2b9b,_0x3c86d8,_0x16a9e0);}}static async['processFile'](_0x2bc18f,_0x144833,_0x3dc025,_0x4d75ea){const _0x4e4f5c=a259_0x4cdc8b,_0x545d77=a259_0x43e19e[_0x4e4f5c(0x192)](_0x2bc18f)[_0x4e4f5c(0x1c6)]();_0x2bc18f[_0x4e4f5c(0x1c2)](_0x4e4f5c(0x194))&&(_0x144833=_0x144833[_0x4e4f5c(0x199)](/\.tpl$/,''));const _0x43591a=[_0x4e4f5c(0x197),_0x4e4f5c(0x1a1),_0x4e4f5c(0x1d3),_0x4e4f5c(0x1a9),_0x4e4f5c(0x1a7),_0x4e4f5c(0x19e),_0x4e4f5c(0x1ba),_0x4e4f5c(0x1d4),'.tpl'];if(_0x43591a['includes'](_0x545d77)||_0x2bc18f[_0x4e4f5c(0x1c2)]('.tpl')){const _0x19e61d=await a259_0x17042c['promises'][_0x4e4f5c(0x19f)](_0x2bc18f,'utf8'),_0x55cbed=this['replaceContent'](_0x19e61d,_0x3dc025,_0x4d75ea);await a259_0x17042c[_0x4e4f5c(0x1ae)][_0x4e4f5c(0x1b2)](_0x144833,_0x55cbed,_0x4e4f5c(0x1b9));}else await a259_0x17042c[_0x4e4f5c(0x1ae)][_0x4e4f5c(0x1ab)](_0x2bc18f,_0x144833);}}
@@ -1 +1 @@
1
- (function(_0x17a63f,_0x149470){const _0x339d8e=a260_0x17ef,_0x4bca1a=_0x17a63f();while(!![]){try{const _0x5779cf=parseInt(_0x339d8e(0x170))/0x1+parseInt(_0x339d8e(0x184))/0x2*(-parseInt(_0x339d8e(0x176))/0x3)+-parseInt(_0x339d8e(0x171))/0x4+parseInt(_0x339d8e(0x17e))/0x5+-parseInt(_0x339d8e(0x172))/0x6*(parseInt(_0x339d8e(0x174))/0x7)+-parseInt(_0x339d8e(0x17a))/0x8*(-parseInt(_0x339d8e(0x173))/0x9)+parseInt(_0x339d8e(0x16a))/0xa*(parseInt(_0x339d8e(0x17c))/0xb);if(_0x5779cf===_0x149470)break;else _0x4bca1a['push'](_0x4bca1a['shift']());}catch(_0x4bc968){_0x4bca1a['push'](_0x4bca1a['shift']());}}}(a260_0x2848,0x412ac));import{mkdir,readFile,writeFile}from'node:fs/promises';import{homedir}from'node:os';function a260_0x17ef(_0x1d6f7a,_0x1ae9a6){_0x1d6f7a=_0x1d6f7a-0x169;const _0x284838=a260_0x2848();let _0x17efc7=_0x284838[_0x1d6f7a];return _0x17efc7;}import{dirname,join}from'node:path';function a260_0x2848(){const _0x408f4a=['toLowerCase','584180uRYZoD','rabetbase-cli','trim','utf8','valid','now','11090CnOOaa','latest','392650PrQSKr','update-check.json','.cache','checkedAt','stringify','true','63950NeLfUL','899804BPbPpu','12HHWKgx','9iFHRLj','758107NFqhbO','number','243XbeIDm','gte','https://www.npmjs.com/package/','yes','904048PeMeNT','lastNotifiedAt','242OlrxIh'];a260_0x2848=function(){return _0x408f4a;};return a260_0x2848();}import a260_0x230817 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 _0x26b168=a260_0x17ef,_0x201ec9=process.env.RABETBASE_NO_UPDATE_NOTICE?.['trim']()[_0x26b168(0x17d)]();return _0x201ec9==='1'||_0x201ec9===_0x26b168(0x16f)||_0x201ec9===_0x26b168(0x179);}function cacheRoot(){const _0x1c53b3=a260_0x17ef;return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),_0x1c53b3(0x16c));}export function getUpdateNoticeCachePath(){const _0x3cfd7e=a260_0x17ef;return join(cacheRoot(),_0x3cfd7e(0x17f),_0x3cfd7e(0x16b));}async function readUpdateNoticeCache(){const _0x57c105=a260_0x17ef;try{const _0x111eb0=await readFile(getUpdateNoticeCachePath(),_0x57c105(0x181)),_0x1ba8b9=JSON['parse'](_0x111eb0);if(!_0x1ba8b9||typeof _0x1ba8b9!=='object')return{};return _0x1ba8b9;}catch{return{};}}async function writeUpdateNoticeCache(_0x4f49df){const _0x4168ad=a260_0x17ef;try{const _0xcc26ad=getUpdateNoticeCachePath();await mkdir(dirname(_0xcc26ad),{'recursive':!![]}),await writeFile(_0xcc26ad,JSON[_0x4168ad(0x16e)](_0x4f49df,null,0x2)+'\x0a',_0x4168ad(0x181));}catch{}}function isFreshCheck(_0x3a13ed,_0x5025f4){const _0x340256=a260_0x17ef;return typeof _0x3a13ed[_0x340256(0x16d)]===_0x340256(0x175)&&_0x5025f4-_0x3a13ed[_0x340256(0x16d)]<UPDATE_CHECK_TTL_MS;}function isRecentlyNotified(_0x3ca8fe,_0x3c1141,_0xcb2e15){const _0x2226cf=a260_0x17ef;return _0x3ca8fe['lastNotifiedVersion']===_0x3c1141&&typeof _0x3ca8fe[_0x2226cf(0x17b)]==='number'&&_0xcb2e15-_0x3ca8fe[_0x2226cf(0x17b)]<UPDATE_NOTICE_TTL_MS;}export function buildNpmVersionUrl(_0x3982d5){const _0x3e5778=a260_0x17ef;return _0x3e5778(0x178)+NPM_PACKAGE_NAME+'/v/'+_0x3982d5;}export async function resolveLatestUpdateNotice(){const _0x4a953e=a260_0x17ef;if(isUpdateNoticeDisabled())return null;try{const _0x3e3899=Date[_0x4a953e(0x183)](),_0x4cf39b=getCliVersion(),_0x3d439b=await readUpdateNoticeCache();let _0x160a4d=isFreshCheck(_0x3d439b,_0x3e3899)?_0x3d439b[_0x4a953e(0x169)]?.['trim']():undefined;if(!_0x160a4d&&!isFreshCheck(_0x3d439b,_0x3e3899)){const _0x66979f=await getCliVersionPolicy();_0x160a4d=_0x66979f?.['stableVersion']?.[_0x4a953e(0x180)]()||undefined,await writeUpdateNoticeCache({..._0x3d439b,'checkedAt':_0x3e3899,'latest':_0x160a4d,'failed':!_0x160a4d});}if(!_0x160a4d||!a260_0x230817['valid'](_0x4cf39b)||!a260_0x230817[_0x4a953e(0x182)](_0x160a4d))return null;if(a260_0x230817[_0x4a953e(0x177)](_0x4cf39b,_0x160a4d))return null;if(isRecentlyNotified(_0x3d439b,_0x160a4d,_0x3e3899))return null;const _0x1ee03a=CLI_BIN_NAME+'\x20update';return await writeUpdateNoticeCache({..._0x3d439b,'checkedAt':isFreshCheck(_0x3d439b,_0x3e3899)?_0x3d439b[_0x4a953e(0x16d)]:_0x3e3899,'latest':_0x160a4d,'failed':![],'lastNotifiedVersion':_0x160a4d,'lastNotifiedAt':_0x3e3899}),{'command':_0x1ee03a,'current':_0x4cf39b,'latest':_0x160a4d,'url':buildNpmVersionUrl(_0x160a4d),'message':CLI_BIN_NAME+'\x20'+_0x160a4d+'\x20available,\x20current\x20'+_0x4cf39b+',\x20run:\x20'+_0x1ee03a};}catch{return null;}}
1
+ (function(_0xb9ec39,_0x31cdbc){const _0x19c9fd=a260_0x43d7,_0x584244=_0xb9ec39();while(!![]){try{const _0x15800e=-parseInt(_0x19c9fd(0x18c))/0x1+-parseInt(_0x19c9fd(0x18b))/0x2*(-parseInt(_0x19c9fd(0x17f))/0x3)+parseInt(_0x19c9fd(0x198))/0x4*(parseInt(_0x19c9fd(0x189))/0x5)+-parseInt(_0x19c9fd(0x193))/0x6*(parseInt(_0x19c9fd(0x185))/0x7)+parseInt(_0x19c9fd(0x18e))/0x8+-parseInt(_0x19c9fd(0x196))/0x9*(-parseInt(_0x19c9fd(0x18d))/0xa)+-parseInt(_0x19c9fd(0x181))/0xb*(-parseInt(_0x19c9fd(0x18a))/0xc);if(_0x15800e===_0x31cdbc)break;else _0x584244['push'](_0x584244['shift']());}catch(_0x1cf14c){_0x584244['push'](_0x584244['shift']());}}}(a260_0x5b31,0x59284));import{mkdir,readFile,writeFile}from'node:fs/promises';function a260_0x5b31(){const _0x5a1ddb=['rabetbase-cli','gte','true','9hrOBvm','\x20available,\x20current\x20','42911fWZvRL','update-check.json','latest','now','91gZgmCS','parse','yes','number','125915xMhXfT','636GFttNf','4156uAMhWB','691180LXEQyr','30ZLXFmQ','2650536zCBscP','lastNotifiedVersion','https://www.npmjs.com/package/',',\x20run:\x20','stableVersion','77214WQcsJH','lastNotifiedAt','stringify','980397VOwUYU','object','56qgqgpf','checkedAt','valid','.cache','trim','toLowerCase','utf8'];a260_0x5b31=function(){return _0x5a1ddb;};return a260_0x5b31();}import{homedir}from'node:os';import{dirname,join}from'node:path';function a260_0x43d7(_0x4e76ba,_0x577648){_0x4e76ba=_0x4e76ba-0x17f;const _0x5b31d0=a260_0x5b31();let _0x43d797=_0x5b31d0[_0x4e76ba];return _0x43d797;}import a260_0x22094f 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 _0x5478bc=a260_0x43d7,_0x425a22=process.env.RABETBASE_NO_UPDATE_NOTICE?.[_0x5478bc(0x19c)]()[_0x5478bc(0x19d)]();return _0x425a22==='1'||_0x425a22===_0x5478bc(0x1a1)||_0x425a22===_0x5478bc(0x187);}function cacheRoot(){const _0x139a11=a260_0x43d7;return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),_0x139a11(0x19b));}export function getUpdateNoticeCachePath(){const _0x3771a4=a260_0x43d7;return join(cacheRoot(),_0x3771a4(0x19f),_0x3771a4(0x182));}async function readUpdateNoticeCache(){const _0x1b2064=a260_0x43d7;try{const _0x2649e4=await readFile(getUpdateNoticeCachePath(),_0x1b2064(0x19e)),_0xd022b8=JSON[_0x1b2064(0x186)](_0x2649e4);if(!_0xd022b8||typeof _0xd022b8!==_0x1b2064(0x197))return{};return _0xd022b8;}catch{return{};}}async function writeUpdateNoticeCache(_0x12eb57){const _0x586456=a260_0x43d7;try{const _0x2bf863=getUpdateNoticeCachePath();await mkdir(dirname(_0x2bf863),{'recursive':!![]}),await writeFile(_0x2bf863,JSON[_0x586456(0x195)](_0x12eb57,null,0x2)+'\x0a',_0x586456(0x19e));}catch{}}function isFreshCheck(_0x3d0e3f,_0x9f3a35){const _0x272eb3=a260_0x43d7;return typeof _0x3d0e3f[_0x272eb3(0x199)]===_0x272eb3(0x188)&&_0x9f3a35-_0x3d0e3f[_0x272eb3(0x199)]<UPDATE_CHECK_TTL_MS;}function isRecentlyNotified(_0x8d3bae,_0x5a1a1b,_0x82d703){const _0x191fcc=a260_0x43d7;return _0x8d3bae[_0x191fcc(0x18f)]===_0x5a1a1b&&typeof _0x8d3bae[_0x191fcc(0x194)]===_0x191fcc(0x188)&&_0x82d703-_0x8d3bae['lastNotifiedAt']<UPDATE_NOTICE_TTL_MS;}export function buildNpmVersionUrl(_0x1a18cf){const _0x49e677=a260_0x43d7;return _0x49e677(0x190)+NPM_PACKAGE_NAME+'/v/'+_0x1a18cf;}export async function resolveLatestUpdateNotice(){const _0x1e61ea=a260_0x43d7;if(isUpdateNoticeDisabled())return null;try{const _0x579773=Date[_0x1e61ea(0x184)](),_0x369f07=getCliVersion(),_0x2e08a9=await readUpdateNoticeCache();let _0x27dc8b=isFreshCheck(_0x2e08a9,_0x579773)?_0x2e08a9[_0x1e61ea(0x183)]?.[_0x1e61ea(0x19c)]():undefined;if(!_0x27dc8b&&!isFreshCheck(_0x2e08a9,_0x579773)){const _0x588ee6=await getCliVersionPolicy();_0x27dc8b=_0x588ee6?.[_0x1e61ea(0x192)]?.[_0x1e61ea(0x19c)]()||undefined,await writeUpdateNoticeCache({..._0x2e08a9,'checkedAt':_0x579773,'latest':_0x27dc8b,'failed':!_0x27dc8b});}if(!_0x27dc8b||!a260_0x22094f[_0x1e61ea(0x19a)](_0x369f07)||!a260_0x22094f[_0x1e61ea(0x19a)](_0x27dc8b))return null;if(a260_0x22094f[_0x1e61ea(0x1a0)](_0x369f07,_0x27dc8b))return null;if(isRecentlyNotified(_0x2e08a9,_0x27dc8b,_0x579773))return null;const _0x4d7dbc=CLI_BIN_NAME+'\x20update';return await writeUpdateNoticeCache({..._0x2e08a9,'checkedAt':isFreshCheck(_0x2e08a9,_0x579773)?_0x2e08a9[_0x1e61ea(0x199)]:_0x579773,'latest':_0x27dc8b,'failed':![],'lastNotifiedVersion':_0x27dc8b,'lastNotifiedAt':_0x579773}),{'command':_0x4d7dbc,'current':_0x369f07,'latest':_0x27dc8b,'url':buildNpmVersionUrl(_0x27dc8b),'message':CLI_BIN_NAME+'\x20'+_0x27dc8b+_0x1e61ea(0x180)+_0x369f07+_0x1e61ea(0x191)+_0x4d7dbc};}catch{return null;}}
@@ -1 +1 @@
1
- function a261_0x5843(_0x4f7adb,_0x2d0729){_0x4f7adb=_0x4f7adb-0x1a3;var _0x242c7b=a261_0x242c();var _0x5843a8=_0x242c7b[_0x4f7adb];return _0x5843a8;}(function(_0x20b18d,_0x5d193c){var _0x570462=a261_0x5843,_0x2b1d25=_0x20b18d();while(!![]){try{var _0x27be49=-parseInt(_0x570462(0x1a7))/0x1+parseInt(_0x570462(0x1a5))/0x2+parseInt(_0x570462(0x1a9))/0x3+parseInt(_0x570462(0x1aa))/0x4*(-parseInt(_0x570462(0x1a3))/0x5)+-parseInt(_0x570462(0x1a6))/0x6+parseInt(_0x570462(0x1a8))/0x7+-parseInt(_0x570462(0x1a4))/0x8;if(_0x27be49===_0x5d193c)break;else _0x2b1d25['push'](_0x2b1d25['shift']());}catch(_0x18c3af){_0x2b1d25['push'](_0x2b1d25['shift']());}}}(a261_0x242c,0x2c4ab));import{VERSION}from'../generated/build-info.js';function a261_0x242c(){var _0x416c9c=['496vaxEdX','3335QBzlBs','5298304TDkqfs','648628XtPFZN','333528IJnmSd','17481iNvjzz','2473212OSmrkr','965562gJeUqS'];a261_0x242c=function(){return _0x416c9c;};return a261_0x242c();}export function getCliVersion(){return VERSION;}
1
+ (function(_0x11704c,_0x7ded37){var _0x4be80d=a261_0x3c79,_0x3dbba9=_0x11704c();while(!![]){try{var _0x2b7c38=parseInt(_0x4be80d(0x190))/0x1*(parseInt(_0x4be80d(0x191))/0x2)+parseInt(_0x4be80d(0x18c))/0x3+-parseInt(_0x4be80d(0x18e))/0x4+parseInt(_0x4be80d(0x18a))/0x5+-parseInt(_0x4be80d(0x18f))/0x6*(parseInt(_0x4be80d(0x18d))/0x7)+parseInt(_0x4be80d(0x18b))/0x8+-parseInt(_0x4be80d(0x192))/0x9;if(_0x2b7c38===_0x7ded37)break;else _0x3dbba9['push'](_0x3dbba9['shift']());}catch(_0x18112a){_0x3dbba9['push'](_0x3dbba9['shift']());}}}(a261_0x2d1f,0x1b44e));import{VERSION}from'../generated/build-info.js';export function getCliVersion(){return VERSION;}function a261_0x3c79(_0x222b4a,_0x4cde90){_0x222b4a=_0x222b4a-0x18a;var _0x2d1fd4=a261_0x2d1f();var _0x3c7976=_0x2d1fd4[_0x222b4a];return _0x3c7976;}function a261_0x2d1f(){var _0x355ca4=['214419Kyyaud','7PfyUPi','414536EOmImK','206868dBiGKF','268NXhkBh','402wQdDcV','428544JauIwS','127405UjAjdG','1172800Jgltdw'];a261_0x2d1f=function(){return _0x355ca4;};return a261_0x2d1f();}
@@ -1 +1 @@
1
- function a262_0x1c5c(_0x54a694,_0x157935){_0x54a694=_0x54a694-0x11b;var _0x27b682=a262_0x27b6();var _0x1c5c8a=_0x27b682[_0x54a694];return _0x1c5c8a;}(function(_0x4fa6e4,_0x303a1a){var _0x4dab3d=a262_0x1c5c,_0x3c3b67=_0x4fa6e4();while(!![]){try{var _0x1b4fff=parseInt(_0x4dab3d(0x121))/0x1+parseInt(_0x4dab3d(0x11b))/0x2+parseInt(_0x4dab3d(0x11d))/0x3*(-parseInt(_0x4dab3d(0x11f))/0x4)+-parseInt(_0x4dab3d(0x120))/0x5+parseInt(_0x4dab3d(0x123))/0x6+-parseInt(_0x4dab3d(0x11c))/0x7+-parseInt(_0x4dab3d(0x122))/0x8*(-parseInt(_0x4dab3d(0x11e))/0x9);if(_0x1b4fff===_0x303a1a)break;else _0x3c3b67['push'](_0x3c3b67['shift']());}catch(_0x1b9b66){_0x3c3b67['push'](_0x3c3b67['shift']());}}}(a262_0x27b6,0xdc383));function a262_0x27b6(){var _0x289775=['16ycPihu','7298725dSNvxl','1457599ZIqrJL','1304jVTHos','9184020xDLMay','560298WLWNPd','5568654JAZlnH','839343BwAdZc','55656UJTZpP'];a262_0x27b6=function(){return _0x289775;};return a262_0x27b6();}import{setActiveCookie,clearActiveCookie}from'../core/api-client.js';export async function withActiveCookie(_0x4d7b45,_0x3e1b95){setActiveCookie(_0x4d7b45);try{return await _0x3e1b95();}finally{clearActiveCookie();}}
1
+ function a262_0x5d41(_0x5d3ca3,_0x1d2a18){_0x5d3ca3=_0x5d3ca3-0xf3;var _0x572a3c=a262_0x572a();var _0x5d41db=_0x572a3c[_0x5d3ca3];return _0x5d41db;}function a262_0x572a(){var _0x586d6d=['572606MoOXdi','5253228ykqRnz','930xnVHCl','65PxqGon','8034066hIWejS','1001586JjOkHB','9IyDinT','555533KHUhAU','8ABMoNj','14108NvSUFd','1955044wKxiUe'];a262_0x572a=function(){return _0x586d6d;};return a262_0x572a();}(function(_0x278d2f,_0x24ac09){var _0x488e5a=a262_0x5d41,_0x40cb18=_0x278d2f();while(!![]){try{var _0x2c66bb=-parseInt(_0x488e5a(0xf8))/0x1+parseInt(_0x488e5a(0xf3))/0x2*(-parseInt(_0x488e5a(0xf9))/0x3)+-parseInt(_0x488e5a(0xfc))/0x4*(-parseInt(_0x488e5a(0xf6))/0x5)+-parseInt(_0x488e5a(0xf7))/0x6+-parseInt(_0x488e5a(0xfd))/0x7+-parseInt(_0x488e5a(0xfb))/0x8*(parseInt(_0x488e5a(0xf4))/0x9)+parseInt(_0x488e5a(0xf5))/0xa*(parseInt(_0x488e5a(0xfa))/0xb);if(_0x2c66bb===_0x24ac09)break;else _0x40cb18['push'](_0x40cb18['shift']());}catch(_0x2ad8de){_0x40cb18['push'](_0x40cb18['shift']());}}}(a262_0x572a,0xa60cc));import{setActiveCookie,clearActiveCookie}from'../core/api-client.js';export async function withActiveCookie(_0x4ff021,_0x2a329d){setActiveCookie(_0x4ff021);try{return await _0x2a329d();}finally{clearActiveCookie();}}
@@ -1 +1 @@
1
- (function(_0x596408,_0x39321b){var _0x591143=a263_0x46e6,_0x3c8be5=_0x596408();while(!![]){try{var _0x4c138b=-parseInt(_0x591143(0x1d6))/0x1*(-parseInt(_0x591143(0x1ce))/0x2)+parseInt(_0x591143(0x1d1))/0x3*(parseInt(_0x591143(0x1cf))/0x4)+parseInt(_0x591143(0x1d4))/0x5*(parseInt(_0x591143(0x1d2))/0x6)+-parseInt(_0x591143(0x1d0))/0x7+-parseInt(_0x591143(0x1d8))/0x8*(parseInt(_0x591143(0x1d5))/0x9)+-parseInt(_0x591143(0x1cc))/0xa*(-parseInt(_0x591143(0x1d7))/0xb)+-parseInt(_0x591143(0x1cb))/0xc;if(_0x4c138b===_0x39321b)break;else _0x3c8be5['push'](_0x3c8be5['shift']());}catch(_0x2c3bd9){_0x3c8be5['push'](_0x3c8be5['shift']());}}}(a263_0x2449,0xcc880));function a263_0x2449(){var _0x31af48=['66872ZnyOgX','17883336qaRpwm','2587850ikvlbN','write','50VSxExL','278784jLawNp','6414457JOFoRw','51gCUHkX','6zjrhWJ','stderr','4404325zvMYKN','63FCteIq','18434xsOVAc','33wUilsw'];a263_0x2449=function(){return _0x31af48;};return a263_0x2449();}function a263_0x46e6(_0x1f7225,_0x3e4aac){_0x1f7225=_0x1f7225-0x1cb;var _0x2449ea=a263_0x2449();var _0x46e616=_0x2449ea[_0x1f7225];return _0x46e616;}export function writeCliSideChannelLine(_0x5d62c7){var _0x5cda68=a263_0x46e6;process[_0x5cda68(0x1d3)][_0x5cda68(0x1cd)](_0x5d62c7+'\x0a');}
1
+ function a263_0x35fe(_0x23337e,_0x52823d){_0x23337e=_0x23337e-0x158;var _0xd49633=a263_0xd496();var _0x35fea4=_0xd49633[_0x23337e];return _0x35fea4;}(function(_0x591426,_0x4473e2){var _0x41ae24=a263_0x35fe,_0x4c6120=_0x591426();while(!![]){try{var _0x5efe4f=-parseInt(_0x41ae24(0x15b))/0x1+-parseInt(_0x41ae24(0x15c))/0x2+parseInt(_0x41ae24(0x15a))/0x3+-parseInt(_0x41ae24(0x15d))/0x4+parseInt(_0x41ae24(0x158))/0x5+-parseInt(_0x41ae24(0x15f))/0x6+parseInt(_0x41ae24(0x15e))/0x7;if(_0x5efe4f===_0x4473e2)break;else _0x4c6120['push'](_0x4c6120['shift']());}catch(_0x109289){_0x4c6120['push'](_0x4c6120['shift']());}}}(a263_0xd496,0x54a0b));function a263_0xd496(){var _0x3689fd=['580984UykRYQ','567460wyppTo','2189876kpRhCf','15589175bldCsV','3301518iLLgTY','17680LIgNvF','stderr','235530zWLvhB'];a263_0xd496=function(){return _0x3689fd;};return a263_0xd496();}export function writeCliSideChannelLine(_0x4b5b0a){var _0xb74fc4=a263_0x35fe;process[_0xb74fc4(0x159)]['write'](_0x4b5b0a+'\x0a');}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lovrabet/rabetbase-cli",
3
- "version": "2.3.11-beta.1",
3
+ "version": "2.3.12-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": [