@lovrabet/rabetbase-cli 2.1.14-beta.3 → 2.2.0

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 (209) hide show
  1. package/lib/api/api-doc.js +1 -1
  2. package/lib/api/fetch-model-list.js +1 -1
  3. package/lib/api/generate-api-file.js +1 -1
  4. package/lib/auth/auth-server-ui.js +1 -1
  5. package/lib/auth/auth-server.js +1 -1
  6. package/lib/auth/constant.js +1 -1
  7. package/lib/auth/get-cookie.js +1 -1
  8. package/lib/auth/get-session-user.js +1 -1
  9. package/lib/auth/is-session-valid.js +1 -1
  10. package/lib/auth/login-success-html.js +1 -1
  11. package/lib/auth/logout.js +1 -1
  12. package/lib/cli-flags.js +1 -1
  13. package/lib/cli.js +1 -1
  14. package/lib/commands/api/generate.js +1 -1
  15. package/lib/commands/api/index.js +1 -1
  16. package/lib/commands/api/list.js +1 -1
  17. package/lib/commands/api/pull.js +1 -1
  18. package/lib/commands/api/shared.js +1 -1
  19. package/lib/commands/app/add.js +1 -1
  20. package/lib/commands/app/discover.js +1 -1
  21. package/lib/commands/app/index.js +1 -1
  22. package/lib/commands/app/list.js +1 -1
  23. package/lib/commands/app/remove.js +1 -1
  24. package/lib/commands/app/shared.js +1 -1
  25. package/lib/commands/app/use.js +1 -1
  26. package/lib/commands/auth/index.js +1 -1
  27. package/lib/commands/bff/create.js +1 -1
  28. package/lib/commands/bff/delete.js +1 -1
  29. package/lib/commands/bff/detail.js +1 -1
  30. package/lib/commands/bff/index.js +1 -1
  31. package/lib/commands/bff/list.js +1 -1
  32. package/lib/commands/bff/pull.js +1 -1
  33. package/lib/commands/bff/push.js +1 -1
  34. package/lib/commands/bff/status.js +1 -1
  35. package/lib/commands/cli-update.js +1 -1
  36. package/lib/commands/codegen/index.js +1 -1
  37. package/lib/commands/codegen/sdk.js +1 -1
  38. package/lib/commands/codegen/sql.js +1 -1
  39. package/lib/commands/common/app-selector.js +1 -1
  40. package/lib/commands/common/flags.js +1 -1
  41. package/lib/commands/common/validate.js +1 -1
  42. package/lib/commands/config/get.js +1 -1
  43. package/lib/commands/config/index.js +1 -1
  44. package/lib/commands/config/list.js +1 -1
  45. package/lib/commands/config/set.js +1 -1
  46. package/lib/commands/config/shared.js +1 -1
  47. package/lib/commands/data/filter.js +1 -1
  48. package/lib/commands/data/getOne.js +1 -1
  49. package/lib/commands/data/index.js +1 -1
  50. package/lib/commands/data/shared.js +1 -1
  51. package/lib/commands/dataset/capability.js +1 -1
  52. package/lib/commands/dataset/delete.js +1 -1
  53. package/lib/commands/dataset/detail.js +1 -1
  54. package/lib/commands/dataset/extend-update.js +1 -1
  55. package/lib/commands/dataset/field-update.js +1 -1
  56. package/lib/commands/dataset/index.js +1 -1
  57. package/lib/commands/dataset/list.js +1 -1
  58. package/lib/commands/dataset/operations.js +1 -1
  59. package/lib/commands/dataset/relation-create.js +1 -0
  60. package/lib/commands/dataset/relation-delete.js +1 -0
  61. package/lib/commands/dataset/relation-shared.js +1 -0
  62. package/lib/commands/dataset/relation-update.js +1 -0
  63. package/lib/commands/dataset/relations.js +1 -0
  64. package/lib/commands/dataset/rename.js +1 -1
  65. package/lib/commands/db/analyze-cancel.js +1 -1
  66. package/lib/commands/db/analyze-start.js +1 -1
  67. package/lib/commands/db/analyze-status.js +1 -1
  68. package/lib/commands/db/create.js +1 -1
  69. package/lib/commands/db/delete.js +1 -1
  70. package/lib/commands/db/detail.js +1 -1
  71. package/lib/commands/db/diff.js +1 -1
  72. package/lib/commands/db/index.js +1 -1
  73. package/lib/commands/db/list.js +1 -1
  74. package/lib/commands/db/shared.js +1 -1
  75. package/lib/commands/db/tables.js +1 -1
  76. package/lib/commands/db/test.js +1 -1
  77. package/lib/commands/db/update.js +1 -1
  78. package/lib/commands/doctor.js +1 -1
  79. package/lib/commands/init/index.js +1 -1
  80. package/lib/commands/issue/index.js +1 -1
  81. package/lib/commands/issue/nudge.js +1 -1
  82. package/lib/commands/issue/report.js +1 -1
  83. package/lib/commands/issue/shared.js +1 -1
  84. package/lib/commands/logs/index.js +1 -1
  85. package/lib/commands/menu/index.js +1 -1
  86. package/lib/commands/menu/shared/compare-table.js +1 -1
  87. package/lib/commands/menu/shared/index.js +1 -1
  88. package/lib/commands/menu/shared/inquirer.js +1 -1
  89. package/lib/commands/menu/shared/local-pages.js +1 -1
  90. package/lib/commands/menu/shared/logic.js +1 -1
  91. package/lib/commands/menu/shared/service.js +1 -1
  92. package/lib/commands/menu/shared/sync-core.js +1 -1
  93. package/lib/commands/menu/shared/update-core.js +1 -1
  94. package/lib/commands/menu/shared/valid-url.js +1 -1
  95. package/lib/commands/menu/sync.js +1 -1
  96. package/lib/commands/menu/update.js +1 -1
  97. package/lib/commands/page/generate-start.js +1 -1
  98. package/lib/commands/page/generate-status.js +1 -1
  99. package/lib/commands/page/index.js +1 -1
  100. package/lib/commands/page/pull.js +1 -1
  101. package/lib/commands/page/push.js +1 -1
  102. package/lib/commands/page/relation-audit.js +1 -0
  103. package/lib/commands/page/shared.js +1 -1
  104. package/lib/commands/page/standard-page-status.js +1 -1
  105. package/lib/commands/page/sync.js +1 -1
  106. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  107. package/lib/commands/project/create/format-elapsed.js +1 -1
  108. package/lib/commands/project/create/main.js +1 -1
  109. package/lib/commands/project/create/non-interactive.js +1 -1
  110. package/lib/commands/project/create/project-template-path.js +1 -1
  111. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  112. package/lib/commands/project/create/use-format-code.js +1 -1
  113. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  114. package/lib/commands/project/index.js +1 -1
  115. package/lib/commands/project/init.js +1 -1
  116. package/lib/commands/project/upgrade.js +1 -1
  117. package/lib/commands/registry.js +1 -1
  118. package/lib/commands/run/index.js +1 -1
  119. package/lib/commands/schema.js +1 -1
  120. package/lib/commands/skill/index.js +1 -1
  121. package/lib/commands/sql/create.js +1 -1
  122. package/lib/commands/sql/delete.js +1 -1
  123. package/lib/commands/sql/detail.js +1 -1
  124. package/lib/commands/sql/exec.js +1 -1
  125. package/lib/commands/sql/index.js +1 -1
  126. package/lib/commands/sql/list.js +1 -1
  127. package/lib/commands/sql/pull.js +1 -1
  128. package/lib/commands/sql/push.js +1 -1
  129. package/lib/commands/sql/save.js +1 -1
  130. package/lib/commands/sql/shared.js +1 -1
  131. package/lib/commands/sql/status.js +1 -1
  132. package/lib/commands/sql/validate.js +1 -1
  133. package/lib/config/schema.js +1 -1
  134. package/lib/constant/cdn.js +1 -1
  135. package/lib/constant/cli.js +1 -1
  136. package/lib/constant/defaults.js +1 -1
  137. package/lib/constant/domain.js +1 -1
  138. package/lib/constant/env.js +1 -1
  139. package/lib/constant/output.js +1 -1
  140. package/lib/constant/paths.js +1 -1
  141. package/lib/constant/risk.js +1 -1
  142. package/lib/context.js +1 -1
  143. package/lib/core/alias-resolver.js +1 -1
  144. package/lib/core/api-client.js +1 -1
  145. package/lib/core/bff/config.js +1 -1
  146. package/lib/core/bff/file-system.js +1 -1
  147. package/lib/core/bff/hash.js +1 -1
  148. package/lib/core/bff/lock.js +1 -1
  149. package/lib/core/bff/utils.js +1 -1
  150. package/lib/core/db-resolver.js +1 -1
  151. package/lib/core/page/file-system.js +1 -1
  152. package/lib/core/page/hash.js +1 -1
  153. package/lib/core/page/lock.js +1 -1
  154. package/lib/core/sql-sync/config.js +1 -1
  155. package/lib/core/sql-sync/file-system.js +1 -1
  156. package/lib/core/sql-sync/hash.js +1 -1
  157. package/lib/core/sql-sync/lock.js +1 -1
  158. package/lib/core/sql-sync/utils.js +1 -1
  159. package/lib/core/sql-validator.js +1 -1
  160. package/lib/errors.js +1 -1
  161. package/lib/framework/build-all-flags.js +1 -1
  162. package/lib/framework/flags.js +1 -1
  163. package/lib/framework/help.js +1 -1
  164. package/lib/framework/index.js +1 -1
  165. package/lib/framework/output.js +1 -1
  166. package/lib/framework/response.js +1 -1
  167. package/lib/framework/runner-alias.js +1 -1
  168. package/lib/framework/runner.js +1 -1
  169. package/lib/framework/schema-export.js +1 -1
  170. package/lib/framework/types.js +1 -1
  171. package/lib/generated/build-info.js +1 -1
  172. package/lib/help.js +1 -1
  173. package/lib/skills/main.js +1 -1
  174. package/lib/skills/npx-skills-add.js +1 -1
  175. package/lib/telemetry/cli-command-trace.js +1 -1
  176. package/lib/telemetry/cli-help-trace.js +1 -1
  177. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  178. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  179. package/lib/telemetry/send-cli-trace-log.js +1 -1
  180. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  181. package/lib/utils/ai_config.js +1 -1
  182. package/lib/utils/apply-jq-filter.js +1 -1
  183. package/lib/utils/cdn-config.js +1 -1
  184. package/lib/utils/check-sdk-version.js +1 -1
  185. package/lib/utils/cli-version-check.js +1 -1
  186. package/lib/utils/cli-version-policy.js +1 -1
  187. package/lib/utils/config.js +1 -1
  188. package/lib/utils/copy-directory.js +1 -1
  189. package/lib/utils/entity-with-id.js +1 -1
  190. package/lib/utils/file-utils.js +1 -1
  191. package/lib/utils/guides-cdn.js +1 -1
  192. package/lib/utils/http-client.js +1 -1
  193. package/lib/utils/is-non-interactive.js +1 -1
  194. package/lib/utils/logger.js +1 -1
  195. package/lib/utils/params.js +1 -1
  196. package/lib/utils/platform.js +1 -1
  197. package/lib/utils/rules-cdn.js +1 -1
  198. package/lib/utils/sleep.js +1 -1
  199. package/lib/utils/template-replacer.js +1 -1
  200. package/lib/utils/update-notice.js +1 -0
  201. package/lib/utils/version.js +1 -1
  202. package/lib/utils/with-active-cookie.js +1 -1
  203. package/lib/utils/write-cli-side-channel.js +1 -1
  204. package/package.json +1 -1
  205. package/lib/commands/dataset/link-create.js +0 -1
  206. package/lib/commands/dataset/link-delete.js +0 -1
  207. package/lib/commands/dataset/link-shared.js +0 -1
  208. package/lib/commands/dataset/link-update.js +0 -1
  209. package/lib/commands/dataset/links.js +0 -1
