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

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 (264) 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/asset-update.js +1 -1
  103. package/lib/commands/menu/delete.js +1 -1
  104. package/lib/commands/menu/external-link-create.js +1 -1
  105. package/lib/commands/menu/external-link-update.js +1 -1
  106. package/lib/commands/menu/group-create.js +1 -1
  107. package/lib/commands/menu/group-update.js +1 -1
  108. package/lib/commands/menu/index.js +1 -1
  109. package/lib/commands/menu/list.js +1 -1
  110. package/lib/commands/menu/move.js +1 -1
  111. package/lib/commands/menu/regroup-start.js +1 -1
  112. package/lib/commands/menu/rename.js +1 -0
  113. package/lib/commands/menu/shared/compare-table.js +1 -1
  114. package/lib/commands/menu/shared/delete-plan.js +1 -1
  115. package/lib/commands/menu/shared/facts.js +1 -1
  116. package/lib/commands/menu/shared/index.js +1 -1
  117. package/lib/commands/menu/shared/inquirer.js +1 -1
  118. package/lib/commands/menu/shared/local-pages.js +1 -1
  119. package/lib/commands/menu/shared/logic.js +1 -1
  120. package/lib/commands/menu/shared/mutations.js +1 -1
  121. package/lib/commands/menu/shared/service.js +1 -1
  122. package/lib/commands/menu/shared/sync-core.js +1 -1
  123. package/lib/commands/menu/shared/update-core.js +1 -1
  124. package/lib/commands/menu/shared/valid-url.js +1 -1
  125. package/lib/commands/menu/sync.js +1 -1
  126. package/lib/commands/notification/config-list.js +1 -1
  127. package/lib/commands/notification/index.js +1 -1
  128. package/lib/commands/ocr/index.js +1 -1
  129. package/lib/commands/page/generate-start.js +1 -1
  130. package/lib/commands/page/generate-status.js +1 -1
  131. package/lib/commands/page/index.js +1 -1
  132. package/lib/commands/page/pull.js +1 -1
  133. package/lib/commands/page/push.js +1 -1
  134. package/lib/commands/page/relation-audit.js +1 -1
  135. package/lib/commands/page/restore.js +1 -1
  136. package/lib/commands/page/shared.js +1 -1
  137. package/lib/commands/page/standard-page-status.js +1 -1
  138. package/lib/commands/page/sync.js +1 -1
  139. package/lib/commands/permit/index.js +1 -1
  140. package/lib/commands/permit/page-get.js +1 -1
  141. package/lib/commands/permit/page-set.js +1 -1
  142. package/lib/commands/permit/role-apis-set.js +1 -1
  143. package/lib/commands/permit/role-menus-set.js +1 -1
  144. package/lib/commands/permit/role-menus.js +1 -1
  145. package/lib/commands/permit/shared.js +1 -1
  146. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  147. package/lib/commands/project/create/format-elapsed.js +1 -1
  148. package/lib/commands/project/create/main.js +1 -1
  149. package/lib/commands/project/create/non-interactive.js +1 -1
  150. package/lib/commands/project/create/project-template-path.js +1 -1
  151. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  152. package/lib/commands/project/create/use-format-code.js +1 -1
  153. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  154. package/lib/commands/project/index.js +1 -1
  155. package/lib/commands/project/init.js +1 -1
  156. package/lib/commands/project/upgrade.js +1 -1
  157. package/lib/commands/registry.js +1 -1
  158. package/lib/commands/role/create.js +1 -1
  159. package/lib/commands/role/delete.js +1 -1
  160. package/lib/commands/role/detail.js +1 -1
  161. package/lib/commands/role/index.js +1 -1
  162. package/lib/commands/role/list.js +1 -1
  163. package/lib/commands/role/shared.js +1 -1
  164. package/lib/commands/role/update.js +1 -1
  165. package/lib/commands/role/user-add.js +1 -1
  166. package/lib/commands/role/user-remove.js +1 -1
  167. package/lib/commands/role/user-resolve.js +1 -1
  168. package/lib/commands/run/index.js +1 -1
  169. package/lib/commands/schema.js +1 -1
  170. package/lib/commands/sql/create.js +1 -1
  171. package/lib/commands/sql/delete.js +1 -1
  172. package/lib/commands/sql/detail.js +1 -1
  173. package/lib/commands/sql/exec.js +1 -1
  174. package/lib/commands/sql/index.js +1 -1
  175. package/lib/commands/sql/list.js +1 -1
  176. package/lib/commands/sql/pull.js +1 -1
  177. package/lib/commands/sql/push.js +1 -1
  178. package/lib/commands/sql/save.js +1 -1
  179. package/lib/commands/sql/shared.js +1 -1
  180. package/lib/commands/sql/status.js +1 -1
  181. package/lib/commands/sql/validate.js +1 -1
  182. package/lib/commands/task/index.js +1 -1
  183. package/lib/commands/task/status.js +1 -1
  184. package/lib/commands/workspace/add.js +1 -1
  185. package/lib/commands/workspace/index.js +1 -1
  186. package/lib/commands/workspace/remove.js +1 -1
  187. package/lib/config/schema.js +1 -1
  188. package/lib/constant/cdn.js +1 -1
  189. package/lib/constant/cli.js +1 -1
  190. package/lib/constant/defaults.js +1 -1
  191. package/lib/constant/domain.js +1 -1
  192. package/lib/constant/env.js +1 -1
  193. package/lib/constant/output.js +1 -1
  194. package/lib/constant/paths.js +1 -1
  195. package/lib/constant/risk.js +1 -1
  196. package/lib/context/app-resolver.js +1 -1
  197. package/lib/context/auth-resolver.js +1 -1
  198. package/lib/context/config-loader.js +1 -1
  199. package/lib/context.js +1 -1
  200. package/lib/core/alias-resolver.js +1 -1
  201. package/lib/core/api-client.js +1 -1
  202. package/lib/core/bff/config.js +1 -1
  203. package/lib/core/bff/file-system.js +1 -1
  204. package/lib/core/bff/hash.js +1 -1
  205. package/lib/core/bff/lock.js +1 -1
  206. package/lib/core/bff/utils.js +1 -1
  207. package/lib/core/db-resolver.js +1 -1
  208. package/lib/core/page/file-system.js +1 -1
  209. package/lib/core/page/hash.js +1 -1
  210. package/lib/core/page/lock.js +1 -1
  211. package/lib/core/sql-index-auditor.js +1 -1
  212. package/lib/core/sql-sync/config.js +1 -1
  213. package/lib/core/sql-sync/file-system.js +1 -1
  214. package/lib/core/sql-sync/hash.js +1 -1
  215. package/lib/core/sql-sync/lock.js +1 -1
  216. package/lib/core/sql-sync/utils.js +1 -1
  217. package/lib/core/sql-validator.js +1 -1
  218. package/lib/errors.js +1 -1
  219. package/lib/framework/build-all-flags.js +1 -1
  220. package/lib/framework/error-output.js +1 -1
  221. package/lib/framework/explicit-yes.js +1 -1
  222. package/lib/framework/flags.js +1 -1
  223. package/lib/framework/help.js +1 -1
  224. package/lib/framework/index.js +1 -1
  225. package/lib/framework/output.js +1 -1
  226. package/lib/framework/response.js +1 -1
  227. package/lib/framework/runner-alias.js +1 -1
  228. package/lib/framework/runner.js +1 -1
  229. package/lib/framework/schema-export.js +1 -1
  230. package/lib/framework/types.js +1 -1
  231. package/lib/generated/build-info.js +1 -1
  232. package/lib/help.js +1 -1
  233. package/lib/skills/main.js +1 -1
  234. package/lib/skills/npx-skills-add.js +1 -1
  235. package/lib/telemetry/cli-command-trace.js +1 -1
  236. package/lib/telemetry/cli-help-trace.js +1 -1
  237. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  238. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  239. package/lib/telemetry/send-cli-trace-log.js +1 -1
  240. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  241. package/lib/utils/ai_config.js +1 -1
  242. package/lib/utils/apply-jq-filter.js +1 -1
  243. package/lib/utils/cdn-config.js +1 -1
  244. package/lib/utils/check-sdk-version.js +1 -1
  245. package/lib/utils/cli-version-check.js +1 -1
  246. package/lib/utils/cli-version-policy.js +1 -1
  247. package/lib/utils/config.js +1 -1
  248. package/lib/utils/copy-directory.js +1 -1
  249. package/lib/utils/entity-with-id.js +1 -1
  250. package/lib/utils/file-utils.js +1 -1
  251. package/lib/utils/guides-cdn.js +1 -1
  252. package/lib/utils/http-client.js +1 -1
  253. package/lib/utils/is-non-interactive.js +1 -1
  254. package/lib/utils/logger.js +1 -1
  255. package/lib/utils/params.js +1 -1
  256. package/lib/utils/platform.js +1 -1
  257. package/lib/utils/rules-cdn.js +1 -1
  258. package/lib/utils/sleep.js +1 -1
  259. package/lib/utils/template-replacer.js +1 -1
  260. package/lib/utils/update-notice.js +1 -1
  261. package/lib/utils/version.js +1 -1
  262. package/lib/utils/with-active-cookie.js +1 -1
  263. package/lib/utils/write-cli-side-channel.js +1 -1
  264. package/package.json +1 -1
