@lovrabet/rabetbase-cli 2.1.13 → 2.1.14-beta.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 (201) 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/field-update.js +1 -1
  55. package/lib/commands/dataset/index.js +1 -1
  56. package/lib/commands/dataset/link-create.js +1 -1
  57. package/lib/commands/dataset/link-delete.js +1 -1
  58. package/lib/commands/dataset/link-shared.js +1 -1
  59. package/lib/commands/dataset/link-update.js +1 -1
  60. package/lib/commands/dataset/links.js +1 -1
  61. package/lib/commands/dataset/list.js +1 -1
  62. package/lib/commands/dataset/operations.js +1 -1
  63. package/lib/commands/dataset/rename.js +1 -0
  64. package/lib/commands/db/analyze-cancel.js +1 -1
  65. package/lib/commands/db/analyze-start.js +1 -1
  66. package/lib/commands/db/analyze-status.js +1 -1
  67. package/lib/commands/db/create.js +1 -1
  68. package/lib/commands/db/delete.js +1 -1
  69. package/lib/commands/db/detail.js +1 -1
  70. package/lib/commands/db/diff.js +1 -1
  71. package/lib/commands/db/index.js +1 -1
  72. package/lib/commands/db/list.js +1 -1
  73. package/lib/commands/db/shared.js +1 -1
  74. package/lib/commands/db/tables.js +1 -1
  75. package/lib/commands/db/test.js +1 -1
  76. package/lib/commands/db/update.js +1 -1
  77. package/lib/commands/doctor.js +1 -1
  78. package/lib/commands/init/index.js +1 -1
  79. package/lib/commands/issue/index.js +1 -1
  80. package/lib/commands/issue/nudge.js +1 -1
  81. package/lib/commands/issue/report.js +1 -1
  82. package/lib/commands/issue/shared.js +1 -1
  83. package/lib/commands/logs/index.js +1 -1
  84. package/lib/commands/menu/index.js +1 -1
  85. package/lib/commands/menu/shared/compare-table.js +1 -1
  86. package/lib/commands/menu/shared/index.js +1 -1
  87. package/lib/commands/menu/shared/inquirer.js +1 -1
  88. package/lib/commands/menu/shared/local-pages.js +1 -1
  89. package/lib/commands/menu/shared/logic.js +1 -1
  90. package/lib/commands/menu/shared/service.js +1 -1
  91. package/lib/commands/menu/shared/sync-core.js +1 -1
  92. package/lib/commands/menu/shared/update-core.js +1 -1
  93. package/lib/commands/menu/shared/valid-url.js +1 -1
  94. package/lib/commands/menu/sync.js +1 -1
  95. package/lib/commands/menu/update.js +1 -1
  96. package/lib/commands/page/generate-start.js +1 -1
  97. package/lib/commands/page/generate-status.js +1 -1
  98. package/lib/commands/page/index.js +1 -1
  99. package/lib/commands/page/pull.js +1 -1
  100. package/lib/commands/page/push.js +1 -1
  101. package/lib/commands/page/shared.js +1 -1
  102. package/lib/commands/page/standard-page-status.js +1 -1
  103. package/lib/commands/page/sync.js +1 -1
  104. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  105. package/lib/commands/project/create/format-elapsed.js +1 -1
  106. package/lib/commands/project/create/main.js +1 -1
  107. package/lib/commands/project/create/non-interactive.js +1 -1
  108. package/lib/commands/project/create/project-template-path.js +1 -1
  109. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  110. package/lib/commands/project/create/use-format-code.js +1 -1
  111. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  112. package/lib/commands/project/index.js +1 -1
  113. package/lib/commands/project/init.js +1 -1
  114. package/lib/commands/project/upgrade.js +1 -1
  115. package/lib/commands/registry.js +1 -1
  116. package/lib/commands/run/index.js +1 -1
  117. package/lib/commands/schema.js +1 -1
  118. package/lib/commands/skill/index.js +1 -1
  119. package/lib/commands/sql/create.js +1 -1
  120. package/lib/commands/sql/delete.js +1 -1
  121. package/lib/commands/sql/detail.js +1 -1
  122. package/lib/commands/sql/exec.js +1 -1
  123. package/lib/commands/sql/index.js +1 -1
  124. package/lib/commands/sql/list.js +1 -1
  125. package/lib/commands/sql/pull.js +1 -1
  126. package/lib/commands/sql/push.js +1 -1
  127. package/lib/commands/sql/save.js +1 -1
  128. package/lib/commands/sql/shared.js +1 -1
  129. package/lib/commands/sql/status.js +1 -1
  130. package/lib/commands/sql/validate.js +1 -1
  131. package/lib/config/schema.js +1 -1
  132. package/lib/constant/cdn.js +1 -1
  133. package/lib/constant/cli.js +1 -1
  134. package/lib/constant/defaults.js +1 -1
  135. package/lib/constant/domain.js +1 -1
  136. package/lib/constant/env.js +1 -1
  137. package/lib/constant/output.js +1 -1
  138. package/lib/constant/paths.js +1 -1
  139. package/lib/constant/risk.js +1 -1
  140. package/lib/context.js +1 -1
  141. package/lib/core/alias-resolver.js +1 -1
  142. package/lib/core/api-client.js +1 -1
  143. package/lib/core/bff/config.js +1 -1
  144. package/lib/core/bff/file-system.js +1 -1
  145. package/lib/core/bff/hash.js +1 -1
  146. package/lib/core/bff/lock.js +1 -1
  147. package/lib/core/bff/utils.js +1 -1
  148. package/lib/core/db-resolver.js +1 -1
  149. package/lib/core/page/file-system.js +1 -1
  150. package/lib/core/page/hash.js +1 -1
  151. package/lib/core/page/lock.js +1 -1
  152. package/lib/core/sql-sync/config.js +1 -1
  153. package/lib/core/sql-sync/file-system.js +1 -1
  154. package/lib/core/sql-sync/hash.js +1 -1
  155. package/lib/core/sql-sync/lock.js +1 -1
  156. package/lib/core/sql-sync/utils.js +1 -1
  157. package/lib/core/sql-validator.js +1 -1
  158. package/lib/errors.js +1 -1
  159. package/lib/framework/build-all-flags.js +1 -1
  160. package/lib/framework/flags.js +1 -1
  161. package/lib/framework/help.js +1 -1
  162. package/lib/framework/index.js +1 -1
  163. package/lib/framework/output.js +1 -1
  164. package/lib/framework/response.js +1 -1
  165. package/lib/framework/runner-alias.js +1 -1
  166. package/lib/framework/runner.js +1 -1
  167. package/lib/framework/schema-export.js +1 -1
  168. package/lib/framework/types.js +1 -1
  169. package/lib/generated/build-info.js +1 -1
  170. package/lib/help.js +1 -1
  171. package/lib/skills/main.js +1 -1
  172. package/lib/skills/npx-skills-add.js +1 -1
  173. package/lib/telemetry/cli-command-trace.js +1 -1
  174. package/lib/telemetry/cli-help-trace.js +1 -1
  175. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  176. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  177. package/lib/telemetry/send-cli-trace-log.js +1 -1
  178. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  179. package/lib/utils/ai_config.js +1 -1
  180. package/lib/utils/apply-jq-filter.js +1 -1
  181. package/lib/utils/cdn-config.js +1 -1
  182. package/lib/utils/check-sdk-version.js +1 -1
  183. package/lib/utils/cli-version-check.js +1 -1
  184. package/lib/utils/cli-version-policy.js +1 -1
  185. package/lib/utils/config.js +1 -1
  186. package/lib/utils/copy-directory.js +1 -1
  187. package/lib/utils/entity-with-id.js +1 -1
  188. package/lib/utils/file-utils.js +1 -1
  189. package/lib/utils/guides-cdn.js +1 -1
  190. package/lib/utils/http-client.js +1 -1
  191. package/lib/utils/is-non-interactive.js +1 -1
  192. package/lib/utils/logger.js +1 -1
  193. package/lib/utils/params.js +1 -1
  194. package/lib/utils/platform.js +1 -1
  195. package/lib/utils/rules-cdn.js +1 -1
  196. package/lib/utils/sleep.js +1 -1
  197. package/lib/utils/template-replacer.js +1 -1
  198. package/lib/utils/version.js +1 -1
  199. package/lib/utils/with-active-cookie.js +1 -1
  200. package/lib/utils/write-cli-side-channel.js +1 -1
  201. package/package.json +1 -1