@@ -1 +1 @@
1
- (function(_0x3937a3,_0x157115){const _0x1bf410=a171_0x2c82,_0x95f93e=_0x3937a3();while(!![]){try{const _0x1e83e1=-parseInt(_0x1bf410(0xa5))/0x1+parseInt(_0x1bf410(0xa1))/0x2*(-parseInt(_0x1bf410(0x9e))/0x3)+parseInt(_0x1bf410(0xa2))/0x4+-parseInt(_0x1bf410(0x9f))/0x5*(parseInt(_0x1bf410(0xa6))/0x6)+parseInt(_0x1bf410(0x9c))/0x7*(parseInt(_0x1bf410(0xa3))/0x8)+parseInt(_0x1bf410(0xa4))/0x9*(-parseInt(_0x1bf410(0xa0))/0xa)+parseInt(_0x1bf410(0xa7))/0xb;if(_0x1e83e1===_0x157115)break;else _0x95f93e['push'](_0x95f93e['shift']());}catch(_0x35c28b){_0x95f93e['push'](_0x95f93e['shift']());}}}(a171_0x5bed,0x850ff));import{buildSchemaPayload as a171_0x50c5d8}from'@lovrabet/cli-framework';function a171_0x5bed(){const _0x34c644=['537416iRPPHD','8052248KVyAnJ','1963278nNdVqJ','653278yxVVBJ','366pBrnyp','21336700lGhyGH','7Iyqwxd','../commands/registry.js','30aTOImt','52190ocLyxn','30bujVMn','118228kwZrgz'];a171_0x5bed=function(){return _0x34c644;};return a171_0x5bed();}import{buildAllFlags}from'../framework/build-all-flags.js';import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';function a171_0x2c82(_0x4f4994,_0x53d18c){_0x4f4994=_0x4f4994-0x9c;const _0x5bedc6=a171_0x5bed();let _0x2c8215=_0x5bedc6[_0x4f4994];return _0x2c8215;}import{getCliVersion}from'../utils/version.js';export async function buildSchemaPayload(){const _0x5c07c2=a171_0x2c82,{serviceRegistry:_0x4cabb0,findDefinition:_0x2c1eca}=await import(_0x5c07c2(0x9d));return a171_0x50c5d8({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':process.env.GIT_COMMIT??'','globalFlags':GLOBAL_FLAGS,'serviceRegistry':_0x4cabb0,'buildAllFlags':buildAllFlags,'findDefinition':_0x2c1eca});}
1
+ (function(_0x5214c9,_0x258c3f){const _0x3e0fca=a172_0x26b6,_0x943f88=_0x5214c9();while(!![]){try{const _0x2a09c2=-parseInt(_0x3e0fca(0x170))/0x1*(-parseInt(_0x3e0fca(0x175))/0x2)+parseInt(_0x3e0fca(0x171))/0x3*(-parseInt(_0x3e0fca(0x16c))/0x4)+parseInt(_0x3e0fca(0x172))/0x5*(-parseInt(_0x3e0fca(0x16e))/0x6)+-parseInt(_0x3e0fca(0x16f))/0x7*(parseInt(_0x3e0fca(0x16a))/0x8)+parseInt(_0x3e0fca(0x173))/0x9+parseInt(_0x3e0fca(0x16d))/0xa+parseInt(_0x3e0fca(0x174))/0xb;if(_0x2a09c2===_0x258c3f)break;else _0x943f88['push'](_0x943f88['shift']());}catch(_0x408384){_0x943f88['push'](_0x943f88['shift']());}}}(a172_0x5df2,0x38525));function a172_0x26b6(_0x1478a6,_0x22859e){_0x1478a6=_0x1478a6-0x16a;const _0x5df2db=a172_0x5df2();let _0x26b674=_0x5df2db[_0x1478a6];return _0x26b674;}import{buildSchemaPayload as a172_0x1a9a3f}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';function a172_0x5df2(){const _0x3b7047=['2736819vvMZnc','3150719AGTcRk','10ToOkso','56vPKdOI','../commands/registry.js','8VqBtpy','446490qZMgNW','6lLGksM','322931uvDpwV','14159JlLNiY','110601oxLhEb','393030uTYapZ'];a172_0x5df2=function(){return _0x3b7047;};return a172_0x5df2();}import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';import{getCliVersion}from'../utils/version.js';export async function buildSchemaPayload(){const _0x4d128b=a172_0x26b6,{serviceRegistry:_0x7aed80,findDefinition:_0x52ae66}=await import(_0x4d128b(0x16b));return a172_0x1a9a3f({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':process.env.GIT_COMMIT??'','globalFlags':GLOBAL_FLAGS,'serviceRegistry':_0x7aed80,'buildAllFlags':buildAllFlags,'findDefinition':_0x52ae66});}
@@ -1 +1 @@
1
- (function(_0x2cdc8d,_0x1d13e9){var _0x376246=a172_0x2e8d,_0x12a1e8=_0x2cdc8d();while(!![]){try{var _0x5c2ee8=parseInt(_0x376246(0x1b3))/0x1*(-parseInt(_0x376246(0x1b5))/0x2)+parseInt(_0x376246(0x1bb))/0x3*(-parseInt(_0x376246(0x1b7))/0x4)+parseInt(_0x376246(0x1ba))/0x5+parseInt(_0x376246(0x1b4))/0x6+-parseInt(_0x376246(0x1b6))/0x7+parseInt(_0x376246(0x1bc))/0x8*(parseInt(_0x376246(0x1b9))/0x9)+parseInt(_0x376246(0x1b8))/0xa;if(_0x5c2ee8===_0x1d13e9)break;else _0x12a1e8['push'](_0x12a1e8['shift']());}catch(_0x72749e){_0x12a1e8['push'](_0x12a1e8['shift']());}}}(a172_0x597c,0xafb1b));function a172_0x2e8d(_0x442aac,_0x4965ef){_0x442aac=_0x442aac-0x1b3;var _0x597cf0=a172_0x597c();var _0x2e8deb=_0x597cf0[_0x442aac];return _0x2e8deb;}function a172_0x597c(){var _0x425ee8=['690895DxDucU','1725546KlpVov','11410904gSSrCu','4EnEEwm','7963134NBslxq','578938kzvZRD','7291333gZUmit','4urucyr','6025890OoOIBX','9IRlMmn'];a172_0x597c=function(){return _0x425ee8;};return a172_0x597c();}export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat}from'@lovrabet/cli-framework';
1
+ (function(_0x3c20b3,_0x1ccbfb){var _0x2e13b6=a173_0xc967,_0x2a1144=_0x3c20b3();while(!![]){try{var _0x3c28f6=parseInt(_0x2e13b6(0xbc))/0x1*(parseInt(_0x2e13b6(0xbb))/0x2)+parseInt(_0x2e13b6(0xb9))/0x3+-parseInt(_0x2e13b6(0xbd))/0x4*(parseInt(_0x2e13b6(0xb7))/0x5)+parseInt(_0x2e13b6(0xc2))/0x6*(-parseInt(_0x2e13b6(0xbf))/0x7)+parseInt(_0x2e13b6(0xc0))/0x8*(-parseInt(_0x2e13b6(0xbe))/0x9)+parseInt(_0x2e13b6(0xba))/0xa*(-parseInt(_0x2e13b6(0xb8))/0xb)+parseInt(_0x2e13b6(0xc1))/0xc;if(_0x3c28f6===_0x1ccbfb)break;else _0x2a1144['push'](_0x2a1144['shift']());}catch(_0x4b44b9){_0x2a1144['push'](_0x2a1144['shift']());}}}(a173_0x23dc,0x75f4f));export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat}from'@lovrabet/cli-framework';function a173_0xc967(_0x27f609,_0x4f6624){_0x27f609=_0x27f609-0xb7;var _0x23dc49=a173_0x23dc();var _0xc9679d=_0x23dc49[_0x27f609];return _0xc9679d;}function a173_0x23dc(){var _0x536515=['752085eccmCE','77RAWuZj','1505175aCFXCB','1049340elxTwr','1103384bSQPWK','1NhqTEV','12ZNGhjO','294228UYfSkK','504VtYxBb','232deuABt','27942228cFQrfw','63744xzGGbG'];a173_0x23dc=function(){return _0x536515;};return a173_0x23dc();}
@@ -1 +1 @@
1
- const a173_0x519b98=a173_0x5506;(function(_0x568f95,_0x50505f){const _0x565cb6=a173_0x5506,_0x72610e=_0x568f95();while(!![]){try{const _0x5b9cb1=-parseInt(_0x565cb6(0x98))/0x1*(-parseInt(_0x565cb6(0x94))/0x2)+parseInt(_0x565cb6(0x9a))/0x3*(parseInt(_0x565cb6(0xa0))/0x4)+parseInt(_0x565cb6(0xa1))/0x5+-parseInt(_0x565cb6(0x97))/0x6+-parseInt(_0x565cb6(0x9b))/0x7*(-parseInt(_0x565cb6(0x9d))/0x8)+-parseInt(_0x565cb6(0x9c))/0x9*(-parseInt(_0x565cb6(0x99))/0xa)+-parseInt(_0x565cb6(0x9e))/0xb;if(_0x5b9cb1===_0x50505f)break;else _0x72610e['push'](_0x72610e['shift']());}catch(_0x37025f){_0x72610e['push'](_0x72610e['shift']());}}}(a173_0x387e,0x60d67));function a173_0x5506(_0x2494db,_0x30a020){_0x2494db=_0x2494db-0x94;const _0x387e06=a173_0x387e();let _0x55060a=_0x387e06[_0x2494db];return _0x55060a;}export const VERSION=a173_0x519b98(0x95);export const GIT_TAG='v2.1.14-beta.2';export const GIT_COMMIT=a173_0x519b98(0x9f);function a173_0x387e(){const _0x227664=['2.1.14-beta.3','2026-06-10T05:52:11.876Z','2067744CaOTxG','184282pLNbWt','548480PqaJgk','3RBVbbA','56rmjFuu','54KfgaoB','244792Dyuulg','16407512JXPTgt','544bc05','2148728mRGqqX','2844775brPCeW','6SiPrYD'];a173_0x387e=function(){return _0x227664;};return a173_0x387e();}export const BUILD_TIME=a173_0x519b98(0x96);
1
+ const a174_0x330f05=a174_0x4468;(function(_0x5b50ac,_0x358493){const _0x21e33c=a174_0x4468,_0x203a6c=_0x5b50ac();while(!![]){try{const _0x4754b3=-parseInt(_0x21e33c(0xbd))/0x1+parseInt(_0x21e33c(0xb6))/0x2+parseInt(_0x21e33c(0xb5))/0x3*(-parseInt(_0x21e33c(0xb8))/0x4)+-parseInt(_0x21e33c(0xb9))/0x5*(parseInt(_0x21e33c(0xbb))/0x6)+parseInt(_0x21e33c(0xb7))/0x7+-parseInt(_0x21e33c(0xbc))/0x8+parseInt(_0x21e33c(0xb4))/0x9;if(_0x4754b3===_0x358493)break;else _0x203a6c['push'](_0x203a6c['shift']());}catch(_0x2ded96){_0x203a6c['push'](_0x203a6c['shift']());}}}(a174_0x1f46,0x89d9b));function a174_0x1f46(){const _0x37e6f0=['6UqQKSh','252000XwUlMr','19517vQOvkw','2.2.0','a3a6b69','8782200DSGIsU','12924vBksRi','379894vxjOyO','6783280PEsnQo','968kzIloS','2382995iZrruF','v2.2.0-beta.1'];a174_0x1f46=function(){return _0x37e6f0;};return a174_0x1f46();}export const VERSION=a174_0x330f05(0xbe);export const GIT_TAG=a174_0x330f05(0xba);export const GIT_COMMIT=a174_0x330f05(0xbf);function a174_0x4468(_0xeeba50,_0x227e91){_0xeeba50=_0xeeba50-0xb4;const _0x1f46a3=a174_0x1f46();let _0x446847=_0x1f46a3[_0xeeba50];return _0x446847;}export const BUILD_TIME='2026-06-11T08:59:05.741Z';
package/lib/help.js CHANGED
@@ -1 +1 @@
1
- function a174_0x49c4(){var _0x3c265d=['9XtkCUk','\x20--help','10HVNtDi','2584085ziUcSw','599244fvVfyS','3CSiKux','bold','2137384LCqkRj','384346TsPKKw','214160uenuWC','5786100chjQPR','\x20to\x20view\x20available\x20commands.','log','977490aLsWft'];a174_0x49c4=function(){return _0x3c265d;};return a174_0x49c4();}function a174_0xac13(_0x1a358a,_0x290dac){_0x1a358a=_0x1a358a-0xc3;var _0x49c497=a174_0x49c4();var _0xac1395=_0x49c497[_0x1a358a];return _0xac1395;}(function(_0x5428a8,_0xe77e99){var _0x2f2c07=a174_0xac13,_0x564e20=_0x5428a8();while(!![]){try{var _0x2257bf=parseInt(_0x2f2c07(0xc7))/0x1+-parseInt(_0x2f2c07(0xc6))/0x2*(parseInt(_0x2f2c07(0xc3))/0x3)+-parseInt(_0x2f2c07(0xd0))/0x4+-parseInt(_0x2f2c07(0xce))/0x5*(parseInt(_0x2f2c07(0xcb))/0x6)+parseInt(_0x2f2c07(0xcf))/0x7+-parseInt(_0x2f2c07(0xc5))/0x8*(parseInt(_0x2f2c07(0xcc))/0x9)+parseInt(_0x2f2c07(0xc8))/0xa;if(_0x2257bf===_0xe77e99)break;else _0x564e20['push'](_0x564e20['shift']());}catch(_0x51be28){_0x564e20['push'](_0x564e20['shift']());}}}(a174_0x49c4,0x3767a));import a174_0xf555ed from'chalk';import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';export function showHelp(){var _0x4751ff=a174_0xac13;console[_0x4751ff(0xca)](),console[_0x4751ff(0xca)](a174_0xf555ed['green'][_0x4751ff(0xc4)]('\x20\x20'+CLI_DISPLAY_NAME)),console[_0x4751ff(0xca)](),console['log']('\x20\x20Use\x20'+a174_0xf555ed['green'][_0x4751ff(0xc4)](CLI_BIN_NAME+_0x4751ff(0xcd))+_0x4751ff(0xc9)),console['log']();}
1
+ (function(_0x4a625a,_0x139a44){var _0x2cb5ca=a175_0x3403,_0x39ca3d=_0x4a625a();while(!![]){try{var _0x3a86f0=-parseInt(_0x2cb5ca(0x16f))/0x1+-parseInt(_0x2cb5ca(0x16e))/0x2+parseInt(_0x2cb5ca(0x170))/0x3*(-parseInt(_0x2cb5ca(0x175))/0x4)+-parseInt(_0x2cb5ca(0x169))/0x5*(parseInt(_0x2cb5ca(0x16a))/0x6)+parseInt(_0x2cb5ca(0x168))/0x7+parseInt(_0x2cb5ca(0x167))/0x8+parseInt(_0x2cb5ca(0x172))/0x9*(parseInt(_0x2cb5ca(0x173))/0xa);if(_0x3a86f0===_0x139a44)break;else _0x39ca3d['push'](_0x39ca3d['shift']());}catch(_0x29ff39){_0x39ca3d['push'](_0x39ca3d['shift']());}}}(a175_0x14be,0xaa947));import a175_0xd7672b from'chalk';function a175_0x3403(_0x2d894a,_0x153560){_0x2d894a=_0x2d894a-0x166;var _0x14be1a=a175_0x14be();var _0x34034b=_0x14be1a[_0x2d894a];return _0x34034b;}import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';export function showHelp(){var _0x25b610=a175_0x3403;console[_0x25b610(0x16c)](),console[_0x25b610(0x16c)](a175_0xd7672b[_0x25b610(0x16b)][_0x25b610(0x174)]('\x20\x20'+CLI_DISPLAY_NAME)),console[_0x25b610(0x16c)](),console['log'](_0x25b610(0x16d)+a175_0xd7672b['green'][_0x25b610(0x174)](CLI_BIN_NAME+_0x25b610(0x166))+_0x25b610(0x171)),console[_0x25b610(0x16c)]();}function a175_0x14be(){var _0x360888=['5664280GWsXSq','bold','45696feGpBv','\x20--help','263480CKERvP','2260839hyQLEC','2083805THVKFb','18Ndduwg','green','log','\x20\x20Use\x20','1324620qvNqbC','996560llVSDL','336hgxcyj','\x20to\x20view\x20available\x20commands.','72GFYguX'];a175_0x14be=function(){return _0x360888;};return a175_0x14be();}
@@ -1 +1 @@
1
- (function(_0x37411d,_0x3094a7){const _0x1cdc54=a175_0x3cdf,_0x551ead=_0x37411d();while(!![]){try{const _0xf6f825=parseInt(_0x1cdc54(0x118))/0x1+-parseInt(_0x1cdc54(0x133))/0x2+parseInt(_0x1cdc54(0x115))/0x3*(parseInt(_0x1cdc54(0x120))/0x4)+parseInt(_0x1cdc54(0x10d))/0x5+-parseInt(_0x1cdc54(0x129))/0x6+-parseInt(_0x1cdc54(0x11f))/0x7*(-parseInt(_0x1cdc54(0x11e))/0x8)+-parseInt(_0x1cdc54(0x125))/0x9*(-parseInt(_0x1cdc54(0x12a))/0xa);if(_0xf6f825===_0x3094a7)break;else _0x551ead['push'](_0x551ead['shift']());}catch(_0x4f07ed){_0x551ead['push'](_0x551ead['shift']());}}}(a175_0x3555,0x1de32));function a175_0x3cdf(_0xf66966,_0x1a5cc4){_0xf66966=_0xf66966-0x10d;const _0x35553c=a175_0x3555();let _0x3cdf81=_0x35553c[_0xf66966];return _0x3cdf81;}import{logger}from'../utils/logger.js';import{CLI_BIN_NAME}from'../constant/cli.js';function a175_0x3555(){const _0xc874e7=['30qAqNzZ','slice','argv','\x20skill\x20install\x0a\x0aEquivalent\x20command:\x20','--help','\x0aAvailable\x20commands:','exit','length','Error:\x20Unsupported\x20command:\x20','219530yfDEey','530180mDEfyM','setLogPath','log','help','(empty)','Equivalent\x20command:\x20','replace','\x0aRabetbase\x20CLI\x20Skill\x20-\x20Developer\x20Workflow\x20Installation\x20Tool\x0a\x0aUsage:\x0a\x20\x20','29553xVEOqW','toLowerCase','entries','76912OuosbF','push','error','\x20skill\x20install\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Interactive\x20skill\x20installation','has','dangerously-bff-save','296pbMblR','43274RFCTOX','12nVvNzA','\x20skill\x20--help\x0a\x20\x20','add','from','startsWith','2115kJQRkI','includes','cwd','skill','1258542jHjpCC'];a175_0x3555=function(){return _0xc874e7;};return a175_0x3555();}import{NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE}from'../skills/npx-skills-add.js';export function camelCaseFlagsToKebab(_0x2ca409){const _0x2d9a6c=a175_0x3cdf,_0x4e486e=[];for(const [_0x4150eb,_0x498e0f]of Object[_0x2d9a6c(0x117)](_0x2ca409)){if(_0x498e0f===!![]){const _0x9facdd=_0x4150eb[_0x2d9a6c(0x113)](/([A-Z])/g,'-$1')[_0x2d9a6c(0x116)]();_0x4e486e[_0x2d9a6c(0x119)](_0x9facdd);}}return _0x4e486e;}export function parseDynamicFlags(){const _0x1d3982=a175_0x3cdf,_0x457730=[];for(let _0x13f36a=0x3;_0x13f36a<process[_0x1d3982(0x12c)][_0x1d3982(0x131)];_0x13f36a++){const _0x490134=process[_0x1d3982(0x12c)][_0x13f36a];if(_0x490134&&_0x490134[_0x1d3982(0x124)]('--')){const _0x15f830=_0x490134[_0x1d3982(0x12b)](0x2);_0x15f830&&!_0x15f830[_0x1d3982(0x126)]('=')&&_0x457730[_0x1d3982(0x119)](_0x15f830);}}return _0x457730;}export function getAllProvidedFlags(_0x460b98){const _0x141f3c=a175_0x3cdf,_0x745c2a=camelCaseFlagsToKebab(_0x460b98),_0xa28d4f=parseDynamicFlags(),_0xe5fa6f=new Set([..._0x745c2a,..._0xa28d4f]);return Array[_0x141f3c(0x123)](_0xe5fa6f);}export function normalizeLegacyBffSaveFlags(_0x2385a9){const _0x3cf15e=a175_0x3cdf,_0x6444cc=new Set(_0x2385a9);return _0x6444cc[_0x3cf15e(0x11c)](_0x3cf15e(0x11d))&&_0x6444cc[_0x3cf15e(0x122)]('enable-bff-save'),Array[_0x3cf15e(0x123)](_0x6444cc);}const SKILLS_INSTALL_COMMAND_LINE=NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE;export async function skillsCommand(_0x118d64,_0x4af937,_0x2217cf){const _0x48e286=a175_0x3cdf;logger[_0x48e286(0x10e)](process[_0x48e286(0x127)]());if(_0x2217cf?.[_0x48e286(0x110)]||_0x118d64===_0x48e286(0x12e)){showHelp();return;}console[_0x48e286(0x11a)](_0x48e286(0x132)+(_0x118d64||_0x48e286(0x111))),console[_0x48e286(0x10f)](_0x48e286(0x12f)),console['log']('\x20\x20'+CLI_BIN_NAME+_0x48e286(0x11b)),console[_0x48e286(0x10f)]('\x20\x20'+CLI_BIN_NAME+'\x20skill\x20--help\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Show\x20help\x0a'),console[_0x48e286(0x10f)](''),console[_0x48e286(0x10f)](_0x48e286(0x112)+SKILLS_INSTALL_COMMAND_LINE),logger['error'](_0x48e286(0x128),'不支持的命令:\x20'+_0x118d64),process[_0x48e286(0x130)](0x1);}function showHelp(){const _0x4312a5=a175_0x3cdf;console[_0x4312a5(0x10f)](_0x4312a5(0x114)+CLI_BIN_NAME+_0x4312a5(0x121)+CLI_BIN_NAME+_0x4312a5(0x12d)+SKILLS_INSTALL_COMMAND_LINE+'\x0a\x0aNote:\x20npx\x20skills\x20selects\x20the\x20agent\x20and\x20writes\x20files;\x20guides\x20live\x20under\x20skills/rabetbase/guides/.\x0a');}
1
+ (function(_0x213893,_0x11eed9){const _0x328836=a176_0x547f,_0x2ab856=_0x213893();while(!![]){try{const _0x302e3a=-parseInt(_0x328836(0x19c))/0x1*(parseInt(_0x328836(0x186))/0x2)+parseInt(_0x328836(0x182))/0x3+-parseInt(_0x328836(0x18a))/0x4+-parseInt(_0x328836(0x198))/0x5+-parseInt(_0x328836(0x193))/0x6+parseInt(_0x328836(0x184))/0x7+parseInt(_0x328836(0x185))/0x8;if(_0x302e3a===_0x11eed9)break;else _0x2ab856['push'](_0x2ab856['shift']());}catch(_0x50a670){_0x2ab856['push'](_0x2ab856['shift']());}}}(a176_0x1b95,0xaa729));import{logger}from'../utils/logger.js';function a176_0x1b95(){const _0x4d4f31=['includes','Equivalent\x20command:\x20','--help','has','push','270456NgpZPd','exit','2618112zEpRpm','25107728qwqlTA','595240WjockO','\x20skill\x20install\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Interactive\x20skill\x20installation','-$1','log','5438456rjBXnA','\x20skill\x20--help\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Show\x20help\x0a','\x0a\x0aNote:\x20npx\x20skills\x20selects\x20the\x20agent\x20and\x20writes\x20files;\x20guides\x20live\x20under\x20skills/rabetbase/guides/.\x0a','\x20skill\x20--help\x0a\x20\x20','setLogPath','slice','from','dangerously-bff-save','不支持的命令:\x20','3568242QlVYqw','\x0aAvailable\x20commands:','cwd','argv','error','3262700kHWqYE','\x20skill\x20install\x0a\x0aEquivalent\x20command:\x20','skill','replace','1oBnyCz'];a176_0x1b95=function(){return _0x4d4f31;};return a176_0x1b95();}import{CLI_BIN_NAME}from'../constant/cli.js';function a176_0x547f(_0x3e3982,_0x195075){_0x3e3982=_0x3e3982-0x17d;const _0x1b9570=a176_0x1b95();let _0x547faa=_0x1b9570[_0x3e3982];return _0x547faa;}import{NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE}from'../skills/npx-skills-add.js';export function camelCaseFlagsToKebab(_0x299cf){const _0x5a98fe=a176_0x547f,_0x3458a3=[];for(const [_0x3e11a5,_0x3f103c]of Object['entries'](_0x299cf)){if(_0x3f103c===!![]){const _0x92ca48=_0x3e11a5[_0x5a98fe(0x19b)](/([A-Z])/g,_0x5a98fe(0x188))['toLowerCase']();_0x3458a3[_0x5a98fe(0x181)](_0x92ca48);}}return _0x3458a3;}export function parseDynamicFlags(){const _0x25bfca=a176_0x547f,_0x42ea37=[];for(let _0x22b92c=0x3;_0x22b92c<process[_0x25bfca(0x196)]['length'];_0x22b92c++){const _0x8e7d3e=process[_0x25bfca(0x196)][_0x22b92c];if(_0x8e7d3e&&_0x8e7d3e['startsWith']('--')){const _0x35130e=_0x8e7d3e[_0x25bfca(0x18f)](0x2);_0x35130e&&!_0x35130e[_0x25bfca(0x17d)]('=')&&_0x42ea37['push'](_0x35130e);}}return _0x42ea37;}export function getAllProvidedFlags(_0x3fff4c){const _0x128633=a176_0x547f,_0x178f1e=camelCaseFlagsToKebab(_0x3fff4c),_0x2160e5=parseDynamicFlags(),_0x3ec0ee=new Set([..._0x178f1e,..._0x2160e5]);return Array[_0x128633(0x190)](_0x3ec0ee);}export function normalizeLegacyBffSaveFlags(_0x78118){const _0x1f1673=a176_0x547f,_0x545810=new Set(_0x78118);return _0x545810[_0x1f1673(0x180)](_0x1f1673(0x191))&&_0x545810['add']('enable-bff-save'),Array[_0x1f1673(0x190)](_0x545810);}const SKILLS_INSTALL_COMMAND_LINE=NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE;export async function skillsCommand(_0x43964e,_0x534b55,_0x4ab919){const _0x27fc86=a176_0x547f;logger[_0x27fc86(0x18e)](process[_0x27fc86(0x195)]());if(_0x4ab919?.['help']||_0x43964e===_0x27fc86(0x17f)){showHelp();return;}console[_0x27fc86(0x197)]('Error:\x20Unsupported\x20command:\x20'+(_0x43964e||'(empty)')),console[_0x27fc86(0x189)](_0x27fc86(0x194)),console[_0x27fc86(0x189)]('\x20\x20'+CLI_BIN_NAME+_0x27fc86(0x187)),console[_0x27fc86(0x189)]('\x20\x20'+CLI_BIN_NAME+_0x27fc86(0x18b)),console['log'](''),console['log'](_0x27fc86(0x17e)+SKILLS_INSTALL_COMMAND_LINE),logger['error'](_0x27fc86(0x19a),_0x27fc86(0x192)+_0x43964e),process[_0x27fc86(0x183)](0x1);}function showHelp(){const _0x13ccba=a176_0x547f;console['log']('\x0aRabetbase\x20CLI\x20Skill\x20-\x20Developer\x20Workflow\x20Installation\x20Tool\x0a\x0aUsage:\x0a\x20\x20'+CLI_BIN_NAME+_0x13ccba(0x18d)+CLI_BIN_NAME+_0x13ccba(0x199)+SKILLS_INSTALL_COMMAND_LINE+_0x13ccba(0x18c));}
@@ -1 +1 @@
1
- function a176_0x5ea3(_0x3d3373,_0x56df51){_0x3d3373=_0x3d3373-0xc9;const _0xde43b0=a176_0xde43();let _0x5ea391=_0xde43b0[_0x3d3373];return _0x5ea391;}const a176_0x480ba7=a176_0x5ea3;(function(_0x4510b2,_0x49f18d){const _0x1e0882=a176_0x5ea3,_0x550951=_0x4510b2();while(!![]){try{const _0x145d36=-parseInt(_0x1e0882(0xd0))/0x1*(-parseInt(_0x1e0882(0xd1))/0x2)+parseInt(_0x1e0882(0xd3))/0x3+parseInt(_0x1e0882(0xd6))/0x4*(parseInt(_0x1e0882(0xd9))/0x5)+parseInt(_0x1e0882(0xd4))/0x6*(parseInt(_0x1e0882(0xde))/0x7)+-parseInt(_0x1e0882(0xd8))/0x8+-parseInt(_0x1e0882(0xe3))/0x9+-parseInt(_0x1e0882(0xd5))/0xa;if(_0x145d36===_0x49f18d)break;else _0x550951['push'](_0x550951['shift']());}catch(_0x1b71c6){_0x550951['push'](_0x550951['shift']());}}}(a176_0xde43,0x54134));import{spawnSync}from'node:child_process';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=a176_0x480ba7(0xe0);export const NPX_SKILLS_SUBCOMMAND_ADD=a176_0x480ba7(0xe5);export const NPX_SKILLS_FLAG_SKILL='--skill';export const RABETBASE_SKILL_SOURCE='lovrabet/rabetbase';function a176_0xde43(){const _0x123c1c=['1gPndYm','1252684fGyvIO','inherit','1987950oriqrQ','2892hQwkmj','1410900FrCQRA','4UZRSNX','log','5338136jTHSdf','673760VHyJlJ','remove','unknown','push','skill','5495XjRMHG','stdio','skills','stderr','stdout','5844465xcCPDt','npx','add','join','yes','status','toString','exit\x20','pipe','trim'];a176_0xde43=function(){return _0x123c1c;};return a176_0xde43();}export const LEGACY_RABETBASE_SKILL_SOURCE='lovrabet/lovrabet-skill';export const DEFAULT_RABETBASE_SKILL_NAME='Lovrabet';export function buildNpxSkillsAddArgv(_0x13a771){const _0x1da423=a176_0x480ba7,_0x21ecdb=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE];return _0x13a771&&_0x21ecdb[_0x1da423(0xdc)](NPX_SKILLS_FLAG_SKILL,_0x13a771),_0x21ecdb;}export const NPX_SKILLS_ADD_COMMAND_LINE=[a176_0x480ba7(0xe4),...buildNpxSkillsAddArgv()][a176_0x480ba7(0xc9)]('\x20');export const NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE=[a176_0x480ba7(0xe4),NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][a176_0x480ba7(0xc9)]('\x20');export function shouldSkipNpxSkillsAdd(){return process.env.RABETBASE_SKIP_NPX_SKILLS==='1';}export function runNpxSkillsAdd(_0x141d02,_0x35247a){const _0x1d5084=a176_0x480ba7;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x129ece=_0x35247a?.[_0x1d5084(0xdf)]??_0x1d5084(0xd2),_0x48454b=resolveNpmBin('npx'),_0x3a6b61=buildNpxSkillsAddArgv(_0x35247a?.[_0x1d5084(0xdd)]),_0x357074=['npx',..._0x3a6b61]['join']('\x20');console[_0x1d5084(0xd7)]('*\x20'+_0x357074);const _0x1a17e3=spawnSync(_0x48454b,_0x3a6b61,{'cwd':_0x141d02,'stdio':_0x129ece,'env':process.env,'shell':![]}),_0x4beff0=_0x1a17e3[_0x1d5084(0xcb)];if(_0x4beff0===0x0)return{'ok':!![],'status':0x0};let _0x160df7=_0x1d5084(0xcd)+(_0x4beff0??_0x1d5084(0xdb));if(_0x129ece==='pipe'){const _0x509bc5=_0x1a17e3['stderr']?_0x1a17e3[_0x1d5084(0xe1)]['toString']()[_0x1d5084(0xcf)]():'',_0x4c939b=_0x1a17e3[_0x1d5084(0xe2)]?_0x1a17e3[_0x1d5084(0xe2)][_0x1d5084(0xcc)]()[_0x1d5084(0xcf)]():'';if(_0x509bc5)_0x160df7=_0x509bc5;else{if(_0x4c939b)_0x160df7=_0x4c939b;}}return{'ok':![],'status':_0x4beff0??null,'error':_0x160df7};}export function runNpxSkillsRemove(_0x4cc2ff,_0x3217f2,_0x55b45e=LEGACY_RABETBASE_SKILL_SOURCE){const _0x23e46a=a176_0x480ba7;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x22b613=_0x3217f2?.[_0x23e46a(0xdf)]??_0x23e46a(0xd2),_0x53f679=resolveNpmBin(_0x23e46a(0xe4)),_0x474700=[NPX_FLAG_YES,NPX_SKILLS_CLI,_0x23e46a(0xda),_0x55b45e,NPX_SKILLS_FLAG_SKILL,_0x3217f2?.[_0x23e46a(0xdd)]??DEFAULT_RABETBASE_SKILL_NAME,..._0x3217f2?.[_0x23e46a(0xca)]?['-y']:[]],_0x214ba5=[_0x53f679,..._0x474700][_0x23e46a(0xc9)]('\x20');console[_0x23e46a(0xd7)]('*\x20'+_0x214ba5);const _0xc08456=spawnSync(_0x53f679,_0x474700,{'cwd':_0x4cc2ff,'stdio':_0x22b613,'env':process.env,'shell':![]}),_0x4f9b72=_0xc08456[_0x23e46a(0xcb)];if(_0x4f9b72===0x0)return{'ok':!![],'status':0x0};let _0x29018d=_0x23e46a(0xcd)+(_0x4f9b72??_0x23e46a(0xdb));if(_0x22b613===_0x23e46a(0xce)){const _0x18866e=_0xc08456['stderr']?_0xc08456[_0x23e46a(0xe1)][_0x23e46a(0xcc)]()[_0x23e46a(0xcf)]():'',_0x465871=_0xc08456[_0x23e46a(0xe2)]?_0xc08456[_0x23e46a(0xe2)]['toString']()['trim']():'';if(_0x18866e)_0x29018d=_0x18866e;else{if(_0x465871)_0x29018d=_0x465871;}}return{'ok':![],'status':_0x4f9b72??null,'error':_0x29018d};}export function runNpxSkillsAddGlobal(_0x5c0c0d,_0x5658ca,_0x4b6c66){const _0x4847ce=a176_0x480ba7;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x5a33fd=_0x4b6c66?.[_0x4847ce(0xdf)]??'inherit',_0x45ccc2=resolveNpmBin(_0x4847ce(0xe4)),_0x1fda1a=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x5658ca,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES],_0x33c7f0=[_0x4847ce(0xe4),NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x5658ca,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][_0x4847ce(0xc9)]('\x20');console[_0x4847ce(0xd7)]('*\x20'+_0x33c7f0);const _0x579a95=spawnSync(_0x45ccc2,_0x1fda1a,{'cwd':_0x5c0c0d,'stdio':_0x5a33fd,'env':process.env,'shell':![]}),_0x57e45e=_0x579a95[_0x4847ce(0xcb)];if(_0x57e45e===0x0)return{'ok':!![],'status':0x0};let _0x90d538=_0x4847ce(0xcd)+(_0x57e45e??'unknown');if(_0x5a33fd===_0x4847ce(0xce)){const _0x578657=_0x579a95[_0x4847ce(0xe1)]?_0x579a95[_0x4847ce(0xe1)][_0x4847ce(0xcc)]()[_0x4847ce(0xcf)]():'',_0x10c429=_0x579a95[_0x4847ce(0xe2)]?_0x579a95[_0x4847ce(0xe2)][_0x4847ce(0xcc)]()[_0x4847ce(0xcf)]():'';if(_0x578657)_0x90d538=_0x578657;else{if(_0x10c429)_0x90d538=_0x10c429;}}return{'ok':![],'status':_0x57e45e??null,'error':_0x90d538};}
1
+ function a177_0x1ceb(_0x335dc7,_0x3cf440){_0x335dc7=_0x335dc7-0x16d;const _0x3ff3b0=a177_0x3ff3();let _0x1cebe4=_0x3ff3b0[_0x335dc7];return _0x1cebe4;}const a177_0x4e0043=a177_0x1ceb;(function(_0x56dd65,_0x34abd7){const _0x33591e=a177_0x1ceb,_0x27ac51=_0x56dd65();while(!![]){try{const _0x43b64a=-parseInt(_0x33591e(0x17a))/0x1*(-parseInt(_0x33591e(0x181))/0x2)+-parseInt(_0x33591e(0x187))/0x3*(parseInt(_0x33591e(0x185))/0x4)+-parseInt(_0x33591e(0x16d))/0x5+parseInt(_0x33591e(0x174))/0x6+parseInt(_0x33591e(0x17c))/0x7*(parseInt(_0x33591e(0x17d))/0x8)+-parseInt(_0x33591e(0x184))/0x9+parseInt(_0x33591e(0x178))/0xa;if(_0x43b64a===_0x34abd7)break;else _0x27ac51['push'](_0x27ac51['shift']());}catch(_0x5c97dc){_0x27ac51['push'](_0x27ac51['shift']());}}}(a177_0x3ff3,0xa72c2));import{spawnSync}from'node:child_process';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=a177_0x4e0043(0x17f);export const NPX_SKILLS_FLAG_SKILL='--skill';export const RABETBASE_SKILL_SOURCE='lovrabet/rabetbase';export const LEGACY_RABETBASE_SKILL_SOURCE=a177_0x4e0043(0x176);function a177_0x3ff3(){const _0x4ad679=['10395660BuPYJu','log','108AFvzsI','pipe','7twwFgb','3027816xuJfxs','remove','add','inherit','24474gKFrvn','push','stderr','12135078TxUyeA','9148PuCWTA','unknown','75zUNJbZ','toString','6123855KGWKkq','stdout','status','stdio','skill','trim','exit\x20','3452322eFcvjB','join','lovrabet/lovrabet-skill','npx'];a177_0x3ff3=function(){return _0x4ad679;};return a177_0x3ff3();}export const DEFAULT_RABETBASE_SKILL_NAME='Lovrabet';export function buildNpxSkillsAddArgv(_0x558358){const _0x4e0025=a177_0x4e0043,_0xb9eecd=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE];return _0x558358&&_0xb9eecd[_0x4e0025(0x182)](NPX_SKILLS_FLAG_SKILL,_0x558358),_0xb9eecd;}export const NPX_SKILLS_ADD_COMMAND_LINE=[a177_0x4e0043(0x177),...buildNpxSkillsAddArgv()][a177_0x4e0043(0x175)]('\x20');export const NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE=[a177_0x4e0043(0x177),NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][a177_0x4e0043(0x175)]('\x20');export function shouldSkipNpxSkillsAdd(){return process.env.RABETBASE_SKIP_NPX_SKILLS==='1';}export function runNpxSkillsAdd(_0x2d4df7,_0x260d55){const _0x5d4d0d=a177_0x4e0043;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0xd5e09f=_0x260d55?.[_0x5d4d0d(0x170)]??_0x5d4d0d(0x180),_0x1e26ff=resolveNpmBin(_0x5d4d0d(0x177)),_0x1ebb3c=buildNpxSkillsAddArgv(_0x260d55?.[_0x5d4d0d(0x171)]),_0xdee9ff=[_0x5d4d0d(0x177),..._0x1ebb3c][_0x5d4d0d(0x175)]('\x20');console['log']('*\x20'+_0xdee9ff);const _0x38f1f1=spawnSync(_0x1e26ff,_0x1ebb3c,{'cwd':_0x2d4df7,'stdio':_0xd5e09f,'env':process.env,'shell':![]}),_0x1749f2=_0x38f1f1[_0x5d4d0d(0x16f)];if(_0x1749f2===0x0)return{'ok':!![],'status':0x0};let _0x15baef=_0x5d4d0d(0x173)+(_0x1749f2??'unknown');if(_0xd5e09f===_0x5d4d0d(0x17b)){const _0xca6fa9=_0x38f1f1[_0x5d4d0d(0x183)]?_0x38f1f1[_0x5d4d0d(0x183)][_0x5d4d0d(0x188)]()[_0x5d4d0d(0x172)]():'',_0x54ddbb=_0x38f1f1['stdout']?_0x38f1f1['stdout'][_0x5d4d0d(0x188)]()[_0x5d4d0d(0x172)]():'';if(_0xca6fa9)_0x15baef=_0xca6fa9;else{if(_0x54ddbb)_0x15baef=_0x54ddbb;}}return{'ok':![],'status':_0x1749f2??null,'error':_0x15baef};}export function runNpxSkillsRemove(_0x586a86,_0x59799a,_0x163798=LEGACY_RABETBASE_SKILL_SOURCE){const _0x290b4b=a177_0x4e0043;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x112d11=_0x59799a?.[_0x290b4b(0x170)]??_0x290b4b(0x180),_0xa1fb33=resolveNpmBin('npx'),_0x374031=[NPX_FLAG_YES,NPX_SKILLS_CLI,_0x290b4b(0x17e),_0x163798,NPX_SKILLS_FLAG_SKILL,_0x59799a?.[_0x290b4b(0x171)]??DEFAULT_RABETBASE_SKILL_NAME,..._0x59799a?.['yes']?['-y']:[]],_0x5beb51=[_0xa1fb33,..._0x374031][_0x290b4b(0x175)]('\x20');console['log']('*\x20'+_0x5beb51);const _0x4f67e2=spawnSync(_0xa1fb33,_0x374031,{'cwd':_0x586a86,'stdio':_0x112d11,'env':process.env,'shell':![]}),_0x132448=_0x4f67e2[_0x290b4b(0x16f)];if(_0x132448===0x0)return{'ok':!![],'status':0x0};let _0x2218ed=_0x290b4b(0x173)+(_0x132448??_0x290b4b(0x186));if(_0x112d11===_0x290b4b(0x17b)){const _0x560006=_0x4f67e2[_0x290b4b(0x183)]?_0x4f67e2[_0x290b4b(0x183)][_0x290b4b(0x188)]()[_0x290b4b(0x172)]():'',_0x503f1b=_0x4f67e2[_0x290b4b(0x16e)]?_0x4f67e2[_0x290b4b(0x16e)][_0x290b4b(0x188)]()[_0x290b4b(0x172)]():'';if(_0x560006)_0x2218ed=_0x560006;else{if(_0x503f1b)_0x2218ed=_0x503f1b;}}return{'ok':![],'status':_0x132448??null,'error':_0x2218ed};}export function runNpxSkillsAddGlobal(_0x3a5524,_0x513dda,_0x19e11f){const _0x3f417b=a177_0x4e0043;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x5af704=_0x19e11f?.[_0x3f417b(0x170)]??_0x3f417b(0x180),_0x9d3b3d=resolveNpmBin(_0x3f417b(0x177)),_0x517a0e=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x513dda,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES],_0x1d73e5=['npx',NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x513dda,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][_0x3f417b(0x175)]('\x20');console[_0x3f417b(0x179)]('*\x20'+_0x1d73e5);const _0x316da2=spawnSync(_0x9d3b3d,_0x517a0e,{'cwd':_0x3a5524,'stdio':_0x5af704,'env':process.env,'shell':![]}),_0x1a2d6a=_0x316da2[_0x3f417b(0x16f)];if(_0x1a2d6a===0x0)return{'ok':!![],'status':0x0};let _0x3f0acc='exit\x20'+(_0x1a2d6a??_0x3f417b(0x186));if(_0x5af704===_0x3f417b(0x17b)){const _0x1d4d3d=_0x316da2[_0x3f417b(0x183)]?_0x316da2[_0x3f417b(0x183)]['toString']()[_0x3f417b(0x172)]():'',_0x512ccf=_0x316da2[_0x3f417b(0x16e)]?_0x316da2[_0x3f417b(0x16e)][_0x3f417b(0x188)]()[_0x3f417b(0x172)]():'';if(_0x1d4d3d)_0x3f0acc=_0x1d4d3d;else{if(_0x512ccf)_0x3f0acc=_0x512ccf;}}return{'ok':![],'status':_0x1a2d6a??null,'error':_0x3f0acc};}
@@ -1 +1 @@
1
- (function(_0x642ce0,_0x59a9d7){const _0x587f47=a177_0x1797,_0x424c55=_0x642ce0();while(!![]){try{const _0x5a39e6=parseInt(_0x587f47(0x1fa))/0x1*(parseInt(_0x587f47(0x1fc))/0x2)+parseInt(_0x587f47(0x1f7))/0x3+parseInt(_0x587f47(0x1f3))/0x4*(-parseInt(_0x587f47(0x1fd))/0x5)+parseInt(_0x587f47(0x204))/0x6*(-parseInt(_0x587f47(0x201))/0x7)+-parseInt(_0x587f47(0x205))/0x8*(parseInt(_0x587f47(0x1f5))/0x9)+-parseInt(_0x587f47(0x1f9))/0xa+parseInt(_0x587f47(0x202))/0xb*(parseInt(_0x587f47(0x1f6))/0xc);if(_0x5a39e6===_0x59a9d7)break;else _0x424c55['push'](_0x424c55['shift']());}catch(_0x4a09e6){_0x424c55['push'](_0x424c55['shift']());}}}(a177_0xc75a,0x4487a));function a177_0x1797(_0x22ddda,_0x2db2cf){_0x22ddda=_0x22ddda-0x1f2;const _0xc75a71=a177_0xc75a();let _0x1797f1=_0xc75a71[_0x22ddda];return _0x1797f1;}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];function isSensitiveKey(_0x1a6c40){const _0x839eaa=a177_0x1797;return SENSITIVE_PATTERNS[_0x839eaa(0x1f8)](_0x1b2426=>_0x1b2426['test'](_0x1a6c40));}function sanitizeFlags(_0x3c13bf){const _0x438f76=a177_0x1797,_0x17ecbf={};for(const [_0x5ec3ad,_0x48364a]of Object[_0x438f76(0x200)](_0x3c13bf)){isSensitiveKey(_0x5ec3ad)?_0x17ecbf[_0x5ec3ad]=_0x48364a!=null&&_0x48364a!==''?_0x438f76(0x207):_0x48364a:_0x17ecbf[_0x5ec3ad]=_0x48364a;}return _0x17ecbf;}function a177_0xc75a(){const _0x5844c8=['1286610MlmCuO','4377928KQAkGJ','flags','[REDACTED]','command','error','3356JJGcze','message','9XCbBCy','198732qsbIVm','895305rNPdgs','some','2189800QQCthN','3593lKagDZ','durationMs','146BFSyBS','1845RYTIvt','stringify','rabetbase.command','entries','7RuWUuB','671HHsQtj','service'];a177_0xc75a=function(){return _0x5844c8;};return a177_0xc75a();}export async function reportCommandTrace(_0x1b85f3){const _0x30776d=a177_0x1797;try{const _0x3ce96e=sanitizeFlags(_0x1b85f3[_0x30776d(0x206)]);await sendCliTraceLog({'spanName':_0x30776d(0x1ff),'logData':{'command.cli_version':getCliVersion(),'command.service':_0x1b85f3[_0x30776d(0x203)],'command.name':_0x1b85f3[_0x30776d(0x208)],'command.flags':JSON[_0x30776d(0x1fe)](_0x3ce96e),..._0x1b85f3[_0x30776d(0x1fb)]!=null?{'command.duration_ms':_0x1b85f3[_0x30776d(0x1fb)]}:{},..._0x1b85f3[_0x30776d(0x1f2)]?{'command.error':_0x1b85f3[_0x30776d(0x1f2)]instanceof Error?_0x1b85f3['error'][_0x30776d(0x1f4)]:String(_0x1b85f3[_0x30776d(0x1f2)])}:{}}});}catch{}}
1
+ function a178_0x334f(){const _0x160019=['3220086rRvKaH','flags','error','some','60eZpjJj','stringify','90vGmKwo','2885LmVezu','2181802JFDIeW','4exaIiX','durationMs','814088ryOlOX','command','entries','rabetbase.command','4386560PKrANt','[REDACTED]','service','56200KaKQOf','1067170duavmn'];a178_0x334f=function(){return _0x160019;};return a178_0x334f();}(function(_0xaa5682,_0x476728){const _0x7b9a32=a178_0x1ac8,_0x136971=_0xaa5682();while(!![]){try{const _0xaf32e4=-parseInt(_0x7b9a32(0x145))/0x1+parseInt(_0x7b9a32(0x13d))/0x2+parseInt(_0x7b9a32(0x146))/0x3*(parseInt(_0x7b9a32(0x14f))/0x4)+parseInt(_0x7b9a32(0x14d))/0x5*(-parseInt(_0x7b9a32(0x14a))/0x6)+-parseInt(_0x7b9a32(0x14e))/0x7+-parseInt(_0x7b9a32(0x144))/0x8*(-parseInt(_0x7b9a32(0x14c))/0x9)+parseInt(_0x7b9a32(0x141))/0xa;if(_0xaf32e4===_0x476728)break;else _0x136971['push'](_0x136971['shift']());}catch(_0x268b9b){_0x136971['push'](_0x136971['shift']());}}}(a178_0x334f,0x93a0e));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];function isSensitiveKey(_0x331b43){const _0xdbd152=a178_0x1ac8;return SENSITIVE_PATTERNS[_0xdbd152(0x149)](_0x19c398=>_0x19c398['test'](_0x331b43));}function a178_0x1ac8(_0x10eb2a,_0x530851){_0x10eb2a=_0x10eb2a-0x13c;const _0x334ff7=a178_0x334f();let _0x1ac829=_0x334ff7[_0x10eb2a];return _0x1ac829;}function sanitizeFlags(_0x47a518){const _0x4d6f06=a178_0x1ac8,_0x18b827={};for(const [_0x4d33e6,_0x276d4d]of Object[_0x4d6f06(0x13f)](_0x47a518)){isSensitiveKey(_0x4d33e6)?_0x18b827[_0x4d33e6]=_0x276d4d!=null&&_0x276d4d!==''?_0x4d6f06(0x142):_0x276d4d:_0x18b827[_0x4d33e6]=_0x276d4d;}return _0x18b827;}export async function reportCommandTrace(_0x3d5a37){const _0xdeefbc=a178_0x1ac8;try{const _0x3ce9c1=sanitizeFlags(_0x3d5a37[_0xdeefbc(0x147)]);await sendCliTraceLog({'spanName':_0xdeefbc(0x140),'logData':{'command.cli_version':getCliVersion(),'command.service':_0x3d5a37[_0xdeefbc(0x143)],'command.name':_0x3d5a37[_0xdeefbc(0x13e)],'command.flags':JSON[_0xdeefbc(0x14b)](_0x3ce9c1),..._0x3d5a37[_0xdeefbc(0x13c)]!=null?{'command.duration_ms':_0x3d5a37[_0xdeefbc(0x13c)]}:{},..._0x3d5a37[_0xdeefbc(0x148)]?{'command.error':_0x3d5a37['error']instanceof Error?_0x3d5a37[_0xdeefbc(0x148)]['message']:String(_0x3d5a37[_0xdeefbc(0x148)])}:{}}});}catch{}}
@@ -1 +1 @@
1
- function a178_0xa913(){var _0x212cbc=['5DPYYpL','1106562BeucGX','4360734dMpxCU','500264YSyNDu','cli.help','2882453rMdnfu','error','238794geiGpf','421505rBOLmv','8AivNcN','service','730548XQZOut','20dJtVfi','Failed\x20to\x20report\x20CLI\x20help\x20trace:','28cQlzTw','154TzUZzu'];a178_0xa913=function(){return _0x212cbc;};return a178_0xa913();}function a178_0x2a4d(_0x5866a7,_0x25aae2){_0x5866a7=_0x5866a7-0x117;var _0xa9131=a178_0xa913();var _0x2a4d6e=_0xa9131[_0x5866a7];return _0x2a4d6e;}(function(_0x867222,_0x31206e){var _0x3e142b=a178_0x2a4d,_0x2914a3=_0x867222();while(!![]){try{var _0x4d1306=parseInt(_0x3e142b(0x11a))/0x1+parseInt(_0x3e142b(0x125))/0x2+-parseInt(_0x3e142b(0x119))/0x3*(-parseInt(_0x3e142b(0x120))/0x4)+-parseInt(_0x3e142b(0x122))/0x5*(parseInt(_0x3e142b(0x123))/0x6)+-parseInt(_0x3e142b(0x117))/0x7*(parseInt(_0x3e142b(0x11b))/0x8)+-parseInt(_0x3e142b(0x124))/0x9*(parseInt(_0x3e142b(0x11e))/0xa)+parseInt(_0x3e142b(0x121))/0xb*(parseInt(_0x3e142b(0x11d))/0xc);if(_0x4d1306===_0x31206e)break;else _0x2914a3['push'](_0x2914a3['shift']());}catch(_0x5579e9){_0x2914a3['push'](_0x2914a3['shift']());}}}(a178_0xa913,0x7df1f));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export async function reportCliHelpTrace(_0x2ec7e1,_0x29cc7f){var _0x2e3497=a178_0x2a4d;try{await sendCliTraceLog({'spanName':_0x2e3497(0x126),'logData':{'rabetbase.help.kind':_0x2ec7e1,..._0x29cc7f?.[_0x2e3497(0x11c)]&&{'rabetbase.help.service':_0x29cc7f[_0x2e3497(0x11c)]}}});}catch(_0x4b15d7){console[_0x2e3497(0x118)](_0x2e3497(0x11f),_0x4b15d7);}}
1
+ function a179_0x3619(_0x5cefb6,_0x2e62fe){_0x5cefb6=_0x5cefb6-0x1e0;var _0x106594=a179_0x1065();var _0x3619c6=_0x106594[_0x5cefb6];return _0x3619c6;}function a179_0x1065(){var _0x1091c2=['3683xNOEeo','230aUnxUL','10020542IpMKcd','service','Failed\x20to\x20report\x20CLI\x20help\x20trace:','error','77336aXLcXD','477mMfzCM','11875380LouODk','6SLQAPT','8270QnFtWP','3lTjvZo','5924488JKYDVZ','21817411iydYWY'];a179_0x1065=function(){return _0x1091c2;};return a179_0x1065();}(function(_0x40c88f,_0x3ef17f){var _0x5f52ce=a179_0x3619,_0x523ef0=_0x40c88f();while(!![]){try{var _0x3541c5=parseInt(_0x5f52ce(0x1e6))/0x1*(parseInt(_0x5f52ce(0x1e7))/0x2)+parseInt(_0x5f52ce(0x1e3))/0x3*(parseInt(_0x5f52ce(0x1e4))/0x4)+-parseInt(_0x5f52ce(0x1e2))/0x5*(-parseInt(_0x5f52ce(0x1e1))/0x6)+-parseInt(_0x5f52ce(0x1e8))/0x7+parseInt(_0x5f52ce(0x1ec))/0x8*(-parseInt(_0x5f52ce(0x1ed))/0x9)+-parseInt(_0x5f52ce(0x1e0))/0xa+parseInt(_0x5f52ce(0x1e5))/0xb;if(_0x3541c5===_0x3ef17f)break;else _0x523ef0['push'](_0x523ef0['shift']());}catch(_0x296b0f){_0x523ef0['push'](_0x523ef0['shift']());}}}(a179_0x1065,0xb9237));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export async function reportCliHelpTrace(_0x3038f5,_0x32f36d){var _0x38d56f=a179_0x3619;try{await sendCliTraceLog({'spanName':'cli.help','logData':{'rabetbase.help.kind':_0x3038f5,..._0x32f36d?.[_0x38d56f(0x1e9)]&&{'rabetbase.help.service':_0x32f36d[_0x38d56f(0x1e9)]}}});}catch(_0x1182c8){console[_0x38d56f(0x1eb)](_0x38d56f(0x1ea),_0x1182c8);}}
@@ -1 +1 @@
1
- (function(_0x6b6a27,_0x3aefcf){const _0x21b135=a179_0x72f9,_0x57234b=_0x6b6a27();while(!![]){try{const _0x5e39de=parseInt(_0x21b135(0x10b))/0x1*(parseInt(_0x21b135(0x105))/0x2)+-parseInt(_0x21b135(0x109))/0x3*(-parseInt(_0x21b135(0x102))/0x4)+-parseInt(_0x21b135(0x104))/0x5+parseInt(_0x21b135(0x100))/0x6+parseInt(_0x21b135(0x101))/0x7+parseInt(_0x21b135(0x107))/0x8*(parseInt(_0x21b135(0x10c))/0x9)+-parseInt(_0x21b135(0xff))/0xa;if(_0x5e39de===_0x3aefcf)break;else _0x57234b['push'](_0x57234b['shift']());}catch(_0x564240){_0x57234b['push'](_0x57234b['shift']());}}}(a179_0x33b5,0x76ee0));import{VERSION,GIT_COMMIT}from'../generated/build-info.js';function a179_0x72f9(_0x35e86f,_0x29b0f9){_0x35e86f=_0x35e86f-0xff;const _0x33b56b=a179_0x33b5();let _0x72f931=_0x33b56b[_0x35e86f];return _0x72f931;}import{getSessionUserInfo}from'../auth/get-session-user.js';import{setServiceConfig,setUserContext}from'@lovrabet/otel-logger';import{NPM_PACKAGE_NAME}from'../constant/cli.js';function a179_0x33b5(){const _0x4a20c1=['production','7726552IsQImD','tenant_code','1183344sqQfTW','unknown','38VRpChg','9qVVkkB','23084380RFYKga','3806514xujEwJ','3745581iJVRQt','8YDGFFL','email','1968845dqRfGv','13954EkXfQS'];a179_0x33b5=function(){return _0x4a20c1;};return a179_0x33b5();}import{getConfigAppCode}from'../utils/config.js';let cliOtelTraceInitialized=![];export async function ensureCliOtelTraceConfig(){const _0x3282e8=a179_0x72f9,_0x1d8f08=await getSessionUserInfo();if(!cliOtelTraceInitialized){const _0x510cb7=_0x1d8f08?.['user'];setServiceConfig({'serviceName':NPM_PACKAGE_NAME,'serviceVersion':GIT_COMMIT!==_0x3282e8(0x10a)?VERSION+'+'+GIT_COMMIT:VERSION,'serviceEnv':process.env.RABETBASE_ENV??(process.env.RABETBASE_E2E_DAILY==='1'?'daily':_0x3282e8(0x106))}),setUserContext({'id':_0x510cb7?.['id'],'username':_0x510cb7?.['username'],'nickname':_0x510cb7?.['nickname'],'email':_0x510cb7?.[_0x3282e8(0x103)],'tenantCode':_0x510cb7?.['tenant'][_0x3282e8(0x108)],'appCode':getConfigAppCode()}),cliOtelTraceInitialized=!![];}return _0x1d8f08;}
1
+ function a180_0x5333(_0x56043f,_0x9d3dfd){_0x56043f=_0x56043f-0xd1;const _0x455a57=a180_0x455a();let _0x533332=_0x455a57[_0x56043f];return _0x533332;}(function(_0x1f7192,_0x3bcb70){const _0x1fa65f=a180_0x5333,_0x233d07=_0x1f7192();while(!![]){try{const _0x501d21=-parseInt(_0x1fa65f(0xe1))/0x1+-parseInt(_0x1fa65f(0xe2))/0x2*(parseInt(_0x1fa65f(0xdb))/0x3)+parseInt(_0x1fa65f(0xd1))/0x4+-parseInt(_0x1fa65f(0xe0))/0x5*(-parseInt(_0x1fa65f(0xd9))/0x6)+-parseInt(_0x1fa65f(0xd4))/0x7*(parseInt(_0x1fa65f(0xdf))/0x8)+-parseInt(_0x1fa65f(0xd7))/0x9*(parseInt(_0x1fa65f(0xde))/0xa)+-parseInt(_0x1fa65f(0xdd))/0xb*(-parseInt(_0x1fa65f(0xe3))/0xc);if(_0x501d21===_0x3bcb70)break;else _0x233d07['push'](_0x233d07['shift']());}catch(_0x11ec84){_0x233d07['push'](_0x233d07['shift']());}}}(a180_0x455a,0x1bdbb));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 _0x4e6dd4=a180_0x5333,_0x510e38=await getSessionUserInfo();if(!cliOtelTraceInitialized){const _0x5ad0f5=_0x510e38?.[_0x4e6dd4(0xd8)];setServiceConfig({'serviceName':NPM_PACKAGE_NAME,'serviceVersion':GIT_COMMIT!==_0x4e6dd4(0xe4)?VERSION+'+'+GIT_COMMIT:VERSION,'serviceEnv':process.env.RABETBASE_ENV??(process.env.RABETBASE_E2E_DAILY==='1'?_0x4e6dd4(0xd2):'production')}),setUserContext({'id':_0x5ad0f5?.['id'],'username':_0x5ad0f5?.[_0x4e6dd4(0xdc)],'nickname':_0x5ad0f5?.[_0x4e6dd4(0xd5)],'email':_0x5ad0f5?.[_0x4e6dd4(0xda)],'tenantCode':_0x5ad0f5?.[_0x4e6dd4(0xd6)][_0x4e6dd4(0xd3)],'appCode':getConfigAppCode()}),cliOtelTraceInitialized=!![];}return _0x510e38;}function a180_0x455a(){const _0xba079f=['909951iAzSml','nickname','tenant','1278kyQHBa','user','78GVqwyI','email','654KURqhu','username','88BtQilf','1780DlsQTy','8gYGbFb','47330pOaKAp','200782RcTBcz','1974FaCmiJ','763212FuGoaK','unknown','213832FVydDR','daily','tenant_code'];a180_0x455a=function(){return _0xba079f;};return a180_0x455a();}
@@ -1 +1 @@
1
- (function(_0x3e3cc6,_0x107774){const _0x4c6c4d=a180_0x1d66,_0x3d5df1=_0x3e3cc6();while(!![]){try{const _0x289a69=parseInt(_0x4c6c4d(0x71))/0x1*(-parseInt(_0x4c6c4d(0x73))/0x2)+parseInt(_0x4c6c4d(0x72))/0x3+parseInt(_0x4c6c4d(0x70))/0x4+-parseInt(_0x4c6c4d(0x69))/0x5+parseInt(_0x4c6c4d(0x6d))/0x6+parseInt(_0x4c6c4d(0x6a))/0x7*(-parseInt(_0x4c6c4d(0x6f))/0x8)+parseInt(_0x4c6c4d(0x6c))/0x9*(parseInt(_0x4c6c4d(0x67))/0xa);if(_0x289a69===_0x107774)break;else _0x3d5df1['push'](_0x3d5df1['shift']());}catch(_0x1adfe7){_0x3d5df1['push'](_0x3d5df1['shift']());}}}(a180_0x4522,0x85a41));import{shutdownTraces}from'@lovrabet/otel-logger';let shutdownPromise=null;function a180_0x1d66(_0x4b3368,_0x785ad5){_0x4b3368=_0x4b3368-0x67;const _0x4522b9=a180_0x4522();let _0x1d663d=_0x4522b9[_0x4b3368];return _0x1d663d;}function a180_0x4522(){const _0x25f45f=['325832ubgpgu','40goCJOD','once','4628625MkDZih','3567221miauno','SIGINT','2519253KeEcVX','2235120MPSWkh','exit','8efGnmr','1012608SnCDxf','1WijkLN','1200891fWWFGm'];a180_0x4522=function(){return _0x25f45f;};return a180_0x4522();}export async function flushOtelNodeIfUsed(){if(shutdownPromise)return shutdownPromise;return shutdownPromise=((async()=>{try{await shutdownTraces();}catch{}})()),shutdownPromise;}export function registerOtelShutdownOnExit(){const _0x5660f9=a180_0x1d66;process[_0x5660f9(0x68)]('beforeExit',()=>{void flushOtelNodeIfUsed();});const _0xc82324=()=>{const _0x3011e3=_0x5660f9;void flushOtelNodeIfUsed()['then'](()=>process[_0x3011e3(0x6e)](0x0));};process[_0x5660f9(0x68)](_0x5660f9(0x6b),_0xc82324),process[_0x5660f9(0x68)]('SIGTERM',_0xc82324);}export async function exitWithOtelShutdown(_0x57ff90){await flushOtelNodeIfUsed(),process['exit'](_0x57ff90);}
1
+ (function(_0x6f40ed,_0x4ae941){const _0x3393fd=a181_0x98d3,_0x3a37a2=_0x6f40ed();while(!![]){try{const _0x5510bf=parseInt(_0x3393fd(0x141))/0x1+parseInt(_0x3393fd(0x140))/0x2*(parseInt(_0x3393fd(0x13d))/0x3)+-parseInt(_0x3393fd(0x13c))/0x4*(parseInt(_0x3393fd(0x138))/0x5)+parseInt(_0x3393fd(0x13e))/0x6*(parseInt(_0x3393fd(0x135))/0x7)+-parseInt(_0x3393fd(0x137))/0x8*(parseInt(_0x3393fd(0x13b))/0x9)+-parseInt(_0x3393fd(0x142))/0xa+parseInt(_0x3393fd(0x139))/0xb*(parseInt(_0x3393fd(0x13a))/0xc);if(_0x5510bf===_0x4ae941)break;else _0x3a37a2['push'](_0x3a37a2['shift']());}catch(_0x1e28c6){_0x3a37a2['push'](_0x3a37a2['shift']());}}}(a181_0x4eb1,0x76d7b));import{shutdownTraces}from'@lovrabet/otel-logger';let shutdownPromise=null;function a181_0x98d3(_0x2fc3cd,_0x4d99e6){_0x2fc3cd=_0x2fc3cd-0x134;const _0x4eb156=a181_0x4eb1();let _0x98d3d3=_0x4eb156[_0x2fc3cd];return _0x98d3d3;}function a181_0x4eb1(){const _0x4b9e5b=['183096YXwlBT','306148gLKdlY','27924eQxfrQ','12GEcRID','exit','34ZDmOLT','94034GyOepM','5559200kCBrOt','beforeExit','SIGTERM','395731hdCsWK','once','72cYllbd','15bUyzRs','2398154XBSXNF','60yLtZpm'];a181_0x4eb1=function(){return _0x4b9e5b;};return a181_0x4eb1();}export async function flushOtelNodeIfUsed(){if(shutdownPromise)return shutdownPromise;return shutdownPromise=((async()=>{try{await shutdownTraces();}catch{}})()),shutdownPromise;}export function registerOtelShutdownOnExit(){const _0xa6468b=a181_0x98d3;process[_0xa6468b(0x136)](_0xa6468b(0x143),()=>{void flushOtelNodeIfUsed();});const _0x44c6b5=()=>{const _0xe131fa=_0xa6468b;void flushOtelNodeIfUsed()['then'](()=>process[_0xe131fa(0x13f)](0x0));};process[_0xa6468b(0x136)]('SIGINT',_0x44c6b5),process[_0xa6468b(0x136)](_0xa6468b(0x134),_0x44c6b5);}export async function exitWithOtelShutdown(_0x28d6af){const _0x36a767=a181_0x98d3;await flushOtelNodeIfUsed(),process[_0x36a767(0x13f)](_0x28d6af);}
@@ -1 +1 @@
1
- const a181_0x1c2480=a181_0x56b5;function a181_0x56b5(_0x1bcaf2,_0xf84ec3){_0x1bcaf2=_0x1bcaf2-0x188;const _0x2e13fb=a181_0x2e13();let _0x56b5ea=_0x2e13fb[_0x1bcaf2];return _0x56b5ea;}(function(_0xf9ada2,_0x2244ae){const _0xbd50a2=a181_0x56b5,_0x376a53=_0xf9ada2();while(!![]){try{const _0x381aab=-parseInt(_0xbd50a2(0x18c))/0x1+parseInt(_0xbd50a2(0x18b))/0x2+parseInt(_0xbd50a2(0x195))/0x3*(parseInt(_0xbd50a2(0x194))/0x4)+-parseInt(_0xbd50a2(0x18d))/0x5*(-parseInt(_0xbd50a2(0x191))/0x6)+-parseInt(_0xbd50a2(0x18e))/0x7+parseInt(_0xbd50a2(0x196))/0x8*(parseInt(_0xbd50a2(0x18f))/0x9)+parseInt(_0xbd50a2(0x197))/0xa*(-parseInt(_0xbd50a2(0x192))/0xb);if(_0x381aab===_0x2244ae)break;else _0x376a53['push'](_0x376a53['shift']());}catch(_0x26c19){_0x376a53['push'](_0x376a53['shift']());}}}(a181_0x2e13,0xc6c26));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=a181_0x1c2480(0x190);function a181_0x2e13(){const _0x16fda1=['traceparent','16INhZlZ','762897Omfgha','8264UZAbye','10agMxdt','logData','version','traceName','2704916xfKESs','1057784EtrZYD','5XwZjAL','2904104rdorGG','1656zFGxLO','rabetbase-cli','6524484gDCuZC','14964026DxFbrz'];a181_0x2e13=function(){return _0x16fda1;};return a181_0x2e13();}export async function sendCliTraceLog(_0x252e5c){const _0x23fc69=a181_0x1c2480;await ensureCliOtelTraceConfig(),sendTraceLog({'traceName':_0x252e5c[_0x23fc69(0x18a)]??DEFAULT_TRACE_NAME,'version':_0x252e5c[_0x23fc69(0x189)]??getCliVersion(),'spanName':_0x252e5c['spanName'],'eventType':'manual','logData':_0x252e5c[_0x23fc69(0x188)],..._0x252e5c[_0x23fc69(0x193)]&&{'traceparent':_0x252e5c[_0x23fc69(0x193)]}});}
1
+ const a182_0x2f23cf=a182_0x5611;function a182_0x4f77(){const _0x49e70a=['rabetbase-cli','manual','logData','465789SvRyPq','848870fPsYIt','2657960MUnDjg','18jLJxeF','467915vzXGkC','9whVUDT','211410FiQUxw','140945VnRker','697720uhswMw','traceparent','76PxJpii','version','33GbDnia'];a182_0x4f77=function(){return _0x49e70a;};return a182_0x4f77();}(function(_0x3a9e54,_0x294d15){const _0x52f033=a182_0x5611,_0xee3532=_0x3a9e54();while(!![]){try{const _0x453b9f=parseInt(_0x52f033(0x183))/0x1+-parseInt(_0x52f033(0x188))/0x2+parseInt(_0x52f033(0x182))/0x3+parseInt(_0x52f033(0x18c))/0x4*(-parseInt(_0x52f033(0x189))/0x5)+-parseInt(_0x52f033(0x185))/0x6*(parseInt(_0x52f033(0x186))/0x7)+parseInt(_0x52f033(0x18a))/0x8*(-parseInt(_0x52f033(0x187))/0x9)+parseInt(_0x52f033(0x184))/0xa*(parseInt(_0x52f033(0x18e))/0xb);if(_0x453b9f===_0x294d15)break;else _0xee3532['push'](_0xee3532['shift']());}catch(_0x3327c6){_0xee3532['push'](_0xee3532['shift']());}}}(a182_0x4f77,0xd501b));function a182_0x5611(_0x47367c,_0x3354b2){_0x47367c=_0x47367c-0x182;const _0x4f7746=a182_0x4f77();let _0x561174=_0x4f7746[_0x47367c];return _0x561174;}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=a182_0x2f23cf(0x18f);export async function sendCliTraceLog(_0x355fac){const _0x846c=a182_0x2f23cf;await ensureCliOtelTraceConfig(),sendTraceLog({'traceName':_0x355fac['traceName']??DEFAULT_TRACE_NAME,'version':_0x355fac[_0x846c(0x18d)]??getCliVersion(),'spanName':_0x355fac['spanName'],'eventType':_0x846c(0x190),'logData':_0x355fac[_0x846c(0x191)],..._0x355fac[_0x846c(0x18b)]&&{'traceparent':_0x355fac[_0x846c(0x18b)]}});}
@@ -1 +1 @@
1
- (function(_0xcc861c,_0x25ab6a){const _0x447cd8=a182_0x2303,_0x3a6da7=_0xcc861c();while(!![]){try{const _0x2fa0ca=-parseInt(_0x447cd8(0x10b))/0x1*(parseInt(_0x447cd8(0x109))/0x2)+parseInt(_0x447cd8(0x110))/0x3+parseInt(_0x447cd8(0x10a))/0x4+parseInt(_0x447cd8(0x115))/0x5*(-parseInt(_0x447cd8(0x118))/0x6)+parseInt(_0x447cd8(0x10e))/0x7*(-parseInt(_0x447cd8(0x10d))/0x8)+-parseInt(_0x447cd8(0x113))/0x9*(-parseInt(_0x447cd8(0x114))/0xa)+parseInt(_0x447cd8(0x111))/0xb;if(_0x2fa0ca===_0x25ab6a)break;else _0x3a6da7['push'](_0x3a6da7['shift']());}catch(_0x50952b){_0x3a6da7['push'](_0x3a6da7['shift']());}}}(a182_0x215e,0x26112));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';function a182_0x215e(){const _0x26af97=['12qfYPqj','truncated','redactionKinds','138834RphHVT','999564jreATo','2CVkijU','redactionCount','35704ZBPwvJ','364gVAxUP','join','34983dwOUbH','4276591CceJbx','title','9gwTvyH','844930IJCsMz','519985IdsaxU','originalBytes','sanitize'];a182_0x215e=function(){return _0x26af97;};return a182_0x215e();}export const PLATFORM_ISSUE_TRACE_NAME='platform-issue-log-collect';function a182_0x2303(_0x1da8dc,_0x5015b1){_0x1da8dc=_0x1da8dc-0x109;const _0x215ec0=a182_0x215e();let _0x23035e=_0x215ec0[_0x1da8dc];return _0x23035e;}export const PLATFORM_ISSUE_SPAN_NAME='issue.log.collect';export async function sendPlatformIssueCollectLog(_0x5e8f2d){const _0x119a07=a182_0x2303;await sendCliTraceLog({'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x5e8f2d[_0x119a07(0x112)],'issue.description':_0x5e8f2d['description'],..._0x5e8f2d[_0x119a07(0x117)]?{'issue.description_original_bytes':_0x5e8f2d[_0x119a07(0x117)][_0x119a07(0x116)],'issue.description_truncated':_0x5e8f2d[_0x119a07(0x117)][_0x119a07(0x119)],'issue.description_redactions':_0x5e8f2d['sanitize'][_0x119a07(0x10c)],'issue.description_redaction_kinds':_0x5e8f2d[_0x119a07(0x117)][_0x119a07(0x11a)][_0x119a07(0x10f)](',')}:{}}});}
1
+ const a183_0x221bb1=a183_0x3fad;(function(_0x74fae8,_0x3e2541){const _0x273c73=a183_0x3fad,_0x344eea=_0x74fae8();while(!![]){try{const _0x5bce1e=-parseInt(_0x273c73(0xb0))/0x1+parseInt(_0x273c73(0xa8))/0x2*(-parseInt(_0x273c73(0xaa))/0x3)+parseInt(_0x273c73(0xa1))/0x4*(parseInt(_0x273c73(0xa2))/0x5)+-parseInt(_0x273c73(0xa5))/0x6+-parseInt(_0x273c73(0xac))/0x7*(parseInt(_0x273c73(0xa9))/0x8)+parseInt(_0x273c73(0xa4))/0x9*(parseInt(_0x273c73(0xae))/0xa)+parseInt(_0x273c73(0xa6))/0xb*(parseInt(_0x273c73(0xab))/0xc);if(_0x5bce1e===_0x3e2541)break;else _0x344eea['push'](_0x344eea['shift']());}catch(_0x5586f5){_0x344eea['push'](_0x344eea['shift']());}}}(a183_0x40c6,0xbbd0d));function a183_0x40c6(){const _0x1f593e=['7329354pLcIZt','156739lmHZbx','redactionCount','27154StAAma','76600yebUva','216SlunbG','3252nRIfHw','777XlVHwR','redactionKinds','1885310KmQjUx','truncated','1486228oceglz','join','issue.log.collect','sanitize','platform-issue-log-collect','title','4lHVAcU','7337195BinqPS','originalBytes','9jUuxFO'];a183_0x40c6=function(){return _0x1f593e;};return a183_0x40c6();}import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';function a183_0x3fad(_0x262275,_0x48ffee){_0x262275=_0x262275-0x9c;const _0x40c669=a183_0x40c6();let _0x3fadf9=_0x40c669[_0x262275];return _0x3fadf9;}export const PLATFORM_ISSUE_TRACE_NAME=a183_0x221bb1(0x9f);export const PLATFORM_ISSUE_SPAN_NAME=a183_0x221bb1(0x9d);export async function sendPlatformIssueCollectLog(_0xf8dfb1){const _0x26783f=a183_0x221bb1;await sendCliTraceLog({'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0xf8dfb1[_0x26783f(0xa0)],'issue.description':_0xf8dfb1['description'],..._0xf8dfb1[_0x26783f(0x9e)]?{'issue.description_original_bytes':_0xf8dfb1['sanitize'][_0x26783f(0xa3)],'issue.description_truncated':_0xf8dfb1[_0x26783f(0x9e)][_0x26783f(0xaf)],'issue.description_redactions':_0xf8dfb1[_0x26783f(0x9e)][_0x26783f(0xa7)],'issue.description_redaction_kinds':_0xf8dfb1[_0x26783f(0x9e)][_0x26783f(0xad)][_0x26783f(0x9c)](',')}:{}}});}
@@ -1 +1 @@
1
- const a184_0x2dcd78=a184_0x480d;(function(_0x4c0f0d,_0x40f6b8){const _0x28d1fc=a184_0x480d,_0x12e770=_0x4c0f0d();while(!![]){try{const _0x1a8a97=parseInt(_0x28d1fc(0xc4))/0x1+-parseInt(_0x28d1fc(0xa9))/0x2*(parseInt(_0x28d1fc(0xb0))/0x3)+-parseInt(_0x28d1fc(0xca))/0x4+parseInt(_0x28d1fc(0xba))/0x5+parseInt(_0x28d1fc(0xc6))/0x6+parseInt(_0x28d1fc(0xd4))/0x7+parseInt(_0x28d1fc(0xb4))/0x8;if(_0x1a8a97===_0x40f6b8)break;else _0x12e770['push'](_0x12e770['shift']());}catch(_0x498f51){_0x12e770['push'](_0x12e770['shift']());}}}(a184_0x236e,0x8f613));function a184_0x480d(_0x3f38b8,_0x27c968){_0x3f38b8=_0x3f38b8-0xa9;const _0x236e45=a184_0x236e();let _0x480d15=_0x236e45[_0x3f38b8];return _0x480d15;}export const CORE_IDE_CONFIGS={'cursor':{'name':a184_0x2dcd78(0xcd),'description':a184_0x2dcd78(0xd9),'folders':[a184_0x2dcd78(0xda),a184_0x2dcd78(0xb9)],'files':[{'type':a184_0x2dcd78(0xbc),'path':'.cursor/skills/rabetbase.md','template':'SKILL.md.tpl'}]},'windsurf':{'name':'Windsurf','description':'Windsurf\x20IDE','folders':[a184_0x2dcd78(0xcb)],'files':[{'type':a184_0x2dcd78(0xbc),'path':a184_0x2dcd78(0xae),'template':a184_0x2dcd78(0xb3)}]},'claude':{'name':'Claude\x20Code','description':'Claude\x20Code','folders':[a184_0x2dcd78(0xbd)],'files':[{'type':'file','path':a184_0x2dcd78(0xd0),'template':a184_0x2dcd78(0xb3)}]},'cline':{'name':a184_0x2dcd78(0xac),'description':a184_0x2dcd78(0xd7),'folders':['.cline'],'files':[{'type':a184_0x2dcd78(0xbc),'path':a184_0x2dcd78(0xb8),'template':a184_0x2dcd78(0xb3)}]},'codex':{'name':a184_0x2dcd78(0xb6),'description':a184_0x2dcd78(0xad),'folders':[a184_0x2dcd78(0xc3)],'files':[{'type':a184_0x2dcd78(0xbc),'path':a184_0x2dcd78(0xd3),'template':'SKILL.md.tpl'}]},'opencode':{'name':a184_0x2dcd78(0xd8),'description':a184_0x2dcd78(0xb7),'folders':[a184_0x2dcd78(0xdf)],'files':[{'type':a184_0x2dcd78(0xbc),'path':a184_0x2dcd78(0xc0),'template':'SKILL.md.tpl'}]},'qoder':{'name':a184_0x2dcd78(0xd2),'description':a184_0x2dcd78(0xd6),'folders':[a184_0x2dcd78(0xbb)],'files':[{'type':a184_0x2dcd78(0xbc),'path':a184_0x2dcd78(0xb5),'template':a184_0x2dcd78(0xb3)},{'type':a184_0x2dcd78(0xbc),'path':a184_0x2dcd78(0xcc),'template':a184_0x2dcd78(0xb3)}]},'codebuddy':{'name':'CodeBuddy','description':a184_0x2dcd78(0xab),'folders':[a184_0x2dcd78(0xb1)],'files':[{'type':a184_0x2dcd78(0xbc),'path':a184_0x2dcd78(0xd5),'template':a184_0x2dcd78(0xb3)}]},'trae':{'name':a184_0x2dcd78(0xc8),'description':a184_0x2dcd78(0xbe),'folders':['.trae'],'files':[{'type':'file','path':a184_0x2dcd78(0xaa),'template':a184_0x2dcd78(0xb3)}]}};export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':'其他\x20(通用模板)','description':a184_0x2dcd78(0xdc),'folders':[a184_0x2dcd78(0xcf)],'files':[{'type':a184_0x2dcd78(0xbc),'path':a184_0x2dcd78(0xaf),'template':a184_0x2dcd78(0xb3)}]},'antigravity':{'name':'Antigravity','description':a184_0x2dcd78(0xc7),'folders':['.agent'],'files':[{'type':a184_0x2dcd78(0xbc),'path':a184_0x2dcd78(0xaf),'template':a184_0x2dcd78(0xb3)}]}};export const CORE_IDE_LIST=[a184_0x2dcd78(0xce),'cline',a184_0x2dcd78(0xdb),a184_0x2dcd78(0xd1),a184_0x2dcd78(0xc2),a184_0x2dcd78(0xc9),a184_0x2dcd78(0xc1),a184_0x2dcd78(0xc5),a184_0x2dcd78(0xbf)];function a184_0x236e(){const _0x5e62a2=['Codex\x20IDE','.windsurf/workflows/rabetbase.md','.agent/skills/lovrabet/SKILL.md','160155sRVJcv','.codebuddy','agent','SKILL.md.tpl','540456SDGokr','.qoder/rules/rabetbase.md','Codex','OpenCode\x20IDE','.cline/skills/lovrabet/SKILL.md','.cursor','5194615SvKbnA','.qoder','file','.claude','Trae\x20IDE','windsurf','.opencode/skills/lovrabet/SKILL.md','qoder','cursor','.codex','152274lsXclj','trae','2896416vwDdid','Antigravity\x20IDE','Trae','opencode','3502520qcOqTZ','.windsurf','.qoder/skills/lovrabet/SKILL.md','Cursor','claude','.agent','.claude/skills/lovrabet/SKILL.md','codex','Qoder','.codex/skills/lovrabet/SKILL.md','5150166ttucJL','.codebuddy/skills/lovrabet/SKILL.md','Qoder\x20IDE','Cline\x20IDE','OpenCode','Cursor\x20IDE','.cursorrules','codebuddy','通用模板\x20-\x20兜底方案','antigravity','cline','.opencode','38SADxwS','.trae/skills/lovrabet/SKILL.md','CodeBuddy\x20IDE','Cline'];a184_0x236e=function(){return _0x5e62a2;};return a184_0x236e();}export const IDE_LIST=[a184_0x2dcd78(0xdd),'claude',a184_0x2dcd78(0xde),a184_0x2dcd78(0xdb),a184_0x2dcd78(0xd1),'cursor','opencode',a184_0x2dcd78(0xc1),a184_0x2dcd78(0xc5),a184_0x2dcd78(0xbf),a184_0x2dcd78(0xb2)];export const ALL_CORE_IDES=[a184_0x2dcd78(0xc2),a184_0x2dcd78(0xbf),a184_0x2dcd78(0xce),'cline','codex',a184_0x2dcd78(0xc9),'qoder',a184_0x2dcd78(0xdb),a184_0x2dcd78(0xc5)];
1
+ const a185_0x5bdafa=a185_0x31da;(function(_0x3dbde2,_0xea6095){const _0x5a8a75=a185_0x31da,_0x6b12b6=_0x3dbde2();while(!![]){try{const _0x2b71fc=parseInt(_0x5a8a75(0x15c))/0x1*(parseInt(_0x5a8a75(0x17b))/0x2)+-parseInt(_0x5a8a75(0x165))/0x3*(-parseInt(_0x5a8a75(0x163))/0x4)+-parseInt(_0x5a8a75(0x149))/0x5+-parseInt(_0x5a8a75(0x152))/0x6+parseInt(_0x5a8a75(0x15d))/0x7*(-parseInt(_0x5a8a75(0x167))/0x8)+parseInt(_0x5a8a75(0x15b))/0x9+parseInt(_0x5a8a75(0x16d))/0xa*(parseInt(_0x5a8a75(0x17d))/0xb);if(_0x2b71fc===_0xea6095)break;else _0x6b12b6['push'](_0x6b12b6['shift']());}catch(_0x26a23e){_0x6b12b6['push'](_0x6b12b6['shift']());}}}(a185_0xc241,0x2891d));export const CORE_IDE_CONFIGS={'cursor':{'name':a185_0x5bdafa(0x179),'description':'Cursor\x20IDE','folders':[a185_0x5bdafa(0x160),a185_0x5bdafa(0x161)],'files':[{'type':'file','path':a185_0x5bdafa(0x155),'template':a185_0x5bdafa(0x173)}]},'windsurf':{'name':'Windsurf','description':a185_0x5bdafa(0x150),'folders':[a185_0x5bdafa(0x181)],'files':[{'type':'file','path':a185_0x5bdafa(0x170),'template':'SKILL.md.tpl'}]},'claude':{'name':a185_0x5bdafa(0x16f),'description':a185_0x5bdafa(0x16f),'folders':[a185_0x5bdafa(0x162)],'files':[{'type':a185_0x5bdafa(0x156),'path':a185_0x5bdafa(0x14c),'template':'SKILL.md.tpl'}]},'cline':{'name':a185_0x5bdafa(0x153),'description':'Cline\x20IDE','folders':[a185_0x5bdafa(0x172)],'files':[{'type':a185_0x5bdafa(0x156),'path':a185_0x5bdafa(0x171),'template':a185_0x5bdafa(0x173)}]},'codex':{'name':'Codex','description':a185_0x5bdafa(0x157),'folders':[a185_0x5bdafa(0x164)],'files':[{'type':a185_0x5bdafa(0x156),'path':a185_0x5bdafa(0x180),'template':a185_0x5bdafa(0x173)}]},'opencode':{'name':a185_0x5bdafa(0x17f),'description':a185_0x5bdafa(0x16a),'folders':[a185_0x5bdafa(0x16c)],'files':[{'type':a185_0x5bdafa(0x156),'path':'.opencode/skills/lovrabet/SKILL.md','template':'SKILL.md.tpl'}]},'qoder':{'name':a185_0x5bdafa(0x17e),'description':'Qoder\x20IDE','folders':['.qoder'],'files':[{'type':'file','path':a185_0x5bdafa(0x176),'template':a185_0x5bdafa(0x173)},{'type':a185_0x5bdafa(0x156),'path':a185_0x5bdafa(0x16b),'template':a185_0x5bdafa(0x173)}]},'codebuddy':{'name':'CodeBuddy','description':a185_0x5bdafa(0x14b),'folders':['.codebuddy'],'files':[{'type':a185_0x5bdafa(0x156),'path':a185_0x5bdafa(0x15a),'template':a185_0x5bdafa(0x173)}]},'trae':{'name':a185_0x5bdafa(0x174),'description':a185_0x5bdafa(0x177),'folders':[a185_0x5bdafa(0x17c)],'files':[{'type':a185_0x5bdafa(0x156),'path':a185_0x5bdafa(0x17a),'template':a185_0x5bdafa(0x173)}]}};export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':a185_0x5bdafa(0x14f),'description':a185_0x5bdafa(0x169),'folders':['.agent'],'files':[{'type':a185_0x5bdafa(0x156),'path':'.agent/skills/lovrabet/SKILL.md','template':a185_0x5bdafa(0x173)}]},'antigravity':{'name':a185_0x5bdafa(0x158),'description':a185_0x5bdafa(0x151),'folders':[a185_0x5bdafa(0x178)],'files':[{'type':'file','path':'.agent/skills/lovrabet/SKILL.md','template':a185_0x5bdafa(0x173)}]}};function a185_0x31da(_0x1dec50,_0x544176){_0x1dec50=_0x1dec50-0x149;const _0xc241a9=a185_0xc241();let _0x31dabc=_0xc241a9[_0x1dec50];return _0x31dabc;}export const CORE_IDE_LIST=[a185_0x5bdafa(0x154),a185_0x5bdafa(0x14e),a185_0x5bdafa(0x15e),'codex',a185_0x5bdafa(0x166),a185_0x5bdafa(0x16e),a185_0x5bdafa(0x175),a185_0x5bdafa(0x14d),a185_0x5bdafa(0x14a)];export const IDE_LIST=[a185_0x5bdafa(0x168),a185_0x5bdafa(0x154),a185_0x5bdafa(0x14e),a185_0x5bdafa(0x15e),a185_0x5bdafa(0x15f),a185_0x5bdafa(0x166),a185_0x5bdafa(0x16e),a185_0x5bdafa(0x175),a185_0x5bdafa(0x14d),'windsurf',a185_0x5bdafa(0x159)];export const ALL_CORE_IDES=[a185_0x5bdafa(0x166),a185_0x5bdafa(0x14a),a185_0x5bdafa(0x154),a185_0x5bdafa(0x14e),a185_0x5bdafa(0x15f),'opencode',a185_0x5bdafa(0x175),a185_0x5bdafa(0x15e),'trae'];function a185_0xc241(){const _0x276d12=['.cursor','.claude','51012SerbzE','.codex','9VpyUne','cursor','1237928nLSCQj','antigravity','通用模板\x20-\x20兜底方案','OpenCode\x20IDE','.qoder/skills/lovrabet/SKILL.md','.opencode','6856390rdSUvJ','opencode','Claude\x20Code','.windsurf/workflows/rabetbase.md','.cline/skills/lovrabet/SKILL.md','.cline','SKILL.md.tpl','Trae','qoder','.qoder/rules/rabetbase.md','Trae\x20IDE','.agent','Cursor','.trae/skills/lovrabet/SKILL.md','10qgopHB','.trae','11nMygSw','Qoder','OpenCode','.codex/skills/lovrabet/SKILL.md','.windsurf','1073000GXXOUP','windsurf','CodeBuddy\x20IDE','.claude/skills/lovrabet/SKILL.md','trae','cline','其他\x20(通用模板)','Windsurf\x20IDE','Antigravity\x20IDE','1954494ahDVFD','Cline','claude','.cursor/skills/rabetbase.md','file','Codex\x20IDE','Antigravity','agent','.codebuddy/skills/lovrabet/SKILL.md','612630ZFHMyH','13859Rieumt','7mUxNap','codebuddy','codex','.cursorrules'];a185_0xc241=function(){return _0x276d12;};return a185_0xc241();}
@@ -1 +1 @@
1
- function a185_0x406e(){const _0x2ee20d=['20QrSGBw','9961434ofYpck','1233890SCuzOb','1274938iyNoSa','3540800sCOARD','14fAadXs','1719624RGFYlR','5508036INmVjN','970263BaoxYX'];a185_0x406e=function(){return _0x2ee20d;};return a185_0x406e();}function a185_0x29b4(_0xdfd15e,_0x19aee2){_0xdfd15e=_0xdfd15e-0xf5;const _0x406edb=a185_0x406e();let _0x29b4a0=_0x406edb[_0xdfd15e];return _0x29b4a0;}(function(_0x29814b,_0x1d4e07){const _0x232569=a185_0x29b4,_0x223e0d=_0x29814b();while(!![]){try{const _0x13cfb2=-parseInt(_0x232569(0xfd))/0x1+parseInt(_0x232569(0xfc))/0x2+parseInt(_0x232569(0xf9))/0x3*(parseInt(_0x232569(0xfa))/0x4)+-parseInt(_0x232569(0xf5))/0x5+-parseInt(_0x232569(0xf8))/0x6+parseInt(_0x232569(0xf6))/0x7*(parseInt(_0x232569(0xf7))/0x8)+parseInt(_0x232569(0xfb))/0x9;if(_0x13cfb2===_0x1d4e07)break;else _0x223e0d['push'](_0x223e0d['shift']());}catch(_0x599214){_0x223e0d['push'](_0x223e0d['shift']());}}}(a185_0x406e,0xd452e));import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
1
+ function a186_0x1404(){const _0x80fe32=['4469208DZGAXJ','70UEbEPi','80991IyHsnP','508990kimmYG','2186478zwCQVE','4911726BXkHHd','5LyxZrB','5016612xacPRP','808CaWBCF','4323847zrEMcT','5PvywEn'];a186_0x1404=function(){return _0x80fe32;};return a186_0x1404();}(function(_0x11d1e7,_0x50e000){const _0x2a215b=a186_0x3797,_0x1693d8=_0x11d1e7();while(!![]){try{const _0x48c747=parseInt(_0x2a215b(0x198))/0x1*(-parseInt(_0x2a215b(0x19c))/0x2)+-parseInt(_0x2a215b(0x199))/0x3+parseInt(_0x2a215b(0x195))/0x4*(parseInt(_0x2a215b(0x19f))/0x5)+parseInt(_0x2a215b(0x19e))/0x6+-parseInt(_0x2a215b(0x19d))/0x7+-parseInt(_0x2a215b(0x196))/0x8*(parseInt(_0x2a215b(0x19b))/0x9)+-parseInt(_0x2a215b(0x19a))/0xa*(-parseInt(_0x2a215b(0x197))/0xb);if(_0x48c747===_0x50e000)break;else _0x1693d8['push'](_0x1693d8['shift']());}catch(_0x68c9e1){_0x1693d8['push'](_0x1693d8['shift']());}}}(a186_0x1404,0xcd491));function a186_0x3797(_0x9cd1d5,_0x4cdacd){_0x9cd1d5=_0x9cd1d5-0x195;const _0x1404b9=a186_0x1404();let _0x379708=_0x1404b9[_0x9cd1d5];return _0x379708;}import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
@@ -1 +1 @@
1
- (function(_0x6bf17d,_0x204bea){const _0x223055=a186_0x4d2f,_0x5b0fa2=_0x6bf17d();while(!![]){try{const _0x2e94ca=-parseInt(_0x223055(0xd4))/0x1+parseInt(_0x223055(0xd6))/0x2+-parseInt(_0x223055(0xe0))/0x3+-parseInt(_0x223055(0xdd))/0x4+parseInt(_0x223055(0xdf))/0x5+-parseInt(_0x223055(0xd3))/0x6+parseInt(_0x223055(0xd9))/0x7;if(_0x2e94ca===_0x204bea)break;else _0x5b0fa2['push'](_0x5b0fa2['shift']());}catch(_0xcdbed1){_0x5b0fa2['push'](_0x5b0fa2['shift']());}}}(a186_0x22c9,0x826b9));import{getTemplateBaseUrl}from'../utils/config.js';export async function fetchCdnConfig(){const _0x58de88=a186_0x4d2f,_0x3dfba3=getTemplateBaseUrl(),_0x147013=[_0x3dfba3+_0x58de88(0xda),_0x3dfba3+_0x58de88(0xe1)];for(const _0x539e08 of _0x147013){try{const _0x53c2fe=await fetch(_0x539e08,{'headers':{'Accept':_0x58de88(0xde)}});if(!_0x53c2fe['ok'])continue;const _0x4cb439=await _0x53c2fe[_0x58de88(0xd2)]();if(!_0x4cb439[_0x58de88(0xdb)]?.[_0x58de88(0xd7)]||!_0x4cb439[_0x58de88(0xd8)]?.[_0x58de88(0xd5)]?.['stableVersion'])continue;return _0x4cb439;}catch{}}return null;}function a186_0x22c9(){const _0x23ab42=['2107340ZloFSD','stableVersion','sdk','12302255WEVWnI','/config.json','cli','now','4214488BqOoBq','application/json','1484795vtCdEY','1492077lhyWQI','/config/index.json','json','3876864RFIPSb','376768IqrNlX','node'];a186_0x22c9=function(){return _0x23ab42;};return a186_0x22c9();}function a186_0x4d2f(_0x2720e4,_0xf55f78){_0x2720e4=_0x2720e4-0xd2;const _0x22c927=a186_0x22c9();let _0x4d2f37=_0x22c927[_0x2720e4];return _0x4d2f37;}let cachedConfig=null,cacheTime=0x0;const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8;let hasCachedConfig=![];export async function getCdnConfig(){const _0xf7a58=a186_0x4d2f,_0x2ce7e3=Date[_0xf7a58(0xdc)]();if(hasCachedConfig){const _0x2becf6=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x2ce7e3-cacheTime<_0x2becf6)return cachedConfig;}const _0x104339=await fetchCdnConfig();return cachedConfig=_0x104339,cacheTime=_0x2ce7e3,hasCachedConfig=!![],_0x104339;}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
1
+ (function(_0x359b52,_0x472bd2){const _0x3d2cb7=a187_0x1ab5,_0x42d477=_0x359b52();while(!![]){try{const _0x5c4759=parseInt(_0x3d2cb7(0x176))/0x1+-parseInt(_0x3d2cb7(0x175))/0x2+parseInt(_0x3d2cb7(0x17a))/0x3*(parseInt(_0x3d2cb7(0x174))/0x4)+parseInt(_0x3d2cb7(0x170))/0x5+-parseInt(_0x3d2cb7(0x179))/0x6+-parseInt(_0x3d2cb7(0x16e))/0x7+parseInt(_0x3d2cb7(0x16f))/0x8;if(_0x5c4759===_0x472bd2)break;else _0x42d477['push'](_0x42d477['shift']());}catch(_0xf5476d){_0x42d477['push'](_0x42d477['shift']());}}}(a187_0x4f71,0x77797));import{getTemplateBaseUrl}from'../utils/config.js';function a187_0x1ab5(_0x5803b6,_0x193614){_0x5803b6=_0x5803b6-0x16e;const _0x4f719d=a187_0x4f71();let _0x1ab551=_0x4f719d[_0x5803b6];return _0x1ab551;}export async function fetchCdnConfig(){const _0x5232af=a187_0x1ab5,_0x1305a4=getTemplateBaseUrl(),_0x4a179d=[_0x1305a4+'/config.json',_0x1305a4+_0x5232af(0x177)];for(const _0x4486ad of _0x4a179d){try{const _0x47e8fe=await fetch(_0x4486ad,{'headers':{'Accept':'application/json'}});if(!_0x47e8fe['ok'])continue;const _0x2bd0c6=await _0x47e8fe[_0x5232af(0x173)]();if(!_0x2bd0c6[_0x5232af(0x172)]?.[_0x5232af(0x178)]||!_0x2bd0c6['sdk']?.['node']?.[_0x5232af(0x178)])continue;return _0x2bd0c6;}catch{}}return null;}function a187_0x4f71(){const _0xe50a3a=['cli','json','1043180WFhATL','1892420kOVhhh','948004Nspwlo','/config/index.json','stableVersion','3277890NIIWja','9ecfccu','4478180GIplMA','2255320bIzLyA','3046640KPkGjO','now'];a187_0x4f71=function(){return _0xe50a3a;};return a187_0x4f71();}let cachedConfig=null,cacheTime=0x0;const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8;let hasCachedConfig=![];export async function getCdnConfig(){const _0x207a06=a187_0x1ab5,_0x65731a=Date[_0x207a06(0x171)]();if(hasCachedConfig){const _0x27976c=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x65731a-cacheTime<_0x27976c)return cachedConfig;}const _0xa4ebc0=await fetchCdnConfig();return cachedConfig=_0xa4ebc0,cacheTime=_0x65731a,hasCachedConfig=!![],_0xa4ebc0;}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
@@ -1 +1 @@
1
- (function(_0x4df015,_0x5e5ab0){const _0x2bb9a6=a187_0x9f35,_0x16a907=_0x4df015();while(!![]){try{const _0x20e1d9=parseInt(_0x2bb9a6(0x1ca))/0x1+parseInt(_0x2bb9a6(0x1c6))/0x2*(-parseInt(_0x2bb9a6(0x1b7))/0x3)+-parseInt(_0x2bb9a6(0x1b5))/0x4*(-parseInt(_0x2bb9a6(0x1b8))/0x5)+parseInt(_0x2bb9a6(0x1be))/0x6+-parseInt(_0x2bb9a6(0x1af))/0x7*(parseInt(_0x2bb9a6(0x1c3))/0x8)+parseInt(_0x2bb9a6(0x1ac))/0x9+-parseInt(_0x2bb9a6(0x1c1))/0xa;if(_0x20e1d9===_0x5e5ab0)break;else _0x16a907['push'](_0x16a907['shift']());}catch(_0x5d210a){_0x16a907['push'](_0x16a907['shift']());}}}(a187_0x55ec,0x3cd7e));import a187_0x12fd5 from'node:fs';import a187_0x25b4b1 from'node:path';import a187_0x5a509e from'semver';function a187_0x9f35(_0x2a07c8,_0x35b3a4){_0x2a07c8=_0x2a07c8-0x1ac;const _0x55ec1d=a187_0x55ec();let _0x9f35dd=_0x55ec1d[_0x2a07c8];return _0x9f35dd;}import{getCdnConfig}from'../utils/cdn-config.js';function a187_0x55ec(){const _0x20641d=['package.json','4016448vRxtFE','all','\x1b[33m','126CLyuTq','@lovrabet/sdk','latest','dependencies','node_modules','\x20\x20\x20Upgrade\x20command:\x20','181564DcrShV','readFileSync','1407993SZyxpW','35uwXdVp','existsSync','parse','minVersion','devDependencies','log','2593788UEjneh','join','\x1b[1m','2685560qkrzfp','node','149632XgxGEd','version','stableVersion','2ZLsyjc','utf8','packageName','\x1b[0m','127466pdFLgI','utf-8','npm\x20install\x20','coerce'];a187_0x55ec=function(){return _0x20641d;};return a187_0x55ec();}const FALLBACK_MIN_SDK_VERSION='1.2.0';function isNonNumericVersion(_0x275a93){const _0x45fbe6=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x45fbe6['some'](_0xe82c8=>_0xe82c8['test'](_0x275a93));}function getInstalledVersion(_0x54aa5a,_0x5ed58){const _0x501510=a187_0x9f35;try{const _0x5e2713=a187_0x25b4b1['join'](_0x54aa5a,_0x501510(0x1b3),_0x5ed58,'package.json');if(a187_0x12fd5[_0x501510(0x1b9)](_0x5e2713)){const _0x4d2ec9=JSON[_0x501510(0x1ba)](a187_0x12fd5[_0x501510(0x1b6)](_0x5e2713,_0x501510(0x1cb)));return _0x4d2ec9[_0x501510(0x1c4)]||null;}}catch{}return null;}async function getSdkStableVersion(){const _0x5691ed=a187_0x9f35;try{const _0x410fe7=await getCdnConfig();return _0x410fe7?.['sdk']?.[_0x5691ed(0x1c2)]?.[_0x5691ed(0x1c5)]||null;}catch{return null;}}async function getSdkPackageName(){const _0x180a94=a187_0x9f35;try{const _0x10d71a=await getCdnConfig();return _0x10d71a?.['sdk']?.['node']?.[_0x180a94(0x1c8)]||_0x180a94(0x1b0);}catch{return _0x180a94(0x1b0);}}export async function checkSdkVersion(_0x1c42e8){const _0x4aa21f=a187_0x9f35,_0x14ac42=a187_0x25b4b1[_0x4aa21f(0x1bf)](_0x1c42e8,_0x4aa21f(0x1ce)),[_0x2eed40,_0x111b5d]=await Promise[_0x4aa21f(0x1ad)]([getSdkStableVersion(),getSdkPackageName()]),_0x2ce2e7=_0x2eed40||FALLBACK_MIN_SDK_VERSION;if(!a187_0x12fd5[_0x4aa21f(0x1b9)](_0x14ac42))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x2ce2e7,'packageName':_0x111b5d,'stableVersion':_0x2eed40};try{const _0x31aea0=JSON[_0x4aa21f(0x1ba)](a187_0x12fd5[_0x4aa21f(0x1b6)](_0x14ac42,_0x4aa21f(0x1c7))),_0x344d04=_0x31aea0[_0x4aa21f(0x1b2)]||{},_0x57e953=_0x31aea0[_0x4aa21f(0x1bc)]||{},_0x389125=_0x344d04[_0x111b5d]||_0x57e953[_0x111b5d];if(!_0x389125)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x2ce2e7,'packageName':_0x111b5d,'stableVersion':_0x2eed40};let _0x2c1ce2=getInstalledVersion(_0x1c42e8,_0x111b5d);!_0x2c1ce2&&(_0x2c1ce2=_0x389125);if(isNonNumericVersion(_0x389125))return{'installed':!![],'version':_0x2c1ce2,'needsUpgrade':![],'minVersion':_0x2ce2e7,'packageName':_0x111b5d,'stableVersion':_0x2eed40};const _0x4c2c46=a187_0x5a509e[_0x4aa21f(0x1cd)](_0x2c1ce2),_0x12a2b7=a187_0x5a509e[_0x4aa21f(0x1cd)](_0x2ce2e7),_0x2ee9fb=_0x4c2c46&&_0x12a2b7?a187_0x5a509e['lt'](_0x4c2c46,_0x12a2b7):![];return{'installed':!![],'version':_0x2c1ce2,'needsUpgrade':_0x2ee9fb,'minVersion':_0x2ce2e7,'packageName':_0x111b5d,'stableVersion':_0x2eed40};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x2ce2e7,'packageName':_0x111b5d,'stableVersion':_0x2eed40};}}export function checkSdkVersionSync(_0x376ca8){const _0x35d7e1=a187_0x9f35,_0x2d01da=a187_0x25b4b1[_0x35d7e1(0x1bf)](_0x376ca8,'package.json'),_0x9f748a=_0x35d7e1(0x1b0);if(!a187_0x12fd5['existsSync'](_0x2d01da))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x9f748a,'stableVersion':null};try{const _0x28e576=JSON[_0x35d7e1(0x1ba)](a187_0x12fd5[_0x35d7e1(0x1b6)](_0x2d01da,_0x35d7e1(0x1c7))),_0x3d16be=_0x28e576['dependencies']||{},_0x3c11f2=_0x28e576['devDependencies']||{},_0x44637f=_0x3d16be[_0x9f748a]||_0x3c11f2[_0x9f748a];if(!_0x44637f)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x9f748a,'stableVersion':null};let _0x1c1d5c=getInstalledVersion(_0x376ca8,_0x9f748a);!_0x1c1d5c&&(_0x1c1d5c=_0x44637f);if(isNonNumericVersion(_0x44637f))return{'installed':!![],'version':_0x1c1d5c,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x9f748a,'stableVersion':null};const _0x1fd0bf=a187_0x5a509e[_0x35d7e1(0x1cd)](_0x1c1d5c),_0x144e07=_0x1fd0bf?a187_0x5a509e['lt'](_0x1fd0bf,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x1c1d5c,'needsUpgrade':_0x144e07,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x9f748a,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x9f748a,'stableVersion':null};}}export function printSdkUpgradeWarning(_0x8b5080){const _0x3e9b4b=a187_0x9f35;if(!_0x8b5080['needsUpgrade'])return;const _0x44945d=_0x3e9b4b(0x1ae),_0x1c8314=_0x3e9b4b(0x1c9),_0x2b04e3=_0x3e9b4b(0x1c0),_0x5350ea=_0x8b5080['packageName']||_0x3e9b4b(0x1b0),_0xf5f0=_0x8b5080['stableVersion']||_0x8b5080[_0x3e9b4b(0x1bb)],_0x21b8f2=_0x3e9b4b(0x1cc)+_0x5350ea+'@'+(_0xf5f0||_0x3e9b4b(0x1b1));console['log'](),console[_0x3e9b4b(0x1bd)](''+_0x44945d+_0x2b04e3+'↪\x20SDK\x20update\x20available'+_0x1c8314),console[_0x3e9b4b(0x1bd)](_0x44945d+'\x20\x20\x20Current\x20version:\x20'+_0x5350ea+'@'+_0x8b5080[_0x3e9b4b(0x1c4)]+_0x1c8314),console[_0x3e9b4b(0x1bd)](_0x44945d+'\x20\x20\x20Stable\x20version:\x20'+_0xf5f0+_0x1c8314),console[_0x3e9b4b(0x1bd)](_0x44945d+_0x3e9b4b(0x1b4)+_0x21b8f2+_0x1c8314),console[_0x3e9b4b(0x1bd)]();}
1
+ const a188_0x3d9834=a188_0x21d5;(function(_0x391159,_0x1a1bc4){const _0x4ca2a9=a188_0x21d5,_0x1eb0b6=_0x391159();while(!![]){try{const _0x3179bf=parseInt(_0x4ca2a9(0x16f))/0x1*(parseInt(_0x4ca2a9(0x17b))/0x2)+parseInt(_0x4ca2a9(0x179))/0x3+-parseInt(_0x4ca2a9(0x17d))/0x4*(-parseInt(_0x4ca2a9(0x17e))/0x5)+parseInt(_0x4ca2a9(0x178))/0x6*(-parseInt(_0x4ca2a9(0x189))/0x7)+-parseInt(_0x4ca2a9(0x172))/0x8*(-parseInt(_0x4ca2a9(0x18e))/0x9)+parseInt(_0x4ca2a9(0x18d))/0xa*(-parseInt(_0x4ca2a9(0x190))/0xb)+-parseInt(_0x4ca2a9(0x182))/0xc*(parseInt(_0x4ca2a9(0x185))/0xd);if(_0x3179bf===_0x1a1bc4)break;else _0x1eb0b6['push'](_0x1eb0b6['shift']());}catch(_0x5c2f57){_0x1eb0b6['push'](_0x1eb0b6['shift']());}}}(a188_0x5641,0x3217f));import a188_0x3ba592 from'node:fs';import a188_0x2e4a9a from'node:path';import a188_0x5d25f6 from'semver';import{getCdnConfig}from'../utils/cdn-config.js';const FALLBACK_MIN_SDK_VERSION=a188_0x3d9834(0x18f);function isNonNumericVersion(_0x3a47b6){const _0x211004=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x211004['some'](_0x2c20f7=>_0x2c20f7['test'](_0x3a47b6));}function getInstalledVersion(_0x4d11d,_0x485148){const _0x237ab1=a188_0x3d9834;try{const _0x404291=a188_0x2e4a9a['join'](_0x4d11d,'node_modules',_0x485148,_0x237ab1(0x17c));if(a188_0x3ba592[_0x237ab1(0x174)](_0x404291)){const _0x448b09=JSON[_0x237ab1(0x186)](a188_0x3ba592[_0x237ab1(0x184)](_0x404291,_0x237ab1(0x177)));return _0x448b09[_0x237ab1(0x176)]||null;}}catch{}return null;}function a188_0x5641(){const _0x388912=['636845VpkdWa','\x1b[33m','minVersion','@lovrabet/sdk','415716sRDFhV','devDependencies','readFileSync','91AESSYD','parse','\x1b[0m','latest','84qQfLZJ','utf8','all','stableVersion','9280ZxksLB','45ztbLjr','1.2.0','3091NtnvOY','\x20\x20\x20Upgrade\x20command:\x20','join','needsUpgrade','sdk','4ObRKjt','packageName','npm\x20install\x20','147472cglsLb','coerce','existsSync','dependencies','version','utf-8','25770hLIfvd','109800EdqcZP','log','188242OUbPrp','package.json','8vtGupS'];a188_0x5641=function(){return _0x388912;};return a188_0x5641();}async function getSdkStableVersion(){const _0x62b0f6=a188_0x3d9834;try{const _0x1e5b90=await getCdnConfig();return _0x1e5b90?.['sdk']?.['node']?.[_0x62b0f6(0x18c)]||null;}catch{return null;}}async function getSdkPackageName(){const _0x594d0b=a188_0x3d9834;try{const _0x5233fa=await getCdnConfig();return _0x5233fa?.[_0x594d0b(0x16e)]?.['node']?.[_0x594d0b(0x170)]||_0x594d0b(0x181);}catch{return _0x594d0b(0x181);}}function a188_0x21d5(_0x1d76cf,_0x3e8c5c){_0x1d76cf=_0x1d76cf-0x16e;const _0x564160=a188_0x5641();let _0x21d583=_0x564160[_0x1d76cf];return _0x21d583;}export async function checkSdkVersion(_0x1299a3){const _0x47310f=a188_0x3d9834,_0x5098ca=a188_0x2e4a9a[_0x47310f(0x192)](_0x1299a3,'package.json'),[_0x1cc9d6,_0x56fa59]=await Promise[_0x47310f(0x18b)]([getSdkStableVersion(),getSdkPackageName()]),_0x27fd19=_0x1cc9d6||FALLBACK_MIN_SDK_VERSION;if(!a188_0x3ba592[_0x47310f(0x174)](_0x5098ca))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x27fd19,'packageName':_0x56fa59,'stableVersion':_0x1cc9d6};try{const _0x5263fd=JSON['parse'](a188_0x3ba592[_0x47310f(0x184)](_0x5098ca,_0x47310f(0x18a))),_0x20274e=_0x5263fd[_0x47310f(0x175)]||{},_0x4659a9=_0x5263fd[_0x47310f(0x183)]||{},_0x81673=_0x20274e[_0x56fa59]||_0x4659a9[_0x56fa59];if(!_0x81673)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x27fd19,'packageName':_0x56fa59,'stableVersion':_0x1cc9d6};let _0x4419ff=getInstalledVersion(_0x1299a3,_0x56fa59);!_0x4419ff&&(_0x4419ff=_0x81673);if(isNonNumericVersion(_0x81673))return{'installed':!![],'version':_0x4419ff,'needsUpgrade':![],'minVersion':_0x27fd19,'packageName':_0x56fa59,'stableVersion':_0x1cc9d6};const _0x127f82=a188_0x5d25f6['coerce'](_0x4419ff),_0x697588=a188_0x5d25f6[_0x47310f(0x173)](_0x27fd19),_0x432a42=_0x127f82&&_0x697588?a188_0x5d25f6['lt'](_0x127f82,_0x697588):![];return{'installed':!![],'version':_0x4419ff,'needsUpgrade':_0x432a42,'minVersion':_0x27fd19,'packageName':_0x56fa59,'stableVersion':_0x1cc9d6};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x27fd19,'packageName':_0x56fa59,'stableVersion':_0x1cc9d6};}}export function checkSdkVersionSync(_0x10c983){const _0x4d9467=a188_0x3d9834,_0x23cd77=a188_0x2e4a9a[_0x4d9467(0x192)](_0x10c983,'package.json'),_0x343d63=_0x4d9467(0x181);if(!a188_0x3ba592[_0x4d9467(0x174)](_0x23cd77))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x343d63,'stableVersion':null};try{const _0x309f8b=JSON['parse'](a188_0x3ba592['readFileSync'](_0x23cd77,_0x4d9467(0x18a))),_0x51d55e=_0x309f8b[_0x4d9467(0x175)]||{},_0x196042=_0x309f8b['devDependencies']||{},_0x2ec742=_0x51d55e[_0x343d63]||_0x196042[_0x343d63];if(!_0x2ec742)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x343d63,'stableVersion':null};let _0x53d6dd=getInstalledVersion(_0x10c983,_0x343d63);!_0x53d6dd&&(_0x53d6dd=_0x2ec742);if(isNonNumericVersion(_0x2ec742))return{'installed':!![],'version':_0x53d6dd,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x343d63,'stableVersion':null};const _0xf67656=a188_0x5d25f6[_0x4d9467(0x173)](_0x53d6dd),_0xa5ce6f=_0xf67656?a188_0x5d25f6['lt'](_0xf67656,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x53d6dd,'needsUpgrade':_0xa5ce6f,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x343d63,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x343d63,'stableVersion':null};}}export function printSdkUpgradeWarning(_0x1e4fca){const _0x35a352=a188_0x3d9834;if(!_0x1e4fca[_0x35a352(0x193)])return;const _0x48519d=_0x35a352(0x17f),_0x40e2fb=_0x35a352(0x187),_0x160a52='\x1b[1m',_0x5d47d3=_0x1e4fca[_0x35a352(0x170)]||'@lovrabet/sdk',_0x19c397=_0x1e4fca[_0x35a352(0x18c)]||_0x1e4fca[_0x35a352(0x180)],_0x550d9b=_0x35a352(0x171)+_0x5d47d3+'@'+(_0x19c397||_0x35a352(0x188));console[_0x35a352(0x17a)](),console[_0x35a352(0x17a)](''+_0x48519d+_0x160a52+'↪\x20SDK\x20update\x20available'+_0x40e2fb),console['log'](_0x48519d+'\x20\x20\x20Current\x20version:\x20'+_0x5d47d3+'@'+_0x1e4fca['version']+_0x40e2fb),console[_0x35a352(0x17a)](_0x48519d+'\x20\x20\x20Stable\x20version:\x20'+_0x19c397+_0x40e2fb),console[_0x35a352(0x17a)](_0x48519d+_0x35a352(0x191)+_0x550d9b+_0x40e2fb),console['log']();}
@@ -1 +1 @@
1
- (function(_0x17b7f5,_0x2c5a43){const _0x2ff023=a188_0x1110,_0x182a3d=_0x17b7f5();while(!![]){try{const _0x576e2c=parseInt(_0x2ff023(0x18a))/0x1*(-parseInt(_0x2ff023(0x180))/0x2)+parseInt(_0x2ff023(0x179))/0x3+-parseInt(_0x2ff023(0x174))/0x4*(parseInt(_0x2ff023(0x181))/0x5)+parseInt(_0x2ff023(0x193))/0x6*(parseInt(_0x2ff023(0x171))/0x7)+parseInt(_0x2ff023(0x185))/0x8*(-parseInt(_0x2ff023(0x190))/0x9)+-parseInt(_0x2ff023(0x189))/0xa+-parseInt(_0x2ff023(0x177))/0xb*(-parseInt(_0x2ff023(0x184))/0xc);if(_0x576e2c===_0x2c5a43)break;else _0x182a3d['push'](_0x182a3d['shift']());}catch(_0x54735e){_0x182a3d['push'](_0x182a3d['shift']());}}}(a188_0x585a,0xa7256));function a188_0x585a(){const _0x1ad0a5=['1097002cxSTOy','6183590QogSCa','\x20\x20\x20','upgradeMessage','12pYKEwU','157336DAoeSG','\x1b[0m','coerce','\x1b[33m','5925620GHslIS','1ZNWeiu','log','\x20\x20\x20Recommended\x20stable:\x20','\x20\x20\x20Minimum\x20required:\x20','../..','↪\x20New\x20version\x20available','9lleyiM','minimumVersion','npm\x20install\x20-g\x20','222GTLvVx','↪\x20Critical\x20CLI\x20upgrade\x20required','minimumVersionMessage','validation','stableVersion','58982epPlYD','package.json','Current\x20CLI\x20version\x20is\x20below\x20the\x20minimum\x20supported\x20version.','4fiWeTe','1.0.0','\x20\x20\x20Upgrade\x20command:\x20','15729263rUImlr','currentVersion','4021149hWLTht','belowMinimum','Minimum\x20required:\x20','join','utf-8','Upgrade\x20command:\x20','\x1b[31m'];a188_0x585a=function(){return _0x1ad0a5;};return a188_0x585a();}function a188_0x1110(_0x4c8a1f,_0x24e8e4){_0x4c8a1f=_0x4c8a1f-0x16d;const _0x585a80=a188_0x585a();let _0x111050=_0x585a80[_0x4c8a1f];return _0x111050;}import{readFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';import a188_0x1b4d57 from'semver';import{getCliVersionPolicy}from'../utils/cli-version-policy.js';import{NPM_PACKAGE_NAME}from'../constant/cli.js';import{CliErrors}from'../errors.js';export function getCliUpgradeCommand(_0x4c8b2a){const _0x460780=a188_0x1110,_0xcfb595=_0x4c8b2a['stableVersion']||'latest';return _0x460780(0x192)+NPM_PACKAGE_NAME+'@'+_0xcfb595;}function getCurrentCliVersion(){const _0x23d649=a188_0x1110;try{const _0x4bc9e6=fileURLToPath(import.meta.url),_0x506397=resolve(dirname(_0x4bc9e6),_0x23d649(0x18e)),_0x434c10=resolve(_0x506397,_0x23d649(0x172)),_0x183646=JSON['parse'](readFileSync(_0x434c10,_0x23d649(0x17d)));return _0x183646['version']||_0x23d649(0x175);}catch{return _0x23d649(0x175);}}export async function checkCliVersion(){const _0x4461f0=a188_0x1110,_0x5b3a75=getCurrentCliVersion(),_0x16025d=await getCliVersionPolicy(),_0x584c8b=_0x16025d?.[_0x4461f0(0x170)]||null,_0x21a0b0=_0x16025d?.[_0x4461f0(0x191)]||null;let _0x35de93=![],_0x44a7ee=![];const _0x3d9814=a188_0x1b4d57[_0x4461f0(0x187)](_0x5b3a75);if(_0x3d9814&&_0x584c8b)try{const _0x55e6da=a188_0x1b4d57[_0x4461f0(0x187)](_0x584c8b);if(_0x55e6da)_0x35de93=a188_0x1b4d57['lt'](_0x3d9814,_0x55e6da);}catch{}if(_0x3d9814&&_0x21a0b0)try{const _0x3ac314=a188_0x1b4d57[_0x4461f0(0x187)](_0x21a0b0);if(_0x3ac314)_0x44a7ee=a188_0x1b4d57['lt'](_0x3d9814,_0x3ac314);}catch{}return _0x44a7ee&&(_0x35de93=!![]),{'currentVersion':_0x5b3a75,'stableVersion':_0x584c8b,'minimumVersion':_0x21a0b0,'needsUpgrade':_0x35de93,'belowMinimum':_0x44a7ee,'isPreRelease':![],'upgradeMessage':_0x16025d?.[_0x4461f0(0x183)],'minimumVersionMessage':_0x16025d?.[_0x4461f0(0x16e)]};}export function printCliUpgradeWarning(_0x12b25f){const _0x1a307c=a188_0x1110;if(!_0x12b25f['needsUpgrade']&&!_0x12b25f[_0x1a307c(0x17a)])return;const _0x7bbcc3=_0x1a307c(0x17f),_0x33dfb5=_0x1a307c(0x188),_0x58c853=_0x1a307c(0x186),_0x1836cd='\x1b[1m',_0x15d3ec=getCliUpgradeCommand(_0x12b25f);console[_0x1a307c(0x18b)](),_0x12b25f[_0x1a307c(0x17a)]?(console['log'](''+_0x7bbcc3+_0x1836cd+_0x1a307c(0x16d)+_0x58c853),console[_0x1a307c(0x18b)](_0x7bbcc3+'\x20\x20\x20Current\x20CLI\x20version:\x20'+_0x12b25f['currentVersion']+_0x58c853),_0x12b25f[_0x1a307c(0x191)]&&console[_0x1a307c(0x18b)](_0x7bbcc3+_0x1a307c(0x18d)+_0x12b25f['minimumVersion']+_0x58c853),_0x12b25f[_0x1a307c(0x170)]&&_0x12b25f[_0x1a307c(0x170)]!==_0x12b25f['minimumVersion']&&console['log'](_0x7bbcc3+_0x1a307c(0x18c)+_0x12b25f[_0x1a307c(0x170)]+_0x58c853),_0x12b25f[_0x1a307c(0x16e)]&&console['log'](_0x7bbcc3+_0x1a307c(0x182)+_0x12b25f[_0x1a307c(0x16e)]+_0x58c853),console['log'](_0x7bbcc3+'\x20\x20\x20Upgrade\x20command:\x20'+_0x15d3ec+_0x58c853)):(console[_0x1a307c(0x18b)](''+_0x33dfb5+_0x1836cd+_0x1a307c(0x18f)+_0x58c853),console[_0x1a307c(0x18b)](_0x33dfb5+'\x20\x20\x20Current\x20CLI\x20version:\x20'+_0x12b25f[_0x1a307c(0x178)]+_0x58c853),console[_0x1a307c(0x18b)](_0x33dfb5+'\x20\x20\x20Stable\x20version:\x20'+_0x12b25f[_0x1a307c(0x170)]+_0x58c853),_0x12b25f[_0x1a307c(0x183)]&&console[_0x1a307c(0x18b)](_0x33dfb5+'\x20\x20\x20'+_0x12b25f[_0x1a307c(0x183)]+_0x58c853),console[_0x1a307c(0x18b)](_0x33dfb5+_0x1a307c(0x176)+_0x15d3ec+_0x58c853)),console[_0x1a307c(0x18b)]();}export function assertCliVersionSupported(_0x2ce99b){const _0xf99261=a188_0x1110;if(!_0x2ce99b[_0xf99261(0x17a)])return;const _0x4146c7=[_0x2ce99b[_0xf99261(0x16e)],'Current\x20version:\x20'+_0x2ce99b[_0xf99261(0x178)],_0x2ce99b[_0xf99261(0x191)]?_0xf99261(0x17b)+_0x2ce99b[_0xf99261(0x191)]:null,_0xf99261(0x17e)+getCliUpgradeCommand(_0x2ce99b)]['filter'](Boolean)[_0xf99261(0x17c)]('\x0a');throw CliErrors[_0xf99261(0x16f)](_0xf99261(0x173),_0x4146c7);}
1
+ (function(_0xccffc8,_0x3cc942){const _0x5787e4=a189_0x4528,_0x1e160d=_0xccffc8();while(!![]){try{const _0xcef6e6=-parseInt(_0x5787e4(0xa5))/0x1+parseInt(_0x5787e4(0xb6))/0x2+parseInt(_0x5787e4(0xad))/0x3+parseInt(_0x5787e4(0x9d))/0x4*(-parseInt(_0x5787e4(0x98))/0x5)+-parseInt(_0x5787e4(0xbb))/0x6*(-parseInt(_0x5787e4(0xac))/0x7)+parseInt(_0x5787e4(0xae))/0x8*(parseInt(_0x5787e4(0x97))/0x9)+-parseInt(_0x5787e4(0xa0))/0xa;if(_0xcef6e6===_0x3cc942)break;else _0x1e160d['push'](_0x1e160d['shift']());}catch(_0x4dc1d9){_0x1e160d['push'](_0x1e160d['shift']());}}}(a189_0x1e27,0x24638));import{readFileSync}from'node:fs';function a189_0x1e27(){const _0x21d2c1=['\x20\x20\x20Minimum\x20required:\x20','276684MKIJIW','Current\x20version:\x20','join','1655430lJnVHd','1.0.0','belowMinimum','needsUpgrade','\x20\x20\x20Upgrade\x20command:\x20','64806YBSjVm','Current\x20CLI\x20version\x20is\x20below\x20the\x20minimum\x20supported\x20version.','\x20\x20\x20Stable\x20version:\x20','coerce','upgradeMessage','↪\x20Critical\x20CLI\x20upgrade\x20required','\x20\x20\x20','7CCCrPl','744189TcIRbP','16PylSRT','minimumVersionMessage','currentVersion','version','parse','minimumVersion','log','Minimum\x20required:\x20','315872EXaaqa','↪\x20New\x20version\x20available','\x20\x20\x20Recommended\x20stable:\x20','npm\x20install\x20-g\x20','package.json','112824ZmxoHF','utf-8','\x1b[33m','418212xlKKZK','10zSvuGc','\x1b[0m','filter','stableVersion'];a189_0x1e27=function(){return _0x21d2c1;};return a189_0x1e27();}import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';import a189_0x5002de from'semver';import{getCliVersionPolicy}from'../utils/cli-version-policy.js';import{NPM_PACKAGE_NAME}from'../constant/cli.js';import{CliErrors}from'../errors.js';export function getCliUpgradeCommand(_0x50cc75){const _0x31dee7=a189_0x4528,_0x50b5fe=_0x50cc75['stableVersion']||'latest';return _0x31dee7(0xb9)+NPM_PACKAGE_NAME+'@'+_0x50b5fe;}function getCurrentCliVersion(){const _0x578226=a189_0x4528;try{const _0xaed991=fileURLToPath(import.meta.url),_0x340b46=resolve(dirname(_0xaed991),'../..'),_0x315775=resolve(_0x340b46,_0x578226(0xba)),_0x521c8e=JSON[_0x578226(0xb2)](readFileSync(_0x315775,_0x578226(0xbc)));return _0x521c8e[_0x578226(0xb1)]||_0x578226(0xa1);}catch{return'1.0.0';}}export async function checkCliVersion(){const _0x5a6cfd=a189_0x4528,_0x34fa7b=getCurrentCliVersion(),_0x3e31d2=await getCliVersionPolicy(),_0x5056fb=_0x3e31d2?.[_0x5a6cfd(0x9b)]||null,_0x335437=_0x3e31d2?.['minimumVersion']||null;let _0x104db8=![],_0x3c042d=![];const _0x29c737=a189_0x5002de[_0x5a6cfd(0xa8)](_0x34fa7b);if(_0x29c737&&_0x5056fb)try{const _0x33a9ea=a189_0x5002de[_0x5a6cfd(0xa8)](_0x5056fb);if(_0x33a9ea)_0x104db8=a189_0x5002de['lt'](_0x29c737,_0x33a9ea);}catch{}if(_0x29c737&&_0x335437)try{const _0x5bee60=a189_0x5002de[_0x5a6cfd(0xa8)](_0x335437);if(_0x5bee60)_0x3c042d=a189_0x5002de['lt'](_0x29c737,_0x5bee60);}catch{}return _0x3c042d&&(_0x104db8=!![]),{'currentVersion':_0x34fa7b,'stableVersion':_0x5056fb,'minimumVersion':_0x335437,'needsUpgrade':_0x104db8,'belowMinimum':_0x3c042d,'isPreRelease':![],'upgradeMessage':_0x3e31d2?.[_0x5a6cfd(0xa9)],'minimumVersionMessage':_0x3e31d2?.[_0x5a6cfd(0xaf)]};}function a189_0x4528(_0x25dc90,_0x599b4e){_0x25dc90=_0x25dc90-0x96;const _0x1e2794=a189_0x1e27();let _0x4528ac=_0x1e2794[_0x25dc90];return _0x4528ac;}export function printCliUpgradeWarning(_0x298ee2){const _0x53b4ac=a189_0x4528;if(!_0x298ee2[_0x53b4ac(0xa3)]&&!_0x298ee2[_0x53b4ac(0xa2)])return;const _0x38168e='\x1b[31m',_0x37d09a=_0x53b4ac(0x96),_0x3b32b6=_0x53b4ac(0x99),_0x4ab29e='\x1b[1m',_0x148667=getCliUpgradeCommand(_0x298ee2);console['log'](),_0x298ee2[_0x53b4ac(0xa2)]?(console[_0x53b4ac(0xb4)](''+_0x38168e+_0x4ab29e+_0x53b4ac(0xaa)+_0x3b32b6),console['log'](_0x38168e+'\x20\x20\x20Current\x20CLI\x20version:\x20'+_0x298ee2[_0x53b4ac(0xb0)]+_0x3b32b6),_0x298ee2['minimumVersion']&&console[_0x53b4ac(0xb4)](_0x38168e+_0x53b4ac(0x9c)+_0x298ee2[_0x53b4ac(0xb3)]+_0x3b32b6),_0x298ee2[_0x53b4ac(0x9b)]&&_0x298ee2[_0x53b4ac(0x9b)]!==_0x298ee2[_0x53b4ac(0xb3)]&&console['log'](_0x38168e+_0x53b4ac(0xb8)+_0x298ee2[_0x53b4ac(0x9b)]+_0x3b32b6),_0x298ee2[_0x53b4ac(0xaf)]&&console['log'](_0x38168e+'\x20\x20\x20'+_0x298ee2[_0x53b4ac(0xaf)]+_0x3b32b6),console[_0x53b4ac(0xb4)](_0x38168e+'\x20\x20\x20Upgrade\x20command:\x20'+_0x148667+_0x3b32b6)):(console[_0x53b4ac(0xb4)](''+_0x37d09a+_0x4ab29e+_0x53b4ac(0xb7)+_0x3b32b6),console[_0x53b4ac(0xb4)](_0x37d09a+'\x20\x20\x20Current\x20CLI\x20version:\x20'+_0x298ee2['currentVersion']+_0x3b32b6),console[_0x53b4ac(0xb4)](_0x37d09a+_0x53b4ac(0xa7)+_0x298ee2['stableVersion']+_0x3b32b6),_0x298ee2[_0x53b4ac(0xa9)]&&console['log'](_0x37d09a+_0x53b4ac(0xab)+_0x298ee2[_0x53b4ac(0xa9)]+_0x3b32b6),console['log'](_0x37d09a+_0x53b4ac(0xa4)+_0x148667+_0x3b32b6)),console[_0x53b4ac(0xb4)]();}export function assertCliVersionSupported(_0x3a3d7d){const _0x14cd94=a189_0x4528;if(!_0x3a3d7d[_0x14cd94(0xa2)])return;const _0x5b577b=[_0x3a3d7d['minimumVersionMessage'],_0x14cd94(0x9e)+_0x3a3d7d['currentVersion'],_0x3a3d7d['minimumVersion']?_0x14cd94(0xb5)+_0x3a3d7d[_0x14cd94(0xb3)]:null,'Upgrade\x20command:\x20'+getCliUpgradeCommand(_0x3a3d7d)][_0x14cd94(0x9a)](Boolean)[_0x14cd94(0x9f)]('\x0a');throw CliErrors['validation'](_0x14cd94(0xa6),_0x5b577b);}
@@ -1 +1 @@
1
- (function(_0x234e7d,_0x206096){const _0x2cbf94=a189_0x25fd,_0x104b03=_0x234e7d();while(!![]){try{const _0x4c09bd=parseInt(_0x2cbf94(0x7d))/0x1+parseInt(_0x2cbf94(0x72))/0x2+parseInt(_0x2cbf94(0x82))/0x3*(-parseInt(_0x2cbf94(0x85))/0x4)+-parseInt(_0x2cbf94(0x84))/0x5*(-parseInt(_0x2cbf94(0x77))/0x6)+-parseInt(_0x2cbf94(0x7f))/0x7+-parseInt(_0x2cbf94(0x7c))/0x8+-parseInt(_0x2cbf94(0x78))/0x9;if(_0x4c09bd===_0x206096)break;else _0x104b03['push'](_0x104b03['shift']());}catch(_0x47e6f9){_0x104b03['push'](_0x104b03['shift']());}}}(a189_0xcbe0,0xda2d3));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 a189_0xcbe0(){const _0x496230=['3rYwGOq','recommendedVersion','15arkSCm','2353552Editzf','latestVersion','cli','length','object','915138ZygMIK','trim','minimumVersion','minVersion','json','2536206fyybXC','2251242GeKReT','abort','string','application/json','887000DtTmwZ','1282938QUTiKF','signal','8158906pmRWJP','upgradeMessage','now'];a189_0xcbe0=function(){return _0x496230;};return a189_0xcbe0();}function pickString(_0x2ceb96){const _0x5941db=a189_0x25fd;return typeof _0x2ceb96===_0x5941db(0x7a)&&_0x2ceb96[_0x5941db(0x73)]()[_0x5941db(0x88)]>0x0?_0x2ceb96['trim']():null;}function normalizeCliVersionPolicy(_0x18326c){const _0x477f99=a189_0x25fd;if(!_0x18326c||typeof _0x18326c!==_0x477f99(0x89))return null;const _0x1dcc8d=_0x18326c,_0x4482c4=_0x1dcc8d[_0x477f99(0x87)]&&typeof _0x1dcc8d[_0x477f99(0x87)]===_0x477f99(0x89)?_0x1dcc8d[_0x477f99(0x87)]:_0x1dcc8d,_0x5aa585=pickString(_0x4482c4['stableVersion'])||pickString(_0x4482c4[_0x477f99(0x86)])||pickString(_0x4482c4[_0x477f99(0x83)]),_0x3eb267=pickString(_0x4482c4[_0x477f99(0x74)])||pickString(_0x4482c4[_0x477f99(0x75)]);if(!_0x5aa585&&!_0x3eb267)return null;return{'stableVersion':_0x5aa585,'minimumVersion':_0x3eb267,'upgradeMessage':pickString(_0x4482c4[_0x477f99(0x80)])||undefined,'minimumVersionMessage':pickString(_0x4482c4['minimumVersionMessage'])||undefined};}export async function fetchCliVersionPolicy(){const _0x16fec9=a189_0x25fd,_0x32d631=new AbortController(),_0x467f15=setTimeout(()=>_0x32d631[_0x16fec9(0x79)](),FETCH_TIMEOUT_MS);try{const _0x412370=await fetch(CLI_VERSION_POLICY_URL,{'headers':{'Accept':_0x16fec9(0x7b)},'signal':_0x32d631[_0x16fec9(0x7e)]});if(!_0x412370['ok'])return null;const _0x163ac8=await _0x412370[_0x16fec9(0x76)]();return normalizeCliVersionPolicy(_0x163ac8);}catch{return null;}finally{clearTimeout(_0x467f15);}}let cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];function a189_0x25fd(_0x50de5e,_0x114ecf){_0x50de5e=_0x50de5e-0x72;const _0xcbe0c0=a189_0xcbe0();let _0x25fd83=_0xcbe0c0[_0x50de5e];return _0x25fd83;}export async function getCliVersionPolicy(){const _0x1d5c9f=a189_0x25fd,_0x17ac5c=Date[_0x1d5c9f(0x81)]();if(hasCachedPolicy){const _0x38c590=cachedPolicy?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x17ac5c-cacheTime<_0x38c590)return cachedPolicy;}const _0x1ca162=await fetchCliVersionPolicy();return cachedPolicy=_0x1ca162,cacheTime=_0x17ac5c,hasCachedPolicy=!![],_0x1ca162;}export function clearCliVersionPolicyCache(){cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];}
1
+ (function(_0x1f7797,_0x40c993){const _0x492492=a190_0x2469,_0x3b7a3a=_0x1f7797();while(!![]){try{const _0x47de87=-parseInt(_0x492492(0x94))/0x1+parseInt(_0x492492(0xa1))/0x2*(-parseInt(_0x492492(0xa0))/0x3)+-parseInt(_0x492492(0xa2))/0x4+parseInt(_0x492492(0x9a))/0x5+-parseInt(_0x492492(0x9e))/0x6+-parseInt(_0x492492(0x92))/0x7+parseInt(_0x492492(0x91))/0x8*(parseInt(_0x492492(0x98))/0x9);if(_0x47de87===_0x40c993)break;else _0x3b7a3a['push'](_0x3b7a3a['shift']());}catch(_0x4e7d4b){_0x3b7a3a['push'](_0x3b7a3a['shift']());}}}(a190_0x4ee0,0x3ad2b));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(_0x1def90){const _0x10c827=a190_0x2469;return typeof _0x1def90===_0x10c827(0x93)&&_0x1def90[_0x10c827(0x9d)]()[_0x10c827(0x9c)]>0x0?_0x1def90[_0x10c827(0x9d)]():null;}function a190_0x4ee0(){const _0x38a4b0=['9393606rSAkIS','upgradeMessage','1408900yCXdOP','cli','length','trim','1068696UvlVyC','object','12jBJPrs','82372TAmGBk','1410496VkARTK','stableVersion','latestVersion','now','application/json','8cYoNBD','85925MdOQyi','string','376816MZjhhQ','signal','minimumVersionMessage','recommendedVersion'];a190_0x4ee0=function(){return _0x38a4b0;};return a190_0x4ee0();}function normalizeCliVersionPolicy(_0x6682f){const _0xa23137=a190_0x2469;if(!_0x6682f||typeof _0x6682f!==_0xa23137(0x9f))return null;const _0x24b73a=_0x6682f,_0xa9d2d1=_0x24b73a[_0xa23137(0x9b)]&&typeof _0x24b73a[_0xa23137(0x9b)]===_0xa23137(0x9f)?_0x24b73a['cli']:_0x24b73a,_0x5d7a26=pickString(_0xa9d2d1[_0xa23137(0x8d)])||pickString(_0xa9d2d1[_0xa23137(0x8e)])||pickString(_0xa9d2d1[_0xa23137(0x97)]),_0x23531b=pickString(_0xa9d2d1['minimumVersion'])||pickString(_0xa9d2d1['minVersion']);if(!_0x5d7a26&&!_0x23531b)return null;return{'stableVersion':_0x5d7a26,'minimumVersion':_0x23531b,'upgradeMessage':pickString(_0xa9d2d1[_0xa23137(0x99)])||undefined,'minimumVersionMessage':pickString(_0xa9d2d1[_0xa23137(0x96)])||undefined};}export async function fetchCliVersionPolicy(){const _0x3a34da=a190_0x2469,_0x56b89a=new AbortController(),_0x2d9dd5=setTimeout(()=>_0x56b89a['abort'](),FETCH_TIMEOUT_MS);try{const _0x57bc63=await fetch(CLI_VERSION_POLICY_URL,{'headers':{'Accept':_0x3a34da(0x90)},'signal':_0x56b89a[_0x3a34da(0x95)]});if(!_0x57bc63['ok'])return null;const _0x48c8bd=await _0x57bc63['json']();return normalizeCliVersionPolicy(_0x48c8bd);}catch{return null;}finally{clearTimeout(_0x2d9dd5);}}let cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];function a190_0x2469(_0x4e1e7a,_0x15c284){_0x4e1e7a=_0x4e1e7a-0x8d;const _0x4ee059=a190_0x4ee0();let _0x246959=_0x4ee059[_0x4e1e7a];return _0x246959;}export async function getCliVersionPolicy(){const _0x3a6d7b=a190_0x2469,_0xf22333=Date[_0x3a6d7b(0x8f)]();if(hasCachedPolicy){const _0x2126b3=cachedPolicy?CACHE_TTL:FAILURE_CACHE_TTL;if(_0xf22333-cacheTime<_0x2126b3)return cachedPolicy;}const _0x953edb=await fetchCliVersionPolicy();return cachedPolicy=_0x953edb,cacheTime=_0xf22333,hasCachedPolicy=!![],_0x953edb;}export function clearCliVersionPolicyCache(){cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];}
@@ -1 +1 @@
1
- (function(_0x5261c3,_0x2ac356){const _0x7c6c12=a190_0x46bc,_0x346202=_0x5261c3();while(!![]){try{const _0x121965=-parseInt(_0x7c6c12(0x1ae))/0x1+-parseInt(_0x7c6c12(0x1ab))/0x2*(-parseInt(_0x7c6c12(0x1a4))/0x3)+-parseInt(_0x7c6c12(0x1ac))/0x4*(parseInt(_0x7c6c12(0x1aa))/0x5)+parseInt(_0x7c6c12(0x1a9))/0x6*(-parseInt(_0x7c6c12(0x1ad))/0x7)+-parseInt(_0x7c6c12(0x1a6))/0x8+parseInt(_0x7c6c12(0x1a3))/0x9*(-parseInt(_0x7c6c12(0x1a8))/0xa)+parseInt(_0x7c6c12(0x1a7))/0xb;if(_0x121965===_0x2ac356)break;else _0x346202['push'](_0x346202['shift']());}catch(_0x4ab21f){_0x346202['push'](_0x346202['shift']());}}}(a190_0x1230,0x81be7));import{initEnv}from'../constant/env.js';import{readRawConfig,getConfigAppCode as a190_0xf7bdc7,getMultiAppConfigs as a190_0x39b880,getTemplateBaseUrl as a190_0x259b6b}from'../context.js';export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';export{isInProject}from'../context.js';export function readConfig(_0x38006f){const _0x40ca20=a190_0x46bc,_0x22ce8a=readRawConfig(_0x38006f);return _0x22ce8a[_0x40ca20(0x1a5)]&&typeof _0x22ce8a[_0x40ca20(0x1a5)]===_0x40ca20(0x1af)&&initEnv(_0x22ce8a[_0x40ca20(0x1a5)]),_0x22ce8a;}export function getConfigAppCode(){return a190_0xf7bdc7();}function a190_0x46bc(_0x1b4709,_0x24096b){_0x1b4709=_0x1b4709-0x1a3;const _0x1230eb=a190_0x1230();let _0x46bc1a=_0x1230eb[_0x1b4709];return _0x46bc1a;}export function getMultiAppConfigs(_0x431df5='project'){return a190_0x39b880(_0x431df5);}function a190_0x1230(){const _0x18d3ee=['1982533AHSVGA','477836afyNnQ','string','45xstlXJ','3141TQqpRX','env','930784kqhIzU','10740818VnkDUw','610960QlbMqR','6DRYfad','723725wcpWwF','1686nfhbJj','4rUGNLC'];a190_0x1230=function(){return _0x18d3ee;};return a190_0x1230();}export function getTemplateBaseUrl(){return a190_0x259b6b();}
1
+ (function(_0xab2b3f,_0x523768){const _0x1c733a=a191_0x1167,_0x2865d8=_0xab2b3f();while(!![]){try{const _0x315fdb=-parseInt(_0x1c733a(0x1a5))/0x1+-parseInt(_0x1c733a(0x1ad))/0x2*(-parseInt(_0x1c733a(0x1ac))/0x3)+parseInt(_0x1c733a(0x1a8))/0x4*(parseInt(_0x1c733a(0x1a3))/0x5)+-parseInt(_0x1c733a(0x1ab))/0x6+parseInt(_0x1c733a(0x1a7))/0x7+-parseInt(_0x1c733a(0x1a4))/0x8*(parseInt(_0x1c733a(0x1a6))/0x9)+parseInt(_0x1c733a(0x1aa))/0xa;if(_0x315fdb===_0x523768)break;else _0x2865d8['push'](_0x2865d8['shift']());}catch(_0x2b0e94){_0x2865d8['push'](_0x2865d8['shift']());}}}(a191_0x2b12,0x75e73));import{initEnv}from'../constant/env.js';import{readRawConfig,getConfigAppCode as a191_0x5d3585,getMultiAppConfigs as a191_0x46d2d5,getTemplateBaseUrl as a191_0x264257}from'../context.js';export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';function a191_0x2b12(){const _0x49b9f3=['40962cgYzDm','string','75VIckvf','7454728cxOPOw','554606sSmnnP','9yOJZzJ','2169601ViwyEW','144004Ozpqsp','env','11864580IlmKii','4949010NPmZbh','111klfwcK'];a191_0x2b12=function(){return _0x49b9f3;};return a191_0x2b12();}function a191_0x1167(_0x10a0fd,_0x3703e2){_0x10a0fd=_0x10a0fd-0x1a2;const _0x2b12ba=a191_0x2b12();let _0x11674c=_0x2b12ba[_0x10a0fd];return _0x11674c;}export{isInProject}from'../context.js';export function readConfig(_0x4a95d0){const _0xfeea98=a191_0x1167,_0x20ef64=readRawConfig(_0x4a95d0);return _0x20ef64[_0xfeea98(0x1a9)]&&typeof _0x20ef64['env']===_0xfeea98(0x1a2)&&initEnv(_0x20ef64[_0xfeea98(0x1a9)]),_0x20ef64;}export function getConfigAppCode(){return a191_0x5d3585();}export function getMultiAppConfigs(_0x36cf1f='project'){return a191_0x46d2d5(_0x36cf1f);}export function getTemplateBaseUrl(){return a191_0x264257();}
@@ -1 +1 @@
1
- function a191_0x506f(){const _0x1309fb=['readdirSync','1417514CvDkVR','8073630EDhBSm','copyFileSync','21626796ZUGWoy','356396zrkoed','12wSwPkL','mkdirSync','6hwuBjH','1860336xYNBMG','13mkHzzd','40LuPMPX','isDirectory','11CiEulL','join','342628GWnRnu','error','415NoePfK','复制目录时出错:','4552DcMQRU','name'];a191_0x506f=function(){return _0x1309fb;};return a191_0x506f();}function a191_0x589b(_0x2380d3,_0x5b4e39){_0x2380d3=_0x2380d3-0x15b;const _0x506f18=a191_0x506f();let _0x589bab=_0x506f18[_0x2380d3];return _0x589bab;}(function(_0x59c184,_0x502393){const _0x353efe=a191_0x589b,_0x307884=_0x59c184();while(!![]){try{const _0x2768ba=-parseInt(_0x353efe(0x16e))/0x1+parseInt(_0x353efe(0x163))/0x2*(-parseInt(_0x353efe(0x16f))/0x3)+parseInt(_0x353efe(0x167))/0x4*(-parseInt(_0x353efe(0x165))/0x5)+parseInt(_0x353efe(0x15c))/0x6*(parseInt(_0x353efe(0x16a))/0x7)+parseInt(_0x353efe(0x15f))/0x8*(-parseInt(_0x353efe(0x15d))/0x9)+parseInt(_0x353efe(0x16b))/0xa*(parseInt(_0x353efe(0x161))/0xb)+parseInt(_0x353efe(0x16d))/0xc*(parseInt(_0x353efe(0x15e))/0xd);if(_0x2768ba===_0x502393)break;else _0x307884['push'](_0x307884['shift']());}catch(_0x643634){_0x307884['push'](_0x307884['shift']());}}}(a191_0x506f,0x9cda8));import a191_0x257760 from'node:path';import a191_0x5275b7 from'node:fs';export async function copyDirectory(_0x4d5f91,_0x4769c9){const _0x3316fb=a191_0x589b;try{const _0x270407=a191_0x5275b7[_0x3316fb(0x169)](_0x4d5f91,{'withFileTypes':!![]});a191_0x5275b7[_0x3316fb(0x15b)](_0x4769c9,{'recursive':!![]});for(const _0x4adbff of _0x270407){const _0xa35228=a191_0x257760[_0x3316fb(0x162)](_0x4d5f91,_0x4adbff[_0x3316fb(0x168)]),_0x42f8b1=a191_0x257760[_0x3316fb(0x162)](_0x4769c9,_0x4adbff[_0x3316fb(0x168)]);_0x4adbff[_0x3316fb(0x160)]()?await copyDirectory(_0xa35228,_0x42f8b1):a191_0x5275b7[_0x3316fb(0x16c)](_0xa35228,_0x42f8b1);}}catch(_0x43bfa5){console[_0x3316fb(0x164)](_0x3316fb(0x166),_0x43bfa5);}}
1
+ (function(_0x535e93,_0x31a39f){const _0x5c6c91=a192_0x3eac,_0x2aef65=_0x535e93();while(!![]){try{const _0x21e840=-parseInt(_0x5c6c91(0xd0))/0x1*(-parseInt(_0x5c6c91(0xcb))/0x2)+parseInt(_0x5c6c91(0xc4))/0x3*(-parseInt(_0x5c6c91(0xc3))/0x4)+parseInt(_0x5c6c91(0xcf))/0x5+-parseInt(_0x5c6c91(0xcd))/0x6+-parseInt(_0x5c6c91(0xc9))/0x7*(parseInt(_0x5c6c91(0xce))/0x8)+parseInt(_0x5c6c91(0xd2))/0x9*(-parseInt(_0x5c6c91(0xc5))/0xa)+parseInt(_0x5c6c91(0xcc))/0xb;if(_0x21e840===_0x31a39f)break;else _0x2aef65['push'](_0x2aef65['shift']());}catch(_0x1c5eb7){_0x2aef65['push'](_0x2aef65['shift']());}}}(a192_0x474e,0x1d842));import a192_0x29c0e9 from'node:path';import a192_0x3d5c4f from'node:fs';export async function copyDirectory(_0x5b4753,_0x347496){const _0x504cbb=a192_0x3eac;try{const _0x3a0313=a192_0x3d5c4f[_0x504cbb(0xc6)](_0x5b4753,{'withFileTypes':!![]});a192_0x3d5c4f[_0x504cbb(0xca)](_0x347496,{'recursive':!![]});for(const _0x4c4c66 of _0x3a0313){const _0x18d53d=a192_0x29c0e9[_0x504cbb(0xd1)](_0x5b4753,_0x4c4c66['name']),_0x59c0b3=a192_0x29c0e9[_0x504cbb(0xd1)](_0x347496,_0x4c4c66[_0x504cbb(0xc7)]);_0x4c4c66[_0x504cbb(0xd4)]()?await copyDirectory(_0x18d53d,_0x59c0b3):a192_0x3d5c4f[_0x504cbb(0xc8)](_0x18d53d,_0x59c0b3);}}catch(_0x4280c8){console['error'](_0x504cbb(0xd3),_0x4280c8);}}function a192_0x3eac(_0x4ab16e,_0x39496b){_0x4ab16e=_0x4ab16e-0xc3;const _0x474ef5=a192_0x474e();let _0x3eacc1=_0x474ef5[_0x4ab16e];return _0x3eacc1;}function a192_0x474e(){const _0x7ad3f5=['16KnvTGq','join','522QVdlPg','复制目录时出错:','isDirectory','12kTPUoX','86331mrrxnO','7880QJeXPk','readdirSync','name','copyFileSync','2163DELbAP','mkdirSync','25858buASui','2154240OkPZyr','989628oOcYRD','3768DDmPrJ','803530sAfxGo'];a192_0x474e=function(){return _0x7ad3f5;};return a192_0x474e();}
@@ -1 +1 @@
1
- (function(_0x2230e7,_0x339d96){const _0x2a91c2=a192_0x4505,_0x56d01c=_0x2230e7();while(!![]){try{const _0x5afcda=parseInt(_0x2a91c2(0x15c))/0x1*(parseInt(_0x2a91c2(0x15e))/0x2)+-parseInt(_0x2a91c2(0x157))/0x3+-parseInt(_0x2a91c2(0x158))/0x4+-parseInt(_0x2a91c2(0x160))/0x5*(-parseInt(_0x2a91c2(0x15b))/0x6)+parseInt(_0x2a91c2(0x15d))/0x7+parseInt(_0x2a91c2(0x15f))/0x8+-parseInt(_0x2a91c2(0x159))/0x9;if(_0x5afcda===_0x339d96)break;else _0x56d01c['push'](_0x56d01c['shift']());}catch(_0x519481){_0x56d01c['push'](_0x56d01c['shift']());}}}(a192_0x22a2,0xe1ed0));function toFiniteNumber(_0x28ff2a){const _0x254159=a192_0x4505;if(typeof _0x28ff2a===_0x254159(0x161)&&Number['isFinite'](_0x28ff2a))return _0x28ff2a;if(typeof _0x28ff2a==='string'){const _0x53b7ef=_0x28ff2a[_0x254159(0x15a)]();if(!_0x53b7ef)return undefined;const _0xdb3e2f=Number(_0x53b7ef);if(Number['isFinite'](_0xdb3e2f))return _0xdb3e2f;}return undefined;}function a192_0x22a2(){const _0x2508a3=['24443649AdPyzm','trim','4308108vGYaEz','942389zQdBAe','7659778ULWVjR','2BqQQCT','7268392vPnZFw','10rQVNYt','number','2051427SJoOCJ','224264tJAjma'];a192_0x22a2=function(){return _0x2508a3;};return a192_0x22a2();}function a192_0x4505(_0x33a3c5,_0x2dd304){_0x33a3c5=_0x33a3c5-0x157;const _0x22a21a=a192_0x22a2();let _0x4505ce=_0x22a21a[_0x33a3c5];return _0x4505ce;}export function normalizeEntityWithIdResponse(_0x459cfa){const _0x7cf8d4=toFiniteNumber(_0x459cfa);if(_0x7cf8d4!==undefined)return{'id':_0x7cf8d4,'entity':{'id':_0x7cf8d4}};if(!_0x459cfa||typeof _0x459cfa!=='object')return{'id':undefined,'entity':{}};const _0x286874={..._0x459cfa},_0x20d5c5=toFiniteNumber(_0x286874['id']);return _0x20d5c5!==undefined&&(_0x286874['id']=_0x20d5c5),{'id':_0x20d5c5,'entity':_0x286874};}
1
+ function a193_0x1dd8(_0x490b62,_0xf1aef2){_0x490b62=_0x490b62-0x190;const _0x421527=a193_0x4215();let _0x1dd87a=_0x421527[_0x490b62];return _0x1dd87a;}(function(_0x13c0d,_0x2f18a2){const _0x2e3329=a193_0x1dd8,_0x393485=_0x13c0d();while(!![]){try{const _0x5365a4=-parseInt(_0x2e3329(0x197))/0x1*(-parseInt(_0x2e3329(0x19b))/0x2)+parseInt(_0x2e3329(0x190))/0x3*(-parseInt(_0x2e3329(0x193))/0x4)+parseInt(_0x2e3329(0x194))/0x5+parseInt(_0x2e3329(0x192))/0x6*(-parseInt(_0x2e3329(0x19c))/0x7)+parseInt(_0x2e3329(0x19a))/0x8+-parseInt(_0x2e3329(0x19d))/0x9*(-parseInt(_0x2e3329(0x195))/0xa)+-parseInt(_0x2e3329(0x199))/0xb;if(_0x5365a4===_0x2f18a2)break;else _0x393485['push'](_0x393485['shift']());}catch(_0x3cdd97){_0x393485['push'](_0x393485['shift']());}}}(a193_0x4215,0x5e7b8));function a193_0x4215(){const _0x478dcf=['34kcVaho','7XYIhcZ','505737JdCRBU','1446UEYMwK','object','3307272PvmbMK','64fsTCOs','3530510gvsVlN','90WjegmP','trim','41179zPqHyO','number','19095219IDmCBX','6159768bBYhhz'];a193_0x4215=function(){return _0x478dcf;};return a193_0x4215();}function toFiniteNumber(_0x5d1c62){const _0x3026ae=a193_0x1dd8;if(typeof _0x5d1c62===_0x3026ae(0x198)&&Number['isFinite'](_0x5d1c62))return _0x5d1c62;if(typeof _0x5d1c62==='string'){const _0x331b21=_0x5d1c62[_0x3026ae(0x196)]();if(!_0x331b21)return undefined;const _0x32c63c=Number(_0x331b21);if(Number['isFinite'](_0x32c63c))return _0x32c63c;}return undefined;}export function normalizeEntityWithIdResponse(_0x5ec051){const _0x1126e3=a193_0x1dd8,_0x11bd8e=toFiniteNumber(_0x5ec051);if(_0x11bd8e!==undefined)return{'id':_0x11bd8e,'entity':{'id':_0x11bd8e}};if(!_0x5ec051||typeof _0x5ec051!==_0x1126e3(0x191))return{'id':undefined,'entity':{}};const _0x5e7aa6={..._0x5ec051},_0x4b68e6=toFiniteNumber(_0x5e7aa6['id']);return _0x4b68e6!==undefined&&(_0x5e7aa6['id']=_0x4b68e6),{'id':_0x4b68e6,'entity':_0x5e7aa6};}
@@ -1 +1 @@
1
- (function(_0xf9e3b2,_0x41ba79){const _0x5bdda0=a193_0x85fc,_0x563857=_0xf9e3b2();while(!![]){try{const _0x3dd934=parseInt(_0x5bdda0(0x1dc))/0x1*(parseInt(_0x5bdda0(0x1df))/0x2)+-parseInt(_0x5bdda0(0x1d8))/0x3*(parseInt(_0x5bdda0(0x1db))/0x4)+-parseInt(_0x5bdda0(0x1d5))/0x5+parseInt(_0x5bdda0(0x1d6))/0x6+-parseInt(_0x5bdda0(0x1d9))/0x7*(parseInt(_0x5bdda0(0x1de))/0x8)+-parseInt(_0x5bdda0(0x1d7))/0x9+-parseInt(_0x5bdda0(0x1da))/0xa*(-parseInt(_0x5bdda0(0x1dd))/0xb);if(_0x3dd934===_0x41ba79)break;else _0x563857['push'](_0x563857['shift']());}catch(_0x584524){_0x563857['push'](_0x563857['shift']());}}}(a193_0x6284,0x7c3e6));import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';import{join}from'node:path';function a193_0x85fc(_0x317d5e,_0x4be8f3){_0x317d5e=_0x317d5e-0x1d5;const _0x62842e=a193_0x6284();let _0x85fc6=_0x62842e[_0x317d5e];return _0x85fc6;}export async function copyDir(_0x3ac7e0,_0x45d8b2){const _0x155c86=statSync(_0x3ac7e0);if(_0x155c86['isDirectory']()){!existsSync(_0x45d8b2)&&mkdirSync(_0x45d8b2,{'recursive':!![]});const _0xa7fe68=readdirSync(_0x3ac7e0);for(const _0x109975 of _0xa7fe68){await copyDir(join(_0x3ac7e0,_0x109975),join(_0x45d8b2,_0x109975));}}else copyFileSync(_0x3ac7e0,_0x45d8b2);}function a193_0x6284(){const _0x5239a2=['1571870dWrlEr','4699290gpuroc','4622166DdpsOo','1232244AuhRFk','1158XGPyjw','6493249qZOeFI','6310LstMQN','4632AGstaP','1LOYQWG','24475zqGbxK','8RQzZyf'];a193_0x6284=function(){return _0x5239a2;};return a193_0x6284();}export function ensureDir(_0x51b1f9){!existsSync(_0x51b1f9)&&mkdirSync(_0x51b1f9,{'recursive':!![]});}export function pathExists(_0x554f46){return existsSync(_0x554f46);}
1
+ (function(_0x520e9a,_0x3450da){const _0x2df7d3=a194_0x1d3d,_0x4f01d5=_0x520e9a();while(!![]){try{const _0x46758a=-parseInt(_0x2df7d3(0x7b))/0x1+parseInt(_0x2df7d3(0x83))/0x2*(parseInt(_0x2df7d3(0x7a))/0x3)+-parseInt(_0x2df7d3(0x84))/0x4+parseInt(_0x2df7d3(0x81))/0x5+-parseInt(_0x2df7d3(0x80))/0x6*(parseInt(_0x2df7d3(0x7c))/0x7)+-parseInt(_0x2df7d3(0x7f))/0x8+-parseInt(_0x2df7d3(0x82))/0x9*(-parseInt(_0x2df7d3(0x7d))/0xa);if(_0x46758a===_0x3450da)break;else _0x4f01d5['push'](_0x4f01d5['shift']());}catch(_0x31a686){_0x4f01d5['push'](_0x4f01d5['shift']());}}}(a194_0x2a4f,0x47b3c));import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';function a194_0x2a4f(){const _0xc4a708=['292288ayhUSw','6xbSzec','503290IgEdQU','9alJKpO','13582nEOswp','888092ChDMyY','84omnwSK','311126MzJXiG','1202943YsLMGD','7444200MpzIry','isDirectory'];a194_0x2a4f=function(){return _0xc4a708;};return a194_0x2a4f();}import{join}from'node:path';export async function copyDir(_0x14ec4c,_0x1f8122){const _0x472d6b=a194_0x1d3d,_0x20f169=statSync(_0x14ec4c);if(_0x20f169[_0x472d6b(0x7e)]()){!existsSync(_0x1f8122)&&mkdirSync(_0x1f8122,{'recursive':!![]});const _0x5d73da=readdirSync(_0x14ec4c);for(const _0x187682 of _0x5d73da){await copyDir(join(_0x14ec4c,_0x187682),join(_0x1f8122,_0x187682));}}else copyFileSync(_0x14ec4c,_0x1f8122);}function a194_0x1d3d(_0x1299f9,_0x1ce54c){_0x1299f9=_0x1299f9-0x7a;const _0x2a4fcc=a194_0x2a4f();let _0x1d3d67=_0x2a4fcc[_0x1299f9];return _0x1d3d67;}export function ensureDir(_0x454b65){!existsSync(_0x454b65)&&mkdirSync(_0x454b65,{'recursive':!![]});}export function pathExists(_0x88350b){return existsSync(_0x88350b);}
@@ -1 +1 @@
1
- const a194_0xe96d0d=a194_0x5776;(function(_0x14e3ac,_0x571433){const _0x262f9f=a194_0x5776,_0x267d69=_0x14e3ac();while(!![]){try{const _0x592d57=parseInt(_0x262f9f(0x153))/0x1*(parseInt(_0x262f9f(0x156))/0x2)+-parseInt(_0x262f9f(0x16d))/0x3*(parseInt(_0x262f9f(0x16b))/0x4)+parseInt(_0x262f9f(0x14e))/0x5+parseInt(_0x262f9f(0x16c))/0x6*(-parseInt(_0x262f9f(0x165))/0x7)+-parseInt(_0x262f9f(0x14f))/0x8+-parseInt(_0x262f9f(0x14c))/0x9*(-parseInt(_0x262f9f(0x167))/0xa)+parseInt(_0x262f9f(0x15b))/0xb*(-parseInt(_0x262f9f(0x154))/0xc);if(_0x592d57===_0x571433)break;else _0x267d69['push'](_0x267d69['shift']());}catch(_0x20d6a8){_0x267d69['push'](_0x267d69['shift']());}}}(a194_0x4a8d,0xd65af));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 _0x3e242c=a194_0x5776,_0x2802ba=getTemplateBaseUrl();return _0x2802ba+_0x3e242c(0x160);}const CACHE_DIR=join(homedir(),'.lovrabet',a194_0xe96d0d(0x169));export async function fetchGuidesFromCDN(){const _0x1516ca=a194_0xe96d0d,_0x5d722b=getGuidesCdnUrl(),_0x31fee0=await fetch(_0x5d722b,{'headers':{'Accept':_0x1516ca(0x161)}});if(!_0x31fee0['ok'])throw new Error(_0x1516ca(0x148)+_0x31fee0['status']+'\x20'+_0x31fee0['statusText']);const _0x33b41a=await _0x31fee0[_0x1516ca(0x15f)]();if(!_0x33b41a['guides']||typeof _0x33b41a[_0x1516ca(0x159)]!==_0x1516ca(0x152))throw new Error('CDN\x20返回数据格式错误');return _0x33b41a;}export function writeGuidesToProject(_0x35bb7f,_0x31ec5c,_0x53bb61=a194_0xe96d0d(0x162),_0x480672){const _0x58f0bc=a194_0xe96d0d,_0x42989d=join(_0x31ec5c,_0x53bb61);mkdirSync(_0x42989d,{'recursive':!![]});for(const [_0x1db66b,_0xa4688d]of Object[_0x58f0bc(0x14b)](_0x35bb7f[_0x58f0bc(0x159)])){let _0x1a0058=_0xa4688d[_0x58f0bc(0x155)];_0xa4688d[_0x58f0bc(0x150)]&&(_0x1a0058=appendUpdateTime(_0x1a0058,_0xa4688d[_0x58f0bc(0x150)])),writeFileSync(join(_0x42989d,_0x1db66b+_0x58f0bc(0x168)),_0x1a0058,_0x58f0bc(0x14d));}}export function appendUpdateTime(_0x3a3606,_0x3c418c){const _0x196cc2=a194_0xe96d0d;return _0x3a3606=_0x3a3606['replace'](/\n*>更新时间:.*$/m,''),_0x3a3606[_0x196cc2(0x151)]()+(_0x196cc2(0x149)+_0x3c418c);}export function getSkillTemplate(_0x31504e){const _0x4565e8=a194_0xe96d0d;return _0x31504e[_0x4565e8(0x15c)]?.[_0x4565e8(0x155)]||'';}export function appendExtendContents(_0x4f2280,_0x20e074,_0x463974){const _0x44e664=a194_0xe96d0d,_0x2fa831=[];for(const [,_0x28f6c6]of Object[_0x44e664(0x14b)](_0x20e074[_0x44e664(0x159)])){_0x28f6c6[_0x44e664(0x15a)]&&_0x2fa831[_0x44e664(0x166)](_0x28f6c6['extendContent']['trimEnd']());}if(_0x2fa831[_0x44e664(0x163)]===0x0)return _0x4f2280;return _0x4f2280[_0x44e664(0x151)]()+'\x0a\x0a'+_0x2fa831[_0x44e664(0x158)]('\x0a\x0a')+'\x0a';}function a194_0x4a8d(){const _0x4d45f6=['title','path','json','/skills/guides.json','application/json','.lovrabet/skill/guides','length','replace','35moyzQX','push','2470LCTglW','.md','cache','CDN\x20数据中缺少\x20skillTemplate','386216vvyLnj','442230sTdDAt','3LSarNq','CDN\x20请求失败:\x20','\x0a\x0a>更新时间:','keys','entries','55359PSyFtI','utf-8','3066140sAoIGO','4211144kYXSVK','lastUpdated','trimEnd','object','1GGPTJi','139968mdnulX','content','2366564HQpyEc','map','join','guides','extendContent','1364tRHzhf','skillTemplate'];a194_0x4a8d=function(){return _0x4d45f6;};return a194_0x4a8d();}function a194_0x5776(_0x3ffe5f,_0x26d172){_0x3ffe5f=_0x3ffe5f-0x148;const _0x4a8d33=a194_0x4a8d();let _0x57767b=_0x4a8d33[_0x3ffe5f];return _0x57767b;}export function writeSkillFile(_0x1574ee,_0x1c3466,_0x258583){const _0x39cef6=a194_0xe96d0d,_0x454f6c=getSkillTemplate(_0x1574ee);if(!_0x454f6c)throw new Error(_0x39cef6(0x16a));const _0x484907=dirname(_0x1c3466);mkdirSync(_0x484907,{'recursive':!![]});let _0x1fc110=_0x454f6c[_0x39cef6(0x164)](/\{\{IDE_NAME\}\}/g,_0x258583);_0x1fc110=appendExtendContents(_0x1fc110,_0x1574ee),_0x1574ee[_0x39cef6(0x15c)][_0x39cef6(0x150)]&&(_0x1fc110=appendUpdateTime(_0x1fc110,_0x1574ee[_0x39cef6(0x15c)][_0x39cef6(0x150)])),writeFileSync(_0x1c3466,_0x1fc110,'utf-8');}export async function installGuides(_0x189937){const _0x3c7d7e=a194_0xe96d0d,_0x156075=await fetchGuidesFromCDN();return writeGuidesToProject(_0x156075,_0x189937),Object[_0x3c7d7e(0x14a)](_0x156075['guides'])[_0x3c7d7e(0x163)];}export function getGuidesSummary(_0x2ea09b){const _0x4c0457=a194_0xe96d0d;return Object['entries'](_0x2ea09b[_0x4c0457(0x159)])[_0x4c0457(0x157)](([_0x3382c5,_0x12afea])=>({'key':_0x3382c5,'title':_0x12afea[_0x4c0457(0x15d)],'path':_0x12afea[_0x4c0457(0x15e)]}));}
1
+ const a195_0x997251=a195_0x40bd;function a195_0x40bd(_0x41912f,_0x19bb81){_0x41912f=_0x41912f-0xce;const _0x1165c1=a195_0x1165();let _0x40bd5a=_0x1165c1[_0x41912f];return _0x40bd5a;}(function(_0x45f6a4,_0x38aadf){const _0x23210c=a195_0x40bd,_0x13eb76=_0x45f6a4();while(!![]){try{const _0x1cdec1=parseInt(_0x23210c(0xdb))/0x1*(parseInt(_0x23210c(0xeb))/0x2)+-parseInt(_0x23210c(0xea))/0x3*(parseInt(_0x23210c(0xe1))/0x4)+parseInt(_0x23210c(0xe9))/0x5*(-parseInt(_0x23210c(0xd5))/0x6)+parseInt(_0x23210c(0xda))/0x7+-parseInt(_0x23210c(0xed))/0x8*(parseInt(_0x23210c(0xde))/0x9)+-parseInt(_0x23210c(0xd1))/0xa*(-parseInt(_0x23210c(0xe3))/0xb)+parseInt(_0x23210c(0xd8))/0xc;if(_0x1cdec1===_0x38aadf)break;else _0x13eb76['push'](_0x13eb76['shift']());}catch(_0x3ea226){_0x13eb76['push'](_0x13eb76['shift']());}}}(a195_0x1165,0xdf127));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 _0x53b980=getTemplateBaseUrl();return _0x53b980+'/skills/guides.json';}const CACHE_DIR=join(homedir(),a195_0x997251(0xdf),'cache');export async function fetchGuidesFromCDN(){const _0x37950f=a195_0x997251,_0x43050b=getGuidesCdnUrl(),_0x40dec5=await fetch(_0x43050b,{'headers':{'Accept':_0x37950f(0xd4)}});if(!_0x40dec5['ok'])throw new Error(_0x37950f(0xe2)+_0x40dec5['status']+'\x20'+_0x40dec5[_0x37950f(0xe5)]);const _0x278615=await _0x40dec5['json']();if(!_0x278615['guides']||typeof _0x278615[_0x37950f(0xe6)]!=='object')throw new Error(_0x37950f(0xd3));return _0x278615;}export function writeGuidesToProject(_0x188a63,_0xc905ed,_0x3da21c=a195_0x997251(0xdc),_0x525647){const _0x1c138c=a195_0x997251,_0xa5a4ee=join(_0xc905ed,_0x3da21c);mkdirSync(_0xa5a4ee,{'recursive':!![]});for(const [_0x4cbd64,_0x6efa51]of Object[_0x1c138c(0xcf)](_0x188a63[_0x1c138c(0xe6)])){let _0x2f1057=_0x6efa51[_0x1c138c(0xd2)];_0x6efa51['lastUpdated']&&(_0x2f1057=appendUpdateTime(_0x2f1057,_0x6efa51[_0x1c138c(0xd9)])),writeFileSync(join(_0xa5a4ee,_0x4cbd64+_0x1c138c(0xd7)),_0x2f1057,_0x1c138c(0xdd));}}function a195_0x1165(){const _0x350295=['replace','4735bgMnNb','9ZmBZed','316154HJqrAS','trimEnd','120bISccl','skillTemplate','entries','\x0a\x0a>更新时间:','78370TnZVEt','content','CDN\x20返回数据格式错误','application/json','7230XPWoDQ','CDN\x20数据中缺少\x20skillTemplate','.md','14090112KOStLo','lastUpdated','10256092uOKAHu','1JaKXbt','.lovrabet/skill/guides','utf-8','562446NTbqdk','.lovrabet','extendContent','816496LthXkf','CDN\x20请求失败:\x20','1133JKkyMW','push','statusText','guides','length'];a195_0x1165=function(){return _0x350295;};return a195_0x1165();}export function appendUpdateTime(_0x1da1a7,_0x479d04){const _0x26d98b=a195_0x997251;return _0x1da1a7=_0x1da1a7[_0x26d98b(0xe8)](/\n*>更新时间:.*$/m,''),_0x1da1a7[_0x26d98b(0xec)]()+(_0x26d98b(0xd0)+_0x479d04);}export function getSkillTemplate(_0x362ff9){const _0x41497c=a195_0x997251;return _0x362ff9[_0x41497c(0xce)]?.['content']||'';}export function appendExtendContents(_0x5b906e,_0x2a3f66,_0x125e76){const _0x139d9c=a195_0x997251,_0x42803f=[];for(const [,_0x2bc011]of Object[_0x139d9c(0xcf)](_0x2a3f66['guides'])){_0x2bc011[_0x139d9c(0xe0)]&&_0x42803f[_0x139d9c(0xe4)](_0x2bc011['extendContent'][_0x139d9c(0xec)]());}if(_0x42803f[_0x139d9c(0xe7)]===0x0)return _0x5b906e;return _0x5b906e[_0x139d9c(0xec)]()+'\x0a\x0a'+_0x42803f['join']('\x0a\x0a')+'\x0a';}export function writeSkillFile(_0x2ba22e,_0x22de5c,_0x5f5c79){const _0x17f011=a195_0x997251,_0x159679=getSkillTemplate(_0x2ba22e);if(!_0x159679)throw new Error(_0x17f011(0xd6));const _0x39788a=dirname(_0x22de5c);mkdirSync(_0x39788a,{'recursive':!![]});let _0x346c65=_0x159679[_0x17f011(0xe8)](/\{\{IDE_NAME\}\}/g,_0x5f5c79);_0x346c65=appendExtendContents(_0x346c65,_0x2ba22e),_0x2ba22e[_0x17f011(0xce)][_0x17f011(0xd9)]&&(_0x346c65=appendUpdateTime(_0x346c65,_0x2ba22e[_0x17f011(0xce)][_0x17f011(0xd9)])),writeFileSync(_0x22de5c,_0x346c65,_0x17f011(0xdd));}export async function installGuides(_0x222458){const _0x4cd8bf=a195_0x997251,_0x3022cf=await fetchGuidesFromCDN();return writeGuidesToProject(_0x3022cf,_0x222458),Object['keys'](_0x3022cf[_0x4cd8bf(0xe6)])[_0x4cd8bf(0xe7)];}export function getGuidesSummary(_0x14f805){return Object['entries'](_0x14f805['guides'])['map'](([_0x39fc90,_0x3d06d0])=>({'key':_0x39fc90,'title':_0x3d06d0['title'],'path':_0x3d06d0['path']}));}