@@ -1 +1 @@
1
- function a231_0x2660(){const _0x278876=['307360oKqLpr','938310iXBngD','3144VNXcmy','3221670kkTcXD','34279aKPOfn','820080agRPBw','1304810wlrOrE','650975FdxdPv'];a231_0x2660=function(){return _0x278876;};return a231_0x2660();}function a231_0x2f7b(_0x1798f1,_0x47f4ba){_0x1798f1=_0x1798f1-0xe7;const _0x266060=a231_0x2660();let _0x2f7bc5=_0x266060[_0x1798f1];return _0x2f7bc5;}(function(_0x14aae7,_0x2fd957){const _0x5ede7f=a231_0x2f7b,_0x1f7646=_0x14aae7();while(!![]){try{const _0x3e1043=-parseInt(_0x5ede7f(0xe9))/0x1+-parseInt(_0x5ede7f(0xea))/0x2+-parseInt(_0x5ede7f(0xeb))/0x3+-parseInt(_0x5ede7f(0xe7))/0x4+parseInt(_0x5ede7f(0xe8))/0x5+-parseInt(_0x5ede7f(0xed))/0x6+parseInt(_0x5ede7f(0xee))/0x7*(parseInt(_0x5ede7f(0xec))/0x8);if(_0x3e1043===_0x2fd957)break;else _0x1f7646['push'](_0x1f7646['shift']());}catch(_0x4ff987){_0x1f7646['push'](_0x1f7646['shift']());}}}(a231_0x2660,0x4f9cd));import{buildSchemaPayload as a231_0x590872}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';import{getCliVersion}from'../utils/version.js';export async function buildSchemaPayload(){const {serviceRegistry:_0x512169,findDefinition:_0x26d39e}=await import('../commands/registry.js');return a231_0x590872({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':process.env.GIT_COMMIT??'','globalFlags':GLOBAL_FLAGS,'serviceRegistry':_0x512169,'buildAllFlags':buildAllFlags,'findDefinition':_0x26d39e});}
1
+ (function(_0x902321,_0x3ec97a){const _0x4482ba=a232_0x59d3,_0x577d20=_0x902321();while(!![]){try{const _0x536cf2=-parseInt(_0x4482ba(0x191))/0x1+-parseInt(_0x4482ba(0x195))/0x2*(parseInt(_0x4482ba(0x199))/0x3)+-parseInt(_0x4482ba(0x192))/0x4*(-parseInt(_0x4482ba(0x193))/0x5)+parseInt(_0x4482ba(0x197))/0x6*(-parseInt(_0x4482ba(0x196))/0x7)+parseInt(_0x4482ba(0x19b))/0x8+parseInt(_0x4482ba(0x198))/0x9+-parseInt(_0x4482ba(0x194))/0xa;if(_0x536cf2===_0x3ec97a)break;else _0x577d20['push'](_0x577d20['shift']());}catch(_0x158b1a){_0x577d20['push'](_0x577d20['shift']());}}}(a232_0x12b4,0x6ebbd));import{buildSchemaPayload as a232_0x3ef8f4}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';function a232_0x59d3(_0xc1e5d5,_0x5a6d36){_0xc1e5d5=_0xc1e5d5-0x191;const _0x12b413=a232_0x12b4();let _0x59d349=_0x12b413[_0xc1e5d5];return _0x59d349;}import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';function a232_0x12b4(){const _0xce34df=['3074304OKXFkI','4351491SFePOm','374643jemdlA','../commands/registry.js','7067264CKruHA','424964SFNIri','147916HJhSRE','55owDWTC','2578820wqjHgk','2kLWXEw','7JwdGom'];a232_0x12b4=function(){return _0xce34df;};return a232_0x12b4();}import{getCliVersion}from'../utils/version.js';export async function buildSchemaPayload(){const _0x2648ef=a232_0x59d3,{serviceRegistry:_0x116504,findDefinition:_0x4d161f}=await import(_0x2648ef(0x19a));return a232_0x3ef8f4({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':process.env.GIT_COMMIT??'','globalFlags':GLOBAL_FLAGS,'serviceRegistry':_0x116504,'buildAllFlags':buildAllFlags,'findDefinition':_0x4d161f});}
@@ -1 +1 @@
1
- function a232_0x56e9(_0x1ecaa1,_0x5a2742){_0x1ecaa1=_0x1ecaa1-0x11e;var _0x372391=a232_0x3723();var _0x56e920=_0x372391[_0x1ecaa1];return _0x56e920;}(function(_0x12c205,_0x4d7c00){var _0x346862=a232_0x56e9,_0x4ceb3b=_0x12c205();while(!![]){try{var _0x596ddb=parseInt(_0x346862(0x125))/0x1*(parseInt(_0x346862(0x121))/0x2)+-parseInt(_0x346862(0x128))/0x3+-parseInt(_0x346862(0x122))/0x4+-parseInt(_0x346862(0x124))/0x5+parseInt(_0x346862(0x120))/0x6*(-parseInt(_0x346862(0x11e))/0x7)+parseInt(_0x346862(0x123))/0x8*(parseInt(_0x346862(0x126))/0x9)+-parseInt(_0x346862(0x11f))/0xa*(-parseInt(_0x346862(0x127))/0xb);if(_0x596ddb===_0x4d7c00)break;else _0x4ceb3b['push'](_0x4ceb3b['shift']());}catch(_0x8e3f32){_0x4ceb3b['push'](_0x4ceb3b['shift']());}}}(a232_0x3723,0x238e4));export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat,commandAllowsOptionalAuth,commandRequiresAuth,formatDeprecatedCommandMessage,resolveCommandAuthMode}from'@lovrabet/cli-framework';function a232_0x3723(){var _0x31dacb=['85842sfHEkJ','42dgmmSj','10jOZjaJ','259746MpJviq','53566VsKEZG','350736AmPPTY','855608HtvLlJ','1293510JVEWyq','10rXEtlh','9rdwCvx','4461611HPaTpG'];a232_0x3723=function(){return _0x31dacb;};return a232_0x3723();}
1
+ function a233_0x2ac3(_0x47d17f,_0x233d5a){_0x47d17f=_0x47d17f-0x100;var _0x317ac3=a233_0x317a();var _0x2ac378=_0x317ac3[_0x47d17f];return _0x2ac378;}(function(_0x556d48,_0x2f3a17){var _0x18c555=a233_0x2ac3,_0x18aa8a=_0x556d48();while(!![]){try{var _0x4da33b=parseInt(_0x18c555(0x107))/0x1+parseInt(_0x18c555(0x104))/0x2+-parseInt(_0x18c555(0x103))/0x3*(-parseInt(_0x18c555(0x102))/0x4)+parseInt(_0x18c555(0x106))/0x5+parseInt(_0x18c555(0x108))/0x6+-parseInt(_0x18c555(0x105))/0x7+parseInt(_0x18c555(0x100))/0x8*(-parseInt(_0x18c555(0x101))/0x9);if(_0x4da33b===_0x2f3a17)break;else _0x18aa8a['push'](_0x18aa8a['shift']());}catch(_0x5fe3a8){_0x18aa8a['push'](_0x18aa8a['shift']());}}}(a233_0x317a,0x47ea3));export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat,commandAllowsOptionalAuth,commandRequiresAuth,formatDeprecatedCommandMessage,resolveCommandAuthMode}from'@lovrabet/cli-framework';function a233_0x317a(){var _0x2a7454=['590850EHGcBm','7432VtDxWC','1539YnwlnP','437468jqqAEt','6BAnhxq','96060oOcRMr','4082827DynYTy','1909745sTDZnB','289495GWLOqq'];a233_0x317a=function(){return _0x2a7454;};return a233_0x317a();}
@@ -1 +1 @@
1
- const a233_0x2fa068=a233_0x30ba;function a233_0x4ebd(){const _0x23343d=['269274oXisrG','2251512Qriczs','68998YleHSh','1593272bRPjWV','24IRHCQX','2.3.15-beta.1','92692UOMufN','2026-08-07T14:35:54.772Z','7VWgUvS','1334830mxyqlE','47187pPahlu','v2.3.15-beta.1'];a233_0x4ebd=function(){return _0x23343d;};return a233_0x4ebd();}(function(_0x301a3f,_0x2ee904){const _0x333297=a233_0x30ba,_0x5b9401=_0x301a3f();while(!![]){try{const _0x4e77ea=-parseInt(_0x333297(0x1c4))/0x1+parseInt(_0x333297(0x1c8))/0x2+parseInt(_0x333297(0x1be))/0x3*(-parseInt(_0x333297(0x1c0))/0x4)+parseInt(_0x333297(0x1c3))/0x5+-parseInt(_0x333297(0x1c6))/0x6*(-parseInt(_0x333297(0x1c2))/0x7)+-parseInt(_0x333297(0x1bd))/0x8+parseInt(_0x333297(0x1c7))/0x9;if(_0x4e77ea===_0x2ee904)break;else _0x5b9401['push'](_0x5b9401['shift']());}catch(_0x3895a9){_0x5b9401['push'](_0x5b9401['shift']());}}}(a233_0x4ebd,0x283ae));export const VERSION=a233_0x2fa068(0x1bf);export const GIT_TAG=a233_0x2fa068(0x1c5);export const GIT_COMMIT='46bdfeb';function a233_0x30ba(_0x3b840e,_0x328217){_0x3b840e=_0x3b840e-0x1bd;const _0x4ebde4=a233_0x4ebd();let _0x30bae8=_0x4ebde4[_0x3b840e];return _0x30bae8;}export const BUILD_TIME=a233_0x2fa068(0x1c1);
1
+ const a234_0x1d21f3=a234_0x5324;(function(_0x10ad34,_0x45edb6){const _0x5d15dd=a234_0x5324,_0x146b7d=_0x10ad34();while(!![]){try{const _0x334924=parseInt(_0x5d15dd(0x1e3))/0x1+parseInt(_0x5d15dd(0x1e1))/0x2+-parseInt(_0x5d15dd(0x1e2))/0x3*(parseInt(_0x5d15dd(0x1dc))/0x4)+parseInt(_0x5d15dd(0x1e8))/0x5*(-parseInt(_0x5d15dd(0x1e7))/0x6)+-parseInt(_0x5d15dd(0x1e4))/0x7+parseInt(_0x5d15dd(0x1df))/0x8+-parseInt(_0x5d15dd(0x1e0))/0x9*(-parseInt(_0x5d15dd(0x1dd))/0xa);if(_0x334924===_0x45edb6)break;else _0x146b7d['push'](_0x146b7d['shift']());}catch(_0x468989){_0x146b7d['push'](_0x146b7d['shift']());}}}(a234_0x5190,0xb10ab));export const VERSION=a234_0x1d21f3(0x1e6);export const GIT_TAG=a234_0x1d21f3(0x1de);export const GIT_COMMIT='e5439a0';export const BUILD_TIME=a234_0x1d21f3(0x1e5);function a234_0x5324(_0x1d5590,_0x5e4f05){_0x1d5590=_0x1d5590-0x1dc;const _0x5190a2=a234_0x5190();let _0x53244f=_0x5190a2[_0x1d5590];return _0x53244f;}function a234_0x5190(){const _0x44c006=['120AdmtCH','1928AvYmMI','598250LnIIIg','v2.3.15','526216IYoSJq','135WvsaDP','2315808xRHwEy','8907EPUehB','1093685vUOCBG','4348848TmKzbk','2026-08-09T06:14:24.196Z','2.3.15','109314MVpqIE'];a234_0x5190=function(){return _0x44c006;};return a234_0x5190();}
package/lib/help.js CHANGED
@@ -1 +1 @@
1
- (function(_0x7b8b9,_0x137915){var _0x5eaae7=a234_0x2d9b,_0x5e6b4a=_0x7b8b9();while(!![]){try{var _0x2c318f=-parseInt(_0x5eaae7(0x1eb))/0x1+parseInt(_0x5eaae7(0x1e8))/0x2*(-parseInt(_0x5eaae7(0x1ee))/0x3)+parseInt(_0x5eaae7(0x1f0))/0x4+-parseInt(_0x5eaae7(0x1ed))/0x5*(parseInt(_0x5eaae7(0x1ec))/0x6)+parseInt(_0x5eaae7(0x1e9))/0x7+-parseInt(_0x5eaae7(0x1f3))/0x8+-parseInt(_0x5eaae7(0x1f2))/0x9*(-parseInt(_0x5eaae7(0x1e5))/0xa);if(_0x2c318f===_0x137915)break;else _0x5e6b4a['push'](_0x5e6b4a['shift']());}catch(_0x2b3820){_0x5e6b4a['push'](_0x5e6b4a['shift']());}}}(a234_0x25f0,0xc3832));function a234_0x2d9b(_0x1a11e1,_0x5d9887){_0x1a11e1=_0x1a11e1-0x1e4;var _0x25f094=a234_0x25f0();var _0x2d9bd4=_0x25f094[_0x1a11e1];return _0x2d9bd4;}import a234_0x468d0b from'chalk';import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';function a234_0x25f0(){var _0x441fe1=['\x20to\x20view\x20available\x20commands.','3847560tkyhJy','bold','8595qnJVMH','10450640QPDvqr','\x20--help','39310pgYBKv','green','log','6pWilYZ','6286868HWMwTs','\x20\x20Use\x20','1414260WKoWlm','2581770aSWWoi','10ycqynH','1232121hgEZAe'];a234_0x25f0=function(){return _0x441fe1;};return a234_0x25f0();}export function showHelp(){var _0x2cdbcf=a234_0x2d9b;console[_0x2cdbcf(0x1e7)](),console['log'](a234_0x468d0b[_0x2cdbcf(0x1e6)]['bold']('\x20\x20'+CLI_DISPLAY_NAME)),console[_0x2cdbcf(0x1e7)](),console['log'](_0x2cdbcf(0x1ea)+a234_0x468d0b[_0x2cdbcf(0x1e6)][_0x2cdbcf(0x1f1)](CLI_BIN_NAME+_0x2cdbcf(0x1e4))+_0x2cdbcf(0x1ef)),console[_0x2cdbcf(0x1e7)]();}
1
+ function a235_0x2af6(_0x5e2aef,_0x51194a){_0x5e2aef=_0x5e2aef-0x1d2;var _0x593af8=a235_0x593a();var _0x2af6e3=_0x593af8[_0x5e2aef];return _0x2af6e3;}function a235_0x593a(){var _0x382982=['59SDZDDg','60vUdUbK','32859ACyiue','\x20\x20Use\x20','638393KHFMRT','log','6484357TxxTnX','bold','1056663dYzKXP','4376100KvOoVf','\x20--help','36SLDOqf','5415180Zldpnl','784uVdvYs','4LEWfEH','green','\x20to\x20view\x20available\x20commands.','24370sUgohL'];a235_0x593a=function(){return _0x382982;};return a235_0x593a();}(function(_0x58ca3b,_0x1f09f2){var _0x5e5700=a235_0x2af6,_0x40fce3=_0x58ca3b();while(!![]){try{var _0x583687=parseInt(_0x5e5700(0x1d4))/0x1*(-parseInt(_0x5e5700(0x1d3))/0x2)+-parseInt(_0x5e5700(0x1dc))/0x3*(-parseInt(_0x5e5700(0x1e2))/0x4)+parseInt(_0x5e5700(0x1dd))/0x5+parseInt(_0x5e5700(0x1d5))/0x6*(-parseInt(_0x5e5700(0x1d8))/0x7)+-parseInt(_0x5e5700(0x1e1))/0x8*(parseInt(_0x5e5700(0x1d6))/0x9)+-parseInt(_0x5e5700(0x1e0))/0xa+-parseInt(_0x5e5700(0x1da))/0xb*(-parseInt(_0x5e5700(0x1df))/0xc);if(_0x583687===_0x1f09f2)break;else _0x40fce3['push'](_0x40fce3['shift']());}catch(_0x2bf34b){_0x40fce3['push'](_0x40fce3['shift']());}}}(a235_0x593a,0x71b11));import a235_0x5afcd6 from'chalk';import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';export function showHelp(){var _0x43adc7=a235_0x2af6;console['log'](),console['log'](a235_0x5afcd6['green'][_0x43adc7(0x1db)]('\x20\x20'+CLI_DISPLAY_NAME)),console[_0x43adc7(0x1d9)](),console[_0x43adc7(0x1d9)](_0x43adc7(0x1d7)+a235_0x5afcd6[_0x43adc7(0x1e3)]['bold'](CLI_BIN_NAME+_0x43adc7(0x1de))+_0x43adc7(0x1d2)),console[_0x43adc7(0x1d9)]();}
@@ -1 +1 @@
1
- (function(_0x340819,_0x394ff8){const _0x2c3aed=a235_0x1a9d,_0x4bc148=_0x340819();while(!![]){try{const _0xc4bc19=-parseInt(_0x2c3aed(0xf0))/0x1+-parseInt(_0x2c3aed(0x100))/0x2+parseInt(_0x2c3aed(0xf7))/0x3+parseInt(_0x2c3aed(0xff))/0x4+parseInt(_0x2c3aed(0x102))/0x5+parseInt(_0x2c3aed(0xeb))/0x6+-parseInt(_0x2c3aed(0x104))/0x7;if(_0xc4bc19===_0x394ff8)break;else _0x4bc148['push'](_0x4bc148['shift']());}catch(_0x1094cd){_0x4bc148['push'](_0x4bc148['shift']());}}}(a235_0x1699,0x19f8c));import{logger}from'../utils/logger.js';import{CLI_BIN_NAME}from'../constant/cli.js';import{NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE}from'../skills/npx-skills-add.js';export function camelCaseFlagsToKebab(_0x1bb0d7){const _0x15c625=a235_0x1a9d,_0x101aa6=[];for(const [_0x21fe06,_0x581cbf]of Object[_0x15c625(0xfe)](_0x1bb0d7)){if(_0x581cbf===!![]){const _0x823668=_0x21fe06[_0x15c625(0x103)](/([A-Z])/g,'-$1')[_0x15c625(0x105)]();_0x101aa6['push'](_0x823668);}}return _0x101aa6;}export function parseDynamicFlags(){const _0x27ffa2=a235_0x1a9d,_0x2d2237=[];for(let _0x5568dc=0x3;_0x5568dc<process[_0x27ffa2(0xfc)]['length'];_0x5568dc++){const _0x532670=process[_0x27ffa2(0xfc)][_0x5568dc];if(_0x532670&&_0x532670[_0x27ffa2(0xf9)]('--')){const _0x425c6c=_0x532670['slice'](0x2);_0x425c6c&&!_0x425c6c[_0x27ffa2(0xea)]('=')&&_0x2d2237[_0x27ffa2(0xec)](_0x425c6c);}}return _0x2d2237;}export function getAllProvidedFlags(_0x4ede1b){const _0x1a1b12=a235_0x1a9d,_0x10e81e=camelCaseFlagsToKebab(_0x4ede1b),_0x252422=parseDynamicFlags(),_0x41adc4=new Set([..._0x10e81e,..._0x252422]);return Array[_0x1a1b12(0xf4)](_0x41adc4);}function a235_0x1a9d(_0x2482a2,_0x18b8d7){_0x2482a2=_0x2482a2-0xe8;const _0x169981=a235_0x1699();let _0x1a9d99=_0x169981[_0x2482a2];return _0x1a9d99;}export function normalizeLegacyBffSaveFlags(_0x86228f){const _0x36e5e8=a235_0x1a9d,_0x355e3a=new Set(_0x86228f);return _0x355e3a['has']('dangerously-bff-save')&&_0x355e3a[_0x36e5e8(0xee)](_0x36e5e8(0xfd)),Array['from'](_0x355e3a);}const SKILLS_INSTALL_COMMAND_LINE=NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE;function a235_0x1699(){const _0x49d203=['728784lKJnnT','toLowerCase','cwd','help','\x20cli-skill\x20install\x0a\x0aEquivalent\x20command:\x20','includes','392928ZOOtkm','push','Error:\x20Unsupported\x20command:\x20','add','log','106597ycmmjx','\x20cli-skill\x20install\x20\x20\x20\x20\x20\x20\x20#\x20Install\x20CLI\x20Built-in\x20Skill','error','skill','from','不支持的命令:\x20','exit','571596khHJAs','Equivalent\x20command:\x20','startsWith','setLogPath','\x0aRabetbase\x20CLI\x20Skill\x20-\x20Developer\x20Workflow\x20Installation\x20Tool\x0a\x0aUsage:\x0a\x20\x20','argv','enable-bff-save','entries','88996CFvCfw','161702lOKIcS','--help','598355RjWXvk','replace'];a235_0x1699=function(){return _0x49d203;};return a235_0x1699();}export async function skillsCommand(_0x4a4124,_0x47c962,_0x172c05){const _0x25e444=a235_0x1a9d;logger[_0x25e444(0xfa)](process[_0x25e444(0x106)]());if(_0x172c05?.[_0x25e444(0xe8)]||_0x4a4124===_0x25e444(0x101)){showHelp();return;}console['error'](_0x25e444(0xed)+(_0x4a4124||'(empty)')),console[_0x25e444(0xef)]('\x0aAvailable\x20commands:'),console['log']('\x20\x20'+CLI_BIN_NAME+_0x25e444(0xf1)),console['log'](''),console['log'](_0x25e444(0xf8)+SKILLS_INSTALL_COMMAND_LINE),logger[_0x25e444(0xf2)](_0x25e444(0xf3),_0x25e444(0xf5)+_0x4a4124),process[_0x25e444(0xf6)](0x1);}function showHelp(){const _0x623035=a235_0x1a9d;console[_0x623035(0xef)](_0x623035(0xfb)+CLI_BIN_NAME+_0x623035(0xe9)+SKILLS_INSTALL_COMMAND_LINE+'\x0a\x0aNote:\x20npx\x20skills\x20selects\x20the\x20agent\x20and\x20writes\x20files;\x20guides\x20live\x20under\x20skills/rabetbase/guides/.\x0a');}
1
+ (function(_0x383022,_0x2e3ff5){const _0x4c8dc4=a236_0x58ac,_0x3285cb=_0x383022();while(!![]){try{const _0x276d25=-parseInt(_0x4c8dc4(0xa4))/0x1+-parseInt(_0x4c8dc4(0xb2))/0x2*(parseInt(_0x4c8dc4(0xab))/0x3)+-parseInt(_0x4c8dc4(0xae))/0x4*(parseInt(_0x4c8dc4(0xaf))/0x5)+-parseInt(_0x4c8dc4(0xac))/0x6*(parseInt(_0x4c8dc4(0xb9))/0x7)+parseInt(_0x4c8dc4(0xb7))/0x8*(-parseInt(_0x4c8dc4(0xb5))/0x9)+parseInt(_0x4c8dc4(0xad))/0xa*(parseInt(_0x4c8dc4(0xa7))/0xb)+parseInt(_0x4c8dc4(0x9f))/0xc;if(_0x276d25===_0x2e3ff5)break;else _0x3285cb['push'](_0x3285cb['shift']());}catch(_0x2ec58d){_0x3285cb['push'](_0x3285cb['shift']());}}}(a236_0x48f8,0xbed54));import{logger}from'../utils/logger.js';import{CLI_BIN_NAME}from'../constant/cli.js';import{NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE}from'../skills/npx-skills-add.js';export function camelCaseFlagsToKebab(_0x20f273){const _0x2f7986=a236_0x58ac,_0x5bfd14=[];for(const [_0x26e237,_0x3f74db]of Object['entries'](_0x20f273)){if(_0x3f74db===!![]){const _0x25d9a5=_0x26e237['replace'](/([A-Z])/g,_0x2f7986(0xb4))[_0x2f7986(0xa0)]();_0x5bfd14[_0x2f7986(0x9e)](_0x25d9a5);}}return _0x5bfd14;}export function parseDynamicFlags(){const _0x3225b3=a236_0x58ac,_0x424e92=[];for(let _0x324ec6=0x3;_0x324ec6<process[_0x3225b3(0xb3)][_0x3225b3(0xa5)];_0x324ec6++){const _0x12861e=process[_0x3225b3(0xb3)][_0x324ec6];if(_0x12861e&&_0x12861e['startsWith']('--')){const _0xaa417f=_0x12861e['slice'](0x2);_0xaa417f&&!_0xaa417f[_0x3225b3(0xb0)]('=')&&_0x424e92[_0x3225b3(0x9e)](_0xaa417f);}}return _0x424e92;}export function getAllProvidedFlags(_0x247dcf){const _0x3ba47c=camelCaseFlagsToKebab(_0x247dcf),_0x1bff0c=parseDynamicFlags(),_0x35040b=new Set([..._0x3ba47c,..._0x1bff0c]);return Array['from'](_0x35040b);}export function normalizeLegacyBffSaveFlags(_0x264b1b){const _0xdb8ab1=a236_0x58ac,_0x5c4da9=new Set(_0x264b1b);return _0x5c4da9[_0xdb8ab1(0xbb)]('dangerously-bff-save')&&_0x5c4da9[_0xdb8ab1(0xb6)](_0xdb8ab1(0xa6)),Array['from'](_0x5c4da9);}function a236_0x58ac(_0x175a8d,_0x19f5cc){_0x175a8d=_0x175a8d-0x9d;const _0x48f8bc=a236_0x48f8();let _0x58acd8=_0x48f8bc[_0x175a8d];return _0x58acd8;}const SKILLS_INSTALL_COMMAND_LINE=NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE;function a236_0x48f8(){const _0xeaf8db=['length','enable-bff-save','4026WrsflE','不支持的命令:\x20','error','\x0a\x0aNote:\x20npx\x20skills\x20selects\x20the\x20agent\x20and\x20writes\x20files;\x20guides\x20live\x20under\x20skills/rabetbase/guides/.\x0a','558183LqgFGJ','6JtnEZX','36170agaiqG','1753420ThXvVL','5QXllLK','includes','exit','14SbBSwA','argv','-$1','11584278pIsAas','add','8qOQAQV','--help','5326419TtVZjT','\x0aAvailable\x20commands:','has','Equivalent\x20command:\x20','push','54861600XZFylw','toLowerCase','\x20cli-skill\x20install\x20\x20\x20\x20\x20\x20\x20#\x20Install\x20CLI\x20Built-in\x20Skill','log','(empty)','1325129vACzji'];a236_0x48f8=function(){return _0xeaf8db;};return a236_0x48f8();}export async function skillsCommand(_0x207ab2,_0xb491f5,_0x4b9738){const _0x4f415e=a236_0x58ac;logger['setLogPath'](process['cwd']());if(_0x4b9738?.['help']||_0x207ab2===_0x4f415e(0xb8)){showHelp();return;}console[_0x4f415e(0xa9)]('Error:\x20Unsupported\x20command:\x20'+(_0x207ab2||_0x4f415e(0xa3))),console[_0x4f415e(0xa2)](_0x4f415e(0xba)),console[_0x4f415e(0xa2)]('\x20\x20'+CLI_BIN_NAME+_0x4f415e(0xa1)),console[_0x4f415e(0xa2)](''),console[_0x4f415e(0xa2)](_0x4f415e(0x9d)+SKILLS_INSTALL_COMMAND_LINE),logger[_0x4f415e(0xa9)]('skill',_0x4f415e(0xa8)+_0x207ab2),process[_0x4f415e(0xb1)](0x1);}function showHelp(){const _0x5e72d6=a236_0x58ac;console[_0x5e72d6(0xa2)]('\x0aRabetbase\x20CLI\x20Skill\x20-\x20Developer\x20Workflow\x20Installation\x20Tool\x0a\x0aUsage:\x0a\x20\x20'+CLI_BIN_NAME+'\x20cli-skill\x20install\x0a\x0aEquivalent\x20command:\x20'+SKILLS_INSTALL_COMMAND_LINE+_0x5e72d6(0xaa));}
@@ -1 +1 @@
1
- const a236_0x6e559a=a236_0x1229;(function(_0x59bf4d,_0x5632ba){const _0x3fdf99=a236_0x1229,_0x45e881=_0x59bf4d();while(!![]){try{const _0x56eea8=-parseInt(_0x3fdf99(0x1c9))/0x1*(parseInt(_0x3fdf99(0x1ca))/0x2)+parseInt(_0x3fdf99(0x1c1))/0x3+parseInt(_0x3fdf99(0x1b6))/0x4+-parseInt(_0x3fdf99(0x1cc))/0x5*(parseInt(_0x3fdf99(0x1c7))/0x6)+-parseInt(_0x3fdf99(0x1b8))/0x7+parseInt(_0x3fdf99(0x1bb))/0x8+-parseInt(_0x3fdf99(0x1bd))/0x9*(parseInt(_0x3fdf99(0x1b1))/0xa);if(_0x56eea8===_0x5632ba)break;else _0x45e881['push'](_0x45e881['shift']());}catch(_0x29b156){_0x45e881['push'](_0x45e881['shift']());}}}(a236_0x585e,0x25b10));import{spawnSync}from'node:child_process';function a236_0x585e(){const _0x210614=['inherit','remove','stderr','12ZBzFog','Lovrabet','163gnnRjC','524OUwUkk','stdio','360250VKBGvH','pipe','toString','lovrabet/lovrabet-skill','660140HCVuem','npx','exit\x20','stdout','skills','1037860MHaGnF','skill','761908cnerCY','yes','add','951104bsnlFa','unknown','18GBINLT','status','log','trim','611127bvuqAk','push','join'];a236_0x585e=function(){return _0x210614;};return a236_0x585e();}import{resolveNpmBin}from'../utils/platform.js';export const NPX_FLAG_YES='-y';export const SKILLS_FLAG_GLOBAL='-g';export const SKILLS_FLAG_YES='-y';export const NPX_SKILLS_CLI=a236_0x6e559a(0x1b5);function a236_0x1229(_0x590df5,_0x42e91a){_0x590df5=_0x590df5-0x1b0;const _0x585efc=a236_0x585e();let _0x1229d3=_0x585efc[_0x590df5];return _0x1229d3;}export const NPX_SKILLS_SUBCOMMAND_ADD=a236_0x6e559a(0x1ba);export const NPX_SKILLS_FLAG_SKILL='--skill';export const RABETBASE_SKILL_SOURCE='lovrabet/rabetbase';export const LEGACY_RABETBASE_SKILL_SOURCE=a236_0x6e559a(0x1b0);export const DEFAULT_RABETBASE_SKILL_NAME=a236_0x6e559a(0x1c8);export function buildNpxSkillsAddArgv(_0xa1c0ba){const _0x3876a3=a236_0x6e559a,_0x2ffa9f=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE];return _0xa1c0ba&&_0x2ffa9f[_0x3876a3(0x1c2)](NPX_SKILLS_FLAG_SKILL,_0xa1c0ba),_0x2ffa9f;}export const NPX_SKILLS_ADD_COMMAND_LINE=[a236_0x6e559a(0x1b2),...buildNpxSkillsAddArgv()]['join']('\x20');export const NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE=['npx',NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][a236_0x6e559a(0x1c3)]('\x20');export function shouldSkipNpxSkillsAdd(){return process.env.RABETBASE_SKIP_NPX_SKILLS==='1';}export function runNpxSkillsAdd(_0x5d141a,_0x15eec8){const _0x5f1878=a236_0x6e559a;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x20e9ba=_0x15eec8?.[_0x5f1878(0x1cb)]??_0x5f1878(0x1c4),_0x34a0c1=resolveNpmBin(_0x5f1878(0x1b2)),_0xe83f15=buildNpxSkillsAddArgv(_0x15eec8?.[_0x5f1878(0x1b7)]),_0x5a1c6a=[_0x5f1878(0x1b2),..._0xe83f15][_0x5f1878(0x1c3)]('\x20');console[_0x5f1878(0x1bf)]('*\x20'+_0x5a1c6a);const _0x4bc81f=spawnSync(_0x34a0c1,_0xe83f15,{'cwd':_0x5d141a,'stdio':_0x20e9ba,'env':process.env,'shell':![]}),_0x3e3a3c=_0x4bc81f[_0x5f1878(0x1be)];if(_0x3e3a3c===0x0)return{'ok':!![],'status':0x0};let _0x3fc3c4=_0x5f1878(0x1b3)+(_0x3e3a3c??_0x5f1878(0x1bc));if(_0x20e9ba==='pipe'){const _0x5476d8=_0x4bc81f[_0x5f1878(0x1c6)]?_0x4bc81f['stderr']['toString']()[_0x5f1878(0x1c0)]():'',_0x1119af=_0x4bc81f[_0x5f1878(0x1b4)]?_0x4bc81f['stdout'][_0x5f1878(0x1ce)]()[_0x5f1878(0x1c0)]():'';if(_0x5476d8)_0x3fc3c4=_0x5476d8;else{if(_0x1119af)_0x3fc3c4=_0x1119af;}}return{'ok':![],'status':_0x3e3a3c??null,'error':_0x3fc3c4};}export function runNpxSkillsRemove(_0x594abe,_0xd2af,_0x20a330=LEGACY_RABETBASE_SKILL_SOURCE){const _0x5d9758=a236_0x6e559a;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0xb65ca9=_0xd2af?.[_0x5d9758(0x1cb)]??_0x5d9758(0x1c4),_0x4d12a9=resolveNpmBin('npx'),_0x2592b1=[NPX_FLAG_YES,NPX_SKILLS_CLI,_0x5d9758(0x1c5),_0x20a330,NPX_SKILLS_FLAG_SKILL,_0xd2af?.[_0x5d9758(0x1b7)]??DEFAULT_RABETBASE_SKILL_NAME,..._0xd2af?.[_0x5d9758(0x1b9)]?['-y']:[]],_0x48318f=[_0x4d12a9,..._0x2592b1][_0x5d9758(0x1c3)]('\x20');console[_0x5d9758(0x1bf)]('*\x20'+_0x48318f);const _0x227193=spawnSync(_0x4d12a9,_0x2592b1,{'cwd':_0x594abe,'stdio':_0xb65ca9,'env':process.env,'shell':![]}),_0x3e3f24=_0x227193[_0x5d9758(0x1be)];if(_0x3e3f24===0x0)return{'ok':!![],'status':0x0};let _0xc8b7d7=_0x5d9758(0x1b3)+(_0x3e3f24??_0x5d9758(0x1bc));if(_0xb65ca9===_0x5d9758(0x1cd)){const _0x2402c1=_0x227193[_0x5d9758(0x1c6)]?_0x227193[_0x5d9758(0x1c6)][_0x5d9758(0x1ce)]()[_0x5d9758(0x1c0)]():'',_0x37fbac=_0x227193[_0x5d9758(0x1b4)]?_0x227193[_0x5d9758(0x1b4)][_0x5d9758(0x1ce)]()[_0x5d9758(0x1c0)]():'';if(_0x2402c1)_0xc8b7d7=_0x2402c1;else{if(_0x37fbac)_0xc8b7d7=_0x37fbac;}}return{'ok':![],'status':_0x3e3f24??null,'error':_0xc8b7d7};}export function runNpxSkillsAddGlobal(_0x48c0a5,_0x452eb2,_0x573dae){const _0x4e9d86=a236_0x6e559a;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x1d3d79=_0x573dae?.[_0x4e9d86(0x1cb)]??'inherit',_0x518dd9=resolveNpmBin(_0x4e9d86(0x1b2)),_0x1df8d0=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x452eb2,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES],_0x36e2ab=['npx',NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x452eb2,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES]['join']('\x20');console[_0x4e9d86(0x1bf)]('*\x20'+_0x36e2ab);const _0x185a5=spawnSync(_0x518dd9,_0x1df8d0,{'cwd':_0x48c0a5,'stdio':_0x1d3d79,'env':process.env,'shell':![]}),_0x5c2c11=_0x185a5[_0x4e9d86(0x1be)];if(_0x5c2c11===0x0)return{'ok':!![],'status':0x0};let _0x4a4880=_0x4e9d86(0x1b3)+(_0x5c2c11??_0x4e9d86(0x1bc));if(_0x1d3d79===_0x4e9d86(0x1cd)){const _0x2b2f0d=_0x185a5[_0x4e9d86(0x1c6)]?_0x185a5[_0x4e9d86(0x1c6)][_0x4e9d86(0x1ce)]()[_0x4e9d86(0x1c0)]():'',_0x2709f1=_0x185a5[_0x4e9d86(0x1b4)]?_0x185a5['stdout'][_0x4e9d86(0x1ce)]()[_0x4e9d86(0x1c0)]():'';if(_0x2b2f0d)_0x4a4880=_0x2b2f0d;else{if(_0x2709f1)_0x4a4880=_0x2709f1;}}return{'ok':![],'status':_0x5c2c11??null,'error':_0x4a4880};}
1
+ function a237_0xa0bc(){const _0x5ba95e=['5GpXSXp','toString','log','npx','lovrabet/lovrabet-skill','pipe','Lovrabet','inherit','stdout','status','stderr','1680648cxPhod','3956754WfejuV','--skill','add','yes','154wJlsIA','join','trim','556LBOlFE','2874wsFEMf','unknown','lovrabet/rabetbase','4826709ptMNGw','skill','stdio','19143WjljVq','4798510OPySyq','7677691HrPVGo','push','exit\x20'];a237_0xa0bc=function(){return _0x5ba95e;};return a237_0xa0bc();}const a237_0x32b3bf=a237_0x5e41;(function(_0x3b1787,_0x2368e6){const _0x4b676f=a237_0x5e41,_0x4e4e51=_0x3b1787();while(!![]){try{const _0x3b46f3=parseInt(_0x4b676f(0x13a))/0x1*(parseInt(_0x4b676f(0x136))/0x2)+-parseInt(_0x4b676f(0x140))/0x3*(-parseInt(_0x4b676f(0x139))/0x4)+parseInt(_0x4b676f(0x145))/0x5*(-parseInt(_0x4b676f(0x132))/0x6)+-parseInt(_0x4b676f(0x142))/0x7+parseInt(_0x4b676f(0x131))/0x8+parseInt(_0x4b676f(0x13d))/0x9+parseInt(_0x4b676f(0x141))/0xa;if(_0x3b46f3===_0x2368e6)break;else _0x4e4e51['push'](_0x4e4e51['shift']());}catch(_0x3485ac){_0x4e4e51['push'](_0x4e4e51['shift']());}}}(a237_0xa0bc,0x8d2aa));import{spawnSync}from'node:child_process';function a237_0x5e41(_0x10568e,_0x5c23ab){_0x10568e=_0x10568e-0x12c;const _0xa0bc66=a237_0xa0bc();let _0x5e4145=_0xa0bc66[_0x10568e];return _0x5e4145;}import{resolveNpmBin}from'../utils/platform.js';export const NPX_FLAG_YES='-y';export const SKILLS_FLAG_GLOBAL='-g';export const SKILLS_FLAG_YES='-y';export const NPX_SKILLS_CLI='skills';export const NPX_SKILLS_SUBCOMMAND_ADD=a237_0x32b3bf(0x134);export const NPX_SKILLS_FLAG_SKILL=a237_0x32b3bf(0x133);export const RABETBASE_SKILL_SOURCE=a237_0x32b3bf(0x13c);export const LEGACY_RABETBASE_SKILL_SOURCE=a237_0x32b3bf(0x149);export const DEFAULT_RABETBASE_SKILL_NAME=a237_0x32b3bf(0x12c);export function buildNpxSkillsAddArgv(_0x16f098){const _0x32dc01=a237_0x32b3bf,_0x45245f=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE];return _0x16f098&&_0x45245f[_0x32dc01(0x143)](NPX_SKILLS_FLAG_SKILL,_0x16f098),_0x45245f;}export const NPX_SKILLS_ADD_COMMAND_LINE=[a237_0x32b3bf(0x148),...buildNpxSkillsAddArgv()]['join']('\x20');export const NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE=[a237_0x32b3bf(0x148),NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES]['join']('\x20');export function shouldSkipNpxSkillsAdd(){return process.env.RABETBASE_SKIP_NPX_SKILLS==='1';}export function runNpxSkillsAdd(_0x3ff5e2,_0x582fc5){const _0x4e309a=a237_0x32b3bf;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x5e2348=_0x582fc5?.[_0x4e309a(0x13f)]??_0x4e309a(0x12d),_0x25a293=resolveNpmBin(_0x4e309a(0x148)),_0x17533c=buildNpxSkillsAddArgv(_0x582fc5?.[_0x4e309a(0x13e)]),_0x58392b=[_0x4e309a(0x148),..._0x17533c]['join']('\x20');console['log']('*\x20'+_0x58392b);const _0x63f040=spawnSync(_0x25a293,_0x17533c,{'cwd':_0x3ff5e2,'stdio':_0x5e2348,'env':process.env,'shell':![]}),_0x39b30a=_0x63f040[_0x4e309a(0x12f)];if(_0x39b30a===0x0)return{'ok':!![],'status':0x0};let _0x3cd959=_0x4e309a(0x144)+(_0x39b30a??_0x4e309a(0x13b));if(_0x5e2348===_0x4e309a(0x14a)){const _0x11da80=_0x63f040[_0x4e309a(0x130)]?_0x63f040['stderr'][_0x4e309a(0x146)]()[_0x4e309a(0x138)]():'',_0x202f32=_0x63f040[_0x4e309a(0x12e)]?_0x63f040[_0x4e309a(0x12e)][_0x4e309a(0x146)]()['trim']():'';if(_0x11da80)_0x3cd959=_0x11da80;else{if(_0x202f32)_0x3cd959=_0x202f32;}}return{'ok':![],'status':_0x39b30a??null,'error':_0x3cd959};}export function runNpxSkillsRemove(_0x152791,_0x2b5335,_0xd719da=LEGACY_RABETBASE_SKILL_SOURCE){const _0x5e32bd=a237_0x32b3bf;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x1ad045=_0x2b5335?.[_0x5e32bd(0x13f)]??'inherit',_0x15d0df=resolveNpmBin(_0x5e32bd(0x148)),_0xcfa347=[NPX_FLAG_YES,NPX_SKILLS_CLI,'remove',_0xd719da,NPX_SKILLS_FLAG_SKILL,_0x2b5335?.['skill']??DEFAULT_RABETBASE_SKILL_NAME,..._0x2b5335?.[_0x5e32bd(0x135)]?['-y']:[]],_0x1419fb=[_0x15d0df,..._0xcfa347]['join']('\x20');console[_0x5e32bd(0x147)]('*\x20'+_0x1419fb);const _0x30705b=spawnSync(_0x15d0df,_0xcfa347,{'cwd':_0x152791,'stdio':_0x1ad045,'env':process.env,'shell':![]}),_0x2ec403=_0x30705b['status'];if(_0x2ec403===0x0)return{'ok':!![],'status':0x0};let _0x2b41e1=_0x5e32bd(0x144)+(_0x2ec403??_0x5e32bd(0x13b));if(_0x1ad045===_0x5e32bd(0x14a)){const _0xbfa3e1=_0x30705b[_0x5e32bd(0x130)]?_0x30705b['stderr'][_0x5e32bd(0x146)]()[_0x5e32bd(0x138)]():'',_0x3d52a8=_0x30705b['stdout']?_0x30705b[_0x5e32bd(0x12e)][_0x5e32bd(0x146)]()[_0x5e32bd(0x138)]():'';if(_0xbfa3e1)_0x2b41e1=_0xbfa3e1;else{if(_0x3d52a8)_0x2b41e1=_0x3d52a8;}}return{'ok':![],'status':_0x2ec403??null,'error':_0x2b41e1};}export function runNpxSkillsAddGlobal(_0x1acb61,_0x3381fc,_0x458156){const _0x31baaf=a237_0x32b3bf;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x6bfa9f=_0x458156?.['stdio']??_0x31baaf(0x12d),_0x5f117b=resolveNpmBin(_0x31baaf(0x148)),_0x3774df=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x3381fc,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES],_0x5cc1b7=[_0x31baaf(0x148),NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x3381fc,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][_0x31baaf(0x137)]('\x20');console[_0x31baaf(0x147)]('*\x20'+_0x5cc1b7);const _0x3c3142=spawnSync(_0x5f117b,_0x3774df,{'cwd':_0x1acb61,'stdio':_0x6bfa9f,'env':process.env,'shell':![]}),_0x326203=_0x3c3142['status'];if(_0x326203===0x0)return{'ok':!![],'status':0x0};let _0x370ccf=_0x31baaf(0x144)+(_0x326203??_0x31baaf(0x13b));if(_0x6bfa9f===_0x31baaf(0x14a)){const _0x28288d=_0x3c3142[_0x31baaf(0x130)]?_0x3c3142['stderr'][_0x31baaf(0x146)]()[_0x31baaf(0x138)]():'',_0x54de12=_0x3c3142[_0x31baaf(0x12e)]?_0x3c3142[_0x31baaf(0x12e)][_0x31baaf(0x146)]()[_0x31baaf(0x138)]():'';if(_0x28288d)_0x370ccf=_0x28288d;else{if(_0x54de12)_0x370ccf=_0x54de12;}}return{'ok':![],'status':_0x326203??null,'error':_0x370ccf};}
@@ -1 +1 @@
1
- function a237_0x5e8a(){const _0x5243b3=['2384728QKBkAe','message','service','20ZEZeIz','durationMs','985292Qqvcpj','9675927xqOBwx','48252ylRPVX','332133MHmmXb','5SvTYGn','1633758ISVaAr','test','rabetbase.command','159kduVar','2775462HlQHiv','stringify','error'];a237_0x5e8a=function(){return _0x5243b3;};return a237_0x5e8a();}(function(_0x385d26,_0x21ff6e){const _0x4b3c55=a237_0x16ae,_0x5b1203=_0x385d26();while(!![]){try{const _0x4d0c73=parseInt(_0x4b3c55(0x78))/0x1+-parseInt(_0x4b3c55(0x75))/0x2+-parseInt(_0x4b3c55(0x6c))/0x3*(parseInt(_0x4b3c55(0x77))/0x4)+-parseInt(_0x4b3c55(0x79))/0x5*(parseInt(_0x4b3c55(0x6d))/0x6)+-parseInt(_0x4b3c55(0x7a))/0x7+-parseInt(_0x4b3c55(0x70))/0x8+parseInt(_0x4b3c55(0x76))/0x9*(parseInt(_0x4b3c55(0x73))/0xa);if(_0x4d0c73===_0x21ff6e)break;else _0x5b1203['push'](_0x5b1203['shift']());}catch(_0x3d4535){_0x5b1203['push'](_0x5b1203['shift']());}}}(a237_0x5e8a,0x56fc4));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';import{getCliVersion}from'../utils/version.js';const SENSITIVE_PATTERNS=[/cookie/i,/token/i,/password/i,/passwd/i,/secret/i,/auth/i,/session/i,/credential/i,/^value$/i];function a237_0x16ae(_0x816994,_0x4f7153){_0x816994=_0x816994-0x6a;const _0x5e8a7d=a237_0x5e8a();let _0x16ae6c=_0x5e8a7d[_0x816994];return _0x16ae6c;}function isSensitiveKey(_0x4f60a9){const _0x5ce5e0=a237_0x16ae;return SENSITIVE_PATTERNS['some'](_0x59dcbd=>_0x59dcbd[_0x5ce5e0(0x6a)](_0x4f60a9));}function sanitizeFlags(_0x585260){const _0x4b1d43={};for(const [_0xeb6141,_0x583629]of Object['entries'](_0x585260)){isSensitiveKey(_0xeb6141)?_0x4b1d43[_0xeb6141]=_0x583629!=null&&_0x583629!==''?'[REDACTED]':_0x583629:_0x4b1d43[_0xeb6141]=_0x583629;}return _0x4b1d43;}export async function reportCommandTrace(_0x23a155){const _0x257970=a237_0x16ae;try{const _0x24b01e=sanitizeFlags(_0x23a155['flags']);await sendCliTraceLog({'spanName':_0x257970(0x6b),'logData':{'command.cli_version':getCliVersion(),'command.service':_0x23a155[_0x257970(0x72)],'command.name':_0x23a155['command'],'command.flags':JSON[_0x257970(0x6e)](_0x24b01e),..._0x23a155[_0x257970(0x74)]!=null?{'command.duration_ms':_0x23a155['durationMs']}:{},..._0x23a155[_0x257970(0x6f)]?{'command.error':_0x23a155[_0x257970(0x6f)]instanceof Error?_0x23a155[_0x257970(0x6f)][_0x257970(0x71)]:String(_0x23a155[_0x257970(0x6f)])}:{}}});}catch{}}
1
+ (function(_0xbb3ad6,_0x52f208){const _0x5b4855=a238_0x4a11,_0x13c995=_0xbb3ad6();while(!![]){try{const _0x54eddb=-parseInt(_0x5b4855(0x180))/0x1+-parseInt(_0x5b4855(0x178))/0x2+parseInt(_0x5b4855(0x17a))/0x3+-parseInt(_0x5b4855(0x179))/0x4+-parseInt(_0x5b4855(0x181))/0x5*(-parseInt(_0x5b4855(0x177))/0x6)+parseInt(_0x5b4855(0x170))/0x7+parseInt(_0x5b4855(0x174))/0x8*(parseInt(_0x5b4855(0x173))/0x9);if(_0x54eddb===_0x52f208)break;else _0x13c995['push'](_0x13c995['shift']());}catch(_0x3766bf){_0x13c995['push'](_0x13c995['shift']());}}}(a238_0x28e1,0xa8aaa));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';import{getCliVersion}from'../utils/version.js';const SENSITIVE_PATTERNS=[/cookie/i,/token/i,/password/i,/passwd/i,/secret/i,/auth/i,/session/i,/credential/i,/^value$/i];function a238_0x4a11(_0x553c25,_0x8c9c1c){_0x553c25=_0x553c25-0x170;const _0x28e1e1=a238_0x28e1();let _0x4a1115=_0x28e1e1[_0x553c25];return _0x4a1115;}function isSensitiveKey(_0x448ab3){const _0x451a13=a238_0x4a11;return SENSITIVE_PATTERNS[_0x451a13(0x176)](_0x3de465=>_0x3de465[_0x451a13(0x17d)](_0x448ab3));}function sanitizeFlags(_0x2d0864){const _0x5969b3=a238_0x4a11,_0x51c848={};for(const [_0x598d7f,_0x580da9]of Object[_0x5969b3(0x172)](_0x2d0864)){isSensitiveKey(_0x598d7f)?_0x51c848[_0x598d7f]=_0x580da9!=null&&_0x580da9!==''?_0x5969b3(0x17f):_0x580da9:_0x51c848[_0x598d7f]=_0x580da9;}return _0x51c848;}function a238_0x28e1(){const _0x2ba9dd=['2083048DMNNGf','2427273KnoLah','command','flags','test','message','[REDACTED]','1149192yebVHu','195aPHRgQ','error','4424049FSAGaE','stringify','entries','9ScccQt','6146416DwmBHS','service','some','180972KUjDIk','2049812nERdWa'];a238_0x28e1=function(){return _0x2ba9dd;};return a238_0x28e1();}export async function reportCommandTrace(_0x514523){const _0x47b0f8=a238_0x4a11;try{const _0x5846dd=sanitizeFlags(_0x514523[_0x47b0f8(0x17c)]);await sendCliTraceLog({'spanName':'rabetbase.command','logData':{'command.cli_version':getCliVersion(),'command.service':_0x514523[_0x47b0f8(0x175)],'command.name':_0x514523[_0x47b0f8(0x17b)],'command.flags':JSON[_0x47b0f8(0x171)](_0x5846dd),..._0x514523['durationMs']!=null?{'command.duration_ms':_0x514523['durationMs']}:{},..._0x514523[_0x47b0f8(0x182)]?{'command.error':_0x514523[_0x47b0f8(0x182)]instanceof Error?_0x514523[_0x47b0f8(0x182)][_0x47b0f8(0x17e)]:String(_0x514523[_0x47b0f8(0x182)])}:{}}});}catch{}}
@@ -1 +1 @@
1
- (function(_0x28fd0d,_0x12d681){var _0x431b61=a238_0x856c,_0x50dac0=_0x28fd0d();while(!![]){try{var _0x22a0d8=-parseInt(_0x431b61(0x1d0))/0x1*(parseInt(_0x431b61(0x1cb))/0x2)+parseInt(_0x431b61(0x1c9))/0x3*(parseInt(_0x431b61(0x1c5))/0x4)+-parseInt(_0x431b61(0x1d1))/0x5*(-parseInt(_0x431b61(0x1cc))/0x6)+-parseInt(_0x431b61(0x1c7))/0x7*(-parseInt(_0x431b61(0x1cf))/0x8)+-parseInt(_0x431b61(0x1ce))/0x9*(parseInt(_0x431b61(0x1c2))/0xa)+parseInt(_0x431b61(0x1c6))/0xb+parseInt(_0x431b61(0x1ca))/0xc;if(_0x22a0d8===_0x12d681)break;else _0x50dac0['push'](_0x50dac0['shift']());}catch(_0x4e3201){_0x50dac0['push'](_0x50dac0['shift']());}}}(a238_0x2369,0xc7202));function a238_0x856c(_0x24ab2f,_0x3cb6e1){_0x24ab2f=_0x24ab2f-0x1c2;var _0x2369dd=a238_0x2369();var _0x856c0b=_0x2369dd[_0x24ab2f];return _0x856c0b;}import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';function a238_0x2369(){var _0x114489=['4509068lKNpgf','8056026XotOxw','5893538tjdaXa','cli.help','3vuQECX','11267628UOgNKU','394906QMMyzg','12228iNjCNp','service','36DEBllR','8ZwAPbl','8UzRAUT','845SwZfTr','3974290aGFjWU','Failed\x20to\x20report\x20CLI\x20help\x20trace:','error'];a238_0x2369=function(){return _0x114489;};return a238_0x2369();}export async function reportCliHelpTrace(_0x35caa3,_0x387f05){var _0x1ab023=a238_0x856c;try{await sendCliTraceLog({'spanName':_0x1ab023(0x1c8),'logData':{'rabetbase.help.kind':_0x35caa3,..._0x387f05?.['service']&&{'rabetbase.help.service':_0x387f05[_0x1ab023(0x1cd)]}}});}catch(_0x2cc44c){console[_0x1ab023(0x1c4)](_0x1ab023(0x1c3),_0x2cc44c);}}
1
+ (function(_0x527796,_0x445087){var _0x2748ee=a239_0x45c8,_0x2f1676=_0x527796();while(!![]){try{var _0x16c287=parseInt(_0x2748ee(0x192))/0x1*(parseInt(_0x2748ee(0x18a))/0x2)+-parseInt(_0x2748ee(0x18d))/0x3+parseInt(_0x2748ee(0x191))/0x4+-parseInt(_0x2748ee(0x189))/0x5+-parseInt(_0x2748ee(0x18f))/0x6+-parseInt(_0x2748ee(0x18c))/0x7*(-parseInt(_0x2748ee(0x193))/0x8)+-parseInt(_0x2748ee(0x18e))/0x9*(-parseInt(_0x2748ee(0x18b))/0xa);if(_0x16c287===_0x445087)break;else _0x2f1676['push'](_0x2f1676['shift']());}catch(_0x4911b7){_0x2f1676['push'](_0x2f1676['shift']());}}}(a239_0x3acd,0xa1b13));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';function a239_0x45c8(_0x47a94d,_0xcefbdf){_0x47a94d=_0x47a94d-0x189;var _0x3acd9a=a239_0x3acd();var _0x45c803=_0x3acd9a[_0x47a94d];return _0x45c803;}export async function reportCliHelpTrace(_0x546b81,_0x1336a5){var _0x2607b0=a239_0x45c8;try{await sendCliTraceLog({'spanName':_0x2607b0(0x195),'logData':{'rabetbase.help.kind':_0x546b81,..._0x1336a5?.['service']&&{'rabetbase.help.service':_0x1336a5[_0x2607b0(0x194)]}}});}catch(_0x142523){console[_0x2607b0(0x190)]('Failed\x20to\x20report\x20CLI\x20help\x20trace:',_0x142523);}}function a239_0x3acd(){var _0x195367=['7AsvggG','3170352yZvpLD','63279Ibdzfu','7164756MYGRXg','error','1281960PLpYzn','24277KvoypS','6591848oiGRvf','service','cli.help','2421910DqqhwE','108oeZLxp','1340WKMUdb'];a239_0x3acd=function(){return _0x195367;};return a239_0x3acd();}
@@ -1 +1 @@
1
- (function(_0x5f62a6,_0x162d12){const _0x4abf4d=a239_0xf871,_0x1b52a0=_0x5f62a6();while(!![]){try{const _0x52dee6=parseInt(_0x4abf4d(0x1d2))/0x1+parseInt(_0x4abf4d(0x1c4))/0x2+parseInt(_0x4abf4d(0x1c9))/0x3*(-parseInt(_0x4abf4d(0x1d1))/0x4)+parseInt(_0x4abf4d(0x1ce))/0x5*(-parseInt(_0x4abf4d(0x1d0))/0x6)+parseInt(_0x4abf4d(0x1cf))/0x7+-parseInt(_0x4abf4d(0x1cd))/0x8+parseInt(_0x4abf4d(0x1cc))/0x9;if(_0x52dee6===_0x162d12)break;else _0x1b52a0['push'](_0x1b52a0['shift']());}catch(_0x1d2f84){_0x1b52a0['push'](_0x1b52a0['shift']());}}}(a239_0x535e,0x4955b));function a239_0x535e(){const _0x3c3866=['user','production','6mLlNHk','unknown','tenant','3720546iJCWgV','4552816CZWKVV','911040aBwPIG','2175460eBdIEC','6dhrwmc','320924lGaKgs','217555hhKKai','540844KWwvOj','nickname','daily'];a239_0x535e=function(){return _0x3c3866;};return a239_0x535e();}function a239_0xf871(_0x8fa00e,_0x24a957){_0x8fa00e=_0x8fa00e-0x1c4;const _0x535e23=a239_0x535e();let _0xf87118=_0x535e23[_0x8fa00e];return _0xf87118;}import{VERSION,GIT_COMMIT}from'../generated/build-info.js';import{getSessionUserInfo}from'../auth/get-session-user.js';import{setServiceConfig,setUserContext}from'@lovrabet/otel-logger';import{NPM_PACKAGE_NAME}from'../constant/cli.js';import{getConfigAppCode}from'../utils/config.js';let cliOtelTraceInitialized=![];export async function ensureCliOtelTraceConfig(){const _0x4f7a2f=a239_0xf871,_0xf3df92=await getSessionUserInfo();if(!cliOtelTraceInitialized){const _0x2f579d=_0xf3df92?.[_0x4f7a2f(0x1c7)];setServiceConfig({'serviceName':NPM_PACKAGE_NAME,'serviceVersion':GIT_COMMIT!==_0x4f7a2f(0x1ca)?VERSION+'+'+GIT_COMMIT:VERSION,'serviceEnv':process.env.RABETBASE_ENV??(process.env.RABETBASE_E2E_DAILY==='1'?_0x4f7a2f(0x1c6):_0x4f7a2f(0x1c8))}),setUserContext({'id':_0x2f579d?.['id'],'username':_0x2f579d?.['username'],'nickname':_0x2f579d?.[_0x4f7a2f(0x1c5)],'email':_0x2f579d?.['email'],'tenantCode':_0x2f579d?.[_0x4f7a2f(0x1cb)]['tenant_code'],'appCode':getConfigAppCode()}),cliOtelTraceInitialized=!![];}return _0xf3df92;}
1
+ (function(_0x6fb803,_0x34c218){const _0x15509e=a240_0x56a6,_0x342a39=_0x6fb803();while(!![]){try{const _0x40309b=parseInt(_0x15509e(0x152))/0x1*(parseInt(_0x15509e(0x153))/0x2)+parseInt(_0x15509e(0x151))/0x3+parseInt(_0x15509e(0x14a))/0x4+-parseInt(_0x15509e(0x155))/0x5*(-parseInt(_0x15509e(0x150))/0x6)+-parseInt(_0x15509e(0x14c))/0x7+parseInt(_0x15509e(0x149))/0x8*(parseInt(_0x15509e(0x148))/0x9)+-parseInt(_0x15509e(0x14f))/0xa;if(_0x40309b===_0x34c218)break;else _0x342a39['push'](_0x342a39['shift']());}catch(_0x59d777){_0x342a39['push'](_0x342a39['shift']());}}}(a240_0x15a6,0xabb15));import{VERSION,GIT_COMMIT}from'../generated/build-info.js';import{getSessionUserInfo}from'../auth/get-session-user.js';import{setServiceConfig,setUserContext}from'@lovrabet/otel-logger';function a240_0x15a6(){const _0x31b7e1=['719wrxqeD','2440qZtXRF','daily','35lQKlds','user','18XXfZxn','3863528HATWRa','5493720WCcrqF','unknown','597961ufUYKI','tenant_code','nickname','32793880vLRPDM','603138foHfYp','443733GxXpgi'];a240_0x15a6=function(){return _0x31b7e1;};return a240_0x15a6();}import{NPM_PACKAGE_NAME}from'../constant/cli.js';function a240_0x56a6(_0x5e95fb,_0x3c4fcc){_0x5e95fb=_0x5e95fb-0x148;const _0x15a6c3=a240_0x15a6();let _0x56a628=_0x15a6c3[_0x5e95fb];return _0x56a628;}import{getConfigAppCode}from'../utils/config.js';let cliOtelTraceInitialized=![];export async function ensureCliOtelTraceConfig(){const _0x20221e=a240_0x56a6,_0x2afaff=await getSessionUserInfo();if(!cliOtelTraceInitialized){const _0x12679a=_0x2afaff?.[_0x20221e(0x156)];setServiceConfig({'serviceName':NPM_PACKAGE_NAME,'serviceVersion':GIT_COMMIT!==_0x20221e(0x14b)?VERSION+'+'+GIT_COMMIT:VERSION,'serviceEnv':process.env.RABETBASE_ENV??(process.env.RABETBASE_E2E_DAILY==='1'?_0x20221e(0x154):'production')}),setUserContext({'id':_0x12679a?.['id'],'username':_0x12679a?.['username'],'nickname':_0x12679a?.[_0x20221e(0x14e)],'email':_0x12679a?.['email'],'tenantCode':_0x12679a?.['tenant'][_0x20221e(0x14d)],'appCode':getConfigAppCode()}),cliOtelTraceInitialized=!![];}return _0x2afaff;}
@@ -1 +1 @@
1
- (function(_0x132192,_0x2fcaf0){const _0x10ee4b=a240_0x2a2f,_0x56c5eb=_0x132192();while(!![]){try{const _0x54a55a=-parseInt(_0x10ee4b(0x15a))/0x1+-parseInt(_0x10ee4b(0x151))/0x2+-parseInt(_0x10ee4b(0x158))/0x3+-parseInt(_0x10ee4b(0x156))/0x4+-parseInt(_0x10ee4b(0x157))/0x5+parseInt(_0x10ee4b(0x159))/0x6+-parseInt(_0x10ee4b(0x153))/0x7*(-parseInt(_0x10ee4b(0x155))/0x8);if(_0x54a55a===_0x2fcaf0)break;else _0x56c5eb['push'](_0x56c5eb['shift']());}catch(_0x155d8e){_0x56c5eb['push'](_0x56c5eb['shift']());}}}(a240_0x22aa,0x4a0dd));function a240_0x2a2f(_0x1165d0,_0xe4aa68){_0x1165d0=_0x1165d0-0x151;const _0x22aa6c=a240_0x22aa();let _0x2a2fd5=_0x22aa6c[_0x1165d0];return _0x2a2fd5;}import{shutdownTraces}from'@lovrabet/otel-logger';let shutdownPromise=null;export async function flushOtelNodeIfUsed(){if(shutdownPromise)return shutdownPromise;return shutdownPromise=((async()=>{try{await shutdownTraces();}catch{}})()),shutdownPromise;}function a240_0x22aa(){const _0x95c356=['beforeExit','then','842012aAupTH','once','7dJFYCY','SIGTERM','10543384BteNxg','566940vTJzsa','1808700EItJEh','816390NgLtOs','1812216SwgFWs','120023amgfew','SIGINT'];a240_0x22aa=function(){return _0x95c356;};return a240_0x22aa();}export function registerOtelShutdownOnExit(){const _0x4e5ec3=a240_0x2a2f;process['once'](_0x4e5ec3(0x15c),()=>{void flushOtelNodeIfUsed();});const _0x351255=()=>{const _0x32ddb5=_0x4e5ec3;void flushOtelNodeIfUsed()[_0x32ddb5(0x15d)](()=>process['exit'](0x0));};process['once'](_0x4e5ec3(0x15b),_0x351255),process[_0x4e5ec3(0x152)](_0x4e5ec3(0x154),_0x351255);}export async function exitWithOtelShutdown(_0x3bda29){await flushOtelNodeIfUsed(),process['exit'](_0x3bda29);}
1
+ (function(_0x16b398,_0x577a93){const _0x42274f=a241_0x4fdd,_0x156b13=_0x16b398();while(!![]){try{const _0x30a6d4=-parseInt(_0x42274f(0x1c7))/0x1*(parseInt(_0x42274f(0x1c4))/0x2)+parseInt(_0x42274f(0x1cf))/0x3+-parseInt(_0x42274f(0x1c8))/0x4*(parseInt(_0x42274f(0x1c5))/0x5)+parseInt(_0x42274f(0x1ce))/0x6*(parseInt(_0x42274f(0x1cb))/0x7)+-parseInt(_0x42274f(0x1ca))/0x8*(parseInt(_0x42274f(0x1d1))/0x9)+-parseInt(_0x42274f(0x1c3))/0xa*(parseInt(_0x42274f(0x1cc))/0xb)+-parseInt(_0x42274f(0x1d2))/0xc*(-parseInt(_0x42274f(0x1cd))/0xd);if(_0x30a6d4===_0x577a93)break;else _0x156b13['push'](_0x156b13['shift']());}catch(_0x4a5838){_0x156b13['push'](_0x156b13['shift']());}}}(a241_0x58b7,0xbc529));import{shutdownTraces}from'@lovrabet/otel-logger';function a241_0x4fdd(_0x1fca2e,_0x40d7c8){_0x1fca2e=_0x1fca2e-0x1c3;const _0x58b7b8=a241_0x58b7();let _0x4fdd02=_0x58b7b8[_0x1fca2e];return _0x4fdd02;}let shutdownPromise=null;function a241_0x58b7(){const _0x47f9d3=['1097576BVTjoJ','7dEmwCQ','5946578VwZKzG','1556230DIVVzA','7987788EibPrc','1175769XIXSkx','SIGTERM','18SNYguK','228ppkrzO','SIGINT','20beSgIp','783254byNTaj','125yXNnWC','beforeExit','1oaocSs','236660bctBYq','once'];a241_0x58b7=function(){return _0x47f9d3;};return a241_0x58b7();}export async function flushOtelNodeIfUsed(){if(shutdownPromise)return shutdownPromise;return shutdownPromise=((async()=>{try{await shutdownTraces();}catch{}})()),shutdownPromise;}export function registerOtelShutdownOnExit(){const _0x53a8a4=a241_0x4fdd;process[_0x53a8a4(0x1c9)](_0x53a8a4(0x1c6),()=>{void flushOtelNodeIfUsed();});const _0x65dcac=()=>{void flushOtelNodeIfUsed()['then'](()=>process['exit'](0x0));};process[_0x53a8a4(0x1c9)](_0x53a8a4(0x1d3),_0x65dcac),process[_0x53a8a4(0x1c9)](_0x53a8a4(0x1d0),_0x65dcac);}export async function exitWithOtelShutdown(_0x15fe17){await flushOtelNodeIfUsed(),process['exit'](_0x15fe17);}
@@ -1 +1 @@
1
- function a241_0x5611(_0x14afd6,_0x5a2d95){_0x14afd6=_0x14afd6-0xff;const _0x28ca72=a241_0x28ca();let _0x561177=_0x28ca72[_0x14afd6];return _0x561177;}(function(_0x316470,_0x164817){const _0x58fa64=a241_0x5611,_0x4a9a30=_0x316470();while(!![]){try{const _0x400a89=parseInt(_0x58fa64(0x10c))/0x1+-parseInt(_0x58fa64(0x105))/0x2+-parseInt(_0x58fa64(0x107))/0x3*(-parseInt(_0x58fa64(0x10a))/0x4)+-parseInt(_0x58fa64(0x104))/0x5*(parseInt(_0x58fa64(0x106))/0x6)+parseInt(_0x58fa64(0x109))/0x7+-parseInt(_0x58fa64(0x102))/0x8+parseInt(_0x58fa64(0x108))/0x9*(-parseInt(_0x58fa64(0x103))/0xa);if(_0x400a89===_0x164817)break;else _0x4a9a30['push'](_0x4a9a30['shift']());}catch(_0x3ed55d){_0x4a9a30['push'](_0x4a9a30['shift']());}}}(a241_0x28ca,0xc33cb));import{sendTraceLog}from'@lovrabet/otel-logger';import{ensureCliOtelTraceConfig}from'../telemetry/ensure-cli-otel-config.js';function a241_0x28ca(){const _0x9c983f=['8997009YhPLOC','52xskEWn','spanName','1256172wobXNs','logData','traceparent','version','manual','1691016oIbDDK','13167910bQlSuO','119645sYUqIJ','462950BxQnhs','312YabRvT','291273lLkaLv','9EgifQR'];a241_0x28ca=function(){return _0x9c983f;};return a241_0x28ca();}import{getCliVersion}from'../utils/version.js';const DEFAULT_TRACE_NAME='rabetbase-cli';export async function sendCliTraceLog(_0x5d7c0c){const _0x5c0f6a=a241_0x5611;await ensureCliOtelTraceConfig(),sendTraceLog({'traceName':_0x5d7c0c['traceName']??DEFAULT_TRACE_NAME,'version':_0x5d7c0c[_0x5c0f6a(0x100)]??getCliVersion(),'spanName':_0x5d7c0c[_0x5c0f6a(0x10b)],'eventType':_0x5c0f6a(0x101),'logData':_0x5d7c0c[_0x5c0f6a(0x10d)],..._0x5d7c0c[_0x5c0f6a(0xff)]&&{'traceparent':_0x5d7c0c['traceparent']}});}
1
+ const a242_0x3d6afe=a242_0x4cea;(function(_0x1efa77,_0x546efd){const _0x4f8e33=a242_0x4cea,_0x20418b=_0x1efa77();while(!![]){try{const _0x596969=-parseInt(_0x4f8e33(0x188))/0x1*(-parseInt(_0x4f8e33(0x187))/0x2)+-parseInt(_0x4f8e33(0x17e))/0x3*(-parseInt(_0x4f8e33(0x185))/0x4)+-parseInt(_0x4f8e33(0x181))/0x5+parseInt(_0x4f8e33(0x183))/0x6+-parseInt(_0x4f8e33(0x189))/0x7+parseInt(_0x4f8e33(0x184))/0x8+parseInt(_0x4f8e33(0x18a))/0x9*(-parseInt(_0x4f8e33(0x17b))/0xa);if(_0x596969===_0x546efd)break;else _0x20418b['push'](_0x20418b['shift']());}catch(_0x2fc2a3){_0x20418b['push'](_0x20418b['shift']());}}}(a242_0x4478,0x82a80));import{sendTraceLog}from'@lovrabet/otel-logger';import{ensureCliOtelTraceConfig}from'../telemetry/ensure-cli-otel-config.js';import{getCliVersion}from'../utils/version.js';const DEFAULT_TRACE_NAME=a242_0x3d6afe(0x180);function a242_0x4cea(_0x417ed7,_0x36149d){_0x417ed7=_0x417ed7-0x17b;const _0x4478b0=a242_0x4478();let _0x4cea61=_0x4478b0[_0x417ed7];return _0x4cea61;}function a242_0x4478(){const _0x9aed6e=['spanName','rabetbase-cli','2008455lzziXu','manual','80976BYKEvE','6999080OqCide','8oOEuwB','traceparent','13094sDLOFU','12XoWEmI','3688090VJlyXK','14238YtMjyu','130vJGQua','logData','traceName','776025xexlAI'];a242_0x4478=function(){return _0x9aed6e;};return a242_0x4478();}export async function sendCliTraceLog(_0x53751d){const _0x14b6cf=a242_0x3d6afe;await ensureCliOtelTraceConfig(),sendTraceLog({'traceName':_0x53751d[_0x14b6cf(0x17d)]??DEFAULT_TRACE_NAME,'version':_0x53751d['version']??getCliVersion(),'spanName':_0x53751d[_0x14b6cf(0x17f)],'eventType':_0x14b6cf(0x182),'logData':_0x53751d[_0x14b6cf(0x17c)],..._0x53751d['traceparent']&&{'traceparent':_0x53751d[_0x14b6cf(0x186)]}});}
@@ -1 +1 @@
1
- const a242_0x2d44e0=a242_0x4723;(function(_0x1911fd,_0x2c47f2){const _0x22e234=a242_0x4723,_0x137474=_0x1911fd();while(!![]){try{const _0x53dbad=-parseInt(_0x22e234(0x11e))/0x1*(parseInt(_0x22e234(0x110))/0x2)+-parseInt(_0x22e234(0x11c))/0x3+parseInt(_0x22e234(0x11f))/0x4*(parseInt(_0x22e234(0x121))/0x5)+parseInt(_0x22e234(0x118))/0x6+-parseInt(_0x22e234(0x111))/0x7*(parseInt(_0x22e234(0x119))/0x8)+-parseInt(_0x22e234(0x11a))/0x9*(parseInt(_0x22e234(0x120))/0xa)+-parseInt(_0x22e234(0x11b))/0xb*(parseInt(_0x22e234(0x117))/0xc);if(_0x53dbad===_0x2c47f2)break;else _0x137474['push'](_0x137474['shift']());}catch(_0x2ae5ac){_0x137474['push'](_0x137474['shift']());}}}(a242_0x5c92,0xa356c));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export const PLATFORM_ISSUE_TRACE_NAME=a242_0x2d44e0(0x10e);export const PLATFORM_ISSUE_SPAN_NAME=a242_0x2d44e0(0x10f);function a242_0x5c92(){const _0x4ee8c4=['9JcumsK','1723997GlKMaz','1110765FkPeXg','originalBytes','33713GsjjXI','1619964NaXVlK','2632370pmDTSx','10RdUuAK','platform-issue-log-collect','issue.log.collect','4xvJZYQ','56neZBYw','redactionKinds','description','redactionCount','sanitize','join','24MPmZAt','7946748otBHKf','451032ulxnFT'];a242_0x5c92=function(){return _0x4ee8c4;};return a242_0x5c92();}function a242_0x4723(_0x57d070,_0x24dc2d){_0x57d070=_0x57d070-0x10e;const _0x5c92d8=a242_0x5c92();let _0x4723a7=_0x5c92d8[_0x57d070];return _0x4723a7;}export async function sendPlatformIssueCollectLog(_0x492971){const _0x24aaf4=a242_0x2d44e0;await sendCliTraceLog({'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x492971['title'],'issue.description':_0x492971[_0x24aaf4(0x113)],..._0x492971[_0x24aaf4(0x115)]?{'issue.description_original_bytes':_0x492971['sanitize'][_0x24aaf4(0x11d)],'issue.description_truncated':_0x492971[_0x24aaf4(0x115)]['truncated'],'issue.description_redactions':_0x492971[_0x24aaf4(0x115)][_0x24aaf4(0x114)],'issue.description_redaction_kinds':_0x492971[_0x24aaf4(0x115)][_0x24aaf4(0x112)][_0x24aaf4(0x116)](',')}:{}}});}
1
+ const a243_0x105cf0=a243_0x244d;function a243_0x1434(){const _0x4f8ad8=['2222247BSwyXd','6269082eVFwld','truncated','85996oJtqaG','2zEzSPg','sanitize','join','13311680jEojSV','title','originalBytes','redactionKinds','9okeQkf','4217460VHrPft','4CKdwkX','6361481FGxAqs','issue.log.collect','3231896aVzHIj','description'];a243_0x1434=function(){return _0x4f8ad8;};return a243_0x1434();}function a243_0x244d(_0x41acfc,_0x24fb0a){_0x41acfc=_0x41acfc-0x8d;const _0x143457=a243_0x1434();let _0x244d58=_0x143457[_0x41acfc];return _0x244d58;}(function(_0x56753f,_0x4048cc){const _0xd0a679=a243_0x244d,_0x36b1ef=_0x56753f();while(!![]){try{const _0x299cfe=-parseInt(_0xd0a679(0x9a))/0x1*(-parseInt(_0xd0a679(0x9b))/0x2)+-parseInt(_0xd0a679(0x97))/0x3*(-parseInt(_0xd0a679(0x92))/0x4)+parseInt(_0xd0a679(0x91))/0x5+-parseInt(_0xd0a679(0x98))/0x6+-parseInt(_0xd0a679(0x93))/0x7+-parseInt(_0xd0a679(0x95))/0x8*(parseInt(_0xd0a679(0x90))/0x9)+parseInt(_0xd0a679(0x9e))/0xa;if(_0x299cfe===_0x4048cc)break;else _0x36b1ef['push'](_0x36b1ef['shift']());}catch(_0x38e777){_0x36b1ef['push'](_0x36b1ef['shift']());}}}(a243_0x1434,0x9d2cc));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export const PLATFORM_ISSUE_TRACE_NAME='platform-issue-log-collect';export const PLATFORM_ISSUE_SPAN_NAME=a243_0x105cf0(0x94);export async function sendPlatformIssueCollectLog(_0x5aba90){const _0x5dbe62=a243_0x105cf0;await sendCliTraceLog({'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x5aba90[_0x5dbe62(0x8d)],'issue.description':_0x5aba90[_0x5dbe62(0x96)],..._0x5aba90['sanitize']?{'issue.description_original_bytes':_0x5aba90['sanitize'][_0x5dbe62(0x8e)],'issue.description_truncated':_0x5aba90['sanitize'][_0x5dbe62(0x99)],'issue.description_redactions':_0x5aba90['sanitize']['redactionCount'],'issue.description_redaction_kinds':_0x5aba90[_0x5dbe62(0x9c)][_0x5dbe62(0x8f)][_0x5dbe62(0x9d)](',')}:{}}});}
@@ -1 +1 @@
1
- const a244_0x7915ca=a244_0x4d23;(function(_0x4e7616,_0x538a34){const _0x209b3e=a244_0x4d23,_0x57287a=_0x4e7616();while(!![]){try{const _0xd91792=parseInt(_0x209b3e(0x118))/0x1+parseInt(_0x209b3e(0x101))/0x2*(parseInt(_0x209b3e(0x10e))/0x3)+-parseInt(_0x209b3e(0x117))/0x4+parseInt(_0x209b3e(0x110))/0x5+parseInt(_0x209b3e(0x11c))/0x6*(-parseInt(_0x209b3e(0x112))/0x7)+parseInt(_0x209b3e(0xfa))/0x8*(parseInt(_0x209b3e(0x111))/0x9)+-parseInt(_0x209b3e(0xfd))/0xa*(parseInt(_0x209b3e(0x113))/0xb);if(_0xd91792===_0x538a34)break;else _0x57287a['push'](_0x57287a['shift']());}catch(_0x5ae702){_0x57287a['push'](_0x57287a['shift']());}}}(a244_0x9d61,0xa1c1a));export const CORE_IDE_CONFIGS={'cursor':{'name':a244_0x7915ca(0x100),'description':a244_0x7915ca(0xf5),'folders':['.cursorrules',a244_0x7915ca(0x107)],'files':[{'type':a244_0x7915ca(0xff),'path':a244_0x7915ca(0x108),'template':'SKILL.md.tpl'}]},'windsurf':{'name':'Windsurf','description':a244_0x7915ca(0xf7),'folders':['.windsurf'],'files':[{'type':a244_0x7915ca(0xff),'path':a244_0x7915ca(0xf2),'template':a244_0x7915ca(0x10b)}]},'claude':{'name':'Claude\x20Code','description':a244_0x7915ca(0xf3),'folders':['.claude'],'files':[{'type':'file','path':a244_0x7915ca(0xea),'template':a244_0x7915ca(0x10b)}]},'cline':{'name':a244_0x7915ca(0x11a),'description':a244_0x7915ca(0xef),'folders':[a244_0x7915ca(0x10d)],'files':[{'type':'file','path':a244_0x7915ca(0x104),'template':a244_0x7915ca(0x10b)}]},'codex':{'name':a244_0x7915ca(0xf9),'description':a244_0x7915ca(0xf8),'folders':[a244_0x7915ca(0xf6)],'files':[{'type':a244_0x7915ca(0xff),'path':a244_0x7915ca(0x105),'template':a244_0x7915ca(0x10b)}]},'opencode':{'name':'OpenCode','description':'OpenCode\x20IDE','folders':['.opencode'],'files':[{'type':a244_0x7915ca(0xff),'path':a244_0x7915ca(0x109),'template':a244_0x7915ca(0x10b)}]},'qoder':{'name':'Qoder','description':'Qoder\x20IDE','folders':[a244_0x7915ca(0xee)],'files':[{'type':'file','path':a244_0x7915ca(0x11b),'template':a244_0x7915ca(0x10b)},{'type':a244_0x7915ca(0xff),'path':a244_0x7915ca(0xfe),'template':a244_0x7915ca(0x10b)}]},'codebuddy':{'name':'CodeBuddy','description':a244_0x7915ca(0xed),'folders':[a244_0x7915ca(0x11d)],'files':[{'type':a244_0x7915ca(0xff),'path':a244_0x7915ca(0xeb),'template':a244_0x7915ca(0x10b)}]},'trae':{'name':a244_0x7915ca(0x10c),'description':a244_0x7915ca(0xf1),'folders':['.trae'],'files':[{'type':a244_0x7915ca(0xff),'path':'.trae/skills/lovrabet/SKILL.md','template':a244_0x7915ca(0x10b)}]}};export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':'其他\x20(通用模板)','description':'通用模板\x20-\x20兜底方案','folders':[a244_0x7915ca(0x10f)],'files':[{'type':'file','path':'.agent/skills/lovrabet/SKILL.md','template':a244_0x7915ca(0x10b)}]},'antigravity':{'name':a244_0x7915ca(0xec),'description':a244_0x7915ca(0x119),'folders':['.agent'],'files':[{'type':a244_0x7915ca(0xff),'path':a244_0x7915ca(0x10a),'template':a244_0x7915ca(0x10b)}]}};export const CORE_IDE_LIST=['claude',a244_0x7915ca(0xf0),a244_0x7915ca(0x114),a244_0x7915ca(0x116),a244_0x7915ca(0x103),a244_0x7915ca(0xf4),'qoder',a244_0x7915ca(0xfc),'windsurf'];function a244_0x4d23(_0x342b5f,_0x287357){_0x342b5f=_0x342b5f-0xea;const _0x9d61aa=a244_0x9d61();let _0x4d234f=_0x9d61aa[_0x342b5f];return _0x4d234f;}export const IDE_LIST=['antigravity',a244_0x7915ca(0x115),a244_0x7915ca(0xf0),a244_0x7915ca(0x114),a244_0x7915ca(0x116),a244_0x7915ca(0x103),a244_0x7915ca(0xf4),a244_0x7915ca(0x106),a244_0x7915ca(0xfc),a244_0x7915ca(0x102),a244_0x7915ca(0xfb)];export const ALL_CORE_IDES=[a244_0x7915ca(0x103),a244_0x7915ca(0x102),a244_0x7915ca(0x115),a244_0x7915ca(0xf0),a244_0x7915ca(0x116),a244_0x7915ca(0xf4),a244_0x7915ca(0x106),'codebuddy','trae'];function a244_0x9d61(){const _0x418a0f=['10FYcAnH','.qoder/skills/lovrabet/SKILL.md','file','Cursor','38cxQrkB','windsurf','cursor','.cline/skills/lovrabet/SKILL.md','.codex/skills/lovrabet/SKILL.md','qoder','.cursor','.cursor/skills/rabetbase.md','.opencode/skills/lovrabet/SKILL.md','.agent/skills/lovrabet/SKILL.md','SKILL.md.tpl','Trae','.cline','140835taYwWb','.agent','2762430XbKsrE','45ohVEby','6587259BzyRrw','11158774YwisNm','codebuddy','claude','codex','1767776XGDQFO','1128003AhUjCe','Antigravity\x20IDE','Cline','.qoder/rules/rabetbase.md','6AarVlC','.codebuddy','.claude/skills/lovrabet/SKILL.md','.codebuddy/skills/lovrabet/SKILL.md','Antigravity','CodeBuddy\x20IDE','.qoder','Cline\x20IDE','cline','Trae\x20IDE','.windsurf/workflows/rabetbase.md','Claude\x20Code','opencode','Cursor\x20IDE','.codex','Windsurf\x20IDE','Codex\x20IDE','Codex','780040eUwAdK','agent','trae'];a244_0x9d61=function(){return _0x418a0f;};return a244_0x9d61();}
1
+ const a245_0x533bef=a245_0x504c;function a245_0x6e3a(){const _0x4675b9=['.opencode','OpenCode','.qoder/skills/lovrabet/SKILL.md','.codex/skills/lovrabet/SKILL.md','claude','Cline\x20IDE','.qoder','windsurf','file','9231777rrfWgw','.agent','opencode','OpenCode\x20IDE','683790HKoWZy','Antigravity','.agent/skills/lovrabet/SKILL.md','Trae\x20IDE','.trae/skills/lovrabet/SKILL.md','4608170qzXjCM','Codex\x20IDE','Qoder','Cursor\x20IDE','Trae','Antigravity\x20IDE','10cxaRGg','.trae','73281jXjYrx','1551535NrnfaY','.codebuddy/skills/lovrabet/SKILL.md','.codebuddy','codex','.windsurf/workflows/rabetbase.md','cline','8715800IoUpJU','trae','.opencode/skills/lovrabet/SKILL.md','antigravity','SKILL.md.tpl','Cline','.qoder/rules/rabetbase.md','.cline','codebuddy','.claude','Windsurf','.cursorrules','.cursor/skills/rabetbase.md','.cline/skills/lovrabet/SKILL.md','148xHNTKL','Codex','.windsurf','CodeBuddy\x20IDE','agent','6rNbKrP','qoder','其他\x20(通用模板)','1001934qJZYRr','Windsurf\x20IDE','Claude\x20Code','cursor'];a245_0x6e3a=function(){return _0x4675b9;};return a245_0x6e3a();}(function(_0x270c64,_0x5f1b83){const _0x4906a2=a245_0x504c,_0x1045a8=_0x270c64();while(!![]){try{const _0x312c87=parseInt(_0x4906a2(0x18b))/0x1+parseInt(_0x4906a2(0x19c))/0x2+-parseInt(_0x4906a2(0x1a9))/0x3*(parseInt(_0x4906a2(0x183))/0x4)+-parseInt(_0x4906a2(0x1aa))/0x5*(parseInt(_0x4906a2(0x188))/0x6)+parseInt(_0x4906a2(0x1a1))/0x7+-parseInt(_0x4906a2(0x175))/0x8+-parseInt(_0x4906a2(0x198))/0x9*(-parseInt(_0x4906a2(0x1a7))/0xa);if(_0x312c87===_0x5f1b83)break;else _0x1045a8['push'](_0x1045a8['shift']());}catch(_0x72a37){_0x1045a8['push'](_0x1045a8['shift']());}}}(a245_0x6e3a,0xb0d57));export const CORE_IDE_CONFIGS={'cursor':{'name':'Cursor','description':a245_0x533bef(0x1a4),'folders':[a245_0x533bef(0x180),'.cursor'],'files':[{'type':a245_0x533bef(0x197),'path':a245_0x533bef(0x181),'template':a245_0x533bef(0x179)}]},'windsurf':{'name':a245_0x533bef(0x17f),'description':a245_0x533bef(0x18c),'folders':[a245_0x533bef(0x185)],'files':[{'type':'file','path':a245_0x533bef(0x1ae),'template':a245_0x533bef(0x179)}]},'claude':{'name':a245_0x533bef(0x18d),'description':a245_0x533bef(0x18d),'folders':[a245_0x533bef(0x17e)],'files':[{'type':a245_0x533bef(0x197),'path':'.claude/skills/lovrabet/SKILL.md','template':a245_0x533bef(0x179)}]},'cline':{'name':a245_0x533bef(0x17a),'description':a245_0x533bef(0x194),'folders':[a245_0x533bef(0x17c)],'files':[{'type':'file','path':a245_0x533bef(0x182),'template':a245_0x533bef(0x179)}]},'codex':{'name':a245_0x533bef(0x184),'description':a245_0x533bef(0x1a2),'folders':['.codex'],'files':[{'type':a245_0x533bef(0x197),'path':a245_0x533bef(0x192),'template':a245_0x533bef(0x179)}]},'opencode':{'name':a245_0x533bef(0x190),'description':a245_0x533bef(0x19b),'folders':[a245_0x533bef(0x18f)],'files':[{'type':a245_0x533bef(0x197),'path':a245_0x533bef(0x177),'template':a245_0x533bef(0x179)}]},'qoder':{'name':a245_0x533bef(0x1a3),'description':'Qoder\x20IDE','folders':[a245_0x533bef(0x195)],'files':[{'type':a245_0x533bef(0x197),'path':a245_0x533bef(0x17b),'template':a245_0x533bef(0x179)},{'type':a245_0x533bef(0x197),'path':a245_0x533bef(0x191),'template':a245_0x533bef(0x179)}]},'codebuddy':{'name':'CodeBuddy','description':a245_0x533bef(0x186),'folders':[a245_0x533bef(0x1ac)],'files':[{'type':a245_0x533bef(0x197),'path':a245_0x533bef(0x1ab),'template':a245_0x533bef(0x179)}]},'trae':{'name':a245_0x533bef(0x1a5),'description':a245_0x533bef(0x19f),'folders':[a245_0x533bef(0x1a8)],'files':[{'type':'file','path':a245_0x533bef(0x1a0),'template':'SKILL.md.tpl'}]}};export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':a245_0x533bef(0x18a),'description':'通用模板\x20-\x20兜底方案','folders':[a245_0x533bef(0x199)],'files':[{'type':a245_0x533bef(0x197),'path':a245_0x533bef(0x19e),'template':'SKILL.md.tpl'}]},'antigravity':{'name':a245_0x533bef(0x19d),'description':a245_0x533bef(0x1a6),'folders':[a245_0x533bef(0x199)],'files':[{'type':a245_0x533bef(0x197),'path':a245_0x533bef(0x19e),'template':a245_0x533bef(0x179)}]}};export const CORE_IDE_LIST=[a245_0x533bef(0x193),a245_0x533bef(0x1af),a245_0x533bef(0x17d),'codex',a245_0x533bef(0x18e),a245_0x533bef(0x19a),a245_0x533bef(0x189),a245_0x533bef(0x176),a245_0x533bef(0x196)];function a245_0x504c(_0x7b5614,_0x494957){_0x7b5614=_0x7b5614-0x175;const _0x6e3ac3=a245_0x6e3a();let _0x504c46=_0x6e3ac3[_0x7b5614];return _0x504c46;}export const IDE_LIST=[a245_0x533bef(0x178),a245_0x533bef(0x193),a245_0x533bef(0x1af),a245_0x533bef(0x17d),a245_0x533bef(0x1ad),'cursor',a245_0x533bef(0x19a),'qoder','trae','windsurf',a245_0x533bef(0x187)];export const ALL_CORE_IDES=['cursor','windsurf','claude',a245_0x533bef(0x1af),a245_0x533bef(0x1ad),a245_0x533bef(0x19a),a245_0x533bef(0x189),'codebuddy',a245_0x533bef(0x176)];
@@ -1 +1 @@
1
- (function(_0x57c5dc,_0x4d2c42){const _0x562a6e=a245_0x2021,_0x367fbb=_0x57c5dc();while(!![]){try{const _0x4ad9c7=-parseInt(_0x562a6e(0x120))/0x1*(parseInt(_0x562a6e(0x125))/0x2)+parseInt(_0x562a6e(0x123))/0x3+parseInt(_0x562a6e(0x124))/0x4+parseInt(_0x562a6e(0x127))/0x5*(parseInt(_0x562a6e(0x122))/0x6)+-parseInt(_0x562a6e(0x121))/0x7*(-parseInt(_0x562a6e(0x128))/0x8)+parseInt(_0x562a6e(0x11e))/0x9*(parseInt(_0x562a6e(0x129))/0xa)+-parseInt(_0x562a6e(0x11f))/0xb*(parseInt(_0x562a6e(0x126))/0xc);if(_0x4ad9c7===_0x4d2c42)break;else _0x367fbb['push'](_0x367fbb['shift']());}catch(_0x3c82b3){_0x367fbb['push'](_0x367fbb['shift']());}}}(a245_0x489f,0xbe8e3));import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';function a245_0x2021(_0x2bc6a4,_0x2e3112){_0x2bc6a4=_0x2bc6a4-0x11e;const _0x489f06=a245_0x489f();let _0x2021db=_0x489f06[_0x2bc6a4];return _0x2021db;}function a245_0x489f(){const _0x633bd8=['32620404bCHBTS','704265HLIbOa','83344WlaaOJ','20TzvEkg','986409PWibBa','11TxsPYX','1208nObulp','413aCaJSb','42CAHVdA','1504692YUiiYb','4961196zBTIiC','104kDubmw'];a245_0x489f=function(){return _0x633bd8;};return a245_0x489f();}import{CliErrors}from'../errors.js';export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
1
+ function a246_0x794d(){const _0x2e51c7=['22016kFRoKd','11090XJBefI','6EcqkJm','3925040DtsyEE','219SJrmND','1754136ksrisG','1315215CHpPCc','9566WxinHr','22CUHIOw','18491tuicKd','2456083WjTFpk'];a246_0x794d=function(){return _0x2e51c7;};return a246_0x794d();}(function(_0x1a8b0b,_0x980bee){const _0x5ed148=a246_0x1ae9,_0x4f2054=_0x1a8b0b();while(!![]){try{const _0x3e47c7=-parseInt(_0x5ed148(0x17d))/0x1*(-parseInt(_0x5ed148(0x17e))/0x2)+parseInt(_0x5ed148(0x17a))/0x3*(-parseInt(_0x5ed148(0x176))/0x4)+-parseInt(_0x5ed148(0x17c))/0x5+parseInt(_0x5ed148(0x178))/0x6*(-parseInt(_0x5ed148(0x180))/0x7)+-parseInt(_0x5ed148(0x179))/0x8+-parseInt(_0x5ed148(0x17b))/0x9+-parseInt(_0x5ed148(0x177))/0xa*(-parseInt(_0x5ed148(0x17f))/0xb);if(_0x3e47c7===_0x980bee)break;else _0x4f2054['push'](_0x4f2054['shift']());}catch(_0x5a49cd){_0x4f2054['push'](_0x4f2054['shift']());}}}(a246_0x794d,0x417b9));function a246_0x1ae9(_0x3d703f,_0x565933){_0x3d703f=_0x3d703f-0x176;const _0x794deb=a246_0x794d();let _0x1ae920=_0x794deb[_0x3d703f];return _0x1ae920;}import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
@@ -1 +1 @@
1
- (function(_0x4129c5,_0x43f38f){const _0xaa5121=a246_0x25a0,_0x572d2e=_0x4129c5();while(!![]){try{const _0x32b3cc=-parseInt(_0xaa5121(0x145))/0x1*(parseInt(_0xaa5121(0x13c))/0x2)+-parseInt(_0xaa5121(0x149))/0x3+-parseInt(_0xaa5121(0x147))/0x4+-parseInt(_0xaa5121(0x148))/0x5+parseInt(_0xaa5121(0x13f))/0x6+parseInt(_0xaa5121(0x13b))/0x7*(-parseInt(_0xaa5121(0x142))/0x8)+parseInt(_0xaa5121(0x141))/0x9;if(_0x32b3cc===_0x43f38f)break;else _0x572d2e['push'](_0x572d2e['shift']());}catch(_0xfdd9ee){_0x572d2e['push'](_0x572d2e['shift']());}}}(a246_0x380d,0x4c8ac));import{getTemplateBaseUrl}from'../utils/config.js';export async function fetchCdnConfig(){const _0x3b06f7=a246_0x25a0,_0x5d2ebb=getTemplateBaseUrl(),_0x562ed0=[_0x5d2ebb+_0x3b06f7(0x143),_0x5d2ebb+_0x3b06f7(0x14a)];for(const _0x5b8b04 of _0x562ed0){try{const _0x23e980=await fetch(_0x5b8b04,{'headers':{'Accept':_0x3b06f7(0x140)}});if(!_0x23e980['ok'])continue;const _0x2a8e1a=await _0x23e980[_0x3b06f7(0x13a)]();if(!_0x2a8e1a[_0x3b06f7(0x13e)]?.[_0x3b06f7(0x13d)]||!_0x2a8e1a[_0x3b06f7(0x14b)]?.[_0x3b06f7(0x144)]?.['stableVersion'])continue;return _0x2a8e1a;}catch{}}return null;}let cachedConfig=null,cacheTime=0x0;const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8;let hasCachedConfig=![];export async function getCdnConfig(){const _0x28750b=a246_0x25a0,_0x5d6e3d=Date[_0x28750b(0x146)]();if(hasCachedConfig){const _0x21045a=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x5d6e3d-cacheTime<_0x21045a)return cachedConfig;}const _0xa5db11=await fetchCdnConfig();return cachedConfig=_0xa5db11,cacheTime=_0x5d6e3d,hasCachedConfig=!![],_0xa5db11;}function a246_0x380d(){const _0x2be66a=['2IukjRO','stableVersion','cli','3230688oTObGj','application/json','18881505ZzzEMO','315816sOODvk','/config.json','node','539873TIhsPo','now','2165572bePeuw','2899420kmvXje','1156164tLcLXc','/config/index.json','sdk','json','49PLBEHK'];a246_0x380d=function(){return _0x2be66a;};return a246_0x380d();}function a246_0x25a0(_0x5a09ca,_0x132232){_0x5a09ca=_0x5a09ca-0x13a;const _0x380df4=a246_0x380d();let _0x25a0d2=_0x380df4[_0x5a09ca];return _0x25a0d2;}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
1
+ (function(_0x2d10ee,_0x570702){const _0x13516f=a247_0x17ba,_0x6d4c8=_0x2d10ee();while(!![]){try{const _0x242396=parseInt(_0x13516f(0x9f))/0x1+parseInt(_0x13516f(0xaa))/0x2+-parseInt(_0x13516f(0xa0))/0x3*(-parseInt(_0x13516f(0x9e))/0x4)+parseInt(_0x13516f(0xa7))/0x5+parseInt(_0x13516f(0xa1))/0x6*(-parseInt(_0x13516f(0xa5))/0x7)+parseInt(_0x13516f(0xa9))/0x8*(parseInt(_0x13516f(0xa2))/0x9)+-parseInt(_0x13516f(0xad))/0xa;if(_0x242396===_0x570702)break;else _0x6d4c8['push'](_0x6d4c8['shift']());}catch(_0x473ff9){_0x6d4c8['push'](_0x6d4c8['shift']());}}}(a247_0x2f42,0xa0026));import{getTemplateBaseUrl}from'../utils/config.js';function a247_0x17ba(_0x72854b,_0x406360){_0x72854b=_0x72854b-0x9d;const _0x2f4265=a247_0x2f42();let _0x17baf6=_0x2f4265[_0x72854b];return _0x17baf6;}function a247_0x2f42(){const _0x350c34=['node','application/json','26645690vtLiiQ','/config.json','788fFEaKh','583025JWxCsD','15174eZpIkr','3364206FOotje','24201NWZsnz','cli','sdk','7xjokiZ','stableVersion','4510865tTzxne','/config/index.json','800PvDbFR','2260288bcroRp'];a247_0x2f42=function(){return _0x350c34;};return a247_0x2f42();}export async function fetchCdnConfig(){const _0x429f4c=a247_0x17ba,_0x271ec6=getTemplateBaseUrl(),_0x17ed11=[_0x271ec6+_0x429f4c(0x9d),_0x271ec6+_0x429f4c(0xa8)];for(const _0x4109d0 of _0x17ed11){try{const _0x49b8c4=await fetch(_0x4109d0,{'headers':{'Accept':_0x429f4c(0xac)}});if(!_0x49b8c4['ok'])continue;const _0x717649=await _0x49b8c4['json']();if(!_0x717649[_0x429f4c(0xa3)]?.[_0x429f4c(0xa6)]||!_0x717649[_0x429f4c(0xa4)]?.[_0x429f4c(0xab)]?.[_0x429f4c(0xa6)])continue;return _0x717649;}catch{}}return null;}let cachedConfig=null,cacheTime=0x0;const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8;let hasCachedConfig=![];export async function getCdnConfig(){const _0x35ff2c=Date['now']();if(hasCachedConfig){const _0x5b2f21=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x35ff2c-cacheTime<_0x5b2f21)return cachedConfig;}const _0x3c1ef3=await fetchCdnConfig();return cachedConfig=_0x3c1ef3,cacheTime=_0x35ff2c,hasCachedConfig=!![],_0x3c1ef3;}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
@@ -1 +1 @@
1
- const a247_0xf5322d=a247_0x424a;function a247_0x424a(_0x27022c,_0x1d2970){_0x27022c=_0x27022c-0x1ee;const _0x8c9473=a247_0x8c94();let _0x424ab5=_0x8c9473[_0x27022c];return _0x424ab5;}(function(_0x101e5f,_0x599e7e){const _0x2396e2=a247_0x424a,_0x2592b2=_0x101e5f();while(!![]){try{const _0x437372=-parseInt(_0x2396e2(0x207))/0x1+parseInt(_0x2396e2(0x1f5))/0x2*(parseInt(_0x2396e2(0x1ef))/0x3)+-parseInt(_0x2396e2(0x209))/0x4+parseInt(_0x2396e2(0x210))/0x5*(parseInt(_0x2396e2(0x20e))/0x6)+parseInt(_0x2396e2(0x1fb))/0x7+-parseInt(_0x2396e2(0x1fc))/0x8+-parseInt(_0x2396e2(0x1f7))/0x9*(parseInt(_0x2396e2(0x20c))/0xa);if(_0x437372===_0x599e7e)break;else _0x2592b2['push'](_0x2592b2['shift']());}catch(_0x5070e1){_0x2592b2['push'](_0x2592b2['shift']());}}}(a247_0x8c94,0xf0b8b));import a247_0x129a96 from'node:fs';import a247_0x15cc67 from'node:path';import a247_0x58e139 from'semver';import{getCdnConfig}from'../utils/cdn-config.js';const FALLBACK_MIN_SDK_VERSION=a247_0xf5322d(0x1ee);function a247_0x8c94(){const _0x452792=['14772kteALm','needsUpgrade','3745TLACJt','@lovrabet/sdk','stableVersion','1.2.0','73257uMWYMq','utf-8','utf8','sdk','\x20\x20\x20Upgrade\x20command:\x20','all','126XnbEZB','existsSync','9gGcSYd','package.json','\x1b[33m','\x20\x20\x20Stable\x20version:\x20','11688369AvFPKa','2108624FqZqnB','parse','\x20\x20\x20Current\x20version:\x20','dependencies','log','coerce','readFileSync','\x1b[1m','join','devDependencies','minVersion','517833PIWvcV','test','1607156HMFCEL','node','version','28830070kVtRiV','↪\x20SDK\x20update\x20available'];a247_0x8c94=function(){return _0x452792;};return a247_0x8c94();}function isNonNumericVersion(_0x3bc7d7){const _0x45d154=a247_0xf5322d,_0x52b205=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x52b205['some'](_0x29962c=>_0x29962c[_0x45d154(0x208)](_0x3bc7d7));}function getInstalledVersion(_0x4cb4a2,_0x55778a){const _0x400623=a247_0xf5322d;try{const _0x19ae5c=a247_0x15cc67['join'](_0x4cb4a2,'node_modules',_0x55778a,'package.json');if(a247_0x129a96[_0x400623(0x1f6)](_0x19ae5c)){const _0x5ca8fc=JSON[_0x400623(0x1fd)](a247_0x129a96[_0x400623(0x202)](_0x19ae5c,_0x400623(0x1f0)));return _0x5ca8fc[_0x400623(0x20b)]||null;}}catch{}return null;}async function getSdkStableVersion(){const _0x40978e=a247_0xf5322d;try{const _0x466e73=await getCdnConfig();return _0x466e73?.['sdk']?.[_0x40978e(0x20a)]?.[_0x40978e(0x212)]||null;}catch{return null;}}async function getSdkPackageName(){const _0x383171=a247_0xf5322d;try{const _0x17521b=await getCdnConfig();return _0x17521b?.[_0x383171(0x1f2)]?.[_0x383171(0x20a)]?.['packageName']||_0x383171(0x211);}catch{return _0x383171(0x211);}}export async function checkSdkVersion(_0x4080f9){const _0x490dde=a247_0xf5322d,_0x5e5aa1=a247_0x15cc67[_0x490dde(0x204)](_0x4080f9,'package.json'),[_0x3c3318,_0x5c22f3]=await Promise[_0x490dde(0x1f4)]([getSdkStableVersion(),getSdkPackageName()]),_0xeebe12=_0x3c3318||FALLBACK_MIN_SDK_VERSION;if(!a247_0x129a96[_0x490dde(0x1f6)](_0x5e5aa1))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0xeebe12,'packageName':_0x5c22f3,'stableVersion':_0x3c3318};try{const _0x51f512=JSON[_0x490dde(0x1fd)](a247_0x129a96[_0x490dde(0x202)](_0x5e5aa1,_0x490dde(0x1f1))),_0x7bc165=_0x51f512[_0x490dde(0x1ff)]||{},_0x328b0f=_0x51f512[_0x490dde(0x205)]||{},_0x2249e2=_0x7bc165[_0x5c22f3]||_0x328b0f[_0x5c22f3];if(!_0x2249e2)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0xeebe12,'packageName':_0x5c22f3,'stableVersion':_0x3c3318};let _0x151331=getInstalledVersion(_0x4080f9,_0x5c22f3);!_0x151331&&(_0x151331=_0x2249e2);if(isNonNumericVersion(_0x2249e2))return{'installed':!![],'version':_0x151331,'needsUpgrade':![],'minVersion':_0xeebe12,'packageName':_0x5c22f3,'stableVersion':_0x3c3318};const _0x53cc70=a247_0x58e139['coerce'](_0x151331),_0x3f089f=a247_0x58e139['coerce'](_0xeebe12),_0x45302b=_0x53cc70&&_0x3f089f?a247_0x58e139['lt'](_0x53cc70,_0x3f089f):![];return{'installed':!![],'version':_0x151331,'needsUpgrade':_0x45302b,'minVersion':_0xeebe12,'packageName':_0x5c22f3,'stableVersion':_0x3c3318};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0xeebe12,'packageName':_0x5c22f3,'stableVersion':_0x3c3318};}}export function checkSdkVersionSync(_0x2d5ff4){const _0x2c3cec=a247_0xf5322d,_0x2775ce=a247_0x15cc67['join'](_0x2d5ff4,_0x2c3cec(0x1f8)),_0x25b0ee=_0x2c3cec(0x211);if(!a247_0x129a96[_0x2c3cec(0x1f6)](_0x2775ce))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x25b0ee,'stableVersion':null};try{const _0x5add27=JSON[_0x2c3cec(0x1fd)](a247_0x129a96['readFileSync'](_0x2775ce,_0x2c3cec(0x1f1))),_0x5cf6ef=_0x5add27[_0x2c3cec(0x1ff)]||{},_0x33e43c=_0x5add27[_0x2c3cec(0x205)]||{},_0x58190a=_0x5cf6ef[_0x25b0ee]||_0x33e43c[_0x25b0ee];if(!_0x58190a)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x25b0ee,'stableVersion':null};let _0x5e0726=getInstalledVersion(_0x2d5ff4,_0x25b0ee);!_0x5e0726&&(_0x5e0726=_0x58190a);if(isNonNumericVersion(_0x58190a))return{'installed':!![],'version':_0x5e0726,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x25b0ee,'stableVersion':null};const _0x25ea97=a247_0x58e139[_0x2c3cec(0x201)](_0x5e0726),_0x3b20ef=_0x25ea97?a247_0x58e139['lt'](_0x25ea97,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x5e0726,'needsUpgrade':_0x3b20ef,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x25b0ee,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x25b0ee,'stableVersion':null};}}export function printSdkUpgradeWarning(_0x1c18cb){const _0x537ed6=a247_0xf5322d;if(!_0x1c18cb[_0x537ed6(0x20f)])return;const _0x160e58=_0x537ed6(0x1f9),_0x22ca3c='\x1b[0m',_0x1a782e=_0x537ed6(0x203),_0x158c69=_0x1c18cb['packageName']||'@lovrabet/sdk',_0x2d8d74=_0x1c18cb['stableVersion']||_0x1c18cb[_0x537ed6(0x206)],_0x1714ac='npm\x20install\x20'+_0x158c69+'@'+(_0x2d8d74||'latest');console[_0x537ed6(0x200)](),console[_0x537ed6(0x200)](''+_0x160e58+_0x1a782e+_0x537ed6(0x20d)+_0x22ca3c),console[_0x537ed6(0x200)](_0x160e58+_0x537ed6(0x1fe)+_0x158c69+'@'+_0x1c18cb['version']+_0x22ca3c),console['log'](_0x160e58+_0x537ed6(0x1fa)+_0x2d8d74+_0x22ca3c),console[_0x537ed6(0x200)](_0x160e58+_0x537ed6(0x1f3)+_0x1714ac+_0x22ca3c),console[_0x537ed6(0x200)]();}
1
+ (function(_0x330fd3,_0x3692cd){const _0x3cf652=a248_0x4c2f,_0x49e2e7=_0x330fd3();while(!![]){try{const _0x2b651e=-parseInt(_0x3cf652(0xc1))/0x1+-parseInt(_0x3cf652(0xbb))/0x2+-parseInt(_0x3cf652(0xba))/0x3*(-parseInt(_0x3cf652(0xd2))/0x4)+-parseInt(_0x3cf652(0xc4))/0x5*(-parseInt(_0x3cf652(0xcd))/0x6)+parseInt(_0x3cf652(0xd3))/0x7+-parseInt(_0x3cf652(0xce))/0x8*(-parseInt(_0x3cf652(0xd1))/0x9)+-parseInt(_0x3cf652(0xc5))/0xa;if(_0x2b651e===_0x3692cd)break;else _0x49e2e7['push'](_0x49e2e7['shift']());}catch(_0x52d38e){_0x49e2e7['push'](_0x49e2e7['shift']());}}}(a248_0x4a16,0xa32e0));import a248_0x2e7553 from'node:fs';import a248_0x22e91e from'node:path';import a248_0x407624 from'semver';function a248_0x4c2f(_0x1ed25a,_0x5dca7d){_0x1ed25a=_0x1ed25a-0xb9;const _0x4a164a=a248_0x4a16();let _0x4c2f98=_0x4a164a[_0x1ed25a];return _0x4c2f98;}import{getCdnConfig}from'../utils/cdn-config.js';const FALLBACK_MIN_SDK_VERSION='1.2.0';function isNonNumericVersion(_0x41036a){const _0x3920e8=a248_0x4c2f,_0x2e0ffc=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x2e0ffc[_0x3920e8(0xbd)](_0x5c5de7=>_0x5c5de7[_0x3920e8(0xdc)](_0x41036a));}function a248_0x4a16(){const _0x259db3=['some','parse','\x1b[1m','stableVersion','1021957roykPO','\x20\x20\x20Upgrade\x20command:\x20','coerce','5tDdWVG','2412670dMWGEi','package.json','↪\x20SDK\x20update\x20available','dependencies','join','readFileSync','minVersion','@lovrabet/sdk','6225396ZNcWOD','8gVjnbH','node','node_modules','5086602EbzIQr','119764mVphaJ','1897315fywSBU','utf8','\x20\x20\x20Stable\x20version:\x20','\x20\x20\x20Current\x20version:\x20','\x1b[0m','existsSync','version','devDependencies','all','test','packageName','60qKYqEG','1082002AUDPCh','log'];a248_0x4a16=function(){return _0x259db3;};return a248_0x4a16();}function getInstalledVersion(_0x2edba7,_0x1d3968){const _0x3bb321=a248_0x4c2f;try{const _0x3e081d=a248_0x22e91e['join'](_0x2edba7,_0x3bb321(0xd0),_0x1d3968,'package.json');if(a248_0x2e7553[_0x3bb321(0xd8)](_0x3e081d)){const _0x1e3be5=JSON[_0x3bb321(0xbe)](a248_0x2e7553[_0x3bb321(0xca)](_0x3e081d,'utf-8'));return _0x1e3be5[_0x3bb321(0xd9)]||null;}}catch{}return null;}async function getSdkStableVersion(){const _0x42c918=a248_0x4c2f;try{const _0x55d93a=await getCdnConfig();return _0x55d93a?.['sdk']?.[_0x42c918(0xcf)]?.[_0x42c918(0xc0)]||null;}catch{return null;}}async function getSdkPackageName(){const _0x22ef3a=a248_0x4c2f;try{const _0x5a0de5=await getCdnConfig();return _0x5a0de5?.['sdk']?.[_0x22ef3a(0xcf)]?.[_0x22ef3a(0xb9)]||_0x22ef3a(0xcc);}catch{return _0x22ef3a(0xcc);}}export async function checkSdkVersion(_0x2d0e1b){const _0x405d6f=a248_0x4c2f,_0x4fe29b=a248_0x22e91e[_0x405d6f(0xc9)](_0x2d0e1b,_0x405d6f(0xc6)),[_0x27fb66,_0x4c8005]=await Promise[_0x405d6f(0xdb)]([getSdkStableVersion(),getSdkPackageName()]),_0x40f34e=_0x27fb66||FALLBACK_MIN_SDK_VERSION;if(!a248_0x2e7553[_0x405d6f(0xd8)](_0x4fe29b))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x40f34e,'packageName':_0x4c8005,'stableVersion':_0x27fb66};try{const _0x6e4259=JSON[_0x405d6f(0xbe)](a248_0x2e7553['readFileSync'](_0x4fe29b,'utf8')),_0x2997ed=_0x6e4259[_0x405d6f(0xc8)]||{},_0x298879=_0x6e4259[_0x405d6f(0xda)]||{},_0x44f076=_0x2997ed[_0x4c8005]||_0x298879[_0x4c8005];if(!_0x44f076)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x40f34e,'packageName':_0x4c8005,'stableVersion':_0x27fb66};let _0x5cfb54=getInstalledVersion(_0x2d0e1b,_0x4c8005);!_0x5cfb54&&(_0x5cfb54=_0x44f076);if(isNonNumericVersion(_0x44f076))return{'installed':!![],'version':_0x5cfb54,'needsUpgrade':![],'minVersion':_0x40f34e,'packageName':_0x4c8005,'stableVersion':_0x27fb66};const _0x28ece2=a248_0x407624[_0x405d6f(0xc3)](_0x5cfb54),_0x234852=a248_0x407624['coerce'](_0x40f34e),_0x37e379=_0x28ece2&&_0x234852?a248_0x407624['lt'](_0x28ece2,_0x234852):![];return{'installed':!![],'version':_0x5cfb54,'needsUpgrade':_0x37e379,'minVersion':_0x40f34e,'packageName':_0x4c8005,'stableVersion':_0x27fb66};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x40f34e,'packageName':_0x4c8005,'stableVersion':_0x27fb66};}}export function checkSdkVersionSync(_0x344296){const _0x154504=a248_0x4c2f,_0x4b5c32=a248_0x22e91e[_0x154504(0xc9)](_0x344296,_0x154504(0xc6)),_0x5887b9=_0x154504(0xcc);if(!a248_0x2e7553[_0x154504(0xd8)](_0x4b5c32))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x5887b9,'stableVersion':null};try{const _0x56c1ea=JSON[_0x154504(0xbe)](a248_0x2e7553[_0x154504(0xca)](_0x4b5c32,_0x154504(0xd4))),_0x596a49=_0x56c1ea[_0x154504(0xc8)]||{},_0x37f1d7=_0x56c1ea[_0x154504(0xda)]||{},_0x35dfc6=_0x596a49[_0x5887b9]||_0x37f1d7[_0x5887b9];if(!_0x35dfc6)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x5887b9,'stableVersion':null};let _0x54e779=getInstalledVersion(_0x344296,_0x5887b9);!_0x54e779&&(_0x54e779=_0x35dfc6);if(isNonNumericVersion(_0x35dfc6))return{'installed':!![],'version':_0x54e779,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x5887b9,'stableVersion':null};const _0x4b1424=a248_0x407624['coerce'](_0x54e779),_0xa4ff1=_0x4b1424?a248_0x407624['lt'](_0x4b1424,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x54e779,'needsUpgrade':_0xa4ff1,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x5887b9,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x5887b9,'stableVersion':null};}}export function printSdkUpgradeWarning(_0x144f38){const _0x40dedb=a248_0x4c2f;if(!_0x144f38['needsUpgrade'])return;const _0x4b342d='\x1b[33m',_0x45658e=_0x40dedb(0xd7),_0x26d03e=_0x40dedb(0xbf),_0x4d6fcf=_0x144f38['packageName']||'@lovrabet/sdk',_0x344dee=_0x144f38[_0x40dedb(0xc0)]||_0x144f38[_0x40dedb(0xcb)],_0x2fabfe='npm\x20install\x20'+_0x4d6fcf+'@'+(_0x344dee||'latest');console[_0x40dedb(0xbc)](),console[_0x40dedb(0xbc)](''+_0x4b342d+_0x26d03e+_0x40dedb(0xc7)+_0x45658e),console[_0x40dedb(0xbc)](_0x4b342d+_0x40dedb(0xd6)+_0x4d6fcf+'@'+_0x144f38[_0x40dedb(0xd9)]+_0x45658e),console[_0x40dedb(0xbc)](_0x4b342d+_0x40dedb(0xd5)+_0x344dee+_0x45658e),console[_0x40dedb(0xbc)](_0x4b342d+_0x40dedb(0xc2)+_0x2fabfe+_0x45658e),console['log']();}
@@ -1 +1 @@
1
- (function(_0x440b5c,_0x17aa8e){const _0x4f591e=a248_0x234c,_0x356ac7=_0x440b5c();while(!![]){try{const _0x1bfc52=-parseInt(_0x4f591e(0x13c))/0x1*(parseInt(_0x4f591e(0x13f))/0x2)+parseInt(_0x4f591e(0x13a))/0x3+-parseInt(_0x4f591e(0x11d))/0x4*(-parseInt(_0x4f591e(0x11b))/0x5)+parseInt(_0x4f591e(0x137))/0x6+parseInt(_0x4f591e(0x122))/0x7+parseInt(_0x4f591e(0x121))/0x8*(-parseInt(_0x4f591e(0x13b))/0x9)+-parseInt(_0x4f591e(0x11f))/0xa;if(_0x1bfc52===_0x17aa8e)break;else _0x356ac7['push'](_0x356ac7['shift']());}catch(_0x29d5ad){_0x356ac7['push'](_0x356ac7['shift']());}}}(a248_0x296c,0x4a8d3));function a248_0x296c(){const _0x3dd06a=['version','stableVersion','\x1b[1m','validation','parse','\x20\x20\x20Current\x20CLI\x20version:\x20','../..','1.0.0','filter','minimumVersionMessage','\x20\x20\x20Stable\x20version:\x20','Current\x20version:\x20','1721970RVEWqQ','\x20\x20\x20Upgrade\x20command:\x20','coerce','518484SGkWGE','12132LvRFzo','349bNHfRQ','minimumVersion','\x1b[31m','1450NodLtY','Upgrade\x20command:\x20','\x1b[0m','utf-8','join','↪\x20Critical\x20CLI\x20upgrade\x20required','10VftbNs','\x1b[33m','518524JoobPY','\x20\x20\x20Recommended\x20stable:\x20','2451800oAAmvy','\x20\x20\x20','1648qoCyMm','2535197HCKgKW','currentVersion','belowMinimum','Minimum\x20supported:\x20','needsUpgrade','latest','npm\x20install\x20-g\x20','upgradeMessage','log'];a248_0x296c=function(){return _0x3dd06a;};return a248_0x296c();}import{readFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';import a248_0x5ea263 from'semver';import{getCliVersionPolicy}from'../utils/cli-version-policy.js';function a248_0x234c(_0x56d6ed,_0x44ca02){_0x56d6ed=_0x56d6ed-0x119;const _0x296cd1=a248_0x296c();let _0x234ccf=_0x296cd1[_0x56d6ed];return _0x234ccf;}import{NPM_PACKAGE_NAME}from'../constant/cli.js';import{CliErrors}from'../errors.js';export function getCliUpgradeCommand(_0x46b147){const _0x47631e=a248_0x234c,_0x27e6a6=_0x46b147[_0x47631e(0x12c)]||_0x47631e(0x127);return _0x47631e(0x128)+NPM_PACKAGE_NAME+'@'+_0x27e6a6;}function getCurrentCliVersion(){const _0x419ed1=a248_0x234c;try{const _0x29b823=fileURLToPath(import.meta.url),_0x56f727=resolve(dirname(_0x29b823),_0x419ed1(0x131)),_0x20dbc7=resolve(_0x56f727,'package.json'),_0x438853=JSON[_0x419ed1(0x12f)](readFileSync(_0x20dbc7,_0x419ed1(0x142)));return _0x438853[_0x419ed1(0x12b)]||_0x419ed1(0x132);}catch{return _0x419ed1(0x132);}}export async function checkCliVersion(){const _0x59f4fa=a248_0x234c,_0x27b4c4=getCurrentCliVersion(),_0x1d01a5=await getCliVersionPolicy(),_0x1ebd7d=_0x1d01a5?.['stableVersion']||null,_0x422d28=_0x1d01a5?.[_0x59f4fa(0x13d)]||null;let _0x14f4c7=![],_0x2d3784=![];const _0x3fffd9=a248_0x5ea263[_0x59f4fa(0x139)](_0x27b4c4);if(_0x3fffd9&&_0x1ebd7d)try{const _0x2ac1a6=a248_0x5ea263['coerce'](_0x1ebd7d);if(_0x2ac1a6)_0x14f4c7=a248_0x5ea263['lt'](_0x3fffd9,_0x2ac1a6);}catch{}if(_0x3fffd9&&_0x422d28)try{const _0x25e6bb=a248_0x5ea263[_0x59f4fa(0x139)](_0x422d28);if(_0x25e6bb)_0x2d3784=a248_0x5ea263['lt'](_0x3fffd9,_0x25e6bb);}catch{}return _0x2d3784&&(_0x14f4c7=!![]),{'currentVersion':_0x27b4c4,'stableVersion':_0x1ebd7d,'minimumVersion':_0x422d28,'needsUpgrade':_0x14f4c7,'belowMinimum':_0x2d3784,'isPreRelease':![],'upgradeMessage':_0x1d01a5?.['upgradeMessage'],'minimumVersionMessage':_0x1d01a5?.[_0x59f4fa(0x134)]};}export function printCliUpgradeWarning(_0x289c6d){const _0x249584=a248_0x234c;if(!_0x289c6d[_0x249584(0x126)]&&!_0x289c6d[_0x249584(0x124)])return;const _0x327504=_0x249584(0x13e),_0x1ba819=_0x249584(0x11c),_0xfd06a0=_0x249584(0x141),_0x320e29=_0x249584(0x12d),_0x3a6ff9=getCliUpgradeCommand(_0x289c6d);console[_0x249584(0x12a)](),_0x289c6d[_0x249584(0x124)]?(console[_0x249584(0x12a)](''+_0x327504+_0x320e29+_0x249584(0x11a)+_0xfd06a0),console[_0x249584(0x12a)](_0x327504+'\x20\x20\x20Current\x20CLI\x20version:\x20'+_0x289c6d['currentVersion']+_0xfd06a0),_0x289c6d['minimumVersion']&&console[_0x249584(0x12a)](_0x327504+'\x20\x20\x20Minimum\x20supported:\x20'+_0x289c6d[_0x249584(0x13d)]+_0xfd06a0),_0x289c6d[_0x249584(0x12c)]&&_0x289c6d['stableVersion']!==_0x289c6d[_0x249584(0x13d)]&&console[_0x249584(0x12a)](_0x327504+_0x249584(0x11e)+_0x289c6d['stableVersion']+_0xfd06a0),_0x289c6d[_0x249584(0x134)]&&console[_0x249584(0x12a)](_0x327504+'\x20\x20\x20'+_0x289c6d[_0x249584(0x134)]+_0xfd06a0),console[_0x249584(0x12a)](_0x327504+_0x249584(0x138)+_0x3a6ff9+_0xfd06a0)):(console[_0x249584(0x12a)](''+_0x1ba819+_0x320e29+'↪\x20New\x20version\x20available'+_0xfd06a0),console['log'](_0x1ba819+_0x249584(0x130)+_0x289c6d[_0x249584(0x123)]+_0xfd06a0),console[_0x249584(0x12a)](_0x1ba819+_0x249584(0x135)+_0x289c6d[_0x249584(0x12c)]+_0xfd06a0),_0x289c6d['upgradeMessage']&&console['log'](_0x1ba819+_0x249584(0x120)+_0x289c6d[_0x249584(0x129)]+_0xfd06a0),console[_0x249584(0x12a)](_0x1ba819+_0x249584(0x138)+_0x3a6ff9+_0xfd06a0)),console[_0x249584(0x12a)]();}export function assertCliVersionSupported(_0x29c61e){const _0x523c37=a248_0x234c;if(!_0x29c61e[_0x523c37(0x124)])return;const _0x4805d7=[_0x29c61e['minimumVersionMessage'],_0x523c37(0x136)+_0x29c61e[_0x523c37(0x123)],_0x29c61e[_0x523c37(0x13d)]?_0x523c37(0x125)+_0x29c61e['minimumVersion']:null,_0x523c37(0x140)+getCliUpgradeCommand(_0x29c61e)][_0x523c37(0x133)](Boolean)[_0x523c37(0x119)]('\x0a');throw CliErrors[_0x523c37(0x12e)]('Current\x20CLI\x20version\x20is\x20below\x20the\x20service\x20compatibility\x20support\x20line.',_0x4805d7);}
1
+ (function(_0x4c0699,_0x54e3c7){const _0x3f19b0=a249_0x45db,_0x3b31c2=_0x4c0699();while(!![]){try{const _0x489fce=-parseInt(_0x3f19b0(0x11f))/0x1+parseInt(_0x3f19b0(0x121))/0x2*(-parseInt(_0x3f19b0(0x13d))/0x3)+parseInt(_0x3f19b0(0x124))/0x4*(parseInt(_0x3f19b0(0x139))/0x5)+parseInt(_0x3f19b0(0x123))/0x6+-parseInt(_0x3f19b0(0x115))/0x7*(-parseInt(_0x3f19b0(0x11d))/0x8)+-parseInt(_0x3f19b0(0x13c))/0x9*(parseInt(_0x3f19b0(0x118))/0xa)+parseInt(_0x3f19b0(0x114))/0xb*(parseInt(_0x3f19b0(0x120))/0xc);if(_0x489fce===_0x54e3c7)break;else _0x3b31c2['push'](_0x3b31c2['shift']());}catch(_0x508492){_0x3b31c2['push'](_0x3b31c2['shift']());}}}(a249_0x4f8e,0x43af5));import{readFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';import a249_0x4d1243 from'semver';import{getCliVersionPolicy}from'../utils/cli-version-policy.js';function a249_0x4f8e(){const _0x2bd9dd=['\x1b[33m','utf-8','\x1b[0m','363112oYejZS','minimumVersionMessage','42998vbDYSJ','24eXpEgw','148OkTfJK','coerce','2279364yzhweJ','94988FErkKJ','1.0.0','\x20\x20\x20Current\x20CLI\x20version:\x20','\x1b[1m','../..','upgradeMessage','needsUpgrade','\x20\x20\x20Upgrade\x20command:\x20','belowMinimum','version','npm\x20install\x20-g\x20','\x1b[31m','validation','minimumVersion','log','Current\x20CLI\x20version\x20is\x20below\x20the\x20service\x20compatibility\x20support\x20line.','parse','Upgrade\x20command:\x20','latest','Current\x20version:\x20','↪\x20Critical\x20CLI\x20upgrade\x20required','10DoaORs','\x20\x20\x20Recommended\x20stable:\x20','\x20\x20\x20Minimum\x20supported:\x20','3870wqBcDt','8598fXHifV','currentVersion','package.json','566346GAZfNZ','7jAYQdW','Minimum\x20supported:\x20','stableVersion','1010qufCSN','\x20\x20\x20'];a249_0x4f8e=function(){return _0x2bd9dd;};return a249_0x4f8e();}function a249_0x45db(_0x2903c0,_0x537ab1){_0x2903c0=_0x2903c0-0x113;const _0x4f8e5c=a249_0x4f8e();let _0x45db13=_0x4f8e5c[_0x2903c0];return _0x45db13;}import{NPM_PACKAGE_NAME}from'../constant/cli.js';import{CliErrors}from'../errors.js';export function getCliUpgradeCommand(_0x4c4c7e){const _0x113081=a249_0x45db,_0x46515e=_0x4c4c7e[_0x113081(0x117)]||_0x113081(0x136);return _0x113081(0x12e)+NPM_PACKAGE_NAME+'@'+_0x46515e;}function getCurrentCliVersion(){const _0x15d434=a249_0x45db;try{const _0x5907c3=fileURLToPath(import.meta.url),_0x427473=resolve(dirname(_0x5907c3),_0x15d434(0x128)),_0x1c6713=resolve(_0x427473,_0x15d434(0x113)),_0x5657f4=JSON[_0x15d434(0x134)](readFileSync(_0x1c6713,_0x15d434(0x11b)));return _0x5657f4[_0x15d434(0x12d)]||_0x15d434(0x125);}catch{return _0x15d434(0x125);}}export async function checkCliVersion(){const _0x26f4ad=a249_0x45db,_0x52627f=getCurrentCliVersion(),_0x334b22=await getCliVersionPolicy(),_0x172427=_0x334b22?.[_0x26f4ad(0x117)]||null,_0x4036a3=_0x334b22?.['minimumVersion']||null;let _0xdde752=![],_0x535406=![];const _0x4c44f3=a249_0x4d1243[_0x26f4ad(0x122)](_0x52627f);if(_0x4c44f3&&_0x172427)try{const _0x3f8977=a249_0x4d1243['coerce'](_0x172427);if(_0x3f8977)_0xdde752=a249_0x4d1243['lt'](_0x4c44f3,_0x3f8977);}catch{}if(_0x4c44f3&&_0x4036a3)try{const _0x23f20c=a249_0x4d1243[_0x26f4ad(0x122)](_0x4036a3);if(_0x23f20c)_0x535406=a249_0x4d1243['lt'](_0x4c44f3,_0x23f20c);}catch{}return _0x535406&&(_0xdde752=!![]),{'currentVersion':_0x52627f,'stableVersion':_0x172427,'minimumVersion':_0x4036a3,'needsUpgrade':_0xdde752,'belowMinimum':_0x535406,'isPreRelease':![],'upgradeMessage':_0x334b22?.['upgradeMessage'],'minimumVersionMessage':_0x334b22?.[_0x26f4ad(0x11e)]};}export function printCliUpgradeWarning(_0x2b72e3){const _0x50bbc5=a249_0x45db;if(!_0x2b72e3[_0x50bbc5(0x12a)]&&!_0x2b72e3['belowMinimum'])return;const _0x19e0ec=_0x50bbc5(0x12f),_0x58629e=_0x50bbc5(0x11a),_0x53b75a=_0x50bbc5(0x11c),_0x512e15=_0x50bbc5(0x127),_0x1bb080=getCliUpgradeCommand(_0x2b72e3);console['log'](),_0x2b72e3[_0x50bbc5(0x12c)]?(console[_0x50bbc5(0x132)](''+_0x19e0ec+_0x512e15+_0x50bbc5(0x138)+_0x53b75a),console[_0x50bbc5(0x132)](_0x19e0ec+_0x50bbc5(0x126)+_0x2b72e3[_0x50bbc5(0x13e)]+_0x53b75a),_0x2b72e3['minimumVersion']&&console[_0x50bbc5(0x132)](_0x19e0ec+_0x50bbc5(0x13b)+_0x2b72e3[_0x50bbc5(0x131)]+_0x53b75a),_0x2b72e3['stableVersion']&&_0x2b72e3[_0x50bbc5(0x117)]!==_0x2b72e3[_0x50bbc5(0x131)]&&console[_0x50bbc5(0x132)](_0x19e0ec+_0x50bbc5(0x13a)+_0x2b72e3[_0x50bbc5(0x117)]+_0x53b75a),_0x2b72e3[_0x50bbc5(0x11e)]&&console[_0x50bbc5(0x132)](_0x19e0ec+_0x50bbc5(0x119)+_0x2b72e3['minimumVersionMessage']+_0x53b75a),console[_0x50bbc5(0x132)](_0x19e0ec+_0x50bbc5(0x12b)+_0x1bb080+_0x53b75a)):(console[_0x50bbc5(0x132)](''+_0x58629e+_0x512e15+'↪\x20New\x20version\x20available'+_0x53b75a),console['log'](_0x58629e+_0x50bbc5(0x126)+_0x2b72e3[_0x50bbc5(0x13e)]+_0x53b75a),console[_0x50bbc5(0x132)](_0x58629e+'\x20\x20\x20Stable\x20version:\x20'+_0x2b72e3[_0x50bbc5(0x117)]+_0x53b75a),_0x2b72e3['upgradeMessage']&&console[_0x50bbc5(0x132)](_0x58629e+'\x20\x20\x20'+_0x2b72e3[_0x50bbc5(0x129)]+_0x53b75a),console[_0x50bbc5(0x132)](_0x58629e+'\x20\x20\x20Upgrade\x20command:\x20'+_0x1bb080+_0x53b75a)),console['log']();}export function assertCliVersionSupported(_0x5c3555){const _0x193aa0=a249_0x45db;if(!_0x5c3555[_0x193aa0(0x12c)])return;const _0x29c730=[_0x5c3555['minimumVersionMessage'],_0x193aa0(0x137)+_0x5c3555[_0x193aa0(0x13e)],_0x5c3555['minimumVersion']?_0x193aa0(0x116)+_0x5c3555[_0x193aa0(0x131)]:null,_0x193aa0(0x135)+getCliUpgradeCommand(_0x5c3555)]['filter'](Boolean)['join']('\x0a');throw CliErrors[_0x193aa0(0x130)](_0x193aa0(0x133),_0x29c730);}
@@ -1 +1 @@
1
- (function(_0x2f6e1b,_0x2918a0){const _0x3ec446=a249_0x4cdc,_0x564351=_0x2f6e1b();while(!![]){try{const _0x29b4e4=parseInt(_0x3ec446(0x180))/0x1+-parseInt(_0x3ec446(0x194))/0x2*(-parseInt(_0x3ec446(0x187))/0x3)+-parseInt(_0x3ec446(0x193))/0x4*(parseInt(_0x3ec446(0x18a))/0x5)+parseInt(_0x3ec446(0x18f))/0x6*(-parseInt(_0x3ec446(0x186))/0x7)+-parseInt(_0x3ec446(0x190))/0x8*(parseInt(_0x3ec446(0x192))/0x9)+-parseInt(_0x3ec446(0x17f))/0xa*(parseInt(_0x3ec446(0x191))/0xb)+-parseInt(_0x3ec446(0x18e))/0xc*(-parseInt(_0x3ec446(0x18c))/0xd);if(_0x29b4e4===_0x2918a0)break;else _0x564351['push'](_0x564351['shift']());}catch(_0x2ddb0b){_0x564351['push'](_0x564351['shift']());}}}(a249_0x5738,0xee343));import{CLI_VERSION_POLICY_URL}from'../constant/cdn.js';const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8,FETCH_TIMEOUT_MS=0xbb8;function pickString(_0xea651c){const _0x110ca4=a249_0x4cdc;return typeof _0xea651c===_0x110ca4(0x189)&&_0xea651c['trim']()['length']>0x0?_0xea651c[_0x110ca4(0x195)]():null;}function normalizeCliVersionPolicy(_0x4b1b1b){const _0x5a9250=a249_0x4cdc;if(!_0x4b1b1b||typeof _0x4b1b1b!=='object')return null;const _0x376c34=_0x4b1b1b,_0x14ffbd=_0x376c34[_0x5a9250(0x18b)]&&typeof _0x376c34[_0x5a9250(0x18b)]===_0x5a9250(0x18d)?_0x376c34[_0x5a9250(0x18b)]:_0x376c34,_0x47d75a=pickString(_0x14ffbd[_0x5a9250(0x183)])||pickString(_0x14ffbd[_0x5a9250(0x182)])||pickString(_0x14ffbd[_0x5a9250(0x188)]),_0x37cdde=pickString(_0x14ffbd['minimumVersion'])||pickString(_0x14ffbd['minVersion']);if(!_0x47d75a&&!_0x37cdde)return null;return{'stableVersion':_0x47d75a,'minimumVersion':_0x37cdde,'upgradeMessage':pickString(_0x14ffbd['upgradeMessage'])||undefined,'minimumVersionMessage':pickString(_0x14ffbd[_0x5a9250(0x197)])||undefined};}function a249_0x4cdc(_0x38c555,_0x10a25e){_0x38c555=_0x38c555-0x17f;const _0x573836=a249_0x5738();let _0x4cdc01=_0x573836[_0x38c555];return _0x4cdc01;}function a249_0x5738(){const _0x279646=['now','latestVersion','stableVersion','signal','json','1589PLzkVL','3liUNdp','recommendedVersion','string','1055BMcDMQ','cli','13BHkzwh','object','25236168dUQbCW','15390VtwwJp','8lbFqvE','6480793JCTwhy','1641186EwNrby','26348WPIguP','829316DVCykW','trim','abort','minimumVersionMessage','20RCbscs','1790803djcRxD'];a249_0x5738=function(){return _0x279646;};return a249_0x5738();}export async function fetchCliVersionPolicy(){const _0x10d302=a249_0x4cdc,_0x23e7a4=new AbortController(),_0x3c657f=setTimeout(()=>_0x23e7a4[_0x10d302(0x196)](),FETCH_TIMEOUT_MS);try{const _0x288987=await fetch(CLI_VERSION_POLICY_URL,{'headers':{'Accept':'application/json'},'signal':_0x23e7a4[_0x10d302(0x184)]});if(!_0x288987['ok'])return null;const _0x40a136=await _0x288987[_0x10d302(0x185)]();return normalizeCliVersionPolicy(_0x40a136);}catch{return null;}finally{clearTimeout(_0x3c657f);}}let cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];export async function getCliVersionPolicy(){const _0x3ce6a7=a249_0x4cdc,_0xc4ac3=Date[_0x3ce6a7(0x181)]();if(hasCachedPolicy){const _0x5d4226=cachedPolicy?CACHE_TTL:FAILURE_CACHE_TTL;if(_0xc4ac3-cacheTime<_0x5d4226)return cachedPolicy;}const _0x3b4de2=await fetchCliVersionPolicy();return cachedPolicy=_0x3b4de2,cacheTime=_0xc4ac3,hasCachedPolicy=!![],_0x3b4de2;}export function clearCliVersionPolicyCache(){cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];}
1
+ (function(_0x260bd9,_0x44b17d){const _0xf44589=a250_0x2a62,_0x5a0c0a=_0x260bd9();while(!![]){try{const _0x437f0d=parseInt(_0xf44589(0xeb))/0x1*(parseInt(_0xf44589(0xe8))/0x2)+parseInt(_0xf44589(0xea))/0x3*(parseInt(_0xf44589(0xe5))/0x4)+-parseInt(_0xf44589(0xdb))/0x5*(parseInt(_0xf44589(0xe3))/0x6)+-parseInt(_0xf44589(0xd7))/0x7*(parseInt(_0xf44589(0xe1))/0x8)+-parseInt(_0xf44589(0xdc))/0x9+parseInt(_0xf44589(0xdf))/0xa*(-parseInt(_0xf44589(0xe4))/0xb)+parseInt(_0xf44589(0xe0))/0xc;if(_0x437f0d===_0x44b17d)break;else _0x5a0c0a['push'](_0x5a0c0a['shift']());}catch(_0x186d98){_0x5a0c0a['push'](_0x5a0c0a['shift']());}}}(a250_0xa326,0xad181));import{CLI_VERSION_POLICY_URL}from'../constant/cdn.js';function a250_0xa326(){const _0x188f15=['2238897bUoQkV','1qsQzXq','string','length','now','recommendedVersion','14biOZQa','minVersion','application/json','minimumVersion','53175YVYdpt','5544324uRTxkM','latestVersion','stableVersion','407200sVVRUH','17762976zAlIHr','3340696IOFWGs','signal','258MuMvvw','22aaaIgv','4EDqcoj','object','trim','944802wYvCPy','cli'];a250_0xa326=function(){return _0x188f15;};return a250_0xa326();}const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8,FETCH_TIMEOUT_MS=0xbb8;function pickString(_0x2e8440){const _0x4e98a2=a250_0x2a62;return typeof _0x2e8440===_0x4e98a2(0xec)&&_0x2e8440[_0x4e98a2(0xe7)]()[_0x4e98a2(0xed)]>0x0?_0x2e8440[_0x4e98a2(0xe7)]():null;}function normalizeCliVersionPolicy(_0x2ca904){const _0x14101b=a250_0x2a62;if(!_0x2ca904||typeof _0x2ca904!==_0x14101b(0xe6))return null;const _0x2d9275=_0x2ca904,_0x231319=_0x2d9275['cli']&&typeof _0x2d9275[_0x14101b(0xe9)]==='object'?_0x2d9275['cli']:_0x2d9275,_0x1db39f=pickString(_0x231319[_0x14101b(0xde)])||pickString(_0x231319[_0x14101b(0xdd)])||pickString(_0x231319[_0x14101b(0xef)]),_0x240c2c=pickString(_0x231319[_0x14101b(0xda)])||pickString(_0x231319[_0x14101b(0xd8)]);if(!_0x1db39f&&!_0x240c2c)return null;return{'stableVersion':_0x1db39f,'minimumVersion':_0x240c2c,'upgradeMessage':pickString(_0x231319['upgradeMessage'])||undefined,'minimumVersionMessage':pickString(_0x231319['minimumVersionMessage'])||undefined};}export async function fetchCliVersionPolicy(){const _0x9e9e32=a250_0x2a62,_0x5dbb3b=new AbortController(),_0x4774cf=setTimeout(()=>_0x5dbb3b['abort'](),FETCH_TIMEOUT_MS);try{const _0x4e3108=await fetch(CLI_VERSION_POLICY_URL,{'headers':{'Accept':_0x9e9e32(0xd9)},'signal':_0x5dbb3b[_0x9e9e32(0xe2)]});if(!_0x4e3108['ok'])return null;const _0x3ac51f=await _0x4e3108['json']();return normalizeCliVersionPolicy(_0x3ac51f);}catch{return null;}finally{clearTimeout(_0x4774cf);}}let cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];function a250_0x2a62(_0x11b11c,_0x5a2d0a){_0x11b11c=_0x11b11c-0xd7;const _0xa326f3=a250_0xa326();let _0x2a622e=_0xa326f3[_0x11b11c];return _0x2a622e;}export async function getCliVersionPolicy(){const _0x1ae70d=a250_0x2a62,_0x2242c0=Date[_0x1ae70d(0xee)]();if(hasCachedPolicy){const _0x556da9=cachedPolicy?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x2242c0-cacheTime<_0x556da9)return cachedPolicy;}const _0x1096fb=await fetchCliVersionPolicy();return cachedPolicy=_0x1096fb,cacheTime=_0x2242c0,hasCachedPolicy=!![],_0x1096fb;}export function clearCliVersionPolicyCache(){cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];}
@@ -1 +1 @@
1
- function a250_0x212e(_0x44d223,_0xfac0dc){_0x44d223=_0x44d223-0xda;const _0x2cc3b4=a250_0x2cc3();let _0x212ec7=_0x2cc3b4[_0x44d223];return _0x212ec7;}const a250_0x3ae718=a250_0x212e;(function(_0x1d90d5,_0x4dce17){const _0xdfe069=a250_0x212e,_0x1f40e3=_0x1d90d5();while(!![]){try{const _0x3a2a0d=-parseInt(_0xdfe069(0xe1))/0x1*(parseInt(_0xdfe069(0xdd))/0x2)+parseInt(_0xdfe069(0xe5))/0x3+parseInt(_0xdfe069(0xdb))/0x4+parseInt(_0xdfe069(0xdf))/0x5+-parseInt(_0xdfe069(0xde))/0x6*(parseInt(_0xdfe069(0xe4))/0x7)+parseInt(_0xdfe069(0xdc))/0x8*(parseInt(_0xdfe069(0xe0))/0x9)+-parseInt(_0xdfe069(0xe3))/0xa;if(_0x3a2a0d===_0x4dce17)break;else _0x1f40e3['push'](_0x1f40e3['shift']());}catch(_0x53f54d){_0x1f40e3['push'](_0x1f40e3['shift']());}}}(a250_0x2cc3,0xbb130));import{initEnv}from'../constant/env.js';import{readRawConfig,getConfigAppCode as a250_0x417909,getMultiAppConfigs as a250_0x29ae84,getTemplateBaseUrl as a250_0x59a8e5}from'../context.js';function a250_0x2cc3(){const _0x10502a=['env','3102100EuwvZl','1626709vLhItA','2258154dFJWCz','project','2034840mthFXL','576HnUmTB','4zsLJtV','18RgUwMW','2292265SIrUQq','49293fxCiHL','170299coszhX'];a250_0x2cc3=function(){return _0x10502a;};return a250_0x2cc3();}export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';export{isInProject}from'../context.js';export function readConfig(_0x100422){const _0x27def4=a250_0x212e,_0x20ad15=readRawConfig(_0x100422);return _0x20ad15[_0x27def4(0xe2)]&&typeof _0x20ad15['env']==='string'&&initEnv(_0x20ad15[_0x27def4(0xe2)]),_0x20ad15;}export function getConfigAppCode(){return a250_0x417909();}export function getMultiAppConfigs(_0x160f3c=a250_0x3ae718(0xda)){return a250_0x29ae84(_0x160f3c);}export function getTemplateBaseUrl(){return a250_0x59a8e5();}
1
+ const a251_0x513ad4=a251_0x4b27;(function(_0x44e115,_0xb486e0){const _0x5533f4=a251_0x4b27,_0x1df06d=_0x44e115();while(!![]){try{const _0x2136eb=parseInt(_0x5533f4(0x8c))/0x1*(-parseInt(_0x5533f4(0x91))/0x2)+-parseInt(_0x5533f4(0x8f))/0x3*(-parseInt(_0x5533f4(0x96))/0x4)+-parseInt(_0x5533f4(0x98))/0x5*(parseInt(_0x5533f4(0x94))/0x6)+parseInt(_0x5533f4(0x93))/0x7*(-parseInt(_0x5533f4(0x8d))/0x8)+parseInt(_0x5533f4(0x90))/0x9*(parseInt(_0x5533f4(0x8e))/0xa)+parseInt(_0x5533f4(0x95))/0xb*(parseInt(_0x5533f4(0x99))/0xc)+-parseInt(_0x5533f4(0x9b))/0xd*(-parseInt(_0x5533f4(0x92))/0xe);if(_0x2136eb===_0xb486e0)break;else _0x1df06d['push'](_0x1df06d['shift']());}catch(_0x55ee50){_0x1df06d['push'](_0x1df06d['shift']());}}}(a251_0x548f,0xdda0f));import{initEnv}from'../constant/env.js';function a251_0x4b27(_0x3c7485,_0x474c6b){_0x3c7485=_0x3c7485-0x8b;const _0x548f1b=a251_0x548f();let _0x4b276b=_0x548f1b[_0x3c7485];return _0x4b276b;}import{readRawConfig,getConfigAppCode as a251_0x63e734,getMultiAppConfigs as a251_0x35eb09,getTemplateBaseUrl as a251_0x66537c}from'../context.js';export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';export{isInProject}from'../context.js';export function readConfig(_0x262d81){const _0x335ae1=a251_0x4b27,_0x386d2e=readRawConfig(_0x262d81);return _0x386d2e[_0x335ae1(0x9a)]&&typeof _0x386d2e['env']===_0x335ae1(0x8b)&&initEnv(_0x386d2e[_0x335ae1(0x9a)]),_0x386d2e;}export function getConfigAppCode(){return a251_0x63e734();}export function getMultiAppConfigs(_0x5cff70=a251_0x513ad4(0x97)){return a251_0x35eb09(_0x5cff70);}function a251_0x548f(){const _0x59c863=['40qXYHyV','30jumonH','262269gdpOIm','1571571qiIOUF','18pgeXrR','126bOCZXI','1607564eIDinT','3318wMMqEA','23683dGHNIC','8HPxmaG','project','9905uOIPRD','6204dOTwXE','env','1992211GjHizk','string','4387Kachpb'];a251_0x548f=function(){return _0x59c863;};return a251_0x548f();}export function getTemplateBaseUrl(){return a251_0x66537c();}
@@ -1 +1 @@
1
- function a251_0x2219(){const _0x20436f=['readdirSync','11198960EBbXDk','3341676paiJyi','5bmRGLm','复制目录时出错:','1163745CzpirW','28cLCxRQ','957210TsMtCJ','error','join','isDirectory','5231595aUNfXu','3566570GteDMS','name','copyFileSync','1015744QrFXFo','mkdirSync'];a251_0x2219=function(){return _0x20436f;};return a251_0x2219();}(function(_0x5f00f2,_0x2c39b2){const _0x149d43=a251_0x14a5,_0x26ed05=_0x5f00f2();while(!![]){try{const _0x43e0b6=parseInt(_0x149d43(0x17d))/0x1+-parseInt(_0x149d43(0x17a))/0x2+parseInt(_0x149d43(0x179))/0x3+-parseInt(_0x149d43(0x170))/0x4*(-parseInt(_0x149d43(0x171))/0x5)+parseInt(_0x149d43(0x175))/0x6*(parseInt(_0x149d43(0x174))/0x7)+-parseInt(_0x149d43(0x16f))/0x8+-parseInt(_0x149d43(0x173))/0x9;if(_0x43e0b6===_0x2c39b2)break;else _0x26ed05['push'](_0x26ed05['shift']());}catch(_0x51cbdf){_0x26ed05['push'](_0x26ed05['shift']());}}}(a251_0x2219,0xe0c84));function a251_0x14a5(_0x13617f,_0x34790c){_0x13617f=_0x13617f-0x16d;const _0x22192b=a251_0x2219();let _0x14a52c=_0x22192b[_0x13617f];return _0x14a52c;}import a251_0x25477d from'node:path';import a251_0x45094c from'node:fs';export async function copyDirectory(_0x31f6a8,_0x5b069c){const _0x535908=a251_0x14a5;try{const _0x24bcc2=a251_0x45094c[_0x535908(0x16e)](_0x31f6a8,{'withFileTypes':!![]});a251_0x45094c[_0x535908(0x16d)](_0x5b069c,{'recursive':!![]});for(const _0x1d958d of _0x24bcc2){const _0x3fea68=a251_0x25477d['join'](_0x31f6a8,_0x1d958d['name']),_0x56feec=a251_0x25477d[_0x535908(0x177)](_0x5b069c,_0x1d958d[_0x535908(0x17b)]);_0x1d958d[_0x535908(0x178)]()?await copyDirectory(_0x3fea68,_0x56feec):a251_0x45094c[_0x535908(0x17c)](_0x3fea68,_0x56feec);}}catch(_0x336bc1){console[_0x535908(0x176)](_0x535908(0x172),_0x336bc1);}}
1
+ (function(_0x47b040,_0x4020f1){const _0x3c878f=a252_0x272b,_0x3a3a49=_0x47b040();while(!![]){try{const _0x210438=-parseInt(_0x3c878f(0x171))/0x1+-parseInt(_0x3c878f(0x17a))/0x2+parseInt(_0x3c878f(0x180))/0x3+parseInt(_0x3c878f(0x17f))/0x4+-parseInt(_0x3c878f(0x172))/0x5*(-parseInt(_0x3c878f(0x181))/0x6)+-parseInt(_0x3c878f(0x173))/0x7*(-parseInt(_0x3c878f(0x176))/0x8)+parseInt(_0x3c878f(0x17b))/0x9*(-parseInt(_0x3c878f(0x17d))/0xa);if(_0x210438===_0x4020f1)break;else _0x3a3a49['push'](_0x3a3a49['shift']());}catch(_0x1f8f59){_0x3a3a49['push'](_0x3a3a49['shift']());}}}(a252_0x4ddc,0x5cddb));import a252_0x533ee1 from'node:path';import a252_0x2d613c from'node:fs';export async function copyDirectory(_0x22bdd5,_0x41b24c){const _0x54d0ba=a252_0x272b;try{const _0x737e35=a252_0x2d613c['readdirSync'](_0x22bdd5,{'withFileTypes':!![]});a252_0x2d613c[_0x54d0ba(0x17e)](_0x41b24c,{'recursive':!![]});for(const _0x2f97dd of _0x737e35){const _0x515e14=a252_0x533ee1[_0x54d0ba(0x178)](_0x22bdd5,_0x2f97dd[_0x54d0ba(0x175)]),_0x48a17c=a252_0x533ee1[_0x54d0ba(0x178)](_0x41b24c,_0x2f97dd['name']);_0x2f97dd[_0x54d0ba(0x17c)]()?await copyDirectory(_0x515e14,_0x48a17c):a252_0x2d613c[_0x54d0ba(0x179)](_0x515e14,_0x48a17c);}}catch(_0x85d283){console[_0x54d0ba(0x174)](_0x54d0ba(0x177),_0x85d283);}}function a252_0x272b(_0x419447,_0x102ec6){_0x419447=_0x419447-0x171;const _0x4ddcec=a252_0x4ddc();let _0x272b8c=_0x4ddcec[_0x419447];return _0x272b8c;}function a252_0x4ddc(){const _0x48a298=['mkdirSync','1341412wfCcZp','1616742qyKAoH','1831074gKoRpm','313841yyYwUB','10VcGUwI','4543553qPswAc','error','name','8fvUAjo','复制目录时出错:','join','copyFileSync','1135960lqLxil','7843536NaoMCQ','isDirectory','10WKGyEp'];a252_0x4ddc=function(){return _0x48a298;};return a252_0x4ddc();}
@@ -1 +1 @@
1
- function a252_0x557f(_0x4bf784,_0x47b888){_0x4bf784=_0x4bf784-0xb1;const _0x241700=a252_0x2417();let _0x557f48=_0x241700[_0x4bf784];return _0x557f48;}(function(_0x2c2cd0,_0x445393){const _0x279e57=a252_0x557f,_0x3cdbc4=_0x2c2cd0();while(!![]){try{const _0x3b16ad=parseInt(_0x279e57(0xbd))/0x1*(-parseInt(_0x279e57(0xb2))/0x2)+-parseInt(_0x279e57(0xbb))/0x3+-parseInt(_0x279e57(0xb4))/0x4+parseInt(_0x279e57(0xb3))/0x5+parseInt(_0x279e57(0xb8))/0x6*(-parseInt(_0x279e57(0xb6))/0x7)+-parseInt(_0x279e57(0xba))/0x8*(-parseInt(_0x279e57(0xb9))/0x9)+parseInt(_0x279e57(0xbc))/0xa;if(_0x3b16ad===_0x445393)break;else _0x3cdbc4['push'](_0x3cdbc4['shift']());}catch(_0x295fc4){_0x3cdbc4['push'](_0x3cdbc4['shift']());}}}(a252_0x2417,0x7e172));function toFiniteNumber(_0x3992d0){const _0x403379=a252_0x557f;if(typeof _0x3992d0==='number'&&Number['isFinite'](_0x3992d0))return _0x3992d0;if(typeof _0x3992d0===_0x403379(0xb7)){const _0x16b48d=_0x3992d0[_0x403379(0xb1)]();if(!_0x16b48d)return undefined;const _0x333022=Number(_0x16b48d);if(Number['isFinite'](_0x333022))return _0x333022;}return undefined;}function a252_0x2417(){const _0x2cb6ff=['trim','4458EeXonP','3416745TEmvqu','3743404nEqCzO','object','56vBYiNT','string','502788rTxKga','4149wkrCaZ','12856dWryOh','3064773vPBAnu','26429220gePtaN','414uPtpIa'];a252_0x2417=function(){return _0x2cb6ff;};return a252_0x2417();}export function normalizeEntityWithIdResponse(_0x4196a3){const _0x2d7f56=a252_0x557f,_0x2c7a5f=toFiniteNumber(_0x4196a3);if(_0x2c7a5f!==undefined)return{'id':_0x2c7a5f,'entity':{'id':_0x2c7a5f}};if(!_0x4196a3||typeof _0x4196a3!==_0x2d7f56(0xb5))return{'id':undefined,'entity':{}};const _0x324c76={..._0x4196a3},_0x87f779=toFiniteNumber(_0x324c76['id']);return _0x87f779!==undefined&&(_0x324c76['id']=_0x87f779),{'id':_0x87f779,'entity':_0x324c76};}
1
+ (function(_0x1443b2,_0x5b4ae9){const _0x26ed89=a253_0x139a,_0x5b5b2c=_0x1443b2();while(!![]){try{const _0x3504fb=parseInt(_0x26ed89(0x8f))/0x1*(-parseInt(_0x26ed89(0x8c))/0x2)+parseInt(_0x26ed89(0x89))/0x3*(parseInt(_0x26ed89(0x92))/0x4)+parseInt(_0x26ed89(0x91))/0x5*(-parseInt(_0x26ed89(0x90))/0x6)+-parseInt(_0x26ed89(0x96))/0x7+parseInt(_0x26ed89(0x95))/0x8*(-parseInt(_0x26ed89(0x93))/0x9)+parseInt(_0x26ed89(0x8a))/0xa+parseInt(_0x26ed89(0x94))/0xb;if(_0x3504fb===_0x5b4ae9)break;else _0x5b5b2c['push'](_0x5b5b2c['shift']());}catch(_0x37c13f){_0x5b5b2c['push'](_0x5b5b2c['shift']());}}}(a253_0x4b29,0x448fb));function a253_0x139a(_0x417c14,_0x14caed){_0x417c14=_0x417c14-0x89;const _0x4b2977=a253_0x4b29();let _0x139ab0=_0x4b2977[_0x417c14];return _0x139ab0;}function toFiniteNumber(_0xecc0bc){const _0x5a701d=a253_0x139a;if(typeof _0xecc0bc===_0x5a701d(0x8e)&&Number['isFinite'](_0xecc0bc))return _0xecc0bc;if(typeof _0xecc0bc===_0x5a701d(0x8b)){const _0x2f486d=_0xecc0bc['trim']();if(!_0x2f486d)return undefined;const _0x3b13e3=Number(_0x2f486d);if(Number[_0x5a701d(0x8d)](_0x3b13e3))return _0x3b13e3;}return undefined;}function a253_0x4b29(){const _0x5e3c22=['6xKMiZF','1736425yJJLRD','20OrqvlW','99WCSzbI','13431209TDakfe','19896BBBXGu','3921316BwMfuP','167181efGbiz','523310NFuknS','string','8kesTQP','isFinite','number','84082bKBPRt'];a253_0x4b29=function(){return _0x5e3c22;};return a253_0x4b29();}export function normalizeEntityWithIdResponse(_0x5623bb){const _0x290e7a=toFiniteNumber(_0x5623bb);if(_0x290e7a!==undefined)return{'id':_0x290e7a,'entity':{'id':_0x290e7a}};if(!_0x5623bb||typeof _0x5623bb!=='object')return{'id':undefined,'entity':{}};const _0x25f70e={..._0x5623bb},_0x3483ef=toFiniteNumber(_0x25f70e['id']);return _0x3483ef!==undefined&&(_0x25f70e['id']=_0x3483ef),{'id':_0x3483ef,'entity':_0x25f70e};}
@@ -1 +1 @@
1
- (function(_0x49cebf,_0x5b820c){const _0x29530f=a253_0x576d,_0x8654f4=_0x49cebf();while(!![]){try{const _0x3c9006=parseInt(_0x29530f(0x9d))/0x1+parseInt(_0x29530f(0x9a))/0x2+-parseInt(_0x29530f(0x9c))/0x3*(parseInt(_0x29530f(0x9e))/0x4)+parseInt(_0x29530f(0x98))/0x5*(parseInt(_0x29530f(0xa0))/0x6)+parseInt(_0x29530f(0x9f))/0x7+-parseInt(_0x29530f(0x97))/0x8*(parseInt(_0x29530f(0x99))/0x9)+-parseInt(_0x29530f(0x9b))/0xa*(parseInt(_0x29530f(0x96))/0xb);if(_0x3c9006===_0x5b820c)break;else _0x8654f4['push'](_0x8654f4['shift']());}catch(_0x548d3d){_0x8654f4['push'](_0x8654f4['shift']());}}}(a253_0x2e41,0x5d278));import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';import{join}from'node:path';function a253_0x576d(_0x691822,_0x4ee407){_0x691822=_0x691822-0x96;const _0x2e4152=a253_0x2e41();let _0x576d5d=_0x2e4152[_0x691822];return _0x576d5d;}function a253_0x2e41(){const _0x50a4f1=['356122PuroBX','8TUOeJb','4397834UGIBcU','60qMRjIt','isDirectory','44draPlL','5715688dHensZ','153955gTCslO','9MKyRiO','687586wqdins','847570cthktV','301557hIIysa'];a253_0x2e41=function(){return _0x50a4f1;};return a253_0x2e41();}export async function copyDir(_0x5e3d55,_0x137373){const _0x19f407=a253_0x576d,_0x5c3663=statSync(_0x5e3d55);if(_0x5c3663[_0x19f407(0xa1)]()){!existsSync(_0x137373)&&mkdirSync(_0x137373,{'recursive':!![]});const _0x29a2b7=readdirSync(_0x5e3d55);for(const _0x284431 of _0x29a2b7){await copyDir(join(_0x5e3d55,_0x284431),join(_0x137373,_0x284431));}}else copyFileSync(_0x5e3d55,_0x137373);}export function ensureDir(_0x1e5d8d){!existsSync(_0x1e5d8d)&&mkdirSync(_0x1e5d8d,{'recursive':!![]});}export function pathExists(_0x414f4d){return existsSync(_0x414f4d);}
1
+ function a254_0x34ba(_0x285534,_0x3decd8){_0x285534=_0x285534-0xbe;const _0x7c84b9=a254_0x7c84();let _0x34ba55=_0x7c84b9[_0x285534];return _0x34ba55;}(function(_0x500d8a,_0x201e1f){const _0x4d74dd=a254_0x34ba,_0x38e0b6=_0x500d8a();while(!![]){try{const _0xa54673=parseInt(_0x4d74dd(0xc1))/0x1*(parseInt(_0x4d74dd(0xc0))/0x2)+-parseInt(_0x4d74dd(0xc7))/0x3*(-parseInt(_0x4d74dd(0xc3))/0x4)+-parseInt(_0x4d74dd(0xc4))/0x5+-parseInt(_0x4d74dd(0xc8))/0x6*(-parseInt(_0x4d74dd(0xc2))/0x7)+parseInt(_0x4d74dd(0xc5))/0x8*(-parseInt(_0x4d74dd(0xc9))/0x9)+parseInt(_0x4d74dd(0xc6))/0xa+parseInt(_0x4d74dd(0xbe))/0xb;if(_0xa54673===_0x201e1f)break;else _0x38e0b6['push'](_0x38e0b6['shift']());}catch(_0x19c4a6){_0x38e0b6['push'](_0x38e0b6['shift']());}}}(a254_0x7c84,0x2f115));import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';import{join}from'node:path';export async function copyDir(_0x3fc1f5,_0x5d7803){const _0x2a1ee0=a254_0x34ba,_0x1a38c4=statSync(_0x3fc1f5);if(_0x1a38c4[_0x2a1ee0(0xbf)]()){!existsSync(_0x5d7803)&&mkdirSync(_0x5d7803,{'recursive':!![]});const _0x1550a3=readdirSync(_0x3fc1f5);for(const _0x350bd1 of _0x1550a3){await copyDir(join(_0x3fc1f5,_0x350bd1),join(_0x5d7803,_0x350bd1));}}else copyFileSync(_0x3fc1f5,_0x5d7803);}export function ensureDir(_0xdc80f1){!existsSync(_0xdc80f1)&&mkdirSync(_0xdc80f1,{'recursive':!![]});}function a254_0x7c84(){const _0x224e23=['isDirectory','10jltMpx','16730CqafKy','91iqVaxn','284DgxYmp','987125FzPSTN','8gMOxDR','679330IDXQJO','4884cexKVJ','61086gShINu','922149tiimIy','1024661LOtNjL'];a254_0x7c84=function(){return _0x224e23;};return a254_0x7c84();}export function pathExists(_0xf5599b){return existsSync(_0xf5599b);}
@@ -1 +1 @@
1
- const a254_0x37422d=a254_0x1754;(function(_0x3cd86f,_0x316e88){const _0x75430b=a254_0x1754,_0x2f9478=_0x3cd86f();while(!![]){try{const _0x39eb74=-parseInt(_0x75430b(0x143))/0x1+-parseInt(_0x75430b(0x13d))/0x2+-parseInt(_0x75430b(0x13f))/0x3+-parseInt(_0x75430b(0x156))/0x4+-parseInt(_0x75430b(0x13a))/0x5*(-parseInt(_0x75430b(0x149))/0x6)+-parseInt(_0x75430b(0x14f))/0x7*(parseInt(_0x75430b(0x154))/0x8)+-parseInt(_0x75430b(0x152))/0x9*(-parseInt(_0x75430b(0x155))/0xa);if(_0x39eb74===_0x316e88)break;else _0x2f9478['push'](_0x2f9478['shift']());}catch(_0x1ca413){_0x2f9478['push'](_0x2f9478['shift']());}}}(a254_0x2eb6,0xb8ba9));import{mkdirSync,writeFileSync}from'node:fs';import{dirname,join}from'node:path';import{homedir}from'node:os';import{getTemplateBaseUrl}from'../utils/config.js';function getGuidesCdnUrl(){const _0x5af3b3=a254_0x1754,_0xb608dd=getTemplateBaseUrl();return _0xb608dd+_0x5af3b3(0x138);}const CACHE_DIR=join(homedir(),a254_0x37422d(0x157),'cache');export async function fetchGuidesFromCDN(){const _0x4ab843=a254_0x37422d,_0x3ac15e=getGuidesCdnUrl(),_0x52a161=await fetch(_0x3ac15e,{'headers':{'Accept':_0x4ab843(0x15c)}});if(!_0x52a161['ok'])throw new Error(_0x4ab843(0x145)+_0x52a161[_0x4ab843(0x151)]+'\x20'+_0x52a161[_0x4ab843(0x153)]);const _0x38d307=await _0x52a161['json']();if(!_0x38d307[_0x4ab843(0x13e)]||typeof _0x38d307[_0x4ab843(0x13e)]!==_0x4ab843(0x140))throw new Error(_0x4ab843(0x14b));return _0x38d307;}export function writeGuidesToProject(_0x435b48,_0x167417,_0x4aa404=a254_0x37422d(0x14a),_0x1df727){const _0x342862=a254_0x37422d,_0x1e076c=join(_0x167417,_0x4aa404);mkdirSync(_0x1e076c,{'recursive':!![]});for(const [_0x1b8b05,_0x220cb9]of Object['entries'](_0x435b48[_0x342862(0x13e)])){let _0x3ea19c=_0x220cb9[_0x342862(0x15a)];_0x220cb9[_0x342862(0x159)]&&(_0x3ea19c=appendUpdateTime(_0x3ea19c,_0x220cb9[_0x342862(0x159)])),writeFileSync(join(_0x1e076c,_0x1b8b05+_0x342862(0x158)),_0x3ea19c,_0x342862(0x148));}}function a254_0x1754(_0x5229d6,_0x584d9b){_0x5229d6=_0x5229d6-0x138;const _0x2eb675=a254_0x2eb6();let _0x175485=_0x2eb675[_0x5229d6];return _0x175485;}export function appendUpdateTime(_0x3c373c,_0x3672c3){const _0x27603e=a254_0x37422d;return _0x3c373c=_0x3c373c[_0x27603e(0x13c)](/\n*>更新时间:.*$/m,''),_0x3c373c[_0x27603e(0x147)]()+(_0x27603e(0x144)+_0x3672c3);}export function getSkillTemplate(_0x24b05a){const _0x4152cd=a254_0x37422d;return _0x24b05a[_0x4152cd(0x146)]?.[_0x4152cd(0x15a)]||'';}export function appendExtendContents(_0x34af42,_0x23478e,_0x22a8da){const _0x2d33e8=a254_0x37422d,_0x42e88c=[];for(const [,_0x25b88a]of Object[_0x2d33e8(0x13b)](_0x23478e['guides'])){_0x25b88a[_0x2d33e8(0x14c)]&&_0x42e88c[_0x2d33e8(0x15b)](_0x25b88a[_0x2d33e8(0x14c)][_0x2d33e8(0x147)]());}if(_0x42e88c[_0x2d33e8(0x139)]===0x0)return _0x34af42;return _0x34af42[_0x2d33e8(0x147)]()+'\x0a\x0a'+_0x42e88c[_0x2d33e8(0x14e)]('\x0a\x0a')+'\x0a';}function a254_0x2eb6(){const _0x5360e0=['push','application/json','/skills/guides.json','length','5RAfAvd','entries','replace','1898004yUoYRR','guides','541671RnIcFf','object','CDN\x20数据中缺少\x20skillTemplate','keys','1004138dTTkUV','\x0a\x0a>更新时间:','CDN\x20请求失败:\x20','skillTemplate','trimEnd','utf-8','5207802AGZCqk','.lovrabet/skill/guides','CDN\x20返回数据格式错误','extendContent','map','join','7714LBgVlw','path','status','9756pCobat','statusText','1760uXNfRx','24770bwWwvf','1680996rYZCdf','.lovrabet','.md','lastUpdated','content'];a254_0x2eb6=function(){return _0x5360e0;};return a254_0x2eb6();}export function writeSkillFile(_0x5af9f6,_0x1d3fb4,_0x4c5a95){const _0x4314d1=a254_0x37422d,_0x53d3d2=getSkillTemplate(_0x5af9f6);if(!_0x53d3d2)throw new Error(_0x4314d1(0x141));const _0x5698b1=dirname(_0x1d3fb4);mkdirSync(_0x5698b1,{'recursive':!![]});let _0x1baed7=_0x53d3d2[_0x4314d1(0x13c)](/\{\{IDE_NAME\}\}/g,_0x4c5a95);_0x1baed7=appendExtendContents(_0x1baed7,_0x5af9f6),_0x5af9f6[_0x4314d1(0x146)][_0x4314d1(0x159)]&&(_0x1baed7=appendUpdateTime(_0x1baed7,_0x5af9f6[_0x4314d1(0x146)]['lastUpdated'])),writeFileSync(_0x1d3fb4,_0x1baed7,_0x4314d1(0x148));}export async function installGuides(_0x1c6249){const _0x3bf629=a254_0x37422d,_0x1ea46b=await fetchGuidesFromCDN();return writeGuidesToProject(_0x1ea46b,_0x1c6249),Object[_0x3bf629(0x142)](_0x1ea46b['guides'])[_0x3bf629(0x139)];}export function getGuidesSummary(_0x3d5a4f){const _0x29af1d=a254_0x37422d;return Object[_0x29af1d(0x13b)](_0x3d5a4f[_0x29af1d(0x13e)])[_0x29af1d(0x14d)](([_0x5ba276,_0x47b5e4])=>({'key':_0x5ba276,'title':_0x47b5e4['title'],'path':_0x47b5e4[_0x29af1d(0x150)]}));}
1
+ const a255_0x5cdd3a=a255_0x34af;(function(_0x1c8e33,_0x2c74ab){const _0x352eb2=a255_0x34af,_0x29f288=_0x1c8e33();while(!![]){try{const _0xd9aabd=parseInt(_0x352eb2(0xe8))/0x1+parseInt(_0x352eb2(0xfd))/0x2+-parseInt(_0x352eb2(0x105))/0x3*(parseInt(_0x352eb2(0xf2))/0x4)+-parseInt(_0x352eb2(0xf8))/0x5*(-parseInt(_0x352eb2(0xfe))/0x6)+-parseInt(_0x352eb2(0xe2))/0x7*(-parseInt(_0x352eb2(0xf6))/0x8)+-parseInt(_0x352eb2(0xe9))/0x9+-parseInt(_0x352eb2(0x100))/0xa;if(_0xd9aabd===_0x2c74ab)break;else _0x29f288['push'](_0x29f288['shift']());}catch(_0x9f045a){_0x29f288['push'](_0x29f288['shift']());}}}(a255_0x234a,0x1e07f));import{mkdirSync,writeFileSync}from'node:fs';import{dirname,join}from'node:path';import{homedir}from'node:os';import{getTemplateBaseUrl}from'../utils/config.js';function getGuidesCdnUrl(){const _0x328df8=a255_0x34af,_0x10ca09=getTemplateBaseUrl();return _0x10ca09+_0x328df8(0xfb);}function a255_0x234a(){const _0x643400=['CDN\x20返回数据格式错误','lastUpdated','/skills/guides.json','.md','391966jdTvim','3906JFsWOH','application/json','2618120sFSgdh','join','guides','replace','extendContent','12441NGAIYO','push','21QCgUfd','cache','entries','json','statusText','path','141441JbsTNw','886311hKqJni','CDN\x20数据中缺少\x20skillTemplate','utf-8','map','skillTemplate','status','keys','content','trimEnd','172hpRaXK','\x0a\x0a>更新时间:','title','.lovrabet','409688tLjQuw','length','1310XtIRbr'];a255_0x234a=function(){return _0x643400;};return a255_0x234a();}const CACHE_DIR=join(homedir(),a255_0x5cdd3a(0xf5),a255_0x5cdd3a(0xe3));export async function fetchGuidesFromCDN(){const _0x52f4b9=a255_0x5cdd3a,_0x83e25f=getGuidesCdnUrl(),_0x52d15c=await fetch(_0x83e25f,{'headers':{'Accept':_0x52f4b9(0xff)}});if(!_0x52d15c['ok'])throw new Error('CDN\x20请求失败:\x20'+_0x52d15c[_0x52f4b9(0xee)]+'\x20'+_0x52d15c[_0x52f4b9(0xe6)]);const _0x315634=await _0x52d15c[_0x52f4b9(0xe5)]();if(!_0x315634[_0x52f4b9(0x102)]||typeof _0x315634[_0x52f4b9(0x102)]!=='object')throw new Error(_0x52f4b9(0xf9));return _0x315634;}export function writeGuidesToProject(_0x2a70ec,_0x4141fa,_0x5ddc42='.lovrabet/skill/guides',_0xb15466){const _0x5b8787=a255_0x5cdd3a,_0x2c199b=join(_0x4141fa,_0x5ddc42);mkdirSync(_0x2c199b,{'recursive':!![]});for(const [_0x12e9ac,_0x46a0ce]of Object[_0x5b8787(0xe4)](_0x2a70ec[_0x5b8787(0x102)])){let _0x471b6a=_0x46a0ce[_0x5b8787(0xf0)];_0x46a0ce[_0x5b8787(0xfa)]&&(_0x471b6a=appendUpdateTime(_0x471b6a,_0x46a0ce[_0x5b8787(0xfa)])),writeFileSync(join(_0x2c199b,_0x12e9ac+_0x5b8787(0xfc)),_0x471b6a,_0x5b8787(0xeb));}}function a255_0x34af(_0x36f40d,_0x93996c){_0x36f40d=_0x36f40d-0xe1;const _0x234a1b=a255_0x234a();let _0x34af73=_0x234a1b[_0x36f40d];return _0x34af73;}export function appendUpdateTime(_0x4eaafe,_0x517c08){const _0x390bed=a255_0x5cdd3a;return _0x4eaafe=_0x4eaafe[_0x390bed(0x103)](/\n*>更新时间:.*$/m,''),_0x4eaafe[_0x390bed(0xf1)]()+(_0x390bed(0xf3)+_0x517c08);}export function getSkillTemplate(_0x26719e){const _0xfc83fe=a255_0x5cdd3a;return _0x26719e[_0xfc83fe(0xed)]?.[_0xfc83fe(0xf0)]||'';}export function appendExtendContents(_0x421461,_0x599ec8,_0x225245){const _0x28566f=a255_0x5cdd3a,_0xd8eb7b=[];for(const [,_0x560a38]of Object[_0x28566f(0xe4)](_0x599ec8[_0x28566f(0x102)])){_0x560a38[_0x28566f(0x104)]&&_0xd8eb7b[_0x28566f(0xe1)](_0x560a38[_0x28566f(0x104)][_0x28566f(0xf1)]());}if(_0xd8eb7b[_0x28566f(0xf7)]===0x0)return _0x421461;return _0x421461[_0x28566f(0xf1)]()+'\x0a\x0a'+_0xd8eb7b[_0x28566f(0x101)]('\x0a\x0a')+'\x0a';}export function writeSkillFile(_0x2fe1d4,_0x18db4d,_0x5b4646){const _0x5815fc=a255_0x5cdd3a,_0x5a3f5a=getSkillTemplate(_0x2fe1d4);if(!_0x5a3f5a)throw new Error(_0x5815fc(0xea));const _0x49a193=dirname(_0x18db4d);mkdirSync(_0x49a193,{'recursive':!![]});let _0x16f8e2=_0x5a3f5a[_0x5815fc(0x103)](/\{\{IDE_NAME\}\}/g,_0x5b4646);_0x16f8e2=appendExtendContents(_0x16f8e2,_0x2fe1d4),_0x2fe1d4[_0x5815fc(0xed)][_0x5815fc(0xfa)]&&(_0x16f8e2=appendUpdateTime(_0x16f8e2,_0x2fe1d4[_0x5815fc(0xed)]['lastUpdated'])),writeFileSync(_0x18db4d,_0x16f8e2,_0x5815fc(0xeb));}export async function installGuides(_0x33598c){const _0x5882d1=a255_0x5cdd3a,_0x2e4627=await fetchGuidesFromCDN();return writeGuidesToProject(_0x2e4627,_0x33598c),Object[_0x5882d1(0xef)](_0x2e4627[_0x5882d1(0x102)])['length'];}export function getGuidesSummary(_0x1b6fa1){const _0x57292c=a255_0x5cdd3a;return Object['entries'](_0x1b6fa1[_0x57292c(0x102)])[_0x57292c(0xec)](([_0x519354,_0x33f052])=>({'key':_0x519354,'title':_0x33f052[_0x57292c(0xf4)],'path':_0x33f052[_0x57292c(0xe7)]}));}