@@ -1 +1 @@
1
- (function(_0x47bb70,_0x506349){const _0x4af725=a169_0x70d2,_0x456f14=_0x47bb70();while(!![]){try{const _0x51ddb2=parseInt(_0x4af725(0x1cc))/0x1+-parseInt(_0x4af725(0x1cd))/0x2*(parseInt(_0x4af725(0x1cf))/0x3)+-parseInt(_0x4af725(0x1c9))/0x4*(parseInt(_0x4af725(0x1cb))/0x5)+-parseInt(_0x4af725(0x1d3))/0x6*(parseInt(_0x4af725(0x1ce))/0x7)+-parseInt(_0x4af725(0x1d1))/0x8*(-parseInt(_0x4af725(0x1ca))/0x9)+-parseInt(_0x4af725(0x1d2))/0xa+parseInt(_0x4af725(0x1d0))/0xb;if(_0x51ddb2===_0x506349)break;else _0x456f14['push'](_0x456f14['shift']());}catch(_0x129a87){_0x456f14['push'](_0x456f14['shift']());}}}(a169_0x48d4,0xd6ff4));import{buildSchemaPayload as a169_0x28217b}from'@lovrabet/cli-framework';function a169_0x70d2(_0xe466bc,_0x53ec06){_0xe466bc=_0xe466bc-0x1c9;const _0x48d4dc=a169_0x48d4();let _0x70d230=_0x48d4dc[_0xe466bc];return _0x70d230;}import{buildAllFlags}from'../framework/build-all-flags.js';function a169_0x48d4(){const _0x52f396=['189JhqMax','4763133FDRXey','52851777bDWEEt','224DGpUKj','16645130QnXjte','34548OdXLIe','824OPbSVy','244548gdUMfV','35235kBXiEQ','174477xtinNX','2AyygUs'];a169_0x48d4=function(){return _0x52f396;};return a169_0x48d4();}import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';import{getCliVersion}from'../utils/version.js';export async function buildSchemaPayload(){const {serviceRegistry:_0x5e4bbb,findDefinition:_0x156172}=await import('../commands/registry.js');return a169_0x28217b({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':process.env.GIT_COMMIT??'','globalFlags':GLOBAL_FLAGS,'serviceRegistry':_0x5e4bbb,'buildAllFlags':buildAllFlags,'findDefinition':_0x156172});}
1
+ function a170_0x2ff7(_0x4b9ce2,_0x3abdd2){_0x4b9ce2=_0x4b9ce2-0x7c;const _0x3dbf76=a170_0x3dbf();let _0x2ff7dd=_0x3dbf76[_0x4b9ce2];return _0x2ff7dd;}(function(_0xd666a,_0x9c6575){const _0x164872=a170_0x2ff7,_0x3992a2=_0xd666a();while(!![]){try{const _0x283b0b=-parseInt(_0x164872(0x83))/0x1+-parseInt(_0x164872(0x85))/0x2+-parseInt(_0x164872(0x81))/0x3+-parseInt(_0x164872(0x7d))/0x4+-parseInt(_0x164872(0x84))/0x5+-parseInt(_0x164872(0x82))/0x6*(-parseInt(_0x164872(0x7e))/0x7)+parseInt(_0x164872(0x80))/0x8*(parseInt(_0x164872(0x7c))/0x9);if(_0x283b0b===_0x9c6575)break;else _0x3992a2['push'](_0x3992a2['shift']());}catch(_0x5bd8bc){_0x3992a2['push'](_0x3992a2['shift']());}}}(a170_0x3dbf,0xc38a4));import{buildSchemaPayload as a170_0x53f964}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';function a170_0x3dbf(){const _0x401d32=['../commands/registry.js','2477600bJtbNB','281964wyjbcc','6mVjXUP','647036rkOYbo','5743905ymrEnj','1795838gHJrjs','126VmVpAj','4039012SzdzYK','1838263LOmYQD'];a170_0x3dbf=function(){return _0x401d32;};return a170_0x3dbf();}import{getCliVersion}from'../utils/version.js';export async function buildSchemaPayload(){const _0x59a61a=a170_0x2ff7,{serviceRegistry:_0x576738,findDefinition:_0x5df690}=await import(_0x59a61a(0x7f));return a170_0x53f964({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':process.env.GIT_COMMIT??'','globalFlags':GLOBAL_FLAGS,'serviceRegistry':_0x576738,'buildAllFlags':buildAllFlags,'findDefinition':_0x5df690});}
@@ -1 +1 @@
1
- (function(_0x343223,_0x340002){var _0x5cbbd8=a170_0x4b8d,_0x1a6d59=_0x343223();while(!![]){try{var _0x282106=parseInt(_0x5cbbd8(0x95))/0x1+parseInt(_0x5cbbd8(0x98))/0x2+parseInt(_0x5cbbd8(0x9c))/0x3+-parseInt(_0x5cbbd8(0x97))/0x4*(parseInt(_0x5cbbd8(0x9e))/0x5)+-parseInt(_0x5cbbd8(0x9b))/0x6+parseInt(_0x5cbbd8(0x96))/0x7*(-parseInt(_0x5cbbd8(0x9a))/0x8)+-parseInt(_0x5cbbd8(0x99))/0x9*(-parseInt(_0x5cbbd8(0x9d))/0xa);if(_0x282106===_0x340002)break;else _0x1a6d59['push'](_0x1a6d59['shift']());}catch(_0x2e9829){_0x1a6d59['push'](_0x1a6d59['shift']());}}}(a170_0x1408,0x98f34));export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat}from'@lovrabet/cli-framework';function a170_0x4b8d(_0x1fb434,_0x4dfb4c){_0x1fb434=_0x1fb434-0x95;var _0x14089=a170_0x1408();var _0x4b8df8=_0x14089[_0x1fb434];return _0x4b8df8;}function a170_0x1408(){var _0x316e3b=['7301180LvzEKs','697045kTJthL','713599BPjKCf','77ecbcZQ','24xygUfl','151594mHjSKj','27gkbRDY','321576EBTqXV','6646782QBXRsD','99456nGOBjP'];a170_0x1408=function(){return _0x316e3b;};return a170_0x1408();}
1
+ function a171_0x3ba2(){var _0x24e98b=['127672WFjHrq','4610qFLrFO','279AzrnWt','52928hlClKP','10554whxkjZ','4182010LMpJqd','84cujVEw','1070fugtEt','314UiWcFR','321482UDEwKT','7601eyPPbS'];a171_0x3ba2=function(){return _0x24e98b;};return a171_0x3ba2();}(function(_0x32de93,_0x17eab9){var _0x986510=a171_0x2b30,_0x48ab35=_0x32de93();while(!![]){try{var _0x441254=parseInt(_0x986510(0x87))/0x1+-parseInt(_0x986510(0x7d))/0x2*(parseInt(_0x986510(0x84))/0x3)+-parseInt(_0x986510(0x83))/0x4+parseInt(_0x986510(0x85))/0x5+parseInt(_0x986510(0x86))/0x6*(-parseInt(_0x986510(0x7e))/0x7)+parseInt(_0x986510(0x80))/0x8*(parseInt(_0x986510(0x82))/0x9)+parseInt(_0x986510(0x81))/0xa*(parseInt(_0x986510(0x7f))/0xb);if(_0x441254===_0x17eab9)break;else _0x48ab35['push'](_0x48ab35['shift']());}catch(_0x4595d2){_0x48ab35['push'](_0x48ab35['shift']());}}}(a171_0x3ba2,0x6bf76));function a171_0x2b30(_0x396f85,_0x3b4908){_0x396f85=_0x396f85-0x7d;var _0x3ba25f=a171_0x3ba2();var _0x2b302f=_0x3ba25f[_0x396f85];return _0x2b302f;}export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat}from'@lovrabet/cli-framework';
@@ -1 +1 @@
1
- const a171_0x4a4c65=a171_0x47cf;(function(_0x55d675,_0x969502){const _0xc6425e=a171_0x47cf,_0x257b02=_0x55d675();while(!![]){try{const _0x33ba5d=parseInt(_0xc6425e(0xea))/0x1+parseInt(_0xc6425e(0xf2))/0x2+-parseInt(_0xc6425e(0xef))/0x3*(-parseInt(_0xc6425e(0xe7))/0x4)+parseInt(_0xc6425e(0xf1))/0x5*(parseInt(_0xc6425e(0xe9))/0x6)+parseInt(_0xc6425e(0xe8))/0x7*(-parseInt(_0xc6425e(0xec))/0x8)+parseInt(_0xc6425e(0xeb))/0x9*(-parseInt(_0xc6425e(0xee))/0xa)+-parseInt(_0xc6425e(0xf0))/0xb;if(_0x33ba5d===_0x969502)break;else _0x257b02['push'](_0x257b02['shift']());}catch(_0x5075ee){_0x257b02['push'](_0x257b02['shift']());}}}(a171_0x4895,0x2e364));function a171_0x47cf(_0x5073ed,_0x35d34e){_0x5073ed=_0x5073ed-0xe6;const _0x489545=a171_0x4895();let _0x47cfb5=_0x489545[_0x5073ed];return _0x47cfb5;}export const VERSION=a171_0x4a4c65(0xe6);function a171_0x4895(){const _0x25643b=['194788VRxJZP','18NTXyXN','8ymYuGA','2026-05-21T11:10:28.563Z','1615350obQdKU','150apMcik','2604723EYwwvs','26300TXGNej','717456OYJkLW','2.1.13','13544VyKlVc','110243wdsWJe','48opJXgY'];a171_0x4895=function(){return _0x25643b;};return a171_0x4895();}export const GIT_TAG='v2.1.13';export const GIT_COMMIT='83b122a';export const BUILD_TIME=a171_0x4a4c65(0xed);
1
+ const a172_0x5d59af=a172_0x5419;function a172_0x547f(){const _0x355030=['11528ZauyhC','2039018ANMyim','1584NIBXmA','18CqASWc','1119485MtJrsb','5719qOAphf','2026-05-21T16:18:48.454Z','12664CkucWO','11Abazea','1434YedhxV','2107815ATPUAS','45010fjSakh','0926858','9674784sXuqrR'];a172_0x547f=function(){return _0x355030;};return a172_0x547f();}function a172_0x5419(_0x43db7a,_0x267f0a){_0x43db7a=_0x43db7a-0x1bb;const _0x547fe4=a172_0x547f();let _0x5419b6=_0x547fe4[_0x43db7a];return _0x5419b6;}(function(_0x168286,_0x4aac84){const _0x4d1d45=a172_0x5419,_0x1cce61=_0x168286();while(!![]){try{const _0x1600f3=parseInt(_0x4d1d45(0x1bb))/0x1+parseInt(_0x4d1d45(0x1c6))/0x2+-parseInt(_0x4d1d45(0x1c0))/0x3*(parseInt(_0x4d1d45(0x1c5))/0x4)+parseInt(_0x4d1d45(0x1c1))/0x5*(parseInt(_0x4d1d45(0x1c8))/0x6)+parseInt(_0x4d1d45(0x1bc))/0x7*(-parseInt(_0x4d1d45(0x1be))/0x8)+-parseInt(_0x4d1d45(0x1c7))/0x9*(parseInt(_0x4d1d45(0x1c2))/0xa)+-parseInt(_0x4d1d45(0x1bf))/0xb*(-parseInt(_0x4d1d45(0x1c4))/0xc);if(_0x1600f3===_0x4aac84)break;else _0x1cce61['push'](_0x1cce61['shift']());}catch(_0x209162){_0x1cce61['push'](_0x1cce61['shift']());}}}(a172_0x547f,0xb6550));export const VERSION='2.1.14-beta.0';export const GIT_TAG='v2.1.14-beta.0';export const GIT_COMMIT=a172_0x5d59af(0x1c3);export const BUILD_TIME=a172_0x5d59af(0x1bd);
package/lib/help.js CHANGED
@@ -1 +1 @@
1
- function a172_0x7345(_0xef2760,_0x36be37){_0xef2760=_0xef2760-0xc8;var _0x4ecb93=a172_0x4ecb();var _0x734529=_0x4ecb93[_0xef2760];return _0x734529;}function a172_0x4ecb(){var _0x3673c8=['log','239420rjFSsI','\x20--help','2434504KbWzcV','1127216jpfqpX','620UwBgmt','4788637CiizUQ','71005EROUxJ','bold','\x20to\x20view\x20available\x20commands.','\x20\x20Use\x20','27iydUFq','4479CpiAKo','6CKRhSt','green','30VSHxWy','1065805BYqrxB'];a172_0x4ecb=function(){return _0x3673c8;};return a172_0x4ecb();}(function(_0x58f2f6,_0x1d4fc9){var _0x9135c1=a172_0x7345,_0x5ca9f8=_0x58f2f6();while(!![]){try{var _0x2c2a67=-parseInt(_0x9135c1(0xcf))/0x1+-parseInt(_0x9135c1(0xc9))/0x2*(parseInt(_0x9135c1(0xd7))/0x3)+parseInt(_0x9135c1(0xcc))/0x4+-parseInt(_0x9135c1(0xca))/0x5+-parseInt(_0x9135c1(0xd8))/0x6*(-parseInt(_0x9135c1(0xd1))/0x7)+-parseInt(_0x9135c1(0xce))/0x8*(-parseInt(_0x9135c1(0xd6))/0x9)+parseInt(_0x9135c1(0xd0))/0xa*(parseInt(_0x9135c1(0xd2))/0xb);if(_0x2c2a67===_0x1d4fc9)break;else _0x5ca9f8['push'](_0x5ca9f8['shift']());}catch(_0x24b668){_0x5ca9f8['push'](_0x5ca9f8['shift']());}}}(a172_0x4ecb,0xa9833));import a172_0x513c14 from'chalk';import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';export function showHelp(){var _0x2f632e=a172_0x7345;console[_0x2f632e(0xcb)](),console[_0x2f632e(0xcb)](a172_0x513c14['green'][_0x2f632e(0xd3)]('\x20\x20'+CLI_DISPLAY_NAME)),console[_0x2f632e(0xcb)](),console['log'](_0x2f632e(0xd5)+a172_0x513c14[_0x2f632e(0xc8)][_0x2f632e(0xd3)](CLI_BIN_NAME+_0x2f632e(0xcd))+_0x2f632e(0xd4)),console['log']();}
1
+ function a173_0x43e7(){var _0x50ff2e=['\x20\x20Use\x20','\x20to\x20view\x20available\x20commands.','991712OzHXTL','\x20--help','505652GgafbC','2759280GZfoUR','7461414mZHEsw','green','5LtvkoF','2852568JptMWl','636696vBtFfX','log','604sdFoan','bold','1152fqRdYv'];a173_0x43e7=function(){return _0x50ff2e;};return a173_0x43e7();}function a173_0x25b4(_0x360e24,_0xe15d20){_0x360e24=_0x360e24-0xf1;var _0x43e783=a173_0x43e7();var _0x25b4a1=_0x43e783[_0x360e24];return _0x25b4a1;}(function(_0x4af467,_0x3547d0){var _0x4c23ff=a173_0x25b4,_0x4bd632=_0x4af467();while(!![]){try{var _0x4b4ea7=parseInt(_0x4c23ff(0xf1))/0x1*(-parseInt(_0x4c23ff(0xfe))/0x2)+parseInt(_0x4c23ff(0xfc))/0x3+-parseInt(_0x4c23ff(0xf4))/0x4+parseInt(_0x4c23ff(0xfa))/0x5*(-parseInt(_0x4c23ff(0xf7))/0x6)+-parseInt(_0x4c23ff(0xf6))/0x7+parseInt(_0x4c23ff(0xfb))/0x8+parseInt(_0x4c23ff(0xf8))/0x9;if(_0x4b4ea7===_0x3547d0)break;else _0x4bd632['push'](_0x4bd632['shift']());}catch(_0x14862e){_0x4bd632['push'](_0x4bd632['shift']());}}}(a173_0x43e7,0x41e4d));import a173_0x1477ca from'chalk';import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';export function showHelp(){var _0x211c70=a173_0x25b4;console[_0x211c70(0xfd)](),console[_0x211c70(0xfd)](a173_0x1477ca[_0x211c70(0xf9)][_0x211c70(0xff)]('\x20\x20'+CLI_DISPLAY_NAME)),console['log'](),console['log'](_0x211c70(0xf2)+a173_0x1477ca[_0x211c70(0xf9)][_0x211c70(0xff)](CLI_BIN_NAME+_0x211c70(0xf5))+_0x211c70(0xf3)),console[_0x211c70(0xfd)]();}
@@ -1 +1 @@
1
- (function(_0x17bebf,_0xf3f064){const _0x27e045=a173_0x42e0,_0x4b8089=_0x17bebf();while(!![]){try{const _0x170e59=-parseInt(_0x27e045(0xda))/0x1*(parseInt(_0x27e045(0xcb))/0x2)+parseInt(_0x27e045(0xd8))/0x3*(-parseInt(_0x27e045(0xbd))/0x4)+-parseInt(_0x27e045(0xd3))/0x5+-parseInt(_0x27e045(0xdc))/0x6+-parseInt(_0x27e045(0xc1))/0x7*(-parseInt(_0x27e045(0xc7))/0x8)+-parseInt(_0x27e045(0xbf))/0x9*(parseInt(_0x27e045(0xc0))/0xa)+-parseInt(_0x27e045(0xd7))/0xb*(-parseInt(_0x27e045(0xbb))/0xc);if(_0x170e59===_0xf3f064)break;else _0x4b8089['push'](_0x4b8089['shift']());}catch(_0x3da2cb){_0x4b8089['push'](_0x4b8089['shift']());}}}(a173_0x3713,0x1e62f));import{logger}from'../utils/logger.js';import{CLI_BIN_NAME}from'../constant/cli.js';import{NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE}from'../skills/npx-skills-add.js';export function camelCaseFlagsToKebab(_0x321646){const _0x443fd1=a173_0x42e0,_0x393795=[];for(const [_0x30c96b,_0x285a56]of Object[_0x443fd1(0xd2)](_0x321646)){if(_0x285a56===!![]){const _0x31edb8=_0x30c96b['replace'](/([A-Z])/g,_0x443fd1(0xc6))[_0x443fd1(0xcc)]();_0x393795[_0x443fd1(0xba)](_0x31edb8);}}return _0x393795;}function a173_0x3713(){const _0x3837b6=['includes','length','\x20skill\x20install\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Interactive\x20skill\x20installation','setLogPath','-$1','2056scxclL','startsWith','log','Error:\x20Unsupported\x20command:\x20','162918DwASfy','toLowerCase','has','help','(empty)','\x20skill\x20--help\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Show\x20help\x0a','\x20skill\x20--help\x0a\x20\x20','entries','522785NFubXg','slice','argv','exit','12309xEDtHQ','1731QuNGpA','--help','1KuRZqu','\x20skill\x20install\x0a\x0aEquivalent\x20command:\x20','1446798ADHPMi','不支持的命令:\x20','dangerously-bff-save','add','push','9228FKAEDa','from','1156xEJVOd','Equivalent\x20command:\x20','1795113wOxLDA','10Afitfj','1561fEWKDR'];a173_0x3713=function(){return _0x3837b6;};return a173_0x3713();}export function parseDynamicFlags(){const _0x9f4803=a173_0x42e0,_0x33e785=[];for(let _0x32d0da=0x3;_0x32d0da<process[_0x9f4803(0xd5)][_0x9f4803(0xc3)];_0x32d0da++){const _0x4d02a7=process['argv'][_0x32d0da];if(_0x4d02a7&&_0x4d02a7[_0x9f4803(0xc8)]('--')){const _0x44a6a9=_0x4d02a7[_0x9f4803(0xd4)](0x2);_0x44a6a9&&!_0x44a6a9[_0x9f4803(0xc2)]('=')&&_0x33e785[_0x9f4803(0xba)](_0x44a6a9);}}return _0x33e785;}function a173_0x42e0(_0x392a9f,_0xf981f8){_0x392a9f=_0x392a9f-0xb9;const _0x3713b3=a173_0x3713();let _0x42e060=_0x3713b3[_0x392a9f];return _0x42e060;}export function getAllProvidedFlags(_0x59f825){const _0x1904af=a173_0x42e0,_0x4e9c10=camelCaseFlagsToKebab(_0x59f825),_0x1ec2f6=parseDynamicFlags(),_0x2ba295=new Set([..._0x4e9c10,..._0x1ec2f6]);return Array[_0x1904af(0xbc)](_0x2ba295);}export function normalizeLegacyBffSaveFlags(_0x255d78){const _0x4b78df=a173_0x42e0,_0x41d59b=new Set(_0x255d78);return _0x41d59b[_0x4b78df(0xcd)](_0x4b78df(0xde))&&_0x41d59b[_0x4b78df(0xb9)]('enable-bff-save'),Array[_0x4b78df(0xbc)](_0x41d59b);}const SKILLS_INSTALL_COMMAND_LINE=NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE;export async function skillsCommand(_0x5a2476,_0x1a0a83,_0x413927){const _0x828e06=a173_0x42e0;logger[_0x828e06(0xc5)](process['cwd']());if(_0x413927?.[_0x828e06(0xce)]||_0x5a2476===_0x828e06(0xd9)){showHelp();return;}console['error'](_0x828e06(0xca)+(_0x5a2476||_0x828e06(0xcf))),console['log']('\x0aAvailable\x20commands:'),console['log']('\x20\x20'+CLI_BIN_NAME+_0x828e06(0xc4)),console[_0x828e06(0xc9)]('\x20\x20'+CLI_BIN_NAME+_0x828e06(0xd0)),console[_0x828e06(0xc9)](''),console[_0x828e06(0xc9)](_0x828e06(0xbe)+SKILLS_INSTALL_COMMAND_LINE),logger['error']('skill',_0x828e06(0xdd)+_0x5a2476),process[_0x828e06(0xd6)](0x1);}function showHelp(){const _0x90d5be=a173_0x42e0;console[_0x90d5be(0xc9)]('\x0aLovrabet\x20Skill\x20-\x20Developer\x20Skill\x20Installation\x20Tool\x0a\x0aUsage:\x0a\x20\x20'+CLI_BIN_NAME+_0x90d5be(0xd1)+CLI_BIN_NAME+_0x90d5be(0xdb)+SKILLS_INSTALL_COMMAND_LINE+'\x0a\x0aNote:\x20npx\x20skills\x20selects\x20the\x20agent\x20and\x20writes\x20files;\x20guides\x20live\x20under\x20skills/lovrabet/guides/.\x0a');}
1
+ (function(_0x1f4460,_0x295e10){const _0x598bac=a174_0x7374,_0x2312e8=_0x1f4460();while(!![]){try{const _0x532020=-parseInt(_0x598bac(0xe0))/0x1+-parseInt(_0x598bac(0xfa))/0x2*(parseInt(_0x598bac(0xe7))/0x3)+parseInt(_0x598bac(0xf3))/0x4+parseInt(_0x598bac(0xef))/0x5+-parseInt(_0x598bac(0x102))/0x6*(-parseInt(_0x598bac(0xf1))/0x7)+parseInt(_0x598bac(0x103))/0x8*(-parseInt(_0x598bac(0xf7))/0x9)+parseInt(_0x598bac(0xf6))/0xa;if(_0x532020===_0x295e10)break;else _0x2312e8['push'](_0x2312e8['shift']());}catch(_0x5788fa){_0x2312e8['push'](_0x2312e8['shift']());}}}(a174_0x3499,0x49320));import{logger}from'../utils/logger.js';import{CLI_BIN_NAME}from'../constant/cli.js';function a174_0x3499(){const _0x568ec0=['log','includes','--help','2292870bjZRUE','skill','1349299LGGNiC','replace','1281056aXlhtY','Error:\x20Unsupported\x20command:\x20','-$1','2255070gQpxWH','431388SdFNHy','\x0aAvailable\x20commands:','\x0a\x0aNote:\x20npx\x20skills\x20selects\x20the\x20agent\x20and\x20writes\x20files;\x20guides\x20live\x20under\x20skills/lovrabet/guides/.\x0a','46LcTJYs','entries','add','exit','(empty)','不支持的命令:\x20','push','Equivalent\x20command:\x20','6BpWLvR','16wlPBRw','353712mbechi','toLowerCase','startsWith','argv','\x20skill\x20install\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Interactive\x20skill\x20installation','from','slice','58398TlJxHk','has','cwd','dangerously-bff-save','\x20skill\x20install\x0a\x0aEquivalent\x20command:\x20'];a174_0x3499=function(){return _0x568ec0;};return a174_0x3499();}import{NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE}from'../skills/npx-skills-add.js';export function camelCaseFlagsToKebab(_0x1b35d3){const _0x554260=a174_0x7374,_0x24dc06=[];for(const [_0x415330,_0x1d636e]of Object[_0x554260(0xfb)](_0x1b35d3)){if(_0x1d636e===!![]){const _0x475f45=_0x415330[_0x554260(0xf2)](/([A-Z])/g,_0x554260(0xf5))[_0x554260(0xe1)]();_0x24dc06[_0x554260(0x100)](_0x475f45);}}return _0x24dc06;}export function parseDynamicFlags(){const _0x4bf13d=a174_0x7374,_0x5323f0=[];for(let _0x4b517b=0x3;_0x4b517b<process[_0x4bf13d(0xe3)]['length'];_0x4b517b++){const _0x111c30=process['argv'][_0x4b517b];if(_0x111c30&&_0x111c30[_0x4bf13d(0xe2)]('--')){const _0x1d7b02=_0x111c30[_0x4bf13d(0xe6)](0x2);_0x1d7b02&&!_0x1d7b02[_0x4bf13d(0xed)]('=')&&_0x5323f0[_0x4bf13d(0x100)](_0x1d7b02);}}return _0x5323f0;}export function getAllProvidedFlags(_0x292a91){const _0x54c4f5=camelCaseFlagsToKebab(_0x292a91),_0x51489a=parseDynamicFlags(),_0x487700=new Set([..._0x54c4f5,..._0x51489a]);return Array['from'](_0x487700);}export function normalizeLegacyBffSaveFlags(_0x71562a){const _0x421384=a174_0x7374,_0x4a407e=new Set(_0x71562a);return _0x4a407e[_0x421384(0xe8)](_0x421384(0xea))&&_0x4a407e[_0x421384(0xfc)]('enable-bff-save'),Array[_0x421384(0xe5)](_0x4a407e);}const SKILLS_INSTALL_COMMAND_LINE=NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE;export async function skillsCommand(_0x17eb34,_0x51810c,_0x4ba9a9){const _0x30f743=a174_0x7374;logger['setLogPath'](process[_0x30f743(0xe9)]());if(_0x4ba9a9?.['help']||_0x17eb34===_0x30f743(0xee)){showHelp();return;}console['error'](_0x30f743(0xf4)+(_0x17eb34||_0x30f743(0xfe))),console['log'](_0x30f743(0xf8)),console[_0x30f743(0xec)]('\x20\x20'+CLI_BIN_NAME+_0x30f743(0xe4)),console['log']('\x20\x20'+CLI_BIN_NAME+'\x20skill\x20--help\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Show\x20help\x0a'),console[_0x30f743(0xec)](''),console[_0x30f743(0xec)](_0x30f743(0x101)+SKILLS_INSTALL_COMMAND_LINE),logger['error'](_0x30f743(0xf0),_0x30f743(0xff)+_0x17eb34),process[_0x30f743(0xfd)](0x1);}function a174_0x7374(_0xcf037e,_0x274d7a){_0xcf037e=_0xcf037e-0xe0;const _0x349939=a174_0x3499();let _0x73741=_0x349939[_0xcf037e];return _0x73741;}function showHelp(){const _0x539f74=a174_0x7374;console[_0x539f74(0xec)]('\x0aLovrabet\x20Skill\x20-\x20Developer\x20Skill\x20Installation\x20Tool\x0a\x0aUsage:\x0a\x20\x20'+CLI_BIN_NAME+'\x20skill\x20--help\x0a\x20\x20'+CLI_BIN_NAME+_0x539f74(0xeb)+SKILLS_INSTALL_COMMAND_LINE+_0x539f74(0xf9));}
@@ -1 +1 @@
1
- const a174_0x45a10d=a174_0x58b0;(function(_0x7bc687,_0x160e75){const _0x499bdc=a174_0x58b0,_0x5c42f2=_0x7bc687();while(!![]){try{const _0x17f38a=-parseInt(_0x499bdc(0x154))/0x1*(-parseInt(_0x499bdc(0x14d))/0x2)+parseInt(_0x499bdc(0x145))/0x3*(-parseInt(_0x499bdc(0x158))/0x4)+-parseInt(_0x499bdc(0x13a))/0x5*(parseInt(_0x499bdc(0x147))/0x6)+-parseInt(_0x499bdc(0x152))/0x7+parseInt(_0x499bdc(0x157))/0x8+-parseInt(_0x499bdc(0x141))/0x9*(-parseInt(_0x499bdc(0x148))/0xa)+-parseInt(_0x499bdc(0x14e))/0xb*(-parseInt(_0x499bdc(0x142))/0xc);if(_0x17f38a===_0x160e75)break;else _0x5c42f2['push'](_0x5c42f2['shift']());}catch(_0x265d56){_0x5c42f2['push'](_0x5c42f2['shift']());}}}(a174_0xe077,0x4549e));function a174_0x58b0(_0x2e18ac,_0x1f51c6){_0x2e18ac=_0x2e18ac-0x139;const _0xe077e8=a174_0xe077();let _0x58b0a3=_0xe077e8[_0x2e18ac];return _0x58b0a3;}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=a174_0x45a10d(0x14c);export const NPX_SKILLS_SUBCOMMAND_ADD=a174_0x45a10d(0x143);export const NPX_SKILLS_FLAG_SKILL=a174_0x45a10d(0x151);export const RABETBASE_SKILL_SOURCE=a174_0x45a10d(0x156);export const LEGACY_RABETBASE_SKILL_SOURCE=a174_0x45a10d(0x153);export const DEFAULT_RABETBASE_SKILL_NAME='Lovrabet';function a174_0xe077(){const _0x54290c=['pipe','skills','192870vjPTKE','119163WelIjK','log','trim','--skill','2517074nNjtEC','lovrabet/lovrabet-skill','5DocyWr','stderr','lovrabet/rabetbase','788672XJgnMt','4JAUeJB','remove','toString','10XVKSMV','inherit','stdio','exit\x20','stdout','npx','skill','549Zzwvcw','192phvlSD','add','push','838998YRprcH','unknown','538212paTJUW','57110hhqkRK','join','status'];a174_0xe077=function(){return _0x54290c;};return a174_0xe077();}export function buildNpxSkillsAddArgv(_0x5a63c1){const _0x4ae04b=a174_0x45a10d,_0x268112=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE];return _0x5a63c1&&_0x268112[_0x4ae04b(0x144)](NPX_SKILLS_FLAG_SKILL,_0x5a63c1),_0x268112;}export const NPX_SKILLS_ADD_COMMAND_LINE=[a174_0x45a10d(0x13f),...buildNpxSkillsAddArgv()][a174_0x45a10d(0x149)]('\x20');export const NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE=[a174_0x45a10d(0x13f),NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][a174_0x45a10d(0x149)]('\x20');export function shouldSkipNpxSkillsAdd(){return process.env.RABETBASE_SKIP_NPX_SKILLS==='1';}export function runNpxSkillsAdd(_0x5a38eb,_0x506118){const _0x74c561=a174_0x45a10d;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x535b44=_0x506118?.[_0x74c561(0x13c)]??_0x74c561(0x13b),_0xdf492a=resolveNpmBin('npx'),_0x199054=buildNpxSkillsAddArgv(_0x506118?.['skill']),_0x520233=[_0x74c561(0x13f),..._0x199054][_0x74c561(0x149)]('\x20');console[_0x74c561(0x14f)]('*\x20'+_0x520233);const _0x175ce8=spawnSync(_0xdf492a,_0x199054,{'cwd':_0x5a38eb,'stdio':_0x535b44,'env':process.env,'shell':![]}),_0x4338de=_0x175ce8[_0x74c561(0x14a)];if(_0x4338de===0x0)return{'ok':!![],'status':0x0};let _0x55d8e1='exit\x20'+(_0x4338de??_0x74c561(0x146));if(_0x535b44===_0x74c561(0x14b)){const _0x5595e6=_0x175ce8[_0x74c561(0x155)]?_0x175ce8[_0x74c561(0x155)][_0x74c561(0x139)]()[_0x74c561(0x150)]():'',_0x1db467=_0x175ce8[_0x74c561(0x13e)]?_0x175ce8[_0x74c561(0x13e)][_0x74c561(0x139)]()['trim']():'';if(_0x5595e6)_0x55d8e1=_0x5595e6;else{if(_0x1db467)_0x55d8e1=_0x1db467;}}return{'ok':![],'status':_0x4338de??null,'error':_0x55d8e1};}export function runNpxSkillsRemove(_0x295b48,_0x48d374,_0x4c4333=LEGACY_RABETBASE_SKILL_SOURCE){const _0x320e93=a174_0x45a10d;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x32a58a=_0x48d374?.['stdio']??_0x320e93(0x13b),_0x2d5376=resolveNpmBin(_0x320e93(0x13f)),_0x3f64d4=[NPX_FLAG_YES,NPX_SKILLS_CLI,_0x320e93(0x159),_0x4c4333,NPX_SKILLS_FLAG_SKILL,_0x48d374?.[_0x320e93(0x140)]??DEFAULT_RABETBASE_SKILL_NAME,..._0x48d374?.['yes']?['-y']:[]],_0x3d5f6d=[_0x2d5376,..._0x3f64d4][_0x320e93(0x149)]('\x20');console[_0x320e93(0x14f)]('*\x20'+_0x3d5f6d);const _0x7d217e=spawnSync(_0x2d5376,_0x3f64d4,{'cwd':_0x295b48,'stdio':_0x32a58a,'env':process.env,'shell':![]}),_0x289129=_0x7d217e[_0x320e93(0x14a)];if(_0x289129===0x0)return{'ok':!![],'status':0x0};let _0x4e05c5=_0x320e93(0x13d)+(_0x289129??'unknown');if(_0x32a58a===_0x320e93(0x14b)){const _0xc02e6=_0x7d217e[_0x320e93(0x155)]?_0x7d217e[_0x320e93(0x155)][_0x320e93(0x139)]()[_0x320e93(0x150)]():'',_0x4993e1=_0x7d217e['stdout']?_0x7d217e['stdout'][_0x320e93(0x139)]()[_0x320e93(0x150)]():'';if(_0xc02e6)_0x4e05c5=_0xc02e6;else{if(_0x4993e1)_0x4e05c5=_0x4993e1;}}return{'ok':![],'status':_0x289129??null,'error':_0x4e05c5};}export function runNpxSkillsAddGlobal(_0x19ab01,_0x36a7d4,_0x41af98){const _0x4145b3=a174_0x45a10d;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0xd330eb=_0x41af98?.['stdio']??'inherit',_0x42c6ca=resolveNpmBin(_0x4145b3(0x13f)),_0x384a34=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x36a7d4,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES],_0x19d9ff=[_0x4145b3(0x13f),NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x36a7d4,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES]['join']('\x20');console['log']('*\x20'+_0x19d9ff);const _0x12abf9=spawnSync(_0x42c6ca,_0x384a34,{'cwd':_0x19ab01,'stdio':_0xd330eb,'env':process.env,'shell':![]}),_0x36e2c9=_0x12abf9['status'];if(_0x36e2c9===0x0)return{'ok':!![],'status':0x0};let _0x5517f4=_0x4145b3(0x13d)+(_0x36e2c9??_0x4145b3(0x146));if(_0xd330eb===_0x4145b3(0x14b)){const _0xc0300b=_0x12abf9['stderr']?_0x12abf9[_0x4145b3(0x155)][_0x4145b3(0x139)]()[_0x4145b3(0x150)]():'',_0x48cd15=_0x12abf9['stdout']?_0x12abf9[_0x4145b3(0x13e)]['toString']()[_0x4145b3(0x150)]():'';if(_0xc0300b)_0x5517f4=_0xc0300b;else{if(_0x48cd15)_0x5517f4=_0x48cd15;}}return{'ok':![],'status':_0x36e2c9??null,'error':_0x5517f4};}
1
+ function a175_0x3abf(_0x15547b,_0x190d0d){_0x15547b=_0x15547b-0x1d1;const _0x5a7050=a175_0x5a70();let _0x3abf16=_0x5a7050[_0x15547b];return _0x3abf16;}const a175_0x9e5cb9=a175_0x3abf;(function(_0x1790a5,_0xb49d74){const _0x50b037=a175_0x3abf,_0x516fd4=_0x1790a5();while(!![]){try{const _0x49a557=-parseInt(_0x50b037(0x1ee))/0x1*(parseInt(_0x50b037(0x1e4))/0x2)+-parseInt(_0x50b037(0x1ed))/0x3+parseInt(_0x50b037(0x1d2))/0x4*(-parseInt(_0x50b037(0x1e1))/0x5)+parseInt(_0x50b037(0x1d8))/0x6+parseInt(_0x50b037(0x1d7))/0x7*(-parseInt(_0x50b037(0x1ef))/0x8)+parseInt(_0x50b037(0x1d3))/0x9*(parseInt(_0x50b037(0x1d9))/0xa)+-parseInt(_0x50b037(0x1ec))/0xb*(-parseInt(_0x50b037(0x1e8))/0xc);if(_0x49a557===_0xb49d74)break;else _0x516fd4['push'](_0x516fd4['shift']());}catch(_0x96c8e2){_0x516fd4['push'](_0x516fd4['shift']());}}}(a175_0x5a70,0x69eba));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';function a175_0x5a70(){const _0x3d12ea=['412130sqVZZt','remove','toString','add','stdout','Lovrabet','lovrabet/lovrabet-skill','push','10dFEMGm','npx','exit\x20','846hYvcpd','log','skills','yes','53544JxWtpo','trim','stderr','join','4367vsahGl','1020537Lramgb','1961cvoqOt','372392kXxzNH','stdio','status','259632kyLtPs','81kpzZPp','skill','pipe','inherit','63JtPUgd','59748UvsDJw'];a175_0x5a70=function(){return _0x3d12ea;};return a175_0x5a70();}export const NPX_SKILLS_CLI=a175_0x9e5cb9(0x1e6);export const NPX_SKILLS_SUBCOMMAND_ADD=a175_0x9e5cb9(0x1dc);export const NPX_SKILLS_FLAG_SKILL='--skill';export const RABETBASE_SKILL_SOURCE='lovrabet/rabetbase';export const LEGACY_RABETBASE_SKILL_SOURCE=a175_0x9e5cb9(0x1df);export const DEFAULT_RABETBASE_SKILL_NAME=a175_0x9e5cb9(0x1de);export function buildNpxSkillsAddArgv(_0x3175c4){const _0xd9549=a175_0x9e5cb9,_0x1195e0=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE];return _0x3175c4&&_0x1195e0[_0xd9549(0x1e0)](NPX_SKILLS_FLAG_SKILL,_0x3175c4),_0x1195e0;}export const NPX_SKILLS_ADD_COMMAND_LINE=[a175_0x9e5cb9(0x1e2),...buildNpxSkillsAddArgv()][a175_0x9e5cb9(0x1eb)]('\x20');export const NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE=[a175_0x9e5cb9(0x1e2),NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES]['join']('\x20');export function shouldSkipNpxSkillsAdd(){return process.env.RABETBASE_SKIP_NPX_SKILLS==='1';}export function runNpxSkillsAdd(_0x21d693,_0x504d80){const _0x193b42=a175_0x9e5cb9;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x5f3f6c=_0x504d80?.[_0x193b42(0x1f0)]??'inherit',_0x4f6836=resolveNpmBin(_0x193b42(0x1e2)),_0x507812=buildNpxSkillsAddArgv(_0x504d80?.[_0x193b42(0x1d4)]),_0x133a97=[_0x193b42(0x1e2),..._0x507812]['join']('\x20');console[_0x193b42(0x1e5)]('*\x20'+_0x133a97);const _0x1a1665=spawnSync(_0x4f6836,_0x507812,{'cwd':_0x21d693,'stdio':_0x5f3f6c,'env':process.env,'shell':![]}),_0x284153=_0x1a1665[_0x193b42(0x1d1)];if(_0x284153===0x0)return{'ok':!![],'status':0x0};let _0x263020=_0x193b42(0x1e3)+(_0x284153??'unknown');if(_0x5f3f6c==='pipe'){const _0x35a247=_0x1a1665[_0x193b42(0x1ea)]?_0x1a1665['stderr']['toString']()[_0x193b42(0x1e9)]():'',_0x3561fc=_0x1a1665[_0x193b42(0x1dd)]?_0x1a1665[_0x193b42(0x1dd)][_0x193b42(0x1db)]()[_0x193b42(0x1e9)]():'';if(_0x35a247)_0x263020=_0x35a247;else{if(_0x3561fc)_0x263020=_0x3561fc;}}return{'ok':![],'status':_0x284153??null,'error':_0x263020};}export function runNpxSkillsRemove(_0x2f9593,_0x357aca,_0x106737=LEGACY_RABETBASE_SKILL_SOURCE){const _0xf4a06=a175_0x9e5cb9;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x52d9e=_0x357aca?.[_0xf4a06(0x1f0)]??_0xf4a06(0x1d6),_0x2a5bd3=resolveNpmBin(_0xf4a06(0x1e2)),_0x486646=[NPX_FLAG_YES,NPX_SKILLS_CLI,_0xf4a06(0x1da),_0x106737,NPX_SKILLS_FLAG_SKILL,_0x357aca?.[_0xf4a06(0x1d4)]??DEFAULT_RABETBASE_SKILL_NAME,..._0x357aca?.[_0xf4a06(0x1e7)]?['-y']:[]],_0x20e07d=[_0x2a5bd3,..._0x486646][_0xf4a06(0x1eb)]('\x20');console[_0xf4a06(0x1e5)]('*\x20'+_0x20e07d);const _0xbb6891=spawnSync(_0x2a5bd3,_0x486646,{'cwd':_0x2f9593,'stdio':_0x52d9e,'env':process.env,'shell':![]}),_0x3aa3c3=_0xbb6891[_0xf4a06(0x1d1)];if(_0x3aa3c3===0x0)return{'ok':!![],'status':0x0};let _0x101ceb=_0xf4a06(0x1e3)+(_0x3aa3c3??'unknown');if(_0x52d9e===_0xf4a06(0x1d5)){const _0x3fa11a=_0xbb6891[_0xf4a06(0x1ea)]?_0xbb6891[_0xf4a06(0x1ea)]['toString']()[_0xf4a06(0x1e9)]():'',_0x242a0f=_0xbb6891['stdout']?_0xbb6891[_0xf4a06(0x1dd)][_0xf4a06(0x1db)]()[_0xf4a06(0x1e9)]():'';if(_0x3fa11a)_0x101ceb=_0x3fa11a;else{if(_0x242a0f)_0x101ceb=_0x242a0f;}}return{'ok':![],'status':_0x3aa3c3??null,'error':_0x101ceb};}export function runNpxSkillsAddGlobal(_0x9f5da7,_0x18d562,_0x3c4216){const _0x3ad364=a175_0x9e5cb9;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x27fe0d=_0x3c4216?.['stdio']??_0x3ad364(0x1d6),_0x58cb5a=resolveNpmBin(_0x3ad364(0x1e2)),_0x8cca67=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x18d562,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES],_0x234095=[_0x3ad364(0x1e2),NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x18d562,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][_0x3ad364(0x1eb)]('\x20');console[_0x3ad364(0x1e5)]('*\x20'+_0x234095);const _0x22132e=spawnSync(_0x58cb5a,_0x8cca67,{'cwd':_0x9f5da7,'stdio':_0x27fe0d,'env':process.env,'shell':![]}),_0x2bbe32=_0x22132e[_0x3ad364(0x1d1)];if(_0x2bbe32===0x0)return{'ok':!![],'status':0x0};let _0x3f4a76=_0x3ad364(0x1e3)+(_0x2bbe32??'unknown');if(_0x27fe0d===_0x3ad364(0x1d5)){const _0x4fd129=_0x22132e[_0x3ad364(0x1ea)]?_0x22132e['stderr'][_0x3ad364(0x1db)]()[_0x3ad364(0x1e9)]():'',_0x4c9285=_0x22132e[_0x3ad364(0x1dd)]?_0x22132e[_0x3ad364(0x1dd)][_0x3ad364(0x1db)]()['trim']():'';if(_0x4fd129)_0x3f4a76=_0x4fd129;else{if(_0x4c9285)_0x3f4a76=_0x4c9285;}}return{'ok':![],'status':_0x2bbe32??null,'error':_0x3f4a76};}
@@ -1 +1 @@
1
- function a175_0x4d12(_0x1b7b1f,_0x266490){_0x1b7b1f=_0x1b7b1f-0x1cd;const _0x4ceb67=a175_0x4ceb();let _0x4d1235=_0x4ceb67[_0x1b7b1f];return _0x4d1235;}(function(_0xb343c2,_0x28f4b9){const _0x1c9301=a175_0x4d12,_0x30a4d6=_0xb343c2();while(!![]){try{const _0x15d520=-parseInt(_0x1c9301(0x1dd))/0x1+parseInt(_0x1c9301(0x1d6))/0x2+parseInt(_0x1c9301(0x1d5))/0x3*(parseInt(_0x1c9301(0x1d1))/0x4)+parseInt(_0x1c9301(0x1d7))/0x5+parseInt(_0x1c9301(0x1dc))/0x6*(-parseInt(_0x1c9301(0x1d2))/0x7)+-parseInt(_0x1c9301(0x1cd))/0x8+parseInt(_0x1c9301(0x1d0))/0x9*(parseInt(_0x1c9301(0x1e0))/0xa);if(_0x15d520===_0x28f4b9)break;else _0x30a4d6['push'](_0x30a4d6['shift']());}catch(_0x3ab831){_0x30a4d6['push'](_0x30a4d6['shift']());}}}(a175_0x4ceb,0xf22ba));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 a175_0x4ceb(){const _0x1a779c=['12wnFFef','1583297NHnbND','durationMs','[REDACTED]','10clnSRt','command','9000024ehDIhg','flags','stringify','14967819qAvrqz','6929180toVxOR','1437961HSSOEi','error','service','3bUSPJN','985296KAPOPB','1115210RXtosW','message','rabetbase.command','test','some'];a175_0x4ceb=function(){return _0x1a779c;};return a175_0x4ceb();}function isSensitiveKey(_0x3398fa){const _0x4841b5=a175_0x4d12;return SENSITIVE_PATTERNS[_0x4841b5(0x1db)](_0x4b9017=>_0x4b9017[_0x4841b5(0x1da)](_0x3398fa));}function sanitizeFlags(_0x27e87b){const _0x5747c4=a175_0x4d12,_0xdcd13={};for(const [_0xc34171,_0x2c2529]of Object['entries'](_0x27e87b)){isSensitiveKey(_0xc34171)?_0xdcd13[_0xc34171]=_0x2c2529!=null&&_0x2c2529!==''?_0x5747c4(0x1df):_0x2c2529:_0xdcd13[_0xc34171]=_0x2c2529;}return _0xdcd13;}export async function reportCommandTrace(_0x39a6cd){const _0x245c6f=a175_0x4d12;try{const _0x58c0bb=sanitizeFlags(_0x39a6cd[_0x245c6f(0x1ce)]);await sendCliTraceLog({'spanName':_0x245c6f(0x1d9),'logData':{'command.cli_version':getCliVersion(),'command.service':_0x39a6cd[_0x245c6f(0x1d4)],'command.name':_0x39a6cd[_0x245c6f(0x1e1)],'command.flags':JSON[_0x245c6f(0x1cf)](_0x58c0bb),..._0x39a6cd[_0x245c6f(0x1de)]!=null?{'command.duration_ms':_0x39a6cd[_0x245c6f(0x1de)]}:{},..._0x39a6cd['error']?{'command.error':_0x39a6cd[_0x245c6f(0x1d3)]instanceof Error?_0x39a6cd[_0x245c6f(0x1d3)][_0x245c6f(0x1d8)]:String(_0x39a6cd[_0x245c6f(0x1d3)])}:{}}});}catch{}}
1
+ function a176_0x16d2(){const _0x4e62dc=['530JholKI','service','549992CkIdYq','74VFqkde','10yvORaO','312JWezPx','2930239qeHcWj','entries','9524543CVMgnD','3972606lxGaTo','message','6hVGwbd','rabetbase.command','1580652HcPHKA','5433RwexOz','[REDACTED]','error','144qnOpEN','durationMs','command','20156PXHUer','test','some'];a176_0x16d2=function(){return _0x4e62dc;};return a176_0x16d2();}(function(_0x345c23,_0x380b8f){const _0x421ee4=a176_0x342f,_0x979c8f=_0x345c23();while(!![]){try{const _0x279fe4=-parseInt(_0x421ee4(0xf2))/0x1+parseInt(_0x421ee4(0xe8))/0x2*(-parseInt(_0x421ee4(0xdc))/0x3)+parseInt(_0x421ee4(0xe2))/0x4*(-parseInt(_0x421ee4(0xe5))/0x5)+-parseInt(_0x421ee4(0xf0))/0x6*(parseInt(_0x421ee4(0xed))/0x7)+-parseInt(_0x421ee4(0xe7))/0x8*(parseInt(_0x421ee4(0xdf))/0x9)+parseInt(_0x421ee4(0xe9))/0xa*(-parseInt(_0x421ee4(0xee))/0xb)+-parseInt(_0x421ee4(0xea))/0xc*(-parseInt(_0x421ee4(0xeb))/0xd);if(_0x279fe4===_0x380b8f)break;else _0x979c8f['push'](_0x979c8f['shift']());}catch(_0x16e749){_0x979c8f['push'](_0x979c8f['shift']());}}}(a176_0x16d2,0xd134a));function a176_0x342f(_0x12f433,_0x47cee6){_0x12f433=_0x12f433-0xdc;const _0x16d230=a176_0x16d2();let _0x342f71=_0x16d230[_0x12f433];return _0x342f71;}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(_0x567d55){const _0x8526e9=a176_0x342f;return SENSITIVE_PATTERNS[_0x8526e9(0xe4)](_0x20ccdc=>_0x20ccdc[_0x8526e9(0xe3)](_0x567d55));}function sanitizeFlags(_0x40375c){const _0x3258f8=a176_0x342f,_0xaa7d91={};for(const [_0x2e891b,_0x57c17e]of Object[_0x3258f8(0xec)](_0x40375c)){isSensitiveKey(_0x2e891b)?_0xaa7d91[_0x2e891b]=_0x57c17e!=null&&_0x57c17e!==''?_0x3258f8(0xdd):_0x57c17e:_0xaa7d91[_0x2e891b]=_0x57c17e;}return _0xaa7d91;}export async function reportCommandTrace(_0x5b46fc){const _0x58a790=a176_0x342f;try{const _0x58c27e=sanitizeFlags(_0x5b46fc['flags']);await sendCliTraceLog({'spanName':_0x58a790(0xf1),'logData':{'command.cli_version':getCliVersion(),'command.service':_0x5b46fc[_0x58a790(0xe6)],'command.name':_0x5b46fc[_0x58a790(0xe1)],'command.flags':JSON['stringify'](_0x58c27e),..._0x5b46fc['durationMs']!=null?{'command.duration_ms':_0x5b46fc[_0x58a790(0xe0)]}:{},..._0x5b46fc[_0x58a790(0xde)]?{'command.error':_0x5b46fc['error']instanceof Error?_0x5b46fc[_0x58a790(0xde)][_0x58a790(0xef)]:String(_0x5b46fc[_0x58a790(0xde)])}:{}}});}catch{}}
@@ -1 +1 @@
1
- function a176_0x5b91(_0x2c26d4,_0x391a8d){_0x2c26d4=_0x2c26d4-0x137;var _0x46530f=a176_0x4653();var _0x5b91a5=_0x46530f[_0x2c26d4];return _0x5b91a5;}function a176_0x4653(){var _0x186dca=['6904092allLwt','598612RRdUMp','Failed\x20to\x20report\x20CLI\x20help\x20trace:','error','42482924MAvZiA','1341aXaKJV','service','58460ijGarS','56aOlwzq','24560UkoeSD','554360fkXXYJ','2lKHklw','cli.help','2999127UnIvfo','115IzGNNF'];a176_0x4653=function(){return _0x186dca;};return a176_0x4653();}(function(_0x5003b9,_0x418524){var _0x437ae7=a176_0x5b91,_0x44fcde=_0x5003b9();while(!![]){try{var _0x22b618=-parseInt(_0x437ae7(0x13f))/0x1+parseInt(_0x437ae7(0x13a))/0x2*(-parseInt(_0x437ae7(0x13c))/0x3)+-parseInt(_0x437ae7(0x145))/0x4*(parseInt(_0x437ae7(0x13d))/0x5)+-parseInt(_0x437ae7(0x13e))/0x6+-parseInt(_0x437ae7(0x137))/0x7*(parseInt(_0x437ae7(0x139))/0x8)+-parseInt(_0x437ae7(0x143))/0x9*(-parseInt(_0x437ae7(0x138))/0xa)+parseInt(_0x437ae7(0x142))/0xb;if(_0x22b618===_0x418524)break;else _0x44fcde['push'](_0x44fcde['shift']());}catch(_0x5ce1e8){_0x44fcde['push'](_0x44fcde['shift']());}}}(a176_0x4653,0x8fae8));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export async function reportCliHelpTrace(_0x203a9c,_0x5ecba3){var _0x58a1bc=a176_0x5b91;try{await sendCliTraceLog({'spanName':_0x58a1bc(0x13b),'logData':{'rabetbase.help.kind':_0x203a9c,..._0x5ecba3?.[_0x58a1bc(0x144)]&&{'rabetbase.help.service':_0x5ecba3[_0x58a1bc(0x144)]}}});}catch(_0x409051){console[_0x58a1bc(0x141)](_0x58a1bc(0x140),_0x409051);}}
1
+ function a177_0x5d2e(){var _0x4ecd39=['28ATUYMK','10570zBCVPi','560Knqxwb','error','39gqAKnK','cli.help','36726oDKybF','13145QfbXGw','783vXGBVG','2589818ZQWuvx','226vnxEIl','9AKxlIT','Failed\x20to\x20report\x20CLI\x20help\x20trace:','5115664lZHgIb','649479aepSQy','service','3279324EyuKrx'];a177_0x5d2e=function(){return _0x4ecd39;};return a177_0x5d2e();}(function(_0x33fd3e,_0x52c974){var _0x3daebf=a177_0x5745,_0x37270b=_0x33fd3e();while(!![]){try{var _0x212fc5=-parseInt(_0x3daebf(0x15f))/0x1*(parseInt(_0x3daebf(0x161))/0x2)+parseInt(_0x3daebf(0x165))/0x3*(-parseInt(_0x3daebf(0x168))/0x4)+parseInt(_0x3daebf(0x16a))/0x5*(parseInt(_0x3daebf(0x16e))/0x6)+parseInt(_0x3daebf(0x160))/0x7+-parseInt(_0x3daebf(0x164))/0x8*(parseInt(_0x3daebf(0x162))/0x9)+-parseInt(_0x3daebf(0x169))/0xa*(-parseInt(_0x3daebf(0x16f))/0xb)+parseInt(_0x3daebf(0x167))/0xc*(parseInt(_0x3daebf(0x16c))/0xd);if(_0x212fc5===_0x52c974)break;else _0x37270b['push'](_0x37270b['shift']());}catch(_0x12b4bf){_0x37270b['push'](_0x37270b['shift']());}}}(a177_0x5d2e,0xda86c));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';function a177_0x5745(_0x2c7d60,_0x32f801){_0x2c7d60=_0x2c7d60-0x15f;var _0x5d2eb6=a177_0x5d2e();var _0x574563=_0x5d2eb6[_0x2c7d60];return _0x574563;}export async function reportCliHelpTrace(_0xf37f05,_0x484dd7){var _0x5d85ab=a177_0x5745;try{await sendCliTraceLog({'spanName':_0x5d85ab(0x16d),'logData':{'rabetbase.help.kind':_0xf37f05,..._0x484dd7?.[_0x5d85ab(0x166)]&&{'rabetbase.help.service':_0x484dd7[_0x5d85ab(0x166)]}}});}catch(_0x73c1c7){console[_0x5d85ab(0x16b)](_0x5d85ab(0x163),_0x73c1c7);}}
@@ -1 +1 @@
1
- (function(_0x3b7c2f,_0x4057c7){const _0x39ba87=a177_0x3d8d,_0x5d77c8=_0x3b7c2f();while(!![]){try{const _0x5df671=-parseInt(_0x39ba87(0xee))/0x1+parseInt(_0x39ba87(0xef))/0x2*(parseInt(_0x39ba87(0xfb))/0x3)+parseInt(_0x39ba87(0xf5))/0x4+-parseInt(_0x39ba87(0xf9))/0x5+parseInt(_0x39ba87(0xf2))/0x6*(-parseInt(_0x39ba87(0xf0))/0x7)+parseInt(_0x39ba87(0xf1))/0x8*(parseInt(_0x39ba87(0xfc))/0x9)+-parseInt(_0x39ba87(0xed))/0xa;if(_0x5df671===_0x4057c7)break;else _0x5d77c8['push'](_0x5d77c8['shift']());}catch(_0x300098){_0x5d77c8['push'](_0x5d77c8['shift']());}}}(a177_0x3607,0x412ee));import{VERSION,GIT_COMMIT}from'../generated/build-info.js';import{getSessionUserInfo}from'../auth/get-session-user.js';import{setServiceConfig,setUserContext}from'@lovrabet/otel-logger';function a177_0x3607(){const _0x58917b=['92911wyVvWf','1270432UzfNFq','126gJABQG','user','tenant_code','1588668oPHQsc','email','tenant','daily','1493135ZNDmoE','nickname','3pNwtjv','18PMQqcf','production','2324380gbmyss','127088TNuCnj','978202PwSGYz'];a177_0x3607=function(){return _0x58917b;};return a177_0x3607();}import{NPM_PACKAGE_NAME}from'../constant/cli.js';function a177_0x3d8d(_0x577be5,_0x5d3c4b){_0x577be5=_0x577be5-0xec;const _0x360739=a177_0x3607();let _0x3d8d24=_0x360739[_0x577be5];return _0x3d8d24;}import{getConfigAppCode}from'../utils/config.js';let cliOtelTraceInitialized=![];export async function ensureCliOtelTraceConfig(){const _0x1996e8=a177_0x3d8d,_0x1c158f=await getSessionUserInfo();if(!cliOtelTraceInitialized){const _0x10a396=_0x1c158f?.[_0x1996e8(0xf3)];setServiceConfig({'serviceName':NPM_PACKAGE_NAME,'serviceVersion':GIT_COMMIT!=='unknown'?VERSION+'+'+GIT_COMMIT:VERSION,'serviceEnv':process.env.RABETBASE_ENV??(process.env.RABETBASE_E2E_DAILY==='1'?_0x1996e8(0xf8):_0x1996e8(0xec))}),setUserContext({'id':_0x10a396?.['id'],'username':_0x10a396?.['username'],'nickname':_0x10a396?.[_0x1996e8(0xfa)],'email':_0x10a396?.[_0x1996e8(0xf6)],'tenantCode':_0x10a396?.[_0x1996e8(0xf7)][_0x1996e8(0xf4)],'appCode':getConfigAppCode()}),cliOtelTraceInitialized=!![];}return _0x1c158f;}
1
+ (function(_0xb4eb75,_0x5f0db9){const _0x46be7d=a178_0x4a63,_0x2011ab=_0xb4eb75();while(!![]){try{const _0x281569=-parseInt(_0x46be7d(0x1c1))/0x1*(parseInt(_0x46be7d(0x1c6))/0x2)+parseInt(_0x46be7d(0x1ca))/0x3+parseInt(_0x46be7d(0x1cb))/0x4+parseInt(_0x46be7d(0x1bd))/0x5+-parseInt(_0x46be7d(0x1c4))/0x6*(-parseInt(_0x46be7d(0x1c2))/0x7)+-parseInt(_0x46be7d(0x1c0))/0x8*(-parseInt(_0x46be7d(0x1bf))/0x9)+parseInt(_0x46be7d(0x1c8))/0xa*(-parseInt(_0x46be7d(0x1cc))/0xb);if(_0x281569===_0x5f0db9)break;else _0x2011ab['push'](_0x2011ab['shift']());}catch(_0xad582d){_0x2011ab['push'](_0x2011ab['shift']());}}}(a178_0xf269,0x607a4));import{VERSION,GIT_COMMIT}from'../generated/build-info.js';import{getSessionUserInfo}from'../auth/get-session-user.js';import{setServiceConfig,setUserContext}from'@lovrabet/otel-logger';function a178_0xf269(){const _0x49cba7=['tenant','80148DSCUvz','username','695110SbBhBz','user','1752522dyugwi','276056KLSbVA','121mbyrQT','unknown','daily','641525CWFcav','production','765BPfznN','22384jEAEYt','9cgyNwj','28fWNRhC','email','751704pkQmxm'];a178_0xf269=function(){return _0x49cba7;};return a178_0xf269();}import{NPM_PACKAGE_NAME}from'../constant/cli.js';function a178_0x4a63(_0x5234ca,_0x2c0fdd){_0x5234ca=_0x5234ca-0x1bc;const _0xf2696=a178_0xf269();let _0x4a63dc=_0xf2696[_0x5234ca];return _0x4a63dc;}import{getConfigAppCode}from'../utils/config.js';let cliOtelTraceInitialized=![];export async function ensureCliOtelTraceConfig(){const _0x404535=a178_0x4a63,_0x38004a=await getSessionUserInfo();if(!cliOtelTraceInitialized){const _0x1c2d67=_0x38004a?.[_0x404535(0x1c9)];setServiceConfig({'serviceName':NPM_PACKAGE_NAME,'serviceVersion':GIT_COMMIT!==_0x404535(0x1cd)?VERSION+'+'+GIT_COMMIT:VERSION,'serviceEnv':process.env.RABETBASE_ENV??(process.env.RABETBASE_E2E_DAILY==='1'?_0x404535(0x1bc):_0x404535(0x1be))}),setUserContext({'id':_0x1c2d67?.['id'],'username':_0x1c2d67?.[_0x404535(0x1c7)],'nickname':_0x1c2d67?.['nickname'],'email':_0x1c2d67?.[_0x404535(0x1c3)],'tenantCode':_0x1c2d67?.[_0x404535(0x1c5)]['tenant_code'],'appCode':getConfigAppCode()}),cliOtelTraceInitialized=!![];}return _0x38004a;}
@@ -1 +1 @@
1
- (function(_0x18868c,_0x36181d){const _0x48a6ec=a178_0x4e13,_0xdad6a3=_0x18868c();while(!![]){try{const _0x46cba3=-parseInt(_0x48a6ec(0x133))/0x1+-parseInt(_0x48a6ec(0x138))/0x2*(-parseInt(_0x48a6ec(0x137))/0x3)+-parseInt(_0x48a6ec(0x139))/0x4+parseInt(_0x48a6ec(0x135))/0x5*(-parseInt(_0x48a6ec(0x13b))/0x6)+-parseInt(_0x48a6ec(0x140))/0x7*(-parseInt(_0x48a6ec(0x142))/0x8)+parseInt(_0x48a6ec(0x13e))/0x9+-parseInt(_0x48a6ec(0x13c))/0xa*(parseInt(_0x48a6ec(0x13a))/0xb);if(_0x46cba3===_0x36181d)break;else _0xdad6a3['push'](_0xdad6a3['shift']());}catch(_0x30d433){_0xdad6a3['push'](_0xdad6a3['shift']());}}}(a178_0xd829,0x3c951));import{shutdownTraces}from'@lovrabet/otel-logger';let shutdownPromise=null;export async function flushOtelNodeIfUsed(){if(shutdownPromise)return shutdownPromise;return shutdownPromise=((async()=>{try{await shutdownTraces();}catch{}})()),shutdownPromise;}export function registerOtelShutdownOnExit(){const _0x1aad04=a178_0x4e13;process[_0x1aad04(0x134)](_0x1aad04(0x141),()=>{void flushOtelNodeIfUsed();});const _0x31bdfd=()=>{const _0x28a79b=_0x1aad04;void flushOtelNodeIfUsed()['then'](()=>process[_0x28a79b(0x13f)](0x0));};process[_0x1aad04(0x134)](_0x1aad04(0x136),_0x31bdfd),process[_0x1aad04(0x134)](_0x1aad04(0x13d),_0x31bdfd);}function a178_0x4e13(_0x35a4e1,_0x3103ce){_0x35a4e1=_0x35a4e1-0x133;const _0xd82994=a178_0xd829();let _0x4e1371=_0xd82994[_0x35a4e1];return _0x4e1371;}function a178_0xd829(){const _0x282f58=['275920sJMTWL','SIGTERM','2405934epKMxN','exit','7CrbrsI','beforeExit','3363256qXFFKj','323788FKzUjM','once','1082115qqnvZG','SIGINT','278451jmWESe','10QNCBya','570904BHZmSR','88KnzHAZ','6FAfmoL'];a178_0xd829=function(){return _0x282f58;};return a178_0xd829();}export async function exitWithOtelShutdown(_0x305f36){const _0x482997=a178_0x4e13;await flushOtelNodeIfUsed(),process[_0x482997(0x13f)](_0x305f36);}
1
+ (function(_0x12d861,_0x1c9759){const _0x1af2b4=a179_0x259d,_0x2201b3=_0x12d861();while(!![]){try{const _0x3d3221=parseInt(_0x1af2b4(0x85))/0x1+parseInt(_0x1af2b4(0x86))/0x2*(parseInt(_0x1af2b4(0x7a))/0x3)+parseInt(_0x1af2b4(0x87))/0x4+parseInt(_0x1af2b4(0x7e))/0x5+-parseInt(_0x1af2b4(0x81))/0x6*(parseInt(_0x1af2b4(0x89))/0x7)+-parseInt(_0x1af2b4(0x84))/0x8*(parseInt(_0x1af2b4(0x83))/0x9)+-parseInt(_0x1af2b4(0x7c))/0xa;if(_0x3d3221===_0x1c9759)break;else _0x2201b3['push'](_0x2201b3['shift']());}catch(_0x3ea65d){_0x2201b3['push'](_0x2201b3['shift']());}}}(a179_0x475e,0xe7006));import{shutdownTraces}from'@lovrabet/otel-logger';let shutdownPromise=null;export async function flushOtelNodeIfUsed(){if(shutdownPromise)return shutdownPromise;return shutdownPromise=((async()=>{try{await shutdownTraces();}catch{}})()),shutdownPromise;}function a179_0x259d(_0x370012,_0x16ce92){_0x370012=_0x370012-0x7a;const _0x475ee9=a179_0x475e();let _0x259d41=_0x475ee9[_0x370012];return _0x259d41;}function a179_0x475e(){const _0x169ff4=['6191388iOYCAt','beforeExit','413DrfJuc','3cTDMOD','SIGINT','27362940rzfhvL','once','925410GsRvRZ','then','exit','138DljvRK','SIGTERM','9egyFid','8277688Htwupi','1496712PyQhjS','2977806erniRW'];a179_0x475e=function(){return _0x169ff4;};return a179_0x475e();}export function registerOtelShutdownOnExit(){const _0x242d4d=a179_0x259d;process[_0x242d4d(0x7d)](_0x242d4d(0x88),()=>{void flushOtelNodeIfUsed();});const _0x5dae75=()=>{const _0x24c2a8=_0x242d4d;void flushOtelNodeIfUsed()[_0x24c2a8(0x7f)](()=>process[_0x24c2a8(0x80)](0x0));};process[_0x242d4d(0x7d)](_0x242d4d(0x7b),_0x5dae75),process[_0x242d4d(0x7d)](_0x242d4d(0x82),_0x5dae75);}export async function exitWithOtelShutdown(_0x5a1a47){const _0x157c40=a179_0x259d;await flushOtelNodeIfUsed(),process[_0x157c40(0x80)](_0x5a1a47);}
@@ -1 +1 @@
1
- const a179_0x2837b2=a179_0x6591;(function(_0x2e3295,_0x612074){const _0x18d264=a179_0x6591,_0x392922=_0x2e3295();while(!![]){try{const _0x2b3eb0=-parseInt(_0x18d264(0x10c))/0x1*(-parseInt(_0x18d264(0x10d))/0x2)+parseInt(_0x18d264(0x10b))/0x3*(parseInt(_0x18d264(0x10e))/0x4)+parseInt(_0x18d264(0x11b))/0x5+-parseInt(_0x18d264(0x116))/0x6*(-parseInt(_0x18d264(0x112))/0x7)+parseInt(_0x18d264(0x110))/0x8+parseInt(_0x18d264(0x11c))/0x9+-parseInt(_0x18d264(0x118))/0xa*(parseInt(_0x18d264(0x115))/0xb);if(_0x2b3eb0===_0x612074)break;else _0x392922['push'](_0x392922['shift']());}catch(_0xecc6e6){_0x392922['push'](_0x392922['shift']());}}}(a179_0x7fab,0x4ceb8));import{sendTraceLog}from'@lovrabet/otel-logger';import{ensureCliOtelTraceConfig}from'../telemetry/ensure-cli-otel-config.js';import{getCliVersion}from'../utils/version.js';function a179_0x6591(_0x22282c,_0x5b7661){_0x22282c=_0x22282c-0x10b;const _0x7fab37=a179_0x7fab();let _0x65918f=_0x7fab37[_0x22282c];return _0x65918f;}function a179_0x7fab(){const _0x2e4f80=['logData','spanName','8089378RHKcxB','5604DPlvmd','rabetbase-cli','10dvKLxL','manual','traceparent','266820mDRWJm','1844883fJgyPs','46815dxyJPx','1vkLCPP','745658AAkUdk','28rvCjRn','version','1979752mYiZoj','traceName','469bEJKXT'];a179_0x7fab=function(){return _0x2e4f80;};return a179_0x7fab();}const DEFAULT_TRACE_NAME=a179_0x2837b2(0x117);export async function sendCliTraceLog(_0x3d80b0){const _0x4cc737=a179_0x2837b2;await ensureCliOtelTraceConfig(),sendTraceLog({'traceName':_0x3d80b0[_0x4cc737(0x111)]??DEFAULT_TRACE_NAME,'version':_0x3d80b0[_0x4cc737(0x10f)]??getCliVersion(),'spanName':_0x3d80b0[_0x4cc737(0x114)],'eventType':_0x4cc737(0x119),'logData':_0x3d80b0[_0x4cc737(0x113)],..._0x3d80b0['traceparent']&&{'traceparent':_0x3d80b0[_0x4cc737(0x11a)]}});}
1
+ function a180_0x403d(){const _0x3880d3=['8xQyQYZ','54lizzWH','741254kNUZxO','5329110DiqyDg','manual','traceparent','56EcDKlw','1291495PzevXs','10827hQlEVu','4684440GpzgPX','75324sbFRrg','traceName','version','10081400cUJbmk'];a180_0x403d=function(){return _0x3880d3;};return a180_0x403d();}(function(_0x5ea085,_0x5eccae){const _0x52d7c3=a180_0x2db7,_0x363d1c=_0x5ea085();while(!![]){try{const _0x47ecbd=parseInt(_0x52d7c3(0x16c))/0x1+-parseInt(_0x52d7c3(0x174))/0x2*(-parseInt(_0x52d7c3(0x16b))/0x3)+parseInt(_0x52d7c3(0x16a))/0x4*(-parseInt(_0x52d7c3(0x171))/0x5)+-parseInt(_0x52d7c3(0x16d))/0x6+parseInt(_0x52d7c3(0x169))/0x7+-parseInt(_0x52d7c3(0x170))/0x8*(-parseInt(_0x52d7c3(0x172))/0x9)+-parseInt(_0x52d7c3(0x173))/0xa;if(_0x47ecbd===_0x5eccae)break;else _0x363d1c['push'](_0x363d1c['shift']());}catch(_0x16ac4d){_0x363d1c['push'](_0x363d1c['shift']());}}}(a180_0x403d,0xf2d04));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='rabetbase-cli';function a180_0x2db7(_0x9b3f67,_0xac2f6){_0x9b3f67=_0x9b3f67-0x167;const _0x403d96=a180_0x403d();let _0x2db789=_0x403d96[_0x9b3f67];return _0x2db789;}export async function sendCliTraceLog(_0x4ebef2){const _0x28902a=a180_0x2db7;await ensureCliOtelTraceConfig(),sendTraceLog({'traceName':_0x4ebef2[_0x28902a(0x167)]??DEFAULT_TRACE_NAME,'version':_0x4ebef2[_0x28902a(0x168)]??getCliVersion(),'spanName':_0x4ebef2['spanName'],'eventType':_0x28902a(0x16e),'logData':_0x4ebef2['logData'],..._0x4ebef2['traceparent']&&{'traceparent':_0x4ebef2[_0x28902a(0x16f)]}});}
@@ -1 +1 @@
1
- const a180_0x109a52=a180_0x13a9;(function(_0x2ebbba,_0x1ac0dd){const _0x545bf2=a180_0x13a9,_0x5b546a=_0x2ebbba();while(!![]){try{const _0x2f718d=parseInt(_0x545bf2(0x10a))/0x1+-parseInt(_0x545bf2(0x103))/0x2*(-parseInt(_0x545bf2(0x102))/0x3)+-parseInt(_0x545bf2(0xff))/0x4*(parseInt(_0x545bf2(0x107))/0x5)+parseInt(_0x545bf2(0xf9))/0x6+parseInt(_0x545bf2(0x10d))/0x7*(parseInt(_0x545bf2(0xfa))/0x8)+parseInt(_0x545bf2(0xfc))/0x9*(-parseInt(_0x545bf2(0x109))/0xa)+parseInt(_0x545bf2(0x105))/0xb;if(_0x2f718d===_0x1ac0dd)break;else _0x5b546a['push'](_0x5b546a['shift']());}catch(_0x5d4839){_0x5b546a['push'](_0x5b546a['shift']());}}}(a180_0x3627,0x53439));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';function a180_0x13a9(_0x525136,_0x46fd21){_0x525136=_0x525136-0xf9;const _0x3627d3=a180_0x3627();let _0x13a9dc=_0x3627d3[_0x525136];return _0x13a9dc;}export const PLATFORM_ISSUE_TRACE_NAME=a180_0x109a52(0x10c);export const PLATFORM_ISSUE_SPAN_NAME=a180_0x109a52(0x106);export async function sendPlatformIssueCollectLog(_0x5c4357){const _0x46acc8=a180_0x109a52;await sendCliTraceLog({'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x5c4357[_0x46acc8(0x101)],'issue.description':_0x5c4357[_0x46acc8(0xfe)],..._0x5c4357[_0x46acc8(0x10b)]?{'issue.description_original_bytes':_0x5c4357[_0x46acc8(0x10b)][_0x46acc8(0xfb)],'issue.description_truncated':_0x5c4357[_0x46acc8(0x10b)][_0x46acc8(0x108)],'issue.description_redactions':_0x5c4357['sanitize'][_0x46acc8(0xfd)],'issue.description_redaction_kinds':_0x5c4357[_0x46acc8(0x10b)][_0x46acc8(0x104)][_0x46acc8(0x100)](',')}:{}}});}function a180_0x3627(){const _0x241ca9=['sanitize','platform-issue-log-collect','322112qqchYj','318558fDxNdE','8twnwPv','originalBytes','60057DpQhbS','redactionCount','description','788bXeWcA','join','title','66svVyRn','6702MatXFD','redactionKinds','3260312aNTlbt','issue.log.collect','60gAVxzg','truncated','850qvMwVX','441395pVnroP'];a180_0x3627=function(){return _0x241ca9;};return a180_0x3627();}
1
+ const a181_0x3e226d=a181_0x5f77;(function(_0x1cde01,_0x1cf874){const _0x39fb88=a181_0x5f77,_0x2fac19=_0x1cde01();while(!![]){try{const _0x4544f6=-parseInt(_0x39fb88(0x16d))/0x1+-parseInt(_0x39fb88(0x16b))/0x2*(parseInt(_0x39fb88(0x16e))/0x3)+parseInt(_0x39fb88(0x176))/0x4*(-parseInt(_0x39fb88(0x166))/0x5)+-parseInt(_0x39fb88(0x167))/0x6*(parseInt(_0x39fb88(0x164))/0x7)+parseInt(_0x39fb88(0x170))/0x8*(-parseInt(_0x39fb88(0x168))/0x9)+parseInt(_0x39fb88(0x169))/0xa*(-parseInt(_0x39fb88(0x172))/0xb)+parseInt(_0x39fb88(0x174))/0xc*(parseInt(_0x39fb88(0x175))/0xd);if(_0x4544f6===_0x1cf874)break;else _0x2fac19['push'](_0x2fac19['shift']());}catch(_0x4d3587){_0x2fac19['push'](_0x2fac19['shift']());}}}(a181_0x24d9,0xaf173));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';function a181_0x24d9(){const _0xaec8b5=['27WMMbub','1891360UCTJSE','issue.log.collect','61220syIiuW','originalBytes','754058uGYxoP','123MsJfyY','sanitize','2398896kErbkk','platform-issue-log-collect','11hZMeQf','redactionKinds','4824AvZWAu','163202WuYuIU','3964pnXqrk','truncated','176855qOdBXi','redactionCount','4685BWVnVE','72WKmoKl'];a181_0x24d9=function(){return _0xaec8b5;};return a181_0x24d9();}export const PLATFORM_ISSUE_TRACE_NAME=a181_0x3e226d(0x171);export const PLATFORM_ISSUE_SPAN_NAME=a181_0x3e226d(0x16a);function a181_0x5f77(_0x2a8b9f,_0x287657){_0x2a8b9f=_0x2a8b9f-0x163;const _0x24d9b9=a181_0x24d9();let _0x5f777e=_0x24d9b9[_0x2a8b9f];return _0x5f777e;}export async function sendPlatformIssueCollectLog(_0x5b61e8){const _0x3972b8=a181_0x3e226d;await sendCliTraceLog({'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x5b61e8['title'],'issue.description':_0x5b61e8['description'],..._0x5b61e8[_0x3972b8(0x16f)]?{'issue.description_original_bytes':_0x5b61e8[_0x3972b8(0x16f)][_0x3972b8(0x16c)],'issue.description_truncated':_0x5b61e8[_0x3972b8(0x16f)][_0x3972b8(0x163)],'issue.description_redactions':_0x5b61e8[_0x3972b8(0x16f)][_0x3972b8(0x165)],'issue.description_redaction_kinds':_0x5b61e8[_0x3972b8(0x16f)][_0x3972b8(0x173)]['join'](',')}:{}}});}
@@ -1 +1 @@
1
- const a182_0x2ec815=a182_0x661f;(function(_0x2c861d,_0x2ac9c7){const _0xdb6ee7=a182_0x661f,_0x58527f=_0x2c861d();while(!![]){try{const _0x1d4138=parseInt(_0xdb6ee7(0x187))/0x1+parseInt(_0xdb6ee7(0x188))/0x2*(-parseInt(_0xdb6ee7(0x189))/0x3)+-parseInt(_0xdb6ee7(0x18d))/0x4+-parseInt(_0xdb6ee7(0x184))/0x5*(parseInt(_0xdb6ee7(0x176))/0x6)+-parseInt(_0xdb6ee7(0x185))/0x7+parseInt(_0xdb6ee7(0x166))/0x8*(-parseInt(_0xdb6ee7(0x160))/0x9)+parseInt(_0xdb6ee7(0x17a))/0xa*(parseInt(_0xdb6ee7(0x173))/0xb);if(_0x1d4138===_0x2ac9c7)break;else _0x58527f['push'](_0x58527f['shift']());}catch(_0x1b43e4){_0x58527f['push'](_0x58527f['shift']());}}}(a182_0xbbfd,0xa05f8));export const CORE_IDE_CONFIGS={'cursor':{'name':a182_0x2ec815(0x16e),'description':a182_0x2ec815(0x198),'folders':[a182_0x2ec815(0x15f),a182_0x2ec815(0x170)],'files':[{'type':a182_0x2ec815(0x16f),'path':'.cursor/skills/rabetbase.md','template':a182_0x2ec815(0x172)}]},'windsurf':{'name':'Windsurf','description':'Windsurf\x20IDE','folders':[a182_0x2ec815(0x195)],'files':[{'type':'file','path':a182_0x2ec815(0x16c),'template':'SKILL.md.tpl'}]},'claude':{'name':'Claude\x20Code','description':a182_0x2ec815(0x18b),'folders':[a182_0x2ec815(0x18f)],'files':[{'type':'file','path':a182_0x2ec815(0x194),'template':'SKILL.md.tpl'}]},'cline':{'name':a182_0x2ec815(0x169),'description':a182_0x2ec815(0x186),'folders':[a182_0x2ec815(0x181)],'files':[{'type':a182_0x2ec815(0x16f),'path':'.cline/skills/lovrabet/SKILL.md','template':a182_0x2ec815(0x172)}]},'codex':{'name':a182_0x2ec815(0x193),'description':a182_0x2ec815(0x162),'folders':['.codex'],'files':[{'type':a182_0x2ec815(0x16f),'path':a182_0x2ec815(0x17c),'template':a182_0x2ec815(0x172)}]},'opencode':{'name':a182_0x2ec815(0x182),'description':a182_0x2ec815(0x199),'folders':[a182_0x2ec815(0x17f)],'files':[{'type':a182_0x2ec815(0x16f),'path':a182_0x2ec815(0x177),'template':a182_0x2ec815(0x172)}]},'qoder':{'name':a182_0x2ec815(0x191),'description':a182_0x2ec815(0x18e),'folders':[a182_0x2ec815(0x16b)],'files':[{'type':a182_0x2ec815(0x16f),'path':a182_0x2ec815(0x16a),'template':a182_0x2ec815(0x172)},{'type':'file','path':a182_0x2ec815(0x178),'template':a182_0x2ec815(0x172)}]},'codebuddy':{'name':a182_0x2ec815(0x175),'description':a182_0x2ec815(0x192),'folders':[a182_0x2ec815(0x161)],'files':[{'type':a182_0x2ec815(0x16f),'path':a182_0x2ec815(0x171),'template':a182_0x2ec815(0x172)}]},'trae':{'name':a182_0x2ec815(0x183),'description':a182_0x2ec815(0x16d),'folders':[a182_0x2ec815(0x179)],'files':[{'type':a182_0x2ec815(0x16f),'path':a182_0x2ec815(0x17e),'template':a182_0x2ec815(0x172)}]}};export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':a182_0x2ec815(0x196),'description':a182_0x2ec815(0x18a),'folders':['.agent'],'files':[{'type':'file','path':a182_0x2ec815(0x174),'template':a182_0x2ec815(0x172)}]},'antigravity':{'name':'Antigravity','description':a182_0x2ec815(0x168),'folders':[a182_0x2ec815(0x197)],'files':[{'type':a182_0x2ec815(0x16f),'path':a182_0x2ec815(0x174),'template':a182_0x2ec815(0x172)}]}};export const CORE_IDE_LIST=[a182_0x2ec815(0x19a),a182_0x2ec815(0x17d),a182_0x2ec815(0x165),'codex',a182_0x2ec815(0x18c),'opencode',a182_0x2ec815(0x180),a182_0x2ec815(0x190),a182_0x2ec815(0x15e)];function a182_0xbbfd(){const _0x28bcbf=['windsurf','.cursorrules','5283Azamqg','.codebuddy','Codex\x20IDE','opencode','agent','codebuddy','14672CYdxUx','codex','Antigravity\x20IDE','Cline','.qoder/rules/rabetbase.md','.qoder','.windsurf/workflows/rabetbase.md','Trae\x20IDE','Cursor','file','.cursor','.codebuddy/skills/lovrabet/SKILL.md','SKILL.md.tpl','25763210zvfdNL','.agent/skills/lovrabet/SKILL.md','CodeBuddy','6edMzdU','.opencode/skills/lovrabet/SKILL.md','.qoder/skills/lovrabet/SKILL.md','.trae','20uySfrA','antigravity','.codex/skills/lovrabet/SKILL.md','cline','.trae/skills/lovrabet/SKILL.md','.opencode','qoder','.cline','OpenCode','Trae','1457895WyOFER','7209727LDSwdY','Cline\x20IDE','99448YgLepd','2fhsSsE','2302791UzqdMT','通用模板\x20-\x20兜底方案','Claude\x20Code','cursor','3844340XhQdgJ','Qoder\x20IDE','.claude','trae','Qoder','CodeBuddy\x20IDE','Codex','.claude/skills/lovrabet/SKILL.md','.windsurf','其他\x20(通用模板)','.agent','Cursor\x20IDE','OpenCode\x20IDE','claude'];a182_0xbbfd=function(){return _0x28bcbf;};return a182_0xbbfd();}export const IDE_LIST=[a182_0x2ec815(0x17b),'claude',a182_0x2ec815(0x17d),a182_0x2ec815(0x165),a182_0x2ec815(0x167),a182_0x2ec815(0x18c),a182_0x2ec815(0x163),a182_0x2ec815(0x180),a182_0x2ec815(0x190),'windsurf',a182_0x2ec815(0x164)];function a182_0x661f(_0x5078d5,_0x56dc0f){_0x5078d5=_0x5078d5-0x15e;const _0xbbfde2=a182_0xbbfd();let _0x661f11=_0xbbfde2[_0x5078d5];return _0x661f11;}export const ALL_CORE_IDES=[a182_0x2ec815(0x18c),a182_0x2ec815(0x15e),a182_0x2ec815(0x19a),a182_0x2ec815(0x17d),a182_0x2ec815(0x167),a182_0x2ec815(0x163),a182_0x2ec815(0x180),a182_0x2ec815(0x165),a182_0x2ec815(0x190)];
1
+ const a183_0x4ee59c=a183_0x3762;function a183_0x3762(_0x3de4c9,_0x388e7d){_0x3de4c9=_0x3de4c9-0x1f4;const _0x13639b=a183_0x1363();let _0x3762c7=_0x13639b[_0x3de4c9];return _0x3762c7;}(function(_0x336650,_0x292f26){const _0x28d2cd=a183_0x3762,_0x3a8c9b=_0x336650();while(!![]){try{const _0x54edfc=parseInt(_0x28d2cd(0x1fb))/0x1*(parseInt(_0x28d2cd(0x208))/0x2)+parseInt(_0x28d2cd(0x210))/0x3*(-parseInt(_0x28d2cd(0x200))/0x4)+-parseInt(_0x28d2cd(0x20c))/0x5+parseInt(_0x28d2cd(0x215))/0x6+-parseInt(_0x28d2cd(0x1fa))/0x7*(-parseInt(_0x28d2cd(0x221))/0x8)+-parseInt(_0x28d2cd(0x222))/0x9+-parseInt(_0x28d2cd(0x1fc))/0xa*(parseInt(_0x28d2cd(0x21a))/0xb);if(_0x54edfc===_0x292f26)break;else _0x3a8c9b['push'](_0x3a8c9b['shift']());}catch(_0x567d06){_0x3a8c9b['push'](_0x3a8c9b['shift']());}}}(a183_0x1363,0x9b51e));function a183_0x1363(){const _0x3494e6=['Trae','claude','opencode','codex','.trae/skills/lovrabet/SKILL.md','Claude\x20Code','OpenCode','.codebuddy/skills/lovrabet/SKILL.md','8208088BMyaCU','1fVRsXL','3210XcvAFw','.cline','.windsurf/workflows/rabetbase.md','通用模板\x20-\x20兜底方案','4dWCLZD','.codex/skills/lovrabet/SKILL.md','qoder','Cline','cursor','.claude','Cursor','cline','1221218gLwMeD','antigravity','SKILL.md.tpl','Windsurf','2273175dHNDVi','.claude/skills/lovrabet/SKILL.md','windsurf','.qoder/skills/lovrabet/SKILL.md','780450apqflE','file','.cursorrules','Cursor\x20IDE','Cline\x20IDE','5101050zgqISy','.cursor/skills/rabetbase.md','.opencode','.trae','Windsurf\x20IDE','33891bCCQLP','.qoder/rules/rabetbase.md','Trae\x20IDE','其他\x20(通用模板)','Codex','.cursor','trae','8GYuuwp','2640528XpRieV','codebuddy','.agent/skills/lovrabet/SKILL.md','.agent'];a183_0x1363=function(){return _0x3494e6;};return a183_0x1363();}export const CORE_IDE_CONFIGS={'cursor':{'name':a183_0x4ee59c(0x206),'description':a183_0x4ee59c(0x213),'folders':[a183_0x4ee59c(0x212),a183_0x4ee59c(0x21f)],'files':[{'type':a183_0x4ee59c(0x211),'path':a183_0x4ee59c(0x216),'template':'SKILL.md.tpl'}]},'windsurf':{'name':a183_0x4ee59c(0x20b),'description':a183_0x4ee59c(0x219),'folders':['.windsurf'],'files':[{'type':a183_0x4ee59c(0x211),'path':a183_0x4ee59c(0x1fe),'template':a183_0x4ee59c(0x20a)}]},'claude':{'name':'Claude\x20Code','description':a183_0x4ee59c(0x1f7),'folders':[a183_0x4ee59c(0x205)],'files':[{'type':a183_0x4ee59c(0x211),'path':a183_0x4ee59c(0x20d),'template':'SKILL.md.tpl'}]},'cline':{'name':a183_0x4ee59c(0x203),'description':a183_0x4ee59c(0x214),'folders':[a183_0x4ee59c(0x1fd)],'files':[{'type':a183_0x4ee59c(0x211),'path':'.cline/skills/lovrabet/SKILL.md','template':'SKILL.md.tpl'}]},'codex':{'name':a183_0x4ee59c(0x21e),'description':'Codex\x20IDE','folders':['.codex'],'files':[{'type':a183_0x4ee59c(0x211),'path':a183_0x4ee59c(0x201),'template':a183_0x4ee59c(0x20a)}]},'opencode':{'name':a183_0x4ee59c(0x1f8),'description':'OpenCode\x20IDE','folders':[a183_0x4ee59c(0x217)],'files':[{'type':a183_0x4ee59c(0x211),'path':'.opencode/skills/lovrabet/SKILL.md','template':a183_0x4ee59c(0x20a)}]},'qoder':{'name':'Qoder','description':'Qoder\x20IDE','folders':['.qoder'],'files':[{'type':a183_0x4ee59c(0x211),'path':a183_0x4ee59c(0x21b),'template':a183_0x4ee59c(0x20a)},{'type':a183_0x4ee59c(0x211),'path':a183_0x4ee59c(0x20f),'template':a183_0x4ee59c(0x20a)}]},'codebuddy':{'name':'CodeBuddy','description':'CodeBuddy\x20IDE','folders':['.codebuddy'],'files':[{'type':'file','path':a183_0x4ee59c(0x1f9),'template':'SKILL.md.tpl'}]},'trae':{'name':a183_0x4ee59c(0x226),'description':a183_0x4ee59c(0x21c),'folders':[a183_0x4ee59c(0x218)],'files':[{'type':a183_0x4ee59c(0x211),'path':a183_0x4ee59c(0x1f6),'template':'SKILL.md.tpl'}]}};export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':a183_0x4ee59c(0x21d),'description':a183_0x4ee59c(0x1ff),'folders':[a183_0x4ee59c(0x225)],'files':[{'type':a183_0x4ee59c(0x211),'path':a183_0x4ee59c(0x224),'template':'SKILL.md.tpl'}]},'antigravity':{'name':'Antigravity','description':'Antigravity\x20IDE','folders':[a183_0x4ee59c(0x225)],'files':[{'type':a183_0x4ee59c(0x211),'path':a183_0x4ee59c(0x224),'template':a183_0x4ee59c(0x20a)}]}};export const CORE_IDE_LIST=[a183_0x4ee59c(0x227),'cline',a183_0x4ee59c(0x223),'codex',a183_0x4ee59c(0x204),'opencode',a183_0x4ee59c(0x202),a183_0x4ee59c(0x220),a183_0x4ee59c(0x20e)];export const IDE_LIST=[a183_0x4ee59c(0x209),'claude',a183_0x4ee59c(0x207),a183_0x4ee59c(0x223),a183_0x4ee59c(0x1f5),a183_0x4ee59c(0x204),a183_0x4ee59c(0x1f4),'qoder',a183_0x4ee59c(0x220),a183_0x4ee59c(0x20e),'agent'];export const ALL_CORE_IDES=[a183_0x4ee59c(0x204),'windsurf','claude',a183_0x4ee59c(0x207),'codex',a183_0x4ee59c(0x1f4),a183_0x4ee59c(0x202),a183_0x4ee59c(0x223),a183_0x4ee59c(0x220)];
@@ -1 +1 @@
1
- function a183_0x2cc7(){const _0x4e89ff=['2104302DlfaTy','28TQuYEe','904zGSyuC','879792YDfRZD','19362vERvpR','24978SMkeRr','13382510lPuCVj','5uvjahO','1473924oKQUZV','343332gqZoNL'];a183_0x2cc7=function(){return _0x4e89ff;};return a183_0x2cc7();}(function(_0x256b88,_0x23cbdc){const _0x4c9b07=a183_0x3a4f,_0x28acce=_0x256b88();while(!![]){try{const _0x4a7db4=-parseInt(_0x4c9b07(0x150))/0x1*(parseInt(_0x4c9b07(0x14c))/0x2)+parseInt(_0x4c9b07(0x14e))/0x3+-parseInt(_0x4c9b07(0x153))/0x4+parseInt(_0x4c9b07(0x152))/0x5*(-parseInt(_0x4c9b07(0x14b))/0x6)+-parseInt(_0x4c9b07(0x14f))/0x7*(parseInt(_0x4c9b07(0x14d))/0x8)+-parseInt(_0x4c9b07(0x14a))/0x9+parseInt(_0x4c9b07(0x151))/0xa;if(_0x4a7db4===_0x23cbdc)break;else _0x28acce['push'](_0x28acce['shift']());}catch(_0x176159){_0x28acce['push'](_0x28acce['shift']());}}}(a183_0x2cc7,0x33bcf));import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';function a183_0x3a4f(_0xc0fc3,_0x200526){_0xc0fc3=_0xc0fc3-0x14a;const _0x2cc7e8=a183_0x2cc7();let _0x3a4f2c=_0x2cc7e8[_0xc0fc3];return _0x3a4f2c;}export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
1
+ (function(_0x5252c1,_0x1abd42){const _0x3474a1=a184_0x2dc4,_0x1951a6=_0x5252c1();while(!![]){try{const _0x31d779=-parseInt(_0x3474a1(0x128))/0x1+-parseInt(_0x3474a1(0x124))/0x2*(-parseInt(_0x3474a1(0x125))/0x3)+parseInt(_0x3474a1(0x12a))/0x4*(-parseInt(_0x3474a1(0x126))/0x5)+-parseInt(_0x3474a1(0x123))/0x6*(-parseInt(_0x3474a1(0x12b))/0x7)+-parseInt(_0x3474a1(0x127))/0x8+-parseInt(_0x3474a1(0x120))/0x9*(-parseInt(_0x3474a1(0x129))/0xa)+parseInt(_0x3474a1(0x121))/0xb*(parseInt(_0x3474a1(0x122))/0xc);if(_0x31d779===_0x1abd42)break;else _0x1951a6['push'](_0x1951a6['shift']());}catch(_0x243980){_0x1951a6['push'](_0x1951a6['shift']());}}}(a184_0x427f,0xe306e));function a184_0x2dc4(_0x443320,_0x28e6cd){_0x443320=_0x443320-0x120;const _0x427fa9=a184_0x427f();let _0x2dc41b=_0x427fa9[_0x443320];return _0x2dc41b;}import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});function a184_0x427f(){const _0x5c9916=['495OYSRKv','13640608MxGzQY','714706zHSdzW','14870xldAmS','74124zKLytQ','2015944RYFXpe','10890XEhHRM','47432ACmHgP','5136nNyBLB','12PAbNDV','362rUOVTt','15969unKRFB'];a184_0x427f=function(){return _0x5c9916;};return a184_0x427f();}
@@ -1 +1 @@
1
- (function(_0x8905a3,_0x35cad6){const _0xef6b22=a184_0x5b9d,_0x1d6d26=_0x8905a3();while(!![]){try{const _0x9709b0=-parseInt(_0xef6b22(0x16c))/0x1*(parseInt(_0xef6b22(0x170))/0x2)+parseInt(_0xef6b22(0x176))/0x3*(-parseInt(_0xef6b22(0x16f))/0x4)+-parseInt(_0xef6b22(0x173))/0x5+-parseInt(_0xef6b22(0x171))/0x6*(parseInt(_0xef6b22(0x16e))/0x7)+-parseInt(_0xef6b22(0x172))/0x8+-parseInt(_0xef6b22(0x179))/0x9*(parseInt(_0xef6b22(0x178))/0xa)+parseInt(_0xef6b22(0x17a))/0xb;if(_0x9709b0===_0x35cad6)break;else _0x1d6d26['push'](_0x1d6d26['shift']());}catch(_0x201127){_0x1d6d26['push'](_0x1d6d26['shift']());}}}(a184_0x3c6b,0x59eeb));import{getTemplateBaseUrl}from'../utils/config.js';export async function fetchCdnConfig(){const _0x46707f=a184_0x5b9d,_0x204d33=getTemplateBaseUrl(),_0x4f2f11=[_0x204d33+_0x46707f(0x175),_0x204d33+_0x46707f(0x177)];for(const _0x67b2e6 of _0x4f2f11){try{const _0x28aba5=await fetch(_0x67b2e6,{'headers':{'Accept':_0x46707f(0x174)}});if(!_0x28aba5['ok'])continue;const _0x489947=await _0x28aba5[_0x46707f(0x16d)]();if(!_0x489947['cli']?.['stableVersion']||!_0x489947['sdk']?.['node']?.[_0x46707f(0x17b)])continue;return _0x489947;}catch{}}return null;}function a184_0x5b9d(_0x7f4d6,_0x15eb18){_0x7f4d6=_0x7f4d6-0x16c;const _0x3c6b83=a184_0x3c6b();let _0x5b9d34=_0x3c6b83[_0x7f4d6];return _0x5b9d34;}let cachedConfig=null,cacheTime=0x0;function a184_0x3c6b(){const _0x1206cb=['28054994kAykyH','stableVersion','1lbOsUR','json','34307LexutJ','5036bXYxZQ','750782rRzqxn','402YhkAVm','4158408RBtGwT','2413640aBWQUF','application/json','/config.json','633JetlLW','/config/index.json','191050gRzpQN','99AZvzsP'];a184_0x3c6b=function(){return _0x1206cb;};return a184_0x3c6b();}const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8;let hasCachedConfig=![];export async function getCdnConfig(){const _0x1d5d29=Date['now']();if(hasCachedConfig){const _0x4539ef=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x1d5d29-cacheTime<_0x4539ef)return cachedConfig;}const _0x58593f=await fetchCdnConfig();return cachedConfig=_0x58593f,cacheTime=_0x1d5d29,hasCachedConfig=!![],_0x58593f;}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
1
+ (function(_0xd30653,_0x21b606){const _0x42d565=a185_0x3569,_0x2bbb99=_0xd30653();while(!![]){try{const _0xa7f8ab=parseInt(_0x42d565(0x154))/0x1*(-parseInt(_0x42d565(0x14f))/0x2)+-parseInt(_0x42d565(0x156))/0x3*(parseInt(_0x42d565(0x150))/0x4)+parseInt(_0x42d565(0x15a))/0x5*(parseInt(_0x42d565(0x159))/0x6)+parseInt(_0x42d565(0x155))/0x7*(parseInt(_0x42d565(0x152))/0x8)+parseInt(_0x42d565(0x149))/0x9+parseInt(_0x42d565(0x147))/0xa*(parseInt(_0x42d565(0x153))/0xb)+-parseInt(_0x42d565(0x14b))/0xc;if(_0xa7f8ab===_0x21b606)break;else _0x2bbb99['push'](_0x2bbb99['shift']());}catch(_0x11bc12){_0x2bbb99['push'](_0x2bbb99['shift']());}}}(a185_0x4424,0xdba8a));import{getTemplateBaseUrl}from'../utils/config.js';export async function fetchCdnConfig(){const _0x51ebec=a185_0x3569,_0x3ae26b=getTemplateBaseUrl(),_0x4b27b5=[_0x3ae26b+'/config.json',_0x3ae26b+_0x51ebec(0x14e)];for(const _0x210084 of _0x4b27b5){try{const _0x3dafcc=await fetch(_0x210084,{'headers':{'Accept':_0x51ebec(0x157)}});if(!_0x3dafcc['ok'])continue;const _0x28998b=await _0x3dafcc[_0x51ebec(0x151)]();if(!_0x28998b[_0x51ebec(0x14d)]?.['stableVersion']||!_0x28998b[_0x51ebec(0x14a)]?.[_0x51ebec(0x148)]?.[_0x51ebec(0x158)])continue;return _0x28998b;}catch{}}return null;}let cachedConfig=null,cacheTime=0x0;function a185_0x4424(){const _0x1addfa=['4344573mAuBje','application/json','stableVersion','18isRhPS','1180570GyDWgL','10opCiuL','node','13846410MRDJYs','sdk','25538868bwTFSd','now','cli','/config/index.json','658202mZmuPF','4MhcbHB','json','1758784rLgPLk','13632663ntxbHd','1VahpaX','42tnTkGI'];a185_0x4424=function(){return _0x1addfa;};return a185_0x4424();}const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8;let hasCachedConfig=![];function a185_0x3569(_0x5d704b,_0x4601ec){_0x5d704b=_0x5d704b-0x147;const _0x44249c=a185_0x4424();let _0x356953=_0x44249c[_0x5d704b];return _0x356953;}export async function getCdnConfig(){const _0xeb3429=a185_0x3569,_0x25a2b6=Date[_0xeb3429(0x14c)]();if(hasCachedConfig){const _0xdddbb4=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x25a2b6-cacheTime<_0xdddbb4)return cachedConfig;}const _0x257d21=await fetchCdnConfig();return cachedConfig=_0x257d21,cacheTime=_0x25a2b6,hasCachedConfig=!![],_0x257d21;}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
@@ -1 +1 @@
1
- const a185_0x252c06=a185_0x16b4;(function(_0x4f8b43,_0x1e8c13){const _0xc00224=a185_0x16b4,_0x3ccc3c=_0x4f8b43();while(!![]){try{const _0x4b9d2a=-parseInt(_0xc00224(0x1ea))/0x1+parseInt(_0xc00224(0x1db))/0x2*(parseInt(_0xc00224(0x1f1))/0x3)+-parseInt(_0xc00224(0x1f6))/0x4*(-parseInt(_0xc00224(0x1da))/0x5)+parseInt(_0xc00224(0x1d2))/0x6*(-parseInt(_0xc00224(0x1d5))/0x7)+parseInt(_0xc00224(0x1dd))/0x8*(-parseInt(_0xc00224(0x1d4))/0x9)+parseInt(_0xc00224(0x1f5))/0xa+parseInt(_0xc00224(0x1f3))/0xb*(parseInt(_0xc00224(0x1e9))/0xc);if(_0x4b9d2a===_0x1e8c13)break;else _0x3ccc3c['push'](_0x3ccc3c['shift']());}catch(_0x289c7d){_0x3ccc3c['push'](_0x3ccc3c['shift']());}}}(a185_0x5288,0xc168c));import a185_0x485bf4 from'node:fs';import a185_0x50ee62 from'node:path';function a185_0x5288(){const _0x4e72a5=['join','coerce','6MsGaYB','\x20\x20\x20Upgrade\x20command:\x20','3789iHrXRU','8778476uRPnLz','utf8','↪\x20SDK\x20update\x20available','\x20\x20\x20Current\x20version:\x20','\x1b[33m','2613890gReVwF','2jEDKkY','sdk','12080OrFuLy','test','dependencies','existsSync','some','all','version','log','\x1b[0m','stableVersion','package.json','utf-8','12obRYYK','1158419eTKXcb','node_modules','\x1b[1m','parse','packageName','needsUpgrade','1.2.0','2095524SoThbt','@lovrabet/sdk','22079761IJluHT','npm\x20install\x20','6118640IQKziK','4kjJSHO','node','devDependencies','readFileSync'];a185_0x5288=function(){return _0x4e72a5;};return a185_0x5288();}import a185_0x33087d from'semver';import{getCdnConfig}from'../utils/cdn-config.js';const FALLBACK_MIN_SDK_VERSION=a185_0x252c06(0x1f0);function isNonNumericVersion(_0x432735){const _0x14b133=a185_0x252c06,_0x2549da=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x2549da[_0x14b133(0x1e1)](_0x5d5ec5=>_0x5d5ec5[_0x14b133(0x1de)](_0x432735));}function getInstalledVersion(_0x48c7f2,_0x383d0c){const _0x463eb8=a185_0x252c06;try{const _0x18fa24=a185_0x50ee62[_0x463eb8(0x1d0)](_0x48c7f2,_0x463eb8(0x1eb),_0x383d0c,'package.json');if(a185_0x485bf4[_0x463eb8(0x1e0)](_0x18fa24)){const _0x1a6da1=JSON[_0x463eb8(0x1ed)](a185_0x485bf4[_0x463eb8(0x1cf)](_0x18fa24,_0x463eb8(0x1e8)));return _0x1a6da1[_0x463eb8(0x1e3)]||null;}}catch{}return null;}async function getSdkStableVersion(){const _0x338e07=a185_0x252c06;try{const _0x11a4a2=await getCdnConfig();return _0x11a4a2?.[_0x338e07(0x1dc)]?.['node']?.['stableVersion']||null;}catch{return null;}}async function getSdkPackageName(){const _0xaf2418=a185_0x252c06;try{const _0x361d79=await getCdnConfig();return _0x361d79?.[_0xaf2418(0x1dc)]?.[_0xaf2418(0x1cd)]?.[_0xaf2418(0x1ee)]||'@lovrabet/sdk';}catch{return _0xaf2418(0x1f2);}}export async function checkSdkVersion(_0x309027){const _0x37d656=a185_0x252c06,_0x48f3a9=a185_0x50ee62[_0x37d656(0x1d0)](_0x309027,_0x37d656(0x1e7)),[_0x34cb64,_0x55218b]=await Promise[_0x37d656(0x1e2)]([getSdkStableVersion(),getSdkPackageName()]),_0x38c37f=_0x34cb64||FALLBACK_MIN_SDK_VERSION;if(!a185_0x485bf4[_0x37d656(0x1e0)](_0x48f3a9))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x38c37f,'packageName':_0x55218b,'stableVersion':_0x34cb64};try{const _0x223a3c=JSON[_0x37d656(0x1ed)](a185_0x485bf4[_0x37d656(0x1cf)](_0x48f3a9,_0x37d656(0x1d6))),_0x447912=_0x223a3c['dependencies']||{},_0xab85b1=_0x223a3c[_0x37d656(0x1ce)]||{},_0x4a163e=_0x447912[_0x55218b]||_0xab85b1[_0x55218b];if(!_0x4a163e)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x38c37f,'packageName':_0x55218b,'stableVersion':_0x34cb64};let _0x10c35a=getInstalledVersion(_0x309027,_0x55218b);!_0x10c35a&&(_0x10c35a=_0x4a163e);if(isNonNumericVersion(_0x4a163e))return{'installed':!![],'version':_0x10c35a,'needsUpgrade':![],'minVersion':_0x38c37f,'packageName':_0x55218b,'stableVersion':_0x34cb64};const _0x5eaec8=a185_0x33087d[_0x37d656(0x1d1)](_0x10c35a),_0x9430b7=a185_0x33087d[_0x37d656(0x1d1)](_0x38c37f),_0x553b87=_0x5eaec8&&_0x9430b7?a185_0x33087d['lt'](_0x5eaec8,_0x9430b7):![];return{'installed':!![],'version':_0x10c35a,'needsUpgrade':_0x553b87,'minVersion':_0x38c37f,'packageName':_0x55218b,'stableVersion':_0x34cb64};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x38c37f,'packageName':_0x55218b,'stableVersion':_0x34cb64};}}function a185_0x16b4(_0x4be648,_0x962d13){_0x4be648=_0x4be648-0x1cd;const _0x528874=a185_0x5288();let _0x16b43c=_0x528874[_0x4be648];return _0x16b43c;}export function checkSdkVersionSync(_0x48fb71){const _0x528575=a185_0x252c06,_0x56a6bc=a185_0x50ee62[_0x528575(0x1d0)](_0x48fb71,'package.json'),_0x103cd1=_0x528575(0x1f2);if(!a185_0x485bf4[_0x528575(0x1e0)](_0x56a6bc))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x103cd1,'stableVersion':null};try{const _0x148dd5=JSON[_0x528575(0x1ed)](a185_0x485bf4['readFileSync'](_0x56a6bc,_0x528575(0x1d6))),_0x5a4d70=_0x148dd5[_0x528575(0x1df)]||{},_0x4de6c5=_0x148dd5['devDependencies']||{},_0xdafcc4=_0x5a4d70[_0x103cd1]||_0x4de6c5[_0x103cd1];if(!_0xdafcc4)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x103cd1,'stableVersion':null};let _0x59fbf4=getInstalledVersion(_0x48fb71,_0x103cd1);!_0x59fbf4&&(_0x59fbf4=_0xdafcc4);if(isNonNumericVersion(_0xdafcc4))return{'installed':!![],'version':_0x59fbf4,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x103cd1,'stableVersion':null};const _0x49c0ec=a185_0x33087d[_0x528575(0x1d1)](_0x59fbf4),_0x57482b=_0x49c0ec?a185_0x33087d['lt'](_0x49c0ec,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x59fbf4,'needsUpgrade':_0x57482b,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x103cd1,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x103cd1,'stableVersion':null};}}export function printSdkUpgradeWarning(_0x16385b){const _0x3fbde1=a185_0x252c06;if(!_0x16385b[_0x3fbde1(0x1ef)])return;const _0x42202b=_0x3fbde1(0x1d9),_0x88dfa0=_0x3fbde1(0x1e5),_0x4d2709=_0x3fbde1(0x1ec),_0x4e8445=_0x16385b[_0x3fbde1(0x1ee)]||_0x3fbde1(0x1f2),_0x47c6ef=_0x16385b[_0x3fbde1(0x1e6)]||_0x16385b['minVersion'],_0x32edb7=_0x3fbde1(0x1f4)+_0x4e8445+'@'+(_0x47c6ef||'latest');console['log'](),console['log'](''+_0x42202b+_0x4d2709+_0x3fbde1(0x1d7)+_0x88dfa0),console[_0x3fbde1(0x1e4)](_0x42202b+_0x3fbde1(0x1d8)+_0x4e8445+'@'+_0x16385b[_0x3fbde1(0x1e3)]+_0x88dfa0),console['log'](_0x42202b+'\x20\x20\x20Stable\x20version:\x20'+_0x47c6ef+_0x88dfa0),console['log'](_0x42202b+_0x3fbde1(0x1d3)+_0x32edb7+_0x88dfa0),console['log']();}
1
+ const a186_0x5779a5=a186_0x28de;(function(_0x332ace,_0x59fac4){const _0x13daed=a186_0x28de,_0x562c64=_0x332ace();while(!![]){try{const _0x5adb9e=parseInt(_0x13daed(0x8f))/0x1+-parseInt(_0x13daed(0x8b))/0x2*(parseInt(_0x13daed(0x89))/0x3)+parseInt(_0x13daed(0x7a))/0x4*(-parseInt(_0x13daed(0x95))/0x5)+-parseInt(_0x13daed(0x85))/0x6+-parseInt(_0x13daed(0x90))/0x7+-parseInt(_0x13daed(0x87))/0x8+parseInt(_0x13daed(0x7f))/0x9*(parseInt(_0x13daed(0x7e))/0xa);if(_0x5adb9e===_0x59fac4)break;else _0x562c64['push'](_0x562c64['shift']());}catch(_0xadc0fb){_0x562c64['push'](_0x562c64['shift']());}}}(a186_0x5d55,0xa8f5b));import a186_0x532da9 from'node:fs';import a186_0x574f63 from'node:path';import a186_0x17f672 from'semver';import{getCdnConfig}from'../utils/cdn-config.js';const FALLBACK_MIN_SDK_VERSION=a186_0x5779a5(0x82);function isNonNumericVersion(_0x440e3b){const _0x57895d=a186_0x5779a5,_0x3f3c8a=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x3f3c8a[_0x57895d(0x7c)](_0x2235b3=>_0x2235b3[_0x57895d(0x91)](_0x440e3b));}function getInstalledVersion(_0x147d5e,_0x57db0d){const _0x48f9b6=a186_0x5779a5;try{const _0x54e7eb=a186_0x574f63[_0x48f9b6(0x78)](_0x147d5e,_0x48f9b6(0x94),_0x57db0d,'package.json');if(a186_0x532da9[_0x48f9b6(0x84)](_0x54e7eb)){const _0x28b73a=JSON[_0x48f9b6(0x7b)](a186_0x532da9[_0x48f9b6(0x81)](_0x54e7eb,'utf-8'));return _0x28b73a['version']||null;}}catch{}return null;}function a186_0x5d55(){const _0x2f5be9=['needsUpgrade','join','\x20\x20\x20Upgrade\x20command:\x20','4snzejm','parse','some','dependencies','460atQaHX','516663YnhKia','\x1b[0m','readFileSync','1.2.0','stableVersion','existsSync','203502kCqjru','@lovrabet/sdk','11055824NsOAup','all','3oNbnOy','node','2474414QkcenI','utf8','\x1b[1m','npm\x20install\x20','1258068ZjnNUS','958594hndENM','test','minVersion','sdk','node_modules','2083435PyMeMD','coerce','packageName','\x1b[33m','latest','package.json','log'];a186_0x5d55=function(){return _0x2f5be9;};return a186_0x5d55();}async function getSdkStableVersion(){const _0x24cbba=a186_0x5779a5;try{const _0x142af8=await getCdnConfig();return _0x142af8?.[_0x24cbba(0x93)]?.[_0x24cbba(0x8a)]?.[_0x24cbba(0x83)]||null;}catch{return null;}}async function getSdkPackageName(){const _0x4f2415=a186_0x5779a5;try{const _0x246ff8=await getCdnConfig();return _0x246ff8?.['sdk']?.[_0x4f2415(0x8a)]?.['packageName']||_0x4f2415(0x86);}catch{return _0x4f2415(0x86);}}export async function checkSdkVersion(_0x390d8b){const _0x370fca=a186_0x5779a5,_0x3b2a33=a186_0x574f63[_0x370fca(0x78)](_0x390d8b,_0x370fca(0x9a)),[_0x5a9392,_0x379b13]=await Promise[_0x370fca(0x88)]([getSdkStableVersion(),getSdkPackageName()]),_0x35d301=_0x5a9392||FALLBACK_MIN_SDK_VERSION;if(!a186_0x532da9[_0x370fca(0x84)](_0x3b2a33))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x35d301,'packageName':_0x379b13,'stableVersion':_0x5a9392};try{const _0x2eb7cf=JSON[_0x370fca(0x7b)](a186_0x532da9[_0x370fca(0x81)](_0x3b2a33,_0x370fca(0x8c))),_0x48d1c4=_0x2eb7cf[_0x370fca(0x7d)]||{},_0x1285be=_0x2eb7cf['devDependencies']||{},_0x542f49=_0x48d1c4[_0x379b13]||_0x1285be[_0x379b13];if(!_0x542f49)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x35d301,'packageName':_0x379b13,'stableVersion':_0x5a9392};let _0x20c583=getInstalledVersion(_0x390d8b,_0x379b13);!_0x20c583&&(_0x20c583=_0x542f49);if(isNonNumericVersion(_0x542f49))return{'installed':!![],'version':_0x20c583,'needsUpgrade':![],'minVersion':_0x35d301,'packageName':_0x379b13,'stableVersion':_0x5a9392};const _0x1a02d0=a186_0x17f672['coerce'](_0x20c583),_0x310f05=a186_0x17f672[_0x370fca(0x96)](_0x35d301),_0x46d792=_0x1a02d0&&_0x310f05?a186_0x17f672['lt'](_0x1a02d0,_0x310f05):![];return{'installed':!![],'version':_0x20c583,'needsUpgrade':_0x46d792,'minVersion':_0x35d301,'packageName':_0x379b13,'stableVersion':_0x5a9392};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x35d301,'packageName':_0x379b13,'stableVersion':_0x5a9392};}}export function checkSdkVersionSync(_0x3b5a8c){const _0x1f8351=a186_0x5779a5,_0x4d4e5c=a186_0x574f63[_0x1f8351(0x78)](_0x3b5a8c,_0x1f8351(0x9a)),_0x374460=_0x1f8351(0x86);if(!a186_0x532da9[_0x1f8351(0x84)](_0x4d4e5c))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x374460,'stableVersion':null};try{const _0x22b949=JSON[_0x1f8351(0x7b)](a186_0x532da9['readFileSync'](_0x4d4e5c,_0x1f8351(0x8c))),_0x7674a4=_0x22b949['dependencies']||{},_0xd7a8f4=_0x22b949['devDependencies']||{},_0x13ce7c=_0x7674a4[_0x374460]||_0xd7a8f4[_0x374460];if(!_0x13ce7c)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x374460,'stableVersion':null};let _0x48dbe0=getInstalledVersion(_0x3b5a8c,_0x374460);!_0x48dbe0&&(_0x48dbe0=_0x13ce7c);if(isNonNumericVersion(_0x13ce7c))return{'installed':!![],'version':_0x48dbe0,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x374460,'stableVersion':null};const _0x27b703=a186_0x17f672[_0x1f8351(0x96)](_0x48dbe0),_0x37ec39=_0x27b703?a186_0x17f672['lt'](_0x27b703,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x48dbe0,'needsUpgrade':_0x37ec39,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x374460,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x374460,'stableVersion':null};}}function a186_0x28de(_0x129a36,_0x7e9d2){_0x129a36=_0x129a36-0x77;const _0x5d5501=a186_0x5d55();let _0x28def5=_0x5d5501[_0x129a36];return _0x28def5;}export function printSdkUpgradeWarning(_0x487c72){const _0x5a9491=a186_0x5779a5;if(!_0x487c72[_0x5a9491(0x77)])return;const _0x104d02=_0x5a9491(0x98),_0x539865=_0x5a9491(0x80),_0x15f595=_0x5a9491(0x8d),_0x384edd=_0x487c72[_0x5a9491(0x97)]||_0x5a9491(0x86),_0x4893bc=_0x487c72[_0x5a9491(0x83)]||_0x487c72[_0x5a9491(0x92)],_0x20cb72=_0x5a9491(0x8e)+_0x384edd+'@'+(_0x4893bc||_0x5a9491(0x99));console['log'](),console['log'](''+_0x104d02+_0x15f595+'↪\x20SDK\x20update\x20available'+_0x539865),console['log'](_0x104d02+'\x20\x20\x20Current\x20version:\x20'+_0x384edd+'@'+_0x487c72['version']+_0x539865),console[_0x5a9491(0x9b)](_0x104d02+'\x20\x20\x20Stable\x20version:\x20'+_0x4893bc+_0x539865),console[_0x5a9491(0x9b)](_0x104d02+_0x5a9491(0x79)+_0x20cb72+_0x539865),console[_0x5a9491(0x9b)]();}
@@ -1 +1 @@
1
- function a186_0x24df(_0xaf7829,_0x185c79){_0xaf7829=_0xaf7829-0x1ab;const _0x381acd=a186_0x381a();let _0x24dfc5=_0x381acd[_0xaf7829];return _0x24dfc5;}(function(_0x267b25,_0x4c26e9){const _0x43f12e=a186_0x24df,_0x21c561=_0x267b25();while(!![]){try{const _0x2bb5d8=-parseInt(_0x43f12e(0x1b1))/0x1*(-parseInt(_0x43f12e(0x1bb))/0x2)+parseInt(_0x43f12e(0x1d2))/0x3*(parseInt(_0x43f12e(0x1ad))/0x4)+parseInt(_0x43f12e(0x1ca))/0x5+parseInt(_0x43f12e(0x1bd))/0x6*(parseInt(_0x43f12e(0x1b9))/0x7)+parseInt(_0x43f12e(0x1ba))/0x8+-parseInt(_0x43f12e(0x1d5))/0x9*(-parseInt(_0x43f12e(0x1bf))/0xa)+parseInt(_0x43f12e(0x1b8))/0xb*(-parseInt(_0x43f12e(0x1c7))/0xc);if(_0x2bb5d8===_0x4c26e9)break;else _0x21c561['push'](_0x21c561['shift']());}catch(_0x1f4c83){_0x21c561['push'](_0x21c561['shift']());}}}(a186_0x381a,0x6adeb));import{readFileSync}from'node:fs';function a186_0x381a(){const _0x4e38ce=['coerce','\x20\x20\x20Recommended\x20stable:\x20','4380312WSvgSU','utf-8','1.0.0','3274970MrYaSc','\x1b[31m','upgradeMessage','minimumVersionMessage','version','\x20\x20\x20Upgrade\x20command:\x20','filter','../..','187521GpjZPX','\x20\x20\x20Current\x20CLI\x20version:\x20','Current\x20CLI\x20version\x20is\x20below\x20the\x20minimum\x20supported\x20version.','18EaSnJd','package.json','\x1b[1m','40BSIyUS','stableVersion','Upgrade\x20command:\x20','Minimum\x20required:\x20','77541njWsPR','↪\x20Critical\x20CLI\x20upgrade\x20required','belowMinimum','npm\x20install\x20-g\x20','validation','currentVersion','\x20\x20\x20Minimum\x20required:\x20','55utdvfE','63TEpHWU','2791928mtxAjr','2VnXJxl','\x1b[0m','345342jVBEKy','\x20\x20\x20Stable\x20version:\x20','191300shHqHp','parse','log','minimumVersion','Current\x20version:\x20','\x20\x20\x20'];a186_0x381a=function(){return _0x4e38ce;};return a186_0x381a();}import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';import a186_0x4a5923 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(_0x3c2d80){const _0x10021c=a186_0x24df,_0x612e94=_0x3c2d80['stableVersion']||'latest';return _0x10021c(0x1b4)+NPM_PACKAGE_NAME+'@'+_0x612e94;}function getCurrentCliVersion(){const _0x4c299d=a186_0x24df;try{const _0x3db054=fileURLToPath(import.meta.url),_0x79370d=resolve(dirname(_0x3db054),_0x4c299d(0x1d1)),_0x3ef136=resolve(_0x79370d,_0x4c299d(0x1ab)),_0x232637=JSON[_0x4c299d(0x1c0)](readFileSync(_0x3ef136,_0x4c299d(0x1c8)));return _0x232637[_0x4c299d(0x1ce)]||_0x4c299d(0x1c9);}catch{return'1.0.0';}}export async function checkCliVersion(){const _0xf20bf6=a186_0x24df,_0x5b6966=getCurrentCliVersion(),_0x2405e9=await getCliVersionPolicy(),_0x2c5f3=_0x2405e9?.[_0xf20bf6(0x1ae)]||null,_0x40b63e=_0x2405e9?.[_0xf20bf6(0x1c2)]||null;let _0x4d9d98=![],_0x76a9e0=![];const _0x19f9b9=a186_0x4a5923[_0xf20bf6(0x1c5)](_0x5b6966);if(_0x19f9b9&&_0x2c5f3)try{const _0x5a52fa=a186_0x4a5923[_0xf20bf6(0x1c5)](_0x2c5f3);if(_0x5a52fa)_0x4d9d98=a186_0x4a5923['lt'](_0x19f9b9,_0x5a52fa);}catch{}if(_0x19f9b9&&_0x40b63e)try{const _0x552ab6=a186_0x4a5923[_0xf20bf6(0x1c5)](_0x40b63e);if(_0x552ab6)_0x76a9e0=a186_0x4a5923['lt'](_0x19f9b9,_0x552ab6);}catch{}return _0x76a9e0&&(_0x4d9d98=!![]),{'currentVersion':_0x5b6966,'stableVersion':_0x2c5f3,'minimumVersion':_0x40b63e,'needsUpgrade':_0x4d9d98,'belowMinimum':_0x76a9e0,'isPreRelease':![],'upgradeMessage':_0x2405e9?.['upgradeMessage'],'minimumVersionMessage':_0x2405e9?.['minimumVersionMessage']};}export function printCliUpgradeWarning(_0x91fc37){const _0x2a6fa3=a186_0x24df;if(!_0x91fc37['needsUpgrade']&&!_0x91fc37[_0x2a6fa3(0x1b3)])return;const _0x4d6345=_0x2a6fa3(0x1cb),_0x34ef20='\x1b[33m',_0x4ce914=_0x2a6fa3(0x1bc),_0x4b9a53=_0x2a6fa3(0x1ac),_0x1e41fb=getCliUpgradeCommand(_0x91fc37);console[_0x2a6fa3(0x1c1)](),_0x91fc37[_0x2a6fa3(0x1b3)]?(console[_0x2a6fa3(0x1c1)](''+_0x4d6345+_0x4b9a53+_0x2a6fa3(0x1b2)+_0x4ce914),console[_0x2a6fa3(0x1c1)](_0x4d6345+_0x2a6fa3(0x1d3)+_0x91fc37['currentVersion']+_0x4ce914),_0x91fc37[_0x2a6fa3(0x1c2)]&&console[_0x2a6fa3(0x1c1)](_0x4d6345+_0x2a6fa3(0x1b7)+_0x91fc37[_0x2a6fa3(0x1c2)]+_0x4ce914),_0x91fc37['stableVersion']&&_0x91fc37[_0x2a6fa3(0x1ae)]!==_0x91fc37[_0x2a6fa3(0x1c2)]&&console['log'](_0x4d6345+_0x2a6fa3(0x1c6)+_0x91fc37[_0x2a6fa3(0x1ae)]+_0x4ce914),_0x91fc37[_0x2a6fa3(0x1cd)]&&console[_0x2a6fa3(0x1c1)](_0x4d6345+_0x2a6fa3(0x1c4)+_0x91fc37[_0x2a6fa3(0x1cd)]+_0x4ce914),console[_0x2a6fa3(0x1c1)](_0x4d6345+_0x2a6fa3(0x1cf)+_0x1e41fb+_0x4ce914)):(console[_0x2a6fa3(0x1c1)](''+_0x34ef20+_0x4b9a53+'↪\x20New\x20version\x20available'+_0x4ce914),console[_0x2a6fa3(0x1c1)](_0x34ef20+'\x20\x20\x20Current\x20CLI\x20version:\x20'+_0x91fc37[_0x2a6fa3(0x1b6)]+_0x4ce914),console['log'](_0x34ef20+_0x2a6fa3(0x1be)+_0x91fc37[_0x2a6fa3(0x1ae)]+_0x4ce914),_0x91fc37[_0x2a6fa3(0x1cc)]&&console[_0x2a6fa3(0x1c1)](_0x34ef20+_0x2a6fa3(0x1c4)+_0x91fc37[_0x2a6fa3(0x1cc)]+_0x4ce914),console['log'](_0x34ef20+_0x2a6fa3(0x1cf)+_0x1e41fb+_0x4ce914)),console[_0x2a6fa3(0x1c1)]();}export function assertCliVersionSupported(_0x3f635f){const _0x39a919=a186_0x24df;if(!_0x3f635f[_0x39a919(0x1b3)])return;const _0x10da9a=[_0x3f635f[_0x39a919(0x1cd)],_0x39a919(0x1c3)+_0x3f635f[_0x39a919(0x1b6)],_0x3f635f[_0x39a919(0x1c2)]?_0x39a919(0x1b0)+_0x3f635f[_0x39a919(0x1c2)]:null,_0x39a919(0x1af)+getCliUpgradeCommand(_0x3f635f)][_0x39a919(0x1d0)](Boolean)['join']('\x0a');throw CliErrors[_0x39a919(0x1b5)](_0x39a919(0x1d4),_0x10da9a);}
1
+ (function(_0x104f82,_0x52a1a2){const _0xf26fb2=a187_0x1529,_0x12bd70=_0x104f82();while(!![]){try{const _0x3d462f=-parseInt(_0xf26fb2(0x167))/0x1+-parseInt(_0xf26fb2(0x14a))/0x2+-parseInt(_0xf26fb2(0x14d))/0x3*(-parseInt(_0xf26fb2(0x144))/0x4)+parseInt(_0xf26fb2(0x152))/0x5*(parseInt(_0xf26fb2(0x148))/0x6)+parseInt(_0xf26fb2(0x161))/0x7*(-parseInt(_0xf26fb2(0x160))/0x8)+parseInt(_0xf26fb2(0x154))/0x9*(-parseInt(_0xf26fb2(0x158))/0xa)+parseInt(_0xf26fb2(0x15b))/0xb;if(_0x3d462f===_0x52a1a2)break;else _0x12bd70['push'](_0x12bd70['shift']());}catch(_0xbed7e7){_0x12bd70['push'](_0x12bd70['shift']());}}}(a187_0x3c77,0x45945));function a187_0x1529(_0xa9806a,_0xaca401){_0xa9806a=_0xa9806a-0x141;const _0x3c7762=a187_0x3c77();let _0x1529c6=_0x3c7762[_0xa9806a];return _0x1529c6;}import{readFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';import a187_0x15f157 from'semver';import{getCliVersionPolicy}from'../utils/cli-version-policy.js';function a187_0x3c77(){const _0x502f3b=['\x20\x20\x20Stable\x20version:\x20','minimumVersionMessage','129981BhzIbT','↪\x20Critical\x20CLI\x20upgrade\x20required','\x20\x20\x20Upgrade\x20command:\x20','\x20\x20\x20','58924DoRLrj','belowMinimum','stableVersion','↪\x20New\x20version\x20available','8004OdOosv','validation','501104rFmVLD','../..','upgradeMessage','21yHSxxE','\x20\x20\x20Minimum\x20required:\x20','coerce','1.0.0','log','470HooAmq','Current\x20version:\x20','18ueUhsf','utf-8','\x20\x20\x20Current\x20CLI\x20version:\x20','Minimum\x20required:\x20','1330770FFkuqZ','needsUpgrade','\x1b[0m','9467678rfDxCE','currentVersion','version','\x20\x20\x20Recommended\x20stable:\x20','minimumVersion','72rUdZoU','122521dhFqIg','filter','\x1b[33m','npm\x20install\x20-g\x20'];a187_0x3c77=function(){return _0x502f3b;};return a187_0x3c77();}import{NPM_PACKAGE_NAME}from'../constant/cli.js';import{CliErrors}from'../errors.js';export function getCliUpgradeCommand(_0x5cfdd8){const _0x554ff0=a187_0x1529,_0x23b2c1=_0x5cfdd8[_0x554ff0(0x146)]||'latest';return _0x554ff0(0x164)+NPM_PACKAGE_NAME+'@'+_0x23b2c1;}function getCurrentCliVersion(){const _0x3c4711=a187_0x1529;try{const _0x310c83=fileURLToPath(import.meta.url),_0x2016cd=resolve(dirname(_0x310c83),_0x3c4711(0x14b)),_0x5b9a5a=resolve(_0x2016cd,'package.json'),_0x50e613=JSON['parse'](readFileSync(_0x5b9a5a,_0x3c4711(0x155)));return _0x50e613[_0x3c4711(0x15d)]||_0x3c4711(0x150);}catch{return _0x3c4711(0x150);}}export async function checkCliVersion(){const _0x4ffa6f=a187_0x1529,_0x552445=getCurrentCliVersion(),_0xc8bf4f=await getCliVersionPolicy(),_0xdc0149=_0xc8bf4f?.[_0x4ffa6f(0x146)]||null,_0x3f614c=_0xc8bf4f?.['minimumVersion']||null;let _0xa99120=![],_0x40c139=![];const _0x3a3c09=a187_0x15f157[_0x4ffa6f(0x14f)](_0x552445);if(_0x3a3c09&&_0xdc0149)try{const _0x4fedc2=a187_0x15f157[_0x4ffa6f(0x14f)](_0xdc0149);if(_0x4fedc2)_0xa99120=a187_0x15f157['lt'](_0x3a3c09,_0x4fedc2);}catch{}if(_0x3a3c09&&_0x3f614c)try{const _0x17e249=a187_0x15f157['coerce'](_0x3f614c);if(_0x17e249)_0x40c139=a187_0x15f157['lt'](_0x3a3c09,_0x17e249);}catch{}return _0x40c139&&(_0xa99120=!![]),{'currentVersion':_0x552445,'stableVersion':_0xdc0149,'minimumVersion':_0x3f614c,'needsUpgrade':_0xa99120,'belowMinimum':_0x40c139,'isPreRelease':![],'upgradeMessage':_0xc8bf4f?.[_0x4ffa6f(0x14c)],'minimumVersionMessage':_0xc8bf4f?.['minimumVersionMessage']};}export function printCliUpgradeWarning(_0x449858){const _0x4e28c0=a187_0x1529;if(!_0x449858[_0x4e28c0(0x159)]&&!_0x449858[_0x4e28c0(0x145)])return;const _0x5abb52='\x1b[31m',_0x3042a5=_0x4e28c0(0x163),_0x1de3d2=_0x4e28c0(0x15a),_0x43d188='\x1b[1m',_0x414358=getCliUpgradeCommand(_0x449858);console['log'](),_0x449858[_0x4e28c0(0x145)]?(console[_0x4e28c0(0x151)](''+_0x5abb52+_0x43d188+_0x4e28c0(0x141)+_0x1de3d2),console[_0x4e28c0(0x151)](_0x5abb52+_0x4e28c0(0x156)+_0x449858[_0x4e28c0(0x15c)]+_0x1de3d2),_0x449858[_0x4e28c0(0x15f)]&&console[_0x4e28c0(0x151)](_0x5abb52+_0x4e28c0(0x14e)+_0x449858[_0x4e28c0(0x15f)]+_0x1de3d2),_0x449858[_0x4e28c0(0x146)]&&_0x449858[_0x4e28c0(0x146)]!==_0x449858[_0x4e28c0(0x15f)]&&console[_0x4e28c0(0x151)](_0x5abb52+_0x4e28c0(0x15e)+_0x449858[_0x4e28c0(0x146)]+_0x1de3d2),_0x449858[_0x4e28c0(0x166)]&&console[_0x4e28c0(0x151)](_0x5abb52+_0x4e28c0(0x143)+_0x449858[_0x4e28c0(0x166)]+_0x1de3d2),console[_0x4e28c0(0x151)](_0x5abb52+_0x4e28c0(0x142)+_0x414358+_0x1de3d2)):(console[_0x4e28c0(0x151)](''+_0x3042a5+_0x43d188+_0x4e28c0(0x147)+_0x1de3d2),console[_0x4e28c0(0x151)](_0x3042a5+_0x4e28c0(0x156)+_0x449858[_0x4e28c0(0x15c)]+_0x1de3d2),console[_0x4e28c0(0x151)](_0x3042a5+_0x4e28c0(0x165)+_0x449858['stableVersion']+_0x1de3d2),_0x449858['upgradeMessage']&&console[_0x4e28c0(0x151)](_0x3042a5+_0x4e28c0(0x143)+_0x449858['upgradeMessage']+_0x1de3d2),console[_0x4e28c0(0x151)](_0x3042a5+_0x4e28c0(0x142)+_0x414358+_0x1de3d2)),console[_0x4e28c0(0x151)]();}export function assertCliVersionSupported(_0x187784){const _0x3b6d57=a187_0x1529;if(!_0x187784[_0x3b6d57(0x145)])return;const _0x19fb02=[_0x187784[_0x3b6d57(0x166)],_0x3b6d57(0x153)+_0x187784['currentVersion'],_0x187784['minimumVersion']?_0x3b6d57(0x157)+_0x187784[_0x3b6d57(0x15f)]:null,'Upgrade\x20command:\x20'+getCliUpgradeCommand(_0x187784)][_0x3b6d57(0x162)](Boolean)['join']('\x0a');throw CliErrors[_0x3b6d57(0x149)]('Current\x20CLI\x20version\x20is\x20below\x20the\x20minimum\x20supported\x20version.',_0x19fb02);}
@@ -1 +1 @@
1
- (function(_0x5d6f54,_0x3b4566){const _0x253c8c=a187_0x50c1,_0x2f314a=_0x5d6f54();while(!![]){try{const _0x562b2b=parseInt(_0x253c8c(0x1ab))/0x1*(parseInt(_0x253c8c(0x19a))/0x2)+-parseInt(_0x253c8c(0x1a3))/0x3*(-parseInt(_0x253c8c(0x19b))/0x4)+parseInt(_0x253c8c(0x1a9))/0x5+parseInt(_0x253c8c(0x19c))/0x6*(parseInt(_0x253c8c(0x1a2))/0x7)+parseInt(_0x253c8c(0x1ac))/0x8+-parseInt(_0x253c8c(0x1aa))/0x9*(parseInt(_0x253c8c(0x1a0))/0xa)+-parseInt(_0x253c8c(0x1ad))/0xb;if(_0x562b2b===_0x3b4566)break;else _0x2f314a['push'](_0x2f314a['shift']());}catch(_0x2a0e43){_0x2f314a['push'](_0x2f314a['shift']());}}}(a187_0xf920,0x77cee));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(_0x35d35){const _0x10e21c=a187_0x50c1;return typeof _0x35d35===_0x10e21c(0x199)&&_0x35d35[_0x10e21c(0x1a5)]()[_0x10e21c(0x198)]>0x0?_0x35d35[_0x10e21c(0x1a5)]():null;}function normalizeCliVersionPolicy(_0x16af37){const _0x1345c0=a187_0x50c1;if(!_0x16af37||typeof _0x16af37!==_0x1345c0(0x19f))return null;const _0x343870=_0x16af37,_0x208a84=_0x343870['cli']&&typeof _0x343870[_0x1345c0(0x196)]===_0x1345c0(0x19f)?_0x343870[_0x1345c0(0x196)]:_0x343870,_0x13a487=pickString(_0x208a84['stableVersion'])||pickString(_0x208a84['latestVersion'])||pickString(_0x208a84[_0x1345c0(0x1a6)]),_0xda9e97=pickString(_0x208a84[_0x1345c0(0x1a1)])||pickString(_0x208a84[_0x1345c0(0x1a4)]);if(!_0x13a487&&!_0xda9e97)return null;return{'stableVersion':_0x13a487,'minimumVersion':_0xda9e97,'upgradeMessage':pickString(_0x208a84[_0x1345c0(0x19e)])||undefined,'minimumVersionMessage':pickString(_0x208a84[_0x1345c0(0x19d)])||undefined};}export async function fetchCliVersionPolicy(){const _0x95050e=a187_0x50c1,_0x387212=new AbortController(),_0x366102=setTimeout(()=>_0x387212['abort'](),FETCH_TIMEOUT_MS);try{const _0x3f60e2=await fetch(CLI_VERSION_POLICY_URL,{'headers':{'Accept':'application/json'},'signal':_0x387212[_0x95050e(0x1a8)]});if(!_0x3f60e2['ok'])return null;const _0x24caab=await _0x3f60e2[_0x95050e(0x1a7)]();return normalizeCliVersionPolicy(_0x24caab);}catch{return null;}finally{clearTimeout(_0x366102);}}let cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];function a187_0x50c1(_0x36a252,_0x8cd110){_0x36a252=_0x36a252-0x196;const _0xf920b4=a187_0xf920();let _0x50c15c=_0xf920b4[_0x36a252];return _0x50c15c;}export async function getCliVersionPolicy(){const _0xae1c40=a187_0x50c1,_0x44f944=Date[_0xae1c40(0x197)]();if(hasCachedPolicy){const _0x23c153=cachedPolicy?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x44f944-cacheTime<_0x23c153)return cachedPolicy;}const _0x8d68a5=await fetchCliVersionPolicy();return cachedPolicy=_0x8d68a5,cacheTime=_0x44f944,hasCachedPolicy=!![],_0x8d68a5;}function a187_0xf920(){const _0x348c95=['trim','recommendedVersion','json','signal','1679475ASaqWS','27SPudQQ','137KJBWgy','5576056FzRhqU','27174235nMRIFX','cli','now','length','string','14078PXZDFT','8wiTEZg','6QuVHya','minimumVersionMessage','upgradeMessage','object','178270Jekgor','minimumVersion','295967vDCziF','1462611DegCWZ','minVersion'];a187_0xf920=function(){return _0x348c95;};return a187_0xf920();}export function clearCliVersionPolicyCache(){cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];}
1
+ function a188_0x189d(_0x42f300,_0x2934ba){_0x42f300=_0x42f300-0x126;const _0x3b1bac=a188_0x3b1b();let _0x189dc4=_0x3b1bac[_0x42f300];return _0x189dc4;}(function(_0x104f20,_0x55b6c7){const _0x53f316=a188_0x189d,_0x2e6b90=_0x104f20();while(!![]){try{const _0x51a9eb=-parseInt(_0x53f316(0x12d))/0x1*(parseInt(_0x53f316(0x136))/0x2)+-parseInt(_0x53f316(0x126))/0x3+parseInt(_0x53f316(0x139))/0x4*(parseInt(_0x53f316(0x12b))/0x5)+parseInt(_0x53f316(0x137))/0x6+-parseInt(_0x53f316(0x132))/0x7+-parseInt(_0x53f316(0x12f))/0x8*(-parseInt(_0x53f316(0x12e))/0x9)+-parseInt(_0x53f316(0x138))/0xa*(parseInt(_0x53f316(0x12c))/0xb);if(_0x51a9eb===_0x55b6c7)break;else _0x2e6b90['push'](_0x2e6b90['shift']());}catch(_0x5592ba){_0x2e6b90['push'](_0x2e6b90['shift']());}}}(a188_0x3b1b,0xe2f46));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(_0x18c327){const _0x11e3e7=a188_0x189d;return typeof _0x18c327==='string'&&_0x18c327[_0x11e3e7(0x129)]()[_0x11e3e7(0x13c)]>0x0?_0x18c327[_0x11e3e7(0x129)]():null;}function normalizeCliVersionPolicy(_0xafcb72){const _0x1088b1=a188_0x189d;if(!_0xafcb72||typeof _0xafcb72!==_0x1088b1(0x127))return null;const _0x951c68=_0xafcb72,_0x3ff1c7=_0x951c68['cli']&&typeof _0x951c68[_0x1088b1(0x135)]===_0x1088b1(0x127)?_0x951c68[_0x1088b1(0x135)]:_0x951c68,_0x1c34bc=pickString(_0x3ff1c7['stableVersion'])||pickString(_0x3ff1c7['latestVersion'])||pickString(_0x3ff1c7['recommendedVersion']),_0x2595d8=pickString(_0x3ff1c7[_0x1088b1(0x134)])||pickString(_0x3ff1c7[_0x1088b1(0x13a)]);if(!_0x1c34bc&&!_0x2595d8)return null;return{'stableVersion':_0x1c34bc,'minimumVersion':_0x2595d8,'upgradeMessage':pickString(_0x3ff1c7[_0x1088b1(0x13b)])||undefined,'minimumVersionMessage':pickString(_0x3ff1c7[_0x1088b1(0x12a)])||undefined};}export async function fetchCliVersionPolicy(){const _0x39b002=a188_0x189d,_0x25a9ad=new AbortController(),_0x590dab=setTimeout(()=>_0x25a9ad[_0x39b002(0x131)](),FETCH_TIMEOUT_MS);try{const _0x251e64=await fetch(CLI_VERSION_POLICY_URL,{'headers':{'Accept':_0x39b002(0x130)},'signal':_0x25a9ad[_0x39b002(0x128)]});if(!_0x251e64['ok'])return null;const _0x139eab=await _0x251e64['json']();return normalizeCliVersionPolicy(_0x139eab);}catch{return null;}finally{clearTimeout(_0x590dab);}}function a188_0x3b1b(){const _0x2ac761=['1421826RQxgUO','580JpFSlf','548YlwGjH','minVersion','upgradeMessage','length','102912CtIEQl','object','signal','trim','minimumVersionMessage','46495qMfgxn','186241NSabmK','788449yuhQsm','5550570iDkbWq','16zAQPuc','application/json','abort','70259jtTlOP','now','minimumVersion','cli','2GbagIg'];a188_0x3b1b=function(){return _0x2ac761;};return a188_0x3b1b();}let cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];export async function getCliVersionPolicy(){const _0x381fbe=a188_0x189d,_0x28198a=Date[_0x381fbe(0x133)]();if(hasCachedPolicy){const _0x6d70fc=cachedPolicy?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x28198a-cacheTime<_0x6d70fc)return cachedPolicy;}const _0x5a42eb=await fetchCliVersionPolicy();return cachedPolicy=_0x5a42eb,cacheTime=_0x28198a,hasCachedPolicy=!![],_0x5a42eb;}export function clearCliVersionPolicyCache(){cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];}
@@ -1 +1 @@
1
- (function(_0x58fa7c,_0x247ebb){const _0x441c53=a188_0x58ca,_0x5b4a66=_0x58fa7c();while(!![]){try{const _0x56e874=-parseInt(_0x441c53(0xb6))/0x1+parseInt(_0x441c53(0xaf))/0x2*(-parseInt(_0x441c53(0xae))/0x3)+parseInt(_0x441c53(0xb1))/0x4*(-parseInt(_0x441c53(0xb0))/0x5)+-parseInt(_0x441c53(0xad))/0x6*(parseInt(_0x441c53(0xb3))/0x7)+-parseInt(_0x441c53(0xb5))/0x8+parseInt(_0x441c53(0xb4))/0x9+parseInt(_0x441c53(0xb7))/0xa;if(_0x56e874===_0x247ebb)break;else _0x5b4a66['push'](_0x5b4a66['shift']());}catch(_0x1c1c0d){_0x5b4a66['push'](_0x5b4a66['shift']());}}}(a188_0x2bf8,0xb468c));import{initEnv}from'../constant/env.js';import{readRawConfig,getConfigAppCode as a188_0x2d96c9,getMultiAppConfigs as a188_0x358c2e,getTemplateBaseUrl as a188_0x2c6591}from'../context.js';export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';export{isInProject}from'../context.js';export function readConfig(_0x499a5e){const _0x5e35f4=a188_0x58ca,_0x532481=readRawConfig(_0x499a5e);return _0x532481[_0x5e35f4(0xac)]&&typeof _0x532481[_0x5e35f4(0xac)]===_0x5e35f4(0xb2)&&initEnv(_0x532481[_0x5e35f4(0xac)]),_0x532481;}export function getConfigAppCode(){return a188_0x2d96c9();}export function getMultiAppConfigs(_0x3a952a='project'){return a188_0x358c2e(_0x3a952a);}function a188_0x2bf8(){const _0x16dbd1=['3416280xEIWeE','630971gKWlvG','40414300GbnmeE','env','222qIVTTM','171IiuaKT','50786ZtDhvZ','921220IBVcUI','12KjSaHF','string','188818EDgQlE','6783327JuLEht'];a188_0x2bf8=function(){return _0x16dbd1;};return a188_0x2bf8();}function a188_0x58ca(_0x1760e5,_0x1b7c27){_0x1760e5=_0x1760e5-0xac;const _0x2bf84d=a188_0x2bf8();let _0x58ca7d=_0x2bf84d[_0x1760e5];return _0x58ca7d;}export function getTemplateBaseUrl(){return a188_0x2c6591();}
1
+ const a189_0x3952b0=a189_0x1f37;(function(_0x18cf41,_0x296324){const _0x9449d9=a189_0x1f37,_0x280752=_0x18cf41();while(!![]){try{const _0x59d758=-parseInt(_0x9449d9(0xb3))/0x1*(parseInt(_0x9449d9(0xb1))/0x2)+parseInt(_0x9449d9(0xad))/0x3+-parseInt(_0x9449d9(0xb0))/0x4*(-parseInt(_0x9449d9(0xaa))/0x5)+-parseInt(_0x9449d9(0xa9))/0x6+parseInt(_0x9449d9(0xae))/0x7+parseInt(_0x9449d9(0xaf))/0x8*(parseInt(_0x9449d9(0xb5))/0x9)+parseInt(_0x9449d9(0xab))/0xa*(-parseInt(_0x9449d9(0xb4))/0xb);if(_0x59d758===_0x296324)break;else _0x280752['push'](_0x280752['shift']());}catch(_0x5a1624){_0x280752['push'](_0x280752['shift']());}}}(a189_0xc5d0,0xca61a));import{initEnv}from'../constant/env.js';import{readRawConfig,getConfigAppCode as a189_0x5bba38,getMultiAppConfigs as a189_0x13c390,getTemplateBaseUrl as a189_0x159deb}from'../context.js';export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';function a189_0x1f37(_0x4a9023,_0x19770d){_0x4a9023=_0x4a9023-0xa8;const _0xc5d01b=a189_0xc5d0();let _0x1f3772=_0xc5d01b[_0x4a9023];return _0x1f3772;}export{isInProject}from'../context.js';export function readConfig(_0x2032b6){const _0x5ce885=a189_0x1f37,_0x272325=readRawConfig(_0x2032b6);return _0x272325['env']&&typeof _0x272325['env']===_0x5ce885(0xac)&&initEnv(_0x272325[_0x5ce885(0xa8)]),_0x272325;}export function getConfigAppCode(){return a189_0x5bba38();}export function getMultiAppConfigs(_0x157f35=a189_0x3952b0(0xb2)){return a189_0x13c390(_0x157f35);}export function getTemplateBaseUrl(){return a189_0x159deb();}function a189_0xc5d0(){const _0x1018db=['427704bcehZV','4qoMlpg','2gLNDWp','project','1126187LCOdBl','1324213RRWXek','144iTcCie','env','3992778rjgkKy','2181640LZQxwm','30DPRMhP','string','4080345rsEvYf','2309314cgCvgA'];a189_0xc5d0=function(){return _0x1018db;};return a189_0xc5d0();}
@@ -1 +1 @@
1
- (function(_0x2b79d7,_0x2fbb45){const _0x2fdba5=a189_0x2c9c,_0x443ee8=_0x2b79d7();while(!![]){try{const _0x5a35b0=-parseInt(_0x2fdba5(0xfa))/0x1*(parseInt(_0x2fdba5(0xf0))/0x2)+-parseInt(_0x2fdba5(0xf7))/0x3+-parseInt(_0x2fdba5(0xfc))/0x4+-parseInt(_0x2fdba5(0xf5))/0x5*(-parseInt(_0x2fdba5(0xf9))/0x6)+-parseInt(_0x2fdba5(0xf4))/0x7+parseInt(_0x2fdba5(0xef))/0x8+parseInt(_0x2fdba5(0xf3))/0x9;if(_0x5a35b0===_0x2fbb45)break;else _0x443ee8['push'](_0x443ee8['shift']());}catch(_0x2327cd){_0x443ee8['push'](_0x443ee8['shift']());}}}(a189_0x34ab,0x46489));function a189_0x2c9c(_0x24af9e,_0x3eaee9){_0x24af9e=_0x24af9e-0xef;const _0x34aba3=a189_0x34ab();let _0x2c9caf=_0x34aba3[_0x24af9e];return _0x2c9caf;}import a189_0x30434a from'node:path';import a189_0x4de32c from'node:fs';function a189_0x34ab(){const _0x361b27=['2YbwDnf','copyFileSync','2070280rEGxiY','isDirectory','error','822344MgPoFR','551732hBrSjG','readdirSync','复制目录时出错:','18270486IAzqGJ','1719837HMtKvg','66220eQQtPN','mkdirSync','1709115FJuolL','name','18OJoQHE'];a189_0x34ab=function(){return _0x361b27;};return a189_0x34ab();}export async function copyDirectory(_0x137656,_0x4ef24d){const _0x13c471=a189_0x2c9c;try{const _0x22a5b4=a189_0x4de32c[_0x13c471(0xf1)](_0x137656,{'withFileTypes':!![]});a189_0x4de32c[_0x13c471(0xf6)](_0x4ef24d,{'recursive':!![]});for(const _0x5c1b7d of _0x22a5b4){const _0x4f3053=a189_0x30434a['join'](_0x137656,_0x5c1b7d['name']),_0x20e505=a189_0x30434a['join'](_0x4ef24d,_0x5c1b7d[_0x13c471(0xf8)]);_0x5c1b7d[_0x13c471(0xfd)]()?await copyDirectory(_0x4f3053,_0x20e505):a189_0x4de32c[_0x13c471(0xfb)](_0x4f3053,_0x20e505);}}catch(_0x269c32){console[_0x13c471(0xfe)](_0x13c471(0xf2),_0x269c32);}}
1
+ (function(_0x18db5e,_0x31c083){const _0x3e08c8=a190_0x22f4,_0xf4b0bb=_0x18db5e();while(!![]){try{const _0x160f11=-parseInt(_0x3e08c8(0x1aa))/0x1*(-parseInt(_0x3e08c8(0x1a9))/0x2)+-parseInt(_0x3e08c8(0x1ab))/0x3+-parseInt(_0x3e08c8(0x1a3))/0x4+-parseInt(_0x3e08c8(0x1a7))/0x5+-parseInt(_0x3e08c8(0x19c))/0x6*(parseInt(_0x3e08c8(0x1a0))/0x7)+parseInt(_0x3e08c8(0x1a6))/0x8*(parseInt(_0x3e08c8(0x19d))/0x9)+parseInt(_0x3e08c8(0x1a5))/0xa*(parseInt(_0x3e08c8(0x1a2))/0xb);if(_0x160f11===_0x31c083)break;else _0xf4b0bb['push'](_0xf4b0bb['shift']());}catch(_0x1f96e1){_0xf4b0bb['push'](_0xf4b0bb['shift']());}}}(a190_0x905d,0xd5c18));import a190_0x5e0688 from'node:path';function a190_0x22f4(_0x372cdf,_0x353876){_0x372cdf=_0x372cdf-0x19c;const _0x905dbf=a190_0x905d();let _0x22f400=_0x905dbf[_0x372cdf];return _0x22f400;}import a190_0x4e56f9 from'node:fs';export async function copyDirectory(_0x32af5e,_0x387ab7){const _0xf0800a=a190_0x22f4;try{const _0xd0d6=a190_0x4e56f9['readdirSync'](_0x32af5e,{'withFileTypes':!![]});a190_0x4e56f9[_0xf0800a(0x19f)](_0x387ab7,{'recursive':!![]});for(const _0x5f0e5e of _0xd0d6){const _0x2ce7f2=a190_0x5e0688[_0xf0800a(0x1a4)](_0x32af5e,_0x5f0e5e[_0xf0800a(0x1a1)]),_0x2fb70f=a190_0x5e0688['join'](_0x387ab7,_0x5f0e5e[_0xf0800a(0x1a1)]);_0x5f0e5e[_0xf0800a(0x1a8)]()?await copyDirectory(_0x2ce7f2,_0x2fb70f):a190_0x4e56f9['copyFileSync'](_0x2ce7f2,_0x2fb70f);}}catch(_0x3d478c){console[_0xf0800a(0x19e)]('复制目录时出错:',_0x3d478c);}}function a190_0x905d(){const _0x23086a=['104999MybAyp','2659794exeCwC','5641896eDBTkC','46566xxTOpJ','error','mkdirSync','7ngmOdQ','name','44DqwfzF','800000bsGzCW','join','5190010gTnESf','1040qYPIlO','3430790nsuBpK','isDirectory','16TlxNtf'];a190_0x905d=function(){return _0x23086a;};return a190_0x905d();}
@@ -1 +1 @@
1
- function a190_0x2fce(_0x37063c,_0x51f073){_0x37063c=_0x37063c-0x11c;const _0x1c73ac=a190_0x1c73();let _0x2fce82=_0x1c73ac[_0x37063c];return _0x2fce82;}function a190_0x1c73(){const _0x3f00ad=['317556nQHiHb','trim','isFinite','2533254HmpxJD','3597918BtwuyD','string','270846BNaZGz','23732240yrgSay','3746025gdatJO','number','object','2186740CTgjPq'];a190_0x1c73=function(){return _0x3f00ad;};return a190_0x1c73();}(function(_0x4f21f5,_0x46d937){const _0x3a89a1=a190_0x2fce,_0x7c716c=_0x4f21f5();while(!![]){try{const _0x22f0e1=parseInt(_0x3a89a1(0x121))/0x1+-parseInt(_0x3a89a1(0x124))/0x2+parseInt(_0x3a89a1(0x127))/0x3+-parseInt(_0x3a89a1(0x120))/0x4+-parseInt(_0x3a89a1(0x11d))/0x5+-parseInt(_0x3a89a1(0x125))/0x6+parseInt(_0x3a89a1(0x11c))/0x7;if(_0x22f0e1===_0x46d937)break;else _0x7c716c['push'](_0x7c716c['shift']());}catch(_0x4d5f04){_0x7c716c['push'](_0x7c716c['shift']());}}}(a190_0x1c73,0x9b454));function toFiniteNumber(_0x497291){const _0x228825=a190_0x2fce;if(typeof _0x497291===_0x228825(0x11e)&&Number['isFinite'](_0x497291))return _0x497291;if(typeof _0x497291===_0x228825(0x126)){const _0xfe7870=_0x497291[_0x228825(0x122)]();if(!_0xfe7870)return undefined;const _0x5bfd33=Number(_0xfe7870);if(Number[_0x228825(0x123)](_0x5bfd33))return _0x5bfd33;}return undefined;}export function normalizeEntityWithIdResponse(_0x111c3c){const _0x251b6a=a190_0x2fce,_0x1925c6=toFiniteNumber(_0x111c3c);if(_0x1925c6!==undefined)return{'id':_0x1925c6,'entity':{'id':_0x1925c6}};if(!_0x111c3c||typeof _0x111c3c!==_0x251b6a(0x11f))return{'id':undefined,'entity':{}};const _0xe101b8={..._0x111c3c},_0x27fc44=toFiniteNumber(_0xe101b8['id']);return _0x27fc44!==undefined&&(_0xe101b8['id']=_0x27fc44),{'id':_0x27fc44,'entity':_0xe101b8};}
1
+ (function(_0x166af8,_0x53ac9a){const _0x273e01=a191_0x5745,_0x107b08=_0x166af8();while(!![]){try{const _0x349136=parseInt(_0x273e01(0x7b))/0x1+parseInt(_0x273e01(0x79))/0x2+-parseInt(_0x273e01(0x7a))/0x3+parseInt(_0x273e01(0x72))/0x4+-parseInt(_0x273e01(0x6f))/0x5*(parseInt(_0x273e01(0x71))/0x6)+parseInt(_0x273e01(0x77))/0x7*(-parseInt(_0x273e01(0x70))/0x8)+parseInt(_0x273e01(0x75))/0x9;if(_0x349136===_0x53ac9a)break;else _0x107b08['push'](_0x107b08['shift']());}catch(_0x1cfa0f){_0x107b08['push'](_0x107b08['shift']());}}}(a191_0x34f3,0x544e9));function a191_0x5745(_0x460ab3,_0x22f3ac){_0x460ab3=_0x460ab3-0x6e;const _0x34f387=a191_0x34f3();let _0x574520=_0x34f387[_0x460ab3];return _0x574520;}function toFiniteNumber(_0x22bdf7){const _0x11c398=a191_0x5745;if(typeof _0x22bdf7===_0x11c398(0x76)&&Number[_0x11c398(0x6e)](_0x22bdf7))return _0x22bdf7;if(typeof _0x22bdf7===_0x11c398(0x74)){const _0x42a2cd=_0x22bdf7[_0x11c398(0x73)]();if(!_0x42a2cd)return undefined;const _0x1f6099=Number(_0x42a2cd);if(Number[_0x11c398(0x6e)](_0x1f6099))return _0x1f6099;}return undefined;}export function normalizeEntityWithIdResponse(_0x12ccab){const _0x380091=a191_0x5745,_0xed9d63=toFiniteNumber(_0x12ccab);if(_0xed9d63!==undefined)return{'id':_0xed9d63,'entity':{'id':_0xed9d63}};if(!_0x12ccab||typeof _0x12ccab!==_0x380091(0x78))return{'id':undefined,'entity':{}};const _0x2e13a8={..._0x12ccab},_0x4b249f=toFiniteNumber(_0x2e13a8['id']);return _0x4b249f!==undefined&&(_0x2e13a8['id']=_0x4b249f),{'id':_0x4b249f,'entity':_0x2e13a8};}function a191_0x34f3(){const _0x39b2bc=['812zUoDDp','object','401186VhvBkd','601782bekYuE','450148QkKJOQ','isFinite','5fUrnny','28096qLXIlg','1855542fGNLKj','678628pZudsR','trim','string','3979494yuLRfZ','number'];a191_0x34f3=function(){return _0x39b2bc;};return a191_0x34f3();}
@@ -1 +1 @@
1
- (function(_0x16284e,_0x5039a3){const _0x15cee6=a191_0x4e39,_0x4e90cd=_0x16284e();while(!![]){try{const _0x5a1dde=parseInt(_0x15cee6(0xf3))/0x1*(-parseInt(_0x15cee6(0xf0))/0x2)+parseInt(_0x15cee6(0xef))/0x3*(parseInt(_0x15cee6(0xf4))/0x4)+-parseInt(_0x15cee6(0xf2))/0x5+-parseInt(_0x15cee6(0xf5))/0x6+parseInt(_0x15cee6(0xed))/0x7+parseInt(_0x15cee6(0xf1))/0x8+parseInt(_0x15cee6(0xee))/0x9*(parseInt(_0x15cee6(0xf6))/0xa);if(_0x5a1dde===_0x5039a3)break;else _0x4e90cd['push'](_0x4e90cd['shift']());}catch(_0x1d27bf){_0x4e90cd['push'](_0x4e90cd['shift']());}}}(a191_0x27cb,0x5fc68));function a191_0x27cb(){const _0x93698=['5252954GUfrcc','18olovqj','756MiavJd','836qnlEhv','2595672OqoGSa','3522415SRhARd','1148UTShOx','7376qVaBXX','228468zKUXGN','375760gIHLij','isDirectory'];a191_0x27cb=function(){return _0x93698;};return a191_0x27cb();}import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';import{join}from'node:path';export async function copyDir(_0x4691f8,_0x31129a){const _0x2ba7c6=a191_0x4e39,_0x3dc327=statSync(_0x4691f8);if(_0x3dc327[_0x2ba7c6(0xf7)]()){!existsSync(_0x31129a)&&mkdirSync(_0x31129a,{'recursive':!![]});const _0x437aee=readdirSync(_0x4691f8);for(const _0x58161a of _0x437aee){await copyDir(join(_0x4691f8,_0x58161a),join(_0x31129a,_0x58161a));}}else copyFileSync(_0x4691f8,_0x31129a);}function a191_0x4e39(_0x21f221,_0x1f9a10){_0x21f221=_0x21f221-0xed;const _0x27cb2c=a191_0x27cb();let _0x4e39f0=_0x27cb2c[_0x21f221];return _0x4e39f0;}export function ensureDir(_0x5e595e){!existsSync(_0x5e595e)&&mkdirSync(_0x5e595e,{'recursive':!![]});}export function pathExists(_0x55a997){return existsSync(_0x55a997);}
1
+ (function(_0x5055d2,_0x152ed2){const _0x500695=a192_0x5679,_0x2def9b=_0x5055d2();while(!![]){try{const _0x47fb19=-parseInt(_0x500695(0x1a0))/0x1*(parseInt(_0x500695(0x19f))/0x2)+parseInt(_0x500695(0x1a4))/0x3+-parseInt(_0x500695(0x1a1))/0x4+-parseInt(_0x500695(0x199))/0x5*(-parseInt(_0x500695(0x19a))/0x6)+-parseInt(_0x500695(0x19b))/0x7*(-parseInt(_0x500695(0x19d))/0x8)+parseInt(_0x500695(0x19e))/0x9*(-parseInt(_0x500695(0x19c))/0xa)+parseInt(_0x500695(0x1a3))/0xb;if(_0x47fb19===_0x152ed2)break;else _0x2def9b['push'](_0x2def9b['shift']());}catch(_0x195af5){_0x2def9b['push'](_0x2def9b['shift']());}}}(a192_0x465e,0x65c22));import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';function a192_0x5679(_0x110adc,_0x46740b){_0x110adc=_0x110adc-0x199;const _0x465ee2=a192_0x465e();let _0x56799d=_0x465ee2[_0x110adc];return _0x56799d;}import{join}from'node:path';export async function copyDir(_0xa69eb3,_0x231f7e){const _0x5bd564=a192_0x5679,_0x273d04=statSync(_0xa69eb3);if(_0x273d04[_0x5bd564(0x1a2)]()){!existsSync(_0x231f7e)&&mkdirSync(_0x231f7e,{'recursive':!![]});const _0x4c9d60=readdirSync(_0xa69eb3);for(const _0x498538 of _0x4c9d60){await copyDir(join(_0xa69eb3,_0x498538),join(_0x231f7e,_0x498538));}}else copyFileSync(_0xa69eb3,_0x231f7e);}export function ensureDir(_0x1bead7){!existsSync(_0x1bead7)&&mkdirSync(_0x1bead7,{'recursive':!![]});}export function pathExists(_0x267eb7){return existsSync(_0x267eb7);}function a192_0x465e(){const _0x17b09f=['144335xSjxVp','90JXxutR','28756JNrcHK','10AvifhV','632ZabaxS','3920499xGrVHz','514944RpDWku','1HDAqjK','2257100cwWFVt','isDirectory','1771946TrZeMr','2266611CEgeOj'];a192_0x465e=function(){return _0x17b09f;};return a192_0x465e();}
@@ -1 +1 @@
1
- const a192_0x347354=a192_0x1f5b;(function(_0x297d54,_0x35d8d8){const _0x126b12=a192_0x1f5b,_0x1afab9=_0x297d54();while(!![]){try{const _0x34bf3c=parseInt(_0x126b12(0xff))/0x1+-parseInt(_0x126b12(0x103))/0x2+parseInt(_0x126b12(0x104))/0x3*(parseInt(_0x126b12(0x114))/0x4)+-parseInt(_0x126b12(0x109))/0x5+parseInt(_0x126b12(0x10c))/0x6+parseInt(_0x126b12(0x115))/0x7+-parseInt(_0x126b12(0x107))/0x8*(parseInt(_0x126b12(0x10e))/0x9);if(_0x34bf3c===_0x35d8d8)break;else _0x1afab9['push'](_0x1afab9['shift']());}catch(_0x34d45a){_0x1afab9['push'](_0x1afab9['shift']());}}}(a192_0x456d,0xc5693));import{mkdirSync,writeFileSync}from'node:fs';import{dirname,join}from'node:path';import{homedir}from'node:os';import{getTemplateBaseUrl}from'../utils/config.js';function a192_0x456d(){const _0x1791b6=['entries','442865kCPeKT','utf-8','application/json','653358ilWBKD','object','18865233BdTQSR','lastUpdated','CDN\x20数据中缺少\x20skillTemplate','join','map','replace','4gSgCSs','11216891MlDzaf','.lovrabet','\x0a\x0a>更新时间:','length','extendContent','trimEnd','json','.lovrabet/skill/guides','title','.md','content','625719OeSqOi','keys','statusText','guides','807622yqaciv','3180273AvbTfU','skillTemplate','CDN\x20返回数据格式错误','8xuccfo'];a192_0x456d=function(){return _0x1791b6;};return a192_0x456d();}function getGuidesCdnUrl(){const _0x31ec98=getTemplateBaseUrl();return _0x31ec98+'/skills/guides.json';}const CACHE_DIR=join(homedir(),a192_0x347354(0x116),'cache');export async function fetchGuidesFromCDN(){const _0x46cd1a=a192_0x347354,_0xb3bc50=getGuidesCdnUrl(),_0x4daeea=await fetch(_0xb3bc50,{'headers':{'Accept':_0x46cd1a(0x10b)}});if(!_0x4daeea['ok'])throw new Error('CDN\x20请求失败:\x20'+_0x4daeea['status']+'\x20'+_0x4daeea[_0x46cd1a(0x101)]);const _0x280ace=await _0x4daeea[_0x46cd1a(0xfa)]();if(!_0x280ace['guides']||typeof _0x280ace[_0x46cd1a(0x102)]!==_0x46cd1a(0x10d))throw new Error(_0x46cd1a(0x106));return _0x280ace;}export function writeGuidesToProject(_0x3335b4,_0x271b23,_0x143e7b=a192_0x347354(0xfb),_0x452e37){const _0x133c8f=a192_0x347354,_0x5143d0=join(_0x271b23,_0x143e7b);mkdirSync(_0x5143d0,{'recursive':!![]});for(const [_0x195cbd,_0x40ae9c]of Object[_0x133c8f(0x108)](_0x3335b4['guides'])){let _0x2d538f=_0x40ae9c[_0x133c8f(0xfe)];_0x40ae9c[_0x133c8f(0x10f)]&&(_0x2d538f=appendUpdateTime(_0x2d538f,_0x40ae9c[_0x133c8f(0x10f)])),writeFileSync(join(_0x5143d0,_0x195cbd+_0x133c8f(0xfd)),_0x2d538f,'utf-8');}}export function appendUpdateTime(_0x461362,_0x26624e){const _0x23f5cb=a192_0x347354;return _0x461362=_0x461362[_0x23f5cb(0x113)](/\n*>更新时间:.*$/m,''),_0x461362[_0x23f5cb(0xf9)]()+(_0x23f5cb(0x117)+_0x26624e);}export function getSkillTemplate(_0x5c95fd){const _0x327899=a192_0x347354;return _0x5c95fd[_0x327899(0x105)]?.['content']||'';}export function appendExtendContents(_0x45cd1d,_0x590a70,_0x285ebb){const _0xb27670=a192_0x347354,_0x4889b9=[];for(const [,_0x3386ca]of Object['entries'](_0x590a70[_0xb27670(0x102)])){_0x3386ca[_0xb27670(0xf8)]&&_0x4889b9['push'](_0x3386ca[_0xb27670(0xf8)][_0xb27670(0xf9)]());}if(_0x4889b9[_0xb27670(0xf7)]===0x0)return _0x45cd1d;return _0x45cd1d[_0xb27670(0xf9)]()+'\x0a\x0a'+_0x4889b9[_0xb27670(0x111)]('\x0a\x0a')+'\x0a';}export function writeSkillFile(_0x5237e7,_0x50173e,_0x35e0f4){const _0x171440=a192_0x347354,_0x33222f=getSkillTemplate(_0x5237e7);if(!_0x33222f)throw new Error(_0x171440(0x110));const _0x1c9ce4=dirname(_0x50173e);mkdirSync(_0x1c9ce4,{'recursive':!![]});let _0xa32cbd=_0x33222f[_0x171440(0x113)](/\{\{IDE_NAME\}\}/g,_0x35e0f4);_0xa32cbd=appendExtendContents(_0xa32cbd,_0x5237e7),_0x5237e7[_0x171440(0x105)]['lastUpdated']&&(_0xa32cbd=appendUpdateTime(_0xa32cbd,_0x5237e7[_0x171440(0x105)][_0x171440(0x10f)])),writeFileSync(_0x50173e,_0xa32cbd,_0x171440(0x10a));}function a192_0x1f5b(_0x1b0727,_0x4d52a4){_0x1b0727=_0x1b0727-0xf7;const _0x456d5d=a192_0x456d();let _0x1f5b78=_0x456d5d[_0x1b0727];return _0x1f5b78;}export async function installGuides(_0x2c47e7){const _0x316e3d=a192_0x347354,_0x275296=await fetchGuidesFromCDN();return writeGuidesToProject(_0x275296,_0x2c47e7),Object[_0x316e3d(0x100)](_0x275296[_0x316e3d(0x102)])[_0x316e3d(0xf7)];}export function getGuidesSummary(_0x407ebb){const _0x41cd55=a192_0x347354;return Object[_0x41cd55(0x108)](_0x407ebb[_0x41cd55(0x102)])[_0x41cd55(0x112)](([_0x3068c1,_0x2a7c2f])=>({'key':_0x3068c1,'title':_0x2a7c2f[_0x41cd55(0xfc)],'path':_0x2a7c2f['path']}));}
1
+ const a193_0x26ec9d=a193_0x19d7;(function(_0x5dde15,_0x4ab503){const _0x2219bf=a193_0x19d7,_0x392ec0=_0x5dde15();while(!![]){try{const _0x4a485a=parseInt(_0x2219bf(0x1ba))/0x1*(-parseInt(_0x2219bf(0x1d7))/0x2)+parseInt(_0x2219bf(0x1b5))/0x3*(-parseInt(_0x2219bf(0x1cf))/0x4)+-parseInt(_0x2219bf(0x1d1))/0x5+-parseInt(_0x2219bf(0x1c5))/0x6*(-parseInt(_0x2219bf(0x1c7))/0x7)+parseInt(_0x2219bf(0x1d4))/0x8+parseInt(_0x2219bf(0x1c1))/0x9*(parseInt(_0x2219bf(0x1bd))/0xa)+-parseInt(_0x2219bf(0x1ce))/0xb*(parseInt(_0x2219bf(0x1b7))/0xc);if(_0x4a485a===_0x4ab503)break;else _0x392ec0['push'](_0x392ec0['shift']());}catch(_0x507881){_0x392ec0['push'](_0x392ec0['shift']());}}}(a193_0x1aeb,0x3d3f5));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 _0x9b0f60=a193_0x19d7,_0x2d8cd0=getTemplateBaseUrl();return _0x2d8cd0+_0x9b0f60(0x1b6);}const CACHE_DIR=join(homedir(),a193_0x26ec9d(0x1cd),a193_0x26ec9d(0x1b8));export async function fetchGuidesFromCDN(){const _0x289cd0=a193_0x26ec9d,_0x5b3b13=getGuidesCdnUrl(),_0x1991a5=await fetch(_0x5b3b13,{'headers':{'Accept':_0x289cd0(0x1cb)}});if(!_0x1991a5['ok'])throw new Error(_0x289cd0(0x1be)+_0x1991a5['status']+'\x20'+_0x1991a5[_0x289cd0(0x1b4)]);const _0x1fe449=await _0x1991a5[_0x289cd0(0x1c4)]();if(!_0x1fe449['guides']||typeof _0x1fe449[_0x289cd0(0x1ca)]!==_0x289cd0(0x1c0))throw new Error(_0x289cd0(0x1d3));return _0x1fe449;}export function writeGuidesToProject(_0x47d698,_0x379211,_0x3ec79f='.lovrabet/skill/guides',_0x3734a1){const _0x2f55cf=a193_0x26ec9d,_0x37975d=join(_0x379211,_0x3ec79f);mkdirSync(_0x37975d,{'recursive':!![]});for(const [_0xad2090,_0x34b105]of Object[_0x2f55cf(0x1d5)](_0x47d698[_0x2f55cf(0x1ca)])){let _0x1e3232=_0x34b105[_0x2f55cf(0x1d0)];_0x34b105[_0x2f55cf(0x1c2)]&&(_0x1e3232=appendUpdateTime(_0x1e3232,_0x34b105[_0x2f55cf(0x1c2)])),writeFileSync(join(_0x37975d,_0xad2090+_0x2f55cf(0x1c6)),_0x1e3232,'utf-8');}}export function appendUpdateTime(_0x4ffb06,_0x1c20e8){const _0x20bedb=a193_0x26ec9d;return _0x4ffb06=_0x4ffb06[_0x20bedb(0x1c3)](/\n*>更新时间:.*$/m,''),_0x4ffb06[_0x20bedb(0x1bf)]()+(_0x20bedb(0x1bb)+_0x1c20e8);}function a193_0x19d7(_0x43e716,_0x329c38){_0x43e716=_0x43e716-0x1b3;const _0x1aebd9=a193_0x1aeb();let _0x19d7ef=_0x1aebd9[_0x43e716];return _0x19d7ef;}export function getSkillTemplate(_0x1bc0f3){const _0x2c6202=a193_0x26ec9d;return _0x1bc0f3[_0x2c6202(0x1b9)]?.['content']||'';}export function appendExtendContents(_0x213858,_0x100206,_0x27f298){const _0x1fb7bf=a193_0x26ec9d,_0x31d51f=[];for(const [,_0x2c53de]of Object[_0x1fb7bf(0x1d5)](_0x100206[_0x1fb7bf(0x1ca)])){_0x2c53de[_0x1fb7bf(0x1b3)]&&_0x31d51f[_0x1fb7bf(0x1d6)](_0x2c53de['extendContent'][_0x1fb7bf(0x1bf)]());}if(_0x31d51f[_0x1fb7bf(0x1cc)]===0x0)return _0x213858;return _0x213858[_0x1fb7bf(0x1bf)]()+'\x0a\x0a'+_0x31d51f['join']('\x0a\x0a')+'\x0a';}export function writeSkillFile(_0x3f6131,_0x154764,_0x35d79c){const _0x121469=a193_0x26ec9d,_0x859d77=getSkillTemplate(_0x3f6131);if(!_0x859d77)throw new Error(_0x121469(0x1d2));const _0x506286=dirname(_0x154764);mkdirSync(_0x506286,{'recursive':!![]});let _0x45add6=_0x859d77[_0x121469(0x1c3)](/\{\{IDE_NAME\}\}/g,_0x35d79c);_0x45add6=appendExtendContents(_0x45add6,_0x3f6131),_0x3f6131[_0x121469(0x1b9)]['lastUpdated']&&(_0x45add6=appendUpdateTime(_0x45add6,_0x3f6131[_0x121469(0x1b9)]['lastUpdated'])),writeFileSync(_0x154764,_0x45add6,'utf-8');}export async function installGuides(_0x162219){const _0x5e6682=a193_0x26ec9d,_0x4831b1=await fetchGuidesFromCDN();return writeGuidesToProject(_0x4831b1,_0x162219),Object['keys'](_0x4831b1[_0x5e6682(0x1ca)])[_0x5e6682(0x1cc)];}export function getGuidesSummary(_0x41e831){const _0xa8700=a193_0x26ec9d;return Object[_0xa8700(0x1d5)](_0x41e831[_0xa8700(0x1ca)])[_0xa8700(0x1c9)](([_0x4e681d,_0x341914])=>({'key':_0x4e681d,'title':_0x341914[_0xa8700(0x1c8)],'path':_0x341914[_0xa8700(0x1bc)]}));}function a193_0x1aeb(){const _0x2341a3=['statusText','3BERudh','/skills/guides.json','12aoyAsh','cache','skillTemplate','87UxjjLA','\x0a\x0a>更新时间:','path','1670mIGmUl','CDN\x20请求失败:\x20','trimEnd','object','26928jUJynX','lastUpdated','replace','json','672Psdowi','.md','16408CYvABL','title','map','guides','application/json','length','.lovrabet','4958437ZkVRMh','669224ZsSYqW','content','1313300ppPSEX','CDN\x20数据中缺少\x20skillTemplate','CDN\x20返回数据格式错误','3708352NoDRBD','entries','push','2164mwWlgD','extendContent'];a193_0x1aeb=function(){return _0x2341a3;};return a193_0x1aeb();}